export type GetApiApiMetadataSystemWalletArgs = {description?: string | undefined, type?: ('CUSTODIAN_OWNER' | 'CUSTODIAN_LIMITED_OWNER' | 'TENANT_OWNER' | 'TENANT_LIMITED_OWNER') | undefined, orderBy?: Array | undefined, limit?: number | undefined, skip?: number | undefined}; export type GetApiApiMetadataSystemWalletOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Allowed user roles:


query system wallets from the secure data zone * * GET /api/metadata/system/wallet */ export const getApiApiMetadataSystemWallet = async (args: GetApiApiMetadataSystemWalletArgs, options?: GetApiApiMetadataSystemWalletOptions) => { const {baseUrl = "https://api.burstiq.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") if (args.description != null) query.append("description", String(args.description)) if (args.type != null) query.append("type", String(args.type)) 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/system/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() };