@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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as AgentsAPI from "./agents.mjs";
|
|
3
|
-
import { AgentListParams,
|
|
3
|
+
import { AgentListParams, Agents } from "./agents.mjs";
|
|
4
4
|
import * as BlocksAPI from "./blocks.mjs";
|
|
5
|
-
import { BlockListParams,
|
|
5
|
+
import { BlockListParams, Blocks } from "./blocks.mjs";
|
|
6
6
|
import * as PropertiesAPI from "./properties.mjs";
|
|
7
7
|
import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from "./properties.mjs";
|
|
8
8
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
9
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
9
10
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
10
11
|
export declare class Identities extends APIResource {
|
|
11
12
|
properties: PropertiesAPI.Properties;
|
|
@@ -14,33 +15,34 @@ export declare class Identities extends APIResource {
|
|
|
14
15
|
/**
|
|
15
16
|
* Create Identity
|
|
16
17
|
*/
|
|
17
|
-
create(
|
|
18
|
+
create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
|
|
18
19
|
/**
|
|
19
20
|
* Retrieve Identity
|
|
20
21
|
*/
|
|
21
22
|
retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity>;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* Update Identity
|
|
24
25
|
*/
|
|
25
26
|
update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity>;
|
|
26
27
|
/**
|
|
27
28
|
* Get a list of all identities in the database
|
|
28
29
|
*/
|
|
29
|
-
list(query?: IdentityListParams | null | undefined, options?: RequestOptions):
|
|
30
|
+
list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesArrayPage, Identity>;
|
|
30
31
|
/**
|
|
31
32
|
* Delete an identity by its identifier key
|
|
32
33
|
*/
|
|
33
34
|
delete(identityID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Get count of all identities for a user
|
|
36
|
-
*/
|
|
37
|
-
count(options?: RequestOptions): APIPromise<IdentityCountResponse>;
|
|
38
35
|
/**
|
|
39
36
|
* Upsert Identity
|
|
40
37
|
*/
|
|
41
|
-
upsert(
|
|
38
|
+
upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
|
|
42
39
|
}
|
|
40
|
+
export type IdentitiesArrayPage = ArrayPage<Identity>;
|
|
43
41
|
export interface Identity {
|
|
42
|
+
/**
|
|
43
|
+
* The human-friendly ID of the Identity
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
44
46
|
/**
|
|
45
47
|
* @deprecated The IDs of the agents associated with the identity.
|
|
46
48
|
*/
|
|
@@ -61,10 +63,6 @@ export interface Identity {
|
|
|
61
63
|
* The name of the identity.
|
|
62
64
|
*/
|
|
63
65
|
name: string;
|
|
64
|
-
/**
|
|
65
|
-
* The human-friendly ID of the Identity
|
|
66
|
-
*/
|
|
67
|
-
id?: string;
|
|
68
66
|
/**
|
|
69
67
|
* The project id of the identity, if applicable.
|
|
70
68
|
*/
|
|
@@ -97,42 +95,36 @@ export interface IdentityProperty {
|
|
|
97
95
|
* Enum to represent the type of the identity.
|
|
98
96
|
*/
|
|
99
97
|
export type IdentityType = 'org' | 'user' | 'other';
|
|
100
|
-
export type IdentityListResponse = Array<Identity>;
|
|
101
98
|
export type IdentityDeleteResponse = unknown;
|
|
102
|
-
export type IdentityCountResponse = number;
|
|
103
99
|
export interface IdentityCreateParams {
|
|
104
100
|
/**
|
|
105
|
-
*
|
|
101
|
+
* External, user-generated identifier key of the identity.
|
|
106
102
|
*/
|
|
107
103
|
identifier_key: string;
|
|
108
104
|
/**
|
|
109
|
-
*
|
|
105
|
+
* The type of the identity.
|
|
110
106
|
*/
|
|
111
107
|
identity_type: IdentityType;
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
109
|
+
* The name of the identity.
|
|
114
110
|
*/
|
|
115
111
|
name: string;
|
|
116
112
|
/**
|
|
117
|
-
* @deprecated
|
|
113
|
+
* @deprecated The agent ids that are associated with the identity.
|
|
118
114
|
*/
|
|
119
115
|
agent_ids?: Array<string> | null;
|
|
120
116
|
/**
|
|
121
|
-
* @deprecated
|
|
117
|
+
* @deprecated The IDs of the blocks associated with the identity.
|
|
122
118
|
*/
|
|
123
119
|
block_ids?: Array<string> | null;
|
|
124
120
|
/**
|
|
125
|
-
*
|
|
121
|
+
* The project id of the identity, if applicable.
|
|
126
122
|
*/
|
|
127
123
|
project_id?: string | null;
|
|
128
124
|
/**
|
|
129
|
-
*
|
|
125
|
+
* List of properties associated with the identity.
|
|
130
126
|
*/
|
|
131
127
|
properties?: Array<IdentityProperty> | null;
|
|
132
|
-
/**
|
|
133
|
-
* Header param: The project slug to associate with the identity (cloud only).
|
|
134
|
-
*/
|
|
135
|
-
'X-Project'?: string;
|
|
136
128
|
}
|
|
137
129
|
export interface IdentityUpdateParams {
|
|
138
130
|
/**
|
|
@@ -160,76 +152,49 @@ export interface IdentityUpdateParams {
|
|
|
160
152
|
*/
|
|
161
153
|
properties?: Array<IdentityProperty> | null;
|
|
162
154
|
}
|
|
163
|
-
export interface IdentityListParams {
|
|
164
|
-
/**
|
|
165
|
-
* Identity ID cursor for pagination. Returns identities that come after this
|
|
166
|
-
* identity ID in the specified sort order
|
|
167
|
-
*/
|
|
168
|
-
after?: string | null;
|
|
169
|
-
/**
|
|
170
|
-
* Identity ID cursor for pagination. Returns identities that come before this
|
|
171
|
-
* identity ID in the specified sort order
|
|
172
|
-
*/
|
|
173
|
-
before?: string | null;
|
|
155
|
+
export interface IdentityListParams extends ArrayPageParams {
|
|
174
156
|
identifier_key?: string | null;
|
|
175
157
|
/**
|
|
176
158
|
* Enum to represent the type of the identity.
|
|
177
159
|
*/
|
|
178
160
|
identity_type?: IdentityType | null;
|
|
179
|
-
/**
|
|
180
|
-
* Maximum number of identities to return
|
|
181
|
-
*/
|
|
182
|
-
limit?: number | null;
|
|
183
161
|
name?: string | null;
|
|
184
|
-
/**
|
|
185
|
-
* Sort order for identities by creation time. 'asc' for oldest first, 'desc' for
|
|
186
|
-
* newest first
|
|
187
|
-
*/
|
|
188
|
-
order?: 'asc' | 'desc';
|
|
189
|
-
/**
|
|
190
|
-
* Field to sort by
|
|
191
|
-
*/
|
|
192
|
-
order_by?: 'created_at';
|
|
193
162
|
project_id?: string | null;
|
|
194
163
|
}
|
|
195
164
|
export interface IdentityUpsertParams {
|
|
196
165
|
/**
|
|
197
|
-
*
|
|
166
|
+
* External, user-generated identifier key of the identity.
|
|
198
167
|
*/
|
|
199
168
|
identifier_key: string;
|
|
200
169
|
/**
|
|
201
|
-
*
|
|
170
|
+
* The type of the identity.
|
|
202
171
|
*/
|
|
203
172
|
identity_type: IdentityType;
|
|
204
173
|
/**
|
|
205
|
-
*
|
|
174
|
+
* The name of the identity.
|
|
206
175
|
*/
|
|
207
176
|
name: string;
|
|
208
177
|
/**
|
|
209
|
-
* @deprecated
|
|
178
|
+
* @deprecated The agent ids that are associated with the identity.
|
|
210
179
|
*/
|
|
211
180
|
agent_ids?: Array<string> | null;
|
|
212
181
|
/**
|
|
213
|
-
* @deprecated
|
|
182
|
+
* @deprecated The IDs of the blocks associated with the identity.
|
|
214
183
|
*/
|
|
215
184
|
block_ids?: Array<string> | null;
|
|
216
185
|
/**
|
|
217
|
-
*
|
|
186
|
+
* The project id of the identity, if applicable.
|
|
218
187
|
*/
|
|
219
188
|
project_id?: string | null;
|
|
220
189
|
/**
|
|
221
|
-
*
|
|
190
|
+
* List of properties associated with the identity.
|
|
222
191
|
*/
|
|
223
192
|
properties?: Array<IdentityProperty> | null;
|
|
224
|
-
/**
|
|
225
|
-
* Header param: The project slug to associate with the identity (cloud only).
|
|
226
|
-
*/
|
|
227
|
-
'X-Project'?: string;
|
|
228
193
|
}
|
|
229
194
|
export declare namespace Identities {
|
|
230
|
-
export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type
|
|
195
|
+
export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentitiesArrayPage as IdentitiesArrayPage, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
|
|
231
196
|
export { Properties as Properties, type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
|
|
232
|
-
export { Agents as Agents, type
|
|
233
|
-
export { Blocks as Blocks, type
|
|
197
|
+
export { Agents as Agents, type AgentListParams as AgentListParams };
|
|
198
|
+
export { Blocks as Blocks, type BlockListParams as BlockListParams };
|
|
234
199
|
}
|
|
235
200
|
//# sourceMappingURL=identities.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"identities.d.mts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;OAC5D,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAIlF;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAI5E;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE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12 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as AgentsAPI from "./agents.js";
|
|
3
|
-
import { AgentListParams,
|
|
3
|
+
import { AgentListParams, Agents } from "./agents.js";
|
|
4
4
|
import * as BlocksAPI from "./blocks.js";
|
|
5
|
-
import { BlockListParams,
|
|
5
|
+
import { BlockListParams, Blocks } from "./blocks.js";
|
|
6
6
|
import * as PropertiesAPI from "./properties.js";
|
|
7
7
|
import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from "./properties.js";
|
|
8
8
|
import { APIPromise } from "../../core/api-promise.js";
|
|
9
|
+
import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
|
|
9
10
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
10
11
|
export declare class Identities extends APIResource {
|
|
11
12
|
properties: PropertiesAPI.Properties;
|
|
@@ -14,33 +15,34 @@ export declare class Identities extends APIResource {
|
|
|
14
15
|
/**
|
|
15
16
|
* Create Identity
|
|
16
17
|
*/
|
|
17
|
-
create(
|
|
18
|
+
create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity>;
|
|
18
19
|
/**
|
|
19
20
|
* Retrieve Identity
|
|
20
21
|
*/
|
|
21
22
|
retrieve(identityID: string, options?: RequestOptions): APIPromise<Identity>;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* Update Identity
|
|
24
25
|
*/
|
|
25
26
|
update(identityID: string, body: IdentityUpdateParams, options?: RequestOptions): APIPromise<Identity>;
|
|
26
27
|
/**
|
|
27
28
|
* Get a list of all identities in the database
|
|
28
29
|
*/
|
|
29
|
-
list(query?: IdentityListParams | null | undefined, options?: RequestOptions):
|
|
30
|
+
list(query?: IdentityListParams | null | undefined, options?: RequestOptions): PagePromise<IdentitiesArrayPage, Identity>;
|
|
30
31
|
/**
|
|
31
32
|
* Delete an identity by its identifier key
|
|
32
33
|
*/
|
|
33
34
|
delete(identityID: string, options?: RequestOptions): APIPromise<unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Get count of all identities for a user
|
|
36
|
-
*/
|
|
37
|
-
count(options?: RequestOptions): APIPromise<IdentityCountResponse>;
|
|
38
35
|
/**
|
|
39
36
|
* Upsert Identity
|
|
40
37
|
*/
|
|
41
|
-
upsert(
|
|
38
|
+
upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity>;
|
|
42
39
|
}
|
|
40
|
+
export type IdentitiesArrayPage = ArrayPage<Identity>;
|
|
43
41
|
export interface Identity {
|
|
42
|
+
/**
|
|
43
|
+
* The human-friendly ID of the Identity
|
|
44
|
+
*/
|
|
45
|
+
id: string;
|
|
44
46
|
/**
|
|
45
47
|
* @deprecated The IDs of the agents associated with the identity.
|
|
46
48
|
*/
|
|
@@ -61,10 +63,6 @@ export interface Identity {
|
|
|
61
63
|
* The name of the identity.
|
|
62
64
|
*/
|
|
63
65
|
name: string;
|
|
64
|
-
/**
|
|
65
|
-
* The human-friendly ID of the Identity
|
|
66
|
-
*/
|
|
67
|
-
id?: string;
|
|
68
66
|
/**
|
|
69
67
|
* The project id of the identity, if applicable.
|
|
70
68
|
*/
|
|
@@ -97,42 +95,36 @@ export interface IdentityProperty {
|
|
|
97
95
|
* Enum to represent the type of the identity.
|
|
98
96
|
*/
|
|
99
97
|
export type IdentityType = 'org' | 'user' | 'other';
|
|
100
|
-
export type IdentityListResponse = Array<Identity>;
|
|
101
98
|
export type IdentityDeleteResponse = unknown;
|
|
102
|
-
export type IdentityCountResponse = number;
|
|
103
99
|
export interface IdentityCreateParams {
|
|
104
100
|
/**
|
|
105
|
-
*
|
|
101
|
+
* External, user-generated identifier key of the identity.
|
|
106
102
|
*/
|
|
107
103
|
identifier_key: string;
|
|
108
104
|
/**
|
|
109
|
-
*
|
|
105
|
+
* The type of the identity.
|
|
110
106
|
*/
|
|
111
107
|
identity_type: IdentityType;
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
109
|
+
* The name of the identity.
|
|
114
110
|
*/
|
|
115
111
|
name: string;
|
|
116
112
|
/**
|
|
117
|
-
* @deprecated
|
|
113
|
+
* @deprecated The agent ids that are associated with the identity.
|
|
118
114
|
*/
|
|
119
115
|
agent_ids?: Array<string> | null;
|
|
120
116
|
/**
|
|
121
|
-
* @deprecated
|
|
117
|
+
* @deprecated The IDs of the blocks associated with the identity.
|
|
122
118
|
*/
|
|
123
119
|
block_ids?: Array<string> | null;
|
|
124
120
|
/**
|
|
125
|
-
*
|
|
121
|
+
* The project id of the identity, if applicable.
|
|
126
122
|
*/
|
|
127
123
|
project_id?: string | null;
|
|
128
124
|
/**
|
|
129
|
-
*
|
|
125
|
+
* List of properties associated with the identity.
|
|
130
126
|
*/
|
|
131
127
|
properties?: Array<IdentityProperty> | null;
|
|
132
|
-
/**
|
|
133
|
-
* Header param: The project slug to associate with the identity (cloud only).
|
|
134
|
-
*/
|
|
135
|
-
'X-Project'?: string;
|
|
136
128
|
}
|
|
137
129
|
export interface IdentityUpdateParams {
|
|
138
130
|
/**
|
|
@@ -160,76 +152,49 @@ export interface IdentityUpdateParams {
|
|
|
160
152
|
*/
|
|
161
153
|
properties?: Array<IdentityProperty> | null;
|
|
162
154
|
}
|
|
163
|
-
export interface IdentityListParams {
|
|
164
|
-
/**
|
|
165
|
-
* Identity ID cursor for pagination. Returns identities that come after this
|
|
166
|
-
* identity ID in the specified sort order
|
|
167
|
-
*/
|
|
168
|
-
after?: string | null;
|
|
169
|
-
/**
|
|
170
|
-
* Identity ID cursor for pagination. Returns identities that come before this
|
|
171
|
-
* identity ID in the specified sort order
|
|
172
|
-
*/
|
|
173
|
-
before?: string | null;
|
|
155
|
+
export interface IdentityListParams extends ArrayPageParams {
|
|
174
156
|
identifier_key?: string | null;
|
|
175
157
|
/**
|
|
176
158
|
* Enum to represent the type of the identity.
|
|
177
159
|
*/
|
|
178
160
|
identity_type?: IdentityType | null;
|
|
179
|
-
/**
|
|
180
|
-
* Maximum number of identities to return
|
|
181
|
-
*/
|
|
182
|
-
limit?: number | null;
|
|
183
161
|
name?: string | null;
|
|
184
|
-
/**
|
|
185
|
-
* Sort order for identities by creation time. 'asc' for oldest first, 'desc' for
|
|
186
|
-
* newest first
|
|
187
|
-
*/
|
|
188
|
-
order?: 'asc' | 'desc';
|
|
189
|
-
/**
|
|
190
|
-
* Field to sort by
|
|
191
|
-
*/
|
|
192
|
-
order_by?: 'created_at';
|
|
193
162
|
project_id?: string | null;
|
|
194
163
|
}
|
|
195
164
|
export interface IdentityUpsertParams {
|
|
196
165
|
/**
|
|
197
|
-
*
|
|
166
|
+
* External, user-generated identifier key of the identity.
|
|
198
167
|
*/
|
|
199
168
|
identifier_key: string;
|
|
200
169
|
/**
|
|
201
|
-
*
|
|
170
|
+
* The type of the identity.
|
|
202
171
|
*/
|
|
203
172
|
identity_type: IdentityType;
|
|
204
173
|
/**
|
|
205
|
-
*
|
|
174
|
+
* The name of the identity.
|
|
206
175
|
*/
|
|
207
176
|
name: string;
|
|
208
177
|
/**
|
|
209
|
-
* @deprecated
|
|
178
|
+
* @deprecated The agent ids that are associated with the identity.
|
|
210
179
|
*/
|
|
211
180
|
agent_ids?: Array<string> | null;
|
|
212
181
|
/**
|
|
213
|
-
* @deprecated
|
|
182
|
+
* @deprecated The IDs of the blocks associated with the identity.
|
|
214
183
|
*/
|
|
215
184
|
block_ids?: Array<string> | null;
|
|
216
185
|
/**
|
|
217
|
-
*
|
|
186
|
+
* The project id of the identity, if applicable.
|
|
218
187
|
*/
|
|
219
188
|
project_id?: string | null;
|
|
220
189
|
/**
|
|
221
|
-
*
|
|
190
|
+
* List of properties associated with the identity.
|
|
222
191
|
*/
|
|
223
192
|
properties?: Array<IdentityProperty> | null;
|
|
224
|
-
/**
|
|
225
|
-
* Header param: The project slug to associate with the identity (cloud only).
|
|
226
|
-
*/
|
|
227
|
-
'X-Project'?: string;
|
|
228
193
|
}
|
|
229
194
|
export declare namespace Identities {
|
|
230
|
-
export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type
|
|
195
|
+
export { type Identity as Identity, type IdentityProperty as IdentityProperty, type IdentityType as IdentityType, type IdentityDeleteResponse as IdentityDeleteResponse, type IdentitiesArrayPage as IdentitiesArrayPage, type IdentityCreateParams as IdentityCreateParams, type IdentityUpdateParams as IdentityUpdateParams, type IdentityListParams as IdentityListParams, type IdentityUpsertParams as IdentityUpsertParams, };
|
|
231
196
|
export { Properties as Properties, type PropertyUpsertResponse as PropertyUpsertResponse, type PropertyUpsertParams as PropertyUpsertParams, };
|
|
232
|
-
export { Agents as Agents, type
|
|
233
|
-
export { Blocks as Blocks, type
|
|
197
|
+
export { Agents as Agents, type AgentListParams as AgentListParams };
|
|
198
|
+
export { Blocks as Blocks, type BlockListParams as BlockListParams };
|
|
234
199
|
}
|
|
235
200
|
//# sourceMappingURL=identities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"identities.d.ts","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,SAAS;OACd,EAAE,eAAe,EAAE,MAAM,EAAE;OAC3B,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;OAC5D,EAAE,UAAU,EAAE;OACd,EAAE,SAAS,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;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UAAU,IAAI,UAAU,EACxB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAErE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACtE"}
|
|
@@ -10,7 +10,7 @@ const BlocksAPI = tslib_1.__importStar(require("./blocks.js"));
|
|
|
10
10
|
const blocks_1 = require("./blocks.js");
|
|
11
11
|
const PropertiesAPI = tslib_1.__importStar(require("./properties.js"));
|
|
12
12
|
const properties_1 = require("./properties.js");
|
|
13
|
-
const
|
|
13
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
14
14
|
const path_1 = require("../../internal/utils/path.js");
|
|
15
15
|
class Identities extends resource_1.APIResource {
|
|
16
16
|
constructor() {
|
|
@@ -22,16 +22,8 @@ class Identities extends resource_1.APIResource {
|
|
|
22
22
|
/**
|
|
23
23
|
* Create Identity
|
|
24
24
|
*/
|
|
25
|
-
create(
|
|
26
|
-
|
|
27
|
-
return this._client.post('/v1/identities/', {
|
|
28
|
-
body,
|
|
29
|
-
...options,
|
|
30
|
-
headers: (0, headers_1.buildHeaders)([
|
|
31
|
-
{ ...(xProject != null ? { 'X-Project': xProject } : undefined) },
|
|
32
|
-
options?.headers,
|
|
33
|
-
]),
|
|
34
|
-
});
|
|
25
|
+
create(body, options) {
|
|
26
|
+
return this._client.post('/v1/identities/', { body, ...options });
|
|
35
27
|
}
|
|
36
28
|
/**
|
|
37
29
|
* Retrieve Identity
|
|
@@ -40,7 +32,7 @@ class Identities extends resource_1.APIResource {
|
|
|
40
32
|
return this._client.get((0, path_1.path) `/v1/identities/${identityID}`, options);
|
|
41
33
|
}
|
|
42
34
|
/**
|
|
43
|
-
*
|
|
35
|
+
* Update Identity
|
|
44
36
|
*/
|
|
45
37
|
update(identityID, body, options) {
|
|
46
38
|
return this._client.patch((0, path_1.path) `/v1/identities/${identityID}`, { body, ...options });
|
|
@@ -49,7 +41,7 @@ class Identities extends resource_1.APIResource {
|
|
|
49
41
|
* Get a list of all identities in the database
|
|
50
42
|
*/
|
|
51
43
|
list(query = {}, options) {
|
|
52
|
-
return this._client.
|
|
44
|
+
return this._client.getAPIList('/v1/identities/', (pagination_1.ArrayPage), { query, ...options });
|
|
53
45
|
}
|
|
54
46
|
/**
|
|
55
47
|
* Delete an identity by its identifier key
|
|
@@ -57,25 +49,11 @@ class Identities extends resource_1.APIResource {
|
|
|
57
49
|
delete(identityID, options) {
|
|
58
50
|
return this._client.delete((0, path_1.path) `/v1/identities/${identityID}`, options);
|
|
59
51
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Get count of all identities for a user
|
|
62
|
-
*/
|
|
63
|
-
count(options) {
|
|
64
|
-
return this._client.get('/v1/identities/count', options);
|
|
65
|
-
}
|
|
66
52
|
/**
|
|
67
53
|
* Upsert Identity
|
|
68
54
|
*/
|
|
69
|
-
upsert(
|
|
70
|
-
|
|
71
|
-
return this._client.put('/v1/identities/', {
|
|
72
|
-
body,
|
|
73
|
-
...options,
|
|
74
|
-
headers: (0, headers_1.buildHeaders)([
|
|
75
|
-
{ ...(xProject != null ? { 'X-Project': xProject } : undefined) },
|
|
76
|
-
options?.headers,
|
|
77
|
-
]),
|
|
78
|
-
});
|
|
55
|
+
upsert(body, options) {
|
|
56
|
+
return this._client.put('/v1/identities/', { body, ...options });
|
|
79
57
|
}
|
|
80
58
|
}
|
|
81
59
|
exports.Identities = Identities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identities.js","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"identities.js","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":";AAAA,sFAAs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AkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAjDD,gCAiDC;AAgMD,UAAU,CAAC,UAAU,GAAG,uBAAU,CAAC;AACnC,UAAU,CAAC,MAAM,GAAG,eAAM,CAAC;AAC3B,UAAU,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as BlocksAPI from "./blocks.mjs";
|
|
|
6
6
|
import { Blocks } from "./blocks.mjs";
|
|
7
7
|
import * as PropertiesAPI from "./properties.mjs";
|
|
8
8
|
import { Properties } from "./properties.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { ArrayPage } from "../../core/pagination.mjs";
|
|
10
10
|
import { path } from "../../internal/utils/path.mjs";
|
|
11
11
|
export class Identities extends APIResource {
|
|
12
12
|
constructor() {
|
|
@@ -18,16 +18,8 @@ export class Identities extends APIResource {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create Identity
|
|
20
20
|
*/
|
|
21
|
-
create(
|
|
22
|
-
|
|
23
|
-
return this._client.post('/v1/identities/', {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
headers: buildHeaders([
|
|
27
|
-
{ ...(xProject != null ? { 'X-Project': xProject } : undefined) },
|
|
28
|
-
options?.headers,
|
|
29
|
-
]),
|
|
30
|
-
});
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/v1/identities/', { body, ...options });
|
|
31
23
|
}
|
|
32
24
|
/**
|
|
33
25
|
* Retrieve Identity
|
|
@@ -36,7 +28,7 @@ export class Identities extends APIResource {
|
|
|
36
28
|
return this._client.get(path `/v1/identities/${identityID}`, options);
|
|
37
29
|
}
|
|
38
30
|
/**
|
|
39
|
-
*
|
|
31
|
+
* Update Identity
|
|
40
32
|
*/
|
|
41
33
|
update(identityID, body, options) {
|
|
42
34
|
return this._client.patch(path `/v1/identities/${identityID}`, { body, ...options });
|
|
@@ -45,7 +37,7 @@ export class Identities extends APIResource {
|
|
|
45
37
|
* Get a list of all identities in the database
|
|
46
38
|
*/
|
|
47
39
|
list(query = {}, options) {
|
|
48
|
-
return this._client.
|
|
40
|
+
return this._client.getAPIList('/v1/identities/', (ArrayPage), { query, ...options });
|
|
49
41
|
}
|
|
50
42
|
/**
|
|
51
43
|
* Delete an identity by its identifier key
|
|
@@ -53,25 +45,11 @@ export class Identities extends APIResource {
|
|
|
53
45
|
delete(identityID, options) {
|
|
54
46
|
return this._client.delete(path `/v1/identities/${identityID}`, options);
|
|
55
47
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Get count of all identities for a user
|
|
58
|
-
*/
|
|
59
|
-
count(options) {
|
|
60
|
-
return this._client.get('/v1/identities/count', options);
|
|
61
|
-
}
|
|
62
48
|
/**
|
|
63
49
|
* Upsert Identity
|
|
64
50
|
*/
|
|
65
|
-
upsert(
|
|
66
|
-
|
|
67
|
-
return this._client.put('/v1/identities/', {
|
|
68
|
-
body,
|
|
69
|
-
...options,
|
|
70
|
-
headers: buildHeaders([
|
|
71
|
-
{ ...(xProject != null ? { 'X-Project': xProject } : undefined) },
|
|
72
|
-
options?.headers,
|
|
73
|
-
]),
|
|
74
|
-
});
|
|
51
|
+
upsert(body, options) {
|
|
52
|
+
return this._client.put('/v1/identities/', { body, ...options });
|
|
75
53
|
}
|
|
76
54
|
}
|
|
77
55
|
Identities.Properties = Properties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identities.mjs","sourceRoot":"","sources":["../../src/resources/identities/identities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,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wB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,SAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAgMD,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC;AACnC,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;AAC3B,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Agents, type
|
|
2
|
-
export { Blocks, type
|
|
3
|
-
export { Identities, type Identity, type IdentityProperty, type IdentityType, type
|
|
1
|
+
export { Agents, type AgentListParams } from "./agents.mjs";
|
|
2
|
+
export { Blocks, type BlockListParams } from "./blocks.mjs";
|
|
3
|
+
export { Identities, type Identity, type IdentityProperty, type IdentityType, type IdentityDeleteResponse, type IdentityCreateParams, type IdentityUpdateParams, type IdentityListParams, type IdentityUpsertParams, type IdentitiesArrayPage, } from "./identities.mjs";
|
|
4
4
|
export { Properties, type PropertyUpsertResponse, type PropertyUpsertParams } from "./properties.mjs";
|
|
5
5
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/identities/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE;OAChC,EACL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB;OACM,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE"}
|