openai 7.10.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 (421) hide show
  1. package/CHANGELOG.md +196 -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 +9 -1
  66. package/client.d.mts.map +1 -1
  67. package/client.d.ts +9 -1
  68. package/client.d.ts.map +1 -1
  69. package/client.js +17 -4
  70. package/client.js.map +1 -1
  71. package/client.mjs +17 -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 +27 -4
  281. package/lib/responses/ResponseInputItems.js.map +1 -1
  282. package/lib/responses/ResponseInputItems.mjs +27 -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/beta/responses/responses.d.mts +112 -33
  338. package/resources/beta/responses/responses.d.mts.map +1 -1
  339. package/resources/beta/responses/responses.d.ts +112 -33
  340. package/resources/beta/responses/responses.d.ts.map +1 -1
  341. package/resources/beta/responses/responses.js.map +1 -1
  342. package/resources/beta/responses/responses.mjs.map +1 -1
  343. package/resources/conversations/items.d.mts +9 -0
  344. package/resources/conversations/items.d.mts.map +1 -1
  345. package/resources/conversations/items.d.ts +9 -0
  346. package/resources/conversations/items.d.ts.map +1 -1
  347. package/resources/images.d.mts +73 -58
  348. package/resources/images.d.mts.map +1 -1
  349. package/resources/images.d.ts +73 -58
  350. package/resources/images.d.ts.map +1 -1
  351. package/resources/images.js.map +1 -1
  352. package/resources/images.mjs.map +1 -1
  353. package/resources/responses/responses.d.mts +112 -32
  354. package/resources/responses/responses.d.mts.map +1 -1
  355. package/resources/responses/responses.d.ts +112 -32
  356. package/resources/responses/responses.d.ts.map +1 -1
  357. package/resources/responses/responses.js.map +1 -1
  358. package/resources/responses/responses.mjs.map +1 -1
  359. package/resources/webhooks/webhooks.d.mts +6 -4
  360. package/resources/webhooks/webhooks.d.mts.map +1 -1
  361. package/resources/webhooks/webhooks.d.ts +6 -4
  362. package/resources/webhooks/webhooks.d.ts.map +1 -1
  363. package/src/_vendor/partial-json-parser/parser.ts +4 -3
  364. package/src/_vendor/zod-to-json-schema/parsers/string.ts +1 -1
  365. package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +23 -16
  366. package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +11 -6
  367. package/src/auth/subject-token-providers.ts +12 -7
  368. package/src/auth/workload-identity-auth.ts +27 -12
  369. package/src/azure.ts +34 -3
  370. package/src/beta/realtime/internal-base.ts +3 -2
  371. package/src/beta/realtime/websocket.ts +17 -7
  372. package/src/beta/realtime/ws.ts +9 -5
  373. package/src/client.ts +19 -4
  374. package/src/core/EventEmitter.ts +5 -8
  375. package/src/core/pagination.ts +1 -1
  376. package/src/core/streaming.ts +69 -13
  377. package/src/helpers/audio.ts +27 -6
  378. package/src/helpers/zod.ts +78 -29
  379. package/src/internal/bedrock.ts +84 -58
  380. package/src/internal/detect-platform.ts +2 -2
  381. package/src/internal/errors.ts +3 -2
  382. package/src/internal/headers.ts +7 -5
  383. package/src/internal/parse.ts +1 -1
  384. package/src/internal/realtime-credentials.ts +27 -0
  385. package/src/internal/responses/response-accumulator.ts +1 -0
  386. package/src/internal/to-file.ts +6 -5
  387. package/src/internal/uploads.ts +12 -1
  388. package/src/internal/utils/base64.ts +3 -0
  389. package/src/lib/AbstractChatCompletionRunner.ts +31 -6
  390. package/src/lib/AssistantStream.ts +25 -11
  391. package/src/lib/ChatCompletionRunner.ts +8 -4
  392. package/src/lib/ChatCompletionStream.ts +8 -0
  393. package/src/lib/ChatCompletionStreamingRunner.ts +1 -0
  394. package/src/lib/EventEmitter.ts +17 -8
  395. package/src/lib/EventStream.ts +105 -52
  396. package/src/lib/ResponsesParser.ts +33 -12
  397. package/src/lib/RunnableFunction.ts +2 -2
  398. package/src/lib/embeddings.ts +18 -12
  399. package/src/lib/file-processing.ts +5 -4
  400. package/src/lib/parser.ts +35 -11
  401. package/src/lib/polling.ts +5 -4
  402. package/src/lib/responses/EventTypes.ts +3 -69
  403. package/src/lib/responses/ResponseInputItems.ts +29 -4
  404. package/src/lib/transform.ts +1 -0
  405. package/src/lib/vector-store-polling.ts +3 -3
  406. package/src/lib/vector-store-upload.ts +5 -1
  407. package/src/providers/bedrock/aws.ts +23 -24
  408. package/src/realtime/internal-base.ts +3 -5
  409. package/src/realtime/websocket.ts +14 -6
  410. package/src/realtime/ws.ts +9 -4
  411. package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +11 -0
  412. package/src/resources/beta/responses/responses.ts +143 -31
  413. package/src/resources/conversations/items.ts +11 -0
  414. package/src/resources/images.ts +76 -57
  415. package/src/resources/responses/responses.ts +143 -30
  416. package/src/resources/webhooks/webhooks.ts +6 -4
  417. package/src/version.ts +1 -1
  418. package/version.d.mts +1 -1
  419. package/version.d.ts +1 -1
  420. package/version.js +1 -1
  421. package/version.mjs +1 -1
@@ -31,8 +31,7 @@ export class Images extends APIResource {
31
31
 
32
32
  /**
33
33
  * Creates an edited or extended image given one or more source images and a
34
- * prompt. This endpoint supports GPT Image models (`gpt-image-1.5`, `gpt-image-1`,
35
- * `gpt-image-1-mini`, and `chatgpt-image-latest`) and `dall-e-2`.
34
+ * prompt. This endpoint supports GPT Image models and `dall-e-2`.
36
35
  *
37
36
  * @example
38
37
  * ```ts
@@ -151,12 +150,12 @@ export interface ImageEditCompletedEvent {
151
150
  /**
152
151
  * The quality setting for the edited image.
153
152
  */
154
- quality: 'low' | 'medium' | 'high' | 'auto';
153
+ quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
155
154
 
156
155
  /**
157
- * The size of the edited image.
156
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
158
157
  */
159
- size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
158
+ size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
160
159
 
161
160
  /**
162
161
  * The type of the event. Always `image_edit.completed`.
@@ -247,12 +246,12 @@ export interface ImageEditPartialImageEvent {
247
246
  /**
248
247
  * The quality setting for the requested edited image.
249
248
  */
250
- quality: 'low' | 'medium' | 'high' | 'auto';
249
+ quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
251
250
 
252
251
  /**
253
- * The size of the requested edited image.
252
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
254
253
  */
255
- size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
254
+ size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
256
255
 
257
256
  /**
258
257
  * The type of the event. Always `image_edit.partial_image`.
@@ -292,12 +291,12 @@ export interface ImageGenCompletedEvent {
292
291
  /**
293
292
  * The quality setting for the generated image.
294
293
  */
295
- quality: 'low' | 'medium' | 'high' | 'auto';
294
+ quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
296
295
 
297
296
  /**
298
- * The size of the generated image.
297
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
299
298
  */
300
- size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
299
+ size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
301
300
 
302
301
  /**
303
302
  * The type of the event. Always `image_generation.completed`.
@@ -388,12 +387,12 @@ export interface ImageGenPartialImageEvent {
388
387
  /**
389
388
  * The quality setting for the requested image.
390
389
  */
391
- quality: 'low' | 'medium' | 'high' | 'auto';
390
+ quality: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
392
391
 
393
392
  /**
394
- * The size of the requested image.
393
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
395
394
  */
396
- size: '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
395
+ size: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
397
396
 
398
397
  /**
399
398
  * The type of the event. Always `image_generation.partial_image`.
@@ -411,6 +410,10 @@ export type ImageModel =
411
410
  | 'gpt-image-1-mini'
412
411
  | 'gpt-image-2'
413
412
  | 'gpt-image-2-2026-04-21'
413
+ | 'gpt-image-2.5-sunburst'
414
+ | 'gpt-image-2.5-sunburst-2026-09-08'
415
+ | 'gpt-image-2.5-flare'
416
+ | 'gpt-image-2.5-flare-2026-09-08'
414
417
  | 'gpt-image-1.5'
415
418
  | 'chatgpt-image-latest'
416
419
  | 'dall-e-2'
@@ -442,15 +445,15 @@ export interface ImagesResponse {
442
445
  output_format?: 'png' | 'webp' | 'jpeg';
443
446
 
444
447
  /**
445
- * The quality of the image generated. Either `low`, `medium`, or `high`.
448
+ * The quality of the image generated. One of `low`, `medium`, `high`, `xhigh`, or
449
+ * `max`.
446
450
  */
447
- quality?: 'low' | 'medium' | 'high';
451
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max';
448
452
 
449
453
  /**
450
- * The size of the image generated. Either `1024x1024`, `1024x1536`, or
451
- * `1536x1024`.
454
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
452
455
  */
453
- size?: '1024x1024' | '1024x1536' | '1536x1024';
456
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024';
454
457
 
455
458
  /**
456
459
  * For `gpt-image-1` only, the token usage information for the image generation.
@@ -568,9 +571,11 @@ export interface ImageEditParamsBase {
568
571
  * The image(s) to edit. Must be a supported image file or an array of images.
569
572
  *
570
573
  * For the GPT image models (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`,
571
- * `gpt-image-2`, `gpt-image-2-2026-04-21`, and `chatgpt-image-latest`), each image
572
- * should be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to
573
- * 16 images.
574
+ * `gpt-image-2`, `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
575
+ * `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
576
+ * `gpt-image-2.5-flare-2026-09-08`, and `chatgpt-image-latest`), each image should
577
+ * be a `png`, `webp`, or `jpg` file less than 50MB. You can provide up to 16
578
+ * images.
574
579
  *
575
580
  * For `dall-e-2`, you can only provide one image, and it should be a square `png`
576
581
  * file less than 4MB.
@@ -588,9 +593,11 @@ export interface ImageEditParamsBase {
588
593
  * one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
589
594
  * the model will automatically determine the best background for the image.
590
595
  *
591
- * Transparent backgrounds are available for supported GPT Image models. For
592
- * `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
593
- * using `transparent`, set the output format to `png` or `webp`.
596
+ * `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
597
+ * snapshots, support `opaque` and `transparent` backgrounds. Transparent
598
+ * backgrounds are available for supported GPT Image models. For `gpt-image-2` and
599
+ * `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
600
+ * set the output format to `png` or `webp`.
594
601
  */
595
602
  background?: 'transparent' | 'opaque' | 'auto' | null;
596
603
 
@@ -613,7 +620,9 @@ export interface ImageEditParamsBase {
613
620
  /**
614
621
  * The model to use for image generation. One of `dall-e-2` or a GPT image model
615
622
  * (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
616
- * `gpt-image-2-2026-04-21`, or `chatgpt-image-latest`). Defaults to
623
+ * `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
624
+ * `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
625
+ * `gpt-image-2.5-flare-2026-09-08`, or `chatgpt-image-latest`). Defaults to
617
626
  * `gpt-image-1.5`.
618
627
  */
619
628
  model?: (string & {}) | ImageModel | null;
@@ -648,10 +657,12 @@ export interface ImageEditParamsBase {
648
657
  partial_images?: number | null;
649
658
 
650
659
  /**
651
- * The quality of the image that will be generated for GPT image models. Defaults
652
- * to `auto`.
660
+ * The quality of the image that will be generated for GPT image models. The GPT
661
+ * image models support `low`, `medium`, and `high`. `gpt-image-2.5-sunburst` and
662
+ * `gpt-image-2.5-flare`, including their `2026-09-08` snapshots, also support
663
+ * `xhigh` and `max`. Defaults to `auto`.
653
664
  */
654
- quality?: 'standard' | 'low' | 'medium' | 'high' | 'auto' | null;
665
+ quality?: 'standard' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
655
666
 
656
667
  /**
657
668
  * The format in which the generated images are returned. Must be one of `url` or
@@ -662,17 +673,18 @@ export interface ImageEditParamsBase {
662
673
  response_format?: 'url' | 'b64_json' | null;
663
674
 
664
675
  /**
665
- * The size of the generated images. For `gpt-image-2` and
666
- * `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
667
- * strings, for example `1536x864`. Width and height must both be divisible by 16
668
- * and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
669
- * `2560x1440` are experimental, and the maximum supported resolution is
670
- * `3840x2160`. The requested size must also satisfy the model's current pixel and
671
- * edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
672
- * supported by the GPT image models; `auto` is supported for models that allow
673
- * automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
674
- * `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
675
- * `1024x1792`.
676
+ * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
677
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
678
+ * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
679
+ * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
680
+ * Width and height must both be divisible by 16 and the requested aspect ratio
681
+ * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
682
+ * the maximum supported resolution is `3840x2160`. The requested size must also
683
+ * satisfy the model's current pixel and edge limits. The standard sizes
684
+ * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
685
+ * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
686
+ * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
687
+ * `1024x1024`, `1792x1024`, or `1024x1792`.
676
688
  */
677
689
  size?: (string & {}) | '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null;
678
690
 
@@ -729,17 +741,21 @@ export interface ImageGenerateParamsBase {
729
741
  * one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
730
742
  * the model will automatically determine the best background for the image.
731
743
  *
732
- * Transparent backgrounds are available for supported GPT Image models. For
733
- * `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
734
- * using `transparent`, set the output format to `png` or `webp`.
744
+ * `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
745
+ * snapshots, support `opaque` and `transparent` backgrounds. Transparent
746
+ * backgrounds are available for supported GPT Image models. For `gpt-image-2` and
747
+ * `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
748
+ * set the output format to `png` or `webp`.
735
749
  */
736
750
  background?: 'transparent' | 'opaque' | 'auto' | null;
737
751
 
738
752
  /**
739
753
  * The model to use for image generation. One of `dall-e-2`, `dall-e-3`, or a GPT
740
754
  * image model (`gpt-image-1`, `gpt-image-1-mini`, `gpt-image-1.5`, `gpt-image-2`,
741
- * or `gpt-image-2-2026-04-21`). Defaults to `dall-e-2` unless a parameter specific
742
- * to the GPT image models is used.
755
+ * `gpt-image-2-2026-04-21`, `gpt-image-2.5-sunburst`,
756
+ * `gpt-image-2.5-sunburst-2026-09-08`, `gpt-image-2.5-flare`,
757
+ * `gpt-image-2.5-flare-2026-09-08`). Defaults to `dall-e-2` unless a parameter
758
+ * specific to the GPT image models is used.
743
759
  */
744
760
  model?: (string & {}) | ImageModel | null;
745
761
 
@@ -785,10 +801,12 @@ export interface ImageGenerateParamsBase {
785
801
  * - `auto` (default value) will automatically select the best quality for the
786
802
  * given model.
787
803
  * - `high`, `medium` and `low` are supported for the GPT image models.
804
+ * - `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their
805
+ * `2026-09-08` snapshots, also support `xhigh` and `max`.
788
806
  * - `hd` and `standard` are supported for `dall-e-3`.
789
807
  * - `standard` is the only option for `dall-e-2`.
790
808
  */
791
- quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'auto' | null;
809
+ quality?: 'standard' | 'hd' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
792
810
 
793
811
  /**
794
812
  * The format in which generated images with `dall-e-2` and `dall-e-3` are
@@ -799,17 +817,18 @@ export interface ImageGenerateParamsBase {
799
817
  response_format?: 'url' | 'b64_json' | null;
800
818
 
801
819
  /**
802
- * The size of the generated images. For `gpt-image-2` and
803
- * `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
804
- * strings, for example `1536x864`. Width and height must both be divisible by 16
805
- * and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
806
- * `2560x1440` are experimental, and the maximum supported resolution is
807
- * `3840x2160`. The requested size must also satisfy the model's current pixel and
808
- * edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
809
- * supported by the GPT image models; `auto` is supported for models that allow
810
- * automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
811
- * `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
812
- * `1024x1792`.
820
+ * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
821
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
822
+ * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
823
+ * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
824
+ * Width and height must both be divisible by 16 and the requested aspect ratio
825
+ * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
826
+ * the maximum supported resolution is `3840x2160`. The requested size must also
827
+ * satisfy the model's current pixel and edge limits. The standard sizes
828
+ * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
829
+ * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
830
+ * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
831
+ * `1024x1024`, `1792x1024`, or `1024x1792`.
813
832
  */
814
833
  size?:
815
834
  | (string & {})
@@ -1212,6 +1212,15 @@ export interface Response {
1212
1212
  */
1213
1213
  prompt?: ResponsePrompt | null;
1214
1214
 
1215
+ /**
1216
+ * Prompt cache diagnostics requested for this response.
1217
+ */
1218
+ prompt_cache_diagnostics?:
1219
+ | Response.CacheMiss
1220
+ | Response.CacheHit
1221
+ | Response.ComparisonResponseNotFound
1222
+ | Response.Unavailable;
1223
+
1215
1224
  /**
1216
1225
  * Used by OpenAI to cache responses for similar requests to optimize your cache
1217
1226
  * hit rates. Replaces the `user` field.
@@ -1502,6 +1511,47 @@ export namespace Response {
1502
1511
  }
1503
1512
  }
1504
1513
 
1514
+ export interface CacheMiss {
1515
+ /**
1516
+ * The estimated number of input tokens affected after the first detected
1517
+ * divergence.
1518
+ */
1519
+ cache_missed_tokens: number;
1520
+
1521
+ /**
1522
+ * The reason prompt cache reuse did not occur.
1523
+ */
1524
+ reason:
1525
+ | 'model_changed'
1526
+ | 'prompt_cache_key_changed'
1527
+ | 'tools_changed'
1528
+ | 'text_format_changed'
1529
+ | 'reasoning_effort_changed'
1530
+ | 'verbosity_changed'
1531
+ | 'context_compacted'
1532
+ | 'input_changed'
1533
+ | 'service_tier_changed';
1534
+
1535
+ type: 'cache_miss';
1536
+
1537
+ /**
1538
+ * The raw token count of the reusable prefix in the compared response.
1539
+ */
1540
+ comparison_reusable_tokens?: number;
1541
+ }
1542
+
1543
+ export interface CacheHit {
1544
+ type: 'cache_hit';
1545
+ }
1546
+
1547
+ export interface ComparisonResponseNotFound {
1548
+ type: 'comparison_response_not_found';
1549
+ }
1550
+
1551
+ export interface Unavailable {
1552
+ type: 'unavailable';
1553
+ }
1554
+
1505
1555
  /**
1506
1556
  * The prompt-caching options that were applied to the response. Supported for
1507
1557
  * `gpt-5.6` and later models.
@@ -1516,6 +1566,11 @@ export namespace Response {
1516
1566
  * The minimum lifetime applied to each cache breakpoint.
1517
1567
  */
1518
1568
  ttl: '30m';
1569
+
1570
+ /**
1571
+ * The response ID supplied as the prompt cache diagnostics comparison.
1572
+ */
1573
+ comparison_response_id?: string | null;
1519
1574
  }
1520
1575
  }
1521
1576
 
@@ -3237,11 +3292,6 @@ export interface ResponseFunctionCallArgumentsDoneEvent {
3237
3292
  */
3238
3293
  item_id: string;
3239
3294
 
3240
- /**
3241
- * The name of the function that was called.
3242
- */
3243
- name: string;
3244
-
3245
3295
  /**
3246
3296
  * The index of the output item.
3247
3297
  */
@@ -3694,7 +3744,7 @@ export interface ResponseFunctionWebSearch {
3694
3744
  /**
3695
3745
  * The status of the web search tool call.
3696
3746
  */
3697
- status: 'in_progress' | 'searching' | 'completed' | 'failed';
3747
+ status: 'in_progress' | 'searching' | 'completed' | 'failed' | 'incomplete';
3698
3748
 
3699
3749
  /**
3700
3750
  * The type of the web search tool call. Always `web_search_call`.
@@ -4524,6 +4574,17 @@ export namespace ResponseInputItem {
4524
4574
  * The type of the image generation call. Always `image_generation_call`.
4525
4575
  */
4526
4576
  type: 'image_generation_call';
4577
+
4578
+ /**
4579
+ * The quality of the image generated by the image generation tool call. One of
4580
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
4581
+ */
4582
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
4583
+
4584
+ /**
4585
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
4586
+ */
4587
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
4527
4588
  }
4528
4589
 
4529
4590
  /**
@@ -5430,6 +5491,17 @@ export namespace ResponseItem {
5430
5491
  * The type of the image generation call. Always `image_generation_call`.
5431
5492
  */
5432
5493
  type: 'image_generation_call';
5494
+
5495
+ /**
5496
+ * The quality of the image generated by the image generation tool call. One of
5497
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
5498
+ */
5499
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
5500
+
5501
+ /**
5502
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
5503
+ */
5504
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
5433
5505
  }
5434
5506
 
5435
5507
  /**
@@ -6071,6 +6143,17 @@ export namespace ResponseOutputItem {
6071
6143
  * The type of the image generation call. Always `image_generation_call`.
6072
6144
  */
6073
6145
  type: 'image_generation_call';
6146
+
6147
+ /**
6148
+ * The quality of the image generated by the image generation tool call. One of
6149
+ * `low`, `medium`, `high`, `xhigh`, `max`, or `auto`.
6150
+ */
6151
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto' | null;
6152
+
6153
+ /**
6154
+ * The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
6155
+ */
6156
+ size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | null;
6074
6157
  }
6075
6158
 
6076
6159
  /**
@@ -8720,6 +8803,9 @@ export namespace ResponsesClientEvent {
8720
8803
 
8721
8804
  /**
8722
8805
  * Whether to store the generated model response for later retrieval via API.
8806
+ * Defaults to true when omitted. If set to true, response data will be stored for
8807
+ * at least 30 days, subject to the
8808
+ * [data retention exceptions](/api/docs/guides/your-data#v1responses).
8723
8809
  */
8724
8810
  store?: boolean | null;
8725
8811
 
@@ -8915,6 +9001,12 @@ export namespace ResponsesClientEvent {
8915
9001
  * for current details.
8916
9002
  */
8917
9003
  export interface PromptCacheOptions {
9004
+ /**
9005
+ * The ID of a response to compare when diagnosing prompt cache reuse. Supplying
9006
+ * this field requests prompt cache diagnostics when the feature is enabled.
9007
+ */
9008
+ comparison_response_id?: string | null;
9009
+
8918
9010
  /**
8919
9011
  * Controls whether OpenAI automatically creates an implicit cache breakpoint.
8920
9012
  * Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
@@ -10086,9 +10178,11 @@ export namespace Tool {
10086
10178
  * one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
10087
10179
  * the model will automatically determine the best background for the image.
10088
10180
  *
10089
- * Transparent backgrounds are available for supported GPT Image models. For
10090
- * `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
10091
- * using `transparent`, set the output format to `png` or `webp`.
10181
+ * `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`, including their `2026-09-08`
10182
+ * snapshots, support `opaque` and `transparent` backgrounds. Transparent
10183
+ * backgrounds are available for supported GPT Image models. For `gpt-image-2` and
10184
+ * `gpt-image-2-2026-04-21`, this support is in preview. When using `transparent`,
10185
+ * set the output format to `png` or `webp`.
10092
10186
  */
10093
10187
  background?: 'transparent' | 'opaque' | 'auto';
10094
10188
 
@@ -10108,7 +10202,9 @@ export namespace Tool {
10108
10202
 
10109
10203
  /**
10110
10204
  * The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
10111
- * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`, or
10205
+ * `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`,
10206
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
10207
+ * `gpt-image-2.5-flare`, `gpt-image-2.5-flare-2026-09-08`, or
10112
10208
  * `chatgpt-image-latest`. Default: `gpt-image-1`.
10113
10209
  */
10114
10210
  model?:
@@ -10117,6 +10213,10 @@ export namespace Tool {
10117
10213
  | 'gpt-image-1-mini'
10118
10214
  | 'gpt-image-2'
10119
10215
  | 'gpt-image-2-2026-04-21'
10216
+ | 'gpt-image-2.5-sunburst'
10217
+ | 'gpt-image-2.5-sunburst-2026-09-08'
10218
+ | 'gpt-image-2.5-flare'
10219
+ | 'gpt-image-2.5-flare-2026-09-08'
10120
10220
  | 'gpt-image-1.5'
10121
10221
  | 'chatgpt-image-latest';
10122
10222
 
@@ -10143,23 +10243,26 @@ export namespace Tool {
10143
10243
  partial_images?: number;
10144
10244
 
10145
10245
  /**
10146
- * The quality of the generated image. One of `low`, `medium`, `high`, or `auto`.
10147
- * Default: `auto`.
10246
+ * The quality of the generated image. The GPT image models support `low`,
10247
+ * `medium`, and `high`. `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare`,
10248
+ * including their `2026-09-08` snapshots, also support `xhigh` and `max`. Default:
10249
+ * `auto`.
10148
10250
  */
10149
- quality?: 'low' | 'medium' | 'high' | 'auto';
10251
+ quality?: 'low' | 'medium' | 'high' | 'xhigh' | 'max' | 'auto';
10150
10252
 
10151
10253
  /**
10152
- * The size of the generated images. For `gpt-image-2` and
10153
- * `gpt-image-2-2026-04-21`, arbitrary resolutions are supported as `WIDTHxHEIGHT`
10154
- * strings, for example `1536x864`. Width and height must both be divisible by 16
10155
- * and the requested aspect ratio must be between 1:3 and 3:1. Resolutions above
10156
- * `2560x1440` are experimental, and the maximum supported resolution is
10157
- * `3840x2160`. The requested size must also satisfy the model's current pixel and
10158
- * edge limits. The standard sizes `1024x1024`, `1536x1024`, and `1024x1536` are
10159
- * supported by the GPT image models; `auto` is supported for models that allow
10160
- * automatic sizing. For `dall-e-2`, use one of `256x256`, `512x512`, or
10161
- * `1024x1024`. For `dall-e-3`, use one of `1024x1024`, `1792x1024`, or
10162
- * `1024x1792`.
10254
+ * The size of the generated images. For `gpt-image-2`, `gpt-image-2-2026-04-21`,
10255
+ * `gpt-image-2.5-sunburst`, `gpt-image-2.5-sunburst-2026-09-08`,
10256
+ * `gpt-image-2.5-flare`, and `gpt-image-2.5-flare-2026-09-08`, arbitrary
10257
+ * resolutions are supported as `WIDTHxHEIGHT` strings, for example `1536x864`.
10258
+ * Width and height must both be divisible by 16 and the requested aspect ratio
10259
+ * must be between 1:3 and 3:1. Resolutions above `2560x1440` are experimental, and
10260
+ * the maximum supported resolution is `3840x2160`. The requested size must also
10261
+ * satisfy the model's current pixel and edge limits. The standard sizes
10262
+ * `1024x1024`, `1536x1024`, and `1024x1536` are supported by the GPT image models;
10263
+ * `auto` is supported for models that allow automatic sizing. For `dall-e-2`, use
10264
+ * one of `256x256`, `512x512`, or `1024x1024`. For `dall-e-3`, use one of
10265
+ * `1024x1024`, `1792x1024`, or `1024x1792`.
10163
10266
  */
10164
10267
  size?: (string & {}) | '1024x1024' | '1024x1536' | '1536x1024' | 'auto';
10165
10268
  }
@@ -10714,6 +10817,9 @@ export interface ResponseCreateParamsBase {
10714
10817
 
10715
10818
  /**
10716
10819
  * Whether to store the generated model response for later retrieval via API.
10820
+ * Defaults to true when omitted. If set to true, response data will be stored for
10821
+ * at least 30 days, subject to the
10822
+ * [data retention exceptions](/api/docs/guides/your-data#v1responses).
10717
10823
  */
10718
10824
  store?: boolean | null;
10719
10825
 
@@ -10900,6 +11006,12 @@ export namespace ResponseCreateParams {
10900
11006
  * for current details.
10901
11007
  */
10902
11008
  export interface PromptCacheOptions {
11009
+ /**
11010
+ * The ID of a response to compare when diagnosing prompt cache reuse. Supplying
11011
+ * this field requests prompt cache diagnostics when the feature is enabled.
11012
+ */
11013
+ comparison_response_id?: string | null;
11014
+
10903
11015
  /**
10904
11016
  * Controls whether OpenAI automatically creates an implicit cache breakpoint.
10905
11017
  * Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
@@ -11201,12 +11313,13 @@ export interface ResponseCompactParams {
11201
11313
  * request will be processed with the Flex Processing service tier. - To opt-in to
11202
11314
  * [Fast mode](/api/docs/guides/fast-mode) at the request level, include the
11203
11315
  * `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat
11204
- * Completions. The response will show `service_tier=priority` regardless of if you
11205
- * specify `service_tier=fast` or `priority` in your request. - When not set, the
11206
- * default behavior is 'auto'. When the `service_tier` parameter is set, the
11207
- * response body will include the `service_tier` value based on the processing mode
11208
- * actually used to serve the request. This response value may be different from
11209
- * the value set in the parameter.
11316
+ * Completions. For models with a dedicated Fast tier, either value resolves to
11317
+ * `service_tier=fast`; for other models, either value resolves to
11318
+ * `service_tier=priority`. - When not set, the default behavior is 'auto'. When
11319
+ * the `service_tier` parameter is set, the response body will include the
11320
+ * `service_tier` value based on the processing mode actually used to serve the
11321
+ * request. This response value may be different from the value set in the
11322
+ * parameter.
11210
11323
  */
11211
11324
  service_tier?: 'auto' | 'default' | 'fast' | 'flex' | 'priority' | null;
11212
11325
  }
@@ -538,8 +538,8 @@ export namespace LiveCallIncomingWebhookEvent {
538
538
  */
539
539
  export interface Data {
540
540
  /**
541
- * The Transceiver `rtc_...` ID of the pending SIP session. The same value appears
542
- * as `call_id` in `realtime.call.incoming`.
541
+ * The `live_...` ID of the pending SIP session. Forward this value unchanged when
542
+ * accepting or rejecting the call through the Live API.
543
543
  */
544
544
  session_id: string;
545
545
 
@@ -605,8 +605,10 @@ export namespace RealtimeCallIncomingWebhookEvent {
605
605
  */
606
606
  export interface Data {
607
607
  /**
608
- * The Transceiver `rtc_...` ID of the pending SIP session. The same value appears
609
- * as `session_id` in `live.call.incoming`.
608
+ * The Transceiver `rtc_...` ID of the pending SIP session. The paired
609
+ * `live.call.incoming` event derives its `session_id` by replacing the `rtc_`
610
+ * prefix with `live_`. Use the ID returned by the event with the corresponding
611
+ * Realtime or Live API.
610
612
  */
611
613
  call_id: string;
612
614
 
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** Version of the installed OpenAI SDK package. */
2
- export const VERSION = '7.10.0'; // x-release-please-version
2
+ export const VERSION = '7.12.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Version of the installed OpenAI SDK package. */
2
- export declare const VERSION = "7.10.0";
2
+ export declare const VERSION = "7.12.1";
3
3
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Version of the installed OpenAI SDK package. */
2
- export declare const VERSION = "7.10.0";
2
+ export declare const VERSION = "7.12.1";
3
3
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  /** Version of the installed OpenAI SDK package. */
5
- exports.VERSION = '7.10.0'; // x-release-please-version
5
+ exports.VERSION = '7.12.1'; // x-release-please-version
6
6
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Version of the installed OpenAI SDK package. */
2
- export const VERSION = '7.10.0'; // x-release-please-version
2
+ export const VERSION = '7.12.1'; // x-release-please-version
3
3
  //# sourceMappingURL=version.mjs.map