@anthropic-ai/sdk 0.123.0 → 0.125.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 +48 -0
- package/client.d.mts +6 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -7
- package/client.d.ts.map +1 -1
- package/client.js +8 -18
- package/client.js.map +1 -1
- package/client.mjs +8 -18
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +0 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +0 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +0 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +0 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +0 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js +0 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +0 -1
- package/core/resource.mjs.map +1 -1
- package/core/streaming.js +4 -2
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +4 -2
- package/core/streaming.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/builtin-types.js +0 -1
- package/internal/builtin-types.js.map +1 -1
- package/internal/builtin-types.mjs +0 -1
- package/internal/builtin-types.mjs.map +1 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +0 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +0 -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 +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js +0 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs +0 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shim-types.js +6 -1
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +6 -1
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +6 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +6 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/types.js +0 -1
- package/internal/types.js.map +1 -1
- package/internal/types.mjs +0 -1
- package/internal/types.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +0 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +0 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +0 -1
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +0 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/environments/worker.d.mts +14 -8
- package/lib/environments/worker.d.mts.map +1 -1
- package/lib/environments/worker.d.ts +14 -8
- package/lib/environments/worker.d.ts.map +1 -1
- package/lib/environments/worker.js +19 -9
- package/lib/environments/worker.js.map +1 -1
- package/lib/environments/worker.mjs +19 -9
- package/lib/environments/worker.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +77 -23
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +77 -23
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js +25 -11
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs +25 -11
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js +0 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs +0 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/agents/versions.d.mts +9 -0
- package/resources/beta/agents/versions.d.mts.map +1 -1
- package/resources/beta/agents/versions.d.ts +9 -0
- package/resources/beta/agents/versions.d.ts.map +1 -1
- package/resources/beta/agents/versions.js +5 -3
- package/resources/beta/agents/versions.js.map +1 -1
- package/resources/beta/agents/versions.mjs +5 -3
- package/resources/beta/agents/versions.mjs.map +1 -1
- package/resources/beta/agents.d.mts.map +1 -1
- package/resources/beta/agents.d.ts.map +1 -1
- package/resources/beta/agents.js +0 -1
- package/resources/beta/agents.js.map +1 -1
- package/resources/beta/agents.mjs +0 -1
- package/resources/beta/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 +0 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +0 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/deployment-runs.d.mts +18 -0
- package/resources/beta/deployment-runs.d.mts.map +1 -1
- package/resources/beta/deployment-runs.d.ts +18 -0
- package/resources/beta/deployment-runs.d.ts.map +1 -1
- package/resources/beta/deployment-runs.js +10 -5
- package/resources/beta/deployment-runs.js.map +1 -1
- package/resources/beta/deployment-runs.mjs +10 -5
- package/resources/beta/deployment-runs.mjs.map +1 -1
- package/resources/beta/deployments.d.mts +72 -0
- package/resources/beta/deployments.d.mts.map +1 -1
- package/resources/beta/deployments.d.ts +72 -0
- package/resources/beta/deployments.d.ts.map +1 -1
- package/resources/beta/deployments.js +40 -17
- package/resources/beta/deployments.js.map +1 -1
- package/resources/beta/deployments.mjs +40 -17
- package/resources/beta/deployments.mjs.map +1 -1
- package/resources/beta/dreams.d.mts +45 -0
- package/resources/beta/dreams.d.mts.map +1 -1
- package/resources/beta/dreams.d.ts +45 -0
- package/resources/beta/dreams.d.ts.map +1 -1
- package/resources/beta/dreams.js +25 -11
- package/resources/beta/dreams.js.map +1 -1
- package/resources/beta/dreams.mjs +25 -11
- package/resources/beta/dreams.mjs.map +1 -1
- package/resources/beta/environments/environments.d.mts +56 -2
- package/resources/beta/environments/environments.d.mts.map +1 -1
- package/resources/beta/environments/environments.d.ts +56 -2
- package/resources/beta/environments/environments.d.ts.map +1 -1
- package/resources/beta/environments/environments.js +30 -13
- package/resources/beta/environments/environments.js.map +1 -1
- package/resources/beta/environments/environments.mjs +30 -13
- package/resources/beta/environments/environments.mjs.map +1 -1
- package/resources/beta/environments/index.d.mts.map +1 -1
- package/resources/beta/environments/index.d.ts.map +1 -1
- package/resources/beta/environments/index.js +0 -1
- package/resources/beta/environments/index.js.map +1 -1
- package/resources/beta/environments/index.mjs +0 -1
- package/resources/beta/environments/index.mjs.map +1 -1
- package/resources/beta/environments/work.d.mts +36 -0
- package/resources/beta/environments/work.d.mts.map +1 -1
- package/resources/beta/environments/work.d.ts +36 -0
- package/resources/beta/environments/work.d.ts.map +1 -1
- package/resources/beta/environments/work.js +20 -9
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs +20 -9
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/environments.d.mts.map +1 -1
- package/resources/beta/environments.d.ts.map +1 -1
- package/resources/beta/environments.js +0 -1
- package/resources/beta/environments.js.map +1 -1
- package/resources/beta/environments.mjs +0 -1
- package/resources/beta/environments.mjs.map +1 -1
- package/resources/beta/files.d.mts +48 -1
- package/resources/beta/files.d.mts.map +1 -1
- package/resources/beta/files.d.ts +48 -1
- package/resources/beta/files.d.ts.map +1 -1
- package/resources/beta/files.js +22 -10
- package/resources/beta/files.js.map +1 -1
- package/resources/beta/files.mjs +22 -10
- package/resources/beta/files.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +0 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +0 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/memory-stores/index.d.mts.map +1 -1
- package/resources/beta/memory-stores/index.d.ts.map +1 -1
- package/resources/beta/memory-stores/index.js +0 -1
- package/resources/beta/memory-stores/index.js.map +1 -1
- package/resources/beta/memory-stores/index.mjs +0 -1
- package/resources/beta/memory-stores/index.mjs.map +1 -1
- package/resources/beta/memory-stores/memories.d.mts +45 -0
- package/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/resources/beta/memory-stores/memories.d.ts +45 -0
- package/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/resources/beta/memory-stores/memories.js +25 -11
- package/resources/beta/memory-stores/memories.js.map +1 -1
- package/resources/beta/memory-stores/memories.mjs +25 -11
- package/resources/beta/memory-stores/memories.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.mts +54 -0
- package/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.d.ts +54 -0
- package/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-stores.js +30 -13
- package/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores/memory-stores.mjs +30 -13
- package/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.mts +31 -4
- package/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.d.ts +31 -4
- package/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/resources/beta/memory-stores/memory-versions.js +15 -7
- package/resources/beta/memory-stores/memory-versions.js.map +1 -1
- package/resources/beta/memory-stores/memory-versions.mjs +15 -7
- package/resources/beta/memory-stores/memory-versions.mjs.map +1 -1
- package/resources/beta/memory-stores.d.mts.map +1 -1
- package/resources/beta/memory-stores.d.ts.map +1 -1
- package/resources/beta/memory-stores.js +0 -1
- package/resources/beta/memory-stores.js.map +1 -1
- package/resources/beta/memory-stores.mjs +0 -1
- package/resources/beta/memory-stores.mjs.map +1 -1
- package/resources/beta/messages/batches.d.mts +54 -0
- package/resources/beta/messages/batches.d.mts.map +1 -1
- package/resources/beta/messages/batches.d.ts +54 -0
- package/resources/beta/messages/batches.d.ts.map +1 -1
- package/resources/beta/messages/batches.js +25 -12
- package/resources/beta/messages/batches.js.map +1 -1
- package/resources/beta/messages/batches.mjs +25 -12
- package/resources/beta/messages/batches.mjs.map +1 -1
- package/resources/beta/messages/index.d.mts.map +1 -1
- package/resources/beta/messages/index.d.ts.map +1 -1
- package/resources/beta/messages/index.js +0 -1
- package/resources/beta/messages/index.js.map +1 -1
- package/resources/beta/messages/index.mjs +0 -1
- package/resources/beta/messages/index.mjs.map +1 -1
- package/resources/beta/messages/messages.d.mts +19 -1
- package/resources/beta/messages/messages.d.mts.map +1 -1
- package/resources/beta/messages/messages.d.ts +19 -1
- package/resources/beta/messages/messages.d.ts.map +1 -1
- package/resources/beta/messages/messages.js +4 -3
- package/resources/beta/messages/messages.js.map +1 -1
- package/resources/beta/messages/messages.mjs +4 -3
- package/resources/beta/messages/messages.mjs.map +1 -1
- package/resources/beta/messages.d.mts.map +1 -1
- package/resources/beta/messages.d.ts.map +1 -1
- package/resources/beta/messages.js +0 -1
- package/resources/beta/messages.js.map +1 -1
- package/resources/beta/messages.mjs +0 -1
- package/resources/beta/messages.mjs.map +1 -1
- package/resources/beta/models.d.mts +18 -0
- package/resources/beta/models.d.mts.map +1 -1
- package/resources/beta/models.d.ts +18 -0
- package/resources/beta/models.d.ts.map +1 -1
- package/resources/beta/models.js +10 -5
- package/resources/beta/models.js.map +1 -1
- package/resources/beta/models.mjs +10 -5
- package/resources/beta/models.mjs.map +1 -1
- package/resources/beta/organization/api-keys.d.mts.map +1 -1
- package/resources/beta/organization/api-keys.d.ts.map +1 -1
- package/resources/beta/organization/api-keys.js +0 -1
- package/resources/beta/organization/api-keys.js.map +1 -1
- package/resources/beta/organization/api-keys.mjs +0 -1
- package/resources/beta/organization/api-keys.mjs.map +1 -1
- package/resources/beta/organization/compliance-settings.d.mts +5 -3
- package/resources/beta/organization/compliance-settings.d.mts.map +1 -1
- package/resources/beta/organization/compliance-settings.d.ts +5 -3
- package/resources/beta/organization/compliance-settings.d.ts.map +1 -1
- package/resources/beta/organization/compliance-settings.js +0 -1
- package/resources/beta/organization/compliance-settings.js.map +1 -1
- package/resources/beta/organization/compliance-settings.mjs +0 -1
- package/resources/beta/organization/compliance-settings.mjs.map +1 -1
- package/resources/beta/organization/external-keys.d.mts.map +1 -1
- package/resources/beta/organization/external-keys.d.ts.map +1 -1
- package/resources/beta/organization/external-keys.js +0 -1
- package/resources/beta/organization/external-keys.js.map +1 -1
- package/resources/beta/organization/external-keys.mjs +0 -1
- package/resources/beta/organization/external-keys.mjs.map +1 -1
- package/resources/beta/organization/federation/federation.d.mts.map +1 -1
- package/resources/beta/organization/federation/federation.d.ts.map +1 -1
- package/resources/beta/organization/federation/federation.js +0 -1
- package/resources/beta/organization/federation/federation.js.map +1 -1
- package/resources/beta/organization/federation/federation.mjs +0 -1
- package/resources/beta/organization/federation/federation.mjs.map +1 -1
- package/resources/beta/organization/federation/index.d.mts.map +1 -1
- package/resources/beta/organization/federation/index.d.ts.map +1 -1
- package/resources/beta/organization/federation/index.js +0 -1
- package/resources/beta/organization/federation/index.js.map +1 -1
- package/resources/beta/organization/federation/index.mjs +0 -1
- package/resources/beta/organization/federation/index.mjs.map +1 -1
- package/resources/beta/organization/federation/issuers.d.mts.map +1 -1
- package/resources/beta/organization/federation/issuers.d.ts.map +1 -1
- package/resources/beta/organization/federation/issuers.js +0 -1
- package/resources/beta/organization/federation/issuers.js.map +1 -1
- package/resources/beta/organization/federation/issuers.mjs +0 -1
- package/resources/beta/organization/federation/issuers.mjs.map +1 -1
- package/resources/beta/organization/federation/rules/index.d.mts.map +1 -1
- package/resources/beta/organization/federation/rules/index.d.ts.map +1 -1
- package/resources/beta/organization/federation/rules/index.js +0 -1
- package/resources/beta/organization/federation/rules/index.js.map +1 -1
- package/resources/beta/organization/federation/rules/index.mjs +0 -1
- package/resources/beta/organization/federation/rules/index.mjs.map +1 -1
- package/resources/beta/organization/federation/rules/rules.d.mts.map +1 -1
- package/resources/beta/organization/federation/rules/rules.d.ts.map +1 -1
- package/resources/beta/organization/federation/rules/rules.js +0 -1
- package/resources/beta/organization/federation/rules/rules.js.map +1 -1
- package/resources/beta/organization/federation/rules/rules.mjs +0 -1
- package/resources/beta/organization/federation/rules/rules.mjs.map +1 -1
- package/resources/beta/organization/federation/rules/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/federation/rules/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/federation/rules/workspaces.js +0 -1
- package/resources/beta/organization/federation/rules/workspaces.js.map +1 -1
- package/resources/beta/organization/federation/rules/workspaces.mjs +0 -1
- package/resources/beta/organization/federation/rules/workspaces.mjs.map +1 -1
- package/resources/beta/organization/federation/rules.d.mts.map +1 -1
- package/resources/beta/organization/federation/rules.d.ts.map +1 -1
- package/resources/beta/organization/federation/rules.js +0 -1
- package/resources/beta/organization/federation/rules.js.map +1 -1
- package/resources/beta/organization/federation/rules.mjs +0 -1
- package/resources/beta/organization/federation/rules.mjs.map +1 -1
- package/resources/beta/organization/federation.d.mts.map +1 -1
- package/resources/beta/organization/federation.d.ts.map +1 -1
- package/resources/beta/organization/federation.js +0 -1
- package/resources/beta/organization/federation.js.map +1 -1
- package/resources/beta/organization/federation.mjs +0 -1
- package/resources/beta/organization/federation.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 +0 -1
- package/resources/beta/organization/index.js.map +1 -1
- package/resources/beta/organization/index.mjs +0 -1
- package/resources/beta/organization/index.mjs.map +1 -1
- package/resources/beta/organization/invites.d.mts.map +1 -1
- package/resources/beta/organization/invites.d.ts.map +1 -1
- package/resources/beta/organization/invites.js +0 -1
- package/resources/beta/organization/invites.js.map +1 -1
- package/resources/beta/organization/invites.mjs +0 -1
- package/resources/beta/organization/invites.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 +0 -1
- package/resources/beta/organization/organization.js.map +1 -1
- package/resources/beta/organization/organization.mjs +0 -1
- package/resources/beta/organization/organization.mjs.map +1 -1
- package/resources/beta/organization/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/rate-limits.js +0 -1
- package/resources/beta/organization/rate-limits.js.map +1 -1
- package/resources/beta/organization/rate-limits.mjs +0 -1
- package/resources/beta/organization/rate-limits.mjs.map +1 -1
- package/resources/beta/organization/service-accounts/index.d.mts.map +1 -1
- package/resources/beta/organization/service-accounts/index.d.ts.map +1 -1
- package/resources/beta/organization/service-accounts/index.js +0 -1
- package/resources/beta/organization/service-accounts/index.js.map +1 -1
- package/resources/beta/organization/service-accounts/index.mjs +0 -1
- package/resources/beta/organization/service-accounts/index.mjs.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.d.mts.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.d.ts.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.js +0 -1
- package/resources/beta/organization/service-accounts/service-accounts.js.map +1 -1
- package/resources/beta/organization/service-accounts/service-accounts.mjs +0 -1
- package/resources/beta/organization/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/beta/organization/service-accounts/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/service-accounts/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/service-accounts/workspaces.js +0 -1
- package/resources/beta/organization/service-accounts/workspaces.js.map +1 -1
- package/resources/beta/organization/service-accounts/workspaces.mjs +0 -1
- package/resources/beta/organization/service-accounts/workspaces.mjs.map +1 -1
- package/resources/beta/organization/service-accounts.d.mts.map +1 -1
- package/resources/beta/organization/service-accounts.d.ts.map +1 -1
- package/resources/beta/organization/service-accounts.js +0 -1
- package/resources/beta/organization/service-accounts.js.map +1 -1
- package/resources/beta/organization/service-accounts.mjs +0 -1
- package/resources/beta/organization/service-accounts.mjs.map +1 -1
- package/resources/beta/organization/users.d.mts.map +1 -1
- package/resources/beta/organization/users.d.ts.map +1 -1
- package/resources/beta/organization/users.js +0 -1
- package/resources/beta/organization/users.js.map +1 -1
- package/resources/beta/organization/users.mjs +0 -1
- package/resources/beta/organization/users.mjs.map +1 -1
- package/resources/beta/organization/workspaces/index.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/index.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/index.js +0 -1
- package/resources/beta/organization/workspaces/index.js.map +1 -1
- package/resources/beta/organization/workspaces/index.mjs +0 -1
- package/resources/beta/organization/workspaces/index.mjs.map +1 -1
- package/resources/beta/organization/workspaces/members.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/members.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/members.js +0 -1
- package/resources/beta/organization/workspaces/members.js.map +1 -1
- package/resources/beta/organization/workspaces/members.mjs +0 -1
- package/resources/beta/organization/workspaces/members.mjs.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.js +0 -1
- package/resources/beta/organization/workspaces/rate-limits.js.map +1 -1
- package/resources/beta/organization/workspaces/rate-limits.mjs +0 -1
- package/resources/beta/organization/workspaces/rate-limits.mjs.map +1 -1
- package/resources/beta/organization/workspaces/service-accounts.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/service-accounts.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/service-accounts.js +0 -1
- package/resources/beta/organization/workspaces/service-accounts.js.map +1 -1
- package/resources/beta/organization/workspaces/service-accounts.mjs +0 -1
- package/resources/beta/organization/workspaces/service-accounts.mjs.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.js +0 -1
- package/resources/beta/organization/workspaces/workspaces.js.map +1 -1
- package/resources/beta/organization/workspaces/workspaces.mjs +0 -1
- package/resources/beta/organization/workspaces/workspaces.mjs.map +1 -1
- package/resources/beta/organization/workspaces.d.mts.map +1 -1
- package/resources/beta/organization/workspaces.d.ts.map +1 -1
- package/resources/beta/organization/workspaces.js +0 -1
- package/resources/beta/organization/workspaces.js.map +1 -1
- package/resources/beta/organization/workspaces.mjs +0 -1
- package/resources/beta/organization/workspaces.mjs.map +1 -1
- package/resources/beta/organization.d.mts.map +1 -1
- package/resources/beta/organization.d.ts.map +1 -1
- package/resources/beta/organization.js +0 -1
- package/resources/beta/organization.js.map +1 -1
- package/resources/beta/organization.mjs +0 -1
- package/resources/beta/organization.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +110 -1
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +110 -1
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/events.js +15 -7
- package/resources/beta/sessions/events.js.map +1 -1
- package/resources/beta/sessions/events.mjs +15 -7
- package/resources/beta/sessions/events.mjs.map +1 -1
- package/resources/beta/sessions/index.d.mts +1 -1
- package/resources/beta/sessions/index.d.mts.map +1 -1
- package/resources/beta/sessions/index.d.ts +1 -1
- package/resources/beta/sessions/index.d.ts.map +1 -1
- package/resources/beta/sessions/index.js +0 -1
- package/resources/beta/sessions/index.js.map +1 -1
- package/resources/beta/sessions/index.mjs +0 -1
- package/resources/beta/sessions/index.mjs.map +1 -1
- package/resources/beta/sessions/resources.d.mts +45 -0
- package/resources/beta/sessions/resources.d.mts.map +1 -1
- package/resources/beta/sessions/resources.d.ts +45 -0
- package/resources/beta/sessions/resources.d.ts.map +1 -1
- package/resources/beta/sessions/resources.js +25 -11
- package/resources/beta/sessions/resources.js.map +1 -1
- package/resources/beta/sessions/resources.mjs +25 -11
- package/resources/beta/sessions/resources.mjs.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +61 -6
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +61 -6
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js +30 -13
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs +30 -13
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/beta/sessions/threads/events.d.mts +18 -0
- package/resources/beta/sessions/threads/events.d.mts.map +1 -1
- package/resources/beta/sessions/threads/events.d.ts +18 -0
- package/resources/beta/sessions/threads/events.d.ts.map +1 -1
- package/resources/beta/sessions/threads/events.js +10 -5
- package/resources/beta/sessions/threads/events.js.map +1 -1
- package/resources/beta/sessions/threads/events.mjs +10 -5
- package/resources/beta/sessions/threads/events.mjs.map +1 -1
- package/resources/beta/sessions/threads/index.d.mts.map +1 -1
- package/resources/beta/sessions/threads/index.d.ts.map +1 -1
- package/resources/beta/sessions/threads/index.js +0 -1
- package/resources/beta/sessions/threads/index.js.map +1 -1
- package/resources/beta/sessions/threads/index.mjs +0 -1
- package/resources/beta/sessions/threads/index.mjs.map +1 -1
- package/resources/beta/sessions/threads/threads.d.mts +27 -0
- package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
- package/resources/beta/sessions/threads/threads.d.ts +27 -0
- package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
- package/resources/beta/sessions/threads/threads.js +15 -7
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs +15 -7
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/sessions/threads.d.mts.map +1 -1
- package/resources/beta/sessions/threads.d.ts.map +1 -1
- package/resources/beta/sessions/threads.js +0 -1
- package/resources/beta/sessions/threads.js.map +1 -1
- package/resources/beta/sessions/threads.mjs +0 -1
- package/resources/beta/sessions/threads.mjs.map +1 -1
- package/resources/beta/sessions.d.mts.map +1 -1
- package/resources/beta/sessions.d.ts.map +1 -1
- package/resources/beta/sessions.js +0 -1
- package/resources/beta/sessions.js.map +1 -1
- package/resources/beta/sessions.mjs +0 -1
- package/resources/beta/sessions.mjs.map +1 -1
- package/resources/beta/skills/index.d.mts.map +1 -1
- package/resources/beta/skills/index.d.ts.map +1 -1
- package/resources/beta/skills/index.js +0 -1
- package/resources/beta/skills/index.js.map +1 -1
- package/resources/beta/skills/index.mjs +0 -1
- package/resources/beta/skills/index.mjs.map +1 -1
- package/resources/beta/skills/skills.d.mts +36 -0
- package/resources/beta/skills/skills.d.mts.map +1 -1
- package/resources/beta/skills/skills.d.ts +36 -0
- package/resources/beta/skills/skills.d.ts.map +1 -1
- package/resources/beta/skills/skills.js +20 -9
- package/resources/beta/skills/skills.js.map +1 -1
- package/resources/beta/skills/skills.mjs +20 -9
- package/resources/beta/skills/skills.mjs.map +1 -1
- package/resources/beta/skills/versions.d.mts +45 -0
- package/resources/beta/skills/versions.d.mts.map +1 -1
- package/resources/beta/skills/versions.d.ts +45 -0
- package/resources/beta/skills/versions.d.ts.map +1 -1
- package/resources/beta/skills/versions.js +22 -10
- package/resources/beta/skills/versions.js.map +1 -1
- package/resources/beta/skills/versions.mjs +22 -10
- package/resources/beta/skills/versions.mjs.map +1 -1
- package/resources/beta/skills.d.mts.map +1 -1
- package/resources/beta/skills.d.ts.map +1 -1
- package/resources/beta/skills.js +0 -1
- package/resources/beta/skills.js.map +1 -1
- package/resources/beta/skills.mjs +0 -1
- package/resources/beta/skills.mjs.map +1 -1
- package/resources/beta/tunnels/certificates.d.mts +36 -0
- package/resources/beta/tunnels/certificates.d.mts.map +1 -1
- package/resources/beta/tunnels/certificates.d.ts +36 -0
- package/resources/beta/tunnels/certificates.d.ts.map +1 -1
- package/resources/beta/tunnels/certificates.js +20 -9
- package/resources/beta/tunnels/certificates.js.map +1 -1
- package/resources/beta/tunnels/certificates.mjs +20 -9
- package/resources/beta/tunnels/certificates.mjs.map +1 -1
- package/resources/beta/tunnels/index.d.mts.map +1 -1
- package/resources/beta/tunnels/index.d.ts.map +1 -1
- package/resources/beta/tunnels/index.js +0 -1
- package/resources/beta/tunnels/index.js.map +1 -1
- package/resources/beta/tunnels/index.mjs +0 -1
- package/resources/beta/tunnels/index.mjs.map +1 -1
- package/resources/beta/tunnels/tunnels.d.mts +54 -0
- package/resources/beta/tunnels/tunnels.d.mts.map +1 -1
- package/resources/beta/tunnels/tunnels.d.ts +54 -0
- package/resources/beta/tunnels/tunnels.d.ts.map +1 -1
- package/resources/beta/tunnels/tunnels.js +30 -13
- package/resources/beta/tunnels/tunnels.js.map +1 -1
- package/resources/beta/tunnels/tunnels.mjs +30 -13
- package/resources/beta/tunnels/tunnels.mjs.map +1 -1
- package/resources/beta/tunnels.d.mts.map +1 -1
- package/resources/beta/tunnels.d.ts.map +1 -1
- package/resources/beta/tunnels.js +0 -1
- package/resources/beta/tunnels.js.map +1 -1
- package/resources/beta/tunnels.mjs +0 -1
- package/resources/beta/tunnels.mjs.map +1 -1
- package/resources/beta/user-profiles.d.mts +115 -4
- package/resources/beta/user-profiles.d.mts.map +1 -1
- package/resources/beta/user-profiles.d.ts +115 -4
- package/resources/beta/user-profiles.d.ts.map +1 -1
- package/resources/beta/user-profiles.js +0 -1
- package/resources/beta/user-profiles.js.map +1 -1
- package/resources/beta/user-profiles.mjs +0 -1
- package/resources/beta/user-profiles.mjs.map +1 -1
- package/resources/beta/vaults/credentials.d.mts +63 -0
- package/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/vaults/credentials.d.ts +63 -0
- package/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/vaults/credentials.js +35 -15
- package/resources/beta/vaults/credentials.js.map +1 -1
- package/resources/beta/vaults/credentials.mjs +35 -15
- package/resources/beta/vaults/credentials.mjs.map +1 -1
- package/resources/beta/vaults/index.d.mts.map +1 -1
- package/resources/beta/vaults/index.d.ts.map +1 -1
- package/resources/beta/vaults/index.js +0 -1
- package/resources/beta/vaults/index.js.map +1 -1
- package/resources/beta/vaults/index.mjs +0 -1
- package/resources/beta/vaults/index.mjs.map +1 -1
- package/resources/beta/vaults/vaults.d.mts +54 -0
- package/resources/beta/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/vaults/vaults.d.ts +54 -0
- package/resources/beta/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/vaults/vaults.js +30 -13
- package/resources/beta/vaults/vaults.js.map +1 -1
- package/resources/beta/vaults/vaults.mjs +30 -13
- package/resources/beta/vaults/vaults.mjs.map +1 -1
- package/resources/beta/vaults.d.mts.map +1 -1
- package/resources/beta/vaults.d.ts.map +1 -1
- package/resources/beta/vaults.js +0 -1
- package/resources/beta/vaults.js.map +1 -1
- package/resources/beta/vaults.mjs +0 -1
- package/resources/beta/vaults.mjs.map +1 -1
- package/resources/beta/webhooks.d.mts.map +1 -1
- package/resources/beta/webhooks.d.ts.map +1 -1
- package/resources/beta/webhooks.js +0 -1
- package/resources/beta/webhooks.js.map +1 -1
- package/resources/beta/webhooks.mjs +0 -1
- package/resources/beta/webhooks.mjs.map +1 -1
- package/resources/beta.d.mts.map +1 -1
- package/resources/beta.d.ts.map +1 -1
- package/resources/beta.js +0 -1
- package/resources/beta.js.map +1 -1
- package/resources/beta.mjs +0 -1
- package/resources/beta.mjs.map +1 -1
- package/resources/completions.d.mts +9 -0
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +9 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +5 -3
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +5 -3
- package/resources/completions.mjs.map +1 -1
- package/resources/files.d.mts +104 -15
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +104 -15
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +79 -11
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +79 -11
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +0 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/batches.d.mts +68 -6
- package/resources/messages/batches.d.mts.map +1 -1
- package/resources/messages/batches.d.ts +68 -6
- package/resources/messages/batches.d.ts.map +1 -1
- package/resources/messages/batches.js +52 -14
- package/resources/messages/batches.js.map +1 -1
- package/resources/messages/batches.mjs +52 -14
- package/resources/messages/batches.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js +0 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +0 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +21 -3
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +21 -3
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +10 -5
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +10 -5
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +0 -1
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +0 -1
- package/resources/messages.mjs.map +1 -1
- package/resources/models.d.mts +31 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +31 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +23 -5
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +23 -5
- package/resources/models.mjs.map +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +0 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +0 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/skills/index.d.mts +1 -1
- package/resources/skills/index.d.mts.map +1 -1
- package/resources/skills/index.d.ts +1 -1
- package/resources/skills/index.d.ts.map +1 -1
- package/resources/skills/index.js +0 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs +0 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/skills.d.mts +75 -10
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +75 -10
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +64 -9
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +64 -9
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions.d.mts +75 -5
- package/resources/skills/versions.d.mts.map +1 -1
- package/resources/skills/versions.d.ts +75 -5
- package/resources/skills/versions.d.ts.map +1 -1
- package/resources/skills/versions.js +67 -8
- package/resources/skills/versions.js.map +1 -1
- package/resources/skills/versions.mjs +67 -8
- package/resources/skills/versions.mjs.map +1 -1
- package/resources/skills.d.mts.map +1 -1
- package/resources/skills.d.ts.map +1 -1
- package/resources/skills.js +0 -1
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +0 -1
- package/resources/skills.mjs.map +1 -1
- package/src/client.ts +18 -21
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +0 -2
- package/src/core/pagination.ts +0 -2
- package/src/core/resource.ts +0 -2
- package/src/core/streaming.ts +4 -2
- package/src/index.ts +0 -2
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/detect-platform.ts +0 -2
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/parse.ts +0 -2
- package/src/internal/request-options.ts +1 -3
- package/src/internal/shim-types.ts +0 -2
- package/src/internal/shims.ts +0 -2
- package/src/internal/types.ts +0 -2
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/env.ts +0 -2
- package/src/internal/utils/log.ts +0 -2
- package/src/internal/utils/query.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/lib/.keep +0 -2
- package/src/lib/environments/worker.ts +29 -15
- package/src/resources/beta/agents/agents.ts +185 -34
- package/src/resources/beta/agents/index.ts +1 -2
- package/src/resources/beta/agents/versions.ts +15 -4
- package/src/resources/beta/agents.ts +0 -2
- package/src/resources/beta/beta.ts +7 -2
- package/src/resources/beta/deployment-runs.ts +30 -6
- package/src/resources/beta/deployments.ts +120 -18
- package/src/resources/beta/dreams.ts +75 -12
- package/src/resources/beta/environments/environments.ts +92 -16
- package/src/resources/beta/environments/index.ts +0 -2
- package/src/resources/beta/environments/work.ts +60 -10
- package/src/resources/beta/environments.ts +0 -2
- package/src/resources/beta/files.ts +75 -13
- package/src/resources/beta/index.ts +3 -2
- package/src/resources/beta/memory-stores/index.ts +0 -2
- package/src/resources/beta/memory-stores/memories.ts +75 -12
- package/src/resources/beta/memory-stores/memory-stores.ts +90 -14
- package/src/resources/beta/memory-stores/memory-versions.ts +49 -12
- package/src/resources/beta/memory-stores.ts +0 -2
- package/src/resources/beta/messages/batches.ts +85 -13
- package/src/resources/beta/messages/index.ts +0 -2
- package/src/resources/beta/messages/messages.ts +26 -5
- package/src/resources/beta/messages.ts +0 -2
- package/src/resources/beta/models.ts +30 -6
- package/src/resources/beta/organization/api-keys.ts +0 -2
- package/src/resources/beta/organization/compliance-settings.ts +12 -4
- package/src/resources/beta/organization/external-keys.ts +0 -2
- package/src/resources/beta/organization/federation/federation.ts +0 -2
- package/src/resources/beta/organization/federation/index.ts +0 -2
- package/src/resources/beta/organization/federation/issuers.ts +0 -2
- package/src/resources/beta/organization/federation/rules/index.ts +0 -2
- package/src/resources/beta/organization/federation/rules/rules.ts +0 -2
- package/src/resources/beta/organization/federation/rules/workspaces.ts +0 -2
- package/src/resources/beta/organization/federation/rules.ts +0 -2
- package/src/resources/beta/organization/federation.ts +0 -2
- package/src/resources/beta/organization/index.ts +2 -2
- package/src/resources/beta/organization/invites.ts +0 -2
- package/src/resources/beta/organization/organization.ts +4 -2
- package/src/resources/beta/organization/rate-limits.ts +0 -2
- package/src/resources/beta/organization/service-accounts/index.ts +0 -2
- package/src/resources/beta/organization/service-accounts/service-accounts.ts +0 -2
- package/src/resources/beta/organization/service-accounts/workspaces.ts +0 -2
- package/src/resources/beta/organization/service-accounts.ts +0 -2
- package/src/resources/beta/organization/users.ts +0 -2
- package/src/resources/beta/organization/workspaces/index.ts +0 -2
- package/src/resources/beta/organization/workspaces/members.ts +0 -2
- package/src/resources/beta/organization/workspaces/rate-limits.ts +0 -2
- package/src/resources/beta/organization/workspaces/service-accounts.ts +0 -2
- package/src/resources/beta/organization/workspaces/workspaces.ts +0 -2
- package/src/resources/beta/organization/workspaces.ts +0 -2
- package/src/resources/beta/organization.ts +0 -2
- package/src/resources/beta/sessions/events.ts +154 -8
- package/src/resources/beta/sessions/index.ts +8 -2
- package/src/resources/beta/sessions/resources.ts +75 -12
- package/src/resources/beta/sessions/sessions.ts +112 -19
- package/src/resources/beta/sessions/threads/events.ts +30 -6
- package/src/resources/beta/sessions/threads/index.ts +0 -2
- package/src/resources/beta/sessions/threads/threads.ts +45 -8
- package/src/resources/beta/sessions/threads.ts +0 -2
- package/src/resources/beta/sessions.ts +0 -2
- package/src/resources/beta/skills/index.ts +0 -2
- package/src/resources/beta/skills/skills.ts +60 -10
- package/src/resources/beta/skills/versions.ts +72 -11
- package/src/resources/beta/skills.ts +0 -2
- package/src/resources/beta/tunnels/certificates.ts +60 -10
- package/src/resources/beta/tunnels/index.ts +0 -2
- package/src/resources/beta/tunnels/tunnels.ts +90 -14
- package/src/resources/beta/tunnels.ts +0 -2
- package/src/resources/beta/user-profiles.ts +133 -5
- package/src/resources/beta/vaults/credentials.ts +105 -16
- package/src/resources/beta/vaults/index.ts +0 -2
- package/src/resources/beta/vaults/vaults.ts +90 -14
- package/src/resources/beta/vaults.ts +0 -2
- package/src/resources/beta/webhooks.ts +0 -2
- package/src/resources/beta.ts +0 -2
- package/src/resources/completions.ts +15 -4
- package/src/resources/files.ts +161 -20
- package/src/resources/index.ts +5 -2
- package/src/resources/messages/batches.ts +137 -15
- package/src/resources/messages/index.ts +4 -2
- package/src/resources/messages/messages.ts +40 -7
- package/src/resources/messages.ts +0 -2
- package/src/resources/models.ts +43 -6
- package/src/resources/shared.ts +0 -2
- package/src/resources/skills/index.ts +2 -2
- package/src/resources/skills/skills.ts +127 -15
- package/src/resources/skills/versions.ts +115 -13
- package/src/resources/skills.ts +0 -2
- package/src/tools/agent-toolset/fs-util.ts +16 -4
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.d.mts +11 -4
- package/tools/agent-toolset/fs-util.d.mts.map +1 -1
- package/tools/agent-toolset/fs-util.d.ts +11 -4
- package/tools/agent-toolset/fs-util.d.ts.map +1 -1
- package/tools/agent-toolset/fs-util.js +14 -4
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +14 -4
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -50,7 +50,7 @@ export declare class Batches extends APIResource {
|
|
|
50
50
|
* );
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
retrieve(messageBatchID: string, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
53
|
+
retrieve(messageBatchID: string, params?: BatchRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
54
54
|
/**
|
|
55
55
|
* List all Message Batches within a Workspace. Most recently created batches are
|
|
56
56
|
* returned first.
|
|
@@ -66,7 +66,7 @@ export declare class Batches extends APIResource {
|
|
|
66
66
|
* }
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
list(
|
|
69
|
+
list(params?: BatchListParams | null | undefined, options?: RequestOptions): PagePromise<MessageBatchesPage, MessageBatch>;
|
|
70
70
|
/**
|
|
71
71
|
* Delete a Message Batch.
|
|
72
72
|
*
|
|
@@ -82,7 +82,7 @@ export declare class Batches extends APIResource {
|
|
|
82
82
|
* await client.messages.batches.delete('message_batch_id');
|
|
83
83
|
* ```
|
|
84
84
|
*/
|
|
85
|
-
delete(messageBatchID: string, options?: RequestOptions): APIPromise<DeletedMessageBatch>;
|
|
85
|
+
delete(messageBatchID: string, params?: BatchDeleteParams | null | undefined, options?: RequestOptions): APIPromise<DeletedMessageBatch>;
|
|
86
86
|
/**
|
|
87
87
|
* Batches may be canceled any time before processing ends. Once cancellation is
|
|
88
88
|
* initiated, the batch enters a `canceling` state, at which time the system may
|
|
@@ -104,7 +104,7 @@ export declare class Batches extends APIResource {
|
|
|
104
104
|
* );
|
|
105
105
|
* ```
|
|
106
106
|
*/
|
|
107
|
-
cancel(messageBatchID: string, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
107
|
+
cancel(messageBatchID: string, params?: BatchCancelParams | null | undefined, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
108
108
|
/**
|
|
109
109
|
* Streams the results of a Message Batch as a `.jsonl` file.
|
|
110
110
|
*
|
|
@@ -121,7 +121,7 @@ export declare class Batches extends APIResource {
|
|
|
121
121
|
* await client.messages.batches.results('message_batch_id');
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
results(messageBatchID: string, options?: RequestOptions): Promise<JSONLDecoder<MessageBatchIndividualResponse>>;
|
|
124
|
+
results(messageBatchID: string, params?: BatchResultsParams | undefined, options?: RequestOptions): Promise<JSONLDecoder<MessageBatchIndividualResponse>>;
|
|
125
125
|
}
|
|
126
126
|
export type MessageBatchesPage = Page<MessageBatch>;
|
|
127
127
|
export interface DeletedMessageBatch {
|
|
@@ -285,6 +285,15 @@ export interface BatchCreateParams {
|
|
|
285
285
|
* is errored.
|
|
286
286
|
*/
|
|
287
287
|
user_profile_id?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
290
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
291
|
+
*
|
|
292
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
293
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
294
|
+
* match that Workspace.
|
|
295
|
+
*/
|
|
296
|
+
workspace_id?: string;
|
|
288
297
|
}
|
|
289
298
|
export declare namespace BatchCreateParams {
|
|
290
299
|
interface Request {
|
|
@@ -305,9 +314,62 @@ export declare namespace BatchCreateParams {
|
|
|
305
314
|
params: MessagesAPI.MessageCreateParamsNonStreaming;
|
|
306
315
|
}
|
|
307
316
|
}
|
|
317
|
+
export interface BatchRetrieveParams {
|
|
318
|
+
/**
|
|
319
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
320
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
321
|
+
*
|
|
322
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
323
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
324
|
+
* match that Workspace.
|
|
325
|
+
*/
|
|
326
|
+
workspace_id?: string;
|
|
327
|
+
}
|
|
308
328
|
export interface BatchListParams extends PageParams {
|
|
329
|
+
/**
|
|
330
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
331
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
332
|
+
*
|
|
333
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
334
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
335
|
+
* match that Workspace.
|
|
336
|
+
*/
|
|
337
|
+
workspace_id?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface BatchDeleteParams {
|
|
340
|
+
/**
|
|
341
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
342
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
343
|
+
*
|
|
344
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
345
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
346
|
+
* match that Workspace.
|
|
347
|
+
*/
|
|
348
|
+
workspace_id?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface BatchCancelParams {
|
|
351
|
+
/**
|
|
352
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
353
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
354
|
+
*
|
|
355
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
356
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
357
|
+
* match that Workspace.
|
|
358
|
+
*/
|
|
359
|
+
workspace_id?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface BatchResultsParams {
|
|
362
|
+
/**
|
|
363
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
364
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
365
|
+
*
|
|
366
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
367
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
368
|
+
* match that Workspace.
|
|
369
|
+
*/
|
|
370
|
+
workspace_id?: string;
|
|
309
371
|
}
|
|
310
372
|
export declare namespace Batches {
|
|
311
|
-
export { type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, type MessageBatchExpiredResult as MessageBatchExpiredResult, type MessageBatchIndividualResponse as MessageBatchIndividualResponse, type MessageBatchRequestCounts as MessageBatchRequestCounts, type MessageBatchResult as MessageBatchResult, type MessageBatchSucceededResult as MessageBatchSucceededResult, type MessageBatchesPage as MessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
|
|
373
|
+
export { type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, type MessageBatchExpiredResult as MessageBatchExpiredResult, type MessageBatchIndividualResponse as MessageBatchIndividualResponse, type MessageBatchRequestCounts as MessageBatchRequestCounts, type MessageBatchResult as MessageBatchResult, type MessageBatchSucceededResult as MessageBatchSucceededResult, type MessageBatchesPage as MessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, };
|
|
312
374
|
}
|
|
313
375
|
//# sourceMappingURL=batches.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batches.d.mts","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;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OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -50,7 +50,7 @@ export declare class Batches extends APIResource {
|
|
|
50
50
|
* );
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
retrieve(messageBatchID: string, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
53
|
+
retrieve(messageBatchID: string, params?: BatchRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
54
54
|
/**
|
|
55
55
|
* List all Message Batches within a Workspace. Most recently created batches are
|
|
56
56
|
* returned first.
|
|
@@ -66,7 +66,7 @@ export declare class Batches extends APIResource {
|
|
|
66
66
|
* }
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
list(
|
|
69
|
+
list(params?: BatchListParams | null | undefined, options?: RequestOptions): PagePromise<MessageBatchesPage, MessageBatch>;
|
|
70
70
|
/**
|
|
71
71
|
* Delete a Message Batch.
|
|
72
72
|
*
|
|
@@ -82,7 +82,7 @@ export declare class Batches extends APIResource {
|
|
|
82
82
|
* await client.messages.batches.delete('message_batch_id');
|
|
83
83
|
* ```
|
|
84
84
|
*/
|
|
85
|
-
delete(messageBatchID: string, options?: RequestOptions): APIPromise<DeletedMessageBatch>;
|
|
85
|
+
delete(messageBatchID: string, params?: BatchDeleteParams | null | undefined, options?: RequestOptions): APIPromise<DeletedMessageBatch>;
|
|
86
86
|
/**
|
|
87
87
|
* Batches may be canceled any time before processing ends. Once cancellation is
|
|
88
88
|
* initiated, the batch enters a `canceling` state, at which time the system may
|
|
@@ -104,7 +104,7 @@ export declare class Batches extends APIResource {
|
|
|
104
104
|
* );
|
|
105
105
|
* ```
|
|
106
106
|
*/
|
|
107
|
-
cancel(messageBatchID: string, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
107
|
+
cancel(messageBatchID: string, params?: BatchCancelParams | null | undefined, options?: RequestOptions): APIPromise<MessageBatch>;
|
|
108
108
|
/**
|
|
109
109
|
* Streams the results of a Message Batch as a `.jsonl` file.
|
|
110
110
|
*
|
|
@@ -121,7 +121,7 @@ export declare class Batches extends APIResource {
|
|
|
121
121
|
* await client.messages.batches.results('message_batch_id');
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
results(messageBatchID: string, options?: RequestOptions): Promise<JSONLDecoder<MessageBatchIndividualResponse>>;
|
|
124
|
+
results(messageBatchID: string, params?: BatchResultsParams | undefined, options?: RequestOptions): Promise<JSONLDecoder<MessageBatchIndividualResponse>>;
|
|
125
125
|
}
|
|
126
126
|
export type MessageBatchesPage = Page<MessageBatch>;
|
|
127
127
|
export interface DeletedMessageBatch {
|
|
@@ -285,6 +285,15 @@ export interface BatchCreateParams {
|
|
|
285
285
|
* is errored.
|
|
286
286
|
*/
|
|
287
287
|
user_profile_id?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
290
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
291
|
+
*
|
|
292
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
293
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
294
|
+
* match that Workspace.
|
|
295
|
+
*/
|
|
296
|
+
workspace_id?: string;
|
|
288
297
|
}
|
|
289
298
|
export declare namespace BatchCreateParams {
|
|
290
299
|
interface Request {
|
|
@@ -305,9 +314,62 @@ export declare namespace BatchCreateParams {
|
|
|
305
314
|
params: MessagesAPI.MessageCreateParamsNonStreaming;
|
|
306
315
|
}
|
|
307
316
|
}
|
|
317
|
+
export interface BatchRetrieveParams {
|
|
318
|
+
/**
|
|
319
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
320
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
321
|
+
*
|
|
322
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
323
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
324
|
+
* match that Workspace.
|
|
325
|
+
*/
|
|
326
|
+
workspace_id?: string;
|
|
327
|
+
}
|
|
308
328
|
export interface BatchListParams extends PageParams {
|
|
329
|
+
/**
|
|
330
|
+
* Header param: Optional header to select the Workspace for this request. The
|
|
331
|
+
* value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
332
|
+
*
|
|
333
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
334
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
335
|
+
* match that Workspace.
|
|
336
|
+
*/
|
|
337
|
+
workspace_id?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface BatchDeleteParams {
|
|
340
|
+
/**
|
|
341
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
342
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
343
|
+
*
|
|
344
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
345
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
346
|
+
* match that Workspace.
|
|
347
|
+
*/
|
|
348
|
+
workspace_id?: string;
|
|
349
|
+
}
|
|
350
|
+
export interface BatchCancelParams {
|
|
351
|
+
/**
|
|
352
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
353
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
354
|
+
*
|
|
355
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
356
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
357
|
+
* match that Workspace.
|
|
358
|
+
*/
|
|
359
|
+
workspace_id?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface BatchResultsParams {
|
|
362
|
+
/**
|
|
363
|
+
* Optional header to select the Workspace for this request. The value is a
|
|
364
|
+
* Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
365
|
+
*
|
|
366
|
+
* Only needed for credentials that can act on more than one Workspace. A
|
|
367
|
+
* credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
368
|
+
* match that Workspace.
|
|
369
|
+
*/
|
|
370
|
+
workspace_id?: string;
|
|
309
371
|
}
|
|
310
372
|
export declare namespace Batches {
|
|
311
|
-
export { type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, type MessageBatchExpiredResult as MessageBatchExpiredResult, type MessageBatchIndividualResponse as MessageBatchIndividualResponse, type MessageBatchRequestCounts as MessageBatchRequestCounts, type MessageBatchResult as MessageBatchResult, type MessageBatchSucceededResult as MessageBatchSucceededResult, type MessageBatchesPage as MessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchListParams as BatchListParams, };
|
|
373
|
+
export { type DeletedMessageBatch as DeletedMessageBatch, type MessageBatch as MessageBatch, type MessageBatchCanceledResult as MessageBatchCanceledResult, type MessageBatchErroredResult as MessageBatchErroredResult, type MessageBatchExpiredResult as MessageBatchExpiredResult, type MessageBatchIndividualResponse as MessageBatchIndividualResponse, type MessageBatchRequestCounts as MessageBatchRequestCounts, type MessageBatchResult as MessageBatchResult, type MessageBatchSucceededResult as MessageBatchSucceededResult, type MessageBatchesPage as MessageBatchesPage, type BatchCreateParams as BatchCreateParams, type BatchRetrieveParams as BatchRetrieveParams, type BatchListParams as BatchListParams, type BatchDeleteParams as BatchDeleteParams, type BatchCancelParams as BatchCancelParams, type BatchResultsParams as BatchResultsParams, };
|
|
312
374
|
}
|
|
313
375
|
//# sourceMappingURL=batches.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batches.d.ts","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,WAAW,EAAE,iCAA8B;AAE3E,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAChE,OAAO,EAAE,YAAY,EAAE,yCAAsC;AAI7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAerF;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,cAAc,EAAE,MAAM,EACtB,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAW3B;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CA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1
1
|
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.Batches = void 0;
|
|
5
4
|
const resource_1 = require("../../core/resource.js");
|
|
@@ -38,12 +37,15 @@ class Batches extends resource_1.APIResource {
|
|
|
38
37
|
* ```
|
|
39
38
|
*/
|
|
40
39
|
create(params, options) {
|
|
41
|
-
const { user_profile_id, ...body } = params;
|
|
40
|
+
const { user_profile_id, workspace_id, ...body } = params;
|
|
42
41
|
return this._client.post('/v1/messages/batches', {
|
|
43
42
|
body,
|
|
44
43
|
...options,
|
|
45
44
|
headers: (0, headers_1.buildHeaders)([
|
|
46
|
-
{
|
|
45
|
+
{
|
|
46
|
+
...(user_profile_id != null ? { 'anthropic-user-profile-id': user_profile_id } : undefined),
|
|
47
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
48
|
+
},
|
|
47
49
|
options?.headers,
|
|
48
50
|
]),
|
|
49
51
|
});
|
|
@@ -63,8 +65,15 @@ class Batches extends resource_1.APIResource {
|
|
|
63
65
|
* );
|
|
64
66
|
* ```
|
|
65
67
|
*/
|
|
66
|
-
retrieve(messageBatchID, options) {
|
|
67
|
-
|
|
68
|
+
retrieve(messageBatchID, params = {}, options) {
|
|
69
|
+
const { workspace_id } = params ?? {};
|
|
70
|
+
return this._client.get((0, path_1.path) `/v1/messages/batches/${messageBatchID}`, {
|
|
71
|
+
...options,
|
|
72
|
+
headers: (0, headers_1.buildHeaders)([
|
|
73
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
74
|
+
options?.headers,
|
|
75
|
+
]),
|
|
76
|
+
});
|
|
68
77
|
}
|
|
69
78
|
/**
|
|
70
79
|
* List all Message Batches within a Workspace. Most recently created batches are
|
|
@@ -81,8 +90,16 @@ class Batches extends resource_1.APIResource {
|
|
|
81
90
|
* }
|
|
82
91
|
* ```
|
|
83
92
|
*/
|
|
84
|
-
list(
|
|
85
|
-
|
|
93
|
+
list(params = {}, options) {
|
|
94
|
+
const { workspace_id, ...query } = params ?? {};
|
|
95
|
+
return this._client.getAPIList('/v1/messages/batches', (pagination_1.Page), {
|
|
96
|
+
query,
|
|
97
|
+
...options,
|
|
98
|
+
headers: (0, headers_1.buildHeaders)([
|
|
99
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
100
|
+
options?.headers,
|
|
101
|
+
]),
|
|
102
|
+
});
|
|
86
103
|
}
|
|
87
104
|
/**
|
|
88
105
|
* Delete a Message Batch.
|
|
@@ -99,8 +116,15 @@ class Batches extends resource_1.APIResource {
|
|
|
99
116
|
* await client.messages.batches.delete('message_batch_id');
|
|
100
117
|
* ```
|
|
101
118
|
*/
|
|
102
|
-
delete(messageBatchID, options) {
|
|
103
|
-
|
|
119
|
+
delete(messageBatchID, params = {}, options) {
|
|
120
|
+
const { workspace_id } = params ?? {};
|
|
121
|
+
return this._client.delete((0, path_1.path) `/v1/messages/batches/${messageBatchID}`, {
|
|
122
|
+
...options,
|
|
123
|
+
headers: (0, headers_1.buildHeaders)([
|
|
124
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
125
|
+
options?.headers,
|
|
126
|
+
]),
|
|
127
|
+
});
|
|
104
128
|
}
|
|
105
129
|
/**
|
|
106
130
|
* Batches may be canceled any time before processing ends. Once cancellation is
|
|
@@ -123,8 +147,15 @@ class Batches extends resource_1.APIResource {
|
|
|
123
147
|
* );
|
|
124
148
|
* ```
|
|
125
149
|
*/
|
|
126
|
-
cancel(messageBatchID, options) {
|
|
127
|
-
|
|
150
|
+
cancel(messageBatchID, params = {}, options) {
|
|
151
|
+
const { workspace_id } = params ?? {};
|
|
152
|
+
return this._client.post((0, path_1.path) `/v1/messages/batches/${messageBatchID}/cancel`, {
|
|
153
|
+
...options,
|
|
154
|
+
headers: (0, headers_1.buildHeaders)([
|
|
155
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
156
|
+
options?.headers,
|
|
157
|
+
]),
|
|
158
|
+
});
|
|
128
159
|
}
|
|
129
160
|
/**
|
|
130
161
|
* Streams the results of a Message Batch as a `.jsonl` file.
|
|
@@ -142,15 +173,22 @@ class Batches extends resource_1.APIResource {
|
|
|
142
173
|
* await client.messages.batches.results('message_batch_id');
|
|
143
174
|
* ```
|
|
144
175
|
*/
|
|
145
|
-
async results(messageBatchID, options) {
|
|
146
|
-
const batch = await this.retrieve(messageBatchID);
|
|
176
|
+
async results(messageBatchID, params = {}, options) {
|
|
177
|
+
const batch = await this.retrieve(messageBatchID, params, options);
|
|
147
178
|
if (!batch.results_url) {
|
|
148
179
|
throw new error_1.AnthropicError(`No batch \`results_url\`; Has it finished processing? ${batch.processing_status} - ${batch.id}`);
|
|
149
180
|
}
|
|
181
|
+
const { workspace_id } = params ?? {};
|
|
150
182
|
return this._client
|
|
151
183
|
.get(batch.results_url, {
|
|
152
184
|
...options,
|
|
153
|
-
headers: (0, headers_1.buildHeaders)([
|
|
185
|
+
headers: (0, headers_1.buildHeaders)([
|
|
186
|
+
{
|
|
187
|
+
Accept: 'application/binary',
|
|
188
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
189
|
+
},
|
|
190
|
+
options?.headers,
|
|
191
|
+
]),
|
|
154
192
|
stream: true,
|
|
155
193
|
__binaryResponse: true,
|
|
156
194
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.js","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batches.js","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAIlD,yDAA2E;AAC3E,uDAAsD;AAEtD,4DAA6D;AAC7D,0CAA6C;AAC7C,uDAAiD;AAEjD,MAAa,OA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B,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACtF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,OAAO,CACX,cAAsB,EACtB,SAAyC,EAAE,EAC3C,OAAwB;QAExB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;YACvB,MAAM,IAAI,sBAAc,CACtB,yDAAyD,KAAK,CAAC,iBAAiB,MAAM,KAAK,CAAC,EAAE,EAAE,CACjG,CAAC;QACJ,CAAC;QAED,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO;aAChB,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE;YACtB,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,MAAM,EAAE,oBAAoB;oBAC5B,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,wBAAwB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACnF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;YACF,MAAM,EAAE,IAAI;YACZ,gBAAgB,EAAE,IAAI;SACvB,CAAC;aACD,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,oBAAY,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,CAEvF,CAAC;IACJ,CAAC;CACF;AAxND,0BAwNC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
2
|
import { Page } from "../../core/pagination.mjs";
|
|
4
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
@@ -35,12 +34,15 @@ export class Batches extends APIResource {
|
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
36
|
create(params, options) {
|
|
38
|
-
const { user_profile_id, ...body } = params;
|
|
37
|
+
const { user_profile_id, workspace_id, ...body } = params;
|
|
39
38
|
return this._client.post('/v1/messages/batches', {
|
|
40
39
|
body,
|
|
41
40
|
...options,
|
|
42
41
|
headers: buildHeaders([
|
|
43
|
-
{
|
|
42
|
+
{
|
|
43
|
+
...(user_profile_id != null ? { 'anthropic-user-profile-id': user_profile_id } : undefined),
|
|
44
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
45
|
+
},
|
|
44
46
|
options?.headers,
|
|
45
47
|
]),
|
|
46
48
|
});
|
|
@@ -60,8 +62,15 @@ export class Batches extends APIResource {
|
|
|
60
62
|
* );
|
|
61
63
|
* ```
|
|
62
64
|
*/
|
|
63
|
-
retrieve(messageBatchID, options) {
|
|
64
|
-
|
|
65
|
+
retrieve(messageBatchID, params = {}, options) {
|
|
66
|
+
const { workspace_id } = params ?? {};
|
|
67
|
+
return this._client.get(path `/v1/messages/batches/${messageBatchID}`, {
|
|
68
|
+
...options,
|
|
69
|
+
headers: buildHeaders([
|
|
70
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
71
|
+
options?.headers,
|
|
72
|
+
]),
|
|
73
|
+
});
|
|
65
74
|
}
|
|
66
75
|
/**
|
|
67
76
|
* List all Message Batches within a Workspace. Most recently created batches are
|
|
@@ -78,8 +87,16 @@ export class Batches extends APIResource {
|
|
|
78
87
|
* }
|
|
79
88
|
* ```
|
|
80
89
|
*/
|
|
81
|
-
list(
|
|
82
|
-
|
|
90
|
+
list(params = {}, options) {
|
|
91
|
+
const { workspace_id, ...query } = params ?? {};
|
|
92
|
+
return this._client.getAPIList('/v1/messages/batches', (Page), {
|
|
93
|
+
query,
|
|
94
|
+
...options,
|
|
95
|
+
headers: buildHeaders([
|
|
96
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
97
|
+
options?.headers,
|
|
98
|
+
]),
|
|
99
|
+
});
|
|
83
100
|
}
|
|
84
101
|
/**
|
|
85
102
|
* Delete a Message Batch.
|
|
@@ -96,8 +113,15 @@ export class Batches extends APIResource {
|
|
|
96
113
|
* await client.messages.batches.delete('message_batch_id');
|
|
97
114
|
* ```
|
|
98
115
|
*/
|
|
99
|
-
delete(messageBatchID, options) {
|
|
100
|
-
|
|
116
|
+
delete(messageBatchID, params = {}, options) {
|
|
117
|
+
const { workspace_id } = params ?? {};
|
|
118
|
+
return this._client.delete(path `/v1/messages/batches/${messageBatchID}`, {
|
|
119
|
+
...options,
|
|
120
|
+
headers: buildHeaders([
|
|
121
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
122
|
+
options?.headers,
|
|
123
|
+
]),
|
|
124
|
+
});
|
|
101
125
|
}
|
|
102
126
|
/**
|
|
103
127
|
* Batches may be canceled any time before processing ends. Once cancellation is
|
|
@@ -120,8 +144,15 @@ export class Batches extends APIResource {
|
|
|
120
144
|
* );
|
|
121
145
|
* ```
|
|
122
146
|
*/
|
|
123
|
-
cancel(messageBatchID, options) {
|
|
124
|
-
|
|
147
|
+
cancel(messageBatchID, params = {}, options) {
|
|
148
|
+
const { workspace_id } = params ?? {};
|
|
149
|
+
return this._client.post(path `/v1/messages/batches/${messageBatchID}/cancel`, {
|
|
150
|
+
...options,
|
|
151
|
+
headers: buildHeaders([
|
|
152
|
+
{ ...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined) },
|
|
153
|
+
options?.headers,
|
|
154
|
+
]),
|
|
155
|
+
});
|
|
125
156
|
}
|
|
126
157
|
/**
|
|
127
158
|
* Streams the results of a Message Batch as a `.jsonl` file.
|
|
@@ -139,15 +170,22 @@ export class Batches extends APIResource {
|
|
|
139
170
|
* await client.messages.batches.results('message_batch_id');
|
|
140
171
|
* ```
|
|
141
172
|
*/
|
|
142
|
-
async results(messageBatchID, options) {
|
|
143
|
-
const batch = await this.retrieve(messageBatchID);
|
|
173
|
+
async results(messageBatchID, params = {}, options) {
|
|
174
|
+
const batch = await this.retrieve(messageBatchID, params, options);
|
|
144
175
|
if (!batch.results_url) {
|
|
145
176
|
throw new AnthropicError(`No batch \`results_url\`; Has it finished processing? ${batch.processing_status} - ${batch.id}`);
|
|
146
177
|
}
|
|
178
|
+
const { workspace_id } = params ?? {};
|
|
147
179
|
return this._client
|
|
148
180
|
.get(batch.results_url, {
|
|
149
181
|
...options,
|
|
150
|
-
headers: buildHeaders([
|
|
182
|
+
headers: buildHeaders([
|
|
183
|
+
{
|
|
184
|
+
Accept: 'application/binary',
|
|
185
|
+
...(workspace_id != null ? { 'anthropic-workspace-id': workspace_id } : undefined),
|
|
186
|
+
},
|
|
187
|
+
options?.headers,
|
|
188
|
+
]),
|
|
151
189
|
stream: true,
|
|
152
190
|
__binaryResponse: true,
|
|
153
191
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batches.mjs","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"batches.mjs","sourceRoot":"","sources":["../../src/resources/messages/batches.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAgC,kCAA8B;AAC3E,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,YAAY,EAAE,0CAAsC;AAC7D,OAAO,EAAE,cAAc,EAAE,wBAAoB;AAC7C,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,MAAM,CAAC,MAAyB,EA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eG;IACH,KAAK,CAAC,OAAO,CACX,cAAsB,EACtB,SAAyC,EAAE,EAC3C,OAAwB;QAExB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACnE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;YACvB,MAAM,IAAI,cAAc,CACtB,yDAAyD,KAAK,CAAC,iBAAiB,MAAM,KAAK,CAAC,EAAE,EAAE,CACjG,CAAC;QACJ,CAAC;QAED,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO;aAChB,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE;YACtB,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,MAAM,EAAE,oBAAoB;oBAC5B,GAAG,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,wBAAwB,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACnF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;YACF,MAAM,EAAE,IAAI;YACZ,gBAAgB,EAAE,IAAI;SACvB,CAAC;aACD,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,CAEvF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Batches, type DeletedMessageBatch, type MessageBatch, type MessageBatchCanceledResult, type MessageBatchErroredResult, type MessageBatchExpiredResult, type MessageBatchIndividualResponse, type MessageBatchRequestCounts, type MessageBatchResult, type MessageBatchSucceededResult, type BatchCreateParams, type BatchListParams, type MessageBatchesPage, } from "./batches.mjs";
|
|
1
|
+
export { Batches, type DeletedMessageBatch, type MessageBatch, type MessageBatchCanceledResult, type MessageBatchErroredResult, type MessageBatchExpiredResult, type MessageBatchIndividualResponse, type MessageBatchRequestCounts, type MessageBatchResult, type MessageBatchSucceededResult, type BatchCreateParams, type BatchRetrieveParams, type BatchListParams, type BatchDeleteParams, type BatchCancelParams, type BatchResultsParams, type MessageBatchesPage, } from "./batches.mjs";
|
|
2
2
|
export { Messages, type Base64ImageSource, type Base64PDFSource, type BashCodeExecutionOutputBlock, type BashCodeExecutionOutputBlockParam, type BashCodeExecutionResultBlock, type BashCodeExecutionResultBlockParam, type BashCodeExecutionToolResultBlock, type BashCodeExecutionToolResultBlockParam, type BashCodeExecutionToolResultError, type BashCodeExecutionToolResultErrorCode, type BashCodeExecutionToolResultErrorParam, type BrowserCloseTabConfig, type BrowserDoubleClickConfig, type BrowserFileUploadConfig, type BrowserFindConfig, type BrowserFormInputConfig, type BrowserGetPageTextConfig, type BrowserHoldKeyConfig, type BrowserHoverConfig, type BrowserJavascriptExecConfig, type BrowserKeyConfig, type BrowserLeftClickConfig, type BrowserLeftClickDragConfig, type BrowserLeftMouseDownConfig, type BrowserLeftMouseUpConfig, type BrowserListTabsConfig, type BrowserMiddleClickConfig, type BrowserMouseMoveConfig, type BrowserNavigateConfig, type BrowserNewTabConfig, type BrowserReadConsoleConfig, type BrowserReadNetworkConfig, type BrowserReadPageConfig, type BrowserRightClickConfig, type BrowserScreenshotConfig, type BrowserScrollConfig, type BrowserScrollToConfig, type BrowserStateBlockParam, type BrowserStateChange, type BrowserStateChangeDownloadCompleted, type BrowserStateChangeDownloadFailed, type BrowserStateChangeDownloadStarted, type BrowserStateChangeTabOpened, type BrowserStateTabEntry, type BrowserSwitchTabConfig, type BrowserToolset20260801, type BrowserToolsetConfigs, type BrowserTripleClickConfig, type BrowserTypeConfig, type BrowserWaitConfig, type BrowserZoomConfig, type CacheControlEphemeral, type CacheCreation, type CitationCharLocation, type CitationCharLocationParam, type CitationContentBlockLocation, type CitationContentBlockLocationParam, type CitationPageLocation, type CitationPageLocationParam, type CitationSearchResultLocationParam, type CitationWebSearchResultLocationParam, type CitationsConfig, type CitationsConfigParam, type CitationsDelta, type CitationsSearchResultLocation, type CitationsWebSearchResultLocation, type CodeExecutionOutputBlock, type CodeExecutionOutputBlockParam, type CodeExecutionResultBlock, type CodeExecutionResultBlockParam, type CodeExecutionTool20250522, type CodeExecutionTool20250825, type CodeExecutionTool20260120, type CodeExecutionTool20260521, type CodeExecutionToolResultBlock, type CodeExecutionToolResultBlockContent, type CodeExecutionToolResultBlockParam, type CodeExecutionToolResultBlockParamContent, type CodeExecutionToolResultError, type CodeExecutionToolResultErrorCode, type CodeExecutionToolResultErrorParam, type ComputerCursorPositionConfig, type ComputerDoubleClickConfig, type ComputerHoldKeyConfig, type ComputerKeyConfig, type ComputerLeftClickConfig, type ComputerLeftClickDragConfig, type ComputerLeftMouseDownConfig, type ComputerLeftMouseUpConfig, type ComputerMiddleClickConfig, type ComputerMouseMoveConfig, type ComputerRightClickConfig, type ComputerScreenshotConfig, type ComputerScrollConfig, type ComputerToolset20260801, type ComputerToolsetConfigs, type ComputerTripleClickConfig, type ComputerTypeConfig, type ComputerWaitConfig, type ComputerZoomConfig, type Container, type ContainerParams, type ContainerSkill, type ContainerUploadBlock, type ContainerUploadBlockParam, type ContentBlock, type ContentBlockParam, type ContentBlockStartEvent, type ContentBlockStopEvent, type ContentBlockSource, type ContentBlockSourceContent, type DirectCaller, type DocumentBlock, type DocumentBlockParam, type EncryptedCodeExecutionResultBlock, type EncryptedCodeExecutionResultBlockParam, type FileDocumentSource, type FileImageSource, type ImageBlockParam, type ImageTransformationsParam, type InputJSONDelta, type JSONOutputFormat, type MemoryTool20250818, type Message, type MessageCountTokensTool, type MessageCreateParamsContainer, type MessageDeltaEvent, type MessageDeltaUsage, type MessageParam, type MessageTokensCount, type Metadata, type Model, type OutputConfig, type OutputTokensDetails, type PlainTextSource, type RawContentBlockDelta, type RawContentBlockDeltaEvent, type RawContentBlockStartEvent, type RawContentBlockStopEvent, type RawMessageDeltaEvent, type RawMessageStartEvent, type RawMessageStopEvent, type RawMessageStreamEvent, type RedactedThinkingBlock, type RedactedThinkingBlockParam, type RefusalStopDetails, type SearchResultBlockParam, type ServerToolCaller, type ServerToolCaller20260120, type ServerToolUsage, type ServerToolUseBlock, type ServerToolUseBlockParam, type SignatureDelta, type SkillParams, type StopReason, type TextBlock, type TextBlockParam, type TextCitation, type TextCitationParam, type TextDelta, type TextEditorCodeExecutionCreateResultBlock, type TextEditorCodeExecutionCreateResultBlockParam, type TextEditorCodeExecutionStrReplaceResultBlock, type TextEditorCodeExecutionStrReplaceResultBlockParam, type TextEditorCodeExecutionToolResultBlock, type TextEditorCodeExecutionToolResultBlockParam, type TextEditorCodeExecutionToolResultError, type TextEditorCodeExecutionToolResultErrorCode, type TextEditorCodeExecutionToolResultErrorParam, type TextEditorCodeExecutionViewResultBlock, type TextEditorCodeExecutionViewResultBlockParam, type ThinkingBlock, type ThinkingBlockParam, type ThinkingConfigAdaptive, type ThinkingConfigDisabled, type ThinkingConfigEnabled, type ThinkingConfigParam, type ThinkingDelta, type Tool, type ToolBash20250124, type ToolChoice, type ToolChoiceAny, type ToolChoiceAuto, type ToolChoiceNone, type ToolChoiceTool, type ToolReferenceBlock, type ToolReferenceBlockParam, type ToolResultBlockParam, type ToolSearchToolBm25_20251119, type ToolSearchToolRegex20251119, type ToolSearchToolResultBlock, type ToolSearchToolResultBlockParam, type ToolSearchToolResultError, type ToolSearchToolResultErrorCode, type ToolSearchToolResultErrorParam, type ToolSearchToolSearchResultBlock, type ToolSearchToolSearchResultBlockParam, type ToolTextEditor20250124, type ToolTextEditor20250429, type ToolTextEditor20250728, type ToolUnion, type ToolUseBlock, type ToolUseBlockParam, type URLImageSource, type URLPDFSource, type Usage, type UserLocation, type WebFetchBlock, type WebFetchBlockParam, type WebFetchTool20250910, type WebFetchTool20260209, type WebFetchTool20260309, type WebFetchTool20260318, type WebFetchToolResultBlock, type WebFetchToolResultBlockParam, type WebFetchToolResultErrorBlock, type WebFetchToolResultErrorBlockParam, type WebFetchToolResultErrorCode, type WebSearchResultBlock, type WebSearchResultBlockParam, type WebSearchTool20250305, type WebSearchTool20260209, type WebSearchTool20260318, type WebSearchToolRequestError, type WebSearchToolResultBlock, type WebSearchToolResultBlockContent, type WebSearchToolResultBlockParam, type WebSearchToolResultBlockParamContent, type WebSearchToolResultError, type WebSearchToolResultErrorCode, type MessageStreamEvent, type MessageStartEvent, type MessageStopEvent, type ContentBlockDeltaEvent, type MessageCreateParams, type MessageCreateParamsBase, type MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming, type MessageCountTokensParams, } from "./messages.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/messages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAkB;AACnB,OAAO,EACL,QAAQ,EACR,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,qBAAqB,EA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AC9B,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,GAC9B,uBAAmB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Batches, type DeletedMessageBatch, type MessageBatch, type MessageBatchCanceledResult, type MessageBatchErroredResult, type MessageBatchExpiredResult, type MessageBatchIndividualResponse, type MessageBatchRequestCounts, type MessageBatchResult, type MessageBatchSucceededResult, type BatchCreateParams, type BatchListParams, type MessageBatchesPage, } from "./batches.js";
|
|
1
|
+
export { Batches, type DeletedMessageBatch, type MessageBatch, type MessageBatchCanceledResult, type MessageBatchErroredResult, type MessageBatchExpiredResult, type MessageBatchIndividualResponse, type MessageBatchRequestCounts, type MessageBatchResult, type MessageBatchSucceededResult, type BatchCreateParams, type BatchRetrieveParams, type BatchListParams, type BatchDeleteParams, type BatchCancelParams, type BatchResultsParams, type MessageBatchesPage, } from "./batches.js";
|
|
2
2
|
export { Messages, type Base64ImageSource, type Base64PDFSource, type BashCodeExecutionOutputBlock, type BashCodeExecutionOutputBlockParam, type BashCodeExecutionResultBlock, type BashCodeExecutionResultBlockParam, type BashCodeExecutionToolResultBlock, type BashCodeExecutionToolResultBlockParam, type BashCodeExecutionToolResultError, type BashCodeExecutionToolResultErrorCode, type BashCodeExecutionToolResultErrorParam, type BrowserCloseTabConfig, type BrowserDoubleClickConfig, type BrowserFileUploadConfig, type BrowserFindConfig, type BrowserFormInputConfig, type BrowserGetPageTextConfig, type BrowserHoldKeyConfig, type BrowserHoverConfig, type BrowserJavascriptExecConfig, type BrowserKeyConfig, type BrowserLeftClickConfig, type BrowserLeftClickDragConfig, type BrowserLeftMouseDownConfig, type BrowserLeftMouseUpConfig, type BrowserListTabsConfig, type BrowserMiddleClickConfig, type BrowserMouseMoveConfig, type BrowserNavigateConfig, type BrowserNewTabConfig, type BrowserReadConsoleConfig, type BrowserReadNetworkConfig, type BrowserReadPageConfig, type BrowserRightClickConfig, type BrowserScreenshotConfig, type BrowserScrollConfig, type BrowserScrollToConfig, type BrowserStateBlockParam, type BrowserStateChange, type BrowserStateChangeDownloadCompleted, type BrowserStateChangeDownloadFailed, type BrowserStateChangeDownloadStarted, type BrowserStateChangeTabOpened, type BrowserStateTabEntry, type BrowserSwitchTabConfig, type BrowserToolset20260801, type BrowserToolsetConfigs, type BrowserTripleClickConfig, type BrowserTypeConfig, type BrowserWaitConfig, type BrowserZoomConfig, type CacheControlEphemeral, type CacheCreation, type CitationCharLocation, type CitationCharLocationParam, type CitationContentBlockLocation, type CitationContentBlockLocationParam, type CitationPageLocation, type CitationPageLocationParam, type CitationSearchResultLocationParam, type CitationWebSearchResultLocationParam, type CitationsConfig, type CitationsConfigParam, type CitationsDelta, type CitationsSearchResultLocation, type CitationsWebSearchResultLocation, type CodeExecutionOutputBlock, type CodeExecutionOutputBlockParam, type CodeExecutionResultBlock, type CodeExecutionResultBlockParam, type CodeExecutionTool20250522, type CodeExecutionTool20250825, type CodeExecutionTool20260120, type CodeExecutionTool20260521, type CodeExecutionToolResultBlock, type CodeExecutionToolResultBlockContent, type CodeExecutionToolResultBlockParam, type CodeExecutionToolResultBlockParamContent, type CodeExecutionToolResultError, type CodeExecutionToolResultErrorCode, type CodeExecutionToolResultErrorParam, type ComputerCursorPositionConfig, type ComputerDoubleClickConfig, type ComputerHoldKeyConfig, type ComputerKeyConfig, type ComputerLeftClickConfig, type ComputerLeftClickDragConfig, type ComputerLeftMouseDownConfig, type ComputerLeftMouseUpConfig, type ComputerMiddleClickConfig, type ComputerMouseMoveConfig, type ComputerRightClickConfig, type ComputerScreenshotConfig, type ComputerScrollConfig, type ComputerToolset20260801, type ComputerToolsetConfigs, type ComputerTripleClickConfig, type ComputerTypeConfig, type ComputerWaitConfig, type ComputerZoomConfig, type Container, type ContainerParams, type ContainerSkill, type ContainerUploadBlock, type ContainerUploadBlockParam, type ContentBlock, type ContentBlockParam, type ContentBlockStartEvent, type ContentBlockStopEvent, type ContentBlockSource, type ContentBlockSourceContent, type DirectCaller, type DocumentBlock, type DocumentBlockParam, type EncryptedCodeExecutionResultBlock, type EncryptedCodeExecutionResultBlockParam, type FileDocumentSource, type FileImageSource, type ImageBlockParam, type ImageTransformationsParam, type InputJSONDelta, type JSONOutputFormat, type MemoryTool20250818, type Message, type MessageCountTokensTool, type MessageCreateParamsContainer, type MessageDeltaEvent, type MessageDeltaUsage, type MessageParam, type MessageTokensCount, type Metadata, type Model, type OutputConfig, type OutputTokensDetails, type PlainTextSource, type RawContentBlockDelta, type RawContentBlockDeltaEvent, type RawContentBlockStartEvent, type RawContentBlockStopEvent, type RawMessageDeltaEvent, type RawMessageStartEvent, type RawMessageStopEvent, type RawMessageStreamEvent, type RedactedThinkingBlock, type RedactedThinkingBlockParam, type RefusalStopDetails, type SearchResultBlockParam, type ServerToolCaller, type ServerToolCaller20260120, type ServerToolUsage, type ServerToolUseBlock, type ServerToolUseBlockParam, type SignatureDelta, type SkillParams, type StopReason, type TextBlock, type TextBlockParam, type TextCitation, type TextCitationParam, type TextDelta, type TextEditorCodeExecutionCreateResultBlock, type TextEditorCodeExecutionCreateResultBlockParam, type TextEditorCodeExecutionStrReplaceResultBlock, type TextEditorCodeExecutionStrReplaceResultBlockParam, type TextEditorCodeExecutionToolResultBlock, type TextEditorCodeExecutionToolResultBlockParam, type TextEditorCodeExecutionToolResultError, type TextEditorCodeExecutionToolResultErrorCode, type TextEditorCodeExecutionToolResultErrorParam, type TextEditorCodeExecutionViewResultBlock, type TextEditorCodeExecutionViewResultBlockParam, type ThinkingBlock, type ThinkingBlockParam, type ThinkingConfigAdaptive, type ThinkingConfigDisabled, type ThinkingConfigEnabled, type ThinkingConfigParam, type ThinkingDelta, type Tool, type ToolBash20250124, type ToolChoice, type ToolChoiceAny, type ToolChoiceAuto, type ToolChoiceNone, type ToolChoiceTool, type ToolReferenceBlock, type ToolReferenceBlockParam, type ToolResultBlockParam, type ToolSearchToolBm25_20251119, type ToolSearchToolRegex20251119, type ToolSearchToolResultBlock, type ToolSearchToolResultBlockParam, type ToolSearchToolResultError, type ToolSearchToolResultErrorCode, type ToolSearchToolResultErrorParam, type ToolSearchToolSearchResultBlock, type ToolSearchToolSearchResultBlockParam, type ToolTextEditor20250124, type ToolTextEditor20250429, type ToolTextEditor20250728, type ToolUnion, type ToolUseBlock, type ToolUseBlockParam, type URLImageSource, type URLPDFSource, type Usage, type UserLocation, type WebFetchBlock, type WebFetchBlockParam, type WebFetchTool20250910, type WebFetchTool20260209, type WebFetchTool20260309, type WebFetchTool20260318, type WebFetchToolResultBlock, type WebFetchToolResultBlockParam, type WebFetchToolResultErrorBlock, type WebFetchToolResultErrorBlockParam, type WebFetchToolResultErrorCode, type WebSearchResultBlock, type WebSearchResultBlockParam, type WebSearchTool20250305, type WebSearchTool20260209, type WebSearchTool20260318, type WebSearchToolRequestError, type WebSearchToolResultBlock, type WebSearchToolResultBlockContent, type WebSearchToolResultBlockParam, type WebSearchToolResultBlockParamContent, type WebSearchToolResultError, type WebSearchToolResultErrorCode, type MessageStreamEvent, type MessageStartEvent, type MessageStopEvent, type ContentBlockDeltaEvent, type MessageCreateParams, type MessageCreateParamsBase, type MessageCreateParamsNonStreaming, type MessageCreateParamsStreaming, type MessageCountTokensParams, } from "./messages.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|