export type GetApiRpcGetIdentityApikeyOnlyArgs = {keymode: unknown}; export type GetApiRpcGetIdentityApikeyOnlyOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * GET /rpc/get_identity_apikey_only */ export const getApiRpcGetIdentityApikeyOnly = async (args: GetApiRpcGetIdentityApikeyOnlyArgs, options?: GetApiRpcGetIdentityApikeyOnlyOptions) => { const {baseUrl = "https://vnaabuozknwgxuvnfwjo.supabase.co:443", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.keymode != null) query.append("keymode", String(args.keymode)) const url = `${baseUrl.replace(/\/+$/, '')}/rpc/get_identity_apikey_only${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 undefined };