@anthropic-ai/sdk 0.123.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 +28 -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/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/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +45 -0
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +45 -0
- 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/deployment-runs.d.mts +18 -0
- package/resources/beta/deployment-runs.d.mts.map +1 -1
- package/resources/beta/deployment-runs.d.ts +18 -0
- 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 +72 -0
- package/resources/beta/deployments.d.mts.map +1 -1
- package/resources/beta/deployments.d.ts +72 -0
- 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 +45 -0
- package/resources/beta/dreams.d.mts.map +1 -1
- package/resources/beta/dreams.d.ts +45 -0
- 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/memory-stores/memories.d.mts +45 -0
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +45 -0
- 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/messages.d.mts +18 -0
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +18 -0
- 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 +5 -3
- package/resources/beta/organization/compliance-settings.d.mts.map +1 -1
- package/resources/beta/organization/compliance-settings.d.ts +5 -3
- package/resources/beta/organization/compliance-settings.d.ts.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.map +1 -1
- package/resources/beta/organization/organization.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +27 -0
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +27 -0
- 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 +54 -0
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +54 -0
- 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/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 +20 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +20 -2
- 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/streaming.ts +4 -2
- package/src/resources/beta/agents/agents.ts +75 -10
- package/src/resources/beta/agents/versions.ts +15 -2
- package/src/resources/beta/deployment-runs.ts +30 -4
- package/src/resources/beta/deployments.ts +120 -16
- package/src/resources/beta/dreams.ts +75 -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/memory-stores/memories.ts +75 -10
- 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/messages.ts +24 -2
- package/src/resources/beta/models.ts +30 -4
- package/src/resources/beta/organization/compliance-settings.ts +12 -2
- package/src/resources/beta/organization/index.ts +2 -0
- package/src/resources/beta/organization/organization.ts +4 -0
- package/src/resources/beta/sessions/events.ts +45 -6
- package/src/resources/beta/sessions/resources.ts +75 -10
- package/src/resources/beta/sessions/sessions.ts +90 -12
- 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/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 +38 -4
- 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 +16 -4
- 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 +14 -4
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +14 -4
- package/tools/agent-toolset/fs-util.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,12 +27,15 @@ export class Agents extends APIResource {
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
create(params: AgentCreateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsAgent> {
|
|
30
|
-
const { betas, ...body } = params;
|
|
30
|
+
const { betas, workspace_id, ...body } = params;
|
|
31
31
|
return this._client.post('/v1/agents?beta=true', {
|
|
32
32
|
body,
|
|
33
33
|
...options,
|
|
34
34
|
headers: buildHeaders([
|
|
35
|
-
{
|
|
35
|
+
{
|
|
36
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
37
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
38
|
+
},
|
|
36
39
|
options?.headers,
|
|
37
40
|
]),
|
|
38
41
|
});
|
|
@@ -54,12 +57,15 @@ export class Agents extends APIResource {
|
|
|
54
57
|
params: AgentRetrieveParams | null | undefined = {},
|
|
55
58
|
options?: RequestOptions,
|
|
56
59
|
): APIPromise<BetaManagedAgentsAgent> {
|
|
57
|
-
const { betas, ...query } = params ?? {};
|
|
60
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
58
61
|
return this._client.get(path`/v1/agents/${agentID}?beta=true`, {
|
|
59
62
|
query,
|
|
60
63
|
...options,
|
|
61
64
|
headers: buildHeaders([
|
|
62
|
-
{
|
|
65
|
+
{
|
|
66
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
67
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
68
|
+
},
|
|
63
69
|
options?.headers,
|
|
64
70
|
]),
|
|
65
71
|
});
|
|
@@ -82,12 +88,15 @@ export class Agents extends APIResource {
|
|
|
82
88
|
params: AgentUpdateParams,
|
|
83
89
|
options?: RequestOptions,
|
|
84
90
|
): APIPromise<BetaManagedAgentsAgent> {
|
|
85
|
-
const { betas, ...body } = params;
|
|
91
|
+
const { betas, workspace_id, ...body } = params;
|
|
86
92
|
return this._client.post(path`/v1/agents/${agentID}?beta=true`, {
|
|
87
93
|
body,
|
|
88
94
|
...options,
|
|
89
95
|
headers: buildHeaders([
|
|
90
|
-
{
|
|
96
|
+
{
|
|
97
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
98
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
99
|
+
},
|
|
91
100
|
options?.headers,
|
|
92
101
|
]),
|
|
93
102
|
});
|
|
@@ -108,12 +117,15 @@ export class Agents extends APIResource {
|
|
|
108
117
|
params: AgentListParams | null | undefined = {},
|
|
109
118
|
options?: RequestOptions,
|
|
110
119
|
): PagePromise<BetaManagedAgentsAgentsPageCursor, BetaManagedAgentsAgent> {
|
|
111
|
-
const { betas, ...query } = params ?? {};
|
|
120
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
112
121
|
return this._client.getAPIList('/v1/agents?beta=true', PageCursor<BetaManagedAgentsAgent>, {
|
|
113
122
|
query,
|
|
114
123
|
...options,
|
|
115
124
|
headers: buildHeaders([
|
|
116
|
-
{
|
|
125
|
+
{
|
|
126
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
127
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
128
|
+
},
|
|
117
129
|
options?.headers,
|
|
118
130
|
]),
|
|
119
131
|
});
|
|
@@ -135,11 +147,14 @@ export class Agents extends APIResource {
|
|
|
135
147
|
params: AgentArchiveParams | null | undefined = {},
|
|
136
148
|
options?: RequestOptions,
|
|
137
149
|
): APIPromise<BetaManagedAgentsAgent> {
|
|
138
|
-
const { betas } = params ?? {};
|
|
150
|
+
const { betas, workspace_id } = params ?? {};
|
|
139
151
|
return this._client.post(path`/v1/agents/${agentID}/archive?beta=true`, {
|
|
140
152
|
...options,
|
|
141
153
|
headers: buildHeaders([
|
|
142
|
-
{
|
|
154
|
+
{
|
|
155
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
156
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
157
|
+
},
|
|
143
158
|
options?.headers,
|
|
144
159
|
]),
|
|
145
160
|
});
|
|
@@ -1364,6 +1379,16 @@ export interface AgentCreateParams {
|
|
|
1364
1379
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1365
1380
|
*/
|
|
1366
1381
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
1385
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1386
|
+
*
|
|
1387
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1388
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1389
|
+
* match that Workspace.
|
|
1390
|
+
*/
|
|
1391
|
+
workspace_id?: string;
|
|
1367
1392
|
}
|
|
1368
1393
|
|
|
1369
1394
|
export interface AgentRetrieveParams {
|
|
@@ -1377,6 +1402,16 @@ export interface AgentRetrieveParams {
|
|
|
1377
1402
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1378
1403
|
*/
|
|
1379
1404
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
1408
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1409
|
+
*
|
|
1410
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1411
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1412
|
+
* match that Workspace.
|
|
1413
|
+
*/
|
|
1414
|
+
workspace_id?: string;
|
|
1380
1415
|
}
|
|
1381
1416
|
|
|
1382
1417
|
export interface AgentUpdateParams {
|
|
@@ -1456,6 +1491,16 @@ export interface AgentUpdateParams {
|
|
|
1456
1491
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1457
1492
|
*/
|
|
1458
1493
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
1497
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1498
|
+
*
|
|
1499
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1500
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1501
|
+
* match that Workspace.
|
|
1502
|
+
*/
|
|
1503
|
+
workspace_id?: string;
|
|
1459
1504
|
}
|
|
1460
1505
|
|
|
1461
1506
|
export interface AgentListParams extends PageCursorParams {
|
|
@@ -1478,6 +1523,16 @@ export interface AgentListParams extends PageCursorParams {
|
|
|
1478
1523
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
1479
1524
|
*/
|
|
1480
1525
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
1529
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1530
|
+
*
|
|
1531
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1532
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1533
|
+
* match that Workspace.
|
|
1534
|
+
*/
|
|
1535
|
+
workspace_id?: string;
|
|
1481
1536
|
}
|
|
1482
1537
|
|
|
1483
1538
|
export interface AgentArchiveParams {
|
|
@@ -1485,6 +1540,16 @@ export interface AgentArchiveParams {
|
|
|
1485
1540
|
* Optional header to specify the beta version(s) you want to use.
|
|
1486
1541
|
*/
|
|
1487
1542
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
1546
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1547
|
+
*
|
|
1548
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1549
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1550
|
+
* match that Workspace.
|
|
1551
|
+
*/
|
|
1552
|
+
workspace_id?: string;
|
|
1488
1553
|
}
|
|
1489
1554
|
|
|
1490
1555
|
Agents.Versions = Versions;
|
|
@@ -28,7 +28,7 @@ export class Versions extends APIResource {
|
|
|
28
28
|
params: VersionListParams | null | undefined = {},
|
|
29
29
|
options?: RequestOptions,
|
|
30
30
|
): PagePromise<BetaManagedAgentsAgentsPageCursor, AgentsAPI.BetaManagedAgentsAgent> {
|
|
31
|
-
const { betas, ...query } = params ?? {};
|
|
31
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
32
32
|
return this._client.getAPIList(
|
|
33
33
|
path`/v1/agents/${agentID}/versions?beta=true`,
|
|
34
34
|
PageCursor<AgentsAPI.BetaManagedAgentsAgent>,
|
|
@@ -36,7 +36,10 @@ export class Versions extends APIResource {
|
|
|
36
36
|
query,
|
|
37
37
|
...options,
|
|
38
38
|
headers: buildHeaders([
|
|
39
|
-
{
|
|
39
|
+
{
|
|
40
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
41
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
42
|
+
},
|
|
40
43
|
options?.headers,
|
|
41
44
|
]),
|
|
42
45
|
},
|
|
@@ -49,6 +52,16 @@ export interface VersionListParams extends PageCursorParams {
|
|
|
49
52
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
50
53
|
*/
|
|
51
54
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
58
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
59
|
+
*
|
|
60
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
61
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
62
|
+
* match that Workspace.
|
|
63
|
+
*/
|
|
64
|
+
workspace_id?: string;
|
|
52
65
|
}
|
|
53
66
|
|
|
54
67
|
export declare namespace Versions {
|
|
@@ -26,11 +26,14 @@ export class DeploymentRuns extends APIResource {
|
|
|
26
26
|
params: DeploymentRunRetrieveParams | null | undefined = {},
|
|
27
27
|
options?: RequestOptions,
|
|
28
28
|
): APIPromise<BetaManagedAgentsDeploymentRun> {
|
|
29
|
-
const { betas } = params ?? {};
|
|
29
|
+
const { betas, workspace_id } = params ?? {};
|
|
30
30
|
return this._client.get(path`/v1/deployment_runs/${deploymentRunID}?beta=true`, {
|
|
31
31
|
...options,
|
|
32
32
|
headers: buildHeaders([
|
|
33
|
-
{
|
|
33
|
+
{
|
|
34
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
35
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
36
|
+
},
|
|
34
37
|
options?.headers,
|
|
35
38
|
]),
|
|
36
39
|
});
|
|
@@ -51,7 +54,7 @@ export class DeploymentRuns extends APIResource {
|
|
|
51
54
|
params: DeploymentRunListParams | null | undefined = {},
|
|
52
55
|
options?: RequestOptions,
|
|
53
56
|
): PagePromise<BetaManagedAgentsDeploymentRunsPageCursor, BetaManagedAgentsDeploymentRun> {
|
|
54
|
-
const { betas, ...query } = params ?? {};
|
|
57
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
55
58
|
return this._client.getAPIList(
|
|
56
59
|
'/v1/deployment_runs?beta=true',
|
|
57
60
|
PageCursor<BetaManagedAgentsDeploymentRun>,
|
|
@@ -59,7 +62,10 @@ export class DeploymentRuns extends APIResource {
|
|
|
59
62
|
query,
|
|
60
63
|
...options,
|
|
61
64
|
headers: buildHeaders([
|
|
62
|
-
{
|
|
65
|
+
{
|
|
66
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
67
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
68
|
+
},
|
|
63
69
|
options?.headers,
|
|
64
70
|
]),
|
|
65
71
|
},
|
|
@@ -364,6 +370,16 @@ export interface DeploymentRunRetrieveParams {
|
|
|
364
370
|
* Optional header to specify the beta version(s) you want to use.
|
|
365
371
|
*/
|
|
366
372
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
376
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
377
|
+
*
|
|
378
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
379
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
380
|
+
* match that Workspace.
|
|
381
|
+
*/
|
|
382
|
+
workspace_id?: string;
|
|
367
383
|
}
|
|
368
384
|
|
|
369
385
|
export interface DeploymentRunListParams extends PageCursorParams {
|
|
@@ -409,6 +425,16 @@ export interface DeploymentRunListParams extends PageCursorParams {
|
|
|
409
425
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
410
426
|
*/
|
|
411
427
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
431
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
432
|
+
*
|
|
433
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
434
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
435
|
+
* match that Workspace.
|
|
436
|
+
*/
|
|
437
|
+
workspace_id?: string;
|
|
412
438
|
}
|
|
413
439
|
|
|
414
440
|
export declare namespace DeploymentRuns {
|
|
@@ -38,12 +38,15 @@ export class Deployments extends APIResource {
|
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
create(params: DeploymentCreateParams, options?: RequestOptions): APIPromise<BetaManagedAgentsDeployment> {
|
|
41
|
-
const { betas, ...body } = params;
|
|
41
|
+
const { betas, workspace_id, ...body } = params;
|
|
42
42
|
return this._client.post('/v1/deployments?beta=true', {
|
|
43
43
|
body,
|
|
44
44
|
...options,
|
|
45
45
|
headers: buildHeaders([
|
|
46
|
-
{
|
|
46
|
+
{
|
|
47
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
48
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
49
|
+
},
|
|
47
50
|
options?.headers,
|
|
48
51
|
]),
|
|
49
52
|
});
|
|
@@ -65,11 +68,14 @@ export class Deployments extends APIResource {
|
|
|
65
68
|
params: DeploymentRetrieveParams | null | undefined = {},
|
|
66
69
|
options?: RequestOptions,
|
|
67
70
|
): APIPromise<BetaManagedAgentsDeployment> {
|
|
68
|
-
const { betas } = params ?? {};
|
|
71
|
+
const { betas, workspace_id } = params ?? {};
|
|
69
72
|
return this._client.get(path`/v1/deployments/${deploymentID}?beta=true`, {
|
|
70
73
|
...options,
|
|
71
74
|
headers: buildHeaders([
|
|
72
|
-
{
|
|
75
|
+
{
|
|
76
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
77
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
78
|
+
},
|
|
73
79
|
options?.headers,
|
|
74
80
|
]),
|
|
75
81
|
});
|
|
@@ -91,12 +97,15 @@ export class Deployments extends APIResource {
|
|
|
91
97
|
params: DeploymentUpdateParams,
|
|
92
98
|
options?: RequestOptions,
|
|
93
99
|
): APIPromise<BetaManagedAgentsDeployment> {
|
|
94
|
-
const { betas, ...body } = params;
|
|
100
|
+
const { betas, workspace_id, ...body } = params;
|
|
95
101
|
return this._client.post(path`/v1/deployments/${deploymentID}?beta=true`, {
|
|
96
102
|
body,
|
|
97
103
|
...options,
|
|
98
104
|
headers: buildHeaders([
|
|
99
|
-
{
|
|
105
|
+
{
|
|
106
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
107
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
108
|
+
},
|
|
100
109
|
options?.headers,
|
|
101
110
|
]),
|
|
102
111
|
});
|
|
@@ -117,12 +126,15 @@ export class Deployments extends APIResource {
|
|
|
117
126
|
params: DeploymentListParams | null | undefined = {},
|
|
118
127
|
options?: RequestOptions,
|
|
119
128
|
): PagePromise<BetaManagedAgentsDeploymentsPageCursor, BetaManagedAgentsDeployment> {
|
|
120
|
-
const { betas, ...query } = params ?? {};
|
|
129
|
+
const { betas, workspace_id, ...query } = params ?? {};
|
|
121
130
|
return this._client.getAPIList('/v1/deployments?beta=true', PageCursor<BetaManagedAgentsDeployment>, {
|
|
122
131
|
query,
|
|
123
132
|
...options,
|
|
124
133
|
headers: buildHeaders([
|
|
125
|
-
{
|
|
134
|
+
{
|
|
135
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
136
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
137
|
+
},
|
|
126
138
|
options?.headers,
|
|
127
139
|
]),
|
|
128
140
|
});
|
|
@@ -144,11 +156,14 @@ export class Deployments extends APIResource {
|
|
|
144
156
|
params: DeploymentArchiveParams | null | undefined = {},
|
|
145
157
|
options?: RequestOptions,
|
|
146
158
|
): APIPromise<BetaManagedAgentsDeployment> {
|
|
147
|
-
const { betas } = params ?? {};
|
|
159
|
+
const { betas, workspace_id } = params ?? {};
|
|
148
160
|
return this._client.post(path`/v1/deployments/${deploymentID}/archive?beta=true`, {
|
|
149
161
|
...options,
|
|
150
162
|
headers: buildHeaders([
|
|
151
|
-
{
|
|
163
|
+
{
|
|
164
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
165
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
166
|
+
},
|
|
152
167
|
options?.headers,
|
|
153
168
|
]),
|
|
154
169
|
});
|
|
@@ -170,11 +185,14 @@ export class Deployments extends APIResource {
|
|
|
170
185
|
params: DeploymentPauseParams | null | undefined = {},
|
|
171
186
|
options?: RequestOptions,
|
|
172
187
|
): APIPromise<BetaManagedAgentsDeployment> {
|
|
173
|
-
const { betas } = params ?? {};
|
|
188
|
+
const { betas, workspace_id } = params ?? {};
|
|
174
189
|
return this._client.post(path`/v1/deployments/${deploymentID}/pause?beta=true`, {
|
|
175
190
|
...options,
|
|
176
191
|
headers: buildHeaders([
|
|
177
|
-
{
|
|
192
|
+
{
|
|
193
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
194
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
195
|
+
},
|
|
178
196
|
options?.headers,
|
|
179
197
|
]),
|
|
180
198
|
});
|
|
@@ -196,11 +214,14 @@ export class Deployments extends APIResource {
|
|
|
196
214
|
params: DeploymentRunParams | null | undefined = {},
|
|
197
215
|
options?: RequestOptions,
|
|
198
216
|
): APIPromise<DeploymentRunsAPI.BetaManagedAgentsDeploymentRun> {
|
|
199
|
-
const { betas } = params ?? {};
|
|
217
|
+
const { betas, workspace_id } = params ?? {};
|
|
200
218
|
return this._client.post(path`/v1/deployments/${deploymentID}/run?beta=true`, {
|
|
201
219
|
...options,
|
|
202
220
|
headers: buildHeaders([
|
|
203
|
-
{
|
|
221
|
+
{
|
|
222
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
223
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
224
|
+
},
|
|
204
225
|
options?.headers,
|
|
205
226
|
]),
|
|
206
227
|
});
|
|
@@ -222,11 +243,14 @@ export class Deployments extends APIResource {
|
|
|
222
243
|
params: DeploymentUnpauseParams | null | undefined = {},
|
|
223
244
|
options?: RequestOptions,
|
|
224
245
|
): APIPromise<BetaManagedAgentsDeployment> {
|
|
225
|
-
const { betas } = params ?? {};
|
|
246
|
+
const { betas, workspace_id } = params ?? {};
|
|
226
247
|
return this._client.post(path`/v1/deployments/${deploymentID}/unpause?beta=true`, {
|
|
227
248
|
...options,
|
|
228
249
|
headers: buildHeaders([
|
|
229
|
-
{
|
|
250
|
+
{
|
|
251
|
+
'anthropic-beta': [...(betas ?? []), 'managed-agents-2026-04-01'].toString(),
|
|
252
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
253
|
+
},
|
|
230
254
|
options?.headers,
|
|
231
255
|
]),
|
|
232
256
|
});
|
|
@@ -805,6 +829,16 @@ export interface DeploymentCreateParams {
|
|
|
805
829
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
806
830
|
*/
|
|
807
831
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
835
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
836
|
+
*
|
|
837
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
838
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
839
|
+
* match that Workspace.
|
|
840
|
+
*/
|
|
841
|
+
workspace_id?: string;
|
|
808
842
|
}
|
|
809
843
|
|
|
810
844
|
export interface DeploymentRetrieveParams {
|
|
@@ -812,6 +846,16 @@ export interface DeploymentRetrieveParams {
|
|
|
812
846
|
* Optional header to specify the beta version(s) you want to use.
|
|
813
847
|
*/
|
|
814
848
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
852
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
853
|
+
*
|
|
854
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
855
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
856
|
+
* match that Workspace.
|
|
857
|
+
*/
|
|
858
|
+
workspace_id?: string;
|
|
815
859
|
}
|
|
816
860
|
|
|
817
861
|
export interface DeploymentUpdateParams {
|
|
@@ -884,6 +928,16 @@ export interface DeploymentUpdateParams {
|
|
|
884
928
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
885
929
|
*/
|
|
886
930
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
934
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
935
|
+
*
|
|
936
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
937
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
938
|
+
* match that Workspace.
|
|
939
|
+
*/
|
|
940
|
+
workspace_id?: string;
|
|
887
941
|
}
|
|
888
942
|
|
|
889
943
|
export interface DeploymentListParams extends PageCursorParams {
|
|
@@ -919,6 +973,16 @@ export interface DeploymentListParams extends PageCursorParams {
|
|
|
919
973
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
920
974
|
*/
|
|
921
975
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
979
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
980
|
+
*
|
|
981
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
982
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
983
|
+
* match that Workspace.
|
|
984
|
+
*/
|
|
985
|
+
workspace_id?: string;
|
|
922
986
|
}
|
|
923
987
|
|
|
924
988
|
export interface DeploymentArchiveParams {
|
|
@@ -926,6 +990,16 @@ export interface DeploymentArchiveParams {
|
|
|
926
990
|
* Optional header to specify the beta version(s) you want to use.
|
|
927
991
|
*/
|
|
928
992
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
996
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
997
|
+
*
|
|
998
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
999
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1000
|
+
* match that Workspace.
|
|
1001
|
+
*/
|
|
1002
|
+
workspace_id?: string;
|
|
929
1003
|
}
|
|
930
1004
|
|
|
931
1005
|
export interface DeploymentPauseParams {
|
|
@@ -933,6 +1007,16 @@ export interface DeploymentPauseParams {
|
|
|
933
1007
|
* Optional header to specify the beta version(s) you want to use.
|
|
934
1008
|
*/
|
|
935
1009
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
1013
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1014
|
+
*
|
|
1015
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1016
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1017
|
+
* match that Workspace.
|
|
1018
|
+
*/
|
|
1019
|
+
workspace_id?: string;
|
|
936
1020
|
}
|
|
937
1021
|
|
|
938
1022
|
export interface DeploymentRunParams {
|
|
@@ -940,6 +1024,16 @@ export interface DeploymentRunParams {
|
|
|
940
1024
|
* Optional header to specify the beta version(s) you want to use.
|
|
941
1025
|
*/
|
|
942
1026
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
1030
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1031
|
+
*
|
|
1032
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1033
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1034
|
+
* match that Workspace.
|
|
1035
|
+
*/
|
|
1036
|
+
workspace_id?: string;
|
|
943
1037
|
}
|
|
944
1038
|
|
|
945
1039
|
export interface DeploymentUnpauseParams {
|
|
@@ -947,6 +1041,16 @@ export interface DeploymentUnpauseParams {
|
|
|
947
1041
|
* Optional header to specify the beta version(s) you want to use.
|
|
948
1042
|
*/
|
|
949
1043
|
betas?: Array<BetaAPI.AnthropicBeta>;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
1047
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
1048
|
+
*
|
|
1049
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
1050
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
1051
|
+
* match that Workspace.
|
|
1052
|
+
*/
|
|
1053
|
+
workspace_id?: string;
|
|
950
1054
|
}
|
|
951
1055
|
|
|
952
1056
|
export declare namespace Deployments {
|