openai 7.24.0 → 7.25.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 +7 -0
- 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 +565 -11
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +565 -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 +10 -7
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts +10 -7
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +10 -7
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +10 -7
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- 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/src/resources/audio/speech.ts +1 -1
- package/src/resources/beta/agents/agents.ts +686 -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 +10 -7
- package/src/resources/beta/beta.ts +6 -0
- package/src/resources/beta/index.ts +3 -0
- 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,11 @@ 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 desktop configuration.
|
|
3672
|
+
*/
|
|
3673
|
+
desktop?: EnvironmentResourceOpenAIHosted.Desktop;
|
|
3063
3674
|
}
|
|
3064
3675
|
|
|
3065
3676
|
export namespace EnvironmentResourceOpenAIHosted {
|
|
@@ -3072,7 +3683,7 @@ export namespace Environment {
|
|
|
3072
3683
|
*
|
|
3073
3684
|
* - `enabled` - Allows unrestricted network access.
|
|
3074
3685
|
* - `disabled` - Disables network access.
|
|
3075
|
-
* - `restricted` -
|
|
3686
|
+
* - `restricted` - Applies the configured domain restrictions.
|
|
3076
3687
|
*/
|
|
3077
3688
|
access: 'enabled' | 'disabled' | 'restricted';
|
|
3078
3689
|
|
|
@@ -3101,6 +3712,16 @@ export namespace Environment {
|
|
|
3101
3712
|
*/
|
|
3102
3713
|
system: Array<string>;
|
|
3103
3714
|
}
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* The effective desktop configuration.
|
|
3718
|
+
*/
|
|
3719
|
+
export interface Desktop {
|
|
3720
|
+
/**
|
|
3721
|
+
* Whether the environment provisions a desktop and browser proxy.
|
|
3722
|
+
*/
|
|
3723
|
+
enabled: boolean;
|
|
3724
|
+
}
|
|
3104
3725
|
}
|
|
3105
3726
|
|
|
3106
3727
|
/**
|
|
@@ -3170,6 +3791,12 @@ export namespace EnvironmentParam {
|
|
|
3170
3791
|
*/
|
|
3171
3792
|
capability_directories?: Array<string> | null;
|
|
3172
3793
|
|
|
3794
|
+
/**
|
|
3795
|
+
* Desktop provisioning. Omission or null inherits the template setting, or
|
|
3796
|
+
* defaults to disabled.
|
|
3797
|
+
*/
|
|
3798
|
+
desktop?: EnvironmentParamOpenAIHosted.Desktop | null;
|
|
3799
|
+
|
|
3173
3800
|
/**
|
|
3174
3801
|
* Environment variables made available to the agent.
|
|
3175
3802
|
*/
|
|
@@ -3215,6 +3842,17 @@ export namespace EnvironmentParam {
|
|
|
3215
3842
|
}
|
|
3216
3843
|
|
|
3217
3844
|
export namespace EnvironmentParamOpenAIHosted {
|
|
3845
|
+
/**
|
|
3846
|
+
* Desktop provisioning. Omission or null inherits the template setting, or
|
|
3847
|
+
* defaults to disabled.
|
|
3848
|
+
*/
|
|
3849
|
+
export interface Desktop {
|
|
3850
|
+
/**
|
|
3851
|
+
* Whether to provision the desktop and its browser proxy.
|
|
3852
|
+
*/
|
|
3853
|
+
enabled: boolean;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3218
3856
|
/**
|
|
3219
3857
|
* Network access policy for the environment. Defaults to disabled for GA requests
|
|
3220
3858
|
* and enabled for beta requests.
|
|
@@ -3225,7 +3863,7 @@ export namespace EnvironmentParam {
|
|
|
3225
3863
|
*
|
|
3226
3864
|
* - `enabled` - Allows unrestricted network access.
|
|
3227
3865
|
* - `disabled` - Disables network access.
|
|
3228
|
-
* - `restricted` -
|
|
3866
|
+
* - `restricted` - Applies the configured domain restrictions.
|
|
3229
3867
|
*/
|
|
3230
3868
|
access: 'enabled' | 'disabled' | 'restricted';
|
|
3231
3869
|
|
|
@@ -3233,6 +3871,13 @@ export namespace EnvironmentParam {
|
|
|
3233
3871
|
* Domains the environment may access when network access is restricted.
|
|
3234
3872
|
*/
|
|
3235
3873
|
allowed_domains?: Array<string> | null;
|
|
3874
|
+
|
|
3875
|
+
/**
|
|
3876
|
+
* Domains blocked for both executor and browser when access is restricted. A
|
|
3877
|
+
* nonempty list requires `access: restricted` and cannot be combined with nonempty
|
|
3878
|
+
* `allowed_domains`. Wildcard domains are not supported.
|
|
3879
|
+
*/
|
|
3880
|
+
blocked_domains?: Array<string> | null;
|
|
3236
3881
|
}
|
|
3237
3882
|
|
|
3238
3883
|
/**
|
|
@@ -3821,7 +4466,8 @@ export type PersistedAgentTool =
|
|
|
3821
4466
|
| PersistedAgentTool.PersistedAgentToolResourceToolSearch
|
|
3822
4467
|
| PersistedAgentTool.PersistedAgentToolResourceProgrammaticToolCalling
|
|
3823
4468
|
| PersistedAgentTool.PersistedAgentToolResourceMcp
|
|
3824
|
-
| PersistedAgentTool.PersistedAgentToolResourceWebSearch
|
|
4469
|
+
| PersistedAgentTool.PersistedAgentToolResourceWebSearch
|
|
4470
|
+
| PersistedAgentTool.PersistedAgentToolResourceComputerUse;
|
|
3825
4471
|
|
|
3826
4472
|
export namespace PersistedAgentTool {
|
|
3827
4473
|
/**
|
|
@@ -3980,6 +4626,21 @@ export namespace PersistedAgentTool {
|
|
|
3980
4626
|
timezone: string | null;
|
|
3981
4627
|
}
|
|
3982
4628
|
}
|
|
4629
|
+
|
|
4630
|
+
/**
|
|
4631
|
+
* Browser use in an OpenAI-hosted session.
|
|
4632
|
+
*/
|
|
4633
|
+
export interface PersistedAgentToolResourceComputerUse {
|
|
4634
|
+
/**
|
|
4635
|
+
* Whether computer tool outputs include screenshots.
|
|
4636
|
+
*/
|
|
4637
|
+
include_screenshots: boolean;
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* The type of the object. Always `computer_use`.
|
|
4641
|
+
*/
|
|
4642
|
+
type: 'computer_use';
|
|
4643
|
+
}
|
|
3983
4644
|
}
|
|
3984
4645
|
|
|
3985
4646
|
/**
|
|
@@ -3990,7 +4651,8 @@ export type PersistedAgentToolParam =
|
|
|
3990
4651
|
| PersistedAgentToolParam.PersistedAgentToolConfigParamToolSearch
|
|
3991
4652
|
| PersistedAgentToolParam.PersistedAgentToolConfigParamProgrammaticToolCalling
|
|
3992
4653
|
| PersistedAgentToolParam.PersistedAgentToolConfigParamMcp
|
|
3993
|
-
| PersistedAgentToolParam.PersistedAgentToolConfigParamWebSearch
|
|
4654
|
+
| PersistedAgentToolParam.PersistedAgentToolConfigParamWebSearch
|
|
4655
|
+
| PersistedAgentToolParam.PersistedAgentToolConfigParamComputerUse;
|
|
3994
4656
|
|
|
3995
4657
|
export namespace PersistedAgentToolParam {
|
|
3996
4658
|
/**
|
|
@@ -4159,6 +4821,21 @@ export namespace PersistedAgentToolParam {
|
|
|
4159
4821
|
timezone?: string | null;
|
|
4160
4822
|
}
|
|
4161
4823
|
}
|
|
4824
|
+
|
|
4825
|
+
/**
|
|
4826
|
+
* Browser use in an OpenAI-hosted session.
|
|
4827
|
+
*/
|
|
4828
|
+
export interface PersistedAgentToolConfigParamComputerUse {
|
|
4829
|
+
/**
|
|
4830
|
+
* The type of the object. Always `computer_use`.
|
|
4831
|
+
*/
|
|
4832
|
+
type: 'computer_use';
|
|
4833
|
+
|
|
4834
|
+
/**
|
|
4835
|
+
* Whether computer tool outputs include screenshots. Defaults to `false`.
|
|
4836
|
+
*/
|
|
4837
|
+
include_screenshots?: boolean;
|
|
4838
|
+
}
|
|
4162
4839
|
}
|
|
4163
4840
|
|
|
4164
4841
|
/**
|
|
@@ -4780,6 +5457,9 @@ Agents.Sessions = Sessions;
|
|
|
4780
5457
|
export declare namespace Agents {
|
|
4781
5458
|
export {
|
|
4782
5459
|
type Agent as Agent,
|
|
5460
|
+
type AgentBrowserAuthenticationCancelParam as AgentBrowserAuthenticationCancelParam,
|
|
5461
|
+
type AgentBrowserAuthenticationSubmitParam as AgentBrowserAuthenticationSubmitParam,
|
|
5462
|
+
type AgentBrowserOriginAccessParam as AgentBrowserOriginAccessParam,
|
|
4783
5463
|
type AgentCloseSubagentCallItem as AgentCloseSubagentCallItem,
|
|
4784
5464
|
type AgentCommandExecutionItem as AgentCommandExecutionItem,
|
|
4785
5465
|
type AgentContent as AgentContent,
|