@anthropic-ai/sdk 0.125.0 → 0.127.0

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 (417) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/client.d.mts +12 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +12 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +865 -845
  7. package/client.js.map +1 -1
  8. package/client.mjs +866 -840
  9. package/client.mjs.map +1 -1
  10. package/core/api-promise.js +71 -68
  11. package/core/api-promise.js.map +1 -1
  12. package/core/api-promise.mjs +71 -64
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.js +5 -2
  15. package/core/error.js.map +1 -1
  16. package/core/error.mjs +5 -2
  17. package/core/error.mjs.map +1 -1
  18. package/core/pagination.js +56 -50
  19. package/core/pagination.js.map +1 -1
  20. package/core/pagination.mjs +56 -41
  21. package/core/pagination.mjs.map +1 -1
  22. package/core/streaming.js +212 -209
  23. package/core/streaming.js.map +1 -1
  24. package/core/streaming.mjs +212 -209
  25. package/core/streaming.mjs.map +1 -1
  26. package/helpers/beta/mcp.js +14 -19
  27. package/helpers/beta/mcp.js.map +1 -1
  28. package/helpers/beta/mcp.mjs +14 -13
  29. package/helpers/beta/mcp.mjs.map +1 -1
  30. package/internal/constants.js +1 -1
  31. package/internal/constants.js.map +1 -1
  32. package/internal/decoders/jsonl.js +27 -24
  33. package/internal/decoders/jsonl.js.map +1 -1
  34. package/internal/decoders/jsonl.mjs +27 -24
  35. package/internal/decoders/jsonl.mjs.map +1 -1
  36. package/internal/decoders/line.js +52 -49
  37. package/internal/decoders/line.js.map +1 -1
  38. package/internal/decoders/line.mjs +52 -43
  39. package/internal/decoders/line.mjs.map +1 -1
  40. package/internal/file-store.js +256 -258
  41. package/internal/file-store.js.map +1 -1
  42. package/internal/file-store.mjs +256 -243
  43. package/internal/file-store.mjs.map +1 -1
  44. package/internal/node.browser.d.mts.map +1 -1
  45. package/internal/node.browser.d.ts.map +1 -1
  46. package/internal/node.browser.js.map +1 -1
  47. package/internal/node.browser.mjs +7 -7
  48. package/internal/node.browser.mjs.map +1 -1
  49. package/internal/parse.d.mts.map +1 -1
  50. package/internal/parse.d.ts.map +1 -1
  51. package/internal/parse.js +2 -2
  52. package/internal/parse.js.map +1 -1
  53. package/internal/parse.mjs +3 -3
  54. package/internal/parse.mjs.map +1 -1
  55. package/internal/shim-types.js +0 -6
  56. package/internal/shim-types.js.map +1 -1
  57. package/internal/shim-types.mjs +0 -6
  58. package/internal/shim-types.mjs.map +1 -1
  59. package/internal/shims.d.mts +3 -3
  60. package/internal/shims.d.mts.map +1 -1
  61. package/internal/shims.d.ts +3 -3
  62. package/internal/shims.d.ts.map +1 -1
  63. package/internal/shims.js +0 -6
  64. package/internal/shims.js.map +1 -1
  65. package/internal/shims.mjs +0 -6
  66. package/internal/shims.mjs.map +1 -1
  67. package/internal/stainless-helper-header.js +6 -6
  68. package/internal/stainless-helper-header.js.map +1 -1
  69. package/internal/utils/async-queue.js +66 -63
  70. package/internal/utils/async-queue.js.map +1 -1
  71. package/internal/utils/async-queue.mjs +66 -56
  72. package/internal/utils/async-queue.mjs.map +1 -1
  73. package/internal/utils/bytes.d.mts +1 -1
  74. package/internal/utils/bytes.d.mts.map +1 -1
  75. package/internal/utils/bytes.d.ts +1 -1
  76. package/internal/utils/bytes.d.ts.map +1 -1
  77. package/internal/utils/log.d.mts +7 -12
  78. package/internal/utils/log.d.mts.map +1 -1
  79. package/internal/utils/log.d.ts +7 -12
  80. package/internal/utils/log.d.ts.map +1 -1
  81. package/internal/utils/log.js +12 -0
  82. package/internal/utils/log.js.map +1 -1
  83. package/internal/utils/log.mjs +11 -0
  84. package/internal/utils/log.mjs.map +1 -1
  85. package/lib/BetaMessageStream.d.mts.map +1 -1
  86. package/lib/BetaMessageStream.d.ts.map +1 -1
  87. package/lib/BetaMessageStream.js +595 -590
  88. package/lib/BetaMessageStream.js.map +1 -1
  89. package/lib/BetaMessageStream.mjs +595 -590
  90. package/lib/BetaMessageStream.mjs.map +1 -1
  91. package/lib/MessageStream.js +544 -541
  92. package/lib/MessageStream.js.map +1 -1
  93. package/lib/MessageStream.mjs +544 -541
  94. package/lib/MessageStream.mjs.map +1 -1
  95. package/lib/beta-parser.d.mts +1 -3
  96. package/lib/beta-parser.d.mts.map +1 -1
  97. package/lib/beta-parser.d.ts +1 -3
  98. package/lib/beta-parser.d.ts.map +1 -1
  99. package/lib/beta-parser.js.map +1 -1
  100. package/lib/beta-parser.mjs.map +1 -1
  101. package/lib/environments/poller.js +180 -174
  102. package/lib/environments/poller.js.map +1 -1
  103. package/lib/environments/poller.mjs +180 -153
  104. package/lib/environments/poller.mjs.map +1 -1
  105. package/lib/environments/worker.js +375 -369
  106. package/lib/environments/worker.js.map +1 -1
  107. package/lib/environments/worker.mjs +374 -329
  108. package/lib/environments/worker.mjs.map +1 -1
  109. package/lib/internal/stub.d.mts +2 -0
  110. package/lib/internal/stub.d.mts.map +1 -0
  111. package/lib/internal/stub.d.ts +2 -0
  112. package/lib/internal/stub.d.ts.map +1 -0
  113. package/lib/internal/stub.js +6 -0
  114. package/lib/internal/stub.js.map +1 -0
  115. package/lib/internal/stub.mjs +3 -0
  116. package/lib/internal/stub.mjs.map +1 -0
  117. package/lib/internal/types.d.mts +5 -0
  118. package/lib/internal/types.d.mts.map +1 -0
  119. package/lib/internal/types.d.ts +5 -0
  120. package/lib/internal/types.d.ts.map +1 -0
  121. package/lib/internal/types.js +3 -0
  122. package/lib/internal/types.js.map +1 -0
  123. package/lib/internal/types.mjs +2 -0
  124. package/lib/internal/types.mjs.map +1 -0
  125. package/lib/middleware.js +6 -1
  126. package/lib/middleware.js.map +1 -1
  127. package/lib/middleware.mjs +6 -1
  128. package/lib/middleware.mjs.map +1 -1
  129. package/lib/parser.d.mts +1 -3
  130. package/lib/parser.d.mts.map +1 -1
  131. package/lib/parser.d.ts +1 -3
  132. package/lib/parser.d.ts.map +1 -1
  133. package/lib/parser.js.map +1 -1
  134. package/lib/parser.mjs.map +1 -1
  135. package/lib/tools/BetaToolRunner.d.mts +21 -6
  136. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  137. package/lib/tools/BetaToolRunner.d.ts +21 -6
  138. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  139. package/lib/tools/BetaToolRunner.js +415 -310
  140. package/lib/tools/BetaToolRunner.js.map +1 -1
  141. package/lib/tools/BetaToolRunner.mjs +414 -303
  142. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  143. package/lib/tools/SessionToolRunner.js +241 -235
  144. package/lib/tools/SessionToolRunner.js.map +1 -1
  145. package/lib/tools/SessionToolRunner.mjs +241 -192
  146. package/lib/tools/SessionToolRunner.mjs.map +1 -1
  147. package/lib/tools/ToolError.js +39 -36
  148. package/lib/tools/ToolError.js.map +1 -1
  149. package/lib/tools/ToolError.mjs +39 -13
  150. package/lib/tools/ToolError.mjs.map +1 -1
  151. package/lib/transform-json-schema.js +7 -5
  152. package/lib/transform-json-schema.js.map +1 -1
  153. package/lib/transform-json-schema.mjs +7 -5
  154. package/lib/transform-json-schema.mjs.map +1 -1
  155. package/package.json +4 -3
  156. package/resources/beta/agents/agents.js +135 -132
  157. package/resources/beta/agents/agents.js.map +1 -1
  158. package/resources/beta/agents/agents.mjs +135 -132
  159. package/resources/beta/agents/agents.mjs.map +1 -1
  160. package/resources/beta/beta.d.mts +5 -5
  161. package/resources/beta/beta.d.mts.map +1 -1
  162. package/resources/beta/beta.d.ts +5 -5
  163. package/resources/beta/beta.d.ts.map +1 -1
  164. package/resources/beta/beta.js +39 -36
  165. package/resources/beta/beta.js.map +1 -1
  166. package/resources/beta/beta.mjs +39 -36
  167. package/resources/beta/beta.mjs.map +1 -1
  168. package/resources/beta/deployment-runs.d.mts +4 -0
  169. package/resources/beta/deployment-runs.d.mts.map +1 -1
  170. package/resources/beta/deployment-runs.d.ts +4 -0
  171. package/resources/beta/deployment-runs.d.ts.map +1 -1
  172. package/resources/beta/deployments.d.mts +5 -0
  173. package/resources/beta/deployments.d.mts.map +1 -1
  174. package/resources/beta/deployments.d.ts +5 -0
  175. package/resources/beta/deployments.d.ts.map +1 -1
  176. package/resources/beta/dreams.d.mts +19 -28
  177. package/resources/beta/dreams.d.mts.map +1 -1
  178. package/resources/beta/dreams.d.ts +19 -28
  179. package/resources/beta/dreams.d.ts.map +1 -1
  180. package/resources/beta/environments/environments.js +157 -154
  181. package/resources/beta/environments/environments.js.map +1 -1
  182. package/resources/beta/environments/environments.mjs +157 -154
  183. package/resources/beta/environments/environments.mjs.map +1 -1
  184. package/resources/beta/environments/work.js +255 -252
  185. package/resources/beta/environments/work.js.map +1 -1
  186. package/resources/beta/environments/work.mjs +255 -252
  187. package/resources/beta/environments/work.mjs.map +1 -1
  188. package/resources/beta/index.d.mts +2 -2
  189. package/resources/beta/index.d.mts.map +1 -1
  190. package/resources/beta/index.d.ts +2 -2
  191. package/resources/beta/index.d.ts.map +1 -1
  192. package/resources/beta/index.js.map +1 -1
  193. package/resources/beta/index.mjs.map +1 -1
  194. package/resources/beta/memory-stores/memories.d.mts +6 -0
  195. package/resources/beta/memory-stores/memories.d.mts.map +1 -1
  196. package/resources/beta/memory-stores/memories.d.ts +6 -0
  197. package/resources/beta/memory-stores/memories.d.ts.map +1 -1
  198. package/resources/beta/memory-stores/memory-stores.js +150 -147
  199. package/resources/beta/memory-stores/memory-stores.js.map +1 -1
  200. package/resources/beta/memory-stores/memory-stores.mjs +150 -147
  201. package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
  202. package/resources/beta/memory-stores/memory-versions.d.mts +7 -0
  203. package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  204. package/resources/beta/memory-stores/memory-versions.d.ts +7 -0
  205. package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  206. package/resources/beta/messages/batches.d.mts +12 -1
  207. package/resources/beta/messages/batches.d.mts.map +1 -1
  208. package/resources/beta/messages/batches.d.ts +12 -1
  209. package/resources/beta/messages/batches.d.ts.map +1 -1
  210. package/resources/beta/messages/index.d.mts +1 -1
  211. package/resources/beta/messages/index.d.mts.map +1 -1
  212. package/resources/beta/messages/index.d.ts +1 -1
  213. package/resources/beta/messages/index.d.ts.map +1 -1
  214. package/resources/beta/messages/index.js.map +1 -1
  215. package/resources/beta/messages/index.mjs.map +1 -1
  216. package/resources/beta/messages/messages.d.mts +239 -101
  217. package/resources/beta/messages/messages.d.mts.map +1 -1
  218. package/resources/beta/messages/messages.d.ts +239 -101
  219. package/resources/beta/messages/messages.d.ts.map +1 -1
  220. package/resources/beta/messages/messages.js +113 -110
  221. package/resources/beta/messages/messages.js.map +1 -1
  222. package/resources/beta/messages/messages.mjs +113 -110
  223. package/resources/beta/messages/messages.mjs.map +1 -1
  224. package/resources/beta/models.d.mts +22 -1
  225. package/resources/beta/models.d.mts.map +1 -1
  226. package/resources/beta/models.d.ts +22 -1
  227. package/resources/beta/models.d.ts.map +1 -1
  228. package/resources/beta/organization/federation/federation.js +11 -8
  229. package/resources/beta/organization/federation/federation.js.map +1 -1
  230. package/resources/beta/organization/federation/federation.mjs +11 -8
  231. package/resources/beta/organization/federation/federation.mjs.map +1 -1
  232. package/resources/beta/organization/federation/rules/rules.js +187 -184
  233. package/resources/beta/organization/federation/rules/rules.js.map +1 -1
  234. package/resources/beta/organization/federation/rules/rules.mjs +187 -184
  235. package/resources/beta/organization/federation/rules/rules.mjs.map +1 -1
  236. package/resources/beta/organization/index.d.mts +1 -1
  237. package/resources/beta/organization/index.d.mts.map +1 -1
  238. package/resources/beta/organization/index.d.ts +1 -1
  239. package/resources/beta/organization/index.d.ts.map +1 -1
  240. package/resources/beta/organization/index.js.map +1 -1
  241. package/resources/beta/organization/index.mjs.map +1 -1
  242. package/resources/beta/organization/organization.d.mts +2 -2
  243. package/resources/beta/organization/organization.d.mts.map +1 -1
  244. package/resources/beta/organization/organization.d.ts +2 -2
  245. package/resources/beta/organization/organization.d.ts.map +1 -1
  246. package/resources/beta/organization/organization.js +38 -35
  247. package/resources/beta/organization/organization.js.map +1 -1
  248. package/resources/beta/organization/organization.mjs +38 -35
  249. package/resources/beta/organization/organization.mjs.map +1 -1
  250. package/resources/beta/organization/rate-limits.d.mts +87 -5
  251. package/resources/beta/organization/rate-limits.d.mts.map +1 -1
  252. package/resources/beta/organization/rate-limits.d.ts +87 -5
  253. package/resources/beta/organization/rate-limits.d.ts.map +1 -1
  254. package/resources/beta/organization/service-accounts/service-accounts.js +163 -160
  255. package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -1
  256. package/resources/beta/organization/service-accounts/service-accounts.mjs +163 -160
  257. package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -1
  258. package/resources/beta/organization/workspaces/rate-limits.d.mts +9 -4
  259. package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -1
  260. package/resources/beta/organization/workspaces/rate-limits.d.ts +9 -4
  261. package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -1
  262. package/resources/beta/organization/workspaces/rate-limits.js.map +1 -1
  263. package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -1
  264. package/resources/beta/organization/workspaces/workspaces.d.mts +3 -3
  265. package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
  266. package/resources/beta/organization/workspaces/workspaces.d.ts +3 -3
  267. package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
  268. package/resources/beta/organization/workspaces/workspaces.js +97 -94
  269. package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
  270. package/resources/beta/organization/workspaces/workspaces.mjs +97 -94
  271. package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
  272. package/resources/beta/sessions/events.d.mts +12 -21
  273. package/resources/beta/sessions/events.d.mts.map +1 -1
  274. package/resources/beta/sessions/events.d.ts +12 -21
  275. package/resources/beta/sessions/events.d.ts.map +1 -1
  276. package/resources/beta/sessions/events.js +118 -115
  277. package/resources/beta/sessions/events.js.map +1 -1
  278. package/resources/beta/sessions/events.mjs +118 -115
  279. package/resources/beta/sessions/events.mjs.map +1 -1
  280. package/resources/beta/sessions/resources.d.mts +0 -3
  281. package/resources/beta/sessions/resources.d.mts.map +1 -1
  282. package/resources/beta/sessions/resources.d.ts +0 -3
  283. package/resources/beta/sessions/resources.d.ts.map +1 -1
  284. package/resources/beta/sessions/sessions.d.mts +8 -2
  285. package/resources/beta/sessions/sessions.d.mts.map +1 -1
  286. package/resources/beta/sessions/sessions.d.ts +8 -2
  287. package/resources/beta/sessions/sessions.d.ts.map +1 -1
  288. package/resources/beta/sessions/sessions.js +161 -158
  289. package/resources/beta/sessions/sessions.js.map +1 -1
  290. package/resources/beta/sessions/sessions.mjs +161 -158
  291. package/resources/beta/sessions/sessions.mjs.map +1 -1
  292. package/resources/beta/sessions/threads/threads.js +86 -83
  293. package/resources/beta/sessions/threads/threads.js.map +1 -1
  294. package/resources/beta/sessions/threads/threads.mjs +86 -83
  295. package/resources/beta/sessions/threads/threads.mjs.map +1 -1
  296. package/resources/beta/skills/skills.js +104 -101
  297. package/resources/beta/skills/skills.js.map +1 -1
  298. package/resources/beta/skills/skills.mjs +104 -101
  299. package/resources/beta/skills/skills.mjs.map +1 -1
  300. package/resources/beta/tunnels/certificates.d.mts +2 -2
  301. package/resources/beta/tunnels/certificates.d.ts +2 -2
  302. package/resources/beta/tunnels/tunnels.js +188 -185
  303. package/resources/beta/tunnels/tunnels.js.map +1 -1
  304. package/resources/beta/tunnels/tunnels.mjs +188 -185
  305. package/resources/beta/tunnels/tunnels.mjs.map +1 -1
  306. package/resources/beta/user-profiles.d.mts +45 -0
  307. package/resources/beta/user-profiles.d.mts.map +1 -1
  308. package/resources/beta/user-profiles.d.ts +45 -0
  309. package/resources/beta/user-profiles.d.ts.map +1 -1
  310. package/resources/beta/user-profiles.js +25 -10
  311. package/resources/beta/user-profiles.js.map +1 -1
  312. package/resources/beta/user-profiles.mjs +25 -10
  313. package/resources/beta/user-profiles.mjs.map +1 -1
  314. package/resources/beta/vaults/credentials.d.mts +19 -19
  315. package/resources/beta/vaults/credentials.d.mts.map +1 -1
  316. package/resources/beta/vaults/credentials.d.ts +19 -19
  317. package/resources/beta/vaults/credentials.d.ts.map +1 -1
  318. package/resources/beta/vaults/vaults.js +156 -153
  319. package/resources/beta/vaults/vaults.js.map +1 -1
  320. package/resources/beta/vaults/vaults.mjs +156 -153
  321. package/resources/beta/vaults/vaults.mjs.map +1 -1
  322. package/resources/completions.d.mts +1 -1
  323. package/resources/completions.d.ts +1 -1
  324. package/resources/index.d.mts +1 -1
  325. package/resources/index.d.mts.map +1 -1
  326. package/resources/index.d.ts +1 -1
  327. package/resources/index.d.ts.map +1 -1
  328. package/resources/index.js.map +1 -1
  329. package/resources/index.mjs.map +1 -1
  330. package/resources/messages/index.d.mts +1 -1
  331. package/resources/messages/index.d.mts.map +1 -1
  332. package/resources/messages/index.d.ts +1 -1
  333. package/resources/messages/index.d.ts.map +1 -1
  334. package/resources/messages/index.js.map +1 -1
  335. package/resources/messages/index.mjs.map +1 -1
  336. package/resources/messages/messages.d.mts +100 -63
  337. package/resources/messages/messages.d.mts.map +1 -1
  338. package/resources/messages/messages.d.ts +100 -63
  339. package/resources/messages/messages.d.ts.map +1 -1
  340. package/resources/messages/messages.js +115 -112
  341. package/resources/messages/messages.js.map +1 -1
  342. package/resources/messages/messages.mjs +115 -112
  343. package/resources/messages/messages.mjs.map +1 -1
  344. package/resources/skills/skills.js +88 -85
  345. package/resources/skills/skills.js.map +1 -1
  346. package/resources/skills/skills.mjs +88 -85
  347. package/resources/skills/skills.mjs.map +1 -1
  348. package/resources/top-level.js +0 -1
  349. package/resources/top-level.js.map +1 -1
  350. package/resources/top-level.mjs +0 -1
  351. package/resources/top-level.mjs.map +1 -1
  352. package/src/client.ts +95 -72
  353. package/src/internal/node.browser.ts +7 -7
  354. package/src/internal/parse.ts +8 -11
  355. package/src/internal/shims.ts +4 -3
  356. package/src/internal/utils/bytes.ts +1 -1
  357. package/src/internal/utils/log.ts +16 -2
  358. package/src/lib/BetaMessageStream.ts +7 -5
  359. package/src/lib/beta-parser.ts +1 -3
  360. package/src/lib/internal/stub.ts +2 -0
  361. package/src/lib/internal/types.ts +2 -0
  362. package/src/lib/middleware.ts +6 -1
  363. package/src/lib/parser.ts +1 -3
  364. package/src/lib/tools/BetaToolRunner.ts +157 -24
  365. package/src/lib/transform-json-schema.ts +8 -6
  366. package/src/resources/beta/beta.ts +24 -1
  367. package/src/resources/beta/deployment-runs.ts +4 -0
  368. package/src/resources/beta/deployments.ts +5 -0
  369. package/src/resources/beta/dreams.ts +19 -28
  370. package/src/resources/beta/index.ts +11 -0
  371. package/src/resources/beta/memory-stores/memories.ts +6 -0
  372. package/src/resources/beta/memory-stores/memory-versions.ts +7 -0
  373. package/src/resources/beta/messages/batches.ts +13 -1
  374. package/src/resources/beta/messages/index.ts +10 -0
  375. package/src/resources/beta/messages/messages.ts +289 -100
  376. package/src/resources/beta/models.ts +25 -0
  377. package/src/resources/beta/organization/index.ts +6 -0
  378. package/src/resources/beta/organization/organization.ts +12 -0
  379. package/src/resources/beta/organization/rate-limits.ts +112 -4
  380. package/src/resources/beta/organization/workspaces/rate-limits.ts +16 -4
  381. package/src/resources/beta/organization/workspaces/workspaces.ts +3 -3
  382. package/src/resources/beta/sessions/events.ts +12 -21
  383. package/src/resources/beta/sessions/resources.ts +0 -3
  384. package/src/resources/beta/sessions/sessions.ts +8 -2
  385. package/src/resources/beta/tunnels/certificates.ts +2 -2
  386. package/src/resources/beta/user-profiles.ts +75 -10
  387. package/src/resources/beta/vaults/credentials.ts +19 -19
  388. package/src/resources/completions.ts +1 -1
  389. package/src/resources/index.ts +6 -0
  390. package/src/resources/messages/index.ts +6 -0
  391. package/src/resources/messages/messages.ts +128 -62
  392. package/src/tsconfig.json +13 -3
  393. package/src/version.ts +1 -1
  394. package/tools/agent-toolset/fs-util.js +0 -6
  395. package/tools/agent-toolset/fs-util.js.map +1 -1
  396. package/tools/agent-toolset/fs-util.mjs +0 -6
  397. package/tools/agent-toolset/fs-util.mjs.map +1 -1
  398. package/tools/agent-toolset/memories.js +4 -4
  399. package/tools/agent-toolset/memories.js.map +1 -1
  400. package/tools/agent-toolset/memories.mjs +2 -2
  401. package/tools/agent-toolset/memories.mjs.map +1 -1
  402. package/tools/agent-toolset/node.browser.js +12 -12
  403. package/tools/agent-toolset/node.browser.js.map +1 -1
  404. package/tools/agent-toolset/node.js +142 -139
  405. package/tools/agent-toolset/node.js.map +1 -1
  406. package/tools/agent-toolset/node.mjs +132 -125
  407. package/tools/agent-toolset/node.mjs.map +1 -1
  408. package/tools/agent-toolset/skills.js +5 -5
  409. package/tools/agent-toolset/skills.js.map +1 -1
  410. package/tools/agent-toolset/sync-interval.js +3 -3
  411. package/tools/agent-toolset/sync-interval.js.map +1 -1
  412. package/tools/memory/node.browser.js +2 -2
  413. package/tools/memory/node.browser.js.map +1 -1
  414. package/version.d.mts +1 -1
  415. package/version.d.ts +1 -1
  416. package/version.js +1 -1
  417. package/version.mjs +1 -1
@@ -4,259 +4,262 @@ import { buildHeaders } from "../../../internal/headers.mjs";
4
4
  import { path } from "../../../internal/utils/path.mjs";
5
5
  import { WorkPoller, } from "../../../lib/environments/poller.mjs";
6
6
  import { EnvironmentWorker, } from "../../../lib/environments/worker.mjs";
7
- export class Work extends APIResource {
8
- /**
9
- * Note: these endpoints are called automatically by the pre-built environment
10
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
11
- * sandbox environments. They are included here as a reference; you do not need to
12
- * invoke them directly.
13
- *
14
- * Retrieve detailed information about a specific work item.
15
- *
16
- * @example
17
- * ```ts
18
- * const betaSelfHostedWork =
19
- * await client.beta.environments.work.retrieve('work_id', {
20
- * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
21
- * });
22
- * ```
23
- */
24
- retrieve(workID, params, options) {
25
- const { environment_id, betas, workspace_id } = params;
26
- return this._client.get(path `/v1/environments/${environment_id}/work/${workID}?beta=true`, {
27
- ...options,
28
- headers: buildHeaders([
29
- {
30
- 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
31
- ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
32
- },
33
- options?.headers,
34
- ]),
35
- });
7
+ export var Work = /* @__PURE__ */ (() => {
8
+ class Work extends APIResource {
9
+ /**
10
+ * Note: these endpoints are called automatically by the pre-built environment
11
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
12
+ * sandbox environments. They are included here as a reference; you do not need to
13
+ * invoke them directly.
14
+ *
15
+ * Retrieve detailed information about a specific work item.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const betaSelfHostedWork =
20
+ * await client.beta.environments.work.retrieve('work_id', {
21
+ * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
22
+ * });
23
+ * ```
24
+ */
25
+ retrieve(workID, params, options) {
26
+ const { environment_id, betas, workspace_id } = params;
27
+ return this._client.get(path `/v1/environments/${environment_id}/work/${workID}?beta=true`, {
28
+ ...options,
29
+ headers: buildHeaders([
30
+ {
31
+ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
32
+ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
33
+ },
34
+ options?.headers,
35
+ ]),
36
+ });
37
+ }
38
+ /**
39
+ * Note: these endpoints are called automatically by the pre-built environment
40
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
41
+ * sandbox environments. They are included here as a reference; you do not need to
42
+ * invoke them directly.
43
+ *
44
+ * Update work item metadata with merge semantics.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const betaSelfHostedWork =
49
+ * await client.beta.environments.work.update('work_id', {
50
+ * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
51
+ * metadata: { foo: 'string' },
52
+ * });
53
+ * ```
54
+ */
55
+ update(workID, params, options) {
56
+ const { environment_id, betas, workspace_id, ...body } = params;
57
+ return this._client.post(path `/v1/environments/${environment_id}/work/${workID}?beta=true`, {
58
+ body,
59
+ ...options,
60
+ headers: buildHeaders([
61
+ {
62
+ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
63
+ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
64
+ },
65
+ options?.headers,
66
+ ]),
67
+ });
68
+ }
69
+ /**
70
+ * Note: these endpoints are called automatically by the pre-built environment
71
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
72
+ * sandbox environments. They are included here as a reference; you do not need to
73
+ * invoke them directly.
74
+ *
75
+ * List work items in an environment.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * // Automatically fetches more pages as needed.
80
+ * for await (const betaSelfHostedWork of client.beta.environments.work.list(
81
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
82
+ * )) {
83
+ * // ...
84
+ * }
85
+ * ```
86
+ */
87
+ list(environmentID, params = {}, options) {
88
+ const { betas, ...query } = params ?? {};
89
+ return this._client.getAPIList(path `/v1/environments/${environmentID}/work?beta=true`, (PageCursor), {
90
+ query,
91
+ ...options,
92
+ headers: buildHeaders([
93
+ { 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
94
+ options?.headers,
95
+ ]),
96
+ });
97
+ }
98
+ /**
99
+ * Note: these endpoints are called automatically by the pre-built environment
100
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
101
+ * sandbox environments. They are included here as a reference; you do not need to
102
+ * invoke them directly.
103
+ *
104
+ * Acknowledge receipt of a work item, transitioning it from 'queued' to 'starting'
105
+ * and removing it from the queue.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * const betaSelfHostedWork =
110
+ * await client.beta.environments.work.ack('work_id', {
111
+ * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
112
+ * });
113
+ * ```
114
+ */
115
+ ack(workID, params, options) {
116
+ const { environment_id, betas } = params;
117
+ return this._client.post(path `/v1/environments/${environment_id}/work/${workID}/ack?beta=true`, {
118
+ ...options,
119
+ headers: buildHeaders([
120
+ { 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
121
+ options?.headers,
122
+ ]),
123
+ });
124
+ }
125
+ /**
126
+ * Note: these endpoints are called automatically by the pre-built environment
127
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
128
+ * sandbox environments. They are included here as a reference; you do not need to
129
+ * invoke them directly.
130
+ *
131
+ * Record a heartbeat for a work item to maintain the lease.
132
+ *
133
+ * @example
134
+ * ```ts
135
+ * const betaSelfHostedWorkHeartbeatResponse =
136
+ * await client.beta.environments.work.heartbeat('work_id', {
137
+ * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
138
+ * });
139
+ * ```
140
+ */
141
+ heartbeat(workID, params, options) {
142
+ const { environment_id, desired_ttl_seconds, expected_last_heartbeat, betas } = params;
143
+ return this._client.post(path `/v1/environments/${environment_id}/work/${workID}/heartbeat?beta=true`, {
144
+ query: { desired_ttl_seconds, expected_last_heartbeat },
145
+ ...options,
146
+ headers: buildHeaders([
147
+ { 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
148
+ options?.headers,
149
+ ]),
150
+ });
151
+ }
152
+ /**
153
+ * Note: these endpoints are called automatically by the pre-built environment
154
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
155
+ * sandbox environments. They are included here as a reference; you do not need to
156
+ * invoke them directly.
157
+ *
158
+ * Long poll for work items in the queue.
159
+ *
160
+ * @example
161
+ * ```ts
162
+ * const betaSelfHostedWork =
163
+ * await client.beta.environments.work.poll(
164
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
165
+ * );
166
+ * ```
167
+ */
168
+ poll(environmentID, params = {}, options) {
169
+ const { betas, 'Anthropic-Worker-ID': anthropicWorkerID, ...query } = params ?? {};
170
+ return this._client.get(path `/v1/environments/${environmentID}/work/poll?beta=true`, {
171
+ query,
172
+ ...options,
173
+ headers: buildHeaders([
174
+ {
175
+ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
176
+ ...(anthropicWorkerID != null ? { 'Anthropic-Worker-ID': anthropicWorkerID } : undefined),
177
+ },
178
+ options?.headers,
179
+ ]),
180
+ });
181
+ }
182
+ /**
183
+ * Get statistics about the work queue for an environment.
184
+ *
185
+ * @example
186
+ * ```ts
187
+ * const betaSelfHostedWorkQueueStats =
188
+ * await client.beta.environments.work.stats(
189
+ * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
190
+ * );
191
+ * ```
192
+ */
193
+ stats(environmentID, params = {}, options) {
194
+ const { betas, workspace_id } = params ?? {};
195
+ return this._client.get(path `/v1/environments/${environmentID}/work/stats?beta=true`, {
196
+ ...options,
197
+ headers: buildHeaders([
198
+ {
199
+ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
200
+ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
201
+ },
202
+ options?.headers,
203
+ ]),
204
+ });
205
+ }
206
+ /**
207
+ * Note: these endpoints are called automatically by the pre-built environment
208
+ * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
209
+ * sandbox environments. They are included here as a reference; you do not need to
210
+ * invoke them directly.
211
+ *
212
+ * Stop a work item, initiating graceful or forced shutdown.
213
+ *
214
+ * @example
215
+ * ```ts
216
+ * const betaSelfHostedWork =
217
+ * await client.beta.environments.work.stop('work_id', {
218
+ * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
219
+ * });
220
+ * ```
221
+ */
222
+ stop(workID, params, options) {
223
+ const { environment_id, betas, workspace_id, ...body } = params;
224
+ return this._client.post(path `/v1/environments/${environment_id}/work/${workID}/stop?beta=true`, {
225
+ body,
226
+ ...options,
227
+ headers: buildHeaders([
228
+ {
229
+ 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
230
+ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
231
+ },
232
+ options?.headers,
233
+ ]),
234
+ });
235
+ }
236
+ /**
237
+ * Continuously claim work from a self-hosted environment, ack each item,
238
+ * and yield it. Posts `stop` automatically when the consumer's loop body
239
+ * returns or when iteration ends.
240
+ *
241
+ * @example
242
+ * ```ts
243
+ * for await (const work of client.beta.environments.work.poller({
244
+ * environmentId,
245
+ * environmentKey,
246
+ * })) {
247
+ * if (work.data.type !== 'session') continue;
248
+ * // ...service the work...
249
+ * }
250
+ * ```
251
+ */
252
+ poller(opts) {
253
+ return new WorkPoller({ ...opts, client: this._client });
254
+ }
255
+ worker(opts) {
256
+ return new EnvironmentWorker({ ...opts, client: this._client });
257
+ }
36
258
  }
37
- /**
38
- * Note: these endpoints are called automatically by the pre-built environment
39
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
40
- * sandbox environments. They are included here as a reference; you do not need to
41
- * invoke them directly.
42
- *
43
- * Update work item metadata with merge semantics.
44
- *
45
- * @example
46
- * ```ts
47
- * const betaSelfHostedWork =
48
- * await client.beta.environments.work.update('work_id', {
49
- * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
50
- * metadata: { foo: 'string' },
51
- * });
52
- * ```
53
- */
54
- update(workID, params, options) {
55
- const { environment_id, betas, workspace_id, ...body } = params;
56
- return this._client.post(path `/v1/environments/${environment_id}/work/${workID}?beta=true`, {
57
- body,
58
- ...options,
59
- headers: buildHeaders([
60
- {
61
- 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
62
- ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
63
- },
64
- options?.headers,
65
- ]),
66
- });
67
- }
68
- /**
69
- * Note: these endpoints are called automatically by the pre-built environment
70
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
71
- * sandbox environments. They are included here as a reference; you do not need to
72
- * invoke them directly.
73
- *
74
- * List work items in an environment.
75
- *
76
- * @example
77
- * ```ts
78
- * // Automatically fetches more pages as needed.
79
- * for await (const betaSelfHostedWork of client.beta.environments.work.list(
80
- * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
81
- * )) {
82
- * // ...
83
- * }
84
- * ```
85
- */
86
- list(environmentID, params = {}, options) {
87
- const { betas, ...query } = params ?? {};
88
- return this._client.getAPIList(path `/v1/environments/${environmentID}/work?beta=true`, (PageCursor), {
89
- query,
90
- ...options,
91
- headers: buildHeaders([
92
- { 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
93
- options?.headers,
94
- ]),
95
- });
96
- }
97
- /**
98
- * Note: these endpoints are called automatically by the pre-built environment
99
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
100
- * sandbox environments. They are included here as a reference; you do not need to
101
- * invoke them directly.
102
- *
103
- * Acknowledge receipt of a work item, transitioning it from 'queued' to 'starting'
104
- * and removing it from the queue.
105
- *
106
- * @example
107
- * ```ts
108
- * const betaSelfHostedWork =
109
- * await client.beta.environments.work.ack('work_id', {
110
- * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
111
- * });
112
- * ```
113
- */
114
- ack(workID, params, options) {
115
- const { environment_id, betas } = params;
116
- return this._client.post(path `/v1/environments/${environment_id}/work/${workID}/ack?beta=true`, {
117
- ...options,
118
- headers: buildHeaders([
119
- { 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
120
- options?.headers,
121
- ]),
122
- });
123
- }
124
- /**
125
- * Note: these endpoints are called automatically by the pre-built environment
126
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
127
- * sandbox environments. They are included here as a reference; you do not need to
128
- * invoke them directly.
129
- *
130
- * Record a heartbeat for a work item to maintain the lease.
131
- *
132
- * @example
133
- * ```ts
134
- * const betaSelfHostedWorkHeartbeatResponse =
135
- * await client.beta.environments.work.heartbeat('work_id', {
136
- * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
137
- * });
138
- * ```
139
- */
140
- heartbeat(workID, params, options) {
141
- const { environment_id, desired_ttl_seconds, expected_last_heartbeat, betas } = params;
142
- return this._client.post(path `/v1/environments/${environment_id}/work/${workID}/heartbeat?beta=true`, {
143
- query: { desired_ttl_seconds, expected_last_heartbeat },
144
- ...options,
145
- headers: buildHeaders([
146
- { 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString() },
147
- options?.headers,
148
- ]),
149
- });
150
- }
151
- /**
152
- * Note: these endpoints are called automatically by the pre-built environment
153
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
154
- * sandbox environments. They are included here as a reference; you do not need to
155
- * invoke them directly.
156
- *
157
- * Long poll for work items in the queue.
158
- *
159
- * @example
160
- * ```ts
161
- * const betaSelfHostedWork =
162
- * await client.beta.environments.work.poll(
163
- * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
164
- * );
165
- * ```
166
- */
167
- poll(environmentID, params = {}, options) {
168
- const { betas, 'Anthropic-Worker-ID': anthropicWorkerID, ...query } = params ?? {};
169
- return this._client.get(path `/v1/environments/${environmentID}/work/poll?beta=true`, {
170
- query,
171
- ...options,
172
- headers: buildHeaders([
173
- {
174
- 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
175
- ...(anthropicWorkerID != null ? { 'Anthropic-Worker-ID': anthropicWorkerID } : undefined),
176
- },
177
- options?.headers,
178
- ]),
179
- });
180
- }
181
- /**
182
- * Get statistics about the work queue for an environment.
183
- *
184
- * @example
185
- * ```ts
186
- * const betaSelfHostedWorkQueueStats =
187
- * await client.beta.environments.work.stats(
188
- * 'env_011CZkZ9X2dpNyB7HsEFoRfW',
189
- * );
190
- * ```
191
- */
192
- stats(environmentID, params = {}, options) {
193
- const { betas, workspace_id } = params ?? {};
194
- return this._client.get(path `/v1/environments/${environmentID}/work/stats?beta=true`, {
195
- ...options,
196
- headers: buildHeaders([
197
- {
198
- 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
199
- ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
200
- },
201
- options?.headers,
202
- ]),
203
- });
204
- }
205
- /**
206
- * Note: these endpoints are called automatically by the pre-built environment
207
- * worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
208
- * sandbox environments. They are included here as a reference; you do not need to
209
- * invoke them directly.
210
- *
211
- * Stop a work item, initiating graceful or forced shutdown.
212
- *
213
- * @example
214
- * ```ts
215
- * const betaSelfHostedWork =
216
- * await client.beta.environments.work.stop('work_id', {
217
- * environment_id: 'env_011CZkZ9X2dpNyB7HsEFoRfW',
218
- * });
219
- * ```
220
- */
221
- stop(workID, params, options) {
222
- const { environment_id, betas, workspace_id, ...body } = params;
223
- return this._client.post(path `/v1/environments/${environment_id}/work/${workID}/stop?beta=true`, {
224
- body,
225
- ...options,
226
- headers: buildHeaders([
227
- {
228
- 'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
229
- ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
230
- },
231
- options?.headers,
232
- ]),
233
- });
234
- }
235
- /**
236
- * Continuously claim work from a self-hosted environment, ack each item,
237
- * and yield it. Posts `stop` automatically when the consumer's loop body
238
- * returns or when iteration ends.
239
- *
240
- * @example
241
- * ```ts
242
- * for await (const work of client.beta.environments.work.poller({
243
- * environmentId,
244
- * environmentKey,
245
- * })) {
246
- * if (work.data.type !== 'session') continue;
247
- * // ...service the work...
248
- * }
249
- * ```
250
- */
251
- poller(opts) {
252
- return new WorkPoller({ ...opts, client: this._client });
253
- }
254
- worker(opts) {
255
- return new EnvironmentWorker({ ...opts, client: this._client });
256
- }
257
- }
259
+ Work.WorkPoller = WorkPoller;
260
+ Work.EnvironmentWorker = EnvironmentWorker;
261
+ return Work;
262
+ })();
258
263
  export { WorkPoller } from "../../../lib/environments/poller.mjs";
259
264
  export { EnvironmentWorker } from "../../../lib/environments/worker.mjs";
260
- Work.WorkPoller = WorkPoller;
261
- Work.EnvironmentWorker = EnvironmentWorker;
262
265
  //# sourceMappingURL=work.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"work.mjs","sourceRoot":"","s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AAE,MAAsB,EAAE,OAAwB;YACnE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;YAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,cAAc,SAAS,MAAM,iBAAiB,EAAE;gBAC/F,IAAI;gBACJ,GAAG,OAAO;gBACV,OAAO,EAAE,YAAY,CAAC;oBACpB;wBACE,gBAAgB,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC,QAAQ,EAAE;wBAC5E,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,wBAAwB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;qBACnF;oBACD,OAAO,EAAE,OAAO;iBACjB,CAAC;aACH,CAAC,CAAC;QACL,CAAC;QAED;;;;;;;;;;;;;;;WAeG;QACH,MAAM,CAAC,IAA6C;YAClD,OAAO,IAAI,UAAU,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,OAAoB,EAAE,CAAC,CAAC;QACxE,CAAC;QA0BD,MAAM,CAAC,IAAoD;YACzD,OAAO,IAAI,iBAAiB,CAAC,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,OAAoB,EAAE,CAAC,CAAC;QAC/E,CAAC;KACF;IAoZD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC7B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;;;AAJ3C,OAAO,EAAE,UAAU,EAA0B,6CAAyC;AACtF,OAAO,EAAE,iBAAiB,EAAiC,6CAAyC"}
@@ -6,8 +6,8 @@ export { Dreams, type BetaDream, type BetaDreamError, type BetaDreamInput, type
6
6
  export { Environments, type BetaCloudConfig, type BetaCloudConfigParams, type BetaEnvironment, type BetaEnvironmentDeleteResponse, type BetaLimitedNetwork, type BetaLimitedNetworkParams, type BetaPackages, type BetaPackagesParams, type BetaSelfHostedConfig, type BetaSelfHostedConfigParams, type BetaUnrestrictedNetwork, type EnvironmentCreateParams, type EnvironmentRetrieveParams, type EnvironmentUpdateParams, type EnvironmentListParams, type EnvironmentDeleteParams, type EnvironmentArchiveParams, type BetaEnvironmentsPageCursor, } from "./environments/index.mjs";
7
7
  export { Files, type BetaDeletedFile, type BetaFileMetadata, type BetaFileScope, type FileListParams, type FileDeleteParams, type FileDownloadParams, type FileRetrieveMetadataParams, type FileUploadParams, type BetaFileMetadataPageCursor, } from "./files.mjs";
8
8
  export { MemoryStores, type BetaManagedAgentsDeletedMemoryStore, type BetaManagedAgentsMemoryStore, type MemoryStoreCreateParams, type MemoryStoreRetrieveParams, type MemoryStoreUpdateParams, type MemoryStoreListParams, type MemoryStoreDeleteParams, type MemoryStoreArchiveParams, type BetaManagedAgentsMemoryStoresPageCursor, } from "./memory-stores/index.mjs";
9
- export { Messages, type BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns, type BetaBase64ImageSource, type BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam, type BetaBrowserCloseTabConfig, type BetaBrowserDoubleClickConfig, type BetaBrowserFileUploadConfig, type BetaBrowserFindConfig, type BetaBrowserFormInputConfig, type BetaBrowserGetPageTextConfig, type BetaBrowserHoldKeyConfig, type BetaBrowserHoverConfig, type BetaBrowserJavascriptExecConfig, type BetaBrowserKeyConfig, type BetaBrowserLeftClickConfig, type BetaBrowserLeftClickDragConfig, type BetaBrowserLeftMouseDownConfig, type BetaBrowserLeftMouseUpConfig, type BetaBrowserListTabsConfig, type BetaBrowserMiddleClickConfig, type BetaBrowserMouseMoveConfig, type BetaBrowserNavigateConfig, type BetaBrowserNewTabConfig, type BetaBrowserReadConsoleConfig, type BetaBrowserReadNetworkConfig, type BetaBrowserReadPageConfig, type BetaBrowserRightClickConfig, type BetaBrowserScreenshotConfig, type BetaBrowserScrollConfig, type BetaBrowserScrollToConfig, type BetaBrowserStateBlockParam, type BetaBrowserStateChange, type BetaBrowserStateChangeDownloadCompleted, type BetaBrowserStateChangeDownloadFailed, type BetaBrowserStateChangeDownloadStarted, type BetaBrowserStateChangeTabOpened, type BetaBrowserStateTabEntry, type BetaBrowserSwitchTabConfig, type BetaBrowserToolset20260801, type BetaBrowserToolsetConfigs, type BetaBrowserTripleClickConfig, type BetaBrowserTypeConfig, type BetaBrowserWaitConfig, type BetaBrowserZoomConfig, type BetaCacheControlEphemeral, type BetaCacheCreation, type BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged, type BetaCacheMissUnavailable, type BetaCitationCharLocation, type BetaCitationCharLocationParam, type BetaCitationConfig, type BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam, type BetaCitationPageLocation, type BetaCitationPageLocationParam, type BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam, type BetaCitationsDelta, type BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit, type BetaCompactionBlock, type BetaCompactionBlockParam, type BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage, type BetaComputerCursorPositionConfig, type BetaComputerDoubleClickConfig, type BetaComputerHoldKeyConfig, type BetaComputerKeyConfig, type BetaComputerLeftClickConfig, type BetaComputerLeftClickDragConfig, type BetaComputerLeftMouseDownConfig, type BetaComputerLeftMouseUpConfig, type BetaComputerMiddleClickConfig, type BetaComputerMouseMoveConfig, type BetaComputerRightClickConfig, type BetaComputerScreenshotConfig, type BetaComputerScrollConfig, type BetaComputerToolset20260801, type BetaComputerToolsetConfigs, type BetaComputerTripleClickConfig, type BetaComputerTypeConfig, type BetaComputerWaitConfig, type BetaComputerZoomConfig, type BetaContainer, type BetaContainerParams, type BetaContainerSkill, type BetaContainerUploadBlock, type BetaContainerUploadBlockParam, type BetaContentBlock, type BetaContentBlockParam, type BetaContentBlockSource, type BetaContentBlockSourceContent, type BetaContextManagementConfig, type BetaContextManagementResponse, type BetaCountTokensContextManagementResponse, type BetaDiagnostics, type BetaDiagnosticsParam, type BetaDirectCaller, type BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock, type BetaFallbackBlockParam, type BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage, type BetaFallbackInfo, type BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage, type BetaFallbackParam, type BetaFallbackRefusalTrigger, type BetaFallbacksParam, type BetaFileDocumentSource, type BetaFileImageSource, type BetaImageBlockParam, type BetaImageTransformationsParam, type BetaInputJSONDelta, type BetaInputTokensClearAtLeast, type BetaInputTokensTrigger, type BetaIterationsUsage, type BetaJSONOutputFormat, type BetaMCPToolConfig, type BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock, type BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam, type BetaMCPToolset, type BetaMemoryTool20250818, type BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand, type BetaMessage, type BetaMessageDeltaUsage, type BetaMessageIterationUsage, type BetaMessageParam, type BetaMessageTokensCount, type BetaMetadata, type BetaOutputConfig, type BetaOutputTokensDetails, type BetaPlainTextSource, type BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent, type BetaRawMessageStopEvent, type BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails, type BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam, type BetaServerToolCaller, type BetaServerToolCaller20260120, type BetaServerToolUsage, type BetaServerToolUseBlock, type BetaServerToolUseBlockParam, type BetaSignatureDelta, type BetaSkillParams, type BetaStopReason, type BetaSystemMessageOutputConfig, type BetaTextBlock, type BetaTextBlockParam, type BetaTextCitation, type BetaTextCitationParam, type BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock, type BetaThinkingBlockBinding, type BetaThinkingBlockParam, type BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled, type BetaThinkingConfigParam, type BetaThinkingDelta, type BetaThinkingDroppedInputTransformation, type BetaThinkingPrefixMismatchBehavior, type BetaThinkingTurns, type BetaTokenTaskBudget, type BetaTool, type BetaToolBash20241022, type BetaToolBash20250124, type BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference, type BetaToolChoice, type BetaToolChoiceAny, type BetaToolChoiceAuto, type BetaToolChoiceNone, type BetaToolChoiceTool, type BetaToolComputerUse20241022, type BetaToolComputerUse20250124, type BetaToolComputerUse20251124, type BetaToolReferenceBlock, type BetaToolReferenceBlockParam, type BetaToolResultBlockParam, type BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022, type BetaToolTextEditor20250124, type BetaToolTextEditor20250429, type BetaToolTextEditor20250728, type BetaToolUnion, type BetaToolUseBlock, type BetaToolUseBlockParam, type BetaToolUsesKeep, type BetaToolUsesTrigger, type BetaURLImageSource, type BetaURLPDFSource, type BetaUsage, type BetaUserLocation, type BetaWebFetchBlock, type BetaWebFetchBlockParam, type BetaWebFetchTool20250910, type BetaWebFetchTool20260209, type BetaWebFetchTool20260309, type BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode, type BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305, type BetaWebSearchTool20260209, type BetaWebSearchTool20260318, type BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock, type MessageCreateParams, type MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming, type MessageCountTokensParams, type BetaToolResultContentBlockParam, } from "./messages/index.mjs";
10
- export { Models, type BetaCapabilitySupport, type BetaContextManagementCapability, type BetaEffortCapability, type BetaModelCapabilities, type BetaModelInfo, type BetaThinkingCapability, type BetaThinkingTypes, type ModelRetrieveParams, type ModelListParams, type BetaModelInfosPage, } from "./models.mjs";
9
+ export { Messages, type BetaAdvisorMessageIterationUsage, type BetaAdvisorRedactedResultBlock, type BetaAdvisorRedactedResultBlockParam, type BetaAdvisorResultBlock, type BetaAdvisorResultBlockParam, type BetaAdvisorTool20260301, type BetaAdvisorToolResultBlock, type BetaAdvisorToolResultBlockParam, type BetaAdvisorToolResultError, type BetaAdvisorToolResultErrorParam, type BetaAllThinkingTurns, type BetaBase64ImageSource, type BetaBase64PDFSource, type BetaBashCodeExecutionOutputBlock, type BetaBashCodeExecutionOutputBlockParam, type BetaBashCodeExecutionResultBlock, type BetaBashCodeExecutionResultBlockParam, type BetaBashCodeExecutionToolResultBlock, type BetaBashCodeExecutionToolResultBlockParam, type BetaBashCodeExecutionToolResultError, type BetaBashCodeExecutionToolResultErrorParam, type BetaBrowserCloseTabConfig, type BetaBrowserDoubleClickConfig, type BetaBrowserFileUploadConfig, type BetaBrowserFindConfig, type BetaBrowserFormInputConfig, type BetaBrowserGetPageTextConfig, type BetaBrowserHoldKeyConfig, type BetaBrowserHoverConfig, type BetaBrowserJavascriptExecConfig, type BetaBrowserKeyConfig, type BetaBrowserLeftClickConfig, type BetaBrowserLeftClickDragConfig, type BetaBrowserLeftMouseDownConfig, type BetaBrowserLeftMouseUpConfig, type BetaBrowserListTabsConfig, type BetaBrowserMiddleClickConfig, type BetaBrowserMouseMoveConfig, type BetaBrowserNavigateConfig, type BetaBrowserNewTabConfig, type BetaBrowserReadConsoleConfig, type BetaBrowserReadNetworkConfig, type BetaBrowserReadPageConfig, type BetaBrowserRightClickConfig, type BetaBrowserScreenshotConfig, type BetaBrowserScrollConfig, type BetaBrowserScrollToConfig, type BetaBrowserStateBlockParam, type BetaBrowserStateChange, type BetaBrowserStateChangeDownloadCompleted, type BetaBrowserStateChangeDownloadFailed, type BetaBrowserStateChangeDownloadStarted, type BetaBrowserStateChangeTabOpened, type BetaBrowserStateTabEntry, type BetaBrowserSwitchTabConfig, type BetaBrowserToolset20260801, type BetaBrowserToolsetConfigs, type BetaBrowserTripleClickConfig, type BetaBrowserTypeConfig, type BetaBrowserWaitConfig, type BetaBrowserZoomConfig, type BetaCacheControlEphemeral, type BetaCacheCreation, type BetaCacheMissMessagesChanged, type BetaCacheMissModelChanged, type BetaCacheMissPreviousMessageNotFound, type BetaCacheMissSystemChanged, type BetaCacheMissToolsChanged, type BetaCacheMissUnavailable, type BetaCitationCharLocation, type BetaCitationCharLocationParam, type BetaCitationConfig, type BetaCitationContentBlockLocation, type BetaCitationContentBlockLocationParam, type BetaCitationPageLocation, type BetaCitationPageLocationParam, type BetaCitationSearchResultLocation, type BetaCitationSearchResultLocationParam, type BetaCitationWebSearchResultLocationParam, type BetaCitationsConfigParam, type BetaCitationsDelta, type BetaCitationsWebSearchResultLocation, type BetaClearThinking20251015Edit, type BetaClearThinking20251015EditResponse, type BetaClearToolUses20250919Edit, type BetaClearToolUses20250919EditResponse, type BetaCodeExecutionOutputBlock, type BetaCodeExecutionOutputBlockParam, type BetaCodeExecutionResultBlock, type BetaCodeExecutionResultBlockParam, type BetaCodeExecutionTool20250522, type BetaCodeExecutionTool20250825, type BetaCodeExecutionTool20260120, type BetaCodeExecutionTool20260521, type BetaCodeExecutionToolResultBlock, type BetaCodeExecutionToolResultBlockContent, type BetaCodeExecutionToolResultBlockParam, type BetaCodeExecutionToolResultBlockParamContent, type BetaCodeExecutionToolResultError, type BetaCodeExecutionToolResultErrorCode, type BetaCodeExecutionToolResultErrorParam, type BetaCompact20260112Edit, type BetaCompactionBlock, type BetaCompactionBlockParam, type BetaCompactionConfig, type BetaCompactionContentBlockDelta, type BetaCompactionIterationUsage, type BetaComputerCursorPositionConfig, type BetaComputerDoubleClickConfig, type BetaComputerHoldKeyConfig, type BetaComputerKeyConfig, type BetaComputerLeftClickConfig, type BetaComputerLeftClickDragConfig, type BetaComputerLeftMouseDownConfig, type BetaComputerLeftMouseUpConfig, type BetaComputerMiddleClickConfig, type BetaComputerMouseMoveConfig, type BetaComputerRightClickConfig, type BetaComputerScreenshotConfig, type BetaComputerScrollConfig, type BetaComputerToolset20260801, type BetaComputerToolsetConfigs, type BetaComputerTripleClickConfig, type BetaComputerTypeConfig, type BetaComputerWaitConfig, type BetaComputerZoomConfig, type BetaContainer, type BetaContainerParams, type BetaContainerSkill, type BetaContainerUploadBlock, type BetaContainerUploadBlockParam, type BetaContentBlock, type BetaContentBlockParam, type BetaContentBlockSource, type BetaContentBlockSourceContent, type BetaContextManagementConfig, type BetaContextManagementResponse, type BetaCountTokensContextManagementResponse, type BetaDiagnostics, type BetaDiagnosticsParam, type BetaDirectCaller, type BetaDocumentBlock, type BetaEncryptedCodeExecutionResultBlock, type BetaEncryptedCodeExecutionResultBlockParam, type BetaFallbackBlock, type BetaFallbackBlockParam, type BetaFallbackCreditNotApplied, type BetaFallbackCreditRedeemed, type BetaFallbackCreditTokenParam, type BetaFallbackCreditUsage, type BetaFallbackInfo, type BetaFallbackInfoParam, type BetaFallbackMessageIterationUsage, type BetaFallbackParam, type BetaFallbackRefusalTrigger, type BetaFallbacksParam, type BetaFileDocumentSource, type BetaFileImageSource, type BetaImageBlockParam, type BetaImageTransformationsParam, type BetaInputJSONDelta, type BetaInputTokensClearAtLeast, type BetaInputTokensTrigger, type BetaInputTransformation, type BetaIterationsUsage, type BetaJSONOutputFormat, type BetaMCPToolConfig, type BetaMCPToolDefaultConfig, type BetaMCPToolResultBlock, type BetaMCPToolUseBlock, type BetaMCPToolUseBlockParam, type BetaMCPToolset, type BetaMemoryTool20250818, type BetaMemoryTool20250818Command, type BetaMemoryTool20250818CreateCommand, type BetaMemoryTool20250818DeleteCommand, type BetaMemoryTool20250818InsertCommand, type BetaMemoryTool20250818RenameCommand, type BetaMemoryTool20250818StrReplaceCommand, type BetaMemoryTool20250818ViewCommand, type BetaMessage, type BetaMessageDeltaUsage, type BetaMessageIterationUsage, type BetaMessageParam, type BetaMessageTokensCount, type BetaMetadata, type BetaOutputConfig, type BetaOutputTokensDetails, type BetaPlainTextSource, type BetaRawContentBlockDelta, type BetaRawContentBlockDeltaEvent, type BetaRawContentBlockStartEvent, type BetaRawContentBlockStopEvent, type BetaRawMessageDeltaEvent, type BetaRawMessageStartEvent, type BetaRawMessageStopEvent, type BetaRawMessageStreamEvent, type BetaRedactedThinkingBlock, type BetaRedactedThinkingBlockParam, type BetaRefusalStopDetails, type BetaRequestDocumentBlock, type BetaRequestMCPServerToolConfiguration, type BetaRequestMCPServerURLDefinition, type BetaRequestMCPToolResultBlockParam, type BetaRequestToolAdditionBlock, type BetaRequestToolRemovalBlock, type BetaSearchResultBlockParam, type BetaServerToolCaller, type BetaServerToolCaller20260120, type BetaServerToolUsage, type BetaServerToolUseBlock, type BetaServerToolUseBlockParam, type BetaSignatureDelta, type BetaSkillParams, type BetaStopReason, type BetaSummarizeCompaction, type BetaSystemMessageOutputConfig, type BetaTextBlock, type BetaTextBlockParam, type BetaTextCitation, type BetaTextCitationParam, type BetaTextDelta, type BetaTextEditorCodeExecutionCreateResultBlock, type BetaTextEditorCodeExecutionCreateResultBlockParam, type BetaTextEditorCodeExecutionStrReplaceResultBlock, type BetaTextEditorCodeExecutionStrReplaceResultBlockParam, type BetaTextEditorCodeExecutionToolResultBlock, type BetaTextEditorCodeExecutionToolResultBlockParam, type BetaTextEditorCodeExecutionToolResultError, type BetaTextEditorCodeExecutionToolResultErrorParam, type BetaTextEditorCodeExecutionViewResultBlock, type BetaTextEditorCodeExecutionViewResultBlockParam, type BetaThinkingBlock, type BetaThinkingBlockBinding, type BetaThinkingBlockParam, type BetaThinkingConfigAdaptive, type BetaThinkingConfigDisabled, type BetaThinkingConfigEnabled, type BetaThinkingConfigParam, type BetaThinkingDelta, type BetaThinkingDroppedInputTransformation, type BetaThinkingMismatchAllowedInputTransformation, type BetaThinkingPrefixMismatchBehavior, type BetaThinkingTurns, type BetaTokenTaskBudget, type BetaTool, type BetaToolBash20241022, type BetaToolBash20250124, type BetaToolChangeMCPToolReference, type BetaToolChangeMCPToolsetReference, type BetaToolChangeToolReference, type BetaToolChoice, type BetaToolChoiceAny, type BetaToolChoiceAuto, type BetaToolChoiceNone, type BetaToolChoiceTool, type BetaToolComputerUse20241022, type BetaToolComputerUse20250124, type BetaToolComputerUse20251124, type BetaToolReferenceBlock, type BetaToolReferenceBlockParam, type BetaToolResultBlockParam, type BetaToolSearchToolBm25_20251119, type BetaToolSearchToolRegex20251119, type BetaToolSearchToolResultBlock, type BetaToolSearchToolResultBlockParam, type BetaToolSearchToolResultError, type BetaToolSearchToolResultErrorParam, type BetaToolSearchToolSearchResultBlock, type BetaToolSearchToolSearchResultBlockParam, type BetaToolTextEditor20241022, type BetaToolTextEditor20250124, type BetaToolTextEditor20250429, type BetaToolTextEditor20250728, type BetaToolUnion, type BetaToolUseBlock, type BetaToolUseBlockParam, type BetaToolUsesKeep, type BetaToolUsesTrigger, type BetaURLImageSource, type BetaURLPDFSource, type BetaUsage, type BetaUserLocation, type BetaWebFetchBlock, type BetaWebFetchBlockParam, type BetaWebFetchTool20250910, type BetaWebFetchTool20260209, type BetaWebFetchTool20260309, type BetaWebFetchTool20260318, type BetaWebFetchToolResultBlock, type BetaWebFetchToolResultBlockParam, type BetaWebFetchToolResultErrorBlock, type BetaWebFetchToolResultErrorBlockParam, type BetaWebFetchToolResultErrorCode, type BetaWebFetchURLSourceAll, type BetaWebFetchURLSourceExcept, type BetaWebFetchURLSourceNone, type BetaWebFetchURLSourceOnly, type BetaWebFetchURLSourceToolReference, type BetaWebFetchURLSources, type BetaWebSearchResultBlock, type BetaWebSearchResultBlockParam, type BetaWebSearchTool20250305, type BetaWebSearchTool20260209, type BetaWebSearchTool20260318, type BetaWebSearchToolRequestError, type BetaWebSearchToolResultBlock, type BetaWebSearchToolResultBlockContent, type BetaWebSearchToolResultBlockParam, type BetaWebSearchToolResultBlockParamContent, type BetaWebSearchToolResultError, type BetaWebSearchToolResultErrorCode, type BetaBase64PDFBlock, type MessageCreateParams, type MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming, type MessageCountTokensParams, type BetaToolResultContentBlockParam, } from "./messages/index.mjs";
10
+ export { Models, type BetaCapabilitySupport, type BetaCompactionCapability, type BetaContextManagementCapability, type BetaEffortCapability, type BetaModelCapabilities, type BetaModelInfo, type BetaThinkingCapability, type BetaThinkingTypes, type ModelRetrieveParams, type ModelListParams, type BetaModelInfosPage, } from "./models.mjs";
11
11
  export { Organization, type BetaOrganization, type BetaOrganizationRole } from "./organization/index.mjs";
12
12
  export { Sessions, type BetaManagedAgentsAdvisorParams, type BetaManagedAgentsAgentMessagePreview, type BetaManagedAgentsAgentParams, type BetaManagedAgentsAgentThinkingPreview, type BetaManagedAgentsAgentWithOverridesParams, type BetaManagedAgentsBranchCheckout, type BetaManagedAgentsBudgetLimit, type BetaManagedAgentsCacheCreationUsage, type BetaManagedAgentsCommitCheckout, type BetaManagedAgentsDeletedSession, type BetaManagedAgentsDeltaContent, type BetaManagedAgentsDeltaEvent, type BetaManagedAgentsDeltaType, type BetaManagedAgentsFileResourceParams, type BetaManagedAgentsGitHubRepositoryResourceParams, type BetaManagedAgentsMemoryStoreResourceParam, type BetaManagedAgentsMultiagent, type BetaManagedAgentsMultiagentParams, type BetaManagedAgentsMultiagentRosterEntryParams, type BetaManagedAgentsOutcomeEvaluationResource, type BetaManagedAgentsServerToolUsage, type BetaManagedAgentsSession, type BetaManagedAgentsSessionAgent, type BetaManagedAgentsSessionAgentUpdate, type BetaManagedAgentsSessionMultiagentCoordinator, type BetaManagedAgentsSessionStats, type BetaManagedAgentsSessionUpdatedEvent, type BetaManagedAgentsSessionUsage, type BetaManagedAgentsSessionUsageEvent, type BetaManagedAgentsStartEvent, type BetaManagedAgentsStartEventPreview, type BetaManagedAgentsSystemContentBlock, type BetaManagedAgentsSystemMessageEvent, type BetaManagedAgentsUserToolResultEvent, type SessionCreateParams, type SessionRetrieveParams, type SessionUpdateParams, type SessionListParams, type SessionDeleteParams, type SessionArchiveParams, type BetaManagedAgentsSessionsBidirectionalPageCursor, } from "./sessions/index.mjs";
13
13
  export { Skills, type BetaDeletedSkill, type BetaSkill, type BetaSkillSource, type SkillCreateParams, type SkillRetrieveParams, type SkillListParams, type SkillDeleteParams, type BetaSkillsPageCursor, } from "./skills/index.mjs";