@anthropic-ai/sdk 0.120.0 → 0.122.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 (452) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +1 -1
  3. package/core/middleware.d.mts.map +1 -1
  4. package/core/middleware.d.ts.map +1 -1
  5. package/core/middleware.js +4 -4
  6. package/core/middleware.js.map +1 -1
  7. package/core/middleware.mjs +4 -4
  8. package/core/middleware.mjs.map +1 -1
  9. package/helpers/beta/standard-schema.d.mts +45 -0
  10. package/helpers/beta/standard-schema.d.mts.map +1 -0
  11. package/helpers/beta/standard-schema.d.ts +45 -0
  12. package/helpers/beta/standard-schema.d.ts.map +1 -0
  13. package/helpers/beta/standard-schema.js +58 -0
  14. package/helpers/beta/standard-schema.js.map +1 -0
  15. package/helpers/beta/standard-schema.mjs +54 -0
  16. package/helpers/beta/standard-schema.mjs.map +1 -0
  17. package/internal/detect-platform.js +1 -1
  18. package/internal/detect-platform.js.map +1 -1
  19. package/internal/detect-platform.mjs +1 -1
  20. package/internal/detect-platform.mjs.map +1 -1
  21. package/internal/errors.d.mts.map +1 -1
  22. package/internal/errors.d.ts.map +1 -1
  23. package/internal/errors.js +3 -1
  24. package/internal/errors.js.map +1 -1
  25. package/internal/errors.mjs +3 -1
  26. package/internal/errors.mjs.map +1 -1
  27. package/internal/parse.js +1 -1
  28. package/internal/parse.js.map +1 -1
  29. package/internal/parse.mjs +1 -1
  30. package/internal/parse.mjs.map +1 -1
  31. package/internal/uploads.js +10 -6
  32. package/internal/uploads.js.map +1 -1
  33. package/internal/uploads.mjs +10 -6
  34. package/internal/uploads.mjs.map +1 -1
  35. package/internal/utils/values.d.mts +6 -0
  36. package/internal/utils/values.d.mts.map +1 -1
  37. package/internal/utils/values.d.ts +6 -0
  38. package/internal/utils/values.d.ts.map +1 -1
  39. package/internal/utils/values.js +7 -0
  40. package/internal/utils/values.js.map +1 -1
  41. package/internal/utils/values.mjs +6 -0
  42. package/internal/utils/values.mjs.map +1 -1
  43. package/lib/BetaMessageStream.d.mts.map +1 -1
  44. package/lib/BetaMessageStream.d.ts.map +1 -1
  45. package/lib/BetaMessageStream.js +3 -4
  46. package/lib/BetaMessageStream.js.map +1 -1
  47. package/lib/BetaMessageStream.mjs +1 -2
  48. package/lib/BetaMessageStream.mjs.map +1 -1
  49. package/lib/MessageStream.d.mts.map +1 -1
  50. package/lib/MessageStream.d.ts.map +1 -1
  51. package/lib/MessageStream.js +3 -4
  52. package/lib/MessageStream.js.map +1 -1
  53. package/lib/MessageStream.mjs +1 -2
  54. package/lib/MessageStream.mjs.map +1 -1
  55. package/lib/sessions/accumulate.d.mts +3 -2
  56. package/lib/sessions/accumulate.d.mts.map +1 -1
  57. package/lib/sessions/accumulate.d.ts +3 -2
  58. package/lib/sessions/accumulate.d.ts.map +1 -1
  59. package/lib/sessions/accumulate.js +3 -46
  60. package/lib/sessions/accumulate.js.map +1 -1
  61. package/lib/sessions/accumulate.mjs +3 -46
  62. package/lib/sessions/accumulate.mjs.map +1 -1
  63. package/lib/standard-schema.d.mts +131 -0
  64. package/lib/standard-schema.d.mts.map +1 -0
  65. package/lib/standard-schema.d.ts +131 -0
  66. package/lib/standard-schema.d.ts.map +1 -0
  67. package/lib/standard-schema.js +45 -0
  68. package/lib/standard-schema.js.map +1 -0
  69. package/lib/standard-schema.mjs +41 -0
  70. package/lib/standard-schema.mjs.map +1 -0
  71. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  72. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  73. package/lib/tools/BetaToolRunner.js +35 -6
  74. package/lib/tools/BetaToolRunner.js.map +1 -1
  75. package/lib/tools/BetaToolRunner.mjs +35 -6
  76. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  77. package/package.json +2 -11
  78. package/resources/beta/beta.d.mts +11 -7
  79. package/resources/beta/beta.d.mts.map +1 -1
  80. package/resources/beta/beta.d.ts +11 -7
  81. package/resources/beta/beta.d.ts.map +1 -1
  82. package/resources/beta/beta.js +4 -0
  83. package/resources/beta/beta.js.map +1 -1
  84. package/resources/beta/beta.mjs +4 -0
  85. package/resources/beta/beta.mjs.map +1 -1
  86. package/resources/beta/environments/environments.d.mts +8 -1
  87. package/resources/beta/environments/environments.d.mts.map +1 -1
  88. package/resources/beta/environments/environments.d.ts +8 -1
  89. package/resources/beta/environments/environments.d.ts.map +1 -1
  90. package/resources/beta/environments/environments.js.map +1 -1
  91. package/resources/beta/environments/environments.mjs.map +1 -1
  92. package/resources/beta/files.d.mts +25 -5
  93. package/resources/beta/files.d.mts.map +1 -1
  94. package/resources/beta/files.d.ts +25 -5
  95. package/resources/beta/files.d.ts.map +1 -1
  96. package/resources/beta/files.js +6 -6
  97. package/resources/beta/files.js.map +1 -1
  98. package/resources/beta/files.mjs +7 -7
  99. package/resources/beta/files.mjs.map +1 -1
  100. package/resources/beta/index.d.mts +4 -3
  101. package/resources/beta/index.d.mts.map +1 -1
  102. package/resources/beta/index.d.ts +4 -3
  103. package/resources/beta/index.d.ts.map +1 -1
  104. package/resources/beta/index.js +11 -9
  105. package/resources/beta/index.js.map +1 -1
  106. package/resources/beta/index.mjs +1 -0
  107. package/resources/beta/index.mjs.map +1 -1
  108. package/resources/beta/memory-stores/memories.d.mts +6 -5
  109. package/resources/beta/memory-stores/memories.d.mts.map +1 -1
  110. package/resources/beta/memory-stores/memories.d.ts +6 -5
  111. package/resources/beta/memory-stores/memories.d.ts.map +1 -1
  112. package/resources/beta/memory-stores/memory-versions.d.mts +8 -5
  113. package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  114. package/resources/beta/memory-stores/memory-versions.d.ts +8 -5
  115. package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  116. package/resources/beta/messages/index.d.mts +1 -1
  117. package/resources/beta/messages/index.d.mts.map +1 -1
  118. package/resources/beta/messages/index.d.ts +1 -1
  119. package/resources/beta/messages/index.d.ts.map +1 -1
  120. package/resources/beta/messages/messages.d.mts +69 -27
  121. package/resources/beta/messages/messages.d.mts.map +1 -1
  122. package/resources/beta/messages/messages.d.ts +69 -27
  123. package/resources/beta/messages/messages.d.ts.map +1 -1
  124. package/resources/beta/messages/messages.js.map +1 -1
  125. package/resources/beta/messages/messages.mjs.map +1 -1
  126. package/resources/beta/organization/api-keys.d.mts +177 -0
  127. package/resources/beta/organization/api-keys.d.mts.map +1 -0
  128. package/resources/beta/organization/api-keys.d.ts +177 -0
  129. package/resources/beta/organization/api-keys.d.ts.map +1 -0
  130. package/resources/beta/organization/api-keys.js +56 -0
  131. package/resources/beta/organization/api-keys.js.map +1 -0
  132. package/resources/beta/organization/api-keys.mjs +52 -0
  133. package/resources/beta/organization/api-keys.mjs.map +1 -0
  134. package/resources/beta/organization/external-keys.d.mts +269 -0
  135. package/resources/beta/organization/external-keys.d.mts.map +1 -0
  136. package/resources/beta/organization/external-keys.d.ts +269 -0
  137. package/resources/beta/organization/external-keys.d.ts.map +1 -0
  138. package/resources/beta/organization/external-keys.js +119 -0
  139. package/resources/beta/organization/external-keys.js.map +1 -0
  140. package/resources/beta/organization/external-keys.mjs +115 -0
  141. package/resources/beta/organization/external-keys.mjs.map +1 -0
  142. package/resources/beta/organization/federation/federation.d.mts +14 -0
  143. package/resources/beta/organization/federation/federation.d.mts.map +1 -0
  144. package/resources/beta/organization/federation/federation.d.ts +14 -0
  145. package/resources/beta/organization/federation/federation.d.ts.map +1 -0
  146. package/resources/beta/organization/federation/federation.js +21 -0
  147. package/resources/beta/organization/federation/federation.js.map +1 -0
  148. package/resources/beta/organization/federation/federation.mjs +16 -0
  149. package/resources/beta/organization/federation/federation.mjs.map +1 -0
  150. package/resources/beta/organization/federation/index.d.mts +4 -0
  151. package/resources/beta/organization/federation/index.d.mts.map +1 -0
  152. package/resources/beta/organization/federation/index.d.ts +4 -0
  153. package/resources/beta/organization/federation/index.d.ts.map +1 -0
  154. package/resources/beta/organization/federation/index.js +11 -0
  155. package/resources/beta/organization/federation/index.js.map +1 -0
  156. package/resources/beta/organization/federation/index.mjs +5 -0
  157. package/resources/beta/organization/federation/index.mjs.map +1 -0
  158. package/resources/beta/organization/federation/issuers.d.mts +353 -0
  159. package/resources/beta/organization/federation/issuers.d.mts.map +1 -0
  160. package/resources/beta/organization/federation/issuers.d.ts +353 -0
  161. package/resources/beta/organization/federation/issuers.d.ts.map +1 -0
  162. package/resources/beta/organization/federation/issuers.js +169 -0
  163. package/resources/beta/organization/federation/issuers.js.map +1 -0
  164. package/resources/beta/organization/federation/issuers.mjs +165 -0
  165. package/resources/beta/organization/federation/issuers.mjs.map +1 -0
  166. package/resources/beta/organization/federation/rules/index.d.mts +3 -0
  167. package/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
  168. package/resources/beta/organization/federation/rules/index.d.ts +3 -0
  169. package/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
  170. package/resources/beta/organization/federation/rules/index.js +9 -0
  171. package/resources/beta/organization/federation/rules/index.js.map +1 -0
  172. package/resources/beta/organization/federation/rules/index.mjs +4 -0
  173. package/resources/beta/organization/federation/rules/index.mjs.map +1 -0
  174. package/resources/beta/organization/federation/rules/rules.d.mts +468 -0
  175. package/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
  176. package/resources/beta/organization/federation/rules/rules.d.ts +468 -0
  177. package/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
  178. package/resources/beta/organization/federation/rules/rules.js +198 -0
  179. package/resources/beta/organization/federation/rules/rules.js.map +1 -0
  180. package/resources/beta/organization/federation/rules/rules.mjs +193 -0
  181. package/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
  182. package/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
  183. package/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
  184. package/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
  185. package/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
  186. package/resources/beta/organization/federation/rules/workspaces.js +114 -0
  187. package/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
  188. package/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
  189. package/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
  190. package/resources/beta/organization/federation/rules.d.mts +2 -0
  191. package/resources/beta/organization/federation/rules.d.mts.map +1 -0
  192. package/resources/beta/organization/federation/rules.d.ts +2 -0
  193. package/resources/beta/organization/federation/rules.d.ts.map +1 -0
  194. package/resources/beta/organization/federation/rules.js +6 -0
  195. package/resources/beta/organization/federation/rules.js.map +1 -0
  196. package/resources/beta/organization/federation/rules.mjs +3 -0
  197. package/resources/beta/organization/federation/rules.mjs.map +1 -0
  198. package/resources/beta/organization/federation.d.mts +2 -0
  199. package/resources/beta/organization/federation.d.mts.map +1 -0
  200. package/resources/beta/organization/federation.d.ts +2 -0
  201. package/resources/beta/organization/federation.d.ts.map +1 -0
  202. package/resources/beta/organization/federation.js +6 -0
  203. package/resources/beta/organization/federation.js.map +1 -0
  204. package/resources/beta/organization/federation.mjs +3 -0
  205. package/resources/beta/organization/federation.mjs.map +1 -0
  206. package/resources/beta/organization/index.d.mts +10 -0
  207. package/resources/beta/organization/index.d.mts.map +1 -0
  208. package/resources/beta/organization/index.d.ts +10 -0
  209. package/resources/beta/organization/index.d.ts.map +1 -0
  210. package/resources/beta/organization/index.js +23 -0
  211. package/resources/beta/organization/index.js.map +1 -0
  212. package/resources/beta/organization/index.mjs +11 -0
  213. package/resources/beta/organization/index.mjs.map +1 -0
  214. package/resources/beta/organization/invites.d.mts +162 -0
  215. package/resources/beta/organization/invites.d.mts.map +1 -0
  216. package/resources/beta/organization/invites.d.ts +162 -0
  217. package/resources/beta/organization/invites.d.ts.map +1 -0
  218. package/resources/beta/organization/invites.js +76 -0
  219. package/resources/beta/organization/invites.js.map +1 -0
  220. package/resources/beta/organization/invites.mjs +72 -0
  221. package/resources/beta/organization/invites.mjs.map +1 -0
  222. package/resources/beta/organization/organization.d.mts +69 -0
  223. package/resources/beta/organization/organization.d.mts.map +1 -0
  224. package/resources/beta/organization/organization.d.ts +69 -0
  225. package/resources/beta/organization/organization.d.ts.map +1 -0
  226. package/resources/beta/organization/organization.js +58 -0
  227. package/resources/beta/organization/organization.js.map +1 -0
  228. package/resources/beta/organization/organization.mjs +53 -0
  229. package/resources/beta/organization/organization.mjs.map +1 -0
  230. package/resources/beta/organization/rate-limits.d.mts +77 -0
  231. package/resources/beta/organization/rate-limits.d.mts.map +1 -0
  232. package/resources/beta/organization/rate-limits.d.ts +77 -0
  233. package/resources/beta/organization/rate-limits.d.ts.map +1 -0
  234. package/resources/beta/organization/rate-limits.js +31 -0
  235. package/resources/beta/organization/rate-limits.js.map +1 -0
  236. package/resources/beta/organization/rate-limits.mjs +27 -0
  237. package/resources/beta/organization/rate-limits.mjs.map +1 -0
  238. package/resources/beta/organization/service-accounts/index.d.mts +3 -0
  239. package/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
  240. package/resources/beta/organization/service-accounts/index.d.ts +3 -0
  241. package/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
  242. package/resources/beta/organization/service-accounts/index.js +9 -0
  243. package/resources/beta/organization/service-accounts/index.js.map +1 -0
  244. package/resources/beta/organization/service-accounts/index.mjs +4 -0
  245. package/resources/beta/organization/service-accounts/index.mjs.map +1 -0
  246. package/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
  247. package/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
  248. package/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
  249. package/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
  250. package/resources/beta/organization/service-accounts/service-accounts.js +174 -0
  251. package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
  252. package/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
  253. package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
  254. package/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
  255. package/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
  256. package/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
  257. package/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
  258. package/resources/beta/organization/service-accounts/workspaces.js +125 -0
  259. package/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
  260. package/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
  261. package/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
  262. package/resources/beta/organization/service-accounts.d.mts +2 -0
  263. package/resources/beta/organization/service-accounts.d.mts.map +1 -0
  264. package/resources/beta/organization/service-accounts.d.ts +2 -0
  265. package/resources/beta/organization/service-accounts.d.ts.map +1 -0
  266. package/resources/beta/organization/service-accounts.js +6 -0
  267. package/resources/beta/organization/service-accounts.js.map +1 -0
  268. package/resources/beta/organization/service-accounts.mjs +3 -0
  269. package/resources/beta/organization/service-accounts.mjs.map +1 -0
  270. package/resources/beta/organization/users.d.mts +124 -0
  271. package/resources/beta/organization/users.d.mts.map +1 -0
  272. package/resources/beta/organization/users.d.ts +124 -0
  273. package/resources/beta/organization/users.d.ts.map +1 -0
  274. package/resources/beta/organization/users.js +67 -0
  275. package/resources/beta/organization/users.js.map +1 -0
  276. package/resources/beta/organization/users.mjs +63 -0
  277. package/resources/beta/organization/users.mjs.map +1 -0
  278. package/resources/beta/organization/workspaces/index.d.mts +5 -0
  279. package/resources/beta/organization/workspaces/index.d.mts.map +1 -0
  280. package/resources/beta/organization/workspaces/index.d.ts +5 -0
  281. package/resources/beta/organization/workspaces/index.d.ts.map +1 -0
  282. package/resources/beta/organization/workspaces/index.js +13 -0
  283. package/resources/beta/organization/workspaces/index.js.map +1 -0
  284. package/resources/beta/organization/workspaces/index.mjs +6 -0
  285. package/resources/beta/organization/workspaces/index.mjs.map +1 -0
  286. package/resources/beta/organization/workspaces/members.d.mts +135 -0
  287. package/resources/beta/organization/workspaces/members.d.mts.map +1 -0
  288. package/resources/beta/organization/workspaces/members.d.ts +135 -0
  289. package/resources/beta/organization/workspaces/members.d.ts.map +1 -0
  290. package/resources/beta/organization/workspaces/members.js +102 -0
  291. package/resources/beta/organization/workspaces/members.js.map +1 -0
  292. package/resources/beta/organization/workspaces/members.mjs +98 -0
  293. package/resources/beta/organization/workspaces/members.mjs.map +1 -0
  294. package/resources/beta/organization/workspaces/rate-limits.d.mts +83 -0
  295. package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
  296. package/resources/beta/organization/workspaces/rate-limits.d.ts +83 -0
  297. package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
  298. package/resources/beta/organization/workspaces/rate-limits.js +34 -0
  299. package/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
  300. package/resources/beta/organization/workspaces/rate-limits.mjs +30 -0
  301. package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
  302. package/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
  303. package/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
  304. package/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
  305. package/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
  306. package/resources/beta/organization/workspaces/service-accounts.js +189 -0
  307. package/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
  308. package/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
  309. package/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
  310. package/resources/beta/organization/workspaces/workspaces.d.mts +287 -0
  311. package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
  312. package/resources/beta/organization/workspaces/workspaces.d.ts +287 -0
  313. package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
  314. package/resources/beta/organization/workspaces/workspaces.js +112 -0
  315. package/resources/beta/organization/workspaces/workspaces.js.map +1 -0
  316. package/resources/beta/organization/workspaces/workspaces.mjs +107 -0
  317. package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
  318. package/resources/beta/organization/workspaces.d.mts +2 -0
  319. package/resources/beta/organization/workspaces.d.mts.map +1 -0
  320. package/resources/beta/organization/workspaces.d.ts +2 -0
  321. package/resources/beta/organization/workspaces.d.ts.map +1 -0
  322. package/resources/beta/organization/workspaces.js +6 -0
  323. package/resources/beta/organization/workspaces.js.map +1 -0
  324. package/resources/beta/organization/workspaces.mjs +3 -0
  325. package/resources/beta/organization/workspaces.mjs.map +1 -0
  326. package/resources/beta/organization.d.mts +2 -0
  327. package/resources/beta/organization.d.mts.map +1 -0
  328. package/resources/beta/organization.d.ts +2 -0
  329. package/resources/beta/organization.d.ts.map +1 -0
  330. package/resources/beta/organization.js +6 -0
  331. package/resources/beta/organization.js.map +1 -0
  332. package/resources/beta/organization.mjs +3 -0
  333. package/resources/beta/organization.mjs.map +1 -0
  334. package/resources/beta/sessions/threads/threads.d.mts +2 -1
  335. package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
  336. package/resources/beta/sessions/threads/threads.d.ts +2 -1
  337. package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
  338. package/resources/beta/sessions/threads/threads.js.map +1 -1
  339. package/resources/beta/sessions/threads/threads.mjs.map +1 -1
  340. package/resources/beta/skills/index.d.mts +2 -2
  341. package/resources/beta/skills/index.d.mts.map +1 -1
  342. package/resources/beta/skills/index.d.ts +2 -2
  343. package/resources/beta/skills/index.d.ts.map +1 -1
  344. package/resources/beta/skills/index.js.map +1 -1
  345. package/resources/beta/skills/index.mjs.map +1 -1
  346. package/resources/beta/skills/skills.d.mts +48 -120
  347. package/resources/beta/skills/skills.d.mts.map +1 -1
  348. package/resources/beta/skills/skills.d.ts +48 -120
  349. package/resources/beta/skills/skills.d.ts.map +1 -1
  350. package/resources/beta/skills/skills.js +12 -8
  351. package/resources/beta/skills/skills.js.map +1 -1
  352. package/resources/beta/skills/skills.mjs +12 -8
  353. package/resources/beta/skills/skills.mjs.map +1 -1
  354. package/resources/beta/skills/versions.d.mts +35 -138
  355. package/resources/beta/skills/versions.d.mts.map +1 -1
  356. package/resources/beta/skills/versions.d.ts +35 -138
  357. package/resources/beta/skills/versions.d.ts.map +1 -1
  358. package/resources/beta/skills/versions.js +18 -18
  359. package/resources/beta/skills/versions.js.map +1 -1
  360. package/resources/beta/skills/versions.mjs +18 -18
  361. package/resources/beta/skills/versions.mjs.map +1 -1
  362. package/resources/beta/webhooks.d.mts +16 -17
  363. package/resources/beta/webhooks.d.mts.map +1 -1
  364. package/resources/beta/webhooks.d.ts +16 -17
  365. package/resources/beta/webhooks.d.ts.map +1 -1
  366. package/resources/beta/webhooks.js +21 -8
  367. package/resources/beta/webhooks.js.map +1 -1
  368. package/resources/beta/webhooks.mjs +21 -8
  369. package/resources/beta/webhooks.mjs.map +1 -1
  370. package/src/core/middleware.ts +4 -3
  371. package/src/helpers/beta/standard-schema.ts +99 -0
  372. package/src/internal/detect-platform.ts +1 -1
  373. package/src/internal/errors.ts +3 -1
  374. package/src/internal/parse.ts +1 -1
  375. package/src/internal/uploads.ts +10 -7
  376. package/src/internal/utils/values.ts +7 -0
  377. package/src/lib/BetaMessageStream.ts +1 -3
  378. package/src/lib/MessageStream.ts +1 -3
  379. package/src/lib/sessions/accumulate.ts +7 -49
  380. package/src/lib/standard-schema.ts +209 -0
  381. package/src/lib/tools/BetaToolRunner.ts +38 -6
  382. package/src/resources/beta/beta.ts +30 -15
  383. package/src/resources/beta/environments/environments.ts +8 -1
  384. package/src/resources/beta/files.ts +34 -11
  385. package/src/resources/beta/index.ts +7 -7
  386. package/src/resources/beta/memory-stores/memories.ts +6 -5
  387. package/src/resources/beta/memory-stores/memory-versions.ts +8 -5
  388. package/src/resources/beta/messages/index.ts +1 -1
  389. package/src/resources/beta/messages/messages.ts +72 -30
  390. package/src/resources/beta/organization/api-keys.ts +231 -0
  391. package/src/resources/beta/organization/external-keys.ts +362 -0
  392. package/src/resources/beta/organization/federation/federation.ts +71 -0
  393. package/src/resources/beta/organization/federation/index.ts +31 -0
  394. package/src/resources/beta/organization/federation/issuers.ts +486 -0
  395. package/src/resources/beta/organization/federation/rules/index.ts +23 -0
  396. package/src/resources/beta/organization/federation/rules/rules.ts +624 -0
  397. package/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
  398. package/src/resources/beta/organization/federation/rules.ts +3 -0
  399. package/src/resources/beta/organization/federation.ts +3 -0
  400. package/src/resources/beta/organization/index.ts +83 -0
  401. package/src/resources/beta/organization/invites.ts +207 -0
  402. package/src/resources/beta/organization/organization.ts +245 -0
  403. package/src/resources/beta/organization/rate-limits.ts +104 -0
  404. package/src/resources/beta/organization/service-accounts/index.ts +21 -0
  405. package/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
  406. package/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
  407. package/src/resources/beta/organization/service-accounts.ts +3 -0
  408. package/src/resources/beta/organization/users.ts +163 -0
  409. package/src/resources/beta/organization/workspaces/index.ts +43 -0
  410. package/src/resources/beta/organization/workspaces/members.ts +209 -0
  411. package/src/resources/beta/organization/workspaces/rate-limits.ts +113 -0
  412. package/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
  413. package/src/resources/beta/organization/workspaces/workspaces.ts +434 -0
  414. package/src/resources/beta/organization/workspaces.ts +3 -0
  415. package/src/resources/beta/organization.ts +3 -0
  416. package/src/resources/beta/sessions/threads/threads.ts +2 -1
  417. package/src/resources/beta/skills/index.ts +7 -10
  418. package/src/resources/beta/skills/skills.ts +60 -150
  419. package/src/resources/beta/skills/versions.ts +43 -166
  420. package/src/resources/beta/webhooks.ts +25 -29
  421. package/src/tools/agent-toolset/node.browser.ts +1 -5
  422. package/src/tools/agent-toolset/node.ts +122 -17
  423. package/src/tools/agent-toolset/skills.ts +5 -33
  424. package/src/version.ts +1 -1
  425. package/tools/agent-toolset/node.browser.d.mts +1 -2
  426. package/tools/agent-toolset/node.browser.d.mts.map +1 -1
  427. package/tools/agent-toolset/node.browser.d.ts +1 -2
  428. package/tools/agent-toolset/node.browser.d.ts.map +1 -1
  429. package/tools/agent-toolset/node.browser.js +0 -4
  430. package/tools/agent-toolset/node.browser.js.map +1 -1
  431. package/tools/agent-toolset/node.browser.mjs +0 -3
  432. package/tools/agent-toolset/node.browser.mjs.map +1 -1
  433. package/tools/agent-toolset/node.d.mts +11 -9
  434. package/tools/agent-toolset/node.d.mts.map +1 -1
  435. package/tools/agent-toolset/node.d.ts +11 -9
  436. package/tools/agent-toolset/node.d.ts.map +1 -1
  437. package/tools/agent-toolset/node.js +96 -8
  438. package/tools/agent-toolset/node.js.map +1 -1
  439. package/tools/agent-toolset/node.mjs +96 -7
  440. package/tools/agent-toolset/node.mjs.map +1 -1
  441. package/tools/agent-toolset/skills.d.mts +0 -8
  442. package/tools/agent-toolset/skills.d.mts.map +1 -1
  443. package/tools/agent-toolset/skills.d.ts +0 -8
  444. package/tools/agent-toolset/skills.d.ts.map +1 -1
  445. package/tools/agent-toolset/skills.js +5 -25
  446. package/tools/agent-toolset/skills.js.map +1 -1
  447. package/tools/agent-toolset/skills.mjs +5 -24
  448. package/tools/agent-toolset/skills.mjs.map +1 -1
  449. package/version.d.mts +1 -1
  450. package/version.d.ts +1 -1
  451. package/version.js +1 -1
  452. package/version.mjs +1 -1
@@ -0,0 +1,210 @@
1
+ import { APIResource } from "../../../../core/resource.js";
2
+ import * as BetaAPI from "../../beta.js";
3
+ import * as ServiceAccountsAPI from "../service-accounts/service-accounts.js";
4
+ import { BetaServiceAccountWorkspaceMembersPageCursor } from "../service-accounts/service-accounts.js";
5
+ import * as WorkspacesAPI from "./workspaces.js";
6
+ import { APIPromise } from "../../../../core/api-promise.js";
7
+ import { type PageCursorParams, PagePromise } from "../../../../core/pagination.js";
8
+ import { RequestOptions } from "../../../../internal/request-options.js";
9
+ export declare class ServiceAccounts extends APIResource {
10
+ /**
11
+ * **Requires an OAuth access token with the `org:admin` scope**, from
12
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
13
+ * API keys are not accepted. See
14
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
15
+ *
16
+ * Retrieve a service account's membership in a workspace.
17
+ *
18
+ * Returns the membership record, including the service account's `workspace_role`
19
+ * in this workspace. Archived workspaces return 400. For the default workspace,
20
+ * returns the implicit (`implicit: true`) membership when no explicit membership
21
+ * exists; an explicitly added membership is returned with its assigned role. An
22
+ * archived service account returns 404.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const betaServiceAccountWorkspaceMember =
27
+ * await client.beta.organization.workspaces.serviceAccounts.retrieve(
28
+ * 'service_account_id',
29
+ * { workspace_id: 'workspace_id' },
30
+ * );
31
+ * ```
32
+ */
33
+ retrieve(serviceAccountID: string, params: ServiceAccountRetrieveParams, options?: RequestOptions): APIPromise<ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
34
+ /**
35
+ * **Requires an OAuth access token with the `org:admin` scope**, from
36
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
37
+ * API keys are not accepted. See
38
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
39
+ *
40
+ * Change a service account's role in a workspace.
41
+ *
42
+ * The new `workspace_role` replaces the current one. Only explicit memberships can
43
+ * be updated; to set a role on the implicit default-workspace membership, add the
44
+ * service account explicitly with
45
+ * `POST /workspaces/{workspace_id}/service_accounts`. Archived workspaces
46
+ * return 400. Archived service accounts cannot be updated and are rejected.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const betaServiceAccountWorkspaceMember =
51
+ * await client.beta.organization.workspaces.serviceAccounts.update(
52
+ * 'service_account_id',
53
+ * {
54
+ * workspace_id: 'workspace_id',
55
+ * workspace_role: 'workspace_admin',
56
+ * },
57
+ * );
58
+ * ```
59
+ */
60
+ update(serviceAccountID: string, params: ServiceAccountUpdateParams, options?: RequestOptions): APIPromise<ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
61
+ /**
62
+ * **Requires an OAuth access token with the `org:admin` scope**, from
63
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
64
+ * API keys are not accepted. See
65
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
66
+ *
67
+ * List the service accounts that are members of a workspace.
68
+ *
69
+ * Each entry includes the service account's `workspace_role`. Use `limit` and the
70
+ * `next_page` cursor to paginate. Archived workspaces return 400; use
71
+ * `GET /service_accounts/{id}/workspaces` to audit memberships of an archived
72
+ * workspace. The implicit default-workspace membership is not included in this
73
+ * list. Memberships of archived service accounts are omitted from the results.
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * // Automatically fetches more pages as needed.
78
+ * for await (const betaServiceAccountWorkspaceMember of client.beta.organization.workspaces.serviceAccounts.list(
79
+ * 'workspace_id',
80
+ * )) {
81
+ * // ...
82
+ * }
83
+ * ```
84
+ */
85
+ list(workspaceID: string, params?: ServiceAccountListParams | null | undefined, options?: RequestOptions): PagePromise<BetaServiceAccountWorkspaceMembersPageCursor, ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
86
+ /**
87
+ * **Requires an OAuth access token with the `org:admin` scope**, from
88
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
89
+ * API keys are not accepted. See
90
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
91
+ *
92
+ * Add a service account to a workspace with the given `workspace_role`.
93
+ *
94
+ * The role determines what the service account can do in the workspace and which
95
+ * workspace-scoped permissions it can be granted when authenticating through
96
+ * federation. Every service account is already an implicit `workspace_user` member
97
+ * of the default workspace; adding it explicitly assigns a chosen role. If the
98
+ * service account is already an explicit member of the workspace, its
99
+ * `workspace_role` is replaced with the value supplied here. Archived workspaces
100
+ * return 400. Archived service accounts cannot be added and are rejected.
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * const betaServiceAccountWorkspaceMember =
105
+ * await client.beta.organization.workspaces.serviceAccounts.add(
106
+ * 'workspace_id',
107
+ * {
108
+ * service_account_id: 'service_account_id',
109
+ * workspace_role: 'workspace_admin',
110
+ * },
111
+ * );
112
+ * ```
113
+ */
114
+ add(workspaceID: string, params: ServiceAccountAddParams, options?: RequestOptions): APIPromise<ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
115
+ /**
116
+ * **Requires an OAuth access token with the `org:admin` scope**, from
117
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
118
+ * API keys are not accepted. See
119
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
120
+ *
121
+ * Remove a service account from a workspace.
122
+ *
123
+ * Removal is idempotent (returns 200 even if the membership was already removed).
124
+ * A DELETE against the implicit default-workspace membership returns 200 but is a
125
+ * no-op and the membership persists; deleting an explicit default-workspace row
126
+ * reverts to the implicit `workspace_user` membership. Archived workspaces
127
+ * return 400.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * const serviceAccount =
132
+ * await client.beta.organization.workspaces.serviceAccounts.remove(
133
+ * 'service_account_id',
134
+ * { workspace_id: 'workspace_id' },
135
+ * );
136
+ * ```
137
+ */
138
+ remove(serviceAccountID: string, params: ServiceAccountRemoveParams, options?: RequestOptions): APIPromise<ServiceAccountRemoveResponse>;
139
+ }
140
+ export interface ServiceAccountRemoveResponse {
141
+ /**
142
+ * Tagged service account ID (`svac_...`) named in the delete request. Removal is
143
+ * idempotent; see the endpoint description for the implicit-membership no-op.
144
+ */
145
+ service_account_id: string;
146
+ type: 'service_account_workspace_member_deleted';
147
+ /**
148
+ * Tagged workspace ID (`wrkspc_...`) named in the delete request.
149
+ */
150
+ workspace_id: string;
151
+ }
152
+ export interface ServiceAccountRetrieveParams {
153
+ /**
154
+ * Path param: ID of the workspace.
155
+ */
156
+ workspace_id: string;
157
+ /**
158
+ * Header param: Optional header to specify the beta version(s) you want to use.
159
+ */
160
+ betas?: Array<BetaAPI.AnthropicBeta>;
161
+ }
162
+ export interface ServiceAccountUpdateParams {
163
+ /**
164
+ * Path param: ID of the workspace.
165
+ */
166
+ workspace_id: string;
167
+ /**
168
+ * Body param: New role for the service account in this workspace.
169
+ */
170
+ workspace_role: WorkspacesAPI.BetaNoBillingWorkspaceRole;
171
+ /**
172
+ * Header param: Optional header to specify the beta version(s) you want to use.
173
+ */
174
+ betas?: Array<BetaAPI.AnthropicBeta>;
175
+ }
176
+ export interface ServiceAccountListParams extends PageCursorParams {
177
+ /**
178
+ * Header param: Optional header to specify the beta version(s) you want to use.
179
+ */
180
+ betas?: Array<BetaAPI.AnthropicBeta>;
181
+ }
182
+ export interface ServiceAccountAddParams {
183
+ /**
184
+ * Body param: Tagged service account ID to add.
185
+ */
186
+ service_account_id: string;
187
+ /**
188
+ * Body param: Role to assign to the service account in this workspace.
189
+ */
190
+ workspace_role: WorkspacesAPI.BetaNoBillingWorkspaceRole;
191
+ /**
192
+ * Header param: Optional header to specify the beta version(s) you want to use.
193
+ */
194
+ betas?: Array<BetaAPI.AnthropicBeta>;
195
+ }
196
+ export interface ServiceAccountRemoveParams {
197
+ /**
198
+ * Path param: ID of the workspace.
199
+ */
200
+ workspace_id: string;
201
+ /**
202
+ * Header param: Optional header to specify the beta version(s) you want to use.
203
+ */
204
+ betas?: Array<BetaAPI.AnthropicBeta>;
205
+ }
206
+ export declare namespace ServiceAccounts {
207
+ export { type ServiceAccountRemoveResponse as ServiceAccountRemoveResponse, type ServiceAccountRetrieveParams as ServiceAccountRetrieveParams, type ServiceAccountUpdateParams as ServiceAccountUpdateParams, type ServiceAccountListParams as ServiceAccountListParams, type ServiceAccountAddParams as ServiceAccountAddParams, type ServiceAccountRemoveParams as ServiceAccountRemoveParams, };
208
+ }
209
+ export { type BetaServiceAccountWorkspaceMembersPageCursor };
210
+ //# sourceMappingURL=service-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-accounts.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/service-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,OAAO,sBAAmB;AACtC,OAAO,KAAK,kBAAkB,gDAA6C;AAC3E,OAAO,EAAE,4CAA4C,EAAE,gDAA6C;AACpG,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,wCAAqC;A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. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ServiceAccounts = void 0;
5
+ const resource_1 = require("../../../../core/resource.js");
6
+ const pagination_1 = require("../../../../core/pagination.js");
7
+ const headers_1 = require("../../../../internal/headers.js");
8
+ const path_1 = require("../../../../internal/utils/path.js");
9
+ class ServiceAccounts extends resource_1.APIResource {
10
+ /**
11
+ * **Requires an OAuth access token with the `org:admin` scope**, from
12
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
13
+ * API keys are not accepted. See
14
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
15
+ *
16
+ * Retrieve a service account's membership in a workspace.
17
+ *
18
+ * Returns the membership record, including the service account's `workspace_role`
19
+ * in this workspace. Archived workspaces return 400. For the default workspace,
20
+ * returns the implicit (`implicit: true`) membership when no explicit membership
21
+ * exists; an explicitly added membership is returned with its assigned role. An
22
+ * archived service account returns 404.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const betaServiceAccountWorkspaceMember =
27
+ * await client.beta.organization.workspaces.serviceAccounts.retrieve(
28
+ * 'service_account_id',
29
+ * { workspace_id: 'workspace_id' },
30
+ * );
31
+ * ```
32
+ */
33
+ retrieve(serviceAccountID, params, options) {
34
+ const { workspace_id, betas } = params;
35
+ return this._client.get((0, path_1.path) `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
36
+ ...options,
37
+ headers: (0, headers_1.buildHeaders)([
38
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
39
+ options?.headers,
40
+ ]),
41
+ });
42
+ }
43
+ /**
44
+ * **Requires an OAuth access token with the `org:admin` scope**, from
45
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
46
+ * API keys are not accepted. See
47
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
48
+ *
49
+ * Change a service account's role in a workspace.
50
+ *
51
+ * The new `workspace_role` replaces the current one. Only explicit memberships can
52
+ * be updated; to set a role on the implicit default-workspace membership, add the
53
+ * service account explicitly with
54
+ * `POST /workspaces/{workspace_id}/service_accounts`. Archived workspaces
55
+ * return 400. Archived service accounts cannot be updated and are rejected.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const betaServiceAccountWorkspaceMember =
60
+ * await client.beta.organization.workspaces.serviceAccounts.update(
61
+ * 'service_account_id',
62
+ * {
63
+ * workspace_id: 'workspace_id',
64
+ * workspace_role: 'workspace_admin',
65
+ * },
66
+ * );
67
+ * ```
68
+ */
69
+ update(serviceAccountID, params, options) {
70
+ const { workspace_id, betas, ...body } = params;
71
+ return this._client.post((0, path_1.path) `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
72
+ body,
73
+ ...options,
74
+ headers: (0, headers_1.buildHeaders)([
75
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
76
+ options?.headers,
77
+ ]),
78
+ });
79
+ }
80
+ /**
81
+ * **Requires an OAuth access token with the `org:admin` scope**, from
82
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
83
+ * API keys are not accepted. See
84
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
85
+ *
86
+ * List the service accounts that are members of a workspace.
87
+ *
88
+ * Each entry includes the service account's `workspace_role`. Use `limit` and the
89
+ * `next_page` cursor to paginate. Archived workspaces return 400; use
90
+ * `GET /service_accounts/{id}/workspaces` to audit memberships of an archived
91
+ * workspace. The implicit default-workspace membership is not included in this
92
+ * list. Memberships of archived service accounts are omitted from the results.
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * // Automatically fetches more pages as needed.
97
+ * for await (const betaServiceAccountWorkspaceMember of client.beta.organization.workspaces.serviceAccounts.list(
98
+ * 'workspace_id',
99
+ * )) {
100
+ * // ...
101
+ * }
102
+ * ```
103
+ */
104
+ list(workspaceID, params = {}, options) {
105
+ const { betas, ...query } = params ?? {};
106
+ return this._client.getAPIList((0, path_1.path) `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, (pagination_1.PageCursor), {
107
+ query,
108
+ ...options,
109
+ headers: (0, headers_1.buildHeaders)([
110
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
111
+ options?.headers,
112
+ ]),
113
+ });
114
+ }
115
+ /**
116
+ * **Requires an OAuth access token with the `org:admin` scope**, from
117
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
118
+ * API keys are not accepted. See
119
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
120
+ *
121
+ * Add a service account to a workspace with the given `workspace_role`.
122
+ *
123
+ * The role determines what the service account can do in the workspace and which
124
+ * workspace-scoped permissions it can be granted when authenticating through
125
+ * federation. Every service account is already an implicit `workspace_user` member
126
+ * of the default workspace; adding it explicitly assigns a chosen role. If the
127
+ * service account is already an explicit member of the workspace, its
128
+ * `workspace_role` is replaced with the value supplied here. Archived workspaces
129
+ * return 400. Archived service accounts cannot be added and are rejected.
130
+ *
131
+ * @example
132
+ * ```ts
133
+ * const betaServiceAccountWorkspaceMember =
134
+ * await client.beta.organization.workspaces.serviceAccounts.add(
135
+ * 'workspace_id',
136
+ * {
137
+ * service_account_id: 'service_account_id',
138
+ * workspace_role: 'workspace_admin',
139
+ * },
140
+ * );
141
+ * ```
142
+ */
143
+ add(workspaceID, params, options) {
144
+ const { betas, ...body } = params;
145
+ return this._client.post((0, path_1.path) `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, {
146
+ body,
147
+ ...options,
148
+ headers: (0, headers_1.buildHeaders)([
149
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
150
+ options?.headers,
151
+ ]),
152
+ });
153
+ }
154
+ /**
155
+ * **Requires an OAuth access token with the `org:admin` scope**, from
156
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
157
+ * API keys are not accepted. See
158
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
159
+ *
160
+ * Remove a service account from a workspace.
161
+ *
162
+ * Removal is idempotent (returns 200 even if the membership was already removed).
163
+ * A DELETE against the implicit default-workspace membership returns 200 but is a
164
+ * no-op and the membership persists; deleting an explicit default-workspace row
165
+ * reverts to the implicit `workspace_user` membership. Archived workspaces
166
+ * return 400.
167
+ *
168
+ * @example
169
+ * ```ts
170
+ * const serviceAccount =
171
+ * await client.beta.organization.workspaces.serviceAccounts.remove(
172
+ * 'service_account_id',
173
+ * { workspace_id: 'workspace_id' },
174
+ * );
175
+ * ```
176
+ */
177
+ remove(serviceAccountID, params, options) {
178
+ const { workspace_id, betas } = params;
179
+ return this._client.delete((0, path_1.path) `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
180
+ ...options,
181
+ headers: (0, headers_1.buildHeaders)([
182
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
183
+ options?.headers,
184
+ ]),
185
+ });
186
+ }
187
+ }
188
+ exports.ServiceAccounts = ServiceAccounts;
189
+ //# sourceMappingURL=service-accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-accounts.js","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/service-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAMxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,gBAAwB,EACxB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,gCAAgC,YAAY,qBAAqB,gBAAgB,YAAY,EACjG;YACE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAA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H,CACF,CAAC;IACJ,CAAC;CACF;AA1ND,0CA0NC"}
@@ -0,0 +1,185 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../core/resource.mjs";
3
+ import { PageCursor } from "../../../../core/pagination.mjs";
4
+ import { buildHeaders } from "../../../../internal/headers.mjs";
5
+ import { path } from "../../../../internal/utils/path.mjs";
6
+ export class ServiceAccounts extends APIResource {
7
+ /**
8
+ * **Requires an OAuth access token with the `org:admin` scope**, from
9
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
10
+ * API keys are not accepted. See
11
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
12
+ *
13
+ * Retrieve a service account's membership in a workspace.
14
+ *
15
+ * Returns the membership record, including the service account's `workspace_role`
16
+ * in this workspace. Archived workspaces return 400. For the default workspace,
17
+ * returns the implicit (`implicit: true`) membership when no explicit membership
18
+ * exists; an explicitly added membership is returned with its assigned role. An
19
+ * archived service account returns 404.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const betaServiceAccountWorkspaceMember =
24
+ * await client.beta.organization.workspaces.serviceAccounts.retrieve(
25
+ * 'service_account_id',
26
+ * { workspace_id: 'workspace_id' },
27
+ * );
28
+ * ```
29
+ */
30
+ retrieve(serviceAccountID, params, options) {
31
+ const { workspace_id, betas } = params;
32
+ return this._client.get(path `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
33
+ ...options,
34
+ headers: buildHeaders([
35
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
36
+ options?.headers,
37
+ ]),
38
+ });
39
+ }
40
+ /**
41
+ * **Requires an OAuth access token with the `org:admin` scope**, from
42
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
43
+ * API keys are not accepted. See
44
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
45
+ *
46
+ * Change a service account's role in a workspace.
47
+ *
48
+ * The new `workspace_role` replaces the current one. Only explicit memberships can
49
+ * be updated; to set a role on the implicit default-workspace membership, add the
50
+ * service account explicitly with
51
+ * `POST /workspaces/{workspace_id}/service_accounts`. Archived workspaces
52
+ * return 400. Archived service accounts cannot be updated and are rejected.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const betaServiceAccountWorkspaceMember =
57
+ * await client.beta.organization.workspaces.serviceAccounts.update(
58
+ * 'service_account_id',
59
+ * {
60
+ * workspace_id: 'workspace_id',
61
+ * workspace_role: 'workspace_admin',
62
+ * },
63
+ * );
64
+ * ```
65
+ */
66
+ update(serviceAccountID, params, options) {
67
+ const { workspace_id, betas, ...body } = params;
68
+ return this._client.post(path `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
69
+ body,
70
+ ...options,
71
+ headers: buildHeaders([
72
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
73
+ options?.headers,
74
+ ]),
75
+ });
76
+ }
77
+ /**
78
+ * **Requires an OAuth access token with the `org:admin` scope**, from
79
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
80
+ * API keys are not accepted. See
81
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
82
+ *
83
+ * List the service accounts that are members of a workspace.
84
+ *
85
+ * Each entry includes the service account's `workspace_role`. Use `limit` and the
86
+ * `next_page` cursor to paginate. Archived workspaces return 400; use
87
+ * `GET /service_accounts/{id}/workspaces` to audit memberships of an archived
88
+ * workspace. The implicit default-workspace membership is not included in this
89
+ * list. Memberships of archived service accounts are omitted from the results.
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * // Automatically fetches more pages as needed.
94
+ * for await (const betaServiceAccountWorkspaceMember of client.beta.organization.workspaces.serviceAccounts.list(
95
+ * 'workspace_id',
96
+ * )) {
97
+ * // ...
98
+ * }
99
+ * ```
100
+ */
101
+ list(workspaceID, params = {}, options) {
102
+ const { betas, ...query } = params ?? {};
103
+ return this._client.getAPIList(path `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, (PageCursor), {
104
+ query,
105
+ ...options,
106
+ headers: buildHeaders([
107
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
108
+ options?.headers,
109
+ ]),
110
+ });
111
+ }
112
+ /**
113
+ * **Requires an OAuth access token with the `org:admin` scope**, from
114
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
115
+ * API keys are not accepted. See
116
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
117
+ *
118
+ * Add a service account to a workspace with the given `workspace_role`.
119
+ *
120
+ * The role determines what the service account can do in the workspace and which
121
+ * workspace-scoped permissions it can be granted when authenticating through
122
+ * federation. Every service account is already an implicit `workspace_user` member
123
+ * of the default workspace; adding it explicitly assigns a chosen role. If the
124
+ * service account is already an explicit member of the workspace, its
125
+ * `workspace_role` is replaced with the value supplied here. Archived workspaces
126
+ * return 400. Archived service accounts cannot be added and are rejected.
127
+ *
128
+ * @example
129
+ * ```ts
130
+ * const betaServiceAccountWorkspaceMember =
131
+ * await client.beta.organization.workspaces.serviceAccounts.add(
132
+ * 'workspace_id',
133
+ * {
134
+ * service_account_id: 'service_account_id',
135
+ * workspace_role: 'workspace_admin',
136
+ * },
137
+ * );
138
+ * ```
139
+ */
140
+ add(workspaceID, params, options) {
141
+ const { betas, ...body } = params;
142
+ return this._client.post(path `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, {
143
+ body,
144
+ ...options,
145
+ headers: buildHeaders([
146
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
147
+ options?.headers,
148
+ ]),
149
+ });
150
+ }
151
+ /**
152
+ * **Requires an OAuth access token with the `org:admin` scope**, from
153
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
154
+ * API keys are not accepted. See
155
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
156
+ *
157
+ * Remove a service account from a workspace.
158
+ *
159
+ * Removal is idempotent (returns 200 even if the membership was already removed).
160
+ * A DELETE against the implicit default-workspace membership returns 200 but is a
161
+ * no-op and the membership persists; deleting an explicit default-workspace row
162
+ * reverts to the implicit `workspace_user` membership. Archived workspaces
163
+ * return 400.
164
+ *
165
+ * @example
166
+ * ```ts
167
+ * const serviceAccount =
168
+ * await client.beta.organization.workspaces.serviceAccounts.remove(
169
+ * 'service_account_id',
170
+ * { workspace_id: 'workspace_id' },
171
+ * );
172
+ * ```
173
+ */
174
+ remove(serviceAccountID, params, options) {
175
+ const { workspace_id, betas } = params;
176
+ return this._client.delete(path `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
177
+ ...options,
178
+ headers: buildHeaders([
179
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
180
+ options?.headers,
181
+ ]),
182
+ });
183
+ }
184
+ }
185
+ //# sourceMappingURL=service-accounts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-accounts.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/service-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAMxD,OAAO,EAAE,UAAU,EAAsC,wCAAoC;AAC7F,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,gBAAwB,EACxB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,gCAAgC,YAAY,qBAAqB,gBAAgB,YAAY,EACjG;YACE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,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