@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,196 @@
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 * as RulesAPI from './rules';
6
+ import { BetaFederationRuleWorkspacesPageCursor } from './rules';
7
+ import { APIPromise } from '../../../../../core/api-promise';
8
+ import { PageCursor, type PageCursorParams, PagePromise } from '../../../../../core/pagination';
9
+ import { buildHeaders } from '../../../../../internal/headers';
10
+ import { RequestOptions } from '../../../../../internal/request-options';
11
+ import { path } from '../../../../../internal/utils/path';
12
+
13
+ export class Workspaces extends APIResource {
14
+ /**
15
+ * **Requires an OAuth access token with the `org:admin` scope**, from
16
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
17
+ * API keys are not accepted. See
18
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
19
+ *
20
+ * List workspaces where this federation rule is enabled.
21
+ *
22
+ * Returns all workspace enablements in a single response; the `limit` and `page`
23
+ * parameters are accepted but have no effect, and `next_page` is always `null`.
24
+ * Returns explicit per-workspace enablements only; for rules with
25
+ * `applies_to_all_workspaces` or a legacy single `workspace_id`, check those
26
+ * fields on the rule itself.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * // Automatically fetches more pages as needed.
31
+ * for await (const betaFederationRuleWorkspace of client.beta.organization.federation.rules.workspaces.list(
32
+ * 'federation_rule_id',
33
+ * )) {
34
+ * // ...
35
+ * }
36
+ * ```
37
+ */
38
+ list(
39
+ federationRuleID: string,
40
+ params: WorkspaceListParams | null | undefined = {},
41
+ options?: RequestOptions,
42
+ ): PagePromise<BetaFederationRuleWorkspacesPageCursor, RulesAPI.BetaFederationRuleWorkspace> {
43
+ const { betas, ...query } = params ?? {};
44
+ return this._client.getAPIList(
45
+ path`/v1/organizations/federation_rules/${federationRuleID}/workspaces?beta=true`,
46
+ PageCursor<RulesAPI.BetaFederationRuleWorkspace>,
47
+ {
48
+ query,
49
+ ...options,
50
+ headers: buildHeaders([
51
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
52
+ options?.headers,
53
+ ]),
54
+ },
55
+ );
56
+ }
57
+
58
+ /**
59
+ * **Requires an OAuth access token with the `org:admin` scope**, from
60
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
61
+ * API keys are not accepted. See
62
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
63
+ *
64
+ * Enable a federation rule for a workspace.
65
+ *
66
+ * Idempotent; re-enabling returns the existing enablement. The rule and workspace
67
+ * must both belong to your organization. Membership of the rule's target service
68
+ * account in this workspace is not checked at enablement: token exchange into this
69
+ * workspace is rejected unless the target is a member (it is implicitly a member
70
+ * of the default workspace). Archived rules are rejected with 400. OAuth callers
71
+ * may only manage rules whose `oauth_scope` is `workspace:developer` or
72
+ * `workspace:inference`; other scopes require a Console session.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const betaFederationRuleWorkspace =
77
+ * await client.beta.organization.federation.rules.workspaces.add(
78
+ * 'federation_rule_id',
79
+ * { workspace_id: 'workspace_id' },
80
+ * );
81
+ * ```
82
+ */
83
+ add(
84
+ federationRuleID: string,
85
+ params: WorkspaceAddParams,
86
+ options?: RequestOptions,
87
+ ): APIPromise<RulesAPI.BetaFederationRuleWorkspace> {
88
+ const { betas, ...body } = params;
89
+ return this._client.post(
90
+ path`/v1/organizations/federation_rules/${federationRuleID}/workspaces?beta=true`,
91
+ {
92
+ body,
93
+ ...options,
94
+ headers: buildHeaders([
95
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
96
+ options?.headers,
97
+ ]),
98
+ },
99
+ );
100
+ }
101
+
102
+ /**
103
+ * **Requires an OAuth access token with the `org:admin` scope**, from
104
+ * `ant auth login --scope org:admin` or a workload identity federation rule; Admin
105
+ * API keys are not accepted. See
106
+ * [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
107
+ *
108
+ * Disable a federation rule for a workspace.
109
+ *
110
+ * Idempotent; succeeds even if the enablement was already removed. OAuth callers
111
+ * may only manage rules whose `oauth_scope` is `workspace:developer` or
112
+ * `workspace:inference`; other scopes require a Console session.
113
+ *
114
+ * @example
115
+ * ```ts
116
+ * const workspace =
117
+ * await client.beta.organization.federation.rules.workspaces.remove(
118
+ * 'workspace_id',
119
+ * { federation_rule_id: 'federation_rule_id' },
120
+ * );
121
+ * ```
122
+ */
123
+ remove(
124
+ workspaceID: string,
125
+ params: WorkspaceRemoveParams,
126
+ options?: RequestOptions,
127
+ ): APIPromise<WorkspaceRemoveResponse> {
128
+ const { federation_rule_id, betas } = params;
129
+ return this._client.delete(
130
+ path`/v1/organizations/federation_rules/${federation_rule_id}/workspaces/${workspaceID}?beta=true`,
131
+ {
132
+ ...options,
133
+ headers: buildHeaders([
134
+ { ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
135
+ options?.headers,
136
+ ]),
137
+ },
138
+ );
139
+ }
140
+ }
141
+
142
+ export interface WorkspaceRemoveResponse {
143
+ /**
144
+ * Tagged ID of the federation rule.
145
+ */
146
+ federation_rule_id: string;
147
+
148
+ type: 'federation_rule_workspace_deleted';
149
+
150
+ /**
151
+ * Tagged ID of the workspace named in the delete request. Removal is idempotent.
152
+ */
153
+ workspace_id: string;
154
+ }
155
+
156
+ export interface WorkspaceListParams extends PageCursorParams {
157
+ /**
158
+ * Header param: Optional header to specify the beta version(s) you want to use.
159
+ */
160
+ betas?: Array<BetaAPI.AnthropicBeta>;
161
+ }
162
+
163
+ export interface WorkspaceAddParams {
164
+ /**
165
+ * Body param: Tagged ID of the workspace to enable this rule for.
166
+ */
167
+ workspace_id: string;
168
+
169
+ /**
170
+ * Header param: Optional header to specify the beta version(s) you want to use.
171
+ */
172
+ betas?: Array<BetaAPI.AnthropicBeta>;
173
+ }
174
+
175
+ export interface WorkspaceRemoveParams {
176
+ /**
177
+ * Path param: ID of the federation rule.
178
+ */
179
+ federation_rule_id: string;
180
+
181
+ /**
182
+ * Header param: Optional header to specify the beta version(s) you want to use.
183
+ */
184
+ betas?: Array<BetaAPI.AnthropicBeta>;
185
+ }
186
+
187
+ export declare namespace Workspaces {
188
+ export {
189
+ type WorkspaceRemoveResponse as WorkspaceRemoveResponse,
190
+ type WorkspaceListParams as WorkspaceListParams,
191
+ type WorkspaceAddParams as WorkspaceAddParams,
192
+ type WorkspaceRemoveParams as WorkspaceRemoveParams,
193
+ };
194
+ }
195
+
196
+ export { type BetaFederationRuleWorkspacesPageCursor };
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './rules/index';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './federation/index';
@@ -0,0 +1,83 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ APIKeys,
5
+ type BetaAPIKey,
6
+ type BetaAPIKeyCreatedBy,
7
+ type BetaAPIKeyOrganizationScope,
8
+ type BetaAPIKeyServiceAccountActor,
9
+ type BetaAPIKeyUserActor,
10
+ type BetaAPIKeyWorkspaceScope,
11
+ type APIKeyUpdateParams,
12
+ type APIKeyListParams,
13
+ type BetaAPIKeysPage,
14
+ } from './api-keys';
15
+ export {
16
+ ExternalKeys,
17
+ type BetaAWSExternalKeyConfig,
18
+ type BetaAzureExternalKeyConfig,
19
+ type BetaAzureExternalKeyConfigParam,
20
+ type BetaExternalKey,
21
+ type BetaExternalKeyAttachedAttachment,
22
+ type BetaExternalKeyUnattachedAttachment,
23
+ type BetaGCPExternalKeyConfig,
24
+ type ExternalKeyDeleteResponse,
25
+ type ExternalKeyValidateResponse,
26
+ type ExternalKeyCreateParams,
27
+ type ExternalKeyUpdateParams,
28
+ type ExternalKeyListParams,
29
+ type BetaExternalKeysPageCursor,
30
+ } from './external-keys';
31
+ export { Federation } from './federation/index';
32
+ export {
33
+ Invites,
34
+ type BetaOrganizationInvite,
35
+ type InviteDeleteResponse,
36
+ type InviteCreateParams,
37
+ type InviteListParams,
38
+ type BetaOrganizationInvitesPage,
39
+ } from './invites';
40
+ export { Organization, type BetaOrganization, type BetaOrganizationRole } from './organization';
41
+ export {
42
+ RateLimits,
43
+ type BetaOrganizationRateLimit,
44
+ type BetaOrganizationRateLimitValue,
45
+ type RateLimitListParams,
46
+ type BetaOrganizationRateLimitsPageCursor,
47
+ } from './rate-limits';
48
+ export {
49
+ ServiceAccounts,
50
+ type BetaServiceAccount,
51
+ type BetaServiceAccountWorkspaceMember,
52
+ type ServiceAccountCreateParams,
53
+ type ServiceAccountRetrieveParams,
54
+ type ServiceAccountUpdateParams,
55
+ type ServiceAccountListParams,
56
+ type ServiceAccountArchiveParams,
57
+ type BetaServiceAccountWorkspaceMembersPageCursor,
58
+ type BetaServiceAccountsPageCursor,
59
+ } from './service-accounts/index';
60
+ export {
61
+ Users,
62
+ type BetaOrganizationUser,
63
+ type UserRemoveResponse,
64
+ type UserUpdateParams,
65
+ type UserListParams,
66
+ type BetaOrganizationUsersPage,
67
+ } from './users';
68
+ export {
69
+ Workspaces,
70
+ type BetaAllowedInferenceGeo,
71
+ type BetaDataResidency,
72
+ type BetaDataResidencyCreateConfig,
73
+ type BetaDataResidencyUpdateConfig,
74
+ type BetaNoBillingWorkspaceRole,
75
+ type BetaWorkspace,
76
+ type BetaWorkspaceMember,
77
+ type BetaWorkspaceRole,
78
+ type WorkspaceCreateParams,
79
+ type WorkspaceUpdateParams,
80
+ type WorkspaceListParams,
81
+ type BetaWorkspaceMembersPage,
82
+ type BetaWorkspacesPage,
83
+ } from './workspaces/index';
@@ -0,0 +1,207 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as OrganizationAPI from './organization';
5
+ import { APIPromise } from '../../../core/api-promise';
6
+ import { Page, type PageParams, PagePromise } from '../../../core/pagination';
7
+ import { RequestOptions } from '../../../internal/request-options';
8
+ import { path } from '../../../internal/utils/path';
9
+
10
+ export class Invites extends APIResource {
11
+ /**
12
+ * Invite a user to join the organization by email.
13
+ *
14
+ * On plans that draw members from a finite pool of purchased seats, the invite
15
+ * automatically consumes a seat from the lowest tier with availability; there is
16
+ * no seat-tier parameter. When no seat is free the request fails with a 400 error
17
+ * rather than purchasing a seat.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const betaOrganizationInvite =
22
+ * await client.beta.organization.invites.create({
23
+ * email: 'user@emaildomain.com',
24
+ * role: 'user',
25
+ * });
26
+ * ```
27
+ */
28
+ create(body: InviteCreateParams, options?: RequestOptions): APIPromise<BetaOrganizationInvite> {
29
+ return this._client.post('/v1/organizations/invites?beta=true', { body, ...options });
30
+ }
31
+
32
+ /**
33
+ * Retrieve an invite by ID.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const betaOrganizationInvite =
38
+ * await client.beta.organization.invites.retrieve(
39
+ * 'invite_id',
40
+ * );
41
+ * ```
42
+ */
43
+ retrieve(inviteID: string, options?: RequestOptions): APIPromise<BetaOrganizationInvite> {
44
+ return this._client.get(path`/v1/organizations/invites/${inviteID}?beta=true`, options);
45
+ }
46
+
47
+ /**
48
+ * List the organization's invites.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * // Automatically fetches more pages as needed.
53
+ * for await (const betaOrganizationInvite of client.beta.organization.invites.list()) {
54
+ * // ...
55
+ * }
56
+ * ```
57
+ */
58
+ list(
59
+ query: InviteListParams | null | undefined = {},
60
+ options?: RequestOptions,
61
+ ): PagePromise<BetaOrganizationInvitesPage, BetaOrganizationInvite> {
62
+ return this._client.getAPIList('/v1/organizations/invites?beta=true', Page<BetaOrganizationInvite>, {
63
+ query,
64
+ ...options,
65
+ });
66
+ }
67
+
68
+ /**
69
+ * Delete a pending invite.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const invite =
74
+ * await client.beta.organization.invites.delete(
75
+ * 'invite_id',
76
+ * );
77
+ * ```
78
+ */
79
+ delete(inviteID: string, options?: RequestOptions): APIPromise<InviteDeleteResponse> {
80
+ return this._client.delete(path`/v1/organizations/invites/${inviteID}?beta=true`, options);
81
+ }
82
+ }
83
+
84
+ export type BetaOrganizationInvitesPage = Page<BetaOrganizationInvite>;
85
+
86
+ export interface BetaOrganizationInvite {
87
+ /**
88
+ * ID of the Invite.
89
+ */
90
+ id: string;
91
+
92
+ /**
93
+ * RFC 3339 datetime string indicating when the Invite was accepted, or null.
94
+ */
95
+ accepted_at: string | null;
96
+
97
+ /**
98
+ * Email of the User being invited.
99
+ */
100
+ email: string;
101
+
102
+ /**
103
+ * RFC 3339 datetime string indicating when the Invite expires.
104
+ */
105
+ expires_at: string;
106
+
107
+ /**
108
+ * RFC 3339 datetime string indicating when the Invite was created.
109
+ */
110
+ invited_at: string;
111
+
112
+ /**
113
+ * RBAC group IDs recorded on the Invite (Claude Enterprise organizations), to be
114
+ * assigned to the User when the Invite is accepted. `[]` when none.
115
+ */
116
+ rbac_group_ids: Array<string>;
117
+
118
+ /**
119
+ * Organization role of the User.
120
+ */
121
+ role: OrganizationAPI.BetaOrganizationRole;
122
+
123
+ /**
124
+ * Status of the Invite.
125
+ */
126
+ status: 'accepted' | 'deleted' | 'expired' | 'pending';
127
+
128
+ /**
129
+ * Object type.
130
+ *
131
+ * For Invites, this is always `"invite"`.
132
+ */
133
+ type: 'invite';
134
+ }
135
+
136
+ export interface InviteDeleteResponse {
137
+ /**
138
+ * ID of the Invite.
139
+ */
140
+ id: string;
141
+
142
+ /**
143
+ * Deleted object type.
144
+ *
145
+ * For Invites, this is always `"invite_deleted"`.
146
+ */
147
+ type: 'invite_deleted';
148
+ }
149
+
150
+ export interface InviteCreateParams {
151
+ /**
152
+ * Email of the User.
153
+ */
154
+ email: string;
155
+
156
+ /**
157
+ * Role for the invited User.
158
+ *
159
+ * The accepted values depend on the organization type. Console and API
160
+ * organizations accept `user`, `developer`, `billing`, and `claude_code_user`;
161
+ * `admin` cannot be assigned through the API. Claude Enterprise organizations
162
+ * accept `user` and `managed`.
163
+ */
164
+ role: 'billing' | 'claude_code_user' | 'developer' | 'managed' | 'user';
165
+
166
+ /**
167
+ * RBAC group IDs to assign to the User when the Invite is accepted. A non-empty
168
+ * array is accepted only for a Claude Enterprise organization with RBAC groups,
169
+ * and requires the key to carry the `write:rbac_groups` scope.
170
+ */
171
+ rbac_group_ids?: Array<string>;
172
+ }
173
+
174
+ export interface InviteListParams extends PageParams {
175
+ /**
176
+ * Filter by the email address the Invite was sent to. Matches the same way as the
177
+ * Users list's `email` filter (normalized, case-insensitive).
178
+ */
179
+ email?: string;
180
+
181
+ /**
182
+ * Filter to items whose `role` equals one of the supplied values. Repeatable;
183
+ * values are OR'ed together.
184
+ *
185
+ * Accepted values depend on the organization type: Console and API organizations
186
+ * accept `user`, `developer`, `billing`, `admin`, and `claude_code_user`; Claude
187
+ * Enterprise organizations accept `user`, `owner`, `primary_owner`,
188
+ * `membership_admin`, and `managed`.
189
+ */
190
+ roles?: Array<string>;
191
+
192
+ /**
193
+ * Filter by Invite status. Repeatable; values are OR'ed together. Omit to return
194
+ * `pending`, `accepted`, and `expired` Invites alike.
195
+ */
196
+ statuses?: Array<'accepted' | 'expired' | 'pending'>;
197
+ }
198
+
199
+ export declare namespace Invites {
200
+ export {
201
+ type BetaOrganizationInvite as BetaOrganizationInvite,
202
+ type InviteDeleteResponse as InviteDeleteResponse,
203
+ type BetaOrganizationInvitesPage as BetaOrganizationInvitesPage,
204
+ type InviteCreateParams as InviteCreateParams,
205
+ type InviteListParams as InviteListParams,
206
+ };
207
+ }