export type AgentConfigRemoveValues = {project_id?: string | undefined, project_name?: string | undefined, keys: Array}; export type CreateApiV1PrivateAgentConfigsBlueprintsRemoveKeysArgs = {body: AgentConfigRemoveValues}; export type CreateApiV1PrivateAgentConfigsBlueprintsRemoveKeysOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Remove configuration parameters * * POST /v1/private/agent-configs/blueprints/remove-keys */ export const createApiV1PrivateAgentConfigsBlueprintsRemoveKeys = async (args: CreateApiV1PrivateAgentConfigsBlueprintsRemoveKeysArgs, options?: CreateApiV1PrivateAgentConfigsBlueprintsRemoveKeysOptions) => { const {baseUrl = "http://localhost:5173/api", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/v1/private/agent-configs/blueprints/remove-keys${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };