@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,163 @@
|
|
|
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 Users extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a member of the organization by user ID.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const betaOrganizationUser =
|
|
17
|
+
* await client.beta.organization.users.retrieve('user_id');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
retrieve(userID: string, options?: RequestOptions): APIPromise<BetaOrganizationUser> {
|
|
21
|
+
return this._client.get(path`/v1/organizations/users/${userID}?beta=true`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Update a member's organization role.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const betaOrganizationUser =
|
|
30
|
+
* await client.beta.organization.users.update('user_id', {
|
|
31
|
+
* role: 'user',
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
update(userID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<BetaOrganizationUser> {
|
|
36
|
+
return this._client.post(path`/v1/organizations/users/${userID}?beta=true`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* List the organization's members.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* // Automatically fetches more pages as needed.
|
|
45
|
+
* for await (const betaOrganizationUser of client.beta.organization.users.list()) {
|
|
46
|
+
* // ...
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
list(
|
|
51
|
+
query: UserListParams | null | undefined = {},
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): PagePromise<BetaOrganizationUsersPage, BetaOrganizationUser> {
|
|
54
|
+
return this._client.getAPIList('/v1/organizations/users?beta=true', Page<BetaOrganizationUser>, {
|
|
55
|
+
query,
|
|
56
|
+
...options,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Remove a member from the organization.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const user = await client.beta.organization.users.remove(
|
|
66
|
+
* 'user_id',
|
|
67
|
+
* );
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
remove(userID: string, options?: RequestOptions): APIPromise<UserRemoveResponse> {
|
|
71
|
+
return this._client.delete(path`/v1/organizations/users/${userID}?beta=true`, options);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type BetaOrganizationUsersPage = Page<BetaOrganizationUser>;
|
|
76
|
+
|
|
77
|
+
export interface BetaOrganizationUser {
|
|
78
|
+
/**
|
|
79
|
+
* ID of the User.
|
|
80
|
+
*/
|
|
81
|
+
id: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* RFC 3339 datetime string indicating when the User joined the Organization.
|
|
85
|
+
*/
|
|
86
|
+
added_at: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Email of the User.
|
|
90
|
+
*/
|
|
91
|
+
email: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Name of the User.
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Organization role of the User.
|
|
100
|
+
*/
|
|
101
|
+
role: OrganizationAPI.BetaOrganizationRole;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Object type.
|
|
105
|
+
*
|
|
106
|
+
* For Users, this is always `"user"`.
|
|
107
|
+
*/
|
|
108
|
+
type: 'user';
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface UserRemoveResponse {
|
|
112
|
+
/**
|
|
113
|
+
* ID of the User.
|
|
114
|
+
*/
|
|
115
|
+
id: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Deleted object type.
|
|
119
|
+
*
|
|
120
|
+
* For Users, this is always `"user_deleted"`.
|
|
121
|
+
*/
|
|
122
|
+
type: 'user_deleted';
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface UserUpdateParams {
|
|
126
|
+
/**
|
|
127
|
+
* New role for the User.
|
|
128
|
+
*
|
|
129
|
+
* The accepted values depend on the organization type. Console and API
|
|
130
|
+
* organizations accept `user`, `developer`, `billing`, and `claude_code_user`;
|
|
131
|
+
* `admin` cannot be assigned through the API. Claude Enterprise organizations
|
|
132
|
+
* accept `user` and `managed`.
|
|
133
|
+
*/
|
|
134
|
+
role: 'billing' | 'claude_code_user' | 'developer' | 'managed' | 'user';
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface UserListParams extends PageParams {
|
|
138
|
+
/**
|
|
139
|
+
* Filter by user email.
|
|
140
|
+
*/
|
|
141
|
+
email?: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Filter to items whose `role` equals one of the supplied values. Repeatable;
|
|
145
|
+
* values are OR'ed together.
|
|
146
|
+
*
|
|
147
|
+
* Accepted values depend on the organization type: Console and API organizations
|
|
148
|
+
* accept `user`, `developer`, `billing`, `admin`, and `claude_code_user`; Claude
|
|
149
|
+
* Enterprise organizations accept `user`, `owner`, `primary_owner`,
|
|
150
|
+
* `membership_admin`, and `managed`.
|
|
151
|
+
*/
|
|
152
|
+
roles?: Array<string>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export declare namespace Users {
|
|
156
|
+
export {
|
|
157
|
+
type BetaOrganizationUser as BetaOrganizationUser,
|
|
158
|
+
type UserRemoveResponse as UserRemoveResponse,
|
|
159
|
+
type BetaOrganizationUsersPage as BetaOrganizationUsersPage,
|
|
160
|
+
type UserUpdateParams as UserUpdateParams,
|
|
161
|
+
type UserListParams as UserListParams,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Members,
|
|
5
|
+
type MemberRemoveResponse,
|
|
6
|
+
type MemberRetrieveParams,
|
|
7
|
+
type MemberUpdateParams,
|
|
8
|
+
type MemberListParams,
|
|
9
|
+
type MemberAddParams,
|
|
10
|
+
type MemberRemoveParams,
|
|
11
|
+
} from './members';
|
|
12
|
+
export {
|
|
13
|
+
RateLimits,
|
|
14
|
+
type BetaWorkspaceRateLimit,
|
|
15
|
+
type BetaWorkspaceRateLimitValue,
|
|
16
|
+
type RateLimitListParams,
|
|
17
|
+
type BetaWorkspaceRateLimitsPageCursor,
|
|
18
|
+
} from './rate-limits';
|
|
19
|
+
export {
|
|
20
|
+
ServiceAccounts,
|
|
21
|
+
type ServiceAccountRemoveResponse,
|
|
22
|
+
type ServiceAccountRetrieveParams,
|
|
23
|
+
type ServiceAccountUpdateParams,
|
|
24
|
+
type ServiceAccountListParams,
|
|
25
|
+
type ServiceAccountAddParams,
|
|
26
|
+
type ServiceAccountRemoveParams,
|
|
27
|
+
} from './service-accounts';
|
|
28
|
+
export {
|
|
29
|
+
Workspaces,
|
|
30
|
+
type BetaAllowedInferenceGeo,
|
|
31
|
+
type BetaDataResidency,
|
|
32
|
+
type BetaDataResidencyCreateConfig,
|
|
33
|
+
type BetaDataResidencyUpdateConfig,
|
|
34
|
+
type BetaNoBillingWorkspaceRole,
|
|
35
|
+
type BetaWorkspace,
|
|
36
|
+
type BetaWorkspaceMember,
|
|
37
|
+
type BetaWorkspaceRole,
|
|
38
|
+
type WorkspaceCreateParams,
|
|
39
|
+
type WorkspaceUpdateParams,
|
|
40
|
+
type WorkspaceListParams,
|
|
41
|
+
type BetaWorkspaceMembersPage,
|
|
42
|
+
type BetaWorkspacesPage,
|
|
43
|
+
} from './workspaces';
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as WorkspacesAPI from './workspaces';
|
|
5
|
+
import { BetaWorkspaceMembersPage } from './workspaces';
|
|
6
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
7
|
+
import { Page, type PageParams, PagePromise } from '../../../../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
9
|
+
import { path } from '../../../../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
export class Members extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get Workspace Member
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const betaWorkspaceMember =
|
|
18
|
+
* await client.beta.organization.workspaces.members.retrieve(
|
|
19
|
+
* 'user_id',
|
|
20
|
+
* { workspace_id: 'workspace_id' },
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
retrieve(
|
|
25
|
+
userID: string,
|
|
26
|
+
params: MemberRetrieveParams,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<WorkspacesAPI.BetaWorkspaceMember> {
|
|
29
|
+
const { workspace_id } = params;
|
|
30
|
+
return this._client.get(
|
|
31
|
+
path`/v1/organizations/workspaces/${workspace_id}/members/${userID}?beta=true`,
|
|
32
|
+
options,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Update Workspace Member
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const betaWorkspaceMember =
|
|
42
|
+
* await client.beta.organization.workspaces.members.update(
|
|
43
|
+
* 'user_id',
|
|
44
|
+
* {
|
|
45
|
+
* workspace_id: 'workspace_id',
|
|
46
|
+
* workspace_role: 'workspace_admin',
|
|
47
|
+
* },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
update(
|
|
52
|
+
userID: string,
|
|
53
|
+
params: MemberUpdateParams,
|
|
54
|
+
options?: RequestOptions,
|
|
55
|
+
): APIPromise<WorkspacesAPI.BetaWorkspaceMember> {
|
|
56
|
+
const { workspace_id, ...body } = params;
|
|
57
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspace_id}/members/${userID}?beta=true`, {
|
|
58
|
+
body,
|
|
59
|
+
...options,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* List Workspace Members
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* // Automatically fetches more pages as needed.
|
|
69
|
+
* for await (const betaWorkspaceMember of client.beta.organization.workspaces.members.list(
|
|
70
|
+
* 'workspace_id',
|
|
71
|
+
* )) {
|
|
72
|
+
* // ...
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
list(
|
|
77
|
+
workspaceID: string,
|
|
78
|
+
query: MemberListParams | null | undefined = {},
|
|
79
|
+
options?: RequestOptions,
|
|
80
|
+
): PagePromise<BetaWorkspaceMembersPage, WorkspacesAPI.BetaWorkspaceMember> {
|
|
81
|
+
return this._client.getAPIList(
|
|
82
|
+
path`/v1/organizations/workspaces/${workspaceID}/members?beta=true`,
|
|
83
|
+
Page<WorkspacesAPI.BetaWorkspaceMember>,
|
|
84
|
+
{ query, ...options },
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Create Workspace Member
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const betaWorkspaceMember =
|
|
94
|
+
* await client.beta.organization.workspaces.members.add(
|
|
95
|
+
* 'workspace_id',
|
|
96
|
+
* {
|
|
97
|
+
* user_id: 'user_01WCz1FkmYMm4gnmykNKUu3Q',
|
|
98
|
+
* workspace_role: 'workspace_admin',
|
|
99
|
+
* },
|
|
100
|
+
* );
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
add(
|
|
104
|
+
workspaceID: string,
|
|
105
|
+
body: MemberAddParams,
|
|
106
|
+
options?: RequestOptions,
|
|
107
|
+
): APIPromise<WorkspacesAPI.BetaWorkspaceMember> {
|
|
108
|
+
return this._client.post(path`/v1/organizations/workspaces/${workspaceID}/members?beta=true`, {
|
|
109
|
+
body,
|
|
110
|
+
...options,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Delete Workspace Member
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const member =
|
|
120
|
+
* await client.beta.organization.workspaces.members.remove(
|
|
121
|
+
* 'user_id',
|
|
122
|
+
* { workspace_id: 'workspace_id' },
|
|
123
|
+
* );
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
remove(
|
|
127
|
+
userID: string,
|
|
128
|
+
params: MemberRemoveParams,
|
|
129
|
+
options?: RequestOptions,
|
|
130
|
+
): APIPromise<MemberRemoveResponse> {
|
|
131
|
+
const { workspace_id } = params;
|
|
132
|
+
return this._client.delete(
|
|
133
|
+
path`/v1/organizations/workspaces/${workspace_id}/members/${userID}?beta=true`,
|
|
134
|
+
options,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface MemberRemoveResponse {
|
|
140
|
+
/**
|
|
141
|
+
* Deleted object type.
|
|
142
|
+
*
|
|
143
|
+
* For Workspace Members, this is always `"workspace_member_deleted"`.
|
|
144
|
+
*/
|
|
145
|
+
type: 'workspace_member_deleted';
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* ID of the User.
|
|
149
|
+
*/
|
|
150
|
+
user_id: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* ID of the Workspace.
|
|
154
|
+
*/
|
|
155
|
+
workspace_id: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface MemberRetrieveParams {
|
|
159
|
+
/**
|
|
160
|
+
* ID of the Workspace.
|
|
161
|
+
*/
|
|
162
|
+
workspace_id: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface MemberUpdateParams {
|
|
166
|
+
/**
|
|
167
|
+
* Path param: ID of the Workspace.
|
|
168
|
+
*/
|
|
169
|
+
workspace_id: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Body param: New workspace role for the User.
|
|
173
|
+
*/
|
|
174
|
+
workspace_role: WorkspacesAPI.BetaWorkspaceRole;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface MemberListParams extends PageParams {}
|
|
178
|
+
|
|
179
|
+
export interface MemberAddParams {
|
|
180
|
+
/**
|
|
181
|
+
* ID of the User.
|
|
182
|
+
*/
|
|
183
|
+
user_id: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Role of the new Workspace Member. Cannot be `workspace_billing`.
|
|
187
|
+
*/
|
|
188
|
+
workspace_role: WorkspacesAPI.BetaNoBillingWorkspaceRole;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export interface MemberRemoveParams {
|
|
192
|
+
/**
|
|
193
|
+
* ID of the Workspace.
|
|
194
|
+
*/
|
|
195
|
+
workspace_id: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export declare namespace Members {
|
|
199
|
+
export {
|
|
200
|
+
type MemberRemoveResponse as MemberRemoveResponse,
|
|
201
|
+
type MemberRetrieveParams as MemberRetrieveParams,
|
|
202
|
+
type MemberUpdateParams as MemberUpdateParams,
|
|
203
|
+
type MemberListParams as MemberListParams,
|
|
204
|
+
type MemberAddParams as MemberAddParams,
|
|
205
|
+
type MemberRemoveParams as MemberRemoveParams,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { type BetaWorkspaceMembersPage };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import { PageCursor, type PageCursorParams, PagePromise } from '../../../../core/pagination';
|
|
5
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class RateLimits extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List rate-limit overrides configured for a workspace.
|
|
11
|
+
*
|
|
12
|
+
* Returns only the groups and limiter types that have a workspace-level override.
|
|
13
|
+
* Groups without overrides inherit the organization limits and are not listed; use
|
|
14
|
+
* `GET /v1/organizations/rate_limits` to see those.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint currently returns every matching entry in a single page regardless
|
|
17
|
+
* of `limit`; follow `next_page` so that clients keep working when pagination is
|
|
18
|
+
* enabled.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const betaWorkspaceRateLimit of client.beta.organization.workspaces.rateLimits.list(
|
|
24
|
+
* 'workspace_id',
|
|
25
|
+
* )) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
workspaceID: string,
|
|
32
|
+
query: RateLimitListParams | null | undefined = {},
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): PagePromise<BetaWorkspaceRateLimitsPageCursor, BetaWorkspaceRateLimit> {
|
|
35
|
+
return this._client.getAPIList(
|
|
36
|
+
path`/v1/organizations/workspaces/${workspaceID}/rate_limits?beta=true`,
|
|
37
|
+
PageCursor<BetaWorkspaceRateLimit>,
|
|
38
|
+
{ query, ...options },
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type BetaWorkspaceRateLimitsPageCursor = PageCursor<BetaWorkspaceRateLimit>;
|
|
44
|
+
|
|
45
|
+
export interface BetaWorkspaceRateLimit {
|
|
46
|
+
/**
|
|
47
|
+
* The kind of rate-limit group this entry represents. `model_group` entries apply
|
|
48
|
+
* to a family of models (listed in `models`); other values apply to an API-surface
|
|
49
|
+
* category and have `models` set to `null`.
|
|
50
|
+
*/
|
|
51
|
+
group_type: 'batch' | 'files' | 'model_group' | 'skills' | 'token_count' | 'web_search';
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The limiter values overridden for this group in this workspace. Limiter types
|
|
55
|
+
* without a workspace override are omitted and inherit the organization value.
|
|
56
|
+
*/
|
|
57
|
+
limits: Array<BetaWorkspaceRateLimitValue>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Model names this entry's limits apply to, including aliases. `null` when
|
|
61
|
+
* `group_type` is not `"model_group"`.
|
|
62
|
+
*/
|
|
63
|
+
models: Array<string> | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The `id` of the RateLimit group this override applies to.
|
|
67
|
+
*/
|
|
68
|
+
rate_limit_id: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Object type. Always `workspace_rate_limit` for workspace rate-limit entries.
|
|
72
|
+
*/
|
|
73
|
+
type: 'workspace_rate_limit';
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* ID of the Workspace this override applies to.
|
|
77
|
+
*/
|
|
78
|
+
workspace_id: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface BetaWorkspaceRateLimitValue {
|
|
82
|
+
/**
|
|
83
|
+
* The organization-level value for the same limiter type, for reference. `null`
|
|
84
|
+
* when the organization has no limit configured for this limiter type.
|
|
85
|
+
*/
|
|
86
|
+
org_limit: number | null;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The limiter type (for example, `requests_per_minute` or
|
|
90
|
+
* `input_tokens_per_minute`).
|
|
91
|
+
*/
|
|
92
|
+
type: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The workspace-level override value for this limiter type.
|
|
96
|
+
*/
|
|
97
|
+
value: number;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface RateLimitListParams extends PageCursorParams {
|
|
101
|
+
/**
|
|
102
|
+
* Filter by group type.
|
|
103
|
+
*/
|
|
104
|
+
group_type?: 'batch' | 'files' | 'model_group' | 'skills' | 'token_count' | 'web_search' | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare namespace RateLimits {
|
|
108
|
+
export {
|
|
109
|
+
type BetaWorkspaceRateLimit as BetaWorkspaceRateLimit,
|
|
110
|
+
type BetaWorkspaceRateLimitValue as BetaWorkspaceRateLimitValue,
|
|
111
|
+
type BetaWorkspaceRateLimitsPageCursor as BetaWorkspaceRateLimitsPageCursor,
|
|
112
|
+
type RateLimitListParams as RateLimitListParams,
|
|
113
|
+
};
|
|
114
|
+
}
|