openai 7.23.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.
Files changed (240) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +4 -1
  3. package/client.d.mts +1 -1
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +1 -1
  6. package/client.d.ts.map +1 -1
  7. package/client.js +43 -5
  8. package/client.js.map +1 -1
  9. package/client.mjs +43 -5
  10. package/client.mjs.map +1 -1
  11. package/internal/responses/canonical-output-text.d.mts +8 -4
  12. package/internal/responses/canonical-output-text.d.mts.map +1 -1
  13. package/internal/responses/canonical-output-text.d.ts +8 -4
  14. package/internal/responses/canonical-output-text.d.ts.map +1 -1
  15. package/internal/responses/canonical-output-text.js +11 -0
  16. package/internal/responses/canonical-output-text.js.map +1 -1
  17. package/internal/responses/canonical-output-text.mjs +11 -0
  18. package/internal/responses/canonical-output-text.mjs.map +1 -1
  19. package/internal/responses/response-accumulator.d.mts +12 -1
  20. package/internal/responses/response-accumulator.d.mts.map +1 -1
  21. package/internal/responses/response-accumulator.d.ts +12 -1
  22. package/internal/responses/response-accumulator.d.ts.map +1 -1
  23. package/internal/responses/response-accumulator.js +99 -25
  24. package/internal/responses/response-accumulator.js.map +1 -1
  25. package/internal/responses/response-accumulator.mjs +97 -26
  26. package/internal/responses/response-accumulator.mjs.map +1 -1
  27. package/internal/ws.d.mts +6 -2
  28. package/internal/ws.d.mts.map +1 -1
  29. package/internal/ws.d.ts +6 -2
  30. package/internal/ws.d.ts.map +1 -1
  31. package/internal/ws.js +5 -3
  32. package/internal/ws.js.map +1 -1
  33. package/internal/ws.mjs +5 -3
  34. package/internal/ws.mjs.map +1 -1
  35. package/lib/live/transcript-grouping.d.mts.map +1 -1
  36. package/lib/live/transcript-grouping.d.ts.map +1 -1
  37. package/lib/live/transcript-grouping.js +6 -5
  38. package/lib/live/transcript-grouping.js.map +1 -1
  39. package/lib/live/transcript-grouping.mjs +6 -5
  40. package/lib/live/transcript-grouping.mjs.map +1 -1
  41. package/lib/responses/responses-websocket-accumulator.d.mts +72 -0
  42. package/lib/responses/responses-websocket-accumulator.d.mts.map +1 -0
  43. package/lib/responses/responses-websocket-accumulator.d.ts +72 -0
  44. package/lib/responses/responses-websocket-accumulator.d.ts.map +1 -0
  45. package/lib/responses/responses-websocket-accumulator.js +291 -0
  46. package/lib/responses/responses-websocket-accumulator.js.map +1 -0
  47. package/lib/responses/responses-websocket-accumulator.mjs +287 -0
  48. package/lib/responses/responses-websocket-accumulator.mjs.map +1 -0
  49. package/package.json +1 -1
  50. package/realtime/translations/ws.d.mts +84 -0
  51. package/realtime/translations/ws.d.mts.map +1 -0
  52. package/realtime/translations/ws.d.ts +84 -0
  53. package/realtime/translations/ws.d.ts.map +1 -0
  54. package/realtime/translations/ws.js +444 -0
  55. package/realtime/translations/ws.js.map +1 -0
  56. package/realtime/translations/ws.mjs +439 -0
  57. package/realtime/translations/ws.mjs.map +1 -0
  58. package/resources/audio/speech.d.mts +2 -2
  59. package/resources/audio/speech.d.mts.map +1 -1
  60. package/resources/audio/speech.d.ts +2 -2
  61. package/resources/audio/speech.d.ts.map +1 -1
  62. package/resources/audio/speech.js +1 -1
  63. package/resources/audio/speech.mjs +1 -1
  64. package/resources/audio/transcriptions.d.mts +2 -1
  65. package/resources/audio/transcriptions.d.mts.map +1 -1
  66. package/resources/audio/transcriptions.d.ts +2 -1
  67. package/resources/audio/transcriptions.d.ts.map +1 -1
  68. package/resources/audio/transcriptions.js.map +1 -1
  69. package/resources/audio/transcriptions.mjs.map +1 -1
  70. package/resources/beta/agents/agents.d.mts +577 -18
  71. package/resources/beta/agents/agents.d.mts.map +1 -1
  72. package/resources/beta/agents/agents.d.ts +577 -18
  73. package/resources/beta/agents/agents.d.ts.map +1 -1
  74. package/resources/beta/agents/agents.js.map +1 -1
  75. package/resources/beta/agents/agents.mjs.map +1 -1
  76. package/resources/beta/agents/environments/templates.d.mts +62 -9
  77. package/resources/beta/agents/environments/templates.d.mts.map +1 -1
  78. package/resources/beta/agents/environments/templates.d.ts +62 -9
  79. package/resources/beta/agents/environments/templates.d.ts.map +1 -1
  80. package/resources/beta/agents/index.d.mts +1 -1
  81. package/resources/beta/agents/index.d.mts.map +1 -1
  82. package/resources/beta/agents/index.d.ts +1 -1
  83. package/resources/beta/agents/index.d.ts.map +1 -1
  84. package/resources/beta/agents/index.js.map +1 -1
  85. package/resources/beta/agents/index.mjs.map +1 -1
  86. package/resources/beta/agents/sessions/events.d.mts +10 -7
  87. package/resources/beta/agents/sessions/events.d.mts.map +1 -1
  88. package/resources/beta/agents/sessions/events.d.ts +10 -7
  89. package/resources/beta/agents/sessions/events.d.ts.map +1 -1
  90. package/resources/beta/agents/sessions/events.js +10 -7
  91. package/resources/beta/agents/sessions/events.js.map +1 -1
  92. package/resources/beta/agents/sessions/events.mjs +10 -7
  93. package/resources/beta/agents/sessions/events.mjs.map +1 -1
  94. package/resources/beta/agents/sessions/sessions.d.mts +4 -2
  95. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  96. package/resources/beta/agents/sessions/sessions.d.ts +4 -2
  97. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  98. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  99. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  100. package/resources/beta/agents/vaults/credentials.d.mts +24 -7
  101. package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
  102. package/resources/beta/agents/vaults/credentials.d.ts +24 -7
  103. package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
  104. package/resources/beta/agents/vaults/credentials.js +2 -6
  105. package/resources/beta/agents/vaults/credentials.js.map +1 -1
  106. package/resources/beta/agents/vaults/credentials.mjs +2 -6
  107. package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
  108. package/resources/beta/beta.d.mts +2 -2
  109. package/resources/beta/beta.d.mts.map +1 -1
  110. package/resources/beta/beta.d.ts +2 -2
  111. package/resources/beta/beta.d.ts.map +1 -1
  112. package/resources/beta/beta.js.map +1 -1
  113. package/resources/beta/beta.mjs.map +1 -1
  114. package/resources/beta/index.d.mts +1 -1
  115. package/resources/beta/index.d.mts.map +1 -1
  116. package/resources/beta/index.d.ts +1 -1
  117. package/resources/beta/index.d.ts.map +1 -1
  118. package/resources/beta/index.js.map +1 -1
  119. package/resources/beta/index.mjs.map +1 -1
  120. package/resources/beta/responses/responses.d.mts +69 -10
  121. package/resources/beta/responses/responses.d.mts.map +1 -1
  122. package/resources/beta/responses/responses.d.ts +69 -10
  123. package/resources/beta/responses/responses.d.ts.map +1 -1
  124. package/resources/beta/responses/responses.js.map +1 -1
  125. package/resources/beta/responses/responses.mjs.map +1 -1
  126. package/resources/files.d.mts +2 -2
  127. package/resources/files.d.mts.map +1 -1
  128. package/resources/files.d.ts +2 -2
  129. package/resources/files.d.ts.map +1 -1
  130. package/resources/index.d.mts +1 -1
  131. package/resources/index.d.mts.map +1 -1
  132. package/resources/index.d.ts +1 -1
  133. package/resources/index.d.ts.map +1 -1
  134. package/resources/live/forks/ws-base.js +1 -1
  135. package/resources/live/forks/ws-base.js.map +1 -1
  136. package/resources/live/forks/ws-base.mjs +1 -1
  137. package/resources/live/forks/ws-base.mjs.map +1 -1
  138. package/resources/live/sideband/ws-base.js +1 -1
  139. package/resources/live/sideband/ws-base.js.map +1 -1
  140. package/resources/live/sideband/ws-base.mjs +1 -1
  141. package/resources/live/sideband/ws-base.mjs.map +1 -1
  142. package/resources/live/ws-base.js +1 -1
  143. package/resources/live/ws-base.js.map +1 -1
  144. package/resources/live/ws-base.mjs +1 -1
  145. package/resources/live/ws-base.mjs.map +1 -1
  146. package/resources/realtime/index.d.mts +1 -0
  147. package/resources/realtime/index.d.mts.map +1 -1
  148. package/resources/realtime/index.d.ts +1 -0
  149. package/resources/realtime/index.d.ts.map +1 -1
  150. package/resources/realtime/index.js +3 -1
  151. package/resources/realtime/index.js.map +1 -1
  152. package/resources/realtime/index.mjs +1 -0
  153. package/resources/realtime/index.mjs.map +1 -1
  154. package/resources/realtime/realtime.d.mts +4 -0
  155. package/resources/realtime/realtime.d.mts.map +1 -1
  156. package/resources/realtime/realtime.d.ts +4 -0
  157. package/resources/realtime/realtime.d.ts.map +1 -1
  158. package/resources/realtime/realtime.js +4 -0
  159. package/resources/realtime/realtime.js.map +1 -1
  160. package/resources/realtime/realtime.mjs +4 -0
  161. package/resources/realtime/realtime.mjs.map +1 -1
  162. package/resources/realtime/translations/client-secrets.d.mts +67 -0
  163. package/resources/realtime/translations/client-secrets.d.mts.map +1 -0
  164. package/resources/realtime/translations/client-secrets.d.ts +67 -0
  165. package/resources/realtime/translations/client-secrets.d.ts.map +1 -0
  166. package/resources/realtime/translations/client-secrets.js +39 -0
  167. package/resources/realtime/translations/client-secrets.js.map +1 -0
  168. package/resources/realtime/translations/client-secrets.mjs +35 -0
  169. package/resources/realtime/translations/client-secrets.mjs.map +1 -0
  170. package/resources/realtime/translations/index.d.mts +3 -0
  171. package/resources/realtime/translations/index.d.mts.map +1 -0
  172. package/resources/realtime/translations/index.d.ts +3 -0
  173. package/resources/realtime/translations/index.d.ts.map +1 -0
  174. package/resources/realtime/translations/index.js +9 -0
  175. package/resources/realtime/translations/index.js.map +1 -0
  176. package/resources/realtime/translations/index.mjs +4 -0
  177. package/resources/realtime/translations/index.mjs.map +1 -0
  178. package/resources/realtime/translations/translations.d.mts +10 -0
  179. package/resources/realtime/translations/translations.d.mts.map +1 -0
  180. package/resources/realtime/translations/translations.d.ts +10 -0
  181. package/resources/realtime/translations/translations.d.ts.map +1 -0
  182. package/resources/realtime/translations/translations.js +17 -0
  183. package/resources/realtime/translations/translations.js.map +1 -0
  184. package/resources/realtime/translations/translations.mjs +12 -0
  185. package/resources/realtime/translations/translations.mjs.map +1 -0
  186. package/resources/realtime/translations.d.mts +2 -0
  187. package/resources/realtime/translations.d.mts.map +1 -0
  188. package/resources/realtime/translations.d.ts +2 -0
  189. package/resources/realtime/translations.d.ts.map +1 -0
  190. package/resources/realtime/translations.js +6 -0
  191. package/resources/realtime/translations.js.map +1 -0
  192. package/resources/realtime/translations.mjs +3 -0
  193. package/resources/realtime/translations.mjs.map +1 -0
  194. package/resources/responses/responses.d.mts +66 -7
  195. package/resources/responses/responses.d.mts.map +1 -1
  196. package/resources/responses/responses.d.ts +66 -7
  197. package/resources/responses/responses.d.ts.map +1 -1
  198. package/resources/responses/responses.js.map +1 -1
  199. package/resources/responses/responses.mjs.map +1 -1
  200. package/resources/shared.d.mts +1 -1
  201. package/resources/shared.d.mts.map +1 -1
  202. package/resources/shared.d.ts +1 -1
  203. package/resources/shared.d.ts.map +1 -1
  204. package/src/client.ts +42 -6
  205. package/src/internal/responses/canonical-output-text.ts +30 -5
  206. package/src/internal/responses/response-accumulator.ts +155 -56
  207. package/src/internal/ws.ts +5 -3
  208. package/src/lib/live/transcript-grouping.ts +6 -5
  209. package/src/lib/responses/responses-websocket-accumulator.ts +374 -0
  210. package/src/realtime/translations/ws.ts +539 -0
  211. package/src/resources/audio/speech.ts +4 -1
  212. package/src/resources/audio/transcriptions.ts +2 -1
  213. package/src/resources/beta/agents/agents.ts +699 -12
  214. package/src/resources/beta/agents/environments/templates.ts +70 -9
  215. package/src/resources/beta/agents/index.ts +3 -0
  216. package/src/resources/beta/agents/sessions/events.ts +10 -7
  217. package/src/resources/beta/agents/sessions/sessions.ts +4 -2
  218. package/src/resources/beta/agents/vaults/credentials.ts +21 -7
  219. package/src/resources/beta/beta.ts +6 -0
  220. package/src/resources/beta/index.ts +3 -0
  221. package/src/resources/beta/responses/responses.ts +75 -6
  222. package/src/resources/files.ts +3 -3
  223. package/src/resources/index.ts +1 -1
  224. package/src/resources/live/forks/ws-base.ts +1 -1
  225. package/src/resources/live/sideband/ws-base.ts +1 -1
  226. package/src/resources/live/ws-base.ts +1 -1
  227. package/src/resources/realtime/api.md +8 -0
  228. package/src/resources/realtime/index.ts +1 -0
  229. package/src/resources/realtime/realtime.ts +6 -0
  230. package/src/resources/realtime/translations/client-secrets.ts +93 -0
  231. package/src/resources/realtime/translations/index.ts +4 -0
  232. package/src/resources/realtime/translations/translations.ts +15 -0
  233. package/src/resources/realtime/translations.ts +3 -0
  234. package/src/resources/responses/responses.ts +72 -6
  235. package/src/resources/shared.ts +1 -0
  236. package/src/version.ts +1 -1
  237. package/version.d.mts +1 -1
  238. package/version.d.ts +1 -1
  239. package/version.js +1 -1
  240. package/version.mjs +1 -1
@@ -414,6 +414,11 @@ export interface EnvironmentTemplate {
414
414
  * The Unix timestamp, in seconds, when the template was last updated.
415
415
  */
416
416
  updated_at: number;
417
+
418
+ /**
419
+ * Desktop configuration for each OpenAI-hosted environment.
420
+ */
421
+ desktop?: EnvironmentTemplate.Desktop;
417
422
  }
418
423
 
419
424
  export namespace EnvironmentTemplate {
@@ -466,7 +471,7 @@ export namespace EnvironmentTemplate {
466
471
  *
467
472
  * - `enabled` - Allows unrestricted network access.
468
473
  * - `disabled` - Disables network access.
469
- * - `restricted` - Allows access only to configured domains.
474
+ * - `restricted` - Applies the configured domain restrictions.
470
475
  */
471
476
  access: 'enabled' | 'disabled' | 'restricted';
472
477
 
@@ -535,6 +540,16 @@ export namespace EnvironmentTemplate {
535
540
  */
536
541
  type: 'inline';
537
542
  }
543
+
544
+ /**
545
+ * Desktop configuration for each OpenAI-hosted environment.
546
+ */
547
+ export interface Desktop {
548
+ /**
549
+ * Whether the environment provisions a desktop and browser proxy.
550
+ */
551
+ enabled: boolean;
552
+ }
538
553
  }
539
554
 
540
555
  /**
@@ -564,6 +579,12 @@ export interface TemplateCreateParams {
564
579
  */
565
580
  capability_directories?: Array<string> | null;
566
581
 
582
+ /**
583
+ * Desktop provisioning. Omission or null inherits the template setting, or
584
+ * defaults to disabled.
585
+ */
586
+ desktop?: TemplateCreateParams.Desktop | null;
587
+
567
588
  /**
568
589
  * Environment variables made available to the agent.
569
590
  */
@@ -581,7 +602,7 @@ export interface TemplateCreateParams {
581
602
 
582
603
  /**
583
604
  * Network access policy for the environment. Defaults to disabled for GA requests
584
- * and enabled for alpha/beta requests.
605
+ * and enabled for beta requests.
585
606
  */
586
607
  network?: TemplateCreateParams.Network | null;
587
608
 
@@ -608,9 +629,20 @@ export interface TemplateCreateParams {
608
629
  }
609
630
 
610
631
  export namespace TemplateCreateParams {
632
+ /**
633
+ * Desktop provisioning. Omission or null inherits the template setting, or
634
+ * defaults to disabled.
635
+ */
636
+ export interface Desktop {
637
+ /**
638
+ * Whether to provision the desktop and its browser proxy.
639
+ */
640
+ enabled: boolean;
641
+ }
642
+
611
643
  /**
612
644
  * Network access policy for the environment. Defaults to disabled for GA requests
613
- * and enabled for alpha/beta requests.
645
+ * and enabled for beta requests.
614
646
  */
615
647
  export interface Network {
616
648
  /**
@@ -618,7 +650,7 @@ export namespace TemplateCreateParams {
618
650
  *
619
651
  * - `enabled` - Allows unrestricted network access.
620
652
  * - `disabled` - Disables network access.
621
- * - `restricted` - Allows access only to configured domains.
653
+ * - `restricted` - Applies the configured domain restrictions.
622
654
  */
623
655
  access: 'enabled' | 'disabled' | 'restricted';
624
656
 
@@ -626,6 +658,13 @@ export namespace TemplateCreateParams {
626
658
  * Domains the environment may access when network access is restricted.
627
659
  */
628
660
  allowed_domains?: Array<string> | null;
661
+
662
+ /**
663
+ * Domains blocked for both executor and browser when access is restricted. A
664
+ * nonempty list requires `access: restricted` and cannot be combined with nonempty
665
+ * `allowed_domains`. Wildcard domains are not supported.
666
+ */
667
+ blocked_domains?: Array<string> | null;
629
668
  }
630
669
 
631
670
  /**
@@ -655,6 +694,11 @@ export interface TemplateUpdateParams {
655
694
  */
656
695
  capability_directories?: Array<string> | null;
657
696
 
697
+ /**
698
+ * Replacement desktop configuration, or null to disable the desktop.
699
+ */
700
+ desktop?: TemplateUpdateParams.Desktop | null;
701
+
658
702
  /**
659
703
  * Replacement confidential environment values.
660
704
  */
@@ -672,8 +716,8 @@ export interface TemplateUpdateParams {
672
716
 
673
717
  /**
674
718
  * Network access available after setup completes. Omit to preserve the current
675
- * policy, or pass `null` to reset to disabled for GA requests or enabled for
676
- * alpha/beta requests.
719
+ * policy, or pass `null` to reset to disabled for GA requests or enabled for beta
720
+ * requests.
677
721
  */
678
722
  network?: TemplateUpdateParams.Network | null;
679
723
 
@@ -699,10 +743,20 @@ export interface TemplateUpdateParams {
699
743
  }
700
744
 
701
745
  export namespace TemplateUpdateParams {
746
+ /**
747
+ * Replacement desktop configuration, or null to disable the desktop.
748
+ */
749
+ export interface Desktop {
750
+ /**
751
+ * Whether to provision the desktop and its browser proxy.
752
+ */
753
+ enabled: boolean;
754
+ }
755
+
702
756
  /**
703
757
  * Network access available after setup completes. Omit to preserve the current
704
- * policy, or pass `null` to reset to disabled for GA requests or enabled for
705
- * alpha/beta requests.
758
+ * policy, or pass `null` to reset to disabled for GA requests or enabled for beta
759
+ * requests.
706
760
  */
707
761
  export interface Network {
708
762
  /**
@@ -710,7 +764,7 @@ export namespace TemplateUpdateParams {
710
764
  *
711
765
  * - `enabled` - Allows unrestricted network access.
712
766
  * - `disabled` - Disables network access.
713
- * - `restricted` - Allows access only to configured domains.
767
+ * - `restricted` - Applies the configured domain restrictions.
714
768
  */
715
769
  access: 'enabled' | 'disabled' | 'restricted';
716
770
 
@@ -718,6 +772,13 @@ export namespace TemplateUpdateParams {
718
772
  * Domains the environment may access when network access is restricted.
719
773
  */
720
774
  allowed_domains?: Array<string> | null;
775
+
776
+ /**
777
+ * Domains blocked for both executor and browser when access is restricted. A
778
+ * nonempty list requires `access: restricted` and cannot be combined with nonempty
779
+ * `allowed_domains`. Wildcard domains are not supported.
780
+ */
781
+ blocked_domains?: Array<string> | null;
721
782
  }
722
783
 
723
784
  /**
@@ -3,6 +3,9 @@
3
3
  export {
4
4
  Agents,
5
5
  type Agent,
6
+ type AgentBrowserAuthenticationCancelParam,
7
+ type AgentBrowserAuthenticationSubmitParam,
8
+ type AgentBrowserOriginAccessParam,
6
9
  type AgentCloseSubagentCallItem,
7
10
  type AgentCommandExecutionItem,
8
11
  type AgentContent,
@@ -31,13 +31,16 @@ export class Events extends APIResource {
31
31
  * {
32
32
  * events: [
33
33
  * {
34
- * input: [
35
- * {
36
- * content: [{ text: 'text', type: 'input_text' }],
37
- * role: 'user',
38
- * },
39
- * ],
40
- * type: 'agent.session.input.message',
34
+ * request_id: 'request_id',
35
+ * response: {
36
+ * action: 'submit',
37
+ * fields: [
38
+ * { field_id: 'field_id', value: 'value' },
39
+ * ],
40
+ * type: 'browser_authentication',
41
+ * },
42
+ * type:
43
+ * 'agent.session.input.computer_use_approval_request_result',
41
44
  * },
42
45
  * ],
43
46
  * },
@@ -473,8 +473,9 @@ export namespace SessionCreateParams {
473
473
  * - `flex` - Uses the flex service tier.
474
474
  * - `priority` - Uses the priority service tier.
475
475
  * - `fast` - Uses the fast service tier.
476
+ * - `ultrafast` - Uses the ultrafast service tier.
476
477
  */
477
- service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
478
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' | null;
478
479
 
479
480
  /**
480
481
  * Configuration for text generated by the agent.
@@ -542,8 +543,9 @@ export namespace SessionUpdateParams {
542
543
  * - `flex` - Uses the flex service tier.
543
544
  * - `priority` - Uses the priority service tier.
544
545
  * - `fast` - Uses the fast service tier.
546
+ * - `ultrafast` - Uses the ultrafast service tier.
545
547
  */
546
- service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
548
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' | null;
547
549
  }
548
550
 
549
551
  export namespace Agent {
@@ -187,8 +187,7 @@ export class Credentials extends APIResource {
187
187
  }
188
188
 
189
189
  /**
190
- * Rotates a vault credential's write-only secret and returns only credential
191
- * metadata. See
190
+ * Updates credential metadata or rotates its write-only secret. See
192
191
  * [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults).
193
192
  *
194
193
  * @example
@@ -196,10 +195,7 @@ export class Credentials extends APIResource {
196
195
  * const credential =
197
196
  * await client.beta.agents.vaults.credentials.update(
198
197
  * 'credential_id',
199
- * {
200
- * vault_id: 'vault_id',
201
- * auth: { type: 'mcp_oauth' },
202
- * },
198
+ * { vault_id: 'vault_id', metadata: {} },
203
199
  * );
204
200
  * ```
205
201
  */
@@ -397,6 +393,11 @@ export interface Credential {
397
393
  */
398
394
  created_at: number;
399
395
 
396
+ /**
397
+ * Application-defined key-value pairs associated with this credential.
398
+ */
399
+ metadata: { [key: string]: string };
400
+
400
401
  /**
401
402
  * The human-readable name of the credential.
402
403
  */
@@ -1002,6 +1003,12 @@ export interface CredentialCreateParams {
1002
1003
  * trimming.
1003
1004
  */
1004
1005
  name: string;
1006
+
1007
+ /**
1008
+ * Up to 16 string key-value pairs, with keys up to 64 and values up to 512
1009
+ * characters. Defaults to an empty map.
1010
+ */
1011
+ metadata?: { [key: string]: string };
1005
1012
  }
1006
1013
 
1007
1014
  export interface CredentialRetrieveParams {
@@ -1021,7 +1028,14 @@ export interface CredentialUpdateParams {
1021
1028
  * Body param: Replacement values for the credential's existing authentication
1022
1029
  * method.
1023
1030
  */
1024
- auth: CredentialAuthRotateParam;
1031
+ auth?: CredentialAuthRotateParam;
1032
+
1033
+ /**
1034
+ * Body param: Replaces all metadata. Omit to preserve it, or pass {} to clear it.
1035
+ * Up to 16 string key-value pairs, with keys up to 64 and values up to 512
1036
+ * characters.
1037
+ */
1038
+ metadata?: { [key: string]: string };
1025
1039
  }
1026
1040
 
1027
1041
  export interface CredentialListParams extends Omit<CursorPageParams, 'limit'> {
@@ -76,6 +76,9 @@ import {
76
76
  import * as AgentsAPI from './agents/agents';
77
77
  import {
78
78
  Agent,
79
+ AgentBrowserAuthenticationCancelParam,
80
+ AgentBrowserAuthenticationSubmitParam,
81
+ AgentBrowserOriginAccessParam,
79
82
  AgentCloseSubagentCallItem,
80
83
  AgentCommandExecutionItem,
81
84
  AgentContent,
@@ -451,6 +454,9 @@ export declare namespace Beta {
451
454
  type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent,
452
455
  Agents as Agents,
453
456
  type Agent as Agent,
457
+ type AgentBrowserAuthenticationCancelParam as AgentBrowserAuthenticationCancelParam,
458
+ type AgentBrowserAuthenticationSubmitParam as AgentBrowserAuthenticationSubmitParam,
459
+ type AgentBrowserOriginAccessParam as AgentBrowserOriginAccessParam,
454
460
  type AgentCloseSubagentCallItem as AgentCloseSubagentCallItem,
455
461
  type AgentCommandExecutionItem as AgentCommandExecutionItem,
456
462
  type AgentContent as AgentContent,
@@ -3,6 +3,9 @@
3
3
  export {
4
4
  Agents,
5
5
  type Agent,
6
+ type AgentBrowserAuthenticationCancelParam,
7
+ type AgentBrowserAuthenticationSubmitParam,
8
+ type AgentBrowserOriginAccessParam,
6
9
  type AgentCloseSubagentCallItem,
7
10
  type AgentCommandExecutionItem,
8
11
  type AgentContent,
@@ -1376,6 +1376,8 @@ export interface BetaResponse {
1376
1376
  */
1377
1377
  id: string;
1378
1378
 
1379
+ access_programs: BetaResponse.AccessPrograms | null;
1380
+
1379
1381
  /**
1380
1382
  * Unix timestamp (in seconds) of when this Response was created.
1381
1383
  */
@@ -1419,6 +1421,7 @@ export interface BetaResponse {
1419
1421
  */
1420
1422
  model:
1421
1423
  | 'gpt-6-astra'
1424
+ | 'gpt-6.1-sol'
1422
1425
  | 'gpt-6-sol'
1423
1426
  | 'gpt-6-luna'
1424
1427
  | 'gpt-5.6-sol'
@@ -1799,6 +1802,13 @@ export interface BetaResponse {
1799
1802
  }
1800
1803
 
1801
1804
  export namespace BetaResponse {
1805
+ export interface AccessPrograms {
1806
+ /**
1807
+ * The effective Cyber access program used for this response.
1808
+ */
1809
+ cyber: 'standard' | 'daybreak_blue' | 'daybreak_red';
1810
+ }
1811
+
1802
1812
  /**
1803
1813
  * Details about why the response is incomplete.
1804
1814
  */
@@ -9461,7 +9471,7 @@ export namespace BetaResponseOutputText {
9461
9471
  filename: string;
9462
9472
 
9463
9473
  /**
9464
- * The index of the file in the list of files.
9474
+ * The index in the output text at which to insert the file citation.
9465
9475
  */
9466
9476
  index: number;
9467
9477
 
@@ -9649,7 +9659,7 @@ export namespace BetaResponseOutputTextAnnotationAddedEvent {
9649
9659
  filename: string;
9650
9660
 
9651
9661
  /**
9652
- * The index of the file in the list of files.
9662
+ * The index in the output text at which to insert the file citation.
9653
9663
  */
9654
9664
  index: number;
9655
9665
 
@@ -11904,6 +11914,11 @@ export namespace BetaResponsesClientEvent {
11904
11914
  */
11905
11915
  type: 'response.create';
11906
11916
 
11917
+ /**
11918
+ * Domain-specific access programs to use for this request.
11919
+ */
11920
+ access_programs?: ResponseCreate.AccessPrograms;
11921
+
11907
11922
  /**
11908
11923
  * Whether to run the model response in the background.
11909
11924
  * [Learn more](https://developers.openai.com/api/docs/guides/background).
@@ -12001,6 +12016,7 @@ export namespace BetaResponsesClientEvent {
12001
12016
  */
12002
12017
  model?:
12003
12018
  | 'gpt-6-astra'
12019
+ | 'gpt-6.1-sol'
12004
12020
  | 'gpt-6-sol'
12005
12021
  | 'gpt-6-luna'
12006
12022
  | 'gpt-5.6-sol'
@@ -12354,6 +12370,25 @@ export namespace BetaResponsesClientEvent {
12354
12370
  }
12355
12371
 
12356
12372
  export namespace ResponseCreate {
12373
+ /**
12374
+ * Domain-specific access programs to use for this request.
12375
+ */
12376
+ export interface AccessPrograms {
12377
+ /**
12378
+ * The Cyber access program to use for this request. Supported values are
12379
+ * `standard`, `daybreak_blue`, and `daybreak_red`. If omitted, the API resolves
12380
+ * the program from the model's Cyber tier and your organization and project
12381
+ * access, subject to model-specific eligibility restrictions. By default, models
12382
+ * without a Cyber tier use Standard. Blue-tier models use Daybreak Blue when
12383
+ * authorized; otherwise they fall back to Standard unless the model requires
12384
+ * Daybreak access. Red-tier models use Daybreak Red and require authorization.
12385
+ * Requests that require unavailable Daybreak access return 403. An implicit
12386
+ * Standard fallback is represented by null in the response's access_programs
12387
+ * field, rather than an explicit Standard selection.
12388
+ */
12389
+ cyber?: 'standard' | 'daybreak_blue' | 'daybreak_red';
12390
+ }
12391
+
12357
12392
  export interface ContextManagement {
12358
12393
  /**
12359
12394
  * The context management entry type. Currently only 'compaction' is supported.
@@ -14037,14 +14072,18 @@ export interface BetaWebSearchPreviewTool {
14037
14072
  search_context_size?: 'low' | 'medium' | 'high';
14038
14073
 
14039
14074
  /**
14040
- * The user's location.
14075
+ * The approximate location of the user. If omitted or null, defaults to the United
14076
+ * States. To avoid this fallback, pass `{"type": "approximate"}` without location
14077
+ * fields. To localize results, provide the relevant location fields.
14041
14078
  */
14042
14079
  user_location?: BetaWebSearchPreviewTool.UserLocation | null;
14043
14080
  }
14044
14081
 
14045
14082
  export namespace BetaWebSearchPreviewTool {
14046
14083
  /**
14047
- * The user's location.
14084
+ * The approximate location of the user. If omitted or null, defaults to the United
14085
+ * States. To avoid this fallback, pass `{"type": "approximate"}` without location
14086
+ * fields. To localize results, provide the relevant location fields.
14048
14087
  */
14049
14088
  export interface UserLocation {
14050
14089
  /**
@@ -14105,7 +14144,9 @@ export interface BetaWebSearchTool {
14105
14144
  search_context_size?: 'low' | 'medium' | 'high';
14106
14145
 
14107
14146
  /**
14108
- * The approximate location of the user.
14147
+ * The approximate location of the user. If omitted or null, defaults to the United
14148
+ * States. To avoid this fallback, pass `{"type": "approximate"}` without location
14149
+ * fields. To localize results, provide the relevant location fields.
14109
14150
  */
14110
14151
  user_location?: BetaWebSearchTool.UserLocation | null;
14111
14152
  }
@@ -14125,7 +14166,9 @@ export namespace BetaWebSearchTool {
14125
14166
  }
14126
14167
 
14127
14168
  /**
14128
- * The approximate location of the user.
14169
+ * The approximate location of the user. If omitted or null, defaults to the United
14170
+ * States. To avoid this fallback, pass `{"type": "approximate"}` without location
14171
+ * fields. To localize results, provide the relevant location fields.
14129
14172
  */
14130
14173
  export interface UserLocation {
14131
14174
  /**
@@ -14160,6 +14203,11 @@ export namespace BetaWebSearchTool {
14160
14203
  export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming;
14161
14204
 
14162
14205
  export interface ResponseCreateParamsBase {
14206
+ /**
14207
+ * Body param: Domain-specific access programs to use for this request.
14208
+ */
14209
+ access_programs?: ResponseCreateParams.AccessPrograms;
14210
+
14163
14211
  /**
14164
14212
  * Body param: Whether to run the model response in the background.
14165
14213
  * [Learn more](https://developers.openai.com/api/docs/guides/background).
@@ -14258,6 +14306,7 @@ export interface ResponseCreateParamsBase {
14258
14306
  */
14259
14307
  model?:
14260
14308
  | 'gpt-6-astra'
14309
+ | 'gpt-6.1-sol'
14261
14310
  | 'gpt-6-sol'
14262
14311
  | 'gpt-6-luna'
14263
14312
  | 'gpt-5.6-sol'
@@ -14612,6 +14661,25 @@ export interface ResponseCreateParamsBase {
14612
14661
  }
14613
14662
 
14614
14663
  export namespace ResponseCreateParams {
14664
+ /**
14665
+ * Domain-specific access programs to use for this request.
14666
+ */
14667
+ export interface AccessPrograms {
14668
+ /**
14669
+ * The Cyber access program to use for this request. Supported values are
14670
+ * `standard`, `daybreak_blue`, and `daybreak_red`. If omitted, the API resolves
14671
+ * the program from the model's Cyber tier and your organization and project
14672
+ * access, subject to model-specific eligibility restrictions. By default, models
14673
+ * without a Cyber tier use Standard. Blue-tier models use Daybreak Blue when
14674
+ * authorized; otherwise they fall back to Standard unless the model requires
14675
+ * Daybreak access. Red-tier models use Daybreak Red and require authorization.
14676
+ * Requests that require unavailable Daybreak access return 403. An implicit
14677
+ * Standard fallback is represented by null in the response's access_programs
14678
+ * field, rather than an explicit Standard selection.
14679
+ */
14680
+ cyber?: 'standard' | 'daybreak_blue' | 'daybreak_red';
14681
+ }
14682
+
14615
14683
  export interface ContextManagement {
14616
14684
  /**
14617
14685
  * The context management entry type. Currently only 'compaction' is supported.
@@ -14931,6 +14999,7 @@ export interface ResponseCompactParams {
14931
14999
  */
14932
15000
  model:
14933
15001
  | 'gpt-6-astra'
15002
+ | 'gpt-6.1-sol'
14934
15003
  | 'gpt-6-sol'
14935
15004
  | 'gpt-6-luna'
14936
15005
  | 'gpt-5.6-sol'
@@ -324,8 +324,6 @@ export class Files extends APIResource {
324
324
 
325
325
  export type FileObjectsPage = CursorPage<FileObject>;
326
326
 
327
- export type FileContent = string;
328
-
329
327
  export interface FileDeleted {
330
328
  id: string;
331
329
 
@@ -408,6 +406,8 @@ export interface FileObject {
408
406
  */
409
407
  export type FilePurpose = 'assistants' | 'batch' | 'fine-tune' | 'vision' | 'user_data' | 'evals';
410
408
 
409
+ export type FileContent = string;
410
+
411
411
  export interface FileCreateParams {
412
412
  /**
413
413
  * The File object (not file name) to be uploaded.
@@ -468,10 +468,10 @@ export interface FileListParams extends CursorPageParams {
468
468
 
469
469
  export declare namespace Files {
470
470
  export {
471
- type FileContent as FileContent,
472
471
  type FileDeleted as FileDeleted,
473
472
  type FileObject as FileObject,
474
473
  type FilePurpose as FilePurpose,
474
+ type FileContent as FileContent,
475
475
  type FileObjectsPage as FileObjectsPage,
476
476
  type FileCreateParams as FileCreateParams,
477
477
  type FileListParams as FileListParams,
@@ -62,10 +62,10 @@ export {
62
62
  } from './evals/evals';
63
63
  export {
64
64
  Files,
65
- type FileContent,
66
65
  type FileDeleted,
67
66
  type FileObject,
68
67
  type FilePurpose,
68
+ type FileContent,
69
69
  type FileCreateParams,
70
70
  type FileListParams,
71
71
  type FileObjectsPage,
@@ -671,7 +671,7 @@ export abstract class ForksWSBase<TSocket extends WebSocketLike> extends ForksEm
671
671
  }
672
672
 
673
673
  try {
674
- this._sendQueue.flush((data) => this.socket.send(flattenRawData(data)));
674
+ this._sendQueue.flush((data) => this.socket.send(flattenRawData(data)), { requeueFailed: false });
675
675
  } catch (err) {
676
676
  this._onError(null, 'could not send queued data', err);
677
677
  }
@@ -681,7 +681,7 @@ export abstract class SidebandWSBase<TSocket extends WebSocketLike> extends Side
681
681
  }
682
682
 
683
683
  try {
684
- this._sendQueue.flush((data) => this.socket.send(flattenRawData(data)));
684
+ this._sendQueue.flush((data) => this.socket.send(flattenRawData(data)), { requeueFailed: false });
685
685
  } catch (err) {
686
686
  this._onError(null, 'could not send queued data', err);
687
687
  }
@@ -667,7 +667,7 @@ export abstract class LiveWSBase<TSocket extends WebSocketLike> extends LiveEmit
667
667
  }
668
668
 
669
669
  try {
670
- this._sendQueue.flush((data) => this.socket.send(flattenRawData(data)));
670
+ this._sendQueue.flush((data) => this.socket.send(flattenRawData(data)), { requeueFailed: false });
671
671
  } catch (err) {
672
672
  this._onError(null, 'could not send queued data', err);
673
673
  }
@@ -144,3 +144,11 @@ Methods:
144
144
  - <code title="post /realtime/calls/{call_id}/hangup">client.realtime.calls.<a href="./src/resources/realtime/calls.ts">hangup</a>(callID) -> void</code>
145
145
  - <code title="post /realtime/calls/{call_id}/refer">client.realtime.calls.<a href="./src/resources/realtime/calls.ts">refer</a>(callID, { ...params }) -> void</code>
146
146
  - <code title="post /realtime/calls/{call_id}/reject">client.realtime.calls.<a href="./src/resources/realtime/calls.ts">reject</a>(callID, { ...params }) -> void</code>
147
+
148
+ ## Translations
149
+
150
+ ### ClientSecrets
151
+
152
+ Methods:
153
+
154
+ - <code title="post /realtime/translations/client_secrets">client.realtime.translations.clientSecrets.<a href="./src/resources/realtime/translations/client-secrets.ts">create</a>({ ...params }) -> RealtimeTranslationClientSecretCreateResponse</code>
@@ -16,3 +16,4 @@ export {
16
16
  type ClientSecretCreateParams,
17
17
  } from './client-secrets';
18
18
  export { Realtime } from './realtime';
19
+ export { Translations } from './translations/index';
@@ -16,10 +16,13 @@ import {
16
16
  RealtimeTranscriptionSessionTurnDetection,
17
17
  } from './client-secrets';
18
18
  import * as ResponsesAPI from '../responses/responses';
19
+ import * as TranslationsAPI from './translations/translations';
20
+ import { Translations } from './translations/translations';
19
21
 
20
22
  export class Realtime extends APIResource {
21
23
  clientSecrets: ClientSecretsAPI.ClientSecrets = new ClientSecretsAPI.ClientSecrets(this._client);
22
24
  calls: CallsAPI.Calls = new CallsAPI.Calls(this._client);
25
+ translations: TranslationsAPI.Translations = new TranslationsAPI.Translations(this._client);
23
26
  }
24
27
 
25
28
  export interface AudioTranscription {
@@ -5444,6 +5447,7 @@ export namespace TranscriptionSessionUpdatedEvent {
5444
5447
 
5445
5448
  Realtime.ClientSecrets = ClientSecrets;
5446
5449
  Realtime.Calls = Calls;
5450
+ Realtime.Translations = Translations;
5447
5451
 
5448
5452
  export declare namespace Realtime {
5449
5453
  export {
@@ -5584,4 +5588,6 @@ export declare namespace Realtime {
5584
5588
  type CallReferParams as CallReferParams,
5585
5589
  type CallRejectParams as CallRejectParams,
5586
5590
  };
5591
+
5592
+ export { Translations as Translations };
5587
5593
  }