@letta-ai/letta-client 0.0.68653 → 0.0.68655
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/api/resources/agents/client/Client.d.ts +4 -7
- package/api/resources/agents/client/Client.js +13 -16
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/index.d.ts +1 -1
- package/api/resources/blocks/index.js +1 -1
- package/api/resources/blocks/resources/agents/client/Client.js +20 -3
- package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
- package/api/resources/blocks/resources/agents/index.d.ts +1 -0
- package/api/resources/blocks/resources/agents/index.js +1 -0
- package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
- package/api/resources/blocks/resources/agents/types/index.js +17 -0
- package/api/resources/blocks/resources/index.d.ts +1 -0
- package/api/resources/blocks/resources/index.js +1 -0
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.d.ts +11 -18
- package/api/resources/folders/client/Client.js +28 -93
- package/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
- package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
- package/api/resources/folders/client/requests/index.d.ts +1 -1
- package/api/resources/folders/index.d.ts +1 -1
- package/api/resources/folders/index.js +1 -1
- package/api/resources/folders/resources/agents/client/Client.d.ts +50 -0
- package/api/resources/folders/resources/agents/client/Client.js +166 -0
- package/api/resources/folders/resources/agents/client/index.d.ts +1 -0
- package/api/resources/folders/resources/agents/client/index.js +17 -0
- package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
- package/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/folders/resources/agents/client/requests/index.js +2 -0
- package/api/resources/folders/resources/agents/index.d.ts +2 -0
- package/api/resources/folders/resources/agents/index.js +18 -0
- package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/api/resources/folders/resources/agents/types/index.d.ts +1 -0
- package/api/resources/folders/resources/agents/types/index.js +17 -0
- package/api/resources/folders/resources/files/client/Client.js +17 -6
- package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
- package/api/resources/folders/resources/files/index.d.ts +1 -0
- package/api/resources/folders/resources/files/index.js +1 -0
- package/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
- package/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
- package/api/resources/folders/resources/files/types/index.d.ts +1 -0
- package/api/resources/folders/resources/files/types/index.js +17 -0
- package/api/resources/folders/resources/index.d.ts +5 -0
- package/api/resources/folders/resources/index.js +6 -1
- package/api/resources/folders/resources/passages/client/Client.js +14 -6
- package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
- package/api/resources/folders/resources/passages/index.d.ts +1 -0
- package/api/resources/folders/resources/passages/index.js +1 -0
- package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
- package/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
- package/api/resources/folders/resources/passages/types/index.d.ts +1 -0
- package/api/resources/folders/resources/passages/types/index.js +17 -0
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +18 -10
- package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
- package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/api/resources/groups/resources/messages/types/index.d.ts +1 -0
- package/api/resources/groups/resources/messages/types/index.js +1 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/index.d.ts +1 -1
- package/api/resources/identities/index.js +1 -1
- package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/identities/resources/agents/client/Client.js +58 -11
- package/api/resources/identities/resources/agents/client/index.d.ts +1 -1
- package/api/resources/identities/resources/agents/client/index.js +15 -0
- package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
- package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
- package/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/identities/resources/agents/client/requests/index.js +2 -0
- package/api/resources/identities/resources/agents/index.d.ts +1 -0
- package/api/resources/identities/resources/agents/index.js +1 -0
- package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/api/resources/identities/resources/agents/types/index.d.ts +1 -0
- package/api/resources/identities/resources/agents/types/index.js +17 -0
- package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
- package/api/resources/identities/resources/blocks/client/Client.js +58 -11
- package/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
- package/api/resources/identities/resources/blocks/client/index.js +15 -0
- package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
- package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
- package/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
- package/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
- package/api/resources/identities/resources/blocks/index.d.ts +1 -0
- package/api/resources/identities/resources/blocks/index.js +1 -0
- package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
- package/api/resources/identities/resources/blocks/types/index.js +17 -0
- package/api/resources/identities/resources/index.d.ts +5 -1
- package/api/resources/identities/resources/index.js +9 -2
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +5 -2
- package/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +9 -9
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +4 -7
- package/dist/api/resources/agents/client/Client.js +13 -16
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/index.d.ts +1 -1
- package/dist/api/resources/blocks/index.js +1 -1
- package/dist/api/resources/blocks/resources/agents/client/Client.js +20 -3
- package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +21 -0
- package/dist/api/resources/blocks/resources/agents/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/agents/index.js +1 -0
- package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/dist/api/resources/blocks/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/agents/types/index.js +17 -0
- package/dist/api/resources/blocks/resources/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/index.js +1 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.d.ts +11 -18
- package/dist/api/resources/folders/client/Client.js +28 -93
- package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +4 -0
- package/dist/api/resources/folders/client/requests/{GetFoldersMetadataRequest.d.ts → RetrieveMetadataRequest.d.ts} +1 -1
- package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.js +5 -0
- package/dist/api/resources/folders/client/requests/index.d.ts +1 -1
- package/dist/api/resources/folders/index.d.ts +1 -1
- package/dist/api/resources/folders/index.js +1 -1
- package/dist/api/resources/folders/resources/agents/client/Client.d.ts +50 -0
- package/dist/api/resources/folders/resources/agents/client/Client.js +166 -0
- package/dist/api/resources/folders/resources/agents/client/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/agents/client/index.js +17 -0
- package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
- package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.js +5 -0
- package/dist/api/resources/folders/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/folders/resources/agents/index.d.ts +2 -0
- package/dist/api/resources/folders/resources/agents/index.js +18 -0
- package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/folders/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/dist/api/resources/folders/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/agents/types/index.js +17 -0
- package/dist/api/resources/folders/resources/files/client/Client.js +17 -6
- package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +16 -3
- package/dist/api/resources/folders/resources/files/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/files/index.js +1 -0
- package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/folders/resources/files/types/FilesListRequestOrder.js +10 -0
- package/dist/api/resources/folders/resources/files/types/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/files/types/index.js +17 -0
- package/dist/api/resources/folders/resources/index.d.ts +5 -0
- package/dist/api/resources/folders/resources/index.js +6 -1
- package/dist/api/resources/folders/resources/passages/client/Client.js +14 -6
- package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +14 -5
- package/dist/api/resources/folders/resources/passages/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/passages/index.js +1 -0
- package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/folders/resources/passages/types/PassagesListRequestOrder.js +10 -0
- package/dist/api/resources/folders/resources/passages/types/index.d.ts +1 -0
- package/dist/api/resources/folders/resources/passages/types/index.js +17 -0
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +18 -10
- package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +14 -5
- package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/groups/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/dist/api/resources/groups/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/groups/resources/messages/types/index.js +1 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/index.d.ts +1 -1
- package/dist/api/resources/identities/index.js +1 -1
- package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/identities/resources/agents/client/Client.js +58 -11
- package/dist/api/resources/identities/resources/agents/client/index.d.ts +1 -1
- package/dist/api/resources/identities/resources/agents/client/index.js +15 -0
- package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +30 -0
- package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.js +5 -0
- package/dist/api/resources/identities/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/identities/resources/agents/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/agents/index.js +1 -0
- package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/identities/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/dist/api/resources/identities/resources/agents/types/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/agents/types/index.js +17 -0
- package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +58 -11
- package/dist/api/resources/identities/resources/blocks/client/index.d.ts +1 -1
- package/dist/api/resources/identities/resources/blocks/client/index.js +15 -0
- package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +30 -0
- package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.js +5 -0
- package/dist/api/resources/identities/resources/blocks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/blocks/client/requests/index.js +2 -0
- package/dist/api/resources/identities/resources/blocks/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/blocks/index.js +1 -0
- package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/dist/api/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/dist/api/resources/identities/resources/blocks/types/index.d.ts +1 -0
- package/dist/api/resources/identities/resources/blocks/types/index.js +17 -0
- package/dist/api/resources/identities/resources/index.d.ts +5 -1
- package/dist/api/resources/identities/resources/index.js +9 -2
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +5 -2
- package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +5 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +9 -9
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/serialization/resources/blocks/index.d.ts +1 -1
- package/dist/serialization/resources/blocks/index.js +1 -1
- package/dist/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/resources/agents/index.js +1 -0
- package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/dist/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/resources/agents/types/index.js +17 -0
- package/dist/serialization/resources/blocks/resources/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/resources/index.js +4 -0
- package/dist/serialization/resources/folders/client/index.d.ts +0 -1
- package/dist/serialization/resources/folders/client/index.js +1 -2
- package/dist/serialization/resources/folders/index.d.ts +1 -1
- package/dist/serialization/resources/folders/index.js +1 -1
- package/dist/serialization/resources/folders/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/agents/client/index.js +37 -0
- package/dist/serialization/resources/folders/{client/getAgentsForFolder.d.ts → resources/agents/client/list.d.ts} +3 -3
- package/dist/serialization/resources/folders/{client/getAgentsForFolder.js → resources/agents/client/list.js} +1 -1
- package/dist/serialization/resources/folders/resources/agents/index.d.ts +2 -0
- package/dist/serialization/resources/folders/resources/agents/index.js +18 -0
- package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/dist/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/agents/types/index.js +17 -0
- package/dist/serialization/resources/folders/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/files/index.js +1 -0
- package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
- package/dist/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/files/types/index.js +17 -0
- package/dist/serialization/resources/folders/resources/index.d.ts +4 -0
- package/dist/serialization/resources/folders/resources/index.js +8 -1
- package/dist/serialization/resources/folders/resources/passages/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/passages/index.js +1 -0
- package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
- package/dist/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
- package/dist/serialization/resources/folders/resources/passages/types/index.js +17 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/dist/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
- package/dist/serialization/resources/groups/resources/messages/types/index.js +1 -0
- package/dist/serialization/resources/identities/index.d.ts +1 -1
- package/dist/serialization/resources/identities/index.js +1 -1
- package/dist/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/agents/client/index.js +37 -0
- package/dist/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
- package/dist/serialization/resources/identities/resources/agents/client/list.js +42 -0
- package/dist/serialization/resources/identities/resources/agents/index.d.ts +2 -0
- package/dist/serialization/resources/identities/resources/agents/index.js +18 -0
- package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/dist/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/agents/types/index.js +17 -0
- package/dist/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/blocks/client/index.js +37 -0
- package/dist/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
- package/dist/serialization/resources/identities/resources/blocks/client/list.js +42 -0
- package/dist/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
- package/dist/serialization/resources/identities/resources/blocks/index.js +18 -0
- package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/dist/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
- package/dist/serialization/resources/identities/resources/blocks/types/index.js +17 -0
- package/dist/serialization/resources/identities/resources/index.d.ts +4 -0
- package/dist/serialization/resources/identities/resources/index.js +8 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +131 -76
- package/serialization/resources/blocks/index.d.ts +1 -1
- package/serialization/resources/blocks/index.js +1 -1
- package/serialization/resources/blocks/resources/agents/index.d.ts +1 -0
- package/serialization/resources/blocks/resources/agents/index.js +1 -0
- package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/serialization/resources/blocks/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/serialization/resources/blocks/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/blocks/resources/agents/types/index.js +17 -0
- package/serialization/resources/blocks/resources/index.d.ts +1 -0
- package/serialization/resources/blocks/resources/index.js +4 -0
- package/serialization/resources/folders/client/index.d.ts +0 -1
- package/serialization/resources/folders/client/index.js +1 -2
- package/serialization/resources/folders/index.d.ts +1 -1
- package/serialization/resources/folders/index.js +1 -1
- package/serialization/resources/folders/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/folders/resources/agents/client/index.js +37 -0
- package/serialization/resources/folders/{client/getAgentsForFolder.d.ts → resources/agents/client/list.d.ts} +3 -3
- package/serialization/resources/folders/{client/getAgentsForFolder.js → resources/agents/client/list.js} +1 -1
- package/serialization/resources/folders/resources/agents/index.d.ts +2 -0
- package/serialization/resources/folders/resources/agents/index.js +18 -0
- package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/serialization/resources/folders/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/serialization/resources/folders/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/folders/resources/agents/types/index.js +17 -0
- package/serialization/resources/folders/resources/files/index.d.ts +1 -0
- package/serialization/resources/folders/resources/files/index.js +1 -0
- package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.d.ts +10 -0
- package/serialization/resources/folders/resources/files/types/FilesListRequestOrder.js +41 -0
- package/serialization/resources/folders/resources/files/types/index.d.ts +1 -0
- package/serialization/resources/folders/resources/files/types/index.js +17 -0
- package/serialization/resources/folders/resources/index.d.ts +4 -0
- package/serialization/resources/folders/resources/index.js +8 -1
- package/serialization/resources/folders/resources/passages/index.d.ts +1 -0
- package/serialization/resources/folders/resources/passages/index.js +1 -0
- package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.d.ts +10 -0
- package/serialization/resources/folders/resources/passages/types/PassagesListRequestOrder.js +41 -0
- package/serialization/resources/folders/resources/passages/types/index.d.ts +1 -0
- package/serialization/resources/folders/resources/passages/types/index.js +17 -0
- package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/serialization/resources/groups/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/serialization/resources/groups/resources/messages/types/index.d.ts +1 -0
- package/serialization/resources/groups/resources/messages/types/index.js +1 -0
- package/serialization/resources/identities/index.d.ts +1 -1
- package/serialization/resources/identities/index.js +1 -1
- package/serialization/resources/identities/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/identities/resources/agents/client/index.js +37 -0
- package/serialization/resources/identities/resources/agents/client/list.d.ts +11 -0
- package/serialization/resources/identities/resources/agents/client/list.js +42 -0
- package/serialization/resources/identities/resources/agents/index.d.ts +2 -0
- package/serialization/resources/identities/resources/agents/index.js +18 -0
- package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/serialization/resources/identities/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/serialization/resources/identities/resources/agents/types/index.d.ts +1 -0
- package/serialization/resources/identities/resources/agents/types/index.js +17 -0
- package/serialization/resources/identities/resources/blocks/client/index.d.ts +1 -0
- package/serialization/resources/identities/resources/blocks/client/index.js +37 -0
- package/serialization/resources/identities/resources/blocks/client/list.d.ts +11 -0
- package/serialization/resources/identities/resources/blocks/client/list.js +42 -0
- package/serialization/resources/identities/resources/blocks/index.d.ts +2 -0
- package/serialization/resources/identities/resources/blocks/index.js +18 -0
- package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/serialization/resources/identities/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/serialization/resources/identities/resources/blocks/types/index.d.ts +1 -0
- package/serialization/resources/identities/resources/blocks/types/index.js +17 -0
- package/serialization/resources/identities/resources/index.d.ts +4 -0
- package/serialization/resources/identities/resources/index.js +8 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/folders/client/requests/{GetFoldersMetadataRequest.js → RetrieveMetadataRequest.js} +0 -0
- /package/{dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js → api/resources/folders/resources/agents/client/requests/AgentsListRequest.js} +0 -0
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -158,7 +158,7 @@ class Tools {
|
|
|
158
158
|
method: "PATCH",
|
|
159
159
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
160
160
|
? yield core.Supplier.get(this._options.project)
|
|
161
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
162
|
contentType: "application/json",
|
|
163
163
|
requestType: "json",
|
|
164
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Tools {
|
|
|
235
235
|
method: "PATCH",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -318,7 +318,7 @@ class Tools {
|
|
|
318
318
|
method: "PATCH",
|
|
319
319
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
320
320
|
? yield core.Supplier.get(this._options.project)
|
|
321
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
321
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
322
322
|
contentType: "application/json",
|
|
323
323
|
queryParameters: _queryParams,
|
|
324
324
|
requestType: "json",
|
|
@@ -105,7 +105,7 @@ class Batches {
|
|
|
105
105
|
method: "GET",
|
|
106
106
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
107
107
|
? yield core.Supplier.get(this._options.project)
|
|
108
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
108
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
109
109
|
contentType: "application/json",
|
|
110
110
|
queryParameters: _queryParams,
|
|
111
111
|
requestType: "json",
|
|
@@ -196,7 +196,7 @@ class Batches {
|
|
|
196
196
|
method: "POST",
|
|
197
197
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
198
198
|
? yield core.Supplier.get(this._options.project)
|
|
199
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
199
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -273,7 +273,7 @@ class Batches {
|
|
|
273
273
|
method: "GET",
|
|
274
274
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
275
275
|
? yield core.Supplier.get(this._options.project)
|
|
276
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
276
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
277
277
|
contentType: "application/json",
|
|
278
278
|
requestType: "json",
|
|
279
279
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -349,7 +349,7 @@ class Batches {
|
|
|
349
349
|
method: "PATCH",
|
|
350
350
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
351
351
|
? yield core.Supplier.get(this._options.project)
|
|
352
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
352
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
353
353
|
contentType: "application/json",
|
|
354
354
|
requestType: "json",
|
|
355
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -104,7 +104,7 @@ class Messages {
|
|
|
104
104
|
method: "GET",
|
|
105
105
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
106
106
|
? yield core.Supplier.get(this._options.project)
|
|
107
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
107
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
108
108
|
contentType: "application/json",
|
|
109
109
|
queryParameters: _queryParams,
|
|
110
110
|
requestType: "json",
|
|
@@ -149,7 +149,7 @@ class Blocks {
|
|
|
149
149
|
method: "GET",
|
|
150
150
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
151
151
|
? yield core.Supplier.get(this._options.project)
|
|
152
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
152
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
153
153
|
contentType: "application/json",
|
|
154
154
|
queryParameters: _queryParams,
|
|
155
155
|
requestType: "json",
|
|
@@ -227,7 +227,7 @@ class Blocks {
|
|
|
227
227
|
method: "POST",
|
|
228
228
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
229
229
|
? yield core.Supplier.get(this._options.project)
|
|
230
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
230
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
231
231
|
contentType: "application/json",
|
|
232
232
|
requestType: "json",
|
|
233
233
|
body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -303,7 +303,7 @@ class Blocks {
|
|
|
303
303
|
method: "GET",
|
|
304
304
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
305
305
|
? yield core.Supplier.get(this._options.project)
|
|
306
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
306
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
requestType: "json",
|
|
309
309
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -377,7 +377,7 @@ class Blocks {
|
|
|
377
377
|
method: "GET",
|
|
378
378
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
379
379
|
? yield core.Supplier.get(this._options.project)
|
|
380
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
380
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
381
381
|
contentType: "application/json",
|
|
382
382
|
requestType: "json",
|
|
383
383
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -451,7 +451,7 @@ class Blocks {
|
|
|
451
451
|
method: "DELETE",
|
|
452
452
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
453
453
|
? yield core.Supplier.get(this._options.project)
|
|
454
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
454
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
455
455
|
contentType: "application/json",
|
|
456
456
|
requestType: "json",
|
|
457
457
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -517,7 +517,7 @@ class Blocks {
|
|
|
517
517
|
method: "PATCH",
|
|
518
518
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
519
519
|
? yield core.Supplier.get(this._options.project)
|
|
520
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
520
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
521
521
|
contentType: "application/json",
|
|
522
522
|
requestType: "json",
|
|
523
523
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./client"), exports);
|
|
19
18
|
__exportStar(require("./resources"), exports);
|
|
19
|
+
__exportStar(require("./client"), exports);
|
|
@@ -52,8 +52,8 @@ exports.Agents = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../../../core"));
|
|
54
54
|
const Letta = __importStar(require("../../../../../index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
55
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
58
58
|
class Agents {
|
|
59
59
|
constructor(_options = {}) {
|
|
@@ -78,8 +78,25 @@ class Agents {
|
|
|
78
78
|
__list(blockId_1) {
|
|
79
79
|
return __awaiter(this, arguments, void 0, function* (blockId, request = {}, requestOptions) {
|
|
80
80
|
var _a, _b, _c;
|
|
81
|
-
const { includeRelationships } = request;
|
|
81
|
+
const { before, after, limit, order, orderBy, includeRelationships } = request;
|
|
82
82
|
const _queryParams = {};
|
|
83
|
+
if (before != null) {
|
|
84
|
+
_queryParams["before"] = before;
|
|
85
|
+
}
|
|
86
|
+
if (after != null) {
|
|
87
|
+
_queryParams["after"] = after;
|
|
88
|
+
}
|
|
89
|
+
if (limit != null) {
|
|
90
|
+
_queryParams["limit"] = limit.toString();
|
|
91
|
+
}
|
|
92
|
+
if (order != null) {
|
|
93
|
+
_queryParams["order"] = serializers.blocks.AgentsListRequestOrder.jsonOrThrow(order, {
|
|
94
|
+
unrecognizedObjectKeys: "strip",
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (orderBy != null) {
|
|
98
|
+
_queryParams["order_by"] = orderBy;
|
|
99
|
+
}
|
|
83
100
|
if (includeRelationships != null) {
|
|
84
101
|
if (Array.isArray(includeRelationships)) {
|
|
85
102
|
_queryParams["include_relationships"] = includeRelationships.map((item) => item);
|
|
@@ -93,7 +110,7 @@ class Agents {
|
|
|
93
110
|
method: "GET",
|
|
94
111
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
112
|
? yield core.Supplier.get(this._options.project)
|
|
96
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
113
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
97
114
|
contentType: "application/json",
|
|
98
115
|
queryParameters: _queryParams,
|
|
99
116
|
requestType: "json",
|
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
7
8
|
*/
|
|
8
9
|
export interface AgentsListRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
|
|
12
|
+
*/
|
|
13
|
+
before?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Agent ID cursor for pagination. Returns agents that come after this agent ID in the specified sort order
|
|
16
|
+
*/
|
|
17
|
+
after?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of agents to return
|
|
20
|
+
*/
|
|
21
|
+
limit?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
24
|
+
*/
|
|
25
|
+
order?: Letta.blocks.AgentsListRequestOrder;
|
|
26
|
+
/**
|
|
27
|
+
* Field to sort by
|
|
28
|
+
*/
|
|
29
|
+
orderBy?: "created_at";
|
|
9
30
|
/**
|
|
10
31
|
* Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
11
32
|
*/
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type AgentsListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const AgentsListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AgentsListRequestOrder = void 0;
|
|
7
|
+
exports.AgentsListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AgentsListRequestOrder";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AgentsListRequestOrder"), exports);
|
|
@@ -38,4 +38,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.agents = void 0;
|
|
40
40
|
exports.agents = __importStar(require("./agents"));
|
|
41
|
+
__exportStar(require("./agents/types"), exports);
|
|
41
42
|
__exportStar(require("./agents/client/requests"), exports);
|
|
@@ -92,7 +92,7 @@ class ClientSideAccessTokens {
|
|
|
92
92
|
method: "GET",
|
|
93
93
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
94
94
|
? yield core.Supplier.get(this._options.project)
|
|
95
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
95
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "json",
|
|
@@ -170,7 +170,7 @@ class ClientSideAccessTokens {
|
|
|
170
170
|
method: "POST",
|
|
171
171
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
172
172
|
? yield core.Supplier.get(this._options.project)
|
|
173
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
173
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
requestType: "json",
|
|
176
176
|
body: serializers.ClientSideAccessTokensCreateRequest.jsonOrThrow(request, {
|
|
@@ -246,7 +246,7 @@ class ClientSideAccessTokens {
|
|
|
246
246
|
method: "DELETE",
|
|
247
247
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
248
248
|
? yield core.Supplier.get(this._options.project)
|
|
249
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
249
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68655", "User-Agent": "@letta-ai/letta-client/0.0.68655", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
250
250
|
contentType: "application/json",
|
|
251
251
|
requestType: "json",
|
|
252
252
|
body: request,
|
|
@@ -5,6 +5,7 @@ import * as environments from "../../../../environments";
|
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
6
|
import * as Letta from "../../../index";
|
|
7
7
|
import { Files } from "../resources/files/client/Client";
|
|
8
|
+
import { Agents } from "../resources/agents/client/Client";
|
|
8
9
|
import { Passages } from "../resources/passages/client/Client";
|
|
9
10
|
export declare namespace Folders {
|
|
10
11
|
interface Options {
|
|
@@ -32,9 +33,11 @@ export declare namespace Folders {
|
|
|
32
33
|
export declare class Folders {
|
|
33
34
|
protected readonly _options: Folders.Options;
|
|
34
35
|
protected _files: Files | undefined;
|
|
36
|
+
protected _agents: Agents | undefined;
|
|
35
37
|
protected _passages: Passages | undefined;
|
|
36
38
|
constructor(_options?: Folders.Options);
|
|
37
39
|
get files(): Files;
|
|
40
|
+
get agents(): Agents;
|
|
38
41
|
get passages(): Passages;
|
|
39
42
|
/**
|
|
40
43
|
* Count all data folders created by a user.
|
|
@@ -89,7 +92,10 @@ export declare class Folders {
|
|
|
89
92
|
modify(folderId: string, request: Letta.SourceUpdate, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Folder>;
|
|
90
93
|
private __modify;
|
|
91
94
|
/**
|
|
92
|
-
*
|
|
95
|
+
* **Deprecated**: Please use the list endpoint `/GET v1/folders?name=` instead.
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* Get a folder by name.
|
|
93
99
|
*
|
|
94
100
|
* @param {string} folderName
|
|
95
101
|
* @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -110,16 +116,16 @@ export declare class Folders {
|
|
|
110
116
|
* - Total size of all files
|
|
111
117
|
* - Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True
|
|
112
118
|
*
|
|
113
|
-
* @param {Letta.
|
|
119
|
+
* @param {Letta.RetrieveMetadataRequest} request
|
|
114
120
|
* @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
121
|
*
|
|
116
122
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
117
123
|
*
|
|
118
124
|
* @example
|
|
119
|
-
* await client.folders.
|
|
125
|
+
* await client.folders.retrieveMetadata()
|
|
120
126
|
*/
|
|
121
|
-
|
|
122
|
-
private
|
|
127
|
+
retrieveMetadata(request?: Letta.RetrieveMetadataRequest, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.OrganizationSourcesStats>;
|
|
128
|
+
private __retrieveMetadata;
|
|
123
129
|
/**
|
|
124
130
|
* List all data folders created by a user.
|
|
125
131
|
*
|
|
@@ -148,19 +154,6 @@ export declare class Folders {
|
|
|
148
154
|
*/
|
|
149
155
|
create(request: Letta.SourceCreate, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Folder>;
|
|
150
156
|
private __create;
|
|
151
|
-
/**
|
|
152
|
-
* Get all agent IDs that have the specified folder attached.
|
|
153
|
-
*
|
|
154
|
-
* @param {string} folderId
|
|
155
|
-
* @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
-
*
|
|
157
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* await client.folders.getAgentsForFolder("folder_id")
|
|
161
|
-
*/
|
|
162
|
-
getAgentsForFolder(folderId: string, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
163
|
-
private __getAgentsForFolder;
|
|
164
157
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
165
158
|
Authorization: string;
|
|
166
159
|
}>;
|