@anthropic-ai/sdk 0.119.0 → 0.121.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 (466) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/helpers/beta/environments.d.mts +5 -4
  3. package/helpers/beta/environments.d.mts.map +1 -1
  4. package/helpers/beta/environments.d.ts +5 -4
  5. package/helpers/beta/environments.d.ts.map +1 -1
  6. package/helpers/beta/environments.js +5 -4
  7. package/helpers/beta/environments.js.map +1 -1
  8. package/helpers/beta/environments.mjs +5 -4
  9. package/helpers/beta/environments.mjs.map +1 -1
  10. package/helpers/beta/standard-schema.d.mts +45 -0
  11. package/helpers/beta/standard-schema.d.mts.map +1 -0
  12. package/helpers/beta/standard-schema.d.ts +45 -0
  13. package/helpers/beta/standard-schema.d.ts.map +1 -0
  14. package/helpers/beta/standard-schema.js +58 -0
  15. package/helpers/beta/standard-schema.js.map +1 -0
  16. package/helpers/beta/standard-schema.mjs +54 -0
  17. package/helpers/beta/standard-schema.mjs.map +1 -0
  18. package/internal/detect-platform.js +1 -1
  19. package/internal/detect-platform.js.map +1 -1
  20. package/internal/detect-platform.mjs +1 -1
  21. package/internal/detect-platform.mjs.map +1 -1
  22. package/internal/file-store.d.mts +136 -0
  23. package/internal/file-store.d.mts.map +1 -0
  24. package/internal/file-store.d.ts +136 -0
  25. package/internal/file-store.d.ts.map +1 -0
  26. package/internal/file-store.js +531 -0
  27. package/internal/file-store.js.map +1 -0
  28. package/internal/file-store.mjs +523 -0
  29. package/internal/file-store.mjs.map +1 -0
  30. package/internal/utils/values.d.mts +6 -0
  31. package/internal/utils/values.d.mts.map +1 -1
  32. package/internal/utils/values.d.ts +6 -0
  33. package/internal/utils/values.d.ts.map +1 -1
  34. package/internal/utils/values.js +7 -0
  35. package/internal/utils/values.js.map +1 -1
  36. package/internal/utils/values.mjs +6 -0
  37. package/internal/utils/values.mjs.map +1 -1
  38. package/lib/BetaMessageStream.d.mts.map +1 -1
  39. package/lib/BetaMessageStream.d.ts.map +1 -1
  40. package/lib/BetaMessageStream.js +3 -4
  41. package/lib/BetaMessageStream.js.map +1 -1
  42. package/lib/BetaMessageStream.mjs +1 -2
  43. package/lib/BetaMessageStream.mjs.map +1 -1
  44. package/lib/MessageStream.d.mts.map +1 -1
  45. package/lib/MessageStream.d.ts.map +1 -1
  46. package/lib/MessageStream.js +3 -4
  47. package/lib/MessageStream.js.map +1 -1
  48. package/lib/MessageStream.mjs +1 -2
  49. package/lib/MessageStream.mjs.map +1 -1
  50. package/lib/environments/poller.d.mts +6 -0
  51. package/lib/environments/poller.d.mts.map +1 -1
  52. package/lib/environments/poller.d.ts +6 -0
  53. package/lib/environments/poller.d.ts.map +1 -1
  54. package/lib/environments/poller.js +46 -1
  55. package/lib/environments/poller.js.map +1 -1
  56. package/lib/environments/poller.mjs +46 -1
  57. package/lib/environments/poller.mjs.map +1 -1
  58. package/lib/environments/worker.d.mts +89 -12
  59. package/lib/environments/worker.d.mts.map +1 -1
  60. package/lib/environments/worker.d.ts +89 -12
  61. package/lib/environments/worker.d.ts.map +1 -1
  62. package/lib/environments/worker.js +336 -67
  63. package/lib/environments/worker.js.map +1 -1
  64. package/lib/environments/worker.mjs +336 -68
  65. package/lib/environments/worker.mjs.map +1 -1
  66. package/lib/sessions/accumulate.d.mts.map +1 -1
  67. package/lib/sessions/accumulate.d.ts.map +1 -1
  68. package/lib/sessions/accumulate.js +3 -4
  69. package/lib/sessions/accumulate.js.map +1 -1
  70. package/lib/sessions/accumulate.mjs +1 -2
  71. package/lib/sessions/accumulate.mjs.map +1 -1
  72. package/lib/standard-schema.d.mts +131 -0
  73. package/lib/standard-schema.d.mts.map +1 -0
  74. package/lib/standard-schema.d.ts +131 -0
  75. package/lib/standard-schema.d.ts.map +1 -0
  76. package/lib/standard-schema.js +45 -0
  77. package/lib/standard-schema.js.map +1 -0
  78. package/lib/standard-schema.mjs +41 -0
  79. package/lib/standard-schema.mjs.map +1 -0
  80. package/lib/tools/BetaToolRunner.d.mts.map +1 -1
  81. package/lib/tools/BetaToolRunner.d.ts.map +1 -1
  82. package/lib/tools/BetaToolRunner.js +35 -6
  83. package/lib/tools/BetaToolRunner.js.map +1 -1
  84. package/lib/tools/BetaToolRunner.mjs +35 -6
  85. package/lib/tools/BetaToolRunner.mjs.map +1 -1
  86. package/package.json +2 -11
  87. package/resources/beta/agents/agents.d.mts +322 -27
  88. package/resources/beta/agents/agents.d.mts.map +1 -1
  89. package/resources/beta/agents/agents.d.ts +322 -27
  90. package/resources/beta/agents/agents.d.ts.map +1 -1
  91. package/resources/beta/agents/agents.js.map +1 -1
  92. package/resources/beta/agents/agents.mjs.map +1 -1
  93. package/resources/beta/agents/index.d.mts +1 -1
  94. package/resources/beta/agents/index.d.mts.map +1 -1
  95. package/resources/beta/agents/index.d.ts +1 -1
  96. package/resources/beta/agents/index.d.ts.map +1 -1
  97. package/resources/beta/agents/index.js.map +1 -1
  98. package/resources/beta/agents/index.mjs.map +1 -1
  99. package/resources/beta/beta.d.mts +7 -3
  100. package/resources/beta/beta.d.mts.map +1 -1
  101. package/resources/beta/beta.d.ts +7 -3
  102. package/resources/beta/beta.d.ts.map +1 -1
  103. package/resources/beta/beta.js +4 -0
  104. package/resources/beta/beta.js.map +1 -1
  105. package/resources/beta/beta.mjs +4 -0
  106. package/resources/beta/beta.mjs.map +1 -1
  107. package/resources/beta/environments/environments.d.mts +8 -1
  108. package/resources/beta/environments/environments.d.mts.map +1 -1
  109. package/resources/beta/environments/environments.d.ts +8 -1
  110. package/resources/beta/environments/environments.d.ts.map +1 -1
  111. package/resources/beta/environments/environments.js.map +1 -1
  112. package/resources/beta/environments/environments.mjs.map +1 -1
  113. package/resources/beta/environments/work.d.mts +5 -1
  114. package/resources/beta/environments/work.d.mts.map +1 -1
  115. package/resources/beta/environments/work.d.ts +5 -1
  116. package/resources/beta/environments/work.d.ts.map +1 -1
  117. package/resources/beta/environments/work.js +0 -17
  118. package/resources/beta/environments/work.js.map +1 -1
  119. package/resources/beta/environments/work.mjs +0 -17
  120. package/resources/beta/environments/work.mjs.map +1 -1
  121. package/resources/beta/index.d.mts +2 -1
  122. package/resources/beta/index.d.mts.map +1 -1
  123. package/resources/beta/index.d.ts +2 -1
  124. package/resources/beta/index.d.ts.map +1 -1
  125. package/resources/beta/index.js +11 -9
  126. package/resources/beta/index.js.map +1 -1
  127. package/resources/beta/index.mjs +1 -0
  128. package/resources/beta/index.mjs.map +1 -1
  129. package/resources/beta/memory-stores/memories.d.mts +6 -5
  130. package/resources/beta/memory-stores/memories.d.mts.map +1 -1
  131. package/resources/beta/memory-stores/memories.d.ts +6 -5
  132. package/resources/beta/memory-stores/memories.d.ts.map +1 -1
  133. package/resources/beta/memory-stores/memory-versions.d.mts +8 -5
  134. package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
  135. package/resources/beta/memory-stores/memory-versions.d.ts +8 -5
  136. package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
  137. package/resources/beta/messages/messages.d.mts +51 -9
  138. package/resources/beta/messages/messages.d.mts.map +1 -1
  139. package/resources/beta/messages/messages.d.ts +51 -9
  140. package/resources/beta/messages/messages.d.ts.map +1 -1
  141. package/resources/beta/messages/messages.js.map +1 -1
  142. package/resources/beta/messages/messages.mjs.map +1 -1
  143. package/resources/beta/organization/api-keys.d.mts +177 -0
  144. package/resources/beta/organization/api-keys.d.mts.map +1 -0
  145. package/resources/beta/organization/api-keys.d.ts +177 -0
  146. package/resources/beta/organization/api-keys.d.ts.map +1 -0
  147. package/resources/beta/organization/api-keys.js +56 -0
  148. package/resources/beta/organization/api-keys.js.map +1 -0
  149. package/resources/beta/organization/api-keys.mjs +52 -0
  150. package/resources/beta/organization/api-keys.mjs.map +1 -0
  151. package/resources/beta/organization/external-keys.d.mts +269 -0
  152. package/resources/beta/organization/external-keys.d.mts.map +1 -0
  153. package/resources/beta/organization/external-keys.d.ts +269 -0
  154. package/resources/beta/organization/external-keys.d.ts.map +1 -0
  155. package/resources/beta/organization/external-keys.js +119 -0
  156. package/resources/beta/organization/external-keys.js.map +1 -0
  157. package/resources/beta/organization/external-keys.mjs +115 -0
  158. package/resources/beta/organization/external-keys.mjs.map +1 -0
  159. package/resources/beta/organization/federation/federation.d.mts +14 -0
  160. package/resources/beta/organization/federation/federation.d.mts.map +1 -0
  161. package/resources/beta/organization/federation/federation.d.ts +14 -0
  162. package/resources/beta/organization/federation/federation.d.ts.map +1 -0
  163. package/resources/beta/organization/federation/federation.js +21 -0
  164. package/resources/beta/organization/federation/federation.js.map +1 -0
  165. package/resources/beta/organization/federation/federation.mjs +16 -0
  166. package/resources/beta/organization/federation/federation.mjs.map +1 -0
  167. package/resources/beta/organization/federation/index.d.mts +4 -0
  168. package/resources/beta/organization/federation/index.d.mts.map +1 -0
  169. package/resources/beta/organization/federation/index.d.ts +4 -0
  170. package/resources/beta/organization/federation/index.d.ts.map +1 -0
  171. package/resources/beta/organization/federation/index.js +11 -0
  172. package/resources/beta/organization/federation/index.js.map +1 -0
  173. package/resources/beta/organization/federation/index.mjs +5 -0
  174. package/resources/beta/organization/federation/index.mjs.map +1 -0
  175. package/resources/beta/organization/federation/issuers.d.mts +353 -0
  176. package/resources/beta/organization/federation/issuers.d.mts.map +1 -0
  177. package/resources/beta/organization/federation/issuers.d.ts +353 -0
  178. package/resources/beta/organization/federation/issuers.d.ts.map +1 -0
  179. package/resources/beta/organization/federation/issuers.js +169 -0
  180. package/resources/beta/organization/federation/issuers.js.map +1 -0
  181. package/resources/beta/organization/federation/issuers.mjs +165 -0
  182. package/resources/beta/organization/federation/issuers.mjs.map +1 -0
  183. package/resources/beta/organization/federation/rules/index.d.mts +3 -0
  184. package/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
  185. package/resources/beta/organization/federation/rules/index.d.ts +3 -0
  186. package/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
  187. package/resources/beta/organization/federation/rules/index.js +9 -0
  188. package/resources/beta/organization/federation/rules/index.js.map +1 -0
  189. package/resources/beta/organization/federation/rules/index.mjs +4 -0
  190. package/resources/beta/organization/federation/rules/index.mjs.map +1 -0
  191. package/resources/beta/organization/federation/rules/rules.d.mts +468 -0
  192. package/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
  193. package/resources/beta/organization/federation/rules/rules.d.ts +468 -0
  194. package/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
  195. package/resources/beta/organization/federation/rules/rules.js +198 -0
  196. package/resources/beta/organization/federation/rules/rules.js.map +1 -0
  197. package/resources/beta/organization/federation/rules/rules.mjs +193 -0
  198. package/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
  199. package/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
  200. package/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
  201. package/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
  202. package/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
  203. package/resources/beta/organization/federation/rules/workspaces.js +114 -0
  204. package/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
  205. package/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
  206. package/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
  207. package/resources/beta/organization/federation/rules.d.mts +2 -0
  208. package/resources/beta/organization/federation/rules.d.mts.map +1 -0
  209. package/resources/beta/organization/federation/rules.d.ts +2 -0
  210. package/resources/beta/organization/federation/rules.d.ts.map +1 -0
  211. package/resources/beta/organization/federation/rules.js +6 -0
  212. package/resources/beta/organization/federation/rules.js.map +1 -0
  213. package/resources/beta/organization/federation/rules.mjs +3 -0
  214. package/resources/beta/organization/federation/rules.mjs.map +1 -0
  215. package/resources/beta/organization/federation.d.mts +2 -0
  216. package/resources/beta/organization/federation.d.mts.map +1 -0
  217. package/resources/beta/organization/federation.d.ts +2 -0
  218. package/resources/beta/organization/federation.d.ts.map +1 -0
  219. package/resources/beta/organization/federation.js +6 -0
  220. package/resources/beta/organization/federation.js.map +1 -0
  221. package/resources/beta/organization/federation.mjs +3 -0
  222. package/resources/beta/organization/federation.mjs.map +1 -0
  223. package/resources/beta/organization/index.d.mts +10 -0
  224. package/resources/beta/organization/index.d.mts.map +1 -0
  225. package/resources/beta/organization/index.d.ts +10 -0
  226. package/resources/beta/organization/index.d.ts.map +1 -0
  227. package/resources/beta/organization/index.js +23 -0
  228. package/resources/beta/organization/index.js.map +1 -0
  229. package/resources/beta/organization/index.mjs +11 -0
  230. package/resources/beta/organization/index.mjs.map +1 -0
  231. package/resources/beta/organization/invites.d.mts +162 -0
  232. package/resources/beta/organization/invites.d.mts.map +1 -0
  233. package/resources/beta/organization/invites.d.ts +162 -0
  234. package/resources/beta/organization/invites.d.ts.map +1 -0
  235. package/resources/beta/organization/invites.js +76 -0
  236. package/resources/beta/organization/invites.js.map +1 -0
  237. package/resources/beta/organization/invites.mjs +72 -0
  238. package/resources/beta/organization/invites.mjs.map +1 -0
  239. package/resources/beta/organization/organization.d.mts +69 -0
  240. package/resources/beta/organization/organization.d.mts.map +1 -0
  241. package/resources/beta/organization/organization.d.ts +69 -0
  242. package/resources/beta/organization/organization.d.ts.map +1 -0
  243. package/resources/beta/organization/organization.js +58 -0
  244. package/resources/beta/organization/organization.js.map +1 -0
  245. package/resources/beta/organization/organization.mjs +53 -0
  246. package/resources/beta/organization/organization.mjs.map +1 -0
  247. package/resources/beta/organization/rate-limits.d.mts +78 -0
  248. package/resources/beta/organization/rate-limits.d.mts.map +1 -0
  249. package/resources/beta/organization/rate-limits.d.ts +78 -0
  250. package/resources/beta/organization/rate-limits.d.ts.map +1 -0
  251. package/resources/beta/organization/rate-limits.js +32 -0
  252. package/resources/beta/organization/rate-limits.js.map +1 -0
  253. package/resources/beta/organization/rate-limits.mjs +28 -0
  254. package/resources/beta/organization/rate-limits.mjs.map +1 -0
  255. package/resources/beta/organization/service-accounts/index.d.mts +3 -0
  256. package/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
  257. package/resources/beta/organization/service-accounts/index.d.ts +3 -0
  258. package/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
  259. package/resources/beta/organization/service-accounts/index.js +9 -0
  260. package/resources/beta/organization/service-accounts/index.js.map +1 -0
  261. package/resources/beta/organization/service-accounts/index.mjs +4 -0
  262. package/resources/beta/organization/service-accounts/index.mjs.map +1 -0
  263. package/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
  264. package/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
  265. package/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
  266. package/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
  267. package/resources/beta/organization/service-accounts/service-accounts.js +174 -0
  268. package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
  269. package/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
  270. package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
  271. package/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
  272. package/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
  273. package/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
  274. package/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
  275. package/resources/beta/organization/service-accounts/workspaces.js +125 -0
  276. package/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
  277. package/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
  278. package/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
  279. package/resources/beta/organization/service-accounts.d.mts +2 -0
  280. package/resources/beta/organization/service-accounts.d.mts.map +1 -0
  281. package/resources/beta/organization/service-accounts.d.ts +2 -0
  282. package/resources/beta/organization/service-accounts.d.ts.map +1 -0
  283. package/resources/beta/organization/service-accounts.js +6 -0
  284. package/resources/beta/organization/service-accounts.js.map +1 -0
  285. package/resources/beta/organization/service-accounts.mjs +3 -0
  286. package/resources/beta/organization/service-accounts.mjs.map +1 -0
  287. package/resources/beta/organization/users.d.mts +124 -0
  288. package/resources/beta/organization/users.d.mts.map +1 -0
  289. package/resources/beta/organization/users.d.ts +124 -0
  290. package/resources/beta/organization/users.d.ts.map +1 -0
  291. package/resources/beta/organization/users.js +67 -0
  292. package/resources/beta/organization/users.js.map +1 -0
  293. package/resources/beta/organization/users.mjs +63 -0
  294. package/resources/beta/organization/users.mjs.map +1 -0
  295. package/resources/beta/organization/workspaces/index.d.mts +5 -0
  296. package/resources/beta/organization/workspaces/index.d.mts.map +1 -0
  297. package/resources/beta/organization/workspaces/index.d.ts +5 -0
  298. package/resources/beta/organization/workspaces/index.d.ts.map +1 -0
  299. package/resources/beta/organization/workspaces/index.js +13 -0
  300. package/resources/beta/organization/workspaces/index.js.map +1 -0
  301. package/resources/beta/organization/workspaces/index.mjs +6 -0
  302. package/resources/beta/organization/workspaces/index.mjs.map +1 -0
  303. package/resources/beta/organization/workspaces/members.d.mts +135 -0
  304. package/resources/beta/organization/workspaces/members.d.mts.map +1 -0
  305. package/resources/beta/organization/workspaces/members.d.ts +135 -0
  306. package/resources/beta/organization/workspaces/members.d.ts.map +1 -0
  307. package/resources/beta/organization/workspaces/members.js +102 -0
  308. package/resources/beta/organization/workspaces/members.js.map +1 -0
  309. package/resources/beta/organization/workspaces/members.mjs +98 -0
  310. package/resources/beta/organization/workspaces/members.mjs.map +1 -0
  311. package/resources/beta/organization/workspaces/rate-limits.d.mts +84 -0
  312. package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
  313. package/resources/beta/organization/workspaces/rate-limits.d.ts +84 -0
  314. package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
  315. package/resources/beta/organization/workspaces/rate-limits.js +35 -0
  316. package/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
  317. package/resources/beta/organization/workspaces/rate-limits.mjs +31 -0
  318. package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
  319. package/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
  320. package/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
  321. package/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
  322. package/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
  323. package/resources/beta/organization/workspaces/service-accounts.js +189 -0
  324. package/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
  325. package/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
  326. package/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
  327. package/resources/beta/organization/workspaces/workspaces.d.mts +287 -0
  328. package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
  329. package/resources/beta/organization/workspaces/workspaces.d.ts +287 -0
  330. package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
  331. package/resources/beta/organization/workspaces/workspaces.js +112 -0
  332. package/resources/beta/organization/workspaces/workspaces.js.map +1 -0
  333. package/resources/beta/organization/workspaces/workspaces.mjs +107 -0
  334. package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
  335. package/resources/beta/organization/workspaces.d.mts +2 -0
  336. package/resources/beta/organization/workspaces.d.mts.map +1 -0
  337. package/resources/beta/organization/workspaces.d.ts +2 -0
  338. package/resources/beta/organization/workspaces.d.ts.map +1 -0
  339. package/resources/beta/organization/workspaces.js +6 -0
  340. package/resources/beta/organization/workspaces.js.map +1 -0
  341. package/resources/beta/organization/workspaces.mjs +3 -0
  342. package/resources/beta/organization/workspaces.mjs.map +1 -0
  343. package/resources/beta/organization.d.mts +2 -0
  344. package/resources/beta/organization.d.mts.map +1 -0
  345. package/resources/beta/organization.d.ts +2 -0
  346. package/resources/beta/organization.d.ts.map +1 -0
  347. package/resources/beta/organization.js +6 -0
  348. package/resources/beta/organization.js.map +1 -0
  349. package/resources/beta/organization.mjs +3 -0
  350. package/resources/beta/organization.mjs.map +1 -0
  351. package/resources/beta/sessions/threads/threads.d.mts +2 -1
  352. package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
  353. package/resources/beta/sessions/threads/threads.d.ts +2 -1
  354. package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
  355. package/resources/beta/sessions/threads/threads.js.map +1 -1
  356. package/resources/beta/sessions/threads/threads.mjs.map +1 -1
  357. package/resources/messages/messages.d.mts +1 -1
  358. package/resources/messages/messages.d.ts +1 -1
  359. package/src/helpers/beta/environments.ts +5 -4
  360. package/src/helpers/beta/standard-schema.ts +99 -0
  361. package/src/internal/detect-platform.ts +1 -1
  362. package/src/internal/file-store.ts +550 -0
  363. package/src/internal/utils/values.ts +7 -0
  364. package/src/lib/BetaMessageStream.ts +1 -3
  365. package/src/lib/MessageStream.ts +1 -3
  366. package/src/lib/environments/poller.ts +47 -1
  367. package/src/lib/environments/worker.ts +419 -79
  368. package/src/lib/sessions/accumulate.ts +1 -3
  369. package/src/lib/standard-schema.ts +209 -0
  370. package/src/lib/tools/BetaToolRunner.ts +38 -6
  371. package/src/resources/beta/agents/agents.ts +435 -30
  372. package/src/resources/beta/agents/index.ts +17 -0
  373. package/src/resources/beta/beta.ts +52 -1
  374. package/src/resources/beta/environments/environments.ts +8 -1
  375. package/src/resources/beta/environments/work.ts +7 -0
  376. package/src/resources/beta/index.ts +18 -0
  377. package/src/resources/beta/memory-stores/memories.ts +6 -5
  378. package/src/resources/beta/memory-stores/memory-versions.ts +8 -5
  379. package/src/resources/beta/messages/messages.ts +51 -9
  380. package/src/resources/beta/organization/api-keys.ts +231 -0
  381. package/src/resources/beta/organization/external-keys.ts +362 -0
  382. package/src/resources/beta/organization/federation/federation.ts +71 -0
  383. package/src/resources/beta/organization/federation/index.ts +31 -0
  384. package/src/resources/beta/organization/federation/issuers.ts +486 -0
  385. package/src/resources/beta/organization/federation/rules/index.ts +23 -0
  386. package/src/resources/beta/organization/federation/rules/rules.ts +624 -0
  387. package/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
  388. package/src/resources/beta/organization/federation/rules.ts +3 -0
  389. package/src/resources/beta/organization/federation.ts +3 -0
  390. package/src/resources/beta/organization/index.ts +83 -0
  391. package/src/resources/beta/organization/invites.ts +207 -0
  392. package/src/resources/beta/organization/organization.ts +245 -0
  393. package/src/resources/beta/organization/rate-limits.ts +105 -0
  394. package/src/resources/beta/organization/service-accounts/index.ts +21 -0
  395. package/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
  396. package/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
  397. package/src/resources/beta/organization/service-accounts.ts +3 -0
  398. package/src/resources/beta/organization/users.ts +163 -0
  399. package/src/resources/beta/organization/workspaces/index.ts +43 -0
  400. package/src/resources/beta/organization/workspaces/members.ts +209 -0
  401. package/src/resources/beta/organization/workspaces/rate-limits.ts +114 -0
  402. package/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
  403. package/src/resources/beta/organization/workspaces/workspaces.ts +434 -0
  404. package/src/resources/beta/organization/workspaces.ts +3 -0
  405. package/src/resources/beta/organization.ts +3 -0
  406. package/src/resources/beta/sessions/threads/threads.ts +2 -1
  407. package/src/resources/messages/messages.ts +1 -1
  408. package/src/tools/agent-toolset/fs-util.ts +40 -24
  409. package/src/tools/agent-toolset/memories.ts +1017 -0
  410. package/src/tools/agent-toolset/node.browser.ts +69 -1
  411. package/src/tools/agent-toolset/node.ts +143 -57
  412. package/src/tools/agent-toolset/skills.ts +29 -9
  413. package/src/tools/agent-toolset/sync-interval.ts +30 -0
  414. package/src/version.ts +1 -1
  415. package/tools/agent-toolset/fs-util.d.mts +23 -10
  416. package/tools/agent-toolset/fs-util.d.mts.map +1 -1
  417. package/tools/agent-toolset/fs-util.d.ts +23 -10
  418. package/tools/agent-toolset/fs-util.d.ts.map +1 -1
  419. package/tools/agent-toolset/fs-util.js +40 -25
  420. package/tools/agent-toolset/fs-util.js.map +1 -1
  421. package/tools/agent-toolset/fs-util.mjs +38 -25
  422. package/tools/agent-toolset/fs-util.mjs.map +1 -1
  423. package/tools/agent-toolset/memories.d.mts +173 -0
  424. package/tools/agent-toolset/memories.d.mts.map +1 -0
  425. package/tools/agent-toolset/memories.d.ts +173 -0
  426. package/tools/agent-toolset/memories.d.ts.map +1 -0
  427. package/tools/agent-toolset/memories.js +902 -0
  428. package/tools/agent-toolset/memories.js.map +1 -0
  429. package/tools/agent-toolset/memories.mjs +895 -0
  430. package/tools/agent-toolset/memories.mjs.map +1 -0
  431. package/tools/agent-toolset/node.browser.d.mts +32 -1
  432. package/tools/agent-toolset/node.browser.d.mts.map +1 -1
  433. package/tools/agent-toolset/node.browser.d.ts +32 -1
  434. package/tools/agent-toolset/node.browser.d.ts.map +1 -1
  435. package/tools/agent-toolset/node.browser.js +59 -1
  436. package/tools/agent-toolset/node.browser.js.map +1 -1
  437. package/tools/agent-toolset/node.browser.mjs +54 -0
  438. package/tools/agent-toolset/node.browser.mjs.map +1 -1
  439. package/tools/agent-toolset/node.d.mts +56 -24
  440. package/tools/agent-toolset/node.d.mts.map +1 -1
  441. package/tools/agent-toolset/node.d.ts +56 -24
  442. package/tools/agent-toolset/node.d.ts.map +1 -1
  443. package/tools/agent-toolset/node.js +83 -44
  444. package/tools/agent-toolset/node.js.map +1 -1
  445. package/tools/agent-toolset/node.mjs +77 -44
  446. package/tools/agent-toolset/node.mjs.map +1 -1
  447. package/tools/agent-toolset/skills.d.mts +16 -7
  448. package/tools/agent-toolset/skills.d.mts.map +1 -1
  449. package/tools/agent-toolset/skills.d.ts +16 -7
  450. package/tools/agent-toolset/skills.d.ts.map +1 -1
  451. package/tools/agent-toolset/skills.js +27 -9
  452. package/tools/agent-toolset/skills.js.map +1 -1
  453. package/tools/agent-toolset/skills.mjs +27 -9
  454. package/tools/agent-toolset/skills.mjs.map +1 -1
  455. package/tools/agent-toolset/sync-interval.d.mts +19 -0
  456. package/tools/agent-toolset/sync-interval.d.mts.map +1 -0
  457. package/tools/agent-toolset/sync-interval.d.ts +19 -0
  458. package/tools/agent-toolset/sync-interval.d.ts.map +1 -0
  459. package/tools/agent-toolset/sync-interval.js +29 -0
  460. package/tools/agent-toolset/sync-interval.js.map +1 -0
  461. package/tools/agent-toolset/sync-interval.mjs +25 -0
  462. package/tools/agent-toolset/sync-interval.mjs.map +1 -0
  463. package/version.d.mts +1 -1
  464. package/version.d.ts +1 -1
  465. package/version.js +1 -1
  466. package/version.mjs +1 -1
@@ -0,0 +1,486 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import * as BetaAPI from '../../beta';
5
+ import { APIPromise } from '../../../../core/api-promise';
6
+ import { PageCursor, type PageCursorParams, PagePromise } from '../../../../core/pagination';
7
+ import { buildHeaders } from '../../../../internal/headers';
8
+ import { RequestOptions } from '../../../../internal/request-options';
9
+ import { path } from '../../../../internal/utils/path';
10
+
11
+ export class Issuers extends APIResource {
12
+ /**
13
+ * **Requires an OAuth access token with the `org:admin` scope**, from
14
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
15
+ * API keys are not accepted. See
16
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
17
+ *
18
+ * Register an OIDC issuer that Anthropic will trust for workload identity
19
+ * federation in your organization.
20
+ *
21
+ * The `jwks` field controls how the issuer's signing keys are obtained and takes
22
+ * one of three shapes selected by `type`: `discovery` (resolve keys through OIDC
23
+ * discovery), `explicit_url` (fetch keys from a fixed JWKS URL), or `inline`
24
+ * (provide a static key set). When `jwks.type` is `discovery` and no
25
+ * `discovery_base` is set, the issuer URL must be publicly reachable over HTTPS so
26
+ * Anthropic can fetch the discovery document; for `explicit_url` and `inline`
27
+ * modes the issuer URL is only matched as the JWT's `iss` claim and is not
28
+ * fetched.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const betaFederationIssuer =
33
+ * await client.beta.organization.federation.issuers.create({
34
+ * issuer_url: 'x',
35
+ * name: 'x',
36
+ * });
37
+ * ```
38
+ */
39
+ create(params: IssuerCreateParams, options?: RequestOptions): APIPromise<BetaFederationIssuer> {
40
+ const { betas, ...body } = params;
41
+ return this._client.post('/v1/organizations/federation_issuers?beta=true', {
42
+ body,
43
+ ...options,
44
+ headers: buildHeaders([
45
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
46
+ options?.headers,
47
+ ]),
48
+ });
49
+ }
50
+
51
+ /**
52
+ * **Requires an OAuth access token with the `org:admin` scope**, from
53
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
54
+ * API keys are not accepted. See
55
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
56
+ *
57
+ * Retrieve a federation issuer by its ID (`fdis_...`).
58
+ *
59
+ * @example
60
+ * ```ts
61
+ * const betaFederationIssuer =
62
+ * await client.beta.organization.federation.issuers.retrieve(
63
+ * 'federation_issuer_id',
64
+ * );
65
+ * ```
66
+ */
67
+ retrieve(
68
+ federationIssuerID: string,
69
+ params: IssuerRetrieveParams | null | undefined = {},
70
+ options?: RequestOptions,
71
+ ): APIPromise<BetaFederationIssuer> {
72
+ const { betas } = params ?? {};
73
+ return this._client.get(path`/v1/organizations/federation_issuers/${federationIssuerID}?beta=true`, {
74
+ ...options,
75
+ headers: buildHeaders([
76
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
77
+ options?.headers,
78
+ ]),
79
+ });
80
+ }
81
+
82
+ /**
83
+ * **Requires an OAuth access token with the `org:admin` scope**, from
84
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
85
+ * API keys are not accepted. See
86
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
87
+ *
88
+ * Partially update a federation issuer.
89
+ *
90
+ * Setting `jwks` replaces the full JWKS shape at once. Archived issuers cannot be
91
+ * updated; this returns 400. Create a new issuer instead.
92
+ *
93
+ * Updating an issuer that backs a rule with a scope outside `workspace:developer`
94
+ * or `workspace:inference` requires a Console session.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const betaFederationIssuer =
99
+ * await client.beta.organization.federation.issuers.update(
100
+ * 'federation_issuer_id',
101
+ * );
102
+ * ```
103
+ */
104
+ update(
105
+ federationIssuerID: string,
106
+ params: IssuerUpdateParams,
107
+ options?: RequestOptions,
108
+ ): APIPromise<BetaFederationIssuer> {
109
+ const { betas, ...body } = params;
110
+ return this._client.post(path`/v1/organizations/federation_issuers/${federationIssuerID}?beta=true`, {
111
+ body,
112
+ ...options,
113
+ headers: buildHeaders([
114
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
115
+ options?.headers,
116
+ ]),
117
+ });
118
+ }
119
+
120
+ /**
121
+ * **Requires an OAuth access token with the `org:admin` scope**, from
122
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
123
+ * API keys are not accepted. See
124
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
125
+ *
126
+ * List federation issuers in your organization.
127
+ *
128
+ * Archived issuers are excluded unless `include_archived=true`.
129
+ *
130
+ * @example
131
+ * ```ts
132
+ * // Automatically fetches more pages as needed.
133
+ * for await (const betaFederationIssuer of client.beta.organization.federation.issuers.list()) {
134
+ * // ...
135
+ * }
136
+ * ```
137
+ */
138
+ list(
139
+ params: IssuerListParams | null | undefined = {},
140
+ options?: RequestOptions,
141
+ ): PagePromise<BetaFederationIssuersPageCursor, BetaFederationIssuer> {
142
+ const { betas, ...query } = params ?? {};
143
+ return this._client.getAPIList(
144
+ '/v1/organizations/federation_issuers?beta=true',
145
+ PageCursor<BetaFederationIssuer>,
146
+ {
147
+ query,
148
+ ...options,
149
+ headers: buildHeaders([
150
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
151
+ options?.headers,
152
+ ]),
153
+ },
154
+ );
155
+ }
156
+
157
+ /**
158
+ * **Requires an OAuth access token with the `org:admin` scope**, from
159
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
160
+ * API keys are not accepted. See
161
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
162
+ *
163
+ * Archive a federation issuer.
164
+ *
165
+ * Idempotent; re-archiving returns the issuer with its original `archived_at`.
166
+ * Rejected with 400 if any live (non-archived) federation rule still references
167
+ * the issuer; archive those rules first (a rule's issuer cannot be changed), or
168
+ * recreate them against another issuer.
169
+ *
170
+ * @example
171
+ * ```ts
172
+ * const betaFederationIssuer =
173
+ * await client.beta.organization.federation.issuers.archive(
174
+ * 'federation_issuer_id',
175
+ * );
176
+ * ```
177
+ */
178
+ archive(
179
+ federationIssuerID: string,
180
+ params: IssuerArchiveParams | null | undefined = {},
181
+ options?: RequestOptions,
182
+ ): APIPromise<BetaFederationIssuer> {
183
+ const { betas } = params ?? {};
184
+ return this._client.post(
185
+ path`/v1/organizations/federation_issuers/${federationIssuerID}/archive?beta=true`,
186
+ {
187
+ ...options,
188
+ headers: buildHeaders([
189
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
190
+ options?.headers,
191
+ ]),
192
+ },
193
+ );
194
+ }
195
+ }
196
+
197
+ export type BetaFederationIssuersPageCursor = PageCursor<BetaFederationIssuer>;
198
+
199
+ /**
200
+ * Registered external OIDC identity provider.
201
+ *
202
+ * Records an external IdP the organization trusts for the RFC 7523 jwt-bearer
203
+ * grant. The `issuer_url` must match the JWT `iss` claim exactly.
204
+ */
205
+ export interface BetaFederationIssuer {
206
+ /**
207
+ * Tagged ID of the federation issuer.
208
+ */
209
+ id: string;
210
+
211
+ /**
212
+ * If set, all rules referencing this issuer reject token exchange.
213
+ */
214
+ archived_at: string | null;
215
+
216
+ /**
217
+ * Tagged ID (`user_`/`svac_`) of the actor that archived this issuer.
218
+ */
219
+ archived_by_actor_id: string | null;
220
+
221
+ /**
222
+ * Whether the jwt-bearer exchange enforces JTI single-use (replay protection) for
223
+ * tokens from this issuer. Applies only to assertions carrying a `jti` claim;
224
+ * tokens without one are accepted without single-use enforcement.
225
+ */
226
+ check_jti: boolean;
227
+
228
+ /**
229
+ * When this issuer was created.
230
+ */
231
+ created_at: string;
232
+
233
+ /**
234
+ * Tagged ID (`user_`/`svac_`) of the actor that created this issuer.
235
+ */
236
+ created_by_actor_id: string | null;
237
+
238
+ /**
239
+ * The `iss` claim value. Incoming JWTs must match exactly.
240
+ */
241
+ issuer_url: string;
242
+
243
+ /**
244
+ * How signing keys are obtained for signature verification.
245
+ */
246
+ jwks: BetaJWKSDiscovery | BetaJWKSExplicitURL | BetaJWKSInline;
247
+
248
+ /**
249
+ * If set, Anthropic's JWKS poller has paused polling for this issuer after
250
+ * repeated fetch failures. Re-enable by sending `jwks_polling_disabled: false` via
251
+ * the issuer update endpoint (POST) once the upstream JWKS endpoint is fixed. An
252
+ * OAuth caller cannot send this when the issuer backs a rule with any scope other
253
+ * than `workspace:developer` or `workspace:inference`; use a Console session.
254
+ */
255
+ jwks_polling_disabled_at: string | null;
256
+
257
+ /**
258
+ * Maximum allowed iat→exp spread for assertions from this issuer (1-176400
259
+ * seconds, i.e. up to 49h). Assertions must carry both `iat` and `exp`; a missing
260
+ * `iat` is rejected.
261
+ */
262
+ max_jwt_lifetime_seconds: number;
263
+
264
+ /**
265
+ * Admin-chosen slug identifier.
266
+ */
267
+ name: string;
268
+
269
+ /**
270
+ * Status of automatic JWKS polling for a federation issuer.
271
+ *
272
+ * Anthropic periodically fetches the issuer's signing keys in the background.
273
+ * These fields summarize the most recent fetches so the health of the JWKS
274
+ * endpoint can be monitored.
275
+ */
276
+ poll_status: BetaFederationIssuerPollStatus | null;
277
+
278
+ type: 'federation_issuer';
279
+
280
+ /**
281
+ * When this issuer was last updated.
282
+ */
283
+ updated_at: string;
284
+
285
+ /**
286
+ * Tagged ID (`user_`/`svac_`) of the actor that last updated this issuer.
287
+ */
288
+ updated_by_actor_id: string | null;
289
+ }
290
+
291
+ /**
292
+ * Status of automatic JWKS polling for a federation issuer.
293
+ *
294
+ * Anthropic periodically fetches the issuer's signing keys in the background.
295
+ * These fields summarize the most recent fetches so the health of the JWKS
296
+ * endpoint can be monitored.
297
+ */
298
+ export interface BetaFederationIssuerPollStatus {
299
+ /**
300
+ * Consecutive fetch failures since the last success.
301
+ */
302
+ consecutive_failures: number;
303
+
304
+ /**
305
+ * When the last successful fetch completed.
306
+ */
307
+ last_fetched_at: string | null;
308
+
309
+ /**
310
+ * When the next fetch is scheduled. Null if paused.
311
+ */
312
+ next_poll_at: string | null;
313
+ }
314
+
315
+ /**
316
+ * JWKS via the issuer's OIDC discovery document.
317
+ */
318
+ export interface BetaJWKSDiscovery {
319
+ type: 'discovery';
320
+
321
+ /**
322
+ * Optional custom CA (PEM) for TLS verification of the JWKS fetch.
323
+ */
324
+ ca_cert_pem?: string | null;
325
+
326
+ /**
327
+ * Set when the discovery URL differs from `issuer_url`.
328
+ */
329
+ discovery_base?: string | null;
330
+ }
331
+
332
+ /**
333
+ * JWKS fetched from a fixed endpoint.
334
+ */
335
+ export interface BetaJWKSExplicitURL {
336
+ type: 'explicit_url';
337
+
338
+ /**
339
+ * JWKS endpoint.
340
+ */
341
+ url: string;
342
+
343
+ /**
344
+ * Optional custom CA (PEM) for TLS verification of the JWKS fetch.
345
+ */
346
+ ca_cert_pem?: string | null;
347
+ }
348
+
349
+ /**
350
+ * JWKS supplied directly; no network fetch.
351
+ */
352
+ export interface BetaJWKSInline {
353
+ /**
354
+ * Inline JWK objects.
355
+ */
356
+ keys: Array<{ [key: string]: unknown }>;
357
+
358
+ type: 'inline';
359
+ }
360
+
361
+ export interface IssuerCreateParams {
362
+ /**
363
+ * Body param: The `iss` claim value to match against.
364
+ */
365
+ issuer_url: string;
366
+
367
+ /**
368
+ * Body param: Slug identifier (lowercase, digits, hyphens). Unique within the
369
+ * organization; a duplicate name returns 409.
370
+ */
371
+ name: string;
372
+
373
+ /**
374
+ * Body param: Whether the jwt-bearer exchange enforces JTI single-use (replay
375
+ * protection) for tokens from this issuer. Defaults to true. Applies only to
376
+ * assertions carrying a `jti` claim; tokens without one are accepted without
377
+ * single-use enforcement.
378
+ */
379
+ check_jti?: boolean | null;
380
+
381
+ /**
382
+ * Body param: How signing keys are obtained. Defaults to OIDC discovery.
383
+ */
384
+ jwks?: BetaJWKSDiscovery | BetaJWKSExplicitURL | BetaJWKSInline;
385
+
386
+ /**
387
+ * Body param: Maximum allowed iat→exp spread for assertions from this issuer
388
+ * (1-176400 seconds, i.e. up to 49h). Defaults to 3600 (1h). Assertions must carry
389
+ * both `iat` and `exp`; a missing `iat` is rejected.
390
+ */
391
+ max_jwt_lifetime_seconds?: number | null;
392
+
393
+ /**
394
+ * Header param: Optional header to specify the beta version(s) you want to use.
395
+ */
396
+ betas?: Array<BetaAPI.AnthropicBeta>;
397
+ }
398
+
399
+ export interface IssuerRetrieveParams {
400
+ /**
401
+ * Optional header to specify the beta version(s) you want to use.
402
+ */
403
+ betas?: Array<BetaAPI.AnthropicBeta>;
404
+ }
405
+
406
+ export interface IssuerUpdateParams {
407
+ /**
408
+ * Body param: Whether the jwt-bearer exchange enforces JTI single-use (replay
409
+ * protection) for tokens from this issuer. Applies only to assertions carrying a
410
+ * `jti` claim; tokens without one are accepted without single-use enforcement.
411
+ */
412
+ check_jti?: boolean | null;
413
+
414
+ /**
415
+ * Body param: Replaces the `iss` claim value to match against. For discovery-mode
416
+ * issuers without a `discovery_base`, this is also the URL Anthropic fetches the
417
+ * OIDC discovery document and signing keys from, so changing it repoints the JWKS
418
+ * source. Changing the issuer URL to a well-known shared platform is rejected
419
+ * while any live rule under this issuer would not constrain tenant identity.
420
+ */
421
+ issuer_url?: string | null;
422
+
423
+ /**
424
+ * Body param: Replaces the entire JWKS configuration.
425
+ */
426
+ jwks?: BetaJWKSDiscovery | BetaJWKSExplicitURL | BetaJWKSInline | null;
427
+
428
+ /**
429
+ * Body param: Only `false` is accepted, to re-enable polling after the system
430
+ * pauses it. Polling is paused automatically; sending `true` is rejected.
431
+ */
432
+ jwks_polling_disabled?: boolean | null;
433
+
434
+ /**
435
+ * Body param: Maximum allowed iat→exp spread for assertions from this issuer
436
+ * (1-176400 seconds, i.e. up to 49h). Assertions must carry both `iat` and `exp`;
437
+ * a missing `iat` is rejected.
438
+ */
439
+ max_jwt_lifetime_seconds?: number | null;
440
+
441
+ /**
442
+ * Body param: Replaces the slug identifier (lowercase, digits, hyphens). Unique
443
+ * within the organization; a duplicate name returns 409.
444
+ */
445
+ name?: string | null;
446
+
447
+ /**
448
+ * Header param: Optional header to specify the beta version(s) you want to use.
449
+ */
450
+ betas?: Array<BetaAPI.AnthropicBeta>;
451
+ }
452
+
453
+ export interface IssuerListParams extends PageCursorParams {
454
+ /**
455
+ * Query param: Include archived resources. Defaults to false.
456
+ */
457
+ include_archived?: boolean;
458
+
459
+ /**
460
+ * Header param: Optional header to specify the beta version(s) you want to use.
461
+ */
462
+ betas?: Array<BetaAPI.AnthropicBeta>;
463
+ }
464
+
465
+ export interface IssuerArchiveParams {
466
+ /**
467
+ * Optional header to specify the beta version(s) you want to use.
468
+ */
469
+ betas?: Array<BetaAPI.AnthropicBeta>;
470
+ }
471
+
472
+ export declare namespace Issuers {
473
+ export {
474
+ type BetaFederationIssuer as BetaFederationIssuer,
475
+ type BetaFederationIssuerPollStatus as BetaFederationIssuerPollStatus,
476
+ type BetaJWKSDiscovery as BetaJWKSDiscovery,
477
+ type BetaJWKSExplicitURL as BetaJWKSExplicitURL,
478
+ type BetaJWKSInline as BetaJWKSInline,
479
+ type BetaFederationIssuersPageCursor as BetaFederationIssuersPageCursor,
480
+ type IssuerCreateParams as IssuerCreateParams,
481
+ type IssuerRetrieveParams as IssuerRetrieveParams,
482
+ type IssuerUpdateParams as IssuerUpdateParams,
483
+ type IssuerListParams as IssuerListParams,
484
+ type IssuerArchiveParams as IssuerArchiveParams,
485
+ };
486
+ }
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Rules,
5
+ type BetaFederationRule,
6
+ type BetaFederationRuleMatch,
7
+ type BetaFederationRuleWorkspace,
8
+ type BetaServiceAccountTarget,
9
+ type RuleCreateParams,
10
+ type RuleRetrieveParams,
11
+ type RuleUpdateParams,
12
+ type RuleListParams,
13
+ type RuleArchiveParams,
14
+ type BetaFederationRuleWorkspacesPageCursor,
15
+ type BetaFederationRulesPageCursor,
16
+ } from './rules';
17
+ export {
18
+ Workspaces,
19
+ type WorkspaceRemoveResponse,
20
+ type WorkspaceListParams,
21
+ type WorkspaceAddParams,
22
+ type WorkspaceRemoveParams,
23
+ } from './workspaces';