@depup/openai 6.31.0-depup.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 (2047) hide show
  1. package/CHANGELOG.md +3932 -0
  2. package/LICENSE +201 -0
  3. package/README.md +25 -0
  4. package/_vendor/partial-json-parser/parser.d.mts +7 -0
  5. package/_vendor/partial-json-parser/parser.d.mts.map +1 -0
  6. package/_vendor/partial-json-parser/parser.d.ts +7 -0
  7. package/_vendor/partial-json-parser/parser.d.ts.map +1 -0
  8. package/_vendor/partial-json-parser/parser.js +246 -0
  9. package/_vendor/partial-json-parser/parser.js.map +1 -0
  10. package/_vendor/partial-json-parser/parser.mjs +241 -0
  11. package/_vendor/partial-json-parser/parser.mjs.map +1 -0
  12. package/_vendor/zod-to-json-schema/Options.d.mts +32 -0
  13. package/_vendor/zod-to-json-schema/Options.d.mts.map +1 -0
  14. package/_vendor/zod-to-json-schema/Options.d.ts +32 -0
  15. package/_vendor/zod-to-json-schema/Options.d.ts.map +1 -0
  16. package/_vendor/zod-to-json-schema/Options.js +42 -0
  17. package/_vendor/zod-to-json-schema/Options.js.map +1 -0
  18. package/_vendor/zod-to-json-schema/Options.mjs +38 -0
  19. package/_vendor/zod-to-json-schema/Options.mjs.map +1 -0
  20. package/_vendor/zod-to-json-schema/Refs.d.mts +21 -0
  21. package/_vendor/zod-to-json-schema/Refs.d.mts.map +1 -0
  22. package/_vendor/zod-to-json-schema/Refs.d.ts +21 -0
  23. package/_vendor/zod-to-json-schema/Refs.d.ts.map +1 -0
  24. package/_vendor/zod-to-json-schema/Refs.js +28 -0
  25. package/_vendor/zod-to-json-schema/Refs.js.map +1 -0
  26. package/_vendor/zod-to-json-schema/Refs.mjs +24 -0
  27. package/_vendor/zod-to-json-schema/Refs.mjs.map +1 -0
  28. package/_vendor/zod-to-json-schema/errorMessages.d.mts +12 -0
  29. package/_vendor/zod-to-json-schema/errorMessages.d.mts.map +1 -0
  30. package/_vendor/zod-to-json-schema/errorMessages.d.ts +12 -0
  31. package/_vendor/zod-to-json-schema/errorMessages.d.ts.map +1 -0
  32. package/_vendor/zod-to-json-schema/errorMessages.js +19 -0
  33. package/_vendor/zod-to-json-schema/errorMessages.js.map +1 -0
  34. package/_vendor/zod-to-json-schema/errorMessages.mjs +15 -0
  35. package/_vendor/zod-to-json-schema/errorMessages.mjs.map +1 -0
  36. package/_vendor/zod-to-json-schema/index.d.mts +38 -0
  37. package/_vendor/zod-to-json-schema/index.d.mts.map +1 -0
  38. package/_vendor/zod-to-json-schema/index.d.ts +38 -0
  39. package/_vendor/zod-to-json-schema/index.d.ts.map +1 -0
  40. package/_vendor/zod-to-json-schema/index.js +41 -0
  41. package/_vendor/zod-to-json-schema/index.js.map +1 -0
  42. package/_vendor/zod-to-json-schema/index.mjs +38 -0
  43. package/_vendor/zod-to-json-schema/index.mjs.map +1 -0
  44. package/_vendor/zod-to-json-schema/parseDef.d.mts +38 -0
  45. package/_vendor/zod-to-json-schema/parseDef.d.mts.map +1 -0
  46. package/_vendor/zod-to-json-schema/parseDef.d.ts +38 -0
  47. package/_vendor/zod-to-json-schema/parseDef.d.ts.map +1 -0
  48. package/_vendor/zod-to-json-schema/parseDef.js +186 -0
  49. package/_vendor/zod-to-json-schema/parseDef.js.map +1 -0
  50. package/_vendor/zod-to-json-schema/parseDef.mjs +183 -0
  51. package/_vendor/zod-to-json-schema/parseDef.mjs.map +1 -0
  52. package/_vendor/zod-to-json-schema/parsers/any.d.mts +3 -0
  53. package/_vendor/zod-to-json-schema/parsers/any.d.mts.map +1 -0
  54. package/_vendor/zod-to-json-schema/parsers/any.d.ts +3 -0
  55. package/_vendor/zod-to-json-schema/parsers/any.d.ts.map +1 -0
  56. package/_vendor/zod-to-json-schema/parsers/any.js +7 -0
  57. package/_vendor/zod-to-json-schema/parsers/any.js.map +1 -0
  58. package/_vendor/zod-to-json-schema/parsers/any.mjs +4 -0
  59. package/_vendor/zod-to-json-schema/parsers/any.mjs.map +1 -0
  60. package/_vendor/zod-to-json-schema/parsers/array.d.mts +13 -0
  61. package/_vendor/zod-to-json-schema/parsers/array.d.mts.map +1 -0
  62. package/_vendor/zod-to-json-schema/parsers/array.d.ts +13 -0
  63. package/_vendor/zod-to-json-schema/parsers/array.d.ts.map +1 -0
  64. package/_vendor/zod-to-json-schema/parsers/array.js +29 -0
  65. package/_vendor/zod-to-json-schema/parsers/array.js.map +1 -0
  66. package/_vendor/zod-to-json-schema/parsers/array.mjs +26 -0
  67. package/_vendor/zod-to-json-schema/parsers/array.mjs.map +1 -0
  68. package/_vendor/zod-to-json-schema/parsers/bigint.d.mts +15 -0
  69. package/_vendor/zod-to-json-schema/parsers/bigint.d.mts.map +1 -0
  70. package/_vendor/zod-to-json-schema/parsers/bigint.d.ts +15 -0
  71. package/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map +1 -0
  72. package/_vendor/zod-to-json-schema/parsers/bigint.js +53 -0
  73. package/_vendor/zod-to-json-schema/parsers/bigint.js.map +1 -0
  74. package/_vendor/zod-to-json-schema/parsers/bigint.mjs +50 -0
  75. package/_vendor/zod-to-json-schema/parsers/bigint.mjs.map +1 -0
  76. package/_vendor/zod-to-json-schema/parsers/boolean.d.mts +5 -0
  77. package/_vendor/zod-to-json-schema/parsers/boolean.d.mts.map +1 -0
  78. package/_vendor/zod-to-json-schema/parsers/boolean.d.ts +5 -0
  79. package/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map +1 -0
  80. package/_vendor/zod-to-json-schema/parsers/boolean.js +9 -0
  81. package/_vendor/zod-to-json-schema/parsers/boolean.js.map +1 -0
  82. package/_vendor/zod-to-json-schema/parsers/boolean.mjs +6 -0
  83. package/_vendor/zod-to-json-schema/parsers/boolean.mjs.map +1 -0
  84. package/_vendor/zod-to-json-schema/parsers/branded.d.mts +4 -0
  85. package/_vendor/zod-to-json-schema/parsers/branded.d.mts.map +1 -0
  86. package/_vendor/zod-to-json-schema/parsers/branded.d.ts +4 -0
  87. package/_vendor/zod-to-json-schema/parsers/branded.d.ts.map +1 -0
  88. package/_vendor/zod-to-json-schema/parsers/branded.js +8 -0
  89. package/_vendor/zod-to-json-schema/parsers/branded.js.map +1 -0
  90. package/_vendor/zod-to-json-schema/parsers/branded.mjs +5 -0
  91. package/_vendor/zod-to-json-schema/parsers/branded.mjs.map +1 -0
  92. package/_vendor/zod-to-json-schema/parsers/catch.d.mts +4 -0
  93. package/_vendor/zod-to-json-schema/parsers/catch.d.mts.map +1 -0
  94. package/_vendor/zod-to-json-schema/parsers/catch.d.ts +4 -0
  95. package/_vendor/zod-to-json-schema/parsers/catch.d.ts.map +1 -0
  96. package/_vendor/zod-to-json-schema/parsers/catch.js +9 -0
  97. package/_vendor/zod-to-json-schema/parsers/catch.js.map +1 -0
  98. package/_vendor/zod-to-json-schema/parsers/catch.mjs +5 -0
  99. package/_vendor/zod-to-json-schema/parsers/catch.mjs.map +1 -0
  100. package/_vendor/zod-to-json-schema/parsers/date.d.mts +16 -0
  101. package/_vendor/zod-to-json-schema/parsers/date.d.mts.map +1 -0
  102. package/_vendor/zod-to-json-schema/parsers/date.d.ts +16 -0
  103. package/_vendor/zod-to-json-schema/parsers/date.d.ts.map +1 -0
  104. package/_vendor/zod-to-json-schema/parsers/date.js +50 -0
  105. package/_vendor/zod-to-json-schema/parsers/date.js.map +1 -0
  106. package/_vendor/zod-to-json-schema/parsers/date.mjs +47 -0
  107. package/_vendor/zod-to-json-schema/parsers/date.mjs.map +1 -0
  108. package/_vendor/zod-to-json-schema/parsers/default.d.mts +7 -0
  109. package/_vendor/zod-to-json-schema/parsers/default.d.mts.map +1 -0
  110. package/_vendor/zod-to-json-schema/parsers/default.d.ts +7 -0
  111. package/_vendor/zod-to-json-schema/parsers/default.d.ts.map +1 -0
  112. package/_vendor/zod-to-json-schema/parsers/default.js +11 -0
  113. package/_vendor/zod-to-json-schema/parsers/default.js.map +1 -0
  114. package/_vendor/zod-to-json-schema/parsers/default.mjs +8 -0
  115. package/_vendor/zod-to-json-schema/parsers/default.mjs.map +1 -0
  116. package/_vendor/zod-to-json-schema/parsers/effects.d.mts +5 -0
  117. package/_vendor/zod-to-json-schema/parsers/effects.d.mts.map +1 -0
  118. package/_vendor/zod-to-json-schema/parsers/effects.d.ts +5 -0
  119. package/_vendor/zod-to-json-schema/parsers/effects.d.ts.map +1 -0
  120. package/_vendor/zod-to-json-schema/parsers/effects.js +8 -0
  121. package/_vendor/zod-to-json-schema/parsers/effects.js.map +1 -0
  122. package/_vendor/zod-to-json-schema/parsers/effects.mjs +5 -0
  123. package/_vendor/zod-to-json-schema/parsers/effects.mjs.map +1 -0
  124. package/_vendor/zod-to-json-schema/parsers/enum.d.mts +7 -0
  125. package/_vendor/zod-to-json-schema/parsers/enum.d.mts.map +1 -0
  126. package/_vendor/zod-to-json-schema/parsers/enum.d.ts +7 -0
  127. package/_vendor/zod-to-json-schema/parsers/enum.d.ts.map +1 -0
  128. package/_vendor/zod-to-json-schema/parsers/enum.js +10 -0
  129. package/_vendor/zod-to-json-schema/parsers/enum.js.map +1 -0
  130. package/_vendor/zod-to-json-schema/parsers/enum.mjs +7 -0
  131. package/_vendor/zod-to-json-schema/parsers/enum.mjs.map +1 -0
  132. package/_vendor/zod-to-json-schema/parsers/intersection.d.mts +9 -0
  133. package/_vendor/zod-to-json-schema/parsers/intersection.d.mts.map +1 -0
  134. package/_vendor/zod-to-json-schema/parsers/intersection.d.ts +9 -0
  135. package/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map +1 -0
  136. package/_vendor/zod-to-json-schema/parsers/intersection.js +53 -0
  137. package/_vendor/zod-to-json-schema/parsers/intersection.js.map +1 -0
  138. package/_vendor/zod-to-json-schema/parsers/intersection.mjs +50 -0
  139. package/_vendor/zod-to-json-schema/parsers/intersection.mjs.map +1 -0
  140. package/_vendor/zod-to-json-schema/parsers/literal.d.mts +10 -0
  141. package/_vendor/zod-to-json-schema/parsers/literal.d.mts.map +1 -0
  142. package/_vendor/zod-to-json-schema/parsers/literal.d.ts +10 -0
  143. package/_vendor/zod-to-json-schema/parsers/literal.d.ts.map +1 -0
  144. package/_vendor/zod-to-json-schema/parsers/literal.js +25 -0
  145. package/_vendor/zod-to-json-schema/parsers/literal.js.map +1 -0
  146. package/_vendor/zod-to-json-schema/parsers/literal.mjs +22 -0
  147. package/_vendor/zod-to-json-schema/parsers/literal.mjs.map +1 -0
  148. package/_vendor/zod-to-json-schema/parsers/map.d.mts +16 -0
  149. package/_vendor/zod-to-json-schema/parsers/map.d.mts.map +1 -0
  150. package/_vendor/zod-to-json-schema/parsers/map.d.ts +16 -0
  151. package/_vendor/zod-to-json-schema/parsers/map.d.ts.map +1 -0
  152. package/_vendor/zod-to-json-schema/parsers/map.js +29 -0
  153. package/_vendor/zod-to-json-schema/parsers/map.js.map +1 -0
  154. package/_vendor/zod-to-json-schema/parsers/map.mjs +26 -0
  155. package/_vendor/zod-to-json-schema/parsers/map.mjs.map +1 -0
  156. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +7 -0
  157. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts.map +1 -0
  158. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +7 -0
  159. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -0
  160. package/_vendor/zod-to-json-schema/parsers/nativeEnum.js +20 -0
  161. package/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map +1 -0
  162. package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +17 -0
  163. package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map +1 -0
  164. package/_vendor/zod-to-json-schema/parsers/never.d.mts +5 -0
  165. package/_vendor/zod-to-json-schema/parsers/never.d.mts.map +1 -0
  166. package/_vendor/zod-to-json-schema/parsers/never.d.ts +5 -0
  167. package/_vendor/zod-to-json-schema/parsers/never.d.ts.map +1 -0
  168. package/_vendor/zod-to-json-schema/parsers/never.js +9 -0
  169. package/_vendor/zod-to-json-schema/parsers/never.js.map +1 -0
  170. package/_vendor/zod-to-json-schema/parsers/never.mjs +6 -0
  171. package/_vendor/zod-to-json-schema/parsers/never.mjs.map +1 -0
  172. package/_vendor/zod-to-json-schema/parsers/null.d.mts +6 -0
  173. package/_vendor/zod-to-json-schema/parsers/null.d.mts.map +1 -0
  174. package/_vendor/zod-to-json-schema/parsers/null.d.ts +6 -0
  175. package/_vendor/zod-to-json-schema/parsers/null.d.ts.map +1 -0
  176. package/_vendor/zod-to-json-schema/parsers/null.js +14 -0
  177. package/_vendor/zod-to-json-schema/parsers/null.js.map +1 -0
  178. package/_vendor/zod-to-json-schema/parsers/null.mjs +11 -0
  179. package/_vendor/zod-to-json-schema/parsers/null.mjs.map +1 -0
  180. package/_vendor/zod-to-json-schema/parsers/nullable.d.mts +11 -0
  181. package/_vendor/zod-to-json-schema/parsers/nullable.d.mts.map +1 -0
  182. package/_vendor/zod-to-json-schema/parsers/nullable.d.ts +11 -0
  183. package/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map +1 -0
  184. package/_vendor/zod-to-json-schema/parsers/nullable.js +34 -0
  185. package/_vendor/zod-to-json-schema/parsers/nullable.js.map +1 -0
  186. package/_vendor/zod-to-json-schema/parsers/nullable.mjs +31 -0
  187. package/_vendor/zod-to-json-schema/parsers/nullable.mjs.map +1 -0
  188. package/_vendor/zod-to-json-schema/parsers/number.d.mts +14 -0
  189. package/_vendor/zod-to-json-schema/parsers/number.d.mts.map +1 -0
  190. package/_vendor/zod-to-json-schema/parsers/number.d.ts +14 -0
  191. package/_vendor/zod-to-json-schema/parsers/number.d.ts.map +1 -0
  192. package/_vendor/zod-to-json-schema/parsers/number.js +56 -0
  193. package/_vendor/zod-to-json-schema/parsers/number.js.map +1 -0
  194. package/_vendor/zod-to-json-schema/parsers/number.mjs +53 -0
  195. package/_vendor/zod-to-json-schema/parsers/number.mjs.map +1 -0
  196. package/_vendor/zod-to-json-schema/parsers/object.d.mts +11 -0
  197. package/_vendor/zod-to-json-schema/parsers/object.d.mts.map +1 -0
  198. package/_vendor/zod-to-json-schema/parsers/object.d.ts +11 -0
  199. package/_vendor/zod-to-json-schema/parsers/object.d.ts.map +1 -0
  200. package/_vendor/zod-to-json-schema/parsers/object.js +57 -0
  201. package/_vendor/zod-to-json-schema/parsers/object.js.map +1 -0
  202. package/_vendor/zod-to-json-schema/parsers/object.mjs +54 -0
  203. package/_vendor/zod-to-json-schema/parsers/object.mjs.map +1 -0
  204. package/_vendor/zod-to-json-schema/parsers/optional.d.mts +5 -0
  205. package/_vendor/zod-to-json-schema/parsers/optional.d.mts.map +1 -0
  206. package/_vendor/zod-to-json-schema/parsers/optional.d.ts +5 -0
  207. package/_vendor/zod-to-json-schema/parsers/optional.d.ts.map +1 -0
  208. package/_vendor/zod-to-json-schema/parsers/optional.js +26 -0
  209. package/_vendor/zod-to-json-schema/parsers/optional.js.map +1 -0
  210. package/_vendor/zod-to-json-schema/parsers/optional.mjs +22 -0
  211. package/_vendor/zod-to-json-schema/parsers/optional.mjs.map +1 -0
  212. package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +6 -0
  213. package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts.map +1 -0
  214. package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +6 -0
  215. package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts.map +1 -0
  216. package/_vendor/zod-to-json-schema/parsers/pipeline.js +25 -0
  217. package/_vendor/zod-to-json-schema/parsers/pipeline.js.map +1 -0
  218. package/_vendor/zod-to-json-schema/parsers/pipeline.mjs +21 -0
  219. package/_vendor/zod-to-json-schema/parsers/pipeline.mjs.map +1 -0
  220. package/_vendor/zod-to-json-schema/parsers/promise.d.mts +5 -0
  221. package/_vendor/zod-to-json-schema/parsers/promise.d.mts.map +1 -0
  222. package/_vendor/zod-to-json-schema/parsers/promise.d.ts +5 -0
  223. package/_vendor/zod-to-json-schema/parsers/promise.d.ts.map +1 -0
  224. package/_vendor/zod-to-json-schema/parsers/promise.js +8 -0
  225. package/_vendor/zod-to-json-schema/parsers/promise.js.map +1 -0
  226. package/_vendor/zod-to-json-schema/parsers/promise.mjs +5 -0
  227. package/_vendor/zod-to-json-schema/parsers/promise.mjs.map +1 -0
  228. package/_vendor/zod-to-json-schema/parsers/readonly.d.mts +4 -0
  229. package/_vendor/zod-to-json-schema/parsers/readonly.d.mts.map +1 -0
  230. package/_vendor/zod-to-json-schema/parsers/readonly.d.ts +4 -0
  231. package/_vendor/zod-to-json-schema/parsers/readonly.d.ts.map +1 -0
  232. package/_vendor/zod-to-json-schema/parsers/readonly.js +9 -0
  233. package/_vendor/zod-to-json-schema/parsers/readonly.js.map +1 -0
  234. package/_vendor/zod-to-json-schema/parsers/readonly.mjs +5 -0
  235. package/_vendor/zod-to-json-schema/parsers/readonly.mjs.map +1 -0
  236. package/_vendor/zod-to-json-schema/parsers/record.d.mts +14 -0
  237. package/_vendor/zod-to-json-schema/parsers/record.d.mts.map +1 -0
  238. package/_vendor/zod-to-json-schema/parsers/record.d.ts +14 -0
  239. package/_vendor/zod-to-json-schema/parsers/record.d.ts.map +1 -0
  240. package/_vendor/zod-to-json-schema/parsers/record.js +49 -0
  241. package/_vendor/zod-to-json-schema/parsers/record.js.map +1 -0
  242. package/_vendor/zod-to-json-schema/parsers/record.mjs +46 -0
  243. package/_vendor/zod-to-json-schema/parsers/record.mjs.map +1 -0
  244. package/_vendor/zod-to-json-schema/parsers/set.d.mts +14 -0
  245. package/_vendor/zod-to-json-schema/parsers/set.d.mts.map +1 -0
  246. package/_vendor/zod-to-json-schema/parsers/set.d.ts +14 -0
  247. package/_vendor/zod-to-json-schema/parsers/set.d.ts.map +1 -0
  248. package/_vendor/zod-to-json-schema/parsers/set.js +24 -0
  249. package/_vendor/zod-to-json-schema/parsers/set.js.map +1 -0
  250. package/_vendor/zod-to-json-schema/parsers/set.mjs +21 -0
  251. package/_vendor/zod-to-json-schema/parsers/set.mjs.map +1 -0
  252. package/_vendor/zod-to-json-schema/parsers/string.d.mts +70 -0
  253. package/_vendor/zod-to-json-schema/parsers/string.d.mts.map +1 -0
  254. package/_vendor/zod-to-json-schema/parsers/string.d.ts +70 -0
  255. package/_vendor/zod-to-json-schema/parsers/string.d.ts.map +1 -0
  256. package/_vendor/zod-to-json-schema/parsers/string.js +316 -0
  257. package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -0
  258. package/_vendor/zod-to-json-schema/parsers/string.mjs +312 -0
  259. package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -0
  260. package/_vendor/zod-to-json-schema/parsers/tuple.d.mts +14 -0
  261. package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -0
  262. package/_vendor/zod-to-json-schema/parsers/tuple.d.ts +14 -0
  263. package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -0
  264. package/_vendor/zod-to-json-schema/parsers/tuple.js +36 -0
  265. package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -0
  266. package/_vendor/zod-to-json-schema/parsers/tuple.mjs +33 -0
  267. package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -0
  268. package/_vendor/zod-to-json-schema/parsers/undefined.d.mts +5 -0
  269. package/_vendor/zod-to-json-schema/parsers/undefined.d.mts.map +1 -0
  270. package/_vendor/zod-to-json-schema/parsers/undefined.d.ts +5 -0
  271. package/_vendor/zod-to-json-schema/parsers/undefined.d.ts.map +1 -0
  272. package/_vendor/zod-to-json-schema/parsers/undefined.js +9 -0
  273. package/_vendor/zod-to-json-schema/parsers/undefined.js.map +1 -0
  274. package/_vendor/zod-to-json-schema/parsers/undefined.mjs +6 -0
  275. package/_vendor/zod-to-json-schema/parsers/undefined.mjs.map +1 -0
  276. package/_vendor/zod-to-json-schema/parsers/union.d.mts +24 -0
  277. package/_vendor/zod-to-json-schema/parsers/union.d.mts.map +1 -0
  278. package/_vendor/zod-to-json-schema/parsers/union.d.ts +24 -0
  279. package/_vendor/zod-to-json-schema/parsers/union.d.ts.map +1 -0
  280. package/_vendor/zod-to-json-schema/parsers/union.js +77 -0
  281. package/_vendor/zod-to-json-schema/parsers/union.js.map +1 -0
  282. package/_vendor/zod-to-json-schema/parsers/union.mjs +73 -0
  283. package/_vendor/zod-to-json-schema/parsers/union.mjs.map +1 -0
  284. package/_vendor/zod-to-json-schema/parsers/unknown.d.mts +3 -0
  285. package/_vendor/zod-to-json-schema/parsers/unknown.d.mts.map +1 -0
  286. package/_vendor/zod-to-json-schema/parsers/unknown.d.ts +3 -0
  287. package/_vendor/zod-to-json-schema/parsers/unknown.d.ts.map +1 -0
  288. package/_vendor/zod-to-json-schema/parsers/unknown.js +7 -0
  289. package/_vendor/zod-to-json-schema/parsers/unknown.js.map +1 -0
  290. package/_vendor/zod-to-json-schema/parsers/unknown.mjs +4 -0
  291. package/_vendor/zod-to-json-schema/parsers/unknown.mjs.map +1 -0
  292. package/_vendor/zod-to-json-schema/util.d.mts +4 -0
  293. package/_vendor/zod-to-json-schema/util.d.mts.map +1 -0
  294. package/_vendor/zod-to-json-schema/util.d.ts +4 -0
  295. package/_vendor/zod-to-json-schema/util.d.ts.map +1 -0
  296. package/_vendor/zod-to-json-schema/util.js +16 -0
  297. package/_vendor/zod-to-json-schema/util.js.map +1 -0
  298. package/_vendor/zod-to-json-schema/util.mjs +11 -0
  299. package/_vendor/zod-to-json-schema/util.mjs.map +1 -0
  300. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +11 -0
  301. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -0
  302. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +11 -0
  303. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -0
  304. package/_vendor/zod-to-json-schema/zodToJsonSchema.js +82 -0
  305. package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -0
  306. package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +79 -0
  307. package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -0
  308. package/api-promise.d.mts +2 -0
  309. package/api-promise.d.mts.map +1 -0
  310. package/api-promise.d.ts +2 -0
  311. package/api-promise.d.ts.map +1 -0
  312. package/api-promise.js +6 -0
  313. package/api-promise.js.map +1 -0
  314. package/api-promise.mjs +2 -0
  315. package/api-promise.mjs.map +1 -0
  316. package/azure.d.mts +63 -0
  317. package/azure.d.mts.map +1 -0
  318. package/azure.d.ts +63 -0
  319. package/azure.d.ts.map +1 -0
  320. package/azure.js +97 -0
  321. package/azure.js.map +1 -0
  322. package/azure.mjs +92 -0
  323. package/azure.mjs.map +1 -0
  324. package/beta/realtime/index.d.mts +2 -0
  325. package/beta/realtime/index.d.mts.map +1 -0
  326. package/beta/realtime/index.d.ts +2 -0
  327. package/beta/realtime/index.d.ts.map +1 -0
  328. package/beta/realtime/index.js +6 -0
  329. package/beta/realtime/index.js.map +1 -0
  330. package/beta/realtime/index.mjs +2 -0
  331. package/beta/realtime/index.mjs.map +1 -0
  332. package/beta/realtime/internal-base.d.mts +45 -0
  333. package/beta/realtime/internal-base.d.mts.map +1 -0
  334. package/beta/realtime/internal-base.d.ts +45 -0
  335. package/beta/realtime/internal-base.d.ts.map +1 -0
  336. package/beta/realtime/internal-base.js +55 -0
  337. package/beta/realtime/internal-base.js.map +1 -0
  338. package/beta/realtime/internal-base.mjs +48 -0
  339. package/beta/realtime/internal-base.mjs.map +1 -0
  340. package/beta/realtime/websocket.d.mts +36 -0
  341. package/beta/realtime/websocket.d.mts.map +1 -0
  342. package/beta/realtime/websocket.d.ts +36 -0
  343. package/beta/realtime/websocket.d.ts.map +1 -0
  344. package/beta/realtime/websocket.js +110 -0
  345. package/beta/realtime/websocket.js.map +1 -0
  346. package/beta/realtime/websocket.mjs +106 -0
  347. package/beta/realtime/websocket.mjs.map +1 -0
  348. package/beta/realtime/ws.d.mts +27 -0
  349. package/beta/realtime/ws.d.mts.map +1 -0
  350. package/beta/realtime/ws.d.ts +27 -0
  351. package/beta/realtime/ws.d.ts.map +1 -0
  352. package/beta/realtime/ws.js +93 -0
  353. package/beta/realtime/ws.js.map +1 -0
  354. package/beta/realtime/ws.mjs +88 -0
  355. package/beta/realtime/ws.mjs.map +1 -0
  356. package/bin/cli +52 -0
  357. package/bin/migration-config.json +1038 -0
  358. package/changes.json +5 -0
  359. package/client.d.mts +334 -0
  360. package/client.d.mts.map +1 -0
  361. package/client.d.ts +334 -0
  362. package/client.d.ts.map +1 -0
  363. package/client.js +612 -0
  364. package/client.js.map +1 -0
  365. package/client.mjs +608 -0
  366. package/client.mjs.map +1 -0
  367. package/core/EventEmitter.d.mts +45 -0
  368. package/core/EventEmitter.d.mts.map +1 -0
  369. package/core/EventEmitter.d.ts +45 -0
  370. package/core/EventEmitter.d.ts.map +1 -0
  371. package/core/EventEmitter.js +79 -0
  372. package/core/EventEmitter.js.map +1 -0
  373. package/core/EventEmitter.mjs +75 -0
  374. package/core/EventEmitter.mjs.map +1 -0
  375. package/core/api-promise.d.mts +49 -0
  376. package/core/api-promise.d.mts.map +1 -0
  377. package/core/api-promise.d.ts +49 -0
  378. package/core/api-promise.d.ts.map +1 -0
  379. package/core/api-promise.js +76 -0
  380. package/core/api-promise.js.map +1 -0
  381. package/core/api-promise.mjs +72 -0
  382. package/core/api-promise.mjs.map +1 -0
  383. package/core/error.d.mts +59 -0
  384. package/core/error.d.mts.map +1 -0
  385. package/core/error.d.ts +59 -0
  386. package/core/error.d.ts.map +1 -0
  387. package/core/error.js +136 -0
  388. package/core/error.js.map +1 -0
  389. package/core/error.mjs +117 -0
  390. package/core/error.mjs.map +1 -0
  391. package/core/pagination.d.mts +89 -0
  392. package/core/pagination.d.mts.map +1 -0
  393. package/core/pagination.d.ts +89 -0
  394. package/core/pagination.d.ts.map +1 -0
  395. package/core/pagination.js +156 -0
  396. package/core/pagination.js.map +1 -0
  397. package/core/pagination.mjs +148 -0
  398. package/core/pagination.mjs.map +1 -0
  399. package/core/resource.d.mts +6 -0
  400. package/core/resource.d.mts.map +1 -0
  401. package/core/resource.d.ts +6 -0
  402. package/core/resource.d.ts.map +1 -0
  403. package/core/resource.js +11 -0
  404. package/core/resource.js.map +1 -0
  405. package/core/resource.mjs +7 -0
  406. package/core/resource.mjs.map +1 -0
  407. package/core/streaming.d.mts +33 -0
  408. package/core/streaming.d.mts.map +1 -0
  409. package/core/streaming.d.ts +33 -0
  410. package/core/streaming.d.ts.map +1 -0
  411. package/core/streaming.js +293 -0
  412. package/core/streaming.js.map +1 -0
  413. package/core/streaming.mjs +288 -0
  414. package/core/streaming.mjs.map +1 -0
  415. package/core/uploads.d.mts +3 -0
  416. package/core/uploads.d.mts.map +1 -0
  417. package/core/uploads.d.ts +3 -0
  418. package/core/uploads.d.ts.map +1 -0
  419. package/core/uploads.js +6 -0
  420. package/core/uploads.js.map +1 -0
  421. package/core/uploads.mjs +2 -0
  422. package/core/uploads.mjs.map +1 -0
  423. package/error.d.mts +2 -0
  424. package/error.d.mts.map +1 -0
  425. package/error.d.ts +2 -0
  426. package/error.d.ts.map +1 -0
  427. package/error.js +6 -0
  428. package/error.js.map +1 -0
  429. package/error.mjs +2 -0
  430. package/error.mjs.map +1 -0
  431. package/helpers/audio.d.mts +9 -0
  432. package/helpers/audio.d.mts.map +1 -0
  433. package/helpers/audio.d.ts +9 -0
  434. package/helpers/audio.d.ts.map +1 -0
  435. package/helpers/audio.js +122 -0
  436. package/helpers/audio.js.map +1 -0
  437. package/helpers/audio.mjs +118 -0
  438. package/helpers/audio.mjs.map +1 -0
  439. package/helpers/zod.d.mts +73 -0
  440. package/helpers/zod.d.mts.map +1 -0
  441. package/helpers/zod.d.ts +73 -0
  442. package/helpers/zod.d.ts.map +1 -0
  443. package/helpers/zod.js +123 -0
  444. package/helpers/zod.js.map +1 -0
  445. package/helpers/zod.mjs +116 -0
  446. package/helpers/zod.mjs.map +1 -0
  447. package/index.d.mts +8 -0
  448. package/index.d.mts.map +1 -0
  449. package/index.d.ts +8 -0
  450. package/index.d.ts.map +1 -0
  451. package/index.js +35 -0
  452. package/index.js.map +1 -0
  453. package/index.mjs +9 -0
  454. package/index.mjs.map +1 -0
  455. package/internal/builtin-types.d.mts +73 -0
  456. package/internal/builtin-types.d.mts.map +1 -0
  457. package/internal/builtin-types.d.ts +73 -0
  458. package/internal/builtin-types.d.ts.map +1 -0
  459. package/internal/builtin-types.js +4 -0
  460. package/internal/builtin-types.js.map +1 -0
  461. package/internal/builtin-types.mjs +3 -0
  462. package/internal/builtin-types.mjs.map +1 -0
  463. package/internal/decoders/line.d.mts +17 -0
  464. package/internal/decoders/line.d.mts.map +1 -0
  465. package/internal/decoders/line.d.ts +17 -0
  466. package/internal/decoders/line.d.ts.map +1 -0
  467. package/internal/decoders/line.js +113 -0
  468. package/internal/decoders/line.js.map +1 -0
  469. package/internal/decoders/line.mjs +108 -0
  470. package/internal/decoders/line.mjs.map +1 -0
  471. package/internal/detect-platform.d.mts +15 -0
  472. package/internal/detect-platform.d.mts.map +1 -0
  473. package/internal/detect-platform.d.ts +15 -0
  474. package/internal/detect-platform.d.ts.map +1 -0
  475. package/internal/detect-platform.js +162 -0
  476. package/internal/detect-platform.js.map +1 -0
  477. package/internal/detect-platform.mjs +157 -0
  478. package/internal/detect-platform.mjs.map +1 -0
  479. package/internal/errors.d.mts +3 -0
  480. package/internal/errors.d.mts.map +1 -0
  481. package/internal/errors.d.ts +3 -0
  482. package/internal/errors.d.ts.map +1 -0
  483. package/internal/errors.js +41 -0
  484. package/internal/errors.js.map +1 -0
  485. package/internal/errors.mjs +36 -0
  486. package/internal/errors.mjs.map +1 -0
  487. package/internal/headers.d.mts +20 -0
  488. package/internal/headers.d.mts.map +1 -0
  489. package/internal/headers.d.ts +20 -0
  490. package/internal/headers.d.ts.map +1 -0
  491. package/internal/headers.js +79 -0
  492. package/internal/headers.js.map +1 -0
  493. package/internal/headers.mjs +74 -0
  494. package/internal/headers.mjs.map +1 -0
  495. package/internal/parse.d.mts +17 -0
  496. package/internal/parse.d.mts.map +1 -0
  497. package/internal/parse.d.ts +17 -0
  498. package/internal/parse.d.ts.map +1 -0
  499. package/internal/parse.js +60 -0
  500. package/internal/parse.js.map +1 -0
  501. package/internal/parse.mjs +56 -0
  502. package/internal/parse.mjs.map +1 -0
  503. package/internal/qs/formats.d.mts +7 -0
  504. package/internal/qs/formats.d.mts.map +1 -0
  505. package/internal/qs/formats.d.ts +7 -0
  506. package/internal/qs/formats.d.ts.map +1 -0
  507. package/internal/qs/formats.js +13 -0
  508. package/internal/qs/formats.js.map +1 -0
  509. package/internal/qs/formats.mjs +9 -0
  510. package/internal/qs/formats.mjs.map +1 -0
  511. package/internal/qs/index.d.mts +10 -0
  512. package/internal/qs/index.d.mts.map +1 -0
  513. package/internal/qs/index.d.ts +10 -0
  514. package/internal/qs/index.d.ts.map +1 -0
  515. package/internal/qs/index.js +14 -0
  516. package/internal/qs/index.js.map +1 -0
  517. package/internal/qs/index.mjs +10 -0
  518. package/internal/qs/index.mjs.map +1 -0
  519. package/internal/qs/stringify.d.mts +3 -0
  520. package/internal/qs/stringify.d.mts.map +1 -0
  521. package/internal/qs/stringify.d.ts +3 -0
  522. package/internal/qs/stringify.d.ts.map +1 -0
  523. package/internal/qs/stringify.js +277 -0
  524. package/internal/qs/stringify.js.map +1 -0
  525. package/internal/qs/stringify.mjs +274 -0
  526. package/internal/qs/stringify.mjs.map +1 -0
  527. package/internal/qs/types.d.mts +57 -0
  528. package/internal/qs/types.d.mts.map +1 -0
  529. package/internal/qs/types.d.ts +57 -0
  530. package/internal/qs/types.d.ts.map +1 -0
  531. package/internal/qs/types.js +3 -0
  532. package/internal/qs/types.js.map +1 -0
  533. package/internal/qs/types.mjs +2 -0
  534. package/internal/qs/types.mjs.map +1 -0
  535. package/internal/qs/utils.d.mts +15 -0
  536. package/internal/qs/utils.d.mts.map +1 -0
  537. package/internal/qs/utils.d.ts +15 -0
  538. package/internal/qs/utils.d.ts.map +1 -0
  539. package/internal/qs/utils.js +230 -0
  540. package/internal/qs/utils.js.map +1 -0
  541. package/internal/qs/utils.mjs +217 -0
  542. package/internal/qs/utils.mjs.map +1 -0
  543. package/internal/request-options.d.mts +79 -0
  544. package/internal/request-options.d.mts.map +1 -0
  545. package/internal/request-options.d.ts +79 -0
  546. package/internal/request-options.d.ts.map +1 -0
  547. package/internal/request-options.js +14 -0
  548. package/internal/request-options.js.map +1 -0
  549. package/internal/request-options.mjs +10 -0
  550. package/internal/request-options.mjs.map +1 -0
  551. package/internal/shim-types.d.mts +17 -0
  552. package/internal/shim-types.d.mts.map +1 -0
  553. package/internal/shim-types.d.ts +17 -0
  554. package/internal/shim-types.d.ts.map +1 -0
  555. package/internal/shim-types.js +4 -0
  556. package/internal/shim-types.js.map +1 -0
  557. package/internal/shim-types.mjs +3 -0
  558. package/internal/shim-types.mjs.map +1 -0
  559. package/internal/shims.d.mts +20 -0
  560. package/internal/shims.d.mts.map +1 -0
  561. package/internal/shims.d.ts +20 -0
  562. package/internal/shims.d.ts.map +1 -0
  563. package/internal/shims.js +92 -0
  564. package/internal/shims.js.map +1 -0
  565. package/internal/shims.mjs +85 -0
  566. package/internal/shims.mjs.map +1 -0
  567. package/internal/stream-utils.d.mts +8 -0
  568. package/internal/stream-utils.d.mts.map +1 -0
  569. package/internal/stream-utils.d.ts +8 -0
  570. package/internal/stream-utils.d.ts.map +1 -0
  571. package/internal/stream-utils.js +38 -0
  572. package/internal/stream-utils.js.map +1 -0
  573. package/internal/stream-utils.mjs +35 -0
  574. package/internal/stream-utils.mjs.map +1 -0
  575. package/internal/to-file.d.mts +45 -0
  576. package/internal/to-file.d.mts.map +1 -0
  577. package/internal/to-file.d.ts +45 -0
  578. package/internal/to-file.d.ts.map +1 -0
  579. package/internal/to-file.js +91 -0
  580. package/internal/to-file.js.map +1 -0
  581. package/internal/to-file.mjs +88 -0
  582. package/internal/to-file.mjs.map +1 -0
  583. package/internal/tslib.js +81 -0
  584. package/internal/tslib.mjs +17 -0
  585. package/internal/types.d.mts +69 -0
  586. package/internal/types.d.mts.map +1 -0
  587. package/internal/types.d.ts +69 -0
  588. package/internal/types.d.ts.map +1 -0
  589. package/internal/types.js +4 -0
  590. package/internal/types.js.map +1 -0
  591. package/internal/types.mjs +3 -0
  592. package/internal/types.mjs.map +1 -0
  593. package/internal/uploads.d.mts +42 -0
  594. package/internal/uploads.d.mts.map +1 -0
  595. package/internal/uploads.d.ts +42 -0
  596. package/internal/uploads.d.ts.map +1 -0
  597. package/internal/uploads.js +141 -0
  598. package/internal/uploads.js.map +1 -0
  599. package/internal/uploads.mjs +131 -0
  600. package/internal/uploads.mjs.map +1 -0
  601. package/internal/utils/base64.d.mts +9 -0
  602. package/internal/utils/base64.d.mts.map +1 -0
  603. package/internal/utils/base64.d.ts +9 -0
  604. package/internal/utils/base64.d.ts.map +1 -0
  605. package/internal/utils/base64.js +61 -0
  606. package/internal/utils/base64.js.map +1 -0
  607. package/internal/utils/base64.mjs +55 -0
  608. package/internal/utils/base64.mjs.map +1 -0
  609. package/internal/utils/bytes.d.mts +4 -0
  610. package/internal/utils/bytes.d.mts.map +1 -0
  611. package/internal/utils/bytes.d.ts +4 -0
  612. package/internal/utils/bytes.d.ts.map +1 -0
  613. package/internal/utils/bytes.js +31 -0
  614. package/internal/utils/bytes.js.map +1 -0
  615. package/internal/utils/bytes.mjs +26 -0
  616. package/internal/utils/bytes.mjs.map +1 -0
  617. package/internal/utils/env.d.mts +9 -0
  618. package/internal/utils/env.d.mts.map +1 -0
  619. package/internal/utils/env.d.ts +9 -0
  620. package/internal/utils/env.d.ts.map +1 -0
  621. package/internal/utils/env.js +22 -0
  622. package/internal/utils/env.js.map +1 -0
  623. package/internal/utils/env.mjs +18 -0
  624. package/internal/utils/env.mjs.map +1 -0
  625. package/internal/utils/log.d.mts +37 -0
  626. package/internal/utils/log.d.mts.map +1 -0
  627. package/internal/utils/log.d.ts +37 -0
  628. package/internal/utils/log.d.ts.map +1 -0
  629. package/internal/utils/log.js +85 -0
  630. package/internal/utils/log.js.map +1 -0
  631. package/internal/utils/log.mjs +79 -0
  632. package/internal/utils/log.mjs.map +1 -0
  633. package/internal/utils/path.d.mts +15 -0
  634. package/internal/utils/path.d.mts.map +1 -0
  635. package/internal/utils/path.d.ts +15 -0
  636. package/internal/utils/path.d.ts.map +1 -0
  637. package/internal/utils/path.js +79 -0
  638. package/internal/utils/path.js.map +1 -0
  639. package/internal/utils/path.mjs +74 -0
  640. package/internal/utils/path.mjs.map +1 -0
  641. package/internal/utils/query.d.mts +2 -0
  642. package/internal/utils/query.d.mts.map +1 -0
  643. package/internal/utils/query.d.ts +2 -0
  644. package/internal/utils/query.d.ts.map +1 -0
  645. package/internal/utils/query.js +10 -0
  646. package/internal/utils/query.js.map +1 -0
  647. package/internal/utils/query.mjs +6 -0
  648. package/internal/utils/query.mjs.map +1 -0
  649. package/internal/utils/sleep.d.mts +2 -0
  650. package/internal/utils/sleep.d.mts.map +1 -0
  651. package/internal/utils/sleep.d.ts +2 -0
  652. package/internal/utils/sleep.d.ts.map +1 -0
  653. package/internal/utils/sleep.js +7 -0
  654. package/internal/utils/sleep.js.map +1 -0
  655. package/internal/utils/sleep.mjs +3 -0
  656. package/internal/utils/sleep.mjs.map +1 -0
  657. package/internal/utils/uuid.d.mts +5 -0
  658. package/internal/utils/uuid.d.mts.map +1 -0
  659. package/internal/utils/uuid.d.ts +5 -0
  660. package/internal/utils/uuid.d.ts.map +1 -0
  661. package/internal/utils/uuid.js +19 -0
  662. package/internal/utils/uuid.js.map +1 -0
  663. package/internal/utils/uuid.mjs +15 -0
  664. package/internal/utils/uuid.mjs.map +1 -0
  665. package/internal/utils/values.d.mts +18 -0
  666. package/internal/utils/values.d.mts.map +1 -0
  667. package/internal/utils/values.d.ts +18 -0
  668. package/internal/utils/values.d.ts.map +1 -0
  669. package/internal/utils/values.js +112 -0
  670. package/internal/utils/values.js.map +1 -0
  671. package/internal/utils/values.mjs +94 -0
  672. package/internal/utils/values.mjs.map +1 -0
  673. package/internal/utils.d.mts +8 -0
  674. package/internal/utils.d.mts.map +1 -0
  675. package/internal/utils.d.ts +8 -0
  676. package/internal/utils.d.ts.map +1 -0
  677. package/internal/utils.js +12 -0
  678. package/internal/utils.js.map +1 -0
  679. package/internal/utils.mjs +9 -0
  680. package/internal/utils.mjs.map +1 -0
  681. package/lib/AbstractChatCompletionRunner.d.mts +59 -0
  682. package/lib/AbstractChatCompletionRunner.d.mts.map +1 -0
  683. package/lib/AbstractChatCompletionRunner.d.ts +59 -0
  684. package/lib/AbstractChatCompletionRunner.d.ts.map +1 -0
  685. package/lib/AbstractChatCompletionRunner.js +291 -0
  686. package/lib/AbstractChatCompletionRunner.js.map +1 -0
  687. package/lib/AbstractChatCompletionRunner.mjs +287 -0
  688. package/lib/AbstractChatCompletionRunner.mjs.map +1 -0
  689. package/lib/AssistantStream.d.mts +60 -0
  690. package/lib/AssistantStream.d.mts.map +1 -0
  691. package/lib/AssistantStream.d.ts +60 -0
  692. package/lib/AssistantStream.d.ts.map +1 -0
  693. package/lib/AssistantStream.js +553 -0
  694. package/lib/AssistantStream.js.map +1 -0
  695. package/lib/AssistantStream.mjs +549 -0
  696. package/lib/AssistantStream.mjs.map +1 -0
  697. package/lib/ChatCompletionRunner.d.mts +16 -0
  698. package/lib/ChatCompletionRunner.d.mts.map +1 -0
  699. package/lib/ChatCompletionRunner.d.ts +16 -0
  700. package/lib/ChatCompletionRunner.d.ts.map +1 -0
  701. package/lib/ChatCompletionRunner.js +24 -0
  702. package/lib/ChatCompletionRunner.js.map +1 -0
  703. package/lib/ChatCompletionRunner.mjs +20 -0
  704. package/lib/ChatCompletionRunner.mjs.map +1 -0
  705. package/lib/ChatCompletionStream.d.mts +208 -0
  706. package/lib/ChatCompletionStream.d.mts.map +1 -0
  707. package/lib/ChatCompletionStream.d.ts +208 -0
  708. package/lib/ChatCompletionStream.d.ts.map +1 -0
  709. package/lib/ChatCompletionStream.js +493 -0
  710. package/lib/ChatCompletionStream.js.map +1 -0
  711. package/lib/ChatCompletionStream.mjs +489 -0
  712. package/lib/ChatCompletionStream.mjs.map +1 -0
  713. package/lib/ChatCompletionStreamingRunner.d.mts +19 -0
  714. package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -0
  715. package/lib/ChatCompletionStreamingRunner.d.ts +19 -0
  716. package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -0
  717. package/lib/ChatCompletionStreamingRunner.js +24 -0
  718. package/lib/ChatCompletionStreamingRunner.js.map +1 -0
  719. package/lib/ChatCompletionStreamingRunner.mjs +20 -0
  720. package/lib/ChatCompletionStreamingRunner.mjs.map +1 -0
  721. package/lib/EventEmitter.d.mts +45 -0
  722. package/lib/EventEmitter.d.mts.map +1 -0
  723. package/lib/EventEmitter.d.ts +45 -0
  724. package/lib/EventEmitter.d.ts.map +1 -0
  725. package/lib/EventEmitter.js +79 -0
  726. package/lib/EventEmitter.js.map +1 -0
  727. package/lib/EventEmitter.mjs +75 -0
  728. package/lib/EventEmitter.mjs.map +1 -0
  729. package/lib/EventStream.d.mts +62 -0
  730. package/lib/EventStream.d.mts.map +1 -0
  731. package/lib/EventStream.d.ts +62 -0
  732. package/lib/EventStream.d.ts.map +1 -0
  733. package/lib/EventStream.js +190 -0
  734. package/lib/EventStream.js.map +1 -0
  735. package/lib/EventStream.mjs +186 -0
  736. package/lib/EventStream.mjs.map +1 -0
  737. package/lib/ResponsesParser.d.mts +36 -0
  738. package/lib/ResponsesParser.d.mts.map +1 -0
  739. package/lib/ResponsesParser.d.ts +36 -0
  740. package/lib/ResponsesParser.d.ts.map +1 -0
  741. package/lib/ResponsesParser.js +170 -0
  742. package/lib/ResponsesParser.js.map +1 -0
  743. package/lib/ResponsesParser.mjs +160 -0
  744. package/lib/ResponsesParser.mjs.map +1 -0
  745. package/lib/RunnableFunction.d.mts +83 -0
  746. package/lib/RunnableFunction.d.mts.map +1 -0
  747. package/lib/RunnableFunction.d.ts +83 -0
  748. package/lib/RunnableFunction.d.ts.map +1 -0
  749. package/lib/RunnableFunction.js +19 -0
  750. package/lib/RunnableFunction.js.map +1 -0
  751. package/lib/RunnableFunction.mjs +14 -0
  752. package/lib/RunnableFunction.mjs.map +1 -0
  753. package/lib/Util.d.mts +5 -0
  754. package/lib/Util.d.mts.map +1 -0
  755. package/lib/Util.d.ts +5 -0
  756. package/lib/Util.d.ts.map +1 -0
  757. package/lib/Util.js +26 -0
  758. package/lib/Util.js.map +1 -0
  759. package/lib/Util.mjs +22 -0
  760. package/lib/Util.mjs.map +1 -0
  761. package/lib/chatCompletionUtils.d.mts +5 -0
  762. package/lib/chatCompletionUtils.d.mts.map +1 -0
  763. package/lib/chatCompletionUtils.d.ts +5 -0
  764. package/lib/chatCompletionUtils.d.ts.map +1 -0
  765. package/lib/chatCompletionUtils.js +16 -0
  766. package/lib/chatCompletionUtils.js.map +1 -0
  767. package/lib/chatCompletionUtils.mjs +10 -0
  768. package/lib/chatCompletionUtils.mjs.map +1 -0
  769. package/lib/jsonschema.d.mts +123 -0
  770. package/lib/jsonschema.d.mts.map +1 -0
  771. package/lib/jsonschema.d.ts +123 -0
  772. package/lib/jsonschema.d.ts.map +1 -0
  773. package/lib/jsonschema.js +11 -0
  774. package/lib/jsonschema.js.map +1 -0
  775. package/lib/jsonschema.mjs +10 -0
  776. package/lib/jsonschema.mjs.map +1 -0
  777. package/lib/parser.d.mts +47 -0
  778. package/lib/parser.d.mts.map +1 -0
  779. package/lib/parser.d.ts +47 -0
  780. package/lib/parser.d.ts.map +1 -0
  781. package/lib/parser.js +176 -0
  782. package/lib/parser.js.map +1 -0
  783. package/lib/parser.mjs +162 -0
  784. package/lib/parser.mjs.map +1 -0
  785. package/lib/responses/EventTypes.d.mts +9 -0
  786. package/lib/responses/EventTypes.d.mts.map +1 -0
  787. package/lib/responses/EventTypes.d.ts +9 -0
  788. package/lib/responses/EventTypes.d.ts.map +1 -0
  789. package/lib/responses/EventTypes.js +3 -0
  790. package/lib/responses/EventTypes.js.map +1 -0
  791. package/lib/responses/EventTypes.mjs +2 -0
  792. package/lib/responses/EventTypes.mjs.map +1 -0
  793. package/lib/responses/ResponseStream.d.mts +59 -0
  794. package/lib/responses/ResponseStream.d.mts.map +1 -0
  795. package/lib/responses/ResponseStream.d.ts +59 -0
  796. package/lib/responses/ResponseStream.d.ts.map +1 -0
  797. package/lib/responses/ResponseStream.js +265 -0
  798. package/lib/responses/ResponseStream.js.map +1 -0
  799. package/lib/responses/ResponseStream.mjs +261 -0
  800. package/lib/responses/ResponseStream.mjs.map +1 -0
  801. package/lib/transform.d.mts +3 -0
  802. package/lib/transform.d.mts.map +1 -0
  803. package/lib/transform.d.ts +3 -0
  804. package/lib/transform.d.ts.map +1 -0
  805. package/lib/transform.js +154 -0
  806. package/lib/transform.js.map +1 -0
  807. package/lib/transform.mjs +151 -0
  808. package/lib/transform.mjs.map +1 -0
  809. package/package.json +256 -0
  810. package/pagination.d.mts +2 -0
  811. package/pagination.d.mts.map +1 -0
  812. package/pagination.d.ts +2 -0
  813. package/pagination.d.ts.map +1 -0
  814. package/pagination.js +6 -0
  815. package/pagination.js.map +1 -0
  816. package/pagination.mjs +2 -0
  817. package/pagination.mjs.map +1 -0
  818. package/realtime/index.d.mts +2 -0
  819. package/realtime/index.d.mts.map +1 -0
  820. package/realtime/index.d.ts +2 -0
  821. package/realtime/index.d.ts.map +1 -0
  822. package/realtime/index.js +6 -0
  823. package/realtime/index.js.map +1 -0
  824. package/realtime/index.mjs +2 -0
  825. package/realtime/index.mjs.map +1 -0
  826. package/realtime/internal-base.d.mts +45 -0
  827. package/realtime/internal-base.d.mts.map +1 -0
  828. package/realtime/internal-base.d.ts +45 -0
  829. package/realtime/internal-base.d.ts.map +1 -0
  830. package/realtime/internal-base.js +55 -0
  831. package/realtime/internal-base.js.map +1 -0
  832. package/realtime/internal-base.mjs +48 -0
  833. package/realtime/internal-base.mjs.map +1 -0
  834. package/realtime/websocket.d.mts +36 -0
  835. package/realtime/websocket.d.mts.map +1 -0
  836. package/realtime/websocket.d.ts +36 -0
  837. package/realtime/websocket.d.ts.map +1 -0
  838. package/realtime/websocket.js +109 -0
  839. package/realtime/websocket.js.map +1 -0
  840. package/realtime/websocket.mjs +105 -0
  841. package/realtime/websocket.mjs.map +1 -0
  842. package/realtime/ws.d.mts +27 -0
  843. package/realtime/ws.d.mts.map +1 -0
  844. package/realtime/ws.d.ts +27 -0
  845. package/realtime/ws.d.ts.map +1 -0
  846. package/realtime/ws.js +92 -0
  847. package/realtime/ws.js.map +1 -0
  848. package/realtime/ws.mjs +87 -0
  849. package/realtime/ws.mjs.map +1 -0
  850. package/resource.d.mts +2 -0
  851. package/resource.d.mts.map +1 -0
  852. package/resource.d.ts +2 -0
  853. package/resource.d.ts.map +1 -0
  854. package/resource.js +6 -0
  855. package/resource.js.map +1 -0
  856. package/resource.mjs +2 -0
  857. package/resource.mjs.map +1 -0
  858. package/resources/audio/audio.d.mts +28 -0
  859. package/resources/audio/audio.d.mts.map +1 -0
  860. package/resources/audio/audio.d.ts +28 -0
  861. package/resources/audio/audio.d.ts.map +1 -0
  862. package/resources/audio/audio.js +25 -0
  863. package/resources/audio/audio.js.map +1 -0
  864. package/resources/audio/audio.mjs +20 -0
  865. package/resources/audio/audio.mjs.map +1 -0
  866. package/resources/audio/index.d.mts +5 -0
  867. package/resources/audio/index.d.mts.map +1 -0
  868. package/resources/audio/index.d.ts +5 -0
  869. package/resources/audio/index.d.ts.map +1 -0
  870. package/resources/audio/index.js +13 -0
  871. package/resources/audio/index.js.map +1 -0
  872. package/resources/audio/index.mjs +6 -0
  873. package/resources/audio/index.mjs.map +1 -0
  874. package/resources/audio/speech.d.mts +82 -0
  875. package/resources/audio/speech.d.mts.map +1 -0
  876. package/resources/audio/speech.d.ts +82 -0
  877. package/resources/audio/speech.d.ts.map +1 -0
  878. package/resources/audio/speech.js +38 -0
  879. package/resources/audio/speech.js.map +1 -0
  880. package/resources/audio/speech.mjs +34 -0
  881. package/resources/audio/speech.mjs.map +1 -0
  882. package/resources/audio/transcriptions.d.mts +662 -0
  883. package/resources/audio/transcriptions.d.mts.map +1 -0
  884. package/resources/audio/transcriptions.d.ts +662 -0
  885. package/resources/audio/transcriptions.d.ts.map +1 -0
  886. package/resources/audio/transcriptions.js +21 -0
  887. package/resources/audio/transcriptions.js.map +1 -0
  888. package/resources/audio/transcriptions.mjs +17 -0
  889. package/resources/audio/transcriptions.mjs.map +1 -0
  890. package/resources/audio/translations.d.mts +84 -0
  891. package/resources/audio/translations.d.mts.map +1 -0
  892. package/resources/audio/translations.d.ts +84 -0
  893. package/resources/audio/translations.d.ts.map +1 -0
  894. package/resources/audio/translations.js +16 -0
  895. package/resources/audio/translations.js.map +1 -0
  896. package/resources/audio/translations.mjs +12 -0
  897. package/resources/audio/translations.mjs.map +1 -0
  898. package/resources/audio.d.mts +2 -0
  899. package/resources/audio.d.mts.map +1 -0
  900. package/resources/audio.d.ts +2 -0
  901. package/resources/audio.d.ts.map +1 -0
  902. package/resources/audio.js +6 -0
  903. package/resources/audio.js.map +1 -0
  904. package/resources/audio.mjs +3 -0
  905. package/resources/audio.mjs.map +1 -0
  906. package/resources/batches.d.mts +284 -0
  907. package/resources/batches.d.mts.map +1 -0
  908. package/resources/batches.d.ts +284 -0
  909. package/resources/batches.d.ts.map +1 -0
  910. package/resources/batches.js +40 -0
  911. package/resources/batches.js.map +1 -0
  912. package/resources/batches.mjs +36 -0
  913. package/resources/batches.mjs.map +1 -0
  914. package/resources/beta/assistants.d.mts +1227 -0
  915. package/resources/beta/assistants.d.mts.map +1 -0
  916. package/resources/beta/assistants.d.ts +1227 -0
  917. package/resources/beta/assistants.d.ts.map +1 -0
  918. package/resources/beta/assistants.js +73 -0
  919. package/resources/beta/assistants.js.map +1 -0
  920. package/resources/beta/assistants.mjs +69 -0
  921. package/resources/beta/assistants.mjs.map +1 -0
  922. package/resources/beta/beta.d.mts +21 -0
  923. package/resources/beta/beta.d.mts.map +1 -0
  924. package/resources/beta/beta.d.ts +21 -0
  925. package/resources/beta/beta.d.ts.map +1 -0
  926. package/resources/beta/beta.js +29 -0
  927. package/resources/beta/beta.js.map +1 -0
  928. package/resources/beta/beta.mjs +24 -0
  929. package/resources/beta/beta.mjs.map +1 -0
  930. package/resources/beta/chatkit/chatkit.d.mts +51 -0
  931. package/resources/beta/chatkit/chatkit.d.mts.map +1 -0
  932. package/resources/beta/chatkit/chatkit.d.ts +51 -0
  933. package/resources/beta/chatkit/chatkit.d.ts.map +1 -0
  934. package/resources/beta/chatkit/chatkit.js +21 -0
  935. package/resources/beta/chatkit/chatkit.js.map +1 -0
  936. package/resources/beta/chatkit/chatkit.mjs +16 -0
  937. package/resources/beta/chatkit/chatkit.mjs.map +1 -0
  938. package/resources/beta/chatkit/index.d.mts +4 -0
  939. package/resources/beta/chatkit/index.d.mts.map +1 -0
  940. package/resources/beta/chatkit/index.d.ts +4 -0
  941. package/resources/beta/chatkit/index.d.ts.map +1 -0
  942. package/resources/beta/chatkit/index.js +11 -0
  943. package/resources/beta/chatkit/index.js.map +1 -0
  944. package/resources/beta/chatkit/index.mjs +5 -0
  945. package/resources/beta/chatkit/index.mjs.map +1 -0
  946. package/resources/beta/chatkit/sessions.d.mts +59 -0
  947. package/resources/beta/chatkit/sessions.d.mts.map +1 -0
  948. package/resources/beta/chatkit/sessions.d.ts +59 -0
  949. package/resources/beta/chatkit/sessions.d.ts.map +1 -0
  950. package/resources/beta/chatkit/sessions.js +47 -0
  951. package/resources/beta/chatkit/sessions.js.map +1 -0
  952. package/resources/beta/chatkit/sessions.mjs +43 -0
  953. package/resources/beta/chatkit/sessions.mjs.map +1 -0
  954. package/resources/beta/chatkit/threads.d.mts +811 -0
  955. package/resources/beta/chatkit/threads.d.mts.map +1 -0
  956. package/resources/beta/chatkit/threads.d.ts +811 -0
  957. package/resources/beta/chatkit/threads.d.ts.map +1 -0
  958. package/resources/beta/chatkit/threads.js +77 -0
  959. package/resources/beta/chatkit/threads.js.map +1 -0
  960. package/resources/beta/chatkit/threads.mjs +73 -0
  961. package/resources/beta/chatkit/threads.mjs.map +1 -0
  962. package/resources/beta/chatkit.d.mts +2 -0
  963. package/resources/beta/chatkit.d.mts.map +1 -0
  964. package/resources/beta/chatkit.d.ts +2 -0
  965. package/resources/beta/chatkit.d.ts.map +1 -0
  966. package/resources/beta/chatkit.js +6 -0
  967. package/resources/beta/chatkit.js.map +1 -0
  968. package/resources/beta/chatkit.mjs +3 -0
  969. package/resources/beta/chatkit.mjs.map +1 -0
  970. package/resources/beta/index.d.mts +6 -0
  971. package/resources/beta/index.d.mts.map +1 -0
  972. package/resources/beta/index.d.ts +6 -0
  973. package/resources/beta/index.d.ts.map +1 -0
  974. package/resources/beta/index.js +15 -0
  975. package/resources/beta/index.js.map +1 -0
  976. package/resources/beta/index.mjs +7 -0
  977. package/resources/beta/index.mjs.map +1 -0
  978. package/resources/beta/realtime/index.d.mts +4 -0
  979. package/resources/beta/realtime/index.d.mts.map +1 -0
  980. package/resources/beta/realtime/index.d.ts +4 -0
  981. package/resources/beta/realtime/index.d.ts.map +1 -0
  982. package/resources/beta/realtime/index.js +11 -0
  983. package/resources/beta/realtime/index.js.map +1 -0
  984. package/resources/beta/realtime/index.mjs +5 -0
  985. package/resources/beta/realtime/index.mjs.map +1 -0
  986. package/resources/beta/realtime/realtime.d.mts +2332 -0
  987. package/resources/beta/realtime/realtime.d.mts.map +1 -0
  988. package/resources/beta/realtime/realtime.d.ts +2332 -0
  989. package/resources/beta/realtime/realtime.d.ts.map +1 -0
  990. package/resources/beta/realtime/realtime.js +24 -0
  991. package/resources/beta/realtime/realtime.js.map +1 -0
  992. package/resources/beta/realtime/realtime.mjs +19 -0
  993. package/resources/beta/realtime/realtime.mjs.map +1 -0
  994. package/resources/beta/realtime/sessions.d.mts +744 -0
  995. package/resources/beta/realtime/sessions.d.mts.map +1 -0
  996. package/resources/beta/realtime/sessions.d.ts +744 -0
  997. package/resources/beta/realtime/sessions.d.ts.map +1 -0
  998. package/resources/beta/realtime/sessions.js +32 -0
  999. package/resources/beta/realtime/sessions.js.map +1 -0
  1000. package/resources/beta/realtime/sessions.mjs +28 -0
  1001. package/resources/beta/realtime/sessions.mjs.map +1 -0
  1002. package/resources/beta/realtime/transcription-sessions.d.mts +299 -0
  1003. package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -0
  1004. package/resources/beta/realtime/transcription-sessions.d.ts +299 -0
  1005. package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -0
  1006. package/resources/beta/realtime/transcription-sessions.js +32 -0
  1007. package/resources/beta/realtime/transcription-sessions.js.map +1 -0
  1008. package/resources/beta/realtime/transcription-sessions.mjs +28 -0
  1009. package/resources/beta/realtime/transcription-sessions.mjs.map +1 -0
  1010. package/resources/beta/realtime.d.mts +2 -0
  1011. package/resources/beta/realtime.d.mts.map +1 -0
  1012. package/resources/beta/realtime.d.ts +2 -0
  1013. package/resources/beta/realtime.d.ts.map +1 -0
  1014. package/resources/beta/realtime.js +6 -0
  1015. package/resources/beta/realtime.js.map +1 -0
  1016. package/resources/beta/realtime.mjs +3 -0
  1017. package/resources/beta/realtime.mjs.map +1 -0
  1018. package/resources/beta/threads/index.d.mts +4 -0
  1019. package/resources/beta/threads/index.d.mts.map +1 -0
  1020. package/resources/beta/threads/index.d.ts +4 -0
  1021. package/resources/beta/threads/index.d.ts.map +1 -0
  1022. package/resources/beta/threads/index.js +11 -0
  1023. package/resources/beta/threads/index.js.map +1 -0
  1024. package/resources/beta/threads/index.mjs +5 -0
  1025. package/resources/beta/threads/index.mjs.map +1 -0
  1026. package/resources/beta/threads/messages.d.mts +596 -0
  1027. package/resources/beta/threads/messages.d.mts.map +1 -0
  1028. package/resources/beta/threads/messages.d.ts +596 -0
  1029. package/resources/beta/threads/messages.d.ts.map +1 -0
  1030. package/resources/beta/threads/messages.js +78 -0
  1031. package/resources/beta/threads/messages.js.map +1 -0
  1032. package/resources/beta/threads/messages.mjs +74 -0
  1033. package/resources/beta/threads/messages.mjs.map +1 -0
  1034. package/resources/beta/threads/runs/index.d.mts +3 -0
  1035. package/resources/beta/threads/runs/index.d.mts.map +1 -0
  1036. package/resources/beta/threads/runs/index.d.ts +3 -0
  1037. package/resources/beta/threads/runs/index.d.ts.map +1 -0
  1038. package/resources/beta/threads/runs/index.js +9 -0
  1039. package/resources/beta/threads/runs/index.js.map +1 -0
  1040. package/resources/beta/threads/runs/index.mjs +4 -0
  1041. package/resources/beta/threads/runs/index.mjs.map +1 -0
  1042. package/resources/beta/threads/runs/runs.d.mts +743 -0
  1043. package/resources/beta/threads/runs/runs.d.mts.map +1 -0
  1044. package/resources/beta/threads/runs/runs.d.ts +743 -0
  1045. package/resources/beta/threads/runs/runs.d.ts.map +1 -0
  1046. package/resources/beta/threads/runs/runs.js +186 -0
  1047. package/resources/beta/threads/runs/runs.js.map +1 -0
  1048. package/resources/beta/threads/runs/runs.mjs +181 -0
  1049. package/resources/beta/threads/runs/runs.mjs.map +1 -0
  1050. package/resources/beta/threads/runs/steps.d.mts +617 -0
  1051. package/resources/beta/threads/runs/steps.d.mts.map +1 -0
  1052. package/resources/beta/threads/runs/steps.d.ts +617 -0
  1053. package/resources/beta/threads/runs/steps.d.ts.map +1 -0
  1054. package/resources/beta/threads/runs/steps.js +43 -0
  1055. package/resources/beta/threads/runs/steps.js.map +1 -0
  1056. package/resources/beta/threads/runs/steps.mjs +39 -0
  1057. package/resources/beta/threads/runs/steps.mjs.map +1 -0
  1058. package/resources/beta/threads/runs.d.mts +2 -0
  1059. package/resources/beta/threads/runs.d.mts.map +1 -0
  1060. package/resources/beta/threads/runs.d.ts +2 -0
  1061. package/resources/beta/threads/runs.d.ts.map +1 -0
  1062. package/resources/beta/threads/runs.js +6 -0
  1063. package/resources/beta/threads/runs.js.map +1 -0
  1064. package/resources/beta/threads/runs.mjs +3 -0
  1065. package/resources/beta/threads/runs.mjs.map +1 -0
  1066. package/resources/beta/threads/threads.d.mts +1048 -0
  1067. package/resources/beta/threads/threads.d.mts.map +1 -0
  1068. package/resources/beta/threads/threads.d.ts +1048 -0
  1069. package/resources/beta/threads/threads.d.ts.map +1 -0
  1070. package/resources/beta/threads/threads.js +99 -0
  1071. package/resources/beta/threads/threads.js.map +1 -0
  1072. package/resources/beta/threads/threads.mjs +94 -0
  1073. package/resources/beta/threads/threads.mjs.map +1 -0
  1074. package/resources/beta/threads.d.mts +2 -0
  1075. package/resources/beta/threads.d.mts.map +1 -0
  1076. package/resources/beta/threads.d.ts +2 -0
  1077. package/resources/beta/threads.d.ts.map +1 -0
  1078. package/resources/beta/threads.js +6 -0
  1079. package/resources/beta/threads.js.map +1 -0
  1080. package/resources/beta/threads.mjs +3 -0
  1081. package/resources/beta/threads.mjs.map +1 -0
  1082. package/resources/beta.d.mts +2 -0
  1083. package/resources/beta.d.mts.map +1 -0
  1084. package/resources/beta.d.ts +2 -0
  1085. package/resources/beta.d.ts.map +1 -0
  1086. package/resources/beta.js +6 -0
  1087. package/resources/beta.js.map +1 -0
  1088. package/resources/beta.mjs +3 -0
  1089. package/resources/beta.mjs.map +1 -0
  1090. package/resources/chat/chat.d.mts +13 -0
  1091. package/resources/chat/chat.d.mts.map +1 -0
  1092. package/resources/chat/chat.d.ts +13 -0
  1093. package/resources/chat/chat.d.ts.map +1 -0
  1094. package/resources/chat/chat.js +17 -0
  1095. package/resources/chat/chat.js.map +1 -0
  1096. package/resources/chat/chat.mjs +12 -0
  1097. package/resources/chat/chat.mjs.map +1 -0
  1098. package/resources/chat/completions/completions.d.mts +1659 -0
  1099. package/resources/chat/completions/completions.d.mts.map +1 -0
  1100. package/resources/chat/completions/completions.d.ts +1659 -0
  1101. package/resources/chat/completions/completions.d.ts.map +1 -0
  1102. package/resources/chat/completions/completions.js +118 -0
  1103. package/resources/chat/completions/completions.js.map +1 -0
  1104. package/resources/chat/completions/completions.mjs +109 -0
  1105. package/resources/chat/completions/completions.mjs.map +1 -0
  1106. package/resources/chat/completions/index.d.mts +4 -0
  1107. package/resources/chat/completions/index.d.mts.map +1 -0
  1108. package/resources/chat/completions/index.d.ts +4 -0
  1109. package/resources/chat/completions/index.d.ts.map +1 -0
  1110. package/resources/chat/completions/index.js +11 -0
  1111. package/resources/chat/completions/index.js.map +1 -0
  1112. package/resources/chat/completions/index.mjs +5 -0
  1113. package/resources/chat/completions/index.mjs.map +1 -0
  1114. package/resources/chat/completions/messages.d.mts +37 -0
  1115. package/resources/chat/completions/messages.d.mts.map +1 -0
  1116. package/resources/chat/completions/messages.d.ts +37 -0
  1117. package/resources/chat/completions/messages.d.ts.map +1 -0
  1118. package/resources/chat/completions/messages.js +31 -0
  1119. package/resources/chat/completions/messages.js.map +1 -0
  1120. package/resources/chat/completions/messages.mjs +27 -0
  1121. package/resources/chat/completions/messages.mjs.map +1 -0
  1122. package/resources/chat/completions.d.mts +2 -0
  1123. package/resources/chat/completions.d.mts.map +1 -0
  1124. package/resources/chat/completions.d.ts +2 -0
  1125. package/resources/chat/completions.d.ts.map +1 -0
  1126. package/resources/chat/completions.js +6 -0
  1127. package/resources/chat/completions.js.map +1 -0
  1128. package/resources/chat/completions.mjs +3 -0
  1129. package/resources/chat/completions.mjs.map +1 -0
  1130. package/resources/chat/index.d.mts +3 -0
  1131. package/resources/chat/index.d.mts.map +1 -0
  1132. package/resources/chat/index.d.ts +3 -0
  1133. package/resources/chat/index.d.ts.map +1 -0
  1134. package/resources/chat/index.js +9 -0
  1135. package/resources/chat/index.js.map +1 -0
  1136. package/resources/chat/index.mjs +4 -0
  1137. package/resources/chat/index.mjs.map +1 -0
  1138. package/resources/chat.d.mts +2 -0
  1139. package/resources/chat.d.mts.map +1 -0
  1140. package/resources/chat.d.ts +2 -0
  1141. package/resources/chat.d.ts.map +1 -0
  1142. package/resources/chat.js +6 -0
  1143. package/resources/chat.js.map +1 -0
  1144. package/resources/chat.mjs +3 -0
  1145. package/resources/chat.mjs.map +1 -0
  1146. package/resources/completions.d.mts +335 -0
  1147. package/resources/completions.d.mts.map +1 -0
  1148. package/resources/completions.d.ts +335 -0
  1149. package/resources/completions.d.ts.map +1 -0
  1150. package/resources/completions.js +15 -0
  1151. package/resources/completions.js.map +1 -0
  1152. package/resources/completions.mjs +11 -0
  1153. package/resources/completions.mjs.map +1 -0
  1154. package/resources/containers/containers.d.mts +292 -0
  1155. package/resources/containers/containers.d.mts.map +1 -0
  1156. package/resources/containers/containers.d.ts +292 -0
  1157. package/resources/containers/containers.d.ts.map +1 -0
  1158. package/resources/containers/containers.js +47 -0
  1159. package/resources/containers/containers.js.map +1 -0
  1160. package/resources/containers/containers.mjs +42 -0
  1161. package/resources/containers/containers.mjs.map +1 -0
  1162. package/resources/containers/files/content.d.mts +16 -0
  1163. package/resources/containers/files/content.d.mts.map +1 -0
  1164. package/resources/containers/files/content.d.ts +16 -0
  1165. package/resources/containers/files/content.d.ts.map +1 -0
  1166. package/resources/containers/files/content.js +22 -0
  1167. package/resources/containers/files/content.js.map +1 -0
  1168. package/resources/containers/files/content.mjs +18 -0
  1169. package/resources/containers/files/content.mjs.map +1 -0
  1170. package/resources/containers/files/files.d.mts +148 -0
  1171. package/resources/containers/files/files.d.mts.map +1 -0
  1172. package/resources/containers/files/files.d.ts +148 -0
  1173. package/resources/containers/files/files.d.ts.map +1 -0
  1174. package/resources/containers/files/files.js +56 -0
  1175. package/resources/containers/files/files.js.map +1 -0
  1176. package/resources/containers/files/files.mjs +51 -0
  1177. package/resources/containers/files/files.mjs.map +1 -0
  1178. package/resources/containers/files/index.d.mts +3 -0
  1179. package/resources/containers/files/index.d.mts.map +1 -0
  1180. package/resources/containers/files/index.d.ts +3 -0
  1181. package/resources/containers/files/index.d.ts.map +1 -0
  1182. package/resources/containers/files/index.js +9 -0
  1183. package/resources/containers/files/index.js.map +1 -0
  1184. package/resources/containers/files/index.mjs +4 -0
  1185. package/resources/containers/files/index.mjs.map +1 -0
  1186. package/resources/containers/files.d.mts +2 -0
  1187. package/resources/containers/files.d.mts.map +1 -0
  1188. package/resources/containers/files.d.ts +2 -0
  1189. package/resources/containers/files.d.ts.map +1 -0
  1190. package/resources/containers/files.js +6 -0
  1191. package/resources/containers/files.js.map +1 -0
  1192. package/resources/containers/files.mjs +3 -0
  1193. package/resources/containers/files.mjs.map +1 -0
  1194. package/resources/containers/index.d.mts +3 -0
  1195. package/resources/containers/index.d.mts.map +1 -0
  1196. package/resources/containers/index.d.ts +3 -0
  1197. package/resources/containers/index.d.ts.map +1 -0
  1198. package/resources/containers/index.js +9 -0
  1199. package/resources/containers/index.js.map +1 -0
  1200. package/resources/containers/index.mjs +4 -0
  1201. package/resources/containers/index.mjs.map +1 -0
  1202. package/resources/containers.d.mts +2 -0
  1203. package/resources/containers.d.mts.map +1 -0
  1204. package/resources/containers.d.ts +2 -0
  1205. package/resources/containers.d.ts.map +1 -0
  1206. package/resources/containers.js +6 -0
  1207. package/resources/containers.js.map +1 -0
  1208. package/resources/containers.mjs +3 -0
  1209. package/resources/containers.mjs.map +1 -0
  1210. package/resources/conversations/conversations.d.mts +184 -0
  1211. package/resources/conversations/conversations.d.mts.map +1 -0
  1212. package/resources/conversations/conversations.d.ts +184 -0
  1213. package/resources/conversations/conversations.d.ts.map +1 -0
  1214. package/resources/conversations/conversations.js +45 -0
  1215. package/resources/conversations/conversations.js.map +1 -0
  1216. package/resources/conversations/conversations.mjs +40 -0
  1217. package/resources/conversations/conversations.mjs.map +1 -0
  1218. package/resources/conversations/index.d.mts +3 -0
  1219. package/resources/conversations/index.d.mts.map +1 -0
  1220. package/resources/conversations/index.d.ts +3 -0
  1221. package/resources/conversations/index.d.ts.map +1 -0
  1222. package/resources/conversations/index.js +9 -0
  1223. package/resources/conversations/index.js.map +1 -0
  1224. package/resources/conversations/index.mjs +4 -0
  1225. package/resources/conversations/index.mjs.map +1 -0
  1226. package/resources/conversations/items.d.mts +370 -0
  1227. package/resources/conversations/items.d.mts.map +1 -0
  1228. package/resources/conversations/items.d.ts +370 -0
  1229. package/resources/conversations/items.d.ts.map +1 -0
  1230. package/resources/conversations/items.js +45 -0
  1231. package/resources/conversations/items.js.map +1 -0
  1232. package/resources/conversations/items.mjs +41 -0
  1233. package/resources/conversations/items.mjs.map +1 -0
  1234. package/resources/conversations.d.mts +2 -0
  1235. package/resources/conversations.d.mts.map +1 -0
  1236. package/resources/conversations.d.ts +2 -0
  1237. package/resources/conversations.d.ts.map +1 -0
  1238. package/resources/conversations.js +6 -0
  1239. package/resources/conversations.js.map +1 -0
  1240. package/resources/conversations.mjs +3 -0
  1241. package/resources/conversations.mjs.map +1 -0
  1242. package/resources/embeddings.d.mts +116 -0
  1243. package/resources/embeddings.d.mts.map +1 -0
  1244. package/resources/embeddings.d.ts +116 -0
  1245. package/resources/embeddings.d.ts.map +1 -0
  1246. package/resources/embeddings.js +59 -0
  1247. package/resources/embeddings.js.map +1 -0
  1248. package/resources/embeddings.mjs +55 -0
  1249. package/resources/embeddings.mjs.map +1 -0
  1250. package/resources/evals/evals.d.mts +739 -0
  1251. package/resources/evals/evals.d.mts.map +1 -0
  1252. package/resources/evals/evals.d.ts +739 -0
  1253. package/resources/evals/evals.d.ts.map +1 -0
  1254. package/resources/evals/evals.js +57 -0
  1255. package/resources/evals/evals.js.map +1 -0
  1256. package/resources/evals/evals.mjs +52 -0
  1257. package/resources/evals/evals.mjs.map +1 -0
  1258. package/resources/evals/index.d.mts +3 -0
  1259. package/resources/evals/index.d.mts.map +1 -0
  1260. package/resources/evals/index.d.ts +3 -0
  1261. package/resources/evals/index.d.ts.map +1 -0
  1262. package/resources/evals/index.js +9 -0
  1263. package/resources/evals/index.js.map +1 -0
  1264. package/resources/evals/index.mjs +4 -0
  1265. package/resources/evals/index.mjs.map +1 -0
  1266. package/resources/evals/runs/index.d.mts +3 -0
  1267. package/resources/evals/runs/index.d.mts.map +1 -0
  1268. package/resources/evals/runs/index.d.ts +3 -0
  1269. package/resources/evals/runs/index.d.ts.map +1 -0
  1270. package/resources/evals/runs/index.js +9 -0
  1271. package/resources/evals/runs/index.js.map +1 -0
  1272. package/resources/evals/runs/index.mjs +4 -0
  1273. package/resources/evals/runs/index.mjs.map +1 -0
  1274. package/resources/evals/runs/output-items.d.mts +385 -0
  1275. package/resources/evals/runs/output-items.d.mts.map +1 -0
  1276. package/resources/evals/runs/output-items.d.ts +385 -0
  1277. package/resources/evals/runs/output-items.d.ts.map +1 -0
  1278. package/resources/evals/runs/output-items.js +28 -0
  1279. package/resources/evals/runs/output-items.js.map +1 -0
  1280. package/resources/evals/runs/output-items.mjs +24 -0
  1281. package/resources/evals/runs/output-items.mjs.map +1 -0
  1282. package/resources/evals/runs/runs.d.mts +2388 -0
  1283. package/resources/evals/runs/runs.d.mts.map +1 -0
  1284. package/resources/evals/runs/runs.d.ts +2388 -0
  1285. package/resources/evals/runs/runs.d.ts.map +1 -0
  1286. package/resources/evals/runs/runs.js +60 -0
  1287. package/resources/evals/runs/runs.js.map +1 -0
  1288. package/resources/evals/runs/runs.mjs +55 -0
  1289. package/resources/evals/runs/runs.mjs.map +1 -0
  1290. package/resources/evals/runs.d.mts +2 -0
  1291. package/resources/evals/runs.d.mts.map +1 -0
  1292. package/resources/evals/runs.d.ts +2 -0
  1293. package/resources/evals/runs.d.ts.map +1 -0
  1294. package/resources/evals/runs.js +6 -0
  1295. package/resources/evals/runs.js.map +1 -0
  1296. package/resources/evals/runs.mjs +3 -0
  1297. package/resources/evals/runs.mjs.map +1 -0
  1298. package/resources/evals.d.mts +2 -0
  1299. package/resources/evals.d.mts.map +1 -0
  1300. package/resources/evals.d.ts +2 -0
  1301. package/resources/evals.d.ts.map +1 -0
  1302. package/resources/evals.js +6 -0
  1303. package/resources/evals.js.map +1 -0
  1304. package/resources/evals.mjs +3 -0
  1305. package/resources/evals.mjs.map +1 -0
  1306. package/resources/files.d.mts +174 -0
  1307. package/resources/files.d.mts.map +1 -0
  1308. package/resources/files.d.ts +174 -0
  1309. package/resources/files.d.ts.map +1 -0
  1310. package/resources/files.js +89 -0
  1311. package/resources/files.js.map +1 -0
  1312. package/resources/files.mjs +85 -0
  1313. package/resources/files.mjs.map +1 -0
  1314. package/resources/fine-tuning/alpha/alpha.d.mts +10 -0
  1315. package/resources/fine-tuning/alpha/alpha.d.mts.map +1 -0
  1316. package/resources/fine-tuning/alpha/alpha.d.ts +10 -0
  1317. package/resources/fine-tuning/alpha/alpha.d.ts.map +1 -0
  1318. package/resources/fine-tuning/alpha/alpha.js +17 -0
  1319. package/resources/fine-tuning/alpha/alpha.js.map +1 -0
  1320. package/resources/fine-tuning/alpha/alpha.mjs +12 -0
  1321. package/resources/fine-tuning/alpha/alpha.mjs.map +1 -0
  1322. package/resources/fine-tuning/alpha/graders.d.mts +122 -0
  1323. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -0
  1324. package/resources/fine-tuning/alpha/graders.d.ts +122 -0
  1325. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -0
  1326. package/resources/fine-tuning/alpha/graders.js +52 -0
  1327. package/resources/fine-tuning/alpha/graders.js.map +1 -0
  1328. package/resources/fine-tuning/alpha/graders.mjs +48 -0
  1329. package/resources/fine-tuning/alpha/graders.mjs.map +1 -0
  1330. package/resources/fine-tuning/alpha/index.d.mts +3 -0
  1331. package/resources/fine-tuning/alpha/index.d.mts.map +1 -0
  1332. package/resources/fine-tuning/alpha/index.d.ts +3 -0
  1333. package/resources/fine-tuning/alpha/index.d.ts.map +1 -0
  1334. package/resources/fine-tuning/alpha/index.js +9 -0
  1335. package/resources/fine-tuning/alpha/index.js.map +1 -0
  1336. package/resources/fine-tuning/alpha/index.mjs +4 -0
  1337. package/resources/fine-tuning/alpha/index.mjs.map +1 -0
  1338. package/resources/fine-tuning/alpha.d.mts +2 -0
  1339. package/resources/fine-tuning/alpha.d.mts.map +1 -0
  1340. package/resources/fine-tuning/alpha.d.ts +2 -0
  1341. package/resources/fine-tuning/alpha.d.ts.map +1 -0
  1342. package/resources/fine-tuning/alpha.js +6 -0
  1343. package/resources/fine-tuning/alpha.js.map +1 -0
  1344. package/resources/fine-tuning/alpha.mjs +3 -0
  1345. package/resources/fine-tuning/alpha.mjs.map +1 -0
  1346. package/resources/fine-tuning/checkpoints/checkpoints.d.mts +10 -0
  1347. package/resources/fine-tuning/checkpoints/checkpoints.d.mts.map +1 -0
  1348. package/resources/fine-tuning/checkpoints/checkpoints.d.ts +10 -0
  1349. package/resources/fine-tuning/checkpoints/checkpoints.d.ts.map +1 -0
  1350. package/resources/fine-tuning/checkpoints/checkpoints.js +17 -0
  1351. package/resources/fine-tuning/checkpoints/checkpoints.js.map +1 -0
  1352. package/resources/fine-tuning/checkpoints/checkpoints.mjs +12 -0
  1353. package/resources/fine-tuning/checkpoints/checkpoints.mjs.map +1 -0
  1354. package/resources/fine-tuning/checkpoints/index.d.mts +3 -0
  1355. package/resources/fine-tuning/checkpoints/index.d.mts.map +1 -0
  1356. package/resources/fine-tuning/checkpoints/index.d.ts +3 -0
  1357. package/resources/fine-tuning/checkpoints/index.d.ts.map +1 -0
  1358. package/resources/fine-tuning/checkpoints/index.js +9 -0
  1359. package/resources/fine-tuning/checkpoints/index.js.map +1 -0
  1360. package/resources/fine-tuning/checkpoints/index.mjs +4 -0
  1361. package/resources/fine-tuning/checkpoints/index.mjs.map +1 -0
  1362. package/resources/fine-tuning/checkpoints/permissions.d.mts +207 -0
  1363. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -0
  1364. package/resources/fine-tuning/checkpoints/permissions.d.ts +207 -0
  1365. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -0
  1366. package/resources/fine-tuning/checkpoints/permissions.js +89 -0
  1367. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -0
  1368. package/resources/fine-tuning/checkpoints/permissions.mjs +85 -0
  1369. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -0
  1370. package/resources/fine-tuning/checkpoints.d.mts +2 -0
  1371. package/resources/fine-tuning/checkpoints.d.mts.map +1 -0
  1372. package/resources/fine-tuning/checkpoints.d.ts +2 -0
  1373. package/resources/fine-tuning/checkpoints.d.ts.map +1 -0
  1374. package/resources/fine-tuning/checkpoints.js +6 -0
  1375. package/resources/fine-tuning/checkpoints.js.map +1 -0
  1376. package/resources/fine-tuning/checkpoints.mjs +3 -0
  1377. package/resources/fine-tuning/checkpoints.mjs.map +1 -0
  1378. package/resources/fine-tuning/fine-tuning.d.mts +22 -0
  1379. package/resources/fine-tuning/fine-tuning.d.mts.map +1 -0
  1380. package/resources/fine-tuning/fine-tuning.d.ts +22 -0
  1381. package/resources/fine-tuning/fine-tuning.d.ts.map +1 -0
  1382. package/resources/fine-tuning/fine-tuning.js +29 -0
  1383. package/resources/fine-tuning/fine-tuning.js.map +1 -0
  1384. package/resources/fine-tuning/fine-tuning.mjs +24 -0
  1385. package/resources/fine-tuning/fine-tuning.mjs.map +1 -0
  1386. package/resources/fine-tuning/index.d.mts +6 -0
  1387. package/resources/fine-tuning/index.d.mts.map +1 -0
  1388. package/resources/fine-tuning/index.d.ts +6 -0
  1389. package/resources/fine-tuning/index.d.ts.map +1 -0
  1390. package/resources/fine-tuning/index.js +15 -0
  1391. package/resources/fine-tuning/index.js.map +1 -0
  1392. package/resources/fine-tuning/index.mjs +7 -0
  1393. package/resources/fine-tuning/index.mjs.map +1 -0
  1394. package/resources/fine-tuning/jobs/checkpoints.d.mts +77 -0
  1395. package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -0
  1396. package/resources/fine-tuning/jobs/checkpoints.d.ts +77 -0
  1397. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -0
  1398. package/resources/fine-tuning/jobs/checkpoints.js +30 -0
  1399. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -0
  1400. package/resources/fine-tuning/jobs/checkpoints.mjs +26 -0
  1401. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -0
  1402. package/resources/fine-tuning/jobs/index.d.mts +3 -0
  1403. package/resources/fine-tuning/jobs/index.d.mts.map +1 -0
  1404. package/resources/fine-tuning/jobs/index.d.ts +3 -0
  1405. package/resources/fine-tuning/jobs/index.d.ts.map +1 -0
  1406. package/resources/fine-tuning/jobs/index.js +9 -0
  1407. package/resources/fine-tuning/jobs/index.js.map +1 -0
  1408. package/resources/fine-tuning/jobs/index.mjs +4 -0
  1409. package/resources/fine-tuning/jobs/index.mjs.map +1 -0
  1410. package/resources/fine-tuning/jobs/jobs.d.mts +531 -0
  1411. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -0
  1412. package/resources/fine-tuning/jobs/jobs.d.ts +531 -0
  1413. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -0
  1414. package/resources/fine-tuning/jobs/jobs.js +126 -0
  1415. package/resources/fine-tuning/jobs/jobs.js.map +1 -0
  1416. package/resources/fine-tuning/jobs/jobs.mjs +121 -0
  1417. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -0
  1418. package/resources/fine-tuning/jobs.d.mts +2 -0
  1419. package/resources/fine-tuning/jobs.d.mts.map +1 -0
  1420. package/resources/fine-tuning/jobs.d.ts +2 -0
  1421. package/resources/fine-tuning/jobs.d.ts.map +1 -0
  1422. package/resources/fine-tuning/jobs.js +6 -0
  1423. package/resources/fine-tuning/jobs.js.map +1 -0
  1424. package/resources/fine-tuning/jobs.mjs +3 -0
  1425. package/resources/fine-tuning/jobs.mjs.map +1 -0
  1426. package/resources/fine-tuning/methods.d.mts +120 -0
  1427. package/resources/fine-tuning/methods.d.mts.map +1 -0
  1428. package/resources/fine-tuning/methods.d.ts +120 -0
  1429. package/resources/fine-tuning/methods.d.ts.map +1 -0
  1430. package/resources/fine-tuning/methods.js +9 -0
  1431. package/resources/fine-tuning/methods.js.map +1 -0
  1432. package/resources/fine-tuning/methods.mjs +5 -0
  1433. package/resources/fine-tuning/methods.mjs.map +1 -0
  1434. package/resources/fine-tuning.d.mts +2 -0
  1435. package/resources/fine-tuning.d.mts.map +1 -0
  1436. package/resources/fine-tuning.d.ts +2 -0
  1437. package/resources/fine-tuning.d.ts.map +1 -0
  1438. package/resources/fine-tuning.js +6 -0
  1439. package/resources/fine-tuning.js.map +1 -0
  1440. package/resources/fine-tuning.mjs +3 -0
  1441. package/resources/fine-tuning.mjs.map +1 -0
  1442. package/resources/graders/grader-models.d.mts +354 -0
  1443. package/resources/graders/grader-models.d.mts.map +1 -0
  1444. package/resources/graders/grader-models.d.ts +354 -0
  1445. package/resources/graders/grader-models.d.ts.map +1 -0
  1446. package/resources/graders/grader-models.js +9 -0
  1447. package/resources/graders/grader-models.js.map +1 -0
  1448. package/resources/graders/grader-models.mjs +5 -0
  1449. package/resources/graders/grader-models.mjs.map +1 -0
  1450. package/resources/graders/graders.d.mts +10 -0
  1451. package/resources/graders/graders.d.mts.map +1 -0
  1452. package/resources/graders/graders.d.ts +10 -0
  1453. package/resources/graders/graders.d.ts.map +1 -0
  1454. package/resources/graders/graders.js +17 -0
  1455. package/resources/graders/graders.js.map +1 -0
  1456. package/resources/graders/graders.mjs +12 -0
  1457. package/resources/graders/graders.mjs.map +1 -0
  1458. package/resources/graders/index.d.mts +3 -0
  1459. package/resources/graders/index.d.mts.map +1 -0
  1460. package/resources/graders/index.d.ts +3 -0
  1461. package/resources/graders/index.d.ts.map +1 -0
  1462. package/resources/graders/index.js +9 -0
  1463. package/resources/graders/index.js.map +1 -0
  1464. package/resources/graders/index.mjs +4 -0
  1465. package/resources/graders/index.mjs.map +1 -0
  1466. package/resources/graders.d.mts +2 -0
  1467. package/resources/graders.d.mts.map +1 -0
  1468. package/resources/graders.d.ts +2 -0
  1469. package/resources/graders.d.ts.map +1 -0
  1470. package/resources/graders.js +6 -0
  1471. package/resources/graders.js.map +1 -0
  1472. package/resources/graders.mjs +3 -0
  1473. package/resources/graders.mjs.map +1 -0
  1474. package/resources/images.d.mts +679 -0
  1475. package/resources/images.d.mts.map +1 -0
  1476. package/resources/images.d.ts +679 -0
  1477. package/resources/images.d.ts.map +1 -0
  1478. package/resources/images.js +32 -0
  1479. package/resources/images.js.map +1 -0
  1480. package/resources/images.mjs +28 -0
  1481. package/resources/images.mjs.map +1 -0
  1482. package/resources/index.d.mts +24 -0
  1483. package/resources/index.d.mts.map +1 -0
  1484. package/resources/index.d.ts +24 -0
  1485. package/resources/index.d.ts.map +1 -0
  1486. package/resources/index.js +50 -0
  1487. package/resources/index.js.map +1 -0
  1488. package/resources/index.mjs +25 -0
  1489. package/resources/index.mjs.map +1 -0
  1490. package/resources/models.d.mts +55 -0
  1491. package/resources/models.d.mts.map +1 -0
  1492. package/resources/models.d.ts +55 -0
  1493. package/resources/models.d.ts.map +1 -0
  1494. package/resources/models.js +35 -0
  1495. package/resources/models.js.map +1 -0
  1496. package/resources/models.mjs +31 -0
  1497. package/resources/models.mjs.map +1 -0
  1498. package/resources/moderations.d.mts +298 -0
  1499. package/resources/moderations.d.mts.map +1 -0
  1500. package/resources/moderations.d.ts +298 -0
  1501. package/resources/moderations.d.ts.map +1 -0
  1502. package/resources/moderations.js +19 -0
  1503. package/resources/moderations.js.map +1 -0
  1504. package/resources/moderations.mjs +15 -0
  1505. package/resources/moderations.mjs.map +1 -0
  1506. package/resources/realtime/calls.d.mts +158 -0
  1507. package/resources/realtime/calls.d.mts.map +1 -0
  1508. package/resources/realtime/calls.d.ts +158 -0
  1509. package/resources/realtime/calls.d.ts.map +1 -0
  1510. package/resources/realtime/calls.js +75 -0
  1511. package/resources/realtime/calls.js.map +1 -0
  1512. package/resources/realtime/calls.mjs +71 -0
  1513. package/resources/realtime/calls.mjs.map +1 -0
  1514. package/resources/realtime/client-secrets.d.mts +642 -0
  1515. package/resources/realtime/client-secrets.d.mts.map +1 -0
  1516. package/resources/realtime/client-secrets.d.ts +642 -0
  1517. package/resources/realtime/client-secrets.d.ts.map +1 -0
  1518. package/resources/realtime/client-secrets.js +35 -0
  1519. package/resources/realtime/client-secrets.js.map +1 -0
  1520. package/resources/realtime/client-secrets.mjs +31 -0
  1521. package/resources/realtime/client-secrets.mjs.map +1 -0
  1522. package/resources/realtime/index.d.mts +4 -0
  1523. package/resources/realtime/index.d.mts.map +1 -0
  1524. package/resources/realtime/index.d.ts +4 -0
  1525. package/resources/realtime/index.d.ts.map +1 -0
  1526. package/resources/realtime/index.js +11 -0
  1527. package/resources/realtime/index.js.map +1 -0
  1528. package/resources/realtime/index.mjs +5 -0
  1529. package/resources/realtime/index.mjs.map +1 -0
  1530. package/resources/realtime/realtime.d.mts +3975 -0
  1531. package/resources/realtime/realtime.d.mts.map +1 -0
  1532. package/resources/realtime/realtime.d.ts +3975 -0
  1533. package/resources/realtime/realtime.d.ts.map +1 -0
  1534. package/resources/realtime/realtime.js +21 -0
  1535. package/resources/realtime/realtime.js.map +1 -0
  1536. package/resources/realtime/realtime.mjs +16 -0
  1537. package/resources/realtime/realtime.mjs.map +1 -0
  1538. package/resources/realtime.d.mts +2 -0
  1539. package/resources/realtime.d.mts.map +1 -0
  1540. package/resources/realtime.d.ts +2 -0
  1541. package/resources/realtime.d.ts.map +1 -0
  1542. package/resources/realtime.js +6 -0
  1543. package/resources/realtime.js.map +1 -0
  1544. package/resources/realtime.mjs +3 -0
  1545. package/resources/realtime.mjs.map +1 -0
  1546. package/resources/responses/index.d.mts +4 -0
  1547. package/resources/responses/index.d.mts.map +1 -0
  1548. package/resources/responses/index.d.ts +4 -0
  1549. package/resources/responses/index.d.ts.map +1 -0
  1550. package/resources/responses/index.js +11 -0
  1551. package/resources/responses/index.js.map +1 -0
  1552. package/resources/responses/index.mjs +5 -0
  1553. package/resources/responses/index.mjs.map +1 -0
  1554. package/resources/responses/input-items.d.mts +65 -0
  1555. package/resources/responses/input-items.d.mts.map +1 -0
  1556. package/resources/responses/input-items.d.ts +65 -0
  1557. package/resources/responses/input-items.d.ts.map +1 -0
  1558. package/resources/responses/input-items.js +27 -0
  1559. package/resources/responses/input-items.js.map +1 -0
  1560. package/resources/responses/input-items.mjs +23 -0
  1561. package/resources/responses/input-items.mjs.map +1 -0
  1562. package/resources/responses/input-tokens.d.mts +129 -0
  1563. package/resources/responses/input-tokens.d.mts.map +1 -0
  1564. package/resources/responses/input-tokens.d.ts +129 -0
  1565. package/resources/responses/input-tokens.d.ts.map +1 -0
  1566. package/resources/responses/input-tokens.js +23 -0
  1567. package/resources/responses/input-tokens.js.map +1 -0
  1568. package/resources/responses/input-tokens.mjs +19 -0
  1569. package/resources/responses/input-tokens.mjs.map +1 -0
  1570. package/resources/responses/internal-base.d.mts +40 -0
  1571. package/resources/responses/internal-base.d.mts.map +1 -0
  1572. package/resources/responses/internal-base.d.ts +40 -0
  1573. package/resources/responses/internal-base.d.ts.map +1 -0
  1574. package/resources/responses/internal-base.js +52 -0
  1575. package/resources/responses/internal-base.js.map +1 -0
  1576. package/resources/responses/internal-base.mjs +46 -0
  1577. package/resources/responses/internal-base.mjs.map +1 -0
  1578. package/resources/responses/responses.d.mts +6249 -0
  1579. package/resources/responses/responses.d.mts.map +1 -0
  1580. package/resources/responses/responses.d.ts +6249 -0
  1581. package/resources/responses/responses.d.ts.map +1 -0
  1582. package/resources/responses/responses.js +105 -0
  1583. package/resources/responses/responses.js.map +1 -0
  1584. package/resources/responses/responses.mjs +100 -0
  1585. package/resources/responses/responses.mjs.map +1 -0
  1586. package/resources/responses/ws.d.mts +17 -0
  1587. package/resources/responses/ws.d.mts.map +1 -0
  1588. package/resources/responses/ws.d.ts +17 -0
  1589. package/resources/responses/ws.d.ts.map +1 -0
  1590. package/resources/responses/ws.js +67 -0
  1591. package/resources/responses/ws.js.map +1 -0
  1592. package/resources/responses/ws.mjs +62 -0
  1593. package/resources/responses/ws.mjs.map +1 -0
  1594. package/resources/responses.d.mts +2 -0
  1595. package/resources/responses.d.mts.map +1 -0
  1596. package/resources/responses.d.ts +2 -0
  1597. package/resources/responses.d.ts.map +1 -0
  1598. package/resources/responses.js +6 -0
  1599. package/resources/responses.js.map +1 -0
  1600. package/resources/responses.mjs +3 -0
  1601. package/resources/responses.mjs.map +1 -0
  1602. package/resources/shared.d.mts +287 -0
  1603. package/resources/shared.d.mts.map +1 -0
  1604. package/resources/shared.d.ts +287 -0
  1605. package/resources/shared.d.ts.map +1 -0
  1606. package/resources/shared.js +4 -0
  1607. package/resources/shared.js.map +1 -0
  1608. package/resources/shared.mjs +3 -0
  1609. package/resources/shared.mjs.map +1 -0
  1610. package/resources/skills/content.d.mts +10 -0
  1611. package/resources/skills/content.d.mts.map +1 -0
  1612. package/resources/skills/content.d.ts +10 -0
  1613. package/resources/skills/content.d.ts.map +1 -0
  1614. package/resources/skills/content.js +21 -0
  1615. package/resources/skills/content.js.map +1 -0
  1616. package/resources/skills/content.mjs +17 -0
  1617. package/resources/skills/content.mjs.map +1 -0
  1618. package/resources/skills/index.d.mts +4 -0
  1619. package/resources/skills/index.d.mts.map +1 -0
  1620. package/resources/skills/index.d.ts +4 -0
  1621. package/resources/skills/index.d.ts.map +1 -0
  1622. package/resources/skills/index.js +11 -0
  1623. package/resources/skills/index.js.map +1 -0
  1624. package/resources/skills/index.mjs +5 -0
  1625. package/resources/skills/index.mjs.map +1 -0
  1626. package/resources/skills/skills.d.mts +116 -0
  1627. package/resources/skills/skills.d.mts.map +1 -0
  1628. package/resources/skills/skills.d.ts +116 -0
  1629. package/resources/skills/skills.d.ts.map +1 -0
  1630. package/resources/skills/skills.js +54 -0
  1631. package/resources/skills/skills.js.map +1 -0
  1632. package/resources/skills/skills.mjs +49 -0
  1633. package/resources/skills/skills.mjs.map +1 -0
  1634. package/resources/skills/versions/content.d.mts +19 -0
  1635. package/resources/skills/versions/content.d.mts.map +1 -0
  1636. package/resources/skills/versions/content.d.ts +19 -0
  1637. package/resources/skills/versions/content.d.ts.map +1 -0
  1638. package/resources/skills/versions/content.js +22 -0
  1639. package/resources/skills/versions/content.js.map +1 -0
  1640. package/resources/skills/versions/content.mjs +18 -0
  1641. package/resources/skills/versions/content.mjs.map +1 -0
  1642. package/resources/skills/versions/index.d.mts +3 -0
  1643. package/resources/skills/versions/index.d.mts.map +1 -0
  1644. package/resources/skills/versions/index.d.ts +3 -0
  1645. package/resources/skills/versions/index.d.ts.map +1 -0
  1646. package/resources/skills/versions/index.js +9 -0
  1647. package/resources/skills/versions/index.js.map +1 -0
  1648. package/resources/skills/versions/index.mjs +4 -0
  1649. package/resources/skills/versions/index.mjs.map +1 -0
  1650. package/resources/skills/versions/versions.d.mts +121 -0
  1651. package/resources/skills/versions/versions.d.mts.map +1 -0
  1652. package/resources/skills/versions/versions.d.ts +121 -0
  1653. package/resources/skills/versions/versions.d.ts.map +1 -0
  1654. package/resources/skills/versions/versions.js +49 -0
  1655. package/resources/skills/versions/versions.js.map +1 -0
  1656. package/resources/skills/versions/versions.mjs +44 -0
  1657. package/resources/skills/versions/versions.mjs.map +1 -0
  1658. package/resources/skills/versions.d.mts +2 -0
  1659. package/resources/skills/versions.d.mts.map +1 -0
  1660. package/resources/skills/versions.d.ts +2 -0
  1661. package/resources/skills/versions.d.ts.map +1 -0
  1662. package/resources/skills/versions.js +6 -0
  1663. package/resources/skills/versions.js.map +1 -0
  1664. package/resources/skills/versions.mjs +3 -0
  1665. package/resources/skills/versions.mjs.map +1 -0
  1666. package/resources/skills.d.mts +2 -0
  1667. package/resources/skills.d.mts.map +1 -0
  1668. package/resources/skills.d.ts +2 -0
  1669. package/resources/skills.d.ts.map +1 -0
  1670. package/resources/skills.js +6 -0
  1671. package/resources/skills.js.map +1 -0
  1672. package/resources/skills.mjs +3 -0
  1673. package/resources/skills.mjs.map +1 -0
  1674. package/resources/uploads/index.d.mts +3 -0
  1675. package/resources/uploads/index.d.mts.map +1 -0
  1676. package/resources/uploads/index.d.ts +3 -0
  1677. package/resources/uploads/index.d.ts.map +1 -0
  1678. package/resources/uploads/index.js +9 -0
  1679. package/resources/uploads/index.js.map +1 -0
  1680. package/resources/uploads/index.mjs +4 -0
  1681. package/resources/uploads/index.mjs.map +1 -0
  1682. package/resources/uploads/parts.d.mts +54 -0
  1683. package/resources/uploads/parts.d.mts.map +1 -0
  1684. package/resources/uploads/parts.d.ts +54 -0
  1685. package/resources/uploads/parts.d.ts.map +1 -0
  1686. package/resources/uploads/parts.js +30 -0
  1687. package/resources/uploads/parts.js.map +1 -0
  1688. package/resources/uploads/parts.mjs +26 -0
  1689. package/resources/uploads/parts.mjs.map +1 -0
  1690. package/resources/uploads/uploads.d.mts +166 -0
  1691. package/resources/uploads/uploads.d.mts.map +1 -0
  1692. package/resources/uploads/uploads.d.ts +166 -0
  1693. package/resources/uploads/uploads.d.ts.map +1 -0
  1694. package/resources/uploads/uploads.js +75 -0
  1695. package/resources/uploads/uploads.js.map +1 -0
  1696. package/resources/uploads/uploads.mjs +70 -0
  1697. package/resources/uploads/uploads.mjs.map +1 -0
  1698. package/resources/uploads.d.mts +2 -0
  1699. package/resources/uploads.d.mts.map +1 -0
  1700. package/resources/uploads.d.ts +2 -0
  1701. package/resources/uploads.d.ts.map +1 -0
  1702. package/resources/uploads.js +6 -0
  1703. package/resources/uploads.js.map +1 -0
  1704. package/resources/uploads.mjs +3 -0
  1705. package/resources/uploads.mjs.map +1 -0
  1706. package/resources/vector-stores/file-batches.d.mts +207 -0
  1707. package/resources/vector-stores/file-batches.d.mts.map +1 -0
  1708. package/resources/vector-stores/file-batches.d.ts +207 -0
  1709. package/resources/vector-stores/file-batches.d.ts.map +1 -0
  1710. package/resources/vector-stores/file-batches.js +133 -0
  1711. package/resources/vector-stores/file-batches.js.map +1 -0
  1712. package/resources/vector-stores/file-batches.mjs +129 -0
  1713. package/resources/vector-stores/file-batches.mjs.map +1 -0
  1714. package/resources/vector-stores/files.d.mts +231 -0
  1715. package/resources/vector-stores/files.d.mts.map +1 -0
  1716. package/resources/vector-stores/files.d.ts +231 -0
  1717. package/resources/vector-stores/files.d.ts.map +1 -0
  1718. package/resources/vector-stores/files.js +142 -0
  1719. package/resources/vector-stores/files.js.map +1 -0
  1720. package/resources/vector-stores/files.mjs +138 -0
  1721. package/resources/vector-stores/files.mjs.map +1 -0
  1722. package/resources/vector-stores/index.d.mts +4 -0
  1723. package/resources/vector-stores/index.d.mts.map +1 -0
  1724. package/resources/vector-stores/index.d.ts +4 -0
  1725. package/resources/vector-stores/index.d.ts.map +1 -0
  1726. package/resources/vector-stores/index.js +11 -0
  1727. package/resources/vector-stores/index.js.map +1 -0
  1728. package/resources/vector-stores/index.mjs +5 -0
  1729. package/resources/vector-stores/index.mjs.map +1 -0
  1730. package/resources/vector-stores/vector-stores.d.mts +378 -0
  1731. package/resources/vector-stores/vector-stores.d.mts.map +1 -0
  1732. package/resources/vector-stores/vector-stores.d.ts +378 -0
  1733. package/resources/vector-stores/vector-stores.d.ts.map +1 -0
  1734. package/resources/vector-stores/vector-stores.js +84 -0
  1735. package/resources/vector-stores/vector-stores.js.map +1 -0
  1736. package/resources/vector-stores/vector-stores.mjs +79 -0
  1737. package/resources/vector-stores/vector-stores.mjs.map +1 -0
  1738. package/resources/vector-stores.d.mts +2 -0
  1739. package/resources/vector-stores.d.mts.map +1 -0
  1740. package/resources/vector-stores.d.ts +2 -0
  1741. package/resources/vector-stores.d.ts.map +1 -0
  1742. package/resources/vector-stores.js +6 -0
  1743. package/resources/vector-stores.js.map +1 -0
  1744. package/resources/vector-stores.mjs +3 -0
  1745. package/resources/vector-stores.mjs.map +1 -0
  1746. package/resources/videos.d.mts +281 -0
  1747. package/resources/videos.d.mts.map +1 -0
  1748. package/resources/videos.d.ts +281 -0
  1749. package/resources/videos.d.ts.map +1 -0
  1750. package/resources/videos.js +81 -0
  1751. package/resources/videos.js.map +1 -0
  1752. package/resources/videos.mjs +77 -0
  1753. package/resources/videos.mjs.map +1 -0
  1754. package/resources/webhooks/index.d.mts +2 -0
  1755. package/resources/webhooks/index.d.mts.map +1 -0
  1756. package/resources/webhooks/index.d.ts +2 -0
  1757. package/resources/webhooks/index.d.ts.map +1 -0
  1758. package/resources/webhooks/index.js +6 -0
  1759. package/resources/webhooks/index.js.map +1 -0
  1760. package/resources/webhooks/index.mjs +3 -0
  1761. package/resources/webhooks/index.mjs.map +1 -0
  1762. package/resources/webhooks/webhooks.d.mts +587 -0
  1763. package/resources/webhooks/webhooks.d.mts.map +1 -0
  1764. package/resources/webhooks/webhooks.d.ts +587 -0
  1765. package/resources/webhooks/webhooks.d.ts.map +1 -0
  1766. package/resources/webhooks/webhooks.js +101 -0
  1767. package/resources/webhooks/webhooks.js.map +1 -0
  1768. package/resources/webhooks/webhooks.mjs +97 -0
  1769. package/resources/webhooks/webhooks.mjs.map +1 -0
  1770. package/resources/webhooks.d.mts +2 -0
  1771. package/resources/webhooks.d.mts.map +1 -0
  1772. package/resources/webhooks.d.ts +2 -0
  1773. package/resources/webhooks.d.ts.map +1 -0
  1774. package/resources/webhooks.js +6 -0
  1775. package/resources/webhooks.js.map +1 -0
  1776. package/resources/webhooks.mjs +3 -0
  1777. package/resources/webhooks.mjs.map +1 -0
  1778. package/resources.d.mts +2 -0
  1779. package/resources.d.mts.map +1 -0
  1780. package/resources.d.ts +2 -0
  1781. package/resources.d.ts.map +1 -0
  1782. package/resources.js +5 -0
  1783. package/resources.js.map +1 -0
  1784. package/resources.mjs +2 -0
  1785. package/resources.mjs.map +1 -0
  1786. package/src/_vendor/partial-json-parser/README.md +3 -0
  1787. package/src/_vendor/partial-json-parser/parser.ts +247 -0
  1788. package/src/_vendor/zod-to-json-schema/LICENSE +15 -0
  1789. package/src/_vendor/zod-to-json-schema/Options.ts +80 -0
  1790. package/src/_vendor/zod-to-json-schema/README.md +3 -0
  1791. package/src/_vendor/zod-to-json-schema/Refs.ts +47 -0
  1792. package/src/_vendor/zod-to-json-schema/errorMessages.ts +31 -0
  1793. package/src/_vendor/zod-to-json-schema/index.ts +37 -0
  1794. package/src/_vendor/zod-to-json-schema/parseDef.ts +258 -0
  1795. package/src/_vendor/zod-to-json-schema/parsers/any.ts +5 -0
  1796. package/src/_vendor/zod-to-json-schema/parsers/array.ts +36 -0
  1797. package/src/_vendor/zod-to-json-schema/parsers/bigint.ts +60 -0
  1798. package/src/_vendor/zod-to-json-schema/parsers/boolean.ts +9 -0
  1799. package/src/_vendor/zod-to-json-schema/parsers/branded.ts +7 -0
  1800. package/src/_vendor/zod-to-json-schema/parsers/catch.ts +7 -0
  1801. package/src/_vendor/zod-to-json-schema/parsers/date.ts +83 -0
  1802. package/src/_vendor/zod-to-json-schema/parsers/default.ts +10 -0
  1803. package/src/_vendor/zod-to-json-schema/parsers/effects.ts +11 -0
  1804. package/src/_vendor/zod-to-json-schema/parsers/enum.ts +13 -0
  1805. package/src/_vendor/zod-to-json-schema/parsers/intersection.ts +64 -0
  1806. package/src/_vendor/zod-to-json-schema/parsers/literal.ts +37 -0
  1807. package/src/_vendor/zod-to-json-schema/parsers/map.ts +42 -0
  1808. package/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +27 -0
  1809. package/src/_vendor/zod-to-json-schema/parsers/never.ts +9 -0
  1810. package/src/_vendor/zod-to-json-schema/parsers/null.ts +16 -0
  1811. package/src/_vendor/zod-to-json-schema/parsers/nullable.ts +49 -0
  1812. package/src/_vendor/zod-to-json-schema/parsers/number.ts +62 -0
  1813. package/src/_vendor/zod-to-json-schema/parsers/object.ts +76 -0
  1814. package/src/_vendor/zod-to-json-schema/parsers/optional.ts +28 -0
  1815. package/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +28 -0
  1816. package/src/_vendor/zod-to-json-schema/parsers/promise.ts +7 -0
  1817. package/src/_vendor/zod-to-json-schema/parsers/readonly.ts +7 -0
  1818. package/src/_vendor/zod-to-json-schema/parsers/record.ts +73 -0
  1819. package/src/_vendor/zod-to-json-schema/parsers/set.ts +36 -0
  1820. package/src/_vendor/zod-to-json-schema/parsers/string.ts +400 -0
  1821. package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +54 -0
  1822. package/src/_vendor/zod-to-json-schema/parsers/undefined.ts +9 -0
  1823. package/src/_vendor/zod-to-json-schema/parsers/union.ts +119 -0
  1824. package/src/_vendor/zod-to-json-schema/parsers/unknown.ts +5 -0
  1825. package/src/_vendor/zod-to-json-schema/util.ts +11 -0
  1826. package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +120 -0
  1827. package/src/api-promise.ts +2 -0
  1828. package/src/azure.ts +158 -0
  1829. package/src/beta/realtime/index.ts +1 -0
  1830. package/src/beta/realtime/internal-base.ts +93 -0
  1831. package/src/beta/realtime/websocket.ts +158 -0
  1832. package/src/beta/realtime/ws.ts +114 -0
  1833. package/src/client.ts +1372 -0
  1834. package/src/core/EventEmitter.ts +98 -0
  1835. package/src/core/README.md +3 -0
  1836. package/src/core/api-promise.ts +101 -0
  1837. package/src/core/error.ts +160 -0
  1838. package/src/core/pagination.ts +269 -0
  1839. package/src/core/resource.ts +11 -0
  1840. package/src/core/streaming.ts +349 -0
  1841. package/src/core/uploads.ts +2 -0
  1842. package/src/error.ts +2 -0
  1843. package/src/helpers/audio.ts +146 -0
  1844. package/src/helpers/zod.ts +180 -0
  1845. package/src/index.ts +26 -0
  1846. package/src/internal/README.md +3 -0
  1847. package/src/internal/builtin-types.ts +93 -0
  1848. package/src/internal/decoders/line.ts +135 -0
  1849. package/src/internal/detect-platform.ts +196 -0
  1850. package/src/internal/errors.ts +33 -0
  1851. package/src/internal/headers.ts +97 -0
  1852. package/src/internal/parse.ts +100 -0
  1853. package/src/internal/qs/LICENSE.md +13 -0
  1854. package/src/internal/qs/README.md +3 -0
  1855. package/src/internal/qs/formats.ts +10 -0
  1856. package/src/internal/qs/index.ts +13 -0
  1857. package/src/internal/qs/stringify.ts +385 -0
  1858. package/src/internal/qs/types.ts +71 -0
  1859. package/src/internal/qs/utils.ts +265 -0
  1860. package/src/internal/request-options.ts +95 -0
  1861. package/src/internal/shim-types.ts +26 -0
  1862. package/src/internal/shims.ts +107 -0
  1863. package/src/internal/stream-utils.ts +32 -0
  1864. package/src/internal/to-file.ts +154 -0
  1865. package/src/internal/types.ts +95 -0
  1866. package/src/internal/uploads.ts +187 -0
  1867. package/src/internal/utils/base64.ts +64 -0
  1868. package/src/internal/utils/bytes.ts +32 -0
  1869. package/src/internal/utils/env.ts +18 -0
  1870. package/src/internal/utils/log.ts +126 -0
  1871. package/src/internal/utils/path.ts +88 -0
  1872. package/src/internal/utils/query.ts +7 -0
  1873. package/src/internal/utils/sleep.ts +3 -0
  1874. package/src/internal/utils/uuid.ts +17 -0
  1875. package/src/internal/utils/values.ts +105 -0
  1876. package/src/internal/utils.ts +9 -0
  1877. package/src/lib/.keep +4 -0
  1878. package/src/lib/AbstractChatCompletionRunner.ts +404 -0
  1879. package/src/lib/AssistantStream.ts +778 -0
  1880. package/src/lib/ChatCompletionRunner.ts +54 -0
  1881. package/src/lib/ChatCompletionStream.ts +872 -0
  1882. package/src/lib/ChatCompletionStreamingRunner.ts +50 -0
  1883. package/src/lib/EventEmitter.ts +98 -0
  1884. package/src/lib/EventStream.ts +239 -0
  1885. package/src/lib/ResponsesParser.ts +265 -0
  1886. package/src/lib/RunnableFunction.ts +114 -0
  1887. package/src/lib/Util.ts +23 -0
  1888. package/src/lib/chatCompletionUtils.ts +21 -0
  1889. package/src/lib/jsonschema.ts +172 -0
  1890. package/src/lib/parser.ts +311 -0
  1891. package/src/lib/responses/EventTypes.ts +74 -0
  1892. package/src/lib/responses/ResponseStream.ts +368 -0
  1893. package/src/lib/transform.ts +193 -0
  1894. package/src/pagination.ts +2 -0
  1895. package/src/realtime/index.ts +1 -0
  1896. package/src/realtime/internal-base.ts +98 -0
  1897. package/src/realtime/websocket.ts +157 -0
  1898. package/src/realtime/ws.ts +113 -0
  1899. package/src/resource.ts +2 -0
  1900. package/src/resources/audio/audio.ts +91 -0
  1901. package/src/resources/audio/index.ts +29 -0
  1902. package/src/resources/audio/speech.ts +114 -0
  1903. package/src/resources/audio/transcriptions.ts +829 -0
  1904. package/src/resources/audio/translations.ts +121 -0
  1905. package/src/resources/audio.ts +3 -0
  1906. package/src/resources/batches.ts +372 -0
  1907. package/src/resources/beta/assistants.ts +1545 -0
  1908. package/src/resources/beta/beta.ts +199 -0
  1909. package/src/resources/beta/chatkit/chatkit.ts +112 -0
  1910. package/src/resources/beta/chatkit/index.ts +30 -0
  1911. package/src/resources/beta/chatkit/sessions.ts +81 -0
  1912. package/src/resources/beta/chatkit/threads.ts +1037 -0
  1913. package/src/resources/beta/chatkit.ts +3 -0
  1914. package/src/resources/beta/index.ts +39 -0
  1915. package/src/resources/beta/realtime/index.ts +9 -0
  1916. package/src/resources/beta/realtime/realtime.ts +2829 -0
  1917. package/src/resources/beta/realtime/sessions.ts +869 -0
  1918. package/src/resources/beta/realtime/transcription-sessions.ts +347 -0
  1919. package/src/resources/beta/realtime.ts +3 -0
  1920. package/src/resources/beta/threads/index.ts +77 -0
  1921. package/src/resources/beta/threads/messages.ts +794 -0
  1922. package/src/resources/beta/threads/runs/index.ts +48 -0
  1923. package/src/resources/beta/threads/runs/runs.ts +1084 -0
  1924. package/src/resources/beta/threads/runs/steps.ts +758 -0
  1925. package/src/resources/beta/threads/runs.ts +3 -0
  1926. package/src/resources/beta/threads/threads.ts +1402 -0
  1927. package/src/resources/beta/threads.ts +3 -0
  1928. package/src/resources/beta.ts +3 -0
  1929. package/src/resources/chat/chat.ts +110 -0
  1930. package/src/resources/chat/completions/completions.ts +2054 -0
  1931. package/src/resources/chat/completions/index.ts +50 -0
  1932. package/src/resources/chat/completions/messages.ts +53 -0
  1933. package/src/resources/chat/completions.ts +3 -0
  1934. package/src/resources/chat/index.ts +49 -0
  1935. package/src/resources/chat.ts +3 -0
  1936. package/src/resources/completions.ts +400 -0
  1937. package/src/resources/containers/containers.ts +395 -0
  1938. package/src/resources/containers/files/content.ts +29 -0
  1939. package/src/resources/containers/files/files.ts +228 -0
  1940. package/src/resources/containers/files/index.ts +14 -0
  1941. package/src/resources/containers/files.ts +3 -0
  1942. package/src/resources/containers/index.ts +22 -0
  1943. package/src/resources/containers.ts +3 -0
  1944. package/src/resources/conversations/api.md +37 -0
  1945. package/src/resources/conversations/conversations.ts +286 -0
  1946. package/src/resources/conversations/index.ts +13 -0
  1947. package/src/resources/conversations/items.ts +507 -0
  1948. package/src/resources/conversations.ts +3 -0
  1949. package/src/resources/embeddings.ts +180 -0
  1950. package/src/resources/evals/evals.ts +933 -0
  1951. package/src/resources/evals/index.ts +33 -0
  1952. package/src/resources/evals/runs/index.ts +27 -0
  1953. package/src/resources/evals/runs/output-items.ts +480 -0
  1954. package/src/resources/evals/runs/runs.ts +2872 -0
  1955. package/src/resources/evals/runs.ts +3 -0
  1956. package/src/resources/evals.ts +3 -0
  1957. package/src/resources/files.ts +260 -0
  1958. package/src/resources/fine-tuning/alpha/alpha.ts +27 -0
  1959. package/src/resources/fine-tuning/alpha/graders.ts +174 -0
  1960. package/src/resources/fine-tuning/alpha/index.ts +10 -0
  1961. package/src/resources/fine-tuning/alpha.ts +3 -0
  1962. package/src/resources/fine-tuning/checkpoints/checkpoints.ts +39 -0
  1963. package/src/resources/fine-tuning/checkpoints/index.ts +16 -0
  1964. package/src/resources/fine-tuning/checkpoints/permissions.ts +300 -0
  1965. package/src/resources/fine-tuning/checkpoints.ts +3 -0
  1966. package/src/resources/fine-tuning/fine-tuning.ts +73 -0
  1967. package/src/resources/fine-tuning/index.ts +27 -0
  1968. package/src/resources/fine-tuning/jobs/checkpoints.ts +110 -0
  1969. package/src/resources/fine-tuning/jobs/index.ts +21 -0
  1970. package/src/resources/fine-tuning/jobs/jobs.ts +657 -0
  1971. package/src/resources/fine-tuning/jobs.ts +3 -0
  1972. package/src/resources/fine-tuning/methods.ts +152 -0
  1973. package/src/resources/fine-tuning.ts +3 -0
  1974. package/src/resources/graders/grader-models.ts +450 -0
  1975. package/src/resources/graders/graders.ts +33 -0
  1976. package/src/resources/graders/index.ts +13 -0
  1977. package/src/resources/graders.ts +3 -0
  1978. package/src/resources/images.ts +851 -0
  1979. package/src/resources/index.ts +151 -0
  1980. package/src/resources/models.ts +76 -0
  1981. package/src/resources/moderations.ts +370 -0
  1982. package/src/resources/realtime/api.md +128 -0
  1983. package/src/resources/realtime/calls.ts +228 -0
  1984. package/src/resources/realtime/client-secrets.ts +768 -0
  1985. package/src/resources/realtime/index.ts +13 -0
  1986. package/src/resources/realtime/realtime.ts +4888 -0
  1987. package/src/resources/realtime.ts +3 -0
  1988. package/src/resources/responses/api.md +177 -0
  1989. package/src/resources/responses/index.ts +5 -0
  1990. package/src/resources/responses/input-items.ts +87 -0
  1991. package/src/resources/responses/input-tokens.ts +164 -0
  1992. package/src/resources/responses/internal-base.ts +93 -0
  1993. package/src/resources/responses/responses.ts +7954 -0
  1994. package/src/resources/responses/ws.ts +72 -0
  1995. package/src/resources/responses.ts +3 -0
  1996. package/src/resources/shared.ts +425 -0
  1997. package/src/resources/skills/content.ts +20 -0
  1998. package/src/resources/skills/index.ts +24 -0
  1999. package/src/resources/skills/skills.ts +191 -0
  2000. package/src/resources/skills/versions/content.ts +32 -0
  2001. package/src/resources/skills/versions/index.ts +14 -0
  2002. package/src/resources/skills/versions/versions.ts +196 -0
  2003. package/src/resources/skills/versions.ts +3 -0
  2004. package/src/resources/skills.ts +3 -0
  2005. package/src/resources/uploads/index.ts +4 -0
  2006. package/src/resources/uploads/parts.ts +69 -0
  2007. package/src/resources/uploads/uploads.ts +204 -0
  2008. package/src/resources/uploads.ts +3 -0
  2009. package/src/resources/vector-stores/file-batches.ts +369 -0
  2010. package/src/resources/vector-stores/files.ts +394 -0
  2011. package/src/resources/vector-stores/index.ts +43 -0
  2012. package/src/resources/vector-stores/vector-stores.ts +562 -0
  2013. package/src/resources/vector-stores.ts +3 -0
  2014. package/src/resources/videos.ts +414 -0
  2015. package/src/resources/webhooks/api.md +24 -0
  2016. package/src/resources/webhooks/index.ts +3 -0
  2017. package/src/resources/webhooks/webhooks.ts +833 -0
  2018. package/src/resources/webhooks.ts +3 -0
  2019. package/src/resources.ts +1 -0
  2020. package/src/streaming.ts +2 -0
  2021. package/src/tsconfig.json +11 -0
  2022. package/src/uploads.ts +2 -0
  2023. package/src/version.ts +1 -0
  2024. package/streaming.d.mts +2 -0
  2025. package/streaming.d.mts.map +1 -0
  2026. package/streaming.d.ts +2 -0
  2027. package/streaming.d.ts.map +1 -0
  2028. package/streaming.js +6 -0
  2029. package/streaming.js.map +1 -0
  2030. package/streaming.mjs +2 -0
  2031. package/streaming.mjs.map +1 -0
  2032. package/uploads.d.mts +2 -0
  2033. package/uploads.d.mts.map +1 -0
  2034. package/uploads.d.ts +2 -0
  2035. package/uploads.d.ts.map +1 -0
  2036. package/uploads.js +6 -0
  2037. package/uploads.js.map +1 -0
  2038. package/uploads.mjs +2 -0
  2039. package/uploads.mjs.map +1 -0
  2040. package/version.d.mts +2 -0
  2041. package/version.d.mts.map +1 -0
  2042. package/version.d.ts +2 -0
  2043. package/version.d.ts.map +1 -0
  2044. package/version.js +5 -0
  2045. package/version.js.map +1 -0
  2046. package/version.mjs +2 -0
  2047. package/version.mjs.map +1 -0
@@ -0,0 +1,3975 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as RealtimeAPI from "./realtime.mjs";
3
+ import * as Shared from "../shared.mjs";
4
+ import * as CallsAPI from "./calls.mjs";
5
+ import { CallAcceptParams, CallReferParams, CallRejectParams, Calls } from "./calls.mjs";
6
+ import * as ClientSecretsAPI from "./client-secrets.mjs";
7
+ import { ClientSecretCreateParams, ClientSecretCreateResponse, ClientSecrets, RealtimeSessionClientSecret, RealtimeSessionCreateResponse, RealtimeTranscriptionSessionCreateResponse, RealtimeTranscriptionSessionTurnDetection } from "./client-secrets.mjs";
8
+ import * as ResponsesAPI from "../responses/responses.mjs";
9
+ export declare class Realtime extends APIResource {
10
+ clientSecrets: ClientSecretsAPI.ClientSecrets;
11
+ calls: CallsAPI.Calls;
12
+ }
13
+ export interface AudioTranscription {
14
+ /**
15
+ * The language of the input audio. Supplying the input language in
16
+ * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`)
17
+ * format will improve accuracy and latency.
18
+ */
19
+ language?: string;
20
+ /**
21
+ * The model to use for transcription. Current options are `whisper-1`,
22
+ * `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`,
23
+ * `gpt-4o-transcribe`, and `gpt-4o-transcribe-diarize`. Use
24
+ * `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
25
+ */
26
+ model?: (string & {}) | 'whisper-1' | 'gpt-4o-mini-transcribe' | 'gpt-4o-mini-transcribe-2025-12-15' | 'gpt-4o-transcribe' | 'gpt-4o-transcribe-diarize';
27
+ /**
28
+ * An optional text to guide the model's style or continue a previous audio
29
+ * segment. For `whisper-1`, the
30
+ * [prompt is a list of keywords](https://platform.openai.com/docs/guides/speech-to-text#prompting).
31
+ * For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the
32
+ * prompt is a free text string, for example "expect words related to technology".
33
+ */
34
+ prompt?: string;
35
+ }
36
+ /**
37
+ * Returned when a conversation is created. Emitted right after session creation.
38
+ */
39
+ export interface ConversationCreatedEvent {
40
+ /**
41
+ * The conversation resource.
42
+ */
43
+ conversation: ConversationCreatedEvent.Conversation;
44
+ /**
45
+ * The unique ID of the server event.
46
+ */
47
+ event_id: string;
48
+ /**
49
+ * The event type, must be `conversation.created`.
50
+ */
51
+ type: 'conversation.created';
52
+ }
53
+ export declare namespace ConversationCreatedEvent {
54
+ /**
55
+ * The conversation resource.
56
+ */
57
+ interface Conversation {
58
+ /**
59
+ * The unique ID of the conversation.
60
+ */
61
+ id?: string;
62
+ /**
63
+ * The object type, must be `realtime.conversation`.
64
+ */
65
+ object?: 'realtime.conversation';
66
+ }
67
+ }
68
+ /**
69
+ * A single item within a Realtime conversation.
70
+ */
71
+ export type ConversationItem = RealtimeConversationItemSystemMessage | RealtimeConversationItemUserMessage | RealtimeConversationItemAssistantMessage | RealtimeConversationItemFunctionCall | RealtimeConversationItemFunctionCallOutput | RealtimeMcpApprovalResponse | RealtimeMcpListTools | RealtimeMcpToolCall | RealtimeMcpApprovalRequest;
72
+ /**
73
+ * Sent by the server when an Item is added to the default Conversation. This can
74
+ * happen in several cases:
75
+ *
76
+ * - When the client sends a `conversation.item.create` event.
77
+ * - When the input audio buffer is committed. In this case the item will be a user
78
+ * message containing the audio from the buffer.
79
+ * - When the model is generating a Response. In this case the
80
+ * `conversation.item.added` event will be sent when the model starts generating
81
+ * a specific Item, and thus it will not yet have any content (and `status` will
82
+ * be `in_progress`).
83
+ *
84
+ * The event will include the full content of the Item (except when model is
85
+ * generating a Response) except for audio data, which can be retrieved separately
86
+ * with a `conversation.item.retrieve` event if necessary.
87
+ */
88
+ export interface ConversationItemAdded {
89
+ /**
90
+ * The unique ID of the server event.
91
+ */
92
+ event_id: string;
93
+ /**
94
+ * A single item within a Realtime conversation.
95
+ */
96
+ item: ConversationItem;
97
+ /**
98
+ * The event type, must be `conversation.item.added`.
99
+ */
100
+ type: 'conversation.item.added';
101
+ /**
102
+ * The ID of the item that precedes this one, if any. This is used to maintain
103
+ * ordering when items are inserted.
104
+ */
105
+ previous_item_id?: string | null;
106
+ }
107
+ /**
108
+ * Add a new Item to the Conversation's context, including messages, function
109
+ * calls, and function call responses. This event can be used both to populate a
110
+ * "history" of the conversation and to add new items mid-stream, but has the
111
+ * current limitation that it cannot populate assistant audio messages.
112
+ *
113
+ * If successful, the server will respond with a `conversation.item.created` event,
114
+ * otherwise an `error` event will be sent.
115
+ */
116
+ export interface ConversationItemCreateEvent {
117
+ /**
118
+ * A single item within a Realtime conversation.
119
+ */
120
+ item: ConversationItem;
121
+ /**
122
+ * The event type, must be `conversation.item.create`.
123
+ */
124
+ type: 'conversation.item.create';
125
+ /**
126
+ * Optional client-generated ID used to identify this event.
127
+ */
128
+ event_id?: string;
129
+ /**
130
+ * The ID of the preceding item after which the new item will be inserted. If not
131
+ * set, the new item will be appended to the end of the conversation.
132
+ *
133
+ * If set to `root`, the new item will be added to the beginning of the
134
+ * conversation.
135
+ *
136
+ * If set to an existing ID, it allows an item to be inserted mid-conversation. If
137
+ * the ID cannot be found, an error will be returned and the item will not be
138
+ * added.
139
+ */
140
+ previous_item_id?: string;
141
+ }
142
+ /**
143
+ * Returned when a conversation item is created. There are several scenarios that
144
+ * produce this event:
145
+ *
146
+ * - The server is generating a Response, which if successful will produce either
147
+ * one or two Items, which will be of type `message` (role `assistant`) or type
148
+ * `function_call`.
149
+ * - The input audio buffer has been committed, either by the client or the server
150
+ * (in `server_vad` mode). The server will take the content of the input audio
151
+ * buffer and add it to a new user message Item.
152
+ * - The client has sent a `conversation.item.create` event to add a new Item to
153
+ * the Conversation.
154
+ */
155
+ export interface ConversationItemCreatedEvent {
156
+ /**
157
+ * The unique ID of the server event.
158
+ */
159
+ event_id: string;
160
+ /**
161
+ * A single item within a Realtime conversation.
162
+ */
163
+ item: ConversationItem;
164
+ /**
165
+ * The event type, must be `conversation.item.created`.
166
+ */
167
+ type: 'conversation.item.created';
168
+ /**
169
+ * The ID of the preceding item in the Conversation context, allows the client to
170
+ * understand the order of the conversation. Can be `null` if the item has no
171
+ * predecessor.
172
+ */
173
+ previous_item_id?: string | null;
174
+ }
175
+ /**
176
+ * Send this event when you want to remove any item from the conversation history.
177
+ * The server will respond with a `conversation.item.deleted` event, unless the
178
+ * item does not exist in the conversation history, in which case the server will
179
+ * respond with an error.
180
+ */
181
+ export interface ConversationItemDeleteEvent {
182
+ /**
183
+ * The ID of the item to delete.
184
+ */
185
+ item_id: string;
186
+ /**
187
+ * The event type, must be `conversation.item.delete`.
188
+ */
189
+ type: 'conversation.item.delete';
190
+ /**
191
+ * Optional client-generated ID used to identify this event.
192
+ */
193
+ event_id?: string;
194
+ }
195
+ /**
196
+ * Returned when an item in the conversation is deleted by the client with a
197
+ * `conversation.item.delete` event. This event is used to synchronize the server's
198
+ * understanding of the conversation history with the client's view.
199
+ */
200
+ export interface ConversationItemDeletedEvent {
201
+ /**
202
+ * The unique ID of the server event.
203
+ */
204
+ event_id: string;
205
+ /**
206
+ * The ID of the item that was deleted.
207
+ */
208
+ item_id: string;
209
+ /**
210
+ * The event type, must be `conversation.item.deleted`.
211
+ */
212
+ type: 'conversation.item.deleted';
213
+ }
214
+ /**
215
+ * Returned when a conversation item is finalized.
216
+ *
217
+ * The event will include the full content of the Item except for audio data, which
218
+ * can be retrieved separately with a `conversation.item.retrieve` event if needed.
219
+ */
220
+ export interface ConversationItemDone {
221
+ /**
222
+ * The unique ID of the server event.
223
+ */
224
+ event_id: string;
225
+ /**
226
+ * A single item within a Realtime conversation.
227
+ */
228
+ item: ConversationItem;
229
+ /**
230
+ * The event type, must be `conversation.item.done`.
231
+ */
232
+ type: 'conversation.item.done';
233
+ /**
234
+ * The ID of the item that precedes this one, if any. This is used to maintain
235
+ * ordering when items are inserted.
236
+ */
237
+ previous_item_id?: string | null;
238
+ }
239
+ /**
240
+ * This event is the output of audio transcription for user audio written to the
241
+ * user audio buffer. Transcription begins when the input audio buffer is committed
242
+ * by the client or server (when VAD is enabled). Transcription runs asynchronously
243
+ * with Response creation, so this event may come before or after the Response
244
+ * events.
245
+ *
246
+ * Realtime API models accept audio natively, and thus input transcription is a
247
+ * separate process run on a separate ASR (Automatic Speech Recognition) model. The
248
+ * transcript may diverge somewhat from the model's interpretation, and should be
249
+ * treated as a rough guide.
250
+ */
251
+ export interface ConversationItemInputAudioTranscriptionCompletedEvent {
252
+ /**
253
+ * The index of the content part containing the audio.
254
+ */
255
+ content_index: number;
256
+ /**
257
+ * The unique ID of the server event.
258
+ */
259
+ event_id: string;
260
+ /**
261
+ * The ID of the item containing the audio that is being transcribed.
262
+ */
263
+ item_id: string;
264
+ /**
265
+ * The transcribed text.
266
+ */
267
+ transcript: string;
268
+ /**
269
+ * The event type, must be `conversation.item.input_audio_transcription.completed`.
270
+ */
271
+ type: 'conversation.item.input_audio_transcription.completed';
272
+ /**
273
+ * Usage statistics for the transcription, this is billed according to the ASR
274
+ * model's pricing rather than the realtime model's pricing.
275
+ */
276
+ usage: ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageTokens | ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageDuration;
277
+ /**
278
+ * The log probabilities of the transcription.
279
+ */
280
+ logprobs?: Array<LogProbProperties> | null;
281
+ }
282
+ export declare namespace ConversationItemInputAudioTranscriptionCompletedEvent {
283
+ /**
284
+ * Usage statistics for models billed by token usage.
285
+ */
286
+ interface TranscriptTextUsageTokens {
287
+ /**
288
+ * Number of input tokens billed for this request.
289
+ */
290
+ input_tokens: number;
291
+ /**
292
+ * Number of output tokens generated.
293
+ */
294
+ output_tokens: number;
295
+ /**
296
+ * Total number of tokens used (input + output).
297
+ */
298
+ total_tokens: number;
299
+ /**
300
+ * The type of the usage object. Always `tokens` for this variant.
301
+ */
302
+ type: 'tokens';
303
+ /**
304
+ * Details about the input tokens billed for this request.
305
+ */
306
+ input_token_details?: TranscriptTextUsageTokens.InputTokenDetails;
307
+ }
308
+ namespace TranscriptTextUsageTokens {
309
+ /**
310
+ * Details about the input tokens billed for this request.
311
+ */
312
+ interface InputTokenDetails {
313
+ /**
314
+ * Number of audio tokens billed for this request.
315
+ */
316
+ audio_tokens?: number;
317
+ /**
318
+ * Number of text tokens billed for this request.
319
+ */
320
+ text_tokens?: number;
321
+ }
322
+ }
323
+ /**
324
+ * Usage statistics for models billed by audio input duration.
325
+ */
326
+ interface TranscriptTextUsageDuration {
327
+ /**
328
+ * Duration of the input audio in seconds.
329
+ */
330
+ seconds: number;
331
+ /**
332
+ * The type of the usage object. Always `duration` for this variant.
333
+ */
334
+ type: 'duration';
335
+ }
336
+ }
337
+ /**
338
+ * Returned when the text value of an input audio transcription content part is
339
+ * updated with incremental transcription results.
340
+ */
341
+ export interface ConversationItemInputAudioTranscriptionDeltaEvent {
342
+ /**
343
+ * The unique ID of the server event.
344
+ */
345
+ event_id: string;
346
+ /**
347
+ * The ID of the item containing the audio that is being transcribed.
348
+ */
349
+ item_id: string;
350
+ /**
351
+ * The event type, must be `conversation.item.input_audio_transcription.delta`.
352
+ */
353
+ type: 'conversation.item.input_audio_transcription.delta';
354
+ /**
355
+ * The index of the content part in the item's content array.
356
+ */
357
+ content_index?: number;
358
+ /**
359
+ * The text delta.
360
+ */
361
+ delta?: string;
362
+ /**
363
+ * The log probabilities of the transcription. These can be enabled by
364
+ * configurating the session with
365
+ * `"include": ["item.input_audio_transcription.logprobs"]`. Each entry in the
366
+ * array corresponds a log probability of which token would be selected for this
367
+ * chunk of transcription. This can help to identify if it was possible there were
368
+ * multiple valid options for a given chunk of transcription.
369
+ */
370
+ logprobs?: Array<LogProbProperties> | null;
371
+ }
372
+ /**
373
+ * Returned when input audio transcription is configured, and a transcription
374
+ * request for a user message failed. These events are separate from other `error`
375
+ * events so that the client can identify the related Item.
376
+ */
377
+ export interface ConversationItemInputAudioTranscriptionFailedEvent {
378
+ /**
379
+ * The index of the content part containing the audio.
380
+ */
381
+ content_index: number;
382
+ /**
383
+ * Details of the transcription error.
384
+ */
385
+ error: ConversationItemInputAudioTranscriptionFailedEvent.Error;
386
+ /**
387
+ * The unique ID of the server event.
388
+ */
389
+ event_id: string;
390
+ /**
391
+ * The ID of the user message item.
392
+ */
393
+ item_id: string;
394
+ /**
395
+ * The event type, must be `conversation.item.input_audio_transcription.failed`.
396
+ */
397
+ type: 'conversation.item.input_audio_transcription.failed';
398
+ }
399
+ export declare namespace ConversationItemInputAudioTranscriptionFailedEvent {
400
+ /**
401
+ * Details of the transcription error.
402
+ */
403
+ interface Error {
404
+ /**
405
+ * Error code, if any.
406
+ */
407
+ code?: string;
408
+ /**
409
+ * A human-readable error message.
410
+ */
411
+ message?: string;
412
+ /**
413
+ * Parameter related to the error, if any.
414
+ */
415
+ param?: string;
416
+ /**
417
+ * The type of error.
418
+ */
419
+ type?: string;
420
+ }
421
+ }
422
+ /**
423
+ * Returned when an input audio transcription segment is identified for an item.
424
+ */
425
+ export interface ConversationItemInputAudioTranscriptionSegment {
426
+ /**
427
+ * The segment identifier.
428
+ */
429
+ id: string;
430
+ /**
431
+ * The index of the input audio content part within the item.
432
+ */
433
+ content_index: number;
434
+ /**
435
+ * End time of the segment in seconds.
436
+ */
437
+ end: number;
438
+ /**
439
+ * The unique ID of the server event.
440
+ */
441
+ event_id: string;
442
+ /**
443
+ * The ID of the item containing the input audio content.
444
+ */
445
+ item_id: string;
446
+ /**
447
+ * The detected speaker label for this segment.
448
+ */
449
+ speaker: string;
450
+ /**
451
+ * Start time of the segment in seconds.
452
+ */
453
+ start: number;
454
+ /**
455
+ * The text for this segment.
456
+ */
457
+ text: string;
458
+ /**
459
+ * The event type, must be `conversation.item.input_audio_transcription.segment`.
460
+ */
461
+ type: 'conversation.item.input_audio_transcription.segment';
462
+ }
463
+ /**
464
+ * Send this event when you want to retrieve the server's representation of a
465
+ * specific item in the conversation history. This is useful, for example, to
466
+ * inspect user audio after noise cancellation and VAD. The server will respond
467
+ * with a `conversation.item.retrieved` event, unless the item does not exist in
468
+ * the conversation history, in which case the server will respond with an error.
469
+ */
470
+ export interface ConversationItemRetrieveEvent {
471
+ /**
472
+ * The ID of the item to retrieve.
473
+ */
474
+ item_id: string;
475
+ /**
476
+ * The event type, must be `conversation.item.retrieve`.
477
+ */
478
+ type: 'conversation.item.retrieve';
479
+ /**
480
+ * Optional client-generated ID used to identify this event.
481
+ */
482
+ event_id?: string;
483
+ }
484
+ /**
485
+ * Send this event to truncate a previous assistant message’s audio. The server
486
+ * will produce audio faster than realtime, so this event is useful when the user
487
+ * interrupts to truncate audio that has already been sent to the client but not
488
+ * yet played. This will synchronize the server's understanding of the audio with
489
+ * the client's playback.
490
+ *
491
+ * Truncating audio will delete the server-side text transcript to ensure there is
492
+ * not text in the context that hasn't been heard by the user.
493
+ *
494
+ * If successful, the server will respond with a `conversation.item.truncated`
495
+ * event.
496
+ */
497
+ export interface ConversationItemTruncateEvent {
498
+ /**
499
+ * Inclusive duration up to which audio is truncated, in milliseconds. If the
500
+ * audio_end_ms is greater than the actual audio duration, the server will respond
501
+ * with an error.
502
+ */
503
+ audio_end_ms: number;
504
+ /**
505
+ * The index of the content part to truncate. Set this to `0`.
506
+ */
507
+ content_index: number;
508
+ /**
509
+ * The ID of the assistant message item to truncate. Only assistant message items
510
+ * can be truncated.
511
+ */
512
+ item_id: string;
513
+ /**
514
+ * The event type, must be `conversation.item.truncate`.
515
+ */
516
+ type: 'conversation.item.truncate';
517
+ /**
518
+ * Optional client-generated ID used to identify this event.
519
+ */
520
+ event_id?: string;
521
+ }
522
+ /**
523
+ * Returned when an earlier assistant audio message item is truncated by the client
524
+ * with a `conversation.item.truncate` event. This event is used to synchronize the
525
+ * server's understanding of the audio with the client's playback.
526
+ *
527
+ * This action will truncate the audio and remove the server-side text transcript
528
+ * to ensure there is no text in the context that hasn't been heard by the user.
529
+ */
530
+ export interface ConversationItemTruncatedEvent {
531
+ /**
532
+ * The duration up to which the audio was truncated, in milliseconds.
533
+ */
534
+ audio_end_ms: number;
535
+ /**
536
+ * The index of the content part that was truncated.
537
+ */
538
+ content_index: number;
539
+ /**
540
+ * The unique ID of the server event.
541
+ */
542
+ event_id: string;
543
+ /**
544
+ * The ID of the assistant message item that was truncated.
545
+ */
546
+ item_id: string;
547
+ /**
548
+ * The event type, must be `conversation.item.truncated`.
549
+ */
550
+ type: 'conversation.item.truncated';
551
+ }
552
+ /**
553
+ * The item to add to the conversation.
554
+ */
555
+ export interface ConversationItemWithReference {
556
+ /**
557
+ * For an item of type (`message` | `function_call` | `function_call_output`) this
558
+ * field allows the client to assign the unique ID of the item. It is not required
559
+ * because the server will generate one if not provided.
560
+ *
561
+ * For an item of type `item_reference`, this field is required and is a reference
562
+ * to any item that has previously existed in the conversation.
563
+ */
564
+ id?: string;
565
+ /**
566
+ * The arguments of the function call (for `function_call` items).
567
+ */
568
+ arguments?: string;
569
+ /**
570
+ * The ID of the function call (for `function_call` and `function_call_output`
571
+ * items). If passed on a `function_call_output` item, the server will check that a
572
+ * `function_call` item with the same ID exists in the conversation history.
573
+ */
574
+ call_id?: string;
575
+ /**
576
+ * The content of the message, applicable for `message` items.
577
+ *
578
+ * - Message items of role `system` support only `input_text` content
579
+ * - Message items of role `user` support `input_text` and `input_audio` content
580
+ * - Message items of role `assistant` support `text` content.
581
+ */
582
+ content?: Array<ConversationItemWithReference.Content>;
583
+ /**
584
+ * The name of the function being called (for `function_call` items).
585
+ */
586
+ name?: string;
587
+ /**
588
+ * Identifier for the API object being returned - always `realtime.item`.
589
+ */
590
+ object?: 'realtime.item';
591
+ /**
592
+ * The output of the function call (for `function_call_output` items).
593
+ */
594
+ output?: string;
595
+ /**
596
+ * The role of the message sender (`user`, `assistant`, `system`), only applicable
597
+ * for `message` items.
598
+ */
599
+ role?: 'user' | 'assistant' | 'system';
600
+ /**
601
+ * The status of the item (`completed`, `incomplete`, `in_progress`). These have no
602
+ * effect on the conversation, but are accepted for consistency with the
603
+ * `conversation.item.created` event.
604
+ */
605
+ status?: 'completed' | 'incomplete' | 'in_progress';
606
+ /**
607
+ * The type of the item (`message`, `function_call`, `function_call_output`,
608
+ * `item_reference`).
609
+ */
610
+ type?: 'message' | 'function_call' | 'function_call_output' | 'item_reference';
611
+ }
612
+ export declare namespace ConversationItemWithReference {
613
+ interface Content {
614
+ /**
615
+ * ID of a previous conversation item to reference (for `item_reference` content
616
+ * types in `response.create` events). These can reference both client and server
617
+ * created items.
618
+ */
619
+ id?: string;
620
+ /**
621
+ * Base64-encoded audio bytes, used for `input_audio` content type.
622
+ */
623
+ audio?: string;
624
+ /**
625
+ * The text content, used for `input_text` and `text` content types.
626
+ */
627
+ text?: string;
628
+ /**
629
+ * The transcript of the audio, used for `input_audio` content type.
630
+ */
631
+ transcript?: string;
632
+ /**
633
+ * The content type (`input_text`, `input_audio`, `item_reference`, `text`).
634
+ */
635
+ type?: 'input_text' | 'input_audio' | 'item_reference' | 'text';
636
+ }
637
+ }
638
+ /**
639
+ * Send this event to append audio bytes to the input audio buffer. The audio
640
+ * buffer is temporary storage you can write to and later commit. A "commit" will
641
+ * create a new user message item in the conversation history from the buffer
642
+ * content and clear the buffer. Input audio transcription (if enabled) will be
643
+ * generated when the buffer is committed.
644
+ *
645
+ * If VAD is enabled the audio buffer is used to detect speech and the server will
646
+ * decide when to commit. When Server VAD is disabled, you must commit the audio
647
+ * buffer manually. Input audio noise reduction operates on writes to the audio
648
+ * buffer.
649
+ *
650
+ * The client may choose how much audio to place in each event up to a maximum of
651
+ * 15 MiB, for example streaming smaller chunks from the client may allow the VAD
652
+ * to be more responsive. Unlike most other client events, the server will not send
653
+ * a confirmation response to this event.
654
+ */
655
+ export interface InputAudioBufferAppendEvent {
656
+ /**
657
+ * Base64-encoded audio bytes. This must be in the format specified by the
658
+ * `input_audio_format` field in the session configuration.
659
+ */
660
+ audio: string;
661
+ /**
662
+ * The event type, must be `input_audio_buffer.append`.
663
+ */
664
+ type: 'input_audio_buffer.append';
665
+ /**
666
+ * Optional client-generated ID used to identify this event.
667
+ */
668
+ event_id?: string;
669
+ }
670
+ /**
671
+ * Send this event to clear the audio bytes in the buffer. The server will respond
672
+ * with an `input_audio_buffer.cleared` event.
673
+ */
674
+ export interface InputAudioBufferClearEvent {
675
+ /**
676
+ * The event type, must be `input_audio_buffer.clear`.
677
+ */
678
+ type: 'input_audio_buffer.clear';
679
+ /**
680
+ * Optional client-generated ID used to identify this event.
681
+ */
682
+ event_id?: string;
683
+ }
684
+ /**
685
+ * Returned when the input audio buffer is cleared by the client with a
686
+ * `input_audio_buffer.clear` event.
687
+ */
688
+ export interface InputAudioBufferClearedEvent {
689
+ /**
690
+ * The unique ID of the server event.
691
+ */
692
+ event_id: string;
693
+ /**
694
+ * The event type, must be `input_audio_buffer.cleared`.
695
+ */
696
+ type: 'input_audio_buffer.cleared';
697
+ }
698
+ /**
699
+ * Send this event to commit the user input audio buffer, which will create a new
700
+ * user message item in the conversation. This event will produce an error if the
701
+ * input audio buffer is empty. When in Server VAD mode, the client does not need
702
+ * to send this event, the server will commit the audio buffer automatically.
703
+ *
704
+ * Committing the input audio buffer will trigger input audio transcription (if
705
+ * enabled in session configuration), but it will not create a response from the
706
+ * model. The server will respond with an `input_audio_buffer.committed` event.
707
+ */
708
+ export interface InputAudioBufferCommitEvent {
709
+ /**
710
+ * The event type, must be `input_audio_buffer.commit`.
711
+ */
712
+ type: 'input_audio_buffer.commit';
713
+ /**
714
+ * Optional client-generated ID used to identify this event.
715
+ */
716
+ event_id?: string;
717
+ }
718
+ /**
719
+ * Returned when an input audio buffer is committed, either by the client or
720
+ * automatically in server VAD mode. The `item_id` property is the ID of the user
721
+ * message item that will be created, thus a `conversation.item.created` event will
722
+ * also be sent to the client.
723
+ */
724
+ export interface InputAudioBufferCommittedEvent {
725
+ /**
726
+ * The unique ID of the server event.
727
+ */
728
+ event_id: string;
729
+ /**
730
+ * The ID of the user message item that will be created.
731
+ */
732
+ item_id: string;
733
+ /**
734
+ * The event type, must be `input_audio_buffer.committed`.
735
+ */
736
+ type: 'input_audio_buffer.committed';
737
+ /**
738
+ * The ID of the preceding item after which the new item will be inserted. Can be
739
+ * `null` if the item has no predecessor.
740
+ */
741
+ previous_item_id?: string | null;
742
+ }
743
+ /**
744
+ * **SIP Only:** Returned when an DTMF event is received. A DTMF event is a message
745
+ * that represents a telephone keypad press (0–9, \*, #, A–D). The `event` property
746
+ * is the keypad that the user press. The `received_at` is the UTC Unix Timestamp
747
+ * that the server received the event.
748
+ */
749
+ export interface InputAudioBufferDtmfEventReceivedEvent {
750
+ /**
751
+ * The telephone keypad that was pressed by the user.
752
+ */
753
+ event: string;
754
+ /**
755
+ * UTC Unix Timestamp when DTMF Event was received by server.
756
+ */
757
+ received_at: number;
758
+ /**
759
+ * The event type, must be `input_audio_buffer.dtmf_event_received`.
760
+ */
761
+ type: 'input_audio_buffer.dtmf_event_received';
762
+ }
763
+ /**
764
+ * Sent by the server when in `server_vad` mode to indicate that speech has been
765
+ * detected in the audio buffer. This can happen any time audio is added to the
766
+ * buffer (unless speech is already detected). The client may want to use this
767
+ * event to interrupt audio playback or provide visual feedback to the user.
768
+ *
769
+ * The client should expect to receive a `input_audio_buffer.speech_stopped` event
770
+ * when speech stops. The `item_id` property is the ID of the user message item
771
+ * that will be created when speech stops and will also be included in the
772
+ * `input_audio_buffer.speech_stopped` event (unless the client manually commits
773
+ * the audio buffer during VAD activation).
774
+ */
775
+ export interface InputAudioBufferSpeechStartedEvent {
776
+ /**
777
+ * Milliseconds from the start of all audio written to the buffer during the
778
+ * session when speech was first detected. This will correspond to the beginning of
779
+ * audio sent to the model, and thus includes the `prefix_padding_ms` configured in
780
+ * the Session.
781
+ */
782
+ audio_start_ms: number;
783
+ /**
784
+ * The unique ID of the server event.
785
+ */
786
+ event_id: string;
787
+ /**
788
+ * The ID of the user message item that will be created when speech stops.
789
+ */
790
+ item_id: string;
791
+ /**
792
+ * The event type, must be `input_audio_buffer.speech_started`.
793
+ */
794
+ type: 'input_audio_buffer.speech_started';
795
+ }
796
+ /**
797
+ * Returned in `server_vad` mode when the server detects the end of speech in the
798
+ * audio buffer. The server will also send an `conversation.item.created` event
799
+ * with the user message item that is created from the audio buffer.
800
+ */
801
+ export interface InputAudioBufferSpeechStoppedEvent {
802
+ /**
803
+ * Milliseconds since the session started when speech stopped. This will correspond
804
+ * to the end of audio sent to the model, and thus includes the
805
+ * `min_silence_duration_ms` configured in the Session.
806
+ */
807
+ audio_end_ms: number;
808
+ /**
809
+ * The unique ID of the server event.
810
+ */
811
+ event_id: string;
812
+ /**
813
+ * The ID of the user message item that will be created.
814
+ */
815
+ item_id: string;
816
+ /**
817
+ * The event type, must be `input_audio_buffer.speech_stopped`.
818
+ */
819
+ type: 'input_audio_buffer.speech_stopped';
820
+ }
821
+ /**
822
+ * Returned when the Server VAD timeout is triggered for the input audio buffer.
823
+ * This is configured with `idle_timeout_ms` in the `turn_detection` settings of
824
+ * the session, and it indicates that there hasn't been any speech detected for the
825
+ * configured duration.
826
+ *
827
+ * The `audio_start_ms` and `audio_end_ms` fields indicate the segment of audio
828
+ * after the last model response up to the triggering time, as an offset from the
829
+ * beginning of audio written to the input audio buffer. This means it demarcates
830
+ * the segment of audio that was silent and the difference between the start and
831
+ * end values will roughly match the configured timeout.
832
+ *
833
+ * The empty audio will be committed to the conversation as an `input_audio` item
834
+ * (there will be a `input_audio_buffer.committed` event) and a model response will
835
+ * be generated. There may be speech that didn't trigger VAD but is still detected
836
+ * by the model, so the model may respond with something relevant to the
837
+ * conversation or a prompt to continue speaking.
838
+ */
839
+ export interface InputAudioBufferTimeoutTriggered {
840
+ /**
841
+ * Millisecond offset of audio written to the input audio buffer at the time the
842
+ * timeout was triggered.
843
+ */
844
+ audio_end_ms: number;
845
+ /**
846
+ * Millisecond offset of audio written to the input audio buffer that was after the
847
+ * playback time of the last model response.
848
+ */
849
+ audio_start_ms: number;
850
+ /**
851
+ * The unique ID of the server event.
852
+ */
853
+ event_id: string;
854
+ /**
855
+ * The ID of the item associated with this segment.
856
+ */
857
+ item_id: string;
858
+ /**
859
+ * The event type, must be `input_audio_buffer.timeout_triggered`.
860
+ */
861
+ type: 'input_audio_buffer.timeout_triggered';
862
+ }
863
+ /**
864
+ * A log probability object.
865
+ */
866
+ export interface LogProbProperties {
867
+ /**
868
+ * The token that was used to generate the log probability.
869
+ */
870
+ token: string;
871
+ /**
872
+ * The bytes that were used to generate the log probability.
873
+ */
874
+ bytes: Array<number>;
875
+ /**
876
+ * The log probability of the token.
877
+ */
878
+ logprob: number;
879
+ }
880
+ /**
881
+ * Returned when listing MCP tools has completed for an item.
882
+ */
883
+ export interface McpListToolsCompleted {
884
+ /**
885
+ * The unique ID of the server event.
886
+ */
887
+ event_id: string;
888
+ /**
889
+ * The ID of the MCP list tools item.
890
+ */
891
+ item_id: string;
892
+ /**
893
+ * The event type, must be `mcp_list_tools.completed`.
894
+ */
895
+ type: 'mcp_list_tools.completed';
896
+ }
897
+ /**
898
+ * Returned when listing MCP tools has failed for an item.
899
+ */
900
+ export interface McpListToolsFailed {
901
+ /**
902
+ * The unique ID of the server event.
903
+ */
904
+ event_id: string;
905
+ /**
906
+ * The ID of the MCP list tools item.
907
+ */
908
+ item_id: string;
909
+ /**
910
+ * The event type, must be `mcp_list_tools.failed`.
911
+ */
912
+ type: 'mcp_list_tools.failed';
913
+ }
914
+ /**
915
+ * Returned when listing MCP tools is in progress for an item.
916
+ */
917
+ export interface McpListToolsInProgress {
918
+ /**
919
+ * The unique ID of the server event.
920
+ */
921
+ event_id: string;
922
+ /**
923
+ * The ID of the MCP list tools item.
924
+ */
925
+ item_id: string;
926
+ /**
927
+ * The event type, must be `mcp_list_tools.in_progress`.
928
+ */
929
+ type: 'mcp_list_tools.in_progress';
930
+ }
931
+ /**
932
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
933
+ * headphones, `far_field` is for far-field microphones such as laptop or
934
+ * conference room microphones.
935
+ */
936
+ export type NoiseReductionType = 'near_field' | 'far_field';
937
+ /**
938
+ * **WebRTC/SIP Only:** Emit to cut off the current audio response. This will
939
+ * trigger the server to stop generating audio and emit a
940
+ * `output_audio_buffer.cleared` event. This event should be preceded by a
941
+ * `response.cancel` client event to stop the generation of the current response.
942
+ * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
943
+ */
944
+ export interface OutputAudioBufferClearEvent {
945
+ /**
946
+ * The event type, must be `output_audio_buffer.clear`.
947
+ */
948
+ type: 'output_audio_buffer.clear';
949
+ /**
950
+ * The unique ID of the client event used for error handling.
951
+ */
952
+ event_id?: string;
953
+ }
954
+ /**
955
+ * Emitted at the beginning of a Response to indicate the updated rate limits. When
956
+ * a Response is created some tokens will be "reserved" for the output tokens, the
957
+ * rate limits shown here reflect that reservation, which is then adjusted
958
+ * accordingly once the Response is completed.
959
+ */
960
+ export interface RateLimitsUpdatedEvent {
961
+ /**
962
+ * The unique ID of the server event.
963
+ */
964
+ event_id: string;
965
+ /**
966
+ * List of rate limit information.
967
+ */
968
+ rate_limits: Array<RateLimitsUpdatedEvent.RateLimit>;
969
+ /**
970
+ * The event type, must be `rate_limits.updated`.
971
+ */
972
+ type: 'rate_limits.updated';
973
+ }
974
+ export declare namespace RateLimitsUpdatedEvent {
975
+ interface RateLimit {
976
+ /**
977
+ * The maximum allowed value for the rate limit.
978
+ */
979
+ limit?: number;
980
+ /**
981
+ * The name of the rate limit (`requests`, `tokens`).
982
+ */
983
+ name?: 'requests' | 'tokens';
984
+ /**
985
+ * The remaining value before the limit is reached.
986
+ */
987
+ remaining?: number;
988
+ /**
989
+ * Seconds until the rate limit resets.
990
+ */
991
+ reset_seconds?: number;
992
+ }
993
+ }
994
+ /**
995
+ * Configuration for input and output audio.
996
+ */
997
+ export interface RealtimeAudioConfig {
998
+ input?: RealtimeAudioConfigInput;
999
+ output?: RealtimeAudioConfigOutput;
1000
+ }
1001
+ export interface RealtimeAudioConfigInput {
1002
+ /**
1003
+ * The format of the input audio.
1004
+ */
1005
+ format?: RealtimeAudioFormats;
1006
+ /**
1007
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
1008
+ * off. Noise reduction filters audio added to the input audio buffer before it is
1009
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
1010
+ * detection accuracy (reducing false positives) and model performance by improving
1011
+ * perception of the input audio.
1012
+ */
1013
+ noise_reduction?: RealtimeAudioConfigInput.NoiseReduction;
1014
+ /**
1015
+ * Configuration for input audio transcription, defaults to off and can be set to
1016
+ * `null` to turn off once on. Input audio transcription is not native to the
1017
+ * model, since the model consumes audio directly. Transcription runs
1018
+ * asynchronously through
1019
+ * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription)
1020
+ * and should be treated as guidance of input audio content rather than precisely
1021
+ * what the model heard. The client can optionally set the language and prompt for
1022
+ * transcription, these offer additional guidance to the transcription service.
1023
+ */
1024
+ transcription?: AudioTranscription;
1025
+ /**
1026
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
1027
+ * set to `null` to turn off, in which case the client must manually trigger model
1028
+ * response.
1029
+ *
1030
+ * Server VAD means that the model will detect the start and end of speech based on
1031
+ * audio volume and respond at the end of user speech.
1032
+ *
1033
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
1034
+ * with VAD) to semantically estimate whether the user has finished speaking, then
1035
+ * dynamically sets a timeout based on this probability. For example, if user audio
1036
+ * trails off with "uhhm", the model will score a low probability of turn end and
1037
+ * wait longer for the user to continue speaking. This can be useful for more
1038
+ * natural conversations, but may have a higher latency.
1039
+ */
1040
+ turn_detection?: RealtimeAudioInputTurnDetection | null;
1041
+ }
1042
+ export declare namespace RealtimeAudioConfigInput {
1043
+ /**
1044
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
1045
+ * off. Noise reduction filters audio added to the input audio buffer before it is
1046
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
1047
+ * detection accuracy (reducing false positives) and model performance by improving
1048
+ * perception of the input audio.
1049
+ */
1050
+ interface NoiseReduction {
1051
+ /**
1052
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
1053
+ * headphones, `far_field` is for far-field microphones such as laptop or
1054
+ * conference room microphones.
1055
+ */
1056
+ type?: RealtimeAPI.NoiseReductionType;
1057
+ }
1058
+ }
1059
+ export interface RealtimeAudioConfigOutput {
1060
+ /**
1061
+ * The format of the output audio.
1062
+ */
1063
+ format?: RealtimeAudioFormats;
1064
+ /**
1065
+ * The speed of the model's spoken response as a multiple of the original speed.
1066
+ * 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed.
1067
+ * This value can only be changed in between model turns, not while a response is
1068
+ * in progress.
1069
+ *
1070
+ * This parameter is a post-processing adjustment to the audio after it is
1071
+ * generated, it's also possible to prompt the model to speak faster or slower.
1072
+ */
1073
+ speed?: number;
1074
+ /**
1075
+ * The voice the model uses to respond. Supported built-in voices are `alloy`,
1076
+ * `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
1077
+ * `cedar`. You may also provide a custom voice object with an `id`, for example
1078
+ * `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
1079
+ * model has responded with audio at least once. We recommend `marin` and `cedar`
1080
+ * for best quality.
1081
+ */
1082
+ voice?: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | RealtimeAudioConfigOutput.ID;
1083
+ }
1084
+ export declare namespace RealtimeAudioConfigOutput {
1085
+ /**
1086
+ * Custom voice reference.
1087
+ */
1088
+ interface ID {
1089
+ /**
1090
+ * The custom voice ID, e.g. `voice_1234`.
1091
+ */
1092
+ id: string;
1093
+ }
1094
+ }
1095
+ /**
1096
+ * The PCM audio format. Only a 24kHz sample rate is supported.
1097
+ */
1098
+ export type RealtimeAudioFormats = RealtimeAudioFormats.AudioPCM | RealtimeAudioFormats.AudioPCMU | RealtimeAudioFormats.AudioPCMA;
1099
+ export declare namespace RealtimeAudioFormats {
1100
+ /**
1101
+ * The PCM audio format. Only a 24kHz sample rate is supported.
1102
+ */
1103
+ interface AudioPCM {
1104
+ /**
1105
+ * The sample rate of the audio. Always `24000`.
1106
+ */
1107
+ rate?: 24000;
1108
+ /**
1109
+ * The audio format. Always `audio/pcm`.
1110
+ */
1111
+ type?: 'audio/pcm';
1112
+ }
1113
+ /**
1114
+ * The G.711 μ-law format.
1115
+ */
1116
+ interface AudioPCMU {
1117
+ /**
1118
+ * The audio format. Always `audio/pcmu`.
1119
+ */
1120
+ type?: 'audio/pcmu';
1121
+ }
1122
+ /**
1123
+ * The G.711 A-law format.
1124
+ */
1125
+ interface AudioPCMA {
1126
+ /**
1127
+ * The audio format. Always `audio/pcma`.
1128
+ */
1129
+ type?: 'audio/pcma';
1130
+ }
1131
+ }
1132
+ /**
1133
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
1134
+ * set to `null` to turn off, in which case the client must manually trigger model
1135
+ * response.
1136
+ *
1137
+ * Server VAD means that the model will detect the start and end of speech based on
1138
+ * audio volume and respond at the end of user speech.
1139
+ *
1140
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
1141
+ * with VAD) to semantically estimate whether the user has finished speaking, then
1142
+ * dynamically sets a timeout based on this probability. For example, if user audio
1143
+ * trails off with "uhhm", the model will score a low probability of turn end and
1144
+ * wait longer for the user to continue speaking. This can be useful for more
1145
+ * natural conversations, but may have a higher latency.
1146
+ */
1147
+ export type RealtimeAudioInputTurnDetection = RealtimeAudioInputTurnDetection.ServerVad | RealtimeAudioInputTurnDetection.SemanticVad;
1148
+ export declare namespace RealtimeAudioInputTurnDetection {
1149
+ /**
1150
+ * Server-side voice activity detection (VAD) which flips on when user speech is
1151
+ * detected and off after a period of silence.
1152
+ */
1153
+ interface ServerVad {
1154
+ /**
1155
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
1156
+ */
1157
+ type: 'server_vad';
1158
+ /**
1159
+ * Whether or not to automatically generate a response when a VAD stop event
1160
+ * occurs. If `interrupt_response` is set to `false` this may fail to create a
1161
+ * response if the model is already responding.
1162
+ *
1163
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
1164
+ * will never respond automatically but VAD events will still be emitted.
1165
+ */
1166
+ create_response?: boolean;
1167
+ /**
1168
+ * Optional timeout after which a model response will be triggered automatically.
1169
+ * This is useful for situations in which a long pause from the user is unexpected,
1170
+ * such as a phone call. The model will effectively prompt the user to continue the
1171
+ * conversation based on the current context.
1172
+ *
1173
+ * The timeout value will be applied after the last model response's audio has
1174
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
1175
+ * duration.
1176
+ *
1177
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
1178
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
1179
+ * only supported for `server_vad` mode.
1180
+ */
1181
+ idle_timeout_ms?: number | null;
1182
+ /**
1183
+ * Whether or not to automatically interrupt (cancel) any ongoing response with
1184
+ * output to the default conversation (i.e. `conversation` of `auto`) when a VAD
1185
+ * start event occurs. If `true` then the response will be cancelled, otherwise it
1186
+ * will continue until complete.
1187
+ *
1188
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
1189
+ * will never respond automatically but VAD events will still be emitted.
1190
+ */
1191
+ interrupt_response?: boolean;
1192
+ /**
1193
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
1194
+ * detected speech (in milliseconds). Defaults to 300ms.
1195
+ */
1196
+ prefix_padding_ms?: number;
1197
+ /**
1198
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
1199
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
1200
+ * more quickly, but may jump in on short pauses from the user.
1201
+ */
1202
+ silence_duration_ms?: number;
1203
+ /**
1204
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
1205
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
1206
+ * model, and thus might perform better in noisy environments.
1207
+ */
1208
+ threshold?: number;
1209
+ }
1210
+ /**
1211
+ * Server-side semantic turn detection which uses a model to determine when the
1212
+ * user has finished speaking.
1213
+ */
1214
+ interface SemanticVad {
1215
+ /**
1216
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
1217
+ */
1218
+ type: 'semantic_vad';
1219
+ /**
1220
+ * Whether or not to automatically generate a response when a VAD stop event
1221
+ * occurs.
1222
+ */
1223
+ create_response?: boolean;
1224
+ /**
1225
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
1226
+ * will wait longer for the user to continue speaking, `high` will respond more
1227
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
1228
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
1229
+ */
1230
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
1231
+ /**
1232
+ * Whether or not to automatically interrupt any ongoing response with output to
1233
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
1234
+ * occurs.
1235
+ */
1236
+ interrupt_response?: boolean;
1237
+ }
1238
+ }
1239
+ /**
1240
+ * A realtime client event.
1241
+ */
1242
+ export type RealtimeClientEvent = ConversationItemCreateEvent | ConversationItemDeleteEvent | ConversationItemRetrieveEvent | ConversationItemTruncateEvent | InputAudioBufferAppendEvent | InputAudioBufferClearEvent | OutputAudioBufferClearEvent | InputAudioBufferCommitEvent | ResponseCancelEvent | ResponseCreateEvent | SessionUpdateEvent;
1243
+ /**
1244
+ * An assistant message item in a Realtime conversation.
1245
+ */
1246
+ export interface RealtimeConversationItemAssistantMessage {
1247
+ /**
1248
+ * The content of the message.
1249
+ */
1250
+ content: Array<RealtimeConversationItemAssistantMessage.Content>;
1251
+ /**
1252
+ * The role of the message sender. Always `assistant`.
1253
+ */
1254
+ role: 'assistant';
1255
+ /**
1256
+ * The type of the item. Always `message`.
1257
+ */
1258
+ type: 'message';
1259
+ /**
1260
+ * The unique ID of the item. This may be provided by the client or generated by
1261
+ * the server.
1262
+ */
1263
+ id?: string;
1264
+ /**
1265
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1266
+ * when creating a new item.
1267
+ */
1268
+ object?: 'realtime.item';
1269
+ /**
1270
+ * The status of the item. Has no effect on the conversation.
1271
+ */
1272
+ status?: 'completed' | 'incomplete' | 'in_progress';
1273
+ }
1274
+ export declare namespace RealtimeConversationItemAssistantMessage {
1275
+ interface Content {
1276
+ /**
1277
+ * Base64-encoded audio bytes, these will be parsed as the format specified in the
1278
+ * session output audio type configuration. This defaults to PCM 16-bit 24kHz mono
1279
+ * if not specified.
1280
+ */
1281
+ audio?: string;
1282
+ /**
1283
+ * The text content.
1284
+ */
1285
+ text?: string;
1286
+ /**
1287
+ * The transcript of the audio content, this will always be present if the output
1288
+ * type is `audio`.
1289
+ */
1290
+ transcript?: string;
1291
+ /**
1292
+ * The content type, `output_text` or `output_audio` depending on the session
1293
+ * `output_modalities` configuration.
1294
+ */
1295
+ type?: 'output_text' | 'output_audio';
1296
+ }
1297
+ }
1298
+ /**
1299
+ * A function call item in a Realtime conversation.
1300
+ */
1301
+ export interface RealtimeConversationItemFunctionCall {
1302
+ /**
1303
+ * The arguments of the function call. This is a JSON-encoded string representing
1304
+ * the arguments passed to the function, for example
1305
+ * `{"arg1": "value1", "arg2": 42}`.
1306
+ */
1307
+ arguments: string;
1308
+ /**
1309
+ * The name of the function being called.
1310
+ */
1311
+ name: string;
1312
+ /**
1313
+ * The type of the item. Always `function_call`.
1314
+ */
1315
+ type: 'function_call';
1316
+ /**
1317
+ * The unique ID of the item. This may be provided by the client or generated by
1318
+ * the server.
1319
+ */
1320
+ id?: string;
1321
+ /**
1322
+ * The ID of the function call.
1323
+ */
1324
+ call_id?: string;
1325
+ /**
1326
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1327
+ * when creating a new item.
1328
+ */
1329
+ object?: 'realtime.item';
1330
+ /**
1331
+ * The status of the item. Has no effect on the conversation.
1332
+ */
1333
+ status?: 'completed' | 'incomplete' | 'in_progress';
1334
+ }
1335
+ /**
1336
+ * A function call output item in a Realtime conversation.
1337
+ */
1338
+ export interface RealtimeConversationItemFunctionCallOutput {
1339
+ /**
1340
+ * The ID of the function call this output is for.
1341
+ */
1342
+ call_id: string;
1343
+ /**
1344
+ * The output of the function call, this is free text and can contain any
1345
+ * information or simply be empty.
1346
+ */
1347
+ output: string;
1348
+ /**
1349
+ * The type of the item. Always `function_call_output`.
1350
+ */
1351
+ type: 'function_call_output';
1352
+ /**
1353
+ * The unique ID of the item. This may be provided by the client or generated by
1354
+ * the server.
1355
+ */
1356
+ id?: string;
1357
+ /**
1358
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1359
+ * when creating a new item.
1360
+ */
1361
+ object?: 'realtime.item';
1362
+ /**
1363
+ * The status of the item. Has no effect on the conversation.
1364
+ */
1365
+ status?: 'completed' | 'incomplete' | 'in_progress';
1366
+ }
1367
+ /**
1368
+ * A system message in a Realtime conversation can be used to provide additional
1369
+ * context or instructions to the model. This is similar but distinct from the
1370
+ * instruction prompt provided at the start of a conversation, as system messages
1371
+ * can be added at any point in the conversation. For major changes to the
1372
+ * conversation's behavior, use instructions, but for smaller updates (e.g. "the
1373
+ * user is now asking about a different topic"), use system messages.
1374
+ */
1375
+ export interface RealtimeConversationItemSystemMessage {
1376
+ /**
1377
+ * The content of the message.
1378
+ */
1379
+ content: Array<RealtimeConversationItemSystemMessage.Content>;
1380
+ /**
1381
+ * The role of the message sender. Always `system`.
1382
+ */
1383
+ role: 'system';
1384
+ /**
1385
+ * The type of the item. Always `message`.
1386
+ */
1387
+ type: 'message';
1388
+ /**
1389
+ * The unique ID of the item. This may be provided by the client or generated by
1390
+ * the server.
1391
+ */
1392
+ id?: string;
1393
+ /**
1394
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1395
+ * when creating a new item.
1396
+ */
1397
+ object?: 'realtime.item';
1398
+ /**
1399
+ * The status of the item. Has no effect on the conversation.
1400
+ */
1401
+ status?: 'completed' | 'incomplete' | 'in_progress';
1402
+ }
1403
+ export declare namespace RealtimeConversationItemSystemMessage {
1404
+ interface Content {
1405
+ /**
1406
+ * The text content.
1407
+ */
1408
+ text?: string;
1409
+ /**
1410
+ * The content type. Always `input_text` for system messages.
1411
+ */
1412
+ type?: 'input_text';
1413
+ }
1414
+ }
1415
+ /**
1416
+ * A user message item in a Realtime conversation.
1417
+ */
1418
+ export interface RealtimeConversationItemUserMessage {
1419
+ /**
1420
+ * The content of the message.
1421
+ */
1422
+ content: Array<RealtimeConversationItemUserMessage.Content>;
1423
+ /**
1424
+ * The role of the message sender. Always `user`.
1425
+ */
1426
+ role: 'user';
1427
+ /**
1428
+ * The type of the item. Always `message`.
1429
+ */
1430
+ type: 'message';
1431
+ /**
1432
+ * The unique ID of the item. This may be provided by the client or generated by
1433
+ * the server.
1434
+ */
1435
+ id?: string;
1436
+ /**
1437
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1438
+ * when creating a new item.
1439
+ */
1440
+ object?: 'realtime.item';
1441
+ /**
1442
+ * The status of the item. Has no effect on the conversation.
1443
+ */
1444
+ status?: 'completed' | 'incomplete' | 'in_progress';
1445
+ }
1446
+ export declare namespace RealtimeConversationItemUserMessage {
1447
+ interface Content {
1448
+ /**
1449
+ * Base64-encoded audio bytes (for `input_audio`), these will be parsed as the
1450
+ * format specified in the session input audio type configuration. This defaults to
1451
+ * PCM 16-bit 24kHz mono if not specified.
1452
+ */
1453
+ audio?: string;
1454
+ /**
1455
+ * The detail level of the image (for `input_image`). `auto` will default to
1456
+ * `high`.
1457
+ */
1458
+ detail?: 'auto' | 'low' | 'high';
1459
+ /**
1460
+ * Base64-encoded image bytes (for `input_image`) as a data URI. For example
1461
+ * `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...`. Supported formats are PNG
1462
+ * and JPEG.
1463
+ */
1464
+ image_url?: string;
1465
+ /**
1466
+ * The text content (for `input_text`).
1467
+ */
1468
+ text?: string;
1469
+ /**
1470
+ * Transcript of the audio (for `input_audio`). This is not sent to the model, but
1471
+ * will be attached to the message item for reference.
1472
+ */
1473
+ transcript?: string;
1474
+ /**
1475
+ * The content type (`input_text`, `input_audio`, or `input_image`).
1476
+ */
1477
+ type?: 'input_text' | 'input_audio' | 'input_image';
1478
+ }
1479
+ }
1480
+ /**
1481
+ * Details of the error.
1482
+ */
1483
+ export interface RealtimeError {
1484
+ /**
1485
+ * A human-readable error message.
1486
+ */
1487
+ message: string;
1488
+ /**
1489
+ * The type of error (e.g., "invalid_request_error", "server_error").
1490
+ */
1491
+ type: string;
1492
+ /**
1493
+ * Error code, if any.
1494
+ */
1495
+ code?: string | null;
1496
+ /**
1497
+ * The event_id of the client event that caused the error, if applicable.
1498
+ */
1499
+ event_id?: string | null;
1500
+ /**
1501
+ * Parameter related to the error, if any.
1502
+ */
1503
+ param?: string | null;
1504
+ }
1505
+ /**
1506
+ * Returned when an error occurs, which could be a client problem or a server
1507
+ * problem. Most errors are recoverable and the session will stay open, we
1508
+ * recommend to implementors to monitor and log error messages by default.
1509
+ */
1510
+ export interface RealtimeErrorEvent {
1511
+ /**
1512
+ * Details of the error.
1513
+ */
1514
+ error: RealtimeError;
1515
+ /**
1516
+ * The unique ID of the server event.
1517
+ */
1518
+ event_id: string;
1519
+ /**
1520
+ * The event type, must be `error`.
1521
+ */
1522
+ type: 'error';
1523
+ }
1524
+ export interface RealtimeFunctionTool {
1525
+ /**
1526
+ * The description of the function, including guidance on when and how to call it,
1527
+ * and guidance about what to tell the user when calling (if anything).
1528
+ */
1529
+ description?: string;
1530
+ /**
1531
+ * The name of the function.
1532
+ */
1533
+ name?: string;
1534
+ /**
1535
+ * Parameters of the function in JSON Schema.
1536
+ */
1537
+ parameters?: unknown;
1538
+ /**
1539
+ * The type of the tool, i.e. `function`.
1540
+ */
1541
+ type?: 'function';
1542
+ }
1543
+ /**
1544
+ * A Realtime item requesting human approval of a tool invocation.
1545
+ */
1546
+ export interface RealtimeMcpApprovalRequest {
1547
+ /**
1548
+ * The unique ID of the approval request.
1549
+ */
1550
+ id: string;
1551
+ /**
1552
+ * A JSON string of arguments for the tool.
1553
+ */
1554
+ arguments: string;
1555
+ /**
1556
+ * The name of the tool to run.
1557
+ */
1558
+ name: string;
1559
+ /**
1560
+ * The label of the MCP server making the request.
1561
+ */
1562
+ server_label: string;
1563
+ /**
1564
+ * The type of the item. Always `mcp_approval_request`.
1565
+ */
1566
+ type: 'mcp_approval_request';
1567
+ }
1568
+ /**
1569
+ * A Realtime item responding to an MCP approval request.
1570
+ */
1571
+ export interface RealtimeMcpApprovalResponse {
1572
+ /**
1573
+ * The unique ID of the approval response.
1574
+ */
1575
+ id: string;
1576
+ /**
1577
+ * The ID of the approval request being answered.
1578
+ */
1579
+ approval_request_id: string;
1580
+ /**
1581
+ * Whether the request was approved.
1582
+ */
1583
+ approve: boolean;
1584
+ /**
1585
+ * The type of the item. Always `mcp_approval_response`.
1586
+ */
1587
+ type: 'mcp_approval_response';
1588
+ /**
1589
+ * Optional reason for the decision.
1590
+ */
1591
+ reason?: string | null;
1592
+ }
1593
+ /**
1594
+ * A Realtime item listing tools available on an MCP server.
1595
+ */
1596
+ export interface RealtimeMcpListTools {
1597
+ /**
1598
+ * The label of the MCP server.
1599
+ */
1600
+ server_label: string;
1601
+ /**
1602
+ * The tools available on the server.
1603
+ */
1604
+ tools: Array<RealtimeMcpListTools.Tool>;
1605
+ /**
1606
+ * The type of the item. Always `mcp_list_tools`.
1607
+ */
1608
+ type: 'mcp_list_tools';
1609
+ /**
1610
+ * The unique ID of the list.
1611
+ */
1612
+ id?: string;
1613
+ }
1614
+ export declare namespace RealtimeMcpListTools {
1615
+ /**
1616
+ * A tool available on an MCP server.
1617
+ */
1618
+ interface Tool {
1619
+ /**
1620
+ * The JSON schema describing the tool's input.
1621
+ */
1622
+ input_schema: unknown;
1623
+ /**
1624
+ * The name of the tool.
1625
+ */
1626
+ name: string;
1627
+ /**
1628
+ * Additional annotations about the tool.
1629
+ */
1630
+ annotations?: unknown | null;
1631
+ /**
1632
+ * The description of the tool.
1633
+ */
1634
+ description?: string | null;
1635
+ }
1636
+ }
1637
+ export interface RealtimeMcpProtocolError {
1638
+ code: number;
1639
+ message: string;
1640
+ type: 'protocol_error';
1641
+ }
1642
+ /**
1643
+ * A Realtime item representing an invocation of a tool on an MCP server.
1644
+ */
1645
+ export interface RealtimeMcpToolCall {
1646
+ /**
1647
+ * The unique ID of the tool call.
1648
+ */
1649
+ id: string;
1650
+ /**
1651
+ * A JSON string of the arguments passed to the tool.
1652
+ */
1653
+ arguments: string;
1654
+ /**
1655
+ * The name of the tool that was run.
1656
+ */
1657
+ name: string;
1658
+ /**
1659
+ * The label of the MCP server running the tool.
1660
+ */
1661
+ server_label: string;
1662
+ /**
1663
+ * The type of the item. Always `mcp_call`.
1664
+ */
1665
+ type: 'mcp_call';
1666
+ /**
1667
+ * The ID of an associated approval request, if any.
1668
+ */
1669
+ approval_request_id?: string | null;
1670
+ /**
1671
+ * The error from the tool call, if any.
1672
+ */
1673
+ error?: RealtimeMcpProtocolError | RealtimeMcpToolExecutionError | RealtimeMcphttpError | null;
1674
+ /**
1675
+ * The output from the tool call.
1676
+ */
1677
+ output?: string | null;
1678
+ }
1679
+ export interface RealtimeMcpToolExecutionError {
1680
+ message: string;
1681
+ type: 'tool_execution_error';
1682
+ }
1683
+ export interface RealtimeMcphttpError {
1684
+ code: number;
1685
+ message: string;
1686
+ type: 'http_error';
1687
+ }
1688
+ /**
1689
+ * The response resource.
1690
+ */
1691
+ export interface RealtimeResponse {
1692
+ /**
1693
+ * The unique ID of the response, will look like `resp_1234`.
1694
+ */
1695
+ id?: string;
1696
+ /**
1697
+ * Configuration for audio output.
1698
+ */
1699
+ audio?: RealtimeResponse.Audio;
1700
+ /**
1701
+ * Which conversation the response is added to, determined by the `conversation`
1702
+ * field in the `response.create` event. If `auto`, the response will be added to
1703
+ * the default conversation and the value of `conversation_id` will be an id like
1704
+ * `conv_1234`. If `none`, the response will not be added to any conversation and
1705
+ * the value of `conversation_id` will be `null`. If responses are being triggered
1706
+ * automatically by VAD the response will be added to the default conversation
1707
+ */
1708
+ conversation_id?: string;
1709
+ /**
1710
+ * Maximum number of output tokens for a single assistant response, inclusive of
1711
+ * tool calls, that was used in this response.
1712
+ */
1713
+ max_output_tokens?: number | 'inf';
1714
+ /**
1715
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
1716
+ * for storing additional information about the object in a structured format, and
1717
+ * querying for objects via API or the dashboard.
1718
+ *
1719
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
1720
+ * a maximum length of 512 characters.
1721
+ */
1722
+ metadata?: Shared.Metadata | null;
1723
+ /**
1724
+ * The object type, must be `realtime.response`.
1725
+ */
1726
+ object?: 'realtime.response';
1727
+ /**
1728
+ * The list of output items generated by the response.
1729
+ */
1730
+ output?: Array<ConversationItem>;
1731
+ /**
1732
+ * The set of modalities the model used to respond, currently the only possible
1733
+ * values are `[\"audio\"]`, `[\"text\"]`. Audio output always include a text
1734
+ * transcript. Setting the output to mode `text` will disable audio output from the
1735
+ * model.
1736
+ */
1737
+ output_modalities?: Array<'text' | 'audio'>;
1738
+ /**
1739
+ * The final status of the response (`completed`, `cancelled`, `failed`, or
1740
+ * `incomplete`, `in_progress`).
1741
+ */
1742
+ status?: 'completed' | 'cancelled' | 'failed' | 'incomplete' | 'in_progress';
1743
+ /**
1744
+ * Additional details about the status.
1745
+ */
1746
+ status_details?: RealtimeResponseStatus;
1747
+ /**
1748
+ * Usage statistics for the Response, this will correspond to billing. A Realtime
1749
+ * API session will maintain a conversation context and append new Items to the
1750
+ * Conversation, thus output from previous turns (text and audio tokens) will
1751
+ * become the input for later turns.
1752
+ */
1753
+ usage?: RealtimeResponseUsage;
1754
+ }
1755
+ export declare namespace RealtimeResponse {
1756
+ /**
1757
+ * Configuration for audio output.
1758
+ */
1759
+ interface Audio {
1760
+ output?: Audio.Output;
1761
+ }
1762
+ namespace Audio {
1763
+ interface Output {
1764
+ /**
1765
+ * The format of the output audio.
1766
+ */
1767
+ format?: RealtimeAPI.RealtimeAudioFormats;
1768
+ /**
1769
+ * The voice the model uses to respond. Voice cannot be changed during the session
1770
+ * once the model has responded with audio at least once. Current voice options are
1771
+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`,
1772
+ * and `cedar`. We recommend `marin` and `cedar` for best quality.
1773
+ */
1774
+ voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar';
1775
+ }
1776
+ }
1777
+ }
1778
+ /**
1779
+ * Configuration for audio input and output.
1780
+ */
1781
+ export interface RealtimeResponseCreateAudioOutput {
1782
+ output?: RealtimeResponseCreateAudioOutput.Output;
1783
+ }
1784
+ export declare namespace RealtimeResponseCreateAudioOutput {
1785
+ interface Output {
1786
+ /**
1787
+ * The format of the output audio.
1788
+ */
1789
+ format?: RealtimeAPI.RealtimeAudioFormats;
1790
+ /**
1791
+ * The voice the model uses to respond. Supported built-in voices are `alloy`,
1792
+ * `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
1793
+ * `cedar`. You may also provide a custom voice object with an `id`, for example
1794
+ * `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
1795
+ * model has responded with audio at least once. We recommend `marin` and `cedar`
1796
+ * for best quality.
1797
+ */
1798
+ voice?: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | Output.ID;
1799
+ }
1800
+ namespace Output {
1801
+ /**
1802
+ * Custom voice reference.
1803
+ */
1804
+ interface ID {
1805
+ /**
1806
+ * The custom voice ID, e.g. `voice_1234`.
1807
+ */
1808
+ id: string;
1809
+ }
1810
+ }
1811
+ }
1812
+ /**
1813
+ * Give the model access to additional tools via remote Model Context Protocol
1814
+ * (MCP) servers.
1815
+ * [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
1816
+ */
1817
+ export interface RealtimeResponseCreateMcpTool {
1818
+ /**
1819
+ * A label for this MCP server, used to identify it in tool calls.
1820
+ */
1821
+ server_label: string;
1822
+ /**
1823
+ * The type of the MCP tool. Always `mcp`.
1824
+ */
1825
+ type: 'mcp';
1826
+ /**
1827
+ * List of allowed tool names or a filter object.
1828
+ */
1829
+ allowed_tools?: Array<string> | RealtimeResponseCreateMcpTool.McpToolFilter | null;
1830
+ /**
1831
+ * An OAuth access token that can be used with a remote MCP server, either with a
1832
+ * custom MCP server URL or a service connector. Your application must handle the
1833
+ * OAuth authorization flow and provide the token here.
1834
+ */
1835
+ authorization?: string;
1836
+ /**
1837
+ * Identifier for service connectors, like those available in ChatGPT. One of
1838
+ * `server_url` or `connector_id` must be provided. Learn more about service
1839
+ * connectors
1840
+ * [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1841
+ *
1842
+ * Currently supported `connector_id` values are:
1843
+ *
1844
+ * - Dropbox: `connector_dropbox`
1845
+ * - Gmail: `connector_gmail`
1846
+ * - Google Calendar: `connector_googlecalendar`
1847
+ * - Google Drive: `connector_googledrive`
1848
+ * - Microsoft Teams: `connector_microsoftteams`
1849
+ * - Outlook Calendar: `connector_outlookcalendar`
1850
+ * - Outlook Email: `connector_outlookemail`
1851
+ * - SharePoint: `connector_sharepoint`
1852
+ */
1853
+ connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
1854
+ /**
1855
+ * Whether this MCP tool is deferred and discovered via tool search.
1856
+ */
1857
+ defer_loading?: boolean;
1858
+ /**
1859
+ * Optional HTTP headers to send to the MCP server. Use for authentication or other
1860
+ * purposes.
1861
+ */
1862
+ headers?: {
1863
+ [key: string]: string;
1864
+ } | null;
1865
+ /**
1866
+ * Specify which of the MCP server's tools require approval.
1867
+ */
1868
+ require_approval?: RealtimeResponseCreateMcpTool.McpToolApprovalFilter | 'always' | 'never' | null;
1869
+ /**
1870
+ * Optional description of the MCP server, used to provide more context.
1871
+ */
1872
+ server_description?: string;
1873
+ /**
1874
+ * The URL for the MCP server. One of `server_url` or `connector_id` must be
1875
+ * provided.
1876
+ */
1877
+ server_url?: string;
1878
+ }
1879
+ export declare namespace RealtimeResponseCreateMcpTool {
1880
+ /**
1881
+ * A filter object to specify which tools are allowed.
1882
+ */
1883
+ interface McpToolFilter {
1884
+ /**
1885
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
1886
+ * is
1887
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
1888
+ * it will match this filter.
1889
+ */
1890
+ read_only?: boolean;
1891
+ /**
1892
+ * List of allowed tool names.
1893
+ */
1894
+ tool_names?: Array<string>;
1895
+ }
1896
+ /**
1897
+ * Specify which of the MCP server's tools require approval. Can be `always`,
1898
+ * `never`, or a filter object associated with tools that require approval.
1899
+ */
1900
+ interface McpToolApprovalFilter {
1901
+ /**
1902
+ * A filter object to specify which tools are allowed.
1903
+ */
1904
+ always?: McpToolApprovalFilter.Always;
1905
+ /**
1906
+ * A filter object to specify which tools are allowed.
1907
+ */
1908
+ never?: McpToolApprovalFilter.Never;
1909
+ }
1910
+ namespace McpToolApprovalFilter {
1911
+ /**
1912
+ * A filter object to specify which tools are allowed.
1913
+ */
1914
+ interface Always {
1915
+ /**
1916
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
1917
+ * is
1918
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
1919
+ * it will match this filter.
1920
+ */
1921
+ read_only?: boolean;
1922
+ /**
1923
+ * List of allowed tool names.
1924
+ */
1925
+ tool_names?: Array<string>;
1926
+ }
1927
+ /**
1928
+ * A filter object to specify which tools are allowed.
1929
+ */
1930
+ interface Never {
1931
+ /**
1932
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
1933
+ * is
1934
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
1935
+ * it will match this filter.
1936
+ */
1937
+ read_only?: boolean;
1938
+ /**
1939
+ * List of allowed tool names.
1940
+ */
1941
+ tool_names?: Array<string>;
1942
+ }
1943
+ }
1944
+ }
1945
+ /**
1946
+ * Create a new Realtime response with these parameters
1947
+ */
1948
+ export interface RealtimeResponseCreateParams {
1949
+ /**
1950
+ * Configuration for audio input and output.
1951
+ */
1952
+ audio?: RealtimeResponseCreateAudioOutput;
1953
+ /**
1954
+ * Controls which conversation the response is added to. Currently supports `auto`
1955
+ * and `none`, with `auto` as the default value. The `auto` value means that the
1956
+ * contents of the response will be added to the default conversation. Set this to
1957
+ * `none` to create an out-of-band response which will not add items to default
1958
+ * conversation.
1959
+ */
1960
+ conversation?: (string & {}) | 'auto' | 'none';
1961
+ /**
1962
+ * Input items to include in the prompt for the model. Using this field creates a
1963
+ * new context for this Response instead of using the default conversation. An
1964
+ * empty array `[]` will clear the context for this Response. Note that this can
1965
+ * include references to items that previously appeared in the session using their
1966
+ * id.
1967
+ */
1968
+ input?: Array<ConversationItem>;
1969
+ /**
1970
+ * The default system instructions (i.e. system message) prepended to model calls.
1971
+ * This field allows the client to guide the model on desired responses. The model
1972
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
1973
+ * "act friendly", "here are examples of good responses") and on audio behavior
1974
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
1975
+ * instructions are not guaranteed to be followed by the model, but they provide
1976
+ * guidance to the model on the desired behavior. Note that the server sets default
1977
+ * instructions which will be used if this field is not set and are visible in the
1978
+ * `session.created` event at the start of the session.
1979
+ */
1980
+ instructions?: string;
1981
+ /**
1982
+ * Maximum number of output tokens for a single assistant response, inclusive of
1983
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
1984
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
1985
+ */
1986
+ max_output_tokens?: number | 'inf';
1987
+ /**
1988
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
1989
+ * for storing additional information about the object in a structured format, and
1990
+ * querying for objects via API or the dashboard.
1991
+ *
1992
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
1993
+ * a maximum length of 512 characters.
1994
+ */
1995
+ metadata?: Shared.Metadata | null;
1996
+ /**
1997
+ * The set of modalities the model used to respond, currently the only possible
1998
+ * values are `[\"audio\"]`, `[\"text\"]`. Audio output always include a text
1999
+ * transcript. Setting the output to mode `text` will disable audio output from the
2000
+ * model.
2001
+ */
2002
+ output_modalities?: Array<'text' | 'audio'>;
2003
+ /**
2004
+ * Reference to a prompt template and its variables.
2005
+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
2006
+ */
2007
+ prompt?: ResponsesAPI.ResponsePrompt | null;
2008
+ /**
2009
+ * How the model chooses tools. Provide one of the string modes or force a specific
2010
+ * function/MCP tool.
2011
+ */
2012
+ tool_choice?: ResponsesAPI.ToolChoiceOptions | ResponsesAPI.ToolChoiceFunction | ResponsesAPI.ToolChoiceMcp;
2013
+ /**
2014
+ * Tools available to the model.
2015
+ */
2016
+ tools?: Array<RealtimeFunctionTool | RealtimeResponseCreateMcpTool>;
2017
+ }
2018
+ /**
2019
+ * Additional details about the status.
2020
+ */
2021
+ export interface RealtimeResponseStatus {
2022
+ /**
2023
+ * A description of the error that caused the response to fail, populated when the
2024
+ * `status` is `failed`.
2025
+ */
2026
+ error?: RealtimeResponseStatus.Error;
2027
+ /**
2028
+ * The reason the Response did not complete. For a `cancelled` Response, one of
2029
+ * `turn_detected` (the server VAD detected a new start of speech) or
2030
+ * `client_cancelled` (the client sent a cancel event). For an `incomplete`
2031
+ * Response, one of `max_output_tokens` or `content_filter` (the server-side safety
2032
+ * filter activated and cut off the response).
2033
+ */
2034
+ reason?: 'turn_detected' | 'client_cancelled' | 'max_output_tokens' | 'content_filter';
2035
+ /**
2036
+ * The type of error that caused the response to fail, corresponding with the
2037
+ * `status` field (`completed`, `cancelled`, `incomplete`, `failed`).
2038
+ */
2039
+ type?: 'completed' | 'cancelled' | 'incomplete' | 'failed';
2040
+ }
2041
+ export declare namespace RealtimeResponseStatus {
2042
+ /**
2043
+ * A description of the error that caused the response to fail, populated when the
2044
+ * `status` is `failed`.
2045
+ */
2046
+ interface Error {
2047
+ /**
2048
+ * Error code, if any.
2049
+ */
2050
+ code?: string;
2051
+ /**
2052
+ * The type of error.
2053
+ */
2054
+ type?: string;
2055
+ }
2056
+ }
2057
+ /**
2058
+ * Usage statistics for the Response, this will correspond to billing. A Realtime
2059
+ * API session will maintain a conversation context and append new Items to the
2060
+ * Conversation, thus output from previous turns (text and audio tokens) will
2061
+ * become the input for later turns.
2062
+ */
2063
+ export interface RealtimeResponseUsage {
2064
+ /**
2065
+ * Details about the input tokens used in the Response. Cached tokens are tokens
2066
+ * from previous turns in the conversation that are included as context for the
2067
+ * current response. Cached tokens here are counted as a subset of input tokens,
2068
+ * meaning input tokens will include cached and uncached tokens.
2069
+ */
2070
+ input_token_details?: RealtimeResponseUsageInputTokenDetails;
2071
+ /**
2072
+ * The number of input tokens used in the Response, including text and audio
2073
+ * tokens.
2074
+ */
2075
+ input_tokens?: number;
2076
+ /**
2077
+ * Details about the output tokens used in the Response.
2078
+ */
2079
+ output_token_details?: RealtimeResponseUsageOutputTokenDetails;
2080
+ /**
2081
+ * The number of output tokens sent in the Response, including text and audio
2082
+ * tokens.
2083
+ */
2084
+ output_tokens?: number;
2085
+ /**
2086
+ * The total number of tokens in the Response including input and output text and
2087
+ * audio tokens.
2088
+ */
2089
+ total_tokens?: number;
2090
+ }
2091
+ /**
2092
+ * Details about the input tokens used in the Response. Cached tokens are tokens
2093
+ * from previous turns in the conversation that are included as context for the
2094
+ * current response. Cached tokens here are counted as a subset of input tokens,
2095
+ * meaning input tokens will include cached and uncached tokens.
2096
+ */
2097
+ export interface RealtimeResponseUsageInputTokenDetails {
2098
+ /**
2099
+ * The number of audio tokens used as input for the Response.
2100
+ */
2101
+ audio_tokens?: number;
2102
+ /**
2103
+ * The number of cached tokens used as input for the Response.
2104
+ */
2105
+ cached_tokens?: number;
2106
+ /**
2107
+ * Details about the cached tokens used as input for the Response.
2108
+ */
2109
+ cached_tokens_details?: RealtimeResponseUsageInputTokenDetails.CachedTokensDetails;
2110
+ /**
2111
+ * The number of image tokens used as input for the Response.
2112
+ */
2113
+ image_tokens?: number;
2114
+ /**
2115
+ * The number of text tokens used as input for the Response.
2116
+ */
2117
+ text_tokens?: number;
2118
+ }
2119
+ export declare namespace RealtimeResponseUsageInputTokenDetails {
2120
+ /**
2121
+ * Details about the cached tokens used as input for the Response.
2122
+ */
2123
+ interface CachedTokensDetails {
2124
+ /**
2125
+ * The number of cached audio tokens used as input for the Response.
2126
+ */
2127
+ audio_tokens?: number;
2128
+ /**
2129
+ * The number of cached image tokens used as input for the Response.
2130
+ */
2131
+ image_tokens?: number;
2132
+ /**
2133
+ * The number of cached text tokens used as input for the Response.
2134
+ */
2135
+ text_tokens?: number;
2136
+ }
2137
+ }
2138
+ /**
2139
+ * Details about the output tokens used in the Response.
2140
+ */
2141
+ export interface RealtimeResponseUsageOutputTokenDetails {
2142
+ /**
2143
+ * The number of audio tokens used in the Response.
2144
+ */
2145
+ audio_tokens?: number;
2146
+ /**
2147
+ * The number of text tokens used in the Response.
2148
+ */
2149
+ text_tokens?: number;
2150
+ }
2151
+ /**
2152
+ * A realtime server event.
2153
+ */
2154
+ export type RealtimeServerEvent = ConversationCreatedEvent | ConversationItemCreatedEvent | ConversationItemDeletedEvent | ConversationItemInputAudioTranscriptionCompletedEvent | ConversationItemInputAudioTranscriptionDeltaEvent | ConversationItemInputAudioTranscriptionFailedEvent | RealtimeServerEvent.ConversationItemRetrieved | ConversationItemTruncatedEvent | RealtimeErrorEvent | InputAudioBufferClearedEvent | InputAudioBufferCommittedEvent | InputAudioBufferDtmfEventReceivedEvent | InputAudioBufferSpeechStartedEvent | InputAudioBufferSpeechStoppedEvent | RateLimitsUpdatedEvent | ResponseAudioDeltaEvent | ResponseAudioDoneEvent | ResponseAudioTranscriptDeltaEvent | ResponseAudioTranscriptDoneEvent | ResponseContentPartAddedEvent | ResponseContentPartDoneEvent | ResponseCreatedEvent | ResponseDoneEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseOutputItemAddedEvent | ResponseOutputItemDoneEvent | ResponseTextDeltaEvent | ResponseTextDoneEvent | SessionCreatedEvent | SessionUpdatedEvent | RealtimeServerEvent.OutputAudioBufferStarted | RealtimeServerEvent.OutputAudioBufferStopped | RealtimeServerEvent.OutputAudioBufferCleared | ConversationItemAdded | ConversationItemDone | InputAudioBufferTimeoutTriggered | ConversationItemInputAudioTranscriptionSegment | McpListToolsInProgress | McpListToolsCompleted | McpListToolsFailed | ResponseMcpCallArgumentsDelta | ResponseMcpCallArgumentsDone | ResponseMcpCallInProgress | ResponseMcpCallCompleted | ResponseMcpCallFailed;
2155
+ export declare namespace RealtimeServerEvent {
2156
+ /**
2157
+ * Returned when a conversation item is retrieved with
2158
+ * `conversation.item.retrieve`. This is provided as a way to fetch the server's
2159
+ * representation of an item, for example to get access to the post-processed audio
2160
+ * data after noise cancellation and VAD. It includes the full content of the Item,
2161
+ * including audio data.
2162
+ */
2163
+ interface ConversationItemRetrieved {
2164
+ /**
2165
+ * The unique ID of the server event.
2166
+ */
2167
+ event_id: string;
2168
+ /**
2169
+ * A single item within a Realtime conversation.
2170
+ */
2171
+ item: RealtimeAPI.ConversationItem;
2172
+ /**
2173
+ * The event type, must be `conversation.item.retrieved`.
2174
+ */
2175
+ type: 'conversation.item.retrieved';
2176
+ }
2177
+ /**
2178
+ * **WebRTC/SIP Only:** Emitted when the server begins streaming audio to the
2179
+ * client. This event is emitted after an audio content part has been added
2180
+ * (`response.content_part.added`) to the response.
2181
+ * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
2182
+ */
2183
+ interface OutputAudioBufferStarted {
2184
+ /**
2185
+ * The unique ID of the server event.
2186
+ */
2187
+ event_id: string;
2188
+ /**
2189
+ * The unique ID of the response that produced the audio.
2190
+ */
2191
+ response_id: string;
2192
+ /**
2193
+ * The event type, must be `output_audio_buffer.started`.
2194
+ */
2195
+ type: 'output_audio_buffer.started';
2196
+ }
2197
+ /**
2198
+ * **WebRTC/SIP Only:** Emitted when the output audio buffer has been completely
2199
+ * drained on the server, and no more audio is forthcoming. This event is emitted
2200
+ * after the full response data has been sent to the client (`response.done`).
2201
+ * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
2202
+ */
2203
+ interface OutputAudioBufferStopped {
2204
+ /**
2205
+ * The unique ID of the server event.
2206
+ */
2207
+ event_id: string;
2208
+ /**
2209
+ * The unique ID of the response that produced the audio.
2210
+ */
2211
+ response_id: string;
2212
+ /**
2213
+ * The event type, must be `output_audio_buffer.stopped`.
2214
+ */
2215
+ type: 'output_audio_buffer.stopped';
2216
+ }
2217
+ /**
2218
+ * **WebRTC/SIP Only:** Emitted when the output audio buffer is cleared. This
2219
+ * happens either in VAD mode when the user has interrupted
2220
+ * (`input_audio_buffer.speech_started`), or when the client has emitted the
2221
+ * `output_audio_buffer.clear` event to manually cut off the current audio
2222
+ * response.
2223
+ * [Learn more](https://platform.openai.com/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
2224
+ */
2225
+ interface OutputAudioBufferCleared {
2226
+ /**
2227
+ * The unique ID of the server event.
2228
+ */
2229
+ event_id: string;
2230
+ /**
2231
+ * The unique ID of the response that produced the audio.
2232
+ */
2233
+ response_id: string;
2234
+ /**
2235
+ * The event type, must be `output_audio_buffer.cleared`.
2236
+ */
2237
+ type: 'output_audio_buffer.cleared';
2238
+ }
2239
+ }
2240
+ /**
2241
+ * Realtime session object for the beta interface.
2242
+ */
2243
+ export interface RealtimeSession {
2244
+ /**
2245
+ * Unique identifier for the session that looks like `sess_1234567890abcdef`.
2246
+ */
2247
+ id?: string;
2248
+ /**
2249
+ * Expiration timestamp for the session, in seconds since epoch.
2250
+ */
2251
+ expires_at?: number;
2252
+ /**
2253
+ * Additional fields to include in server outputs.
2254
+ *
2255
+ * - `item.input_audio_transcription.logprobs`: Include logprobs for input audio
2256
+ * transcription.
2257
+ */
2258
+ include?: Array<'item.input_audio_transcription.logprobs'> | null;
2259
+ /**
2260
+ * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
2261
+ * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
2262
+ * (mono), and little-endian byte order.
2263
+ */
2264
+ input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
2265
+ /**
2266
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2267
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2268
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2269
+ * detection accuracy (reducing false positives) and model performance by improving
2270
+ * perception of the input audio.
2271
+ */
2272
+ input_audio_noise_reduction?: RealtimeSession.InputAudioNoiseReduction;
2273
+ /**
2274
+ * Configuration for input audio transcription, defaults to off and can be set to
2275
+ * `null` to turn off once on. Input audio transcription is not native to the
2276
+ * model, since the model consumes audio directly. Transcription runs
2277
+ * asynchronously through
2278
+ * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription)
2279
+ * and should be treated as guidance of input audio content rather than precisely
2280
+ * what the model heard. The client can optionally set the language and prompt for
2281
+ * transcription, these offer additional guidance to the transcription service.
2282
+ */
2283
+ input_audio_transcription?: AudioTranscription | null;
2284
+ /**
2285
+ * The default system instructions (i.e. system message) prepended to model calls.
2286
+ * This field allows the client to guide the model on desired responses. The model
2287
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
2288
+ * "act friendly", "here are examples of good responses") and on audio behavior
2289
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
2290
+ * instructions are not guaranteed to be followed by the model, but they provide
2291
+ * guidance to the model on the desired behavior.
2292
+ *
2293
+ * Note that the server sets default instructions which will be used if this field
2294
+ * is not set and are visible in the `session.created` event at the start of the
2295
+ * session.
2296
+ */
2297
+ instructions?: string;
2298
+ /**
2299
+ * Maximum number of output tokens for a single assistant response, inclusive of
2300
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
2301
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
2302
+ */
2303
+ max_response_output_tokens?: number | 'inf';
2304
+ /**
2305
+ * The set of modalities the model can respond with. To disable audio, set this to
2306
+ * ["text"].
2307
+ */
2308
+ modalities?: Array<'text' | 'audio'>;
2309
+ /**
2310
+ * The Realtime model used for this session.
2311
+ */
2312
+ model?: (string & {}) | 'gpt-realtime' | 'gpt-realtime-1.5' | 'gpt-realtime-2025-08-28' | 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17' | 'gpt-realtime-mini' | 'gpt-realtime-mini-2025-10-06' | 'gpt-realtime-mini-2025-12-15' | 'gpt-audio-1.5' | 'gpt-audio-mini' | 'gpt-audio-mini-2025-10-06' | 'gpt-audio-mini-2025-12-15';
2313
+ /**
2314
+ * The object type. Always `realtime.session`.
2315
+ */
2316
+ object?: 'realtime.session';
2317
+ /**
2318
+ * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
2319
+ * For `pcm16`, output audio is sampled at a rate of 24kHz.
2320
+ */
2321
+ output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
2322
+ /**
2323
+ * Reference to a prompt template and its variables.
2324
+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
2325
+ */
2326
+ prompt?: ResponsesAPI.ResponsePrompt | null;
2327
+ /**
2328
+ * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
2329
+ * minimum speed. 1.5 is the maximum speed. This value can only be changed in
2330
+ * between model turns, not while a response is in progress.
2331
+ */
2332
+ speed?: number;
2333
+ /**
2334
+ * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
2335
+ * temperature of 0.8 is highly recommended for best performance.
2336
+ */
2337
+ temperature?: number;
2338
+ /**
2339
+ * How the model chooses tools. Options are `auto`, `none`, `required`, or specify
2340
+ * a function.
2341
+ */
2342
+ tool_choice?: string;
2343
+ /**
2344
+ * Tools (functions) available to the model.
2345
+ */
2346
+ tools?: Array<RealtimeFunctionTool>;
2347
+ /**
2348
+ * Configuration options for tracing. Set to null to disable tracing. Once tracing
2349
+ * is enabled for a session, the configuration cannot be modified.
2350
+ *
2351
+ * `auto` will create a trace for the session with default values for the workflow
2352
+ * name, group id, and metadata.
2353
+ */
2354
+ tracing?: 'auto' | RealtimeSession.TracingConfiguration | null;
2355
+ /**
2356
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
2357
+ * set to `null` to turn off, in which case the client must manually trigger model
2358
+ * response.
2359
+ *
2360
+ * Server VAD means that the model will detect the start and end of speech based on
2361
+ * audio volume and respond at the end of user speech.
2362
+ *
2363
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
2364
+ * with VAD) to semantically estimate whether the user has finished speaking, then
2365
+ * dynamically sets a timeout based on this probability. For example, if user audio
2366
+ * trails off with "uhhm", the model will score a low probability of turn end and
2367
+ * wait longer for the user to continue speaking. This can be useful for more
2368
+ * natural conversations, but may have a higher latency.
2369
+ */
2370
+ turn_detection?: RealtimeSession.ServerVad | RealtimeSession.SemanticVad | null;
2371
+ /**
2372
+ * The voice the model uses to respond. Voice cannot be changed during the session
2373
+ * once the model has responded with audio at least once. Current voice options are
2374
+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`.
2375
+ */
2376
+ voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar';
2377
+ }
2378
+ export declare namespace RealtimeSession {
2379
+ /**
2380
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2381
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2382
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2383
+ * detection accuracy (reducing false positives) and model performance by improving
2384
+ * perception of the input audio.
2385
+ */
2386
+ interface InputAudioNoiseReduction {
2387
+ /**
2388
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
2389
+ * headphones, `far_field` is for far-field microphones such as laptop or
2390
+ * conference room microphones.
2391
+ */
2392
+ type?: RealtimeAPI.NoiseReductionType;
2393
+ }
2394
+ /**
2395
+ * Granular configuration for tracing.
2396
+ */
2397
+ interface TracingConfiguration {
2398
+ /**
2399
+ * The group id to attach to this trace to enable filtering and grouping in the
2400
+ * traces dashboard.
2401
+ */
2402
+ group_id?: string;
2403
+ /**
2404
+ * The arbitrary metadata to attach to this trace to enable filtering in the traces
2405
+ * dashboard.
2406
+ */
2407
+ metadata?: unknown;
2408
+ /**
2409
+ * The name of the workflow to attach to this trace. This is used to name the trace
2410
+ * in the traces dashboard.
2411
+ */
2412
+ workflow_name?: string;
2413
+ }
2414
+ /**
2415
+ * Server-side voice activity detection (VAD) which flips on when user speech is
2416
+ * detected and off after a period of silence.
2417
+ */
2418
+ interface ServerVad {
2419
+ /**
2420
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
2421
+ */
2422
+ type: 'server_vad';
2423
+ /**
2424
+ * Whether or not to automatically generate a response when a VAD stop event
2425
+ * occurs. If `interrupt_response` is set to `false` this may fail to create a
2426
+ * response if the model is already responding.
2427
+ *
2428
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2429
+ * will never respond automatically but VAD events will still be emitted.
2430
+ */
2431
+ create_response?: boolean;
2432
+ /**
2433
+ * Optional timeout after which a model response will be triggered automatically.
2434
+ * This is useful for situations in which a long pause from the user is unexpected,
2435
+ * such as a phone call. The model will effectively prompt the user to continue the
2436
+ * conversation based on the current context.
2437
+ *
2438
+ * The timeout value will be applied after the last model response's audio has
2439
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
2440
+ * duration.
2441
+ *
2442
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
2443
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
2444
+ * only supported for `server_vad` mode.
2445
+ */
2446
+ idle_timeout_ms?: number | null;
2447
+ /**
2448
+ * Whether or not to automatically interrupt (cancel) any ongoing response with
2449
+ * output to the default conversation (i.e. `conversation` of `auto`) when a VAD
2450
+ * start event occurs. If `true` then the response will be cancelled, otherwise it
2451
+ * will continue until complete.
2452
+ *
2453
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2454
+ * will never respond automatically but VAD events will still be emitted.
2455
+ */
2456
+ interrupt_response?: boolean;
2457
+ /**
2458
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
2459
+ * detected speech (in milliseconds). Defaults to 300ms.
2460
+ */
2461
+ prefix_padding_ms?: number;
2462
+ /**
2463
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
2464
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
2465
+ * more quickly, but may jump in on short pauses from the user.
2466
+ */
2467
+ silence_duration_ms?: number;
2468
+ /**
2469
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
2470
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
2471
+ * model, and thus might perform better in noisy environments.
2472
+ */
2473
+ threshold?: number;
2474
+ }
2475
+ /**
2476
+ * Server-side semantic turn detection which uses a model to determine when the
2477
+ * user has finished speaking.
2478
+ */
2479
+ interface SemanticVad {
2480
+ /**
2481
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
2482
+ */
2483
+ type: 'semantic_vad';
2484
+ /**
2485
+ * Whether or not to automatically generate a response when a VAD stop event
2486
+ * occurs.
2487
+ */
2488
+ create_response?: boolean;
2489
+ /**
2490
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
2491
+ * will wait longer for the user to continue speaking, `high` will respond more
2492
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
2493
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
2494
+ */
2495
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
2496
+ /**
2497
+ * Whether or not to automatically interrupt any ongoing response with output to
2498
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
2499
+ * occurs.
2500
+ */
2501
+ interrupt_response?: boolean;
2502
+ }
2503
+ }
2504
+ /**
2505
+ * Realtime session object configuration.
2506
+ */
2507
+ export interface RealtimeSessionCreateRequest {
2508
+ /**
2509
+ * The type of session to create. Always `realtime` for the Realtime API.
2510
+ */
2511
+ type: 'realtime';
2512
+ /**
2513
+ * Configuration for input and output audio.
2514
+ */
2515
+ audio?: RealtimeAudioConfig;
2516
+ /**
2517
+ * Additional fields to include in server outputs.
2518
+ *
2519
+ * `item.input_audio_transcription.logprobs`: Include logprobs for input audio
2520
+ * transcription.
2521
+ */
2522
+ include?: Array<'item.input_audio_transcription.logprobs'>;
2523
+ /**
2524
+ * The default system instructions (i.e. system message) prepended to model calls.
2525
+ * This field allows the client to guide the model on desired responses. The model
2526
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
2527
+ * "act friendly", "here are examples of good responses") and on audio behavior
2528
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
2529
+ * instructions are not guaranteed to be followed by the model, but they provide
2530
+ * guidance to the model on the desired behavior.
2531
+ *
2532
+ * Note that the server sets default instructions which will be used if this field
2533
+ * is not set and are visible in the `session.created` event at the start of the
2534
+ * session.
2535
+ */
2536
+ instructions?: string;
2537
+ /**
2538
+ * Maximum number of output tokens for a single assistant response, inclusive of
2539
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
2540
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
2541
+ */
2542
+ max_output_tokens?: number | 'inf';
2543
+ /**
2544
+ * The Realtime model used for this session.
2545
+ */
2546
+ model?: (string & {}) | 'gpt-realtime' | 'gpt-realtime-1.5' | 'gpt-realtime-2025-08-28' | 'gpt-4o-realtime-preview' | 'gpt-4o-realtime-preview-2024-10-01' | 'gpt-4o-realtime-preview-2024-12-17' | 'gpt-4o-realtime-preview-2025-06-03' | 'gpt-4o-mini-realtime-preview' | 'gpt-4o-mini-realtime-preview-2024-12-17' | 'gpt-realtime-mini' | 'gpt-realtime-mini-2025-10-06' | 'gpt-realtime-mini-2025-12-15' | 'gpt-audio-1.5' | 'gpt-audio-mini' | 'gpt-audio-mini-2025-10-06' | 'gpt-audio-mini-2025-12-15';
2547
+ /**
2548
+ * The set of modalities the model can respond with. It defaults to `["audio"]`,
2549
+ * indicating that the model will respond with audio plus a transcript. `["text"]`
2550
+ * can be used to make the model respond with text only. It is not possible to
2551
+ * request both `text` and `audio` at the same time.
2552
+ */
2553
+ output_modalities?: Array<'text' | 'audio'>;
2554
+ /**
2555
+ * Reference to a prompt template and its variables.
2556
+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
2557
+ */
2558
+ prompt?: ResponsesAPI.ResponsePrompt | null;
2559
+ /**
2560
+ * How the model chooses tools. Provide one of the string modes or force a specific
2561
+ * function/MCP tool.
2562
+ */
2563
+ tool_choice?: RealtimeToolChoiceConfig;
2564
+ /**
2565
+ * Tools available to the model.
2566
+ */
2567
+ tools?: RealtimeToolsConfig;
2568
+ /**
2569
+ * Realtime API can write session traces to the
2570
+ * [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
2571
+ * tracing is enabled for a session, the configuration cannot be modified.
2572
+ *
2573
+ * `auto` will create a trace for the session with default values for the workflow
2574
+ * name, group id, and metadata.
2575
+ */
2576
+ tracing?: RealtimeTracingConfig | null;
2577
+ /**
2578
+ * When the number of tokens in a conversation exceeds the model's input token
2579
+ * limit, the conversation be truncated, meaning messages (starting from the
2580
+ * oldest) will not be included in the model's context. A 32k context model with
2581
+ * 4,096 max output tokens can only include 28,224 tokens in the context before
2582
+ * truncation occurs.
2583
+ *
2584
+ * Clients can configure truncation behavior to truncate with a lower max token
2585
+ * limit, which is an effective way to control token usage and cost.
2586
+ *
2587
+ * Truncation will reduce the number of cached tokens on the next turn (busting the
2588
+ * cache), since messages are dropped from the beginning of the context. However,
2589
+ * clients can also configure truncation to retain messages up to a fraction of the
2590
+ * maximum context size, which will reduce the need for future truncations and thus
2591
+ * improve the cache rate.
2592
+ *
2593
+ * Truncation can be disabled entirely, which means the server will never truncate
2594
+ * but would instead return an error if the conversation exceeds the model's input
2595
+ * token limit.
2596
+ */
2597
+ truncation?: RealtimeTruncation;
2598
+ }
2599
+ /**
2600
+ * How the model chooses tools. Provide one of the string modes or force a specific
2601
+ * function/MCP tool.
2602
+ */
2603
+ export type RealtimeToolChoiceConfig = ResponsesAPI.ToolChoiceOptions | ResponsesAPI.ToolChoiceFunction | ResponsesAPI.ToolChoiceMcp;
2604
+ /**
2605
+ * Tools available to the model.
2606
+ */
2607
+ export type RealtimeToolsConfig = Array<RealtimeToolsConfigUnion>;
2608
+ /**
2609
+ * Give the model access to additional tools via remote Model Context Protocol
2610
+ * (MCP) servers.
2611
+ * [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
2612
+ */
2613
+ export type RealtimeToolsConfigUnion = RealtimeFunctionTool | RealtimeToolsConfigUnion.Mcp;
2614
+ export declare namespace RealtimeToolsConfigUnion {
2615
+ /**
2616
+ * Give the model access to additional tools via remote Model Context Protocol
2617
+ * (MCP) servers.
2618
+ * [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
2619
+ */
2620
+ interface Mcp {
2621
+ /**
2622
+ * A label for this MCP server, used to identify it in tool calls.
2623
+ */
2624
+ server_label: string;
2625
+ /**
2626
+ * The type of the MCP tool. Always `mcp`.
2627
+ */
2628
+ type: 'mcp';
2629
+ /**
2630
+ * List of allowed tool names or a filter object.
2631
+ */
2632
+ allowed_tools?: Array<string> | Mcp.McpToolFilter | null;
2633
+ /**
2634
+ * An OAuth access token that can be used with a remote MCP server, either with a
2635
+ * custom MCP server URL or a service connector. Your application must handle the
2636
+ * OAuth authorization flow and provide the token here.
2637
+ */
2638
+ authorization?: string;
2639
+ /**
2640
+ * Identifier for service connectors, like those available in ChatGPT. One of
2641
+ * `server_url` or `connector_id` must be provided. Learn more about service
2642
+ * connectors
2643
+ * [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
2644
+ *
2645
+ * Currently supported `connector_id` values are:
2646
+ *
2647
+ * - Dropbox: `connector_dropbox`
2648
+ * - Gmail: `connector_gmail`
2649
+ * - Google Calendar: `connector_googlecalendar`
2650
+ * - Google Drive: `connector_googledrive`
2651
+ * - Microsoft Teams: `connector_microsoftteams`
2652
+ * - Outlook Calendar: `connector_outlookcalendar`
2653
+ * - Outlook Email: `connector_outlookemail`
2654
+ * - SharePoint: `connector_sharepoint`
2655
+ */
2656
+ connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
2657
+ /**
2658
+ * Whether this MCP tool is deferred and discovered via tool search.
2659
+ */
2660
+ defer_loading?: boolean;
2661
+ /**
2662
+ * Optional HTTP headers to send to the MCP server. Use for authentication or other
2663
+ * purposes.
2664
+ */
2665
+ headers?: {
2666
+ [key: string]: string;
2667
+ } | null;
2668
+ /**
2669
+ * Specify which of the MCP server's tools require approval.
2670
+ */
2671
+ require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null;
2672
+ /**
2673
+ * Optional description of the MCP server, used to provide more context.
2674
+ */
2675
+ server_description?: string;
2676
+ /**
2677
+ * The URL for the MCP server. One of `server_url` or `connector_id` must be
2678
+ * provided.
2679
+ */
2680
+ server_url?: string;
2681
+ }
2682
+ namespace Mcp {
2683
+ /**
2684
+ * A filter object to specify which tools are allowed.
2685
+ */
2686
+ interface McpToolFilter {
2687
+ /**
2688
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
2689
+ * is
2690
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
2691
+ * it will match this filter.
2692
+ */
2693
+ read_only?: boolean;
2694
+ /**
2695
+ * List of allowed tool names.
2696
+ */
2697
+ tool_names?: Array<string>;
2698
+ }
2699
+ /**
2700
+ * Specify which of the MCP server's tools require approval. Can be `always`,
2701
+ * `never`, or a filter object associated with tools that require approval.
2702
+ */
2703
+ interface McpToolApprovalFilter {
2704
+ /**
2705
+ * A filter object to specify which tools are allowed.
2706
+ */
2707
+ always?: McpToolApprovalFilter.Always;
2708
+ /**
2709
+ * A filter object to specify which tools are allowed.
2710
+ */
2711
+ never?: McpToolApprovalFilter.Never;
2712
+ }
2713
+ namespace McpToolApprovalFilter {
2714
+ /**
2715
+ * A filter object to specify which tools are allowed.
2716
+ */
2717
+ interface Always {
2718
+ /**
2719
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
2720
+ * is
2721
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
2722
+ * it will match this filter.
2723
+ */
2724
+ read_only?: boolean;
2725
+ /**
2726
+ * List of allowed tool names.
2727
+ */
2728
+ tool_names?: Array<string>;
2729
+ }
2730
+ /**
2731
+ * A filter object to specify which tools are allowed.
2732
+ */
2733
+ interface Never {
2734
+ /**
2735
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
2736
+ * is
2737
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
2738
+ * it will match this filter.
2739
+ */
2740
+ read_only?: boolean;
2741
+ /**
2742
+ * List of allowed tool names.
2743
+ */
2744
+ tool_names?: Array<string>;
2745
+ }
2746
+ }
2747
+ }
2748
+ }
2749
+ /**
2750
+ * Realtime API can write session traces to the
2751
+ * [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
2752
+ * tracing is enabled for a session, the configuration cannot be modified.
2753
+ *
2754
+ * `auto` will create a trace for the session with default values for the workflow
2755
+ * name, group id, and metadata.
2756
+ */
2757
+ export type RealtimeTracingConfig = 'auto' | RealtimeTracingConfig.TracingConfiguration;
2758
+ export declare namespace RealtimeTracingConfig {
2759
+ /**
2760
+ * Granular configuration for tracing.
2761
+ */
2762
+ interface TracingConfiguration {
2763
+ /**
2764
+ * The group id to attach to this trace to enable filtering and grouping in the
2765
+ * Traces Dashboard.
2766
+ */
2767
+ group_id?: string;
2768
+ /**
2769
+ * The arbitrary metadata to attach to this trace to enable filtering in the Traces
2770
+ * Dashboard.
2771
+ */
2772
+ metadata?: unknown;
2773
+ /**
2774
+ * The name of the workflow to attach to this trace. This is used to name the trace
2775
+ * in the Traces Dashboard.
2776
+ */
2777
+ workflow_name?: string;
2778
+ }
2779
+ }
2780
+ /**
2781
+ * Configuration for input and output audio.
2782
+ */
2783
+ export interface RealtimeTranscriptionSessionAudio {
2784
+ input?: RealtimeTranscriptionSessionAudioInput;
2785
+ }
2786
+ export interface RealtimeTranscriptionSessionAudioInput {
2787
+ /**
2788
+ * The PCM audio format. Only a 24kHz sample rate is supported.
2789
+ */
2790
+ format?: RealtimeAudioFormats;
2791
+ /**
2792
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2793
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2794
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2795
+ * detection accuracy (reducing false positives) and model performance by improving
2796
+ * perception of the input audio.
2797
+ */
2798
+ noise_reduction?: RealtimeTranscriptionSessionAudioInput.NoiseReduction;
2799
+ /**
2800
+ * Configuration for input audio transcription, defaults to off and can be set to
2801
+ * `null` to turn off once on. Input audio transcription is not native to the
2802
+ * model, since the model consumes audio directly. Transcription runs
2803
+ * asynchronously through
2804
+ * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription)
2805
+ * and should be treated as guidance of input audio content rather than precisely
2806
+ * what the model heard. The client can optionally set the language and prompt for
2807
+ * transcription, these offer additional guidance to the transcription service.
2808
+ */
2809
+ transcription?: AudioTranscription;
2810
+ /**
2811
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
2812
+ * set to `null` to turn off, in which case the client must manually trigger model
2813
+ * response.
2814
+ *
2815
+ * Server VAD means that the model will detect the start and end of speech based on
2816
+ * audio volume and respond at the end of user speech.
2817
+ *
2818
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
2819
+ * with VAD) to semantically estimate whether the user has finished speaking, then
2820
+ * dynamically sets a timeout based on this probability. For example, if user audio
2821
+ * trails off with "uhhm", the model will score a low probability of turn end and
2822
+ * wait longer for the user to continue speaking. This can be useful for more
2823
+ * natural conversations, but may have a higher latency.
2824
+ */
2825
+ turn_detection?: RealtimeTranscriptionSessionAudioInputTurnDetection | null;
2826
+ }
2827
+ export declare namespace RealtimeTranscriptionSessionAudioInput {
2828
+ /**
2829
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2830
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2831
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2832
+ * detection accuracy (reducing false positives) and model performance by improving
2833
+ * perception of the input audio.
2834
+ */
2835
+ interface NoiseReduction {
2836
+ /**
2837
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
2838
+ * headphones, `far_field` is for far-field microphones such as laptop or
2839
+ * conference room microphones.
2840
+ */
2841
+ type?: RealtimeAPI.NoiseReductionType;
2842
+ }
2843
+ }
2844
+ /**
2845
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
2846
+ * set to `null` to turn off, in which case the client must manually trigger model
2847
+ * response.
2848
+ *
2849
+ * Server VAD means that the model will detect the start and end of speech based on
2850
+ * audio volume and respond at the end of user speech.
2851
+ *
2852
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
2853
+ * with VAD) to semantically estimate whether the user has finished speaking, then
2854
+ * dynamically sets a timeout based on this probability. For example, if user audio
2855
+ * trails off with "uhhm", the model will score a low probability of turn end and
2856
+ * wait longer for the user to continue speaking. This can be useful for more
2857
+ * natural conversations, but may have a higher latency.
2858
+ */
2859
+ export type RealtimeTranscriptionSessionAudioInputTurnDetection = RealtimeTranscriptionSessionAudioInputTurnDetection.ServerVad | RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad;
2860
+ export declare namespace RealtimeTranscriptionSessionAudioInputTurnDetection {
2861
+ /**
2862
+ * Server-side voice activity detection (VAD) which flips on when user speech is
2863
+ * detected and off after a period of silence.
2864
+ */
2865
+ interface ServerVad {
2866
+ /**
2867
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
2868
+ */
2869
+ type: 'server_vad';
2870
+ /**
2871
+ * Whether or not to automatically generate a response when a VAD stop event
2872
+ * occurs. If `interrupt_response` is set to `false` this may fail to create a
2873
+ * response if the model is already responding.
2874
+ *
2875
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2876
+ * will never respond automatically but VAD events will still be emitted.
2877
+ */
2878
+ create_response?: boolean;
2879
+ /**
2880
+ * Optional timeout after which a model response will be triggered automatically.
2881
+ * This is useful for situations in which a long pause from the user is unexpected,
2882
+ * such as a phone call. The model will effectively prompt the user to continue the
2883
+ * conversation based on the current context.
2884
+ *
2885
+ * The timeout value will be applied after the last model response's audio has
2886
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
2887
+ * duration.
2888
+ *
2889
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
2890
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
2891
+ * only supported for `server_vad` mode.
2892
+ */
2893
+ idle_timeout_ms?: number | null;
2894
+ /**
2895
+ * Whether or not to automatically interrupt (cancel) any ongoing response with
2896
+ * output to the default conversation (i.e. `conversation` of `auto`) when a VAD
2897
+ * start event occurs. If `true` then the response will be cancelled, otherwise it
2898
+ * will continue until complete.
2899
+ *
2900
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2901
+ * will never respond automatically but VAD events will still be emitted.
2902
+ */
2903
+ interrupt_response?: boolean;
2904
+ /**
2905
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
2906
+ * detected speech (in milliseconds). Defaults to 300ms.
2907
+ */
2908
+ prefix_padding_ms?: number;
2909
+ /**
2910
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
2911
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
2912
+ * more quickly, but may jump in on short pauses from the user.
2913
+ */
2914
+ silence_duration_ms?: number;
2915
+ /**
2916
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
2917
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
2918
+ * model, and thus might perform better in noisy environments.
2919
+ */
2920
+ threshold?: number;
2921
+ }
2922
+ /**
2923
+ * Server-side semantic turn detection which uses a model to determine when the
2924
+ * user has finished speaking.
2925
+ */
2926
+ interface SemanticVad {
2927
+ /**
2928
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
2929
+ */
2930
+ type: 'semantic_vad';
2931
+ /**
2932
+ * Whether or not to automatically generate a response when a VAD stop event
2933
+ * occurs.
2934
+ */
2935
+ create_response?: boolean;
2936
+ /**
2937
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
2938
+ * will wait longer for the user to continue speaking, `high` will respond more
2939
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
2940
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
2941
+ */
2942
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
2943
+ /**
2944
+ * Whether or not to automatically interrupt any ongoing response with output to
2945
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
2946
+ * occurs.
2947
+ */
2948
+ interrupt_response?: boolean;
2949
+ }
2950
+ }
2951
+ /**
2952
+ * Realtime transcription session object configuration.
2953
+ */
2954
+ export interface RealtimeTranscriptionSessionCreateRequest {
2955
+ /**
2956
+ * The type of session to create. Always `transcription` for transcription
2957
+ * sessions.
2958
+ */
2959
+ type: 'transcription';
2960
+ /**
2961
+ * Configuration for input and output audio.
2962
+ */
2963
+ audio?: RealtimeTranscriptionSessionAudio;
2964
+ /**
2965
+ * Additional fields to include in server outputs.
2966
+ *
2967
+ * `item.input_audio_transcription.logprobs`: Include logprobs for input audio
2968
+ * transcription.
2969
+ */
2970
+ include?: Array<'item.input_audio_transcription.logprobs'>;
2971
+ }
2972
+ /**
2973
+ * When the number of tokens in a conversation exceeds the model's input token
2974
+ * limit, the conversation be truncated, meaning messages (starting from the
2975
+ * oldest) will not be included in the model's context. A 32k context model with
2976
+ * 4,096 max output tokens can only include 28,224 tokens in the context before
2977
+ * truncation occurs.
2978
+ *
2979
+ * Clients can configure truncation behavior to truncate with a lower max token
2980
+ * limit, which is an effective way to control token usage and cost.
2981
+ *
2982
+ * Truncation will reduce the number of cached tokens on the next turn (busting the
2983
+ * cache), since messages are dropped from the beginning of the context. However,
2984
+ * clients can also configure truncation to retain messages up to a fraction of the
2985
+ * maximum context size, which will reduce the need for future truncations and thus
2986
+ * improve the cache rate.
2987
+ *
2988
+ * Truncation can be disabled entirely, which means the server will never truncate
2989
+ * but would instead return an error if the conversation exceeds the model's input
2990
+ * token limit.
2991
+ */
2992
+ export type RealtimeTruncation = 'auto' | 'disabled' | RealtimeTruncationRetentionRatio;
2993
+ /**
2994
+ * Retain a fraction of the conversation tokens when the conversation exceeds the
2995
+ * input token limit. This allows you to amortize truncations across multiple
2996
+ * turns, which can help improve cached token usage.
2997
+ */
2998
+ export interface RealtimeTruncationRetentionRatio {
2999
+ /**
3000
+ * Fraction of post-instruction conversation tokens to retain (`0.0` - `1.0`) when
3001
+ * the conversation exceeds the input token limit. Setting this to `0.8` means that
3002
+ * messages will be dropped until 80% of the maximum allowed tokens are used. This
3003
+ * helps reduce the frequency of truncations and improve cache rates.
3004
+ */
3005
+ retention_ratio: number;
3006
+ /**
3007
+ * Use retention ratio truncation.
3008
+ */
3009
+ type: 'retention_ratio';
3010
+ /**
3011
+ * Optional custom token limits for this truncation strategy. If not provided, the
3012
+ * model's default token limits will be used.
3013
+ */
3014
+ token_limits?: RealtimeTruncationRetentionRatio.TokenLimits;
3015
+ }
3016
+ export declare namespace RealtimeTruncationRetentionRatio {
3017
+ /**
3018
+ * Optional custom token limits for this truncation strategy. If not provided, the
3019
+ * model's default token limits will be used.
3020
+ */
3021
+ interface TokenLimits {
3022
+ /**
3023
+ * Maximum tokens allowed in the conversation after instructions (which including
3024
+ * tool definitions). For example, setting this to 5,000 would mean that truncation
3025
+ * would occur when the conversation exceeds 5,000 tokens after instructions. This
3026
+ * cannot be higher than the model's context window size minus the maximum output
3027
+ * tokens.
3028
+ */
3029
+ post_instructions?: number;
3030
+ }
3031
+ }
3032
+ /**
3033
+ * Returned when the model-generated audio is updated.
3034
+ */
3035
+ export interface ResponseAudioDeltaEvent {
3036
+ /**
3037
+ * The index of the content part in the item's content array.
3038
+ */
3039
+ content_index: number;
3040
+ /**
3041
+ * Base64-encoded audio data delta.
3042
+ */
3043
+ delta: string;
3044
+ /**
3045
+ * The unique ID of the server event.
3046
+ */
3047
+ event_id: string;
3048
+ /**
3049
+ * The ID of the item.
3050
+ */
3051
+ item_id: string;
3052
+ /**
3053
+ * The index of the output item in the response.
3054
+ */
3055
+ output_index: number;
3056
+ /**
3057
+ * The ID of the response.
3058
+ */
3059
+ response_id: string;
3060
+ /**
3061
+ * The event type, must be `response.output_audio.delta`.
3062
+ */
3063
+ type: 'response.output_audio.delta';
3064
+ }
3065
+ /**
3066
+ * Returned when the model-generated audio is done. Also emitted when a Response is
3067
+ * interrupted, incomplete, or cancelled.
3068
+ */
3069
+ export interface ResponseAudioDoneEvent {
3070
+ /**
3071
+ * The index of the content part in the item's content array.
3072
+ */
3073
+ content_index: number;
3074
+ /**
3075
+ * The unique ID of the server event.
3076
+ */
3077
+ event_id: string;
3078
+ /**
3079
+ * The ID of the item.
3080
+ */
3081
+ item_id: string;
3082
+ /**
3083
+ * The index of the output item in the response.
3084
+ */
3085
+ output_index: number;
3086
+ /**
3087
+ * The ID of the response.
3088
+ */
3089
+ response_id: string;
3090
+ /**
3091
+ * The event type, must be `response.output_audio.done`.
3092
+ */
3093
+ type: 'response.output_audio.done';
3094
+ }
3095
+ /**
3096
+ * Returned when the model-generated transcription of audio output is updated.
3097
+ */
3098
+ export interface ResponseAudioTranscriptDeltaEvent {
3099
+ /**
3100
+ * The index of the content part in the item's content array.
3101
+ */
3102
+ content_index: number;
3103
+ /**
3104
+ * The transcript delta.
3105
+ */
3106
+ delta: string;
3107
+ /**
3108
+ * The unique ID of the server event.
3109
+ */
3110
+ event_id: string;
3111
+ /**
3112
+ * The ID of the item.
3113
+ */
3114
+ item_id: string;
3115
+ /**
3116
+ * The index of the output item in the response.
3117
+ */
3118
+ output_index: number;
3119
+ /**
3120
+ * The ID of the response.
3121
+ */
3122
+ response_id: string;
3123
+ /**
3124
+ * The event type, must be `response.output_audio_transcript.delta`.
3125
+ */
3126
+ type: 'response.output_audio_transcript.delta';
3127
+ }
3128
+ /**
3129
+ * Returned when the model-generated transcription of audio output is done
3130
+ * streaming. Also emitted when a Response is interrupted, incomplete, or
3131
+ * cancelled.
3132
+ */
3133
+ export interface ResponseAudioTranscriptDoneEvent {
3134
+ /**
3135
+ * The index of the content part in the item's content array.
3136
+ */
3137
+ content_index: number;
3138
+ /**
3139
+ * The unique ID of the server event.
3140
+ */
3141
+ event_id: string;
3142
+ /**
3143
+ * The ID of the item.
3144
+ */
3145
+ item_id: string;
3146
+ /**
3147
+ * The index of the output item in the response.
3148
+ */
3149
+ output_index: number;
3150
+ /**
3151
+ * The ID of the response.
3152
+ */
3153
+ response_id: string;
3154
+ /**
3155
+ * The final transcript of the audio.
3156
+ */
3157
+ transcript: string;
3158
+ /**
3159
+ * The event type, must be `response.output_audio_transcript.done`.
3160
+ */
3161
+ type: 'response.output_audio_transcript.done';
3162
+ }
3163
+ /**
3164
+ * Send this event to cancel an in-progress response. The server will respond with
3165
+ * a `response.done` event with a status of `response.status=cancelled`. If there
3166
+ * is no response to cancel, the server will respond with an error. It's safe to
3167
+ * call `response.cancel` even if no response is in progress, an error will be
3168
+ * returned the session will remain unaffected.
3169
+ */
3170
+ export interface ResponseCancelEvent {
3171
+ /**
3172
+ * The event type, must be `response.cancel`.
3173
+ */
3174
+ type: 'response.cancel';
3175
+ /**
3176
+ * Optional client-generated ID used to identify this event.
3177
+ */
3178
+ event_id?: string;
3179
+ /**
3180
+ * A specific response ID to cancel - if not provided, will cancel an in-progress
3181
+ * response in the default conversation.
3182
+ */
3183
+ response_id?: string;
3184
+ }
3185
+ /**
3186
+ * Returned when a new content part is added to an assistant message item during
3187
+ * response generation.
3188
+ */
3189
+ export interface ResponseContentPartAddedEvent {
3190
+ /**
3191
+ * The index of the content part in the item's content array.
3192
+ */
3193
+ content_index: number;
3194
+ /**
3195
+ * The unique ID of the server event.
3196
+ */
3197
+ event_id: string;
3198
+ /**
3199
+ * The ID of the item to which the content part was added.
3200
+ */
3201
+ item_id: string;
3202
+ /**
3203
+ * The index of the output item in the response.
3204
+ */
3205
+ output_index: number;
3206
+ /**
3207
+ * The content part that was added.
3208
+ */
3209
+ part: ResponseContentPartAddedEvent.Part;
3210
+ /**
3211
+ * The ID of the response.
3212
+ */
3213
+ response_id: string;
3214
+ /**
3215
+ * The event type, must be `response.content_part.added`.
3216
+ */
3217
+ type: 'response.content_part.added';
3218
+ }
3219
+ export declare namespace ResponseContentPartAddedEvent {
3220
+ /**
3221
+ * The content part that was added.
3222
+ */
3223
+ interface Part {
3224
+ /**
3225
+ * Base64-encoded audio data (if type is "audio").
3226
+ */
3227
+ audio?: string;
3228
+ /**
3229
+ * The text content (if type is "text").
3230
+ */
3231
+ text?: string;
3232
+ /**
3233
+ * The transcript of the audio (if type is "audio").
3234
+ */
3235
+ transcript?: string;
3236
+ /**
3237
+ * The content type ("text", "audio").
3238
+ */
3239
+ type?: 'text' | 'audio';
3240
+ }
3241
+ }
3242
+ /**
3243
+ * Returned when a content part is done streaming in an assistant message item.
3244
+ * Also emitted when a Response is interrupted, incomplete, or cancelled.
3245
+ */
3246
+ export interface ResponseContentPartDoneEvent {
3247
+ /**
3248
+ * The index of the content part in the item's content array.
3249
+ */
3250
+ content_index: number;
3251
+ /**
3252
+ * The unique ID of the server event.
3253
+ */
3254
+ event_id: string;
3255
+ /**
3256
+ * The ID of the item.
3257
+ */
3258
+ item_id: string;
3259
+ /**
3260
+ * The index of the output item in the response.
3261
+ */
3262
+ output_index: number;
3263
+ /**
3264
+ * The content part that is done.
3265
+ */
3266
+ part: ResponseContentPartDoneEvent.Part;
3267
+ /**
3268
+ * The ID of the response.
3269
+ */
3270
+ response_id: string;
3271
+ /**
3272
+ * The event type, must be `response.content_part.done`.
3273
+ */
3274
+ type: 'response.content_part.done';
3275
+ }
3276
+ export declare namespace ResponseContentPartDoneEvent {
3277
+ /**
3278
+ * The content part that is done.
3279
+ */
3280
+ interface Part {
3281
+ /**
3282
+ * Base64-encoded audio data (if type is "audio").
3283
+ */
3284
+ audio?: string;
3285
+ /**
3286
+ * The text content (if type is "text").
3287
+ */
3288
+ text?: string;
3289
+ /**
3290
+ * The transcript of the audio (if type is "audio").
3291
+ */
3292
+ transcript?: string;
3293
+ /**
3294
+ * The content type ("text", "audio").
3295
+ */
3296
+ type?: 'text' | 'audio';
3297
+ }
3298
+ }
3299
+ /**
3300
+ * This event instructs the server to create a Response, which means triggering
3301
+ * model inference. When in Server VAD mode, the server will create Responses
3302
+ * automatically.
3303
+ *
3304
+ * A Response will include at least one Item, and may have two, in which case the
3305
+ * second will be a function call. These Items will be appended to the conversation
3306
+ * history by default.
3307
+ *
3308
+ * The server will respond with a `response.created` event, events for Items and
3309
+ * content created, and finally a `response.done` event to indicate the Response is
3310
+ * complete.
3311
+ *
3312
+ * The `response.create` event includes inference configuration like `instructions`
3313
+ * and `tools`. If these are set, they will override the Session's configuration
3314
+ * for this Response only.
3315
+ *
3316
+ * Responses can be created out-of-band of the default Conversation, meaning that
3317
+ * they can have arbitrary input, and it's possible to disable writing the output
3318
+ * to the Conversation. Only one Response can write to the default Conversation at
3319
+ * a time, but otherwise multiple Responses can be created in parallel. The
3320
+ * `metadata` field is a good way to disambiguate multiple simultaneous Responses.
3321
+ *
3322
+ * Clients can set `conversation` to `none` to create a Response that does not
3323
+ * write to the default Conversation. Arbitrary input can be provided with the
3324
+ * `input` field, which is an array accepting raw Items and references to existing
3325
+ * Items.
3326
+ */
3327
+ export interface ResponseCreateEvent {
3328
+ /**
3329
+ * The event type, must be `response.create`.
3330
+ */
3331
+ type: 'response.create';
3332
+ /**
3333
+ * Optional client-generated ID used to identify this event.
3334
+ */
3335
+ event_id?: string;
3336
+ /**
3337
+ * Create a new Realtime response with these parameters
3338
+ */
3339
+ response?: RealtimeResponseCreateParams;
3340
+ }
3341
+ /**
3342
+ * Returned when a new Response is created. The first event of response creation,
3343
+ * where the response is in an initial state of `in_progress`.
3344
+ */
3345
+ export interface ResponseCreatedEvent {
3346
+ /**
3347
+ * The unique ID of the server event.
3348
+ */
3349
+ event_id: string;
3350
+ /**
3351
+ * The response resource.
3352
+ */
3353
+ response: RealtimeResponse;
3354
+ /**
3355
+ * The event type, must be `response.created`.
3356
+ */
3357
+ type: 'response.created';
3358
+ }
3359
+ /**
3360
+ * Returned when a Response is done streaming. Always emitted, no matter the final
3361
+ * state. The Response object included in the `response.done` event will include
3362
+ * all output Items in the Response but will omit the raw audio data.
3363
+ *
3364
+ * Clients should check the `status` field of the Response to determine if it was
3365
+ * successful (`completed`) or if there was another outcome: `cancelled`, `failed`,
3366
+ * or `incomplete`.
3367
+ *
3368
+ * A response will contain all output items that were generated during the
3369
+ * response, excluding any audio content.
3370
+ */
3371
+ export interface ResponseDoneEvent {
3372
+ /**
3373
+ * The unique ID of the server event.
3374
+ */
3375
+ event_id: string;
3376
+ /**
3377
+ * The response resource.
3378
+ */
3379
+ response: RealtimeResponse;
3380
+ /**
3381
+ * The event type, must be `response.done`.
3382
+ */
3383
+ type: 'response.done';
3384
+ }
3385
+ /**
3386
+ * Returned when the model-generated function call arguments are updated.
3387
+ */
3388
+ export interface ResponseFunctionCallArgumentsDeltaEvent {
3389
+ /**
3390
+ * The ID of the function call.
3391
+ */
3392
+ call_id: string;
3393
+ /**
3394
+ * The arguments delta as a JSON string.
3395
+ */
3396
+ delta: string;
3397
+ /**
3398
+ * The unique ID of the server event.
3399
+ */
3400
+ event_id: string;
3401
+ /**
3402
+ * The ID of the function call item.
3403
+ */
3404
+ item_id: string;
3405
+ /**
3406
+ * The index of the output item in the response.
3407
+ */
3408
+ output_index: number;
3409
+ /**
3410
+ * The ID of the response.
3411
+ */
3412
+ response_id: string;
3413
+ /**
3414
+ * The event type, must be `response.function_call_arguments.delta`.
3415
+ */
3416
+ type: 'response.function_call_arguments.delta';
3417
+ }
3418
+ /**
3419
+ * Returned when the model-generated function call arguments are done streaming.
3420
+ * Also emitted when a Response is interrupted, incomplete, or cancelled.
3421
+ */
3422
+ export interface ResponseFunctionCallArgumentsDoneEvent {
3423
+ /**
3424
+ * The final arguments as a JSON string.
3425
+ */
3426
+ arguments: string;
3427
+ /**
3428
+ * The ID of the function call.
3429
+ */
3430
+ call_id: string;
3431
+ /**
3432
+ * The unique ID of the server event.
3433
+ */
3434
+ event_id: string;
3435
+ /**
3436
+ * The ID of the function call item.
3437
+ */
3438
+ item_id: string;
3439
+ /**
3440
+ * The name of the function that was called.
3441
+ */
3442
+ name: string;
3443
+ /**
3444
+ * The index of the output item in the response.
3445
+ */
3446
+ output_index: number;
3447
+ /**
3448
+ * The ID of the response.
3449
+ */
3450
+ response_id: string;
3451
+ /**
3452
+ * The event type, must be `response.function_call_arguments.done`.
3453
+ */
3454
+ type: 'response.function_call_arguments.done';
3455
+ }
3456
+ /**
3457
+ * Returned when MCP tool call arguments are updated during response generation.
3458
+ */
3459
+ export interface ResponseMcpCallArgumentsDelta {
3460
+ /**
3461
+ * The JSON-encoded arguments delta.
3462
+ */
3463
+ delta: string;
3464
+ /**
3465
+ * The unique ID of the server event.
3466
+ */
3467
+ event_id: string;
3468
+ /**
3469
+ * The ID of the MCP tool call item.
3470
+ */
3471
+ item_id: string;
3472
+ /**
3473
+ * The index of the output item in the response.
3474
+ */
3475
+ output_index: number;
3476
+ /**
3477
+ * The ID of the response.
3478
+ */
3479
+ response_id: string;
3480
+ /**
3481
+ * The event type, must be `response.mcp_call_arguments.delta`.
3482
+ */
3483
+ type: 'response.mcp_call_arguments.delta';
3484
+ /**
3485
+ * If present, indicates the delta text was obfuscated.
3486
+ */
3487
+ obfuscation?: string | null;
3488
+ }
3489
+ /**
3490
+ * Returned when MCP tool call arguments are finalized during response generation.
3491
+ */
3492
+ export interface ResponseMcpCallArgumentsDone {
3493
+ /**
3494
+ * The final JSON-encoded arguments string.
3495
+ */
3496
+ arguments: string;
3497
+ /**
3498
+ * The unique ID of the server event.
3499
+ */
3500
+ event_id: string;
3501
+ /**
3502
+ * The ID of the MCP tool call item.
3503
+ */
3504
+ item_id: string;
3505
+ /**
3506
+ * The index of the output item in the response.
3507
+ */
3508
+ output_index: number;
3509
+ /**
3510
+ * The ID of the response.
3511
+ */
3512
+ response_id: string;
3513
+ /**
3514
+ * The event type, must be `response.mcp_call_arguments.done`.
3515
+ */
3516
+ type: 'response.mcp_call_arguments.done';
3517
+ }
3518
+ /**
3519
+ * Returned when an MCP tool call has completed successfully.
3520
+ */
3521
+ export interface ResponseMcpCallCompleted {
3522
+ /**
3523
+ * The unique ID of the server event.
3524
+ */
3525
+ event_id: string;
3526
+ /**
3527
+ * The ID of the MCP tool call item.
3528
+ */
3529
+ item_id: string;
3530
+ /**
3531
+ * The index of the output item in the response.
3532
+ */
3533
+ output_index: number;
3534
+ /**
3535
+ * The event type, must be `response.mcp_call.completed`.
3536
+ */
3537
+ type: 'response.mcp_call.completed';
3538
+ }
3539
+ /**
3540
+ * Returned when an MCP tool call has failed.
3541
+ */
3542
+ export interface ResponseMcpCallFailed {
3543
+ /**
3544
+ * The unique ID of the server event.
3545
+ */
3546
+ event_id: string;
3547
+ /**
3548
+ * The ID of the MCP tool call item.
3549
+ */
3550
+ item_id: string;
3551
+ /**
3552
+ * The index of the output item in the response.
3553
+ */
3554
+ output_index: number;
3555
+ /**
3556
+ * The event type, must be `response.mcp_call.failed`.
3557
+ */
3558
+ type: 'response.mcp_call.failed';
3559
+ }
3560
+ /**
3561
+ * Returned when an MCP tool call has started and is in progress.
3562
+ */
3563
+ export interface ResponseMcpCallInProgress {
3564
+ /**
3565
+ * The unique ID of the server event.
3566
+ */
3567
+ event_id: string;
3568
+ /**
3569
+ * The ID of the MCP tool call item.
3570
+ */
3571
+ item_id: string;
3572
+ /**
3573
+ * The index of the output item in the response.
3574
+ */
3575
+ output_index: number;
3576
+ /**
3577
+ * The event type, must be `response.mcp_call.in_progress`.
3578
+ */
3579
+ type: 'response.mcp_call.in_progress';
3580
+ }
3581
+ /**
3582
+ * Returned when a new Item is created during Response generation.
3583
+ */
3584
+ export interface ResponseOutputItemAddedEvent {
3585
+ /**
3586
+ * The unique ID of the server event.
3587
+ */
3588
+ event_id: string;
3589
+ /**
3590
+ * A single item within a Realtime conversation.
3591
+ */
3592
+ item: ConversationItem;
3593
+ /**
3594
+ * The index of the output item in the Response.
3595
+ */
3596
+ output_index: number;
3597
+ /**
3598
+ * The ID of the Response to which the item belongs.
3599
+ */
3600
+ response_id: string;
3601
+ /**
3602
+ * The event type, must be `response.output_item.added`.
3603
+ */
3604
+ type: 'response.output_item.added';
3605
+ }
3606
+ /**
3607
+ * Returned when an Item is done streaming. Also emitted when a Response is
3608
+ * interrupted, incomplete, or cancelled.
3609
+ */
3610
+ export interface ResponseOutputItemDoneEvent {
3611
+ /**
3612
+ * The unique ID of the server event.
3613
+ */
3614
+ event_id: string;
3615
+ /**
3616
+ * A single item within a Realtime conversation.
3617
+ */
3618
+ item: ConversationItem;
3619
+ /**
3620
+ * The index of the output item in the Response.
3621
+ */
3622
+ output_index: number;
3623
+ /**
3624
+ * The ID of the Response to which the item belongs.
3625
+ */
3626
+ response_id: string;
3627
+ /**
3628
+ * The event type, must be `response.output_item.done`.
3629
+ */
3630
+ type: 'response.output_item.done';
3631
+ }
3632
+ /**
3633
+ * Returned when the text value of an "output_text" content part is updated.
3634
+ */
3635
+ export interface ResponseTextDeltaEvent {
3636
+ /**
3637
+ * The index of the content part in the item's content array.
3638
+ */
3639
+ content_index: number;
3640
+ /**
3641
+ * The text delta.
3642
+ */
3643
+ delta: string;
3644
+ /**
3645
+ * The unique ID of the server event.
3646
+ */
3647
+ event_id: string;
3648
+ /**
3649
+ * The ID of the item.
3650
+ */
3651
+ item_id: string;
3652
+ /**
3653
+ * The index of the output item in the response.
3654
+ */
3655
+ output_index: number;
3656
+ /**
3657
+ * The ID of the response.
3658
+ */
3659
+ response_id: string;
3660
+ /**
3661
+ * The event type, must be `response.output_text.delta`.
3662
+ */
3663
+ type: 'response.output_text.delta';
3664
+ }
3665
+ /**
3666
+ * Returned when the text value of an "output_text" content part is done streaming.
3667
+ * Also emitted when a Response is interrupted, incomplete, or cancelled.
3668
+ */
3669
+ export interface ResponseTextDoneEvent {
3670
+ /**
3671
+ * The index of the content part in the item's content array.
3672
+ */
3673
+ content_index: number;
3674
+ /**
3675
+ * The unique ID of the server event.
3676
+ */
3677
+ event_id: string;
3678
+ /**
3679
+ * The ID of the item.
3680
+ */
3681
+ item_id: string;
3682
+ /**
3683
+ * The index of the output item in the response.
3684
+ */
3685
+ output_index: number;
3686
+ /**
3687
+ * The ID of the response.
3688
+ */
3689
+ response_id: string;
3690
+ /**
3691
+ * The final text content.
3692
+ */
3693
+ text: string;
3694
+ /**
3695
+ * The event type, must be `response.output_text.done`.
3696
+ */
3697
+ type: 'response.output_text.done';
3698
+ }
3699
+ /**
3700
+ * Returned when a Session is created. Emitted automatically when a new connection
3701
+ * is established as the first server event. This event will contain the default
3702
+ * Session configuration.
3703
+ */
3704
+ export interface SessionCreatedEvent {
3705
+ /**
3706
+ * The unique ID of the server event.
3707
+ */
3708
+ event_id: string;
3709
+ /**
3710
+ * The session configuration.
3711
+ */
3712
+ session: RealtimeSessionCreateRequest | RealtimeTranscriptionSessionCreateRequest;
3713
+ /**
3714
+ * The event type, must be `session.created`.
3715
+ */
3716
+ type: 'session.created';
3717
+ }
3718
+ /**
3719
+ * Send this event to update the session’s configuration. The client may send this
3720
+ * event at any time to update any field except for `voice` and `model`. `voice`
3721
+ * can be updated only if there have been no other audio outputs yet.
3722
+ *
3723
+ * When the server receives a `session.update`, it will respond with a
3724
+ * `session.updated` event showing the full, effective configuration. Only the
3725
+ * fields that are present in the `session.update` are updated. To clear a field
3726
+ * like `instructions`, pass an empty string. To clear a field like `tools`, pass
3727
+ * an empty array. To clear a field like `turn_detection`, pass `null`.
3728
+ */
3729
+ export interface SessionUpdateEvent {
3730
+ /**
3731
+ * Update the Realtime session. Choose either a realtime session or a transcription
3732
+ * session.
3733
+ */
3734
+ session: RealtimeSessionCreateRequest | RealtimeTranscriptionSessionCreateRequest;
3735
+ /**
3736
+ * The event type, must be `session.update`.
3737
+ */
3738
+ type: 'session.update';
3739
+ /**
3740
+ * Optional client-generated ID used to identify this event. This is an arbitrary
3741
+ * string that a client may assign. It will be passed back if there is an error
3742
+ * with the event, but the corresponding `session.updated` event will not include
3743
+ * it.
3744
+ */
3745
+ event_id?: string;
3746
+ }
3747
+ /**
3748
+ * Returned when a session is updated with a `session.update` event, unless there
3749
+ * is an error.
3750
+ */
3751
+ export interface SessionUpdatedEvent {
3752
+ /**
3753
+ * The unique ID of the server event.
3754
+ */
3755
+ event_id: string;
3756
+ /**
3757
+ * The session configuration.
3758
+ */
3759
+ session: RealtimeSessionCreateRequest | RealtimeTranscriptionSessionCreateRequest;
3760
+ /**
3761
+ * The event type, must be `session.updated`.
3762
+ */
3763
+ type: 'session.updated';
3764
+ }
3765
+ /**
3766
+ * Send this event to update a transcription session.
3767
+ */
3768
+ export interface TranscriptionSessionUpdate {
3769
+ /**
3770
+ * Realtime transcription session object configuration.
3771
+ */
3772
+ session: TranscriptionSessionUpdate.Session;
3773
+ /**
3774
+ * The event type, must be `transcription_session.update`.
3775
+ */
3776
+ type: 'transcription_session.update';
3777
+ /**
3778
+ * Optional client-generated ID used to identify this event.
3779
+ */
3780
+ event_id?: string;
3781
+ }
3782
+ export declare namespace TranscriptionSessionUpdate {
3783
+ /**
3784
+ * Realtime transcription session object configuration.
3785
+ */
3786
+ interface Session {
3787
+ /**
3788
+ * The set of items to include in the transcription. Current available items are:
3789
+ * `item.input_audio_transcription.logprobs`
3790
+ */
3791
+ include?: Array<'item.input_audio_transcription.logprobs'>;
3792
+ /**
3793
+ * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
3794
+ * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
3795
+ * (mono), and little-endian byte order.
3796
+ */
3797
+ input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
3798
+ /**
3799
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
3800
+ * off. Noise reduction filters audio added to the input audio buffer before it is
3801
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
3802
+ * detection accuracy (reducing false positives) and model performance by improving
3803
+ * perception of the input audio.
3804
+ */
3805
+ input_audio_noise_reduction?: Session.InputAudioNoiseReduction;
3806
+ /**
3807
+ * Configuration for input audio transcription. The client can optionally set the
3808
+ * language and prompt for transcription, these offer additional guidance to the
3809
+ * transcription service.
3810
+ */
3811
+ input_audio_transcription?: RealtimeAPI.AudioTranscription;
3812
+ /**
3813
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
3814
+ * means that the model will detect the start and end of speech based on audio
3815
+ * volume and respond at the end of user speech.
3816
+ */
3817
+ turn_detection?: Session.TurnDetection;
3818
+ }
3819
+ namespace Session {
3820
+ /**
3821
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
3822
+ * off. Noise reduction filters audio added to the input audio buffer before it is
3823
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
3824
+ * detection accuracy (reducing false positives) and model performance by improving
3825
+ * perception of the input audio.
3826
+ */
3827
+ interface InputAudioNoiseReduction {
3828
+ /**
3829
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
3830
+ * headphones, `far_field` is for far-field microphones such as laptop or
3831
+ * conference room microphones.
3832
+ */
3833
+ type?: RealtimeAPI.NoiseReductionType;
3834
+ }
3835
+ /**
3836
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
3837
+ * means that the model will detect the start and end of speech based on audio
3838
+ * volume and respond at the end of user speech.
3839
+ */
3840
+ interface TurnDetection {
3841
+ /**
3842
+ * Amount of audio to include before the VAD detected speech (in milliseconds).
3843
+ * Defaults to 300ms.
3844
+ */
3845
+ prefix_padding_ms?: number;
3846
+ /**
3847
+ * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.
3848
+ * With shorter values the model will respond more quickly, but may jump in on
3849
+ * short pauses from the user.
3850
+ */
3851
+ silence_duration_ms?: number;
3852
+ /**
3853
+ * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher
3854
+ * threshold will require louder audio to activate the model, and thus might
3855
+ * perform better in noisy environments.
3856
+ */
3857
+ threshold?: number;
3858
+ /**
3859
+ * Type of turn detection. Only `server_vad` is currently supported for
3860
+ * transcription sessions.
3861
+ */
3862
+ type?: 'server_vad';
3863
+ }
3864
+ }
3865
+ }
3866
+ /**
3867
+ * Returned when a transcription session is updated with a
3868
+ * `transcription_session.update` event, unless there is an error.
3869
+ */
3870
+ export interface TranscriptionSessionUpdatedEvent {
3871
+ /**
3872
+ * The unique ID of the server event.
3873
+ */
3874
+ event_id: string;
3875
+ /**
3876
+ * A new Realtime transcription session configuration.
3877
+ *
3878
+ * When a session is created on the server via REST API, the session object also
3879
+ * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is
3880
+ * not present when a session is updated via the WebSocket API.
3881
+ */
3882
+ session: TranscriptionSessionUpdatedEvent.Session;
3883
+ /**
3884
+ * The event type, must be `transcription_session.updated`.
3885
+ */
3886
+ type: 'transcription_session.updated';
3887
+ }
3888
+ export declare namespace TranscriptionSessionUpdatedEvent {
3889
+ /**
3890
+ * A new Realtime transcription session configuration.
3891
+ *
3892
+ * When a session is created on the server via REST API, the session object also
3893
+ * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is
3894
+ * not present when a session is updated via the WebSocket API.
3895
+ */
3896
+ interface Session {
3897
+ /**
3898
+ * Ephemeral key returned by the API. Only present when the session is created on
3899
+ * the server via REST API.
3900
+ */
3901
+ client_secret: Session.ClientSecret;
3902
+ /**
3903
+ * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
3904
+ */
3905
+ input_audio_format?: string;
3906
+ /**
3907
+ * Configuration of the transcription model.
3908
+ */
3909
+ input_audio_transcription?: RealtimeAPI.AudioTranscription;
3910
+ /**
3911
+ * The set of modalities the model can respond with. To disable audio, set this to
3912
+ * ["text"].
3913
+ */
3914
+ modalities?: Array<'text' | 'audio'>;
3915
+ /**
3916
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
3917
+ * means that the model will detect the start and end of speech based on audio
3918
+ * volume and respond at the end of user speech.
3919
+ */
3920
+ turn_detection?: Session.TurnDetection;
3921
+ }
3922
+ namespace Session {
3923
+ /**
3924
+ * Ephemeral key returned by the API. Only present when the session is created on
3925
+ * the server via REST API.
3926
+ */
3927
+ interface ClientSecret {
3928
+ /**
3929
+ * Timestamp for when the token expires. Currently, all tokens expire after one
3930
+ * minute.
3931
+ */
3932
+ expires_at: number;
3933
+ /**
3934
+ * Ephemeral key usable in client environments to authenticate connections to the
3935
+ * Realtime API. Use this in client-side environments rather than a standard API
3936
+ * token, which should only be used server-side.
3937
+ */
3938
+ value: string;
3939
+ }
3940
+ /**
3941
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
3942
+ * means that the model will detect the start and end of speech based on audio
3943
+ * volume and respond at the end of user speech.
3944
+ */
3945
+ interface TurnDetection {
3946
+ /**
3947
+ * Amount of audio to include before the VAD detected speech (in milliseconds).
3948
+ * Defaults to 300ms.
3949
+ */
3950
+ prefix_padding_ms?: number;
3951
+ /**
3952
+ * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.
3953
+ * With shorter values the model will respond more quickly, but may jump in on
3954
+ * short pauses from the user.
3955
+ */
3956
+ silence_duration_ms?: number;
3957
+ /**
3958
+ * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher
3959
+ * threshold will require louder audio to activate the model, and thus might
3960
+ * perform better in noisy environments.
3961
+ */
3962
+ threshold?: number;
3963
+ /**
3964
+ * Type of turn detection, only `server_vad` is currently supported.
3965
+ */
3966
+ type?: string;
3967
+ }
3968
+ }
3969
+ }
3970
+ export declare namespace Realtime {
3971
+ export { type AudioTranscription as AudioTranscription, type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemAdded as ConversationItemAdded, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemDone as ConversationItemDone, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemInputAudioTranscriptionSegment as ConversationItemInputAudioTranscriptionSegment, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferDtmfEventReceivedEvent as InputAudioBufferDtmfEventReceivedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type InputAudioBufferTimeoutTriggered as InputAudioBufferTimeoutTriggered, type LogProbProperties as LogProbProperties, type McpListToolsCompleted as McpListToolsCompleted, type McpListToolsFailed as McpListToolsFailed, type McpListToolsInProgress as McpListToolsInProgress, type NoiseReductionType as NoiseReductionType, type OutputAudioBufferClearEvent as OutputAudioBufferClearEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeAudioConfig as RealtimeAudioConfig, type RealtimeAudioConfigInput as RealtimeAudioConfigInput, type RealtimeAudioConfigOutput as RealtimeAudioConfigOutput, type RealtimeAudioFormats as RealtimeAudioFormats, type RealtimeAudioInputTurnDetection as RealtimeAudioInputTurnDetection, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeConversationItemAssistantMessage as RealtimeConversationItemAssistantMessage, type RealtimeConversationItemFunctionCall as RealtimeConversationItemFunctionCall, type RealtimeConversationItemFunctionCallOutput as RealtimeConversationItemFunctionCallOutput, type RealtimeConversationItemSystemMessage as RealtimeConversationItemSystemMessage, type RealtimeConversationItemUserMessage as RealtimeConversationItemUserMessage, type RealtimeError as RealtimeError, type RealtimeErrorEvent as RealtimeErrorEvent, type RealtimeFunctionTool as RealtimeFunctionTool, type RealtimeMcpApprovalRequest as RealtimeMcpApprovalRequest, type RealtimeMcpApprovalResponse as RealtimeMcpApprovalResponse, type RealtimeMcpListTools as RealtimeMcpListTools, type RealtimeMcpProtocolError as RealtimeMcpProtocolError, type RealtimeMcpToolCall as RealtimeMcpToolCall, type RealtimeMcpToolExecutionError as RealtimeMcpToolExecutionError, type RealtimeMcphttpError as RealtimeMcphttpError, type RealtimeResponse as RealtimeResponse, type RealtimeResponseCreateAudioOutput as RealtimeResponseCreateAudioOutput, type RealtimeResponseCreateMcpTool as RealtimeResponseCreateMcpTool, type RealtimeResponseCreateParams as RealtimeResponseCreateParams, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeResponseUsageInputTokenDetails as RealtimeResponseUsageInputTokenDetails, type RealtimeResponseUsageOutputTokenDetails as RealtimeResponseUsageOutputTokenDetails, type RealtimeServerEvent as RealtimeServerEvent, type RealtimeSession as RealtimeSession, type RealtimeSessionCreateRequest as RealtimeSessionCreateRequest, type RealtimeToolChoiceConfig as RealtimeToolChoiceConfig, type RealtimeToolsConfig as RealtimeToolsConfig, type RealtimeToolsConfigUnion as RealtimeToolsConfigUnion, type RealtimeTracingConfig as RealtimeTracingConfig, type RealtimeTranscriptionSessionAudio as RealtimeTranscriptionSessionAudio, type RealtimeTranscriptionSessionAudioInput as RealtimeTranscriptionSessionAudioInput, type RealtimeTranscriptionSessionAudioInputTurnDetection as RealtimeTranscriptionSessionAudioInputTurnDetection, type RealtimeTranscriptionSessionCreateRequest as RealtimeTranscriptionSessionCreateRequest, type RealtimeTruncation as RealtimeTruncation, type RealtimeTruncationRetentionRatio as RealtimeTruncationRetentionRatio, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseMcpCallArgumentsDelta as ResponseMcpCallArgumentsDelta, type ResponseMcpCallArgumentsDone as ResponseMcpCallArgumentsDone, type ResponseMcpCallCompleted as ResponseMcpCallCompleted, type ResponseMcpCallFailed as ResponseMcpCallFailed, type ResponseMcpCallInProgress as ResponseMcpCallInProgress, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, };
3972
+ export { ClientSecrets as ClientSecrets, type RealtimeSessionClientSecret as RealtimeSessionClientSecret, type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeTranscriptionSessionCreateResponse as RealtimeTranscriptionSessionCreateResponse, type RealtimeTranscriptionSessionTurnDetection as RealtimeTranscriptionSessionTurnDetection, type ClientSecretCreateResponse as ClientSecretCreateResponse, type ClientSecretCreateParams as ClientSecretCreateParams, };
3973
+ export { Calls as Calls, type CallAcceptParams as CallAcceptParams, type CallReferParams as CallReferParams, type CallRejectParams as CallRejectParams, };
3974
+ }
3975
+ //# sourceMappingURL=realtime.d.mts.map