@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
|
@@ -84,7 +84,7 @@ class Files {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
87
|
+
: 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),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -165,7 +165,7 @@ class Files {
|
|
|
165
165
|
method: "PATCH",
|
|
166
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
167
167
|
? yield core.Supplier.get(this._options.project)
|
|
168
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
168
|
+
: 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),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,7 +245,7 @@ class Files {
|
|
|
245
245
|
method: "PATCH",
|
|
246
246
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
247
247
|
? yield core.Supplier.get(this._options.project)
|
|
248
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
248
|
+
: 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),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
requestType: "json",
|
|
251
251
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -300,7 +300,15 @@ class Files {
|
|
|
300
300
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
301
301
|
*
|
|
302
302
|
* @example
|
|
303
|
-
* await client.agents.files.list("agent_id"
|
|
303
|
+
* await client.agents.files.list("agent_id", {
|
|
304
|
+
* before: "before",
|
|
305
|
+
* after: "after",
|
|
306
|
+
* limit: 1,
|
|
307
|
+
* order: "asc",
|
|
308
|
+
* orderBy: "created_at",
|
|
309
|
+
* cursor: "cursor",
|
|
310
|
+
* isOpen: true
|
|
311
|
+
* })
|
|
304
312
|
*/
|
|
305
313
|
list(agentId, request = {}, requestOptions) {
|
|
306
314
|
return core.HttpResponsePromise.fromPromise(this.__list(agentId, request, requestOptions));
|
|
@@ -308,14 +316,28 @@ class Files {
|
|
|
308
316
|
__list(agentId_1) {
|
|
309
317
|
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
310
318
|
var _a, _b, _c;
|
|
311
|
-
const {
|
|
319
|
+
const { before, after, limit, order, orderBy, cursor, isOpen } = request;
|
|
312
320
|
const _queryParams = {};
|
|
313
|
-
if (
|
|
314
|
-
_queryParams["
|
|
321
|
+
if (before != null) {
|
|
322
|
+
_queryParams["before"] = before;
|
|
323
|
+
}
|
|
324
|
+
if (after != null) {
|
|
325
|
+
_queryParams["after"] = after;
|
|
315
326
|
}
|
|
316
327
|
if (limit != null) {
|
|
317
328
|
_queryParams["limit"] = limit.toString();
|
|
318
329
|
}
|
|
330
|
+
if (order != null) {
|
|
331
|
+
_queryParams["order"] = serializers.agents.FilesListRequestOrder.jsonOrThrow(order, {
|
|
332
|
+
unrecognizedObjectKeys: "strip",
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
if (orderBy != null) {
|
|
336
|
+
_queryParams["order_by"] = orderBy;
|
|
337
|
+
}
|
|
338
|
+
if (cursor != null) {
|
|
339
|
+
_queryParams["cursor"] = cursor;
|
|
340
|
+
}
|
|
319
341
|
if (isOpen != null) {
|
|
320
342
|
_queryParams["is_open"] = isOpen.toString();
|
|
321
343
|
}
|
|
@@ -324,7 +346,7 @@ class Files {
|
|
|
324
346
|
method: "GET",
|
|
325
347
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
326
348
|
? yield core.Supplier.get(this._options.project)
|
|
327
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
349
|
+
: 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),
|
|
328
350
|
contentType: "application/json",
|
|
329
351
|
queryParameters: _queryParams,
|
|
330
352
|
requestType: "json",
|
|
@@ -1,19 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* orderBy: "created_at",
|
|
13
|
+
* cursor: "cursor",
|
|
14
|
+
* isOpen: true
|
|
15
|
+
* }
|
|
7
16
|
*/
|
|
8
17
|
export interface FilesListRequest {
|
|
9
18
|
/**
|
|
10
|
-
*
|
|
19
|
+
* File ID cursor for pagination. Returns files that come before this file ID in the specified sort order
|
|
11
20
|
*/
|
|
12
|
-
|
|
21
|
+
before?: string;
|
|
22
|
+
/**
|
|
23
|
+
* File ID cursor for pagination. Returns files that come after this file ID in the specified sort order
|
|
24
|
+
*/
|
|
25
|
+
after?: string;
|
|
13
26
|
/**
|
|
14
|
-
*
|
|
27
|
+
* Maximum number of files to return
|
|
15
28
|
*/
|
|
16
29
|
limit?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Sort order for files by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
32
|
+
*/
|
|
33
|
+
order?: Letta.agents.FilesListRequestOrder;
|
|
34
|
+
/**
|
|
35
|
+
* Field to sort by
|
|
36
|
+
*/
|
|
37
|
+
orderBy?: "created_at";
|
|
38
|
+
/**
|
|
39
|
+
* Pagination cursor from previous response (deprecated, use before/after)
|
|
40
|
+
*/
|
|
41
|
+
cursor?: string;
|
|
17
42
|
/**
|
|
18
43
|
* Filter by open status (true for open files, false for closed files)
|
|
19
44
|
*/
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for files by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type FilesListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const FilesListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FilesListRequestOrder = void 0;
|
|
7
|
+
exports.FilesListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FilesListRequestOrder";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FilesListRequestOrder"), exports);
|
|
@@ -62,14 +62,21 @@ export declare class Folders {
|
|
|
62
62
|
* Get the folders associated with an agent.
|
|
63
63
|
*
|
|
64
64
|
* @param {string} agentId
|
|
65
|
+
* @param {Letta.agents.FoldersListRequest} request
|
|
65
66
|
* @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
67
|
*
|
|
67
68
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
68
69
|
*
|
|
69
70
|
* @example
|
|
70
|
-
* await client.agents.folders.list("agent_id"
|
|
71
|
+
* await client.agents.folders.list("agent_id", {
|
|
72
|
+
* before: "before",
|
|
73
|
+
* after: "after",
|
|
74
|
+
* limit: 1,
|
|
75
|
+
* order: "asc",
|
|
76
|
+
* orderBy: "created_at"
|
|
77
|
+
* })
|
|
71
78
|
*/
|
|
72
|
-
list(agentId: string, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Source[]>;
|
|
79
|
+
list(agentId: string, request?: Letta.agents.FoldersListRequest, requestOptions?: Folders.RequestOptions): core.HttpResponsePromise<Letta.Source[]>;
|
|
73
80
|
private __list;
|
|
74
81
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
75
82
|
Authorization: string;
|
|
@@ -82,7 +82,7 @@ class Folders {
|
|
|
82
82
|
method: "PATCH",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
85
|
+
: 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),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Folders {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
162
|
+
: 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),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -217,26 +217,53 @@ class Folders {
|
|
|
217
217
|
* Get the folders associated with an agent.
|
|
218
218
|
*
|
|
219
219
|
* @param {string} agentId
|
|
220
|
+
* @param {Letta.agents.FoldersListRequest} request
|
|
220
221
|
* @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
222
|
*
|
|
222
223
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
223
224
|
*
|
|
224
225
|
* @example
|
|
225
|
-
* await client.agents.folders.list("agent_id"
|
|
226
|
+
* await client.agents.folders.list("agent_id", {
|
|
227
|
+
* before: "before",
|
|
228
|
+
* after: "after",
|
|
229
|
+
* limit: 1,
|
|
230
|
+
* order: "asc",
|
|
231
|
+
* orderBy: "created_at"
|
|
232
|
+
* })
|
|
226
233
|
*/
|
|
227
|
-
list(agentId, requestOptions) {
|
|
228
|
-
return core.HttpResponsePromise.fromPromise(this.__list(agentId, requestOptions));
|
|
234
|
+
list(agentId, request = {}, requestOptions) {
|
|
235
|
+
return core.HttpResponsePromise.fromPromise(this.__list(agentId, request, requestOptions));
|
|
229
236
|
}
|
|
230
|
-
__list(
|
|
231
|
-
return __awaiter(this,
|
|
237
|
+
__list(agentId_1) {
|
|
238
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
232
239
|
var _a, _b, _c;
|
|
240
|
+
const { before, after, limit, order, orderBy } = request;
|
|
241
|
+
const _queryParams = {};
|
|
242
|
+
if (before != null) {
|
|
243
|
+
_queryParams["before"] = before;
|
|
244
|
+
}
|
|
245
|
+
if (after != null) {
|
|
246
|
+
_queryParams["after"] = after;
|
|
247
|
+
}
|
|
248
|
+
if (limit != null) {
|
|
249
|
+
_queryParams["limit"] = limit.toString();
|
|
250
|
+
}
|
|
251
|
+
if (order != null) {
|
|
252
|
+
_queryParams["order"] = serializers.agents.FoldersListRequestOrder.jsonOrThrow(order, {
|
|
253
|
+
unrecognizedObjectKeys: "strip",
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
if (orderBy != null) {
|
|
257
|
+
_queryParams["order_by"] = orderBy;
|
|
258
|
+
}
|
|
233
259
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
234
260
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/folders`),
|
|
235
261
|
method: "GET",
|
|
236
262
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
263
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
264
|
+
: 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),
|
|
239
265
|
contentType: "application/json",
|
|
266
|
+
queryParameters: _queryParams,
|
|
240
267
|
requestType: "json",
|
|
241
268
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
242
269
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* orderBy: "created_at"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface FoldersListRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order
|
|
18
|
+
*/
|
|
19
|
+
before?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Source ID cursor for pagination. Returns sources that come after this source ID in the specified sort order
|
|
22
|
+
*/
|
|
23
|
+
after?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum number of sources to return
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Sort order for sources by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
30
|
+
*/
|
|
31
|
+
order?: Letta.agents.FoldersListRequestOrder;
|
|
32
|
+
/**
|
|
33
|
+
* Field to sort by
|
|
34
|
+
*/
|
|
35
|
+
orderBy?: "created_at";
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type FoldersListRequest } from "./FoldersListRequest";
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for sources by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type FoldersListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const FoldersListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FoldersListRequestOrder = void 0;
|
|
7
|
+
exports.FoldersListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FoldersListRequestOrder";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FoldersListRequestOrder"), exports);
|
|
@@ -40,7 +40,14 @@ export declare class Groups {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.agents.groups.list("agent_id"
|
|
43
|
+
* await client.agents.groups.list("agent_id", {
|
|
44
|
+
* managerType: "manager_type",
|
|
45
|
+
* before: "before",
|
|
46
|
+
* after: "after",
|
|
47
|
+
* limit: 1,
|
|
48
|
+
* order: "asc",
|
|
49
|
+
* orderBy: "created_at"
|
|
50
|
+
* })
|
|
44
51
|
*/
|
|
45
52
|
list(agentId: string, request?: Letta.agents.GroupsListRequest, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Letta.Group[]>;
|
|
46
53
|
private __list;
|
|
@@ -52,8 +52,8 @@ exports.Groups = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../../../core"));
|
|
54
54
|
const Letta = __importStar(require("../../../../../index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
55
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
58
58
|
class Groups {
|
|
59
59
|
constructor(_options = {}) {
|
|
@@ -69,7 +69,14 @@ class Groups {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.agents.groups.list("agent_id"
|
|
72
|
+
* await client.agents.groups.list("agent_id", {
|
|
73
|
+
* managerType: "manager_type",
|
|
74
|
+
* before: "before",
|
|
75
|
+
* after: "after",
|
|
76
|
+
* limit: 1,
|
|
77
|
+
* order: "asc",
|
|
78
|
+
* orderBy: "created_at"
|
|
79
|
+
* })
|
|
73
80
|
*/
|
|
74
81
|
list(agentId, request = {}, requestOptions) {
|
|
75
82
|
return core.HttpResponsePromise.fromPromise(this.__list(agentId, request, requestOptions));
|
|
@@ -77,17 +84,34 @@ class Groups {
|
|
|
77
84
|
__list(agentId_1) {
|
|
78
85
|
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
79
86
|
var _a, _b, _c;
|
|
80
|
-
const { managerType } = request;
|
|
87
|
+
const { managerType, before, after, limit, order, orderBy } = request;
|
|
81
88
|
const _queryParams = {};
|
|
82
89
|
if (managerType != null) {
|
|
83
90
|
_queryParams["manager_type"] = managerType;
|
|
84
91
|
}
|
|
92
|
+
if (before != null) {
|
|
93
|
+
_queryParams["before"] = before;
|
|
94
|
+
}
|
|
95
|
+
if (after != null) {
|
|
96
|
+
_queryParams["after"] = after;
|
|
97
|
+
}
|
|
98
|
+
if (limit != null) {
|
|
99
|
+
_queryParams["limit"] = limit.toString();
|
|
100
|
+
}
|
|
101
|
+
if (order != null) {
|
|
102
|
+
_queryParams["order"] = serializers.agents.GroupsListRequestOrder.jsonOrThrow(order, {
|
|
103
|
+
unrecognizedObjectKeys: "strip",
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
if (orderBy != null) {
|
|
107
|
+
_queryParams["order_by"] = orderBy;
|
|
108
|
+
}
|
|
85
109
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
86
110
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/groups`),
|
|
87
111
|
method: "GET",
|
|
88
112
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
113
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
114
|
+
: 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),
|
|
91
115
|
contentType: "application/json",
|
|
92
116
|
queryParameters: _queryParams,
|
|
93
117
|
requestType: "json",
|
|
@@ -1,13 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* managerType: "manager_type",
|
|
9
|
+
* before: "before",
|
|
10
|
+
* after: "after",
|
|
11
|
+
* limit: 1,
|
|
12
|
+
* order: "asc",
|
|
13
|
+
* orderBy: "created_at"
|
|
14
|
+
* }
|
|
7
15
|
*/
|
|
8
16
|
export interface GroupsListRequest {
|
|
9
17
|
/**
|
|
10
18
|
* Manager type to filter groups by
|
|
11
19
|
*/
|
|
12
20
|
managerType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Group ID cursor for pagination. Returns groups that come before this group ID in the specified sort order
|
|
23
|
+
*/
|
|
24
|
+
before?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Group ID cursor for pagination. Returns groups that come after this group ID in the specified sort order
|
|
27
|
+
*/
|
|
28
|
+
after?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Maximum number of groups to return
|
|
31
|
+
*/
|
|
32
|
+
limit?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
35
|
+
*/
|
|
36
|
+
order?: Letta.agents.GroupsListRequestOrder;
|
|
37
|
+
/**
|
|
38
|
+
* Field to sort by
|
|
39
|
+
*/
|
|
40
|
+
orderBy?: "created_at";
|
|
13
41
|
}
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Sort order for groups by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type GroupsListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const GroupsListRequestOrder: {
|
|
9
|
+
readonly Asc: "asc";
|
|
10
|
+
readonly Desc: "desc";
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GroupsListRequestOrder = void 0;
|
|
7
|
+
exports.GroupsListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GroupsListRequestOrder";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./GroupsListRequestOrder"), exports);
|