export type DeleteApiAgentsConnectionsLlmConnectionIdArgs = {connection_id: string}; export type DeleteApiAgentsConnectionsLlmConnectionIdOptions = {baseUrl?: string | undefined, FronteggHTTPAuthentication?: string | undefined, fetch?: typeof fetch | undefined}; /** * Delete Agent Llm Connection * * DELETE /agents/connections/llm/{connection_id} */ export const deleteApiAgentsConnectionsLlmConnectionId = async (args: DeleteApiAgentsConnectionsLlmConnectionIdArgs, options?: DeleteApiAgentsConnectionsLlmConnectionIdOptions) => { const {baseUrl = "https://api.streamkap.com", fetch: fetchFn = fetch, FronteggHTTPAuthentication} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (FronteggHTTPAuthentication !== undefined) headers.set('authorization', `Bearer ${FronteggHTTPAuthentication}`) const url = `${baseUrl.replace(/\/+$/, '')}/agents/connections/llm/${encodeURIComponent(String(args.connection_id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "DELETE", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };