export type CreateApiApiV1EuaiactExportArgs = {Authorization: string}; export type CreateApiApiV1EuaiactExportOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Create a compliance evidence export (proxied to orchestrator) * * POST /api/v1/euaiact/export */ export const createApiApiV1EuaiactExport = async (args: CreateApiApiV1EuaiactExportArgs, options?: CreateApiApiV1EuaiactExportOptions) => { const {baseUrl = "https://agent.getaxonflow.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.Authorization != null) headers.set("Authorization", String(args.Authorization)) const url = `${baseUrl.replace(/\/+$/, '')}/api/v1/euaiact/export${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };