@anthropic-ai/sdk 0.122.0 → 0.124.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 +62 -0
- package/client.d.mts +6 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -5
- package/client.d.ts.map +1 -1
- package/client.js +2 -1
- package/client.js.map +1 -1
- package/client.mjs +2 -1
- package/client.mjs.map +1 -1
- package/core/credentials.d.mts.map +1 -1
- package/core/credentials.d.ts.map +1 -1
- package/core/credentials.js +5 -7
- package/core/credentials.js.map +1 -1
- package/core/credentials.mjs +5 -7
- package/core/credentials.mjs.map +1 -1
- package/core/streaming.js +4 -2
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +4 -2
- package/core/streaming.mjs.map +1 -1
- package/internal/file-store.d.mts.map +1 -1
- package/internal/file-store.d.ts.map +1 -1
- package/internal/file-store.js +23 -25
- package/internal/file-store.js.map +1 -1
- package/internal/file-store.mjs +5 -6
- package/internal/file-store.mjs.map +1 -1
- package/internal/node.browser.d.mts +9 -0
- package/internal/node.browser.d.mts.map +1 -0
- package/internal/node.browser.d.ts +9 -0
- package/internal/node.browser.d.ts.map +1 -0
- package/internal/node.browser.js +22 -0
- package/internal/node.browser.js.map +1 -0
- package/internal/node.browser.mjs +19 -0
- package/internal/node.browser.mjs.map +1 -0
- package/internal/node.d.mts +14 -0
- package/internal/node.d.mts.map +1 -0
- package/internal/node.d.ts +14 -0
- package/internal/node.d.ts.map +1 -0
- package/internal/node.js +24 -0
- package/internal/node.js.map +1 -0
- package/internal/node.mjs +14 -0
- package/internal/node.mjs.map +1 -0
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +3 -0
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +3 -0
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/credentials/credential-chain.js +1 -1
- package/lib/credentials/credential-chain.js.map +1 -1
- package/lib/credentials/credential-chain.mjs +1 -1
- package/lib/credentials/credential-chain.mjs.map +1 -1
- package/lib/credentials/identity-token.js +1 -1
- package/lib/credentials/identity-token.js.map +1 -1
- package/lib/credentials/identity-token.mjs +1 -1
- package/lib/credentials/identity-token.mjs.map +1 -1
- package/lib/credentials/types.d.mts.map +1 -1
- package/lib/credentials/types.d.ts.map +1 -1
- package/lib/credentials/types.js +2 -3
- package/lib/credentials/types.js.map +1 -1
- package/lib/credentials/types.mjs +2 -3
- package/lib/credentials/types.mjs.map +1 -1
- package/lib/credentials/user-oauth.js +1 -1
- package/lib/credentials/user-oauth.js.map +1 -1
- package/lib/credentials/user-oauth.mjs +1 -1
- package/lib/credentials/user-oauth.mjs.map +1 -1
- package/lib/middleware.d.mts.map +1 -1
- package/lib/middleware.d.ts.map +1 -1
- package/lib/middleware.js +30 -7
- package/lib/middleware.js.map +1 -1
- package/lib/middleware.mjs +30 -7
- package/lib/middleware.mjs.map +1 -1
- package/package.json +3 -1
- package/resources/beta/agents/agents.d.mts +46 -1
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +46 -1
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +25 -10
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +25 -10
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/versions.d.mts +9 -0
- package/resources/beta/agents/versions.d.mts.map +1 -1
- package/resources/beta/agents/versions.d.ts +9 -0
- package/resources/beta/agents/versions.d.ts.map +1 -1
- package/resources/beta/agents/versions.js +5 -2
- package/resources/beta/agents/versions.js.map +1 -1
- package/resources/beta/agents/versions.mjs +5 -2
- package/resources/beta/agents/versions.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.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/deployment-runs.d.mts +24 -6
- package/resources/beta/deployment-runs.d.mts.map +1 -1
- package/resources/beta/deployment-runs.d.ts +24 -6
- package/resources/beta/deployment-runs.d.ts.map +1 -1
- package/resources/beta/deployment-runs.js +10 -4
- package/resources/beta/deployment-runs.js.map +1 -1
- package/resources/beta/deployment-runs.mjs +10 -4
- package/resources/beta/deployment-runs.mjs.map +1 -1
- package/resources/beta/deployments.d.mts +75 -2
- package/resources/beta/deployments.d.mts.map +1 -1
- package/resources/beta/deployments.d.ts +75 -2
- package/resources/beta/deployments.d.ts.map +1 -1
- package/resources/beta/deployments.js +40 -16
- package/resources/beta/deployments.js.map +1 -1
- package/resources/beta/deployments.mjs +40 -16
- package/resources/beta/deployments.mjs.map +1 -1
- package/resources/beta/dreams.d.mts +73 -1
- package/resources/beta/dreams.d.mts.map +1 -1
- package/resources/beta/dreams.d.ts +73 -1
- package/resources/beta/dreams.d.ts.map +1 -1
- package/resources/beta/dreams.js +25 -10
- package/resources/beta/dreams.js.map +1 -1
- package/resources/beta/dreams.mjs +25 -10
- package/resources/beta/dreams.mjs.map +1 -1
- package/resources/beta/environments/environments.d.mts +54 -0
- package/resources/beta/environments/environments.d.mts.map +1 -1
- package/resources/beta/environments/environments.d.ts +54 -0
- package/resources/beta/environments/environments.d.ts.map +1 -1
- package/resources/beta/environments/environments.js +30 -12
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs +30 -12
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/environments/work.d.mts +36 -0
- package/resources/beta/environments/work.d.mts.map +1 -1
- package/resources/beta/environments/work.d.ts +36 -0
- package/resources/beta/environments/work.d.ts.map +1 -1
- package/resources/beta/environments/work.js +20 -8
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +20 -8
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/files.d.mts +48 -1
- package/resources/beta/files.d.mts.map +1 -1
- package/resources/beta/files.d.ts +48 -1
- package/resources/beta/files.d.ts.map +1 -1
- package/resources/beta/files.js +22 -9
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +22 -9
- package/resources/beta/files.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 +51 -4
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +51 -4
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memories.js +25 -10
- package/resources/beta/memory-stores/memories.js.map +1 -1
- package/resources/beta/memory-stores/memories.mjs +25 -10
- package/resources/beta/memory-stores/memories.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.mts +54 -0
- package/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.ts +54 -0
- package/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js +30 -12
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs +30 -12
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +31 -4
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +31 -4
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.js +15 -6
- package/resources/beta/memory-stores/memory-versions.js.map +1 -1
- package/resources/beta/memory-stores/memory-versions.mjs +15 -6
- package/resources/beta/memory-stores/memory-versions.mjs.map +1 -1
- package/resources/beta/messages/batches.d.mts +54 -0
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +54 -0
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/batches.js +25 -11
- package/resources/beta/messages/batches.js.map +1 -1
- package/resources/beta/messages/batches.mjs +25 -11
- package/resources/beta/messages/batches.mjs.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 +148 -3
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +148 -3
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +4 -2
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +4 -2
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/models.d.mts +18 -0
- package/resources/beta/models.d.mts.map +1 -1
- package/resources/beta/models.d.ts +18 -0
- package/resources/beta/models.d.ts.map +1 -1
- package/resources/beta/models.js +10 -4
- package/resources/beta/models.js.map +1 -1
- package/resources/beta/models.mjs +10 -4
- package/resources/beta/models.mjs.map +1 -1
- package/resources/beta/organization/compliance-settings.d.mts +76 -0
- package/resources/beta/organization/compliance-settings.d.mts.map +1 -0
- package/resources/beta/organization/compliance-settings.d.ts +76 -0
- package/resources/beta/organization/compliance-settings.d.ts.map +1 -0
- package/resources/beta/organization/compliance-settings.js +52 -0
- package/resources/beta/organization/compliance-settings.js.map +1 -0
- package/resources/beta/organization/compliance-settings.mjs +48 -0
- package/resources/beta/organization/compliance-settings.mjs.map +1 -0
- package/resources/beta/organization/external-keys.d.mts +6 -3
- package/resources/beta/organization/external-keys.d.mts.map +1 -1
- package/resources/beta/organization/external-keys.d.ts +6 -3
- package/resources/beta/organization/external-keys.d.ts.map +1 -1
- package/resources/beta/organization/index.d.mts +1 -0
- package/resources/beta/organization/index.d.mts.map +1 -1
- package/resources/beta/organization/index.d.ts +1 -0
- package/resources/beta/organization/index.d.ts.map +1 -1
- package/resources/beta/organization/index.js +3 -1
- package/resources/beta/organization/index.js.map +1 -1
- package/resources/beta/organization/index.mjs +1 -0
- package/resources/beta/organization/index.mjs.map +1 -1
- package/resources/beta/organization/organization.d.mts +4 -0
- package/resources/beta/organization/organization.d.mts.map +1 -1
- package/resources/beta/organization/organization.d.ts +4 -0
- package/resources/beta/organization/organization.d.ts.map +1 -1
- package/resources/beta/organization/organization.js +4 -0
- package/resources/beta/organization/organization.js.map +1 -1
- package/resources/beta/organization/organization.mjs +4 -0
- package/resources/beta/organization/organization.mjs.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.mts +28 -12
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.ts +28 -12
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +28 -1
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +28 -1
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/events.js +15 -6
- package/resources/beta/sessions/events.js.map +1 -1
- package/resources/beta/sessions/events.mjs +15 -6
- package/resources/beta/sessions/events.mjs.map +1 -1
- package/resources/beta/sessions/resources.d.mts +45 -0
- package/resources/beta/sessions/resources.d.mts.map +1 -1
- package/resources/beta/sessions/resources.d.ts +45 -0
- package/resources/beta/sessions/resources.d.ts.map +1 -1
- package/resources/beta/sessions/resources.js +25 -10
- package/resources/beta/sessions/resources.js.map +1 -1
- package/resources/beta/sessions/resources.mjs +25 -10
- package/resources/beta/sessions/resources.mjs.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +64 -10
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +64 -10
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js +30 -12
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs +30 -12
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/beta/sessions/threads/events.d.mts +18 -0
- package/resources/beta/sessions/threads/events.d.mts.map +1 -1
- package/resources/beta/sessions/threads/events.d.ts +18 -0
- package/resources/beta/sessions/threads/events.d.ts.map +1 -1
- package/resources/beta/sessions/threads/events.js +10 -4
- package/resources/beta/sessions/threads/events.js.map +1 -1
- package/resources/beta/sessions/threads/events.mjs +10 -4
- package/resources/beta/sessions/threads/events.mjs.map +1 -1
- package/resources/beta/sessions/threads/threads.d.mts +27 -0
- package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
- package/resources/beta/sessions/threads/threads.d.ts +27 -0
- package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
- package/resources/beta/sessions/threads/threads.js +15 -6
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs +15 -6
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/skills/skills.d.mts +36 -0
- package/resources/beta/skills/skills.d.mts.map +1 -1
- package/resources/beta/skills/skills.d.ts +36 -0
- package/resources/beta/skills/skills.d.ts.map +1 -1
- package/resources/beta/skills/skills.js +20 -8
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +20 -8
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/skills/versions.d.mts +45 -0
- package/resources/beta/skills/versions.d.mts.map +1 -1
- package/resources/beta/skills/versions.d.ts +45 -0
- package/resources/beta/skills/versions.d.ts.map +1 -1
- package/resources/beta/skills/versions.js +22 -9
- package/resources/beta/skills/versions.js.map +1 -1
- package/resources/beta/skills/versions.mjs +22 -9
- package/resources/beta/skills/versions.mjs.map +1 -1
- package/resources/beta/tunnels/certificates.d.mts +36 -0
- package/resources/beta/tunnels/certificates.d.mts.map +1 -1
- package/resources/beta/tunnels/certificates.d.ts +36 -0
- package/resources/beta/tunnels/certificates.d.ts.map +1 -1
- package/resources/beta/tunnels/certificates.js +20 -8
- package/resources/beta/tunnels/certificates.js.map +1 -1
- package/resources/beta/tunnels/certificates.mjs +20 -8
- package/resources/beta/tunnels/certificates.mjs.map +1 -1
- package/resources/beta/tunnels/tunnels.d.mts +54 -0
- package/resources/beta/tunnels/tunnels.d.mts.map +1 -1
- package/resources/beta/tunnels/tunnels.d.ts +54 -0
- package/resources/beta/tunnels/tunnels.d.ts.map +1 -1
- package/resources/beta/tunnels/tunnels.js +30 -12
- package/resources/beta/tunnels/tunnels.js.map +1 -1
- package/resources/beta/tunnels/tunnels.mjs +30 -12
- package/resources/beta/tunnels/tunnels.mjs.map +1 -1
- package/resources/beta/user-profiles.d.mts +21 -25
- package/resources/beta/user-profiles.d.mts.map +1 -1
- package/resources/beta/user-profiles.d.ts +21 -25
- package/resources/beta/user-profiles.d.ts.map +1 -1
- package/resources/beta/vaults/credentials.d.mts +63 -0
- package/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/vaults/credentials.d.ts +63 -0
- package/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/vaults/credentials.js +35 -14
- package/resources/beta/vaults/credentials.js.map +1 -1
- package/resources/beta/vaults/credentials.mjs +35 -14
- package/resources/beta/vaults/credentials.mjs.map +1 -1
- package/resources/beta/vaults/vaults.d.mts +54 -0
- package/resources/beta/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/vaults/vaults.d.ts +54 -0
- package/resources/beta/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/vaults/vaults.js +30 -12
- package/resources/beta/vaults/vaults.js.map +1 -1
- package/resources/beta/vaults/vaults.mjs +30 -12
- package/resources/beta/vaults/vaults.mjs.map +1 -1
- package/resources/completions.d.mts +9 -0
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +9 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +5 -2
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +5 -2
- package/resources/completions.mjs.map +1 -1
- package/resources/files.d.mts +104 -15
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +104 -15
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +79 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +79 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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/batches.d.mts +68 -6
- package/resources/messages/batches.d.mts.map +1 -1
- package/resources/messages/batches.d.ts +68 -6
- package/resources/messages/batches.d.ts.map +1 -1
- package/resources/messages/batches.js +52 -13
- package/resources/messages/batches.js.map +1 -1
- package/resources/messages/batches.mjs +52 -13
- package/resources/messages/batches.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 +21 -5
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +21 -5
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +10 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +10 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/models.d.mts +31 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +31 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +23 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +23 -4
- package/resources/models.mjs.map +1 -1
- package/resources/skills/index.d.mts +1 -1
- package/resources/skills/index.d.mts.map +1 -1
- package/resources/skills/index.d.ts +1 -1
- package/resources/skills/index.d.ts.map +1 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/skills.d.mts +75 -10
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +75 -10
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +64 -8
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +64 -8
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions.d.mts +75 -5
- package/resources/skills/versions.d.mts.map +1 -1
- package/resources/skills/versions.d.ts +75 -5
- package/resources/skills/versions.d.ts.map +1 -1
- package/resources/skills/versions.js +67 -7
- package/resources/skills/versions.js.map +1 -1
- package/resources/skills/versions.mjs +67 -7
- package/resources/skills/versions.mjs.map +1 -1
- package/src/client.ts +12 -1
- package/src/core/credentials.ts +5 -7
- package/src/core/streaming.ts +4 -2
- package/src/internal/file-store.ts +11 -10
- package/src/internal/node.browser.ts +22 -0
- package/src/internal/node.ts +14 -0
- package/src/lib/BetaMessageStream.ts +4 -0
- package/src/lib/credentials/credential-chain.ts +1 -1
- package/src/lib/credentials/identity-token.ts +1 -1
- package/src/lib/credentials/types.ts +2 -3
- package/src/lib/credentials/user-oauth.ts +1 -1
- package/src/lib/middleware.ts +33 -9
- package/src/resources/beta/agents/agents.ts +76 -10
- package/src/resources/beta/agents/versions.ts +15 -2
- package/src/resources/beta/beta.ts +16 -1
- package/src/resources/beta/deployment-runs.ts +36 -10
- package/src/resources/beta/deployments.ts +123 -18
- package/src/resources/beta/dreams.ts +117 -10
- package/src/resources/beta/environments/environments.ts +90 -12
- package/src/resources/beta/environments/work.ts +60 -8
- package/src/resources/beta/files.ts +75 -11
- package/src/resources/beta/index.ts +6 -0
- package/src/resources/beta/memory-stores/memories.ts +81 -14
- package/src/resources/beta/memory-stores/memory-stores.ts +90 -12
- package/src/resources/beta/memory-stores/memory-versions.ts +49 -10
- package/src/resources/beta/messages/batches.ts +85 -11
- package/src/resources/beta/messages/index.ts +4 -0
- package/src/resources/beta/messages/messages.ts +173 -10
- package/src/resources/beta/models.ts +30 -4
- package/src/resources/beta/organization/compliance-settings.ts +106 -0
- package/src/resources/beta/organization/external-keys.ts +6 -3
- package/src/resources/beta/organization/index.ts +11 -0
- package/src/resources/beta/organization/organization.ts +28 -0
- package/src/resources/beta/organization/workspaces/workspaces.ts +28 -12
- package/src/resources/beta/sessions/events.ts +46 -7
- package/src/resources/beta/sessions/resources.ts +75 -10
- package/src/resources/beta/sessions/sessions.ts +100 -22
- package/src/resources/beta/sessions/threads/events.ts +30 -4
- package/src/resources/beta/sessions/threads/threads.ts +45 -6
- package/src/resources/beta/skills/skills.ts +60 -8
- package/src/resources/beta/skills/versions.ts +72 -9
- package/src/resources/beta/tunnels/certificates.ts +60 -8
- package/src/resources/beta/tunnels/tunnels.ts +90 -12
- package/src/resources/beta/user-profiles.ts +24 -27
- package/src/resources/beta/vaults/credentials.ts +105 -14
- package/src/resources/beta/vaults/vaults.ts +90 -12
- package/src/resources/completions.ts +15 -2
- package/src/resources/files.ts +161 -18
- package/src/resources/index.ts +5 -0
- package/src/resources/messages/batches.ts +137 -13
- package/src/resources/messages/index.ts +4 -0
- package/src/resources/messages/messages.ts +40 -12
- package/src/resources/models.ts +43 -4
- package/src/resources/skills/index.ts +2 -0
- package/src/resources/skills/skills.ts +127 -13
- package/src/resources/skills/versions.ts +115 -11
- package/src/tools/agent-toolset/fs-util.ts +22 -9
- package/src/tools/agent-toolset/memories.ts +5 -3
- package/src/tools/agent-toolset/skills.ts +5 -10
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.d.mts +11 -4
- package/tools/agent-toolset/fs-util.d.mts.map +1 -1
- package/tools/agent-toolset/fs-util.d.ts +11 -4
- package/tools/agent-toolset/fs-util.d.ts.map +1 -1
- package/tools/agent-toolset/fs-util.js +27 -19
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +17 -8
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/memories.d.mts.map +1 -1
- package/tools/agent-toolset/memories.d.ts.map +1 -1
- package/tools/agent-toolset/memories.js +6 -4
- package/tools/agent-toolset/memories.js.map +1 -1
- package/tools/agent-toolset/memories.mjs +5 -3
- package/tools/agent-toolset/memories.mjs.map +1 -1
- package/tools/agent-toolset/skills.d.mts.map +1 -1
- package/tools/agent-toolset/skills.d.ts.map +1 -1
- package/tools/agent-toolset/skills.js +15 -21
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/skills.mjs +4 -9
- package/tools/agent-toolset/skills.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
|
@@ -27,7 +27,7 @@ export class Versions extends APIResource {
|
|
|
27
27
|
params: VersionCreateParams,
|
|
28
28
|
options?: RequestOptions,
|
|
29
29
|
): APIPromise<BetaSkillVersion> {
|
|
30
|
-
const { betas, ...body } = params;
|
|
30
|
+
const { betas, workspace_id, ...body } = params;
|
|
31
31
|
return this._client.post(
|
|
32
32
|
path`/v1/skills/${skillID}/versions?beta=true`,
|
|
33
33
|
multipartFormRequestOptions(
|
|
@@ -35,7 +35,10 @@ export class Versions extends APIResource {
|
|
|
35
35
|
body,
|
|
36
36
|
...options,
|
|
37
37
|
headers: buildHeaders([
|
|
38
|
-
{
|
|
38
|
+
{
|
|
39
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
40
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
41
|
+
},
|
|
39
42
|
options?.headers,
|
|
40
43
|
]),
|
|
41
44
|
},
|
|
@@ -61,11 +64,14 @@ export class Versions extends APIResource {
|
|
|
61
64
|
params: VersionRetrieveParams,
|
|
62
65
|
options?: RequestOptions,
|
|
63
66
|
): APIPromise<BetaSkillVersion> {
|
|
64
|
-
const { skill_id, betas } = params;
|
|
67
|
+
const { skill_id, betas, workspace_id } = params;
|
|
65
68
|
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
|
|
66
69
|
...options,
|
|
67
70
|
headers: buildHeaders([
|
|
68
|
-
{
|
|
71
|
+
{
|
|
72
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
73
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
74
|
+
},
|
|
69
75
|
options?.headers,
|
|
70
76
|
]),
|
|
71
77
|
});
|
|
@@ -89,7 +95,7 @@ export class Versions extends APIResource {
|
|
|
89
95
|
params: VersionListParams | null | undefined = {},
|
|
90
96
|
options?: RequestOptions,
|
|
91
97
|
): PagePromise<BetaSkillVersionsPageCursor, BetaSkillVersion> {
|
|
92
|
-
const { betas, ...query } = params ?? {};
|
|
98
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
93
99
|
return this._client.getAPIList(
|
|
94
100
|
path`/v1/skills/${skillID}/versions?beta=true`,
|
|
95
101
|
PageCursor<BetaSkillVersion>,
|
|
@@ -97,7 +103,10 @@ export class Versions extends APIResource {
|
|
|
97
103
|
query,
|
|
98
104
|
...options,
|
|
99
105
|
headers: buildHeaders([
|
|
100
|
-
{
|
|
106
|
+
{
|
|
107
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
108
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
109
|
+
},
|
|
101
110
|
options?.headers,
|
|
102
111
|
]),
|
|
103
112
|
},
|
|
@@ -120,11 +129,14 @@ export class Versions extends APIResource {
|
|
|
120
129
|
params: VersionDeleteParams,
|
|
121
130
|
options?: RequestOptions,
|
|
122
131
|
): APIPromise<BetaDeletedSkillVersion> {
|
|
123
|
-
const { skill_id, betas } = params;
|
|
132
|
+
const { skill_id, betas, workspace_id } = params;
|
|
124
133
|
return this._client.delete(path`/v1/skills/${skill_id}/versions/${version}?beta=true`, {
|
|
125
134
|
...options,
|
|
126
135
|
headers: buildHeaders([
|
|
127
|
-
{
|
|
136
|
+
{
|
|
137
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
138
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
139
|
+
},
|
|
128
140
|
options?.headers,
|
|
129
141
|
]),
|
|
130
142
|
});
|
|
@@ -145,13 +157,14 @@ export class Versions extends APIResource {
|
|
|
145
157
|
* ```
|
|
146
158
|
*/
|
|
147
159
|
download(version: string, params: VersionDownloadParams, options?: RequestOptions): APIPromise<Response> {
|
|
148
|
-
const { skill_id, betas } = params;
|
|
160
|
+
const { skill_id, betas, workspace_id } = params;
|
|
149
161
|
return this._client.get(path`/v1/skills/${skill_id}/versions/${version}/content?beta=true`, {
|
|
150
162
|
...options,
|
|
151
163
|
headers: buildHeaders([
|
|
152
164
|
{
|
|
153
165
|
Accept: 'application/binary',
|
|
154
166
|
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
167
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
155
168
|
},
|
|
156
169
|
options?.headers,
|
|
157
170
|
]),
|
|
@@ -232,6 +245,16 @@ export interface VersionCreateParams {
|
|
|
232
245
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
233
246
|
*/
|
|
234
247
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
251
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
252
|
+
*
|
|
253
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
254
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
255
|
+
* match that Workspace.
|
|
256
|
+
*/
|
|
257
|
+
workspace_id?: string;
|
|
235
258
|
}
|
|
236
259
|
|
|
237
260
|
export interface VersionRetrieveParams {
|
|
@@ -246,6 +269,16 @@ export interface VersionRetrieveParams {
|
|
|
246
269
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
247
270
|
*/
|
|
248
271
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
275
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
276
|
+
*
|
|
277
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
278
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
279
|
+
* match that Workspace.
|
|
280
|
+
*/
|
|
281
|
+
workspace_id?: string;
|
|
249
282
|
}
|
|
250
283
|
|
|
251
284
|
export interface VersionListParams extends PageCursorParams {
|
|
@@ -253,6 +286,16 @@ export interface VersionListParams extends PageCursorParams {
|
|
|
253
286
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
254
287
|
*/
|
|
255
288
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
292
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
293
|
+
*
|
|
294
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
295
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
296
|
+
* match that Workspace.
|
|
297
|
+
*/
|
|
298
|
+
workspace_id?: string;
|
|
256
299
|
}
|
|
257
300
|
|
|
258
301
|
export interface VersionDeleteParams {
|
|
@@ -267,6 +310,16 @@ export interface VersionDeleteParams {
|
|
|
267
310
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
268
311
|
*/
|
|
269
312
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
316
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
317
|
+
*
|
|
318
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
319
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
320
|
+
* match that Workspace.
|
|
321
|
+
*/
|
|
322
|
+
workspace_id?: string;
|
|
270
323
|
}
|
|
271
324
|
|
|
272
325
|
export interface VersionDownloadParams {
|
|
@@ -281,6 +334,16 @@ export interface VersionDownloadParams {
|
|
|
281
334
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
282
335
|
*/
|
|
283
336
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
340
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
341
|
+
*
|
|
342
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
343
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
344
|
+
* match that Workspace.
|
|
345
|
+
*/
|
|
346
|
+
workspace_id?: string;
|
|
284
347
|
}
|
|
285
348
|
|
|
286
349
|
export declare namespace Versions {
|
|
@@ -33,12 +33,15 @@ export class Certificates extends APIResource {
|
|
|
33
33
|
params: CertificateCreateParams,
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<BetaTunnelCertificate> {
|
|
36
|
-
const { betas, ...body } = params;
|
|
36
|
+
const { betas, workspace_id, ...body } = params;
|
|
37
37
|
return this._client.post(path`/v1/tunnels/${tunnelID}/certificates?beta=true`, {
|
|
38
38
|
body,
|
|
39
39
|
...options,
|
|
40
40
|
headers: buildHeaders([
|
|
41
|
-
{
|
|
41
|
+
{
|
|
42
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
43
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
44
|
+
},
|
|
42
45
|
options?.headers,
|
|
43
46
|
]),
|
|
44
47
|
});
|
|
@@ -66,11 +69,14 @@ export class Certificates extends APIResource {
|
|
|
66
69
|
params: CertificateRetrieveParams,
|
|
67
70
|
options?: RequestOptions,
|
|
68
71
|
): APIPromise<BetaTunnelCertificate> {
|
|
69
|
-
const { tunnel_id, betas } = params;
|
|
72
|
+
const { tunnel_id, betas, workspace_id } = params;
|
|
70
73
|
return this._client.get(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}?beta=true`, {
|
|
71
74
|
...options,
|
|
72
75
|
headers: buildHeaders([
|
|
73
|
-
{
|
|
76
|
+
{
|
|
77
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
78
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
79
|
+
},
|
|
74
80
|
options?.headers,
|
|
75
81
|
]),
|
|
76
82
|
});
|
|
@@ -100,7 +106,7 @@ export class Certificates extends APIResource {
|
|
|
100
106
|
params: CertificateListParams | null | undefined = {},
|
|
101
107
|
options?: RequestOptions,
|
|
102
108
|
): PagePromise<BetaTunnelCertificatesPageCursor, BetaTunnelCertificate> {
|
|
103
|
-
const { betas, ...query } = params ?? {};
|
|
109
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
104
110
|
return this._client.getAPIList(
|
|
105
111
|
path`/v1/tunnels/${tunnelID}/certificates?beta=true`,
|
|
106
112
|
PageCursor<BetaTunnelCertificate>,
|
|
@@ -108,7 +114,10 @@ export class Certificates extends APIResource {
|
|
|
108
114
|
query,
|
|
109
115
|
...options,
|
|
110
116
|
headers: buildHeaders([
|
|
111
|
-
{
|
|
117
|
+
{
|
|
118
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
119
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
120
|
+
},
|
|
112
121
|
options?.headers,
|
|
113
122
|
]),
|
|
114
123
|
},
|
|
@@ -140,11 +149,14 @@ export class Certificates extends APIResource {
|
|
|
140
149
|
params: CertificateArchiveParams,
|
|
141
150
|
options?: RequestOptions,
|
|
142
151
|
): APIPromise<BetaTunnelCertificate> {
|
|
143
|
-
const { tunnel_id, betas } = params;
|
|
152
|
+
const { tunnel_id, betas, workspace_id } = params;
|
|
144
153
|
return this._client.post(path`/v1/tunnels/${tunnel_id}/certificates/${certificateID}/archive?beta=true`, {
|
|
145
154
|
...options,
|
|
146
155
|
headers: buildHeaders([
|
|
147
|
-
{
|
|
156
|
+
{
|
|
157
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
158
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
159
|
+
},
|
|
148
160
|
options?.headers,
|
|
149
161
|
]),
|
|
150
162
|
});
|
|
@@ -201,6 +213,16 @@ export interface CertificateCreateParams {
|
|
|
201
213
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
202
214
|
*/
|
|
203
215
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
219
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
220
|
+
*
|
|
221
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
222
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
223
|
+
* match that Workspace.
|
|
224
|
+
*/
|
|
225
|
+
workspace_id?: string;
|
|
204
226
|
}
|
|
205
227
|
|
|
206
228
|
export interface CertificateRetrieveParams {
|
|
@@ -213,6 +235,16 @@ export interface CertificateRetrieveParams {
|
|
|
213
235
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
214
236
|
*/
|
|
215
237
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
241
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
242
|
+
*
|
|
243
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
244
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
245
|
+
* match that Workspace.
|
|
246
|
+
*/
|
|
247
|
+
workspace_id?: string;
|
|
216
248
|
}
|
|
217
249
|
|
|
218
250
|
export interface CertificateListParams extends PageCursorParams {
|
|
@@ -226,6 +258,16 @@ export interface CertificateListParams extends PageCursorParams {
|
|
|
226
258
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
227
259
|
*/
|
|
228
260
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
264
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
265
|
+
*
|
|
266
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
267
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
268
|
+
* match that Workspace.
|
|
269
|
+
*/
|
|
270
|
+
workspace_id?: string;
|
|
229
271
|
}
|
|
230
272
|
|
|
231
273
|
export interface CertificateArchiveParams {
|
|
@@ -238,6 +280,16 @@ export interface CertificateArchiveParams {
|
|
|
238
280
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
239
281
|
*/
|
|
240
282
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
286
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
287
|
+
*
|
|
288
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
289
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
290
|
+
* match that Workspace.
|
|
291
|
+
*/
|
|
292
|
+
workspace_id?: string;
|
|
241
293
|
}
|
|
242
294
|
|
|
243
295
|
export declare namespace Certificates {
|
|
@@ -37,12 +37,15 @@ export class Tunnels extends APIResource {
|
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
create(params: TunnelCreateParams, options?: RequestOptions): APIPromise<BetaTunnel> {
|
|
40
|
-
const { betas, ...body } = params;
|
|
40
|
+
const { betas, workspace_id, ...body } = params;
|
|
41
41
|
return this._client.post('/v1/tunnels?beta=true', {
|
|
42
42
|
body,
|
|
43
43
|
...options,
|
|
44
44
|
headers: buildHeaders([
|
|
45
|
-
{
|
|
45
|
+
{
|
|
46
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
47
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
48
|
+
},
|
|
46
49
|
options?.headers,
|
|
47
50
|
]),
|
|
48
51
|
});
|
|
@@ -68,11 +71,14 @@ export class Tunnels extends APIResource {
|
|
|
68
71
|
params: TunnelRetrieveParams | null | undefined = {},
|
|
69
72
|
options?: RequestOptions,
|
|
70
73
|
): APIPromise<BetaTunnel> {
|
|
71
|
-
const { betas } = params ?? {};
|
|
74
|
+
const { betas, workspace_id } = params ?? {};
|
|
72
75
|
return this._client.get(path`/v1/tunnels/${tunnelID}?beta=true`, {
|
|
73
76
|
...options,
|
|
74
77
|
headers: buildHeaders([
|
|
75
|
-
{
|
|
78
|
+
{
|
|
79
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
80
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
81
|
+
},
|
|
76
82
|
options?.headers,
|
|
77
83
|
]),
|
|
78
84
|
});
|
|
@@ -99,12 +105,15 @@ export class Tunnels extends APIResource {
|
|
|
99
105
|
params: TunnelListParams | null | undefined = {},
|
|
100
106
|
options?: RequestOptions,
|
|
101
107
|
): PagePromise<BetaTunnelsPageCursor, BetaTunnel> {
|
|
102
|
-
const { betas, ...query } = params ?? {};
|
|
108
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
103
109
|
return this._client.getAPIList('/v1/tunnels?beta=true', PageCursor<BetaTunnel>, {
|
|
104
110
|
query,
|
|
105
111
|
...options,
|
|
106
112
|
headers: buildHeaders([
|
|
107
|
-
{
|
|
113
|
+
{
|
|
114
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
115
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
116
|
+
},
|
|
108
117
|
options?.headers,
|
|
109
118
|
]),
|
|
110
119
|
});
|
|
@@ -133,11 +142,14 @@ export class Tunnels extends APIResource {
|
|
|
133
142
|
params: TunnelArchiveParams | null | undefined = {},
|
|
134
143
|
options?: RequestOptions,
|
|
135
144
|
): APIPromise<BetaTunnel> {
|
|
136
|
-
const { betas } = params ?? {};
|
|
145
|
+
const { betas, workspace_id } = params ?? {};
|
|
137
146
|
return this._client.post(path`/v1/tunnels/${tunnelID}/archive?beta=true`, {
|
|
138
147
|
...options,
|
|
139
148
|
headers: buildHeaders([
|
|
140
|
-
{
|
|
149
|
+
{
|
|
150
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
151
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
152
|
+
},
|
|
141
153
|
options?.headers,
|
|
142
154
|
]),
|
|
143
155
|
});
|
|
@@ -165,11 +177,14 @@ export class Tunnels extends APIResource {
|
|
|
165
177
|
params: TunnelRevealTokenParams | null | undefined = {},
|
|
166
178
|
options?: RequestOptions,
|
|
167
179
|
): APIPromise<BetaTunnelToken> {
|
|
168
|
-
const { betas } = params ?? {};
|
|
180
|
+
const { betas, workspace_id } = params ?? {};
|
|
169
181
|
return this._client.post(path`/v1/tunnels/${tunnelID}/reveal_token?beta=true`, {
|
|
170
182
|
...options,
|
|
171
183
|
headers: buildHeaders([
|
|
172
|
-
{
|
|
184
|
+
{
|
|
185
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
186
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
187
|
+
},
|
|
173
188
|
options?.headers,
|
|
174
189
|
]),
|
|
175
190
|
});
|
|
@@ -196,12 +211,15 @@ export class Tunnels extends APIResource {
|
|
|
196
211
|
params: TunnelRotateTokenParams,
|
|
197
212
|
options?: RequestOptions,
|
|
198
213
|
): APIPromise<BetaTunnelToken> {
|
|
199
|
-
const { betas, ...body } = params;
|
|
214
|
+
const { betas, workspace_id, ...body } = params;
|
|
200
215
|
return this._client.post(path`/v1/tunnels/${tunnelID}/rotate_token?beta=true`, {
|
|
201
216
|
body,
|
|
202
217
|
...options,
|
|
203
218
|
headers: buildHeaders([
|
|
204
|
-
{
|
|
219
|
+
{
|
|
220
|
+
'anthropic-beta': [...(betas ?? []), 'mcp-tunnels-2026-06-22'].toString(),
|
|
221
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
222
|
+
},
|
|
205
223
|
options?.headers,
|
|
206
224
|
]),
|
|
207
225
|
});
|
|
@@ -272,6 +290,16 @@ export interface TunnelCreateParams {
|
|
|
272
290
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
273
291
|
*/
|
|
274
292
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
296
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
297
|
+
*
|
|
298
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
299
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
300
|
+
* match that Workspace.
|
|
301
|
+
*/
|
|
302
|
+
workspace_id?: string;
|
|
275
303
|
}
|
|
276
304
|
|
|
277
305
|
export interface TunnelRetrieveParams {
|
|
@@ -279,6 +307,16 @@ export interface TunnelRetrieveParams {
|
|
|
279
307
|
* Optional header to specify the beta version(s) you want to use.
|
|
280
308
|
*/
|
|
281
309
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
313
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
314
|
+
*
|
|
315
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
316
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
317
|
+
* match that Workspace.
|
|
318
|
+
*/
|
|
319
|
+
workspace_id?: string;
|
|
282
320
|
}
|
|
283
321
|
|
|
284
322
|
export interface TunnelListParams extends PageCursorParams {
|
|
@@ -292,6 +330,16 @@ export interface TunnelListParams extends PageCursorParams {
|
|
|
292
330
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
293
331
|
*/
|
|
294
332
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
336
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
337
|
+
*
|
|
338
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
339
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
340
|
+
* match that Workspace.
|
|
341
|
+
*/
|
|
342
|
+
workspace_id?: string;
|
|
295
343
|
}
|
|
296
344
|
|
|
297
345
|
export interface TunnelArchiveParams {
|
|
@@ -299,6 +347,16 @@ export interface TunnelArchiveParams {
|
|
|
299
347
|
* Optional header to specify the beta version(s) you want to use.
|
|
300
348
|
*/
|
|
301
349
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
353
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
354
|
+
*
|
|
355
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
356
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
357
|
+
* match that Workspace.
|
|
358
|
+
*/
|
|
359
|
+
workspace_id?: string;
|
|
302
360
|
}
|
|
303
361
|
|
|
304
362
|
export interface TunnelRevealTokenParams {
|
|
@@ -306,6 +364,16 @@ export interface TunnelRevealTokenParams {
|
|
|
306
364
|
* Optional header to specify the beta version(s) you want to use.
|
|
307
365
|
*/
|
|
308
366
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
370
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
371
|
+
*
|
|
372
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
373
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
374
|
+
* match that Workspace.
|
|
375
|
+
*/
|
|
376
|
+
workspace_id?: string;
|
|
309
377
|
}
|
|
310
378
|
|
|
311
379
|
export interface TunnelRotateTokenParams {
|
|
@@ -318,6 +386,16 @@ export interface TunnelRotateTokenParams {
|
|
|
318
386
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
319
387
|
*/
|
|
320
388
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
392
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
393
|
+
*
|
|
394
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
395
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
396
|
+
* match that Workspace.
|
|
397
|
+
*/
|
|
398
|
+
workspace_id?: string;
|
|
321
399
|
}
|
|
322
400
|
|
|
323
401
|
Tunnels.Certificates = Certificates;
|
|
@@ -186,18 +186,16 @@ export interface BetaUserProfile {
|
|
|
186
186
|
external_id?: string | null;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
|
-
*
|
|
190
|
-
* For a resold-to company (`access_type` `passthrough`, or `relationship` `resold`
|
|
191
|
-
* under the `user-profiles-2026-03-24` header) this is that company's name.
|
|
189
|
+
* A timestamp in RFC 3339 format
|
|
192
190
|
*/
|
|
193
|
-
|
|
191
|
+
external_user_onboarded_at?: string | null;
|
|
194
192
|
|
|
195
193
|
/**
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
194
|
+
* Real-world name of the entity this profile represents (company or individual).
|
|
195
|
+
* For a company the platform resells Claude access to (`access_type`
|
|
196
|
+
* `passthrough`) this is that company's name.
|
|
199
197
|
*/
|
|
200
|
-
|
|
198
|
+
name?: string | null;
|
|
201
199
|
}
|
|
202
200
|
|
|
203
201
|
export interface BetaUserProfileEnrollmentURL {
|
|
@@ -240,6 +238,11 @@ export interface UserProfileCreateParams {
|
|
|
240
238
|
*/
|
|
241
239
|
external_id?: string | null;
|
|
242
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Body param: A timestamp in RFC 3339 format
|
|
243
|
+
*/
|
|
244
|
+
external_user_onboarded_at?: string;
|
|
245
|
+
|
|
243
246
|
/**
|
|
244
247
|
* Body param: Free-form key-value data to attach to this user profile. Maximum 16
|
|
245
248
|
* keys, with keys up to 64 characters and values up to 512 characters. Values must
|
|
@@ -249,20 +252,12 @@ export interface UserProfileCreateParams {
|
|
|
249
252
|
|
|
250
253
|
/**
|
|
251
254
|
* Body param: Optional for all profiles. Real-world name of the entity this
|
|
252
|
-
* profile represents (company or individual); for a
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
+
* profile represents (company or individual); for a company the platform resells
|
|
256
|
+
* Claude access to (`access_type` `passthrough`), that company's name where known.
|
|
257
|
+
* Maximum 255 characters.
|
|
255
258
|
*/
|
|
256
259
|
name?: string | null;
|
|
257
260
|
|
|
258
|
-
/**
|
|
259
|
-
* Body param: How the entity behind a user profile relates to the platform that
|
|
260
|
-
* owns the API key. `external`: an individual end-user of the platform. `resold`:
|
|
261
|
-
* a company the platform resells Claude access to. `internal`: the platform's own
|
|
262
|
-
* usage.
|
|
263
|
-
*/
|
|
264
|
-
relationship?: 'external' | 'resold' | 'internal';
|
|
265
|
-
|
|
266
261
|
/**
|
|
267
262
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
268
263
|
*/
|
|
@@ -292,6 +287,11 @@ export interface UserProfileUpdateParams {
|
|
|
292
287
|
*/
|
|
293
288
|
external_id?: string | null;
|
|
294
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Body param: A timestamp in RFC 3339 format
|
|
292
|
+
*/
|
|
293
|
+
external_user_onboarded_at?: string;
|
|
294
|
+
|
|
295
295
|
/**
|
|
296
296
|
* Body param: Key-value pairs to merge into the stored metadata. Keys provided
|
|
297
297
|
* overwrite existing values. To remove a key, set its value to an empty string.
|
|
@@ -306,14 +306,6 @@ export interface UserProfileUpdateParams {
|
|
|
306
306
|
*/
|
|
307
307
|
name?: string | null;
|
|
308
308
|
|
|
309
|
-
/**
|
|
310
|
-
* Body param: How the entity behind a user profile relates to the platform that
|
|
311
|
-
* owns the API key. `external`: an individual end-user of the platform. `resold`:
|
|
312
|
-
* a company the platform resells Claude access to. `internal`: the platform's own
|
|
313
|
-
* usage.
|
|
314
|
-
*/
|
|
315
|
-
relationship?: 'external' | 'resold' | 'internal' | null;
|
|
316
|
-
|
|
317
309
|
/**
|
|
318
310
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
319
311
|
*/
|
|
@@ -326,6 +318,11 @@ export interface UserProfileListParams extends PageCursorParams {
|
|
|
326
318
|
*/
|
|
327
319
|
order?: 'asc' | 'desc';
|
|
328
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Query param: Query parameter for order_by
|
|
323
|
+
*/
|
|
324
|
+
order_by?: 'created_at' | 'name';
|
|
325
|
+
|
|
329
326
|
/**
|
|
330
327
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
331
328
|
*/
|