@letta-ai/letta-client 0.0.68646 → 0.0.68648
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 +2 -2
- package/api/resources/agents/client/Client.js +23 -13
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
- package/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
- package/api/resources/agents/client/requests/index.d.ts +1 -1
- 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 +9 -9
- 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/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
- package/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
- package/api/resources/agents/types/index.d.ts +2 -0
- package/api/resources/agents/types/index.js +2 -0
- 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 +16 -8
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
- package/api/resources/blocks/index.d.ts +1 -0
- package/api/resources/blocks/index.js +1 -0
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/api/resources/blocks/types/index.d.ts +1 -0
- package/api/resources/blocks/types/index.js +17 -0
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.d.ts +2 -1
- package/api/resources/folders/client/Client.js +34 -13
- package/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
- package/api/resources/folders/client/requests/index.d.ts +1 -0
- package/api/resources/folders/index.d.ts +1 -0
- package/api/resources/folders/index.js +1 -0
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/api/resources/folders/types/index.d.ts +1 -0
- package/api/resources/folders/types/index.js +17 -0
- package/api/resources/groups/client/Client.js +15 -7
- package/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/api/resources/groups/types/index.d.ts +1 -0
- package/api/resources/groups/types/index.js +1 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +16 -8
- package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
- package/api/resources/identities/index.d.ts +1 -0
- package/api/resources/identities/index.js +1 -0
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
- package/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
- package/api/resources/identities/types/index.d.ts +1 -0
- package/api/resources/identities/types/index.js +17 -0
- package/api/resources/index.d.ts +8 -4
- package/api/resources/index.js +9 -5
- 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 +23 -12
- package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
- package/api/resources/providers/index.d.ts +1 -0
- package/api/resources/providers/index.js +1 -0
- package/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
- package/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
- package/api/resources/providers/types/index.d.ts +1 -0
- package/api/resources/providers/types/index.js +17 -0
- 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.d.ts +0 -1
- package/api/resources/steps/client/Client.js +9 -5
- package/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
- 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/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/api/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/api/resources/steps/types/index.d.ts +1 -0
- package/api/resources/steps/types/index.js +1 -0
- package/api/resources/tags/client/Client.d.ts +1 -1
- package/api/resources/tags/client/Client.js +2 -2
- 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.d.ts +1 -1
- package/api/resources/tools/client/Client.js +33 -22
- package/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
- package/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/api/resources/tools/types/index.d.ts +1 -0
- package/api/resources/tools/types/index.js +1 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/{dist/api/types/BodyExportAgentSerialized.d.ts → api/types/BodyExportAgent.d.ts} +1 -1
- package/api/types/DeploymentEntity.d.ts +2 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/client/Client.js +23 -13
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -0
- package/dist/api/resources/agents/client/requests/{BodyImportAgentSerialized.d.ts → BodyImportAgent.d.ts} +1 -1
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
- 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 +9 -9
- 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/agents/types/AgentsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/types/AgentsListRequestOrder.js +10 -0
- package/dist/api/resources/agents/types/AgentsListRequestOrderBy.d.ts +11 -0
- package/dist/api/resources/agents/types/AgentsListRequestOrderBy.js +10 -0
- package/dist/api/resources/agents/types/index.d.ts +2 -0
- package/dist/api/resources/agents/types/index.js +2 -0
- 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 +16 -8
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +11 -2
- package/dist/api/resources/blocks/index.d.ts +1 -0
- package/dist/api/resources/blocks/index.js +1 -0
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/dist/api/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/dist/api/resources/blocks/types/index.d.ts +1 -0
- package/dist/api/resources/blocks/types/index.js +17 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.d.ts +2 -1
- package/dist/api/resources/folders/client/Client.js +34 -13
- package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +30 -0
- package/dist/api/resources/folders/client/requests/FoldersListRequest.js +5 -0
- package/dist/api/resources/folders/client/requests/index.d.ts +1 -0
- package/dist/api/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/folders/index.js +1 -0
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/dist/api/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/dist/api/resources/folders/types/index.d.ts +1 -0
- package/dist/api/resources/folders/types/index.js +17 -0
- package/dist/api/resources/groups/client/Client.js +15 -7
- package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +11 -3
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/dist/api/resources/groups/types/index.d.ts +1 -0
- package/dist/api/resources/groups/types/index.js +1 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +16 -8
- package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +17 -0
- package/dist/api/resources/identities/index.d.ts +1 -0
- package/dist/api/resources/identities/index.js +1 -0
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/identities/types/IdentitiesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/identities/types/IdentitiesListRequestOrder.js +10 -0
- package/dist/api/resources/identities/types/index.d.ts +1 -0
- package/dist/api/resources/identities/types/index.js +17 -0
- package/dist/api/resources/index.d.ts +8 -4
- package/dist/api/resources/index.js +9 -5
- 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 +23 -12
- package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +26 -2
- package/dist/api/resources/providers/index.d.ts +1 -0
- package/dist/api/resources/providers/index.js +1 -0
- package/dist/api/resources/providers/types/ProvidersListRequestOrder.d.ts +11 -0
- package/dist/api/resources/providers/types/ProvidersListRequestOrder.js +10 -0
- package/dist/api/resources/providers/types/index.d.ts +1 -0
- package/dist/api/resources/providers/types/index.js +17 -0
- 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.d.ts +0 -1
- package/dist/api/resources/steps/client/Client.js +9 -5
- package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +6 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +2 -0
- 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/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/dist/api/resources/steps/types/index.d.ts +1 -0
- package/dist/api/resources/steps/types/index.js +1 -0
- package/dist/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/api/resources/tags/client/Client.js +2 -2
- 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.d.ts +1 -1
- package/dist/api/resources/tools/client/Client.js +33 -22
- package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +22 -0
- package/dist/api/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/dist/api/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/tools/types/index.js +1 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/{api/types/BodyExportAgentSerialized.d.ts → dist/api/types/BodyExportAgent.d.ts} +1 -1
- package/dist/api/types/BodyExportAgent.js +5 -0
- package/dist/api/types/DeploymentEntity.d.ts +2 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
- package/dist/serialization/resources/agents/types/index.d.ts +2 -0
- package/dist/serialization/resources/agents/types/index.js +2 -0
- package/dist/serialization/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/index.js +1 -0
- package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/dist/serialization/resources/blocks/types/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/types/index.js +17 -0
- package/dist/serialization/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/folders/index.js +1 -0
- package/dist/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/dist/serialization/resources/folders/types/index.d.ts +1 -0
- package/dist/serialization/resources/folders/types/index.js +17 -0
- package/dist/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/dist/serialization/resources/groups/types/index.d.ts +1 -0
- package/dist/serialization/resources/groups/types/index.js +1 -0
- package/dist/serialization/resources/identities/index.d.ts +1 -0
- package/dist/serialization/resources/identities/index.js +1 -0
- package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
- package/dist/serialization/resources/identities/types/index.d.ts +1 -0
- package/dist/serialization/resources/identities/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +8 -4
- package/dist/serialization/resources/index.js +9 -5
- package/dist/serialization/resources/providers/index.d.ts +1 -0
- package/dist/serialization/resources/providers/index.js +1 -0
- package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
- package/dist/serialization/resources/providers/types/index.d.ts +1 -0
- package/dist/serialization/resources/providers/types/index.js +17 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
- package/dist/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/dist/serialization/resources/steps/types/index.d.ts +1 -0
- package/dist/serialization/resources/steps/types/index.js +1 -0
- package/dist/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/dist/serialization/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/tools/types/index.js +1 -0
- package/dist/serialization/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +2 -2
- package/dist/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
- package/dist/serialization/types/DeploymentEntity.d.ts +2 -0
- package/dist/serialization/types/DeploymentEntity.js +2 -0
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +12 -5
- package/serialization/resources/agents/types/AgentsListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsListRequestOrder.js +41 -0
- package/serialization/resources/agents/types/AgentsListRequestOrderBy.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsListRequestOrderBy.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +2 -0
- package/serialization/resources/agents/types/index.js +2 -0
- package/serialization/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/blocks/index.js +1 -0
- package/serialization/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/serialization/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/serialization/resources/blocks/types/index.d.ts +1 -0
- package/serialization/resources/blocks/types/index.js +17 -0
- package/serialization/resources/folders/index.d.ts +1 -0
- package/serialization/resources/folders/index.js +1 -0
- package/serialization/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/serialization/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/serialization/resources/folders/types/index.d.ts +1 -0
- package/serialization/resources/folders/types/index.js +17 -0
- package/serialization/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/serialization/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/serialization/resources/groups/types/index.d.ts +1 -0
- package/serialization/resources/groups/types/index.js +1 -0
- package/serialization/resources/identities/index.d.ts +1 -0
- package/serialization/resources/identities/index.js +1 -0
- package/serialization/resources/identities/types/IdentitiesListRequestOrder.d.ts +10 -0
- package/serialization/resources/identities/types/IdentitiesListRequestOrder.js +41 -0
- package/serialization/resources/identities/types/index.d.ts +1 -0
- package/serialization/resources/identities/types/index.js +17 -0
- package/serialization/resources/index.d.ts +8 -4
- package/serialization/resources/index.js +9 -5
- package/serialization/resources/providers/index.d.ts +1 -0
- package/serialization/resources/providers/index.js +1 -0
- package/serialization/resources/providers/types/ProvidersListRequestOrder.d.ts +10 -0
- package/serialization/resources/providers/types/ProvidersListRequestOrder.js +41 -0
- package/serialization/resources/providers/types/index.d.ts +1 -0
- package/serialization/resources/providers/types/index.js +17 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.d.ts +1 -0
- package/serialization/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +1 -0
- package/serialization/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/serialization/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/serialization/resources/steps/types/index.d.ts +1 -0
- package/serialization/resources/steps/types/index.js +1 -0
- package/serialization/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/serialization/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/serialization/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/tools/types/index.js +1 -0
- package/serialization/types/{BodyExportAgentSerialized.d.ts → BodyExportAgent.d.ts} +2 -2
- package/serialization/types/{BodyExportAgentSerialized.js → BodyExportAgent.js} +2 -2
- package/serialization/types/DeploymentEntity.d.ts +2 -0
- package/serialization/types/DeploymentEntity.js +2 -0
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/agents/client/requests/{BodyImportAgentSerialized.js → BodyImportAgent.js} +0 -0
- /package/api/{types/BodyExportAgentSerialized.js → resources/folders/client/requests/FoldersListRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js → api/types/BodyExportAgent.js} +0 -0
- /package/dist/api/{types/BodyExportAgentSerialized.js → resources/agents/client/requests/BodyImportAgent.js} +0 -0
|
@@ -14,5 +14,6 @@ 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);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -93,7 +93,7 @@ class Files {
|
|
|
93
93
|
method: "POST",
|
|
94
94
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
95
|
? 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.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "file",
|
|
99
99
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -183,7 +183,7 @@ class Files {
|
|
|
183
183
|
method: "GET",
|
|
184
184
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
185
185
|
? yield core.Supplier.get(this._options.project)
|
|
186
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
186
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
187
187
|
contentType: "application/json",
|
|
188
188
|
queryParameters: _queryParams,
|
|
189
189
|
requestType: "json",
|
|
@@ -261,7 +261,7 @@ class Files {
|
|
|
261
261
|
method: "DELETE",
|
|
262
262
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
263
263
|
? yield core.Supplier.get(this._options.project)
|
|
264
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
264
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
requestType: "json",
|
|
267
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -93,7 +93,7 @@ class Passages {
|
|
|
93
93
|
method: "GET",
|
|
94
94
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
95
|
? 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.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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
97
|
contentType: "application/json",
|
|
98
98
|
queryParameters: _queryParams,
|
|
99
99
|
requestType: "json",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for folders by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type FoldersListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const FoldersListRequestOrder: {
|
|
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.FoldersListRequestOrder = void 0;
|
|
7
|
+
exports.FoldersListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FoldersListRequestOrder";
|
|
@@ -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("./FoldersListRequestOrder"), exports);
|
|
@@ -81,7 +81,7 @@ class Groups {
|
|
|
81
81
|
__list() {
|
|
82
82
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
83
83
|
var _a, _b, _c;
|
|
84
|
-
const { managerType, before, after, limit, projectId } = request;
|
|
84
|
+
const { managerType, before, after, limit, order, orderBy, projectId } = request;
|
|
85
85
|
const _queryParams = {};
|
|
86
86
|
if (managerType != null) {
|
|
87
87
|
_queryParams["manager_type"] = serializers.ManagerType.jsonOrThrow(managerType, {
|
|
@@ -97,6 +97,14 @@ class Groups {
|
|
|
97
97
|
if (limit != null) {
|
|
98
98
|
_queryParams["limit"] = limit.toString();
|
|
99
99
|
}
|
|
100
|
+
if (order != null) {
|
|
101
|
+
_queryParams["order"] = serializers.GroupsListRequestOrder.jsonOrThrow(order, {
|
|
102
|
+
unrecognizedObjectKeys: "strip",
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (orderBy != null) {
|
|
106
|
+
_queryParams["order_by"] = orderBy;
|
|
107
|
+
}
|
|
100
108
|
if (projectId != null) {
|
|
101
109
|
_queryParams["project_id"] = projectId;
|
|
102
110
|
}
|
|
@@ -105,7 +113,7 @@ class Groups {
|
|
|
105
113
|
method: "GET",
|
|
106
114
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
107
115
|
? 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.
|
|
116
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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
117
|
contentType: "application/json",
|
|
110
118
|
queryParameters: _queryParams,
|
|
111
119
|
requestType: "json",
|
|
@@ -185,7 +193,7 @@ class Groups {
|
|
|
185
193
|
method: "POST",
|
|
186
194
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
187
195
|
? yield core.Supplier.get(this._options.project)
|
|
188
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
196
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
189
197
|
contentType: "application/json",
|
|
190
198
|
requestType: "json",
|
|
191
199
|
body: serializers.GroupCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -261,7 +269,7 @@ class Groups {
|
|
|
261
269
|
method: "GET",
|
|
262
270
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
263
271
|
? yield core.Supplier.get(this._options.project)
|
|
264
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
272
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
265
273
|
contentType: "application/json",
|
|
266
274
|
requestType: "json",
|
|
267
275
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -337,7 +345,7 @@ class Groups {
|
|
|
337
345
|
method: "GET",
|
|
338
346
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
339
347
|
? yield core.Supplier.get(this._options.project)
|
|
340
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
348
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
341
349
|
contentType: "application/json",
|
|
342
350
|
requestType: "json",
|
|
343
351
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -413,7 +421,7 @@ class Groups {
|
|
|
413
421
|
method: "DELETE",
|
|
414
422
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
415
423
|
? yield core.Supplier.get(this._options.project)
|
|
416
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
424
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
417
425
|
contentType: "application/json",
|
|
418
426
|
requestType: "json",
|
|
419
427
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -481,7 +489,7 @@ class Groups {
|
|
|
481
489
|
method: "PATCH",
|
|
482
490
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
483
491
|
? yield core.Supplier.get(this._options.project)
|
|
484
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
492
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
485
493
|
contentType: "application/json",
|
|
486
494
|
requestType: "json",
|
|
487
495
|
body: serializers.GroupUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -12,17 +12,25 @@ export interface GroupsListRequest {
|
|
|
12
12
|
*/
|
|
13
13
|
managerType?: Letta.ManagerType;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Group ID cursor for pagination. Returns groups that come before this group ID in the specified sort order
|
|
16
16
|
*/
|
|
17
17
|
before?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Group ID cursor for pagination. Returns groups that come after this group ID in the specified sort order
|
|
20
20
|
*/
|
|
21
21
|
after?: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Maximum number of groups to return
|
|
24
24
|
*/
|
|
25
25
|
limit?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
28
|
+
*/
|
|
29
|
+
order?: Letta.GroupsListRequestOrder;
|
|
30
|
+
/**
|
|
31
|
+
* Field to sort by
|
|
32
|
+
*/
|
|
33
|
+
orderBy?: "created_at";
|
|
26
34
|
/**
|
|
27
35
|
* Search groups by project id
|
|
28
36
|
*/
|
|
@@ -102,7 +102,7 @@ class Messages {
|
|
|
102
102
|
method: "GET",
|
|
103
103
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
104
104
|
? yield core.Supplier.get(this._options.project)
|
|
105
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
105
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
106
106
|
contentType: "application/json",
|
|
107
107
|
queryParameters: _queryParams,
|
|
108
108
|
requestType: "json",
|
|
@@ -189,7 +189,7 @@ class Messages {
|
|
|
189
189
|
method: "POST",
|
|
190
190
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
191
191
|
? yield core.Supplier.get(this._options.project)
|
|
192
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
192
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -260,7 +260,7 @@ class Messages {
|
|
|
260
260
|
method: "POST",
|
|
261
261
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
262
262
|
? yield core.Supplier.get(this._options.project)
|
|
263
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
263
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
264
264
|
contentType: "application/json",
|
|
265
265
|
requestType: "json",
|
|
266
266
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -352,7 +352,7 @@ class Messages {
|
|
|
352
352
|
method: "PATCH",
|
|
353
353
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
354
354
|
? yield core.Supplier.get(this._options.project)
|
|
355
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
355
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
356
356
|
contentType: "application/json",
|
|
357
357
|
requestType: "json",
|
|
358
358
|
body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -429,7 +429,7 @@ class Messages {
|
|
|
429
429
|
method: "PATCH",
|
|
430
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
431
431
|
? yield core.Supplier.get(this._options.project)
|
|
432
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
432
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
433
433
|
contentType: "application/json",
|
|
434
434
|
requestType: "json",
|
|
435
435
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type GroupsListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const GroupsListRequestOrder: {
|
|
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.GroupsListRequestOrder = void 0;
|
|
7
|
+
exports.GroupsListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -14,5 +14,6 @@ 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("./GroupsListRequestOrder"), exports);
|
|
17
18
|
__exportStar(require("./GroupCreateManagerConfig"), exports);
|
|
18
19
|
__exportStar(require("./GroupUpdateManagerConfig"), exports);
|
|
@@ -75,7 +75,7 @@ class Health {
|
|
|
75
75
|
method: "GET",
|
|
76
76
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
77
77
|
? yield core.Supplier.get(this._options.project)
|
|
78
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
78
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Identities {
|
|
|
81
81
|
__list() {
|
|
82
82
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
83
83
|
var _a, _b, _c;
|
|
84
|
-
const { name, projectId, identifierKey, identityType, before, after, limit } = request;
|
|
84
|
+
const { name, projectId, identifierKey, identityType, before, after, limit, order, orderBy } = request;
|
|
85
85
|
const _queryParams = {};
|
|
86
86
|
if (name != null) {
|
|
87
87
|
_queryParams["name"] = name;
|
|
@@ -106,12 +106,20 @@ class Identities {
|
|
|
106
106
|
if (limit != null) {
|
|
107
107
|
_queryParams["limit"] = limit.toString();
|
|
108
108
|
}
|
|
109
|
+
if (order != null) {
|
|
110
|
+
_queryParams["order"] = serializers.IdentitiesListRequestOrder.jsonOrThrow(order, {
|
|
111
|
+
unrecognizedObjectKeys: "strip",
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (orderBy != null) {
|
|
115
|
+
_queryParams["order_by"] = orderBy;
|
|
116
|
+
}
|
|
109
117
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
110
118
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/identities/"),
|
|
111
119
|
method: "GET",
|
|
112
120
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
113
121
|
? yield core.Supplier.get(this._options.project)
|
|
114
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
122
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
115
123
|
contentType: "application/json",
|
|
116
124
|
queryParameters: _queryParams,
|
|
117
125
|
requestType: "json",
|
|
@@ -190,7 +198,7 @@ class Identities {
|
|
|
190
198
|
method: "POST",
|
|
191
199
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
192
200
|
? yield core.Supplier.get(this._options.project)
|
|
193
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
201
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
194
202
|
contentType: "application/json",
|
|
195
203
|
requestType: "json",
|
|
196
204
|
body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -269,7 +277,7 @@ class Identities {
|
|
|
269
277
|
method: "PUT",
|
|
270
278
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
271
279
|
? yield core.Supplier.get(this._options.project)
|
|
272
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
280
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
273
281
|
contentType: "application/json",
|
|
274
282
|
requestType: "json",
|
|
275
283
|
body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -345,7 +353,7 @@ class Identities {
|
|
|
345
353
|
method: "GET",
|
|
346
354
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
347
355
|
? yield core.Supplier.get(this._options.project)
|
|
348
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
356
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
349
357
|
contentType: "application/json",
|
|
350
358
|
requestType: "json",
|
|
351
359
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -419,7 +427,7 @@ class Identities {
|
|
|
419
427
|
method: "GET",
|
|
420
428
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
421
429
|
? yield core.Supplier.get(this._options.project)
|
|
422
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
430
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
423
431
|
contentType: "application/json",
|
|
424
432
|
requestType: "json",
|
|
425
433
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -495,7 +503,7 @@ class Identities {
|
|
|
495
503
|
method: "DELETE",
|
|
496
504
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
497
505
|
? yield core.Supplier.get(this._options.project)
|
|
498
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
506
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
499
507
|
contentType: "application/json",
|
|
500
508
|
requestType: "json",
|
|
501
509
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -561,7 +569,7 @@ class Identities {
|
|
|
561
569
|
method: "PATCH",
|
|
562
570
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
563
571
|
? yield core.Supplier.get(this._options.project)
|
|
564
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
572
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
565
573
|
contentType: "application/json",
|
|
566
574
|
requestType: "json",
|
|
567
575
|
body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -11,7 +11,24 @@ export interface IdentitiesListRequest {
|
|
|
11
11
|
projectId?: string;
|
|
12
12
|
identifierKey?: string;
|
|
13
13
|
identityType?: Letta.IdentityType;
|
|
14
|
+
/**
|
|
15
|
+
* Identity ID cursor for pagination. Returns identities that come before this identity ID in the specified sort order
|
|
16
|
+
*/
|
|
14
17
|
before?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Identity ID cursor for pagination. Returns identities that come after this identity ID in the specified sort order
|
|
20
|
+
*/
|
|
15
21
|
after?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number of identities to return
|
|
24
|
+
*/
|
|
16
25
|
limit?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Sort order for identities by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
28
|
+
*/
|
|
29
|
+
order?: Letta.IdentitiesListRequestOrder;
|
|
30
|
+
/**
|
|
31
|
+
* Field to sort by
|
|
32
|
+
*/
|
|
33
|
+
orderBy?: "created_at";
|
|
17
34
|
}
|
|
@@ -14,5 +14,6 @@ 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);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -84,7 +84,7 @@ class Properties {
|
|
|
84
84
|
method: "PUT",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68648", "User-Agent": "@letta-ai/letta-client/0.0.68648", "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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for identities by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type IdentitiesListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const IdentitiesListRequestOrder: {
|
|
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.IdentitiesListRequestOrder = void 0;
|
|
7
|
+
exports.IdentitiesListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./IdentitiesListRequestOrder";
|
|
@@ -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("./IdentitiesListRequestOrder"), exports);
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export * as tools from "./tools";
|
|
2
2
|
export * from "./tools/types";
|
|
3
|
+
export * as folders from "./folders";
|
|
4
|
+
export * from "./folders/types";
|
|
3
5
|
export * as agents from "./agents";
|
|
4
6
|
export * from "./agents/types";
|
|
5
7
|
export * as groups from "./groups";
|
|
6
8
|
export * from "./groups/types";
|
|
9
|
+
export * as identities from "./identities";
|
|
10
|
+
export * from "./identities/types";
|
|
11
|
+
export * as blocks from "./blocks";
|
|
12
|
+
export * from "./blocks/types";
|
|
13
|
+
export * as providers from "./providers";
|
|
14
|
+
export * from "./providers/types";
|
|
7
15
|
export * as runs from "./runs";
|
|
8
16
|
export * from "./runs/types";
|
|
9
17
|
export * as steps from "./steps";
|
|
@@ -19,13 +27,9 @@ export * from "./clientSideAccessTokens/types";
|
|
|
19
27
|
export * as projects from "./projects";
|
|
20
28
|
export * from "./projects/types";
|
|
21
29
|
export * as sources from "./sources";
|
|
22
|
-
export * as folders from "./folders";
|
|
23
|
-
export * as identities from "./identities";
|
|
24
30
|
export * as models from "./models";
|
|
25
|
-
export * as blocks from "./blocks";
|
|
26
31
|
export * as jobs from "./jobs";
|
|
27
32
|
export * as health from "./health";
|
|
28
|
-
export * as providers from "./providers";
|
|
29
33
|
export * as telemetry from "./telemetry";
|
|
30
34
|
export * as voice from "./voice";
|
|
31
35
|
export * from "./tools/client/requests";
|
|
@@ -36,13 +36,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.voice = exports.telemetry = exports.
|
|
39
|
+
exports.voice = exports.telemetry = exports.health = exports.jobs = exports.models = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.blocks = exports.identities = exports.groups = exports.agents = exports.folders = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
__exportStar(require("./tools/types"), exports);
|
|
42
|
+
exports.folders = __importStar(require("./folders"));
|
|
43
|
+
__exportStar(require("./folders/types"), exports);
|
|
42
44
|
exports.agents = __importStar(require("./agents"));
|
|
43
45
|
__exportStar(require("./agents/types"), exports);
|
|
44
46
|
exports.groups = __importStar(require("./groups"));
|
|
45
47
|
__exportStar(require("./groups/types"), exports);
|
|
48
|
+
exports.identities = __importStar(require("./identities"));
|
|
49
|
+
__exportStar(require("./identities/types"), exports);
|
|
50
|
+
exports.blocks = __importStar(require("./blocks"));
|
|
51
|
+
__exportStar(require("./blocks/types"), exports);
|
|
52
|
+
exports.providers = __importStar(require("./providers"));
|
|
53
|
+
__exportStar(require("./providers/types"), exports);
|
|
46
54
|
exports.runs = __importStar(require("./runs"));
|
|
47
55
|
__exportStar(require("./runs/types"), exports);
|
|
48
56
|
exports.steps = __importStar(require("./steps"));
|
|
@@ -58,13 +66,9 @@ __exportStar(require("./clientSideAccessTokens/types"), exports);
|
|
|
58
66
|
exports.projects = __importStar(require("./projects"));
|
|
59
67
|
__exportStar(require("./projects/types"), exports);
|
|
60
68
|
exports.sources = __importStar(require("./sources"));
|
|
61
|
-
exports.folders = __importStar(require("./folders"));
|
|
62
|
-
exports.identities = __importStar(require("./identities"));
|
|
63
69
|
exports.models = __importStar(require("./models"));
|
|
64
|
-
exports.blocks = __importStar(require("./blocks"));
|
|
65
70
|
exports.jobs = __importStar(require("./jobs"));
|
|
66
71
|
exports.health = __importStar(require("./health"));
|
|
67
|
-
exports.providers = __importStar(require("./providers"));
|
|
68
72
|
exports.telemetry = __importStar(require("./telemetry"));
|
|
69
73
|
exports.voice = __importStar(require("./voice"));
|
|
70
74
|
__exportStar(require("./tools/client/requests"), exports);
|