@rebyteai/agent-sdk 0.2.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 (3522) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +6 -0
  3. package/README.md +45 -0
  4. package/UPSTREAM.md +38 -0
  5. package/_vendor/partial-json-parser/parser.d.mts +7 -0
  6. package/_vendor/partial-json-parser/parser.d.mts.map +1 -0
  7. package/_vendor/partial-json-parser/parser.d.ts +7 -0
  8. package/_vendor/partial-json-parser/parser.d.ts.map +1 -0
  9. package/_vendor/partial-json-parser/parser.js +263 -0
  10. package/_vendor/partial-json-parser/parser.js.map +1 -0
  11. package/_vendor/partial-json-parser/parser.mjs +258 -0
  12. package/_vendor/partial-json-parser/parser.mjs.map +1 -0
  13. package/_vendor/zod-to-json-schema/Options.d.mts +32 -0
  14. package/_vendor/zod-to-json-schema/Options.d.mts.map +1 -0
  15. package/_vendor/zod-to-json-schema/Options.d.ts +32 -0
  16. package/_vendor/zod-to-json-schema/Options.d.ts.map +1 -0
  17. package/_vendor/zod-to-json-schema/Options.js +49 -0
  18. package/_vendor/zod-to-json-schema/Options.js.map +1 -0
  19. package/_vendor/zod-to-json-schema/Options.mjs +45 -0
  20. package/_vendor/zod-to-json-schema/Options.mjs.map +1 -0
  21. package/_vendor/zod-to-json-schema/Refs.d.mts +21 -0
  22. package/_vendor/zod-to-json-schema/Refs.d.mts.map +1 -0
  23. package/_vendor/zod-to-json-schema/Refs.d.ts +21 -0
  24. package/_vendor/zod-to-json-schema/Refs.d.ts.map +1 -0
  25. package/_vendor/zod-to-json-schema/Refs.js +28 -0
  26. package/_vendor/zod-to-json-schema/Refs.js.map +1 -0
  27. package/_vendor/zod-to-json-schema/Refs.mjs +24 -0
  28. package/_vendor/zod-to-json-schema/Refs.mjs.map +1 -0
  29. package/_vendor/zod-to-json-schema/errorMessages.d.mts +12 -0
  30. package/_vendor/zod-to-json-schema/errorMessages.d.mts.map +1 -0
  31. package/_vendor/zod-to-json-schema/errorMessages.d.ts +12 -0
  32. package/_vendor/zod-to-json-schema/errorMessages.d.ts.map +1 -0
  33. package/_vendor/zod-to-json-schema/errorMessages.js +20 -0
  34. package/_vendor/zod-to-json-schema/errorMessages.js.map +1 -0
  35. package/_vendor/zod-to-json-schema/errorMessages.mjs +16 -0
  36. package/_vendor/zod-to-json-schema/errorMessages.mjs.map +1 -0
  37. package/_vendor/zod-to-json-schema/index.d.mts +38 -0
  38. package/_vendor/zod-to-json-schema/index.d.mts.map +1 -0
  39. package/_vendor/zod-to-json-schema/index.d.ts +38 -0
  40. package/_vendor/zod-to-json-schema/index.d.ts.map +1 -0
  41. package/_vendor/zod-to-json-schema/index.js +41 -0
  42. package/_vendor/zod-to-json-schema/index.js.map +1 -0
  43. package/_vendor/zod-to-json-schema/index.mjs +38 -0
  44. package/_vendor/zod-to-json-schema/index.mjs.map +1 -0
  45. package/_vendor/zod-to-json-schema/parseDef.d.mts +38 -0
  46. package/_vendor/zod-to-json-schema/parseDef.d.mts.map +1 -0
  47. package/_vendor/zod-to-json-schema/parseDef.d.ts +38 -0
  48. package/_vendor/zod-to-json-schema/parseDef.d.ts.map +1 -0
  49. package/_vendor/zod-to-json-schema/parseDef.js +270 -0
  50. package/_vendor/zod-to-json-schema/parseDef.js.map +1 -0
  51. package/_vendor/zod-to-json-schema/parseDef.mjs +267 -0
  52. package/_vendor/zod-to-json-schema/parseDef.mjs.map +1 -0
  53. package/_vendor/zod-to-json-schema/parsers/any.d.mts +3 -0
  54. package/_vendor/zod-to-json-schema/parsers/any.d.mts.map +1 -0
  55. package/_vendor/zod-to-json-schema/parsers/any.d.ts +3 -0
  56. package/_vendor/zod-to-json-schema/parsers/any.d.ts.map +1 -0
  57. package/_vendor/zod-to-json-schema/parsers/any.js +7 -0
  58. package/_vendor/zod-to-json-schema/parsers/any.js.map +1 -0
  59. package/_vendor/zod-to-json-schema/parsers/any.mjs +4 -0
  60. package/_vendor/zod-to-json-schema/parsers/any.mjs.map +1 -0
  61. package/_vendor/zod-to-json-schema/parsers/array.d.mts +13 -0
  62. package/_vendor/zod-to-json-schema/parsers/array.d.mts.map +1 -0
  63. package/_vendor/zod-to-json-schema/parsers/array.d.ts +13 -0
  64. package/_vendor/zod-to-json-schema/parsers/array.d.ts.map +1 -0
  65. package/_vendor/zod-to-json-schema/parsers/array.js +29 -0
  66. package/_vendor/zod-to-json-schema/parsers/array.js.map +1 -0
  67. package/_vendor/zod-to-json-schema/parsers/array.mjs +26 -0
  68. package/_vendor/zod-to-json-schema/parsers/array.mjs.map +1 -0
  69. package/_vendor/zod-to-json-schema/parsers/bigint.d.mts +15 -0
  70. package/_vendor/zod-to-json-schema/parsers/bigint.d.mts.map +1 -0
  71. package/_vendor/zod-to-json-schema/parsers/bigint.d.ts +15 -0
  72. package/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map +1 -0
  73. package/_vendor/zod-to-json-schema/parsers/bigint.js +57 -0
  74. package/_vendor/zod-to-json-schema/parsers/bigint.js.map +1 -0
  75. package/_vendor/zod-to-json-schema/parsers/bigint.mjs +54 -0
  76. package/_vendor/zod-to-json-schema/parsers/bigint.mjs.map +1 -0
  77. package/_vendor/zod-to-json-schema/parsers/boolean.d.mts +5 -0
  78. package/_vendor/zod-to-json-schema/parsers/boolean.d.mts.map +1 -0
  79. package/_vendor/zod-to-json-schema/parsers/boolean.d.ts +5 -0
  80. package/_vendor/zod-to-json-schema/parsers/boolean.d.ts.map +1 -0
  81. package/_vendor/zod-to-json-schema/parsers/boolean.js +9 -0
  82. package/_vendor/zod-to-json-schema/parsers/boolean.js.map +1 -0
  83. package/_vendor/zod-to-json-schema/parsers/boolean.mjs +6 -0
  84. package/_vendor/zod-to-json-schema/parsers/boolean.mjs.map +1 -0
  85. package/_vendor/zod-to-json-schema/parsers/branded.d.mts +4 -0
  86. package/_vendor/zod-to-json-schema/parsers/branded.d.mts.map +1 -0
  87. package/_vendor/zod-to-json-schema/parsers/branded.d.ts +4 -0
  88. package/_vendor/zod-to-json-schema/parsers/branded.d.ts.map +1 -0
  89. package/_vendor/zod-to-json-schema/parsers/branded.js +8 -0
  90. package/_vendor/zod-to-json-schema/parsers/branded.js.map +1 -0
  91. package/_vendor/zod-to-json-schema/parsers/branded.mjs +5 -0
  92. package/_vendor/zod-to-json-schema/parsers/branded.mjs.map +1 -0
  93. package/_vendor/zod-to-json-schema/parsers/catch.d.mts +4 -0
  94. package/_vendor/zod-to-json-schema/parsers/catch.d.mts.map +1 -0
  95. package/_vendor/zod-to-json-schema/parsers/catch.d.ts +4 -0
  96. package/_vendor/zod-to-json-schema/parsers/catch.d.ts.map +1 -0
  97. package/_vendor/zod-to-json-schema/parsers/catch.js +7 -0
  98. package/_vendor/zod-to-json-schema/parsers/catch.js.map +1 -0
  99. package/_vendor/zod-to-json-schema/parsers/catch.mjs +3 -0
  100. package/_vendor/zod-to-json-schema/parsers/catch.mjs.map +1 -0
  101. package/_vendor/zod-to-json-schema/parsers/date.d.mts +16 -0
  102. package/_vendor/zod-to-json-schema/parsers/date.d.mts.map +1 -0
  103. package/_vendor/zod-to-json-schema/parsers/date.d.ts +16 -0
  104. package/_vendor/zod-to-json-schema/parsers/date.d.ts.map +1 -0
  105. package/_vendor/zod-to-json-schema/parsers/date.js +55 -0
  106. package/_vendor/zod-to-json-schema/parsers/date.js.map +1 -0
  107. package/_vendor/zod-to-json-schema/parsers/date.mjs +52 -0
  108. package/_vendor/zod-to-json-schema/parsers/date.mjs.map +1 -0
  109. package/_vendor/zod-to-json-schema/parsers/default.d.mts +7 -0
  110. package/_vendor/zod-to-json-schema/parsers/default.d.mts.map +1 -0
  111. package/_vendor/zod-to-json-schema/parsers/default.d.ts +7 -0
  112. package/_vendor/zod-to-json-schema/parsers/default.d.ts.map +1 -0
  113. package/_vendor/zod-to-json-schema/parsers/default.js +11 -0
  114. package/_vendor/zod-to-json-schema/parsers/default.js.map +1 -0
  115. package/_vendor/zod-to-json-schema/parsers/default.mjs +8 -0
  116. package/_vendor/zod-to-json-schema/parsers/default.mjs.map +1 -0
  117. package/_vendor/zod-to-json-schema/parsers/effects.d.mts +5 -0
  118. package/_vendor/zod-to-json-schema/parsers/effects.d.mts.map +1 -0
  119. package/_vendor/zod-to-json-schema/parsers/effects.d.ts +5 -0
  120. package/_vendor/zod-to-json-schema/parsers/effects.d.ts.map +1 -0
  121. package/_vendor/zod-to-json-schema/parsers/effects.js +8 -0
  122. package/_vendor/zod-to-json-schema/parsers/effects.js.map +1 -0
  123. package/_vendor/zod-to-json-schema/parsers/effects.mjs +5 -0
  124. package/_vendor/zod-to-json-schema/parsers/effects.mjs.map +1 -0
  125. package/_vendor/zod-to-json-schema/parsers/enum.d.mts +7 -0
  126. package/_vendor/zod-to-json-schema/parsers/enum.d.mts.map +1 -0
  127. package/_vendor/zod-to-json-schema/parsers/enum.d.ts +7 -0
  128. package/_vendor/zod-to-json-schema/parsers/enum.d.ts.map +1 -0
  129. package/_vendor/zod-to-json-schema/parsers/enum.js +10 -0
  130. package/_vendor/zod-to-json-schema/parsers/enum.js.map +1 -0
  131. package/_vendor/zod-to-json-schema/parsers/enum.mjs +7 -0
  132. package/_vendor/zod-to-json-schema/parsers/enum.mjs.map +1 -0
  133. package/_vendor/zod-to-json-schema/parsers/intersection.d.mts +9 -0
  134. package/_vendor/zod-to-json-schema/parsers/intersection.d.mts.map +1 -0
  135. package/_vendor/zod-to-json-schema/parsers/intersection.d.ts +9 -0
  136. package/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map +1 -0
  137. package/_vendor/zod-to-json-schema/parsers/intersection.js +54 -0
  138. package/_vendor/zod-to-json-schema/parsers/intersection.js.map +1 -0
  139. package/_vendor/zod-to-json-schema/parsers/intersection.mjs +51 -0
  140. package/_vendor/zod-to-json-schema/parsers/intersection.mjs.map +1 -0
  141. package/_vendor/zod-to-json-schema/parsers/literal.d.mts +13 -0
  142. package/_vendor/zod-to-json-schema/parsers/literal.d.mts.map +1 -0
  143. package/_vendor/zod-to-json-schema/parsers/literal.d.ts +13 -0
  144. package/_vendor/zod-to-json-schema/parsers/literal.d.ts.map +1 -0
  145. package/_vendor/zod-to-json-schema/parsers/literal.js +29 -0
  146. package/_vendor/zod-to-json-schema/parsers/literal.js.map +1 -0
  147. package/_vendor/zod-to-json-schema/parsers/literal.mjs +26 -0
  148. package/_vendor/zod-to-json-schema/parsers/literal.mjs.map +1 -0
  149. package/_vendor/zod-to-json-schema/parsers/map.d.mts +16 -0
  150. package/_vendor/zod-to-json-schema/parsers/map.d.mts.map +1 -0
  151. package/_vendor/zod-to-json-schema/parsers/map.d.ts +16 -0
  152. package/_vendor/zod-to-json-schema/parsers/map.d.ts.map +1 -0
  153. package/_vendor/zod-to-json-schema/parsers/map.js +29 -0
  154. package/_vendor/zod-to-json-schema/parsers/map.js.map +1 -0
  155. package/_vendor/zod-to-json-schema/parsers/map.mjs +26 -0
  156. package/_vendor/zod-to-json-schema/parsers/map.mjs.map +1 -0
  157. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +7 -0
  158. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts.map +1 -0
  159. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +7 -0
  160. package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -0
  161. package/_vendor/zod-to-json-schema/parsers/nativeEnum.js +18 -0
  162. package/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map +1 -0
  163. package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +15 -0
  164. package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map +1 -0
  165. package/_vendor/zod-to-json-schema/parsers/never.d.mts +5 -0
  166. package/_vendor/zod-to-json-schema/parsers/never.d.mts.map +1 -0
  167. package/_vendor/zod-to-json-schema/parsers/never.d.ts +5 -0
  168. package/_vendor/zod-to-json-schema/parsers/never.d.ts.map +1 -0
  169. package/_vendor/zod-to-json-schema/parsers/never.js +9 -0
  170. package/_vendor/zod-to-json-schema/parsers/never.js.map +1 -0
  171. package/_vendor/zod-to-json-schema/parsers/never.mjs +6 -0
  172. package/_vendor/zod-to-json-schema/parsers/never.mjs.map +1 -0
  173. package/_vendor/zod-to-json-schema/parsers/null.d.mts +6 -0
  174. package/_vendor/zod-to-json-schema/parsers/null.d.mts.map +1 -0
  175. package/_vendor/zod-to-json-schema/parsers/null.d.ts +6 -0
  176. package/_vendor/zod-to-json-schema/parsers/null.d.ts.map +1 -0
  177. package/_vendor/zod-to-json-schema/parsers/null.js +14 -0
  178. package/_vendor/zod-to-json-schema/parsers/null.js.map +1 -0
  179. package/_vendor/zod-to-json-schema/parsers/null.mjs +11 -0
  180. package/_vendor/zod-to-json-schema/parsers/null.mjs.map +1 -0
  181. package/_vendor/zod-to-json-schema/parsers/nullable.d.mts +11 -0
  182. package/_vendor/zod-to-json-schema/parsers/nullable.d.mts.map +1 -0
  183. package/_vendor/zod-to-json-schema/parsers/nullable.d.ts +11 -0
  184. package/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map +1 -0
  185. package/_vendor/zod-to-json-schema/parsers/nullable.js +35 -0
  186. package/_vendor/zod-to-json-schema/parsers/nullable.js.map +1 -0
  187. package/_vendor/zod-to-json-schema/parsers/nullable.mjs +32 -0
  188. package/_vendor/zod-to-json-schema/parsers/nullable.mjs.map +1 -0
  189. package/_vendor/zod-to-json-schema/parsers/number.d.mts +14 -0
  190. package/_vendor/zod-to-json-schema/parsers/number.d.mts.map +1 -0
  191. package/_vendor/zod-to-json-schema/parsers/number.d.ts +14 -0
  192. package/_vendor/zod-to-json-schema/parsers/number.d.ts.map +1 -0
  193. package/_vendor/zod-to-json-schema/parsers/number.js +61 -0
  194. package/_vendor/zod-to-json-schema/parsers/number.js.map +1 -0
  195. package/_vendor/zod-to-json-schema/parsers/number.mjs +58 -0
  196. package/_vendor/zod-to-json-schema/parsers/number.mjs.map +1 -0
  197. package/_vendor/zod-to-json-schema/parsers/object.d.mts +11 -0
  198. package/_vendor/zod-to-json-schema/parsers/object.d.mts.map +1 -0
  199. package/_vendor/zod-to-json-schema/parsers/object.d.ts +11 -0
  200. package/_vendor/zod-to-json-schema/parsers/object.d.ts.map +1 -0
  201. package/_vendor/zod-to-json-schema/parsers/object.js +62 -0
  202. package/_vendor/zod-to-json-schema/parsers/object.js.map +1 -0
  203. package/_vendor/zod-to-json-schema/parsers/object.mjs +59 -0
  204. package/_vendor/zod-to-json-schema/parsers/object.mjs.map +1 -0
  205. package/_vendor/zod-to-json-schema/parsers/optional.d.mts +5 -0
  206. package/_vendor/zod-to-json-schema/parsers/optional.d.mts.map +1 -0
  207. package/_vendor/zod-to-json-schema/parsers/optional.d.ts +5 -0
  208. package/_vendor/zod-to-json-schema/parsers/optional.d.ts.map +1 -0
  209. package/_vendor/zod-to-json-schema/parsers/optional.js +26 -0
  210. package/_vendor/zod-to-json-schema/parsers/optional.js.map +1 -0
  211. package/_vendor/zod-to-json-schema/parsers/optional.mjs +22 -0
  212. package/_vendor/zod-to-json-schema/parsers/optional.mjs.map +1 -0
  213. package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +6 -0
  214. package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts.map +1 -0
  215. package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +6 -0
  216. package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts.map +1 -0
  217. package/_vendor/zod-to-json-schema/parsers/pipeline.js +25 -0
  218. package/_vendor/zod-to-json-schema/parsers/pipeline.js.map +1 -0
  219. package/_vendor/zod-to-json-schema/parsers/pipeline.mjs +21 -0
  220. package/_vendor/zod-to-json-schema/parsers/pipeline.mjs.map +1 -0
  221. package/_vendor/zod-to-json-schema/parsers/promise.d.mts +5 -0
  222. package/_vendor/zod-to-json-schema/parsers/promise.d.mts.map +1 -0
  223. package/_vendor/zod-to-json-schema/parsers/promise.d.ts +5 -0
  224. package/_vendor/zod-to-json-schema/parsers/promise.d.ts.map +1 -0
  225. package/_vendor/zod-to-json-schema/parsers/promise.js +8 -0
  226. package/_vendor/zod-to-json-schema/parsers/promise.js.map +1 -0
  227. package/_vendor/zod-to-json-schema/parsers/promise.mjs +5 -0
  228. package/_vendor/zod-to-json-schema/parsers/promise.mjs.map +1 -0
  229. package/_vendor/zod-to-json-schema/parsers/readonly.d.mts +4 -0
  230. package/_vendor/zod-to-json-schema/parsers/readonly.d.mts.map +1 -0
  231. package/_vendor/zod-to-json-schema/parsers/readonly.d.ts +4 -0
  232. package/_vendor/zod-to-json-schema/parsers/readonly.d.ts.map +1 -0
  233. package/_vendor/zod-to-json-schema/parsers/readonly.js +7 -0
  234. package/_vendor/zod-to-json-schema/parsers/readonly.js.map +1 -0
  235. package/_vendor/zod-to-json-schema/parsers/readonly.mjs +3 -0
  236. package/_vendor/zod-to-json-schema/parsers/readonly.mjs.map +1 -0
  237. package/_vendor/zod-to-json-schema/parsers/record.d.mts +14 -0
  238. package/_vendor/zod-to-json-schema/parsers/record.d.mts.map +1 -0
  239. package/_vendor/zod-to-json-schema/parsers/record.d.ts +14 -0
  240. package/_vendor/zod-to-json-schema/parsers/record.d.ts.map +1 -0
  241. package/_vendor/zod-to-json-schema/parsers/record.js +49 -0
  242. package/_vendor/zod-to-json-schema/parsers/record.js.map +1 -0
  243. package/_vendor/zod-to-json-schema/parsers/record.mjs +46 -0
  244. package/_vendor/zod-to-json-schema/parsers/record.mjs.map +1 -0
  245. package/_vendor/zod-to-json-schema/parsers/set.d.mts +14 -0
  246. package/_vendor/zod-to-json-schema/parsers/set.d.mts.map +1 -0
  247. package/_vendor/zod-to-json-schema/parsers/set.d.ts +14 -0
  248. package/_vendor/zod-to-json-schema/parsers/set.d.ts.map +1 -0
  249. package/_vendor/zod-to-json-schema/parsers/set.js +24 -0
  250. package/_vendor/zod-to-json-schema/parsers/set.js.map +1 -0
  251. package/_vendor/zod-to-json-schema/parsers/set.mjs +21 -0
  252. package/_vendor/zod-to-json-schema/parsers/set.mjs.map +1 -0
  253. package/_vendor/zod-to-json-schema/parsers/string.d.mts +70 -0
  254. package/_vendor/zod-to-json-schema/parsers/string.d.mts.map +1 -0
  255. package/_vendor/zod-to-json-schema/parsers/string.d.ts +70 -0
  256. package/_vendor/zod-to-json-schema/parsers/string.d.ts.map +1 -0
  257. package/_vendor/zod-to-json-schema/parsers/string.js +338 -0
  258. package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -0
  259. package/_vendor/zod-to-json-schema/parsers/string.mjs +334 -0
  260. package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -0
  261. package/_vendor/zod-to-json-schema/parsers/tuple.d.mts +14 -0
  262. package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -0
  263. package/_vendor/zod-to-json-schema/parsers/tuple.d.ts +14 -0
  264. package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -0
  265. package/_vendor/zod-to-json-schema/parsers/tuple.js +41 -0
  266. package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -0
  267. package/_vendor/zod-to-json-schema/parsers/tuple.mjs +38 -0
  268. package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -0
  269. package/_vendor/zod-to-json-schema/parsers/undefined.d.mts +5 -0
  270. package/_vendor/zod-to-json-schema/parsers/undefined.d.mts.map +1 -0
  271. package/_vendor/zod-to-json-schema/parsers/undefined.d.ts +5 -0
  272. package/_vendor/zod-to-json-schema/parsers/undefined.d.ts.map +1 -0
  273. package/_vendor/zod-to-json-schema/parsers/undefined.js +9 -0
  274. package/_vendor/zod-to-json-schema/parsers/undefined.js.map +1 -0
  275. package/_vendor/zod-to-json-schema/parsers/undefined.mjs +6 -0
  276. package/_vendor/zod-to-json-schema/parsers/undefined.mjs.map +1 -0
  277. package/_vendor/zod-to-json-schema/parsers/union.d.mts +24 -0
  278. package/_vendor/zod-to-json-schema/parsers/union.d.mts.map +1 -0
  279. package/_vendor/zod-to-json-schema/parsers/union.d.ts +24 -0
  280. package/_vendor/zod-to-json-schema/parsers/union.d.ts.map +1 -0
  281. package/_vendor/zod-to-json-schema/parsers/union.js +96 -0
  282. package/_vendor/zod-to-json-schema/parsers/union.js.map +1 -0
  283. package/_vendor/zod-to-json-schema/parsers/union.mjs +92 -0
  284. package/_vendor/zod-to-json-schema/parsers/union.mjs.map +1 -0
  285. package/_vendor/zod-to-json-schema/parsers/unknown.d.mts +3 -0
  286. package/_vendor/zod-to-json-schema/parsers/unknown.d.mts.map +1 -0
  287. package/_vendor/zod-to-json-schema/parsers/unknown.d.ts +3 -0
  288. package/_vendor/zod-to-json-schema/parsers/unknown.d.ts.map +1 -0
  289. package/_vendor/zod-to-json-schema/parsers/unknown.js +7 -0
  290. package/_vendor/zod-to-json-schema/parsers/unknown.js.map +1 -0
  291. package/_vendor/zod-to-json-schema/parsers/unknown.mjs +4 -0
  292. package/_vendor/zod-to-json-schema/parsers/unknown.mjs.map +1 -0
  293. package/_vendor/zod-to-json-schema/util.d.mts +4 -0
  294. package/_vendor/zod-to-json-schema/util.d.mts.map +1 -0
  295. package/_vendor/zod-to-json-schema/util.d.ts +4 -0
  296. package/_vendor/zod-to-json-schema/util.d.ts.map +1 -0
  297. package/_vendor/zod-to-json-schema/util.js +17 -0
  298. package/_vendor/zod-to-json-schema/util.js.map +1 -0
  299. package/_vendor/zod-to-json-schema/util.mjs +12 -0
  300. package/_vendor/zod-to-json-schema/util.mjs.map +1 -0
  301. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +9 -0
  302. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -0
  303. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +9 -0
  304. package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -0
  305. package/_vendor/zod-to-json-schema/zodToJsonSchema.js +152 -0
  306. package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -0
  307. package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +149 -0
  308. package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -0
  309. package/api-promise.d.mts +3 -0
  310. package/api-promise.d.mts.map +1 -0
  311. package/api-promise.d.ts +3 -0
  312. package/api-promise.d.ts.map +1 -0
  313. package/api-promise.js +6 -0
  314. package/api-promise.js.map +1 -0
  315. package/api-promise.mjs +3 -0
  316. package/api-promise.mjs.map +1 -0
  317. package/auth/index.d.mts +4 -0
  318. package/auth/index.d.mts.map +1 -0
  319. package/auth/index.d.ts +4 -0
  320. package/auth/index.d.ts.map +1 -0
  321. package/auth/index.js +11 -0
  322. package/auth/index.js.map +1 -0
  323. package/auth/index.mjs +3 -0
  324. package/auth/index.mjs.map +1 -0
  325. package/auth/subject-token-providers.d.mts +72 -0
  326. package/auth/subject-token-providers.d.mts.map +1 -0
  327. package/auth/subject-token-providers.d.ts +72 -0
  328. package/auth/subject-token-providers.d.ts.map +1 -0
  329. package/auth/subject-token-providers.js +347 -0
  330. package/auth/subject-token-providers.js.map +1 -0
  331. package/auth/subject-token-providers.mjs +341 -0
  332. package/auth/subject-token-providers.mjs.map +1 -0
  333. package/auth/types.d.mts +54 -0
  334. package/auth/types.d.mts.map +1 -0
  335. package/auth/types.d.ts +54 -0
  336. package/auth/types.d.ts.map +1 -0
  337. package/auth/types.js +3 -0
  338. package/auth/types.js.map +1 -0
  339. package/auth/types.mjs +2 -0
  340. package/auth/types.mjs.map +1 -0
  341. package/auth/workload-identity-auth.d.mts +41 -0
  342. package/auth/workload-identity-auth.d.mts.map +1 -0
  343. package/auth/workload-identity-auth.d.ts +41 -0
  344. package/auth/workload-identity-auth.d.ts.map +1 -0
  345. package/auth/workload-identity-auth.js +247 -0
  346. package/auth/workload-identity-auth.js.map +1 -0
  347. package/auth/workload-identity-auth.mjs +242 -0
  348. package/auth/workload-identity-auth.mjs.map +1 -0
  349. package/auth/x509-transport.d.mts +40 -0
  350. package/auth/x509-transport.d.mts.map +1 -0
  351. package/auth/x509-transport.d.ts +40 -0
  352. package/auth/x509-transport.d.ts.map +1 -0
  353. package/auth/x509-transport.js +262 -0
  354. package/auth/x509-transport.js.map +1 -0
  355. package/auth/x509-transport.mjs +257 -0
  356. package/auth/x509-transport.mjs.map +1 -0
  357. package/azure.d.mts +93 -0
  358. package/azure.d.mts.map +1 -0
  359. package/azure.d.ts +93 -0
  360. package/azure.d.ts.map +1 -0
  361. package/azure.js +148 -0
  362. package/azure.js.map +1 -0
  363. package/azure.mjs +143 -0
  364. package/azure.mjs.map +1 -0
  365. package/bedrock.d.mts +78 -0
  366. package/bedrock.d.mts.map +1 -0
  367. package/bedrock.d.ts +78 -0
  368. package/bedrock.d.ts.map +1 -0
  369. package/bedrock.js +166 -0
  370. package/bedrock.js.map +1 -0
  371. package/bedrock.mjs +161 -0
  372. package/bedrock.mjs.map +1 -0
  373. package/beta/realtime/index.d.mts +2 -0
  374. package/beta/realtime/index.d.mts.map +1 -0
  375. package/beta/realtime/index.d.ts +2 -0
  376. package/beta/realtime/index.d.ts.map +1 -0
  377. package/beta/realtime/index.js +6 -0
  378. package/beta/realtime/index.js.map +1 -0
  379. package/beta/realtime/index.mjs +2 -0
  380. package/beta/realtime/index.mjs.map +1 -0
  381. package/beta/realtime/internal-base.d.mts +101 -0
  382. package/beta/realtime/internal-base.d.mts.map +1 -0
  383. package/beta/realtime/internal-base.d.ts +101 -0
  384. package/beta/realtime/internal-base.d.ts.map +1 -0
  385. package/beta/realtime/internal-base.js +115 -0
  386. package/beta/realtime/internal-base.js.map +1 -0
  387. package/beta/realtime/internal-base.mjs +107 -0
  388. package/beta/realtime/internal-base.mjs.map +1 -0
  389. package/beta/realtime/websocket.d.mts +95 -0
  390. package/beta/realtime/websocket.d.mts.map +1 -0
  391. package/beta/realtime/websocket.d.ts +95 -0
  392. package/beta/realtime/websocket.d.ts.map +1 -0
  393. package/beta/realtime/websocket.js +254 -0
  394. package/beta/realtime/websocket.js.map +1 -0
  395. package/beta/realtime/websocket.mjs +250 -0
  396. package/beta/realtime/websocket.mjs.map +1 -0
  397. package/beta/realtime/ws.d.mts +75 -0
  398. package/beta/realtime/ws.d.mts.map +1 -0
  399. package/beta/realtime/ws.d.ts +75 -0
  400. package/beta/realtime/ws.d.ts.map +1 -0
  401. package/beta/realtime/ws.js +173 -0
  402. package/beta/realtime/ws.js.map +1 -0
  403. package/beta/realtime/ws.mjs +168 -0
  404. package/beta/realtime/ws.mjs.map +1 -0
  405. package/client.d.mts +434 -0
  406. package/client.d.mts.map +1 -0
  407. package/client.d.ts +434 -0
  408. package/client.d.ts.map +1 -0
  409. package/client.js +1350 -0
  410. package/client.js.map +1 -0
  411. package/client.mjs +1346 -0
  412. package/client.mjs.map +1 -0
  413. package/core/EventEmitter.d.mts +61 -0
  414. package/core/EventEmitter.d.mts.map +1 -0
  415. package/core/EventEmitter.d.ts +61 -0
  416. package/core/EventEmitter.d.ts.map +1 -0
  417. package/core/EventEmitter.js +189 -0
  418. package/core/EventEmitter.js.map +1 -0
  419. package/core/EventEmitter.mjs +184 -0
  420. package/core/EventEmitter.mjs.map +1 -0
  421. package/core/api-promise.d.mts +49 -0
  422. package/core/api-promise.d.mts.map +1 -0
  423. package/core/api-promise.d.ts +49 -0
  424. package/core/api-promise.d.ts.map +1 -0
  425. package/core/api-promise.js +75 -0
  426. package/core/api-promise.js.map +1 -0
  427. package/core/api-promise.mjs +71 -0
  428. package/core/api-promise.mjs.map +1 -0
  429. package/core/error.d.mts +74 -0
  430. package/core/error.d.mts.map +1 -0
  431. package/core/error.d.ts +74 -0
  432. package/core/error.d.ts.map +1 -0
  433. package/core/error.js +169 -0
  434. package/core/error.js.map +1 -0
  435. package/core/error.mjs +148 -0
  436. package/core/error.mjs.map +1 -0
  437. package/core/pagination.d.mts +125 -0
  438. package/core/pagination.d.mts.map +1 -0
  439. package/core/pagination.d.ts +125 -0
  440. package/core/pagination.d.ts.map +1 -0
  441. package/core/pagination.js +217 -0
  442. package/core/pagination.js.map +1 -0
  443. package/core/pagination.mjs +207 -0
  444. package/core/pagination.mjs.map +1 -0
  445. package/core/resource.d.mts +6 -0
  446. package/core/resource.d.mts.map +1 -0
  447. package/core/resource.d.ts +6 -0
  448. package/core/resource.d.ts.map +1 -0
  449. package/core/resource.js +10 -0
  450. package/core/resource.js.map +1 -0
  451. package/core/resource.mjs +6 -0
  452. package/core/resource.mjs.map +1 -0
  453. package/core/streaming.d.mts +68 -0
  454. package/core/streaming.d.mts.map +1 -0
  455. package/core/streaming.d.ts +68 -0
  456. package/core/streaming.d.ts.map +1 -0
  457. package/core/streaming.js +631 -0
  458. package/core/streaming.js.map +1 -0
  459. package/core/streaming.mjs +626 -0
  460. package/core/streaming.mjs.map +1 -0
  461. package/core/uploads.d.mts +3 -0
  462. package/core/uploads.d.mts.map +1 -0
  463. package/core/uploads.d.ts +3 -0
  464. package/core/uploads.d.ts.map +1 -0
  465. package/core/uploads.js +8 -0
  466. package/core/uploads.js.map +1 -0
  467. package/core/uploads.mjs +3 -0
  468. package/core/uploads.mjs.map +1 -0
  469. package/error.d.mts +3 -0
  470. package/error.d.mts.map +1 -0
  471. package/error.d.ts +3 -0
  472. package/error.d.ts.map +1 -0
  473. package/error.js +6 -0
  474. package/error.js.map +1 -0
  475. package/error.mjs +3 -0
  476. package/error.mjs.map +1 -0
  477. package/helpers/audio.d.mts +38 -0
  478. package/helpers/audio.d.mts.map +1 -0
  479. package/helpers/audio.d.ts +38 -0
  480. package/helpers/audio.d.ts.map +1 -0
  481. package/helpers/audio.js +290 -0
  482. package/helpers/audio.js.map +1 -0
  483. package/helpers/audio.mjs +286 -0
  484. package/helpers/audio.mjs.map +1 -0
  485. package/helpers/live.d.mts +2 -0
  486. package/helpers/live.d.mts.map +1 -0
  487. package/helpers/live.d.ts +2 -0
  488. package/helpers/live.d.ts.map +1 -0
  489. package/helpers/live.js +6 -0
  490. package/helpers/live.js.map +1 -0
  491. package/helpers/live.mjs +2 -0
  492. package/helpers/live.mjs.map +1 -0
  493. package/helpers/standard-schema.d.mts +240 -0
  494. package/helpers/standard-schema.d.mts.map +1 -0
  495. package/helpers/standard-schema.d.ts +240 -0
  496. package/helpers/standard-schema.d.ts.map +1 -0
  497. package/helpers/standard-schema.js +383 -0
  498. package/helpers/standard-schema.js.map +1 -0
  499. package/helpers/standard-schema.mjs +377 -0
  500. package/helpers/standard-schema.mjs.map +1 -0
  501. package/helpers/zod-v3-strict-schema.d.mts +7 -0
  502. package/helpers/zod-v3-strict-schema.d.mts.map +1 -0
  503. package/helpers/zod-v3-strict-schema.d.ts +7 -0
  504. package/helpers/zod-v3-strict-schema.d.ts.map +1 -0
  505. package/helpers/zod-v3-strict-schema.js +403 -0
  506. package/helpers/zod-v3-strict-schema.js.map +1 -0
  507. package/helpers/zod-v3-strict-schema.mjs +399 -0
  508. package/helpers/zod-v3-strict-schema.mjs.map +1 -0
  509. package/helpers/zod.d.mts +196 -0
  510. package/helpers/zod.d.mts.map +1 -0
  511. package/helpers/zod.d.ts +196 -0
  512. package/helpers/zod.d.ts.map +1 -0
  513. package/helpers/zod.js +305 -0
  514. package/helpers/zod.js.map +1 -0
  515. package/helpers/zod.mjs +297 -0
  516. package/helpers/zod.mjs.map +1 -0
  517. package/index.d.mts +11 -0
  518. package/index.d.mts.map +1 -0
  519. package/index.d.ts +11 -0
  520. package/index.d.ts.map +1 -0
  521. package/index.js +45 -0
  522. package/index.js.map +1 -0
  523. package/index.mjs +13 -0
  524. package/index.mjs.map +1 -0
  525. package/internal/assistant-stream-delta.d.mts +7 -0
  526. package/internal/assistant-stream-delta.d.mts.map +1 -0
  527. package/internal/assistant-stream-delta.d.ts +7 -0
  528. package/internal/assistant-stream-delta.d.ts.map +1 -0
  529. package/internal/assistant-stream-delta.js +309 -0
  530. package/internal/assistant-stream-delta.js.map +1 -0
  531. package/internal/assistant-stream-delta.mjs +301 -0
  532. package/internal/assistant-stream-delta.mjs.map +1 -0
  533. package/internal/auth/x509-api-origin.d.mts +5 -0
  534. package/internal/auth/x509-api-origin.d.mts.map +1 -0
  535. package/internal/auth/x509-api-origin.d.ts +5 -0
  536. package/internal/auth/x509-api-origin.d.ts.map +1 -0
  537. package/internal/auth/x509-api-origin.js +28 -0
  538. package/internal/auth/x509-api-origin.js.map +1 -0
  539. package/internal/auth/x509-api-origin.mjs +24 -0
  540. package/internal/auth/x509-api-origin.mjs.map +1 -0
  541. package/internal/auth/x509-credential-options.d.mts +13 -0
  542. package/internal/auth/x509-credential-options.d.mts.map +1 -0
  543. package/internal/auth/x509-credential-options.d.ts +13 -0
  544. package/internal/auth/x509-credential-options.d.ts.map +1 -0
  545. package/internal/auth/x509-credential-options.js +122 -0
  546. package/internal/auth/x509-credential-options.js.map +1 -0
  547. package/internal/auth/x509-credential-options.mjs +118 -0
  548. package/internal/auth/x509-credential-options.mjs.map +1 -0
  549. package/internal/auth/x509-token-exchange.d.mts +16 -0
  550. package/internal/auth/x509-token-exchange.d.mts.map +1 -0
  551. package/internal/auth/x509-token-exchange.d.ts +16 -0
  552. package/internal/auth/x509-token-exchange.d.ts.map +1 -0
  553. package/internal/auth/x509-token-exchange.js +246 -0
  554. package/internal/auth/x509-token-exchange.js.map +1 -0
  555. package/internal/auth/x509-token-exchange.mjs +243 -0
  556. package/internal/auth/x509-token-exchange.mjs.map +1 -0
  557. package/internal/auth/x509-transport-capability.d.mts +44 -0
  558. package/internal/auth/x509-transport-capability.d.mts.map +1 -0
  559. package/internal/auth/x509-transport-capability.d.ts +44 -0
  560. package/internal/auth/x509-transport-capability.d.ts.map +1 -0
  561. package/internal/auth/x509-transport-capability.js +170 -0
  562. package/internal/auth/x509-transport-capability.js.map +1 -0
  563. package/internal/auth/x509-transport-capability.mjs +165 -0
  564. package/internal/auth/x509-transport-capability.mjs.map +1 -0
  565. package/internal/auth/x509-transport-registry.d.mts +71 -0
  566. package/internal/auth/x509-transport-registry.d.mts.map +1 -0
  567. package/internal/auth/x509-transport-registry.d.ts +71 -0
  568. package/internal/auth/x509-transport-registry.d.ts.map +1 -0
  569. package/internal/auth/x509-transport-registry.js +53 -0
  570. package/internal/auth/x509-transport-registry.js.map +1 -0
  571. package/internal/auth/x509-transport-registry.mjs +48 -0
  572. package/internal/auth/x509-transport-registry.mjs.map +1 -0
  573. package/internal/auth/x509-transport-state-browser.d.mts +25 -0
  574. package/internal/auth/x509-transport-state-browser.d.mts.map +1 -0
  575. package/internal/auth/x509-transport-state-browser.d.ts +25 -0
  576. package/internal/auth/x509-transport-state-browser.d.ts.map +1 -0
  577. package/internal/auth/x509-transport-state-browser.js +35 -0
  578. package/internal/auth/x509-transport-state-browser.js.map +1 -0
  579. package/internal/auth/x509-transport-state-browser.mjs +32 -0
  580. package/internal/auth/x509-transport-state-browser.mjs.map +1 -0
  581. package/internal/auth/x509-transport-state.cjs +35 -0
  582. package/internal/auth/x509-transport-state.cjs.map +1 -0
  583. package/internal/auth/x509-transport-state.d.cts +25 -0
  584. package/internal/auth/x509-transport-state.d.cts.map +1 -0
  585. package/internal/auth/x509-transport-state.js +36 -0
  586. package/internal/auth/x509-transport-state.mjs +19 -0
  587. package/internal/auth/x509-workload-identity-auth.d.mts +126 -0
  588. package/internal/auth/x509-workload-identity-auth.d.mts.map +1 -0
  589. package/internal/auth/x509-workload-identity-auth.d.ts +126 -0
  590. package/internal/auth/x509-workload-identity-auth.d.ts.map +1 -0
  591. package/internal/auth/x509-workload-identity-auth.js +776 -0
  592. package/internal/auth/x509-workload-identity-auth.js.map +1 -0
  593. package/internal/auth/x509-workload-identity-auth.mjs +767 -0
  594. package/internal/auth/x509-workload-identity-auth.mjs.map +1 -0
  595. package/internal/bedrock.d.mts +122 -0
  596. package/internal/bedrock.d.mts.map +1 -0
  597. package/internal/bedrock.d.ts +122 -0
  598. package/internal/bedrock.d.ts.map +1 -0
  599. package/internal/bedrock.js +422 -0
  600. package/internal/bedrock.js.map +1 -0
  601. package/internal/bedrock.mjs +408 -0
  602. package/internal/bedrock.mjs.map +1 -0
  603. package/internal/builtin-types.d.mts +73 -0
  604. package/internal/builtin-types.d.mts.map +1 -0
  605. package/internal/builtin-types.d.ts +73 -0
  606. package/internal/builtin-types.d.ts.map +1 -0
  607. package/internal/builtin-types.js +3 -0
  608. package/internal/builtin-types.js.map +1 -0
  609. package/internal/builtin-types.mjs +2 -0
  610. package/internal/builtin-types.mjs.map +1 -0
  611. package/internal/data-residency.d.mts +12 -0
  612. package/internal/data-residency.d.mts.map +1 -0
  613. package/internal/data-residency.d.ts +12 -0
  614. package/internal/data-residency.d.ts.map +1 -0
  615. package/internal/data-residency.js +34 -0
  616. package/internal/data-residency.js.map +1 -0
  617. package/internal/data-residency.mjs +30 -0
  618. package/internal/data-residency.mjs.map +1 -0
  619. package/internal/decoders/line.d.mts +40 -0
  620. package/internal/decoders/line.d.mts.map +1 -0
  621. package/internal/decoders/line.d.ts +40 -0
  622. package/internal/decoders/line.d.ts.map +1 -0
  623. package/internal/decoders/line.js +198 -0
  624. package/internal/decoders/line.js.map +1 -0
  625. package/internal/decoders/line.mjs +193 -0
  626. package/internal/decoders/line.mjs.map +1 -0
  627. package/internal/detect-platform.d.mts +15 -0
  628. package/internal/detect-platform.d.mts.map +1 -0
  629. package/internal/detect-platform.d.ts +15 -0
  630. package/internal/detect-platform.d.ts.map +1 -0
  631. package/internal/detect-platform.js +161 -0
  632. package/internal/detect-platform.js.map +1 -0
  633. package/internal/detect-platform.mjs +156 -0
  634. package/internal/detect-platform.mjs.map +1 -0
  635. package/internal/errors.d.mts +3 -0
  636. package/internal/errors.d.mts.map +1 -0
  637. package/internal/errors.d.ts +3 -0
  638. package/internal/errors.d.ts.map +1 -0
  639. package/internal/errors.js +41 -0
  640. package/internal/errors.js.map +1 -0
  641. package/internal/errors.mjs +36 -0
  642. package/internal/errors.mjs.map +1 -0
  643. package/internal/headers.d.mts +20 -0
  644. package/internal/headers.d.mts.map +1 -0
  645. package/internal/headers.d.ts +20 -0
  646. package/internal/headers.d.ts.map +1 -0
  647. package/internal/headers.js +81 -0
  648. package/internal/headers.js.map +1 -0
  649. package/internal/headers.mjs +76 -0
  650. package/internal/headers.mjs.map +1 -0
  651. package/internal/multipart-encoding.d.mts +8 -0
  652. package/internal/multipart-encoding.d.mts.map +1 -0
  653. package/internal/multipart-encoding.d.ts +8 -0
  654. package/internal/multipart-encoding.d.ts.map +1 -0
  655. package/internal/multipart-encoding.js +51 -0
  656. package/internal/multipart-encoding.js.map +1 -0
  657. package/internal/multipart-encoding.mjs +48 -0
  658. package/internal/multipart-encoding.mjs.map +1 -0
  659. package/internal/parse.d.mts +17 -0
  660. package/internal/parse.d.mts.map +1 -0
  661. package/internal/parse.d.ts +17 -0
  662. package/internal/parse.d.ts.map +1 -0
  663. package/internal/parse.js +80 -0
  664. package/internal/parse.js.map +1 -0
  665. package/internal/parse.mjs +76 -0
  666. package/internal/parse.mjs.map +1 -0
  667. package/internal/provider.d.mts +49 -0
  668. package/internal/provider.d.mts.map +1 -0
  669. package/internal/provider.d.ts +49 -0
  670. package/internal/provider.d.ts.map +1 -0
  671. package/internal/provider.js +47 -0
  672. package/internal/provider.js.map +1 -0
  673. package/internal/provider.mjs +43 -0
  674. package/internal/provider.mjs.map +1 -0
  675. package/internal/qs/formats.d.mts +7 -0
  676. package/internal/qs/formats.d.mts.map +1 -0
  677. package/internal/qs/formats.d.ts +7 -0
  678. package/internal/qs/formats.d.ts.map +1 -0
  679. package/internal/qs/formats.js +12 -0
  680. package/internal/qs/formats.js.map +1 -0
  681. package/internal/qs/formats.mjs +9 -0
  682. package/internal/qs/formats.mjs.map +1 -0
  683. package/internal/qs/index.d.mts +10 -0
  684. package/internal/qs/index.d.mts.map +1 -0
  685. package/internal/qs/index.d.ts +10 -0
  686. package/internal/qs/index.d.ts.map +1 -0
  687. package/internal/qs/index.js +14 -0
  688. package/internal/qs/index.js.map +1 -0
  689. package/internal/qs/index.mjs +10 -0
  690. package/internal/qs/index.mjs.map +1 -0
  691. package/internal/qs/stringify.d.mts +3 -0
  692. package/internal/qs/stringify.d.mts.map +1 -0
  693. package/internal/qs/stringify.d.ts +3 -0
  694. package/internal/qs/stringify.d.ts.map +1 -0
  695. package/internal/qs/stringify.js +283 -0
  696. package/internal/qs/stringify.js.map +1 -0
  697. package/internal/qs/stringify.mjs +280 -0
  698. package/internal/qs/stringify.mjs.map +1 -0
  699. package/internal/qs/types.d.mts +57 -0
  700. package/internal/qs/types.d.mts.map +1 -0
  701. package/internal/qs/types.d.ts +57 -0
  702. package/internal/qs/types.d.ts.map +1 -0
  703. package/internal/qs/types.js +3 -0
  704. package/internal/qs/types.js.map +1 -0
  705. package/internal/qs/types.mjs +2 -0
  706. package/internal/qs/types.mjs.map +1 -0
  707. package/internal/qs/utils.d.mts +15 -0
  708. package/internal/qs/utils.d.mts.map +1 -0
  709. package/internal/qs/utils.d.ts +15 -0
  710. package/internal/qs/utils.d.ts.map +1 -0
  711. package/internal/qs/utils.js +536 -0
  712. package/internal/qs/utils.js.map +1 -0
  713. package/internal/qs/utils.mjs +523 -0
  714. package/internal/qs/utils.mjs.map +1 -0
  715. package/internal/realtime-credentials.d.mts +15 -0
  716. package/internal/realtime-credentials.d.mts.map +1 -0
  717. package/internal/realtime-credentials.d.ts +15 -0
  718. package/internal/realtime-credentials.d.ts.map +1 -0
  719. package/internal/realtime-credentials.js +23 -0
  720. package/internal/realtime-credentials.js.map +1 -0
  721. package/internal/realtime-credentials.mjs +19 -0
  722. package/internal/realtime-credentials.mjs.map +1 -0
  723. package/internal/request-options.d.mts +90 -0
  724. package/internal/request-options.d.mts.map +1 -0
  725. package/internal/request-options.d.ts +90 -0
  726. package/internal/request-options.d.ts.map +1 -0
  727. package/internal/request-options.js +55 -0
  728. package/internal/request-options.js.map +1 -0
  729. package/internal/request-options.mjs +50 -0
  730. package/internal/request-options.mjs.map +1 -0
  731. package/internal/responses/canonical-output-text.d.mts +16 -0
  732. package/internal/responses/canonical-output-text.d.mts.map +1 -0
  733. package/internal/responses/canonical-output-text.d.ts +16 -0
  734. package/internal/responses/canonical-output-text.d.ts.map +1 -0
  735. package/internal/responses/canonical-output-text.js +123 -0
  736. package/internal/responses/canonical-output-text.js.map +1 -0
  737. package/internal/responses/canonical-output-text.mjs +115 -0
  738. package/internal/responses/canonical-output-text.mjs.map +1 -0
  739. package/internal/responses/output-text-index.d.mts +18 -0
  740. package/internal/responses/output-text-index.d.mts.map +1 -0
  741. package/internal/responses/output-text-index.d.ts +18 -0
  742. package/internal/responses/output-text-index.d.ts.map +1 -0
  743. package/internal/responses/output-text-index.js +77 -0
  744. package/internal/responses/output-text-index.js.map +1 -0
  745. package/internal/responses/output-text-index.mjs +73 -0
  746. package/internal/responses/output-text-index.mjs.map +1 -0
  747. package/internal/responses/response-accumulator.d.mts +11 -0
  748. package/internal/responses/response-accumulator.d.mts.map +1 -0
  749. package/internal/responses/response-accumulator.d.ts +11 -0
  750. package/internal/responses/response-accumulator.d.ts.map +1 -0
  751. package/internal/responses/response-accumulator.js +926 -0
  752. package/internal/responses/response-accumulator.js.map +1 -0
  753. package/internal/responses/response-accumulator.mjs +922 -0
  754. package/internal/responses/response-accumulator.mjs.map +1 -0
  755. package/internal/shim-types.d.mts +17 -0
  756. package/internal/shim-types.d.mts.map +1 -0
  757. package/internal/shim-types.d.ts +17 -0
  758. package/internal/shim-types.d.ts.map +1 -0
  759. package/internal/shim-types.js +9 -0
  760. package/internal/shim-types.js.map +1 -0
  761. package/internal/shim-types.mjs +8 -0
  762. package/internal/shim-types.mjs.map +1 -0
  763. package/internal/shims.d.mts +26 -0
  764. package/internal/shims.d.mts.map +1 -0
  765. package/internal/shims.d.ts +26 -0
  766. package/internal/shims.d.ts.map +1 -0
  767. package/internal/shims.js +97 -0
  768. package/internal/shims.js.map +1 -0
  769. package/internal/shims.mjs +90 -0
  770. package/internal/shims.mjs.map +1 -0
  771. package/internal/stream-utils.d.mts +15 -0
  772. package/internal/stream-utils.d.mts.map +1 -0
  773. package/internal/stream-utils.d.ts +15 -0
  774. package/internal/stream-utils.d.ts.map +1 -0
  775. package/internal/stream-utils.js +66 -0
  776. package/internal/stream-utils.js.map +1 -0
  777. package/internal/stream-utils.mjs +63 -0
  778. package/internal/stream-utils.mjs.map +1 -0
  779. package/internal/to-file.d.mts +68 -0
  780. package/internal/to-file.d.mts.map +1 -0
  781. package/internal/to-file.d.ts +68 -0
  782. package/internal/to-file.d.ts.map +1 -0
  783. package/internal/to-file.js +114 -0
  784. package/internal/to-file.js.map +1 -0
  785. package/internal/to-file.mjs +111 -0
  786. package/internal/to-file.mjs.map +1 -0
  787. package/internal/tslib.js +87 -0
  788. package/internal/tslib.mjs +22 -0
  789. package/internal/types.d.mts +75 -0
  790. package/internal/types.d.mts.map +1 -0
  791. package/internal/types.d.ts +75 -0
  792. package/internal/types.d.ts.map +1 -0
  793. package/internal/types.js +3 -0
  794. package/internal/types.js.map +1 -0
  795. package/internal/types.mjs +2 -0
  796. package/internal/types.mjs.map +1 -0
  797. package/internal/uploads.d.mts +139 -0
  798. package/internal/uploads.d.mts.map +1 -0
  799. package/internal/uploads.d.ts +139 -0
  800. package/internal/uploads.d.ts.map +1 -0
  801. package/internal/uploads.js +465 -0
  802. package/internal/uploads.js.map +1 -0
  803. package/internal/uploads.mjs +453 -0
  804. package/internal/uploads.mjs.map +1 -0
  805. package/internal/utils/base64.d.mts +9 -0
  806. package/internal/utils/base64.d.mts.map +1 -0
  807. package/internal/utils/base64.d.ts +9 -0
  808. package/internal/utils/base64.d.ts.map +1 -0
  809. package/internal/utils/base64.js +63 -0
  810. package/internal/utils/base64.js.map +1 -0
  811. package/internal/utils/base64.mjs +57 -0
  812. package/internal/utils/base64.mjs.map +1 -0
  813. package/internal/utils/bytes.d.mts +7 -0
  814. package/internal/utils/bytes.d.mts.map +1 -0
  815. package/internal/utils/bytes.d.ts +7 -0
  816. package/internal/utils/bytes.d.ts.map +1 -0
  817. package/internal/utils/bytes.js +34 -0
  818. package/internal/utils/bytes.js.map +1 -0
  819. package/internal/utils/bytes.mjs +29 -0
  820. package/internal/utils/bytes.mjs.map +1 -0
  821. package/internal/utils/env.d.mts +9 -0
  822. package/internal/utils/env.d.mts.map +1 -0
  823. package/internal/utils/env.d.ts +9 -0
  824. package/internal/utils/env.d.ts.map +1 -0
  825. package/internal/utils/env.js +26 -0
  826. package/internal/utils/env.js.map +1 -0
  827. package/internal/utils/env.mjs +22 -0
  828. package/internal/utils/env.mjs.map +1 -0
  829. package/internal/utils/log.d.mts +43 -0
  830. package/internal/utils/log.d.mts.map +1 -0
  831. package/internal/utils/log.d.ts +43 -0
  832. package/internal/utils/log.d.ts.map +1 -0
  833. package/internal/utils/log.js +148 -0
  834. package/internal/utils/log.js.map +1 -0
  835. package/internal/utils/log.mjs +139 -0
  836. package/internal/utils/log.mjs.map +1 -0
  837. package/internal/utils/path.d.mts +27 -0
  838. package/internal/utils/path.d.mts.map +1 -0
  839. package/internal/utils/path.d.ts +27 -0
  840. package/internal/utils/path.d.ts.map +1 -0
  841. package/internal/utils/path.js +97 -0
  842. package/internal/utils/path.js.map +1 -0
  843. package/internal/utils/path.mjs +92 -0
  844. package/internal/utils/path.mjs.map +1 -0
  845. package/internal/utils/query.d.mts +2 -0
  846. package/internal/utils/query.d.mts.map +1 -0
  847. package/internal/utils/query.d.ts +2 -0
  848. package/internal/utils/query.d.ts.map +1 -0
  849. package/internal/utils/query.js +9 -0
  850. package/internal/utils/query.js.map +1 -0
  851. package/internal/utils/query.mjs +5 -0
  852. package/internal/utils/query.mjs.map +1 -0
  853. package/internal/utils/sleep.d.mts +2 -0
  854. package/internal/utils/sleep.d.mts.map +1 -0
  855. package/internal/utils/sleep.d.ts +2 -0
  856. package/internal/utils/sleep.d.ts.map +1 -0
  857. package/internal/utils/sleep.js +6 -0
  858. package/internal/utils/sleep.js.map +1 -0
  859. package/internal/utils/sleep.mjs +2 -0
  860. package/internal/utils/sleep.mjs.map +1 -0
  861. package/internal/utils/uuid.d.mts +5 -0
  862. package/internal/utils/uuid.d.mts.map +1 -0
  863. package/internal/utils/uuid.d.ts +5 -0
  864. package/internal/utils/uuid.d.ts.map +1 -0
  865. package/internal/utils/uuid.js +18 -0
  866. package/internal/utils/uuid.js.map +1 -0
  867. package/internal/utils/uuid.mjs +14 -0
  868. package/internal/utils/uuid.mjs.map +1 -0
  869. package/internal/utils/values.d.mts +18 -0
  870. package/internal/utils/values.d.mts.map +1 -0
  871. package/internal/utils/values.d.ts +18 -0
  872. package/internal/utils/values.d.ts.map +1 -0
  873. package/internal/utils/values.js +111 -0
  874. package/internal/utils/values.js.map +1 -0
  875. package/internal/utils/values.mjs +93 -0
  876. package/internal/utils/values.mjs.map +1 -0
  877. package/internal/utils.d.mts +8 -0
  878. package/internal/utils.d.mts.map +1 -0
  879. package/internal/utils.d.ts +8 -0
  880. package/internal/utils.d.ts.map +1 -0
  881. package/internal/utils.js +11 -0
  882. package/internal/utils.js.map +1 -0
  883. package/internal/utils.mjs +8 -0
  884. package/internal/utils.mjs.map +1 -0
  885. package/internal/ws-adapter-browser.d.mts +57 -0
  886. package/internal/ws-adapter-browser.d.mts.map +1 -0
  887. package/internal/ws-adapter-browser.d.ts +57 -0
  888. package/internal/ws-adapter-browser.d.ts.map +1 -0
  889. package/internal/ws-adapter-browser.js +131 -0
  890. package/internal/ws-adapter-browser.js.map +1 -0
  891. package/internal/ws-adapter-browser.mjs +127 -0
  892. package/internal/ws-adapter-browser.mjs.map +1 -0
  893. package/internal/ws-adapter-node.d.mts +42 -0
  894. package/internal/ws-adapter-node.d.mts.map +1 -0
  895. package/internal/ws-adapter-node.d.ts +42 -0
  896. package/internal/ws-adapter-node.d.ts.map +1 -0
  897. package/internal/ws-adapter-node.js +156 -0
  898. package/internal/ws-adapter-node.js.map +1 -0
  899. package/internal/ws-adapter-node.mjs +152 -0
  900. package/internal/ws-adapter-node.mjs.map +1 -0
  901. package/internal/ws-adapter.d.mts +38 -0
  902. package/internal/ws-adapter.d.mts.map +1 -0
  903. package/internal/ws-adapter.d.ts +38 -0
  904. package/internal/ws-adapter.d.ts.map +1 -0
  905. package/internal/ws-adapter.js +15 -0
  906. package/internal/ws-adapter.js.map +1 -0
  907. package/internal/ws-adapter.mjs +12 -0
  908. package/internal/ws-adapter.mjs.map +1 -0
  909. package/internal/ws.d.mts +108 -0
  910. package/internal/ws.d.mts.map +1 -0
  911. package/internal/ws.d.ts +108 -0
  912. package/internal/ws.d.ts.map +1 -0
  913. package/internal/ws.js +222 -0
  914. package/internal/ws.js.map +1 -0
  915. package/internal/ws.mjs +215 -0
  916. package/internal/ws.mjs.map +1 -0
  917. package/lib/AbstractChatCompletionRunner.d.mts +91 -0
  918. package/lib/AbstractChatCompletionRunner.d.mts.map +1 -0
  919. package/lib/AbstractChatCompletionRunner.d.ts +91 -0
  920. package/lib/AbstractChatCompletionRunner.d.ts.map +1 -0
  921. package/lib/AbstractChatCompletionRunner.js +448 -0
  922. package/lib/AbstractChatCompletionRunner.js.map +1 -0
  923. package/lib/AbstractChatCompletionRunner.mjs +444 -0
  924. package/lib/AbstractChatCompletionRunner.mjs.map +1 -0
  925. package/lib/AssistantStream.d.mts +104 -0
  926. package/lib/AssistantStream.d.mts.map +1 -0
  927. package/lib/AssistantStream.d.ts +104 -0
  928. package/lib/AssistantStream.d.ts.map +1 -0
  929. package/lib/AssistantStream.js +710 -0
  930. package/lib/AssistantStream.js.map +1 -0
  931. package/lib/AssistantStream.mjs +706 -0
  932. package/lib/AssistantStream.mjs.map +1 -0
  933. package/lib/ChatCompletionRunner.d.mts +54 -0
  934. package/lib/ChatCompletionRunner.d.mts.map +1 -0
  935. package/lib/ChatCompletionRunner.d.ts +54 -0
  936. package/lib/ChatCompletionRunner.d.ts.map +1 -0
  937. package/lib/ChatCompletionRunner.js +30 -0
  938. package/lib/ChatCompletionRunner.js.map +1 -0
  939. package/lib/ChatCompletionRunner.mjs +26 -0
  940. package/lib/ChatCompletionRunner.mjs.map +1 -0
  941. package/lib/ChatCompletionStream.d.mts +324 -0
  942. package/lib/ChatCompletionStream.d.mts.map +1 -0
  943. package/lib/ChatCompletionStream.d.ts +324 -0
  944. package/lib/ChatCompletionStream.d.ts.map +1 -0
  945. package/lib/ChatCompletionStream.js +1678 -0
  946. package/lib/ChatCompletionStream.js.map +1 -0
  947. package/lib/ChatCompletionStream.mjs +1673 -0
  948. package/lib/ChatCompletionStream.mjs.map +1 -0
  949. package/lib/ChatCompletionStreamingRunner.d.mts +55 -0
  950. package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -0
  951. package/lib/ChatCompletionStreamingRunner.d.ts +55 -0
  952. package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -0
  953. package/lib/ChatCompletionStreamingRunner.js +62 -0
  954. package/lib/ChatCompletionStreamingRunner.js.map +1 -0
  955. package/lib/ChatCompletionStreamingRunner.mjs +58 -0
  956. package/lib/ChatCompletionStreamingRunner.mjs.map +1 -0
  957. package/lib/EventEmitter.d.mts +50 -0
  958. package/lib/EventEmitter.d.mts.map +1 -0
  959. package/lib/EventEmitter.d.ts +50 -0
  960. package/lib/EventEmitter.d.ts.map +1 -0
  961. package/lib/EventEmitter.js +172 -0
  962. package/lib/EventEmitter.js.map +1 -0
  963. package/lib/EventEmitter.mjs +168 -0
  964. package/lib/EventEmitter.mjs.map +1 -0
  965. package/lib/EventStream.d.mts +117 -0
  966. package/lib/EventStream.d.mts.map +1 -0
  967. package/lib/EventStream.d.ts +117 -0
  968. package/lib/EventStream.d.ts.map +1 -0
  969. package/lib/EventStream.js +1571 -0
  970. package/lib/EventStream.js.map +1 -0
  971. package/lib/EventStream.mjs +1567 -0
  972. package/lib/EventStream.mjs.map +1 -0
  973. package/lib/ResponsesParser.d.mts +84 -0
  974. package/lib/ResponsesParser.d.mts.map +1 -0
  975. package/lib/ResponsesParser.d.ts +84 -0
  976. package/lib/ResponsesParser.d.ts.map +1 -0
  977. package/lib/ResponsesParser.js +205 -0
  978. package/lib/ResponsesParser.js.map +1 -0
  979. package/lib/ResponsesParser.mjs +195 -0
  980. package/lib/ResponsesParser.mjs.map +1 -0
  981. package/lib/RunnableFunction.d.mts +128 -0
  982. package/lib/RunnableFunction.d.mts.map +1 -0
  983. package/lib/RunnableFunction.d.ts +128 -0
  984. package/lib/RunnableFunction.d.ts.map +1 -0
  985. package/lib/RunnableFunction.js +22 -0
  986. package/lib/RunnableFunction.js.map +1 -0
  987. package/lib/RunnableFunction.mjs +17 -0
  988. package/lib/RunnableFunction.mjs.map +1 -0
  989. package/lib/Util.d.mts +7 -0
  990. package/lib/Util.d.mts.map +1 -0
  991. package/lib/Util.d.ts +7 -0
  992. package/lib/Util.d.ts.map +1 -0
  993. package/lib/Util.js +29 -0
  994. package/lib/Util.js.map +1 -0
  995. package/lib/Util.mjs +25 -0
  996. package/lib/Util.mjs.map +1 -0
  997. package/lib/agents/agent-session-stream.d.mts +41 -0
  998. package/lib/agents/agent-session-stream.d.mts.map +1 -0
  999. package/lib/agents/agent-session-stream.d.ts +41 -0
  1000. package/lib/agents/agent-session-stream.d.ts.map +1 -0
  1001. package/lib/agents/agent-session-stream.js +271 -0
  1002. package/lib/agents/agent-session-stream.js.map +1 -0
  1003. package/lib/agents/agent-session-stream.mjs +267 -0
  1004. package/lib/agents/agent-session-stream.mjs.map +1 -0
  1005. package/lib/agents/output-text.d.mts +4 -0
  1006. package/lib/agents/output-text.d.mts.map +1 -0
  1007. package/lib/agents/output-text.d.ts +4 -0
  1008. package/lib/agents/output-text.d.ts.map +1 -0
  1009. package/lib/agents/output-text.js +8 -0
  1010. package/lib/agents/output-text.js.map +1 -0
  1011. package/lib/agents/output-text.mjs +5 -0
  1012. package/lib/agents/output-text.mjs.map +1 -0
  1013. package/lib/agents/turn-state.d.mts +14 -0
  1014. package/lib/agents/turn-state.d.mts.map +1 -0
  1015. package/lib/agents/turn-state.d.ts +14 -0
  1016. package/lib/agents/turn-state.d.ts.map +1 -0
  1017. package/lib/agents/turn-state.js +62 -0
  1018. package/lib/agents/turn-state.js.map +1 -0
  1019. package/lib/agents/turn-state.mjs +58 -0
  1020. package/lib/agents/turn-state.mjs.map +1 -0
  1021. package/lib/assistant-run-polling.d.mts +12 -0
  1022. package/lib/assistant-run-polling.d.mts.map +1 -0
  1023. package/lib/assistant-run-polling.d.ts +12 -0
  1024. package/lib/assistant-run-polling.d.ts.map +1 -0
  1025. package/lib/assistant-run-polling.js +17 -0
  1026. package/lib/assistant-run-polling.js.map +1 -0
  1027. package/lib/assistant-run-polling.mjs +14 -0
  1028. package/lib/assistant-run-polling.mjs.map +1 -0
  1029. package/lib/chatCompletionUtils.d.mts +8 -0
  1030. package/lib/chatCompletionUtils.d.mts.map +1 -0
  1031. package/lib/chatCompletionUtils.d.ts +8 -0
  1032. package/lib/chatCompletionUtils.d.ts.map +1 -0
  1033. package/lib/chatCompletionUtils.js +15 -0
  1034. package/lib/chatCompletionUtils.js.map +1 -0
  1035. package/lib/chatCompletionUtils.mjs +9 -0
  1036. package/lib/chatCompletionUtils.mjs.map +1 -0
  1037. package/lib/embeddings.d.mts +18 -0
  1038. package/lib/embeddings.d.mts.map +1 -0
  1039. package/lib/embeddings.d.ts +18 -0
  1040. package/lib/embeddings.d.ts.map +1 -0
  1041. package/lib/embeddings.js +56 -0
  1042. package/lib/embeddings.js.map +1 -0
  1043. package/lib/embeddings.mjs +53 -0
  1044. package/lib/embeddings.mjs.map +1 -0
  1045. package/lib/file-processing.d.mts +11 -0
  1046. package/lib/file-processing.d.mts.map +1 -0
  1047. package/lib/file-processing.d.ts +11 -0
  1048. package/lib/file-processing.d.ts.map +1 -0
  1049. package/lib/file-processing.js +31 -0
  1050. package/lib/file-processing.js.map +1 -0
  1051. package/lib/file-processing.mjs +28 -0
  1052. package/lib/file-processing.mjs.map +1 -0
  1053. package/lib/jsonschema.d.mts +182 -0
  1054. package/lib/jsonschema.d.mts.map +1 -0
  1055. package/lib/jsonschema.d.ts +182 -0
  1056. package/lib/jsonschema.d.ts.map +1 -0
  1057. package/lib/jsonschema.js +11 -0
  1058. package/lib/jsonschema.js.map +1 -0
  1059. package/lib/jsonschema.mjs +10 -0
  1060. package/lib/jsonschema.mjs.map +1 -0
  1061. package/lib/live/transcript-grouper.d.mts +96 -0
  1062. package/lib/live/transcript-grouper.d.mts.map +1 -0
  1063. package/lib/live/transcript-grouper.d.ts +96 -0
  1064. package/lib/live/transcript-grouper.d.ts.map +1 -0
  1065. package/lib/live/transcript-grouper.js +223 -0
  1066. package/lib/live/transcript-grouper.js.map +1 -0
  1067. package/lib/live/transcript-grouper.mjs +219 -0
  1068. package/lib/live/transcript-grouper.mjs.map +1 -0
  1069. package/lib/live/transcript-grouping.d.mts +49 -0
  1070. package/lib/live/transcript-grouping.d.mts.map +1 -0
  1071. package/lib/live/transcript-grouping.d.ts +49 -0
  1072. package/lib/live/transcript-grouping.d.ts.map +1 -0
  1073. package/lib/live/transcript-grouping.js +287 -0
  1074. package/lib/live/transcript-grouping.js.map +1 -0
  1075. package/lib/live/transcript-grouping.mjs +283 -0
  1076. package/lib/live/transcript-grouping.mjs.map +1 -0
  1077. package/lib/live/webrtc.d.mts +13 -0
  1078. package/lib/live/webrtc.d.mts.map +1 -0
  1079. package/lib/live/webrtc.d.ts +13 -0
  1080. package/lib/live/webrtc.d.ts.map +1 -0
  1081. package/lib/live/webrtc.js +16 -0
  1082. package/lib/live/webrtc.js.map +1 -0
  1083. package/lib/live/webrtc.mjs +10 -0
  1084. package/lib/live/webrtc.mjs.map +1 -0
  1085. package/lib/parser.d.mts +150 -0
  1086. package/lib/parser.d.mts.map +1 -0
  1087. package/lib/parser.d.ts +150 -0
  1088. package/lib/parser.d.ts.map +1 -0
  1089. package/lib/parser.js +263 -0
  1090. package/lib/parser.js.map +1 -0
  1091. package/lib/parser.mjs +247 -0
  1092. package/lib/parser.mjs.map +1 -0
  1093. package/lib/polling.d.mts +20 -0
  1094. package/lib/polling.d.mts.map +1 -0
  1095. package/lib/polling.d.ts +20 -0
  1096. package/lib/polling.d.ts.map +1 -0
  1097. package/lib/polling.js +131 -0
  1098. package/lib/polling.js.map +1 -0
  1099. package/lib/polling.mjs +128 -0
  1100. package/lib/polling.mjs.map +1 -0
  1101. package/lib/realtime/webrtc.d.mts +13 -0
  1102. package/lib/realtime/webrtc.d.mts.map +1 -0
  1103. package/lib/realtime/webrtc.d.ts +13 -0
  1104. package/lib/realtime/webrtc.d.ts.map +1 -0
  1105. package/lib/realtime/webrtc.js +16 -0
  1106. package/lib/realtime/webrtc.js.map +1 -0
  1107. package/lib/realtime/webrtc.mjs +10 -0
  1108. package/lib/realtime/webrtc.mjs.map +1 -0
  1109. package/lib/responses/EventTypes.d.mts +14 -0
  1110. package/lib/responses/EventTypes.d.mts.map +1 -0
  1111. package/lib/responses/EventTypes.d.ts +14 -0
  1112. package/lib/responses/EventTypes.d.ts.map +1 -0
  1113. package/lib/responses/EventTypes.js +3 -0
  1114. package/lib/responses/EventTypes.js.map +1 -0
  1115. package/lib/responses/EventTypes.mjs +2 -0
  1116. package/lib/responses/EventTypes.mjs.map +1 -0
  1117. package/lib/responses/ResponseAccumulator.d.mts +18 -0
  1118. package/lib/responses/ResponseAccumulator.d.mts.map +1 -0
  1119. package/lib/responses/ResponseAccumulator.d.ts +18 -0
  1120. package/lib/responses/ResponseAccumulator.d.ts.map +1 -0
  1121. package/lib/responses/ResponseAccumulator.js +15 -0
  1122. package/lib/responses/ResponseAccumulator.js.map +1 -0
  1123. package/lib/responses/ResponseAccumulator.mjs +12 -0
  1124. package/lib/responses/ResponseAccumulator.mjs.map +1 -0
  1125. package/lib/responses/ResponseInputItems.d.mts +21 -0
  1126. package/lib/responses/ResponseInputItems.d.mts.map +1 -0
  1127. package/lib/responses/ResponseInputItems.d.ts +21 -0
  1128. package/lib/responses/ResponseInputItems.d.ts.map +1 -0
  1129. package/lib/responses/ResponseInputItems.js +128 -0
  1130. package/lib/responses/ResponseInputItems.js.map +1 -0
  1131. package/lib/responses/ResponseInputItems.mjs +124 -0
  1132. package/lib/responses/ResponseInputItems.mjs.map +1 -0
  1133. package/lib/responses/ResponseStream.d.mts +83 -0
  1134. package/lib/responses/ResponseStream.d.mts.map +1 -0
  1135. package/lib/responses/ResponseStream.d.ts +83 -0
  1136. package/lib/responses/ResponseStream.d.ts.map +1 -0
  1137. package/lib/responses/ResponseStream.js +187 -0
  1138. package/lib/responses/ResponseStream.js.map +1 -0
  1139. package/lib/responses/ResponseStream.mjs +183 -0
  1140. package/lib/responses/ResponseStream.mjs.map +1 -0
  1141. package/lib/transform.d.mts +48 -0
  1142. package/lib/transform.d.mts.map +1 -0
  1143. package/lib/transform.d.ts +48 -0
  1144. package/lib/transform.d.ts.map +1 -0
  1145. package/lib/transform.js +1644 -0
  1146. package/lib/transform.js.map +1 -0
  1147. package/lib/transform.mjs +1635 -0
  1148. package/lib/transform.mjs.map +1 -0
  1149. package/lib/vector-store-polling.d.mts +22 -0
  1150. package/lib/vector-store-polling.d.mts.map +1 -0
  1151. package/lib/vector-store-polling.d.ts +22 -0
  1152. package/lib/vector-store-polling.d.ts.map +1 -0
  1153. package/lib/vector-store-polling.js +24 -0
  1154. package/lib/vector-store-polling.js.map +1 -0
  1155. package/lib/vector-store-polling.mjs +20 -0
  1156. package/lib/vector-store-polling.mjs.map +1 -0
  1157. package/lib/vector-store-upload.d.mts +18 -0
  1158. package/lib/vector-store-upload.d.mts.map +1 -0
  1159. package/lib/vector-store-upload.d.ts +18 -0
  1160. package/lib/vector-store-upload.d.ts.map +1 -0
  1161. package/lib/vector-store-upload.js +41 -0
  1162. package/lib/vector-store-upload.js.map +1 -0
  1163. package/lib/vector-store-upload.mjs +38 -0
  1164. package/lib/vector-store-upload.mjs.map +1 -0
  1165. package/lib/webhook-signature.d.mts +15 -0
  1166. package/lib/webhook-signature.d.mts.map +1 -0
  1167. package/lib/webhook-signature.d.ts +15 -0
  1168. package/lib/webhook-signature.d.ts.map +1 -0
  1169. package/lib/webhook-signature.js +125 -0
  1170. package/lib/webhook-signature.js.map +1 -0
  1171. package/lib/webhook-signature.mjs +121 -0
  1172. package/lib/webhook-signature.mjs.map +1 -0
  1173. package/lib/webrtc/connection.d.mts +40 -0
  1174. package/lib/webrtc/connection.d.mts.map +1 -0
  1175. package/lib/webrtc/connection.d.ts +40 -0
  1176. package/lib/webrtc/connection.d.ts.map +1 -0
  1177. package/lib/webrtc/connection.js +228 -0
  1178. package/lib/webrtc/connection.js.map +1 -0
  1179. package/lib/webrtc/connection.mjs +224 -0
  1180. package/lib/webrtc/connection.mjs.map +1 -0
  1181. package/lib/webrtc/data-channel.d.mts +32 -0
  1182. package/lib/webrtc/data-channel.d.mts.map +1 -0
  1183. package/lib/webrtc/data-channel.d.ts +32 -0
  1184. package/lib/webrtc/data-channel.d.ts.map +1 -0
  1185. package/lib/webrtc/data-channel.js +125 -0
  1186. package/lib/webrtc/data-channel.js.map +1 -0
  1187. package/lib/webrtc/data-channel.mjs +121 -0
  1188. package/lib/webrtc/data-channel.mjs.map +1 -0
  1189. package/lib/webrtc/errors.d.mts +19 -0
  1190. package/lib/webrtc/errors.d.mts.map +1 -0
  1191. package/lib/webrtc/errors.d.ts +19 -0
  1192. package/lib/webrtc/errors.d.ts.map +1 -0
  1193. package/lib/webrtc/errors.js +18 -0
  1194. package/lib/webrtc/errors.js.map +1 -0
  1195. package/lib/webrtc/errors.mjs +14 -0
  1196. package/lib/webrtc/errors.mjs.map +1 -0
  1197. package/lib/webrtc/subscriptions.d.mts +13 -0
  1198. package/lib/webrtc/subscriptions.d.mts.map +1 -0
  1199. package/lib/webrtc/subscriptions.d.ts +13 -0
  1200. package/lib/webrtc/subscriptions.d.ts.map +1 -0
  1201. package/lib/webrtc/subscriptions.js +62 -0
  1202. package/lib/webrtc/subscriptions.js.map +1 -0
  1203. package/lib/webrtc/subscriptions.mjs +58 -0
  1204. package/lib/webrtc/subscriptions.mjs.map +1 -0
  1205. package/lib/webrtc/types.d.mts +99 -0
  1206. package/lib/webrtc/types.d.mts.map +1 -0
  1207. package/lib/webrtc/types.d.ts +99 -0
  1208. package/lib/webrtc/types.d.ts.map +1 -0
  1209. package/lib/webrtc/types.js +3 -0
  1210. package/lib/webrtc/types.js.map +1 -0
  1211. package/lib/webrtc/types.mjs +2 -0
  1212. package/lib/webrtc/types.mjs.map +1 -0
  1213. package/live/webrtc.d.mts +3 -0
  1214. package/live/webrtc.d.mts.map +1 -0
  1215. package/live/webrtc.d.ts +3 -0
  1216. package/live/webrtc.d.ts.map +1 -0
  1217. package/live/webrtc.js +8 -0
  1218. package/live/webrtc.js.map +1 -0
  1219. package/live/webrtc.mjs +2 -0
  1220. package/live/webrtc.mjs.map +1 -0
  1221. package/package.json +314 -0
  1222. package/pagination.d.mts +3 -0
  1223. package/pagination.d.mts.map +1 -0
  1224. package/pagination.d.ts +3 -0
  1225. package/pagination.d.ts.map +1 -0
  1226. package/pagination.js +6 -0
  1227. package/pagination.js.map +1 -0
  1228. package/pagination.mjs +3 -0
  1229. package/pagination.mjs.map +1 -0
  1230. package/providers/bedrock/aws.d.mts +51 -0
  1231. package/providers/bedrock/aws.d.mts.map +1 -0
  1232. package/providers/bedrock/aws.d.ts +51 -0
  1233. package/providers/bedrock/aws.d.ts.map +1 -0
  1234. package/providers/bedrock/aws.js +207 -0
  1235. package/providers/bedrock/aws.js.map +1 -0
  1236. package/providers/bedrock/aws.mjs +203 -0
  1237. package/providers/bedrock/aws.mjs.map +1 -0
  1238. package/providers/bedrock.d.mts +22 -0
  1239. package/providers/bedrock.d.mts.map +1 -0
  1240. package/providers/bedrock.d.ts +22 -0
  1241. package/providers/bedrock.d.ts.map +1 -0
  1242. package/providers/bedrock.js +43 -0
  1243. package/providers/bedrock.js.map +1 -0
  1244. package/providers/bedrock.mjs +39 -0
  1245. package/providers/bedrock.mjs.map +1 -0
  1246. package/realtime/index.d.mts +2 -0
  1247. package/realtime/index.d.mts.map +1 -0
  1248. package/realtime/index.d.ts +2 -0
  1249. package/realtime/index.d.ts.map +1 -0
  1250. package/realtime/index.js +6 -0
  1251. package/realtime/index.js.map +1 -0
  1252. package/realtime/index.mjs +2 -0
  1253. package/realtime/index.mjs.map +1 -0
  1254. package/realtime/internal-base.d.mts +161 -0
  1255. package/realtime/internal-base.d.mts.map +1 -0
  1256. package/realtime/internal-base.d.ts +161 -0
  1257. package/realtime/internal-base.d.ts.map +1 -0
  1258. package/realtime/internal-base.js +161 -0
  1259. package/realtime/internal-base.js.map +1 -0
  1260. package/realtime/internal-base.mjs +152 -0
  1261. package/realtime/internal-base.mjs.map +1 -0
  1262. package/realtime/webrtc.d.mts +3 -0
  1263. package/realtime/webrtc.d.mts.map +1 -0
  1264. package/realtime/webrtc.d.ts +3 -0
  1265. package/realtime/webrtc.d.ts.map +1 -0
  1266. package/realtime/webrtc.js +8 -0
  1267. package/realtime/webrtc.js.map +1 -0
  1268. package/realtime/webrtc.mjs +2 -0
  1269. package/realtime/webrtc.mjs.map +1 -0
  1270. package/realtime/websocket.d.mts +94 -0
  1271. package/realtime/websocket.d.mts.map +1 -0
  1272. package/realtime/websocket.d.ts +94 -0
  1273. package/realtime/websocket.d.ts.map +1 -0
  1274. package/realtime/websocket.js +241 -0
  1275. package/realtime/websocket.js.map +1 -0
  1276. package/realtime/websocket.mjs +237 -0
  1277. package/realtime/websocket.mjs.map +1 -0
  1278. package/realtime/ws.d.mts +81 -0
  1279. package/realtime/ws.d.mts.map +1 -0
  1280. package/realtime/ws.d.ts +81 -0
  1281. package/realtime/ws.d.ts.map +1 -0
  1282. package/realtime/ws.js +161 -0
  1283. package/realtime/ws.js.map +1 -0
  1284. package/realtime/ws.mjs +156 -0
  1285. package/realtime/ws.mjs.map +1 -0
  1286. package/rebyte-sandbox.d.mts +9 -0
  1287. package/rebyte-sandbox.d.mts.map +1 -0
  1288. package/rebyte-sandbox.d.ts +9 -0
  1289. package/rebyte-sandbox.d.ts.map +1 -0
  1290. package/rebyte-sandbox.js +8 -0
  1291. package/rebyte-sandbox.js.map +1 -0
  1292. package/rebyte-sandbox.mjs +5 -0
  1293. package/rebyte-sandbox.mjs.map +1 -0
  1294. package/resource.d.mts +3 -0
  1295. package/resource.d.mts.map +1 -0
  1296. package/resource.d.ts +3 -0
  1297. package/resource.d.ts.map +1 -0
  1298. package/resource.js +6 -0
  1299. package/resource.js.map +1 -0
  1300. package/resource.mjs +3 -0
  1301. package/resource.mjs.map +1 -0
  1302. package/resources/admin/admin.d.mts +10 -0
  1303. package/resources/admin/admin.d.mts.map +1 -0
  1304. package/resources/admin/admin.d.ts +10 -0
  1305. package/resources/admin/admin.d.ts.map +1 -0
  1306. package/resources/admin/admin.js +17 -0
  1307. package/resources/admin/admin.js.map +1 -0
  1308. package/resources/admin/admin.mjs +12 -0
  1309. package/resources/admin/admin.mjs.map +1 -0
  1310. package/resources/admin/index.d.mts +3 -0
  1311. package/resources/admin/index.d.mts.map +1 -0
  1312. package/resources/admin/index.d.ts +3 -0
  1313. package/resources/admin/index.d.ts.map +1 -0
  1314. package/resources/admin/index.js +9 -0
  1315. package/resources/admin/index.js.map +1 -0
  1316. package/resources/admin/index.mjs +4 -0
  1317. package/resources/admin/index.mjs.map +1 -0
  1318. package/resources/admin/organization/admin-api-keys.d.mts +149 -0
  1319. package/resources/admin/organization/admin-api-keys.d.mts.map +1 -0
  1320. package/resources/admin/organization/admin-api-keys.d.ts +149 -0
  1321. package/resources/admin/organization/admin-api-keys.d.ts.map +1 -0
  1322. package/resources/admin/organization/admin-api-keys.js +81 -0
  1323. package/resources/admin/organization/admin-api-keys.js.map +1 -0
  1324. package/resources/admin/organization/admin-api-keys.mjs +77 -0
  1325. package/resources/admin/organization/admin-api-keys.mjs.map +1 -0
  1326. package/resources/admin/organization/audit-logs.d.mts +1495 -0
  1327. package/resources/admin/organization/audit-logs.d.mts.map +1 -0
  1328. package/resources/admin/organization/audit-logs.d.ts +1495 -0
  1329. package/resources/admin/organization/audit-logs.d.ts.map +1 -0
  1330. package/resources/admin/organization/audit-logs.js +31 -0
  1331. package/resources/admin/organization/audit-logs.js.map +1 -0
  1332. package/resources/admin/organization/audit-logs.mjs +27 -0
  1333. package/resources/admin/organization/audit-logs.mjs.map +1 -0
  1334. package/resources/admin/organization/certificates.d.mts +322 -0
  1335. package/resources/admin/organization/certificates.d.mts.map +1 -0
  1336. package/resources/admin/organization/certificates.d.ts +322 -0
  1337. package/resources/admin/organization/certificates.d.ts.map +1 -0
  1338. package/resources/admin/organization/certificates.js +144 -0
  1339. package/resources/admin/organization/certificates.js.map +1 -0
  1340. package/resources/admin/organization/certificates.mjs +140 -0
  1341. package/resources/admin/organization/certificates.mjs.map +1 -0
  1342. package/resources/admin/organization/data-retention.d.mts +50 -0
  1343. package/resources/admin/organization/data-retention.d.mts.map +1 -0
  1344. package/resources/admin/organization/data-retention.d.ts +50 -0
  1345. package/resources/admin/organization/data-retention.d.ts.map +1 -0
  1346. package/resources/admin/organization/data-retention.js +42 -0
  1347. package/resources/admin/organization/data-retention.js.map +1 -0
  1348. package/resources/admin/organization/data-retention.mjs +38 -0
  1349. package/resources/admin/organization/data-retention.mjs.map +1 -0
  1350. package/resources/admin/organization/groups/groups.d.mts +160 -0
  1351. package/resources/admin/organization/groups/groups.d.mts.map +1 -0
  1352. package/resources/admin/organization/groups/groups.d.ts +160 -0
  1353. package/resources/admin/organization/groups/groups.d.ts.map +1 -0
  1354. package/resources/admin/organization/groups/groups.js +109 -0
  1355. package/resources/admin/organization/groups/groups.js.map +1 -0
  1356. package/resources/admin/organization/groups/groups.mjs +104 -0
  1357. package/resources/admin/organization/groups/groups.mjs.map +1 -0
  1358. package/resources/admin/organization/groups/index.d.mts +4 -0
  1359. package/resources/admin/organization/groups/index.d.mts.map +1 -0
  1360. package/resources/admin/organization/groups/index.d.ts +4 -0
  1361. package/resources/admin/organization/groups/index.d.ts.map +1 -0
  1362. package/resources/admin/organization/groups/index.js +11 -0
  1363. package/resources/admin/organization/groups/index.js.map +1 -0
  1364. package/resources/admin/organization/groups/index.mjs +5 -0
  1365. package/resources/admin/organization/groups/index.mjs.map +1 -0
  1366. package/resources/admin/organization/groups/roles.d.mts +275 -0
  1367. package/resources/admin/organization/groups/roles.d.mts.map +1 -0
  1368. package/resources/admin/organization/groups/roles.d.ts +275 -0
  1369. package/resources/admin/organization/groups/roles.d.ts.map +1 -0
  1370. package/resources/admin/organization/groups/roles.js +84 -0
  1371. package/resources/admin/organization/groups/roles.js.map +1 -0
  1372. package/resources/admin/organization/groups/roles.mjs +80 -0
  1373. package/resources/admin/organization/groups/roles.mjs.map +1 -0
  1374. package/resources/admin/organization/groups/users.d.mts +164 -0
  1375. package/resources/admin/organization/groups/users.d.mts.map +1 -0
  1376. package/resources/admin/organization/groups/users.d.ts +164 -0
  1377. package/resources/admin/organization/groups/users.d.ts.map +1 -0
  1378. package/resources/admin/organization/groups/users.js +84 -0
  1379. package/resources/admin/organization/groups/users.js.map +1 -0
  1380. package/resources/admin/organization/groups/users.mjs +80 -0
  1381. package/resources/admin/organization/groups/users.mjs.map +1 -0
  1382. package/resources/admin/organization/groups.d.mts +2 -0
  1383. package/resources/admin/organization/groups.d.mts.map +1 -0
  1384. package/resources/admin/organization/groups.d.ts +2 -0
  1385. package/resources/admin/organization/groups.d.ts.map +1 -0
  1386. package/resources/admin/organization/groups.js +6 -0
  1387. package/resources/admin/organization/groups.js.map +1 -0
  1388. package/resources/admin/organization/groups.mjs +3 -0
  1389. package/resources/admin/organization/groups.mjs.map +1 -0
  1390. package/resources/admin/organization/index.d.mts +14 -0
  1391. package/resources/admin/organization/index.d.mts.map +1 -0
  1392. package/resources/admin/organization/index.d.ts +14 -0
  1393. package/resources/admin/organization/index.d.ts.map +1 -0
  1394. package/resources/admin/organization/index.js +31 -0
  1395. package/resources/admin/organization/index.js.map +1 -0
  1396. package/resources/admin/organization/index.mjs +15 -0
  1397. package/resources/admin/organization/index.mjs.map +1 -0
  1398. package/resources/admin/organization/invites.d.mts +153 -0
  1399. package/resources/admin/organization/invites.d.mts.map +1 -0
  1400. package/resources/admin/organization/invites.d.ts +153 -0
  1401. package/resources/admin/organization/invites.d.ts.map +1 -0
  1402. package/resources/admin/organization/invites.js +83 -0
  1403. package/resources/admin/organization/invites.js.map +1 -0
  1404. package/resources/admin/organization/invites.mjs +79 -0
  1405. package/resources/admin/organization/invites.mjs.map +1 -0
  1406. package/resources/admin/organization/organization.d.mts +54 -0
  1407. package/resources/admin/organization/organization.d.mts.map +1 -0
  1408. package/resources/admin/organization/organization.d.ts +54 -0
  1409. package/resources/admin/organization/organization.d.ts.map +1 -0
  1410. package/resources/admin/organization/organization.js +61 -0
  1411. package/resources/admin/organization/organization.js.map +1 -0
  1412. package/resources/admin/organization/organization.mjs +56 -0
  1413. package/resources/admin/organization/organization.mjs.map +1 -0
  1414. package/resources/admin/organization/projects/api-keys.d.mts +184 -0
  1415. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -0
  1416. package/resources/admin/organization/projects/api-keys.d.ts +184 -0
  1417. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -0
  1418. package/resources/admin/organization/projects/api-keys.js +68 -0
  1419. package/resources/admin/organization/projects/api-keys.js.map +1 -0
  1420. package/resources/admin/organization/projects/api-keys.mjs +64 -0
  1421. package/resources/admin/organization/projects/api-keys.mjs.map +1 -0
  1422. package/resources/admin/organization/projects/certificates.d.mts +186 -0
  1423. package/resources/admin/organization/projects/certificates.d.mts.map +1 -0
  1424. package/resources/admin/organization/projects/certificates.d.ts +186 -0
  1425. package/resources/admin/organization/projects/certificates.d.ts.map +1 -0
  1426. package/resources/admin/organization/projects/certificates.js +64 -0
  1427. package/resources/admin/organization/projects/certificates.js.map +1 -0
  1428. package/resources/admin/organization/projects/certificates.mjs +60 -0
  1429. package/resources/admin/organization/projects/certificates.mjs.map +1 -0
  1430. package/resources/admin/organization/projects/data-retention.d.mts +53 -0
  1431. package/resources/admin/organization/projects/data-retention.d.mts.map +1 -0
  1432. package/resources/admin/organization/projects/data-retention.d.ts +53 -0
  1433. package/resources/admin/organization/projects/data-retention.d.ts.map +1 -0
  1434. package/resources/admin/organization/projects/data-retention.js +46 -0
  1435. package/resources/admin/organization/projects/data-retention.js.map +1 -0
  1436. package/resources/admin/organization/projects/data-retention.mjs +42 -0
  1437. package/resources/admin/organization/projects/data-retention.mjs.map +1 -0
  1438. package/resources/admin/organization/projects/groups/groups.d.mts +142 -0
  1439. package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -0
  1440. package/resources/admin/organization/projects/groups/groups.d.ts +142 -0
  1441. package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -0
  1442. package/resources/admin/organization/projects/groups/groups.js +93 -0
  1443. package/resources/admin/organization/projects/groups/groups.js.map +1 -0
  1444. package/resources/admin/organization/projects/groups/groups.mjs +88 -0
  1445. package/resources/admin/organization/projects/groups/groups.mjs.map +1 -0
  1446. package/resources/admin/organization/projects/groups/index.d.mts +3 -0
  1447. package/resources/admin/organization/projects/groups/index.d.mts.map +1 -0
  1448. package/resources/admin/organization/projects/groups/index.d.ts +3 -0
  1449. package/resources/admin/organization/projects/groups/index.d.ts.map +1 -0
  1450. package/resources/admin/organization/projects/groups/index.js +9 -0
  1451. package/resources/admin/organization/projects/groups/index.js.map +1 -0
  1452. package/resources/admin/organization/projects/groups/index.mjs +4 -0
  1453. package/resources/admin/organization/projects/groups/index.mjs.map +1 -0
  1454. package/resources/admin/organization/projects/groups/roles.d.mts +292 -0
  1455. package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -0
  1456. package/resources/admin/organization/projects/groups/roles.d.ts +292 -0
  1457. package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -0
  1458. package/resources/admin/organization/projects/groups/roles.js +87 -0
  1459. package/resources/admin/organization/projects/groups/roles.js.map +1 -0
  1460. package/resources/admin/organization/projects/groups/roles.mjs +83 -0
  1461. package/resources/admin/organization/projects/groups/roles.mjs.map +1 -0
  1462. package/resources/admin/organization/projects/groups.d.mts +2 -0
  1463. package/resources/admin/organization/projects/groups.d.mts.map +1 -0
  1464. package/resources/admin/organization/projects/groups.d.ts +2 -0
  1465. package/resources/admin/organization/projects/groups.d.ts.map +1 -0
  1466. package/resources/admin/organization/projects/groups.js +6 -0
  1467. package/resources/admin/organization/projects/groups.js.map +1 -0
  1468. package/resources/admin/organization/projects/groups.mjs +3 -0
  1469. package/resources/admin/organization/projects/groups.mjs.map +1 -0
  1470. package/resources/admin/organization/projects/hosted-tool-permissions.d.mts +174 -0
  1471. package/resources/admin/organization/projects/hosted-tool-permissions.d.mts.map +1 -0
  1472. package/resources/admin/organization/projects/hosted-tool-permissions.d.ts +174 -0
  1473. package/resources/admin/organization/projects/hosted-tool-permissions.d.ts.map +1 -0
  1474. package/resources/admin/organization/projects/hosted-tool-permissions.js +45 -0
  1475. package/resources/admin/organization/projects/hosted-tool-permissions.js.map +1 -0
  1476. package/resources/admin/organization/projects/hosted-tool-permissions.mjs +41 -0
  1477. package/resources/admin/organization/projects/hosted-tool-permissions.mjs.map +1 -0
  1478. package/resources/admin/organization/projects/index.d.mts +14 -0
  1479. package/resources/admin/organization/projects/index.d.mts.map +1 -0
  1480. package/resources/admin/organization/projects/index.d.ts +14 -0
  1481. package/resources/admin/organization/projects/index.d.ts.map +1 -0
  1482. package/resources/admin/organization/projects/index.js +31 -0
  1483. package/resources/admin/organization/projects/index.js.map +1 -0
  1484. package/resources/admin/organization/projects/index.mjs +15 -0
  1485. package/resources/admin/organization/projects/index.mjs.map +1 -0
  1486. package/resources/admin/organization/projects/model-permissions.d.mts +86 -0
  1487. package/resources/admin/organization/projects/model-permissions.d.mts.map +1 -0
  1488. package/resources/admin/organization/projects/model-permissions.d.ts +86 -0
  1489. package/resources/admin/organization/projects/model-permissions.d.ts.map +1 -0
  1490. package/resources/admin/organization/projects/model-permissions.js +63 -0
  1491. package/resources/admin/organization/projects/model-permissions.js.map +1 -0
  1492. package/resources/admin/organization/projects/model-permissions.mjs +59 -0
  1493. package/resources/admin/organization/projects/model-permissions.mjs.map +1 -0
  1494. package/resources/admin/organization/projects/projects.d.mts +209 -0
  1495. package/resources/admin/organization/projects/projects.d.mts.map +1 -0
  1496. package/resources/admin/organization/projects/projects.d.ts +209 -0
  1497. package/resources/admin/organization/projects/projects.d.ts.map +1 -0
  1498. package/resources/admin/organization/projects/projects.js +153 -0
  1499. package/resources/admin/organization/projects/projects.js.map +1 -0
  1500. package/resources/admin/organization/projects/projects.mjs +148 -0
  1501. package/resources/admin/organization/projects/projects.mjs.map +1 -0
  1502. package/resources/admin/organization/projects/rate-limits.d.mts +120 -0
  1503. package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -0
  1504. package/resources/admin/organization/projects/rate-limits.d.ts +120 -0
  1505. package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -0
  1506. package/resources/admin/organization/projects/rate-limits.js +47 -0
  1507. package/resources/admin/organization/projects/rate-limits.js.map +1 -0
  1508. package/resources/admin/organization/projects/rate-limits.mjs +43 -0
  1509. package/resources/admin/organization/projects/rate-limits.mjs.map +1 -0
  1510. package/resources/admin/organization/projects/roles.d.mts +146 -0
  1511. package/resources/admin/organization/projects/roles.d.mts.map +1 -0
  1512. package/resources/admin/organization/projects/roles.d.ts +146 -0
  1513. package/resources/admin/organization/projects/roles.d.ts.map +1 -0
  1514. package/resources/admin/organization/projects/roles.js +108 -0
  1515. package/resources/admin/organization/projects/roles.js.map +1 -0
  1516. package/resources/admin/organization/projects/roles.mjs +104 -0
  1517. package/resources/admin/organization/projects/roles.mjs.map +1 -0
  1518. package/resources/admin/organization/projects/service-accounts/api-keys.d.mts +67 -0
  1519. package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
  1520. package/resources/admin/organization/projects/service-accounts/api-keys.d.ts +67 -0
  1521. package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
  1522. package/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
  1523. package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
  1524. package/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
  1525. package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
  1526. package/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
  1527. package/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
  1528. package/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
  1529. package/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
  1530. package/resources/admin/organization/projects/service-accounts/index.js +9 -0
  1531. package/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
  1532. package/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
  1533. package/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
  1534. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +190 -0
  1535. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
  1536. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +190 -0
  1537. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
  1538. package/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
  1539. package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
  1540. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
  1541. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
  1542. package/resources/admin/organization/projects/service-accounts.d.mts +2 -0
  1543. package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -0
  1544. package/resources/admin/organization/projects/service-accounts.d.ts +2 -0
  1545. package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -0
  1546. package/resources/admin/organization/projects/service-accounts.js +6 -0
  1547. package/resources/admin/organization/projects/service-accounts.js.map +1 -0
  1548. package/resources/admin/organization/projects/service-accounts.mjs +3 -0
  1549. package/resources/admin/organization/projects/service-accounts.mjs.map +1 -0
  1550. package/resources/admin/organization/projects/spend-alerts.d.mts +260 -0
  1551. package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -0
  1552. package/resources/admin/organization/projects/spend-alerts.d.ts +260 -0
  1553. package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -0
  1554. package/resources/admin/organization/projects/spend-alerts.js +121 -0
  1555. package/resources/admin/organization/projects/spend-alerts.js.map +1 -0
  1556. package/resources/admin/organization/projects/spend-alerts.mjs +117 -0
  1557. package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -0
  1558. package/resources/admin/organization/projects/spend-limit.d.mts +115 -0
  1559. package/resources/admin/organization/projects/spend-limit.d.mts.map +1 -0
  1560. package/resources/admin/organization/projects/spend-limit.d.ts +115 -0
  1561. package/resources/admin/organization/projects/spend-limit.d.ts.map +1 -0
  1562. package/resources/admin/organization/projects/spend-limit.js +67 -0
  1563. package/resources/admin/organization/projects/spend-limit.js.map +1 -0
  1564. package/resources/admin/organization/projects/spend-limit.mjs +63 -0
  1565. package/resources/admin/organization/projects/spend-limit.mjs.map +1 -0
  1566. package/resources/admin/organization/projects/users/index.d.mts +3 -0
  1567. package/resources/admin/organization/projects/users/index.d.mts.map +1 -0
  1568. package/resources/admin/organization/projects/users/index.d.ts +3 -0
  1569. package/resources/admin/organization/projects/users/index.d.ts.map +1 -0
  1570. package/resources/admin/organization/projects/users/index.js +9 -0
  1571. package/resources/admin/organization/projects/users/index.js.map +1 -0
  1572. package/resources/admin/organization/projects/users/index.mjs +4 -0
  1573. package/resources/admin/organization/projects/users/index.mjs.map +1 -0
  1574. package/resources/admin/organization/projects/users/roles.d.mts +266 -0
  1575. package/resources/admin/organization/projects/users/roles.d.mts.map +1 -0
  1576. package/resources/admin/organization/projects/users/roles.d.ts +266 -0
  1577. package/resources/admin/organization/projects/users/roles.d.ts.map +1 -0
  1578. package/resources/admin/organization/projects/users/roles.js +87 -0
  1579. package/resources/admin/organization/projects/users/roles.js.map +1 -0
  1580. package/resources/admin/organization/projects/users/roles.mjs +83 -0
  1581. package/resources/admin/organization/projects/users/roles.mjs.map +1 -0
  1582. package/resources/admin/organization/projects/users/users.d.mts +157 -0
  1583. package/resources/admin/organization/projects/users/users.d.mts.map +1 -0
  1584. package/resources/admin/organization/projects/users/users.d.ts +157 -0
  1585. package/resources/admin/organization/projects/users/users.d.ts.map +1 -0
  1586. package/resources/admin/organization/projects/users/users.js +116 -0
  1587. package/resources/admin/organization/projects/users/users.js.map +1 -0
  1588. package/resources/admin/organization/projects/users/users.mjs +111 -0
  1589. package/resources/admin/organization/projects/users/users.mjs.map +1 -0
  1590. package/resources/admin/organization/projects/users.d.mts +2 -0
  1591. package/resources/admin/organization/projects/users.d.mts.map +1 -0
  1592. package/resources/admin/organization/projects/users.d.ts +2 -0
  1593. package/resources/admin/organization/projects/users.d.ts.map +1 -0
  1594. package/resources/admin/organization/projects/users.js +6 -0
  1595. package/resources/admin/organization/projects/users.js.map +1 -0
  1596. package/resources/admin/organization/projects/users.mjs +3 -0
  1597. package/resources/admin/organization/projects/users.mjs.map +1 -0
  1598. package/resources/admin/organization/projects.d.mts +2 -0
  1599. package/resources/admin/organization/projects.d.mts.map +1 -0
  1600. package/resources/admin/organization/projects.d.ts +2 -0
  1601. package/resources/admin/organization/projects.d.ts.map +1 -0
  1602. package/resources/admin/organization/projects.js +6 -0
  1603. package/resources/admin/organization/projects.js.map +1 -0
  1604. package/resources/admin/organization/projects.mjs +3 -0
  1605. package/resources/admin/organization/projects.mjs.map +1 -0
  1606. package/resources/admin/organization/roles.d.mts +153 -0
  1607. package/resources/admin/organization/roles.d.mts.map +1 -0
  1608. package/resources/admin/organization/roles.d.ts +153 -0
  1609. package/resources/admin/organization/roles.d.ts.map +1 -0
  1610. package/resources/admin/organization/roles.js +96 -0
  1611. package/resources/admin/organization/roles.js.map +1 -0
  1612. package/resources/admin/organization/roles.mjs +92 -0
  1613. package/resources/admin/organization/roles.mjs.map +1 -0
  1614. package/resources/admin/organization/spend-alerts.d.mts +236 -0
  1615. package/resources/admin/organization/spend-alerts.d.mts.map +1 -0
  1616. package/resources/admin/organization/spend-alerts.d.ts +236 -0
  1617. package/resources/admin/organization/spend-alerts.d.ts.map +1 -0
  1618. package/resources/admin/organization/spend-alerts.js +110 -0
  1619. package/resources/admin/organization/spend-alerts.js.map +1 -0
  1620. package/resources/admin/organization/spend-alerts.mjs +106 -0
  1621. package/resources/admin/organization/spend-alerts.mjs.map +1 -0
  1622. package/resources/admin/organization/spend-limit.d.mts +108 -0
  1623. package/resources/admin/organization/spend-limit.d.mts.map +1 -0
  1624. package/resources/admin/organization/spend-limit.d.ts +108 -0
  1625. package/resources/admin/organization/spend-limit.d.ts.map +1 -0
  1626. package/resources/admin/organization/spend-limit.js +59 -0
  1627. package/resources/admin/organization/spend-limit.js.map +1 -0
  1628. package/resources/admin/organization/spend-limit.mjs +55 -0
  1629. package/resources/admin/organization/spend-limit.mjs.map +1 -0
  1630. package/resources/admin/organization/usage.d.mts +5618 -0
  1631. package/resources/admin/organization/usage.d.mts.map +1 -0
  1632. package/resources/admin/organization/usage.d.ts +5618 -0
  1633. package/resources/admin/organization/usage.d.ts.map +1 -0
  1634. package/resources/admin/organization/usage.js +207 -0
  1635. package/resources/admin/organization/usage.js.map +1 -0
  1636. package/resources/admin/organization/usage.mjs +203 -0
  1637. package/resources/admin/organization/usage.mjs.map +1 -0
  1638. package/resources/admin/organization/users/index.d.mts +3 -0
  1639. package/resources/admin/organization/users/index.d.mts.map +1 -0
  1640. package/resources/admin/organization/users/index.d.ts +3 -0
  1641. package/resources/admin/organization/users/index.d.ts.map +1 -0
  1642. package/resources/admin/organization/users/index.js +9 -0
  1643. package/resources/admin/organization/users/index.js.map +1 -0
  1644. package/resources/admin/organization/users/index.mjs +4 -0
  1645. package/resources/admin/organization/users/index.mjs.map +1 -0
  1646. package/resources/admin/organization/users/roles.d.mts +249 -0
  1647. package/resources/admin/organization/users/roles.d.mts.map +1 -0
  1648. package/resources/admin/organization/users/roles.d.ts +249 -0
  1649. package/resources/admin/organization/users/roles.d.ts.map +1 -0
  1650. package/resources/admin/organization/users/roles.js +84 -0
  1651. package/resources/admin/organization/users/roles.js.map +1 -0
  1652. package/resources/admin/organization/users/roles.mjs +80 -0
  1653. package/resources/admin/organization/users/roles.mjs.map +1 -0
  1654. package/resources/admin/organization/users/users.d.mts +185 -0
  1655. package/resources/admin/organization/users/users.d.mts.map +1 -0
  1656. package/resources/admin/organization/users/users.d.ts +185 -0
  1657. package/resources/admin/organization/users/users.d.ts.map +1 -0
  1658. package/resources/admin/organization/users/users.js +84 -0
  1659. package/resources/admin/organization/users/users.js.map +1 -0
  1660. package/resources/admin/organization/users/users.mjs +79 -0
  1661. package/resources/admin/organization/users/users.mjs.map +1 -0
  1662. package/resources/admin/organization/users.d.mts +2 -0
  1663. package/resources/admin/organization/users.d.mts.map +1 -0
  1664. package/resources/admin/organization/users.d.ts +2 -0
  1665. package/resources/admin/organization/users.d.ts.map +1 -0
  1666. package/resources/admin/organization/users.js +6 -0
  1667. package/resources/admin/organization/users.js.map +1 -0
  1668. package/resources/admin/organization/users.mjs +3 -0
  1669. package/resources/admin/organization/users.mjs.map +1 -0
  1670. package/resources/admin/organization.d.mts +2 -0
  1671. package/resources/admin/organization.d.mts.map +1 -0
  1672. package/resources/admin/organization.d.ts +2 -0
  1673. package/resources/admin/organization.d.ts.map +1 -0
  1674. package/resources/admin/organization.js +6 -0
  1675. package/resources/admin/organization.js.map +1 -0
  1676. package/resources/admin/organization.mjs +3 -0
  1677. package/resources/admin/organization.mjs.map +1 -0
  1678. package/resources/admin.d.mts +2 -0
  1679. package/resources/admin.d.mts.map +1 -0
  1680. package/resources/admin.d.ts +2 -0
  1681. package/resources/admin.d.ts.map +1 -0
  1682. package/resources/admin.js +6 -0
  1683. package/resources/admin.js.map +1 -0
  1684. package/resources/admin.mjs +3 -0
  1685. package/resources/admin.mjs.map +1 -0
  1686. package/resources/audio/audio.d.mts +28 -0
  1687. package/resources/audio/audio.d.mts.map +1 -0
  1688. package/resources/audio/audio.d.ts +28 -0
  1689. package/resources/audio/audio.d.ts.map +1 -0
  1690. package/resources/audio/audio.js +25 -0
  1691. package/resources/audio/audio.js.map +1 -0
  1692. package/resources/audio/audio.mjs +20 -0
  1693. package/resources/audio/audio.mjs.map +1 -0
  1694. package/resources/audio/index.d.mts +5 -0
  1695. package/resources/audio/index.d.mts.map +1 -0
  1696. package/resources/audio/index.d.ts +5 -0
  1697. package/resources/audio/index.d.ts.map +1 -0
  1698. package/resources/audio/index.js +13 -0
  1699. package/resources/audio/index.js.map +1 -0
  1700. package/resources/audio/index.mjs +6 -0
  1701. package/resources/audio/index.mjs.map +1 -0
  1702. package/resources/audio/speech.d.mts +83 -0
  1703. package/resources/audio/speech.d.mts.map +1 -0
  1704. package/resources/audio/speech.d.ts +83 -0
  1705. package/resources/audio/speech.d.ts.map +1 -0
  1706. package/resources/audio/speech.js +39 -0
  1707. package/resources/audio/speech.js.map +1 -0
  1708. package/resources/audio/speech.mjs +35 -0
  1709. package/resources/audio/speech.mjs.map +1 -0
  1710. package/resources/audio/transcriptions.d.mts +694 -0
  1711. package/resources/audio/transcriptions.d.mts.map +1 -0
  1712. package/resources/audio/transcriptions.d.ts +694 -0
  1713. package/resources/audio/transcriptions.d.ts.map +1 -0
  1714. package/resources/audio/transcriptions.js +22 -0
  1715. package/resources/audio/transcriptions.js.map +1 -0
  1716. package/resources/audio/transcriptions.mjs +18 -0
  1717. package/resources/audio/transcriptions.mjs.map +1 -0
  1718. package/resources/audio/translations.d.mts +86 -0
  1719. package/resources/audio/translations.d.mts.map +1 -0
  1720. package/resources/audio/translations.d.ts +86 -0
  1721. package/resources/audio/translations.d.ts.map +1 -0
  1722. package/resources/audio/translations.js +16 -0
  1723. package/resources/audio/translations.js.map +1 -0
  1724. package/resources/audio/translations.mjs +12 -0
  1725. package/resources/audio/translations.mjs.map +1 -0
  1726. package/resources/audio.d.mts +2 -0
  1727. package/resources/audio.d.mts.map +1 -0
  1728. package/resources/audio.d.ts +2 -0
  1729. package/resources/audio.d.ts.map +1 -0
  1730. package/resources/audio.js +6 -0
  1731. package/resources/audio.js.map +1 -0
  1732. package/resources/audio.mjs +3 -0
  1733. package/resources/audio.mjs.map +1 -0
  1734. package/resources/batches.d.mts +285 -0
  1735. package/resources/batches.d.mts.map +1 -0
  1736. package/resources/batches.d.ts +285 -0
  1737. package/resources/batches.d.ts.map +1 -0
  1738. package/resources/batches.js +47 -0
  1739. package/resources/batches.js.map +1 -0
  1740. package/resources/batches.mjs +43 -0
  1741. package/resources/batches.mjs.map +1 -0
  1742. package/resources/beta/agents/agents.d.mts +3688 -0
  1743. package/resources/beta/agents/agents.d.mts.map +1 -0
  1744. package/resources/beta/agents/agents.d.ts +3688 -0
  1745. package/resources/beta/agents/agents.d.ts.map +1 -0
  1746. package/resources/beta/agents/agents.js +119 -0
  1747. package/resources/beta/agents/agents.js.map +1 -0
  1748. package/resources/beta/agents/agents.mjs +114 -0
  1749. package/resources/beta/agents/agents.mjs.map +1 -0
  1750. package/resources/beta/agents/environments/environments.d.mts +65 -0
  1751. package/resources/beta/agents/environments/environments.d.mts.map +1 -0
  1752. package/resources/beta/agents/environments/environments.d.ts +65 -0
  1753. package/resources/beta/agents/environments/environments.d.ts.map +1 -0
  1754. package/resources/beta/agents/environments/environments.js +43 -0
  1755. package/resources/beta/agents/environments/environments.js.map +1 -0
  1756. package/resources/beta/agents/environments/environments.mjs +38 -0
  1757. package/resources/beta/agents/environments/environments.mjs.map +1 -0
  1758. package/resources/beta/agents/environments/files.d.mts +111 -0
  1759. package/resources/beta/agents/environments/files.d.mts.map +1 -0
  1760. package/resources/beta/agents/environments/files.d.ts +111 -0
  1761. package/resources/beta/agents/environments/files.d.ts.map +1 -0
  1762. package/resources/beta/agents/environments/files.js +61 -0
  1763. package/resources/beta/agents/environments/files.js.map +1 -0
  1764. package/resources/beta/agents/environments/files.mjs +57 -0
  1765. package/resources/beta/agents/environments/files.mjs.map +1 -0
  1766. package/resources/beta/agents/environments/index.d.mts +4 -0
  1767. package/resources/beta/agents/environments/index.d.mts.map +1 -0
  1768. package/resources/beta/agents/environments/index.d.ts +4 -0
  1769. package/resources/beta/agents/environments/index.d.ts.map +1 -0
  1770. package/resources/beta/agents/environments/index.js +11 -0
  1771. package/resources/beta/agents/environments/index.js.map +1 -0
  1772. package/resources/beta/agents/environments/index.mjs +5 -0
  1773. package/resources/beta/agents/environments/index.mjs.map +1 -0
  1774. package/resources/beta/agents/environments/templates.d.mts +415 -0
  1775. package/resources/beta/agents/environments/templates.d.mts.map +1 -0
  1776. package/resources/beta/agents/environments/templates.d.ts +415 -0
  1777. package/resources/beta/agents/environments/templates.d.ts.map +1 -0
  1778. package/resources/beta/agents/environments/templates.js +112 -0
  1779. package/resources/beta/agents/environments/templates.js.map +1 -0
  1780. package/resources/beta/agents/environments/templates.mjs +108 -0
  1781. package/resources/beta/agents/environments/templates.mjs.map +1 -0
  1782. package/resources/beta/agents/environments.d.mts +2 -0
  1783. package/resources/beta/agents/environments.d.mts.map +1 -0
  1784. package/resources/beta/agents/environments.d.ts +2 -0
  1785. package/resources/beta/agents/environments.d.ts.map +1 -0
  1786. package/resources/beta/agents/environments.js +6 -0
  1787. package/resources/beta/agents/environments.js.map +1 -0
  1788. package/resources/beta/agents/environments.mjs +3 -0
  1789. package/resources/beta/agents/environments.mjs.map +1 -0
  1790. package/resources/beta/agents/index.d.mts +5 -0
  1791. package/resources/beta/agents/index.d.mts.map +1 -0
  1792. package/resources/beta/agents/index.d.ts +5 -0
  1793. package/resources/beta/agents/index.d.ts.map +1 -0
  1794. package/resources/beta/agents/index.js +13 -0
  1795. package/resources/beta/agents/index.js.map +1 -0
  1796. package/resources/beta/agents/index.mjs +6 -0
  1797. package/resources/beta/agents/index.mjs.map +1 -0
  1798. package/resources/beta/agents/sessions/artifacts.d.mts +158 -0
  1799. package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -0
  1800. package/resources/beta/agents/sessions/artifacts.d.ts +158 -0
  1801. package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -0
  1802. package/resources/beta/agents/sessions/artifacts.js +106 -0
  1803. package/resources/beta/agents/sessions/artifacts.js.map +1 -0
  1804. package/resources/beta/agents/sessions/artifacts.mjs +102 -0
  1805. package/resources/beta/agents/sessions/artifacts.mjs.map +1 -0
  1806. package/resources/beta/agents/sessions/events.d.mts +61 -0
  1807. package/resources/beta/agents/sessions/events.d.mts.map +1 -0
  1808. package/resources/beta/agents/sessions/events.d.ts +61 -0
  1809. package/resources/beta/agents/sessions/events.d.ts.map +1 -0
  1810. package/resources/beta/agents/sessions/events.js +72 -0
  1811. package/resources/beta/agents/sessions/events.js.map +1 -0
  1812. package/resources/beta/agents/sessions/events.mjs +68 -0
  1813. package/resources/beta/agents/sessions/events.mjs.map +1 -0
  1814. package/resources/beta/agents/sessions/index.d.mts +7 -0
  1815. package/resources/beta/agents/sessions/index.d.mts.map +1 -0
  1816. package/resources/beta/agents/sessions/index.d.ts +7 -0
  1817. package/resources/beta/agents/sessions/index.d.ts.map +1 -0
  1818. package/resources/beta/agents/sessions/index.js +17 -0
  1819. package/resources/beta/agents/sessions/index.js.map +1 -0
  1820. package/resources/beta/agents/sessions/index.mjs +8 -0
  1821. package/resources/beta/agents/sessions/index.mjs.map +1 -0
  1822. package/resources/beta/agents/sessions/items.d.mts +37 -0
  1823. package/resources/beta/agents/sessions/items.d.mts.map +1 -0
  1824. package/resources/beta/agents/sessions/items.d.ts +37 -0
  1825. package/resources/beta/agents/sessions/items.d.ts.map +1 -0
  1826. package/resources/beta/agents/sessions/items.js +35 -0
  1827. package/resources/beta/agents/sessions/items.js.map +1 -0
  1828. package/resources/beta/agents/sessions/items.mjs +31 -0
  1829. package/resources/beta/agents/sessions/items.mjs.map +1 -0
  1830. package/resources/beta/agents/sessions/sessions.d.mts +220 -0
  1831. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -0
  1832. package/resources/beta/agents/sessions/sessions.d.ts +220 -0
  1833. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -0
  1834. package/resources/beta/agents/sessions/sessions.js +124 -0
  1835. package/resources/beta/agents/sessions/sessions.js.map +1 -0
  1836. package/resources/beta/agents/sessions/sessions.mjs +119 -0
  1837. package/resources/beta/agents/sessions/sessions.mjs.map +1 -0
  1838. package/resources/beta/agents/sessions/subagents/index.d.mts +4 -0
  1839. package/resources/beta/agents/sessions/subagents/index.d.mts.map +1 -0
  1840. package/resources/beta/agents/sessions/subagents/index.d.ts +4 -0
  1841. package/resources/beta/agents/sessions/subagents/index.d.ts.map +1 -0
  1842. package/resources/beta/agents/sessions/subagents/index.js +11 -0
  1843. package/resources/beta/agents/sessions/subagents/index.js.map +1 -0
  1844. package/resources/beta/agents/sessions/subagents/index.mjs +5 -0
  1845. package/resources/beta/agents/sessions/subagents/index.mjs.map +1 -0
  1846. package/resources/beta/agents/sessions/subagents/items.d.mts +41 -0
  1847. package/resources/beta/agents/sessions/subagents/items.d.mts.map +1 -0
  1848. package/resources/beta/agents/sessions/subagents/items.d.ts +41 -0
  1849. package/resources/beta/agents/sessions/subagents/items.d.ts.map +1 -0
  1850. package/resources/beta/agents/sessions/subagents/items.js +36 -0
  1851. package/resources/beta/agents/sessions/subagents/items.js.map +1 -0
  1852. package/resources/beta/agents/sessions/subagents/items.mjs +32 -0
  1853. package/resources/beta/agents/sessions/subagents/items.mjs.map +1 -0
  1854. package/resources/beta/agents/sessions/subagents/subagents.d.mts +65 -0
  1855. package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -0
  1856. package/resources/beta/agents/sessions/subagents/subagents.d.ts +65 -0
  1857. package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -0
  1858. package/resources/beta/agents/sessions/subagents/subagents.js +67 -0
  1859. package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -0
  1860. package/resources/beta/agents/sessions/subagents/subagents.mjs +62 -0
  1861. package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -0
  1862. package/resources/beta/agents/sessions/subagents/turns/index.d.mts +3 -0
  1863. package/resources/beta/agents/sessions/subagents/turns/index.d.mts.map +1 -0
  1864. package/resources/beta/agents/sessions/subagents/turns/index.d.ts +3 -0
  1865. package/resources/beta/agents/sessions/subagents/turns/index.d.ts.map +1 -0
  1866. package/resources/beta/agents/sessions/subagents/turns/index.js +9 -0
  1867. package/resources/beta/agents/sessions/subagents/turns/index.js.map +1 -0
  1868. package/resources/beta/agents/sessions/subagents/turns/index.mjs +4 -0
  1869. package/resources/beta/agents/sessions/subagents/turns/index.mjs.map +1 -0
  1870. package/resources/beta/agents/sessions/subagents/turns/items.d.mts +45 -0
  1871. package/resources/beta/agents/sessions/subagents/turns/items.d.mts.map +1 -0
  1872. package/resources/beta/agents/sessions/subagents/turns/items.d.ts +45 -0
  1873. package/resources/beta/agents/sessions/subagents/turns/items.d.ts.map +1 -0
  1874. package/resources/beta/agents/sessions/subagents/turns/items.js +36 -0
  1875. package/resources/beta/agents/sessions/subagents/turns/items.js.map +1 -0
  1876. package/resources/beta/agents/sessions/subagents/turns/items.mjs +32 -0
  1877. package/resources/beta/agents/sessions/subagents/turns/items.mjs.map +1 -0
  1878. package/resources/beta/agents/sessions/subagents/turns/turns.d.mts +73 -0
  1879. package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -0
  1880. package/resources/beta/agents/sessions/subagents/turns/turns.d.ts +73 -0
  1881. package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -0
  1882. package/resources/beta/agents/sessions/subagents/turns/turns.js +68 -0
  1883. package/resources/beta/agents/sessions/subagents/turns/turns.js.map +1 -0
  1884. package/resources/beta/agents/sessions/subagents/turns/turns.mjs +63 -0
  1885. package/resources/beta/agents/sessions/subagents/turns/turns.mjs.map +1 -0
  1886. package/resources/beta/agents/sessions/subagents/turns.d.mts +2 -0
  1887. package/resources/beta/agents/sessions/subagents/turns.d.mts.map +1 -0
  1888. package/resources/beta/agents/sessions/subagents/turns.d.ts +2 -0
  1889. package/resources/beta/agents/sessions/subagents/turns.d.ts.map +1 -0
  1890. package/resources/beta/agents/sessions/subagents/turns.js +6 -0
  1891. package/resources/beta/agents/sessions/subagents/turns.js.map +1 -0
  1892. package/resources/beta/agents/sessions/subagents/turns.mjs +3 -0
  1893. package/resources/beta/agents/sessions/subagents/turns.mjs.map +1 -0
  1894. package/resources/beta/agents/sessions/subagents.d.mts +2 -0
  1895. package/resources/beta/agents/sessions/subagents.d.mts.map +1 -0
  1896. package/resources/beta/agents/sessions/subagents.d.ts +2 -0
  1897. package/resources/beta/agents/sessions/subagents.d.ts.map +1 -0
  1898. package/resources/beta/agents/sessions/subagents.js +6 -0
  1899. package/resources/beta/agents/sessions/subagents.js.map +1 -0
  1900. package/resources/beta/agents/sessions/subagents.mjs +3 -0
  1901. package/resources/beta/agents/sessions/subagents.mjs.map +1 -0
  1902. package/resources/beta/agents/sessions/turns.d.mts +116 -0
  1903. package/resources/beta/agents/sessions/turns.d.mts.map +1 -0
  1904. package/resources/beta/agents/sessions/turns.d.ts +116 -0
  1905. package/resources/beta/agents/sessions/turns.d.ts.map +1 -0
  1906. package/resources/beta/agents/sessions/turns.js +57 -0
  1907. package/resources/beta/agents/sessions/turns.js.map +1 -0
  1908. package/resources/beta/agents/sessions/turns.mjs +53 -0
  1909. package/resources/beta/agents/sessions/turns.mjs.map +1 -0
  1910. package/resources/beta/agents/sessions.d.mts +2 -0
  1911. package/resources/beta/agents/sessions.d.mts.map +1 -0
  1912. package/resources/beta/agents/sessions.d.ts +2 -0
  1913. package/resources/beta/agents/sessions.d.ts.map +1 -0
  1914. package/resources/beta/agents/sessions.js +6 -0
  1915. package/resources/beta/agents/sessions.js.map +1 -0
  1916. package/resources/beta/agents/sessions.mjs +3 -0
  1917. package/resources/beta/agents/sessions.mjs.map +1 -0
  1918. package/resources/beta/agents/vaults/credentials.d.mts +526 -0
  1919. package/resources/beta/agents/vaults/credentials.d.mts.map +1 -0
  1920. package/resources/beta/agents/vaults/credentials.d.ts +526 -0
  1921. package/resources/beta/agents/vaults/credentials.d.ts.map +1 -0
  1922. package/resources/beta/agents/vaults/credentials.js +132 -0
  1923. package/resources/beta/agents/vaults/credentials.js.map +1 -0
  1924. package/resources/beta/agents/vaults/credentials.mjs +128 -0
  1925. package/resources/beta/agents/vaults/credentials.mjs.map +1 -0
  1926. package/resources/beta/agents/vaults/index.d.mts +3 -0
  1927. package/resources/beta/agents/vaults/index.d.mts.map +1 -0
  1928. package/resources/beta/agents/vaults/index.d.ts +3 -0
  1929. package/resources/beta/agents/vaults/index.d.ts.map +1 -0
  1930. package/resources/beta/agents/vaults/index.js +9 -0
  1931. package/resources/beta/agents/vaults/index.js.map +1 -0
  1932. package/resources/beta/agents/vaults/index.mjs +4 -0
  1933. package/resources/beta/agents/vaults/index.mjs.map +1 -0
  1934. package/resources/beta/agents/vaults/vaults.d.mts +145 -0
  1935. package/resources/beta/agents/vaults/vaults.d.mts.map +1 -0
  1936. package/resources/beta/agents/vaults/vaults.d.ts +145 -0
  1937. package/resources/beta/agents/vaults/vaults.d.ts.map +1 -0
  1938. package/resources/beta/agents/vaults/vaults.js +93 -0
  1939. package/resources/beta/agents/vaults/vaults.js.map +1 -0
  1940. package/resources/beta/agents/vaults/vaults.mjs +88 -0
  1941. package/resources/beta/agents/vaults/vaults.mjs.map +1 -0
  1942. package/resources/beta/agents/vaults.d.mts +2 -0
  1943. package/resources/beta/agents/vaults.d.mts.map +1 -0
  1944. package/resources/beta/agents/vaults.d.ts +2 -0
  1945. package/resources/beta/agents/vaults.d.ts.map +1 -0
  1946. package/resources/beta/agents/vaults.js +6 -0
  1947. package/resources/beta/agents/vaults.js.map +1 -0
  1948. package/resources/beta/agents/vaults.mjs +3 -0
  1949. package/resources/beta/agents/vaults.mjs.map +1 -0
  1950. package/resources/beta/agents.d.mts +2 -0
  1951. package/resources/beta/agents.d.mts.map +1 -0
  1952. package/resources/beta/agents.d.ts +2 -0
  1953. package/resources/beta/agents.d.ts.map +1 -0
  1954. package/resources/beta/agents.js +6 -0
  1955. package/resources/beta/agents.js.map +1 -0
  1956. package/resources/beta/agents.mjs +3 -0
  1957. package/resources/beta/agents.mjs.map +1 -0
  1958. package/resources/beta/assistants.d.mts +1209 -0
  1959. package/resources/beta/assistants.d.mts.map +1 -0
  1960. package/resources/beta/assistants.d.ts +1209 -0
  1961. package/resources/beta/assistants.d.ts.map +1 -0
  1962. package/resources/beta/assistants.js +78 -0
  1963. package/resources/beta/assistants.js.map +1 -0
  1964. package/resources/beta/assistants.mjs +74 -0
  1965. package/resources/beta/assistants.mjs.map +1 -0
  1966. package/resources/beta/beta.d.mts +29 -0
  1967. package/resources/beta/beta.d.mts.map +1 -0
  1968. package/resources/beta/beta.d.ts +29 -0
  1969. package/resources/beta/beta.d.ts.map +1 -0
  1970. package/resources/beta/beta.js +37 -0
  1971. package/resources/beta/beta.js.map +1 -0
  1972. package/resources/beta/beta.mjs +32 -0
  1973. package/resources/beta/beta.mjs.map +1 -0
  1974. package/resources/beta/chatkit/chatkit.d.mts +51 -0
  1975. package/resources/beta/chatkit/chatkit.d.mts.map +1 -0
  1976. package/resources/beta/chatkit/chatkit.d.ts +51 -0
  1977. package/resources/beta/chatkit/chatkit.d.ts.map +1 -0
  1978. package/resources/beta/chatkit/chatkit.js +21 -0
  1979. package/resources/beta/chatkit/chatkit.js.map +1 -0
  1980. package/resources/beta/chatkit/chatkit.mjs +16 -0
  1981. package/resources/beta/chatkit/chatkit.mjs.map +1 -0
  1982. package/resources/beta/chatkit/index.d.mts +4 -0
  1983. package/resources/beta/chatkit/index.d.mts.map +1 -0
  1984. package/resources/beta/chatkit/index.d.ts +4 -0
  1985. package/resources/beta/chatkit/index.d.ts.map +1 -0
  1986. package/resources/beta/chatkit/index.js +11 -0
  1987. package/resources/beta/chatkit/index.js.map +1 -0
  1988. package/resources/beta/chatkit/index.mjs +5 -0
  1989. package/resources/beta/chatkit/index.mjs.map +1 -0
  1990. package/resources/beta/chatkit/sessions.d.mts +59 -0
  1991. package/resources/beta/chatkit/sessions.d.mts.map +1 -0
  1992. package/resources/beta/chatkit/sessions.d.ts +59 -0
  1993. package/resources/beta/chatkit/sessions.d.ts.map +1 -0
  1994. package/resources/beta/chatkit/sessions.js +49 -0
  1995. package/resources/beta/chatkit/sessions.js.map +1 -0
  1996. package/resources/beta/chatkit/sessions.mjs +45 -0
  1997. package/resources/beta/chatkit/sessions.mjs.map +1 -0
  1998. package/resources/beta/chatkit/threads.d.mts +811 -0
  1999. package/resources/beta/chatkit/threads.d.mts.map +1 -0
  2000. package/resources/beta/chatkit/threads.d.ts +811 -0
  2001. package/resources/beta/chatkit/threads.d.ts.map +1 -0
  2002. package/resources/beta/chatkit/threads.js +85 -0
  2003. package/resources/beta/chatkit/threads.js.map +1 -0
  2004. package/resources/beta/chatkit/threads.mjs +81 -0
  2005. package/resources/beta/chatkit/threads.mjs.map +1 -0
  2006. package/resources/beta/chatkit.d.mts +2 -0
  2007. package/resources/beta/chatkit.d.mts.map +1 -0
  2008. package/resources/beta/chatkit.d.ts +2 -0
  2009. package/resources/beta/chatkit.d.ts.map +1 -0
  2010. package/resources/beta/chatkit.js +6 -0
  2011. package/resources/beta/chatkit.js.map +1 -0
  2012. package/resources/beta/chatkit.mjs +3 -0
  2013. package/resources/beta/chatkit.mjs.map +1 -0
  2014. package/resources/beta/index.d.mts +8 -0
  2015. package/resources/beta/index.d.mts.map +1 -0
  2016. package/resources/beta/index.d.ts +8 -0
  2017. package/resources/beta/index.d.ts.map +1 -0
  2018. package/resources/beta/index.js +19 -0
  2019. package/resources/beta/index.js.map +1 -0
  2020. package/resources/beta/index.mjs +9 -0
  2021. package/resources/beta/index.mjs.map +1 -0
  2022. package/resources/beta/realtime/index.d.mts +4 -0
  2023. package/resources/beta/realtime/index.d.mts.map +1 -0
  2024. package/resources/beta/realtime/index.d.ts +4 -0
  2025. package/resources/beta/realtime/index.d.ts.map +1 -0
  2026. package/resources/beta/realtime/index.js +10 -0
  2027. package/resources/beta/realtime/index.js.map +1 -0
  2028. package/resources/beta/realtime/index.mjs +4 -0
  2029. package/resources/beta/realtime/index.mjs.map +1 -0
  2030. package/resources/beta/realtime/realtime.d.mts +2332 -0
  2031. package/resources/beta/realtime/realtime.d.mts.map +1 -0
  2032. package/resources/beta/realtime/realtime.d.ts +2332 -0
  2033. package/resources/beta/realtime/realtime.d.ts.map +1 -0
  2034. package/resources/beta/realtime/realtime.js +23 -0
  2035. package/resources/beta/realtime/realtime.js.map +1 -0
  2036. package/resources/beta/realtime/realtime.mjs +18 -0
  2037. package/resources/beta/realtime/realtime.mjs.map +1 -0
  2038. package/resources/beta/realtime/sessions.d.mts +744 -0
  2039. package/resources/beta/realtime/sessions.d.mts.map +1 -0
  2040. package/resources/beta/realtime/sessions.d.ts +744 -0
  2041. package/resources/beta/realtime/sessions.d.ts.map +1 -0
  2042. package/resources/beta/realtime/sessions.js +32 -0
  2043. package/resources/beta/realtime/sessions.js.map +1 -0
  2044. package/resources/beta/realtime/sessions.mjs +28 -0
  2045. package/resources/beta/realtime/sessions.mjs.map +1 -0
  2046. package/resources/beta/realtime/transcription-sessions.d.mts +299 -0
  2047. package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -0
  2048. package/resources/beta/realtime/transcription-sessions.d.ts +299 -0
  2049. package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -0
  2050. package/resources/beta/realtime/transcription-sessions.js +32 -0
  2051. package/resources/beta/realtime/transcription-sessions.js.map +1 -0
  2052. package/resources/beta/realtime/transcription-sessions.mjs +28 -0
  2053. package/resources/beta/realtime/transcription-sessions.mjs.map +1 -0
  2054. package/resources/beta/realtime.d.mts +2 -0
  2055. package/resources/beta/realtime.d.mts.map +1 -0
  2056. package/resources/beta/realtime.d.ts +2 -0
  2057. package/resources/beta/realtime.d.ts.map +1 -0
  2058. package/resources/beta/realtime.js +5 -0
  2059. package/resources/beta/realtime.js.map +1 -0
  2060. package/resources/beta/realtime.mjs +2 -0
  2061. package/resources/beta/realtime.mjs.map +1 -0
  2062. package/resources/beta/responses/index.d.mts +6 -0
  2063. package/resources/beta/responses/index.d.mts.map +1 -0
  2064. package/resources/beta/responses/index.d.ts +6 -0
  2065. package/resources/beta/responses/index.d.ts.map +1 -0
  2066. package/resources/beta/responses/index.js +11 -0
  2067. package/resources/beta/responses/index.js.map +1 -0
  2068. package/resources/beta/responses/index.mjs +5 -0
  2069. package/resources/beta/responses/index.mjs.map +1 -0
  2070. package/resources/beta/responses/input-items.d.mts +69 -0
  2071. package/resources/beta/responses/input-items.d.mts.map +1 -0
  2072. package/resources/beta/responses/input-items.d.ts +69 -0
  2073. package/resources/beta/responses/input-items.d.ts.map +1 -0
  2074. package/resources/beta/responses/input-items.js +37 -0
  2075. package/resources/beta/responses/input-items.js.map +1 -0
  2076. package/resources/beta/responses/input-items.mjs +33 -0
  2077. package/resources/beta/responses/input-items.mjs.map +1 -0
  2078. package/resources/beta/responses/input-tokens.d.mts +195 -0
  2079. package/resources/beta/responses/input-tokens.d.mts.map +1 -0
  2080. package/resources/beta/responses/input-tokens.d.ts +195 -0
  2081. package/resources/beta/responses/input-tokens.d.ts.map +1 -0
  2082. package/resources/beta/responses/input-tokens.js +34 -0
  2083. package/resources/beta/responses/input-tokens.js.map +1 -0
  2084. package/resources/beta/responses/input-tokens.mjs +30 -0
  2085. package/resources/beta/responses/input-tokens.mjs.map +1 -0
  2086. package/resources/beta/responses/internal-base.d.mts +74 -0
  2087. package/resources/beta/responses/internal-base.d.mts.map +1 -0
  2088. package/resources/beta/responses/internal-base.d.ts +74 -0
  2089. package/resources/beta/responses/internal-base.d.ts.map +1 -0
  2090. package/resources/beta/responses/internal-base.js +51 -0
  2091. package/resources/beta/responses/internal-base.js.map +1 -0
  2092. package/resources/beta/responses/internal-base.mjs +45 -0
  2093. package/resources/beta/responses/internal-base.mjs.map +1 -0
  2094. package/resources/beta/responses/responses.d.mts +11918 -0
  2095. package/resources/beta/responses/responses.d.mts.map +1 -0
  2096. package/resources/beta/responses/responses.d.ts +11918 -0
  2097. package/resources/beta/responses/responses.d.ts.map +1 -0
  2098. package/resources/beta/responses/responses.js +121 -0
  2099. package/resources/beta/responses/responses.js.map +1 -0
  2100. package/resources/beta/responses/responses.mjs +116 -0
  2101. package/resources/beta/responses/responses.mjs.map +1 -0
  2102. package/resources/beta/responses/ws-base.d.mts +106 -0
  2103. package/resources/beta/responses/ws-base.d.mts.map +1 -0
  2104. package/resources/beta/responses/ws-base.d.ts +106 -0
  2105. package/resources/beta/responses/ws-base.d.ts.map +1 -0
  2106. package/resources/beta/responses/ws-base.js +476 -0
  2107. package/resources/beta/responses/ws-base.js.map +1 -0
  2108. package/resources/beta/responses/ws-base.mjs +472 -0
  2109. package/resources/beta/responses/ws-base.mjs.map +1 -0
  2110. package/resources/beta/responses/ws.d.mts +13 -0
  2111. package/resources/beta/responses/ws.d.mts.map +1 -0
  2112. package/resources/beta/responses/ws.d.ts +13 -0
  2113. package/resources/beta/responses/ws.d.ts.map +1 -0
  2114. package/resources/beta/responses/ws.js +34 -0
  2115. package/resources/beta/responses/ws.js.map +1 -0
  2116. package/resources/beta/responses/ws.mjs +29 -0
  2117. package/resources/beta/responses/ws.mjs.map +1 -0
  2118. package/resources/beta/responses.d.mts +2 -0
  2119. package/resources/beta/responses.d.mts.map +1 -0
  2120. package/resources/beta/responses.d.ts +2 -0
  2121. package/resources/beta/responses.d.ts.map +1 -0
  2122. package/resources/beta/responses.js +6 -0
  2123. package/resources/beta/responses.js.map +1 -0
  2124. package/resources/beta/responses.mjs +3 -0
  2125. package/resources/beta/responses.mjs.map +1 -0
  2126. package/resources/beta/threads/index.d.mts +4 -0
  2127. package/resources/beta/threads/index.d.mts.map +1 -0
  2128. package/resources/beta/threads/index.d.ts +4 -0
  2129. package/resources/beta/threads/index.d.ts.map +1 -0
  2130. package/resources/beta/threads/index.js +11 -0
  2131. package/resources/beta/threads/index.js.map +1 -0
  2132. package/resources/beta/threads/index.mjs +5 -0
  2133. package/resources/beta/threads/index.mjs.map +1 -0
  2134. package/resources/beta/threads/messages.d.mts +602 -0
  2135. package/resources/beta/threads/messages.d.mts.map +1 -0
  2136. package/resources/beta/threads/messages.d.ts +602 -0
  2137. package/resources/beta/threads/messages.d.ts.map +1 -0
  2138. package/resources/beta/threads/messages.js +83 -0
  2139. package/resources/beta/threads/messages.js.map +1 -0
  2140. package/resources/beta/threads/messages.mjs +79 -0
  2141. package/resources/beta/threads/messages.mjs.map +1 -0
  2142. package/resources/beta/threads/runs/index.d.mts +3 -0
  2143. package/resources/beta/threads/runs/index.d.mts.map +1 -0
  2144. package/resources/beta/threads/runs/index.d.ts +3 -0
  2145. package/resources/beta/threads/runs/index.d.ts.map +1 -0
  2146. package/resources/beta/threads/runs/index.js +9 -0
  2147. package/resources/beta/threads/runs/index.js.map +1 -0
  2148. package/resources/beta/threads/runs/index.mjs +4 -0
  2149. package/resources/beta/threads/runs/index.mjs.map +1 -0
  2150. package/resources/beta/threads/runs/runs.d.mts +740 -0
  2151. package/resources/beta/threads/runs/runs.d.mts.map +1 -0
  2152. package/resources/beta/threads/runs/runs.d.ts +740 -0
  2153. package/resources/beta/threads/runs/runs.d.ts.map +1 -0
  2154. package/resources/beta/threads/runs/runs.js +151 -0
  2155. package/resources/beta/threads/runs/runs.js.map +1 -0
  2156. package/resources/beta/threads/runs/runs.mjs +146 -0
  2157. package/resources/beta/threads/runs/runs.mjs.map +1 -0
  2158. package/resources/beta/threads/runs/steps.d.mts +616 -0
  2159. package/resources/beta/threads/runs/steps.d.mts.map +1 -0
  2160. package/resources/beta/threads/runs/steps.d.ts +616 -0
  2161. package/resources/beta/threads/runs/steps.d.ts.map +1 -0
  2162. package/resources/beta/threads/runs/steps.js +45 -0
  2163. package/resources/beta/threads/runs/steps.js.map +1 -0
  2164. package/resources/beta/threads/runs/steps.mjs +41 -0
  2165. package/resources/beta/threads/runs/steps.mjs.map +1 -0
  2166. package/resources/beta/threads/runs.d.mts +2 -0
  2167. package/resources/beta/threads/runs.d.mts.map +1 -0
  2168. package/resources/beta/threads/runs.d.ts +2 -0
  2169. package/resources/beta/threads/runs.d.ts.map +1 -0
  2170. package/resources/beta/threads/runs.js +6 -0
  2171. package/resources/beta/threads/runs.js.map +1 -0
  2172. package/resources/beta/threads/runs.mjs +3 -0
  2173. package/resources/beta/threads/runs.mjs.map +1 -0
  2174. package/resources/beta/threads/threads.d.mts +1051 -0
  2175. package/resources/beta/threads/threads.d.mts.map +1 -0
  2176. package/resources/beta/threads/threads.d.ts +1051 -0
  2177. package/resources/beta/threads/threads.d.ts.map +1 -0
  2178. package/resources/beta/threads/threads.js +104 -0
  2179. package/resources/beta/threads/threads.js.map +1 -0
  2180. package/resources/beta/threads/threads.mjs +99 -0
  2181. package/resources/beta/threads/threads.mjs.map +1 -0
  2182. package/resources/beta/threads.d.mts +2 -0
  2183. package/resources/beta/threads.d.mts.map +1 -0
  2184. package/resources/beta/threads.d.ts +2 -0
  2185. package/resources/beta/threads.d.ts.map +1 -0
  2186. package/resources/beta/threads.js +6 -0
  2187. package/resources/beta/threads.js.map +1 -0
  2188. package/resources/beta/threads.mjs +3 -0
  2189. package/resources/beta/threads.mjs.map +1 -0
  2190. package/resources/beta.d.mts +2 -0
  2191. package/resources/beta.d.mts.map +1 -0
  2192. package/resources/beta.d.ts +2 -0
  2193. package/resources/beta.d.ts.map +1 -0
  2194. package/resources/beta.js +6 -0
  2195. package/resources/beta.js.map +1 -0
  2196. package/resources/beta.mjs +3 -0
  2197. package/resources/beta.mjs.map +1 -0
  2198. package/resources/chat/chat.d.mts +13 -0
  2199. package/resources/chat/chat.d.mts.map +1 -0
  2200. package/resources/chat/chat.d.ts +13 -0
  2201. package/resources/chat/chat.d.ts.map +1 -0
  2202. package/resources/chat/chat.js +17 -0
  2203. package/resources/chat/chat.js.map +1 -0
  2204. package/resources/chat/chat.mjs +12 -0
  2205. package/resources/chat/chat.mjs.map +1 -0
  2206. package/resources/chat/completions/completions.d.mts +2220 -0
  2207. package/resources/chat/completions/completions.d.mts.map +1 -0
  2208. package/resources/chat/completions/completions.d.ts +2220 -0
  2209. package/resources/chat/completions/completions.d.ts.map +1 -0
  2210. package/resources/chat/completions/completions.js +134 -0
  2211. package/resources/chat/completions/completions.js.map +1 -0
  2212. package/resources/chat/completions/completions.mjs +125 -0
  2213. package/resources/chat/completions/completions.mjs.map +1 -0
  2214. package/resources/chat/completions/index.d.mts +4 -0
  2215. package/resources/chat/completions/index.d.mts.map +1 -0
  2216. package/resources/chat/completions/index.d.ts +4 -0
  2217. package/resources/chat/completions/index.d.ts.map +1 -0
  2218. package/resources/chat/completions/index.js +11 -0
  2219. package/resources/chat/completions/index.js.map +1 -0
  2220. package/resources/chat/completions/index.mjs +5 -0
  2221. package/resources/chat/completions/index.mjs.map +1 -0
  2222. package/resources/chat/completions/messages.d.mts +37 -0
  2223. package/resources/chat/completions/messages.d.mts.map +1 -0
  2224. package/resources/chat/completions/messages.d.ts +37 -0
  2225. package/resources/chat/completions/messages.d.ts.map +1 -0
  2226. package/resources/chat/completions/messages.js +31 -0
  2227. package/resources/chat/completions/messages.js.map +1 -0
  2228. package/resources/chat/completions/messages.mjs +27 -0
  2229. package/resources/chat/completions/messages.mjs.map +1 -0
  2230. package/resources/chat/completions.d.mts +2 -0
  2231. package/resources/chat/completions.d.mts.map +1 -0
  2232. package/resources/chat/completions.d.ts +2 -0
  2233. package/resources/chat/completions.d.ts.map +1 -0
  2234. package/resources/chat/completions.js +6 -0
  2235. package/resources/chat/completions.js.map +1 -0
  2236. package/resources/chat/completions.mjs +3 -0
  2237. package/resources/chat/completions.mjs.map +1 -0
  2238. package/resources/chat/index.d.mts +3 -0
  2239. package/resources/chat/index.d.mts.map +1 -0
  2240. package/resources/chat/index.d.ts +3 -0
  2241. package/resources/chat/index.d.ts.map +1 -0
  2242. package/resources/chat/index.js +9 -0
  2243. package/resources/chat/index.js.map +1 -0
  2244. package/resources/chat/index.mjs +4 -0
  2245. package/resources/chat/index.mjs.map +1 -0
  2246. package/resources/chat.d.mts +2 -0
  2247. package/resources/chat.d.mts.map +1 -0
  2248. package/resources/chat.d.ts +2 -0
  2249. package/resources/chat.d.ts.map +1 -0
  2250. package/resources/chat.js +6 -0
  2251. package/resources/chat.js.map +1 -0
  2252. package/resources/chat.mjs +3 -0
  2253. package/resources/chat.mjs.map +1 -0
  2254. package/resources/completions.d.mts +352 -0
  2255. package/resources/completions.d.mts.map +1 -0
  2256. package/resources/completions.d.ts +352 -0
  2257. package/resources/completions.d.ts.map +1 -0
  2258. package/resources/completions.js +20 -0
  2259. package/resources/completions.js.map +1 -0
  2260. package/resources/completions.mjs +16 -0
  2261. package/resources/completions.mjs.map +1 -0
  2262. package/resources/containers/containers.d.mts +292 -0
  2263. package/resources/containers/containers.d.mts.map +1 -0
  2264. package/resources/containers/containers.d.ts +292 -0
  2265. package/resources/containers/containers.d.ts.map +1 -0
  2266. package/resources/containers/containers.js +55 -0
  2267. package/resources/containers/containers.js.map +1 -0
  2268. package/resources/containers/containers.mjs +50 -0
  2269. package/resources/containers/containers.mjs.map +1 -0
  2270. package/resources/containers/files/content.d.mts +16 -0
  2271. package/resources/containers/files/content.d.mts.map +1 -0
  2272. package/resources/containers/files/content.d.ts +16 -0
  2273. package/resources/containers/files/content.d.ts.map +1 -0
  2274. package/resources/containers/files/content.js +23 -0
  2275. package/resources/containers/files/content.js.map +1 -0
  2276. package/resources/containers/files/content.mjs +19 -0
  2277. package/resources/containers/files/content.mjs.map +1 -0
  2278. package/resources/containers/files/files.d.mts +148 -0
  2279. package/resources/containers/files/files.d.mts.map +1 -0
  2280. package/resources/containers/files/files.d.ts +148 -0
  2281. package/resources/containers/files/files.d.ts.map +1 -0
  2282. package/resources/containers/files/files.js +61 -0
  2283. package/resources/containers/files/files.js.map +1 -0
  2284. package/resources/containers/files/files.mjs +56 -0
  2285. package/resources/containers/files/files.mjs.map +1 -0
  2286. package/resources/containers/files/index.d.mts +3 -0
  2287. package/resources/containers/files/index.d.mts.map +1 -0
  2288. package/resources/containers/files/index.d.ts +3 -0
  2289. package/resources/containers/files/index.d.ts.map +1 -0
  2290. package/resources/containers/files/index.js +9 -0
  2291. package/resources/containers/files/index.js.map +1 -0
  2292. package/resources/containers/files/index.mjs +4 -0
  2293. package/resources/containers/files/index.mjs.map +1 -0
  2294. package/resources/containers/files.d.mts +2 -0
  2295. package/resources/containers/files.d.mts.map +1 -0
  2296. package/resources/containers/files.d.ts +2 -0
  2297. package/resources/containers/files.d.ts.map +1 -0
  2298. package/resources/containers/files.js +6 -0
  2299. package/resources/containers/files.js.map +1 -0
  2300. package/resources/containers/files.mjs +3 -0
  2301. package/resources/containers/files.mjs.map +1 -0
  2302. package/resources/containers/index.d.mts +3 -0
  2303. package/resources/containers/index.d.mts.map +1 -0
  2304. package/resources/containers/index.d.ts +3 -0
  2305. package/resources/containers/index.d.ts.map +1 -0
  2306. package/resources/containers/index.js +9 -0
  2307. package/resources/containers/index.js.map +1 -0
  2308. package/resources/containers/index.mjs +4 -0
  2309. package/resources/containers/index.mjs.map +1 -0
  2310. package/resources/containers.d.mts +2 -0
  2311. package/resources/containers.d.mts.map +1 -0
  2312. package/resources/containers.d.ts +2 -0
  2313. package/resources/containers.d.ts.map +1 -0
  2314. package/resources/containers.js +6 -0
  2315. package/resources/containers.js.map +1 -0
  2316. package/resources/containers.mjs +3 -0
  2317. package/resources/containers.mjs.map +1 -0
  2318. package/resources/content-provenance-checks.d.mts +103 -0
  2319. package/resources/content-provenance-checks.d.mts.map +1 -0
  2320. package/resources/content-provenance-checks.d.ts +103 -0
  2321. package/resources/content-provenance-checks.d.ts.map +1 -0
  2322. package/resources/content-provenance-checks.js +24 -0
  2323. package/resources/content-provenance-checks.js.map +1 -0
  2324. package/resources/content-provenance-checks.mjs +20 -0
  2325. package/resources/content-provenance-checks.mjs.map +1 -0
  2326. package/resources/conversations/conversations.d.mts +210 -0
  2327. package/resources/conversations/conversations.d.mts.map +1 -0
  2328. package/resources/conversations/conversations.d.ts +210 -0
  2329. package/resources/conversations/conversations.d.ts.map +1 -0
  2330. package/resources/conversations/conversations.js +55 -0
  2331. package/resources/conversations/conversations.js.map +1 -0
  2332. package/resources/conversations/conversations.mjs +50 -0
  2333. package/resources/conversations/conversations.mjs.map +1 -0
  2334. package/resources/conversations/index.d.mts +3 -0
  2335. package/resources/conversations/index.d.mts.map +1 -0
  2336. package/resources/conversations/index.d.ts +3 -0
  2337. package/resources/conversations/index.d.ts.map +1 -0
  2338. package/resources/conversations/index.js +9 -0
  2339. package/resources/conversations/index.js.map +1 -0
  2340. package/resources/conversations/index.mjs +4 -0
  2341. package/resources/conversations/index.mjs.map +1 -0
  2342. package/resources/conversations/items.d.mts +457 -0
  2343. package/resources/conversations/items.d.mts.map +1 -0
  2344. package/resources/conversations/items.d.ts +457 -0
  2345. package/resources/conversations/items.d.ts.map +1 -0
  2346. package/resources/conversations/items.js +53 -0
  2347. package/resources/conversations/items.js.map +1 -0
  2348. package/resources/conversations/items.mjs +49 -0
  2349. package/resources/conversations/items.mjs.map +1 -0
  2350. package/resources/conversations.d.mts +2 -0
  2351. package/resources/conversations.d.mts.map +1 -0
  2352. package/resources/conversations.d.ts +2 -0
  2353. package/resources/conversations.d.ts.map +1 -0
  2354. package/resources/conversations.js +6 -0
  2355. package/resources/conversations.js.map +1 -0
  2356. package/resources/conversations.mjs +3 -0
  2357. package/resources/conversations.mjs.map +1 -0
  2358. package/resources/embeddings.d.mts +125 -0
  2359. package/resources/embeddings.d.mts.map +1 -0
  2360. package/resources/embeddings.d.ts +125 -0
  2361. package/resources/embeddings.d.ts.map +1 -0
  2362. package/resources/embeddings.js +16 -0
  2363. package/resources/embeddings.js.map +1 -0
  2364. package/resources/embeddings.mjs +12 -0
  2365. package/resources/embeddings.mjs.map +1 -0
  2366. package/resources/evals/evals.d.mts +739 -0
  2367. package/resources/evals/evals.d.mts.map +1 -0
  2368. package/resources/evals/evals.d.ts +739 -0
  2369. package/resources/evals/evals.d.ts.map +1 -0
  2370. package/resources/evals/evals.js +61 -0
  2371. package/resources/evals/evals.js.map +1 -0
  2372. package/resources/evals/evals.mjs +56 -0
  2373. package/resources/evals/evals.mjs.map +1 -0
  2374. package/resources/evals/index.d.mts +3 -0
  2375. package/resources/evals/index.d.mts.map +1 -0
  2376. package/resources/evals/index.d.ts +3 -0
  2377. package/resources/evals/index.d.ts.map +1 -0
  2378. package/resources/evals/index.js +9 -0
  2379. package/resources/evals/index.js.map +1 -0
  2380. package/resources/evals/index.mjs +4 -0
  2381. package/resources/evals/index.mjs.map +1 -0
  2382. package/resources/evals/runs/index.d.mts +3 -0
  2383. package/resources/evals/runs/index.d.mts.map +1 -0
  2384. package/resources/evals/runs/index.d.ts +3 -0
  2385. package/resources/evals/runs/index.d.ts.map +1 -0
  2386. package/resources/evals/runs/index.js +9 -0
  2387. package/resources/evals/runs/index.js.map +1 -0
  2388. package/resources/evals/runs/index.mjs +4 -0
  2389. package/resources/evals/runs/index.mjs.map +1 -0
  2390. package/resources/evals/runs/output-items.d.mts +385 -0
  2391. package/resources/evals/runs/output-items.d.mts.map +1 -0
  2392. package/resources/evals/runs/output-items.d.ts +385 -0
  2393. package/resources/evals/runs/output-items.d.ts.map +1 -0
  2394. package/resources/evals/runs/output-items.js +31 -0
  2395. package/resources/evals/runs/output-items.js.map +1 -0
  2396. package/resources/evals/runs/output-items.mjs +27 -0
  2397. package/resources/evals/runs/output-items.mjs.map +1 -0
  2398. package/resources/evals/runs/runs.d.mts +2316 -0
  2399. package/resources/evals/runs/runs.d.mts.map +1 -0
  2400. package/resources/evals/runs/runs.d.ts +2316 -0
  2401. package/resources/evals/runs/runs.d.ts.map +1 -0
  2402. package/resources/evals/runs/runs.js +74 -0
  2403. package/resources/evals/runs/runs.js.map +1 -0
  2404. package/resources/evals/runs/runs.mjs +69 -0
  2405. package/resources/evals/runs/runs.mjs.map +1 -0
  2406. package/resources/evals/runs.d.mts +2 -0
  2407. package/resources/evals/runs.d.mts.map +1 -0
  2408. package/resources/evals/runs.d.ts +2 -0
  2409. package/resources/evals/runs.d.ts.map +1 -0
  2410. package/resources/evals/runs.js +6 -0
  2411. package/resources/evals/runs.js.map +1 -0
  2412. package/resources/evals/runs.mjs +3 -0
  2413. package/resources/evals/runs.mjs.map +1 -0
  2414. package/resources/evals.d.mts +2 -0
  2415. package/resources/evals.d.mts.map +1 -0
  2416. package/resources/evals.d.ts +2 -0
  2417. package/resources/evals.d.ts.map +1 -0
  2418. package/resources/evals.js +6 -0
  2419. package/resources/evals.js.map +1 -0
  2420. package/resources/evals.mjs +3 -0
  2421. package/resources/evals.mjs.map +1 -0
  2422. package/resources/files.d.mts +181 -0
  2423. package/resources/files.d.mts.map +1 -0
  2424. package/resources/files.d.ts +181 -0
  2425. package/resources/files.d.ts.map +1 -0
  2426. package/resources/files.js +88 -0
  2427. package/resources/files.js.map +1 -0
  2428. package/resources/files.mjs +84 -0
  2429. package/resources/files.mjs.map +1 -0
  2430. package/resources/fine-tuning/alpha/alpha.d.mts +10 -0
  2431. package/resources/fine-tuning/alpha/alpha.d.mts.map +1 -0
  2432. package/resources/fine-tuning/alpha/alpha.d.ts +10 -0
  2433. package/resources/fine-tuning/alpha/alpha.d.ts.map +1 -0
  2434. package/resources/fine-tuning/alpha/alpha.js +17 -0
  2435. package/resources/fine-tuning/alpha/alpha.js.map +1 -0
  2436. package/resources/fine-tuning/alpha/alpha.mjs +12 -0
  2437. package/resources/fine-tuning/alpha/alpha.mjs.map +1 -0
  2438. package/resources/fine-tuning/alpha/graders.d.mts +123 -0
  2439. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -0
  2440. package/resources/fine-tuning/alpha/graders.d.ts +123 -0
  2441. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -0
  2442. package/resources/fine-tuning/alpha/graders.js +60 -0
  2443. package/resources/fine-tuning/alpha/graders.js.map +1 -0
  2444. package/resources/fine-tuning/alpha/graders.mjs +56 -0
  2445. package/resources/fine-tuning/alpha/graders.mjs.map +1 -0
  2446. package/resources/fine-tuning/alpha/index.d.mts +3 -0
  2447. package/resources/fine-tuning/alpha/index.d.mts.map +1 -0
  2448. package/resources/fine-tuning/alpha/index.d.ts +3 -0
  2449. package/resources/fine-tuning/alpha/index.d.ts.map +1 -0
  2450. package/resources/fine-tuning/alpha/index.js +9 -0
  2451. package/resources/fine-tuning/alpha/index.js.map +1 -0
  2452. package/resources/fine-tuning/alpha/index.mjs +4 -0
  2453. package/resources/fine-tuning/alpha/index.mjs.map +1 -0
  2454. package/resources/fine-tuning/alpha.d.mts +2 -0
  2455. package/resources/fine-tuning/alpha.d.mts.map +1 -0
  2456. package/resources/fine-tuning/alpha.d.ts +2 -0
  2457. package/resources/fine-tuning/alpha.d.ts.map +1 -0
  2458. package/resources/fine-tuning/alpha.js +6 -0
  2459. package/resources/fine-tuning/alpha.js.map +1 -0
  2460. package/resources/fine-tuning/alpha.mjs +3 -0
  2461. package/resources/fine-tuning/alpha.mjs.map +1 -0
  2462. package/resources/fine-tuning/checkpoints/checkpoints.d.mts +10 -0
  2463. package/resources/fine-tuning/checkpoints/checkpoints.d.mts.map +1 -0
  2464. package/resources/fine-tuning/checkpoints/checkpoints.d.ts +10 -0
  2465. package/resources/fine-tuning/checkpoints/checkpoints.d.ts.map +1 -0
  2466. package/resources/fine-tuning/checkpoints/checkpoints.js +17 -0
  2467. package/resources/fine-tuning/checkpoints/checkpoints.js.map +1 -0
  2468. package/resources/fine-tuning/checkpoints/checkpoints.mjs +12 -0
  2469. package/resources/fine-tuning/checkpoints/checkpoints.mjs.map +1 -0
  2470. package/resources/fine-tuning/checkpoints/index.d.mts +3 -0
  2471. package/resources/fine-tuning/checkpoints/index.d.mts.map +1 -0
  2472. package/resources/fine-tuning/checkpoints/index.d.ts +3 -0
  2473. package/resources/fine-tuning/checkpoints/index.d.ts.map +1 -0
  2474. package/resources/fine-tuning/checkpoints/index.js +9 -0
  2475. package/resources/fine-tuning/checkpoints/index.js.map +1 -0
  2476. package/resources/fine-tuning/checkpoints/index.mjs +4 -0
  2477. package/resources/fine-tuning/checkpoints/index.mjs.map +1 -0
  2478. package/resources/fine-tuning/checkpoints/permissions.d.mts +211 -0
  2479. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -0
  2480. package/resources/fine-tuning/checkpoints/permissions.d.ts +211 -0
  2481. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -0
  2482. package/resources/fine-tuning/checkpoints/permissions.js +94 -0
  2483. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -0
  2484. package/resources/fine-tuning/checkpoints/permissions.mjs +90 -0
  2485. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -0
  2486. package/resources/fine-tuning/checkpoints.d.mts +2 -0
  2487. package/resources/fine-tuning/checkpoints.d.mts.map +1 -0
  2488. package/resources/fine-tuning/checkpoints.d.ts +2 -0
  2489. package/resources/fine-tuning/checkpoints.d.ts.map +1 -0
  2490. package/resources/fine-tuning/checkpoints.js +6 -0
  2491. package/resources/fine-tuning/checkpoints.js.map +1 -0
  2492. package/resources/fine-tuning/checkpoints.mjs +3 -0
  2493. package/resources/fine-tuning/checkpoints.mjs.map +1 -0
  2494. package/resources/fine-tuning/fine-tuning.d.mts +22 -0
  2495. package/resources/fine-tuning/fine-tuning.d.mts.map +1 -0
  2496. package/resources/fine-tuning/fine-tuning.d.ts +22 -0
  2497. package/resources/fine-tuning/fine-tuning.d.ts.map +1 -0
  2498. package/resources/fine-tuning/fine-tuning.js +29 -0
  2499. package/resources/fine-tuning/fine-tuning.js.map +1 -0
  2500. package/resources/fine-tuning/fine-tuning.mjs +24 -0
  2501. package/resources/fine-tuning/fine-tuning.mjs.map +1 -0
  2502. package/resources/fine-tuning/index.d.mts +6 -0
  2503. package/resources/fine-tuning/index.d.mts.map +1 -0
  2504. package/resources/fine-tuning/index.d.ts +6 -0
  2505. package/resources/fine-tuning/index.d.ts.map +1 -0
  2506. package/resources/fine-tuning/index.js +15 -0
  2507. package/resources/fine-tuning/index.js.map +1 -0
  2508. package/resources/fine-tuning/index.mjs +7 -0
  2509. package/resources/fine-tuning/index.mjs.map +1 -0
  2510. package/resources/fine-tuning/jobs/checkpoints.d.mts +77 -0
  2511. package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -0
  2512. package/resources/fine-tuning/jobs/checkpoints.d.ts +77 -0
  2513. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -0
  2514. package/resources/fine-tuning/jobs/checkpoints.js +30 -0
  2515. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -0
  2516. package/resources/fine-tuning/jobs/checkpoints.mjs +26 -0
  2517. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -0
  2518. package/resources/fine-tuning/jobs/index.d.mts +3 -0
  2519. package/resources/fine-tuning/jobs/index.d.mts.map +1 -0
  2520. package/resources/fine-tuning/jobs/index.d.ts +3 -0
  2521. package/resources/fine-tuning/jobs/index.d.ts.map +1 -0
  2522. package/resources/fine-tuning/jobs/index.js +9 -0
  2523. package/resources/fine-tuning/jobs/index.js.map +1 -0
  2524. package/resources/fine-tuning/jobs/index.mjs +4 -0
  2525. package/resources/fine-tuning/jobs/index.mjs.map +1 -0
  2526. package/resources/fine-tuning/jobs/jobs.d.mts +532 -0
  2527. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -0
  2528. package/resources/fine-tuning/jobs/jobs.d.ts +532 -0
  2529. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -0
  2530. package/resources/fine-tuning/jobs/jobs.js +142 -0
  2531. package/resources/fine-tuning/jobs/jobs.js.map +1 -0
  2532. package/resources/fine-tuning/jobs/jobs.mjs +137 -0
  2533. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -0
  2534. package/resources/fine-tuning/jobs.d.mts +2 -0
  2535. package/resources/fine-tuning/jobs.d.mts.map +1 -0
  2536. package/resources/fine-tuning/jobs.d.ts +2 -0
  2537. package/resources/fine-tuning/jobs.d.ts.map +1 -0
  2538. package/resources/fine-tuning/jobs.js +6 -0
  2539. package/resources/fine-tuning/jobs.js.map +1 -0
  2540. package/resources/fine-tuning/jobs.mjs +3 -0
  2541. package/resources/fine-tuning/jobs.mjs.map +1 -0
  2542. package/resources/fine-tuning/methods.d.mts +120 -0
  2543. package/resources/fine-tuning/methods.d.mts.map +1 -0
  2544. package/resources/fine-tuning/methods.d.ts +120 -0
  2545. package/resources/fine-tuning/methods.d.ts.map +1 -0
  2546. package/resources/fine-tuning/methods.js +9 -0
  2547. package/resources/fine-tuning/methods.js.map +1 -0
  2548. package/resources/fine-tuning/methods.mjs +5 -0
  2549. package/resources/fine-tuning/methods.mjs.map +1 -0
  2550. package/resources/fine-tuning.d.mts +2 -0
  2551. package/resources/fine-tuning.d.mts.map +1 -0
  2552. package/resources/fine-tuning.d.ts +2 -0
  2553. package/resources/fine-tuning.d.ts.map +1 -0
  2554. package/resources/fine-tuning.js +6 -0
  2555. package/resources/fine-tuning.js.map +1 -0
  2556. package/resources/fine-tuning.mjs +3 -0
  2557. package/resources/fine-tuning.mjs.map +1 -0
  2558. package/resources/graders/grader-models.d.mts +347 -0
  2559. package/resources/graders/grader-models.d.mts.map +1 -0
  2560. package/resources/graders/grader-models.d.ts +347 -0
  2561. package/resources/graders/grader-models.d.ts.map +1 -0
  2562. package/resources/graders/grader-models.js +9 -0
  2563. package/resources/graders/grader-models.js.map +1 -0
  2564. package/resources/graders/grader-models.mjs +5 -0
  2565. package/resources/graders/grader-models.mjs.map +1 -0
  2566. package/resources/graders/graders.d.mts +10 -0
  2567. package/resources/graders/graders.d.mts.map +1 -0
  2568. package/resources/graders/graders.d.ts +10 -0
  2569. package/resources/graders/graders.d.ts.map +1 -0
  2570. package/resources/graders/graders.js +17 -0
  2571. package/resources/graders/graders.js.map +1 -0
  2572. package/resources/graders/graders.mjs +12 -0
  2573. package/resources/graders/graders.mjs.map +1 -0
  2574. package/resources/graders/index.d.mts +3 -0
  2575. package/resources/graders/index.d.mts.map +1 -0
  2576. package/resources/graders/index.d.ts +3 -0
  2577. package/resources/graders/index.d.ts.map +1 -0
  2578. package/resources/graders/index.js +9 -0
  2579. package/resources/graders/index.js.map +1 -0
  2580. package/resources/graders/index.mjs +4 -0
  2581. package/resources/graders/index.mjs.map +1 -0
  2582. package/resources/graders.d.mts +2 -0
  2583. package/resources/graders.d.mts.map +1 -0
  2584. package/resources/graders.d.ts +2 -0
  2585. package/resources/graders.d.ts.map +1 -0
  2586. package/resources/graders.js +6 -0
  2587. package/resources/graders.js.map +1 -0
  2588. package/resources/graders.mjs +3 -0
  2589. package/resources/graders.mjs.map +1 -0
  2590. package/resources/images.d.mts +713 -0
  2591. package/resources/images.d.mts.map +1 -0
  2592. package/resources/images.d.ts +713 -0
  2593. package/resources/images.d.ts.map +1 -0
  2594. package/resources/images.js +43 -0
  2595. package/resources/images.js.map +1 -0
  2596. package/resources/images.mjs +39 -0
  2597. package/resources/images.mjs.map +1 -0
  2598. package/resources/index.d.mts +28 -0
  2599. package/resources/index.d.mts.map +1 -0
  2600. package/resources/index.d.ts +28 -0
  2601. package/resources/index.d.ts.map +1 -0
  2602. package/resources/index.js +58 -0
  2603. package/resources/index.js.map +1 -0
  2604. package/resources/index.mjs +29 -0
  2605. package/resources/index.mjs.map +1 -0
  2606. package/resources/live/forks/forks.d.mts +110 -0
  2607. package/resources/live/forks/forks.d.mts.map +1 -0
  2608. package/resources/live/forks/forks.d.ts +110 -0
  2609. package/resources/live/forks/forks.d.ts.map +1 -0
  2610. package/resources/live/forks/forks.js +9 -0
  2611. package/resources/live/forks/forks.js.map +1 -0
  2612. package/resources/live/forks/forks.mjs +5 -0
  2613. package/resources/live/forks/forks.mjs.map +1 -0
  2614. package/resources/live/forks/index.d.mts +4 -0
  2615. package/resources/live/forks/index.d.mts.map +1 -0
  2616. package/resources/live/forks/index.d.ts +4 -0
  2617. package/resources/live/forks/index.d.ts.map +1 -0
  2618. package/resources/live/forks/index.js +7 -0
  2619. package/resources/live/forks/index.js.map +1 -0
  2620. package/resources/live/forks/index.mjs +3 -0
  2621. package/resources/live/forks/index.mjs.map +1 -0
  2622. package/resources/live/forks/internal-base.d.mts +73 -0
  2623. package/resources/live/forks/internal-base.d.mts.map +1 -0
  2624. package/resources/live/forks/internal-base.d.ts +73 -0
  2625. package/resources/live/forks/internal-base.d.ts.map +1 -0
  2626. package/resources/live/forks/internal-base.js +49 -0
  2627. package/resources/live/forks/internal-base.js.map +1 -0
  2628. package/resources/live/forks/internal-base.mjs +43 -0
  2629. package/resources/live/forks/internal-base.mjs.map +1 -0
  2630. package/resources/live/forks/ws-base.d.mts +109 -0
  2631. package/resources/live/forks/ws-base.d.mts.map +1 -0
  2632. package/resources/live/forks/ws-base.d.ts +109 -0
  2633. package/resources/live/forks/ws-base.d.ts.map +1 -0
  2634. package/resources/live/forks/ws-base.js +476 -0
  2635. package/resources/live/forks/ws-base.js.map +1 -0
  2636. package/resources/live/forks/ws-base.mjs +472 -0
  2637. package/resources/live/forks/ws-base.mjs.map +1 -0
  2638. package/resources/live/forks/ws.d.mts +13 -0
  2639. package/resources/live/forks/ws.d.mts.map +1 -0
  2640. package/resources/live/forks/ws.d.ts +13 -0
  2641. package/resources/live/forks/ws.d.ts.map +1 -0
  2642. package/resources/live/forks/ws.js +34 -0
  2643. package/resources/live/forks/ws.js.map +1 -0
  2644. package/resources/live/forks/ws.mjs +29 -0
  2645. package/resources/live/forks/ws.mjs.map +1 -0
  2646. package/resources/live/forks.d.mts +2 -0
  2647. package/resources/live/forks.d.mts.map +1 -0
  2648. package/resources/live/forks.d.ts +2 -0
  2649. package/resources/live/forks.d.ts.map +1 -0
  2650. package/resources/live/forks.js +6 -0
  2651. package/resources/live/forks.js.map +1 -0
  2652. package/resources/live/forks.mjs +3 -0
  2653. package/resources/live/forks.mjs.map +1 -0
  2654. package/resources/live/index.d.mts +7 -0
  2655. package/resources/live/index.d.mts.map +1 -0
  2656. package/resources/live/index.d.ts +7 -0
  2657. package/resources/live/index.d.ts.map +1 -0
  2658. package/resources/live/index.js +13 -0
  2659. package/resources/live/index.js.map +1 -0
  2660. package/resources/live/index.mjs +6 -0
  2661. package/resources/live/index.mjs.map +1 -0
  2662. package/resources/live/internal-base.d.mts +71 -0
  2663. package/resources/live/internal-base.d.mts.map +1 -0
  2664. package/resources/live/internal-base.d.ts +71 -0
  2665. package/resources/live/internal-base.d.ts.map +1 -0
  2666. package/resources/live/internal-base.js +48 -0
  2667. package/resources/live/internal-base.js.map +1 -0
  2668. package/resources/live/internal-base.mjs +42 -0
  2669. package/resources/live/internal-base.mjs.map +1 -0
  2670. package/resources/live/live.d.mts +1864 -0
  2671. package/resources/live/live.d.mts.map +1 -0
  2672. package/resources/live/live.d.ts +1864 -0
  2673. package/resources/live/live.d.ts.map +1 -0
  2674. package/resources/live/live.js +40 -0
  2675. package/resources/live/live.js.map +1 -0
  2676. package/resources/live/live.mjs +35 -0
  2677. package/resources/live/live.mjs.map +1 -0
  2678. package/resources/live/sessions.d.mts +260 -0
  2679. package/resources/live/sessions.d.mts.map +1 -0
  2680. package/resources/live/sessions.d.ts +260 -0
  2681. package/resources/live/sessions.d.ts.map +1 -0
  2682. package/resources/live/sessions.js +124 -0
  2683. package/resources/live/sessions.js.map +1 -0
  2684. package/resources/live/sessions.mjs +120 -0
  2685. package/resources/live/sessions.mjs.map +1 -0
  2686. package/resources/live/sideband/index.d.mts +4 -0
  2687. package/resources/live/sideband/index.d.mts.map +1 -0
  2688. package/resources/live/sideband/index.d.ts +4 -0
  2689. package/resources/live/sideband/index.d.ts.map +1 -0
  2690. package/resources/live/sideband/index.js +7 -0
  2691. package/resources/live/sideband/index.js.map +1 -0
  2692. package/resources/live/sideband/index.mjs +3 -0
  2693. package/resources/live/sideband/index.mjs.map +1 -0
  2694. package/resources/live/sideband/internal-base.d.mts +73 -0
  2695. package/resources/live/sideband/internal-base.d.mts.map +1 -0
  2696. package/resources/live/sideband/internal-base.d.ts +73 -0
  2697. package/resources/live/sideband/internal-base.d.ts.map +1 -0
  2698. package/resources/live/sideband/internal-base.js +49 -0
  2699. package/resources/live/sideband/internal-base.js.map +1 -0
  2700. package/resources/live/sideband/internal-base.mjs +43 -0
  2701. package/resources/live/sideband/internal-base.mjs.map +1 -0
  2702. package/resources/live/sideband/sideband.d.mts +25 -0
  2703. package/resources/live/sideband/sideband.d.mts.map +1 -0
  2704. package/resources/live/sideband/sideband.d.ts +25 -0
  2705. package/resources/live/sideband/sideband.d.ts.map +1 -0
  2706. package/resources/live/sideband/sideband.js +9 -0
  2707. package/resources/live/sideband/sideband.js.map +1 -0
  2708. package/resources/live/sideband/sideband.mjs +5 -0
  2709. package/resources/live/sideband/sideband.mjs.map +1 -0
  2710. package/resources/live/sideband/ws-base.d.mts +114 -0
  2711. package/resources/live/sideband/ws-base.d.mts.map +1 -0
  2712. package/resources/live/sideband/ws-base.d.ts +114 -0
  2713. package/resources/live/sideband/ws-base.d.ts.map +1 -0
  2714. package/resources/live/sideband/ws-base.js +476 -0
  2715. package/resources/live/sideband/ws-base.js.map +1 -0
  2716. package/resources/live/sideband/ws-base.mjs +472 -0
  2717. package/resources/live/sideband/ws-base.mjs.map +1 -0
  2718. package/resources/live/sideband/ws.d.mts +13 -0
  2719. package/resources/live/sideband/ws.d.mts.map +1 -0
  2720. package/resources/live/sideband/ws.d.ts +13 -0
  2721. package/resources/live/sideband/ws.d.ts.map +1 -0
  2722. package/resources/live/sideband/ws.js +34 -0
  2723. package/resources/live/sideband/ws.js.map +1 -0
  2724. package/resources/live/sideband/ws.mjs +29 -0
  2725. package/resources/live/sideband/ws.mjs.map +1 -0
  2726. package/resources/live/sideband.d.mts +2 -0
  2727. package/resources/live/sideband.d.mts.map +1 -0
  2728. package/resources/live/sideband.d.ts +2 -0
  2729. package/resources/live/sideband.d.ts.map +1 -0
  2730. package/resources/live/sideband.js +6 -0
  2731. package/resources/live/sideband.js.map +1 -0
  2732. package/resources/live/sideband.mjs +3 -0
  2733. package/resources/live/sideband.mjs.map +1 -0
  2734. package/resources/live/ws-base.d.mts +106 -0
  2735. package/resources/live/ws-base.d.mts.map +1 -0
  2736. package/resources/live/ws-base.d.ts +106 -0
  2737. package/resources/live/ws-base.d.ts.map +1 -0
  2738. package/resources/live/ws-base.js +476 -0
  2739. package/resources/live/ws-base.js.map +1 -0
  2740. package/resources/live/ws-base.mjs +472 -0
  2741. package/resources/live/ws-base.mjs.map +1 -0
  2742. package/resources/live/ws.d.mts +13 -0
  2743. package/resources/live/ws.d.mts.map +1 -0
  2744. package/resources/live/ws.d.ts +13 -0
  2745. package/resources/live/ws.d.ts.map +1 -0
  2746. package/resources/live/ws.js +34 -0
  2747. package/resources/live/ws.js.map +1 -0
  2748. package/resources/live/ws.mjs +29 -0
  2749. package/resources/live/ws.mjs.map +1 -0
  2750. package/resources/live.d.mts +2 -0
  2751. package/resources/live.d.mts.map +1 -0
  2752. package/resources/live.d.ts +2 -0
  2753. package/resources/live.d.ts.map +1 -0
  2754. package/resources/live.js +6 -0
  2755. package/resources/live.js.map +1 -0
  2756. package/resources/live.mjs +3 -0
  2757. package/resources/live.mjs.map +1 -0
  2758. package/resources/models.d.mts +59 -0
  2759. package/resources/models.d.mts.map +1 -0
  2760. package/resources/models.d.ts +59 -0
  2761. package/resources/models.d.ts.map +1 -0
  2762. package/resources/models.js +35 -0
  2763. package/resources/models.js.map +1 -0
  2764. package/resources/models.mjs +31 -0
  2765. package/resources/models.mjs.map +1 -0
  2766. package/resources/moderations.d.mts +299 -0
  2767. package/resources/moderations.d.mts.map +1 -0
  2768. package/resources/moderations.d.ts +299 -0
  2769. package/resources/moderations.d.ts.map +1 -0
  2770. package/resources/moderations.js +20 -0
  2771. package/resources/moderations.js.map +1 -0
  2772. package/resources/moderations.mjs +16 -0
  2773. package/resources/moderations.mjs.map +1 -0
  2774. package/resources/realtime/calls.d.mts +190 -0
  2775. package/resources/realtime/calls.d.mts.map +1 -0
  2776. package/resources/realtime/calls.d.ts +190 -0
  2777. package/resources/realtime/calls.d.ts.map +1 -0
  2778. package/resources/realtime/calls.js +103 -0
  2779. package/resources/realtime/calls.js.map +1 -0
  2780. package/resources/realtime/calls.mjs +99 -0
  2781. package/resources/realtime/calls.mjs.map +1 -0
  2782. package/resources/realtime/client-secrets.d.mts +639 -0
  2783. package/resources/realtime/client-secrets.d.mts.map +1 -0
  2784. package/resources/realtime/client-secrets.d.ts +639 -0
  2785. package/resources/realtime/client-secrets.d.ts.map +1 -0
  2786. package/resources/realtime/client-secrets.js +39 -0
  2787. package/resources/realtime/client-secrets.js.map +1 -0
  2788. package/resources/realtime/client-secrets.mjs +35 -0
  2789. package/resources/realtime/client-secrets.mjs.map +1 -0
  2790. package/resources/realtime/index.d.mts +4 -0
  2791. package/resources/realtime/index.d.mts.map +1 -0
  2792. package/resources/realtime/index.d.ts +4 -0
  2793. package/resources/realtime/index.d.ts.map +1 -0
  2794. package/resources/realtime/index.js +11 -0
  2795. package/resources/realtime/index.js.map +1 -0
  2796. package/resources/realtime/index.mjs +5 -0
  2797. package/resources/realtime/index.mjs.map +1 -0
  2798. package/resources/realtime/realtime.d.mts +4549 -0
  2799. package/resources/realtime/realtime.d.mts.map +1 -0
  2800. package/resources/realtime/realtime.d.ts +4549 -0
  2801. package/resources/realtime/realtime.d.ts.map +1 -0
  2802. package/resources/realtime/realtime.js +21 -0
  2803. package/resources/realtime/realtime.js.map +1 -0
  2804. package/resources/realtime/realtime.mjs +16 -0
  2805. package/resources/realtime/realtime.mjs.map +1 -0
  2806. package/resources/realtime.d.mts +2 -0
  2807. package/resources/realtime.d.mts.map +1 -0
  2808. package/resources/realtime.d.ts +2 -0
  2809. package/resources/realtime.d.ts.map +1 -0
  2810. package/resources/realtime.js +6 -0
  2811. package/resources/realtime.js.map +1 -0
  2812. package/resources/realtime.mjs +3 -0
  2813. package/resources/realtime.mjs.map +1 -0
  2814. package/resources/responses/index.d.mts +6 -0
  2815. package/resources/responses/index.d.mts.map +1 -0
  2816. package/resources/responses/index.d.ts +6 -0
  2817. package/resources/responses/index.d.ts.map +1 -0
  2818. package/resources/responses/index.js +11 -0
  2819. package/resources/responses/index.js.map +1 -0
  2820. package/resources/responses/index.mjs +5 -0
  2821. package/resources/responses/index.mjs.map +1 -0
  2822. package/resources/responses/input-items.d.mts +65 -0
  2823. package/resources/responses/input-items.d.mts.map +1 -0
  2824. package/resources/responses/input-items.d.ts +65 -0
  2825. package/resources/responses/input-items.d.ts.map +1 -0
  2826. package/resources/responses/input-items.js +27 -0
  2827. package/resources/responses/input-items.js.map +1 -0
  2828. package/resources/responses/input-items.mjs +23 -0
  2829. package/resources/responses/input-items.mjs.map +1 -0
  2830. package/resources/responses/input-tokens.d.mts +143 -0
  2831. package/resources/responses/input-tokens.d.mts.map +1 -0
  2832. package/resources/responses/input-tokens.d.ts +143 -0
  2833. package/resources/responses/input-tokens.d.ts.map +1 -0
  2834. package/resources/responses/input-tokens.js +27 -0
  2835. package/resources/responses/input-tokens.js.map +1 -0
  2836. package/resources/responses/input-tokens.mjs +23 -0
  2837. package/resources/responses/input-tokens.mjs.map +1 -0
  2838. package/resources/responses/internal-base.d.mts +74 -0
  2839. package/resources/responses/internal-base.d.mts.map +1 -0
  2840. package/resources/responses/internal-base.d.ts +74 -0
  2841. package/resources/responses/internal-base.d.ts.map +1 -0
  2842. package/resources/responses/internal-base.js +51 -0
  2843. package/resources/responses/internal-base.js.map +1 -0
  2844. package/resources/responses/internal-base.mjs +45 -0
  2845. package/resources/responses/internal-base.mjs.map +1 -0
  2846. package/resources/responses/responses.d.mts +9305 -0
  2847. package/resources/responses/responses.d.mts.map +1 -0
  2848. package/resources/responses/responses.d.ts +9305 -0
  2849. package/resources/responses/responses.d.ts.map +1 -0
  2850. package/resources/responses/responses.js +115 -0
  2851. package/resources/responses/responses.js.map +1 -0
  2852. package/resources/responses/responses.mjs +110 -0
  2853. package/resources/responses/responses.mjs.map +1 -0
  2854. package/resources/responses/ws-base.d.mts +106 -0
  2855. package/resources/responses/ws-base.d.mts.map +1 -0
  2856. package/resources/responses/ws-base.d.ts +106 -0
  2857. package/resources/responses/ws-base.d.ts.map +1 -0
  2858. package/resources/responses/ws-base.js +476 -0
  2859. package/resources/responses/ws-base.js.map +1 -0
  2860. package/resources/responses/ws-base.mjs +472 -0
  2861. package/resources/responses/ws-base.mjs.map +1 -0
  2862. package/resources/responses/ws.d.mts +13 -0
  2863. package/resources/responses/ws.d.mts.map +1 -0
  2864. package/resources/responses/ws.d.ts +13 -0
  2865. package/resources/responses/ws.d.ts.map +1 -0
  2866. package/resources/responses/ws.js +34 -0
  2867. package/resources/responses/ws.js.map +1 -0
  2868. package/resources/responses/ws.mjs +29 -0
  2869. package/resources/responses/ws.mjs.map +1 -0
  2870. package/resources/responses.d.mts +2 -0
  2871. package/resources/responses.d.mts.map +1 -0
  2872. package/resources/responses.d.ts +2 -0
  2873. package/resources/responses.d.ts.map +1 -0
  2874. package/resources/responses.js +6 -0
  2875. package/resources/responses.js.map +1 -0
  2876. package/resources/responses.mjs +3 -0
  2877. package/resources/responses.mjs.map +1 -0
  2878. package/resources/safety/alerts.d.mts +32 -0
  2879. package/resources/safety/alerts.d.mts.map +1 -0
  2880. package/resources/safety/alerts.d.ts +32 -0
  2881. package/resources/safety/alerts.d.ts.map +1 -0
  2882. package/resources/safety/alerts.js +16 -0
  2883. package/resources/safety/alerts.js.map +1 -0
  2884. package/resources/safety/alerts.mjs +12 -0
  2885. package/resources/safety/alerts.mjs.map +1 -0
  2886. package/resources/safety/index.d.mts +3 -0
  2887. package/resources/safety/index.d.mts.map +1 -0
  2888. package/resources/safety/index.d.ts +3 -0
  2889. package/resources/safety/index.d.ts.map +1 -0
  2890. package/resources/safety/index.js +9 -0
  2891. package/resources/safety/index.js.map +1 -0
  2892. package/resources/safety/index.mjs +4 -0
  2893. package/resources/safety/index.mjs.map +1 -0
  2894. package/resources/safety/safety.d.mts +10 -0
  2895. package/resources/safety/safety.d.mts.map +1 -0
  2896. package/resources/safety/safety.d.ts +10 -0
  2897. package/resources/safety/safety.d.ts.map +1 -0
  2898. package/resources/safety/safety.js +17 -0
  2899. package/resources/safety/safety.js.map +1 -0
  2900. package/resources/safety/safety.mjs +12 -0
  2901. package/resources/safety/safety.mjs.map +1 -0
  2902. package/resources/safety.d.mts +2 -0
  2903. package/resources/safety.d.mts.map +1 -0
  2904. package/resources/safety.d.ts +2 -0
  2905. package/resources/safety.d.ts.map +1 -0
  2906. package/resources/safety.js +6 -0
  2907. package/resources/safety.js.map +1 -0
  2908. package/resources/safety.mjs +3 -0
  2909. package/resources/safety.mjs.map +1 -0
  2910. package/resources/shared.d.mts +315 -0
  2911. package/resources/shared.d.mts.map +1 -0
  2912. package/resources/shared.d.ts +315 -0
  2913. package/resources/shared.d.ts.map +1 -0
  2914. package/resources/shared.js +4 -0
  2915. package/resources/shared.js.map +1 -0
  2916. package/resources/shared.mjs +3 -0
  2917. package/resources/shared.mjs.map +1 -0
  2918. package/resources/skills/content.d.mts +10 -0
  2919. package/resources/skills/content.d.mts.map +1 -0
  2920. package/resources/skills/content.d.ts +10 -0
  2921. package/resources/skills/content.d.ts.map +1 -0
  2922. package/resources/skills/content.js +22 -0
  2923. package/resources/skills/content.js.map +1 -0
  2924. package/resources/skills/content.mjs +18 -0
  2925. package/resources/skills/content.mjs.map +1 -0
  2926. package/resources/skills/index.d.mts +4 -0
  2927. package/resources/skills/index.d.mts.map +1 -0
  2928. package/resources/skills/index.d.ts +4 -0
  2929. package/resources/skills/index.d.ts.map +1 -0
  2930. package/resources/skills/index.js +11 -0
  2931. package/resources/skills/index.js.map +1 -0
  2932. package/resources/skills/index.mjs +5 -0
  2933. package/resources/skills/index.mjs.map +1 -0
  2934. package/resources/skills/skills.d.mts +116 -0
  2935. package/resources/skills/skills.d.mts.map +1 -0
  2936. package/resources/skills/skills.d.ts +116 -0
  2937. package/resources/skills/skills.d.ts.map +1 -0
  2938. package/resources/skills/skills.js +64 -0
  2939. package/resources/skills/skills.js.map +1 -0
  2940. package/resources/skills/skills.mjs +59 -0
  2941. package/resources/skills/skills.mjs.map +1 -0
  2942. package/resources/skills/versions/content.d.mts +19 -0
  2943. package/resources/skills/versions/content.d.mts.map +1 -0
  2944. package/resources/skills/versions/content.d.ts +19 -0
  2945. package/resources/skills/versions/content.d.ts.map +1 -0
  2946. package/resources/skills/versions/content.js +23 -0
  2947. package/resources/skills/versions/content.js.map +1 -0
  2948. package/resources/skills/versions/content.mjs +19 -0
  2949. package/resources/skills/versions/content.mjs.map +1 -0
  2950. package/resources/skills/versions/index.d.mts +3 -0
  2951. package/resources/skills/versions/index.d.mts.map +1 -0
  2952. package/resources/skills/versions/index.d.ts +3 -0
  2953. package/resources/skills/versions/index.d.ts.map +1 -0
  2954. package/resources/skills/versions/index.js +9 -0
  2955. package/resources/skills/versions/index.js.map +1 -0
  2956. package/resources/skills/versions/index.mjs +4 -0
  2957. package/resources/skills/versions/index.mjs.map +1 -0
  2958. package/resources/skills/versions/versions.d.mts +121 -0
  2959. package/resources/skills/versions/versions.d.mts.map +1 -0
  2960. package/resources/skills/versions/versions.d.ts +121 -0
  2961. package/resources/skills/versions/versions.d.ts.map +1 -0
  2962. package/resources/skills/versions/versions.js +58 -0
  2963. package/resources/skills/versions/versions.js.map +1 -0
  2964. package/resources/skills/versions/versions.mjs +53 -0
  2965. package/resources/skills/versions/versions.mjs.map +1 -0
  2966. package/resources/skills/versions.d.mts +2 -0
  2967. package/resources/skills/versions.d.mts.map +1 -0
  2968. package/resources/skills/versions.d.ts +2 -0
  2969. package/resources/skills/versions.d.ts.map +1 -0
  2970. package/resources/skills/versions.js +6 -0
  2971. package/resources/skills/versions.js.map +1 -0
  2972. package/resources/skills/versions.mjs +3 -0
  2973. package/resources/skills/versions.mjs.map +1 -0
  2974. package/resources/skills.d.mts +2 -0
  2975. package/resources/skills.d.mts.map +1 -0
  2976. package/resources/skills.d.ts +2 -0
  2977. package/resources/skills.d.ts.map +1 -0
  2978. package/resources/skills.js +6 -0
  2979. package/resources/skills.js.map +1 -0
  2980. package/resources/skills.mjs +3 -0
  2981. package/resources/skills.mjs.map +1 -0
  2982. package/resources/uploads/index.d.mts +3 -0
  2983. package/resources/uploads/index.d.mts.map +1 -0
  2984. package/resources/uploads/index.d.ts +3 -0
  2985. package/resources/uploads/index.d.ts.map +1 -0
  2986. package/resources/uploads/index.js +9 -0
  2987. package/resources/uploads/index.js.map +1 -0
  2988. package/resources/uploads/index.mjs +4 -0
  2989. package/resources/uploads/index.mjs.map +1 -0
  2990. package/resources/uploads/parts.d.mts +55 -0
  2991. package/resources/uploads/parts.d.mts.map +1 -0
  2992. package/resources/uploads/parts.d.ts +55 -0
  2993. package/resources/uploads/parts.d.ts.map +1 -0
  2994. package/resources/uploads/parts.js +31 -0
  2995. package/resources/uploads/parts.js.map +1 -0
  2996. package/resources/uploads/parts.mjs +27 -0
  2997. package/resources/uploads/parts.mjs.map +1 -0
  2998. package/resources/uploads/uploads.d.mts +166 -0
  2999. package/resources/uploads/uploads.d.mts.map +1 -0
  3000. package/resources/uploads/uploads.d.ts +166 -0
  3001. package/resources/uploads/uploads.d.ts.map +1 -0
  3002. package/resources/uploads/uploads.js +82 -0
  3003. package/resources/uploads/uploads.js.map +1 -0
  3004. package/resources/uploads/uploads.mjs +77 -0
  3005. package/resources/uploads/uploads.mjs.map +1 -0
  3006. package/resources/uploads.d.mts +2 -0
  3007. package/resources/uploads.d.mts.map +1 -0
  3008. package/resources/uploads.d.ts +2 -0
  3009. package/resources/uploads.d.ts.map +1 -0
  3010. package/resources/uploads.js +6 -0
  3011. package/resources/uploads.js.map +1 -0
  3012. package/resources/uploads.mjs +3 -0
  3013. package/resources/uploads.mjs.map +1 -0
  3014. package/resources/vector-stores/file-batches.d.mts +211 -0
  3015. package/resources/vector-stores/file-batches.d.mts.map +1 -0
  3016. package/resources/vector-stores/file-batches.d.ts +211 -0
  3017. package/resources/vector-stores/file-batches.d.ts.map +1 -0
  3018. package/resources/vector-stores/file-batches.js +84 -0
  3019. package/resources/vector-stores/file-batches.js.map +1 -0
  3020. package/resources/vector-stores/file-batches.mjs +80 -0
  3021. package/resources/vector-stores/file-batches.mjs.map +1 -0
  3022. package/resources/vector-stores/files.d.mts +233 -0
  3023. package/resources/vector-stores/files.d.mts.map +1 -0
  3024. package/resources/vector-stores/files.d.ts +233 -0
  3025. package/resources/vector-stores/files.d.ts.map +1 -0
  3026. package/resources/vector-stores/files.js +118 -0
  3027. package/resources/vector-stores/files.js.map +1 -0
  3028. package/resources/vector-stores/files.mjs +114 -0
  3029. package/resources/vector-stores/files.mjs.map +1 -0
  3030. package/resources/vector-stores/index.d.mts +4 -0
  3031. package/resources/vector-stores/index.d.mts.map +1 -0
  3032. package/resources/vector-stores/index.d.ts +4 -0
  3033. package/resources/vector-stores/index.d.ts.map +1 -0
  3034. package/resources/vector-stores/index.js +11 -0
  3035. package/resources/vector-stores/index.js.map +1 -0
  3036. package/resources/vector-stores/index.mjs +5 -0
  3037. package/resources/vector-stores/index.mjs.map +1 -0
  3038. package/resources/vector-stores/vector-stores.d.mts +378 -0
  3039. package/resources/vector-stores/vector-stores.d.mts.map +1 -0
  3040. package/resources/vector-stores/vector-stores.d.ts +378 -0
  3041. package/resources/vector-stores/vector-stores.d.ts.map +1 -0
  3042. package/resources/vector-stores/vector-stores.js +90 -0
  3043. package/resources/vector-stores/vector-stores.js.map +1 -0
  3044. package/resources/vector-stores/vector-stores.mjs +85 -0
  3045. package/resources/vector-stores/vector-stores.mjs.map +1 -0
  3046. package/resources/vector-stores.d.mts +2 -0
  3047. package/resources/vector-stores.d.mts.map +1 -0
  3048. package/resources/vector-stores.d.ts +2 -0
  3049. package/resources/vector-stores.d.ts.map +1 -0
  3050. package/resources/vector-stores.js +6 -0
  3051. package/resources/vector-stores.js.map +1 -0
  3052. package/resources/vector-stores.mjs +3 -0
  3053. package/resources/vector-stores.mjs.map +1 -0
  3054. package/resources/videos.d.mts +332 -0
  3055. package/resources/videos.d.mts.map +1 -0
  3056. package/resources/videos.d.ts +332 -0
  3057. package/resources/videos.d.ts.map +1 -0
  3058. package/resources/videos.js +112 -0
  3059. package/resources/videos.js.map +1 -0
  3060. package/resources/videos.mjs +108 -0
  3061. package/resources/videos.mjs.map +1 -0
  3062. package/resources/webhooks/index.d.mts +2 -0
  3063. package/resources/webhooks/index.d.mts.map +1 -0
  3064. package/resources/webhooks/index.d.ts +2 -0
  3065. package/resources/webhooks/index.d.ts.map +1 -0
  3066. package/resources/webhooks/index.js +6 -0
  3067. package/resources/webhooks/index.js.map +1 -0
  3068. package/resources/webhooks/index.mjs +3 -0
  3069. package/resources/webhooks/index.mjs.map +1 -0
  3070. package/resources/webhooks/webhooks.d.mts +781 -0
  3071. package/resources/webhooks/webhooks.d.mts.map +1 -0
  3072. package/resources/webhooks/webhooks.d.ts +781 -0
  3073. package/resources/webhooks/webhooks.d.ts.map +1 -0
  3074. package/resources/webhooks/webhooks.js +64 -0
  3075. package/resources/webhooks/webhooks.js.map +1 -0
  3076. package/resources/webhooks/webhooks.mjs +60 -0
  3077. package/resources/webhooks/webhooks.mjs.map +1 -0
  3078. package/resources/webhooks.d.mts +2 -0
  3079. package/resources/webhooks.d.mts.map +1 -0
  3080. package/resources/webhooks.d.ts +2 -0
  3081. package/resources/webhooks.d.ts.map +1 -0
  3082. package/resources/webhooks.js +6 -0
  3083. package/resources/webhooks.js.map +1 -0
  3084. package/resources/webhooks.mjs +3 -0
  3085. package/resources/webhooks.mjs.map +1 -0
  3086. package/resources.d.mts +2 -0
  3087. package/resources.d.mts.map +1 -0
  3088. package/resources.d.ts +2 -0
  3089. package/resources.d.ts.map +1 -0
  3090. package/resources.js +5 -0
  3091. package/resources.js.map +1 -0
  3092. package/resources.mjs +2 -0
  3093. package/resources.mjs.map +1 -0
  3094. package/src/_vendor/partial-json-parser/LICENSE +21 -0
  3095. package/src/_vendor/partial-json-parser/README.md +13 -0
  3096. package/src/_vendor/partial-json-parser/parser.ts +278 -0
  3097. package/src/_vendor/zod-to-json-schema/LICENSE +15 -0
  3098. package/src/_vendor/zod-to-json-schema/Options.ts +92 -0
  3099. package/src/_vendor/zod-to-json-schema/README.md +3 -0
  3100. package/src/_vendor/zod-to-json-schema/Refs.ts +48 -0
  3101. package/src/_vendor/zod-to-json-schema/errorMessages.ts +33 -0
  3102. package/src/_vendor/zod-to-json-schema/index.ts +39 -0
  3103. package/src/_vendor/zod-to-json-schema/parseDef.ts +372 -0
  3104. package/src/_vendor/zod-to-json-schema/parsers/any.ts +5 -0
  3105. package/src/_vendor/zod-to-json-schema/parsers/array.ts +39 -0
  3106. package/src/_vendor/zod-to-json-schema/parsers/bigint.ts +66 -0
  3107. package/src/_vendor/zod-to-json-schema/parsers/boolean.ts +9 -0
  3108. package/src/_vendor/zod-to-json-schema/parsers/branded.ts +7 -0
  3109. package/src/_vendor/zod-to-json-schema/parsers/catch.ts +6 -0
  3110. package/src/_vendor/zod-to-json-schema/parsers/date.ts +89 -0
  3111. package/src/_vendor/zod-to-json-schema/parsers/default.ts +15 -0
  3112. package/src/_vendor/zod-to-json-schema/parsers/effects.ts +12 -0
  3113. package/src/_vendor/zod-to-json-schema/parsers/enum.ts +13 -0
  3114. package/src/_vendor/zod-to-json-schema/parsers/intersection.ts +67 -0
  3115. package/src/_vendor/zod-to-json-schema/parsers/literal.ts +46 -0
  3116. package/src/_vendor/zod-to-json-schema/parsers/map.ts +44 -0
  3117. package/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +26 -0
  3118. package/src/_vendor/zod-to-json-schema/parsers/never.ts +9 -0
  3119. package/src/_vendor/zod-to-json-schema/parsers/null.ts +16 -0
  3120. package/src/_vendor/zod-to-json-schema/parsers/nullable.ts +60 -0
  3121. package/src/_vendor/zod-to-json-schema/parsers/number.ts +69 -0
  3122. package/src/_vendor/zod-to-json-schema/parsers/object.ts +79 -0
  3123. package/src/_vendor/zod-to-json-schema/parsers/optional.ts +37 -0
  3124. package/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +30 -0
  3125. package/src/_vendor/zod-to-json-schema/parsers/promise.ts +12 -0
  3126. package/src/_vendor/zod-to-json-schema/parsers/readonly.ts +6 -0
  3127. package/src/_vendor/zod-to-json-schema/parsers/record.ts +74 -0
  3128. package/src/_vendor/zod-to-json-schema/parsers/set.ts +38 -0
  3129. package/src/_vendor/zod-to-json-schema/parsers/string.ts +424 -0
  3130. package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +61 -0
  3131. package/src/_vendor/zod-to-json-schema/parsers/undefined.ts +9 -0
  3132. package/src/_vendor/zod-to-json-schema/parsers/union.ts +134 -0
  3133. package/src/_vendor/zod-to-json-schema/parsers/unknown.ts +5 -0
  3134. package/src/_vendor/zod-to-json-schema/util.ts +15 -0
  3135. package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +199 -0
  3136. package/src/api-promise.ts +2 -0
  3137. package/src/auth/index.ts +15 -0
  3138. package/src/auth/subject-token-providers.ts +445 -0
  3139. package/src/auth/types.ts +71 -0
  3140. package/src/auth/workload-identity-auth.ts +314 -0
  3141. package/src/auth/x509-transport.ts +358 -0
  3142. package/src/azure.ts +259 -0
  3143. package/src/bedrock.ts +278 -0
  3144. package/src/beta/realtime/index.ts +1 -0
  3145. package/src/beta/realtime/internal-base.ts +211 -0
  3146. package/src/beta/realtime/websocket.ts +369 -0
  3147. package/src/beta/realtime/ws.ts +228 -0
  3148. package/src/client.ts +2379 -0
  3149. package/src/core/EventEmitter.ts +235 -0
  3150. package/src/core/README.md +3 -0
  3151. package/src/core/api-promise.ts +99 -0
  3152. package/src/core/error.ts +198 -0
  3153. package/src/core/pagination.ts +391 -0
  3154. package/src/core/resource.ts +9 -0
  3155. package/src/core/streaming.ts +711 -0
  3156. package/src/core/uploads.ts +7 -0
  3157. package/src/error.ts +2 -0
  3158. package/src/helpers/audio.ts +327 -0
  3159. package/src/helpers/live.ts +8 -0
  3160. package/src/helpers/standard-schema.ts +807 -0
  3161. package/src/helpers/zod-v3-strict-schema.ts +514 -0
  3162. package/src/helpers/zod.ts +523 -0
  3163. package/src/index.ts +32 -0
  3164. package/src/internal/README.md +3 -0
  3165. package/src/internal/assistant-stream-delta.ts +434 -0
  3166. package/src/internal/auth/x509-api-origin.ts +27 -0
  3167. package/src/internal/auth/x509-credential-options.ts +146 -0
  3168. package/src/internal/auth/x509-token-exchange.ts +310 -0
  3169. package/src/internal/auth/x509-transport-capability.ts +226 -0
  3170. package/src/internal/auth/x509-transport-registry.ts +127 -0
  3171. package/src/internal/auth/x509-transport-state-browser.ts +43 -0
  3172. package/src/internal/auth/x509-transport-state.cts +43 -0
  3173. package/src/internal/auth/x509-workload-identity-auth.ts +967 -0
  3174. package/src/internal/bedrock.ts +571 -0
  3175. package/src/internal/builtin-types.ts +91 -0
  3176. package/src/internal/data-residency.ts +44 -0
  3177. package/src/internal/decoders/line.ts +218 -0
  3178. package/src/internal/detect-platform.ts +194 -0
  3179. package/src/internal/errors.ts +32 -0
  3180. package/src/internal/headers.ts +101 -0
  3181. package/src/internal/multipart-encoding.ts +53 -0
  3182. package/src/internal/parse.ts +123 -0
  3183. package/src/internal/provider.ts +89 -0
  3184. package/src/internal/qs/LICENSE.md +13 -0
  3185. package/src/internal/qs/README.md +3 -0
  3186. package/src/internal/qs/formats.ts +10 -0
  3187. package/src/internal/qs/index.ts +13 -0
  3188. package/src/internal/qs/stringify.ts +386 -0
  3189. package/src/internal/qs/types.ts +71 -0
  3190. package/src/internal/qs/utils.ts +643 -0
  3191. package/src/internal/realtime-credentials.ts +27 -0
  3192. package/src/internal/request-options.ts +145 -0
  3193. package/src/internal/responses/canonical-output-text.ts +160 -0
  3194. package/src/internal/responses/output-text-index.ts +84 -0
  3195. package/src/internal/responses/response-accumulator.ts +1233 -0
  3196. package/src/internal/shim-types.ts +25 -0
  3197. package/src/internal/shims.ts +105 -0
  3198. package/src/internal/stream-utils.ts +64 -0
  3199. package/src/internal/to-file.ts +209 -0
  3200. package/src/internal/types.ts +93 -0
  3201. package/src/internal/uploads.ts +651 -0
  3202. package/src/internal/utils/base64.ts +65 -0
  3203. package/src/internal/utils/bytes.ts +37 -0
  3204. package/src/internal/utils/env.ts +20 -0
  3205. package/src/internal/utils/log.ts +190 -0
  3206. package/src/internal/utils/path.ts +107 -0
  3207. package/src/internal/utils/query.ts +5 -0
  3208. package/src/internal/utils/sleep.ts +1 -0
  3209. package/src/internal/utils/uuid.ts +15 -0
  3210. package/src/internal/utils/values.ts +103 -0
  3211. package/src/internal/utils.ts +7 -0
  3212. package/src/internal/ws-adapter-browser.ts +180 -0
  3213. package/src/internal/ws-adapter-node.ts +184 -0
  3214. package/src/internal/ws-adapter.ts +53 -0
  3215. package/src/internal/ws.ts +296 -0
  3216. package/src/lib/.keep +4 -0
  3217. package/src/lib/AbstractChatCompletionRunner.ts +628 -0
  3218. package/src/lib/AssistantStream.ts +1036 -0
  3219. package/src/lib/ChatCompletionRunner.ts +106 -0
  3220. package/src/lib/ChatCompletionStream.ts +2553 -0
  3221. package/src/lib/ChatCompletionStreamingRunner.ts +148 -0
  3222. package/src/lib/EventEmitter.ts +228 -0
  3223. package/src/lib/EventStream.ts +2064 -0
  3224. package/src/lib/ResponsesParser.ts +357 -0
  3225. package/src/lib/RunnableFunction.ts +173 -0
  3226. package/src/lib/Util.ts +25 -0
  3227. package/src/lib/agents/agent-session-stream.ts +326 -0
  3228. package/src/lib/agents/output-text.ts +6 -0
  3229. package/src/lib/agents/turn-state.ts +61 -0
  3230. package/src/lib/assistant-run-polling.ts +27 -0
  3231. package/src/lib/chatCompletionUtils.ts +20 -0
  3232. package/src/lib/embeddings.ts +71 -0
  3233. package/src/lib/file-processing.ts +37 -0
  3234. package/src/lib/jsonschema.ts +215 -0
  3235. package/src/lib/live/transcript-grouper.ts +303 -0
  3236. package/src/lib/live/transcript-grouping.ts +362 -0
  3237. package/src/lib/live/webrtc.ts +23 -0
  3238. package/src/lib/parser.ts +475 -0
  3239. package/src/lib/polling.ts +145 -0
  3240. package/src/lib/realtime/webrtc.ts +20 -0
  3241. package/src/lib/responses/EventTypes.ts +23 -0
  3242. package/src/lib/responses/ResponseAccumulator.ts +27 -0
  3243. package/src/lib/responses/ResponseInputItems.ts +156 -0
  3244. package/src/lib/responses/ResponseStream.ts +321 -0
  3245. package/src/lib/transform.ts +2073 -0
  3246. package/src/lib/vector-store-polling.ts +46 -0
  3247. package/src/lib/vector-store-upload.ts +57 -0
  3248. package/src/lib/webhook-signature.ts +164 -0
  3249. package/src/lib/webrtc/connection.ts +309 -0
  3250. package/src/lib/webrtc/data-channel.ts +144 -0
  3251. package/src/lib/webrtc/errors.ts +38 -0
  3252. package/src/lib/webrtc/subscriptions.ts +62 -0
  3253. package/src/lib/webrtc/types.ts +109 -0
  3254. package/src/live/webrtc.ts +10 -0
  3255. package/src/pagination.ts +2 -0
  3256. package/src/providers/bedrock/aws.ts +327 -0
  3257. package/src/providers/bedrock.ts +51 -0
  3258. package/src/realtime/index.ts +1 -0
  3259. package/src/realtime/internal-base.ts +344 -0
  3260. package/src/realtime/webrtc.ts +10 -0
  3261. package/src/realtime/websocket.ts +357 -0
  3262. package/src/realtime/ws.ts +220 -0
  3263. package/src/rebyte-sandbox.ts +13 -0
  3264. package/src/resource.ts +2 -0
  3265. package/src/resources/admin/admin.ts +15 -0
  3266. package/src/resources/admin/index.ts +4 -0
  3267. package/src/resources/admin/organization/admin-api-keys.ts +210 -0
  3268. package/src/resources/admin/organization/audit-logs.ts +2072 -0
  3269. package/src/resources/admin/organization/certificates.ts +458 -0
  3270. package/src/resources/admin/organization/data-retention.ts +79 -0
  3271. package/src/resources/admin/organization/groups/groups.ts +277 -0
  3272. package/src/resources/admin/organization/groups/index.ts +36 -0
  3273. package/src/resources/admin/organization/groups/roles.ts +359 -0
  3274. package/src/resources/admin/organization/groups/users.ts +232 -0
  3275. package/src/resources/admin/organization/groups.ts +3 -0
  3276. package/src/resources/admin/organization/index.ts +125 -0
  3277. package/src/resources/admin/organization/invites.ts +215 -0
  3278. package/src/resources/admin/organization/organization.ts +292 -0
  3279. package/src/resources/admin/organization/projects/api-keys.ts +259 -0
  3280. package/src/resources/admin/organization/projects/certificates.ts +269 -0
  3281. package/src/resources/admin/organization/projects/data-retention.ts +91 -0
  3282. package/src/resources/admin/organization/projects/groups/groups.ts +231 -0
  3283. package/src/resources/admin/organization/projects/groups/index.ts +24 -0
  3284. package/src/resources/admin/organization/projects/groups/roles.ts +386 -0
  3285. package/src/resources/admin/organization/projects/groups.ts +3 -0
  3286. package/src/resources/admin/organization/projects/hosted-tool-permissions.ts +217 -0
  3287. package/src/resources/admin/organization/projects/index.ts +110 -0
  3288. package/src/resources/admin/organization/projects/model-permissions.ts +123 -0
  3289. package/src/resources/admin/organization/projects/projects.ts +496 -0
  3290. package/src/resources/admin/organization/projects/rate-limits.ts +173 -0
  3291. package/src/resources/admin/organization/projects/roles.ts +210 -0
  3292. package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +91 -0
  3293. package/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
  3294. package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +299 -0
  3295. package/src/resources/admin/organization/projects/service-accounts.ts +3 -0
  3296. package/src/resources/admin/organization/projects/spend-alerts.ts +364 -0
  3297. package/src/resources/admin/organization/projects/spend-limit.ts +156 -0
  3298. package/src/resources/admin/organization/projects/users/index.ts +25 -0
  3299. package/src/resources/admin/organization/projects/users/roles.ts +351 -0
  3300. package/src/resources/admin/organization/projects/users/users.ts +256 -0
  3301. package/src/resources/admin/organization/projects/users.ts +3 -0
  3302. package/src/resources/admin/organization/projects.ts +3 -0
  3303. package/src/resources/admin/organization/roles.ts +217 -0
  3304. package/src/resources/admin/organization/spend-alerts.ts +319 -0
  3305. package/src/resources/admin/organization/spend-limit.ts +144 -0
  3306. package/src/resources/admin/organization/usage.ts +7044 -0
  3307. package/src/resources/admin/organization/users/index.ts +22 -0
  3308. package/src/resources/admin/organization/users/roles.ts +328 -0
  3309. package/src/resources/admin/organization/users/users.ts +291 -0
  3310. package/src/resources/admin/organization/users.ts +3 -0
  3311. package/src/resources/admin/organization.ts +3 -0
  3312. package/src/resources/admin.ts +3 -0
  3313. package/src/resources/audio/audio.ts +94 -0
  3314. package/src/resources/audio/index.ts +30 -0
  3315. package/src/resources/audio/speech.ts +116 -0
  3316. package/src/resources/audio/transcriptions.ts +868 -0
  3317. package/src/resources/audio/translations.ts +126 -0
  3318. package/src/resources/audio.ts +3 -0
  3319. package/src/resources/batches.ts +380 -0
  3320. package/src/resources/beta/agents/agents.ts +4633 -0
  3321. package/src/resources/beta/agents/environments/environments.ts +111 -0
  3322. package/src/resources/beta/agents/environments/files.ts +164 -0
  3323. package/src/resources/beta/agents/environments/index.ts +19 -0
  3324. package/src/resources/beta/agents/environments/templates.ts +537 -0
  3325. package/src/resources/beta/agents/environments.ts +3 -0
  3326. package/src/resources/beta/agents/index.ts +127 -0
  3327. package/src/resources/beta/agents/sessions/artifacts.ts +239 -0
  3328. package/src/resources/beta/agents/sessions/events.ts +91 -0
  3329. package/src/resources/beta/agents/sessions/index.ts +24 -0
  3330. package/src/resources/beta/agents/sessions/items.ts +59 -0
  3331. package/src/resources/beta/agents/sessions/sessions.ts +350 -0
  3332. package/src/resources/beta/agents/sessions/subagents/index.ts +5 -0
  3333. package/src/resources/beta/agents/sessions/subagents/items.ts +65 -0
  3334. package/src/resources/beta/agents/sessions/subagents/subagents.ts +113 -0
  3335. package/src/resources/beta/agents/sessions/subagents/turns/index.ts +4 -0
  3336. package/src/resources/beta/agents/sessions/subagents/turns/items.ts +70 -0
  3337. package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +111 -0
  3338. package/src/resources/beta/agents/sessions/subagents/turns.ts +3 -0
  3339. package/src/resources/beta/agents/sessions/subagents.ts +3 -0
  3340. package/src/resources/beta/agents/sessions/turns.ts +159 -0
  3341. package/src/resources/beta/agents/sessions.ts +3 -0
  3342. package/src/resources/beta/agents/vaults/credentials.ts +687 -0
  3343. package/src/resources/beta/agents/vaults/index.ts +29 -0
  3344. package/src/resources/beta/agents/vaults/vaults.ts +237 -0
  3345. package/src/resources/beta/agents/vaults.ts +3 -0
  3346. package/src/resources/beta/agents.ts +3 -0
  3347. package/src/resources/beta/assistants.ts +1532 -0
  3348. package/src/resources/beta/beta.ts +772 -0
  3349. package/src/resources/beta/chatkit/chatkit.ts +112 -0
  3350. package/src/resources/beta/chatkit/index.ts +30 -0
  3351. package/src/resources/beta/chatkit/sessions.ts +83 -0
  3352. package/src/resources/beta/chatkit/threads.ts +1045 -0
  3353. package/src/resources/beta/chatkit.ts +3 -0
  3354. package/src/resources/beta/index.ts +327 -0
  3355. package/src/resources/beta/realtime/index.ts +7 -0
  3356. package/src/resources/beta/realtime/realtime.ts +2827 -0
  3357. package/src/resources/beta/realtime/sessions.ts +868 -0
  3358. package/src/resources/beta/realtime/transcription-sessions.ts +346 -0
  3359. package/src/resources/beta/realtime.ts +1 -0
  3360. package/src/resources/beta/responses/index.ts +188 -0
  3361. package/src/resources/beta/responses/input-items.ts +105 -0
  3362. package/src/resources/beta/responses/input-tokens.ts +249 -0
  3363. package/src/resources/beta/responses/internal-base.ts +118 -0
  3364. package/src/resources/beta/responses/responses.ts +14978 -0
  3365. package/src/resources/beta/responses/ws-base.ts +615 -0
  3366. package/src/resources/beta/responses/ws.ts +42 -0
  3367. package/src/resources/beta/responses.ts +3 -0
  3368. package/src/resources/beta/threads/index.ts +77 -0
  3369. package/src/resources/beta/threads/messages.ts +805 -0
  3370. package/src/resources/beta/threads/runs/index.ts +48 -0
  3371. package/src/resources/beta/threads/runs/runs.ts +1044 -0
  3372. package/src/resources/beta/threads/runs/steps.ts +759 -0
  3373. package/src/resources/beta/threads/runs.ts +3 -0
  3374. package/src/resources/beta/threads/threads.ts +1410 -0
  3375. package/src/resources/beta/threads.ts +3 -0
  3376. package/src/resources/beta.ts +3 -0
  3377. package/src/resources/chat/chat.ts +110 -0
  3378. package/src/resources/chat/completions/completions.ts +2733 -0
  3379. package/src/resources/chat/completions/index.ts +50 -0
  3380. package/src/resources/chat/completions/messages.ts +53 -0
  3381. package/src/resources/chat/completions.ts +3 -0
  3382. package/src/resources/chat/index.ts +49 -0
  3383. package/src/resources/chat.ts +3 -0
  3384. package/src/resources/completions.ts +424 -0
  3385. package/src/resources/containers/containers.ts +403 -0
  3386. package/src/resources/containers/files/content.ts +30 -0
  3387. package/src/resources/containers/files/files.ts +233 -0
  3388. package/src/resources/containers/files/index.ts +14 -0
  3389. package/src/resources/containers/files.ts +3 -0
  3390. package/src/resources/containers/index.ts +22 -0
  3391. package/src/resources/containers.ts +3 -0
  3392. package/src/resources/content-provenance-checks.ts +132 -0
  3393. package/src/resources/conversations/api.md +37 -0
  3394. package/src/resources/conversations/conversations.ts +325 -0
  3395. package/src/resources/conversations/index.ts +13 -0
  3396. package/src/resources/conversations/items.ts +627 -0
  3397. package/src/resources/conversations.ts +3 -0
  3398. package/src/resources/embeddings.ts +154 -0
  3399. package/src/resources/evals/evals.ts +937 -0
  3400. package/src/resources/evals/index.ts +33 -0
  3401. package/src/resources/evals/runs/index.ts +27 -0
  3402. package/src/resources/evals/runs/output-items.ts +483 -0
  3403. package/src/resources/evals/runs/runs.ts +2814 -0
  3404. package/src/resources/evals/runs.ts +3 -0
  3405. package/src/resources/evals.ts +3 -0
  3406. package/src/resources/files.ts +258 -0
  3407. package/src/resources/fine-tuning/alpha/alpha.ts +27 -0
  3408. package/src/resources/fine-tuning/alpha/graders.ts +183 -0
  3409. package/src/resources/fine-tuning/alpha/index.ts +10 -0
  3410. package/src/resources/fine-tuning/alpha.ts +3 -0
  3411. package/src/resources/fine-tuning/checkpoints/checkpoints.ts +39 -0
  3412. package/src/resources/fine-tuning/checkpoints/index.ts +16 -0
  3413. package/src/resources/fine-tuning/checkpoints/permissions.ts +305 -0
  3414. package/src/resources/fine-tuning/checkpoints.ts +3 -0
  3415. package/src/resources/fine-tuning/fine-tuning.ts +73 -0
  3416. package/src/resources/fine-tuning/index.ts +27 -0
  3417. package/src/resources/fine-tuning/jobs/checkpoints.ts +110 -0
  3418. package/src/resources/fine-tuning/jobs/index.ts +21 -0
  3419. package/src/resources/fine-tuning/jobs/jobs.ts +674 -0
  3420. package/src/resources/fine-tuning/jobs.ts +3 -0
  3421. package/src/resources/fine-tuning/methods.ts +152 -0
  3422. package/src/resources/fine-tuning.ts +3 -0
  3423. package/src/resources/graders/grader-models.ts +443 -0
  3424. package/src/resources/graders/graders.ts +33 -0
  3425. package/src/resources/graders/index.ts +13 -0
  3426. package/src/resources/graders.ts +3 -0
  3427. package/src/resources/images.ts +910 -0
  3428. package/src/resources/index.ts +159 -0
  3429. package/src/resources/live/api.md +87 -0
  3430. package/src/resources/live/forks/forks.ts +169 -0
  3431. package/src/resources/live/forks/index.ts +5 -0
  3432. package/src/resources/live/forks/internal-base.ts +107 -0
  3433. package/src/resources/live/forks/ws-base.ts +611 -0
  3434. package/src/resources/live/forks/ws.ts +46 -0
  3435. package/src/resources/live/forks.ts +3 -0
  3436. package/src/resources/live/index.ts +20 -0
  3437. package/src/resources/live/internal-base.ts +104 -0
  3438. package/src/resources/live/live.ts +2296 -0
  3439. package/src/resources/live/sessions.ts +343 -0
  3440. package/src/resources/live/sideband/index.ts +10 -0
  3441. package/src/resources/live/sideband/internal-base.ts +107 -0
  3442. package/src/resources/live/sideband/sideband.ts +58 -0
  3443. package/src/resources/live/sideband/ws-base.ts +621 -0
  3444. package/src/resources/live/sideband/ws.ts +46 -0
  3445. package/src/resources/live/sideband.ts +3 -0
  3446. package/src/resources/live/ws-base.ts +607 -0
  3447. package/src/resources/live/ws.ts +42 -0
  3448. package/src/resources/live.ts +3 -0
  3449. package/src/resources/models.ts +81 -0
  3450. package/src/resources/moderations.ts +371 -0
  3451. package/src/resources/realtime/api.md +146 -0
  3452. package/src/resources/realtime/calls.ts +293 -0
  3453. package/src/resources/realtime/client-secrets.ts +774 -0
  3454. package/src/resources/realtime/index.ts +18 -0
  3455. package/src/resources/realtime/realtime.ts +5578 -0
  3456. package/src/resources/realtime.ts +3 -0
  3457. package/src/resources/responses/api.md +198 -0
  3458. package/src/resources/responses/index.ts +7 -0
  3459. package/src/resources/responses/input-items.ts +87 -0
  3460. package/src/resources/responses/input-tokens.ts +185 -0
  3461. package/src/resources/responses/internal-base.ts +114 -0
  3462. package/src/resources/responses/responses.ts +11621 -0
  3463. package/src/resources/responses/ws-base.ts +611 -0
  3464. package/src/resources/responses/ws.ts +42 -0
  3465. package/src/resources/responses.ts +3 -0
  3466. package/src/resources/safety/alerts.ts +51 -0
  3467. package/src/resources/safety/index.ts +4 -0
  3468. package/src/resources/safety/safety.ts +15 -0
  3469. package/src/resources/safety.ts +3 -0
  3470. package/src/resources/shared.ts +486 -0
  3471. package/src/resources/skills/content.ts +21 -0
  3472. package/src/resources/skills/index.ts +24 -0
  3473. package/src/resources/skills/skills.ts +204 -0
  3474. package/src/resources/skills/versions/content.ts +33 -0
  3475. package/src/resources/skills/versions/index.ts +14 -0
  3476. package/src/resources/skills/versions/versions.ts +205 -0
  3477. package/src/resources/skills/versions.ts +3 -0
  3478. package/src/resources/skills.ts +3 -0
  3479. package/src/resources/uploads/index.ts +4 -0
  3480. package/src/resources/uploads/parts.ts +70 -0
  3481. package/src/resources/uploads/uploads.ts +211 -0
  3482. package/src/resources/uploads.ts +3 -0
  3483. package/src/resources/vector-stores/file-batches.ts +316 -0
  3484. package/src/resources/vector-stores/files.ts +365 -0
  3485. package/src/resources/vector-stores/index.ts +43 -0
  3486. package/src/resources/vector-stores/vector-stores.ts +568 -0
  3487. package/src/resources/vector-stores.ts +3 -0
  3488. package/src/resources/videos.ts +486 -0
  3489. package/src/resources/webhooks/api.md +28 -0
  3490. package/src/resources/webhooks/index.ts +3 -0
  3491. package/src/resources/webhooks/webhooks.ts +1007 -0
  3492. package/src/resources/webhooks.ts +3 -0
  3493. package/src/resources.ts +1 -0
  3494. package/src/streaming.ts +2 -0
  3495. package/src/tsconfig.dist-src.d.ts +29 -0
  3496. package/src/tsconfig.json +14 -0
  3497. package/src/uploads.ts +2 -0
  3498. package/src/version.ts +2 -0
  3499. package/streaming.d.mts +3 -0
  3500. package/streaming.d.mts.map +1 -0
  3501. package/streaming.d.ts +3 -0
  3502. package/streaming.d.ts.map +1 -0
  3503. package/streaming.js +6 -0
  3504. package/streaming.js.map +1 -0
  3505. package/streaming.mjs +3 -0
  3506. package/streaming.mjs.map +1 -0
  3507. package/uploads.d.mts +3 -0
  3508. package/uploads.d.mts.map +1 -0
  3509. package/uploads.d.ts +3 -0
  3510. package/uploads.d.ts.map +1 -0
  3511. package/uploads.js +6 -0
  3512. package/uploads.js.map +1 -0
  3513. package/uploads.mjs +3 -0
  3514. package/uploads.mjs.map +1 -0
  3515. package/version.d.mts +3 -0
  3516. package/version.d.mts.map +1 -0
  3517. package/version.d.ts +3 -0
  3518. package/version.d.ts.map +1 -0
  3519. package/version.js +6 -0
  3520. package/version.js.map +1 -0
  3521. package/version.mjs +3 -0
  3522. package/version.mjs.map +1 -0
@@ -0,0 +1,4549 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as RealtimeAPI from "./realtime.mjs";
3
+ import * as Shared from "../shared.mjs";
4
+ import * as TranscriptionsAPI from "../audio/transcriptions.mjs";
5
+ import * as CallsAPI from "./calls.mjs";
6
+ import { CallAcceptParams, CallCreateParams, CallReferParams, CallRejectParams, Calls } from "./calls.mjs";
7
+ import * as ClientSecretsAPI from "./client-secrets.mjs";
8
+ import { ClientSecretCreateParams, ClientSecretCreateResponse, ClientSecrets, RealtimeSessionCreateResponse, RealtimeTranscriptionSessionCreateResponse, RealtimeTranscriptionSessionTurnDetection } from "./client-secrets.mjs";
9
+ import * as ResponsesAPI from "../responses/responses.mjs";
10
+ export declare class Realtime extends APIResource {
11
+ clientSecrets: ClientSecretsAPI.ClientSecrets;
12
+ calls: CallsAPI.Calls;
13
+ }
14
+ export interface AudioTranscription {
15
+ /**
16
+ * Controls how long the model waits before emitting transcription text. Higher
17
+ * values can improve transcription accuracy at the cost of latency. Only supported
18
+ * with `gpt-realtime-whisper` in GA Realtime sessions.
19
+ */
20
+ delay?: 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
21
+ /**
22
+ * Words or phrases to guide transcription of the input audio. Supported by
23
+ * `gpt-transcribe` and `gpt-live-transcribe`.
24
+ */
25
+ keywords?: Array<string>;
26
+ /**
27
+ * The language of the input audio. Supplying the input language in
28
+ * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`)
29
+ * format will improve accuracy and latency.
30
+ */
31
+ language?: string;
32
+ /**
33
+ * Possible languages of the input audio, in
34
+ * [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
35
+ * Supported by `gpt-transcribe` and `gpt-live-transcribe`.
36
+ */
37
+ languages?: Array<string>;
38
+ /**
39
+ * The model to use for transcription. Current options are `whisper-1`,
40
+ * `gpt-transcribe`, `gpt-live-transcribe`, `gpt-4o-mini-transcribe`,
41
+ * `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`,
42
+ * `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`. Use
43
+ * `gpt-4o-transcribe-diarize` when you need diarization with speaker labels.
44
+ */
45
+ model?: (string & {}) | 'whisper-1' | 'gpt-transcribe' | 'gpt-live-transcribe' | 'gpt-4o-mini-transcribe' | 'gpt-4o-mini-transcribe-2025-12-15' | 'gpt-4o-transcribe' | 'gpt-4o-transcribe-diarize' | 'gpt-realtime-whisper';
46
+ /**
47
+ * An optional text to guide the model's style or continue a previous audio
48
+ * segment. For `whisper-1`, the
49
+ * [prompt is a list of keywords](https://developers.openai.com/api/docs/guides/speech-to-text#prompting).
50
+ * For `gpt-4o-transcribe` models (excluding `gpt-4o-transcribe-diarize`), the
51
+ * prompt is a free text string, for example "expect words related to technology".
52
+ * Prompt is not supported with `gpt-realtime-whisper` in GA Realtime sessions.
53
+ */
54
+ prompt?: string;
55
+ }
56
+ /**
57
+ * Returned when a conversation is created. Emitted right after session creation.
58
+ */
59
+ export interface ConversationCreatedEvent {
60
+ /**
61
+ * The conversation resource.
62
+ */
63
+ conversation: ConversationCreatedEvent.Conversation;
64
+ /**
65
+ * The unique ID of the server event.
66
+ */
67
+ event_id: string;
68
+ /**
69
+ * The event type, must be `conversation.created`.
70
+ */
71
+ type: 'conversation.created';
72
+ }
73
+ export declare namespace ConversationCreatedEvent {
74
+ /**
75
+ * The conversation resource.
76
+ */
77
+ interface Conversation {
78
+ /**
79
+ * The unique ID of the conversation.
80
+ */
81
+ id?: string;
82
+ /**
83
+ * The object type, must be `realtime.conversation`.
84
+ */
85
+ object?: 'realtime.conversation';
86
+ }
87
+ }
88
+ /**
89
+ * A single item within a Realtime conversation.
90
+ */
91
+ export type ConversationItem = RealtimeConversationItemSystemMessage | RealtimeConversationItemUserMessage | RealtimeConversationItemAssistantMessage | RealtimeConversationItemFunctionCall | RealtimeConversationItemFunctionCallOutput | RealtimeMcpApprovalResponse | RealtimeMcpListTools | RealtimeMcpToolCall | RealtimeMcpApprovalRequest;
92
+ /**
93
+ * Sent by the server when an Item is added to the default Conversation. This can
94
+ * happen in several cases:
95
+ *
96
+ * - When the client sends a `conversation.item.create` event.
97
+ * - When the input audio buffer is committed. In this case the item will be a user
98
+ * message containing the audio from the buffer.
99
+ * - When the model is generating a Response. In this case the
100
+ * `conversation.item.added` event will be sent when the model starts generating
101
+ * a specific Item, and thus it will not yet have any content (and `status` will
102
+ * be `in_progress`).
103
+ *
104
+ * The event will include the full content of the Item (except when model is
105
+ * generating a Response) except for audio data, which can be retrieved separately
106
+ * with a `conversation.item.retrieve` event if necessary.
107
+ */
108
+ export interface ConversationItemAdded {
109
+ /**
110
+ * The unique ID of the server event.
111
+ */
112
+ event_id: string;
113
+ /**
114
+ * A single item within a Realtime conversation.
115
+ */
116
+ item: ConversationItem;
117
+ /**
118
+ * The event type, must be `conversation.item.added`.
119
+ */
120
+ type: 'conversation.item.added';
121
+ /**
122
+ * The ID of the item that precedes this one, if any. This is used to maintain
123
+ * ordering when items are inserted.
124
+ */
125
+ previous_item_id?: string | null;
126
+ }
127
+ /**
128
+ * Add a new Item to the Conversation's context, including messages, function
129
+ * calls, and function call responses. This event can be used both to populate a
130
+ * "history" of the conversation and to add new items mid-stream, but has the
131
+ * current limitation that it cannot populate assistant audio messages.
132
+ *
133
+ * If successful, the server will respond with a `conversation.item.created` event,
134
+ * otherwise an `error` event will be sent.
135
+ */
136
+ export interface ConversationItemCreateEvent {
137
+ /**
138
+ * A single item within a Realtime conversation.
139
+ */
140
+ item: ConversationItem;
141
+ /**
142
+ * The event type, must be `conversation.item.create`.
143
+ */
144
+ type: 'conversation.item.create';
145
+ /**
146
+ * Optional client-generated ID used to identify this event.
147
+ */
148
+ event_id?: string;
149
+ /**
150
+ * The ID of the preceding item after which the new item will be inserted. If not
151
+ * set, the new item will be appended to the end of the conversation.
152
+ *
153
+ * If set to `root`, the new item will be added to the beginning of the
154
+ * conversation.
155
+ *
156
+ * If set to an existing ID, it allows an item to be inserted mid-conversation. If
157
+ * the ID cannot be found, an error will be returned and the item will not be
158
+ * added.
159
+ */
160
+ previous_item_id?: string;
161
+ }
162
+ /**
163
+ * Returned when a conversation item is created. There are several scenarios that
164
+ * produce this event:
165
+ *
166
+ * - The server is generating a Response, which if successful will produce either
167
+ * one or two Items, which will be of type `message` (role `assistant`) or type
168
+ * `function_call`.
169
+ * - The input audio buffer has been committed, either by the client or the server
170
+ * (in `server_vad` mode). The server will take the content of the input audio
171
+ * buffer and add it to a new user message Item.
172
+ * - The client has sent a `conversation.item.create` event to add a new Item to
173
+ * the Conversation.
174
+ */
175
+ export interface ConversationItemCreatedEvent {
176
+ /**
177
+ * The unique ID of the server event.
178
+ */
179
+ event_id: string;
180
+ /**
181
+ * A single item within a Realtime conversation.
182
+ */
183
+ item: ConversationItem;
184
+ /**
185
+ * The event type, must be `conversation.item.created`.
186
+ */
187
+ type: 'conversation.item.created';
188
+ /**
189
+ * The ID of the preceding item in the Conversation context, allows the client to
190
+ * understand the order of the conversation. Can be `null` if the item has no
191
+ * predecessor.
192
+ */
193
+ previous_item_id?: string | null;
194
+ }
195
+ /**
196
+ * Send this event when you want to remove any item from the conversation history.
197
+ * The server will respond with a `conversation.item.deleted` event, unless the
198
+ * item does not exist in the conversation history, in which case the server will
199
+ * respond with an error.
200
+ */
201
+ export interface ConversationItemDeleteEvent {
202
+ /**
203
+ * The ID of the item to delete.
204
+ */
205
+ item_id: string;
206
+ /**
207
+ * The event type, must be `conversation.item.delete`.
208
+ */
209
+ type: 'conversation.item.delete';
210
+ /**
211
+ * Optional client-generated ID used to identify this event.
212
+ */
213
+ event_id?: string;
214
+ }
215
+ /**
216
+ * Returned when an item in the conversation is deleted by the client with a
217
+ * `conversation.item.delete` event. This event is used to synchronize the server's
218
+ * understanding of the conversation history with the client's view.
219
+ */
220
+ export interface ConversationItemDeletedEvent {
221
+ /**
222
+ * The unique ID of the server event.
223
+ */
224
+ event_id: string;
225
+ /**
226
+ * The ID of the item that was deleted.
227
+ */
228
+ item_id: string;
229
+ /**
230
+ * The event type, must be `conversation.item.deleted`.
231
+ */
232
+ type: 'conversation.item.deleted';
233
+ }
234
+ /**
235
+ * Returned when a conversation item is finalized.
236
+ *
237
+ * The event will include the full content of the Item except for audio data, which
238
+ * can be retrieved separately with a `conversation.item.retrieve` event if needed.
239
+ */
240
+ export interface ConversationItemDone {
241
+ /**
242
+ * The unique ID of the server event.
243
+ */
244
+ event_id: string;
245
+ /**
246
+ * A single item within a Realtime conversation.
247
+ */
248
+ item: ConversationItem;
249
+ /**
250
+ * The event type, must be `conversation.item.done`.
251
+ */
252
+ type: 'conversation.item.done';
253
+ /**
254
+ * The ID of the item that precedes this one, if any. This is used to maintain
255
+ * ordering when items are inserted.
256
+ */
257
+ previous_item_id?: string | null;
258
+ }
259
+ /**
260
+ * This event is the output of audio transcription for user audio written to the
261
+ * user audio buffer. Transcription begins when the input audio buffer is committed
262
+ * by the client or server (when VAD is enabled). Transcription runs asynchronously
263
+ * with Response creation, so this event may come before or after the Response
264
+ * events.
265
+ *
266
+ * Realtime API models accept audio natively, and thus input transcription is a
267
+ * separate process run on a separate ASR (Automatic Speech Recognition) model. The
268
+ * transcript may diverge somewhat from the model's interpretation, and should be
269
+ * treated as a rough guide.
270
+ */
271
+ export interface ConversationItemInputAudioTranscriptionCompletedEvent {
272
+ /**
273
+ * The index of the content part containing the audio.
274
+ */
275
+ content_index: number;
276
+ /**
277
+ * The unique ID of the server event.
278
+ */
279
+ event_id: string;
280
+ /**
281
+ * The ID of the item containing the audio that is being transcribed.
282
+ */
283
+ item_id: string;
284
+ /**
285
+ * The transcribed text.
286
+ */
287
+ transcript: string;
288
+ /**
289
+ * The event type, must be `conversation.item.input_audio_transcription.completed`.
290
+ */
291
+ type: 'conversation.item.input_audio_transcription.completed';
292
+ /**
293
+ * Usage statistics for the transcription, this is billed according to the ASR
294
+ * model's pricing rather than the realtime model's pricing.
295
+ */
296
+ usage: ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageTokens | ConversationItemInputAudioTranscriptionCompletedEvent.TranscriptTextUsageDuration;
297
+ /**
298
+ * The languages detected in the audio. Returned by `gpt-transcribe`. An empty
299
+ * array indicates that no language could be reliably detected.
300
+ */
301
+ languages?: Array<TranscriptionsAPI.TranscriptionLanguage>;
302
+ /**
303
+ * The log probabilities of the transcription.
304
+ */
305
+ logprobs?: Array<LogProbProperties> | null;
306
+ }
307
+ export declare namespace ConversationItemInputAudioTranscriptionCompletedEvent {
308
+ /**
309
+ * Usage statistics for models billed by token usage.
310
+ */
311
+ interface TranscriptTextUsageTokens {
312
+ /**
313
+ * Number of input tokens billed for this request.
314
+ */
315
+ input_tokens: number;
316
+ /**
317
+ * Number of output tokens generated.
318
+ */
319
+ output_tokens: number;
320
+ /**
321
+ * Total number of tokens used (input + output).
322
+ */
323
+ total_tokens: number;
324
+ /**
325
+ * The type of the usage object. Always `tokens` for this variant.
326
+ */
327
+ type: 'tokens';
328
+ /**
329
+ * Details about the input tokens billed for this request.
330
+ */
331
+ input_token_details?: TranscriptTextUsageTokens.InputTokenDetails;
332
+ }
333
+ namespace TranscriptTextUsageTokens {
334
+ /**
335
+ * Details about the input tokens billed for this request.
336
+ */
337
+ interface InputTokenDetails {
338
+ /**
339
+ * Number of audio tokens billed for this request.
340
+ */
341
+ audio_tokens?: number;
342
+ /**
343
+ * Number of text tokens billed for this request.
344
+ */
345
+ text_tokens?: number;
346
+ }
347
+ }
348
+ /**
349
+ * Usage statistics for models billed by audio input duration.
350
+ */
351
+ interface TranscriptTextUsageDuration {
352
+ /**
353
+ * Duration of the input audio in seconds.
354
+ */
355
+ seconds: number;
356
+ /**
357
+ * The type of the usage object. Always `duration` for this variant.
358
+ */
359
+ type: 'duration';
360
+ }
361
+ }
362
+ /**
363
+ * Returned when the text value of an input audio transcription content part is
364
+ * updated with incremental transcription results.
365
+ */
366
+ export interface ConversationItemInputAudioTranscriptionDeltaEvent {
367
+ /**
368
+ * The unique ID of the server event.
369
+ */
370
+ event_id: string;
371
+ /**
372
+ * The ID of the item containing the audio that is being transcribed.
373
+ */
374
+ item_id: string;
375
+ /**
376
+ * The event type, must be `conversation.item.input_audio_transcription.delta`.
377
+ */
378
+ type: 'conversation.item.input_audio_transcription.delta';
379
+ /**
380
+ * The index of the content part in the item's content array.
381
+ */
382
+ content_index?: number;
383
+ /**
384
+ * The text delta.
385
+ */
386
+ delta?: string;
387
+ /**
388
+ * The log probabilities of the transcription. These can be enabled by
389
+ * configurating the session with
390
+ * `"include": ["item.input_audio_transcription.logprobs"]`. Each entry in the
391
+ * array corresponds a log probability of which token would be selected for this
392
+ * chunk of transcription. This can help to identify if it was possible there were
393
+ * multiple valid options for a given chunk of transcription.
394
+ */
395
+ logprobs?: Array<LogProbProperties> | null;
396
+ }
397
+ /**
398
+ * Returned when input audio transcription is configured, and a transcription
399
+ * request for a user message failed. These events are separate from other `error`
400
+ * events so that the client can identify the related Item.
401
+ */
402
+ export interface ConversationItemInputAudioTranscriptionFailedEvent {
403
+ /**
404
+ * The index of the content part containing the audio.
405
+ */
406
+ content_index: number;
407
+ /**
408
+ * Details of the transcription error.
409
+ */
410
+ error: ConversationItemInputAudioTranscriptionFailedEvent.Error;
411
+ /**
412
+ * The unique ID of the server event.
413
+ */
414
+ event_id: string;
415
+ /**
416
+ * The ID of the user message item.
417
+ */
418
+ item_id: string;
419
+ /**
420
+ * The event type, must be `conversation.item.input_audio_transcription.failed`.
421
+ */
422
+ type: 'conversation.item.input_audio_transcription.failed';
423
+ }
424
+ export declare namespace ConversationItemInputAudioTranscriptionFailedEvent {
425
+ /**
426
+ * Details of the transcription error.
427
+ */
428
+ interface Error {
429
+ /**
430
+ * Error code, if any.
431
+ */
432
+ code?: string;
433
+ /**
434
+ * A human-readable error message.
435
+ */
436
+ message?: string;
437
+ /**
438
+ * Parameter related to the error, if any.
439
+ */
440
+ param?: string;
441
+ /**
442
+ * The type of error.
443
+ */
444
+ type?: string;
445
+ }
446
+ }
447
+ /**
448
+ * Returned when an input audio transcription segment is identified for an item.
449
+ */
450
+ export interface ConversationItemInputAudioTranscriptionSegment {
451
+ /**
452
+ * The segment identifier.
453
+ */
454
+ id: string;
455
+ /**
456
+ * The index of the input audio content part within the item.
457
+ */
458
+ content_index: number;
459
+ /**
460
+ * End time of the segment in seconds.
461
+ */
462
+ end: number;
463
+ /**
464
+ * The unique ID of the server event.
465
+ */
466
+ event_id: string;
467
+ /**
468
+ * The ID of the item containing the input audio content.
469
+ */
470
+ item_id: string;
471
+ /**
472
+ * The detected speaker label for this segment.
473
+ */
474
+ speaker: string;
475
+ /**
476
+ * Start time of the segment in seconds.
477
+ */
478
+ start: number;
479
+ /**
480
+ * The text for this segment.
481
+ */
482
+ text: string;
483
+ /**
484
+ * The event type, must be `conversation.item.input_audio_transcription.segment`.
485
+ */
486
+ type: 'conversation.item.input_audio_transcription.segment';
487
+ }
488
+ /**
489
+ * Send this event when you want to retrieve the server's representation of a
490
+ * specific item in the conversation history. This is useful, for example, to
491
+ * inspect user audio after noise cancellation and VAD. The server will respond
492
+ * with a `conversation.item.retrieved` event, unless the item does not exist in
493
+ * the conversation history, in which case the server will respond with an error.
494
+ */
495
+ export interface ConversationItemRetrieveEvent {
496
+ /**
497
+ * The ID of the item to retrieve.
498
+ */
499
+ item_id: string;
500
+ /**
501
+ * The event type, must be `conversation.item.retrieve`.
502
+ */
503
+ type: 'conversation.item.retrieve';
504
+ /**
505
+ * Optional client-generated ID used to identify this event.
506
+ */
507
+ event_id?: string;
508
+ }
509
+ /**
510
+ * Send this event to truncate a previous assistant message’s audio. The server
511
+ * will produce audio faster than realtime, so this event is useful when the user
512
+ * interrupts to truncate audio that has already been sent to the client but not
513
+ * yet played. This will synchronize the server's understanding of the audio with
514
+ * the client's playback.
515
+ *
516
+ * Truncating audio will delete the server-side text transcript to ensure there is
517
+ * not text in the context that hasn't been heard by the user.
518
+ *
519
+ * If successful, the server will respond with a `conversation.item.truncated`
520
+ * event.
521
+ */
522
+ export interface ConversationItemTruncateEvent {
523
+ /**
524
+ * Inclusive duration up to which audio is truncated, in milliseconds. If the
525
+ * audio_end_ms is greater than the actual audio duration, the server will respond
526
+ * with an error.
527
+ */
528
+ audio_end_ms: number;
529
+ /**
530
+ * The index of the content part to truncate. Set this to `0`.
531
+ */
532
+ content_index: number;
533
+ /**
534
+ * The ID of the assistant message item to truncate. Only assistant message items
535
+ * can be truncated.
536
+ */
537
+ item_id: string;
538
+ /**
539
+ * The event type, must be `conversation.item.truncate`.
540
+ */
541
+ type: 'conversation.item.truncate';
542
+ /**
543
+ * Optional client-generated ID used to identify this event.
544
+ */
545
+ event_id?: string;
546
+ }
547
+ /**
548
+ * Returned when an earlier assistant audio message item is truncated by the client
549
+ * with a `conversation.item.truncate` event. This event is used to synchronize the
550
+ * server's understanding of the audio with the client's playback.
551
+ *
552
+ * This action will truncate the audio and remove the server-side text transcript
553
+ * to ensure there is no text in the context that hasn't been heard by the user.
554
+ */
555
+ export interface ConversationItemTruncatedEvent {
556
+ /**
557
+ * The duration up to which the audio was truncated, in milliseconds.
558
+ */
559
+ audio_end_ms: number;
560
+ /**
561
+ * The index of the content part that was truncated.
562
+ */
563
+ content_index: number;
564
+ /**
565
+ * The unique ID of the server event.
566
+ */
567
+ event_id: string;
568
+ /**
569
+ * The ID of the assistant message item that was truncated.
570
+ */
571
+ item_id: string;
572
+ /**
573
+ * The event type, must be `conversation.item.truncated`.
574
+ */
575
+ type: 'conversation.item.truncated';
576
+ }
577
+ /**
578
+ * The item to add to the conversation.
579
+ */
580
+ export interface ConversationItemWithReference {
581
+ /**
582
+ * For an item of type (`message` | `function_call` | `function_call_output`) this
583
+ * field allows the client to assign the unique ID of the item. It is not required
584
+ * because the server will generate one if not provided.
585
+ *
586
+ * For an item of type `item_reference`, this field is required and is a reference
587
+ * to any item that has previously existed in the conversation.
588
+ */
589
+ id?: string;
590
+ /**
591
+ * The arguments of the function call (for `function_call` items).
592
+ */
593
+ arguments?: string;
594
+ /**
595
+ * The ID of the function call (for `function_call` and `function_call_output`
596
+ * items). If passed on a `function_call_output` item, the server will check that a
597
+ * `function_call` item with the same ID exists in the conversation history.
598
+ */
599
+ call_id?: string;
600
+ /**
601
+ * The content of the message, applicable for `message` items.
602
+ *
603
+ * - Message items of role `system` support only `input_text` content
604
+ * - Message items of role `user` support `input_text` and `input_audio` content
605
+ * - Message items of role `assistant` support `text` content.
606
+ */
607
+ content?: Array<ConversationItemWithReference.Content>;
608
+ /**
609
+ * The name of the function being called (for `function_call` items).
610
+ */
611
+ name?: string;
612
+ /**
613
+ * Identifier for the API object being returned - always `realtime.item`.
614
+ */
615
+ object?: 'realtime.item';
616
+ /**
617
+ * The output of the function call (for `function_call_output` items).
618
+ */
619
+ output?: string;
620
+ /**
621
+ * The role of the message sender (`user`, `assistant`, `system`), only applicable
622
+ * for `message` items.
623
+ */
624
+ role?: 'user' | 'assistant' | 'system';
625
+ /**
626
+ * The status of the item (`completed`, `incomplete`, `in_progress`). These have no
627
+ * effect on the conversation, but are accepted for consistency with the
628
+ * `conversation.item.created` event.
629
+ */
630
+ status?: 'completed' | 'incomplete' | 'in_progress';
631
+ /**
632
+ * The type of the item (`message`, `function_call`, `function_call_output`,
633
+ * `item_reference`).
634
+ */
635
+ type?: 'message' | 'function_call' | 'function_call_output' | 'item_reference';
636
+ }
637
+ export declare namespace ConversationItemWithReference {
638
+ interface Content {
639
+ /**
640
+ * ID of a previous conversation item to reference (for `item_reference` content
641
+ * types in `response.create` events). These can reference both client and server
642
+ * created items.
643
+ */
644
+ id?: string;
645
+ /**
646
+ * Base64-encoded audio bytes, used for `input_audio` content type.
647
+ */
648
+ audio?: string;
649
+ /**
650
+ * The text content, used for `input_text` and `text` content types.
651
+ */
652
+ text?: string;
653
+ /**
654
+ * The transcript of the audio, used for `input_audio` content type.
655
+ */
656
+ transcript?: string;
657
+ /**
658
+ * The content type (`input_text`, `input_audio`, `item_reference`, `text`).
659
+ */
660
+ type?: 'input_text' | 'input_audio' | 'item_reference' | 'text';
661
+ }
662
+ }
663
+ /**
664
+ * Send this event to append audio bytes to the input audio buffer. The audio
665
+ * buffer is temporary storage you can write to and later commit. A "commit" will
666
+ * create a new user message item in the conversation history from the buffer
667
+ * content and clear the buffer. Input audio transcription (if enabled) will be
668
+ * generated when the buffer is committed.
669
+ *
670
+ * If VAD is enabled the audio buffer is used to detect speech and the server will
671
+ * decide when to commit. When Server VAD is disabled, you must commit the audio
672
+ * buffer manually. Input audio noise reduction operates on writes to the audio
673
+ * buffer.
674
+ *
675
+ * The client may choose how much audio to place in each event up to a maximum of
676
+ * 15 MiB, for example streaming smaller chunks from the client may allow the VAD
677
+ * to be more responsive. Unlike most other client events, the server will not send
678
+ * a confirmation response to this event.
679
+ */
680
+ export interface InputAudioBufferAppendEvent {
681
+ /**
682
+ * Base64-encoded audio bytes. This must be in the format specified by the
683
+ * `input_audio_format` field in the session configuration.
684
+ */
685
+ audio: string;
686
+ /**
687
+ * The event type, must be `input_audio_buffer.append`.
688
+ */
689
+ type: 'input_audio_buffer.append';
690
+ /**
691
+ * Optional client-generated ID used to identify this event.
692
+ */
693
+ event_id?: string;
694
+ }
695
+ /**
696
+ * Send this event to clear the audio bytes in the buffer. The server will respond
697
+ * with an `input_audio_buffer.cleared` event.
698
+ */
699
+ export interface InputAudioBufferClearEvent {
700
+ /**
701
+ * The event type, must be `input_audio_buffer.clear`.
702
+ */
703
+ type: 'input_audio_buffer.clear';
704
+ /**
705
+ * Optional client-generated ID used to identify this event.
706
+ */
707
+ event_id?: string;
708
+ }
709
+ /**
710
+ * Returned when the input audio buffer is cleared by the client with a
711
+ * `input_audio_buffer.clear` event.
712
+ */
713
+ export interface InputAudioBufferClearedEvent {
714
+ /**
715
+ * The unique ID of the server event.
716
+ */
717
+ event_id: string;
718
+ /**
719
+ * The event type, must be `input_audio_buffer.cleared`.
720
+ */
721
+ type: 'input_audio_buffer.cleared';
722
+ }
723
+ /**
724
+ * Send this event to commit the user input audio buffer, which will create a new
725
+ * user message item in the conversation. This event will produce an error if the
726
+ * input audio buffer is empty. When in Server VAD mode, the client does not need
727
+ * to send this event, the server will commit the audio buffer automatically.
728
+ *
729
+ * Committing the input audio buffer will trigger input audio transcription (if
730
+ * enabled in session configuration), but it will not create a response from the
731
+ * model. The server will respond with an `input_audio_buffer.committed` event.
732
+ */
733
+ export interface InputAudioBufferCommitEvent {
734
+ /**
735
+ * The event type, must be `input_audio_buffer.commit`.
736
+ */
737
+ type: 'input_audio_buffer.commit';
738
+ /**
739
+ * Optional client-generated ID used to identify this event.
740
+ */
741
+ event_id?: string;
742
+ }
743
+ /**
744
+ * Returned when an input audio buffer is committed, either by the client or
745
+ * automatically in server VAD mode. The `item_id` property is the ID of the user
746
+ * message item that will be created, thus a `conversation.item.created` event will
747
+ * also be sent to the client.
748
+ */
749
+ export interface InputAudioBufferCommittedEvent {
750
+ /**
751
+ * The unique ID of the server event.
752
+ */
753
+ event_id: string;
754
+ /**
755
+ * The ID of the user message item that will be created.
756
+ */
757
+ item_id: string;
758
+ /**
759
+ * The event type, must be `input_audio_buffer.committed`.
760
+ */
761
+ type: 'input_audio_buffer.committed';
762
+ /**
763
+ * The ID of the preceding item after which the new item will be inserted. Can be
764
+ * `null` if the item has no predecessor.
765
+ */
766
+ previous_item_id?: string | null;
767
+ }
768
+ /**
769
+ * **SIP Only:** Returned when an DTMF event is received. A DTMF event is a message
770
+ * that represents a telephone keypad press (0–9, \*, #, A–D). The `event` property
771
+ * is the keypad that the user press. The `received_at` is the UTC Unix Timestamp
772
+ * that the server received the event.
773
+ */
774
+ export interface InputAudioBufferDtmfEventReceivedEvent {
775
+ /**
776
+ * The telephone keypad that was pressed by the user.
777
+ */
778
+ event: string;
779
+ /**
780
+ * UTC Unix Timestamp when DTMF Event was received by server.
781
+ */
782
+ received_at: number;
783
+ /**
784
+ * The event type, must be `input_audio_buffer.dtmf_event_received`.
785
+ */
786
+ type: 'input_audio_buffer.dtmf_event_received';
787
+ }
788
+ /**
789
+ * Sent by the server when in `server_vad` mode to indicate that speech has been
790
+ * detected in the audio buffer. This can happen any time audio is added to the
791
+ * buffer (unless speech is already detected). The client may want to use this
792
+ * event to interrupt audio playback or provide visual feedback to the user.
793
+ *
794
+ * The client should expect to receive a `input_audio_buffer.speech_stopped` event
795
+ * when speech stops. The `item_id` property is the ID of the user message item
796
+ * that will be created when speech stops and will also be included in the
797
+ * `input_audio_buffer.speech_stopped` event (unless the client manually commits
798
+ * the audio buffer during VAD activation).
799
+ */
800
+ export interface InputAudioBufferSpeechStartedEvent {
801
+ /**
802
+ * Milliseconds from the start of all audio written to the buffer during the
803
+ * session when speech was first detected. This will correspond to the beginning of
804
+ * audio sent to the model, and thus includes the `prefix_padding_ms` configured in
805
+ * the Session.
806
+ */
807
+ audio_start_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 when speech stops.
814
+ */
815
+ item_id: string;
816
+ /**
817
+ * The event type, must be `input_audio_buffer.speech_started`.
818
+ */
819
+ type: 'input_audio_buffer.speech_started';
820
+ }
821
+ /**
822
+ * Returned in `server_vad` mode when the server detects the end of speech in the
823
+ * audio buffer. The server will also send an `conversation.item.created` event
824
+ * with the user message item that is created from the audio buffer.
825
+ */
826
+ export interface InputAudioBufferSpeechStoppedEvent {
827
+ /**
828
+ * Milliseconds since the session started when speech stopped. This will correspond
829
+ * to the end of audio sent to the model, and thus includes the
830
+ * `min_silence_duration_ms` configured in the Session.
831
+ */
832
+ audio_end_ms: number;
833
+ /**
834
+ * The unique ID of the server event.
835
+ */
836
+ event_id: string;
837
+ /**
838
+ * The ID of the user message item that will be created.
839
+ */
840
+ item_id: string;
841
+ /**
842
+ * The event type, must be `input_audio_buffer.speech_stopped`.
843
+ */
844
+ type: 'input_audio_buffer.speech_stopped';
845
+ }
846
+ /**
847
+ * Returned when the Server VAD timeout is triggered for the input audio buffer.
848
+ * This is configured with `idle_timeout_ms` in the `turn_detection` settings of
849
+ * the session, and it indicates that there hasn't been any speech detected for the
850
+ * configured duration.
851
+ *
852
+ * The `audio_start_ms` and `audio_end_ms` fields indicate the segment of audio
853
+ * after the last model response up to the triggering time, as an offset from the
854
+ * beginning of audio written to the input audio buffer. This means it demarcates
855
+ * the segment of audio that was silent and the difference between the start and
856
+ * end values will roughly match the configured timeout.
857
+ *
858
+ * The empty audio will be committed to the conversation as an `input_audio` item
859
+ * (there will be a `input_audio_buffer.committed` event) and a model response will
860
+ * be generated. There may be speech that didn't trigger VAD but is still detected
861
+ * by the model, so the model may respond with something relevant to the
862
+ * conversation or a prompt to continue speaking.
863
+ */
864
+ export interface InputAudioBufferTimeoutTriggered {
865
+ /**
866
+ * Millisecond offset of audio written to the input audio buffer at the time the
867
+ * timeout was triggered.
868
+ */
869
+ audio_end_ms: number;
870
+ /**
871
+ * Millisecond offset of audio written to the input audio buffer that was after the
872
+ * playback time of the last model response.
873
+ */
874
+ audio_start_ms: number;
875
+ /**
876
+ * The unique ID of the server event.
877
+ */
878
+ event_id: string;
879
+ /**
880
+ * The ID of the item associated with this segment.
881
+ */
882
+ item_id: string;
883
+ /**
884
+ * The event type, must be `input_audio_buffer.timeout_triggered`.
885
+ */
886
+ type: 'input_audio_buffer.timeout_triggered';
887
+ }
888
+ /**
889
+ * A log probability object.
890
+ */
891
+ export interface LogProbProperties {
892
+ /**
893
+ * The token that was used to generate the log probability.
894
+ */
895
+ token: string;
896
+ /**
897
+ * The bytes that were used to generate the log probability.
898
+ */
899
+ bytes: Array<number>;
900
+ /**
901
+ * The log probability of the token.
902
+ */
903
+ logprob: number;
904
+ }
905
+ /**
906
+ * Returned when listing MCP tools has completed for an item.
907
+ */
908
+ export interface McpListToolsCompleted {
909
+ /**
910
+ * The unique ID of the server event.
911
+ */
912
+ event_id: string;
913
+ /**
914
+ * The ID of the MCP list tools item.
915
+ */
916
+ item_id: string;
917
+ /**
918
+ * The event type, must be `mcp_list_tools.completed`.
919
+ */
920
+ type: 'mcp_list_tools.completed';
921
+ }
922
+ /**
923
+ * Returned when listing MCP tools has failed for an item.
924
+ */
925
+ export interface McpListToolsFailed {
926
+ /**
927
+ * The unique ID of the server event.
928
+ */
929
+ event_id: string;
930
+ /**
931
+ * The ID of the MCP list tools item.
932
+ */
933
+ item_id: string;
934
+ /**
935
+ * The event type, must be `mcp_list_tools.failed`.
936
+ */
937
+ type: 'mcp_list_tools.failed';
938
+ }
939
+ /**
940
+ * Returned when listing MCP tools is in progress for an item.
941
+ */
942
+ export interface McpListToolsInProgress {
943
+ /**
944
+ * The unique ID of the server event.
945
+ */
946
+ event_id: string;
947
+ /**
948
+ * The ID of the MCP list tools item.
949
+ */
950
+ item_id: string;
951
+ /**
952
+ * The event type, must be `mcp_list_tools.in_progress`.
953
+ */
954
+ type: 'mcp_list_tools.in_progress';
955
+ }
956
+ /**
957
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
958
+ * headphones, `far_field` is for far-field microphones such as laptop or
959
+ * conference room microphones.
960
+ */
961
+ export type NoiseReductionType = 'near_field' | 'far_field';
962
+ /**
963
+ * **WebRTC/SIP Only:** Emit to cut off the current audio response. This will
964
+ * trigger the server to stop generating audio and emit a
965
+ * `output_audio_buffer.cleared` event. This event should be preceded by a
966
+ * `response.cancel` client event to stop the generation of the current response.
967
+ * [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
968
+ */
969
+ export interface OutputAudioBufferClearEvent {
970
+ /**
971
+ * The event type, must be `output_audio_buffer.clear`.
972
+ */
973
+ type: 'output_audio_buffer.clear';
974
+ /**
975
+ * The unique ID of the client event used for error handling.
976
+ */
977
+ event_id?: string;
978
+ }
979
+ /**
980
+ * Emitted at the beginning of a Response to indicate the updated rate limits. When
981
+ * a Response is created some tokens will be "reserved" for the output tokens, the
982
+ * rate limits shown here reflect that reservation, which is then adjusted
983
+ * accordingly once the Response is completed.
984
+ */
985
+ export interface RateLimitsUpdatedEvent {
986
+ /**
987
+ * The unique ID of the server event.
988
+ */
989
+ event_id: string;
990
+ /**
991
+ * List of rate limit information.
992
+ */
993
+ rate_limits: Array<RateLimitsUpdatedEvent.RateLimit>;
994
+ /**
995
+ * The event type, must be `rate_limits.updated`.
996
+ */
997
+ type: 'rate_limits.updated';
998
+ }
999
+ export declare namespace RateLimitsUpdatedEvent {
1000
+ interface RateLimit {
1001
+ /**
1002
+ * The maximum allowed value for the rate limit.
1003
+ */
1004
+ limit?: number;
1005
+ /**
1006
+ * The name of the rate limit (`requests`, `tokens`).
1007
+ */
1008
+ name?: 'requests' | 'tokens';
1009
+ /**
1010
+ * The remaining value before the limit is reached.
1011
+ */
1012
+ remaining?: number;
1013
+ /**
1014
+ * Seconds until the rate limit resets.
1015
+ */
1016
+ reset_seconds?: number;
1017
+ }
1018
+ }
1019
+ /**
1020
+ * Configuration for input and output audio.
1021
+ */
1022
+ export interface RealtimeAudioConfig {
1023
+ input?: RealtimeAudioConfigInput;
1024
+ output?: RealtimeAudioConfigOutput;
1025
+ }
1026
+ export interface RealtimeAudioConfigInput {
1027
+ /**
1028
+ * The format of the input audio.
1029
+ */
1030
+ format?: RealtimeAudioFormats;
1031
+ /**
1032
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
1033
+ * off. Noise reduction filters audio added to the input audio buffer before it is
1034
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
1035
+ * detection accuracy (reducing false positives) and model performance by improving
1036
+ * perception of the input audio.
1037
+ */
1038
+ noise_reduction?: RealtimeAudioConfigInput.NoiseReduction;
1039
+ /**
1040
+ * Configuration for input audio transcription, defaults to off and can be set to
1041
+ * `null` to turn off once on. Input audio transcription is not native to the
1042
+ * model, since the model consumes audio directly. Transcription runs
1043
+ * asynchronously through
1044
+ * [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
1045
+ * and should be treated as guidance of input audio content rather than precisely
1046
+ * what the model heard. The client can optionally set the language and prompt for
1047
+ * transcription, these offer additional guidance to the transcription service.
1048
+ */
1049
+ transcription?: AudioTranscription;
1050
+ /**
1051
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
1052
+ * set to `null` to turn off, in which case the client must manually trigger model
1053
+ * response.
1054
+ *
1055
+ * Server VAD means that the model will detect the start and end of speech based on
1056
+ * audio volume and respond at the end of user speech.
1057
+ *
1058
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
1059
+ * with VAD) to semantically estimate whether the user has finished speaking, then
1060
+ * dynamically sets a timeout based on this probability. For example, if user audio
1061
+ * trails off with "uhhm", the model will score a low probability of turn end and
1062
+ * wait longer for the user to continue speaking. This can be useful for more
1063
+ * natural conversations, but may have a higher latency.
1064
+ *
1065
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
1066
+ * `null`; VAD is not supported.
1067
+ */
1068
+ turn_detection?: RealtimeAudioInputTurnDetection | null;
1069
+ }
1070
+ export declare namespace RealtimeAudioConfigInput {
1071
+ /**
1072
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
1073
+ * off. Noise reduction filters audio added to the input audio buffer before it is
1074
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
1075
+ * detection accuracy (reducing false positives) and model performance by improving
1076
+ * perception of the input audio.
1077
+ */
1078
+ interface NoiseReduction {
1079
+ /**
1080
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
1081
+ * headphones, `far_field` is for far-field microphones such as laptop or
1082
+ * conference room microphones.
1083
+ */
1084
+ type?: RealtimeAPI.NoiseReductionType;
1085
+ }
1086
+ }
1087
+ export interface RealtimeAudioConfigOutput {
1088
+ /**
1089
+ * The format of the output audio.
1090
+ */
1091
+ format?: RealtimeAudioFormats;
1092
+ /**
1093
+ * The speed of the model's spoken response as a multiple of the original speed.
1094
+ * 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed.
1095
+ * This value can only be changed in between model turns, not while a response is
1096
+ * in progress.
1097
+ *
1098
+ * This parameter is a post-processing adjustment to the audio after it is
1099
+ * generated, it's also possible to prompt the model to speak faster or slower.
1100
+ */
1101
+ speed?: number;
1102
+ /**
1103
+ * The voice the model uses to respond. Supported built-in voices are `alloy`,
1104
+ * `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
1105
+ * `cedar`. You may also provide a custom voice object with an `id`, for example
1106
+ * `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
1107
+ * model has responded with audio at least once. We recommend `marin` and `cedar`
1108
+ * for best quality.
1109
+ */
1110
+ voice?: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | RealtimeAudioConfigOutput.ID;
1111
+ }
1112
+ export declare namespace RealtimeAudioConfigOutput {
1113
+ /**
1114
+ * Custom voice reference.
1115
+ */
1116
+ interface ID {
1117
+ /**
1118
+ * The custom voice ID, e.g. `voice_1234`.
1119
+ */
1120
+ id: string;
1121
+ }
1122
+ }
1123
+ /**
1124
+ * The PCM audio format. Only a 24kHz sample rate is supported.
1125
+ */
1126
+ export type RealtimeAudioFormats = RealtimeAudioFormats.AudioPCM | RealtimeAudioFormats.AudioPCMU | RealtimeAudioFormats.AudioPCMA;
1127
+ export declare namespace RealtimeAudioFormats {
1128
+ /**
1129
+ * The PCM audio format. Only a 24kHz sample rate is supported.
1130
+ */
1131
+ interface AudioPCM {
1132
+ /**
1133
+ * The sample rate of the audio. Always `24000`.
1134
+ */
1135
+ rate?: 24000;
1136
+ /**
1137
+ * The audio format. Always `audio/pcm`.
1138
+ */
1139
+ type?: 'audio/pcm';
1140
+ }
1141
+ /**
1142
+ * The G.711 μ-law format.
1143
+ */
1144
+ interface AudioPCMU {
1145
+ /**
1146
+ * The audio format. Always `audio/pcmu`.
1147
+ */
1148
+ type?: 'audio/pcmu';
1149
+ }
1150
+ /**
1151
+ * The G.711 A-law format.
1152
+ */
1153
+ interface AudioPCMA {
1154
+ /**
1155
+ * The audio format. Always `audio/pcma`.
1156
+ */
1157
+ type?: 'audio/pcma';
1158
+ }
1159
+ }
1160
+ /**
1161
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
1162
+ * set to `null` to turn off, in which case the client must manually trigger model
1163
+ * response.
1164
+ *
1165
+ * Server VAD means that the model will detect the start and end of speech based on
1166
+ * audio volume and respond at the end of user speech.
1167
+ *
1168
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
1169
+ * with VAD) to semantically estimate whether the user has finished speaking, then
1170
+ * dynamically sets a timeout based on this probability. For example, if user audio
1171
+ * trails off with "uhhm", the model will score a low probability of turn end and
1172
+ * wait longer for the user to continue speaking. This can be useful for more
1173
+ * natural conversations, but may have a higher latency.
1174
+ *
1175
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
1176
+ * `null`; VAD is not supported.
1177
+ */
1178
+ export type RealtimeAudioInputTurnDetection = RealtimeAudioInputTurnDetection.ServerVad | RealtimeAudioInputTurnDetection.SemanticVad;
1179
+ export declare namespace RealtimeAudioInputTurnDetection {
1180
+ /**
1181
+ * Server-side voice activity detection (VAD) which flips on when user speech is
1182
+ * detected and off after a period of silence.
1183
+ */
1184
+ interface ServerVad {
1185
+ /**
1186
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
1187
+ */
1188
+ type: 'server_vad';
1189
+ /**
1190
+ * Whether or not to automatically generate a response when a VAD stop event
1191
+ * occurs. If `interrupt_response` is set to `false` this may fail to create a
1192
+ * response if the model is already responding.
1193
+ *
1194
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
1195
+ * will never respond automatically but VAD events will still be emitted.
1196
+ */
1197
+ create_response?: boolean;
1198
+ /**
1199
+ * Optional timeout after which a model response will be triggered automatically.
1200
+ * This is useful for situations in which a long pause from the user is unexpected,
1201
+ * such as a phone call. The model will effectively prompt the user to continue the
1202
+ * conversation based on the current context.
1203
+ *
1204
+ * The timeout value will be applied after the last model response's audio has
1205
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
1206
+ * duration.
1207
+ *
1208
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
1209
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
1210
+ * only supported for `server_vad` mode.
1211
+ */
1212
+ idle_timeout_ms?: number | null;
1213
+ /**
1214
+ * Whether or not to automatically interrupt (cancel) any ongoing response with
1215
+ * output to the default conversation (i.e. `conversation` of `auto`) when a VAD
1216
+ * start event occurs. If `true` then the response will be cancelled, otherwise it
1217
+ * will continue until complete.
1218
+ *
1219
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
1220
+ * will never respond automatically but VAD events will still be emitted.
1221
+ */
1222
+ interrupt_response?: boolean;
1223
+ /**
1224
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
1225
+ * detected speech (in milliseconds). Defaults to 300ms.
1226
+ */
1227
+ prefix_padding_ms?: number;
1228
+ /**
1229
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
1230
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
1231
+ * more quickly, but may jump in on short pauses from the user.
1232
+ */
1233
+ silence_duration_ms?: number;
1234
+ /**
1235
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
1236
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
1237
+ * model, and thus might perform better in noisy environments.
1238
+ */
1239
+ threshold?: number;
1240
+ }
1241
+ /**
1242
+ * Server-side semantic turn detection which uses a model to determine when the
1243
+ * user has finished speaking.
1244
+ */
1245
+ interface SemanticVad {
1246
+ /**
1247
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
1248
+ */
1249
+ type: 'semantic_vad';
1250
+ /**
1251
+ * Whether or not to automatically generate a response when a VAD stop event
1252
+ * occurs.
1253
+ */
1254
+ create_response?: boolean;
1255
+ /**
1256
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
1257
+ * will wait longer for the user to continue speaking, `high` will respond more
1258
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
1259
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
1260
+ */
1261
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
1262
+ /**
1263
+ * Whether or not to automatically interrupt any ongoing response with output to
1264
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
1265
+ * occurs.
1266
+ */
1267
+ interrupt_response?: boolean;
1268
+ }
1269
+ }
1270
+ /**
1271
+ * A realtime client event.
1272
+ */
1273
+ export type RealtimeClientEvent = ConversationItemCreateEvent | ConversationItemDeleteEvent | ConversationItemRetrieveEvent | ConversationItemTruncateEvent | InputAudioBufferAppendEvent | InputAudioBufferClearEvent | OutputAudioBufferClearEvent | InputAudioBufferCommitEvent | ResponseCancelEvent | ResponseCreateEvent | SessionUpdateEvent;
1274
+ /**
1275
+ * An assistant message item in a Realtime conversation.
1276
+ */
1277
+ export interface RealtimeConversationItemAssistantMessage {
1278
+ /**
1279
+ * The content of the message.
1280
+ */
1281
+ content: Array<RealtimeConversationItemAssistantMessage.Content>;
1282
+ /**
1283
+ * The role of the message sender. Always `assistant`.
1284
+ */
1285
+ role: 'assistant';
1286
+ /**
1287
+ * The type of the item. Always `message`.
1288
+ */
1289
+ type: 'message';
1290
+ /**
1291
+ * The unique ID of the item. This may be provided by the client or generated by
1292
+ * the server.
1293
+ */
1294
+ id?: string;
1295
+ /**
1296
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1297
+ * when creating a new item.
1298
+ */
1299
+ object?: 'realtime.item';
1300
+ /**
1301
+ * The status of the item. Has no effect on the conversation.
1302
+ */
1303
+ status?: 'completed' | 'incomplete' | 'in_progress';
1304
+ }
1305
+ export declare namespace RealtimeConversationItemAssistantMessage {
1306
+ interface Content {
1307
+ /**
1308
+ * Base64-encoded audio bytes, these will be parsed as the format specified in the
1309
+ * session output audio type configuration. This defaults to PCM 16-bit 24kHz mono
1310
+ * if not specified.
1311
+ */
1312
+ audio?: string;
1313
+ /**
1314
+ * The text content.
1315
+ */
1316
+ text?: string;
1317
+ /**
1318
+ * The transcript of the audio content, this will always be present if the output
1319
+ * type is `audio`.
1320
+ */
1321
+ transcript?: string;
1322
+ /**
1323
+ * The content type, `output_text` or `output_audio` depending on the session
1324
+ * `output_modalities` configuration.
1325
+ */
1326
+ type?: 'output_text' | 'output_audio';
1327
+ }
1328
+ }
1329
+ /**
1330
+ * A function call item in a Realtime conversation.
1331
+ */
1332
+ export interface RealtimeConversationItemFunctionCall {
1333
+ /**
1334
+ * The arguments of the function call. This is a JSON-encoded string representing
1335
+ * the arguments passed to the function, for example
1336
+ * `{"arg1": "value1", "arg2": 42}`.
1337
+ */
1338
+ arguments: string;
1339
+ /**
1340
+ * The name of the function being called.
1341
+ */
1342
+ name: string;
1343
+ /**
1344
+ * The type of the item. Always `function_call`.
1345
+ */
1346
+ type: 'function_call';
1347
+ /**
1348
+ * The unique ID of the item. This may be provided by the client or generated by
1349
+ * the server.
1350
+ */
1351
+ id?: string;
1352
+ /**
1353
+ * The ID of the function call.
1354
+ */
1355
+ call_id?: string;
1356
+ /**
1357
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1358
+ * when creating a new item.
1359
+ */
1360
+ object?: 'realtime.item';
1361
+ /**
1362
+ * The status of the item. Has no effect on the conversation.
1363
+ */
1364
+ status?: 'completed' | 'incomplete' | 'in_progress';
1365
+ }
1366
+ /**
1367
+ * A function call output item in a Realtime conversation.
1368
+ */
1369
+ export interface RealtimeConversationItemFunctionCallOutput {
1370
+ /**
1371
+ * The ID of the function call this output is for.
1372
+ */
1373
+ call_id: string;
1374
+ /**
1375
+ * The output of the function call, this is free text and can contain any
1376
+ * information or simply be empty.
1377
+ */
1378
+ output: string;
1379
+ /**
1380
+ * The type of the item. Always `function_call_output`.
1381
+ */
1382
+ type: 'function_call_output';
1383
+ /**
1384
+ * The unique ID of the item. This may be provided by the client or generated by
1385
+ * the server.
1386
+ */
1387
+ id?: string;
1388
+ /**
1389
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1390
+ * when creating a new item.
1391
+ */
1392
+ object?: 'realtime.item';
1393
+ /**
1394
+ * The status of the item. Has no effect on the conversation.
1395
+ */
1396
+ status?: 'completed' | 'incomplete' | 'in_progress';
1397
+ }
1398
+ /**
1399
+ * A system message in a Realtime conversation can be used to provide additional
1400
+ * context or instructions to the model. This is similar but distinct from the
1401
+ * instruction prompt provided at the start of a conversation, as system messages
1402
+ * can be added at any point in the conversation. For major changes to the
1403
+ * conversation's behavior, use instructions, but for smaller updates (e.g. "the
1404
+ * user is now asking about a different topic"), use system messages.
1405
+ */
1406
+ export interface RealtimeConversationItemSystemMessage {
1407
+ /**
1408
+ * The content of the message.
1409
+ */
1410
+ content: Array<RealtimeConversationItemSystemMessage.Content>;
1411
+ /**
1412
+ * The role of the message sender. Always `system`.
1413
+ */
1414
+ role: 'system';
1415
+ /**
1416
+ * The type of the item. Always `message`.
1417
+ */
1418
+ type: 'message';
1419
+ /**
1420
+ * The unique ID of the item. This may be provided by the client or generated by
1421
+ * the server.
1422
+ */
1423
+ id?: string;
1424
+ /**
1425
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1426
+ * when creating a new item.
1427
+ */
1428
+ object?: 'realtime.item';
1429
+ /**
1430
+ * The status of the item. Has no effect on the conversation.
1431
+ */
1432
+ status?: 'completed' | 'incomplete' | 'in_progress';
1433
+ }
1434
+ export declare namespace RealtimeConversationItemSystemMessage {
1435
+ interface Content {
1436
+ /**
1437
+ * The text content.
1438
+ */
1439
+ text?: string;
1440
+ /**
1441
+ * The content type. Always `input_text` for system messages.
1442
+ */
1443
+ type?: 'input_text';
1444
+ }
1445
+ }
1446
+ /**
1447
+ * A user message item in a Realtime conversation.
1448
+ */
1449
+ export interface RealtimeConversationItemUserMessage {
1450
+ /**
1451
+ * The content of the message.
1452
+ */
1453
+ content: Array<RealtimeConversationItemUserMessage.Content>;
1454
+ /**
1455
+ * The role of the message sender. Always `user`.
1456
+ */
1457
+ role: 'user';
1458
+ /**
1459
+ * The type of the item. Always `message`.
1460
+ */
1461
+ type: 'message';
1462
+ /**
1463
+ * The unique ID of the item. This may be provided by the client or generated by
1464
+ * the server.
1465
+ */
1466
+ id?: string;
1467
+ /**
1468
+ * Identifier for the API object being returned - always `realtime.item`. Optional
1469
+ * when creating a new item.
1470
+ */
1471
+ object?: 'realtime.item';
1472
+ /**
1473
+ * The status of the item. Has no effect on the conversation.
1474
+ */
1475
+ status?: 'completed' | 'incomplete' | 'in_progress';
1476
+ }
1477
+ export declare namespace RealtimeConversationItemUserMessage {
1478
+ interface Content {
1479
+ /**
1480
+ * Base64-encoded audio bytes (for `input_audio`), these will be parsed as the
1481
+ * format specified in the session input audio type configuration. This defaults to
1482
+ * PCM 16-bit 24kHz mono if not specified.
1483
+ */
1484
+ audio?: string;
1485
+ /**
1486
+ * The detail level of the image (for `input_image`). `auto` will default to
1487
+ * `high`.
1488
+ */
1489
+ detail?: 'auto' | 'low' | 'high';
1490
+ /**
1491
+ * Base64-encoded image bytes (for `input_image`) as a data URI. For example
1492
+ * `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...`. Supported formats are PNG
1493
+ * and JPEG.
1494
+ */
1495
+ image_url?: string;
1496
+ /**
1497
+ * The text content (for `input_text`).
1498
+ */
1499
+ text?: string;
1500
+ /**
1501
+ * Transcript of the audio (for `input_audio`). This is not sent to the model, but
1502
+ * will be attached to the message item for reference.
1503
+ */
1504
+ transcript?: string;
1505
+ /**
1506
+ * The content type (`input_text`, `input_audio`, or `input_image`).
1507
+ */
1508
+ type?: 'input_text' | 'input_audio' | 'input_image';
1509
+ }
1510
+ }
1511
+ /**
1512
+ * Details of the error.
1513
+ */
1514
+ export interface RealtimeError {
1515
+ /**
1516
+ * A human-readable error message.
1517
+ */
1518
+ message: string;
1519
+ /**
1520
+ * The type of error (e.g., "invalid_request_error", "server_error").
1521
+ */
1522
+ type: string;
1523
+ /**
1524
+ * Error code, if any.
1525
+ */
1526
+ code?: string | null;
1527
+ /**
1528
+ * The event_id of the client event that caused the error, if applicable.
1529
+ */
1530
+ event_id?: string | null;
1531
+ /**
1532
+ * Parameter related to the error, if any.
1533
+ */
1534
+ param?: string | null;
1535
+ }
1536
+ /**
1537
+ * Returned when an error occurs, which could be a client problem or a server
1538
+ * problem. Most errors are recoverable and the session will stay open, we
1539
+ * recommend to implementors to monitor and log error messages by default.
1540
+ */
1541
+ export interface RealtimeErrorEvent {
1542
+ /**
1543
+ * Details of the error.
1544
+ */
1545
+ error: RealtimeError;
1546
+ /**
1547
+ * The unique ID of the server event.
1548
+ */
1549
+ event_id: string;
1550
+ /**
1551
+ * The event type, must be `error`.
1552
+ */
1553
+ type: 'error';
1554
+ }
1555
+ export interface RealtimeFunctionTool {
1556
+ /**
1557
+ * The description of the function, including guidance on when and how to call it,
1558
+ * and guidance about what to tell the user when calling (if anything).
1559
+ */
1560
+ description?: string;
1561
+ /**
1562
+ * The name of the function.
1563
+ */
1564
+ name?: string;
1565
+ /**
1566
+ * Parameters of the function in JSON Schema.
1567
+ */
1568
+ parameters?: unknown;
1569
+ /**
1570
+ * The type of the tool, i.e. `function`.
1571
+ */
1572
+ type?: 'function';
1573
+ }
1574
+ /**
1575
+ * A Realtime item requesting human approval of a tool invocation.
1576
+ */
1577
+ export interface RealtimeMcpApprovalRequest {
1578
+ /**
1579
+ * The unique ID of the approval request.
1580
+ */
1581
+ id: string;
1582
+ /**
1583
+ * A JSON string of arguments for the tool.
1584
+ */
1585
+ arguments: string;
1586
+ /**
1587
+ * The name of the tool to run.
1588
+ */
1589
+ name: string;
1590
+ /**
1591
+ * The label of the MCP server making the request.
1592
+ */
1593
+ server_label: string;
1594
+ /**
1595
+ * The type of the item. Always `mcp_approval_request`.
1596
+ */
1597
+ type: 'mcp_approval_request';
1598
+ }
1599
+ /**
1600
+ * A Realtime item responding to an MCP approval request.
1601
+ */
1602
+ export interface RealtimeMcpApprovalResponse {
1603
+ /**
1604
+ * The unique ID of the approval response.
1605
+ */
1606
+ id: string;
1607
+ /**
1608
+ * The ID of the approval request being answered.
1609
+ */
1610
+ approval_request_id: string;
1611
+ /**
1612
+ * Whether the request was approved.
1613
+ */
1614
+ approve: boolean;
1615
+ /**
1616
+ * The type of the item. Always `mcp_approval_response`.
1617
+ */
1618
+ type: 'mcp_approval_response';
1619
+ /**
1620
+ * Optional reason for the decision.
1621
+ */
1622
+ reason?: string | null;
1623
+ }
1624
+ /**
1625
+ * A Realtime item listing tools available on an MCP server.
1626
+ */
1627
+ export interface RealtimeMcpListTools {
1628
+ /**
1629
+ * The label of the MCP server.
1630
+ */
1631
+ server_label: string;
1632
+ /**
1633
+ * The tools available on the server.
1634
+ */
1635
+ tools: Array<RealtimeMcpListTools.Tool>;
1636
+ /**
1637
+ * The type of the item. Always `mcp_list_tools`.
1638
+ */
1639
+ type: 'mcp_list_tools';
1640
+ /**
1641
+ * The unique ID of the list.
1642
+ */
1643
+ id?: string;
1644
+ }
1645
+ export declare namespace RealtimeMcpListTools {
1646
+ /**
1647
+ * A tool available on an MCP server.
1648
+ */
1649
+ interface Tool {
1650
+ /**
1651
+ * The JSON schema describing the tool's input.
1652
+ */
1653
+ input_schema: unknown;
1654
+ /**
1655
+ * The name of the tool.
1656
+ */
1657
+ name: string;
1658
+ /**
1659
+ * Additional annotations about the tool.
1660
+ */
1661
+ annotations?: unknown | null;
1662
+ /**
1663
+ * The description of the tool.
1664
+ */
1665
+ description?: string | null;
1666
+ }
1667
+ }
1668
+ export interface RealtimeMcpProtocolError {
1669
+ code: number;
1670
+ message: string;
1671
+ type: 'protocol_error';
1672
+ }
1673
+ /**
1674
+ * A Realtime item representing an invocation of a tool on an MCP server.
1675
+ */
1676
+ export interface RealtimeMcpToolCall {
1677
+ /**
1678
+ * The unique ID of the tool call.
1679
+ */
1680
+ id: string;
1681
+ /**
1682
+ * A JSON string of the arguments passed to the tool.
1683
+ */
1684
+ arguments: string;
1685
+ /**
1686
+ * The name of the tool that was run.
1687
+ */
1688
+ name: string;
1689
+ /**
1690
+ * The label of the MCP server running the tool.
1691
+ */
1692
+ server_label: string;
1693
+ /**
1694
+ * The type of the item. Always `mcp_call`.
1695
+ */
1696
+ type: 'mcp_call';
1697
+ /**
1698
+ * The ID of an associated approval request, if any.
1699
+ */
1700
+ approval_request_id?: string | null;
1701
+ /**
1702
+ * The error from the tool call, if any.
1703
+ */
1704
+ error?: RealtimeMcpProtocolError | RealtimeMcpToolExecutionError | RealtimeMcphttpError | null;
1705
+ /**
1706
+ * The output from the tool call.
1707
+ */
1708
+ output?: string | null;
1709
+ }
1710
+ export interface RealtimeMcpToolExecutionError {
1711
+ message: string;
1712
+ type: 'tool_execution_error';
1713
+ }
1714
+ export interface RealtimeMcphttpError {
1715
+ code: number;
1716
+ message: string;
1717
+ type: 'http_error';
1718
+ }
1719
+ /**
1720
+ * Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
1721
+ */
1722
+ export interface RealtimeReasoning {
1723
+ /**
1724
+ * Constrains effort on reasoning for reasoning-capable Realtime models such as
1725
+ * `gpt-realtime-2`.
1726
+ */
1727
+ effort?: RealtimeReasoningEffort;
1728
+ }
1729
+ /**
1730
+ * Constrains effort on reasoning for reasoning-capable Realtime models such as
1731
+ * `gpt-realtime-2`.
1732
+ */
1733
+ export type RealtimeReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh';
1734
+ /**
1735
+ * The response resource.
1736
+ */
1737
+ export interface RealtimeResponse {
1738
+ /**
1739
+ * The unique ID of the response, will look like `resp_1234`.
1740
+ */
1741
+ id?: string;
1742
+ /**
1743
+ * Configuration for audio output.
1744
+ */
1745
+ audio?: RealtimeResponse.Audio;
1746
+ /**
1747
+ * Which conversation the response is added to, determined by the `conversation`
1748
+ * field in the `response.create` event. If `auto`, the response will be added to
1749
+ * the default conversation and the value of `conversation_id` will be an id like
1750
+ * `conv_1234`. If `none`, the response will not be added to any conversation and
1751
+ * the value of `conversation_id` will be `null`. If responses are being triggered
1752
+ * automatically by VAD the response will be added to the default conversation
1753
+ */
1754
+ conversation_id?: string;
1755
+ /**
1756
+ * Maximum number of output tokens for a single assistant response, inclusive of
1757
+ * tool calls, that was used in this response.
1758
+ */
1759
+ max_output_tokens?: number | 'inf';
1760
+ /**
1761
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
1762
+ * for storing additional information about the object in a structured format, and
1763
+ * querying for objects via API or the dashboard.
1764
+ *
1765
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
1766
+ * a maximum length of 512 characters.
1767
+ */
1768
+ metadata?: Shared.Metadata | null;
1769
+ /**
1770
+ * The object type, must be `realtime.response`.
1771
+ */
1772
+ object?: 'realtime.response';
1773
+ /**
1774
+ * The list of output items generated by the response.
1775
+ */
1776
+ output?: Array<ConversationItem>;
1777
+ /**
1778
+ * The set of modalities the model used to respond, currently the only possible
1779
+ * values are `[\"audio\"]`, `[\"text\"]`. Audio output always include a text
1780
+ * transcript. Setting the output to mode `text` will disable audio output from the
1781
+ * model.
1782
+ */
1783
+ output_modalities?: Array<'text' | 'audio'>;
1784
+ /**
1785
+ * The final status of the response (`completed`, `cancelled`, `failed`, or
1786
+ * `incomplete`, `in_progress`).
1787
+ */
1788
+ status?: 'completed' | 'cancelled' | 'failed' | 'incomplete' | 'in_progress';
1789
+ /**
1790
+ * Additional details about the status.
1791
+ */
1792
+ status_details?: RealtimeResponseStatus;
1793
+ /**
1794
+ * Usage statistics for the Response, this will correspond to billing. A Realtime
1795
+ * API session will maintain a conversation context and append new Items to the
1796
+ * Conversation, thus output from previous turns (text and audio tokens) will
1797
+ * become the input for later turns.
1798
+ */
1799
+ usage?: RealtimeResponseUsage;
1800
+ }
1801
+ export declare namespace RealtimeResponse {
1802
+ /**
1803
+ * Configuration for audio output.
1804
+ */
1805
+ interface Audio {
1806
+ output?: Audio.Output;
1807
+ }
1808
+ namespace Audio {
1809
+ interface Output {
1810
+ /**
1811
+ * The format of the output audio.
1812
+ */
1813
+ format?: RealtimeAPI.RealtimeAudioFormats;
1814
+ /**
1815
+ * The voice the model uses to respond. Voice cannot be changed during the session
1816
+ * once the model has responded with audio at least once. Current voice options are
1817
+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`,
1818
+ * and `cedar`. We recommend `marin` and `cedar` for best quality.
1819
+ */
1820
+ voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar';
1821
+ }
1822
+ }
1823
+ }
1824
+ /**
1825
+ * Configuration for audio input and output.
1826
+ */
1827
+ export interface RealtimeResponseCreateAudioOutput {
1828
+ output?: RealtimeResponseCreateAudioOutput.Output;
1829
+ }
1830
+ export declare namespace RealtimeResponseCreateAudioOutput {
1831
+ interface Output {
1832
+ /**
1833
+ * The format of the output audio.
1834
+ */
1835
+ format?: RealtimeAPI.RealtimeAudioFormats;
1836
+ /**
1837
+ * The voice the model uses to respond. Supported built-in voices are `alloy`,
1838
+ * `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`, and
1839
+ * `cedar`. You may also provide a custom voice object with an `id`, for example
1840
+ * `{ "id": "voice_1234" }`. Voice cannot be changed during the session once the
1841
+ * model has responded with audio at least once. We recommend `marin` and `cedar`
1842
+ * for best quality.
1843
+ */
1844
+ voice?: string | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar' | Output.ID;
1845
+ }
1846
+ namespace Output {
1847
+ /**
1848
+ * Custom voice reference.
1849
+ */
1850
+ interface ID {
1851
+ /**
1852
+ * The custom voice ID, e.g. `voice_1234`.
1853
+ */
1854
+ id: string;
1855
+ }
1856
+ }
1857
+ }
1858
+ /**
1859
+ * Give the model access to additional tools via remote Model Context Protocol
1860
+ * (MCP) servers.
1861
+ * [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
1862
+ */
1863
+ export interface RealtimeResponseCreateMcpTool {
1864
+ /**
1865
+ * A label for this MCP server, used to identify it in tool calls.
1866
+ */
1867
+ server_label: string;
1868
+ /**
1869
+ * The type of the MCP tool. Always `mcp`.
1870
+ */
1871
+ type: 'mcp';
1872
+ /**
1873
+ * The tool invocation context(s).
1874
+ */
1875
+ allowed_callers?: Array<'direct' | 'programmatic'> | null;
1876
+ /**
1877
+ * List of allowed tool names or a filter object.
1878
+ */
1879
+ allowed_tools?: Array<string> | RealtimeResponseCreateMcpTool.McpToolFilter | null;
1880
+ /**
1881
+ * An OAuth access token that can be used with a remote MCP server, either with a
1882
+ * custom MCP server URL or a service connector. Your application must handle the
1883
+ * OAuth authorization flow and provide the token here.
1884
+ */
1885
+ authorization?: string;
1886
+ /**
1887
+ * Identifier for service connectors, like those available in ChatGPT. One of
1888
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
1889
+ * service connectors
1890
+ * [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
1891
+ *
1892
+ * Currently supported `connector_id` values are:
1893
+ *
1894
+ * - Dropbox: `connector_dropbox`
1895
+ * - Gmail: `connector_gmail`
1896
+ * - Google Calendar: `connector_googlecalendar`
1897
+ * - Google Drive: `connector_googledrive`
1898
+ * - Microsoft Teams: `connector_microsoftteams`
1899
+ * - Outlook Calendar: `connector_outlookcalendar`
1900
+ * - Outlook Email: `connector_outlookemail`
1901
+ * - SharePoint: `connector_sharepoint`
1902
+ */
1903
+ connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
1904
+ /**
1905
+ * Whether this MCP tool is deferred and discovered via tool search.
1906
+ */
1907
+ defer_loading?: boolean;
1908
+ /**
1909
+ * Optional HTTP headers to send to the MCP server. Use for authentication or other
1910
+ * purposes.
1911
+ */
1912
+ headers?: {
1913
+ [key: string]: string;
1914
+ } | null;
1915
+ /**
1916
+ * Specify which of the MCP server's tools require approval.
1917
+ */
1918
+ require_approval?: RealtimeResponseCreateMcpTool.McpToolApprovalFilter | 'always' | 'never' | null;
1919
+ /**
1920
+ * Optional description of the MCP server, used to provide more context.
1921
+ */
1922
+ server_description?: string;
1923
+ /**
1924
+ * The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
1925
+ * must be provided.
1926
+ */
1927
+ server_url?: string;
1928
+ /**
1929
+ * The Secure MCP Tunnel ID to use instead of a direct server URL. One of
1930
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided.
1931
+ */
1932
+ tunnel_id?: string;
1933
+ }
1934
+ export declare namespace RealtimeResponseCreateMcpTool {
1935
+ /**
1936
+ * A filter object to specify which tools are allowed.
1937
+ */
1938
+ interface McpToolFilter {
1939
+ /**
1940
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
1941
+ * is
1942
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
1943
+ * it will match this filter.
1944
+ */
1945
+ read_only?: boolean;
1946
+ /**
1947
+ * List of allowed tool names.
1948
+ */
1949
+ tool_names?: Array<string>;
1950
+ }
1951
+ /**
1952
+ * Specify which of the MCP server's tools require approval. Can be `always`,
1953
+ * `never`, or a filter object associated with tools that require approval.
1954
+ */
1955
+ interface McpToolApprovalFilter {
1956
+ /**
1957
+ * A filter object to specify which tools are allowed.
1958
+ */
1959
+ always?: McpToolApprovalFilter.Always;
1960
+ /**
1961
+ * A filter object to specify which tools are allowed.
1962
+ */
1963
+ never?: McpToolApprovalFilter.Never;
1964
+ }
1965
+ namespace McpToolApprovalFilter {
1966
+ /**
1967
+ * A filter object to specify which tools are allowed.
1968
+ */
1969
+ interface Always {
1970
+ /**
1971
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
1972
+ * is
1973
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
1974
+ * it will match this filter.
1975
+ */
1976
+ read_only?: boolean;
1977
+ /**
1978
+ * List of allowed tool names.
1979
+ */
1980
+ tool_names?: Array<string>;
1981
+ }
1982
+ /**
1983
+ * A filter object to specify which tools are allowed.
1984
+ */
1985
+ interface Never {
1986
+ /**
1987
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
1988
+ * is
1989
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
1990
+ * it will match this filter.
1991
+ */
1992
+ read_only?: boolean;
1993
+ /**
1994
+ * List of allowed tool names.
1995
+ */
1996
+ tool_names?: Array<string>;
1997
+ }
1998
+ }
1999
+ }
2000
+ /**
2001
+ * Create a new Realtime response with these parameters
2002
+ */
2003
+ export interface RealtimeResponseCreateParams {
2004
+ /**
2005
+ * Configuration for audio input and output.
2006
+ */
2007
+ audio?: RealtimeResponseCreateAudioOutput;
2008
+ /**
2009
+ * Controls which conversation the response is added to. Currently supports `auto`
2010
+ * and `none`, with `auto` as the default value. The `auto` value means that the
2011
+ * contents of the response will be added to the default conversation. Set this to
2012
+ * `none` to create an out-of-band response which will not add items to default
2013
+ * conversation.
2014
+ */
2015
+ conversation?: (string & {}) | 'auto' | 'none';
2016
+ /**
2017
+ * Input items to include in the prompt for the model. Using this field creates a
2018
+ * new context for this Response instead of using the default conversation. An
2019
+ * empty array `[]` will clear the context for this Response. Note that this can
2020
+ * include references to items that previously appeared in the session using their
2021
+ * id.
2022
+ */
2023
+ input?: Array<ConversationItem>;
2024
+ /**
2025
+ * The default system instructions (i.e. system message) prepended to model calls.
2026
+ * This field allows the client to guide the model on desired responses. The model
2027
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
2028
+ * "act friendly", "here are examples of good responses") and on audio behavior
2029
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
2030
+ * instructions are not guaranteed to be followed by the model, but they provide
2031
+ * guidance to the model on the desired behavior. Note that the server sets default
2032
+ * instructions which will be used if this field is not set and are visible in the
2033
+ * `session.created` event at the start of the session.
2034
+ */
2035
+ instructions?: string;
2036
+ /**
2037
+ * Maximum number of output tokens for a single assistant response, inclusive of
2038
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
2039
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
2040
+ */
2041
+ max_output_tokens?: number | 'inf';
2042
+ /**
2043
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
2044
+ * for storing additional information about the object in a structured format, and
2045
+ * querying for objects via API or the dashboard.
2046
+ *
2047
+ * Keys are strings with a maximum length of 64 characters. Values are strings with
2048
+ * a maximum length of 512 characters.
2049
+ */
2050
+ metadata?: Shared.Metadata | null;
2051
+ /**
2052
+ * The set of modalities the model used to respond, currently the only possible
2053
+ * values are `[\"audio\"]`, `[\"text\"]`. Audio output always include a text
2054
+ * transcript. Setting the output to mode `text` will disable audio output from the
2055
+ * model.
2056
+ */
2057
+ output_modalities?: Array<'text' | 'audio'>;
2058
+ /**
2059
+ * Whether the model may call multiple tools in parallel. Only supported by
2060
+ * reasoning Realtime models such as `gpt-realtime-2`.
2061
+ */
2062
+ parallel_tool_calls?: boolean;
2063
+ /**
2064
+ * Reference to a prompt template and its variables.
2065
+ * [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
2066
+ */
2067
+ prompt?: ResponsesAPI.ResponsePrompt | null;
2068
+ /**
2069
+ * Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
2070
+ */
2071
+ reasoning?: RealtimeReasoning;
2072
+ /**
2073
+ * How the model chooses tools. Provide one of the string modes or force a specific
2074
+ * function/MCP tool.
2075
+ */
2076
+ tool_choice?: ResponsesAPI.ToolChoiceOptions | ResponsesAPI.ToolChoiceFunction | ResponsesAPI.ToolChoiceMcp;
2077
+ /**
2078
+ * Tools available to the model.
2079
+ */
2080
+ tools?: Array<RealtimeFunctionTool | RealtimeResponseCreateMcpTool>;
2081
+ }
2082
+ /**
2083
+ * Additional details about the status.
2084
+ */
2085
+ export interface RealtimeResponseStatus {
2086
+ /**
2087
+ * A description of the error that caused the response to fail, populated when the
2088
+ * `status` is `failed`.
2089
+ */
2090
+ error?: RealtimeResponseStatus.Error;
2091
+ /**
2092
+ * The reason the Response did not complete. For a `cancelled` Response, one of
2093
+ * `turn_detected` (the server VAD detected a new start of speech) or
2094
+ * `client_cancelled` (the client sent a cancel event). For an `incomplete`
2095
+ * Response, one of `max_output_tokens` or `content_filter` (the server-side safety
2096
+ * filter activated and cut off the response).
2097
+ */
2098
+ reason?: 'turn_detected' | 'client_cancelled' | 'max_output_tokens' | 'content_filter';
2099
+ /**
2100
+ * The type of error that caused the response to fail, corresponding with the
2101
+ * `status` field (`completed`, `cancelled`, `incomplete`, `failed`).
2102
+ */
2103
+ type?: 'completed' | 'cancelled' | 'incomplete' | 'failed';
2104
+ }
2105
+ export declare namespace RealtimeResponseStatus {
2106
+ /**
2107
+ * A description of the error that caused the response to fail, populated when the
2108
+ * `status` is `failed`.
2109
+ */
2110
+ interface Error {
2111
+ /**
2112
+ * Error code, if any.
2113
+ */
2114
+ code?: string;
2115
+ /**
2116
+ * The type of error.
2117
+ */
2118
+ type?: string;
2119
+ }
2120
+ }
2121
+ /**
2122
+ * Usage statistics for the Response, this will correspond to billing. A Realtime
2123
+ * API session will maintain a conversation context and append new Items to the
2124
+ * Conversation, thus output from previous turns (text and audio tokens) will
2125
+ * become the input for later turns.
2126
+ */
2127
+ export interface RealtimeResponseUsage {
2128
+ /**
2129
+ * Details about the input tokens used in the Response. Cached tokens are tokens
2130
+ * from previous turns in the conversation that are included as context for the
2131
+ * current response. Cached tokens here are counted as a subset of input tokens,
2132
+ * meaning input tokens will include cached and uncached tokens.
2133
+ */
2134
+ input_token_details?: RealtimeResponseUsageInputTokenDetails;
2135
+ /**
2136
+ * The number of input tokens used in the Response, including text and audio
2137
+ * tokens.
2138
+ */
2139
+ input_tokens?: number;
2140
+ /**
2141
+ * Details about the output tokens used in the Response.
2142
+ */
2143
+ output_token_details?: RealtimeResponseUsageOutputTokenDetails;
2144
+ /**
2145
+ * The number of output tokens sent in the Response, including text and audio
2146
+ * tokens.
2147
+ */
2148
+ output_tokens?: number;
2149
+ /**
2150
+ * The total number of tokens in the Response including input and output text and
2151
+ * audio tokens.
2152
+ */
2153
+ total_tokens?: number;
2154
+ }
2155
+ /**
2156
+ * Details about the input tokens used in the Response. Cached tokens are tokens
2157
+ * from previous turns in the conversation that are included as context for the
2158
+ * current response. Cached tokens here are counted as a subset of input tokens,
2159
+ * meaning input tokens will include cached and uncached tokens.
2160
+ */
2161
+ export interface RealtimeResponseUsageInputTokenDetails {
2162
+ /**
2163
+ * The number of audio tokens used as input for the Response.
2164
+ */
2165
+ audio_tokens?: number;
2166
+ /**
2167
+ * The number of cached tokens used as input for the Response.
2168
+ */
2169
+ cached_tokens?: number;
2170
+ /**
2171
+ * Details about the cached tokens used as input for the Response.
2172
+ */
2173
+ cached_tokens_details?: RealtimeResponseUsageInputTokenDetails.CachedTokensDetails;
2174
+ /**
2175
+ * The number of image tokens used as input for the Response.
2176
+ */
2177
+ image_tokens?: number;
2178
+ /**
2179
+ * The number of text tokens used as input for the Response.
2180
+ */
2181
+ text_tokens?: number;
2182
+ }
2183
+ export declare namespace RealtimeResponseUsageInputTokenDetails {
2184
+ /**
2185
+ * Details about the cached tokens used as input for the Response.
2186
+ */
2187
+ interface CachedTokensDetails {
2188
+ /**
2189
+ * The number of cached audio tokens used as input for the Response.
2190
+ */
2191
+ audio_tokens?: number;
2192
+ /**
2193
+ * The number of cached image tokens used as input for the Response.
2194
+ */
2195
+ image_tokens?: number;
2196
+ /**
2197
+ * The number of cached text tokens used as input for the Response.
2198
+ */
2199
+ text_tokens?: number;
2200
+ }
2201
+ }
2202
+ /**
2203
+ * Details about the output tokens used in the Response.
2204
+ */
2205
+ export interface RealtimeResponseUsageOutputTokenDetails {
2206
+ /**
2207
+ * The number of audio tokens used in the Response.
2208
+ */
2209
+ audio_tokens?: number;
2210
+ /**
2211
+ * The number of text tokens used in the Response.
2212
+ */
2213
+ text_tokens?: number;
2214
+ }
2215
+ /**
2216
+ * A realtime server event.
2217
+ */
2218
+ 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;
2219
+ export declare namespace RealtimeServerEvent {
2220
+ /**
2221
+ * Returned when a conversation item is retrieved with
2222
+ * `conversation.item.retrieve`. This is provided as a way to fetch the server's
2223
+ * representation of an item, for example to get access to the post-processed audio
2224
+ * data after noise cancellation and VAD. It includes the full content of the Item,
2225
+ * including audio data.
2226
+ */
2227
+ interface ConversationItemRetrieved {
2228
+ /**
2229
+ * The unique ID of the server event.
2230
+ */
2231
+ event_id: string;
2232
+ /**
2233
+ * A single item within a Realtime conversation.
2234
+ */
2235
+ item: RealtimeAPI.ConversationItem;
2236
+ /**
2237
+ * The event type, must be `conversation.item.retrieved`.
2238
+ */
2239
+ type: 'conversation.item.retrieved';
2240
+ }
2241
+ /**
2242
+ * **WebRTC/SIP Only:** Emitted when the server begins streaming audio to the
2243
+ * client. This event is emitted after an audio content part has been added
2244
+ * (`response.content_part.added`) to the response.
2245
+ * [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
2246
+ */
2247
+ interface OutputAudioBufferStarted {
2248
+ /**
2249
+ * The unique ID of the server event.
2250
+ */
2251
+ event_id: string;
2252
+ /**
2253
+ * The unique ID of the response that produced the audio.
2254
+ */
2255
+ response_id: string;
2256
+ /**
2257
+ * The event type, must be `output_audio_buffer.started`.
2258
+ */
2259
+ type: 'output_audio_buffer.started';
2260
+ }
2261
+ /**
2262
+ * **WebRTC/SIP Only:** Emitted when the output audio buffer has been completely
2263
+ * drained on the server, and no more audio is forthcoming. This event is emitted
2264
+ * after the full response data has been sent to the client (`response.done`).
2265
+ * [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
2266
+ */
2267
+ interface OutputAudioBufferStopped {
2268
+ /**
2269
+ * The unique ID of the server event.
2270
+ */
2271
+ event_id: string;
2272
+ /**
2273
+ * The unique ID of the response that produced the audio.
2274
+ */
2275
+ response_id: string;
2276
+ /**
2277
+ * The event type, must be `output_audio_buffer.stopped`.
2278
+ */
2279
+ type: 'output_audio_buffer.stopped';
2280
+ }
2281
+ /**
2282
+ * **WebRTC/SIP Only:** Emitted when the output audio buffer is cleared. This
2283
+ * happens either in VAD mode when the user has interrupted
2284
+ * (`input_audio_buffer.speech_started`), or when the client has emitted the
2285
+ * `output_audio_buffer.clear` event to manually cut off the current audio
2286
+ * response.
2287
+ * [Learn more](https://developers.openai.com/api/docs/guides/realtime-conversations#client-and-server-events-for-audio-in-webrtc).
2288
+ */
2289
+ interface OutputAudioBufferCleared {
2290
+ /**
2291
+ * The unique ID of the server event.
2292
+ */
2293
+ event_id: string;
2294
+ /**
2295
+ * The unique ID of the response that produced the audio.
2296
+ */
2297
+ response_id: string;
2298
+ /**
2299
+ * The event type, must be `output_audio_buffer.cleared`.
2300
+ */
2301
+ type: 'output_audio_buffer.cleared';
2302
+ }
2303
+ }
2304
+ /**
2305
+ * Realtime session object for the beta interface.
2306
+ */
2307
+ export interface RealtimeSession {
2308
+ /**
2309
+ * Unique identifier for the session that looks like `sess_1234567890abcdef`.
2310
+ */
2311
+ id?: string;
2312
+ /**
2313
+ * Expiration timestamp for the session, in seconds since epoch.
2314
+ */
2315
+ expires_at?: number;
2316
+ /**
2317
+ * Additional fields to include in server outputs.
2318
+ *
2319
+ * - `item.input_audio_transcription.logprobs`: Include logprobs for input audio
2320
+ * transcription.
2321
+ */
2322
+ include?: Array<'item.input_audio_transcription.logprobs'> | null;
2323
+ /**
2324
+ * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
2325
+ * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
2326
+ * (mono), and little-endian byte order.
2327
+ */
2328
+ input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
2329
+ /**
2330
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2331
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2332
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2333
+ * detection accuracy (reducing false positives) and model performance by improving
2334
+ * perception of the input audio.
2335
+ */
2336
+ input_audio_noise_reduction?: RealtimeSession.InputAudioNoiseReduction;
2337
+ /**
2338
+ * Configuration for input audio transcription, defaults to off and can be set to
2339
+ * `null` to turn off once on. Input audio transcription is not native to the
2340
+ * model, since the model consumes audio directly. Transcription runs
2341
+ * asynchronously through
2342
+ * [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
2343
+ * and should be treated as guidance of input audio content rather than precisely
2344
+ * what the model heard. The client can optionally set the language and prompt for
2345
+ * transcription, these offer additional guidance to the transcription service.
2346
+ */
2347
+ input_audio_transcription?: AudioTranscription | null;
2348
+ /**
2349
+ * The default system instructions (i.e. system message) prepended to model calls.
2350
+ * This field allows the client to guide the model on desired responses. The model
2351
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
2352
+ * "act friendly", "here are examples of good responses") and on audio behavior
2353
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
2354
+ * instructions are not guaranteed to be followed by the model, but they provide
2355
+ * guidance to the model on the desired behavior.
2356
+ *
2357
+ * Note that the server sets default instructions which will be used if this field
2358
+ * is not set and are visible in the `session.created` event at the start of the
2359
+ * session.
2360
+ */
2361
+ instructions?: string;
2362
+ /**
2363
+ * Maximum number of output tokens for a single assistant response, inclusive of
2364
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
2365
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
2366
+ */
2367
+ max_response_output_tokens?: number | 'inf';
2368
+ /**
2369
+ * The set of modalities the model can respond with. To disable audio, set this to
2370
+ * ["text"].
2371
+ */
2372
+ modalities?: Array<'text' | 'audio'>;
2373
+ /**
2374
+ * The Realtime model used for this session.
2375
+ */
2376
+ 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';
2377
+ /**
2378
+ * The object type. Always `realtime.session`.
2379
+ */
2380
+ object?: 'realtime.session';
2381
+ /**
2382
+ * The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
2383
+ * For `pcm16`, output audio is sampled at a rate of 24kHz.
2384
+ */
2385
+ output_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
2386
+ /**
2387
+ * Reference to a prompt template and its variables.
2388
+ * [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
2389
+ */
2390
+ prompt?: ResponsesAPI.ResponsePrompt | null;
2391
+ /**
2392
+ * The speed of the model's spoken response. 1.0 is the default speed. 0.25 is the
2393
+ * minimum speed. 1.5 is the maximum speed. This value can only be changed in
2394
+ * between model turns, not while a response is in progress.
2395
+ */
2396
+ speed?: number;
2397
+ /**
2398
+ * Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a
2399
+ * temperature of 0.8 is highly recommended for best performance.
2400
+ */
2401
+ temperature?: number;
2402
+ /**
2403
+ * How the model chooses tools. Options are `auto`, `none`, `required`, or specify
2404
+ * a function.
2405
+ */
2406
+ tool_choice?: string;
2407
+ /**
2408
+ * Tools (functions) available to the model.
2409
+ */
2410
+ tools?: Array<RealtimeFunctionTool>;
2411
+ /**
2412
+ * Configuration options for tracing. Set to null to disable tracing. Once tracing
2413
+ * is enabled for a session, the configuration cannot be modified.
2414
+ *
2415
+ * `auto` will create a trace for the session with default values for the workflow
2416
+ * name, group id, and metadata.
2417
+ */
2418
+ tracing?: 'auto' | RealtimeSession.TracingConfiguration | null;
2419
+ /**
2420
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
2421
+ * set to `null` to turn off, in which case the client must manually trigger model
2422
+ * response.
2423
+ *
2424
+ * Server VAD means that the model will detect the start and end of speech based on
2425
+ * audio volume and respond at the end of user speech.
2426
+ *
2427
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
2428
+ * with VAD) to semantically estimate whether the user has finished speaking, then
2429
+ * dynamically sets a timeout based on this probability. For example, if user audio
2430
+ * trails off with "uhhm", the model will score a low probability of turn end and
2431
+ * wait longer for the user to continue speaking. This can be useful for more
2432
+ * natural conversations, but may have a higher latency.
2433
+ *
2434
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
2435
+ * `null`; VAD is not supported.
2436
+ */
2437
+ turn_detection?: RealtimeSession.ServerVad | RealtimeSession.SemanticVad | null;
2438
+ /**
2439
+ * The voice the model uses to respond. Voice cannot be changed during the session
2440
+ * once the model has responded with audio at least once. Current voice options are
2441
+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, and `verse`.
2442
+ */
2443
+ voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar';
2444
+ }
2445
+ export declare namespace RealtimeSession {
2446
+ /**
2447
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2448
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2449
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2450
+ * detection accuracy (reducing false positives) and model performance by improving
2451
+ * perception of the input audio.
2452
+ */
2453
+ interface InputAudioNoiseReduction {
2454
+ /**
2455
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
2456
+ * headphones, `far_field` is for far-field microphones such as laptop or
2457
+ * conference room microphones.
2458
+ */
2459
+ type?: RealtimeAPI.NoiseReductionType;
2460
+ }
2461
+ /**
2462
+ * Granular configuration for tracing.
2463
+ */
2464
+ interface TracingConfiguration {
2465
+ /**
2466
+ * The group id to attach to this trace to enable filtering and grouping in the
2467
+ * traces dashboard.
2468
+ */
2469
+ group_id?: string;
2470
+ /**
2471
+ * The arbitrary metadata to attach to this trace to enable filtering in the traces
2472
+ * dashboard.
2473
+ */
2474
+ metadata?: unknown;
2475
+ /**
2476
+ * The name of the workflow to attach to this trace. This is used to name the trace
2477
+ * in the traces dashboard.
2478
+ */
2479
+ workflow_name?: string;
2480
+ }
2481
+ /**
2482
+ * Server-side voice activity detection (VAD) which flips on when user speech is
2483
+ * detected and off after a period of silence.
2484
+ */
2485
+ interface ServerVad {
2486
+ /**
2487
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
2488
+ */
2489
+ type: 'server_vad';
2490
+ /**
2491
+ * Whether or not to automatically generate a response when a VAD stop event
2492
+ * occurs. If `interrupt_response` is set to `false` this may fail to create a
2493
+ * response if the model is already responding.
2494
+ *
2495
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2496
+ * will never respond automatically but VAD events will still be emitted.
2497
+ */
2498
+ create_response?: boolean;
2499
+ /**
2500
+ * Optional timeout after which a model response will be triggered automatically.
2501
+ * This is useful for situations in which a long pause from the user is unexpected,
2502
+ * such as a phone call. The model will effectively prompt the user to continue the
2503
+ * conversation based on the current context.
2504
+ *
2505
+ * The timeout value will be applied after the last model response's audio has
2506
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
2507
+ * duration.
2508
+ *
2509
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
2510
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
2511
+ * only supported for `server_vad` mode.
2512
+ */
2513
+ idle_timeout_ms?: number | null;
2514
+ /**
2515
+ * Whether or not to automatically interrupt (cancel) any ongoing response with
2516
+ * output to the default conversation (i.e. `conversation` of `auto`) when a VAD
2517
+ * start event occurs. If `true` then the response will be cancelled, otherwise it
2518
+ * will continue until complete.
2519
+ *
2520
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2521
+ * will never respond automatically but VAD events will still be emitted.
2522
+ */
2523
+ interrupt_response?: boolean;
2524
+ /**
2525
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
2526
+ * detected speech (in milliseconds). Defaults to 300ms.
2527
+ */
2528
+ prefix_padding_ms?: number;
2529
+ /**
2530
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
2531
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
2532
+ * more quickly, but may jump in on short pauses from the user.
2533
+ */
2534
+ silence_duration_ms?: number;
2535
+ /**
2536
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
2537
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
2538
+ * model, and thus might perform better in noisy environments.
2539
+ */
2540
+ threshold?: number;
2541
+ }
2542
+ /**
2543
+ * Server-side semantic turn detection which uses a model to determine when the
2544
+ * user has finished speaking.
2545
+ */
2546
+ interface SemanticVad {
2547
+ /**
2548
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
2549
+ */
2550
+ type: 'semantic_vad';
2551
+ /**
2552
+ * Whether or not to automatically generate a response when a VAD stop event
2553
+ * occurs.
2554
+ */
2555
+ create_response?: boolean;
2556
+ /**
2557
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
2558
+ * will wait longer for the user to continue speaking, `high` will respond more
2559
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
2560
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
2561
+ */
2562
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
2563
+ /**
2564
+ * Whether or not to automatically interrupt any ongoing response with output to
2565
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
2566
+ * occurs.
2567
+ */
2568
+ interrupt_response?: boolean;
2569
+ }
2570
+ }
2571
+ /**
2572
+ * Realtime session object configuration.
2573
+ */
2574
+ export interface RealtimeSessionCreateRequest {
2575
+ /**
2576
+ * The type of session to create. Always `realtime` for the Realtime API.
2577
+ */
2578
+ type: 'realtime';
2579
+ /**
2580
+ * Configuration for input and output audio.
2581
+ */
2582
+ audio?: RealtimeAudioConfig;
2583
+ /**
2584
+ * Additional fields to include in server outputs.
2585
+ *
2586
+ * `item.input_audio_transcription.logprobs`: Include logprobs for input audio
2587
+ * transcription.
2588
+ */
2589
+ include?: Array<'item.input_audio_transcription.logprobs'>;
2590
+ /**
2591
+ * The default system instructions (i.e. system message) prepended to model calls.
2592
+ * This field allows the client to guide the model on desired responses. The model
2593
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
2594
+ * "act friendly", "here are examples of good responses") and on audio behavior
2595
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
2596
+ * instructions are not guaranteed to be followed by the model, but they provide
2597
+ * guidance to the model on the desired behavior.
2598
+ *
2599
+ * Note that the server sets default instructions which will be used if this field
2600
+ * is not set and are visible in the `session.created` event at the start of the
2601
+ * session.
2602
+ */
2603
+ instructions?: string;
2604
+ /**
2605
+ * Maximum number of output tokens for a single assistant response, inclusive of
2606
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
2607
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
2608
+ */
2609
+ max_output_tokens?: number | 'inf';
2610
+ /**
2611
+ * The Realtime model used for this session.
2612
+ */
2613
+ model?: (string & {}) | 'gpt-realtime' | 'gpt-realtime-1.5' | 'gpt-realtime-2' | 'gpt-realtime-2.1' | 'gpt-realtime-2.1-mini' | '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';
2614
+ /**
2615
+ * The set of modalities the model can respond with. It defaults to `["audio"]`,
2616
+ * indicating that the model will respond with audio plus a transcript. `["text"]`
2617
+ * can be used to make the model respond with text only. It is not possible to
2618
+ * request both `text` and `audio` at the same time.
2619
+ */
2620
+ output_modalities?: Array<'text' | 'audio'>;
2621
+ /**
2622
+ * Whether the model may call multiple tools in parallel. Only supported by
2623
+ * reasoning Realtime models such as `gpt-realtime-2`.
2624
+ */
2625
+ parallel_tool_calls?: boolean;
2626
+ /**
2627
+ * Reference to a prompt template and its variables.
2628
+ * [Learn more](https://developers.openai.com/api/docs/guides/text?api-mode=responses#version-prompts-in-code).
2629
+ */
2630
+ prompt?: ResponsesAPI.ResponsePrompt | null;
2631
+ /**
2632
+ * Configuration for reasoning-capable Realtime models such as `gpt-realtime-2`.
2633
+ */
2634
+ reasoning?: RealtimeReasoning;
2635
+ /**
2636
+ * How the model chooses tools. Provide one of the string modes or force a specific
2637
+ * function/MCP tool.
2638
+ */
2639
+ tool_choice?: RealtimeToolChoiceConfig;
2640
+ /**
2641
+ * Tools available to the model.
2642
+ */
2643
+ tools?: RealtimeToolsConfig;
2644
+ /**
2645
+ * Realtime API can write session traces to the
2646
+ * [Traces Dashboard](https://platform.openai.com/logs?api=traces). Set to null to
2647
+ * disable tracing. Once tracing is enabled for a session, the configuration cannot
2648
+ * be modified.
2649
+ *
2650
+ * `auto` will create a trace for the session with default values for the workflow
2651
+ * name, group id, and metadata.
2652
+ */
2653
+ tracing?: RealtimeTracingConfig | null;
2654
+ /**
2655
+ * When the number of tokens in a conversation exceeds the model's input token
2656
+ * limit, the conversation be truncated, meaning messages (starting from the
2657
+ * oldest) will not be included in the model's context. A 32k context model with
2658
+ * 4,096 max output tokens can only include 28,224 tokens in the context before
2659
+ * truncation occurs.
2660
+ *
2661
+ * Clients can configure truncation behavior to truncate with a lower max token
2662
+ * limit, which is an effective way to control token usage and cost.
2663
+ *
2664
+ * Truncation will reduce the number of cached tokens on the next turn (busting the
2665
+ * cache), since messages are dropped from the beginning of the context. However,
2666
+ * clients can also configure truncation to retain messages up to a fraction of the
2667
+ * maximum context size, which will reduce the need for future truncations and thus
2668
+ * improve the cache rate.
2669
+ *
2670
+ * Truncation can be disabled entirely, which means the server will never truncate
2671
+ * but would instead return an error if the conversation exceeds the model's input
2672
+ * token limit.
2673
+ */
2674
+ truncation?: RealtimeTruncation;
2675
+ }
2676
+ /**
2677
+ * How the model chooses tools. Provide one of the string modes or force a specific
2678
+ * function/MCP tool.
2679
+ */
2680
+ export type RealtimeToolChoiceConfig = ResponsesAPI.ToolChoiceOptions | ResponsesAPI.ToolChoiceFunction | ResponsesAPI.ToolChoiceMcp;
2681
+ /**
2682
+ * Tools available to the model.
2683
+ */
2684
+ export type RealtimeToolsConfig = Array<RealtimeToolsConfigUnion>;
2685
+ /**
2686
+ * Give the model access to additional tools via remote Model Context Protocol
2687
+ * (MCP) servers.
2688
+ * [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
2689
+ */
2690
+ export type RealtimeToolsConfigUnion = RealtimeFunctionTool | RealtimeToolsConfigUnion.Mcp;
2691
+ export declare namespace RealtimeToolsConfigUnion {
2692
+ /**
2693
+ * Give the model access to additional tools via remote Model Context Protocol
2694
+ * (MCP) servers.
2695
+ * [Learn more about MCP](https://developers.openai.com/api/docs/guides/tools-connectors-mcp).
2696
+ */
2697
+ interface Mcp {
2698
+ /**
2699
+ * A label for this MCP server, used to identify it in tool calls.
2700
+ */
2701
+ server_label: string;
2702
+ /**
2703
+ * The type of the MCP tool. Always `mcp`.
2704
+ */
2705
+ type: 'mcp';
2706
+ /**
2707
+ * The tool invocation context(s).
2708
+ */
2709
+ allowed_callers?: Array<'direct' | 'programmatic'> | null;
2710
+ /**
2711
+ * List of allowed tool names or a filter object.
2712
+ */
2713
+ allowed_tools?: Array<string> | Mcp.McpToolFilter | null;
2714
+ /**
2715
+ * An OAuth access token that can be used with a remote MCP server, either with a
2716
+ * custom MCP server URL or a service connector. Your application must handle the
2717
+ * OAuth authorization flow and provide the token here.
2718
+ */
2719
+ authorization?: string;
2720
+ /**
2721
+ * Identifier for service connectors, like those available in ChatGPT. One of
2722
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
2723
+ * service connectors
2724
+ * [here](https://developers.openai.com/api/docs/guides/tools-connectors-mcp#connectors).
2725
+ *
2726
+ * Currently supported `connector_id` values are:
2727
+ *
2728
+ * - Dropbox: `connector_dropbox`
2729
+ * - Gmail: `connector_gmail`
2730
+ * - Google Calendar: `connector_googlecalendar`
2731
+ * - Google Drive: `connector_googledrive`
2732
+ * - Microsoft Teams: `connector_microsoftteams`
2733
+ * - Outlook Calendar: `connector_outlookcalendar`
2734
+ * - Outlook Email: `connector_outlookemail`
2735
+ * - SharePoint: `connector_sharepoint`
2736
+ */
2737
+ connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
2738
+ /**
2739
+ * Whether this MCP tool is deferred and discovered via tool search.
2740
+ */
2741
+ defer_loading?: boolean;
2742
+ /**
2743
+ * Optional HTTP headers to send to the MCP server. Use for authentication or other
2744
+ * purposes.
2745
+ */
2746
+ headers?: {
2747
+ [key: string]: string;
2748
+ } | null;
2749
+ /**
2750
+ * Specify which of the MCP server's tools require approval.
2751
+ */
2752
+ require_approval?: Mcp.McpToolApprovalFilter | 'always' | 'never' | null;
2753
+ /**
2754
+ * Optional description of the MCP server, used to provide more context.
2755
+ */
2756
+ server_description?: string;
2757
+ /**
2758
+ * The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
2759
+ * must be provided.
2760
+ */
2761
+ server_url?: string;
2762
+ /**
2763
+ * The Secure MCP Tunnel ID to use instead of a direct server URL. One of
2764
+ * `server_url`, `connector_id`, or `tunnel_id` must be provided.
2765
+ */
2766
+ tunnel_id?: string;
2767
+ }
2768
+ namespace Mcp {
2769
+ /**
2770
+ * A filter object to specify which tools are allowed.
2771
+ */
2772
+ interface McpToolFilter {
2773
+ /**
2774
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
2775
+ * is
2776
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
2777
+ * it will match this filter.
2778
+ */
2779
+ read_only?: boolean;
2780
+ /**
2781
+ * List of allowed tool names.
2782
+ */
2783
+ tool_names?: Array<string>;
2784
+ }
2785
+ /**
2786
+ * Specify which of the MCP server's tools require approval. Can be `always`,
2787
+ * `never`, or a filter object associated with tools that require approval.
2788
+ */
2789
+ interface McpToolApprovalFilter {
2790
+ /**
2791
+ * A filter object to specify which tools are allowed.
2792
+ */
2793
+ always?: McpToolApprovalFilter.Always;
2794
+ /**
2795
+ * A filter object to specify which tools are allowed.
2796
+ */
2797
+ never?: McpToolApprovalFilter.Never;
2798
+ }
2799
+ namespace McpToolApprovalFilter {
2800
+ /**
2801
+ * A filter object to specify which tools are allowed.
2802
+ */
2803
+ interface Always {
2804
+ /**
2805
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
2806
+ * is
2807
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
2808
+ * it will match this filter.
2809
+ */
2810
+ read_only?: boolean;
2811
+ /**
2812
+ * List of allowed tool names.
2813
+ */
2814
+ tool_names?: Array<string>;
2815
+ }
2816
+ /**
2817
+ * A filter object to specify which tools are allowed.
2818
+ */
2819
+ interface Never {
2820
+ /**
2821
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
2822
+ * is
2823
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
2824
+ * it will match this filter.
2825
+ */
2826
+ read_only?: boolean;
2827
+ /**
2828
+ * List of allowed tool names.
2829
+ */
2830
+ tool_names?: Array<string>;
2831
+ }
2832
+ }
2833
+ }
2834
+ }
2835
+ /**
2836
+ * Realtime API can write session traces to the
2837
+ * [Traces Dashboard](https://platform.openai.com/logs?api=traces). Set to null to
2838
+ * disable tracing. Once tracing is enabled for a session, the configuration cannot
2839
+ * be modified.
2840
+ *
2841
+ * `auto` will create a trace for the session with default values for the workflow
2842
+ * name, group id, and metadata.
2843
+ */
2844
+ export type RealtimeTracingConfig = 'auto' | RealtimeTracingConfig.TracingConfiguration;
2845
+ export declare namespace RealtimeTracingConfig {
2846
+ /**
2847
+ * Granular configuration for tracing.
2848
+ */
2849
+ interface TracingConfiguration {
2850
+ /**
2851
+ * The group id to attach to this trace to enable filtering and grouping in the
2852
+ * Traces Dashboard.
2853
+ */
2854
+ group_id?: string;
2855
+ /**
2856
+ * The arbitrary metadata to attach to this trace to enable filtering in the Traces
2857
+ * Dashboard.
2858
+ */
2859
+ metadata?: unknown;
2860
+ /**
2861
+ * The name of the workflow to attach to this trace. This is used to name the trace
2862
+ * in the Traces Dashboard.
2863
+ */
2864
+ workflow_name?: string;
2865
+ }
2866
+ }
2867
+ /**
2868
+ * Configuration for input and output audio.
2869
+ */
2870
+ export interface RealtimeTranscriptionSessionAudio {
2871
+ input?: RealtimeTranscriptionSessionAudioInput;
2872
+ }
2873
+ export interface RealtimeTranscriptionSessionAudioInput {
2874
+ /**
2875
+ * The PCM audio format. Only a 24kHz sample rate is supported.
2876
+ */
2877
+ format?: RealtimeAudioFormats;
2878
+ /**
2879
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2880
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2881
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2882
+ * detection accuracy (reducing false positives) and model performance by improving
2883
+ * perception of the input audio.
2884
+ */
2885
+ noise_reduction?: RealtimeTranscriptionSessionAudioInput.NoiseReduction;
2886
+ /**
2887
+ * Configuration for input audio transcription, defaults to off and can be set to
2888
+ * `null` to turn off once on. Input audio transcription is not native to the
2889
+ * model, since the model consumes audio directly. Transcription runs
2890
+ * asynchronously through
2891
+ * [the /audio/transcriptions endpoint](https://developers.openai.com/api/reference/resources/audio/subresources/transcriptions/methods/create)
2892
+ * and should be treated as guidance of input audio content rather than precisely
2893
+ * what the model heard. The client can optionally set the language and prompt for
2894
+ * transcription, these offer additional guidance to the transcription service.
2895
+ */
2896
+ transcription?: AudioTranscription;
2897
+ /**
2898
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
2899
+ * set to `null` to turn off, in which case the client must manually trigger model
2900
+ * response.
2901
+ *
2902
+ * Server VAD means that the model will detect the start and end of speech based on
2903
+ * audio volume and respond at the end of user speech.
2904
+ *
2905
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
2906
+ * with VAD) to semantically estimate whether the user has finished speaking, then
2907
+ * dynamically sets a timeout based on this probability. For example, if user audio
2908
+ * trails off with "uhhm", the model will score a low probability of turn end and
2909
+ * wait longer for the user to continue speaking. This can be useful for more
2910
+ * natural conversations, but may have a higher latency.
2911
+ *
2912
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
2913
+ * `null`; VAD is not supported.
2914
+ */
2915
+ turn_detection?: RealtimeTranscriptionSessionAudioInputTurnDetection | null;
2916
+ }
2917
+ export declare namespace RealtimeTranscriptionSessionAudioInput {
2918
+ /**
2919
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
2920
+ * off. Noise reduction filters audio added to the input audio buffer before it is
2921
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
2922
+ * detection accuracy (reducing false positives) and model performance by improving
2923
+ * perception of the input audio.
2924
+ */
2925
+ interface NoiseReduction {
2926
+ /**
2927
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
2928
+ * headphones, `far_field` is for far-field microphones such as laptop or
2929
+ * conference room microphones.
2930
+ */
2931
+ type?: RealtimeAPI.NoiseReductionType;
2932
+ }
2933
+ }
2934
+ /**
2935
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
2936
+ * set to `null` to turn off, in which case the client must manually trigger model
2937
+ * response.
2938
+ *
2939
+ * Server VAD means that the model will detect the start and end of speech based on
2940
+ * audio volume and respond at the end of user speech.
2941
+ *
2942
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
2943
+ * with VAD) to semantically estimate whether the user has finished speaking, then
2944
+ * dynamically sets a timeout based on this probability. For example, if user audio
2945
+ * trails off with "uhhm", the model will score a low probability of turn end and
2946
+ * wait longer for the user to continue speaking. This can be useful for more
2947
+ * natural conversations, but may have a higher latency.
2948
+ *
2949
+ * For `gpt-realtime-whisper` transcription sessions, turn detection must be set to
2950
+ * `null`; VAD is not supported.
2951
+ */
2952
+ export type RealtimeTranscriptionSessionAudioInputTurnDetection = RealtimeTranscriptionSessionAudioInputTurnDetection.ServerVad | RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad;
2953
+ export declare namespace RealtimeTranscriptionSessionAudioInputTurnDetection {
2954
+ /**
2955
+ * Server-side voice activity detection (VAD) which flips on when user speech is
2956
+ * detected and off after a period of silence.
2957
+ */
2958
+ interface ServerVad {
2959
+ /**
2960
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
2961
+ */
2962
+ type: 'server_vad';
2963
+ /**
2964
+ * Whether or not to automatically generate a response when a VAD stop event
2965
+ * occurs. If `interrupt_response` is set to `false` this may fail to create a
2966
+ * response if the model is already responding.
2967
+ *
2968
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2969
+ * will never respond automatically but VAD events will still be emitted.
2970
+ */
2971
+ create_response?: boolean;
2972
+ /**
2973
+ * Optional timeout after which a model response will be triggered automatically.
2974
+ * This is useful for situations in which a long pause from the user is unexpected,
2975
+ * such as a phone call. The model will effectively prompt the user to continue the
2976
+ * conversation based on the current context.
2977
+ *
2978
+ * The timeout value will be applied after the last model response's audio has
2979
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
2980
+ * duration.
2981
+ *
2982
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
2983
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
2984
+ * only supported for `server_vad` mode.
2985
+ */
2986
+ idle_timeout_ms?: number | null;
2987
+ /**
2988
+ * Whether or not to automatically interrupt (cancel) any ongoing response with
2989
+ * output to the default conversation (i.e. `conversation` of `auto`) when a VAD
2990
+ * start event occurs. If `true` then the response will be cancelled, otherwise it
2991
+ * will continue until complete.
2992
+ *
2993
+ * If both `create_response` and `interrupt_response` are set to `false`, the model
2994
+ * will never respond automatically but VAD events will still be emitted.
2995
+ */
2996
+ interrupt_response?: boolean;
2997
+ /**
2998
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
2999
+ * detected speech (in milliseconds). Defaults to 300ms.
3000
+ */
3001
+ prefix_padding_ms?: number;
3002
+ /**
3003
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
3004
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
3005
+ * more quickly, but may jump in on short pauses from the user.
3006
+ */
3007
+ silence_duration_ms?: number;
3008
+ /**
3009
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
3010
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
3011
+ * model, and thus might perform better in noisy environments.
3012
+ */
3013
+ threshold?: number;
3014
+ }
3015
+ /**
3016
+ * Server-side semantic turn detection which uses a model to determine when the
3017
+ * user has finished speaking.
3018
+ */
3019
+ interface SemanticVad {
3020
+ /**
3021
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
3022
+ */
3023
+ type: 'semantic_vad';
3024
+ /**
3025
+ * Whether or not to automatically generate a response when a VAD stop event
3026
+ * occurs.
3027
+ */
3028
+ create_response?: boolean;
3029
+ /**
3030
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
3031
+ * will wait longer for the user to continue speaking, `high` will respond more
3032
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
3033
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
3034
+ */
3035
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
3036
+ /**
3037
+ * Whether or not to automatically interrupt any ongoing response with output to
3038
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
3039
+ * occurs.
3040
+ */
3041
+ interrupt_response?: boolean;
3042
+ }
3043
+ }
3044
+ /**
3045
+ * Realtime transcription session object configuration.
3046
+ */
3047
+ export interface RealtimeTranscriptionSessionCreateRequest {
3048
+ /**
3049
+ * The type of session to create. Always `transcription` for transcription
3050
+ * sessions.
3051
+ */
3052
+ type: 'transcription';
3053
+ /**
3054
+ * Configuration for input and output audio.
3055
+ */
3056
+ audio?: RealtimeTranscriptionSessionAudio;
3057
+ /**
3058
+ * Additional fields to include in server outputs.
3059
+ *
3060
+ * `item.input_audio_transcription.logprobs`: Include logprobs for input audio
3061
+ * transcription.
3062
+ */
3063
+ include?: Array<'item.input_audio_transcription.logprobs'>;
3064
+ }
3065
+ /**
3066
+ * A Realtime translation client event.
3067
+ */
3068
+ export type RealtimeTranslationClientEvent = RealtimeTranslationSessionUpdateEvent | RealtimeTranslationInputAudioBufferAppendEvent | RealtimeTranslationSessionCloseEvent;
3069
+ /**
3070
+ * Create a translation session and client secret for the Realtime API.
3071
+ */
3072
+ export interface RealtimeTranslationClientSecretCreateRequest {
3073
+ /**
3074
+ * Realtime translation session configuration. Translation sessions stream source
3075
+ * audio in and translated audio plus transcript deltas out continuously.
3076
+ */
3077
+ session: RealtimeTranslationSessionCreateRequest;
3078
+ /**
3079
+ * Configuration for the client secret expiration. Expiration refers to the time
3080
+ * after which a client secret will no longer be valid for creating sessions. The
3081
+ * session itself may continue after that time once started. A secret can be used
3082
+ * to create multiple sessions until it expires.
3083
+ */
3084
+ expires_after?: RealtimeTranslationClientSecretCreateRequest.ExpiresAfter;
3085
+ }
3086
+ export declare namespace RealtimeTranslationClientSecretCreateRequest {
3087
+ /**
3088
+ * Configuration for the client secret expiration. Expiration refers to the time
3089
+ * after which a client secret will no longer be valid for creating sessions. The
3090
+ * session itself may continue after that time once started. A secret can be used
3091
+ * to create multiple sessions until it expires.
3092
+ */
3093
+ interface ExpiresAfter {
3094
+ /**
3095
+ * The anchor point for the client secret expiration, meaning that `seconds` will
3096
+ * be added to the `created_at` time of the client secret to produce an expiration
3097
+ * timestamp. Only `created_at` is currently supported.
3098
+ */
3099
+ anchor?: 'created_at';
3100
+ /**
3101
+ * The number of seconds from the anchor point to the expiration. Select a value
3102
+ * between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if
3103
+ * not specified.
3104
+ */
3105
+ seconds?: number;
3106
+ }
3107
+ }
3108
+ /**
3109
+ * Response from creating a translation session and client secret for the Realtime
3110
+ * API.
3111
+ */
3112
+ export interface RealtimeTranslationClientSecretCreateResponse {
3113
+ /**
3114
+ * Expiration timestamp for the client secret, in seconds since epoch.
3115
+ */
3116
+ expires_at: number;
3117
+ /**
3118
+ * A Realtime translation session. Translation sessions continuously translate
3119
+ * input audio into the configured output language.
3120
+ */
3121
+ session: RealtimeTranslationSession;
3122
+ /**
3123
+ * The generated client secret value.
3124
+ */
3125
+ value: string;
3126
+ }
3127
+ /**
3128
+ * Send this event to append audio bytes to the translation session input audio
3129
+ * buffer.
3130
+ *
3131
+ * WebSocket translation sessions accept base64-encoded 24 kHz PCM16 mono
3132
+ * little-endian raw audio bytes. Unsupported websocket audio formats return a
3133
+ * validation error because lower-quality audio materially degrades translation
3134
+ * quality.
3135
+ *
3136
+ * Translation consumes 200 ms engine frames. For best realtime behavior, append
3137
+ * audio in 200 ms chunks. If a chunk is shorter, the server buffers it until it
3138
+ * has enough audio for one frame. If a chunk is longer, the server splits it into
3139
+ * 200 ms frames and enqueues them back-to-back.
3140
+ *
3141
+ * Keep appending silence while the session is active. If a client stops sending
3142
+ * audio and later resumes, model time treats the resumed audio as contiguous with
3143
+ * the previous audio rather than as a real-world pause.
3144
+ */
3145
+ export interface RealtimeTranslationInputAudioBufferAppendEvent {
3146
+ /**
3147
+ * Base64-encoded 24 kHz PCM16 mono audio bytes.
3148
+ */
3149
+ audio: string;
3150
+ /**
3151
+ * The event type, must be `session.input_audio_buffer.append`.
3152
+ */
3153
+ type: 'session.input_audio_buffer.append';
3154
+ /**
3155
+ * Optional client-generated ID used to identify this event.
3156
+ */
3157
+ event_id?: string;
3158
+ }
3159
+ /**
3160
+ * Returned when optional source-language transcript text is available. This event
3161
+ * is emitted only when `audio.input.transcription` is configured.
3162
+ *
3163
+ * Transcript deltas are append-only text fragments. Clients should not insert
3164
+ * unconditional spaces between deltas.
3165
+ */
3166
+ export interface RealtimeTranslationInputTranscriptDeltaEvent {
3167
+ /**
3168
+ * Append-only source-language transcript text.
3169
+ */
3170
+ delta: string;
3171
+ /**
3172
+ * The unique ID of the server event.
3173
+ */
3174
+ event_id: string;
3175
+ /**
3176
+ * The event type, must be `session.input_transcript.delta`.
3177
+ */
3178
+ type: 'session.input_transcript.delta';
3179
+ /**
3180
+ * Timing metadata for stream alignment, derived from the translation frame when
3181
+ * available. It advances in 200 ms increments, but multiple transcript deltas may
3182
+ * share the same `elapsed_ms`. Treat it as alignment metadata, not a unique
3183
+ * transcript-delta identifier.
3184
+ */
3185
+ elapsed_ms?: number | null;
3186
+ }
3187
+ /**
3188
+ * Returned when translated output audio is available. The `delta` contains a PCM16
3189
+ * audio chunk whose length can vary. Clients should decode and queue the complete
3190
+ * delta instead of assuming a fixed byte or sample count.
3191
+ */
3192
+ export interface RealtimeTranslationOutputAudioDeltaEvent {
3193
+ /**
3194
+ * Base64-encoded translated audio data.
3195
+ */
3196
+ delta: string;
3197
+ /**
3198
+ * The unique ID of the server event.
3199
+ */
3200
+ event_id: string;
3201
+ /**
3202
+ * The event type, must be `session.output_audio.delta`.
3203
+ */
3204
+ type: 'session.output_audio.delta';
3205
+ /**
3206
+ * Number of audio channels.
3207
+ */
3208
+ channels?: number;
3209
+ /**
3210
+ * Timing metadata for stream alignment, derived from the translation frame when
3211
+ * available. Treat `elapsed_ms` as alignment metadata, not a unique event
3212
+ * identifier.
3213
+ */
3214
+ elapsed_ms?: number | null;
3215
+ /**
3216
+ * Audio encoding for `delta`.
3217
+ */
3218
+ format?: 'pcm16';
3219
+ /**
3220
+ * Sample rate of the audio delta.
3221
+ */
3222
+ sample_rate?: number;
3223
+ }
3224
+ /**
3225
+ * Returned when translated transcript text is available.
3226
+ *
3227
+ * Transcript deltas are append-only text fragments. Clients should not insert
3228
+ * unconditional spaces between deltas.
3229
+ */
3230
+ export interface RealtimeTranslationOutputTranscriptDeltaEvent {
3231
+ /**
3232
+ * Append-only transcript text for the translated output audio.
3233
+ */
3234
+ delta: string;
3235
+ /**
3236
+ * The unique ID of the server event.
3237
+ */
3238
+ event_id: string;
3239
+ /**
3240
+ * The event type, must be `session.output_transcript.delta`.
3241
+ */
3242
+ type: 'session.output_transcript.delta';
3243
+ /**
3244
+ * Timing metadata for stream alignment, derived from the translation frame when
3245
+ * available. It advances in 200 ms increments, but multiple transcript deltas may
3246
+ * share the same `elapsed_ms`. Treat it as alignment metadata, not a unique
3247
+ * transcript-delta identifier.
3248
+ */
3249
+ elapsed_ms?: number | null;
3250
+ }
3251
+ /**
3252
+ * A Realtime translation server event.
3253
+ */
3254
+ export type RealtimeTranslationServerEvent = RealtimeErrorEvent | RealtimeTranslationSessionCreatedEvent | RealtimeTranslationSessionUpdatedEvent | RealtimeTranslationSessionClosedEvent | RealtimeTranslationInputTranscriptDeltaEvent | RealtimeTranslationOutputTranscriptDeltaEvent | RealtimeTranslationOutputAudioDeltaEvent;
3255
+ /**
3256
+ * A Realtime translation session. Translation sessions continuously translate
3257
+ * input audio into the configured output language.
3258
+ */
3259
+ export interface RealtimeTranslationSession {
3260
+ /**
3261
+ * Unique identifier for the session that looks like `sess_1234567890abcdef`.
3262
+ */
3263
+ id: string;
3264
+ /**
3265
+ * Configuration for translation input and output audio.
3266
+ */
3267
+ audio: RealtimeTranslationSession.Audio;
3268
+ /**
3269
+ * Expiration timestamp for the session, in seconds since epoch.
3270
+ */
3271
+ expires_at: number;
3272
+ /**
3273
+ * The Realtime translation model used for this session. This field is set at
3274
+ * session creation and cannot be changed with `session.update`.
3275
+ */
3276
+ model: string;
3277
+ /**
3278
+ * The session type. Always `translation` for Realtime translation sessions.
3279
+ */
3280
+ type: 'translation';
3281
+ }
3282
+ export declare namespace RealtimeTranslationSession {
3283
+ /**
3284
+ * Configuration for translation input and output audio.
3285
+ */
3286
+ interface Audio {
3287
+ input?: Audio.Input;
3288
+ output?: Audio.Output;
3289
+ }
3290
+ namespace Audio {
3291
+ interface Input {
3292
+ /**
3293
+ * Optional input noise reduction.
3294
+ */
3295
+ noise_reduction?: Input.NoiseReduction | null;
3296
+ /**
3297
+ * Optional source-language transcription. When configured, the server emits
3298
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3299
+ * input audio stream.
3300
+ */
3301
+ transcription?: Input.Transcription | null;
3302
+ }
3303
+ namespace Input {
3304
+ /**
3305
+ * Optional input noise reduction.
3306
+ */
3307
+ interface NoiseReduction {
3308
+ /**
3309
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
3310
+ * headphones, `far_field` is for far-field microphones such as laptop or
3311
+ * conference room microphones.
3312
+ */
3313
+ type: RealtimeAPI.NoiseReductionType;
3314
+ }
3315
+ /**
3316
+ * Optional source-language transcription. When configured, the server emits
3317
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3318
+ * input audio stream.
3319
+ */
3320
+ interface Transcription {
3321
+ /**
3322
+ * The transcription model used for source transcript deltas.
3323
+ */
3324
+ model: string;
3325
+ }
3326
+ }
3327
+ interface Output {
3328
+ /**
3329
+ * Target language for translated output audio and transcript deltas.
3330
+ */
3331
+ language?: string;
3332
+ }
3333
+ }
3334
+ }
3335
+ /**
3336
+ * Gracefully close the realtime translation session. The server flushes pending
3337
+ * input audio and emits any remaining translated output before closing the
3338
+ * session.
3339
+ */
3340
+ export interface RealtimeTranslationSessionCloseEvent {
3341
+ /**
3342
+ * The event type, must be `session.close`.
3343
+ */
3344
+ type: 'session.close';
3345
+ /**
3346
+ * Optional client-generated ID used to identify this event.
3347
+ */
3348
+ event_id?: string;
3349
+ }
3350
+ /**
3351
+ * Returned when a realtime translation session is closed.
3352
+ */
3353
+ export interface RealtimeTranslationSessionClosedEvent {
3354
+ /**
3355
+ * The unique ID of the server event.
3356
+ */
3357
+ event_id: string;
3358
+ /**
3359
+ * The event type, must be `session.closed`.
3360
+ */
3361
+ type: 'session.closed';
3362
+ }
3363
+ /**
3364
+ * Realtime translation session configuration. Translation sessions stream source
3365
+ * audio in and translated audio plus transcript deltas out continuously.
3366
+ */
3367
+ export interface RealtimeTranslationSessionCreateRequest {
3368
+ /**
3369
+ * The Realtime translation model used for this session.
3370
+ */
3371
+ model: string;
3372
+ /**
3373
+ * Configuration for translation input and output audio.
3374
+ */
3375
+ audio?: RealtimeTranslationSessionCreateRequest.Audio;
3376
+ }
3377
+ export declare namespace RealtimeTranslationSessionCreateRequest {
3378
+ /**
3379
+ * Configuration for translation input and output audio.
3380
+ */
3381
+ interface Audio {
3382
+ input?: Audio.Input;
3383
+ output?: Audio.Output;
3384
+ }
3385
+ namespace Audio {
3386
+ interface Input {
3387
+ /**
3388
+ * Optional input noise reduction. Set to `null` to disable it.
3389
+ */
3390
+ noise_reduction?: Input.NoiseReduction | null;
3391
+ /**
3392
+ * Optional source-language transcription. When configured, the server emits
3393
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3394
+ * input audio stream.
3395
+ */
3396
+ transcription?: Input.Transcription | null;
3397
+ }
3398
+ namespace Input {
3399
+ /**
3400
+ * Optional input noise reduction. Set to `null` to disable it.
3401
+ */
3402
+ interface NoiseReduction {
3403
+ /**
3404
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
3405
+ * headphones, `far_field` is for far-field microphones such as laptop or
3406
+ * conference room microphones.
3407
+ */
3408
+ type: RealtimeAPI.NoiseReductionType;
3409
+ }
3410
+ /**
3411
+ * Optional source-language transcription. When configured, the server emits
3412
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3413
+ * input audio stream.
3414
+ */
3415
+ interface Transcription {
3416
+ /**
3417
+ * The transcription model to use for source transcript deltas.
3418
+ */
3419
+ model: string;
3420
+ }
3421
+ }
3422
+ interface Output {
3423
+ /**
3424
+ * Target language for translated output audio and transcript deltas.
3425
+ */
3426
+ language?: string;
3427
+ }
3428
+ }
3429
+ }
3430
+ /**
3431
+ * Returned when a translation session is created. Emitted automatically when a new
3432
+ * connection is established as the first server event. This event contains the
3433
+ * default translation session configuration.
3434
+ */
3435
+ export interface RealtimeTranslationSessionCreatedEvent {
3436
+ /**
3437
+ * The unique ID of the server event.
3438
+ */
3439
+ event_id: string;
3440
+ /**
3441
+ * The translation session configuration.
3442
+ */
3443
+ session: RealtimeTranslationSession;
3444
+ /**
3445
+ * The event type, must be `session.created`.
3446
+ */
3447
+ type: 'session.created';
3448
+ }
3449
+ /**
3450
+ * Send this event to update the translation session configuration. Translation
3451
+ * sessions support updates to `audio.output.language`,
3452
+ * `audio.input.transcription`, and `audio.input.noise_reduction`.
3453
+ */
3454
+ export interface RealtimeTranslationSessionUpdateEvent {
3455
+ /**
3456
+ * Translation session fields to update. The session `type` and `model` are set at
3457
+ * creation and cannot be changed with `session.update`.
3458
+ */
3459
+ session: RealtimeTranslationSessionUpdateRequest;
3460
+ /**
3461
+ * The event type, must be `session.update`.
3462
+ */
3463
+ type: 'session.update';
3464
+ /**
3465
+ * Optional client-generated ID used to identify this event.
3466
+ */
3467
+ event_id?: string;
3468
+ }
3469
+ /**
3470
+ * Realtime translation session fields that can be updated with `session.update`.
3471
+ */
3472
+ export interface RealtimeTranslationSessionUpdateRequest {
3473
+ /**
3474
+ * Configuration for translation input and output audio.
3475
+ */
3476
+ audio?: RealtimeTranslationSessionUpdateRequest.Audio;
3477
+ }
3478
+ export declare namespace RealtimeTranslationSessionUpdateRequest {
3479
+ /**
3480
+ * Configuration for translation input and output audio.
3481
+ */
3482
+ interface Audio {
3483
+ input?: Audio.Input;
3484
+ output?: Audio.Output;
3485
+ }
3486
+ namespace Audio {
3487
+ interface Input {
3488
+ /**
3489
+ * Optional input noise reduction. Set to `null` to disable it.
3490
+ */
3491
+ noise_reduction?: Input.NoiseReduction | null;
3492
+ /**
3493
+ * Optional source-language transcription. When configured, the server emits
3494
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3495
+ * input audio stream.
3496
+ */
3497
+ transcription?: Input.Transcription | null;
3498
+ }
3499
+ namespace Input {
3500
+ /**
3501
+ * Optional input noise reduction. Set to `null` to disable it.
3502
+ */
3503
+ interface NoiseReduction {
3504
+ /**
3505
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
3506
+ * headphones, `far_field` is for far-field microphones such as laptop or
3507
+ * conference room microphones.
3508
+ */
3509
+ type: RealtimeAPI.NoiseReductionType;
3510
+ }
3511
+ /**
3512
+ * Optional source-language transcription. When configured, the server emits
3513
+ * `session.input_transcript.delta` events. Translation itself still runs from the
3514
+ * input audio stream.
3515
+ */
3516
+ interface Transcription {
3517
+ /**
3518
+ * The transcription model to use for source transcript deltas.
3519
+ */
3520
+ model: string;
3521
+ }
3522
+ }
3523
+ interface Output {
3524
+ /**
3525
+ * Target language for translated output audio and transcript deltas.
3526
+ */
3527
+ language?: string;
3528
+ }
3529
+ }
3530
+ }
3531
+ /**
3532
+ * Returned when a translation session is updated with a `session.update` event,
3533
+ * unless there is an error.
3534
+ */
3535
+ export interface RealtimeTranslationSessionUpdatedEvent {
3536
+ /**
3537
+ * The unique ID of the server event.
3538
+ */
3539
+ event_id: string;
3540
+ /**
3541
+ * The translation session configuration.
3542
+ */
3543
+ session: RealtimeTranslationSession;
3544
+ /**
3545
+ * The event type, must be `session.updated`.
3546
+ */
3547
+ type: 'session.updated';
3548
+ }
3549
+ /**
3550
+ * When the number of tokens in a conversation exceeds the model's input token
3551
+ * limit, the conversation be truncated, meaning messages (starting from the
3552
+ * oldest) will not be included in the model's context. A 32k context model with
3553
+ * 4,096 max output tokens can only include 28,224 tokens in the context before
3554
+ * truncation occurs.
3555
+ *
3556
+ * Clients can configure truncation behavior to truncate with a lower max token
3557
+ * limit, which is an effective way to control token usage and cost.
3558
+ *
3559
+ * Truncation will reduce the number of cached tokens on the next turn (busting the
3560
+ * cache), since messages are dropped from the beginning of the context. However,
3561
+ * clients can also configure truncation to retain messages up to a fraction of the
3562
+ * maximum context size, which will reduce the need for future truncations and thus
3563
+ * improve the cache rate.
3564
+ *
3565
+ * Truncation can be disabled entirely, which means the server will never truncate
3566
+ * but would instead return an error if the conversation exceeds the model's input
3567
+ * token limit.
3568
+ */
3569
+ export type RealtimeTruncation = 'auto' | 'disabled' | RealtimeTruncationRetentionRatio;
3570
+ /**
3571
+ * Retain a fraction of the conversation tokens when the conversation exceeds the
3572
+ * input token limit. This allows you to amortize truncations across multiple
3573
+ * turns, which can help improve cached token usage.
3574
+ */
3575
+ export interface RealtimeTruncationRetentionRatio {
3576
+ /**
3577
+ * Fraction of post-instruction conversation tokens to retain (`0.0` - `1.0`) when
3578
+ * the conversation exceeds the input token limit. Setting this to `0.8` means that
3579
+ * messages will be dropped until 80% of the maximum allowed tokens are used. This
3580
+ * helps reduce the frequency of truncations and improve cache rates.
3581
+ */
3582
+ retention_ratio: number;
3583
+ /**
3584
+ * Use retention ratio truncation.
3585
+ */
3586
+ type: 'retention_ratio';
3587
+ /**
3588
+ * Optional custom token limits for this truncation strategy. If not provided, the
3589
+ * model's default token limits will be used.
3590
+ */
3591
+ token_limits?: RealtimeTruncationRetentionRatio.TokenLimits;
3592
+ }
3593
+ export declare namespace RealtimeTruncationRetentionRatio {
3594
+ /**
3595
+ * Optional custom token limits for this truncation strategy. If not provided, the
3596
+ * model's default token limits will be used.
3597
+ */
3598
+ interface TokenLimits {
3599
+ /**
3600
+ * Maximum tokens allowed in the conversation after instructions (which including
3601
+ * tool definitions). For example, setting this to 5,000 would mean that truncation
3602
+ * would occur when the conversation exceeds 5,000 tokens after instructions. This
3603
+ * cannot be higher than the model's context window size minus the maximum output
3604
+ * tokens.
3605
+ */
3606
+ post_instructions?: number;
3607
+ }
3608
+ }
3609
+ /**
3610
+ * Returned when the model-generated audio is updated.
3611
+ */
3612
+ export interface ResponseAudioDeltaEvent {
3613
+ /**
3614
+ * The index of the content part in the item's content array.
3615
+ */
3616
+ content_index: number;
3617
+ /**
3618
+ * Base64-encoded audio data delta.
3619
+ */
3620
+ delta: string;
3621
+ /**
3622
+ * The unique ID of the server event.
3623
+ */
3624
+ event_id: string;
3625
+ /**
3626
+ * The ID of the item.
3627
+ */
3628
+ item_id: string;
3629
+ /**
3630
+ * The index of the output item in the response.
3631
+ */
3632
+ output_index: number;
3633
+ /**
3634
+ * The ID of the response.
3635
+ */
3636
+ response_id: string;
3637
+ /**
3638
+ * The event type, must be `response.output_audio.delta`.
3639
+ */
3640
+ type: 'response.output_audio.delta';
3641
+ }
3642
+ /**
3643
+ * Returned when the model-generated audio is done. Also emitted when a Response is
3644
+ * interrupted, incomplete, or cancelled.
3645
+ */
3646
+ export interface ResponseAudioDoneEvent {
3647
+ /**
3648
+ * The index of the content part in the item's content array.
3649
+ */
3650
+ content_index: number;
3651
+ /**
3652
+ * The unique ID of the server event.
3653
+ */
3654
+ event_id: string;
3655
+ /**
3656
+ * The ID of the item.
3657
+ */
3658
+ item_id: string;
3659
+ /**
3660
+ * The index of the output item in the response.
3661
+ */
3662
+ output_index: number;
3663
+ /**
3664
+ * The ID of the response.
3665
+ */
3666
+ response_id: string;
3667
+ /**
3668
+ * The event type, must be `response.output_audio.done`.
3669
+ */
3670
+ type: 'response.output_audio.done';
3671
+ }
3672
+ /**
3673
+ * Returned when the model-generated transcription of audio output is updated.
3674
+ */
3675
+ export interface ResponseAudioTranscriptDeltaEvent {
3676
+ /**
3677
+ * The index of the content part in the item's content array.
3678
+ */
3679
+ content_index: number;
3680
+ /**
3681
+ * The transcript delta.
3682
+ */
3683
+ delta: string;
3684
+ /**
3685
+ * The unique ID of the server event.
3686
+ */
3687
+ event_id: string;
3688
+ /**
3689
+ * The ID of the item.
3690
+ */
3691
+ item_id: string;
3692
+ /**
3693
+ * The index of the output item in the response.
3694
+ */
3695
+ output_index: number;
3696
+ /**
3697
+ * The ID of the response.
3698
+ */
3699
+ response_id: string;
3700
+ /**
3701
+ * The event type, must be `response.output_audio_transcript.delta`.
3702
+ */
3703
+ type: 'response.output_audio_transcript.delta';
3704
+ }
3705
+ /**
3706
+ * Returned when the model-generated transcription of audio output is done
3707
+ * streaming. Also emitted when a Response is interrupted, incomplete, or
3708
+ * cancelled.
3709
+ */
3710
+ export interface ResponseAudioTranscriptDoneEvent {
3711
+ /**
3712
+ * The index of the content part in the item's content array.
3713
+ */
3714
+ content_index: number;
3715
+ /**
3716
+ * The unique ID of the server event.
3717
+ */
3718
+ event_id: string;
3719
+ /**
3720
+ * The ID of the item.
3721
+ */
3722
+ item_id: string;
3723
+ /**
3724
+ * The index of the output item in the response.
3725
+ */
3726
+ output_index: number;
3727
+ /**
3728
+ * The ID of the response.
3729
+ */
3730
+ response_id: string;
3731
+ /**
3732
+ * The final transcript of the audio.
3733
+ */
3734
+ transcript: string;
3735
+ /**
3736
+ * The event type, must be `response.output_audio_transcript.done`.
3737
+ */
3738
+ type: 'response.output_audio_transcript.done';
3739
+ }
3740
+ /**
3741
+ * Send this event to cancel an in-progress response. The server will respond with
3742
+ * a `response.done` event with a status of `response.status=cancelled`. If there
3743
+ * is no response to cancel, the server will respond with an error. It's safe to
3744
+ * call `response.cancel` even if no response is in progress, an error will be
3745
+ * returned the session will remain unaffected.
3746
+ */
3747
+ export interface ResponseCancelEvent {
3748
+ /**
3749
+ * The event type, must be `response.cancel`.
3750
+ */
3751
+ type: 'response.cancel';
3752
+ /**
3753
+ * Optional client-generated ID used to identify this event.
3754
+ */
3755
+ event_id?: string;
3756
+ /**
3757
+ * A specific response ID to cancel - if not provided, will cancel an in-progress
3758
+ * response in the default conversation.
3759
+ */
3760
+ response_id?: string;
3761
+ }
3762
+ /**
3763
+ * Returned when a new content part is added to an assistant message item during
3764
+ * response generation.
3765
+ */
3766
+ export interface ResponseContentPartAddedEvent {
3767
+ /**
3768
+ * The index of the content part in the item's content array.
3769
+ */
3770
+ content_index: number;
3771
+ /**
3772
+ * The unique ID of the server event.
3773
+ */
3774
+ event_id: string;
3775
+ /**
3776
+ * The ID of the item to which the content part was added.
3777
+ */
3778
+ item_id: string;
3779
+ /**
3780
+ * The index of the output item in the response.
3781
+ */
3782
+ output_index: number;
3783
+ /**
3784
+ * The content part that was added.
3785
+ */
3786
+ part: ResponseContentPartAddedEvent.Part;
3787
+ /**
3788
+ * The ID of the response.
3789
+ */
3790
+ response_id: string;
3791
+ /**
3792
+ * The event type, must be `response.content_part.added`.
3793
+ */
3794
+ type: 'response.content_part.added';
3795
+ }
3796
+ export declare namespace ResponseContentPartAddedEvent {
3797
+ /**
3798
+ * The content part that was added.
3799
+ */
3800
+ interface Part {
3801
+ /**
3802
+ * Base64-encoded audio data (if type is "audio").
3803
+ */
3804
+ audio?: string;
3805
+ /**
3806
+ * The text content (if type is "text").
3807
+ */
3808
+ text?: string;
3809
+ /**
3810
+ * The transcript of the audio (if type is "audio").
3811
+ */
3812
+ transcript?: string;
3813
+ /**
3814
+ * The content type ("text", "audio").
3815
+ */
3816
+ type?: 'text' | 'audio';
3817
+ }
3818
+ }
3819
+ /**
3820
+ * Returned when a content part is done streaming in an assistant message item.
3821
+ * Also emitted when a Response is interrupted, incomplete, or cancelled.
3822
+ */
3823
+ export interface ResponseContentPartDoneEvent {
3824
+ /**
3825
+ * The index of the content part in the item's content array.
3826
+ */
3827
+ content_index: number;
3828
+ /**
3829
+ * The unique ID of the server event.
3830
+ */
3831
+ event_id: string;
3832
+ /**
3833
+ * The ID of the item.
3834
+ */
3835
+ item_id: string;
3836
+ /**
3837
+ * The index of the output item in the response.
3838
+ */
3839
+ output_index: number;
3840
+ /**
3841
+ * The content part that is done.
3842
+ */
3843
+ part: ResponseContentPartDoneEvent.Part;
3844
+ /**
3845
+ * The ID of the response.
3846
+ */
3847
+ response_id: string;
3848
+ /**
3849
+ * The event type, must be `response.content_part.done`.
3850
+ */
3851
+ type: 'response.content_part.done';
3852
+ }
3853
+ export declare namespace ResponseContentPartDoneEvent {
3854
+ /**
3855
+ * The content part that is done.
3856
+ */
3857
+ interface Part {
3858
+ /**
3859
+ * Base64-encoded audio data (if type is "audio").
3860
+ */
3861
+ audio?: string;
3862
+ /**
3863
+ * The text content (if type is "text").
3864
+ */
3865
+ text?: string;
3866
+ /**
3867
+ * The transcript of the audio (if type is "audio").
3868
+ */
3869
+ transcript?: string;
3870
+ /**
3871
+ * The content type ("text", "audio").
3872
+ */
3873
+ type?: 'text' | 'audio';
3874
+ }
3875
+ }
3876
+ /**
3877
+ * This event instructs the server to create a Response, which means triggering
3878
+ * model inference. When in Server VAD mode, the server will create Responses
3879
+ * automatically.
3880
+ *
3881
+ * A Response will include at least one Item, and may have two, in which case the
3882
+ * second will be a function call. These Items will be appended to the conversation
3883
+ * history by default.
3884
+ *
3885
+ * The server will respond with a `response.created` event, events for Items and
3886
+ * content created, and finally a `response.done` event to indicate the Response is
3887
+ * complete.
3888
+ *
3889
+ * The `response.create` event includes inference configuration like `instructions`
3890
+ * and `tools`. If these are set, they will override the Session's configuration
3891
+ * for this Response only.
3892
+ *
3893
+ * Responses can be created out-of-band of the default Conversation, meaning that
3894
+ * they can have arbitrary input, and it's possible to disable writing the output
3895
+ * to the Conversation. Only one Response can write to the default Conversation at
3896
+ * a time, but otherwise multiple Responses can be created in parallel. The
3897
+ * `metadata` field is a good way to disambiguate multiple simultaneous Responses.
3898
+ *
3899
+ * Clients can set `conversation` to `none` to create a Response that does not
3900
+ * write to the default Conversation. Arbitrary input can be provided with the
3901
+ * `input` field, which is an array accepting raw Items and references to existing
3902
+ * Items.
3903
+ */
3904
+ export interface ResponseCreateEvent {
3905
+ /**
3906
+ * The event type, must be `response.create`.
3907
+ */
3908
+ type: 'response.create';
3909
+ /**
3910
+ * Optional client-generated ID used to identify this event.
3911
+ */
3912
+ event_id?: string;
3913
+ /**
3914
+ * Create a new Realtime response with these parameters
3915
+ */
3916
+ response?: RealtimeResponseCreateParams;
3917
+ }
3918
+ /**
3919
+ * Returned when a new Response is created. The first event of response creation,
3920
+ * where the response is in an initial state of `in_progress`.
3921
+ */
3922
+ export interface ResponseCreatedEvent {
3923
+ /**
3924
+ * The unique ID of the server event.
3925
+ */
3926
+ event_id: string;
3927
+ /**
3928
+ * The response resource.
3929
+ */
3930
+ response: RealtimeResponse;
3931
+ /**
3932
+ * The event type, must be `response.created`.
3933
+ */
3934
+ type: 'response.created';
3935
+ }
3936
+ /**
3937
+ * Returned when a Response is done streaming. Always emitted, no matter the final
3938
+ * state. The Response object included in the `response.done` event will include
3939
+ * all output Items in the Response but will omit the raw audio data.
3940
+ *
3941
+ * Clients should check the `status` field of the Response to determine if it was
3942
+ * successful (`completed`) or if there was another outcome: `cancelled`, `failed`,
3943
+ * or `incomplete`.
3944
+ *
3945
+ * A response will contain all output items that were generated during the
3946
+ * response, excluding any audio content.
3947
+ */
3948
+ export interface ResponseDoneEvent {
3949
+ /**
3950
+ * The unique ID of the server event.
3951
+ */
3952
+ event_id: string;
3953
+ /**
3954
+ * The response resource.
3955
+ */
3956
+ response: RealtimeResponse;
3957
+ /**
3958
+ * The event type, must be `response.done`.
3959
+ */
3960
+ type: 'response.done';
3961
+ }
3962
+ /**
3963
+ * Returned when the model-generated function call arguments are updated.
3964
+ */
3965
+ export interface ResponseFunctionCallArgumentsDeltaEvent {
3966
+ /**
3967
+ * The ID of the function call.
3968
+ */
3969
+ call_id: string;
3970
+ /**
3971
+ * The arguments delta as a JSON string.
3972
+ */
3973
+ delta: string;
3974
+ /**
3975
+ * The unique ID of the server event.
3976
+ */
3977
+ event_id: string;
3978
+ /**
3979
+ * The ID of the function call item.
3980
+ */
3981
+ item_id: string;
3982
+ /**
3983
+ * The index of the output item in the response.
3984
+ */
3985
+ output_index: number;
3986
+ /**
3987
+ * The ID of the response.
3988
+ */
3989
+ response_id: string;
3990
+ /**
3991
+ * The event type, must be `response.function_call_arguments.delta`.
3992
+ */
3993
+ type: 'response.function_call_arguments.delta';
3994
+ }
3995
+ /**
3996
+ * Returned when the model-generated function call arguments are done streaming.
3997
+ * Also emitted when a Response is interrupted, incomplete, or cancelled.
3998
+ */
3999
+ export interface ResponseFunctionCallArgumentsDoneEvent {
4000
+ /**
4001
+ * The final arguments as a JSON string.
4002
+ */
4003
+ arguments: string;
4004
+ /**
4005
+ * The ID of the function call.
4006
+ */
4007
+ call_id: string;
4008
+ /**
4009
+ * The unique ID of the server event.
4010
+ */
4011
+ event_id: string;
4012
+ /**
4013
+ * The ID of the function call item.
4014
+ */
4015
+ item_id: string;
4016
+ /**
4017
+ * The name of the function that was called.
4018
+ */
4019
+ name: string;
4020
+ /**
4021
+ * The index of the output item in the response.
4022
+ */
4023
+ output_index: number;
4024
+ /**
4025
+ * The ID of the response.
4026
+ */
4027
+ response_id: string;
4028
+ /**
4029
+ * The event type, must be `response.function_call_arguments.done`.
4030
+ */
4031
+ type: 'response.function_call_arguments.done';
4032
+ }
4033
+ /**
4034
+ * Returned when MCP tool call arguments are updated during response generation.
4035
+ */
4036
+ export interface ResponseMcpCallArgumentsDelta {
4037
+ /**
4038
+ * The JSON-encoded arguments delta.
4039
+ */
4040
+ delta: string;
4041
+ /**
4042
+ * The unique ID of the server event.
4043
+ */
4044
+ event_id: string;
4045
+ /**
4046
+ * The ID of the MCP tool call item.
4047
+ */
4048
+ item_id: string;
4049
+ /**
4050
+ * The index of the output item in the response.
4051
+ */
4052
+ output_index: number;
4053
+ /**
4054
+ * The ID of the response.
4055
+ */
4056
+ response_id: string;
4057
+ /**
4058
+ * The event type, must be `response.mcp_call_arguments.delta`.
4059
+ */
4060
+ type: 'response.mcp_call_arguments.delta';
4061
+ /**
4062
+ * If present, indicates the delta text was obfuscated.
4063
+ */
4064
+ obfuscation?: string | null;
4065
+ }
4066
+ /**
4067
+ * Returned when MCP tool call arguments are finalized during response generation.
4068
+ */
4069
+ export interface ResponseMcpCallArgumentsDone {
4070
+ /**
4071
+ * The final JSON-encoded arguments string.
4072
+ */
4073
+ arguments: string;
4074
+ /**
4075
+ * The unique ID of the server event.
4076
+ */
4077
+ event_id: string;
4078
+ /**
4079
+ * The ID of the MCP tool call item.
4080
+ */
4081
+ item_id: string;
4082
+ /**
4083
+ * The index of the output item in the response.
4084
+ */
4085
+ output_index: number;
4086
+ /**
4087
+ * The ID of the response.
4088
+ */
4089
+ response_id: string;
4090
+ /**
4091
+ * The event type, must be `response.mcp_call_arguments.done`.
4092
+ */
4093
+ type: 'response.mcp_call_arguments.done';
4094
+ }
4095
+ /**
4096
+ * Returned when an MCP tool call has completed successfully.
4097
+ */
4098
+ export interface ResponseMcpCallCompleted {
4099
+ /**
4100
+ * The unique ID of the server event.
4101
+ */
4102
+ event_id: string;
4103
+ /**
4104
+ * The ID of the MCP tool call item.
4105
+ */
4106
+ item_id: string;
4107
+ /**
4108
+ * The index of the output item in the response.
4109
+ */
4110
+ output_index: number;
4111
+ /**
4112
+ * The event type, must be `response.mcp_call.completed`.
4113
+ */
4114
+ type: 'response.mcp_call.completed';
4115
+ }
4116
+ /**
4117
+ * Returned when an MCP tool call has failed.
4118
+ */
4119
+ export interface ResponseMcpCallFailed {
4120
+ /**
4121
+ * The unique ID of the server event.
4122
+ */
4123
+ event_id: string;
4124
+ /**
4125
+ * The ID of the MCP tool call item.
4126
+ */
4127
+ item_id: string;
4128
+ /**
4129
+ * The index of the output item in the response.
4130
+ */
4131
+ output_index: number;
4132
+ /**
4133
+ * The event type, must be `response.mcp_call.failed`.
4134
+ */
4135
+ type: 'response.mcp_call.failed';
4136
+ }
4137
+ /**
4138
+ * Returned when an MCP tool call has started and is in progress.
4139
+ */
4140
+ export interface ResponseMcpCallInProgress {
4141
+ /**
4142
+ * The unique ID of the server event.
4143
+ */
4144
+ event_id: string;
4145
+ /**
4146
+ * The ID of the MCP tool call item.
4147
+ */
4148
+ item_id: string;
4149
+ /**
4150
+ * The index of the output item in the response.
4151
+ */
4152
+ output_index: number;
4153
+ /**
4154
+ * The event type, must be `response.mcp_call.in_progress`.
4155
+ */
4156
+ type: 'response.mcp_call.in_progress';
4157
+ }
4158
+ /**
4159
+ * Returned when a new Item is created during Response generation.
4160
+ */
4161
+ export interface ResponseOutputItemAddedEvent {
4162
+ /**
4163
+ * The unique ID of the server event.
4164
+ */
4165
+ event_id: string;
4166
+ /**
4167
+ * A single item within a Realtime conversation.
4168
+ */
4169
+ item: ConversationItem;
4170
+ /**
4171
+ * The index of the output item in the Response.
4172
+ */
4173
+ output_index: number;
4174
+ /**
4175
+ * The ID of the Response to which the item belongs.
4176
+ */
4177
+ response_id: string;
4178
+ /**
4179
+ * The event type, must be `response.output_item.added`.
4180
+ */
4181
+ type: 'response.output_item.added';
4182
+ }
4183
+ /**
4184
+ * Returned when an Item is done streaming. Also emitted when a Response is
4185
+ * interrupted, incomplete, or cancelled.
4186
+ */
4187
+ export interface ResponseOutputItemDoneEvent {
4188
+ /**
4189
+ * The unique ID of the server event.
4190
+ */
4191
+ event_id: string;
4192
+ /**
4193
+ * A single item within a Realtime conversation.
4194
+ */
4195
+ item: ConversationItem;
4196
+ /**
4197
+ * The index of the output item in the Response.
4198
+ */
4199
+ output_index: number;
4200
+ /**
4201
+ * The ID of the Response to which the item belongs.
4202
+ */
4203
+ response_id: string;
4204
+ /**
4205
+ * The event type, must be `response.output_item.done`.
4206
+ */
4207
+ type: 'response.output_item.done';
4208
+ }
4209
+ /**
4210
+ * Returned when the text value of an "output_text" content part is updated.
4211
+ */
4212
+ export interface ResponseTextDeltaEvent {
4213
+ /**
4214
+ * The index of the content part in the item's content array.
4215
+ */
4216
+ content_index: number;
4217
+ /**
4218
+ * The text delta.
4219
+ */
4220
+ delta: string;
4221
+ /**
4222
+ * The unique ID of the server event.
4223
+ */
4224
+ event_id: string;
4225
+ /**
4226
+ * The ID of the item.
4227
+ */
4228
+ item_id: string;
4229
+ /**
4230
+ * The index of the output item in the response.
4231
+ */
4232
+ output_index: number;
4233
+ /**
4234
+ * The ID of the response.
4235
+ */
4236
+ response_id: string;
4237
+ /**
4238
+ * The event type, must be `response.output_text.delta`.
4239
+ */
4240
+ type: 'response.output_text.delta';
4241
+ }
4242
+ /**
4243
+ * Returned when the text value of an "output_text" content part is done streaming.
4244
+ * Also emitted when a Response is interrupted, incomplete, or cancelled.
4245
+ */
4246
+ export interface ResponseTextDoneEvent {
4247
+ /**
4248
+ * The index of the content part in the item's content array.
4249
+ */
4250
+ content_index: number;
4251
+ /**
4252
+ * The unique ID of the server event.
4253
+ */
4254
+ event_id: string;
4255
+ /**
4256
+ * The ID of the item.
4257
+ */
4258
+ item_id: string;
4259
+ /**
4260
+ * The index of the output item in the response.
4261
+ */
4262
+ output_index: number;
4263
+ /**
4264
+ * The ID of the response.
4265
+ */
4266
+ response_id: string;
4267
+ /**
4268
+ * The final text content.
4269
+ */
4270
+ text: string;
4271
+ /**
4272
+ * The event type, must be `response.output_text.done`.
4273
+ */
4274
+ type: 'response.output_text.done';
4275
+ }
4276
+ /**
4277
+ * Returned when a Session is created. Emitted automatically when a new connection
4278
+ * is established as the first server event. This event will contain the default
4279
+ * Session configuration.
4280
+ */
4281
+ export interface SessionCreatedEvent {
4282
+ /**
4283
+ * The unique ID of the server event.
4284
+ */
4285
+ event_id: string;
4286
+ /**
4287
+ * The session configuration.
4288
+ */
4289
+ session: RealtimeSessionCreateRequest | RealtimeTranscriptionSessionCreateRequest;
4290
+ /**
4291
+ * The event type, must be `session.created`.
4292
+ */
4293
+ type: 'session.created';
4294
+ }
4295
+ /**
4296
+ * Send this event to update the session’s configuration. The client may send this
4297
+ * event at any time to update any field except for `voice` and `model`. `voice`
4298
+ * can be updated only if there have been no other audio outputs yet.
4299
+ *
4300
+ * When the server receives a `session.update`, it will respond with a
4301
+ * `session.updated` event showing the full, effective configuration. Only the
4302
+ * fields that are present in the `session.update` are updated. To clear a field
4303
+ * like `instructions`, pass an empty string. To clear a field like `tools`, pass
4304
+ * an empty array. To clear a field like `turn_detection`, pass `null`.
4305
+ */
4306
+ export interface SessionUpdateEvent {
4307
+ /**
4308
+ * Update the Realtime session. Choose either a realtime session or a transcription
4309
+ * session.
4310
+ */
4311
+ session: RealtimeSessionCreateRequest | RealtimeTranscriptionSessionCreateRequest;
4312
+ /**
4313
+ * The event type, must be `session.update`.
4314
+ */
4315
+ type: 'session.update';
4316
+ /**
4317
+ * Optional client-generated ID used to identify this event. This is an arbitrary
4318
+ * string that a client may assign. It will be passed back if there is an error
4319
+ * with the event, but the corresponding `session.updated` event will not include
4320
+ * it.
4321
+ */
4322
+ event_id?: string;
4323
+ }
4324
+ /**
4325
+ * Returned when a session is updated with a `session.update` event, unless there
4326
+ * is an error.
4327
+ */
4328
+ export interface SessionUpdatedEvent {
4329
+ /**
4330
+ * The unique ID of the server event.
4331
+ */
4332
+ event_id: string;
4333
+ /**
4334
+ * The session configuration.
4335
+ */
4336
+ session: RealtimeSessionCreateRequest | RealtimeTranscriptionSessionCreateRequest;
4337
+ /**
4338
+ * The event type, must be `session.updated`.
4339
+ */
4340
+ type: 'session.updated';
4341
+ }
4342
+ /**
4343
+ * Send this event to update a transcription session.
4344
+ */
4345
+ export interface TranscriptionSessionUpdate {
4346
+ /**
4347
+ * Realtime transcription session object configuration.
4348
+ */
4349
+ session: TranscriptionSessionUpdate.Session;
4350
+ /**
4351
+ * The event type, must be `transcription_session.update`.
4352
+ */
4353
+ type: 'transcription_session.update';
4354
+ /**
4355
+ * Optional client-generated ID used to identify this event.
4356
+ */
4357
+ event_id?: string;
4358
+ }
4359
+ export declare namespace TranscriptionSessionUpdate {
4360
+ /**
4361
+ * Realtime transcription session object configuration.
4362
+ */
4363
+ interface Session {
4364
+ /**
4365
+ * The set of items to include in the transcription. Current available items are:
4366
+ * `item.input_audio_transcription.logprobs`
4367
+ */
4368
+ include?: Array<'item.input_audio_transcription.logprobs'>;
4369
+ /**
4370
+ * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`. For
4371
+ * `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate, single channel
4372
+ * (mono), and little-endian byte order.
4373
+ */
4374
+ input_audio_format?: 'pcm16' | 'g711_ulaw' | 'g711_alaw';
4375
+ /**
4376
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
4377
+ * off. Noise reduction filters audio added to the input audio buffer before it is
4378
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
4379
+ * detection accuracy (reducing false positives) and model performance by improving
4380
+ * perception of the input audio.
4381
+ */
4382
+ input_audio_noise_reduction?: Session.InputAudioNoiseReduction;
4383
+ /**
4384
+ * Configuration for input audio transcription. The client can optionally set the
4385
+ * language and prompt for transcription, these offer additional guidance to the
4386
+ * transcription service.
4387
+ */
4388
+ input_audio_transcription?: RealtimeAPI.AudioTranscription;
4389
+ /**
4390
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
4391
+ * means that the model will detect the start and end of speech based on audio
4392
+ * volume and respond at the end of user speech.
4393
+ */
4394
+ turn_detection?: Session.TurnDetection;
4395
+ }
4396
+ namespace Session {
4397
+ /**
4398
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
4399
+ * off. Noise reduction filters audio added to the input audio buffer before it is
4400
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
4401
+ * detection accuracy (reducing false positives) and model performance by improving
4402
+ * perception of the input audio.
4403
+ */
4404
+ interface InputAudioNoiseReduction {
4405
+ /**
4406
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
4407
+ * headphones, `far_field` is for far-field microphones such as laptop or
4408
+ * conference room microphones.
4409
+ */
4410
+ type?: RealtimeAPI.NoiseReductionType;
4411
+ }
4412
+ /**
4413
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
4414
+ * means that the model will detect the start and end of speech based on audio
4415
+ * volume and respond at the end of user speech.
4416
+ */
4417
+ interface TurnDetection {
4418
+ /**
4419
+ * Amount of audio to include before the VAD detected speech (in milliseconds).
4420
+ * Defaults to 300ms.
4421
+ */
4422
+ prefix_padding_ms?: number;
4423
+ /**
4424
+ * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.
4425
+ * With shorter values the model will respond more quickly, but may jump in on
4426
+ * short pauses from the user.
4427
+ */
4428
+ silence_duration_ms?: number;
4429
+ /**
4430
+ * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher
4431
+ * threshold will require louder audio to activate the model, and thus might
4432
+ * perform better in noisy environments.
4433
+ */
4434
+ threshold?: number;
4435
+ /**
4436
+ * Type of turn detection. Only `server_vad` is currently supported for
4437
+ * transcription sessions.
4438
+ */
4439
+ type?: 'server_vad';
4440
+ }
4441
+ }
4442
+ }
4443
+ /**
4444
+ * Returned when a transcription session is updated with a
4445
+ * `transcription_session.update` event, unless there is an error.
4446
+ */
4447
+ export interface TranscriptionSessionUpdatedEvent {
4448
+ /**
4449
+ * The unique ID of the server event.
4450
+ */
4451
+ event_id: string;
4452
+ /**
4453
+ * A new Realtime transcription session configuration.
4454
+ *
4455
+ * When a session is created on the server via REST API, the session object also
4456
+ * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is
4457
+ * not present when a session is updated via the WebSocket API.
4458
+ */
4459
+ session: TranscriptionSessionUpdatedEvent.Session;
4460
+ /**
4461
+ * The event type, must be `transcription_session.updated`.
4462
+ */
4463
+ type: 'transcription_session.updated';
4464
+ }
4465
+ export declare namespace TranscriptionSessionUpdatedEvent {
4466
+ /**
4467
+ * A new Realtime transcription session configuration.
4468
+ *
4469
+ * When a session is created on the server via REST API, the session object also
4470
+ * contains an ephemeral key. Default TTL for keys is 10 minutes. This property is
4471
+ * not present when a session is updated via the WebSocket API.
4472
+ */
4473
+ interface Session {
4474
+ /**
4475
+ * Ephemeral key returned by the API. Only present when the session is created on
4476
+ * the server via REST API.
4477
+ */
4478
+ client_secret: Session.ClientSecret;
4479
+ /**
4480
+ * The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
4481
+ */
4482
+ input_audio_format?: string;
4483
+ input_audio_transcription?: RealtimeAPI.AudioTranscription;
4484
+ /**
4485
+ * The set of modalities the model can respond with. To disable audio, set this to
4486
+ * ["text"].
4487
+ */
4488
+ modalities?: Array<'text' | 'audio'>;
4489
+ /**
4490
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
4491
+ * means that the model will detect the start and end of speech based on audio
4492
+ * volume and respond at the end of user speech.
4493
+ */
4494
+ turn_detection?: Session.TurnDetection;
4495
+ }
4496
+ namespace Session {
4497
+ /**
4498
+ * Ephemeral key returned by the API. Only present when the session is created on
4499
+ * the server via REST API.
4500
+ */
4501
+ interface ClientSecret {
4502
+ /**
4503
+ * Timestamp for when the token expires. Currently, all tokens expire after one
4504
+ * minute.
4505
+ */
4506
+ expires_at: number;
4507
+ /**
4508
+ * Ephemeral key usable in client environments to authenticate connections to the
4509
+ * Realtime API. Use this in client-side environments rather than a standard API
4510
+ * token, which should only be used server-side.
4511
+ */
4512
+ value: string;
4513
+ }
4514
+ /**
4515
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
4516
+ * means that the model will detect the start and end of speech based on audio
4517
+ * volume and respond at the end of user speech.
4518
+ */
4519
+ interface TurnDetection {
4520
+ /**
4521
+ * Amount of audio to include before the VAD detected speech (in milliseconds).
4522
+ * Defaults to 300ms.
4523
+ */
4524
+ prefix_padding_ms?: number;
4525
+ /**
4526
+ * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.
4527
+ * With shorter values the model will respond more quickly, but may jump in on
4528
+ * short pauses from the user.
4529
+ */
4530
+ silence_duration_ms?: number;
4531
+ /**
4532
+ * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher
4533
+ * threshold will require louder audio to activate the model, and thus might
4534
+ * perform better in noisy environments.
4535
+ */
4536
+ threshold?: number;
4537
+ /**
4538
+ * Type of turn detection, only `server_vad` is currently supported.
4539
+ */
4540
+ type?: string;
4541
+ }
4542
+ }
4543
+ }
4544
+ export declare namespace Realtime {
4545
+ 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 RealtimeReasoning as RealtimeReasoning, type RealtimeReasoningEffort as RealtimeReasoningEffort, 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 RealtimeTranslationClientEvent as RealtimeTranslationClientEvent, type RealtimeTranslationClientSecretCreateRequest as RealtimeTranslationClientSecretCreateRequest, type RealtimeTranslationClientSecretCreateResponse as RealtimeTranslationClientSecretCreateResponse, type RealtimeTranslationInputAudioBufferAppendEvent as RealtimeTranslationInputAudioBufferAppendEvent, type RealtimeTranslationInputTranscriptDeltaEvent as RealtimeTranslationInputTranscriptDeltaEvent, type RealtimeTranslationOutputAudioDeltaEvent as RealtimeTranslationOutputAudioDeltaEvent, type RealtimeTranslationOutputTranscriptDeltaEvent as RealtimeTranslationOutputTranscriptDeltaEvent, type RealtimeTranslationServerEvent as RealtimeTranslationServerEvent, type RealtimeTranslationSession as RealtimeTranslationSession, type RealtimeTranslationSessionCloseEvent as RealtimeTranslationSessionCloseEvent, type RealtimeTranslationSessionClosedEvent as RealtimeTranslationSessionClosedEvent, type RealtimeTranslationSessionCreateRequest as RealtimeTranslationSessionCreateRequest, type RealtimeTranslationSessionCreatedEvent as RealtimeTranslationSessionCreatedEvent, type RealtimeTranslationSessionUpdateEvent as RealtimeTranslationSessionUpdateEvent, type RealtimeTranslationSessionUpdateRequest as RealtimeTranslationSessionUpdateRequest, type RealtimeTranslationSessionUpdatedEvent as RealtimeTranslationSessionUpdatedEvent, 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, };
4546
+ export { ClientSecrets as ClientSecrets, type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeTranscriptionSessionCreateResponse as RealtimeTranscriptionSessionCreateResponse, type RealtimeTranscriptionSessionTurnDetection as RealtimeTranscriptionSessionTurnDetection, type ClientSecretCreateResponse as ClientSecretCreateResponse, type ClientSecretCreateParams as ClientSecretCreateParams, };
4547
+ export { Calls as Calls, type CallCreateParams as CallCreateParams, type CallAcceptParams as CallAcceptParams, type CallReferParams as CallReferParams, type CallRejectParams as CallRejectParams, };
4548
+ }
4549
+ //# sourceMappingURL=realtime.d.mts.map