llama-stack-client 0.4.3 → 0.4.4

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 (808) hide show
  1. package/.devcontainer/devcontainer.json +15 -0
  2. package/.eslintrc.js +16 -0
  3. package/.github/workflows/ci.yml +88 -0
  4. package/.github/workflows/integration-tests.yml +133 -0
  5. package/.github/workflows/release-doctor.yml +19 -0
  6. package/.gitignore +12 -0
  7. package/.prettierignore +7 -0
  8. package/.prettierrc.json +7 -0
  9. package/.release-please-manifest.json +3 -0
  10. package/.stats.yml +4 -0
  11. package/Brewfile +1 -0
  12. package/CODE_OF_CONDUCT.md +80 -0
  13. package/CONTRIBUTING.md +98 -0
  14. package/README.md +22 -31
  15. package/SECURITY.md +27 -0
  16. package/api.md +484 -0
  17. package/bin/check-release-environment +18 -0
  18. package/bin/publish-npm +61 -0
  19. package/dist/CHANGELOG.md +352 -0
  20. package/dist/LICENSE +7 -0
  21. package/dist/README.md +355 -0
  22. package/{index.d.mts → dist/index.d.mts} +6 -12
  23. package/{index.d.ts → dist/index.d.ts} +6 -12
  24. package/{index.d.ts.map → dist/index.d.ts.map} +1 -1
  25. package/{index.js.map → dist/index.js.map} +1 -1
  26. package/dist/index.mjs.map +1 -0
  27. package/dist/package.json +108 -0
  28. package/{resources → dist/resources}/alpha/alpha.d.ts +2 -6
  29. package/dist/resources/alpha/alpha.d.ts.map +1 -0
  30. package/{resources → dist/resources}/alpha/alpha.js +0 -4
  31. package/dist/resources/alpha/alpha.js.map +1 -0
  32. package/{resources → dist/resources}/alpha/alpha.mjs +0 -4
  33. package/dist/resources/alpha/alpha.mjs.map +1 -0
  34. package/{resources → dist/resources}/alpha/benchmarks.d.ts +1 -37
  35. package/dist/resources/alpha/benchmarks.d.ts.map +1 -0
  36. package/{resources → dist/resources}/alpha/index.d.ts +1 -2
  37. package/dist/resources/alpha/index.d.ts.map +1 -0
  38. package/{resources → dist/resources}/alpha/index.js +1 -3
  39. package/dist/resources/alpha/index.js.map +1 -0
  40. package/{resources → dist/resources}/alpha/index.mjs +0 -1
  41. package/{resources → dist/resources}/alpha/index.mjs.map +1 -1
  42. package/dist/resources/alpha/post-training/index.d.ts +3 -0
  43. package/dist/resources/alpha/post-training/index.d.ts.map +1 -0
  44. package/{resources → dist/resources}/alpha/post-training/index.js.map +1 -1
  45. package/{resources → dist/resources}/alpha/post-training/index.mjs.map +1 -1
  46. package/{resources → dist/resources}/alpha/post-training/job.d.ts +4 -1
  47. package/dist/resources/alpha/post-training/job.d.ts.map +1 -0
  48. package/{resources → dist/resources}/alpha/post-training/post-training.d.ts +3 -6
  49. package/dist/resources/alpha/post-training/post-training.d.ts.map +1 -0
  50. package/{resources → dist/resources}/alpha/post-training/post-training.js.map +1 -1
  51. package/{resources → dist/resources}/alpha/post-training/post-training.mjs.map +1 -1
  52. package/{resources → dist/resources}/beta/datasets.d.ts +8 -89
  53. package/dist/resources/beta/datasets.d.ts.map +1 -0
  54. package/{resources → dist/resources}/chat/chat.d.ts +2 -2
  55. package/{resources → dist/resources}/chat/chat.d.ts.map +1 -1
  56. package/{resources → dist/resources}/chat/completions.d.ts +6 -6
  57. package/dist/resources/chat/completions.d.ts.map +1 -0
  58. package/{resources → dist/resources}/completions.d.ts +2 -2
  59. package/dist/resources/completions.d.ts.map +1 -0
  60. package/{resources → dist/resources}/conversations/conversations.d.ts +4 -32
  61. package/dist/resources/conversations/conversations.d.ts.map +1 -0
  62. package/{resources → dist/resources}/conversations/conversations.js.map +1 -1
  63. package/{resources → dist/resources}/conversations/conversations.mjs.map +1 -1
  64. package/{resources → dist/resources}/conversations/items.d.ts +12 -124
  65. package/dist/resources/conversations/items.d.ts.map +1 -0
  66. package/{resources → dist/resources}/conversations/items.js.map +1 -1
  67. package/{resources → dist/resources}/conversations/items.mjs.map +1 -1
  68. package/{resources → dist/resources}/index.d.ts +3 -3
  69. package/dist/resources/index.d.ts.map +1 -0
  70. package/{resources → dist/resources}/index.js.map +1 -1
  71. package/{resources → dist/resources}/index.mjs.map +1 -1
  72. package/dist/resources/inspect.d.ts +56 -0
  73. package/dist/resources/inspect.d.ts.map +1 -0
  74. package/{resources → dist/resources}/inspect.js +4 -0
  75. package/dist/resources/inspect.js.map +1 -0
  76. package/{resources → dist/resources}/inspect.mjs +4 -0
  77. package/dist/resources/inspect.mjs.map +1 -0
  78. package/dist/resources/providers.d.ts +28 -0
  79. package/dist/resources/providers.d.ts.map +1 -0
  80. package/{resources → dist/resources}/providers.js +4 -0
  81. package/dist/resources/providers.js.map +1 -0
  82. package/{resources → dist/resources}/providers.mjs +4 -0
  83. package/dist/resources/providers.mjs.map +1 -0
  84. package/{resources → dist/resources}/responses/input-items.d.ts +8 -64
  85. package/dist/resources/responses/input-items.d.ts.map +1 -0
  86. package/{resources → dist/resources}/responses/responses.d.ts +31 -479
  87. package/dist/resources/responses/responses.d.ts.map +1 -0
  88. package/{resources → dist/resources}/responses/responses.js.map +1 -1
  89. package/{resources → dist/resources}/responses/responses.mjs.map +1 -1
  90. package/dist/resources/routes.d.ts +26 -0
  91. package/dist/resources/routes.d.ts.map +1 -0
  92. package/{resources → dist/resources}/routes.js.map +1 -1
  93. package/{resources → dist/resources}/routes.mjs.map +1 -1
  94. package/{resources → dist/resources}/shared.d.ts +0 -86
  95. package/dist/resources/shared.d.ts.map +1 -0
  96. package/dist/src/_shims/MultipartBody.ts +15 -0
  97. package/dist/src/_shims/README.md +46 -0
  98. package/dist/src/_shims/auto/runtime-bun.ts +10 -0
  99. package/dist/src/_shims/auto/runtime-node.ts +10 -0
  100. package/dist/src/_shims/auto/runtime.ts +10 -0
  101. package/dist/src/_shims/auto/types-node.ts +10 -0
  102. package/dist/src/_shims/auto/types.d.ts +107 -0
  103. package/dist/src/_shims/auto/types.js +9 -0
  104. package/dist/src/_shims/auto/types.mjs +10 -0
  105. package/dist/src/_shims/bun-runtime.ts +20 -0
  106. package/dist/src/_shims/index.d.ts +89 -0
  107. package/dist/src/_shims/index.js +23 -0
  108. package/dist/src/_shims/index.mjs +18 -0
  109. package/dist/src/_shims/manual-types.d.ts +18 -0
  110. package/dist/src/_shims/manual-types.js +9 -0
  111. package/dist/src/_shims/manual-types.mjs +10 -0
  112. package/dist/src/_shims/node-runtime.ts +87 -0
  113. package/dist/src/_shims/node-types.d.ts +48 -0
  114. package/dist/src/_shims/node-types.js +9 -0
  115. package/dist/src/_shims/node-types.mjs +10 -0
  116. package/dist/src/_shims/registry.ts +73 -0
  117. package/dist/src/_shims/web-runtime.ts +109 -0
  118. package/dist/src/_shims/web-types.d.ts +89 -0
  119. package/dist/src/_shims/web-types.js +9 -0
  120. package/dist/src/_shims/web-types.mjs +10 -0
  121. package/dist/src/core.ts +1259 -0
  122. package/dist/src/error.ts +137 -0
  123. package/dist/src/index.ts +591 -0
  124. package/dist/src/internal/decoders/line.ts +182 -0
  125. package/dist/src/internal/qs/LICENSE.md +13 -0
  126. package/dist/src/internal/qs/README.md +3 -0
  127. package/dist/src/internal/qs/formats.ts +15 -0
  128. package/dist/src/internal/qs/index.ts +19 -0
  129. package/dist/src/internal/qs/stringify.ts +394 -0
  130. package/dist/src/internal/qs/types.ts +77 -0
  131. package/dist/src/internal/qs/utils.ts +271 -0
  132. package/dist/src/internal/stream-utils.ts +38 -0
  133. package/dist/src/lib/.keep +4 -0
  134. package/dist/src/lib/response-helpers.ts +60 -0
  135. package/dist/src/pagination.ts +134 -0
  136. package/dist/src/resource.ts +18 -0
  137. package/dist/src/resources/alpha/alpha.ts +85 -0
  138. package/dist/src/resources/alpha/benchmarks.ts +116 -0
  139. package/dist/src/resources/alpha/eval/eval.ts +234 -0
  140. package/dist/src/resources/alpha/eval/index.ts +19 -0
  141. package/dist/src/resources/alpha/eval/jobs.ts +41 -0
  142. package/dist/src/resources/alpha/eval.ts +10 -0
  143. package/dist/src/resources/alpha/index.ts +34 -0
  144. package/dist/src/resources/alpha/inference.ts +132 -0
  145. package/dist/src/resources/alpha/post-training/index.ts +25 -0
  146. package/dist/src/resources/alpha/post-training/job.ts +182 -0
  147. package/dist/src/resources/alpha/post-training/post-training.ts +369 -0
  148. package/dist/src/resources/alpha/post-training.ts +9 -0
  149. package/dist/src/resources/alpha.ts +9 -0
  150. package/dist/src/resources/batches.ts +572 -0
  151. package/dist/src/resources/beta/beta.ts +41 -0
  152. package/dist/src/resources/beta/datasets.ts +350 -0
  153. package/dist/src/resources/beta/index.ts +20 -0
  154. package/dist/src/resources/beta.ts +9 -0
  155. package/dist/src/resources/chat/chat.ts +246 -0
  156. package/dist/src/resources/chat/completions.ts +1875 -0
  157. package/dist/src/resources/chat/index.ts +19 -0
  158. package/dist/src/resources/chat.ts +9 -0
  159. package/dist/src/resources/completions.ts +235 -0
  160. package/dist/src/resources/conversations/conversations.ts +455 -0
  161. package/dist/src/resources/conversations/index.ts +25 -0
  162. package/dist/src/resources/conversations/items.ts +1221 -0
  163. package/dist/src/resources/conversations.ts +9 -0
  164. package/dist/src/resources/embeddings.ts +84 -0
  165. package/dist/src/resources/files.ts +184 -0
  166. package/dist/src/resources/index.ts +139 -0
  167. package/dist/src/resources/inspect.ts +81 -0
  168. package/dist/src/resources/models/index.ts +18 -0
  169. package/dist/src/resources/models/models.ts +179 -0
  170. package/dist/src/resources/models/openai.ts +22 -0
  171. package/dist/src/resources/models.ts +9 -0
  172. package/dist/src/resources/moderations.ts +61 -0
  173. package/dist/src/resources/prompts/index.ts +19 -0
  174. package/dist/src/resources/prompts/prompts.ts +171 -0
  175. package/dist/src/resources/prompts/versions.ts +26 -0
  176. package/dist/src/resources/prompts.ts +9 -0
  177. package/dist/src/resources/providers.ts +49 -0
  178. package/dist/src/resources/responses/index.ts +21 -0
  179. package/dist/src/resources/responses/input-items.ts +508 -0
  180. package/dist/src/resources/responses/responses.ts +3689 -0
  181. package/dist/src/resources/responses.ts +9 -0
  182. package/dist/src/resources/routes.ts +56 -0
  183. package/dist/src/resources/safety.ts +241 -0
  184. package/dist/src/resources/scoring-functions.ts +343 -0
  185. package/dist/src/resources/scoring.ts +197 -0
  186. package/dist/src/resources/shared.ts +418 -0
  187. package/dist/src/resources/shields.ts +98 -0
  188. package/dist/src/resources/tool-runtime.ts +217 -0
  189. package/dist/src/resources/toolgroups.ts +135 -0
  190. package/dist/src/resources/tools.ts +52 -0
  191. package/dist/src/resources/vector-io.ts +468 -0
  192. package/dist/src/resources/vector-stores/file-batches.ts +201 -0
  193. package/dist/src/resources/vector-stores/files.ts +358 -0
  194. package/dist/src/resources/vector-stores/index.ts +38 -0
  195. package/dist/src/resources/vector-stores/vector-stores.ts +402 -0
  196. package/dist/src/resources/vector-stores.ts +9 -0
  197. package/dist/src/resources.ts +7 -0
  198. package/dist/src/shims/node.ts +56 -0
  199. package/dist/src/shims/web.ts +56 -0
  200. package/dist/src/streaming.ts +297 -0
  201. package/dist/src/uploads.ts +261 -0
  202. package/dist/src/version.ts +7 -0
  203. package/dist/version.d.ts +2 -0
  204. package/{version.js → dist/version.js} +1 -1
  205. package/{version.mjs → dist/version.mjs} +1 -1
  206. package/examples/.keep +4 -0
  207. package/jest.config.ts +29 -0
  208. package/package.json +55 -35
  209. package/release-please-config.json +64 -0
  210. package/scripts/bootstrap +30 -0
  211. package/scripts/build +56 -0
  212. package/scripts/fast-format +40 -0
  213. package/scripts/format +8 -0
  214. package/scripts/lint +11 -0
  215. package/scripts/mock +41 -0
  216. package/scripts/test +56 -0
  217. package/scripts/utils/check-is-in-git-install.sh +15 -0
  218. package/scripts/utils/check-version.cjs +27 -0
  219. package/scripts/utils/fix-index-exports.cjs +21 -0
  220. package/scripts/utils/git-swap.sh +19 -0
  221. package/scripts/utils/make-dist-package-json.cjs +28 -0
  222. package/scripts/utils/postprocess-files.cjs +172 -0
  223. package/scripts/utils/upload-artifact.sh +33 -0
  224. package/src/_shims/auto/runtime-deno.ts +10 -0
  225. package/src/_shims/auto/types-deno.ts +10 -0
  226. package/src/_shims/auto/types.d.ts +18 -18
  227. package/src/_shims/index-deno.ts +118 -0
  228. package/src/_shims/index.d.ts +1 -1
  229. package/src/_shims/index.mjs +1 -1
  230. package/src/index.ts +16 -11
  231. package/src/resources/alpha/alpha.ts +0 -8
  232. package/src/resources/alpha/benchmarks.ts +1 -37
  233. package/src/resources/alpha/index.ts +0 -2
  234. package/src/resources/alpha/post-training/index.ts +1 -1
  235. package/src/resources/alpha/post-training/job.ts +5 -0
  236. package/src/resources/alpha/post-training/post-training.ts +2 -5
  237. package/src/resources/beta/datasets.ts +8 -89
  238. package/src/resources/chat/chat.ts +4 -4
  239. package/src/resources/chat/completions.ts +12 -12
  240. package/src/resources/completions.ts +4 -4
  241. package/src/resources/conversations/conversations.ts +7 -43
  242. package/src/resources/conversations/items.ts +21 -165
  243. package/src/resources/index.ts +3 -3
  244. package/src/resources/inspect.ts +57 -3
  245. package/src/resources/providers.ts +16 -5
  246. package/src/resources/responses/input-items.ts +14 -86
  247. package/src/resources/responses/responses.ts +45 -654
  248. package/src/resources/routes.ts +14 -10
  249. package/src/resources/shared.ts +0 -95
  250. package/src/version.ts +1 -1
  251. package/tests/api-resources/alpha/benchmarks.test.ts +94 -0
  252. package/tests/api-resources/alpha/eval/eval.test.ts +186 -0
  253. package/tests/api-resources/alpha/eval/jobs.test.ts +68 -0
  254. package/tests/api-resources/alpha/inference.test.ts +38 -0
  255. package/tests/api-resources/alpha/post-training/job.test.ts +77 -0
  256. package/tests/api-resources/alpha/post-training/post-training.test.ts +124 -0
  257. package/tests/api-resources/batches.test.ts +100 -0
  258. package/tests/api-resources/beta/datasets.test.ts +135 -0
  259. package/tests/api-resources/chat/completions.test.ts +102 -0
  260. package/tests/api-resources/completions.test.ts +48 -0
  261. package/tests/api-resources/conversations/conversations.test.ts +76 -0
  262. package/tests/api-resources/conversations/items.test.ts +98 -0
  263. package/tests/api-resources/embeddings.test.ts +35 -0
  264. package/tests/api-resources/files.test.ts +118 -0
  265. package/tests/api-resources/inspect.test.ts +50 -0
  266. package/tests/api-resources/models/models.test.ts +89 -0
  267. package/tests/api-resources/models/openai.test.ts +32 -0
  268. package/tests/api-resources/moderations.test.ts +29 -0
  269. package/tests/api-resources/prompts/prompts.test.ts +125 -0
  270. package/tests/api-resources/prompts/versions.test.ts +32 -0
  271. package/tests/api-resources/providers.test.ts +50 -0
  272. package/tests/api-resources/responses/input-items.test.ts +43 -0
  273. package/tests/api-resources/responses/responses.test.ts +118 -0
  274. package/tests/api-resources/routes.test.ts +39 -0
  275. package/tests/api-resources/safety.test.ts +37 -0
  276. package/tests/api-resources/scoring-functions.test.ts +100 -0
  277. package/tests/api-resources/scoring.test.ts +73 -0
  278. package/tests/api-resources/shields.test.ts +88 -0
  279. package/tests/api-resources/tool-runtime.test.ts +61 -0
  280. package/tests/api-resources/toolgroups.test.ts +91 -0
  281. package/tests/api-resources/tools.test.ts +57 -0
  282. package/tests/api-resources/vector-io.test.ts +75 -0
  283. package/tests/api-resources/vector-stores/file-batches.test.ts +107 -0
  284. package/tests/api-resources/vector-stores/files.test.ts +147 -0
  285. package/tests/api-resources/vector-stores/vector-stores.test.ts +122 -0
  286. package/tests/form.test.ts +71 -0
  287. package/tests/index.test.ts +438 -0
  288. package/tests/internal/decoders/line.test.ts +134 -0
  289. package/tests/qs/empty-keys-cases.ts +277 -0
  290. package/tests/qs/stringify.test.ts +2238 -0
  291. package/tests/qs/utils.test.ts +175 -0
  292. package/tests/responses.test.ts +91 -0
  293. package/tests/streaming.test.ts +250 -0
  294. package/tests/stringifyQuery.test.ts +29 -0
  295. package/tests/uploads.test.ts +71 -0
  296. package/tsc-multi.json +7 -0
  297. package/tsconfig.build.json +18 -0
  298. package/tsconfig.deno.json +15 -0
  299. package/tsconfig.dist-src.json +11 -0
  300. package/tsconfig.json +38 -0
  301. package/index.mjs.map +0 -1
  302. package/resources/alpha/admin.d.ts +0 -41
  303. package/resources/alpha/admin.d.ts.map +0 -1
  304. package/resources/alpha/admin.js +0 -46
  305. package/resources/alpha/admin.js.map +0 -1
  306. package/resources/alpha/admin.mjs +0 -42
  307. package/resources/alpha/admin.mjs.map +0 -1
  308. package/resources/alpha/alpha.d.ts.map +0 -1
  309. package/resources/alpha/alpha.js.map +0 -1
  310. package/resources/alpha/alpha.mjs.map +0 -1
  311. package/resources/alpha/benchmarks.d.ts.map +0 -1
  312. package/resources/alpha/index.d.ts.map +0 -1
  313. package/resources/alpha/index.js.map +0 -1
  314. package/resources/alpha/post-training/index.d.ts +0 -3
  315. package/resources/alpha/post-training/index.d.ts.map +0 -1
  316. package/resources/alpha/post-training/job.d.ts.map +0 -1
  317. package/resources/alpha/post-training/post-training.d.ts.map +0 -1
  318. package/resources/beta/datasets.d.ts.map +0 -1
  319. package/resources/chat/completions.d.ts.map +0 -1
  320. package/resources/completions.d.ts.map +0 -1
  321. package/resources/conversations/conversations.d.ts.map +0 -1
  322. package/resources/conversations/items.d.ts.map +0 -1
  323. package/resources/index.d.ts.map +0 -1
  324. package/resources/inspect.d.ts +0 -14
  325. package/resources/inspect.d.ts.map +0 -1
  326. package/resources/inspect.js.map +0 -1
  327. package/resources/inspect.mjs.map +0 -1
  328. package/resources/providers.d.ts +0 -21
  329. package/resources/providers.d.ts.map +0 -1
  330. package/resources/providers.js.map +0 -1
  331. package/resources/providers.mjs.map +0 -1
  332. package/resources/responses/input-items.d.ts.map +0 -1
  333. package/resources/responses/responses.d.ts.map +0 -1
  334. package/resources/routes.d.ts +0 -27
  335. package/resources/routes.d.ts.map +0 -1
  336. package/resources/shared.d.ts.map +0 -1
  337. package/src/resources/alpha/admin.ts +0 -84
  338. package/version.d.ts +0 -2
  339. /package/{_shims → dist/_shims}/MultipartBody.d.ts +0 -0
  340. /package/{_shims → dist/_shims}/MultipartBody.d.ts.map +0 -0
  341. /package/{_shims → dist/_shims}/MultipartBody.js +0 -0
  342. /package/{_shims → dist/_shims}/MultipartBody.js.map +0 -0
  343. /package/{_shims → dist/_shims}/MultipartBody.mjs +0 -0
  344. /package/{_shims → dist/_shims}/MultipartBody.mjs.map +0 -0
  345. /package/{_shims → dist/_shims}/README.md +0 -0
  346. /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts +0 -0
  347. /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts.map +0 -0
  348. /package/{_shims → dist/_shims}/auto/runtime-bun.js +0 -0
  349. /package/{_shims → dist/_shims}/auto/runtime-bun.js.map +0 -0
  350. /package/{_shims → dist/_shims}/auto/runtime-bun.mjs +0 -0
  351. /package/{_shims → dist/_shims}/auto/runtime-bun.mjs.map +0 -0
  352. /package/{_shims → dist/_shims}/auto/runtime-node.d.ts +0 -0
  353. /package/{_shims → dist/_shims}/auto/runtime-node.d.ts.map +0 -0
  354. /package/{_shims → dist/_shims}/auto/runtime-node.js +0 -0
  355. /package/{_shims → dist/_shims}/auto/runtime-node.js.map +0 -0
  356. /package/{_shims → dist/_shims}/auto/runtime-node.mjs +0 -0
  357. /package/{_shims → dist/_shims}/auto/runtime-node.mjs.map +0 -0
  358. /package/{_shims → dist/_shims}/auto/runtime.d.ts +0 -0
  359. /package/{_shims → dist/_shims}/auto/runtime.d.ts.map +0 -0
  360. /package/{_shims → dist/_shims}/auto/runtime.js +0 -0
  361. /package/{_shims → dist/_shims}/auto/runtime.js.map +0 -0
  362. /package/{_shims → dist/_shims}/auto/runtime.mjs +0 -0
  363. /package/{_shims → dist/_shims}/auto/runtime.mjs.map +0 -0
  364. /package/{_shims → dist/_shims}/auto/types-node.d.ts +0 -0
  365. /package/{_shims → dist/_shims}/auto/types-node.d.ts.map +0 -0
  366. /package/{_shims → dist/_shims}/auto/types-node.js +0 -0
  367. /package/{_shims → dist/_shims}/auto/types-node.js.map +0 -0
  368. /package/{_shims → dist/_shims}/auto/types-node.mjs +0 -0
  369. /package/{_shims → dist/_shims}/auto/types-node.mjs.map +0 -0
  370. /package/{_shims → dist/_shims}/auto/types.d.ts +0 -0
  371. /package/{_shims → dist/_shims}/auto/types.js +0 -0
  372. /package/{_shims → dist/_shims}/auto/types.mjs +0 -0
  373. /package/{_shims → dist/_shims}/bun-runtime.d.ts +0 -0
  374. /package/{_shims → dist/_shims}/bun-runtime.d.ts.map +0 -0
  375. /package/{_shims → dist/_shims}/bun-runtime.js +0 -0
  376. /package/{_shims → dist/_shims}/bun-runtime.js.map +0 -0
  377. /package/{_shims → dist/_shims}/bun-runtime.mjs +0 -0
  378. /package/{_shims → dist/_shims}/bun-runtime.mjs.map +0 -0
  379. /package/{_shims → dist/_shims}/index.d.ts +0 -0
  380. /package/{_shims → dist/_shims}/index.js +0 -0
  381. /package/{_shims → dist/_shims}/index.mjs +0 -0
  382. /package/{_shims → dist/_shims}/manual-types.d.ts +0 -0
  383. /package/{_shims → dist/_shims}/manual-types.js +0 -0
  384. /package/{_shims → dist/_shims}/manual-types.mjs +0 -0
  385. /package/{_shims → dist/_shims}/node-runtime.d.ts +0 -0
  386. /package/{_shims → dist/_shims}/node-runtime.d.ts.map +0 -0
  387. /package/{_shims → dist/_shims}/node-runtime.js +0 -0
  388. /package/{_shims → dist/_shims}/node-runtime.js.map +0 -0
  389. /package/{_shims → dist/_shims}/node-runtime.mjs +0 -0
  390. /package/{_shims → dist/_shims}/node-runtime.mjs.map +0 -0
  391. /package/{_shims → dist/_shims}/node-types.d.ts +0 -0
  392. /package/{_shims → dist/_shims}/node-types.js +0 -0
  393. /package/{_shims → dist/_shims}/node-types.mjs +0 -0
  394. /package/{_shims → dist/_shims}/registry.d.ts +0 -0
  395. /package/{_shims → dist/_shims}/registry.d.ts.map +0 -0
  396. /package/{_shims → dist/_shims}/registry.js +0 -0
  397. /package/{_shims → dist/_shims}/registry.js.map +0 -0
  398. /package/{_shims → dist/_shims}/registry.mjs +0 -0
  399. /package/{_shims → dist/_shims}/registry.mjs.map +0 -0
  400. /package/{_shims → dist/_shims}/web-runtime.d.ts +0 -0
  401. /package/{_shims → dist/_shims}/web-runtime.d.ts.map +0 -0
  402. /package/{_shims → dist/_shims}/web-runtime.js +0 -0
  403. /package/{_shims → dist/_shims}/web-runtime.js.map +0 -0
  404. /package/{_shims → dist/_shims}/web-runtime.mjs +0 -0
  405. /package/{_shims → dist/_shims}/web-runtime.mjs.map +0 -0
  406. /package/{_shims → dist/_shims}/web-types.d.ts +0 -0
  407. /package/{_shims → dist/_shims}/web-types.js +0 -0
  408. /package/{_shims → dist/_shims}/web-types.mjs +0 -0
  409. /package/{core.d.ts → dist/core.d.ts} +0 -0
  410. /package/{core.d.ts.map → dist/core.d.ts.map} +0 -0
  411. /package/{core.js → dist/core.js} +0 -0
  412. /package/{core.js.map → dist/core.js.map} +0 -0
  413. /package/{core.mjs → dist/core.mjs} +0 -0
  414. /package/{core.mjs.map → dist/core.mjs.map} +0 -0
  415. /package/{error.d.ts → dist/error.d.ts} +0 -0
  416. /package/{error.d.ts.map → dist/error.d.ts.map} +0 -0
  417. /package/{error.js → dist/error.js} +0 -0
  418. /package/{error.js.map → dist/error.js.map} +0 -0
  419. /package/{error.mjs → dist/error.mjs} +0 -0
  420. /package/{error.mjs.map → dist/error.mjs.map} +0 -0
  421. /package/{index.js → dist/index.js} +0 -0
  422. /package/{index.mjs → dist/index.mjs} +0 -0
  423. /package/{internal → dist/internal}/decoders/line.d.ts +0 -0
  424. /package/{internal → dist/internal}/decoders/line.d.ts.map +0 -0
  425. /package/{internal → dist/internal}/decoders/line.js +0 -0
  426. /package/{internal → dist/internal}/decoders/line.js.map +0 -0
  427. /package/{internal → dist/internal}/decoders/line.mjs +0 -0
  428. /package/{internal → dist/internal}/decoders/line.mjs.map +0 -0
  429. /package/{internal → dist/internal}/qs/formats.d.ts +0 -0
  430. /package/{internal → dist/internal}/qs/formats.d.ts.map +0 -0
  431. /package/{internal → dist/internal}/qs/formats.js +0 -0
  432. /package/{internal → dist/internal}/qs/formats.js.map +0 -0
  433. /package/{internal → dist/internal}/qs/formats.mjs +0 -0
  434. /package/{internal → dist/internal}/qs/formats.mjs.map +0 -0
  435. /package/{internal → dist/internal}/qs/index.d.ts +0 -0
  436. /package/{internal → dist/internal}/qs/index.d.ts.map +0 -0
  437. /package/{internal → dist/internal}/qs/index.js +0 -0
  438. /package/{internal → dist/internal}/qs/index.js.map +0 -0
  439. /package/{internal → dist/internal}/qs/index.mjs +0 -0
  440. /package/{internal → dist/internal}/qs/index.mjs.map +0 -0
  441. /package/{internal → dist/internal}/qs/stringify.d.ts +0 -0
  442. /package/{internal → dist/internal}/qs/stringify.d.ts.map +0 -0
  443. /package/{internal → dist/internal}/qs/stringify.js +0 -0
  444. /package/{internal → dist/internal}/qs/stringify.js.map +0 -0
  445. /package/{internal → dist/internal}/qs/stringify.mjs +0 -0
  446. /package/{internal → dist/internal}/qs/stringify.mjs.map +0 -0
  447. /package/{internal → dist/internal}/qs/types.d.ts +0 -0
  448. /package/{internal → dist/internal}/qs/types.d.ts.map +0 -0
  449. /package/{internal → dist/internal}/qs/types.js +0 -0
  450. /package/{internal → dist/internal}/qs/types.js.map +0 -0
  451. /package/{internal → dist/internal}/qs/types.mjs +0 -0
  452. /package/{internal → dist/internal}/qs/types.mjs.map +0 -0
  453. /package/{internal → dist/internal}/qs/utils.d.ts +0 -0
  454. /package/{internal → dist/internal}/qs/utils.d.ts.map +0 -0
  455. /package/{internal → dist/internal}/qs/utils.js +0 -0
  456. /package/{internal → dist/internal}/qs/utils.js.map +0 -0
  457. /package/{internal → dist/internal}/qs/utils.mjs +0 -0
  458. /package/{internal → dist/internal}/qs/utils.mjs.map +0 -0
  459. /package/{internal → dist/internal}/stream-utils.d.ts +0 -0
  460. /package/{internal → dist/internal}/stream-utils.d.ts.map +0 -0
  461. /package/{internal → dist/internal}/stream-utils.js +0 -0
  462. /package/{internal → dist/internal}/stream-utils.js.map +0 -0
  463. /package/{internal → dist/internal}/stream-utils.mjs +0 -0
  464. /package/{internal → dist/internal}/stream-utils.mjs.map +0 -0
  465. /package/{lib → dist/lib}/response-helpers.d.ts +0 -0
  466. /package/{lib → dist/lib}/response-helpers.d.ts.map +0 -0
  467. /package/{lib → dist/lib}/response-helpers.js +0 -0
  468. /package/{lib → dist/lib}/response-helpers.js.map +0 -0
  469. /package/{lib → dist/lib}/response-helpers.mjs +0 -0
  470. /package/{lib → dist/lib}/response-helpers.mjs.map +0 -0
  471. /package/{pagination.d.ts → dist/pagination.d.ts} +0 -0
  472. /package/{pagination.d.ts.map → dist/pagination.d.ts.map} +0 -0
  473. /package/{pagination.js → dist/pagination.js} +0 -0
  474. /package/{pagination.js.map → dist/pagination.js.map} +0 -0
  475. /package/{pagination.mjs → dist/pagination.mjs} +0 -0
  476. /package/{pagination.mjs.map → dist/pagination.mjs.map} +0 -0
  477. /package/{resource.d.ts → dist/resource.d.ts} +0 -0
  478. /package/{resource.d.ts.map → dist/resource.d.ts.map} +0 -0
  479. /package/{resource.js → dist/resource.js} +0 -0
  480. /package/{resource.js.map → dist/resource.js.map} +0 -0
  481. /package/{resource.mjs → dist/resource.mjs} +0 -0
  482. /package/{resource.mjs.map → dist/resource.mjs.map} +0 -0
  483. /package/{resources → dist/resources}/alpha/benchmarks.js +0 -0
  484. /package/{resources → dist/resources}/alpha/benchmarks.js.map +0 -0
  485. /package/{resources → dist/resources}/alpha/benchmarks.mjs +0 -0
  486. /package/{resources → dist/resources}/alpha/benchmarks.mjs.map +0 -0
  487. /package/{resources → dist/resources}/alpha/eval/eval.d.ts +0 -0
  488. /package/{resources → dist/resources}/alpha/eval/eval.d.ts.map +0 -0
  489. /package/{resources → dist/resources}/alpha/eval/eval.js +0 -0
  490. /package/{resources → dist/resources}/alpha/eval/eval.js.map +0 -0
  491. /package/{resources → dist/resources}/alpha/eval/eval.mjs +0 -0
  492. /package/{resources → dist/resources}/alpha/eval/eval.mjs.map +0 -0
  493. /package/{resources → dist/resources}/alpha/eval/index.d.ts +0 -0
  494. /package/{resources → dist/resources}/alpha/eval/index.d.ts.map +0 -0
  495. /package/{resources → dist/resources}/alpha/eval/index.js +0 -0
  496. /package/{resources → dist/resources}/alpha/eval/index.js.map +0 -0
  497. /package/{resources → dist/resources}/alpha/eval/index.mjs +0 -0
  498. /package/{resources → dist/resources}/alpha/eval/index.mjs.map +0 -0
  499. /package/{resources → dist/resources}/alpha/eval/jobs.d.ts +0 -0
  500. /package/{resources → dist/resources}/alpha/eval/jobs.d.ts.map +0 -0
  501. /package/{resources → dist/resources}/alpha/eval/jobs.js +0 -0
  502. /package/{resources → dist/resources}/alpha/eval/jobs.js.map +0 -0
  503. /package/{resources → dist/resources}/alpha/eval/jobs.mjs +0 -0
  504. /package/{resources → dist/resources}/alpha/eval/jobs.mjs.map +0 -0
  505. /package/{resources → dist/resources}/alpha/eval.d.ts +0 -0
  506. /package/{resources → dist/resources}/alpha/eval.d.ts.map +0 -0
  507. /package/{resources → dist/resources}/alpha/eval.js +0 -0
  508. /package/{resources → dist/resources}/alpha/eval.js.map +0 -0
  509. /package/{resources → dist/resources}/alpha/eval.mjs +0 -0
  510. /package/{resources → dist/resources}/alpha/eval.mjs.map +0 -0
  511. /package/{resources → dist/resources}/alpha/inference.d.ts +0 -0
  512. /package/{resources → dist/resources}/alpha/inference.d.ts.map +0 -0
  513. /package/{resources → dist/resources}/alpha/inference.js +0 -0
  514. /package/{resources → dist/resources}/alpha/inference.js.map +0 -0
  515. /package/{resources → dist/resources}/alpha/inference.mjs +0 -0
  516. /package/{resources → dist/resources}/alpha/inference.mjs.map +0 -0
  517. /package/{resources → dist/resources}/alpha/post-training/index.js +0 -0
  518. /package/{resources → dist/resources}/alpha/post-training/index.mjs +0 -0
  519. /package/{resources → dist/resources}/alpha/post-training/job.js +0 -0
  520. /package/{resources → dist/resources}/alpha/post-training/job.js.map +0 -0
  521. /package/{resources → dist/resources}/alpha/post-training/job.mjs +0 -0
  522. /package/{resources → dist/resources}/alpha/post-training/job.mjs.map +0 -0
  523. /package/{resources → dist/resources}/alpha/post-training/post-training.js +0 -0
  524. /package/{resources → dist/resources}/alpha/post-training/post-training.mjs +0 -0
  525. /package/{resources → dist/resources}/alpha/post-training.d.ts +0 -0
  526. /package/{resources → dist/resources}/alpha/post-training.d.ts.map +0 -0
  527. /package/{resources → dist/resources}/alpha/post-training.js +0 -0
  528. /package/{resources → dist/resources}/alpha/post-training.js.map +0 -0
  529. /package/{resources → dist/resources}/alpha/post-training.mjs +0 -0
  530. /package/{resources → dist/resources}/alpha/post-training.mjs.map +0 -0
  531. /package/{resources → dist/resources}/alpha.d.ts +0 -0
  532. /package/{resources → dist/resources}/alpha.d.ts.map +0 -0
  533. /package/{resources → dist/resources}/alpha.js +0 -0
  534. /package/{resources → dist/resources}/alpha.js.map +0 -0
  535. /package/{resources → dist/resources}/alpha.mjs +0 -0
  536. /package/{resources → dist/resources}/alpha.mjs.map +0 -0
  537. /package/{resources → dist/resources}/batches.d.ts +0 -0
  538. /package/{resources → dist/resources}/batches.d.ts.map +0 -0
  539. /package/{resources → dist/resources}/batches.js +0 -0
  540. /package/{resources → dist/resources}/batches.js.map +0 -0
  541. /package/{resources → dist/resources}/batches.mjs +0 -0
  542. /package/{resources → dist/resources}/batches.mjs.map +0 -0
  543. /package/{resources → dist/resources}/beta/beta.d.ts +0 -0
  544. /package/{resources → dist/resources}/beta/beta.d.ts.map +0 -0
  545. /package/{resources → dist/resources}/beta/beta.js +0 -0
  546. /package/{resources → dist/resources}/beta/beta.js.map +0 -0
  547. /package/{resources → dist/resources}/beta/beta.mjs +0 -0
  548. /package/{resources → dist/resources}/beta/beta.mjs.map +0 -0
  549. /package/{resources → dist/resources}/beta/datasets.js +0 -0
  550. /package/{resources → dist/resources}/beta/datasets.js.map +0 -0
  551. /package/{resources → dist/resources}/beta/datasets.mjs +0 -0
  552. /package/{resources → dist/resources}/beta/datasets.mjs.map +0 -0
  553. /package/{resources → dist/resources}/beta/index.d.ts +0 -0
  554. /package/{resources → dist/resources}/beta/index.d.ts.map +0 -0
  555. /package/{resources → dist/resources}/beta/index.js +0 -0
  556. /package/{resources → dist/resources}/beta/index.js.map +0 -0
  557. /package/{resources → dist/resources}/beta/index.mjs +0 -0
  558. /package/{resources → dist/resources}/beta/index.mjs.map +0 -0
  559. /package/{resources → dist/resources}/beta.d.ts +0 -0
  560. /package/{resources → dist/resources}/beta.d.ts.map +0 -0
  561. /package/{resources → dist/resources}/beta.js +0 -0
  562. /package/{resources → dist/resources}/beta.js.map +0 -0
  563. /package/{resources → dist/resources}/beta.mjs +0 -0
  564. /package/{resources → dist/resources}/beta.mjs.map +0 -0
  565. /package/{resources → dist/resources}/chat/chat.js +0 -0
  566. /package/{resources → dist/resources}/chat/chat.js.map +0 -0
  567. /package/{resources → dist/resources}/chat/chat.mjs +0 -0
  568. /package/{resources → dist/resources}/chat/chat.mjs.map +0 -0
  569. /package/{resources → dist/resources}/chat/completions.js +0 -0
  570. /package/{resources → dist/resources}/chat/completions.js.map +0 -0
  571. /package/{resources → dist/resources}/chat/completions.mjs +0 -0
  572. /package/{resources → dist/resources}/chat/completions.mjs.map +0 -0
  573. /package/{resources → dist/resources}/chat/index.d.ts +0 -0
  574. /package/{resources → dist/resources}/chat/index.d.ts.map +0 -0
  575. /package/{resources → dist/resources}/chat/index.js +0 -0
  576. /package/{resources → dist/resources}/chat/index.js.map +0 -0
  577. /package/{resources → dist/resources}/chat/index.mjs +0 -0
  578. /package/{resources → dist/resources}/chat/index.mjs.map +0 -0
  579. /package/{resources → dist/resources}/chat.d.ts +0 -0
  580. /package/{resources → dist/resources}/chat.d.ts.map +0 -0
  581. /package/{resources → dist/resources}/chat.js +0 -0
  582. /package/{resources → dist/resources}/chat.js.map +0 -0
  583. /package/{resources → dist/resources}/chat.mjs +0 -0
  584. /package/{resources → dist/resources}/chat.mjs.map +0 -0
  585. /package/{resources → dist/resources}/completions.js +0 -0
  586. /package/{resources → dist/resources}/completions.js.map +0 -0
  587. /package/{resources → dist/resources}/completions.mjs +0 -0
  588. /package/{resources → dist/resources}/completions.mjs.map +0 -0
  589. /package/{resources → dist/resources}/conversations/conversations.js +0 -0
  590. /package/{resources → dist/resources}/conversations/conversations.mjs +0 -0
  591. /package/{resources → dist/resources}/conversations/index.d.ts +0 -0
  592. /package/{resources → dist/resources}/conversations/index.d.ts.map +0 -0
  593. /package/{resources → dist/resources}/conversations/index.js +0 -0
  594. /package/{resources → dist/resources}/conversations/index.js.map +0 -0
  595. /package/{resources → dist/resources}/conversations/index.mjs +0 -0
  596. /package/{resources → dist/resources}/conversations/index.mjs.map +0 -0
  597. /package/{resources → dist/resources}/conversations/items.js +0 -0
  598. /package/{resources → dist/resources}/conversations/items.mjs +0 -0
  599. /package/{resources → dist/resources}/conversations.d.ts +0 -0
  600. /package/{resources → dist/resources}/conversations.d.ts.map +0 -0
  601. /package/{resources → dist/resources}/conversations.js +0 -0
  602. /package/{resources → dist/resources}/conversations.js.map +0 -0
  603. /package/{resources → dist/resources}/conversations.mjs +0 -0
  604. /package/{resources → dist/resources}/conversations.mjs.map +0 -0
  605. /package/{resources → dist/resources}/embeddings.d.ts +0 -0
  606. /package/{resources → dist/resources}/embeddings.d.ts.map +0 -0
  607. /package/{resources → dist/resources}/embeddings.js +0 -0
  608. /package/{resources → dist/resources}/embeddings.js.map +0 -0
  609. /package/{resources → dist/resources}/embeddings.mjs +0 -0
  610. /package/{resources → dist/resources}/embeddings.mjs.map +0 -0
  611. /package/{resources → dist/resources}/files.d.ts +0 -0
  612. /package/{resources → dist/resources}/files.d.ts.map +0 -0
  613. /package/{resources → dist/resources}/files.js +0 -0
  614. /package/{resources → dist/resources}/files.js.map +0 -0
  615. /package/{resources → dist/resources}/files.mjs +0 -0
  616. /package/{resources → dist/resources}/files.mjs.map +0 -0
  617. /package/{resources → dist/resources}/index.js +0 -0
  618. /package/{resources → dist/resources}/index.mjs +0 -0
  619. /package/{resources → dist/resources}/models/index.d.ts +0 -0
  620. /package/{resources → dist/resources}/models/index.d.ts.map +0 -0
  621. /package/{resources → dist/resources}/models/index.js +0 -0
  622. /package/{resources → dist/resources}/models/index.js.map +0 -0
  623. /package/{resources → dist/resources}/models/index.mjs +0 -0
  624. /package/{resources → dist/resources}/models/index.mjs.map +0 -0
  625. /package/{resources → dist/resources}/models/models.d.ts +0 -0
  626. /package/{resources → dist/resources}/models/models.d.ts.map +0 -0
  627. /package/{resources → dist/resources}/models/models.js +0 -0
  628. /package/{resources → dist/resources}/models/models.js.map +0 -0
  629. /package/{resources → dist/resources}/models/models.mjs +0 -0
  630. /package/{resources → dist/resources}/models/models.mjs.map +0 -0
  631. /package/{resources → dist/resources}/models/openai.d.ts +0 -0
  632. /package/{resources → dist/resources}/models/openai.d.ts.map +0 -0
  633. /package/{resources → dist/resources}/models/openai.js +0 -0
  634. /package/{resources → dist/resources}/models/openai.js.map +0 -0
  635. /package/{resources → dist/resources}/models/openai.mjs +0 -0
  636. /package/{resources → dist/resources}/models/openai.mjs.map +0 -0
  637. /package/{resources → dist/resources}/models.d.ts +0 -0
  638. /package/{resources → dist/resources}/models.d.ts.map +0 -0
  639. /package/{resources → dist/resources}/models.js +0 -0
  640. /package/{resources → dist/resources}/models.js.map +0 -0
  641. /package/{resources → dist/resources}/models.mjs +0 -0
  642. /package/{resources → dist/resources}/models.mjs.map +0 -0
  643. /package/{resources → dist/resources}/moderations.d.ts +0 -0
  644. /package/{resources → dist/resources}/moderations.d.ts.map +0 -0
  645. /package/{resources → dist/resources}/moderations.js +0 -0
  646. /package/{resources → dist/resources}/moderations.js.map +0 -0
  647. /package/{resources → dist/resources}/moderations.mjs +0 -0
  648. /package/{resources → dist/resources}/moderations.mjs.map +0 -0
  649. /package/{resources → dist/resources}/prompts/index.d.ts +0 -0
  650. /package/{resources → dist/resources}/prompts/index.d.ts.map +0 -0
  651. /package/{resources → dist/resources}/prompts/index.js +0 -0
  652. /package/{resources → dist/resources}/prompts/index.js.map +0 -0
  653. /package/{resources → dist/resources}/prompts/index.mjs +0 -0
  654. /package/{resources → dist/resources}/prompts/index.mjs.map +0 -0
  655. /package/{resources → dist/resources}/prompts/prompts.d.ts +0 -0
  656. /package/{resources → dist/resources}/prompts/prompts.d.ts.map +0 -0
  657. /package/{resources → dist/resources}/prompts/prompts.js +0 -0
  658. /package/{resources → dist/resources}/prompts/prompts.js.map +0 -0
  659. /package/{resources → dist/resources}/prompts/prompts.mjs +0 -0
  660. /package/{resources → dist/resources}/prompts/prompts.mjs.map +0 -0
  661. /package/{resources → dist/resources}/prompts/versions.d.ts +0 -0
  662. /package/{resources → dist/resources}/prompts/versions.d.ts.map +0 -0
  663. /package/{resources → dist/resources}/prompts/versions.js +0 -0
  664. /package/{resources → dist/resources}/prompts/versions.js.map +0 -0
  665. /package/{resources → dist/resources}/prompts/versions.mjs +0 -0
  666. /package/{resources → dist/resources}/prompts/versions.mjs.map +0 -0
  667. /package/{resources → dist/resources}/prompts.d.ts +0 -0
  668. /package/{resources → dist/resources}/prompts.d.ts.map +0 -0
  669. /package/{resources → dist/resources}/prompts.js +0 -0
  670. /package/{resources → dist/resources}/prompts.js.map +0 -0
  671. /package/{resources → dist/resources}/prompts.mjs +0 -0
  672. /package/{resources → dist/resources}/prompts.mjs.map +0 -0
  673. /package/{resources → dist/resources}/responses/index.d.ts +0 -0
  674. /package/{resources → dist/resources}/responses/index.d.ts.map +0 -0
  675. /package/{resources → dist/resources}/responses/index.js +0 -0
  676. /package/{resources → dist/resources}/responses/index.js.map +0 -0
  677. /package/{resources → dist/resources}/responses/index.mjs +0 -0
  678. /package/{resources → dist/resources}/responses/index.mjs.map +0 -0
  679. /package/{resources → dist/resources}/responses/input-items.js +0 -0
  680. /package/{resources → dist/resources}/responses/input-items.js.map +0 -0
  681. /package/{resources → dist/resources}/responses/input-items.mjs +0 -0
  682. /package/{resources → dist/resources}/responses/input-items.mjs.map +0 -0
  683. /package/{resources → dist/resources}/responses/responses.js +0 -0
  684. /package/{resources → dist/resources}/responses/responses.mjs +0 -0
  685. /package/{resources → dist/resources}/responses.d.ts +0 -0
  686. /package/{resources → dist/resources}/responses.d.ts.map +0 -0
  687. /package/{resources → dist/resources}/responses.js +0 -0
  688. /package/{resources → dist/resources}/responses.js.map +0 -0
  689. /package/{resources → dist/resources}/responses.mjs +0 -0
  690. /package/{resources → dist/resources}/responses.mjs.map +0 -0
  691. /package/{resources → dist/resources}/routes.js +0 -0
  692. /package/{resources → dist/resources}/routes.mjs +0 -0
  693. /package/{resources → dist/resources}/safety.d.ts +0 -0
  694. /package/{resources → dist/resources}/safety.d.ts.map +0 -0
  695. /package/{resources → dist/resources}/safety.js +0 -0
  696. /package/{resources → dist/resources}/safety.js.map +0 -0
  697. /package/{resources → dist/resources}/safety.mjs +0 -0
  698. /package/{resources → dist/resources}/safety.mjs.map +0 -0
  699. /package/{resources → dist/resources}/scoring-functions.d.ts +0 -0
  700. /package/{resources → dist/resources}/scoring-functions.d.ts.map +0 -0
  701. /package/{resources → dist/resources}/scoring-functions.js +0 -0
  702. /package/{resources → dist/resources}/scoring-functions.js.map +0 -0
  703. /package/{resources → dist/resources}/scoring-functions.mjs +0 -0
  704. /package/{resources → dist/resources}/scoring-functions.mjs.map +0 -0
  705. /package/{resources → dist/resources}/scoring.d.ts +0 -0
  706. /package/{resources → dist/resources}/scoring.d.ts.map +0 -0
  707. /package/{resources → dist/resources}/scoring.js +0 -0
  708. /package/{resources → dist/resources}/scoring.js.map +0 -0
  709. /package/{resources → dist/resources}/scoring.mjs +0 -0
  710. /package/{resources → dist/resources}/scoring.mjs.map +0 -0
  711. /package/{resources → dist/resources}/shared.js +0 -0
  712. /package/{resources → dist/resources}/shared.js.map +0 -0
  713. /package/{resources → dist/resources}/shared.mjs +0 -0
  714. /package/{resources → dist/resources}/shared.mjs.map +0 -0
  715. /package/{resources → dist/resources}/shields.d.ts +0 -0
  716. /package/{resources → dist/resources}/shields.d.ts.map +0 -0
  717. /package/{resources → dist/resources}/shields.js +0 -0
  718. /package/{resources → dist/resources}/shields.js.map +0 -0
  719. /package/{resources → dist/resources}/shields.mjs +0 -0
  720. /package/{resources → dist/resources}/shields.mjs.map +0 -0
  721. /package/{resources → dist/resources}/tool-runtime.d.ts +0 -0
  722. /package/{resources → dist/resources}/tool-runtime.d.ts.map +0 -0
  723. /package/{resources → dist/resources}/tool-runtime.js +0 -0
  724. /package/{resources → dist/resources}/tool-runtime.js.map +0 -0
  725. /package/{resources → dist/resources}/tool-runtime.mjs +0 -0
  726. /package/{resources → dist/resources}/tool-runtime.mjs.map +0 -0
  727. /package/{resources → dist/resources}/toolgroups.d.ts +0 -0
  728. /package/{resources → dist/resources}/toolgroups.d.ts.map +0 -0
  729. /package/{resources → dist/resources}/toolgroups.js +0 -0
  730. /package/{resources → dist/resources}/toolgroups.js.map +0 -0
  731. /package/{resources → dist/resources}/toolgroups.mjs +0 -0
  732. /package/{resources → dist/resources}/toolgroups.mjs.map +0 -0
  733. /package/{resources → dist/resources}/tools.d.ts +0 -0
  734. /package/{resources → dist/resources}/tools.d.ts.map +0 -0
  735. /package/{resources → dist/resources}/tools.js +0 -0
  736. /package/{resources → dist/resources}/tools.js.map +0 -0
  737. /package/{resources → dist/resources}/tools.mjs +0 -0
  738. /package/{resources → dist/resources}/tools.mjs.map +0 -0
  739. /package/{resources → dist/resources}/vector-io.d.ts +0 -0
  740. /package/{resources → dist/resources}/vector-io.d.ts.map +0 -0
  741. /package/{resources → dist/resources}/vector-io.js +0 -0
  742. /package/{resources → dist/resources}/vector-io.js.map +0 -0
  743. /package/{resources → dist/resources}/vector-io.mjs +0 -0
  744. /package/{resources → dist/resources}/vector-io.mjs.map +0 -0
  745. /package/{resources → dist/resources}/vector-stores/file-batches.d.ts +0 -0
  746. /package/{resources → dist/resources}/vector-stores/file-batches.d.ts.map +0 -0
  747. /package/{resources → dist/resources}/vector-stores/file-batches.js +0 -0
  748. /package/{resources → dist/resources}/vector-stores/file-batches.js.map +0 -0
  749. /package/{resources → dist/resources}/vector-stores/file-batches.mjs +0 -0
  750. /package/{resources → dist/resources}/vector-stores/file-batches.mjs.map +0 -0
  751. /package/{resources → dist/resources}/vector-stores/files.d.ts +0 -0
  752. /package/{resources → dist/resources}/vector-stores/files.d.ts.map +0 -0
  753. /package/{resources → dist/resources}/vector-stores/files.js +0 -0
  754. /package/{resources → dist/resources}/vector-stores/files.js.map +0 -0
  755. /package/{resources → dist/resources}/vector-stores/files.mjs +0 -0
  756. /package/{resources → dist/resources}/vector-stores/files.mjs.map +0 -0
  757. /package/{resources → dist/resources}/vector-stores/index.d.ts +0 -0
  758. /package/{resources → dist/resources}/vector-stores/index.d.ts.map +0 -0
  759. /package/{resources → dist/resources}/vector-stores/index.js +0 -0
  760. /package/{resources → dist/resources}/vector-stores/index.js.map +0 -0
  761. /package/{resources → dist/resources}/vector-stores/index.mjs +0 -0
  762. /package/{resources → dist/resources}/vector-stores/index.mjs.map +0 -0
  763. /package/{resources → dist/resources}/vector-stores/vector-stores.d.ts +0 -0
  764. /package/{resources → dist/resources}/vector-stores/vector-stores.d.ts.map +0 -0
  765. /package/{resources → dist/resources}/vector-stores/vector-stores.js +0 -0
  766. /package/{resources → dist/resources}/vector-stores/vector-stores.js.map +0 -0
  767. /package/{resources → dist/resources}/vector-stores/vector-stores.mjs +0 -0
  768. /package/{resources → dist/resources}/vector-stores/vector-stores.mjs.map +0 -0
  769. /package/{resources → dist/resources}/vector-stores.d.ts +0 -0
  770. /package/{resources → dist/resources}/vector-stores.d.ts.map +0 -0
  771. /package/{resources → dist/resources}/vector-stores.js +0 -0
  772. /package/{resources → dist/resources}/vector-stores.js.map +0 -0
  773. /package/{resources → dist/resources}/vector-stores.mjs +0 -0
  774. /package/{resources → dist/resources}/vector-stores.mjs.map +0 -0
  775. /package/{resources.d.ts → dist/resources.d.ts} +0 -0
  776. /package/{resources.d.ts.map → dist/resources.d.ts.map} +0 -0
  777. /package/{resources.js → dist/resources.js} +0 -0
  778. /package/{resources.js.map → dist/resources.js.map} +0 -0
  779. /package/{resources.mjs → dist/resources.mjs} +0 -0
  780. /package/{resources.mjs.map → dist/resources.mjs.map} +0 -0
  781. /package/{shims → dist/shims}/node.d.ts +0 -0
  782. /package/{shims → dist/shims}/node.d.ts.map +0 -0
  783. /package/{shims → dist/shims}/node.js +0 -0
  784. /package/{shims → dist/shims}/node.js.map +0 -0
  785. /package/{shims → dist/shims}/node.mjs +0 -0
  786. /package/{shims → dist/shims}/node.mjs.map +0 -0
  787. /package/{shims → dist/shims}/web.d.ts +0 -0
  788. /package/{shims → dist/shims}/web.d.ts.map +0 -0
  789. /package/{shims → dist/shims}/web.js +0 -0
  790. /package/{shims → dist/shims}/web.js.map +0 -0
  791. /package/{shims → dist/shims}/web.mjs +0 -0
  792. /package/{shims → dist/shims}/web.mjs.map +0 -0
  793. /package/{src → dist/src}/tsconfig.json +0 -0
  794. /package/{streaming.d.ts → dist/streaming.d.ts} +0 -0
  795. /package/{streaming.d.ts.map → dist/streaming.d.ts.map} +0 -0
  796. /package/{streaming.js → dist/streaming.js} +0 -0
  797. /package/{streaming.js.map → dist/streaming.js.map} +0 -0
  798. /package/{streaming.mjs → dist/streaming.mjs} +0 -0
  799. /package/{streaming.mjs.map → dist/streaming.mjs.map} +0 -0
  800. /package/{uploads.d.ts → dist/uploads.d.ts} +0 -0
  801. /package/{uploads.d.ts.map → dist/uploads.d.ts.map} +0 -0
  802. /package/{uploads.js → dist/uploads.js} +0 -0
  803. /package/{uploads.js.map → dist/uploads.js.map} +0 -0
  804. /package/{uploads.mjs → dist/uploads.mjs} +0 -0
  805. /package/{uploads.mjs.map → dist/uploads.mjs.map} +0 -0
  806. /package/{version.d.ts.map → dist/version.d.ts.map} +0 -0
  807. /package/{version.js.map → dist/version.js.map} +0 -0
  808. /package/{version.mjs.map → dist/version.mjs.map} +0 -0
@@ -0,0 +1,19 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ // All rights reserved.
3
+ //
4
+ // This source code is licensed under the terms described in the LICENSE file in
5
+ // the root directory of this source tree.
6
+ //
7
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8
+
9
+ export { Chat, type ChatCompletionChunk } from './chat';
10
+ export {
11
+ Completions,
12
+ type CompletionCreateResponse,
13
+ type CompletionRetrieveResponse,
14
+ type CompletionListResponse,
15
+ type CompletionCreateParams,
16
+ type CompletionCreateParamsNonStreaming,
17
+ type CompletionCreateParamsStreaming,
18
+ type CompletionListParams,
19
+ } from './completions';
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ // All rights reserved.
3
+ //
4
+ // This source code is licensed under the terms described in the LICENSE file in
5
+ // the root directory of this source tree.
6
+ //
7
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8
+
9
+ export * from './chat/index';
@@ -0,0 +1,235 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ // All rights reserved.
3
+ //
4
+ // This source code is licensed under the terms described in the LICENSE file in
5
+ // the root directory of this source tree.
6
+ //
7
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8
+
9
+ import { APIResource } from '../resource';
10
+ import { APIPromise } from '../core';
11
+ import * as Core from '../core';
12
+ import * as CompletionsAPI from './completions';
13
+ import { Stream } from '../streaming';
14
+
15
+ export class Completions extends APIResource {
16
+ /**
17
+ * Create completion.
18
+ *
19
+ * Generate an OpenAI-compatible completion for the given prompt using the
20
+ * specified model.
21
+ */
22
+ create(
23
+ body: CompletionCreateParamsNonStreaming,
24
+ options?: Core.RequestOptions,
25
+ ): APIPromise<CompletionCreateResponse>;
26
+ create(
27
+ body: CompletionCreateParamsStreaming,
28
+ options?: Core.RequestOptions,
29
+ ): APIPromise<Stream<CompletionCreateResponse>>;
30
+ create(
31
+ body: CompletionCreateParamsBase,
32
+ options?: Core.RequestOptions,
33
+ ): APIPromise<Stream<CompletionCreateResponse> | CompletionCreateResponse>;
34
+ create(
35
+ body: CompletionCreateParams,
36
+ options?: Core.RequestOptions,
37
+ ): APIPromise<CompletionCreateResponse> | APIPromise<Stream<CompletionCreateResponse>> {
38
+ return this._client.post('/v1/completions', { body, ...options, stream: body.stream ?? false }) as
39
+ | APIPromise<CompletionCreateResponse>
40
+ | APIPromise<Stream<CompletionCreateResponse>>;
41
+ }
42
+ }
43
+
44
+ /**
45
+ * Response from an OpenAI-compatible completion request.
46
+ *
47
+ * :id: The ID of the completion :choices: List of choices :created: The Unix
48
+ * timestamp in seconds when the completion was created :model: The model that was
49
+ * used to generate the completion :object: The object type, which will be
50
+ * "text_completion"
51
+ */
52
+ export interface CompletionCreateResponse {
53
+ id: string;
54
+
55
+ choices: Array<CompletionCreateResponse.Choice>;
56
+
57
+ created: number;
58
+
59
+ model: string;
60
+
61
+ object?: 'text_completion';
62
+ }
63
+
64
+ export namespace CompletionCreateResponse {
65
+ /**
66
+ * A choice from an OpenAI-compatible completion response.
67
+ *
68
+ * :finish_reason: The reason the model stopped generating :text: The text of the
69
+ * choice :index: The index of the choice :logprobs: (Optional) The log
70
+ * probabilities for the tokens in the choice
71
+ */
72
+ export interface Choice {
73
+ finish_reason: string;
74
+
75
+ index: number;
76
+
77
+ text: string;
78
+
79
+ /**
80
+ * The log probabilities for the tokens in the message from an OpenAI-compatible
81
+ * chat completion response.
82
+ */
83
+ logprobs?: Choice.Logprobs | null;
84
+ }
85
+
86
+ export namespace Choice {
87
+ /**
88
+ * The log probabilities for the tokens in the message from an OpenAI-compatible
89
+ * chat completion response.
90
+ */
91
+ export interface Logprobs {
92
+ content?: Array<Logprobs.Content> | null;
93
+
94
+ refusal?: Array<Logprobs.Refusal> | null;
95
+ }
96
+
97
+ export namespace Logprobs {
98
+ /**
99
+ * The log probability for a token from an OpenAI-compatible chat completion
100
+ * response.
101
+ *
102
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
103
+ * probability of the token :top_logprobs: The top log probabilities for the token
104
+ */
105
+ export interface Content {
106
+ token: string;
107
+
108
+ logprob: number;
109
+
110
+ top_logprobs: Array<Content.TopLogprob>;
111
+
112
+ bytes?: Array<number> | null;
113
+ }
114
+
115
+ export namespace Content {
116
+ /**
117
+ * The top log probability for a token from an OpenAI-compatible chat completion
118
+ * response.
119
+ *
120
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
121
+ * probability of the token
122
+ */
123
+ export interface TopLogprob {
124
+ token: string;
125
+
126
+ logprob: number;
127
+
128
+ bytes?: Array<number> | null;
129
+ }
130
+ }
131
+
132
+ /**
133
+ * The log probability for a token from an OpenAI-compatible chat completion
134
+ * response.
135
+ *
136
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
137
+ * probability of the token :top_logprobs: The top log probabilities for the token
138
+ */
139
+ export interface Refusal {
140
+ token: string;
141
+
142
+ logprob: number;
143
+
144
+ top_logprobs: Array<Refusal.TopLogprob>;
145
+
146
+ bytes?: Array<number> | null;
147
+ }
148
+
149
+ export namespace Refusal {
150
+ /**
151
+ * The top log probability for a token from an OpenAI-compatible chat completion
152
+ * response.
153
+ *
154
+ * :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
155
+ * probability of the token
156
+ */
157
+ export interface TopLogprob {
158
+ token: string;
159
+
160
+ logprob: number;
161
+
162
+ bytes?: Array<number> | null;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ export type CompletionCreateParams = CompletionCreateParamsNonStreaming | CompletionCreateParamsStreaming;
170
+
171
+ export interface CompletionCreateParamsBase {
172
+ model: string;
173
+
174
+ prompt: string | Array<string> | Array<number> | Array<Array<number>>;
175
+
176
+ best_of?: number | null;
177
+
178
+ echo?: boolean | null;
179
+
180
+ frequency_penalty?: number | null;
181
+
182
+ logit_bias?: { [key: string]: number } | null;
183
+
184
+ logprobs?: boolean | null;
185
+
186
+ max_tokens?: number | null;
187
+
188
+ n?: number | null;
189
+
190
+ presence_penalty?: number | null;
191
+
192
+ seed?: number | null;
193
+
194
+ stop?: string | Array<string> | null;
195
+
196
+ stream?: boolean | null;
197
+
198
+ stream_options?: { [key: string]: unknown } | null;
199
+
200
+ suffix?: string | null;
201
+
202
+ temperature?: number | null;
203
+
204
+ top_p?: number | null;
205
+
206
+ user?: string | null;
207
+
208
+ [k: string]: unknown;
209
+ }
210
+
211
+ export namespace CompletionCreateParams {
212
+ export type CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming;
213
+ export type CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming;
214
+ }
215
+
216
+ export interface CompletionCreateParamsNonStreaming extends CompletionCreateParamsBase {
217
+ stream?: false | null;
218
+
219
+ [k: string]: unknown;
220
+ }
221
+
222
+ export interface CompletionCreateParamsStreaming extends CompletionCreateParamsBase {
223
+ stream: true;
224
+
225
+ [k: string]: unknown;
226
+ }
227
+
228
+ export declare namespace Completions {
229
+ export {
230
+ type CompletionCreateResponse as CompletionCreateResponse,
231
+ type CompletionCreateParams as CompletionCreateParams,
232
+ type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming,
233
+ type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming,
234
+ };
235
+ }
@@ -0,0 +1,455 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ // All rights reserved.
3
+ //
4
+ // This source code is licensed under the terms described in the LICENSE file in
5
+ // the root directory of this source tree.
6
+ //
7
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
8
+
9
+ import { APIResource } from '../../resource';
10
+ import * as Core from '../../core';
11
+ import * as ItemsAPI from './items';
12
+ import {
13
+ ItemCreateParams,
14
+ ItemCreateResponse,
15
+ ItemDeleteResponse,
16
+ ItemGetResponse,
17
+ ItemListParams,
18
+ ItemListResponse,
19
+ ItemListResponsesOpenAICursorPage,
20
+ Items,
21
+ } from './items';
22
+
23
+ export class Conversations extends APIResource {
24
+ items: ItemsAPI.Items = new ItemsAPI.Items(this._client);
25
+
26
+ /**
27
+ * Create a conversation.
28
+ *
29
+ * Create a conversation.
30
+ */
31
+ create(body: ConversationCreateParams, options?: Core.RequestOptions): Core.APIPromise<ConversationObject> {
32
+ return this._client.post('/v1/conversations', { body, ...options });
33
+ }
34
+
35
+ /**
36
+ * Retrieve a conversation.
37
+ *
38
+ * Get a conversation with the given ID.
39
+ */
40
+ retrieve(conversationId: string, options?: Core.RequestOptions): Core.APIPromise<ConversationObject> {
41
+ return this._client.get(`/v1/conversations/${conversationId}`, options);
42
+ }
43
+
44
+ /**
45
+ * Update a conversation.
46
+ *
47
+ * Update a conversation's metadata with the given ID.
48
+ */
49
+ update(
50
+ conversationId: string,
51
+ body: ConversationUpdateParams,
52
+ options?: Core.RequestOptions,
53
+ ): Core.APIPromise<ConversationObject> {
54
+ return this._client.post(`/v1/conversations/${conversationId}`, { body, ...options });
55
+ }
56
+
57
+ /**
58
+ * Delete a conversation.
59
+ *
60
+ * Delete a conversation with the given ID.
61
+ */
62
+ delete(conversationId: string, options?: Core.RequestOptions): Core.APIPromise<ConversationDeleteResponse> {
63
+ return this._client.delete(`/v1/conversations/${conversationId}`, options);
64
+ }
65
+ }
66
+
67
+ /**
68
+ * OpenAI-compatible conversation object.
69
+ */
70
+ export interface ConversationObject {
71
+ /**
72
+ * The unique ID of the conversation.
73
+ */
74
+ id: string;
75
+
76
+ /**
77
+ * The time at which the conversation was created, measured in seconds since the
78
+ * Unix epoch.
79
+ */
80
+ created_at: number;
81
+
82
+ /**
83
+ * Initial items to include in the conversation context. You may add up to 20 items
84
+ * at a time.
85
+ */
86
+ items?: Array<{ [key: string]: unknown }> | null;
87
+
88
+ /**
89
+ * Set of 16 key-value pairs that can be attached to an object. This can be useful
90
+ * for storing additional information about the object in a structured format, and
91
+ * querying for objects via API or the dashboard.
92
+ */
93
+ metadata?: { [key: string]: string } | null;
94
+
95
+ /**
96
+ * The object type, which is always conversation.
97
+ */
98
+ object?: 'conversation';
99
+ }
100
+
101
+ /**
102
+ * Response for deleted conversation.
103
+ */
104
+ export interface ConversationDeleteResponse {
105
+ /**
106
+ * The deleted conversation identifier
107
+ */
108
+ id: string;
109
+
110
+ /**
111
+ * Whether the object was deleted
112
+ */
113
+ deleted?: boolean;
114
+
115
+ /**
116
+ * Object type
117
+ */
118
+ object?: string;
119
+ }
120
+
121
+ export interface ConversationCreateParams {
122
+ items?: Array<
123
+ | ConversationCreateParams.OpenAIResponseMessageInput
124
+ | ConversationCreateParams.OpenAIResponseOutputMessageWebSearchToolCall
125
+ | ConversationCreateParams.OpenAIResponseOutputMessageFileSearchToolCall
126
+ | ConversationCreateParams.OpenAIResponseOutputMessageFunctionToolCall
127
+ | ConversationCreateParams.OpenAIResponseInputFunctionToolCallOutput
128
+ | ConversationCreateParams.OpenAIResponseMcpApprovalRequest
129
+ | ConversationCreateParams.OpenAIResponseMcpApprovalResponse
130
+ | ConversationCreateParams.OpenAIResponseOutputMessageMcpCall
131
+ | ConversationCreateParams.OpenAIResponseOutputMessageMcpListTools
132
+ > | null;
133
+
134
+ metadata?: { [key: string]: string } | null;
135
+ }
136
+
137
+ export namespace ConversationCreateParams {
138
+ /**
139
+ * Corresponds to the various Message types in the Responses API. They are all
140
+ * under one type because the Responses API gives them all the same "type" value,
141
+ * and there is no way to tell them apart in certain scenarios.
142
+ */
143
+ export interface OpenAIResponseMessageInput {
144
+ content:
145
+ | string
146
+ | Array<
147
+ | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentText
148
+ | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentImage
149
+ | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile
150
+ >
151
+ | Array<
152
+ | OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputText
153
+ | OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal
154
+ >;
155
+
156
+ role: 'system' | 'developer' | 'user' | 'assistant';
157
+
158
+ id?: string | null;
159
+
160
+ status?: string | null;
161
+
162
+ type?: 'message';
163
+ }
164
+
165
+ export namespace OpenAIResponseMessageInput {
166
+ /**
167
+ * Text content for input messages in OpenAI response format.
168
+ */
169
+ export interface OpenAIResponseInputMessageContentText {
170
+ text: string;
171
+
172
+ type?: 'input_text';
173
+ }
174
+
175
+ /**
176
+ * Image content for input messages in OpenAI response format.
177
+ */
178
+ export interface OpenAIResponseInputMessageContentImage {
179
+ detail?: 'low' | 'high' | 'auto';
180
+
181
+ file_id?: string | null;
182
+
183
+ image_url?: string | null;
184
+
185
+ type?: 'input_image';
186
+ }
187
+
188
+ /**
189
+ * File content for input messages in OpenAI response format.
190
+ */
191
+ export interface OpenAIResponseInputMessageContentFile {
192
+ file_data?: string | null;
193
+
194
+ file_id?: string | null;
195
+
196
+ file_url?: string | null;
197
+
198
+ filename?: string | null;
199
+
200
+ type?: 'input_file';
201
+ }
202
+
203
+ export interface OpenAIResponseOutputMessageContentOutputText {
204
+ text: string;
205
+
206
+ annotations?: Array<
207
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
208
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationCitation
209
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationContainerFileCitation
210
+ | OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath
211
+ >;
212
+
213
+ type?: 'output_text';
214
+ }
215
+
216
+ export namespace OpenAIResponseOutputMessageContentOutputText {
217
+ /**
218
+ * File citation annotation for referencing specific files in response content.
219
+ */
220
+ export interface OpenAIResponseAnnotationFileCitation {
221
+ file_id: string;
222
+
223
+ filename: string;
224
+
225
+ index: number;
226
+
227
+ type?: 'file_citation';
228
+ }
229
+
230
+ /**
231
+ * URL citation annotation for referencing external web resources.
232
+ */
233
+ export interface OpenAIResponseAnnotationCitation {
234
+ end_index: number;
235
+
236
+ start_index: number;
237
+
238
+ title: string;
239
+
240
+ url: string;
241
+
242
+ type?: 'url_citation';
243
+ }
244
+
245
+ export interface OpenAIResponseAnnotationContainerFileCitation {
246
+ container_id: string;
247
+
248
+ end_index: number;
249
+
250
+ file_id: string;
251
+
252
+ filename: string;
253
+
254
+ start_index: number;
255
+
256
+ type?: 'container_file_citation';
257
+ }
258
+
259
+ export interface OpenAIResponseAnnotationFilePath {
260
+ file_id: string;
261
+
262
+ index: number;
263
+
264
+ type?: 'file_path';
265
+ }
266
+ }
267
+
268
+ /**
269
+ * Refusal content within a streamed response part.
270
+ */
271
+ export interface OpenAIResponseContentPartRefusal {
272
+ refusal: string;
273
+
274
+ type?: 'refusal';
275
+ }
276
+ }
277
+
278
+ /**
279
+ * Web search tool call output message for OpenAI responses.
280
+ */
281
+ export interface OpenAIResponseOutputMessageWebSearchToolCall {
282
+ id: string;
283
+
284
+ status: string;
285
+
286
+ type?: 'web_search_call';
287
+ }
288
+
289
+ /**
290
+ * File search tool call output message for OpenAI responses.
291
+ */
292
+ export interface OpenAIResponseOutputMessageFileSearchToolCall {
293
+ id: string;
294
+
295
+ queries: Array<string>;
296
+
297
+ status: string;
298
+
299
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
300
+
301
+ type?: 'file_search_call';
302
+ }
303
+
304
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
305
+ /**
306
+ * Search results returned by the file search operation.
307
+ */
308
+ export interface Result {
309
+ attributes: { [key: string]: unknown };
310
+
311
+ file_id: string;
312
+
313
+ filename: string;
314
+
315
+ score: number;
316
+
317
+ text: string;
318
+ }
319
+ }
320
+
321
+ /**
322
+ * Function tool call output message for OpenAI responses.
323
+ */
324
+ export interface OpenAIResponseOutputMessageFunctionToolCall {
325
+ arguments: string;
326
+
327
+ call_id: string;
328
+
329
+ name: string;
330
+
331
+ id?: string | null;
332
+
333
+ status?: string | null;
334
+
335
+ type?: 'function_call';
336
+ }
337
+
338
+ /**
339
+ * This represents the output of a function call that gets passed back to the
340
+ * model.
341
+ */
342
+ export interface OpenAIResponseInputFunctionToolCallOutput {
343
+ call_id: string;
344
+
345
+ output: string;
346
+
347
+ id?: string | null;
348
+
349
+ status?: string | null;
350
+
351
+ type?: 'function_call_output';
352
+ }
353
+
354
+ /**
355
+ * A request for human approval of a tool invocation.
356
+ */
357
+ export interface OpenAIResponseMcpApprovalRequest {
358
+ id: string;
359
+
360
+ arguments: string;
361
+
362
+ name: string;
363
+
364
+ server_label: string;
365
+
366
+ type?: 'mcp_approval_request';
367
+ }
368
+
369
+ /**
370
+ * A response to an MCP approval request.
371
+ */
372
+ export interface OpenAIResponseMcpApprovalResponse {
373
+ approval_request_id: string;
374
+
375
+ approve: boolean;
376
+
377
+ id?: string | null;
378
+
379
+ reason?: string | null;
380
+
381
+ type?: 'mcp_approval_response';
382
+ }
383
+
384
+ /**
385
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
386
+ */
387
+ export interface OpenAIResponseOutputMessageMcpCall {
388
+ id: string;
389
+
390
+ arguments: string;
391
+
392
+ name: string;
393
+
394
+ server_label: string;
395
+
396
+ error?: string | null;
397
+
398
+ output?: string | null;
399
+
400
+ type?: 'mcp_call';
401
+ }
402
+
403
+ /**
404
+ * MCP list tools output message containing available tools from an MCP server.
405
+ */
406
+ export interface OpenAIResponseOutputMessageMcpListTools {
407
+ id: string;
408
+
409
+ server_label: string;
410
+
411
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
412
+
413
+ type?: 'mcp_list_tools';
414
+ }
415
+
416
+ export namespace OpenAIResponseOutputMessageMcpListTools {
417
+ /**
418
+ * Tool definition returned by MCP list tools operation.
419
+ */
420
+ export interface Tool {
421
+ input_schema: { [key: string]: unknown };
422
+
423
+ name: string;
424
+
425
+ description?: string | null;
426
+ }
427
+ }
428
+ }
429
+
430
+ export interface ConversationUpdateParams {
431
+ metadata: { [key: string]: string };
432
+ }
433
+
434
+ Conversations.Items = Items;
435
+ Conversations.ItemListResponsesOpenAICursorPage = ItemListResponsesOpenAICursorPage;
436
+
437
+ export declare namespace Conversations {
438
+ export {
439
+ type ConversationObject as ConversationObject,
440
+ type ConversationDeleteResponse as ConversationDeleteResponse,
441
+ type ConversationCreateParams as ConversationCreateParams,
442
+ type ConversationUpdateParams as ConversationUpdateParams,
443
+ };
444
+
445
+ export {
446
+ Items as Items,
447
+ type ItemCreateResponse as ItemCreateResponse,
448
+ type ItemListResponse as ItemListResponse,
449
+ type ItemDeleteResponse as ItemDeleteResponse,
450
+ type ItemGetResponse as ItemGetResponse,
451
+ ItemListResponsesOpenAICursorPage as ItemListResponsesOpenAICursorPage,
452
+ type ItemCreateParams as ItemCreateParams,
453
+ type ItemListParams as ItemListParams,
454
+ };
455
+ }