@anthropic-ai/sdk 0.120.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.
- package/CHANGELOG.md +33 -0
- package/helpers/beta/standard-schema.d.mts +45 -0
- package/helpers/beta/standard-schema.d.mts.map +1 -0
- package/helpers/beta/standard-schema.d.ts +45 -0
- package/helpers/beta/standard-schema.d.ts.map +1 -0
- package/helpers/beta/standard-schema.js +58 -0
- package/helpers/beta/standard-schema.js.map +1 -0
- package/helpers/beta/standard-schema.mjs +54 -0
- package/helpers/beta/standard-schema.mjs.map +1 -0
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/utils/values.d.mts +6 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +6 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +7 -0
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -0
- package/internal/utils/values.mjs.map +1 -1
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +3 -4
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +1 -2
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.d.mts.map +1 -1
- package/lib/MessageStream.d.ts.map +1 -1
- package/lib/MessageStream.js +3 -4
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +1 -2
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/sessions/accumulate.d.mts.map +1 -1
- package/lib/sessions/accumulate.d.ts.map +1 -1
- package/lib/sessions/accumulate.js +3 -4
- package/lib/sessions/accumulate.js.map +1 -1
- package/lib/sessions/accumulate.mjs +1 -2
- package/lib/sessions/accumulate.mjs.map +1 -1
- package/lib/standard-schema.d.mts +131 -0
- package/lib/standard-schema.d.mts.map +1 -0
- package/lib/standard-schema.d.ts +131 -0
- package/lib/standard-schema.d.ts.map +1 -0
- package/lib/standard-schema.js +45 -0
- package/lib/standard-schema.js.map +1 -0
- package/lib/standard-schema.mjs +41 -0
- package/lib/standard-schema.mjs.map +1 -0
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +35 -6
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +35 -6
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/package.json +2 -11
- package/resources/beta/beta.d.mts +5 -1
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +5 -1
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +4 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +4 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/environments/environments.d.mts +8 -1
- package/resources/beta/environments/environments.d.mts.map +1 -1
- package/resources/beta/environments/environments.d.ts +8 -1
- package/resources/beta/environments/environments.d.ts.map +1 -1
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -0
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -0
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +11 -9
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -0
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memories.d.mts +6 -5
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +6 -5
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +8 -5
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +8 -5
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/messages/messages.d.mts +50 -8
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +50 -8
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/organization/api-keys.d.mts +177 -0
- package/resources/beta/organization/api-keys.d.mts.map +1 -0
- package/resources/beta/organization/api-keys.d.ts +177 -0
- package/resources/beta/organization/api-keys.d.ts.map +1 -0
- package/resources/beta/organization/api-keys.js +56 -0
- package/resources/beta/organization/api-keys.js.map +1 -0
- package/resources/beta/organization/api-keys.mjs +52 -0
- package/resources/beta/organization/api-keys.mjs.map +1 -0
- package/resources/beta/organization/external-keys.d.mts +269 -0
- package/resources/beta/organization/external-keys.d.mts.map +1 -0
- package/resources/beta/organization/external-keys.d.ts +269 -0
- package/resources/beta/organization/external-keys.d.ts.map +1 -0
- package/resources/beta/organization/external-keys.js +119 -0
- package/resources/beta/organization/external-keys.js.map +1 -0
- package/resources/beta/organization/external-keys.mjs +115 -0
- package/resources/beta/organization/external-keys.mjs.map +1 -0
- package/resources/beta/organization/federation/federation.d.mts +14 -0
- package/resources/beta/organization/federation/federation.d.mts.map +1 -0
- package/resources/beta/organization/federation/federation.d.ts +14 -0
- package/resources/beta/organization/federation/federation.d.ts.map +1 -0
- package/resources/beta/organization/federation/federation.js +21 -0
- package/resources/beta/organization/federation/federation.js.map +1 -0
- package/resources/beta/organization/federation/federation.mjs +16 -0
- package/resources/beta/organization/federation/federation.mjs.map +1 -0
- package/resources/beta/organization/federation/index.d.mts +4 -0
- package/resources/beta/organization/federation/index.d.mts.map +1 -0
- package/resources/beta/organization/federation/index.d.ts +4 -0
- package/resources/beta/organization/federation/index.d.ts.map +1 -0
- package/resources/beta/organization/federation/index.js +11 -0
- package/resources/beta/organization/federation/index.js.map +1 -0
- package/resources/beta/organization/federation/index.mjs +5 -0
- package/resources/beta/organization/federation/index.mjs.map +1 -0
- package/resources/beta/organization/federation/issuers.d.mts +353 -0
- package/resources/beta/organization/federation/issuers.d.mts.map +1 -0
- package/resources/beta/organization/federation/issuers.d.ts +353 -0
- package/resources/beta/organization/federation/issuers.d.ts.map +1 -0
- package/resources/beta/organization/federation/issuers.js +169 -0
- package/resources/beta/organization/federation/issuers.js.map +1 -0
- package/resources/beta/organization/federation/issuers.mjs +165 -0
- package/resources/beta/organization/federation/issuers.mjs.map +1 -0
- package/resources/beta/organization/federation/rules/index.d.mts +3 -0
- package/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules/index.d.ts +3 -0
- package/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules/index.js +9 -0
- package/resources/beta/organization/federation/rules/index.js.map +1 -0
- package/resources/beta/organization/federation/rules/index.mjs +4 -0
- package/resources/beta/organization/federation/rules/index.mjs.map +1 -0
- package/resources/beta/organization/federation/rules/rules.d.mts +468 -0
- package/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules/rules.d.ts +468 -0
- package/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules/rules.js +198 -0
- package/resources/beta/organization/federation/rules/rules.js.map +1 -0
- package/resources/beta/organization/federation/rules/rules.mjs +193 -0
- package/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
- package/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
- package/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.js +114 -0
- package/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
- package/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
- package/resources/beta/organization/federation/rules.d.mts +2 -0
- package/resources/beta/organization/federation/rules.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules.d.ts +2 -0
- package/resources/beta/organization/federation/rules.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules.js +6 -0
- package/resources/beta/organization/federation/rules.js.map +1 -0
- package/resources/beta/organization/federation/rules.mjs +3 -0
- package/resources/beta/organization/federation/rules.mjs.map +1 -0
- package/resources/beta/organization/federation.d.mts +2 -0
- package/resources/beta/organization/federation.d.mts.map +1 -0
- package/resources/beta/organization/federation.d.ts +2 -0
- package/resources/beta/organization/federation.d.ts.map +1 -0
- package/resources/beta/organization/federation.js +6 -0
- package/resources/beta/organization/federation.js.map +1 -0
- package/resources/beta/organization/federation.mjs +3 -0
- package/resources/beta/organization/federation.mjs.map +1 -0
- package/resources/beta/organization/index.d.mts +10 -0
- package/resources/beta/organization/index.d.mts.map +1 -0
- package/resources/beta/organization/index.d.ts +10 -0
- package/resources/beta/organization/index.d.ts.map +1 -0
- package/resources/beta/organization/index.js +23 -0
- package/resources/beta/organization/index.js.map +1 -0
- package/resources/beta/organization/index.mjs +11 -0
- package/resources/beta/organization/index.mjs.map +1 -0
- package/resources/beta/organization/invites.d.mts +162 -0
- package/resources/beta/organization/invites.d.mts.map +1 -0
- package/resources/beta/organization/invites.d.ts +162 -0
- package/resources/beta/organization/invites.d.ts.map +1 -0
- package/resources/beta/organization/invites.js +76 -0
- package/resources/beta/organization/invites.js.map +1 -0
- package/resources/beta/organization/invites.mjs +72 -0
- package/resources/beta/organization/invites.mjs.map +1 -0
- package/resources/beta/organization/organization.d.mts +69 -0
- package/resources/beta/organization/organization.d.mts.map +1 -0
- package/resources/beta/organization/organization.d.ts +69 -0
- package/resources/beta/organization/organization.d.ts.map +1 -0
- package/resources/beta/organization/organization.js +58 -0
- package/resources/beta/organization/organization.js.map +1 -0
- package/resources/beta/organization/organization.mjs +53 -0
- package/resources/beta/organization/organization.mjs.map +1 -0
- package/resources/beta/organization/rate-limits.d.mts +78 -0
- package/resources/beta/organization/rate-limits.d.mts.map +1 -0
- package/resources/beta/organization/rate-limits.d.ts +78 -0
- package/resources/beta/organization/rate-limits.d.ts.map +1 -0
- package/resources/beta/organization/rate-limits.js +32 -0
- package/resources/beta/organization/rate-limits.js.map +1 -0
- package/resources/beta/organization/rate-limits.mjs +28 -0
- package/resources/beta/organization/rate-limits.mjs.map +1 -0
- package/resources/beta/organization/service-accounts/index.d.mts +3 -0
- package/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts/index.d.ts +3 -0
- package/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts/index.js +9 -0
- package/resources/beta/organization/service-accounts/index.js.map +1 -0
- package/resources/beta/organization/service-accounts/index.mjs +4 -0
- package/resources/beta/organization/service-accounts/index.mjs.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.js +174 -0
- package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
- package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
- package/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
- package/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.js +125 -0
- package/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
- package/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
- package/resources/beta/organization/service-accounts.d.mts +2 -0
- package/resources/beta/organization/service-accounts.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts.d.ts +2 -0
- package/resources/beta/organization/service-accounts.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts.js +6 -0
- package/resources/beta/organization/service-accounts.js.map +1 -0
- package/resources/beta/organization/service-accounts.mjs +3 -0
- package/resources/beta/organization/service-accounts.mjs.map +1 -0
- package/resources/beta/organization/users.d.mts +124 -0
- package/resources/beta/organization/users.d.mts.map +1 -0
- package/resources/beta/organization/users.d.ts +124 -0
- package/resources/beta/organization/users.d.ts.map +1 -0
- package/resources/beta/organization/users.js +67 -0
- package/resources/beta/organization/users.js.map +1 -0
- package/resources/beta/organization/users.mjs +63 -0
- package/resources/beta/organization/users.mjs.map +1 -0
- package/resources/beta/organization/workspaces/index.d.mts +5 -0
- package/resources/beta/organization/workspaces/index.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/index.d.ts +5 -0
- package/resources/beta/organization/workspaces/index.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/index.js +13 -0
- package/resources/beta/organization/workspaces/index.js.map +1 -0
- package/resources/beta/organization/workspaces/index.mjs +6 -0
- package/resources/beta/organization/workspaces/index.mjs.map +1 -0
- package/resources/beta/organization/workspaces/members.d.mts +135 -0
- package/resources/beta/organization/workspaces/members.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/members.d.ts +135 -0
- package/resources/beta/organization/workspaces/members.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/members.js +102 -0
- package/resources/beta/organization/workspaces/members.js.map +1 -0
- package/resources/beta/organization/workspaces/members.mjs +98 -0
- package/resources/beta/organization/workspaces/members.mjs.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.d.mts +84 -0
- package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.d.ts +84 -0
- package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.js +35 -0
- package/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.mjs +31 -0
- package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
- package/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
- package/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.js +189 -0
- package/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
- package/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.d.mts +287 -0
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.d.ts +287 -0
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.js +112 -0
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.mjs +107 -0
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
- package/resources/beta/organization/workspaces.d.mts +2 -0
- package/resources/beta/organization/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/workspaces.d.ts +2 -0
- package/resources/beta/organization/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/workspaces.js +6 -0
- package/resources/beta/organization/workspaces.js.map +1 -0
- package/resources/beta/organization/workspaces.mjs +3 -0
- package/resources/beta/organization/workspaces.mjs.map +1 -0
- package/resources/beta/organization.d.mts +2 -0
- package/resources/beta/organization.d.mts.map +1 -0
- package/resources/beta/organization.d.ts +2 -0
- package/resources/beta/organization.d.ts.map +1 -0
- package/resources/beta/organization.js +6 -0
- package/resources/beta/organization.js.map +1 -0
- package/resources/beta/organization.mjs +3 -0
- package/resources/beta/organization.mjs.map +1 -0
- package/resources/beta/sessions/threads/threads.d.mts +2 -1
- package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
- package/resources/beta/sessions/threads/threads.d.ts +2 -1
- package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/src/helpers/beta/standard-schema.ts +99 -0
- package/src/internal/detect-platform.ts +1 -1
- package/src/internal/utils/values.ts +7 -0
- package/src/lib/BetaMessageStream.ts +1 -3
- package/src/lib/MessageStream.ts +1 -3
- package/src/lib/sessions/accumulate.ts +1 -3
- package/src/lib/standard-schema.ts +209 -0
- package/src/lib/tools/BetaToolRunner.ts +38 -6
- package/src/resources/beta/beta.ts +18 -1
- package/src/resources/beta/environments/environments.ts +8 -1
- package/src/resources/beta/index.ts +1 -0
- package/src/resources/beta/memory-stores/memories.ts +6 -5
- package/src/resources/beta/memory-stores/memory-versions.ts +8 -5
- package/src/resources/beta/messages/messages.ts +50 -8
- package/src/resources/beta/organization/api-keys.ts +231 -0
- package/src/resources/beta/organization/external-keys.ts +362 -0
- package/src/resources/beta/organization/federation/federation.ts +71 -0
- package/src/resources/beta/organization/federation/index.ts +31 -0
- package/src/resources/beta/organization/federation/issuers.ts +486 -0
- package/src/resources/beta/organization/federation/rules/index.ts +23 -0
- package/src/resources/beta/organization/federation/rules/rules.ts +624 -0
- package/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
- package/src/resources/beta/organization/federation/rules.ts +3 -0
- package/src/resources/beta/organization/federation.ts +3 -0
- package/src/resources/beta/organization/index.ts +83 -0
- package/src/resources/beta/organization/invites.ts +207 -0
- package/src/resources/beta/organization/organization.ts +245 -0
- package/src/resources/beta/organization/rate-limits.ts +105 -0
- package/src/resources/beta/organization/service-accounts/index.ts +21 -0
- package/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
- package/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
- package/src/resources/beta/organization/service-accounts.ts +3 -0
- package/src/resources/beta/organization/users.ts +163 -0
- package/src/resources/beta/organization/workspaces/index.ts +43 -0
- package/src/resources/beta/organization/workspaces/members.ts +209 -0
- package/src/resources/beta/organization/workspaces/rate-limits.ts +114 -0
- package/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
- package/src/resources/beta/organization/workspaces/workspaces.ts +434 -0
- package/src/resources/beta/organization/workspaces.ts +3 -0
- package/src/resources/beta/organization.ts +3 -0
- package/src/resources/beta/sessions/threads/threads.ts +2 -1
- package/src/tools/agent-toolset/node.browser.ts +1 -1
- package/src/tools/agent-toolset/node.ts +4 -4
- package/src/version.ts +1 -1
- package/tools/agent-toolset/node.browser.d.mts +1 -1
- package/tools/agent-toolset/node.browser.d.mts.map +1 -1
- package/tools/agent-toolset/node.browser.d.ts +1 -1
- package/tools/agent-toolset/node.browser.d.ts.map +1 -1
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.browser.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts +2 -2
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts +2 -2
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import * as BetaAPI from "../../beta.js";
|
|
3
|
+
import * as ServiceAccountsAPI from "../service-accounts/service-accounts.js";
|
|
4
|
+
import { BetaServiceAccountWorkspaceMembersPageCursor } from "../service-accounts/service-accounts.js";
|
|
5
|
+
import * as WorkspacesAPI from "./workspaces.js";
|
|
6
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
7
|
+
import { type PageCursorParams, PagePromise } from "../../../../core/pagination.js";
|
|
8
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
9
|
+
export declare class ServiceAccounts extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
12
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
13
|
+
* API keys are not accepted. See
|
|
14
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
15
|
+
*
|
|
16
|
+
* Retrieve a service account's membership in a workspace.
|
|
17
|
+
*
|
|
18
|
+
* Returns the membership record, including the service account's `workspace_role`
|
|
19
|
+
* in this workspace. Archived workspaces return 400. For the default workspace,
|
|
20
|
+
* returns the implicit (`implicit: true`) membership when no explicit membership
|
|
21
|
+
* exists; an explicitly added membership is returned with its assigned role. An
|
|
22
|
+
* archived service account returns 404.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const betaServiceAccountWorkspaceMember =
|
|
27
|
+
* await client.beta.organization.workspaces.serviceAccounts.retrieve(
|
|
28
|
+
* 'service_account_id',
|
|
29
|
+
* { workspace_id: 'workspace_id' },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(serviceAccountID: string, params: ServiceAccountRetrieveParams, options?: RequestOptions): APIPromise<ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
|
|
34
|
+
/**
|
|
35
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
36
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
37
|
+
* API keys are not accepted. See
|
|
38
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
39
|
+
*
|
|
40
|
+
* Change a service account's role in a workspace.
|
|
41
|
+
*
|
|
42
|
+
* The new `workspace_role` replaces the current one. Only explicit memberships can
|
|
43
|
+
* be updated; to set a role on the implicit default-workspace membership, add the
|
|
44
|
+
* service account explicitly with
|
|
45
|
+
* `POST /workspaces/{workspace_id}/service_accounts`. Archived workspaces
|
|
46
|
+
* return 400. Archived service accounts cannot be updated and are rejected.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const betaServiceAccountWorkspaceMember =
|
|
51
|
+
* await client.beta.organization.workspaces.serviceAccounts.update(
|
|
52
|
+
* 'service_account_id',
|
|
53
|
+
* {
|
|
54
|
+
* workspace_id: 'workspace_id',
|
|
55
|
+
* workspace_role: 'workspace_admin',
|
|
56
|
+
* },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
update(serviceAccountID: string, params: ServiceAccountUpdateParams, options?: RequestOptions): APIPromise<ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
|
|
61
|
+
/**
|
|
62
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
63
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
64
|
+
* API keys are not accepted. See
|
|
65
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
66
|
+
*
|
|
67
|
+
* List the service accounts that are members of a workspace.
|
|
68
|
+
*
|
|
69
|
+
* Each entry includes the service account's `workspace_role`. Use `limit` and the
|
|
70
|
+
* `next_page` cursor to paginate. Archived workspaces return 400; use
|
|
71
|
+
* `GET /service_accounts/{id}/workspaces` to audit memberships of an archived
|
|
72
|
+
* workspace. The implicit default-workspace membership is not included in this
|
|
73
|
+
* list. Memberships of archived service accounts are omitted from the results.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* // Automatically fetches more pages as needed.
|
|
78
|
+
* for await (const betaServiceAccountWorkspaceMember of client.beta.organization.workspaces.serviceAccounts.list(
|
|
79
|
+
* 'workspace_id',
|
|
80
|
+
* )) {
|
|
81
|
+
* // ...
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
list(workspaceID: string, params?: ServiceAccountListParams | null | undefined, options?: RequestOptions): PagePromise<BetaServiceAccountWorkspaceMembersPageCursor, ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
|
|
86
|
+
/**
|
|
87
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
88
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
89
|
+
* API keys are not accepted. See
|
|
90
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
91
|
+
*
|
|
92
|
+
* Add a service account to a workspace with the given `workspace_role`.
|
|
93
|
+
*
|
|
94
|
+
* The role determines what the service account can do in the workspace and which
|
|
95
|
+
* workspace-scoped permissions it can be granted when authenticating through
|
|
96
|
+
* federation. Every service account is already an implicit `workspace_user` member
|
|
97
|
+
* of the default workspace; adding it explicitly assigns a chosen role. If the
|
|
98
|
+
* service account is already an explicit member of the workspace, its
|
|
99
|
+
* `workspace_role` is replaced with the value supplied here. Archived workspaces
|
|
100
|
+
* return 400. Archived service accounts cannot be added and are rejected.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const betaServiceAccountWorkspaceMember =
|
|
105
|
+
* await client.beta.organization.workspaces.serviceAccounts.add(
|
|
106
|
+
* 'workspace_id',
|
|
107
|
+
* {
|
|
108
|
+
* service_account_id: 'service_account_id',
|
|
109
|
+
* workspace_role: 'workspace_admin',
|
|
110
|
+
* },
|
|
111
|
+
* );
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
add(workspaceID: string, params: ServiceAccountAddParams, options?: RequestOptions): APIPromise<ServiceAccountsAPI.BetaServiceAccountWorkspaceMember>;
|
|
115
|
+
/**
|
|
116
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
117
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
118
|
+
* API keys are not accepted. See
|
|
119
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
120
|
+
*
|
|
121
|
+
* Remove a service account from a workspace.
|
|
122
|
+
*
|
|
123
|
+
* Removal is idempotent (returns 200 even if the membership was already removed).
|
|
124
|
+
* A DELETE against the implicit default-workspace membership returns 200 but is a
|
|
125
|
+
* no-op and the membership persists; deleting an explicit default-workspace row
|
|
126
|
+
* reverts to the implicit `workspace_user` membership. Archived workspaces
|
|
127
|
+
* return 400.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* const serviceAccount =
|
|
132
|
+
* await client.beta.organization.workspaces.serviceAccounts.remove(
|
|
133
|
+
* 'service_account_id',
|
|
134
|
+
* { workspace_id: 'workspace_id' },
|
|
135
|
+
* );
|
|
136
|
+
* ```
|
|
137
|
+
*/
|
|
138
|
+
remove(serviceAccountID: string, params: ServiceAccountRemoveParams, options?: RequestOptions): APIPromise<ServiceAccountRemoveResponse>;
|
|
139
|
+
}
|
|
140
|
+
export interface ServiceAccountRemoveResponse {
|
|
141
|
+
/**
|
|
142
|
+
* Tagged service account ID (`svac_...`) named in the delete request. Removal is
|
|
143
|
+
* idempotent; see the endpoint description for the implicit-membership no-op.
|
|
144
|
+
*/
|
|
145
|
+
service_account_id: string;
|
|
146
|
+
type: 'service_account_workspace_member_deleted';
|
|
147
|
+
/**
|
|
148
|
+
* Tagged workspace ID (`wrkspc_...`) named in the delete request.
|
|
149
|
+
*/
|
|
150
|
+
workspace_id: string;
|
|
151
|
+
}
|
|
152
|
+
export interface ServiceAccountRetrieveParams {
|
|
153
|
+
/**
|
|
154
|
+
* Path param: ID of the workspace.
|
|
155
|
+
*/
|
|
156
|
+
workspace_id: string;
|
|
157
|
+
/**
|
|
158
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
159
|
+
*/
|
|
160
|
+
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
161
|
+
}
|
|
162
|
+
export interface ServiceAccountUpdateParams {
|
|
163
|
+
/**
|
|
164
|
+
* Path param: ID of the workspace.
|
|
165
|
+
*/
|
|
166
|
+
workspace_id: string;
|
|
167
|
+
/**
|
|
168
|
+
* Body param: New role for the service account in this workspace.
|
|
169
|
+
*/
|
|
170
|
+
workspace_role: WorkspacesAPI.BetaNoBillingWorkspaceRole;
|
|
171
|
+
/**
|
|
172
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
173
|
+
*/
|
|
174
|
+
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
175
|
+
}
|
|
176
|
+
export interface ServiceAccountListParams extends PageCursorParams {
|
|
177
|
+
/**
|
|
178
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
179
|
+
*/
|
|
180
|
+
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
181
|
+
}
|
|
182
|
+
export interface ServiceAccountAddParams {
|
|
183
|
+
/**
|
|
184
|
+
* Body param: Tagged service account ID to add.
|
|
185
|
+
*/
|
|
186
|
+
service_account_id: string;
|
|
187
|
+
/**
|
|
188
|
+
* Body param: Role to assign to the service account in this workspace.
|
|
189
|
+
*/
|
|
190
|
+
workspace_role: WorkspacesAPI.BetaNoBillingWorkspaceRole;
|
|
191
|
+
/**
|
|
192
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
193
|
+
*/
|
|
194
|
+
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
195
|
+
}
|
|
196
|
+
export interface ServiceAccountRemoveParams {
|
|
197
|
+
/**
|
|
198
|
+
* Path param: ID of the workspace.
|
|
199
|
+
*/
|
|
200
|
+
workspace_id: string;
|
|
201
|
+
/**
|
|
202
|
+
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
203
|
+
*/
|
|
204
|
+
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace ServiceAccounts {
|
|
207
|
+
export { type ServiceAccountRemoveResponse as ServiceAccountRemoveResponse, type ServiceAccountRetrieveParams as ServiceAccountRetrieveParams, type ServiceAccountUpdateParams as ServiceAccountUpdateParams, type ServiceAccountListParams as ServiceAccountListParams, type ServiceAccountAddParams as ServiceAccountAddParams, type ServiceAccountRemoveParams as ServiceAccountRemoveParams, };
|
|
208
|
+
}
|
|
209
|
+
export { type BetaServiceAccountWorkspaceMembersPageCursor };
|
|
210
|
+
//# sourceMappingURL=service-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-accounts.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/service-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,OAAO,sBAAmB;AACtC,OAAO,KAAK,kBAAkB,gDAA6C;AAC3E,OAAO,EAAE,4CAA4C,EAAE,gDAA6C;AACpG,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAc,KAAK,gBAAgB,EAAE,WAAW,EAAE,uCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,gBAAgB,EAAE,MAAM,EACxB,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC,iCAAiC,CAAC;IAcnE;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CACJ,gBAAgB,EAAE,MAAM,EACxB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC,iCAAiC,CAAC;IAenE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,IAAI,CACF,WAAW,EAAE,MAAM,EACnB,MAAM,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CACZ,4CAA4C,EAC5C,kBAAkB,CAAC,iCAAiC,CACrD;I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A0B;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,4CAA4C,EAAE,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ServiceAccounts = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
9
|
+
class ServiceAccounts extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
12
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
13
|
+
* API keys are not accepted. See
|
|
14
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
15
|
+
*
|
|
16
|
+
* Retrieve a service account's membership in a workspace.
|
|
17
|
+
*
|
|
18
|
+
* Returns the membership record, including the service account's `workspace_role`
|
|
19
|
+
* in this workspace. Archived workspaces return 400. For the default workspace,
|
|
20
|
+
* returns the implicit (`implicit: true`) membership when no explicit membership
|
|
21
|
+
* exists; an explicitly added membership is returned with its assigned role. An
|
|
22
|
+
* archived service account returns 404.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const betaServiceAccountWorkspaceMember =
|
|
27
|
+
* await client.beta.organization.workspaces.serviceAccounts.retrieve(
|
|
28
|
+
* 'service_account_id',
|
|
29
|
+
* { workspace_id: 'workspace_id' },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(serviceAccountID, params, options) {
|
|
34
|
+
const { workspace_id, betas } = params;
|
|
35
|
+
return this._client.get((0, path_1.path) `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
|
|
36
|
+
...options,
|
|
37
|
+
headers: (0, headers_1.buildHeaders)([
|
|
38
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
39
|
+
options?.headers,
|
|
40
|
+
]),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
45
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
46
|
+
* API keys are not accepted. See
|
|
47
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
48
|
+
*
|
|
49
|
+
* Change a service account's role in a workspace.
|
|
50
|
+
*
|
|
51
|
+
* The new `workspace_role` replaces the current one. Only explicit memberships can
|
|
52
|
+
* be updated; to set a role on the implicit default-workspace membership, add the
|
|
53
|
+
* service account explicitly with
|
|
54
|
+
* `POST /workspaces/{workspace_id}/service_accounts`. Archived workspaces
|
|
55
|
+
* return 400. Archived service accounts cannot be updated and are rejected.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const betaServiceAccountWorkspaceMember =
|
|
60
|
+
* await client.beta.organization.workspaces.serviceAccounts.update(
|
|
61
|
+
* 'service_account_id',
|
|
62
|
+
* {
|
|
63
|
+
* workspace_id: 'workspace_id',
|
|
64
|
+
* workspace_role: 'workspace_admin',
|
|
65
|
+
* },
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
update(serviceAccountID, params, options) {
|
|
70
|
+
const { workspace_id, betas, ...body } = params;
|
|
71
|
+
return this._client.post((0, path_1.path) `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
|
|
72
|
+
body,
|
|
73
|
+
...options,
|
|
74
|
+
headers: (0, headers_1.buildHeaders)([
|
|
75
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
76
|
+
options?.headers,
|
|
77
|
+
]),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
82
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
83
|
+
* API keys are not accepted. See
|
|
84
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
85
|
+
*
|
|
86
|
+
* List the service accounts that are members of a workspace.
|
|
87
|
+
*
|
|
88
|
+
* Each entry includes the service account's `workspace_role`. Use `limit` and the
|
|
89
|
+
* `next_page` cursor to paginate. Archived workspaces return 400; use
|
|
90
|
+
* `GET /service_accounts/{id}/workspaces` to audit memberships of an archived
|
|
91
|
+
* workspace. The implicit default-workspace membership is not included in this
|
|
92
|
+
* list. Memberships of archived service accounts are omitted from the results.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* // Automatically fetches more pages as needed.
|
|
97
|
+
* for await (const betaServiceAccountWorkspaceMember of client.beta.organization.workspaces.serviceAccounts.list(
|
|
98
|
+
* 'workspace_id',
|
|
99
|
+
* )) {
|
|
100
|
+
* // ...
|
|
101
|
+
* }
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
list(workspaceID, params = {}, options) {
|
|
105
|
+
const { betas, ...query } = params ?? {};
|
|
106
|
+
return this._client.getAPIList((0, path_1.path) `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, (pagination_1.PageCursor), {
|
|
107
|
+
query,
|
|
108
|
+
...options,
|
|
109
|
+
headers: (0, headers_1.buildHeaders)([
|
|
110
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
111
|
+
options?.headers,
|
|
112
|
+
]),
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
117
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
118
|
+
* API keys are not accepted. See
|
|
119
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
120
|
+
*
|
|
121
|
+
* Add a service account to a workspace with the given `workspace_role`.
|
|
122
|
+
*
|
|
123
|
+
* The role determines what the service account can do in the workspace and which
|
|
124
|
+
* workspace-scoped permissions it can be granted when authenticating through
|
|
125
|
+
* federation. Every service account is already an implicit `workspace_user` member
|
|
126
|
+
* of the default workspace; adding it explicitly assigns a chosen role. If the
|
|
127
|
+
* service account is already an explicit member of the workspace, its
|
|
128
|
+
* `workspace_role` is replaced with the value supplied here. Archived workspaces
|
|
129
|
+
* return 400. Archived service accounts cannot be added and are rejected.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* const betaServiceAccountWorkspaceMember =
|
|
134
|
+
* await client.beta.organization.workspaces.serviceAccounts.add(
|
|
135
|
+
* 'workspace_id',
|
|
136
|
+
* {
|
|
137
|
+
* service_account_id: 'service_account_id',
|
|
138
|
+
* workspace_role: 'workspace_admin',
|
|
139
|
+
* },
|
|
140
|
+
* );
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
add(workspaceID, params, options) {
|
|
144
|
+
const { betas, ...body } = params;
|
|
145
|
+
return this._client.post((0, path_1.path) `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, {
|
|
146
|
+
body,
|
|
147
|
+
...options,
|
|
148
|
+
headers: (0, headers_1.buildHeaders)([
|
|
149
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
150
|
+
options?.headers,
|
|
151
|
+
]),
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
156
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
157
|
+
* API keys are not accepted. See
|
|
158
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
159
|
+
*
|
|
160
|
+
* Remove a service account from a workspace.
|
|
161
|
+
*
|
|
162
|
+
* Removal is idempotent (returns 200 even if the membership was already removed).
|
|
163
|
+
* A DELETE against the implicit default-workspace membership returns 200 but is a
|
|
164
|
+
* no-op and the membership persists; deleting an explicit default-workspace row
|
|
165
|
+
* reverts to the implicit `workspace_user` membership. Archived workspaces
|
|
166
|
+
* return 400.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```ts
|
|
170
|
+
* const serviceAccount =
|
|
171
|
+
* await client.beta.organization.workspaces.serviceAccounts.remove(
|
|
172
|
+
* 'service_account_id',
|
|
173
|
+
* { workspace_id: 'workspace_id' },
|
|
174
|
+
* );
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
remove(serviceAccountID, params, options) {
|
|
178
|
+
const { workspace_id, betas } = params;
|
|
179
|
+
return this._client.delete((0, path_1.path) `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
|
|
180
|
+
...options,
|
|
181
|
+
headers: (0, headers_1.buildHeaders)([
|
|
182
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
183
|
+
options?.headers,
|
|
184
|
+
]),
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.ServiceAccounts = ServiceAccounts;
|
|
189
|
+
//# sourceMappingURL=service-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-accounts.js","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/service-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAMxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,gBAAwB,EACxB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,gCAAgC,YAAY,qBAAqB,gBAAgB,YAAY,EACjG;YACE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CACJ,gBAAwB,EACxB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,gCAAgC,YAAY,qBAAqB,gBAAgB,YAAY,EACjG;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;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AE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CACJ,gBAAwB,EACxB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAA,WAAI,EAAA,gCAAgC,YAAY,qBAAqB,gBAAgB,YAAY,EACjG;YACE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;CACF;AA1ND,0CA0NC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { PageCursor } from "../../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
6
|
+
export class ServiceAccounts extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
9
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
10
|
+
* API keys are not accepted. See
|
|
11
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
12
|
+
*
|
|
13
|
+
* Retrieve a service account's membership in a workspace.
|
|
14
|
+
*
|
|
15
|
+
* Returns the membership record, including the service account's `workspace_role`
|
|
16
|
+
* in this workspace. Archived workspaces return 400. For the default workspace,
|
|
17
|
+
* returns the implicit (`implicit: true`) membership when no explicit membership
|
|
18
|
+
* exists; an explicitly added membership is returned with its assigned role. An
|
|
19
|
+
* archived service account returns 404.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const betaServiceAccountWorkspaceMember =
|
|
24
|
+
* await client.beta.organization.workspaces.serviceAccounts.retrieve(
|
|
25
|
+
* 'service_account_id',
|
|
26
|
+
* { workspace_id: 'workspace_id' },
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
retrieve(serviceAccountID, params, options) {
|
|
31
|
+
const { workspace_id, betas } = params;
|
|
32
|
+
return this._client.get(path `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
|
|
33
|
+
...options,
|
|
34
|
+
headers: buildHeaders([
|
|
35
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
36
|
+
options?.headers,
|
|
37
|
+
]),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
42
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
43
|
+
* API keys are not accepted. See
|
|
44
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
45
|
+
*
|
|
46
|
+
* Change a service account's role in a workspace.
|
|
47
|
+
*
|
|
48
|
+
* The new `workspace_role` replaces the current one. Only explicit memberships can
|
|
49
|
+
* be updated; to set a role on the implicit default-workspace membership, add the
|
|
50
|
+
* service account explicitly with
|
|
51
|
+
* `POST /workspaces/{workspace_id}/service_accounts`. Archived workspaces
|
|
52
|
+
* return 400. Archived service accounts cannot be updated and are rejected.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const betaServiceAccountWorkspaceMember =
|
|
57
|
+
* await client.beta.organization.workspaces.serviceAccounts.update(
|
|
58
|
+
* 'service_account_id',
|
|
59
|
+
* {
|
|
60
|
+
* workspace_id: 'workspace_id',
|
|
61
|
+
* workspace_role: 'workspace_admin',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
update(serviceAccountID, params, options) {
|
|
67
|
+
const { workspace_id, betas, ...body } = params;
|
|
68
|
+
return this._client.post(path `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
|
|
69
|
+
body,
|
|
70
|
+
...options,
|
|
71
|
+
headers: buildHeaders([
|
|
72
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
73
|
+
options?.headers,
|
|
74
|
+
]),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
79
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
80
|
+
* API keys are not accepted. See
|
|
81
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
82
|
+
*
|
|
83
|
+
* List the service accounts that are members of a workspace.
|
|
84
|
+
*
|
|
85
|
+
* Each entry includes the service account's `workspace_role`. Use `limit` and the
|
|
86
|
+
* `next_page` cursor to paginate. Archived workspaces return 400; use
|
|
87
|
+
* `GET /service_accounts/{id}/workspaces` to audit memberships of an archived
|
|
88
|
+
* workspace. The implicit default-workspace membership is not included in this
|
|
89
|
+
* list. Memberships of archived service accounts are omitted from the results.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* // Automatically fetches more pages as needed.
|
|
94
|
+
* for await (const betaServiceAccountWorkspaceMember of client.beta.organization.workspaces.serviceAccounts.list(
|
|
95
|
+
* 'workspace_id',
|
|
96
|
+
* )) {
|
|
97
|
+
* // ...
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
list(workspaceID, params = {}, options) {
|
|
102
|
+
const { betas, ...query } = params ?? {};
|
|
103
|
+
return this._client.getAPIList(path `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, (PageCursor), {
|
|
104
|
+
query,
|
|
105
|
+
...options,
|
|
106
|
+
headers: buildHeaders([
|
|
107
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
108
|
+
options?.headers,
|
|
109
|
+
]),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
114
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
115
|
+
* API keys are not accepted. See
|
|
116
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
117
|
+
*
|
|
118
|
+
* Add a service account to a workspace with the given `workspace_role`.
|
|
119
|
+
*
|
|
120
|
+
* The role determines what the service account can do in the workspace and which
|
|
121
|
+
* workspace-scoped permissions it can be granted when authenticating through
|
|
122
|
+
* federation. Every service account is already an implicit `workspace_user` member
|
|
123
|
+
* of the default workspace; adding it explicitly assigns a chosen role. If the
|
|
124
|
+
* service account is already an explicit member of the workspace, its
|
|
125
|
+
* `workspace_role` is replaced with the value supplied here. Archived workspaces
|
|
126
|
+
* return 400. Archived service accounts cannot be added and are rejected.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```ts
|
|
130
|
+
* const betaServiceAccountWorkspaceMember =
|
|
131
|
+
* await client.beta.organization.workspaces.serviceAccounts.add(
|
|
132
|
+
* 'workspace_id',
|
|
133
|
+
* {
|
|
134
|
+
* service_account_id: 'service_account_id',
|
|
135
|
+
* workspace_role: 'workspace_admin',
|
|
136
|
+
* },
|
|
137
|
+
* );
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
add(workspaceID, params, options) {
|
|
141
|
+
const { betas, ...body } = params;
|
|
142
|
+
return this._client.post(path `/v1/organizations/workspaces/${workspaceID}/service_accounts?beta=true`, {
|
|
143
|
+
body,
|
|
144
|
+
...options,
|
|
145
|
+
headers: buildHeaders([
|
|
146
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
147
|
+
options?.headers,
|
|
148
|
+
]),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* **Requires an OAuth access token with the `org:admin` scope**, from
|
|
153
|
+
* `ant auth login --scope org:admin` or a workload identity federation rule; Admin
|
|
154
|
+
* API keys are not accepted. See
|
|
155
|
+
* [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
|
|
156
|
+
*
|
|
157
|
+
* Remove a service account from a workspace.
|
|
158
|
+
*
|
|
159
|
+
* Removal is idempotent (returns 200 even if the membership was already removed).
|
|
160
|
+
* A DELETE against the implicit default-workspace membership returns 200 but is a
|
|
161
|
+
* no-op and the membership persists; deleting an explicit default-workspace row
|
|
162
|
+
* reverts to the implicit `workspace_user` membership. Archived workspaces
|
|
163
|
+
* return 400.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```ts
|
|
167
|
+
* const serviceAccount =
|
|
168
|
+
* await client.beta.organization.workspaces.serviceAccounts.remove(
|
|
169
|
+
* 'service_account_id',
|
|
170
|
+
* { workspace_id: 'workspace_id' },
|
|
171
|
+
* );
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
remove(serviceAccountID, params, options) {
|
|
175
|
+
const { workspace_id, betas } = params;
|
|
176
|
+
return this._client.delete(path `/v1/organizations/workspaces/${workspace_id}/service_accounts/${serviceAccountID}?beta=true`, {
|
|
177
|
+
...options,
|
|
178
|
+
headers: buildHeaders([
|
|
179
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
180
|
+
options?.headers,
|
|
181
|
+
]),
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=service-accounts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-accounts.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/organization/workspaces/service-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAMxD,OAAO,EAAE,UAAU,EAAsC,wCAAoC;AAC7F,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CACN,gBAAwB,EACxB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,gCAAgC,YAAY,qBAAqB,gBAAgB,YAAY,EACjG;YACE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CACJ,gBAAwB,EACxB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAA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