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
@@ -170,7 +170,7 @@ export class Responses extends APIResource {
170
170
  * ```ts
171
171
  * const betaCompactedResponse =
172
172
  * await client.beta.responses.compact({
173
- * model: 'gpt-5.6-sol',
173
+ * model: 'gpt-6-astra',
174
174
  * });
175
175
  * ```
176
176
  */
@@ -613,6 +613,12 @@ export interface BetaCustomTool {
613
613
  */
614
614
  allowed_callers?: Array<'direct' | 'programmatic'> | null;
615
615
 
616
+ /**
617
+ * Whether the tool response can be returned asynchronously versus immediately
618
+ * returned on next response creation.
619
+ */
620
+ async?: boolean;
621
+
616
622
  /**
617
623
  * Whether this tool should be deferred and discovered via tool search.
618
624
  */
@@ -901,6 +907,8 @@ export interface BetaFunctionTool {
901
907
  */
902
908
  allowed_callers?: Array<'direct' | 'programmatic'> | null;
903
909
 
910
+ async?: boolean;
911
+
904
912
  /**
905
913
  * Whether this function is deferred and loaded via tool search.
906
914
  */
@@ -1057,6 +1065,12 @@ export namespace BetaNamespaceTool {
1057
1065
  */
1058
1066
  allowed_callers?: Array<'direct' | 'programmatic'> | null;
1059
1067
 
1068
+ /**
1069
+ * Whether the tool response can be returned asynchronously versus immediately
1070
+ * returned on next response creation.
1071
+ */
1072
+ async?: boolean;
1073
+
1060
1074
  /**
1061
1075
  * Whether this function should be deferred and discovered via tool search.
1062
1076
  */
@@ -1122,13 +1136,14 @@ export interface BetaResponse {
1122
1136
  metadata: { [key: string]: string } | null;
1123
1137
 
1124
1138
  /**
1125
- * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
1139
+ * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
1126
1140
  * range of models with different capabilities, performance characteristics, and
1127
1141
  * price points. Refer to the
1128
1142
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
1129
1143
  * available models.
1130
1144
  */
1131
1145
  model:
1146
+ | 'gpt-6-astra'
1132
1147
  | 'gpt-5.6-sol'
1133
1148
  | 'gpt-5.6-terra'
1134
1149
  | 'gpt-5.6-luna'
@@ -1363,6 +1378,15 @@ export interface BetaResponse {
1363
1378
  */
1364
1379
  prompt?: BetaResponsePrompt | null;
1365
1380
 
1381
+ /**
1382
+ * Prompt cache diagnostics requested for this response.
1383
+ */
1384
+ prompt_cache_diagnostics?:
1385
+ | BetaResponse.CacheMiss
1386
+ | BetaResponse.CacheHit
1387
+ | BetaResponse.ComparisonResponseNotFound
1388
+ | BetaResponse.Unavailable;
1389
+
1366
1390
  /**
1367
1391
  * Used by OpenAI to cache responses for similar requests to optimize your cache
1368
1392
  * hit rates. Replaces the `user` field.
@@ -1497,9 +1521,11 @@ export namespace BetaResponse {
1497
1521
  */
1498
1522
  export interface IncompleteDetails {
1499
1523
  /**
1500
- * The reason why the response is incomplete.
1524
+ * The reason why the response is incomplete. `steered` means the response stopped
1525
+ * at a safe output boundary after a WebSocket `response.steer` event. The server
1526
+ * can then create a successor response automatically with the queued input.
1501
1527
  */
1502
- reason?: 'max_output_tokens' | 'max_messages' | 'content_filter';
1528
+ reason?: 'max_output_tokens' | 'max_messages' | 'content_filter' | 'steered';
1503
1529
  }
1504
1530
 
1505
1531
  export interface BetaSpecificProgrammaticToolCallingParam {
@@ -1652,6 +1678,47 @@ export namespace BetaResponse {
1652
1678
  }
1653
1679
  }
1654
1680
 
1681
+ export interface CacheMiss {
1682
+ /**
1683
+ * The estimated number of input tokens affected after the first detected
1684
+ * divergence.
1685
+ */
1686
+ cache_missed_tokens: number;
1687
+
1688
+ /**
1689
+ * The reason prompt cache reuse did not occur.
1690
+ */
1691
+ reason:
1692
+ | 'model_changed'
1693
+ | 'prompt_cache_key_changed'
1694
+ | 'tools_changed'
1695
+ | 'text_format_changed'
1696
+ | 'reasoning_effort_changed'
1697
+ | 'verbosity_changed'
1698
+ | 'context_compacted'
1699
+ | 'input_changed'
1700
+ | 'service_tier_changed';
1701
+
1702
+ type: 'cache_miss';
1703
+
1704
+ /**
1705
+ * The raw token count of the reusable prefix in the compared response.
1706
+ */
1707
+ comparison_reusable_tokens?: number;
1708
+ }
1709
+
1710
+ export interface CacheHit {
1711
+ type: 'cache_hit';
1712
+ }
1713
+
1714
+ export interface ComparisonResponseNotFound {
1715
+ type: 'comparison_response_not_found';
1716
+ }
1717
+
1718
+ export interface Unavailable {
1719
+ type: 'unavailable';
1720
+ }
1721
+
1655
1722
  /**
1656
1723
  * The prompt-caching options that were applied to the response. Supported for
1657
1724
  * `gpt-5.6` and later models.
@@ -1666,6 +1733,11 @@ export namespace BetaResponse {
1666
1733
  * The minimum lifetime applied to each cache breakpoint.
1667
1734
  */
1668
1735
  ttl: '30m';
1736
+
1737
+ /**
1738
+ * The response ID supplied as the prompt cache diagnostics comparison.
1739
+ */
1740
+ comparison_response_id?: string | null;
1669
1741
  }
1670
1742
 
1671
1743
  /**
@@ -2664,6 +2736,105 @@ export interface BetaResponseComputerToolCallOutputScreenshot {
2664
2736
  image_url?: string;
2665
2737
  }
2666
2738
 
2739
+ /**
2740
+ * A configuration update that applies to subsequent responses until it is replaced
2741
+ * by another configuration update.
2742
+ */
2743
+ export interface BetaResponseConfigurationUpdateItem {
2744
+ /**
2745
+ * The unique ID of the configuration update item.
2746
+ */
2747
+ id: string;
2748
+
2749
+ /**
2750
+ * The item type. Always `configuration_update`.
2751
+ */
2752
+ type: 'configuration_update';
2753
+
2754
+ /**
2755
+ * The agent that produced this item.
2756
+ */
2757
+ agent?: BetaResponseConfigurationUpdateItem.Agent;
2758
+
2759
+ /**
2760
+ * The reasoning configuration applied by this update.
2761
+ */
2762
+ reasoning?: BetaResponseConfigurationUpdateItem.Reasoning;
2763
+ }
2764
+
2765
+ export namespace BetaResponseConfigurationUpdateItem {
2766
+ /**
2767
+ * The agent that produced this item.
2768
+ */
2769
+ export interface Agent {
2770
+ /**
2771
+ * The canonical name of the agent that produced this item.
2772
+ */
2773
+ agent_name: string;
2774
+ }
2775
+
2776
+ /**
2777
+ * The reasoning configuration applied by this update.
2778
+ */
2779
+ export interface Reasoning {
2780
+ /**
2781
+ * The reasoning effort used for subsequent responses until another configuration
2782
+ * update replaces it.
2783
+ */
2784
+ effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
2785
+ }
2786
+ }
2787
+
2788
+ /**
2789
+ * An update to the conversation's response configuration. The configuration
2790
+ * remains in effect for subsequent responses until it is replaced by another
2791
+ * configuration update.
2792
+ */
2793
+ export interface BetaResponseConfigurationUpdateItemParam {
2794
+ /**
2795
+ * The item type. Always `configuration_update`.
2796
+ */
2797
+ type: 'configuration_update';
2798
+
2799
+ /**
2800
+ * The unique ID of the configuration update item.
2801
+ */
2802
+ id?: string | null;
2803
+
2804
+ /**
2805
+ * The agent that produced this item.
2806
+ */
2807
+ agent?: BetaResponseConfigurationUpdateItemParam.Agent | null;
2808
+
2809
+ /**
2810
+ * Updates to reasoning configuration. Only effort is supported.
2811
+ */
2812
+ reasoning?: BetaResponseConfigurationUpdateItemParam.Reasoning;
2813
+ }
2814
+
2815
+ export namespace BetaResponseConfigurationUpdateItemParam {
2816
+ /**
2817
+ * The agent that produced this item.
2818
+ */
2819
+ export interface Agent {
2820
+ /**
2821
+ * The canonical name of the agent that produced this item.
2822
+ */
2823
+ agent_name: string;
2824
+ }
2825
+
2826
+ /**
2827
+ * Updates to reasoning configuration. Only effort is supported.
2828
+ */
2829
+ export interface Reasoning {
2830
+ /**
2831
+ * The reasoning effort to use for subsequent responses until another configuration
2832
+ * update replaces it.
2833
+ */
2834
+ effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
2835
+ }
2836
+ }
2837
+
2667
2838
  /**
2668
2839
  * Represents a container created with /v1/containers.
2669
2840
  */
@@ -2919,6 +3090,11 @@ export interface BetaResponseCustomToolCall {
2919
3090
  */
2920
3091
  agent?: BetaResponseCustomToolCall.Agent | null;
2921
3092
 
3093
+ /**
3094
+ * Whether the custom tool call runs asynchronously.
3095
+ */
3096
+ async?: boolean;
3097
+
2922
3098
  /**
2923
3099
  * The execution context that produced this tool call.
2924
3100
  */
@@ -3171,6 +3347,7 @@ export interface BetaResponseError {
3171
3347
  | 'invalid_prompt'
3172
3348
  | 'data_residency_mismatch'
3173
3349
  | 'bio_policy'
3350
+ | 'misalignment_policy_violation'
3174
3351
  | 'vector_store_timeout'
3175
3352
  | 'invalid_image'
3176
3353
  | 'invalid_image_format'
@@ -3191,6 +3368,44 @@ export interface BetaResponseError {
3191
3368
  * A human-readable description of the error.
3192
3369
  */
3193
3370
  message: string;
3371
+
3372
+ misalignment?: BetaResponseError.Misalignment;
3373
+ }
3374
+
3375
+ export namespace BetaResponseError {
3376
+ export interface Misalignment {
3377
+ /**
3378
+ * The public explanation for this block.
3379
+ */
3380
+ detailed_explanation?: string;
3381
+
3382
+ /**
3383
+ * An optional classification; clients must accept additional values.
3384
+ */
3385
+ error_type?:
3386
+ | (string & {})
3387
+ | 'potentially_unintended_data_transfer'
3388
+ | 'potentially_unintended_data_access'
3389
+ | 'potentially_unintended_destructive_activity'
3390
+ | 'other';
3391
+
3392
+ /**
3393
+ * An optional public continuation instruction.
3394
+ */
3395
+ steer?: Misalignment.Steer;
3396
+ }
3397
+
3398
+ export namespace Misalignment {
3399
+ /**
3400
+ * An optional public continuation instruction.
3401
+ */
3402
+ export interface Steer {
3403
+ /**
3404
+ * The public continuation instruction.
3405
+ */
3406
+ message: string;
3407
+ }
3408
+ }
3194
3409
  }
3195
3410
 
3196
3411
  /**
@@ -3628,11 +3843,6 @@ export interface BetaResponseFunctionCallArgumentsDoneEvent {
3628
3843
  */
3629
3844
  item_id: string;
3630
3845
 
3631
- /**
3632
- * The name of the function that was called.
3633
- */
3634
- name: string;
3635
-
3636
3846
  /**
3637
3847
  * The index of the output item.
3638
3848
  */
@@ -3989,6 +4199,11 @@ export interface BetaResponseFunctionToolCall {
3989
4199
  */
3990
4200
  agent?: BetaResponseFunctionToolCall.Agent | null;
3991
4201
 
4202
+ /**
4203
+ * Whether the function tool call runs asynchronously.
4204
+ */
4205
+ async?: boolean;
4206
+
3992
4207
  /**
3993
4208
  * The execution context that produced this tool call.
3994
4209
  */
@@ -4165,7 +4380,7 @@ export interface BetaResponseFunctionWebSearch {
4165
4380
  /**
4166
4381
  * The status of the web search tool call.
4167
4382
  */
4168
- status: 'in_progress' | 'searching' | 'completed' | 'failed';
4383
+ status: 'in_progress' | 'searching' | 'completed' | 'failed' | 'incomplete';
4169
4384
 
4170
4385
  /**
4171
4386
  * The type of the web search tool call. Always `web_search_call`.
@@ -4539,6 +4754,10 @@ export type BetaResponseIncludable =
4539
4754
 
4540
4755
  /**
4541
4756
  * An event that is emitted when a response finishes as incomplete.
4757
+ *
4758
+ * Over WebSocket, steering can finish a response with
4759
+ * `response.incomplete_details.reason` set to `steered`, followed automatically by
4760
+ * a successor `response.created` that commits the queued steering input.
4542
4761
  */
4543
4762
  export interface BetaResponseIncompleteEvent {
4544
4763
  /**
@@ -4956,6 +5175,7 @@ export type BetaResponseInputItem =
4956
5175
  | BetaResponseInputItem.ToolSearchCall
4957
5176
  | BetaResponseToolSearchOutputItemParam
4958
5177
  | BetaResponseInputItem.AdditionalTools
5178
+ | BetaResponseConfigurationUpdateItemParam
4959
5179
  | BetaResponseReasoningItem
4960
5180
  | BetaResponseCompactionItemParam
4961
5181
  | BetaResponseInputItem.ImageGenerationCall
@@ -5564,6 +5784,17 @@ export namespace BetaResponseInputItem {
5564
5784
  * The agent that produced this item.
5565
5785
  */
5566
5786
  agent?: ImageGenerationCall.Agent | null;
5787
+
5788
+ /**
5789
+ * The quality of the image generated by the image generation tool call. One of
5790
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
5791
+ */
5792
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
5793
+
5794
+ /**
5795
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
5796
+ */
5797
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
5567
5798
  }
5568
5799
 
5569
5800
  export namespace ImageGenerationCall {
@@ -6608,6 +6839,7 @@ export type BetaResponseItem =
6608
6839
  | BetaResponseToolSearchCall
6609
6840
  | BetaResponseToolSearchOutputItem
6610
6841
  | BetaResponseItem.AdditionalTools
6842
+ | BetaResponseConfigurationUpdateItem
6611
6843
  | BetaResponseReasoningItem
6612
6844
  | BetaResponseItem.Program
6613
6845
  | BetaResponseItem.ProgramOutput
@@ -7041,6 +7273,17 @@ export namespace BetaResponseItem {
7041
7273
  * The agent that produced this item.
7042
7274
  */
7043
7275
  agent?: ImageGenerationCall.Agent | null;
7276
+
7277
+ /**
7278
+ * The quality of the image generated by the image generation tool call. One of
7279
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
7280
+ */
7281
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
7282
+
7283
+ /**
7284
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
7285
+ */
7286
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
7044
7287
  }
7045
7288
 
7046
7289
  export namespace ImageGenerationCall {
@@ -8245,6 +8488,17 @@ export namespace BetaResponseOutputItem {
8245
8488
  * The agent that produced this item.
8246
8489
  */
8247
8490
  agent?: ImageGenerationCall.Agent | null;
8491
+
8492
+ /**
8493
+ * The quality of the image generated by the image generation tool call. One of
8494
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
8495
+ */
8496
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
8497
+
8498
+ /**
8499
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
8500
+ */
8501
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
8248
8502
  }
8249
8503
 
8250
8504
  export namespace ImageGenerationCall {
@@ -10052,6 +10306,566 @@ export type BetaResponseStatus =
10052
10306
  | 'queued'
10053
10307
  | 'incomplete';
10054
10308
 
10309
+ /**
10310
+ * Emitted when steering input has been validated and queued. Acceptance means the
10311
+ * server owns the input, not that it has been applied. The successor's
10312
+ * `response.created` event is the commit point. If accepted input cannot be
10313
+ * committed, `response.steer.failed` returns it with the same steering ID.
10314
+ *
10315
+ * When the response stops for client-owned tool output or approval, the input
10316
+ * remains queued and `response.steer.pending` is emitted after
10317
+ * `response.completed`. Fill the pending event's `required_input` stubs with saved
10318
+ * results and send one matching explicit `response.create` per parent. Do not
10319
+ * resend accepted input while it is still queued.
10320
+ */
10321
+ export interface BetaResponseSteerAcceptedEvent {
10322
+ /**
10323
+ * The sequence number for this event.
10324
+ */
10325
+ sequence_number: number;
10326
+
10327
+ /**
10328
+ * The accepted steering submission.
10329
+ */
10330
+ steer: BetaResponseSteerAcceptedEvent.Steer;
10331
+
10332
+ /**
10333
+ * The event discriminator. Always `response.steer.accepted`.
10334
+ */
10335
+ type: 'response.steer.accepted';
10336
+
10337
+ /**
10338
+ * The WebSocket lane that emitted this event. This field is present when the
10339
+ * target response's `response.create` event supplied a `stream_id`.
10340
+ */
10341
+ stream_id?: string;
10342
+ }
10343
+
10344
+ export namespace BetaResponseSteerAcceptedEvent {
10345
+ /**
10346
+ * The accepted steering submission.
10347
+ */
10348
+ export interface Steer {
10349
+ /**
10350
+ * The ID assigned to the steering submission.
10351
+ */
10352
+ id: string;
10353
+
10354
+ /**
10355
+ * The ID of the response being steered.
10356
+ */
10357
+ previous_response_id: string;
10358
+ }
10359
+ }
10360
+
10361
+ /**
10362
+ * A machine-readable steering error code. Clients should handle unknown values
10363
+ * because additional codes may be introduced. Known values include:
10364
+ *
10365
+ * - `response_not_found`: The target response is not available on this connection.
10366
+ * - `invalid_input`: The event or input failed validation.
10367
+ * - `steering_not_supported`: The model or response execution mode does not
10368
+ * support steering.
10369
+ * - `too_many_pending_steers`: Too much steering input is pending for the
10370
+ * response.
10371
+ * - `response_already_completed`: The response completed and is no longer
10372
+ * accepting steering input.
10373
+ * - `response_not_active`: The response is no longer accepting steering input.
10374
+ * - `successor_creation_failed`: The successor response could not be created.
10375
+ */
10376
+ export type BetaResponseSteerErrorCode =
10377
+ | 'response_not_found'
10378
+ | 'invalid_input'
10379
+ | 'steering_not_supported'
10380
+ | 'too_many_pending_steers'
10381
+ | 'response_already_completed'
10382
+ | 'response_not_active'
10383
+ | 'successor_creation_failed'
10384
+ | (string & {});
10385
+
10386
+ /**
10387
+ * Queues user input to steer a response on this WebSocket connection. Input can
10388
+ * contain text, images, and files. Steering is supported only for single-agent
10389
+ * responses on models and execution modes that support steering. Responses bound
10390
+ * to a conversation or using automatic compaction do not support steering.
10391
+ *
10392
+ * A `response.steer.accepted` event acknowledges that the server owns the queued
10393
+ * input, not that it has been applied. The successor's `response.created` event is
10394
+ * the commit point. Input that cannot be committed is returned in
10395
+ * `response.steer.failed`.
10396
+ *
10397
+ * Steering may cause the active response to finish at a safe output boundary with
10398
+ * `response.incomplete` and `incomplete_details.reason` set to `steered`, followed
10399
+ * automatically by a successor `response.created`. Normal completion can also be
10400
+ * followed by an automatic successor. Automatic successors inherit the previous
10401
+ * response's settings and continue from it with the queued input.
10402
+ *
10403
+ * If the response stops for client-owned tool output or approval, accepted
10404
+ * steering input remains queued and `response.steer.pending` is emitted after
10405
+ * `response.completed`. Fill the `required_input` stubs from that event with saved
10406
+ * tool results or approval decisions, and send one explicit `response.create` per
10407
+ * parent with the same `previous_response_id` and WebSocket lane. Do not rerun
10408
+ * tools or resend accepted steering input. The queued input is prepended in
10409
+ * submission order to that request's input, and the explicit request retains its
10410
+ * own settings.
10411
+ *
10412
+ * This event accepts only `type`, `previous_response_id`, and `input`. Do not send
10413
+ * `stream_id`; the target response determines the WebSocket lane.
10414
+ */
10415
+ export interface BetaResponseSteerEvent {
10416
+ /**
10417
+ * Input to queue for a continuation of the response. Uses the same string or
10418
+ * input-item shape as `response.create.input`, with a non-empty array when
10419
+ * supplying input items.
10420
+ *
10421
+ * Steering accepts only messages with the `user` role. Each message may contain
10422
+ * only `type`, `role`, and `content`, with `content` as a string or an array of
10423
+ * `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
10424
+ * `message`. Other roles, tool outputs, and item types are not supported for
10425
+ * steering.
10426
+ */
10427
+ input: BetaResponseSteerInput;
10428
+
10429
+ /**
10430
+ * The ID of the response to steer on this WebSocket connection.
10431
+ */
10432
+ previous_response_id: string;
10433
+
10434
+ /**
10435
+ * The event discriminator. Always `response.steer`.
10436
+ */
10437
+ type: 'response.steer';
10438
+ }
10439
+
10440
+ /**
10441
+ * Emitted when steering input is rejected or cannot be committed to a successor
10442
+ * response. Returns the original, uncommitted input so the client can carry it
10443
+ * into `response.create` when appropriate. Invalid input must be corrected before
10444
+ * retrying.
10445
+ *
10446
+ * Failures after acceptance include the same steering ID. Failures before an ID is
10447
+ * allocated omit `steer.id`. A lost connection or missing acknowledgement leaves
10448
+ * the outcome unknown; it is not proof that the input was rejected.
10449
+ */
10450
+ export interface BetaResponseSteerFailedEvent {
10451
+ /**
10452
+ * Information about why the input could not be committed.
10453
+ */
10454
+ error: BetaResponseSteerFailedEvent.Error;
10455
+
10456
+ /**
10457
+ * The sequence number for this event.
10458
+ */
10459
+ sequence_number: number;
10460
+
10461
+ /**
10462
+ * The steering submission that could not be committed.
10463
+ */
10464
+ steer: BetaResponseSteerFailedEvent.Steer;
10465
+
10466
+ /**
10467
+ * The event discriminator. Always `response.steer.failed`.
10468
+ */
10469
+ type: 'response.steer.failed';
10470
+
10471
+ /**
10472
+ * The WebSocket lane that emitted this event, when the target response is
10473
+ * available and its `response.create` event supplied a `stream_id`.
10474
+ */
10475
+ stream_id?: string;
10476
+ }
10477
+
10478
+ export namespace BetaResponseSteerFailedEvent {
10479
+ /**
10480
+ * Information about why the input could not be committed.
10481
+ */
10482
+ export interface Error {
10483
+ /**
10484
+ * A machine-readable steering error code. Clients should handle unknown values
10485
+ * because additional codes may be introduced. Known values include:
10486
+ *
10487
+ * - `response_not_found`: The target response is not available on this connection.
10488
+ * - `invalid_input`: The event or input failed validation.
10489
+ * - `steering_not_supported`: The model or response execution mode does not
10490
+ * support steering.
10491
+ * - `too_many_pending_steers`: Too much steering input is pending for the
10492
+ * response.
10493
+ * - `response_already_completed`: The response completed and is no longer
10494
+ * accepting steering input.
10495
+ * - `response_not_active`: The response is no longer accepting steering input.
10496
+ * - `successor_creation_failed`: The successor response could not be created.
10497
+ */
10498
+ code: ResponsesAPI.BetaResponseSteerErrorCode;
10499
+
10500
+ /**
10501
+ * A human-readable description of the error.
10502
+ */
10503
+ message: string;
10504
+
10505
+ /**
10506
+ * The error type. Always `invalid_request_error`.
10507
+ */
10508
+ type: 'invalid_request_error';
10509
+ }
10510
+
10511
+ /**
10512
+ * The steering submission that could not be committed.
10513
+ */
10514
+ export interface Steer {
10515
+ /**
10516
+ * Input to queue for a continuation of the response. Uses the same string or
10517
+ * input-item shape as `response.create.input`, with a non-empty array when
10518
+ * supplying input items.
10519
+ *
10520
+ * Steering accepts only messages with the `user` role. Each message may contain
10521
+ * only `type`, `role`, and `content`, with `content` as a string or an array of
10522
+ * `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
10523
+ * `message`. Other roles, tool outputs, and item types are not supported for
10524
+ * steering.
10525
+ */
10526
+ input: ResponsesAPI.BetaResponseSteerInput;
10527
+
10528
+ /**
10529
+ * The ID of the response that was targeted for steering.
10530
+ */
10531
+ previous_response_id: string;
10532
+
10533
+ /**
10534
+ * The ID assigned to the steering submission, if one was allocated.
10535
+ */
10536
+ id?: string;
10537
+ }
10538
+ }
10539
+
10540
+ /**
10541
+ * Input to queue for a continuation of the response. Uses the same string or
10542
+ * input-item shape as `response.create.input`, with a non-empty array when
10543
+ * supplying input items.
10544
+ *
10545
+ * Steering accepts only messages with the `user` role. Each message may contain
10546
+ * only `type`, `role`, and `content`, with `content` as a string or an array of
10547
+ * `input_text`, `input_image`, and `input_file` parts. The optional `type` must be
10548
+ * `message`. Other roles, tool outputs, and item types are not supported for
10549
+ * steering.
10550
+ */
10551
+ export type BetaResponseSteerInput =
10552
+ | string
10553
+ | Array<ResponseSteerInputItemList.Message | ResponseSteerInputItemList.FunctionCallOutput>;
10554
+
10555
+ export namespace ResponseSteerInputItemList {
10556
+ export interface Message {
10557
+ /**
10558
+ * The message content, as an array of content parts.
10559
+ */
10560
+ content: Array<ResponsesAPI.BetaResponseSteerInputContent> | string;
10561
+
10562
+ /**
10563
+ * The message role. Always `user`.
10564
+ */
10565
+ role: 'user';
10566
+
10567
+ /**
10568
+ * The item type. Always `message`.
10569
+ */
10570
+ type: 'message';
10571
+
10572
+ /**
10573
+ * The unique ID of this message item.
10574
+ */
10575
+ id?: string | null;
10576
+
10577
+ /**
10578
+ * The agent that produced this item.
10579
+ */
10580
+ agent?: Message.Agent | null;
10581
+
10582
+ /**
10583
+ * The status of the message item.
10584
+ */
10585
+ status?: string | null;
10586
+ }
10587
+
10588
+ export namespace Message {
10589
+ /**
10590
+ * The agent that produced this item.
10591
+ */
10592
+ export interface Agent {
10593
+ /**
10594
+ * The canonical name of the agent that produced this item.
10595
+ */
10596
+ agent_name: string;
10597
+ }
10598
+ }
10599
+
10600
+ /**
10601
+ * The output of a function tool call.
10602
+ */
10603
+ export interface FunctionCallOutput {
10604
+ /**
10605
+ * Text, image, or file output of the function tool call.
10606
+ */
10607
+ output: string | ResponsesAPI.BetaResponseFunctionCallOutputItemList;
10608
+
10609
+ /**
10610
+ * The type of the function tool call output. Always `function_call_output`.
10611
+ */
10612
+ type: 'function_call_output';
10613
+
10614
+ /**
10615
+ * The unique ID of the function tool call output. Populated when this item is
10616
+ * returned via API.
10617
+ */
10618
+ id?: string | null;
10619
+
10620
+ /**
10621
+ * The agent that produced this item.
10622
+ */
10623
+ agent?: FunctionCallOutput.Agent | null;
10624
+
10625
+ /**
10626
+ * The unique ID of the function tool call generated by the model.
10627
+ */
10628
+ call_id?: string | null;
10629
+
10630
+ /**
10631
+ * The execution context that produced this tool call.
10632
+ */
10633
+ caller?: FunctionCallOutput.Direct | FunctionCallOutput.Program | null;
10634
+
10635
+ /**
10636
+ * The name of the tool that produced the output.
10637
+ */
10638
+ name?: string | null;
10639
+
10640
+ /**
10641
+ * The namespace of the tool that produced the output.
10642
+ */
10643
+ namespace?: string | null;
10644
+
10645
+ /**
10646
+ * The status of the item. One of `in_progress`, `completed`, or `incomplete`.
10647
+ * Populated when items are returned via API.
10648
+ */
10649
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
10650
+ }
10651
+
10652
+ export namespace FunctionCallOutput {
10653
+ /**
10654
+ * The agent that produced this item.
10655
+ */
10656
+ export interface Agent {
10657
+ /**
10658
+ * The canonical name of the agent that produced this item.
10659
+ */
10660
+ agent_name: string;
10661
+ }
10662
+
10663
+ export interface Direct {
10664
+ /**
10665
+ * The caller type. Always `direct`.
10666
+ */
10667
+ type: 'direct';
10668
+ }
10669
+
10670
+ export interface Program {
10671
+ /**
10672
+ * The call ID of the program item that produced this tool call.
10673
+ */
10674
+ caller_id: string;
10675
+
10676
+ /**
10677
+ * The caller type. Always `program`.
10678
+ */
10679
+ type: 'program';
10680
+ }
10681
+ }
10682
+ }
10683
+
10684
+ /**
10685
+ * A piece of message content, such as text, an image, or a file.
10686
+ */
10687
+ export type BetaResponseSteerInputContent =
10688
+ | BetaResponseInputTextContent
10689
+ | BetaResponseInputImageContent
10690
+ | BetaResponseInputFileContent;
10691
+
10692
+ /**
10693
+ * Emitted when accepted steering input remains queued after the target response
10694
+ * completes. The server still owns the input. Do not resend it. The successor's
10695
+ * `response.created` event is the commit point.
10696
+ *
10697
+ * When `reason` is `waiting_for_required_input`, this event follows
10698
+ * `response.completed` while the response waits for the tool results or approval
10699
+ * decisions identified by `required_input`. Copy those stubs, fill their result
10700
+ * fields using the ordinary `response.create` input schemas, and submit one
10701
+ * continuation per parent with the same `previous_response_id` and WebSocket lane.
10702
+ * Use saved results without rerunning tools. The queued steering input is
10703
+ * prepended in submission order to the continuation's input. That explicit request
10704
+ * retains its own settings.
10705
+ *
10706
+ * This notification is emitted at most once per steering submission. Multiple
10707
+ * submissions for the same parent can report the same required inputs; they do not
10708
+ * each require a separate continuation.
10709
+ */
10710
+ export interface BetaResponseSteerPendingEvent {
10711
+ /**
10712
+ * An extensible enum describing why accepted steering input is still queued.
10713
+ * Clients should handle unknown values because additional reasons may be
10714
+ * introduced. Known values include:
10715
+ *
10716
+ * - `waiting_for_required_input`: The response is waiting for the tool results or
10717
+ * approval decisions identified by `required_input`.
10718
+ */
10719
+ reason: BetaResponseSteerPendingReason;
10720
+
10721
+ /**
10722
+ * Input stubs identifying outstanding client-owned tool results or approval
10723
+ * decisions. Each stub contains identifying fields only; the client supplies the
10724
+ * result before including it in `response.create`.
10725
+ */
10726
+ required_input: Array<BetaResponseSteerRequiredInput>;
10727
+
10728
+ /**
10729
+ * The sequence number for this event.
10730
+ */
10731
+ sequence_number: number;
10732
+
10733
+ /**
10734
+ * The steering submission that remains queued.
10735
+ */
10736
+ steer: BetaResponseSteerPendingEvent.Steer;
10737
+
10738
+ /**
10739
+ * The event discriminator. Always `response.steer.pending`.
10740
+ */
10741
+ type: 'response.steer.pending';
10742
+
10743
+ /**
10744
+ * The WebSocket lane that emitted this event. This field is present when the
10745
+ * target response's `response.create` event supplied a `stream_id`.
10746
+ */
10747
+ stream_id?: string;
10748
+ }
10749
+
10750
+ export namespace BetaResponseSteerPendingEvent {
10751
+ /**
10752
+ * The steering submission that remains queued.
10753
+ */
10754
+ export interface Steer {
10755
+ /**
10756
+ * The ID assigned to the steering submission.
10757
+ */
10758
+ id: string;
10759
+
10760
+ /**
10761
+ * The ID of the response being steered.
10762
+ */
10763
+ previous_response_id: string;
10764
+ }
10765
+ }
10766
+
10767
+ /**
10768
+ * An extensible enum describing why accepted steering input is still queued.
10769
+ * Clients should handle unknown values because additional reasons may be
10770
+ * introduced. Known values include:
10771
+ *
10772
+ * - `waiting_for_required_input`: The response is waiting for the tool results or
10773
+ * approval decisions identified by `required_input`.
10774
+ */
10775
+ export type BetaResponseSteerPendingReason = 'waiting_for_required_input' | (string & {});
10776
+
10777
+ /**
10778
+ * An input stub identifying an outstanding client-owned tool result or approval
10779
+ * decision. Copy the stub and fill the result fields using the corresponding
10780
+ * `response.create` input schema. Use saved results without rerunning the tool.
10781
+ * The server does not supply results, approval decisions, or safety
10782
+ * acknowledgements in these stubs.
10783
+ */
10784
+ export type BetaResponseSteerRequiredInput =
10785
+ | BetaResponseSteerRequiredInput.FunctionCallOutput
10786
+ | BetaResponseSteerRequiredInput.CustomToolCallOutput
10787
+ | BetaResponseSteerRequiredInput.ComputerCallOutput
10788
+ | BetaResponseSteerRequiredInput.ShellCallOutput
10789
+ | BetaResponseSteerRequiredInput.ApplyPatchCallOutput
10790
+ | BetaResponseSteerRequiredInput.ToolSearchOutput
10791
+ | BetaResponseSteerRequiredInput.McpApprovalResponse;
10792
+
10793
+ export namespace BetaResponseSteerRequiredInput {
10794
+ /**
10795
+ * Supply `output` using the function tool call output input schema.
10796
+ */
10797
+ export interface FunctionCallOutput {
10798
+ call_id: string;
10799
+
10800
+ name: string;
10801
+
10802
+ type: 'function_call_output';
10803
+ }
10804
+
10805
+ /**
10806
+ * Supply `output` using the custom tool call output input schema. The original
10807
+ * custom tool call supplies the tool's name.
10808
+ */
10809
+ export interface CustomToolCallOutput {
10810
+ call_id: string;
10811
+
10812
+ type: 'custom_tool_call_output';
10813
+ }
10814
+
10815
+ /**
10816
+ * Supply `output` using the computer tool call output input schema, including any
10817
+ * required `acknowledged_safety_checks`.
10818
+ */
10819
+ export interface ComputerCallOutput {
10820
+ call_id: string;
10821
+
10822
+ type: 'computer_call_output';
10823
+ }
10824
+
10825
+ /**
10826
+ * Supply `output` using the shell tool call output input schema. Each output entry
10827
+ * includes `stdout`, `stderr`, and `outcome`.
10828
+ */
10829
+ export interface ShellCallOutput {
10830
+ call_id: string;
10831
+
10832
+ type: 'shell_call_output';
10833
+ }
10834
+
10835
+ /**
10836
+ * Supply `status` and optional `output` using the apply patch tool call output
10837
+ * input schema.
10838
+ */
10839
+ export interface ApplyPatchCallOutput {
10840
+ call_id: string;
10841
+
10842
+ type: 'apply_patch_call_output';
10843
+ }
10844
+
10845
+ /**
10846
+ * Supply `tools` using the tool search output input schema, retaining
10847
+ * `execution: "client"`.
10848
+ */
10849
+ export interface ToolSearchOutput {
10850
+ call_id: string;
10851
+
10852
+ execution: 'client';
10853
+
10854
+ type: 'tool_search_output';
10855
+ }
10856
+
10857
+ /**
10858
+ * Supply `approve` using the MCP approval response input schema. An optional
10859
+ * `reason` can be supplied when denying the request. The original approval request
10860
+ * identifies the tool and server.
10861
+ */
10862
+ export interface McpApprovalResponse {
10863
+ approval_request_id: string;
10864
+
10865
+ type: 'mcp_approval_response';
10866
+ }
10867
+ }
10868
+
10055
10869
  /**
10056
10870
  * Event emitted while a response is streamed.
10057
10871
  */
@@ -10680,7 +11494,10 @@ export namespace BetaResponseWebSearchCallSearchingEvent {
10680
11494
  /**
10681
11495
  * Client events accepted by the Responses WebSocket server.
10682
11496
  */
10683
- export type BetaResponsesClientEvent = BetaResponsesClientEvent.ResponseCreate | BetaResponseInjectEvent;
11497
+ export type BetaResponsesClientEvent =
11498
+ | BetaResponsesClientEvent.ResponseCreate
11499
+ | BetaResponseSteerEvent
11500
+ | BetaResponseInjectEvent;
10684
11501
 
10685
11502
  export namespace BetaResponsesClientEvent {
10686
11503
  /**
@@ -10789,13 +11606,14 @@ export namespace BetaResponsesClientEvent {
10789
11606
  metadata?: { [key: string]: string } | null;
10790
11607
 
10791
11608
  /**
10792
- * Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI offers a wide
11609
+ * Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
10793
11610
  * range of models with different capabilities, performance characteristics, and
10794
11611
  * price points. Refer to the
10795
11612
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
10796
11613
  * available models.
10797
11614
  */
10798
11615
  model?:
11616
+ | 'gpt-6-astra'
10799
11617
  | 'gpt-5.6-sol'
10800
11618
  | 'gpt-5.6-terra'
10801
11619
  | 'gpt-5.6-luna'
@@ -11016,6 +11834,9 @@ export namespace BetaResponsesClientEvent {
11016
11834
 
11017
11835
  /**
11018
11836
  * Whether to store the generated model response for later retrieval via API.
11837
+ * Defaults to true when omitted. If set to true, response data will be stored for
11838
+ * at least 30 days, subject to the
11839
+ * [data retention exceptions](/api/docs/guides/your-data#v1responses).
11019
11840
  */
11020
11841
  store?: boolean | null;
11021
11842
 
@@ -11231,6 +12052,12 @@ export namespace BetaResponsesClientEvent {
11231
12052
  * for current details.
11232
12053
  */
11233
12054
  export interface PromptCacheOptions {
12055
+ /**
12056
+ * The ID of a response to compare when diagnosing prompt cache reuse. Supplying
12057
+ * this field requests prompt cache diagnostics when the feature is enabled.
12058
+ */
12059
+ comparison_response_id?: string | null;
12060
+
11234
12061
  /**
11235
12062
  * Controls whether OpenAI automatically creates an implicit cache breakpoint.
11236
12063
  * Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
@@ -11388,6 +12215,9 @@ export type BetaResponsesServerEvent =
11388
12215
  | BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDone
11389
12216
  | BetaResponsesServerEvent.BetaResponseWsStreamingError
11390
12217
  | BetaResponsesServerEvent.BetaResponseWsError
12218
+ | BetaResponseSteerAcceptedEvent
12219
+ | BetaResponseSteerPendingEvent
12220
+ | BetaResponseSteerFailedEvent
11391
12221
  | BetaResponseInjectCreatedEvent
11392
12222
  | BetaResponseInjectFailedEvent;
11393
12223
 
@@ -11669,6 +12499,10 @@ export namespace BetaResponsesServerEvent {
11669
12499
 
11670
12500
  /**
11671
12501
  * An event that is emitted when a response finishes as incomplete.
12502
+ *
12503
+ * Over WebSocket, steering can finish a response with
12504
+ * `response.incomplete_details.reason` set to `steered`, followed automatically by
12505
+ * a successor `response.created` that commits the queued steering input.
11672
12506
  */
11673
12507
  export interface BetaResponseWsIncomplete extends BetaResponseIncompleteEvent {
11674
12508
  /**
@@ -12099,6 +12933,44 @@ export namespace BetaResponsesServerEvent {
12099
12933
  * The response headers that were emitted with the error, if any.
12100
12934
  */
12101
12935
  headers?: { [key: string]: string };
12936
+
12937
+ misalignment?: Error.Misalignment;
12938
+ }
12939
+
12940
+ export namespace Error {
12941
+ export interface Misalignment {
12942
+ /**
12943
+ * The public explanation for this block.
12944
+ */
12945
+ detailed_explanation?: string;
12946
+
12947
+ /**
12948
+ * An optional classification; clients must accept additional values.
12949
+ */
12950
+ error_type?:
12951
+ | (string & {})
12952
+ | 'potentially_unintended_data_transfer'
12953
+ | 'potentially_unintended_data_access'
12954
+ | 'potentially_unintended_destructive_activity'
12955
+ | 'other';
12956
+
12957
+ /**
12958
+ * An optional public continuation instruction.
12959
+ */
12960
+ steer?: Misalignment.Steer;
12961
+ }
12962
+
12963
+ export namespace Misalignment {
12964
+ /**
12965
+ * An optional public continuation instruction.
12966
+ */
12967
+ export interface Steer {
12968
+ /**
12969
+ * The public continuation instruction.
12970
+ */
12971
+ message: string;
12972
+ }
12973
+ }
12102
12974
  }
12103
12975
 
12104
12976
  /**
@@ -12434,9 +13306,11 @@ export namespace BetaTool {
12434
13306
  * one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
12435
13307
  * the model will automatically determine the best background for the image.
12436
13308
  *
12437
- * Transparent backgrounds are available for supported GPT Image models. For
12438
- * `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
12439
- * using `transparent`, set the output format to `png` or `webp`.
13309
+ * `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
13310
+ * snapshots, support `opaque` and `transparent` backgrounds. Transparent
13311
+ * backgrounds are available for supported GPT Image models. For `gpt-image-2` and
13312
+ * `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
13313
+ * set the output format to `png` or `webp`.
12440
13314
  */
12441
13315
  background?: 'transparent' | 'opaque' | 'auto';
12442
13316
 
@@ -12456,7 +13330,9 @@ export namespace BetaTool {
12456
13330
 
12457
13331
  /**
12458
13332
  * The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
12459
- * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`, or
13333
+ * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
13334
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
13335
+ * `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
12460
13336
  * `chatgpt-image-latest`. Default: `gpt-image-1`.
12461
13337
  */
12462
13338
  model?:
@@ -12465,6 +13341,10 @@ export namespace BetaTool {
12465
13341
  | 'gpt-image-1-mini'
12466
13342
  | 'gpt-image-2'
12467
13343
  | 'gpt-image-2-2026-04-21'
13344
+ | 'gpt-image-2.5-sunburst'
13345
+ | 'gpt-image-2.5-sunburst-2026-09-08'
13346
+ | 'gpt-image-2.5-flare'
13347
+ | 'gpt-image-2.5-flare-2026-09-08'
12468
13348
  | 'gpt-image-1.5'
12469
13349
  | 'chatgpt-image-latest';
12470
13350
 
@@ -12491,23 +13371,26 @@ export namespace BetaTool {
12491
13371
  partial_images?: number;
12492
13372
 
12493
13373
  /**
12494
- * The quality of the generated image. One of `low`, `medium`, `high`, or `auto`.
12495
- * Default: `auto`.
13374
+ * The quality of the generated image. The GPT image models support `low`,
13375
+ * `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
13376
+ * including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
13377
+ * `auto`.
12496
13378
  */
12497
- quality?: 'low' | 'medium' | 'high' | 'auto';
13379
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
12498
13380
 
12499
13381
  /**
12500
- * The size of the generated images. For `gpt-image-2` and
12501
- * `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
12502
- * strings, for example `1536x864`. Width and height must both be divisible by 16
12503
- * and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
12504
- * `2560x1440` are experimental, and the maximum supported resolution is
12505
- * `3840x2160`. The requested size must also satisfy the model's current pixel and
12506
- * edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
12507
- * supported by the GPT image models; `auto` is supported for models that allow
12508
- * automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
12509
- * `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
12510
- * `1024x1792`.
13382
+ * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
13383
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
13384
+ * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
13385
+ * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
13386
+ * Width and height must both be divisible by 16 and the requested aspect ratio
13387
+ * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
13388
+ * the maximum supported resolution is `3840x2160`. The requested size must also
13389
+ * satisfy the model's current pixel and edge limits. The standard sizes
13390
+ * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
13391
+ * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
13392
+ * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
13393
+ * `1024x1024`, `1792x1024`, or `1024x1792`.
12511
13394
  */
12512
13395
  size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
12513
13396
  }
@@ -12948,13 +13831,14 @@ export interface ResponseCreateParamsBase {
12948
13831
  metadata?: { [key: string]: string } | null;
12949
13832
 
12950
13833
  /**
12951
- * Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
13834
+ * Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
12952
13835
  * offers a wide range of models with different capabilities, performance
12953
13836
  * characteristics, and price points. Refer to the
12954
13837
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
12955
13838
  * available models.
12956
13839
  */
12957
13840
  model?:
13841
+ | 'gpt-6-astra'
12958
13842
  | 'gpt-5.6-sol'
12959
13843
  | 'gpt-5.6-terra'
12960
13844
  | 'gpt-5.6-luna'
@@ -13177,7 +14061,9 @@ export interface ResponseCreateParamsBase {
13177
14061
 
13178
14062
  /**
13179
14063
  * Body param: Whether to store the generated model response for later retrieval
13180
- * via API.
14064
+ * via API. Defaults to true when omitted. If set to true, response data will be
14065
+ * stored for at least 30 days, subject to the
14066
+ * [data retention exceptions](/api/docs/guides/your-data#v1responses).
13181
14067
  */
13182
14068
  store?: boolean | null;
13183
14069
 
@@ -13392,6 +14278,12 @@ export namespace ResponseCreateParams {
13392
14278
  * for current details.
13393
14279
  */
13394
14280
  export interface PromptCacheOptions {
14281
+ /**
14282
+ * The ID of a response to compare when diagnosing prompt cache reuse. Supplying
14283
+ * this field requests prompt cache diagnostics when the feature is enabled.
14284
+ */
14285
+ comparison_response_id?: string | null;
14286
+
13395
14287
  /**
13396
14288
  * Controls whether OpenAI automatically creates an implicit cache breakpoint.
13397
14289
  * Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
@@ -13598,13 +14490,14 @@ export interface ResponseCancelParams {
13598
14490
 
13599
14491
  export interface ResponseCompactParams {
13600
14492
  /**
13601
- * Body param: Model ID used to generate the response, like `gpt-5.6-sol`. OpenAI
14493
+ * Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
13602
14494
  * offers a wide range of models with different capabilities, performance
13603
14495
  * characteristics, and price points. Refer to the
13604
14496
  * [model guide](https://platform.openai.com/docs/models) to browse and compare
13605
14497
  * available models.
13606
14498
  */
13607
14499
  model:
14500
+ | 'gpt-6-astra'
13608
14501
  | 'gpt-5.6-sol'
13609
14502
  | 'gpt-5.6-terra'
13610
14503
  | 'gpt-5.6-luna'
@@ -13767,12 +14660,13 @@ export interface ResponseCompactParams {
13767
14660
  * request will be processed with the Flex Processing service tier. - To opt-in to
13768
14661
  * [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
13769
14662
  * `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
13770
- * Completions. The response will show `service_tier=priority` regardless of if you
13771
- * specify `service_tier=fast` or `priority` in your request. - When not set, the
13772
- * default behavior is 'auto'. When the `service_tier` parameter is set, the
13773
- * response body will include the `service_tier` value based on the processing mode
13774
- * actually used to serve the request. This response value may be different from
13775
- * the value set in the parameter.
14663
+ * Completions. For models with a dedicated Fast tier, either value resolves to
14664
+ * `service_tier=fast`; for other models, either value resolves to
14665
+ * `service_tier=priority`. - When not set, the default behavior is 'auto'. When
14666
+ * the `service_tier` parameter is set, the response body will include the
14667
+ * `service_tier` value based on the processing mode actually used to serve the
14668
+ * request. This response value may be different from the value set in the
14669
+ * parameter.
13776
14670
  */
13777
14671
  service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
13778
14672
 
@@ -13861,6 +14755,8 @@ export declare namespace Responses {
13861
14755
  type BetaResponseComputerToolCall as BetaResponseComputerToolCall,
13862
14756
  type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem,
13863
14757
  type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot,
14758
+ type BetaResponseConfigurationUpdateItem as BetaResponseConfigurationUpdateItem,
14759
+ type BetaResponseConfigurationUpdateItemParam as BetaResponseConfigurationUpdateItemParam,
13864
14760
  type BetaResponseContainerReference as BetaResponseContainerReference,
13865
14761
  type BetaResponseContent as BetaResponseContent,
13866
14762
  type BetaResponseContentPartAddedEvent as BetaResponseContentPartAddedEvent,
@@ -13950,6 +14846,15 @@ export declare namespace Responses {
13950
14846
  type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent,
13951
14847
  type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent,
13952
14848
  type BetaResponseStatus as BetaResponseStatus,
14849
+ type BetaResponseSteerAcceptedEvent as BetaResponseSteerAcceptedEvent,
14850
+ type BetaResponseSteerErrorCode as BetaResponseSteerErrorCode,
14851
+ type BetaResponseSteerEvent as BetaResponseSteerEvent,
14852
+ type BetaResponseSteerFailedEvent as BetaResponseSteerFailedEvent,
14853
+ type BetaResponseSteerInput as BetaResponseSteerInput,
14854
+ type BetaResponseSteerInputContent as BetaResponseSteerInputContent,
14855
+ type BetaResponseSteerPendingEvent as BetaResponseSteerPendingEvent,
14856
+ type BetaResponseSteerPendingReason as BetaResponseSteerPendingReason,
14857
+ type BetaResponseSteerRequiredInput as BetaResponseSteerRequiredInput,
13953
14858
  type BetaResponseStreamEvent as BetaResponseStreamEvent,
13954
14859
  type BetaResponseTextConfig as BetaResponseTextConfig,
13955
14860
  type BetaResponseTextDeltaEvent as BetaResponseTextDeltaEvent,