@superinterface/react 5.1.3 → 5.2.0-beta.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 (413) hide show
  1. package/dist/index.d.cts +5 -5
  2. package/dist/index.d.ts +5 -5
  3. package/dist/server.d.cts +1 -1
  4. package/dist/server.d.ts +1 -1
  5. package/package.json +8 -6
  6. package/types/index.d.ts +4 -0
  7. package/types/node_modules/openai/LICENSE +201 -0
  8. package/types/node_modules/openai/_vendor/partial-json-parser/parser.d.mts +7 -0
  9. package/types/node_modules/openai/_vendor/partial-json-parser/parser.d.ts +7 -0
  10. package/types/node_modules/openai/_vendor/zod-to-json-schema/Options.d.mts +32 -0
  11. package/types/node_modules/openai/_vendor/zod-to-json-schema/Options.d.ts +32 -0
  12. package/types/node_modules/openai/_vendor/zod-to-json-schema/Refs.d.mts +21 -0
  13. package/types/node_modules/openai/_vendor/zod-to-json-schema/Refs.d.ts +21 -0
  14. package/types/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.d.mts +12 -0
  15. package/types/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.d.ts +12 -0
  16. package/types/node_modules/openai/_vendor/zod-to-json-schema/index.d.mts +38 -0
  17. package/types/node_modules/openai/_vendor/zod-to-json-schema/index.d.ts +38 -0
  18. package/types/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.mts +38 -0
  19. package/types/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.ts +38 -0
  20. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts +3 -0
  21. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts +3 -0
  22. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts +13 -0
  23. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts +13 -0
  24. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts +15 -0
  25. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts +15 -0
  26. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts +5 -0
  27. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts +5 -0
  28. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts +4 -0
  29. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts +4 -0
  30. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts +4 -0
  31. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts +4 -0
  32. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts +16 -0
  33. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts +16 -0
  34. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts +7 -0
  35. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts +7 -0
  36. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts +5 -0
  37. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts +5 -0
  38. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts +7 -0
  39. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts +7 -0
  40. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts +9 -0
  41. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts +9 -0
  42. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts +10 -0
  43. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts +10 -0
  44. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts +16 -0
  45. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts +16 -0
  46. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +7 -0
  47. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +7 -0
  48. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.mts +5 -0
  49. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts +5 -0
  50. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.mts +6 -0
  51. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts +6 -0
  52. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.mts +11 -0
  53. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts +11 -0
  54. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.d.mts +14 -0
  55. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.d.ts +14 -0
  56. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.d.mts +11 -0
  57. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.d.ts +11 -0
  58. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.mts +5 -0
  59. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.ts +5 -0
  60. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +6 -0
  61. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +6 -0
  62. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.mts +5 -0
  63. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.ts +5 -0
  64. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts +4 -0
  65. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts +4 -0
  66. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.d.mts +14 -0
  67. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.d.ts +14 -0
  68. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.d.mts +14 -0
  69. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.d.ts +14 -0
  70. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.d.mts +70 -0
  71. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.d.ts +70 -0
  72. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.d.mts +14 -0
  73. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.d.ts +14 -0
  74. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.d.mts +5 -0
  75. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.d.ts +5 -0
  76. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.d.mts +24 -0
  77. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.d.ts +24 -0
  78. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.d.mts +3 -0
  79. package/types/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.d.ts +3 -0
  80. package/types/node_modules/openai/_vendor/zod-to-json-schema/util.d.mts +4 -0
  81. package/types/node_modules/openai/_vendor/zod-to-json-schema/util.d.ts +4 -0
  82. package/types/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +11 -0
  83. package/types/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +11 -0
  84. package/types/node_modules/openai/api-promise.d.mts +2 -0
  85. package/types/node_modules/openai/api-promise.d.ts +2 -0
  86. package/types/node_modules/openai/azure.d.mts +63 -0
  87. package/types/node_modules/openai/azure.d.ts +63 -0
  88. package/types/node_modules/openai/beta/realtime/index.d.mts +2 -0
  89. package/types/node_modules/openai/beta/realtime/index.d.ts +2 -0
  90. package/types/node_modules/openai/beta/realtime/internal-base.d.mts +45 -0
  91. package/types/node_modules/openai/beta/realtime/internal-base.d.ts +45 -0
  92. package/types/node_modules/openai/beta/realtime/websocket.d.mts +36 -0
  93. package/types/node_modules/openai/beta/realtime/websocket.d.ts +36 -0
  94. package/types/node_modules/openai/beta/realtime/ws.d.mts +27 -0
  95. package/types/node_modules/openai/beta/realtime/ws.d.ts +27 -0
  96. package/types/node_modules/openai/client.d.mts +297 -0
  97. package/types/node_modules/openai/client.d.ts +297 -0
  98. package/types/node_modules/openai/core/api-promise.d.mts +49 -0
  99. package/types/node_modules/openai/core/api-promise.d.ts +49 -0
  100. package/types/node_modules/openai/core/error.d.mts +59 -0
  101. package/types/node_modules/openai/core/error.d.ts +59 -0
  102. package/types/node_modules/openai/core/pagination.d.mts +89 -0
  103. package/types/node_modules/openai/core/pagination.d.ts +89 -0
  104. package/types/node_modules/openai/core/resource.d.mts +6 -0
  105. package/types/node_modules/openai/core/resource.d.ts +6 -0
  106. package/types/node_modules/openai/core/streaming.d.mts +33 -0
  107. package/types/node_modules/openai/core/streaming.d.ts +33 -0
  108. package/types/node_modules/openai/core/uploads.d.mts +3 -0
  109. package/types/node_modules/openai/core/uploads.d.ts +3 -0
  110. package/types/node_modules/openai/error.d.mts +2 -0
  111. package/types/node_modules/openai/error.d.ts +2 -0
  112. package/types/node_modules/openai/helpers/audio.d.mts +9 -0
  113. package/types/node_modules/openai/helpers/audio.d.ts +9 -0
  114. package/types/node_modules/openai/helpers/zod.d.mts +70 -0
  115. package/types/node_modules/openai/helpers/zod.d.ts +70 -0
  116. package/types/node_modules/openai/index.d.mts +8 -0
  117. package/types/node_modules/openai/index.d.ts +8 -0
  118. package/types/node_modules/openai/internal/builtin-types.d.mts +73 -0
  119. package/types/node_modules/openai/internal/builtin-types.d.ts +73 -0
  120. package/types/node_modules/openai/internal/decoders/line.d.mts +17 -0
  121. package/types/node_modules/openai/internal/decoders/line.d.ts +17 -0
  122. package/types/node_modules/openai/internal/detect-platform.d.mts +15 -0
  123. package/types/node_modules/openai/internal/detect-platform.d.ts +15 -0
  124. package/types/node_modules/openai/internal/errors.d.mts +3 -0
  125. package/types/node_modules/openai/internal/errors.d.ts +3 -0
  126. package/types/node_modules/openai/internal/headers.d.mts +20 -0
  127. package/types/node_modules/openai/internal/headers.d.ts +20 -0
  128. package/types/node_modules/openai/internal/parse.d.mts +17 -0
  129. package/types/node_modules/openai/internal/parse.d.ts +17 -0
  130. package/types/node_modules/openai/internal/qs/formats.d.mts +7 -0
  131. package/types/node_modules/openai/internal/qs/formats.d.ts +7 -0
  132. package/types/node_modules/openai/internal/qs/index.d.mts +10 -0
  133. package/types/node_modules/openai/internal/qs/index.d.ts +10 -0
  134. package/types/node_modules/openai/internal/qs/stringify.d.mts +3 -0
  135. package/types/node_modules/openai/internal/qs/stringify.d.ts +3 -0
  136. package/types/node_modules/openai/internal/qs/types.d.mts +57 -0
  137. package/types/node_modules/openai/internal/qs/types.d.ts +57 -0
  138. package/types/node_modules/openai/internal/qs/utils.d.mts +15 -0
  139. package/types/node_modules/openai/internal/qs/utils.d.ts +15 -0
  140. package/types/node_modules/openai/internal/request-options.d.mts +78 -0
  141. package/types/node_modules/openai/internal/request-options.d.ts +78 -0
  142. package/types/node_modules/openai/internal/shim-types.d.mts +17 -0
  143. package/types/node_modules/openai/internal/shim-types.d.ts +17 -0
  144. package/types/node_modules/openai/internal/shims.d.mts +20 -0
  145. package/types/node_modules/openai/internal/shims.d.ts +20 -0
  146. package/types/node_modules/openai/internal/stream-utils.d.mts +8 -0
  147. package/types/node_modules/openai/internal/stream-utils.d.ts +8 -0
  148. package/types/node_modules/openai/internal/to-file.d.mts +45 -0
  149. package/types/node_modules/openai/internal/to-file.d.ts +45 -0
  150. package/types/node_modules/openai/internal/types.d.mts +69 -0
  151. package/types/node_modules/openai/internal/types.d.ts +69 -0
  152. package/types/node_modules/openai/internal/uploads.d.mts +42 -0
  153. package/types/node_modules/openai/internal/uploads.d.ts +42 -0
  154. package/types/node_modules/openai/internal/utils/base64.d.mts +9 -0
  155. package/types/node_modules/openai/internal/utils/base64.d.ts +9 -0
  156. package/types/node_modules/openai/internal/utils/bytes.d.mts +4 -0
  157. package/types/node_modules/openai/internal/utils/bytes.d.ts +4 -0
  158. package/types/node_modules/openai/internal/utils/env.d.mts +9 -0
  159. package/types/node_modules/openai/internal/utils/env.d.ts +9 -0
  160. package/types/node_modules/openai/internal/utils/log.d.mts +37 -0
  161. package/types/node_modules/openai/internal/utils/log.d.ts +37 -0
  162. package/types/node_modules/openai/internal/utils/path.d.mts +15 -0
  163. package/types/node_modules/openai/internal/utils/path.d.ts +15 -0
  164. package/types/node_modules/openai/internal/utils/sleep.d.mts +2 -0
  165. package/types/node_modules/openai/internal/utils/sleep.d.ts +2 -0
  166. package/types/node_modules/openai/internal/utils/uuid.d.mts +5 -0
  167. package/types/node_modules/openai/internal/utils/uuid.d.ts +5 -0
  168. package/types/node_modules/openai/internal/utils/values.d.mts +18 -0
  169. package/types/node_modules/openai/internal/utils/values.d.ts +18 -0
  170. package/types/node_modules/openai/internal/utils.d.mts +7 -0
  171. package/types/node_modules/openai/internal/utils.d.ts +7 -0
  172. package/types/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +59 -0
  173. package/types/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +59 -0
  174. package/types/node_modules/openai/lib/AssistantStream.d.mts +60 -0
  175. package/types/node_modules/openai/lib/AssistantStream.d.ts +60 -0
  176. package/types/node_modules/openai/lib/ChatCompletionRunner.d.mts +16 -0
  177. package/types/node_modules/openai/lib/ChatCompletionRunner.d.ts +16 -0
  178. package/types/node_modules/openai/lib/ChatCompletionStream.d.mts +208 -0
  179. package/types/node_modules/openai/lib/ChatCompletionStream.d.ts +208 -0
  180. package/types/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +19 -0
  181. package/types/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +19 -0
  182. package/types/node_modules/openai/lib/EventEmitter.d.mts +45 -0
  183. package/types/node_modules/openai/lib/EventEmitter.d.ts +45 -0
  184. package/types/node_modules/openai/lib/EventStream.d.mts +62 -0
  185. package/types/node_modules/openai/lib/EventStream.d.ts +62 -0
  186. package/types/node_modules/openai/lib/ResponsesParser.d.mts +36 -0
  187. package/types/node_modules/openai/lib/ResponsesParser.d.ts +36 -0
  188. package/types/node_modules/openai/lib/RunnableFunction.d.mts +83 -0
  189. package/types/node_modules/openai/lib/RunnableFunction.d.ts +83 -0
  190. package/types/node_modules/openai/lib/Util.d.mts +5 -0
  191. package/types/node_modules/openai/lib/Util.d.ts +5 -0
  192. package/types/node_modules/openai/lib/chatCompletionUtils.d.mts +5 -0
  193. package/types/node_modules/openai/lib/chatCompletionUtils.d.ts +5 -0
  194. package/types/node_modules/openai/lib/jsonschema.d.mts +106 -0
  195. package/types/node_modules/openai/lib/jsonschema.d.ts +106 -0
  196. package/types/node_modules/openai/lib/parser.d.mts +47 -0
  197. package/types/node_modules/openai/lib/parser.d.ts +47 -0
  198. package/types/node_modules/openai/lib/responses/EventTypes.d.mts +9 -0
  199. package/types/node_modules/openai/lib/responses/EventTypes.d.ts +9 -0
  200. package/types/node_modules/openai/lib/responses/ResponseStream.d.mts +59 -0
  201. package/types/node_modules/openai/lib/responses/ResponseStream.d.ts +59 -0
  202. package/types/node_modules/openai/package.json +233 -0
  203. package/types/node_modules/openai/pagination.d.mts +2 -0
  204. package/types/node_modules/openai/pagination.d.ts +2 -0
  205. package/types/node_modules/openai/realtime/index.d.mts +2 -0
  206. package/types/node_modules/openai/realtime/index.d.ts +2 -0
  207. package/types/node_modules/openai/realtime/internal-base.d.mts +45 -0
  208. package/types/node_modules/openai/realtime/internal-base.d.ts +45 -0
  209. package/types/node_modules/openai/realtime/websocket.d.mts +36 -0
  210. package/types/node_modules/openai/realtime/websocket.d.ts +36 -0
  211. package/types/node_modules/openai/realtime/ws.d.mts +27 -0
  212. package/types/node_modules/openai/realtime/ws.d.ts +27 -0
  213. package/types/node_modules/openai/resource.d.mts +2 -0
  214. package/types/node_modules/openai/resource.d.ts +2 -0
  215. package/types/node_modules/openai/resources/audio/audio.d.mts +26 -0
  216. package/types/node_modules/openai/resources/audio/audio.d.ts +26 -0
  217. package/types/node_modules/openai/resources/audio/index.d.mts +5 -0
  218. package/types/node_modules/openai/resources/audio/index.d.ts +5 -0
  219. package/types/node_modules/openai/resources/audio/speech.d.mts +64 -0
  220. package/types/node_modules/openai/resources/audio/speech.d.ts +64 -0
  221. package/types/node_modules/openai/resources/audio/transcriptions.d.mts +485 -0
  222. package/types/node_modules/openai/resources/audio/transcriptions.d.ts +485 -0
  223. package/types/node_modules/openai/resources/audio/translations.d.mts +81 -0
  224. package/types/node_modules/openai/resources/audio/translations.d.ts +81 -0
  225. package/types/node_modules/openai/resources/audio.d.mts +2 -0
  226. package/types/node_modules/openai/resources/audio.d.ts +2 -0
  227. package/types/node_modules/openai/resources/batches.d.mts +279 -0
  228. package/types/node_modules/openai/resources/batches.d.ts +279 -0
  229. package/types/node_modules/openai/resources/beta/assistants.d.mts +1232 -0
  230. package/types/node_modules/openai/resources/beta/assistants.d.ts +1232 -0
  231. package/types/node_modules/openai/resources/beta/beta.d.mts +18 -0
  232. package/types/node_modules/openai/resources/beta/beta.d.ts +18 -0
  233. package/types/node_modules/openai/resources/beta/index.d.mts +5 -0
  234. package/types/node_modules/openai/resources/beta/index.d.ts +5 -0
  235. package/types/node_modules/openai/resources/beta/realtime/index.d.mts +4 -0
  236. package/types/node_modules/openai/resources/beta/realtime/index.d.ts +4 -0
  237. package/types/node_modules/openai/resources/beta/realtime/realtime.d.mts +2332 -0
  238. package/types/node_modules/openai/resources/beta/realtime/realtime.d.ts +2332 -0
  239. package/types/node_modules/openai/resources/beta/realtime/sessions.d.mts +744 -0
  240. package/types/node_modules/openai/resources/beta/realtime/sessions.d.ts +744 -0
  241. package/types/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts +299 -0
  242. package/types/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts +299 -0
  243. package/types/node_modules/openai/resources/beta/realtime.d.mts +2 -0
  244. package/types/node_modules/openai/resources/beta/realtime.d.ts +2 -0
  245. package/types/node_modules/openai/resources/beta/threads/index.d.mts +4 -0
  246. package/types/node_modules/openai/resources/beta/threads/index.d.ts +4 -0
  247. package/types/node_modules/openai/resources/beta/threads/messages.d.mts +594 -0
  248. package/types/node_modules/openai/resources/beta/threads/messages.d.ts +594 -0
  249. package/types/node_modules/openai/resources/beta/threads/runs/index.d.mts +3 -0
  250. package/types/node_modules/openai/resources/beta/threads/runs/index.d.ts +3 -0
  251. package/types/node_modules/openai/resources/beta/threads/runs/runs.d.mts +733 -0
  252. package/types/node_modules/openai/resources/beta/threads/runs/runs.d.ts +733 -0
  253. package/types/node_modules/openai/resources/beta/threads/runs/steps.d.mts +615 -0
  254. package/types/node_modules/openai/resources/beta/threads/runs/steps.d.ts +615 -0
  255. package/types/node_modules/openai/resources/beta/threads/runs.d.mts +2 -0
  256. package/types/node_modules/openai/resources/beta/threads/runs.d.ts +2 -0
  257. package/types/node_modules/openai/resources/beta/threads/threads.d.mts +1044 -0
  258. package/types/node_modules/openai/resources/beta/threads/threads.d.ts +1044 -0
  259. package/types/node_modules/openai/resources/beta/threads.d.mts +2 -0
  260. package/types/node_modules/openai/resources/beta/threads.d.ts +2 -0
  261. package/types/node_modules/openai/resources/beta.d.mts +2 -0
  262. package/types/node_modules/openai/resources/beta.d.ts +2 -0
  263. package/types/node_modules/openai/resources/chat/chat.d.mts +13 -0
  264. package/types/node_modules/openai/resources/chat/chat.d.ts +13 -0
  265. package/types/node_modules/openai/resources/chat/completions/completions.d.mts +1627 -0
  266. package/types/node_modules/openai/resources/chat/completions/completions.d.ts +1627 -0
  267. package/types/node_modules/openai/resources/chat/completions/index.d.mts +4 -0
  268. package/types/node_modules/openai/resources/chat/completions/index.d.ts +4 -0
  269. package/types/node_modules/openai/resources/chat/completions/messages.d.mts +34 -0
  270. package/types/node_modules/openai/resources/chat/completions/messages.d.ts +34 -0
  271. package/types/node_modules/openai/resources/chat/completions.d.mts +2 -0
  272. package/types/node_modules/openai/resources/chat/completions.d.ts +2 -0
  273. package/types/node_modules/openai/resources/chat/index.d.mts +3 -0
  274. package/types/node_modules/openai/resources/chat/index.d.ts +3 -0
  275. package/types/node_modules/openai/resources/chat.d.mts +2 -0
  276. package/types/node_modules/openai/resources/chat.d.ts +2 -0
  277. package/types/node_modules/openai/resources/completions.d.mts +329 -0
  278. package/types/node_modules/openai/resources/completions.d.ts +329 -0
  279. package/types/node_modules/openai/resources/containers/containers.d.mts +200 -0
  280. package/types/node_modules/openai/resources/containers/containers.d.ts +200 -0
  281. package/types/node_modules/openai/resources/containers/files/content.d.mts +16 -0
  282. package/types/node_modules/openai/resources/containers/files/content.d.ts +16 -0
  283. package/types/node_modules/openai/resources/containers/files/files.d.mts +148 -0
  284. package/types/node_modules/openai/resources/containers/files/files.d.ts +148 -0
  285. package/types/node_modules/openai/resources/containers/files/index.d.mts +3 -0
  286. package/types/node_modules/openai/resources/containers/files/index.d.ts +3 -0
  287. package/types/node_modules/openai/resources/containers/files.d.mts +2 -0
  288. package/types/node_modules/openai/resources/containers/files.d.ts +2 -0
  289. package/types/node_modules/openai/resources/containers/index.d.mts +3 -0
  290. package/types/node_modules/openai/resources/containers/index.d.ts +3 -0
  291. package/types/node_modules/openai/resources/containers.d.mts +2 -0
  292. package/types/node_modules/openai/resources/containers.d.ts +2 -0
  293. package/types/node_modules/openai/resources/conversations/conversations.d.mts +176 -0
  294. package/types/node_modules/openai/resources/conversations/conversations.d.ts +176 -0
  295. package/types/node_modules/openai/resources/conversations/index.d.mts +3 -0
  296. package/types/node_modules/openai/resources/conversations/index.d.ts +3 -0
  297. package/types/node_modules/openai/resources/conversations/items.d.mts +367 -0
  298. package/types/node_modules/openai/resources/conversations/items.d.ts +367 -0
  299. package/types/node_modules/openai/resources/conversations.d.mts +2 -0
  300. package/types/node_modules/openai/resources/conversations.d.ts +2 -0
  301. package/types/node_modules/openai/resources/embeddings.d.mts +113 -0
  302. package/types/node_modules/openai/resources/embeddings.d.ts +113 -0
  303. package/types/node_modules/openai/resources/evals/evals.d.mts +735 -0
  304. package/types/node_modules/openai/resources/evals/evals.d.ts +735 -0
  305. package/types/node_modules/openai/resources/evals/index.d.mts +3 -0
  306. package/types/node_modules/openai/resources/evals/index.d.ts +3 -0
  307. package/types/node_modules/openai/resources/evals/runs/index.d.mts +3 -0
  308. package/types/node_modules/openai/resources/evals/runs/index.d.ts +3 -0
  309. package/types/node_modules/openai/resources/evals/runs/output-items.d.mts +382 -0
  310. package/types/node_modules/openai/resources/evals/runs/output-items.d.ts +382 -0
  311. package/types/node_modules/openai/resources/evals/runs/runs.d.mts +2290 -0
  312. package/types/node_modules/openai/resources/evals/runs/runs.d.ts +2290 -0
  313. package/types/node_modules/openai/resources/evals/runs.d.mts +2 -0
  314. package/types/node_modules/openai/resources/evals/runs.d.ts +2 -0
  315. package/types/node_modules/openai/resources/evals.d.mts +2 -0
  316. package/types/node_modules/openai/resources/evals.d.ts +2 -0
  317. package/types/node_modules/openai/resources/files.d.mts +164 -0
  318. package/types/node_modules/openai/resources/files.d.ts +164 -0
  319. package/types/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts +10 -0
  320. package/types/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts +10 -0
  321. package/types/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +119 -0
  322. package/types/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts +119 -0
  323. package/types/node_modules/openai/resources/fine-tuning/alpha/index.d.mts +3 -0
  324. package/types/node_modules/openai/resources/fine-tuning/alpha/index.d.ts +3 -0
  325. package/types/node_modules/openai/resources/fine-tuning/alpha.d.mts +2 -0
  326. package/types/node_modules/openai/resources/fine-tuning/alpha.d.ts +2 -0
  327. package/types/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +10 -0
  328. package/types/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.ts +10 -0
  329. package/types/node_modules/openai/resources/fine-tuning/checkpoints/index.d.mts +3 -0
  330. package/types/node_modules/openai/resources/fine-tuning/checkpoints/index.d.ts +3 -0
  331. package/types/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +160 -0
  332. package/types/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.ts +160 -0
  333. package/types/node_modules/openai/resources/fine-tuning/checkpoints.d.mts +2 -0
  334. package/types/node_modules/openai/resources/fine-tuning/checkpoints.d.ts +2 -0
  335. package/types/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts +22 -0
  336. package/types/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts +22 -0
  337. package/types/node_modules/openai/resources/fine-tuning/index.d.mts +6 -0
  338. package/types/node_modules/openai/resources/fine-tuning/index.d.ts +6 -0
  339. package/types/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +74 -0
  340. package/types/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +74 -0
  341. package/types/node_modules/openai/resources/fine-tuning/jobs/index.d.mts +3 -0
  342. package/types/node_modules/openai/resources/fine-tuning/jobs/index.d.ts +3 -0
  343. package/types/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +528 -0
  344. package/types/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +528 -0
  345. package/types/node_modules/openai/resources/fine-tuning/jobs.d.mts +2 -0
  346. package/types/node_modules/openai/resources/fine-tuning/jobs.d.ts +2 -0
  347. package/types/node_modules/openai/resources/fine-tuning/methods.d.mts +120 -0
  348. package/types/node_modules/openai/resources/fine-tuning/methods.d.ts +120 -0
  349. package/types/node_modules/openai/resources/fine-tuning.d.mts +2 -0
  350. package/types/node_modules/openai/resources/fine-tuning.d.ts +2 -0
  351. package/types/node_modules/openai/resources/graders/grader-models.d.mts +304 -0
  352. package/types/node_modules/openai/resources/graders/grader-models.d.ts +304 -0
  353. package/types/node_modules/openai/resources/graders/graders.d.mts +10 -0
  354. package/types/node_modules/openai/resources/graders/graders.d.ts +10 -0
  355. package/types/node_modules/openai/resources/graders/index.d.mts +3 -0
  356. package/types/node_modules/openai/resources/graders/index.d.ts +3 -0
  357. package/types/node_modules/openai/resources/graders.d.mts +2 -0
  358. package/types/node_modules/openai/resources/graders.d.ts +2 -0
  359. package/types/node_modules/openai/resources/images.d.mts +653 -0
  360. package/types/node_modules/openai/resources/images.d.ts +653 -0
  361. package/types/node_modules/openai/resources/index.d.mts +22 -0
  362. package/types/node_modules/openai/resources/index.d.ts +22 -0
  363. package/types/node_modules/openai/resources/models.d.mts +52 -0
  364. package/types/node_modules/openai/resources/models.d.ts +52 -0
  365. package/types/node_modules/openai/resources/moderations.d.mts +295 -0
  366. package/types/node_modules/openai/resources/moderations.d.ts +295 -0
  367. package/types/node_modules/openai/resources/realtime/client-secrets.d.mts +594 -0
  368. package/types/node_modules/openai/resources/realtime/client-secrets.d.ts +594 -0
  369. package/types/node_modules/openai/resources/realtime/index.d.mts +3 -0
  370. package/types/node_modules/openai/resources/realtime/index.d.ts +3 -0
  371. package/types/node_modules/openai/resources/realtime/realtime.d.mts +3828 -0
  372. package/types/node_modules/openai/resources/realtime/realtime.d.ts +3828 -0
  373. package/types/node_modules/openai/resources/realtime.d.mts +2 -0
  374. package/types/node_modules/openai/resources/realtime.d.ts +2 -0
  375. package/types/node_modules/openai/resources/responses/index.d.mts +3 -0
  376. package/types/node_modules/openai/resources/responses/index.d.ts +3 -0
  377. package/types/node_modules/openai/resources/responses/input-items.d.mts +65 -0
  378. package/types/node_modules/openai/resources/responses/input-items.d.ts +65 -0
  379. package/types/node_modules/openai/resources/responses/responses.d.mts +4705 -0
  380. package/types/node_modules/openai/resources/responses/responses.d.ts +4705 -0
  381. package/types/node_modules/openai/resources/responses.d.mts +2 -0
  382. package/types/node_modules/openai/resources/responses.d.ts +2 -0
  383. package/types/node_modules/openai/resources/shared.d.mts +265 -0
  384. package/types/node_modules/openai/resources/shared.d.ts +265 -0
  385. package/types/node_modules/openai/resources/uploads/index.d.mts +3 -0
  386. package/types/node_modules/openai/resources/uploads/index.d.ts +3 -0
  387. package/types/node_modules/openai/resources/uploads/parts.d.mts +51 -0
  388. package/types/node_modules/openai/resources/uploads/parts.d.ts +51 -0
  389. package/types/node_modules/openai/resources/uploads/uploads.d.mts +157 -0
  390. package/types/node_modules/openai/resources/uploads/uploads.d.ts +157 -0
  391. package/types/node_modules/openai/resources/uploads.d.mts +2 -0
  392. package/types/node_modules/openai/resources/uploads.d.ts +2 -0
  393. package/types/node_modules/openai/resources/vector-stores/file-batches.d.mts +172 -0
  394. package/types/node_modules/openai/resources/vector-stores/file-batches.d.ts +172 -0
  395. package/types/node_modules/openai/resources/vector-stores/files.d.mts +231 -0
  396. package/types/node_modules/openai/resources/vector-stores/files.d.ts +231 -0
  397. package/types/node_modules/openai/resources/vector-stores/index.d.mts +4 -0
  398. package/types/node_modules/openai/resources/vector-stores/index.d.ts +4 -0
  399. package/types/node_modules/openai/resources/vector-stores/vector-stores.d.mts +373 -0
  400. package/types/node_modules/openai/resources/vector-stores/vector-stores.d.ts +373 -0
  401. package/types/node_modules/openai/resources/vector-stores.d.mts +2 -0
  402. package/types/node_modules/openai/resources/vector-stores.d.ts +2 -0
  403. package/types/node_modules/openai/resources/webhooks.d.mts +587 -0
  404. package/types/node_modules/openai/resources/webhooks.d.ts +587 -0
  405. package/types/node_modules/openai/resources.d.mts +2 -0
  406. package/types/node_modules/openai/resources.d.ts +2 -0
  407. package/types/node_modules/openai/src/_vendor/zod-to-json-schema/LICENSE +15 -0
  408. package/types/node_modules/openai/streaming.d.mts +2 -0
  409. package/types/node_modules/openai/streaming.d.ts +2 -0
  410. package/types/node_modules/openai/uploads.d.mts +2 -0
  411. package/types/node_modules/openai/uploads.d.ts +2 -0
  412. package/types/node_modules/openai/version.d.mts +2 -0
  413. package/types/node_modules/openai/version.d.ts +2 -0
@@ -0,0 +1,594 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as ClientSecretsAPI from "./client-secrets.js";
3
+ import * as RealtimeAPI from "./realtime.js";
4
+ import * as ResponsesAPI from "../responses/responses.js";
5
+ import { APIPromise } from "../../core/api-promise.js";
6
+ import { RequestOptions } from "../../internal/request-options.js";
7
+ export declare class ClientSecrets extends APIResource {
8
+ /**
9
+ * Create a Realtime client secret with an associated session configuration.
10
+ */
11
+ create(body: ClientSecretCreateParams, options?: RequestOptions): APIPromise<ClientSecretCreateResponse>;
12
+ }
13
+ /**
14
+ * Ephemeral key returned by the API.
15
+ */
16
+ export interface RealtimeSessionClientSecret {
17
+ /**
18
+ * Timestamp for when the token expires. Currently, all tokens expire after one
19
+ * minute.
20
+ */
21
+ expires_at: number;
22
+ /**
23
+ * Ephemeral key usable in client environments to authenticate connections to the
24
+ * Realtime API. Use this in client-side environments rather than a standard API
25
+ * token, which should only be used server-side.
26
+ */
27
+ value: string;
28
+ }
29
+ /**
30
+ * A new Realtime session configuration, with an ephemeral key. Default TTL for
31
+ * keys is one minute.
32
+ */
33
+ export interface RealtimeSessionCreateResponse {
34
+ /**
35
+ * Ephemeral key returned by the API.
36
+ */
37
+ client_secret: RealtimeSessionClientSecret;
38
+ /**
39
+ * The type of session to create. Always `realtime` for the Realtime API.
40
+ */
41
+ type: 'realtime';
42
+ /**
43
+ * Configuration for input and output audio.
44
+ */
45
+ audio?: RealtimeSessionCreateResponse.Audio;
46
+ /**
47
+ * Additional fields to include in server outputs.
48
+ *
49
+ * `item.input_audio_transcription.logprobs`: Include logprobs for input audio
50
+ * transcription.
51
+ */
52
+ include?: Array<'item.input_audio_transcription.logprobs'>;
53
+ /**
54
+ * The default system instructions (i.e. system message) prepended to model calls.
55
+ * This field allows the client to guide the model on desired responses. The model
56
+ * can be instructed on response content and format, (e.g. "be extremely succinct",
57
+ * "act friendly", "here are examples of good responses") and on audio behavior
58
+ * (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The
59
+ * instructions are not guaranteed to be followed by the model, but they provide
60
+ * guidance to the model on the desired behavior.
61
+ *
62
+ * Note that the server sets default instructions which will be used if this field
63
+ * is not set and are visible in the `session.created` event at the start of the
64
+ * session.
65
+ */
66
+ instructions?: string;
67
+ /**
68
+ * Maximum number of output tokens for a single assistant response, inclusive of
69
+ * tool calls. Provide an integer between 1 and 4096 to limit output tokens, or
70
+ * `inf` for the maximum available tokens for a given model. Defaults to `inf`.
71
+ */
72
+ max_output_tokens?: number | 'inf';
73
+ /**
74
+ * The Realtime model used for this session.
75
+ */
76
+ model?: (string & {}) | 'gpt-realtime' | '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';
77
+ /**
78
+ * The set of modalities the model can respond with. It defaults to `["audio"]`,
79
+ * indicating that the model will respond with audio plus a transcript. `["text"]`
80
+ * can be used to make the model respond with text only. It is not possible to
81
+ * request both `text` and `audio` at the same time.
82
+ */
83
+ output_modalities?: Array<'text' | 'audio'>;
84
+ /**
85
+ * Reference to a prompt template and its variables.
86
+ * [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
87
+ */
88
+ prompt?: ResponsesAPI.ResponsePrompt | null;
89
+ /**
90
+ * How the model chooses tools. Provide one of the string modes or force a specific
91
+ * function/MCP tool.
92
+ */
93
+ tool_choice?: ResponsesAPI.ToolChoiceOptions | ResponsesAPI.ToolChoiceFunction | ResponsesAPI.ToolChoiceMcp;
94
+ /**
95
+ * Tools available to the model.
96
+ */
97
+ tools?: Array<RealtimeAPI.RealtimeFunctionTool | RealtimeSessionCreateResponse.McpTool>;
98
+ /**
99
+ * Realtime API can write session traces to the
100
+ * [Traces Dashboard](/logs?api=traces). Set to null to disable tracing. Once
101
+ * tracing is enabled for a session, the configuration cannot be modified.
102
+ *
103
+ * `auto` will create a trace for the session with default values for the workflow
104
+ * name, group id, and metadata.
105
+ */
106
+ tracing?: 'auto' | RealtimeSessionCreateResponse.TracingConfiguration | null;
107
+ /**
108
+ * Controls how the realtime conversation is truncated prior to model inference.
109
+ * The default is `auto`.
110
+ */
111
+ truncation?: RealtimeAPI.RealtimeTruncation;
112
+ }
113
+ export declare namespace RealtimeSessionCreateResponse {
114
+ /**
115
+ * Configuration for input and output audio.
116
+ */
117
+ interface Audio {
118
+ input?: Audio.Input;
119
+ output?: Audio.Output;
120
+ }
121
+ namespace Audio {
122
+ interface Input {
123
+ /**
124
+ * The format of the input audio.
125
+ */
126
+ format?: RealtimeAPI.RealtimeAudioFormats;
127
+ /**
128
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
129
+ * off. Noise reduction filters audio added to the input audio buffer before it is
130
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
131
+ * detection accuracy (reducing false positives) and model performance by improving
132
+ * perception of the input audio.
133
+ */
134
+ noise_reduction?: Input.NoiseReduction;
135
+ /**
136
+ * Configuration for input audio transcription, defaults to off and can be set to
137
+ * `null` to turn off once on. Input audio transcription is not native to the
138
+ * model, since the model consumes audio directly. Transcription runs
139
+ * asynchronously through
140
+ * [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription)
141
+ * and should be treated as guidance of input audio content rather than precisely
142
+ * what the model heard. The client can optionally set the language and prompt for
143
+ * transcription, these offer additional guidance to the transcription service.
144
+ */
145
+ transcription?: RealtimeAPI.AudioTranscription;
146
+ /**
147
+ * Configuration for turn detection, ether Server VAD or Semantic VAD. This can be
148
+ * set to `null` to turn off, in which case the client must manually trigger model
149
+ * response.
150
+ *
151
+ * Server VAD means that the model will detect the start and end of speech based on
152
+ * audio volume and respond at the end of user speech.
153
+ *
154
+ * Semantic VAD is more advanced and uses a turn detection model (in conjunction
155
+ * with VAD) to semantically estimate whether the user has finished speaking, then
156
+ * dynamically sets a timeout based on this probability. For example, if user audio
157
+ * trails off with "uhhm", the model will score a low probability of turn end and
158
+ * wait longer for the user to continue speaking. This can be useful for more
159
+ * natural conversations, but may have a higher latency.
160
+ */
161
+ turn_detection?: Input.ServerVad | Input.SemanticVad | null;
162
+ }
163
+ namespace Input {
164
+ /**
165
+ * Configuration for input audio noise reduction. This can be set to `null` to turn
166
+ * off. Noise reduction filters audio added to the input audio buffer before it is
167
+ * sent to VAD and the model. Filtering the audio can improve VAD and turn
168
+ * detection accuracy (reducing false positives) and model performance by improving
169
+ * perception of the input audio.
170
+ */
171
+ interface NoiseReduction {
172
+ /**
173
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
174
+ * headphones, `far_field` is for far-field microphones such as laptop or
175
+ * conference room microphones.
176
+ */
177
+ type?: RealtimeAPI.NoiseReductionType;
178
+ }
179
+ /**
180
+ * Server-side voice activity detection (VAD) which flips on when user speech is
181
+ * detected and off after a period of silence.
182
+ */
183
+ interface ServerVad {
184
+ /**
185
+ * Type of turn detection, `server_vad` to turn on simple Server VAD.
186
+ */
187
+ type: 'server_vad';
188
+ /**
189
+ * Whether or not to automatically generate a response when a VAD stop event
190
+ * occurs.
191
+ */
192
+ create_response?: boolean;
193
+ /**
194
+ * Optional timeout after which a model response will be triggered automatically.
195
+ * This is useful for situations in which a long pause from the user is unexpected,
196
+ * such as a phone call. The model will effectively prompt the user to continue the
197
+ * conversation based on the current context.
198
+ *
199
+ * The timeout value will be applied after the last model response's audio has
200
+ * finished playing, i.e. it's set to the `response.done` time plus audio playback
201
+ * duration.
202
+ *
203
+ * An `input_audio_buffer.timeout_triggered` event (plus events associated with the
204
+ * Response) will be emitted when the timeout is reached. Idle timeout is currently
205
+ * only supported for `server_vad` mode.
206
+ */
207
+ idle_timeout_ms?: number | null;
208
+ /**
209
+ * Whether or not to automatically interrupt any ongoing response with output to
210
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
211
+ * occurs.
212
+ */
213
+ interrupt_response?: boolean;
214
+ /**
215
+ * Used only for `server_vad` mode. Amount of audio to include before the VAD
216
+ * detected speech (in milliseconds). Defaults to 300ms.
217
+ */
218
+ prefix_padding_ms?: number;
219
+ /**
220
+ * Used only for `server_vad` mode. Duration of silence to detect speech stop (in
221
+ * milliseconds). Defaults to 500ms. With shorter values the model will respond
222
+ * more quickly, but may jump in on short pauses from the user.
223
+ */
224
+ silence_duration_ms?: number;
225
+ /**
226
+ * Used only for `server_vad` mode. Activation threshold for VAD (0.0 to 1.0), this
227
+ * defaults to 0.5. A higher threshold will require louder audio to activate the
228
+ * model, and thus might perform better in noisy environments.
229
+ */
230
+ threshold?: number;
231
+ }
232
+ /**
233
+ * Server-side semantic turn detection which uses a model to determine when the
234
+ * user has finished speaking.
235
+ */
236
+ interface SemanticVad {
237
+ /**
238
+ * Type of turn detection, `semantic_vad` to turn on Semantic VAD.
239
+ */
240
+ type: 'semantic_vad';
241
+ /**
242
+ * Whether or not to automatically generate a response when a VAD stop event
243
+ * occurs.
244
+ */
245
+ create_response?: boolean;
246
+ /**
247
+ * Used only for `semantic_vad` mode. The eagerness of the model to respond. `low`
248
+ * will wait longer for the user to continue speaking, `high` will respond more
249
+ * quickly. `auto` is the default and is equivalent to `medium`. `low`, `medium`,
250
+ * and `high` have max timeouts of 8s, 4s, and 2s respectively.
251
+ */
252
+ eagerness?: 'low' | 'medium' | 'high' | 'auto';
253
+ /**
254
+ * Whether or not to automatically interrupt any ongoing response with output to
255
+ * the default conversation (i.e. `conversation` of `auto`) when a VAD start event
256
+ * occurs.
257
+ */
258
+ interrupt_response?: boolean;
259
+ }
260
+ }
261
+ interface Output {
262
+ /**
263
+ * The format of the output audio.
264
+ */
265
+ format?: RealtimeAPI.RealtimeAudioFormats;
266
+ /**
267
+ * The speed of the model's spoken response as a multiple of the original speed.
268
+ * 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed.
269
+ * This value can only be changed in between model turns, not while a response is
270
+ * in progress.
271
+ *
272
+ * This parameter is a post-processing adjustment to the audio after it is
273
+ * generated, it's also possible to prompt the model to speak faster or slower.
274
+ */
275
+ speed?: number;
276
+ /**
277
+ * The voice the model uses to respond. Voice cannot be changed during the session
278
+ * once the model has responded with audio at least once. Current voice options are
279
+ * `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`, `shimmer`, `verse`, `marin`,
280
+ * and `cedar`. We recommend `marin` and `cedar` for best quality.
281
+ */
282
+ voice?: (string & {}) | 'alloy' | 'ash' | 'ballad' | 'coral' | 'echo' | 'sage' | 'shimmer' | 'verse' | 'marin' | 'cedar';
283
+ }
284
+ }
285
+ /**
286
+ * Give the model access to additional tools via remote Model Context Protocol
287
+ * (MCP) servers.
288
+ * [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
289
+ */
290
+ interface McpTool {
291
+ /**
292
+ * A label for this MCP server, used to identify it in tool calls.
293
+ */
294
+ server_label: string;
295
+ /**
296
+ * The type of the MCP tool. Always `mcp`.
297
+ */
298
+ type: 'mcp';
299
+ /**
300
+ * List of allowed tool names or a filter object.
301
+ */
302
+ allowed_tools?: Array<string> | McpTool.McpToolFilter | null;
303
+ /**
304
+ * An OAuth access token that can be used with a remote MCP server, either with a
305
+ * custom MCP server URL or a service connector. Your application must handle the
306
+ * OAuth authorization flow and provide the token here.
307
+ */
308
+ authorization?: string;
309
+ /**
310
+ * Identifier for service connectors, like those available in ChatGPT. One of
311
+ * `server_url` or `connector_id` must be provided. Learn more about service
312
+ * connectors
313
+ * [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
314
+ *
315
+ * Currently supported `connector_id` values are:
316
+ *
317
+ * - Dropbox: `connector_dropbox`
318
+ * - Gmail: `connector_gmail`
319
+ * - Google Calendar: `connector_googlecalendar`
320
+ * - Google Drive: `connector_googledrive`
321
+ * - Microsoft Teams: `connector_microsoftteams`
322
+ * - Outlook Calendar: `connector_outlookcalendar`
323
+ * - Outlook Email: `connector_outlookemail`
324
+ * - SharePoint: `connector_sharepoint`
325
+ */
326
+ connector_id?: 'connector_dropbox' | 'connector_gmail' | 'connector_googlecalendar' | 'connector_googledrive' | 'connector_microsoftteams' | 'connector_outlookcalendar' | 'connector_outlookemail' | 'connector_sharepoint';
327
+ /**
328
+ * Optional HTTP headers to send to the MCP server. Use for authentication or other
329
+ * purposes.
330
+ */
331
+ headers?: {
332
+ [key: string]: string;
333
+ } | null;
334
+ /**
335
+ * Specify which of the MCP server's tools require approval.
336
+ */
337
+ require_approval?: McpTool.McpToolApprovalFilter | 'always' | 'never' | null;
338
+ /**
339
+ * Optional description of the MCP server, used to provide more context.
340
+ */
341
+ server_description?: string;
342
+ /**
343
+ * The URL for the MCP server. One of `server_url` or `connector_id` must be
344
+ * provided.
345
+ */
346
+ server_url?: string;
347
+ }
348
+ namespace McpTool {
349
+ /**
350
+ * A filter object to specify which tools are allowed.
351
+ */
352
+ interface McpToolFilter {
353
+ /**
354
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
355
+ * is
356
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
357
+ * it will match this filter.
358
+ */
359
+ read_only?: boolean;
360
+ /**
361
+ * List of allowed tool names.
362
+ */
363
+ tool_names?: Array<string>;
364
+ }
365
+ /**
366
+ * Specify which of the MCP server's tools require approval. Can be `always`,
367
+ * `never`, or a filter object associated with tools that require approval.
368
+ */
369
+ interface McpToolApprovalFilter {
370
+ /**
371
+ * A filter object to specify which tools are allowed.
372
+ */
373
+ always?: McpToolApprovalFilter.Always;
374
+ /**
375
+ * A filter object to specify which tools are allowed.
376
+ */
377
+ never?: McpToolApprovalFilter.Never;
378
+ }
379
+ namespace McpToolApprovalFilter {
380
+ /**
381
+ * A filter object to specify which tools are allowed.
382
+ */
383
+ interface Always {
384
+ /**
385
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
386
+ * is
387
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
388
+ * it will match this filter.
389
+ */
390
+ read_only?: boolean;
391
+ /**
392
+ * List of allowed tool names.
393
+ */
394
+ tool_names?: Array<string>;
395
+ }
396
+ /**
397
+ * A filter object to specify which tools are allowed.
398
+ */
399
+ interface Never {
400
+ /**
401
+ * Indicates whether or not a tool modifies data or is read-only. If an MCP server
402
+ * is
403
+ * [annotated with `readOnlyHint`](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint),
404
+ * it will match this filter.
405
+ */
406
+ read_only?: boolean;
407
+ /**
408
+ * List of allowed tool names.
409
+ */
410
+ tool_names?: Array<string>;
411
+ }
412
+ }
413
+ }
414
+ /**
415
+ * Granular configuration for tracing.
416
+ */
417
+ interface TracingConfiguration {
418
+ /**
419
+ * The group id to attach to this trace to enable filtering and grouping in the
420
+ * Traces Dashboard.
421
+ */
422
+ group_id?: string;
423
+ /**
424
+ * The arbitrary metadata to attach to this trace to enable filtering in the Traces
425
+ * Dashboard.
426
+ */
427
+ metadata?: unknown;
428
+ /**
429
+ * The name of the workflow to attach to this trace. This is used to name the trace
430
+ * in the Traces Dashboard.
431
+ */
432
+ workflow_name?: string;
433
+ }
434
+ }
435
+ /**
436
+ * A Realtime transcription session configuration object.
437
+ */
438
+ export interface RealtimeTranscriptionSessionCreateResponse {
439
+ /**
440
+ * Unique identifier for the session that looks like `sess_1234567890abcdef`.
441
+ */
442
+ id: string;
443
+ /**
444
+ * The object type. Always `realtime.transcription_session`.
445
+ */
446
+ object: string;
447
+ /**
448
+ * The type of session. Always `transcription` for transcription sessions.
449
+ */
450
+ type: 'transcription';
451
+ /**
452
+ * Configuration for input audio for the session.
453
+ */
454
+ audio?: RealtimeTranscriptionSessionCreateResponse.Audio;
455
+ /**
456
+ * Expiration timestamp for the session, in seconds since epoch.
457
+ */
458
+ expires_at?: number;
459
+ /**
460
+ * Additional fields to include in server outputs.
461
+ *
462
+ * - `item.input_audio_transcription.logprobs`: Include logprobs for input audio
463
+ * transcription.
464
+ */
465
+ include?: Array<'item.input_audio_transcription.logprobs'>;
466
+ }
467
+ export declare namespace RealtimeTranscriptionSessionCreateResponse {
468
+ /**
469
+ * Configuration for input audio for the session.
470
+ */
471
+ interface Audio {
472
+ input?: Audio.Input;
473
+ }
474
+ namespace Audio {
475
+ interface Input {
476
+ /**
477
+ * The PCM audio format. Only a 24kHz sample rate is supported.
478
+ */
479
+ format?: RealtimeAPI.RealtimeAudioFormats;
480
+ /**
481
+ * Configuration for input audio noise reduction.
482
+ */
483
+ noise_reduction?: Input.NoiseReduction;
484
+ /**
485
+ * Configuration of the transcription model.
486
+ */
487
+ transcription?: RealtimeAPI.AudioTranscription;
488
+ /**
489
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
490
+ * means that the model will detect the start and end of speech based on audio
491
+ * volume and respond at the end of user speech.
492
+ */
493
+ turn_detection?: ClientSecretsAPI.RealtimeTranscriptionSessionTurnDetection;
494
+ }
495
+ namespace Input {
496
+ /**
497
+ * Configuration for input audio noise reduction.
498
+ */
499
+ interface NoiseReduction {
500
+ /**
501
+ * Type of noise reduction. `near_field` is for close-talking microphones such as
502
+ * headphones, `far_field` is for far-field microphones such as laptop or
503
+ * conference room microphones.
504
+ */
505
+ type?: RealtimeAPI.NoiseReductionType;
506
+ }
507
+ }
508
+ }
509
+ }
510
+ /**
511
+ * Configuration for turn detection. Can be set to `null` to turn off. Server VAD
512
+ * means that the model will detect the start and end of speech based on audio
513
+ * volume and respond at the end of user speech.
514
+ */
515
+ export interface RealtimeTranscriptionSessionTurnDetection {
516
+ /**
517
+ * Amount of audio to include before the VAD detected speech (in milliseconds).
518
+ * Defaults to 300ms.
519
+ */
520
+ prefix_padding_ms?: number;
521
+ /**
522
+ * Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms.
523
+ * With shorter values the model will respond more quickly, but may jump in on
524
+ * short pauses from the user.
525
+ */
526
+ silence_duration_ms?: number;
527
+ /**
528
+ * Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher
529
+ * threshold will require louder audio to activate the model, and thus might
530
+ * perform better in noisy environments.
531
+ */
532
+ threshold?: number;
533
+ /**
534
+ * Type of turn detection, only `server_vad` is currently supported.
535
+ */
536
+ type?: string;
537
+ }
538
+ /**
539
+ * Response from creating a session and client secret for the Realtime API.
540
+ */
541
+ export interface ClientSecretCreateResponse {
542
+ /**
543
+ * Expiration timestamp for the client secret, in seconds since epoch.
544
+ */
545
+ expires_at: number;
546
+ /**
547
+ * The session configuration for either a realtime or transcription session.
548
+ */
549
+ session: RealtimeSessionCreateResponse | RealtimeTranscriptionSessionCreateResponse;
550
+ /**
551
+ * The generated client secret value.
552
+ */
553
+ value: string;
554
+ }
555
+ export interface ClientSecretCreateParams {
556
+ /**
557
+ * Configuration for the client secret expiration. Expiration refers to the time
558
+ * after which a client secret will no longer be valid for creating sessions. The
559
+ * session itself may continue after that time once started. A secret can be used
560
+ * to create multiple sessions until it expires.
561
+ */
562
+ expires_after?: ClientSecretCreateParams.ExpiresAfter;
563
+ /**
564
+ * Session configuration to use for the client secret. Choose either a realtime
565
+ * session or a transcription session.
566
+ */
567
+ session?: RealtimeAPI.RealtimeSessionCreateRequest | RealtimeAPI.RealtimeTranscriptionSessionCreateRequest;
568
+ }
569
+ export declare namespace ClientSecretCreateParams {
570
+ /**
571
+ * Configuration for the client secret expiration. Expiration refers to the time
572
+ * after which a client secret will no longer be valid for creating sessions. The
573
+ * session itself may continue after that time once started. A secret can be used
574
+ * to create multiple sessions until it expires.
575
+ */
576
+ interface ExpiresAfter {
577
+ /**
578
+ * The anchor point for the client secret expiration, meaning that `seconds` will
579
+ * be added to the `created_at` time of the client secret to produce an expiration
580
+ * timestamp. Only `created_at` is currently supported.
581
+ */
582
+ anchor?: 'created_at';
583
+ /**
584
+ * The number of seconds from the anchor point to the expiration. Select a value
585
+ * between `10` and `7200` (2 hours). This default to 600 seconds (10 minutes) if
586
+ * not specified.
587
+ */
588
+ seconds?: number;
589
+ }
590
+ }
591
+ export declare namespace ClientSecrets {
592
+ export { type RealtimeSessionClientSecret as RealtimeSessionClientSecret, type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeTranscriptionSessionCreateResponse as RealtimeTranscriptionSessionCreateResponse, type RealtimeTranscriptionSessionTurnDetection as RealtimeTranscriptionSessionTurnDetection, type ClientSecretCreateResponse as ClientSecretCreateResponse, type ClientSecretCreateParams as ClientSecretCreateParams, };
593
+ }
594
+ //# sourceMappingURL=client-secrets.d.ts.map
@@ -0,0 +1,3 @@
1
+ export { ClientSecrets, type RealtimeSessionClientSecret, type RealtimeSessionCreateResponse, type RealtimeTranscriptionSessionCreateResponse, type RealtimeTranscriptionSessionTurnDetection, type ClientSecretCreateResponse, type ClientSecretCreateParams, } from "./client-secrets.mjs";
2
+ export { Realtime } from "./realtime.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,3 @@
1
+ export { ClientSecrets, type RealtimeSessionClientSecret, type RealtimeSessionCreateResponse, type RealtimeTranscriptionSessionCreateResponse, type RealtimeTranscriptionSessionTurnDetection, type ClientSecretCreateResponse, type ClientSecretCreateParams, } from "./client-secrets.js";
2
+ export { Realtime } from "./realtime.js";
3
+ //# sourceMappingURL=index.d.ts.map