openai 6.35.0 → 6.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (777) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/azure.d.mts +4 -1
  3. package/azure.d.mts.map +1 -1
  4. package/azure.d.ts +4 -1
  5. package/azure.d.ts.map +1 -1
  6. package/azure.js +4 -3
  7. package/azure.js.map +1 -1
  8. package/azure.mjs +4 -3
  9. package/azure.mjs.map +1 -1
  10. package/beta/realtime/websocket.d.mts.map +1 -1
  11. package/beta/realtime/websocket.d.ts.map +1 -1
  12. package/beta/realtime/websocket.js +7 -2
  13. package/beta/realtime/websocket.js.map +1 -1
  14. package/beta/realtime/websocket.mjs +7 -2
  15. package/beta/realtime/websocket.mjs.map +1 -1
  16. package/beta/realtime/ws.d.mts.map +1 -1
  17. package/beta/realtime/ws.d.ts.map +1 -1
  18. package/beta/realtime/ws.js +5 -1
  19. package/beta/realtime/ws.js.map +1 -1
  20. package/beta/realtime/ws.mjs +5 -1
  21. package/beta/realtime/ws.mjs.map +1 -1
  22. package/bin/migration-config.json +735 -0
  23. package/client.d.mts +30 -8
  24. package/client.d.mts.map +1 -1
  25. package/client.d.ts +30 -8
  26. package/client.d.ts.map +1 -1
  27. package/client.js +78 -22
  28. package/client.js.map +1 -1
  29. package/client.mjs +78 -22
  30. package/client.mjs.map +1 -1
  31. package/core/pagination.d.mts +18 -0
  32. package/core/pagination.d.mts.map +1 -1
  33. package/core/pagination.d.ts +18 -0
  34. package/core/pagination.d.ts.map +1 -1
  35. package/core/pagination.js +32 -1
  36. package/core/pagination.js.map +1 -1
  37. package/core/pagination.mjs +30 -0
  38. package/core/pagination.mjs.map +1 -1
  39. package/internal/request-options.d.mts +4 -0
  40. package/internal/request-options.d.mts.map +1 -1
  41. package/internal/request-options.d.ts +4 -0
  42. package/internal/request-options.d.ts.map +1 -1
  43. package/internal/request-options.js.map +1 -1
  44. package/internal/request-options.mjs.map +1 -1
  45. package/internal/utils/log.d.mts.map +1 -1
  46. package/internal/utils/log.d.ts.map +1 -1
  47. package/internal/utils/log.js +2 -0
  48. package/internal/utils/log.js.map +1 -1
  49. package/internal/utils/log.mjs +2 -0
  50. package/internal/utils/log.mjs.map +1 -1
  51. package/package.json +1 -1
  52. package/realtime/websocket.d.mts.map +1 -1
  53. package/realtime/websocket.d.ts.map +1 -1
  54. package/realtime/websocket.js +7 -2
  55. package/realtime/websocket.js.map +1 -1
  56. package/realtime/websocket.mjs +7 -2
  57. package/realtime/websocket.mjs.map +1 -1
  58. package/realtime/ws.d.mts.map +1 -1
  59. package/realtime/ws.d.ts.map +1 -1
  60. package/realtime/ws.js +5 -1
  61. package/realtime/ws.js.map +1 -1
  62. package/realtime/ws.mjs +5 -1
  63. package/realtime/ws.mjs.map +1 -1
  64. package/resources/admin/admin.d.mts +10 -0
  65. package/resources/admin/admin.d.mts.map +1 -0
  66. package/resources/admin/admin.d.ts +10 -0
  67. package/resources/admin/admin.d.ts.map +1 -0
  68. package/resources/admin/admin.js +17 -0
  69. package/resources/admin/admin.js.map +1 -0
  70. package/resources/admin/admin.mjs +12 -0
  71. package/resources/admin/admin.mjs.map +1 -0
  72. package/resources/admin/index.d.mts +3 -0
  73. package/resources/admin/index.d.mts.map +1 -0
  74. package/resources/admin/index.d.ts +3 -0
  75. package/resources/admin/index.d.ts.map +1 -0
  76. package/resources/admin/index.js +9 -0
  77. package/resources/admin/index.js.map +1 -0
  78. package/resources/admin/index.mjs +4 -0
  79. package/resources/admin/index.mjs.map +1 -0
  80. package/resources/admin/organization/admin-api-keys.d.mts +140 -0
  81. package/resources/admin/organization/admin-api-keys.d.mts.map +1 -0
  82. package/resources/admin/organization/admin-api-keys.d.ts +140 -0
  83. package/resources/admin/organization/admin-api-keys.d.ts.map +1 -0
  84. package/resources/admin/organization/admin-api-keys.js +81 -0
  85. package/resources/admin/organization/admin-api-keys.js.map +1 -0
  86. package/resources/admin/organization/admin-api-keys.mjs +77 -0
  87. package/resources/admin/organization/admin-api-keys.mjs.map +1 -0
  88. package/resources/admin/organization/audit-logs.d.mts +1267 -0
  89. package/resources/admin/organization/audit-logs.d.mts.map +1 -0
  90. package/resources/admin/organization/audit-logs.d.ts +1267 -0
  91. package/resources/admin/organization/audit-logs.d.ts.map +1 -0
  92. package/resources/admin/organization/audit-logs.js +31 -0
  93. package/resources/admin/organization/audit-logs.js.map +1 -0
  94. package/resources/admin/organization/audit-logs.mjs +27 -0
  95. package/resources/admin/organization/audit-logs.mjs.map +1 -0
  96. package/resources/admin/organization/certificates.d.mts +322 -0
  97. package/resources/admin/organization/certificates.d.mts.map +1 -0
  98. package/resources/admin/organization/certificates.d.ts +322 -0
  99. package/resources/admin/organization/certificates.d.ts.map +1 -0
  100. package/resources/admin/organization/certificates.js +144 -0
  101. package/resources/admin/organization/certificates.js.map +1 -0
  102. package/resources/admin/organization/certificates.mjs +140 -0
  103. package/resources/admin/organization/certificates.mjs.map +1 -0
  104. package/resources/admin/organization/groups/groups.d.mts +148 -0
  105. package/resources/admin/organization/groups/groups.d.mts.map +1 -0
  106. package/resources/admin/organization/groups/groups.d.ts +148 -0
  107. package/resources/admin/organization/groups/groups.d.ts.map +1 -0
  108. package/resources/admin/organization/groups/groups.js +92 -0
  109. package/resources/admin/organization/groups/groups.js.map +1 -0
  110. package/resources/admin/organization/groups/groups.mjs +87 -0
  111. package/resources/admin/organization/groups/groups.mjs.map +1 -0
  112. package/resources/admin/organization/groups/index.d.mts +4 -0
  113. package/resources/admin/organization/groups/index.d.mts.map +1 -0
  114. package/resources/admin/organization/groups/index.d.ts +4 -0
  115. package/resources/admin/organization/groups/index.d.ts.map +1 -0
  116. package/resources/admin/organization/groups/index.js +11 -0
  117. package/resources/admin/organization/groups/index.js.map +1 -0
  118. package/resources/admin/organization/groups/index.mjs +5 -0
  119. package/resources/admin/organization/groups/index.mjs.map +1 -0
  120. package/resources/admin/organization/groups/roles.d.mts +182 -0
  121. package/resources/admin/organization/groups/roles.d.mts.map +1 -0
  122. package/resources/admin/organization/groups/roles.d.ts +182 -0
  123. package/resources/admin/organization/groups/roles.d.ts.map +1 -0
  124. package/resources/admin/organization/groups/roles.js +65 -0
  125. package/resources/admin/organization/groups/roles.js.map +1 -0
  126. package/resources/admin/organization/groups/roles.mjs +61 -0
  127. package/resources/admin/organization/groups/roles.mjs.map +1 -0
  128. package/resources/admin/organization/groups/users.d.mts +116 -0
  129. package/resources/admin/organization/groups/users.d.mts.map +1 -0
  130. package/resources/admin/organization/groups/users.d.ts +116 -0
  131. package/resources/admin/organization/groups/users.d.ts.map +1 -0
  132. package/resources/admin/organization/groups/users.js +65 -0
  133. package/resources/admin/organization/groups/users.js.map +1 -0
  134. package/resources/admin/organization/groups/users.mjs +61 -0
  135. package/resources/admin/organization/groups/users.mjs.map +1 -0
  136. package/resources/admin/organization/groups.d.mts +2 -0
  137. package/resources/admin/organization/groups.d.mts.map +1 -0
  138. package/resources/admin/organization/groups.d.ts +2 -0
  139. package/resources/admin/organization/groups.d.ts.map +1 -0
  140. package/resources/admin/organization/groups.js +6 -0
  141. package/resources/admin/organization/groups.js.map +1 -0
  142. package/resources/admin/organization/groups.mjs +3 -0
  143. package/resources/admin/organization/groups.mjs.map +1 -0
  144. package/resources/admin/organization/index.d.mts +11 -0
  145. package/resources/admin/organization/index.d.mts.map +1 -0
  146. package/resources/admin/organization/index.d.ts +11 -0
  147. package/resources/admin/organization/index.d.ts.map +1 -0
  148. package/resources/admin/organization/index.js +25 -0
  149. package/resources/admin/organization/index.js.map +1 -0
  150. package/resources/admin/organization/index.mjs +12 -0
  151. package/resources/admin/organization/index.mjs.map +1 -0
  152. package/resources/admin/organization/invites.d.mts +152 -0
  153. package/resources/admin/organization/invites.d.mts.map +1 -0
  154. package/resources/admin/organization/invites.d.ts +152 -0
  155. package/resources/admin/organization/invites.d.ts.map +1 -0
  156. package/resources/admin/organization/invites.js +83 -0
  157. package/resources/admin/organization/invites.js.map +1 -0
  158. package/resources/admin/organization/invites.mjs +79 -0
  159. package/resources/admin/organization/invites.mjs.map +1 -0
  160. package/resources/admin/organization/organization.d.mts +42 -0
  161. package/resources/admin/organization/organization.d.mts.map +1 -0
  162. package/resources/admin/organization/organization.d.ts +42 -0
  163. package/resources/admin/organization/organization.d.ts.map +1 -0
  164. package/resources/admin/organization/organization.js +49 -0
  165. package/resources/admin/organization/organization.js.map +1 -0
  166. package/resources/admin/organization/organization.mjs +44 -0
  167. package/resources/admin/organization/organization.mjs.map +1 -0
  168. package/resources/admin/organization/projects/api-keys.d.mts +167 -0
  169. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -0
  170. package/resources/admin/organization/projects/api-keys.d.ts +167 -0
  171. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -0
  172. package/resources/admin/organization/projects/api-keys.js +68 -0
  173. package/resources/admin/organization/projects/api-keys.js.map +1 -0
  174. package/resources/admin/organization/projects/api-keys.mjs +64 -0
  175. package/resources/admin/organization/projects/api-keys.mjs.map +1 -0
  176. package/resources/admin/organization/projects/certificates.d.mts +186 -0
  177. package/resources/admin/organization/projects/certificates.d.mts.map +1 -0
  178. package/resources/admin/organization/projects/certificates.d.ts +186 -0
  179. package/resources/admin/organization/projects/certificates.d.ts.map +1 -0
  180. package/resources/admin/organization/projects/certificates.js +64 -0
  181. package/resources/admin/organization/projects/certificates.js.map +1 -0
  182. package/resources/admin/organization/projects/certificates.mjs +60 -0
  183. package/resources/admin/organization/projects/certificates.mjs.map +1 -0
  184. package/resources/admin/organization/projects/groups/groups.d.mts +119 -0
  185. package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -0
  186. package/resources/admin/organization/projects/groups/groups.d.ts +119 -0
  187. package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -0
  188. package/resources/admin/organization/projects/groups/groups.js +73 -0
  189. package/resources/admin/organization/projects/groups/groups.js.map +1 -0
  190. package/resources/admin/organization/projects/groups/groups.mjs +68 -0
  191. package/resources/admin/organization/projects/groups/groups.mjs.map +1 -0
  192. package/resources/admin/organization/projects/groups/index.d.mts +3 -0
  193. package/resources/admin/organization/projects/groups/index.d.mts.map +1 -0
  194. package/resources/admin/organization/projects/groups/index.d.ts +3 -0
  195. package/resources/admin/organization/projects/groups/index.d.ts.map +1 -0
  196. package/resources/admin/organization/projects/groups/index.js +9 -0
  197. package/resources/admin/organization/projects/groups/index.js.map +1 -0
  198. package/resources/admin/organization/projects/groups/index.mjs +4 -0
  199. package/resources/admin/organization/projects/groups/index.mjs.map +1 -0
  200. package/resources/admin/organization/projects/groups/roles.d.mts +195 -0
  201. package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -0
  202. package/resources/admin/organization/projects/groups/roles.d.ts +195 -0
  203. package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -0
  204. package/resources/admin/organization/projects/groups/roles.js +68 -0
  205. package/resources/admin/organization/projects/groups/roles.js.map +1 -0
  206. package/resources/admin/organization/projects/groups/roles.mjs +64 -0
  207. package/resources/admin/organization/projects/groups/roles.mjs.map +1 -0
  208. package/resources/admin/organization/projects/groups.d.mts +2 -0
  209. package/resources/admin/organization/projects/groups.d.mts.map +1 -0
  210. package/resources/admin/organization/projects/groups.d.ts +2 -0
  211. package/resources/admin/organization/projects/groups.d.ts.map +1 -0
  212. package/resources/admin/organization/projects/groups.js +6 -0
  213. package/resources/admin/organization/projects/groups.js.map +1 -0
  214. package/resources/admin/organization/projects/groups.mjs +3 -0
  215. package/resources/admin/organization/projects/groups.mjs.map +1 -0
  216. package/resources/admin/organization/projects/index.d.mts +9 -0
  217. package/resources/admin/organization/projects/index.d.mts.map +1 -0
  218. package/resources/admin/organization/projects/index.d.ts +9 -0
  219. package/resources/admin/organization/projects/index.d.ts.map +1 -0
  220. package/resources/admin/organization/projects/index.js +21 -0
  221. package/resources/admin/organization/projects/index.js.map +1 -0
  222. package/resources/admin/organization/projects/index.mjs +10 -0
  223. package/resources/admin/organization/projects/index.mjs.map +1 -0
  224. package/resources/admin/organization/projects/projects.d.mts +172 -0
  225. package/resources/admin/organization/projects/projects.d.mts.map +1 -0
  226. package/resources/admin/organization/projects/projects.d.ts +172 -0
  227. package/resources/admin/organization/projects/projects.d.ts.map +1 -0
  228. package/resources/admin/organization/projects/projects.js +133 -0
  229. package/resources/admin/organization/projects/projects.js.map +1 -0
  230. package/resources/admin/organization/projects/projects.mjs +128 -0
  231. package/resources/admin/organization/projects/projects.mjs.map +1 -0
  232. package/resources/admin/organization/projects/rate-limits.d.mts +120 -0
  233. package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -0
  234. package/resources/admin/organization/projects/rate-limits.d.ts +120 -0
  235. package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -0
  236. package/resources/admin/organization/projects/rate-limits.js +47 -0
  237. package/resources/admin/organization/projects/rate-limits.js.map +1 -0
  238. package/resources/admin/organization/projects/rate-limits.mjs +43 -0
  239. package/resources/admin/organization/projects/rate-limits.mjs.map +1 -0
  240. package/resources/admin/organization/projects/roles.d.mts +127 -0
  241. package/resources/admin/organization/projects/roles.d.mts.map +1 -0
  242. package/resources/admin/organization/projects/roles.d.ts +127 -0
  243. package/resources/admin/organization/projects/roles.d.ts.map +1 -0
  244. package/resources/admin/organization/projects/roles.js +89 -0
  245. package/resources/admin/organization/projects/roles.js.map +1 -0
  246. package/resources/admin/organization/projects/roles.mjs +85 -0
  247. package/resources/admin/organization/projects/roles.mjs.map +1 -0
  248. package/resources/admin/organization/projects/service-accounts.d.mts +141 -0
  249. package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -0
  250. package/resources/admin/organization/projects/service-accounts.d.ts +141 -0
  251. package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -0
  252. package/resources/admin/organization/projects/service-accounts.js +85 -0
  253. package/resources/admin/organization/projects/service-accounts.js.map +1 -0
  254. package/resources/admin/organization/projects/service-accounts.mjs +81 -0
  255. package/resources/admin/organization/projects/service-accounts.mjs.map +1 -0
  256. package/resources/admin/organization/projects/users/index.d.mts +3 -0
  257. package/resources/admin/organization/projects/users/index.d.mts.map +1 -0
  258. package/resources/admin/organization/projects/users/index.d.ts +3 -0
  259. package/resources/admin/organization/projects/users/index.d.ts.map +1 -0
  260. package/resources/admin/organization/projects/users/index.js +9 -0
  261. package/resources/admin/organization/projects/users/index.js.map +1 -0
  262. package/resources/admin/organization/projects/users/index.mjs +4 -0
  263. package/resources/admin/organization/projects/users/index.mjs.map +1 -0
  264. package/resources/admin/organization/projects/users/roles.d.mts +169 -0
  265. package/resources/admin/organization/projects/users/roles.d.mts.map +1 -0
  266. package/resources/admin/organization/projects/users/roles.d.ts +169 -0
  267. package/resources/admin/organization/projects/users/roles.d.ts.map +1 -0
  268. package/resources/admin/organization/projects/users/roles.js +68 -0
  269. package/resources/admin/organization/projects/users/roles.js.map +1 -0
  270. package/resources/admin/organization/projects/users/roles.mjs +64 -0
  271. package/resources/admin/organization/projects/users/roles.mjs.map +1 -0
  272. package/resources/admin/organization/projects/users/users.d.mts +157 -0
  273. package/resources/admin/organization/projects/users/users.d.mts.map +1 -0
  274. package/resources/admin/organization/projects/users/users.d.ts +157 -0
  275. package/resources/admin/organization/projects/users/users.d.ts.map +1 -0
  276. package/resources/admin/organization/projects/users/users.js +116 -0
  277. package/resources/admin/organization/projects/users/users.js.map +1 -0
  278. package/resources/admin/organization/projects/users/users.mjs +111 -0
  279. package/resources/admin/organization/projects/users/users.mjs.map +1 -0
  280. package/resources/admin/organization/projects/users.d.mts +2 -0
  281. package/resources/admin/organization/projects/users.d.mts.map +1 -0
  282. package/resources/admin/organization/projects/users.d.ts +2 -0
  283. package/resources/admin/organization/projects/users.d.ts.map +1 -0
  284. package/resources/admin/organization/projects/users.js +6 -0
  285. package/resources/admin/organization/projects/users.js.map +1 -0
  286. package/resources/admin/organization/projects/users.mjs +3 -0
  287. package/resources/admin/organization/projects/users.mjs.map +1 -0
  288. package/resources/admin/organization/projects.d.mts +2 -0
  289. package/resources/admin/organization/projects.d.mts.map +1 -0
  290. package/resources/admin/organization/projects.d.ts +2 -0
  291. package/resources/admin/organization/projects.d.ts.map +1 -0
  292. package/resources/admin/organization/projects.js +6 -0
  293. package/resources/admin/organization/projects.js.map +1 -0
  294. package/resources/admin/organization/projects.mjs +3 -0
  295. package/resources/admin/organization/projects.mjs.map +1 -0
  296. package/resources/admin/organization/roles.d.mts +142 -0
  297. package/resources/admin/organization/roles.d.mts.map +1 -0
  298. package/resources/admin/organization/roles.d.ts +142 -0
  299. package/resources/admin/organization/roles.d.ts.map +1 -0
  300. package/resources/admin/organization/roles.js +80 -0
  301. package/resources/admin/organization/roles.js.map +1 -0
  302. package/resources/admin/organization/roles.mjs +76 -0
  303. package/resources/admin/organization/roles.mjs.map +1 -0
  304. package/resources/admin/organization/usage.d.mts +3564 -0
  305. package/resources/admin/organization/usage.d.mts.map +1 -0
  306. package/resources/admin/organization/usage.d.ts +3564 -0
  307. package/resources/admin/organization/usage.d.ts.map +1 -0
  308. package/resources/admin/organization/usage.js +171 -0
  309. package/resources/admin/organization/usage.js.map +1 -0
  310. package/resources/admin/organization/usage.mjs +167 -0
  311. package/resources/admin/organization/usage.mjs.map +1 -0
  312. package/resources/admin/organization/users/index.d.mts +3 -0
  313. package/resources/admin/organization/users/index.d.mts.map +1 -0
  314. package/resources/admin/organization/users/index.d.ts +3 -0
  315. package/resources/admin/organization/users/index.d.ts.map +1 -0
  316. package/resources/admin/organization/users/index.js +9 -0
  317. package/resources/admin/organization/users/index.js.map +1 -0
  318. package/resources/admin/organization/users/index.mjs +4 -0
  319. package/resources/admin/organization/users/index.mjs.map +1 -0
  320. package/resources/admin/organization/users/roles.d.mts +156 -0
  321. package/resources/admin/organization/users/roles.d.mts.map +1 -0
  322. package/resources/admin/organization/users/roles.d.ts +156 -0
  323. package/resources/admin/organization/users/roles.d.ts.map +1 -0
  324. package/resources/admin/organization/users/roles.js +65 -0
  325. package/resources/admin/organization/users/roles.js.map +1 -0
  326. package/resources/admin/organization/users/roles.mjs +61 -0
  327. package/resources/admin/organization/users/roles.mjs.map +1 -0
  328. package/resources/admin/organization/users/users.d.mts +185 -0
  329. package/resources/admin/organization/users/users.d.mts.map +1 -0
  330. package/resources/admin/organization/users/users.d.ts +185 -0
  331. package/resources/admin/organization/users/users.d.ts.map +1 -0
  332. package/resources/admin/organization/users/users.js +84 -0
  333. package/resources/admin/organization/users/users.js.map +1 -0
  334. package/resources/admin/organization/users/users.mjs +79 -0
  335. package/resources/admin/organization/users/users.mjs.map +1 -0
  336. package/resources/admin/organization/users.d.mts +2 -0
  337. package/resources/admin/organization/users.d.mts.map +1 -0
  338. package/resources/admin/organization/users.d.ts +2 -0
  339. package/resources/admin/organization/users.d.ts.map +1 -0
  340. package/resources/admin/organization/users.js +6 -0
  341. package/resources/admin/organization/users.js.map +1 -0
  342. package/resources/admin/organization/users.mjs +3 -0
  343. package/resources/admin/organization/users.mjs.map +1 -0
  344. package/resources/admin/organization.d.mts +2 -0
  345. package/resources/admin/organization.d.mts.map +1 -0
  346. package/resources/admin/organization.d.ts +2 -0
  347. package/resources/admin/organization.d.ts.map +1 -0
  348. package/resources/admin/organization.js +6 -0
  349. package/resources/admin/organization.js.map +1 -0
  350. package/resources/admin/organization.mjs +3 -0
  351. package/resources/admin/organization.mjs.map +1 -0
  352. package/resources/admin.d.mts +2 -0
  353. package/resources/admin.d.mts.map +1 -0
  354. package/resources/admin.d.ts +2 -0
  355. package/resources/admin.d.ts.map +1 -0
  356. package/resources/admin.js +6 -0
  357. package/resources/admin.js.map +1 -0
  358. package/resources/admin.mjs +3 -0
  359. package/resources/admin.mjs.map +1 -0
  360. package/resources/audio/speech.d.mts.map +1 -1
  361. package/resources/audio/speech.d.ts.map +1 -1
  362. package/resources/audio/speech.js +1 -0
  363. package/resources/audio/speech.js.map +1 -1
  364. package/resources/audio/speech.mjs +1 -0
  365. package/resources/audio/speech.mjs.map +1 -1
  366. package/resources/audio/transcriptions.d.mts.map +1 -1
  367. package/resources/audio/transcriptions.d.ts.map +1 -1
  368. package/resources/audio/transcriptions.js +1 -0
  369. package/resources/audio/transcriptions.js.map +1 -1
  370. package/resources/audio/transcriptions.mjs +1 -0
  371. package/resources/audio/transcriptions.mjs.map +1 -1
  372. package/resources/audio/translations.d.mts.map +1 -1
  373. package/resources/audio/translations.d.ts.map +1 -1
  374. package/resources/audio/translations.js +1 -1
  375. package/resources/audio/translations.js.map +1 -1
  376. package/resources/audio/translations.mjs +1 -1
  377. package/resources/audio/translations.mjs.map +1 -1
  378. package/resources/batches.d.mts.map +1 -1
  379. package/resources/batches.d.ts.map +1 -1
  380. package/resources/batches.js +11 -4
  381. package/resources/batches.js.map +1 -1
  382. package/resources/batches.mjs +11 -4
  383. package/resources/batches.mjs.map +1 -1
  384. package/resources/beta/assistants.d.mts.map +1 -1
  385. package/resources/beta/assistants.d.ts.map +1 -1
  386. package/resources/beta/assistants.js +5 -0
  387. package/resources/beta/assistants.js.map +1 -1
  388. package/resources/beta/assistants.mjs +5 -0
  389. package/resources/beta/assistants.mjs.map +1 -1
  390. package/resources/beta/chatkit/sessions.d.mts.map +1 -1
  391. package/resources/beta/chatkit/sessions.d.ts.map +1 -1
  392. package/resources/beta/chatkit/sessions.js +2 -0
  393. package/resources/beta/chatkit/sessions.js.map +1 -1
  394. package/resources/beta/chatkit/sessions.mjs +2 -0
  395. package/resources/beta/chatkit/sessions.mjs.map +1 -1
  396. package/resources/beta/chatkit/threads.d.mts.map +1 -1
  397. package/resources/beta/chatkit/threads.d.ts.map +1 -1
  398. package/resources/beta/chatkit/threads.js +9 -1
  399. package/resources/beta/chatkit/threads.js.map +1 -1
  400. package/resources/beta/chatkit/threads.mjs +9 -1
  401. package/resources/beta/chatkit/threads.mjs.map +1 -1
  402. package/resources/beta/realtime/sessions.d.mts.map +1 -1
  403. package/resources/beta/realtime/sessions.d.ts.map +1 -1
  404. package/resources/beta/realtime/sessions.js +1 -0
  405. package/resources/beta/realtime/sessions.js.map +1 -1
  406. package/resources/beta/realtime/sessions.mjs +1 -0
  407. package/resources/beta/realtime/sessions.mjs.map +1 -1
  408. package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
  409. package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
  410. package/resources/beta/realtime/transcription-sessions.js +1 -0
  411. package/resources/beta/realtime/transcription-sessions.js.map +1 -1
  412. package/resources/beta/realtime/transcription-sessions.mjs +1 -0
  413. package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
  414. package/resources/beta/threads/messages.d.mts.map +1 -1
  415. package/resources/beta/threads/messages.d.ts.map +1 -1
  416. package/resources/beta/threads/messages.js +5 -0
  417. package/resources/beta/threads/messages.js.map +1 -1
  418. package/resources/beta/threads/messages.mjs +5 -0
  419. package/resources/beta/threads/messages.mjs.map +1 -1
  420. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  421. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  422. package/resources/beta/threads/runs/runs.js +6 -0
  423. package/resources/beta/threads/runs/runs.js.map +1 -1
  424. package/resources/beta/threads/runs/runs.mjs +6 -0
  425. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  426. package/resources/beta/threads/runs/steps.d.mts.map +1 -1
  427. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  428. package/resources/beta/threads/runs/steps.js +2 -0
  429. package/resources/beta/threads/runs/steps.js.map +1 -1
  430. package/resources/beta/threads/runs/steps.mjs +2 -0
  431. package/resources/beta/threads/runs/steps.mjs.map +1 -1
  432. package/resources/beta/threads/threads.d.mts.map +1 -1
  433. package/resources/beta/threads/threads.d.ts.map +1 -1
  434. package/resources/beta/threads/threads.js +5 -0
  435. package/resources/beta/threads/threads.js.map +1 -1
  436. package/resources/beta/threads/threads.mjs +5 -0
  437. package/resources/beta/threads/threads.mjs.map +1 -1
  438. package/resources/chat/completions/completions.d.mts +4 -4
  439. package/resources/chat/completions/completions.d.mts.map +1 -1
  440. package/resources/chat/completions/completions.d.ts +4 -4
  441. package/resources/chat/completions/completions.d.ts.map +1 -1
  442. package/resources/chat/completions/completions.js +24 -5
  443. package/resources/chat/completions/completions.js.map +1 -1
  444. package/resources/chat/completions/completions.mjs +24 -5
  445. package/resources/chat/completions/completions.mjs.map +1 -1
  446. package/resources/chat/completions/messages.js +1 -1
  447. package/resources/chat/completions/messages.js.map +1 -1
  448. package/resources/chat/completions/messages.mjs +1 -1
  449. package/resources/chat/completions/messages.mjs.map +1 -1
  450. package/resources/completions.d.mts.map +1 -1
  451. package/resources/completions.d.ts.map +1 -1
  452. package/resources/completions.js +6 -1
  453. package/resources/completions.js.map +1 -1
  454. package/resources/completions.mjs +6 -1
  455. package/resources/completions.mjs.map +1 -1
  456. package/resources/containers/containers.d.mts.map +1 -1
  457. package/resources/containers/containers.d.ts.map +1 -1
  458. package/resources/containers/containers.js +11 -3
  459. package/resources/containers/containers.js.map +1 -1
  460. package/resources/containers/containers.mjs +11 -3
  461. package/resources/containers/containers.mjs.map +1 -1
  462. package/resources/containers/files/content.d.mts.map +1 -1
  463. package/resources/containers/files/content.d.ts.map +1 -1
  464. package/resources/containers/files/content.js +1 -0
  465. package/resources/containers/files/content.js.map +1 -1
  466. package/resources/containers/files/content.mjs +1 -0
  467. package/resources/containers/files/content.mjs.map +1 -1
  468. package/resources/containers/files/files.d.mts.map +1 -1
  469. package/resources/containers/files/files.d.ts.map +1 -1
  470. package/resources/containers/files/files.js +7 -2
  471. package/resources/containers/files/files.js.map +1 -1
  472. package/resources/containers/files/files.mjs +7 -2
  473. package/resources/containers/files/files.mjs.map +1 -1
  474. package/resources/conversations/conversations.d.mts.map +1 -1
  475. package/resources/conversations/conversations.d.ts.map +1 -1
  476. package/resources/conversations/conversations.js +14 -4
  477. package/resources/conversations/conversations.js.map +1 -1
  478. package/resources/conversations/conversations.mjs +14 -4
  479. package/resources/conversations/conversations.mjs.map +1 -1
  480. package/resources/conversations/items.d.mts.map +1 -1
  481. package/resources/conversations/items.d.ts.map +1 -1
  482. package/resources/conversations/items.js +11 -3
  483. package/resources/conversations/items.js.map +1 -1
  484. package/resources/conversations/items.mjs +11 -3
  485. package/resources/conversations/items.mjs.map +1 -1
  486. package/resources/embeddings.d.mts.map +1 -1
  487. package/resources/embeddings.d.ts.map +1 -1
  488. package/resources/embeddings.js +1 -0
  489. package/resources/embeddings.js.map +1 -1
  490. package/resources/embeddings.mjs +1 -0
  491. package/resources/embeddings.mjs.map +1 -1
  492. package/resources/evals/evals.d.mts.map +1 -1
  493. package/resources/evals/evals.d.ts.map +1 -1
  494. package/resources/evals/evals.js +9 -5
  495. package/resources/evals/evals.js.map +1 -1
  496. package/resources/evals/evals.mjs +9 -5
  497. package/resources/evals/evals.mjs.map +1 -1
  498. package/resources/evals/runs/output-items.d.mts.map +1 -1
  499. package/resources/evals/runs/output-items.d.ts.map +1 -1
  500. package/resources/evals/runs/output-items.js +5 -2
  501. package/resources/evals/runs/output-items.js.map +1 -1
  502. package/resources/evals/runs/output-items.mjs +5 -2
  503. package/resources/evals/runs/output-items.mjs.map +1 -1
  504. package/resources/evals/runs/runs.d.mts.map +1 -1
  505. package/resources/evals/runs/runs.d.ts.map +1 -1
  506. package/resources/evals/runs/runs.js +18 -4
  507. package/resources/evals/runs/runs.js.map +1 -1
  508. package/resources/evals/runs/runs.mjs +18 -4
  509. package/resources/evals/runs/runs.mjs.map +1 -1
  510. package/resources/files.d.mts +8 -1
  511. package/resources/files.d.mts.map +1 -1
  512. package/resources/files.d.ts +8 -1
  513. package/resources/files.d.ts.map +1 -1
  514. package/resources/files.js +17 -5
  515. package/resources/files.js.map +1 -1
  516. package/resources/files.mjs +17 -5
  517. package/resources/files.mjs.map +1 -1
  518. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
  519. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
  520. package/resources/fine-tuning/alpha/graders.js +10 -2
  521. package/resources/fine-tuning/alpha/graders.js.map +1 -1
  522. package/resources/fine-tuning/alpha/graders.mjs +10 -2
  523. package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
  524. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  525. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  526. package/resources/fine-tuning/checkpoints/permissions.js +4 -3
  527. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  528. package/resources/fine-tuning/checkpoints/permissions.mjs +4 -3
  529. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  530. package/resources/fine-tuning/jobs/checkpoints.js +1 -1
  531. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
  532. package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
  533. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
  534. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  535. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  536. package/resources/fine-tuning/jobs/jobs.js +23 -7
  537. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  538. package/resources/fine-tuning/jobs/jobs.mjs +23 -7
  539. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  540. package/resources/images.d.mts +53 -24
  541. package/resources/images.d.mts.map +1 -1
  542. package/resources/images.d.ts +53 -24
  543. package/resources/images.d.ts.map +1 -1
  544. package/resources/images.js +8 -3
  545. package/resources/images.js.map +1 -1
  546. package/resources/images.mjs +8 -3
  547. package/resources/images.mjs.map +1 -1
  548. package/resources/index.d.mts +1 -0
  549. package/resources/index.d.mts.map +1 -1
  550. package/resources/index.d.ts +1 -0
  551. package/resources/index.d.ts.map +1 -1
  552. package/resources/index.js +3 -1
  553. package/resources/index.js.map +1 -1
  554. package/resources/index.mjs +1 -0
  555. package/resources/index.mjs.map +1 -1
  556. package/resources/models.js +3 -3
  557. package/resources/models.js.map +1 -1
  558. package/resources/models.mjs +3 -3
  559. package/resources/models.mjs.map +1 -1
  560. package/resources/moderations.js +1 -1
  561. package/resources/moderations.js.map +1 -1
  562. package/resources/moderations.mjs +1 -1
  563. package/resources/moderations.mjs.map +1 -1
  564. package/resources/realtime/calls.d.mts +10 -1
  565. package/resources/realtime/calls.d.mts.map +1 -1
  566. package/resources/realtime/calls.d.ts +10 -1
  567. package/resources/realtime/calls.d.ts.map +1 -1
  568. package/resources/realtime/calls.js +4 -0
  569. package/resources/realtime/calls.js.map +1 -1
  570. package/resources/realtime/calls.mjs +4 -0
  571. package/resources/realtime/calls.mjs.map +1 -1
  572. package/resources/realtime/client-secrets.d.mts +24 -37
  573. package/resources/realtime/client-secrets.d.mts.map +1 -1
  574. package/resources/realtime/client-secrets.d.ts +24 -37
  575. package/resources/realtime/client-secrets.d.ts.map +1 -1
  576. package/resources/realtime/client-secrets.js +5 -1
  577. package/resources/realtime/client-secrets.js.map +1 -1
  578. package/resources/realtime/client-secrets.mjs +5 -1
  579. package/resources/realtime/client-secrets.mjs.map +1 -1
  580. package/resources/realtime/index.d.mts +1 -1
  581. package/resources/realtime/index.d.mts.map +1 -1
  582. package/resources/realtime/index.d.ts +1 -1
  583. package/resources/realtime/index.d.ts.map +1 -1
  584. package/resources/realtime/index.js.map +1 -1
  585. package/resources/realtime/index.mjs.map +1 -1
  586. package/resources/realtime/realtime.d.mts +545 -10
  587. package/resources/realtime/realtime.d.mts.map +1 -1
  588. package/resources/realtime/realtime.d.ts +545 -10
  589. package/resources/realtime/realtime.d.ts.map +1 -1
  590. package/resources/realtime/realtime.js.map +1 -1
  591. package/resources/realtime/realtime.mjs.map +1 -1
  592. package/resources/responses/input-items.js +1 -1
  593. package/resources/responses/input-items.js.map +1 -1
  594. package/resources/responses/input-items.mjs +1 -1
  595. package/resources/responses/input-items.mjs.map +1 -1
  596. package/resources/responses/input-tokens.d.mts.map +1 -1
  597. package/resources/responses/input-tokens.d.ts.map +1 -1
  598. package/resources/responses/input-tokens.js +5 -1
  599. package/resources/responses/input-tokens.js.map +1 -1
  600. package/resources/responses/input-tokens.mjs +5 -1
  601. package/resources/responses/input-tokens.mjs.map +1 -1
  602. package/resources/responses/responses.d.mts +45 -11
  603. package/resources/responses/responses.d.mts.map +1 -1
  604. package/resources/responses/responses.d.ts +45 -11
  605. package/resources/responses/responses.d.ts.map +1 -1
  606. package/resources/responses/responses.js +13 -3
  607. package/resources/responses/responses.js.map +1 -1
  608. package/resources/responses/responses.mjs +13 -3
  609. package/resources/responses/responses.mjs.map +1 -1
  610. package/resources/responses/ws-base.d.mts.map +1 -1
  611. package/resources/responses/ws-base.d.ts.map +1 -1
  612. package/resources/responses/ws-base.js +3 -1
  613. package/resources/responses/ws-base.js.map +1 -1
  614. package/resources/responses/ws-base.mjs +3 -1
  615. package/resources/responses/ws-base.mjs.map +1 -1
  616. package/resources/skills/content.d.mts.map +1 -1
  617. package/resources/skills/content.d.ts.map +1 -1
  618. package/resources/skills/content.js +1 -0
  619. package/resources/skills/content.js.map +1 -1
  620. package/resources/skills/content.mjs +1 -0
  621. package/resources/skills/content.mjs.map +1 -1
  622. package/resources/skills/skills.d.mts.map +1 -1
  623. package/resources/skills/skills.d.ts.map +1 -1
  624. package/resources/skills/skills.js +13 -5
  625. package/resources/skills/skills.js.map +1 -1
  626. package/resources/skills/skills.mjs +13 -5
  627. package/resources/skills/skills.mjs.map +1 -1
  628. package/resources/skills/versions/content.d.mts.map +1 -1
  629. package/resources/skills/versions/content.d.ts.map +1 -1
  630. package/resources/skills/versions/content.js +1 -0
  631. package/resources/skills/versions/content.js.map +1 -1
  632. package/resources/skills/versions/content.mjs +1 -0
  633. package/resources/skills/versions/content.mjs.map +1 -1
  634. package/resources/skills/versions/versions.d.mts.map +1 -1
  635. package/resources/skills/versions/versions.d.ts.map +1 -1
  636. package/resources/skills/versions/versions.js +10 -3
  637. package/resources/skills/versions/versions.js.map +1 -1
  638. package/resources/skills/versions/versions.mjs +10 -3
  639. package/resources/skills/versions/versions.mjs.map +1 -1
  640. package/resources/uploads/parts.js +1 -1
  641. package/resources/uploads/parts.js.map +1 -1
  642. package/resources/uploads/parts.mjs +1 -1
  643. package/resources/uploads/parts.mjs.map +1 -1
  644. package/resources/uploads/uploads.d.mts.map +1 -1
  645. package/resources/uploads/uploads.d.ts.map +1 -1
  646. package/resources/uploads/uploads.js +10 -3
  647. package/resources/uploads/uploads.js.map +1 -1
  648. package/resources/uploads/uploads.mjs +10 -3
  649. package/resources/uploads/uploads.mjs.map +1 -1
  650. package/resources/vector-stores/file-batches.d.mts.map +1 -1
  651. package/resources/vector-stores/file-batches.d.ts.map +1 -1
  652. package/resources/vector-stores/file-batches.js +9 -1
  653. package/resources/vector-stores/file-batches.js.map +1 -1
  654. package/resources/vector-stores/file-batches.mjs +9 -1
  655. package/resources/vector-stores/file-batches.mjs.map +1 -1
  656. package/resources/vector-stores/files.d.mts.map +1 -1
  657. package/resources/vector-stores/files.d.ts.map +1 -1
  658. package/resources/vector-stores/files.js +10 -1
  659. package/resources/vector-stores/files.js.map +1 -1
  660. package/resources/vector-stores/files.mjs +10 -1
  661. package/resources/vector-stores/files.mjs.map +1 -1
  662. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  663. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  664. package/resources/vector-stores/vector-stores.js +6 -0
  665. package/resources/vector-stores/vector-stores.js.map +1 -1
  666. package/resources/vector-stores/vector-stores.mjs +6 -0
  667. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  668. package/resources/videos.d.mts.map +1 -1
  669. package/resources/videos.d.ts.map +1 -1
  670. package/resources/videos.js +17 -9
  671. package/resources/videos.js.map +1 -1
  672. package/resources/videos.mjs +17 -9
  673. package/resources/videos.mjs.map +1 -1
  674. package/src/azure.ts +7 -3
  675. package/src/beta/realtime/websocket.ts +7 -2
  676. package/src/beta/realtime/ws.ts +5 -1
  677. package/src/client.ts +114 -27
  678. package/src/core/pagination.ts +62 -0
  679. package/src/internal/request-options.ts +1 -0
  680. package/src/internal/utils/log.ts +2 -0
  681. package/src/realtime/websocket.ts +7 -2
  682. package/src/realtime/ws.ts +5 -1
  683. package/src/resources/admin/admin.ts +15 -0
  684. package/src/resources/admin/index.ts +4 -0
  685. package/src/resources/admin/organization/admin-api-keys.ts +199 -0
  686. package/src/resources/admin/organization/audit-logs.ts +1597 -0
  687. package/src/resources/admin/organization/certificates.ts +458 -0
  688. package/src/resources/admin/organization/groups/groups.ts +251 -0
  689. package/src/resources/admin/organization/groups/index.ts +32 -0
  690. package/src/resources/admin/organization/groups/roles.ts +239 -0
  691. package/src/resources/admin/organization/groups/users.ts +164 -0
  692. package/src/resources/admin/organization/groups.ts +3 -0
  693. package/src/resources/admin/organization/index.ts +99 -0
  694. package/src/resources/admin/organization/invites.ts +214 -0
  695. package/src/resources/admin/organization/organization.ts +232 -0
  696. package/src/resources/admin/organization/projects/api-keys.ts +239 -0
  697. package/src/resources/admin/organization/projects/certificates.ts +269 -0
  698. package/src/resources/admin/organization/projects/groups/groups.ts +193 -0
  699. package/src/resources/admin/organization/projects/groups/index.ts +21 -0
  700. package/src/resources/admin/organization/projects/groups/roles.ts +261 -0
  701. package/src/resources/admin/organization/projects/groups.ts +3 -0
  702. package/src/resources/admin/organization/projects/index.ts +77 -0
  703. package/src/resources/admin/organization/projects/projects.ts +372 -0
  704. package/src/resources/admin/organization/projects/rate-limits.ts +173 -0
  705. package/src/resources/admin/organization/projects/roles.ts +182 -0
  706. package/src/resources/admin/organization/projects/service-accounts.ts +224 -0
  707. package/src/resources/admin/organization/projects/users/index.ts +23 -0
  708. package/src/resources/admin/organization/projects/users/roles.ts +226 -0
  709. package/src/resources/admin/organization/projects/users/users.ts +252 -0
  710. package/src/resources/admin/organization/projects/users.ts +3 -0
  711. package/src/resources/admin/organization/projects.ts +3 -0
  712. package/src/resources/admin/organization/roles.ts +200 -0
  713. package/src/resources/admin/organization/usage.ts +4483 -0
  714. package/src/resources/admin/organization/users/index.ts +20 -0
  715. package/src/resources/admin/organization/users/roles.ts +208 -0
  716. package/src/resources/admin/organization/users/users.ts +287 -0
  717. package/src/resources/admin/organization/users.ts +3 -0
  718. package/src/resources/admin/organization.ts +3 -0
  719. package/src/resources/admin.ts +3 -0
  720. package/src/resources/audio/speech.ts +1 -0
  721. package/src/resources/audio/transcriptions.ts +1 -0
  722. package/src/resources/audio/translations.ts +4 -1
  723. package/src/resources/batches.ts +11 -4
  724. package/src/resources/beta/assistants.ts +5 -0
  725. package/src/resources/beta/chatkit/sessions.ts +2 -0
  726. package/src/resources/beta/chatkit/threads.ts +9 -1
  727. package/src/resources/beta/realtime/sessions.ts +1 -0
  728. package/src/resources/beta/realtime/transcription-sessions.ts +1 -0
  729. package/src/resources/beta/threads/messages.ts +5 -0
  730. package/src/resources/beta/threads/runs/runs.ts +6 -0
  731. package/src/resources/beta/threads/runs/steps.ts +2 -0
  732. package/src/resources/beta/threads/threads.ts +5 -0
  733. package/src/resources/chat/completions/completions.ts +28 -11
  734. package/src/resources/chat/completions/messages.ts +1 -1
  735. package/src/resources/completions.ts +6 -3
  736. package/src/resources/containers/containers.ts +11 -3
  737. package/src/resources/containers/files/content.ts +1 -0
  738. package/src/resources/containers/files/files.ts +7 -2
  739. package/src/resources/conversations/conversations.ts +14 -4
  740. package/src/resources/conversations/items.ts +11 -3
  741. package/src/resources/embeddings.ts +1 -0
  742. package/src/resources/evals/evals.ts +9 -5
  743. package/src/resources/evals/runs/output-items.ts +5 -2
  744. package/src/resources/evals/runs/runs.ts +18 -4
  745. package/src/resources/files.ts +20 -5
  746. package/src/resources/fine-tuning/alpha/graders.ts +10 -2
  747. package/src/resources/fine-tuning/checkpoints/permissions.ts +4 -3
  748. package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
  749. package/src/resources/fine-tuning/jobs/jobs.ts +23 -7
  750. package/src/resources/images.ts +71 -27
  751. package/src/resources/index.ts +1 -0
  752. package/src/resources/models.ts +3 -3
  753. package/src/resources/moderations.ts +1 -1
  754. package/src/resources/realtime/api.md +18 -1
  755. package/src/resources/realtime/calls.ts +16 -0
  756. package/src/resources/realtime/client-secrets.ts +30 -38
  757. package/src/resources/realtime/index.ts +0 -1
  758. package/src/resources/realtime/realtime.ts +647 -8
  759. package/src/resources/responses/input-items.ts +1 -1
  760. package/src/resources/responses/input-tokens.ts +5 -1
  761. package/src/resources/responses/responses.ts +66 -15
  762. package/src/resources/responses/ws-base.ts +3 -1
  763. package/src/resources/skills/content.ts +1 -0
  764. package/src/resources/skills/skills.ts +16 -5
  765. package/src/resources/skills/versions/content.ts +1 -0
  766. package/src/resources/skills/versions/versions.ts +10 -3
  767. package/src/resources/uploads/parts.ts +1 -1
  768. package/src/resources/uploads/uploads.ts +10 -3
  769. package/src/resources/vector-stores/file-batches.ts +9 -1
  770. package/src/resources/vector-stores/files.ts +10 -1
  771. package/src/resources/vector-stores/vector-stores.ts +6 -0
  772. package/src/resources/videos.ts +20 -9
  773. package/src/version.ts +1 -1
  774. package/version.d.mts +1 -1
  775. package/version.d.ts +1 -1
  776. package/version.js +1 -1
  777. package/version.mjs +1 -1
@@ -10,7 +10,6 @@ import {
10
10
  ClientSecretCreateParams,
11
11
  ClientSecretCreateResponse,
12
12
  ClientSecrets,
13
- RealtimeSessionClientSecret,
14
13
  RealtimeSessionCreateResponse,
15
14
  RealtimeTranscriptionSessionCreateResponse,
16
15
  RealtimeTranscriptionSessionTurnDetection,
@@ -23,6 +22,13 @@ export class Realtime extends APIResource {
23
22
  }
24
23
 
25
24
  export interface AudioTranscription {
25
+ /**
26
+ * Controls how long the model waits before emitting transcription text. Higher
27
+ * values can improve transcription accuracy at the cost of latency. Only supported
28
+ * with `gpt-realtime-whisper` in GA Realtime sessions.
29
+ */
30
+ delay?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
31
+
26
32
  /**
27
33
  * The language of the input audio. Supplying the input language in
28
34
  * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`)
@@ -33,8 +39,8 @@ export interface AudioTranscription {
33
39
  /**
34
40
  * The model to use for transcription. Current options are `whisper-1`,
35
41
  * `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`,
36
- * `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`. Use
37
- * `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
42
+ * `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`.
43
+ * Use `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
38
44
  */
39
45
  model?:
40
46
  | (string & {})
@@ -42,7 +48,8 @@ export interface AudioTranscription {
42
48
  | 'gpt-4o-mini-transcribe'
43
49
  | 'gpt-4o-mini-transcribe-2025-12-15'
44
50
  | 'gpt-4o-transcribe'
45
- | 'gpt-4o-transcribe-diarize';
51
+ | 'gpt-4o-transcribe-diarize'
52
+ | 'gpt-realtime-whisper';
46
53
 
47
54
  /**
48
55
  * An optional text to guide the model's style or continue a previous audio
@@ -50,6 +57,7 @@ export interface AudioTranscription {
50
57
  * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
51
58
  * For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the
52
59
  * prompt is a free text string, for example "expect words related to technology".
60
+ * Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.
53
61
  */
54
62
  prompt?: string;
55
63
  }
@@ -1220,6 +1228,9 @@ export interface RealtimeAudioConfigInput {
1220
1228
  * trails off with "uhhm", the model will score a low probability of turn end and
1221
1229
  * wait longer for the user to continue speaking. This can be useful for more
1222
1230
  * natural conversations, but may have a higher latency.
1231
+ *
1232
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
1233
+ * `null`; VAD is not supported.
1223
1234
  */
1224
1235
  turn_detection?: RealtimeAudioInputTurnDetection | null;
1225
1236
  }
@@ -1353,6 +1364,9 @@ export namespace RealtimeAudioFormats {
1353
1364
  * trails off with "uhhm", the model will score a low probability of turn end and
1354
1365
  * wait longer for the user to continue speaking. This can be useful for more
1355
1366
  * natural conversations, but may have a higher latency.
1367
+ *
1368
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
1369
+ * `null`; VAD is not supported.
1356
1370
  */
1357
1371
  export type RealtimeAudioInputTurnDetection =
1358
1372
  | RealtimeAudioInputTurnDetection.ServerVad
@@ -2010,6 +2024,23 @@ export interface RealtimeMcphttpError {
2010
2024
  type: 'http_error';
2011
2025
  }
2012
2026
 
2027
+ /**
2028
+ * Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
2029
+ */
2030
+ export interface RealtimeReasoning {
2031
+ /**
2032
+ * Constrains effort on reasoning for reasoning-capable Realtime models such as
2033
+ * `gpt-realtime-2`.
2034
+ */
2035
+ effort?: RealtimeReasoningEffort;
2036
+ }
2037
+
2038
+ /**
2039
+ * Constrains effort on reasoning for reasoning-capable Realtime models such as
2040
+ * `gpt-realtime-2`.
2041
+ */
2042
+ export type RealtimeReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
2043
+
2013
2044
  /**
2014
2045
  * The response resource.
2015
2046
  */
@@ -2397,12 +2428,23 @@ export interface RealtimeResponseCreateParams {
2397
2428
  */
2398
2429
  output_modalities?: Array<'text' | 'audio'>;
2399
2430
 
2431
+ /**
2432
+ * Whether the model may call multiple tools in parallel. Only supported by
2433
+ * reasoning Realtime models such as `gpt-realtime-2`.
2434
+ */
2435
+ parallel_tool_calls?: boolean;
2436
+
2400
2437
  /**
2401
2438
  * Reference to a prompt template and its variables.
2402
2439
  * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
2403
2440
  */
2404
2441
  prompt?: ResponsesAPI.ResponsePrompt | null;
2405
2442
 
2443
+ /**
2444
+ * Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
2445
+ */
2446
+ reasoning?: RealtimeReasoning;
2447
+
2406
2448
  /**
2407
2449
  * How the model chooses tools. Provide one of the string modes or force a specific
2408
2450
  * function/MCP tool.
@@ -2880,6 +2922,9 @@ export interface RealtimeSession {
2880
2922
  * trails off with "uhhm", the model will score a low probability of turn end and
2881
2923
  * wait longer for the user to continue speaking. This can be useful for more
2882
2924
  * natural conversations, but may have a higher latency.
2925
+ *
2926
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
2927
+ * `null`; VAD is not supported.
2883
2928
  */
2884
2929
  turn_detection?: RealtimeSession.ServerVad | RealtimeSession.SemanticVad | null;
2885
2930
 
@@ -3094,6 +3139,7 @@ export interface RealtimeSessionCreateRequest {
3094
3139
  | (string & {})
3095
3140
  | 'gpt-realtime'
3096
3141
  | 'gpt-realtime-1.5'
3142
+ | 'gpt-realtime-2'
3097
3143
  | 'gpt-realtime-2025-08-28'
3098
3144
  | 'gpt-4o-realtime-preview'
3099
3145
  | 'gpt-4o-realtime-preview-2024-10-01'
@@ -3117,12 +3163,23 @@ export interface RealtimeSessionCreateRequest {
3117
3163
  */
3118
3164
  output_modalities?: Array<'text' | 'audio'>;
3119
3165
 
3166
+ /**
3167
+ * Whether the model may call multiple tools in parallel. Only supported by
3168
+ * reasoning Realtime models such as `gpt-realtime-2`.
3169
+ */
3170
+ parallel_tool_calls?: boolean;
3171
+
3120
3172
  /**
3121
3173
  * Reference to a prompt template and its variables.
3122
3174
  * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
3123
3175
  */
3124
3176
  prompt?: ResponsesAPI.ResponsePrompt | null;
3125
3177
 
3178
+ /**
3179
+ * Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
3180
+ */
3181
+ reasoning?: RealtimeReasoning;
3182
+
3126
3183
  /**
3127
3184
  * How the model chooses tools. Provide one of the string modes or force a specific
3128
3185
  * function/MCP tool.
@@ -3432,6 +3489,9 @@ export interface RealtimeTranscriptionSessionAudioInput {
3432
3489
  * trails off with "uhhm", the model will score a low probability of turn end and
3433
3490
  * wait longer for the user to continue speaking. This can be useful for more
3434
3491
  * natural conversations, but may have a higher latency.
3492
+ *
3493
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
3494
+ * `null`; VAD is not supported.
3435
3495
  */
3436
3496
  turn_detection?: RealtimeTranscriptionSessionAudioInputTurnDetection | null;
3437
3497
  }
@@ -3468,6 +3528,9 @@ export namespace RealtimeTranscriptionSessionAudioInput {
3468
3528
  * trails off with "uhhm", the model will score a low probability of turn end and
3469
3529
  * wait longer for the user to continue speaking. This can be useful for more
3470
3530
  * natural conversations, but may have a higher latency.
3531
+ *
3532
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
3533
+ * `null`; VAD is not supported.
3471
3534
  */
3472
3535
  export type RealtimeTranscriptionSessionAudioInputTurnDetection =
3473
3536
  | RealtimeTranscriptionSessionAudioInputTurnDetection.ServerVad
@@ -3599,6 +3662,568 @@ export interface RealtimeTranscriptionSessionCreateRequest {
3599
3662
  include?: Array<'item.input_audio_transcription.logprobs'>;
3600
3663
  }
3601
3664
 
3665
+ /**
3666
+ * A Realtime translation client event.
3667
+ */
3668
+ export type RealtimeTranslationClientEvent =
3669
+ | RealtimeTranslationSessionUpdateEvent
3670
+ | RealtimeTranslationInputAudioBufferAppendEvent
3671
+ | RealtimeTranslationSessionCloseEvent;
3672
+
3673
+ /**
3674
+ * Create a translation session and client secret for the Realtime API.
3675
+ */
3676
+ export interface RealtimeTranslationClientSecretCreateRequest {
3677
+ /**
3678
+ * Realtime translation session configuration. Translation sessions stream source
3679
+ * audio in and translated audio plus transcript deltas out continuously.
3680
+ */
3681
+ session: RealtimeTranslationSessionCreateRequest;
3682
+
3683
+ /**
3684
+ * Configuration for the client secret expiration. Expiration refers to the time
3685
+ * after which a client secret will no longer be valid for creating sessions. The
3686
+ * session itself may continue after that time once started. A secret can be used
3687
+ * to create multiple sessions until it expires.
3688
+ */
3689
+ expires_after?: RealtimeTranslationClientSecretCreateRequest.ExpiresAfter;
3690
+ }
3691
+
3692
+ export namespace RealtimeTranslationClientSecretCreateRequest {
3693
+ /**
3694
+ * Configuration for the client secret expiration. Expiration refers to the time
3695
+ * after which a client secret will no longer be valid for creating sessions. The
3696
+ * session itself may continue after that time once started. A secret can be used
3697
+ * to create multiple sessions until it expires.
3698
+ */
3699
+ export interface ExpiresAfter {
3700
+ /**
3701
+ * The anchor point for the client secret expiration, meaning that `seconds` will
3702
+ * be added to the `created_at` time of the client secret to produce an expiration
3703
+ * timestamp. Only `created_at` is currently supported.
3704
+ */
3705
+ anchor?: 'created_at';
3706
+
3707
+ /**
3708
+ * The number of seconds from the anchor point to the expiration. Select a value
3709
+ * between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if
3710
+ * not specified.
3711
+ */
3712
+ seconds?: number;
3713
+ }
3714
+ }
3715
+
3716
+ /**
3717
+ * Response from creating a translation session and client secret for the Realtime
3718
+ * API.
3719
+ */
3720
+ export interface RealtimeTranslationClientSecretCreateResponse {
3721
+ /**
3722
+ * Expiration timestamp for the client secret, in seconds since epoch.
3723
+ */
3724
+ expires_at: number;
3725
+
3726
+ /**
3727
+ * A Realtime translation session. Translation sessions continuously translate
3728
+ * input audio into the configured output language.
3729
+ */
3730
+ session: RealtimeTranslationSession;
3731
+
3732
+ /**
3733
+ * The generated client secret value.
3734
+ */
3735
+ value: string;
3736
+ }
3737
+
3738
+ /**
3739
+ * Send this event to append audio bytes to the translation session input audio
3740
+ * buffer.
3741
+ *
3742
+ * WebSocket translation sessions accept base64-encoded 24 kHz PCM16 mono
3743
+ * little-endian raw audio bytes. Unsupported websocket audio formats return a
3744
+ * validation error because lower-quality audio materially degrades translation
3745
+ * quality.
3746
+ *
3747
+ * Translation consumes 200 ms engine frames. For best realtime behavior, append
3748
+ * audio in 200 ms chunks. If a chunk is shorter, the server buffers it until it
3749
+ * has enough audio for one frame. If a chunk is longer, the server splits it into
3750
+ * 200 ms frames and enqueues them back-to-back.
3751
+ *
3752
+ * Keep appending silence while the session is active. If a client stops sending
3753
+ * audio and later resumes, model time treats the resumed audio as contiguous with
3754
+ * the previous audio rather than as a real-world pause.
3755
+ */
3756
+ export interface RealtimeTranslationInputAudioBufferAppendEvent {
3757
+ /**
3758
+ * Base64-encoded 24 kHz PCM16 mono audio bytes.
3759
+ */
3760
+ audio: string;
3761
+
3762
+ /**
3763
+ * The event type, must be `session.input_audio_buffer.append`.
3764
+ */
3765
+ type: 'session.input_audio_buffer.append';
3766
+
3767
+ /**
3768
+ * Optional client-generated ID used to identify this event.
3769
+ */
3770
+ event_id?: string;
3771
+ }
3772
+
3773
+ /**
3774
+ * Returned when optional source-language transcript text is available. This event
3775
+ * is emitted only when `audio.input.transcription` is configured.
3776
+ *
3777
+ * Transcript deltas are append-only text fragments. Clients should not insert
3778
+ * unconditional spaces between deltas.
3779
+ */
3780
+ export interface RealtimeTranslationInputTranscriptDeltaEvent {
3781
+ /**
3782
+ * Append-only source-language transcript text.
3783
+ */
3784
+ delta: string;
3785
+
3786
+ /**
3787
+ * The unique ID of the server event.
3788
+ */
3789
+ event_id: string;
3790
+
3791
+ /**
3792
+ * The event type, must be `session.input_transcript.delta`.
3793
+ */
3794
+ type: 'session.input_transcript.delta';
3795
+
3796
+ /**
3797
+ * Timing metadata for stream alignment, derived from the translation frame when
3798
+ * available. It advances in 200 ms increments, but multiple transcript deltas may
3799
+ * share the same `elapsed_ms`. Treat it as alignment metadata, not a unique
3800
+ * transcript-delta identifier.
3801
+ */
3802
+ elapsed_ms?: number | null;
3803
+ }
3804
+
3805
+ /**
3806
+ * Returned when translated output audio is available. Output audio deltas are 200
3807
+ * ms frames of PCM16 audio.
3808
+ */
3809
+ export interface RealtimeTranslationOutputAudioDeltaEvent {
3810
+ /**
3811
+ * Base64-encoded translated audio data.
3812
+ */
3813
+ delta: string;
3814
+
3815
+ /**
3816
+ * The unique ID of the server event.
3817
+ */
3818
+ event_id: string;
3819
+
3820
+ /**
3821
+ * The event type, must be `session.output_audio.delta`.
3822
+ */
3823
+ type: 'session.output_audio.delta';
3824
+
3825
+ /**
3826
+ * Number of audio channels.
3827
+ */
3828
+ channels?: number;
3829
+
3830
+ /**
3831
+ * Timing metadata for stream alignment, derived from the translation frame when
3832
+ * available. Treat `elapsed_ms` as alignment metadata, not a unique event
3833
+ * identifier.
3834
+ */
3835
+ elapsed_ms?: number | null;
3836
+
3837
+ /**
3838
+ * Audio encoding for `delta`.
3839
+ */
3840
+ format?: 'pcm16';
3841
+
3842
+ /**
3843
+ * Sample rate of the audio delta.
3844
+ */
3845
+ sample_rate?: number;
3846
+ }
3847
+
3848
+ /**
3849
+ * Returned when translated transcript text is available.
3850
+ *
3851
+ * Transcript deltas are append-only text fragments. Clients should not insert
3852
+ * unconditional spaces between deltas.
3853
+ */
3854
+ export interface RealtimeTranslationOutputTranscriptDeltaEvent {
3855
+ /**
3856
+ * Append-only transcript text for the translated output audio.
3857
+ */
3858
+ delta: string;
3859
+
3860
+ /**
3861
+ * The unique ID of the server event.
3862
+ */
3863
+ event_id: string;
3864
+
3865
+ /**
3866
+ * The event type, must be `session.output_transcript.delta`.
3867
+ */
3868
+ type: 'session.output_transcript.delta';
3869
+
3870
+ /**
3871
+ * Timing metadata for stream alignment, derived from the translation frame when
3872
+ * available. It advances in 200 ms increments, but multiple transcript deltas may
3873
+ * share the same `elapsed_ms`. Treat it as alignment metadata, not a unique
3874
+ * transcript-delta identifier.
3875
+ */
3876
+ elapsed_ms?: number | null;
3877
+ }
3878
+
3879
+ /**
3880
+ * A Realtime translation server event.
3881
+ */
3882
+ export type RealtimeTranslationServerEvent =
3883
+ | RealtimeErrorEvent
3884
+ | RealtimeTranslationSessionCreatedEvent
3885
+ | RealtimeTranslationSessionUpdatedEvent
3886
+ | RealtimeTranslationSessionClosedEvent
3887
+ | RealtimeTranslationInputTranscriptDeltaEvent
3888
+ | RealtimeTranslationOutputTranscriptDeltaEvent
3889
+ | RealtimeTranslationOutputAudioDeltaEvent;
3890
+
3891
+ /**
3892
+ * A Realtime translation session. Translation sessions continuously translate
3893
+ * input audio into the configured output language.
3894
+ */
3895
+ export interface RealtimeTranslationSession {
3896
+ /**
3897
+ * Unique identifier for the session that looks like `sess_1234567890abcdef`.
3898
+ */
3899
+ id: string;
3900
+
3901
+ /**
3902
+ * Configuration for translation input and output audio.
3903
+ */
3904
+ audio: RealtimeTranslationSession.Audio;
3905
+
3906
+ /**
3907
+ * Expiration timestamp for the session, in seconds since epoch.
3908
+ */
3909
+ expires_at: number;
3910
+
3911
+ /**
3912
+ * The Realtime translation model used for this session. This field is set at
3913
+ * session creation and cannot be changed with `session.update`.
3914
+ */
3915
+ model: string;
3916
+
3917
+ /**
3918
+ * The session type. Always `translation` for Realtime translation sessions.
3919
+ */
3920
+ type: 'translation';
3921
+ }
3922
+
3923
+ export namespace RealtimeTranslationSession {
3924
+ /**
3925
+ * Configuration for translation input and output audio.
3926
+ */
3927
+ export interface Audio {
3928
+ input?: Audio.Input;
3929
+
3930
+ output?: Audio.Output;
3931
+ }
3932
+
3933
+ export namespace Audio {
3934
+ export interface Input {
3935
+ /**
3936
+ * Optional input noise reduction.
3937
+ */
3938
+ noise_reduction?: Input.NoiseReduction | null;
3939
+
3940
+ /**
3941
+ * Optional source-language transcription. When configured, the server emits
3942
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3943
+ * input audio stream.
3944
+ */
3945
+ transcription?: Input.Transcription | null;
3946
+ }
3947
+
3948
+ export namespace Input {
3949
+ /**
3950
+ * Optional input noise reduction.
3951
+ */
3952
+ export interface NoiseReduction {
3953
+ /**
3954
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
3955
+ * headphones, `far_field` is for far-field microphones such as laptop or
3956
+ * conference room microphones.
3957
+ */
3958
+ type: RealtimeAPI.NoiseReductionType;
3959
+ }
3960
+
3961
+ /**
3962
+ * Optional source-language transcription. When configured, the server emits
3963
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3964
+ * input audio stream.
3965
+ */
3966
+ export interface Transcription {
3967
+ /**
3968
+ * The transcription model used for source transcript deltas.
3969
+ */
3970
+ model: string;
3971
+ }
3972
+ }
3973
+
3974
+ export interface Output {
3975
+ /**
3976
+ * Target language for translated output audio and transcript deltas.
3977
+ */
3978
+ language?: string;
3979
+ }
3980
+ }
3981
+ }
3982
+
3983
+ /**
3984
+ * Gracefully close the realtime translation session. The server flushes pending
3985
+ * input audio and emits any remaining translated output before closing the
3986
+ * session.
3987
+ */
3988
+ export interface RealtimeTranslationSessionCloseEvent {
3989
+ /**
3990
+ * The event type, must be `session.close`.
3991
+ */
3992
+ type: 'session.close';
3993
+
3994
+ /**
3995
+ * Optional client-generated ID used to identify this event.
3996
+ */
3997
+ event_id?: string;
3998
+ }
3999
+
4000
+ /**
4001
+ * Returned when a realtime translation session is closed.
4002
+ */
4003
+ export interface RealtimeTranslationSessionClosedEvent {
4004
+ /**
4005
+ * The unique ID of the server event.
4006
+ */
4007
+ event_id: string;
4008
+
4009
+ /**
4010
+ * The event type, must be `session.closed`.
4011
+ */
4012
+ type: 'session.closed';
4013
+ }
4014
+
4015
+ /**
4016
+ * Realtime translation session configuration. Translation sessions stream source
4017
+ * audio in and translated audio plus transcript deltas out continuously.
4018
+ */
4019
+ export interface RealtimeTranslationSessionCreateRequest {
4020
+ /**
4021
+ * The Realtime translation model used for this session.
4022
+ */
4023
+ model: string;
4024
+
4025
+ /**
4026
+ * Configuration for translation input and output audio.
4027
+ */
4028
+ audio?: RealtimeTranslationSessionCreateRequest.Audio;
4029
+ }
4030
+
4031
+ export namespace RealtimeTranslationSessionCreateRequest {
4032
+ /**
4033
+ * Configuration for translation input and output audio.
4034
+ */
4035
+ export interface Audio {
4036
+ input?: Audio.Input;
4037
+
4038
+ output?: Audio.Output;
4039
+ }
4040
+
4041
+ export namespace Audio {
4042
+ export interface Input {
4043
+ /**
4044
+ * Optional input noise reduction. Set to `null` to disable it.
4045
+ */
4046
+ noise_reduction?: Input.NoiseReduction | null;
4047
+
4048
+ /**
4049
+ * Optional source-language transcription. When configured, the server emits
4050
+ * `session.input_transcript.delta` events. Translation itself still runs from the
4051
+ * input audio stream.
4052
+ */
4053
+ transcription?: Input.Transcription | null;
4054
+ }
4055
+
4056
+ export namespace Input {
4057
+ /**
4058
+ * Optional input noise reduction. Set to `null` to disable it.
4059
+ */
4060
+ export interface NoiseReduction {
4061
+ /**
4062
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
4063
+ * headphones, `far_field` is for far-field microphones such as laptop or
4064
+ * conference room microphones.
4065
+ */
4066
+ type: RealtimeAPI.NoiseReductionType;
4067
+ }
4068
+
4069
+ /**
4070
+ * Optional source-language transcription. When configured, the server emits
4071
+ * `session.input_transcript.delta` events. Translation itself still runs from the
4072
+ * input audio stream.
4073
+ */
4074
+ export interface Transcription {
4075
+ /**
4076
+ * The transcription model to use for source transcript deltas.
4077
+ */
4078
+ model: string;
4079
+ }
4080
+ }
4081
+
4082
+ export interface Output {
4083
+ /**
4084
+ * Target language for translated output audio and transcript deltas.
4085
+ */
4086
+ language?: string;
4087
+ }
4088
+ }
4089
+ }
4090
+
4091
+ /**
4092
+ * Returned when a translation session is created. Emitted automatically when a new
4093
+ * connection is established as the first server event. This event contains the
4094
+ * default translation session configuration.
4095
+ */
4096
+ export interface RealtimeTranslationSessionCreatedEvent {
4097
+ /**
4098
+ * The unique ID of the server event.
4099
+ */
4100
+ event_id: string;
4101
+
4102
+ /**
4103
+ * The translation session configuration.
4104
+ */
4105
+ session: RealtimeTranslationSession;
4106
+
4107
+ /**
4108
+ * The event type, must be `session.created`.
4109
+ */
4110
+ type: 'session.created';
4111
+ }
4112
+
4113
+ /**
4114
+ * Send this event to update the translation session configuration. Translation
4115
+ * sessions support updates to `audio.output.language`,
4116
+ * `audio.input.transcription`, and `audio.input.noise_reduction`.
4117
+ */
4118
+ export interface RealtimeTranslationSessionUpdateEvent {
4119
+ /**
4120
+ * Translation session fields to update. The session `type` and `model` are set at
4121
+ * creation and cannot be changed with `session.update`.
4122
+ */
4123
+ session: RealtimeTranslationSessionUpdateRequest;
4124
+
4125
+ /**
4126
+ * The event type, must be `session.update`.
4127
+ */
4128
+ type: 'session.update';
4129
+
4130
+ /**
4131
+ * Optional client-generated ID used to identify this event.
4132
+ */
4133
+ event_id?: string;
4134
+ }
4135
+
4136
+ /**
4137
+ * Realtime translation session fields that can be updated with `session.update`.
4138
+ */
4139
+ export interface RealtimeTranslationSessionUpdateRequest {
4140
+ /**
4141
+ * Configuration for translation input and output audio.
4142
+ */
4143
+ audio?: RealtimeTranslationSessionUpdateRequest.Audio;
4144
+ }
4145
+
4146
+ export namespace RealtimeTranslationSessionUpdateRequest {
4147
+ /**
4148
+ * Configuration for translation input and output audio.
4149
+ */
4150
+ export interface Audio {
4151
+ input?: Audio.Input;
4152
+
4153
+ output?: Audio.Output;
4154
+ }
4155
+
4156
+ export namespace Audio {
4157
+ export interface Input {
4158
+ /**
4159
+ * Optional input noise reduction. Set to `null` to disable it.
4160
+ */
4161
+ noise_reduction?: Input.NoiseReduction | null;
4162
+
4163
+ /**
4164
+ * Optional source-language transcription. When configured, the server emits
4165
+ * `session.input_transcript.delta` events. Translation itself still runs from the
4166
+ * input audio stream.
4167
+ */
4168
+ transcription?: Input.Transcription | null;
4169
+ }
4170
+
4171
+ export namespace Input {
4172
+ /**
4173
+ * Optional input noise reduction. Set to `null` to disable it.
4174
+ */
4175
+ export interface NoiseReduction {
4176
+ /**
4177
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
4178
+ * headphones, `far_field` is for far-field microphones such as laptop or
4179
+ * conference room microphones.
4180
+ */
4181
+ type: RealtimeAPI.NoiseReductionType;
4182
+ }
4183
+
4184
+ /**
4185
+ * Optional source-language transcription. When configured, the server emits
4186
+ * `session.input_transcript.delta` events. Translation itself still runs from the
4187
+ * input audio stream.
4188
+ */
4189
+ export interface Transcription {
4190
+ /**
4191
+ * The transcription model to use for source transcript deltas.
4192
+ */
4193
+ model: string;
4194
+ }
4195
+ }
4196
+
4197
+ export interface Output {
4198
+ /**
4199
+ * Target language for translated output audio and transcript deltas.
4200
+ */
4201
+ language?: string;
4202
+ }
4203
+ }
4204
+ }
4205
+
4206
+ /**
4207
+ * Returned when a translation session is updated with a `session.update` event,
4208
+ * unless there is an error.
4209
+ */
4210
+ export interface RealtimeTranslationSessionUpdatedEvent {
4211
+ /**
4212
+ * The unique ID of the server event.
4213
+ */
4214
+ event_id: string;
4215
+
4216
+ /**
4217
+ * The translation session configuration.
4218
+ */
4219
+ session: RealtimeTranslationSession;
4220
+
4221
+ /**
4222
+ * The event type, must be `session.updated`.
4223
+ */
4224
+ type: 'session.updated';
4225
+ }
4226
+
3602
4227
  /**
3603
4228
  * When the number of tokens in a conversation exceeds the model's input token
3604
4229
  * limit, the conversation be truncated, meaning messages (starting from the
@@ -4690,9 +5315,6 @@ export namespace TranscriptionSessionUpdatedEvent {
4690
5315
  */
4691
5316
  input_audio_format?: string;
4692
5317
 
4693
- /**
4694
- * Configuration of the transcription model.
4695
- */
4696
5318
  input_audio_transcription?: RealtimeAPI.AudioTranscription;
4697
5319
 
4698
5320
  /**
@@ -4822,6 +5444,8 @@ export declare namespace Realtime {
4822
5444
  type RealtimeMcpToolCall as RealtimeMcpToolCall,
4823
5445
  type RealtimeMcpToolExecutionError as RealtimeMcpToolExecutionError,
4824
5446
  type RealtimeMcphttpError as RealtimeMcphttpError,
5447
+ type RealtimeReasoning as RealtimeReasoning,
5448
+ type RealtimeReasoningEffort as RealtimeReasoningEffort,
4825
5449
  type RealtimeResponse as RealtimeResponse,
4826
5450
  type RealtimeResponseCreateAudioOutput as RealtimeResponseCreateAudioOutput,
4827
5451
  type RealtimeResponseCreateMcpTool as RealtimeResponseCreateMcpTool,
@@ -4841,6 +5465,22 @@ export declare namespace Realtime {
4841
5465
  type RealtimeTranscriptionSessionAudioInput as RealtimeTranscriptionSessionAudioInput,
4842
5466
  type RealtimeTranscriptionSessionAudioInputTurnDetection as RealtimeTranscriptionSessionAudioInputTurnDetection,
4843
5467
  type RealtimeTranscriptionSessionCreateRequest as RealtimeTranscriptionSessionCreateRequest,
5468
+ type RealtimeTranslationClientEvent as RealtimeTranslationClientEvent,
5469
+ type RealtimeTranslationClientSecretCreateRequest as RealtimeTranslationClientSecretCreateRequest,
5470
+ type RealtimeTranslationClientSecretCreateResponse as RealtimeTranslationClientSecretCreateResponse,
5471
+ type RealtimeTranslationInputAudioBufferAppendEvent as RealtimeTranslationInputAudioBufferAppendEvent,
5472
+ type RealtimeTranslationInputTranscriptDeltaEvent as RealtimeTranslationInputTranscriptDeltaEvent,
5473
+ type RealtimeTranslationOutputAudioDeltaEvent as RealtimeTranslationOutputAudioDeltaEvent,
5474
+ type RealtimeTranslationOutputTranscriptDeltaEvent as RealtimeTranslationOutputTranscriptDeltaEvent,
5475
+ type RealtimeTranslationServerEvent as RealtimeTranslationServerEvent,
5476
+ type RealtimeTranslationSession as RealtimeTranslationSession,
5477
+ type RealtimeTranslationSessionCloseEvent as RealtimeTranslationSessionCloseEvent,
5478
+ type RealtimeTranslationSessionClosedEvent as RealtimeTranslationSessionClosedEvent,
5479
+ type RealtimeTranslationSessionCreateRequest as RealtimeTranslationSessionCreateRequest,
5480
+ type RealtimeTranslationSessionCreatedEvent as RealtimeTranslationSessionCreatedEvent,
5481
+ type RealtimeTranslationSessionUpdateEvent as RealtimeTranslationSessionUpdateEvent,
5482
+ type RealtimeTranslationSessionUpdateRequest as RealtimeTranslationSessionUpdateRequest,
5483
+ type RealtimeTranslationSessionUpdatedEvent as RealtimeTranslationSessionUpdatedEvent,
4844
5484
  type RealtimeTruncation as RealtimeTruncation,
4845
5485
  type RealtimeTruncationRetentionRatio as RealtimeTruncationRetentionRatio,
4846
5486
  type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent,
@@ -4873,7 +5513,6 @@ export declare namespace Realtime {
4873
5513
 
4874
5514
  export {
4875
5515
  ClientSecrets as ClientSecrets,
4876
- type RealtimeSessionClientSecret as RealtimeSessionClientSecret,
4877
5516
  type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse,
4878
5517
  type RealtimeTranscriptionSessionCreateResponse as RealtimeTranscriptionSessionCreateResponse,
4879
5518
  type RealtimeTranscriptionSessionTurnDetection as RealtimeTranscriptionSessionTurnDetection,