openai 7.28.0 → 7.30.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 (291) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/helpers/standard-schema.d.mts +8 -3
  11. package/helpers/standard-schema.d.mts.map +1 -1
  12. package/helpers/standard-schema.d.ts +8 -3
  13. package/helpers/standard-schema.d.ts.map +1 -1
  14. package/helpers/standard-schema.js +1 -0
  15. package/helpers/standard-schema.js.map +1 -1
  16. package/helpers/standard-schema.mjs +1 -0
  17. package/helpers/standard-schema.mjs.map +1 -1
  18. package/helpers/zod.d.mts +2 -0
  19. package/helpers/zod.d.mts.map +1 -1
  20. package/helpers/zod.d.ts +2 -0
  21. package/helpers/zod.d.ts.map +1 -1
  22. package/helpers/zod.js +1 -0
  23. package/helpers/zod.js.map +1 -1
  24. package/helpers/zod.mjs +1 -0
  25. package/helpers/zod.mjs.map +1 -1
  26. package/lib/ChatCompletionStream.d.mts +2 -1
  27. package/lib/ChatCompletionStream.d.mts.map +1 -1
  28. package/lib/ChatCompletionStream.d.ts +2 -1
  29. package/lib/ChatCompletionStream.d.ts.map +1 -1
  30. package/lib/ChatCompletionStream.js +9 -2
  31. package/lib/ChatCompletionStream.js.map +1 -1
  32. package/lib/ChatCompletionStream.mjs +9 -2
  33. package/lib/ChatCompletionStream.mjs.map +1 -1
  34. package/lib/ResponsesParser.d.mts.map +1 -1
  35. package/lib/ResponsesParser.d.ts.map +1 -1
  36. package/lib/ResponsesParser.js +5 -0
  37. package/lib/ResponsesParser.js.map +1 -1
  38. package/lib/ResponsesParser.mjs +5 -0
  39. package/lib/ResponsesParser.mjs.map +1 -1
  40. package/lib/agents/agent-session-stream.d.mts +7 -0
  41. package/lib/agents/agent-session-stream.d.mts.map +1 -1
  42. package/lib/agents/agent-session-stream.d.ts +7 -0
  43. package/lib/agents/agent-session-stream.d.ts.map +1 -1
  44. package/lib/agents/agent-session-stream.js +8 -110
  45. package/lib/agents/agent-session-stream.js.map +1 -1
  46. package/lib/agents/agent-session-stream.mjs +9 -111
  47. package/lib/agents/agent-session-stream.mjs.map +1 -1
  48. package/lib/beta/agents/agent-session-create-stream.d.mts +41 -1
  49. package/lib/beta/agents/agent-session-create-stream.d.mts.map +1 -1
  50. package/lib/beta/agents/agent-session-create-stream.d.ts +41 -1
  51. package/lib/beta/agents/agent-session-create-stream.d.ts.map +1 -1
  52. package/lib/beta/agents/agent-session-create-stream.js +70 -2
  53. package/lib/beta/agents/agent-session-create-stream.js.map +1 -1
  54. package/lib/beta/agents/agent-session-create-stream.mjs +69 -2
  55. package/lib/beta/agents/agent-session-create-stream.mjs.map +1 -1
  56. package/lib/beta/agents/function-tool.d.mts.map +1 -1
  57. package/lib/beta/agents/function-tool.d.ts.map +1 -1
  58. package/lib/beta/agents/function-tool.js +22 -15
  59. package/lib/beta/agents/function-tool.js.map +1 -1
  60. package/lib/beta/agents/function-tool.mjs +22 -15
  61. package/lib/beta/agents/function-tool.mjs.map +1 -1
  62. package/lib/beta/agents/parse-result.d.mts +2 -0
  63. package/lib/beta/agents/parse-result.d.mts.map +1 -1
  64. package/lib/beta/agents/parse-result.d.ts +2 -0
  65. package/lib/beta/agents/parse-result.d.ts.map +1 -1
  66. package/lib/beta/agents/tool-dispatcher.d.mts +13 -0
  67. package/lib/beta/agents/tool-dispatcher.d.mts.map +1 -0
  68. package/lib/beta/agents/tool-dispatcher.d.ts +13 -0
  69. package/lib/beta/agents/tool-dispatcher.d.ts.map +1 -0
  70. package/lib/beta/agents/tool-dispatcher.js +185 -0
  71. package/lib/beta/agents/tool-dispatcher.js.map +1 -0
  72. package/lib/beta/agents/tool-dispatcher.mjs +181 -0
  73. package/lib/beta/agents/tool-dispatcher.mjs.map +1 -0
  74. package/lib/beta/agents/tool-error.d.mts +13 -0
  75. package/lib/beta/agents/tool-error.d.mts.map +1 -0
  76. package/lib/beta/agents/tool-error.d.ts +13 -0
  77. package/lib/beta/agents/tool-error.d.ts.map +1 -0
  78. package/lib/beta/agents/tool-error.js +3 -0
  79. package/lib/beta/agents/tool-error.js.map +1 -0
  80. package/lib/beta/agents/tool-error.mjs +2 -0
  81. package/lib/beta/agents/tool-error.mjs.map +1 -0
  82. package/lib/beta/agents/tool-stages.d.mts +12 -0
  83. package/lib/beta/agents/tool-stages.d.mts.map +1 -0
  84. package/lib/beta/agents/tool-stages.d.ts +12 -0
  85. package/lib/beta/agents/tool-stages.d.ts.map +1 -0
  86. package/lib/beta/agents/tool-stages.js +6 -0
  87. package/lib/beta/agents/tool-stages.js.map +1 -0
  88. package/lib/beta/agents/tool-stages.mjs +3 -0
  89. package/lib/beta/agents/tool-stages.mjs.map +1 -0
  90. package/lib/chat-completions/streaming.d.mts +11 -0
  91. package/lib/chat-completions/streaming.d.mts.map +1 -0
  92. package/lib/chat-completions/streaming.d.ts +11 -0
  93. package/lib/chat-completions/streaming.d.ts.map +1 -0
  94. package/lib/chat-completions/streaming.js +27 -0
  95. package/lib/chat-completions/streaming.js.map +1 -0
  96. package/lib/chat-completions/streaming.mjs +23 -0
  97. package/lib/chat-completions/streaming.mjs.map +1 -0
  98. package/package.json +1 -1
  99. package/resources/admin/organization/usage.d.mts +304 -9
  100. package/resources/admin/organization/usage.d.mts.map +1 -1
  101. package/resources/admin/organization/usage.d.ts +304 -9
  102. package/resources/admin/organization/usage.d.ts.map +1 -1
  103. package/resources/beta/agents/agents.d.mts +12 -6
  104. package/resources/beta/agents/agents.d.mts.map +1 -1
  105. package/resources/beta/agents/agents.d.ts +12 -6
  106. package/resources/beta/agents/agents.d.ts.map +1 -1
  107. package/resources/beta/agents/agents.js.map +1 -1
  108. package/resources/beta/agents/agents.mjs.map +1 -1
  109. package/resources/beta/agents/environments/templates.d.mts +6 -8
  110. package/resources/beta/agents/environments/templates.d.mts.map +1 -1
  111. package/resources/beta/agents/environments/templates.d.ts +6 -8
  112. package/resources/beta/agents/environments/templates.d.ts.map +1 -1
  113. package/resources/beta/agents/sessions/index.d.mts +1 -1
  114. package/resources/beta/agents/sessions/index.d.mts.map +1 -1
  115. package/resources/beta/agents/sessions/index.d.ts +1 -1
  116. package/resources/beta/agents/sessions/index.d.ts.map +1 -1
  117. package/resources/beta/agents/sessions/index.js +2 -2
  118. package/resources/beta/agents/sessions/index.js.map +1 -1
  119. package/resources/beta/agents/sessions/index.mjs +1 -1
  120. package/resources/beta/agents/sessions/index.mjs.map +1 -1
  121. package/resources/beta/agents/sessions/sessions.d.mts +6 -3
  122. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  123. package/resources/beta/agents/sessions/sessions.d.ts +6 -3
  124. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  125. package/resources/beta/agents/sessions/sessions.js +7 -4
  126. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  127. package/resources/beta/agents/sessions/sessions.mjs +8 -5
  128. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  129. package/resources/beta/agents/sessions/subagents/turns/turns.d.mts +2 -2
  130. package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
  131. package/resources/beta/agents/sessions/subagents/turns/turns.d.ts +2 -2
  132. package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
  133. package/resources/beta/agents/sessions/turns/index.d.mts +3 -0
  134. package/resources/beta/agents/sessions/turns/index.d.mts.map +1 -0
  135. package/resources/beta/agents/sessions/turns/index.d.ts +3 -0
  136. package/resources/beta/agents/sessions/turns/index.d.ts.map +1 -0
  137. package/resources/beta/agents/sessions/turns/index.js +9 -0
  138. package/resources/beta/agents/sessions/turns/index.js.map +1 -0
  139. package/resources/beta/agents/sessions/turns/index.mjs +4 -0
  140. package/resources/beta/agents/sessions/turns/index.mjs.map +1 -0
  141. package/resources/beta/agents/sessions/turns/items.d.mts +43 -0
  142. package/resources/beta/agents/sessions/turns/items.d.mts.map +1 -0
  143. package/resources/beta/agents/sessions/turns/items.d.ts +43 -0
  144. package/resources/beta/agents/sessions/turns/items.d.ts.map +1 -0
  145. package/resources/beta/agents/sessions/turns/items.js +40 -0
  146. package/resources/beta/agents/sessions/turns/items.js.map +1 -0
  147. package/resources/beta/agents/sessions/turns/items.mjs +36 -0
  148. package/resources/beta/agents/sessions/turns/items.mjs.map +1 -0
  149. package/resources/beta/agents/sessions/turns/turns.d.mts +128 -0
  150. package/resources/beta/agents/sessions/turns/turns.d.mts.map +1 -0
  151. package/resources/beta/agents/sessions/turns/turns.d.ts +128 -0
  152. package/resources/beta/agents/sessions/turns/turns.d.ts.map +1 -0
  153. package/resources/beta/agents/sessions/turns/turns.js +111 -0
  154. package/resources/beta/agents/sessions/turns/turns.js.map +1 -0
  155. package/resources/beta/agents/sessions/turns/turns.mjs +106 -0
  156. package/resources/beta/agents/sessions/turns/turns.mjs.map +1 -0
  157. package/resources/beta/agents/sessions/turns.d.mts +1 -123
  158. package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
  159. package/resources/beta/agents/sessions/turns.d.ts +1 -123
  160. package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
  161. package/resources/beta/agents/sessions/turns.js +2 -99
  162. package/resources/beta/agents/sessions/turns.js.map +1 -1
  163. package/resources/beta/agents/sessions/turns.mjs +1 -97
  164. package/resources/beta/agents/sessions/turns.mjs.map +1 -1
  165. package/resources/beta/beta.d.mts +2 -2
  166. package/resources/beta/beta.d.mts.map +1 -1
  167. package/resources/beta/beta.d.ts +2 -2
  168. package/resources/beta/beta.d.ts.map +1 -1
  169. package/resources/beta/beta.js.map +1 -1
  170. package/resources/beta/beta.mjs.map +1 -1
  171. package/resources/beta/index.d.mts +1 -1
  172. package/resources/beta/index.d.mts.map +1 -1
  173. package/resources/beta/index.d.ts +1 -1
  174. package/resources/beta/index.d.ts.map +1 -1
  175. package/resources/beta/index.js.map +1 -1
  176. package/resources/beta/index.mjs.map +1 -1
  177. package/resources/beta/responses/index.d.mts +1 -1
  178. package/resources/beta/responses/index.d.mts.map +1 -1
  179. package/resources/beta/responses/index.d.ts +1 -1
  180. package/resources/beta/responses/index.d.ts.map +1 -1
  181. package/resources/beta/responses/index.js.map +1 -1
  182. package/resources/beta/responses/index.mjs.map +1 -1
  183. package/resources/beta/responses/responses.d.mts +378 -6
  184. package/resources/beta/responses/responses.d.mts.map +1 -1
  185. package/resources/beta/responses/responses.d.ts +378 -6
  186. package/resources/beta/responses/responses.d.ts.map +1 -1
  187. package/resources/beta/responses/responses.js.map +1 -1
  188. package/resources/beta/responses/responses.mjs.map +1 -1
  189. package/resources/chat/completions/completions.d.mts +42 -8
  190. package/resources/chat/completions/completions.d.mts.map +1 -1
  191. package/resources/chat/completions/completions.d.ts +42 -8
  192. package/resources/chat/completions/completions.d.ts.map +1 -1
  193. package/resources/chat/completions/completions.js +5 -2
  194. package/resources/chat/completions/completions.js.map +1 -1
  195. package/resources/chat/completions/completions.mjs +5 -2
  196. package/resources/chat/completions/completions.mjs.map +1 -1
  197. package/resources/completions.d.mts +1 -1
  198. package/resources/completions.d.mts.map +1 -1
  199. package/resources/completions.d.ts +1 -1
  200. package/resources/completions.d.ts.map +1 -1
  201. package/resources/decisions.d.mts +196 -0
  202. package/resources/decisions.d.mts.map +1 -0
  203. package/resources/decisions.d.ts +196 -0
  204. package/resources/decisions.d.ts.map +1 -0
  205. package/resources/decisions.js +32 -0
  206. package/resources/decisions.js.map +1 -0
  207. package/resources/decisions.mjs +28 -0
  208. package/resources/decisions.mjs.map +1 -0
  209. package/resources/fine-tuning/jobs/jobs.d.mts +7 -2
  210. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  211. package/resources/fine-tuning/jobs/jobs.d.ts +7 -2
  212. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  213. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  214. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  215. package/resources/graders/grader-models.d.mts +1 -1
  216. package/resources/graders/grader-models.d.ts +1 -1
  217. package/resources/images.d.mts +4 -3
  218. package/resources/images.d.mts.map +1 -1
  219. package/resources/images.d.ts +4 -3
  220. package/resources/images.d.ts.map +1 -1
  221. package/resources/index.d.mts +1 -0
  222. package/resources/index.d.mts.map +1 -1
  223. package/resources/index.d.ts +1 -0
  224. package/resources/index.d.ts.map +1 -1
  225. package/resources/index.js +3 -1
  226. package/resources/index.js.map +1 -1
  227. package/resources/index.mjs +1 -0
  228. package/resources/index.mjs.map +1 -1
  229. package/resources/realtime/realtime.d.mts +10 -0
  230. package/resources/realtime/realtime.d.mts.map +1 -1
  231. package/resources/realtime/realtime.d.ts +10 -0
  232. package/resources/realtime/realtime.d.ts.map +1 -1
  233. package/resources/realtime/realtime.js.map +1 -1
  234. package/resources/realtime/realtime.mjs.map +1 -1
  235. package/resources/responses/responses.d.mts +380 -6
  236. package/resources/responses/responses.d.mts.map +1 -1
  237. package/resources/responses/responses.d.ts +380 -6
  238. package/resources/responses/responses.d.ts.map +1 -1
  239. package/resources/responses/responses.js.map +1 -1
  240. package/resources/responses/responses.mjs.map +1 -1
  241. package/resources/shared.d.mts +5 -0
  242. package/resources/shared.d.mts.map +1 -1
  243. package/resources/shared.d.ts +5 -0
  244. package/resources/shared.d.ts.map +1 -1
  245. package/resources/videos.d.mts +5 -0
  246. package/resources/videos.d.mts.map +1 -1
  247. package/resources/videos.d.ts +5 -0
  248. package/resources/videos.d.ts.map +1 -1
  249. package/src/client.ts +21 -0
  250. package/src/helpers/standard-schema.ts +11 -4
  251. package/src/helpers/zod.ts +4 -0
  252. package/src/lib/ChatCompletionStream.ts +10 -3
  253. package/src/lib/ResponsesParser.ts +8 -0
  254. package/src/lib/agents/agent-session-stream.ts +20 -124
  255. package/src/lib/beta/agents/agent-session-create-stream.ts +87 -1
  256. package/src/lib/beta/agents/function-tool.ts +23 -15
  257. package/src/lib/beta/agents/tool-dispatcher.ts +226 -0
  258. package/src/lib/beta/agents/tool-error.ts +12 -0
  259. package/src/lib/beta/agents/tool-stages.ts +14 -0
  260. package/src/lib/chat-completions/streaming.ts +35 -0
  261. package/src/resources/admin/organization/usage.ts +350 -9
  262. package/src/resources/beta/agents/agents.ts +14 -5
  263. package/src/resources/beta/agents/environments/templates.ts +6 -8
  264. package/src/resources/beta/agents/sessions/index.ts +7 -1
  265. package/src/resources/beta/agents/sessions/sessions.ts +16 -4
  266. package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +2 -2
  267. package/src/resources/beta/agents/sessions/turns/index.ts +4 -0
  268. package/src/resources/beta/agents/sessions/turns/items.ts +79 -0
  269. package/src/resources/beta/agents/sessions/turns/turns.ts +383 -0
  270. package/src/resources/beta/agents/sessions/turns.ts +1 -373
  271. package/src/resources/beta/beta.ts +2 -0
  272. package/src/resources/beta/index.ts +1 -0
  273. package/src/resources/beta/responses/index.ts +1 -0
  274. package/src/resources/beta/responses/responses.ts +470 -5
  275. package/src/resources/chat/completions/completions.ts +65 -18
  276. package/src/resources/completions.ts +1 -1
  277. package/src/resources/decisions.ts +290 -0
  278. package/src/resources/fine-tuning/jobs/jobs.ts +7 -2
  279. package/src/resources/graders/grader-models.ts +1 -1
  280. package/src/resources/images.ts +4 -3
  281. package/src/resources/index.ts +9 -0
  282. package/src/resources/realtime/realtime.ts +10 -0
  283. package/src/resources/responses/api.md +1 -0
  284. package/src/resources/responses/responses.ts +472 -5
  285. package/src/resources/shared.ts +6 -0
  286. package/src/resources/videos.ts +6 -0
  287. package/src/version.ts +1 -1
  288. package/version.d.mts +1 -1
  289. package/version.d.ts +1 -1
  290. package/version.js +1 -1
  291. package/version.mjs +1 -1
@@ -2146,7 +2146,7 @@ export declare namespace BetaResponseComputerToolCall {
2146
2146
  }
2147
2147
  export interface BetaResponseComputerToolCallOutputItem {
2148
2148
  /**
2149
- * The unique ID of the computer call tool output.
2149
+ * The ID of the computer tool call output.
2150
2150
  */
2151
2151
  id: string;
2152
2152
  /**
@@ -2756,6 +2756,11 @@ export declare namespace BetaResponseError {
2756
2756
  * An optional classification; clients must accept additional values.
2757
2757
  */
2758
2758
  error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
2759
+ /**
2760
+ * An opaque target for explicitly continuing this review, or null when
2761
+ * unavailable.
2762
+ */
2763
+ review_target?: string | null;
2759
2764
  /**
2760
2765
  * An optional public continuation instruction.
2761
2766
  */
@@ -9289,7 +9294,7 @@ export interface BetaResponseToolSearchOutputItemParam {
9289
9294
  /**
9290
9295
  * The loaded tool definitions returned by the tool search output.
9291
9296
  */
9292
- tools: Array<BetaTool>;
9297
+ tools: Array<BetaFunctionTool | BetaFileSearchTool | BetaComputerTool | BetaComputerUsePreviewTool | BetaWebSearchTool | BetaResponseToolSearchOutputItemParam.Mcp | BetaResponseToolSearchOutputItemParam.CodeInterpreter | BetaResponseToolSearchOutputItemParam.ProgrammaticToolCalling | BetaResponseToolSearchOutputItemParam.ImageGeneration | BetaResponseToolSearchOutputItemParam.LocalShell | BetaFunctionShellTool | BetaCustomTool | BetaToolSearchOutputNamespaceTool | BetaToolSearchTool | BetaWebSearchPreviewTool | BetaApplyPatchTool>;
9293
9298
  /**
9294
9299
  * The item type. Always `tool_search_output`.
9295
9300
  */
@@ -9316,6 +9321,309 @@ export interface BetaResponseToolSearchOutputItemParam {
9316
9321
  status?: 'in_progress' | 'completed' | 'incomplete' | null;
9317
9322
  }
9318
9323
  export declare namespace BetaResponseToolSearchOutputItemParam {
9324
+ /**
9325
+ * Give the model access to additional tools via remote Model Context Protocol
9326
+ * (MCP) servers.
9327
+ * [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
9328
+ */
9329
+ interface Mcp {
9330
+ /**
9331
+ * A label for this MCP server, used to identify it in tool calls.
9332
+ */
9333
+ server_label: string;
9334
+ /**
9335
+ * The type of the MCP tool. Always `mcp`.
9336
+ */
9337
+ type: 'mcp';
9338
+ /**
9339
+ * The tool invocation context(s).
9340
+ */
9341
+ allowed_callers?: Array<'direct' | 'programmatic'> | null;
9342
+ /**
9343
+ * List of allowed tool names or a filter object.
9344
+ */
9345
+ allowed_tools?: Array<string> | Mcp.McpToolFilter | null;
9346
+ /**
9347
+ * An OAuth access token that can be used with a remote MCP server, either with a
9348
+ * custom MCP server URL or a service connector. Your application must handle the
9349
+ * OAuth authorization flow and provide the token here.
9350
+ */
9351
+ authorization?: string;
9352
+ /**
9353
+ * @deprecated Identifier for service connectors, like those available in ChatGPT.
9354
+ * One of `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more
9355
+ * about service connectors
9356
+ * [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
9357
+ *
9358
+ * This field is deprecated for models released after September 1, 2026. Use
9359
+ * `server_url` to connect to a remote MCP server, or `tunnel_id` to connect
9360
+ * through a Secure MCP Tunnel.
9361
+ *
9362
+ * Currently supported `connector_id` values are:
9363
+ *
9364
+ * - Dropbox: `connector_dropbox`
9365
+ * - Gmail: `connector_gmail`
9366
+ * - Google Calendar: `connector_googlecalendar`
9367
+ * - Google Drive: `connector_googledrive`
9368
+ * - Microsoft Teams: `connector_microsoftteams`
9369
+ * - Outlook Calendar: `connector_outlookcalendar`
9370
+ * - Outlook Email: `connector_outlookemail`
9371
+ * - SharePoint: `connector_sharepoint`
9372
+ */
9373
+ connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
9374
+ /**
9375
+ * Whether this MCP tool is deferred and discovered via tool search.
9376
+ */
9377
+ defer_loading?: boolean;
9378
+ /**
9379
+ * Optional HTTP headers to send to the MCP server. Use for authentication or other
9380
+ * purposes.
9381
+ */
9382
+ headers?: {
9383
+ [key: string]: string;
9384
+ } | null;
9385
+ /**
9386
+ * Specify which of the MCP server's tools require approval.
9387
+ */
9388
+ require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null;
9389
+ /**
9390
+ * Optional description of the MCP server, used to provide more context.
9391
+ */
9392
+ server_description?: string;
9393
+ /**
9394
+ * The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
9395
+ * must be provided.
9396
+ */
9397
+ server_url?: string;
9398
+ /**
9399
+ * The Secure MCP Tunnel ID to use instead of a direct server URL. One of
9400
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided.
9401
+ */
9402
+ tunnel_id?: string;
9403
+ }
9404
+ namespace Mcp {
9405
+ /**
9406
+ * A filter object to specify which tools are allowed.
9407
+ */
9408
+ interface McpToolFilter {
9409
+ /**
9410
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
9411
+ * is
9412
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
9413
+ * it will match this filter.
9414
+ */
9415
+ read_only?: boolean;
9416
+ /**
9417
+ * List of allowed tool names.
9418
+ */
9419
+ tool_names?: Array<string>;
9420
+ }
9421
+ /**
9422
+ * Specify which of the MCP server's tools require approval. Can be `always`,
9423
+ * `never`, or a filter object associated with tools that require approval.
9424
+ */
9425
+ interface McpToolApprovalFilter {
9426
+ /**
9427
+ * A filter object to specify which tools are allowed.
9428
+ */
9429
+ always?: McpToolApprovalFilter.Always;
9430
+ /**
9431
+ * A filter object to specify which tools are allowed.
9432
+ */
9433
+ never?: McpToolApprovalFilter.Never;
9434
+ }
9435
+ namespace McpToolApprovalFilter {
9436
+ /**
9437
+ * A filter object to specify which tools are allowed.
9438
+ */
9439
+ interface Always {
9440
+ /**
9441
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
9442
+ * is
9443
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
9444
+ * it will match this filter.
9445
+ */
9446
+ read_only?: boolean;
9447
+ /**
9448
+ * List of allowed tool names.
9449
+ */
9450
+ tool_names?: Array<string>;
9451
+ }
9452
+ /**
9453
+ * A filter object to specify which tools are allowed.
9454
+ */
9455
+ interface Never {
9456
+ /**
9457
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
9458
+ * is
9459
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
9460
+ * it will match this filter.
9461
+ */
9462
+ read_only?: boolean;
9463
+ /**
9464
+ * List of allowed tool names.
9465
+ */
9466
+ tool_names?: Array<string>;
9467
+ }
9468
+ }
9469
+ }
9470
+ /**
9471
+ * A tool that runs Python code to help generate a response to a prompt.
9472
+ */
9473
+ interface CodeInterpreter {
9474
+ /**
9475
+ * The code interpreter container. Can be a container ID or an object that
9476
+ * specifies uploaded file IDs to make available to your code, along with an
9477
+ * optional `memory_limit` setting.
9478
+ */
9479
+ container: string | CodeInterpreter.CodeInterpreterToolAuto;
9480
+ /**
9481
+ * The type of the code interpreter tool. Always `code_interpreter`.
9482
+ */
9483
+ type: 'code_interpreter';
9484
+ /**
9485
+ * The tool invocation context(s).
9486
+ */
9487
+ allowed_callers?: Array<'direct' | 'programmatic'> | null;
9488
+ }
9489
+ namespace CodeInterpreter {
9490
+ /**
9491
+ * Configuration for a code interpreter container. Optionally specify the IDs of
9492
+ * the files to run the code on.
9493
+ */
9494
+ interface CodeInterpreterToolAuto {
9495
+ /**
9496
+ * Always `auto`.
9497
+ */
9498
+ type: 'auto';
9499
+ /**
9500
+ * An optional list of uploaded files to make available to your code.
9501
+ */
9502
+ file_ids?: Array<string>;
9503
+ /**
9504
+ * The memory limit for the code interpreter container.
9505
+ */
9506
+ memory_limit?: '1g' | '4g' | '16g' | '64g' | null;
9507
+ /**
9508
+ * Network access policy for the container.
9509
+ */
9510
+ network_policy?: ResponsesAPI.BetaContainerNetworkPolicyDisabled | ResponsesAPI.BetaContainerNetworkPolicyAllowlist;
9511
+ }
9512
+ }
9513
+ interface ProgrammaticToolCalling {
9514
+ /**
9515
+ * The type of the tool. Always `programmatic_tool_calling`.
9516
+ */
9517
+ type: 'programmatic_tool_calling';
9518
+ }
9519
+ /**
9520
+ * A tool that generates images using the GPT image models.
9521
+ */
9522
+ interface ImageGeneration {
9523
+ /**
9524
+ * The type of the image generation tool. Always `image_generation`.
9525
+ */
9526
+ type: 'image_generation';
9527
+ /**
9528
+ * Whether to generate a new image or edit an existing image. Default: `auto`.
9529
+ */
9530
+ action?: 'generate' | 'edit' | 'auto';
9531
+ /**
9532
+ * Allows to set transparency for the background of the generated image(s). Must be
9533
+ * one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
9534
+ * the model will automatically determine the best background for the image.
9535
+ *
9536
+ * `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
9537
+ * snapshots, support `opaque` and `transparent` backgrounds. Transparent
9538
+ * backgrounds are available for supported GPT Image models. For `gpt-image-2` and
9539
+ * `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
9540
+ * set the output format to `png` or `webp`.
9541
+ */
9542
+ background?: 'transparent' | 'opaque' | 'auto';
9543
+ /**
9544
+ * Control how much effort the model will exert to match the style and features,
9545
+ * especially facial features, of input images. Supports `high` and `low` on
9546
+ * `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
9547
+ * `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
9548
+ */
9549
+ input_fidelity?: 'high' | 'low' | null;
9550
+ /**
9551
+ * Optional mask for inpainting. Contains `image_url` (string, optional) and
9552
+ * `file_id` (string, optional).
9553
+ */
9554
+ input_image_mask?: ImageGeneration.InputImageMask;
9555
+ /**
9556
+ * The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
9557
+ * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
9558
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
9559
+ * `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
9560
+ * `chatgpt-image-latest`. Default: `gpt-image-1`.
9561
+ */
9562
+ model?: (string & {}) | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-2.5-sunburst' | 'gpt-image-2.5-sunburst-2026-09-08' | 'gpt-image-2.5-flare' | 'gpt-image-2.5-flare-2026-09-08' | 'gpt-image-1.5' | 'chatgpt-image-latest';
9563
+ /**
9564
+ * Moderation level for the generated image. Default: `auto`.
9565
+ */
9566
+ moderation?: 'auto' | 'low';
9567
+ /**
9568
+ * Compression level for the output image. Default: 100.
9569
+ */
9570
+ output_compression?: number;
9571
+ /**
9572
+ * The output format of the generated image. One of `png`, `webp`, or `jpeg`.
9573
+ * Default: `png`.
9574
+ */
9575
+ output_format?: 'png' | 'webp' | 'jpeg';
9576
+ /**
9577
+ * Number of partial images to generate in streaming mode, from 0 (default value)
9578
+ * to 3.
9579
+ */
9580
+ partial_images?: number;
9581
+ /**
9582
+ * The quality of the generated image. The GPT image models support `low`,
9583
+ * `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
9584
+ * including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
9585
+ * `auto`.
9586
+ */
9587
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
9588
+ /**
9589
+ * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
9590
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
9591
+ * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
9592
+ * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
9593
+ * Width and height must both be divisible by 16 and the requested aspect ratio
9594
+ * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
9595
+ * the maximum supported resolution is `3840x2160`. The requested size must also
9596
+ * satisfy the model's current pixel and edge limits. The standard sizes
9597
+ * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
9598
+ * `auto` is supported for models that allow automatic sizing.
9599
+ */
9600
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
9601
+ }
9602
+ namespace ImageGeneration {
9603
+ /**
9604
+ * Optional mask for inpainting. Contains `image_url` (string, optional) and
9605
+ * `file_id` (string, optional).
9606
+ */
9607
+ interface InputImageMask {
9608
+ /**
9609
+ * File ID for the mask image.
9610
+ */
9611
+ file_id?: string;
9612
+ /**
9613
+ * Base64-encoded mask image.
9614
+ */
9615
+ image_url?: string;
9616
+ }
9617
+ }
9618
+ /**
9619
+ * A tool that allows the model to execute shell commands in a local environment.
9620
+ */
9621
+ interface LocalShell {
9622
+ /**
9623
+ * The type of the local shell tool. Always `local_shell`.
9624
+ */
9625
+ type: 'local_shell';
9626
+ }
9319
9627
  /**
9320
9628
  * The agent that produced this item.
9321
9629
  */
@@ -10680,6 +10988,11 @@ export declare namespace BetaResponsesServerEvent {
10680
10988
  * An optional classification; clients must accept additional values.
10681
10989
  */
10682
10990
  error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
10991
+ /**
10992
+ * An opaque target for explicitly continuing this review, or null when
10993
+ * unavailable.
10994
+ */
10995
+ review_target?: string | null;
10683
10996
  /**
10684
10997
  * An optional public continuation instruction.
10685
10998
  */
@@ -10976,9 +11289,10 @@ export declare namespace BetaTool {
10976
11289
  */
10977
11290
  background?: 'transparent' | 'opaque' | 'auto';
10978
11291
  /**
10979
- * Controls fidelity to the original input image(s). This parameter is supported
10980
- * for GPT image models that support input fidelity. `gpt-image-2` and
10981
- * `gpt-image-2-2026-04-21` ignore this parameter.
11292
+ * Control how much effort the model will exert to match the style and features,
11293
+ * especially facial features, of input images. Supports `high` and `low` on
11294
+ * `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
11295
+ * `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
10982
11296
  */
10983
11297
  input_fidelity?: 'high' | 'low' | null;
10984
11298
  /**
@@ -11187,6 +11501,64 @@ export interface BetaToolChoiceTypes {
11187
11501
  */
11188
11502
  type: 'file_search' | 'web_search_preview' | 'computer' | 'computer_use_preview' | 'computer_use' | 'web_search_preview_2025_03_11' | 'image_generation' | 'code_interpreter';
11189
11503
  }
11504
+ /**
11505
+ * Groups function/custom tools under a shared namespace.
11506
+ */
11507
+ export interface BetaToolSearchOutputNamespaceTool {
11508
+ /**
11509
+ * A description of the namespace shown to the model.
11510
+ */
11511
+ description: string;
11512
+ /**
11513
+ * The namespace name used in tool calls (for example, `crm`).
11514
+ */
11515
+ name: string;
11516
+ /**
11517
+ * The function/custom tools loaded inside this namespace.
11518
+ */
11519
+ tools: Array<BetaToolSearchOutputNamespaceTool.Function | BetaCustomTool>;
11520
+ /**
11521
+ * The type of the tool. Always `namespace`.
11522
+ */
11523
+ type: 'namespace';
11524
+ }
11525
+ export declare namespace BetaToolSearchOutputNamespaceTool {
11526
+ interface Function {
11527
+ /**
11528
+ * The name of the loaded function tool.
11529
+ */
11530
+ name: string;
11531
+ type: 'function';
11532
+ /**
11533
+ * The tool invocation context(s).
11534
+ */
11535
+ allowed_callers?: Array<'direct' | 'programmatic'> | null;
11536
+ /**
11537
+ * Whether the tool response can be returned asynchronously versus immediately
11538
+ * returned on next response creation.
11539
+ */
11540
+ async?: boolean;
11541
+ /**
11542
+ * Whether this function should be deferred and discovered via tool search.
11543
+ */
11544
+ defer_loading?: boolean;
11545
+ description?: string | null;
11546
+ /**
11547
+ * A JSON Schema describing the JSON value encoded in string outputs for this
11548
+ * function tool. This does not describe content-array outputs.
11549
+ */
11550
+ output_schema?: {
11551
+ [key: string]: unknown;
11552
+ } | null;
11553
+ parameters?: unknown | null;
11554
+ /**
11555
+ * Whether to enforce strict parameter validation. If omitted, Responses attempts
11556
+ * to use strict validation when the schema is compatible, and falls back to
11557
+ * non-strict validation otherwise.
11558
+ */
11559
+ strict?: boolean | null;
11560
+ }
11561
+ }
11190
11562
  /**
11191
11563
  * Hosted or BYOT tool search configuration for deferred tools.
11192
11564
  */
@@ -12043,7 +12415,7 @@ export declare namespace ResponseCompactParams {
12043
12415
  }
12044
12416
  }
12045
12417
  export declare namespace Responses {
12046
- export { type BetaApplyPatchTool as BetaApplyPatchTool, type BetaCompactedResponse as BetaCompactedResponse, type BetaComputerAction as BetaComputerAction, type BetaComputerActionList as BetaComputerActionList, type BetaComputerTool as BetaComputerTool, type BetaComputerUsePreviewTool as BetaComputerUsePreviewTool, type BetaContainerAuto as BetaContainerAuto, type BetaContainerNetworkPolicyAllowlist as BetaContainerNetworkPolicyAllowlist, type BetaContainerNetworkPolicyDisabled as BetaContainerNetworkPolicyDisabled, type BetaContainerNetworkPolicyDomainSecret as BetaContainerNetworkPolicyDomainSecret, type BetaContainerReference as BetaContainerReference, type BetaCustomTool as BetaCustomTool, type BetaEasyInputMessage as BetaEasyInputMessage, type BetaFileSearchTool as BetaFileSearchTool, type BetaFunctionShellTool as BetaFunctionShellTool, type BetaFunctionTool as BetaFunctionTool, type BetaImageDetail as BetaImageDetail, type BetaInlineSkill as BetaInlineSkill, type BetaInlineSkillSource as BetaInlineSkillSource, type BetaLocalEnvironment as BetaLocalEnvironment, type BetaLocalSkill as BetaLocalSkill, type BetaMcpToolCallError as BetaMcpToolCallError, type BetaNamespaceTool as BetaNamespaceTool, type BetaResponse as BetaResponse, type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall, type BetaResponseApplyPatchToolCallOutput as BetaResponseApplyPatchToolCallOutput, type BetaResponseAudioDeltaEvent as BetaResponseAudioDeltaEvent, type BetaResponseAudioDoneEvent as BetaResponseAudioDoneEvent, type BetaResponseAudioTranscriptDeltaEvent as BetaResponseAudioTranscriptDeltaEvent, type BetaResponseAudioTranscriptDoneEvent as BetaResponseAudioTranscriptDoneEvent, type BetaResponseCodeInterpreterCallCodeDeltaEvent as BetaResponseCodeInterpreterCallCodeDeltaEvent, type BetaResponseCodeInterpreterCallCodeDoneEvent as BetaResponseCodeInterpreterCallCodeDoneEvent, type BetaResponseCodeInterpreterCallCompletedEvent as BetaResponseCodeInterpreterCallCompletedEvent, type BetaResponseCodeInterpreterCallInProgressEvent as BetaResponseCodeInterpreterCallInProgressEvent, type BetaResponseCodeInterpreterCallInterpretingEvent as BetaResponseCodeInterpreterCallInterpretingEvent, type BetaResponseCodeInterpreterToolCall as BetaResponseCodeInterpreterToolCall, type BetaResponseCompactionCompactingEvent as BetaResponseCompactionCompactingEvent, type BetaResponseCompactionItem as BetaResponseCompactionItem, type BetaResponseCompactionItemParam as BetaResponseCompactionItemParam, type BetaResponseCompletedEvent as BetaResponseCompletedEvent, type BetaResponseComputerToolCall as BetaResponseComputerToolCall, type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem, type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot, type BetaResponseConfigurationUpdateItem as BetaResponseConfigurationUpdateItem, type BetaResponseConfigurationUpdateItemParam as BetaResponseConfigurationUpdateItemParam, type BetaResponseContainerReference as BetaResponseContainerReference, type BetaResponseContent as BetaResponseContent, type BetaResponseContentPartAddedEvent as BetaResponseContentPartAddedEvent, type BetaResponseContentPartDoneEvent as BetaResponseContentPartDoneEvent, type BetaResponseConversationParam as BetaResponseConversationParam, type BetaResponseCreatedEvent as BetaResponseCreatedEvent, type BetaResponseCustomToolCall as BetaResponseCustomToolCall, type BetaResponseCustomToolCallInputDeltaEvent as BetaResponseCustomToolCallInputDeltaEvent, type BetaResponseCustomToolCallInputDoneEvent as BetaResponseCustomToolCallInputDoneEvent, type BetaResponseCustomToolCallItem as BetaResponseCustomToolCallItem, type BetaResponseCustomToolCallOutput as BetaResponseCustomToolCallOutput, type BetaResponseCustomToolCallOutputItem as BetaResponseCustomToolCallOutputItem, type BetaResponseError as BetaResponseError, type BetaResponseErrorEvent as BetaResponseErrorEvent, type BetaResponseFailedEvent as BetaResponseFailedEvent, type BetaResponseFileSearchCallCompletedEvent as BetaResponseFileSearchCallCompletedEvent, type BetaResponseFileSearchCallInProgressEvent as BetaResponseFileSearchCallInProgressEvent, type BetaResponseFileSearchCallSearchingEvent as BetaResponseFileSearchCallSearchingEvent, type BetaResponseFileSearchToolCall as BetaResponseFileSearchToolCall, type BetaResponseFormatTextConfig as BetaResponseFormatTextConfig, type BetaResponseFormatTextJSONSchemaConfig as BetaResponseFormatTextJSONSchemaConfig, type BetaResponseFunctionCallArgumentsDeltaEvent as BetaResponseFunctionCallArgumentsDeltaEvent, type BetaResponseFunctionCallArgumentsDoneEvent as BetaResponseFunctionCallArgumentsDoneEvent, type BetaResponseFunctionCallOutputItem as BetaResponseFunctionCallOutputItem, type BetaResponseFunctionCallOutputItemList as BetaResponseFunctionCallOutputItemList, type BetaResponseFunctionShellCallOutputContent as BetaResponseFunctionShellCallOutputContent, type BetaResponseFunctionShellToolCall as BetaResponseFunctionShellToolCall, type BetaResponseFunctionShellToolCallOutput as BetaResponseFunctionShellToolCallOutput, type BetaResponseFunctionToolCall as BetaResponseFunctionToolCall, type BetaResponseFunctionToolCallItem as BetaResponseFunctionToolCallItem, type BetaResponseFunctionToolCallOutputItem as BetaResponseFunctionToolCallOutputItem, type BetaResponseFunctionWebSearch as BetaResponseFunctionWebSearch, type BetaResponseImageGenCallCompletedEvent as BetaResponseImageGenCallCompletedEvent, type BetaResponseImageGenCallGeneratingEvent as BetaResponseImageGenCallGeneratingEvent, type BetaResponseImageGenCallInProgressEvent as BetaResponseImageGenCallInProgressEvent, type BetaResponseImageGenCallPartialImageEvent as BetaResponseImageGenCallPartialImageEvent, type BetaResponseInProgressEvent as BetaResponseInProgressEvent, type BetaResponseIncludable as BetaResponseIncludable, type BetaResponseIncompleteEvent as BetaResponseIncompleteEvent, type BetaResponseInjectCreatedEvent as BetaResponseInjectCreatedEvent, type BetaResponseInjectEvent as BetaResponseInjectEvent, type BetaResponseInjectFailedEvent as BetaResponseInjectFailedEvent, type BetaResponseInput as BetaResponseInput, type BetaResponseInputAudio as BetaResponseInputAudio, type BetaResponseInputContent as BetaResponseInputContent, type BetaResponseInputFile as BetaResponseInputFile, type BetaResponseInputFileContent as BetaResponseInputFileContent, type BetaResponseInputImage as BetaResponseInputImage, type BetaResponseInputImageContent as BetaResponseInputImageContent, type BetaResponseInputItem as BetaResponseInputItem, type BetaResponseInputMessageContentList as BetaResponseInputMessageContentList, type BetaResponseInputMessageItem as BetaResponseInputMessageItem, type BetaResponseInputText as BetaResponseInputText, type BetaResponseInputTextContent as BetaResponseInputTextContent, type BetaResponseItem as BetaResponseItem, type BetaResponseLocalEnvironment as BetaResponseLocalEnvironment, type BetaResponseMcpCallArgumentsDeltaEvent as BetaResponseMcpCallArgumentsDeltaEvent, type BetaResponseMcpCallArgumentsDoneEvent as BetaResponseMcpCallArgumentsDoneEvent, type BetaResponseMcpCallCompletedEvent as BetaResponseMcpCallCompletedEvent, type BetaResponseMcpCallFailedEvent as BetaResponseMcpCallFailedEvent, type BetaResponseMcpCallInProgressEvent as BetaResponseMcpCallInProgressEvent, type BetaResponseMcpListToolsCompletedEvent as BetaResponseMcpListToolsCompletedEvent, type BetaResponseMcpListToolsFailedEvent as BetaResponseMcpListToolsFailedEvent, type BetaResponseMcpListToolsInProgressEvent as BetaResponseMcpListToolsInProgressEvent, type BetaResponseOutputAudio as BetaResponseOutputAudio, type BetaResponseOutputItem as BetaResponseOutputItem, type BetaResponseOutputItemAddedEvent as BetaResponseOutputItemAddedEvent, type BetaResponseOutputItemDoneEvent as BetaResponseOutputItemDoneEvent, type BetaResponseOutputMessage as BetaResponseOutputMessage, type BetaResponseOutputRefusal as BetaResponseOutputRefusal, type BetaResponseOutputText as BetaResponseOutputText, type BetaResponseOutputTextAnnotationAddedEvent as BetaResponseOutputTextAnnotationAddedEvent, type BetaResponsePrompt as BetaResponsePrompt, type BetaResponseQueuedEvent as BetaResponseQueuedEvent, type BetaResponseReasoningItem as BetaResponseReasoningItem, type BetaResponseReasoningSummaryPartAddedEvent as BetaResponseReasoningSummaryPartAddedEvent, type BetaResponseReasoningSummaryPartDoneEvent as BetaResponseReasoningSummaryPartDoneEvent, type BetaResponseReasoningSummaryTextDeltaEvent as BetaResponseReasoningSummaryTextDeltaEvent, type BetaResponseReasoningSummaryTextDoneEvent as BetaResponseReasoningSummaryTextDoneEvent, type BetaResponseReasoningTextDeltaEvent as BetaResponseReasoningTextDeltaEvent, type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent, type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent, type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent, type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent, type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent, type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent, type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent, type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent, type BetaResponseStatus as BetaResponseStatus, type BetaResponseSteerAcceptedEvent as BetaResponseSteerAcceptedEvent, type BetaResponseSteerErrorCode as BetaResponseSteerErrorCode, type BetaResponseSteerEvent as BetaResponseSteerEvent, type BetaResponseSteerFailedEvent as BetaResponseSteerFailedEvent, type BetaResponseSteerInput as BetaResponseSteerInput, type BetaResponseSteerInputContent as BetaResponseSteerInputContent, type BetaResponseSteerPendingEvent as BetaResponseSteerPendingEvent, type BetaResponseSteerPendingReason as BetaResponseSteerPendingReason, type BetaResponseSteerRequiredInput as BetaResponseSteerRequiredInput, type BetaResponseStreamEvent as BetaResponseStreamEvent, type BetaResponseTextConfig as BetaResponseTextConfig, type BetaResponseTextDeltaEvent as BetaResponseTextDeltaEvent, type BetaResponseTextDoneEvent as BetaResponseTextDoneEvent, type BetaResponseToolSearchCall as BetaResponseToolSearchCall, type BetaResponseToolSearchOutputItem as BetaResponseToolSearchOutputItem, type BetaResponseToolSearchOutputItemParam as BetaResponseToolSearchOutputItemParam, type BetaResponseUsage as BetaResponseUsage, type BetaResponseWebSearchCallCompletedEvent as BetaResponseWebSearchCallCompletedEvent, type BetaResponseWebSearchCallInProgressEvent as BetaResponseWebSearchCallInProgressEvent, type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent, type BetaResponsesClientEvent as BetaResponsesClientEvent, type BetaResponsesServerEvent as BetaResponsesServerEvent, type BetaServiceTier as BetaServiceTier, type BetaSkillReference as BetaSkillReference, type BetaTool as BetaTool, type BetaToolChoiceAllowed as BetaToolChoiceAllowed, type BetaToolChoiceApplyPatch as BetaToolChoiceApplyPatch, type BetaToolChoiceCustom as BetaToolChoiceCustom, type BetaToolChoiceFunction as BetaToolChoiceFunction, type BetaToolChoiceMcp as BetaToolChoiceMcp, type BetaToolChoiceOptions as BetaToolChoiceOptions, type BetaToolChoiceShell as BetaToolChoiceShell, type BetaToolChoiceTypes as BetaToolChoiceTypes, type BetaToolSearchTool as BetaToolSearchTool, type BetaWebSearchPreviewTool as BetaWebSearchPreviewTool, type BetaWebSearchTool as BetaWebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, type ResponseDeleteParams as ResponseDeleteParams, type ResponseCancelParams as ResponseCancelParams, type ResponseCompactParams as ResponseCompactParams, };
12418
+ export { type BetaApplyPatchTool as BetaApplyPatchTool, type BetaCompactedResponse as BetaCompactedResponse, type BetaComputerAction as BetaComputerAction, type BetaComputerActionList as BetaComputerActionList, type BetaComputerTool as BetaComputerTool, type BetaComputerUsePreviewTool as BetaComputerUsePreviewTool, type BetaContainerAuto as BetaContainerAuto, type BetaContainerNetworkPolicyAllowlist as BetaContainerNetworkPolicyAllowlist, type BetaContainerNetworkPolicyDisabled as BetaContainerNetworkPolicyDisabled, type BetaContainerNetworkPolicyDomainSecret as BetaContainerNetworkPolicyDomainSecret, type BetaContainerReference as BetaContainerReference, type BetaCustomTool as BetaCustomTool, type BetaEasyInputMessage as BetaEasyInputMessage, type BetaFileSearchTool as BetaFileSearchTool, type BetaFunctionShellTool as BetaFunctionShellTool, type BetaFunctionTool as BetaFunctionTool, type BetaImageDetail as BetaImageDetail, type BetaInlineSkill as BetaInlineSkill, type BetaInlineSkillSource as BetaInlineSkillSource, type BetaLocalEnvironment as BetaLocalEnvironment, type BetaLocalSkill as BetaLocalSkill, type BetaMcpToolCallError as BetaMcpToolCallError, type BetaNamespaceTool as BetaNamespaceTool, type BetaResponse as BetaResponse, type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall, type BetaResponseApplyPatchToolCallOutput as BetaResponseApplyPatchToolCallOutput, type BetaResponseAudioDeltaEvent as BetaResponseAudioDeltaEvent, type BetaResponseAudioDoneEvent as BetaResponseAudioDoneEvent, type BetaResponseAudioTranscriptDeltaEvent as BetaResponseAudioTranscriptDeltaEvent, type BetaResponseAudioTranscriptDoneEvent as BetaResponseAudioTranscriptDoneEvent, type BetaResponseCodeInterpreterCallCodeDeltaEvent as BetaResponseCodeInterpreterCallCodeDeltaEvent, type BetaResponseCodeInterpreterCallCodeDoneEvent as BetaResponseCodeInterpreterCallCodeDoneEvent, type BetaResponseCodeInterpreterCallCompletedEvent as BetaResponseCodeInterpreterCallCompletedEvent, type BetaResponseCodeInterpreterCallInProgressEvent as BetaResponseCodeInterpreterCallInProgressEvent, type BetaResponseCodeInterpreterCallInterpretingEvent as BetaResponseCodeInterpreterCallInterpretingEvent, type BetaResponseCodeInterpreterToolCall as BetaResponseCodeInterpreterToolCall, type BetaResponseCompactionCompactingEvent as BetaResponseCompactionCompactingEvent, type BetaResponseCompactionItem as BetaResponseCompactionItem, type BetaResponseCompactionItemParam as BetaResponseCompactionItemParam, type BetaResponseCompletedEvent as BetaResponseCompletedEvent, type BetaResponseComputerToolCall as BetaResponseComputerToolCall, type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem, type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot, type BetaResponseConfigurationUpdateItem as BetaResponseConfigurationUpdateItem, type BetaResponseConfigurationUpdateItemParam as BetaResponseConfigurationUpdateItemParam, type BetaResponseContainerReference as BetaResponseContainerReference, type BetaResponseContent as BetaResponseContent, type BetaResponseContentPartAddedEvent as BetaResponseContentPartAddedEvent, type BetaResponseContentPartDoneEvent as BetaResponseContentPartDoneEvent, type BetaResponseConversationParam as BetaResponseConversationParam, type BetaResponseCreatedEvent as BetaResponseCreatedEvent, type BetaResponseCustomToolCall as BetaResponseCustomToolCall, type BetaResponseCustomToolCallInputDeltaEvent as BetaResponseCustomToolCallInputDeltaEvent, type BetaResponseCustomToolCallInputDoneEvent as BetaResponseCustomToolCallInputDoneEvent, type BetaResponseCustomToolCallItem as BetaResponseCustomToolCallItem, type BetaResponseCustomToolCallOutput as BetaResponseCustomToolCallOutput, type BetaResponseCustomToolCallOutputItem as BetaResponseCustomToolCallOutputItem, type BetaResponseError as BetaResponseError, type BetaResponseErrorEvent as BetaResponseErrorEvent, type BetaResponseFailedEvent as BetaResponseFailedEvent, type BetaResponseFileSearchCallCompletedEvent as BetaResponseFileSearchCallCompletedEvent, type BetaResponseFileSearchCallInProgressEvent as BetaResponseFileSearchCallInProgressEvent, type BetaResponseFileSearchCallSearchingEvent as BetaResponseFileSearchCallSearchingEvent, type BetaResponseFileSearchToolCall as BetaResponseFileSearchToolCall, type BetaResponseFormatTextConfig as BetaResponseFormatTextConfig, type BetaResponseFormatTextJSONSchemaConfig as BetaResponseFormatTextJSONSchemaConfig, type BetaResponseFunctionCallArgumentsDeltaEvent as BetaResponseFunctionCallArgumentsDeltaEvent, type BetaResponseFunctionCallArgumentsDoneEvent as BetaResponseFunctionCallArgumentsDoneEvent, type BetaResponseFunctionCallOutputItem as BetaResponseFunctionCallOutputItem, type BetaResponseFunctionCallOutputItemList as BetaResponseFunctionCallOutputItemList, type BetaResponseFunctionShellCallOutputContent as BetaResponseFunctionShellCallOutputContent, type BetaResponseFunctionShellToolCall as BetaResponseFunctionShellToolCall, type BetaResponseFunctionShellToolCallOutput as BetaResponseFunctionShellToolCallOutput, type BetaResponseFunctionToolCall as BetaResponseFunctionToolCall, type BetaResponseFunctionToolCallItem as BetaResponseFunctionToolCallItem, type BetaResponseFunctionToolCallOutputItem as BetaResponseFunctionToolCallOutputItem, type BetaResponseFunctionWebSearch as BetaResponseFunctionWebSearch, type BetaResponseImageGenCallCompletedEvent as BetaResponseImageGenCallCompletedEvent, type BetaResponseImageGenCallGeneratingEvent as BetaResponseImageGenCallGeneratingEvent, type BetaResponseImageGenCallInProgressEvent as BetaResponseImageGenCallInProgressEvent, type BetaResponseImageGenCallPartialImageEvent as BetaResponseImageGenCallPartialImageEvent, type BetaResponseInProgressEvent as BetaResponseInProgressEvent, type BetaResponseIncludable as BetaResponseIncludable, type BetaResponseIncompleteEvent as BetaResponseIncompleteEvent, type BetaResponseInjectCreatedEvent as BetaResponseInjectCreatedEvent, type BetaResponseInjectEvent as BetaResponseInjectEvent, type BetaResponseInjectFailedEvent as BetaResponseInjectFailedEvent, type BetaResponseInput as BetaResponseInput, type BetaResponseInputAudio as BetaResponseInputAudio, type BetaResponseInputContent as BetaResponseInputContent, type BetaResponseInputFile as BetaResponseInputFile, type BetaResponseInputFileContent as BetaResponseInputFileContent, type BetaResponseInputImage as BetaResponseInputImage, type BetaResponseInputImageContent as BetaResponseInputImageContent, type BetaResponseInputItem as BetaResponseInputItem, type BetaResponseInputMessageContentList as BetaResponseInputMessageContentList, type BetaResponseInputMessageItem as BetaResponseInputMessageItem, type BetaResponseInputText as BetaResponseInputText, type BetaResponseInputTextContent as BetaResponseInputTextContent, type BetaResponseItem as BetaResponseItem, type BetaResponseLocalEnvironment as BetaResponseLocalEnvironment, type BetaResponseMcpCallArgumentsDeltaEvent as BetaResponseMcpCallArgumentsDeltaEvent, type BetaResponseMcpCallArgumentsDoneEvent as BetaResponseMcpCallArgumentsDoneEvent, type BetaResponseMcpCallCompletedEvent as BetaResponseMcpCallCompletedEvent, type BetaResponseMcpCallFailedEvent as BetaResponseMcpCallFailedEvent, type BetaResponseMcpCallInProgressEvent as BetaResponseMcpCallInProgressEvent, type BetaResponseMcpListToolsCompletedEvent as BetaResponseMcpListToolsCompletedEvent, type BetaResponseMcpListToolsFailedEvent as BetaResponseMcpListToolsFailedEvent, type BetaResponseMcpListToolsInProgressEvent as BetaResponseMcpListToolsInProgressEvent, type BetaResponseOutputAudio as BetaResponseOutputAudio, type BetaResponseOutputItem as BetaResponseOutputItem, type BetaResponseOutputItemAddedEvent as BetaResponseOutputItemAddedEvent, type BetaResponseOutputItemDoneEvent as BetaResponseOutputItemDoneEvent, type BetaResponseOutputMessage as BetaResponseOutputMessage, type BetaResponseOutputRefusal as BetaResponseOutputRefusal, type BetaResponseOutputText as BetaResponseOutputText, type BetaResponseOutputTextAnnotationAddedEvent as BetaResponseOutputTextAnnotationAddedEvent, type BetaResponsePrompt as BetaResponsePrompt, type BetaResponseQueuedEvent as BetaResponseQueuedEvent, type BetaResponseReasoningItem as BetaResponseReasoningItem, type BetaResponseReasoningSummaryPartAddedEvent as BetaResponseReasoningSummaryPartAddedEvent, type BetaResponseReasoningSummaryPartDoneEvent as BetaResponseReasoningSummaryPartDoneEvent, type BetaResponseReasoningSummaryTextDeltaEvent as BetaResponseReasoningSummaryTextDeltaEvent, type BetaResponseReasoningSummaryTextDoneEvent as BetaResponseReasoningSummaryTextDoneEvent, type BetaResponseReasoningTextDeltaEvent as BetaResponseReasoningTextDeltaEvent, type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent, type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent, type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent, type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent, type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent, type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent, type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent, type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent, type BetaResponseStatus as BetaResponseStatus, type BetaResponseSteerAcceptedEvent as BetaResponseSteerAcceptedEvent, type BetaResponseSteerErrorCode as BetaResponseSteerErrorCode, type BetaResponseSteerEvent as BetaResponseSteerEvent, type BetaResponseSteerFailedEvent as BetaResponseSteerFailedEvent, type BetaResponseSteerInput as BetaResponseSteerInput, type BetaResponseSteerInputContent as BetaResponseSteerInputContent, type BetaResponseSteerPendingEvent as BetaResponseSteerPendingEvent, type BetaResponseSteerPendingReason as BetaResponseSteerPendingReason, type BetaResponseSteerRequiredInput as BetaResponseSteerRequiredInput, type BetaResponseStreamEvent as BetaResponseStreamEvent, type BetaResponseTextConfig as BetaResponseTextConfig, type BetaResponseTextDeltaEvent as BetaResponseTextDeltaEvent, type BetaResponseTextDoneEvent as BetaResponseTextDoneEvent, type BetaResponseToolSearchCall as BetaResponseToolSearchCall, type BetaResponseToolSearchOutputItem as BetaResponseToolSearchOutputItem, type BetaResponseToolSearchOutputItemParam as BetaResponseToolSearchOutputItemParam, type BetaResponseUsage as BetaResponseUsage, type BetaResponseWebSearchCallCompletedEvent as BetaResponseWebSearchCallCompletedEvent, type BetaResponseWebSearchCallInProgressEvent as BetaResponseWebSearchCallInProgressEvent, type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent, type BetaResponsesClientEvent as BetaResponsesClientEvent, type BetaResponsesServerEvent as BetaResponsesServerEvent, type BetaServiceTier as BetaServiceTier, type BetaSkillReference as BetaSkillReference, type BetaTool as BetaTool, type BetaToolChoiceAllowed as BetaToolChoiceAllowed, type BetaToolChoiceApplyPatch as BetaToolChoiceApplyPatch, type BetaToolChoiceCustom as BetaToolChoiceCustom, type BetaToolChoiceFunction as BetaToolChoiceFunction, type BetaToolChoiceMcp as BetaToolChoiceMcp, type BetaToolChoiceOptions as BetaToolChoiceOptions, type BetaToolChoiceShell as BetaToolChoiceShell, type BetaToolChoiceTypes as BetaToolChoiceTypes, type BetaToolSearchOutputNamespaceTool as BetaToolSearchOutputNamespaceTool, type BetaToolSearchTool as BetaToolSearchTool, type BetaWebSearchPreviewTool as BetaWebSearchPreviewTool, type BetaWebSearchTool as BetaWebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, type ResponseDeleteParams as ResponseDeleteParams, type ResponseCancelParams as ResponseCancelParams, type ResponseCompactParams as ResponseCompactParams, };
12047
12419
  export { InputItems as InputItems, type BetaResponseItemList as BetaResponseItemList, type InputItemListParams as InputItemListParams, };
12048
12420
  export { InputTokens as InputTokens, type InputTokenCountResponse as InputTokenCountResponse, type InputTokenCountParams as InputTokenCountParams, };
12049
12421
  }