@anthropic-ai/sdk 0.120.0 → 0.122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/README.md +1 -1
- package/core/middleware.d.mts.map +1 -1
- package/core/middleware.d.ts.map +1 -1
- package/core/middleware.js +4 -4
- package/core/middleware.js.map +1 -1
- package/core/middleware.mjs +4 -4
- package/core/middleware.mjs.map +1 -1
- package/helpers/beta/standard-schema.d.mts +45 -0
- package/helpers/beta/standard-schema.d.mts.map +1 -0
- package/helpers/beta/standard-schema.d.ts +45 -0
- package/helpers/beta/standard-schema.d.ts.map +1 -0
- package/helpers/beta/standard-schema.js +58 -0
- package/helpers/beta/standard-schema.js.map +1 -0
- package/helpers/beta/standard-schema.mjs +54 -0
- package/helpers/beta/standard-schema.mjs.map +1 -0
- package/internal/detect-platform.js +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +3 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +3 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/parse.js +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/uploads.js +10 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +10 -6
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/values.d.mts +6 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +6 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +7 -0
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -0
- package/internal/utils/values.mjs.map +1 -1
- package/lib/BetaMessageStream.d.mts.map +1 -1
- package/lib/BetaMessageStream.d.ts.map +1 -1
- package/lib/BetaMessageStream.js +3 -4
- package/lib/BetaMessageStream.js.map +1 -1
- package/lib/BetaMessageStream.mjs +1 -2
- package/lib/BetaMessageStream.mjs.map +1 -1
- package/lib/MessageStream.d.mts.map +1 -1
- package/lib/MessageStream.d.ts.map +1 -1
- package/lib/MessageStream.js +3 -4
- package/lib/MessageStream.js.map +1 -1
- package/lib/MessageStream.mjs +1 -2
- package/lib/MessageStream.mjs.map +1 -1
- package/lib/sessions/accumulate.d.mts +3 -2
- package/lib/sessions/accumulate.d.mts.map +1 -1
- package/lib/sessions/accumulate.d.ts +3 -2
- package/lib/sessions/accumulate.d.ts.map +1 -1
- package/lib/sessions/accumulate.js +3 -46
- package/lib/sessions/accumulate.js.map +1 -1
- package/lib/sessions/accumulate.mjs +3 -46
- package/lib/sessions/accumulate.mjs.map +1 -1
- package/lib/standard-schema.d.mts +131 -0
- package/lib/standard-schema.d.mts.map +1 -0
- package/lib/standard-schema.d.ts +131 -0
- package/lib/standard-schema.d.ts.map +1 -0
- package/lib/standard-schema.js +45 -0
- package/lib/standard-schema.js.map +1 -0
- package/lib/standard-schema.mjs +41 -0
- package/lib/standard-schema.mjs.map +1 -0
- package/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/lib/tools/BetaToolRunner.js +35 -6
- package/lib/tools/BetaToolRunner.js.map +1 -1
- package/lib/tools/BetaToolRunner.mjs +35 -6
- package/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/package.json +2 -11
- package/resources/beta/beta.d.mts +11 -7
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +11 -7
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +4 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +4 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/environments/environments.d.mts +8 -1
- package/resources/beta/environments/environments.d.mts.map +1 -1
- package/resources/beta/environments/environments.d.ts +8 -1
- package/resources/beta/environments/environments.d.ts.map +1 -1
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/files.d.mts +25 -5
- package/resources/beta/files.d.mts.map +1 -1
- package/resources/beta/files.d.ts +25 -5
- package/resources/beta/files.d.ts.map +1 -1
- package/resources/beta/files.js +6 -6
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +7 -7
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +4 -3
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +4 -3
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +11 -9
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -0
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memories.d.mts +6 -5
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +6 -5
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +8 -5
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +8 -5
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/messages/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/messages.d.mts +69 -27
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +69 -27
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/organization/api-keys.d.mts +177 -0
- package/resources/beta/organization/api-keys.d.mts.map +1 -0
- package/resources/beta/organization/api-keys.d.ts +177 -0
- package/resources/beta/organization/api-keys.d.ts.map +1 -0
- package/resources/beta/organization/api-keys.js +56 -0
- package/resources/beta/organization/api-keys.js.map +1 -0
- package/resources/beta/organization/api-keys.mjs +52 -0
- package/resources/beta/organization/api-keys.mjs.map +1 -0
- package/resources/beta/organization/external-keys.d.mts +269 -0
- package/resources/beta/organization/external-keys.d.mts.map +1 -0
- package/resources/beta/organization/external-keys.d.ts +269 -0
- package/resources/beta/organization/external-keys.d.ts.map +1 -0
- package/resources/beta/organization/external-keys.js +119 -0
- package/resources/beta/organization/external-keys.js.map +1 -0
- package/resources/beta/organization/external-keys.mjs +115 -0
- package/resources/beta/organization/external-keys.mjs.map +1 -0
- package/resources/beta/organization/federation/federation.d.mts +14 -0
- package/resources/beta/organization/federation/federation.d.mts.map +1 -0
- package/resources/beta/organization/federation/federation.d.ts +14 -0
- package/resources/beta/organization/federation/federation.d.ts.map +1 -0
- package/resources/beta/organization/federation/federation.js +21 -0
- package/resources/beta/organization/federation/federation.js.map +1 -0
- package/resources/beta/organization/federation/federation.mjs +16 -0
- package/resources/beta/organization/federation/federation.mjs.map +1 -0
- package/resources/beta/organization/federation/index.d.mts +4 -0
- package/resources/beta/organization/federation/index.d.mts.map +1 -0
- package/resources/beta/organization/federation/index.d.ts +4 -0
- package/resources/beta/organization/federation/index.d.ts.map +1 -0
- package/resources/beta/organization/federation/index.js +11 -0
- package/resources/beta/organization/federation/index.js.map +1 -0
- package/resources/beta/organization/federation/index.mjs +5 -0
- package/resources/beta/organization/federation/index.mjs.map +1 -0
- package/resources/beta/organization/federation/issuers.d.mts +353 -0
- package/resources/beta/organization/federation/issuers.d.mts.map +1 -0
- package/resources/beta/organization/federation/issuers.d.ts +353 -0
- package/resources/beta/organization/federation/issuers.d.ts.map +1 -0
- package/resources/beta/organization/federation/issuers.js +169 -0
- package/resources/beta/organization/federation/issuers.js.map +1 -0
- package/resources/beta/organization/federation/issuers.mjs +165 -0
- package/resources/beta/organization/federation/issuers.mjs.map +1 -0
- package/resources/beta/organization/federation/rules/index.d.mts +3 -0
- package/resources/beta/organization/federation/rules/index.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules/index.d.ts +3 -0
- package/resources/beta/organization/federation/rules/index.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules/index.js +9 -0
- package/resources/beta/organization/federation/rules/index.js.map +1 -0
- package/resources/beta/organization/federation/rules/index.mjs +4 -0
- package/resources/beta/organization/federation/rules/index.mjs.map +1 -0
- package/resources/beta/organization/federation/rules/rules.d.mts +468 -0
- package/resources/beta/organization/federation/rules/rules.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules/rules.d.ts +468 -0
- package/resources/beta/organization/federation/rules/rules.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules/rules.js +198 -0
- package/resources/beta/organization/federation/rules/rules.js.map +1 -0
- package/resources/beta/organization/federation/rules/rules.mjs +193 -0
- package/resources/beta/organization/federation/rules/rules.mjs.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.d.mts +124 -0
- package/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.d.ts +124 -0
- package/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.js +114 -0
- package/resources/beta/organization/federation/rules/workspaces.js.map +1 -0
- package/resources/beta/organization/federation/rules/workspaces.mjs +110 -0
- package/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -0
- package/resources/beta/organization/federation/rules.d.mts +2 -0
- package/resources/beta/organization/federation/rules.d.mts.map +1 -0
- package/resources/beta/organization/federation/rules.d.ts +2 -0
- package/resources/beta/organization/federation/rules.d.ts.map +1 -0
- package/resources/beta/organization/federation/rules.js +6 -0
- package/resources/beta/organization/federation/rules.js.map +1 -0
- package/resources/beta/organization/federation/rules.mjs +3 -0
- package/resources/beta/organization/federation/rules.mjs.map +1 -0
- package/resources/beta/organization/federation.d.mts +2 -0
- package/resources/beta/organization/federation.d.mts.map +1 -0
- package/resources/beta/organization/federation.d.ts +2 -0
- package/resources/beta/organization/federation.d.ts.map +1 -0
- package/resources/beta/organization/federation.js +6 -0
- package/resources/beta/organization/federation.js.map +1 -0
- package/resources/beta/organization/federation.mjs +3 -0
- package/resources/beta/organization/federation.mjs.map +1 -0
- package/resources/beta/organization/index.d.mts +10 -0
- package/resources/beta/organization/index.d.mts.map +1 -0
- package/resources/beta/organization/index.d.ts +10 -0
- package/resources/beta/organization/index.d.ts.map +1 -0
- package/resources/beta/organization/index.js +23 -0
- package/resources/beta/organization/index.js.map +1 -0
- package/resources/beta/organization/index.mjs +11 -0
- package/resources/beta/organization/index.mjs.map +1 -0
- package/resources/beta/organization/invites.d.mts +162 -0
- package/resources/beta/organization/invites.d.mts.map +1 -0
- package/resources/beta/organization/invites.d.ts +162 -0
- package/resources/beta/organization/invites.d.ts.map +1 -0
- package/resources/beta/organization/invites.js +76 -0
- package/resources/beta/organization/invites.js.map +1 -0
- package/resources/beta/organization/invites.mjs +72 -0
- package/resources/beta/organization/invites.mjs.map +1 -0
- package/resources/beta/organization/organization.d.mts +69 -0
- package/resources/beta/organization/organization.d.mts.map +1 -0
- package/resources/beta/organization/organization.d.ts +69 -0
- package/resources/beta/organization/organization.d.ts.map +1 -0
- package/resources/beta/organization/organization.js +58 -0
- package/resources/beta/organization/organization.js.map +1 -0
- package/resources/beta/organization/organization.mjs +53 -0
- package/resources/beta/organization/organization.mjs.map +1 -0
- package/resources/beta/organization/rate-limits.d.mts +77 -0
- package/resources/beta/organization/rate-limits.d.mts.map +1 -0
- package/resources/beta/organization/rate-limits.d.ts +77 -0
- package/resources/beta/organization/rate-limits.d.ts.map +1 -0
- package/resources/beta/organization/rate-limits.js +31 -0
- package/resources/beta/organization/rate-limits.js.map +1 -0
- package/resources/beta/organization/rate-limits.mjs +27 -0
- package/resources/beta/organization/rate-limits.mjs.map +1 -0
- package/resources/beta/organization/service-accounts/index.d.mts +3 -0
- package/resources/beta/organization/service-accounts/index.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts/index.d.ts +3 -0
- package/resources/beta/organization/service-accounts/index.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts/index.js +9 -0
- package/resources/beta/organization/service-accounts/index.js.map +1 -0
- package/resources/beta/organization/service-accounts/index.mjs +4 -0
- package/resources/beta/organization/service-accounts/index.mjs.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.mts +258 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.ts +258 -0
- package/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.js +174 -0
- package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -0
- package/resources/beta/organization/service-accounts/service-accounts.mjs +169 -0
- package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.d.mts +141 -0
- package/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.d.ts +141 -0
- package/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.js +125 -0
- package/resources/beta/organization/service-accounts/workspaces.js.map +1 -0
- package/resources/beta/organization/service-accounts/workspaces.mjs +121 -0
- package/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -0
- package/resources/beta/organization/service-accounts.d.mts +2 -0
- package/resources/beta/organization/service-accounts.d.mts.map +1 -0
- package/resources/beta/organization/service-accounts.d.ts +2 -0
- package/resources/beta/organization/service-accounts.d.ts.map +1 -0
- package/resources/beta/organization/service-accounts.js +6 -0
- package/resources/beta/organization/service-accounts.js.map +1 -0
- package/resources/beta/organization/service-accounts.mjs +3 -0
- package/resources/beta/organization/service-accounts.mjs.map +1 -0
- package/resources/beta/organization/users.d.mts +124 -0
- package/resources/beta/organization/users.d.mts.map +1 -0
- package/resources/beta/organization/users.d.ts +124 -0
- package/resources/beta/organization/users.d.ts.map +1 -0
- package/resources/beta/organization/users.js +67 -0
- package/resources/beta/organization/users.js.map +1 -0
- package/resources/beta/organization/users.mjs +63 -0
- package/resources/beta/organization/users.mjs.map +1 -0
- package/resources/beta/organization/workspaces/index.d.mts +5 -0
- package/resources/beta/organization/workspaces/index.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/index.d.ts +5 -0
- package/resources/beta/organization/workspaces/index.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/index.js +13 -0
- package/resources/beta/organization/workspaces/index.js.map +1 -0
- package/resources/beta/organization/workspaces/index.mjs +6 -0
- package/resources/beta/organization/workspaces/index.mjs.map +1 -0
- package/resources/beta/organization/workspaces/members.d.mts +135 -0
- package/resources/beta/organization/workspaces/members.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/members.d.ts +135 -0
- package/resources/beta/organization/workspaces/members.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/members.js +102 -0
- package/resources/beta/organization/workspaces/members.js.map +1 -0
- package/resources/beta/organization/workspaces/members.mjs +98 -0
- package/resources/beta/organization/workspaces/members.mjs.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.d.mts +83 -0
- package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.d.ts +83 -0
- package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.js +34 -0
- package/resources/beta/organization/workspaces/rate-limits.js.map +1 -0
- package/resources/beta/organization/workspaces/rate-limits.mjs +30 -0
- package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.d.mts +210 -0
- package/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.d.ts +210 -0
- package/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.js +189 -0
- package/resources/beta/organization/workspaces/service-accounts.js.map +1 -0
- package/resources/beta/organization/workspaces/service-accounts.mjs +185 -0
- package/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.d.mts +287 -0
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.d.ts +287 -0
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.js +112 -0
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -0
- package/resources/beta/organization/workspaces/workspaces.mjs +107 -0
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -0
- package/resources/beta/organization/workspaces.d.mts +2 -0
- package/resources/beta/organization/workspaces.d.mts.map +1 -0
- package/resources/beta/organization/workspaces.d.ts +2 -0
- package/resources/beta/organization/workspaces.d.ts.map +1 -0
- package/resources/beta/organization/workspaces.js +6 -0
- package/resources/beta/organization/workspaces.js.map +1 -0
- package/resources/beta/organization/workspaces.mjs +3 -0
- package/resources/beta/organization/workspaces.mjs.map +1 -0
- package/resources/beta/organization.d.mts +2 -0
- package/resources/beta/organization.d.mts.map +1 -0
- package/resources/beta/organization.d.ts +2 -0
- package/resources/beta/organization.d.ts.map +1 -0
- package/resources/beta/organization.js +6 -0
- package/resources/beta/organization.js.map +1 -0
- package/resources/beta/organization.mjs +3 -0
- package/resources/beta/organization.mjs.map +1 -0
- package/resources/beta/sessions/threads/threads.d.mts +2 -1
- package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
- package/resources/beta/sessions/threads/threads.d.ts +2 -1
- package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/skills/index.d.mts +2 -2
- package/resources/beta/skills/index.d.mts.map +1 -1
- package/resources/beta/skills/index.d.ts +2 -2
- package/resources/beta/skills/index.d.ts.map +1 -1
- package/resources/beta/skills/index.js.map +1 -1
- package/resources/beta/skills/index.mjs.map +1 -1
- package/resources/beta/skills/skills.d.mts +48 -120
- package/resources/beta/skills/skills.d.mts.map +1 -1
- package/resources/beta/skills/skills.d.ts +48 -120
- package/resources/beta/skills/skills.d.ts.map +1 -1
- package/resources/beta/skills/skills.js +12 -8
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +12 -8
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/skills/versions.d.mts +35 -138
- package/resources/beta/skills/versions.d.mts.map +1 -1
- package/resources/beta/skills/versions.d.ts +35 -138
- package/resources/beta/skills/versions.d.ts.map +1 -1
- package/resources/beta/skills/versions.js +18 -18
- package/resources/beta/skills/versions.js.map +1 -1
- package/resources/beta/skills/versions.mjs +18 -18
- package/resources/beta/skills/versions.mjs.map +1 -1
- package/resources/beta/webhooks.d.mts +16 -17
- package/resources/beta/webhooks.d.mts.map +1 -1
- package/resources/beta/webhooks.d.ts +16 -17
- package/resources/beta/webhooks.d.ts.map +1 -1
- package/resources/beta/webhooks.js +21 -8
- package/resources/beta/webhooks.js.map +1 -1
- package/resources/beta/webhooks.mjs +21 -8
- package/resources/beta/webhooks.mjs.map +1 -1
- package/src/core/middleware.ts +4 -3
- package/src/helpers/beta/standard-schema.ts +99 -0
- package/src/internal/detect-platform.ts +1 -1
- package/src/internal/errors.ts +3 -1
- package/src/internal/parse.ts +1 -1
- package/src/internal/uploads.ts +10 -7
- package/src/internal/utils/values.ts +7 -0
- package/src/lib/BetaMessageStream.ts +1 -3
- package/src/lib/MessageStream.ts +1 -3
- package/src/lib/sessions/accumulate.ts +7 -49
- package/src/lib/standard-schema.ts +209 -0
- package/src/lib/tools/BetaToolRunner.ts +38 -6
- package/src/resources/beta/beta.ts +30 -15
- package/src/resources/beta/environments/environments.ts +8 -1
- package/src/resources/beta/files.ts +34 -11
- package/src/resources/beta/index.ts +7 -7
- package/src/resources/beta/memory-stores/memories.ts +6 -5
- package/src/resources/beta/memory-stores/memory-versions.ts +8 -5
- package/src/resources/beta/messages/index.ts +1 -1
- package/src/resources/beta/messages/messages.ts +72 -30
- package/src/resources/beta/organization/api-keys.ts +231 -0
- package/src/resources/beta/organization/external-keys.ts +362 -0
- package/src/resources/beta/organization/federation/federation.ts +71 -0
- package/src/resources/beta/organization/federation/index.ts +31 -0
- package/src/resources/beta/organization/federation/issuers.ts +486 -0
- package/src/resources/beta/organization/federation/rules/index.ts +23 -0
- package/src/resources/beta/organization/federation/rules/rules.ts +624 -0
- package/src/resources/beta/organization/federation/rules/workspaces.ts +196 -0
- package/src/resources/beta/organization/federation/rules.ts +3 -0
- package/src/resources/beta/organization/federation.ts +3 -0
- package/src/resources/beta/organization/index.ts +83 -0
- package/src/resources/beta/organization/invites.ts +207 -0
- package/src/resources/beta/organization/organization.ts +245 -0
- package/src/resources/beta/organization/rate-limits.ts +104 -0
- package/src/resources/beta/organization/service-accounts/index.ts +21 -0
- package/src/resources/beta/organization/service-accounts/service-accounts.ts +389 -0
- package/src/resources/beta/organization/service-accounts/workspaces.ts +217 -0
- package/src/resources/beta/organization/service-accounts.ts +3 -0
- package/src/resources/beta/organization/users.ts +163 -0
- package/src/resources/beta/organization/workspaces/index.ts +43 -0
- package/src/resources/beta/organization/workspaces/members.ts +209 -0
- package/src/resources/beta/organization/workspaces/rate-limits.ts +113 -0
- package/src/resources/beta/organization/workspaces/service-accounts.ts +325 -0
- package/src/resources/beta/organization/workspaces/workspaces.ts +434 -0
- package/src/resources/beta/organization/workspaces.ts +3 -0
- package/src/resources/beta/organization.ts +3 -0
- package/src/resources/beta/sessions/threads/threads.ts +2 -1
- package/src/resources/beta/skills/index.ts +7 -10
- package/src/resources/beta/skills/skills.ts +60 -150
- package/src/resources/beta/skills/versions.ts +43 -166
- package/src/resources/beta/webhooks.ts +25 -29
- package/src/tools/agent-toolset/node.browser.ts +1 -5
- package/src/tools/agent-toolset/node.ts +122 -17
- package/src/tools/agent-toolset/skills.ts +5 -33
- package/src/version.ts +1 -1
- package/tools/agent-toolset/node.browser.d.mts +1 -2
- package/tools/agent-toolset/node.browser.d.mts.map +1 -1
- package/tools/agent-toolset/node.browser.d.ts +1 -2
- package/tools/agent-toolset/node.browser.d.ts.map +1 -1
- package/tools/agent-toolset/node.browser.js +0 -4
- package/tools/agent-toolset/node.browser.js.map +1 -1
- package/tools/agent-toolset/node.browser.mjs +0 -3
- package/tools/agent-toolset/node.browser.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts +11 -9
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts +11 -9
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js +96 -8
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +96 -7
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/tools/agent-toolset/skills.d.mts +0 -8
- package/tools/agent-toolset/skills.d.mts.map +1 -1
- package/tools/agent-toolset/skills.d.ts +0 -8
- package/tools/agent-toolset/skills.d.ts.map +1 -1
- package/tools/agent-toolset/skills.js +5 -25
- package/tools/agent-toolset/skills.js.map +1 -1
- package/tools/agent-toolset/skills.mjs +5 -24
- package/tools/agent-toolset/skills.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -103,7 +103,7 @@ import * as FilesAPI from './files';
|
|
|
103
103
|
import {
|
|
104
104
|
BetaDeletedFile,
|
|
105
105
|
BetaFileMetadata,
|
|
106
|
-
|
|
106
|
+
BetaFileMetadataPageCursor,
|
|
107
107
|
BetaFileScope,
|
|
108
108
|
FileDeleteParams,
|
|
109
109
|
FileDownloadParams,
|
|
@@ -427,6 +427,7 @@ import {
|
|
|
427
427
|
BetaComputerZoomConfig,
|
|
428
428
|
BetaContainer,
|
|
429
429
|
BetaContainerParams,
|
|
430
|
+
BetaContainerSkill,
|
|
430
431
|
BetaContainerUploadBlock,
|
|
431
432
|
BetaContainerUploadBlockParam,
|
|
432
433
|
BetaContentBlock,
|
|
@@ -507,7 +508,6 @@ import {
|
|
|
507
508
|
BetaServerToolUseBlock,
|
|
508
509
|
BetaServerToolUseBlockParam,
|
|
509
510
|
BetaSignatureDelta,
|
|
510
|
-
BetaSkill,
|
|
511
511
|
BetaSkillParams,
|
|
512
512
|
BetaStopReason,
|
|
513
513
|
BetaTextBlock,
|
|
@@ -595,6 +595,8 @@ import {
|
|
|
595
595
|
BetaMCPToolConfig,
|
|
596
596
|
BetaMCPToolDefaultConfig,
|
|
597
597
|
} from './messages/messages';
|
|
598
|
+
import * as OrganizationAPI from './organization/organization';
|
|
599
|
+
import { BetaOrganization, BetaOrganizationRole, Organization } from './organization/organization';
|
|
598
600
|
import * as SessionsAPI from './sessions/sessions';
|
|
599
601
|
import {
|
|
600
602
|
BetaManagedAgentsAdvisorParams,
|
|
@@ -642,15 +644,14 @@ import {
|
|
|
642
644
|
} from './sessions/sessions';
|
|
643
645
|
import * as SkillsAPI from './skills/skills';
|
|
644
646
|
import {
|
|
647
|
+
BetaDeletedSkill,
|
|
648
|
+
BetaSkill,
|
|
649
|
+
BetaSkillSource,
|
|
650
|
+
BetaSkillsPageCursor,
|
|
645
651
|
SkillCreateParams,
|
|
646
|
-
SkillCreateResponse,
|
|
647
652
|
SkillDeleteParams,
|
|
648
|
-
SkillDeleteResponse,
|
|
649
653
|
SkillListParams,
|
|
650
|
-
SkillListResponse,
|
|
651
|
-
SkillListResponsesPageCursor,
|
|
652
654
|
SkillRetrieveParams,
|
|
653
|
-
SkillRetrieveResponse,
|
|
654
655
|
Skills,
|
|
655
656
|
} from './skills/skills';
|
|
656
657
|
import * as TunnelsAPI from './tunnels/tunnels';
|
|
@@ -696,6 +697,7 @@ export class Beta extends APIResource {
|
|
|
696
697
|
userProfiles: UserProfilesAPI.UserProfiles = new UserProfilesAPI.UserProfiles(this._client);
|
|
697
698
|
dreams: DreamsAPI.Dreams = new DreamsAPI.Dreams(this._client);
|
|
698
699
|
tunnels: TunnelsAPI.Tunnels = new TunnelsAPI.Tunnels(this._client);
|
|
700
|
+
organization: OrganizationAPI.Organization = new OrganizationAPI.Organization(this._client);
|
|
699
701
|
}
|
|
700
702
|
|
|
701
703
|
export type AnthropicBeta =
|
|
@@ -733,7 +735,14 @@ export type AnthropicBeta =
|
|
|
733
735
|
| 'fallback-credit-2026-06-01'
|
|
734
736
|
| 'fallback-credit-2026-07-01'
|
|
735
737
|
| 'agent-memory-2026-07-22'
|
|
736
|
-
| 'mid-conversation-tool-changes-2026-07-01'
|
|
738
|
+
| 'mid-conversation-tool-changes-2026-07-01'
|
|
739
|
+
| 'compact-2026-01-12'
|
|
740
|
+
| 'computer-use-2025-11-24'
|
|
741
|
+
| 'mcp-tunnels-2026-06-22'
|
|
742
|
+
| 'structured-outputs-2025-11-13'
|
|
743
|
+
| 'task-budgets-2026-03-13'
|
|
744
|
+
| 'thinking-display-updates-2026-08-18'
|
|
745
|
+
| 'ce-user-management-2026-07-13';
|
|
737
746
|
|
|
738
747
|
export interface BetaAPIError {
|
|
739
748
|
message: string;
|
|
@@ -844,6 +853,7 @@ Beta.Webhooks = Webhooks;
|
|
|
844
853
|
Beta.UserProfiles = UserProfiles;
|
|
845
854
|
Beta.Dreams = Dreams;
|
|
846
855
|
Beta.Tunnels = Tunnels;
|
|
856
|
+
Beta.Organization = Organization;
|
|
847
857
|
|
|
848
858
|
export declare namespace Beta {
|
|
849
859
|
export {
|
|
@@ -1006,6 +1016,7 @@ export declare namespace Beta {
|
|
|
1006
1016
|
type BetaComputerZoomConfig as BetaComputerZoomConfig,
|
|
1007
1017
|
type BetaContainer as BetaContainer,
|
|
1008
1018
|
type BetaContainerParams as BetaContainerParams,
|
|
1019
|
+
type BetaContainerSkill as BetaContainerSkill,
|
|
1009
1020
|
type BetaContainerUploadBlock as BetaContainerUploadBlock,
|
|
1010
1021
|
type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam,
|
|
1011
1022
|
type BetaContentBlock as BetaContentBlock,
|
|
@@ -1088,7 +1099,6 @@ export declare namespace Beta {
|
|
|
1088
1099
|
type BetaServerToolUseBlock as BetaServerToolUseBlock,
|
|
1089
1100
|
type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam,
|
|
1090
1101
|
type BetaSignatureDelta as BetaSignatureDelta,
|
|
1091
|
-
type BetaSkill as BetaSkill,
|
|
1092
1102
|
type BetaSkillParams as BetaSkillParams,
|
|
1093
1103
|
type BetaStopReason as BetaStopReason,
|
|
1094
1104
|
type BetaTextBlock as BetaTextBlock,
|
|
@@ -1419,7 +1429,7 @@ export declare namespace Beta {
|
|
|
1419
1429
|
type BetaDeletedFile as BetaDeletedFile,
|
|
1420
1430
|
type BetaFileMetadata as BetaFileMetadata,
|
|
1421
1431
|
type BetaFileScope as BetaFileScope,
|
|
1422
|
-
type
|
|
1432
|
+
type BetaFileMetadataPageCursor as BetaFileMetadataPageCursor,
|
|
1423
1433
|
type FileListParams as FileListParams,
|
|
1424
1434
|
type FileDeleteParams as FileDeleteParams,
|
|
1425
1435
|
type FileDownloadParams as FileDownloadParams,
|
|
@@ -1429,11 +1439,10 @@ export declare namespace Beta {
|
|
|
1429
1439
|
|
|
1430
1440
|
export {
|
|
1431
1441
|
Skills as Skills,
|
|
1432
|
-
type
|
|
1433
|
-
type
|
|
1434
|
-
type
|
|
1435
|
-
type
|
|
1436
|
-
type SkillListResponsesPageCursor as SkillListResponsesPageCursor,
|
|
1442
|
+
type BetaDeletedSkill as BetaDeletedSkill,
|
|
1443
|
+
type BetaSkill as BetaSkill,
|
|
1444
|
+
type BetaSkillSource as BetaSkillSource,
|
|
1445
|
+
type BetaSkillsPageCursor as BetaSkillsPageCursor,
|
|
1437
1446
|
type SkillCreateParams as SkillCreateParams,
|
|
1438
1447
|
type SkillRetrieveParams as SkillRetrieveParams,
|
|
1439
1448
|
type SkillListParams as SkillListParams,
|
|
@@ -1540,4 +1549,10 @@ export declare namespace Beta {
|
|
|
1540
1549
|
type TunnelRevealTokenParams as TunnelRevealTokenParams,
|
|
1541
1550
|
type TunnelRotateTokenParams as TunnelRotateTokenParams,
|
|
1542
1551
|
};
|
|
1552
|
+
|
|
1553
|
+
export {
|
|
1554
|
+
Organization as Organization,
|
|
1555
|
+
type BetaOrganization as BetaOrganization,
|
|
1556
|
+
type BetaOrganizationRole as BetaOrganizationRole,
|
|
1557
|
+
};
|
|
1543
1558
|
}
|
|
@@ -231,6 +231,9 @@ export interface BetaCloudConfigParams {
|
|
|
231
231
|
* When versioning, use the version semantics relevant for the package manager,
|
|
232
232
|
* e.g. for `pip` use `package==1.0.0`. You are responsible for validating the
|
|
233
233
|
* package and version exist. Unversioned installs the latest.
|
|
234
|
+
*
|
|
235
|
+
* Under `limited` networking, requires `networking.allow_package_managers` to be
|
|
236
|
+
* `true`.
|
|
234
237
|
*/
|
|
235
238
|
packages?: BetaPackagesParams | null;
|
|
236
239
|
}
|
|
@@ -352,7 +355,8 @@ export interface BetaLimitedNetworkParams {
|
|
|
352
355
|
|
|
353
356
|
/**
|
|
354
357
|
* Permits outbound access to public package registries (PyPI, npm, etc.) beyond
|
|
355
|
-
* those listed in the `allowed_hosts` array. Defaults to `false
|
|
358
|
+
* those listed in the `allowed_hosts` array. Defaults to `false` on creation. Must
|
|
359
|
+
* be `true` when `packages` are specified.
|
|
356
360
|
*/
|
|
357
361
|
allow_package_managers?: boolean | null;
|
|
358
362
|
|
|
@@ -408,6 +412,9 @@ export interface BetaPackages {
|
|
|
408
412
|
* When versioning, use the version semantics relevant for the package manager,
|
|
409
413
|
* e.g. for `pip` use `package==1.0.0`. You are responsible for validating the
|
|
410
414
|
* package and version exist. Unversioned installs the latest.
|
|
415
|
+
*
|
|
416
|
+
* Under `limited` networking, requires `networking.allow_package_managers` to be
|
|
417
|
+
* `true`.
|
|
411
418
|
*/
|
|
412
419
|
export interface BetaPackagesParams {
|
|
413
420
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as BetaAPI from './beta';
|
|
5
5
|
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import {
|
|
6
|
+
import { PageCursor, type PageCursorParams, PagePromise } from '../../core/pagination';
|
|
7
7
|
import { type Uploadable } from '../../core/uploads';
|
|
8
8
|
import { buildHeaders } from '../../internal/headers';
|
|
9
9
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -26,13 +26,13 @@ export class Files extends APIResource {
|
|
|
26
26
|
list(
|
|
27
27
|
params: FileListParams | null | undefined = {},
|
|
28
28
|
options?: RequestOptions,
|
|
29
|
-
): PagePromise<
|
|
29
|
+
): PagePromise<BetaFileMetadataPageCursor, BetaFileMetadata> {
|
|
30
30
|
const { betas, ...query } = params ?? {};
|
|
31
|
-
return this._client.getAPIList('/v1/files?beta=true',
|
|
31
|
+
return this._client.getAPIList('/v1/files?beta=true', PageCursor<BetaFileMetadata>, {
|
|
32
32
|
query,
|
|
33
33
|
...options,
|
|
34
34
|
headers: buildHeaders([
|
|
35
|
-
{
|
|
35
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
36
36
|
options?.headers,
|
|
37
37
|
]),
|
|
38
38
|
});
|
|
@@ -57,7 +57,7 @@ export class Files extends APIResource {
|
|
|
57
57
|
return this._client.delete(path`/v1/files/${fileID}?beta=true`, {
|
|
58
58
|
...options,
|
|
59
59
|
headers: buildHeaders([
|
|
60
|
-
{
|
|
60
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
61
61
|
options?.headers,
|
|
62
62
|
]),
|
|
63
63
|
});
|
|
@@ -86,8 +86,8 @@ export class Files extends APIResource {
|
|
|
86
86
|
...options,
|
|
87
87
|
headers: buildHeaders([
|
|
88
88
|
{
|
|
89
|
-
'anthropic-beta': [...(betas ?? []), 'files-api-2025-04-14'].toString(),
|
|
90
89
|
Accept: 'application/binary',
|
|
90
|
+
...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined),
|
|
91
91
|
},
|
|
92
92
|
options?.headers,
|
|
93
93
|
]),
|
|
@@ -113,7 +113,7 @@ export class Files extends APIResource {
|
|
|
113
113
|
return this._client.get(path`/v1/files/${fileID}?beta=true`, {
|
|
114
114
|
...options,
|
|
115
115
|
headers: buildHeaders([
|
|
116
|
-
{
|
|
116
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
117
117
|
options?.headers,
|
|
118
118
|
]),
|
|
119
119
|
});
|
|
@@ -139,7 +139,7 @@ export class Files extends APIResource {
|
|
|
139
139
|
body,
|
|
140
140
|
...options,
|
|
141
141
|
headers: buildHeaders([
|
|
142
|
-
{
|
|
142
|
+
{ ...(betas?.toString() != null ? { 'anthropic-beta': betas?.toString() } : undefined) },
|
|
143
143
|
stainlessHelperHeaderFromFile(body.file),
|
|
144
144
|
options?.headers,
|
|
145
145
|
]),
|
|
@@ -150,7 +150,7 @@ export class Files extends APIResource {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
export type
|
|
153
|
+
export type BetaFileMetadataPageCursor = PageCursor<BetaFileMetadata>;
|
|
154
154
|
|
|
155
155
|
export interface BetaDeletedFile {
|
|
156
156
|
/**
|
|
@@ -206,6 +206,13 @@ export interface BetaFileMetadata {
|
|
|
206
206
|
*/
|
|
207
207
|
downloadable?: boolean;
|
|
208
208
|
|
|
209
|
+
/**
|
|
210
|
+
* RFC 3339 datetime string representing when the file will expire and become
|
|
211
|
+
* unavailable for download. Null if the file does not expire. For files uploaded
|
|
212
|
+
* with `expires_in_seconds`, this is the upload time plus that value.
|
|
213
|
+
*/
|
|
214
|
+
expires_at?: string | null;
|
|
215
|
+
|
|
209
216
|
/**
|
|
210
217
|
* The scope of this file, indicating the context in which it was created (e.g., a
|
|
211
218
|
* session).
|
|
@@ -225,7 +232,16 @@ export interface BetaFileScope {
|
|
|
225
232
|
type: 'session';
|
|
226
233
|
}
|
|
227
234
|
|
|
228
|
-
export interface FileListParams extends
|
|
235
|
+
export interface FileListParams extends PageCursorParams {
|
|
236
|
+
/**
|
|
237
|
+
* Query param: Restrict the result set to Files whose `id` is in this list. At
|
|
238
|
+
* most 100 entries (after de-duplication). Mutually exclusive with `page` and
|
|
239
|
+
* `limit`. When supplied, the response is always a single page (`next_page` is
|
|
240
|
+
* null). IDs that do not resolve to a visible File — including deleted Files — are
|
|
241
|
+
* silently omitted.
|
|
242
|
+
*/
|
|
243
|
+
ids?: Array<string> | null;
|
|
244
|
+
|
|
229
245
|
/**
|
|
230
246
|
* Query param: Filter by scope ID. Only returns files associated with the
|
|
231
247
|
* specified scope (e.g., a session ID).
|
|
@@ -265,6 +281,13 @@ export interface FileUploadParams {
|
|
|
265
281
|
*/
|
|
266
282
|
file: Uploadable;
|
|
267
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Body param: Seconds from upload until the file expires and its bytes become
|
|
286
|
+
* permanently unavailable. Must be between 3600 (one hour) and 7776000 (ninety
|
|
287
|
+
* days).
|
|
288
|
+
*/
|
|
289
|
+
expires_in_seconds?: number;
|
|
290
|
+
|
|
268
291
|
/**
|
|
269
292
|
* Header param: Optional header to specify the beta version(s) you want to use.
|
|
270
293
|
*/
|
|
@@ -276,7 +299,7 @@ export declare namespace Files {
|
|
|
276
299
|
type BetaDeletedFile as BetaDeletedFile,
|
|
277
300
|
type BetaFileMetadata as BetaFileMetadata,
|
|
278
301
|
type BetaFileScope as BetaFileScope,
|
|
279
|
-
type
|
|
302
|
+
type BetaFileMetadataPageCursor as BetaFileMetadataPageCursor,
|
|
280
303
|
type FileListParams as FileListParams,
|
|
281
304
|
type FileDeleteParams as FileDeleteParams,
|
|
282
305
|
type FileDownloadParams as FileDownloadParams,
|
|
@@ -214,7 +214,7 @@ export {
|
|
|
214
214
|
type FileDownloadParams,
|
|
215
215
|
type FileRetrieveMetadataParams,
|
|
216
216
|
type FileUploadParams,
|
|
217
|
-
type
|
|
217
|
+
type BetaFileMetadataPageCursor,
|
|
218
218
|
} from './files';
|
|
219
219
|
export {
|
|
220
220
|
MemoryStores,
|
|
@@ -357,6 +357,7 @@ export {
|
|
|
357
357
|
type BetaComputerZoomConfig,
|
|
358
358
|
type BetaContainer,
|
|
359
359
|
type BetaContainerParams,
|
|
360
|
+
type BetaContainerSkill,
|
|
360
361
|
type BetaContainerUploadBlock,
|
|
361
362
|
type BetaContainerUploadBlockParam,
|
|
362
363
|
type BetaContentBlock,
|
|
@@ -440,7 +441,6 @@ export {
|
|
|
440
441
|
type BetaServerToolUseBlock,
|
|
441
442
|
type BetaServerToolUseBlockParam,
|
|
442
443
|
type BetaSignatureDelta,
|
|
443
|
-
type BetaSkill,
|
|
444
444
|
type BetaSkillParams,
|
|
445
445
|
type BetaStopReason,
|
|
446
446
|
type BetaTextBlock,
|
|
@@ -548,6 +548,7 @@ export {
|
|
|
548
548
|
type ModelListParams,
|
|
549
549
|
type BetaModelInfosPage,
|
|
550
550
|
} from './models';
|
|
551
|
+
export { Organization, type BetaOrganization, type BetaOrganizationRole } from './organization/index';
|
|
551
552
|
export {
|
|
552
553
|
Sessions,
|
|
553
554
|
type BetaManagedAgentsAdvisorParams,
|
|
@@ -594,15 +595,14 @@ export {
|
|
|
594
595
|
} from './sessions/index';
|
|
595
596
|
export {
|
|
596
597
|
Skills,
|
|
597
|
-
type
|
|
598
|
-
type
|
|
599
|
-
type
|
|
600
|
-
type SkillDeleteResponse,
|
|
598
|
+
type BetaDeletedSkill,
|
|
599
|
+
type BetaSkill,
|
|
600
|
+
type BetaSkillSource,
|
|
601
601
|
type SkillCreateParams,
|
|
602
602
|
type SkillRetrieveParams,
|
|
603
603
|
type SkillListParams,
|
|
604
604
|
type SkillDeleteParams,
|
|
605
|
-
type
|
|
605
|
+
type BetaSkillsPageCursor,
|
|
606
606
|
} from './skills/index';
|
|
607
607
|
export {
|
|
608
608
|
Tunnels,
|
|
@@ -187,10 +187,11 @@ export interface BetaManagedAgentsContentSha256Precondition {
|
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* Tombstone returned by
|
|
190
|
-
* [Delete a memory](/en/api/beta/memory_stores/memories/delete).
|
|
191
|
-
* version history
|
|
192
|
-
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list)
|
|
193
|
-
*
|
|
190
|
+
* [Delete a memory](/en/api/beta/memory_stores/memories/delete). Deleting a memory
|
|
191
|
+
* does not erase its version history: its versions remain listable via
|
|
192
|
+
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list) while
|
|
193
|
+
* they are retained (each version is kept for at least the version retention
|
|
194
|
+
* period after it was written, unless the store itself is deleted).
|
|
194
195
|
*/
|
|
195
196
|
export interface BetaManagedAgentsDeletedMemory {
|
|
196
197
|
/**
|
|
@@ -258,7 +259,7 @@ export interface BetaManagedAgentsMemory {
|
|
|
258
259
|
* ID of the `memory_version` representing this memory's current content (a
|
|
259
260
|
* `memver_...` value). This is the authoritative head pointer; `memory_version`
|
|
260
261
|
* objects do not carry an `is_latest` flag, so compare against this field instead.
|
|
261
|
-
* Enumerate the
|
|
262
|
+
* Enumerate the history via
|
|
262
263
|
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list).
|
|
263
264
|
*/
|
|
264
265
|
memory_version_id: string;
|
|
@@ -137,10 +137,12 @@ export interface BetaManagedAgentsAPIActor {
|
|
|
137
137
|
/**
|
|
138
138
|
* A `memory_version` object: one immutable, attributed row in a memory's
|
|
139
139
|
* append-only history. Every non-no-op mutation to a memory produces a new
|
|
140
|
-
* version. Versions belong to the store (not the individual memory) and
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
140
|
+
* version. Versions belong to the store (not the individual memory) and are not
|
|
141
|
+
* deleted with the memory; each version is retained for at least the version
|
|
142
|
+
* retention period after it was written, unless the store itself is deleted.
|
|
143
|
+
* Retrieving a redacted version returns 200 with `content`, `path`,
|
|
144
|
+
* `content_size_bytes`, and `content_sha256` set to `null`; branch on
|
|
145
|
+
* `redacted_at`, not HTTP status.
|
|
144
146
|
*/
|
|
145
147
|
export interface BetaManagedAgentsMemoryVersion {
|
|
146
148
|
/**
|
|
@@ -157,7 +159,8 @@ export interface BetaManagedAgentsMemoryVersion {
|
|
|
157
159
|
* ID of the memory this version snapshots (a `mem_...` value). Remains valid after
|
|
158
160
|
* the memory is deleted; pass it as `memory_id` to
|
|
159
161
|
* [List memory versions](/en/api/beta/memory_stores/memory_versions/list) to
|
|
160
|
-
* retrieve the
|
|
162
|
+
* retrieve the memory's retained versions, including the `deleted` row while the
|
|
163
|
+
* lineage is retained.
|
|
161
164
|
*/
|
|
162
165
|
memory_id: string;
|
|
163
166
|
|
|
@@ -148,6 +148,7 @@ export {
|
|
|
148
148
|
type BetaComputerZoomConfig,
|
|
149
149
|
type BetaContainer,
|
|
150
150
|
type BetaContainerParams,
|
|
151
|
+
type BetaContainerSkill,
|
|
151
152
|
type BetaContainerUploadBlock,
|
|
152
153
|
type BetaContainerUploadBlockParam,
|
|
153
154
|
type BetaContentBlock,
|
|
@@ -229,7 +230,6 @@ export {
|
|
|
229
230
|
type BetaServerToolUseBlock,
|
|
230
231
|
type BetaServerToolUseBlockParam,
|
|
231
232
|
type BetaSignatureDelta,
|
|
232
|
-
type BetaSkill,
|
|
233
233
|
type BetaSkillParams,
|
|
234
234
|
type BetaStopReason,
|
|
235
235
|
type BetaTextBlock,
|
|
@@ -2675,7 +2675,7 @@ export interface BetaContainer {
|
|
|
2675
2675
|
/**
|
|
2676
2676
|
* Skills loaded in the container
|
|
2677
2677
|
*/
|
|
2678
|
-
skills: Array<
|
|
2678
|
+
skills: Array<BetaContainerSkill> | null;
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
2681
|
/**
|
|
@@ -2693,6 +2693,26 @@ export interface BetaContainerParams {
|
|
|
2693
2693
|
skills?: Array<BetaSkillParams> | null;
|
|
2694
2694
|
}
|
|
2695
2695
|
|
|
2696
|
+
/**
|
|
2697
|
+
* A skill that was loaded in a container (response model).
|
|
2698
|
+
*/
|
|
2699
|
+
export interface BetaContainerSkill {
|
|
2700
|
+
/**
|
|
2701
|
+
* Skill ID
|
|
2702
|
+
*/
|
|
2703
|
+
skill_id: string;
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
2707
|
+
*/
|
|
2708
|
+
type: 'anthropic' | 'custom';
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* The resolved version: a skill version ID for custom skills.
|
|
2712
|
+
*/
|
|
2713
|
+
version: string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2696
2716
|
/**
|
|
2697
2717
|
* Response model for a file uploaded to the container.
|
|
2698
2718
|
*/
|
|
@@ -3256,11 +3276,25 @@ export interface BetaInputTokensTrigger {
|
|
|
3256
3276
|
* Per-iteration token usage breakdown.
|
|
3257
3277
|
*
|
|
3258
3278
|
* Each entry represents one sampling iteration, with its own input/output token
|
|
3259
|
-
* counts and cache statistics
|
|
3279
|
+
* counts and cache statistics, discriminated by `type`. For `message` entries
|
|
3280
|
+
* (model sampling iterations, such as the turns of a server-side tool use loop),
|
|
3281
|
+
* this allows you to:
|
|
3260
3282
|
*
|
|
3261
3283
|
* - Determine which iterations exceeded long context thresholds (>=200k tokens)
|
|
3262
|
-
* - Calculate the
|
|
3284
|
+
* - Calculate the context window size from the last `message` entry
|
|
3263
3285
|
* - Understand token accumulation across server-side tool use loops
|
|
3286
|
+
*
|
|
3287
|
+
* A `compaction` entry reports the token usage of the compaction operation itself
|
|
3288
|
+
* — the server-side request that summarizes the context being closed — NOT the
|
|
3289
|
+
* size of the context that was compacted away, and its token counts can be much
|
|
3290
|
+
* smaller than that closed context (for example, a compaction that closes a
|
|
3291
|
+
* ~200k-token context can report only a few thousand tokens). Do not derive the
|
|
3292
|
+
* context window size from a `compaction` entry, even when it is the last entry. A
|
|
3293
|
+
* `compaction` entry's tokens are not included in the top-level `usage` fields.
|
|
3294
|
+
* When an input-token trigger is in effect (the default — 150,000 tokens unless
|
|
3295
|
+
* configured otherwise), each `compaction` entry closes a context that had reached
|
|
3296
|
+
* at least that threshold, though the context can exceed it by the final
|
|
3297
|
+
* iteration's output and tool results.
|
|
3264
3298
|
*/
|
|
3265
3299
|
export type BetaIterationsUsage = Array<
|
|
3266
3300
|
| BetaMessageIterationUsage
|
|
@@ -3685,11 +3719,25 @@ export interface BetaMessageDeltaUsage {
|
|
|
3685
3719
|
* Per-iteration token usage breakdown.
|
|
3686
3720
|
*
|
|
3687
3721
|
* Each entry represents one sampling iteration, with its own input/output token
|
|
3688
|
-
* counts and cache statistics
|
|
3722
|
+
* counts and cache statistics, discriminated by `type`. For `message` entries
|
|
3723
|
+
* (model sampling iterations, such as the turns of a server-side tool use loop),
|
|
3724
|
+
* this allows you to:
|
|
3689
3725
|
*
|
|
3690
3726
|
* - Determine which iterations exceeded long context thresholds (>=200k tokens)
|
|
3691
|
-
* - Calculate the
|
|
3727
|
+
* - Calculate the context window size from the last `message` entry
|
|
3692
3728
|
* - Understand token accumulation across server-side tool use loops
|
|
3729
|
+
*
|
|
3730
|
+
* A `compaction` entry reports the token usage of the compaction operation itself
|
|
3731
|
+
* — the server-side request that summarizes the context being closed — NOT the
|
|
3732
|
+
* size of the context that was compacted away, and its token counts can be much
|
|
3733
|
+
* smaller than that closed context (for example, a compaction that closes a
|
|
3734
|
+
* ~200k-token context can report only a few thousand tokens). Do not derive the
|
|
3735
|
+
* context window size from a `compaction` entry, even when it is the last entry. A
|
|
3736
|
+
* `compaction` entry's tokens are not included in the top-level `usage` fields.
|
|
3737
|
+
* When an input-token trigger is in effect (the default — 150,000 tokens unless
|
|
3738
|
+
* configured otherwise), each `compaction` entry closes a context that had reached
|
|
3739
|
+
* at least that threshold, though the context can exceed it by the final
|
|
3740
|
+
* iteration's output and tool results.
|
|
3693
3741
|
*/
|
|
3694
3742
|
iterations: BetaIterationsUsage | null;
|
|
3695
3743
|
|
|
@@ -4265,26 +4313,6 @@ export interface BetaSignatureDelta {
|
|
|
4265
4313
|
type: 'signature_delta';
|
|
4266
4314
|
}
|
|
4267
4315
|
|
|
4268
|
-
/**
|
|
4269
|
-
* A skill that was loaded in a container (response model).
|
|
4270
|
-
*/
|
|
4271
|
-
export interface BetaSkill {
|
|
4272
|
-
/**
|
|
4273
|
-
* Skill ID
|
|
4274
|
-
*/
|
|
4275
|
-
skill_id: string;
|
|
4276
|
-
|
|
4277
|
-
/**
|
|
4278
|
-
* Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
|
|
4279
|
-
*/
|
|
4280
|
-
type: 'anthropic' | 'custom';
|
|
4281
|
-
|
|
4282
|
-
/**
|
|
4283
|
-
* The resolved version: a skill version ID for custom skills.
|
|
4284
|
-
*/
|
|
4285
|
-
version: string;
|
|
4286
|
-
}
|
|
4287
|
-
|
|
4288
4316
|
/**
|
|
4289
4317
|
* Specification for a skill to be loaded in a container (request model).
|
|
4290
4318
|
*/
|
|
@@ -4536,7 +4564,7 @@ export interface BetaThinkingConfigAdaptive {
|
|
|
4536
4564
|
* redacted but a signature is returned for multi-turn continuity. Defaults to
|
|
4537
4565
|
* `summarized`.
|
|
4538
4566
|
*/
|
|
4539
|
-
display?: 'summarized' | 'omitted' | null;
|
|
4567
|
+
display?: 'summarized' | 'omitted' | 'updates' | null;
|
|
4540
4568
|
}
|
|
4541
4569
|
|
|
4542
4570
|
export interface BetaThinkingConfigDisabled {
|
|
@@ -4565,7 +4593,7 @@ export interface BetaThinkingConfigEnabled {
|
|
|
4565
4593
|
* redacted but a signature is returned for multi-turn continuity. Defaults to
|
|
4566
4594
|
* `summarized`.
|
|
4567
4595
|
*/
|
|
4568
|
-
display?: 'summarized' | 'omitted' | null;
|
|
4596
|
+
display?: 'summarized' | 'omitted' | 'updates' | null;
|
|
4569
4597
|
}
|
|
4570
4598
|
|
|
4571
4599
|
/**
|
|
@@ -5460,11 +5488,25 @@ export interface BetaUsage {
|
|
|
5460
5488
|
* Per-iteration token usage breakdown.
|
|
5461
5489
|
*
|
|
5462
5490
|
* Each entry represents one sampling iteration, with its own input/output token
|
|
5463
|
-
* counts and cache statistics
|
|
5491
|
+
* counts and cache statistics, discriminated by `type`. For `message` entries
|
|
5492
|
+
* (model sampling iterations, such as the turns of a server-side tool use loop),
|
|
5493
|
+
* this allows you to:
|
|
5464
5494
|
*
|
|
5465
5495
|
* - Determine which iterations exceeded long context thresholds (>=200k tokens)
|
|
5466
|
-
* - Calculate the
|
|
5496
|
+
* - Calculate the context window size from the last `message` entry
|
|
5467
5497
|
* - Understand token accumulation across server-side tool use loops
|
|
5498
|
+
*
|
|
5499
|
+
* A `compaction` entry reports the token usage of the compaction operation itself
|
|
5500
|
+
* — the server-side request that summarizes the context being closed — NOT the
|
|
5501
|
+
* size of the context that was compacted away, and its token counts can be much
|
|
5502
|
+
* smaller than that closed context (for example, a compaction that closes a
|
|
5503
|
+
* ~200k-token context can report only a few thousand tokens). Do not derive the
|
|
5504
|
+
* context window size from a `compaction` entry, even when it is the last entry. A
|
|
5505
|
+
* `compaction` entry's tokens are not included in the top-level `usage` fields.
|
|
5506
|
+
* When an input-token trigger is in effect (the default — 150,000 tokens unless
|
|
5507
|
+
* configured otherwise), each `compaction` entry closes a context that had reached
|
|
5508
|
+
* at least that threshold, though the context can exceed it by the final
|
|
5509
|
+
* iteration's output and tool results.
|
|
5468
5510
|
*/
|
|
5469
5511
|
iterations: BetaIterationsUsage | null;
|
|
5470
5512
|
|
|
@@ -6932,6 +6974,7 @@ export declare namespace Messages {
|
|
|
6932
6974
|
type BetaComputerZoomConfig as BetaComputerZoomConfig,
|
|
6933
6975
|
type BetaContainer as BetaContainer,
|
|
6934
6976
|
type BetaContainerParams as BetaContainerParams,
|
|
6977
|
+
type BetaContainerSkill as BetaContainerSkill,
|
|
6935
6978
|
type BetaContainerUploadBlock as BetaContainerUploadBlock,
|
|
6936
6979
|
type BetaContainerUploadBlockParam as BetaContainerUploadBlockParam,
|
|
6937
6980
|
type BetaContentBlock as BetaContentBlock,
|
|
@@ -7015,7 +7058,6 @@ export declare namespace Messages {
|
|
|
7015
7058
|
type BetaServerToolUseBlock as BetaServerToolUseBlock,
|
|
7016
7059
|
type BetaServerToolUseBlockParam as BetaServerToolUseBlockParam,
|
|
7017
7060
|
type BetaSignatureDelta as BetaSignatureDelta,
|
|
7018
|
-
type BetaSkill as BetaSkill,
|
|
7019
7061
|
type BetaSkillParams as BetaSkillParams,
|
|
7020
7062
|
type BetaStopReason as BetaStopReason,
|
|
7021
7063
|
type BetaTextBlock as BetaTextBlock,
|