@code-yeongyu/senpi 2026.8.25 → 2026.8.26

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 (1177) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/core/agent-session.d.ts.map +1 -1
  3. package/dist/core/agent-session.js +29 -0
  4. package/dist/core/agent-session.js.map +1 -1
  5. package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts +5 -9
  6. package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts.map +1 -1
  7. package/dist/core/extensions/builtin/compaction/per-turn-cap.js +5 -11
  8. package/dist/core/extensions/builtin/compaction/per-turn-cap.js.map +1 -1
  9. package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts +2 -3
  10. package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts.map +1 -1
  11. package/dist/core/extensions/builtin/compaction/todo-bridge.js +53 -14
  12. package/dist/core/extensions/builtin/compaction/todo-bridge.js.map +1 -1
  13. package/examples/extensions/custom-provider-anthropic/package-lock.json +28 -5
  14. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  15. package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +558 -0
  16. package/node_modules/@anthropic-ai/sdk/README.md +16 -1
  17. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -1
  18. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -1
  19. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +14 -2
  20. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -1
  21. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +14 -2
  22. package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -1
  23. package/node_modules/@anthropic-ai/sdk/api-promise.d.mts +1 -0
  24. package/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -1
  25. package/node_modules/@anthropic-ai/sdk/api-promise.d.ts +1 -0
  26. package/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -1
  27. package/node_modules/@anthropic-ai/sdk/api-promise.mjs +1 -0
  28. package/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -1
  29. package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +481 -0
  30. package/node_modules/@anthropic-ai/sdk/client.d.mts +165 -11
  31. package/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -1
  32. package/node_modules/@anthropic-ai/sdk/client.d.ts +165 -11
  33. package/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -1
  34. package/node_modules/@anthropic-ai/sdk/client.js +415 -38
  35. package/node_modules/@anthropic-ai/sdk/client.js.map +1 -1
  36. package/node_modules/@anthropic-ai/sdk/client.mjs +414 -37
  37. package/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -1
  38. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +1 -0
  39. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -1
  40. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +1 -0
  41. package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -1
  42. package/node_modules/@anthropic-ai/sdk/core/api-promise.js +7 -2
  43. package/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -1
  44. package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +8 -3
  45. package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -1
  46. package/node_modules/@anthropic-ai/sdk/core/api.d.mts +11 -0
  47. package/node_modules/@anthropic-ai/sdk/core/api.d.mts.map +1 -0
  48. package/node_modules/@anthropic-ai/sdk/core/api.d.ts +11 -0
  49. package/node_modules/@anthropic-ai/sdk/core/api.d.ts.map +1 -0
  50. package/node_modules/@anthropic-ai/sdk/core/api.js +3 -0
  51. package/node_modules/@anthropic-ai/sdk/core/api.js.map +1 -0
  52. package/node_modules/@anthropic-ai/sdk/core/api.mjs +2 -0
  53. package/node_modules/@anthropic-ai/sdk/core/api.mjs.map +1 -0
  54. package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts +131 -0
  55. package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map +1 -0
  56. package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts +131 -0
  57. package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map +1 -0
  58. package/node_modules/@anthropic-ai/sdk/core/credentials.js +317 -0
  59. package/node_modules/@anthropic-ai/sdk/core/credentials.js.map +1 -0
  60. package/node_modules/@anthropic-ai/sdk/core/credentials.mjs +277 -0
  61. package/node_modules/@anthropic-ai/sdk/core/credentials.mjs.map +1 -0
  62. package/node_modules/@anthropic-ai/sdk/core/error.d.mts +12 -0
  63. package/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -1
  64. package/node_modules/@anthropic-ai/sdk/core/error.d.ts +12 -0
  65. package/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -1
  66. package/node_modules/@anthropic-ai/sdk/core/error.js +18 -1
  67. package/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -1
  68. package/node_modules/@anthropic-ai/sdk/core/error.mjs +16 -0
  69. package/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -1
  70. package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts +154 -0
  71. package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map +1 -0
  72. package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts +154 -0
  73. package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map +1 -0
  74. package/node_modules/@anthropic-ai/sdk/core/middleware.js +174 -0
  75. package/node_modules/@anthropic-ai/sdk/core/middleware.js.map +1 -0
  76. package/node_modules/@anthropic-ai/sdk/core/middleware.mjs +168 -0
  77. package/node_modules/@anthropic-ai/sdk/core/middleware.mjs.map +1 -0
  78. package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +20 -0
  79. package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -1
  80. package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +20 -0
  81. package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -1
  82. package/node_modules/@anthropic-ai/sdk/core/pagination.js +26 -1
  83. package/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -1
  84. package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +24 -0
  85. package/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -1
  86. package/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -1
  87. package/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -1
  88. package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +9 -0
  89. package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -1
  90. package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +9 -0
  91. package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -1
  92. package/node_modules/@anthropic-ai/sdk/core/streaming.js +34 -1
  93. package/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -1
  94. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +34 -1
  95. package/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -1
  96. package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -1
  97. package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -1
  98. package/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -1
  99. package/node_modules/@anthropic-ai/sdk/error.d.mts +1 -0
  100. package/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -1
  101. package/node_modules/@anthropic-ai/sdk/error.d.ts +1 -0
  102. package/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -1
  103. package/node_modules/@anthropic-ai/sdk/error.mjs +1 -0
  104. package/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -1
  105. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts +23 -0
  106. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts.map +1 -0
  107. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts +23 -0
  108. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts.map +1 -0
  109. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js +31 -0
  110. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js.map +1 -0
  111. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs +23 -0
  112. package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs.map +1 -0
  113. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts +6 -0
  114. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts.map +1 -1
  115. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts +6 -0
  116. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts.map +1 -1
  117. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js +1 -0
  118. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js.map +1 -1
  119. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs +1 -0
  120. package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs.map +1 -1
  121. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts +1 -1
  122. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts.map +1 -1
  123. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts +1 -1
  124. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts.map +1 -1
  125. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js +1 -1
  126. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js.map +1 -1
  127. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs +1 -1
  128. package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs.map +1 -1
  129. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.mts.map +1 -1
  130. package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.ts.map +1 -1
  131. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts +11 -5
  132. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts.map +1 -1
  133. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts +11 -5
  134. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts.map +1 -1
  135. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js +2 -2
  136. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js.map +1 -1
  137. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs +2 -2
  138. package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs.map +1 -1
  139. package/node_modules/@anthropic-ai/sdk/helpers/index.d.mts.map +1 -1
  140. package/node_modules/@anthropic-ai/sdk/helpers/index.d.ts.map +1 -1
  141. package/node_modules/@anthropic-ai/sdk/helpers/index.mjs.map +1 -1
  142. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.mts.map +1 -1
  143. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.ts.map +1 -1
  144. package/node_modules/@anthropic-ai/sdk/helpers/json-schema.mjs.map +1 -1
  145. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts +2 -2
  146. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts.map +1 -1
  147. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts +2 -2
  148. package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts.map +1 -1
  149. package/node_modules/@anthropic-ai/sdk/helpers/zod.js +1 -2
  150. package/node_modules/@anthropic-ai/sdk/helpers/zod.js.map +1 -1
  151. package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs +1 -2
  152. package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs.map +1 -1
  153. package/node_modules/@anthropic-ai/sdk/index.d.mts +4 -2
  154. package/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -1
  155. package/node_modules/@anthropic-ai/sdk/index.d.ts +4 -2
  156. package/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -1
  157. package/node_modules/@anthropic-ai/sdk/index.js +5 -1
  158. package/node_modules/@anthropic-ai/sdk/index.js.map +1 -1
  159. package/node_modules/@anthropic-ai/sdk/index.mjs +3 -2
  160. package/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -1
  161. package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -1
  162. package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -1
  163. package/node_modules/@anthropic-ai/sdk/internal/constants.js +0 -5
  164. package/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -1
  165. package/node_modules/@anthropic-ai/sdk/internal/constants.mjs +0 -5
  166. package/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -1
  167. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -1
  168. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -1
  169. package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -1
  170. package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -1
  171. package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -1
  172. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts +136 -0
  173. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts.map +1 -0
  174. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts +136 -0
  175. package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts.map +1 -0
  176. package/node_modules/@anthropic-ai/sdk/internal/file-store.js +531 -0
  177. package/node_modules/@anthropic-ai/sdk/internal/file-store.js.map +1 -0
  178. package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +523 -0
  179. package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs.map +1 -0
  180. package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +7 -0
  181. package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -1
  182. package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +7 -0
  183. package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -1
  184. package/node_modules/@anthropic-ai/sdk/internal/headers.js +45 -4
  185. package/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -1
  186. package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +43 -3
  187. package/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -1
  188. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts +10 -0
  189. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts.map +1 -0
  190. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts +10 -0
  191. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts.map +1 -0
  192. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js +34 -0
  193. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js.map +1 -0
  194. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs +30 -0
  195. package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs.map +1 -0
  196. package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +2 -1
  197. package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -1
  198. package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +2 -1
  199. package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -1
  200. package/node_modules/@anthropic-ai/sdk/internal/parse.js +16 -10
  201. package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -1
  202. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +15 -9
  203. package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -1
  204. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts +7 -0
  205. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts.map +1 -0
  206. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts +7 -0
  207. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts.map +1 -0
  208. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js +13 -0
  209. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js.map +1 -0
  210. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs +9 -0
  211. package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs.map +1 -0
  212. package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts +10 -0
  213. package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts.map +1 -0
  214. package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts +10 -0
  215. package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts.map +1 -0
  216. package/node_modules/@anthropic-ai/sdk/internal/qs/index.js +14 -0
  217. package/node_modules/@anthropic-ai/sdk/internal/qs/index.js.map +1 -0
  218. package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs +10 -0
  219. package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs.map +1 -0
  220. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts +3 -0
  221. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts.map +1 -0
  222. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts +3 -0
  223. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts.map +1 -0
  224. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js +277 -0
  225. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js.map +1 -0
  226. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs +274 -0
  227. package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs.map +1 -0
  228. package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts +57 -0
  229. package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts.map +1 -0
  230. package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts +57 -0
  231. package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts.map +1 -0
  232. package/node_modules/@anthropic-ai/sdk/internal/qs/types.js +3 -0
  233. package/node_modules/@anthropic-ai/sdk/internal/qs/types.js.map +1 -0
  234. package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs +2 -0
  235. package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs.map +1 -0
  236. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts +15 -0
  237. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts.map +1 -0
  238. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts +15 -0
  239. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts.map +1 -0
  240. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js +230 -0
  241. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js.map +1 -0
  242. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs +217 -0
  243. package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs.map +1 -0
  244. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +52 -2
  245. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -1
  246. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +52 -2
  247. package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -1
  248. package/node_modules/@anthropic-ai/sdk/internal/request-options.js +12 -1
  249. package/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -1
  250. package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
  251. package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -1
  252. package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts +4 -0
  253. package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts.map +1 -0
  254. package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts +4 -0
  255. package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts.map +1 -0
  256. package/node_modules/@anthropic-ai/sdk/internal/request-signal.js +50 -0
  257. package/node_modules/@anthropic-ai/sdk/internal/request-signal.js.map +1 -0
  258. package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs +45 -0
  259. package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs.map +1 -0
  260. package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +6 -0
  261. package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -1
  262. package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +6 -0
  263. package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -1
  264. package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts +60 -0
  265. package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts.map +1 -0
  266. package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts +60 -0
  267. package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts.map +1 -0
  268. package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.js +27 -6
  269. package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.js.map +1 -0
  270. package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.mjs +25 -5
  271. package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs.map +1 -0
  272. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -1
  273. package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -1
  274. package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -1
  275. package/node_modules/@anthropic-ai/sdk/internal/types.d.mts +12 -6
  276. package/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -1
  277. package/node_modules/@anthropic-ai/sdk/internal/types.d.ts +12 -6
  278. package/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -1
  279. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -1
  280. package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -1
  281. package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -1
  282. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts +13 -0
  283. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts.map +1 -0
  284. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts +13 -0
  285. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts.map +1 -0
  286. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js +26 -0
  287. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js.map +1 -0
  288. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs +23 -0
  289. package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs.map +1 -0
  290. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts +31 -0
  291. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts.map +1 -0
  292. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts +31 -0
  293. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts.map +1 -0
  294. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js +75 -0
  295. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js.map +1 -0
  296. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs +71 -0
  297. package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs.map +1 -0
  298. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts +23 -0
  299. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts.map +1 -0
  300. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts +23 -0
  301. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts.map +1 -0
  302. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js +44 -0
  303. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js.map +1 -0
  304. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs +36 -0
  305. package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs.map +1 -0
  306. package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -1
  307. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +11 -1
  308. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -1
  309. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +11 -1
  310. package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -1
  311. package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +37 -11
  312. package/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -1
  313. package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +35 -10
  314. package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -1
  315. package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -1
  316. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts +11 -0
  317. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts.map +1 -0
  318. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts +11 -0
  319. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts.map +1 -0
  320. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js +18 -0
  321. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js.map +1 -0
  322. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs +15 -0
  323. package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs.map +1 -0
  324. package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts +0 -3
  325. package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts.map +1 -1
  326. package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts +0 -3
  327. package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts.map +1 -1
  328. package/node_modules/@anthropic-ai/sdk/internal/utils/query.js +3 -16
  329. package/node_modules/@anthropic-ai/sdk/internal/utils/query.js.map +1 -1
  330. package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs +2 -16
  331. package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs.map +1 -1
  332. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +9 -1
  333. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -1
  334. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +9 -1
  335. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -1
  336. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +23 -2
  337. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -1
  338. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +23 -2
  339. package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -1
  340. package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts +3 -0
  341. package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts.map +1 -0
  342. package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts +3 -0
  343. package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts.map +1 -0
  344. package/node_modules/@anthropic-ai/sdk/internal/utils/time.js +8 -0
  345. package/node_modules/@anthropic-ai/sdk/internal/utils/time.js.map +1 -0
  346. package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs +5 -0
  347. package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs.map +1 -0
  348. package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -1
  349. package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -1
  350. package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -1
  351. package/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -1
  352. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +2 -0
  353. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -1
  354. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +2 -0
  355. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -1
  356. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +66 -31
  357. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -1
  358. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +66 -31
  359. package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -1
  360. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +2 -0
  361. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -1
  362. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +2 -0
  363. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -1
  364. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +37 -26
  365. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -1
  366. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +34 -23
  367. package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -1
  368. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts.map +1 -1
  369. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.ts.map +1 -1
  370. package/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs.map +1 -1
  371. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts +39 -0
  372. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts.map +1 -0
  373. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts +39 -0
  374. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts.map +1 -0
  375. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js +245 -0
  376. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js.map +1 -0
  377. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs +208 -0
  378. package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs.map +1 -0
  379. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts +11 -0
  380. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts.map +1 -0
  381. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts +11 -0
  382. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts.map +1 -0
  383. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js +72 -0
  384. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js.map +1 -0
  385. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs +35 -0
  386. package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs.map +1 -0
  387. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts +40 -0
  388. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts.map +1 -0
  389. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts +40 -0
  390. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts.map +1 -0
  391. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js +82 -0
  392. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js.map +1 -0
  393. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs +79 -0
  394. package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs.map +1 -0
  395. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts +54 -0
  396. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts.map +1 -0
  397. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts +54 -0
  398. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts.map +1 -0
  399. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js +112 -0
  400. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js.map +1 -0
  401. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs +108 -0
  402. package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs.map +1 -0
  403. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts +96 -0
  404. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts.map +1 -0
  405. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts +96 -0
  406. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts.map +1 -0
  407. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js +266 -0
  408. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js.map +1 -0
  409. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs +224 -0
  410. package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs.map +1 -0
  411. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts +21 -0
  412. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts.map +1 -0
  413. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts +21 -0
  414. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts.map +1 -0
  415. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js +130 -0
  416. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js.map +1 -0
  417. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs +94 -0
  418. package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs.map +1 -0
  419. package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts +4 -0
  420. package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts.map +1 -0
  421. package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts +4 -0
  422. package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts.map +1 -0
  423. package/node_modules/@anthropic-ai/sdk/lib/credentials.js +8 -0
  424. package/node_modules/@anthropic-ai/sdk/lib/credentials.js.map +1 -0
  425. package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs +3 -0
  426. package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs.map +1 -0
  427. package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts +4 -0
  428. package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts.map +1 -0
  429. package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts +4 -0
  430. package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts.map +1 -0
  431. package/node_modules/@anthropic-ai/sdk/lib/environments/index.js +18 -0
  432. package/node_modules/@anthropic-ai/sdk/lib/environments/index.js.map +1 -0
  433. package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs +4 -0
  434. package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs.map +1 -0
  435. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts +95 -0
  436. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts.map +1 -0
  437. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts +95 -0
  438. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts.map +1 -0
  439. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js +226 -0
  440. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js.map +1 -0
  441. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs +217 -0
  442. package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs.map +1 -0
  443. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts +227 -0
  444. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts.map +1 -0
  445. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts +227 -0
  446. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts.map +1 -0
  447. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js +569 -0
  448. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js.map +1 -0
  449. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs +564 -0
  450. package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs.map +1 -0
  451. package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts +31 -0
  452. package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts.map +1 -0
  453. package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts +31 -0
  454. package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts.map +1 -0
  455. package/node_modules/@anthropic-ai/sdk/lib/helper-client.js +58 -0
  456. package/node_modules/@anthropic-ai/sdk/lib/helper-client.js.map +1 -0
  457. package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs +55 -0
  458. package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs.map +1 -0
  459. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts +98 -0
  460. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts.map +1 -0
  461. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts +98 -0
  462. package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts.map +1 -0
  463. package/node_modules/@anthropic-ai/sdk/lib/middleware.js +754 -0
  464. package/node_modules/@anthropic-ai/sdk/lib/middleware.js.map +1 -0
  465. package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +749 -0
  466. package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs.map +1 -0
  467. package/node_modules/@anthropic-ai/sdk/lib/parser.d.mts.map +1 -1
  468. package/node_modules/@anthropic-ai/sdk/lib/parser.d.ts.map +1 -1
  469. package/node_modules/@anthropic-ai/sdk/lib/parser.mjs.map +1 -1
  470. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts +22 -0
  471. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts.map +1 -0
  472. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts +22 -0
  473. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts.map +1 -0
  474. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js +88 -0
  475. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js.map +1 -0
  476. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs +85 -0
  477. package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs.map +1 -0
  478. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +38 -5
  479. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts.map +1 -1
  480. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts +38 -5
  481. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts.map +1 -1
  482. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js +28 -0
  483. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js.map +1 -1
  484. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs +25 -1
  485. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs.map +1 -1
  486. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +1 -1
  487. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -1
  488. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts +1 -1
  489. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -1
  490. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +107 -29
  491. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -1
  492. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +105 -27
  493. package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -1
  494. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.mts.map +1 -1
  495. package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts.map +1 -1
  496. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts +179 -0
  497. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts.map +1 -0
  498. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts +179 -0
  499. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts.map +1 -0
  500. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js +728 -0
  501. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js.map +1 -0
  502. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs +724 -0
  503. package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs.map +1 -0
  504. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts.map +1 -1
  505. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.ts.map +1 -1
  506. package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs.map +1 -1
  507. package/node_modules/@anthropic-ai/sdk/package.json +32 -15
  508. package/node_modules/@anthropic-ai/sdk/pagination.d.mts +1 -0
  509. package/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -1
  510. package/node_modules/@anthropic-ai/sdk/pagination.d.ts +1 -0
  511. package/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -1
  512. package/node_modules/@anthropic-ai/sdk/pagination.mjs +1 -0
  513. package/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -1
  514. package/node_modules/@anthropic-ai/sdk/resource.d.mts +1 -0
  515. package/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -1
  516. package/node_modules/@anthropic-ai/sdk/resource.d.ts +1 -0
  517. package/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -1
  518. package/node_modules/@anthropic-ai/sdk/resource.mjs +1 -0
  519. package/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -1
  520. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +608 -68
  521. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts.map +1 -1
  522. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts +608 -68
  523. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts.map +1 -1
  524. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +2 -2
  525. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js.map +1 -1
  526. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +2 -2
  527. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs.map +1 -1
  528. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts +1 -1
  529. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts.map +1 -1
  530. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts +1 -1
  531. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts.map +1 -1
  532. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.js.map +1 -1
  533. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.mjs.map +1 -1
  534. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.mts.map +1 -1
  535. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.ts.map +1 -1
  536. package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs.map +1 -1
  537. package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.mts.map +1 -1
  538. package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.ts.map +1 -1
  539. package/node_modules/@anthropic-ai/sdk/resources/beta/agents.mjs.map +1 -1
  540. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +51 -13
  541. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -1
  542. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +51 -13
  543. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -1
  544. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +22 -2
  545. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -1
  546. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +22 -2
  547. package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -1
  548. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +306 -0
  549. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts.map +1 -0
  550. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts +306 -0
  551. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts.map +1 -0
  552. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +55 -0
  553. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js.map +1 -0
  554. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +51 -0
  555. package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs.map +1 -0
  556. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +698 -0
  557. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts.map +1 -0
  558. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts +698 -0
  559. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts.map +1 -0
  560. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +196 -0
  561. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js.map +1 -0
  562. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +192 -0
  563. package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs.map +1 -0
  564. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +309 -0
  565. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts.map +1 -0
  566. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts +309 -0
  567. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts.map +1 -0
  568. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +116 -0
  569. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js.map +1 -0
  570. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +112 -0
  571. package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs.map +1 -0
  572. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +426 -0
  573. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts.map +1 -0
  574. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts +426 -0
  575. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts.map +1 -0
  576. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +150 -0
  577. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js.map +1 -0
  578. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +145 -0
  579. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs.map +1 -0
  580. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts +3 -0
  581. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts.map +1 -0
  582. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts +3 -0
  583. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts.map +1 -0
  584. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js +9 -0
  585. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js.map +1 -0
  586. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs +4 -0
  587. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs.map +1 -0
  588. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts +501 -0
  589. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts.map +1 -0
  590. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts +501 -0
  591. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts.map +1 -0
  592. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +257 -0
  593. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js.map +1 -0
  594. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +251 -0
  595. package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs.map +1 -0
  596. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts +1 -388
  597. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts.map +1 -1
  598. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts +1 -388
  599. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts.map +1 -1
  600. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js +2 -138
  601. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js.map +1 -1
  602. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs +1 -136
  603. package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs.map +1 -1
  604. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +22 -22
  605. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -1
  606. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +22 -22
  607. package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -1
  608. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +5 -5
  609. package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -1
  610. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +5 -5
  611. package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -1
  612. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +11 -6
  613. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -1
  614. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +11 -6
  615. package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -1
  616. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +23 -13
  617. package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -1
  618. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +6 -1
  619. package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -1
  620. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts +1 -1
  621. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts.map +1 -1
  622. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts +1 -1
  623. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts.map +1 -1
  624. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.js.map +1 -1
  625. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.mjs.map +1 -1
  626. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +136 -24
  627. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts.map +1 -1
  628. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts +136 -24
  629. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts.map +1 -1
  630. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +10 -10
  631. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js.map +1 -1
  632. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +10 -10
  633. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs.map +1 -1
  634. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts +60 -16
  635. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
  636. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts +60 -16
  637. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
  638. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +12 -12
  639. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js.map +1 -1
  640. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +12 -12
  641. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
  642. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +105 -7
  643. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  644. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts +105 -7
  645. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  646. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +6 -6
  647. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js.map +1 -1
  648. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +6 -6
  649. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs.map +1 -1
  650. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.mts.map +1 -1
  651. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.ts.map +1 -1
  652. package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.mjs.map +1 -1
  653. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +81 -30
  654. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -1
  655. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +81 -30
  656. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -1
  657. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +12 -9
  658. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -1
  659. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +12 -9
  660. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -1
  661. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +1 -1
  662. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -1
  663. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +1 -1
  664. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -1
  665. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -1
  666. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -1
  667. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +2453 -380
  668. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -1
  669. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +2453 -380
  670. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -1
  671. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +16 -22
  672. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -1
  673. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +16 -22
  674. package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -1
  675. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -1
  676. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -1
  677. package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -1
  678. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +6 -0
  679. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -1
  680. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +6 -0
  681. package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -1
  682. package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -1
  683. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +643 -19
  684. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts.map +1 -1
  685. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts +643 -19
  686. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts.map +1 -1
  687. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +29 -2
  688. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js.map +1 -1
  689. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +27 -1
  690. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs.map +1 -1
  691. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts +3 -2
  692. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts.map +1 -1
  693. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts +3 -2
  694. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts.map +1 -1
  695. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js +3 -1
  696. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js.map +1 -1
  697. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs +1 -0
  698. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs.map +1 -1
  699. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.mts.map +1 -1
  700. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.ts.map +1 -1
  701. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs.map +1 -1
  702. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +455 -8
  703. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts.map +1 -1
  704. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts +455 -8
  705. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts.map +1 -1
  706. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +5 -1
  707. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js.map +1 -1
  708. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +6 -2
  709. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs.map +1 -1
  710. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts +78 -0
  711. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts.map +1 -0
  712. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts +78 -0
  713. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts.map +1 -0
  714. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +61 -0
  715. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js.map +1 -0
  716. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +57 -0
  717. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs.map +1 -0
  718. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts +3 -0
  719. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts.map +1 -0
  720. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts +3 -0
  721. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts.map +1 -0
  722. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js +9 -0
  723. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js.map +1 -0
  724. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs +4 -0
  725. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs.map +1 -0
  726. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +195 -0
  727. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts.map +1 -0
  728. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts +195 -0
  729. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts.map +1 -0
  730. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +88 -0
  731. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js.map +1 -0
  732. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +83 -0
  733. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs.map +1 -0
  734. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts +2 -0
  735. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts.map +1 -0
  736. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts +2 -0
  737. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts.map +1 -0
  738. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js +6 -0
  739. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js.map +1 -0
  740. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs +3 -0
  741. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs.map +1 -0
  742. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.mts.map +1 -1
  743. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.ts.map +1 -1
  744. package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.mjs.map +1 -1
  745. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +1 -1
  746. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -1
  747. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +1 -1
  748. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -1
  749. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -1
  750. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -1
  751. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +13 -11
  752. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -1
  753. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +13 -11
  754. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -1
  755. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +5 -3
  756. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -1
  757. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +5 -3
  758. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -1
  759. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +31 -3
  760. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -1
  761. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +31 -3
  762. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -1
  763. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +32 -3
  764. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -1
  765. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +32 -3
  766. package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -1
  767. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.mts.map +1 -1
  768. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.ts.map +1 -1
  769. package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs.map +1 -1
  770. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts +163 -0
  771. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts.map +1 -0
  772. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts +163 -0
  773. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts.map +1 -0
  774. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +129 -0
  775. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js.map +1 -0
  776. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +125 -0
  777. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs.map +1 -0
  778. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts +3 -0
  779. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts.map +1 -0
  780. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts +3 -0
  781. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts.map +1 -0
  782. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js +9 -0
  783. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js.map +1 -0
  784. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs +4 -0
  785. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs.map +1 -0
  786. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts +212 -0
  787. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts.map +1 -0
  788. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts +212 -0
  789. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts.map +1 -0
  790. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +181 -0
  791. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js.map +1 -0
  792. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +176 -0
  793. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs.map +1 -0
  794. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts +2 -0
  795. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts.map +1 -0
  796. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts +2 -0
  797. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts.map +1 -0
  798. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js +6 -0
  799. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js.map +1 -0
  800. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs +3 -0
  801. package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs.map +1 -0
  802. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +62 -0
  803. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts.map +1 -1
  804. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts +62 -0
  805. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts.map +1 -1
  806. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.js +5 -5
  807. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs +5 -5
  808. package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs.map +1 -1
  809. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts +256 -4
  810. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts.map +1 -1
  811. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts +256 -4
  812. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts.map +1 -1
  813. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +22 -0
  814. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js.map +1 -1
  815. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +22 -0
  816. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs.map +1 -1
  817. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts +1 -1
  818. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts.map +1 -1
  819. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts +1 -1
  820. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts.map +1 -1
  821. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.js.map +1 -1
  822. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.mjs.map +1 -1
  823. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts +2 -2
  824. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts.map +1 -1
  825. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts +2 -2
  826. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts.map +1 -1
  827. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js.map +1 -1
  828. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs.map +1 -1
  829. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.mts.map +1 -1
  830. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.ts.map +1 -1
  831. package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.mjs.map +1 -1
  832. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +466 -0
  833. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts.map +1 -0
  834. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts +466 -0
  835. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts.map +1 -0
  836. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +20 -0
  837. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js.map +1 -0
  838. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +16 -0
  839. package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs.map +1 -0
  840. package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -1
  841. package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -1
  842. package/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -1
  843. package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +18 -11
  844. package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -1
  845. package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +18 -11
  846. package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -1
  847. package/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -1
  848. package/node_modules/@anthropic-ai/sdk/resources/files.d.mts +105 -0
  849. package/node_modules/@anthropic-ai/sdk/resources/files.d.mts.map +1 -0
  850. package/node_modules/@anthropic-ai/sdk/resources/files.d.ts +105 -0
  851. package/node_modules/@anthropic-ai/sdk/resources/files.d.ts.map +1 -0
  852. package/node_modules/@anthropic-ai/sdk/resources/files.js +52 -0
  853. package/node_modules/@anthropic-ai/sdk/resources/files.js.map +1 -0
  854. package/node_modules/@anthropic-ai/sdk/resources/files.mjs +48 -0
  855. package/node_modules/@anthropic-ai/sdk/resources/files.mjs.map +1 -0
  856. package/node_modules/@anthropic-ai/sdk/resources/index.d.mts +4 -2
  857. package/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -1
  858. package/node_modules/@anthropic-ai/sdk/resources/index.d.ts +4 -2
  859. package/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -1
  860. package/node_modules/@anthropic-ai/sdk/resources/index.js +5 -1
  861. package/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -1
  862. package/node_modules/@anthropic-ai/sdk/resources/index.mjs +2 -0
  863. package/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -1
  864. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +20 -11
  865. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -1
  866. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +20 -11
  867. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -1
  868. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +17 -9
  869. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -1
  870. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +17 -9
  871. package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -1
  872. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +1 -1
  873. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -1
  874. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +1 -1
  875. package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -1
  876. package/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -1
  877. package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -1
  878. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1782 -162
  879. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -1
  880. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1782 -162
  881. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -1
  882. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +23 -28
  883. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -1
  884. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +23 -28
  885. package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -1
  886. package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -1
  887. package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -1
  888. package/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -1
  889. package/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -1
  890. package/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -1
  891. package/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -1
  892. package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts +3 -0
  893. package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts.map +1 -0
  894. package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts +3 -0
  895. package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts.map +1 -0
  896. package/node_modules/@anthropic-ai/sdk/resources/skills/index.js +9 -0
  897. package/node_modules/@anthropic-ai/sdk/resources/skills/index.js.map +1 -0
  898. package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs +4 -0
  899. package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs.map +1 -0
  900. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts +129 -0
  901. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts.map +1 -0
  902. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts +129 -0
  903. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts.map +1 -0
  904. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +44 -0
  905. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js.map +1 -0
  906. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +39 -0
  907. package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs.map +1 -0
  908. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts +104 -0
  909. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts.map +1 -0
  910. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts +104 -0
  911. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts.map +1 -0
  912. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +41 -0
  913. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js.map +1 -0
  914. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +37 -0
  915. package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs.map +1 -0
  916. package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts +2 -0
  917. package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts.map +1 -0
  918. package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts +2 -0
  919. package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts.map +1 -0
  920. package/node_modules/@anthropic-ai/sdk/resources/skills.js +6 -0
  921. package/node_modules/@anthropic-ai/sdk/resources/skills.js.map +1 -0
  922. package/node_modules/@anthropic-ai/sdk/resources/skills.mjs +3 -0
  923. package/node_modules/@anthropic-ai/sdk/resources/skills.mjs.map +1 -0
  924. package/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -1
  925. package/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -1
  926. package/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -1
  927. package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +18 -2
  928. package/node_modules/@anthropic-ai/sdk/src/client.ts +749 -42
  929. package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +14 -4
  930. package/node_modules/@anthropic-ai/sdk/src/core/api.ts +11 -0
  931. package/node_modules/@anthropic-ai/sdk/src/core/credentials.ts +379 -0
  932. package/node_modules/@anthropic-ai/sdk/src/core/error.ts +17 -0
  933. package/node_modules/@anthropic-ai/sdk/src/core/middleware.ts +339 -0
  934. package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +60 -0
  935. package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +38 -1
  936. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/environments.ts +34 -0
  937. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/json-schema.ts +7 -0
  938. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/mcp.ts +1 -1
  939. package/node_modules/@anthropic-ai/sdk/src/helpers/beta/zod.ts +14 -10
  940. package/node_modules/@anthropic-ai/sdk/src/helpers/zod.ts +3 -6
  941. package/node_modules/@anthropic-ai/sdk/src/index.ts +16 -1
  942. package/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +0 -5
  943. package/node_modules/@anthropic-ai/sdk/src/internal/file-store.ts +550 -0
  944. package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +47 -4
  945. package/node_modules/@anthropic-ai/sdk/src/internal/message-stream-utils.ts +30 -0
  946. package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +16 -11
  947. package/node_modules/@anthropic-ai/sdk/src/internal/qs/LICENSE.md +13 -0
  948. package/node_modules/@anthropic-ai/sdk/src/internal/qs/README.md +3 -0
  949. package/node_modules/@anthropic-ai/sdk/src/internal/qs/formats.ts +10 -0
  950. package/node_modules/@anthropic-ai/sdk/src/internal/qs/index.ts +13 -0
  951. package/node_modules/@anthropic-ai/sdk/src/internal/qs/stringify.ts +385 -0
  952. package/node_modules/@anthropic-ai/sdk/src/internal/qs/types.ts +71 -0
  953. package/node_modules/@anthropic-ai/sdk/src/internal/qs/utils.ts +265 -0
  954. package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +55 -2
  955. package/node_modules/@anthropic-ai/sdk/src/internal/request-signal.ts +68 -0
  956. package/node_modules/@anthropic-ai/sdk/src/internal/stainless-helper-header.ts +122 -0
  957. package/node_modules/@anthropic-ai/sdk/src/internal/utils/abort.ts +21 -0
  958. package/node_modules/@anthropic-ai/sdk/src/internal/utils/async-queue.ts +66 -0
  959. package/node_modules/@anthropic-ai/sdk/src/internal/utils/backoff.ts +41 -0
  960. package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +41 -10
  961. package/node_modules/@anthropic-ai/sdk/src/internal/utils/promise.ts +18 -0
  962. package/node_modules/@anthropic-ai/sdk/src/internal/utils/query.ts +2 -18
  963. package/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +25 -2
  964. package/node_modules/@anthropic-ai/sdk/src/internal/utils/time.ts +4 -0
  965. package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +72 -33
  966. package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +36 -24
  967. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/credential-chain.ts +292 -0
  968. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/identity-token.ts +37 -0
  969. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/oidc-federation.ts +140 -0
  970. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/token-cache.ts +130 -0
  971. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/types.ts +295 -0
  972. package/node_modules/@anthropic-ai/sdk/src/lib/credentials/user-oauth.ts +144 -0
  973. package/node_modules/@anthropic-ai/sdk/src/lib/credentials.ts +3 -0
  974. package/node_modules/@anthropic-ai/sdk/src/lib/environments/index.ts +23 -0
  975. package/node_modules/@anthropic-ai/sdk/src/lib/environments/poller.ts +299 -0
  976. package/node_modules/@anthropic-ai/sdk/src/lib/environments/worker.ts +779 -0
  977. package/node_modules/@anthropic-ai/sdk/src/lib/helper-client.ts +86 -0
  978. package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +994 -0
  979. package/node_modules/@anthropic-ai/sdk/src/lib/sessions/accumulate.ts +130 -0
  980. package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaRunnableTool.ts +71 -7
  981. package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +135 -35
  982. package/node_modules/@anthropic-ai/sdk/src/lib/tools/SessionToolRunner.ts +885 -0
  983. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +806 -69
  984. package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/index.ts +34 -0
  985. package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +690 -28
  986. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +441 -0
  987. package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +996 -0
  988. package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +453 -0
  989. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +626 -0
  990. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/index.ts +42 -0
  991. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +705 -0
  992. package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments.ts +1 -540
  993. package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +28 -28
  994. package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +312 -5
  995. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/index.ts +1 -0
  996. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +141 -31
  997. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +66 -20
  998. package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +112 -9
  999. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +90 -33
  1000. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +90 -0
  1001. package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +2755 -211
  1002. package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +7 -0
  1003. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +888 -18
  1004. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/index.ts +60 -1
  1005. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +669 -14
  1006. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +123 -0
  1007. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/index.ts +15 -0
  1008. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +330 -0
  1009. package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads.ts +3 -0
  1010. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +1 -0
  1011. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +15 -14
  1012. package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +49 -3
  1013. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +252 -0
  1014. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/index.ts +23 -0
  1015. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +347 -0
  1016. package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels.ts +3 -0
  1017. package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +76 -5
  1018. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +347 -3
  1019. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/index.ts +17 -0
  1020. package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +34 -0
  1021. package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +762 -0
  1022. package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +18 -11
  1023. package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +163 -0
  1024. package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +89 -0
  1025. package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +30 -12
  1026. package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +70 -0
  1027. package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +2202 -226
  1028. package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +21 -0
  1029. package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +194 -0
  1030. package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +160 -0
  1031. package/node_modules/@anthropic-ai/sdk/src/resources/skills.ts +3 -0
  1032. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +190 -0
  1033. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/memories.ts +1017 -0
  1034. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.browser.ts +172 -0
  1035. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +914 -0
  1036. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/skills.ts +372 -0
  1037. package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/sync-interval.ts +30 -0
  1038. package/node_modules/@anthropic-ai/sdk/src/tools/memory/node.browser.ts +64 -0
  1039. package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
  1040. package/node_modules/@anthropic-ai/sdk/streaming.d.mts +1 -0
  1041. package/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -1
  1042. package/node_modules/@anthropic-ai/sdk/streaming.d.ts +1 -0
  1043. package/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -1
  1044. package/node_modules/@anthropic-ai/sdk/streaming.mjs +1 -0
  1045. package/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -1
  1046. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts +75 -0
  1047. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts.map +1 -0
  1048. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts +75 -0
  1049. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts.map +1 -0
  1050. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +196 -0
  1051. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js.map +1 -0
  1052. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +185 -0
  1053. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs.map +1 -0
  1054. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts +173 -0
  1055. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts.map +1 -0
  1056. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts +173 -0
  1057. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts.map +1 -0
  1058. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +902 -0
  1059. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js.map +1 -0
  1060. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +895 -0
  1061. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs.map +1 -0
  1062. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts +82 -0
  1063. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts.map +1 -0
  1064. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts +82 -0
  1065. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts.map +1 -0
  1066. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +151 -0
  1067. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js.map +1 -0
  1068. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs +131 -0
  1069. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs.map +1 -0
  1070. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +190 -0
  1071. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts.map +1 -0
  1072. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts +190 -0
  1073. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts.map +1 -0
  1074. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +819 -0
  1075. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js.map +1 -0
  1076. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +797 -0
  1077. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs.map +1 -0
  1078. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +82 -0
  1079. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts.map +1 -0
  1080. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts +82 -0
  1081. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts.map +1 -0
  1082. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +352 -0
  1083. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js.map +1 -0
  1084. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs +344 -0
  1085. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs.map +1 -0
  1086. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts +19 -0
  1087. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts.map +1 -0
  1088. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts +19 -0
  1089. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts.map +1 -0
  1090. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js +29 -0
  1091. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js.map +1 -0
  1092. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs +25 -0
  1093. package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs.map +1 -0
  1094. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts +27 -0
  1095. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts.map +1 -0
  1096. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts +27 -0
  1097. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts.map +1 -0
  1098. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js +49 -0
  1099. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js.map +1 -0
  1100. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs +44 -0
  1101. package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs.map +1 -0
  1102. package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.mts.map +1 -1
  1103. package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.ts.map +1 -1
  1104. package/node_modules/@anthropic-ai/sdk/tools/memory/node.mjs.map +1 -1
  1105. package/node_modules/@anthropic-ai/sdk/uploads.d.mts +1 -0
  1106. package/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -1
  1107. package/node_modules/@anthropic-ai/sdk/uploads.d.ts +1 -0
  1108. package/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -1
  1109. package/node_modules/@anthropic-ai/sdk/uploads.mjs +1 -0
  1110. package/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -1
  1111. package/node_modules/@anthropic-ai/sdk/version.d.mts +1 -1
  1112. package/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -1
  1113. package/node_modules/@anthropic-ai/sdk/version.d.ts +1 -1
  1114. package/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -1
  1115. package/node_modules/@anthropic-ai/sdk/version.js +1 -1
  1116. package/node_modules/@anthropic-ai/sdk/version.js.map +1 -1
  1117. package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
  1118. package/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -1
  1119. package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +12 -0
  1120. package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
  1121. package/node_modules/@earendil-works/pi-agent-core/package.json +3 -3
  1122. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  1123. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  1124. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  1125. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  1126. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  1127. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  1128. package/node_modules/@earendil-works/pi-ai/package.json +3 -3
  1129. package/node_modules/@earendil-works/pi-pty/package.json +1 -1
  1130. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  1131. package/node_modules/@earendil-works/pi-tui/package.json +1 -1
  1132. package/node_modules/@stablelib/base64/LICENSE +21 -0
  1133. package/node_modules/@stablelib/base64/base64.bench.ts +25 -0
  1134. package/node_modules/@stablelib/base64/base64.test.ts +85 -0
  1135. package/node_modules/@stablelib/base64/base64.ts +283 -0
  1136. package/node_modules/@stablelib/base64/lib/base64.bench.d.ts +1 -0
  1137. package/node_modules/@stablelib/base64/lib/base64.bench.js +23 -0
  1138. package/node_modules/@stablelib/base64/lib/base64.bench.js.map +1 -0
  1139. package/node_modules/@stablelib/base64/lib/base64.d.ts +34 -0
  1140. package/node_modules/@stablelib/base64/lib/base64.js +282 -0
  1141. package/node_modules/@stablelib/base64/lib/base64.js.map +1 -0
  1142. package/node_modules/@stablelib/base64/lib/base64.test.d.ts +1 -0
  1143. package/node_modules/@stablelib/base64/lib/base64.test.js +82 -0
  1144. package/node_modules/@stablelib/base64/lib/base64.test.js.map +1 -0
  1145. package/node_modules/@stablelib/base64/package.json +25 -0
  1146. package/node_modules/@stablelib/base64/tsconfig.json +27 -0
  1147. package/node_modules/fast-sha256/LICENSE +24 -0
  1148. package/node_modules/fast-sha256/README.md +127 -0
  1149. package/node_modules/fast-sha256/package.json +42 -0
  1150. package/node_modules/fast-sha256/sha256.d.ts +39 -0
  1151. package/node_modules/fast-sha256/sha256.js +427 -0
  1152. package/node_modules/fast-sha256/sha256.min.js +1 -0
  1153. package/node_modules/standardwebhooks/README.md +41 -0
  1154. package/node_modules/standardwebhooks/dist/index.d.ts +24 -0
  1155. package/node_modules/standardwebhooks/dist/index.js +106 -0
  1156. package/node_modules/standardwebhooks/dist/index.js.map +1 -0
  1157. package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +1 -0
  1158. package/node_modules/standardwebhooks/dist/timing_safe_equal.js +30 -0
  1159. package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +1 -0
  1160. package/node_modules/standardwebhooks/package.json +45 -0
  1161. package/package.json +17 -8
  1162. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts +0 -34
  1163. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts.map +0 -1
  1164. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts +0 -34
  1165. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts.map +0 -1
  1166. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.js.map +0 -1
  1167. package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs.map +0 -1
  1168. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts +0 -132
  1169. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts.map +0 -1
  1170. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts +0 -132
  1171. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts.map +0 -1
  1172. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js +0 -294
  1173. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js.map +0 -1
  1174. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs +0 -290
  1175. package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs.map +0 -1
  1176. package/node_modules/@anthropic-ai/sdk/src/lib/stainless-helper-header.ts +0 -80
  1177. package/node_modules/@anthropic-ai/sdk/src/lib/tools/ToolRunner.ts +0 -381
@@ -1,3 +1,4 @@
1
+ import * as BatchesAPI from "./batches.js";
1
2
  import { APIPromise } from "../../../core/api-promise.js";
2
3
  import { APIResource } from "../../../core/resource.js";
3
4
  import { Stream } from "../../../core/streaming.js";
@@ -9,7 +10,6 @@ import { ToolError } from "../../../lib/tools/ToolError.js";
9
10
  import * as BetaMessagesAPI from "./messages.js";
10
11
  import * as MessagesAPI from "../../messages/messages.js";
11
12
  import * as BetaAPI from "../beta.js";
12
- import * as BatchesAPI from "./batches.js";
13
13
  import { BatchCancelParams, BatchCreateParams, BatchDeleteParams, BatchListParams, BatchResultsParams, BatchRetrieveParams, Batches, BetaDeletedMessageBatch, BetaMessageBatch, BetaMessageBatchCanceledResult, BetaMessageBatchErroredResult, BetaMessageBatchExpiredResult, BetaMessageBatchIndividualResponse, BetaMessageBatchRequestCounts, BetaMessageBatchResult, BetaMessageBatchSucceededResult, BetaMessageBatchesPage } from "./batches.js";
14
14
  export declare class Messages extends APIResource {
15
15
  batches: BatchesAPI.Batches;
@@ -21,14 +21,14 @@ export declare class Messages extends APIResource {
21
21
  * conversations.
22
22
  *
23
23
  * Learn more about the Messages API in our
24
- * [user guide](https://docs.claude.com/en/docs/initial-setup)
24
+ * [user guide](https://platform.claude.com/docs/en/get-started)
25
25
  *
26
26
  * @example
27
27
  * ```ts
28
28
  * const betaMessage = await client.beta.messages.create({
29
29
  * max_tokens: 1024,
30
30
  * messages: [{ content: 'Hello, world', role: 'user' }],
31
- * model: 'claude-opus-4-6',
31
+ * model: 'claude-opus-5',
32
32
  * });
33
33
  * ```
34
34
  */
@@ -63,14 +63,14 @@ export declare class Messages extends APIResource {
63
63
  * including tools, images, and documents, without creating it.
64
64
  *
65
65
  * Learn more about token counting in our
66
- * [user guide](https://docs.claude.com/en/docs/build-with-claude/token-counting)
66
+ * [user guide](https://platform.claude.com/docs/en/build-with-claude/token-counting)
67
67
  *
68
68
  * @example
69
69
  * ```ts
70
70
  * const betaMessageTokensCount =
71
71
  * await client.beta.messages.countTokens({
72
72
  * messages: [{ content: 'Hello, world', role: 'user' }],
73
- * model: 'claude-opus-4-6',
73
+ * model: 'claude-opus-5',
74
74
  * });
75
75
  * ```
76
76
  */
@@ -104,8 +104,9 @@ export interface BetaAdvisorMessageIterationUsage {
104
104
  */
105
105
  input_tokens: number;
106
106
  /**
107
- * The model that will complete your prompt.\n\nSee
108
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
107
+ * The model that will complete your prompt.
108
+ *
109
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
109
110
  * details and options.
110
111
  */
111
112
  model: MessagesAPI.Model;
@@ -124,6 +125,11 @@ export interface BetaAdvisorRedactedResultBlock {
124
125
  * or modify.
125
126
  */
126
127
  encrypted_content: string;
128
+ /**
129
+ * The advisor sub-inference's stop reason (same values as the top-level message
130
+ * `stop_reason`).
131
+ */
132
+ stop_reason: string | null;
127
133
  type: 'advisor_redacted_result';
128
134
  }
129
135
  export interface BetaAdvisorRedactedResultBlockParam {
@@ -132,19 +138,28 @@ export interface BetaAdvisorRedactedResultBlockParam {
132
138
  */
133
139
  encrypted_content: string;
134
140
  type: 'advisor_redacted_result';
141
+ stop_reason?: string | null;
135
142
  }
136
143
  export interface BetaAdvisorResultBlock {
144
+ /**
145
+ * The advisor sub-inference's stop reason (same values as the top-level message
146
+ * `stop_reason`). `max_tokens` indicates the advisor's output was truncated at the
147
+ * tool's `max_tokens` value or the advisor model's policy cap.
148
+ */
149
+ stop_reason: string | null;
137
150
  text: string;
138
151
  type: 'advisor_result';
139
152
  }
140
153
  export interface BetaAdvisorResultBlockParam {
141
154
  text: string;
142
155
  type: 'advisor_result';
156
+ stop_reason?: string | null;
143
157
  }
144
158
  export interface BetaAdvisorTool20260301 {
145
159
  /**
146
- * The model that will complete your prompt.\n\nSee
147
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
160
+ * The model that will complete your prompt.
161
+ *
162
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
148
163
  * details and options.
149
164
  */
150
165
  model: MessagesAPI.Model;
@@ -155,7 +170,7 @@ export interface BetaAdvisorTool20260301 {
155
170
  */
156
171
  name: 'advisor';
157
172
  type: 'advisor_20260301';
158
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
173
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
159
174
  /**
160
175
  * Create a cache control breakpoint at this content block.
161
176
  */
@@ -171,6 +186,16 @@ export interface BetaAdvisorTool20260301 {
171
186
  * returned via tool_reference from tool search.
172
187
  */
173
188
  defer_loading?: boolean;
189
+ /**
190
+ * Bounds the advisor's total output (thinking + text) per call. When the advisor
191
+ * hits this cap, the returned advisor_result or advisor_redacted_result block
192
+ * carries stop_reason='max_tokens', and a truncation note is appended to the
193
+ * advice text the worker model sees (inside the encrypted blob in redacted mode).
194
+ * When set, the server also emits a remaining-tokens budget block in the advisor's
195
+ * prompt so the advisor self-shapes toward the cap. When omitted, the advisor
196
+ * model's default output cap applies and no budget block is emitted.
197
+ */
198
+ max_tokens?: number | null;
174
199
  /**
175
200
  * Maximum number of times the tool can be used in the API request.
176
201
  */
@@ -195,11 +220,11 @@ export interface BetaAdvisorToolResultBlockParam {
195
220
  cache_control?: BetaCacheControlEphemeral | null;
196
221
  }
197
222
  export interface BetaAdvisorToolResultError {
198
- error_code: 'max_uses_exceeded' | 'prompt_too_long' | 'too_many_requests' | 'overloaded' | 'unavailable' | 'execution_time_exceeded';
223
+ error_code: 'max_uses_exceeded' | 'prompt_too_long' | 'too_many_requests' | 'overloaded' | 'unavailable' | 'execution_time_exceeded' | 'model_not_found';
199
224
  type: 'advisor_tool_result_error';
200
225
  }
201
226
  export interface BetaAdvisorToolResultErrorParam {
202
- error_code: 'max_uses_exceeded' | 'prompt_too_long' | 'too_many_requests' | 'overloaded' | 'unavailable' | 'execution_time_exceeded';
227
+ error_code: 'max_uses_exceeded' | 'prompt_too_long' | 'too_many_requests' | 'overloaded' | 'unavailable' | 'execution_time_exceeded' | 'model_not_found';
203
228
  type: 'advisor_tool_result_error';
204
229
  }
205
230
  export interface BetaAllThinkingTurns {
@@ -260,270 +285,1212 @@ export interface BetaBashCodeExecutionToolResultErrorParam {
260
285
  error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded' | 'output_file_too_large';
261
286
  type: 'bash_code_execution_tool_result_error';
262
287
  }
263
- export interface BetaCacheControlEphemeral {
264
- type: 'ephemeral';
288
+ /**
289
+ * `close_tab`'s config overrides.
290
+ */
291
+ export interface BetaBrowserCloseTabConfig {
265
292
  /**
266
- * The time-to-live for the cache control breakpoint.
267
- *
268
- * This may be one the following values:
269
- *
270
- * - `5m`: 5 minutes
271
- * - `1h`: 1 hour
272
- *
273
- * Defaults to `5m`.
293
+ * Defer loading for this member. Must resolve to the same value on every enabled
294
+ * member of the toolset.
274
295
  */
275
- ttl?: '5m' | '1h';
296
+ defer_loading?: boolean | null;
297
+ /**
298
+ * Whether this member is offered to the model. Default is per member, per the
299
+ * toolset's documentation. A member whose enabled resolves false is withheld from
300
+ * the served schema.
301
+ */
302
+ enabled?: boolean | null;
276
303
  }
277
- export interface BetaCacheCreation {
304
+ /**
305
+ * `double_click`'s config overrides.
306
+ */
307
+ export interface BetaBrowserDoubleClickConfig {
278
308
  /**
279
- * The number of input tokens used to create the 1 hour cache entry.
309
+ * Defer loading for this member. Must resolve to the same value on every enabled
310
+ * member of the toolset.
280
311
  */
281
- ephemeral_1h_input_tokens: number;
312
+ defer_loading?: boolean | null;
282
313
  /**
283
- * The number of input tokens used to create the 5 minute cache entry.
314
+ * Whether this member is offered to the model. Default is per member, per the
315
+ * toolset's documentation. A member whose enabled resolves false is withheld from
316
+ * the served schema.
284
317
  */
285
- ephemeral_5m_input_tokens: number;
286
- }
287
- export interface BetaCitationCharLocation {
288
- cited_text: string;
289
- document_index: number;
290
- document_title: string | null;
291
- end_char_index: number;
292
- file_id: string | null;
293
- start_char_index: number;
294
- type: 'char_location';
295
- }
296
- export interface BetaCitationCharLocationParam {
297
- cited_text: string;
298
- document_index: number;
299
- document_title: string | null;
300
- end_char_index: number;
301
- start_char_index: number;
302
- type: 'char_location';
303
- }
304
- export interface BetaCitationConfig {
305
- enabled: boolean;
306
- }
307
- export interface BetaCitationContentBlockLocation {
308
- cited_text: string;
309
- document_index: number;
310
- document_title: string | null;
311
- end_block_index: number;
312
- file_id: string | null;
313
- start_block_index: number;
314
- type: 'content_block_location';
315
- }
316
- export interface BetaCitationContentBlockLocationParam {
317
- cited_text: string;
318
- document_index: number;
319
- document_title: string | null;
320
- end_block_index: number;
321
- start_block_index: number;
322
- type: 'content_block_location';
323
- }
324
- export interface BetaCitationPageLocation {
325
- cited_text: string;
326
- document_index: number;
327
- document_title: string | null;
328
- end_page_number: number;
329
- file_id: string | null;
330
- start_page_number: number;
331
- type: 'page_location';
332
- }
333
- export interface BetaCitationPageLocationParam {
334
- cited_text: string;
335
- document_index: number;
336
- document_title: string | null;
337
- end_page_number: number;
338
- start_page_number: number;
339
- type: 'page_location';
340
- }
341
- export interface BetaCitationSearchResultLocation {
342
- cited_text: string;
343
- end_block_index: number;
344
- search_result_index: number;
345
- source: string;
346
- start_block_index: number;
347
- title: string | null;
348
- type: 'search_result_location';
349
- }
350
- export interface BetaCitationSearchResultLocationParam {
351
- cited_text: string;
352
- end_block_index: number;
353
- search_result_index: number;
354
- source: string;
355
- start_block_index: number;
356
- title: string | null;
357
- type: 'search_result_location';
358
- }
359
- export interface BetaCitationWebSearchResultLocationParam {
360
- cited_text: string;
361
- encrypted_index: string;
362
- title: string | null;
363
- type: 'web_search_result_location';
364
- url: string;
365
- }
366
- export interface BetaCitationsConfigParam {
367
- enabled?: boolean;
368
- }
369
- export interface BetaCitationsDelta {
370
- citation: BetaCitationCharLocation | BetaCitationPageLocation | BetaCitationContentBlockLocation | BetaCitationsWebSearchResultLocation | BetaCitationSearchResultLocation;
371
- type: 'citations_delta';
372
- }
373
- export interface BetaCitationsWebSearchResultLocation {
374
- cited_text: string;
375
- encrypted_index: string;
376
- title: string | null;
377
- type: 'web_search_result_location';
378
- url: string;
318
+ enabled?: boolean | null;
379
319
  }
380
- export interface BetaClearThinking20251015Edit {
381
- type: 'clear_thinking_20251015';
320
+ /**
321
+ * `file_upload`'s config overrides.
322
+ */
323
+ export interface BetaBrowserFileUploadConfig {
382
324
  /**
383
- * Number of most recent assistant turns to keep thinking blocks for. Older turns
384
- * will have their thinking blocks removed.
325
+ * Defer loading for this member. Must resolve to the same value on every enabled
326
+ * member of the toolset.
385
327
  */
386
- keep?: BetaThinkingTurns | BetaAllThinkingTurns | 'all';
387
- }
388
- export interface BetaClearThinking20251015EditResponse {
328
+ defer_loading?: boolean | null;
389
329
  /**
390
- * Number of input tokens cleared by this edit.
330
+ * Whether this member is offered to the model. Default is per member, per the
331
+ * toolset's documentation. A member whose enabled resolves false is withheld from
332
+ * the served schema.
391
333
  */
392
- cleared_input_tokens: number;
334
+ enabled?: boolean | null;
335
+ }
336
+ /**
337
+ * `find`'s config overrides.
338
+ */
339
+ export interface BetaBrowserFindConfig {
393
340
  /**
394
- * Number of thinking turns that were cleared.
341
+ * Defer loading for this member. Must resolve to the same value on every enabled
342
+ * member of the toolset.
395
343
  */
396
- cleared_thinking_turns: number;
344
+ defer_loading?: boolean | null;
397
345
  /**
398
- * The type of context management edit applied.
346
+ * Whether this member is offered to the model. Default is per member, per the
347
+ * toolset's documentation. A member whose enabled resolves false is withheld from
348
+ * the served schema.
399
349
  */
400
- type: 'clear_thinking_20251015';
350
+ enabled?: boolean | null;
401
351
  }
402
- export interface BetaClearToolUses20250919Edit {
403
- type: 'clear_tool_uses_20250919';
352
+ /**
353
+ * `form_input`'s config overrides.
354
+ */
355
+ export interface BetaBrowserFormInputConfig {
404
356
  /**
405
- * Minimum number of tokens that must be cleared when triggered. Context will only
406
- * be modified if at least this many tokens can be removed.
357
+ * Defer loading for this member. Must resolve to the same value on every enabled
358
+ * member of the toolset.
407
359
  */
408
- clear_at_least?: BetaInputTokensClearAtLeast | null;
360
+ defer_loading?: boolean | null;
409
361
  /**
410
- * Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)
362
+ * Whether this member is offered to the model. Default is per member, per the
363
+ * toolset's documentation. A member whose enabled resolves false is withheld from
364
+ * the served schema.
411
365
  */
412
- clear_tool_inputs?: boolean | Array<string> | null;
366
+ enabled?: boolean | null;
367
+ }
368
+ /**
369
+ * `get_page_text`'s config overrides.
370
+ */
371
+ export interface BetaBrowserGetPageTextConfig {
413
372
  /**
414
- * Tool names whose uses are preserved from clearing
373
+ * Defer loading for this member. Must resolve to the same value on every enabled
374
+ * member of the toolset.
415
375
  */
416
- exclude_tools?: Array<string> | null;
376
+ defer_loading?: boolean | null;
417
377
  /**
418
- * Number of tool uses to retain in the conversation
378
+ * Whether this member is offered to the model. Default is per member, per the
379
+ * toolset's documentation. A member whose enabled resolves false is withheld from
380
+ * the served schema.
419
381
  */
420
- keep?: BetaToolUsesKeep;
382
+ enabled?: boolean | null;
383
+ }
384
+ /**
385
+ * `hold_key`'s config overrides.
386
+ */
387
+ export interface BetaBrowserHoldKeyConfig {
421
388
  /**
422
- * Condition that triggers the context management strategy
389
+ * Defer loading for this member. Must resolve to the same value on every enabled
390
+ * member of the toolset.
423
391
  */
424
- trigger?: BetaInputTokensTrigger | BetaToolUsesTrigger;
425
- }
426
- export interface BetaClearToolUses20250919EditResponse {
392
+ defer_loading?: boolean | null;
427
393
  /**
428
- * Number of input tokens cleared by this edit.
394
+ * Whether this member is offered to the model. Default is per member, per the
395
+ * toolset's documentation. A member whose enabled resolves false is withheld from
396
+ * the served schema.
429
397
  */
430
- cleared_input_tokens: number;
398
+ enabled?: boolean | null;
399
+ }
400
+ /**
401
+ * `hover`'s config overrides.
402
+ */
403
+ export interface BetaBrowserHoverConfig {
431
404
  /**
432
- * Number of tool uses that were cleared.
405
+ * Defer loading for this member. Must resolve to the same value on every enabled
406
+ * member of the toolset.
433
407
  */
434
- cleared_tool_uses: number;
408
+ defer_loading?: boolean | null;
435
409
  /**
436
- * The type of context management edit applied.
410
+ * Whether this member is offered to the model. Default is per member, per the
411
+ * toolset's documentation. A member whose enabled resolves false is withheld from
412
+ * the served schema.
437
413
  */
438
- type: 'clear_tool_uses_20250919';
439
- }
440
- export interface BetaCodeExecutionOutputBlock {
441
- file_id: string;
442
- type: 'code_execution_output';
443
- }
444
- export interface BetaCodeExecutionOutputBlockParam {
445
- file_id: string;
446
- type: 'code_execution_output';
447
- }
448
- export interface BetaCodeExecutionResultBlock {
449
- content: Array<BetaCodeExecutionOutputBlock>;
450
- return_code: number;
451
- stderr: string;
452
- stdout: string;
453
- type: 'code_execution_result';
454
- }
455
- export interface BetaCodeExecutionResultBlockParam {
456
- content: Array<BetaCodeExecutionOutputBlockParam>;
457
- return_code: number;
458
- stderr: string;
459
- stdout: string;
460
- type: 'code_execution_result';
414
+ enabled?: boolean | null;
461
415
  }
462
- export interface BetaCodeExecutionTool20250522 {
416
+ /**
417
+ * `javascript_exec`'s config overrides.
418
+ */
419
+ export interface BetaBrowserJavascriptExecConfig {
463
420
  /**
464
- * Name of the tool.
465
- *
466
- * This is how the tool will be called by the model and in `tool_use` blocks.
421
+ * Defer loading for this member. Must resolve to the same value on every enabled
422
+ * member of the toolset.
467
423
  */
468
- name: 'code_execution';
469
- type: 'code_execution_20250522';
470
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
424
+ defer_loading?: boolean | null;
471
425
  /**
472
- * Create a cache control breakpoint at this content block.
426
+ * Whether this member is offered to the model. Default is per member, per the
427
+ * toolset's documentation. A member whose enabled resolves false is withheld from
428
+ * the served schema.
473
429
  */
474
- cache_control?: BetaCacheControlEphemeral | null;
430
+ enabled?: boolean | null;
431
+ }
432
+ /**
433
+ * `key`'s config overrides.
434
+ */
435
+ export interface BetaBrowserKeyConfig {
475
436
  /**
476
- * If true, tool will not be included in initial system prompt. Only loaded when
477
- * returned via tool_reference from tool search.
437
+ * Defer loading for this member. Must resolve to the same value on every enabled
438
+ * member of the toolset.
478
439
  */
479
- defer_loading?: boolean;
440
+ defer_loading?: boolean | null;
480
441
  /**
481
- * When true, guarantees schema validation on tool names and inputs
442
+ * Whether this member is offered to the model. Default is per member, per the
443
+ * toolset's documentation. A member whose enabled resolves false is withheld from
444
+ * the served schema.
482
445
  */
483
- strict?: boolean;
446
+ enabled?: boolean | null;
484
447
  }
485
- export interface BetaCodeExecutionTool20250825 {
448
+ /**
449
+ * `left_click`'s config overrides.
450
+ */
451
+ export interface BetaBrowserLeftClickConfig {
486
452
  /**
487
- * Name of the tool.
488
- *
489
- * This is how the tool will be called by the model and in `tool_use` blocks.
453
+ * Defer loading for this member. Must resolve to the same value on every enabled
454
+ * member of the toolset.
490
455
  */
491
- name: 'code_execution';
492
- type: 'code_execution_20250825';
493
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
456
+ defer_loading?: boolean | null;
494
457
  /**
495
- * Create a cache control breakpoint at this content block.
458
+ * Whether this member is offered to the model. Default is per member, per the
459
+ * toolset's documentation. A member whose enabled resolves false is withheld from
460
+ * the served schema.
496
461
  */
497
- cache_control?: BetaCacheControlEphemeral | null;
462
+ enabled?: boolean | null;
463
+ }
464
+ /**
465
+ * `left_click_drag`'s config overrides.
466
+ */
467
+ export interface BetaBrowserLeftClickDragConfig {
498
468
  /**
499
- * If true, tool will not be included in initial system prompt. Only loaded when
500
- * returned via tool_reference from tool search.
469
+ * Defer loading for this member. Must resolve to the same value on every enabled
470
+ * member of the toolset.
501
471
  */
502
- defer_loading?: boolean;
472
+ defer_loading?: boolean | null;
503
473
  /**
504
- * When true, guarantees schema validation on tool names and inputs
474
+ * Whether this member is offered to the model. Default is per member, per the
475
+ * toolset's documentation. A member whose enabled resolves false is withheld from
476
+ * the served schema.
505
477
  */
506
- strict?: boolean;
478
+ enabled?: boolean | null;
507
479
  }
508
480
  /**
509
- * Code execution tool with REPL state persistence (daemon mode + gVisor
510
- * checkpoint).
481
+ * `left_mouse_down`'s config overrides.
511
482
  */
512
- export interface BetaCodeExecutionTool20260120 {
483
+ export interface BetaBrowserLeftMouseDownConfig {
513
484
  /**
514
- * Name of the tool.
515
- *
516
- * This is how the tool will be called by the model and in `tool_use` blocks.
485
+ * Defer loading for this member. Must resolve to the same value on every enabled
486
+ * member of the toolset.
517
487
  */
518
- name: 'code_execution';
519
- type: 'code_execution_20260120';
520
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
488
+ defer_loading?: boolean | null;
521
489
  /**
522
- * Create a cache control breakpoint at this content block.
490
+ * Whether this member is offered to the model. Default is per member, per the
491
+ * toolset's documentation. A member whose enabled resolves false is withheld from
492
+ * the served schema.
523
493
  */
524
- cache_control?: BetaCacheControlEphemeral | null;
525
- /**
526
- * If true, tool will not be included in initial system prompt. Only loaded when
494
+ enabled?: boolean | null;
495
+ }
496
+ /**
497
+ * `left_mouse_up`'s config overrides.
498
+ */
499
+ export interface BetaBrowserLeftMouseUpConfig {
500
+ /**
501
+ * Defer loading for this member. Must resolve to the same value on every enabled
502
+ * member of the toolset.
503
+ */
504
+ defer_loading?: boolean | null;
505
+ /**
506
+ * Whether this member is offered to the model. Default is per member, per the
507
+ * toolset's documentation. A member whose enabled resolves false is withheld from
508
+ * the served schema.
509
+ */
510
+ enabled?: boolean | null;
511
+ }
512
+ /**
513
+ * `list_tabs`'s config overrides.
514
+ */
515
+ export interface BetaBrowserListTabsConfig {
516
+ /**
517
+ * Defer loading for this member. Must resolve to the same value on every enabled
518
+ * member of the toolset.
519
+ */
520
+ defer_loading?: boolean | null;
521
+ /**
522
+ * Whether this member is offered to the model. Default is per member, per the
523
+ * toolset's documentation. A member whose enabled resolves false is withheld from
524
+ * the served schema.
525
+ */
526
+ enabled?: boolean | null;
527
+ }
528
+ /**
529
+ * `middle_click`'s config overrides.
530
+ */
531
+ export interface BetaBrowserMiddleClickConfig {
532
+ /**
533
+ * Defer loading for this member. Must resolve to the same value on every enabled
534
+ * member of the toolset.
535
+ */
536
+ defer_loading?: boolean | null;
537
+ /**
538
+ * Whether this member is offered to the model. Default is per member, per the
539
+ * toolset's documentation. A member whose enabled resolves false is withheld from
540
+ * the served schema.
541
+ */
542
+ enabled?: boolean | null;
543
+ }
544
+ /**
545
+ * `mouse_move`'s config overrides.
546
+ */
547
+ export interface BetaBrowserMouseMoveConfig {
548
+ /**
549
+ * Defer loading for this member. Must resolve to the same value on every enabled
550
+ * member of the toolset.
551
+ */
552
+ defer_loading?: boolean | null;
553
+ /**
554
+ * Whether this member is offered to the model. Default is per member, per the
555
+ * toolset's documentation. A member whose enabled resolves false is withheld from
556
+ * the served schema.
557
+ */
558
+ enabled?: boolean | null;
559
+ }
560
+ /**
561
+ * `navigate`'s config overrides.
562
+ */
563
+ export interface BetaBrowserNavigateConfig {
564
+ /**
565
+ * Defer loading for this member. Must resolve to the same value on every enabled
566
+ * member of the toolset.
567
+ */
568
+ defer_loading?: boolean | null;
569
+ /**
570
+ * Whether this member is offered to the model. Default is per member, per the
571
+ * toolset's documentation. A member whose enabled resolves false is withheld from
572
+ * the served schema.
573
+ */
574
+ enabled?: boolean | null;
575
+ }
576
+ /**
577
+ * `new_tab`'s config overrides.
578
+ */
579
+ export interface BetaBrowserNewTabConfig {
580
+ /**
581
+ * Defer loading for this member. Must resolve to the same value on every enabled
582
+ * member of the toolset.
583
+ */
584
+ defer_loading?: boolean | null;
585
+ /**
586
+ * Whether this member is offered to the model. Default is per member, per the
587
+ * toolset's documentation. A member whose enabled resolves false is withheld from
588
+ * the served schema.
589
+ */
590
+ enabled?: boolean | null;
591
+ }
592
+ /**
593
+ * `read_console`'s config overrides.
594
+ */
595
+ export interface BetaBrowserReadConsoleConfig {
596
+ /**
597
+ * Defer loading for this member. Must resolve to the same value on every enabled
598
+ * member of the toolset.
599
+ */
600
+ defer_loading?: boolean | null;
601
+ /**
602
+ * Whether this member is offered to the model. Default is per member, per the
603
+ * toolset's documentation. A member whose enabled resolves false is withheld from
604
+ * the served schema.
605
+ */
606
+ enabled?: boolean | null;
607
+ }
608
+ /**
609
+ * `read_network`'s config overrides.
610
+ */
611
+ export interface BetaBrowserReadNetworkConfig {
612
+ /**
613
+ * Defer loading for this member. Must resolve to the same value on every enabled
614
+ * member of the toolset.
615
+ */
616
+ defer_loading?: boolean | null;
617
+ /**
618
+ * Whether this member is offered to the model. Default is per member, per the
619
+ * toolset's documentation. A member whose enabled resolves false is withheld from
620
+ * the served schema.
621
+ */
622
+ enabled?: boolean | null;
623
+ }
624
+ /**
625
+ * `read_page`'s config overrides.
626
+ */
627
+ export interface BetaBrowserReadPageConfig {
628
+ /**
629
+ * Defer loading for this member. Must resolve to the same value on every enabled
630
+ * member of the toolset.
631
+ */
632
+ defer_loading?: boolean | null;
633
+ /**
634
+ * Whether this member is offered to the model. Default is per member, per the
635
+ * toolset's documentation. A member whose enabled resolves false is withheld from
636
+ * the served schema.
637
+ */
638
+ enabled?: boolean | null;
639
+ }
640
+ /**
641
+ * `right_click`'s config overrides.
642
+ */
643
+ export interface BetaBrowserRightClickConfig {
644
+ /**
645
+ * Defer loading for this member. Must resolve to the same value on every enabled
646
+ * member of the toolset.
647
+ */
648
+ defer_loading?: boolean | null;
649
+ /**
650
+ * Whether this member is offered to the model. Default is per member, per the
651
+ * toolset's documentation. A member whose enabled resolves false is withheld from
652
+ * the served schema.
653
+ */
654
+ enabled?: boolean | null;
655
+ }
656
+ /**
657
+ * `screenshot`'s config overrides.
658
+ */
659
+ export interface BetaBrowserScreenshotConfig {
660
+ /**
661
+ * Defer loading for this member. Must resolve to the same value on every enabled
662
+ * member of the toolset.
663
+ */
664
+ defer_loading?: boolean | null;
665
+ /**
666
+ * Whether this member is offered to the model. Default is per member, per the
667
+ * toolset's documentation. A member whose enabled resolves false is withheld from
668
+ * the served schema.
669
+ */
670
+ enabled?: boolean | null;
671
+ }
672
+ /**
673
+ * `scroll`'s config overrides.
674
+ */
675
+ export interface BetaBrowserScrollConfig {
676
+ /**
677
+ * Defer loading for this member. Must resolve to the same value on every enabled
678
+ * member of the toolset.
679
+ */
680
+ defer_loading?: boolean | null;
681
+ /**
682
+ * Whether this member is offered to the model. Default is per member, per the
683
+ * toolset's documentation. A member whose enabled resolves false is withheld from
684
+ * the served schema.
685
+ */
686
+ enabled?: boolean | null;
687
+ }
688
+ /**
689
+ * `scroll_to`'s config overrides.
690
+ */
691
+ export interface BetaBrowserScrollToConfig {
692
+ /**
693
+ * Defer loading for this member. Must resolve to the same value on every enabled
694
+ * member of the toolset.
695
+ */
696
+ defer_loading?: boolean | null;
697
+ /**
698
+ * Whether this member is offered to the model. Default is per member, per the
699
+ * toolset's documentation. A member whose enabled resolves false is withheld from
700
+ * the served schema.
701
+ */
702
+ enabled?: boolean | null;
703
+ }
704
+ /**
705
+ * The caller's browser state after a browser toolset member call — the full
706
+ * inventory of open tabs, which tab is active, and any side effects (tabs opened,
707
+ * download state changes) the call produced.
708
+ *
709
+ * At most one per `tool_result`, only on a non-error result answering a browser
710
+ * toolset member `tool_use`. The server renders the model-visible text from it;
711
+ * the model never sees the raw fields.
712
+ */
713
+ export interface BetaBrowserStateBlockParam {
714
+ /**
715
+ * All tabs open in the browser after this call — the full inventory, not a delta.
716
+ * May be empty. Whenever non-empty, exactly one entry carries `active: true`.
717
+ */
718
+ tabs: Array<BetaBrowserStateTabEntry>;
719
+ type: 'browser_state';
720
+ /**
721
+ * Create a cache control breakpoint at this content block.
722
+ */
723
+ cache_control?: BetaCacheControlEphemeral | null;
724
+ /**
725
+ * Tabs opened and download state changes during this call. "Nothing to report" is
726
+ * expressed by omitting the field, never by an empty list.
727
+ */
728
+ state_changes?: Array<BetaBrowserStateChange> | null;
729
+ }
730
+ /**
731
+ * A tab this call's execution opened that remains open at its end — the creation
732
+ * delta of the `tabs` inventory, not an event log.
733
+ *
734
+ * Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
735
+ * which must include the same `tab_id`. A tab opened during a failed call gets no
736
+ * deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
737
+ */
738
+ export type BetaBrowserStateChange = BetaBrowserStateChangeTabOpened | BetaBrowserStateChangeDownloadStarted | BetaBrowserStateChangeDownloadCompleted | BetaBrowserStateChangeDownloadFailed;
739
+ /**
740
+ * A file download that finished during this call, reported with the same
741
+ * `download_id` as its `download_started` — or without a prior `download_started`,
742
+ * when the download finished during the call that started it (at most one state
743
+ * change per `download_id` per result).
744
+ */
745
+ export interface BetaBrowserStateChangeDownloadCompleted {
746
+ /**
747
+ * The caller-assigned identifier for this download, stable across the state
748
+ * changes reporting it.
749
+ */
750
+ download_id: string;
751
+ type: 'download_completed';
752
+ /**
753
+ * The final post-redirect URL the download was served from.
754
+ */
755
+ url: string;
756
+ /**
757
+ * Where the executor saved the file, on the executor's filesystem. Only included
758
+ * when another tool in the same environment can read the file at that path.
759
+ */
760
+ path?: string | null;
761
+ /**
762
+ * The completed download's size.
763
+ */
764
+ size_bytes?: number | null;
765
+ }
766
+ /**
767
+ * A file download that failed — or was cancelled — during this call.
768
+ */
769
+ export interface BetaBrowserStateChangeDownloadFailed {
770
+ /**
771
+ * The caller-assigned identifier for this download, stable across the state
772
+ * changes reporting it.
773
+ */
774
+ download_id: string;
775
+ type: 'download_failed';
776
+ /**
777
+ * The final post-redirect URL the download was served from.
778
+ */
779
+ url: string;
780
+ /**
781
+ * The failure or cancellation detail, when known.
782
+ */
783
+ error?: string | null;
784
+ }
785
+ /**
786
+ * A file download that started during this call.
787
+ */
788
+ export interface BetaBrowserStateChangeDownloadStarted {
789
+ /**
790
+ * The caller-assigned identifier for this download, stable across the state
791
+ * changes reporting it.
792
+ */
793
+ download_id: string;
794
+ type: 'download_started';
795
+ /**
796
+ * The final post-redirect URL the download was served from.
797
+ */
798
+ url: string;
799
+ }
800
+ /**
801
+ * A tab this call's execution opened that remains open at its end — the creation
802
+ * delta of the `tabs` inventory, not an event log.
803
+ *
804
+ * Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
805
+ * which must include the same `tab_id`. A tab opened during a failed call gets no
806
+ * deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
807
+ */
808
+ export interface BetaBrowserStateChangeTabOpened {
809
+ /**
810
+ * The `tab_id` of the opened tab, present in `tabs`.
811
+ */
812
+ tab_id: string;
813
+ type: 'tab_opened';
814
+ }
815
+ /**
816
+ * One open browser tab reported in a `browser_state` block's `tabs` inventory.
817
+ *
818
+ * `tab_id` is the caller-assigned identifier for the tab; `title` and `url`
819
+ * describe the page the tab is currently showing and may be empty strings (a blank
820
+ * tab legitimately has both empty). `active` marks the tab that is active after
821
+ * this call; whenever `tabs` is non-empty, exactly one entry is marked.
822
+ */
823
+ export interface BetaBrowserStateTabEntry {
824
+ /**
825
+ * The caller-assigned identifier for this tab, unique within the inventory.
826
+ */
827
+ tab_id: string;
828
+ /**
829
+ * The title of the page the tab is showing. May be empty.
830
+ */
831
+ title: string;
832
+ /**
833
+ * The URL of the page the tab is showing. May be empty.
834
+ */
835
+ url: string;
836
+ /**
837
+ * Whether this tab is the active tab after this call. Whenever `tabs` is
838
+ * non-empty, exactly one entry is marked `active: true`.
839
+ */
840
+ active?: boolean;
841
+ }
842
+ /**
843
+ * `switch_tab`'s config overrides.
844
+ */
845
+ export interface BetaBrowserSwitchTabConfig {
846
+ /**
847
+ * Defer loading for this member. Must resolve to the same value on every enabled
848
+ * member of the toolset.
849
+ */
850
+ defer_loading?: boolean | null;
851
+ /**
852
+ * Whether this member is offered to the model. Default is per member, per the
853
+ * toolset's documentation. A member whose enabled resolves false is withheld from
854
+ * the served schema.
855
+ */
856
+ enabled?: boolean | null;
857
+ }
858
+ /**
859
+ * The browser toolset: a single `tools[]` entry (carrying no `name`) that declares
860
+ * the browser tool family. The model is served the family's tool with any members
861
+ * disabled via `configs` removed from its schema.
862
+ */
863
+ export interface BetaBrowserToolset20260801 {
864
+ type: 'browser_toolset_20260801';
865
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
866
+ /**
867
+ * Create a cache control breakpoint at this content block.
868
+ */
869
+ cache_control?: BetaCacheControlEphemeral | null;
870
+ /**
871
+ * Per-member configuration for `browser_toolset_20260801`: one optional field per
872
+ * member tool, keyed by the member name — the same name the member's `tool_use`
873
+ * blocks carry. Every member is an accepted key, and a member's defaults apply
874
+ * wherever its key is absent. Unknown keys are rejected: the field set is this
875
+ * toolset version's complete member set.
876
+ */
877
+ configs?: BetaBrowserToolsetConfigs | null;
878
+ }
879
+ /**
880
+ * Per-member configuration for `browser_toolset_20260801`: one optional field per
881
+ * member tool, keyed by the member name — the same name the member's `tool_use`
882
+ * blocks carry. Every member is an accepted key, and a member's defaults apply
883
+ * wherever its key is absent. Unknown keys are rejected: the field set is this
884
+ * toolset version's complete member set.
885
+ */
886
+ export interface BetaBrowserToolsetConfigs {
887
+ /**
888
+ * `close_tab`'s config overrides.
889
+ */
890
+ close_tab?: BetaBrowserCloseTabConfig | null;
891
+ /**
892
+ * `double_click`'s config overrides.
893
+ */
894
+ double_click?: BetaBrowserDoubleClickConfig | null;
895
+ /**
896
+ * `file_upload`'s config overrides.
897
+ */
898
+ file_upload?: BetaBrowserFileUploadConfig | null;
899
+ /**
900
+ * `find`'s config overrides.
901
+ */
902
+ find?: BetaBrowserFindConfig | null;
903
+ /**
904
+ * `form_input`'s config overrides.
905
+ */
906
+ form_input?: BetaBrowserFormInputConfig | null;
907
+ /**
908
+ * `get_page_text`'s config overrides.
909
+ */
910
+ get_page_text?: BetaBrowserGetPageTextConfig | null;
911
+ /**
912
+ * `hold_key`'s config overrides.
913
+ */
914
+ hold_key?: BetaBrowserHoldKeyConfig | null;
915
+ /**
916
+ * `hover`'s config overrides.
917
+ */
918
+ hover?: BetaBrowserHoverConfig | null;
919
+ /**
920
+ * `javascript_exec`'s config overrides.
921
+ */
922
+ javascript_exec?: BetaBrowserJavascriptExecConfig | null;
923
+ /**
924
+ * `key`'s config overrides.
925
+ */
926
+ key?: BetaBrowserKeyConfig | null;
927
+ /**
928
+ * `left_click`'s config overrides.
929
+ */
930
+ left_click?: BetaBrowserLeftClickConfig | null;
931
+ /**
932
+ * `left_click_drag`'s config overrides.
933
+ */
934
+ left_click_drag?: BetaBrowserLeftClickDragConfig | null;
935
+ /**
936
+ * `left_mouse_down`'s config overrides.
937
+ */
938
+ left_mouse_down?: BetaBrowserLeftMouseDownConfig | null;
939
+ /**
940
+ * `left_mouse_up`'s config overrides.
941
+ */
942
+ left_mouse_up?: BetaBrowserLeftMouseUpConfig | null;
943
+ /**
944
+ * `list_tabs`'s config overrides.
945
+ */
946
+ list_tabs?: BetaBrowserListTabsConfig | null;
947
+ /**
948
+ * `middle_click`'s config overrides.
949
+ */
950
+ middle_click?: BetaBrowserMiddleClickConfig | null;
951
+ /**
952
+ * `mouse_move`'s config overrides.
953
+ */
954
+ mouse_move?: BetaBrowserMouseMoveConfig | null;
955
+ /**
956
+ * `navigate`'s config overrides.
957
+ */
958
+ navigate?: BetaBrowserNavigateConfig | null;
959
+ /**
960
+ * `new_tab`'s config overrides.
961
+ */
962
+ new_tab?: BetaBrowserNewTabConfig | null;
963
+ /**
964
+ * `read_console`'s config overrides.
965
+ */
966
+ read_console?: BetaBrowserReadConsoleConfig | null;
967
+ /**
968
+ * `read_network`'s config overrides.
969
+ */
970
+ read_network?: BetaBrowserReadNetworkConfig | null;
971
+ /**
972
+ * `read_page`'s config overrides.
973
+ */
974
+ read_page?: BetaBrowserReadPageConfig | null;
975
+ /**
976
+ * `right_click`'s config overrides.
977
+ */
978
+ right_click?: BetaBrowserRightClickConfig | null;
979
+ /**
980
+ * `screenshot`'s config overrides.
981
+ */
982
+ screenshot?: BetaBrowserScreenshotConfig | null;
983
+ /**
984
+ * `scroll`'s config overrides.
985
+ */
986
+ scroll?: BetaBrowserScrollConfig | null;
987
+ /**
988
+ * `scroll_to`'s config overrides.
989
+ */
990
+ scroll_to?: BetaBrowserScrollToConfig | null;
991
+ /**
992
+ * `switch_tab`'s config overrides.
993
+ */
994
+ switch_tab?: BetaBrowserSwitchTabConfig | null;
995
+ /**
996
+ * `triple_click`'s config overrides.
997
+ */
998
+ triple_click?: BetaBrowserTripleClickConfig | null;
999
+ /**
1000
+ * `type`'s config overrides.
1001
+ */
1002
+ type?: BetaBrowserTypeConfig | null;
1003
+ /**
1004
+ * `wait`'s config overrides.
1005
+ */
1006
+ wait?: BetaBrowserWaitConfig | null;
1007
+ /**
1008
+ * `zoom`'s config overrides.
1009
+ */
1010
+ zoom?: BetaBrowserZoomConfig | null;
1011
+ }
1012
+ /**
1013
+ * `triple_click`'s config overrides.
1014
+ */
1015
+ export interface BetaBrowserTripleClickConfig {
1016
+ /**
1017
+ * Defer loading for this member. Must resolve to the same value on every enabled
1018
+ * member of the toolset.
1019
+ */
1020
+ defer_loading?: boolean | null;
1021
+ /**
1022
+ * Whether this member is offered to the model. Default is per member, per the
1023
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1024
+ * the served schema.
1025
+ */
1026
+ enabled?: boolean | null;
1027
+ }
1028
+ /**
1029
+ * `type`'s config overrides.
1030
+ */
1031
+ export interface BetaBrowserTypeConfig {
1032
+ /**
1033
+ * Defer loading for this member. Must resolve to the same value on every enabled
1034
+ * member of the toolset.
1035
+ */
1036
+ defer_loading?: boolean | null;
1037
+ /**
1038
+ * Whether this member is offered to the model. Default is per member, per the
1039
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1040
+ * the served schema.
1041
+ */
1042
+ enabled?: boolean | null;
1043
+ }
1044
+ /**
1045
+ * `wait`'s config overrides.
1046
+ */
1047
+ export interface BetaBrowserWaitConfig {
1048
+ /**
1049
+ * Defer loading for this member. Must resolve to the same value on every enabled
1050
+ * member of the toolset.
1051
+ */
1052
+ defer_loading?: boolean | null;
1053
+ /**
1054
+ * Whether this member is offered to the model. Default is per member, per the
1055
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1056
+ * the served schema.
1057
+ */
1058
+ enabled?: boolean | null;
1059
+ }
1060
+ /**
1061
+ * `zoom`'s config overrides.
1062
+ */
1063
+ export interface BetaBrowserZoomConfig {
1064
+ /**
1065
+ * Defer loading for this member. Must resolve to the same value on every enabled
1066
+ * member of the toolset.
1067
+ */
1068
+ defer_loading?: boolean | null;
1069
+ /**
1070
+ * Whether this member is offered to the model. Default is per member, per the
1071
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1072
+ * the served schema.
1073
+ */
1074
+ enabled?: boolean | null;
1075
+ }
1076
+ export interface BetaCacheControlEphemeral {
1077
+ type: 'ephemeral';
1078
+ /**
1079
+ * The time-to-live for the cache control breakpoint.
1080
+ *
1081
+ * This may be one the following values:
1082
+ *
1083
+ * - `5m`: 5 minutes
1084
+ * - `1h`: 1 hour
1085
+ *
1086
+ * Defaults to `5m`. See
1087
+ * [prompt caching pricing](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)
1088
+ * for details.
1089
+ */
1090
+ ttl?: '5m' | '1h';
1091
+ }
1092
+ export interface BetaCacheCreation {
1093
+ /**
1094
+ * The number of input tokens used to create the 1 hour cache entry.
1095
+ */
1096
+ ephemeral_1h_input_tokens: number;
1097
+ /**
1098
+ * The number of input tokens used to create the 5 minute cache entry.
1099
+ */
1100
+ ephemeral_5m_input_tokens: number;
1101
+ }
1102
+ export interface BetaCacheMissMessagesChanged {
1103
+ /**
1104
+ * Approximate number of input tokens that would have been read from cache had the
1105
+ * prefix matched the previous request.
1106
+ */
1107
+ cache_missed_input_tokens: number;
1108
+ type: 'messages_changed';
1109
+ }
1110
+ export interface BetaCacheMissModelChanged {
1111
+ /**
1112
+ * Approximate number of input tokens that would have been read from cache had the
1113
+ * prefix matched the previous request.
1114
+ */
1115
+ cache_missed_input_tokens: number;
1116
+ type: 'model_changed';
1117
+ }
1118
+ export interface BetaCacheMissPreviousMessageNotFound {
1119
+ type: 'previous_message_not_found';
1120
+ }
1121
+ export interface BetaCacheMissSystemChanged {
1122
+ /**
1123
+ * Approximate number of input tokens that would have been read from cache had the
1124
+ * prefix matched the previous request.
1125
+ */
1126
+ cache_missed_input_tokens: number;
1127
+ type: 'system_changed';
1128
+ }
1129
+ export interface BetaCacheMissToolsChanged {
1130
+ /**
1131
+ * Approximate number of input tokens that would have been read from cache had the
1132
+ * prefix matched the previous request.
1133
+ */
1134
+ cache_missed_input_tokens: number;
1135
+ type: 'tools_changed';
1136
+ }
1137
+ export interface BetaCacheMissUnavailable {
1138
+ type: 'unavailable';
1139
+ }
1140
+ export interface BetaCitationCharLocation {
1141
+ cited_text: string;
1142
+ document_index: number;
1143
+ document_title: string | null;
1144
+ end_char_index: number;
1145
+ file_id: string | null;
1146
+ start_char_index: number;
1147
+ type: 'char_location';
1148
+ }
1149
+ export interface BetaCitationCharLocationParam {
1150
+ cited_text: string;
1151
+ document_index: number;
1152
+ document_title: string | null;
1153
+ end_char_index: number;
1154
+ start_char_index: number;
1155
+ type: 'char_location';
1156
+ }
1157
+ export interface BetaCitationConfig {
1158
+ enabled: boolean;
1159
+ }
1160
+ export interface BetaCitationContentBlockLocation {
1161
+ /**
1162
+ * The full text of the cited block range, concatenated.
1163
+ *
1164
+ * Always equals the contents of `content[start_block_index:end_block_index]`
1165
+ * joined together. The text block is the minimal citable unit; this field is never
1166
+ * a substring of a single block. Not counted toward output tokens, and not counted
1167
+ * toward input tokens when sent back in subsequent turns.
1168
+ */
1169
+ cited_text: string;
1170
+ document_index: number;
1171
+ document_title: string | null;
1172
+ /**
1173
+ * Exclusive 0-based end index of the cited block range in the source's `content`
1174
+ * array.
1175
+ *
1176
+ * Always greater than `start_block_index`; a single-block citation has
1177
+ * `end_block_index = start_block_index + 1`.
1178
+ */
1179
+ end_block_index: number;
1180
+ file_id: string | null;
1181
+ /**
1182
+ * 0-based index of the first cited block in the source's `content` array.
1183
+ */
1184
+ start_block_index: number;
1185
+ type: 'content_block_location';
1186
+ }
1187
+ export interface BetaCitationContentBlockLocationParam {
1188
+ /**
1189
+ * The full text of the cited block range, concatenated.
1190
+ *
1191
+ * Always equals the contents of `content[start_block_index:end_block_index]`
1192
+ * joined together. The text block is the minimal citable unit; this field is never
1193
+ * a substring of a single block. Not counted toward output tokens, and not counted
1194
+ * toward input tokens when sent back in subsequent turns.
1195
+ */
1196
+ cited_text: string;
1197
+ document_index: number;
1198
+ document_title: string | null;
1199
+ /**
1200
+ * Exclusive 0-based end index of the cited block range in the source's `content`
1201
+ * array.
1202
+ *
1203
+ * Always greater than `start_block_index`; a single-block citation has
1204
+ * `end_block_index = start_block_index + 1`.
1205
+ */
1206
+ end_block_index: number;
1207
+ /**
1208
+ * 0-based index of the first cited block in the source's `content` array.
1209
+ */
1210
+ start_block_index: number;
1211
+ type: 'content_block_location';
1212
+ }
1213
+ export interface BetaCitationPageLocation {
1214
+ cited_text: string;
1215
+ document_index: number;
1216
+ document_title: string | null;
1217
+ end_page_number: number;
1218
+ file_id: string | null;
1219
+ start_page_number: number;
1220
+ type: 'page_location';
1221
+ }
1222
+ export interface BetaCitationPageLocationParam {
1223
+ cited_text: string;
1224
+ document_index: number;
1225
+ document_title: string | null;
1226
+ end_page_number: number;
1227
+ start_page_number: number;
1228
+ type: 'page_location';
1229
+ }
1230
+ export interface BetaCitationSearchResultLocation {
1231
+ /**
1232
+ * The full text of the cited block range, concatenated.
1233
+ *
1234
+ * Always equals the contents of `content[start_block_index:end_block_index]`
1235
+ * joined together. The text block is the minimal citable unit; this field is never
1236
+ * a substring of a single block. Not counted toward output tokens, and not counted
1237
+ * toward input tokens when sent back in subsequent turns.
1238
+ */
1239
+ cited_text: string;
1240
+ /**
1241
+ * Exclusive 0-based end index of the cited block range in the source's `content`
1242
+ * array.
1243
+ *
1244
+ * Always greater than `start_block_index`; a single-block citation has
1245
+ * `end_block_index = start_block_index + 1`.
1246
+ */
1247
+ end_block_index: number;
1248
+ /**
1249
+ * 0-based index of the cited search result among all `search_result` content
1250
+ * blocks in the request, in the order they appear across messages and tool
1251
+ * results.
1252
+ *
1253
+ * Counted separately from `document_index`; server-side web search results are not
1254
+ * included in this count.
1255
+ */
1256
+ search_result_index: number;
1257
+ source: string;
1258
+ /**
1259
+ * 0-based index of the first cited block in the source's `content` array.
1260
+ */
1261
+ start_block_index: number;
1262
+ title: string | null;
1263
+ type: 'search_result_location';
1264
+ }
1265
+ export interface BetaCitationSearchResultLocationParam {
1266
+ /**
1267
+ * The full text of the cited block range, concatenated.
1268
+ *
1269
+ * Always equals the contents of `content[start_block_index:end_block_index]`
1270
+ * joined together. The text block is the minimal citable unit; this field is never
1271
+ * a substring of a single block. Not counted toward output tokens, and not counted
1272
+ * toward input tokens when sent back in subsequent turns.
1273
+ */
1274
+ cited_text: string;
1275
+ /**
1276
+ * Exclusive 0-based end index of the cited block range in the source's `content`
1277
+ * array.
1278
+ *
1279
+ * Always greater than `start_block_index`; a single-block citation has
1280
+ * `end_block_index = start_block_index + 1`.
1281
+ */
1282
+ end_block_index: number;
1283
+ /**
1284
+ * 0-based index of the cited search result among all `search_result` content
1285
+ * blocks in the request, in the order they appear across messages and tool
1286
+ * results.
1287
+ *
1288
+ * Counted separately from `document_index`; server-side web search results are not
1289
+ * included in this count.
1290
+ */
1291
+ search_result_index: number;
1292
+ source: string;
1293
+ /**
1294
+ * 0-based index of the first cited block in the source's `content` array.
1295
+ */
1296
+ start_block_index: number;
1297
+ title: string | null;
1298
+ type: 'search_result_location';
1299
+ }
1300
+ export interface BetaCitationWebSearchResultLocationParam {
1301
+ cited_text: string;
1302
+ encrypted_index: string;
1303
+ title: string | null;
1304
+ type: 'web_search_result_location';
1305
+ url: string;
1306
+ }
1307
+ export interface BetaCitationsConfigParam {
1308
+ enabled?: boolean;
1309
+ }
1310
+ export interface BetaCitationsDelta {
1311
+ citation: BetaCitationCharLocation | BetaCitationPageLocation | BetaCitationContentBlockLocation | BetaCitationsWebSearchResultLocation | BetaCitationSearchResultLocation;
1312
+ type: 'citations_delta';
1313
+ }
1314
+ export interface BetaCitationsWebSearchResultLocation {
1315
+ cited_text: string;
1316
+ encrypted_index: string;
1317
+ title: string | null;
1318
+ type: 'web_search_result_location';
1319
+ url: string;
1320
+ }
1321
+ export interface BetaClearThinking20251015Edit {
1322
+ type: 'clear_thinking_20251015';
1323
+ /**
1324
+ * Number of most recent assistant turns to keep thinking blocks for. Older turns
1325
+ * will have their thinking blocks removed.
1326
+ */
1327
+ keep?: BetaThinkingTurns | BetaAllThinkingTurns | 'all';
1328
+ }
1329
+ export interface BetaClearThinking20251015EditResponse {
1330
+ /**
1331
+ * Number of input tokens cleared by this edit.
1332
+ */
1333
+ cleared_input_tokens: number;
1334
+ /**
1335
+ * Number of thinking turns that were cleared.
1336
+ */
1337
+ cleared_thinking_turns: number;
1338
+ /**
1339
+ * The type of context management edit applied.
1340
+ */
1341
+ type: 'clear_thinking_20251015';
1342
+ }
1343
+ export interface BetaClearToolUses20250919Edit {
1344
+ type: 'clear_tool_uses_20250919';
1345
+ /**
1346
+ * Minimum number of tokens that must be cleared when triggered. Context will only
1347
+ * be modified if at least this many tokens can be removed.
1348
+ */
1349
+ clear_at_least?: BetaInputTokensClearAtLeast | null;
1350
+ /**
1351
+ * Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)
1352
+ */
1353
+ clear_tool_inputs?: boolean | Array<string> | null;
1354
+ /**
1355
+ * Tool names whose uses are preserved from clearing
1356
+ */
1357
+ exclude_tools?: Array<string> | null;
1358
+ /**
1359
+ * Number of tool uses to retain in the conversation
1360
+ */
1361
+ keep?: BetaToolUsesKeep;
1362
+ /**
1363
+ * Condition that triggers the context management strategy
1364
+ */
1365
+ trigger?: BetaInputTokensTrigger | BetaToolUsesTrigger;
1366
+ }
1367
+ export interface BetaClearToolUses20250919EditResponse {
1368
+ /**
1369
+ * Number of input tokens cleared by this edit.
1370
+ */
1371
+ cleared_input_tokens: number;
1372
+ /**
1373
+ * Number of tool uses that were cleared.
1374
+ */
1375
+ cleared_tool_uses: number;
1376
+ /**
1377
+ * The type of context management edit applied.
1378
+ */
1379
+ type: 'clear_tool_uses_20250919';
1380
+ }
1381
+ export interface BetaCodeExecutionOutputBlock {
1382
+ file_id: string;
1383
+ type: 'code_execution_output';
1384
+ }
1385
+ export interface BetaCodeExecutionOutputBlockParam {
1386
+ file_id: string;
1387
+ type: 'code_execution_output';
1388
+ }
1389
+ export interface BetaCodeExecutionResultBlock {
1390
+ content: Array<BetaCodeExecutionOutputBlock>;
1391
+ return_code: number;
1392
+ stderr: string;
1393
+ stdout: string;
1394
+ type: 'code_execution_result';
1395
+ }
1396
+ export interface BetaCodeExecutionResultBlockParam {
1397
+ content: Array<BetaCodeExecutionOutputBlockParam>;
1398
+ return_code: number;
1399
+ stderr: string;
1400
+ stdout: string;
1401
+ type: 'code_execution_result';
1402
+ }
1403
+ export interface BetaCodeExecutionTool20250522 {
1404
+ /**
1405
+ * Name of the tool.
1406
+ *
1407
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1408
+ */
1409
+ name: 'code_execution';
1410
+ type: 'code_execution_20250522';
1411
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1412
+ /**
1413
+ * Create a cache control breakpoint at this content block.
1414
+ */
1415
+ cache_control?: BetaCacheControlEphemeral | null;
1416
+ /**
1417
+ * If true, tool will not be included in initial system prompt. Only loaded when
1418
+ * returned via tool_reference from tool search.
1419
+ */
1420
+ defer_loading?: boolean;
1421
+ /**
1422
+ * When true, guarantees schema validation on tool names and inputs
1423
+ */
1424
+ strict?: boolean;
1425
+ }
1426
+ export interface BetaCodeExecutionTool20250825 {
1427
+ /**
1428
+ * Name of the tool.
1429
+ *
1430
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1431
+ */
1432
+ name: 'code_execution';
1433
+ type: 'code_execution_20250825';
1434
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1435
+ /**
1436
+ * Create a cache control breakpoint at this content block.
1437
+ */
1438
+ cache_control?: BetaCacheControlEphemeral | null;
1439
+ /**
1440
+ * If true, tool will not be included in initial system prompt. Only loaded when
1441
+ * returned via tool_reference from tool search.
1442
+ */
1443
+ defer_loading?: boolean;
1444
+ /**
1445
+ * When true, guarantees schema validation on tool names and inputs
1446
+ */
1447
+ strict?: boolean;
1448
+ }
1449
+ /**
1450
+ * Code execution tool with REPL state persistence (daemon mode + gVisor
1451
+ * checkpoint).
1452
+ */
1453
+ export interface BetaCodeExecutionTool20260120 {
1454
+ /**
1455
+ * Name of the tool.
1456
+ *
1457
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1458
+ */
1459
+ name: 'code_execution';
1460
+ type: 'code_execution_20260120';
1461
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1462
+ /**
1463
+ * Create a cache control breakpoint at this content block.
1464
+ */
1465
+ cache_control?: BetaCacheControlEphemeral | null;
1466
+ /**
1467
+ * If true, tool will not be included in initial system prompt. Only loaded when
1468
+ * returned via tool_reference from tool search.
1469
+ */
1470
+ defer_loading?: boolean;
1471
+ /**
1472
+ * When true, guarantees schema validation on tool names and inputs
1473
+ */
1474
+ strict?: boolean;
1475
+ }
1476
+ /**
1477
+ * Code execution tool with REPL state persistence.
1478
+ */
1479
+ export interface BetaCodeExecutionTool20260521 {
1480
+ /**
1481
+ * Name of the tool.
1482
+ *
1483
+ * This is how the tool will be called by the model and in `tool_use` blocks.
1484
+ */
1485
+ name: 'code_execution';
1486
+ type: 'code_execution_20260521';
1487
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1488
+ /**
1489
+ * Create a cache control breakpoint at this content block.
1490
+ */
1491
+ cache_control?: BetaCacheControlEphemeral | null;
1492
+ /**
1493
+ * If true, tool will not be included in initial system prompt. Only loaded when
527
1494
  * returned via tool_reference from tool search.
528
1495
  */
529
1496
  defer_loading?: boolean;
@@ -570,102 +1537,475 @@ export interface BetaCodeExecutionToolResultErrorParam {
570
1537
  type: 'code_execution_tool_result_error';
571
1538
  }
572
1539
  /**
573
- * Automatically compact older context when reaching the configured trigger
574
- * threshold.
1540
+ * Automatically compact older context when reaching the configured trigger
1541
+ * threshold.
1542
+ */
1543
+ export interface BetaCompact20260112Edit {
1544
+ type: 'compact_20260112';
1545
+ /**
1546
+ * Additional instructions for summarization.
1547
+ */
1548
+ instructions?: string | null;
1549
+ /**
1550
+ * Whether to pause after compaction and return the compaction block to the user.
1551
+ */
1552
+ pause_after_compaction?: boolean;
1553
+ /**
1554
+ * When to trigger compaction. Defaults to 150000 input tokens.
1555
+ */
1556
+ trigger?: BetaInputTokensTrigger | null;
1557
+ }
1558
+ /**
1559
+ * A compaction block returned when autocompact is triggered.
1560
+ *
1561
+ * When content is None, it indicates the compaction failed to produce a valid
1562
+ * summary (e.g., malformed output from the model). Clients may round-trip
1563
+ * compaction blocks with null content; the server treats them as no-ops.
1564
+ */
1565
+ export interface BetaCompactionBlock {
1566
+ /**
1567
+ * Summary of compacted content, or null if compaction failed
1568
+ */
1569
+ content: string | null;
1570
+ /**
1571
+ * Opaque metadata from prior compaction, to be round-tripped verbatim
1572
+ */
1573
+ encrypted_content: string | null;
1574
+ type: 'compaction';
1575
+ }
1576
+ /**
1577
+ * A compaction block containing summary of previous context.
1578
+ *
1579
+ * Users should round-trip these blocks from responses to subsequent requests to
1580
+ * maintain context across compaction boundaries.
1581
+ *
1582
+ * When content is None, the block represents a failed compaction. The server
1583
+ * treats these as no-ops. Empty string content is not allowed.
1584
+ */
1585
+ export interface BetaCompactionBlockParam {
1586
+ type: 'compaction';
1587
+ /**
1588
+ * Create a cache control breakpoint at this content block.
1589
+ */
1590
+ cache_control?: BetaCacheControlEphemeral | null;
1591
+ /**
1592
+ * Summary of previously compacted content, or null if compaction failed
1593
+ */
1594
+ content?: string | null;
1595
+ /**
1596
+ * Opaque metadata from prior compaction, to be round-tripped verbatim
1597
+ */
1598
+ encrypted_content?: string | null;
1599
+ }
1600
+ export interface BetaCompactionContentBlockDelta {
1601
+ content: string | null;
1602
+ /**
1603
+ * Opaque metadata from prior compaction, to be round-tripped verbatim
1604
+ */
1605
+ encrypted_content: string | null;
1606
+ type: 'compaction_delta';
1607
+ }
1608
+ /**
1609
+ * Token usage for a compaction iteration.
1610
+ */
1611
+ export interface BetaCompactionIterationUsage {
1612
+ /**
1613
+ * Breakdown of cached tokens by TTL
1614
+ */
1615
+ cache_creation: BetaCacheCreation | null;
1616
+ /**
1617
+ * The number of input tokens used to create the cache entry.
1618
+ */
1619
+ cache_creation_input_tokens: number;
1620
+ /**
1621
+ * The number of input tokens read from the cache.
1622
+ */
1623
+ cache_read_input_tokens: number;
1624
+ /**
1625
+ * The number of input tokens which were used.
1626
+ */
1627
+ input_tokens: number;
1628
+ /**
1629
+ * The number of output tokens which were used.
1630
+ */
1631
+ output_tokens: number;
1632
+ /**
1633
+ * Usage for a compaction iteration
1634
+ */
1635
+ type: 'compaction';
1636
+ }
1637
+ /**
1638
+ * `cursor_position`'s config overrides.
1639
+ */
1640
+ export interface BetaComputerCursorPositionConfig {
1641
+ /**
1642
+ * Defer loading for this member. Must resolve to the same value on every enabled
1643
+ * member of the toolset.
1644
+ */
1645
+ defer_loading?: boolean | null;
1646
+ /**
1647
+ * Whether this member is offered to the model. Default is per member, per the
1648
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1649
+ * the served schema.
1650
+ */
1651
+ enabled?: boolean | null;
1652
+ }
1653
+ /**
1654
+ * `double_click`'s config overrides.
1655
+ */
1656
+ export interface BetaComputerDoubleClickConfig {
1657
+ /**
1658
+ * Defer loading for this member. Must resolve to the same value on every enabled
1659
+ * member of the toolset.
1660
+ */
1661
+ defer_loading?: boolean | null;
1662
+ /**
1663
+ * Whether this member is offered to the model. Default is per member, per the
1664
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1665
+ * the served schema.
1666
+ */
1667
+ enabled?: boolean | null;
1668
+ }
1669
+ /**
1670
+ * `hold_key`'s config overrides.
1671
+ */
1672
+ export interface BetaComputerHoldKeyConfig {
1673
+ /**
1674
+ * Defer loading for this member. Must resolve to the same value on every enabled
1675
+ * member of the toolset.
1676
+ */
1677
+ defer_loading?: boolean | null;
1678
+ /**
1679
+ * Whether this member is offered to the model. Default is per member, per the
1680
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1681
+ * the served schema.
1682
+ */
1683
+ enabled?: boolean | null;
1684
+ }
1685
+ /**
1686
+ * `key`'s config overrides.
1687
+ */
1688
+ export interface BetaComputerKeyConfig {
1689
+ /**
1690
+ * Defer loading for this member. Must resolve to the same value on every enabled
1691
+ * member of the toolset.
1692
+ */
1693
+ defer_loading?: boolean | null;
1694
+ /**
1695
+ * Whether this member is offered to the model. Default is per member, per the
1696
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1697
+ * the served schema.
1698
+ */
1699
+ enabled?: boolean | null;
1700
+ }
1701
+ /**
1702
+ * `left_click`'s config overrides.
1703
+ */
1704
+ export interface BetaComputerLeftClickConfig {
1705
+ /**
1706
+ * Defer loading for this member. Must resolve to the same value on every enabled
1707
+ * member of the toolset.
1708
+ */
1709
+ defer_loading?: boolean | null;
1710
+ /**
1711
+ * Whether this member is offered to the model. Default is per member, per the
1712
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1713
+ * the served schema.
1714
+ */
1715
+ enabled?: boolean | null;
1716
+ }
1717
+ /**
1718
+ * `left_click_drag`'s config overrides.
1719
+ */
1720
+ export interface BetaComputerLeftClickDragConfig {
1721
+ /**
1722
+ * Defer loading for this member. Must resolve to the same value on every enabled
1723
+ * member of the toolset.
1724
+ */
1725
+ defer_loading?: boolean | null;
1726
+ /**
1727
+ * Whether this member is offered to the model. Default is per member, per the
1728
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1729
+ * the served schema.
1730
+ */
1731
+ enabled?: boolean | null;
1732
+ }
1733
+ /**
1734
+ * `left_mouse_down`'s config overrides.
1735
+ */
1736
+ export interface BetaComputerLeftMouseDownConfig {
1737
+ /**
1738
+ * Defer loading for this member. Must resolve to the same value on every enabled
1739
+ * member of the toolset.
1740
+ */
1741
+ defer_loading?: boolean | null;
1742
+ /**
1743
+ * Whether this member is offered to the model. Default is per member, per the
1744
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1745
+ * the served schema.
1746
+ */
1747
+ enabled?: boolean | null;
1748
+ }
1749
+ /**
1750
+ * `left_mouse_up`'s config overrides.
1751
+ */
1752
+ export interface BetaComputerLeftMouseUpConfig {
1753
+ /**
1754
+ * Defer loading for this member. Must resolve to the same value on every enabled
1755
+ * member of the toolset.
1756
+ */
1757
+ defer_loading?: boolean | null;
1758
+ /**
1759
+ * Whether this member is offered to the model. Default is per member, per the
1760
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1761
+ * the served schema.
1762
+ */
1763
+ enabled?: boolean | null;
1764
+ }
1765
+ /**
1766
+ * `middle_click`'s config overrides.
1767
+ */
1768
+ export interface BetaComputerMiddleClickConfig {
1769
+ /**
1770
+ * Defer loading for this member. Must resolve to the same value on every enabled
1771
+ * member of the toolset.
1772
+ */
1773
+ defer_loading?: boolean | null;
1774
+ /**
1775
+ * Whether this member is offered to the model. Default is per member, per the
1776
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1777
+ * the served schema.
1778
+ */
1779
+ enabled?: boolean | null;
1780
+ }
1781
+ /**
1782
+ * `mouse_move`'s config overrides.
1783
+ */
1784
+ export interface BetaComputerMouseMoveConfig {
1785
+ /**
1786
+ * Defer loading for this member. Must resolve to the same value on every enabled
1787
+ * member of the toolset.
1788
+ */
1789
+ defer_loading?: boolean | null;
1790
+ /**
1791
+ * Whether this member is offered to the model. Default is per member, per the
1792
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1793
+ * the served schema.
1794
+ */
1795
+ enabled?: boolean | null;
1796
+ }
1797
+ /**
1798
+ * `right_click`'s config overrides.
1799
+ */
1800
+ export interface BetaComputerRightClickConfig {
1801
+ /**
1802
+ * Defer loading for this member. Must resolve to the same value on every enabled
1803
+ * member of the toolset.
1804
+ */
1805
+ defer_loading?: boolean | null;
1806
+ /**
1807
+ * Whether this member is offered to the model. Default is per member, per the
1808
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1809
+ * the served schema.
1810
+ */
1811
+ enabled?: boolean | null;
1812
+ }
1813
+ /**
1814
+ * `screenshot`'s config overrides.
575
1815
  */
576
- export interface BetaCompact20260112Edit {
577
- type: 'compact_20260112';
1816
+ export interface BetaComputerScreenshotConfig {
578
1817
  /**
579
- * Additional instructions for summarization.
1818
+ * Defer loading for this member. Must resolve to the same value on every enabled
1819
+ * member of the toolset.
580
1820
  */
581
- instructions?: string | null;
1821
+ defer_loading?: boolean | null;
582
1822
  /**
583
- * Whether to pause after compaction and return the compaction block to the user.
1823
+ * Whether this member is offered to the model. Default is per member, per the
1824
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1825
+ * the served schema.
584
1826
  */
585
- pause_after_compaction?: boolean;
1827
+ enabled?: boolean | null;
1828
+ }
1829
+ /**
1830
+ * `scroll`'s config overrides.
1831
+ */
1832
+ export interface BetaComputerScrollConfig {
586
1833
  /**
587
- * When to trigger compaction. Defaults to 150000 input tokens.
1834
+ * Defer loading for this member. Must resolve to the same value on every enabled
1835
+ * member of the toolset.
588
1836
  */
589
- trigger?: BetaInputTokensTrigger | null;
1837
+ defer_loading?: boolean | null;
1838
+ /**
1839
+ * Whether this member is offered to the model. Default is per member, per the
1840
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1841
+ * the served schema.
1842
+ */
1843
+ enabled?: boolean | null;
590
1844
  }
591
1845
  /**
592
- * A compaction block returned when autocompact is triggered.
593
- *
594
- * When content is None, it indicates the compaction failed to produce a valid
595
- * summary (e.g., malformed output from the model). Clients may round-trip
596
- * compaction blocks with null content; the server treats them as no-ops.
1846
+ * The computer toolset: a single `tools[]` entry (carrying no `name`) that
1847
+ * declares the computer tool family. The model is served the family's tool with
1848
+ * any members disabled via `configs` removed from its schema. Every member is
1849
+ * enabled by default, zoom included. The single-tool options `display_number` and
1850
+ * `enable_zoom` are not fields of a toolset entry it carries only `type`,
1851
+ * `configs`, and `cache_control`; zoom is controlled via `configs.zoom.enabled`.
597
1852
  */
598
- export interface BetaCompactionBlock {
1853
+ export interface BetaComputerToolset20260801 {
1854
+ type: 'computer_toolset_20260801';
1855
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
599
1856
  /**
600
- * Summary of compacted content, or null if compaction failed
1857
+ * Create a cache control breakpoint at this content block.
601
1858
  */
602
- content: string | null;
1859
+ cache_control?: BetaCacheControlEphemeral | null;
603
1860
  /**
604
- * Opaque metadata from prior compaction, to be round-tripped verbatim
1861
+ * Per-member configuration for `computer_toolset_20260801`: one optional field per
1862
+ * member tool, keyed by the member name — the same name the member's `tool_use`
1863
+ * blocks carry. Every member is an accepted key, and a member's defaults apply
1864
+ * wherever its key is absent. Unknown keys are rejected: the field set is this
1865
+ * toolset version's complete member set.
605
1866
  */
606
- encrypted_content: string | null;
607
- type: 'compaction';
1867
+ configs?: BetaComputerToolsetConfigs | null;
608
1868
  }
609
1869
  /**
610
- * A compaction block containing summary of previous context.
611
- *
612
- * Users should round-trip these blocks from responses to subsequent requests to
613
- * maintain context across compaction boundaries.
614
- *
615
- * When content is None, the block represents a failed compaction. The server
616
- * treats these as no-ops. Empty string content is not allowed.
1870
+ * Per-member configuration for `computer_toolset_20260801`: one optional field per
1871
+ * member tool, keyed by the member name — the same name the member's `tool_use`
1872
+ * blocks carry. Every member is an accepted key, and a member's defaults apply
1873
+ * wherever its key is absent. Unknown keys are rejected: the field set is this
1874
+ * toolset version's complete member set.
617
1875
  */
618
- export interface BetaCompactionBlockParam {
1876
+ export interface BetaComputerToolsetConfigs {
619
1877
  /**
620
- * Summary of previously compacted content, or null if compaction failed
1878
+ * `cursor_position`'s config overrides.
621
1879
  */
622
- content: string | null;
623
- type: 'compaction';
1880
+ cursor_position?: BetaComputerCursorPositionConfig | null;
624
1881
  /**
625
- * Create a cache control breakpoint at this content block.
1882
+ * `double_click`'s config overrides.
626
1883
  */
627
- cache_control?: BetaCacheControlEphemeral | null;
1884
+ double_click?: BetaComputerDoubleClickConfig | null;
628
1885
  /**
629
- * Opaque metadata from prior compaction, to be round-tripped verbatim
1886
+ * `hold_key`'s config overrides.
630
1887
  */
631
- encrypted_content?: string | null;
1888
+ hold_key?: BetaComputerHoldKeyConfig | null;
1889
+ /**
1890
+ * `key`'s config overrides.
1891
+ */
1892
+ key?: BetaComputerKeyConfig | null;
1893
+ /**
1894
+ * `left_click`'s config overrides.
1895
+ */
1896
+ left_click?: BetaComputerLeftClickConfig | null;
1897
+ /**
1898
+ * `left_click_drag`'s config overrides.
1899
+ */
1900
+ left_click_drag?: BetaComputerLeftClickDragConfig | null;
1901
+ /**
1902
+ * `left_mouse_down`'s config overrides.
1903
+ */
1904
+ left_mouse_down?: BetaComputerLeftMouseDownConfig | null;
1905
+ /**
1906
+ * `left_mouse_up`'s config overrides.
1907
+ */
1908
+ left_mouse_up?: BetaComputerLeftMouseUpConfig | null;
1909
+ /**
1910
+ * `middle_click`'s config overrides.
1911
+ */
1912
+ middle_click?: BetaComputerMiddleClickConfig | null;
1913
+ /**
1914
+ * `mouse_move`'s config overrides.
1915
+ */
1916
+ mouse_move?: BetaComputerMouseMoveConfig | null;
1917
+ /**
1918
+ * `right_click`'s config overrides.
1919
+ */
1920
+ right_click?: BetaComputerRightClickConfig | null;
1921
+ /**
1922
+ * `screenshot`'s config overrides.
1923
+ */
1924
+ screenshot?: BetaComputerScreenshotConfig | null;
1925
+ /**
1926
+ * `scroll`'s config overrides.
1927
+ */
1928
+ scroll?: BetaComputerScrollConfig | null;
1929
+ /**
1930
+ * `triple_click`'s config overrides.
1931
+ */
1932
+ triple_click?: BetaComputerTripleClickConfig | null;
1933
+ /**
1934
+ * `type`'s config overrides.
1935
+ */
1936
+ type?: BetaComputerTypeConfig | null;
1937
+ /**
1938
+ * `wait`'s config overrides.
1939
+ */
1940
+ wait?: BetaComputerWaitConfig | null;
1941
+ /**
1942
+ * `zoom`'s config overrides.
1943
+ */
1944
+ zoom?: BetaComputerZoomConfig | null;
632
1945
  }
633
- export interface BetaCompactionContentBlockDelta {
634
- content: string | null;
1946
+ /**
1947
+ * `triple_click`'s config overrides.
1948
+ */
1949
+ export interface BetaComputerTripleClickConfig {
635
1950
  /**
636
- * Opaque metadata from prior compaction, to be round-tripped verbatim
1951
+ * Defer loading for this member. Must resolve to the same value on every enabled
1952
+ * member of the toolset.
637
1953
  */
638
- encrypted_content: string | null;
639
- type: 'compaction_delta';
1954
+ defer_loading?: boolean | null;
1955
+ /**
1956
+ * Whether this member is offered to the model. Default is per member, per the
1957
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1958
+ * the served schema.
1959
+ */
1960
+ enabled?: boolean | null;
640
1961
  }
641
1962
  /**
642
- * Token usage for a compaction iteration.
1963
+ * `type`'s config overrides.
643
1964
  */
644
- export interface BetaCompactionIterationUsage {
1965
+ export interface BetaComputerTypeConfig {
645
1966
  /**
646
- * Breakdown of cached tokens by TTL
1967
+ * Defer loading for this member. Must resolve to the same value on every enabled
1968
+ * member of the toolset.
647
1969
  */
648
- cache_creation: BetaCacheCreation | null;
1970
+ defer_loading?: boolean | null;
649
1971
  /**
650
- * The number of input tokens used to create the cache entry.
1972
+ * Whether this member is offered to the model. Default is per member, per the
1973
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1974
+ * the served schema.
651
1975
  */
652
- cache_creation_input_tokens: number;
1976
+ enabled?: boolean | null;
1977
+ }
1978
+ /**
1979
+ * `wait`'s config overrides.
1980
+ */
1981
+ export interface BetaComputerWaitConfig {
653
1982
  /**
654
- * The number of input tokens read from the cache.
1983
+ * Defer loading for this member. Must resolve to the same value on every enabled
1984
+ * member of the toolset.
655
1985
  */
656
- cache_read_input_tokens: number;
1986
+ defer_loading?: boolean | null;
657
1987
  /**
658
- * The number of input tokens which were used.
1988
+ * Whether this member is offered to the model. Default is per member, per the
1989
+ * toolset's documentation. A member whose enabled resolves false is withheld from
1990
+ * the served schema.
659
1991
  */
660
- input_tokens: number;
1992
+ enabled?: boolean | null;
1993
+ }
1994
+ /**
1995
+ * `zoom`'s config overrides.
1996
+ */
1997
+ export interface BetaComputerZoomConfig {
661
1998
  /**
662
- * The number of output tokens which were used.
1999
+ * Defer loading for this member. Must resolve to the same value on every enabled
2000
+ * member of the toolset.
663
2001
  */
664
- output_tokens: number;
2002
+ defer_loading?: boolean | null;
665
2003
  /**
666
- * Usage for a compaction iteration
2004
+ * Whether this member is offered to the model. Default is per member, per the
2005
+ * toolset's documentation. A member whose enabled resolves false is withheld from
2006
+ * the served schema.
667
2007
  */
668
- type: 'compaction';
2008
+ enabled?: boolean | null;
669
2009
  }
670
2010
  /**
671
2011
  * Information about the container used in the request (for the code execution
@@ -720,11 +2060,11 @@ export interface BetaContainerUploadBlockParam {
720
2060
  /**
721
2061
  * Response model for a file uploaded to the container.
722
2062
  */
723
- export type BetaContentBlock = BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaAdvisorToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock | BetaCompactionBlock;
2063
+ export type BetaContentBlock = BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaAdvisorToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock | BetaCompactionBlock | BetaFallbackBlock;
724
2064
  /**
725
2065
  * Regular text content.
726
2066
  */
727
- export type BetaContentBlockParam = BetaTextBlockParam | BetaImageBlockParam | BetaRequestDocumentBlock | BetaSearchResultBlockParam | BetaThinkingBlockParam | BetaRedactedThinkingBlockParam | BetaToolUseBlockParam | BetaToolResultBlockParam | BetaServerToolUseBlockParam | BetaWebSearchToolResultBlockParam | BetaWebFetchToolResultBlockParam | BetaAdvisorToolResultBlockParam | BetaCodeExecutionToolResultBlockParam | BetaBashCodeExecutionToolResultBlockParam | BetaTextEditorCodeExecutionToolResultBlockParam | BetaToolSearchToolResultBlockParam | BetaMCPToolUseBlockParam | BetaRequestMCPToolResultBlockParam | BetaContainerUploadBlockParam | BetaCompactionBlockParam;
2067
+ export type BetaContentBlockParam = BetaTextBlockParam | BetaImageBlockParam | BetaRequestDocumentBlock | BetaSearchResultBlockParam | BetaThinkingBlockParam | BetaRedactedThinkingBlockParam | BetaToolUseBlockParam | BetaToolResultBlockParam | BetaServerToolUseBlockParam | BetaWebSearchToolResultBlockParam | BetaWebFetchToolResultBlockParam | BetaAdvisorToolResultBlockParam | BetaCodeExecutionToolResultBlockParam | BetaBashCodeExecutionToolResultBlockParam | BetaTextEditorCodeExecutionToolResultBlockParam | BetaToolSearchToolResultBlockParam | BetaMCPToolUseBlockParam | BetaRequestMCPToolResultBlockParam | BetaContainerUploadBlockParam | BetaCompactionBlockParam | BetaRequestToolAdditionBlock | BetaRequestToolRemovalBlock | BetaFallbackBlockParam;
728
2068
  export interface BetaContentBlockSource {
729
2069
  content: string | Array<BetaContentBlockSourceContent>;
730
2070
  type: 'content';
@@ -738,54 +2078,336 @@ export interface BetaContextManagementConfig {
738
2078
  }
739
2079
  export interface BetaContextManagementResponse {
740
2080
  /**
741
- * List of context management edits that were applied.
2081
+ * List of context management edits that were applied.
2082
+ */
2083
+ applied_edits: Array<BetaClearToolUses20250919EditResponse | BetaClearThinking20251015EditResponse>;
2084
+ }
2085
+ export interface BetaCountTokensContextManagementResponse {
2086
+ /**
2087
+ * The original token count before context management was applied
2088
+ */
2089
+ original_input_tokens: number;
2090
+ }
2091
+ /**
2092
+ * Response envelope for request-level diagnostics. Present (possibly null)
2093
+ * whenever the caller supplied `diagnostics` on the request.
2094
+ */
2095
+ export interface BetaDiagnostics {
2096
+ /**
2097
+ * Explains why the prompt cache could not fully reuse the prefix from the request
2098
+ * identified by `diagnostics.previous_message_id`. `null` means diagnosis is still
2099
+ * pending — the response was serialized before the background comparison
2100
+ * completed.
2101
+ */
2102
+ cache_miss_reason: BetaCacheMissModelChanged | BetaCacheMissSystemChanged | BetaCacheMissToolsChanged | BetaCacheMissMessagesChanged | BetaCacheMissPreviousMessageNotFound | BetaCacheMissUnavailable | null;
2103
+ }
2104
+ /**
2105
+ * Request-level diagnostics. Currently carries the previous response id for
2106
+ * prompt-cache divergence reporting.
2107
+ */
2108
+ export interface BetaDiagnosticsParam {
2109
+ /**
2110
+ * The `id` (`msg_...`) from this client's previous /v1/messages response. The
2111
+ * server compares that request's prompt fingerprint against this one and returns
2112
+ * `diagnostics.cache_miss_reason` when the prompt-cache prefix could not be
2113
+ * reused. Pass `null` on the first turn to opt in without a prior message to
2114
+ * compare.
2115
+ */
2116
+ previous_message_id?: string | null;
2117
+ }
2118
+ /**
2119
+ * Tool invocation directly from the model.
2120
+ */
2121
+ export interface BetaDirectCaller {
2122
+ type: 'direct';
2123
+ }
2124
+ export interface BetaDocumentBlock {
2125
+ /**
2126
+ * Citation configuration for the document
2127
+ */
2128
+ citations: BetaCitationConfig | null;
2129
+ source: BetaBase64PDFSource | BetaPlainTextSource;
2130
+ /**
2131
+ * The title of the document
2132
+ */
2133
+ title: string | null;
2134
+ type: 'document';
2135
+ }
2136
+ /**
2137
+ * Code execution result with encrypted stdout for PFC + web_search results.
2138
+ */
2139
+ export interface BetaEncryptedCodeExecutionResultBlock {
2140
+ content: Array<BetaCodeExecutionOutputBlock>;
2141
+ encrypted_stdout: string;
2142
+ return_code: number;
2143
+ stderr: string;
2144
+ type: 'encrypted_code_execution_result';
2145
+ }
2146
+ /**
2147
+ * Code execution result with encrypted stdout for PFC + web_search results.
2148
+ */
2149
+ export interface BetaEncryptedCodeExecutionResultBlockParam {
2150
+ content: Array<BetaCodeExecutionOutputBlockParam>;
2151
+ encrypted_stdout: string;
2152
+ return_code: number;
2153
+ stderr: string;
2154
+ type: 'encrypted_code_execution_result';
2155
+ }
2156
+ /**
2157
+ * Marks the point in `content` where one model's output gives way to the next.
2158
+ *
2159
+ * One block appears per hop where a preceding model actually ran this turn and
2160
+ * declined. A turn where no preceding model ran and declined has no such boundary
2161
+ * and carries no block — the signal for whether a fallback model served the
2162
+ * response is the presence of a `fallback_message` entry in `usage.iterations`,
2163
+ * not this block.
2164
+ *
2165
+ * The block is treated like a server-tool content block for streaming: it arrives
2166
+ * via the standard `content_block_start` / `content_block_stop` pair and carries
2167
+ * no deltas.
2168
+ */
2169
+ export interface BetaFallbackBlock {
2170
+ /**
2171
+ * The model whose output ends at this point — the model that declined at this hop.
2172
+ * When the declining hop is the requested model, its `model` echoes the top-level
2173
+ * `model` string the caller sent (alias or canonical); when the declining hop is a
2174
+ * fallback model, its `model` is that model's canonical id.
2175
+ */
2176
+ from: BetaFallbackInfo;
2177
+ /**
2178
+ * The fallback model producing the content that follows this block. Its `model` is
2179
+ * always the canonical id.
2180
+ */
2181
+ to: BetaFallbackInfo;
2182
+ /**
2183
+ * What caused the `from` model to hand over at this hop.
2184
+ */
2185
+ trigger: BetaFallbackRefusalTrigger;
2186
+ type: 'fallback';
2187
+ }
2188
+ /**
2189
+ * A `fallback` block echoed back from a prior response.
2190
+ *
2191
+ * Accepted in `messages[].content` and not rendered into the prompt; not validated
2192
+ * against the request's `fallbacks` chain or top-level `model`.
2193
+ *
2194
+ * Echo the assistant turn back verbatim, including this block in its original
2195
+ * position. The block marks the boundary between content produced before and after
2196
+ * a fallback hop, and the server relies on that boundary to validate the turn:
2197
+ * when thinking runs flank the boundary, omitting the block merges them into one
2198
+ * span the server cannot validate (the request is rejected), and moving it into
2199
+ * the middle of a single run is likewise rejected; between non-thinking blocks the
2200
+ * block's placement has no validation effect.
2201
+ */
2202
+ export interface BetaFallbackBlockParam {
2203
+ /**
2204
+ * Identifies one hop of a fallback transition.
2205
+ */
2206
+ from: BetaFallbackInfoParam;
2207
+ /**
2208
+ * Identifies one hop of a fallback transition.
2209
+ */
2210
+ to: BetaFallbackInfoParam;
2211
+ type: 'fallback';
2212
+ /**
2213
+ * The response block's `trigger`, echoed verbatim. Accepted and ignored by the
2214
+ * server; any object or `null` is allowed.
2215
+ */
2216
+ trigger?: unknown;
2217
+ }
2218
+ /**
2219
+ * No reprice was applied; `reason` says why.
2220
+ */
2221
+ export interface BetaFallbackCreditNotApplied {
2222
+ /**
2223
+ * Why the reprice was not applied.
2224
+ *
2225
+ * A closed enum; additions to the redemption-check vocabulary arrive as deliberate
2226
+ * schema updates.
2227
+ */
2228
+ reason: 'body_mismatch' | 'continuation_excluded' | 'continuation_only' | 'expired' | 'invalid_target_model' | 'not_enabled' | 'reprice_unavailable' | 'temporarily_unavailable' | 'variant_fields_present' | 'wrong_organization' | 'wrong_platform' | 'wrong_workspace';
2229
+ type: 'not_applied';
2230
+ /**
2231
+ * Request fields to remove before retrying, so the retry can redeem this token.
2232
+ *
2233
+ * Present exactly when `reason` is `variant_fields_present` — never null, never an
2234
+ * empty array; absent otherwise. Fields are named only from your own request, and
2235
+ * only after the sealed variant hash matched. A served best-effort retry has
2236
+ * already been billed at normal price; nothing redeems retroactively, but a
2237
+ * corrected re-send inside the token's five-minute window can still redeem.
2238
+ */
2239
+ remove_to_redeem?: Array<string> | null;
2240
+ }
2241
+ /**
2242
+ * The reprice was applied: the retry is billed as if the conversation had been on
2243
+ * the retry model all along.
2244
+ */
2245
+ export interface BetaFallbackCreditRedeemed {
2246
+ type: 'redeemed';
2247
+ }
2248
+ /**
2249
+ * Object form of `fallback_credit_token`: the token plus a redemption mode.
2250
+ *
2251
+ * Requires `anthropic-beta: fallback-credit-2026-07-01`; without that header the
2252
+ * field accepts the bare string only. The bare string and the mode-less object are
2253
+ * equivalent (both select `strict`), so wrapping an existing token changes nothing
2254
+ * by itself.
2255
+ */
2256
+ export interface BetaFallbackCreditTokenParam {
2257
+ /**
2258
+ * The opaque `fallback_credit_token` from a prior refusal's `stop_details` — the
2259
+ * same string the bare-string form carries.
2260
+ */
2261
+ token: string;
2262
+ /**
2263
+ * How a failing token affects the retry. `strict` (the default, and the
2264
+ * bare-string behavior): a failing redemption is a 400 and the retry is not
2265
+ * served. `best_effort`: the retry is served either way — a token-layer failure no
2266
+ * longer rejects the request; the retry proceeds at normal price and the outcome
2267
+ * is reported on the response's `usage.fallback_credit`. Two failures stay hard in
2268
+ * both modes: a malformed token, and combining `fallback_credit_token` with
2269
+ * `fallbacks`.
2270
+ */
2271
+ mode?: 'strict' | 'best_effort';
2272
+ }
2273
+ /**
2274
+ * Outcome of the `fallback_credit_token` presented on this request.
2275
+ */
2276
+ export interface BetaFallbackCreditUsage {
2277
+ /**
2278
+ * Whether the fallback-credit reprice was applied to this response's billing.
2279
+ *
2280
+ * A union discriminated on `type`. `redeemed`: the retry is billed as if the
2281
+ * conversation had been on the retry model all along — including when the
2282
+ * resulting shift is zero because there was nothing to move. `not_applied`: no
2283
+ * reprice was applied; the arm's `reason` says why.
2284
+ */
2285
+ status: BetaFallbackCreditRedeemed | BetaFallbackCreditNotApplied;
2286
+ }
2287
+ /**
2288
+ * Identifies one hop of a fallback transition.
2289
+ */
2290
+ export interface BetaFallbackInfo {
2291
+ /**
2292
+ * The model that will complete your prompt.
2293
+ *
2294
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2295
+ * details and options.
2296
+ */
2297
+ model: MessagesAPI.Model;
2298
+ }
2299
+ /**
2300
+ * Identifies one hop of a fallback transition.
2301
+ */
2302
+ export interface BetaFallbackInfoParam {
2303
+ /**
2304
+ * The model that will complete your prompt.
2305
+ *
2306
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2307
+ * details and options.
2308
+ */
2309
+ model: MessagesAPI.Model;
2310
+ }
2311
+ /**
2312
+ * Token usage for the fallback-model attempt of a server-side fallback request.
2313
+ *
2314
+ * Produced in place of a `message` entry for whichever hop served the response. A
2315
+ * declined hop produces the existing `message` entry. Whether a fallback model
2316
+ * served the response is signalled by the presence of this entry in
2317
+ * `usage.iterations`.
2318
+ */
2319
+ export interface BetaFallbackMessageIterationUsage {
2320
+ /**
2321
+ * Breakdown of cached tokens by TTL
2322
+ */
2323
+ cache_creation: BetaCacheCreation | null;
2324
+ /**
2325
+ * The number of input tokens used to create the cache entry.
2326
+ */
2327
+ cache_creation_input_tokens: number;
2328
+ /**
2329
+ * The number of input tokens read from the cache.
2330
+ */
2331
+ cache_read_input_tokens: number;
2332
+ /**
2333
+ * The number of input tokens which were used.
2334
+ */
2335
+ input_tokens: number;
2336
+ /**
2337
+ * The model that will complete your prompt.
2338
+ *
2339
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2340
+ * details and options.
2341
+ */
2342
+ model: MessagesAPI.Model;
2343
+ /**
2344
+ * The number of output tokens which were used.
742
2345
  */
743
- applied_edits: Array<BetaClearToolUses20250919EditResponse | BetaClearThinking20251015EditResponse>;
744
- }
745
- export interface BetaCountTokensContextManagementResponse {
2346
+ output_tokens: number;
746
2347
  /**
747
- * The original token count before context management was applied
2348
+ * Usage for the fallback-model attempt that served the response
748
2349
  */
749
- original_input_tokens: number;
2350
+ type: 'fallback_message';
750
2351
  }
751
2352
  /**
752
- * Tool invocation directly from the model.
2353
+ * One entry in the `fallbacks` chain on a `/v1/messages` request.
2354
+ *
2355
+ * `model` is required. The override fields (`max_tokens`, `thinking`,
2356
+ * `output_config`, and `speed`) set the corresponding parameter for this attempt
2357
+ * only and are validated as if the request were made to `model`. Any other key is
2358
+ * rejected at parse time.
753
2359
  */
754
- export interface BetaDirectCaller {
755
- type: 'direct';
756
- }
757
- export interface BetaDocumentBlock {
2360
+ export interface BetaFallbackParam {
758
2361
  /**
759
- * Citation configuration for the document
2362
+ * The model that will complete your prompt.
2363
+ *
2364
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2365
+ * details and options.
760
2366
  */
761
- citations: BetaCitationConfig | null;
762
- source: BetaBase64PDFSource | BetaPlainTextSource;
2367
+ model: MessagesAPI.Model;
2368
+ max_tokens?: number | null;
2369
+ output_config?: BetaOutputConfig | null;
763
2370
  /**
764
- * The title of the document
2371
+ * Inference speed mode. `fast` provides significantly faster output token
2372
+ * generation at premium pricing. Not all models support `fast`; invalid
2373
+ * combinations are rejected at create time.
765
2374
  */
766
- title: string | null;
767
- type: 'document';
2375
+ speed?: 'standard' | 'fast' | null;
2376
+ thinking?: BetaThinkingConfigEnabled | BetaThinkingConfigDisabled | BetaThinkingConfigAdaptive | null;
2377
+ [k: string]: unknown;
768
2378
  }
769
2379
  /**
770
- * Code execution result with encrypted stdout for PFC + web_search results.
2380
+ * The `from` model declined for policy reasons.
771
2381
  */
772
- export interface BetaEncryptedCodeExecutionResultBlock {
773
- content: Array<BetaCodeExecutionOutputBlock>;
774
- encrypted_stdout: string;
775
- return_code: number;
776
- stderr: string;
777
- type: 'encrypted_code_execution_result';
2382
+ export interface BetaFallbackRefusalTrigger {
2383
+ /**
2384
+ * The policy category that triggered a refusal.
2385
+ *
2386
+ * - `cyber` - The request could enable cyber harm, such as malware or exploit
2387
+ * development. Benign cybersecurity work can also trigger this category.
2388
+ * - `bio` - The request could enable biological harm, such as dangerous lab
2389
+ * methods. Beneficial life sciences work can also trigger this category.
2390
+ * - `frontier_llm` - The request could assist the development of competing AI
2391
+ * models, which is restricted under
2392
+ * [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms).
2393
+ * Benign machine learning work can also trigger this category.
2394
+ * - `reasoning_extraction` - The request asks the model to reproduce its internal
2395
+ * reasoning in the response text. To get reasoning in a structured form instead,
2396
+ * use
2397
+ * [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking).
2398
+ * - `general_harms` - The request could be related to an area that was determined
2399
+ * as harmful. Benign work might sometimes trigger this category.
2400
+ */
2401
+ category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'general_harms' | null;
2402
+ type: 'refusal';
778
2403
  }
779
2404
  /**
780
- * Code execution result with encrypted stdout for PFC + web_search results.
2405
+ * Opt-in server-side retry on one or more substitute models when the requested
2406
+ * model declines for policy reasons. Tried in order: if the first entry also
2407
+ * declines, the second is tried, and so on. The string "default" requests the
2408
+ * requested model's server-defined default fallback configuration.
781
2409
  */
782
- export interface BetaEncryptedCodeExecutionResultBlockParam {
783
- content: Array<BetaCodeExecutionOutputBlockParam>;
784
- encrypted_stdout: string;
785
- return_code: number;
786
- stderr: string;
787
- type: 'encrypted_code_execution_result';
788
- }
2410
+ export type BetaFallbacksParam = Array<BetaFallbackParam> | 'default';
789
2411
  export interface BetaFileDocumentSource {
790
2412
  file_id: string;
791
2413
  type: 'file';
@@ -801,6 +2423,30 @@ export interface BetaImageBlockParam {
801
2423
  * Create a cache control breakpoint at this content block.
802
2424
  */
803
2425
  cache_control?: BetaCacheControlEphemeral | null;
2426
+ /**
2427
+ * Configures the transformations the server applies to this image before the model
2428
+ * observes it. Each key names a condition the server transforms images for; its
2429
+ * value selects the transformation applied. Omitted keys keep their default
2430
+ * behavior, and an empty object is equivalent to omitting the field.
2431
+ */
2432
+ transformations?: BetaImageTransformationsParam | null;
2433
+ }
2434
+ /**
2435
+ * Configures the transformations the server applies to this image before the model
2436
+ * observes it. Each key names a condition the server transforms images for; its
2437
+ * value selects the transformation applied. Omitted keys keep their default
2438
+ * behavior, and an empty object is equivalent to omitting the field.
2439
+ */
2440
+ export interface BetaImageTransformationsParam {
2441
+ /**
2442
+ * What the server does when this image exceeds the model's maximum image size.
2443
+ * `"downsize"` (the default) scales the image down to fit, which changes the
2444
+ * dimensions the model observes without telling you. `"error"` instead rejects the
2445
+ * request with a 400 error naming the image's dimensions and the largest
2446
+ * dimensions that fit, so you can scale the image deliberately — your image is
2447
+ * never silently scaled down.
2448
+ */
2449
+ oversized_image?: 'downsize' | 'error';
804
2450
  }
805
2451
  export interface BetaInputJSONDelta {
806
2452
  partial_json: string;
@@ -824,7 +2470,7 @@ export interface BetaInputTokensTrigger {
824
2470
  * - Calculate the true context window size from the last iteration
825
2471
  * - Understand token accumulation across server-side tool use loops
826
2472
  */
827
- export type BetaIterationsUsage = Array<BetaMessageIterationUsage | BetaCompactionIterationUsage | BetaAdvisorMessageIterationUsage>;
2473
+ export type BetaIterationsUsage = Array<BetaMessageIterationUsage | BetaCompactionIterationUsage | BetaAdvisorMessageIterationUsage | BetaFallbackMessageIterationUsage>;
828
2474
  export interface BetaJSONOutputFormat {
829
2475
  /**
830
2476
  * The JSON schema of the format
@@ -916,7 +2562,7 @@ export interface BetaMemoryTool20250818 {
916
2562
  */
917
2563
  name: 'memory';
918
2564
  type: 'memory_20250818';
919
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
2565
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
920
2566
  /**
921
2567
  * Create a cache control breakpoint at this content block.
922
2568
  */
@@ -1077,8 +2723,14 @@ export interface BetaMessage {
1077
2723
  */
1078
2724
  context_management: BetaContextManagementResponse | null;
1079
2725
  /**
1080
- * The model that will complete your prompt.\n\nSee
1081
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2726
+ * Response envelope for request-level diagnostics. Present (possibly null)
2727
+ * whenever the caller supplied `diagnostics` on the request.
2728
+ */
2729
+ diagnostics: BetaDiagnostics | null;
2730
+ /**
2731
+ * The model that will complete your prompt.
2732
+ *
2733
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
1082
2734
  * details and options.
1083
2735
  */
1084
2736
  model: MessagesAPI.Model;
@@ -1105,6 +2757,7 @@ export interface BetaMessage {
1105
2757
  * back as-is in a subsequent request to let the model continue.
1106
2758
  * - `"refusal"`: when streaming classifiers intervene to handle potential policy
1107
2759
  * violations
2760
+ * - `"model_context_window_exceeded"`: we exceeded the model's context window
1108
2761
  *
1109
2762
  * In non-streaming mode this value is always non-null. In streaming mode, it is
1110
2763
  * null in the `message_start` event and non-null otherwise.
@@ -1151,6 +2804,10 @@ export interface BetaMessageDeltaUsage {
1151
2804
  * The cumulative number of input tokens read from the cache.
1152
2805
  */
1153
2806
  cache_read_input_tokens: number | null;
2807
+ /**
2808
+ * Outcome of the `fallback_credit_token` presented on this request.
2809
+ */
2810
+ fallback_credit: BetaFallbackCreditUsage | null;
1154
2811
  /**
1155
2812
  * The cumulative number of input tokens which were used.
1156
2813
  */
@@ -1170,6 +2827,15 @@ export interface BetaMessageDeltaUsage {
1170
2827
  * The cumulative number of output tokens which were used.
1171
2828
  */
1172
2829
  output_tokens: number;
2830
+ /**
2831
+ * Breakdown of output tokens by category.
2832
+ *
2833
+ * `output_tokens` remains the inclusive, authoritative total used for billing.
2834
+ * This object provides a read-only decomposition for observability — for example,
2835
+ * how many of the billed output tokens were spent on internal reasoning that may
2836
+ * have been summarized before being returned to you.
2837
+ */
2838
+ output_tokens_details: BetaOutputTokensDetails | null;
1173
2839
  /**
1174
2840
  * The number of server tool requests.
1175
2841
  */
@@ -1195,6 +2861,13 @@ export interface BetaMessageIterationUsage {
1195
2861
  * The number of input tokens which were used.
1196
2862
  */
1197
2863
  input_tokens: number;
2864
+ /**
2865
+ * The model that will complete your prompt.
2866
+ *
2867
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2868
+ * details and options.
2869
+ */
2870
+ model: MessagesAPI.Model;
1198
2871
  /**
1199
2872
  * The number of output tokens which were used.
1200
2873
  */
@@ -1206,7 +2879,7 @@ export interface BetaMessageIterationUsage {
1206
2879
  }
1207
2880
  export interface BetaMessageParam {
1208
2881
  content: string | Array<BetaContentBlockParam>;
1209
- role: 'user' | 'assistant';
2882
+ role: 'user' | 'assistant' | 'system';
1210
2883
  }
1211
2884
  export interface BetaMessageTokensCount {
1212
2885
  /**
@@ -1244,6 +2917,19 @@ export interface BetaOutputConfig {
1244
2917
  */
1245
2918
  task_budget?: BetaTokenTaskBudget | null;
1246
2919
  }
2920
+ export interface BetaOutputTokensDetails {
2921
+ /**
2922
+ * Number of output tokens the model generated as internal reasoning, including the
2923
+ * thinking-block delimiter tokens.
2924
+ *
2925
+ * Reflects the raw reasoning the model produced, not the (possibly shorter)
2926
+ * summarized thinking text returned in the response body. Computed by
2927
+ * re-tokenizing the raw reasoning text, so it may differ from the model's exact
2928
+ * generation count by a small number of tokens. Always ≤ `output_tokens`;
2929
+ * `output_tokens - thinking_tokens` approximates the non-reasoning output.
2930
+ */
2931
+ thinking_tokens: number;
2932
+ }
1247
2933
  export interface BetaPlainTextSource {
1248
2934
  data: string;
1249
2935
  media_type: 'text/plain';
@@ -1259,7 +2945,7 @@ export interface BetaRawContentBlockStartEvent {
1259
2945
  /**
1260
2946
  * Response model for a file uploaded to the container.
1261
2947
  */
1262
- content_block: BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaAdvisorToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock | BetaCompactionBlock;
2948
+ content_block: BetaTextBlock | BetaThinkingBlock | BetaRedactedThinkingBlock | BetaToolUseBlock | BetaServerToolUseBlock | BetaWebSearchToolResultBlock | BetaWebFetchToolResultBlock | BetaAdvisorToolResultBlock | BetaCodeExecutionToolResultBlock | BetaBashCodeExecutionToolResultBlock | BetaTextEditorCodeExecutionToolResultBlock | BetaToolSearchToolResultBlock | BetaMCPToolUseBlock | BetaMCPToolResultBlock | BetaContainerUploadBlock | BetaCompactionBlock | BetaFallbackBlock;
1263
2949
  index: number;
1264
2950
  type: 'content_block_start';
1265
2951
  }
@@ -1317,10 +3003,26 @@ export interface BetaRawMessageStopEvent {
1317
3003
  }
1318
3004
  export type BetaRawMessageStreamEvent = BetaRawMessageStartEvent | BetaRawMessageDeltaEvent | BetaRawMessageStopEvent | BetaRawContentBlockStartEvent | BetaRawContentBlockDeltaEvent | BetaRawContentBlockStopEvent;
1319
3005
  export interface BetaRedactedThinkingBlock {
3006
+ /**
3007
+ * The contents of this redacted thinking block, returned when portions of the
3008
+ * model's thinking were safety-redacted. This field is opaque and encrypted, with
3009
+ * no readable content.
3010
+ *
3011
+ * Pass `redacted_thinking` blocks back to the API unchanged when continuing a
3012
+ * multi-turn conversation.
3013
+ *
3014
+ * See
3015
+ * [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#redacted-thinking-blocks)
3016
+ * for details.
3017
+ */
1320
3018
  data: string;
1321
3019
  type: 'redacted_thinking';
1322
3020
  }
1323
3021
  export interface BetaRedactedThinkingBlockParam {
3022
+ /**
3023
+ * The `data` value of this redacted thinking block, exactly as returned by the API
3024
+ * in a previous response. Opaque and encrypted; pass it back unchanged.
3025
+ */
1324
3026
  data: string;
1325
3027
  type: 'redacted_thinking';
1326
3028
  }
@@ -1329,11 +3031,24 @@ export interface BetaRedactedThinkingBlockParam {
1329
3031
  */
1330
3032
  export interface BetaRefusalStopDetails {
1331
3033
  /**
1332
- * The policy category that triggered the refusal.
1333
- *
1334
- * `null` when the refusal doesn't map to a named category.
1335
- */
1336
- category: 'cyber' | 'bio' | null;
3034
+ * The policy category that triggered a refusal.
3035
+ *
3036
+ * - `cyber` - The request could enable cyber harm, such as malware or exploit
3037
+ * development. Benign cybersecurity work can also trigger this category.
3038
+ * - `bio` - The request could enable biological harm, such as dangerous lab
3039
+ * methods. Beneficial life sciences work can also trigger this category.
3040
+ * - `frontier_llm` - The request could assist the development of competing AI
3041
+ * models, which is restricted under
3042
+ * [Anthropic's commercial terms](https://www.anthropic.com/legal/commercial-terms).
3043
+ * Benign machine learning work can also trigger this category.
3044
+ * - `reasoning_extraction` - The request asks the model to reproduce its internal
3045
+ * reasoning in the response text. To get reasoning in a structured form instead,
3046
+ * use
3047
+ * [adaptive thinking](https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking).
3048
+ * - `general_harms` - The request could be related to an area that was determined
3049
+ * as harmful. Benign work might sometimes trigger this category.
3050
+ */
3051
+ category: 'cyber' | 'bio' | 'frontier_llm' | 'reasoning_extraction' | 'general_harms' | null;
1337
3052
  /**
1338
3053
  * Human-readable explanation of the refusal.
1339
3054
  *
@@ -1341,6 +3056,56 @@ export interface BetaRefusalStopDetails {
1341
3056
  * available for the category.
1342
3057
  */
1343
3058
  explanation: string | null;
3059
+ /**
3060
+ * Opaque code that refunds the cache-miss cost when retrying this refused request
3061
+ * on the fallback model. Pass it as `fallback_credit_token` on the retry request.
3062
+ * Expires 5 minutes after the refusal.
3063
+ *
3064
+ * The retry is sent either with the same request body (`system`, `messages`,
3065
+ * `tools`, and other render-shaping fields), or with the same body plus one
3066
+ * appended `assistant` message whose content is the partial text (with any
3067
+ * trailing whitespace stripped from the final text block) and paired server-tool
3068
+ * blocks from this refusal — which also authorizes that appended turn as an
3069
+ * assistant-prefill continuation on models that otherwise disallow prefill. A
3070
+ * token minted mid-server-tool-loop whose partial content was continuable may only
3071
+ * be redeemed the second way — if a same-body retry is rejected with a 400 saying
3072
+ * the token must be redeemed by continuing the partial response, retry the second
3073
+ * way instead. Either way: same workspace, same platform; a mismatch is a 400.
3074
+ * Resending a token for an already-warm prefix is permitted but yields no
3075
+ * additional credit.
3076
+ *
3077
+ * `null` when the refused model isn't eligible for a fallback credit.
3078
+ */
3079
+ fallback_credit_token: string | null;
3080
+ /**
3081
+ * Whether the accompanying `fallback_credit_token` may be redeemed with the
3082
+ * appended-assistant retry form. Only set when `fallback_credit_token` is present.
3083
+ *
3084
+ * `true`: retry by resending the same request body plus one appended `assistant`
3085
+ * message whose content is this response's `content` with any trailing whitespace
3086
+ * stripped from the final text block and unpaired `tool_use` blocks omitted (the
3087
+ * same appended-turn shape described on `fallback_credit_token`), with the token
3088
+ * attached. `false`: retry by resending the original request body unchanged, with
3089
+ * the token attached — the appended-assistant form is not available for this
3090
+ * refusal (no continuable partial content, or the request uses `output_format` or
3091
+ * a `tool_choice` that forces tool use). One exception: when the request used
3092
+ * `output_format` or a forced `tool_choice` and the refusal arrived after server
3093
+ * tools (including MCP connector tools) had already executed, the token may not be
3094
+ * redeemable by either retry form; if the exact-body retry is then rejected with a
3095
+ * 400 saying the token must be redeemed by continuing the partial response,
3096
+ * discard the token and retry without it.
3097
+ *
3098
+ * Advisory: if an appended-assistant retry is rejected with a 400 despite `true`,
3099
+ * fall back to resending the original request body with the token.
3100
+ */
3101
+ fallback_has_prefill_claim: boolean | null;
3102
+ /**
3103
+ * The server's suggested retry target for this refusal. Populated when a fallback
3104
+ * attempt could not be made (the fallback model's rate limit was exhausted, or it
3105
+ * was overloaded); names the fallback model the caller can retry directly. Null
3106
+ * otherwise.
3107
+ */
3108
+ recommended_model: string | null;
1344
3109
  type: 'refusal';
1345
3110
  }
1346
3111
  export interface BetaRequestDocumentBlock {
@@ -1375,6 +3140,44 @@ export interface BetaRequestMCPToolResultBlockParam {
1375
3140
  content?: string | Array<BetaTextBlockParam>;
1376
3141
  is_error?: boolean;
1377
3142
  }
3143
+ /**
3144
+ * Mid-conversation directive to surface a declared tool.
3145
+ *
3146
+ * `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
3147
+ * is offered to the model from this point in the conversation onward.
3148
+ */
3149
+ export interface BetaRequestToolAdditionBlock {
3150
+ /**
3151
+ * Reference to a single tool the caller declared directly in `tools[]`. Does not
3152
+ * accept the composed `{server}_{name}` form the server assigns to MCP-resolved
3153
+ * tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
3154
+ */
3155
+ tool: BetaToolChangeToolReference | BetaToolChangeMCPToolReference | BetaToolChangeMCPToolsetReference;
3156
+ type: 'tool_addition';
3157
+ /**
3158
+ * Create a cache control breakpoint at this content block.
3159
+ */
3160
+ cache_control?: BetaCacheControlEphemeral | null;
3161
+ }
3162
+ /**
3163
+ * Mid-conversation directive to withdraw a tool.
3164
+ *
3165
+ * `tool` references a tool (or MCP toolset) by name from the request's `tools`; it
3166
+ * is no longer offered to the model from this point in the conversation onward.
3167
+ */
3168
+ export interface BetaRequestToolRemovalBlock {
3169
+ /**
3170
+ * Reference to a single tool the caller declared directly in `tools[]`. Does not
3171
+ * accept the composed `{server}_{name}` form the server assigns to MCP-resolved
3172
+ * tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
3173
+ */
3174
+ tool: BetaToolChangeToolReference | BetaToolChangeMCPToolReference | BetaToolChangeMCPToolsetReference;
3175
+ type: 'tool_removal';
3176
+ /**
3177
+ * Create a cache control breakpoint at this content block.
3178
+ */
3179
+ cache_control?: BetaCacheControlEphemeral | null;
3180
+ }
1378
3181
  export interface BetaSearchResultBlockParam {
1379
3182
  content: Array<BetaTextBlockParam>;
1380
3183
  source: string;
@@ -1434,6 +3237,11 @@ export interface BetaServerToolUseBlockParam {
1434
3237
  caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
1435
3238
  }
1436
3239
  export interface BetaSignatureDelta {
3240
+ /**
3241
+ * The `signature` for this thinking block: an opaque value used to verify that the
3242
+ * block was generated by Claude when it is passed back to the API. Delivered in a
3243
+ * `signature_delta` event just before the block's `content_block_stop` event.
3244
+ */
1437
3245
  signature: string;
1438
3246
  type: 'signature_delta';
1439
3247
  }
@@ -1450,7 +3258,7 @@ export interface BetaSkill {
1450
3258
  */
1451
3259
  type: 'anthropic' | 'custom';
1452
3260
  /**
1453
- * Skill version or 'latest' for most recent version
3261
+ * The resolved version: a skill version ID for custom skills.
1454
3262
  */
1455
3263
  version: string;
1456
3264
  }
@@ -1564,12 +3372,37 @@ export interface BetaTextEditorCodeExecutionViewResultBlockParam {
1564
3372
  total_lines?: number | null;
1565
3373
  }
1566
3374
  export interface BetaThinkingBlock {
3375
+ /**
3376
+ * A value used to verify that this thinking block was generated by Claude when it
3377
+ * is passed back to the API.
3378
+ *
3379
+ * This is an opaque field and should not be interpreted or parsed. When passing
3380
+ * thinking blocks back to the API (required when using tools with extended
3381
+ * thinking), pass them back exactly as received, with this field intact.
3382
+ *
3383
+ * See
3384
+ * [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
3385
+ * for details.
3386
+ */
1567
3387
  signature: string;
3388
+ /**
3389
+ * The text of Claude's thinking process for this block.
3390
+ */
1568
3391
  thinking: string;
1569
3392
  type: 'thinking';
1570
3393
  }
1571
3394
  export interface BetaThinkingBlockParam {
3395
+ /**
3396
+ * The `signature` value of this thinking block, exactly as returned by the API in
3397
+ * a previous response. Used to verify that the block was generated by Claude.
3398
+ *
3399
+ * Thinking blocks must be passed back unmodified and in their original order; a
3400
+ * modified block results in a 400 `invalid_request_error`.
3401
+ */
1572
3402
  signature: string;
3403
+ /**
3404
+ * The `thinking` text of this block as returned by the API.
3405
+ */
1573
3406
  thinking: string;
1574
3407
  type: 'thinking';
1575
3408
  }
@@ -1595,7 +3428,7 @@ export interface BetaThinkingConfigEnabled {
1595
3428
  * Must be ≥1024 and less than `max_tokens`.
1596
3429
  *
1597
3430
  * See
1598
- * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
3431
+ * [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
1599
3432
  * for details.
1600
3433
  */
1601
3434
  budget_tokens: number;
@@ -1616,11 +3449,27 @@ export interface BetaThinkingConfigEnabled {
1616
3449
  * tokens and counts towards your `max_tokens` limit.
1617
3450
  *
1618
3451
  * See
1619
- * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
3452
+ * [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
1620
3453
  * for details.
1621
3454
  */
1622
3455
  export type BetaThinkingConfigParam = BetaThinkingConfigEnabled | BetaThinkingConfigDisabled | BetaThinkingConfigAdaptive;
1623
3456
  export interface BetaThinkingDelta {
3457
+ /**
3458
+ * Per-frame increment of a coarse, running estimate of the tokens this thinking
3459
+ * block has produced so far. Present whenever the
3460
+ * `thinking-token-count-2026-05-13` beta is set; `null` unless `thinking.display`
3461
+ * resolves to `"omitted"` and a count is due this frame. Sum the increments across
3462
+ * `thinking_delta` frames on this block for a progress indicator. Each increment
3463
+ * is a non-negative multiple of a fixed quantum and the cadence is rate-limited,
3464
+ * so this is a deliberately lossy display hint, not a billable count;
3465
+ * `usage.output_tokens` remains authoritative.
3466
+ */
3467
+ estimated_tokens: number | null;
3468
+ /**
3469
+ * The incremental `thinking` text for this content block. Concatenate the
3470
+ * `thinking` values of successive `thinking_delta` events to assemble the block's
3471
+ * full `thinking` value.
3472
+ */
1624
3473
  thinking: string;
1625
3474
  type: 'thinking_delta';
1626
3475
  }
@@ -1660,7 +3509,7 @@ export interface BetaTool {
1660
3509
  * This is how the tool will be called by the model and in `tool_use` blocks.
1661
3510
  */
1662
3511
  name: string;
1663
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3512
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1664
3513
  /**
1665
3514
  * Create a cache control breakpoint at this content block.
1666
3515
  */
@@ -1718,7 +3567,7 @@ export interface BetaToolBash20241022 {
1718
3567
  */
1719
3568
  name: 'bash';
1720
3569
  type: 'bash_20241022';
1721
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3570
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1722
3571
  /**
1723
3572
  * Create a cache control breakpoint at this content block.
1724
3573
  */
@@ -1744,7 +3593,7 @@ export interface BetaToolBash20250124 {
1744
3593
  */
1745
3594
  name: 'bash';
1746
3595
  type: 'bash_20250124';
1747
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3596
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1748
3597
  /**
1749
3598
  * Create a cache control breakpoint at this content block.
1750
3599
  */
@@ -1762,6 +3611,31 @@ export interface BetaToolBash20250124 {
1762
3611
  */
1763
3612
  strict?: boolean;
1764
3613
  }
3614
+ /**
3615
+ * Reference to a single MCP tool by its server and remote name — the same
3616
+ * `server_name`/`name` pair `mcp_tool_use` carries.
3617
+ */
3618
+ export interface BetaToolChangeMCPToolReference {
3619
+ name: string;
3620
+ server_name: string;
3621
+ type: 'mcp_tool_reference';
3622
+ }
3623
+ /**
3624
+ * Reference to every tool in the named MCP server's toolset.
3625
+ */
3626
+ export interface BetaToolChangeMCPToolsetReference {
3627
+ server_name: string;
3628
+ type: 'mcp_toolset_reference';
3629
+ }
3630
+ /**
3631
+ * Reference to a single tool the caller declared directly in `tools[]`. Does not
3632
+ * accept the composed `{server}_{name}` form the server assigns to MCP-resolved
3633
+ * tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those.
3634
+ */
3635
+ export interface BetaToolChangeToolReference {
3636
+ name: string;
3637
+ type: 'tool_reference';
3638
+ }
1765
3639
  /**
1766
3640
  * How the model should use the provided tools. The model can use a specific tool,
1767
3641
  * any available tool, decide by itself, or not use tools at all.
@@ -1832,7 +3706,7 @@ export interface BetaToolComputerUse20241022 {
1832
3706
  */
1833
3707
  name: 'computer';
1834
3708
  type: 'computer_20241022';
1835
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3709
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1836
3710
  /**
1837
3711
  * Create a cache control breakpoint at this content block.
1838
3712
  */
@@ -1870,7 +3744,7 @@ export interface BetaToolComputerUse20250124 {
1870
3744
  */
1871
3745
  name: 'computer';
1872
3746
  type: 'computer_20250124';
1873
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3747
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1874
3748
  /**
1875
3749
  * Create a cache control breakpoint at this content block.
1876
3750
  */
@@ -1908,7 +3782,7 @@ export interface BetaToolComputerUse20251124 {
1908
3782
  */
1909
3783
  name: 'computer';
1910
3784
  type: 'computer_20251124';
1911
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3785
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1912
3786
  /**
1913
3787
  * Create a cache control breakpoint at this content block.
1914
3788
  */
@@ -1956,8 +3830,12 @@ export interface BetaToolResultBlockParam {
1956
3830
  * Create a cache control breakpoint at this content block.
1957
3831
  */
1958
3832
  cache_control?: BetaCacheControlEphemeral | null;
1959
- content?: string | Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock | BetaToolReferenceBlockParam>;
3833
+ content?: string | Array<BetaTextBlockParam | BetaImageBlockParam | BetaSearchResultBlockParam | BetaRequestDocumentBlock | BetaToolReferenceBlockParam | BetaBrowserStateBlockParam>;
1960
3834
  is_error?: boolean;
3835
+ /**
3836
+ * For a toolset member tool_result, the toolset family of the paired tool_use.
3837
+ */
3838
+ toolset_name?: string | null;
1961
3839
  }
1962
3840
  export interface BetaToolSearchToolBm25_20251119 {
1963
3841
  /**
@@ -1967,7 +3845,7 @@ export interface BetaToolSearchToolBm25_20251119 {
1967
3845
  */
1968
3846
  name: 'tool_search_tool_bm25';
1969
3847
  type: 'tool_search_tool_bm25_20251119' | 'tool_search_tool_bm25';
1970
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3848
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1971
3849
  /**
1972
3850
  * Create a cache control breakpoint at this content block.
1973
3851
  */
@@ -1990,7 +3868,7 @@ export interface BetaToolSearchToolRegex20251119 {
1990
3868
  */
1991
3869
  name: 'tool_search_tool_regex';
1992
3870
  type: 'tool_search_tool_regex_20251119' | 'tool_search_tool_regex';
1993
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3871
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
1994
3872
  /**
1995
3873
  * Create a cache control breakpoint at this content block.
1996
3874
  */
@@ -2027,6 +3905,7 @@ export interface BetaToolSearchToolResultError {
2027
3905
  export interface BetaToolSearchToolResultErrorParam {
2028
3906
  error_code: 'invalid_tool_input' | 'unavailable' | 'too_many_requests' | 'execution_time_exceeded';
2029
3907
  type: 'tool_search_tool_result_error';
3908
+ error_message?: string | null;
2030
3909
  }
2031
3910
  export interface BetaToolSearchToolSearchResultBlock {
2032
3911
  tool_references: Array<BetaToolReferenceBlock>;
@@ -2045,7 +3924,7 @@ export interface BetaToolTextEditor20241022 {
2045
3924
  */
2046
3925
  name: 'str_replace_editor';
2047
3926
  type: 'text_editor_20241022';
2048
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3927
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2049
3928
  /**
2050
3929
  * Create a cache control breakpoint at this content block.
2051
3930
  */
@@ -2071,7 +3950,7 @@ export interface BetaToolTextEditor20250124 {
2071
3950
  */
2072
3951
  name: 'str_replace_editor';
2073
3952
  type: 'text_editor_20250124';
2074
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3953
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2075
3954
  /**
2076
3955
  * Create a cache control breakpoint at this content block.
2077
3956
  */
@@ -2097,7 +3976,7 @@ export interface BetaToolTextEditor20250429 {
2097
3976
  */
2098
3977
  name: 'str_replace_based_edit_tool';
2099
3978
  type: 'text_editor_20250429';
2100
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
3979
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2101
3980
  /**
2102
3981
  * Create a cache control breakpoint at this content block.
2103
3982
  */
@@ -2123,7 +4002,7 @@ export interface BetaToolTextEditor20250728 {
2123
4002
  */
2124
4003
  name: 'str_replace_based_edit_tool';
2125
4004
  type: 'text_editor_20250728';
2126
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
4005
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2127
4006
  /**
2128
4007
  * Create a cache control breakpoint at this content block.
2129
4008
  */
@@ -2150,7 +4029,7 @@ export interface BetaToolTextEditor20250728 {
2150
4029
  * Code execution tool with REPL state persistence (daemon mode + gVisor
2151
4030
  * checkpoint).
2152
4031
  */
2153
- export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
4032
+ export type BetaToolUnion = BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaBrowserToolset20260801 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaComputerToolset20260801 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset;
2154
4033
  export interface BetaToolUseBlock {
2155
4034
  id: string;
2156
4035
  input: unknown;
@@ -2160,6 +4039,10 @@ export interface BetaToolUseBlock {
2160
4039
  * Tool invocation directly from the model.
2161
4040
  */
2162
4041
  caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
4042
+ /**
4043
+ * For a toolset member tool_use, the toolset family.
4044
+ */
4045
+ toolset_name?: string | null;
2163
4046
  }
2164
4047
  export interface BetaToolUseBlockParam {
2165
4048
  id: string;
@@ -2174,6 +4057,10 @@ export interface BetaToolUseBlockParam {
2174
4057
  * Tool invocation directly from the model.
2175
4058
  */
2176
4059
  caller?: BetaDirectCaller | BetaServerToolCaller | BetaServerToolCaller20260120;
4060
+ /**
4061
+ * For a toolset member tool_use, the toolset family this member belongs to.
4062
+ */
4063
+ toolset_name?: string | null;
2177
4064
  }
2178
4065
  export interface BetaToolUsesKeep {
2179
4066
  type: 'tool_uses';
@@ -2204,6 +4091,10 @@ export interface BetaUsage {
2204
4091
  * The number of input tokens read from the cache.
2205
4092
  */
2206
4093
  cache_read_input_tokens: number | null;
4094
+ /**
4095
+ * Outcome of the `fallback_credit_token` presented on this request.
4096
+ */
4097
+ fallback_credit: BetaFallbackCreditUsage | null;
2207
4098
  /**
2208
4099
  * The geographic region where inference was performed for this request.
2209
4100
  */
@@ -2227,6 +4118,15 @@ export interface BetaUsage {
2227
4118
  * The number of output tokens which were used.
2228
4119
  */
2229
4120
  output_tokens: number;
4121
+ /**
4122
+ * Breakdown of output tokens by category.
4123
+ *
4124
+ * `output_tokens` remains the inclusive, authoritative total used for billing.
4125
+ * This object provides a read-only decomposition for observability — for example,
4126
+ * how many of the billed output tokens were spent on internal reasoning that may
4127
+ * have been summarized before being returned to you.
4128
+ */
4129
+ output_tokens_details: BetaOutputTokensDetails | null;
2230
4130
  /**
2231
4131
  * The number of server tool requests.
2232
4132
  */
@@ -2236,7 +4136,9 @@ export interface BetaUsage {
2236
4136
  */
2237
4137
  service_tier: 'standard' | 'priority' | 'batch' | null;
2238
4138
  /**
2239
- * The inference speed mode used for this request.
4139
+ * Inference speed mode. `fast` provides significantly faster output token
4140
+ * generation at premium pricing. Not all models support `fast`; invalid
4141
+ * combinations are rejected at create time.
2240
4142
  */
2241
4143
  speed: 'standard' | 'fast' | null;
2242
4144
  }
@@ -2293,7 +4195,7 @@ export interface BetaWebFetchTool20250910 {
2293
4195
  */
2294
4196
  name: 'web_fetch';
2295
4197
  type: 'web_fetch_20250910';
2296
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
4198
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2297
4199
  /**
2298
4200
  * List of domains to allow fetching from
2299
4201
  */
@@ -2338,7 +4240,7 @@ export interface BetaWebFetchTool20260209 {
2338
4240
  */
2339
4241
  name: 'web_fetch';
2340
4242
  type: 'web_fetch_20260209';
2341
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
4243
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2342
4244
  /**
2343
4245
  * List of domains to allow fetching from
2344
4246
  */
@@ -2386,7 +4288,58 @@ export interface BetaWebFetchTool20260309 {
2386
4288
  */
2387
4289
  name: 'web_fetch';
2388
4290
  type: 'web_fetch_20260309';
2389
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
4291
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
4292
+ /**
4293
+ * List of domains to allow fetching from
4294
+ */
4295
+ allowed_domains?: Array<string> | null;
4296
+ /**
4297
+ * List of domains to block fetching from
4298
+ */
4299
+ blocked_domains?: Array<string> | null;
4300
+ /**
4301
+ * Create a cache control breakpoint at this content block.
4302
+ */
4303
+ cache_control?: BetaCacheControlEphemeral | null;
4304
+ /**
4305
+ * Citations configuration for fetched documents. Citations are disabled by
4306
+ * default.
4307
+ */
4308
+ citations?: BetaCitationsConfigParam | null;
4309
+ /**
4310
+ * If true, tool will not be included in initial system prompt. Only loaded when
4311
+ * returned via tool_reference from tool search.
4312
+ */
4313
+ defer_loading?: boolean;
4314
+ /**
4315
+ * Maximum number of tokens used by including web page text content in the context.
4316
+ * The limit is approximate and does not apply to binary content such as PDFs.
4317
+ */
4318
+ max_content_tokens?: number | null;
4319
+ /**
4320
+ * Maximum number of times the tool can be used in the API request.
4321
+ */
4322
+ max_uses?: number | null;
4323
+ /**
4324
+ * When true, guarantees schema validation on tool names and inputs
4325
+ */
4326
+ strict?: boolean;
4327
+ /**
4328
+ * Whether to use cached content. Set to false to bypass the cache and fetch fresh
4329
+ * content. Only set to false when the user explicitly requests fresh content or
4330
+ * when fetching rapidly-changing sources.
4331
+ */
4332
+ use_cache?: boolean;
4333
+ }
4334
+ export interface BetaWebFetchTool20260318 {
4335
+ /**
4336
+ * Name of the tool.
4337
+ *
4338
+ * This is how the tool will be called by the model and in `tool_use` blocks.
4339
+ */
4340
+ name: 'web_fetch';
4341
+ type: 'web_fetch_20260318';
4342
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2390
4343
  /**
2391
4344
  * List of domains to allow fetching from
2392
4345
  */
@@ -2418,6 +4371,15 @@ export interface BetaWebFetchTool20260309 {
2418
4371
  * Maximum number of times the tool can be used in the API request.
2419
4372
  */
2420
4373
  max_uses?: number | null;
4374
+ /**
4375
+ * How this tool's result blocks appear in the API response when the result was
4376
+ * consumed by a completed code_execution call in the same turn. 'full' returns the
4377
+ * complete content (default). 'excluded' drops the nested server_tool_use and
4378
+ * result block pair entirely. Results from direct calls, or from code_execution
4379
+ * calls that paused before completing, are always returned in full so they can be
4380
+ * sent back on the next turn.
4381
+ */
4382
+ response_inclusion?: 'full' | 'excluded';
2421
4383
  /**
2422
4384
  * When true, guarantees schema validation on tool names and inputs
2423
4385
  */
@@ -2459,7 +4421,7 @@ export interface BetaWebFetchToolResultErrorBlockParam {
2459
4421
  error_code: BetaWebFetchToolResultErrorCode;
2460
4422
  type: 'web_fetch_tool_result_error';
2461
4423
  }
2462
- export type BetaWebFetchToolResultErrorCode = 'invalid_tool_input' | 'url_too_long' | 'url_not_allowed' | 'url_not_accessible' | 'unsupported_content_type' | 'too_many_requests' | 'max_uses_exceeded' | 'unavailable';
4424
+ export type BetaWebFetchToolResultErrorCode = 'invalid_tool_input' | 'url_too_long' | 'url_not_allowed' | 'url_not_in_prior_context' | 'url_not_accessible' | 'unsupported_content_type' | 'too_many_requests' | 'max_uses_exceeded' | 'unavailable';
2463
4425
  export interface BetaWebSearchResultBlock {
2464
4426
  encrypted_content: string;
2465
4427
  page_age: string | null;
@@ -2482,7 +4444,7 @@ export interface BetaWebSearchTool20250305 {
2482
4444
  */
2483
4445
  name: 'web_search';
2484
4446
  type: 'web_search_20250305';
2485
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
4447
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2486
4448
  /**
2487
4449
  * If provided, only these domains will be included in results. Cannot be used
2488
4450
  * alongside `blocked_domains`.
@@ -2524,7 +4486,49 @@ export interface BetaWebSearchTool20260209 {
2524
4486
  */
2525
4487
  name: 'web_search';
2526
4488
  type: 'web_search_20260209';
2527
- allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120'>;
4489
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
4490
+ /**
4491
+ * If provided, only these domains will be included in results. Cannot be used
4492
+ * alongside `blocked_domains`.
4493
+ */
4494
+ allowed_domains?: Array<string> | null;
4495
+ /**
4496
+ * If provided, these domains will never appear in results. Cannot be used
4497
+ * alongside `allowed_domains`.
4498
+ */
4499
+ blocked_domains?: Array<string> | null;
4500
+ /**
4501
+ * Create a cache control breakpoint at this content block.
4502
+ */
4503
+ cache_control?: BetaCacheControlEphemeral | null;
4504
+ /**
4505
+ * If true, tool will not be included in initial system prompt. Only loaded when
4506
+ * returned via tool_reference from tool search.
4507
+ */
4508
+ defer_loading?: boolean;
4509
+ /**
4510
+ * Maximum number of times the tool can be used in the API request.
4511
+ */
4512
+ max_uses?: number | null;
4513
+ /**
4514
+ * When true, guarantees schema validation on tool names and inputs
4515
+ */
4516
+ strict?: boolean;
4517
+ /**
4518
+ * Parameters for the user's location. Used to provide more relevant search
4519
+ * results.
4520
+ */
4521
+ user_location?: BetaUserLocation | null;
4522
+ }
4523
+ export interface BetaWebSearchTool20260318 {
4524
+ /**
4525
+ * Name of the tool.
4526
+ *
4527
+ * This is how the tool will be called by the model and in `tool_use` blocks.
4528
+ */
4529
+ name: 'web_search';
4530
+ type: 'web_search_20260318';
4531
+ allowed_callers?: Array<'direct' | 'code_execution_20250825' | 'code_execution_20260120' | 'code_execution_20260521'>;
2528
4532
  /**
2529
4533
  * If provided, only these domains will be included in results. Cannot be used
2530
4534
  * alongside `blocked_domains`.
@@ -2548,6 +4552,15 @@ export interface BetaWebSearchTool20260209 {
2548
4552
  * Maximum number of times the tool can be used in the API request.
2549
4553
  */
2550
4554
  max_uses?: number | null;
4555
+ /**
4556
+ * How this tool's result blocks appear in the API response when the result was
4557
+ * consumed by a completed code_execution call in the same turn. 'full' returns the
4558
+ * complete content (default). 'excluded' drops the nested server_tool_use and
4559
+ * result block pair entirely. Results from direct calls, or from code_execution
4560
+ * calls that paused before completing, are always returned in full so they can be
4561
+ * sent back on the next turn.
4562
+ */
4563
+ response_inclusion?: 'full' | 'excluded';
2551
4564
  /**
2552
4565
  * When true, guarantees schema validation on tool names and inputs
2553
4566
  */
@@ -2603,8 +4616,13 @@ export interface MessageCreateParamsBase {
2603
4616
  * Note that our models may stop _before_ reaching this maximum. This parameter
2604
4617
  * only specifies the absolute maximum number of tokens to generate.
2605
4618
  *
4619
+ * Set to `0` to populate the
4620
+ * [prompt cache](https://platform.claude.com/docs/en/build-with-claude/prompt-caching#pre-warming-the-cache)
4621
+ * without generating a response.
4622
+ *
2606
4623
  * Different models have different maximum values for this parameter. See
2607
- * [models](https://docs.claude.com/en/docs/models-overview) for details.
4624
+ * [models](https://platform.claude.com/docs/en/about-claude/models/overview) for
4625
+ * details.
2608
4626
  */
2609
4627
  max_tokens: number;
2610
4628
  /**
@@ -2665,19 +4683,21 @@ export interface MessageCreateParamsBase {
2665
4683
  * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
2666
4684
  * ```
2667
4685
  *
2668
- * See [input examples](https://docs.claude.com/en/api/messages-examples).
4686
+ * See
4687
+ * [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
2669
4688
  *
2670
4689
  * Note that if you want to include a
2671
- * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
2672
- * top-level `system` parameter — there is no `"system"` role for input messages in
2673
- * the Messages API.
4690
+ * [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
4691
+ * you can use the top-level `system` parameter — there is no `"system"` role for
4692
+ * input messages in the Messages API.
2674
4693
  *
2675
4694
  * There is a limit of 100,000 messages in a single request.
2676
4695
  */
2677
4696
  messages: Array<BetaMessageParam>;
2678
4697
  /**
2679
- * Body param: The model that will complete your prompt.\n\nSee
2680
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
4698
+ * Body param: The model that will complete your prompt.
4699
+ *
4700
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2681
4701
  * details and options.
2682
4702
  */
2683
4703
  model: MessagesAPI.Model;
@@ -2697,6 +4717,40 @@ export interface MessageCreateParamsBase {
2697
4717
  * such as whether to clear function results or not.
2698
4718
  */
2699
4719
  context_management?: BetaContextManagementConfig | null;
4720
+ /**
4721
+ * Body param: Request-level diagnostics. Currently carries the previous response
4722
+ * id for prompt-cache divergence reporting.
4723
+ */
4724
+ diagnostics?: BetaDiagnosticsParam | null;
4725
+ /**
4726
+ * Body param: The `fallback_credit_token` from a prior refusal's `stop_details`.
4727
+ *
4728
+ * When a preceding request was refused and returned a `fallback_credit_token`,
4729
+ * pass that code here on the retry to have the retry's cache-creation tokens for
4730
+ * the prefix that was warm on the refused model billed at the cache-read rate.
4731
+ * Must be redeemed by the same organization and workspace, with the same request
4732
+ * body (optionally extended by one appended `assistant` message whose content is
4733
+ * the partial text — with any trailing whitespace stripped from the final text
4734
+ * block — and paired server-tool blocks streamed before the refusal; the
4735
+ * appended-assistant form is not available for requests with `output_format` set
4736
+ * or forced `tool_choice`), on an eligible fallback model, on the same platform,
4737
+ * and within 5 minutes of the refusal; a mismatch is a 400. A token minted
4738
+ * mid-server-tool-loop whose partial content was continuable may only be redeemed
4739
+ * with the appended-assistant form — if an exact-body retry is rejected with a 400
4740
+ * saying the token must be redeemed by continuing the partial response, retry with
4741
+ * the appended-assistant form instead.
4742
+ *
4743
+ * When the appended-assistant form is used on a model that otherwise disallows
4744
+ * assistant-turn prefill, this token also authorizes that one prefill.
4745
+ */
4746
+ fallback_credit_token?: string | BetaFallbackCreditTokenParam | null;
4747
+ /**
4748
+ * Body param: Opt-in server-side retry on one or more substitute models when the
4749
+ * requested model declines for policy reasons. Tried in order: if the first entry
4750
+ * also declines, the second is tried, and so on. The string "default" requests the
4751
+ * requested model's server-defined default fallback configuration.
4752
+ */
4753
+ fallbacks?: BetaFallbacksParam | null;
2700
4754
  /**
2701
4755
  * Body param: Specifies the geographic region for inference processing. If not
2702
4756
  * specified, the workspace's `default_inference_geo` is used.
@@ -2728,12 +4782,14 @@ export interface MessageCreateParamsBase {
2728
4782
  * standard capacity for this request.
2729
4783
  *
2730
4784
  * Anthropic offers different levels of service for your API requests. See
2731
- * [service-tiers](https://docs.claude.com/en/api/service-tiers) for details.
4785
+ * [service-tiers](https://platform.claude.com/docs/en/api/service-tiers) for
4786
+ * details.
2732
4787
  */
2733
4788
  service_tier?: 'auto' | 'standard_only';
2734
4789
  /**
2735
- * Body param: The inference speed mode for this request. `"fast"` enables high
2736
- * output-tokens-per-second inference.
4790
+ * Body param: Inference speed mode. `fast` provides significantly faster output
4791
+ * token generation at premium pricing. Not all models support `fast`; invalid
4792
+ * combinations are rejected at create time.
2737
4793
  */
2738
4794
  speed?: 'standard' | 'fast' | null;
2739
4795
  /**
@@ -2752,7 +4808,8 @@ export interface MessageCreateParamsBase {
2752
4808
  * Body param: Whether to incrementally stream the response using server-sent
2753
4809
  * events.
2754
4810
  *
2755
- * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
4811
+ * See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
4812
+ * for details.
2756
4813
  */
2757
4814
  stream?: boolean;
2758
4815
  /**
@@ -2760,7 +4817,7 @@ export interface MessageCreateParamsBase {
2760
4817
  *
2761
4818
  * A system prompt is a way of providing context and instructions to Claude, such
2762
4819
  * as specifying a particular goal or role. See our
2763
- * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
4820
+ * [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
2764
4821
  */
2765
4822
  system?: string | Array<BetaTextBlockParam>;
2766
4823
  /**
@@ -2777,7 +4834,7 @@ export interface MessageCreateParamsBase {
2777
4834
  * tokens and counts towards your `max_tokens` limit.
2778
4835
  *
2779
4836
  * See
2780
- * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
4837
+ * [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
2781
4838
  * for details.
2782
4839
  */
2783
4840
  thinking?: BetaThinkingConfigParam;
@@ -2796,9 +4853,9 @@ export interface MessageCreateParamsBase {
2796
4853
  *
2797
4854
  * There are two types of tools: **client tools** and **server tools**. The
2798
4855
  * behavior described below applies to client tools. For
2799
- * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
4856
+ * [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
2800
4857
  * see their individual documentation as each has its own behavior (e.g., the
2801
- * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
4858
+ * [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
2802
4859
  *
2803
4860
  * Each tool definition includes:
2804
4861
  *
@@ -2861,7 +4918,9 @@ export interface MessageCreateParamsBase {
2861
4918
  * functions, or more generally whenever you want the model to produce a particular
2862
4919
  * JSON structure of output.
2863
4920
  *
2864
- * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
4921
+ * See our
4922
+ * [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
4923
+ * for more details.
2865
4924
  */
2866
4925
  tools?: Array<BetaToolUnion>;
2867
4926
  /**
@@ -2875,15 +4934,16 @@ export interface MessageCreateParamsBase {
2875
4934
  * other values will be rejected with a 400 error.
2876
4935
  */
2877
4936
  top_p?: number;
2878
- /**
2879
- * Body param: The user profile ID to attribute this request to. Use when acting on
2880
- * behalf of a party other than your organization.
2881
- */
2882
- user_profile_id?: string | null;
2883
4937
  /**
2884
4938
  * Header param: Optional header to specify the beta version(s) you want to use.
2885
4939
  */
2886
4940
  betas?: Array<BetaAPI.AnthropicBeta>;
4941
+ /**
4942
+ * Header param: The user profile ID to attribute this request to. Use when acting
4943
+ * on behalf of a party other than your organization. Requires the `user-profiles`
4944
+ * beta header.
4945
+ */
4946
+ user_profile_id?: string;
2887
4947
  }
2888
4948
  export declare namespace MessageCreateParams {
2889
4949
  type MessageCreateParamsNonStreaming = BetaMessagesAPI.MessageCreateParamsNonStreaming;
@@ -2894,7 +4954,8 @@ export interface MessageCreateParamsNonStreaming extends MessageCreateParamsBase
2894
4954
  * Body param: Whether to incrementally stream the response using server-sent
2895
4955
  * events.
2896
4956
  *
2897
- * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
4957
+ * See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
4958
+ * for details.
2898
4959
  */
2899
4960
  stream?: false;
2900
4961
  }
@@ -2903,7 +4964,8 @@ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
2903
4964
  * Body param: Whether to incrementally stream the response using server-sent
2904
4965
  * events.
2905
4966
  *
2906
- * See [streaming](https://docs.claude.com/en/api/messages-streaming) for details.
4967
+ * See [streaming](https://platform.claude.com/docs/en/build-with-claude/streaming)
4968
+ * for details.
2907
4969
  */
2908
4970
  stream: true;
2909
4971
  }
@@ -2966,19 +5028,21 @@ export interface MessageCountTokensParams {
2966
5028
  * { "role": "user", "content": [{ "type": "text", "text": "Hello, Claude" }] }
2967
5029
  * ```
2968
5030
  *
2969
- * See [input examples](https://docs.claude.com/en/api/messages-examples).
5031
+ * See
5032
+ * [input examples](https://platform.claude.com/docs/en/build-with-claude/working-with-messages).
2970
5033
  *
2971
5034
  * Note that if you want to include a
2972
- * [system prompt](https://docs.claude.com/en/docs/system-prompts), you can use the
2973
- * top-level `system` parameter — there is no `"system"` role for input messages in
2974
- * the Messages API.
5035
+ * [system prompt](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role),
5036
+ * you can use the top-level `system` parameter — there is no `"system"` role for
5037
+ * input messages in the Messages API.
2975
5038
  *
2976
5039
  * There is a limit of 100,000 messages in a single request.
2977
5040
  */
2978
5041
  messages: Array<BetaMessageParam>;
2979
5042
  /**
2980
- * Body param: The model that will complete your prompt.\n\nSee
2981
- * [models](https://docs.anthropic.com/en/docs/models-overview) for additional
5043
+ * Body param: The model that will complete your prompt.
5044
+ *
5045
+ * See [models](https://docs.anthropic.com/en/docs/models-overview) for additional
2982
5046
  * details and options.
2983
5047
  */
2984
5048
  model: MessagesAPI.Model;
@@ -3012,8 +5076,9 @@ export interface MessageCountTokensParams {
3012
5076
  */
3013
5077
  output_format?: BetaJSONOutputFormat | null;
3014
5078
  /**
3015
- * Body param: The inference speed mode for this request. `"fast"` enables high
3016
- * output-tokens-per-second inference.
5079
+ * Body param: Inference speed mode. `fast` provides significantly faster output
5080
+ * token generation at premium pricing. Not all models support `fast`; invalid
5081
+ * combinations are rejected at create time.
3017
5082
  */
3018
5083
  speed?: 'standard' | 'fast' | null;
3019
5084
  /**
@@ -3021,7 +5086,7 @@ export interface MessageCountTokensParams {
3021
5086
  *
3022
5087
  * A system prompt is a way of providing context and instructions to Claude, such
3023
5088
  * as specifying a particular goal or role. See our
3024
- * [guide to system prompts](https://docs.claude.com/en/docs/system-prompts).
5089
+ * [guide to system prompts](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#give-claude-a-role).
3025
5090
  */
3026
5091
  system?: string | Array<BetaTextBlockParam>;
3027
5092
  /**
@@ -3032,7 +5097,7 @@ export interface MessageCountTokensParams {
3032
5097
  * tokens and counts towards your `max_tokens` limit.
3033
5098
  *
3034
5099
  * See
3035
- * [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
5100
+ * [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking)
3036
5101
  * for details.
3037
5102
  */
3038
5103
  thinking?: BetaThinkingConfigParam;
@@ -3051,9 +5116,9 @@ export interface MessageCountTokensParams {
3051
5116
  *
3052
5117
  * There are two types of tools: **client tools** and **server tools**. The
3053
5118
  * behavior described below applies to client tools. For
3054
- * [server tools](https://docs.claude.com/en/docs/agents-and-tools/tool-use/overview#server-tools),
5119
+ * [server tools](https://platform.claude.com/docs/en/agents-and-tools/tool-use/server-tools),
3055
5120
  * see their individual documentation as each has its own behavior (e.g., the
3056
- * [web search tool](https://docs.claude.com/en/docs/agents-and-tools/tool-use/web-search-tool)).
5121
+ * [web search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool)).
3057
5122
  *
3058
5123
  * Each tool definition includes:
3059
5124
  *
@@ -3116,18 +5181,26 @@ export interface MessageCountTokensParams {
3116
5181
  * functions, or more generally whenever you want the model to produce a particular
3117
5182
  * JSON structure of output.
3118
5183
  *
3119
- * See our [guide](https://docs.claude.com/en/docs/tool-use) for more details.
5184
+ * See our
5185
+ * [guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)
5186
+ * for more details.
3120
5187
  */
3121
- tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
5188
+ tools?: Array<BetaTool | BetaToolBash20241022 | BetaToolBash20250124 | BetaCodeExecutionTool20250522 | BetaCodeExecutionTool20250825 | BetaCodeExecutionTool20260120 | BetaCodeExecutionTool20260521 | BetaBrowserToolset20260801 | BetaToolComputerUse20241022 | BetaMemoryTool20250818 | BetaToolComputerUse20250124 | BetaToolTextEditor20241022 | BetaToolComputerUse20251124 | BetaComputerToolset20260801 | BetaToolTextEditor20250124 | BetaToolTextEditor20250429 | BetaToolTextEditor20250728 | BetaWebSearchTool20250305 | BetaWebFetchTool20250910 | BetaWebSearchTool20260209 | BetaWebFetchTool20260209 | BetaWebFetchTool20260309 | BetaWebSearchTool20260318 | BetaWebFetchTool20260318 | BetaAdvisorTool20260301 | BetaToolSearchToolBm25_20251119 | BetaToolSearchToolRegex20251119 | BetaMCPToolset>;
3122
5189
  /**
3123
5190
  * Header param: Optional header to specify the beta version(s) you want to use.
3124
5191
  */
3125
5192
  betas?: Array<BetaAPI.AnthropicBeta>;
5193
+ /**
5194
+ * Header param: The user profile ID to attribute this request to. Use when acting
5195
+ * on behalf of a party other than your organization. Requires the `user-profiles`
5196
+ * beta header.
5197
+ */
5198
+ user_profile_id?: string;
3126
5199
  }
3127
5200
  export { BetaToolRunner, type BetaToolRunnerParams } from "../../../lib/tools/BetaToolRunner.js";
3128
5201
  export { ToolError } from "../../../lib/tools/ToolError.js";
3129
5202
  export declare namespace Messages {
3130
- export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, 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 BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, 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 BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
5203
+ export { type BetaAdvisorMessageIterationUsage as BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock as BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam as BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock as BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam as BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301 as BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock as BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam as BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError as BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam as BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns as BetaAllThinkingTurns, type BetaBase64ImageSource as BetaBase64ImageSource, type BetaBase64PDFSource as BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock as BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam as BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock as BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam as BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock as BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam as BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError as BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam as BetaBashCodeExecutionToolResultErrorParam, type BetaBrowserCloseTabConfig as BetaBrowserCloseTabConfig, type BetaBrowserDoubleClickConfig as BetaBrowserDoubleClickConfig, type BetaBrowserFileUploadConfig as BetaBrowserFileUploadConfig, type BetaBrowserFindConfig as BetaBrowserFindConfig, type BetaBrowserFormInputConfig as BetaBrowserFormInputConfig, type BetaBrowserGetPageTextConfig as BetaBrowserGetPageTextConfig, type BetaBrowserHoldKeyConfig as BetaBrowserHoldKeyConfig, type BetaBrowserHoverConfig as BetaBrowserHoverConfig, type BetaBrowserJavascriptExecConfig as BetaBrowserJavascriptExecConfig, type BetaBrowserKeyConfig as BetaBrowserKeyConfig, type BetaBrowserLeftClickConfig as BetaBrowserLeftClickConfig, type BetaBrowserLeftClickDragConfig as BetaBrowserLeftClickDragConfig, type BetaBrowserLeftMouseDownConfig as BetaBrowserLeftMouseDownConfig, type BetaBrowserLeftMouseUpConfig as BetaBrowserLeftMouseUpConfig, type BetaBrowserListTabsConfig as BetaBrowserListTabsConfig, type BetaBrowserMiddleClickConfig as BetaBrowserMiddleClickConfig, type BetaBrowserMouseMoveConfig as BetaBrowserMouseMoveConfig, type BetaBrowserNavigateConfig as BetaBrowserNavigateConfig, type BetaBrowserNewTabConfig as BetaBrowserNewTabConfig, type BetaBrowserReadConsoleConfig as BetaBrowserReadConsoleConfig, type BetaBrowserReadNetworkConfig as BetaBrowserReadNetworkConfig, type BetaBrowserReadPageConfig as BetaBrowserReadPageConfig, type BetaBrowserRightClickConfig as BetaBrowserRightClickConfig, type BetaBrowserScreenshotConfig as BetaBrowserScreenshotConfig, type BetaBrowserScrollConfig as BetaBrowserScrollConfig, type BetaBrowserScrollToConfig as BetaBrowserScrollToConfig, type BetaBrowserStateBlockParam as BetaBrowserStateBlockParam, type BetaBrowserStateChange as BetaBrowserStateChange, type BetaBrowserStateChangeDownloadCompleted as BetaBrowserStateChangeDownloadCompleted, type BetaBrowserStateChangeDownloadFailed as BetaBrowserStateChangeDownloadFailed, type BetaBrowserStateChangeDownloadStarted as BetaBrowserStateChangeDownloadStarted, type BetaBrowserStateChangeTabOpened as BetaBrowserStateChangeTabOpened, type BetaBrowserStateTabEntry as BetaBrowserStateTabEntry, type BetaBrowserSwitchTabConfig as BetaBrowserSwitchTabConfig, type BetaBrowserToolset20260801 as BetaBrowserToolset20260801, type BetaBrowserToolsetConfigs as BetaBrowserToolsetConfigs, type BetaBrowserTripleClickConfig as BetaBrowserTripleClickConfig, type BetaBrowserTypeConfig as BetaBrowserTypeConfig, type BetaBrowserWaitConfig as BetaBrowserWaitConfig, type BetaBrowserZoomConfig as BetaBrowserZoomConfig, type BetaCacheControlEphemeral as BetaCacheControlEphemeral, type BetaCacheCreation as BetaCacheCreation, type BetaCacheMissMessagesChanged as BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged as BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound as BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged as BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged as BetaCacheMissToolsChanged, type BetaCacheMissUnavailable as BetaCacheMissUnavailable, type BetaCitationCharLocation as BetaCitationCharLocation, type BetaCitationCharLocationParam as BetaCitationCharLocationParam, type BetaCitationConfig as BetaCitationConfig, type BetaCitationContentBlockLocation as BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam as BetaCitationContentBlockLocationParam, type BetaCitationPageLocation as BetaCitationPageLocation, type BetaCitationPageLocationParam as BetaCitationPageLocationParam, type BetaCitationSearchResultLocation as BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam as BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam as BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam as BetaCitationsConfigParam, type BetaCitationsDelta as BetaCitationsDelta, type BetaCitationsWebSearchResultLocation as BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit as BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse as BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit as BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse as BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock as BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam as BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock as BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam as BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522 as BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825 as BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120 as BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521 as BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock as BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent as BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam as BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent as BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError as BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode as BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam as BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit as BetaCompact20260112Edit, type BetaCompactionBlock as BetaCompactionBlock, type BetaCompactionBlockParam as BetaCompactionBlockParam, type BetaCompactionContentBlockDelta as BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage as BetaCompactionIterationUsage, type BetaComputerCursorPositionConfig as BetaComputerCursorPositionConfig, type BetaComputerDoubleClickConfig as BetaComputerDoubleClickConfig, type BetaComputerHoldKeyConfig as BetaComputerHoldKeyConfig, type BetaComputerKeyConfig as BetaComputerKeyConfig, type BetaComputerLeftClickConfig as BetaComputerLeftClickConfig, type BetaComputerLeftClickDragConfig as BetaComputerLeftClickDragConfig, type BetaComputerLeftMouseDownConfig as BetaComputerLeftMouseDownConfig, type BetaComputerLeftMouseUpConfig as BetaComputerLeftMouseUpConfig, type BetaComputerMiddleClickConfig as BetaComputerMiddleClickConfig, type BetaComputerMouseMoveConfig as BetaComputerMouseMoveConfig, type BetaComputerRightClickConfig as BetaComputerRightClickConfig, type BetaComputerScreenshotConfig as BetaComputerScreenshotConfig, type BetaComputerScrollConfig as BetaComputerScrollConfig, type BetaComputerToolset20260801 as BetaComputerToolset20260801, type BetaComputerToolsetConfigs as BetaComputerToolsetConfigs, type BetaComputerTripleClickConfig as BetaComputerTripleClickConfig, type BetaComputerTypeConfig as BetaComputerTypeConfig, type BetaComputerWaitConfig as BetaComputerWaitConfig, type BetaComputerZoomConfig as BetaComputerZoomConfig, type BetaContainer as BetaContainer, type BetaContainerParams as BetaContainerParams, type BetaContainerUploadBlock as BetaContainerUploadBlock, type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam, type BetaContentBlock as BetaContentBlock, type BetaContentBlockParam as BetaContentBlockParam, type BetaContentBlockSource as BetaContentBlockSource, type BetaContentBlockSourceContent as BetaContentBlockSourceContent, type BetaContextManagementConfig as BetaContextManagementConfig, type BetaContextManagementResponse as BetaContextManagementResponse, type BetaCountTokensContextManagementResponse as BetaCountTokensContextManagementResponse, type BetaDiagnostics as BetaDiagnostics, type BetaDiagnosticsParam as BetaDiagnosticsParam, type BetaDirectCaller as BetaDirectCaller, type BetaDocumentBlock as BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock as BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam as BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock as BetaFallbackBlock, type BetaFallbackBlockParam as BetaFallbackBlockParam, type BetaFallbackCreditNotApplied as BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed as BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam as BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage as BetaFallbackCreditUsage, type BetaFallbackInfo as BetaFallbackInfo, type BetaFallbackInfoParam as BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage as BetaFallbackMessageIterationUsage, type BetaFallbackParam as BetaFallbackParam, type BetaFallbackRefusalTrigger as BetaFallbackRefusalTrigger, type BetaFallbacksParam as BetaFallbacksParam, type BetaFileDocumentSource as BetaFileDocumentSource, type BetaFileImageSource as BetaFileImageSource, type BetaImageBlockParam as BetaImageBlockParam, type BetaImageTransformationsParam as BetaImageTransformationsParam, type BetaInputJSONDelta as BetaInputJSONDelta, type BetaInputTokensClearAtLeast as BetaInputTokensClearAtLeast, type BetaInputTokensTrigger as BetaInputTokensTrigger, type BetaIterationsUsage as BetaIterationsUsage, type BetaJSONOutputFormat as BetaJSONOutputFormat, type BetaMCPToolConfig as BetaMCPToolConfig, type BetaMCPToolDefaultConfig as BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock as BetaMCPToolResultBlock, type BetaMCPToolUseBlock as BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam as BetaMCPToolUseBlockParam, type BetaMCPToolset as BetaMCPToolset, type BetaMemoryTool20250818 as BetaMemoryTool20250818, type BetaMemoryTool20250818Command as BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand as BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand as BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand as BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand as BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand as BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand as BetaMemoryTool20250818ViewCommand, type BetaMessage as BetaMessage, type BetaMessageDeltaUsage as BetaMessageDeltaUsage, type BetaMessageIterationUsage as BetaMessageIterationUsage, type BetaMessageParam as BetaMessageParam, type BetaMessageTokensCount as BetaMessageTokensCount, type BetaMetadata as BetaMetadata, type BetaOutputConfig as BetaOutputConfig, type BetaOutputTokensDetails as BetaOutputTokensDetails, type BetaPlainTextSource as BetaPlainTextSource, type BetaRawContentBlockDelta as BetaRawContentBlockDelta, 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 BetaRefusalStopDetails as BetaRefusalStopDetails, type BetaRequestDocumentBlock as BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration as BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition as BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam as BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock as BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock as BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam as BetaSearchResultBlockParam, type BetaServerToolCaller as BetaServerToolCaller, type BetaServerToolCaller20260120 as BetaServerToolCaller20260120, type BetaServerToolUsage as BetaServerToolUsage, type BetaServerToolUseBlock as BetaServerToolUseBlock, type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam, type BetaSignatureDelta as BetaSignatureDelta, type BetaSkill as BetaSkill, type BetaSkillParams as BetaSkillParams, type BetaStopReason as BetaStopReason, type BetaTextBlock as BetaTextBlock, type BetaTextBlockParam as BetaTextBlockParam, type BetaTextCitation as BetaTextCitation, type BetaTextCitationParam as BetaTextCitationParam, type BetaTextDelta as BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock as BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam as BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock as BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam as BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock as BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam as BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError as BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam as BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock as BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam as BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock as BetaThinkingBlock, type BetaThinkingBlockParam as BetaThinkingBlockParam, type BetaThinkingConfigAdaptive as BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled as BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled as BetaThinkingConfigEnabled, type BetaThinkingConfigParam as BetaThinkingConfigParam, type BetaThinkingDelta as BetaThinkingDelta, type BetaThinkingTurns as BetaThinkingTurns, type BetaTokenTaskBudget as BetaTokenTaskBudget, type BetaTool as BetaTool, type BetaToolBash20241022 as BetaToolBash20241022, type BetaToolBash20250124 as BetaToolBash20250124, type BetaToolChangeMCPToolReference as BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference as BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference as BetaToolChangeToolReference, type BetaToolChoice as BetaToolChoice, type BetaToolChoiceAny as BetaToolChoiceAny, type BetaToolChoiceAuto as BetaToolChoiceAuto, type BetaToolChoiceNone as BetaToolChoiceNone, type BetaToolChoiceTool as BetaToolChoiceTool, type BetaToolComputerUse20241022 as BetaToolComputerUse20241022, type BetaToolComputerUse20250124 as BetaToolComputerUse20250124, type BetaToolComputerUse20251124 as BetaToolComputerUse20251124, type BetaToolReferenceBlock as BetaToolReferenceBlock, type BetaToolReferenceBlockParam as BetaToolReferenceBlockParam, type BetaToolResultBlockParam as BetaToolResultBlockParam, type BetaToolResultContentBlockParam as BetaToolResultContentBlockParam, type BetaToolSearchToolBm25_20251119 as BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119 as BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock as BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam as BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError as BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam as BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock as BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam as BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022 as BetaToolTextEditor20241022, type BetaToolTextEditor20250124 as BetaToolTextEditor20250124, type BetaToolTextEditor20250429 as BetaToolTextEditor20250429, type BetaToolTextEditor20250728 as BetaToolTextEditor20250728, type BetaToolUnion as BetaToolUnion, type BetaToolUseBlock as BetaToolUseBlock, type BetaToolUseBlockParam as BetaToolUseBlockParam, type BetaToolUsesKeep as BetaToolUsesKeep, type BetaToolUsesTrigger as BetaToolUsesTrigger, type BetaURLImageSource as BetaURLImageSource, type BetaURLPDFSource as BetaURLPDFSource, type BetaUsage as BetaUsage, type BetaUserLocation as BetaUserLocation, type BetaWebFetchBlock as BetaWebFetchBlock, type BetaWebFetchBlockParam as BetaWebFetchBlockParam, type BetaWebFetchTool20250910 as BetaWebFetchTool20250910, type BetaWebFetchTool20260209 as BetaWebFetchTool20260209, type BetaWebFetchTool20260309 as BetaWebFetchTool20260309, type BetaWebFetchTool20260318 as BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock as BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam as BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock as BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam as BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode as BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock as BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam as BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305 as BetaWebSearchTool20250305, type BetaWebSearchTool20260209 as BetaWebSearchTool20260209, type BetaWebSearchTool20260318 as BetaWebSearchTool20260318, type BetaWebSearchToolRequestError as BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock as BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent as BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam as BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent as BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError as BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode as BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock as BetaBase64PDFBlock, type MessageCreateParams as MessageCreateParams, type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming as MessageCreateParamsStreaming, type MessageCountTokensParams as MessageCountTokensParams, };
3131
5204
  export { type BetaToolRunnerParams, BetaToolRunner };
3132
5205
  export { ToolError };
3133
5206
  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, type 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, };