@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,157 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as FilesAPI from "../files.mjs";
3
+ import * as PartsAPI from "./parts.mjs";
4
+ import { PartCreateParams, Parts, UploadPart } from "./parts.mjs";
5
+ import { APIPromise } from "../../core/api-promise.mjs";
6
+ import { RequestOptions } from "../../internal/request-options.mjs";
7
+ export declare class Uploads extends APIResource {
8
+ parts: PartsAPI.Parts;
9
+ /**
10
+ * Creates an intermediate
11
+ * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object
12
+ * that you can add
13
+ * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.
14
+ * Currently, an Upload can accept at most 8 GB in total and expires after an hour
15
+ * after you create it.
16
+ *
17
+ * Once you complete the Upload, we will create a
18
+ * [File](https://platform.openai.com/docs/api-reference/files/object) object that
19
+ * contains all the parts you uploaded. This File is usable in the rest of our
20
+ * platform as a regular File object.
21
+ *
22
+ * For certain `purpose` values, the correct `mime_type` must be specified. Please
23
+ * refer to documentation for the
24
+ * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).
25
+ *
26
+ * For guidance on the proper filename extensions for each purpose, please follow
27
+ * the documentation on
28
+ * [creating a File](https://platform.openai.com/docs/api-reference/files/create).
29
+ */
30
+ create(body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
31
+ /**
32
+ * Cancels the Upload. No Parts may be added after an Upload is cancelled.
33
+ */
34
+ cancel(uploadID: string, options?: RequestOptions): APIPromise<Upload>;
35
+ /**
36
+ * Completes the
37
+ * [Upload](https://platform.openai.com/docs/api-reference/uploads/object).
38
+ *
39
+ * Within the returned Upload object, there is a nested
40
+ * [File](https://platform.openai.com/docs/api-reference/files/object) object that
41
+ * is ready to use in the rest of the platform.
42
+ *
43
+ * You can specify the order of the Parts by passing in an ordered list of the Part
44
+ * IDs.
45
+ *
46
+ * The number of bytes uploaded upon completion must match the number of bytes
47
+ * initially specified when creating the Upload object. No Parts may be added after
48
+ * an Upload is completed.
49
+ */
50
+ complete(uploadID: string, body: UploadCompleteParams, options?: RequestOptions): APIPromise<Upload>;
51
+ }
52
+ /**
53
+ * The Upload object can accept byte chunks in the form of Parts.
54
+ */
55
+ export interface Upload {
56
+ /**
57
+ * The Upload unique identifier, which can be referenced in API endpoints.
58
+ */
59
+ id: string;
60
+ /**
61
+ * The intended number of bytes to be uploaded.
62
+ */
63
+ bytes: number;
64
+ /**
65
+ * The Unix timestamp (in seconds) for when the Upload was created.
66
+ */
67
+ created_at: number;
68
+ /**
69
+ * The Unix timestamp (in seconds) for when the Upload will expire.
70
+ */
71
+ expires_at: number;
72
+ /**
73
+ * The name of the file to be uploaded.
74
+ */
75
+ filename: string;
76
+ /**
77
+ * The object type, which is always "upload".
78
+ */
79
+ object: 'upload';
80
+ /**
81
+ * The intended purpose of the file.
82
+ * [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose)
83
+ * for acceptable values.
84
+ */
85
+ purpose: string;
86
+ /**
87
+ * The status of the Upload.
88
+ */
89
+ status: 'pending' | 'completed' | 'cancelled' | 'expired';
90
+ /**
91
+ * The `File` object represents a document that has been uploaded to OpenAI.
92
+ */
93
+ file?: FilesAPI.FileObject | null;
94
+ }
95
+ export interface UploadCreateParams {
96
+ /**
97
+ * The number of bytes in the file you are uploading.
98
+ */
99
+ bytes: number;
100
+ /**
101
+ * The name of the file to upload.
102
+ */
103
+ filename: string;
104
+ /**
105
+ * The MIME type of the file.
106
+ *
107
+ * This must fall within the supported MIME types for your file purpose. See the
108
+ * supported MIME types for assistants and vision.
109
+ */
110
+ mime_type: string;
111
+ /**
112
+ * The intended purpose of the uploaded file.
113
+ *
114
+ * See the
115
+ * [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose).
116
+ */
117
+ purpose: FilesAPI.FilePurpose;
118
+ /**
119
+ * The expiration policy for a file. By default, files with `purpose=batch` expire
120
+ * after 30 days and all other files are persisted until they are manually deleted.
121
+ */
122
+ expires_after?: UploadCreateParams.ExpiresAfter;
123
+ }
124
+ export declare namespace UploadCreateParams {
125
+ /**
126
+ * The expiration policy for a file. By default, files with `purpose=batch` expire
127
+ * after 30 days and all other files are persisted until they are manually deleted.
128
+ */
129
+ interface ExpiresAfter {
130
+ /**
131
+ * Anchor timestamp after which the expiration policy applies. Supported anchors:
132
+ * `created_at`.
133
+ */
134
+ anchor: 'created_at';
135
+ /**
136
+ * The number of seconds after the anchor time that the file will expire. Must be
137
+ * between 3600 (1 hour) and 2592000 (30 days).
138
+ */
139
+ seconds: number;
140
+ }
141
+ }
142
+ export interface UploadCompleteParams {
143
+ /**
144
+ * The ordered list of Part IDs.
145
+ */
146
+ part_ids: Array<string>;
147
+ /**
148
+ * The optional md5 checksum for the file contents to verify if the bytes uploaded
149
+ * matches what you expect.
150
+ */
151
+ md5?: string;
152
+ }
153
+ export declare namespace Uploads {
154
+ export { type Upload as Upload, type UploadCreateParams as UploadCreateParams, type UploadCompleteParams as UploadCompleteParams, };
155
+ export { Parts as Parts, type UploadPart as UploadPart, type PartCreateParams as PartCreateParams };
156
+ }
157
+ //# sourceMappingURL=uploads.d.mts.map
@@ -0,0 +1,157 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as FilesAPI from "../files.js";
3
+ import * as PartsAPI from "./parts.js";
4
+ import { PartCreateParams, Parts, UploadPart } from "./parts.js";
5
+ import { APIPromise } from "../../core/api-promise.js";
6
+ import { RequestOptions } from "../../internal/request-options.js";
7
+ export declare class Uploads extends APIResource {
8
+ parts: PartsAPI.Parts;
9
+ /**
10
+ * Creates an intermediate
11
+ * [Upload](https://platform.openai.com/docs/api-reference/uploads/object) object
12
+ * that you can add
13
+ * [Parts](https://platform.openai.com/docs/api-reference/uploads/part-object) to.
14
+ * Currently, an Upload can accept at most 8 GB in total and expires after an hour
15
+ * after you create it.
16
+ *
17
+ * Once you complete the Upload, we will create a
18
+ * [File](https://platform.openai.com/docs/api-reference/files/object) object that
19
+ * contains all the parts you uploaded. This File is usable in the rest of our
20
+ * platform as a regular File object.
21
+ *
22
+ * For certain `purpose` values, the correct `mime_type` must be specified. Please
23
+ * refer to documentation for the
24
+ * [supported MIME types for your use case](https://platform.openai.com/docs/assistants/tools/file-search#supported-files).
25
+ *
26
+ * For guidance on the proper filename extensions for each purpose, please follow
27
+ * the documentation on
28
+ * [creating a File](https://platform.openai.com/docs/api-reference/files/create).
29
+ */
30
+ create(body: UploadCreateParams, options?: RequestOptions): APIPromise<Upload>;
31
+ /**
32
+ * Cancels the Upload. No Parts may be added after an Upload is cancelled.
33
+ */
34
+ cancel(uploadID: string, options?: RequestOptions): APIPromise<Upload>;
35
+ /**
36
+ * Completes the
37
+ * [Upload](https://platform.openai.com/docs/api-reference/uploads/object).
38
+ *
39
+ * Within the returned Upload object, there is a nested
40
+ * [File](https://platform.openai.com/docs/api-reference/files/object) object that
41
+ * is ready to use in the rest of the platform.
42
+ *
43
+ * You can specify the order of the Parts by passing in an ordered list of the Part
44
+ * IDs.
45
+ *
46
+ * The number of bytes uploaded upon completion must match the number of bytes
47
+ * initially specified when creating the Upload object. No Parts may be added after
48
+ * an Upload is completed.
49
+ */
50
+ complete(uploadID: string, body: UploadCompleteParams, options?: RequestOptions): APIPromise<Upload>;
51
+ }
52
+ /**
53
+ * The Upload object can accept byte chunks in the form of Parts.
54
+ */
55
+ export interface Upload {
56
+ /**
57
+ * The Upload unique identifier, which can be referenced in API endpoints.
58
+ */
59
+ id: string;
60
+ /**
61
+ * The intended number of bytes to be uploaded.
62
+ */
63
+ bytes: number;
64
+ /**
65
+ * The Unix timestamp (in seconds) for when the Upload was created.
66
+ */
67
+ created_at: number;
68
+ /**
69
+ * The Unix timestamp (in seconds) for when the Upload will expire.
70
+ */
71
+ expires_at: number;
72
+ /**
73
+ * The name of the file to be uploaded.
74
+ */
75
+ filename: string;
76
+ /**
77
+ * The object type, which is always "upload".
78
+ */
79
+ object: 'upload';
80
+ /**
81
+ * The intended purpose of the file.
82
+ * [Please refer here](https://platform.openai.com/docs/api-reference/files/object#files/object-purpose)
83
+ * for acceptable values.
84
+ */
85
+ purpose: string;
86
+ /**
87
+ * The status of the Upload.
88
+ */
89
+ status: 'pending' | 'completed' | 'cancelled' | 'expired';
90
+ /**
91
+ * The `File` object represents a document that has been uploaded to OpenAI.
92
+ */
93
+ file?: FilesAPI.FileObject | null;
94
+ }
95
+ export interface UploadCreateParams {
96
+ /**
97
+ * The number of bytes in the file you are uploading.
98
+ */
99
+ bytes: number;
100
+ /**
101
+ * The name of the file to upload.
102
+ */
103
+ filename: string;
104
+ /**
105
+ * The MIME type of the file.
106
+ *
107
+ * This must fall within the supported MIME types for your file purpose. See the
108
+ * supported MIME types for assistants and vision.
109
+ */
110
+ mime_type: string;
111
+ /**
112
+ * The intended purpose of the uploaded file.
113
+ *
114
+ * See the
115
+ * [documentation on File purposes](https://platform.openai.com/docs/api-reference/files/create#files-create-purpose).
116
+ */
117
+ purpose: FilesAPI.FilePurpose;
118
+ /**
119
+ * The expiration policy for a file. By default, files with `purpose=batch` expire
120
+ * after 30 days and all other files are persisted until they are manually deleted.
121
+ */
122
+ expires_after?: UploadCreateParams.ExpiresAfter;
123
+ }
124
+ export declare namespace UploadCreateParams {
125
+ /**
126
+ * The expiration policy for a file. By default, files with `purpose=batch` expire
127
+ * after 30 days and all other files are persisted until they are manually deleted.
128
+ */
129
+ interface ExpiresAfter {
130
+ /**
131
+ * Anchor timestamp after which the expiration policy applies. Supported anchors:
132
+ * `created_at`.
133
+ */
134
+ anchor: 'created_at';
135
+ /**
136
+ * The number of seconds after the anchor time that the file will expire. Must be
137
+ * between 3600 (1 hour) and 2592000 (30 days).
138
+ */
139
+ seconds: number;
140
+ }
141
+ }
142
+ export interface UploadCompleteParams {
143
+ /**
144
+ * The ordered list of Part IDs.
145
+ */
146
+ part_ids: Array<string>;
147
+ /**
148
+ * The optional md5 checksum for the file contents to verify if the bytes uploaded
149
+ * matches what you expect.
150
+ */
151
+ md5?: string;
152
+ }
153
+ export declare namespace Uploads {
154
+ export { type Upload as Upload, type UploadCreateParams as UploadCreateParams, type UploadCompleteParams as UploadCompleteParams, };
155
+ export { Parts as Parts, type UploadPart as UploadPart, type PartCreateParams as PartCreateParams };
156
+ }
157
+ //# sourceMappingURL=uploads.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from "./uploads/index.mjs";
2
+ //# sourceMappingURL=uploads.d.mts.map
@@ -0,0 +1,2 @@
1
+ export * from "./uploads/index.js";
2
+ //# sourceMappingURL=uploads.d.ts.map
@@ -0,0 +1,172 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as FilesAPI from "./files.mjs";
3
+ import { VectorStoreFilesPage } from "./files.mjs";
4
+ import * as VectorStoresAPI from "./vector-stores.mjs";
5
+ import { APIPromise } from "../../core/api-promise.mjs";
6
+ import { type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
7
+ import { RequestOptions } from "../../internal/request-options.mjs";
8
+ import { type Uploadable } from "../../uploads.mjs";
9
+ export declare class FileBatches extends APIResource {
10
+ /**
11
+ * Create a vector store file batch.
12
+ */
13
+ create(vectorStoreID: string, body: FileBatchCreateParams, options?: RequestOptions): APIPromise<VectorStoreFileBatch>;
14
+ /**
15
+ * Retrieves a vector store file batch.
16
+ */
17
+ retrieve(batchID: string, params: FileBatchRetrieveParams, options?: RequestOptions): APIPromise<VectorStoreFileBatch>;
18
+ /**
19
+ * Cancel a vector store file batch. This attempts to cancel the processing of
20
+ * files in this batch as soon as possible.
21
+ */
22
+ cancel(batchID: string, params: FileBatchCancelParams, options?: RequestOptions): APIPromise<VectorStoreFileBatch>;
23
+ /**
24
+ * Create a vector store batch and poll until all files have been processed.
25
+ */
26
+ createAndPoll(vectorStoreId: string, body: FileBatchCreateParams, options?: RequestOptions & {
27
+ pollIntervalMs?: number;
28
+ }): Promise<VectorStoreFileBatch>;
29
+ /**
30
+ * Returns a list of vector store files in a batch.
31
+ */
32
+ listFiles(batchID: string, params: FileBatchListFilesParams, options?: RequestOptions): PagePromise<VectorStoreFilesPage, FilesAPI.VectorStoreFile>;
33
+ /**
34
+ * Wait for the given file batch to be processed.
35
+ *
36
+ * Note: this will return even if one of the files failed to process, you need to
37
+ * check batch.file_counts.failed_count to handle this case.
38
+ */
39
+ poll(vectorStoreID: string, batchID: string, options?: RequestOptions & {
40
+ pollIntervalMs?: number;
41
+ }): Promise<VectorStoreFileBatch>;
42
+ /**
43
+ * Uploads the given files concurrently and then creates a vector store file batch.
44
+ *
45
+ * The concurrency limit is configurable using the `maxConcurrency` parameter.
46
+ */
47
+ uploadAndPoll(vectorStoreId: string, { files, fileIds }: {
48
+ files: Uploadable[];
49
+ fileIds?: string[];
50
+ }, options?: RequestOptions & {
51
+ pollIntervalMs?: number;
52
+ maxConcurrency?: number;
53
+ }): Promise<VectorStoreFileBatch>;
54
+ }
55
+ /**
56
+ * A batch of files attached to a vector store.
57
+ */
58
+ export interface VectorStoreFileBatch {
59
+ /**
60
+ * The identifier, which can be referenced in API endpoints.
61
+ */
62
+ id: string;
63
+ /**
64
+ * The Unix timestamp (in seconds) for when the vector store files batch was
65
+ * created.
66
+ */
67
+ created_at: number;
68
+ file_counts: VectorStoreFileBatch.FileCounts;
69
+ /**
70
+ * The object type, which is always `vector_store.file_batch`.
71
+ */
72
+ object: 'vector_store.files_batch';
73
+ /**
74
+ * The status of the vector store files batch, which can be either `in_progress`,
75
+ * `completed`, `cancelled` or `failed`.
76
+ */
77
+ status: 'in_progress' | 'completed' | 'cancelled' | 'failed';
78
+ /**
79
+ * The ID of the
80
+ * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
81
+ * that the [File](https://platform.openai.com/docs/api-reference/files) is
82
+ * attached to.
83
+ */
84
+ vector_store_id: string;
85
+ }
86
+ export declare namespace VectorStoreFileBatch {
87
+ interface FileCounts {
88
+ /**
89
+ * The number of files that where cancelled.
90
+ */
91
+ cancelled: number;
92
+ /**
93
+ * The number of files that have been processed.
94
+ */
95
+ completed: number;
96
+ /**
97
+ * The number of files that have failed to process.
98
+ */
99
+ failed: number;
100
+ /**
101
+ * The number of files that are currently being processed.
102
+ */
103
+ in_progress: number;
104
+ /**
105
+ * The total number of files.
106
+ */
107
+ total: number;
108
+ }
109
+ }
110
+ export interface FileBatchCreateParams {
111
+ /**
112
+ * A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that
113
+ * the vector store should use. Useful for tools like `file_search` that can access
114
+ * files.
115
+ */
116
+ file_ids: Array<string>;
117
+ /**
118
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
119
+ * for storing additional information about the object in a structured format, and
120
+ * querying for objects via API or the dashboard. Keys are strings with a maximum
121
+ * length of 64 characters. Values are strings with a maximum length of 512
122
+ * characters, booleans, or numbers.
123
+ */
124
+ attributes?: {
125
+ [key: string]: string | number | boolean;
126
+ } | null;
127
+ /**
128
+ * The chunking strategy used to chunk the file(s). If not set, will use the `auto`
129
+ * strategy. Only applicable if `file_ids` is non-empty.
130
+ */
131
+ chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam;
132
+ }
133
+ export interface FileBatchRetrieveParams {
134
+ /**
135
+ * The ID of the vector store that the file batch belongs to.
136
+ */
137
+ vector_store_id: string;
138
+ }
139
+ export interface FileBatchCancelParams {
140
+ /**
141
+ * The ID of the vector store that the file batch belongs to.
142
+ */
143
+ vector_store_id: string;
144
+ }
145
+ export interface FileBatchListFilesParams extends CursorPageParams {
146
+ /**
147
+ * Path param: The ID of the vector store that the files belong to.
148
+ */
149
+ vector_store_id: string;
150
+ /**
151
+ * Query param: A cursor for use in pagination. `before` is an object ID that
152
+ * defines your place in the list. For instance, if you make a list request and
153
+ * receive 100 objects, starting with obj_foo, your subsequent call can include
154
+ * before=obj_foo in order to fetch the previous page of the list.
155
+ */
156
+ before?: string;
157
+ /**
158
+ * Query param: Filter by file status. One of `in_progress`, `completed`, `failed`,
159
+ * `cancelled`.
160
+ */
161
+ filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled';
162
+ /**
163
+ * Query param: Sort order by the `created_at` timestamp of the objects. `asc` for
164
+ * ascending order and `desc` for descending order.
165
+ */
166
+ order?: 'asc' | 'desc';
167
+ }
168
+ export declare namespace FileBatches {
169
+ export { type VectorStoreFileBatch as VectorStoreFileBatch, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchRetrieveParams as FileBatchRetrieveParams, type FileBatchCancelParams as FileBatchCancelParams, type FileBatchListFilesParams as FileBatchListFilesParams, };
170
+ }
171
+ export { type VectorStoreFilesPage };
172
+ //# sourceMappingURL=file-batches.d.mts.map
@@ -0,0 +1,172 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as FilesAPI from "./files.js";
3
+ import { VectorStoreFilesPage } from "./files.js";
4
+ import * as VectorStoresAPI from "./vector-stores.js";
5
+ import { APIPromise } from "../../core/api-promise.js";
6
+ import { type CursorPageParams, PagePromise } from "../../core/pagination.js";
7
+ import { RequestOptions } from "../../internal/request-options.js";
8
+ import { type Uploadable } from "../../uploads.js";
9
+ export declare class FileBatches extends APIResource {
10
+ /**
11
+ * Create a vector store file batch.
12
+ */
13
+ create(vectorStoreID: string, body: FileBatchCreateParams, options?: RequestOptions): APIPromise<VectorStoreFileBatch>;
14
+ /**
15
+ * Retrieves a vector store file batch.
16
+ */
17
+ retrieve(batchID: string, params: FileBatchRetrieveParams, options?: RequestOptions): APIPromise<VectorStoreFileBatch>;
18
+ /**
19
+ * Cancel a vector store file batch. This attempts to cancel the processing of
20
+ * files in this batch as soon as possible.
21
+ */
22
+ cancel(batchID: string, params: FileBatchCancelParams, options?: RequestOptions): APIPromise<VectorStoreFileBatch>;
23
+ /**
24
+ * Create a vector store batch and poll until all files have been processed.
25
+ */
26
+ createAndPoll(vectorStoreId: string, body: FileBatchCreateParams, options?: RequestOptions & {
27
+ pollIntervalMs?: number;
28
+ }): Promise<VectorStoreFileBatch>;
29
+ /**
30
+ * Returns a list of vector store files in a batch.
31
+ */
32
+ listFiles(batchID: string, params: FileBatchListFilesParams, options?: RequestOptions): PagePromise<VectorStoreFilesPage, FilesAPI.VectorStoreFile>;
33
+ /**
34
+ * Wait for the given file batch to be processed.
35
+ *
36
+ * Note: this will return even if one of the files failed to process, you need to
37
+ * check batch.file_counts.failed_count to handle this case.
38
+ */
39
+ poll(vectorStoreID: string, batchID: string, options?: RequestOptions & {
40
+ pollIntervalMs?: number;
41
+ }): Promise<VectorStoreFileBatch>;
42
+ /**
43
+ * Uploads the given files concurrently and then creates a vector store file batch.
44
+ *
45
+ * The concurrency limit is configurable using the `maxConcurrency` parameter.
46
+ */
47
+ uploadAndPoll(vectorStoreId: string, { files, fileIds }: {
48
+ files: Uploadable[];
49
+ fileIds?: string[];
50
+ }, options?: RequestOptions & {
51
+ pollIntervalMs?: number;
52
+ maxConcurrency?: number;
53
+ }): Promise<VectorStoreFileBatch>;
54
+ }
55
+ /**
56
+ * A batch of files attached to a vector store.
57
+ */
58
+ export interface VectorStoreFileBatch {
59
+ /**
60
+ * The identifier, which can be referenced in API endpoints.
61
+ */
62
+ id: string;
63
+ /**
64
+ * The Unix timestamp (in seconds) for when the vector store files batch was
65
+ * created.
66
+ */
67
+ created_at: number;
68
+ file_counts: VectorStoreFileBatch.FileCounts;
69
+ /**
70
+ * The object type, which is always `vector_store.file_batch`.
71
+ */
72
+ object: 'vector_store.files_batch';
73
+ /**
74
+ * The status of the vector store files batch, which can be either `in_progress`,
75
+ * `completed`, `cancelled` or `failed`.
76
+ */
77
+ status: 'in_progress' | 'completed' | 'cancelled' | 'failed';
78
+ /**
79
+ * The ID of the
80
+ * [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object)
81
+ * that the [File](https://platform.openai.com/docs/api-reference/files) is
82
+ * attached to.
83
+ */
84
+ vector_store_id: string;
85
+ }
86
+ export declare namespace VectorStoreFileBatch {
87
+ interface FileCounts {
88
+ /**
89
+ * The number of files that where cancelled.
90
+ */
91
+ cancelled: number;
92
+ /**
93
+ * The number of files that have been processed.
94
+ */
95
+ completed: number;
96
+ /**
97
+ * The number of files that have failed to process.
98
+ */
99
+ failed: number;
100
+ /**
101
+ * The number of files that are currently being processed.
102
+ */
103
+ in_progress: number;
104
+ /**
105
+ * The total number of files.
106
+ */
107
+ total: number;
108
+ }
109
+ }
110
+ export interface FileBatchCreateParams {
111
+ /**
112
+ * A list of [File](https://platform.openai.com/docs/api-reference/files) IDs that
113
+ * the vector store should use. Useful for tools like `file_search` that can access
114
+ * files.
115
+ */
116
+ file_ids: Array<string>;
117
+ /**
118
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
119
+ * for storing additional information about the object in a structured format, and
120
+ * querying for objects via API or the dashboard. Keys are strings with a maximum
121
+ * length of 64 characters. Values are strings with a maximum length of 512
122
+ * characters, booleans, or numbers.
123
+ */
124
+ attributes?: {
125
+ [key: string]: string | number | boolean;
126
+ } | null;
127
+ /**
128
+ * The chunking strategy used to chunk the file(s). If not set, will use the `auto`
129
+ * strategy. Only applicable if `file_ids` is non-empty.
130
+ */
131
+ chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam;
132
+ }
133
+ export interface FileBatchRetrieveParams {
134
+ /**
135
+ * The ID of the vector store that the file batch belongs to.
136
+ */
137
+ vector_store_id: string;
138
+ }
139
+ export interface FileBatchCancelParams {
140
+ /**
141
+ * The ID of the vector store that the file batch belongs to.
142
+ */
143
+ vector_store_id: string;
144
+ }
145
+ export interface FileBatchListFilesParams extends CursorPageParams {
146
+ /**
147
+ * Path param: The ID of the vector store that the files belong to.
148
+ */
149
+ vector_store_id: string;
150
+ /**
151
+ * Query param: A cursor for use in pagination. `before` is an object ID that
152
+ * defines your place in the list. For instance, if you make a list request and
153
+ * receive 100 objects, starting with obj_foo, your subsequent call can include
154
+ * before=obj_foo in order to fetch the previous page of the list.
155
+ */
156
+ before?: string;
157
+ /**
158
+ * Query param: Filter by file status. One of `in_progress`, `completed`, `failed`,
159
+ * `cancelled`.
160
+ */
161
+ filter?: 'in_progress' | 'completed' | 'failed' | 'cancelled';
162
+ /**
163
+ * Query param: Sort order by the `created_at` timestamp of the objects. `asc` for
164
+ * ascending order and `desc` for descending order.
165
+ */
166
+ order?: 'asc' | 'desc';
167
+ }
168
+ export declare namespace FileBatches {
169
+ export { type VectorStoreFileBatch as VectorStoreFileBatch, type FileBatchCreateParams as FileBatchCreateParams, type FileBatchRetrieveParams as FileBatchRetrieveParams, type FileBatchCancelParams as FileBatchCancelParams, type FileBatchListFilesParams as FileBatchListFilesParams, };
170
+ }
171
+ export { type VectorStoreFilesPage };
172
+ //# sourceMappingURL=file-batches.d.ts.map