@letta-ai/letta-client 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +32 -0
- package/LICENSE +1 -1
- package/README.md +105 -54
- package/client.d.mts +48 -71
- package/client.d.mts.map +1 -1
- package/client.d.ts +48 -71
- package/client.d.ts.map +1 -1
- package/client.js +69 -93
- package/client.js.map +1 -1
- package/client.mjs +67 -91
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/agents/agents.d.mts +312 -245
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +312 -245
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +12 -71
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +13 -72
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/{core-memory/blocks.d.mts → blocks.d.mts} +41 -7
- package/resources/agents/blocks.d.mts.map +1 -0
- package/resources/agents/{core-memory/blocks.d.ts → blocks.d.ts} +41 -7
- package/resources/agents/blocks.d.ts.map +1 -0
- package/resources/agents/{core-memory/blocks.js → blocks.js} +4 -4
- package/resources/agents/blocks.js.map +1 -0
- package/resources/agents/{core-memory/blocks.mjs → blocks.mjs} +4 -4
- package/resources/agents/blocks.mjs.map +1 -0
- package/resources/agents/files.d.mts +30 -4
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +30 -4
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +1 -1
- package/resources/agents/files.mjs +1 -1
- package/resources/agents/folders.d.mts +95 -4
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +95 -4
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +2 -2
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +2 -2
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +44 -0
- package/resources/agents/groups.d.mts.map +1 -0
- package/resources/agents/groups.d.ts +44 -0
- package/resources/agents/groups.d.ts.map +1 -0
- package/resources/agents/groups.js +16 -0
- package/resources/agents/groups.js.map +1 -0
- package/resources/agents/groups.mjs +12 -0
- package/resources/agents/groups.mjs.map +1 -0
- package/resources/agents/index.d.mts +6 -7
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +6 -7
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +5 -7
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +2 -3
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +323 -251
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +323 -251
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +16 -19
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +16 -19
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +49 -11
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +49 -11
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +11 -7
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +11 -7
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives.d.mts +31 -6
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +31 -6
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +21 -2
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +21 -2
- package/resources/archives.mjs.map +1 -1
- package/resources/{messages → batches}/batches.d.mts +24 -43
- package/resources/batches/batches.d.mts.map +1 -0
- package/resources/{messages → batches}/batches.d.ts +24 -43
- package/resources/batches/batches.d.ts.map +1 -0
- package/resources/{messages → batches}/batches.js +8 -6
- package/resources/batches/batches.js.map +1 -0
- package/resources/{messages → batches}/batches.mjs +7 -6
- package/resources/batches/batches.mjs.map +1 -0
- package/resources/batches/index.d.mts +3 -0
- package/resources/batches/index.d.mts.map +1 -0
- package/resources/batches/index.d.ts +3 -0
- package/resources/batches/index.d.ts.map +1 -0
- package/resources/batches/index.js.map +1 -0
- package/resources/batches/index.mjs.map +1 -0
- package/resources/batches/messages.d.mts +46 -0
- package/resources/batches/messages.d.mts.map +1 -0
- package/resources/batches/messages.d.ts +46 -0
- package/resources/batches/messages.d.ts.map +1 -0
- package/resources/batches/messages.js +16 -0
- package/resources/batches/messages.js.map +1 -0
- package/resources/batches/messages.mjs +12 -0
- package/resources/batches/messages.mjs.map +1 -0
- package/resources/batches.d.mts +2 -0
- package/resources/batches.d.mts.map +1 -0
- package/resources/batches.d.ts +2 -0
- package/resources/batches.d.ts.map +1 -0
- package/resources/{sources.js → batches.js} +2 -2
- package/resources/batches.js.map +1 -0
- package/resources/{tools/mcp/servers.mjs → batches.mjs} +2 -2
- package/resources/batches.mjs.map +1 -0
- package/resources/blocks/agents.d.mts +53 -0
- package/resources/blocks/agents.d.mts.map +1 -0
- package/resources/blocks/agents.d.ts +53 -0
- package/resources/blocks/agents.d.ts.map +1 -0
- package/resources/blocks/agents.js +17 -0
- package/resources/blocks/agents.js.map +1 -0
- package/resources/blocks/agents.mjs +13 -0
- package/resources/blocks/agents.mjs.map +1 -0
- package/resources/blocks/blocks.d.mts +296 -0
- package/resources/blocks/blocks.d.mts.map +1 -0
- package/resources/blocks/blocks.d.ts +296 -0
- package/resources/blocks/blocks.d.ts.map +1 -0
- package/resources/blocks/blocks.js +54 -0
- package/resources/blocks/blocks.js.map +1 -0
- package/resources/blocks/blocks.mjs +49 -0
- package/resources/blocks/blocks.mjs.map +1 -0
- package/resources/blocks/index.d.mts +3 -0
- package/resources/blocks/index.d.mts.map +1 -0
- package/resources/blocks/index.d.ts +3 -0
- package/resources/blocks/index.d.ts.map +1 -0
- package/resources/{agents/core-memory → blocks}/index.js +3 -3
- package/resources/blocks/index.js.map +1 -0
- package/resources/{agents/core-memory → blocks}/index.mjs +1 -1
- package/resources/blocks/index.mjs.map +1 -0
- package/resources/blocks.d.mts +1 -329
- package/resources/blocks.d.mts.map +1 -1
- package/resources/blocks.d.ts +1 -329
- package/resources/blocks.d.ts.map +1 -1
- package/resources/blocks.js +2 -49
- package/resources/blocks.js.map +1 -1
- package/resources/blocks.mjs +1 -47
- package/resources/blocks.mjs.map +1 -1
- package/resources/folders/agents.d.mts +39 -0
- package/resources/folders/agents.d.mts.map +1 -0
- package/resources/folders/agents.d.ts +39 -0
- package/resources/folders/agents.d.ts.map +1 -0
- package/resources/folders/agents.js +16 -0
- package/resources/folders/agents.js.map +1 -0
- package/resources/folders/agents.mjs +12 -0
- package/resources/folders/agents.mjs.map +1 -0
- package/resources/folders/files.d.mts +216 -0
- package/resources/folders/files.d.mts.map +1 -0
- package/resources/folders/files.d.ts +216 -0
- package/resources/folders/files.d.ts.map +1 -0
- package/resources/folders/files.js +35 -0
- package/resources/folders/files.js.map +1 -0
- package/resources/folders/files.mjs +31 -0
- package/resources/folders/files.mjs.map +1 -0
- package/resources/folders/folders.d.mts +183 -0
- package/resources/folders/folders.d.mts.map +1 -0
- package/resources/folders/folders.d.ts +183 -0
- package/resources/folders/folders.d.ts.map +1 -0
- package/resources/folders/folders.js +58 -0
- package/resources/folders/folders.js.map +1 -0
- package/resources/folders/folders.mjs +53 -0
- package/resources/folders/folders.mjs.map +1 -0
- package/resources/folders/index.d.mts +4 -0
- package/resources/folders/index.d.mts.map +1 -0
- package/resources/folders/index.d.ts +4 -0
- package/resources/folders/index.d.ts.map +1 -0
- package/resources/folders/index.js +11 -0
- package/resources/folders/index.js.map +1 -0
- package/resources/folders/index.mjs +5 -0
- package/resources/folders/index.mjs.map +1 -0
- package/resources/folders.d.mts +1 -319
- package/resources/folders.d.mts.map +1 -1
- package/resources/folders.d.ts +1 -319
- package/resources/folders.d.ts.map +1 -1
- package/resources/folders.js +2 -103
- package/resources/folders.js.map +1 -1
- package/resources/folders.mjs +1 -101
- package/resources/folders.mjs.map +1 -1
- package/resources/groups/groups.d.mts +3 -8
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +3 -8
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +0 -6
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +0 -6
- package/resources/groups/groups.mjs.map +1 -1
- package/resources/groups/index.d.mts +2 -2
- package/resources/groups/index.d.mts.map +1 -1
- package/resources/groups/index.d.ts +2 -2
- package/resources/groups/index.d.ts.map +1 -1
- package/resources/groups/index.js.map +1 -1
- package/resources/groups/index.mjs.map +1 -1
- package/resources/groups/messages.d.mts +37 -22
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +37 -22
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +7 -1
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +7 -1
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +45 -0
- package/resources/identities/agents.d.mts.map +1 -0
- package/resources/identities/agents.d.ts +45 -0
- package/resources/identities/agents.d.ts.map +1 -0
- package/resources/identities/agents.js +16 -0
- package/resources/identities/agents.js.map +1 -0
- package/resources/identities/agents.mjs +12 -0
- package/resources/identities/agents.mjs.map +1 -0
- package/resources/identities/blocks.d.mts +40 -0
- package/resources/identities/blocks.d.mts.map +1 -0
- package/resources/identities/blocks.d.ts +40 -0
- package/resources/identities/blocks.d.ts.map +1 -0
- package/resources/identities/blocks.js +16 -0
- package/resources/identities/blocks.js.map +1 -0
- package/resources/identities/blocks.mjs +12 -0
- package/resources/identities/blocks.mjs.map +1 -0
- package/resources/identities/identities.d.mts +235 -0
- package/resources/identities/identities.d.mts.map +1 -0
- package/resources/identities/identities.d.ts +235 -0
- package/resources/identities/identities.d.ts.map +1 -0
- package/resources/identities/identities.js +85 -0
- package/resources/identities/identities.js.map +1 -0
- package/resources/identities/identities.mjs +80 -0
- package/resources/identities/identities.mjs.map +1 -0
- package/resources/identities/index.d.mts +5 -0
- package/resources/identities/index.d.mts.map +1 -0
- package/resources/identities/index.d.ts +5 -0
- package/resources/identities/index.d.ts.map +1 -0
- package/resources/identities/index.js +13 -0
- package/resources/identities/index.js.map +1 -0
- package/resources/identities/index.mjs +6 -0
- package/resources/identities/index.mjs.map +1 -0
- package/resources/identities/properties.d.mts +18 -0
- package/resources/identities/properties.d.mts.map +1 -0
- package/resources/identities/properties.d.ts +18 -0
- package/resources/identities/properties.d.ts.map +1 -0
- package/resources/identities/properties.js +17 -0
- package/resources/identities/properties.js.map +1 -0
- package/resources/identities/properties.mjs +13 -0
- package/resources/identities/properties.mjs.map +1 -0
- package/resources/identities.d.mts +1 -292
- package/resources/identities.d.mts.map +1 -1
- package/resources/identities.d.ts +1 -292
- package/resources/identities.d.ts.map +1 -1
- package/resources/identities.js +2 -84
- package/resources/identities.js.map +1 -1
- package/resources/identities.mjs +1 -82
- package/resources/identities.mjs.map +1 -1
- package/resources/index.d.mts +13 -22
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -22
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +11 -31
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +9 -19
- package/resources/index.mjs.map +1 -1
- package/resources/models/embeddings.d.mts +16 -0
- package/resources/models/embeddings.d.mts.map +1 -0
- package/resources/models/embeddings.d.ts +16 -0
- package/resources/models/embeddings.d.ts.map +1 -0
- package/resources/models/embeddings.js +16 -0
- package/resources/models/embeddings.js.map +1 -0
- package/resources/models/embeddings.mjs +12 -0
- package/resources/models/embeddings.mjs.map +1 -0
- package/resources/models/index.d.mts +3 -0
- package/resources/models/index.d.mts.map +1 -0
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -0
- package/resources/models/index.js +9 -0
- package/resources/models/index.js.map +1 -0
- package/resources/models/index.mjs +4 -0
- package/resources/models/index.mjs.map +1 -0
- package/resources/models/models.d.mts +165 -0
- package/resources/models/models.d.mts.map +1 -0
- package/resources/models/models.d.ts +165 -0
- package/resources/models/models.d.ts.map +1 -0
- package/resources/models/models.js +24 -0
- package/resources/models/models.js.map +1 -0
- package/resources/models/models.mjs +19 -0
- package/resources/models/models.mjs.map +1 -0
- package/resources/models.d.mts +1 -159
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +1 -159
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +2 -26
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +1 -24
- package/resources/models.mjs.map +1 -1
- package/resources/runs/index.d.mts +5 -0
- package/resources/runs/index.d.mts.map +1 -0
- package/resources/runs/index.d.ts +5 -0
- package/resources/runs/index.d.ts.map +1 -0
- package/resources/runs/index.js +13 -0
- package/resources/runs/index.js.map +1 -0
- package/resources/runs/index.mjs +6 -0
- package/resources/runs/index.mjs.map +1 -0
- package/resources/runs/messages.d.mts +65 -0
- package/resources/runs/messages.d.mts.map +1 -0
- package/resources/runs/messages.d.ts +65 -0
- package/resources/runs/messages.d.ts.map +1 -0
- package/resources/runs/messages.js +22 -0
- package/resources/runs/messages.js.map +1 -0
- package/resources/runs/messages.mjs +18 -0
- package/resources/runs/messages.mjs.map +1 -0
- package/resources/runs/runs.d.mts +172 -0
- package/resources/runs/runs.d.mts.map +1 -0
- package/resources/runs/runs.d.ts +172 -0
- package/resources/runs/runs.d.ts.map +1 -0
- package/resources/runs/runs.js +38 -0
- package/resources/runs/runs.js.map +1 -0
- package/resources/runs/runs.mjs +33 -0
- package/resources/runs/runs.mjs.map +1 -0
- package/resources/runs/steps.d.mts +38 -0
- package/resources/runs/steps.d.mts.map +1 -0
- package/resources/runs/steps.d.ts +38 -0
- package/resources/runs/steps.d.ts.map +1 -0
- package/resources/runs/steps.js +16 -0
- package/resources/runs/steps.js.map +1 -0
- package/resources/runs/steps.mjs +12 -0
- package/resources/runs/steps.mjs.map +1 -0
- package/resources/runs/usage.d.mts +28 -0
- package/resources/runs/usage.d.mts.map +1 -0
- package/resources/runs/usage.d.ts +28 -0
- package/resources/runs/usage.d.ts.map +1 -0
- package/resources/runs/usage.js +16 -0
- package/resources/runs/usage.js.map +1 -0
- package/resources/runs/usage.mjs +12 -0
- package/resources/runs/usage.mjs.map +1 -0
- package/resources/runs.d.mts +1 -183
- package/resources/runs.d.mts.map +1 -1
- package/resources/runs.d.ts +1 -183
- package/resources/runs.d.ts.map +1 -1
- package/resources/runs.js +2 -69
- package/resources/runs.js.map +1 -1
- package/resources/runs.mjs +1 -67
- package/resources/runs.mjs.map +1 -1
- package/resources/steps/feedback.d.mts +24 -0
- package/resources/steps/feedback.d.mts.map +1 -0
- package/resources/steps/feedback.d.ts +24 -0
- package/resources/steps/feedback.d.ts.map +1 -0
- package/resources/steps/feedback.js +16 -0
- package/resources/steps/feedback.js.map +1 -0
- package/resources/steps/feedback.mjs +12 -0
- package/resources/steps/feedback.mjs.map +1 -0
- package/resources/steps/index.d.mts +6 -0
- package/resources/steps/index.d.mts.map +1 -0
- package/resources/steps/index.d.ts +6 -0
- package/resources/steps/index.d.ts.map +1 -0
- package/resources/steps/index.js +15 -0
- package/resources/steps/index.js.map +1 -0
- package/resources/steps/index.mjs +7 -0
- package/resources/steps/index.mjs.map +1 -0
- package/resources/steps/messages.d.mts +41 -0
- package/resources/steps/messages.d.mts.map +1 -0
- package/resources/steps/messages.d.ts +41 -0
- package/resources/steps/messages.d.ts.map +1 -0
- package/resources/steps/messages.js +16 -0
- package/resources/steps/messages.js.map +1 -0
- package/resources/steps/messages.mjs +12 -0
- package/resources/steps/messages.mjs.map +1 -0
- package/resources/steps/metrics.d.mts +63 -0
- package/resources/steps/metrics.d.mts.map +1 -0
- package/resources/steps/metrics.d.ts +63 -0
- package/resources/steps/metrics.d.ts.map +1 -0
- package/resources/steps/metrics.js +16 -0
- package/resources/steps/metrics.js.map +1 -0
- package/resources/steps/metrics.mjs +12 -0
- package/resources/steps/metrics.mjs.map +1 -0
- package/resources/steps/steps.d.mts +254 -0
- package/resources/steps/steps.d.mts.map +1 -0
- package/resources/steps/steps.d.ts +254 -0
- package/resources/steps/steps.d.ts.map +1 -0
- package/resources/steps/steps.js +51 -0
- package/resources/steps/steps.js.map +1 -0
- package/resources/steps/steps.mjs +46 -0
- package/resources/steps/steps.mjs.map +1 -0
- package/resources/steps/trace.d.mts +11 -0
- package/resources/steps/trace.d.mts.map +1 -0
- package/resources/steps/trace.d.ts +11 -0
- package/resources/steps/trace.d.ts.map +1 -0
- package/resources/steps/trace.js +16 -0
- package/resources/steps/trace.js.map +1 -0
- package/resources/steps/trace.mjs +12 -0
- package/resources/steps/trace.mjs.map +1 -0
- package/resources/steps.d.mts +1 -340
- package/resources/steps.d.mts.map +1 -1
- package/resources/steps.d.ts +1 -340
- package/resources/steps.d.ts.map +1 -1
- package/resources/steps.js +2 -51
- package/resources/steps.js.map +1 -1
- package/resources/steps.mjs +1 -49
- package/resources/steps.mjs.map +1 -1
- package/resources/templates/agents.d.mts +61 -0
- package/resources/templates/agents.d.mts.map +1 -0
- package/resources/templates/agents.d.ts +61 -0
- package/resources/templates/agents.d.ts.map +1 -0
- package/resources/templates/agents.js +22 -0
- package/resources/templates/agents.js.map +1 -0
- package/resources/templates/agents.mjs +18 -0
- package/resources/templates/agents.mjs.map +1 -0
- package/resources/templates/index.d.mts +3 -0
- package/resources/templates/index.d.mts.map +1 -0
- package/resources/templates/index.d.ts +3 -0
- package/resources/templates/index.d.ts.map +1 -0
- package/resources/templates/index.js +9 -0
- package/resources/templates/index.js.map +1 -0
- package/resources/templates/index.mjs +4 -0
- package/resources/templates/index.mjs.map +1 -0
- package/resources/templates/templates.d.mts +10 -0
- package/resources/templates/templates.d.mts.map +1 -0
- package/resources/templates/templates.d.ts +10 -0
- package/resources/templates/templates.d.ts.map +1 -0
- package/resources/templates/templates.js +17 -0
- package/resources/templates/templates.js.map +1 -0
- package/resources/templates/templates.mjs +12 -0
- package/resources/templates/templates.mjs.map +1 -0
- package/resources/templates.d.mts +1 -493
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +1 -493
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +2 -81
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +1 -79
- package/resources/templates.mjs.map +1 -1
- package/resources/tools.d.mts +499 -1
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +499 -1
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +54 -2
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +52 -1
- package/resources/tools.mjs.map +1 -1
- package/resources/top-level.d.mts +11 -0
- package/resources/top-level.d.mts.map +1 -0
- package/resources/top-level.d.ts +11 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/{tools/mcp.js → top-level.js} +1 -3
- package/resources/top-level.js.map +1 -0
- package/{src/resources/agents/core-memory.ts → resources/top-level.mjs} +2 -2
- package/resources/top-level.mjs.map +1 -0
- package/src/client.ts +146 -425
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/agents/agents.ts +408 -396
- package/src/resources/agents/{core-memory/blocks.ts → blocks.ts} +52 -8
- package/src/resources/agents/files.ts +34 -4
- package/src/resources/agents/folders.ts +114 -4
- package/src/resources/agents/groups.ts +61 -0
- package/src/resources/agents/index.ts +21 -37
- package/src/resources/agents/messages.ts +381 -298
- package/src/resources/agents/tools.ts +65 -15
- package/src/resources/archives.ts +49 -9
- package/src/resources/{messages → batches}/batches.ts +32 -57
- package/src/resources/{messages → batches}/index.ts +1 -3
- package/src/resources/batches/messages.ts +63 -0
- package/src/resources/{tools/mcp.ts → batches.ts} +1 -1
- package/src/resources/blocks/agents.ts +79 -0
- package/src/resources/blocks/blocks.ts +392 -0
- package/src/resources/blocks/index.ts +13 -0
- package/src/resources/blocks.ts +1 -436
- package/src/resources/folders/agents.ts +55 -0
- package/src/resources/folders/files.ts +295 -0
- package/src/resources/folders/folders.ts +264 -0
- package/src/resources/folders/index.ts +21 -0
- package/src/resources/folders.ts +1 -460
- package/src/resources/groups/groups.ts +6 -14
- package/src/resources/groups/index.ts +3 -3
- package/src/resources/groups/messages.ts +43 -23
- package/src/resources/identities/agents.ts +70 -0
- package/src/resources/identities/blocks.ts +56 -0
- package/src/resources/identities/identities.ts +354 -0
- package/src/resources/identities/index.ts +18 -0
- package/src/resources/identities/properties.ts +30 -0
- package/src/resources/identities.ts +1 -432
- package/src/resources/index.ts +27 -154
- package/src/resources/models/embeddings.ts +22 -0
- package/src/resources/models/index.ts +12 -0
- package/src/resources/models/models.ts +277 -0
- package/src/resources/models.ts +1 -276
- package/src/resources/runs/index.ts +12 -0
- package/src/resources/runs/messages.ts +98 -0
- package/src/resources/runs/runs.ts +246 -0
- package/src/resources/runs/steps.ts +54 -0
- package/src/resources/runs/usage.ts +41 -0
- package/src/resources/runs.ts +1 -282
- package/src/resources/steps/feedback.ts +32 -0
- package/src/resources/steps/index.ts +7 -0
- package/src/resources/steps/messages.ts +67 -0
- package/src/resources/steps/metrics.ts +81 -0
- package/src/resources/steps/steps.ts +334 -0
- package/src/resources/steps/trace.ts +16 -0
- package/src/resources/steps.ts +1 -455
- package/src/resources/templates/agents.ts +83 -0
- package/src/resources/templates/index.ts +4 -0
- package/src/resources/templates/templates.ts +15 -0
- package/src/resources/templates.ts +1 -783
- package/src/resources/tools.ts +641 -1
- package/src/resources/top-level.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/-internal-templates/-internal-templates.d.mts +0 -324
- package/resources/-internal-templates/-internal-templates.d.mts.map +0 -1
- package/resources/-internal-templates/-internal-templates.d.ts +0 -324
- package/resources/-internal-templates/-internal-templates.d.ts.map +0 -1
- package/resources/-internal-templates/-internal-templates.js +0 -35
- package/resources/-internal-templates/-internal-templates.js.map +0 -1
- package/resources/-internal-templates/-internal-templates.mjs +0 -30
- package/resources/-internal-templates/-internal-templates.mjs.map +0 -1
- package/resources/-internal-templates/deployment.d.mts +0 -56
- package/resources/-internal-templates/deployment.d.mts.map +0 -1
- package/resources/-internal-templates/deployment.d.ts +0 -56
- package/resources/-internal-templates/deployment.d.ts.map +0 -1
- package/resources/-internal-templates/deployment.js +0 -24
- package/resources/-internal-templates/deployment.js.map +0 -1
- package/resources/-internal-templates/deployment.mjs +0 -20
- package/resources/-internal-templates/deployment.mjs.map +0 -1
- package/resources/-internal-templates/index.d.mts +0 -3
- package/resources/-internal-templates/index.d.mts.map +0 -1
- package/resources/-internal-templates/index.d.ts +0 -3
- package/resources/-internal-templates/index.d.ts.map +0 -1
- package/resources/-internal-templates/index.js +0 -9
- package/resources/-internal-templates/index.js.map +0 -1
- package/resources/-internal-templates/index.mjs +0 -4
- package/resources/-internal-templates/index.mjs.map +0 -1
- package/resources/-internal-templates.d.mts +0 -2
- package/resources/-internal-templates.d.mts.map +0 -1
- package/resources/-internal-templates.d.ts +0 -2
- package/resources/-internal-templates.d.ts.map +0 -1
- package/resources/-internal-templates.js +0 -6
- package/resources/-internal-templates.js.map +0 -1
- package/resources/-internal-templates.mjs +0 -3
- package/resources/-internal-templates.mjs.map +0 -1
- package/resources/agents/archival-memory.d.mts +0 -128
- package/resources/agents/archival-memory.d.mts.map +0 -1
- package/resources/agents/archival-memory.d.ts +0 -128
- package/resources/agents/archival-memory.d.ts.map +0 -1
- package/resources/agents/archival-memory.js +0 -41
- package/resources/agents/archival-memory.js.map +0 -1
- package/resources/agents/archival-memory.mjs +0 -37
- package/resources/agents/archival-memory.mjs.map +0 -1
- package/resources/agents/core-memory/blocks.d.mts.map +0 -1
- package/resources/agents/core-memory/blocks.d.ts.map +0 -1
- package/resources/agents/core-memory/blocks.js.map +0 -1
- package/resources/agents/core-memory/blocks.mjs.map +0 -1
- package/resources/agents/core-memory/core-memory.d.mts +0 -142
- package/resources/agents/core-memory/core-memory.d.mts.map +0 -1
- package/resources/agents/core-memory/core-memory.d.ts +0 -142
- package/resources/agents/core-memory/core-memory.d.ts.map +0 -1
- package/resources/agents/core-memory/core-memory.js +0 -31
- package/resources/agents/core-memory/core-memory.js.map +0 -1
- package/resources/agents/core-memory/core-memory.mjs +0 -26
- package/resources/agents/core-memory/core-memory.mjs.map +0 -1
- package/resources/agents/core-memory/index.d.mts +0 -3
- package/resources/agents/core-memory/index.d.mts.map +0 -1
- package/resources/agents/core-memory/index.d.ts +0 -3
- package/resources/agents/core-memory/index.d.ts.map +0 -1
- package/resources/agents/core-memory/index.js.map +0 -1
- package/resources/agents/core-memory/index.mjs.map +0 -1
- package/resources/agents/core-memory.d.mts +0 -2
- package/resources/agents/core-memory.d.mts.map +0 -1
- package/resources/agents/core-memory.d.ts +0 -2
- package/resources/agents/core-memory.d.ts.map +0 -1
- package/resources/agents/core-memory.js +0 -6
- package/resources/agents/core-memory.js.map +0 -1
- package/resources/agents/core-memory.mjs +0 -3
- package/resources/agents/core-memory.mjs.map +0 -1
- package/resources/agents/sources.d.mts +0 -30
- package/resources/agents/sources.d.mts.map +0 -1
- package/resources/agents/sources.d.ts +0 -30
- package/resources/agents/sources.d.ts.map +0 -1
- package/resources/agents/sources.js +0 -30
- package/resources/agents/sources.js.map +0 -1
- package/resources/agents/sources.mjs +0 -26
- package/resources/agents/sources.mjs.map +0 -1
- package/resources/client-side-access-tokens.d.mts +0 -105
- package/resources/client-side-access-tokens.d.mts.map +0 -1
- package/resources/client-side-access-tokens.d.ts +0 -105
- package/resources/client-side-access-tokens.d.ts.map +0 -1
- package/resources/client-side-access-tokens.js +0 -30
- package/resources/client-side-access-tokens.js.map +0 -1
- package/resources/client-side-access-tokens.mjs +0 -26
- package/resources/client-side-access-tokens.mjs.map +0 -1
- package/resources/embeddings.d.mts +0 -18
- package/resources/embeddings.d.mts.map +0 -1
- package/resources/embeddings.d.ts +0 -18
- package/resources/embeddings.d.ts.map +0 -1
- package/resources/embeddings.js +0 -24
- package/resources/embeddings.js.map +0 -1
- package/resources/embeddings.mjs +0 -20
- package/resources/embeddings.mjs.map +0 -1
- package/resources/health.d.mts +0 -20
- package/resources/health.d.mts.map +0 -1
- package/resources/health.d.ts +0 -20
- package/resources/health.d.ts.map +0 -1
- package/resources/health.js +0 -15
- package/resources/health.js.map +0 -1
- package/resources/health.mjs +0 -11
- package/resources/health.mjs.map +0 -1
- package/resources/jobs.d.mts +0 -165
- package/resources/jobs.d.mts.map +0 -1
- package/resources/jobs.d.ts +0 -165
- package/resources/jobs.d.ts.map +0 -1
- package/resources/jobs.js +0 -45
- package/resources/jobs.js.map +0 -1
- package/resources/jobs.mjs +0 -41
- package/resources/jobs.mjs.map +0 -1
- package/resources/messages/batches.d.mts.map +0 -1
- package/resources/messages/batches.d.ts.map +0 -1
- package/resources/messages/batches.js.map +0 -1
- package/resources/messages/batches.mjs.map +0 -1
- package/resources/messages/index.d.mts +0 -3
- package/resources/messages/index.d.mts.map +0 -1
- package/resources/messages/index.d.ts +0 -3
- package/resources/messages/index.d.ts.map +0 -1
- package/resources/messages/index.js.map +0 -1
- package/resources/messages/index.mjs.map +0 -1
- package/resources/messages/messages.d.mts +0 -10
- package/resources/messages/messages.d.mts.map +0 -1
- package/resources/messages/messages.d.ts +0 -10
- package/resources/messages/messages.d.ts.map +0 -1
- package/resources/messages/messages.js +0 -17
- package/resources/messages/messages.js.map +0 -1
- package/resources/messages/messages.mjs +0 -12
- package/resources/messages/messages.mjs.map +0 -1
- package/resources/messages.d.mts +0 -2
- package/resources/messages.d.mts.map +0 -1
- package/resources/messages.d.ts +0 -2
- package/resources/messages.d.ts.map +0 -1
- package/resources/messages.js +0 -6
- package/resources/messages.js.map +0 -1
- package/resources/messages.mjs +0 -3
- package/resources/messages.mjs.map +0 -1
- package/resources/projects.d.mts +0 -29
- package/resources/projects.d.mts.map +0 -1
- package/resources/projects.d.ts +0 -29
- package/resources/projects.d.ts.map +0 -1
- package/resources/projects.js +0 -15
- package/resources/projects.js.map +0 -1
- package/resources/projects.mjs +0 -11
- package/resources/projects.mjs.map +0 -1
- package/resources/providers.d.mts +0 -190
- package/resources/providers.d.mts.map +0 -1
- package/resources/providers.d.ts +0 -190
- package/resources/providers.d.ts.map +0 -1
- package/resources/providers.js +0 -46
- package/resources/providers.js.map +0 -1
- package/resources/providers.mjs +0 -42
- package/resources/providers.mjs.map +0 -1
- package/resources/sources/files.d.mts +0 -53
- package/resources/sources/files.d.mts.map +0 -1
- package/resources/sources/files.d.ts +0 -53
- package/resources/sources/files.d.ts.map +0 -1
- package/resources/sources/files.js +0 -27
- package/resources/sources/files.js.map +0 -1
- package/resources/sources/files.mjs +0 -23
- package/resources/sources/files.mjs.map +0 -1
- package/resources/sources/index.d.mts +0 -3
- package/resources/sources/index.d.mts.map +0 -1
- package/resources/sources/index.d.ts +0 -3
- package/resources/sources/index.d.ts.map +0 -1
- package/resources/sources/index.js +0 -9
- package/resources/sources/index.js.map +0 -1
- package/resources/sources/index.mjs +0 -4
- package/resources/sources/index.mjs.map +0 -1
- package/resources/sources/sources.d.mts +0 -530
- package/resources/sources/sources.d.mts.map +0 -1
- package/resources/sources/sources.d.ts +0 -530
- package/resources/sources/sources.d.ts.map +0 -1
- package/resources/sources/sources.js +0 -129
- package/resources/sources/sources.js.map +0 -1
- package/resources/sources/sources.mjs +0 -124
- package/resources/sources/sources.mjs.map +0 -1
- package/resources/sources.d.mts +0 -2
- package/resources/sources.d.mts.map +0 -1
- package/resources/sources.d.ts +0 -2
- package/resources/sources.d.ts.map +0 -1
- package/resources/sources.js.map +0 -1
- package/resources/sources.mjs +0 -3
- package/resources/sources.mjs.map +0 -1
- package/resources/telemetry.d.mts +0 -15
- package/resources/telemetry.d.mts.map +0 -1
- package/resources/telemetry.d.ts +0 -15
- package/resources/telemetry.d.ts.map +0 -1
- package/resources/telemetry.js +0 -20
- package/resources/telemetry.js.map +0 -1
- package/resources/telemetry.mjs +0 -16
- package/resources/telemetry.mjs.map +0 -1
- package/resources/tools/composio/apps.d.mts +0 -131
- package/resources/tools/composio/apps.d.mts.map +0 -1
- package/resources/tools/composio/apps.d.ts +0 -131
- package/resources/tools/composio/apps.d.ts.map +0 -1
- package/resources/tools/composio/apps.js +0 -22
- package/resources/tools/composio/apps.js.map +0 -1
- package/resources/tools/composio/apps.mjs +0 -18
- package/resources/tools/composio/apps.mjs.map +0 -1
- package/resources/tools/composio/composio.d.mts +0 -18
- package/resources/tools/composio/composio.d.mts.map +0 -1
- package/resources/tools/composio/composio.d.ts +0 -18
- package/resources/tools/composio/composio.d.ts.map +0 -1
- package/resources/tools/composio/composio.js +0 -25
- package/resources/tools/composio/composio.js.map +0 -1
- package/resources/tools/composio/composio.mjs +0 -20
- package/resources/tools/composio/composio.mjs.map +0 -1
- package/resources/tools/composio/index.d.mts +0 -3
- package/resources/tools/composio/index.d.mts.map +0 -1
- package/resources/tools/composio/index.d.ts +0 -3
- package/resources/tools/composio/index.d.ts.map +0 -1
- package/resources/tools/composio/index.js +0 -9
- package/resources/tools/composio/index.js.map +0 -1
- package/resources/tools/composio/index.mjs +0 -4
- package/resources/tools/composio/index.mjs.map +0 -1
- package/resources/tools/composio.d.mts +0 -2
- package/resources/tools/composio.d.mts.map +0 -1
- package/resources/tools/composio.d.ts +0 -2
- package/resources/tools/composio.d.ts.map +0 -1
- package/resources/tools/composio.js +0 -6
- package/resources/tools/composio.js.map +0 -1
- package/resources/tools/composio.mjs +0 -3
- package/resources/tools/composio.mjs.map +0 -1
- package/resources/tools/index.d.mts +0 -4
- package/resources/tools/index.d.mts.map +0 -1
- package/resources/tools/index.d.ts +0 -4
- package/resources/tools/index.d.ts.map +0 -1
- package/resources/tools/index.js +0 -11
- package/resources/tools/index.js.map +0 -1
- package/resources/tools/index.mjs +0 -5
- package/resources/tools/index.mjs.map +0 -1
- package/resources/tools/mcp/index.d.mts +0 -4
- package/resources/tools/mcp/index.d.mts.map +0 -1
- package/resources/tools/mcp/index.d.ts +0 -4
- package/resources/tools/mcp/index.d.ts.map +0 -1
- package/resources/tools/mcp/index.js +0 -11
- package/resources/tools/mcp/index.js.map +0 -1
- package/resources/tools/mcp/index.mjs +0 -5
- package/resources/tools/mcp/index.mjs.map +0 -1
- package/resources/tools/mcp/mcp.d.mts +0 -14
- package/resources/tools/mcp/mcp.d.mts.map +0 -1
- package/resources/tools/mcp/mcp.d.ts +0 -14
- package/resources/tools/mcp/mcp.d.ts.map +0 -1
- package/resources/tools/mcp/mcp.js +0 -21
- package/resources/tools/mcp/mcp.js.map +0 -1
- package/resources/tools/mcp/mcp.mjs +0 -16
- package/resources/tools/mcp/mcp.mjs.map +0 -1
- package/resources/tools/mcp/oauth.d.mts +0 -32
- package/resources/tools/mcp/oauth.d.mts.map +0 -1
- package/resources/tools/mcp/oauth.d.ts +0 -32
- package/resources/tools/mcp/oauth.d.ts.map +0 -1
- package/resources/tools/mcp/oauth.js +0 -16
- package/resources/tools/mcp/oauth.js.map +0 -1
- package/resources/tools/mcp/oauth.mjs +0 -12
- package/resources/tools/mcp/oauth.mjs.map +0 -1
- package/resources/tools/mcp/servers/index.d.mts +0 -3
- package/resources/tools/mcp/servers/index.d.mts.map +0 -1
- package/resources/tools/mcp/servers/index.d.ts +0 -3
- package/resources/tools/mcp/servers/index.d.ts.map +0 -1
- package/resources/tools/mcp/servers/index.js +0 -9
- package/resources/tools/mcp/servers/index.js.map +0 -1
- package/resources/tools/mcp/servers/index.mjs +0 -4
- package/resources/tools/mcp/servers/index.mjs.map +0 -1
- package/resources/tools/mcp/servers/servers.d.mts +0 -442
- package/resources/tools/mcp/servers/servers.d.mts.map +0 -1
- package/resources/tools/mcp/servers/servers.d.ts +0 -442
- package/resources/tools/mcp/servers/servers.d.ts.map +0 -1
- package/resources/tools/mcp/servers/servers.js +0 -80
- package/resources/tools/mcp/servers/servers.js.map +0 -1
- package/resources/tools/mcp/servers/servers.mjs +0 -75
- package/resources/tools/mcp/servers/servers.mjs.map +0 -1
- package/resources/tools/mcp/servers/tools.d.mts +0 -100
- package/resources/tools/mcp/servers/tools.d.mts.map +0 -1
- package/resources/tools/mcp/servers/tools.d.ts +0 -100
- package/resources/tools/mcp/servers/tools.d.ts.map +0 -1
- package/resources/tools/mcp/servers/tools.js +0 -27
- package/resources/tools/mcp/servers/tools.js.map +0 -1
- package/resources/tools/mcp/servers/tools.mjs +0 -23
- package/resources/tools/mcp/servers/tools.mjs.map +0 -1
- package/resources/tools/mcp/servers.d.mts +0 -2
- package/resources/tools/mcp/servers.d.mts.map +0 -1
- package/resources/tools/mcp/servers.d.ts +0 -2
- package/resources/tools/mcp/servers.d.ts.map +0 -1
- package/resources/tools/mcp/servers.js +0 -6
- package/resources/tools/mcp/servers.js.map +0 -1
- package/resources/tools/mcp/servers.mjs.map +0 -1
- package/resources/tools/mcp.d.mts +0 -2
- package/resources/tools/mcp.d.mts.map +0 -1
- package/resources/tools/mcp.d.ts +0 -2
- package/resources/tools/mcp.d.ts.map +0 -1
- package/resources/tools/mcp.js.map +0 -1
- package/resources/tools/mcp.mjs +0 -3
- package/resources/tools/mcp.mjs.map +0 -1
- package/resources/tools/tools.d.mts +0 -515
- package/resources/tools/tools.d.mts.map +0 -1
- package/resources/tools/tools.d.ts +0 -515
- package/resources/tools/tools.d.ts.map +0 -1
- package/resources/tools/tools.js +0 -76
- package/resources/tools/tools.js.map +0 -1
- package/resources/tools/tools.mjs +0 -71
- package/resources/tools/tools.mjs.map +0 -1
- package/resources/voice-beta/chat.d.mts +0 -19
- package/resources/voice-beta/chat.d.mts.map +0 -1
- package/resources/voice-beta/chat.d.ts +0 -19
- package/resources/voice-beta/chat.d.ts.map +0 -1
- package/resources/voice-beta/chat.js +0 -17
- package/resources/voice-beta/chat.js.map +0 -1
- package/resources/voice-beta/chat.mjs +0 -13
- package/resources/voice-beta/chat.mjs.map +0 -1
- package/resources/voice-beta/index.d.mts +0 -3
- package/resources/voice-beta/index.d.mts.map +0 -1
- package/resources/voice-beta/index.d.ts +0 -3
- package/resources/voice-beta/index.d.ts.map +0 -1
- package/resources/voice-beta/index.js +0 -9
- package/resources/voice-beta/index.js.map +0 -1
- package/resources/voice-beta/index.mjs +0 -4
- package/resources/voice-beta/index.mjs.map +0 -1
- package/resources/voice-beta/voice-beta.d.mts +0 -10
- package/resources/voice-beta/voice-beta.d.mts.map +0 -1
- package/resources/voice-beta/voice-beta.d.ts +0 -10
- package/resources/voice-beta/voice-beta.d.ts.map +0 -1
- package/resources/voice-beta/voice-beta.js +0 -17
- package/resources/voice-beta/voice-beta.js.map +0 -1
- package/resources/voice-beta/voice-beta.mjs +0 -12
- package/resources/voice-beta/voice-beta.mjs.map +0 -1
- package/resources/voice-beta.d.mts +0 -2
- package/resources/voice-beta.d.mts.map +0 -1
- package/resources/voice-beta.d.ts +0 -2
- package/resources/voice-beta.d.ts.map +0 -1
- package/resources/voice-beta.js +0 -6
- package/resources/voice-beta.js.map +0 -1
- package/resources/voice-beta.mjs +0 -3
- package/resources/voice-beta.mjs.map +0 -1
- package/src/resources/-internal-templates/-internal-templates.ts +0 -441
- package/src/resources/-internal-templates/deployment.ts +0 -88
- package/src/resources/-internal-templates/index.ts +0 -14
- package/src/resources/-internal-templates.ts +0 -3
- package/src/resources/agents/archival-memory.ts +0 -192
- package/src/resources/agents/core-memory/core-memory.ts +0 -201
- package/src/resources/agents/core-memory/index.ts +0 -13
- package/src/resources/agents/sources.ts +0 -59
- package/src/resources/client-side-access-tokens.ts +0 -166
- package/src/resources/embeddings.ts +0 -39
- package/src/resources/health.ts +0 -27
- package/src/resources/jobs.ts +0 -219
- package/src/resources/messages/messages.ts +0 -33
- package/src/resources/messages.ts +0 -3
- package/src/resources/projects.ts +0 -45
- package/src/resources/providers.ts +0 -261
- package/src/resources/sources/files.ts +0 -82
- package/src/resources/sources/index.ts +0 -26
- package/src/resources/sources/sources.ts +0 -702
- package/src/resources/sources.ts +0 -3
- package/src/resources/telemetry.ts +0 -20
- package/src/resources/tools/composio/apps.ts +0 -198
- package/src/resources/tools/composio/composio.ts +0 -31
- package/src/resources/tools/composio/index.ts +0 -4
- package/src/resources/tools/composio.ts +0 -3
- package/src/resources/tools/index.ts +0 -23
- package/src/resources/tools/mcp/index.ts +0 -24
- package/src/resources/tools/mcp/mcp.ts +0 -63
- package/src/resources/tools/mcp/oauth.ts +0 -50
- package/src/resources/tools/mcp/servers/index.ts +0 -23
- package/src/resources/tools/mcp/servers/servers.ts +0 -587
- package/src/resources/tools/mcp/servers/tools.ts +0 -130
- package/src/resources/tools/mcp/servers.ts +0 -3
- package/src/resources/tools/tools.ts +0 -663
- package/src/resources/voice-beta/chat.ts +0 -33
- package/src/resources/voice-beta/index.ts +0 -4
- package/src/resources/voice-beta/voice-beta.ts +0 -19
- package/src/resources/voice-beta.ts +0 -3
- /package/resources/{messages → batches}/index.js +0 -0
- /package/resources/{messages → batches}/index.mjs +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { type Uploadable } from "../../core/uploads.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Files extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List paginated files associated with a data folder.
|
|
8
|
+
*/
|
|
9
|
+
list(folderID: string, query?: FileListParams | null | undefined, options?: RequestOptions): APIPromise<FileListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Delete a file from a folder.
|
|
12
|
+
*/
|
|
13
|
+
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Upload a file to a data folder.
|
|
16
|
+
*/
|
|
17
|
+
upload(folderID: string, params: FileUploadParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
|
|
18
|
+
}
|
|
19
|
+
export type FileListResponse = Array<FileListResponse.FileListResponseItem>;
|
|
20
|
+
export declare namespace FileListResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Representation of a single FileMetadata
|
|
23
|
+
*/
|
|
24
|
+
interface FileListResponseItem {
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier of the source associated with the document.
|
|
27
|
+
*/
|
|
28
|
+
source_id: string;
|
|
29
|
+
/**
|
|
30
|
+
* The human-friendly ID of the File
|
|
31
|
+
*/
|
|
32
|
+
id?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Number of chunks that have been embedded.
|
|
35
|
+
*/
|
|
36
|
+
chunks_embedded?: number | null;
|
|
37
|
+
/**
|
|
38
|
+
* Optional full-text content of the file; only populated on demand due to its
|
|
39
|
+
* size.
|
|
40
|
+
*/
|
|
41
|
+
content?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The creation date of the file.
|
|
44
|
+
*/
|
|
45
|
+
created_at?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Optional error message if the file failed processing.
|
|
48
|
+
*/
|
|
49
|
+
error_message?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* The creation date of the file.
|
|
52
|
+
*/
|
|
53
|
+
file_creation_date?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The last modified date of the file.
|
|
56
|
+
*/
|
|
57
|
+
file_last_modified_date?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The name of the file.
|
|
60
|
+
*/
|
|
61
|
+
file_name?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* The path to the file.
|
|
64
|
+
*/
|
|
65
|
+
file_path?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* The size of the file in bytes.
|
|
68
|
+
*/
|
|
69
|
+
file_size?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
* The type of the file (MIME type).
|
|
72
|
+
*/
|
|
73
|
+
file_type?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The original name of the file as uploaded.
|
|
76
|
+
*/
|
|
77
|
+
original_file_name?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The current processing status of the file (e.g. pending, parsing, embedding,
|
|
80
|
+
* completed, error).
|
|
81
|
+
*/
|
|
82
|
+
processing_status?: 'pending' | 'parsing' | 'embedding' | 'completed' | 'error';
|
|
83
|
+
/**
|
|
84
|
+
* Total number of chunks for the file.
|
|
85
|
+
*/
|
|
86
|
+
total_chunks?: number | null;
|
|
87
|
+
/**
|
|
88
|
+
* The update date of the file.
|
|
89
|
+
*/
|
|
90
|
+
updated_at?: string | null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Representation of a single FileMetadata
|
|
95
|
+
*/
|
|
96
|
+
export interface FileUploadResponse {
|
|
97
|
+
/**
|
|
98
|
+
* The unique identifier of the source associated with the document.
|
|
99
|
+
*/
|
|
100
|
+
source_id: string;
|
|
101
|
+
/**
|
|
102
|
+
* The human-friendly ID of the File
|
|
103
|
+
*/
|
|
104
|
+
id?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Number of chunks that have been embedded.
|
|
107
|
+
*/
|
|
108
|
+
chunks_embedded?: number | null;
|
|
109
|
+
/**
|
|
110
|
+
* Optional full-text content of the file; only populated on demand due to its
|
|
111
|
+
* size.
|
|
112
|
+
*/
|
|
113
|
+
content?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* The creation date of the file.
|
|
116
|
+
*/
|
|
117
|
+
created_at?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Optional error message if the file failed processing.
|
|
120
|
+
*/
|
|
121
|
+
error_message?: string | null;
|
|
122
|
+
/**
|
|
123
|
+
* The creation date of the file.
|
|
124
|
+
*/
|
|
125
|
+
file_creation_date?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* The last modified date of the file.
|
|
128
|
+
*/
|
|
129
|
+
file_last_modified_date?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the file.
|
|
132
|
+
*/
|
|
133
|
+
file_name?: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* The path to the file.
|
|
136
|
+
*/
|
|
137
|
+
file_path?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* The size of the file in bytes.
|
|
140
|
+
*/
|
|
141
|
+
file_size?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
* The type of the file (MIME type).
|
|
144
|
+
*/
|
|
145
|
+
file_type?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* The original name of the file as uploaded.
|
|
148
|
+
*/
|
|
149
|
+
original_file_name?: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* The current processing status of the file (e.g. pending, parsing, embedding,
|
|
152
|
+
* completed, error).
|
|
153
|
+
*/
|
|
154
|
+
processing_status?: 'pending' | 'parsing' | 'embedding' | 'completed' | 'error';
|
|
155
|
+
/**
|
|
156
|
+
* Total number of chunks for the file.
|
|
157
|
+
*/
|
|
158
|
+
total_chunks?: number | null;
|
|
159
|
+
/**
|
|
160
|
+
* The update date of the file.
|
|
161
|
+
*/
|
|
162
|
+
updated_at?: string | null;
|
|
163
|
+
}
|
|
164
|
+
export interface FileListParams {
|
|
165
|
+
/**
|
|
166
|
+
* File ID cursor for pagination. Returns files that come after this file ID in the
|
|
167
|
+
* specified sort order
|
|
168
|
+
*/
|
|
169
|
+
after?: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* File ID cursor for pagination. Returns files that come before this file ID in
|
|
172
|
+
* the specified sort order
|
|
173
|
+
*/
|
|
174
|
+
before?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Whether to include full file content
|
|
177
|
+
*/
|
|
178
|
+
include_content?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Maximum number of files to return
|
|
181
|
+
*/
|
|
182
|
+
limit?: number | null;
|
|
183
|
+
/**
|
|
184
|
+
* Sort order for files by creation time. 'asc' for oldest first, 'desc' for newest
|
|
185
|
+
* first
|
|
186
|
+
*/
|
|
187
|
+
order?: 'asc' | 'desc';
|
|
188
|
+
/**
|
|
189
|
+
* Field to sort by
|
|
190
|
+
*/
|
|
191
|
+
order_by?: 'created_at';
|
|
192
|
+
}
|
|
193
|
+
export interface FileDeleteParams {
|
|
194
|
+
/**
|
|
195
|
+
* The ID of the source in the format 'source-<uuid4>'
|
|
196
|
+
*/
|
|
197
|
+
folder_id: string;
|
|
198
|
+
}
|
|
199
|
+
export interface FileUploadParams {
|
|
200
|
+
/**
|
|
201
|
+
* Body param:
|
|
202
|
+
*/
|
|
203
|
+
file: Uploadable;
|
|
204
|
+
/**
|
|
205
|
+
* Query param: How to handle duplicate filenames
|
|
206
|
+
*/
|
|
207
|
+
duplicate_handling?: 'skip' | 'error' | 'suffix' | 'replace';
|
|
208
|
+
/**
|
|
209
|
+
* Query param: Optional custom name to override the uploaded file's name
|
|
210
|
+
*/
|
|
211
|
+
name?: string | null;
|
|
212
|
+
}
|
|
213
|
+
export declare namespace Files {
|
|
214
|
+
export { type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
215
|
+
}
|
|
216
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAA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CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IAE7D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Files = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const uploads_1 = require("../../internal/uploads.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
class Files extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List paginated files associated with a data folder.
|
|
12
|
+
*/
|
|
13
|
+
list(folderID, query = {}, options) {
|
|
14
|
+
return this._client.get((0, path_1.path) `/v1/folders/${folderID}/files`, { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Delete a file from a folder.
|
|
18
|
+
*/
|
|
19
|
+
delete(fileID, params, options) {
|
|
20
|
+
const { folder_id } = params;
|
|
21
|
+
return this._client.delete((0, path_1.path) `/v1/folders/${folder_id}/${fileID}`, {
|
|
22
|
+
...options,
|
|
23
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Upload a file to a data folder.
|
|
28
|
+
*/
|
|
29
|
+
upload(folderID, params, options) {
|
|
30
|
+
const { duplicate_handling, name, ...body } = params;
|
|
31
|
+
return this._client.post((0, path_1.path) `/v1/folders/${folderID}/upload`, (0, uploads_1.multipartFormRequestOptions)({ query: { duplicate_handling, name }, body, ...options }, this._client));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Files = Files;
|
|
35
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAqE;AACrE,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,IAAI,CACF,QAAgB,EAChB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,SAAS,IAAI,MAAM,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,eAAe,QAAQ,SAAS,EACpC,IAAA,qCAA2B,EAAC,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrG,CAAC;IACJ,CAAC;CACF;AArCD,sBAqCC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
export class Files extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List paginated files associated with a data folder.
|
|
9
|
+
*/
|
|
10
|
+
list(folderID, query = {}, options) {
|
|
11
|
+
return this._client.get(path `/v1/folders/${folderID}/files`, { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Delete a file from a folder.
|
|
15
|
+
*/
|
|
16
|
+
delete(fileID, params, options) {
|
|
17
|
+
const { folder_id } = params;
|
|
18
|
+
return this._client.delete(path `/v1/folders/${folder_id}/${fileID}`, {
|
|
19
|
+
...options,
|
|
20
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Upload a file to a data folder.
|
|
25
|
+
*/
|
|
26
|
+
upload(folderID, params, options) {
|
|
27
|
+
const { duplicate_handling, name, ...body } = params;
|
|
28
|
+
return this._client.post(path `/v1/folders/${folderID}/upload`, multipartFormRequestOptions({ query: { duplicate_handling, name }, body, ...options }, this._client));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=files.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,IAAI,CACF,QAAgB,EAChB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,SAAS,IAAI,MAAM,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,eAAe,QAAQ,SAAS,EACpC,2BAA2B,CAAC,EAAE,KAAK,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrG,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AgentsAPI from "./agents.mjs";
|
|
3
|
+
import { AgentListParams, AgentListResponse, Agents } from "./agents.mjs";
|
|
4
|
+
import * as FilesAPI from "./files.mjs";
|
|
5
|
+
import { FileDeleteParams, FileListParams, FileListResponse, FileUploadParams, FileUploadResponse, Files } from "./files.mjs";
|
|
6
|
+
import * as ModelsAPI from "../models/models.mjs";
|
|
7
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
8
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
9
|
+
export declare class Folders extends APIResource {
|
|
10
|
+
files: FilesAPI.Files;
|
|
11
|
+
agents: AgentsAPI.Agents;
|
|
12
|
+
/**
|
|
13
|
+
* Create a new data folder.
|
|
14
|
+
*/
|
|
15
|
+
create(body: FolderCreateParams, options?: RequestOptions): APIPromise<Folder>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a folder by ID
|
|
18
|
+
*/
|
|
19
|
+
retrieve(folderID: string, options?: RequestOptions): APIPromise<Folder>;
|
|
20
|
+
/**
|
|
21
|
+
* Update the name or documentation of an existing data folder.
|
|
22
|
+
*/
|
|
23
|
+
update(folderID: string, body: FolderUpdateParams, options?: RequestOptions): APIPromise<Folder>;
|
|
24
|
+
/**
|
|
25
|
+
* List all data folders created by a user.
|
|
26
|
+
*/
|
|
27
|
+
list(query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<FolderListResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete a data folder.
|
|
30
|
+
*/
|
|
31
|
+
delete(folderID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
32
|
+
/**
|
|
33
|
+
* Count all data folders created by a user.
|
|
34
|
+
*/
|
|
35
|
+
count(options?: RequestOptions): APIPromise<FolderCountResponse>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Representation of a folder, which is a collection of files and passages.
|
|
39
|
+
*
|
|
40
|
+
* Parameters: id (str): The ID of the folder name (str): The name of the folder.
|
|
41
|
+
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
42
|
+
* folder. user_id (str): The ID of the user that created the folder. metadata
|
|
43
|
+
* (dict): Metadata associated with the folder. description (str): The description
|
|
44
|
+
* of the folder.
|
|
45
|
+
*/
|
|
46
|
+
export interface Folder {
|
|
47
|
+
/**
|
|
48
|
+
* The embedding configuration used by the folder.
|
|
49
|
+
*/
|
|
50
|
+
embedding_config: ModelsAPI.EmbeddingConfig;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the folder.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* The human-friendly ID of the Source
|
|
57
|
+
*/
|
|
58
|
+
id?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The timestamp when the folder was created.
|
|
61
|
+
*/
|
|
62
|
+
created_at?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* The id of the user that made this Tool.
|
|
65
|
+
*/
|
|
66
|
+
created_by_id?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* The description of the folder.
|
|
69
|
+
*/
|
|
70
|
+
description?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Instructions for how to use the folder.
|
|
73
|
+
*/
|
|
74
|
+
instructions?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The id of the user that made this Tool.
|
|
77
|
+
*/
|
|
78
|
+
last_updated_by_id?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Metadata associated with the folder.
|
|
81
|
+
*/
|
|
82
|
+
metadata?: {
|
|
83
|
+
[key: string]: unknown;
|
|
84
|
+
} | null;
|
|
85
|
+
/**
|
|
86
|
+
* The timestamp when the folder was last updated.
|
|
87
|
+
*/
|
|
88
|
+
updated_at?: string | null;
|
|
89
|
+
}
|
|
90
|
+
export type FolderListResponse = Array<Folder>;
|
|
91
|
+
export type FolderDeleteResponse = unknown;
|
|
92
|
+
export type FolderCountResponse = number;
|
|
93
|
+
export interface FolderCreateParams {
|
|
94
|
+
/**
|
|
95
|
+
* The name of the source.
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* The description of the source.
|
|
100
|
+
*/
|
|
101
|
+
description?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The handle for the embedding config used by the source.
|
|
104
|
+
*/
|
|
105
|
+
embedding?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* The chunk size of the embedding.
|
|
108
|
+
*/
|
|
109
|
+
embedding_chunk_size?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
* Configuration for embedding model connection and processing parameters.
|
|
112
|
+
*/
|
|
113
|
+
embedding_config?: ModelsAPI.EmbeddingConfig | null;
|
|
114
|
+
/**
|
|
115
|
+
* Instructions for how to use the source.
|
|
116
|
+
*/
|
|
117
|
+
instructions?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Metadata associated with the source.
|
|
120
|
+
*/
|
|
121
|
+
metadata?: {
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
} | null;
|
|
124
|
+
}
|
|
125
|
+
export interface FolderUpdateParams {
|
|
126
|
+
/**
|
|
127
|
+
* The description of the source.
|
|
128
|
+
*/
|
|
129
|
+
description?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Configuration for embedding model connection and processing parameters.
|
|
132
|
+
*/
|
|
133
|
+
embedding_config?: ModelsAPI.EmbeddingConfig | null;
|
|
134
|
+
/**
|
|
135
|
+
* Instructions for how to use the source.
|
|
136
|
+
*/
|
|
137
|
+
instructions?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Metadata associated with the source.
|
|
140
|
+
*/
|
|
141
|
+
metadata?: {
|
|
142
|
+
[key: string]: unknown;
|
|
143
|
+
} | null;
|
|
144
|
+
/**
|
|
145
|
+
* The name of the source.
|
|
146
|
+
*/
|
|
147
|
+
name?: string | null;
|
|
148
|
+
}
|
|
149
|
+
export interface FolderListParams {
|
|
150
|
+
/**
|
|
151
|
+
* Folder ID cursor for pagination. Returns folders that come after this folder ID
|
|
152
|
+
* in the specified sort order
|
|
153
|
+
*/
|
|
154
|
+
after?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Folder ID cursor for pagination. Returns folders that come before this folder ID
|
|
157
|
+
* in the specified sort order
|
|
158
|
+
*/
|
|
159
|
+
before?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* Maximum number of folders to return
|
|
162
|
+
*/
|
|
163
|
+
limit?: number | null;
|
|
164
|
+
/**
|
|
165
|
+
* Folder name to filter by
|
|
166
|
+
*/
|
|
167
|
+
name?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Sort order for folders by creation time. 'asc' for oldest first, 'desc' for
|
|
170
|
+
* newest first
|
|
171
|
+
*/
|
|
172
|
+
order?: 'asc' | 'desc';
|
|
173
|
+
/**
|
|
174
|
+
* Field to sort by
|
|
175
|
+
*/
|
|
176
|
+
order_by?: 'created_at';
|
|
177
|
+
}
|
|
178
|
+
export declare namespace Folders {
|
|
179
|
+
export { type Folder as Folder, type FolderListResponse as FolderListResponse, type FolderDeleteResponse as FolderDeleteResponse, type FolderCountResponse as FolderCountResponse, type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
|
|
180
|
+
export { Files as Files, type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
181
|
+
export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=folders.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folders.d.mts","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN;OACM,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIhG;;OAEG;IACH,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AAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AgentsAPI from "./agents.js";
|
|
3
|
+
import { AgentListParams, AgentListResponse, Agents } from "./agents.js";
|
|
4
|
+
import * as FilesAPI from "./files.js";
|
|
5
|
+
import { FileDeleteParams, FileListParams, FileListResponse, FileUploadParams, FileUploadResponse, Files } from "./files.js";
|
|
6
|
+
import * as ModelsAPI from "../models/models.js";
|
|
7
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
8
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
9
|
+
export declare class Folders extends APIResource {
|
|
10
|
+
files: FilesAPI.Files;
|
|
11
|
+
agents: AgentsAPI.Agents;
|
|
12
|
+
/**
|
|
13
|
+
* Create a new data folder.
|
|
14
|
+
*/
|
|
15
|
+
create(body: FolderCreateParams, options?: RequestOptions): APIPromise<Folder>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a folder by ID
|
|
18
|
+
*/
|
|
19
|
+
retrieve(folderID: string, options?: RequestOptions): APIPromise<Folder>;
|
|
20
|
+
/**
|
|
21
|
+
* Update the name or documentation of an existing data folder.
|
|
22
|
+
*/
|
|
23
|
+
update(folderID: string, body: FolderUpdateParams, options?: RequestOptions): APIPromise<Folder>;
|
|
24
|
+
/**
|
|
25
|
+
* List all data folders created by a user.
|
|
26
|
+
*/
|
|
27
|
+
list(query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<FolderListResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete a data folder.
|
|
30
|
+
*/
|
|
31
|
+
delete(folderID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
32
|
+
/**
|
|
33
|
+
* Count all data folders created by a user.
|
|
34
|
+
*/
|
|
35
|
+
count(options?: RequestOptions): APIPromise<FolderCountResponse>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Representation of a folder, which is a collection of files and passages.
|
|
39
|
+
*
|
|
40
|
+
* Parameters: id (str): The ID of the folder name (str): The name of the folder.
|
|
41
|
+
* embedding_config (EmbeddingConfig): The embedding configuration used by the
|
|
42
|
+
* folder. user_id (str): The ID of the user that created the folder. metadata
|
|
43
|
+
* (dict): Metadata associated with the folder. description (str): The description
|
|
44
|
+
* of the folder.
|
|
45
|
+
*/
|
|
46
|
+
export interface Folder {
|
|
47
|
+
/**
|
|
48
|
+
* The embedding configuration used by the folder.
|
|
49
|
+
*/
|
|
50
|
+
embedding_config: ModelsAPI.EmbeddingConfig;
|
|
51
|
+
/**
|
|
52
|
+
* The name of the folder.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* The human-friendly ID of the Source
|
|
57
|
+
*/
|
|
58
|
+
id?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The timestamp when the folder was created.
|
|
61
|
+
*/
|
|
62
|
+
created_at?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* The id of the user that made this Tool.
|
|
65
|
+
*/
|
|
66
|
+
created_by_id?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* The description of the folder.
|
|
69
|
+
*/
|
|
70
|
+
description?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Instructions for how to use the folder.
|
|
73
|
+
*/
|
|
74
|
+
instructions?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The id of the user that made this Tool.
|
|
77
|
+
*/
|
|
78
|
+
last_updated_by_id?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Metadata associated with the folder.
|
|
81
|
+
*/
|
|
82
|
+
metadata?: {
|
|
83
|
+
[key: string]: unknown;
|
|
84
|
+
} | null;
|
|
85
|
+
/**
|
|
86
|
+
* The timestamp when the folder was last updated.
|
|
87
|
+
*/
|
|
88
|
+
updated_at?: string | null;
|
|
89
|
+
}
|
|
90
|
+
export type FolderListResponse = Array<Folder>;
|
|
91
|
+
export type FolderDeleteResponse = unknown;
|
|
92
|
+
export type FolderCountResponse = number;
|
|
93
|
+
export interface FolderCreateParams {
|
|
94
|
+
/**
|
|
95
|
+
* The name of the source.
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* The description of the source.
|
|
100
|
+
*/
|
|
101
|
+
description?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The handle for the embedding config used by the source.
|
|
104
|
+
*/
|
|
105
|
+
embedding?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* The chunk size of the embedding.
|
|
108
|
+
*/
|
|
109
|
+
embedding_chunk_size?: number | null;
|
|
110
|
+
/**
|
|
111
|
+
* Configuration for embedding model connection and processing parameters.
|
|
112
|
+
*/
|
|
113
|
+
embedding_config?: ModelsAPI.EmbeddingConfig | null;
|
|
114
|
+
/**
|
|
115
|
+
* Instructions for how to use the source.
|
|
116
|
+
*/
|
|
117
|
+
instructions?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Metadata associated with the source.
|
|
120
|
+
*/
|
|
121
|
+
metadata?: {
|
|
122
|
+
[key: string]: unknown;
|
|
123
|
+
} | null;
|
|
124
|
+
}
|
|
125
|
+
export interface FolderUpdateParams {
|
|
126
|
+
/**
|
|
127
|
+
* The description of the source.
|
|
128
|
+
*/
|
|
129
|
+
description?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Configuration for embedding model connection and processing parameters.
|
|
132
|
+
*/
|
|
133
|
+
embedding_config?: ModelsAPI.EmbeddingConfig | null;
|
|
134
|
+
/**
|
|
135
|
+
* Instructions for how to use the source.
|
|
136
|
+
*/
|
|
137
|
+
instructions?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Metadata associated with the source.
|
|
140
|
+
*/
|
|
141
|
+
metadata?: {
|
|
142
|
+
[key: string]: unknown;
|
|
143
|
+
} | null;
|
|
144
|
+
/**
|
|
145
|
+
* The name of the source.
|
|
146
|
+
*/
|
|
147
|
+
name?: string | null;
|
|
148
|
+
}
|
|
149
|
+
export interface FolderListParams {
|
|
150
|
+
/**
|
|
151
|
+
* Folder ID cursor for pagination. Returns folders that come after this folder ID
|
|
152
|
+
* in the specified sort order
|
|
153
|
+
*/
|
|
154
|
+
after?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
* Folder ID cursor for pagination. Returns folders that come before this folder ID
|
|
157
|
+
* in the specified sort order
|
|
158
|
+
*/
|
|
159
|
+
before?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* Maximum number of folders to return
|
|
162
|
+
*/
|
|
163
|
+
limit?: number | null;
|
|
164
|
+
/**
|
|
165
|
+
* Folder name to filter by
|
|
166
|
+
*/
|
|
167
|
+
name?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
* Sort order for folders by creation time. 'asc' for oldest first, 'desc' for
|
|
170
|
+
* newest first
|
|
171
|
+
*/
|
|
172
|
+
order?: 'asc' | 'desc';
|
|
173
|
+
/**
|
|
174
|
+
* Field to sort by
|
|
175
|
+
*/
|
|
176
|
+
order_by?: 'created_at';
|
|
177
|
+
}
|
|
178
|
+
export declare namespace Folders {
|
|
179
|
+
export { type Folder as Folder, type FolderListResponse as FolderListResponse, type FolderDeleteResponse as FolderDeleteResponse, type FolderCountResponse as FolderCountResponse, type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
|
|
180
|
+
export { Files as Files, type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
181
|
+
export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,EAAE;OAC9C,KAAK,QAAQ;OACb,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN;OACM,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAI9E;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIxE;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,O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