export type GetApiApiMetadataWalletArgs = {email?: string | undefined, fullName?: string | undefined, id?: string | undefined, ids?: Array | undefined, orderBy?: Array | undefined, limit?: number | undefined, skip?: number | undefined}; export type GetApiApiMetadataWalletOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Allowed user roles:


query user OR system wallets from the secure data zone * * GET /api/metadata/wallet */ export const getApiApiMetadataWallet = async (args: GetApiApiMetadataWalletArgs, options?: GetApiApiMetadataWalletOptions) => { const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") if (args.email != null) query.append("email", String(args.email)) if (args.fullName != null) query.append("fullName", String(args.fullName)) if (args.id != null) query.append("id", String(args.id)) for (const item of args.ids ?? []) query.append("ids", String(item)) for (const item of args.orderBy ?? []) query.append("orderBy", String(item)) if (args.limit != null) query.append("limit", String(args.limit)) if (args.skip != null) query.append("skip", String(args.skip)) const url = `${baseUrl.replace(/\/+$/, '')}/api/metadata/wallet${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };