openai 7.9.0 → 7.12.1

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 (522) hide show
  1. package/CHANGELOG.md +208 -0
  2. package/README.md +7 -5
  3. package/_vendor/partial-json-parser/parser.d.mts.map +1 -1
  4. package/_vendor/partial-json-parser/parser.d.ts.map +1 -1
  5. package/_vendor/partial-json-parser/parser.js +4 -3
  6. package/_vendor/partial-json-parser/parser.js.map +1 -1
  7. package/_vendor/partial-json-parser/parser.mjs +4 -3
  8. package/_vendor/partial-json-parser/parser.mjs.map +1 -1
  9. package/_vendor/zod-to-json-schema/parsers/string.js +1 -1
  10. package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -1
  11. package/_vendor/zod-to-json-schema/parsers/string.mjs +1 -1
  12. package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -1
  13. package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -1
  14. package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
  15. package/_vendor/zod-to-json-schema/parsers/tuple.js +19 -12
  16. package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -1
  17. package/_vendor/zod-to-json-schema/parsers/tuple.mjs +19 -12
  18. package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -1
  19. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -1
  20. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -1
  21. package/_vendor/zod-to-json-schema/zodToJsonSchema.js +6 -2
  22. package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -1
  23. package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +6 -2
  24. package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -1
  25. package/auth/subject-token-providers.d.mts.map +1 -1
  26. package/auth/subject-token-providers.d.ts.map +1 -1
  27. package/auth/subject-token-providers.js +10 -5
  28. package/auth/subject-token-providers.js.map +1 -1
  29. package/auth/subject-token-providers.mjs +10 -5
  30. package/auth/subject-token-providers.mjs.map +1 -1
  31. package/auth/workload-identity-auth.d.mts.map +1 -1
  32. package/auth/workload-identity-auth.d.ts.map +1 -1
  33. package/auth/workload-identity-auth.js +21 -11
  34. package/auth/workload-identity-auth.js.map +1 -1
  35. package/auth/workload-identity-auth.mjs +21 -11
  36. package/auth/workload-identity-auth.mjs.map +1 -1
  37. package/azure.d.mts.map +1 -1
  38. package/azure.d.ts.map +1 -1
  39. package/azure.js +31 -2
  40. package/azure.js.map +1 -1
  41. package/azure.mjs +32 -3
  42. package/azure.mjs.map +1 -1
  43. package/beta/realtime/internal-base.d.mts.map +1 -1
  44. package/beta/realtime/internal-base.d.ts.map +1 -1
  45. package/beta/realtime/internal-base.js +3 -2
  46. package/beta/realtime/internal-base.js.map +1 -1
  47. package/beta/realtime/internal-base.mjs +3 -2
  48. package/beta/realtime/internal-base.mjs.map +1 -1
  49. package/beta/realtime/websocket.d.mts +2 -0
  50. package/beta/realtime/websocket.d.mts.map +1 -1
  51. package/beta/realtime/websocket.d.ts +2 -0
  52. package/beta/realtime/websocket.d.ts.map +1 -1
  53. package/beta/realtime/websocket.js +12 -7
  54. package/beta/realtime/websocket.js.map +1 -1
  55. package/beta/realtime/websocket.mjs +12 -7
  56. package/beta/realtime/websocket.mjs.map +1 -1
  57. package/beta/realtime/ws.d.mts +2 -0
  58. package/beta/realtime/ws.d.mts.map +1 -1
  59. package/beta/realtime/ws.d.ts +2 -0
  60. package/beta/realtime/ws.d.ts.map +1 -1
  61. package/beta/realtime/ws.js +7 -5
  62. package/beta/realtime/ws.js.map +1 -1
  63. package/beta/realtime/ws.mjs +7 -5
  64. package/beta/realtime/ws.mjs.map +1 -1
  65. package/client.d.mts +12 -1
  66. package/client.d.mts.map +1 -1
  67. package/client.d.ts +12 -1
  68. package/client.d.ts.map +1 -1
  69. package/client.js +20 -4
  70. package/client.js.map +1 -1
  71. package/client.mjs +20 -4
  72. package/client.mjs.map +1 -1
  73. package/core/EventEmitter.d.mts +2 -1
  74. package/core/EventEmitter.d.mts.map +1 -1
  75. package/core/EventEmitter.d.ts +2 -1
  76. package/core/EventEmitter.d.ts.map +1 -1
  77. package/core/EventEmitter.js +2 -1
  78. package/core/EventEmitter.js.map +1 -1
  79. package/core/EventEmitter.mjs +2 -1
  80. package/core/EventEmitter.mjs.map +1 -1
  81. package/core/pagination.js +1 -1
  82. package/core/pagination.js.map +1 -1
  83. package/core/pagination.mjs +1 -1
  84. package/core/pagination.mjs.map +1 -1
  85. package/core/streaming.d.mts +8 -0
  86. package/core/streaming.d.mts.map +1 -1
  87. package/core/streaming.d.ts +8 -0
  88. package/core/streaming.d.ts.map +1 -1
  89. package/core/streaming.js +68 -15
  90. package/core/streaming.js.map +1 -1
  91. package/core/streaming.mjs +68 -15
  92. package/core/streaming.mjs.map +1 -1
  93. package/helpers/audio.d.mts +1 -1
  94. package/helpers/audio.d.mts.map +1 -1
  95. package/helpers/audio.d.ts +1 -1
  96. package/helpers/audio.d.ts.map +1 -1
  97. package/helpers/audio.js +25 -5
  98. package/helpers/audio.js.map +1 -1
  99. package/helpers/audio.mjs +25 -5
  100. package/helpers/audio.mjs.map +1 -1
  101. package/helpers/zod.d.mts +28 -15
  102. package/helpers/zod.d.mts.map +1 -1
  103. package/helpers/zod.d.ts +28 -15
  104. package/helpers/zod.d.ts.map +1 -1
  105. package/helpers/zod.js +30 -23
  106. package/helpers/zod.js.map +1 -1
  107. package/helpers/zod.mjs +30 -23
  108. package/helpers/zod.mjs.map +1 -1
  109. package/index.js +4 -5
  110. package/internal/bedrock.d.mts +11 -0
  111. package/internal/bedrock.d.mts.map +1 -1
  112. package/internal/bedrock.d.ts +11 -0
  113. package/internal/bedrock.d.ts.map +1 -1
  114. package/internal/bedrock.js +71 -55
  115. package/internal/bedrock.js.map +1 -1
  116. package/internal/bedrock.mjs +70 -55
  117. package/internal/bedrock.mjs.map +1 -1
  118. package/internal/detect-platform.js +2 -2
  119. package/internal/detect-platform.js.map +1 -1
  120. package/internal/detect-platform.mjs +2 -2
  121. package/internal/detect-platform.mjs.map +1 -1
  122. package/internal/errors.d.mts.map +1 -1
  123. package/internal/errors.d.ts.map +1 -1
  124. package/internal/errors.js +3 -2
  125. package/internal/errors.js.map +1 -1
  126. package/internal/errors.mjs +3 -2
  127. package/internal/errors.mjs.map +1 -1
  128. package/internal/headers.d.mts.map +1 -1
  129. package/internal/headers.d.ts.map +1 -1
  130. package/internal/headers.js +4 -5
  131. package/internal/headers.js.map +1 -1
  132. package/internal/headers.mjs +4 -5
  133. package/internal/headers.mjs.map +1 -1
  134. package/internal/parse.js +1 -1
  135. package/internal/parse.js.map +1 -1
  136. package/internal/parse.mjs +1 -1
  137. package/internal/parse.mjs.map +1 -1
  138. package/internal/realtime-credentials.d.mts +15 -0
  139. package/internal/realtime-credentials.d.mts.map +1 -0
  140. package/internal/realtime-credentials.d.ts +15 -0
  141. package/internal/realtime-credentials.d.ts.map +1 -0
  142. package/internal/realtime-credentials.js +23 -0
  143. package/internal/realtime-credentials.js.map +1 -0
  144. package/internal/realtime-credentials.mjs +19 -0
  145. package/internal/realtime-credentials.mjs.map +1 -0
  146. package/internal/responses/response-accumulator.d.mts.map +1 -1
  147. package/internal/responses/response-accumulator.d.ts.map +1 -1
  148. package/internal/responses/response-accumulator.js +2 -1
  149. package/internal/responses/response-accumulator.js.map +1 -1
  150. package/internal/responses/response-accumulator.mjs +2 -1
  151. package/internal/responses/response-accumulator.mjs.map +1 -1
  152. package/internal/to-file.d.mts +2 -1
  153. package/internal/to-file.d.mts.map +1 -1
  154. package/internal/to-file.d.ts +2 -1
  155. package/internal/to-file.d.ts.map +1 -1
  156. package/internal/to-file.js +5 -4
  157. package/internal/to-file.js.map +1 -1
  158. package/internal/to-file.mjs +6 -5
  159. package/internal/to-file.mjs.map +1 -1
  160. package/internal/types.d.mts +3 -3
  161. package/internal/types.d.mts.map +1 -1
  162. package/internal/types.d.ts +3 -3
  163. package/internal/types.d.ts.map +1 -1
  164. package/internal/uploads.d.mts +2 -0
  165. package/internal/uploads.d.mts.map +1 -1
  166. package/internal/uploads.d.ts +2 -0
  167. package/internal/uploads.d.ts.map +1 -1
  168. package/internal/uploads.js +12 -1
  169. package/internal/uploads.js.map +1 -1
  170. package/internal/uploads.mjs +11 -1
  171. package/internal/uploads.mjs.map +1 -1
  172. package/internal/utils/base64.d.mts.map +1 -1
  173. package/internal/utils/base64.d.ts.map +1 -1
  174. package/internal/utils/base64.js +3 -0
  175. package/internal/utils/base64.js.map +1 -1
  176. package/internal/utils/base64.mjs +3 -0
  177. package/internal/utils/base64.mjs.map +1 -1
  178. package/lib/AbstractChatCompletionRunner.d.mts +1 -1
  179. package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
  180. package/lib/AbstractChatCompletionRunner.d.ts +1 -1
  181. package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
  182. package/lib/AbstractChatCompletionRunner.js +31 -9
  183. package/lib/AbstractChatCompletionRunner.js.map +1 -1
  184. package/lib/AbstractChatCompletionRunner.mjs +31 -9
  185. package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
  186. package/lib/AssistantStream.d.mts +4 -1
  187. package/lib/AssistantStream.d.mts.map +1 -1
  188. package/lib/AssistantStream.d.ts +4 -1
  189. package/lib/AssistantStream.d.ts.map +1 -1
  190. package/lib/AssistantStream.js +23 -8
  191. package/lib/AssistantStream.js.map +1 -1
  192. package/lib/AssistantStream.mjs +24 -9
  193. package/lib/AssistantStream.mjs.map +1 -1
  194. package/lib/ChatCompletionRunner.d.mts +6 -3
  195. package/lib/ChatCompletionRunner.d.mts.map +1 -1
  196. package/lib/ChatCompletionRunner.d.ts +6 -3
  197. package/lib/ChatCompletionRunner.d.ts.map +1 -1
  198. package/lib/ChatCompletionRunner.js +7 -4
  199. package/lib/ChatCompletionRunner.js.map +1 -1
  200. package/lib/ChatCompletionRunner.mjs +7 -4
  201. package/lib/ChatCompletionRunner.mjs.map +1 -1
  202. package/lib/ChatCompletionStream.d.mts.map +1 -1
  203. package/lib/ChatCompletionStream.d.ts.map +1 -1
  204. package/lib/ChatCompletionStream.js +6 -0
  205. package/lib/ChatCompletionStream.js.map +1 -1
  206. package/lib/ChatCompletionStream.mjs +7 -1
  207. package/lib/ChatCompletionStream.mjs.map +1 -1
  208. package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
  209. package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
  210. package/lib/ChatCompletionStreamingRunner.js +1 -0
  211. package/lib/ChatCompletionStreamingRunner.js.map +1 -1
  212. package/lib/ChatCompletionStreamingRunner.mjs +1 -0
  213. package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
  214. package/lib/EventEmitter.d.mts +3 -1
  215. package/lib/EventEmitter.d.mts.map +1 -1
  216. package/lib/EventEmitter.d.ts +3 -1
  217. package/lib/EventEmitter.d.ts.map +1 -1
  218. package/lib/EventEmitter.js +2 -1
  219. package/lib/EventEmitter.js.map +1 -1
  220. package/lib/EventEmitter.mjs +2 -1
  221. package/lib/EventEmitter.mjs.map +1 -1
  222. package/lib/EventStream.d.mts +2 -1
  223. package/lib/EventStream.d.mts.map +1 -1
  224. package/lib/EventStream.d.ts +2 -1
  225. package/lib/EventStream.d.ts.map +1 -1
  226. package/lib/EventStream.js +99 -46
  227. package/lib/EventStream.js.map +1 -1
  228. package/lib/EventStream.mjs +99 -46
  229. package/lib/EventStream.mjs.map +1 -1
  230. package/lib/ResponsesParser.d.mts +5 -4
  231. package/lib/ResponsesParser.d.mts.map +1 -1
  232. package/lib/ResponsesParser.d.ts +5 -4
  233. package/lib/ResponsesParser.d.ts.map +1 -1
  234. package/lib/ResponsesParser.js +21 -7
  235. package/lib/ResponsesParser.js.map +1 -1
  236. package/lib/ResponsesParser.mjs +21 -7
  237. package/lib/ResponsesParser.mjs.map +1 -1
  238. package/lib/RunnableFunction.d.mts +2 -2
  239. package/lib/RunnableFunction.d.mts.map +1 -1
  240. package/lib/RunnableFunction.d.ts +2 -2
  241. package/lib/RunnableFunction.d.ts.map +1 -1
  242. package/lib/embeddings.d.mts.map +1 -1
  243. package/lib/embeddings.d.ts.map +1 -1
  244. package/lib/embeddings.js +18 -12
  245. package/lib/embeddings.js.map +1 -1
  246. package/lib/embeddings.mjs +18 -12
  247. package/lib/embeddings.mjs.map +1 -1
  248. package/lib/file-processing.d.mts +3 -2
  249. package/lib/file-processing.d.mts.map +1 -1
  250. package/lib/file-processing.d.ts +3 -2
  251. package/lib/file-processing.d.ts.map +1 -1
  252. package/lib/file-processing.js +5 -4
  253. package/lib/file-processing.js.map +1 -1
  254. package/lib/file-processing.mjs +5 -4
  255. package/lib/file-processing.mjs.map +1 -1
  256. package/lib/parser.d.mts +16 -4
  257. package/lib/parser.d.mts.map +1 -1
  258. package/lib/parser.d.ts +16 -4
  259. package/lib/parser.d.ts.map +1 -1
  260. package/lib/parser.js +1 -1
  261. package/lib/parser.js.map +1 -1
  262. package/lib/parser.mjs +1 -1
  263. package/lib/parser.mjs.map +1 -1
  264. package/lib/polling.d.mts +2 -2
  265. package/lib/polling.d.mts.map +1 -1
  266. package/lib/polling.d.ts +2 -2
  267. package/lib/polling.d.ts.map +1 -1
  268. package/lib/polling.js +5 -4
  269. package/lib/polling.js.map +1 -1
  270. package/lib/polling.mjs +5 -4
  271. package/lib/polling.mjs.map +1 -1
  272. package/lib/responses/EventTypes.d.mts +2 -2
  273. package/lib/responses/EventTypes.d.mts.map +1 -1
  274. package/lib/responses/EventTypes.d.ts +2 -2
  275. package/lib/responses/EventTypes.d.ts.map +1 -1
  276. package/lib/responses/ResponseInputItems.d.mts +3 -2
  277. package/lib/responses/ResponseInputItems.d.mts.map +1 -1
  278. package/lib/responses/ResponseInputItems.d.ts +3 -2
  279. package/lib/responses/ResponseInputItems.d.ts.map +1 -1
  280. package/lib/responses/ResponseInputItems.js +28 -4
  281. package/lib/responses/ResponseInputItems.js.map +1 -1
  282. package/lib/responses/ResponseInputItems.mjs +28 -4
  283. package/lib/responses/ResponseInputItems.mjs.map +1 -1
  284. package/lib/transform.d.mts.map +1 -1
  285. package/lib/transform.d.ts.map +1 -1
  286. package/lib/transform.js +1 -0
  287. package/lib/transform.js.map +1 -1
  288. package/lib/transform.mjs +1 -0
  289. package/lib/transform.mjs.map +1 -1
  290. package/lib/vector-store-polling.d.mts +2 -2
  291. package/lib/vector-store-polling.d.ts +2 -2
  292. package/lib/vector-store-polling.js +3 -3
  293. package/lib/vector-store-polling.js.map +1 -1
  294. package/lib/vector-store-polling.mjs +3 -3
  295. package/lib/vector-store-polling.mjs.map +1 -1
  296. package/lib/vector-store-upload.d.mts +2 -1
  297. package/lib/vector-store-upload.d.mts.map +1 -1
  298. package/lib/vector-store-upload.d.ts +2 -1
  299. package/lib/vector-store-upload.d.ts.map +1 -1
  300. package/lib/vector-store-upload.js +5 -1
  301. package/lib/vector-store-upload.js.map +1 -1
  302. package/lib/vector-store-upload.mjs +5 -1
  303. package/lib/vector-store-upload.mjs.map +1 -1
  304. package/package.json +1 -1
  305. package/providers/bedrock/aws.d.mts.map +1 -1
  306. package/providers/bedrock/aws.d.ts.map +1 -1
  307. package/providers/bedrock/aws.js +14 -16
  308. package/providers/bedrock/aws.js.map +1 -1
  309. package/providers/bedrock/aws.mjs +15 -17
  310. package/providers/bedrock/aws.mjs.map +1 -1
  311. package/realtime/internal-base.d.mts.map +1 -1
  312. package/realtime/internal-base.d.ts.map +1 -1
  313. package/realtime/internal-base.js +3 -5
  314. package/realtime/internal-base.js.map +1 -1
  315. package/realtime/internal-base.mjs +3 -5
  316. package/realtime/internal-base.mjs.map +1 -1
  317. package/realtime/websocket.d.mts +2 -0
  318. package/realtime/websocket.d.mts.map +1 -1
  319. package/realtime/websocket.d.ts +2 -0
  320. package/realtime/websocket.d.ts.map +1 -1
  321. package/realtime/websocket.js +12 -6
  322. package/realtime/websocket.js.map +1 -1
  323. package/realtime/websocket.mjs +12 -6
  324. package/realtime/websocket.mjs.map +1 -1
  325. package/realtime/ws.d.mts +2 -0
  326. package/realtime/ws.d.mts.map +1 -1
  327. package/realtime/ws.d.ts +2 -0
  328. package/realtime/ws.d.ts.map +1 -1
  329. package/realtime/ws.js +7 -4
  330. package/realtime/ws.js.map +1 -1
  331. package/realtime/ws.mjs +7 -4
  332. package/realtime/ws.mjs.map +1 -1
  333. package/resources/admin/organization/projects/service-accounts/api-keys.d.mts +9 -0
  334. package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -1
  335. package/resources/admin/organization/projects/service-accounts/api-keys.d.ts +9 -0
  336. package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -1
  337. package/resources/admin/organization/usage.d.mts +1 -1
  338. package/resources/admin/organization/usage.d.ts +1 -1
  339. package/resources/batches.d.mts +1 -1
  340. package/resources/batches.d.ts +1 -1
  341. package/resources/beta/beta.d.mts +2 -2
  342. package/resources/beta/beta.d.mts.map +1 -1
  343. package/resources/beta/beta.d.ts +2 -2
  344. package/resources/beta/beta.d.ts.map +1 -1
  345. package/resources/beta/beta.js.map +1 -1
  346. package/resources/beta/beta.mjs.map +1 -1
  347. package/resources/beta/index.d.mts +1 -1
  348. package/resources/beta/index.d.mts.map +1 -1
  349. package/resources/beta/index.d.ts +1 -1
  350. package/resources/beta/index.d.ts.map +1 -1
  351. package/resources/beta/index.js.map +1 -1
  352. package/resources/beta/index.mjs.map +1 -1
  353. package/resources/beta/responses/index.d.mts +1 -1
  354. package/resources/beta/responses/index.d.mts.map +1 -1
  355. package/resources/beta/responses/index.d.ts +1 -1
  356. package/resources/beta/responses/index.d.ts.map +1 -1
  357. package/resources/beta/responses/index.js.map +1 -1
  358. package/resources/beta/responses/index.mjs.map +1 -1
  359. package/resources/beta/responses/responses.d.mts +772 -50
  360. package/resources/beta/responses/responses.d.mts.map +1 -1
  361. package/resources/beta/responses/responses.d.ts +772 -50
  362. package/resources/beta/responses/responses.d.ts.map +1 -1
  363. package/resources/beta/responses/responses.js +1 -1
  364. package/resources/beta/responses/responses.js.map +1 -1
  365. package/resources/beta/responses/responses.mjs +1 -1
  366. package/resources/beta/responses/responses.mjs.map +1 -1
  367. package/resources/chat/completions/completions.d.mts +2 -2
  368. package/resources/chat/completions/completions.d.ts +2 -2
  369. package/resources/conversations/items.d.mts +10 -1
  370. package/resources/conversations/items.d.mts.map +1 -1
  371. package/resources/conversations/items.d.ts +10 -1
  372. package/resources/conversations/items.d.ts.map +1 -1
  373. package/resources/evals/evals.d.mts +4 -4
  374. package/resources/evals/evals.d.ts +4 -4
  375. package/resources/evals/runs/runs.d.mts +1 -1
  376. package/resources/evals/runs/runs.d.ts +1 -1
  377. package/resources/images.d.mts +73 -58
  378. package/resources/images.d.mts.map +1 -1
  379. package/resources/images.d.ts +73 -58
  380. package/resources/images.d.ts.map +1 -1
  381. package/resources/images.js.map +1 -1
  382. package/resources/images.mjs.map +1 -1
  383. package/resources/index.d.mts +1 -0
  384. package/resources/index.d.mts.map +1 -1
  385. package/resources/index.d.ts +1 -0
  386. package/resources/index.d.ts.map +1 -1
  387. package/resources/index.js +3 -1
  388. package/resources/index.js.map +1 -1
  389. package/resources/index.mjs +1 -0
  390. package/resources/index.mjs.map +1 -1
  391. package/resources/responses/responses.d.mts +1279 -581
  392. package/resources/responses/responses.d.mts.map +1 -1
  393. package/resources/responses/responses.d.ts +1279 -581
  394. package/resources/responses/responses.d.ts.map +1 -1
  395. package/resources/responses/responses.js +1 -1
  396. package/resources/responses/responses.js.map +1 -1
  397. package/resources/responses/responses.mjs +1 -1
  398. package/resources/responses/responses.mjs.map +1 -1
  399. package/resources/safety/alerts.d.mts +32 -0
  400. package/resources/safety/alerts.d.mts.map +1 -0
  401. package/resources/safety/alerts.d.ts +32 -0
  402. package/resources/safety/alerts.d.ts.map +1 -0
  403. package/resources/safety/alerts.js +16 -0
  404. package/resources/safety/alerts.js.map +1 -0
  405. package/resources/safety/alerts.mjs +12 -0
  406. package/resources/safety/alerts.mjs.map +1 -0
  407. package/resources/safety/index.d.mts +3 -0
  408. package/resources/safety/index.d.mts.map +1 -0
  409. package/resources/safety/index.d.ts +3 -0
  410. package/resources/safety/index.d.ts.map +1 -0
  411. package/resources/safety/index.js +9 -0
  412. package/resources/safety/index.js.map +1 -0
  413. package/resources/safety/index.mjs +4 -0
  414. package/resources/safety/index.mjs.map +1 -0
  415. package/resources/safety/safety.d.mts +10 -0
  416. package/resources/safety/safety.d.mts.map +1 -0
  417. package/resources/safety/safety.d.ts +10 -0
  418. package/resources/safety/safety.d.ts.map +1 -0
  419. package/resources/safety/safety.js +17 -0
  420. package/resources/safety/safety.js.map +1 -0
  421. package/resources/safety/safety.mjs +12 -0
  422. package/resources/safety/safety.mjs.map +1 -0
  423. package/resources/safety.d.mts +2 -0
  424. package/resources/safety.d.mts.map +1 -0
  425. package/resources/safety.d.ts +2 -0
  426. package/resources/safety.d.ts.map +1 -0
  427. package/resources/safety.js +6 -0
  428. package/resources/safety.js.map +1 -0
  429. package/resources/safety.mjs +3 -0
  430. package/resources/safety.mjs.map +1 -0
  431. package/resources/shared.d.mts +29 -1
  432. package/resources/shared.d.mts.map +1 -1
  433. package/resources/shared.d.ts +29 -1
  434. package/resources/shared.d.ts.map +1 -1
  435. package/resources/videos.d.mts +28 -0
  436. package/resources/videos.d.mts.map +1 -1
  437. package/resources/videos.d.ts +28 -0
  438. package/resources/videos.d.ts.map +1 -1
  439. package/resources/webhooks/webhooks.d.mts +68 -6
  440. package/resources/webhooks/webhooks.d.mts.map +1 -1
  441. package/resources/webhooks/webhooks.d.ts +68 -6
  442. package/resources/webhooks/webhooks.d.ts.map +1 -1
  443. package/src/_vendor/partial-json-parser/parser.ts +4 -3
  444. package/src/_vendor/zod-to-json-schema/parsers/string.ts +1 -1
  445. package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +23 -16
  446. package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +11 -6
  447. package/src/auth/subject-token-providers.ts +12 -7
  448. package/src/auth/workload-identity-auth.ts +27 -12
  449. package/src/azure.ts +34 -3
  450. package/src/beta/realtime/internal-base.ts +3 -2
  451. package/src/beta/realtime/websocket.ts +17 -7
  452. package/src/beta/realtime/ws.ts +9 -5
  453. package/src/client.ts +24 -4
  454. package/src/core/EventEmitter.ts +5 -8
  455. package/src/core/pagination.ts +1 -1
  456. package/src/core/streaming.ts +69 -13
  457. package/src/helpers/audio.ts +27 -6
  458. package/src/helpers/zod.ts +78 -29
  459. package/src/internal/bedrock.ts +84 -58
  460. package/src/internal/detect-platform.ts +2 -2
  461. package/src/internal/errors.ts +3 -2
  462. package/src/internal/headers.ts +7 -5
  463. package/src/internal/parse.ts +1 -1
  464. package/src/internal/realtime-credentials.ts +27 -0
  465. package/src/internal/responses/response-accumulator.ts +1 -0
  466. package/src/internal/to-file.ts +6 -5
  467. package/src/internal/uploads.ts +12 -1
  468. package/src/internal/utils/base64.ts +3 -0
  469. package/src/lib/AbstractChatCompletionRunner.ts +31 -6
  470. package/src/lib/AssistantStream.ts +25 -11
  471. package/src/lib/ChatCompletionRunner.ts +8 -4
  472. package/src/lib/ChatCompletionStream.ts +8 -0
  473. package/src/lib/ChatCompletionStreamingRunner.ts +1 -0
  474. package/src/lib/EventEmitter.ts +17 -8
  475. package/src/lib/EventStream.ts +105 -52
  476. package/src/lib/ResponsesParser.ts +33 -12
  477. package/src/lib/RunnableFunction.ts +2 -2
  478. package/src/lib/embeddings.ts +18 -12
  479. package/src/lib/file-processing.ts +5 -4
  480. package/src/lib/parser.ts +35 -11
  481. package/src/lib/polling.ts +5 -4
  482. package/src/lib/responses/EventTypes.ts +3 -69
  483. package/src/lib/responses/ResponseInputItems.ts +30 -4
  484. package/src/lib/transform.ts +1 -0
  485. package/src/lib/vector-store-polling.ts +3 -3
  486. package/src/lib/vector-store-upload.ts +5 -1
  487. package/src/providers/bedrock/aws.ts +23 -24
  488. package/src/realtime/internal-base.ts +3 -5
  489. package/src/realtime/websocket.ts +14 -6
  490. package/src/realtime/ws.ts +9 -4
  491. package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +11 -0
  492. package/src/resources/admin/organization/usage.ts +1 -1
  493. package/src/resources/batches.ts +1 -1
  494. package/src/resources/beta/beta.ts +22 -0
  495. package/src/resources/beta/index.ts +11 -0
  496. package/src/resources/beta/responses/index.ts +11 -0
  497. package/src/resources/beta/responses/responses.ts +944 -39
  498. package/src/resources/chat/completions/completions.ts +2 -2
  499. package/src/resources/conversations/items.ts +12 -0
  500. package/src/resources/evals/evals.ts +4 -4
  501. package/src/resources/evals/runs/runs.ts +1 -1
  502. package/src/resources/images.ts +76 -57
  503. package/src/resources/index.ts +1 -0
  504. package/src/resources/responses/api.md +11 -0
  505. package/src/resources/responses/responses.ts +1395 -520
  506. package/src/resources/safety/alerts.ts +51 -0
  507. package/src/resources/safety/index.ts +4 -0
  508. package/src/resources/safety/safety.ts +15 -0
  509. package/src/resources/safety.ts +3 -0
  510. package/src/resources/shared.ts +39 -0
  511. package/src/resources/videos.ts +38 -0
  512. package/src/resources/webhooks/api.md +2 -0
  513. package/src/resources/webhooks/webhooks.ts +83 -5
  514. package/src/version.ts +1 -1
  515. package/version.d.mts +1 -1
  516. package/version.d.mts.map +1 -1
  517. package/version.d.ts +1 -1
  518. package/version.d.ts.map +1 -1
  519. package/version.js +1 -1
  520. package/version.js.map +1 -1
  521. package/version.mjs +1 -1
  522. package/version.mjs.map +1 -1
@@ -81,7 +81,7 @@ export declare class Responses extends APIResource {
81
81
  * ```ts
82
82
  * const betaCompactedResponse =
83
83
  * await client.beta.responses.compact({
84
- * model: 'gpt-5.6-sol',
84
+ * model: 'gpt-6-astra',
85
85
  * });
86
86
  * ```
87
87
  */
@@ -441,6 +441,11 @@ export interface BetaCustomTool {
441
441
  * The tool invocation context(s).
442
442
  */
443
443
  allowed_callers?: Array<'direct' | 'programmatic'> | null;
444
+ /**
445
+ * Whether the tool response can be returned asynchronously versus immediately
446
+ * returned on next response creation.
447
+ */
448
+ async?: boolean;
444
449
  /**
445
450
  * Whether this tool should be deferred and discovered via tool search.
446
451
  */
@@ -694,6 +699,7 @@ export interface BetaFunctionTool {
694
699
  * The tool invocation context(s).
695
700
  */
696
701
  allowed_callers?: Array<'direct' | 'programmatic'> | null;
702
+ async?: boolean;
697
703
  /**
698
704
  * Whether this function is deferred and loaded via tool search.
699
705
  */
@@ -817,6 +823,11 @@ export declare namespace BetaNamespaceTool {
817
823
  * The tool invocation context(s).
818
824
  */
819
825
  allowed_callers?: Array<'direct' | 'programmatic'> | null;
826
+ /**
827
+ * Whether the tool response can be returned asynchronously versus immediately
828
+ * returned on next response creation.
829
+ */
830
+ async?: boolean;
820
831
  /**
821
832
  * Whether this function should be deferred and discovered via tool search.
822
833
  */
@@ -875,13 +886,13 @@ export interface BetaResponse {
875
886
  [key: string]: string;
876
887
  } | null;
877
888
  /**
878
- * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
889
+ * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
879
890
  * range of models with different capabilities, performance characteristics, and
880
891
  * price points. Refer to the
881
892
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
882
893
  * available models.
883
894
  */
884
- model: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
895
+ model: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
885
896
  /**
886
897
  * The object type of this resource - always set to `response`.
887
898
  */
@@ -988,6 +999,10 @@ export interface BetaResponse {
988
999
  * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
989
1000
  */
990
1001
  prompt?: BetaResponsePrompt | null;
1002
+ /**
1003
+ * Prompt cache diagnostics requested for this response.
1004
+ */
1005
+ prompt_cache_diagnostics?: BetaResponse.CacheMiss | BetaResponse.CacheHit | BetaResponse.ComparisonResponseNotFound | BetaResponse.Unavailable;
991
1006
  /**
992
1007
  * Used by OpenAI to cache responses for similar requests to optimize your cache
993
1008
  * hit rates. Replaces the `user` field.
@@ -1110,9 +1125,11 @@ export declare namespace BetaResponse {
1110
1125
  */
1111
1126
  interface IncompleteDetails {
1112
1127
  /**
1113
- * The reason why the response is incomplete.
1128
+ * The reason why the response is incomplete. `steered` means the response stopped
1129
+ * at a safe output boundary after a WebSocket `response.steer` event. The server
1130
+ * can then create a successor response automatically with the queued input.
1114
1131
  */
1115
- reason?: 'max_output_tokens' | 'max_messages' | 'content_filter';
1132
+ reason?: 'max_output_tokens' | 'max_messages' | 'content_filter' | 'steered';
1116
1133
  }
1117
1134
  interface BetaSpecificProgrammaticToolCallingParam {
1118
1135
  /**
@@ -1254,6 +1271,31 @@ export declare namespace BetaResponse {
1254
1271
  type: 'error';
1255
1272
  }
1256
1273
  }
1274
+ interface CacheMiss {
1275
+ /**
1276
+ * The estimated number of input tokens affected after the first detected
1277
+ * divergence.
1278
+ */
1279
+ cache_missed_tokens: number;
1280
+ /**
1281
+ * The reason prompt cache reuse did not occur.
1282
+ */
1283
+ reason: 'model_changed' | 'prompt_cache_key_changed' | 'tools_changed' | 'text_format_changed' | 'reasoning_effort_changed' | 'verbosity_changed' | 'context_compacted' | 'input_changed' | 'service_tier_changed';
1284
+ type: 'cache_miss';
1285
+ /**
1286
+ * The raw token count of the reusable prefix in the compared response.
1287
+ */
1288
+ comparison_reusable_tokens?: number;
1289
+ }
1290
+ interface CacheHit {
1291
+ type: 'cache_hit';
1292
+ }
1293
+ interface ComparisonResponseNotFound {
1294
+ type: 'comparison_response_not_found';
1295
+ }
1296
+ interface Unavailable {
1297
+ type: 'unavailable';
1298
+ }
1257
1299
  /**
1258
1300
  * The prompt-caching options that were applied to the response. Supported for
1259
1301
  * `gpt-5.6` and later models.
@@ -1267,6 +1309,10 @@ export declare namespace BetaResponse {
1267
1309
  * The minimum lifetime applied to each cache breakpoint.
1268
1310
  */
1269
1311
  ttl: '30m';
1312
+ /**
1313
+ * The response ID supplied as the prompt cache diagnostics comparison.
1314
+ */
1315
+ comparison_response_id?: string | null;
1270
1316
  }
1271
1317
  /**
1272
1318
  * Configuration options for
@@ -2119,6 +2165,93 @@ export interface BetaResponseComputerToolCallOutputScreenshot {
2119
2165
  */
2120
2166
  image_url?: string;
2121
2167
  }
2168
+ /**
2169
+ * A configuration update that applies to subsequent responses until it is replaced
2170
+ * by another configuration update.
2171
+ */
2172
+ export interface BetaResponseConfigurationUpdateItem {
2173
+ /**
2174
+ * The unique ID of the configuration update item.
2175
+ */
2176
+ id: string;
2177
+ /**
2178
+ * The item type. Always `configuration_update`.
2179
+ */
2180
+ type: 'configuration_update';
2181
+ /**
2182
+ * The agent that produced this item.
2183
+ */
2184
+ agent?: BetaResponseConfigurationUpdateItem.Agent;
2185
+ /**
2186
+ * The reasoning configuration applied by this update.
2187
+ */
2188
+ reasoning?: BetaResponseConfigurationUpdateItem.Reasoning;
2189
+ }
2190
+ export declare namespace BetaResponseConfigurationUpdateItem {
2191
+ /**
2192
+ * The agent that produced this item.
2193
+ */
2194
+ interface Agent {
2195
+ /**
2196
+ * The canonical name of the agent that produced this item.
2197
+ */
2198
+ agent_name: string;
2199
+ }
2200
+ /**
2201
+ * The reasoning configuration applied by this update.
2202
+ */
2203
+ interface Reasoning {
2204
+ /**
2205
+ * The reasoning effort used for subsequent responses until another configuration
2206
+ * update replaces it.
2207
+ */
2208
+ effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
2209
+ }
2210
+ }
2211
+ /**
2212
+ * An update to the conversation's response configuration. The configuration
2213
+ * remains in effect for subsequent responses until it is replaced by another
2214
+ * configuration update.
2215
+ */
2216
+ export interface BetaResponseConfigurationUpdateItemParam {
2217
+ /**
2218
+ * The item type. Always `configuration_update`.
2219
+ */
2220
+ type: 'configuration_update';
2221
+ /**
2222
+ * The unique ID of the configuration update item.
2223
+ */
2224
+ id?: string | null;
2225
+ /**
2226
+ * The agent that produced this item.
2227
+ */
2228
+ agent?: BetaResponseConfigurationUpdateItemParam.Agent | null;
2229
+ /**
2230
+ * Updates to reasoning configuration. Only effort is supported.
2231
+ */
2232
+ reasoning?: BetaResponseConfigurationUpdateItemParam.Reasoning;
2233
+ }
2234
+ export declare namespace BetaResponseConfigurationUpdateItemParam {
2235
+ /**
2236
+ * The agent that produced this item.
2237
+ */
2238
+ interface Agent {
2239
+ /**
2240
+ * The canonical name of the agent that produced this item.
2241
+ */
2242
+ agent_name: string;
2243
+ }
2244
+ /**
2245
+ * Updates to reasoning configuration. Only effort is supported.
2246
+ */
2247
+ interface Reasoning {
2248
+ /**
2249
+ * The reasoning effort to use for subsequent responses until another configuration
2250
+ * update replaces it.
2251
+ */
2252
+ effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
2253
+ }
2254
+ }
2122
2255
  /**
2123
2256
  * Represents a container created with /v1/containers.
2124
2257
  */
@@ -2331,6 +2464,10 @@ export interface BetaResponseCustomToolCall {
2331
2464
  * The agent that produced this item.
2332
2465
  */
2333
2466
  agent?: BetaResponseCustomToolCall.Agent | null;
2467
+ /**
2468
+ * Whether the custom tool call runs asynchronously.
2469
+ */
2470
+ async?: boolean;
2334
2471
  /**
2335
2472
  * The execution context that produced this tool call.
2336
2473
  */
@@ -2541,11 +2678,39 @@ export interface BetaResponseError {
2541
2678
  /**
2542
2679
  * The error code for the response.
2543
2680
  */
2544
- code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt' | 'data_residency_mismatch' | 'bio_policy' | 'vector_store_timeout' | 'invalid_image' | 'invalid_image_format' | 'invalid_base64_image' | 'invalid_image_url' | 'image_too_large' | 'image_too_small' | 'image_parse_error' | 'image_content_policy_violation' | 'invalid_image_mode' | 'image_file_too_large' | 'unsupported_image_media_type' | 'empty_image_file' | 'failed_to_download_image' | 'image_file_not_found';
2681
+ code: 'server_error' | 'rate_limit_exceeded' | 'invalid_prompt' | 'data_residency_mismatch' | 'bio_policy' | 'misalignment_policy_violation' | 'vector_store_timeout' | 'invalid_image' | 'invalid_image_format' | 'invalid_base64_image' | 'invalid_image_url' | 'image_too_large' | 'image_too_small' | 'image_parse_error' | 'image_content_policy_violation' | 'invalid_image_mode' | 'image_file_too_large' | 'unsupported_image_media_type' | 'empty_image_file' | 'failed_to_download_image' | 'image_file_not_found';
2545
2682
  /**
2546
2683
  * A human-readable description of the error.
2547
2684
  */
2548
2685
  message: string;
2686
+ misalignment?: BetaResponseError.Misalignment;
2687
+ }
2688
+ export declare namespace BetaResponseError {
2689
+ interface Misalignment {
2690
+ /**
2691
+ * The public explanation for this block.
2692
+ */
2693
+ detailed_explanation?: string;
2694
+ /**
2695
+ * An optional classification; clients must accept additional values.
2696
+ */
2697
+ error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
2698
+ /**
2699
+ * An optional public continuation instruction.
2700
+ */
2701
+ steer?: Misalignment.Steer;
2702
+ }
2703
+ namespace Misalignment {
2704
+ /**
2705
+ * An optional public continuation instruction.
2706
+ */
2707
+ interface Steer {
2708
+ /**
2709
+ * The public continuation instruction.
2710
+ */
2711
+ message: string;
2712
+ }
2713
+ }
2549
2714
  }
2550
2715
  /**
2551
2716
  * Emitted when an error occurs.
@@ -2924,10 +3089,6 @@ export interface BetaResponseFunctionCallArgumentsDoneEvent {
2924
3089
  * The ID of the item.
2925
3090
  */
2926
3091
  item_id: string;
2927
- /**
2928
- * The name of the function that was called.
2929
- */
2930
- name: string;
2931
3092
  /**
2932
3093
  * The index of the output item.
2933
3094
  */
@@ -3221,6 +3382,10 @@ export interface BetaResponseFunctionToolCall {
3221
3382
  * The agent that produced this item.
3222
3383
  */
3223
3384
  agent?: BetaResponseFunctionToolCall.Agent | null;
3385
+ /**
3386
+ * Whether the function tool call runs asynchronously.
3387
+ */
3388
+ async?: boolean;
3224
3389
  /**
3225
3390
  * The execution context that produced this tool call.
3226
3391
  */
@@ -3365,7 +3530,7 @@ export interface BetaResponseFunctionWebSearch {
3365
3530
  /**
3366
3531
  * The status of the web search tool call.
3367
3532
  */
3368
- status: 'in_progress' | 'searching' | 'completed' | 'failed';
3533
+ status: 'in_progress' | 'searching' | 'completed' | 'failed' | 'incomplete';
3369
3534
  /**
3370
3535
  * The type of the web search tool call. Always `web_search_call`.
3371
3536
  */
@@ -3680,6 +3845,10 @@ export declare namespace BetaResponseInProgressEvent {
3680
3845
  export type BetaResponseIncludable = 'file_search_call.results' | 'web_search_call.results' | 'web_search_call.action.sources' | 'message.input_image.image_url' | 'computer_call_output.output.image_url' | 'code_interpreter_call.outputs' | 'reasoning.encrypted_content' | 'message.output_text.logprobs';
3681
3846
  /**
3682
3847
  * An event that is emitted when a response finishes as incomplete.
3848
+ *
3849
+ * Over WebSocket, steering can finish a response with
3850
+ * `response.incomplete_details.reason` set to `steered`, followed automatically by
3851
+ * a successor `response.created` that commits the queued steering input.
3683
3852
  */
3684
3853
  export interface BetaResponseIncompleteEvent {
3685
3854
  /**
@@ -4027,7 +4196,7 @@ export declare namespace BetaResponseInputImageContent {
4027
4196
  * `assistant` role are presumed to have been generated by the model in previous
4028
4197
  * interactions.
4029
4198
  */
4030
- export type BetaResponseInputItem = BetaEasyInputMessage | BetaResponseInputItem.Message | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseInputItem.ComputerCallOutput | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCall | BetaResponseInputItem.FunctionCallOutput | BetaResponseInputItem.AgentMessage | BetaResponseInputItem.MultiAgentCall | BetaResponseInputItem.MultiAgentCallOutput | BetaResponseInputItem.ToolSearchCall | BetaResponseToolSearchOutputItemParam | BetaResponseInputItem.AdditionalTools | BetaResponseReasoningItem | BetaResponseCompactionItemParam | BetaResponseInputItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseInputItem.LocalShellCall | BetaResponseInputItem.LocalShellCallOutput | BetaResponseInputItem.ShellCall | BetaResponseInputItem.ShellCallOutput | BetaResponseInputItem.ApplyPatchCall | BetaResponseInputItem.ApplyPatchCallOutput | BetaResponseInputItem.McpListTools | BetaResponseInputItem.McpApprovalRequest | BetaResponseInputItem.McpApprovalResponse | BetaResponseInputItem.McpCall | BetaResponseCustomToolCallOutput | BetaResponseCustomToolCall | BetaResponseInputItem.CompactionTrigger | BetaResponseInputItem.ItemReference | BetaResponseInputItem.Program | BetaResponseInputItem.ProgramOutput;
4199
+ export type BetaResponseInputItem = BetaEasyInputMessage | BetaResponseInputItem.Message | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseInputItem.ComputerCallOutput | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCall | BetaResponseInputItem.FunctionCallOutput | BetaResponseInputItem.AgentMessage | BetaResponseInputItem.MultiAgentCall | BetaResponseInputItem.MultiAgentCallOutput | BetaResponseInputItem.ToolSearchCall | BetaResponseToolSearchOutputItemParam | BetaResponseInputItem.AdditionalTools | BetaResponseConfigurationUpdateItemParam | BetaResponseReasoningItem | BetaResponseCompactionItemParam | BetaResponseInputItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseInputItem.LocalShellCall | BetaResponseInputItem.LocalShellCallOutput | BetaResponseInputItem.ShellCall | BetaResponseInputItem.ShellCallOutput | BetaResponseInputItem.ApplyPatchCall | BetaResponseInputItem.ApplyPatchCallOutput | BetaResponseInputItem.McpListTools | BetaResponseInputItem.McpApprovalRequest | BetaResponseInputItem.McpApprovalResponse | BetaResponseInputItem.McpCall | BetaResponseCustomToolCallOutput | BetaResponseCustomToolCall | BetaResponseInputItem.CompactionTrigger | BetaResponseInputItem.ItemReference | BetaResponseInputItem.Program | BetaResponseInputItem.ProgramOutput;
4031
4200
  export declare namespace BetaResponseInputItem {
4032
4201
  /**
4033
4202
  * A message input to the model with a role indicating instruction following
@@ -4510,6 +4679,15 @@ export declare namespace BetaResponseInputItem {
4510
4679
  * The agent that produced this item.
4511
4680
  */
4512
4681
  agent?: ImageGenerationCall.Agent | null;
4682
+ /**
4683
+ * The quality of the image generated by the image generation tool call. One of
4684
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
4685
+ */
4686
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
4687
+ /**
4688
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
4689
+ */
4690
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
4513
4691
  }
4514
4692
  namespace ImageGenerationCall {
4515
4693
  /**
@@ -5390,7 +5568,7 @@ export declare namespace BetaResponseInputTextContent {
5390
5568
  /**
5391
5569
  * Content item used to generate a response.
5392
5570
  */
5393
- export type BetaResponseItem = BetaResponseInputMessageItem | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseComputerToolCallOutputItem | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCallItem | BetaResponseFunctionToolCallOutputItem | BetaResponseItem.AgentMessage | BetaResponseItem.MultiAgentCall | BetaResponseItem.MultiAgentCallOutput | BetaResponseToolSearchCall | BetaResponseToolSearchOutputItem | BetaResponseItem.AdditionalTools | BetaResponseReasoningItem | BetaResponseItem.Program | BetaResponseItem.ProgramOutput | BetaResponseCompactionItem | BetaResponseItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseItem.LocalShellCall | BetaResponseItem.LocalShellCallOutput | BetaResponseFunctionShellToolCall | BetaResponseFunctionShellToolCallOutput | BetaResponseApplyPatchToolCall | BetaResponseApplyPatchToolCallOutput | BetaResponseItem.McpListTools | BetaResponseItem.McpApprovalRequest | BetaResponseItem.McpApprovalResponse | BetaResponseItem.McpCall | BetaResponseCustomToolCallItem | BetaResponseCustomToolCallOutputItem;
5571
+ export type BetaResponseItem = BetaResponseInputMessageItem | BetaResponseOutputMessage | BetaResponseFileSearchToolCall | BetaResponseComputerToolCall | BetaResponseComputerToolCallOutputItem | BetaResponseFunctionWebSearch | BetaResponseFunctionToolCallItem | BetaResponseFunctionToolCallOutputItem | BetaResponseItem.AgentMessage | BetaResponseItem.MultiAgentCall | BetaResponseItem.MultiAgentCallOutput | BetaResponseToolSearchCall | BetaResponseToolSearchOutputItem | BetaResponseItem.AdditionalTools | BetaResponseConfigurationUpdateItem | BetaResponseReasoningItem | BetaResponseItem.Program | BetaResponseItem.ProgramOutput | BetaResponseCompactionItem | BetaResponseItem.ImageGenerationCall | BetaResponseCodeInterpreterToolCall | BetaResponseItem.LocalShellCall | BetaResponseItem.LocalShellCallOutput | BetaResponseFunctionShellToolCall | BetaResponseFunctionShellToolCallOutput | BetaResponseApplyPatchToolCall | BetaResponseApplyPatchToolCallOutput | BetaResponseItem.McpListTools | BetaResponseItem.McpApprovalRequest | BetaResponseItem.McpApprovalResponse | BetaResponseItem.McpCall | BetaResponseCustomToolCallItem | BetaResponseCustomToolCallOutputItem;
5394
5572
  export declare namespace BetaResponseItem {
5395
5573
  interface AgentMessage {
5396
5574
  /**
@@ -5723,6 +5901,15 @@ export declare namespace BetaResponseItem {
5723
5901
  * The agent that produced this item.
5724
5902
  */
5725
5903
  agent?: ImageGenerationCall.Agent | null;
5904
+ /**
5905
+ * The quality of the image generated by the image generation tool call. One of
5906
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
5907
+ */
5908
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
5909
+ /**
5910
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
5911
+ */
5912
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
5726
5913
  }
5727
5914
  namespace ImageGenerationCall {
5728
5915
  /**
@@ -6704,6 +6891,15 @@ export declare namespace BetaResponseOutputItem {
6704
6891
  * The agent that produced this item.
6705
6892
  */
6706
6893
  agent?: ImageGenerationCall.Agent | null;
6894
+ /**
6895
+ * The quality of the image generated by the image generation tool call. One of
6896
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
6897
+ */
6898
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
6899
+ /**
6900
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
6901
+ */
6902
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
6707
6903
  }
6708
6904
  namespace ImageGenerationCall {
6709
6905
  /**
@@ -8225,6 +8421,477 @@ export declare namespace BetaResponseShellCallOutputContentDoneEvent {
8225
8421
  * `in_progress`, `cancelled`, `queued`, or `incomplete`.
8226
8422
  */
8227
8423
  export type BetaResponseStatus = 'completed' | 'failed' | 'in_progress' | 'cancelled' | 'queued' | 'incomplete';
8424
+ /**
8425
+ * Emitted when steering input has been validated and queued. Acceptance means the
8426
+ * server owns the input, not that it has been applied. The successor's
8427
+ * `response.created` event is the commit point. If accepted input cannot be
8428
+ * committed, `response.steer.failed` returns it with the same steering ID.
8429
+ *
8430
+ * When the response stops for client-owned tool output or approval, the input
8431
+ * remains queued and `response.steer.pending` is emitted after
8432
+ * `response.completed`. Fill the pending event's `required_input` stubs with saved
8433
+ * results and send one matching explicit `response.create` per parent. Do not
8434
+ * resend accepted input while it is still queued.
8435
+ */
8436
+ export interface BetaResponseSteerAcceptedEvent {
8437
+ /**
8438
+ * The sequence number for this event.
8439
+ */
8440
+ sequence_number: number;
8441
+ /**
8442
+ * The accepted steering submission.
8443
+ */
8444
+ steer: BetaResponseSteerAcceptedEvent.Steer;
8445
+ /**
8446
+ * The event discriminator. Always `response.steer.accepted`.
8447
+ */
8448
+ type: 'response.steer.accepted';
8449
+ /**
8450
+ * The WebSocket lane that emitted this event. This field is present when the
8451
+ * target response's `response.create` event supplied a `stream_id`.
8452
+ */
8453
+ stream_id?: string;
8454
+ }
8455
+ export declare namespace BetaResponseSteerAcceptedEvent {
8456
+ /**
8457
+ * The accepted steering submission.
8458
+ */
8459
+ interface Steer {
8460
+ /**
8461
+ * The ID assigned to the steering submission.
8462
+ */
8463
+ id: string;
8464
+ /**
8465
+ * The ID of the response being steered.
8466
+ */
8467
+ previous_response_id: string;
8468
+ }
8469
+ }
8470
+ /**
8471
+ * A machine-readable steering error code. Clients should handle unknown values
8472
+ * because additional codes may be introduced. Known values include:
8473
+ *
8474
+ * - `response_not_found`: The target response is not available on this connection.
8475
+ * - `invalid_input`: The event or input failed validation.
8476
+ * - `steering_not_supported`: The model or response execution mode does not
8477
+ * support steering.
8478
+ * - `too_many_pending_steers`: Too much steering input is pending for the
8479
+ * response.
8480
+ * - `response_already_completed`: The response completed and is no longer
8481
+ * accepting steering input.
8482
+ * - `response_not_active`: The response is no longer accepting steering input.
8483
+ * - `successor_creation_failed`: The successor response could not be created.
8484
+ */
8485
+ export type BetaResponseSteerErrorCode = 'response_not_found' | 'invalid_input' | 'steering_not_supported' | 'too_many_pending_steers' | 'response_already_completed' | 'response_not_active' | 'successor_creation_failed' | (string & {});
8486
+ /**
8487
+ * Queues user input to steer a response on this WebSocket connection. Input can
8488
+ * contain text, images, and files. Steering is supported only for single-agent
8489
+ * responses on models and execution modes that support steering. Responses bound
8490
+ * to a conversation or using automatic compaction do not support steering.
8491
+ *
8492
+ * A `response.steer.accepted` event acknowledges that the server owns the queued
8493
+ * input, not that it has been applied. The successor's `response.created` event is
8494
+ * the commit point. Input that cannot be committed is returned in
8495
+ * `response.steer.failed`.
8496
+ *
8497
+ * Steering may cause the active response to finish at a safe output boundary with
8498
+ * `response.incomplete` and `incomplete_details.reason` set to `steered`, followed
8499
+ * automatically by a successor `response.created`. Normal completion can also be
8500
+ * followed by an automatic successor. Automatic successors inherit the previous
8501
+ * response's settings and continue from it with the queued input.
8502
+ *
8503
+ * If the response stops for client-owned tool output or approval, accepted
8504
+ * steering input remains queued and `response.steer.pending` is emitted after
8505
+ * `response.completed`. Fill the `required_input` stubs from that event with saved
8506
+ * tool results or approval decisions, and send one explicit `response.create` per
8507
+ * parent with the same `previous_response_id` and WebSocket lane. Do not rerun
8508
+ * tools or resend accepted steering input. The queued input is prepended in
8509
+ * submission order to that request's input, and the explicit request retains its
8510
+ * own settings.
8511
+ *
8512
+ * This event accepts only `type`, `previous_response_id`, and `input`. Do not send
8513
+ * `stream_id`; the target response determines the WebSocket lane.
8514
+ */
8515
+ export interface BetaResponseSteerEvent {
8516
+ /**
8517
+ * Input to queue for a continuation of the response. Uses the same string or
8518
+ * input-item shape as `response.create.input`, with a non-empty array when
8519
+ * supplying input items.
8520
+ *
8521
+ * Steering accepts only messages with the `user` role. Each message may contain
8522
+ * only `type`, `role`, and `content`, with `content` as a string or an array of
8523
+ * `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
8524
+ * `message`. Other roles, tool outputs, and item types are not supported for
8525
+ * steering.
8526
+ */
8527
+ input: BetaResponseSteerInput;
8528
+ /**
8529
+ * The ID of the response to steer on this WebSocket connection.
8530
+ */
8531
+ previous_response_id: string;
8532
+ /**
8533
+ * The event discriminator. Always `response.steer`.
8534
+ */
8535
+ type: 'response.steer';
8536
+ }
8537
+ /**
8538
+ * Emitted when steering input is rejected or cannot be committed to a successor
8539
+ * response. Returns the original, uncommitted input so the client can carry it
8540
+ * into `response.create` when appropriate. Invalid input must be corrected before
8541
+ * retrying.
8542
+ *
8543
+ * Failures after acceptance include the same steering ID. Failures before an ID is
8544
+ * allocated omit `steer.id`. A lost connection or missing acknowledgement leaves
8545
+ * the outcome unknown; it is not proof that the input was rejected.
8546
+ */
8547
+ export interface BetaResponseSteerFailedEvent {
8548
+ /**
8549
+ * Information about why the input could not be committed.
8550
+ */
8551
+ error: BetaResponseSteerFailedEvent.Error;
8552
+ /**
8553
+ * The sequence number for this event.
8554
+ */
8555
+ sequence_number: number;
8556
+ /**
8557
+ * The steering submission that could not be committed.
8558
+ */
8559
+ steer: BetaResponseSteerFailedEvent.Steer;
8560
+ /**
8561
+ * The event discriminator. Always `response.steer.failed`.
8562
+ */
8563
+ type: 'response.steer.failed';
8564
+ /**
8565
+ * The WebSocket lane that emitted this event, when the target response is
8566
+ * available and its `response.create` event supplied a `stream_id`.
8567
+ */
8568
+ stream_id?: string;
8569
+ }
8570
+ export declare namespace BetaResponseSteerFailedEvent {
8571
+ /**
8572
+ * Information about why the input could not be committed.
8573
+ */
8574
+ interface Error {
8575
+ /**
8576
+ * A machine-readable steering error code. Clients should handle unknown values
8577
+ * because additional codes may be introduced. Known values include:
8578
+ *
8579
+ * - `response_not_found`: The target response is not available on this connection.
8580
+ * - `invalid_input`: The event or input failed validation.
8581
+ * - `steering_not_supported`: The model or response execution mode does not
8582
+ * support steering.
8583
+ * - `too_many_pending_steers`: Too much steering input is pending for the
8584
+ * response.
8585
+ * - `response_already_completed`: The response completed and is no longer
8586
+ * accepting steering input.
8587
+ * - `response_not_active`: The response is no longer accepting steering input.
8588
+ * - `successor_creation_failed`: The successor response could not be created.
8589
+ */
8590
+ code: ResponsesAPI.BetaResponseSteerErrorCode;
8591
+ /**
8592
+ * A human-readable description of the error.
8593
+ */
8594
+ message: string;
8595
+ /**
8596
+ * The error type. Always `invalid_request_error`.
8597
+ */
8598
+ type: 'invalid_request_error';
8599
+ }
8600
+ /**
8601
+ * The steering submission that could not be committed.
8602
+ */
8603
+ interface Steer {
8604
+ /**
8605
+ * Input to queue for a continuation of the response. Uses the same string or
8606
+ * input-item shape as `response.create.input`, with a non-empty array when
8607
+ * supplying input items.
8608
+ *
8609
+ * Steering accepts only messages with the `user` role. Each message may contain
8610
+ * only `type`, `role`, and `content`, with `content` as a string or an array of
8611
+ * `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
8612
+ * `message`. Other roles, tool outputs, and item types are not supported for
8613
+ * steering.
8614
+ */
8615
+ input: ResponsesAPI.BetaResponseSteerInput;
8616
+ /**
8617
+ * The ID of the response that was targeted for steering.
8618
+ */
8619
+ previous_response_id: string;
8620
+ /**
8621
+ * The ID assigned to the steering submission, if one was allocated.
8622
+ */
8623
+ id?: string;
8624
+ }
8625
+ }
8626
+ /**
8627
+ * Input to queue for a continuation of the response. Uses the same string or
8628
+ * input-item shape as `response.create.input`, with a non-empty array when
8629
+ * supplying input items.
8630
+ *
8631
+ * Steering accepts only messages with the `user` role. Each message may contain
8632
+ * only `type`, `role`, and `content`, with `content` as a string or an array of
8633
+ * `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
8634
+ * `message`. Other roles, tool outputs, and item types are not supported for
8635
+ * steering.
8636
+ */
8637
+ export type BetaResponseSteerInput = string | Array<ResponseSteerInputItemList.Message | ResponseSteerInputItemList.FunctionCallOutput>;
8638
+ export declare namespace ResponseSteerInputItemList {
8639
+ interface Message {
8640
+ /**
8641
+ * The message content, as an array of content parts.
8642
+ */
8643
+ content: Array<ResponsesAPI.BetaResponseSteerInputContent> | string;
8644
+ /**
8645
+ * The message role. Always `user`.
8646
+ */
8647
+ role: 'user';
8648
+ /**
8649
+ * The item type. Always `message`.
8650
+ */
8651
+ type: 'message';
8652
+ /**
8653
+ * The unique ID of this message item.
8654
+ */
8655
+ id?: string | null;
8656
+ /**
8657
+ * The agent that produced this item.
8658
+ */
8659
+ agent?: Message.Agent | null;
8660
+ /**
8661
+ * The status of the message item.
8662
+ */
8663
+ status?: string | null;
8664
+ }
8665
+ namespace Message {
8666
+ /**
8667
+ * The agent that produced this item.
8668
+ */
8669
+ interface Agent {
8670
+ /**
8671
+ * The canonical name of the agent that produced this item.
8672
+ */
8673
+ agent_name: string;
8674
+ }
8675
+ }
8676
+ /**
8677
+ * The output of a function tool call.
8678
+ */
8679
+ interface FunctionCallOutput {
8680
+ /**
8681
+ * Text, image, or file output of the function tool call.
8682
+ */
8683
+ output: string | ResponsesAPI.BetaResponseFunctionCallOutputItemList;
8684
+ /**
8685
+ * The type of the function tool call output. Always `function_call_output`.
8686
+ */
8687
+ type: 'function_call_output';
8688
+ /**
8689
+ * The unique ID of the function tool call output. Populated when this item is
8690
+ * returned via API.
8691
+ */
8692
+ id?: string | null;
8693
+ /**
8694
+ * The agent that produced this item.
8695
+ */
8696
+ agent?: FunctionCallOutput.Agent | null;
8697
+ /**
8698
+ * The unique ID of the function tool call generated by the model.
8699
+ */
8700
+ call_id?: string | null;
8701
+ /**
8702
+ * The execution context that produced this tool call.
8703
+ */
8704
+ caller?: FunctionCallOutput.Direct | FunctionCallOutput.Program | null;
8705
+ /**
8706
+ * The name of the tool that produced the output.
8707
+ */
8708
+ name?: string | null;
8709
+ /**
8710
+ * The namespace of the tool that produced the output.
8711
+ */
8712
+ namespace?: string | null;
8713
+ /**
8714
+ * The status of the item. One of `in_progress`, `completed`, or `incomplete`.
8715
+ * Populated when items are returned via API.
8716
+ */
8717
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
8718
+ }
8719
+ namespace FunctionCallOutput {
8720
+ /**
8721
+ * The agent that produced this item.
8722
+ */
8723
+ interface Agent {
8724
+ /**
8725
+ * The canonical name of the agent that produced this item.
8726
+ */
8727
+ agent_name: string;
8728
+ }
8729
+ interface Direct {
8730
+ /**
8731
+ * The caller type. Always `direct`.
8732
+ */
8733
+ type: 'direct';
8734
+ }
8735
+ interface Program {
8736
+ /**
8737
+ * The call ID of the program item that produced this tool call.
8738
+ */
8739
+ caller_id: string;
8740
+ /**
8741
+ * The caller type. Always `program`.
8742
+ */
8743
+ type: 'program';
8744
+ }
8745
+ }
8746
+ }
8747
+ /**
8748
+ * A piece of message content, such as text, an image, or a file.
8749
+ */
8750
+ export type BetaResponseSteerInputContent = BetaResponseInputTextContent | BetaResponseInputImageContent | BetaResponseInputFileContent;
8751
+ /**
8752
+ * Emitted when accepted steering input remains queued after the target response
8753
+ * completes. The server still owns the input. Do not resend it. The successor's
8754
+ * `response.created` event is the commit point.
8755
+ *
8756
+ * When `reason` is `waiting_for_required_input`, this event follows
8757
+ * `response.completed` while the response waits for the tool results or approval
8758
+ * decisions identified by `required_input`. Copy those stubs, fill their result
8759
+ * fields using the ordinary `response.create` input schemas, and submit one
8760
+ * continuation per parent with the same `previous_response_id` and WebSocket lane.
8761
+ * Use saved results without rerunning tools. The queued steering input is
8762
+ * prepended in submission order to the continuation's input. That explicit request
8763
+ * retains its own settings.
8764
+ *
8765
+ * This notification is emitted at most once per steering submission. Multiple
8766
+ * submissions for the same parent can report the same required inputs; they do not
8767
+ * each require a separate continuation.
8768
+ */
8769
+ export interface BetaResponseSteerPendingEvent {
8770
+ /**
8771
+ * An extensible enum describing why accepted steering input is still queued.
8772
+ * Clients should handle unknown values because additional reasons may be
8773
+ * introduced. Known values include:
8774
+ *
8775
+ * - `waiting_for_required_input`: The response is waiting for the tool results or
8776
+ * approval decisions identified by `required_input`.
8777
+ */
8778
+ reason: BetaResponseSteerPendingReason;
8779
+ /**
8780
+ * Input stubs identifying outstanding client-owned tool results or approval
8781
+ * decisions. Each stub contains identifying fields only; the client supplies the
8782
+ * result before including it in `response.create`.
8783
+ */
8784
+ required_input: Array<BetaResponseSteerRequiredInput>;
8785
+ /**
8786
+ * The sequence number for this event.
8787
+ */
8788
+ sequence_number: number;
8789
+ /**
8790
+ * The steering submission that remains queued.
8791
+ */
8792
+ steer: BetaResponseSteerPendingEvent.Steer;
8793
+ /**
8794
+ * The event discriminator. Always `response.steer.pending`.
8795
+ */
8796
+ type: 'response.steer.pending';
8797
+ /**
8798
+ * The WebSocket lane that emitted this event. This field is present when the
8799
+ * target response's `response.create` event supplied a `stream_id`.
8800
+ */
8801
+ stream_id?: string;
8802
+ }
8803
+ export declare namespace BetaResponseSteerPendingEvent {
8804
+ /**
8805
+ * The steering submission that remains queued.
8806
+ */
8807
+ interface Steer {
8808
+ /**
8809
+ * The ID assigned to the steering submission.
8810
+ */
8811
+ id: string;
8812
+ /**
8813
+ * The ID of the response being steered.
8814
+ */
8815
+ previous_response_id: string;
8816
+ }
8817
+ }
8818
+ /**
8819
+ * An extensible enum describing why accepted steering input is still queued.
8820
+ * Clients should handle unknown values because additional reasons may be
8821
+ * introduced. Known values include:
8822
+ *
8823
+ * - `waiting_for_required_input`: The response is waiting for the tool results or
8824
+ * approval decisions identified by `required_input`.
8825
+ */
8826
+ export type BetaResponseSteerPendingReason = 'waiting_for_required_input' | (string & {});
8827
+ /**
8828
+ * An input stub identifying an outstanding client-owned tool result or approval
8829
+ * decision. Copy the stub and fill the result fields using the corresponding
8830
+ * `response.create` input schema. Use saved results without rerunning the tool.
8831
+ * The server does not supply results, approval decisions, or safety
8832
+ * acknowledgements in these stubs.
8833
+ */
8834
+ export type BetaResponseSteerRequiredInput = BetaResponseSteerRequiredInput.FunctionCallOutput | BetaResponseSteerRequiredInput.CustomToolCallOutput | BetaResponseSteerRequiredInput.ComputerCallOutput | BetaResponseSteerRequiredInput.ShellCallOutput | BetaResponseSteerRequiredInput.ApplyPatchCallOutput | BetaResponseSteerRequiredInput.ToolSearchOutput | BetaResponseSteerRequiredInput.McpApprovalResponse;
8835
+ export declare namespace BetaResponseSteerRequiredInput {
8836
+ /**
8837
+ * Supply `output` using the function tool call output input schema.
8838
+ */
8839
+ interface FunctionCallOutput {
8840
+ call_id: string;
8841
+ name: string;
8842
+ type: 'function_call_output';
8843
+ }
8844
+ /**
8845
+ * Supply `output` using the custom tool call output input schema. The original
8846
+ * custom tool call supplies the tool's name.
8847
+ */
8848
+ interface CustomToolCallOutput {
8849
+ call_id: string;
8850
+ type: 'custom_tool_call_output';
8851
+ }
8852
+ /**
8853
+ * Supply `output` using the computer tool call output input schema, including any
8854
+ * required `acknowledged_safety_checks`.
8855
+ */
8856
+ interface ComputerCallOutput {
8857
+ call_id: string;
8858
+ type: 'computer_call_output';
8859
+ }
8860
+ /**
8861
+ * Supply `output` using the shell tool call output input schema. Each output entry
8862
+ * includes `stdout`, `stderr`, and `outcome`.
8863
+ */
8864
+ interface ShellCallOutput {
8865
+ call_id: string;
8866
+ type: 'shell_call_output';
8867
+ }
8868
+ /**
8869
+ * Supply `status` and optional `output` using the apply patch tool call output
8870
+ * input schema.
8871
+ */
8872
+ interface ApplyPatchCallOutput {
8873
+ call_id: string;
8874
+ type: 'apply_patch_call_output';
8875
+ }
8876
+ /**
8877
+ * Supply `tools` using the tool search output input schema, retaining
8878
+ * `execution: "client"`.
8879
+ */
8880
+ interface ToolSearchOutput {
8881
+ call_id: string;
8882
+ execution: 'client';
8883
+ type: 'tool_search_output';
8884
+ }
8885
+ /**
8886
+ * Supply `approve` using the MCP approval response input schema. An optional
8887
+ * `reason` can be supplied when denying the request. The original approval request
8888
+ * identifies the tool and server.
8889
+ */
8890
+ interface McpApprovalResponse {
8891
+ approval_request_id: string;
8892
+ type: 'mcp_approval_response';
8893
+ }
8894
+ }
8228
8895
  /**
8229
8896
  * Event emitted while a response is streamed.
8230
8897
  */
@@ -8712,7 +9379,7 @@ export declare namespace BetaResponseWebSearchCallSearchingEvent {
8712
9379
  /**
8713
9380
  * Client events accepted by the Responses WebSocket server.
8714
9381
  */
8715
- export type BetaResponsesClientEvent = BetaResponsesClientEvent.ResponseCreate | BetaResponseInjectEvent;
9382
+ export type BetaResponsesClientEvent = BetaResponsesClientEvent.ResponseCreate | BetaResponseSteerEvent | BetaResponseInjectEvent;
8716
9383
  export declare namespace BetaResponsesClientEvent {
8717
9384
  /**
8718
9385
  * Client event for creating a response over a persistent WebSocket connection.
@@ -8812,13 +9479,13 @@ export declare namespace BetaResponsesClientEvent {
8812
9479
  [key: string]: string;
8813
9480
  } | null;
8814
9481
  /**
8815
- * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
9482
+ * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
8816
9483
  * range of models with different capabilities, performance characteristics, and
8817
9484
  * price points. Refer to the
8818
9485
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
8819
9486
  * available models.
8820
9487
  */
8821
- model?: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
9488
+ model?: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
8822
9489
  /**
8823
9490
  * Configuration for running moderation on the input and output of this response.
8824
9491
  */
@@ -8924,6 +9591,9 @@ export declare namespace BetaResponsesClientEvent {
8924
9591
  service_tier?: ResponsesAPI.BetaServiceTier | null;
8925
9592
  /**
8926
9593
  * Whether to store the generated model response for later retrieval via API.
9594
+ * Defaults to true when omitted. If set to true, response data will be stored for
9595
+ * at least 30 days, subject to the
9596
+ * [data retention exceptions](/api/docs/guides/your-data#v1responses).
8927
9597
  */
8928
9598
  store?: boolean | null;
8929
9599
  /**
@@ -9108,6 +9778,11 @@ export declare namespace BetaResponsesClientEvent {
9108
9778
  * for current details.
9109
9779
  */
9110
9780
  interface PromptCacheOptions {
9781
+ /**
9782
+ * The ID of a response to compare when diagnosing prompt cache reuse. Supplying
9783
+ * this field requests prompt cache diagnostics when the feature is enabled.
9784
+ */
9785
+ comparison_response_id?: string | null;
9111
9786
  /**
9112
9787
  * Controls whether OpenAI automatically creates an implicit cache breakpoint.
9113
9788
  * Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
@@ -9196,7 +9871,7 @@ export declare namespace BetaResponsesClientEvent {
9196
9871
  /**
9197
9872
  * Server events emitted by the Responses WebSocket server.
9198
9873
  */
9199
- export type BetaResponsesServerEvent = BetaResponsesServerEvent.BetaResponseAudioWsDelta | BetaResponsesServerEvent.BetaResponseAudioWsDone | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDelta | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDelta | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsCompleted | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallInWsProgress | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsInterpreting | BetaResponsesServerEvent.BetaResponseWsCompleted | BetaResponsesServerEvent.BetaResponseContentPartWsAdded | BetaResponsesServerEvent.BetaResponseContentPartWsDone | BetaResponsesServerEvent.BetaResponseWsCreated | BetaResponsesServerEvent.BetaResponseFileSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseFileSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseFileSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseShellCallCommandWsAdded | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDelta | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDone | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDelta | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDone | BetaResponsesServerEvent.BetaResponseInWsProgress | BetaResponsesServerEvent.BetaResponseWsFailed | BetaResponsesServerEvent.BetaResponseWsIncomplete | BetaResponsesServerEvent.BetaResponseOutputItemWsAdded | BetaResponsesServerEvent.BetaResponseOutputItemWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsAdded | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDone | BetaResponsesServerEvent.BetaResponseReasoningTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningTextWsDone | BetaResponsesServerEvent.BetaResponseRefusalWsDelta | BetaResponsesServerEvent.BetaResponseRefusalWsDone | BetaResponsesServerEvent.BetaResponseTextWsDelta | BetaResponsesServerEvent.BetaResponseTextWsDone | BetaResponsesServerEvent.BetaResponseWebSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseWebSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseWebSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseImageGenCallWsCompleted | BetaResponsesServerEvent.BetaResponseImageGenCallWsGenerating | BetaResponsesServerEvent.BetaResponseImageGenCallInWsProgress | BetaResponsesServerEvent.BetaResponseImageGenCallPartialWsImage | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseMcpCallWsCompleted | BetaResponsesServerEvent.BetaResponseMcpCallWsFailed | BetaResponsesServerEvent.BetaResponseMcpCallInWsProgress | BetaResponsesServerEvent.BetaResponseMcpListToolsWsCompleted | BetaResponsesServerEvent.BetaResponseMcpListToolsWsFailed | BetaResponsesServerEvent.BetaResponseMcpListToolsInWsProgress | BetaResponsesServerEvent.BetaResponseOutputTextAnnotationWsAdded | BetaResponsesServerEvent.BetaResponseWsQueued | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDelta | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDone | BetaResponsesServerEvent.BetaResponseWsStreamingError | BetaResponsesServerEvent.BetaResponseWsError | BetaResponseInjectCreatedEvent | BetaResponseInjectFailedEvent;
9874
+ export type BetaResponsesServerEvent = BetaResponsesServerEvent.BetaResponseAudioWsDelta | BetaResponsesServerEvent.BetaResponseAudioWsDone | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDelta | BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDelta | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDone | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsCompleted | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallInWsProgress | BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsInterpreting | BetaResponsesServerEvent.BetaResponseWsCompleted | BetaResponsesServerEvent.BetaResponseContentPartWsAdded | BetaResponsesServerEvent.BetaResponseContentPartWsDone | BetaResponsesServerEvent.BetaResponseWsCreated | BetaResponsesServerEvent.BetaResponseFileSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseFileSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseFileSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseShellCallCommandWsAdded | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDelta | BetaResponsesServerEvent.BetaResponseShellCallCommandWsDone | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDelta | BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDone | BetaResponsesServerEvent.BetaResponseInWsProgress | BetaResponsesServerEvent.BetaResponseWsFailed | BetaResponsesServerEvent.BetaResponseWsIncomplete | BetaResponsesServerEvent.BetaResponseOutputItemWsAdded | BetaResponsesServerEvent.BetaResponseOutputItemWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsAdded | BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsDone | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDone | BetaResponsesServerEvent.BetaResponseReasoningTextWsDelta | BetaResponsesServerEvent.BetaResponseReasoningTextWsDone | BetaResponsesServerEvent.BetaResponseRefusalWsDelta | BetaResponsesServerEvent.BetaResponseRefusalWsDone | BetaResponsesServerEvent.BetaResponseTextWsDelta | BetaResponsesServerEvent.BetaResponseTextWsDone | BetaResponsesServerEvent.BetaResponseWebSearchCallWsCompleted | BetaResponsesServerEvent.BetaResponseWebSearchCallInWsProgress | BetaResponsesServerEvent.BetaResponseWebSearchCallWsSearching | BetaResponsesServerEvent.BetaResponseImageGenCallWsCompleted | BetaResponsesServerEvent.BetaResponseImageGenCallWsGenerating | BetaResponsesServerEvent.BetaResponseImageGenCallInWsProgress | BetaResponsesServerEvent.BetaResponseImageGenCallPartialWsImage | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDelta | BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDone | BetaResponsesServerEvent.BetaResponseMcpCallWsCompleted | BetaResponsesServerEvent.BetaResponseMcpCallWsFailed | BetaResponsesServerEvent.BetaResponseMcpCallInWsProgress | BetaResponsesServerEvent.BetaResponseMcpListToolsWsCompleted | BetaResponsesServerEvent.BetaResponseMcpListToolsWsFailed | BetaResponsesServerEvent.BetaResponseMcpListToolsInWsProgress | BetaResponsesServerEvent.BetaResponseOutputTextAnnotationWsAdded | BetaResponsesServerEvent.BetaResponseWsQueued | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDelta | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDone | BetaResponsesServerEvent.BetaResponseWsStreamingError | BetaResponsesServerEvent.BetaResponseWsError | BetaResponseSteerAcceptedEvent | BetaResponseSteerPendingEvent | BetaResponseSteerFailedEvent | BetaResponseInjectCreatedEvent | BetaResponseInjectFailedEvent;
9200
9875
  export declare namespace BetaResponsesServerEvent {
9201
9876
  /**
9202
9877
  * Emitted when there is a partial audio response.
@@ -9450,6 +10125,10 @@ export declare namespace BetaResponsesServerEvent {
9450
10125
  }
9451
10126
  /**
9452
10127
  * An event that is emitted when a response finishes as incomplete.
10128
+ *
10129
+ * Over WebSocket, steering can finish a response with
10130
+ * `response.incomplete_details.reason` set to `steered`, followed automatically by
10131
+ * a successor `response.created` that commits the queued steering input.
9453
10132
  */
9454
10133
  interface BetaResponseWsIncomplete extends BetaResponseIncompleteEvent {
9455
10134
  /**
@@ -9839,6 +10518,34 @@ export declare namespace BetaResponsesServerEvent {
9839
10518
  headers?: {
9840
10519
  [key: string]: string;
9841
10520
  };
10521
+ misalignment?: Error.Misalignment;
10522
+ }
10523
+ namespace Error {
10524
+ interface Misalignment {
10525
+ /**
10526
+ * The public explanation for this block.
10527
+ */
10528
+ detailed_explanation?: string;
10529
+ /**
10530
+ * An optional classification; clients must accept additional values.
10531
+ */
10532
+ error_type?: (string & {}) | 'potentially_unintended_data_transfer' | 'potentially_unintended_data_access' | 'potentially_unintended_destructive_activity' | 'other';
10533
+ /**
10534
+ * An optional public continuation instruction.
10535
+ */
10536
+ steer?: Misalignment.Steer;
10537
+ }
10538
+ namespace Misalignment {
10539
+ /**
10540
+ * An optional public continuation instruction.
10541
+ */
10542
+ interface Steer {
10543
+ /**
10544
+ * The public continuation instruction.
10545
+ */
10546
+ message: string;
10547
+ }
10548
+ }
9842
10549
  }
9843
10550
  /**
9844
10551
  * The agent that owns this multi-agent streaming event.
@@ -10105,9 +10812,11 @@ export declare namespace BetaTool {
10105
10812
  * one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
10106
10813
  * the model will automatically determine the best background for the image.
10107
10814
  *
10108
- * Transparent backgrounds are available for supported GPT Image models. For
10109
- * `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
10110
- * using `transparent`, set the output format to `png` or `webp`.
10815
+ * `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
10816
+ * snapshots, support `opaque` and `transparent` backgrounds. Transparent
10817
+ * backgrounds are available for supported GPT Image models. For `gpt-image-2` and
10818
+ * `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
10819
+ * set the output format to `png` or `webp`.
10111
10820
  */
10112
10821
  background?: 'transparent' | 'opaque' | 'auto';
10113
10822
  /**
@@ -10124,10 +10833,12 @@ export declare namespace BetaTool {
10124
10833
  input_image_mask?: ImageGeneration.InputImageMask;
10125
10834
  /**
10126
10835
  * The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
10127
- * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`, or
10836
+ * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
10837
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
10838
+ * `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
10128
10839
  * `chatgpt-image-latest`. Default: `gpt-image-1`.
10129
10840
  */
10130
- model?: (string & {}) | 'gpt-image-1' | 'gpt-image-1-mini' | 'gpt-image-2' | 'gpt-image-2-2026-04-21' | 'gpt-image-1.5' | 'chatgpt-image-latest';
10841
+ 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';
10131
10842
  /**
10132
10843
  * Moderation level for the generated image. Default: `auto`.
10133
10844
  */
@@ -10147,22 +10858,25 @@ export declare namespace BetaTool {
10147
10858
  */
10148
10859
  partial_images?: number;
10149
10860
  /**
10150
- * The quality of the generated image. One of `low`, `medium`, `high`, or `auto`.
10151
- * Default: `auto`.
10152
- */
10153
- quality?: 'low' | 'medium' | 'high' | 'auto';
10154
- /**
10155
- * The size of the generated images. For `gpt-image-2` and
10156
- * `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
10157
- * strings, for example `1536x864`. Width and height must both be divisible by 16
10158
- * and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
10159
- * `2560x1440` are experimental, and the maximum supported resolution is
10160
- * `3840x2160`. The requested size must also satisfy the model's current pixel and
10161
- * edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
10162
- * supported by the GPT image models; `auto` is supported for models that allow
10163
- * automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
10164
- * `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
10165
- * `1024x1792`.
10861
+ * The quality of the generated image. The GPT image models support `low`,
10862
+ * `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
10863
+ * including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
10864
+ * `auto`.
10865
+ */
10866
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
10867
+ /**
10868
+ * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
10869
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
10870
+ * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
10871
+ * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
10872
+ * Width and height must both be divisible by 16 and the requested aspect ratio
10873
+ * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
10874
+ * the maximum supported resolution is `3840x2160`. The requested size must also
10875
+ * satisfy the model's current pixel and edge limits. The standard sizes
10876
+ * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
10877
+ * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
10878
+ * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
10879
+ * `1024x1024`, `1792x1024`, or `1024x1792`.
10166
10880
  */
10167
10881
  size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
10168
10882
  }
@@ -10547,13 +11261,13 @@ export interface ResponseCreateParamsBase {
10547
11261
  [key: string]: string;
10548
11262
  } | null;
10549
11263
  /**
10550
- * Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
11264
+ * Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
10551
11265
  * offers a wide range of models with different capabilities, performance
10552
11266
  * characteristics, and price points. Refer to the
10553
11267
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
10554
11268
  * available models.
10555
11269
  */
10556
- model?: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
11270
+ model?: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {});
10557
11271
  /**
10558
11272
  * Body param: Configuration for running moderation on the input and output of this
10559
11273
  * response.
@@ -10661,7 +11375,9 @@ export interface ResponseCreateParamsBase {
10661
11375
  service_tier?: BetaServiceTier | null;
10662
11376
  /**
10663
11377
  * Body param: Whether to store the generated model response for later retrieval
10664
- * via API.
11378
+ * via API. Defaults to true when omitted. If set to true, response data will be
11379
+ * stored for at least 30 days, subject to the
11380
+ * [data retention exceptions](/api/docs/guides/your-data#v1responses).
10665
11381
  */
10666
11382
  store?: boolean | null;
10667
11383
  /**
@@ -10845,6 +11561,11 @@ export declare namespace ResponseCreateParams {
10845
11561
  * for current details.
10846
11562
  */
10847
11563
  interface PromptCacheOptions {
11564
+ /**
11565
+ * The ID of a response to compare when diagnosing prompt cache reuse. Supplying
11566
+ * this field requests prompt cache diagnostics when the feature is enabled.
11567
+ */
11568
+ comparison_response_id?: string | null;
10848
11569
  /**
10849
11570
  * Controls whether OpenAI automatically creates an implicit cache breakpoint.
10850
11571
  * Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
@@ -11028,13 +11749,13 @@ export interface ResponseCancelParams {
11028
11749
  }
11029
11750
  export interface ResponseCompactParams {
11030
11751
  /**
11031
- * Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
11752
+ * Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
11032
11753
  * offers a wide range of models with different capabilities, performance
11033
11754
  * characteristics, and price points. Refer to the
11034
11755
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
11035
11756
  * available models.
11036
11757
  */
11037
- model: 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {}) | null;
11758
+ model: 'gpt-6-astra' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.5' | 'gpt-5.5-2026-04-23' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.4-mini-2026-03-17' | 'gpt-5.4-nano-2026-03-17' | 'gpt-5.3-chat-latest' | 'gpt-5.2' | 'gpt-5.2-2025-12-11' | 'gpt-5.2-chat-latest' | 'gpt-5.2-pro' | 'gpt-5.2-pro-2025-12-11' | 'gpt-5.1' | 'gpt-5.1-2025-11-13' | 'gpt-5.1-codex' | 'gpt-5.1-mini' | 'gpt-5.1-chat-latest' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5-2025-08-07' | 'gpt-5-mini-2025-08-07' | 'gpt-5-nano-2025-08-07' | 'gpt-5-chat-latest' | 'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-4.1-2025-04-14' | 'gpt-4.1-mini-2025-04-14' | 'gpt-4.1-nano-2025-04-14' | 'o4-mini' | 'o4-mini-2025-04-16' | 'o3' | 'o3-2025-04-16' | 'o3-mini' | 'o3-mini-2025-01-31' | 'o1' | 'o1-2024-12-17' | 'o1-preview' | 'o1-preview-2024-09-12' | 'o1-mini' | 'o1-mini-2024-09-12' | 'gpt-4o' | 'gpt-4o-2024-11-20' | 'gpt-4o-2024-08-06' | 'gpt-4o-2024-05-13' | 'gpt-4o-audio-preview' | 'gpt-4o-audio-preview-2024-10-01' | 'gpt-4o-audio-preview-2024-12-17' | 'gpt-4o-audio-preview-2025-06-03' | 'gpt-4o-mini-audio-preview' | 'gpt-4o-mini-audio-preview-2024-12-17' | 'gpt-4o-search-preview' | 'gpt-4o-mini-search-preview' | 'gpt-4o-search-preview-2025-03-11' | 'gpt-4o-mini-search-preview-2025-03-11' | 'chatgpt-4o-latest' | 'codex-mini-latest' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-0125-preview' | 'gpt-4-turbo-preview' | 'gpt-4-1106-preview' | 'gpt-4-vision-preview' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-1106' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo-16k-0613' | 'o1-pro' | 'o1-pro-2025-03-19' | 'o3-pro' | 'o3-pro-2025-06-10' | 'o3-deep-research' | 'o3-deep-research-2025-06-26' | 'o4-mini-deep-research' | 'o4-mini-deep-research-2025-06-26' | 'computer-use-preview' | 'computer-use-preview-2025-03-11' | 'gpt-5.5-pro' | 'gpt-5.5-pro-2026-04-23' | 'gpt-5-codex' | 'gpt-5-pro' | 'gpt-5-pro-2025-10-06' | 'gpt-5.1-codex-max' | 'gpt-daybreak-blue-latest' | 'gpt-daybreak-red-latest' | 'gpt-5.6-cyber' | (string & {}) | null;
11038
11759
  /**
11039
11760
  * Body param: Text, image, or file inputs to the model, used to generate a
11040
11761
  * response
@@ -11086,12 +11807,13 @@ export interface ResponseCompactParams {
11086
11807
  * request will be processed with the Flex Processing service tier. - To opt-in to
11087
11808
  * [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
11088
11809
  * `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
11089
- * Completions. The response will show `service_tier=priority` regardless of if you
11090
- * specify `service_tier=fast` or `priority` in your request. - When not set, the
11091
- * default behavior is 'auto'. When the `service_tier` parameter is set, the
11092
- * response body will include the `service_tier` value based on the processing mode
11093
- * actually used to serve the request. This response value may be different from
11094
- * the value set in the parameter.
11810
+ * Completions. For models with a dedicated Fast tier, either value resolves to
11811
+ * `service_tier=fast`; for other models, either value resolves to
11812
+ * `service_tier=priority`. - When not set, the default behavior is 'auto'. When
11813
+ * the `service_tier` parameter is set, the response body will include the
11814
+ * `service_tier` value based on the processing mode actually used to serve the
11815
+ * request. This response value may be different from the value set in the
11816
+ * parameter.
11095
11817
  */
11096
11818
  service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
11097
11819
  /**
@@ -11130,7 +11852,7 @@ export declare namespace ResponseCompactParams {
11130
11852
  }
11131
11853
  }
11132
11854
  export declare namespace Responses {
11133
- 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 BetaResponseCompactionItem as BetaResponseCompactionItem, type BetaResponseCompactionItemParam as BetaResponseCompactionItemParam, type BetaResponseCompletedEvent as BetaResponseCompletedEvent, type BetaResponseComputerToolCall as BetaResponseComputerToolCall, type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem, type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot, 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 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, };
11855
+ 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 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, };
11134
11856
  export { InputItems as InputItems, type BetaResponseItemList as BetaResponseItemList, type InputItemListParams as InputItemListParams, };
11135
11857
  export { InputTokens as InputTokens, type InputTokenCountResponse as InputTokenCountResponse, type InputTokenCountParams as InputTokenCountParams, };
11136
11858
  }