@letta-ai/letta-client 1.0.0-alpha.1 → 1.0.0-alpha.2
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 +23 -3
- package/api/resources/agents/client/Client.js +32 -12
- package/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
- package/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/blocks/client/Client.js +37 -10
- package/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/index.js +15 -0
- package/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
- package/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/client/requests/index.js +2 -0
- package/api/resources/agents/resources/blocks/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/index.js +1 -0
- package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/api/resources/agents/resources/blocks/types/index.js +17 -0
- 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.d.ts +9 -1
- package/api/resources/agents/resources/files/client/Client.js +30 -8
- package/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
- package/api/resources/agents/resources/files/index.d.ts +1 -0
- package/api/resources/agents/resources/files/index.js +1 -0
- package/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
- package/api/resources/agents/resources/files/types/index.d.ts +1 -0
- package/api/resources/agents/resources/files/types/index.js +17 -0
- package/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/folders/client/Client.js +35 -8
- package/api/resources/agents/resources/folders/client/index.d.ts +1 -1
- package/api/resources/agents/resources/folders/client/index.js +15 -0
- package/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
- package/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/client/requests/index.js +2 -0
- package/api/resources/agents/resources/folders/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/index.js +1 -0
- package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/api/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/api/resources/agents/resources/folders/types/index.js +17 -0
- package/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
- package/api/resources/agents/resources/groups/client/Client.js +28 -4
- package/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
- package/api/resources/agents/resources/groups/index.d.ts +1 -0
- package/api/resources/agents/resources/groups/index.js +1 -0
- package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/api/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/api/resources/agents/resources/groups/types/index.js +17 -0
- package/api/resources/agents/resources/index.d.ts +15 -6
- package/api/resources/agents/resources/index.js +16 -7
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
- package/api/resources/agents/resources/messages/client/Client.js +38 -17
- package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
- package/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
- package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/api/resources/agents/resources/messages/types/index.js +1 -0
- package/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
- package/api/resources/agents/resources/passages/client/Client.js +17 -7
- package/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
- package/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/sources/client/Client.js +35 -8
- package/api/resources/agents/resources/sources/client/index.d.ts +1 -1
- package/api/resources/agents/resources/sources/client/index.js +15 -0
- package/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
- package/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/sources/client/requests/index.js +2 -0
- package/api/resources/agents/resources/sources/index.d.ts +1 -0
- package/api/resources/agents/resources/sources/index.js +1 -0
- package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
- package/api/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/api/resources/agents/resources/sources/types/index.js +17 -0
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
- package/api/resources/agents/resources/tools/client/Client.js +37 -10
- package/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
- package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/index.js +1 -0
- package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/api/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/types/index.js +17 -0
- package/api/resources/archives/client/Client.d.ts +8 -1
- package/api/resources/archives/client/Client.js +11 -4
- package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
- package/api/resources/batches/client/Client.d.ts +7 -1
- package/api/resources/batches/client/Client.js +11 -5
- package/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
- package/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
- package/api/resources/batches/resources/messages/client/Client.js +9 -2
- package/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
- package/api/resources/blocks/client/Client.d.ts +17 -1
- package/api/resources/blocks/client/Client.js +23 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
- package/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/blocks/resources/agents/client/Client.js +8 -2
- package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +8 -4
- package/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
- package/api/resources/folders/client/Client.d.ts +11 -2
- package/api/resources/folders/client/Client.js +19 -10
- package/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
- package/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
- package/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/folders/resources/agents/client/Client.js +8 -2
- package/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/api/resources/folders/resources/files/client/Client.d.ts +12 -2
- package/api/resources/folders/resources/files/client/Client.js +15 -5
- package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
- package/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
- package/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
- package/api/resources/folders/resources/passages/client/Client.js +8 -2
- package/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/api/resources/groups/client/Client.d.ts +9 -1
- package/api/resources/groups/client/Client.js +15 -7
- package/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
- package/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
- package/api/resources/groups/resources/messages/client/Client.js +15 -6
- package/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +11 -1
- package/api/resources/identities/client/Client.js +18 -8
- package/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
- package/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
- package/api/resources/identities/resources/agents/client/Client.js +8 -2
- package/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
- package/api/resources/identities/resources/blocks/client/Client.js +8 -2
- package/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.d.ts +17 -2
- package/api/resources/jobs/client/Client.js +32 -9
- package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
- package/api/resources/jobs/index.d.ts +1 -0
- package/api/resources/jobs/index.js +1 -0
- package/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
- package/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
- package/api/resources/jobs/types/index.d.ts +1 -0
- package/api/resources/jobs/types/index.js +17 -0
- package/api/resources/models/client/Client.d.ts +4 -1
- package/api/resources/models/client/Client.js +6 -3
- package/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.d.ts +5 -1
- package/api/resources/projects/client/Client.js +6 -2
- package/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
- package/api/resources/providers/client/Client.d.ts +22 -1
- package/api/resources/providers/client/Client.js +82 -7
- package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
- package/api/resources/runs/client/Client.d.ts +29 -2
- package/api/resources/runs/client/Client.js +117 -11
- package/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
- package/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
- package/api/resources/runs/resources/index.d.ts +2 -1
- package/api/resources/runs/resources/index.js +3 -2
- package/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
- package/api/resources/runs/resources/messages/client/Client.js +12 -3
- package/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
- package/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
- package/api/resources/runs/resources/steps/client/Client.js +17 -16
- package/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
- package/api/resources/runs/resources/steps/index.d.ts +1 -0
- package/api/resources/runs/resources/steps/index.js +1 -0
- package/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/api/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/api/resources/runs/resources/steps/types/index.js +17 -0
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
- package/api/resources/runs/types/RunsListRequestOrder.js +10 -0
- package/api/resources/runs/types/index.d.ts +1 -0
- package/api/resources/runs/types/index.js +1 -0
- package/api/resources/sources/client/Client.d.ts +6 -2
- package/api/resources/sources/client/Client.js +16 -12
- package/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
- package/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
- package/api/resources/sources/resources/files/client/Client.d.ts +10 -2
- package/api/resources/sources/resources/files/client/Client.js +13 -5
- package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
- package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
- package/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
- package/api/resources/sources/resources/passages/client/Client.js +6 -2
- package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
- package/api/resources/steps/client/Client.d.ts +14 -1
- package/api/resources/steps/client/Client.js +16 -3
- package/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
- package/api/resources/steps/resources/messages/client/Client.js +8 -2
- package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -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.d.ts +9 -1
- package/api/resources/tags/client/Client.js +10 -2
- package/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +16 -2
- package/api/resources/templates/client/Client.js +29 -15
- package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
- package/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- package/api/resources/templates/types/index.d.ts +4 -0
- package/api/resources/templates/types/index.js +4 -0
- package/api/resources/tools/client/Client.d.ts +16 -40
- package/api/resources/tools/client/Client.js +33 -246
- package/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
- package/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentEnvironmentVariable.d.ts +2 -0
- package/api/types/ApprovalCreate.d.ts +5 -2
- package/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
- package/api/types/ApprovalResponseMessage.d.ts +5 -2
- package/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
- package/api/types/ApprovalReturn.d.ts +12 -0
- package/api/types/InternalTemplateAgentCreate.d.ts +2 -2
- package/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
- package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +7 -1
- package/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
- package/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
- package/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
- package/{dist/api/types/ToolReturn.d.ts → api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
- package/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
- package/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
- package/api/types/Message.d.ts +3 -1
- package/api/types/MessageApprovalsItem.d.ts +5 -0
- package/api/types/OmittedReasoningContent.d.ts +2 -0
- package/api/types/Provider.d.ts +4 -0
- package/api/types/RunMetrics.d.ts +21 -0
- package/api/types/RunMetrics.js +5 -0
- package/api/types/SandboxEnvironmentVariable.d.ts +2 -0
- package/api/types/TextContent.d.ts +2 -0
- package/api/types/ToolCallContent.d.ts +2 -0
- package/api/types/ToolCallMessage.d.ts +1 -0
- package/api/types/ToolCallMessageToolCalls.d.ts +5 -0
- package/api/types/ToolCallMessageToolCalls.js +5 -0
- package/api/types/ToolReturnMessage.d.ts +7 -5
- package/api/types/ToolType.d.ts +2 -2
- package/api/types/ToolType.js +1 -1
- package/api/types/index.d.ts +10 -9
- package/api/types/index.js +10 -9
- package/dist/api/resources/agents/client/Client.d.ts +23 -3
- package/dist/api/resources/agents/client/Client.js +32 -12
- package/dist/api/resources/agents/client/requests/AgentsExportFileRequest.d.ts +4 -1
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +16 -1
- package/dist/api/resources/agents/client/requests/BodyImportAgent.d.ts +3 -1
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/blocks/client/Client.js +37 -10
- package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/index.js +15 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/BlocksListRequest.js +5 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/blocks/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/index.js +1 -0
- package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/types/index.js +17 -0
- 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.d.ts +9 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +30 -8
- package/dist/api/resources/agents/resources/files/client/requests/FilesListRequest.d.ts +29 -4
- package/dist/api/resources/agents/resources/files/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/index.js +1 -0
- package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/files/types/FilesListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/files/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/files/types/index.js +17 -0
- package/dist/api/resources/agents/resources/folders/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/folders/client/Client.js +35 -8
- package/dist/api/resources/agents/resources/folders/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/folders/client/index.js +15 -0
- package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/folders/client/requests/FoldersListRequest.js +5 -0
- package/dist/api/resources/agents/resources/folders/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/index.js +1 -0
- package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/folders/types/FoldersListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/folders/types/index.js +17 -0
- package/dist/api/resources/agents/resources/groups/client/Client.d.ts +8 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +28 -4
- package/dist/api/resources/agents/resources/groups/client/requests/GroupsListRequest.d.ts +29 -1
- package/dist/api/resources/agents/resources/groups/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/index.js +1 -0
- package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/groups/types/GroupsListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/groups/types/index.js +17 -0
- package/dist/api/resources/agents/resources/index.d.ts +15 -6
- package/dist/api/resources/agents/resources/index.js +16 -7
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +15 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +38 -17
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +26 -6
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesResetRequest.d.ts +3 -1
- package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +12 -2
- package/dist/api/resources/agents/resources/passages/client/Client.js +17 -7
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +5 -1
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/sources/client/Client.js +35 -8
- package/dist/api/resources/agents/resources/sources/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/sources/client/index.js +15 -0
- package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/sources/client/requests/SourcesListRequest.js +5 -0
- package/dist/api/resources/agents/resources/sources/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/sources/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/sources/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/sources/index.js +1 -0
- package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/sources/types/SourcesListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/sources/types/index.js +17 -0
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +9 -2
- package/dist/api/resources/agents/resources/tools/client/Client.js +37 -10
- package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.d.ts +36 -0
- package/dist/api/resources/agents/resources/tools/client/requests/ToolsListRequest.js +5 -0
- package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/index.js +1 -0
- package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/agents/resources/tools/types/ToolsListRequestOrder.js +10 -0
- package/dist/api/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/types/index.js +17 -0
- package/dist/api/resources/archives/client/Client.d.ts +8 -1
- package/dist/api/resources/archives/client/Client.js +11 -4
- package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +8 -1
- package/dist/api/resources/batches/client/Client.d.ts +7 -1
- package/dist/api/resources/batches/client/Client.js +11 -5
- package/dist/api/resources/batches/client/requests/BatchesListRequest.d.ts +7 -1
- package/dist/api/resources/batches/resources/messages/client/Client.d.ts +8 -1
- package/dist/api/resources/batches/resources/messages/client/Client.js +9 -2
- package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts +8 -1
- package/dist/api/resources/blocks/client/Client.d.ts +17 -1
- package/dist/api/resources/blocks/client/Client.js +23 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +17 -1
- package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/blocks/resources/agents/client/Client.js +8 -2
- package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +5 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +8 -4
- package/dist/api/resources/clientSideAccessTokens/client/requests/ClientSideAccessTokensListClientSideAccessTokensRequest.d.ts +5 -1
- package/dist/api/resources/folders/client/Client.d.ts +11 -2
- package/dist/api/resources/folders/client/Client.js +19 -10
- package/dist/api/resources/folders/client/requests/FoldersListRequest.d.ts +8 -1
- package/dist/api/resources/folders/client/requests/RetrieveMetadataRequest.d.ts +3 -1
- package/dist/api/resources/folders/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/folders/resources/agents/client/Client.js +8 -2
- package/dist/api/resources/folders/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/dist/api/resources/folders/resources/files/client/Client.d.ts +12 -2
- package/dist/api/resources/folders/resources/files/client/Client.js +15 -5
- package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -1
- package/dist/api/resources/folders/resources/files/client/requests/FilesListRequest.d.ts +8 -1
- package/dist/api/resources/folders/resources/passages/client/Client.d.ts +7 -1
- package/dist/api/resources/folders/resources/passages/client/Client.js +8 -2
- package/dist/api/resources/folders/resources/passages/client/requests/PassagesListRequest.d.ts +7 -1
- package/dist/api/resources/groups/client/Client.d.ts +9 -1
- package/dist/api/resources/groups/client/Client.js +15 -7
- package/dist/api/resources/groups/client/requests/GroupsListRequest.d.ts +9 -1
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +10 -1
- package/dist/api/resources/groups/resources/messages/client/Client.js +15 -6
- package/dist/api/resources/groups/resources/messages/client/requests/MessagesListRequest.d.ts +10 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +11 -1
- package/dist/api/resources/identities/client/Client.js +18 -8
- package/dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts +11 -1
- package/dist/api/resources/identities/resources/agents/client/Client.d.ts +7 -1
- package/dist/api/resources/identities/resources/agents/client/Client.js +8 -2
- package/dist/api/resources/identities/resources/agents/client/requests/AgentsListRequest.d.ts +7 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +7 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +8 -2
- package/dist/api/resources/identities/resources/blocks/client/requests/BlocksListRequest.d.ts +7 -1
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.d.ts +17 -2
- package/dist/api/resources/jobs/client/Client.js +32 -9
- package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +7 -1
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +23 -5
- package/dist/api/resources/jobs/index.d.ts +1 -0
- package/dist/api/resources/jobs/index.js +1 -0
- package/dist/api/resources/jobs/types/JobsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/jobs/types/JobsListRequestOrder.js +10 -0
- package/dist/api/resources/jobs/types/index.d.ts +1 -0
- package/dist/api/resources/jobs/types/index.js +17 -0
- package/dist/api/resources/models/client/Client.d.ts +4 -1
- package/dist/api/resources/models/client/Client.js +6 -3
- package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -1
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.d.ts +5 -1
- package/dist/api/resources/projects/client/Client.js +6 -2
- package/dist/api/resources/projects/client/requests/ProjectsListRequest.d.ts +5 -1
- package/dist/api/resources/providers/client/Client.d.ts +22 -1
- package/dist/api/resources/providers/client/Client.js +82 -7
- package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +9 -1
- package/dist/api/resources/runs/client/Client.d.ts +29 -2
- package/dist/api/resources/runs/client/Client.js +117 -11
- package/dist/api/resources/runs/client/requests/RunsListActiveRequest.d.ts +4 -1
- package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +29 -6
- package/dist/api/resources/runs/resources/index.d.ts +2 -1
- package/dist/api/resources/runs/resources/index.js +3 -2
- package/dist/api/resources/runs/resources/messages/client/Client.d.ts +7 -1
- package/dist/api/resources/runs/resources/messages/client/Client.js +12 -3
- package/dist/api/resources/runs/resources/messages/client/requests/MessagesListRequest.d.ts +11 -1
- package/dist/api/resources/runs/resources/steps/client/Client.d.ts +8 -12
- package/dist/api/resources/runs/resources/steps/client/Client.js +17 -16
- package/dist/api/resources/runs/resources/steps/client/requests/StepsListRequest.d.ts +14 -3
- package/dist/api/resources/runs/resources/steps/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/index.js +1 -0
- package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/runs/resources/steps/types/StepsListRequestOrder.js +10 -0
- package/dist/api/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/dist/api/resources/runs/resources/steps/types/index.js +17 -0
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/runs/types/RunsListRequestOrder.d.ts +11 -0
- package/dist/api/resources/runs/types/RunsListRequestOrder.js +10 -0
- package/dist/api/resources/runs/types/index.d.ts +1 -0
- package/dist/api/resources/runs/types/index.js +1 -0
- package/dist/api/resources/sources/client/Client.d.ts +6 -2
- package/dist/api/resources/sources/client/Client.js +16 -12
- package/dist/api/resources/sources/client/requests/GetFileMetadataRequest.d.ts +3 -1
- package/dist/api/resources/sources/client/requests/GetSourcesMetadataRequest.d.ts +3 -1
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +10 -2
- package/dist/api/resources/sources/resources/files/client/Client.js +13 -5
- package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -1
- package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +6 -1
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -1
- package/dist/api/resources/sources/resources/passages/client/Client.js +6 -2
- package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +5 -1
- package/dist/api/resources/steps/client/Client.d.ts +14 -1
- package/dist/api/resources/steps/client/Client.js +16 -3
- package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +14 -1
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/messages/client/Client.d.ts +7 -1
- package/dist/api/resources/steps/resources/messages/client/Client.js +8 -2
- package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +7 -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.d.ts +9 -1
- package/dist/api/resources/tags/client/Client.js +10 -2
- package/dist/api/resources/tags/client/requests/TagsListRequest.d.ts +9 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.d.ts +16 -2
- package/dist/api/resources/templates/client/Client.js +29 -15
- package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +12 -1
- package/dist/api/resources/templates/client/requests/TemplatesListTemplateVersionsRequest.d.ts +4 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +2 -2
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- package/dist/api/resources/templates/types/index.d.ts +4 -0
- package/dist/api/resources/templates/types/index.js +4 -0
- package/dist/api/resources/tools/client/Client.d.ts +16 -40
- package/dist/api/resources/tools/client/Client.js +33 -246
- package/dist/api/resources/tools/client/requests/ToolsCountRequest.d.ts +6 -1
- package/dist/api/resources/tools/client/requests/ToolsListRequest.d.ts +10 -1
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentEnvironmentVariable.d.ts +2 -0
- package/dist/api/types/ApprovalCreate.d.ts +5 -2
- package/dist/api/types/ApprovalCreateApprovalsItem.d.ts +5 -0
- package/dist/api/types/ApprovalCreateApprovalsItem.js +5 -0
- package/dist/api/types/ApprovalResponseMessage.d.ts +5 -2
- package/dist/api/types/ApprovalResponseMessageApprovalsItem.d.ts +5 -0
- package/dist/api/types/ApprovalResponseMessageApprovalsItem.js +5 -0
- package/dist/api/types/ApprovalReturn.d.ts +12 -0
- package/dist/api/types/ApprovalReturn.js +5 -0
- package/dist/api/types/InternalTemplateAgentCreate.d.ts +2 -2
- package/dist/api/types/LettaSchemasAgentFileAgentSchema.d.ts +2 -2
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +7 -1
- package/dist/api/types/LettaSchemasLettaMessageToolReturn.d.ts +12 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturn.js +5 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +8 -0
- package/dist/api/types/LettaSchemasLettaMessageToolReturnStatus.js +10 -0
- package/{api/types/ToolReturn.d.ts → dist/api/types/LettaSchemasMessageToolReturn.d.ts} +5 -2
- package/dist/api/types/LettaSchemasMessageToolReturn.js +5 -0
- package/dist/api/types/{ToolReturnStatus.d.ts → LettaSchemasMessageToolReturnStatus.d.ts} +2 -2
- package/dist/api/types/{ToolReturnStatus.js → LettaSchemasMessageToolReturnStatus.js} +2 -2
- package/dist/api/types/Message.d.ts +3 -1
- package/dist/api/types/MessageApprovalsItem.d.ts +5 -0
- package/dist/api/types/MessageApprovalsItem.js +5 -0
- package/dist/api/types/OmittedReasoningContent.d.ts +2 -0
- package/dist/api/types/Provider.d.ts +4 -0
- package/dist/api/types/RunMetrics.d.ts +21 -0
- package/dist/api/types/RunMetrics.js +5 -0
- package/dist/api/types/SandboxEnvironmentVariable.d.ts +2 -0
- package/dist/api/types/TextContent.d.ts +2 -0
- package/dist/api/types/ToolCallContent.d.ts +2 -0
- package/dist/api/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/types/ToolCallMessageToolCalls.d.ts +5 -0
- package/dist/api/types/ToolCallMessageToolCalls.js +5 -0
- package/dist/api/types/ToolReturnMessage.d.ts +7 -5
- package/dist/api/types/ToolType.d.ts +2 -2
- package/dist/api/types/ToolType.js +1 -1
- package/dist/api/types/index.d.ts +10 -9
- package/dist/api/types/index.js +10 -9
- package/dist/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/blocks/index.js +1 -0
- package/dist/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/blocks/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/files/index.js +1 -0
- package/dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/files/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/folders/index.js +1 -0
- package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/folders/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/groups/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/groups/index.js +1 -0
- package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/groups/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +12 -6
- package/dist/serialization/resources/agents/resources/index.js +13 -7
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/index.js +1 -0
- package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/types/index.js +17 -0
- package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/index.js +1 -0
- package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/dist/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/jobs/index.d.ts +1 -0
- package/dist/serialization/resources/jobs/index.js +1 -0
- package/dist/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/{tools/client/listComposioApps.js → jobs/types/JobsListRequestOrder.js} +2 -3
- package/dist/serialization/resources/jobs/types/index.d.ts +1 -0
- package/dist/serialization/resources/jobs/types/index.js +17 -0
- package/dist/serialization/resources/runs/resources/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/index.js +1 -0
- package/dist/serialization/resources/runs/resources/steps/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/steps/index.js +1 -0
- package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/dist/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/dist/serialization/resources/runs/resources/steps/types/index.js +17 -0
- package/dist/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
- package/{serialization/resources/tools/client/listComposioApps.js → dist/serialization/resources/runs/types/RunsListRequestOrder.js} +2 -3
- package/dist/serialization/resources/runs/types/index.d.ts +1 -0
- package/dist/serialization/resources/runs/types/index.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- package/dist/serialization/resources/templates/types/index.d.ts +4 -0
- package/dist/serialization/resources/templates/types/index.js +4 -0
- package/dist/serialization/resources/tools/client/index.d.ts +0 -2
- package/dist/serialization/resources/tools/client/index.js +1 -3
- package/dist/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
- package/dist/serialization/types/AgentEnvironmentVariable.js +1 -0
- package/dist/serialization/types/ApprovalCreate.d.ts +4 -2
- package/dist/serialization/types/ApprovalCreate.js +4 -2
- package/dist/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
- package/dist/serialization/types/ApprovalResponseMessage.d.ts +4 -2
- package/dist/serialization/types/ApprovalResponseMessage.js +4 -2
- package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
- package/dist/serialization/types/ApprovalReturn.d.ts +15 -0
- package/dist/serialization/types/ApprovalReturn.js +46 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +5 -2
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +5 -2
- package/dist/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
- package/dist/serialization/types/{ActionParametersModel.js → LettaSchemasLettaMessageToolReturn.js} +9 -7
- package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
- package/dist/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
- package/{serialization/types/ToolReturn.js → dist/serialization/types/LettaSchemasMessageToolReturn.js} +6 -4
- package/dist/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
- package/{serialization/types/ToolReturnStatus.js → dist/serialization/types/LettaSchemasMessageToolReturnStatus.js} +2 -2
- package/dist/serialization/types/Message.d.ts +4 -2
- package/dist/serialization/types/Message.js +4 -2
- package/dist/serialization/types/MessageApprovalsItem.d.ts +12 -0
- package/dist/serialization/types/{ToolReturn.js → MessageApprovalsItem.js} +4 -7
- package/dist/serialization/types/OmittedReasoningContent.d.ts +1 -0
- package/dist/serialization/types/OmittedReasoningContent.js +1 -0
- package/dist/serialization/types/Provider.d.ts +2 -0
- package/dist/serialization/types/Provider.js +2 -0
- package/dist/serialization/types/RunMetrics.d.ts +19 -0
- package/dist/serialization/types/{AuthSchemeField.js → RunMetrics.js} +10 -10
- package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.js +1 -0
- package/dist/serialization/types/TextContent.d.ts +1 -0
- package/dist/serialization/types/TextContent.js +1 -0
- package/dist/serialization/types/ToolCallContent.d.ts +1 -0
- package/dist/serialization/types/ToolCallContent.js +1 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +2 -0
- package/dist/serialization/types/ToolCallMessage.js +2 -0
- package/dist/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
- package/{serialization/types/AppAuthSchemeAuthMode.js → dist/serialization/types/ToolCallMessageToolCalls.js} +4 -13
- package/dist/serialization/types/ToolReturnMessage.d.ts +2 -0
- package/dist/serialization/types/ToolReturnMessage.js +2 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -1
- package/dist/serialization/types/index.d.ts +10 -9
- package/dist/serialization/types/index.js +10 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +538 -246
- package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/agents/resources/blocks/index.js +1 -0
- package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/blocks/types/BlocksListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/blocks/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/blocks/types/index.js +17 -0
- package/serialization/resources/agents/resources/files/index.d.ts +1 -0
- package/serialization/resources/agents/resources/files/index.js +1 -0
- package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/files/types/FilesListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/files/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/files/types/index.js +17 -0
- package/serialization/resources/agents/resources/folders/index.d.ts +1 -0
- package/serialization/resources/agents/resources/folders/index.js +1 -0
- package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/folders/types/FoldersListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/folders/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/folders/types/index.js +17 -0
- package/serialization/resources/agents/resources/groups/index.d.ts +1 -0
- package/serialization/resources/agents/resources/groups/index.js +1 -0
- package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/groups/types/GroupsListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/groups/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/groups/types/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +12 -6
- package/serialization/resources/agents/resources/index.js +13 -7
- package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/index.js +1 -0
- package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/sources/types/SourcesListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/sources/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/types/index.js +17 -0
- package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/index.js +1 -0
- package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.d.ts +10 -0
- package/serialization/resources/agents/resources/tools/types/ToolsListRequestOrder.js +41 -0
- package/serialization/resources/agents/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/types/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/jobs/index.d.ts +1 -0
- package/serialization/resources/jobs/index.js +1 -0
- package/serialization/resources/jobs/types/JobsListRequestOrder.d.ts +10 -0
- package/{dist/serialization/resources/tools/client/listComposioActionsByApp.js → serialization/resources/jobs/types/JobsListRequestOrder.js} +2 -3
- package/serialization/resources/jobs/types/index.d.ts +1 -0
- package/serialization/resources/jobs/types/index.js +17 -0
- package/serialization/resources/runs/resources/index.d.ts +1 -0
- package/serialization/resources/runs/resources/index.js +1 -0
- package/serialization/resources/runs/resources/steps/index.d.ts +1 -0
- package/serialization/resources/runs/resources/steps/index.js +1 -0
- package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.d.ts +10 -0
- package/serialization/resources/runs/resources/steps/types/StepsListRequestOrder.js +41 -0
- package/serialization/resources/runs/resources/steps/types/index.d.ts +1 -0
- package/serialization/resources/runs/resources/steps/types/index.js +17 -0
- package/serialization/resources/runs/types/RunsListRequestOrder.d.ts +10 -0
- package/serialization/resources/{tools/client/listComposioActionsByApp.js → runs/types/RunsListRequestOrder.js} +2 -3
- package/serialization/resources/runs/types/index.d.ts +1 -0
- package/serialization/resources/runs/types/index.js +1 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js +41 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItemToolType.js +1 -1
- package/serialization/resources/templates/types/index.d.ts +4 -0
- package/serialization/resources/templates/types/index.js +4 -0
- package/serialization/resources/tools/client/index.d.ts +0 -2
- package/serialization/resources/tools/client/index.js +1 -3
- package/serialization/types/AgentEnvironmentVariable.d.ts +1 -0
- package/serialization/types/AgentEnvironmentVariable.js +1 -0
- package/serialization/types/ApprovalCreate.d.ts +4 -2
- package/serialization/types/ApprovalCreate.js +4 -2
- package/serialization/types/ApprovalCreateApprovalsItem.d.ts +12 -0
- package/serialization/types/ApprovalCreateApprovalsItem.js +43 -0
- package/serialization/types/ApprovalResponseMessage.d.ts +4 -2
- package/serialization/types/ApprovalResponseMessage.js +4 -2
- package/serialization/types/ApprovalResponseMessageApprovalsItem.d.ts +12 -0
- package/serialization/types/ApprovalResponseMessageApprovalsItem.js +43 -0
- package/serialization/types/ApprovalReturn.d.ts +15 -0
- package/serialization/types/ApprovalReturn.js +46 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +5 -2
- package/serialization/types/LettaSchemasAgentFileMessageSchema.js +5 -2
- package/serialization/types/LettaSchemasLettaMessageToolReturn.d.ts +18 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturn.js +49 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.d.ts +10 -0
- package/serialization/types/LettaSchemasLettaMessageToolReturnStatus.js +41 -0
- package/serialization/types/LettaSchemasMessageToolReturn.d.ts +17 -0
- package/{dist/serialization/types/ActionResponseModel.js → serialization/types/LettaSchemasMessageToolReturn.js} +8 -7
- package/serialization/types/LettaSchemasMessageToolReturnStatus.d.ts +10 -0
- package/{dist/serialization/types/ToolReturnStatus.js → serialization/types/LettaSchemasMessageToolReturnStatus.js} +2 -2
- package/serialization/types/Message.d.ts +4 -2
- package/serialization/types/Message.js +4 -2
- package/serialization/types/MessageApprovalsItem.d.ts +12 -0
- package/serialization/types/MessageApprovalsItem.js +43 -0
- package/serialization/types/OmittedReasoningContent.d.ts +1 -0
- package/serialization/types/OmittedReasoningContent.js +1 -0
- package/serialization/types/Provider.d.ts +2 -0
- package/serialization/types/Provider.js +2 -0
- package/serialization/types/RunMetrics.d.ts +19 -0
- package/serialization/types/RunMetrics.js +50 -0
- package/serialization/types/SandboxEnvironmentVariable.d.ts +1 -0
- package/serialization/types/SandboxEnvironmentVariable.js +1 -0
- package/serialization/types/TextContent.d.ts +1 -0
- package/serialization/types/TextContent.js +1 -0
- package/serialization/types/ToolCallContent.d.ts +1 -0
- package/serialization/types/ToolCallContent.js +1 -0
- package/serialization/types/ToolCallMessage.d.ts +2 -0
- package/serialization/types/ToolCallMessage.js +2 -0
- package/serialization/types/ToolCallMessageToolCalls.d.ts +12 -0
- package/{dist/serialization/types/AppAuthSchemeAuthMode.js → serialization/types/ToolCallMessageToolCalls.js} +4 -13
- package/serialization/types/ToolReturnMessage.d.ts +2 -0
- package/serialization/types/ToolReturnMessage.js +2 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -1
- package/serialization/types/index.d.ts +10 -9
- package/serialization/types/index.js +10 -9
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/ActionModel.d.ts +0 -21
- package/api/types/ActionParametersModel.d.ts +0 -13
- package/api/types/ActionResponseModel.d.ts +0 -13
- package/api/types/AppAuthScheme.d.ts +0 -19
- package/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
- package/api/types/AppAuthSchemeAuthMode.js +0 -18
- package/api/types/AppModel.d.ts +0 -25
- package/api/types/AuthSchemeField.d.ts +0 -16
- package/dist/api/types/ActionModel.d.ts +0 -21
- package/dist/api/types/ActionParametersModel.d.ts +0 -13
- package/dist/api/types/ActionResponseModel.d.ts +0 -13
- package/dist/api/types/AppAuthScheme.d.ts +0 -19
- package/dist/api/types/AppAuthSchemeAuthMode.d.ts +0 -16
- package/dist/api/types/AppAuthSchemeAuthMode.js +0 -18
- package/dist/api/types/AppModel.d.ts +0 -25
- package/dist/api/types/AuthSchemeField.d.ts +0 -16
- package/dist/serialization/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
- package/dist/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
- package/dist/serialization/types/ActionModel.d.ts +0 -25
- package/dist/serialization/types/ActionModel.js +0 -56
- package/dist/serialization/types/ActionParametersModel.d.ts +0 -16
- package/dist/serialization/types/ActionResponseModel.d.ts +0 -16
- package/dist/serialization/types/AppAuthScheme.d.ts +0 -23
- package/dist/serialization/types/AppAuthScheme.js +0 -54
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
- package/dist/serialization/types/AppModel.d.ts +0 -28
- package/dist/serialization/types/AppModel.js +0 -61
- package/dist/serialization/types/AuthSchemeField.d.ts +0 -19
- package/dist/serialization/types/ToolReturn.d.ts +0 -15
- package/dist/serialization/types/ToolReturnStatus.d.ts +0 -10
- package/serialization/resources/tools/client/listComposioActionsByApp.d.ts +0 -11
- package/serialization/resources/tools/client/listComposioApps.d.ts +0 -11
- package/serialization/types/ActionModel.d.ts +0 -25
- package/serialization/types/ActionModel.js +0 -56
- package/serialization/types/ActionParametersModel.d.ts +0 -16
- package/serialization/types/ActionParametersModel.js +0 -47
- package/serialization/types/ActionResponseModel.d.ts +0 -16
- package/serialization/types/ActionResponseModel.js +0 -47
- package/serialization/types/AppAuthScheme.d.ts +0 -23
- package/serialization/types/AppAuthScheme.js +0 -54
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +0 -10
- package/serialization/types/AppModel.d.ts +0 -28
- package/serialization/types/AppModel.js +0 -61
- package/serialization/types/AuthSchemeField.d.ts +0 -19
- package/serialization/types/AuthSchemeField.js +0 -50
- package/serialization/types/ToolReturn.d.ts +0 -15
- package/serialization/types/ToolReturnStatus.d.ts +0 -10
- /package/api/{types/ActionModel.js → resources/agents/resources/blocks/client/requests/BlocksListRequest.js} +0 -0
- /package/api/{types/ActionParametersModel.js → resources/agents/resources/folders/client/requests/FoldersListRequest.js} +0 -0
- /package/api/{types/ActionResponseModel.js → resources/agents/resources/sources/client/requests/SourcesListRequest.js} +0 -0
- /package/api/{types/AppAuthScheme.js → resources/agents/resources/tools/client/requests/ToolsListRequest.js} +0 -0
- /package/api/{types/AppModel.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEnc.js} +0 -0
- /package/api/{types/AuthSchemeField.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemSecretsItemValueEncItem.js} +0 -0
- /package/api/{types/ToolReturn.js → resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEnc.js} +0 -0
- /package/{dist/api/types/ActionModel.js → api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemToolExecEnvironmentVariablesItemValueEncItem.js} +0 -0
- /package/{dist/api/types/ActionParametersModel.js → api/types/ApprovalCreateApprovalsItem.js} +0 -0
- /package/{dist/api/types/ActionResponseModel.js → api/types/ApprovalResponseMessageApprovalsItem.js} +0 -0
- /package/{dist/api/types/AppAuthScheme.js → api/types/ApprovalReturn.js} +0 -0
- /package/{dist/api/types/AppModel.js → api/types/LettaSchemasLettaMessageToolReturn.js} +0 -0
- /package/{dist/api/types/AuthSchemeField.js → api/types/LettaSchemasMessageToolReturn.js} +0 -0
- /package/{dist/api/types/ToolReturn.js → api/types/MessageApprovalsItem.js} +0 -0
|
@@ -70,7 +70,10 @@ class Files {
|
|
|
70
70
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.folders.files.upload(fs.createReadStream("/path/to/your/file"), "folder_id", {
|
|
73
|
+
* await client.folders.files.upload(fs.createReadStream("/path/to/your/file"), "folder_id", {
|
|
74
|
+
* duplicateHandling: "skip",
|
|
75
|
+
* name: "name"
|
|
76
|
+
* })
|
|
74
77
|
*/
|
|
75
78
|
upload(file, folderId, request, requestOptions) {
|
|
76
79
|
return core.HttpResponsePromise.fromPromise(this.__upload(file, folderId, request, requestOptions));
|
|
@@ -93,7 +96,7 @@ class Files {
|
|
|
93
96
|
method: "POST",
|
|
94
97
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
98
|
? 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": "1.0.0-alpha.
|
|
99
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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
100
|
queryParameters: _queryParams,
|
|
98
101
|
requestType: "file",
|
|
99
102
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -159,7 +162,14 @@ class Files {
|
|
|
159
162
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
160
163
|
*
|
|
161
164
|
* @example
|
|
162
|
-
* await client.folders.files.list("folder_id"
|
|
165
|
+
* await client.folders.files.list("folder_id", {
|
|
166
|
+
* before: "before",
|
|
167
|
+
* after: "after",
|
|
168
|
+
* limit: 1,
|
|
169
|
+
* order: "asc",
|
|
170
|
+
* orderBy: "created_at",
|
|
171
|
+
* includeContent: true
|
|
172
|
+
* })
|
|
163
173
|
*/
|
|
164
174
|
list(folderId, request = {}, requestOptions) {
|
|
165
175
|
return core.HttpResponsePromise.fromPromise(this.__list(folderId, request, requestOptions));
|
|
@@ -194,7 +204,7 @@ class Files {
|
|
|
194
204
|
method: "GET",
|
|
195
205
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
196
206
|
? yield core.Supplier.get(this._options.project)
|
|
197
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
207
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
198
208
|
contentType: "application/json",
|
|
199
209
|
queryParameters: _queryParams,
|
|
200
210
|
requestType: "json",
|
|
@@ -272,7 +282,7 @@ class Files {
|
|
|
272
282
|
method: "DELETE",
|
|
273
283
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
274
284
|
? yield core.Supplier.get(this._options.project)
|
|
275
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
285
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
276
286
|
contentType: "application/json",
|
|
277
287
|
requestType: "json",
|
|
278
288
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
import * as Letta from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* orderBy: "created_at",
|
|
13
|
+
* includeContent: true
|
|
14
|
+
* }
|
|
8
15
|
*/
|
|
9
16
|
export interface FilesListRequest {
|
|
10
17
|
/**
|
|
@@ -40,7 +40,13 @@ export declare class Passages {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.folders.passages.list("folder_id"
|
|
43
|
+
* await client.folders.passages.list("folder_id", {
|
|
44
|
+
* before: "before",
|
|
45
|
+
* after: "after",
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* order: "asc",
|
|
48
|
+
* orderBy: "created_at"
|
|
49
|
+
* })
|
|
44
50
|
*/
|
|
45
51
|
list(folderId: string, request?: Letta.folders.PassagesListRequest, requestOptions?: Passages.RequestOptions): core.HttpResponsePromise<Letta.Passage[]>;
|
|
46
52
|
private __list;
|
|
@@ -69,7 +69,13 @@ class Passages {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.folders.passages.list("folder_id"
|
|
72
|
+
* await client.folders.passages.list("folder_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at"
|
|
78
|
+
* })
|
|
73
79
|
*/
|
|
74
80
|
list(folderId, request = {}, requestOptions) {
|
|
75
81
|
return core.HttpResponsePromise.fromPromise(this.__list(folderId, request, requestOptions));
|
|
@@ -101,7 +107,7 @@ class Passages {
|
|
|
101
107
|
method: "GET",
|
|
102
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
103
109
|
? yield core.Supplier.get(this._options.project)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
105
111
|
contentType: "application/json",
|
|
106
112
|
queryParameters: _queryParams,
|
|
107
113
|
requestType: "json",
|
|
@@ -42,7 +42,15 @@ export declare class Groups {
|
|
|
42
42
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.groups.list(
|
|
45
|
+
* await client.groups.list({
|
|
46
|
+
* managerType: "round_robin",
|
|
47
|
+
* before: "before",
|
|
48
|
+
* after: "after",
|
|
49
|
+
* limit: 1,
|
|
50
|
+
* order: "asc",
|
|
51
|
+
* orderBy: "created_at",
|
|
52
|
+
* projectId: "project_id"
|
|
53
|
+
* })
|
|
46
54
|
*/
|
|
47
55
|
list(request?: Letta.GroupsListRequest, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Letta.Group[]>;
|
|
48
56
|
private __list;
|
|
@@ -73,7 +73,15 @@ class Groups {
|
|
|
73
73
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
|
-
* await client.groups.list(
|
|
76
|
+
* await client.groups.list({
|
|
77
|
+
* managerType: "round_robin",
|
|
78
|
+
* before: "before",
|
|
79
|
+
* after: "after",
|
|
80
|
+
* limit: 1,
|
|
81
|
+
* order: "asc",
|
|
82
|
+
* orderBy: "created_at",
|
|
83
|
+
* projectId: "project_id"
|
|
84
|
+
* })
|
|
77
85
|
*/
|
|
78
86
|
list(request = {}, requestOptions) {
|
|
79
87
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -113,7 +121,7 @@ class Groups {
|
|
|
113
121
|
method: "GET",
|
|
114
122
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
115
123
|
? yield core.Supplier.get(this._options.project)
|
|
116
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
124
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
117
125
|
contentType: "application/json",
|
|
118
126
|
queryParameters: _queryParams,
|
|
119
127
|
requestType: "json",
|
|
@@ -193,7 +201,7 @@ class Groups {
|
|
|
193
201
|
method: "POST",
|
|
194
202
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
195
203
|
? yield core.Supplier.get(this._options.project)
|
|
196
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
204
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
197
205
|
contentType: "application/json",
|
|
198
206
|
requestType: "json",
|
|
199
207
|
body: serializers.GroupCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -269,7 +277,7 @@ class Groups {
|
|
|
269
277
|
method: "GET",
|
|
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": "1.0.0-alpha.
|
|
280
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -345,7 +353,7 @@ class Groups {
|
|
|
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": "1.0.0-alpha.
|
|
356
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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,
|
|
@@ -421,7 +429,7 @@ class Groups {
|
|
|
421
429
|
method: "DELETE",
|
|
422
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
423
431
|
? yield core.Supplier.get(this._options.project)
|
|
424
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
432
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
425
433
|
contentType: "application/json",
|
|
426
434
|
requestType: "json",
|
|
427
435
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -489,7 +497,7 @@ class Groups {
|
|
|
489
497
|
method: "PATCH",
|
|
490
498
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
491
499
|
? yield core.Supplier.get(this._options.project)
|
|
492
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
500
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
493
501
|
contentType: "application/json",
|
|
494
502
|
requestType: "json",
|
|
495
503
|
body: serializers.GroupUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,7 +4,15 @@
|
|
|
4
4
|
import * as Letta from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* managerType: "round_robin",
|
|
9
|
+
* before: "before",
|
|
10
|
+
* after: "after",
|
|
11
|
+
* limit: 1,
|
|
12
|
+
* order: "asc",
|
|
13
|
+
* orderBy: "created_at",
|
|
14
|
+
* projectId: "project_id"
|
|
15
|
+
* }
|
|
8
16
|
*/
|
|
9
17
|
export interface GroupsListRequest {
|
|
10
18
|
/**
|
|
@@ -40,7 +40,16 @@ export declare class Messages {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.groups.messages.list("group_id"
|
|
43
|
+
* await client.groups.messages.list("group_id", {
|
|
44
|
+
* before: "before",
|
|
45
|
+
* after: "after",
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* order: "asc",
|
|
48
|
+
* orderBy: "created_at",
|
|
49
|
+
* useAssistantMessage: true,
|
|
50
|
+
* assistantMessageToolName: "assistant_message_tool_name",
|
|
51
|
+
* assistantMessageToolKwarg: "assistant_message_tool_kwarg"
|
|
52
|
+
* })
|
|
44
53
|
*/
|
|
45
54
|
list(groupId: string, request?: Letta.groups.MessagesListRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Letta.LettaMessageUnion[]>;
|
|
46
55
|
private __list;
|
|
@@ -69,7 +69,16 @@ class Messages {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.groups.messages.list("group_id"
|
|
72
|
+
* await client.groups.messages.list("group_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at",
|
|
78
|
+
* useAssistantMessage: true,
|
|
79
|
+
* assistantMessageToolName: "assistant_message_tool_name",
|
|
80
|
+
* assistantMessageToolKwarg: "assistant_message_tool_kwarg"
|
|
81
|
+
* })
|
|
73
82
|
*/
|
|
74
83
|
list(groupId, request = {}, requestOptions) {
|
|
75
84
|
return core.HttpResponsePromise.fromPromise(this.__list(groupId, request, requestOptions));
|
|
@@ -110,7 +119,7 @@ class Messages {
|
|
|
110
119
|
method: "GET",
|
|
111
120
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
112
121
|
? yield core.Supplier.get(this._options.project)
|
|
113
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
122
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
114
123
|
contentType: "application/json",
|
|
115
124
|
queryParameters: _queryParams,
|
|
116
125
|
requestType: "json",
|
|
@@ -197,7 +206,7 @@ class Messages {
|
|
|
197
206
|
method: "POST",
|
|
198
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
199
208
|
? yield core.Supplier.get(this._options.project)
|
|
200
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
201
210
|
contentType: "application/json",
|
|
202
211
|
requestType: "json",
|
|
203
212
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -268,7 +277,7 @@ class Messages {
|
|
|
268
277
|
method: "POST",
|
|
269
278
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
270
279
|
? yield core.Supplier.get(this._options.project)
|
|
271
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
280
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
272
281
|
contentType: "application/json",
|
|
273
282
|
requestType: "json",
|
|
274
283
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -360,7 +369,7 @@ class Messages {
|
|
|
360
369
|
method: "PATCH",
|
|
361
370
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
362
371
|
? yield core.Supplier.get(this._options.project)
|
|
363
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
372
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
364
373
|
contentType: "application/json",
|
|
365
374
|
requestType: "json",
|
|
366
375
|
body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -437,7 +446,7 @@ class Messages {
|
|
|
437
446
|
method: "PATCH",
|
|
438
447
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
439
448
|
? yield core.Supplier.get(this._options.project)
|
|
440
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
449
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
441
450
|
contentType: "application/json",
|
|
442
451
|
requestType: "json",
|
|
443
452
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -4,7 +4,16 @@
|
|
|
4
4
|
import * as Letta from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* orderBy: "created_at",
|
|
13
|
+
* useAssistantMessage: true,
|
|
14
|
+
* assistantMessageToolName: "assistant_message_tool_name",
|
|
15
|
+
* assistantMessageToolKwarg: "assistant_message_tool_kwarg"
|
|
16
|
+
* }
|
|
8
17
|
*/
|
|
9
18
|
export interface MessagesListRequest {
|
|
10
19
|
/**
|
|
@@ -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": "1.0.0-alpha.
|
|
78
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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,
|
|
@@ -48,7 +48,17 @@ export declare class Identities {
|
|
|
48
48
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
|
-
* await client.identities.list(
|
|
51
|
+
* await client.identities.list({
|
|
52
|
+
* name: "name",
|
|
53
|
+
* projectId: "project_id",
|
|
54
|
+
* identifierKey: "identifier_key",
|
|
55
|
+
* identityType: "org",
|
|
56
|
+
* before: "before",
|
|
57
|
+
* after: "after",
|
|
58
|
+
* limit: 1,
|
|
59
|
+
* order: "asc",
|
|
60
|
+
* orderBy: "created_at"
|
|
61
|
+
* })
|
|
52
62
|
*/
|
|
53
63
|
list(request?: Letta.IdentitiesListRequest, requestOptions?: Identities.RequestOptions): core.HttpResponsePromise<Letta.Identity[]>;
|
|
54
64
|
private __list;
|
|
@@ -83,7 +83,17 @@ class Identities {
|
|
|
83
83
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
|
-
* await client.identities.list(
|
|
86
|
+
* await client.identities.list({
|
|
87
|
+
* name: "name",
|
|
88
|
+
* projectId: "project_id",
|
|
89
|
+
* identifierKey: "identifier_key",
|
|
90
|
+
* identityType: "org",
|
|
91
|
+
* before: "before",
|
|
92
|
+
* after: "after",
|
|
93
|
+
* limit: 1,
|
|
94
|
+
* order: "asc",
|
|
95
|
+
* orderBy: "created_at"
|
|
96
|
+
* })
|
|
87
97
|
*/
|
|
88
98
|
list(request = {}, requestOptions) {
|
|
89
99
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -129,7 +139,7 @@ class Identities {
|
|
|
129
139
|
method: "GET",
|
|
130
140
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
131
141
|
? yield core.Supplier.get(this._options.project)
|
|
132
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
142
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
133
143
|
contentType: "application/json",
|
|
134
144
|
queryParameters: _queryParams,
|
|
135
145
|
requestType: "json",
|
|
@@ -208,7 +218,7 @@ class Identities {
|
|
|
208
218
|
method: "POST",
|
|
209
219
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
210
220
|
? yield core.Supplier.get(this._options.project)
|
|
211
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
221
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
212
222
|
contentType: "application/json",
|
|
213
223
|
requestType: "json",
|
|
214
224
|
body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -287,7 +297,7 @@ class Identities {
|
|
|
287
297
|
method: "PUT",
|
|
288
298
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
289
299
|
? yield core.Supplier.get(this._options.project)
|
|
290
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
300
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
291
301
|
contentType: "application/json",
|
|
292
302
|
requestType: "json",
|
|
293
303
|
body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -363,7 +373,7 @@ class Identities {
|
|
|
363
373
|
method: "GET",
|
|
364
374
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
365
375
|
? yield core.Supplier.get(this._options.project)
|
|
366
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
376
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
367
377
|
contentType: "application/json",
|
|
368
378
|
requestType: "json",
|
|
369
379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -437,7 +447,7 @@ class Identities {
|
|
|
437
447
|
method: "GET",
|
|
438
448
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
439
449
|
? yield core.Supplier.get(this._options.project)
|
|
440
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
450
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
441
451
|
contentType: "application/json",
|
|
442
452
|
requestType: "json",
|
|
443
453
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -513,7 +523,7 @@ class Identities {
|
|
|
513
523
|
method: "DELETE",
|
|
514
524
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
515
525
|
? yield core.Supplier.get(this._options.project)
|
|
516
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
526
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
517
527
|
contentType: "application/json",
|
|
518
528
|
requestType: "json",
|
|
519
529
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -579,7 +589,7 @@ class Identities {
|
|
|
579
589
|
method: "PATCH",
|
|
580
590
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
581
591
|
? yield core.Supplier.get(this._options.project)
|
|
582
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
592
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
583
593
|
contentType: "application/json",
|
|
584
594
|
requestType: "json",
|
|
585
595
|
body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,7 +4,17 @@
|
|
|
4
4
|
import * as Letta from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* name: "name",
|
|
9
|
+
* projectId: "project_id",
|
|
10
|
+
* identifierKey: "identifier_key",
|
|
11
|
+
* identityType: "org",
|
|
12
|
+
* before: "before",
|
|
13
|
+
* after: "after",
|
|
14
|
+
* limit: 1,
|
|
15
|
+
* order: "asc",
|
|
16
|
+
* orderBy: "created_at"
|
|
17
|
+
* }
|
|
8
18
|
*/
|
|
9
19
|
export interface IdentitiesListRequest {
|
|
10
20
|
name?: string;
|
|
@@ -40,7 +40,13 @@ export declare class Agents {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.identities.agents.list("identity_id"
|
|
43
|
+
* await client.identities.agents.list("identity_id", {
|
|
44
|
+
* before: "before",
|
|
45
|
+
* after: "after",
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* order: "asc",
|
|
48
|
+
* orderBy: "created_at"
|
|
49
|
+
* })
|
|
44
50
|
*/
|
|
45
51
|
list(identityId: string, request?: Letta.identities.AgentsListRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState[]>;
|
|
46
52
|
private __list;
|
|
@@ -69,7 +69,13 @@ class Agents {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.identities.agents.list("identity_id"
|
|
72
|
+
* await client.identities.agents.list("identity_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at"
|
|
78
|
+
* })
|
|
73
79
|
*/
|
|
74
80
|
list(identityId, request = {}, requestOptions) {
|
|
75
81
|
return core.HttpResponsePromise.fromPromise(this.__list(identityId, request, requestOptions));
|
|
@@ -101,7 +107,7 @@ class Agents {
|
|
|
101
107
|
method: "GET",
|
|
102
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
103
109
|
? yield core.Supplier.get(this._options.project)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
105
111
|
contentType: "application/json",
|
|
106
112
|
queryParameters: _queryParams,
|
|
107
113
|
requestType: "json",
|
|
@@ -40,7 +40,13 @@ export declare class Blocks {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.identities.blocks.list("identity_id"
|
|
43
|
+
* await client.identities.blocks.list("identity_id", {
|
|
44
|
+
* before: "before",
|
|
45
|
+
* after: "after",
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* order: "asc",
|
|
48
|
+
* orderBy: "created_at"
|
|
49
|
+
* })
|
|
44
50
|
*/
|
|
45
51
|
list(identityId: string, request?: Letta.identities.BlocksListRequest, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block[]>;
|
|
46
52
|
private __list;
|
|
@@ -69,7 +69,13 @@ class Blocks {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.identities.blocks.list("identity_id"
|
|
72
|
+
* await client.identities.blocks.list("identity_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at"
|
|
78
|
+
* })
|
|
73
79
|
*/
|
|
74
80
|
list(identityId, request = {}, requestOptions) {
|
|
75
81
|
return core.HttpResponsePromise.fromPromise(this.__list(identityId, request, requestOptions));
|
|
@@ -101,7 +107,7 @@ class Blocks {
|
|
|
101
107
|
method: "GET",
|
|
102
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
103
109
|
? yield core.Supplier.get(this._options.project)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "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),
|
|
105
111
|
contentType: "application/json",
|
|
106
112
|
queryParameters: _queryParams,
|
|
107
113
|
requestType: "json",
|