@letta-ai/letta-client 1.0.0-alpha.7 → 1.1.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 +248 -0
- package/README.md +282 -319
- package/client.d.mts +61 -36
- package/client.d.mts.map +1 -1
- package/client.d.ts +61 -36
- package/client.d.ts.map +1 -1
- package/client.js +53 -23
- package/client.js.map +1 -1
- package/client.mjs +53 -23
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +96 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +96 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +199 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +191 -0
- package/core/pagination.mjs.map +1 -0
- package/core/streaming.d.mts +33 -0
- package/core/streaming.d.mts.map +1 -0
- package/core/streaming.d.ts +33 -0
- package/core/streaming.d.ts.map +1 -0
- package/core/streaming.js +276 -0
- package/core/streaming.js.map +1 -0
- package/core/streaming.mjs +271 -0
- package/core/streaming.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/decoders/line.d.mts +17 -0
- package/internal/decoders/line.d.mts.map +1 -0
- package/internal/decoders/line.d.ts +17 -0
- package/internal/decoders/line.d.ts.map +1 -0
- package/internal/decoders/line.js +113 -0
- package/internal/decoders/line.js.map +1 -0
- package/internal/decoders/line.mjs +108 -0
- package/internal/decoders/line.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +10 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +10 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +2 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +2 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/package.json +21 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/access-tokens.d.mts +105 -0
- package/resources/access-tokens.d.mts.map +1 -0
- package/resources/access-tokens.d.ts +105 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +30 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +26 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/agents/agents.d.mts +517 -160
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +517 -160
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +16 -21
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -22
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/archives.d.mts +31 -0
- package/resources/agents/archives.d.mts.map +1 -0
- package/resources/agents/archives.d.ts +31 -0
- package/resources/agents/archives.d.ts.map +1 -0
- package/resources/agents/archives.js +24 -0
- package/resources/agents/archives.js.map +1 -0
- package/resources/agents/archives.mjs +20 -0
- package/resources/agents/archives.mjs.map +1 -0
- package/resources/agents/blocks.d.mts +33 -55
- package/resources/agents/blocks.d.mts.map +1 -1
- package/resources/agents/blocks.d.ts +33 -55
- package/resources/agents/blocks.d.ts.map +1 -1
- package/resources/agents/blocks.js +2 -1
- package/resources/agents/blocks.js.map +1 -1
- package/resources/agents/blocks.mjs +2 -1
- package/resources/agents/blocks.mjs.map +1 -1
- package/resources/agents/files.d.mts +39 -79
- package/resources/agents/files.d.mts.map +1 -1
- package/resources/agents/files.d.ts +39 -79
- package/resources/agents/files.d.ts.map +1 -1
- package/resources/agents/files.js +5 -1
- package/resources/agents/files.js.map +1 -1
- package/resources/agents/files.mjs +5 -1
- package/resources/agents/files.mjs.map +1 -1
- package/resources/agents/folders.d.mts +50 -79
- package/resources/agents/folders.d.mts.map +1 -1
- package/resources/agents/folders.d.ts +50 -79
- package/resources/agents/folders.d.ts.map +1 -1
- package/resources/agents/folders.js +5 -1
- package/resources/agents/folders.js.map +1 -1
- package/resources/agents/folders.mjs +5 -1
- package/resources/agents/folders.mjs.map +1 -1
- package/resources/agents/groups.d.mts +6 -28
- package/resources/agents/groups.d.mts.map +1 -1
- package/resources/agents/groups.d.ts +6 -28
- package/resources/agents/groups.d.ts.map +1 -1
- package/resources/agents/groups.js +5 -1
- package/resources/agents/groups.js.map +1 -1
- package/resources/agents/groups.mjs +5 -1
- package/resources/agents/groups.mjs.map +1 -1
- package/resources/agents/identities.d.mts +31 -0
- package/resources/agents/identities.d.mts.map +1 -0
- package/resources/agents/identities.d.ts +31 -0
- package/resources/agents/identities.d.ts.map +1 -0
- package/resources/agents/identities.js +24 -0
- package/resources/agents/identities.js.map +1 -0
- package/resources/agents/identities.mjs +20 -0
- package/resources/agents/identities.mjs.map +1 -0
- package/resources/agents/index.d.mts +9 -7
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +9 -7
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +5 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +2 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/messages.d.mts +668 -422
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +668 -422
- package/resources/agents/messages.d.ts.map +1 -1
- package/resources/agents/messages.js +27 -26
- package/resources/agents/messages.js.map +1 -1
- package/resources/agents/messages.mjs +27 -26
- package/resources/agents/messages.mjs.map +1 -1
- package/resources/agents/tools.d.mts +9 -30
- package/resources/agents/tools.d.mts.map +1 -1
- package/resources/agents/tools.d.ts +9 -30
- package/resources/agents/tools.d.ts.map +1 -1
- package/resources/agents/tools.js +5 -1
- package/resources/agents/tools.js.map +1 -1
- package/resources/agents/tools.mjs +5 -1
- package/resources/agents/tools.mjs.map +1 -1
- package/resources/archives/archives.d.mts +115 -0
- package/resources/archives/archives.d.mts.map +1 -0
- package/resources/archives/archives.d.ts +115 -0
- package/resources/archives/archives.d.ts.map +1 -0
- package/resources/archives/archives.js +50 -0
- package/resources/archives/archives.js.map +1 -0
- package/resources/archives/archives.mjs +45 -0
- package/resources/archives/archives.mjs.map +1 -0
- package/resources/archives/index.d.mts +3 -0
- package/resources/archives/index.d.mts.map +1 -0
- package/resources/archives/index.d.ts +3 -0
- package/resources/archives/index.d.ts.map +1 -0
- package/resources/archives/index.js +9 -0
- package/resources/archives/index.js.map +1 -0
- package/resources/archives/index.mjs +4 -0
- package/resources/archives/index.mjs.map +1 -0
- package/resources/archives/passages.d.mts +113 -0
- package/resources/archives/passages.d.mts.map +1 -0
- package/resources/archives/passages.d.ts +113 -0
- package/resources/archives/passages.d.ts.map +1 -0
- package/resources/archives/passages.js +32 -0
- package/resources/archives/passages.js.map +1 -0
- package/resources/archives/passages.mjs +28 -0
- package/resources/archives/passages.mjs.map +1 -0
- package/resources/archives.d.mts +1 -130
- package/resources/archives.d.mts.map +1 -1
- package/resources/archives.d.ts +1 -130
- package/resources/archives.d.ts.map +1 -1
- package/resources/archives.js +2 -37
- package/resources/archives.js.map +1 -1
- package/resources/archives.mjs +1 -35
- package/resources/archives.mjs.map +1 -1
- package/resources/batches/batches.d.mts +52 -34
- package/resources/batches/batches.d.mts.map +1 -1
- package/resources/batches/batches.d.ts +52 -34
- package/resources/batches/batches.d.ts.map +1 -1
- package/resources/batches/batches.js +2 -1
- package/resources/batches/batches.js.map +1 -1
- package/resources/batches/batches.mjs +2 -1
- package/resources/batches/batches.mjs.map +1 -1
- package/resources/batches/index.d.mts +2 -2
- package/resources/batches/index.d.mts.map +1 -1
- package/resources/batches/index.d.ts +2 -2
- package/resources/batches/index.d.ts.map +1 -1
- package/resources/batches/index.js.map +1 -1
- package/resources/batches/index.mjs.map +1 -1
- package/resources/batches/messages.d.mts +6 -30
- package/resources/batches/messages.d.mts.map +1 -1
- package/resources/batches/messages.d.ts +6 -30
- package/resources/batches/messages.d.ts.map +1 -1
- package/resources/batches/messages.js +2 -1
- package/resources/batches/messages.js.map +1 -1
- package/resources/batches/messages.mjs +2 -1
- package/resources/batches/messages.mjs.map +1 -1
- package/resources/blocks/agents.d.mts +6 -28
- package/resources/blocks/agents.d.mts.map +1 -1
- package/resources/blocks/agents.d.ts +6 -28
- package/resources/blocks/agents.d.ts.map +1 -1
- package/resources/blocks/agents.js +5 -1
- package/resources/blocks/agents.js.map +1 -1
- package/resources/blocks/agents.mjs +5 -1
- package/resources/blocks/agents.mjs.map +1 -1
- package/resources/blocks/blocks.d.mts +108 -48
- package/resources/blocks/blocks.d.mts.map +1 -1
- package/resources/blocks/blocks.d.ts +108 -48
- package/resources/blocks/blocks.d.ts.map +1 -1
- package/resources/blocks/blocks.js +3 -8
- package/resources/blocks/blocks.js.map +1 -1
- package/resources/blocks/blocks.mjs +3 -8
- package/resources/blocks/blocks.mjs.map +1 -1
- package/resources/blocks/index.d.mts +2 -2
- package/resources/blocks/index.d.mts.map +1 -1
- package/resources/blocks/index.d.ts +2 -2
- package/resources/blocks/index.d.ts.map +1 -1
- package/resources/blocks/index.js.map +1 -1
- package/resources/blocks/index.mjs.map +1 -1
- package/resources/folders/files.d.mts +75 -97
- package/resources/folders/files.d.mts.map +1 -1
- package/resources/folders/files.d.ts +75 -97
- package/resources/folders/files.d.ts.map +1 -1
- package/resources/folders/files.js +5 -1
- package/resources/folders/files.js.map +1 -1
- package/resources/folders/files.mjs +5 -1
- package/resources/folders/files.mjs.map +1 -1
- package/resources/folders/folders.d.mts +11 -44
- package/resources/folders/folders.d.mts.map +1 -1
- package/resources/folders/folders.d.ts +11 -44
- package/resources/folders/folders.d.ts.map +1 -1
- package/resources/folders/folders.js +2 -7
- package/resources/folders/folders.js.map +1 -1
- package/resources/folders/folders.mjs +2 -7
- package/resources/folders/folders.mjs.map +1 -1
- package/resources/folders/index.d.mts +2 -2
- package/resources/folders/index.d.mts.map +1 -1
- package/resources/folders/index.d.ts +2 -2
- package/resources/folders/index.d.ts.map +1 -1
- package/resources/folders/index.js.map +1 -1
- package/resources/folders/index.mjs.map +1 -1
- package/resources/groups/groups.d.mts +17 -67
- package/resources/groups/groups.d.mts.map +1 -1
- package/resources/groups/groups.d.ts +17 -67
- package/resources/groups/groups.d.ts.map +1 -1
- package/resources/groups/groups.js +6 -28
- package/resources/groups/groups.js.map +1 -1
- package/resources/groups/groups.mjs +6 -28
- 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 +145 -79
- package/resources/groups/messages.d.mts.map +1 -1
- package/resources/groups/messages.d.ts +145 -79
- package/resources/groups/messages.d.ts.map +1 -1
- package/resources/groups/messages.js +18 -10
- package/resources/groups/messages.js.map +1 -1
- package/resources/groups/messages.mjs +18 -10
- package/resources/groups/messages.mjs.map +1 -1
- package/resources/identities/agents.d.mts +6 -28
- package/resources/identities/agents.d.mts.map +1 -1
- package/resources/identities/agents.d.ts +6 -28
- package/resources/identities/agents.d.ts.map +1 -1
- package/resources/identities/agents.js +2 -1
- package/resources/identities/agents.js.map +1 -1
- package/resources/identities/agents.mjs +2 -1
- package/resources/identities/agents.mjs.map +1 -1
- package/resources/identities/blocks.d.mts +7 -29
- package/resources/identities/blocks.d.mts.map +1 -1
- package/resources/identities/blocks.d.ts +7 -29
- package/resources/identities/blocks.d.ts.map +1 -1
- package/resources/identities/blocks.js +2 -1
- package/resources/identities/blocks.js.map +1 -1
- package/resources/identities/blocks.mjs +2 -1
- package/resources/identities/blocks.mjs.map +1 -1
- package/resources/identities/identities.d.mts +30 -65
- package/resources/identities/identities.d.mts.map +1 -1
- package/resources/identities/identities.d.ts +30 -65
- package/resources/identities/identities.d.ts.map +1 -1
- package/resources/identities/identities.js +7 -29
- package/resources/identities/identities.js.map +1 -1
- package/resources/identities/identities.mjs +7 -29
- package/resources/identities/identities.mjs.map +1 -1
- package/resources/identities/index.d.mts +3 -3
- package/resources/identities/index.d.mts.map +1 -1
- package/resources/identities/index.d.ts +3 -3
- package/resources/identities/index.d.ts.map +1 -1
- package/resources/identities/index.js.map +1 -1
- package/resources/identities/index.mjs.map +1 -1
- package/resources/identities/properties.d.mts +1 -1
- package/resources/identities/properties.d.ts +1 -1
- package/resources/identities/properties.js +1 -1
- package/resources/identities/properties.mjs +1 -1
- package/resources/index.d.mts +13 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-servers/index.d.mts +3 -0
- package/resources/mcp-servers/index.d.mts.map +1 -0
- package/resources/mcp-servers/index.d.ts +3 -0
- package/resources/mcp-servers/index.d.ts.map +1 -0
- package/resources/mcp-servers/index.js +9 -0
- package/resources/mcp-servers/index.js.map +1 -0
- package/resources/mcp-servers/index.mjs +4 -0
- package/resources/mcp-servers/index.mjs.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.mts +349 -0
- package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers/mcp-servers.d.ts +349 -0
- package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers/mcp-servers.js +69 -0
- package/resources/mcp-servers/mcp-servers.js.map +1 -0
- package/resources/mcp-servers/mcp-servers.mjs +64 -0
- package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
- package/resources/mcp-servers/tools.d.mts +42 -0
- package/resources/mcp-servers/tools.d.mts.map +1 -0
- package/resources/mcp-servers/tools.d.ts +42 -0
- package/resources/mcp-servers/tools.d.ts.map +1 -0
- package/resources/mcp-servers/tools.js +36 -0
- package/resources/mcp-servers/tools.js.map +1 -0
- package/resources/mcp-servers/tools.mjs +32 -0
- package/resources/mcp-servers/tools.mjs.map +1 -0
- package/resources/mcp-servers.d.mts +2 -0
- package/resources/mcp-servers.d.mts.map +1 -0
- package/resources/mcp-servers.d.ts +2 -0
- package/resources/mcp-servers.d.ts.map +1 -0
- package/resources/mcp-servers.js +6 -0
- package/resources/mcp-servers.js.map +1 -0
- package/resources/mcp-servers.mjs +3 -0
- package/resources/mcp-servers.mjs.map +1 -0
- package/resources/models/embeddings.d.mts +6 -2
- package/resources/models/embeddings.d.mts.map +1 -1
- package/resources/models/embeddings.d.ts +6 -2
- package/resources/models/embeddings.d.ts.map +1 -1
- package/resources/models/embeddings.js +5 -1
- package/resources/models/embeddings.js.map +1 -1
- package/resources/models/embeddings.mjs +5 -1
- package/resources/models/embeddings.mjs.map +1 -1
- package/resources/models/index.d.mts +1 -1
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +1 -1
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +180 -4
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +180 -4
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +5 -1
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +5 -1
- package/resources/models/models.mjs.map +1 -1
- package/resources/runs/index.d.mts +3 -3
- package/resources/runs/index.d.mts.map +1 -1
- package/resources/runs/index.d.ts +3 -3
- package/resources/runs/index.d.ts.map +1 -1
- package/resources/runs/index.js.map +1 -1
- package/resources/runs/index.mjs.map +1 -1
- package/resources/runs/messages.d.mts +8 -28
- package/resources/runs/messages.d.mts.map +1 -1
- package/resources/runs/messages.d.ts +8 -28
- package/resources/runs/messages.d.ts.map +1 -1
- package/resources/runs/messages.js +10 -2
- package/resources/runs/messages.js.map +1 -1
- package/resources/runs/messages.mjs +10 -2
- package/resources/runs/messages.mjs.map +1 -1
- package/resources/runs/runs.d.mts +10 -36
- package/resources/runs/runs.d.mts.map +1 -1
- package/resources/runs/runs.d.ts +10 -36
- package/resources/runs/runs.d.ts.map +1 -1
- package/resources/runs/runs.js +2 -1
- package/resources/runs/runs.js.map +1 -1
- package/resources/runs/runs.mjs +3 -2
- package/resources/runs/runs.mjs.map +1 -1
- package/resources/runs/steps.d.mts +6 -26
- package/resources/runs/steps.d.mts.map +1 -1
- package/resources/runs/steps.d.ts +6 -26
- package/resources/runs/steps.d.ts.map +1 -1
- package/resources/runs/steps.js +5 -1
- package/resources/runs/steps.js.map +1 -1
- package/resources/runs/steps.mjs +5 -1
- package/resources/runs/steps.mjs.map +1 -1
- package/resources/steps/index.d.mts +2 -2
- package/resources/steps/index.d.mts.map +1 -1
- package/resources/steps/index.d.ts +2 -2
- package/resources/steps/index.d.ts.map +1 -1
- package/resources/steps/index.js.map +1 -1
- package/resources/steps/index.mjs +1 -1
- package/resources/steps/index.mjs.map +1 -1
- package/resources/steps/messages.d.mts +14 -28
- package/resources/steps/messages.d.mts.map +1 -1
- package/resources/steps/messages.d.ts +14 -28
- package/resources/steps/messages.d.ts.map +1 -1
- package/resources/steps/messages.js +5 -1
- package/resources/steps/messages.js.map +1 -1
- package/resources/steps/messages.mjs +5 -1
- package/resources/steps/messages.mjs.map +1 -1
- package/resources/steps/steps.d.mts +17 -44
- package/resources/steps/steps.d.mts.map +1 -1
- package/resources/steps/steps.d.ts +17 -44
- package/resources/steps/steps.d.ts.map +1 -1
- package/resources/steps/steps.js +3 -11
- package/resources/steps/steps.js.map +1 -1
- package/resources/steps/steps.mjs +3 -11
- package/resources/steps/steps.mjs.map +1 -1
- package/resources/templates/agents.d.mts +9 -14
- package/resources/templates/agents.d.mts.map +1 -1
- package/resources/templates/agents.d.ts +9 -14
- package/resources/templates/agents.d.ts.map +1 -1
- package/resources/templates/agents.js +2 -3
- package/resources/templates/agents.js.map +1 -1
- package/resources/templates/agents.mjs +2 -3
- package/resources/templates/agents.mjs.map +1 -1
- package/resources/tools.d.mts +6 -68
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -68
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -7
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -7
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +274 -127
- package/src/core/pagination.ts +334 -0
- package/src/core/streaming.ts +331 -0
- package/src/index.ts +1 -0
- package/src/internal/decoders/line.ts +135 -0
- package/src/internal/parse.ts +14 -0
- package/src/internal/request-options.ts +2 -0
- package/src/pagination.ts +2 -0
- package/src/resources/access-tokens.ts +163 -0
- package/src/resources/agents/agents.ts +722 -242
- package/src/resources/agents/archives.ts +51 -0
- package/src/resources/agents/blocks.ts +50 -63
- package/src/resources/agents/files.ts +47 -90
- package/src/resources/agents/folders.ts +58 -88
- package/src/resources/agents/groups.ts +11 -35
- package/src/resources/agents/identities.ts +51 -0
- package/src/resources/agents/index.ts +40 -12
- package/src/resources/agents/messages.ts +941 -550
- package/src/resources/agents/tools.ts +13 -37
- package/src/resources/archives/archives.ts +170 -0
- package/src/resources/archives/index.ts +17 -0
- package/src/resources/archives/passages.ts +150 -0
- package/src/resources/archives.ts +1 -178
- package/src/resources/batches/batches.ts +74 -46
- package/src/resources/batches/index.ts +2 -2
- package/src/resources/batches/messages.ts +12 -37
- package/src/resources/blocks/agents.ts +11 -35
- package/src/resources/blocks/blocks.ts +130 -64
- package/src/resources/blocks/index.ts +3 -3
- package/src/resources/folders/files.ts +90 -113
- package/src/resources/folders/folders.ts +14 -55
- package/src/resources/folders/index.ts +2 -2
- package/src/resources/groups/groups.ts +21 -102
- package/src/resources/groups/index.ts +2 -4
- package/src/resources/groups/messages.ts +215 -103
- package/src/resources/identities/agents.ts +12 -35
- package/src/resources/identities/blocks.ts +13 -36
- package/src/resources/identities/identities.ts +35 -107
- package/src/resources/identities/index.ts +3 -4
- package/src/resources/identities/properties.ts +1 -1
- package/src/resources/index.ts +55 -18
- package/src/resources/mcp-servers/index.ts +25 -0
- package/src/resources/mcp-servers/mcp-servers.ts +460 -0
- package/src/resources/mcp-servers/tools.ts +69 -0
- package/src/resources/mcp-servers.ts +3 -0
- package/src/resources/models/embeddings.ts +6 -2
- package/src/resources/models/index.ts +2 -0
- package/src/resources/models/models.ts +260 -3
- package/src/resources/runs/index.ts +2 -3
- package/src/resources/runs/messages.ts +18 -37
- package/src/resources/runs/runs.ts +14 -54
- package/src/resources/runs/steps.ts +11 -33
- package/src/resources/steps/index.ts +7 -2
- package/src/resources/steps/messages.ts +25 -35
- package/src/resources/steps/steps.ts +20 -61
- package/src/resources/templates/agents.ts +14 -17
- package/src/resources/tools.ts +8 -92
- package/src/streaming.ts +2 -0
- package/src/version.ts +1 -1
- package/streaming.d.mts +2 -0
- package/streaming.d.mts.map +1 -0
- package/streaming.d.ts +2 -0
- package/streaming.d.ts.map +1 -0
- package/streaming.js +6 -0
- package/streaming.js.map +1 -0
- package/streaming.mjs +2 -0
- package/streaming.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,9 +2,10 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as AgentsAPI from "./agents.mjs";
|
|
3
3
|
import { AgentListParams, AgentListResponse, Agents } from "./agents.mjs";
|
|
4
4
|
import * as FilesAPI from "./files.mjs";
|
|
5
|
-
import { FileDeleteParams, FileListParams, FileListResponse, FileUploadParams, FileUploadResponse, Files } from "./files.mjs";
|
|
5
|
+
import { FileDeleteParams, FileListParams, FileListResponse, FileListResponsesArrayPage, FileUploadParams, FileUploadResponse, Files } from "./files.mjs";
|
|
6
6
|
import * as ModelsAPI from "../models/models.mjs";
|
|
7
7
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
8
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
8
9
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
9
10
|
export declare class Folders extends APIResource {
|
|
10
11
|
files: FilesAPI.Files;
|
|
@@ -24,26 +25,21 @@ export declare class Folders extends APIResource {
|
|
|
24
25
|
/**
|
|
25
26
|
* List all data folders created by a user.
|
|
26
27
|
*/
|
|
27
|
-
list(query?: FolderListParams | null | undefined, options?: RequestOptions):
|
|
28
|
+
list(query?: FolderListParams | null | undefined, options?: RequestOptions): PagePromise<FoldersArrayPage, Folder>;
|
|
28
29
|
/**
|
|
29
30
|
* Delete a data folder.
|
|
30
31
|
*/
|
|
31
32
|
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
33
|
}
|
|
34
|
+
export type FoldersArrayPage = ArrayPage<Folder>;
|
|
37
35
|
/**
|
|
38
36
|
* 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
37
|
*/
|
|
46
38
|
export interface Folder {
|
|
39
|
+
/**
|
|
40
|
+
* The human-friendly ID of the Source
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
47
43
|
/**
|
|
48
44
|
* The embedding configuration used by the folder.
|
|
49
45
|
*/
|
|
@@ -52,10 +48,6 @@ export interface Folder {
|
|
|
52
48
|
* The name of the folder.
|
|
53
49
|
*/
|
|
54
50
|
name: string;
|
|
55
|
-
/**
|
|
56
|
-
* The human-friendly ID of the Source
|
|
57
|
-
*/
|
|
58
|
-
id?: string;
|
|
59
51
|
/**
|
|
60
52
|
* The timestamp when the folder was created.
|
|
61
53
|
*/
|
|
@@ -87,9 +79,7 @@ export interface Folder {
|
|
|
87
79
|
*/
|
|
88
80
|
updated_at?: string | null;
|
|
89
81
|
}
|
|
90
|
-
export type FolderListResponse = Array<Folder>;
|
|
91
82
|
export type FolderDeleteResponse = unknown;
|
|
92
|
-
export type FolderCountResponse = number;
|
|
93
83
|
export interface FolderCreateParams {
|
|
94
84
|
/**
|
|
95
85
|
* The name of the source.
|
|
@@ -146,38 +136,15 @@ export interface FolderUpdateParams {
|
|
|
146
136
|
*/
|
|
147
137
|
name?: string | null;
|
|
148
138
|
}
|
|
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;
|
|
139
|
+
export interface FolderListParams extends ArrayPageParams {
|
|
164
140
|
/**
|
|
165
141
|
* Folder name to filter by
|
|
166
142
|
*/
|
|
167
143
|
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
144
|
}
|
|
178
145
|
export declare namespace Folders {
|
|
179
|
-
export { type Folder as Folder, type
|
|
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, };
|
|
146
|
+
export { type Folder as Folder, type FolderDeleteResponse as FolderDeleteResponse, type FoldersArrayPage as FoldersArrayPage, type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
|
|
147
|
+
export { Files as Files, type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListResponsesArrayPage as FileListResponsesArrayPage, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
181
148
|
export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
|
|
182
149
|
}
|
|
183
150
|
//# sourceMappingURL=folders.d.mts.map
|
|
@@ -1 +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,EAA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K,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"}
|
|
@@ -2,9 +2,10 @@ import { APIResource } from "../../core/resource.js";
|
|
|
2
2
|
import * as AgentsAPI from "./agents.js";
|
|
3
3
|
import { AgentListParams, AgentListResponse, Agents } from "./agents.js";
|
|
4
4
|
import * as FilesAPI from "./files.js";
|
|
5
|
-
import { FileDeleteParams, FileListParams, FileListResponse, FileUploadParams, FileUploadResponse, Files } from "./files.js";
|
|
5
|
+
import { FileDeleteParams, FileListParams, FileListResponse, FileListResponsesArrayPage, FileUploadParams, FileUploadResponse, Files } from "./files.js";
|
|
6
6
|
import * as ModelsAPI from "../models/models.js";
|
|
7
7
|
import { APIPromise } from "../../core/api-promise.js";
|
|
8
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
|
|
8
9
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
9
10
|
export declare class Folders extends APIResource {
|
|
10
11
|
files: FilesAPI.Files;
|
|
@@ -24,26 +25,21 @@ export declare class Folders extends APIResource {
|
|
|
24
25
|
/**
|
|
25
26
|
* List all data folders created by a user.
|
|
26
27
|
*/
|
|
27
|
-
list(query?: FolderListParams | null | undefined, options?: RequestOptions):
|
|
28
|
+
list(query?: FolderListParams | null | undefined, options?: RequestOptions): PagePromise<FoldersArrayPage, Folder>;
|
|
28
29
|
/**
|
|
29
30
|
* Delete a data folder.
|
|
30
31
|
*/
|
|
31
32
|
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
33
|
}
|
|
34
|
+
export type FoldersArrayPage = ArrayPage<Folder>;
|
|
37
35
|
/**
|
|
38
36
|
* 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
37
|
*/
|
|
46
38
|
export interface Folder {
|
|
39
|
+
/**
|
|
40
|
+
* The human-friendly ID of the Source
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
47
43
|
/**
|
|
48
44
|
* The embedding configuration used by the folder.
|
|
49
45
|
*/
|
|
@@ -52,10 +48,6 @@ export interface Folder {
|
|
|
52
48
|
* The name of the folder.
|
|
53
49
|
*/
|
|
54
50
|
name: string;
|
|
55
|
-
/**
|
|
56
|
-
* The human-friendly ID of the Source
|
|
57
|
-
*/
|
|
58
|
-
id?: string;
|
|
59
51
|
/**
|
|
60
52
|
* The timestamp when the folder was created.
|
|
61
53
|
*/
|
|
@@ -87,9 +79,7 @@ export interface Folder {
|
|
|
87
79
|
*/
|
|
88
80
|
updated_at?: string | null;
|
|
89
81
|
}
|
|
90
|
-
export type FolderListResponse = Array<Folder>;
|
|
91
82
|
export type FolderDeleteResponse = unknown;
|
|
92
|
-
export type FolderCountResponse = number;
|
|
93
83
|
export interface FolderCreateParams {
|
|
94
84
|
/**
|
|
95
85
|
* The name of the source.
|
|
@@ -146,38 +136,15 @@ export interface FolderUpdateParams {
|
|
|
146
136
|
*/
|
|
147
137
|
name?: string | null;
|
|
148
138
|
}
|
|
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;
|
|
139
|
+
export interface FolderListParams extends ArrayPageParams {
|
|
164
140
|
/**
|
|
165
141
|
* Folder name to filter by
|
|
166
142
|
*/
|
|
167
143
|
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
144
|
}
|
|
178
145
|
export declare namespace Folders {
|
|
179
|
-
export { type Folder as Folder, type
|
|
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, };
|
|
146
|
+
export { type Folder as Folder, type FolderDeleteResponse as FolderDeleteResponse, type FoldersArrayPage as FoldersArrayPage, type FolderCreateParams as FolderCreateParams, type FolderUpdateParams as FolderUpdateParams, type FolderListParams as FolderListParams, };
|
|
147
|
+
export { Files as Files, type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListResponsesArrayPage as FileListResponsesArrayPage, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
181
148
|
export { Agents as Agents, type AgentListResponse as AgentListResponse, type AgentListParams as AgentListParams, };
|
|
182
149
|
}
|
|
183
150
|
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAA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MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAKD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,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,0BAA0B,IAAI,0BAA0B,EAC7D,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"}
|
|
@@ -8,6 +8,7 @@ const AgentsAPI = tslib_1.__importStar(require("./agents.js"));
|
|
|
8
8
|
const agents_1 = require("./agents.js");
|
|
9
9
|
const FilesAPI = tslib_1.__importStar(require("./files.js"));
|
|
10
10
|
const files_1 = require("./files.js");
|
|
11
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
11
12
|
const path_1 = require("../../internal/utils/path.js");
|
|
12
13
|
class Folders extends resource_1.APIResource {
|
|
13
14
|
constructor() {
|
|
@@ -37,7 +38,7 @@ class Folders extends resource_1.APIResource {
|
|
|
37
38
|
* List all data folders created by a user.
|
|
38
39
|
*/
|
|
39
40
|
list(query = {}, options) {
|
|
40
|
-
return this._client.
|
|
41
|
+
return this._client.getAPIList('/v1/folders/', (pagination_1.ArrayPage), { query, ...options });
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* Delete a data folder.
|
|
@@ -45,12 +46,6 @@ class Folders extends resource_1.APIResource {
|
|
|
45
46
|
delete(folderID, options) {
|
|
46
47
|
return this._client.delete((0, path_1.path) `/v1/folders/${folderID}`, options);
|
|
47
48
|
}
|
|
48
|
-
/**
|
|
49
|
-
* Count all data folders created by a user.
|
|
50
|
-
*/
|
|
51
|
-
count(options) {
|
|
52
|
-
return this._client.get('/v1/folders/count', options);
|
|
53
|
-
}
|
|
54
49
|
}
|
|
55
50
|
exports.Folders = Folders;
|
|
56
51
|
Folders.Files = files_1.Files;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAsE;AACtE,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAsE;AACtE,6DAAoC;AACpC,sCAQiB;AAGjB,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuChE,CAAC;IArCC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAwB,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,sBAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAzCD,0BAyCC;AAoID,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC;AACtB,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -4,6 +4,7 @@ import * as AgentsAPI from "./agents.mjs";
|
|
|
4
4
|
import { Agents } from "./agents.mjs";
|
|
5
5
|
import * as FilesAPI from "./files.mjs";
|
|
6
6
|
import { Files, } from "./files.mjs";
|
|
7
|
+
import { ArrayPage } from "../../core/pagination.mjs";
|
|
7
8
|
import { path } from "../../internal/utils/path.mjs";
|
|
8
9
|
export class Folders extends APIResource {
|
|
9
10
|
constructor() {
|
|
@@ -33,7 +34,7 @@ export class Folders extends APIResource {
|
|
|
33
34
|
* List all data folders created by a user.
|
|
34
35
|
*/
|
|
35
36
|
list(query = {}, options) {
|
|
36
|
-
return this._client.
|
|
37
|
+
return this._client.getAPIList('/v1/folders/', (ArrayPage), { query, ...options });
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* Delete a data folder.
|
|
@@ -41,12 +42,6 @@ export class Folders extends APIResource {
|
|
|
41
42
|
delete(folderID, options) {
|
|
42
43
|
return this._client.delete(path `/v1/folders/${folderID}`, options);
|
|
43
44
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Count all data folders created by a user.
|
|
46
|
-
*/
|
|
47
|
-
count(options) {
|
|
48
|
-
return this._client.get('/v1/folders/count', options);
|
|
49
|
-
}
|
|
50
45
|
}
|
|
51
46
|
Folders.Files = Files;
|
|
52
47
|
Folders.Agents = Agents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;OAC9C,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/folders/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAsC,MAAM,EAAE;OAC9C,KAAK,QAAQ;OACb,EAOL,KAAK,GACN;OAGM,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuChE,CAAC;IArCC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAwB,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,SAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAoID,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;AACtB,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Agents, type AgentListResponse, type AgentListParams } from "./agents.mjs";
|
|
2
|
-
export { Files, type FileListResponse, type FileUploadResponse, type FileListParams, type FileDeleteParams, type FileUploadParams, } from "./files.mjs";
|
|
3
|
-
export { Folders, type Folder, type
|
|
2
|
+
export { Files, type FileListResponse, type FileUploadResponse, type FileListParams, type FileDeleteParams, type FileUploadParams, type FileListResponsesArrayPage, } from "./files.mjs";
|
|
3
|
+
export { Folders, type Folder, type FolderDeleteResponse, type FolderCreateParams, type FolderUpdateParams, type FolderListParams, type FoldersArrayPage, } from "./folders.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,GAChC;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Agents, type AgentListResponse, type AgentListParams } from "./agents.js";
|
|
2
|
-
export { Files, type FileListResponse, type FileUploadResponse, type FileListParams, type FileDeleteParams, type FileUploadParams, } from "./files.js";
|
|
3
|
-
export { Folders, type Folder, type
|
|
2
|
+
export { Files, type FileListResponse, type FileUploadResponse, type FileListParams, type FileDeleteParams, type FileUploadParams, type FileListResponsesArrayPage, } from "./files.js";
|
|
3
|
+
export { Folders, type Folder, type FolderDeleteResponse, type FolderCreateParams, type FolderUpdateParams, type FolderListParams, type FoldersArrayPage, } from "./folders.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE;OACxD,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,GAChC;OACM,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAgF;AAAvE,gGAAA,MAAM,OAAA;AACf,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAgD;OACxD,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/folders/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAgD;OACxD,EACL,KAAK,GAON;OACM,EACL,OAAO,GAOR"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as MessagesAPI from "./messages.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { MessageCreateParams, MessageListParams, MessageResetResponse, MessageStreamParams, MessageStreamResponse, MessageUpdateParams, MessageUpdateResponse, Messages } from "./messages.mjs";
|
|
4
4
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
5
6
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
7
|
export declare class Groups extends APIResource {
|
|
7
8
|
messages: MessagesAPI.Messages;
|
|
8
9
|
/**
|
|
9
10
|
* Create a new multi-agent group with the specified configuration.
|
|
10
11
|
*/
|
|
11
|
-
create(
|
|
12
|
+
create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group>;
|
|
12
13
|
/**
|
|
13
14
|
* Retrieve the group by id.
|
|
14
15
|
*/
|
|
@@ -16,20 +17,17 @@ export declare class Groups extends APIResource {
|
|
|
16
17
|
/**
|
|
17
18
|
* Create a new multi-agent group with the specified configuration.
|
|
18
19
|
*/
|
|
19
|
-
update(groupID: string,
|
|
20
|
+
update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<Group>;
|
|
20
21
|
/**
|
|
21
22
|
* Fetch all multi-agent groups matching query.
|
|
22
23
|
*/
|
|
23
|
-
list(query?: GroupListParams | null | undefined, options?: RequestOptions):
|
|
24
|
+
list(query?: GroupListParams | null | undefined, options?: RequestOptions): PagePromise<GroupsArrayPage, Group>;
|
|
24
25
|
/**
|
|
25
26
|
* Delete a multi-agent group.
|
|
26
27
|
*/
|
|
27
28
|
delete(groupID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
28
|
-
/**
|
|
29
|
-
* Get the count of all groups associated with a given user.
|
|
30
|
-
*/
|
|
31
|
-
count(options?: RequestOptions): APIPromise<GroupCountResponse>;
|
|
32
29
|
}
|
|
30
|
+
export type GroupsArrayPage = ArrayPage<Group>;
|
|
33
31
|
export interface DynamicManager {
|
|
34
32
|
manager_agent_id: string;
|
|
35
33
|
manager_type?: 'dynamic';
|
|
@@ -74,6 +72,9 @@ export interface Group {
|
|
|
74
72
|
* The associated project id.
|
|
75
73
|
*/
|
|
76
74
|
project_id?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated
|
|
77
|
+
*/
|
|
77
78
|
shared_block_ids?: Array<string>;
|
|
78
79
|
sleeptime_agent_frequency?: number | null;
|
|
79
80
|
/**
|
|
@@ -112,64 +113,36 @@ export interface VoiceSleeptimeManager {
|
|
|
112
113
|
*/
|
|
113
114
|
min_message_buffer_length?: number | null;
|
|
114
115
|
}
|
|
115
|
-
export type GroupListResponse = Array<Group>;
|
|
116
116
|
export type GroupDeleteResponse = unknown;
|
|
117
|
-
export type GroupCountResponse = number;
|
|
118
117
|
export interface GroupCreateParams {
|
|
119
|
-
/**
|
|
120
|
-
* Body param:
|
|
121
|
-
*/
|
|
122
118
|
agent_ids: Array<string>;
|
|
123
|
-
/**
|
|
124
|
-
* Body param:
|
|
125
|
-
*/
|
|
126
119
|
description: string;
|
|
127
120
|
/**
|
|
128
|
-
*
|
|
121
|
+
* If set to True, the group will be hidden.
|
|
129
122
|
*/
|
|
130
123
|
hidden?: boolean | null;
|
|
131
|
-
/**
|
|
132
|
-
* Body param:
|
|
133
|
-
*/
|
|
134
124
|
manager_config?: RoundRobinManager | SupervisorManager | DynamicManager | SleeptimeManager | VoiceSleeptimeManager;
|
|
135
125
|
/**
|
|
136
|
-
*
|
|
126
|
+
* The associated project id.
|
|
137
127
|
*/
|
|
138
128
|
project_id?: string | null;
|
|
139
129
|
/**
|
|
140
|
-
*
|
|
130
|
+
* @deprecated
|
|
141
131
|
*/
|
|
142
132
|
shared_block_ids?: Array<string>;
|
|
143
|
-
/**
|
|
144
|
-
* Header param: The project slug to associate with the group (cloud only).
|
|
145
|
-
*/
|
|
146
|
-
'X-Project'?: string;
|
|
147
133
|
}
|
|
148
134
|
export interface GroupUpdateParams {
|
|
149
|
-
/**
|
|
150
|
-
* Body param:
|
|
151
|
-
*/
|
|
152
135
|
agent_ids?: Array<string> | null;
|
|
153
|
-
/**
|
|
154
|
-
* Body param:
|
|
155
|
-
*/
|
|
156
136
|
description?: string | null;
|
|
157
|
-
/**
|
|
158
|
-
* Body param:
|
|
159
|
-
*/
|
|
160
137
|
manager_config?: GroupUpdateParams.RoundRobinManagerUpdate | GroupUpdateParams.SupervisorManagerUpdate | GroupUpdateParams.DynamicManagerUpdate | GroupUpdateParams.SleeptimeManagerUpdate | GroupUpdateParams.VoiceSleeptimeManagerUpdate | null;
|
|
161
138
|
/**
|
|
162
|
-
*
|
|
139
|
+
* The associated project id.
|
|
163
140
|
*/
|
|
164
141
|
project_id?: string | null;
|
|
165
142
|
/**
|
|
166
|
-
*
|
|
143
|
+
* @deprecated
|
|
167
144
|
*/
|
|
168
145
|
shared_block_ids?: Array<string> | null;
|
|
169
|
-
/**
|
|
170
|
-
* Header param: The project slug to associate with the group (cloud only).
|
|
171
|
-
*/
|
|
172
|
-
'X-Project'?: string;
|
|
173
146
|
}
|
|
174
147
|
export declare namespace GroupUpdateParams {
|
|
175
148
|
interface RoundRobinManagerUpdate {
|
|
@@ -207,41 +180,18 @@ export declare namespace GroupUpdateParams {
|
|
|
207
180
|
min_message_buffer_length?: number | null;
|
|
208
181
|
}
|
|
209
182
|
}
|
|
210
|
-
export interface GroupListParams {
|
|
211
|
-
/**
|
|
212
|
-
* Group ID cursor for pagination. Returns groups that come after this group ID in
|
|
213
|
-
* the specified sort order
|
|
214
|
-
*/
|
|
215
|
-
after?: string | null;
|
|
216
|
-
/**
|
|
217
|
-
* Group ID cursor for pagination. Returns groups that come before this group ID in
|
|
218
|
-
* the specified sort order
|
|
219
|
-
*/
|
|
220
|
-
before?: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* Maximum number of groups to return
|
|
223
|
-
*/
|
|
224
|
-
limit?: number | null;
|
|
183
|
+
export interface GroupListParams extends ArrayPageParams {
|
|
225
184
|
/**
|
|
226
185
|
* Search groups by manager type
|
|
227
186
|
*/
|
|
228
187
|
manager_type?: ManagerType | null;
|
|
229
|
-
/**
|
|
230
|
-
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for
|
|
231
|
-
* newest first
|
|
232
|
-
*/
|
|
233
|
-
order?: 'asc' | 'desc';
|
|
234
|
-
/**
|
|
235
|
-
* Field to sort by
|
|
236
|
-
*/
|
|
237
|
-
order_by?: 'created_at';
|
|
238
188
|
/**
|
|
239
189
|
* Search groups by project id
|
|
240
190
|
*/
|
|
241
191
|
project_id?: string | null;
|
|
242
192
|
}
|
|
243
193
|
export declare namespace Groups {
|
|
244
|
-
export { type DynamicManager as DynamicManager, type Group as Group, type ManagerType as ManagerType, type RoundRobinManager as RoundRobinManager, type SleeptimeManager as SleeptimeManager, type SupervisorManager as SupervisorManager, type VoiceSleeptimeManager as VoiceSleeptimeManager, type
|
|
245
|
-
export { Messages as Messages, type MessageUpdateResponse as MessageUpdateResponse, type
|
|
194
|
+
export { type DynamicManager as DynamicManager, type Group as Group, type ManagerType as ManagerType, type RoundRobinManager as RoundRobinManager, type SleeptimeManager as SleeptimeManager, type SupervisorManager as SupervisorManager, type VoiceSleeptimeManager as VoiceSleeptimeManager, type GroupDeleteResponse as GroupDeleteResponse, type GroupsArrayPage as GroupsArrayPage, type GroupCreateParams as GroupCreateParams, type GroupUpdateParams as GroupUpdateParams, type GroupListParams as GroupListParams, };
|
|
195
|
+
export { Messages as Messages, type MessageUpdateResponse as MessageUpdateResponse, type MessageResetResponse as MessageResetResponse, type MessageStreamResponse as MessageStreamResponse, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageStreamParams as MessageStreamParams, };
|
|
246
196
|
}
|
|
247
197
|
//# sourceMappingURL=groups.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/groups/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/groups/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI5E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAItE;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAI7F;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,eAAe,EAAE,KAAK,CAAC;IAItC;;OAEG;IACH,M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