@orq-ai/node 4.7.0-rc.24 → 4.7.0-rc.26

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.
Files changed (82) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createresponse.d.ts +337 -157
  12. package/models/operations/createresponse.d.ts.map +1 -1
  13. package/models/operations/createresponse.js +224 -101
  14. package/models/operations/createresponse.js.map +1 -1
  15. package/models/operations/createtool.js +6 -6
  16. package/models/operations/getalltools.js +6 -6
  17. package/models/operations/getevals.js +16 -16
  18. package/models/operations/getv2humanevals.js +6 -6
  19. package/models/operations/getv2humanevalsets.js +2 -2
  20. package/models/operations/getv2humanevalsetsid.js +2 -2
  21. package/models/operations/getv2humanevalsid.js +6 -6
  22. package/models/operations/listdatasetdatapoints.js +4 -4
  23. package/models/operations/listdatasets.js +1 -1
  24. package/models/operations/listdatasources.js +1 -1
  25. package/models/operations/listidentities.js +1 -1
  26. package/models/operations/patchv2humanevalsetsid.js +2 -2
  27. package/models/operations/patchv2humanevalsid.js +12 -12
  28. package/models/operations/postv2feedbackevaluation.js +3 -3
  29. package/models/operations/postv2humanevals.js +12 -12
  30. package/models/operations/postv2humanevalsets.js +2 -2
  31. package/models/operations/retrievedatapoint.js +4 -4
  32. package/models/operations/retrievedataset.js +1 -1
  33. package/models/operations/retrievedatasource.js +1 -1
  34. package/models/operations/retrieveidentity.js +1 -1
  35. package/models/operations/retrievetool.js +6 -6
  36. package/models/operations/runagent.js +1 -1
  37. package/models/operations/streamrunagent.js +1 -1
  38. package/models/operations/updatedatapoint.js +4 -4
  39. package/models/operations/updatedataset.js +1 -1
  40. package/models/operations/updatedatasource.js +1 -1
  41. package/models/operations/updateeval.js +16 -16
  42. package/models/operations/updateidentity.js +1 -1
  43. package/models/operations/updatetool.js +7 -7
  44. package/package.json +1 -1
  45. package/src/lib/config.ts +2 -2
  46. package/src/models/components/reasoningpart.ts +1 -1
  47. package/src/models/operations/createcontact.ts +1 -1
  48. package/src/models/operations/createdataset.ts +1 -1
  49. package/src/models/operations/createdatasetitem.ts +4 -4
  50. package/src/models/operations/createdatasource.ts +1 -1
  51. package/src/models/operations/createeval.ts +16 -16
  52. package/src/models/operations/createidentity.ts +1 -1
  53. package/src/models/operations/createresponse.ts +603 -260
  54. package/src/models/operations/createtool.ts +6 -6
  55. package/src/models/operations/getalltools.ts +6 -6
  56. package/src/models/operations/getevals.ts +16 -16
  57. package/src/models/operations/getv2humanevals.ts +6 -6
  58. package/src/models/operations/getv2humanevalsets.ts +2 -2
  59. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  60. package/src/models/operations/getv2humanevalsid.ts +6 -6
  61. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  62. package/src/models/operations/listdatasets.ts +1 -1
  63. package/src/models/operations/listdatasources.ts +1 -1
  64. package/src/models/operations/listidentities.ts +1 -1
  65. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  66. package/src/models/operations/patchv2humanevalsid.ts +12 -12
  67. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  68. package/src/models/operations/postv2humanevals.ts +12 -12
  69. package/src/models/operations/postv2humanevalsets.ts +2 -2
  70. package/src/models/operations/retrievedatapoint.ts +4 -4
  71. package/src/models/operations/retrievedataset.ts +1 -1
  72. package/src/models/operations/retrievedatasource.ts +1 -1
  73. package/src/models/operations/retrieveidentity.ts +1 -1
  74. package/src/models/operations/retrievetool.ts +6 -6
  75. package/src/models/operations/runagent.ts +1 -1
  76. package/src/models/operations/streamrunagent.ts +1 -1
  77. package/src/models/operations/updatedatapoint.ts +4 -4
  78. package/src/models/operations/updatedataset.ts +1 -1
  79. package/src/models/operations/updatedatasource.ts +1 -1
  80. package/src/models/operations/updateeval.ts +16 -16
  81. package/src/models/operations/updateidentity.ts +1 -1
  82. package/src/models/operations/updatetool.ts +7 -7
@@ -5,25 +5,44 @@ import { Result as SafeParseResult } from "../../types/fp.js";
5
5
  import * as components from "../components/index.js";
6
6
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
7
7
  /**
8
- * The effort level for reasoning (o3-mini model only)
8
+ * The effort level for reasoning
9
9
  */
10
10
  export declare const Effort: {
11
+ readonly None: "none";
12
+ readonly Minimal: "minimal";
11
13
  readonly Low: "low";
12
14
  readonly Medium: "medium";
13
15
  readonly High: "high";
16
+ readonly Xhigh: "xhigh";
14
17
  };
15
18
  /**
16
- * The effort level for reasoning (o3-mini model only)
19
+ * The effort level for reasoning
17
20
  */
18
21
  export type Effort = ClosedEnum<typeof Effort>;
22
+ /**
23
+ * The summary mode for reasoning output
24
+ */
25
+ export declare const Summary: {
26
+ readonly Auto: "auto";
27
+ readonly Concise: "concise";
28
+ readonly Detailed: "detailed";
29
+ };
30
+ /**
31
+ * The summary mode for reasoning output
32
+ */
33
+ export type Summary = ClosedEnum<typeof Summary>;
19
34
  /**
20
35
  * Configuration for reasoning models
21
36
  */
22
37
  export type Reasoning = {
23
38
  /**
24
- * The effort level for reasoning (o3-mini model only)
39
+ * The effort level for reasoning
25
40
  */
26
41
  effort?: Effort | undefined;
42
+ /**
43
+ * The summary mode for reasoning output
44
+ */
45
+ summary?: Summary | null | undefined;
27
46
  };
28
47
  /**
29
48
  * Configuration for thinking mode. Use `adaptive` for models that support it (e.g. Claude Opus 4.6, Sonnet 4.6), or `enabled` with `budget_tokens` for manual control.
@@ -249,6 +268,8 @@ export declare const Include: {
249
268
  readonly MessageInputImageImageUrl: "message.input_image.image_url";
250
269
  readonly MessageOutputTextLogprobs: "message.output_text.logprobs";
251
270
  readonly ReasoningEncryptedContent: "reasoning.encrypted_content";
271
+ readonly WebSearchCallResults: "web_search_call.results";
272
+ readonly WebSearchCallActionSources: "web_search_call.action.sources";
252
273
  };
253
274
  export type Include = ClosedEnum<typeof Include>;
254
275
  /**
@@ -258,6 +279,7 @@ export declare const ServiceTier: {
258
279
  readonly Auto: "auto";
259
280
  readonly Default: "default";
260
281
  readonly Flex: "flex";
282
+ readonly Scale: "scale";
261
283
  readonly Priority: "priority";
262
284
  };
263
285
  /**
@@ -291,7 +313,7 @@ export type RankingOptions = {
291
313
  /**
292
314
  * Configuration for file search tool
293
315
  */
294
- export type Tools3 = {
316
+ export type Tools4 = {
295
317
  /**
296
318
  * The type of tool
297
319
  */
@@ -316,34 +338,34 @@ export type Tools3 = {
316
338
  /**
317
339
  * Amount of context to retrieve for each search result
318
340
  */
319
- export declare const SearchContextSize: {
320
- readonly Small: "small";
341
+ export declare const ToolsSearchContextSize: {
342
+ readonly Low: "low";
321
343
  readonly Medium: "medium";
322
- readonly Large: "large";
344
+ readonly High: "high";
323
345
  };
324
346
  /**
325
347
  * Amount of context to retrieve for each search result
326
348
  */
327
- export type SearchContextSize = ClosedEnum<typeof SearchContextSize>;
349
+ export type ToolsSearchContextSize = ClosedEnum<typeof ToolsSearchContextSize>;
328
350
  /**
329
351
  * The type of location
330
352
  */
331
- export declare const CreateResponseToolsRouterResponsesRequestType: {
353
+ export declare const CreateResponseToolsRouterResponsesRequestRequestBodyType: {
332
354
  readonly Approximate: "approximate";
333
355
  readonly Exact: "exact";
334
356
  };
335
357
  /**
336
358
  * The type of location
337
359
  */
338
- export type CreateResponseToolsRouterResponsesRequestType = ClosedEnum<typeof CreateResponseToolsRouterResponsesRequestType>;
360
+ export type CreateResponseToolsRouterResponsesRequestRequestBodyType = ClosedEnum<typeof CreateResponseToolsRouterResponsesRequestRequestBodyType>;
339
361
  /**
340
362
  * User location for search localization
341
363
  */
342
- export type UserLocation = {
364
+ export type ToolsUserLocation = {
343
365
  /**
344
366
  * The type of location
345
367
  */
346
- type?: CreateResponseToolsRouterResponsesRequestType | undefined;
368
+ type?: CreateResponseToolsRouterResponsesRequestRequestBodyType | undefined;
347
369
  /**
348
370
  * The city name
349
371
  */
@@ -362,66 +384,103 @@ export type UserLocation = {
362
384
  timezone?: string | null | undefined;
363
385
  };
364
386
  /**
365
- * Configuration for web search tool
387
+ * Filters for the web search
366
388
  */
367
- export type Tools2 = {
389
+ export type Filters = {
368
390
  /**
369
- * The type of tool
391
+ * List of allowed domains for search
370
392
  */
371
- type: "web_search_preview";
393
+ allowedDomains?: Array<string> | null | undefined;
394
+ };
395
+ /**
396
+ * Configuration for web search tool
397
+ */
398
+ export type Tools3 = {
372
399
  /**
373
- * List of domains to restrict search to
400
+ * The type of tool
374
401
  */
375
- domains?: Array<string> | undefined;
402
+ type: "web_search";
376
403
  /**
377
404
  * Amount of context to retrieve for each search result
378
405
  */
379
- searchContextSize?: SearchContextSize | undefined;
406
+ searchContextSize?: ToolsSearchContextSize | undefined;
380
407
  /**
381
408
  * User location for search localization
382
409
  */
383
- userLocation?: UserLocation | undefined;
410
+ userLocation?: ToolsUserLocation | undefined;
411
+ /**
412
+ * Filters for the web search
413
+ */
414
+ filters?: Filters | null | undefined;
384
415
  };
385
416
  /**
386
- * The type of the parameters object
417
+ * Amount of context to retrieve for each search result
387
418
  */
388
- export declare const CreateResponseToolsType: {
389
- readonly Object: "object";
419
+ export declare const SearchContextSize: {
420
+ readonly Low: "low";
421
+ readonly Medium: "medium";
422
+ readonly High: "high";
390
423
  };
391
424
  /**
392
- * The type of the parameters object
425
+ * Amount of context to retrieve for each search result
393
426
  */
394
- export type CreateResponseToolsType = ClosedEnum<typeof CreateResponseToolsType>;
395
- export type Properties = {
396
- type: string;
397
- description?: string | undefined;
398
- enum?: Array<string> | undefined;
399
- additionalProperties?: {
400
- [k: string]: any;
401
- } | undefined;
427
+ export type SearchContextSize = ClosedEnum<typeof SearchContextSize>;
428
+ /**
429
+ * The type of location
430
+ */
431
+ export declare const CreateResponseToolsRouterResponsesType: {
432
+ readonly Approximate: "approximate";
433
+ readonly Exact: "exact";
402
434
  };
403
435
  /**
404
- * The parameters the function accepts
436
+ * The type of location
405
437
  */
406
- export type ToolsParameters = {
438
+ export type CreateResponseToolsRouterResponsesType = ClosedEnum<typeof CreateResponseToolsRouterResponsesType>;
439
+ /**
440
+ * User location for search localization
441
+ */
442
+ export type UserLocation = {
407
443
  /**
408
- * The type of the parameters object
444
+ * The type of location
409
445
  */
410
- type: CreateResponseToolsType;
446
+ type?: CreateResponseToolsRouterResponsesType | undefined;
411
447
  /**
412
- * The parameters the function accepts, described as a JSON Schema object
448
+ * The city name
413
449
  */
414
- properties: {
415
- [k: string]: Properties;
416
- };
450
+ city?: string | null | undefined;
417
451
  /**
418
- * List of required parameter names
452
+ * The country code
453
+ */
454
+ country?: string | undefined;
455
+ /**
456
+ * The region/state
457
+ */
458
+ region?: string | null | undefined;
459
+ /**
460
+ * The timezone
461
+ */
462
+ timezone?: string | null | undefined;
463
+ };
464
+ /**
465
+ * Configuration for web search preview tool
466
+ */
467
+ export type Tools2 = {
468
+ /**
469
+ * The type of tool
470
+ */
471
+ type: "web_search_preview";
472
+ /**
473
+ * List of domains to restrict search to
419
474
  */
420
- required?: Array<string> | undefined;
475
+ domains?: Array<string> | undefined;
421
476
  /**
422
- * Whether to allow properties not defined in the schema
477
+ * Amount of context to retrieve for each search result
423
478
  */
424
- additionalProperties?: boolean | undefined;
479
+ searchContextSize?: SearchContextSize | undefined;
480
+ /**
481
+ * User location for search localization
482
+ */
483
+ userLocation?: UserLocation | undefined;
425
484
  };
426
485
  /**
427
486
  * A function tool definition
@@ -440,15 +499,17 @@ export type Tools1 = {
440
499
  */
441
500
  description?: string | null | undefined;
442
501
  /**
443
- * The parameters the function accepts
502
+ * The parameters the function accepts as a JSON Schema object
444
503
  */
445
- parameters: ToolsParameters;
504
+ parameters?: {
505
+ [k: string]: any;
506
+ } | null | undefined;
446
507
  /**
447
508
  * Whether to enable strict schema adherence when generating function calls
448
509
  */
449
- strict?: boolean | undefined;
510
+ strict?: boolean | null | undefined;
450
511
  };
451
- export type CreateResponseTools = Tools1 | Tools2 | Tools3;
512
+ export type CreateResponseTools = Tools1 | Tools2 | Tools3 | Tools4;
452
513
  export declare const CreateResponseToolChoiceRouterResponsesRequestType: {
453
514
  readonly Mcp: "mcp";
454
515
  };
@@ -469,7 +530,11 @@ export type ToolChoice3 = {
469
530
  export declare const CreateResponseToolChoiceType: {
470
531
  readonly FileSearch: "file_search";
471
532
  readonly WebSearchPreview: "web_search_preview";
533
+ readonly WebSearchPreview20250311: "web_search_preview_2025_03_11";
534
+ readonly WebSearch: "web_search";
472
535
  readonly ComputerUsePreview: "computer_use_preview";
536
+ readonly ComputerUse: "computer_use";
537
+ readonly Computer: "computer";
473
538
  readonly CodeInterpreter: "code_interpreter";
474
539
  readonly ImageGeneration: "image_generation";
475
540
  };
@@ -538,15 +603,7 @@ export type CreateResponseRequestBody = {
538
603
  */
539
604
  input: string | Array<CreateResponse23 | CreateResponse2RouterResponses2 | Two1>;
540
605
  /**
541
- * Specifies which (potentially large) fields to include in the response. By default, the results of Code Interpreter and file searches are excluded. Available options:
542
- *
543
- * @remarks
544
- * - code_interpreter_call.outputs: Include the outputs of Code Interpreter tool calls
545
- * - computer_call_output.output.image_url: Include the image URLs from computer use tool calls
546
- * - file_search_call.results: Include the results of file search tool calls
547
- * - message.input_image.image_url: Include URLs of input images
548
- * - message.output_text.logprobs: Include log probabilities for output text (when logprobs is enabled)
549
- * - reasoning.encrypted_content: Include encrypted reasoning content for reasoning models
606
+ * Specifies which (potentially large) fields to include in the response.
550
607
  */
551
608
  include?: Array<Include> | null | undefined;
552
609
  /**
@@ -564,7 +621,7 @@ export type CreateResponseRequestBody = {
564
621
  /**
565
622
  * A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.
566
623
  */
567
- tools?: Array<Tools1 | Tools2 | Tools3> | undefined;
624
+ tools?: Array<Tools1 | Tools2 | Tools3 | Tools4> | undefined;
568
625
  /**
569
626
  * How the model should select which tool (or tools) to use when generating a response. Can be a string (`none`, `auto`, `required`) or an object to force a specific tool.
570
627
  */
@@ -609,6 +666,8 @@ export declare const CreateResponseStatus: {
609
666
  readonly Completed: "completed";
610
667
  readonly Failed: "failed";
611
668
  readonly InProgress: "in_progress";
669
+ readonly Cancelled: "cancelled";
670
+ readonly Queued: "queued";
612
671
  readonly Incomplete: "incomplete";
613
672
  };
614
673
  /**
@@ -741,6 +800,53 @@ export declare const CreateResponseOutputStatus: {
741
800
  * The status of the web search
742
801
  */
743
802
  export type CreateResponseOutputStatus = ClosedEnum<typeof CreateResponseOutputStatus>;
803
+ /**
804
+ * The type of web search action
805
+ */
806
+ export declare const CreateResponseOutputRouterResponsesResponse200ApplicationJSONType: {
807
+ readonly Search: "search";
808
+ readonly OpenPage: "open_page";
809
+ readonly Find: "find";
810
+ };
811
+ /**
812
+ * The type of web search action
813
+ */
814
+ export type CreateResponseOutputRouterResponsesResponse200ApplicationJSONType = ClosedEnum<typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONType>;
815
+ export type Sources = {
816
+ /**
817
+ * The source URL
818
+ */
819
+ url: string;
820
+ /**
821
+ * The source title
822
+ */
823
+ title: string;
824
+ };
825
+ /**
826
+ * The action performed by the web search
827
+ */
828
+ export type Action = {
829
+ /**
830
+ * The type of web search action
831
+ */
832
+ type: CreateResponseOutputRouterResponsesResponse200ApplicationJSONType;
833
+ /**
834
+ * The search query (for search action)
835
+ */
836
+ query?: string | undefined;
837
+ /**
838
+ * The URL opened (for open_page action)
839
+ */
840
+ url?: string | undefined;
841
+ /**
842
+ * The pattern to find (for find action)
843
+ */
844
+ pattern?: string | undefined;
845
+ /**
846
+ * Sources from the web search
847
+ */
848
+ sources?: Array<Sources> | undefined;
849
+ };
744
850
  /**
745
851
  * A web search tool call output
746
852
  */
@@ -757,6 +863,10 @@ export type Output2 = {
757
863
  * The status of the web search
758
864
  */
759
865
  status: CreateResponseOutputStatus;
866
+ /**
867
+ * The action performed by the web search
868
+ */
869
+ action?: Action | undefined;
760
870
  };
761
871
  /**
762
872
  * The role of the message author
@@ -782,15 +892,18 @@ export declare const OutputStatus: {
782
892
  */
783
893
  export type OutputStatus = ClosedEnum<typeof OutputStatus>;
784
894
  /**
785
- * The type of content part
895
+ * A refusal content part from the model
786
896
  */
787
- export declare const ContentType: {
788
- readonly OutputText: "output_text";
897
+ export type CreateResponseContentRouterResponses2 = {
898
+ /**
899
+ * The type of content part
900
+ */
901
+ type: "refusal";
902
+ /**
903
+ * The refusal message
904
+ */
905
+ refusal: string;
789
906
  };
790
- /**
791
- * The type of content part
792
- */
793
- export type ContentType = ClosedEnum<typeof ContentType>;
794
907
  /**
795
908
  * A citation to a file
796
909
  */
@@ -842,7 +955,7 @@ export type Content1 = {
842
955
  /**
843
956
  * The type of content part
844
957
  */
845
- type: ContentType;
958
+ type: "output_text";
846
959
  /**
847
960
  * The text content
848
961
  */
@@ -856,7 +969,7 @@ export type Content1 = {
856
969
  */
857
970
  logprobs?: Array<any> | undefined;
858
971
  };
859
- export type OutputContent = Content1;
972
+ export type OutputContent = Content1 | CreateResponseContentRouterResponses2;
860
973
  /**
861
974
  * An assistant message output
862
975
  */
@@ -880,7 +993,7 @@ export type Output1 = {
880
993
  /**
881
994
  * The content parts of the message
882
995
  */
883
- content?: Array<Content1> | undefined;
996
+ content?: Array<Content1 | CreateResponseContentRouterResponses2> | undefined;
884
997
  };
885
998
  export type Output = Output1 | Output2 | Output3 | Output4;
886
999
  /**
@@ -982,7 +1095,7 @@ export type ToolsRankingOptions = {
982
1095
  /**
983
1096
  * Configuration for file search tool
984
1097
  */
985
- export type CreateResponseTools3 = {
1098
+ export type CreateResponseTools4 = {
986
1099
  /**
987
1100
  * The type of tool
988
1101
  */
@@ -1007,34 +1120,34 @@ export type CreateResponseTools3 = {
1007
1120
  /**
1008
1121
  * Amount of context to retrieve for each search result
1009
1122
  */
1010
- export declare const ToolsSearchContextSize: {
1011
- readonly Small: "small";
1123
+ export declare const CreateResponseToolsRouterResponsesSearchContextSize: {
1124
+ readonly Low: "low";
1012
1125
  readonly Medium: "medium";
1013
- readonly Large: "large";
1126
+ readonly High: "high";
1014
1127
  };
1015
1128
  /**
1016
1129
  * Amount of context to retrieve for each search result
1017
1130
  */
1018
- export type ToolsSearchContextSize = ClosedEnum<typeof ToolsSearchContextSize>;
1131
+ export type CreateResponseToolsRouterResponsesSearchContextSize = ClosedEnum<typeof CreateResponseToolsRouterResponsesSearchContextSize>;
1019
1132
  /**
1020
1133
  * The type of location
1021
1134
  */
1022
- export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBodyType: {
1135
+ export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type: {
1023
1136
  readonly Approximate: "approximate";
1024
1137
  readonly Exact: "exact";
1025
1138
  };
1026
1139
  /**
1027
1140
  * The type of location
1028
1141
  */
1029
- export type CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBodyType>;
1142
+ export type CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type = ClosedEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type>;
1030
1143
  /**
1031
1144
  * User location for search localization
1032
1145
  */
1033
- export type ToolsUserLocation = {
1146
+ export type CreateResponseToolsRouterResponsesUserLocation = {
1034
1147
  /**
1035
1148
  * The type of location
1036
1149
  */
1037
- type?: CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBodyType | undefined;
1150
+ type?: CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type | undefined;
1038
1151
  /**
1039
1152
  * The city name
1040
1153
  */
@@ -1053,66 +1166,103 @@ export type ToolsUserLocation = {
1053
1166
  timezone?: string | null | undefined;
1054
1167
  };
1055
1168
  /**
1056
- * Configuration for web search tool
1169
+ * Filters for the web search
1057
1170
  */
1058
- export type CreateResponseTools2 = {
1171
+ export type ToolsFilters = {
1059
1172
  /**
1060
- * The type of tool
1173
+ * List of allowed domains for search
1061
1174
  */
1062
- type: "web_search_preview";
1175
+ allowedDomains?: Array<string> | null | undefined;
1176
+ };
1177
+ /**
1178
+ * Configuration for web search tool
1179
+ */
1180
+ export type CreateResponseTools3 = {
1063
1181
  /**
1064
- * List of domains to restrict search to
1182
+ * The type of tool
1065
1183
  */
1066
- domains?: Array<string> | undefined;
1184
+ type: "web_search";
1067
1185
  /**
1068
1186
  * Amount of context to retrieve for each search result
1069
1187
  */
1070
- searchContextSize: ToolsSearchContextSize;
1188
+ searchContextSize: CreateResponseToolsRouterResponsesSearchContextSize;
1071
1189
  /**
1072
1190
  * User location for search localization
1073
1191
  */
1074
- userLocation?: ToolsUserLocation | undefined;
1192
+ userLocation?: CreateResponseToolsRouterResponsesUserLocation | undefined;
1193
+ /**
1194
+ * Filters for the web search
1195
+ */
1196
+ filters?: ToolsFilters | null | undefined;
1075
1197
  };
1076
1198
  /**
1077
- * The type of the parameters object
1199
+ * Amount of context to retrieve for each search result
1078
1200
  */
1079
- export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody1Type: {
1080
- readonly Object: "object";
1201
+ export declare const CreateResponseToolsSearchContextSize: {
1202
+ readonly Low: "low";
1203
+ readonly Medium: "medium";
1204
+ readonly High: "high";
1081
1205
  };
1082
1206
  /**
1083
- * The type of the parameters object
1207
+ * Amount of context to retrieve for each search result
1084
1208
  */
1085
- export type CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody1Type = ClosedEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody1Type>;
1086
- export type ToolsProperties = {
1087
- type: string;
1088
- description?: string | undefined;
1089
- enum?: Array<string> | undefined;
1090
- additionalProperties?: {
1091
- [k: string]: any;
1092
- } | undefined;
1209
+ export type CreateResponseToolsSearchContextSize = ClosedEnum<typeof CreateResponseToolsSearchContextSize>;
1210
+ /**
1211
+ * The type of location
1212
+ */
1213
+ export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type: {
1214
+ readonly Approximate: "approximate";
1215
+ readonly Exact: "exact";
1093
1216
  };
1094
1217
  /**
1095
- * The parameters the function accepts
1218
+ * The type of location
1096
1219
  */
1097
- export type CreateResponseToolsParameters = {
1220
+ export type CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type = ClosedEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type>;
1221
+ /**
1222
+ * User location for search localization
1223
+ */
1224
+ export type CreateResponseToolsUserLocation = {
1225
+ /**
1226
+ * The type of location
1227
+ */
1228
+ type?: CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type | undefined;
1098
1229
  /**
1099
- * The type of the parameters object
1230
+ * The city name
1100
1231
  */
1101
- type: CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody1Type;
1232
+ city?: string | null | undefined;
1102
1233
  /**
1103
- * The parameters the function accepts, described as a JSON Schema object
1234
+ * The country code
1104
1235
  */
1105
- properties: {
1106
- [k: string]: ToolsProperties;
1107
- };
1236
+ country?: string | undefined;
1108
1237
  /**
1109
- * List of required parameter names
1238
+ * The region/state
1110
1239
  */
1111
- required?: Array<string> | undefined;
1240
+ region?: string | null | undefined;
1112
1241
  /**
1113
- * Whether to allow properties not defined in the schema
1242
+ * The timezone
1114
1243
  */
1115
- additionalProperties?: boolean | undefined;
1244
+ timezone?: string | null | undefined;
1245
+ };
1246
+ /**
1247
+ * Configuration for web search preview tool
1248
+ */
1249
+ export type CreateResponseTools2 = {
1250
+ /**
1251
+ * The type of tool
1252
+ */
1253
+ type: "web_search_preview";
1254
+ /**
1255
+ * List of domains to restrict search to
1256
+ */
1257
+ domains?: Array<string> | undefined;
1258
+ /**
1259
+ * Amount of context to retrieve for each search result
1260
+ */
1261
+ searchContextSize: CreateResponseToolsSearchContextSize;
1262
+ /**
1263
+ * User location for search localization
1264
+ */
1265
+ userLocation?: CreateResponseToolsUserLocation | undefined;
1116
1266
  };
1117
1267
  /**
1118
1268
  * A function tool definition
@@ -1131,15 +1281,17 @@ export type CreateResponseTools1 = {
1131
1281
  */
1132
1282
  description?: string | null | undefined;
1133
1283
  /**
1134
- * The parameters the function accepts
1284
+ * The parameters the function accepts as a JSON Schema object
1135
1285
  */
1136
- parameters: CreateResponseToolsParameters;
1286
+ parameters?: {
1287
+ [k: string]: any;
1288
+ } | null | undefined;
1137
1289
  /**
1138
1290
  * Whether to enable strict schema adherence when generating function calls
1139
1291
  */
1140
- strict: boolean;
1292
+ strict: boolean | null;
1141
1293
  };
1142
- export type CreateResponseRouterResponsesTools = CreateResponseTools1 | CreateResponseTools2 | CreateResponseTools3;
1294
+ export type CreateResponseRouterResponsesTools = CreateResponseTools1 | CreateResponseTools2 | CreateResponseTools3 | CreateResponseTools4;
1143
1295
  export type CreateResponseReasoning = {
1144
1296
  effort?: string | null | undefined;
1145
1297
  summary?: string | null | undefined;
@@ -1202,6 +1354,7 @@ export declare const CreateResponseServiceTier: {
1202
1354
  readonly Auto: "auto";
1203
1355
  readonly Default: "default";
1204
1356
  readonly Flex: "flex";
1357
+ readonly Scale: "scale";
1205
1358
  readonly Priority: "priority";
1206
1359
  };
1207
1360
  /**
@@ -1268,7 +1421,7 @@ export type CreateResponseResponseBody = {
1268
1421
  * Controls which (if any) tool is called by the model
1269
1422
  */
1270
1423
  toolChoice?: CreateResponseToolChoiceRouterResponses2 | CreateResponseToolChoiceRouterResponses1 | undefined;
1271
- tools?: Array<CreateResponseTools1 | CreateResponseTools2 | CreateResponseTools3> | undefined;
1424
+ tools?: Array<CreateResponseTools1 | CreateResponseTools2 | CreateResponseTools3 | CreateResponseTools4> | undefined;
1272
1425
  reasoning?: CreateResponseReasoning | null | undefined;
1273
1426
  store?: boolean | undefined;
1274
1427
  text?: CreateResponseRouterResponsesText | undefined;
@@ -1301,8 +1454,11 @@ export type CreateResponseResponse = CreateResponseResponseBody | EventStream<Cr
1301
1454
  /** @internal */
1302
1455
  export declare const Effort$outboundSchema: z.ZodNativeEnum<typeof Effort>;
1303
1456
  /** @internal */
1457
+ export declare const Summary$outboundSchema: z.ZodNativeEnum<typeof Summary>;
1458
+ /** @internal */
1304
1459
  export type Reasoning$Outbound = {
1305
1460
  effort?: string | undefined;
1461
+ summary?: string | null | undefined;
1306
1462
  };
1307
1463
  /** @internal */
1308
1464
  export declare const Reasoning$outboundSchema: z.ZodType<Reasoning$Outbound, z.ZodTypeDef, Reasoning>;
@@ -1452,7 +1608,7 @@ export type RankingOptions$Outbound = {
1452
1608
  export declare const RankingOptions$outboundSchema: z.ZodType<RankingOptions$Outbound, z.ZodTypeDef, RankingOptions>;
1453
1609
  export declare function rankingOptionsToJSON(rankingOptions: RankingOptions): string;
1454
1610
  /** @internal */
1455
- export type Tools3$Outbound = {
1611
+ export type Tools4$Outbound = {
1456
1612
  type: "file_search";
1457
1613
  vector_store_ids?: Array<string> | undefined;
1458
1614
  max_num_results: number;
@@ -1460,12 +1616,44 @@ export type Tools3$Outbound = {
1460
1616
  ranking_options?: RankingOptions$Outbound | undefined;
1461
1617
  };
1462
1618
  /** @internal */
1619
+ export declare const Tools4$outboundSchema: z.ZodType<Tools4$Outbound, z.ZodTypeDef, Tools4>;
1620
+ export declare function tools4ToJSON(tools4: Tools4): string;
1621
+ /** @internal */
1622
+ export declare const ToolsSearchContextSize$outboundSchema: z.ZodNativeEnum<typeof ToolsSearchContextSize>;
1623
+ /** @internal */
1624
+ export declare const CreateResponseToolsRouterResponsesRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesRequestRequestBodyType>;
1625
+ /** @internal */
1626
+ export type ToolsUserLocation$Outbound = {
1627
+ type?: string | undefined;
1628
+ city?: string | null | undefined;
1629
+ country?: string | undefined;
1630
+ region?: string | null | undefined;
1631
+ timezone?: string | null | undefined;
1632
+ };
1633
+ /** @internal */
1634
+ export declare const ToolsUserLocation$outboundSchema: z.ZodType<ToolsUserLocation$Outbound, z.ZodTypeDef, ToolsUserLocation>;
1635
+ export declare function toolsUserLocationToJSON(toolsUserLocation: ToolsUserLocation): string;
1636
+ /** @internal */
1637
+ export type Filters$Outbound = {
1638
+ allowed_domains?: Array<string> | null | undefined;
1639
+ };
1640
+ /** @internal */
1641
+ export declare const Filters$outboundSchema: z.ZodType<Filters$Outbound, z.ZodTypeDef, Filters>;
1642
+ export declare function filtersToJSON(filters: Filters): string;
1643
+ /** @internal */
1644
+ export type Tools3$Outbound = {
1645
+ type: "web_search";
1646
+ search_context_size: string;
1647
+ user_location?: ToolsUserLocation$Outbound | undefined;
1648
+ filters?: Filters$Outbound | null | undefined;
1649
+ };
1650
+ /** @internal */
1463
1651
  export declare const Tools3$outboundSchema: z.ZodType<Tools3$Outbound, z.ZodTypeDef, Tools3>;
1464
1652
  export declare function tools3ToJSON(tools3: Tools3): string;
1465
1653
  /** @internal */
1466
1654
  export declare const SearchContextSize$outboundSchema: z.ZodNativeEnum<typeof SearchContextSize>;
1467
1655
  /** @internal */
1468
- export declare const CreateResponseToolsRouterResponsesRequestType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesRequestType>;
1656
+ export declare const CreateResponseToolsRouterResponsesType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesType>;
1469
1657
  /** @internal */
1470
1658
  export type UserLocation$Outbound = {
1471
1659
  type?: string | undefined;
@@ -1488,42 +1676,20 @@ export type Tools2$Outbound = {
1488
1676
  export declare const Tools2$outboundSchema: z.ZodType<Tools2$Outbound, z.ZodTypeDef, Tools2>;
1489
1677
  export declare function tools2ToJSON(tools2: Tools2): string;
1490
1678
  /** @internal */
1491
- export declare const CreateResponseToolsType$outboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsType>;
1492
- /** @internal */
1493
- export type Properties$Outbound = {
1494
- type: string;
1495
- description?: string | undefined;
1496
- enum?: Array<string> | undefined;
1497
- [additionalProperties: string]: unknown;
1498
- };
1499
- /** @internal */
1500
- export declare const Properties$outboundSchema: z.ZodType<Properties$Outbound, z.ZodTypeDef, Properties>;
1501
- export declare function propertiesToJSON(properties: Properties): string;
1502
- /** @internal */
1503
- export type ToolsParameters$Outbound = {
1504
- type: string;
1505
- properties: {
1506
- [k: string]: Properties$Outbound;
1507
- };
1508
- required?: Array<string> | undefined;
1509
- additionalProperties?: boolean | undefined;
1510
- };
1511
- /** @internal */
1512
- export declare const ToolsParameters$outboundSchema: z.ZodType<ToolsParameters$Outbound, z.ZodTypeDef, ToolsParameters>;
1513
- export declare function toolsParametersToJSON(toolsParameters: ToolsParameters): string;
1514
- /** @internal */
1515
1679
  export type Tools1$Outbound = {
1516
1680
  type: "function";
1517
1681
  name: string;
1518
1682
  description?: string | null | undefined;
1519
- parameters: ToolsParameters$Outbound;
1520
- strict: boolean;
1683
+ parameters?: {
1684
+ [k: string]: any;
1685
+ } | null | undefined;
1686
+ strict: boolean | null;
1521
1687
  };
1522
1688
  /** @internal */
1523
1689
  export declare const Tools1$outboundSchema: z.ZodType<Tools1$Outbound, z.ZodTypeDef, Tools1>;
1524
1690
  export declare function tools1ToJSON(tools1: Tools1): string;
1525
1691
  /** @internal */
1526
- export type CreateResponseTools$Outbound = Tools1$Outbound | Tools2$Outbound | Tools3$Outbound;
1692
+ export type CreateResponseTools$Outbound = Tools1$Outbound | Tools2$Outbound | Tools3$Outbound | Tools4$Outbound;
1527
1693
  /** @internal */
1528
1694
  export declare const CreateResponseTools$outboundSchema: z.ZodType<CreateResponseTools$Outbound, z.ZodTypeDef, CreateResponseTools>;
1529
1695
  export declare function createResponseToolsToJSON(createResponseTools: CreateResponseTools): string;
@@ -1583,7 +1749,7 @@ export type CreateResponseRequestBody$Outbound = {
1583
1749
  parallel_tool_calls?: boolean | null | undefined;
1584
1750
  store: boolean | null;
1585
1751
  service_tier?: string | null | undefined;
1586
- tools?: Array<Tools1$Outbound | Tools2$Outbound | Tools3$Outbound> | undefined;
1752
+ tools?: Array<Tools1$Outbound | Tools2$Outbound | Tools3$Outbound | Tools4$Outbound> | undefined;
1587
1753
  tool_choice?: ToolChoice3$Outbound | ToolChoice4$Outbound | CreateResponseToolChoice2$Outbound | string | undefined;
1588
1754
  stream: boolean;
1589
1755
  };
@@ -1621,6 +1787,14 @@ export declare function output3FromJSON(jsonString: string): SafeParseResult<Out
1621
1787
  /** @internal */
1622
1788
  export declare const CreateResponseOutputStatus$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputStatus>;
1623
1789
  /** @internal */
1790
+ export declare const CreateResponseOutputRouterResponsesResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONType>;
1791
+ /** @internal */
1792
+ export declare const Sources$inboundSchema: z.ZodType<Sources, z.ZodTypeDef, unknown>;
1793
+ export declare function sourcesFromJSON(jsonString: string): SafeParseResult<Sources, SDKValidationError>;
1794
+ /** @internal */
1795
+ export declare const Action$inboundSchema: z.ZodType<Action, z.ZodTypeDef, unknown>;
1796
+ export declare function actionFromJSON(jsonString: string): SafeParseResult<Action, SDKValidationError>;
1797
+ /** @internal */
1624
1798
  export declare const Output2$inboundSchema: z.ZodType<Output2, z.ZodTypeDef, unknown>;
1625
1799
  export declare function output2FromJSON(jsonString: string): SafeParseResult<Output2, SDKValidationError>;
1626
1800
  /** @internal */
@@ -1628,7 +1802,8 @@ export declare const OutputRole$inboundSchema: z.ZodNativeEnum<typeof OutputRole
1628
1802
  /** @internal */
1629
1803
  export declare const OutputStatus$inboundSchema: z.ZodNativeEnum<typeof OutputStatus>;
1630
1804
  /** @internal */
1631
- export declare const ContentType$inboundSchema: z.ZodNativeEnum<typeof ContentType>;
1805
+ export declare const CreateResponseContentRouterResponses2$inboundSchema: z.ZodType<CreateResponseContentRouterResponses2, z.ZodTypeDef, unknown>;
1806
+ export declare function createResponseContentRouterResponses2FromJSON(jsonString: string): SafeParseResult<CreateResponseContentRouterResponses2, SDKValidationError>;
1632
1807
  /** @internal */
1633
1808
  export declare const Annotations2$inboundSchema: z.ZodType<Annotations2, z.ZodTypeDef, unknown>;
1634
1809
  export declare function annotations2FromJSON(jsonString: string): SafeParseResult<Annotations2, SDKValidationError>;
@@ -1678,27 +1853,32 @@ export declare const ToolsRanker$inboundSchema: z.ZodNativeEnum<typeof ToolsRank
1678
1853
  export declare const ToolsRankingOptions$inboundSchema: z.ZodType<ToolsRankingOptions, z.ZodTypeDef, unknown>;
1679
1854
  export declare function toolsRankingOptionsFromJSON(jsonString: string): SafeParseResult<ToolsRankingOptions, SDKValidationError>;
1680
1855
  /** @internal */
1856
+ export declare const CreateResponseTools4$inboundSchema: z.ZodType<CreateResponseTools4, z.ZodTypeDef, unknown>;
1857
+ export declare function createResponseTools4FromJSON(jsonString: string): SafeParseResult<CreateResponseTools4, SDKValidationError>;
1858
+ /** @internal */
1859
+ export declare const CreateResponseToolsRouterResponsesSearchContextSize$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesSearchContextSize>;
1860
+ /** @internal */
1861
+ export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody3Type>;
1862
+ /** @internal */
1863
+ export declare const CreateResponseToolsRouterResponsesUserLocation$inboundSchema: z.ZodType<CreateResponseToolsRouterResponsesUserLocation, z.ZodTypeDef, unknown>;
1864
+ export declare function createResponseToolsRouterResponsesUserLocationFromJSON(jsonString: string): SafeParseResult<CreateResponseToolsRouterResponsesUserLocation, SDKValidationError>;
1865
+ /** @internal */
1866
+ export declare const ToolsFilters$inboundSchema: z.ZodType<ToolsFilters, z.ZodTypeDef, unknown>;
1867
+ export declare function toolsFiltersFromJSON(jsonString: string): SafeParseResult<ToolsFilters, SDKValidationError>;
1868
+ /** @internal */
1681
1869
  export declare const CreateResponseTools3$inboundSchema: z.ZodType<CreateResponseTools3, z.ZodTypeDef, unknown>;
1682
1870
  export declare function createResponseTools3FromJSON(jsonString: string): SafeParseResult<CreateResponseTools3, SDKValidationError>;
1683
1871
  /** @internal */
1684
- export declare const ToolsSearchContextSize$inboundSchema: z.ZodNativeEnum<typeof ToolsSearchContextSize>;
1872
+ export declare const CreateResponseToolsSearchContextSize$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsSearchContextSize>;
1685
1873
  /** @internal */
1686
- export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBodyType>;
1874
+ export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody2Type>;
1687
1875
  /** @internal */
1688
- export declare const ToolsUserLocation$inboundSchema: z.ZodType<ToolsUserLocation, z.ZodTypeDef, unknown>;
1689
- export declare function toolsUserLocationFromJSON(jsonString: string): SafeParseResult<ToolsUserLocation, SDKValidationError>;
1876
+ export declare const CreateResponseToolsUserLocation$inboundSchema: z.ZodType<CreateResponseToolsUserLocation, z.ZodTypeDef, unknown>;
1877
+ export declare function createResponseToolsUserLocationFromJSON(jsonString: string): SafeParseResult<CreateResponseToolsUserLocation, SDKValidationError>;
1690
1878
  /** @internal */
1691
1879
  export declare const CreateResponseTools2$inboundSchema: z.ZodType<CreateResponseTools2, z.ZodTypeDef, unknown>;
1692
1880
  export declare function createResponseTools2FromJSON(jsonString: string): SafeParseResult<CreateResponseTools2, SDKValidationError>;
1693
1881
  /** @internal */
1694
- export declare const CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody1Type$inboundSchema: z.ZodNativeEnum<typeof CreateResponseToolsRouterResponsesResponse200ApplicationJSONResponseBody1Type>;
1695
- /** @internal */
1696
- export declare const ToolsProperties$inboundSchema: z.ZodType<ToolsProperties, z.ZodTypeDef, unknown>;
1697
- export declare function toolsPropertiesFromJSON(jsonString: string): SafeParseResult<ToolsProperties, SDKValidationError>;
1698
- /** @internal */
1699
- export declare const CreateResponseToolsParameters$inboundSchema: z.ZodType<CreateResponseToolsParameters, z.ZodTypeDef, unknown>;
1700
- export declare function createResponseToolsParametersFromJSON(jsonString: string): SafeParseResult<CreateResponseToolsParameters, SDKValidationError>;
1701
- /** @internal */
1702
1882
  export declare const CreateResponseTools1$inboundSchema: z.ZodType<CreateResponseTools1, z.ZodTypeDef, unknown>;
1703
1883
  export declare function createResponseTools1FromJSON(jsonString: string): SafeParseResult<CreateResponseTools1, SDKValidationError>;
1704
1884
  /** @internal */