@letta-ai/letta-client 1.0.0-alpha.7 → 1.0.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 +239 -0
- package/README.md +20 -71
- 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 +642 -422
- package/resources/agents/messages.d.mts.map +1 -1
- package/resources/agents/messages.d.ts +642 -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/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 +911 -552
- 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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,sCASkB;AARhB,gGAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/blocks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAwB;OAChC,EACL,MAAM,GAQP"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
3
4
|
import { type Uploadable } from "../../core/uploads.mjs";
|
|
4
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
6
|
export declare class Files extends APIResource {
|
|
6
7
|
/**
|
|
7
8
|
* List paginated files associated with a data folder.
|
|
8
9
|
*/
|
|
9
|
-
list(folderID: string, query?: FileListParams | null | undefined, options?: RequestOptions):
|
|
10
|
+
list(folderID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FileListResponsesArrayPage, FileListResponse>;
|
|
10
11
|
/**
|
|
11
12
|
* Delete a file from a folder.
|
|
12
13
|
*/
|
|
@@ -16,92 +17,20 @@ export declare class Files extends APIResource {
|
|
|
16
17
|
*/
|
|
17
18
|
upload(folderID: string, params: FileUploadParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
|
|
18
19
|
}
|
|
19
|
-
export type
|
|
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
|
-
}
|
|
20
|
+
export type FileListResponsesArrayPage = ArrayPage<FileListResponse>;
|
|
93
21
|
/**
|
|
94
22
|
* Representation of a single FileMetadata
|
|
95
23
|
*/
|
|
96
|
-
export interface
|
|
24
|
+
export interface FileListResponse {
|
|
97
25
|
/**
|
|
98
|
-
* The
|
|
26
|
+
* The human-friendly ID of the File
|
|
99
27
|
*/
|
|
100
|
-
|
|
28
|
+
id: string;
|
|
101
29
|
/**
|
|
102
|
-
* The
|
|
30
|
+
* @deprecated Deprecated: Use `folder_id` field instead. The unique identifier of
|
|
31
|
+
* the source associated with the document.
|
|
103
32
|
*/
|
|
104
|
-
|
|
33
|
+
source_id: string;
|
|
105
34
|
/**
|
|
106
35
|
* Number of chunks that have been embedded.
|
|
107
36
|
*/
|
|
@@ -161,34 +90,83 @@ export interface FileUploadResponse {
|
|
|
161
90
|
*/
|
|
162
91
|
updated_at?: string | null;
|
|
163
92
|
}
|
|
164
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Representation of a single FileMetadata
|
|
95
|
+
*/
|
|
96
|
+
export interface FileUploadResponse {
|
|
165
97
|
/**
|
|
166
|
-
*
|
|
167
|
-
* specified sort order
|
|
98
|
+
* The human-friendly ID of the File
|
|
168
99
|
*/
|
|
169
|
-
|
|
100
|
+
id: string;
|
|
170
101
|
/**
|
|
171
|
-
*
|
|
172
|
-
* the
|
|
102
|
+
* @deprecated Deprecated: Use `folder_id` field instead. The unique identifier of
|
|
103
|
+
* the source associated with the document.
|
|
173
104
|
*/
|
|
174
|
-
|
|
105
|
+
source_id: string;
|
|
175
106
|
/**
|
|
176
|
-
*
|
|
107
|
+
* Number of chunks that have been embedded.
|
|
177
108
|
*/
|
|
178
|
-
|
|
109
|
+
chunks_embedded?: number | null;
|
|
179
110
|
/**
|
|
180
|
-
*
|
|
111
|
+
* Optional full-text content of the file; only populated on demand due to its
|
|
112
|
+
* size.
|
|
181
113
|
*/
|
|
182
|
-
|
|
114
|
+
content?: string | null;
|
|
183
115
|
/**
|
|
184
|
-
*
|
|
185
|
-
* first
|
|
116
|
+
* The creation date of the file.
|
|
186
117
|
*/
|
|
187
|
-
|
|
118
|
+
created_at?: string | null;
|
|
188
119
|
/**
|
|
189
|
-
*
|
|
120
|
+
* Optional error message if the file failed processing.
|
|
190
121
|
*/
|
|
191
|
-
|
|
122
|
+
error_message?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* The creation date of the file.
|
|
125
|
+
*/
|
|
126
|
+
file_creation_date?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* The last modified date of the file.
|
|
129
|
+
*/
|
|
130
|
+
file_last_modified_date?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* The name of the file.
|
|
133
|
+
*/
|
|
134
|
+
file_name?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* The path to the file.
|
|
137
|
+
*/
|
|
138
|
+
file_path?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The size of the file in bytes.
|
|
141
|
+
*/
|
|
142
|
+
file_size?: number | null;
|
|
143
|
+
/**
|
|
144
|
+
* The type of the file (MIME type).
|
|
145
|
+
*/
|
|
146
|
+
file_type?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* The original name of the file as uploaded.
|
|
149
|
+
*/
|
|
150
|
+
original_file_name?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The current processing status of the file (e.g. pending, parsing, embedding,
|
|
153
|
+
* completed, error).
|
|
154
|
+
*/
|
|
155
|
+
processing_status?: 'pending' | 'parsing' | 'embedding' | 'completed' | 'error';
|
|
156
|
+
/**
|
|
157
|
+
* Total number of chunks for the file.
|
|
158
|
+
*/
|
|
159
|
+
total_chunks?: number | null;
|
|
160
|
+
/**
|
|
161
|
+
* The update date of the file.
|
|
162
|
+
*/
|
|
163
|
+
updated_at?: string | null;
|
|
164
|
+
}
|
|
165
|
+
export interface FileListParams extends ArrayPageParams {
|
|
166
|
+
/**
|
|
167
|
+
* Whether to include full file content
|
|
168
|
+
*/
|
|
169
|
+
include_content?: boolean;
|
|
192
170
|
}
|
|
193
171
|
export interface FileDeleteParams {
|
|
194
172
|
/**
|
|
@@ -211,6 +189,6 @@ export interface FileUploadParams {
|
|
|
211
189
|
name?: string | null;
|
|
212
190
|
}
|
|
213
191
|
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, };
|
|
192
|
+
export { type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListResponsesArrayPage as FileListResponsesArrayPage, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
215
193
|
}
|
|
216
194
|
//# sourceMappingURL=files.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.mts","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,cAAc,GACvB,
|
|
1
|
+
{"version":3,"file":"files.d.mts","sourceRoot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;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;IAEhF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;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,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
|
|
3
4
|
import { type Uploadable } from "../../core/uploads.js";
|
|
4
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
6
|
export declare class Files extends APIResource {
|
|
6
7
|
/**
|
|
7
8
|
* List paginated files associated with a data folder.
|
|
8
9
|
*/
|
|
9
|
-
list(folderID: string, query?: FileListParams | null | undefined, options?: RequestOptions):
|
|
10
|
+
list(folderID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<FileListResponsesArrayPage, FileListResponse>;
|
|
10
11
|
/**
|
|
11
12
|
* Delete a file from a folder.
|
|
12
13
|
*/
|
|
@@ -16,92 +17,20 @@ export declare class Files extends APIResource {
|
|
|
16
17
|
*/
|
|
17
18
|
upload(folderID: string, params: FileUploadParams, options?: RequestOptions): APIPromise<FileUploadResponse>;
|
|
18
19
|
}
|
|
19
|
-
export type
|
|
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
|
-
}
|
|
20
|
+
export type FileListResponsesArrayPage = ArrayPage<FileListResponse>;
|
|
93
21
|
/**
|
|
94
22
|
* Representation of a single FileMetadata
|
|
95
23
|
*/
|
|
96
|
-
export interface
|
|
24
|
+
export interface FileListResponse {
|
|
97
25
|
/**
|
|
98
|
-
* The
|
|
26
|
+
* The human-friendly ID of the File
|
|
99
27
|
*/
|
|
100
|
-
|
|
28
|
+
id: string;
|
|
101
29
|
/**
|
|
102
|
-
* The
|
|
30
|
+
* @deprecated Deprecated: Use `folder_id` field instead. The unique identifier of
|
|
31
|
+
* the source associated with the document.
|
|
103
32
|
*/
|
|
104
|
-
|
|
33
|
+
source_id: string;
|
|
105
34
|
/**
|
|
106
35
|
* Number of chunks that have been embedded.
|
|
107
36
|
*/
|
|
@@ -161,34 +90,83 @@ export interface FileUploadResponse {
|
|
|
161
90
|
*/
|
|
162
91
|
updated_at?: string | null;
|
|
163
92
|
}
|
|
164
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Representation of a single FileMetadata
|
|
95
|
+
*/
|
|
96
|
+
export interface FileUploadResponse {
|
|
165
97
|
/**
|
|
166
|
-
*
|
|
167
|
-
* specified sort order
|
|
98
|
+
* The human-friendly ID of the File
|
|
168
99
|
*/
|
|
169
|
-
|
|
100
|
+
id: string;
|
|
170
101
|
/**
|
|
171
|
-
*
|
|
172
|
-
* the
|
|
102
|
+
* @deprecated Deprecated: Use `folder_id` field instead. The unique identifier of
|
|
103
|
+
* the source associated with the document.
|
|
173
104
|
*/
|
|
174
|
-
|
|
105
|
+
source_id: string;
|
|
175
106
|
/**
|
|
176
|
-
*
|
|
107
|
+
* Number of chunks that have been embedded.
|
|
177
108
|
*/
|
|
178
|
-
|
|
109
|
+
chunks_embedded?: number | null;
|
|
179
110
|
/**
|
|
180
|
-
*
|
|
111
|
+
* Optional full-text content of the file; only populated on demand due to its
|
|
112
|
+
* size.
|
|
181
113
|
*/
|
|
182
|
-
|
|
114
|
+
content?: string | null;
|
|
183
115
|
/**
|
|
184
|
-
*
|
|
185
|
-
* first
|
|
116
|
+
* The creation date of the file.
|
|
186
117
|
*/
|
|
187
|
-
|
|
118
|
+
created_at?: string | null;
|
|
188
119
|
/**
|
|
189
|
-
*
|
|
120
|
+
* Optional error message if the file failed processing.
|
|
190
121
|
*/
|
|
191
|
-
|
|
122
|
+
error_message?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* The creation date of the file.
|
|
125
|
+
*/
|
|
126
|
+
file_creation_date?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* The last modified date of the file.
|
|
129
|
+
*/
|
|
130
|
+
file_last_modified_date?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* The name of the file.
|
|
133
|
+
*/
|
|
134
|
+
file_name?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* The path to the file.
|
|
137
|
+
*/
|
|
138
|
+
file_path?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* The size of the file in bytes.
|
|
141
|
+
*/
|
|
142
|
+
file_size?: number | null;
|
|
143
|
+
/**
|
|
144
|
+
* The type of the file (MIME type).
|
|
145
|
+
*/
|
|
146
|
+
file_type?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* The original name of the file as uploaded.
|
|
149
|
+
*/
|
|
150
|
+
original_file_name?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The current processing status of the file (e.g. pending, parsing, embedding,
|
|
153
|
+
* completed, error).
|
|
154
|
+
*/
|
|
155
|
+
processing_status?: 'pending' | 'parsing' | 'embedding' | 'completed' | 'error';
|
|
156
|
+
/**
|
|
157
|
+
* Total number of chunks for the file.
|
|
158
|
+
*/
|
|
159
|
+
total_chunks?: number | null;
|
|
160
|
+
/**
|
|
161
|
+
* The update date of the file.
|
|
162
|
+
*/
|
|
163
|
+
updated_at?: string | null;
|
|
164
|
+
}
|
|
165
|
+
export interface FileListParams extends ArrayPageParams {
|
|
166
|
+
/**
|
|
167
|
+
* Whether to include full file content
|
|
168
|
+
*/
|
|
169
|
+
include_content?: boolean;
|
|
192
170
|
}
|
|
193
171
|
export interface FileDeleteParams {
|
|
194
172
|
/**
|
|
@@ -211,6 +189,6 @@ export interface FileUploadParams {
|
|
|
211
189
|
name?: string | null;
|
|
212
190
|
}
|
|
213
191
|
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, };
|
|
192
|
+
export { type FileListResponse as FileListResponse, type FileUploadResponse as FileUploadResponse, type FileListResponsesArrayPage as FileListResponsesArrayPage, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileUploadParams as FileUploadParams, };
|
|
215
193
|
}
|
|
216
194
|
//# sourceMappingURL=files.d.ts.map
|
|
@@ -1 +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,cAAc,GACvB,
|
|
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,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,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,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;IAO5D;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ5F;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAOlC;AAED,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;AAErE;;GAEG;AACH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O,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,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;CACH"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Files = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../../internal/headers.js");
|
|
7
8
|
const uploads_1 = require("../../internal/uploads.js");
|
|
8
9
|
const path_1 = require("../../internal/utils/path.js");
|
|
@@ -11,7 +12,10 @@ class Files extends resource_1.APIResource {
|
|
|
11
12
|
* List paginated files associated with a data folder.
|
|
12
13
|
*/
|
|
13
14
|
list(folderID, query = {}, options) {
|
|
14
|
-
return this._client.
|
|
15
|
+
return this._client.getAPIList((0, path_1.path) `/v1/folders/${folderID}/files`, (pagination_1.ArrayPage), {
|
|
16
|
+
query,
|
|
17
|
+
...options,
|
|
18
|
+
});
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
17
21
|
* Delete a file from a folder.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAqF;AAErF,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,UAAU,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,QAAQ,EAAE,CAAA,sBAA2B,CAAA,EAAE;YAC/F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,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;AAxCD,sBAwCC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { ArrayPage } from "../../core/pagination.mjs";
|
|
3
4
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
5
|
import { multipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
5
6
|
import { path } from "../../internal/utils/path.mjs";
|
|
@@ -8,7 +9,10 @@ export class Files extends APIResource {
|
|
|
8
9
|
* List paginated files associated with a data folder.
|
|
9
10
|
*/
|
|
10
11
|
list(folderID, query = {}, options) {
|
|
11
|
-
return this._client.
|
|
12
|
+
return this._client.getAPIList(path `/v1/folders/${folderID}/files`, (ArrayPage), {
|
|
13
|
+
query,
|
|
14
|
+
...options,
|
|
15
|
+
});
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* Delete a file from a folder.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"files.mjs","sourceRoot":"","sources":["../../src/resources/folders/files.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,SAAS,EAAqC;OAEhD,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,UAAU,CAAC,IAAI,CAAA,eAAe,QAAQ,QAAQ,EAAE,CAAA,SAA2B,CAAA,EAAE;YAC/F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,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,YAA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