openai 7.12.1 → 7.14.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 (517) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/helpers/live.d.mts +2 -0
  11. package/helpers/live.d.mts.map +1 -0
  12. package/helpers/live.d.ts +2 -0
  13. package/helpers/live.d.ts.map +1 -0
  14. package/helpers/live.js +6 -0
  15. package/helpers/live.js.map +1 -0
  16. package/helpers/live.mjs +2 -0
  17. package/helpers/live.mjs.map +1 -0
  18. package/lib/live/transcript-grouper.d.mts +96 -0
  19. package/lib/live/transcript-grouper.d.mts.map +1 -0
  20. package/lib/live/transcript-grouper.d.ts +96 -0
  21. package/lib/live/transcript-grouper.d.ts.map +1 -0
  22. package/lib/live/transcript-grouper.js +223 -0
  23. package/lib/live/transcript-grouper.js.map +1 -0
  24. package/lib/live/transcript-grouper.mjs +219 -0
  25. package/lib/live/transcript-grouper.mjs.map +1 -0
  26. package/lib/live/transcript-grouping.d.mts +49 -0
  27. package/lib/live/transcript-grouping.d.mts.map +1 -0
  28. package/lib/live/transcript-grouping.d.ts +49 -0
  29. package/lib/live/transcript-grouping.d.ts.map +1 -0
  30. package/lib/live/transcript-grouping.js +287 -0
  31. package/lib/live/transcript-grouping.js.map +1 -0
  32. package/lib/live/transcript-grouping.mjs +283 -0
  33. package/lib/live/transcript-grouping.mjs.map +1 -0
  34. package/lib/live/webrtc.d.mts +13 -0
  35. package/lib/live/webrtc.d.mts.map +1 -0
  36. package/lib/live/webrtc.d.ts +13 -0
  37. package/lib/live/webrtc.d.ts.map +1 -0
  38. package/lib/live/webrtc.js +16 -0
  39. package/lib/live/webrtc.js.map +1 -0
  40. package/lib/live/webrtc.mjs +10 -0
  41. package/lib/live/webrtc.mjs.map +1 -0
  42. package/lib/realtime/webrtc.d.mts +13 -0
  43. package/lib/realtime/webrtc.d.mts.map +1 -0
  44. package/lib/realtime/webrtc.d.ts +13 -0
  45. package/lib/realtime/webrtc.d.ts.map +1 -0
  46. package/lib/realtime/webrtc.js +16 -0
  47. package/lib/realtime/webrtc.js.map +1 -0
  48. package/lib/realtime/webrtc.mjs +10 -0
  49. package/lib/realtime/webrtc.mjs.map +1 -0
  50. package/lib/webrtc/connection.d.mts +40 -0
  51. package/lib/webrtc/connection.d.mts.map +1 -0
  52. package/lib/webrtc/connection.d.ts +40 -0
  53. package/lib/webrtc/connection.d.ts.map +1 -0
  54. package/lib/webrtc/connection.js +228 -0
  55. package/lib/webrtc/connection.js.map +1 -0
  56. package/lib/webrtc/connection.mjs +224 -0
  57. package/lib/webrtc/connection.mjs.map +1 -0
  58. package/lib/webrtc/data-channel.d.mts +32 -0
  59. package/lib/webrtc/data-channel.d.mts.map +1 -0
  60. package/lib/webrtc/data-channel.d.ts +32 -0
  61. package/lib/webrtc/data-channel.d.ts.map +1 -0
  62. package/lib/webrtc/data-channel.js +125 -0
  63. package/lib/webrtc/data-channel.js.map +1 -0
  64. package/lib/webrtc/data-channel.mjs +121 -0
  65. package/lib/webrtc/data-channel.mjs.map +1 -0
  66. package/lib/webrtc/errors.d.mts +19 -0
  67. package/lib/webrtc/errors.d.mts.map +1 -0
  68. package/lib/webrtc/errors.d.ts +19 -0
  69. package/lib/webrtc/errors.d.ts.map +1 -0
  70. package/lib/webrtc/errors.js +18 -0
  71. package/lib/webrtc/errors.js.map +1 -0
  72. package/lib/webrtc/errors.mjs +14 -0
  73. package/lib/webrtc/errors.mjs.map +1 -0
  74. package/lib/webrtc/subscriptions.d.mts +13 -0
  75. package/lib/webrtc/subscriptions.d.mts.map +1 -0
  76. package/lib/webrtc/subscriptions.d.ts +13 -0
  77. package/lib/webrtc/subscriptions.d.ts.map +1 -0
  78. package/lib/webrtc/subscriptions.js +62 -0
  79. package/lib/webrtc/subscriptions.js.map +1 -0
  80. package/lib/webrtc/subscriptions.mjs +58 -0
  81. package/lib/webrtc/subscriptions.mjs.map +1 -0
  82. package/lib/webrtc/types.d.mts +99 -0
  83. package/lib/webrtc/types.d.mts.map +1 -0
  84. package/lib/webrtc/types.d.ts +99 -0
  85. package/lib/webrtc/types.d.ts.map +1 -0
  86. package/lib/webrtc/types.js +3 -0
  87. package/lib/webrtc/types.js.map +1 -0
  88. package/lib/webrtc/types.mjs +2 -0
  89. package/lib/webrtc/types.mjs.map +1 -0
  90. package/live/webrtc.d.mts +3 -0
  91. package/live/webrtc.d.mts.map +1 -0
  92. package/live/webrtc.d.ts +3 -0
  93. package/live/webrtc.d.ts.map +1 -0
  94. package/live/webrtc.js +8 -0
  95. package/live/webrtc.js.map +1 -0
  96. package/live/webrtc.mjs +2 -0
  97. package/live/webrtc.mjs.map +1 -0
  98. package/package.json +11 -1
  99. package/realtime/webrtc.d.mts +3 -0
  100. package/realtime/webrtc.d.mts.map +1 -0
  101. package/realtime/webrtc.d.ts +3 -0
  102. package/realtime/webrtc.d.ts.map +1 -0
  103. package/realtime/webrtc.js +8 -0
  104. package/realtime/webrtc.js.map +1 -0
  105. package/realtime/webrtc.mjs +2 -0
  106. package/realtime/webrtc.mjs.map +1 -0
  107. package/resources/admin/organization/audit-logs.d.mts +1 -1
  108. package/resources/admin/organization/audit-logs.d.ts +1 -1
  109. package/resources/admin/organization/projects/api-keys.d.mts +5 -0
  110. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  111. package/resources/admin/organization/projects/api-keys.d.ts +5 -0
  112. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  113. package/resources/admin/organization/projects/projects.d.mts +2 -2
  114. package/resources/admin/organization/projects/projects.d.ts +2 -2
  115. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +13 -0
  116. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
  117. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +13 -0
  118. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
  119. package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
  120. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
  121. package/resources/audio/speech.d.mts +3 -2
  122. package/resources/audio/speech.d.mts.map +1 -1
  123. package/resources/audio/speech.d.ts +3 -2
  124. package/resources/audio/speech.d.ts.map +1 -1
  125. package/resources/audio/transcriptions.d.mts +10 -10
  126. package/resources/audio/transcriptions.d.ts +10 -10
  127. package/resources/audio/translations.d.mts +1 -1
  128. package/resources/audio/translations.d.ts +1 -1
  129. package/resources/batches.d.mts +6 -5
  130. package/resources/batches.d.mts.map +1 -1
  131. package/resources/batches.d.ts +6 -5
  132. package/resources/batches.d.ts.map +1 -1
  133. package/resources/beta/assistants.d.mts +143 -147
  134. package/resources/beta/assistants.d.mts.map +1 -1
  135. package/resources/beta/assistants.d.ts +143 -147
  136. package/resources/beta/assistants.d.ts.map +1 -1
  137. package/resources/beta/responses/input-tokens.d.mts +11 -11
  138. package/resources/beta/responses/input-tokens.d.ts +11 -11
  139. package/resources/beta/responses/responses.d.mts +229 -170
  140. package/resources/beta/responses/responses.d.mts.map +1 -1
  141. package/resources/beta/responses/responses.d.ts +229 -170
  142. package/resources/beta/responses/responses.d.ts.map +1 -1
  143. package/resources/beta/responses/responses.js +3 -3
  144. package/resources/beta/responses/responses.js.map +1 -1
  145. package/resources/beta/responses/responses.mjs +3 -3
  146. package/resources/beta/responses/responses.mjs.map +1 -1
  147. package/resources/beta/threads/messages.d.mts +29 -23
  148. package/resources/beta/threads/messages.d.mts.map +1 -1
  149. package/resources/beta/threads/messages.d.ts +29 -23
  150. package/resources/beta/threads/messages.d.ts.map +1 -1
  151. package/resources/beta/threads/runs/runs.d.mts +39 -35
  152. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  153. package/resources/beta/threads/runs/runs.d.ts +39 -35
  154. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  155. package/resources/beta/threads/runs/runs.js.map +1 -1
  156. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  157. package/resources/beta/threads/runs/steps.d.mts +14 -15
  158. package/resources/beta/threads/runs/steps.d.mts.map +1 -1
  159. package/resources/beta/threads/runs/steps.d.ts +14 -15
  160. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  161. package/resources/beta/threads/threads.d.mts +53 -50
  162. package/resources/beta/threads/threads.d.mts.map +1 -1
  163. package/resources/beta/threads/threads.d.ts +53 -50
  164. package/resources/beta/threads/threads.d.ts.map +1 -1
  165. package/resources/beta/threads/threads.js.map +1 -1
  166. package/resources/beta/threads/threads.mjs.map +1 -1
  167. package/resources/chat/completions/completions.d.mts +89 -81
  168. package/resources/chat/completions/completions.d.mts.map +1 -1
  169. package/resources/chat/completions/completions.d.ts +89 -81
  170. package/resources/chat/completions/completions.d.ts.map +1 -1
  171. package/resources/chat/completions/completions.js.map +1 -1
  172. package/resources/chat/completions/completions.mjs.map +1 -1
  173. package/resources/completions.d.mts +15 -14
  174. package/resources/completions.d.mts.map +1 -1
  175. package/resources/completions.d.ts +15 -14
  176. package/resources/completions.d.ts.map +1 -1
  177. package/resources/content-provenance-checks.d.mts +1 -1
  178. package/resources/content-provenance-checks.d.ts +1 -1
  179. package/resources/content-provenance-checks.js +1 -1
  180. package/resources/content-provenance-checks.mjs +1 -1
  181. package/resources/conversations/items.d.mts +19 -3
  182. package/resources/conversations/items.d.mts.map +1 -1
  183. package/resources/conversations/items.d.ts +19 -3
  184. package/resources/conversations/items.d.ts.map +1 -1
  185. package/resources/embeddings.d.mts +6 -6
  186. package/resources/embeddings.d.ts +6 -6
  187. package/resources/evals/evals.d.mts +1 -1
  188. package/resources/evals/evals.d.ts +1 -1
  189. package/resources/evals/evals.js +1 -1
  190. package/resources/evals/evals.mjs +1 -1
  191. package/resources/evals/runs/runs.d.mts +62 -57
  192. package/resources/evals/runs/runs.d.mts.map +1 -1
  193. package/resources/evals/runs/runs.d.ts +62 -57
  194. package/resources/evals/runs/runs.d.ts.map +1 -1
  195. package/resources/evals/runs/runs.js.map +1 -1
  196. package/resources/evals/runs/runs.mjs.map +1 -1
  197. package/resources/files.d.mts +5 -5
  198. package/resources/files.d.ts +5 -5
  199. package/resources/files.js +5 -5
  200. package/resources/files.mjs +5 -5
  201. package/resources/fine-tuning/alpha/graders.d.mts +5 -4
  202. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
  203. package/resources/fine-tuning/alpha/graders.d.ts +5 -4
  204. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
  205. package/resources/fine-tuning/checkpoints/permissions.d.mts +8 -4
  206. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  207. package/resources/fine-tuning/checkpoints/permissions.d.ts +8 -4
  208. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  209. package/resources/fine-tuning/checkpoints/permissions.js +8 -4
  210. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  211. package/resources/fine-tuning/checkpoints/permissions.mjs +8 -4
  212. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  213. package/resources/fine-tuning/jobs/jobs.d.mts +13 -12
  214. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  215. package/resources/fine-tuning/jobs/jobs.d.ts +13 -12
  216. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  217. package/resources/fine-tuning/jobs/jobs.js +2 -2
  218. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  219. package/resources/fine-tuning/jobs/jobs.mjs +2 -2
  220. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  221. package/resources/graders/grader-models.d.mts +1 -1
  222. package/resources/graders/grader-models.d.ts +1 -1
  223. package/resources/images.d.mts +10 -10
  224. package/resources/images.d.ts +10 -10
  225. package/resources/index.d.mts +1 -0
  226. package/resources/index.d.mts.map +1 -1
  227. package/resources/index.d.ts +1 -0
  228. package/resources/index.d.ts.map +1 -1
  229. package/resources/index.js +3 -1
  230. package/resources/index.js.map +1 -1
  231. package/resources/index.mjs +1 -0
  232. package/resources/index.mjs.map +1 -1
  233. package/resources/live/forks/forks.d.mts +110 -0
  234. package/resources/live/forks/forks.d.mts.map +1 -0
  235. package/resources/live/forks/forks.d.ts +110 -0
  236. package/resources/live/forks/forks.d.ts.map +1 -0
  237. package/resources/live/forks/forks.js +9 -0
  238. package/resources/live/forks/forks.js.map +1 -0
  239. package/resources/live/forks/forks.mjs +5 -0
  240. package/resources/live/forks/forks.mjs.map +1 -0
  241. package/resources/live/forks/index.d.mts +4 -0
  242. package/resources/live/forks/index.d.mts.map +1 -0
  243. package/resources/live/forks/index.d.ts +4 -0
  244. package/resources/live/forks/index.d.ts.map +1 -0
  245. package/resources/live/forks/index.js +7 -0
  246. package/resources/live/forks/index.js.map +1 -0
  247. package/resources/live/forks/index.mjs +3 -0
  248. package/resources/live/forks/index.mjs.map +1 -0
  249. package/resources/live/forks/internal-base.d.mts +73 -0
  250. package/resources/live/forks/internal-base.d.mts.map +1 -0
  251. package/resources/live/forks/internal-base.d.ts +73 -0
  252. package/resources/live/forks/internal-base.d.ts.map +1 -0
  253. package/resources/live/forks/internal-base.js +49 -0
  254. package/resources/live/forks/internal-base.js.map +1 -0
  255. package/resources/live/forks/internal-base.mjs +43 -0
  256. package/resources/live/forks/internal-base.mjs.map +1 -0
  257. package/resources/live/forks/ws-base.d.mts +109 -0
  258. package/resources/live/forks/ws-base.d.mts.map +1 -0
  259. package/resources/live/forks/ws-base.d.ts +109 -0
  260. package/resources/live/forks/ws-base.d.ts.map +1 -0
  261. package/resources/live/forks/ws-base.js +476 -0
  262. package/resources/live/forks/ws-base.js.map +1 -0
  263. package/resources/live/forks/ws-base.mjs +472 -0
  264. package/resources/live/forks/ws-base.mjs.map +1 -0
  265. package/resources/live/forks/ws.d.mts +13 -0
  266. package/resources/live/forks/ws.d.mts.map +1 -0
  267. package/resources/live/forks/ws.d.ts +13 -0
  268. package/resources/live/forks/ws.d.ts.map +1 -0
  269. package/resources/live/forks/ws.js +34 -0
  270. package/resources/live/forks/ws.js.map +1 -0
  271. package/resources/live/forks/ws.mjs +29 -0
  272. package/resources/live/forks/ws.mjs.map +1 -0
  273. package/resources/live/forks.d.mts +2 -0
  274. package/resources/live/forks.d.mts.map +1 -0
  275. package/resources/live/forks.d.ts +2 -0
  276. package/resources/live/forks.d.ts.map +1 -0
  277. package/resources/live/forks.js +6 -0
  278. package/resources/live/forks.js.map +1 -0
  279. package/resources/live/forks.mjs +3 -0
  280. package/resources/live/forks.mjs.map +1 -0
  281. package/resources/live/index.d.mts +7 -0
  282. package/resources/live/index.d.mts.map +1 -0
  283. package/resources/live/index.d.ts +7 -0
  284. package/resources/live/index.d.ts.map +1 -0
  285. package/resources/live/index.js +13 -0
  286. package/resources/live/index.js.map +1 -0
  287. package/resources/live/index.mjs +6 -0
  288. package/resources/live/index.mjs.map +1 -0
  289. package/resources/live/internal-base.d.mts +71 -0
  290. package/resources/live/internal-base.d.mts.map +1 -0
  291. package/resources/live/internal-base.d.ts +71 -0
  292. package/resources/live/internal-base.d.ts.map +1 -0
  293. package/resources/live/internal-base.js +48 -0
  294. package/resources/live/internal-base.js.map +1 -0
  295. package/resources/live/internal-base.mjs +42 -0
  296. package/resources/live/internal-base.mjs.map +1 -0
  297. package/resources/live/live.d.mts +1864 -0
  298. package/resources/live/live.d.mts.map +1 -0
  299. package/resources/live/live.d.ts +1864 -0
  300. package/resources/live/live.d.ts.map +1 -0
  301. package/resources/live/live.js +40 -0
  302. package/resources/live/live.js.map +1 -0
  303. package/resources/live/live.mjs +35 -0
  304. package/resources/live/live.mjs.map +1 -0
  305. package/resources/live/sessions.d.mts +254 -0
  306. package/resources/live/sessions.d.mts.map +1 -0
  307. package/resources/live/sessions.d.ts +254 -0
  308. package/resources/live/sessions.d.ts.map +1 -0
  309. package/resources/live/sessions.js +118 -0
  310. package/resources/live/sessions.js.map +1 -0
  311. package/resources/live/sessions.mjs +114 -0
  312. package/resources/live/sessions.mjs.map +1 -0
  313. package/resources/live/sideband/index.d.mts +4 -0
  314. package/resources/live/sideband/index.d.mts.map +1 -0
  315. package/resources/live/sideband/index.d.ts +4 -0
  316. package/resources/live/sideband/index.d.ts.map +1 -0
  317. package/resources/live/sideband/index.js +7 -0
  318. package/resources/live/sideband/index.js.map +1 -0
  319. package/resources/live/sideband/index.mjs +3 -0
  320. package/resources/live/sideband/index.mjs.map +1 -0
  321. package/resources/live/sideband/internal-base.d.mts +73 -0
  322. package/resources/live/sideband/internal-base.d.mts.map +1 -0
  323. package/resources/live/sideband/internal-base.d.ts +73 -0
  324. package/resources/live/sideband/internal-base.d.ts.map +1 -0
  325. package/resources/live/sideband/internal-base.js +49 -0
  326. package/resources/live/sideband/internal-base.js.map +1 -0
  327. package/resources/live/sideband/internal-base.mjs +43 -0
  328. package/resources/live/sideband/internal-base.mjs.map +1 -0
  329. package/resources/live/sideband/sideband.d.mts +25 -0
  330. package/resources/live/sideband/sideband.d.mts.map +1 -0
  331. package/resources/live/sideband/sideband.d.ts +25 -0
  332. package/resources/live/sideband/sideband.d.ts.map +1 -0
  333. package/resources/live/sideband/sideband.js +9 -0
  334. package/resources/live/sideband/sideband.js.map +1 -0
  335. package/resources/live/sideband/sideband.mjs +5 -0
  336. package/resources/live/sideband/sideband.mjs.map +1 -0
  337. package/resources/live/sideband/ws-base.d.mts +114 -0
  338. package/resources/live/sideband/ws-base.d.mts.map +1 -0
  339. package/resources/live/sideband/ws-base.d.ts +114 -0
  340. package/resources/live/sideband/ws-base.d.ts.map +1 -0
  341. package/resources/live/sideband/ws-base.js +476 -0
  342. package/resources/live/sideband/ws-base.js.map +1 -0
  343. package/resources/live/sideband/ws-base.mjs +472 -0
  344. package/resources/live/sideband/ws-base.mjs.map +1 -0
  345. package/resources/live/sideband/ws.d.mts +13 -0
  346. package/resources/live/sideband/ws.d.mts.map +1 -0
  347. package/resources/live/sideband/ws.d.ts +13 -0
  348. package/resources/live/sideband/ws.d.ts.map +1 -0
  349. package/resources/live/sideband/ws.js +34 -0
  350. package/resources/live/sideband/ws.js.map +1 -0
  351. package/resources/live/sideband/ws.mjs +29 -0
  352. package/resources/live/sideband/ws.mjs.map +1 -0
  353. package/resources/live/sideband.d.mts +2 -0
  354. package/resources/live/sideband.d.mts.map +1 -0
  355. package/resources/live/sideband.d.ts +2 -0
  356. package/resources/live/sideband.d.ts.map +1 -0
  357. package/resources/live/sideband.js +6 -0
  358. package/resources/live/sideband.js.map +1 -0
  359. package/resources/live/sideband.mjs +3 -0
  360. package/resources/live/sideband.mjs.map +1 -0
  361. package/resources/live/ws-base.d.mts +106 -0
  362. package/resources/live/ws-base.d.mts.map +1 -0
  363. package/resources/live/ws-base.d.ts +106 -0
  364. package/resources/live/ws-base.d.ts.map +1 -0
  365. package/resources/live/ws-base.js +476 -0
  366. package/resources/live/ws-base.js.map +1 -0
  367. package/resources/live/ws-base.mjs +472 -0
  368. package/resources/live/ws-base.mjs.map +1 -0
  369. package/resources/live/ws.d.mts +13 -0
  370. package/resources/live/ws.d.mts.map +1 -0
  371. package/resources/live/ws.d.ts +13 -0
  372. package/resources/live/ws.d.ts.map +1 -0
  373. package/resources/live/ws.js +34 -0
  374. package/resources/live/ws.js.map +1 -0
  375. package/resources/live/ws.mjs +29 -0
  376. package/resources/live/ws.mjs.map +1 -0
  377. package/resources/live.d.mts +2 -0
  378. package/resources/live.d.mts.map +1 -0
  379. package/resources/live.d.ts +2 -0
  380. package/resources/live.d.ts.map +1 -0
  381. package/resources/live.js +6 -0
  382. package/resources/live.js.map +1 -0
  383. package/resources/live.mjs +3 -0
  384. package/resources/live.mjs.map +1 -0
  385. package/resources/moderations.d.mts +5 -4
  386. package/resources/moderations.d.mts.map +1 -1
  387. package/resources/moderations.d.ts +5 -4
  388. package/resources/moderations.d.ts.map +1 -1
  389. package/resources/moderations.js +2 -1
  390. package/resources/moderations.js.map +1 -1
  391. package/resources/moderations.mjs +2 -1
  392. package/resources/moderations.mjs.map +1 -1
  393. package/resources/realtime/calls.d.mts +1 -1
  394. package/resources/realtime/calls.d.ts +1 -1
  395. package/resources/realtime/client-secrets.d.mts +4 -4
  396. package/resources/realtime/client-secrets.d.ts +4 -4
  397. package/resources/realtime/client-secrets.js +1 -1
  398. package/resources/realtime/client-secrets.mjs +1 -1
  399. package/resources/realtime/realtime.d.mts +16 -16
  400. package/resources/realtime/realtime.d.ts +16 -16
  401. package/resources/responses/input-tokens.d.mts +9 -9
  402. package/resources/responses/input-tokens.d.ts +9 -9
  403. package/resources/responses/responses.d.mts +223 -164
  404. package/resources/responses/responses.d.mts.map +1 -1
  405. package/resources/responses/responses.d.ts +223 -164
  406. package/resources/responses/responses.d.ts.map +1 -1
  407. package/resources/responses/responses.js +3 -3
  408. package/resources/responses/responses.js.map +1 -1
  409. package/resources/responses/responses.mjs +3 -3
  410. package/resources/responses/responses.mjs.map +1 -1
  411. package/resources/shared.d.mts +12 -12
  412. package/resources/shared.d.ts +12 -12
  413. package/resources/uploads/parts.d.mts +5 -4
  414. package/resources/uploads/parts.d.mts.map +1 -1
  415. package/resources/uploads/parts.d.ts +5 -4
  416. package/resources/uploads/parts.d.ts.map +1 -1
  417. package/resources/uploads/parts.js +5 -4
  418. package/resources/uploads/parts.js.map +1 -1
  419. package/resources/uploads/parts.mjs +5 -4
  420. package/resources/uploads/parts.mjs.map +1 -1
  421. package/resources/uploads/uploads.d.mts +11 -11
  422. package/resources/uploads/uploads.d.ts +11 -11
  423. package/resources/uploads/uploads.js +9 -9
  424. package/resources/uploads/uploads.mjs +9 -9
  425. package/resources/vector-stores/file-batches.d.mts +11 -11
  426. package/resources/vector-stores/file-batches.d.ts +11 -11
  427. package/resources/vector-stores/files.d.mts +8 -8
  428. package/resources/vector-stores/files.d.ts +8 -8
  429. package/resources/vector-stores/files.js +3 -3
  430. package/resources/vector-stores/files.mjs +3 -3
  431. package/resources/vector-stores/vector-stores.d.mts +3 -3
  432. package/resources/vector-stores/vector-stores.d.ts +3 -3
  433. package/resources/webhooks/webhooks.d.mts +78 -7
  434. package/resources/webhooks/webhooks.d.mts.map +1 -1
  435. package/resources/webhooks/webhooks.d.ts +78 -7
  436. package/resources/webhooks/webhooks.d.ts.map +1 -1
  437. package/src/client.ts +5 -0
  438. package/src/helpers/live.ts +8 -0
  439. package/src/lib/live/transcript-grouper.ts +303 -0
  440. package/src/lib/live/transcript-grouping.ts +362 -0
  441. package/src/lib/live/webrtc.ts +23 -0
  442. package/src/lib/realtime/webrtc.ts +20 -0
  443. package/src/lib/webrtc/connection.ts +309 -0
  444. package/src/lib/webrtc/data-channel.ts +144 -0
  445. package/src/lib/webrtc/errors.ts +38 -0
  446. package/src/lib/webrtc/subscriptions.ts +62 -0
  447. package/src/lib/webrtc/types.ts +109 -0
  448. package/src/live/webrtc.ts +10 -0
  449. package/src/realtime/webrtc.ts +10 -0
  450. package/src/resources/admin/organization/audit-logs.ts +1 -1
  451. package/src/resources/admin/organization/projects/api-keys.ts +6 -0
  452. package/src/resources/admin/organization/projects/projects.ts +2 -2
  453. package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +15 -0
  454. package/src/resources/audio/speech.ts +3 -2
  455. package/src/resources/audio/transcriptions.ts +10 -10
  456. package/src/resources/audio/translations.ts +1 -1
  457. package/src/resources/batches.ts +6 -5
  458. package/src/resources/beta/assistants.ts +143 -147
  459. package/src/resources/beta/responses/input-tokens.ts +11 -11
  460. package/src/resources/beta/responses/responses.ts +241 -170
  461. package/src/resources/beta/threads/messages.ts +29 -23
  462. package/src/resources/beta/threads/runs/runs.ts +39 -35
  463. package/src/resources/beta/threads/runs/steps.ts +14 -15
  464. package/src/resources/beta/threads/threads.ts +53 -50
  465. package/src/resources/chat/completions/completions.ts +89 -81
  466. package/src/resources/completions.ts +15 -14
  467. package/src/resources/content-provenance-checks.ts +1 -1
  468. package/src/resources/conversations/items.ts +23 -3
  469. package/src/resources/embeddings.ts +6 -6
  470. package/src/resources/evals/evals.ts +1 -1
  471. package/src/resources/evals/runs/runs.ts +62 -57
  472. package/src/resources/files.ts +5 -5
  473. package/src/resources/fine-tuning/alpha/graders.ts +5 -4
  474. package/src/resources/fine-tuning/checkpoints/permissions.ts +8 -4
  475. package/src/resources/fine-tuning/jobs/jobs.ts +13 -12
  476. package/src/resources/graders/grader-models.ts +1 -1
  477. package/src/resources/images.ts +10 -10
  478. package/src/resources/index.ts +1 -0
  479. package/src/resources/live/api.md +87 -0
  480. package/src/resources/live/forks/forks.ts +169 -0
  481. package/src/resources/live/forks/index.ts +5 -0
  482. package/src/resources/live/forks/internal-base.ts +107 -0
  483. package/src/resources/live/forks/ws-base.ts +611 -0
  484. package/src/resources/live/forks/ws.ts +46 -0
  485. package/src/resources/live/forks.ts +3 -0
  486. package/src/resources/live/index.ts +20 -0
  487. package/src/resources/live/internal-base.ts +104 -0
  488. package/src/resources/live/live.ts +2296 -0
  489. package/src/resources/live/sessions.ts +337 -0
  490. package/src/resources/live/sideband/index.ts +10 -0
  491. package/src/resources/live/sideband/internal-base.ts +107 -0
  492. package/src/resources/live/sideband/sideband.ts +58 -0
  493. package/src/resources/live/sideband/ws-base.ts +621 -0
  494. package/src/resources/live/sideband/ws.ts +46 -0
  495. package/src/resources/live/sideband.ts +3 -0
  496. package/src/resources/live/ws-base.ts +607 -0
  497. package/src/resources/live/ws.ts +42 -0
  498. package/src/resources/live.ts +3 -0
  499. package/src/resources/moderations.ts +5 -4
  500. package/src/resources/realtime/calls.ts +1 -1
  501. package/src/resources/realtime/client-secrets.ts +4 -4
  502. package/src/resources/realtime/realtime.ts +16 -16
  503. package/src/resources/responses/input-tokens.ts +9 -9
  504. package/src/resources/responses/responses.ts +235 -164
  505. package/src/resources/shared.ts +12 -12
  506. package/src/resources/uploads/parts.ts +5 -4
  507. package/src/resources/uploads/uploads.ts +11 -11
  508. package/src/resources/vector-stores/file-batches.ts +11 -11
  509. package/src/resources/vector-stores/files.ts +8 -8
  510. package/src/resources/vector-stores/vector-stores.ts +3 -3
  511. package/src/resources/webhooks/api.md +1 -0
  512. package/src/resources/webhooks/webhooks.ts +88 -5
  513. package/src/version.ts +1 -1
  514. package/version.d.mts +1 -1
  515. package/version.d.ts +1 -1
  516. package/version.js +1 -1
  517. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"speech.d.mts","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CASjF;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,4BAA4B,CAAC;AAElG,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,WAAW,CAAC;IAEnC;;;;;;;OAOG;IACH,KAAK,EACD,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,OAAO,GACP,OAAO,GACP,kBAAkB,CAAC,EAAE,CAAC;IAE1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAElE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OA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IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACjC;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;OAEG;IACH,UAAiB,EAAE;QACjB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC3F"}
@@ -31,7 +31,8 @@ export interface SpeechCreateParams {
31
31
  */
32
32
  input: string;
33
33
  /**
34
- * One of the available [TTS models](https://platform.openai.com/docs/models#tts):
34
+ * One of the available
35
+ * [TTS models](https://developers.openai.com/api/docs/guides/text-to-speech):
35
36
  * `tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`, or `gpt-4o-mini-tts-2025-12-15`.
36
37
  */
37
38
  model: (string & {}) | SpeechModel;
@@ -41,7 +42,7 @@ export interface SpeechCreateParams {
41
42
  * `shimmer`, `verse`, `marin`, and `cedar`. You may also provide a custom voice
42
43
  * object with an `id`, for example `{ "id": "voice_1234" }`. Previews of the
43
44
  * voices are available in the
44
- * [Text to speech guide](https://platform.openai.com/docs/guides/text-to-speech#voice-options).
45
+ * [Text to speech guide](https://developers.openai.com/api/docs/guides/text-to-speech#voice-options).
45
46
  */
46
47
  voice: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | SpeechCreateParams.ID;
47
48
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"speech.d.ts","sourceRoot":"","sources":["../../src/resources/audio/speech.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAA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
296
296
  * Emitted when a diarized transcription returns a completed segment with speaker
297
297
  * information. Only emitted when you
298
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
298
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
299
299
  * with `stream` set to `true` and `response_format` set to `diarized_json`.
300
300
  */
301
301
  export type TranscriptionStreamEvent = TranscriptionTextSegmentEvent | TranscriptionTextDeltaEvent | TranscriptionTextDoneEvent;
302
302
  /**
303
303
  * Emitted when there is an additional text delta. This is also the first event
304
304
  * emitted when the transcription starts. Only emitted when you
305
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
305
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
306
306
  * with the `Stream` parameter set to `true`.
307
307
  */
308
308
  export interface TranscriptionTextDeltaEvent {
@@ -316,7 +316,7 @@ export interface TranscriptionTextDeltaEvent {
316
316
  type: 'transcript.text.delta';
317
317
  /**
318
318
  * The log probabilities of the delta. Only included if you
319
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
319
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
320
320
  * with the `include[]` parameter set to `logprobs`.
321
321
  */
322
322
  logprobs?: Array<TranscriptionTextDeltaEvent.Logprob>;
@@ -345,7 +345,7 @@ export declare namespace TranscriptionTextDeltaEvent {
345
345
  /**
346
346
  * Emitted when the transcription is complete. Contains the complete transcription
347
347
  * text. Only emitted when you
348
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
348
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
349
349
  * with the `Stream` parameter set to `true`.
350
350
  */
351
351
  export interface TranscriptionTextDoneEvent {
@@ -365,7 +365,7 @@ export interface TranscriptionTextDoneEvent {
365
365
  /**
366
366
  * The log probabilities of the individual tokens in the transcription. Only
367
367
  * included if you
368
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
368
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
369
369
  * with the `include[]` parameter set to `logprobs`.
370
370
  */
371
371
  logprobs?: Array<TranscriptionTextDoneEvent.Logprob>;
@@ -433,7 +433,7 @@ export declare namespace TranscriptionTextDoneEvent {
433
433
  /**
434
434
  * Emitted when a diarized transcription returns a completed segment with speaker
435
435
  * information. Only emitted when you
436
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
436
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
437
437
  * with `stream` set to `true` and `response_format` set to `diarized_json`.
438
438
  */
439
439
  export interface TranscriptionTextSegmentEvent {
@@ -594,7 +594,7 @@ export interface TranscriptionCreateParamsBase<ResponseFormat extends AudioAPI.A
594
594
  /**
595
595
  * An optional text to guide the model's style or continue a previous audio
596
596
  * segment. The
597
- * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
597
+ * [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting)
598
598
  * should match the audio language. This field is not supported when using
599
599
  * `gpt-4o-transcribe-diarize`.
600
600
  */
@@ -612,7 +612,7 @@ export interface TranscriptionCreateParamsBase<ResponseFormat extends AudioAPI.A
612
612
  * generated using
613
613
  * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
614
614
  * See the
615
- * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
615
+ * [Streaming section of the Speech-to-Text guide](https://developers.openai.com/api/docs/guides/speech-to-text?lang=curl#streaming)
616
616
  * for more information.
617
617
  *
618
618
  * Note: Streaming is not supported for the `whisper-1` model and will be ignored.
@@ -668,7 +668,7 @@ export interface TranscriptionCreateParamsNonStreaming<ResponseFormat extends Au
668
668
  * generated using
669
669
  * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
670
670
  * See the
671
- * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
671
+ * [Streaming section of the Speech-to-Text guide](https://developers.openai.com/api/docs/guides/speech-to-text?lang=curl#streaming)
672
672
  * for more information.
673
673
  *
674
674
  * Note: Streaming is not supported for the `whisper-1` model and will be ignored.
@@ -681,7 +681,7 @@ export interface TranscriptionCreateParamsStreaming extends TranscriptionCreateP
681
681
  * generated using
682
682
  * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
683
683
  * See the
684
- * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
684
+ * [Streaming section of the Speech-to-Text guide](https://developers.openai.com/api/docs/guides/speech-to-text?lang=curl#streaming)
685
685
  * for more information.
686
686
  *
687
687
  * Note: Streaming is not supported for the `whisper-1` model and will be ignored.
@@ -295,14 +295,14 @@ export interface TranscriptionSegment {
295
295
  /**
296
296
  * Emitted when a diarized transcription returns a completed segment with speaker
297
297
  * information. Only emitted when you
298
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
298
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
299
299
  * with `stream` set to `true` and `response_format` set to `diarized_json`.
300
300
  */
301
301
  export type TranscriptionStreamEvent = TranscriptionTextSegmentEvent | TranscriptionTextDeltaEvent | TranscriptionTextDoneEvent;
302
302
  /**
303
303
  * Emitted when there is an additional text delta. This is also the first event
304
304
  * emitted when the transcription starts. Only emitted when you
305
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
305
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
306
306
  * with the `Stream` parameter set to `true`.
307
307
  */
308
308
  export interface TranscriptionTextDeltaEvent {
@@ -316,7 +316,7 @@ export interface TranscriptionTextDeltaEvent {
316
316
  type: 'transcript.text.delta';
317
317
  /**
318
318
  * The log probabilities of the delta. Only included if you
319
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
319
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
320
320
  * with the `include[]` parameter set to `logprobs`.
321
321
  */
322
322
  logprobs?: Array<TranscriptionTextDeltaEvent.Logprob>;
@@ -345,7 +345,7 @@ export declare namespace TranscriptionTextDeltaEvent {
345
345
  /**
346
346
  * Emitted when the transcription is complete. Contains the complete transcription
347
347
  * text. Only emitted when you
348
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
348
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
349
349
  * with the `Stream` parameter set to `true`.
350
350
  */
351
351
  export interface TranscriptionTextDoneEvent {
@@ -365,7 +365,7 @@ export interface TranscriptionTextDoneEvent {
365
365
  /**
366
366
  * The log probabilities of the individual tokens in the transcription. Only
367
367
  * included if you
368
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
368
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
369
369
  * with the `include[]` parameter set to `logprobs`.
370
370
  */
371
371
  logprobs?: Array<TranscriptionTextDoneEvent.Logprob>;
@@ -433,7 +433,7 @@ export declare namespace TranscriptionTextDoneEvent {
433
433
  /**
434
434
  * Emitted when a diarized transcription returns a completed segment with speaker
435
435
  * information. Only emitted when you
436
- * [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
436
+ * [create a transcription](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
437
437
  * with `stream` set to `true` and `response_format` set to `diarized_json`.
438
438
  */
439
439
  export interface TranscriptionTextSegmentEvent {
@@ -594,7 +594,7 @@ export interface TranscriptionCreateParamsBase<ResponseFormat extends AudioAPI.A
594
594
  /**
595
595
  * An optional text to guide the model's style or continue a previous audio
596
596
  * segment. The
597
- * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
597
+ * [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting)
598
598
  * should match the audio language. This field is not supported when using
599
599
  * `gpt-4o-transcribe-diarize`.
600
600
  */
@@ -612,7 +612,7 @@ export interface TranscriptionCreateParamsBase<ResponseFormat extends AudioAPI.A
612
612
  * generated using
613
613
  * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
614
614
  * See the
615
- * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
615
+ * [Streaming section of the Speech-to-Text guide](https://developers.openai.com/api/docs/guides/speech-to-text?lang=curl#streaming)
616
616
  * for more information.
617
617
  *
618
618
  * Note: Streaming is not supported for the `whisper-1` model and will be ignored.
@@ -668,7 +668,7 @@ export interface TranscriptionCreateParamsNonStreaming<ResponseFormat extends Au
668
668
  * generated using
669
669
  * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
670
670
  * See the
671
- * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
671
+ * [Streaming section of the Speech-to-Text guide](https://developers.openai.com/api/docs/guides/speech-to-text?lang=curl#streaming)
672
672
  * for more information.
673
673
  *
674
674
  * Note: Streaming is not supported for the `whisper-1` model and will be ignored.
@@ -681,7 +681,7 @@ export interface TranscriptionCreateParamsStreaming extends TranscriptionCreateP
681
681
  * generated using
682
682
  * [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
683
683
  * See the
684
- * [Streaming section of the Speech-to-Text guide](https://platform.openai.com/docs/guides/speech-to-text?lang=curl#streaming-transcriptions)
684
+ * [Streaming section of the Speech-to-Text guide](https://developers.openai.com/api/docs/guides/speech-to-text?lang=curl#streaming)
685
685
  * for more information.
686
686
  *
687
687
  * Note: Streaming is not supported for the `whisper-1` model and will be ignored.
@@ -62,7 +62,7 @@ export interface TranslationCreateParams<ResponseFormat extends AudioAPI.AudioRe
62
62
  /**
63
63
  * An optional text to guide the model's style or continue a previous audio
64
64
  * segment. The
65
- * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
65
+ * [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting)
66
66
  * should be in English.
67
67
  */
68
68
  prompt?: string;
@@ -62,7 +62,7 @@ export interface TranslationCreateParams<ResponseFormat extends AudioAPI.AudioRe
62
62
  /**
63
63
  * An optional text to guide the model's style or continue a previous audio
64
64
  * segment. The
65
- * [prompt](https://platform.openai.com/docs/guides/speech-to-text#prompting)
65
+ * [prompt](https://developers.openai.com/api/docs/guides/speech-to-text#prompting)
66
66
  * should be in English.
67
67
  */
68
68
  prompt?: string;
@@ -104,8 +104,8 @@ export interface Batch {
104
104
  * Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
105
105
  * range of models with different capabilities, performance characteristics, and
106
106
  * price points. Refer to the
107
- * [model guide](https://platform.openai.com/docs/models) to browse and compare
108
- * available models.
107
+ * [model guide](https://developers.openai.com/api/docs/models) to browse and
108
+ * compare available models.
109
109
  */
110
110
  model?: string;
111
111
  /**
@@ -201,7 +201,7 @@ export declare namespace BatchUsage {
201
201
  interface InputTokensDetails {
202
202
  /**
203
203
  * The number of tokens that were retrieved from the cache.
204
- * [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
204
+ * [More on prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching).
205
205
  */
206
206
  cached_tokens: number;
207
207
  }
@@ -233,11 +233,12 @@ export interface BatchCreateParams {
233
233
  /**
234
234
  * The ID of an uploaded file that contains requests for the new batch.
235
235
  *
236
- * See [upload file](https://platform.openai.com/docs/api-reference/files/create)
236
+ * See
237
+ * [upload file](https://developers.openai.com/api/reference/resources/files/methods/create)
237
238
  * for how to upload a file.
238
239
  *
239
240
  * Your input file must be formatted as a
240
- * [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
241
+ * [JSONL file](https://developers.openai.com/api/docs/guides/batch#1-prepare-your-batch-file),
241
242
  * and must be uploaded with the purpose `batch`. The file can contain up to 50,000
242
243
  * requests, and can be up to 200 MB in size.
243
244
  */
@@ -1 +1 @@
1
- {"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,+BAA2B;AACpF,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAItE;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC;IAQlC;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;CAMrE;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAE5C,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OA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vB;IAED;;OAEG;IACH,UAAiB,mBAAmB;QAClC;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,iBAAiB,EAAE,KAAK,CAAC;IAEzB;;;;;;;OAOG;IACH,QAAQ,EACJ,eAAe,GACf,sBAAsB,GACtB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,wBAAwB,GACxB,kBAAkB,GAClB,YAAY,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC;CAC7D;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;;OAGG;IACH,UAAiB,kBAAkB;QACjC;;;;WAIG;QACH,MAAM,EAAE,YAAY,CAAC;QAErB;;;WAGG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;CAAG;AAE5D,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -104,8 +104,8 @@ export interface Batch {
104
104
  * Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
105
105
  * range of models with different capabilities, performance characteristics, and
106
106
  * price points. Refer to the
107
- * [model guide](https://platform.openai.com/docs/models) to browse and compare
108
- * available models.
107
+ * [model guide](https://developers.openai.com/api/docs/models) to browse and
108
+ * compare available models.
109
109
  */
110
110
  model?: string;
111
111
  /**
@@ -201,7 +201,7 @@ export declare namespace BatchUsage {
201
201
  interface InputTokensDetails {
202
202
  /**
203
203
  * The number of tokens that were retrieved from the cache.
204
- * [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
204
+ * [More on prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching).
205
205
  */
206
206
  cached_tokens: number;
207
207
  }
@@ -233,11 +233,12 @@ export interface BatchCreateParams {
233
233
  /**
234
234
  * The ID of an uploaded file that contains requests for the new batch.
235
235
  *
236
- * See [upload file](https://platform.openai.com/docs/api-reference/files/create)
236
+ * See
237
+ * [upload file](https://developers.openai.com/api/reference/resources/files/methods/create)
237
238
  * for how to upload a file.
238
239
  *
239
240
  * Your input file must be formatted as a
240
- * [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
241
+ * [JSONL file](https://developers.openai.com/api/docs/guides/batch#1-prepare-your-batch-file),
241
242
  * and must be uploaded with the purpose `batch`. The file can contain up to 50,000
242
243
  * requests, and can be up to 200 MB in size.
243
244
  */
@@ -1 +1 @@
1
- {"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../src/resources/batches.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AACpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE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