@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
|
@@ -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 SourcesListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const SourcesListRequestOrder: {
|
|
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.SourcesListRequestOrder = void 0;
|
|
7
|
+
exports.SourcesListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SourcesListRequestOrder";
|
|
@@ -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("./SourcesListRequestOrder"), exports);
|
|
@@ -84,7 +84,7 @@ class Templates {
|
|
|
84
84
|
method: "POST",
|
|
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
|
body: serializers.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -150,7 +150,7 @@ class Templates {
|
|
|
150
150
|
method: "POST",
|
|
151
151
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
152
152
|
? yield core.Supplier.get(this._options.project)
|
|
153
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
153
|
+
: 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),
|
|
154
154
|
contentType: "application/json",
|
|
155
155
|
requestType: "json",
|
|
156
156
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -206,7 +206,7 @@ class Templates {
|
|
|
206
206
|
method: "POST",
|
|
207
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
208
208
|
? yield core.Supplier.get(this._options.project)
|
|
209
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
requestType: "json",
|
|
212
212
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -34,14 +34,21 @@ export declare class Tools {
|
|
|
34
34
|
* Get tools from an existing agent
|
|
35
35
|
*
|
|
36
36
|
* @param {string} agentId
|
|
37
|
+
* @param {Letta.agents.ToolsListRequest} request
|
|
37
38
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
39
|
*
|
|
39
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
|
-
* await client.agents.tools.list("agent_id"
|
|
43
|
+
* await client.agents.tools.list("agent_id", {
|
|
44
|
+
* before: "before",
|
|
45
|
+
* after: "after",
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* order: "asc",
|
|
48
|
+
* orderBy: "created_at"
|
|
49
|
+
* })
|
|
43
50
|
*/
|
|
44
|
-
list(agentId: string, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.Tool[]>;
|
|
51
|
+
list(agentId: string, request?: Letta.agents.ToolsListRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.Tool[]>;
|
|
45
52
|
private __list;
|
|
46
53
|
/**
|
|
47
54
|
* Attach a tool to an agent.
|
|
@@ -52,8 +52,8 @@ exports.Tools = 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 Tools {
|
|
59
59
|
constructor(_options = {}) {
|
|
@@ -63,26 +63,53 @@ class Tools {
|
|
|
63
63
|
* Get tools from an existing agent
|
|
64
64
|
*
|
|
65
65
|
* @param {string} agentId
|
|
66
|
+
* @param {Letta.agents.ToolsListRequest} request
|
|
66
67
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
68
|
*
|
|
68
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
70
|
*
|
|
70
71
|
* @example
|
|
71
|
-
* await client.agents.tools.list("agent_id"
|
|
72
|
+
* await client.agents.tools.list("agent_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at"
|
|
78
|
+
* })
|
|
72
79
|
*/
|
|
73
|
-
list(agentId, requestOptions) {
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.__list(agentId, requestOptions));
|
|
80
|
+
list(agentId, request = {}, requestOptions) {
|
|
81
|
+
return core.HttpResponsePromise.fromPromise(this.__list(agentId, request, requestOptions));
|
|
75
82
|
}
|
|
76
|
-
__list(
|
|
77
|
-
return __awaiter(this,
|
|
83
|
+
__list(agentId_1) {
|
|
84
|
+
return __awaiter(this, arguments, void 0, function* (agentId, request = {}, requestOptions) {
|
|
78
85
|
var _a, _b, _c;
|
|
86
|
+
const { before, after, limit, order, orderBy } = request;
|
|
87
|
+
const _queryParams = {};
|
|
88
|
+
if (before != null) {
|
|
89
|
+
_queryParams["before"] = before;
|
|
90
|
+
}
|
|
91
|
+
if (after != null) {
|
|
92
|
+
_queryParams["after"] = after;
|
|
93
|
+
}
|
|
94
|
+
if (limit != null) {
|
|
95
|
+
_queryParams["limit"] = limit.toString();
|
|
96
|
+
}
|
|
97
|
+
if (order != null) {
|
|
98
|
+
_queryParams["order"] = serializers.agents.ToolsListRequestOrder.jsonOrThrow(order, {
|
|
99
|
+
unrecognizedObjectKeys: "strip",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
if (orderBy != null) {
|
|
103
|
+
_queryParams["order_by"] = orderBy;
|
|
104
|
+
}
|
|
79
105
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
80
106
|
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)}/tools`),
|
|
81
107
|
method: "GET",
|
|
82
108
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
109
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
110
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.2", "User-Agent": "@letta-ai/letta-client/1.0.0-alpha.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
111
|
contentType: "application/json",
|
|
112
|
+
queryParameters: _queryParams,
|
|
86
113
|
requestType: "json",
|
|
87
114
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
115
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -158,7 +185,7 @@ class Tools {
|
|
|
158
185
|
method: "PATCH",
|
|
159
186
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
160
187
|
? yield core.Supplier.get(this._options.project)
|
|
161
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
188
|
+
: 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),
|
|
162
189
|
contentType: "application/json",
|
|
163
190
|
requestType: "json",
|
|
164
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +262,7 @@ class Tools {
|
|
|
235
262
|
method: "PATCH",
|
|
236
263
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
264
|
? 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.
|
|
265
|
+
: 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
266
|
contentType: "application/json",
|
|
240
267
|
requestType: "json",
|
|
241
268
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -318,7 +345,7 @@ class Tools {
|
|
|
318
345
|
method: "PATCH",
|
|
319
346
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
320
347
|
? yield core.Supplier.get(this._options.project)
|
|
321
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
348
|
+
: 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),
|
|
322
349
|
contentType: "application/json",
|
|
323
350
|
queryParameters: _queryParams,
|
|
324
351
|
requestType: "json",
|
|
@@ -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 ToolsListRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Tool ID cursor for pagination. Returns tools that come before this tool ID in the specified sort order
|
|
18
|
+
*/
|
|
19
|
+
before?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Tool ID cursor for pagination. Returns tools that come after this tool ID in the specified sort order
|
|
22
|
+
*/
|
|
23
|
+
after?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum number of tools to return
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Sort order for tools by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
30
|
+
*/
|
|
31
|
+
order?: Letta.agents.ToolsListRequestOrder;
|
|
32
|
+
/**
|
|
33
|
+
* Field to sort by
|
|
34
|
+
*/
|
|
35
|
+
orderBy?: "created_at";
|
|
36
|
+
}
|
|
@@ -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 tools by creation time. 'asc' for oldest first, 'desc' for newest first
|
|
6
|
+
*/
|
|
7
|
+
export type ToolsListRequestOrder = "asc" | "desc";
|
|
8
|
+
export declare const ToolsListRequestOrder: {
|
|
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.ToolsListRequestOrder = void 0;
|
|
7
|
+
exports.ToolsListRequestOrder = {
|
|
8
|
+
Asc: "asc",
|
|
9
|
+
Desc: "desc",
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ToolsListRequestOrder";
|
|
@@ -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("./ToolsListRequestOrder"), exports);
|
|
@@ -39,7 +39,14 @@ export declare class Archives {
|
|
|
39
39
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.archives.listArchives(
|
|
42
|
+
* await client.archives.listArchives({
|
|
43
|
+
* before: "before",
|
|
44
|
+
* after: "after",
|
|
45
|
+
* limit: 1,
|
|
46
|
+
* order: "asc",
|
|
47
|
+
* name: "name",
|
|
48
|
+
* agentId: "agent_id"
|
|
49
|
+
* })
|
|
43
50
|
*/
|
|
44
51
|
listArchives(request?: Letta.ListArchivesRequest, requestOptions?: Archives.RequestOptions): core.HttpResponsePromise<Letta.Archive[]>;
|
|
45
52
|
private __listArchives;
|
|
@@ -68,7 +68,14 @@ class Archives {
|
|
|
68
68
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.archives.listArchives(
|
|
71
|
+
* await client.archives.listArchives({
|
|
72
|
+
* before: "before",
|
|
73
|
+
* after: "after",
|
|
74
|
+
* limit: 1,
|
|
75
|
+
* order: "asc",
|
|
76
|
+
* name: "name",
|
|
77
|
+
* agentId: "agent_id"
|
|
78
|
+
* })
|
|
72
79
|
*/
|
|
73
80
|
listArchives(request = {}, requestOptions) {
|
|
74
81
|
return core.HttpResponsePromise.fromPromise(this.__listArchives(request, requestOptions));
|
|
@@ -103,7 +110,7 @@ class Archives {
|
|
|
103
110
|
method: "GET",
|
|
104
111
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
105
112
|
? yield core.Supplier.get(this._options.project)
|
|
106
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
113
|
+
: 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),
|
|
107
114
|
contentType: "application/json",
|
|
108
115
|
queryParameters: _queryParams,
|
|
109
116
|
requestType: "json",
|
|
@@ -182,7 +189,7 @@ class Archives {
|
|
|
182
189
|
method: "POST",
|
|
183
190
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
184
191
|
? yield core.Supplier.get(this._options.project)
|
|
185
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
192
|
+
: 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),
|
|
186
193
|
contentType: "application/json",
|
|
187
194
|
requestType: "json",
|
|
188
195
|
body: serializers.ArchiveCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -260,7 +267,7 @@ class Archives {
|
|
|
260
267
|
method: "PATCH",
|
|
261
268
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
262
269
|
? yield core.Supplier.get(this._options.project)
|
|
263
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
270
|
+
: 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),
|
|
264
271
|
contentType: "application/json",
|
|
265
272
|
requestType: "json",
|
|
266
273
|
body: serializers.ArchiveUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
import * as Letta from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* name: "name",
|
|
13
|
+
* agentId: "agent_id"
|
|
14
|
+
* }
|
|
8
15
|
*/
|
|
9
16
|
export interface ListArchivesRequest {
|
|
10
17
|
/**
|
|
@@ -42,7 +42,13 @@ export declare class Batches {
|
|
|
42
42
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
|
-
* await client.batches.list(
|
|
45
|
+
* await client.batches.list({
|
|
46
|
+
* before: "before",
|
|
47
|
+
* after: "after",
|
|
48
|
+
* limit: 1,
|
|
49
|
+
* order: "asc",
|
|
50
|
+
* orderBy: "created_at"
|
|
51
|
+
* })
|
|
46
52
|
*/
|
|
47
53
|
list(request?: Letta.BatchesListRequest, requestOptions?: Batches.RequestOptions): core.HttpResponsePromise<Letta.BatchJob[]>;
|
|
48
54
|
private __list;
|
|
@@ -73,7 +73,13 @@ class Batches {
|
|
|
73
73
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
|
-
* await client.batches.list(
|
|
76
|
+
* await client.batches.list({
|
|
77
|
+
* before: "before",
|
|
78
|
+
* after: "after",
|
|
79
|
+
* limit: 1,
|
|
80
|
+
* order: "asc",
|
|
81
|
+
* orderBy: "created_at"
|
|
82
|
+
* })
|
|
77
83
|
*/
|
|
78
84
|
list(request = {}, requestOptions) {
|
|
79
85
|
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
@@ -105,7 +111,7 @@ class Batches {
|
|
|
105
111
|
method: "GET",
|
|
106
112
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
107
113
|
? yield core.Supplier.get(this._options.project)
|
|
108
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "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),
|
|
109
115
|
contentType: "application/json",
|
|
110
116
|
queryParameters: _queryParams,
|
|
111
117
|
requestType: "json",
|
|
@@ -196,7 +202,7 @@ class Batches {
|
|
|
196
202
|
method: "POST",
|
|
197
203
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
198
204
|
? yield core.Supplier.get(this._options.project)
|
|
199
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
205
|
+
: 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),
|
|
200
206
|
contentType: "application/json",
|
|
201
207
|
requestType: "json",
|
|
202
208
|
body: serializers.CreateBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -273,7 +279,7 @@ class Batches {
|
|
|
273
279
|
method: "GET",
|
|
274
280
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
275
281
|
? yield core.Supplier.get(this._options.project)
|
|
276
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
282
|
+
: 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),
|
|
277
283
|
contentType: "application/json",
|
|
278
284
|
requestType: "json",
|
|
279
285
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -349,7 +355,7 @@ class Batches {
|
|
|
349
355
|
method: "PATCH",
|
|
350
356
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
351
357
|
? yield core.Supplier.get(this._options.project)
|
|
352
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "1.0.0-alpha.
|
|
358
|
+
: 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),
|
|
353
359
|
contentType: "application/json",
|
|
354
360
|
requestType: "json",
|
|
355
361
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -40,7 +40,14 @@ export declare class Messages {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.batches.messages.list("batch_id"
|
|
43
|
+
* await client.batches.messages.list("batch_id", {
|
|
44
|
+
* before: "before",
|
|
45
|
+
* after: "after",
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* order: "asc",
|
|
48
|
+
* orderBy: "created_at",
|
|
49
|
+
* agentId: "agent_id"
|
|
50
|
+
* })
|
|
44
51
|
*/
|
|
45
52
|
list(batchId: string, request?: Letta.batches.MessagesListRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Letta.LettaBatchMessages>;
|
|
46
53
|
private __list;
|
|
@@ -69,7 +69,14 @@ class Messages {
|
|
|
69
69
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.batches.messages.list("batch_id"
|
|
72
|
+
* await client.batches.messages.list("batch_id", {
|
|
73
|
+
* before: "before",
|
|
74
|
+
* after: "after",
|
|
75
|
+
* limit: 1,
|
|
76
|
+
* order: "asc",
|
|
77
|
+
* orderBy: "created_at",
|
|
78
|
+
* agentId: "agent_id"
|
|
79
|
+
* })
|
|
73
80
|
*/
|
|
74
81
|
list(batchId, request = {}, requestOptions) {
|
|
75
82
|
return core.HttpResponsePromise.fromPromise(this.__list(batchId, request, requestOptions));
|
|
@@ -104,7 +111,7 @@ class Messages {
|
|
|
104
111
|
method: "GET",
|
|
105
112
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
106
113
|
? yield core.Supplier.get(this._options.project)
|
|
107
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "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),
|
|
108
115
|
contentType: "application/json",
|
|
109
116
|
queryParameters: _queryParams,
|
|
110
117
|
requestType: "json",
|
package/dist/api/resources/batches/resources/messages/client/requests/MessagesListRequest.d.ts
CHANGED
|
@@ -4,7 +4,14 @@
|
|
|
4
4
|
import * as Letta from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* before: "before",
|
|
9
|
+
* after: "after",
|
|
10
|
+
* limit: 1,
|
|
11
|
+
* order: "asc",
|
|
12
|
+
* orderBy: "created_at",
|
|
13
|
+
* agentId: "agent_id"
|
|
14
|
+
* }
|
|
8
15
|
*/
|
|
9
16
|
export interface MessagesListRequest {
|
|
10
17
|
/**
|
|
@@ -40,7 +40,23 @@ export declare class Blocks {
|
|
|
40
40
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
-
* await client.blocks.list(
|
|
43
|
+
* await client.blocks.list({
|
|
44
|
+
* label: "label",
|
|
45
|
+
* templatesOnly: true,
|
|
46
|
+
* name: "name",
|
|
47
|
+
* identityId: "identity_id",
|
|
48
|
+
* projectId: "project_id",
|
|
49
|
+
* limit: 1,
|
|
50
|
+
* before: "before",
|
|
51
|
+
* after: "after",
|
|
52
|
+
* order: "asc",
|
|
53
|
+
* orderBy: "created_at",
|
|
54
|
+
* labelSearch: "label_search",
|
|
55
|
+
* descriptionSearch: "description_search",
|
|
56
|
+
* valueSearch: "value_search",
|
|
57
|
+
* connectedToAgentsCountGt: 1,
|
|
58
|
+
* connectedToAgentsCountLt: 1
|
|
59
|
+
* })
|
|
44
60
|
*/
|
|
45
61
|
list(request?: Letta.BlocksListRequest, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<Letta.Block[]>;
|
|
46
62
|
private __list;
|