@anthropic-ai/claude-code 0.2.9

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 (424) hide show
  1. package/LICENSE.md +3 -0
  2. package/README.md +55 -0
  3. package/cli.mjs +1398 -0
  4. package/package.json +31 -0
  5. package/vendor/ripgrep/COPYING +3 -0
  6. package/vendor/ripgrep/arm64-darwin/rg +0 -0
  7. package/vendor/ripgrep/arm64-linux/rg +0 -0
  8. package/vendor/ripgrep/x64-darwin/rg +0 -0
  9. package/vendor/ripgrep/x64-linux/rg +0 -0
  10. package/vendor/ripgrep/x64-win32/rg.exe +0 -0
  11. package/vendor/sdk/CHANGELOG.md +1421 -0
  12. package/vendor/sdk/LICENSE +8 -0
  13. package/vendor/sdk/README.md +536 -0
  14. package/vendor/sdk/_shims/MultipartBody.d.ts +9 -0
  15. package/vendor/sdk/_shims/MultipartBody.d.ts.map +1 -0
  16. package/vendor/sdk/_shims/MultipartBody.js +16 -0
  17. package/vendor/sdk/_shims/MultipartBody.js.map +1 -0
  18. package/vendor/sdk/_shims/MultipartBody.mjs +12 -0
  19. package/vendor/sdk/_shims/MultipartBody.mjs.map +1 -0
  20. package/vendor/sdk/_shims/README.md +46 -0
  21. package/vendor/sdk/_shims/auto/runtime-bun.d.ts +5 -0
  22. package/vendor/sdk/_shims/auto/runtime-bun.d.ts.map +1 -0
  23. package/vendor/sdk/_shims/auto/runtime-bun.js +21 -0
  24. package/vendor/sdk/_shims/auto/runtime-bun.js.map +1 -0
  25. package/vendor/sdk/_shims/auto/runtime-bun.mjs +2 -0
  26. package/vendor/sdk/_shims/auto/runtime-bun.mjs.map +1 -0
  27. package/vendor/sdk/_shims/auto/runtime-node.d.ts +5 -0
  28. package/vendor/sdk/_shims/auto/runtime-node.d.ts.map +1 -0
  29. package/vendor/sdk/_shims/auto/runtime-node.js +21 -0
  30. package/vendor/sdk/_shims/auto/runtime-node.js.map +1 -0
  31. package/vendor/sdk/_shims/auto/runtime-node.mjs +2 -0
  32. package/vendor/sdk/_shims/auto/runtime-node.mjs.map +1 -0
  33. package/vendor/sdk/_shims/auto/runtime.d.ts +5 -0
  34. package/vendor/sdk/_shims/auto/runtime.d.ts.map +1 -0
  35. package/vendor/sdk/_shims/auto/runtime.js +21 -0
  36. package/vendor/sdk/_shims/auto/runtime.js.map +1 -0
  37. package/vendor/sdk/_shims/auto/runtime.mjs +2 -0
  38. package/vendor/sdk/_shims/auto/runtime.mjs.map +1 -0
  39. package/vendor/sdk/_shims/auto/types-node.d.ts +5 -0
  40. package/vendor/sdk/_shims/auto/types-node.d.ts.map +1 -0
  41. package/vendor/sdk/_shims/auto/types-node.js +21 -0
  42. package/vendor/sdk/_shims/auto/types-node.js.map +1 -0
  43. package/vendor/sdk/_shims/auto/types-node.mjs +2 -0
  44. package/vendor/sdk/_shims/auto/types-node.mjs.map +1 -0
  45. package/vendor/sdk/_shims/auto/types.d.ts +101 -0
  46. package/vendor/sdk/_shims/auto/types.js +3 -0
  47. package/vendor/sdk/_shims/auto/types.mjs +3 -0
  48. package/vendor/sdk/_shims/bun-runtime.d.ts +6 -0
  49. package/vendor/sdk/_shims/bun-runtime.d.ts.map +1 -0
  50. package/vendor/sdk/_shims/bun-runtime.js +14 -0
  51. package/vendor/sdk/_shims/bun-runtime.js.map +1 -0
  52. package/vendor/sdk/_shims/bun-runtime.mjs +10 -0
  53. package/vendor/sdk/_shims/bun-runtime.mjs.map +1 -0
  54. package/vendor/sdk/_shims/index.d.ts +81 -0
  55. package/vendor/sdk/_shims/index.js +13 -0
  56. package/vendor/sdk/_shims/index.mjs +7 -0
  57. package/vendor/sdk/_shims/manual-types.d.ts +12 -0
  58. package/vendor/sdk/_shims/manual-types.js +3 -0
  59. package/vendor/sdk/_shims/manual-types.mjs +3 -0
  60. package/vendor/sdk/_shims/node-runtime.d.ts +3 -0
  61. package/vendor/sdk/_shims/node-runtime.d.ts.map +1 -0
  62. package/vendor/sdk/_shims/node-runtime.js +89 -0
  63. package/vendor/sdk/_shims/node-runtime.js.map +1 -0
  64. package/vendor/sdk/_shims/node-runtime.mjs +56 -0
  65. package/vendor/sdk/_shims/node-runtime.mjs.map +1 -0
  66. package/vendor/sdk/_shims/node-types.d.ts +42 -0
  67. package/vendor/sdk/_shims/node-types.js +3 -0
  68. package/vendor/sdk/_shims/node-types.mjs +3 -0
  69. package/vendor/sdk/_shims/registry.d.ts +37 -0
  70. package/vendor/sdk/_shims/registry.d.ts.map +1 -0
  71. package/vendor/sdk/_shims/registry.js +41 -0
  72. package/vendor/sdk/_shims/registry.js.map +1 -0
  73. package/vendor/sdk/_shims/registry.mjs +37 -0
  74. package/vendor/sdk/_shims/registry.mjs.map +1 -0
  75. package/vendor/sdk/_shims/web-runtime.d.ts +5 -0
  76. package/vendor/sdk/_shims/web-runtime.d.ts.map +1 -0
  77. package/vendor/sdk/_shims/web-runtime.js +78 -0
  78. package/vendor/sdk/_shims/web-runtime.js.map +1 -0
  79. package/vendor/sdk/_shims/web-runtime.mjs +71 -0
  80. package/vendor/sdk/_shims/web-runtime.mjs.map +1 -0
  81. package/vendor/sdk/_shims/web-types.d.ts +83 -0
  82. package/vendor/sdk/_shims/web-types.js +3 -0
  83. package/vendor/sdk/_shims/web-types.mjs +3 -0
  84. package/vendor/sdk/_vendor/partial-json-parser/parser.d.ts +3 -0
  85. package/vendor/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -0
  86. package/vendor/sdk/_vendor/partial-json-parser/parser.js +226 -0
  87. package/vendor/sdk/_vendor/partial-json-parser/parser.js.map +1 -0
  88. package/vendor/sdk/_vendor/partial-json-parser/parser.mjs +223 -0
  89. package/vendor/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -0
  90. package/vendor/sdk/core.d.ts +248 -0
  91. package/vendor/sdk/core.d.ts.map +1 -0
  92. package/vendor/sdk/core.js +935 -0
  93. package/vendor/sdk/core.js.map +1 -0
  94. package/vendor/sdk/core.mjs +903 -0
  95. package/vendor/sdk/core.mjs.map +1 -0
  96. package/vendor/sdk/error.d.ts +48 -0
  97. package/vendor/sdk/error.d.ts.map +1 -0
  98. package/vendor/sdk/error.js +114 -0
  99. package/vendor/sdk/error.js.map +1 -0
  100. package/vendor/sdk/error.mjs +98 -0
  101. package/vendor/sdk/error.mjs.map +1 -0
  102. package/vendor/sdk/index.d.mts +152 -0
  103. package/vendor/sdk/index.d.ts +152 -0
  104. package/vendor/sdk/index.d.ts.map +1 -0
  105. package/vendor/sdk/index.js +179 -0
  106. package/vendor/sdk/index.js.map +1 -0
  107. package/vendor/sdk/index.mjs +136 -0
  108. package/vendor/sdk/index.mjs.map +1 -0
  109. package/vendor/sdk/internal/decoders/jsonl.d.ts +12 -0
  110. package/vendor/sdk/internal/decoders/jsonl.d.ts.map +1 -0
  111. package/vendor/sdk/internal/decoders/jsonl.js +35 -0
  112. package/vendor/sdk/internal/decoders/jsonl.js.map +1 -0
  113. package/vendor/sdk/internal/decoders/jsonl.mjs +31 -0
  114. package/vendor/sdk/internal/decoders/jsonl.mjs.map +1 -0
  115. package/vendor/sdk/internal/decoders/line.d.ts +20 -0
  116. package/vendor/sdk/internal/decoders/line.d.ts.map +1 -0
  117. package/vendor/sdk/internal/decoders/line.js +123 -0
  118. package/vendor/sdk/internal/decoders/line.js.map +1 -0
  119. package/vendor/sdk/internal/decoders/line.mjs +119 -0
  120. package/vendor/sdk/internal/decoders/line.mjs.map +1 -0
  121. package/vendor/sdk/internal/stream-utils.d.ts +8 -0
  122. package/vendor/sdk/internal/stream-utils.d.ts.map +1 -0
  123. package/vendor/sdk/internal/stream-utils.js +39 -0
  124. package/vendor/sdk/internal/stream-utils.js.map +1 -0
  125. package/vendor/sdk/internal/stream-utils.mjs +35 -0
  126. package/vendor/sdk/internal/stream-utils.mjs.map +1 -0
  127. package/vendor/sdk/lib/BetaMessageStream.d.ts +114 -0
  128. package/vendor/sdk/lib/BetaMessageStream.d.ts.map +1 -0
  129. package/vendor/sdk/lib/BetaMessageStream.js +547 -0
  130. package/vendor/sdk/lib/BetaMessageStream.js.map +1 -0
  131. package/vendor/sdk/lib/BetaMessageStream.mjs +543 -0
  132. package/vendor/sdk/lib/BetaMessageStream.mjs.map +1 -0
  133. package/vendor/sdk/lib/MessageStream.d.ts +114 -0
  134. package/vendor/sdk/lib/MessageStream.d.ts.map +1 -0
  135. package/vendor/sdk/lib/MessageStream.js +547 -0
  136. package/vendor/sdk/lib/MessageStream.js.map +1 -0
  137. package/vendor/sdk/lib/MessageStream.mjs +543 -0
  138. package/vendor/sdk/lib/MessageStream.mjs.map +1 -0
  139. package/vendor/sdk/node_modules/@types/node/LICENSE +21 -0
  140. package/vendor/sdk/node_modules/@types/node/README.md +15 -0
  141. package/vendor/sdk/node_modules/@types/node/assert/strict.d.ts +8 -0
  142. package/vendor/sdk/node_modules/@types/node/assert.d.ts +985 -0
  143. package/vendor/sdk/node_modules/@types/node/async_hooks.d.ts +522 -0
  144. package/vendor/sdk/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  145. package/vendor/sdk/node_modules/@types/node/buffer.d.ts +1903 -0
  146. package/vendor/sdk/node_modules/@types/node/child_process.d.ts +1549 -0
  147. package/vendor/sdk/node_modules/@types/node/cluster.d.ts +578 -0
  148. package/vendor/sdk/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  149. package/vendor/sdk/node_modules/@types/node/compatibility/index.d.ts +9 -0
  150. package/vendor/sdk/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  151. package/vendor/sdk/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  152. package/vendor/sdk/node_modules/@types/node/console.d.ts +452 -0
  153. package/vendor/sdk/node_modules/@types/node/constants.d.ts +19 -0
  154. package/vendor/sdk/node_modules/@types/node/crypto.d.ts +4453 -0
  155. package/vendor/sdk/node_modules/@types/node/dgram.d.ts +596 -0
  156. package/vendor/sdk/node_modules/@types/node/diagnostics_channel.d.ts +546 -0
  157. package/vendor/sdk/node_modules/@types/node/dns/promises.d.ts +475 -0
  158. package/vendor/sdk/node_modules/@types/node/dns.d.ts +853 -0
  159. package/vendor/sdk/node_modules/@types/node/dom-events.d.ts +124 -0
  160. package/vendor/sdk/node_modules/@types/node/domain.d.ts +170 -0
  161. package/vendor/sdk/node_modules/@types/node/events.d.ts +819 -0
  162. package/vendor/sdk/node_modules/@types/node/fs/promises.d.ts +1205 -0
  163. package/vendor/sdk/node_modules/@types/node/fs.d.ts +4237 -0
  164. package/vendor/sdk/node_modules/@types/node/globals.d.ts +442 -0
  165. package/vendor/sdk/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  166. package/vendor/sdk/node_modules/@types/node/http.d.ts +1839 -0
  167. package/vendor/sdk/node_modules/@types/node/http2.d.ts +2517 -0
  168. package/vendor/sdk/node_modules/@types/node/https.d.ts +544 -0
  169. package/vendor/sdk/node_modules/@types/node/index.d.ts +90 -0
  170. package/vendor/sdk/node_modules/@types/node/inspector.d.ts +2775 -0
  171. package/vendor/sdk/node_modules/@types/node/module.d.ts +291 -0
  172. package/vendor/sdk/node_modules/@types/node/net.d.ts +924 -0
  173. package/vendor/sdk/node_modules/@types/node/os.d.ts +473 -0
  174. package/vendor/sdk/node_modules/@types/node/package.json +225 -0
  175. package/vendor/sdk/node_modules/@types/node/path.d.ts +191 -0
  176. package/vendor/sdk/node_modules/@types/node/perf_hooks.d.ts +753 -0
  177. package/vendor/sdk/node_modules/@types/node/process.d.ts +1553 -0
  178. package/vendor/sdk/node_modules/@types/node/punycode.d.ts +117 -0
  179. package/vendor/sdk/node_modules/@types/node/querystring.d.ts +141 -0
  180. package/vendor/sdk/node_modules/@types/node/readline/promises.d.ts +154 -0
  181. package/vendor/sdk/node_modules/@types/node/readline.d.ts +715 -0
  182. package/vendor/sdk/node_modules/@types/node/repl.d.ts +430 -0
  183. package/vendor/sdk/node_modules/@types/node/stream/consumers.d.ts +12 -0
  184. package/vendor/sdk/node_modules/@types/node/stream/promises.d.ts +90 -0
  185. package/vendor/sdk/node_modules/@types/node/stream/web.d.ts +523 -0
  186. package/vendor/sdk/node_modules/@types/node/stream.d.ts +1731 -0
  187. package/vendor/sdk/node_modules/@types/node/string_decoder.d.ts +67 -0
  188. package/vendor/sdk/node_modules/@types/node/test.d.ts +1245 -0
  189. package/vendor/sdk/node_modules/@types/node/timers/promises.d.ts +93 -0
  190. package/vendor/sdk/node_modules/@types/node/timers.d.ts +126 -0
  191. package/vendor/sdk/node_modules/@types/node/tls.d.ts +1203 -0
  192. package/vendor/sdk/node_modules/@types/node/trace_events.d.ts +171 -0
  193. package/vendor/sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  194. package/vendor/sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  195. package/vendor/sdk/node_modules/@types/node/ts5.6/index.d.ts +90 -0
  196. package/vendor/sdk/node_modules/@types/node/tty.d.ts +206 -0
  197. package/vendor/sdk/node_modules/@types/node/url.d.ts +957 -0
  198. package/vendor/sdk/node_modules/@types/node/util.d.ts +2083 -0
  199. package/vendor/sdk/node_modules/@types/node/v8.d.ts +753 -0
  200. package/vendor/sdk/node_modules/@types/node/vm.d.ts +666 -0
  201. package/vendor/sdk/node_modules/@types/node/wasi.d.ts +160 -0
  202. package/vendor/sdk/node_modules/@types/node/worker_threads.d.ts +695 -0
  203. package/vendor/sdk/node_modules/@types/node/zlib.d.ts +517 -0
  204. package/vendor/sdk/node_modules/undici-types/README.md +6 -0
  205. package/vendor/sdk/node_modules/undici-types/agent.d.ts +31 -0
  206. package/vendor/sdk/node_modules/undici-types/api.d.ts +43 -0
  207. package/vendor/sdk/node_modules/undici-types/balanced-pool.d.ts +18 -0
  208. package/vendor/sdk/node_modules/undici-types/cache.d.ts +36 -0
  209. package/vendor/sdk/node_modules/undici-types/client.d.ts +97 -0
  210. package/vendor/sdk/node_modules/undici-types/connector.d.ts +34 -0
  211. package/vendor/sdk/node_modules/undici-types/content-type.d.ts +21 -0
  212. package/vendor/sdk/node_modules/undici-types/cookies.d.ts +28 -0
  213. package/vendor/sdk/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
  214. package/vendor/sdk/node_modules/undici-types/dispatcher.d.ts +241 -0
  215. package/vendor/sdk/node_modules/undici-types/errors.d.ts +128 -0
  216. package/vendor/sdk/node_modules/undici-types/fetch.d.ts +209 -0
  217. package/vendor/sdk/node_modules/undici-types/file.d.ts +39 -0
  218. package/vendor/sdk/node_modules/undici-types/filereader.d.ts +54 -0
  219. package/vendor/sdk/node_modules/undici-types/formdata.d.ts +108 -0
  220. package/vendor/sdk/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  221. package/vendor/sdk/node_modules/undici-types/global-origin.d.ts +7 -0
  222. package/vendor/sdk/node_modules/undici-types/handlers.d.ts +9 -0
  223. package/vendor/sdk/node_modules/undici-types/header.d.ts +4 -0
  224. package/vendor/sdk/node_modules/undici-types/index.d.ts +63 -0
  225. package/vendor/sdk/node_modules/undici-types/interceptors.d.ts +5 -0
  226. package/vendor/sdk/node_modules/undici-types/mock-agent.d.ts +50 -0
  227. package/vendor/sdk/node_modules/undici-types/mock-client.d.ts +25 -0
  228. package/vendor/sdk/node_modules/undici-types/mock-errors.d.ts +12 -0
  229. package/vendor/sdk/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  230. package/vendor/sdk/node_modules/undici-types/mock-pool.d.ts +25 -0
  231. package/vendor/sdk/node_modules/undici-types/package.json +55 -0
  232. package/vendor/sdk/node_modules/undici-types/patch.d.ts +71 -0
  233. package/vendor/sdk/node_modules/undici-types/pool-stats.d.ts +19 -0
  234. package/vendor/sdk/node_modules/undici-types/pool.d.ts +28 -0
  235. package/vendor/sdk/node_modules/undici-types/proxy-agent.d.ts +30 -0
  236. package/vendor/sdk/node_modules/undici-types/readable.d.ts +61 -0
  237. package/vendor/sdk/node_modules/undici-types/webidl.d.ts +220 -0
  238. package/vendor/sdk/node_modules/undici-types/websocket.d.ts +131 -0
  239. package/vendor/sdk/package.json +124 -0
  240. package/vendor/sdk/pagination.d.ts +27 -0
  241. package/vendor/sdk/pagination.d.ts.map +1 -0
  242. package/vendor/sdk/pagination.js +60 -0
  243. package/vendor/sdk/pagination.js.map +1 -0
  244. package/vendor/sdk/pagination.mjs +56 -0
  245. package/vendor/sdk/pagination.mjs.map +1 -0
  246. package/vendor/sdk/resource.d.ts +6 -0
  247. package/vendor/sdk/resource.d.ts.map +1 -0
  248. package/vendor/sdk/resource.js +11 -0
  249. package/vendor/sdk/resource.js.map +1 -0
  250. package/vendor/sdk/resource.mjs +7 -0
  251. package/vendor/sdk/resource.mjs.map +1 -0
  252. package/vendor/sdk/resources/beta/beta.d.ts +57 -0
  253. package/vendor/sdk/resources/beta/beta.d.ts.map +1 -0
  254. package/vendor/sdk/resources/beta/beta.js +44 -0
  255. package/vendor/sdk/resources/beta/beta.js.map +1 -0
  256. package/vendor/sdk/resources/beta/beta.mjs +17 -0
  257. package/vendor/sdk/resources/beta/beta.mjs.map +1 -0
  258. package/vendor/sdk/resources/beta/index.d.ts +4 -0
  259. package/vendor/sdk/resources/beta/index.d.ts.map +1 -0
  260. package/vendor/sdk/resources/beta/index.js +12 -0
  261. package/vendor/sdk/resources/beta/index.js.map +1 -0
  262. package/vendor/sdk/resources/beta/index.mjs +5 -0
  263. package/vendor/sdk/resources/beta/index.mjs.map +1 -0
  264. package/vendor/sdk/resources/beta/messages/batches.d.ts +289 -0
  265. package/vendor/sdk/resources/beta/messages/batches.d.ts.map +1 -0
  266. package/vendor/sdk/resources/beta/messages/batches.js +112 -0
  267. package/vendor/sdk/resources/beta/messages/batches.js.map +1 -0
  268. package/vendor/sdk/resources/beta/messages/batches.mjs +107 -0
  269. package/vendor/sdk/resources/beta/messages/batches.mjs.map +1 -0
  270. package/vendor/sdk/resources/beta/messages/index.d.ts +3 -0
  271. package/vendor/sdk/resources/beta/messages/index.d.ts.map +1 -0
  272. package/vendor/sdk/resources/beta/messages/index.js +10 -0
  273. package/vendor/sdk/resources/beta/messages/index.js.map +1 -0
  274. package/vendor/sdk/resources/beta/messages/index.mjs +4 -0
  275. package/vendor/sdk/resources/beta/messages/index.mjs.map +1 -0
  276. package/vendor/sdk/resources/beta/messages/messages.d.ts +1038 -0
  277. package/vendor/sdk/resources/beta/messages/messages.d.ts.map +1 -0
  278. package/vendor/sdk/resources/beta/messages/messages.js +93 -0
  279. package/vendor/sdk/resources/beta/messages/messages.js.map +1 -0
  280. package/vendor/sdk/resources/beta/messages/messages.mjs +66 -0
  281. package/vendor/sdk/resources/beta/messages/messages.mjs.map +1 -0
  282. package/vendor/sdk/resources/beta/models.d.ts +49 -0
  283. package/vendor/sdk/resources/beta/models.d.ts.map +1 -0
  284. package/vendor/sdk/resources/beta/models.js +30 -0
  285. package/vendor/sdk/resources/beta/models.js.map +1 -0
  286. package/vendor/sdk/resources/beta/models.mjs +25 -0
  287. package/vendor/sdk/resources/beta/models.mjs.map +1 -0
  288. package/vendor/sdk/resources/completions.d.ts +166 -0
  289. package/vendor/sdk/resources/completions.d.ts.map +1 -0
  290. package/vendor/sdk/resources/completions.js +17 -0
  291. package/vendor/sdk/resources/completions.js.map +1 -0
  292. package/vendor/sdk/resources/completions.mjs +13 -0
  293. package/vendor/sdk/resources/completions.mjs.map +1 -0
  294. package/vendor/sdk/resources/index.d.ts +6 -0
  295. package/vendor/sdk/resources/index.d.ts.map +1 -0
  296. package/vendor/sdk/resources/index.js +29 -0
  297. package/vendor/sdk/resources/index.js.map +1 -0
  298. package/vendor/sdk/resources/index.mjs +7 -0
  299. package/vendor/sdk/resources/index.mjs.map +1 -0
  300. package/vendor/sdk/resources/messages/batches.d.ts +253 -0
  301. package/vendor/sdk/resources/messages/batches.d.ts.map +1 -0
  302. package/vendor/sdk/resources/messages/batches.js +102 -0
  303. package/vendor/sdk/resources/messages/batches.js.map +1 -0
  304. package/vendor/sdk/resources/messages/batches.mjs +97 -0
  305. package/vendor/sdk/resources/messages/batches.mjs.map +1 -0
  306. package/vendor/sdk/resources/messages/index.d.ts +3 -0
  307. package/vendor/sdk/resources/messages/index.d.ts.map +1 -0
  308. package/vendor/sdk/resources/messages/index.js +10 -0
  309. package/vendor/sdk/resources/messages/index.js.map +1 -0
  310. package/vendor/sdk/resources/messages/index.mjs +4 -0
  311. package/vendor/sdk/resources/messages/index.mjs.map +1 -0
  312. package/vendor/sdk/resources/messages/messages.d.ts +1028 -0
  313. package/vendor/sdk/resources/messages/messages.d.ts.map +1 -0
  314. package/vendor/sdk/resources/messages/messages.js +82 -0
  315. package/vendor/sdk/resources/messages/messages.js.map +1 -0
  316. package/vendor/sdk/resources/messages/messages.mjs +54 -0
  317. package/vendor/sdk/resources/messages/messages.mjs.map +1 -0
  318. package/vendor/sdk/resources/models.d.ts +49 -0
  319. package/vendor/sdk/resources/models.d.ts.map +1 -0
  320. package/vendor/sdk/resources/models.js +30 -0
  321. package/vendor/sdk/resources/models.js.map +1 -0
  322. package/vendor/sdk/resources/models.mjs +25 -0
  323. package/vendor/sdk/resources/models.mjs.map +1 -0
  324. package/vendor/sdk/resources/shared.d.ts +42 -0
  325. package/vendor/sdk/resources/shared.d.ts.map +1 -0
  326. package/vendor/sdk/resources/shared.js +4 -0
  327. package/vendor/sdk/resources/shared.js.map +1 -0
  328. package/vendor/sdk/resources/shared.mjs +3 -0
  329. package/vendor/sdk/resources/shared.mjs.map +1 -0
  330. package/vendor/sdk/resources/top-level.d.ts +2 -0
  331. package/vendor/sdk/resources/top-level.d.ts.map +1 -0
  332. package/vendor/sdk/resources/top-level.js +4 -0
  333. package/vendor/sdk/resources/top-level.js.map +1 -0
  334. package/vendor/sdk/resources/top-level.mjs +3 -0
  335. package/vendor/sdk/resources/top-level.mjs.map +1 -0
  336. package/vendor/sdk/shims/node.d.ts +30 -0
  337. package/vendor/sdk/shims/node.d.ts.map +1 -0
  338. package/vendor/sdk/shims/node.js +31 -0
  339. package/vendor/sdk/shims/node.js.map +1 -0
  340. package/vendor/sdk/shims/node.mjs +5 -0
  341. package/vendor/sdk/shims/node.mjs.map +1 -0
  342. package/vendor/sdk/shims/web.d.ts +26 -0
  343. package/vendor/sdk/shims/web.d.ts.map +1 -0
  344. package/vendor/sdk/shims/web.js +31 -0
  345. package/vendor/sdk/shims/web.js.map +1 -0
  346. package/vendor/sdk/shims/web.mjs +5 -0
  347. package/vendor/sdk/shims/web.mjs.map +1 -0
  348. package/vendor/sdk/src/_shims/MultipartBody.ts +9 -0
  349. package/vendor/sdk/src/_shims/README.md +46 -0
  350. package/vendor/sdk/src/_shims/auto/runtime-bun.ts +4 -0
  351. package/vendor/sdk/src/_shims/auto/runtime-node.ts +4 -0
  352. package/vendor/sdk/src/_shims/auto/runtime.ts +4 -0
  353. package/vendor/sdk/src/_shims/auto/types-node.ts +4 -0
  354. package/vendor/sdk/src/_shims/auto/types.d.ts +101 -0
  355. package/vendor/sdk/src/_shims/auto/types.js +3 -0
  356. package/vendor/sdk/src/_shims/auto/types.mjs +3 -0
  357. package/vendor/sdk/src/_shims/bun-runtime.ts +14 -0
  358. package/vendor/sdk/src/_shims/index.d.ts +81 -0
  359. package/vendor/sdk/src/_shims/index.js +13 -0
  360. package/vendor/sdk/src/_shims/index.mjs +7 -0
  361. package/vendor/sdk/src/_shims/manual-types.d.ts +12 -0
  362. package/vendor/sdk/src/_shims/manual-types.js +3 -0
  363. package/vendor/sdk/src/_shims/manual-types.mjs +3 -0
  364. package/vendor/sdk/src/_shims/node-runtime.ts +81 -0
  365. package/vendor/sdk/src/_shims/node-types.d.ts +42 -0
  366. package/vendor/sdk/src/_shims/node-types.js +3 -0
  367. package/vendor/sdk/src/_shims/node-types.mjs +3 -0
  368. package/vendor/sdk/src/_shims/registry.ts +67 -0
  369. package/vendor/sdk/src/_shims/web-runtime.ts +103 -0
  370. package/vendor/sdk/src/_shims/web-types.d.ts +83 -0
  371. package/vendor/sdk/src/_shims/web-types.js +3 -0
  372. package/vendor/sdk/src/_shims/web-types.mjs +3 -0
  373. package/vendor/sdk/src/_vendor/partial-json-parser/README.md +3 -0
  374. package/vendor/sdk/src/_vendor/partial-json-parser/parser.ts +264 -0
  375. package/vendor/sdk/src/core.ts +1250 -0
  376. package/vendor/sdk/src/error.ts +133 -0
  377. package/vendor/sdk/src/index.ts +465 -0
  378. package/vendor/sdk/src/internal/decoders/jsonl.ts +41 -0
  379. package/vendor/sdk/src/internal/decoders/line.ts +145 -0
  380. package/vendor/sdk/src/internal/stream-utils.ts +32 -0
  381. package/vendor/sdk/src/lib/.keep +4 -0
  382. package/vendor/sdk/src/lib/BetaMessageStream.ts +661 -0
  383. package/vendor/sdk/src/lib/MessageStream.ts +662 -0
  384. package/vendor/sdk/src/pagination.ts +92 -0
  385. package/vendor/sdk/src/resource.ts +11 -0
  386. package/vendor/sdk/src/resources/beta/beta.ts +249 -0
  387. package/vendor/sdk/src/resources/beta/index.ts +83 -0
  388. package/vendor/sdk/src/resources/beta/messages/batches.ts +486 -0
  389. package/vendor/sdk/src/resources/beta/messages/index.ts +87 -0
  390. package/vendor/sdk/src/resources/beta/messages/messages.ts +1444 -0
  391. package/vendor/sdk/src/resources/beta/models.ts +78 -0
  392. package/vendor/sdk/src/resources/completions.ts +210 -0
  393. package/vendor/sdk/src/resources/index.ts +95 -0
  394. package/vendor/sdk/src/resources/messages/batches.ts +352 -0
  395. package/vendor/sdk/src/resources/messages/index.ts +85 -0
  396. package/vendor/sdk/src/resources/messages/messages.ts +1412 -0
  397. package/vendor/sdk/src/resources/models.ts +75 -0
  398. package/vendor/sdk/src/resources/shared.ts +72 -0
  399. package/vendor/sdk/src/resources/top-level.ts +3 -0
  400. package/vendor/sdk/src/shims/node.ts +50 -0
  401. package/vendor/sdk/src/shims/web.ts +50 -0
  402. package/vendor/sdk/src/streaming.ts +372 -0
  403. package/vendor/sdk/src/tsconfig.json +11 -0
  404. package/vendor/sdk/src/uploads.ts +255 -0
  405. package/vendor/sdk/src/version.ts +1 -0
  406. package/vendor/sdk/streaming.d.ts +36 -0
  407. package/vendor/sdk/streaming.d.ts.map +1 -0
  408. package/vendor/sdk/streaming.js +316 -0
  409. package/vendor/sdk/streaming.js.map +1 -0
  410. package/vendor/sdk/streaming.mjs +310 -0
  411. package/vendor/sdk/streaming.mjs.map +1 -0
  412. package/vendor/sdk/uploads.d.ts +75 -0
  413. package/vendor/sdk/uploads.d.ts.map +1 -0
  414. package/vendor/sdk/uploads.js +171 -0
  415. package/vendor/sdk/uploads.js.map +1 -0
  416. package/vendor/sdk/uploads.mjs +158 -0
  417. package/vendor/sdk/uploads.mjs.map +1 -0
  418. package/vendor/sdk/version.d.ts +2 -0
  419. package/vendor/sdk/version.d.ts.map +1 -0
  420. package/vendor/sdk/version.js +5 -0
  421. package/vendor/sdk/version.js.map +1 -0
  422. package/vendor/sdk/version.mjs +2 -0
  423. package/vendor/sdk/version.mjs.map +1 -0
  424. package/yoga.wasm +0 -0
@@ -0,0 +1,223 @@
1
+ const tokenize = (input) => {
2
+ let current = 0;
3
+ let tokens = [];
4
+ while (current < input.length) {
5
+ let char = input[current];
6
+ if (char === '\\') {
7
+ current++;
8
+ continue;
9
+ }
10
+ if (char === '{') {
11
+ tokens.push({
12
+ type: 'brace',
13
+ value: '{',
14
+ });
15
+ current++;
16
+ continue;
17
+ }
18
+ if (char === '}') {
19
+ tokens.push({
20
+ type: 'brace',
21
+ value: '}',
22
+ });
23
+ current++;
24
+ continue;
25
+ }
26
+ if (char === '[') {
27
+ tokens.push({
28
+ type: 'paren',
29
+ value: '[',
30
+ });
31
+ current++;
32
+ continue;
33
+ }
34
+ if (char === ']') {
35
+ tokens.push({
36
+ type: 'paren',
37
+ value: ']',
38
+ });
39
+ current++;
40
+ continue;
41
+ }
42
+ if (char === ':') {
43
+ tokens.push({
44
+ type: 'separator',
45
+ value: ':',
46
+ });
47
+ current++;
48
+ continue;
49
+ }
50
+ if (char === ',') {
51
+ tokens.push({
52
+ type: 'delimiter',
53
+ value: ',',
54
+ });
55
+ current++;
56
+ continue;
57
+ }
58
+ if (char === '"') {
59
+ let value = '';
60
+ let danglingQuote = false;
61
+ char = input[++current];
62
+ while (char !== '"') {
63
+ if (current === input.length) {
64
+ danglingQuote = true;
65
+ break;
66
+ }
67
+ if (char === '\\') {
68
+ current++;
69
+ if (current === input.length) {
70
+ danglingQuote = true;
71
+ break;
72
+ }
73
+ value += char + input[current];
74
+ char = input[++current];
75
+ }
76
+ else {
77
+ value += char;
78
+ char = input[++current];
79
+ }
80
+ }
81
+ char = input[++current];
82
+ if (!danglingQuote) {
83
+ tokens.push({
84
+ type: 'string',
85
+ value,
86
+ });
87
+ }
88
+ continue;
89
+ }
90
+ let WHITESPACE = /\s/;
91
+ if (char && WHITESPACE.test(char)) {
92
+ current++;
93
+ continue;
94
+ }
95
+ let NUMBERS = /[0-9]/;
96
+ if ((char && NUMBERS.test(char)) || char === '-' || char === '.') {
97
+ let value = '';
98
+ if (char === '-') {
99
+ value += char;
100
+ char = input[++current];
101
+ }
102
+ while ((char && NUMBERS.test(char)) || char === '.') {
103
+ value += char;
104
+ char = input[++current];
105
+ }
106
+ tokens.push({
107
+ type: 'number',
108
+ value,
109
+ });
110
+ continue;
111
+ }
112
+ let LETTERS = /[a-z]/i;
113
+ if (char && LETTERS.test(char)) {
114
+ let value = '';
115
+ while (char && LETTERS.test(char)) {
116
+ if (current === input.length) {
117
+ break;
118
+ }
119
+ value += char;
120
+ char = input[++current];
121
+ }
122
+ if (value == 'true' || value == 'false' || value === 'null') {
123
+ tokens.push({
124
+ type: 'name',
125
+ value,
126
+ });
127
+ }
128
+ else {
129
+ // unknown token, e.g. `nul` which isn't quite `null`
130
+ current++;
131
+ continue;
132
+ }
133
+ continue;
134
+ }
135
+ current++;
136
+ }
137
+ return tokens;
138
+ }, strip = (tokens) => {
139
+ if (tokens.length === 0) {
140
+ return tokens;
141
+ }
142
+ let lastToken = tokens[tokens.length - 1];
143
+ switch (lastToken.type) {
144
+ case 'separator':
145
+ tokens = tokens.slice(0, tokens.length - 1);
146
+ return strip(tokens);
147
+ break;
148
+ case 'number':
149
+ let lastCharacterOfLastToken = lastToken.value[lastToken.value.length - 1];
150
+ if (lastCharacterOfLastToken === '.' || lastCharacterOfLastToken === '-') {
151
+ tokens = tokens.slice(0, tokens.length - 1);
152
+ return strip(tokens);
153
+ }
154
+ case 'string':
155
+ let tokenBeforeTheLastToken = tokens[tokens.length - 2];
156
+ if (tokenBeforeTheLastToken?.type === 'delimiter') {
157
+ tokens = tokens.slice(0, tokens.length - 1);
158
+ return strip(tokens);
159
+ }
160
+ else if (tokenBeforeTheLastToken?.type === 'brace' && tokenBeforeTheLastToken.value === '{') {
161
+ tokens = tokens.slice(0, tokens.length - 1);
162
+ return strip(tokens);
163
+ }
164
+ break;
165
+ case 'delimiter':
166
+ tokens = tokens.slice(0, tokens.length - 1);
167
+ return strip(tokens);
168
+ break;
169
+ }
170
+ return tokens;
171
+ }, unstrip = (tokens) => {
172
+ let tail = [];
173
+ tokens.map((token) => {
174
+ if (token.type === 'brace') {
175
+ if (token.value === '{') {
176
+ tail.push('}');
177
+ }
178
+ else {
179
+ tail.splice(tail.lastIndexOf('}'), 1);
180
+ }
181
+ }
182
+ if (token.type === 'paren') {
183
+ if (token.value === '[') {
184
+ tail.push(']');
185
+ }
186
+ else {
187
+ tail.splice(tail.lastIndexOf(']'), 1);
188
+ }
189
+ }
190
+ });
191
+ if (tail.length > 0) {
192
+ tail.reverse().map((item) => {
193
+ if (item === '}') {
194
+ tokens.push({
195
+ type: 'brace',
196
+ value: '}',
197
+ });
198
+ }
199
+ else if (item === ']') {
200
+ tokens.push({
201
+ type: 'paren',
202
+ value: ']',
203
+ });
204
+ }
205
+ });
206
+ }
207
+ return tokens;
208
+ }, generate = (tokens) => {
209
+ let output = '';
210
+ tokens.map((token) => {
211
+ switch (token.type) {
212
+ case 'string':
213
+ output += '"' + token.value + '"';
214
+ break;
215
+ default:
216
+ output += token.value;
217
+ break;
218
+ }
219
+ });
220
+ return output;
221
+ }, partialParse = (input) => JSON.parse(generate(unstrip(strip(tokenize(input)))));
222
+ export { partialParse };
223
+ //# sourceMappingURL=parser.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":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K,GAAG,EAAE;gBACvB,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE,GAAG;iBACX,CAAC,CAAC;aACJ;QACH,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,EACD,QAAQ,GAAG,CAAC,MAAe,EAAU,EAAE;IACrC,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACnB,QAAQ,KAAK,CAAC,IAAI,EAAE;YAClB,KAAK,QAAQ;gBACX,MAAM,IAAI,GAAG,GAAG,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC;gBAClC,MAAM;YACR;gBACE,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC;gBACtB,MAAM;SACT;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,EACD,YAAY,GAAG,CAAC,KAAa,EAAW,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,248 @@
1
+
2
+
3
+ import { Stream } from "./streaming.js";
4
+ import { APIError } from "./error.js";
5
+ import { type Readable, type Agent, type RequestInfo, type RequestInit, type Response, type HeadersInit } from "./_shims/index.js";
6
+ export { type Response };
7
+ import { BlobLike } from "./uploads.js";
8
+ export { maybeMultipartFormRequestOptions, multipartFormRequestOptions, createForm, type Uploadable, } from "./uploads.js";
9
+ export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
10
+ type PromiseOrValue<T> = T | Promise<T>;
11
+ type APIResponseProps = {
12
+ response: Response;
13
+ options: FinalRequestOptions;
14
+ controller: AbortController;
15
+ };
16
+ type WithRequestID<T> = T extends Array<any> | Response | AbstractPage<any> ? T : T extends Record<string, any> ? T & {
17
+ _request_id?: string | null;
18
+ } : T;
19
+ /**
20
+ * A subclass of `Promise` providing additional helper methods
21
+ * for interacting with the SDK.
22
+ */
23
+ export declare class APIPromise<T> extends Promise<WithRequestID<T>> {
24
+ private responsePromise;
25
+ private parseResponse;
26
+ private parsedPromise;
27
+ constructor(responsePromise: Promise<APIResponseProps>, parseResponse?: (props: APIResponseProps) => PromiseOrValue<WithRequestID<T>>);
28
+ _thenUnwrap<U>(transform: (data: T, props: APIResponseProps) => U): APIPromise<U>;
29
+ /**
30
+ * Gets the raw `Response` instance instead of parsing the response
31
+ * data.
32
+ *
33
+ * If you want to parse the response body but still get the `Response`
34
+ * instance, you can use {@link withResponse()}.
35
+ *
36
+ * 👋 Getting the wrong TypeScript type for `Response`?
37
+ * Try setting `"moduleResolution": "NodeNext"` if you can,
38
+ * or add one of these imports before your first `import … from '@anthropic-ai/sdk'`:
39
+ * - `import '@anthropic-ai/sdk/shims/node'` (if you're running on Node)
40
+ * - `import '@anthropic-ai/sdk/shims/web'` (otherwise)
41
+ */
42
+ asResponse(): Promise<Response>;
43
+ /**
44
+ * Gets the parsed response data, the raw `Response` instance and the ID of the request,
45
+ * returned vie the `request-id` header which is useful for debugging requests and resporting
46
+ * issues to Anthropic.
47
+ *
48
+ * If you just want to get the raw `Response` instance without parsing it,
49
+ * you can use {@link asResponse()}.
50
+ *
51
+ * 👋 Getting the wrong TypeScript type for `Response`?
52
+ * Try setting `"moduleResolution": "NodeNext"` if you can,
53
+ * or add one of these imports before your first `import … from '@anthropic-ai/sdk'`:
54
+ * - `import '@anthropic-ai/sdk/shims/node'` (if you're running on Node)
55
+ * - `import '@anthropic-ai/sdk/shims/web'` (otherwise)
56
+ */
57
+ withResponse(): Promise<{
58
+ data: T;
59
+ response: Response;
60
+ request_id: string | null | undefined;
61
+ }>;
62
+ private parse;
63
+ then<TResult1 = WithRequestID<T>, TResult2 = never>(onfulfilled?: ((value: WithRequestID<T>) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
64
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<WithRequestID<T> | TResult>;
65
+ finally(onfinally?: (() => void) | undefined | null): Promise<WithRequestID<T>>;
66
+ }
67
+ export declare abstract class APIClient {
68
+ baseURL: string;
69
+ maxRetries: number;
70
+ timeout: number;
71
+ httpAgent: Agent | undefined;
72
+ private fetch;
73
+ protected idempotencyHeader?: string;
74
+ constructor({ baseURL, maxRetries, timeout, // 10 minutes
75
+ httpAgent, fetch: overriddenFetch, }: {
76
+ baseURL: string;
77
+ maxRetries?: number | undefined;
78
+ timeout: number | undefined;
79
+ httpAgent: Agent | undefined;
80
+ fetch: Fetch | undefined;
81
+ });
82
+ protected authHeaders(opts: FinalRequestOptions): Headers;
83
+ /**
84
+ * Override this to add your own default headers, for example:
85
+ *
86
+ * {
87
+ * ...super.defaultHeaders(),
88
+ * Authorization: 'Bearer 123',
89
+ * }
90
+ */
91
+ protected defaultHeaders(opts: FinalRequestOptions): Headers;
92
+ protected abstract defaultQuery(): DefaultQuery | undefined;
93
+ /**
94
+ * Override this to add your own headers validation:
95
+ */
96
+ protected validateHeaders(headers: Headers, customHeaders: Headers): void;
97
+ protected defaultIdempotencyKey(): string;
98
+ get<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
99
+ post<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
100
+ patch<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
101
+ put<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
102
+ delete<Req, Rsp>(path: string, opts?: PromiseOrValue<RequestOptions<Req>>): APIPromise<Rsp>;
103
+ private methodRequest;
104
+ getAPIList<Item, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions<any>): PagePromise<PageClass, Item>;
105
+ private calculateContentLength;
106
+ buildRequest<Req>(options: FinalRequestOptions<Req>, { retryCount }?: {
107
+ retryCount?: number;
108
+ }): {
109
+ req: RequestInit;
110
+ url: string;
111
+ timeout: number;
112
+ };
113
+ private buildHeaders;
114
+ /**
115
+ * Used as a callback for mutating the given `FinalRequestOptions` object.
116
+ */
117
+ protected prepareOptions(options: FinalRequestOptions): Promise<void>;
118
+ /**
119
+ * Used as a callback for mutating the given `RequestInit` object.
120
+ *
121
+ * This is useful for cases where you want to add certain headers based off of
122
+ * the request properties, e.g. `method` or `url`.
123
+ */
124
+ protected prepareRequest(request: RequestInit, { url, options }: {
125
+ url: string;
126
+ options: FinalRequestOptions;
127
+ }): Promise<void>;
128
+ protected parseHeaders(headers: HeadersInit | null | undefined): Record<string, string>;
129
+ protected makeStatusError(status: number | undefined, error: Object | undefined, message: string | undefined, headers: Headers | undefined): APIError;
130
+ request<Req, Rsp>(options: PromiseOrValue<FinalRequestOptions<Req>>, remainingRetries?: number | null): APIPromise<Rsp>;
131
+ private makeRequest;
132
+ requestAPIList<Item = unknown, PageClass extends AbstractPage<Item> = AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass, options: FinalRequestOptions): PagePromise<PageClass, Item>;
133
+ buildURL<Req>(path: string, query: Req | null | undefined): string;
134
+ protected stringifyQuery(query: Record<string, unknown>): string;
135
+ fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
136
+ private shouldRetry;
137
+ private retryRequest;
138
+ private calculateDefaultRetryTimeoutMillis;
139
+ private getUserAgent;
140
+ }
141
+ export type PageInfo = {
142
+ url: URL;
143
+ } | {
144
+ params: Record<string, unknown> | null;
145
+ };
146
+ export declare abstract class AbstractPage<Item> implements AsyncIterable<Item> {
147
+ #private;
148
+ protected options: FinalRequestOptions;
149
+ protected response: Response;
150
+ protected body: unknown;
151
+ constructor(client: APIClient, response: Response, body: unknown, options: FinalRequestOptions);
152
+ /**
153
+ * @deprecated Use nextPageInfo instead
154
+ */
155
+ abstract nextPageParams(): Partial<Record<string, unknown>> | null;
156
+ abstract nextPageInfo(): PageInfo | null;
157
+ abstract getPaginatedItems(): Item[];
158
+ hasNextPage(): boolean;
159
+ getNextPage(): Promise<this>;
160
+ iterPages(): AsyncGenerator<this>;
161
+ [Symbol.asyncIterator](): AsyncGenerator<Item>;
162
+ }
163
+ /**
164
+ * This subclass of Promise will resolve to an instantiated Page once the request completes.
165
+ *
166
+ * It also implements AsyncIterable to allow auto-paginating iteration on an unawaited list call, eg:
167
+ *
168
+ * for await (const item of client.items.list()) {
169
+ * console.log(item)
170
+ * }
171
+ */
172
+ export declare class PagePromise<PageClass extends AbstractPage<Item>, Item = ReturnType<PageClass['getPaginatedItems']>[number]> extends APIPromise<PageClass> implements AsyncIterable<Item> {
173
+ constructor(client: APIClient, request: Promise<APIResponseProps>, Page: new (...args: ConstructorParameters<typeof AbstractPage>) => PageClass);
174
+ /**
175
+ * Allow auto-paginating iteration on an unawaited list call, eg:
176
+ *
177
+ * for await (const item of client.items.list()) {
178
+ * console.log(item)
179
+ * }
180
+ */
181
+ [Symbol.asyncIterator](): AsyncGenerator<Item>;
182
+ }
183
+ export declare const createResponseHeaders: (headers: Awaited<ReturnType<Fetch>>['headers']) => Record<string, string>;
184
+ type HTTPMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
185
+ export type RequestClient = {
186
+ fetch: Fetch;
187
+ };
188
+ export type Headers = Record<string, string | null | undefined>;
189
+ export type DefaultQuery = Record<string, string | undefined>;
190
+ export type KeysEnum<T> = {
191
+ [P in keyof Required<T>]: true;
192
+ };
193
+ export type RequestOptions<Req = unknown | Record<string, unknown> | Readable | BlobLike | ArrayBufferView | ArrayBuffer> = {
194
+ method?: HTTPMethod;
195
+ path?: string;
196
+ query?: Req | undefined;
197
+ body?: Req | null | undefined;
198
+ headers?: Headers | undefined;
199
+ maxRetries?: number;
200
+ stream?: boolean | undefined;
201
+ timeout?: number;
202
+ httpAgent?: Agent;
203
+ signal?: AbortSignal | undefined | null;
204
+ idempotencyKey?: string;
205
+ __binaryRequest?: boolean | undefined;
206
+ __binaryResponse?: boolean | undefined;
207
+ __streamClass?: typeof Stream;
208
+ };
209
+ export declare const isRequestOptions: (obj: unknown) => obj is RequestOptions<unknown>;
210
+ export type FinalRequestOptions<Req = unknown | Record<string, unknown> | Readable | DataView> = RequestOptions<Req> & {
211
+ method: HTTPMethod;
212
+ path: string;
213
+ };
214
+ export declare const safeJSON: (text: string) => any;
215
+ export declare const sleep: (ms: number) => Promise<unknown>;
216
+ export declare const castToError: (err: any) => Error;
217
+ export declare const ensurePresent: <T>(value: T | null | undefined) => T;
218
+ /**
219
+ * Read an environment variable.
220
+ *
221
+ * Trims beginning and trailing whitespace.
222
+ *
223
+ * Will return undefined if the environment variable doesn't exist or cannot be accessed.
224
+ */
225
+ export declare const readEnv: (env: string) => string | undefined;
226
+ export declare const coerceInteger: (value: unknown) => number;
227
+ export declare const coerceFloat: (value: unknown) => number;
228
+ export declare const coerceBoolean: (value: unknown) => boolean;
229
+ export declare const maybeCoerceInteger: (value: unknown) => number | undefined;
230
+ export declare const maybeCoerceFloat: (value: unknown) => number | undefined;
231
+ export declare const maybeCoerceBoolean: (value: unknown) => boolean | undefined;
232
+ export declare function isEmptyObj(obj: Object | null | undefined): boolean;
233
+ export declare function hasOwn(obj: Object, key: string): boolean;
234
+ export declare function debug(action: string, ...args: any[]): void;
235
+ export declare const isRunningInBrowser: () => boolean;
236
+ export interface HeadersProtocol {
237
+ get: (header: string) => string | null | undefined;
238
+ }
239
+ export type HeadersLike = Record<string, string | string[] | undefined> | HeadersProtocol;
240
+ export declare const isHeadersProtocol: (headers: any) => headers is HeadersProtocol;
241
+ export declare const getRequiredHeader: (headers: HeadersLike | Headers, header: string) => string;
242
+ export declare const getHeader: (headers: HeadersLike | Headers, header: string) => string | undefined;
243
+ /**
244
+ * Encodes a string to Base64 format.
245
+ */
246
+ export declare const toBase64: (str: string | null | undefined) => string;
247
+ export declare function isObj(obj: unknown): obj is Record<string, unknown>;
248
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["src/core.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAEL,QAAQ,EAIT,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,KAAK,EAEV,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;AACzB,OAAO,EAAE,QAAQ,EAA+B,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,UAAU,EACV,KAAK,UAAU,GAChB,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEhF,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAExC,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC7B,CAAC;AA4CF,KAAK,aAAa,CAAC,CAAC,IAClB,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,GACrD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG;IAAE,WAAW,CA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