@anthropic-ai/sdk 0.125.0 → 0.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +88 -0
- package/client.d.mts +12 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -11
- package/client.d.ts.map +1 -1
- package/client.js +865 -845
- package/client.js.map +1 -1
- package/client.mjs +866 -840
- package/client.mjs.map +1 -1
- package/core/api-promise.js +71 -68
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +71 -64
- package/core/api-promise.mjs.map +1 -1
- package/core/error.js +5 -2
- package/core/error.js.map +1 -1
- package/core/error.mjs +5 -2
- package/core/error.mjs.map +1 -1
- package/core/pagination.js +56 -50
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +56 -41
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.js +212 -209
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +212 -209
- package/core/streaming.mjs.map +1 -1
- package/helpers/beta/mcp.js +14 -19
- package/helpers/beta/mcp.js.map +1 -1
- package/helpers/beta/mcp.mjs +14 -13
- package/helpers/beta/mcp.mjs.map +1 -1
- package/internal/constants.js +1 -1
- package/internal/constants.js.map +1 -1
- package/internal/decoders/jsonl.js +27 -24
- package/internal/decoders/jsonl.js.map +1 -1
- package/internal/decoders/jsonl.mjs +27 -24
- package/internal/decoders/jsonl.mjs.map +1 -1
- package/internal/decoders/line.js +52 -49
- package/internal/decoders/line.js.map +1 -1
- package/internal/decoders/line.mjs +52 -43
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/file-store.js +256 -258
- package/internal/file-store.js.map +1 -1
- package/internal/file-store.mjs +256 -243
- package/internal/file-store.mjs.map +1 -1
- package/internal/node.browser.d.mts.map +1 -1
- package/internal/node.browser.d.ts.map +1 -1
- package/internal/node.browser.js.map +1 -1
- package/internal/node.browser.mjs +7 -7
- package/internal/node.browser.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +2 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +3 -3
- package/internal/parse.mjs.map +1 -1
- package/internal/shim-types.js +0 -6
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +0 -6
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts +3 -3
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +3 -3
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +0 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +0 -6
- package/internal/shims.mjs.map +1 -1
- package/internal/stainless-helper-header.js +6 -6
- package/internal/stainless-helper-header.js.map +1 -1
- package/internal/utils/async-queue.js +66 -63
- package/internal/utils/async-queue.js.map +1 -1
- package/internal/utils/async-queue.mjs +66 -56
- package/internal/utils/async-queue.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +1 -1
- package/internal/utils/bytes.d.mts.map +1 -1
- package/internal/utils/bytes.d.ts +1 -1
- package/internal/utils/bytes.d.ts.map +1 -1
- package/internal/utils/log.d.mts +7 -12
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +7 -12
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +12 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +11 -0
- package/internal/utils/log.mjs.map +1 -1
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +595 -590
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +595 -590
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.js +544 -541
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +544 -541
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/beta-parser.d.mts +1 -3
- package/lib/beta-parser.d.mts.map +1 -1
- package/lib/beta-parser.d.ts +1 -3
- package/lib/beta-parser.d.ts.map +1 -1
- package/lib/beta-parser.js.map +1 -1
- package/lib/beta-parser.mjs.map +1 -1
- package/lib/environments/poller.js +180 -174
- package/lib/environments/poller.js.map +1 -1
- package/lib/environments/poller.mjs +180 -153
- package/lib/environments/poller.mjs.map +1 -1
- package/lib/environments/worker.js +375 -369
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +374 -329
- package/lib/environments/worker.mjs.map +1 -1
- package/lib/internal/stub.d.mts +2 -0
- package/lib/internal/stub.d.mts.map +1 -0
- package/lib/internal/stub.d.ts +2 -0
- package/lib/internal/stub.d.ts.map +1 -0
- package/lib/internal/stub.js +6 -0
- package/lib/internal/stub.js.map +1 -0
- package/lib/internal/stub.mjs +3 -0
- package/lib/internal/stub.mjs.map +1 -0
- package/lib/internal/types.d.mts +5 -0
- package/lib/internal/types.d.mts.map +1 -0
- package/lib/internal/types.d.ts +5 -0
- package/lib/internal/types.d.ts.map +1 -0
- package/lib/internal/types.js +3 -0
- package/lib/internal/types.js.map +1 -0
- package/lib/internal/types.mjs +2 -0
- package/lib/internal/types.mjs.map +1 -0
- package/lib/middleware.js +6 -1
- package/lib/middleware.js.map +1 -1
- package/lib/middleware.mjs +6 -1
- package/lib/middleware.mjs.map +1 -1
- package/lib/parser.d.mts +1 -3
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +1 -3
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs.map +1 -1
- package/lib/tools/BetaToolRunner.d.mts +21 -6
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts +21 -6
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +415 -310
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +414 -303
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/lib/tools/SessionToolRunner.js +241 -235
- package/lib/tools/SessionToolRunner.js.map +1 -1
- package/lib/tools/SessionToolRunner.mjs +241 -192
- package/lib/tools/SessionToolRunner.mjs.map +1 -1
- package/lib/tools/ToolError.js +39 -36
- package/lib/tools/ToolError.js.map +1 -1
- package/lib/tools/ToolError.mjs +39 -13
- package/lib/tools/ToolError.mjs.map +1 -1
- package/lib/transform-json-schema.js +7 -5
- package/lib/transform-json-schema.js.map +1 -1
- package/lib/transform-json-schema.mjs +7 -5
- package/lib/transform-json-schema.mjs.map +1 -1
- package/package.json +4 -3
- package/resources/beta/agents/agents.js +135 -132
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +135 -132
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/beta.d.mts +5 -5
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +5 -5
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +39 -36
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +39 -36
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/deployment-runs.d.mts +4 -0
- package/resources/beta/deployment-runs.d.mts.map +1 -1
- package/resources/beta/deployment-runs.d.ts +4 -0
- package/resources/beta/deployment-runs.d.ts.map +1 -1
- package/resources/beta/deployments.d.mts +5 -0
- package/resources/beta/deployments.d.mts.map +1 -1
- package/resources/beta/deployments.d.ts +5 -0
- package/resources/beta/deployments.d.ts.map +1 -1
- package/resources/beta/dreams.d.mts +19 -28
- package/resources/beta/dreams.d.mts.map +1 -1
- package/resources/beta/dreams.d.ts +19 -28
- package/resources/beta/dreams.d.ts.map +1 -1
- package/resources/beta/environments/environments.js +157 -154
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs +157 -154
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/environments/work.js +255 -252
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +255 -252
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memories.d.mts +6 -0
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +6 -0
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js +150 -147
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs +150 -147
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +7 -0
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +7 -0
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/messages/batches.d.mts +12 -1
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +12 -1
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/index.d.mts +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +239 -101
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +239 -101
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +113 -110
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +113 -110
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/models.d.mts +22 -1
- package/resources/beta/models.d.mts.map +1 -1
- package/resources/beta/models.d.ts +22 -1
- package/resources/beta/models.d.ts.map +1 -1
- package/resources/beta/organization/federation/federation.js +11 -8
- package/resources/beta/organization/federation/federation.js.map +1 -1
- package/resources/beta/organization/federation/federation.mjs +11 -8
- package/resources/beta/organization/federation/federation.mjs.map +1 -1
- package/resources/beta/organization/federation/rules/rules.js +187 -184
- package/resources/beta/organization/federation/rules/rules.js.map +1 -1
- package/resources/beta/organization/federation/rules/rules.mjs +187 -184
- package/resources/beta/organization/federation/rules/rules.mjs.map +1 -1
- package/resources/beta/organization/index.d.mts +1 -1
- package/resources/beta/organization/index.d.mts.map +1 -1
- package/resources/beta/organization/index.d.ts +1 -1
- package/resources/beta/organization/index.d.ts.map +1 -1
- package/resources/beta/organization/index.js.map +1 -1
- package/resources/beta/organization/index.mjs.map +1 -1
- package/resources/beta/organization/organization.d.mts +2 -2
- package/resources/beta/organization/organization.d.mts.map +1 -1
- package/resources/beta/organization/organization.d.ts +2 -2
- package/resources/beta/organization/organization.d.ts.map +1 -1
- package/resources/beta/organization/organization.js +38 -35
- package/resources/beta/organization/organization.js.map +1 -1
- package/resources/beta/organization/organization.mjs +38 -35
- package/resources/beta/organization/organization.mjs.map +1 -1
- package/resources/beta/organization/rate-limits.d.mts +87 -5
- package/resources/beta/organization/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/rate-limits.d.ts +87 -5
- package/resources/beta/organization/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.js +163 -160
- package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.mjs +163 -160
- package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.mts +9 -4
- package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.ts +9 -4
- package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.js.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.mts +3 -3
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.ts +3 -3
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.js +97 -94
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.mjs +97 -94
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +12 -21
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +12 -21
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/events.js +118 -115
- package/resources/beta/sessions/events.js.map +1 -1
- package/resources/beta/sessions/events.mjs +118 -115
- package/resources/beta/sessions/events.mjs.map +1 -1
- package/resources/beta/sessions/resources.d.mts +0 -3
- package/resources/beta/sessions/resources.d.mts.map +1 -1
- package/resources/beta/sessions/resources.d.ts +0 -3
- package/resources/beta/sessions/resources.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +8 -2
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +8 -2
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js +161 -158
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs +161 -158
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/beta/sessions/threads/threads.js +86 -83
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs +86 -83
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/skills/skills.js +104 -101
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +104 -101
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/tunnels/certificates.d.mts +2 -2
- package/resources/beta/tunnels/certificates.d.ts +2 -2
- package/resources/beta/tunnels/tunnels.js +188 -185
- package/resources/beta/tunnels/tunnels.js.map +1 -1
- package/resources/beta/tunnels/tunnels.mjs +188 -185
- package/resources/beta/tunnels/tunnels.mjs.map +1 -1
- package/resources/beta/user-profiles.d.mts +45 -0
- package/resources/beta/user-profiles.d.mts.map +1 -1
- package/resources/beta/user-profiles.d.ts +45 -0
- package/resources/beta/user-profiles.d.ts.map +1 -1
- package/resources/beta/user-profiles.js +25 -10
- package/resources/beta/user-profiles.js.map +1 -1
- package/resources/beta/user-profiles.mjs +25 -10
- package/resources/beta/user-profiles.mjs.map +1 -1
- package/resources/beta/vaults/credentials.d.mts +19 -19
- package/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/vaults/credentials.d.ts +19 -19
- package/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/vaults/vaults.js +156 -153
- package/resources/beta/vaults/vaults.js.map +1 -1
- package/resources/beta/vaults/vaults.mjs +156 -153
- package/resources/beta/vaults/vaults.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +100 -63
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +100 -63
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +115 -112
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +115 -112
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/skills/skills.js +88 -85
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +88 -85
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/top-level.js +0 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +0 -1
- package/resources/top-level.mjs.map +1 -1
- package/src/client.ts +95 -72
- package/src/internal/node.browser.ts +7 -7
- package/src/internal/parse.ts +8 -11
- package/src/internal/shims.ts +4 -3
- package/src/internal/utils/bytes.ts +1 -1
- package/src/internal/utils/log.ts +16 -2
- package/src/lib/BetaMessageStream.ts +7 -5
- package/src/lib/beta-parser.ts +1 -3
- package/src/lib/internal/stub.ts +2 -0
- package/src/lib/internal/types.ts +2 -0
- package/src/lib/middleware.ts +6 -1
- package/src/lib/parser.ts +1 -3
- package/src/lib/tools/BetaToolRunner.ts +157 -24
- package/src/lib/transform-json-schema.ts +8 -6
- package/src/resources/beta/beta.ts +24 -1
- package/src/resources/beta/deployment-runs.ts +4 -0
- package/src/resources/beta/deployments.ts +5 -0
- package/src/resources/beta/dreams.ts +19 -28
- package/src/resources/beta/index.ts +11 -0
- package/src/resources/beta/memory-stores/memories.ts +6 -0
- package/src/resources/beta/memory-stores/memory-versions.ts +7 -0
- package/src/resources/beta/messages/batches.ts +13 -1
- package/src/resources/beta/messages/index.ts +10 -0
- package/src/resources/beta/messages/messages.ts +289 -100
- package/src/resources/beta/models.ts +25 -0
- package/src/resources/beta/organization/index.ts +6 -0
- package/src/resources/beta/organization/organization.ts +12 -0
- package/src/resources/beta/organization/rate-limits.ts +112 -4
- package/src/resources/beta/organization/workspaces/rate-limits.ts +16 -4
- package/src/resources/beta/organization/workspaces/workspaces.ts +3 -3
- package/src/resources/beta/sessions/events.ts +12 -21
- package/src/resources/beta/sessions/resources.ts +0 -3
- package/src/resources/beta/sessions/sessions.ts +8 -2
- package/src/resources/beta/tunnels/certificates.ts +2 -2
- package/src/resources/beta/user-profiles.ts +75 -10
- package/src/resources/beta/vaults/credentials.ts +19 -19
- package/src/resources/completions.ts +1 -1
- package/src/resources/index.ts +6 -0
- package/src/resources/messages/index.ts +6 -0
- package/src/resources/messages/messages.ts +128 -62
- package/src/tsconfig.json +13 -3
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.js +0 -6
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +0 -6
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/memories.js +4 -4
- package/tools/agent-toolset/memories.js.map +1 -1
- package/tools/agent-toolset/memories.mjs +2 -2
- package/tools/agent-toolset/memories.mjs.map +1 -1
- package/tools/agent-toolset/node.browser.js +12 -12
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.js +142 -139
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +132 -125
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.js +5 -5
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/sync-interval.js +3 -3
- package/tools/agent-toolset/sync-interval.js.map +1 -1
- package/tools/memory/node.browser.js +2 -2
- package/tools/memory/node.browser.js.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -289,11 +289,6 @@ export interface BetaManagedAgentsCredential {
|
|
|
289
289
|
display_name?: string | null;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
/**
|
|
293
|
-
* Substitute the secret on any host the session's Environment network policy
|
|
294
|
-
* permits egress to. The Environment's network policy is the only boundary on
|
|
295
|
-
* where the secret can reach.
|
|
296
|
-
*/
|
|
297
292
|
export type BetaManagedAgentsCredentialNetworkingParams =
|
|
298
293
|
| BetaManagedAgentsUnrestrictedCredentialNetworkingParams
|
|
299
294
|
| BetaManagedAgentsLimitedCredentialNetworkingParams;
|
|
@@ -342,6 +337,12 @@ export interface BetaManagedAgentsCredentialValidation {
|
|
|
342
337
|
|
|
343
338
|
/**
|
|
344
339
|
* Overall verdict of a credential validation probe.
|
|
340
|
+
*
|
|
341
|
+
* - `valid` - The credential successfully authenticated against its MCP server.
|
|
342
|
+
* - `invalid` - The probe reached the MCP server and was rejected, and a refresh
|
|
343
|
+
* (if attempted) did not recover it.
|
|
344
|
+
* - `unknown` - The probe could not determine validity — for example, a transport
|
|
345
|
+
* error or a successful refresh that was not re-probed.
|
|
345
346
|
*/
|
|
346
347
|
export type BetaManagedAgentsCredentialValidationStatus = 'valid' | 'invalid' | 'unknown';
|
|
347
348
|
|
|
@@ -573,9 +574,6 @@ export interface BetaManagedAgentsMCPOAuthRefreshParams {
|
|
|
573
574
|
*/
|
|
574
575
|
token_endpoint: string;
|
|
575
576
|
|
|
576
|
-
/**
|
|
577
|
-
* Token endpoint requires no client authentication.
|
|
578
|
-
*/
|
|
579
577
|
token_endpoint_auth:
|
|
580
578
|
| BetaManagedAgentsTokenEndpointAuthNoneParam
|
|
581
579
|
| BetaManagedAgentsTokenEndpointAuthBasicParam
|
|
@@ -606,9 +604,6 @@ export interface BetaManagedAgentsMCPOAuthRefreshResponse {
|
|
|
606
604
|
*/
|
|
607
605
|
token_endpoint: string;
|
|
608
606
|
|
|
609
|
-
/**
|
|
610
|
-
* Token endpoint requires no client authentication.
|
|
611
|
-
*/
|
|
612
607
|
token_endpoint_auth:
|
|
613
608
|
| BetaManagedAgentsTokenEndpointAuthNoneResponse
|
|
614
609
|
| BetaManagedAgentsTokenEndpointAuthBasicResponse
|
|
@@ -639,9 +634,6 @@ export interface BetaManagedAgentsMCPOAuthRefreshUpdateParams {
|
|
|
639
634
|
*/
|
|
640
635
|
scope?: string | null;
|
|
641
636
|
|
|
642
|
-
/**
|
|
643
|
-
* Updated HTTP Basic authentication parameters for the token endpoint.
|
|
644
|
-
*/
|
|
645
637
|
token_endpoint_auth?:
|
|
646
638
|
| BetaManagedAgentsTokenEndpointAuthBasicUpdateParam
|
|
647
639
|
| BetaManagedAgentsTokenEndpointAuthPostUpdateParam;
|
|
@@ -721,6 +713,14 @@ export interface BetaManagedAgentsRefreshObject {
|
|
|
721
713
|
|
|
722
714
|
/**
|
|
723
715
|
* Outcome of a refresh-token exchange attempted during credential validation.
|
|
716
|
+
*
|
|
717
|
+
* - `succeeded` - The token endpoint returned a new access token.
|
|
718
|
+
* - `failed` - The token endpoint returned an error response. See `http_response`
|
|
719
|
+
* for detail.
|
|
720
|
+
* - `connect_error` - The token endpoint could not be reached (DNS, TLS, or
|
|
721
|
+
* connection error).
|
|
722
|
+
* - `no_refresh_token` - No refresh token is stored for the credential, so no
|
|
723
|
+
* exchange was attempted.
|
|
724
724
|
*/
|
|
725
725
|
status: 'succeeded' | 'failed' | 'connect_error' | 'no_refresh_token';
|
|
726
726
|
}
|
|
@@ -898,7 +898,7 @@ export interface CredentialCreateParams {
|
|
|
898
898
|
|
|
899
899
|
export interface CredentialRetrieveParams {
|
|
900
900
|
/**
|
|
901
|
-
* Path param:
|
|
901
|
+
* Path param: Identifier of the vault containing the credential.
|
|
902
902
|
*/
|
|
903
903
|
vault_id: string;
|
|
904
904
|
|
|
@@ -920,7 +920,7 @@ export interface CredentialRetrieveParams {
|
|
|
920
920
|
|
|
921
921
|
export interface CredentialUpdateParams {
|
|
922
922
|
/**
|
|
923
|
-
* Path param:
|
|
923
|
+
* Path param: Identifier of the vault containing the credential.
|
|
924
924
|
*/
|
|
925
925
|
vault_id: string;
|
|
926
926
|
|
|
@@ -983,7 +983,7 @@ export interface CredentialListParams extends PageCursorParams {
|
|
|
983
983
|
|
|
984
984
|
export interface CredentialDeleteParams {
|
|
985
985
|
/**
|
|
986
|
-
* Path param:
|
|
986
|
+
* Path param: Identifier of the vault containing the credential.
|
|
987
987
|
*/
|
|
988
988
|
vault_id: string;
|
|
989
989
|
|
|
@@ -1005,7 +1005,7 @@ export interface CredentialDeleteParams {
|
|
|
1005
1005
|
|
|
1006
1006
|
export interface CredentialArchiveParams {
|
|
1007
1007
|
/**
|
|
1008
|
-
* Path param:
|
|
1008
|
+
* Path param: Identifier of the vault containing the credential.
|
|
1009
1009
|
*/
|
|
1010
1010
|
vault_id: string;
|
|
1011
1011
|
|
|
@@ -1027,7 +1027,7 @@ export interface CredentialArchiveParams {
|
|
|
1027
1027
|
|
|
1028
1028
|
export interface CredentialMCPOAuthValidateParams {
|
|
1029
1029
|
/**
|
|
1030
|
-
* Path param:
|
|
1030
|
+
* Path param: Identifier of the vault containing the credential.
|
|
1031
1031
|
*/
|
|
1032
1032
|
vault_id: string;
|
|
1033
1033
|
|
|
@@ -156,7 +156,7 @@ export interface CompletionCreateParamsBase {
|
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @deprecated Deprecated. Models released after Claude Opus 4.6 do not support
|
|
159
|
-
* setting temperature. A value of 1.0
|
|
159
|
+
* setting temperature. A value of 1.0 will be accepted for backwards
|
|
160
160
|
* compatibility, all other values will be rejected with a 400 error.
|
|
161
161
|
*/
|
|
162
162
|
temperature?: number;
|
package/src/resources/index.ts
CHANGED
|
@@ -255,6 +255,12 @@ export {
|
|
|
255
255
|
type WebFetchToolResultErrorBlock,
|
|
256
256
|
type WebFetchToolResultErrorBlockParam,
|
|
257
257
|
type WebFetchToolResultErrorCode,
|
|
258
|
+
type WebFetchURLSourceAll,
|
|
259
|
+
type WebFetchURLSourceExcept,
|
|
260
|
+
type WebFetchURLSourceNone,
|
|
261
|
+
type WebFetchURLSourceOnly,
|
|
262
|
+
type WebFetchURLSourceToolReference,
|
|
263
|
+
type WebFetchURLSources,
|
|
258
264
|
type WebSearchResultBlock,
|
|
259
265
|
type WebSearchResultBlockParam,
|
|
260
266
|
type WebSearchTool20250305,
|
|
@@ -237,6 +237,12 @@ export {
|
|
|
237
237
|
type WebFetchToolResultErrorBlock,
|
|
238
238
|
type WebFetchToolResultErrorBlockParam,
|
|
239
239
|
type WebFetchToolResultErrorCode,
|
|
240
|
+
type WebFetchURLSourceAll,
|
|
241
|
+
type WebFetchURLSourceExcept,
|
|
242
|
+
type WebFetchURLSourceNone,
|
|
243
|
+
type WebFetchURLSourceOnly,
|
|
244
|
+
type WebFetchURLSourceToolReference,
|
|
245
|
+
type WebFetchURLSources,
|
|
240
246
|
type WebSearchResultBlock,
|
|
241
247
|
type WebSearchResultBlockParam,
|
|
242
248
|
type WebSearchTool20250305,
|
|
@@ -796,14 +796,6 @@ export interface BrowserStateBlockParam {
|
|
|
796
796
|
state_changes?: Array<BrowserStateChange> | null;
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
-
/**
|
|
800
|
-
* A tab this call's execution opened that remains open at its end — the creation
|
|
801
|
-
* delta of the `tabs` inventory, not an event log.
|
|
802
|
-
*
|
|
803
|
-
* Carries only the `tab_id`; the tab's `title` and `url` live on its `tabs` entry,
|
|
804
|
-
* which must include the same `tab_id`. A tab opened during a failed call gets no
|
|
805
|
-
* deferred `tab_opened`; it simply appears in the next result's `tabs` inventory.
|
|
806
|
-
*/
|
|
807
799
|
export type BrowserStateChange =
|
|
808
800
|
| BrowserStateChangeTabOpened
|
|
809
801
|
| BrowserStateChangeDownloadStarted
|
|
@@ -1659,9 +1651,6 @@ export interface CodeExecutionTool20260521 {
|
|
|
1659
1651
|
}
|
|
1660
1652
|
|
|
1661
1653
|
export interface CodeExecutionToolResultBlock {
|
|
1662
|
-
/**
|
|
1663
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1664
|
-
*/
|
|
1665
1654
|
content: CodeExecutionToolResultBlockContent;
|
|
1666
1655
|
|
|
1667
1656
|
tool_use_id: string;
|
|
@@ -1669,18 +1658,12 @@ export interface CodeExecutionToolResultBlock {
|
|
|
1669
1658
|
type: 'code_execution_tool_result';
|
|
1670
1659
|
}
|
|
1671
1660
|
|
|
1672
|
-
/**
|
|
1673
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1674
|
-
*/
|
|
1675
1661
|
export type CodeExecutionToolResultBlockContent =
|
|
1676
1662
|
| CodeExecutionToolResultError
|
|
1677
1663
|
| CodeExecutionResultBlock
|
|
1678
1664
|
| EncryptedCodeExecutionResultBlock;
|
|
1679
1665
|
|
|
1680
1666
|
export interface CodeExecutionToolResultBlockParam {
|
|
1681
|
-
/**
|
|
1682
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1683
|
-
*/
|
|
1684
1667
|
content: CodeExecutionToolResultBlockParamContent;
|
|
1685
1668
|
|
|
1686
1669
|
tool_use_id: string;
|
|
@@ -1693,9 +1676,6 @@ export interface CodeExecutionToolResultBlockParam {
|
|
|
1693
1676
|
cache_control?: CacheControlEphemeral | null;
|
|
1694
1677
|
}
|
|
1695
1678
|
|
|
1696
|
-
/**
|
|
1697
|
-
* Code execution result with encrypted stdout for PFC + web_search results.
|
|
1698
|
-
*/
|
|
1699
1679
|
export type CodeExecutionToolResultBlockParamContent =
|
|
1700
1680
|
| CodeExecutionToolResultErrorParam
|
|
1701
1681
|
| CodeExecutionResultBlockParam
|
|
@@ -2225,9 +2205,6 @@ export interface ContainerUploadBlockParam {
|
|
|
2225
2205
|
cache_control?: CacheControlEphemeral | null;
|
|
2226
2206
|
}
|
|
2227
2207
|
|
|
2228
|
-
/**
|
|
2229
|
-
* Response model for a file uploaded to the container.
|
|
2230
|
-
*/
|
|
2231
2208
|
export type ContentBlock =
|
|
2232
2209
|
| TextBlock
|
|
2233
2210
|
| ThinkingBlock
|
|
@@ -2242,9 +2219,6 @@ export type ContentBlock =
|
|
|
2242
2219
|
| ToolSearchToolResultBlock
|
|
2243
2220
|
| ContainerUploadBlock;
|
|
2244
2221
|
|
|
2245
|
-
/**
|
|
2246
|
-
* Regular text content.
|
|
2247
|
-
*/
|
|
2248
2222
|
export type ContentBlockParam =
|
|
2249
2223
|
| TextBlockParam
|
|
2250
2224
|
| ImageBlockParam
|
|
@@ -2563,10 +2537,6 @@ export interface Message {
|
|
|
2563
2537
|
usage: Usage;
|
|
2564
2538
|
}
|
|
2565
2539
|
|
|
2566
|
-
/**
|
|
2567
|
-
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
2568
|
-
* checkpoint).
|
|
2569
|
-
*/
|
|
2570
2540
|
export type MessageCountTokensTool =
|
|
2571
2541
|
| Tool
|
|
2572
2542
|
| ToolBash20250124
|
|
@@ -2739,9 +2709,6 @@ export interface RawContentBlockDeltaEvent {
|
|
|
2739
2709
|
}
|
|
2740
2710
|
|
|
2741
2711
|
export interface RawContentBlockStartEvent {
|
|
2742
|
-
/**
|
|
2743
|
-
* Response model for a file uploaded to the container.
|
|
2744
|
-
*/
|
|
2745
2712
|
content_block:
|
|
2746
2713
|
| TextBlock
|
|
2747
2714
|
| ThinkingBlock
|
|
@@ -2939,9 +2906,6 @@ export interface ServerToolUsage {
|
|
|
2939
2906
|
export interface ServerToolUseBlock {
|
|
2940
2907
|
id: string;
|
|
2941
2908
|
|
|
2942
|
-
/**
|
|
2943
|
-
* Tool invocation directly from the model.
|
|
2944
|
-
*/
|
|
2945
2909
|
caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
2946
2910
|
|
|
2947
2911
|
input: unknown;
|
|
@@ -2979,9 +2943,6 @@ export interface ServerToolUseBlockParam {
|
|
|
2979
2943
|
*/
|
|
2980
2944
|
cache_control?: CacheControlEphemeral | null;
|
|
2981
2945
|
|
|
2982
|
-
/**
|
|
2983
|
-
* Tool invocation directly from the model.
|
|
2984
|
-
*/
|
|
2985
2946
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
2986
2947
|
}
|
|
2987
2948
|
|
|
@@ -3744,10 +3705,6 @@ export interface ToolTextEditor20250728 {
|
|
|
3744
3705
|
strict?: boolean;
|
|
3745
3706
|
}
|
|
3746
3707
|
|
|
3747
|
-
/**
|
|
3748
|
-
* Code execution tool with REPL state persistence (daemon mode + gVisor
|
|
3749
|
-
* checkpoint).
|
|
3750
|
-
*/
|
|
3751
3708
|
export type ToolUnion =
|
|
3752
3709
|
| Tool
|
|
3753
3710
|
| ToolBash20250124
|
|
@@ -3774,9 +3731,6 @@ export type ToolUnion =
|
|
|
3774
3731
|
export interface ToolUseBlock {
|
|
3775
3732
|
id: string;
|
|
3776
3733
|
|
|
3777
|
-
/**
|
|
3778
|
-
* Tool invocation directly from the model.
|
|
3779
|
-
*/
|
|
3780
3734
|
caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
3781
3735
|
|
|
3782
3736
|
input: unknown;
|
|
@@ -3805,9 +3759,6 @@ export interface ToolUseBlockParam {
|
|
|
3805
3759
|
*/
|
|
3806
3760
|
cache_control?: CacheControlEphemeral | null;
|
|
3807
3761
|
|
|
3808
|
-
/**
|
|
3809
|
-
* Tool invocation directly from the model.
|
|
3810
|
-
*/
|
|
3811
3762
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
3812
3763
|
|
|
3813
3764
|
/**
|
|
@@ -3994,6 +3945,16 @@ export interface WebFetchTool20250910 {
|
|
|
3994
3945
|
* When true, guarantees schema validation on tool names and inputs
|
|
3995
3946
|
*/
|
|
3996
3947
|
strict?: boolean;
|
|
3948
|
+
|
|
3949
|
+
/**
|
|
3950
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
3951
|
+
*
|
|
3952
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
3953
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
3954
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
3955
|
+
* request's `tools[]`.
|
|
3956
|
+
*/
|
|
3957
|
+
url_sources?: WebFetchURLSources | null;
|
|
3997
3958
|
}
|
|
3998
3959
|
|
|
3999
3960
|
export interface WebFetchTool20260209 {
|
|
@@ -4052,6 +4013,16 @@ export interface WebFetchTool20260209 {
|
|
|
4052
4013
|
* When true, guarantees schema validation on tool names and inputs
|
|
4053
4014
|
*/
|
|
4054
4015
|
strict?: boolean;
|
|
4016
|
+
|
|
4017
|
+
/**
|
|
4018
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4019
|
+
*
|
|
4020
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4021
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4022
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4023
|
+
* request's `tools[]`.
|
|
4024
|
+
*/
|
|
4025
|
+
url_sources?: WebFetchURLSources | null;
|
|
4055
4026
|
}
|
|
4056
4027
|
|
|
4057
4028
|
/**
|
|
@@ -4114,6 +4085,16 @@ export interface WebFetchTool20260309 {
|
|
|
4114
4085
|
*/
|
|
4115
4086
|
strict?: boolean;
|
|
4116
4087
|
|
|
4088
|
+
/**
|
|
4089
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4090
|
+
*
|
|
4091
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4092
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4093
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4094
|
+
* request's `tools[]`.
|
|
4095
|
+
*/
|
|
4096
|
+
url_sources?: WebFetchURLSources | null;
|
|
4097
|
+
|
|
4117
4098
|
/**
|
|
4118
4099
|
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
4119
4100
|
* content. Only set to false when the user explicitly requests fresh content or
|
|
@@ -4189,6 +4170,16 @@ export interface WebFetchTool20260318 {
|
|
|
4189
4170
|
*/
|
|
4190
4171
|
strict?: boolean;
|
|
4191
4172
|
|
|
4173
|
+
/**
|
|
4174
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4175
|
+
*
|
|
4176
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4177
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4178
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4179
|
+
* request's `tools[]`.
|
|
4180
|
+
*/
|
|
4181
|
+
url_sources?: WebFetchURLSources | null;
|
|
4182
|
+
|
|
4192
4183
|
/**
|
|
4193
4184
|
* Whether to use cached content. Set to false to bypass the cache and fetch fresh
|
|
4194
4185
|
* content. Only set to false when the user explicitly requests fresh content or
|
|
@@ -4198,9 +4189,6 @@ export interface WebFetchTool20260318 {
|
|
|
4198
4189
|
}
|
|
4199
4190
|
|
|
4200
4191
|
export interface WebFetchToolResultBlock {
|
|
4201
|
-
/**
|
|
4202
|
-
* Tool invocation directly from the model.
|
|
4203
|
-
*/
|
|
4204
4192
|
caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
4205
4193
|
|
|
4206
4194
|
content: WebFetchToolResultErrorBlock | WebFetchBlock;
|
|
@@ -4222,9 +4210,6 @@ export interface WebFetchToolResultBlockParam {
|
|
|
4222
4210
|
*/
|
|
4223
4211
|
cache_control?: CacheControlEphemeral | null;
|
|
4224
4212
|
|
|
4225
|
-
/**
|
|
4226
|
-
* Tool invocation directly from the model.
|
|
4227
|
-
*/
|
|
4228
4213
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
4229
4214
|
}
|
|
4230
4215
|
|
|
@@ -4252,6 +4237,87 @@ export type WebFetchToolResultErrorCode =
|
|
|
4252
4237
|
| 'unavailable'
|
|
4253
4238
|
| 'content_too_large';
|
|
4254
4239
|
|
|
4240
|
+
/**
|
|
4241
|
+
* The `url_sources` variant under which a source contributes in full: every result
|
|
4242
|
+
* of the tool filter's source, or all user input.
|
|
4243
|
+
*/
|
|
4244
|
+
export interface WebFetchURLSourceAll {
|
|
4245
|
+
type: 'all';
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
/**
|
|
4249
|
+
* The tool filter variant under which every result but the named tools'
|
|
4250
|
+
* contributes.
|
|
4251
|
+
*/
|
|
4252
|
+
export interface WebFetchURLSourceExcept {
|
|
4253
|
+
tools: Array<WebFetchURLSourceToolReference>;
|
|
4254
|
+
|
|
4255
|
+
type: 'except';
|
|
4256
|
+
}
|
|
4257
|
+
|
|
4258
|
+
/**
|
|
4259
|
+
* The `url_sources` variant under which a source contributes nothing: no result of
|
|
4260
|
+
* the tool filter's source, or no user input.
|
|
4261
|
+
*/
|
|
4262
|
+
export interface WebFetchURLSourceNone {
|
|
4263
|
+
type: 'none';
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
/**
|
|
4267
|
+
* The tool filter variant under which only the named tools' results contribute.
|
|
4268
|
+
*/
|
|
4269
|
+
export interface WebFetchURLSourceOnly {
|
|
4270
|
+
tools: Array<WebFetchURLSourceToolReference>;
|
|
4271
|
+
|
|
4272
|
+
type: 'only';
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4275
|
+
/**
|
|
4276
|
+
* One entry of a tool filter's `tools`: it must name a tool declared in this
|
|
4277
|
+
* request's `tools[]`.
|
|
4278
|
+
*/
|
|
4279
|
+
export interface WebFetchURLSourceToolReference {
|
|
4280
|
+
name: string;
|
|
4281
|
+
|
|
4282
|
+
type: 'tool_reference';
|
|
4283
|
+
}
|
|
4284
|
+
|
|
4285
|
+
/**
|
|
4286
|
+
* Which sources contribute to the set of URLs web fetch may fetch.
|
|
4287
|
+
*
|
|
4288
|
+
* Each key is a tagged variant: `user_input` is `all` or `none`; the two tool
|
|
4289
|
+
* filters are `all`, `none`, `only` (only the named tools' results) or `except`
|
|
4290
|
+
* (every result but the named tools'). A named tool must be declared in this
|
|
4291
|
+
* request's `tools[]`.
|
|
4292
|
+
*/
|
|
4293
|
+
export interface WebFetchURLSources {
|
|
4294
|
+
/**
|
|
4295
|
+
* Which client tools' results contribute fetchable URLs: "all", "none", or an only
|
|
4296
|
+
* or except list of client tool names from tools[].
|
|
4297
|
+
*/
|
|
4298
|
+
client_tool_results?:
|
|
4299
|
+
| WebFetchURLSourceAll
|
|
4300
|
+
| WebFetchURLSourceNone
|
|
4301
|
+
| WebFetchURLSourceOnly
|
|
4302
|
+
| WebFetchURLSourceExcept;
|
|
4303
|
+
|
|
4304
|
+
/**
|
|
4305
|
+
* Which server tools' results contribute fetchable URLs: "all", "none", or an only
|
|
4306
|
+
* or except list of server tool names from tools[]; only web_search and web_fetch
|
|
4307
|
+
* results ever contribute.
|
|
4308
|
+
*/
|
|
4309
|
+
server_tool_results?:
|
|
4310
|
+
| WebFetchURLSourceAll
|
|
4311
|
+
| WebFetchURLSourceNone
|
|
4312
|
+
| WebFetchURLSourceOnly
|
|
4313
|
+
| WebFetchURLSourceExcept;
|
|
4314
|
+
|
|
4315
|
+
/**
|
|
4316
|
+
* Whether URLs in user messages are fetchable: "all" or "none".
|
|
4317
|
+
*/
|
|
4318
|
+
user_input?: WebFetchURLSourceAll | WebFetchURLSourceNone;
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4255
4321
|
export interface WebSearchResultBlock {
|
|
4256
4322
|
encrypted_content: string;
|
|
4257
4323
|
|
|
@@ -4473,9 +4539,6 @@ export interface WebSearchToolRequestError {
|
|
|
4473
4539
|
}
|
|
4474
4540
|
|
|
4475
4541
|
export interface WebSearchToolResultBlock {
|
|
4476
|
-
/**
|
|
4477
|
-
* Tool invocation directly from the model.
|
|
4478
|
-
*/
|
|
4479
4542
|
caller: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
4480
4543
|
|
|
4481
4544
|
content: WebSearchToolResultBlockContent;
|
|
@@ -4499,9 +4562,6 @@ export interface WebSearchToolResultBlockParam {
|
|
|
4499
4562
|
*/
|
|
4500
4563
|
cache_control?: CacheControlEphemeral | null;
|
|
4501
4564
|
|
|
4502
|
-
/**
|
|
4503
|
-
* Tool invocation directly from the model.
|
|
4504
|
-
*/
|
|
4505
4565
|
caller?: DirectCaller | ServerToolCaller | ServerToolCaller20260120;
|
|
4506
4566
|
}
|
|
4507
4567
|
|
|
@@ -4705,7 +4765,7 @@ export interface MessageCreateParamsBase {
|
|
|
4705
4765
|
|
|
4706
4766
|
/**
|
|
4707
4767
|
* @deprecated Deprecated. Models released after Claude Opus 4.6 do not support
|
|
4708
|
-
* setting temperature. A value of 1.0
|
|
4768
|
+
* setting temperature. A value of 1.0 will be accepted for backwards
|
|
4709
4769
|
* compatibility, all other values will be rejected with a 400 error.
|
|
4710
4770
|
*/
|
|
4711
4771
|
temperature?: number;
|
|
@@ -5310,6 +5370,12 @@ export declare namespace Messages {
|
|
|
5310
5370
|
type WebFetchToolResultErrorBlock as WebFetchToolResultErrorBlock,
|
|
5311
5371
|
type WebFetchToolResultErrorBlockParam as WebFetchToolResultErrorBlockParam,
|
|
5312
5372
|
type WebFetchToolResultErrorCode as WebFetchToolResultErrorCode,
|
|
5373
|
+
type WebFetchURLSourceAll as WebFetchURLSourceAll,
|
|
5374
|
+
type WebFetchURLSourceExcept as WebFetchURLSourceExcept,
|
|
5375
|
+
type WebFetchURLSourceNone as WebFetchURLSourceNone,
|
|
5376
|
+
type WebFetchURLSourceOnly as WebFetchURLSourceOnly,
|
|
5377
|
+
type WebFetchURLSourceToolReference as WebFetchURLSourceToolReference,
|
|
5378
|
+
type WebFetchURLSources as WebFetchURLSources,
|
|
5313
5379
|
type WebSearchResultBlock as WebSearchResultBlock,
|
|
5314
5380
|
type WebSearchResultBlockParam as WebSearchResultBlockParam,
|
|
5315
5381
|
type WebSearchTool20250305 as WebSearchTool20250305,
|
package/src/tsconfig.json
CHANGED
|
@@ -4,8 +4,18 @@
|
|
|
4
4
|
// via declaration maps
|
|
5
5
|
"include": ["index.ts"],
|
|
6
6
|
"compilerOptions": {
|
|
7
|
-
"target": "
|
|
8
|
-
"lib": ["
|
|
9
|
-
"
|
|
7
|
+
"target": "es2020",
|
|
8
|
+
"lib": ["es2022", "DOM", "DOM.Iterable"],
|
|
9
|
+
// "esnext" and not the "preserve" our own tsconfig.json uses: an SDK user's editor reads this
|
|
10
|
+
// file with whatever TypeScript it has, and "preserve" only exists from TypeScript 5.4
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"exactOptionalPropertyTypes": true,
|
|
16
|
+
"noUncheckedIndexedAccess": true,
|
|
17
|
+
"noImplicitOverride": true,
|
|
18
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
19
|
+
"skipLibCheck": true
|
|
10
20
|
}
|
|
11
21
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.127.0'; // x-release-please-version
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Shared, Node-only filesystem helpers for the agent toolset's file tools:
|
|
4
|
-
* path confinement (symlink-aware), an atomic write, and language-independent
|
|
5
|
-
* error messages. Kept out of `node.ts` so the tool implementations stay focused
|
|
6
|
-
* and these helpers can be reused by every file tool.
|
|
7
|
-
*/
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
exports.FILE_CREATE_MODE = exports.DIR_CREATE_MODE = void 0;
|
|
10
4
|
exports.isWithin = isWithin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs-util.js","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fs-util.js","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":";;;AAsBA,4BAGC;AAUD,wCAKC;AAMD,8BAGC;AAeD,oCA8BC;AAsBD,sCAqBC;AAWD,0CAqBC;AASD,wCAwBC;AAlMD,iDAAiE;AACjE,4DAAsD;AAEtD,MAAM,EAAE,GAAG,SAAM,CAAC,QAAQ,CAAC;AAE3B,oGAAoG;AACvF,QAAA,eAAe,GAAG,KAAK,CAAC;AACrC;;;GAGG;AACU,QAAA,gBAAgB,GAAG,KAAK,CAAC;AAEtC,uEAAuE;AACvE,SAAgB,QAAQ,CAAC,IAAY,EAAE,CAAS;IAC9C,MAAM,GAAG,GAAG,WAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACnC,OAAO,GA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,IAAI,2BAA2B,CAAC;QAC5C,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,GAAG,IAAI,uBAAuB,CAAC;QACxC;YACE,OAAO,GAAG,IAAI,KAAK,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAClF,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared, Node-only filesystem helpers for the agent toolset's file tools:
|
|
3
|
-
* path confinement (symlink-aware), an atomic write, and language-independent
|
|
4
|
-
* error messages. Kept out of `node.ts` so the tool implementations stay focused
|
|
5
|
-
* and these helpers can be reused by every file tool.
|
|
6
|
-
*/
|
|
7
1
|
import { crypto, fs as nodefs, path } from "../../internal/node.mjs";
|
|
8
2
|
import { ToolError } from "../../lib/tools/ToolError.mjs";
|
|
9
3
|
const fs = nodefs.promises;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs-util.mjs","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fs-util.mjs","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,MAAM,EAAE,IAAI,EAAE,gCAA4B;AACjE,OAAO,EAAE,SAAS,EAAE,sCAAkC;AAEtD,MAAM,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;AAE3B,oGAAoG;AACpG,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AACrC;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAEtC,uEAAuE;AACvE,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,CAAS;IAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CA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cAAc;YACjB,OAAO,GAAG,IAAI,sBAAsB,CAAC;QACvC,KAAK,QAAQ;YACX,OAAO,GAAG,IAAI,2BAA2B,CAAC;QAC5C,KAAK,QAAQ,CAAC;QACd,KAAK,QAAQ;YACX,OAAO,GAAG,IAAI,uBAAuB,CAAC;QACxC;YACE,OAAO,GAAG,IAAI,KAAK,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAClF,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _SessionMemoryStores_instances, _SessionMemoryStores_client, _SessionMemoryStores_workdir, _SessionMemoryStores_syncIntervalMs, _SessionMemoryStores_syncDeletions, _SessionMemoryStores_log, _SessionMemoryStores_lastSyncAt, _SessionMemoryStores_finished, _SessionMemoryStores_stores, _SessionMemoryStores_storeRoot, _SessionMemoryStores_scanMarker, _SessionMemoryStores_syncStore, _SessionMemoryStores_flushStore, _SessionMemoryStores_recover, _SessionMemoryStores_stampAndPull, _SessionMemoryStores_syncPath, _SessionMemoryStores_removeLocal, _SessionMemoryStores_write, _SessionMemoryStores_pullAll, _SessionMemoryStores_uploadAll, _SessionMemoryStores_listMemories, _SessionMemoryStores_upload, _SessionMemoryStores_corroboratedDelete, _SessionMemoryStores_deleteRemote;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SessionMemoryStores = exports.SessionMemoryError = exports.UPLOAD_CONCURRENCY = exports.DELETE_CORROBORATION_MS = exports.MARKER_PATH = exports.MEMORY_FLUSH_TIMEOUT_MS = exports.MIN_MEMORY_SYNC_INTERVAL_MS = exports.DEFAULT_MEMORY_SYNC_INTERVAL_MS = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
2
6
|
/**
|
|
3
7
|
* Session-level memory-store download and sync.
|
|
4
8
|
*
|
|
@@ -10,10 +14,6 @@
|
|
|
10
14
|
* Node-only (it sits on the filesystem-backed FileStore); like `skills.ts`,
|
|
11
15
|
* it is reachable through the shimmed `node.ts` entry point.
|
|
12
16
|
*/
|
|
13
|
-
var _SessionMemoryStores_instances, _SessionMemoryStores_client, _SessionMemoryStores_workdir, _SessionMemoryStores_syncIntervalMs, _SessionMemoryStores_syncDeletions, _SessionMemoryStores_log, _SessionMemoryStores_lastSyncAt, _SessionMemoryStores_finished, _SessionMemoryStores_stores, _SessionMemoryStores_storeRoot, _SessionMemoryStores_scanMarker, _SessionMemoryStores_syncStore, _SessionMemoryStores_flushStore, _SessionMemoryStores_recover, _SessionMemoryStores_stampAndPull, _SessionMemoryStores_syncPath, _SessionMemoryStores_removeLocal, _SessionMemoryStores_write, _SessionMemoryStores_pullAll, _SessionMemoryStores_uploadAll, _SessionMemoryStores_listMemories, _SessionMemoryStores_upload, _SessionMemoryStores_corroboratedDelete, _SessionMemoryStores_deleteRemote;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SessionMemoryStores = exports.SessionMemoryError = exports.UPLOAD_CONCURRENCY = exports.DELETE_CORROBORATION_MS = exports.MARKER_PATH = exports.MEMORY_FLUSH_TIMEOUT_MS = exports.MIN_MEMORY_SYNC_INTERVAL_MS = exports.DEFAULT_MEMORY_SYNC_INTERVAL_MS = void 0;
|
|
16
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
17
17
|
const node_1 = require("../../internal/node.js");
|
|
18
18
|
const error_1 = require("../../core/error.js");
|
|
19
19
|
const log_1 = require("../../internal/utils/log.js");
|