@anthropic-ai/claude-code 0.2.29 → 0.2.30

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 (415) hide show
  1. package/cli.mjs +442 -690
  2. package/package.json +1 -5
  3. package/vendor/sdk/CHANGELOG.md +0 -1421
  4. package/vendor/sdk/LICENSE +0 -8
  5. package/vendor/sdk/README.md +0 -536
  6. package/vendor/sdk/_shims/MultipartBody.d.ts +0 -9
  7. package/vendor/sdk/_shims/MultipartBody.d.ts.map +0 -1
  8. package/vendor/sdk/_shims/MultipartBody.js +0 -16
  9. package/vendor/sdk/_shims/MultipartBody.js.map +0 -1
  10. package/vendor/sdk/_shims/MultipartBody.mjs +0 -12
  11. package/vendor/sdk/_shims/MultipartBody.mjs.map +0 -1
  12. package/vendor/sdk/_shims/README.md +0 -46
  13. package/vendor/sdk/_shims/auto/runtime-bun.d.ts +0 -5
  14. package/vendor/sdk/_shims/auto/runtime-bun.d.ts.map +0 -1
  15. package/vendor/sdk/_shims/auto/runtime-bun.js +0 -21
  16. package/vendor/sdk/_shims/auto/runtime-bun.js.map +0 -1
  17. package/vendor/sdk/_shims/auto/runtime-bun.mjs +0 -2
  18. package/vendor/sdk/_shims/auto/runtime-bun.mjs.map +0 -1
  19. package/vendor/sdk/_shims/auto/runtime-node.d.ts +0 -5
  20. package/vendor/sdk/_shims/auto/runtime-node.d.ts.map +0 -1
  21. package/vendor/sdk/_shims/auto/runtime-node.js +0 -21
  22. package/vendor/sdk/_shims/auto/runtime-node.js.map +0 -1
  23. package/vendor/sdk/_shims/auto/runtime-node.mjs +0 -2
  24. package/vendor/sdk/_shims/auto/runtime-node.mjs.map +0 -1
  25. package/vendor/sdk/_shims/auto/runtime.d.ts +0 -5
  26. package/vendor/sdk/_shims/auto/runtime.d.ts.map +0 -1
  27. package/vendor/sdk/_shims/auto/runtime.js +0 -21
  28. package/vendor/sdk/_shims/auto/runtime.js.map +0 -1
  29. package/vendor/sdk/_shims/auto/runtime.mjs +0 -2
  30. package/vendor/sdk/_shims/auto/runtime.mjs.map +0 -1
  31. package/vendor/sdk/_shims/auto/types-node.d.ts +0 -5
  32. package/vendor/sdk/_shims/auto/types-node.d.ts.map +0 -1
  33. package/vendor/sdk/_shims/auto/types-node.js +0 -21
  34. package/vendor/sdk/_shims/auto/types-node.js.map +0 -1
  35. package/vendor/sdk/_shims/auto/types-node.mjs +0 -2
  36. package/vendor/sdk/_shims/auto/types-node.mjs.map +0 -1
  37. package/vendor/sdk/_shims/auto/types.d.ts +0 -101
  38. package/vendor/sdk/_shims/auto/types.js +0 -3
  39. package/vendor/sdk/_shims/auto/types.mjs +0 -3
  40. package/vendor/sdk/_shims/bun-runtime.d.ts +0 -6
  41. package/vendor/sdk/_shims/bun-runtime.d.ts.map +0 -1
  42. package/vendor/sdk/_shims/bun-runtime.js +0 -14
  43. package/vendor/sdk/_shims/bun-runtime.js.map +0 -1
  44. package/vendor/sdk/_shims/bun-runtime.mjs +0 -10
  45. package/vendor/sdk/_shims/bun-runtime.mjs.map +0 -1
  46. package/vendor/sdk/_shims/index.d.ts +0 -81
  47. package/vendor/sdk/_shims/index.js +0 -13
  48. package/vendor/sdk/_shims/index.mjs +0 -7
  49. package/vendor/sdk/_shims/manual-types.d.ts +0 -12
  50. package/vendor/sdk/_shims/manual-types.js +0 -3
  51. package/vendor/sdk/_shims/manual-types.mjs +0 -3
  52. package/vendor/sdk/_shims/node-runtime.d.ts +0 -3
  53. package/vendor/sdk/_shims/node-runtime.d.ts.map +0 -1
  54. package/vendor/sdk/_shims/node-runtime.js +0 -89
  55. package/vendor/sdk/_shims/node-runtime.js.map +0 -1
  56. package/vendor/sdk/_shims/node-runtime.mjs +0 -56
  57. package/vendor/sdk/_shims/node-runtime.mjs.map +0 -1
  58. package/vendor/sdk/_shims/node-types.d.ts +0 -42
  59. package/vendor/sdk/_shims/node-types.js +0 -3
  60. package/vendor/sdk/_shims/node-types.mjs +0 -3
  61. package/vendor/sdk/_shims/registry.d.ts +0 -37
  62. package/vendor/sdk/_shims/registry.d.ts.map +0 -1
  63. package/vendor/sdk/_shims/registry.js +0 -41
  64. package/vendor/sdk/_shims/registry.js.map +0 -1
  65. package/vendor/sdk/_shims/registry.mjs +0 -37
  66. package/vendor/sdk/_shims/registry.mjs.map +0 -1
  67. package/vendor/sdk/_shims/web-runtime.d.ts +0 -5
  68. package/vendor/sdk/_shims/web-runtime.d.ts.map +0 -1
  69. package/vendor/sdk/_shims/web-runtime.js +0 -78
  70. package/vendor/sdk/_shims/web-runtime.js.map +0 -1
  71. package/vendor/sdk/_shims/web-runtime.mjs +0 -71
  72. package/vendor/sdk/_shims/web-runtime.mjs.map +0 -1
  73. package/vendor/sdk/_shims/web-types.d.ts +0 -83
  74. package/vendor/sdk/_shims/web-types.js +0 -3
  75. package/vendor/sdk/_shims/web-types.mjs +0 -3
  76. package/vendor/sdk/_vendor/partial-json-parser/parser.d.ts +0 -3
  77. package/vendor/sdk/_vendor/partial-json-parser/parser.d.ts.map +0 -1
  78. package/vendor/sdk/_vendor/partial-json-parser/parser.js +0 -226
  79. package/vendor/sdk/_vendor/partial-json-parser/parser.js.map +0 -1
  80. package/vendor/sdk/_vendor/partial-json-parser/parser.mjs +0 -223
  81. package/vendor/sdk/_vendor/partial-json-parser/parser.mjs.map +0 -1
  82. package/vendor/sdk/core.d.ts +0 -248
  83. package/vendor/sdk/core.d.ts.map +0 -1
  84. package/vendor/sdk/core.js +0 -935
  85. package/vendor/sdk/core.js.map +0 -1
  86. package/vendor/sdk/core.mjs +0 -903
  87. package/vendor/sdk/core.mjs.map +0 -1
  88. package/vendor/sdk/error.d.ts +0 -48
  89. package/vendor/sdk/error.d.ts.map +0 -1
  90. package/vendor/sdk/error.js +0 -114
  91. package/vendor/sdk/error.js.map +0 -1
  92. package/vendor/sdk/error.mjs +0 -98
  93. package/vendor/sdk/error.mjs.map +0 -1
  94. package/vendor/sdk/index.d.mts +0 -152
  95. package/vendor/sdk/index.d.ts +0 -152
  96. package/vendor/sdk/index.d.ts.map +0 -1
  97. package/vendor/sdk/index.js +0 -179
  98. package/vendor/sdk/index.js.map +0 -1
  99. package/vendor/sdk/index.mjs +0 -136
  100. package/vendor/sdk/index.mjs.map +0 -1
  101. package/vendor/sdk/internal/decoders/jsonl.d.ts +0 -12
  102. package/vendor/sdk/internal/decoders/jsonl.d.ts.map +0 -1
  103. package/vendor/sdk/internal/decoders/jsonl.js +0 -35
  104. package/vendor/sdk/internal/decoders/jsonl.js.map +0 -1
  105. package/vendor/sdk/internal/decoders/jsonl.mjs +0 -31
  106. package/vendor/sdk/internal/decoders/jsonl.mjs.map +0 -1
  107. package/vendor/sdk/internal/decoders/line.d.ts +0 -20
  108. package/vendor/sdk/internal/decoders/line.d.ts.map +0 -1
  109. package/vendor/sdk/internal/decoders/line.js +0 -123
  110. package/vendor/sdk/internal/decoders/line.js.map +0 -1
  111. package/vendor/sdk/internal/decoders/line.mjs +0 -119
  112. package/vendor/sdk/internal/decoders/line.mjs.map +0 -1
  113. package/vendor/sdk/internal/stream-utils.d.ts +0 -8
  114. package/vendor/sdk/internal/stream-utils.d.ts.map +0 -1
  115. package/vendor/sdk/internal/stream-utils.js +0 -39
  116. package/vendor/sdk/internal/stream-utils.js.map +0 -1
  117. package/vendor/sdk/internal/stream-utils.mjs +0 -35
  118. package/vendor/sdk/internal/stream-utils.mjs.map +0 -1
  119. package/vendor/sdk/lib/BetaMessageStream.d.ts +0 -114
  120. package/vendor/sdk/lib/BetaMessageStream.d.ts.map +0 -1
  121. package/vendor/sdk/lib/BetaMessageStream.js +0 -547
  122. package/vendor/sdk/lib/BetaMessageStream.js.map +0 -1
  123. package/vendor/sdk/lib/BetaMessageStream.mjs +0 -543
  124. package/vendor/sdk/lib/BetaMessageStream.mjs.map +0 -1
  125. package/vendor/sdk/lib/MessageStream.d.ts +0 -114
  126. package/vendor/sdk/lib/MessageStream.d.ts.map +0 -1
  127. package/vendor/sdk/lib/MessageStream.js +0 -547
  128. package/vendor/sdk/lib/MessageStream.js.map +0 -1
  129. package/vendor/sdk/lib/MessageStream.mjs +0 -543
  130. package/vendor/sdk/lib/MessageStream.mjs.map +0 -1
  131. package/vendor/sdk/node_modules/@types/node/LICENSE +0 -21
  132. package/vendor/sdk/node_modules/@types/node/README.md +0 -15
  133. package/vendor/sdk/node_modules/@types/node/assert/strict.d.ts +0 -8
  134. package/vendor/sdk/node_modules/@types/node/assert.d.ts +0 -985
  135. package/vendor/sdk/node_modules/@types/node/async_hooks.d.ts +0 -522
  136. package/vendor/sdk/node_modules/@types/node/buffer.buffer.d.ts +0 -385
  137. package/vendor/sdk/node_modules/@types/node/buffer.d.ts +0 -1903
  138. package/vendor/sdk/node_modules/@types/node/child_process.d.ts +0 -1549
  139. package/vendor/sdk/node_modules/@types/node/cluster.d.ts +0 -578
  140. package/vendor/sdk/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  141. package/vendor/sdk/node_modules/@types/node/compatibility/index.d.ts +0 -9
  142. package/vendor/sdk/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  143. package/vendor/sdk/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  144. package/vendor/sdk/node_modules/@types/node/console.d.ts +0 -452
  145. package/vendor/sdk/node_modules/@types/node/constants.d.ts +0 -19
  146. package/vendor/sdk/node_modules/@types/node/crypto.d.ts +0 -4453
  147. package/vendor/sdk/node_modules/@types/node/dgram.d.ts +0 -596
  148. package/vendor/sdk/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
  149. package/vendor/sdk/node_modules/@types/node/dns/promises.d.ts +0 -475
  150. package/vendor/sdk/node_modules/@types/node/dns.d.ts +0 -853
  151. package/vendor/sdk/node_modules/@types/node/dom-events.d.ts +0 -124
  152. package/vendor/sdk/node_modules/@types/node/domain.d.ts +0 -170
  153. package/vendor/sdk/node_modules/@types/node/events.d.ts +0 -819
  154. package/vendor/sdk/node_modules/@types/node/fs/promises.d.ts +0 -1205
  155. package/vendor/sdk/node_modules/@types/node/fs.d.ts +0 -4237
  156. package/vendor/sdk/node_modules/@types/node/globals.d.ts +0 -442
  157. package/vendor/sdk/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  158. package/vendor/sdk/node_modules/@types/node/http.d.ts +0 -1839
  159. package/vendor/sdk/node_modules/@types/node/http2.d.ts +0 -2517
  160. package/vendor/sdk/node_modules/@types/node/https.d.ts +0 -544
  161. package/vendor/sdk/node_modules/@types/node/index.d.ts +0 -90
  162. package/vendor/sdk/node_modules/@types/node/inspector.d.ts +0 -2775
  163. package/vendor/sdk/node_modules/@types/node/module.d.ts +0 -291
  164. package/vendor/sdk/node_modules/@types/node/net.d.ts +0 -924
  165. package/vendor/sdk/node_modules/@types/node/os.d.ts +0 -473
  166. package/vendor/sdk/node_modules/@types/node/package.json +0 -225
  167. package/vendor/sdk/node_modules/@types/node/path.d.ts +0 -191
  168. package/vendor/sdk/node_modules/@types/node/perf_hooks.d.ts +0 -753
  169. package/vendor/sdk/node_modules/@types/node/process.d.ts +0 -1553
  170. package/vendor/sdk/node_modules/@types/node/punycode.d.ts +0 -117
  171. package/vendor/sdk/node_modules/@types/node/querystring.d.ts +0 -141
  172. package/vendor/sdk/node_modules/@types/node/readline/promises.d.ts +0 -154
  173. package/vendor/sdk/node_modules/@types/node/readline.d.ts +0 -715
  174. package/vendor/sdk/node_modules/@types/node/repl.d.ts +0 -430
  175. package/vendor/sdk/node_modules/@types/node/stream/consumers.d.ts +0 -12
  176. package/vendor/sdk/node_modules/@types/node/stream/promises.d.ts +0 -90
  177. package/vendor/sdk/node_modules/@types/node/stream/web.d.ts +0 -523
  178. package/vendor/sdk/node_modules/@types/node/stream.d.ts +0 -1731
  179. package/vendor/sdk/node_modules/@types/node/string_decoder.d.ts +0 -67
  180. package/vendor/sdk/node_modules/@types/node/test.d.ts +0 -1245
  181. package/vendor/sdk/node_modules/@types/node/timers/promises.d.ts +0 -93
  182. package/vendor/sdk/node_modules/@types/node/timers.d.ts +0 -126
  183. package/vendor/sdk/node_modules/@types/node/tls.d.ts +0 -1203
  184. package/vendor/sdk/node_modules/@types/node/trace_events.d.ts +0 -171
  185. package/vendor/sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -385
  186. package/vendor/sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  187. package/vendor/sdk/node_modules/@types/node/ts5.6/index.d.ts +0 -90
  188. package/vendor/sdk/node_modules/@types/node/tty.d.ts +0 -206
  189. package/vendor/sdk/node_modules/@types/node/url.d.ts +0 -957
  190. package/vendor/sdk/node_modules/@types/node/util.d.ts +0 -2083
  191. package/vendor/sdk/node_modules/@types/node/v8.d.ts +0 -753
  192. package/vendor/sdk/node_modules/@types/node/vm.d.ts +0 -666
  193. package/vendor/sdk/node_modules/@types/node/wasi.d.ts +0 -160
  194. package/vendor/sdk/node_modules/@types/node/worker_threads.d.ts +0 -695
  195. package/vendor/sdk/node_modules/@types/node/zlib.d.ts +0 -517
  196. package/vendor/sdk/node_modules/undici-types/README.md +0 -6
  197. package/vendor/sdk/node_modules/undici-types/agent.d.ts +0 -31
  198. package/vendor/sdk/node_modules/undici-types/api.d.ts +0 -43
  199. package/vendor/sdk/node_modules/undici-types/balanced-pool.d.ts +0 -18
  200. package/vendor/sdk/node_modules/undici-types/cache.d.ts +0 -36
  201. package/vendor/sdk/node_modules/undici-types/client.d.ts +0 -97
  202. package/vendor/sdk/node_modules/undici-types/connector.d.ts +0 -34
  203. package/vendor/sdk/node_modules/undici-types/content-type.d.ts +0 -21
  204. package/vendor/sdk/node_modules/undici-types/cookies.d.ts +0 -28
  205. package/vendor/sdk/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  206. package/vendor/sdk/node_modules/undici-types/dispatcher.d.ts +0 -241
  207. package/vendor/sdk/node_modules/undici-types/errors.d.ts +0 -128
  208. package/vendor/sdk/node_modules/undici-types/fetch.d.ts +0 -209
  209. package/vendor/sdk/node_modules/undici-types/file.d.ts +0 -39
  210. package/vendor/sdk/node_modules/undici-types/filereader.d.ts +0 -54
  211. package/vendor/sdk/node_modules/undici-types/formdata.d.ts +0 -108
  212. package/vendor/sdk/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  213. package/vendor/sdk/node_modules/undici-types/global-origin.d.ts +0 -7
  214. package/vendor/sdk/node_modules/undici-types/handlers.d.ts +0 -9
  215. package/vendor/sdk/node_modules/undici-types/header.d.ts +0 -4
  216. package/vendor/sdk/node_modules/undici-types/index.d.ts +0 -63
  217. package/vendor/sdk/node_modules/undici-types/interceptors.d.ts +0 -5
  218. package/vendor/sdk/node_modules/undici-types/mock-agent.d.ts +0 -50
  219. package/vendor/sdk/node_modules/undici-types/mock-client.d.ts +0 -25
  220. package/vendor/sdk/node_modules/undici-types/mock-errors.d.ts +0 -12
  221. package/vendor/sdk/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  222. package/vendor/sdk/node_modules/undici-types/mock-pool.d.ts +0 -25
  223. package/vendor/sdk/node_modules/undici-types/package.json +0 -55
  224. package/vendor/sdk/node_modules/undici-types/patch.d.ts +0 -71
  225. package/vendor/sdk/node_modules/undici-types/pool-stats.d.ts +0 -19
  226. package/vendor/sdk/node_modules/undici-types/pool.d.ts +0 -28
  227. package/vendor/sdk/node_modules/undici-types/proxy-agent.d.ts +0 -30
  228. package/vendor/sdk/node_modules/undici-types/readable.d.ts +0 -61
  229. package/vendor/sdk/node_modules/undici-types/webidl.d.ts +0 -220
  230. package/vendor/sdk/node_modules/undici-types/websocket.d.ts +0 -131
  231. package/vendor/sdk/package.json +0 -124
  232. package/vendor/sdk/pagination.d.ts +0 -27
  233. package/vendor/sdk/pagination.d.ts.map +0 -1
  234. package/vendor/sdk/pagination.js +0 -60
  235. package/vendor/sdk/pagination.js.map +0 -1
  236. package/vendor/sdk/pagination.mjs +0 -56
  237. package/vendor/sdk/pagination.mjs.map +0 -1
  238. package/vendor/sdk/resource.d.ts +0 -6
  239. package/vendor/sdk/resource.d.ts.map +0 -1
  240. package/vendor/sdk/resource.js +0 -11
  241. package/vendor/sdk/resource.js.map +0 -1
  242. package/vendor/sdk/resource.mjs +0 -7
  243. package/vendor/sdk/resource.mjs.map +0 -1
  244. package/vendor/sdk/resources/beta/beta.d.ts +0 -57
  245. package/vendor/sdk/resources/beta/beta.d.ts.map +0 -1
  246. package/vendor/sdk/resources/beta/beta.js +0 -44
  247. package/vendor/sdk/resources/beta/beta.js.map +0 -1
  248. package/vendor/sdk/resources/beta/beta.mjs +0 -17
  249. package/vendor/sdk/resources/beta/beta.mjs.map +0 -1
  250. package/vendor/sdk/resources/beta/index.d.ts +0 -4
  251. package/vendor/sdk/resources/beta/index.d.ts.map +0 -1
  252. package/vendor/sdk/resources/beta/index.js +0 -12
  253. package/vendor/sdk/resources/beta/index.js.map +0 -1
  254. package/vendor/sdk/resources/beta/index.mjs +0 -5
  255. package/vendor/sdk/resources/beta/index.mjs.map +0 -1
  256. package/vendor/sdk/resources/beta/messages/batches.d.ts +0 -289
  257. package/vendor/sdk/resources/beta/messages/batches.d.ts.map +0 -1
  258. package/vendor/sdk/resources/beta/messages/batches.js +0 -112
  259. package/vendor/sdk/resources/beta/messages/batches.js.map +0 -1
  260. package/vendor/sdk/resources/beta/messages/batches.mjs +0 -107
  261. package/vendor/sdk/resources/beta/messages/batches.mjs.map +0 -1
  262. package/vendor/sdk/resources/beta/messages/index.d.ts +0 -3
  263. package/vendor/sdk/resources/beta/messages/index.d.ts.map +0 -1
  264. package/vendor/sdk/resources/beta/messages/index.js +0 -10
  265. package/vendor/sdk/resources/beta/messages/index.js.map +0 -1
  266. package/vendor/sdk/resources/beta/messages/index.mjs +0 -4
  267. package/vendor/sdk/resources/beta/messages/index.mjs.map +0 -1
  268. package/vendor/sdk/resources/beta/messages/messages.d.ts +0 -1038
  269. package/vendor/sdk/resources/beta/messages/messages.d.ts.map +0 -1
  270. package/vendor/sdk/resources/beta/messages/messages.js +0 -93
  271. package/vendor/sdk/resources/beta/messages/messages.js.map +0 -1
  272. package/vendor/sdk/resources/beta/messages/messages.mjs +0 -66
  273. package/vendor/sdk/resources/beta/messages/messages.mjs.map +0 -1
  274. package/vendor/sdk/resources/beta/models.d.ts +0 -49
  275. package/vendor/sdk/resources/beta/models.d.ts.map +0 -1
  276. package/vendor/sdk/resources/beta/models.js +0 -30
  277. package/vendor/sdk/resources/beta/models.js.map +0 -1
  278. package/vendor/sdk/resources/beta/models.mjs +0 -25
  279. package/vendor/sdk/resources/beta/models.mjs.map +0 -1
  280. package/vendor/sdk/resources/completions.d.ts +0 -166
  281. package/vendor/sdk/resources/completions.d.ts.map +0 -1
  282. package/vendor/sdk/resources/completions.js +0 -17
  283. package/vendor/sdk/resources/completions.js.map +0 -1
  284. package/vendor/sdk/resources/completions.mjs +0 -13
  285. package/vendor/sdk/resources/completions.mjs.map +0 -1
  286. package/vendor/sdk/resources/index.d.ts +0 -6
  287. package/vendor/sdk/resources/index.d.ts.map +0 -1
  288. package/vendor/sdk/resources/index.js +0 -29
  289. package/vendor/sdk/resources/index.js.map +0 -1
  290. package/vendor/sdk/resources/index.mjs +0 -7
  291. package/vendor/sdk/resources/index.mjs.map +0 -1
  292. package/vendor/sdk/resources/messages/batches.d.ts +0 -253
  293. package/vendor/sdk/resources/messages/batches.d.ts.map +0 -1
  294. package/vendor/sdk/resources/messages/batches.js +0 -102
  295. package/vendor/sdk/resources/messages/batches.js.map +0 -1
  296. package/vendor/sdk/resources/messages/batches.mjs +0 -97
  297. package/vendor/sdk/resources/messages/batches.mjs.map +0 -1
  298. package/vendor/sdk/resources/messages/index.d.ts +0 -3
  299. package/vendor/sdk/resources/messages/index.d.ts.map +0 -1
  300. package/vendor/sdk/resources/messages/index.js +0 -10
  301. package/vendor/sdk/resources/messages/index.js.map +0 -1
  302. package/vendor/sdk/resources/messages/index.mjs +0 -4
  303. package/vendor/sdk/resources/messages/index.mjs.map +0 -1
  304. package/vendor/sdk/resources/messages/messages.d.ts +0 -1028
  305. package/vendor/sdk/resources/messages/messages.d.ts.map +0 -1
  306. package/vendor/sdk/resources/messages/messages.js +0 -82
  307. package/vendor/sdk/resources/messages/messages.js.map +0 -1
  308. package/vendor/sdk/resources/messages/messages.mjs +0 -54
  309. package/vendor/sdk/resources/messages/messages.mjs.map +0 -1
  310. package/vendor/sdk/resources/models.d.ts +0 -49
  311. package/vendor/sdk/resources/models.d.ts.map +0 -1
  312. package/vendor/sdk/resources/models.js +0 -30
  313. package/vendor/sdk/resources/models.js.map +0 -1
  314. package/vendor/sdk/resources/models.mjs +0 -25
  315. package/vendor/sdk/resources/models.mjs.map +0 -1
  316. package/vendor/sdk/resources/shared.d.ts +0 -42
  317. package/vendor/sdk/resources/shared.d.ts.map +0 -1
  318. package/vendor/sdk/resources/shared.js +0 -4
  319. package/vendor/sdk/resources/shared.js.map +0 -1
  320. package/vendor/sdk/resources/shared.mjs +0 -3
  321. package/vendor/sdk/resources/shared.mjs.map +0 -1
  322. package/vendor/sdk/resources/top-level.d.ts +0 -2
  323. package/vendor/sdk/resources/top-level.d.ts.map +0 -1
  324. package/vendor/sdk/resources/top-level.js +0 -4
  325. package/vendor/sdk/resources/top-level.js.map +0 -1
  326. package/vendor/sdk/resources/top-level.mjs +0 -3
  327. package/vendor/sdk/resources/top-level.mjs.map +0 -1
  328. package/vendor/sdk/shims/node.d.ts +0 -30
  329. package/vendor/sdk/shims/node.d.ts.map +0 -1
  330. package/vendor/sdk/shims/node.js +0 -31
  331. package/vendor/sdk/shims/node.js.map +0 -1
  332. package/vendor/sdk/shims/node.mjs +0 -5
  333. package/vendor/sdk/shims/node.mjs.map +0 -1
  334. package/vendor/sdk/shims/web.d.ts +0 -26
  335. package/vendor/sdk/shims/web.d.ts.map +0 -1
  336. package/vendor/sdk/shims/web.js +0 -31
  337. package/vendor/sdk/shims/web.js.map +0 -1
  338. package/vendor/sdk/shims/web.mjs +0 -5
  339. package/vendor/sdk/shims/web.mjs.map +0 -1
  340. package/vendor/sdk/src/_shims/MultipartBody.ts +0 -9
  341. package/vendor/sdk/src/_shims/README.md +0 -46
  342. package/vendor/sdk/src/_shims/auto/runtime-bun.ts +0 -4
  343. package/vendor/sdk/src/_shims/auto/runtime-node.ts +0 -4
  344. package/vendor/sdk/src/_shims/auto/runtime.ts +0 -4
  345. package/vendor/sdk/src/_shims/auto/types-node.ts +0 -4
  346. package/vendor/sdk/src/_shims/auto/types.d.ts +0 -101
  347. package/vendor/sdk/src/_shims/auto/types.js +0 -3
  348. package/vendor/sdk/src/_shims/auto/types.mjs +0 -3
  349. package/vendor/sdk/src/_shims/bun-runtime.ts +0 -14
  350. package/vendor/sdk/src/_shims/index.d.ts +0 -81
  351. package/vendor/sdk/src/_shims/index.js +0 -13
  352. package/vendor/sdk/src/_shims/index.mjs +0 -7
  353. package/vendor/sdk/src/_shims/manual-types.d.ts +0 -12
  354. package/vendor/sdk/src/_shims/manual-types.js +0 -3
  355. package/vendor/sdk/src/_shims/manual-types.mjs +0 -3
  356. package/vendor/sdk/src/_shims/node-runtime.ts +0 -81
  357. package/vendor/sdk/src/_shims/node-types.d.ts +0 -42
  358. package/vendor/sdk/src/_shims/node-types.js +0 -3
  359. package/vendor/sdk/src/_shims/node-types.mjs +0 -3
  360. package/vendor/sdk/src/_shims/registry.ts +0 -67
  361. package/vendor/sdk/src/_shims/web-runtime.ts +0 -103
  362. package/vendor/sdk/src/_shims/web-types.d.ts +0 -83
  363. package/vendor/sdk/src/_shims/web-types.js +0 -3
  364. package/vendor/sdk/src/_shims/web-types.mjs +0 -3
  365. package/vendor/sdk/src/_vendor/partial-json-parser/README.md +0 -3
  366. package/vendor/sdk/src/_vendor/partial-json-parser/parser.ts +0 -264
  367. package/vendor/sdk/src/core.ts +0 -1250
  368. package/vendor/sdk/src/error.ts +0 -133
  369. package/vendor/sdk/src/index.ts +0 -465
  370. package/vendor/sdk/src/internal/decoders/jsonl.ts +0 -41
  371. package/vendor/sdk/src/internal/decoders/line.ts +0 -145
  372. package/vendor/sdk/src/internal/stream-utils.ts +0 -32
  373. package/vendor/sdk/src/lib/.keep +0 -4
  374. package/vendor/sdk/src/lib/BetaMessageStream.ts +0 -661
  375. package/vendor/sdk/src/lib/MessageStream.ts +0 -662
  376. package/vendor/sdk/src/pagination.ts +0 -92
  377. package/vendor/sdk/src/resource.ts +0 -11
  378. package/vendor/sdk/src/resources/beta/beta.ts +0 -249
  379. package/vendor/sdk/src/resources/beta/index.ts +0 -83
  380. package/vendor/sdk/src/resources/beta/messages/batches.ts +0 -486
  381. package/vendor/sdk/src/resources/beta/messages/index.ts +0 -87
  382. package/vendor/sdk/src/resources/beta/messages/messages.ts +0 -1444
  383. package/vendor/sdk/src/resources/beta/models.ts +0 -78
  384. package/vendor/sdk/src/resources/completions.ts +0 -210
  385. package/vendor/sdk/src/resources/index.ts +0 -95
  386. package/vendor/sdk/src/resources/messages/batches.ts +0 -352
  387. package/vendor/sdk/src/resources/messages/index.ts +0 -85
  388. package/vendor/sdk/src/resources/messages/messages.ts +0 -1412
  389. package/vendor/sdk/src/resources/models.ts +0 -75
  390. package/vendor/sdk/src/resources/shared.ts +0 -72
  391. package/vendor/sdk/src/resources/top-level.ts +0 -3
  392. package/vendor/sdk/src/shims/node.ts +0 -50
  393. package/vendor/sdk/src/shims/web.ts +0 -50
  394. package/vendor/sdk/src/streaming.ts +0 -372
  395. package/vendor/sdk/src/tsconfig.json +0 -11
  396. package/vendor/sdk/src/uploads.ts +0 -255
  397. package/vendor/sdk/src/version.ts +0 -1
  398. package/vendor/sdk/streaming.d.ts +0 -36
  399. package/vendor/sdk/streaming.d.ts.map +0 -1
  400. package/vendor/sdk/streaming.js +0 -316
  401. package/vendor/sdk/streaming.js.map +0 -1
  402. package/vendor/sdk/streaming.mjs +0 -310
  403. package/vendor/sdk/streaming.mjs.map +0 -1
  404. package/vendor/sdk/uploads.d.ts +0 -75
  405. package/vendor/sdk/uploads.d.ts.map +0 -1
  406. package/vendor/sdk/uploads.js +0 -171
  407. package/vendor/sdk/uploads.js.map +0 -1
  408. package/vendor/sdk/uploads.mjs +0 -158
  409. package/vendor/sdk/uploads.mjs.map +0 -1
  410. package/vendor/sdk/version.d.ts +0 -2
  411. package/vendor/sdk/version.d.ts.map +0 -1
  412. package/vendor/sdk/version.js +0 -5
  413. package/vendor/sdk/version.js.map +0 -1
  414. package/vendor/sdk/version.mjs +0 -2
  415. package/vendor/sdk/version.mjs.map +0 -1
@@ -1,1038 +0,0 @@
1
- import { APIResource } from "../../../resource.js";
2
- import { APIPromise } from "../../../core.js";
3
- import * as Core from "../../../core.js";
4
- import * as MessagesMessagesAPI from "./messages.js";
5
- import * as BetaAPI from "../beta.js";
6
- import * as MessagesAPI from "../../messages/messages.js";
7
- import * as BatchesAPI from "./batches.js";
8
- import { BatchCancelParams, BatchCreateParams, BatchDeleteParams, BatchListParams, BatchResultsParams, BatchRetrieveParams, Batches, BetaDeletedMessageBatch, BetaMessageBatch, BetaMessageBatchCanceledResult, BetaMessageBatchErroredResult, BetaMessageBatchExpiredResult, BetaMessageBatchIndividualResponse, BetaMessageBatchRequestCounts, BetaMessageBatchResult, BetaMessageBatchSucceededResult, BetaMessageBatchesPage } from "./batches.js";
9
- import { Stream } from "../../../streaming.js";
10
- import { BetaMessageStream } from "../../../lib/BetaMessageStream.js";
11
- export declare class Messages extends APIResource {
12
- batches: BatchesAPI.Batches;
13
- /**
14
- * Send a structured list of input messages with text and/or image content, and the
15
- * model will generate the next message in the conversation.
16
- *
17
- * The Messages API can be used for either single queries or stateless multi-turn
18
- * conversations.
19
- *
20
- * Learn more about the Messages API in our [user guide](/en/docs/initial-setup)
21
- */
22
- create(params: MessageCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<BetaMessage>;
23
- create(params: MessageCreateParamsStreaming, options?: Core.RequestOptions): APIPromise<Stream<BetaRawMessageStreamEvent>>;
24
- create(params: MessageCreateParamsBase, options?: Core.RequestOptions): APIPromise<Stream<BetaRawMessageStreamEvent> | BetaMessage>;
25
- /**
26
- * Create a Message stream
27
- */
28
- stream(body: BetaMessageStreamParams, options?: Core.RequestOptions): BetaMessageStream;
29
- /**
30
- * Count the number of tokens in a Message.
31
- *
32
- * The Token Count API can be used to count the number of tokens in a Message,
33
- * including tools, images, and documents, without creating it.
34
- *
35
- * Learn more about token counting in our
36
- * [user guide](/en/docs/build-with-claude/token-counting)
37
- */
38
- countTokens(params: MessageCountTokensParams, options?: Core.RequestOptions): Core.APIPromise<BetaMessageTokensCount>;
39
- }
40
- export type BetaMessageStreamParams = MessageCreateParamsBase;
41
- export interface BetaBase64PDFBlock {
42
- source: BetaBase64PDFSource | BetaPlainTextSource | BetaContentBlockSource;
43
- type: 'document';
44
- cache_control?: BetaCacheControlEphemeral | null;
45
- citations?: BetaCitationsConfigParam;
46
- context?: string | null;
47
- title?: string | null;
48
- }
49
- export interface BetaBase64PDFSource {
50
- data: string;
51
- media_type: 'application/pdf';
52
- type: 'base64';
53
- }
54
- export interface BetaCacheControlEphemeral {
55
- type: 'ephemeral';
56
- }
57
- export interface BetaCitationCharLocation {
58
- cited_text: string;
59
- document_index: number;
60
- document_title: string | null;
61
- end_char_index: number;
62
- start_char_index: number;
63
- type: 'char_location';
64
- }
65
- export interface BetaCitationCharLocationParam {
66
- cited_text: string;
67
- document_index: number;
68
- document_title: string | null;
69
- end_char_index: number;
70
- start_char_index: number;
71
- type: 'char_location';
72
- }
73
- export interface BetaCitationContentBlockLocation {
74
- cited_text: string;
75
- document_index: number;
76
- document_title: string | null;
77
- end_block_index: number;
78
- start_block_index: number;
79
- type: 'content_block_location';
80
- }
81
- export interface BetaCitationContentBlockLocationParam {
82
- cited_text: string;
83
- document_index: number;
84
- document_title: string | null;
85
- end_block_index: number;
86
- start_block_index: number;
87
- type: 'content_block_location';
88
- }
89
- export interface BetaCitationPageLocation {
90
- cited_text: string;
91
- document_index: number;
92
- document_title: string | null;
93
- end_page_number: number;
94
- start_page_number: number;
95
- type: 'page_location';
96
- }
97
- export interface BetaCitationPageLocationParam {
98
- cited_text: string;
99
- document_index: number;
100
- document_title: string | null;
101
- end_page_number: number;
102
- start_page_number: number;
103
- type: 'page_location';
104
- }
105
- export interface BetaCitationsConfigParam {
106
- enabled?: boolean;
107
- }
108
- export interface BetaCitationsDelta {
109
- citation: BetaCitationCharLocation | BetaCitationPageLocation | BetaCitationContentBlockLocation;
110
- type: 'citations_delta';
111
- }
112
- export type BetaContentBlock = BetaTextBlock | BetaToolUseBlock | BetaThinkingBlock | BetaRedactedThinkingBlock;
113
- export type BetaContentBlockParam = BetaTextBlockParam | BetaImageBlockParam | BetaToolUseBlockParam | BetaToolResultBlockParam | BetaBase64PDFBlock | BetaThinkingBlockParam | BetaRedactedThinkingBlockParam;
114
- export interface BetaContentBlockSource {
115
- content: string | Array<BetaContentBlockSourceContent>;
116
- type: 'content';
117
- }
118
- export type BetaContentBlockSourceContent = BetaTextBlockParam | BetaImageBlockParam;
119
- export interface BetaImageBlockParam {
120
- source: BetaImageBlockParam.Source;
121
- type: 'image';
122
- cache_control?: BetaCacheControlEphemeral | null;
123
- }
124
- export declare namespace BetaImageBlockParam {
125
- interface Source {
126
- data: string;
127
- media_type: 'image/jpeg' | 'image/png' | 'image/gif' | 'image/webp';
128
- type: 'base64';
129
- }
130
- }
131
- export interface BetaInputJSONDelta {
132
- partial_json: string;
133
- type: 'input_json_delta';
134
- }
135
- export interface BetaMessage {
136
- /**
137
- * Unique object identifier.
138
- *
139
- * The format and length of IDs may change over time.
140
- */
141
- id: string;
142
- /**
143
- * Content generated by the model.
144
- *
145
- * This is an array of content blocks, each of which has a `type` that determines
146
- * its shape.
147
- *
148
- * Example:
149
- *
150
- * ```json
151
- * [{ "type": "text", "text": "Hi, I'm Claude." }]
152
- * ```
153
- *
154
- * If the request input `messages` ended with an `assistant` turn, then the
155
- * response `content` will continue directly from that last turn. You can use this
156
- * to constrain the model's output.
157
- *
158
- * For example, if the input `messages` were:
159
- *
160
- * ```json
161
- * [
162
- * {
163
- * "role": "user",
164
- * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
165
- * },
166
- * { "role": "assistant", "content": "The best answer is (" }
167
- * ]
168
- * ```
169
- *
170
- * Then the response `content` might be:
171
- *
172
- * ```json
173
- * [{ "type": "text", "text": "B)" }]
174
- * ```
175
- */
176
- content: Array<BetaContentBlock>;
177
- /**
178
- * The model that will complete your prompt.\n\nSee
179
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
180
- * details and options.
181
- */
182
- model: MessagesAPI.Model;
183
- /**
184
- * Conversational role of the generated message.
185
- *
186
- * This will always be `"assistant"`.
187
- */
188
- role: 'assistant';
189
- /**
190
- * The reason that we stopped.
191
- *
192
- * This may be one the following values:
193
- *
194
- * - `"end_turn"`: the model reached a natural stopping point
195
- * - `"max_tokens"`: we exceeded the requested `max_tokens` or the model's maximum
196
- * - `"stop_sequence"`: one of your provided custom `stop_sequences` was generated
197
- * - `"tool_use"`: the model invoked one or more tools
198
- *
199
- * In non-streaming mode this value is always non-null. In streaming mode, it is
200
- * null in the `message_start` event and non-null otherwise.
201
- */
202
- stop_reason: 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | null;
203
- /**
204
- * Which custom stop sequence was generated, if any.
205
- *
206
- * This value will be a non-null string if one of your custom stop sequences was
207
- * generated.
208
- */
209
- stop_sequence: string | null;
210
- /**
211
- * Object type.
212
- *
213
- * For Messages, this is always `"message"`.
214
- */
215
- type: 'message';
216
- /**
217
- * Billing and rate-limit usage.
218
- *
219
- * Anthropic's API bills and rate-limits by token counts, as tokens represent the
220
- * underlying cost to our systems.
221
- *
222
- * Under the hood, the API transforms requests into a format suitable for the
223
- * model. The model's output then goes through a parsing stage before becoming an
224
- * API response. As a result, the token counts in `usage` will not match one-to-one
225
- * with the exact visible content of an API request or response.
226
- *
227
- * For example, `output_tokens` will be non-zero, even for an empty string response
228
- * from Claude.
229
- *
230
- * Total input tokens in a request is the summation of `input_tokens`,
231
- * `cache_creation_input_tokens`, and `cache_read_input_tokens`.
232
- */
233
- usage: BetaUsage;
234
- }
235
- export interface BetaMessageDeltaUsage {
236
- /**
237
- * The cumulative number of output tokens which were used.
238
- */
239
- output_tokens: number;
240
- }
241
- export interface BetaMessageParam {
242
- content: string | Array<BetaContentBlockParam>;
243
- role: 'user' | 'assistant';
244
- }
245
- export interface BetaMessageTokensCount {
246
- /**
247
- * The total number of tokens across the provided list of messages, system prompt,
248
- * and tools.
249
- */
250
- input_tokens: number;
251
- }
252
- export interface BetaMetadata {
253
- /**
254
- * An external identifier for the user who is associated with the request.
255
- *
256
- * This should be a uuid, hash value, or other opaque identifier. Anthropic may use
257
- * this id to help detect abuse. Do not include any identifying information such as
258
- * name, email address, or phone number.
259
- */
260
- user_id?: string | null;
261
- }
262
- export interface BetaPlainTextSource {
263
- data: string;
264
- media_type: 'text/plain';
265
- type: 'text';
266
- }
267
- export interface BetaRawContentBlockDeltaEvent {
268
- delta: BetaTextDelta | BetaInputJSONDelta | BetaCitationsDelta | BetaThinkingDelta | BetaSignatureDelta;
269
- index: number;
270
- type: 'content_block_delta';
271
- }
272
- export interface BetaRawContentBlockStartEvent {
273
- content_block: BetaTextBlock | BetaToolUseBlock | BetaThinkingBlock | BetaRedactedThinkingBlock;
274
- index: number;
275
- type: 'content_block_start';
276
- }
277
- export interface BetaRawContentBlockStopEvent {
278
- index: number;
279
- type: 'content_block_stop';
280
- }
281
- export interface BetaRawMessageDeltaEvent {
282
- delta: BetaRawMessageDeltaEvent.Delta;
283
- type: 'message_delta';
284
- /**
285
- * Billing and rate-limit usage.
286
- *
287
- * Anthropic's API bills and rate-limits by token counts, as tokens represent the
288
- * underlying cost to our systems.
289
- *
290
- * Under the hood, the API transforms requests into a format suitable for the
291
- * model. The model's output then goes through a parsing stage before becoming an
292
- * API response. As a result, the token counts in `usage` will not match one-to-one
293
- * with the exact visible content of an API request or response.
294
- *
295
- * For example, `output_tokens` will be non-zero, even for an empty string response
296
- * from Claude.
297
- *
298
- * Total input tokens in a request is the summation of `input_tokens`,
299
- * `cache_creation_input_tokens`, and `cache_read_input_tokens`.
300
- */
301
- usage: BetaMessageDeltaUsage;
302
- }
303
- export declare namespace BetaRawMessageDeltaEvent {
304
- interface Delta {
305
- stop_reason: 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use' | null;
306
- stop_sequence: string | null;
307
- }
308
- }
309
- export interface BetaRawMessageStartEvent {
310
- message: BetaMessage;
311
- type: 'message_start';
312
- }
313
- export interface BetaRawMessageStopEvent {
314
- type: 'message_stop';
315
- }
316
- export type BetaRawMessageStreamEvent = BetaRawMessageStartEvent | BetaRawMessageDeltaEvent | BetaRawMessageStopEvent | BetaRawContentBlockStartEvent | BetaRawContentBlockDeltaEvent | BetaRawContentBlockStopEvent;
317
- export interface BetaRedactedThinkingBlock {
318
- data: string;
319
- type: 'redacted_thinking';
320
- }
321
- export interface BetaRedactedThinkingBlockParam {
322
- data: string;
323
- type: 'redacted_thinking';
324
- }
325
- export interface BetaSignatureDelta {
326
- signature: string;
327
- type: 'signature_delta';
328
- }
329
- export interface BetaTextBlock {
330
- /**
331
- * Citations supporting the text block.
332
- *
333
- * The type of citation returned will depend on the type of document being cited.
334
- * Citing a PDF results in `page_location`, plain text results in `char_location`,
335
- * and content document results in `content_block_location`.
336
- */
337
- citations: Array<BetaTextCitation> | null;
338
- text: string;
339
- type: 'text';
340
- }
341
- export interface BetaTextBlockParam {
342
- text: string;
343
- type: 'text';
344
- cache_control?: BetaCacheControlEphemeral | null;
345
- citations?: Array<BetaTextCitationParam> | null;
346
- }
347
- export type BetaTextCitation = BetaCitationCharLocation | BetaCitationPageLocation | BetaCitationContentBlockLocation;
348
- export type BetaTextCitationParam = BetaCitationCharLocationParam | BetaCitationPageLocationParam | BetaCitationContentBlockLocationParam;
349
- export interface BetaTextDelta {
350
- text: string;
351
- type: 'text_delta';
352
- }
353
- export interface BetaThinkingBlock {
354
- signature: string;
355
- thinking: string;
356
- type: 'thinking';
357
- }
358
- export interface BetaThinkingBlockParam {
359
- signature: string;
360
- thinking: string;
361
- type: 'thinking';
362
- }
363
- export interface BetaThinkingConfigDisabled {
364
- type: 'disabled';
365
- }
366
- export interface BetaThinkingConfigEnabled {
367
- budget_tokens: number;
368
- type: 'enabled';
369
- }
370
- export interface BetaThinkingDelta {
371
- thinking: string;
372
- type: 'thinking_delta';
373
- }
374
- export interface BetaTool {
375
- /**
376
- * [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
377
- *
378
- * This defines the shape of the `input` that your tool accepts and that the model
379
- * will produce.
380
- */
381
- input_schema: BetaTool.InputSchema;
382
- /**
383
- * Name of the tool.
384
- *
385
- * This is how the tool will be called by the model and in tool_use blocks.
386
- */
387
- name: string;
388
- cache_control?: BetaCacheControlEphemeral | null;
389
- /**
390
- * Description of what this tool does.
391
- *
392
- * Tool descriptions should be as detailed as possible. The more information that
393
- * the model has about what the tool is and how to use it, the better it will
394
- * perform. You can use natural language descriptions to reinforce important
395
- * aspects of the tool input JSON schema.
396
- */
397
- description?: string;
398
- type?: 'custom' | null;
399
- }
400
- export declare namespace BetaTool {
401
- /**
402
- * [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
403
- *
404
- * This defines the shape of the `input` that your tool accepts and that the model
405
- * will produce.
406
- */
407
- interface InputSchema {
408
- type: 'object';
409
- properties?: unknown | null;
410
- [k: string]: unknown;
411
- }
412
- }
413
- export interface BetaToolBash20241022 {
414
- /**
415
- * Name of the tool.
416
- *
417
- * This is how the tool will be called by the model and in tool_use blocks.
418
- */
419
- name: 'bash';
420
- type: 'bash_20241022';
421
- cache_control?: BetaCacheControlEphemeral | null;
422
- }
423
- export interface BetaToolBash20250124 {
424
- /**
425
- * Name of the tool.
426
- *
427
- * This is how the tool will be called by the model and in tool_use blocks.
428
- */
429
- name: 'bash';
430
- type: 'bash_20250124';
431
- cache_control?: BetaCacheControlEphemeral | null;
432
- }
433
- /**
434
- * How the model should use the provided tools. The model can use a specific tool,
435
- * any available tool, or decide by itself.
436
- */
437
- export type BetaToolChoice = BetaToolChoiceAuto | BetaToolChoiceAny | BetaToolChoiceTool;
438
- /**
439
- * The model will use any available tools.
440
- */
441
- export interface BetaToolChoiceAny {
442
- type: 'any';
443
- /**
444
- * Whether to disable parallel tool use.
445
- *
446
- * Defaults to `false`. If set to `true`, the model will output exactly one tool
447
- * use.
448
- */
449
- disable_parallel_tool_use?: boolean;
450
- }
451
- /**
452
- * The model will automatically decide whether to use tools.
453
- */
454
- export interface BetaToolChoiceAuto {
455
- type: 'auto';
456
- /**
457
- * Whether to disable parallel tool use.
458
- *
459
- * Defaults to `false`. If set to `true`, the model will output at most one tool
460
- * use.
461
- */
462
- disable_parallel_tool_use?: boolean;
463
- }
464
- /**
465
- * The model will use the specified tool with `tool_choice.name`.
466
- */
467
- export interface BetaToolChoiceTool {
468
- /**
469
- * The name of the tool to use.
470
- */
471
- name: string;
472
- type: 'tool';
473
- /**
474
- * Whether to disable parallel tool use.
475
- *
476
- * Defaults to `false`. If set to `true`, the model will output exactly one tool
477
- * use.
478
- */
479
- disable_parallel_tool_use?: boolean;
480
- }
481
- export interface BetaToolComputerUse20241022 {
482
- /**
483
- * The height of the display in pixels.
484
- */
485
- display_height_px: number;
486
- /**
487
- * The width of the display in pixels.
488
- */
489
- display_width_px: number;
490
- /**
491
- * Name of the tool.
492
- *
493
- * This is how the tool will be called by the model and in tool_use blocks.
494
- */
495
- name: 'computer';
496
- type: 'computer_20241022';
497
- cache_control?: BetaCacheControlEphemeral | null;
498
- /**
499
- * The X11 display number (e.g. 0, 1) for the display.
500
- */
501
- display_number?: number | null;
502
- }
503
- export interface BetaToolResultBlockParam {
504
- tool_use_id: string;
505
- type: 'tool_result';
506
- cache_control?: BetaCacheControlEphemeral | null;
507
- content?: string | Array<BetaTextBlockParam | BetaImageBlockParam>;
508
- is_error?: boolean;
509
- }
510
- export interface BetaToolTextEditor20241022 {
511
- /**
512
- * Name of the tool.
513
- *
514
- * This is how the tool will be called by the model and in tool_use blocks.
515
- */
516
- name: 'str_replace_editor';
517
- type: 'text_editor_20241022';
518
- cache_control?: BetaCacheControlEphemeral | null;
519
- }
520
- export interface BetaToolTextEditor20250124 {
521
- /**
522
- * Name of the tool.
523
- *
524
- * This is how the tool will be called by the model and in tool_use blocks.
525
- */
526
- name: 'str_replace_editor';
527
- type: 'text_editor_20250124';
528
- cache_control?: BetaCacheControlEphemeral | null;
529
- }
530
- export type BetaToolUnion = BetaToolComputerUse20241022 | BetaToolBash20241022 | BetaToolTextEditor20241022 | BetaToolBash20250124 | BetaToolTextEditor20250124 | BetaTool;
531
- export interface BetaToolUseBlock {
532
- id: string;
533
- input: unknown;
534
- name: string;
535
- type: 'tool_use';
536
- }
537
- export interface BetaToolUseBlockParam {
538
- id: string;
539
- input: unknown;
540
- name: string;
541
- type: 'tool_use';
542
- cache_control?: BetaCacheControlEphemeral | null;
543
- }
544
- export interface BetaUsage {
545
- /**
546
- * The number of input tokens used to create the cache entry.
547
- */
548
- cache_creation_input_tokens: number | null;
549
- /**
550
- * The number of input tokens read from the cache.
551
- */
552
- cache_read_input_tokens: number | null;
553
- /**
554
- * The number of input tokens which were used.
555
- */
556
- input_tokens: number;
557
- /**
558
- * The number of output tokens which were used.
559
- */
560
- output_tokens: number;
561
- }
562
- export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming;
563
- export interface MessageCreateParamsBase {
564
- /**
565
- * Body param: The maximum number of tokens to generate before stopping.
566
- *
567
- * Note that our models may stop _before_ reaching this maximum. This parameter
568
- * only specifies the absolute maximum number of tokens to generate.
569
- *
570
- * Different models have different maximum values for this parameter. See
571
- * [models](https://docs.anthropic.com/en/docs/models-overview) for details.
572
- */
573
- max_tokens: number;
574
- /**
575
- * Body param: Input messages.
576
- *
577
- * Our models are trained to operate on alternating `user` and `assistant`
578
- * conversational turns. When creating a new `Message`, you specify the prior
579
- * conversational turns with the `messages` parameter, and the model then generates
580
- * the next `Message` in the conversation. Consecutive `user` or `assistant` turns
581
- * in your request will be combined into a single turn.
582
- *
583
- * Each input message must be an object with a `role` and `content`. You can
584
- * specify a single `user`-role message, or you can include multiple `user` and
585
- * `assistant` messages.
586
- *
587
- * If the final message uses the `assistant` role, the response content will
588
- * continue immediately from the content in that message. This can be used to
589
- * constrain part of the model's response.
590
- *
591
- * Example with a single `user` message:
592
- *
593
- * ```json
594
- * [{ "role": "user", "content": "Hello, Claude" }]
595
- * ```
596
- *
597
- * Example with multiple conversational turns:
598
- *
599
- * ```json
600
- * [
601
- * { "role": "user", "content": "Hello there." },
602
- * { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
603
- * { "role": "user", "content": "Can you explain LLMs in plain English?" }
604
- * ]
605
- * ```
606
- *
607
- * Example with a partially-filled response from Claude:
608
- *
609
- * ```json
610
- * [
611
- * {
612
- * "role": "user",
613
- * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
614
- * },
615
- * { "role": "assistant", "content": "The best answer is (" }
616
- * ]
617
- * ```
618
- *
619
- * Each input message `content` may be either a single `string` or an array of
620
- * content blocks, where each block has a specific `type`. Using a `string` for
621
- * `content` is shorthand for an array of one content block of type `"text"`. The
622
- * following input messages are equivalent:
623
- *
624
- * ```json
625
- * { "role": "user", "content": "Hello, Claude" }
626
- * ```
627
- *
628
- * ```json
629
- * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
630
- * ```
631
- *
632
- * Starting with Claude 3 models, you can also send image content blocks:
633
- *
634
- * ```json
635
- * {
636
- * "role": "user",
637
- * "content": [
638
- * {
639
- * "type": "image",
640
- * "source": {
641
- * "type": "base64",
642
- * "media_type": "image/jpeg",
643
- * "data": "/9j/4AAQSkZJRg..."
644
- * }
645
- * },
646
- * { "type": "text", "text": "What is in this image?" }
647
- * ]
648
- * }
649
- * ```
650
- *
651
- * We currently support the `base64` source type for images, and the `image/jpeg`,
652
- * `image/png`, `image/gif`, and `image/webp` media types.
653
- *
654
- * See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for
655
- * more input examples.
656
- *
657
- * Note that if you want to include a
658
- * [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
659
- * the top-level `system` parameter — there is no `"system"` role for input
660
- * messages in the Messages API.
661
- */
662
- messages: Array<BetaMessageParam>;
663
- /**
664
- * Body param: The model that will complete your prompt.\n\nSee
665
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
666
- * details and options.
667
- */
668
- model: MessagesAPI.Model;
669
- /**
670
- * Body param: An object describing metadata about the request.
671
- */
672
- metadata?: BetaMetadata;
673
- /**
674
- * Body param: Custom text sequences that will cause the model to stop generating.
675
- *
676
- * Our models will normally stop when they have naturally completed their turn,
677
- * which will result in a response `stop_reason` of `"end_turn"`.
678
- *
679
- * If you want the model to stop generating when it encounters custom strings of
680
- * text, you can use the `stop_sequences` parameter. If the model encounters one of
681
- * the custom sequences, the response `stop_reason` value will be `"stop_sequence"`
682
- * and the response `stop_sequence` value will contain the matched stop sequence.
683
- */
684
- stop_sequences?: Array<string>;
685
- /**
686
- * Body param: Whether to incrementally stream the response using server-sent
687
- * events.
688
- *
689
- * See [streaming](https://docs.anthropic.com/en/api/messages-streaming) for
690
- * details.
691
- */
692
- stream?: boolean;
693
- /**
694
- * Body param: System prompt.
695
- *
696
- * A system prompt is a way of providing context and instructions to Claude, such
697
- * as specifying a particular goal or role. See our
698
- * [guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts).
699
- */
700
- system?: string | Array<BetaTextBlockParam>;
701
- /**
702
- * Body param: Amount of randomness injected into the response.
703
- *
704
- * Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`
705
- * for analytical / multiple choice, and closer to `1.0` for creative and
706
- * generative tasks.
707
- *
708
- * Note that even with `temperature` of `0.0`, the results will not be fully
709
- * deterministic.
710
- */
711
- temperature?: number;
712
- /**
713
- * Body param:
714
- */
715
- thinking?: BetaThinkingConfigEnabled | BetaThinkingConfigDisabled;
716
- /**
717
- * Body param: How the model should use the provided tools. The model can use a
718
- * specific tool, any available tool, or decide by itself.
719
- */
720
- tool_choice?: BetaToolChoice;
721
- /**
722
- * Body param: Definitions of tools that the model may use.
723
- *
724
- * If you include `tools` in your API request, the model may return `tool_use`
725
- * content blocks that represent the model's use of those tools. You can then run
726
- * those tools using the tool input generated by the model and then optionally
727
- * return results back to the model using `tool_result` content blocks.
728
- *
729
- * Each tool definition includes:
730
- *
731
- * - `name`: Name of the tool.
732
- * - `description`: Optional, but strongly-recommended description of the tool.
733
- * - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
734
- * tool `input` shape that the model will produce in `tool_use` output content
735
- * blocks.
736
- *
737
- * For example, if you defined `tools` as:
738
- *
739
- * ```json
740
- * [
741
- * {
742
- * "name": "get_stock_price",
743
- * "description": "Get the current stock price for a given ticker symbol.",
744
- * "input_schema": {
745
- * "type": "object",
746
- * "properties": {
747
- * "ticker": {
748
- * "type": "string",
749
- * "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
750
- * }
751
- * },
752
- * "required": ["ticker"]
753
- * }
754
- * }
755
- * ]
756
- * ```
757
- *
758
- * And then asked the model "What's the S&P 500 at today?", the model might produce
759
- * `tool_use` content blocks in the response like this:
760
- *
761
- * ```json
762
- * [
763
- * {
764
- * "type": "tool_use",
765
- * "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
766
- * "name": "get_stock_price",
767
- * "input": { "ticker": "^GSPC" }
768
- * }
769
- * ]
770
- * ```
771
- *
772
- * You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
773
- * input, and return the following back to the model in a subsequent `user`
774
- * message:
775
- *
776
- * ```json
777
- * [
778
- * {
779
- * "type": "tool_result",
780
- * "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
781
- * "content": "259.75 USD"
782
- * }
783
- * ]
784
- * ```
785
- *
786
- * Tools can be used for workflows that include running client-side tools and
787
- * functions, or more generally whenever you want the model to produce a particular
788
- * JSON structure of output.
789
- *
790
- * See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
791
- */
792
- tools?: Array<BetaToolUnion>;
793
- /**
794
- * Body param: Only sample from the top K options for each subsequent token.
795
- *
796
- * Used to remove "long tail" low probability responses.
797
- * [Learn more technical details here](https://towardsdatascience.com/how-to-sample-from-language-models-682bceb97277).
798
- *
799
- * Recommended for advanced use cases only. You usually only need to use
800
- * `temperature`.
801
- */
802
- top_k?: number;
803
- /**
804
- * Body param: Use nucleus sampling.
805
- *
806
- * In nucleus sampling, we compute the cumulative distribution over all the options
807
- * for each subsequent token in decreasing probability order and cut it off once it
808
- * reaches a particular probability specified by `top_p`. You should either alter
809
- * `temperature` or `top_p`, but not both.
810
- *
811
- * Recommended for advanced use cases only. You usually only need to use
812
- * `temperature`.
813
- */
814
- top_p?: number;
815
- /**
816
- * Header param: Optional header to specify the beta version(s) you want to use.
817
- */
818
- betas?: Array<BetaAPI.AnthropicBeta>;
819
- }
820
- export declare namespace MessageCreateParams {
821
- type MessageCreateParamsNonStreaming = MessagesMessagesAPI.MessageCreateParamsNonStreaming;
822
- type MessageCreateParamsStreaming = MessagesMessagesAPI.MessageCreateParamsStreaming;
823
- }
824
- export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase {
825
- /**
826
- * Body param: Whether to incrementally stream the response using server-sent
827
- * events.
828
- *
829
- * See [streaming](https://docs.anthropic.com/en/api/messages-streaming) for
830
- * details.
831
- */
832
- stream?: false;
833
- }
834
- export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
835
- /**
836
- * Body param: Whether to incrementally stream the response using server-sent
837
- * events.
838
- *
839
- * See [streaming](https://docs.anthropic.com/en/api/messages-streaming) for
840
- * details.
841
- */
842
- stream: true;
843
- }
844
- export interface MessageCountTokensParams {
845
- /**
846
- * Body param: Input messages.
847
- *
848
- * Our models are trained to operate on alternating `user` and `assistant`
849
- * conversational turns. When creating a new `Message`, you specify the prior
850
- * conversational turns with the `messages` parameter, and the model then generates
851
- * the next `Message` in the conversation. Consecutive `user` or `assistant` turns
852
- * in your request will be combined into a single turn.
853
- *
854
- * Each input message must be an object with a `role` and `content`. You can
855
- * specify a single `user`-role message, or you can include multiple `user` and
856
- * `assistant` messages.
857
- *
858
- * If the final message uses the `assistant` role, the response content will
859
- * continue immediately from the content in that message. This can be used to
860
- * constrain part of the model's response.
861
- *
862
- * Example with a single `user` message:
863
- *
864
- * ```json
865
- * [{ "role": "user", "content": "Hello, Claude" }]
866
- * ```
867
- *
868
- * Example with multiple conversational turns:
869
- *
870
- * ```json
871
- * [
872
- * { "role": "user", "content": "Hello there." },
873
- * { "role": "assistant", "content": "Hi, I'm Claude. How can I help you?" },
874
- * { "role": "user", "content": "Can you explain LLMs in plain English?" }
875
- * ]
876
- * ```
877
- *
878
- * Example with a partially-filled response from Claude:
879
- *
880
- * ```json
881
- * [
882
- * {
883
- * "role": "user",
884
- * "content": "What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun"
885
- * },
886
- * { "role": "assistant", "content": "The best answer is (" }
887
- * ]
888
- * ```
889
- *
890
- * Each input message `content` may be either a single `string` or an array of
891
- * content blocks, where each block has a specific `type`. Using a `string` for
892
- * `content` is shorthand for an array of one content block of type `"text"`. The
893
- * following input messages are equivalent:
894
- *
895
- * ```json
896
- * { "role": "user", "content": "Hello, Claude" }
897
- * ```
898
- *
899
- * ```json
900
- * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
901
- * ```
902
- *
903
- * Starting with Claude 3 models, you can also send image content blocks:
904
- *
905
- * ```json
906
- * {
907
- * "role": "user",
908
- * "content": [
909
- * {
910
- * "type": "image",
911
- * "source": {
912
- * "type": "base64",
913
- * "media_type": "image/jpeg",
914
- * "data": "/9j/4AAQSkZJRg..."
915
- * }
916
- * },
917
- * { "type": "text", "text": "What is in this image?" }
918
- * ]
919
- * }
920
- * ```
921
- *
922
- * We currently support the `base64` source type for images, and the `image/jpeg`,
923
- * `image/png`, `image/gif`, and `image/webp` media types.
924
- *
925
- * See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for
926
- * more input examples.
927
- *
928
- * Note that if you want to include a
929
- * [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use
930
- * the top-level `system` parameter — there is no `"system"` role for input
931
- * messages in the Messages API.
932
- */
933
- messages: Array<BetaMessageParam>;
934
- /**
935
- * Body param: The model that will complete your prompt.\n\nSee
936
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
937
- * details and options.
938
- */
939
- model: MessagesAPI.Model;
940
- /**
941
- * Body param: System prompt.
942
- *
943
- * A system prompt is a way of providing context and instructions to Claude, such
944
- * as specifying a particular goal or role. See our
945
- * [guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts).
946
- */
947
- system?: string | Array<BetaTextBlockParam>;
948
- /**
949
- * Body param:
950
- */
951
- thinking?: BetaThinkingConfigEnabled | BetaThinkingConfigDisabled;
952
- /**
953
- * Body param: How the model should use the provided tools. The model can use a
954
- * specific tool, any available tool, or decide by itself.
955
- */
956
- tool_choice?: BetaToolChoice;
957
- /**
958
- * Body param: Definitions of tools that the model may use.
959
- *
960
- * If you include `tools` in your API request, the model may return `tool_use`
961
- * content blocks that represent the model's use of those tools. You can then run
962
- * those tools using the tool input generated by the model and then optionally
963
- * return results back to the model using `tool_result` content blocks.
964
- *
965
- * Each tool definition includes:
966
- *
967
- * - `name`: Name of the tool.
968
- * - `description`: Optional, but strongly-recommended description of the tool.
969
- * - `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the
970
- * tool `input` shape that the model will produce in `tool_use` output content
971
- * blocks.
972
- *
973
- * For example, if you defined `tools` as:
974
- *
975
- * ```json
976
- * [
977
- * {
978
- * "name": "get_stock_price",
979
- * "description": "Get the current stock price for a given ticker symbol.",
980
- * "input_schema": {
981
- * "type": "object",
982
- * "properties": {
983
- * "ticker": {
984
- * "type": "string",
985
- * "description": "The stock ticker symbol, e.g. AAPL for Apple Inc."
986
- * }
987
- * },
988
- * "required": ["ticker"]
989
- * }
990
- * }
991
- * ]
992
- * ```
993
- *
994
- * And then asked the model "What's the S&P 500 at today?", the model might produce
995
- * `tool_use` content blocks in the response like this:
996
- *
997
- * ```json
998
- * [
999
- * {
1000
- * "type": "tool_use",
1001
- * "id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
1002
- * "name": "get_stock_price",
1003
- * "input": { "ticker": "^GSPC" }
1004
- * }
1005
- * ]
1006
- * ```
1007
- *
1008
- * You might then run your `get_stock_price` tool with `{"ticker": "^GSPC"}` as an
1009
- * input, and return the following back to the model in a subsequent `user`
1010
- * message:
1011
- *
1012
- * ```json
1013
- * [
1014
- * {
1015
- * "type": "tool_result",
1016
- * "tool_use_id": "toolu_01D7FLrfh4GYq7yT1ULFeyMV",
1017
- * "content": "259.75 USD"
1018
- * }
1019
- * ]
1020
- * ```
1021
- *
1022
- * Tools can be used for workflows that include running client-side tools and
1023
- * functions, or more generally whenever you want the model to produce a particular
1024
- * JSON structure of output.
1025
- *
1026
- * See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.
1027
- */
1028
- tools?: Array<BetaToolComputerUse20241022 | BetaToolBash20241022 | BetaToolTextEditor20241022 | BetaToolBash20250124 | BetaToolTextEditor20250124 | BetaTool>;
1029
- /**
1030
- * Header param: Optional header to specify the beta version(s) you want to use.
1031
- */
1032
- betas?: Array<BetaAPI.AnthropicBeta>;
1033
- }
1034
- export declare namespace Messages {
1035
- export { type BetaBase64PDFBlock as BetaBase64PDFBlock, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDeltaEvent as BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent as BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent as BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent as BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent as BetaRawMessageStartEvent, type BetaRawMessageStopEvent as BetaRawMessageStopEvent, type BetaRawMessageStreamEvent as BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock as BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam as BetaRedactedThinkingBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingDelta as BetaThinkingDelta, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaUsage as BetaUsage, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
1036
- export { Batches as Batches, type BetaDeletedMessageBatch as BetaDeletedMessageBatch, type BetaMessageBatch as BetaMessageBatch, type BetaMessageBatchCanceledResult as BetaMessageBatchCanceledResult, type BetaMessageBatchErroredResult as BetaMessageBatchErroredResult, type BetaMessageBatchExpiredResult as BetaMessageBatchExpiredResult, type BetaMessageBatchIndividualResponse as BetaMessageBatchIndividualResponse, type BetaMessageBatchRequestCounts as BetaMessageBatchRequestCounts, type BetaMessageBatchResult as BetaMessageBatchResult, type BetaMessageBatchSucceededResult as BetaMessageBatchSucceededResult, BetaMessageBatchesPage as BetaMessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, };
1037
- }
1038
- //# sourceMappingURL=messages.d.ts.map