openai 7.24.0 → 7.26.0
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/CHANGELOG.md +38 -0
- package/client.d.mts +5 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -6
- package/client.d.ts.map +1 -1
- package/client.js +38 -10
- package/client.js.map +1 -1
- package/client.mjs +39 -11
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +4 -0
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +4 -0
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +6 -0
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +6 -0
- package/core/streaming.mjs.map +1 -1
- package/helpers/beta/agents/standard-schema.d.mts +7 -0
- package/helpers/beta/agents/standard-schema.d.mts.map +1 -0
- package/helpers/beta/agents/standard-schema.d.ts +7 -0
- package/helpers/beta/agents/standard-schema.d.ts.map +1 -0
- package/helpers/beta/agents/standard-schema.js +12 -0
- package/helpers/beta/agents/standard-schema.js.map +1 -0
- package/helpers/beta/agents/standard-schema.mjs +9 -0
- package/helpers/beta/agents/standard-schema.mjs.map +1 -0
- package/helpers/beta/agents/zod.d.mts +10 -0
- package/helpers/beta/agents/zod.d.mts.map +1 -0
- package/helpers/beta/agents/zod.d.ts +10 -0
- package/helpers/beta/agents/zod.d.ts.map +1 -0
- package/helpers/beta/agents/zod.js +12 -0
- package/helpers/beta/agents/zod.js.map +1 -0
- package/helpers/beta/agents/zod.mjs +9 -0
- package/helpers/beta/agents/zod.mjs.map +1 -0
- package/internal/realtime-credentials.d.mts +22 -1
- package/internal/realtime-credentials.d.mts.map +1 -1
- package/internal/realtime-credentials.d.ts +22 -1
- package/internal/realtime-credentials.d.ts.map +1 -1
- package/internal/realtime-credentials.js +48 -4
- package/internal/realtime-credentials.js.map +1 -1
- package/internal/realtime-credentials.mjs +45 -4
- package/internal/realtime-credentials.mjs.map +1 -1
- package/internal/responses-ws-credentials.d.mts +23 -0
- package/internal/responses-ws-credentials.d.mts.map +1 -0
- package/internal/responses-ws-credentials.d.ts +23 -0
- package/internal/responses-ws-credentials.d.ts.map +1 -0
- package/internal/responses-ws-credentials.js +108 -0
- package/internal/responses-ws-credentials.js.map +1 -0
- package/internal/responses-ws-credentials.mjs +104 -0
- package/internal/responses-ws-credentials.mjs.map +1 -0
- package/internal/ws-adapter-node.d.mts +4 -0
- package/internal/ws-adapter-node.d.mts.map +1 -1
- package/internal/ws-adapter-node.d.ts +4 -0
- package/internal/ws-adapter-node.d.ts.map +1 -1
- package/internal/ws-adapter-node.js +56 -0
- package/internal/ws-adapter-node.js.map +1 -1
- package/internal/ws-adapter-node.mjs +55 -0
- package/internal/ws-adapter-node.mjs.map +1 -1
- package/internal/ws.d.mts +27 -4
- package/internal/ws.d.mts.map +1 -1
- package/internal/ws.d.ts +27 -4
- package/internal/ws.d.ts.map +1 -1
- package/internal/ws.js +105 -5
- package/internal/ws.js.map +1 -1
- package/internal/ws.mjs +102 -4
- package/internal/ws.mjs.map +1 -1
- package/lib/agents/agent-session-stream.d.mts +13 -4
- package/lib/agents/agent-session-stream.d.mts.map +1 -1
- package/lib/agents/agent-session-stream.d.ts +13 -4
- package/lib/agents/agent-session-stream.d.ts.map +1 -1
- package/lib/agents/agent-session-stream.js +24 -21
- package/lib/agents/agent-session-stream.js.map +1 -1
- package/lib/agents/agent-session-stream.mjs +24 -21
- package/lib/agents/agent-session-stream.mjs.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts +15 -0
- package/lib/beta/agents/agent-session-create-stream.d.mts.map +1 -0
- package/lib/beta/agents/agent-session-create-stream.d.ts +15 -0
- package/lib/beta/agents/agent-session-create-stream.d.ts.map +1 -0
- package/lib/beta/agents/agent-session-create-stream.js +25 -0
- package/lib/beta/agents/agent-session-create-stream.js.map +1 -0
- package/lib/beta/agents/agent-session-create-stream.mjs +22 -0
- package/lib/beta/agents/agent-session-create-stream.mjs.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.d.mts +17 -0
- package/lib/beta/agents/agent-turn-result-collector.d.mts.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.d.ts +17 -0
- package/lib/beta/agents/agent-turn-result-collector.d.ts.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.js +99 -0
- package/lib/beta/agents/agent-turn-result-collector.js.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.mjs +95 -0
- package/lib/beta/agents/agent-turn-result-collector.mjs.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.d.mts +16 -0
- package/lib/beta/agents/agent-turn-result-error.d.mts.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.d.ts +16 -0
- package/lib/beta/agents/agent-turn-result-error.d.ts.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.js +22 -0
- package/lib/beta/agents/agent-turn-result-error.js.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.mjs +18 -0
- package/lib/beta/agents/agent-turn-result-error.mjs.map +1 -0
- package/lib/beta/agents/agent-turn-result.d.mts +12 -0
- package/lib/beta/agents/agent-turn-result.d.mts.map +1 -0
- package/lib/beta/agents/agent-turn-result.d.ts +12 -0
- package/lib/beta/agents/agent-turn-result.d.ts.map +1 -0
- package/lib/beta/agents/agent-turn-result.js +22 -0
- package/lib/beta/agents/agent-turn-result.js.map +1 -0
- package/lib/beta/agents/agent-turn-result.mjs +18 -0
- package/lib/beta/agents/agent-turn-result.mjs.map +1 -0
- package/lib/beta/agents/function-tool.d.mts +27 -0
- package/lib/beta/agents/function-tool.d.mts.map +1 -0
- package/lib/beta/agents/function-tool.d.ts +27 -0
- package/lib/beta/agents/function-tool.d.ts.map +1 -0
- package/lib/beta/agents/function-tool.js +48 -0
- package/lib/beta/agents/function-tool.js.map +1 -0
- package/lib/beta/agents/function-tool.mjs +45 -0
- package/lib/beta/agents/function-tool.mjs.map +1 -0
- package/lib/beta/agents/output-format-types.d.mts +11 -0
- package/lib/beta/agents/output-format-types.d.mts.map +1 -0
- package/lib/beta/agents/output-format-types.d.ts +11 -0
- package/lib/beta/agents/output-format-types.d.ts.map +1 -0
- package/lib/beta/agents/output-format-types.js +3 -0
- package/lib/beta/agents/output-format-types.js.map +1 -0
- package/lib/beta/agents/output-format-types.mjs +2 -0
- package/lib/beta/agents/output-format-types.mjs.map +1 -0
- package/lib/beta/agents/output-format.d.mts +8 -0
- package/lib/beta/agents/output-format.d.mts.map +1 -0
- package/lib/beta/agents/output-format.d.ts +8 -0
- package/lib/beta/agents/output-format.d.ts.map +1 -0
- package/lib/beta/agents/output-format.js +20 -0
- package/lib/beta/agents/output-format.js.map +1 -0
- package/lib/beta/agents/output-format.mjs +14 -0
- package/lib/beta/agents/output-format.mjs.map +1 -0
- package/lib/beta/agents/output-parse-error.d.mts +11 -0
- package/lib/beta/agents/output-parse-error.d.mts.map +1 -0
- package/lib/beta/agents/output-parse-error.d.ts +11 -0
- package/lib/beta/agents/output-parse-error.d.ts.map +1 -0
- package/lib/beta/agents/output-parse-error.js +22 -0
- package/lib/beta/agents/output-parse-error.js.map +1 -0
- package/lib/beta/agents/output-parse-error.mjs +18 -0
- package/lib/beta/agents/output-parse-error.mjs.map +1 -0
- package/lib/beta/agents/parse-result.d.mts +95 -0
- package/lib/beta/agents/parse-result.d.mts.map +1 -0
- package/lib/beta/agents/parse-result.d.ts +95 -0
- package/lib/beta/agents/parse-result.d.ts.map +1 -0
- package/lib/beta/agents/parse-result.js +116 -0
- package/lib/beta/agents/parse-result.js.map +1 -0
- package/lib/beta/agents/parse-result.mjs +110 -0
- package/lib/beta/agents/parse-result.mjs.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.mts +8 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.mts.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.ts +8 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.ts.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.js +14 -0
- package/lib/beta/agents/parsed-agent-turn-result.js.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.mjs +10 -0
- package/lib/beta/agents/parsed-agent-turn-result.mjs.map +1 -0
- package/lib/beta/agents/result-collection.d.mts +15 -0
- package/lib/beta/agents/result-collection.d.mts.map +1 -0
- package/lib/beta/agents/result-collection.d.ts +15 -0
- package/lib/beta/agents/result-collection.d.ts.map +1 -0
- package/lib/beta/agents/result-collection.js +110 -0
- package/lib/beta/agents/result-collection.js.map +1 -0
- package/lib/beta/agents/result-collection.mjs +106 -0
- package/lib/beta/agents/result-collection.mjs.map +1 -0
- package/lib/beta/agents/tool-output.d.mts +7 -0
- package/lib/beta/agents/tool-output.d.mts.map +1 -0
- package/lib/beta/agents/tool-output.d.ts +7 -0
- package/lib/beta/agents/tool-output.d.ts.map +1 -0
- package/lib/beta/agents/tool-output.js +26 -0
- package/lib/beta/agents/tool-output.js.map +1 -0
- package/lib/beta/agents/tool-output.mjs +23 -0
- package/lib/beta/agents/tool-output.mjs.map +1 -0
- package/lib/responses/responses-websocket-session.d.mts +1 -1
- package/lib/responses/responses-websocket-session.d.mts.map +1 -1
- package/lib/responses/responses-websocket-session.d.ts +1 -1
- package/lib/responses/responses-websocket-session.d.ts.map +1 -1
- package/lib/responses/responses-websocket-session.js +12 -2
- package/lib/responses/responses-websocket-session.js.map +1 -1
- package/lib/responses/responses-websocket-session.mjs +12 -2
- package/lib/responses/responses-websocket-session.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audio/speech.d.mts +1 -1
- package/resources/audio/speech.d.ts +1 -1
- package/resources/audio/speech.js +1 -1
- package/resources/audio/speech.mjs +1 -1
- package/resources/beta/agents/agents.d.mts +574 -11
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +574 -11
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +56 -3
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +56 -3
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts +16 -12
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts +16 -12
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +16 -12
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +16 -12
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- package/resources/beta/agents/sessions/index.d.mts +1 -0
- package/resources/beta/agents/sessions/index.d.mts.map +1 -1
- package/resources/beta/agents/sessions/index.d.ts +1 -0
- package/resources/beta/agents/sessions/index.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.js +3 -1
- package/resources/beta/agents/sessions/index.js.map +1 -1
- package/resources/beta/agents/sessions/index.mjs +1 -0
- package/resources/beta/agents/sessions/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +16 -4
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +16 -4
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +17 -4
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +17 -4
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/traces.d.mts +68 -0
- package/resources/beta/agents/sessions/traces.d.mts.map +1 -0
- package/resources/beta/agents/sessions/traces.d.ts +68 -0
- package/resources/beta/agents/sessions/traces.d.ts.map +1 -0
- package/resources/beta/agents/sessions/traces.js +81 -0
- package/resources/beta/agents/sessions/traces.js.map +1 -0
- package/resources/beta/agents/sessions/traces.mjs +77 -0
- package/resources/beta/agents/sessions/traces.mjs.map +1 -0
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/ws-base.d.mts +3 -1
- package/resources/beta/responses/ws-base.d.mts.map +1 -1
- package/resources/beta/responses/ws-base.d.ts +3 -1
- package/resources/beta/responses/ws-base.d.ts.map +1 -1
- package/resources/beta/responses/ws-base.js +35 -6
- package/resources/beta/responses/ws-base.js.map +1 -1
- package/resources/beta/responses/ws-base.mjs +35 -6
- package/resources/beta/responses/ws-base.mjs.map +1 -1
- package/resources/beta/responses/ws.d.mts +10 -0
- package/resources/beta/responses/ws.d.mts.map +1 -1
- package/resources/beta/responses/ws.d.ts +10 -0
- package/resources/beta/responses/ws.d.ts.map +1 -1
- package/resources/beta/responses/ws.js +23 -22
- package/resources/beta/responses/ws.js.map +1 -1
- package/resources/beta/responses/ws.mjs +24 -23
- package/resources/beta/responses/ws.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +1 -1
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +1 -1
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/live/forks/forks.d.mts +5 -1
- package/resources/live/forks/forks.d.mts.map +1 -1
- package/resources/live/forks/forks.d.ts +5 -1
- package/resources/live/forks/forks.d.ts.map +1 -1
- package/resources/live/live.d.mts +5 -1
- package/resources/live/live.d.mts.map +1 -1
- package/resources/live/live.d.ts +5 -1
- package/resources/live/live.d.ts.map +1 -1
- package/resources/live/live.js.map +1 -1
- package/resources/live/live.mjs.map +1 -1
- package/resources/responses/ws-base.d.mts +3 -1
- package/resources/responses/ws-base.d.mts.map +1 -1
- package/resources/responses/ws-base.d.ts +3 -1
- package/resources/responses/ws-base.d.ts.map +1 -1
- package/resources/responses/ws-base.js +35 -6
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +35 -6
- package/resources/responses/ws-base.mjs.map +1 -1
- package/resources/responses/ws.d.mts +10 -0
- package/resources/responses/ws.d.mts.map +1 -1
- package/resources/responses/ws.d.ts +10 -0
- package/resources/responses/ws.d.ts.map +1 -1
- package/resources/responses/ws.js +23 -22
- package/resources/responses/ws.js.map +1 -1
- package/resources/responses/ws.mjs +24 -23
- package/resources/responses/ws.mjs.map +1 -1
- package/src/client.ts +55 -19
- package/src/core/streaming.ts +9 -0
- package/src/helpers/beta/agents/standard-schema.ts +13 -0
- package/src/helpers/beta/agents/zod.ts +10 -0
- package/src/internal/realtime-credentials.ts +70 -4
- package/src/internal/responses-ws-credentials.ts +160 -0
- package/src/internal/ws-adapter-node.ts +66 -0
- package/src/internal/ws.ts +139 -11
- package/src/lib/agents/agent-session-stream.ts +36 -24
- package/src/lib/beta/agents/agent-session-create-stream.ts +36 -0
- package/src/lib/beta/agents/agent-turn-result-collector.ts +122 -0
- package/src/lib/beta/agents/agent-turn-result-error.ts +33 -0
- package/src/lib/beta/agents/agent-turn-result.ts +22 -0
- package/src/lib/beta/agents/function-tool.ts +60 -0
- package/src/lib/beta/agents/output-format-types.ts +12 -0
- package/src/lib/beta/agents/output-format.ts +20 -0
- package/src/lib/beta/agents/output-parse-error.ts +16 -0
- package/src/lib/beta/agents/parse-result.ts +133 -0
- package/src/lib/beta/agents/parsed-agent-turn-result.ts +12 -0
- package/src/lib/beta/agents/result-collection.ts +115 -0
- package/src/lib/beta/agents/tool-output.ts +22 -0
- package/src/lib/responses/responses-websocket-session.ts +14 -3
- package/src/resources/audio/speech.ts +1 -1
- package/src/resources/beta/agents/agents.ts +697 -6
- package/src/resources/beta/agents/environments/templates.ts +64 -3
- package/src/resources/beta/agents/index.ts +3 -0
- package/src/resources/beta/agents/sessions/events.ts +16 -12
- package/src/resources/beta/agents/sessions/index.ts +1 -0
- package/src/resources/beta/agents/sessions/sessions.ts +48 -18
- package/src/resources/beta/agents/sessions/traces.ts +298 -0
- package/src/resources/beta/beta.ts +6 -0
- package/src/resources/beta/index.ts +3 -0
- package/src/resources/beta/responses/ws-base.ts +40 -6
- package/src/resources/beta/responses/ws.ts +37 -27
- package/src/resources/chat/completions/completions.ts +1 -1
- package/src/resources/evals/runs/runs.ts +1 -1
- package/src/resources/live/forks/forks.ts +6 -1
- package/src/resources/live/live.ts +6 -1
- package/src/resources/responses/ws-base.ts +40 -6
- package/src/resources/responses/ws.ts +37 -27
- package/src/tsconfig.dist-src-node.d.ts +7 -0
- package/src/tsconfig.dist-src.d.ts +3 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -440,6 +440,59 @@ export interface Agent {
|
|
|
440
440
|
updated_at: number;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
export interface AgentBrowserAuthenticationCancelParam {
|
|
444
|
+
action: 'cancel';
|
|
445
|
+
|
|
446
|
+
type: 'browser_authentication';
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface AgentBrowserAuthenticationSubmitParam {
|
|
450
|
+
action: 'submit';
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Values for up to six active fields in the required action. The submitted
|
|
454
|
+
* field-value mapping and selected option must fit within 120 KiB of JSON.
|
|
455
|
+
*/
|
|
456
|
+
fields: Array<AgentBrowserAuthenticationSubmitParam.Field>;
|
|
457
|
+
|
|
458
|
+
type: 'browser_authentication';
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The chosen method. Required when the required action contains options.
|
|
462
|
+
*/
|
|
463
|
+
selected_option?: string | null;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export namespace AgentBrowserAuthenticationSubmitParam {
|
|
467
|
+
/**
|
|
468
|
+
* One user-entered value, including non-password fields such as an email address.
|
|
469
|
+
*/
|
|
470
|
+
export interface Field {
|
|
471
|
+
/**
|
|
472
|
+
* The field ID from the required action.
|
|
473
|
+
*/
|
|
474
|
+
field_id: string;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* The value to enter into the registered control.
|
|
478
|
+
*/
|
|
479
|
+
value: string;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export interface AgentBrowserOriginAccessParam {
|
|
484
|
+
/**
|
|
485
|
+
* Whether to allow, deny, or cancel the requested origin access.
|
|
486
|
+
*
|
|
487
|
+
* - `approve` - Allow the browser to access this origin.
|
|
488
|
+
* - `deny` - Deny access to this origin.
|
|
489
|
+
* - `cancel` - Dismiss this request without approving access.
|
|
490
|
+
*/
|
|
491
|
+
decision: 'approve' | 'deny' | 'cancel';
|
|
492
|
+
|
|
493
|
+
type: 'browser_origin_access';
|
|
494
|
+
}
|
|
495
|
+
|
|
443
496
|
/**
|
|
444
497
|
* A request to close a subagent.
|
|
445
498
|
*/
|
|
@@ -806,6 +859,8 @@ export type AgentOutputItem =
|
|
|
806
859
|
| AgentReasoningItem
|
|
807
860
|
| AgentFunctionCallItem
|
|
808
861
|
| AgentMcpCallItem
|
|
862
|
+
| AgentOutputItem.ComputerUseCallItemResource
|
|
863
|
+
| AgentOutputItem.BrowserAuthenticationRequestItemResource
|
|
809
864
|
| AgentWebSearchCallItem
|
|
810
865
|
| AgentCommandExecutionItem
|
|
811
866
|
| AgentCreateSubagentCallItem
|
|
@@ -815,6 +870,165 @@ export type AgentOutputItem =
|
|
|
815
870
|
| AgentInterruptSubagentCallItem
|
|
816
871
|
| AgentCloseSubagentCallItem;
|
|
817
872
|
|
|
873
|
+
export namespace AgentOutputItem {
|
|
874
|
+
/**
|
|
875
|
+
* One execution of the platform-provided computer-use capability.
|
|
876
|
+
*/
|
|
877
|
+
export interface ComputerUseCallItemResource {
|
|
878
|
+
/**
|
|
879
|
+
* The ID of the activity item.
|
|
880
|
+
*/
|
|
881
|
+
id: string;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* The last screenshot emitted by the model. Null when screenshot inclusion is
|
|
885
|
+
* disabled or the call emitted no screenshot.
|
|
886
|
+
*/
|
|
887
|
+
output: ComputerUseCallItemResource.Output | null;
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* The execution status of the activity.
|
|
891
|
+
*/
|
|
892
|
+
status: AgentsAPI.AgentFunctionCallStatus;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* A model-generated description of the activity, when available.
|
|
896
|
+
*/
|
|
897
|
+
title: string | null;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* The ID of the turn that contains this item.
|
|
901
|
+
*/
|
|
902
|
+
turn_id: string;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* The item type. Always `computer_use_call`.
|
|
906
|
+
*/
|
|
907
|
+
type: 'computer_use_call';
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
export namespace ComputerUseCallItemResource {
|
|
911
|
+
/**
|
|
912
|
+
* The last screenshot emitted by the model. Null when screenshot inclusion is
|
|
913
|
+
* disabled or the call emitted no screenshot.
|
|
914
|
+
*/
|
|
915
|
+
export interface Output {
|
|
916
|
+
/**
|
|
917
|
+
* The complete JPEG image as a base64 data URL.
|
|
918
|
+
*/
|
|
919
|
+
image_url: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* The content type. Always `computer_screenshot`.
|
|
923
|
+
*/
|
|
924
|
+
type: 'computer_screenshot';
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* A credential-free history record of the emitted login request.
|
|
930
|
+
*/
|
|
931
|
+
export interface BrowserAuthenticationRequestItemResource {
|
|
932
|
+
/**
|
|
933
|
+
* The stable history item ID.
|
|
934
|
+
*/
|
|
935
|
+
id: string;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* A registered form awaiting the application's response.
|
|
939
|
+
*/
|
|
940
|
+
request: BrowserAuthenticationRequestItemResource.Request;
|
|
941
|
+
|
|
942
|
+
request_id: string;
|
|
943
|
+
|
|
944
|
+
turn_id: string;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* The item type. Always computer_use_approval_request.
|
|
948
|
+
*/
|
|
949
|
+
type: 'computer_use_approval_request';
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
export namespace BrowserAuthenticationRequestItemResource {
|
|
953
|
+
/**
|
|
954
|
+
* A registered form awaiting the application's response.
|
|
955
|
+
*/
|
|
956
|
+
export interface Request {
|
|
957
|
+
/**
|
|
958
|
+
* The registered form or frame origin where values will be entered.
|
|
959
|
+
*/
|
|
960
|
+
credential_origin: string | null;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Controls to render. All submitted values are sensitive.
|
|
964
|
+
*/
|
|
965
|
+
fields: Array<Request.Field>;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Sign-in methods. Empty for a plain form.
|
|
969
|
+
*/
|
|
970
|
+
options: Array<Request.Option>;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Why the agent needs the user to sign in.
|
|
974
|
+
*/
|
|
975
|
+
reason: string | null;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* The type of the object. Always `browser_authentication`.
|
|
979
|
+
*/
|
|
980
|
+
type: 'browser_authentication';
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
export namespace Request {
|
|
984
|
+
/**
|
|
985
|
+
* A control in a registered browser-login form.
|
|
986
|
+
*/
|
|
987
|
+
export interface Field {
|
|
988
|
+
/**
|
|
989
|
+
* The field ID to submit as field_id in a fields entry.
|
|
990
|
+
*/
|
|
991
|
+
id: string;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* The label to display beside the control.
|
|
995
|
+
*/
|
|
996
|
+
label: string;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Whether this control requires a nonempty value.
|
|
1000
|
+
*/
|
|
1001
|
+
required: boolean;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* The rendering type, such as email, password, or text.
|
|
1005
|
+
*/
|
|
1006
|
+
type: string;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* A sign-in method and the fields that belong to it.
|
|
1011
|
+
*/
|
|
1012
|
+
export interface Option {
|
|
1013
|
+
/**
|
|
1014
|
+
* The option ID to submit as selected_option.
|
|
1015
|
+
*/
|
|
1016
|
+
id: string;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* IDs from the registered fields that this method accepts.
|
|
1020
|
+
*/
|
|
1021
|
+
field_ids: Array<string>;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* The method label to display.
|
|
1025
|
+
*/
|
|
1026
|
+
label: string;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
|
|
818
1032
|
/**
|
|
819
1033
|
* The status of an agent output item.
|
|
820
1034
|
*
|
|
@@ -1019,6 +1233,7 @@ export interface AgentSession {
|
|
|
1019
1233
|
* Actions that must be completed before the session can continue.
|
|
1020
1234
|
*/
|
|
1021
1235
|
required_actions: Array<
|
|
1236
|
+
| AgentSession.SessionRequiredActionResourceComputerUseApprovalRequest
|
|
1022
1237
|
| AgentSession.SessionRequiredActionResourceFunctionCall
|
|
1023
1238
|
| AgentSession.SessionRequiredActionResourceEnvironmentConnection
|
|
1024
1239
|
>;
|
|
@@ -1098,6 +1313,132 @@ export namespace AgentSession {
|
|
|
1098
1313
|
tools: Array<AgentsAPI.AgentTool>;
|
|
1099
1314
|
}
|
|
1100
1315
|
|
|
1316
|
+
/**
|
|
1317
|
+
* Respond to a computer-use request.
|
|
1318
|
+
*/
|
|
1319
|
+
export interface SessionRequiredActionResourceComputerUseApprovalRequest {
|
|
1320
|
+
/**
|
|
1321
|
+
* The information needed to render the request.
|
|
1322
|
+
*/
|
|
1323
|
+
request:
|
|
1324
|
+
| SessionRequiredActionResourceComputerUseApprovalRequest.ComputerUseApprovalRequestKindResourceBrowserAuthentication
|
|
1325
|
+
| SessionRequiredActionResourceComputerUseApprovalRequest.ComputerUseApprovalRequestKindResourceBrowserOriginAccess;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* The registered request ID to echo when responding.
|
|
1329
|
+
*/
|
|
1330
|
+
request_id: string;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* The turn that requested approval.
|
|
1334
|
+
*/
|
|
1335
|
+
turn_id: string;
|
|
1336
|
+
|
|
1337
|
+
/**
|
|
1338
|
+
* The type of the object. Always `computer_use_approval_request`.
|
|
1339
|
+
*/
|
|
1340
|
+
type: 'computer_use_approval_request';
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
export namespace SessionRequiredActionResourceComputerUseApprovalRequest {
|
|
1344
|
+
/**
|
|
1345
|
+
* A registered form awaiting the application's response.
|
|
1346
|
+
*/
|
|
1347
|
+
export interface ComputerUseApprovalRequestKindResourceBrowserAuthentication {
|
|
1348
|
+
/**
|
|
1349
|
+
* The registered form or frame origin where values will be entered.
|
|
1350
|
+
*/
|
|
1351
|
+
credential_origin: string | null;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Controls to render. All submitted values are sensitive.
|
|
1355
|
+
*/
|
|
1356
|
+
fields: Array<ComputerUseApprovalRequestKindResourceBrowserAuthentication.Field>;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Sign-in methods. Empty for a plain form.
|
|
1360
|
+
*/
|
|
1361
|
+
options: Array<ComputerUseApprovalRequestKindResourceBrowserAuthentication.Option>;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
* Why the agent needs the user to sign in.
|
|
1365
|
+
*/
|
|
1366
|
+
reason: string | null;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* The type of the object. Always `browser_authentication`.
|
|
1370
|
+
*/
|
|
1371
|
+
type: 'browser_authentication';
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
export namespace ComputerUseApprovalRequestKindResourceBrowserAuthentication {
|
|
1375
|
+
/**
|
|
1376
|
+
* A control in a registered browser-login form.
|
|
1377
|
+
*/
|
|
1378
|
+
export interface Field {
|
|
1379
|
+
/**
|
|
1380
|
+
* The field ID to submit as field_id in a fields entry.
|
|
1381
|
+
*/
|
|
1382
|
+
id: string;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* The label to display beside the control.
|
|
1386
|
+
*/
|
|
1387
|
+
label: string;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Whether this control requires a nonempty value.
|
|
1391
|
+
*/
|
|
1392
|
+
required: boolean;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* The rendering type, such as email, password, or text.
|
|
1396
|
+
*/
|
|
1397
|
+
type: string;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* A sign-in method and the fields that belong to it.
|
|
1402
|
+
*/
|
|
1403
|
+
export interface Option {
|
|
1404
|
+
/**
|
|
1405
|
+
* The option ID to submit as selected_option.
|
|
1406
|
+
*/
|
|
1407
|
+
id: string;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* IDs from the registered fields that this method accepts.
|
|
1411
|
+
*/
|
|
1412
|
+
field_ids: Array<string>;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* The method label to display.
|
|
1416
|
+
*/
|
|
1417
|
+
label: string;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* A browser origin awaiting the application's approval decision.
|
|
1423
|
+
*/
|
|
1424
|
+
export interface ComputerUseApprovalRequestKindResourceBrowserOriginAccess {
|
|
1425
|
+
/**
|
|
1426
|
+
* The origin the browser needs permission to access.
|
|
1427
|
+
*/
|
|
1428
|
+
origin: string;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* The browser's explanation for this request, or null when unavailable.
|
|
1432
|
+
*/
|
|
1433
|
+
reason: string | null;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* The type of the object. Always `browser_origin_access`.
|
|
1437
|
+
*/
|
|
1438
|
+
type: 'browser_origin_access';
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1101
1442
|
/**
|
|
1102
1443
|
* Run a function tool and submit its result.
|
|
1103
1444
|
*/
|
|
@@ -1613,11 +1954,36 @@ export interface AgentSessionInputMessageParam {
|
|
|
1613
1954
|
* Input submitted to an existing session.
|
|
1614
1955
|
*/
|
|
1615
1956
|
export type AgentSessionInputParam =
|
|
1957
|
+
| AgentSessionInputParam.SessionInputParamAgentSessionInputComputerUseApprovalRequestResult
|
|
1616
1958
|
| AgentSessionInputParam.SessionInputParamAgentSessionInputMessage
|
|
1617
1959
|
| AgentSessionInputParam.SessionInputParamAgentSessionInputCancel
|
|
1618
1960
|
| AgentSessionInputParam.SessionInputParamAgentSessionInputToolResult;
|
|
1619
1961
|
|
|
1620
1962
|
export namespace AgentSessionInputParam {
|
|
1963
|
+
/**
|
|
1964
|
+
* Responds to a pending Computer Use approval request.
|
|
1965
|
+
*/
|
|
1966
|
+
export interface SessionInputParamAgentSessionInputComputerUseApprovalRequestResult {
|
|
1967
|
+
/**
|
|
1968
|
+
* The registered request ID from the required action.
|
|
1969
|
+
*/
|
|
1970
|
+
request_id: string;
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* The response for this request type.
|
|
1974
|
+
*/
|
|
1975
|
+
response:
|
|
1976
|
+
| AgentsAPI.AgentBrowserAuthenticationSubmitParam
|
|
1977
|
+
| AgentsAPI.AgentBrowserAuthenticationCancelParam
|
|
1978
|
+
| AgentsAPI.AgentBrowserOriginAccessParam;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* The type of the object. Always
|
|
1982
|
+
* `agent.session.input.computer_use_approval_request_result`.
|
|
1983
|
+
*/
|
|
1984
|
+
type: 'agent.session.input.computer_use_approval_request_result';
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1621
1987
|
/**
|
|
1622
1988
|
* Adds one or more user messages and starts a turn.
|
|
1623
1989
|
*/
|
|
@@ -1689,6 +2055,9 @@ export type AgentSessionItem =
|
|
|
1689
2055
|
| AgentSessionItem.FunctionCallOutputItemResource
|
|
1690
2056
|
| AgentSessionItem.AgentMessageItemResource
|
|
1691
2057
|
| AgentMcpCallItem
|
|
2058
|
+
| AgentSessionItem.ComputerUseCallItemResource
|
|
2059
|
+
| AgentSessionItem.BrowserAuthenticationRequestItemResource
|
|
2060
|
+
| AgentSessionItem.ComputerUseApprovalRequestResultItemResource
|
|
1692
2061
|
| AgentWebSearchCallItem
|
|
1693
2062
|
| AgentCommandExecutionItem
|
|
1694
2063
|
| AgentCreateSubagentCallItem
|
|
@@ -1773,6 +2142,211 @@ export namespace AgentSessionItem {
|
|
|
1773
2142
|
*/
|
|
1774
2143
|
type: 'agent_message';
|
|
1775
2144
|
}
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* One execution of the platform-provided computer-use capability.
|
|
2148
|
+
*/
|
|
2149
|
+
export interface ComputerUseCallItemResource {
|
|
2150
|
+
/**
|
|
2151
|
+
* The ID of the activity item.
|
|
2152
|
+
*/
|
|
2153
|
+
id: string;
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* The last screenshot emitted by the model. Null when screenshot inclusion is
|
|
2157
|
+
* disabled or the call emitted no screenshot.
|
|
2158
|
+
*/
|
|
2159
|
+
output: ComputerUseCallItemResource.Output | null;
|
|
2160
|
+
|
|
2161
|
+
/**
|
|
2162
|
+
* The execution status of the activity.
|
|
2163
|
+
*/
|
|
2164
|
+
status: AgentsAPI.AgentFunctionCallStatus;
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* A model-generated description of the activity, when available.
|
|
2168
|
+
*/
|
|
2169
|
+
title: string | null;
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* The ID of the turn that contains this item.
|
|
2173
|
+
*/
|
|
2174
|
+
turn_id: string;
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* The item type. Always `computer_use_call`.
|
|
2178
|
+
*/
|
|
2179
|
+
type: 'computer_use_call';
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
export namespace ComputerUseCallItemResource {
|
|
2183
|
+
/**
|
|
2184
|
+
* The last screenshot emitted by the model. Null when screenshot inclusion is
|
|
2185
|
+
* disabled or the call emitted no screenshot.
|
|
2186
|
+
*/
|
|
2187
|
+
export interface Output {
|
|
2188
|
+
/**
|
|
2189
|
+
* The complete JPEG image as a base64 data URL.
|
|
2190
|
+
*/
|
|
2191
|
+
image_url: string;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* The content type. Always `computer_screenshot`.
|
|
2195
|
+
*/
|
|
2196
|
+
type: 'computer_screenshot';
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* A credential-free history record of the emitted login request.
|
|
2202
|
+
*/
|
|
2203
|
+
export interface BrowserAuthenticationRequestItemResource {
|
|
2204
|
+
/**
|
|
2205
|
+
* The stable history item ID.
|
|
2206
|
+
*/
|
|
2207
|
+
id: string;
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* A registered form awaiting the application's response.
|
|
2211
|
+
*/
|
|
2212
|
+
request: BrowserAuthenticationRequestItemResource.Request;
|
|
2213
|
+
|
|
2214
|
+
request_id: string;
|
|
2215
|
+
|
|
2216
|
+
turn_id: string;
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* The item type. Always computer_use_approval_request.
|
|
2220
|
+
*/
|
|
2221
|
+
type: 'computer_use_approval_request';
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
export namespace BrowserAuthenticationRequestItemResource {
|
|
2225
|
+
/**
|
|
2226
|
+
* A registered form awaiting the application's response.
|
|
2227
|
+
*/
|
|
2228
|
+
export interface Request {
|
|
2229
|
+
/**
|
|
2230
|
+
* The registered form or frame origin where values will be entered.
|
|
2231
|
+
*/
|
|
2232
|
+
credential_origin: string | null;
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* Controls to render. All submitted values are sensitive.
|
|
2236
|
+
*/
|
|
2237
|
+
fields: Array<Request.Field>;
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Sign-in methods. Empty for a plain form.
|
|
2241
|
+
*/
|
|
2242
|
+
options: Array<Request.Option>;
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* Why the agent needs the user to sign in.
|
|
2246
|
+
*/
|
|
2247
|
+
reason: string | null;
|
|
2248
|
+
|
|
2249
|
+
/**
|
|
2250
|
+
* The type of the object. Always `browser_authentication`.
|
|
2251
|
+
*/
|
|
2252
|
+
type: 'browser_authentication';
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
export namespace Request {
|
|
2256
|
+
/**
|
|
2257
|
+
* A control in a registered browser-login form.
|
|
2258
|
+
*/
|
|
2259
|
+
export interface Field {
|
|
2260
|
+
/**
|
|
2261
|
+
* The field ID to submit as field_id in a fields entry.
|
|
2262
|
+
*/
|
|
2263
|
+
id: string;
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* The label to display beside the control.
|
|
2267
|
+
*/
|
|
2268
|
+
label: string;
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Whether this control requires a nonempty value.
|
|
2272
|
+
*/
|
|
2273
|
+
required: boolean;
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* The rendering type, such as email, password, or text.
|
|
2277
|
+
*/
|
|
2278
|
+
type: string;
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* A sign-in method and the fields that belong to it.
|
|
2283
|
+
*/
|
|
2284
|
+
export interface Option {
|
|
2285
|
+
/**
|
|
2286
|
+
* The option ID to submit as selected_option.
|
|
2287
|
+
*/
|
|
2288
|
+
id: string;
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* IDs from the registered fields that this method accepts.
|
|
2292
|
+
*/
|
|
2293
|
+
field_ids: Array<string>;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* The method label to display.
|
|
2297
|
+
*/
|
|
2298
|
+
label: string;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* A credential-free record of an admitted response, not proof of completion.
|
|
2305
|
+
*/
|
|
2306
|
+
export interface ComputerUseApprovalRequestResultItemResource {
|
|
2307
|
+
/**
|
|
2308
|
+
* The stable history item ID.
|
|
2309
|
+
*/
|
|
2310
|
+
id: string;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* The registered request answered by this item.
|
|
2314
|
+
*/
|
|
2315
|
+
request_id: string;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* The admitted response, without submitted credential values.
|
|
2319
|
+
*/
|
|
2320
|
+
response:
|
|
2321
|
+
| ComputerUseApprovalRequestResultItemResource.ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResource
|
|
2322
|
+
| ComputerUseApprovalRequestResultItemResource.ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResource;
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* The ID of the turn that contains this item.
|
|
2326
|
+
*/
|
|
2327
|
+
turn_id: string;
|
|
2328
|
+
|
|
2329
|
+
type: 'computer_use_approval_request_result';
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
export namespace ComputerUseApprovalRequestResultItemResource {
|
|
2333
|
+
export interface ComputerUseApprovalResponseKindResourceBrowserAuthenticationSubmitResource {
|
|
2334
|
+
action: 'submit';
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* The chosen sign-in method, or null when no options were offered.
|
|
2338
|
+
*/
|
|
2339
|
+
selected_option: string | null;
|
|
2340
|
+
|
|
2341
|
+
type: 'browser_authentication';
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
export interface ComputerUseApprovalResponseKindResourceBrowserAuthenticationCancelResource {
|
|
2345
|
+
action: 'cancel';
|
|
2346
|
+
|
|
2347
|
+
type: 'browser_authentication';
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
1776
2350
|
}
|
|
1777
2351
|
|
|
1778
2352
|
/**
|
|
@@ -2599,7 +3173,8 @@ export type AgentTool =
|
|
|
2599
3173
|
| AgentTool.AgentToolResourceFunction
|
|
2600
3174
|
| AgentTool.AgentToolResourceProgrammaticToolCalling
|
|
2601
3175
|
| AgentTool.AgentToolResourceMcp
|
|
2602
|
-
| AgentTool.AgentToolResourceWebSearch
|
|
3176
|
+
| AgentTool.AgentToolResourceWebSearch
|
|
3177
|
+
| AgentTool.AgentToolResourceComputerUse;
|
|
2603
3178
|
|
|
2604
3179
|
export namespace AgentTool {
|
|
2605
3180
|
/**
|
|
@@ -2749,6 +3324,21 @@ export namespace AgentTool {
|
|
|
2749
3324
|
timezone: string | null;
|
|
2750
3325
|
}
|
|
2751
3326
|
}
|
|
3327
|
+
|
|
3328
|
+
/**
|
|
3329
|
+
* Browser use in an OpenAI-hosted session.
|
|
3330
|
+
*/
|
|
3331
|
+
export interface AgentToolResourceComputerUse {
|
|
3332
|
+
/**
|
|
3333
|
+
* Whether computer tool outputs include screenshots.
|
|
3334
|
+
*/
|
|
3335
|
+
include_screenshots: boolean;
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* The type of the object. Always `computer_use`.
|
|
3339
|
+
*/
|
|
3340
|
+
type: 'computer_use';
|
|
3341
|
+
}
|
|
2752
3342
|
}
|
|
2753
3343
|
|
|
2754
3344
|
/**
|
|
@@ -2759,7 +3349,8 @@ export type AgentToolParam =
|
|
|
2759
3349
|
| AgentToolParam.AgentToolConfigParamToolSearch
|
|
2760
3350
|
| AgentToolParam.AgentToolConfigParamProgrammaticToolCalling
|
|
2761
3351
|
| AgentToolParam.AgentToolConfigParamMcp
|
|
2762
|
-
| AgentToolParam.AgentToolConfigParamWebSearch
|
|
3352
|
+
| AgentToolParam.AgentToolConfigParamWebSearch
|
|
3353
|
+
| AgentToolParam.AgentToolConfigParamComputerUse;
|
|
2763
3354
|
|
|
2764
3355
|
export namespace AgentToolParam {
|
|
2765
3356
|
/**
|
|
@@ -2930,6 +3521,21 @@ export namespace AgentToolParam {
|
|
|
2930
3521
|
timezone?: string | null;
|
|
2931
3522
|
}
|
|
2932
3523
|
}
|
|
3524
|
+
|
|
3525
|
+
/**
|
|
3526
|
+
* Browser use in an OpenAI-hosted session.
|
|
3527
|
+
*/
|
|
3528
|
+
export interface AgentToolConfigParamComputerUse {
|
|
3529
|
+
/**
|
|
3530
|
+
* The type of the object. Always `computer_use`.
|
|
3531
|
+
*/
|
|
3532
|
+
type: 'computer_use';
|
|
3533
|
+
|
|
3534
|
+
/**
|
|
3535
|
+
* Whether computer tool outputs include screenshots. Defaults to `false`.
|
|
3536
|
+
*/
|
|
3537
|
+
include_screenshots?: boolean;
|
|
3538
|
+
}
|
|
2933
3539
|
}
|
|
2934
3540
|
|
|
2935
3541
|
/**
|
|
@@ -3060,6 +3666,17 @@ export namespace Environment {
|
|
|
3060
3666
|
* The type of the object. Always `openai_hosted`.
|
|
3061
3667
|
*/
|
|
3062
3668
|
type: 'openai_hosted';
|
|
3669
|
+
|
|
3670
|
+
/**
|
|
3671
|
+
* The effective CPU and memory tier, or null when unknown or outside the public
|
|
3672
|
+
* tiers.
|
|
3673
|
+
*/
|
|
3674
|
+
container_size?: 'small' | 'medium' | 'large' | null;
|
|
3675
|
+
|
|
3676
|
+
/**
|
|
3677
|
+
* The effective desktop configuration.
|
|
3678
|
+
*/
|
|
3679
|
+
desktop?: EnvironmentResourceOpenAIHosted.Desktop;
|
|
3063
3680
|
}
|
|
3064
3681
|
|
|
3065
3682
|
export namespace EnvironmentResourceOpenAIHosted {
|
|
@@ -3072,7 +3689,7 @@ export namespace Environment {
|
|
|
3072
3689
|
*
|
|
3073
3690
|
* - `enabled` - Allows unrestricted network access.
|
|
3074
3691
|
* - `disabled` - Disables network access.
|
|
3075
|
-
* - `restricted` -
|
|
3692
|
+
* - `restricted` - Applies the configured domain restrictions.
|
|
3076
3693
|
*/
|
|
3077
3694
|
access: 'enabled' | 'disabled' | 'restricted';
|
|
3078
3695
|
|
|
@@ -3101,6 +3718,16 @@ export namespace Environment {
|
|
|
3101
3718
|
*/
|
|
3102
3719
|
system: Array<string>;
|
|
3103
3720
|
}
|
|
3721
|
+
|
|
3722
|
+
/**
|
|
3723
|
+
* The effective desktop configuration.
|
|
3724
|
+
*/
|
|
3725
|
+
export interface Desktop {
|
|
3726
|
+
/**
|
|
3727
|
+
* Whether the environment provisions a desktop and browser proxy.
|
|
3728
|
+
*/
|
|
3729
|
+
enabled: boolean;
|
|
3730
|
+
}
|
|
3104
3731
|
}
|
|
3105
3732
|
|
|
3106
3733
|
/**
|
|
@@ -3170,6 +3797,17 @@ export namespace EnvironmentParam {
|
|
|
3170
3797
|
*/
|
|
3171
3798
|
capability_directories?: Array<string> | null;
|
|
3172
3799
|
|
|
3800
|
+
/**
|
|
3801
|
+
* The hosted container size. Omission selects the medium tier.
|
|
3802
|
+
*/
|
|
3803
|
+
container_size?: 'small' | 'medium' | 'large';
|
|
3804
|
+
|
|
3805
|
+
/**
|
|
3806
|
+
* Desktop provisioning. Omission or null inherits the template setting, or
|
|
3807
|
+
* defaults to disabled.
|
|
3808
|
+
*/
|
|
3809
|
+
desktop?: EnvironmentParamOpenAIHosted.Desktop | null;
|
|
3810
|
+
|
|
3173
3811
|
/**
|
|
3174
3812
|
* Environment variables made available to the agent.
|
|
3175
3813
|
*/
|
|
@@ -3215,6 +3853,17 @@ export namespace EnvironmentParam {
|
|
|
3215
3853
|
}
|
|
3216
3854
|
|
|
3217
3855
|
export namespace EnvironmentParamOpenAIHosted {
|
|
3856
|
+
/**
|
|
3857
|
+
* Desktop provisioning. Omission or null inherits the template setting, or
|
|
3858
|
+
* defaults to disabled.
|
|
3859
|
+
*/
|
|
3860
|
+
export interface Desktop {
|
|
3861
|
+
/**
|
|
3862
|
+
* Whether to provision the desktop and its browser proxy.
|
|
3863
|
+
*/
|
|
3864
|
+
enabled: boolean;
|
|
3865
|
+
}
|
|
3866
|
+
|
|
3218
3867
|
/**
|
|
3219
3868
|
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
3220
3869
|
* and enabled for beta requests.
|
|
@@ -3225,7 +3874,7 @@ export namespace EnvironmentParam {
|
|
|
3225
3874
|
*
|
|
3226
3875
|
* - `enabled` - Allows unrestricted network access.
|
|
3227
3876
|
* - `disabled` - Disables network access.
|
|
3228
|
-
* - `restricted` -
|
|
3877
|
+
* - `restricted` - Applies the configured domain restrictions.
|
|
3229
3878
|
*/
|
|
3230
3879
|
access: 'enabled' | 'disabled' | 'restricted';
|
|
3231
3880
|
|
|
@@ -3233,6 +3882,13 @@ export namespace EnvironmentParam {
|
|
|
3233
3882
|
* Domains the environment may access when network access is restricted.
|
|
3234
3883
|
*/
|
|
3235
3884
|
allowed_domains?: Array<string> | null;
|
|
3885
|
+
|
|
3886
|
+
/**
|
|
3887
|
+
* Domains blocked for both executor and browser when access is restricted. A
|
|
3888
|
+
* nonempty list requires `access: restricted` and cannot be combined with nonempty
|
|
3889
|
+
* `allowed_domains`. Wildcard domains are not supported.
|
|
3890
|
+
*/
|
|
3891
|
+
blocked_domains?: Array<string> | null;
|
|
3236
3892
|
}
|
|
3237
3893
|
|
|
3238
3894
|
/**
|
|
@@ -3821,7 +4477,8 @@ export type PersistedAgentTool =
|
|
|
3821
4477
|
| PersistedAgentTool.PersistedAgentToolResourceToolSearch
|
|
3822
4478
|
| PersistedAgentTool.PersistedAgentToolResourceProgrammaticToolCalling
|
|
3823
4479
|
| PersistedAgentTool.PersistedAgentToolResourceMcp
|
|
3824
|
-
| PersistedAgentTool.PersistedAgentToolResourceWebSearch
|
|
4480
|
+
| PersistedAgentTool.PersistedAgentToolResourceWebSearch
|
|
4481
|
+
| PersistedAgentTool.PersistedAgentToolResourceComputerUse;
|
|
3825
4482
|
|
|
3826
4483
|
export namespace PersistedAgentTool {
|
|
3827
4484
|
/**
|
|
@@ -3980,6 +4637,21 @@ export namespace PersistedAgentTool {
|
|
|
3980
4637
|
timezone: string | null;
|
|
3981
4638
|
}
|
|
3982
4639
|
}
|
|
4640
|
+
|
|
4641
|
+
/**
|
|
4642
|
+
* Browser use in an OpenAI-hosted session.
|
|
4643
|
+
*/
|
|
4644
|
+
export interface PersistedAgentToolResourceComputerUse {
|
|
4645
|
+
/**
|
|
4646
|
+
* Whether computer tool outputs include screenshots.
|
|
4647
|
+
*/
|
|
4648
|
+
include_screenshots: boolean;
|
|
4649
|
+
|
|
4650
|
+
/**
|
|
4651
|
+
* The type of the object. Always `computer_use`.
|
|
4652
|
+
*/
|
|
4653
|
+
type: 'computer_use';
|
|
4654
|
+
}
|
|
3983
4655
|
}
|
|
3984
4656
|
|
|
3985
4657
|
/**
|
|
@@ -3990,7 +4662,8 @@ export type PersistedAgentToolParam =
|
|
|
3990
4662
|
| PersistedAgentToolParam.PersistedAgentToolConfigParamToolSearch
|
|
3991
4663
|
| PersistedAgentToolParam.PersistedAgentToolConfigParamProgrammaticToolCalling
|
|
3992
4664
|
| PersistedAgentToolParam.PersistedAgentToolConfigParamMcp
|
|
3993
|
-
| PersistedAgentToolParam.PersistedAgentToolConfigParamWebSearch
|
|
4665
|
+
| PersistedAgentToolParam.PersistedAgentToolConfigParamWebSearch
|
|
4666
|
+
| PersistedAgentToolParam.PersistedAgentToolConfigParamComputerUse;
|
|
3994
4667
|
|
|
3995
4668
|
export namespace PersistedAgentToolParam {
|
|
3996
4669
|
/**
|
|
@@ -4159,6 +4832,21 @@ export namespace PersistedAgentToolParam {
|
|
|
4159
4832
|
timezone?: string | null;
|
|
4160
4833
|
}
|
|
4161
4834
|
}
|
|
4835
|
+
|
|
4836
|
+
/**
|
|
4837
|
+
* Browser use in an OpenAI-hosted session.
|
|
4838
|
+
*/
|
|
4839
|
+
export interface PersistedAgentToolConfigParamComputerUse {
|
|
4840
|
+
/**
|
|
4841
|
+
* The type of the object. Always `computer_use`.
|
|
4842
|
+
*/
|
|
4843
|
+
type: 'computer_use';
|
|
4844
|
+
|
|
4845
|
+
/**
|
|
4846
|
+
* Whether computer tool outputs include screenshots. Defaults to `false`.
|
|
4847
|
+
*/
|
|
4848
|
+
include_screenshots?: boolean;
|
|
4849
|
+
}
|
|
4162
4850
|
}
|
|
4163
4851
|
|
|
4164
4852
|
/**
|
|
@@ -4780,6 +5468,9 @@ Agents.Sessions = Sessions;
|
|
|
4780
5468
|
export declare namespace Agents {
|
|
4781
5469
|
export {
|
|
4782
5470
|
type Agent as Agent,
|
|
5471
|
+
type AgentBrowserAuthenticationCancelParam as AgentBrowserAuthenticationCancelParam,
|
|
5472
|
+
type AgentBrowserAuthenticationSubmitParam as AgentBrowserAuthenticationSubmitParam,
|
|
5473
|
+
type AgentBrowserOriginAccessParam as AgentBrowserOriginAccessParam,
|
|
4783
5474
|
type AgentCloseSubagentCallItem as AgentCloseSubagentCallItem,
|
|
4784
5475
|
type AgentCommandExecutionItem as AgentCommandExecutionItem,
|
|
4785
5476
|
type AgentContent as AgentContent,
|