@omnara/sdk 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auth-CnOxLjlL.d.ts → auth-ChKpCt8W.d.ts} +2 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +27 -5
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-WR57Q743.js → chunk-6NNNQM73.js} +43 -34
- package/dist/chunk-6NNNQM73.js.map +1 -0
- package/dist/chunk-6ZFYUHM3.js +52 -0
- package/dist/chunk-6ZFYUHM3.js.map +1 -0
- package/dist/{chunk-T324MHWD.js → chunk-HCB2J76N.js} +147 -186
- package/dist/chunk-HCB2J76N.js.map +1 -0
- package/dist/chunk-UD4ZHHMO.js +60 -0
- package/dist/chunk-UD4ZHHMO.js.map +1 -0
- package/dist/index.d.ts +41 -25
- package/dist/index.js +317 -132
- package/dist/index.js.map +1 -1
- package/dist/{sdk.gen-qOnMVktp.d.ts → sdk.gen-CQPqz02h.d.ts} +35 -8
- package/dist/tanstack.d.ts +1 -1
- package/dist/tanstack.js +3 -2
- package/dist/tanstack.js.map +1 -1
- package/dist/zod.d.ts +1 -1
- package/dist/{zod.gen-ClvDjqAD.d.ts → zod.gen-CSIcJlIc.d.ts} +409 -157
- package/dist/zod.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-K5YXFYE4.js +0 -51
- package/dist/chunk-K5YXFYE4.js.map +0 -1
- package/dist/chunk-T324MHWD.js.map +0 -1
- package/dist/chunk-WR57Q743.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/agent-event-stream.ts","../src/auth.ts","../src/cli-login-token.ts","../src/client.ts","../src/device.ts"],"sourcesContent":["import type { OmnaraClient } from './client'\nimport { streamEvents } from './generated/sdk.gen'\nimport type { AgentEventStreamData, StreamEventsData } from './generated/types.gen'\nimport { zStreamEventsResponse } from './generated/zod.gen'\nimport { isUnknownEnumError } from './validate-response'\n\nexport type AgentEventStreamErrorKind = 'aborted' | 'contract' | 'http' | 'transport'\n\nexport class AgentEventStreamError extends Error {\n readonly kind: AgentEventStreamErrorKind\n readonly retryable: boolean\n readonly status: number | undefined\n\n constructor({\n kind,\n message,\n retryable,\n status,\n cause,\n }: {\n kind: AgentEventStreamErrorKind\n message: string\n retryable: boolean\n status?: number\n cause?: unknown\n }) {\n super(message, { cause })\n this.name = 'AgentEventStreamError'\n this.kind = kind\n this.retryable = retryable\n this.status = status\n }\n}\n\nexport interface OpenAgentEventStreamOptions {\n client: OmnaraClient\n path: StreamEventsData['path']\n query?: StreamEventsData['query']\n headers?: StreamEventsData['headers']\n signal?: AbortSignal\n}\n\nexport interface AgentEventStream {\n stream: AsyncGenerator<AgentEventStreamData>\n}\n\nconst generatedHTTPError = /^SSE failed: (\\d{3})(?:\\s|$)/\n\nfunction classifyStreamError(error: unknown, signal?: AbortSignal): AgentEventStreamError {\n if (error instanceof AgentEventStreamError) return error\n if (signal?.aborted === true || (error instanceof Error && error.name === 'AbortError')) {\n return new AgentEventStreamError({\n kind: 'aborted',\n message: 'Agent event stream canceled',\n retryable: false,\n cause: error,\n })\n }\n const match = error instanceof Error ? generatedHTTPError.exec(error.message) : null\n const status = match?.[1] == null ? undefined : Number.parseInt(match[1], 10)\n if (status != null) {\n return new AgentEventStreamError({\n kind: 'http',\n message: `Agent event stream request failed with HTTP ${status}`,\n retryable: status === 408 || status === 429 || status >= 500,\n status,\n cause: error,\n })\n }\n return new AgentEventStreamError({\n kind: 'transport',\n message: 'Agent event stream disconnected',\n retryable: true,\n cause: error,\n })\n}\n\nasync function* validatedFrames(\n source: AsyncIterable<unknown>,\n sourceError: () => AgentEventStreamError | undefined,\n signal?: AbortSignal,\n): AsyncGenerator<AgentEventStreamData> {\n try {\n for await (const data of source) {\n const parsed = await zStreamEventsResponse.safeParseAsync(data)\n if (parsed.success) {\n yield parsed.data\n } else if (isUnknownEnumError(parsed.error, data)) {\n yield data as AgentEventStreamData\n } else {\n throw new AgentEventStreamError({\n kind: 'contract',\n message: 'Agent event stream received data that does not match the API contract',\n retryable: false,\n cause: parsed.error,\n })\n }\n }\n } catch (error) {\n throw classifyStreamError(error, signal)\n }\n const error = sourceError()\n if (error != null) throw error\n}\n\nexport async function openAgentEventStream({\n client,\n path,\n query,\n headers,\n signal,\n}: OpenAgentEventStreamOptions): Promise<AgentEventStream> {\n let connectionError: AgentEventStreamError | undefined\n try {\n const result = await streamEvents({\n client,\n path,\n query,\n headers,\n signal,\n responseValidator: undefined,\n sseMaxRetryAttempts: 1,\n onSseError: (error) => {\n connectionError = classifyStreamError(error, signal)\n },\n })\n return {\n stream: validatedFrames(result.stream, () => connectionError, signal),\n }\n } catch (error) {\n throw classifyStreamError(error, signal)\n }\n}\n","export interface AuthStrategy {\n authenticate(request: Request): void | Promise<void>\n}\n\nexport function bearerToken(token: string | (() => string | Promise<string>)): AuthStrategy {\n const resolve = typeof token === 'function' ? token : () => token\n return {\n async authenticate(request) {\n const value = await resolve()\n if (value) request.headers.set('Authorization', `Bearer ${value}`)\n },\n }\n}\n","import type { PersonalAccessToken } from './generated/types.gen'\n\nconst cliLoginTokenPrefix = 'Omnara CLI'\nconst cliLoginTokenHostSeparator = ' on '\n\nexport function cliLoginTokenName(hostName?: string): string {\n if (hostName === undefined) return cliLoginTokenPrefix\n return `${cliLoginTokenPrefix}${cliLoginTokenHostSeparator}${hostName}`\n}\n\nexport function isCliLoginToken(token: PersonalAccessToken): boolean {\n return token.revoked_at == null && token.name.startsWith(cliLoginTokenPrefix)\n}\n\nexport function cliLoginTokenHost(token: PersonalAccessToken): string {\n const rest = token.name.slice(cliLoginTokenPrefix.length)\n if (!rest.startsWith(cliLoginTokenHostSeparator)) return token.name\n const host = rest.slice(cliLoginTokenHostSeparator.length).trim()\n return host === '' ? token.name : host\n}\n","import type { AuthStrategy } from './auth'\nimport { ApiError } from './errors'\nimport { createClient, createConfig } from './generated/client'\nimport { client as specDefaultClient } from './generated/client.gen'\n\nexport type OmnaraClient = ReturnType<typeof createClient>\n\nexport interface OmnaraClientOptions {\n baseUrl?: string\n credentials?: RequestCredentials\n auth?: AuthStrategy\n headers?: Record<string, string>\n}\n\ntype Dispatch = (options?: Record<string, unknown>) => unknown\n\n// The generated client leaks per-call options — including the `client`\n// selector — into the Request init, which throws on Deno and Bun (they\n// reserve the `client` init key). Drop the key before dispatch.\n// TODO: remove once hey-api/hey-api#4177 is fixed and regenerated.\nfunction stripClientSelector(client: OmnaraClient): void {\n const strip =\n (dispatch: Dispatch): Dispatch =>\n (options) => {\n if (options == null || !('client' in options)) return dispatch(options)\n const rest = { ...options }\n delete rest.client\n return dispatch(rest)\n }\n const methods = [\n 'connect',\n 'delete',\n 'get',\n 'head',\n 'options',\n 'patch',\n 'post',\n 'put',\n 'request',\n 'trace',\n ] as const\n const wrap = (target: object) => {\n const dispatches = target as Partial<Record<(typeof methods)[number], Dispatch>>\n for (const method of methods) dispatches[method] &&= strip(dispatches[method])\n }\n wrap(client)\n wrap(client.sse)\n}\n\nexport function createOmnaraClient(options: OmnaraClientOptions = {}): OmnaraClient {\n const client = createClient(\n createConfig({\n throwOnError: true,\n }),\n )\n client.setConfig({\n baseUrl: options.baseUrl ?? specDefaultClient.getConfig().baseUrl,\n credentials: options.credentials,\n headers: options.headers,\n })\n const { auth } = options\n if (auth) {\n client.interceptors.request.use(async (request) => {\n await auth.authenticate(request)\n return request\n })\n }\n client.interceptors.response.use(async (response) => {\n if (!response.ok) throw await ApiError.fromResponse(response)\n return response\n })\n stripClientSelector(client)\n return client\n}\n","import * as z from 'zod'\n\nimport { ApiError } from './errors'\n\nexport const OMNARA_CLI_OAUTH_CLIENT_ID = 'omnara-cli'\nexport const OAUTH_DEVICE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:device_code'\n\nconst zAuthorizationServerMetadata = z.object({\n issuer: z.url(),\n device_authorization_endpoint: z.url(),\n token_endpoint: z.url(),\n grant_types_supported: z.array(z.string()),\n token_endpoint_auth_methods_supported: z.array(z.string()),\n})\n\nconst zDeviceAuthStartResponse = z.object({\n device_code: z.string().min(1),\n user_code: z.string().min(1),\n verification_uri: z.string().min(1),\n verification_uri_complete: z.string().min(1),\n expires_in: z.number().int().positive(),\n interval: z.number().int().positive(),\n})\n\nconst zDeviceAuthErrorResponse = z.object({\n error: z.string().min(1),\n error_description: z.string().optional(),\n})\n\nconst zDeviceAuthApprovedResponse = z.object({\n access_token: z.string().min(1),\n token_type: z.string(),\n})\n\nexport type DeviceAuthFailureCode = 'access_denied' | 'expired_token'\n\nconst DEVICE_AUTH_FAILURE_MESSAGES: Record<DeviceAuthFailureCode, string> = {\n access_denied: 'the login request was denied',\n expired_token: 'the login request expired before it was approved',\n}\n\nexport class DeviceAuthError extends Error {\n readonly code: DeviceAuthFailureCode\n\n constructor(code: DeviceAuthFailureCode) {\n super(DEVICE_AUTH_FAILURE_MESSAGES[code])\n this.name = 'DeviceAuthError'\n this.code = code\n }\n}\n\nexport interface DeviceAuthStart {\n deviceCode: string\n userCode: string\n verificationUri: string\n verificationUriComplete: string\n expiresInSeconds: number\n intervalSeconds: number\n tokenEndpoint: string\n clientId: string\n}\n\nasync function postOAuthForm(\n fetchImpl: typeof fetch,\n endpoint: string,\n body: Record<string, string>,\n): Promise<Response> {\n return fetchImpl(endpoint, {\n method: 'POST',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body: new URLSearchParams(body).toString(),\n })\n}\n\nexport interface StartDeviceAuthOptions {\n issuerUrl: string\n clientId: string\n tokenName?: string\n fetch?: typeof fetch\n}\n\nfunction normalizeIssuer(raw: string): string {\n const issuer = new URL(raw)\n if (\n issuer.username !== '' ||\n issuer.password !== '' ||\n issuer.pathname !== '/' ||\n issuer.search !== '' ||\n issuer.hash !== ''\n ) {\n throw new Error('authorization server issuer must be an origin')\n }\n return issuer.origin\n}\n\nexport async function startDeviceAuth(options: StartDeviceAuthOptions): Promise<DeviceAuthStart> {\n const fetchImpl = options.fetch ?? fetch\n const expectedIssuer = normalizeIssuer(options.issuerUrl)\n const metadataUrl = new URL('/.well-known/oauth-authorization-server', `${expectedIssuer}/`)\n const metadataResponse = await fetchImpl(metadataUrl, { headers: { Accept: 'application/json' } })\n if (!metadataResponse.ok) throw await ApiError.fromResponse(metadataResponse)\n const metadata = zAuthorizationServerMetadata.parse(await metadataResponse.json())\n if (normalizeIssuer(metadata.issuer) !== expectedIssuer) {\n throw new Error(\n `authorization server issuer mismatch: expected ${expectedIssuer}, received ${metadata.issuer}`,\n )\n }\n if (!metadata.grant_types_supported.includes(OAUTH_DEVICE_GRANT_TYPE)) {\n throw new Error('authorization server does not support the OAuth device grant')\n }\n if (!metadata.token_endpoint_auth_methods_supported.includes('none')) {\n throw new Error('authorization server does not support public OAuth clients')\n }\n const body: Record<string, string> = { client_id: options.clientId }\n if (options.tokenName !== undefined) body.token_name = options.tokenName\n const response = await postOAuthForm(fetchImpl, metadata.device_authorization_endpoint, body)\n if (!response.ok) throw await ApiError.fromResponse(response)\n const data = zDeviceAuthStartResponse.parse(await response.json())\n return {\n deviceCode: data.device_code,\n userCode: data.user_code,\n verificationUri: new URL(data.verification_uri, metadata.issuer).toString(),\n verificationUriComplete: new URL(data.verification_uri_complete, metadata.issuer).toString(),\n expiresInSeconds: data.expires_in,\n intervalSeconds: data.interval,\n tokenEndpoint: metadata.token_endpoint,\n clientId: options.clientId,\n }\n}\n\nfunction defaultSleep(seconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, seconds * 1000))\n}\n\nexport interface PollDeviceAuthTokenOptions {\n tokenEndpoint: string\n clientId: string\n deviceCode: string\n intervalSeconds: number\n fetch?: typeof fetch\n sleep?: (seconds: number) => Promise<void>\n}\n\nexport async function pollDeviceAuthToken(options: PollDeviceAuthTokenOptions): Promise<string> {\n const fetchImpl = options.fetch ?? fetch\n const sleep = options.sleep ?? defaultSleep\n let interval = options.intervalSeconds\n while (true) {\n await sleep(interval)\n const response = await postOAuthForm(fetchImpl, options.tokenEndpoint, {\n grant_type: OAUTH_DEVICE_GRANT_TYPE,\n device_code: options.deviceCode,\n client_id: options.clientId,\n })\n if (response.status === 200) {\n return zDeviceAuthApprovedResponse.parse(await response.json()).access_token\n }\n if (response.status === 400) {\n const failure = zDeviceAuthErrorResponse.safeParse(\n await response\n .clone()\n .json()\n .catch((): unknown => undefined),\n )\n if (failure.success) {\n if (failure.data.error === 'authorization_pending') continue\n if (failure.data.error === 'slow_down') {\n interval += 5\n continue\n }\n if (failure.data.error === 'access_denied' || failure.data.error === 'expired_token') {\n throw new DeviceAuthError(failure.data.error)\n }\n }\n }\n throw await ApiError.fromResponse(response)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAQO,IAAM,wBAAN,cAAoC,MAAM;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAMG;AACD,UAAM,SAAS,EAAE,MAAM,CAAC;AACxB,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,YAAY;AACjB,SAAK,SAAS;AAAA,EAChB;AACF;AAcA,IAAM,qBAAqB;AAE3B,SAAS,oBAAoB,OAAgB,QAA6C;AACxF,MAAI,iBAAiB,sBAAuB,QAAO;AACnD,MAAI,QAAQ,YAAY,QAAS,iBAAiB,SAAS,MAAM,SAAS,cAAe;AACvF,WAAO,IAAI,sBAAsB;AAAA,MAC/B,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW;AAAA,MACX,OAAO;AAAA,IACT,CAAC;AAAA,EACH;AACA,QAAM,QAAQ,iBAAiB,QAAQ,mBAAmB,KAAK,MAAM,OAAO,IAAI;AAChF,QAAM,SAAS,QAAQ,CAAC,KAAK,OAAO,SAAY,OAAO,SAAS,MAAM,CAAC,GAAG,EAAE;AAC5E,MAAI,UAAU,MAAM;AAClB,WAAO,IAAI,sBAAsB;AAAA,MAC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MAAM,QAAQ;AACpB,UAAM,WAAW,MAAM,cAAc,WAAW,QAAQ,eAAe;AAAA,MACrE,YAAY;AAAA,MACZ,aAAa,QAAQ;AAAA,MACrB,WAAW,QAAQ;AAAA,IACrB,CAAC;AACD,QAAI,SAAS,WAAW,KAAK;AAC3B,aAAO,4BAA4B,MAAM,MAAM,SAAS,KAAK,CAAC,EAAE;AAAA,IAClE;AACA,QAAI,SAAS,WAAW,KAAK;AAC3B,YAAM,UAAU,yBAAyB;AAAA,QACvC,MAAM,SACH,MAAM,EACN,KAAK,EACL,MAAM,MAAe,MAAS;AAAA,MACnC;AACA,UAAI,QAAQ,SAAS;AACnB,YAAI,QAAQ,KAAK,UAAU,wBAAyB;AACpD,YAAI,QAAQ,KAAK,UAAU,aAAa;AACtC,sBAAY;AACZ;AAAA,QACF;AACA,YAAI,QAAQ,KAAK,UAAU,mBAAmB,QAAQ,KAAK,UAAU,iBAAiB;AACpF,gBAAM,IAAI,gBAAgB,QAAQ,KAAK,KAAK;AAAA,QAC9C;AAAA,MACF;AAAA,IACF;AACA,UAAM,MAAM,SAAS,aAAa,QAAQ;AAAA,EAC5C;AACF;","names":["error","client","client"]}
|
|
1
|
+
{"version":3,"sources":["../src/agent-event-stream.ts","../src/server-sent-events.ts","../src/auth.ts","../src/cli-login-token.ts","../src/client.ts","../src/device.ts"],"sourcesContent":["import * as z from 'zod'\n\nimport type { OmnaraClient } from './client'\nimport { ApiError, type ApiErrorCode, zErrorResponse } from './errors'\nimport type {\n AgentEventStreamData,\n Error as ApiErrorBody,\n StreamEventsData,\n} from './generated/types.gen'\nimport { zAgentSequence, zStreamEventsResponse } from './generated/zod.gen'\nimport { zJsonText } from './json-body'\nimport { createServerSentEventParser } from './server-sent-events'\nimport { relaxedSchema } from './validate-response'\n\nexport type AgentEventStreamFrame = Exclude<AgentEventStreamData, ApiErrorBody>\nexport type AgentEventStreamErrorKind = 'api' | 'client' | 'contract' | 'http' | 'transport'\n\nexport class AgentEventStreamError extends Error {\n readonly kind: AgentEventStreamErrorKind\n readonly status: number | undefined\n readonly code: ApiErrorCode | undefined\n readonly retryAfterMs: number | undefined\n\n constructor({\n kind,\n message,\n status,\n code,\n retryAfterMs,\n cause,\n }: {\n kind: AgentEventStreamErrorKind\n message: string\n status?: number\n code?: ApiErrorCode\n retryAfterMs?: number\n cause?: unknown\n }) {\n super(message, { cause })\n this.name = 'AgentEventStreamError'\n this.kind = kind\n this.status = status\n this.code = code\n this.retryAfterMs = retryAfterMs\n }\n}\n\nexport type AgentEventStreamConnectionState =\n | { state: 'connected'; reconnected: boolean }\n | {\n state: 'reconnecting'\n attempt: number\n delayMs: number\n error: AgentEventStreamError\n }\n\nexport interface OpenAgentEventStreamOptions {\n client: OmnaraClient\n path: StreamEventsData['path']\n query?: StreamEventsData['query']\n headers?: StreamEventsData['headers']\n signal?: AbortSignal\n onConnectionStateChange?: (state: AgentEventStreamConnectionState) => void\n}\n\nconst streamUrl: StreamEventsData['url'] =\n '/orgs/{orgID}/projects/{projectID}/agents/{agentID}/events/stream'\nconst retryBaseDelayMs = 1_000\nconst retryMaximumDelayMs = 30_000\nconst retryAfterMaximumDelayMs = 60_000\nconst stableConnectionResetMs = 10_000\n// Must stay above the server heartbeat interval (agentEventStreamHeartbeatInterval in\n// internal/httpapi/agent_runtime_routes.go); a quieter server would look stalled.\nconst stallTimeoutMs = 35_000\n\n// event_kind stays open so kinds newer than this SDK still advance the cursor.\nconst zDurableCursor = z.object({\n event_kind: z.string(),\n sequence: zAgentSequence,\n})\nconst relaxedStreamEvent = relaxedSchema(zStreamEventsResponse)\nconst zStreamFrame = zJsonText.pipe(relaxedStreamEvent)\n\nfunction streamError(\n kind: AgentEventStreamErrorKind,\n message: string,\n options: { status?: number; code?: ApiErrorCode; retryAfterMs?: number; cause?: unknown } = {},\n): AgentEventStreamError {\n return new AgentEventStreamError({ kind, message, ...options })\n}\n\nfunction retryable(error: AgentEventStreamError): boolean {\n if (error.kind === 'transport') return true\n if (error.kind === 'api') return error.code === 'service_unavailable'\n return (\n error.kind === 'http' &&\n (error.status === 408 || error.status === 429 || (error.status != null && error.status >= 500))\n )\n}\n\nfunction parseRetryAfter(value: string | null, now = Date.now()): number | undefined {\n if (value == null) return undefined\n const trimmed = value.trim()\n if (/^\\d+$/.test(trimmed)) {\n return Math.min(Number.parseInt(trimmed, 10) * 1_000, retryAfterMaximumDelayMs)\n }\n const at = Date.parse(trimmed)\n if (Number.isNaN(at)) return undefined\n return Math.min(Math.max(at - now, 0), retryAfterMaximumDelayMs)\n}\n\nfunction reconnectDelay(attempt: number): number {\n const maximum = Math.min(retryBaseDelayMs * 2 ** Math.max(attempt - 1, 0), retryMaximumDelayMs)\n return Math.floor(Math.random() * maximum)\n}\n\nfunction abortableDelay(ms: number, signal?: AbortSignal): Promise<boolean> {\n if (signal?.aborted === true) return Promise.resolve(false)\n return new Promise((resolve) => {\n const timeout = globalThis.setTimeout(() => {\n finish(true)\n }, ms)\n const onAbort = () => {\n finish(false)\n }\n function finish(completed: boolean) {\n globalThis.clearTimeout(timeout)\n signal?.removeEventListener('abort', onAbort)\n resolve(completed)\n }\n signal?.addEventListener('abort', onAbort, { once: true })\n })\n}\n\ntype ConnectionEvent = { kind: 'connected' } | { kind: 'message'; data: string }\ntype ConnectionOptions = Pick<OpenAgentEventStreamOptions, 'path' | 'query' | 'headers'>\n\nasync function settleWithin<T>(\n pending: Promise<T>,\n ms: number,\n attempt: AbortController,\n): Promise<T> {\n let timer: ReturnType<typeof globalThis.setTimeout> | undefined\n const deadline = new Promise<never>((_, reject) => {\n timer = globalThis.setTimeout(() => {\n const error = streamError('transport', 'Agent event stream stalled')\n attempt.abort(error)\n reject(error)\n }, ms)\n })\n try {\n return await Promise.race([pending, deadline])\n } finally {\n globalThis.clearTimeout(timer)\n }\n}\n\nasync function* openConnection(\n client: OmnaraClient,\n { path, query, headers }: ConnectionOptions,\n callerSignal: AbortSignal | undefined,\n): AsyncGenerator<ConnectionEvent, never> {\n const attempt = new AbortController()\n const signal =\n callerSignal == null ? attempt.signal : AbortSignal.any([callerSignal, attempt.signal])\n let reader: ReadableStreamDefaultReader<Uint8Array> | undefined\n try {\n const dispatch = { started: false }\n const { error, response }: { error?: unknown; response?: Response } = await settleWithin(\n client.request({\n method: 'GET',\n url: streamUrl,\n path,\n query,\n headers: { Accept: 'text/event-stream', ...headers },\n parseAs: 'stream',\n signal,\n throwOnError: false,\n fetch: (input, init) => {\n dispatch.started = true\n return (client.getConfig().fetch ?? globalThis.fetch)(input, init)\n },\n }),\n stallTimeoutMs,\n attempt,\n )\n if (response == null) {\n throw dispatch.started\n ? streamError('transport', 'Agent event stream disconnected', { cause: error })\n : streamError('client', 'Agent event stream request could not be prepared', {\n cause: error,\n })\n }\n if (response.status !== 200) {\n const apiError = await ApiError.fromResponse(response)\n await response.body?.cancel().catch(() => undefined)\n throw streamError('http', apiError.message, {\n status: response.status,\n code: apiError.code,\n retryAfterMs: parseRetryAfter(response.headers.get('Retry-After')),\n cause: apiError,\n })\n }\n if (error !== undefined) {\n throw streamError('client', 'Agent event stream response was rejected', { cause: error })\n }\n const mediaType = response.headers.get('Content-Type')?.split(';', 1)[0]?.trim().toLowerCase()\n if (mediaType !== 'text/event-stream') {\n await response.body?.cancel().catch(() => undefined)\n throw streamError('contract', 'Agent event stream response is not text/event-stream')\n }\n if (response.body == null) {\n throw streamError('contract', 'Agent event stream response has no body')\n }\n reader = response.body.getReader()\n signal.throwIfAborted()\n yield { kind: 'connected' }\n const parser = createServerSentEventParser()\n const decoder = new TextDecoder()\n while (true) {\n signal.throwIfAborted()\n const chunk = await settleWithin(reader.read(), stallTimeoutMs, attempt)\n if (chunk.done) throw streamError('transport', 'Agent event stream ended unexpectedly')\n for (const data of parser.push(decoder.decode(chunk.value, { stream: true }))) {\n yield { kind: 'message', data }\n }\n }\n } catch (error) {\n throw error instanceof AgentEventStreamError\n ? error\n : streamError('transport', 'Agent event stream disconnected', { cause: error })\n } finally {\n await reader?.cancel().catch(() => undefined)\n }\n}\n\nfunction decodeFrame(text: string): AgentEventStreamData {\n const frame = zStreamFrame.safeParse(text)\n if (!frame.success) {\n throw streamError('contract', 'Agent event stream received data outside its API contract', {\n cause: frame.error,\n })\n }\n return frame.data\n}\n\nfunction isErrorFrame(data: AgentEventStreamData): data is ApiErrorBody {\n return zErrorResponse.safeParse(data).success\n}\n\nfunction durableSequence(data: AgentEventStreamData): number | undefined {\n const cursor = zDurableCursor.safeParse(data)\n return cursor.success ? cursor.data.sequence : undefined\n}\n\nexport async function* openAgentEventStream({\n client,\n path,\n query,\n headers,\n signal,\n onConnectionStateChange,\n}: OpenAgentEventStreamOptions): AsyncGenerator<AgentEventStreamFrame> {\n let cursor: number | undefined\n let consecutiveFailures = 0\n let hasRetried = false\n\n while (true) {\n let connectedAt: number | undefined\n try {\n const connection = openConnection(\n client,\n {\n path,\n query,\n headers: cursor == null ? headers : { ...headers, 'Last-Event-ID': cursor },\n },\n signal,\n )\n for await (const event of connection) {\n if (event.kind === 'connected') {\n connectedAt = Date.now()\n onConnectionStateChange?.({ state: 'connected', reconnected: hasRetried })\n continue\n }\n const data = decodeFrame(event.data)\n signal?.throwIfAborted()\n if (isErrorFrame(data)) throw streamError('api', data.error, { code: data.code })\n const sequence = durableSequence(data)\n if (sequence != null && cursor != null && sequence <= cursor) continue\n yield data\n consecutiveFailures = 0\n if (sequence != null) cursor = sequence\n }\n } catch (error) {\n if (signal?.aborted === true) return\n if (!(error instanceof AgentEventStreamError) || !retryable(error)) throw error\n if (connectedAt != null && Date.now() - connectedAt >= stableConnectionResetMs) {\n consecutiveFailures = 0\n }\n consecutiveFailures += 1\n const delayMs = Math.max(reconnectDelay(consecutiveFailures), error.retryAfterMs ?? 0)\n onConnectionStateChange?.({\n state: 'reconnecting',\n attempt: consecutiveFailures,\n delayMs,\n error,\n })\n hasRetried = true\n if (!(await abortableDelay(delayMs, signal))) return\n }\n }\n}\n","export interface ServerSentEventParser {\n push(chunk: string): string[]\n}\n\n// Dispatch rules: https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation\nexport function createServerSentEventParser(): ServerSentEventParser {\n // The message in progress is kept as chunks so a large frame is never rescanned or recopied.\n let parts: string[] = []\n let pendingCarriageReturn = false\n return {\n push(chunk) {\n if (chunk === '') return []\n // A CR that ended the previous chunk already counted as a line ending; drop the LF that pairs with it.\n let text = pendingCarriageReturn && chunk.startsWith('\\n') ? chunk.slice(1) : chunk\n pendingCarriageReturn = chunk.endsWith('\\r')\n text = text.replaceAll(/\\r\\n?/g, '\\n')\n // A blank line can straddle chunks: move a buffered trailing LF into this chunk so one scan sees it.\n const last = parts.at(-1)\n if (last?.endsWith('\\n') === true) {\n parts[parts.length - 1] = last.slice(0, -1)\n text = `\\n${text}`\n }\n const messages: string[] = []\n let from = 0\n for (let end = text.indexOf('\\n\\n'); end !== -1; end = text.indexOf('\\n\\n', from)) {\n const data = messageData(parts.join('') + text.slice(from, end))\n parts = []\n if (data != null) messages.push(data)\n from = end + 2\n }\n if (from < text.length) parts.push(text.slice(from))\n return messages\n },\n }\n}\n\nfunction messageData(block: string): string | undefined {\n const data: string[] = []\n for (const line of block.split('\\n')) {\n if (line !== 'data' && !line.startsWith('data:')) continue\n const value = line.slice('data:'.length)\n data.push(value.startsWith(' ') ? value.slice(1) : value)\n }\n return data.length === 0 ? undefined : data.join('\\n')\n}\n","export interface AuthStrategy {\n authenticate(request: Request): void | Promise<void>\n}\n\ntype TokenResolver = () => string | Promise<string>\n\nfunction isTokenResolver(token: string | TokenResolver): token is TokenResolver {\n return typeof token === 'function'\n}\n\nexport function bearerToken(token: string | TokenResolver): AuthStrategy {\n const resolve = isTokenResolver(token) ? token : () => token\n return {\n async authenticate(request) {\n const value = await resolve()\n if (value) request.headers.set('Authorization', `Bearer ${value}`)\n },\n }\n}\n","import type { PersonalAccessToken } from './generated/types.gen'\n\nconst cliLoginTokenPrefix = 'Omnara CLI'\nconst cliLoginTokenHostSeparator = ' on '\n\nexport function cliLoginTokenName(hostName?: string): string {\n if (hostName === undefined) return cliLoginTokenPrefix\n return `${cliLoginTokenPrefix}${cliLoginTokenHostSeparator}${hostName}`\n}\n\nexport function isCliLoginToken(token: PersonalAccessToken): boolean {\n return token.revoked_at == null && token.name.startsWith(cliLoginTokenPrefix)\n}\n\nexport function cliLoginTokenHost(token: PersonalAccessToken): string {\n const rest = token.name.slice(cliLoginTokenPrefix.length)\n if (!rest.startsWith(cliLoginTokenHostSeparator)) return token.name\n const host = rest.slice(cliLoginTokenHostSeparator.length).trim()\n return host === '' ? token.name : host\n}\n","import type { AuthStrategy } from './auth'\nimport { ApiError } from './errors'\nimport { createClient, createConfig } from './generated/client'\nimport { client as specDefaultClient } from './generated/client.gen'\n\nexport type OmnaraClient = ReturnType<typeof createClient>\n\nexport interface OmnaraClientOptions {\n baseUrl?: string\n credentials?: RequestCredentials\n auth?: AuthStrategy\n headers?: Record<string, string>\n fetch?: typeof fetch\n}\n\ntype HttpMethod =\n | 'connect'\n | 'delete'\n | 'get'\n | 'head'\n | 'options'\n | 'patch'\n | 'post'\n | 'put'\n | 'trace'\n\nconst httpMethods = [\n 'connect',\n 'delete',\n 'get',\n 'head',\n 'options',\n 'patch',\n 'post',\n 'put',\n 'trace',\n] satisfies HttpMethod[]\n\nfunction withoutClientSelector<O extends object>(options: O): O {\n const stripped = { ...options }\n Reflect.deleteProperty(stripped, 'client')\n return stripped\n}\n\n// The generated client leaks per-call options — including the `client`\n// selector — into the Request init, which throws on Deno and Bun (they\n// reserve the `client` init key). Drop the key before dispatch.\n// TODO: remove once hey-api/hey-api#4177 is fixed and regenerated.\nfunction stripClientSelector(client: OmnaraClient): void {\n const { request } = client\n client.request = (options) => request(withoutClientSelector(options))\n for (const method of httpMethods) {\n const dispatch = client[method]\n client[method] = (options) => dispatch(withoutClientSelector(options))\n const sseDispatch = client.sse[method]\n client.sse[method] = (options) => sseDispatch(withoutClientSelector(options))\n }\n}\n\nexport function createOmnaraClient(options: OmnaraClientOptions = {}): OmnaraClient {\n const client = createClient(\n createConfig({\n throwOnError: true,\n }),\n )\n client.setConfig({\n baseUrl: options.baseUrl ?? specDefaultClient.getConfig().baseUrl,\n credentials: options.credentials,\n headers: options.headers,\n fetch: options.fetch,\n })\n const { auth } = options\n if (auth) {\n client.interceptors.request.use(async (request) => {\n await auth.authenticate(request)\n return request\n })\n }\n client.interceptors.response.use(async (response) => {\n if (!response.ok) throw await ApiError.fromResponse(response)\n return response\n })\n stripClientSelector(client)\n return client\n}\n","import * as z from 'zod'\n\nimport { ApiError } from './errors'\nimport { zJsonText } from './json-body'\n\nexport const OMNARA_CLI_OAUTH_CLIENT_ID = 'omnara-cli'\nexport const OAUTH_DEVICE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:device_code'\n\nconst zAuthorizationServerMetadata = z.object({\n issuer: z.url(),\n device_authorization_endpoint: z.url(),\n token_endpoint: z.url(),\n grant_types_supported: z.array(z.string()),\n token_endpoint_auth_methods_supported: z.array(z.string()),\n})\n\nconst zDeviceAuthStartResponse = z.object({\n device_code: z.string().min(1),\n user_code: z.string().min(1),\n verification_uri: z.string().min(1),\n verification_uri_complete: z.string().min(1),\n expires_in: z.number().int().positive(),\n interval: z.number().int().positive(),\n})\n\nconst zDeviceAuthErrorResponse = z.object({\n error: z.string().min(1),\n error_description: z.string().optional(),\n})\nconst zDeviceAuthFailure = zJsonText.pipe(zDeviceAuthErrorResponse)\n\nconst zDeviceAuthApprovedResponse = z.object({\n access_token: z.string().min(1),\n token_type: z.string(),\n})\n\nexport type DeviceAuthFailureCode = 'access_denied' | 'expired_token'\n\nconst DEVICE_AUTH_FAILURE_MESSAGES = {\n access_denied: 'the login request was denied',\n expired_token: 'the login request expired before it was approved',\n} satisfies Record<DeviceAuthFailureCode, string>\n\nexport class DeviceAuthError extends Error {\n readonly code: DeviceAuthFailureCode\n\n constructor(code: DeviceAuthFailureCode) {\n super(DEVICE_AUTH_FAILURE_MESSAGES[code])\n this.name = 'DeviceAuthError'\n this.code = code\n }\n}\n\nexport interface DeviceAuthStart {\n deviceCode: string\n userCode: string\n verificationUri: string\n verificationUriComplete: string\n expiresInSeconds: number\n intervalSeconds: number\n tokenEndpoint: string\n clientId: string\n}\n\nasync function postOAuthForm(\n fetchImpl: typeof fetch,\n endpoint: string,\n body: URLSearchParams,\n): Promise<Response> {\n return fetchImpl(endpoint, {\n method: 'POST',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body: body.toString(),\n })\n}\n\nexport interface StartDeviceAuthOptions {\n issuerUrl: string\n clientId: string\n tokenName?: string\n fetch?: typeof fetch\n}\n\nfunction normalizeIssuer(raw: string): string {\n const issuer = new URL(raw)\n if (\n issuer.username !== '' ||\n issuer.password !== '' ||\n issuer.pathname !== '/' ||\n issuer.search !== '' ||\n issuer.hash !== ''\n ) {\n throw new Error('authorization server issuer must be an origin')\n }\n return issuer.origin\n}\n\nexport async function startDeviceAuth(options: StartDeviceAuthOptions): Promise<DeviceAuthStart> {\n const fetchImpl = options.fetch ?? fetch\n const expectedIssuer = normalizeIssuer(options.issuerUrl)\n const metadataUrl = new URL('/.well-known/oauth-authorization-server', `${expectedIssuer}/`)\n const metadataResponse = await fetchImpl(metadataUrl, { headers: { Accept: 'application/json' } })\n if (!metadataResponse.ok) throw await ApiError.fromResponse(metadataResponse)\n const metadata = zAuthorizationServerMetadata.parse(await metadataResponse.json())\n if (normalizeIssuer(metadata.issuer) !== expectedIssuer) {\n throw new Error(\n `authorization server issuer mismatch: expected ${expectedIssuer}, received ${metadata.issuer}`,\n )\n }\n if (!metadata.grant_types_supported.includes(OAUTH_DEVICE_GRANT_TYPE)) {\n throw new Error('authorization server does not support the OAuth device grant')\n }\n if (!metadata.token_endpoint_auth_methods_supported.includes('none')) {\n throw new Error('authorization server does not support public OAuth clients')\n }\n const body = new URLSearchParams({ client_id: options.clientId })\n if (options.tokenName !== undefined) body.set('token_name', options.tokenName)\n const response = await postOAuthForm(fetchImpl, metadata.device_authorization_endpoint, body)\n if (!response.ok) throw await ApiError.fromResponse(response)\n const data = zDeviceAuthStartResponse.parse(await response.json())\n return {\n deviceCode: data.device_code,\n userCode: data.user_code,\n verificationUri: new URL(data.verification_uri, metadata.issuer).toString(),\n verificationUriComplete: new URL(data.verification_uri_complete, metadata.issuer).toString(),\n expiresInSeconds: data.expires_in,\n intervalSeconds: data.interval,\n tokenEndpoint: metadata.token_endpoint,\n clientId: options.clientId,\n }\n}\n\nfunction defaultSleep(seconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, seconds * 1000))\n}\n\nexport interface PollDeviceAuthTokenOptions {\n tokenEndpoint: string\n clientId: string\n deviceCode: string\n intervalSeconds: number\n fetch?: typeof fetch\n sleep?: (seconds: number) => Promise<void>\n}\n\nexport async function pollDeviceAuthToken(options: PollDeviceAuthTokenOptions): Promise<string> {\n const fetchImpl = options.fetch ?? fetch\n const sleep = options.sleep ?? defaultSleep\n let interval = options.intervalSeconds\n while (true) {\n await sleep(interval)\n const response = await postOAuthForm(\n fetchImpl,\n options.tokenEndpoint,\n new URLSearchParams({\n grant_type: OAUTH_DEVICE_GRANT_TYPE,\n device_code: options.deviceCode,\n client_id: options.clientId,\n }),\n )\n if (response.status === 200) {\n return zDeviceAuthApprovedResponse.parse(await response.json()).access_token\n }\n if (response.status === 400) {\n const failure = zDeviceAuthFailure.safeParse(await response.clone().text())\n if (failure.success) {\n if (failure.data.error === 'authorization_pending') continue\n if (failure.data.error === 'slow_down') {\n interval += 5\n continue\n }\n if (failure.data.error === 'access_denied' || failure.data.error === 'expired_token') {\n throw new DeviceAuthError(failure.data.error)\n }\n }\n }\n throw await ApiError.fromResponse(response)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,OAAO;;;ACKZ,SAAS,8BAAqD;AAEnE,MAAI,QAAkB,CAAC;AACvB,MAAI,wBAAwB;AAC5B,SAAO;AAAA,IACL,KAAK,OAAO;AACV,UAAI,UAAU,GAAI,QAAO,CAAC;AAE1B,UAAI,OAAO,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AM;AAAA,MACrB;AAAA,MACA,QAAQ;AAAA,MACR,IAAI,gBAAgB;AAAA,QAClB,YAAY;AAAA,QACZ,aAAa,QAAQ;AAAA,QACrB,WAAW,QAAQ;AAAA,MACrB,CAAC;AAAA,IACH;AACA,QAAI,SAAS,WAAW,KAAK;AAC3B,aAAO,4BAA4B,MAAM,MAAM,SAAS,KAAK,CAAC,EAAE;AAAA,IAClE;AACA,QAAI,SAAS,WAAW,KAAK;AAC3B,YAAM,UAAU,mBAAmB,UAAU,MAAM,SAAS,MAAM,EAAE,KAAK,CAAC;AAC1E,UAAI,QAAQ,SAAS;AACnB,YAAI,QAAQ,KAAK,UAAU,wBAAyB;AACpD,YAAI,QAAQ,KAAK,UAAU,aAAa;AACtC,sBAAY;AACZ;AAAA,QACF;AACA,YAAI,QAAQ,KAAK,UAAU,mBAAmB,QAAQ,KAAK,UAAU,iBAAiB;AACpF,gBAAM,IAAI,gBAAgB,QAAQ,KAAK,KAAK;AAAA,QAC9C;AAAA,MACF;AAAA,IACF;AACA,UAAM,MAAM,SAAS,aAAa,QAAQ;AAAA,EAC5C;AACF;","names":["client","client","z"]}
|
|
@@ -106,13 +106,13 @@ type ModelProviderAuthKind = 'bearer_token' | 'api_key_header';
|
|
|
106
106
|
type ModelProviderApiVariant = 'default' | 'openrouter' | 'bedrock';
|
|
107
107
|
type ModelProviderApiVariantResponse = string;
|
|
108
108
|
/**
|
|
109
|
-
* Extra top-level JSON fields to include in provider requests for this configured model. Use this for provider-specific settings that Omnara does not expose as typed fields, such as OpenRouter `provider` routing or sampling parameters. Omnara still controls the fields it needs to run the agent correctly, including the model, prompt/messages, streaming, tools, output-token limit, and selected reasoning policy. Provider passthrough values for those fields are ignored. For OpenRouter routing options, see https://openrouter.ai/docs/guides/routing/provider-selection and general request parameters at https://openrouter.ai/docs/api/reference/parameters.
|
|
109
|
+
* Extra top-level JSON fields to include in provider requests for this configured model. Use this for provider-specific settings that Omnara does not expose as typed fields, such as OpenRouter `provider` routing or sampling parameters. Omnara still controls the fields it needs to run the agent correctly, including the model, prompt/messages, streaming, tools, output-token limit, and selected reasoning policy. Provider passthrough values for those fields are ignored. For OpenRouter routing options, see https://openrouter.ai/docs/guides/routing/provider-selection and general request parameters at https://openrouter.ai/docs/api/reference/parameters. Omnara-managed OpenRouter providers accept only sampling, reasoning, and per-model routing options here.
|
|
110
110
|
*/
|
|
111
111
|
type ModelApiVariantOptions = {
|
|
112
112
|
[key: string]: unknown;
|
|
113
113
|
};
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* Prompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.
|
|
116
116
|
*/
|
|
117
117
|
type ModelCacheRetention = 'none' | 'short' | 'long';
|
|
118
118
|
/**
|
|
@@ -236,7 +236,7 @@ type CreateConfiguredModelRequest = {
|
|
|
236
236
|
*/
|
|
237
237
|
name: ResourceName;
|
|
238
238
|
/**
|
|
239
|
-
* Exact provider model slug sent to the provider endpoint.
|
|
239
|
+
* Exact provider model slug sent to the provider endpoint. Free-pool, `:online`, and preset model ids are not accepted on Omnara-managed OpenRouter providers.
|
|
240
240
|
*/
|
|
241
241
|
provider_model_slug: string;
|
|
242
242
|
/**
|
|
@@ -287,7 +287,7 @@ type UpdateConfiguredModelRequest = {
|
|
|
287
287
|
*/
|
|
288
288
|
name?: ResourceName;
|
|
289
289
|
/**
|
|
290
|
-
* Exact provider model slug sent to the provider endpoint.
|
|
290
|
+
* Exact provider model slug sent to the provider endpoint. Free-pool, `:online`, and preset model ids are not accepted on Omnara-managed OpenRouter providers.
|
|
291
291
|
*/
|
|
292
292
|
provider_model_slug?: string;
|
|
293
293
|
/**
|
|
@@ -355,7 +355,7 @@ type ConfiguredModel = {
|
|
|
355
355
|
* Default per-request output-token cap sent to the provider unless an agent config overrides it.
|
|
356
356
|
*/
|
|
357
357
|
default_max_output_tokens?: number | null;
|
|
358
|
-
default_cache_retention
|
|
358
|
+
default_cache_retention?: ModelCacheRetention;
|
|
359
359
|
/**
|
|
360
360
|
* Whether this configured model can receive tool definitions and emit tool calls.
|
|
361
361
|
*/
|
|
@@ -1049,6 +1049,7 @@ type ListAgentProfilesResponse = {
|
|
|
1049
1049
|
type AgentCronTriggerTarget = {
|
|
1050
1050
|
type: 'agent';
|
|
1051
1051
|
agent_id: AgentId;
|
|
1052
|
+
delivery_mode?: CronTriggerDeliveryMode;
|
|
1052
1053
|
};
|
|
1053
1054
|
type AgentProfileCronTriggerTarget = {
|
|
1054
1055
|
type: 'profile';
|
|
@@ -1071,6 +1072,10 @@ type CronTimezone = string;
|
|
|
1071
1072
|
* Go text/template rendered on each firing to produce the message sent to the target. The template receives a `trigger` value with `name`, `fired_at`, and `last_fired_at` fields. Rendering is capped at 64 KiB of output and one second of wall-clock time, and `printf` width and precision specifiers are capped at 1024; a firing whose template fails to render is recorded in `failure_report` without sending a message.
|
|
1072
1073
|
*/
|
|
1073
1074
|
type CronMessageTemplate = string;
|
|
1075
|
+
/**
|
|
1076
|
+
* Each firing sends a queued or steering message to the agent. Defaults to `queued` on creation; omitted updates preserve the current mode.
|
|
1077
|
+
*/
|
|
1078
|
+
type CronTriggerDeliveryMode = 'queued' | 'steering';
|
|
1074
1079
|
type CronTriggerFailureReport = {
|
|
1075
1080
|
/**
|
|
1076
1081
|
* Why the most recent failed firing did not deliver a message.
|
|
@@ -1091,6 +1096,10 @@ type CreateCronTriggerRequest = {
|
|
|
1091
1096
|
enabled?: boolean;
|
|
1092
1097
|
};
|
|
1093
1098
|
type UpdateCronTriggerRequest = {
|
|
1099
|
+
/**
|
|
1100
|
+
* Updates target options. The target type and ID cannot change. Omitted delivery_mode preserves the current mode.
|
|
1101
|
+
*/
|
|
1102
|
+
target?: CronTriggerTarget;
|
|
1094
1103
|
name?: ResourceName;
|
|
1095
1104
|
cron?: CronExpression;
|
|
1096
1105
|
timezone?: CronTimezone;
|
|
@@ -1521,6 +1530,13 @@ type ModelOutputEvent = {
|
|
|
1521
1530
|
model_call_context_id: ModelCallContextId;
|
|
1522
1531
|
stop_reason: ModelOutputStopReason;
|
|
1523
1532
|
content_blocks: Array<ModelOutputContentBlock>;
|
|
1533
|
+
usage?: ModelUsage;
|
|
1534
|
+
/**
|
|
1535
|
+
* Facts the provider reported about this call, keyed by provider (for example `openrouter.provider` names the upstream that served an OpenRouter request). Present only when the provider reported something.
|
|
1536
|
+
*/
|
|
1537
|
+
provider_metadata?: {
|
|
1538
|
+
[key: string]: unknown;
|
|
1539
|
+
};
|
|
1524
1540
|
created_at: Timestamp;
|
|
1525
1541
|
};
|
|
1526
1542
|
type ToolResultEvent = {
|
|
@@ -1607,6 +1623,9 @@ type ModelOutputBlockStopDelta = {
|
|
|
1607
1623
|
kind: 'block_stop';
|
|
1608
1624
|
block_index: number;
|
|
1609
1625
|
};
|
|
1626
|
+
/**
|
|
1627
|
+
* Token counts the provider reported for one model call. Cache and reasoning counts are omitted when the provider reported none.
|
|
1628
|
+
*/
|
|
1610
1629
|
type ModelUsage = {
|
|
1611
1630
|
input_tokens_total?: number;
|
|
1612
1631
|
uncached_input_tokens?: number;
|
|
@@ -1665,7 +1684,7 @@ type ModelOutputDelta = {
|
|
|
1665
1684
|
event: ModelOutputStreamDelta;
|
|
1666
1685
|
};
|
|
1667
1686
|
/**
|
|
1668
|
-
* One JSON payload from the event stream: an authoritative durable event, a best-effort tool-call update, a best-effort model-output preview, or a
|
|
1687
|
+
* One JSON payload from the event stream: an authoritative durable event, a best-effort tool-call update, a best-effort model-output preview, or a stream-closing error. The wire response ends after an error payload; `service_unavailable` is retryable and other current codes are terminal.
|
|
1669
1688
|
*/
|
|
1670
1689
|
type AgentEventStreamData = AgentEvent | ToolCallUpdate | ModelOutputDelta | Error;
|
|
1671
1690
|
type ListAgentEventsResponse = {
|
|
@@ -1797,6 +1816,14 @@ type AgentInteraction = {
|
|
|
1797
1816
|
org_id: OrganizationId;
|
|
1798
1817
|
project_id: ProjectId;
|
|
1799
1818
|
agent_id: AgentId;
|
|
1819
|
+
/**
|
|
1820
|
+
* The tool call that is waiting on this interaction — the guarded tool for a permission, or the ask_question call for a question.
|
|
1821
|
+
*/
|
|
1822
|
+
tool_call_id: ToolCallId;
|
|
1823
|
+
/**
|
|
1824
|
+
* The tool whose invocation a permission interaction guards. Present only when interaction_kind is permission.
|
|
1825
|
+
*/
|
|
1826
|
+
tool_name?: string;
|
|
1800
1827
|
interaction_kind: AgentInteractionKind;
|
|
1801
1828
|
state: AgentInteractionState;
|
|
1802
1829
|
request: InteractionForm;
|
|
@@ -8403,7 +8430,7 @@ type StreamEventsErrors = {
|
|
|
8403
8430
|
type StreamEventsError = StreamEventsErrors[keyof StreamEventsErrors];
|
|
8404
8431
|
type StreamEventsResponses = {
|
|
8405
8432
|
/**
|
|
8406
|
-
* Server-sent event stream. Durable frames use `agent_input`, `model_output`, `tool_result`, or `context_checkpoint` as the SSE event name and set the SSE `id` field to the event's `sequence`, which reconnects can replay via `Last-Event-ID`. Best-effort tool lifecycle updates use `tool_call_update`, model previews use `model_output_delta`, and
|
|
8433
|
+
* Server-sent event stream. Durable frames use `agent_input`, `model_output`, `tool_result`, or `context_checkpoint` as the SSE event name and set the SSE `id` field to the event's `sequence`, which reconnects can replay via `Last-Event-ID`. Best-effort tool lifecycle updates use `tool_call_update`, model previews use `model_output_delta`, and stream-closing errors use `error`; none carries an SSE `id`, so reconnects resume from the last durable event. The response closes after every `error` frame. Raw clients reconnect when the error's stable code is `service_unavailable` and treat other current codes as terminal. Heartbeats are SSE comments and carry no JSON payload.
|
|
8407
8434
|
*/
|
|
8408
8435
|
200: AgentEventStreamData;
|
|
8409
8436
|
};
|
|
@@ -13594,4 +13621,4 @@ declare namespace sdk_gen {
|
|
|
13594
13621
|
export { type sdk_gen_Options as Options, sdk_gen_acceptInvitation as acceptInvitation, sdk_gen_archiveAgent as archiveAgent, sdk_gen_bootstrapDaemon as bootstrapDaemon, sdk_gen_cancelAgent as cancelAgent, sdk_gen_cancelQueuedBacklogInput as cancelQueuedBacklogInput, sdk_gen_connectByoMachine as connectByoMachine, sdk_gen_createAgent as createAgent, sdk_gen_createAgentConfig as createAgentConfig, sdk_gen_createAgentInput as createAgentInput, sdk_gen_createAgentProfile as createAgentProfile, sdk_gen_createByoMachineDaemonToken as createByoMachineDaemonToken, sdk_gen_createConfiguredModel as createConfiguredModel, sdk_gen_createCronTrigger as createCronTrigger, sdk_gen_createIntegrationOAuthSetup as createIntegrationOAuthSetup, sdk_gen_createMachine as createMachine, sdk_gen_createMachinePool as createMachinePool, sdk_gen_createModelProviderConfig as createModelProviderConfig, sdk_gen_createOrgApiKey as createOrgApiKey, sdk_gen_createOrgInvitation as createOrgInvitation, sdk_gen_createOrganization as createOrganization, sdk_gen_createPersonalAccessToken as createPersonalAccessToken, sdk_gen_createProject as createProject, sdk_gen_createProjectMachineGrant as createProjectMachineGrant, sdk_gen_createProjectMachinePoolGrant as createProjectMachinePoolGrant, sdk_gen_createProjectModelGrant as createProjectModelGrant, sdk_gen_createSecret as createSecret, sdk_gen_createSecretGrant as createSecretGrant, sdk_gen_createSecretVersion as createSecretVersion, sdk_gen_createSkill as createSkill, sdk_gen_createSkillGrant as createSkillGrant, sdk_gen_createSlackSetup as createSlackSetup, sdk_gen_declineInvitation as declineInvitation, sdk_gen_deleteAgentProfile as deleteAgentProfile, sdk_gen_deleteConfiguredModel as deleteConfiguredModel, sdk_gen_deleteCronTrigger as deleteCronTrigger, sdk_gen_deleteCurrentUser as deleteCurrentUser, sdk_gen_deleteIntegrationInstall as deleteIntegrationInstall, sdk_gen_deleteMachine as deleteMachine, sdk_gen_deleteMachinePool as deleteMachinePool, sdk_gen_deleteModelProviderConfig as deleteModelProviderConfig, sdk_gen_deleteOrgInvitation as deleteOrgInvitation, sdk_gen_deleteOrganization as deleteOrganization, sdk_gen_deleteProject as deleteProject, sdk_gen_deleteProjectMachineGrant as deleteProjectMachineGrant, sdk_gen_deleteProjectMachinePoolGrant as deleteProjectMachinePoolGrant, sdk_gen_deleteProjectModelGrant as deleteProjectModelGrant, sdk_gen_deleteSecret as deleteSecret, sdk_gen_deleteSecretGrant as deleteSecretGrant, sdk_gen_deleteSkill as deleteSkill, sdk_gen_deleteSkillGrant as deleteSkillGrant, sdk_gen_demoteSteeringInputToQueued as demoteSteeringInputToQueued, sdk_gen_downloadDaemonArtifact as downloadDaemonArtifact, sdk_gen_endMachineDaemonRuntime as endMachineDaemonRuntime, sdk_gen_getActor as getActor, sdk_gen_getAgent as getAgent, sdk_gen_getAgentConfig as getAgentConfig, sdk_gen_getAgentProfile as getAgentProfile, sdk_gen_getArtifact as getArtifact, sdk_gen_getArtifactContent as getArtifactContent, sdk_gen_getCronTrigger as getCronTrigger, sdk_gen_getCurrentUser as getCurrentUser, sdk_gen_getDaemonSkillArchive as getDaemonSkillArchive, sdk_gen_getMachine as getMachine, sdk_gen_getMachinePool as getMachinePool, sdk_gen_getModelCatalog as getModelCatalog, sdk_gen_getModelProviderConfig as getModelProviderConfig, sdk_gen_getOrgApiKey as getOrgApiKey, sdk_gen_getOrgOverview as getOrgOverview, sdk_gen_getProjectAvailableSecret as getProjectAvailableSecret, sdk_gen_getProjectMachinePoolGrant as getProjectMachinePoolGrant, sdk_gen_getSecret as getSecret, sdk_gen_getSkill as getSkill, sdk_gen_getToolCatalog as getToolCatalog, sdk_gen_listActors as listActors, sdk_gen_listAgentInteractions as listAgentInteractions, sdk_gen_listAgentProfiles as listAgentProfiles, sdk_gen_listAgents as listAgents, sdk_gen_listByoMachineDaemonTokens as listByoMachineDaemonTokens, sdk_gen_listConfiguredModels as listConfiguredModels, sdk_gen_listCronTriggers as listCronTriggers, sdk_gen_listEvents as listEvents, sdk_gen_listIntegrationInstalls as listIntegrationInstalls, sdk_gen_listMachinePools as listMachinePools, sdk_gen_listMcpServerTools as listMcpServerTools, sdk_gen_listMcpServers as listMcpServers, sdk_gen_listMemberProjectAccess as listMemberProjectAccess, sdk_gen_listModelProviderConfigs as listModelProviderConfigs, sdk_gen_listOrgApiKeyProjectAccess as listOrgApiKeyProjectAccess, sdk_gen_listOrgApiKeys as listOrgApiKeys, sdk_gen_listOrgInvitations as listOrgInvitations, sdk_gen_listOrgMembers as listOrgMembers, sdk_gen_listPendingInvitations as listPendingInvitations, sdk_gen_listPersonalAccessTokens as listPersonalAccessTokens, sdk_gen_listProjectAvailableSecrets as listProjectAvailableSecrets, sdk_gen_listProjectAvailableSkills as listProjectAvailableSkills, sdk_gen_listProjectMachineGrants as listProjectMachineGrants, sdk_gen_listProjectMachinePoolGrants as listProjectMachinePoolGrants, sdk_gen_listProjectModelGrants as listProjectModelGrants, sdk_gen_listQueuedBacklogInputs as listQueuedBacklogInputs, sdk_gen_listSecretGrants as listSecretGrants, sdk_gen_listSecrets as listSecrets, sdk_gen_listSkillGrants as listSkillGrants, sdk_gen_listSkills as listSkills, sdk_gen_listToolCalls as listToolCalls, sdk_gen_listTurnEvents as listTurnEvents, sdk_gen_listTurns as listTurns, sdk_gen_listVisibleMachines as listVisibleMachines, sdk_gen_listVisibleProjectMachines as listVisibleProjectMachines, sdk_gen_listVisibleProjects as listVisibleProjects, sdk_gen_moveQueuedBacklogInput as moveQueuedBacklogInput, sdk_gen_promoteQueuedInputToSteering as promoteQueuedInputToSteering, sdk_gen_putActor as putActor, sdk_gen_recordMachineFailure as recordMachineFailure, sdk_gen_registerMachineDaemonRuntime as registerMachineDaemonRuntime, sdk_gen_removeMemberProjectAccess as removeMemberProjectAccess, sdk_gen_removeOrgApiKeyProjectRole as removeOrgApiKeyProjectRole, sdk_gen_removeOrgMember as removeOrgMember, sdk_gen_renameAgentProfile as renameAgentProfile, sdk_gen_resolveAgentInteraction as resolveAgentInteraction, sdk_gen_revokeMachineDaemonToken as revokeMachineDaemonToken, sdk_gen_revokeOrgApiKey as revokeOrgApiKey, sdk_gen_revokePersonalAccessToken as revokePersonalAccessToken, sdk_gen_setMemberProjectAccess as setMemberProjectAccess, sdk_gen_setOrgApiKeyProjectRole as setOrgApiKeyProjectRole, sdk_gen_sleepMachineDaemonRuntime as sleepMachineDaemonRuntime, sdk_gen_socketMachineDaemonRuntime as socketMachineDaemonRuntime, sdk_gen_startSecretMcpoAuth as startSecretMcpoAuth, sdk_gen_streamEvents as streamEvents, sdk_gen_submitToolCallResult as submitToolCallResult, sdk_gen_updateAgentConfig as updateAgentConfig, sdk_gen_updateAgentProfile as updateAgentProfile, sdk_gen_updateConfiguredModel as updateConfiguredModel, sdk_gen_updateCronTrigger as updateCronTrigger, sdk_gen_updateMachine as updateMachine, sdk_gen_updateMachinePool as updateMachinePool, sdk_gen_updateModelProviderConfig as updateModelProviderConfig, sdk_gen_updateOrgApiKey as updateOrgApiKey, sdk_gen_updateOrgMember as updateOrgMember, sdk_gen_updateProjectMachinePoolGrant as updateProjectMachinePoolGrant, sdk_gen_updateProjectModelGrant as updateProjectModelGrant, sdk_gen_updateSecret as updateSecret, sdk_gen_updateSkill as updateSkill, sdk_gen_uploadDaemonArtifact as uploadDaemonArtifact };
|
|
13595
13622
|
}
|
|
13596
13623
|
|
|
13597
|
-
export { type CreateOrgApiKeyResponse2 as $, type AcceptInvitationData as A, type BootstrapDaemonData as B, type CancelAgentData as C, type CreateAgentProfileError as D, type CreateByoMachineDaemonTokenData as E, type CreateByoMachineDaemonTokenResponse as F, type CreateByoMachineDaemonTokenError as G, type CreateConfiguredModelData as H, type CreateConfiguredModelResponse as I, type CreateConfiguredModelError as J, type CreateCronTriggerData as K, type CreateCronTriggerResponse as L, type CreateCronTriggerError as M, type CreateIntegrationOAuthSetupData as N, type Options as O, type CreateIntegrationOAuthSetupResponse as P, type CreateIntegrationOAuthSetupError as Q, type CreateMachineData as R, type CreateMachineResponse as S, type CreateMachineError as T, type CreateMachinePoolData as U, type CreateMachinePoolResponse as V, type CreateMachinePoolError as W, type CreateModelProviderConfigData as X, type CreateModelProviderConfigResponse2 as Y, type CreateModelProviderConfigError as Z, type CreateOrgApiKeyData as _, type AcceptInvitationResponse as a, type DeleteMachinePoolError as a$, type CreateOrgApiKeyError as a0, type CreateOrgInvitationData as a1, type CreateOrgInvitationResponse as a2, type CreateOrgInvitationError as a3, type CreateOrganizationData as a4, type CreateOrganizationResponse2 as a5, type CreateOrganizationError as a6, type CreatePersonalAccessTokenData as a7, type CreatePersonalAccessTokenResponse2 as a8, type CreatePersonalAccessTokenError as a9, type CreateSkillError as aA, type CreateSlackSetupData as aB, type CreateSlackSetupResponse as aC, type CreateSlackSetupError as aD, type DeclineInvitationData as aE, type DeclineInvitationResponse as aF, type DeclineInvitationError as aG, type DeleteAgentProfileData as aH, type DeleteAgentProfileResponse as aI, type DeleteAgentProfileError as aJ, type DeleteConfiguredModelData as aK, type DeleteConfiguredModelResponse as aL, type DeleteConfiguredModelError as aM, type DeleteCronTriggerData as aN, type DeleteCronTriggerResponse as aO, type DeleteCronTriggerError as aP, type DeleteCurrentUserData as aQ, type DeleteCurrentUserResponse as aR, type DeleteCurrentUserError as aS, type DeleteIntegrationInstallData as aT, type DeleteIntegrationInstallResponse as aU, type DeleteIntegrationInstallError as aV, type DeleteMachineData as aW, type DeleteMachineResponse as aX, type DeleteMachineError as aY, type DeleteMachinePoolData as aZ, type DeleteMachinePoolResponse as a_, type CreateProjectMachineGrantData as aa, type CreateProjectMachineGrantResponse2 as ab, type CreateProjectMachineGrantError as ac, type CreateProjectMachinePoolGrantData as ad, type CreateProjectMachinePoolGrantResponse as ae, type CreateProjectMachinePoolGrantError as af, type CreateProjectModelGrantData as ag, type CreateProjectModelGrantResponse as ah, type CreateProjectModelGrantError as ai, type CreateProjectData as aj, type CreateProjectResponse as ak, type CreateProjectError as al, type CreateSecretGrantData as am, type CreateSecretGrantResponse as an, type CreateSecretGrantError as ao, type CreateSecretData as ap, type CreateSecretResponse as aq, type CreateSecretError as ar, type CreateSecretVersionData as as, type CreateSecretVersionResponse as at, type CreateSecretVersionError as au, type CreateSkillGrantData as av, type CreateSkillGrantResponse as aw, type CreateSkillGrantError as ax, type CreateSkillData as ay, type CreateSkillResponse as az, type AcceptInvitationError as b, type GetCurrentUserError as b$, type DeleteModelProviderConfigData as b0, type DeleteModelProviderConfigResponse as b1, type DeleteModelProviderConfigError as b2, type DeleteOrgInvitationData as b3, type DeleteOrgInvitationResponse as b4, type DeleteOrgInvitationError as b5, type DeleteOrganizationData as b6, type DeleteOrganizationResponse as b7, type DeleteOrganizationError as b8, type DeleteProjectMachineGrantData as b9, type DownloadDaemonArtifactData as bA, type DownloadDaemonArtifactError as bB, type EndMachineDaemonRuntimeData as bC, type EndMachineDaemonRuntimeResponse as bD, type EndMachineDaemonRuntimeError as bE, type GetActorData as bF, type Actor as bG, type GetActorError as bH, type GetAgentConfigData as bI, type AgentConfig as bJ, type GetAgentConfigError as bK, type GetAgentData as bL, type GetAgentResponse as bM, type GetAgentError as bN, type GetAgentProfileData as bO, type AgentProfile as bP, type GetAgentProfileError as bQ, type GetArtifactContentData as bR, type GetArtifactContentError as bS, type GetArtifactData as bT, type Artifact as bU, type GetArtifactError as bV, type GetCronTriggerData as bW, type CronTrigger as bX, type GetCronTriggerError as bY, type GetCurrentUserData as bZ, type CurrentUser as b_, type DeleteProjectMachineGrantResponse as ba, type DeleteProjectMachineGrantError as bb, type DeleteProjectMachinePoolGrantData as bc, type DeleteProjectMachinePoolGrantResponse as bd, type DeleteProjectMachinePoolGrantError as be, type DeleteProjectModelGrantData as bf, type DeleteProjectModelGrantResponse as bg, type DeleteProjectModelGrantError as bh, type DeleteProjectData as bi, type DeleteProjectResponse as bj, type DeleteProjectError as bk, type DeleteSecretGrantData as bl, type DeleteSecretGrantResponse as bm, type DeleteSecretGrantError as bn, type DeleteSecretData as bo, type DeleteSecretResponse as bp, type DeleteSecretError as bq, type DeleteSkillGrantData as br, type DeleteSkillGrantResponse as bs, type DeleteSkillGrantError as bt, type DeleteSkillData as bu, type DeleteSkillResponse as bv, type DeleteSkillError as bw, type DemoteSteeringInputToQueuedData as bx, type DemoteSteeringInputToQueuedResponse as by, type DemoteSteeringInputToQueuedError as bz, type ArchiveAgentData as c, type ListMachinePoolsResponse as c$, type GetDaemonSkillArchiveData as c0, type GetDaemonSkillArchiveError as c1, type GetMachineData as c2, type Machine as c3, type GetMachineError as c4, type GetMachinePoolData as c5, type MachinePool as c6, type GetMachinePoolError as c7, type GetModelCatalogData as c8, type ModelCatalog as c9, type ListActorsResponse as cA, type ListActorsError as cB, type ListAgentInteractionsData as cC, type ListAgentInteractionsResponse as cD, type ListAgentInteractionsError as cE, type ListAgentProfilesData as cF, type ListAgentProfilesResponse as cG, type ListAgentProfilesError as cH, type ListAgentsData as cI, type ListAgentsResponse as cJ, type ListAgentsError as cK, type ListByoMachineDaemonTokensData as cL, type ListMachineDaemonTokensResponse as cM, type ListByoMachineDaemonTokensError as cN, type ListConfiguredModelsData as cO, type ConfiguredModelList as cP, type ListConfiguredModelsError as cQ, type ListCronTriggersData as cR, type ListCronTriggersResponse as cS, type ListCronTriggersError as cT, type ListEventsData as cU, type ListAgentEventsResponse as cV, type ListEventsError as cW, type ListIntegrationInstallsData as cX, type ListIntegrationInstallsResponse as cY, type ListIntegrationInstallsError as cZ, type ListMachinePoolsData as c_, type GetModelCatalogError as ca, type GetModelProviderConfigData as cb, type ModelProviderConfig as cc, type GetModelProviderConfigError as cd, type GetOrgApiKeyData as ce, type OrgApiKey as cf, type GetOrgApiKeyError as cg, type GetOrgOverviewData as ch, type OrgOverviewResponse as ci, type GetOrgOverviewError as cj, type GetProjectAvailableSecretData as ck, type ProjectSecretAccess as cl, type GetProjectAvailableSecretError as cm, type GetProjectMachinePoolGrantData as cn, type ProjectMachinePoolGrant as co, type GetProjectMachinePoolGrantError as cp, type GetSecretData as cq, type Secret as cr, type GetSecretError as cs, type GetSkillData as ct, type Skill as cu, type GetSkillError as cv, type GetToolCatalogData as cw, type ToolCatalog as cx, type GetToolCatalogError as cy, type ListActorsData as cz, type ArchiveAgentResponse as d, type ListTurnEventsData as d$, type ListMachinePoolsError as d0, type ListMcpServerToolsData as d1, type ListMcpServerToolsResponse as d2, type ListMcpServerToolsError as d3, type ListMcpServersData as d4, type ListMcpServersResponse as d5, type ListMcpServersError as d6, type ListMemberProjectAccessData as d7, type ListProjectMembershipGrantsResponse as d8, type ListMemberProjectAccessError as d9, type ListProjectMachineGrantsData as dA, type ListProjectMachineGrantsResponse as dB, type ListProjectMachineGrantsError as dC, type ListProjectMachinePoolGrantsData as dD, type ListProjectMachinePoolGrantsResponse as dE, type ListProjectMachinePoolGrantsError as dF, type ListProjectModelGrantsData as dG, type ListProjectModelGrantsResponse as dH, type ListProjectModelGrantsError as dI, type ListQueuedBacklogInputsData as dJ, type ListAgentInputsResponse as dK, type ListQueuedBacklogInputsError as dL, type ListSecretGrantsData as dM, type ListSecretGrantsResponse as dN, type ListSecretGrantsError as dO, type ListSecretsData as dP, type ListSecretsResponse as dQ, type ListSecretsError as dR, type ListSkillGrantsData as dS, type ListSkillGrantsResponse as dT, type ListSkillGrantsError as dU, type ListSkillsData as dV, type ListSkillsResponse as dW, type ListSkillsError as dX, type ListToolCallsData as dY, type ListToolCallsResponse as dZ, type ListToolCallsError as d_, type ListModelProviderConfigsData as da, type ModelProviderConfigList as db, type ListModelProviderConfigsError as dc, type ListOrgApiKeyProjectAccessData as dd, type ListOrgApiKeyProjectAccessError as de, type ListOrgApiKeysData as df, type ListOrgApiKeysResponse as dg, type ListOrgApiKeysError as dh, type ListOrgInvitationsData as di, type ListOrgInvitationsResponse as dj, type ListOrgInvitationsError as dk, type ListOrgMembersData as dl, type ListOrgMembersResponse as dm, type ListOrgMembersError as dn, type ListPendingInvitationsData as dp, type ListPendingInvitationsError as dq, type ListPersonalAccessTokensData as dr, type ListPersonalAccessTokensResponse as ds, type ListPersonalAccessTokensError as dt, type ListProjectAvailableSecretsData as du, type ListProjectSecretAccessesResponse as dv, type ListProjectAvailableSecretsError as dw, type ListProjectAvailableSkillsData as dx, type ListProjectSkillAccessesResponse as dy, type ListProjectAvailableSkillsError as dz, type ArchiveAgentError as e, type StartSecretMcpoAuthData as e$, type ListTurnEventsResponse as e0, type ListTurnEventsError as e1, type ListTurnsData as e2, type ListAgentTurnsResponse as e3, type ListTurnsError as e4, type ListVisibleMachinesData as e5, type ListVisibleMachinesResponse as e6, type ListVisibleMachinesError as e7, type ListVisibleProjectMachinesData as e8, type ListVisibleProjectMachinesError as e9, type RemoveOrgMemberError as eA, type RenameAgentProfileData as eB, type RenameAgentProfileResponse as eC, type RenameAgentProfileError as eD, type ResolveAgentInteractionData as eE, type ResolveAgentInteractionResponse as eF, type ResolveAgentInteractionError as eG, type RevokeMachineDaemonTokenData as eH, type RevokeMachineDaemonTokenResponse as eI, type RevokeMachineDaemonTokenError as eJ, type RevokeOrgApiKeyData as eK, type RevokeOrgApiKeyResponse as eL, type RevokeOrgApiKeyError as eM, type RevokePersonalAccessTokenData as eN, type RevokePersonalAccessTokenResponse as eO, type RevokePersonalAccessTokenError as eP, type SetMemberProjectAccessData as eQ, type SetMemberProjectAccessResponse as eR, type SetMemberProjectAccessError as eS, type SetOrgApiKeyProjectRoleData as eT, type SetOrgApiKeyProjectRoleResponse as eU, type SetOrgApiKeyProjectRoleError as eV, type SleepMachineDaemonRuntimeData as eW, type SleepMachineDaemonRuntimeResponse as eX, type SleepMachineDaemonRuntimeError as eY, type SocketMachineDaemonRuntimeData as eZ, type SocketMachineDaemonRuntimeError as e_, type ListVisibleProjectsData as ea, type ListProjectsResponse as eb, type ListVisibleProjectsError as ec, type MoveQueuedBacklogInputData as ed, type MoveQueuedBacklogInputResponse as ee, type MoveQueuedBacklogInputError as ef, type PromoteQueuedInputToSteeringData as eg, type PromoteQueuedInputToSteeringResponse as eh, type PromoteQueuedInputToSteeringError as ei, type PutActorData as ej, type PutActorResponse as ek, type PutActorError as el, type RecordMachineFailureData as em, type RecordMachineFailureResponse as en, type RecordMachineFailureError as eo, type RegisterMachineDaemonRuntimeData as ep, type RegisterMachineDaemonRuntimeResponse as eq, type RegisterMachineDaemonRuntimeError as er, type RemoveMemberProjectAccessData as es, type RemoveMemberProjectAccessResponse as et, type RemoveMemberProjectAccessError as eu, type RemoveOrgApiKeyProjectRoleData as ev, type RemoveOrgApiKeyProjectRoleResponse as ew, type RemoveOrgApiKeyProjectRoleError as ex, type RemoveOrgMemberData as ey, type RemoveOrgMemberResponse as ez, type BootstrapDaemonResponse2 as f, type AgentCronTriggerTarget as f$, type StartSecretMcpoAuthResponse as f0, type StartSecretMcpoAuthError as f1, type SubmitToolCallResultData as f2, type SubmitToolCallResultResponse2 as f3, type SubmitToolCallResultError as f4, type UpdateAgentConfigData as f5, type UpdateAgentConfigResponse2 as f6, type UpdateAgentConfigError as f7, type UpdateAgentProfileData as f8, type UpdateAgentProfileResponse as f9, type UpdateProjectModelGrantResponse as fA, type UpdateProjectModelGrantError as fB, type UpdateSecretData as fC, type UpdateSecretResponse as fD, type UpdateSecretError as fE, type UpdateSkillData as fF, type UpdateSkillResponse as fG, type UpdateSkillError as fH, type UploadDaemonArtifactData as fI, type UploadDaemonArtifactResponse as fJ, type UploadDaemonArtifactError as fK, type Config as fL, type Client as fM, type StreamEventsData as fN, type AgentEventStreamData as fO, type PersonalAccessToken as fP, type Error as fQ, type AgentConfigErrorIssue as fR, type AcceptInvitationErrors as fS, type AcceptInvitationResponses as fT, type ActorId as fU, type ActorProvider as fV, type Agent as fW, type AgentConfigId as fX, type AgentConfigModel as fY, type AgentControlType as fZ, type AgentCount as f_, type UpdateAgentProfileError as fa, type UpdateConfiguredModelData as fb, type UpdateConfiguredModelResponse as fc, type UpdateConfiguredModelError as fd, type UpdateCronTriggerData as fe, type UpdateCronTriggerResponse as ff, type UpdateCronTriggerError as fg, type UpdateMachineData as fh, type UpdateMachineResponse as fi, type UpdateMachineError as fj, type UpdateMachinePoolData as fk, type UpdateMachinePoolResponse as fl, type UpdateMachinePoolError as fm, type UpdateModelProviderConfigData as fn, type UpdateModelProviderConfigResponse as fo, type UpdateModelProviderConfigError as fp, type UpdateOrgApiKeyData as fq, type UpdateOrgApiKeyResponse as fr, type UpdateOrgApiKeyError as fs, type UpdateOrgMemberData as ft, type UpdateOrgMemberResponse as fu, type UpdateOrgMemberError as fv, type UpdateProjectMachinePoolGrantData as fw, type UpdateProjectMachinePoolGrantResponse as fx, type UpdateProjectMachinePoolGrantError as fy, type UpdateProjectModelGrantData as fz, type BootstrapDaemonError as g, type CreateAgentProfileRequest as g$, type AgentEvent as g0, type AgentEventId as g1, type AgentId as g2, type AgentInput as g3, type AgentInputContentBlock as g4, type AgentInputDeliveryMode as g5, type AgentInputEnvelope as g6, type AgentInputEvent as g7, type AgentInputId as g8, type AgentInputKind as g9, type CancelAgentResponse as gA, type CancelAgentResponses as gB, type CancelQueuedBacklogInputErrors as gC, type CancelQueuedBacklogInputResponses as gD, type ClientErrorCode as gE, type ClientOptions$1 as gF, type ConfiguredModel as gG, type ConfiguredModelId as gH, type ConfiguredModelRevisionId as gI, type ConfiguredModelSummary as gJ, type ConnectByoMachineErrors as gK, type ConnectByoMachineRequest as gL, type ConnectByoMachineResponse as gM, type ConnectByoMachineResponses as gN, type ContentBlockMetadata as gO, type ContextCheckpointEvent as gP, type ContextCheckpointId as gQ, type CreateAgentConfigErrors as gR, type CreateAgentConfigRequest as gS, type CreateAgentConfigResponses as gT, type CreateAgentErrors as gU, type CreateAgentInputContentBlock as gV, type CreateAgentInputDeliveryMode as gW, type CreateAgentInputErrors as gX, type CreateAgentInputRequest as gY, type CreateAgentInputResponses as gZ, type CreateAgentProfileErrors as g_, type AgentInteraction as ga, type AgentInteractionId as gb, type AgentInteractionKind as gc, type AgentInteractionState as gd, type AgentMachineBinding as ge, type AgentMachineBindingId as gf, type AgentMachineBindingKind as gg, type AgentMachineBindingState as gh, type AgentMcpConnection as gi, type AgentModel as gj, type AgentName as gk, type AgentProfileCronTriggerTarget as gl, type AgentProfileId as gm, type AgentSequence as gn, type AgentSequenceCursor as go, type AgentTurn as gp, type AgentTurnId as gq, type ArchiveAgentErrors as gr, type ArchiveAgentResponses as gs, type ArtifactId as gt, type AwsCredentialsSecretMaterial as gu, type BootstrapDaemonErrors as gv, type BootstrapDaemonResponse as gw, type BootstrapDaemonResponses as gx, type CancelAgentErrors as gy, type CancelAgentRequest as gz, type CancelAgentResponse2 as h, type CreateSkillGrantErrors as h$, type CreateAgentProfileResponses as h0, type CreateAgentRequest as h1, type CreateAgentResponses as h2, type CreateByoMachineDaemonTokenErrors as h3, type CreateByoMachineDaemonTokenResponses as h4, type CreateConfiguredModelErrors as h5, type CreateConfiguredModelRequest as h6, type CreateConfiguredModelResponses as h7, type CreateCronTriggerErrors as h8, type CreateCronTriggerRequest as h9, type CreateOrganizationResponse as hA, type CreateOrganizationResponses as hB, type CreatePersonalAccessTokenErrors as hC, type CreatePersonalAccessTokenRequest as hD, type CreatePersonalAccessTokenResponse as hE, type CreatePersonalAccessTokenResponses as hF, type CreateProjectErrors as hG, type CreateProjectMachineGrantErrors as hH, type CreateProjectMachineGrantRequest as hI, type CreateProjectMachineGrantResponse as hJ, type CreateProjectMachineGrantResponses as hK, type CreateProjectMachinePoolGrantErrors as hL, type CreateProjectMachinePoolGrantRequest as hM, type CreateProjectMachinePoolGrantResponses as hN, type CreateProjectModelGrantErrors as hO, type CreateProjectModelGrantRequest as hP, type CreateProjectModelGrantResponses as hQ, type CreateProjectRequest as hR, type CreateProjectResponses as hS, type CreateSecretErrors as hT, type CreateSecretGrantErrors as hU, type CreateSecretGrantResponses as hV, type CreateSecretRequest as hW, type CreateSecretResponses as hX, type CreateSecretVersionErrors as hY, type CreateSecretVersionResponses as hZ, type CreateSkillErrors as h_, type CreateCronTriggerResponses as ha, type CreateIntegrationOAuthSetupErrors as hb, type CreateIntegrationOAuthSetupRequest as hc, type CreateIntegrationOAuthSetupResponses as hd, type CreateMachineDaemonTokenRequest as he, type CreateMachineDaemonTokenResponse as hf, type CreateMachineErrors as hg, type CreateMachinePoolErrors as hh, type CreateMachinePoolRequest as hi, type CreateMachinePoolRequestBase as hj, type CreateMachinePoolResponses as hk, type CreateMachineRequest as hl, type CreateMachineResponses as hm, type CreateModelProviderConfigErrors as hn, type CreateModelProviderConfigRequest as ho, type CreateModelProviderConfigResponse as hp, type CreateModelProviderConfigResponses as hq, type CreateOrgApiKeyErrors as hr, type CreateOrgApiKeyRequest as hs, type CreateOrgApiKeyResponse as ht, type CreateOrgApiKeyResponses as hu, type CreateOrgInvitationErrors as hv, type CreateOrgInvitationRequest as hw, type CreateOrgInvitationResponses as hx, type CreateOrganizationErrors as hy, type CreateOrganizationRequest as hz, type CancelAgentError as i, type DirectSkillAvailability as i$, type CreateSkillGrantResponses as i0, type CreateSkillRequest as i1, type CreateSkillResponses as i2, type CreateSlackSetupErrors as i3, type CreateSlackSetupRequest as i4, type CreateSlackSetupResponses as i5, type CreatedResourceListSort as i6, type CronExpression as i7, type CronMessageTemplate as i8, type CronTimezone as i9, type DeleteMachinePoolResponses as iA, type DeleteMachineResponses as iB, type DeleteModelProviderConfigErrors as iC, type DeleteModelProviderConfigResponses as iD, type DeleteOrgInvitationErrors as iE, type DeleteOrgInvitationResponses as iF, type DeleteOrganizationErrors as iG, type DeleteOrganizationResponses as iH, type DeleteProjectErrors as iI, type DeleteProjectMachineGrantErrors as iJ, type DeleteProjectMachineGrantResponses as iK, type DeleteProjectMachinePoolGrantErrors as iL, type DeleteProjectMachinePoolGrantResponses as iM, type DeleteProjectModelGrantErrors as iN, type DeleteProjectModelGrantResponses as iO, type DeleteProjectResponses as iP, type DeleteSecretErrors as iQ, type DeleteSecretGrantErrors as iR, type DeleteSecretGrantResponses as iS, type DeleteSecretResponses as iT, type DeleteSkillErrors as iU, type DeleteSkillGrantErrors as iV, type DeleteSkillGrantResponses as iW, type DeleteSkillResponses as iX, type DemoteSteeringInputToQueuedErrors as iY, type DemoteSteeringInputToQueuedResponses as iZ, type DirectSecretAvailability as i_, type CronTriggerFailureReport as ia, type CronTriggerId as ib, type CronTriggerTarget as ic, type CurrentAgentResponse as id, type CurrentUserIdentity as ie, type CurrentUserOrg as ig, type DaemonRuntime as ih, type DaemonRuntimeId as ii, type DaemonRuntimeReconciliation as ij, type DaemonRuntimeState as ik, type DeclineInvitationErrors as il, type DeclineInvitationResponses as im, type DeleteAgentProfileErrors as io, type DeleteAgentProfileResponses as ip, type DeleteConfiguredModelErrors as iq, type DeleteConfiguredModelResponses as ir, type DeleteCronTriggerErrors as is, type DeleteCronTriggerResponses as it, type DeleteCurrentUserErrors as iu, type DeleteCurrentUserResponses as iv, type DeleteIntegrationInstallErrors as iw, type DeleteIntegrationInstallResponses as ix, type DeleteMachineErrors as iy, type DeleteMachinePoolErrors as iz, type CancelQueuedBacklogInputData as j, type GetSkillErrors as j$, type DiscoveredProviderModel as j0, type DownloadDaemonArtifactErrors as j1, type DownloadDaemonArtifactResponse as j2, type DownloadDaemonArtifactResponses as j3, type EndMachineDaemonRuntimeErrors as j4, type EndMachineDaemonRuntimeResponses as j5, type ErrorContentBlock as j6, type ExternalActorParams as j7, type GenericSecretMaterial as j8, type GetActorErrors as j9, type GetMachineErrors as jA, type GetMachinePoolErrors as jB, type GetMachinePoolResponse as jC, type GetMachinePoolResponses as jD, type GetMachineResponse as jE, type GetMachineResponses as jF, type GetModelCatalogErrors as jG, type GetModelCatalogResponse as jH, type GetModelCatalogResponses as jI, type GetModelProviderConfigErrors as jJ, type GetModelProviderConfigResponse as jK, type GetModelProviderConfigResponses as jL, type GetOrgApiKeyErrors as jM, type GetOrgApiKeyResponse as jN, type GetOrgApiKeyResponses as jO, type GetOrgOverviewErrors as jP, type GetOrgOverviewResponse as jQ, type GetOrgOverviewResponses as jR, type GetProjectAvailableSecretErrors as jS, type GetProjectAvailableSecretResponse as jT, type GetProjectAvailableSecretResponses as jU, type GetProjectMachinePoolGrantErrors as jV, type GetProjectMachinePoolGrantResponse as jW, type GetProjectMachinePoolGrantResponses as jX, type GetSecretErrors as jY, type GetSecretResponse as jZ, type GetSecretResponses as j_, type GetActorResponse as ja, type GetActorResponses as jb, type GetAgentConfigErrors as jc, type GetAgentConfigResponse as jd, type GetAgentConfigResponses as je, type GetAgentErrors as jf, type GetAgentProfileErrors as jg, type GetAgentProfileResponse as jh, type GetAgentProfileResponses as ji, type GetAgentResponse2 as jj, type GetAgentResponses as jk, type GetArtifactContentErrors as jl, type GetArtifactContentResponse as jm, type GetArtifactContentResponses as jn, type GetArtifactErrors as jo, type GetArtifactResponse as jp, type GetArtifactResponses as jq, type GetCronTriggerErrors as jr, type GetCronTriggerResponse as js, type GetCronTriggerResponses as jt, type GetCurrentUserErrors as ju, type GetCurrentUserResponse as jv, type GetCurrentUserResponses as jw, type GetDaemonSkillArchiveErrors as jx, type GetDaemonSkillArchiveResponse as jy, type GetDaemonSkillArchiveResponses as jz, type CancelQueuedBacklogInputResponse as k, type ListModelProviderConfigsErrors as k$, type GetSkillResponse as k0, type GetSkillResponses as k1, type GetToolCatalogErrors as k2, type GetToolCatalogResponse as k3, type GetToolCatalogResponses as k4, type GrantedSecretAvailability as k5, type GrantedSkillAvailability as k6, type IdempotencyKey as k7, type InlineMediaContentBlock as k8, type InstallationId as k9, type ListAgentsResponses as kA, type ListByoMachineDaemonTokensErrors as kB, type ListByoMachineDaemonTokensResponse as kC, type ListByoMachineDaemonTokensResponses as kD, type ListConfiguredModelsErrors as kE, type ListConfiguredModelsResponse as kF, type ListConfiguredModelsResponses as kG, type ListCronTriggersErrors as kH, type ListCronTriggersResponse2 as kI, type ListCronTriggersResponses as kJ, type ListEventsErrors as kK, type ListEventsResponse as kL, type ListEventsResponses as kM, type ListIntegrationInstallsErrors as kN, type ListIntegrationInstallsResponse2 as kO, type ListIntegrationInstallsResponses as kP, type ListMachinePoolsErrors as kQ, type ListMachinePoolsResponse2 as kR, type ListMachinePoolsResponses as kS, type ListMcpServerToolsErrors as kT, type ListMcpServerToolsResponses as kU, type ListMcpServersErrors as kV, type ListMcpServersResponse2 as kW, type ListMcpServersResponses as kX, type ListMemberProjectAccessErrors as kY, type ListMemberProjectAccessResponse as kZ, type ListMemberProjectAccessResponses as k_, type IntegrationInstall as ka, type IntegrationInstallAgentProfileFilter as kb, type IntegrationInstallId as kc, type IntegrationInstallOAuthFlowIdFilter as kd, type IntegrationOAuthFlowId as ke, type IntegrationOAuthSetup as kf, type IntegrationTarget as kg, type InteractionAnswer as kh, type InteractionForm as ki, type InteractionFormContextItem as kj, type InteractionFormOption as kk, type InteractionFormQuestion as kl, type InteractionResolution as km, type JsonBlob as kn, type LaunchAgentResponse as ko, type ListActorsErrors as kp, type ListActorsResponse2 as kq, type ListActorsResponses as kr, type ListAgentInteractionsErrors as ks, type ListAgentInteractionsResponse2 as kt, type ListAgentInteractionsResponses as ku, type ListAgentProfilesErrors as kv, type ListAgentProfilesResponse2 as kw, type ListAgentProfilesResponses as kx, type ListAgentsErrors as ky, type ListAgentsResponse2 as kz, type CancelQueuedBacklogInputError as l, type ListVisibleProjectMachinesResponse as l$, type ListModelProviderConfigsResponse as l0, type ListModelProviderConfigsResponses as l1, type ListOrgApiKeyProjectAccessErrors as l2, type ListOrgApiKeyProjectAccessResponse as l3, type ListOrgApiKeyProjectAccessResponses as l4, type ListOrgApiKeysErrors as l5, type ListOrgApiKeysResponse2 as l6, type ListOrgApiKeysResponses as l7, type ListOrgInvitationsErrors as l8, type ListOrgInvitationsResponse2 as l9, type ListQueuedBacklogInputsResponse as lA, type ListQueuedBacklogInputsResponses as lB, type ListSecretGrantsErrors as lC, type ListSecretGrantsResponse2 as lD, type ListSecretGrantsResponses as lE, type ListSecretsErrors as lF, type ListSecretsResponse2 as lG, type ListSecretsResponses as lH, type ListSkillGrantsErrors as lI, type ListSkillGrantsResponse2 as lJ, type ListSkillGrantsResponses as lK, type ListSkillsErrors as lL, type ListSkillsResponse2 as lM, type ListSkillsResponses as lN, type ListToolCallsErrors as lO, type ListToolCallsResponse2 as lP, type ListToolCallsResponses as lQ, type ListTurnEventsErrors as lR, type ListTurnEventsResponse2 as lS, type ListTurnEventsResponses as lT, type ListTurnsErrors as lU, type ListTurnsResponse as lV, type ListTurnsResponses as lW, type ListVisibleMachinesErrors as lX, type ListVisibleMachinesResponse2 as lY, type ListVisibleMachinesResponses as lZ, type ListVisibleProjectMachinesErrors as l_, type ListOrgInvitationsResponses as la, type ListOrgMembersErrors as lb, type ListOrgMembersResponse2 as lc, type ListOrgMembersResponses as ld, type ListPendingInvitationsErrors as le, type ListPendingInvitationsResponse as lf, type ListPendingInvitationsResponses as lg, type ListPersonalAccessTokensErrors as lh, type ListPersonalAccessTokensResponse2 as li, type ListPersonalAccessTokensResponses as lj, type ListProjectAvailableSecretsErrors as lk, type ListProjectAvailableSecretsResponse as ll, type ListProjectAvailableSecretsResponses as lm, type ListProjectAvailableSkillsErrors as ln, type ListProjectAvailableSkillsResponse as lo, type ListProjectAvailableSkillsResponses as lp, type ListProjectMachineGrantsErrors as lq, type ListProjectMachineGrantsResponse2 as lr, type ListProjectMachineGrantsResponses as ls, type ListProjectMachinePoolGrantsErrors as lt, type ListProjectMachinePoolGrantsResponse2 as lu, type ListProjectMachinePoolGrantsResponses as lv, type ListProjectModelGrantsErrors as lw, type ListProjectModelGrantsResponse2 as lx, type ListProjectModelGrantsResponses as ly, type ListQueuedBacklogInputsErrors as lz, type ConnectByoMachineData as m, type ModelOutputToolUseStreamBlock as m$, type ListVisibleProjectMachinesResponses as m0, type ListVisibleProjectsErrors as m1, type ListVisibleProjectsResponse as m2, type ListVisibleProjectsResponses as m3, type MachineAccess as m4, type MachineAccessSource as m5, type MachineAccessSourceKind as m6, type MachineConnectionState as m7, type MachineDaemonToken as m8, type MachineDaemonTokenId as m9, type McpServerToolsRequest as mA, type McpServerToolsResponse as mB, type McpoAuthFlowId as mC, type McpoAuthStartMetadata as mD, type McpoAuthStartRequest as mE, type McpoAuthStartResponse as mF, type MediaRefContentBlock as mG, type Metadata as mH, type ModelApiFormat as mI, type ModelApiVariantOptions as mJ, type ModelCacheRetention as mK, type ModelCallContextId as mL, type ModelOutputBlockStartDelta as mM, type ModelOutputBlockStopDelta as mN, type ModelOutputContentBlock as mO, type ModelOutputDelta as mP, type ModelOutputErrorDelta as mQ, type ModelOutputEvent as mR, type ModelOutputMessageStopDelta as mS, type ModelOutputStopReason as mT, type ModelOutputStreamBlock as mU, type ModelOutputStreamDelta as mV, type ModelOutputTextDelta as mW, type ModelOutputTextStreamBlock as mX, type ModelOutputThinkingDelta as mY, type ModelOutputThinkingStreamBlock as mZ, type ModelOutputToolArgumentsDelta as m_, type MachineFailureReport as ma, type MachineId as mb, type MachineLifecycleState as mc, type MachineMetadata as md, type MachinePoolId as me, type MachinePoolSummary as mf, type MachinePoolUsage as mg, type MachineSourceKind as mh, type MachineSourceKindFilter as mi, type MachineSummary as mj, type MachineSummaryFields as mk, type ManagementKind as ml, type McpRegistryHeader as mm, type McpRegistryIcon as mn, type McpRegistryRemote as mo, type McpRegistryServer as mp, type McpServerAuth as mq, type McpServerAuthBearer as mr, type McpServerAuthHint as ms, type McpServerAuthNone as mt, type McpServerAuthOAuth as mu, type McpServerAuthRequiredError as mv, type McpServerAuthSigV4 as mw, type McpServerInfo as mx, type McpServerTool as my, type McpServerToolAnnotations as mz, type ConnectByoMachineResponse2 as n, type RegisterDaemonRuntimeResponse as n$, type ModelProviderApiVariant as n0, type ModelProviderApiVariantResponse as n1, type ModelProviderAuthKind as n2, type ModelProviderConfigId as n3, type ModelStopReason as n4, type ModelToolCallContentBlock as n5, type ModelUsage as n6, type MoveQueuedBacklogInputErrors as n7, type MoveQueuedBacklogInputRequest as n8, type MoveQueuedBacklogInputResponses as n9, type ProjectFields as nA, type ProjectId as nB, type ProjectMachineGrant as nC, type ProjectMachineGrantId as nD, type ProjectMachineGrantListItem as nE, type ProjectMachineGrantSourceKind as nF, type ProjectMachinePoolGrantId as nG, type ProjectMachinePoolGrantListItem as nH, type ProjectMembershipGrant as nI, type ProjectModelGrant as nJ, type ProjectModelGrantEnvelope as nK, type ProjectModelGrantId as nL, type ProjectModelGrantListItem as nM, type ProjectSecretOwner as nN, type ProjectSecretOwnerInput as nO, type ProjectSkillAccess as nP, type ProjectSkillOwner as nQ, type ProjectSkillOwnerInput as nR, type PromoteQueuedInputToSteeringErrors as nS, type PromoteQueuedInputToSteeringRequest as nT, type PromoteQueuedInputToSteeringResponses as nU, type PutActorErrors as nV, type PutActorResponses as nW, type ReasoningContentBlock as nX, type RecordMachineFailureErrors as nY, type RecordMachineFailureResponses as nZ, type RegisterDaemonRuntimeRequest as n_, type OAuthRefreshSecretMaterial as na, type OAuthTokenSetSecretMaterial as nb, type OkResponse as nc, type OrgApiKeyId as nd, type OrgApiKeyRole as ne, type OrgInvitation as nf, type OrgInvitationId as ng, type OrgMember as nh, type OrgSecretOwner as ni, type OrgSecretOwnerInput as nj, type OrgSkillOwner as nk, type OrgSkillOwnerInput as nl, type Organization as nm, type OrganizationId as nn, type OrganizationMembership as no, type PageCursor as np, type PageLimit as nq, type PersonalAccessTokenId as nr, type ProcessActionId as ns, type ProcessActionReconciliationClaim as nt, type ProcessActionReconciliationDirective as nu, type ProcessId as nv, type ProcessReconciliationClaim as nw, type ProcessReconciliationDirective as nx, type Project as ny, type ProjectAccess as nz, type ConnectByoMachineError as o, type SleepMachineDaemonRuntimeResponses as o$, type RegisterMachineDaemonRuntimeErrors as o0, type RegisterMachineDaemonRuntimeResponses as o1, type RemoveMemberProjectAccessErrors as o2, type RemoveMemberProjectAccessResponses as o3, type RemoveOrgApiKeyProjectRoleErrors as o4, type RemoveOrgApiKeyProjectRoleResponses as o5, type RemoveOrgMemberErrors as o6, type RemoveOrgMemberResponses as o7, type RenameAgentProfileErrors as o8, type RenameAgentProfileRequest as o9, type SecretOwnerInput as oA, type SecretOwnerKindFilter as oB, type SecretOwnerProjectIdFilter as oC, type SecretVersionRequest as oD, type ServerErrorCode as oE, type SetMemberProjectAccessErrors as oF, type SetMemberProjectAccessResponses as oG, type SetOrgApiKeyProjectRoleErrors as oH, type SetOrgApiKeyProjectRoleResponses as oI, type SetProjectMembershipRequest as oJ, type SkillAvailability as oK, type SkillAvailabilitySourceFilter as oL, type SkillFile as oM, type SkillGrant as oN, type SkillGrantCreateRequest as oO, type SkillGrantId as oP, type SkillGrantListItem as oQ, type SkillId as oR, type SkillName as oS, type SkillOwner as oT, type SkillOwnerInput as oU, type SkillOwnerKindFilter as oV, type SkillOwnerProjectIdFilter as oW, type SkillRevisionId as oX, type SlackSetup as oY, type SlackSetupIcon as oZ, type SleepMachineDaemonRuntimeErrors as o_, type RenameAgentProfileResponses as oa, type ResolveAgentInteractionErrors as ob, type ResolveAgentInteractionRequest as oc, type ResolveAgentInteractionResponses as od, type ResourceListSort as oe, type ResourceName as of, type ResourceNameFilter as og, type RevokeMachineDaemonTokenErrors as oh, type RevokeMachineDaemonTokenResponses as oi, type RevokeOrgApiKeyErrors as oj, type RevokeOrgApiKeyResponses as ok, type RevokePersonalAccessTokenErrors as ol, type RevokePersonalAccessTokenResponses as om, type SecretAvailability as on, type SecretAvailabilitySourceFilter as oo, type SecretGrant as op, type SecretGrantCreateRequest as oq, type SecretGrantId as or, type SecretGrantListItem as os, type SecretId as ot, type SecretKind as ou, type SecretKindFilter as ov, type SecretMaterial as ow, type SecretMcpoAuthFlowIdFilter as ox, type SecretMetadataFilter as oy, type SecretOwner as oz, type CreateAgentConfigData as p, type UpdateSecretErrors as p$, type SocketMachineDaemonRuntimeErrors as p0, type StartSecretMcpoAuthErrors as p1, type StartSecretMcpoAuthResponses as p2, type StreamEventsError as p3, type StreamEventsErrors as p4, type StreamEventsResponse as p5, type StreamEventsResponses as p6, type StructuredDataContentBlock as p7, type SubmitToolCallResultErrors as p8, type SubmitToolCallResultRequest as p9, type UpdateConfiguredModelErrors as pA, type UpdateConfiguredModelRequest as pB, type UpdateConfiguredModelResponses as pC, type UpdateCronTriggerErrors as pD, type UpdateCronTriggerRequest as pE, type UpdateCronTriggerResponses as pF, type UpdateMachineErrors as pG, type UpdateMachinePoolErrors as pH, type UpdateMachinePoolRequest as pI, type UpdateMachinePoolResponses as pJ, type UpdateMachineRequest as pK, type UpdateMachineResponses as pL, type UpdateModelProviderConfigErrors as pM, type UpdateModelProviderConfigRequest as pN, type UpdateModelProviderConfigResponses as pO, type UpdateOrgApiKeyErrors as pP, type UpdateOrgApiKeyRequest as pQ, type UpdateOrgApiKeyResponses as pR, type UpdateOrgMemberErrors as pS, type UpdateOrgMemberRequest as pT, type UpdateOrgMemberResponses as pU, type UpdateProjectMachinePoolGrantErrors as pV, type UpdateProjectMachinePoolGrantRequest as pW, type UpdateProjectMachinePoolGrantResponses as pX, type UpdateProjectModelGrantErrors as pY, type UpdateProjectModelGrantRequest as pZ, type UpdateProjectModelGrantResponses as p_, type SubmitToolCallResultResponse as pa, type SubmitToolCallResultResponses as pb, type SubmitToolResultContentBlock as pc, type TextContentBlock as pd, type Timestamp as pe, type ToolCall as pf, type ToolCallId as pg, type ToolCallOutcome as ph, type ToolCallState as pi, type ToolCallType as pj, type ToolCallUpdate as pk, type ToolCatalogEntry as pl, type ToolInput as pm, type ToolPermissionMode as pn, type ToolPermissionProfile as po, type ToolPermissionSelection as pp, type ToolResult as pq, type ToolResultContentBlock as pr, type ToolResultEvent as ps, type UpdateAgentConfigErrors as pt, type UpdateAgentConfigRequest as pu, type UpdateAgentConfigResponse as pv, type UpdateAgentConfigResponses as pw, type UpdateAgentProfileErrors as px, type UpdateAgentProfileRequest as py, type UpdateAgentProfileResponses as pz, type CreateAgentConfigResponse as q, type UpdateSecretRequest as q0, type UpdateSecretResponses as q1, type UpdateSkillErrors as q2, type UpdateSkillRequest as q3, type UpdateSkillResponses as q4, type UploadArtifactResponse as q5, type UploadDaemonArtifactErrors as q6, type UploadDaemonArtifactResponses as q7, type UserId as q8, type UserSecretOwner as q9, type UserSecretOwnerInput as qa, type UserSkillOwner as qb, type UserSkillOwnerInput as qc, type VisibleMachine as qd, type VisibleProject as qe, type Warning as qf, sdk_gen as qg, type CreateAgentConfigError as r, type CreateAgentInputData as s, type CreateAgentInputResponse as t, type CreateAgentInputError as u, type CreateAgentData as v, type CreateAgentResponse as w, type CreateAgentError as x, type CreateAgentProfileData as y, type CreateAgentProfileResponse as z };
|
|
13624
|
+
export { type CreateOrgApiKeyResponse2 as $, type AcceptInvitationData as A, type BootstrapDaemonData as B, type CancelAgentData as C, type CreateAgentProfileError as D, type CreateByoMachineDaemonTokenData as E, type CreateByoMachineDaemonTokenResponse as F, type CreateByoMachineDaemonTokenError as G, type CreateConfiguredModelData as H, type CreateConfiguredModelResponse as I, type CreateConfiguredModelError as J, type CreateCronTriggerData as K, type CreateCronTriggerResponse as L, type CreateCronTriggerError as M, type CreateIntegrationOAuthSetupData as N, type Options as O, type CreateIntegrationOAuthSetupResponse as P, type CreateIntegrationOAuthSetupError as Q, type CreateMachineData as R, type CreateMachineResponse as S, type CreateMachineError as T, type CreateMachinePoolData as U, type CreateMachinePoolResponse as V, type CreateMachinePoolError as W, type CreateModelProviderConfigData as X, type CreateModelProviderConfigResponse2 as Y, type CreateModelProviderConfigError as Z, type CreateOrgApiKeyData as _, type AcceptInvitationResponse as a, type DeleteMachinePoolError as a$, type CreateOrgApiKeyError as a0, type CreateOrgInvitationData as a1, type CreateOrgInvitationResponse as a2, type CreateOrgInvitationError as a3, type CreateOrganizationData as a4, type CreateOrganizationResponse2 as a5, type CreateOrganizationError as a6, type CreatePersonalAccessTokenData as a7, type CreatePersonalAccessTokenResponse2 as a8, type CreatePersonalAccessTokenError as a9, type CreateSkillError as aA, type CreateSlackSetupData as aB, type CreateSlackSetupResponse as aC, type CreateSlackSetupError as aD, type DeclineInvitationData as aE, type DeclineInvitationResponse as aF, type DeclineInvitationError as aG, type DeleteAgentProfileData as aH, type DeleteAgentProfileResponse as aI, type DeleteAgentProfileError as aJ, type DeleteConfiguredModelData as aK, type DeleteConfiguredModelResponse as aL, type DeleteConfiguredModelError as aM, type DeleteCronTriggerData as aN, type DeleteCronTriggerResponse as aO, type DeleteCronTriggerError as aP, type DeleteCurrentUserData as aQ, type DeleteCurrentUserResponse as aR, type DeleteCurrentUserError as aS, type DeleteIntegrationInstallData as aT, type DeleteIntegrationInstallResponse as aU, type DeleteIntegrationInstallError as aV, type DeleteMachineData as aW, type DeleteMachineResponse as aX, type DeleteMachineError as aY, type DeleteMachinePoolData as aZ, type DeleteMachinePoolResponse as a_, type CreateProjectMachineGrantData as aa, type CreateProjectMachineGrantResponse2 as ab, type CreateProjectMachineGrantError as ac, type CreateProjectMachinePoolGrantData as ad, type CreateProjectMachinePoolGrantResponse as ae, type CreateProjectMachinePoolGrantError as af, type CreateProjectModelGrantData as ag, type CreateProjectModelGrantResponse as ah, type CreateProjectModelGrantError as ai, type CreateProjectData as aj, type CreateProjectResponse as ak, type CreateProjectError as al, type CreateSecretGrantData as am, type CreateSecretGrantResponse as an, type CreateSecretGrantError as ao, type CreateSecretData as ap, type CreateSecretResponse as aq, type CreateSecretError as ar, type CreateSecretVersionData as as, type CreateSecretVersionResponse as at, type CreateSecretVersionError as au, type CreateSkillGrantData as av, type CreateSkillGrantResponse as aw, type CreateSkillGrantError as ax, type CreateSkillData as ay, type CreateSkillResponse as az, type AcceptInvitationError as b, type GetCurrentUserError as b$, type DeleteModelProviderConfigData as b0, type DeleteModelProviderConfigResponse as b1, type DeleteModelProviderConfigError as b2, type DeleteOrgInvitationData as b3, type DeleteOrgInvitationResponse as b4, type DeleteOrgInvitationError as b5, type DeleteOrganizationData as b6, type DeleteOrganizationResponse as b7, type DeleteOrganizationError as b8, type DeleteProjectMachineGrantData as b9, type DownloadDaemonArtifactData as bA, type DownloadDaemonArtifactError as bB, type EndMachineDaemonRuntimeData as bC, type EndMachineDaemonRuntimeResponse as bD, type EndMachineDaemonRuntimeError as bE, type GetActorData as bF, type Actor as bG, type GetActorError as bH, type GetAgentConfigData as bI, type AgentConfig as bJ, type GetAgentConfigError as bK, type GetAgentData as bL, type GetAgentResponse as bM, type GetAgentError as bN, type GetAgentProfileData as bO, type AgentProfile as bP, type GetAgentProfileError as bQ, type GetArtifactContentData as bR, type GetArtifactContentError as bS, type GetArtifactData as bT, type Artifact as bU, type GetArtifactError as bV, type GetCronTriggerData as bW, type CronTrigger as bX, type GetCronTriggerError as bY, type GetCurrentUserData as bZ, type CurrentUser as b_, type DeleteProjectMachineGrantResponse as ba, type DeleteProjectMachineGrantError as bb, type DeleteProjectMachinePoolGrantData as bc, type DeleteProjectMachinePoolGrantResponse as bd, type DeleteProjectMachinePoolGrantError as be, type DeleteProjectModelGrantData as bf, type DeleteProjectModelGrantResponse as bg, type DeleteProjectModelGrantError as bh, type DeleteProjectData as bi, type DeleteProjectResponse as bj, type DeleteProjectError as bk, type DeleteSecretGrantData as bl, type DeleteSecretGrantResponse as bm, type DeleteSecretGrantError as bn, type DeleteSecretData as bo, type DeleteSecretResponse as bp, type DeleteSecretError as bq, type DeleteSkillGrantData as br, type DeleteSkillGrantResponse as bs, type DeleteSkillGrantError as bt, type DeleteSkillData as bu, type DeleteSkillResponse as bv, type DeleteSkillError as bw, type DemoteSteeringInputToQueuedData as bx, type DemoteSteeringInputToQueuedResponse as by, type DemoteSteeringInputToQueuedError as bz, type ArchiveAgentData as c, type ListMachinePoolsResponse as c$, type GetDaemonSkillArchiveData as c0, type GetDaemonSkillArchiveError as c1, type GetMachineData as c2, type Machine as c3, type GetMachineError as c4, type GetMachinePoolData as c5, type MachinePool as c6, type GetMachinePoolError as c7, type GetModelCatalogData as c8, type ModelCatalog as c9, type ListActorsResponse as cA, type ListActorsError as cB, type ListAgentInteractionsData as cC, type ListAgentInteractionsResponse as cD, type ListAgentInteractionsError as cE, type ListAgentProfilesData as cF, type ListAgentProfilesResponse as cG, type ListAgentProfilesError as cH, type ListAgentsData as cI, type ListAgentsResponse as cJ, type ListAgentsError as cK, type ListByoMachineDaemonTokensData as cL, type ListMachineDaemonTokensResponse as cM, type ListByoMachineDaemonTokensError as cN, type ListConfiguredModelsData as cO, type ConfiguredModelList as cP, type ListConfiguredModelsError as cQ, type ListCronTriggersData as cR, type ListCronTriggersResponse as cS, type ListCronTriggersError as cT, type ListEventsData as cU, type ListAgentEventsResponse as cV, type ListEventsError as cW, type ListIntegrationInstallsData as cX, type ListIntegrationInstallsResponse as cY, type ListIntegrationInstallsError as cZ, type ListMachinePoolsData as c_, type GetModelCatalogError as ca, type GetModelProviderConfigData as cb, type ModelProviderConfig as cc, type GetModelProviderConfigError as cd, type GetOrgApiKeyData as ce, type OrgApiKey as cf, type GetOrgApiKeyError as cg, type GetOrgOverviewData as ch, type OrgOverviewResponse as ci, type GetOrgOverviewError as cj, type GetProjectAvailableSecretData as ck, type ProjectSecretAccess as cl, type GetProjectAvailableSecretError as cm, type GetProjectMachinePoolGrantData as cn, type ProjectMachinePoolGrant as co, type GetProjectMachinePoolGrantError as cp, type GetSecretData as cq, type Secret as cr, type GetSecretError as cs, type GetSkillData as ct, type Skill as cu, type GetSkillError as cv, type GetToolCatalogData as cw, type ToolCatalog as cx, type GetToolCatalogError as cy, type ListActorsData as cz, type ArchiveAgentResponse as d, type ListTurnEventsData as d$, type ListMachinePoolsError as d0, type ListMcpServerToolsData as d1, type ListMcpServerToolsResponse as d2, type ListMcpServerToolsError as d3, type ListMcpServersData as d4, type ListMcpServersResponse as d5, type ListMcpServersError as d6, type ListMemberProjectAccessData as d7, type ListProjectMembershipGrantsResponse as d8, type ListMemberProjectAccessError as d9, type ListProjectMachineGrantsData as dA, type ListProjectMachineGrantsResponse as dB, type ListProjectMachineGrantsError as dC, type ListProjectMachinePoolGrantsData as dD, type ListProjectMachinePoolGrantsResponse as dE, type ListProjectMachinePoolGrantsError as dF, type ListProjectModelGrantsData as dG, type ListProjectModelGrantsResponse as dH, type ListProjectModelGrantsError as dI, type ListQueuedBacklogInputsData as dJ, type ListAgentInputsResponse as dK, type ListQueuedBacklogInputsError as dL, type ListSecretGrantsData as dM, type ListSecretGrantsResponse as dN, type ListSecretGrantsError as dO, type ListSecretsData as dP, type ListSecretsResponse as dQ, type ListSecretsError as dR, type ListSkillGrantsData as dS, type ListSkillGrantsResponse as dT, type ListSkillGrantsError as dU, type ListSkillsData as dV, type ListSkillsResponse as dW, type ListSkillsError as dX, type ListToolCallsData as dY, type ListToolCallsResponse as dZ, type ListToolCallsError as d_, type ListModelProviderConfigsData as da, type ModelProviderConfigList as db, type ListModelProviderConfigsError as dc, type ListOrgApiKeyProjectAccessData as dd, type ListOrgApiKeyProjectAccessError as de, type ListOrgApiKeysData as df, type ListOrgApiKeysResponse as dg, type ListOrgApiKeysError as dh, type ListOrgInvitationsData as di, type ListOrgInvitationsResponse as dj, type ListOrgInvitationsError as dk, type ListOrgMembersData as dl, type ListOrgMembersResponse as dm, type ListOrgMembersError as dn, type ListPendingInvitationsData as dp, type ListPendingInvitationsError as dq, type ListPersonalAccessTokensData as dr, type ListPersonalAccessTokensResponse as ds, type ListPersonalAccessTokensError as dt, type ListProjectAvailableSecretsData as du, type ListProjectSecretAccessesResponse as dv, type ListProjectAvailableSecretsError as dw, type ListProjectAvailableSkillsData as dx, type ListProjectSkillAccessesResponse as dy, type ListProjectAvailableSkillsError as dz, type ArchiveAgentError as e, type StartSecretMcpoAuthData as e$, type ListTurnEventsResponse as e0, type ListTurnEventsError as e1, type ListTurnsData as e2, type ListAgentTurnsResponse as e3, type ListTurnsError as e4, type ListVisibleMachinesData as e5, type ListVisibleMachinesResponse as e6, type ListVisibleMachinesError as e7, type ListVisibleProjectMachinesData as e8, type ListVisibleProjectMachinesError as e9, type RemoveOrgMemberError as eA, type RenameAgentProfileData as eB, type RenameAgentProfileResponse as eC, type RenameAgentProfileError as eD, type ResolveAgentInteractionData as eE, type ResolveAgentInteractionResponse as eF, type ResolveAgentInteractionError as eG, type RevokeMachineDaemonTokenData as eH, type RevokeMachineDaemonTokenResponse as eI, type RevokeMachineDaemonTokenError as eJ, type RevokeOrgApiKeyData as eK, type RevokeOrgApiKeyResponse as eL, type RevokeOrgApiKeyError as eM, type RevokePersonalAccessTokenData as eN, type RevokePersonalAccessTokenResponse as eO, type RevokePersonalAccessTokenError as eP, type SetMemberProjectAccessData as eQ, type SetMemberProjectAccessResponse as eR, type SetMemberProjectAccessError as eS, type SetOrgApiKeyProjectRoleData as eT, type SetOrgApiKeyProjectRoleResponse as eU, type SetOrgApiKeyProjectRoleError as eV, type SleepMachineDaemonRuntimeData as eW, type SleepMachineDaemonRuntimeResponse as eX, type SleepMachineDaemonRuntimeError as eY, type SocketMachineDaemonRuntimeData as eZ, type SocketMachineDaemonRuntimeError as e_, type ListVisibleProjectsData as ea, type ListProjectsResponse as eb, type ListVisibleProjectsError as ec, type MoveQueuedBacklogInputData as ed, type MoveQueuedBacklogInputResponse as ee, type MoveQueuedBacklogInputError as ef, type PromoteQueuedInputToSteeringData as eg, type PromoteQueuedInputToSteeringResponse as eh, type PromoteQueuedInputToSteeringError as ei, type PutActorData as ej, type PutActorResponse as ek, type PutActorError as el, type RecordMachineFailureData as em, type RecordMachineFailureResponse as en, type RecordMachineFailureError as eo, type RegisterMachineDaemonRuntimeData as ep, type RegisterMachineDaemonRuntimeResponse as eq, type RegisterMachineDaemonRuntimeError as er, type RemoveMemberProjectAccessData as es, type RemoveMemberProjectAccessResponse as et, type RemoveMemberProjectAccessError as eu, type RemoveOrgApiKeyProjectRoleData as ev, type RemoveOrgApiKeyProjectRoleResponse as ew, type RemoveOrgApiKeyProjectRoleError as ex, type RemoveOrgMemberData as ey, type RemoveOrgMemberResponse as ez, type BootstrapDaemonResponse2 as f, type AgentCronTriggerTarget as f$, type StartSecretMcpoAuthResponse as f0, type StartSecretMcpoAuthError as f1, type SubmitToolCallResultData as f2, type SubmitToolCallResultResponse2 as f3, type SubmitToolCallResultError as f4, type UpdateAgentConfigData as f5, type UpdateAgentConfigResponse2 as f6, type UpdateAgentConfigError as f7, type UpdateAgentProfileData as f8, type UpdateAgentProfileResponse as f9, type UpdateProjectModelGrantResponse as fA, type UpdateProjectModelGrantError as fB, type UpdateSecretData as fC, type UpdateSecretResponse as fD, type UpdateSecretError as fE, type UpdateSkillData as fF, type UpdateSkillResponse as fG, type UpdateSkillError as fH, type UploadDaemonArtifactData as fI, type UploadDaemonArtifactResponse as fJ, type UploadDaemonArtifactError as fK, type Config as fL, type Client as fM, type Error as fN, type AgentConfigErrorIssue as fO, type AgentEventStreamData as fP, type StreamEventsData as fQ, type PersonalAccessToken as fR, type AcceptInvitationErrors as fS, type AcceptInvitationResponses as fT, type ActorId as fU, type ActorProvider as fV, type Agent as fW, type AgentConfigId as fX, type AgentConfigModel as fY, type AgentControlType as fZ, type AgentCount as f_, type UpdateAgentProfileError as fa, type UpdateConfiguredModelData as fb, type UpdateConfiguredModelResponse as fc, type UpdateConfiguredModelError as fd, type UpdateCronTriggerData as fe, type UpdateCronTriggerResponse as ff, type UpdateCronTriggerError as fg, type UpdateMachineData as fh, type UpdateMachineResponse as fi, type UpdateMachineError as fj, type UpdateMachinePoolData as fk, type UpdateMachinePoolResponse as fl, type UpdateMachinePoolError as fm, type UpdateModelProviderConfigData as fn, type UpdateModelProviderConfigResponse as fo, type UpdateModelProviderConfigError as fp, type UpdateOrgApiKeyData as fq, type UpdateOrgApiKeyResponse as fr, type UpdateOrgApiKeyError as fs, type UpdateOrgMemberData as ft, type UpdateOrgMemberResponse as fu, type UpdateOrgMemberError as fv, type UpdateProjectMachinePoolGrantData as fw, type UpdateProjectMachinePoolGrantResponse as fx, type UpdateProjectMachinePoolGrantError as fy, type UpdateProjectModelGrantData as fz, type BootstrapDaemonError as g, type CreateAgentProfileRequest as g$, type AgentEvent as g0, type AgentEventId as g1, type AgentId as g2, type AgentInput as g3, type AgentInputContentBlock as g4, type AgentInputDeliveryMode as g5, type AgentInputEnvelope as g6, type AgentInputEvent as g7, type AgentInputId as g8, type AgentInputKind as g9, type CancelAgentResponse as gA, type CancelAgentResponses as gB, type CancelQueuedBacklogInputErrors as gC, type CancelQueuedBacklogInputResponses as gD, type ClientErrorCode as gE, type ClientOptions$1 as gF, type ConfiguredModel as gG, type ConfiguredModelId as gH, type ConfiguredModelRevisionId as gI, type ConfiguredModelSummary as gJ, type ConnectByoMachineErrors as gK, type ConnectByoMachineRequest as gL, type ConnectByoMachineResponse as gM, type ConnectByoMachineResponses as gN, type ContentBlockMetadata as gO, type ContextCheckpointEvent as gP, type ContextCheckpointId as gQ, type CreateAgentConfigErrors as gR, type CreateAgentConfigRequest as gS, type CreateAgentConfigResponses as gT, type CreateAgentErrors as gU, type CreateAgentInputContentBlock as gV, type CreateAgentInputDeliveryMode as gW, type CreateAgentInputErrors as gX, type CreateAgentInputRequest as gY, type CreateAgentInputResponses as gZ, type CreateAgentProfileErrors as g_, type AgentInteraction as ga, type AgentInteractionId as gb, type AgentInteractionKind as gc, type AgentInteractionState as gd, type AgentMachineBinding as ge, type AgentMachineBindingId as gf, type AgentMachineBindingKind as gg, type AgentMachineBindingState as gh, type AgentMcpConnection as gi, type AgentModel as gj, type AgentName as gk, type AgentProfileCronTriggerTarget as gl, type AgentProfileId as gm, type AgentSequence as gn, type AgentSequenceCursor as go, type AgentTurn as gp, type AgentTurnId as gq, type ArchiveAgentErrors as gr, type ArchiveAgentResponses as gs, type ArtifactId as gt, type AwsCredentialsSecretMaterial as gu, type BootstrapDaemonErrors as gv, type BootstrapDaemonResponse as gw, type BootstrapDaemonResponses as gx, type CancelAgentErrors as gy, type CancelAgentRequest as gz, type CancelAgentResponse2 as h, type CreateSkillGrantErrors as h$, type CreateAgentProfileResponses as h0, type CreateAgentRequest as h1, type CreateAgentResponses as h2, type CreateByoMachineDaemonTokenErrors as h3, type CreateByoMachineDaemonTokenResponses as h4, type CreateConfiguredModelErrors as h5, type CreateConfiguredModelRequest as h6, type CreateConfiguredModelResponses as h7, type CreateCronTriggerErrors as h8, type CreateCronTriggerRequest as h9, type CreateOrganizationResponse as hA, type CreateOrganizationResponses as hB, type CreatePersonalAccessTokenErrors as hC, type CreatePersonalAccessTokenRequest as hD, type CreatePersonalAccessTokenResponse as hE, type CreatePersonalAccessTokenResponses as hF, type CreateProjectErrors as hG, type CreateProjectMachineGrantErrors as hH, type CreateProjectMachineGrantRequest as hI, type CreateProjectMachineGrantResponse as hJ, type CreateProjectMachineGrantResponses as hK, type CreateProjectMachinePoolGrantErrors as hL, type CreateProjectMachinePoolGrantRequest as hM, type CreateProjectMachinePoolGrantResponses as hN, type CreateProjectModelGrantErrors as hO, type CreateProjectModelGrantRequest as hP, type CreateProjectModelGrantResponses as hQ, type CreateProjectRequest as hR, type CreateProjectResponses as hS, type CreateSecretErrors as hT, type CreateSecretGrantErrors as hU, type CreateSecretGrantResponses as hV, type CreateSecretRequest as hW, type CreateSecretResponses as hX, type CreateSecretVersionErrors as hY, type CreateSecretVersionResponses as hZ, type CreateSkillErrors as h_, type CreateCronTriggerResponses as ha, type CreateIntegrationOAuthSetupErrors as hb, type CreateIntegrationOAuthSetupRequest as hc, type CreateIntegrationOAuthSetupResponses as hd, type CreateMachineDaemonTokenRequest as he, type CreateMachineDaemonTokenResponse as hf, type CreateMachineErrors as hg, type CreateMachinePoolErrors as hh, type CreateMachinePoolRequest as hi, type CreateMachinePoolRequestBase as hj, type CreateMachinePoolResponses as hk, type CreateMachineRequest as hl, type CreateMachineResponses as hm, type CreateModelProviderConfigErrors as hn, type CreateModelProviderConfigRequest as ho, type CreateModelProviderConfigResponse as hp, type CreateModelProviderConfigResponses as hq, type CreateOrgApiKeyErrors as hr, type CreateOrgApiKeyRequest as hs, type CreateOrgApiKeyResponse as ht, type CreateOrgApiKeyResponses as hu, type CreateOrgInvitationErrors as hv, type CreateOrgInvitationRequest as hw, type CreateOrgInvitationResponses as hx, type CreateOrganizationErrors as hy, type CreateOrganizationRequest as hz, type CancelAgentError as i, type DirectSecretAvailability as i$, type CreateSkillGrantResponses as i0, type CreateSkillRequest as i1, type CreateSkillResponses as i2, type CreateSlackSetupErrors as i3, type CreateSlackSetupRequest as i4, type CreateSlackSetupResponses as i5, type CreatedResourceListSort as i6, type CronExpression as i7, type CronMessageTemplate as i8, type CronTimezone as i9, type DeleteMachinePoolErrors as iA, type DeleteMachinePoolResponses as iB, type DeleteMachineResponses as iC, type DeleteModelProviderConfigErrors as iD, type DeleteModelProviderConfigResponses as iE, type DeleteOrgInvitationErrors as iF, type DeleteOrgInvitationResponses as iG, type DeleteOrganizationErrors as iH, type DeleteOrganizationResponses as iI, type DeleteProjectErrors as iJ, type DeleteProjectMachineGrantErrors as iK, type DeleteProjectMachineGrantResponses as iL, type DeleteProjectMachinePoolGrantErrors as iM, type DeleteProjectMachinePoolGrantResponses as iN, type DeleteProjectModelGrantErrors as iO, type DeleteProjectModelGrantResponses as iP, type DeleteProjectResponses as iQ, type DeleteSecretErrors as iR, type DeleteSecretGrantErrors as iS, type DeleteSecretGrantResponses as iT, type DeleteSecretResponses as iU, type DeleteSkillErrors as iV, type DeleteSkillGrantErrors as iW, type DeleteSkillGrantResponses as iX, type DeleteSkillResponses as iY, type DemoteSteeringInputToQueuedErrors as iZ, type DemoteSteeringInputToQueuedResponses as i_, type CronTriggerDeliveryMode as ia, type CronTriggerFailureReport as ib, type CronTriggerId as ic, type CronTriggerTarget as id, type CurrentAgentResponse as ie, type CurrentUserIdentity as ig, type CurrentUserOrg as ih, type DaemonRuntime as ii, type DaemonRuntimeId as ij, type DaemonRuntimeReconciliation as ik, type DaemonRuntimeState as il, type DeclineInvitationErrors as im, type DeclineInvitationResponses as io, type DeleteAgentProfileErrors as ip, type DeleteAgentProfileResponses as iq, type DeleteConfiguredModelErrors as ir, type DeleteConfiguredModelResponses as is, type DeleteCronTriggerErrors as it, type DeleteCronTriggerResponses as iu, type DeleteCurrentUserErrors as iv, type DeleteCurrentUserResponses as iw, type DeleteIntegrationInstallErrors as ix, type DeleteIntegrationInstallResponses as iy, type DeleteMachineErrors as iz, type CancelQueuedBacklogInputData as j, type GetSecretResponses as j$, type DirectSkillAvailability as j0, type DiscoveredProviderModel as j1, type DownloadDaemonArtifactErrors as j2, type DownloadDaemonArtifactResponse as j3, type DownloadDaemonArtifactResponses as j4, type EndMachineDaemonRuntimeErrors as j5, type EndMachineDaemonRuntimeResponses as j6, type ErrorContentBlock as j7, type ExternalActorParams as j8, type GenericSecretMaterial as j9, type GetDaemonSkillArchiveResponses as jA, type GetMachineErrors as jB, type GetMachinePoolErrors as jC, type GetMachinePoolResponse as jD, type GetMachinePoolResponses as jE, type GetMachineResponse as jF, type GetMachineResponses as jG, type GetModelCatalogErrors as jH, type GetModelCatalogResponse as jI, type GetModelCatalogResponses as jJ, type GetModelProviderConfigErrors as jK, type GetModelProviderConfigResponse as jL, type GetModelProviderConfigResponses as jM, type GetOrgApiKeyErrors as jN, type GetOrgApiKeyResponse as jO, type GetOrgApiKeyResponses as jP, type GetOrgOverviewErrors as jQ, type GetOrgOverviewResponse as jR, type GetOrgOverviewResponses as jS, type GetProjectAvailableSecretErrors as jT, type GetProjectAvailableSecretResponse as jU, type GetProjectAvailableSecretResponses as jV, type GetProjectMachinePoolGrantErrors as jW, type GetProjectMachinePoolGrantResponse as jX, type GetProjectMachinePoolGrantResponses as jY, type GetSecretErrors as jZ, type GetSecretResponse as j_, type GetActorErrors as ja, type GetActorResponse as jb, type GetActorResponses as jc, type GetAgentConfigErrors as jd, type GetAgentConfigResponse as je, type GetAgentConfigResponses as jf, type GetAgentErrors as jg, type GetAgentProfileErrors as jh, type GetAgentProfileResponse as ji, type GetAgentProfileResponses as jj, type GetAgentResponse2 as jk, type GetAgentResponses as jl, type GetArtifactContentErrors as jm, type GetArtifactContentResponse as jn, type GetArtifactContentResponses as jo, type GetArtifactErrors as jp, type GetArtifactResponse as jq, type GetArtifactResponses as jr, type GetCronTriggerErrors as js, type GetCronTriggerResponse as jt, type GetCronTriggerResponses as ju, type GetCurrentUserErrors as jv, type GetCurrentUserResponse as jw, type GetCurrentUserResponses as jx, type GetDaemonSkillArchiveErrors as jy, type GetDaemonSkillArchiveResponse as jz, type CancelQueuedBacklogInputResponse as k, type ListMemberProjectAccessResponses as k$, type GetSkillErrors as k0, type GetSkillResponse as k1, type GetSkillResponses as k2, type GetToolCatalogErrors as k3, type GetToolCatalogResponse as k4, type GetToolCatalogResponses as k5, type GrantedSecretAvailability as k6, type GrantedSkillAvailability as k7, type IdempotencyKey as k8, type InlineMediaContentBlock as k9, type ListAgentsResponse2 as kA, type ListAgentsResponses as kB, type ListByoMachineDaemonTokensErrors as kC, type ListByoMachineDaemonTokensResponse as kD, type ListByoMachineDaemonTokensResponses as kE, type ListConfiguredModelsErrors as kF, type ListConfiguredModelsResponse as kG, type ListConfiguredModelsResponses as kH, type ListCronTriggersErrors as kI, type ListCronTriggersResponse2 as kJ, type ListCronTriggersResponses as kK, type ListEventsErrors as kL, type ListEventsResponse as kM, type ListEventsResponses as kN, type ListIntegrationInstallsErrors as kO, type ListIntegrationInstallsResponse2 as kP, type ListIntegrationInstallsResponses as kQ, type ListMachinePoolsErrors as kR, type ListMachinePoolsResponse2 as kS, type ListMachinePoolsResponses as kT, type ListMcpServerToolsErrors as kU, type ListMcpServerToolsResponses as kV, type ListMcpServersErrors as kW, type ListMcpServersResponse2 as kX, type ListMcpServersResponses as kY, type ListMemberProjectAccessErrors as kZ, type ListMemberProjectAccessResponse as k_, type InstallationId as ka, type IntegrationInstall as kb, type IntegrationInstallAgentProfileFilter as kc, type IntegrationInstallId as kd, type IntegrationInstallOAuthFlowIdFilter as ke, type IntegrationOAuthFlowId as kf, type IntegrationOAuthSetup as kg, type IntegrationTarget as kh, type InteractionAnswer as ki, type InteractionForm as kj, type InteractionFormContextItem as kk, type InteractionFormOption as kl, type InteractionFormQuestion as km, type InteractionResolution as kn, type JsonBlob as ko, type LaunchAgentResponse as kp, type ListActorsErrors as kq, type ListActorsResponse2 as kr, type ListActorsResponses as ks, type ListAgentInteractionsErrors as kt, type ListAgentInteractionsResponse2 as ku, type ListAgentInteractionsResponses as kv, type ListAgentProfilesErrors as kw, type ListAgentProfilesResponse2 as kx, type ListAgentProfilesResponses as ky, type ListAgentsErrors as kz, type CancelQueuedBacklogInputError as l, type ListVisibleProjectMachinesErrors as l$, type ListModelProviderConfigsErrors as l0, type ListModelProviderConfigsResponse as l1, type ListModelProviderConfigsResponses as l2, type ListOrgApiKeyProjectAccessErrors as l3, type ListOrgApiKeyProjectAccessResponse as l4, type ListOrgApiKeyProjectAccessResponses as l5, type ListOrgApiKeysErrors as l6, type ListOrgApiKeysResponse2 as l7, type ListOrgApiKeysResponses as l8, type ListOrgInvitationsErrors as l9, type ListQueuedBacklogInputsErrors as lA, type ListQueuedBacklogInputsResponse as lB, type ListQueuedBacklogInputsResponses as lC, type ListSecretGrantsErrors as lD, type ListSecretGrantsResponse2 as lE, type ListSecretGrantsResponses as lF, type ListSecretsErrors as lG, type ListSecretsResponse2 as lH, type ListSecretsResponses as lI, type ListSkillGrantsErrors as lJ, type ListSkillGrantsResponse2 as lK, type ListSkillGrantsResponses as lL, type ListSkillsErrors as lM, type ListSkillsResponse2 as lN, type ListSkillsResponses as lO, type ListToolCallsErrors as lP, type ListToolCallsResponse2 as lQ, type ListToolCallsResponses as lR, type ListTurnEventsErrors as lS, type ListTurnEventsResponse2 as lT, type ListTurnEventsResponses as lU, type ListTurnsErrors as lV, type ListTurnsResponse as lW, type ListTurnsResponses as lX, type ListVisibleMachinesErrors as lY, type ListVisibleMachinesResponse2 as lZ, type ListVisibleMachinesResponses as l_, type ListOrgInvitationsResponse2 as la, type ListOrgInvitationsResponses as lb, type ListOrgMembersErrors as lc, type ListOrgMembersResponse2 as ld, type ListOrgMembersResponses as le, type ListPendingInvitationsErrors as lf, type ListPendingInvitationsResponse as lg, type ListPendingInvitationsResponses as lh, type ListPersonalAccessTokensErrors as li, type ListPersonalAccessTokensResponse2 as lj, type ListPersonalAccessTokensResponses as lk, type ListProjectAvailableSecretsErrors as ll, type ListProjectAvailableSecretsResponse as lm, type ListProjectAvailableSecretsResponses as ln, type ListProjectAvailableSkillsErrors as lo, type ListProjectAvailableSkillsResponse as lp, type ListProjectAvailableSkillsResponses as lq, type ListProjectMachineGrantsErrors as lr, type ListProjectMachineGrantsResponse2 as ls, type ListProjectMachineGrantsResponses as lt, type ListProjectMachinePoolGrantsErrors as lu, type ListProjectMachinePoolGrantsResponse2 as lv, type ListProjectMachinePoolGrantsResponses as lw, type ListProjectModelGrantsErrors as lx, type ListProjectModelGrantsResponse2 as ly, type ListProjectModelGrantsResponses as lz, type ConnectByoMachineData as m, type ModelOutputToolArgumentsDelta as m$, type ListVisibleProjectMachinesResponse as m0, type ListVisibleProjectMachinesResponses as m1, type ListVisibleProjectsErrors as m2, type ListVisibleProjectsResponse as m3, type ListVisibleProjectsResponses as m4, type MachineAccess as m5, type MachineAccessSource as m6, type MachineAccessSourceKind as m7, type MachineConnectionState as m8, type MachineDaemonToken as m9, type McpServerToolAnnotations as mA, type McpServerToolsRequest as mB, type McpServerToolsResponse as mC, type McpoAuthFlowId as mD, type McpoAuthStartMetadata as mE, type McpoAuthStartRequest as mF, type McpoAuthStartResponse as mG, type MediaRefContentBlock as mH, type Metadata as mI, type ModelApiFormat as mJ, type ModelApiVariantOptions as mK, type ModelCacheRetention as mL, type ModelCallContextId as mM, type ModelOutputBlockStartDelta as mN, type ModelOutputBlockStopDelta as mO, type ModelOutputContentBlock as mP, type ModelOutputDelta as mQ, type ModelOutputErrorDelta as mR, type ModelOutputEvent as mS, type ModelOutputMessageStopDelta as mT, type ModelOutputStopReason as mU, type ModelOutputStreamBlock as mV, type ModelOutputStreamDelta as mW, type ModelOutputTextDelta as mX, type ModelOutputTextStreamBlock as mY, type ModelOutputThinkingDelta as mZ, type ModelOutputThinkingStreamBlock as m_, type MachineDaemonTokenId as ma, type MachineFailureReport as mb, type MachineId as mc, type MachineLifecycleState as md, type MachineMetadata as me, type MachinePoolId as mf, type MachinePoolSummary as mg, type MachinePoolUsage as mh, type MachineSourceKind as mi, type MachineSourceKindFilter as mj, type MachineSummary as mk, type MachineSummaryFields as ml, type ManagementKind as mm, type McpRegistryHeader as mn, type McpRegistryIcon as mo, type McpRegistryRemote as mp, type McpRegistryServer as mq, type McpServerAuth as mr, type McpServerAuthBearer as ms, type McpServerAuthHint as mt, type McpServerAuthNone as mu, type McpServerAuthOAuth as mv, type McpServerAuthRequiredError as mw, type McpServerAuthSigV4 as mx, type McpServerInfo as my, type McpServerTool as mz, type ConnectByoMachineResponse2 as n, type RegisterDaemonRuntimeRequest as n$, type ModelOutputToolUseStreamBlock as n0, type ModelProviderApiVariant as n1, type ModelProviderApiVariantResponse as n2, type ModelProviderAuthKind as n3, type ModelProviderConfigId as n4, type ModelStopReason as n5, type ModelToolCallContentBlock as n6, type ModelUsage as n7, type MoveQueuedBacklogInputErrors as n8, type MoveQueuedBacklogInputRequest as n9, type ProjectAccess as nA, type ProjectFields as nB, type ProjectId as nC, type ProjectMachineGrant as nD, type ProjectMachineGrantId as nE, type ProjectMachineGrantListItem as nF, type ProjectMachineGrantSourceKind as nG, type ProjectMachinePoolGrantId as nH, type ProjectMachinePoolGrantListItem as nI, type ProjectMembershipGrant as nJ, type ProjectModelGrant as nK, type ProjectModelGrantEnvelope as nL, type ProjectModelGrantId as nM, type ProjectModelGrantListItem as nN, type ProjectSecretOwner as nO, type ProjectSecretOwnerInput as nP, type ProjectSkillAccess as nQ, type ProjectSkillOwner as nR, type ProjectSkillOwnerInput as nS, type PromoteQueuedInputToSteeringErrors as nT, type PromoteQueuedInputToSteeringRequest as nU, type PromoteQueuedInputToSteeringResponses as nV, type PutActorErrors as nW, type PutActorResponses as nX, type ReasoningContentBlock as nY, type RecordMachineFailureErrors as nZ, type RecordMachineFailureResponses as n_, type MoveQueuedBacklogInputResponses as na, type OAuthRefreshSecretMaterial as nb, type OAuthTokenSetSecretMaterial as nc, type OkResponse as nd, type OrgApiKeyId as ne, type OrgApiKeyRole as nf, type OrgInvitation as ng, type OrgInvitationId as nh, type OrgMember as ni, type OrgSecretOwner as nj, type OrgSecretOwnerInput as nk, type OrgSkillOwner as nl, type OrgSkillOwnerInput as nm, type Organization as nn, type OrganizationId as no, type OrganizationMembership as np, type PageCursor as nq, type PageLimit as nr, type PersonalAccessTokenId as ns, type ProcessActionId as nt, type ProcessActionReconciliationClaim as nu, type ProcessActionReconciliationDirective as nv, type ProcessId as nw, type ProcessReconciliationClaim as nx, type ProcessReconciliationDirective as ny, type Project as nz, type ConnectByoMachineError as o, type SleepMachineDaemonRuntimeErrors as o$, type RegisterDaemonRuntimeResponse as o0, type RegisterMachineDaemonRuntimeErrors as o1, type RegisterMachineDaemonRuntimeResponses as o2, type RemoveMemberProjectAccessErrors as o3, type RemoveMemberProjectAccessResponses as o4, type RemoveOrgApiKeyProjectRoleErrors as o5, type RemoveOrgApiKeyProjectRoleResponses as o6, type RemoveOrgMemberErrors as o7, type RemoveOrgMemberResponses as o8, type RenameAgentProfileErrors as o9, type SecretOwner as oA, type SecretOwnerInput as oB, type SecretOwnerKindFilter as oC, type SecretOwnerProjectIdFilter as oD, type SecretVersionRequest as oE, type ServerErrorCode as oF, type SetMemberProjectAccessErrors as oG, type SetMemberProjectAccessResponses as oH, type SetOrgApiKeyProjectRoleErrors as oI, type SetOrgApiKeyProjectRoleResponses as oJ, type SetProjectMembershipRequest as oK, type SkillAvailability as oL, type SkillAvailabilitySourceFilter as oM, type SkillFile as oN, type SkillGrant as oO, type SkillGrantCreateRequest as oP, type SkillGrantId as oQ, type SkillGrantListItem as oR, type SkillId as oS, type SkillName as oT, type SkillOwner as oU, type SkillOwnerInput as oV, type SkillOwnerKindFilter as oW, type SkillOwnerProjectIdFilter as oX, type SkillRevisionId as oY, type SlackSetup as oZ, type SlackSetupIcon as o_, type RenameAgentProfileRequest as oa, type RenameAgentProfileResponses as ob, type ResolveAgentInteractionErrors as oc, type ResolveAgentInteractionRequest as od, type ResolveAgentInteractionResponses as oe, type ResourceListSort as of, type ResourceName as og, type ResourceNameFilter as oh, type RevokeMachineDaemonTokenErrors as oi, type RevokeMachineDaemonTokenResponses as oj, type RevokeOrgApiKeyErrors as ok, type RevokeOrgApiKeyResponses as ol, type RevokePersonalAccessTokenErrors as om, type RevokePersonalAccessTokenResponses as on, type SecretAvailability as oo, type SecretAvailabilitySourceFilter as op, type SecretGrant as oq, type SecretGrantCreateRequest as or, type SecretGrantId as os, type SecretGrantListItem as ot, type SecretId as ou, type SecretKind as ov, type SecretKindFilter as ow, type SecretMaterial as ox, type SecretMcpoAuthFlowIdFilter as oy, type SecretMetadataFilter as oz, type CreateAgentConfigData as p, type UpdateProjectModelGrantResponses as p$, type SleepMachineDaemonRuntimeResponses as p0, type SocketMachineDaemonRuntimeErrors as p1, type StartSecretMcpoAuthErrors as p2, type StartSecretMcpoAuthResponses as p3, type StreamEventsError as p4, type StreamEventsErrors as p5, type StreamEventsResponse as p6, type StreamEventsResponses as p7, type StructuredDataContentBlock as p8, type SubmitToolCallResultErrors as p9, type UpdateAgentProfileResponses as pA, type UpdateConfiguredModelErrors as pB, type UpdateConfiguredModelRequest as pC, type UpdateConfiguredModelResponses as pD, type UpdateCronTriggerErrors as pE, type UpdateCronTriggerRequest as pF, type UpdateCronTriggerResponses as pG, type UpdateMachineErrors as pH, type UpdateMachinePoolErrors as pI, type UpdateMachinePoolRequest as pJ, type UpdateMachinePoolResponses as pK, type UpdateMachineRequest as pL, type UpdateMachineResponses as pM, type UpdateModelProviderConfigErrors as pN, type UpdateModelProviderConfigRequest as pO, type UpdateModelProviderConfigResponses as pP, type UpdateOrgApiKeyErrors as pQ, type UpdateOrgApiKeyRequest as pR, type UpdateOrgApiKeyResponses as pS, type UpdateOrgMemberErrors as pT, type UpdateOrgMemberRequest as pU, type UpdateOrgMemberResponses as pV, type UpdateProjectMachinePoolGrantErrors as pW, type UpdateProjectMachinePoolGrantRequest as pX, type UpdateProjectMachinePoolGrantResponses as pY, type UpdateProjectModelGrantErrors as pZ, type UpdateProjectModelGrantRequest as p_, type SubmitToolCallResultRequest as pa, type SubmitToolCallResultResponse as pb, type SubmitToolCallResultResponses as pc, type SubmitToolResultContentBlock as pd, type TextContentBlock as pe, type Timestamp as pf, type ToolCall as pg, type ToolCallId as ph, type ToolCallOutcome as pi, type ToolCallState as pj, type ToolCallType as pk, type ToolCallUpdate as pl, type ToolCatalogEntry as pm, type ToolInput as pn, type ToolPermissionMode as po, type ToolPermissionProfile as pp, type ToolPermissionSelection as pq, type ToolResult as pr, type ToolResultContentBlock as ps, type ToolResultEvent as pt, type UpdateAgentConfigErrors as pu, type UpdateAgentConfigRequest as pv, type UpdateAgentConfigResponse as pw, type UpdateAgentConfigResponses as px, type UpdateAgentProfileErrors as py, type UpdateAgentProfileRequest as pz, type CreateAgentConfigResponse as q, type UpdateSecretErrors as q0, type UpdateSecretRequest as q1, type UpdateSecretResponses as q2, type UpdateSkillErrors as q3, type UpdateSkillRequest as q4, type UpdateSkillResponses as q5, type UploadArtifactResponse as q6, type UploadDaemonArtifactErrors as q7, type UploadDaemonArtifactResponses as q8, type UserId as q9, type UserSecretOwner as qa, type UserSecretOwnerInput as qb, type UserSkillOwner as qc, type UserSkillOwnerInput as qd, type VisibleMachine as qe, type VisibleProject as qf, type Warning as qg, sdk_gen as qh, type CreateAgentConfigError as r, type CreateAgentInputData as s, type CreateAgentInputResponse as t, type CreateAgentInputError as u, type CreateAgentData as v, type CreateAgentResponse as w, type CreateAgentError as x, type CreateAgentProfileData as y, type CreateAgentProfileResponse as z };
|
package/dist/tanstack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { UseMutationOptions, InfiniteData } from '@tanstack/react-query';
|
|
3
|
-
import { O as Options, A as AcceptInvitationData, a as AcceptInvitationResponse, b as AcceptInvitationError, c as ArchiveAgentData, d as ArchiveAgentResponse, e as ArchiveAgentError, B as BootstrapDaemonData, f as BootstrapDaemonResponse2, g as BootstrapDaemonError, C as CancelAgentData, h as CancelAgentResponse2, i as CancelAgentError, j as CancelQueuedBacklogInputData, k as CancelQueuedBacklogInputResponse, l as CancelQueuedBacklogInputError, m as ConnectByoMachineData, n as ConnectByoMachineResponse2, o as ConnectByoMachineError, p as CreateAgentConfigData, q as CreateAgentConfigResponse, r as CreateAgentConfigError, s as CreateAgentInputData, t as CreateAgentInputResponse, u as CreateAgentInputError, v as CreateAgentData, w as CreateAgentResponse, x as CreateAgentError, y as CreateAgentProfileData, z as CreateAgentProfileResponse, D as CreateAgentProfileError, E as CreateByoMachineDaemonTokenData, F as CreateByoMachineDaemonTokenResponse, G as CreateByoMachineDaemonTokenError, H as CreateConfiguredModelData, I as CreateConfiguredModelResponse, J as CreateConfiguredModelError, K as CreateCronTriggerData, L as CreateCronTriggerResponse, M as CreateCronTriggerError, N as CreateIntegrationOAuthSetupData, P as CreateIntegrationOAuthSetupResponse, Q as CreateIntegrationOAuthSetupError, R as CreateMachineData, S as CreateMachineResponse, T as CreateMachineError, U as CreateMachinePoolData, V as CreateMachinePoolResponse, W as CreateMachinePoolError, X as CreateModelProviderConfigData, Y as CreateModelProviderConfigResponse2, Z as CreateModelProviderConfigError, _ as CreateOrgApiKeyData, $ as CreateOrgApiKeyResponse2, a0 as CreateOrgApiKeyError, a1 as CreateOrgInvitationData, a2 as CreateOrgInvitationResponse, a3 as CreateOrgInvitationError, a4 as CreateOrganizationData, a5 as CreateOrganizationResponse2, a6 as CreateOrganizationError, a7 as CreatePersonalAccessTokenData, a8 as CreatePersonalAccessTokenResponse2, a9 as CreatePersonalAccessTokenError, aa as CreateProjectMachineGrantData, ab as CreateProjectMachineGrantResponse2, ac as CreateProjectMachineGrantError, ad as CreateProjectMachinePoolGrantData, ae as CreateProjectMachinePoolGrantResponse, af as CreateProjectMachinePoolGrantError, ag as CreateProjectModelGrantData, ah as CreateProjectModelGrantResponse, ai as CreateProjectModelGrantError, aj as CreateProjectData, ak as CreateProjectResponse, al as CreateProjectError, am as CreateSecretGrantData, an as CreateSecretGrantResponse, ao as CreateSecretGrantError, ap as CreateSecretData, aq as CreateSecretResponse, ar as CreateSecretError, as as CreateSecretVersionData, at as CreateSecretVersionResponse, au as CreateSecretVersionError, av as CreateSkillGrantData, aw as CreateSkillGrantResponse, ax as CreateSkillGrantError, ay as CreateSkillData, az as CreateSkillResponse, aA as CreateSkillError, aB as CreateSlackSetupData, aC as CreateSlackSetupResponse, aD as CreateSlackSetupError, aE as DeclineInvitationData, aF as DeclineInvitationResponse, aG as DeclineInvitationError, aH as DeleteAgentProfileData, aI as DeleteAgentProfileResponse, aJ as DeleteAgentProfileError, aK as DeleteConfiguredModelData, aL as DeleteConfiguredModelResponse, aM as DeleteConfiguredModelError, aN as DeleteCronTriggerData, aO as DeleteCronTriggerResponse, aP as DeleteCronTriggerError, aQ as DeleteCurrentUserData, aR as DeleteCurrentUserResponse, aS as DeleteCurrentUserError, aT as DeleteIntegrationInstallData, aU as DeleteIntegrationInstallResponse, aV as DeleteIntegrationInstallError, aW as DeleteMachineData, aX as DeleteMachineResponse, aY as DeleteMachineError, aZ as DeleteMachinePoolData, a_ as DeleteMachinePoolResponse, a$ as DeleteMachinePoolError, b0 as DeleteModelProviderConfigData, b1 as DeleteModelProviderConfigResponse, b2 as DeleteModelProviderConfigError, b3 as DeleteOrgInvitationData, b4 as DeleteOrgInvitationResponse, b5 as DeleteOrgInvitationError, b6 as DeleteOrganizationData, b7 as DeleteOrganizationResponse, b8 as DeleteOrganizationError, b9 as DeleteProjectMachineGrantData, ba as DeleteProjectMachineGrantResponse, bb as DeleteProjectMachineGrantError, bc as DeleteProjectMachinePoolGrantData, bd as DeleteProjectMachinePoolGrantResponse, be as DeleteProjectMachinePoolGrantError, bf as DeleteProjectModelGrantData, bg as DeleteProjectModelGrantResponse, bh as DeleteProjectModelGrantError, bi as DeleteProjectData, bj as DeleteProjectResponse, bk as DeleteProjectError, bl as DeleteSecretGrantData, bm as DeleteSecretGrantResponse, bn as DeleteSecretGrantError, bo as DeleteSecretData, bp as DeleteSecretResponse, bq as DeleteSecretError, br as DeleteSkillGrantData, bs as DeleteSkillGrantResponse, bt as DeleteSkillGrantError, bu as DeleteSkillData, bv as DeleteSkillResponse, bw as DeleteSkillError, bx as DemoteSteeringInputToQueuedData, by as DemoteSteeringInputToQueuedResponse, bz as DemoteSteeringInputToQueuedError, bA as DownloadDaemonArtifactData, bB as DownloadDaemonArtifactError, bC as EndMachineDaemonRuntimeData, bD as EndMachineDaemonRuntimeResponse, bE as EndMachineDaemonRuntimeError, bF as GetActorData, bG as Actor, bH as GetActorError, bI as GetAgentConfigData, bJ as AgentConfig, bK as GetAgentConfigError, bL as GetAgentData, bM as GetAgentResponse, bN as GetAgentError, bO as GetAgentProfileData, bP as AgentProfile, bQ as GetAgentProfileError, bR as GetArtifactContentData, bS as GetArtifactContentError, bT as GetArtifactData, bU as Artifact, bV as GetArtifactError, bW as GetCronTriggerData, bX as CronTrigger, bY as GetCronTriggerError, bZ as GetCurrentUserData, b_ as CurrentUser, b$ as GetCurrentUserError, c0 as GetDaemonSkillArchiveData, c1 as GetDaemonSkillArchiveError, c2 as GetMachineData, c3 as Machine, c4 as GetMachineError, c5 as GetMachinePoolData, c6 as MachinePool, c7 as GetMachinePoolError, c8 as GetModelCatalogData, c9 as ModelCatalog, ca as GetModelCatalogError, cb as GetModelProviderConfigData, cc as ModelProviderConfig, cd as GetModelProviderConfigError, ce as GetOrgApiKeyData, cf as OrgApiKey, cg as GetOrgApiKeyError, ch as GetOrgOverviewData, ci as OrgOverviewResponse, cj as GetOrgOverviewError, ck as GetProjectAvailableSecretData, cl as ProjectSecretAccess, cm as GetProjectAvailableSecretError, cn as GetProjectMachinePoolGrantData, co as ProjectMachinePoolGrant, cp as GetProjectMachinePoolGrantError, cq as GetSecretData, cr as Secret, cs as GetSecretError, ct as GetSkillData, cu as Skill, cv as GetSkillError, cw as GetToolCatalogData, cx as ToolCatalog, cy as GetToolCatalogError, cz as ListActorsData, cA as ListActorsResponse, cB as ListActorsError, cC as ListAgentInteractionsData, cD as ListAgentInteractionsResponse, cE as ListAgentInteractionsError, cF as ListAgentProfilesData, cG as ListAgentProfilesResponse, cH as ListAgentProfilesError, cI as ListAgentsData, cJ as ListAgentsResponse, cK as ListAgentsError, cL as ListByoMachineDaemonTokensData, cM as ListMachineDaemonTokensResponse, cN as ListByoMachineDaemonTokensError, cO as ListConfiguredModelsData, cP as ConfiguredModelList, cQ as ListConfiguredModelsError, cR as ListCronTriggersData, cS as ListCronTriggersResponse, cT as ListCronTriggersError, cU as ListEventsData, cV as ListAgentEventsResponse, cW as ListEventsError, cX as ListIntegrationInstallsData, cY as ListIntegrationInstallsResponse, cZ as ListIntegrationInstallsError, c_ as ListMachinePoolsData, c$ as ListMachinePoolsResponse, d0 as ListMachinePoolsError, d1 as ListMcpServerToolsData, d2 as ListMcpServerToolsResponse, d3 as ListMcpServerToolsError, d4 as ListMcpServersData, d5 as ListMcpServersResponse, d6 as ListMcpServersError, d7 as ListMemberProjectAccessData, d8 as ListProjectMembershipGrantsResponse, d9 as ListMemberProjectAccessError, da as ListModelProviderConfigsData, db as ModelProviderConfigList, dc as ListModelProviderConfigsError, dd as ListOrgApiKeyProjectAccessData, de as ListOrgApiKeyProjectAccessError, df as ListOrgApiKeysData, dg as ListOrgApiKeysResponse, dh as ListOrgApiKeysError, di as ListOrgInvitationsData, dj as ListOrgInvitationsResponse, dk as ListOrgInvitationsError, dl as ListOrgMembersData, dm as ListOrgMembersResponse, dn as ListOrgMembersError, dp as ListPendingInvitationsData, dq as ListPendingInvitationsError, dr as ListPersonalAccessTokensData, ds as ListPersonalAccessTokensResponse, dt as ListPersonalAccessTokensError, du as ListProjectAvailableSecretsData, dv as ListProjectSecretAccessesResponse, dw as ListProjectAvailableSecretsError, dx as ListProjectAvailableSkillsData, dy as ListProjectSkillAccessesResponse, dz as ListProjectAvailableSkillsError, dA as ListProjectMachineGrantsData, dB as ListProjectMachineGrantsResponse, dC as ListProjectMachineGrantsError, dD as ListProjectMachinePoolGrantsData, dE as ListProjectMachinePoolGrantsResponse, dF as ListProjectMachinePoolGrantsError, dG as ListProjectModelGrantsData, dH as ListProjectModelGrantsResponse, dI as ListProjectModelGrantsError, dJ as ListQueuedBacklogInputsData, dK as ListAgentInputsResponse, dL as ListQueuedBacklogInputsError, dM as ListSecretGrantsData, dN as ListSecretGrantsResponse, dO as ListSecretGrantsError, dP as ListSecretsData, dQ as ListSecretsResponse, dR as ListSecretsError, dS as ListSkillGrantsData, dT as ListSkillGrantsResponse, dU as ListSkillGrantsError, dV as ListSkillsData, dW as ListSkillsResponse, dX as ListSkillsError, dY as ListToolCallsData, dZ as ListToolCallsResponse, d_ as ListToolCallsError, d$ as ListTurnEventsData, e0 as ListTurnEventsResponse, e1 as ListTurnEventsError, e2 as ListTurnsData, e3 as ListAgentTurnsResponse, e4 as ListTurnsError, e5 as ListVisibleMachinesData, e6 as ListVisibleMachinesResponse, e7 as ListVisibleMachinesError, e8 as ListVisibleProjectMachinesData, e9 as ListVisibleProjectMachinesError, ea as ListVisibleProjectsData, eb as ListProjectsResponse, ec as ListVisibleProjectsError, ed as MoveQueuedBacklogInputData, ee as MoveQueuedBacklogInputResponse, ef as MoveQueuedBacklogInputError, eg as PromoteQueuedInputToSteeringData, eh as PromoteQueuedInputToSteeringResponse, ei as PromoteQueuedInputToSteeringError, ej as PutActorData, ek as PutActorResponse, el as PutActorError, em as RecordMachineFailureData, en as RecordMachineFailureResponse, eo as RecordMachineFailureError, ep as RegisterMachineDaemonRuntimeData, eq as RegisterMachineDaemonRuntimeResponse, er as RegisterMachineDaemonRuntimeError, es as RemoveMemberProjectAccessData, et as RemoveMemberProjectAccessResponse, eu as RemoveMemberProjectAccessError, ev as RemoveOrgApiKeyProjectRoleData, ew as RemoveOrgApiKeyProjectRoleResponse, ex as RemoveOrgApiKeyProjectRoleError, ey as RemoveOrgMemberData, ez as RemoveOrgMemberResponse, eA as RemoveOrgMemberError, eB as RenameAgentProfileData, eC as RenameAgentProfileResponse, eD as RenameAgentProfileError, eE as ResolveAgentInteractionData, eF as ResolveAgentInteractionResponse, eG as ResolveAgentInteractionError, eH as RevokeMachineDaemonTokenData, eI as RevokeMachineDaemonTokenResponse, eJ as RevokeMachineDaemonTokenError, eK as RevokeOrgApiKeyData, eL as RevokeOrgApiKeyResponse, eM as RevokeOrgApiKeyError, eN as RevokePersonalAccessTokenData, eO as RevokePersonalAccessTokenResponse, eP as RevokePersonalAccessTokenError, eQ as SetMemberProjectAccessData, eR as SetMemberProjectAccessResponse, eS as SetMemberProjectAccessError, eT as SetOrgApiKeyProjectRoleData, eU as SetOrgApiKeyProjectRoleResponse, eV as SetOrgApiKeyProjectRoleError, eW as SleepMachineDaemonRuntimeData, eX as SleepMachineDaemonRuntimeResponse, eY as SleepMachineDaemonRuntimeError, eZ as SocketMachineDaemonRuntimeData, e_ as SocketMachineDaemonRuntimeError, e$ as StartSecretMcpoAuthData, f0 as StartSecretMcpoAuthResponse, f1 as StartSecretMcpoAuthError, f2 as SubmitToolCallResultData, f3 as SubmitToolCallResultResponse2, f4 as SubmitToolCallResultError, f5 as UpdateAgentConfigData, f6 as UpdateAgentConfigResponse2, f7 as UpdateAgentConfigError, f8 as UpdateAgentProfileData, f9 as UpdateAgentProfileResponse, fa as UpdateAgentProfileError, fb as UpdateConfiguredModelData, fc as UpdateConfiguredModelResponse, fd as UpdateConfiguredModelError, fe as UpdateCronTriggerData, ff as UpdateCronTriggerResponse, fg as UpdateCronTriggerError, fh as UpdateMachineData, fi as UpdateMachineResponse, fj as UpdateMachineError, fk as UpdateMachinePoolData, fl as UpdateMachinePoolResponse, fm as UpdateMachinePoolError, fn as UpdateModelProviderConfigData, fo as UpdateModelProviderConfigResponse, fp as UpdateModelProviderConfigError, fq as UpdateOrgApiKeyData, fr as UpdateOrgApiKeyResponse, fs as UpdateOrgApiKeyError, ft as UpdateOrgMemberData, fu as UpdateOrgMemberResponse, fv as UpdateOrgMemberError, fw as UpdateProjectMachinePoolGrantData, fx as UpdateProjectMachinePoolGrantResponse, fy as UpdateProjectMachinePoolGrantError, fz as UpdateProjectModelGrantData, fA as UpdateProjectModelGrantResponse, fB as UpdateProjectModelGrantError, fC as UpdateSecretData, fD as UpdateSecretResponse, fE as UpdateSecretError, fF as UpdateSkillData, fG as UpdateSkillResponse, fH as UpdateSkillError, fI as UploadDaemonArtifactData, fJ as UploadDaemonArtifactResponse, fK as UploadDaemonArtifactError } from './sdk.gen-qOnMVktp.js';
|
|
3
|
+
import { O as Options, A as AcceptInvitationData, a as AcceptInvitationResponse, b as AcceptInvitationError, c as ArchiveAgentData, d as ArchiveAgentResponse, e as ArchiveAgentError, B as BootstrapDaemonData, f as BootstrapDaemonResponse2, g as BootstrapDaemonError, C as CancelAgentData, h as CancelAgentResponse2, i as CancelAgentError, j as CancelQueuedBacklogInputData, k as CancelQueuedBacklogInputResponse, l as CancelQueuedBacklogInputError, m as ConnectByoMachineData, n as ConnectByoMachineResponse2, o as ConnectByoMachineError, p as CreateAgentConfigData, q as CreateAgentConfigResponse, r as CreateAgentConfigError, s as CreateAgentInputData, t as CreateAgentInputResponse, u as CreateAgentInputError, v as CreateAgentData, w as CreateAgentResponse, x as CreateAgentError, y as CreateAgentProfileData, z as CreateAgentProfileResponse, D as CreateAgentProfileError, E as CreateByoMachineDaemonTokenData, F as CreateByoMachineDaemonTokenResponse, G as CreateByoMachineDaemonTokenError, H as CreateConfiguredModelData, I as CreateConfiguredModelResponse, J as CreateConfiguredModelError, K as CreateCronTriggerData, L as CreateCronTriggerResponse, M as CreateCronTriggerError, N as CreateIntegrationOAuthSetupData, P as CreateIntegrationOAuthSetupResponse, Q as CreateIntegrationOAuthSetupError, R as CreateMachineData, S as CreateMachineResponse, T as CreateMachineError, U as CreateMachinePoolData, V as CreateMachinePoolResponse, W as CreateMachinePoolError, X as CreateModelProviderConfigData, Y as CreateModelProviderConfigResponse2, Z as CreateModelProviderConfigError, _ as CreateOrgApiKeyData, $ as CreateOrgApiKeyResponse2, a0 as CreateOrgApiKeyError, a1 as CreateOrgInvitationData, a2 as CreateOrgInvitationResponse, a3 as CreateOrgInvitationError, a4 as CreateOrganizationData, a5 as CreateOrganizationResponse2, a6 as CreateOrganizationError, a7 as CreatePersonalAccessTokenData, a8 as CreatePersonalAccessTokenResponse2, a9 as CreatePersonalAccessTokenError, aa as CreateProjectMachineGrantData, ab as CreateProjectMachineGrantResponse2, ac as CreateProjectMachineGrantError, ad as CreateProjectMachinePoolGrantData, ae as CreateProjectMachinePoolGrantResponse, af as CreateProjectMachinePoolGrantError, ag as CreateProjectModelGrantData, ah as CreateProjectModelGrantResponse, ai as CreateProjectModelGrantError, aj as CreateProjectData, ak as CreateProjectResponse, al as CreateProjectError, am as CreateSecretGrantData, an as CreateSecretGrantResponse, ao as CreateSecretGrantError, ap as CreateSecretData, aq as CreateSecretResponse, ar as CreateSecretError, as as CreateSecretVersionData, at as CreateSecretVersionResponse, au as CreateSecretVersionError, av as CreateSkillGrantData, aw as CreateSkillGrantResponse, ax as CreateSkillGrantError, ay as CreateSkillData, az as CreateSkillResponse, aA as CreateSkillError, aB as CreateSlackSetupData, aC as CreateSlackSetupResponse, aD as CreateSlackSetupError, aE as DeclineInvitationData, aF as DeclineInvitationResponse, aG as DeclineInvitationError, aH as DeleteAgentProfileData, aI as DeleteAgentProfileResponse, aJ as DeleteAgentProfileError, aK as DeleteConfiguredModelData, aL as DeleteConfiguredModelResponse, aM as DeleteConfiguredModelError, aN as DeleteCronTriggerData, aO as DeleteCronTriggerResponse, aP as DeleteCronTriggerError, aQ as DeleteCurrentUserData, aR as DeleteCurrentUserResponse, aS as DeleteCurrentUserError, aT as DeleteIntegrationInstallData, aU as DeleteIntegrationInstallResponse, aV as DeleteIntegrationInstallError, aW as DeleteMachineData, aX as DeleteMachineResponse, aY as DeleteMachineError, aZ as DeleteMachinePoolData, a_ as DeleteMachinePoolResponse, a$ as DeleteMachinePoolError, b0 as DeleteModelProviderConfigData, b1 as DeleteModelProviderConfigResponse, b2 as DeleteModelProviderConfigError, b3 as DeleteOrgInvitationData, b4 as DeleteOrgInvitationResponse, b5 as DeleteOrgInvitationError, b6 as DeleteOrganizationData, b7 as DeleteOrganizationResponse, b8 as DeleteOrganizationError, b9 as DeleteProjectMachineGrantData, ba as DeleteProjectMachineGrantResponse, bb as DeleteProjectMachineGrantError, bc as DeleteProjectMachinePoolGrantData, bd as DeleteProjectMachinePoolGrantResponse, be as DeleteProjectMachinePoolGrantError, bf as DeleteProjectModelGrantData, bg as DeleteProjectModelGrantResponse, bh as DeleteProjectModelGrantError, bi as DeleteProjectData, bj as DeleteProjectResponse, bk as DeleteProjectError, bl as DeleteSecretGrantData, bm as DeleteSecretGrantResponse, bn as DeleteSecretGrantError, bo as DeleteSecretData, bp as DeleteSecretResponse, bq as DeleteSecretError, br as DeleteSkillGrantData, bs as DeleteSkillGrantResponse, bt as DeleteSkillGrantError, bu as DeleteSkillData, bv as DeleteSkillResponse, bw as DeleteSkillError, bx as DemoteSteeringInputToQueuedData, by as DemoteSteeringInputToQueuedResponse, bz as DemoteSteeringInputToQueuedError, bA as DownloadDaemonArtifactData, bB as DownloadDaemonArtifactError, bC as EndMachineDaemonRuntimeData, bD as EndMachineDaemonRuntimeResponse, bE as EndMachineDaemonRuntimeError, bF as GetActorData, bG as Actor, bH as GetActorError, bI as GetAgentConfigData, bJ as AgentConfig, bK as GetAgentConfigError, bL as GetAgentData, bM as GetAgentResponse, bN as GetAgentError, bO as GetAgentProfileData, bP as AgentProfile, bQ as GetAgentProfileError, bR as GetArtifactContentData, bS as GetArtifactContentError, bT as GetArtifactData, bU as Artifact, bV as GetArtifactError, bW as GetCronTriggerData, bX as CronTrigger, bY as GetCronTriggerError, bZ as GetCurrentUserData, b_ as CurrentUser, b$ as GetCurrentUserError, c0 as GetDaemonSkillArchiveData, c1 as GetDaemonSkillArchiveError, c2 as GetMachineData, c3 as Machine, c4 as GetMachineError, c5 as GetMachinePoolData, c6 as MachinePool, c7 as GetMachinePoolError, c8 as GetModelCatalogData, c9 as ModelCatalog, ca as GetModelCatalogError, cb as GetModelProviderConfigData, cc as ModelProviderConfig, cd as GetModelProviderConfigError, ce as GetOrgApiKeyData, cf as OrgApiKey, cg as GetOrgApiKeyError, ch as GetOrgOverviewData, ci as OrgOverviewResponse, cj as GetOrgOverviewError, ck as GetProjectAvailableSecretData, cl as ProjectSecretAccess, cm as GetProjectAvailableSecretError, cn as GetProjectMachinePoolGrantData, co as ProjectMachinePoolGrant, cp as GetProjectMachinePoolGrantError, cq as GetSecretData, cr as Secret, cs as GetSecretError, ct as GetSkillData, cu as Skill, cv as GetSkillError, cw as GetToolCatalogData, cx as ToolCatalog, cy as GetToolCatalogError, cz as ListActorsData, cA as ListActorsResponse, cB as ListActorsError, cC as ListAgentInteractionsData, cD as ListAgentInteractionsResponse, cE as ListAgentInteractionsError, cF as ListAgentProfilesData, cG as ListAgentProfilesResponse, cH as ListAgentProfilesError, cI as ListAgentsData, cJ as ListAgentsResponse, cK as ListAgentsError, cL as ListByoMachineDaemonTokensData, cM as ListMachineDaemonTokensResponse, cN as ListByoMachineDaemonTokensError, cO as ListConfiguredModelsData, cP as ConfiguredModelList, cQ as ListConfiguredModelsError, cR as ListCronTriggersData, cS as ListCronTriggersResponse, cT as ListCronTriggersError, cU as ListEventsData, cV as ListAgentEventsResponse, cW as ListEventsError, cX as ListIntegrationInstallsData, cY as ListIntegrationInstallsResponse, cZ as ListIntegrationInstallsError, c_ as ListMachinePoolsData, c$ as ListMachinePoolsResponse, d0 as ListMachinePoolsError, d1 as ListMcpServerToolsData, d2 as ListMcpServerToolsResponse, d3 as ListMcpServerToolsError, d4 as ListMcpServersData, d5 as ListMcpServersResponse, d6 as ListMcpServersError, d7 as ListMemberProjectAccessData, d8 as ListProjectMembershipGrantsResponse, d9 as ListMemberProjectAccessError, da as ListModelProviderConfigsData, db as ModelProviderConfigList, dc as ListModelProviderConfigsError, dd as ListOrgApiKeyProjectAccessData, de as ListOrgApiKeyProjectAccessError, df as ListOrgApiKeysData, dg as ListOrgApiKeysResponse, dh as ListOrgApiKeysError, di as ListOrgInvitationsData, dj as ListOrgInvitationsResponse, dk as ListOrgInvitationsError, dl as ListOrgMembersData, dm as ListOrgMembersResponse, dn as ListOrgMembersError, dp as ListPendingInvitationsData, dq as ListPendingInvitationsError, dr as ListPersonalAccessTokensData, ds as ListPersonalAccessTokensResponse, dt as ListPersonalAccessTokensError, du as ListProjectAvailableSecretsData, dv as ListProjectSecretAccessesResponse, dw as ListProjectAvailableSecretsError, dx as ListProjectAvailableSkillsData, dy as ListProjectSkillAccessesResponse, dz as ListProjectAvailableSkillsError, dA as ListProjectMachineGrantsData, dB as ListProjectMachineGrantsResponse, dC as ListProjectMachineGrantsError, dD as ListProjectMachinePoolGrantsData, dE as ListProjectMachinePoolGrantsResponse, dF as ListProjectMachinePoolGrantsError, dG as ListProjectModelGrantsData, dH as ListProjectModelGrantsResponse, dI as ListProjectModelGrantsError, dJ as ListQueuedBacklogInputsData, dK as ListAgentInputsResponse, dL as ListQueuedBacklogInputsError, dM as ListSecretGrantsData, dN as ListSecretGrantsResponse, dO as ListSecretGrantsError, dP as ListSecretsData, dQ as ListSecretsResponse, dR as ListSecretsError, dS as ListSkillGrantsData, dT as ListSkillGrantsResponse, dU as ListSkillGrantsError, dV as ListSkillsData, dW as ListSkillsResponse, dX as ListSkillsError, dY as ListToolCallsData, dZ as ListToolCallsResponse, d_ as ListToolCallsError, d$ as ListTurnEventsData, e0 as ListTurnEventsResponse, e1 as ListTurnEventsError, e2 as ListTurnsData, e3 as ListAgentTurnsResponse, e4 as ListTurnsError, e5 as ListVisibleMachinesData, e6 as ListVisibleMachinesResponse, e7 as ListVisibleMachinesError, e8 as ListVisibleProjectMachinesData, e9 as ListVisibleProjectMachinesError, ea as ListVisibleProjectsData, eb as ListProjectsResponse, ec as ListVisibleProjectsError, ed as MoveQueuedBacklogInputData, ee as MoveQueuedBacklogInputResponse, ef as MoveQueuedBacklogInputError, eg as PromoteQueuedInputToSteeringData, eh as PromoteQueuedInputToSteeringResponse, ei as PromoteQueuedInputToSteeringError, ej as PutActorData, ek as PutActorResponse, el as PutActorError, em as RecordMachineFailureData, en as RecordMachineFailureResponse, eo as RecordMachineFailureError, ep as RegisterMachineDaemonRuntimeData, eq as RegisterMachineDaemonRuntimeResponse, er as RegisterMachineDaemonRuntimeError, es as RemoveMemberProjectAccessData, et as RemoveMemberProjectAccessResponse, eu as RemoveMemberProjectAccessError, ev as RemoveOrgApiKeyProjectRoleData, ew as RemoveOrgApiKeyProjectRoleResponse, ex as RemoveOrgApiKeyProjectRoleError, ey as RemoveOrgMemberData, ez as RemoveOrgMemberResponse, eA as RemoveOrgMemberError, eB as RenameAgentProfileData, eC as RenameAgentProfileResponse, eD as RenameAgentProfileError, eE as ResolveAgentInteractionData, eF as ResolveAgentInteractionResponse, eG as ResolveAgentInteractionError, eH as RevokeMachineDaemonTokenData, eI as RevokeMachineDaemonTokenResponse, eJ as RevokeMachineDaemonTokenError, eK as RevokeOrgApiKeyData, eL as RevokeOrgApiKeyResponse, eM as RevokeOrgApiKeyError, eN as RevokePersonalAccessTokenData, eO as RevokePersonalAccessTokenResponse, eP as RevokePersonalAccessTokenError, eQ as SetMemberProjectAccessData, eR as SetMemberProjectAccessResponse, eS as SetMemberProjectAccessError, eT as SetOrgApiKeyProjectRoleData, eU as SetOrgApiKeyProjectRoleResponse, eV as SetOrgApiKeyProjectRoleError, eW as SleepMachineDaemonRuntimeData, eX as SleepMachineDaemonRuntimeResponse, eY as SleepMachineDaemonRuntimeError, eZ as SocketMachineDaemonRuntimeData, e_ as SocketMachineDaemonRuntimeError, e$ as StartSecretMcpoAuthData, f0 as StartSecretMcpoAuthResponse, f1 as StartSecretMcpoAuthError, f2 as SubmitToolCallResultData, f3 as SubmitToolCallResultResponse2, f4 as SubmitToolCallResultError, f5 as UpdateAgentConfigData, f6 as UpdateAgentConfigResponse2, f7 as UpdateAgentConfigError, f8 as UpdateAgentProfileData, f9 as UpdateAgentProfileResponse, fa as UpdateAgentProfileError, fb as UpdateConfiguredModelData, fc as UpdateConfiguredModelResponse, fd as UpdateConfiguredModelError, fe as UpdateCronTriggerData, ff as UpdateCronTriggerResponse, fg as UpdateCronTriggerError, fh as UpdateMachineData, fi as UpdateMachineResponse, fj as UpdateMachineError, fk as UpdateMachinePoolData, fl as UpdateMachinePoolResponse, fm as UpdateMachinePoolError, fn as UpdateModelProviderConfigData, fo as UpdateModelProviderConfigResponse, fp as UpdateModelProviderConfigError, fq as UpdateOrgApiKeyData, fr as UpdateOrgApiKeyResponse, fs as UpdateOrgApiKeyError, ft as UpdateOrgMemberData, fu as UpdateOrgMemberResponse, fv as UpdateOrgMemberError, fw as UpdateProjectMachinePoolGrantData, fx as UpdateProjectMachinePoolGrantResponse, fy as UpdateProjectMachinePoolGrantError, fz as UpdateProjectModelGrantData, fA as UpdateProjectModelGrantResponse, fB as UpdateProjectModelGrantError, fC as UpdateSecretData, fD as UpdateSecretResponse, fE as UpdateSecretError, fF as UpdateSkillData, fG as UpdateSkillResponse, fH as UpdateSkillError, fI as UploadDaemonArtifactData, fJ as UploadDaemonArtifactResponse, fK as UploadDaemonArtifactError } from './sdk.gen-CQPqz02h.js';
|
|
4
4
|
|
|
5
5
|
type QueryKey<TOptions extends Options> = [
|
|
6
6
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
package/dist/tanstack.js
CHANGED
|
@@ -142,8 +142,9 @@ import {
|
|
|
142
142
|
updateSecret,
|
|
143
143
|
updateSkill,
|
|
144
144
|
uploadDaemonArtifact
|
|
145
|
-
} from "./chunk-
|
|
146
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-HCB2J76N.js";
|
|
146
|
+
import "./chunk-6ZFYUHM3.js";
|
|
147
|
+
import "./chunk-6NNNQM73.js";
|
|
147
148
|
|
|
148
149
|
// src/generated/@tanstack/react-query.gen.ts
|
|
149
150
|
import { infiniteQueryOptions, queryOptions } from "@tanstack/react-query";
|