llama-stack-client 0.4.3 → 0.4.5

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 (932) 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/CHANGELOG.md +41 -0
  13. package/CODE_OF_CONDUCT.md +80 -0
  14. package/CONTRIBUTING.md +98 -0
  15. package/LICENSE +1 -1
  16. package/README.md +10 -5
  17. package/SECURITY.md +27 -0
  18. package/api.md +491 -0
  19. package/bin/check-release-environment +18 -0
  20. package/bin/publish-npm +61 -0
  21. package/dist/CHANGELOG.md +393 -0
  22. package/dist/LICENSE +7 -0
  23. package/dist/README.md +369 -0
  24. package/dist/core.d.ts.map +1 -0
  25. package/dist/core.js +945 -0
  26. package/dist/core.js.map +1 -0
  27. package/dist/core.mjs +913 -0
  28. package/dist/core.mjs.map +1 -0
  29. package/dist/package.json +108 -0
  30. package/dist/resources/alpha/alpha.d.ts +26 -0
  31. package/dist/resources/alpha/alpha.d.ts.map +1 -0
  32. package/dist/resources/alpha/alpha.js +61 -0
  33. package/dist/resources/alpha/alpha.js.map +1 -0
  34. package/dist/resources/alpha/alpha.mjs +34 -0
  35. package/dist/resources/alpha/alpha.mjs.map +1 -0
  36. package/dist/resources/alpha/eval/eval.d.ts +181 -0
  37. package/dist/resources/alpha/eval/eval.d.ts.map +1 -0
  38. package/dist/resources/alpha/eval/eval.js.map +1 -0
  39. package/dist/resources/alpha/eval/eval.mjs.map +1 -0
  40. package/dist/resources/alpha/inference.d.ts +136 -0
  41. package/dist/resources/alpha/inference.d.ts.map +1 -0
  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/dist/resources/alpha/post-training/index.js.map +1 -0
  45. package/dist/resources/alpha/post-training/index.mjs +10 -0
  46. package/dist/resources/alpha/post-training/index.mjs.map +1 -0
  47. package/dist/resources/alpha/post-training/job.d.ts +104 -0
  48. package/dist/resources/alpha/post-training/job.d.ts.map +1 -0
  49. package/dist/resources/alpha/post-training/job.js +42 -0
  50. package/dist/resources/alpha/post-training/job.js.map +1 -0
  51. package/dist/resources/alpha/post-training/job.mjs +38 -0
  52. package/dist/resources/alpha/post-training/job.mjs.map +1 -0
  53. package/dist/resources/alpha/post-training/post-training.d.ts +269 -0
  54. package/dist/resources/alpha/post-training/post-training.d.ts.map +1 -0
  55. package/dist/resources/alpha/post-training/post-training.js.map +1 -0
  56. package/dist/resources/alpha/post-training/post-training.mjs +30 -0
  57. package/dist/resources/alpha/post-training/post-training.mjs.map +1 -0
  58. package/dist/resources/beta/datasets.d.ts +351 -0
  59. package/dist/resources/beta/datasets.d.ts.map +1 -0
  60. package/dist/resources/chat/chat.d.ts +274 -0
  61. package/dist/resources/chat/chat.d.ts.map +1 -0
  62. package/dist/resources/chat/chat.js.map +1 -0
  63. package/dist/resources/chat/chat.mjs.map +1 -0
  64. package/dist/resources/chat/completions.d.ts +2413 -0
  65. package/dist/resources/chat/completions.d.ts.map +1 -0
  66. package/dist/resources/chat/completions.js +31 -0
  67. package/dist/resources/chat/completions.js.map +1 -0
  68. package/dist/resources/chat/completions.mjs +27 -0
  69. package/dist/resources/chat/completions.mjs.map +1 -0
  70. package/dist/resources/completions.d.ts +267 -0
  71. package/dist/resources/completions.d.ts.map +1 -0
  72. package/dist/resources/completions.js.map +1 -0
  73. package/dist/resources/completions.mjs.map +1 -0
  74. package/dist/resources/conversations/conversations.d.ts +336 -0
  75. package/dist/resources/conversations/conversations.d.ts.map +1 -0
  76. package/dist/resources/conversations/conversations.js +70 -0
  77. package/dist/resources/conversations/conversations.js.map +1 -0
  78. package/dist/resources/conversations/conversations.mjs +43 -0
  79. package/dist/resources/conversations/conversations.mjs.map +1 -0
  80. package/dist/resources/conversations/items.d.ts +1045 -0
  81. package/dist/resources/conversations/items.d.ts.map +1 -0
  82. package/dist/resources/conversations/items.js +45 -0
  83. package/dist/resources/conversations/items.js.map +1 -0
  84. package/dist/resources/conversations/items.mjs +40 -0
  85. package/dist/resources/conversations/items.mjs.map +1 -0
  86. package/dist/resources/embeddings.d.ts +90 -0
  87. package/dist/resources/embeddings.d.ts.map +1 -0
  88. package/dist/resources/embeddings.js +22 -0
  89. package/dist/resources/embeddings.js.map +1 -0
  90. package/dist/resources/embeddings.mjs +18 -0
  91. package/dist/resources/embeddings.mjs.map +1 -0
  92. package/dist/resources/files.d.ts +147 -0
  93. package/dist/resources/files.d.ts.map +1 -0
  94. package/dist/resources/files.js +75 -0
  95. package/dist/resources/files.js.map +1 -0
  96. package/dist/resources/files.mjs +47 -0
  97. package/dist/resources/files.mjs.map +1 -0
  98. package/dist/resources/models/models.d.ts +142 -0
  99. package/dist/resources/models/models.d.ts.map +1 -0
  100. package/dist/resources/models/models.js +76 -0
  101. package/dist/resources/models/models.js.map +1 -0
  102. package/dist/resources/models/models.mjs +49 -0
  103. package/dist/resources/models/models.mjs.map +1 -0
  104. package/dist/resources/moderations.d.ts +80 -0
  105. package/dist/resources/moderations.d.ts.map +1 -0
  106. package/dist/resources/moderations.js +21 -0
  107. package/dist/resources/moderations.js.map +1 -0
  108. package/dist/resources/moderations.mjs +17 -0
  109. package/dist/resources/moderations.mjs.map +1 -0
  110. package/dist/resources/prompts/prompts.d.ts +110 -0
  111. package/dist/resources/prompts/prompts.d.ts.map +1 -0
  112. package/dist/resources/prompts/prompts.js +85 -0
  113. package/dist/resources/prompts/prompts.js.map +1 -0
  114. package/dist/resources/prompts/prompts.mjs +58 -0
  115. package/dist/resources/prompts/prompts.mjs.map +1 -0
  116. package/dist/resources/prompts/versions.d.ts +10 -0
  117. package/dist/resources/prompts/versions.d.ts.map +1 -0
  118. package/dist/resources/prompts/versions.js +21 -0
  119. package/dist/resources/prompts/versions.js.map +1 -0
  120. package/dist/resources/prompts/versions.mjs +17 -0
  121. package/dist/resources/prompts/versions.mjs.map +1 -0
  122. package/dist/resources/responses/input-items.d.ts +410 -0
  123. package/dist/resources/responses/input-items.d.ts.map +1 -0
  124. package/dist/resources/responses/responses.d.ts +3180 -0
  125. package/dist/resources/responses/responses.d.ts.map +1 -0
  126. package/dist/resources/responses/responses.js.map +1 -0
  127. package/dist/resources/responses/responses.mjs.map +1 -0
  128. package/dist/resources/safety.d.ts +294 -0
  129. package/dist/resources/safety.d.ts.map +1 -0
  130. package/dist/resources/safety.js +21 -0
  131. package/dist/resources/safety.js.map +1 -0
  132. package/dist/resources/safety.mjs +17 -0
  133. package/dist/resources/safety.mjs.map +1 -0
  134. package/dist/resources/scoring-functions.d.ts +232 -0
  135. package/dist/resources/scoring-functions.d.ts.map +1 -0
  136. package/dist/resources/scoring.d.ts +157 -0
  137. package/dist/resources/scoring.d.ts.map +1 -0
  138. package/dist/resources/shared.d.ts +464 -0
  139. package/dist/resources/shared.d.ts.map +1 -0
  140. package/dist/resources/shields.d.ts +82 -0
  141. package/dist/resources/shields.d.ts.map +1 -0
  142. package/dist/resources/vector-io.d.ts +375 -0
  143. package/dist/resources/vector-io.d.ts.map +1 -0
  144. package/dist/resources/vector-io.js +31 -0
  145. package/dist/resources/vector-io.mjs +27 -0
  146. package/dist/resources/vector-stores/file-batches.d.ts +117 -0
  147. package/dist/resources/vector-stores/file-batches.d.ts.map +1 -0
  148. package/dist/resources/vector-stores/file-batches.js +42 -0
  149. package/dist/resources/vector-stores/file-batches.js.map +1 -0
  150. package/dist/resources/vector-stores/file-batches.mjs +38 -0
  151. package/dist/resources/vector-stores/file-batches.mjs.map +1 -0
  152. package/dist/resources/vector-stores/files.d.ts +235 -0
  153. package/dist/resources/vector-stores/files.d.ts.map +1 -0
  154. package/dist/resources/vector-stores/files.js +60 -0
  155. package/dist/resources/vector-stores/files.js.map +1 -0
  156. package/dist/resources/vector-stores/files.mjs +55 -0
  157. package/dist/resources/vector-stores/files.mjs.map +1 -0
  158. package/dist/resources/vector-stores/vector-stores.d.ts +322 -0
  159. package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -0
  160. package/dist/resources/vector-stores/vector-stores.js +92 -0
  161. package/dist/resources/vector-stores/vector-stores.js.map +1 -0
  162. package/dist/resources/vector-stores/vector-stores.mjs +64 -0
  163. package/dist/resources/vector-stores/vector-stores.mjs.map +1 -0
  164. package/dist/src/_shims/MultipartBody.ts +15 -0
  165. package/dist/src/_shims/README.md +46 -0
  166. package/dist/src/_shims/auto/runtime-bun.ts +10 -0
  167. package/dist/src/_shims/auto/runtime-node.ts +10 -0
  168. package/dist/src/_shims/auto/runtime.ts +10 -0
  169. package/dist/src/_shims/auto/types-node.ts +10 -0
  170. package/dist/src/_shims/auto/types.d.ts +107 -0
  171. package/dist/src/_shims/auto/types.js +9 -0
  172. package/dist/src/_shims/auto/types.mjs +10 -0
  173. package/dist/src/_shims/bun-runtime.ts +20 -0
  174. package/dist/src/_shims/index.d.ts +89 -0
  175. package/dist/src/_shims/index.js +23 -0
  176. package/dist/src/_shims/index.mjs +18 -0
  177. package/dist/src/_shims/manual-types.d.ts +18 -0
  178. package/dist/src/_shims/manual-types.js +9 -0
  179. package/dist/src/_shims/manual-types.mjs +10 -0
  180. package/dist/src/_shims/node-runtime.ts +87 -0
  181. package/dist/src/_shims/node-types.d.ts +48 -0
  182. package/dist/src/_shims/node-types.js +9 -0
  183. package/dist/src/_shims/node-types.mjs +10 -0
  184. package/dist/src/_shims/registry.ts +73 -0
  185. package/dist/src/_shims/web-runtime.ts +109 -0
  186. package/dist/src/_shims/web-types.d.ts +89 -0
  187. package/dist/src/_shims/web-types.js +9 -0
  188. package/dist/src/_shims/web-types.mjs +10 -0
  189. package/dist/src/core.ts +1265 -0
  190. package/dist/src/error.ts +137 -0
  191. package/dist/src/index.ts +586 -0
  192. package/dist/src/internal/decoders/line.ts +182 -0
  193. package/dist/src/internal/qs/LICENSE.md +13 -0
  194. package/dist/src/internal/qs/README.md +3 -0
  195. package/dist/src/internal/qs/formats.ts +15 -0
  196. package/dist/src/internal/qs/index.ts +19 -0
  197. package/dist/src/internal/qs/stringify.ts +394 -0
  198. package/dist/src/internal/qs/types.ts +77 -0
  199. package/dist/src/internal/qs/utils.ts +271 -0
  200. package/dist/src/internal/stream-utils.ts +38 -0
  201. package/dist/src/lib/.keep +4 -0
  202. package/dist/src/lib/response-helpers.ts +60 -0
  203. package/dist/src/pagination.ts +134 -0
  204. package/dist/src/resource.ts +18 -0
  205. package/dist/src/resources/alpha/admin.ts +84 -0
  206. package/dist/src/resources/alpha/alpha.ts +93 -0
  207. package/dist/src/resources/alpha/benchmarks.ts +152 -0
  208. package/dist/src/resources/alpha/eval/eval.ts +255 -0
  209. package/dist/src/resources/alpha/eval/index.ts +19 -0
  210. package/dist/src/resources/alpha/eval/jobs.ts +41 -0
  211. package/dist/src/resources/alpha/eval.ts +10 -0
  212. package/dist/src/resources/alpha/index.ts +36 -0
  213. package/dist/src/resources/alpha/inference.ts +183 -0
  214. package/dist/src/resources/alpha/post-training/index.ts +17 -0
  215. package/dist/src/resources/alpha/post-training/job.ts +161 -0
  216. package/dist/src/resources/alpha/post-training/post-training.ts +385 -0
  217. package/dist/src/resources/alpha/post-training.ts +9 -0
  218. package/dist/src/resources/alpha.ts +9 -0
  219. package/dist/src/resources/batches.ts +572 -0
  220. package/dist/src/resources/beta/beta.ts +41 -0
  221. package/dist/src/resources/beta/datasets.ts +445 -0
  222. package/dist/src/resources/beta/index.ts +20 -0
  223. package/dist/src/resources/beta.ts +9 -0
  224. package/dist/src/resources/chat/chat.ts +348 -0
  225. package/dist/src/resources/chat/completions.ts +2934 -0
  226. package/dist/src/resources/chat/index.ts +19 -0
  227. package/dist/src/resources/chat.ts +9 -0
  228. package/dist/src/resources/completions.ts +344 -0
  229. package/dist/src/resources/conversations/conversations.ts +507 -0
  230. package/dist/src/resources/conversations/index.ts +25 -0
  231. package/dist/src/resources/conversations/items.ts +1590 -0
  232. package/dist/src/resources/conversations.ts +9 -0
  233. package/dist/src/resources/embeddings.ts +122 -0
  234. package/dist/src/resources/files.ts +211 -0
  235. package/dist/src/resources/index.ts +139 -0
  236. package/dist/src/resources/inspect.ts +27 -0
  237. package/dist/src/resources/models/index.ts +18 -0
  238. package/dist/src/resources/models/models.ts +194 -0
  239. package/dist/src/resources/models/openai.ts +22 -0
  240. package/dist/src/resources/models.ts +9 -0
  241. package/dist/src/resources/moderations.ts +94 -0
  242. package/dist/src/resources/prompts/index.ts +19 -0
  243. package/dist/src/resources/prompts/prompts.ts +185 -0
  244. package/dist/src/resources/prompts/versions.ts +24 -0
  245. package/dist/src/resources/prompts.ts +9 -0
  246. package/dist/src/resources/providers.ts +38 -0
  247. package/dist/src/resources/responses/index.ts +21 -0
  248. package/dist/src/resources/responses/input-items.ts +631 -0
  249. package/dist/src/resources/responses/responses.ts +4569 -0
  250. package/dist/src/resources/responses.ts +9 -0
  251. package/dist/src/resources/routes.ts +52 -0
  252. package/dist/src/resources/safety.ts +364 -0
  253. package/dist/src/resources/scoring-functions.ts +365 -0
  254. package/dist/src/resources/scoring.ts +221 -0
  255. package/dist/src/resources/shared.ts +559 -0
  256. package/dist/src/resources/shields.ts +119 -0
  257. package/dist/src/resources/tool-runtime.ts +217 -0
  258. package/dist/src/resources/toolgroups.ts +135 -0
  259. package/dist/src/resources/tools.ts +52 -0
  260. package/dist/src/resources/vector-io.ts +485 -0
  261. package/dist/src/resources/vector-stores/file-batches.ts +207 -0
  262. package/dist/src/resources/vector-stores/files.ts +378 -0
  263. package/dist/src/resources/vector-stores/index.ts +38 -0
  264. package/dist/src/resources/vector-stores/vector-stores.ts +476 -0
  265. package/dist/src/resources/vector-stores.ts +9 -0
  266. package/dist/src/resources.ts +7 -0
  267. package/dist/src/shims/node.ts +56 -0
  268. package/dist/src/shims/web.ts +56 -0
  269. package/dist/src/streaming.ts +297 -0
  270. package/dist/src/uploads.ts +261 -0
  271. package/dist/src/version.ts +7 -0
  272. package/dist/version.d.ts +2 -0
  273. package/dist/version.js +10 -0
  274. package/dist/version.mjs +7 -0
  275. package/examples/.keep +4 -0
  276. package/jest.config.ts +29 -0
  277. package/package.json +55 -35
  278. package/release-please-config.json +64 -0
  279. package/scripts/bootstrap +30 -0
  280. package/scripts/build +56 -0
  281. package/scripts/fast-format +40 -0
  282. package/scripts/format +8 -0
  283. package/scripts/lint +11 -0
  284. package/scripts/mock +41 -0
  285. package/scripts/test +56 -0
  286. package/scripts/utils/check-is-in-git-install.sh +15 -0
  287. package/scripts/utils/check-version.cjs +27 -0
  288. package/scripts/utils/fix-index-exports.cjs +21 -0
  289. package/scripts/utils/git-swap.sh +19 -0
  290. package/scripts/utils/make-dist-package-json.cjs +28 -0
  291. package/scripts/utils/postprocess-files.cjs +172 -0
  292. package/scripts/utils/upload-artifact.sh +33 -0
  293. package/src/_shims/auto/runtime-deno.ts +10 -0
  294. package/src/_shims/auto/types-deno.ts +10 -0
  295. package/src/_shims/auto/types.d.ts +18 -18
  296. package/src/_shims/index-deno.ts +118 -0
  297. package/src/_shims/index.d.ts +1 -1
  298. package/src/_shims/index.mjs +1 -1
  299. package/src/core.ts +6 -0
  300. package/src/resources/alpha/alpha.ts +8 -8
  301. package/src/resources/alpha/eval/eval.ts +28 -7
  302. package/src/resources/alpha/inference.ts +58 -7
  303. package/src/resources/alpha/post-training/index.ts +1 -9
  304. package/src/resources/alpha/post-training/job.ts +5 -21
  305. package/src/resources/alpha/post-training/post-training.ts +33 -20
  306. package/src/resources/beta/datasets.ts +14 -0
  307. package/src/resources/chat/chat.ts +118 -16
  308. package/src/resources/chat/completions.ts +1126 -67
  309. package/src/resources/completions.ts +133 -24
  310. package/src/resources/conversations/conversations.ts +30 -14
  311. package/src/resources/conversations/items.ts +361 -136
  312. package/src/resources/embeddings.ts +46 -8
  313. package/src/resources/files.ts +58 -31
  314. package/src/resources/models/models.ts +21 -6
  315. package/src/resources/moderations.ts +38 -5
  316. package/src/resources/prompts/prompts.ts +26 -12
  317. package/src/resources/prompts/versions.ts +0 -2
  318. package/src/resources/responses/input-items.ts +64 -13
  319. package/src/resources/responses/responses.ts +523 -252
  320. package/src/resources/safety.ts +131 -8
  321. package/src/resources/scoring-functions.ts +23 -1
  322. package/src/resources/scoring.ts +24 -0
  323. package/src/resources/shared.ts +53 -7
  324. package/src/resources/shields.ts +21 -0
  325. package/src/resources/vector-io.ts +95 -78
  326. package/src/resources/vector-stores/file-batches.ts +13 -7
  327. package/src/resources/vector-stores/files.ts +31 -11
  328. package/src/resources/vector-stores/vector-stores.ts +89 -15
  329. package/src/version.ts +1 -1
  330. package/tests/api-resources/alpha/admin.test.ts +111 -0
  331. package/tests/api-resources/alpha/benchmarks.test.ts +94 -0
  332. package/tests/api-resources/alpha/eval/eval.test.ts +206 -0
  333. package/tests/api-resources/alpha/eval/jobs.test.ts +68 -0
  334. package/tests/api-resources/alpha/inference.test.ts +38 -0
  335. package/tests/api-resources/alpha/post-training/job.test.ts +86 -0
  336. package/tests/api-resources/alpha/post-training/post-training.test.ts +134 -0
  337. package/tests/api-resources/batches.test.ts +100 -0
  338. package/tests/api-resources/beta/datasets.test.ts +141 -0
  339. package/tests/api-resources/chat/completions.test.ts +115 -0
  340. package/tests/api-resources/completions.test.ts +48 -0
  341. package/tests/api-resources/conversations/conversations.test.ts +76 -0
  342. package/tests/api-resources/conversations/items.test.ts +117 -0
  343. package/tests/api-resources/embeddings.test.ts +35 -0
  344. package/tests/api-resources/files.test.ts +123 -0
  345. package/tests/api-resources/inspect.test.ts +50 -0
  346. package/tests/api-resources/models/models.test.ts +89 -0
  347. package/tests/api-resources/models/openai.test.ts +32 -0
  348. package/tests/api-resources/moderations.test.ts +29 -0
  349. package/tests/api-resources/prompts/prompts.test.ts +125 -0
  350. package/tests/api-resources/prompts/versions.test.ts +32 -0
  351. package/tests/api-resources/providers.test.ts +50 -0
  352. package/tests/api-resources/responses/input-items.test.ts +49 -0
  353. package/tests/api-resources/responses/responses.test.ts +132 -0
  354. package/tests/api-resources/routes.test.ts +39 -0
  355. package/tests/api-resources/safety.test.ts +41 -0
  356. package/tests/api-resources/scoring-functions.test.ts +100 -0
  357. package/tests/api-resources/scoring.test.ts +73 -0
  358. package/tests/api-resources/shields.test.ts +88 -0
  359. package/tests/api-resources/tool-runtime.test.ts +68 -0
  360. package/tests/api-resources/toolgroups.test.ts +91 -0
  361. package/tests/api-resources/tools.test.ts +57 -0
  362. package/tests/api-resources/vector-io.test.ts +84 -0
  363. package/tests/api-resources/vector-stores/file-batches.test.ts +113 -0
  364. package/tests/api-resources/vector-stores/files.test.ts +153 -0
  365. package/tests/api-resources/vector-stores/vector-stores.test.ts +134 -0
  366. package/tests/form.test.ts +71 -0
  367. package/tests/index.test.ts +438 -0
  368. package/tests/internal/decoders/line.test.ts +134 -0
  369. package/tests/qs/empty-keys-cases.ts +277 -0
  370. package/tests/qs/stringify.test.ts +2238 -0
  371. package/tests/qs/utils.test.ts +175 -0
  372. package/tests/responses.test.ts +91 -0
  373. package/tests/streaming.test.ts +250 -0
  374. package/tests/stringifyQuery.test.ts +29 -0
  375. package/tests/uploads.test.ts +71 -0
  376. package/tsc-multi.json +7 -0
  377. package/tsconfig.build.json +18 -0
  378. package/tsconfig.deno.json +15 -0
  379. package/tsconfig.dist-src.json +11 -0
  380. package/tsconfig.json +38 -0
  381. package/core.d.ts.map +0 -1
  382. package/core.js +0 -940
  383. package/core.js.map +0 -1
  384. package/core.mjs +0 -908
  385. package/core.mjs.map +0 -1
  386. package/resources/alpha/alpha.d.ts +0 -26
  387. package/resources/alpha/alpha.d.ts.map +0 -1
  388. package/resources/alpha/alpha.js +0 -61
  389. package/resources/alpha/alpha.js.map +0 -1
  390. package/resources/alpha/alpha.mjs +0 -34
  391. package/resources/alpha/alpha.mjs.map +0 -1
  392. package/resources/alpha/eval/eval.d.ts +0 -160
  393. package/resources/alpha/eval/eval.d.ts.map +0 -1
  394. package/resources/alpha/eval/eval.js.map +0 -1
  395. package/resources/alpha/eval/eval.mjs.map +0 -1
  396. package/resources/alpha/inference.d.ts +0 -85
  397. package/resources/alpha/inference.d.ts.map +0 -1
  398. package/resources/alpha/post-training/index.d.ts +0 -3
  399. package/resources/alpha/post-training/index.d.ts.map +0 -1
  400. package/resources/alpha/post-training/index.js.map +0 -1
  401. package/resources/alpha/post-training/index.mjs +0 -10
  402. package/resources/alpha/post-training/index.mjs.map +0 -1
  403. package/resources/alpha/post-training/job.d.ts +0 -113
  404. package/resources/alpha/post-training/job.d.ts.map +0 -1
  405. package/resources/alpha/post-training/job.js +0 -43
  406. package/resources/alpha/post-training/job.js.map +0 -1
  407. package/resources/alpha/post-training/job.mjs +0 -39
  408. package/resources/alpha/post-training/job.mjs.map +0 -1
  409. package/resources/alpha/post-training/post-training.d.ts +0 -245
  410. package/resources/alpha/post-training/post-training.d.ts.map +0 -1
  411. package/resources/alpha/post-training/post-training.js.map +0 -1
  412. package/resources/alpha/post-training/post-training.mjs +0 -30
  413. package/resources/alpha/post-training/post-training.mjs.map +0 -1
  414. package/resources/beta/datasets.d.ts +0 -338
  415. package/resources/beta/datasets.d.ts.map +0 -1
  416. package/resources/chat/chat.d.ts +0 -172
  417. package/resources/chat/chat.d.ts.map +0 -1
  418. package/resources/chat/chat.js.map +0 -1
  419. package/resources/chat/chat.mjs.map +0 -1
  420. package/resources/chat/completions.d.ts +0 -1356
  421. package/resources/chat/completions.d.ts.map +0 -1
  422. package/resources/chat/completions.js +0 -33
  423. package/resources/chat/completions.js.map +0 -1
  424. package/resources/chat/completions.mjs +0 -29
  425. package/resources/chat/completions.mjs.map +0 -1
  426. package/resources/completions.d.ts +0 -158
  427. package/resources/completions.d.ts.map +0 -1
  428. package/resources/completions.js.map +0 -1
  429. package/resources/completions.mjs.map +0 -1
  430. package/resources/conversations/conversations.d.ts +0 -320
  431. package/resources/conversations/conversations.d.ts.map +0 -1
  432. package/resources/conversations/conversations.js +0 -78
  433. package/resources/conversations/conversations.js.map +0 -1
  434. package/resources/conversations/conversations.mjs +0 -51
  435. package/resources/conversations/conversations.mjs.map +0 -1
  436. package/resources/conversations/items.d.ts +0 -874
  437. package/resources/conversations/items.d.ts.map +0 -1
  438. package/resources/conversations/items.js +0 -51
  439. package/resources/conversations/items.js.map +0 -1
  440. package/resources/conversations/items.mjs +0 -46
  441. package/resources/conversations/items.mjs.map +0 -1
  442. package/resources/embeddings.d.ts +0 -52
  443. package/resources/embeddings.d.ts.map +0 -1
  444. package/resources/embeddings.js +0 -24
  445. package/resources/embeddings.js.map +0 -1
  446. package/resources/embeddings.mjs +0 -20
  447. package/resources/embeddings.mjs.map +0 -1
  448. package/resources/files.d.ts +0 -120
  449. package/resources/files.d.ts.map +0 -1
  450. package/resources/files.js +0 -87
  451. package/resources/files.js.map +0 -1
  452. package/resources/files.mjs +0 -59
  453. package/resources/files.mjs.map +0 -1
  454. package/resources/models/models.d.ts +0 -127
  455. package/resources/models/models.d.ts.map +0 -1
  456. package/resources/models/models.js +0 -82
  457. package/resources/models/models.js.map +0 -1
  458. package/resources/models/models.mjs +0 -55
  459. package/resources/models/models.mjs.map +0 -1
  460. package/resources/moderations.d.ts +0 -47
  461. package/resources/moderations.d.ts.map +0 -1
  462. package/resources/moderations.js +0 -23
  463. package/resources/moderations.js.map +0 -1
  464. package/resources/moderations.mjs +0 -19
  465. package/resources/moderations.mjs.map +0 -1
  466. package/resources/prompts/prompts.d.ts +0 -96
  467. package/resources/prompts/prompts.d.ts.map +0 -1
  468. package/resources/prompts/prompts.js +0 -93
  469. package/resources/prompts/prompts.js.map +0 -1
  470. package/resources/prompts/prompts.mjs +0 -66
  471. package/resources/prompts/prompts.mjs.map +0 -1
  472. package/resources/prompts/versions.d.ts +0 -12
  473. package/resources/prompts/versions.d.ts.map +0 -1
  474. package/resources/prompts/versions.js +0 -23
  475. package/resources/prompts/versions.js.map +0 -1
  476. package/resources/prompts/versions.mjs +0 -19
  477. package/resources/prompts/versions.mjs.map +0 -1
  478. package/resources/responses/input-items.d.ts +0 -367
  479. package/resources/responses/input-items.d.ts.map +0 -1
  480. package/resources/responses/responses.d.ts +0 -2871
  481. package/resources/responses/responses.d.ts.map +0 -1
  482. package/resources/responses/responses.js.map +0 -1
  483. package/resources/responses/responses.mjs.map +0 -1
  484. package/resources/safety.d.ts +0 -172
  485. package/resources/safety.d.ts.map +0 -1
  486. package/resources/safety.js +0 -23
  487. package/resources/safety.js.map +0 -1
  488. package/resources/safety.mjs +0 -19
  489. package/resources/safety.mjs.map +0 -1
  490. package/resources/scoring-functions.d.ts +0 -210
  491. package/resources/scoring-functions.d.ts.map +0 -1
  492. package/resources/scoring.d.ts +0 -133
  493. package/resources/scoring.d.ts.map +0 -1
  494. package/resources/shared.d.ts +0 -418
  495. package/resources/shared.d.ts.map +0 -1
  496. package/resources/shields.d.ts +0 -61
  497. package/resources/shields.d.ts.map +0 -1
  498. package/resources/vector-io.d.ts +0 -358
  499. package/resources/vector-io.d.ts.map +0 -1
  500. package/resources/vector-io.js +0 -31
  501. package/resources/vector-io.mjs +0 -27
  502. package/resources/vector-stores/file-batches.d.ts +0 -111
  503. package/resources/vector-stores/file-batches.d.ts.map +0 -1
  504. package/resources/vector-stores/file-batches.js +0 -45
  505. package/resources/vector-stores/file-batches.js.map +0 -1
  506. package/resources/vector-stores/file-batches.mjs +0 -41
  507. package/resources/vector-stores/file-batches.mjs.map +0 -1
  508. package/resources/vector-stores/files.d.ts +0 -213
  509. package/resources/vector-stores/files.d.ts.map +0 -1
  510. package/resources/vector-stores/files.js +0 -60
  511. package/resources/vector-stores/files.js.map +0 -1
  512. package/resources/vector-stores/files.mjs +0 -55
  513. package/resources/vector-stores/files.mjs.map +0 -1
  514. package/resources/vector-stores/vector-stores.d.ts +0 -248
  515. package/resources/vector-stores/vector-stores.d.ts.map +0 -1
  516. package/resources/vector-stores/vector-stores.js +0 -97
  517. package/resources/vector-stores/vector-stores.js.map +0 -1
  518. package/resources/vector-stores/vector-stores.mjs +0 -69
  519. package/resources/vector-stores/vector-stores.mjs.map +0 -1
  520. package/version.d.ts +0 -2
  521. package/version.js +0 -10
  522. package/version.mjs +0 -7
  523. /package/{_shims → dist/_shims}/MultipartBody.d.ts +0 -0
  524. /package/{_shims → dist/_shims}/MultipartBody.d.ts.map +0 -0
  525. /package/{_shims → dist/_shims}/MultipartBody.js +0 -0
  526. /package/{_shims → dist/_shims}/MultipartBody.js.map +0 -0
  527. /package/{_shims → dist/_shims}/MultipartBody.mjs +0 -0
  528. /package/{_shims → dist/_shims}/MultipartBody.mjs.map +0 -0
  529. /package/{_shims → dist/_shims}/README.md +0 -0
  530. /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts +0 -0
  531. /package/{_shims → dist/_shims}/auto/runtime-bun.d.ts.map +0 -0
  532. /package/{_shims → dist/_shims}/auto/runtime-bun.js +0 -0
  533. /package/{_shims → dist/_shims}/auto/runtime-bun.js.map +0 -0
  534. /package/{_shims → dist/_shims}/auto/runtime-bun.mjs +0 -0
  535. /package/{_shims → dist/_shims}/auto/runtime-bun.mjs.map +0 -0
  536. /package/{_shims → dist/_shims}/auto/runtime-node.d.ts +0 -0
  537. /package/{_shims → dist/_shims}/auto/runtime-node.d.ts.map +0 -0
  538. /package/{_shims → dist/_shims}/auto/runtime-node.js +0 -0
  539. /package/{_shims → dist/_shims}/auto/runtime-node.js.map +0 -0
  540. /package/{_shims → dist/_shims}/auto/runtime-node.mjs +0 -0
  541. /package/{_shims → dist/_shims}/auto/runtime-node.mjs.map +0 -0
  542. /package/{_shims → dist/_shims}/auto/runtime.d.ts +0 -0
  543. /package/{_shims → dist/_shims}/auto/runtime.d.ts.map +0 -0
  544. /package/{_shims → dist/_shims}/auto/runtime.js +0 -0
  545. /package/{_shims → dist/_shims}/auto/runtime.js.map +0 -0
  546. /package/{_shims → dist/_shims}/auto/runtime.mjs +0 -0
  547. /package/{_shims → dist/_shims}/auto/runtime.mjs.map +0 -0
  548. /package/{_shims → dist/_shims}/auto/types-node.d.ts +0 -0
  549. /package/{_shims → dist/_shims}/auto/types-node.d.ts.map +0 -0
  550. /package/{_shims → dist/_shims}/auto/types-node.js +0 -0
  551. /package/{_shims → dist/_shims}/auto/types-node.js.map +0 -0
  552. /package/{_shims → dist/_shims}/auto/types-node.mjs +0 -0
  553. /package/{_shims → dist/_shims}/auto/types-node.mjs.map +0 -0
  554. /package/{_shims → dist/_shims}/auto/types.d.ts +0 -0
  555. /package/{_shims → dist/_shims}/auto/types.js +0 -0
  556. /package/{_shims → dist/_shims}/auto/types.mjs +0 -0
  557. /package/{_shims → dist/_shims}/bun-runtime.d.ts +0 -0
  558. /package/{_shims → dist/_shims}/bun-runtime.d.ts.map +0 -0
  559. /package/{_shims → dist/_shims}/bun-runtime.js +0 -0
  560. /package/{_shims → dist/_shims}/bun-runtime.js.map +0 -0
  561. /package/{_shims → dist/_shims}/bun-runtime.mjs +0 -0
  562. /package/{_shims → dist/_shims}/bun-runtime.mjs.map +0 -0
  563. /package/{_shims → dist/_shims}/index.d.ts +0 -0
  564. /package/{_shims → dist/_shims}/index.js +0 -0
  565. /package/{_shims → dist/_shims}/index.mjs +0 -0
  566. /package/{_shims → dist/_shims}/manual-types.d.ts +0 -0
  567. /package/{_shims → dist/_shims}/manual-types.js +0 -0
  568. /package/{_shims → dist/_shims}/manual-types.mjs +0 -0
  569. /package/{_shims → dist/_shims}/node-runtime.d.ts +0 -0
  570. /package/{_shims → dist/_shims}/node-runtime.d.ts.map +0 -0
  571. /package/{_shims → dist/_shims}/node-runtime.js +0 -0
  572. /package/{_shims → dist/_shims}/node-runtime.js.map +0 -0
  573. /package/{_shims → dist/_shims}/node-runtime.mjs +0 -0
  574. /package/{_shims → dist/_shims}/node-runtime.mjs.map +0 -0
  575. /package/{_shims → dist/_shims}/node-types.d.ts +0 -0
  576. /package/{_shims → dist/_shims}/node-types.js +0 -0
  577. /package/{_shims → dist/_shims}/node-types.mjs +0 -0
  578. /package/{_shims → dist/_shims}/registry.d.ts +0 -0
  579. /package/{_shims → dist/_shims}/registry.d.ts.map +0 -0
  580. /package/{_shims → dist/_shims}/registry.js +0 -0
  581. /package/{_shims → dist/_shims}/registry.js.map +0 -0
  582. /package/{_shims → dist/_shims}/registry.mjs +0 -0
  583. /package/{_shims → dist/_shims}/registry.mjs.map +0 -0
  584. /package/{_shims → dist/_shims}/web-runtime.d.ts +0 -0
  585. /package/{_shims → dist/_shims}/web-runtime.d.ts.map +0 -0
  586. /package/{_shims → dist/_shims}/web-runtime.js +0 -0
  587. /package/{_shims → dist/_shims}/web-runtime.js.map +0 -0
  588. /package/{_shims → dist/_shims}/web-runtime.mjs +0 -0
  589. /package/{_shims → dist/_shims}/web-runtime.mjs.map +0 -0
  590. /package/{_shims → dist/_shims}/web-types.d.ts +0 -0
  591. /package/{_shims → dist/_shims}/web-types.js +0 -0
  592. /package/{_shims → dist/_shims}/web-types.mjs +0 -0
  593. /package/{core.d.ts → dist/core.d.ts} +0 -0
  594. /package/{error.d.ts → dist/error.d.ts} +0 -0
  595. /package/{error.d.ts.map → dist/error.d.ts.map} +0 -0
  596. /package/{error.js → dist/error.js} +0 -0
  597. /package/{error.js.map → dist/error.js.map} +0 -0
  598. /package/{error.mjs → dist/error.mjs} +0 -0
  599. /package/{error.mjs.map → dist/error.mjs.map} +0 -0
  600. /package/{index.d.mts → dist/index.d.mts} +0 -0
  601. /package/{index.d.ts → dist/index.d.ts} +0 -0
  602. /package/{index.d.ts.map → dist/index.d.ts.map} +0 -0
  603. /package/{index.js → dist/index.js} +0 -0
  604. /package/{index.js.map → dist/index.js.map} +0 -0
  605. /package/{index.mjs → dist/index.mjs} +0 -0
  606. /package/{index.mjs.map → dist/index.mjs.map} +0 -0
  607. /package/{internal → dist/internal}/decoders/line.d.ts +0 -0
  608. /package/{internal → dist/internal}/decoders/line.d.ts.map +0 -0
  609. /package/{internal → dist/internal}/decoders/line.js +0 -0
  610. /package/{internal → dist/internal}/decoders/line.js.map +0 -0
  611. /package/{internal → dist/internal}/decoders/line.mjs +0 -0
  612. /package/{internal → dist/internal}/decoders/line.mjs.map +0 -0
  613. /package/{internal → dist/internal}/qs/formats.d.ts +0 -0
  614. /package/{internal → dist/internal}/qs/formats.d.ts.map +0 -0
  615. /package/{internal → dist/internal}/qs/formats.js +0 -0
  616. /package/{internal → dist/internal}/qs/formats.js.map +0 -0
  617. /package/{internal → dist/internal}/qs/formats.mjs +0 -0
  618. /package/{internal → dist/internal}/qs/formats.mjs.map +0 -0
  619. /package/{internal → dist/internal}/qs/index.d.ts +0 -0
  620. /package/{internal → dist/internal}/qs/index.d.ts.map +0 -0
  621. /package/{internal → dist/internal}/qs/index.js +0 -0
  622. /package/{internal → dist/internal}/qs/index.js.map +0 -0
  623. /package/{internal → dist/internal}/qs/index.mjs +0 -0
  624. /package/{internal → dist/internal}/qs/index.mjs.map +0 -0
  625. /package/{internal → dist/internal}/qs/stringify.d.ts +0 -0
  626. /package/{internal → dist/internal}/qs/stringify.d.ts.map +0 -0
  627. /package/{internal → dist/internal}/qs/stringify.js +0 -0
  628. /package/{internal → dist/internal}/qs/stringify.js.map +0 -0
  629. /package/{internal → dist/internal}/qs/stringify.mjs +0 -0
  630. /package/{internal → dist/internal}/qs/stringify.mjs.map +0 -0
  631. /package/{internal → dist/internal}/qs/types.d.ts +0 -0
  632. /package/{internal → dist/internal}/qs/types.d.ts.map +0 -0
  633. /package/{internal → dist/internal}/qs/types.js +0 -0
  634. /package/{internal → dist/internal}/qs/types.js.map +0 -0
  635. /package/{internal → dist/internal}/qs/types.mjs +0 -0
  636. /package/{internal → dist/internal}/qs/types.mjs.map +0 -0
  637. /package/{internal → dist/internal}/qs/utils.d.ts +0 -0
  638. /package/{internal → dist/internal}/qs/utils.d.ts.map +0 -0
  639. /package/{internal → dist/internal}/qs/utils.js +0 -0
  640. /package/{internal → dist/internal}/qs/utils.js.map +0 -0
  641. /package/{internal → dist/internal}/qs/utils.mjs +0 -0
  642. /package/{internal → dist/internal}/qs/utils.mjs.map +0 -0
  643. /package/{internal → dist/internal}/stream-utils.d.ts +0 -0
  644. /package/{internal → dist/internal}/stream-utils.d.ts.map +0 -0
  645. /package/{internal → dist/internal}/stream-utils.js +0 -0
  646. /package/{internal → dist/internal}/stream-utils.js.map +0 -0
  647. /package/{internal → dist/internal}/stream-utils.mjs +0 -0
  648. /package/{internal → dist/internal}/stream-utils.mjs.map +0 -0
  649. /package/{lib → dist/lib}/response-helpers.d.ts +0 -0
  650. /package/{lib → dist/lib}/response-helpers.d.ts.map +0 -0
  651. /package/{lib → dist/lib}/response-helpers.js +0 -0
  652. /package/{lib → dist/lib}/response-helpers.js.map +0 -0
  653. /package/{lib → dist/lib}/response-helpers.mjs +0 -0
  654. /package/{lib → dist/lib}/response-helpers.mjs.map +0 -0
  655. /package/{pagination.d.ts → dist/pagination.d.ts} +0 -0
  656. /package/{pagination.d.ts.map → dist/pagination.d.ts.map} +0 -0
  657. /package/{pagination.js → dist/pagination.js} +0 -0
  658. /package/{pagination.js.map → dist/pagination.js.map} +0 -0
  659. /package/{pagination.mjs → dist/pagination.mjs} +0 -0
  660. /package/{pagination.mjs.map → dist/pagination.mjs.map} +0 -0
  661. /package/{resource.d.ts → dist/resource.d.ts} +0 -0
  662. /package/{resource.d.ts.map → dist/resource.d.ts.map} +0 -0
  663. /package/{resource.js → dist/resource.js} +0 -0
  664. /package/{resource.js.map → dist/resource.js.map} +0 -0
  665. /package/{resource.mjs → dist/resource.mjs} +0 -0
  666. /package/{resource.mjs.map → dist/resource.mjs.map} +0 -0
  667. /package/{resources → dist/resources}/alpha/admin.d.ts +0 -0
  668. /package/{resources → dist/resources}/alpha/admin.d.ts.map +0 -0
  669. /package/{resources → dist/resources}/alpha/admin.js +0 -0
  670. /package/{resources → dist/resources}/alpha/admin.js.map +0 -0
  671. /package/{resources → dist/resources}/alpha/admin.mjs +0 -0
  672. /package/{resources → dist/resources}/alpha/admin.mjs.map +0 -0
  673. /package/{resources → dist/resources}/alpha/benchmarks.d.ts +0 -0
  674. /package/{resources → dist/resources}/alpha/benchmarks.d.ts.map +0 -0
  675. /package/{resources → dist/resources}/alpha/benchmarks.js +0 -0
  676. /package/{resources → dist/resources}/alpha/benchmarks.js.map +0 -0
  677. /package/{resources → dist/resources}/alpha/benchmarks.mjs +0 -0
  678. /package/{resources → dist/resources}/alpha/benchmarks.mjs.map +0 -0
  679. /package/{resources → dist/resources}/alpha/eval/eval.js +0 -0
  680. /package/{resources → dist/resources}/alpha/eval/eval.mjs +0 -0
  681. /package/{resources → dist/resources}/alpha/eval/index.d.ts +0 -0
  682. /package/{resources → dist/resources}/alpha/eval/index.d.ts.map +0 -0
  683. /package/{resources → dist/resources}/alpha/eval/index.js +0 -0
  684. /package/{resources → dist/resources}/alpha/eval/index.js.map +0 -0
  685. /package/{resources → dist/resources}/alpha/eval/index.mjs +0 -0
  686. /package/{resources → dist/resources}/alpha/eval/index.mjs.map +0 -0
  687. /package/{resources → dist/resources}/alpha/eval/jobs.d.ts +0 -0
  688. /package/{resources → dist/resources}/alpha/eval/jobs.d.ts.map +0 -0
  689. /package/{resources → dist/resources}/alpha/eval/jobs.js +0 -0
  690. /package/{resources → dist/resources}/alpha/eval/jobs.js.map +0 -0
  691. /package/{resources → dist/resources}/alpha/eval/jobs.mjs +0 -0
  692. /package/{resources → dist/resources}/alpha/eval/jobs.mjs.map +0 -0
  693. /package/{resources → dist/resources}/alpha/eval.d.ts +0 -0
  694. /package/{resources → dist/resources}/alpha/eval.d.ts.map +0 -0
  695. /package/{resources → dist/resources}/alpha/eval.js +0 -0
  696. /package/{resources → dist/resources}/alpha/eval.js.map +0 -0
  697. /package/{resources → dist/resources}/alpha/eval.mjs +0 -0
  698. /package/{resources → dist/resources}/alpha/eval.mjs.map +0 -0
  699. /package/{resources → dist/resources}/alpha/index.d.ts +0 -0
  700. /package/{resources → dist/resources}/alpha/index.d.ts.map +0 -0
  701. /package/{resources → dist/resources}/alpha/index.js +0 -0
  702. /package/{resources → dist/resources}/alpha/index.js.map +0 -0
  703. /package/{resources → dist/resources}/alpha/index.mjs +0 -0
  704. /package/{resources → dist/resources}/alpha/index.mjs.map +0 -0
  705. /package/{resources → dist/resources}/alpha/inference.js +0 -0
  706. /package/{resources → dist/resources}/alpha/inference.js.map +0 -0
  707. /package/{resources → dist/resources}/alpha/inference.mjs +0 -0
  708. /package/{resources → dist/resources}/alpha/inference.mjs.map +0 -0
  709. /package/{resources → dist/resources}/alpha/post-training/index.js +0 -0
  710. /package/{resources → dist/resources}/alpha/post-training/post-training.js +0 -0
  711. /package/{resources → dist/resources}/alpha/post-training.d.ts +0 -0
  712. /package/{resources → dist/resources}/alpha/post-training.d.ts.map +0 -0
  713. /package/{resources → dist/resources}/alpha/post-training.js +0 -0
  714. /package/{resources → dist/resources}/alpha/post-training.js.map +0 -0
  715. /package/{resources → dist/resources}/alpha/post-training.mjs +0 -0
  716. /package/{resources → dist/resources}/alpha/post-training.mjs.map +0 -0
  717. /package/{resources → dist/resources}/alpha.d.ts +0 -0
  718. /package/{resources → dist/resources}/alpha.d.ts.map +0 -0
  719. /package/{resources → dist/resources}/alpha.js +0 -0
  720. /package/{resources → dist/resources}/alpha.js.map +0 -0
  721. /package/{resources → dist/resources}/alpha.mjs +0 -0
  722. /package/{resources → dist/resources}/alpha.mjs.map +0 -0
  723. /package/{resources → dist/resources}/batches.d.ts +0 -0
  724. /package/{resources → dist/resources}/batches.d.ts.map +0 -0
  725. /package/{resources → dist/resources}/batches.js +0 -0
  726. /package/{resources → dist/resources}/batches.js.map +0 -0
  727. /package/{resources → dist/resources}/batches.mjs +0 -0
  728. /package/{resources → dist/resources}/batches.mjs.map +0 -0
  729. /package/{resources → dist/resources}/beta/beta.d.ts +0 -0
  730. /package/{resources → dist/resources}/beta/beta.d.ts.map +0 -0
  731. /package/{resources → dist/resources}/beta/beta.js +0 -0
  732. /package/{resources → dist/resources}/beta/beta.js.map +0 -0
  733. /package/{resources → dist/resources}/beta/beta.mjs +0 -0
  734. /package/{resources → dist/resources}/beta/beta.mjs.map +0 -0
  735. /package/{resources → dist/resources}/beta/datasets.js +0 -0
  736. /package/{resources → dist/resources}/beta/datasets.js.map +0 -0
  737. /package/{resources → dist/resources}/beta/datasets.mjs +0 -0
  738. /package/{resources → dist/resources}/beta/datasets.mjs.map +0 -0
  739. /package/{resources → dist/resources}/beta/index.d.ts +0 -0
  740. /package/{resources → dist/resources}/beta/index.d.ts.map +0 -0
  741. /package/{resources → dist/resources}/beta/index.js +0 -0
  742. /package/{resources → dist/resources}/beta/index.js.map +0 -0
  743. /package/{resources → dist/resources}/beta/index.mjs +0 -0
  744. /package/{resources → dist/resources}/beta/index.mjs.map +0 -0
  745. /package/{resources → dist/resources}/beta.d.ts +0 -0
  746. /package/{resources → dist/resources}/beta.d.ts.map +0 -0
  747. /package/{resources → dist/resources}/beta.js +0 -0
  748. /package/{resources → dist/resources}/beta.js.map +0 -0
  749. /package/{resources → dist/resources}/beta.mjs +0 -0
  750. /package/{resources → dist/resources}/beta.mjs.map +0 -0
  751. /package/{resources → dist/resources}/chat/chat.js +0 -0
  752. /package/{resources → dist/resources}/chat/chat.mjs +0 -0
  753. /package/{resources → dist/resources}/chat/index.d.ts +0 -0
  754. /package/{resources → dist/resources}/chat/index.d.ts.map +0 -0
  755. /package/{resources → dist/resources}/chat/index.js +0 -0
  756. /package/{resources → dist/resources}/chat/index.js.map +0 -0
  757. /package/{resources → dist/resources}/chat/index.mjs +0 -0
  758. /package/{resources → dist/resources}/chat/index.mjs.map +0 -0
  759. /package/{resources → dist/resources}/chat.d.ts +0 -0
  760. /package/{resources → dist/resources}/chat.d.ts.map +0 -0
  761. /package/{resources → dist/resources}/chat.js +0 -0
  762. /package/{resources → dist/resources}/chat.js.map +0 -0
  763. /package/{resources → dist/resources}/chat.mjs +0 -0
  764. /package/{resources → dist/resources}/chat.mjs.map +0 -0
  765. /package/{resources → dist/resources}/completions.js +0 -0
  766. /package/{resources → dist/resources}/completions.mjs +0 -0
  767. /package/{resources → dist/resources}/conversations/index.d.ts +0 -0
  768. /package/{resources → dist/resources}/conversations/index.d.ts.map +0 -0
  769. /package/{resources → dist/resources}/conversations/index.js +0 -0
  770. /package/{resources → dist/resources}/conversations/index.js.map +0 -0
  771. /package/{resources → dist/resources}/conversations/index.mjs +0 -0
  772. /package/{resources → dist/resources}/conversations/index.mjs.map +0 -0
  773. /package/{resources → dist/resources}/conversations.d.ts +0 -0
  774. /package/{resources → dist/resources}/conversations.d.ts.map +0 -0
  775. /package/{resources → dist/resources}/conversations.js +0 -0
  776. /package/{resources → dist/resources}/conversations.js.map +0 -0
  777. /package/{resources → dist/resources}/conversations.mjs +0 -0
  778. /package/{resources → dist/resources}/conversations.mjs.map +0 -0
  779. /package/{resources → dist/resources}/index.d.ts +0 -0
  780. /package/{resources → dist/resources}/index.d.ts.map +0 -0
  781. /package/{resources → dist/resources}/index.js +0 -0
  782. /package/{resources → dist/resources}/index.js.map +0 -0
  783. /package/{resources → dist/resources}/index.mjs +0 -0
  784. /package/{resources → dist/resources}/index.mjs.map +0 -0
  785. /package/{resources → dist/resources}/inspect.d.ts +0 -0
  786. /package/{resources → dist/resources}/inspect.d.ts.map +0 -0
  787. /package/{resources → dist/resources}/inspect.js +0 -0
  788. /package/{resources → dist/resources}/inspect.js.map +0 -0
  789. /package/{resources → dist/resources}/inspect.mjs +0 -0
  790. /package/{resources → dist/resources}/inspect.mjs.map +0 -0
  791. /package/{resources → dist/resources}/models/index.d.ts +0 -0
  792. /package/{resources → dist/resources}/models/index.d.ts.map +0 -0
  793. /package/{resources → dist/resources}/models/index.js +0 -0
  794. /package/{resources → dist/resources}/models/index.js.map +0 -0
  795. /package/{resources → dist/resources}/models/index.mjs +0 -0
  796. /package/{resources → dist/resources}/models/index.mjs.map +0 -0
  797. /package/{resources → dist/resources}/models/openai.d.ts +0 -0
  798. /package/{resources → dist/resources}/models/openai.d.ts.map +0 -0
  799. /package/{resources → dist/resources}/models/openai.js +0 -0
  800. /package/{resources → dist/resources}/models/openai.js.map +0 -0
  801. /package/{resources → dist/resources}/models/openai.mjs +0 -0
  802. /package/{resources → dist/resources}/models/openai.mjs.map +0 -0
  803. /package/{resources → dist/resources}/models.d.ts +0 -0
  804. /package/{resources → dist/resources}/models.d.ts.map +0 -0
  805. /package/{resources → dist/resources}/models.js +0 -0
  806. /package/{resources → dist/resources}/models.js.map +0 -0
  807. /package/{resources → dist/resources}/models.mjs +0 -0
  808. /package/{resources → dist/resources}/models.mjs.map +0 -0
  809. /package/{resources → dist/resources}/prompts/index.d.ts +0 -0
  810. /package/{resources → dist/resources}/prompts/index.d.ts.map +0 -0
  811. /package/{resources → dist/resources}/prompts/index.js +0 -0
  812. /package/{resources → dist/resources}/prompts/index.js.map +0 -0
  813. /package/{resources → dist/resources}/prompts/index.mjs +0 -0
  814. /package/{resources → dist/resources}/prompts/index.mjs.map +0 -0
  815. /package/{resources → dist/resources}/prompts.d.ts +0 -0
  816. /package/{resources → dist/resources}/prompts.d.ts.map +0 -0
  817. /package/{resources → dist/resources}/prompts.js +0 -0
  818. /package/{resources → dist/resources}/prompts.js.map +0 -0
  819. /package/{resources → dist/resources}/prompts.mjs +0 -0
  820. /package/{resources → dist/resources}/prompts.mjs.map +0 -0
  821. /package/{resources → dist/resources}/providers.d.ts +0 -0
  822. /package/{resources → dist/resources}/providers.d.ts.map +0 -0
  823. /package/{resources → dist/resources}/providers.js +0 -0
  824. /package/{resources → dist/resources}/providers.js.map +0 -0
  825. /package/{resources → dist/resources}/providers.mjs +0 -0
  826. /package/{resources → dist/resources}/providers.mjs.map +0 -0
  827. /package/{resources → dist/resources}/responses/index.d.ts +0 -0
  828. /package/{resources → dist/resources}/responses/index.d.ts.map +0 -0
  829. /package/{resources → dist/resources}/responses/index.js +0 -0
  830. /package/{resources → dist/resources}/responses/index.js.map +0 -0
  831. /package/{resources → dist/resources}/responses/index.mjs +0 -0
  832. /package/{resources → dist/resources}/responses/index.mjs.map +0 -0
  833. /package/{resources → dist/resources}/responses/input-items.js +0 -0
  834. /package/{resources → dist/resources}/responses/input-items.js.map +0 -0
  835. /package/{resources → dist/resources}/responses/input-items.mjs +0 -0
  836. /package/{resources → dist/resources}/responses/input-items.mjs.map +0 -0
  837. /package/{resources → dist/resources}/responses/responses.js +0 -0
  838. /package/{resources → dist/resources}/responses/responses.mjs +0 -0
  839. /package/{resources → dist/resources}/responses.d.ts +0 -0
  840. /package/{resources → dist/resources}/responses.d.ts.map +0 -0
  841. /package/{resources → dist/resources}/responses.js +0 -0
  842. /package/{resources → dist/resources}/responses.js.map +0 -0
  843. /package/{resources → dist/resources}/responses.mjs +0 -0
  844. /package/{resources → dist/resources}/responses.mjs.map +0 -0
  845. /package/{resources → dist/resources}/routes.d.ts +0 -0
  846. /package/{resources → dist/resources}/routes.d.ts.map +0 -0
  847. /package/{resources → dist/resources}/routes.js +0 -0
  848. /package/{resources → dist/resources}/routes.js.map +0 -0
  849. /package/{resources → dist/resources}/routes.mjs +0 -0
  850. /package/{resources → dist/resources}/routes.mjs.map +0 -0
  851. /package/{resources → dist/resources}/scoring-functions.js +0 -0
  852. /package/{resources → dist/resources}/scoring-functions.js.map +0 -0
  853. /package/{resources → dist/resources}/scoring-functions.mjs +0 -0
  854. /package/{resources → dist/resources}/scoring-functions.mjs.map +0 -0
  855. /package/{resources → dist/resources}/scoring.js +0 -0
  856. /package/{resources → dist/resources}/scoring.js.map +0 -0
  857. /package/{resources → dist/resources}/scoring.mjs +0 -0
  858. /package/{resources → dist/resources}/scoring.mjs.map +0 -0
  859. /package/{resources → dist/resources}/shared.js +0 -0
  860. /package/{resources → dist/resources}/shared.js.map +0 -0
  861. /package/{resources → dist/resources}/shared.mjs +0 -0
  862. /package/{resources → dist/resources}/shared.mjs.map +0 -0
  863. /package/{resources → dist/resources}/shields.js +0 -0
  864. /package/{resources → dist/resources}/shields.js.map +0 -0
  865. /package/{resources → dist/resources}/shields.mjs +0 -0
  866. /package/{resources → dist/resources}/shields.mjs.map +0 -0
  867. /package/{resources → dist/resources}/tool-runtime.d.ts +0 -0
  868. /package/{resources → dist/resources}/tool-runtime.d.ts.map +0 -0
  869. /package/{resources → dist/resources}/tool-runtime.js +0 -0
  870. /package/{resources → dist/resources}/tool-runtime.js.map +0 -0
  871. /package/{resources → dist/resources}/tool-runtime.mjs +0 -0
  872. /package/{resources → dist/resources}/tool-runtime.mjs.map +0 -0
  873. /package/{resources → dist/resources}/toolgroups.d.ts +0 -0
  874. /package/{resources → dist/resources}/toolgroups.d.ts.map +0 -0
  875. /package/{resources → dist/resources}/toolgroups.js +0 -0
  876. /package/{resources → dist/resources}/toolgroups.js.map +0 -0
  877. /package/{resources → dist/resources}/toolgroups.mjs +0 -0
  878. /package/{resources → dist/resources}/toolgroups.mjs.map +0 -0
  879. /package/{resources → dist/resources}/tools.d.ts +0 -0
  880. /package/{resources → dist/resources}/tools.d.ts.map +0 -0
  881. /package/{resources → dist/resources}/tools.js +0 -0
  882. /package/{resources → dist/resources}/tools.js.map +0 -0
  883. /package/{resources → dist/resources}/tools.mjs +0 -0
  884. /package/{resources → dist/resources}/tools.mjs.map +0 -0
  885. /package/{resources → dist/resources}/vector-io.js.map +0 -0
  886. /package/{resources → dist/resources}/vector-io.mjs.map +0 -0
  887. /package/{resources → dist/resources}/vector-stores/index.d.ts +0 -0
  888. /package/{resources → dist/resources}/vector-stores/index.d.ts.map +0 -0
  889. /package/{resources → dist/resources}/vector-stores/index.js +0 -0
  890. /package/{resources → dist/resources}/vector-stores/index.js.map +0 -0
  891. /package/{resources → dist/resources}/vector-stores/index.mjs +0 -0
  892. /package/{resources → dist/resources}/vector-stores/index.mjs.map +0 -0
  893. /package/{resources → dist/resources}/vector-stores.d.ts +0 -0
  894. /package/{resources → dist/resources}/vector-stores.d.ts.map +0 -0
  895. /package/{resources → dist/resources}/vector-stores.js +0 -0
  896. /package/{resources → dist/resources}/vector-stores.js.map +0 -0
  897. /package/{resources → dist/resources}/vector-stores.mjs +0 -0
  898. /package/{resources → dist/resources}/vector-stores.mjs.map +0 -0
  899. /package/{resources.d.ts → dist/resources.d.ts} +0 -0
  900. /package/{resources.d.ts.map → dist/resources.d.ts.map} +0 -0
  901. /package/{resources.js → dist/resources.js} +0 -0
  902. /package/{resources.js.map → dist/resources.js.map} +0 -0
  903. /package/{resources.mjs → dist/resources.mjs} +0 -0
  904. /package/{resources.mjs.map → dist/resources.mjs.map} +0 -0
  905. /package/{shims → dist/shims}/node.d.ts +0 -0
  906. /package/{shims → dist/shims}/node.d.ts.map +0 -0
  907. /package/{shims → dist/shims}/node.js +0 -0
  908. /package/{shims → dist/shims}/node.js.map +0 -0
  909. /package/{shims → dist/shims}/node.mjs +0 -0
  910. /package/{shims → dist/shims}/node.mjs.map +0 -0
  911. /package/{shims → dist/shims}/web.d.ts +0 -0
  912. /package/{shims → dist/shims}/web.d.ts.map +0 -0
  913. /package/{shims → dist/shims}/web.js +0 -0
  914. /package/{shims → dist/shims}/web.js.map +0 -0
  915. /package/{shims → dist/shims}/web.mjs +0 -0
  916. /package/{shims → dist/shims}/web.mjs.map +0 -0
  917. /package/{src → dist/src}/tsconfig.json +0 -0
  918. /package/{streaming.d.ts → dist/streaming.d.ts} +0 -0
  919. /package/{streaming.d.ts.map → dist/streaming.d.ts.map} +0 -0
  920. /package/{streaming.js → dist/streaming.js} +0 -0
  921. /package/{streaming.js.map → dist/streaming.js.map} +0 -0
  922. /package/{streaming.mjs → dist/streaming.mjs} +0 -0
  923. /package/{streaming.mjs.map → dist/streaming.mjs.map} +0 -0
  924. /package/{uploads.d.ts → dist/uploads.d.ts} +0 -0
  925. /package/{uploads.d.ts.map → dist/uploads.d.ts.map} +0 -0
  926. /package/{uploads.js → dist/uploads.js} +0 -0
  927. /package/{uploads.js.map → dist/uploads.js.map} +0 -0
  928. /package/{uploads.mjs → dist/uploads.mjs} +0 -0
  929. /package/{uploads.mjs.map → dist/uploads.mjs.map} +0 -0
  930. /package/{version.d.ts.map → dist/version.d.ts.map} +0 -0
  931. /package/{version.js.map → dist/version.js.map} +0 -0
  932. /package/{version.mjs.map → dist/version.mjs.map} +0 -0
@@ -0,0 +1,1045 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import { OpenAICursorPage, type OpenAICursorPageParams } from "../../pagination.js";
4
+ export declare class Items extends APIResource {
5
+ /**
6
+ * Create items in the conversation.
7
+ */
8
+ create(conversationId: string, body: ItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<ItemCreateResponse>;
9
+ /**
10
+ * List items in the conversation.
11
+ */
12
+ list(conversationId: string, query?: ItemListParams, options?: Core.RequestOptions): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse>;
13
+ list(conversationId: string, options?: Core.RequestOptions): Core.PagePromise<ItemListResponsesOpenAICursorPage, ItemListResponse>;
14
+ /**
15
+ * Delete a conversation item.
16
+ */
17
+ delete(conversationId: string, itemId: string, options?: Core.RequestOptions): Core.APIPromise<ItemDeleteResponse>;
18
+ /**
19
+ * Retrieve a conversation item.
20
+ */
21
+ get(conversationId: string, itemId: string, options?: Core.RequestOptions): Core.APIPromise<ItemGetResponse>;
22
+ }
23
+ export declare class ItemListResponsesOpenAICursorPage extends OpenAICursorPage<ItemListResponse> {
24
+ }
25
+ /**
26
+ * List of conversation items with pagination.
27
+ */
28
+ export interface ItemCreateResponse {
29
+ /**
30
+ * List of conversation items
31
+ */
32
+ data: Array<ItemCreateResponse.OpenAIResponseMessageOutput | ItemCreateResponse.OpenAIResponseOutputMessageWebSearchToolCall | ItemCreateResponse.OpenAIResponseOutputMessageFileSearchToolCall | ItemCreateResponse.OpenAIResponseOutputMessageFunctionToolCall | ItemCreateResponse.OpenAIResponseInputFunctionToolCallOutput | ItemCreateResponse.OpenAIResponseMcpApprovalRequest | ItemCreateResponse.OpenAIResponseMcpApprovalResponse | ItemCreateResponse.OpenAIResponseOutputMessageMcpCall | ItemCreateResponse.OpenAIResponseOutputMessageMcpListTools>;
33
+ /**
34
+ * The ID of the first item in the list
35
+ */
36
+ first_id?: string | null;
37
+ /**
38
+ * Whether there are more items available
39
+ */
40
+ has_more?: boolean;
41
+ /**
42
+ * The ID of the last item in the list
43
+ */
44
+ last_id?: string | null;
45
+ /**
46
+ * Object type
47
+ */
48
+ object?: string;
49
+ }
50
+ export declare namespace ItemCreateResponse {
51
+ /**
52
+ * Corresponds to the various Message types in the Responses API. They are all
53
+ * under one type because the Responses API gives them all the same "type" value,
54
+ * and there is no way to tell them apart in certain scenarios.
55
+ */
56
+ interface OpenAIResponseMessageOutput {
57
+ content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
58
+ role: 'system' | 'developer' | 'user' | 'assistant';
59
+ id?: string | null;
60
+ status?: string | null;
61
+ type?: 'message';
62
+ }
63
+ namespace OpenAIResponseMessageOutput {
64
+ /**
65
+ * Text content for input messages in OpenAI response format.
66
+ */
67
+ interface OpenAIResponseInputMessageContentText {
68
+ text: string;
69
+ type?: 'input_text';
70
+ }
71
+ /**
72
+ * Image content for input messages in OpenAI response format.
73
+ */
74
+ interface OpenAIResponseInputMessageContentImage {
75
+ detail?: 'low' | 'high' | 'auto';
76
+ file_id?: string | null;
77
+ image_url?: string | null;
78
+ type?: 'input_image';
79
+ }
80
+ /**
81
+ * File content for input messages in OpenAI response format.
82
+ */
83
+ interface OpenAIResponseInputMessageContentFile {
84
+ file_data?: string | null;
85
+ file_id?: string | null;
86
+ file_url?: string | null;
87
+ filename?: string | null;
88
+ type?: 'input_file';
89
+ }
90
+ interface OpenAIResponseOutputMessageContentOutputTextOutput {
91
+ text: string;
92
+ annotations?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath>;
93
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
94
+ type?: 'output_text';
95
+ }
96
+ namespace OpenAIResponseOutputMessageContentOutputTextOutput {
97
+ /**
98
+ * File citation annotation for referencing specific files in response content.
99
+ */
100
+ interface OpenAIResponseAnnotationFileCitation {
101
+ file_id: string;
102
+ filename: string;
103
+ index: number;
104
+ type?: 'file_citation';
105
+ }
106
+ /**
107
+ * URL citation annotation for referencing external web resources.
108
+ */
109
+ interface OpenAIResponseAnnotationCitation {
110
+ end_index: number;
111
+ start_index: number;
112
+ title: string;
113
+ url: string;
114
+ type?: 'url_citation';
115
+ }
116
+ interface OpenAIResponseAnnotationContainerFileCitation {
117
+ container_id: string;
118
+ end_index: number;
119
+ file_id: string;
120
+ filename: string;
121
+ start_index: number;
122
+ type?: 'container_file_citation';
123
+ }
124
+ interface OpenAIResponseAnnotationFilePath {
125
+ file_id: string;
126
+ index: number;
127
+ type?: 'file_path';
128
+ }
129
+ /**
130
+ * The log probability for a token from an OpenAI-compatible chat completion
131
+ * response.
132
+ */
133
+ interface Logprob {
134
+ /**
135
+ * The token.
136
+ */
137
+ token: string;
138
+ /**
139
+ * The log probability of the token.
140
+ */
141
+ logprob: number;
142
+ /**
143
+ * The bytes for the token.
144
+ */
145
+ bytes?: Array<number> | null;
146
+ /**
147
+ * The top log probabilities for the token.
148
+ */
149
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
150
+ }
151
+ namespace Logprob {
152
+ /**
153
+ * The top log probability for a token from an OpenAI-compatible chat completion
154
+ * response.
155
+ */
156
+ interface TopLogprob {
157
+ /**
158
+ * The token.
159
+ */
160
+ token: string;
161
+ /**
162
+ * The log probability of the token.
163
+ */
164
+ logprob: number;
165
+ /**
166
+ * The bytes for the token.
167
+ */
168
+ bytes?: Array<number> | null;
169
+ }
170
+ }
171
+ }
172
+ /**
173
+ * Refusal content within a streamed response part.
174
+ */
175
+ interface OpenAIResponseContentPartRefusal {
176
+ refusal: string;
177
+ type?: 'refusal';
178
+ }
179
+ }
180
+ /**
181
+ * Web search tool call output message for OpenAI responses.
182
+ */
183
+ interface OpenAIResponseOutputMessageWebSearchToolCall {
184
+ id: string;
185
+ status: string;
186
+ type?: 'web_search_call';
187
+ }
188
+ /**
189
+ * File search tool call output message for OpenAI responses.
190
+ */
191
+ interface OpenAIResponseOutputMessageFileSearchToolCall {
192
+ id: string;
193
+ queries: Array<string>;
194
+ status: string;
195
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
196
+ type?: 'file_search_call';
197
+ }
198
+ namespace OpenAIResponseOutputMessageFileSearchToolCall {
199
+ /**
200
+ * Search results returned by the file search operation.
201
+ */
202
+ interface Result {
203
+ attributes: {
204
+ [key: string]: unknown;
205
+ };
206
+ file_id: string;
207
+ filename: string;
208
+ score: number;
209
+ text: string;
210
+ }
211
+ }
212
+ /**
213
+ * Function tool call output message for OpenAI responses.
214
+ */
215
+ interface OpenAIResponseOutputMessageFunctionToolCall {
216
+ arguments: string;
217
+ call_id: string;
218
+ name: string;
219
+ id?: string | null;
220
+ status?: string | null;
221
+ type?: 'function_call';
222
+ }
223
+ /**
224
+ * This represents the output of a function call that gets passed back to the
225
+ * model.
226
+ */
227
+ interface OpenAIResponseInputFunctionToolCallOutput {
228
+ call_id: string;
229
+ output: string;
230
+ id?: string | null;
231
+ status?: string | null;
232
+ type?: 'function_call_output';
233
+ }
234
+ /**
235
+ * A request for human approval of a tool invocation.
236
+ */
237
+ interface OpenAIResponseMcpApprovalRequest {
238
+ id: string;
239
+ arguments: string;
240
+ name: string;
241
+ server_label: string;
242
+ type?: 'mcp_approval_request';
243
+ }
244
+ /**
245
+ * A response to an MCP approval request.
246
+ */
247
+ interface OpenAIResponseMcpApprovalResponse {
248
+ approval_request_id: string;
249
+ approve: boolean;
250
+ id?: string | null;
251
+ reason?: string | null;
252
+ type?: 'mcp_approval_response';
253
+ }
254
+ /**
255
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
256
+ */
257
+ interface OpenAIResponseOutputMessageMcpCall {
258
+ id: string;
259
+ arguments: string;
260
+ name: string;
261
+ server_label: string;
262
+ error?: string | null;
263
+ output?: string | null;
264
+ type?: 'mcp_call';
265
+ }
266
+ /**
267
+ * MCP list tools output message containing available tools from an MCP server.
268
+ */
269
+ interface OpenAIResponseOutputMessageMcpListTools {
270
+ id: string;
271
+ server_label: string;
272
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
273
+ type?: 'mcp_list_tools';
274
+ }
275
+ namespace OpenAIResponseOutputMessageMcpListTools {
276
+ /**
277
+ * Tool definition returned by MCP list tools operation.
278
+ */
279
+ interface Tool {
280
+ input_schema: {
281
+ [key: string]: unknown;
282
+ };
283
+ name: string;
284
+ description?: string | null;
285
+ }
286
+ }
287
+ }
288
+ /**
289
+ * Corresponds to the various Message types in the Responses API. They are all
290
+ * under one type because the Responses API gives them all the same "type" value,
291
+ * and there is no way to tell them apart in certain scenarios.
292
+ */
293
+ export type ItemListResponse = ItemListResponse.OpenAIResponseMessageOutput | ItemListResponse.OpenAIResponseOutputMessageWebSearchToolCall | ItemListResponse.OpenAIResponseOutputMessageFileSearchToolCall | ItemListResponse.OpenAIResponseOutputMessageFunctionToolCall | ItemListResponse.OpenAIResponseInputFunctionToolCallOutput | ItemListResponse.OpenAIResponseMcpApprovalRequest | ItemListResponse.OpenAIResponseMcpApprovalResponse | ItemListResponse.OpenAIResponseOutputMessageMcpCall | ItemListResponse.OpenAIResponseOutputMessageMcpListTools;
294
+ export declare namespace ItemListResponse {
295
+ /**
296
+ * Corresponds to the various Message types in the Responses API. They are all
297
+ * under one type because the Responses API gives them all the same "type" value,
298
+ * and there is no way to tell them apart in certain scenarios.
299
+ */
300
+ interface OpenAIResponseMessageOutput {
301
+ content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
302
+ role: 'system' | 'developer' | 'user' | 'assistant';
303
+ id?: string | null;
304
+ status?: string | null;
305
+ type?: 'message';
306
+ }
307
+ namespace OpenAIResponseMessageOutput {
308
+ /**
309
+ * Text content for input messages in OpenAI response format.
310
+ */
311
+ interface OpenAIResponseInputMessageContentText {
312
+ text: string;
313
+ type?: 'input_text';
314
+ }
315
+ /**
316
+ * Image content for input messages in OpenAI response format.
317
+ */
318
+ interface OpenAIResponseInputMessageContentImage {
319
+ detail?: 'low' | 'high' | 'auto';
320
+ file_id?: string | null;
321
+ image_url?: string | null;
322
+ type?: 'input_image';
323
+ }
324
+ /**
325
+ * File content for input messages in OpenAI response format.
326
+ */
327
+ interface OpenAIResponseInputMessageContentFile {
328
+ file_data?: string | null;
329
+ file_id?: string | null;
330
+ file_url?: string | null;
331
+ filename?: string | null;
332
+ type?: 'input_file';
333
+ }
334
+ interface OpenAIResponseOutputMessageContentOutputTextOutput {
335
+ text: string;
336
+ annotations?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath>;
337
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
338
+ type?: 'output_text';
339
+ }
340
+ namespace OpenAIResponseOutputMessageContentOutputTextOutput {
341
+ /**
342
+ * File citation annotation for referencing specific files in response content.
343
+ */
344
+ interface OpenAIResponseAnnotationFileCitation {
345
+ file_id: string;
346
+ filename: string;
347
+ index: number;
348
+ type?: 'file_citation';
349
+ }
350
+ /**
351
+ * URL citation annotation for referencing external web resources.
352
+ */
353
+ interface OpenAIResponseAnnotationCitation {
354
+ end_index: number;
355
+ start_index: number;
356
+ title: string;
357
+ url: string;
358
+ type?: 'url_citation';
359
+ }
360
+ interface OpenAIResponseAnnotationContainerFileCitation {
361
+ container_id: string;
362
+ end_index: number;
363
+ file_id: string;
364
+ filename: string;
365
+ start_index: number;
366
+ type?: 'container_file_citation';
367
+ }
368
+ interface OpenAIResponseAnnotationFilePath {
369
+ file_id: string;
370
+ index: number;
371
+ type?: 'file_path';
372
+ }
373
+ /**
374
+ * The log probability for a token from an OpenAI-compatible chat completion
375
+ * response.
376
+ */
377
+ interface Logprob {
378
+ /**
379
+ * The token.
380
+ */
381
+ token: string;
382
+ /**
383
+ * The log probability of the token.
384
+ */
385
+ logprob: number;
386
+ /**
387
+ * The bytes for the token.
388
+ */
389
+ bytes?: Array<number> | null;
390
+ /**
391
+ * The top log probabilities for the token.
392
+ */
393
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
394
+ }
395
+ namespace Logprob {
396
+ /**
397
+ * The top log probability for a token from an OpenAI-compatible chat completion
398
+ * response.
399
+ */
400
+ interface TopLogprob {
401
+ /**
402
+ * The token.
403
+ */
404
+ token: string;
405
+ /**
406
+ * The log probability of the token.
407
+ */
408
+ logprob: number;
409
+ /**
410
+ * The bytes for the token.
411
+ */
412
+ bytes?: Array<number> | null;
413
+ }
414
+ }
415
+ }
416
+ /**
417
+ * Refusal content within a streamed response part.
418
+ */
419
+ interface OpenAIResponseContentPartRefusal {
420
+ refusal: string;
421
+ type?: 'refusal';
422
+ }
423
+ }
424
+ /**
425
+ * Web search tool call output message for OpenAI responses.
426
+ */
427
+ interface OpenAIResponseOutputMessageWebSearchToolCall {
428
+ id: string;
429
+ status: string;
430
+ type?: 'web_search_call';
431
+ }
432
+ /**
433
+ * File search tool call output message for OpenAI responses.
434
+ */
435
+ interface OpenAIResponseOutputMessageFileSearchToolCall {
436
+ id: string;
437
+ queries: Array<string>;
438
+ status: string;
439
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
440
+ type?: 'file_search_call';
441
+ }
442
+ namespace OpenAIResponseOutputMessageFileSearchToolCall {
443
+ /**
444
+ * Search results returned by the file search operation.
445
+ */
446
+ interface Result {
447
+ attributes: {
448
+ [key: string]: unknown;
449
+ };
450
+ file_id: string;
451
+ filename: string;
452
+ score: number;
453
+ text: string;
454
+ }
455
+ }
456
+ /**
457
+ * Function tool call output message for OpenAI responses.
458
+ */
459
+ interface OpenAIResponseOutputMessageFunctionToolCall {
460
+ arguments: string;
461
+ call_id: string;
462
+ name: string;
463
+ id?: string | null;
464
+ status?: string | null;
465
+ type?: 'function_call';
466
+ }
467
+ /**
468
+ * This represents the output of a function call that gets passed back to the
469
+ * model.
470
+ */
471
+ interface OpenAIResponseInputFunctionToolCallOutput {
472
+ call_id: string;
473
+ output: string;
474
+ id?: string | null;
475
+ status?: string | null;
476
+ type?: 'function_call_output';
477
+ }
478
+ /**
479
+ * A request for human approval of a tool invocation.
480
+ */
481
+ interface OpenAIResponseMcpApprovalRequest {
482
+ id: string;
483
+ arguments: string;
484
+ name: string;
485
+ server_label: string;
486
+ type?: 'mcp_approval_request';
487
+ }
488
+ /**
489
+ * A response to an MCP approval request.
490
+ */
491
+ interface OpenAIResponseMcpApprovalResponse {
492
+ approval_request_id: string;
493
+ approve: boolean;
494
+ id?: string | null;
495
+ reason?: string | null;
496
+ type?: 'mcp_approval_response';
497
+ }
498
+ /**
499
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
500
+ */
501
+ interface OpenAIResponseOutputMessageMcpCall {
502
+ id: string;
503
+ arguments: string;
504
+ name: string;
505
+ server_label: string;
506
+ error?: string | null;
507
+ output?: string | null;
508
+ type?: 'mcp_call';
509
+ }
510
+ /**
511
+ * MCP list tools output message containing available tools from an MCP server.
512
+ */
513
+ interface OpenAIResponseOutputMessageMcpListTools {
514
+ id: string;
515
+ server_label: string;
516
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
517
+ type?: 'mcp_list_tools';
518
+ }
519
+ namespace OpenAIResponseOutputMessageMcpListTools {
520
+ /**
521
+ * Tool definition returned by MCP list tools operation.
522
+ */
523
+ interface Tool {
524
+ input_schema: {
525
+ [key: string]: unknown;
526
+ };
527
+ name: string;
528
+ description?: string | null;
529
+ }
530
+ }
531
+ }
532
+ /**
533
+ * Response for deleted conversation item.
534
+ */
535
+ export interface ItemDeleteResponse {
536
+ /**
537
+ * The deleted item identifier
538
+ */
539
+ id: string;
540
+ /**
541
+ * Whether the object was deleted
542
+ */
543
+ deleted?: boolean;
544
+ /**
545
+ * Object type
546
+ */
547
+ object?: string;
548
+ }
549
+ /**
550
+ * Corresponds to the various Message types in the Responses API. They are all
551
+ * under one type because the Responses API gives them all the same "type" value,
552
+ * and there is no way to tell them apart in certain scenarios.
553
+ */
554
+ export type ItemGetResponse = ItemGetResponse.OpenAIResponseMessageOutput | ItemGetResponse.OpenAIResponseOutputMessageWebSearchToolCall | ItemGetResponse.OpenAIResponseOutputMessageFileSearchToolCall | ItemGetResponse.OpenAIResponseOutputMessageFunctionToolCall | ItemGetResponse.OpenAIResponseInputFunctionToolCallOutput | ItemGetResponse.OpenAIResponseMcpApprovalRequest | ItemGetResponse.OpenAIResponseMcpApprovalResponse | ItemGetResponse.OpenAIResponseOutputMessageMcpCall | ItemGetResponse.OpenAIResponseOutputMessageMcpListTools;
555
+ export declare namespace ItemGetResponse {
556
+ /**
557
+ * Corresponds to the various Message types in the Responses API. They are all
558
+ * under one type because the Responses API gives them all the same "type" value,
559
+ * and there is no way to tell them apart in certain scenarios.
560
+ */
561
+ interface OpenAIResponseMessageOutput {
562
+ content: string | Array<OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput | OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal>;
563
+ role: 'system' | 'developer' | 'user' | 'assistant';
564
+ id?: string | null;
565
+ status?: string | null;
566
+ type?: 'message';
567
+ }
568
+ namespace OpenAIResponseMessageOutput {
569
+ /**
570
+ * Text content for input messages in OpenAI response format.
571
+ */
572
+ interface OpenAIResponseInputMessageContentText {
573
+ text: string;
574
+ type?: 'input_text';
575
+ }
576
+ /**
577
+ * Image content for input messages in OpenAI response format.
578
+ */
579
+ interface OpenAIResponseInputMessageContentImage {
580
+ detail?: 'low' | 'high' | 'auto';
581
+ file_id?: string | null;
582
+ image_url?: string | null;
583
+ type?: 'input_image';
584
+ }
585
+ /**
586
+ * File content for input messages in OpenAI response format.
587
+ */
588
+ interface OpenAIResponseInputMessageContentFile {
589
+ file_data?: string | null;
590
+ file_id?: string | null;
591
+ file_url?: string | null;
592
+ filename?: string | null;
593
+ type?: 'input_file';
594
+ }
595
+ interface OpenAIResponseOutputMessageContentOutputTextOutput {
596
+ text: string;
597
+ annotations?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath>;
598
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
599
+ type?: 'output_text';
600
+ }
601
+ namespace OpenAIResponseOutputMessageContentOutputTextOutput {
602
+ /**
603
+ * File citation annotation for referencing specific files in response content.
604
+ */
605
+ interface OpenAIResponseAnnotationFileCitation {
606
+ file_id: string;
607
+ filename: string;
608
+ index: number;
609
+ type?: 'file_citation';
610
+ }
611
+ /**
612
+ * URL citation annotation for referencing external web resources.
613
+ */
614
+ interface OpenAIResponseAnnotationCitation {
615
+ end_index: number;
616
+ start_index: number;
617
+ title: string;
618
+ url: string;
619
+ type?: 'url_citation';
620
+ }
621
+ interface OpenAIResponseAnnotationContainerFileCitation {
622
+ container_id: string;
623
+ end_index: number;
624
+ file_id: string;
625
+ filename: string;
626
+ start_index: number;
627
+ type?: 'container_file_citation';
628
+ }
629
+ interface OpenAIResponseAnnotationFilePath {
630
+ file_id: string;
631
+ index: number;
632
+ type?: 'file_path';
633
+ }
634
+ /**
635
+ * The log probability for a token from an OpenAI-compatible chat completion
636
+ * response.
637
+ */
638
+ interface Logprob {
639
+ /**
640
+ * The token.
641
+ */
642
+ token: string;
643
+ /**
644
+ * The log probability of the token.
645
+ */
646
+ logprob: number;
647
+ /**
648
+ * The bytes for the token.
649
+ */
650
+ bytes?: Array<number> | null;
651
+ /**
652
+ * The top log probabilities for the token.
653
+ */
654
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
655
+ }
656
+ namespace Logprob {
657
+ /**
658
+ * The top log probability for a token from an OpenAI-compatible chat completion
659
+ * response.
660
+ */
661
+ interface TopLogprob {
662
+ /**
663
+ * The token.
664
+ */
665
+ token: string;
666
+ /**
667
+ * The log probability of the token.
668
+ */
669
+ logprob: number;
670
+ /**
671
+ * The bytes for the token.
672
+ */
673
+ bytes?: Array<number> | null;
674
+ }
675
+ }
676
+ }
677
+ /**
678
+ * Refusal content within a streamed response part.
679
+ */
680
+ interface OpenAIResponseContentPartRefusal {
681
+ refusal: string;
682
+ type?: 'refusal';
683
+ }
684
+ }
685
+ /**
686
+ * Web search tool call output message for OpenAI responses.
687
+ */
688
+ interface OpenAIResponseOutputMessageWebSearchToolCall {
689
+ id: string;
690
+ status: string;
691
+ type?: 'web_search_call';
692
+ }
693
+ /**
694
+ * File search tool call output message for OpenAI responses.
695
+ */
696
+ interface OpenAIResponseOutputMessageFileSearchToolCall {
697
+ id: string;
698
+ queries: Array<string>;
699
+ status: string;
700
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
701
+ type?: 'file_search_call';
702
+ }
703
+ namespace OpenAIResponseOutputMessageFileSearchToolCall {
704
+ /**
705
+ * Search results returned by the file search operation.
706
+ */
707
+ interface Result {
708
+ attributes: {
709
+ [key: string]: unknown;
710
+ };
711
+ file_id: string;
712
+ filename: string;
713
+ score: number;
714
+ text: string;
715
+ }
716
+ }
717
+ /**
718
+ * Function tool call output message for OpenAI responses.
719
+ */
720
+ interface OpenAIResponseOutputMessageFunctionToolCall {
721
+ arguments: string;
722
+ call_id: string;
723
+ name: string;
724
+ id?: string | null;
725
+ status?: string | null;
726
+ type?: 'function_call';
727
+ }
728
+ /**
729
+ * This represents the output of a function call that gets passed back to the
730
+ * model.
731
+ */
732
+ interface OpenAIResponseInputFunctionToolCallOutput {
733
+ call_id: string;
734
+ output: string;
735
+ id?: string | null;
736
+ status?: string | null;
737
+ type?: 'function_call_output';
738
+ }
739
+ /**
740
+ * A request for human approval of a tool invocation.
741
+ */
742
+ interface OpenAIResponseMcpApprovalRequest {
743
+ id: string;
744
+ arguments: string;
745
+ name: string;
746
+ server_label: string;
747
+ type?: 'mcp_approval_request';
748
+ }
749
+ /**
750
+ * A response to an MCP approval request.
751
+ */
752
+ interface OpenAIResponseMcpApprovalResponse {
753
+ approval_request_id: string;
754
+ approve: boolean;
755
+ id?: string | null;
756
+ reason?: string | null;
757
+ type?: 'mcp_approval_response';
758
+ }
759
+ /**
760
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
761
+ */
762
+ interface OpenAIResponseOutputMessageMcpCall {
763
+ id: string;
764
+ arguments: string;
765
+ name: string;
766
+ server_label: string;
767
+ error?: string | null;
768
+ output?: string | null;
769
+ type?: 'mcp_call';
770
+ }
771
+ /**
772
+ * MCP list tools output message containing available tools from an MCP server.
773
+ */
774
+ interface OpenAIResponseOutputMessageMcpListTools {
775
+ id: string;
776
+ server_label: string;
777
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
778
+ type?: 'mcp_list_tools';
779
+ }
780
+ namespace OpenAIResponseOutputMessageMcpListTools {
781
+ /**
782
+ * Tool definition returned by MCP list tools operation.
783
+ */
784
+ interface Tool {
785
+ input_schema: {
786
+ [key: string]: unknown;
787
+ };
788
+ name: string;
789
+ description?: string | null;
790
+ }
791
+ }
792
+ }
793
+ export interface ItemCreateParams {
794
+ /**
795
+ * Items to include in the conversation context. You may add up to 20 items at a
796
+ * time.
797
+ */
798
+ items: Array<ItemCreateParams.OpenAIResponseMessageInput | ItemCreateParams.OpenAIResponseOutputMessageWebSearchToolCall | ItemCreateParams.OpenAIResponseOutputMessageFileSearchToolCall | ItemCreateParams.OpenAIResponseOutputMessageFunctionToolCall | ItemCreateParams.OpenAIResponseInputFunctionToolCallOutput | ItemCreateParams.OpenAIResponseMcpApprovalRequest | ItemCreateParams.OpenAIResponseMcpApprovalResponse | ItemCreateParams.OpenAIResponseOutputMessageMcpCall | ItemCreateParams.OpenAIResponseOutputMessageMcpListTools>;
799
+ }
800
+ export declare namespace ItemCreateParams {
801
+ /**
802
+ * Corresponds to the various Message types in the Responses API. They are all
803
+ * under one type because the Responses API gives them all the same "type" value,
804
+ * and there is no way to tell them apart in certain scenarios.
805
+ */
806
+ interface OpenAIResponseMessageInput {
807
+ content: string | Array<OpenAIResponseMessageInput.OpenAIResponseInputMessageContentText | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentImage | OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile> | Array<OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputTextInput | OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal>;
808
+ role: 'system' | 'developer' | 'user' | 'assistant';
809
+ id?: string | null;
810
+ status?: string | null;
811
+ type?: 'message';
812
+ }
813
+ namespace OpenAIResponseMessageInput {
814
+ /**
815
+ * Text content for input messages in OpenAI response format.
816
+ */
817
+ interface OpenAIResponseInputMessageContentText {
818
+ text: string;
819
+ type?: 'input_text';
820
+ }
821
+ /**
822
+ * Image content for input messages in OpenAI response format.
823
+ */
824
+ interface OpenAIResponseInputMessageContentImage {
825
+ detail?: 'low' | 'high' | 'auto';
826
+ file_id?: string | null;
827
+ image_url?: string | null;
828
+ type?: 'input_image';
829
+ }
830
+ /**
831
+ * File content for input messages in OpenAI response format.
832
+ */
833
+ interface OpenAIResponseInputMessageContentFile {
834
+ file_data?: string | null;
835
+ file_id?: string | null;
836
+ file_url?: string | null;
837
+ filename?: string | null;
838
+ type?: 'input_file';
839
+ }
840
+ interface OpenAIResponseOutputMessageContentOutputTextInput {
841
+ text: string;
842
+ annotations?: Array<OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFileCitation | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationCitation | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationContainerFileCitation | OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFilePath>;
843
+ logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextInput.Logprob> | null;
844
+ type?: 'output_text';
845
+ }
846
+ namespace OpenAIResponseOutputMessageContentOutputTextInput {
847
+ /**
848
+ * File citation annotation for referencing specific files in response content.
849
+ */
850
+ interface OpenAIResponseAnnotationFileCitation {
851
+ file_id: string;
852
+ filename: string;
853
+ index: number;
854
+ type?: 'file_citation';
855
+ }
856
+ /**
857
+ * URL citation annotation for referencing external web resources.
858
+ */
859
+ interface OpenAIResponseAnnotationCitation {
860
+ end_index: number;
861
+ start_index: number;
862
+ title: string;
863
+ url: string;
864
+ type?: 'url_citation';
865
+ }
866
+ interface OpenAIResponseAnnotationContainerFileCitation {
867
+ container_id: string;
868
+ end_index: number;
869
+ file_id: string;
870
+ filename: string;
871
+ start_index: number;
872
+ type?: 'container_file_citation';
873
+ }
874
+ interface OpenAIResponseAnnotationFilePath {
875
+ file_id: string;
876
+ index: number;
877
+ type?: 'file_path';
878
+ }
879
+ /**
880
+ * The log probability for a token from an OpenAI-compatible chat completion
881
+ * response.
882
+ */
883
+ interface Logprob {
884
+ /**
885
+ * The token.
886
+ */
887
+ token: string;
888
+ /**
889
+ * The log probability of the token.
890
+ */
891
+ logprob: number;
892
+ /**
893
+ * The bytes for the token.
894
+ */
895
+ bytes?: Array<number> | null;
896
+ /**
897
+ * The top log probabilities for the token.
898
+ */
899
+ top_logprobs?: Array<Logprob.TopLogprob> | null;
900
+ }
901
+ namespace Logprob {
902
+ /**
903
+ * The top log probability for a token from an OpenAI-compatible chat completion
904
+ * response.
905
+ */
906
+ interface TopLogprob {
907
+ /**
908
+ * The token.
909
+ */
910
+ token: string;
911
+ /**
912
+ * The log probability of the token.
913
+ */
914
+ logprob: number;
915
+ /**
916
+ * The bytes for the token.
917
+ */
918
+ bytes?: Array<number> | null;
919
+ }
920
+ }
921
+ }
922
+ /**
923
+ * Refusal content within a streamed response part.
924
+ */
925
+ interface OpenAIResponseContentPartRefusal {
926
+ refusal: string;
927
+ type?: 'refusal';
928
+ }
929
+ }
930
+ /**
931
+ * Web search tool call output message for OpenAI responses.
932
+ */
933
+ interface OpenAIResponseOutputMessageWebSearchToolCall {
934
+ id: string;
935
+ status: string;
936
+ type?: 'web_search_call';
937
+ }
938
+ /**
939
+ * File search tool call output message for OpenAI responses.
940
+ */
941
+ interface OpenAIResponseOutputMessageFileSearchToolCall {
942
+ id: string;
943
+ queries: Array<string>;
944
+ status: string;
945
+ results?: Array<OpenAIResponseOutputMessageFileSearchToolCall.Result> | null;
946
+ type?: 'file_search_call';
947
+ }
948
+ namespace OpenAIResponseOutputMessageFileSearchToolCall {
949
+ /**
950
+ * Search results returned by the file search operation.
951
+ */
952
+ interface Result {
953
+ attributes: {
954
+ [key: string]: unknown;
955
+ };
956
+ file_id: string;
957
+ filename: string;
958
+ score: number;
959
+ text: string;
960
+ }
961
+ }
962
+ /**
963
+ * Function tool call output message for OpenAI responses.
964
+ */
965
+ interface OpenAIResponseOutputMessageFunctionToolCall {
966
+ arguments: string;
967
+ call_id: string;
968
+ name: string;
969
+ id?: string | null;
970
+ status?: string | null;
971
+ type?: 'function_call';
972
+ }
973
+ /**
974
+ * This represents the output of a function call that gets passed back to the
975
+ * model.
976
+ */
977
+ interface OpenAIResponseInputFunctionToolCallOutput {
978
+ call_id: string;
979
+ output: string;
980
+ id?: string | null;
981
+ status?: string | null;
982
+ type?: 'function_call_output';
983
+ }
984
+ /**
985
+ * A request for human approval of a tool invocation.
986
+ */
987
+ interface OpenAIResponseMcpApprovalRequest {
988
+ id: string;
989
+ arguments: string;
990
+ name: string;
991
+ server_label: string;
992
+ type?: 'mcp_approval_request';
993
+ }
994
+ /**
995
+ * A response to an MCP approval request.
996
+ */
997
+ interface OpenAIResponseMcpApprovalResponse {
998
+ approval_request_id: string;
999
+ approve: boolean;
1000
+ id?: string | null;
1001
+ reason?: string | null;
1002
+ type?: 'mcp_approval_response';
1003
+ }
1004
+ /**
1005
+ * Model Context Protocol (MCP) call output message for OpenAI responses.
1006
+ */
1007
+ interface OpenAIResponseOutputMessageMcpCall {
1008
+ id: string;
1009
+ arguments: string;
1010
+ name: string;
1011
+ server_label: string;
1012
+ error?: string | null;
1013
+ output?: string | null;
1014
+ type?: 'mcp_call';
1015
+ }
1016
+ /**
1017
+ * MCP list tools output message containing available tools from an MCP server.
1018
+ */
1019
+ interface OpenAIResponseOutputMessageMcpListTools {
1020
+ id: string;
1021
+ server_label: string;
1022
+ tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
1023
+ type?: 'mcp_list_tools';
1024
+ }
1025
+ namespace OpenAIResponseOutputMessageMcpListTools {
1026
+ /**
1027
+ * Tool definition returned by MCP list tools operation.
1028
+ */
1029
+ interface Tool {
1030
+ input_schema: {
1031
+ [key: string]: unknown;
1032
+ };
1033
+ name: string;
1034
+ description?: string | null;
1035
+ }
1036
+ }
1037
+ }
1038
+ export interface ItemListParams extends OpenAICursorPageParams {
1039
+ include?: Array<'web_search_call.action.sources' | 'code_interpreter_call.outputs' | 'computer_call_output.output.image_url' | 'file_search_call.results' | 'message.input_image.image_url' | 'message.output_text.logprobs' | 'reasoning.encrypted_content'> | null;
1040
+ order?: 'asc' | 'desc' | null;
1041
+ }
1042
+ export declare namespace Items {
1043
+ export { type ItemCreateResponse as ItemCreateResponse, type ItemListResponse as ItemListResponse, type ItemDeleteResponse as ItemDeleteResponse, type ItemGetResponse as ItemGetResponse, ItemListResponsesOpenAICursorPage as ItemListResponsesOpenAICursorPage, type ItemCreateParams as ItemCreateParams, type ItemListParams as ItemListParams, };
1044
+ }
1045
+ //# sourceMappingURL=items.d.ts.map