@anthropic-ai/sdk 0.125.0 → 0.127.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 +88 -0
- package/client.d.mts +12 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -11
- package/client.d.ts.map +1 -1
- package/client.js +865 -845
- package/client.js.map +1 -1
- package/client.mjs +866 -840
- package/client.mjs.map +1 -1
- package/core/api-promise.js +71 -68
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +71 -64
- package/core/api-promise.mjs.map +1 -1
- package/core/error.js +5 -2
- package/core/error.js.map +1 -1
- package/core/error.mjs +5 -2
- package/core/error.mjs.map +1 -1
- package/core/pagination.js +56 -50
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +56 -41
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.js +212 -209
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +212 -209
- package/core/streaming.mjs.map +1 -1
- package/helpers/beta/mcp.js +14 -19
- package/helpers/beta/mcp.js.map +1 -1
- package/helpers/beta/mcp.mjs +14 -13
- package/helpers/beta/mcp.mjs.map +1 -1
- package/internal/constants.js +1 -1
- package/internal/constants.js.map +1 -1
- package/internal/decoders/jsonl.js +27 -24
- package/internal/decoders/jsonl.js.map +1 -1
- package/internal/decoders/jsonl.mjs +27 -24
- package/internal/decoders/jsonl.mjs.map +1 -1
- package/internal/decoders/line.js +52 -49
- package/internal/decoders/line.js.map +1 -1
- package/internal/decoders/line.mjs +52 -43
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/file-store.js +256 -258
- package/internal/file-store.js.map +1 -1
- package/internal/file-store.mjs +256 -243
- package/internal/file-store.mjs.map +1 -1
- package/internal/node.browser.d.mts.map +1 -1
- package/internal/node.browser.d.ts.map +1 -1
- package/internal/node.browser.js.map +1 -1
- package/internal/node.browser.mjs +7 -7
- package/internal/node.browser.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +2 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +3 -3
- package/internal/parse.mjs.map +1 -1
- package/internal/shim-types.js +0 -6
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +0 -6
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts +3 -3
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +3 -3
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +0 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +0 -6
- package/internal/shims.mjs.map +1 -1
- package/internal/stainless-helper-header.js +6 -6
- package/internal/stainless-helper-header.js.map +1 -1
- package/internal/utils/async-queue.js +66 -63
- package/internal/utils/async-queue.js.map +1 -1
- package/internal/utils/async-queue.mjs +66 -56
- package/internal/utils/async-queue.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +1 -1
- package/internal/utils/bytes.d.mts.map +1 -1
- package/internal/utils/bytes.d.ts +1 -1
- package/internal/utils/bytes.d.ts.map +1 -1
- package/internal/utils/log.d.mts +7 -12
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +7 -12
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +12 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +11 -0
- package/internal/utils/log.mjs.map +1 -1
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +595 -590
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +595 -590
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.js +544 -541
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +544 -541
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/beta-parser.d.mts +1 -3
- package/lib/beta-parser.d.mts.map +1 -1
- package/lib/beta-parser.d.ts +1 -3
- package/lib/beta-parser.d.ts.map +1 -1
- package/lib/beta-parser.js.map +1 -1
- package/lib/beta-parser.mjs.map +1 -1
- package/lib/environments/poller.js +180 -174
- package/lib/environments/poller.js.map +1 -1
- package/lib/environments/poller.mjs +180 -153
- package/lib/environments/poller.mjs.map +1 -1
- package/lib/environments/worker.js +375 -369
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +374 -329
- package/lib/environments/worker.mjs.map +1 -1
- package/lib/internal/stub.d.mts +2 -0
- package/lib/internal/stub.d.mts.map +1 -0
- package/lib/internal/stub.d.ts +2 -0
- package/lib/internal/stub.d.ts.map +1 -0
- package/lib/internal/stub.js +6 -0
- package/lib/internal/stub.js.map +1 -0
- package/lib/internal/stub.mjs +3 -0
- package/lib/internal/stub.mjs.map +1 -0
- package/lib/internal/types.d.mts +5 -0
- package/lib/internal/types.d.mts.map +1 -0
- package/lib/internal/types.d.ts +5 -0
- package/lib/internal/types.d.ts.map +1 -0
- package/lib/internal/types.js +3 -0
- package/lib/internal/types.js.map +1 -0
- package/lib/internal/types.mjs +2 -0
- package/lib/internal/types.mjs.map +1 -0
- package/lib/middleware.js +6 -1
- package/lib/middleware.js.map +1 -1
- package/lib/middleware.mjs +6 -1
- package/lib/middleware.mjs.map +1 -1
- package/lib/parser.d.mts +1 -3
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +1 -3
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.d.mts +21 -6
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts +21 -6
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +415 -310
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +414 -303
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/lib/tools/SessionToolRunner.js +241 -235
- package/lib/tools/SessionToolRunner.js.map +1 -1
- package/lib/tools/SessionToolRunner.mjs +241 -192
- package/lib/tools/SessionToolRunner.mjs.map +1 -1
- package/lib/tools/ToolError.js +39 -36
- package/lib/tools/ToolError.js.map +1 -1
- package/lib/tools/ToolError.mjs +39 -13
- package/lib/tools/ToolError.mjs.map +1 -1
- package/lib/transform-json-schema.js +7 -5
- package/lib/transform-json-schema.js.map +1 -1
- package/lib/transform-json-schema.mjs +7 -5
- package/lib/transform-json-schema.mjs.map +1 -1
- package/package.json +4 -3
- package/resources/beta/agents/agents.js +135 -132
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +135 -132
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/beta.d.mts +5 -5
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +5 -5
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +39 -36
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +39 -36
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/deployment-runs.d.mts +4 -0
- package/resources/beta/deployment-runs.d.mts.map +1 -1
- package/resources/beta/deployment-runs.d.ts +4 -0
- package/resources/beta/deployment-runs.d.ts.map +1 -1
- package/resources/beta/deployments.d.mts +5 -0
- package/resources/beta/deployments.d.mts.map +1 -1
- package/resources/beta/deployments.d.ts +5 -0
- package/resources/beta/deployments.d.ts.map +1 -1
- package/resources/beta/dreams.d.mts +19 -28
- package/resources/beta/dreams.d.mts.map +1 -1
- package/resources/beta/dreams.d.ts +19 -28
- package/resources/beta/dreams.d.ts.map +1 -1
- package/resources/beta/environments/environments.js +157 -154
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs +157 -154
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/environments/work.js +255 -252
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +255 -252
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memories.d.mts +6 -0
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +6 -0
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js +150 -147
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs +150 -147
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +7 -0
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +7 -0
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/messages/batches.d.mts +12 -1
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +12 -1
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +239 -101
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +239 -101
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +113 -110
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +113 -110
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/models.d.mts +22 -1
- package/resources/beta/models.d.mts.map +1 -1
- package/resources/beta/models.d.ts +22 -1
- package/resources/beta/models.d.ts.map +1 -1
- package/resources/beta/organization/federation/federation.js +11 -8
- package/resources/beta/organization/federation/federation.js.map +1 -1
- package/resources/beta/organization/federation/federation.mjs +11 -8
- package/resources/beta/organization/federation/federation.mjs.map +1 -1
- package/resources/beta/organization/federation/rules/rules.js +187 -184
- package/resources/beta/organization/federation/rules/rules.js.map +1 -1
- package/resources/beta/organization/federation/rules/rules.mjs +187 -184
- package/resources/beta/organization/federation/rules/rules.mjs.map +1 -1
- package/resources/beta/organization/index.d.mts +1 -1
- package/resources/beta/organization/index.d.mts.map +1 -1
- package/resources/beta/organization/index.d.ts +1 -1
- package/resources/beta/organization/index.d.ts.map +1 -1
- package/resources/beta/organization/index.js.map +1 -1
- package/resources/beta/organization/index.mjs.map +1 -1
- package/resources/beta/organization/organization.d.mts +2 -2
- package/resources/beta/organization/organization.d.mts.map +1 -1
- package/resources/beta/organization/organization.d.ts +2 -2
- package/resources/beta/organization/organization.d.ts.map +1 -1
- package/resources/beta/organization/organization.js +38 -35
- package/resources/beta/organization/organization.js.map +1 -1
- package/resources/beta/organization/organization.mjs +38 -35
- package/resources/beta/organization/organization.mjs.map +1 -1
- package/resources/beta/organization/rate-limits.d.mts +87 -5
- package/resources/beta/organization/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/rate-limits.d.ts +87 -5
- package/resources/beta/organization/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.js +163 -160
- package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.mjs +163 -160
- package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.mts +9 -4
- package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.ts +9 -4
- package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.js.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.mts +3 -3
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.ts +3 -3
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.js +97 -94
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.mjs +97 -94
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +12 -21
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +12 -21
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/events.js +118 -115
- package/resources/beta/sessions/events.js.map +1 -1
- package/resources/beta/sessions/events.mjs +118 -115
- package/resources/beta/sessions/events.mjs.map +1 -1
- package/resources/beta/sessions/resources.d.mts +0 -3
- package/resources/beta/sessions/resources.d.mts.map +1 -1
- package/resources/beta/sessions/resources.d.ts +0 -3
- package/resources/beta/sessions/resources.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +8 -2
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +8 -2
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js +161 -158
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs +161 -158
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/beta/sessions/threads/threads.js +86 -83
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs +86 -83
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/skills/skills.js +104 -101
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +104 -101
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/tunnels/certificates.d.mts +2 -2
- package/resources/beta/tunnels/certificates.d.ts +2 -2
- package/resources/beta/tunnels/tunnels.js +188 -185
- package/resources/beta/tunnels/tunnels.js.map +1 -1
- package/resources/beta/tunnels/tunnels.mjs +188 -185
- package/resources/beta/tunnels/tunnels.mjs.map +1 -1
- package/resources/beta/user-profiles.d.mts +45 -0
- package/resources/beta/user-profiles.d.mts.map +1 -1
- package/resources/beta/user-profiles.d.ts +45 -0
- package/resources/beta/user-profiles.d.ts.map +1 -1
- package/resources/beta/user-profiles.js +25 -10
- package/resources/beta/user-profiles.js.map +1 -1
- package/resources/beta/user-profiles.mjs +25 -10
- package/resources/beta/user-profiles.mjs.map +1 -1
- package/resources/beta/vaults/credentials.d.mts +19 -19
- package/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/vaults/credentials.d.ts +19 -19
- package/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/vaults/vaults.js +156 -153
- package/resources/beta/vaults/vaults.js.map +1 -1
- package/resources/beta/vaults/vaults.mjs +156 -153
- package/resources/beta/vaults/vaults.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +100 -63
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +100 -63
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +115 -112
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +115 -112
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/skills/skills.js +88 -85
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +88 -85
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/top-level.js +0 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +0 -1
- package/resources/top-level.mjs.map +1 -1
- package/src/client.ts +95 -72
- package/src/internal/node.browser.ts +7 -7
- package/src/internal/parse.ts +8 -11
- package/src/internal/shims.ts +4 -3
- package/src/internal/utils/bytes.ts +1 -1
- package/src/internal/utils/log.ts +16 -2
- package/src/lib/BetaMessageStream.ts +7 -5
- package/src/lib/beta-parser.ts +1 -3
- package/src/lib/internal/stub.ts +2 -0
- package/src/lib/internal/types.ts +2 -0
- package/src/lib/middleware.ts +6 -1
- package/src/lib/parser.ts +1 -3
- package/src/lib/tools/BetaToolRunner.ts +157 -24
- package/src/lib/transform-json-schema.ts +8 -6
- package/src/resources/beta/beta.ts +24 -1
- package/src/resources/beta/deployment-runs.ts +4 -0
- package/src/resources/beta/deployments.ts +5 -0
- package/src/resources/beta/dreams.ts +19 -28
- package/src/resources/beta/index.ts +11 -0
- package/src/resources/beta/memory-stores/memories.ts +6 -0
- package/src/resources/beta/memory-stores/memory-versions.ts +7 -0
- package/src/resources/beta/messages/batches.ts +13 -1
- package/src/resources/beta/messages/index.ts +10 -0
- package/src/resources/beta/messages/messages.ts +289 -100
- package/src/resources/beta/models.ts +25 -0
- package/src/resources/beta/organization/index.ts +6 -0
- package/src/resources/beta/organization/organization.ts +12 -0
- package/src/resources/beta/organization/rate-limits.ts +112 -4
- package/src/resources/beta/organization/workspaces/rate-limits.ts +16 -4
- package/src/resources/beta/organization/workspaces/workspaces.ts +3 -3
- package/src/resources/beta/sessions/events.ts +12 -21
- package/src/resources/beta/sessions/resources.ts +0 -3
- package/src/resources/beta/sessions/sessions.ts +8 -2
- package/src/resources/beta/tunnels/certificates.ts +2 -2
- package/src/resources/beta/user-profiles.ts +75 -10
- package/src/resources/beta/vaults/credentials.ts +19 -19
- package/src/resources/completions.ts +1 -1
- package/src/resources/index.ts +6 -0
- package/src/resources/messages/index.ts +6 -0
- package/src/resources/messages/messages.ts +128 -62
- package/src/tsconfig.json +13 -3
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.js +0 -6
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +0 -6
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/memories.js +4 -4
- package/tools/agent-toolset/memories.js.map +1 -1
- package/tools/agent-toolset/memories.mjs +2 -2
- package/tools/agent-toolset/memories.mjs.map +1 -1
- package/tools/agent-toolset/node.browser.js +12 -12
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.js +142 -139
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +132 -125
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.js +5 -5
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/sync-interval.js +3 -3
- package/tools/agent-toolset/sync-interval.js.map +1 -1
- package/tools/memory/node.browser.js +2 -2
- package/tools/memory/node.browser.js.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
|
@@ -4,190 +4,193 @@ import { Certificates, } from "./certificates.mjs";
|
|
|
4
4
|
import { PageCursor } from "../../../core/pagination.mjs";
|
|
5
5
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
6
|
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export var Tunnels = /* @__PURE__ */ (() => {
|
|
8
|
+
class Tunnels extends APIResource {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.certificates = new CertificatesAPI.Certificates(this._client);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The Tunnels API is in research preview. It requires the
|
|
15
|
+
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
16
|
+
* deprecation period. It supersedes the Admin API endpoints at
|
|
17
|
+
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
18
|
+
*
|
|
19
|
+
* Creates a tunnel. Creation allocates a fresh hostname and provisions the tunnel;
|
|
20
|
+
* it is not idempotent. The new tunnel rejects MCP traffic until at least one CA
|
|
21
|
+
* certificate is added.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const betaTunnel = await client.beta.tunnels.create();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(params, options) {
|
|
29
|
+
const { betas, workspace_id, ...body } = params;
|
|
30
|
+
return this._client.post('/v1/tunnels?beta=true', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
headers: buildHeaders([
|
|
34
|
+
{
|
|
35
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
36
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The Tunnels API is in research preview. It requires the
|
|
44
|
+
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
45
|
+
* deprecation period. It supersedes the Admin API endpoints at
|
|
46
|
+
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
47
|
+
*
|
|
48
|
+
* Fetches a tunnel by ID.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const betaTunnel = await client.beta.tunnels.retrieve(
|
|
53
|
+
* 'tunnel_id',
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
retrieve(tunnelID, params = {}, options) {
|
|
58
|
+
const { betas, workspace_id } = params ?? {};
|
|
59
|
+
return this._client.get(path `/v1/tunnels/${tunnelID}?beta=true`, {
|
|
60
|
+
...options,
|
|
61
|
+
headers: buildHeaders([
|
|
62
|
+
{
|
|
63
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
64
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
65
|
+
},
|
|
66
|
+
options?.headers,
|
|
67
|
+
]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The Tunnels API is in research preview. It requires the
|
|
72
|
+
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
73
|
+
* deprecation period. It supersedes the Admin API endpoints at
|
|
74
|
+
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
75
|
+
*
|
|
76
|
+
* Lists tunnels. Results are ordered by creation time, newest first; archived
|
|
77
|
+
* tunnels are excluded unless include_archived is set.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* // Automatically fetches more pages as needed.
|
|
82
|
+
* for await (const betaTunnel of client.beta.tunnels.list()) {
|
|
83
|
+
* // ...
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
list(params = {}, options) {
|
|
88
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
89
|
+
return this._client.getAPIList('/v1/tunnels?beta=true', (PageCursor), {
|
|
90
|
+
query,
|
|
91
|
+
...options,
|
|
92
|
+
headers: buildHeaders([
|
|
93
|
+
{
|
|
94
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
95
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
96
|
+
},
|
|
97
|
+
options?.headers,
|
|
98
|
+
]),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The Tunnels API is in research preview. It requires the
|
|
103
|
+
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
104
|
+
* deprecation period. It supersedes the Admin API endpoints at
|
|
105
|
+
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
106
|
+
*
|
|
107
|
+
* Archives a tunnel. Archival is irreversible: every non-archived certificate on
|
|
108
|
+
* the tunnel is archived in the same operation, the hostname is retired and never
|
|
109
|
+
* re-allocated, and the tunnel token is invalidated. Retrying against an
|
|
110
|
+
* already-archived tunnel returns the existing record unchanged.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const betaTunnel = await client.beta.tunnels.archive(
|
|
115
|
+
* 'tunnel_id',
|
|
116
|
+
* );
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
archive(tunnelID, params = {}, options) {
|
|
120
|
+
const { betas, workspace_id } = params ?? {};
|
|
121
|
+
return this._client.post(path `/v1/tunnels/${tunnelID}/archive?beta=true`, {
|
|
122
|
+
...options,
|
|
123
|
+
headers: buildHeaders([
|
|
124
|
+
{
|
|
125
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
126
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
127
|
+
},
|
|
128
|
+
options?.headers,
|
|
129
|
+
]),
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* The Tunnels API is in research preview. It requires the
|
|
134
|
+
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
135
|
+
* deprecation period. It supersedes the Admin API endpoints at
|
|
136
|
+
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
137
|
+
*
|
|
138
|
+
* Reveals a tunnel's connector token. The value is fetched live on each call;
|
|
139
|
+
* Anthropic does not store it. Repeated calls return the same value until the
|
|
140
|
+
* token is rotated. Exposed as POST so the token does not appear in intermediary
|
|
141
|
+
* access logs.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* const betaTunnelToken =
|
|
146
|
+
* await client.beta.tunnels.revealToken('tunnel_id');
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
revealToken(tunnelID, params = {}, options) {
|
|
150
|
+
const { betas, workspace_id } = params ?? {};
|
|
151
|
+
return this._client.post(path `/v1/tunnels/${tunnelID}/reveal_token?beta=true`, {
|
|
152
|
+
...options,
|
|
153
|
+
headers: buildHeaders([
|
|
154
|
+
{
|
|
155
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
156
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
157
|
+
},
|
|
158
|
+
options?.headers,
|
|
159
|
+
]),
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The Tunnels API is in research preview. It requires the
|
|
164
|
+
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
165
|
+
* deprecation period. It supersedes the Admin API endpoints at
|
|
166
|
+
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
167
|
+
*
|
|
168
|
+
* Rotates a tunnel's connector token. Rotation invalidates the current token for
|
|
169
|
+
* new connections and returns a fresh value; established connections are not
|
|
170
|
+
* severed. A connector restarted after rotation must use the new value.
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* const betaTunnelToken =
|
|
175
|
+
* await client.beta.tunnels.rotateToken('tunnel_id');
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
rotateToken(tunnelID, params, options) {
|
|
179
|
+
const { betas, workspace_id, ...body } = params;
|
|
180
|
+
return this._client.post(path `/v1/tunnels/${tunnelID}/rotate_token?beta=true`, {
|
|
181
|
+
body,
|
|
182
|
+
...options,
|
|
183
|
+
headers: buildHeaders([
|
|
184
|
+
{
|
|
185
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
186
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
187
|
+
},
|
|
188
|
+
options?.headers,
|
|
189
|
+
]),
|
|
190
|
+
});
|
|
191
|
+
}
|
|
11
192
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* deprecation period. It supersedes the Admin API endpoints at
|
|
16
|
-
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
17
|
-
*
|
|
18
|
-
* Creates a tunnel. Creation allocates a fresh hostname and provisions the tunnel;
|
|
19
|
-
* it is not idempotent. The new tunnel rejects MCP traffic until at least one CA
|
|
20
|
-
* certificate is added.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const betaTunnel = await client.beta.tunnels.create();
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
create(params, options) {
|
|
28
|
-
const { betas, workspace_id, ...body } = params;
|
|
29
|
-
return this._client.post('/v1/tunnels?beta=true', {
|
|
30
|
-
body,
|
|
31
|
-
...options,
|
|
32
|
-
headers: buildHeaders([
|
|
33
|
-
{
|
|
34
|
-
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
35
|
-
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
36
|
-
},
|
|
37
|
-
options?.headers,
|
|
38
|
-
]),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* The Tunnels API is in research preview. It requires the
|
|
43
|
-
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
44
|
-
* deprecation period. It supersedes the Admin API endpoints at
|
|
45
|
-
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
46
|
-
*
|
|
47
|
-
* Fetches a tunnel by ID.
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* const betaTunnel = await client.beta.tunnels.retrieve(
|
|
52
|
-
* 'tunnel_id',
|
|
53
|
-
* );
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
retrieve(tunnelID, params = {}, options) {
|
|
57
|
-
const { betas, workspace_id } = params ?? {};
|
|
58
|
-
return this._client.get(path `/v1/tunnels/${tunnelID}?beta=true`, {
|
|
59
|
-
...options,
|
|
60
|
-
headers: buildHeaders([
|
|
61
|
-
{
|
|
62
|
-
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
63
|
-
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
64
|
-
},
|
|
65
|
-
options?.headers,
|
|
66
|
-
]),
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* The Tunnels API is in research preview. It requires the
|
|
71
|
-
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
72
|
-
* deprecation period. It supersedes the Admin API endpoints at
|
|
73
|
-
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
74
|
-
*
|
|
75
|
-
* Lists tunnels. Results are ordered by creation time, newest first; archived
|
|
76
|
-
* tunnels are excluded unless include_archived is set.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```ts
|
|
80
|
-
* // Automatically fetches more pages as needed.
|
|
81
|
-
* for await (const betaTunnel of client.beta.tunnels.list()) {
|
|
82
|
-
* // ...
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
list(params = {}, options) {
|
|
87
|
-
const { betas, workspace_id, ...query } = params ?? {};
|
|
88
|
-
return this._client.getAPIList('/v1/tunnels?beta=true', (PageCursor), {
|
|
89
|
-
query,
|
|
90
|
-
...options,
|
|
91
|
-
headers: buildHeaders([
|
|
92
|
-
{
|
|
93
|
-
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
94
|
-
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
95
|
-
},
|
|
96
|
-
options?.headers,
|
|
97
|
-
]),
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* The Tunnels API is in research preview. It requires the
|
|
102
|
-
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
103
|
-
* deprecation period. It supersedes the Admin API endpoints at
|
|
104
|
-
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
105
|
-
*
|
|
106
|
-
* Archives a tunnel. Archival is irreversible: every non-archived certificate on
|
|
107
|
-
* the tunnel is archived in the same operation, the hostname is retired and never
|
|
108
|
-
* re-allocated, and the tunnel token is invalidated. Retrying against an
|
|
109
|
-
* already-archived tunnel returns the existing record unchanged.
|
|
110
|
-
*
|
|
111
|
-
* @example
|
|
112
|
-
* ```ts
|
|
113
|
-
* const betaTunnel = await client.beta.tunnels.archive(
|
|
114
|
-
* 'tunnel_id',
|
|
115
|
-
* );
|
|
116
|
-
* ```
|
|
117
|
-
*/
|
|
118
|
-
archive(tunnelID, params = {}, options) {
|
|
119
|
-
const { betas, workspace_id } = params ?? {};
|
|
120
|
-
return this._client.post(path `/v1/tunnels/${tunnelID}/archive?beta=true`, {
|
|
121
|
-
...options,
|
|
122
|
-
headers: buildHeaders([
|
|
123
|
-
{
|
|
124
|
-
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
125
|
-
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
126
|
-
},
|
|
127
|
-
options?.headers,
|
|
128
|
-
]),
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* The Tunnels API is in research preview. It requires the
|
|
133
|
-
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
134
|
-
* deprecation period. It supersedes the Admin API endpoints at
|
|
135
|
-
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
136
|
-
*
|
|
137
|
-
* Reveals a tunnel's connector token. The value is fetched live on each call;
|
|
138
|
-
* Anthropic does not store it. Repeated calls return the same value until the
|
|
139
|
-
* token is rotated. Exposed as POST so the token does not appear in intermediary
|
|
140
|
-
* access logs.
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```ts
|
|
144
|
-
* const betaTunnelToken =
|
|
145
|
-
* await client.beta.tunnels.revealToken('tunnel_id');
|
|
146
|
-
* ```
|
|
147
|
-
*/
|
|
148
|
-
revealToken(tunnelID, params = {}, options) {
|
|
149
|
-
const { betas, workspace_id } = params ?? {};
|
|
150
|
-
return this._client.post(path `/v1/tunnels/${tunnelID}/reveal_token?beta=true`, {
|
|
151
|
-
...options,
|
|
152
|
-
headers: buildHeaders([
|
|
153
|
-
{
|
|
154
|
-
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
155
|
-
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
156
|
-
},
|
|
157
|
-
options?.headers,
|
|
158
|
-
]),
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* The Tunnels API is in research preview. It requires the
|
|
163
|
-
* `anthropic-beta: mcp-tunnels-2026-06-22` header and may change without a
|
|
164
|
-
* deprecation period. It supersedes the Admin API endpoints at
|
|
165
|
-
* `/v1/organizations/tunnels`, which remain available during a migration window.
|
|
166
|
-
*
|
|
167
|
-
* Rotates a tunnel's connector token. Rotation invalidates the current token for
|
|
168
|
-
* new connections and returns a fresh value; established connections are not
|
|
169
|
-
* severed. A connector restarted after rotation must use the new value.
|
|
170
|
-
*
|
|
171
|
-
* @example
|
|
172
|
-
* ```ts
|
|
173
|
-
* const betaTunnelToken =
|
|
174
|
-
* await client.beta.tunnels.rotateToken('tunnel_id');
|
|
175
|
-
* ```
|
|
176
|
-
*/
|
|
177
|
-
rotateToken(tunnelID, params, options) {
|
|
178
|
-
const { betas, workspace_id, ...body } = params;
|
|
179
|
-
return this._client.post(path `/v1/tunnels/${tunnelID}/rotate_token?beta=true`, {
|
|
180
|
-
body,
|
|
181
|
-
...options,
|
|
182
|
-
headers: buildHeaders([
|
|
183
|
-
{
|
|
184
|
-
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
185
|
-
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
186
|
-
},
|
|
187
|
-
options?.headers,
|
|
188
|
-
]),
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
Tunnels.Certificates = Certificates;
|
|
193
|
+
Tunnels.Certificates = Certificates;
|
|
194
|
+
return Tunnels;
|
|
195
|
+
})();
|
|
193
196
|
//# sourceMappingURL=tunnels.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnels.mjs","sourceRoot":"","sources":["../../../src/resources/beta/tunnels/tunnels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAOL,YAAY,GACb,2BAAuB;AAExB,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAC1F,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,
|
|
1
|
+
{"version":3,"file":"tunnels.mjs","sourceRoot":"","sources":["../../../src/resources/beta/tunnels/tunnels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAOL,YAAY,GACb,2BAAuB;AAExB,OAAO,EAAE,UAAU,EAAsC,qCAAiC;AAC1F,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM;IAAN,MAAa,OAAQ,SAAQ,WAA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,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -277,12 +277,30 @@ export interface UserProfileCreateParams {
|
|
|
277
277
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
278
278
|
*/
|
|
279
279
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
280
|
+
/**
|
|
281
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
282
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
283
|
+
*
|
|
284
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
285
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
286
|
+
* match that Workspace.
|
|
287
|
+
*/
|
|
288
|
+
workspace_id?: string;
|
|
280
289
|
}
|
|
281
290
|
export interface UserProfileRetrieveParams {
|
|
282
291
|
/**
|
|
283
292
|
* Optional header to specify the beta version(s) you want to use.
|
|
284
293
|
*/
|
|
285
294
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
295
|
+
/**
|
|
296
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
297
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
298
|
+
*
|
|
299
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
300
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
301
|
+
* match that Workspace.
|
|
302
|
+
*/
|
|
303
|
+
workspace_id?: string;
|
|
286
304
|
}
|
|
287
305
|
export interface UserProfileUpdateParams {
|
|
288
306
|
/**
|
|
@@ -329,6 +347,15 @@ export interface UserProfileUpdateParams {
|
|
|
329
347
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
330
348
|
*/
|
|
331
349
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
350
|
+
/**
|
|
351
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
352
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
353
|
+
*
|
|
354
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
355
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
356
|
+
* match that Workspace.
|
|
357
|
+
*/
|
|
358
|
+
workspace_id?: string;
|
|
332
359
|
}
|
|
333
360
|
export interface UserProfileListParams extends PageCursorParams {
|
|
334
361
|
/**
|
|
@@ -343,12 +370,30 @@ export interface UserProfileListParams extends PageCursorParams {
|
|
|
343
370
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
344
371
|
*/
|
|
345
372
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
373
|
+
/**
|
|
374
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
375
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
376
|
+
*
|
|
377
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
378
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
379
|
+
* match that Workspace.
|
|
380
|
+
*/
|
|
381
|
+
workspace_id?: string;
|
|
346
382
|
}
|
|
347
383
|
export interface UserProfileCreateEnrollmentURLParams {
|
|
348
384
|
/**
|
|
349
385
|
* Optional header to specify the beta version(s) you want to use.
|
|
350
386
|
*/
|
|
351
387
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
388
|
+
/**
|
|
389
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
390
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
391
|
+
*
|
|
392
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
393
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
394
|
+
* match that Workspace.
|
|
395
|
+
*/
|
|
396
|
+
workspace_id?: string;
|
|
352
397
|
}
|
|
353
398
|
export declare namespace UserProfiles {
|
|
354
399
|
export { type BetaUserProfile as BetaUserProfile, type BetaUserProfileEnrollmentURL as BetaUserProfileEnrollmentURL, type BetaUserProfileExternalUserDetails as BetaUserProfileExternalUserDetails, type BetaUserProfileExternalUserDetailsParams as BetaUserProfileExternalUserDetailsParams, type BetaUserProfileTrustGrant as BetaUserProfileTrustGrant, type BetaUserProfilesPageCursor as BetaUserProfilesPageCursor, type UserProfileCreateParams as UserProfileCreateParams, type UserProfileRetrieveParams as UserProfileRetrieveParams, type UserProfileUpdateParams as UserProfileUpdateParams, type UserProfileListParams as UserProfileListParams, type UserProfileCreateEnrollmentURLParams as UserProfileCreateEnrollmentURLParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profiles.d.mts","sourceRoot":"","sources":["../../src/resources/beta/user-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,kCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"user-profiles.d.mts","sourceRoot":"","sources":["../../src/resources/beta/user-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,kCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,G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AK,oCAAoC,IAAI,oCAAoC,GAClF,CAAC;CACH"}
|
|
@@ -277,12 +277,30 @@ export interface UserProfileCreateParams {
|
|
|
277
277
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
278
278
|
*/
|
|
279
279
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
280
|
+
/**
|
|
281
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
282
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
283
|
+
*
|
|
284
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
285
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
286
|
+
* match that Workspace.
|
|
287
|
+
*/
|
|
288
|
+
workspace_id?: string;
|
|
280
289
|
}
|
|
281
290
|
export interface UserProfileRetrieveParams {
|
|
282
291
|
/**
|
|
283
292
|
* Optional header to specify the beta version(s) you want to use.
|
|
284
293
|
*/
|
|
285
294
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
295
|
+
/**
|
|
296
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
297
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
298
|
+
*
|
|
299
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
300
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
301
|
+
* match that Workspace.
|
|
302
|
+
*/
|
|
303
|
+
workspace_id?: string;
|
|
286
304
|
}
|
|
287
305
|
export interface UserProfileUpdateParams {
|
|
288
306
|
/**
|
|
@@ -329,6 +347,15 @@ export interface UserProfileUpdateParams {
|
|
|
329
347
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
330
348
|
*/
|
|
331
349
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
350
|
+
/**
|
|
351
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
352
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
353
|
+
*
|
|
354
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
355
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
356
|
+
* match that Workspace.
|
|
357
|
+
*/
|
|
358
|
+
workspace_id?: string;
|
|
332
359
|
}
|
|
333
360
|
export interface UserProfileListParams extends PageCursorParams {
|
|
334
361
|
/**
|
|
@@ -343,12 +370,30 @@ export interface UserProfileListParams extends PageCursorParams {
|
|
|
343
370
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
344
371
|
*/
|
|
345
372
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
373
|
+
/**
|
|
374
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
375
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
376
|
+
*
|
|
377
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
378
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
379
|
+
* match that Workspace.
|
|
380
|
+
*/
|
|
381
|
+
workspace_id?: string;
|
|
346
382
|
}
|
|
347
383
|
export interface UserProfileCreateEnrollmentURLParams {
|
|
348
384
|
/**
|
|
349
385
|
* Optional header to specify the beta version(s) you want to use.
|
|
350
386
|
*/
|
|
351
387
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
388
|
+
/**
|
|
389
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
390
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
391
|
+
*
|
|
392
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
393
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
394
|
+
* match that Workspace.
|
|
395
|
+
*/
|
|
396
|
+
workspace_id?: string;
|
|
352
397
|
}
|
|
353
398
|
export declare namespace UserProfiles {
|
|
354
399
|
export { type BetaUserProfile as BetaUserProfile, type BetaUserProfileEnrollmentURL as BetaUserProfileEnrollmentURL, type BetaUserProfileExternalUserDetails as BetaUserProfileExternalUserDetails, type BetaUserProfileExternalUserDetailsParams as BetaUserProfileExternalUserDetailsParams, type BetaUserProfileTrustGrant as BetaUserProfileTrustGrant, type BetaUserProfilesPageCursor as BetaUserProfilesPageCursor, type UserProfileCreateParams as UserProfileCreateParams, type UserProfileRetrieveParams as UserProfileRetrieveParams, type UserProfileUpdateParams as UserProfileUpdateParams, type UserProfileListParams as UserProfileListParams, type UserProfileCreateEnrollmentURLParams as UserProfileCreateEnrollmentURLParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profiles.d.ts","sourceRoot":"","sources":["../../src/resources/beta/user-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,iCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"user-profiles.d.ts","sourceRoot":"","sources":["../../src/resources/beta/user-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,iCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,E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