@letta-ai/letta-client 0.1.1 → 0.1.4
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/Client.d.ts +2 -2
- package/Client.js +1 -1
- package/README.md +1 -1
- package/api/resources/agents/client/Client.d.ts +21 -7
- package/api/resources/agents/client/Client.js +245 -60
- package/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -1
- package/api/resources/agents/client/requests/AgentsMigrateRequest.d.ts +4 -4
- package/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +1 -1
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +20 -16
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +10 -8
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/archivalMemory/client/Client.js +63 -19
- package/api/resources/agents/resources/context/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/context/client/Client.js +21 -7
- package/api/resources/agents/resources/memory/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/memory/client/Client.js +21 -7
- package/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/memory/resources/messages/client/Client.js +21 -7
- package/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/memoryBlocks/client/Client.js +38 -12
- package/api/resources/agents/resources/messages/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/messages/client/Client.js +75 -23
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +12 -3
- package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +3 -3
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +24 -1
- package/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +21 -1
- package/api/resources/agents/resources/recallMemory/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/recallMemory/client/Client.js +21 -7
- package/api/resources/agents/resources/sources/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/sources/client/Client.js +21 -7
- package/api/resources/agents/resources/tools/client/Client.d.ts +5 -3
- package/api/resources/agents/resources/tools/client/Client.js +53 -15
- package/api/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +6 -0
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +12 -1
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +8 -0
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts → AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js} +2 -2
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +8 -0
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js} +2 -2
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts} +2 -2
- package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js} +2 -2
- package/{dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts → api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts} +1 -2
- package/api/resources/agents/types/index.d.ts +7 -6
- package/api/resources/agents/types/index.js +7 -6
- package/api/resources/blocks/client/Client.d.ts +7 -5
- package/api/resources/blocks/client/Client.js +110 -36
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +1 -1
- package/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +2 -2
- package/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +2 -2
- package/api/resources/health/client/Client.d.ts +5 -3
- package/api/resources/health/client/Client.js +14 -6
- package/api/resources/jobs/client/Client.d.ts +5 -3
- package/api/resources/jobs/client/Client.js +70 -20
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +1 -1
- package/api/resources/models/client/Client.d.ts +5 -3
- package/api/resources/models/client/Client.js +23 -9
- package/api/resources/sources/client/Client.d.ts +7 -5
- package/api/resources/sources/client/Client.js +132 -40
- package/api/resources/sources/client/requests/SourceCreate.d.ts +2 -2
- package/api/resources/sources/client/requests/SourceUpdate.d.ts +2 -2
- package/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +2 -2
- package/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +2 -2
- package/api/resources/sources/resources/files/client/Client.d.ts +5 -3
- package/api/resources/sources/resources/files/client/Client.js +46 -14
- package/api/resources/sources/resources/passages/client/Client.d.ts +5 -3
- package/api/resources/sources/resources/passages/client/Client.js +21 -7
- package/api/resources/tools/client/Client.d.ts +8 -6
- package/api/resources/tools/client/Client.js +197 -57
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -3
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -3
- package/api/types/ActionModel.d.ts +1 -1
- package/api/types/AgentEnvironmentVariable.d.ts +25 -0
- package/api/types/AgentState.d.ts +22 -20
- package/api/types/AppAuthScheme.d.ts +8 -8
- package/api/types/AppModel.d.ts +4 -4
- package/api/types/AssistantFile.d.ts +2 -2
- package/api/types/AssistantMessageInput.d.ts +1 -1
- package/api/types/AssistantMessageOutput.d.ts +2 -3
- package/api/types/AuthResponse.d.ts +1 -1
- package/api/types/AuthSchemeField.d.ts +3 -3
- package/api/types/Block.d.ts +14 -14
- package/api/types/BlockUpdate.d.ts +2 -2
- package/api/types/ChatCompletionRequest.d.ts +9 -9
- package/api/types/ChatCompletionResponse.d.ts +2 -2
- package/api/types/ChildToolRule.d.ts +1 -1
- package/api/types/Choice.d.ts +1 -1
- package/api/types/ConditionalToolRule.d.ts +4 -4
- package/api/types/ContextWindowOverview.d.ts +17 -15
- package/api/types/CreateAssistantFileRequest.d.ts +1 -1
- package/api/types/CreateAssistantRequest.d.ts +2 -2
- package/api/types/CreateBlock.d.ts +2 -2
- package/api/types/E2BSandboxConfig.d.ts +1 -1
- package/api/types/EmbeddingConfig.d.ts +16 -16
- package/api/types/FileMetadata.d.ts +11 -11
- package/api/types/InitToolRule.d.ts +1 -1
- package/api/types/Job.d.ts +12 -12
- package/api/types/LettaRequest.d.ts +2 -2
- package/api/types/LettaResponse.d.ts +12 -62
- package/api/types/LettaResponseMessagesItem.d.ts +25 -0
- package/api/types/LettaSchemasLettaMessageToolCall.d.ts +1 -1
- package/api/types/LettaSchemasMessageMessage.d.ts +18 -18
- package/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
- package/api/types/LettaSchemasToolTool.d.ts +12 -12
- package/api/types/LettaUsageStatistics.d.ts +8 -9
- package/api/types/LlmConfig.d.ts +11 -11
- package/api/types/LocalSandboxConfig.d.ts +3 -3
- package/api/types/Memory.d.ts +1 -1
- package/api/types/MessageContentLogProb.d.ts +1 -1
- package/api/types/OpenAiAssistant.d.ts +2 -2
- package/api/types/Organization.d.ts +1 -1
- package/api/types/Passage.d.ts +19 -19
- package/api/types/ReasoningMessage.d.ts +4 -5
- package/api/types/SandboxConfig.d.ts +5 -5
- package/api/types/SandboxEnvironmentVariable.d.ts +7 -7
- package/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
- package/api/types/Source.d.ts +13 -13
- package/api/types/SystemMessageOutput.d.ts +4 -5
- package/api/types/TerminalToolRule.d.ts +1 -1
- package/api/types/ToolCallDelta.d.ts +1 -1
- package/api/types/ToolCallMessage.d.ts +5 -6
- package/api/types/ToolCreate.d.ts +4 -4
- package/api/types/ToolMessage.d.ts +1 -1
- package/api/types/ToolReturnMessage.d.ts +10 -11
- package/api/types/UsageStatistics.d.ts +3 -3
- package/api/types/User.d.ts +7 -7
- package/api/types/UserCreate.d.ts +1 -1
- package/api/types/UserMessageOutput.d.ts +4 -5
- package/api/types/UserUpdate.d.ts +1 -1
- package/api/types/index.d.ts +2 -13
- package/api/types/index.js +2 -13
- package/core/index.d.ts +1 -1
- package/core/index.js +14 -1
- package/core/schemas/Schema.d.ts +85 -0
- package/core/schemas/Schema.js +22 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +14 -0
- package/core/schemas/builders/index.js +30 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +25 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +55 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +2 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +6 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +261 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +31 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +95 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +44 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +130 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +21 -7
- package/dist/api/resources/agents/client/Client.js +245 -60
- package/dist/api/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -1
- package/dist/api/resources/agents/client/requests/AgentsMigrateRequest.d.ts +4 -4
- package/dist/api/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +1 -1
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +20 -16
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +10 -8
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +63 -19
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/context/client/Client.js +21 -7
- package/dist/api/resources/agents/resources/memory/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/memory/client/Client.js +21 -7
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/memory/resources/messages/client/Client.js +21 -7
- package/dist/api/resources/agents/resources/memoryBlocks/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/memoryBlocks/client/Client.js +38 -12
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/messages/client/Client.js +75 -23
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +12 -3
- package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +3 -3
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +24 -1
- package/dist/api/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +21 -1
- package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +21 -7
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +21 -7
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +5 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +53 -15
- package/dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +6 -0
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +12 -1
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +8 -0
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.d.ts → AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts} +2 -2
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperatorOperator.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js} +2 -2
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +8 -0
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.d.ts → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts} +2 -2
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirectionDirection.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.d.ts → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts} +2 -2
- package/dist/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirectionValue.js → AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js} +2 -2
- package/{api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.d.ts → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts} +1 -2
- package/dist/api/resources/agents/types/index.d.ts +7 -6
- package/dist/api/resources/agents/types/index.js +7 -6
- package/dist/api/resources/blocks/client/Client.d.ts +7 -5
- package/dist/api/resources/blocks/client/Client.js +110 -36
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +1 -1
- package/dist/api/resources/blocks/client/requests/LinkAgentMemoryBlockRequest.d.ts +2 -2
- package/dist/api/resources/blocks/client/requests/UnlinkAgentMemoryBlockRequest.d.ts +2 -2
- package/dist/api/resources/health/client/Client.d.ts +5 -3
- package/dist/api/resources/health/client/Client.js +14 -6
- package/dist/api/resources/jobs/client/Client.d.ts +5 -3
- package/dist/api/resources/jobs/client/Client.js +70 -20
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +1 -1
- package/dist/api/resources/models/client/Client.d.ts +5 -3
- package/dist/api/resources/models/client/Client.js +23 -9
- package/dist/api/resources/sources/client/Client.d.ts +7 -5
- package/dist/api/resources/sources/client/Client.js +132 -40
- package/dist/api/resources/sources/client/requests/SourceCreate.d.ts +2 -2
- package/dist/api/resources/sources/client/requests/SourceUpdate.d.ts +2 -2
- package/dist/api/resources/sources/client/requests/SourcesAttachRequest.d.ts +2 -2
- package/dist/api/resources/sources/client/requests/SourcesDetachRequest.d.ts +2 -2
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +5 -3
- package/dist/api/resources/sources/resources/files/client/Client.js +46 -14
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +5 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +21 -7
- package/dist/api/resources/tools/client/Client.d.ts +8 -6
- package/dist/api/resources/tools/client/Client.js +197 -57
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -3
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -3
- package/dist/api/types/ActionModel.d.ts +1 -1
- package/dist/api/types/AgentEnvironmentVariable.d.ts +25 -0
- package/dist/api/types/AgentState.d.ts +22 -20
- package/dist/api/types/AppAuthScheme.d.ts +8 -8
- package/dist/api/types/AppModel.d.ts +4 -4
- package/dist/api/types/AssistantFile.d.ts +2 -2
- package/dist/api/types/AssistantMessageInput.d.ts +1 -1
- package/dist/api/types/AssistantMessageOutput.d.ts +2 -3
- package/dist/api/types/AuthResponse.d.ts +1 -1
- package/dist/api/types/AuthSchemeField.d.ts +3 -3
- package/dist/api/types/Block.d.ts +14 -14
- package/dist/api/types/BlockUpdate.d.ts +2 -2
- package/dist/api/types/ChatCompletionRequest.d.ts +9 -9
- package/dist/api/types/ChatCompletionResponse.d.ts +2 -2
- package/dist/api/types/ChildToolRule.d.ts +1 -1
- package/dist/api/types/Choice.d.ts +1 -1
- package/dist/api/types/ConditionalToolRule.d.ts +4 -4
- package/dist/api/types/ContextWindowOverview.d.ts +17 -15
- package/dist/api/types/CreateAssistantFileRequest.d.ts +1 -1
- package/dist/api/types/CreateAssistantRequest.d.ts +2 -2
- package/dist/api/types/CreateBlock.d.ts +2 -2
- package/dist/api/types/E2BSandboxConfig.d.ts +1 -1
- package/dist/api/types/EmbeddingConfig.d.ts +16 -16
- package/dist/api/types/FileMetadata.d.ts +11 -11
- package/dist/api/types/InitToolRule.d.ts +1 -1
- package/dist/api/types/Job.d.ts +12 -12
- package/dist/api/types/LettaRequest.d.ts +2 -2
- package/dist/api/types/LettaResponse.d.ts +12 -62
- package/dist/api/types/LettaResponseMessagesItem.d.ts +25 -0
- package/dist/api/types/LettaSchemasLettaMessageToolCall.d.ts +1 -1
- package/dist/api/types/LettaSchemasMessageMessage.d.ts +18 -18
- package/dist/api/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +2 -2
- package/dist/api/types/LettaSchemasToolTool.d.ts +12 -12
- package/dist/api/types/LettaUsageStatistics.d.ts +8 -9
- package/dist/api/types/LlmConfig.d.ts +11 -11
- package/dist/api/types/LocalSandboxConfig.d.ts +3 -3
- package/dist/api/types/Memory.d.ts +1 -1
- package/dist/api/types/MessageContentLogProb.d.ts +1 -1
- package/dist/api/types/OpenAiAssistant.d.ts +2 -2
- package/dist/api/types/Organization.d.ts +1 -1
- package/dist/api/types/Passage.d.ts +19 -19
- package/dist/api/types/ReasoningMessage.d.ts +4 -5
- package/dist/api/types/SandboxConfig.d.ts +5 -5
- package/dist/api/types/SandboxEnvironmentVariable.d.ts +7 -7
- package/dist/api/types/SandboxEnvironmentVariableUpdate.d.ts +0 -3
- package/dist/api/types/Source.d.ts +13 -13
- package/dist/api/types/SystemMessageOutput.d.ts +4 -5
- package/dist/api/types/TerminalToolRule.d.ts +1 -1
- package/dist/api/types/ToolCallDelta.d.ts +1 -1
- package/dist/api/types/ToolCallMessage.d.ts +5 -6
- package/dist/api/types/ToolCreate.d.ts +4 -4
- package/dist/api/types/ToolMessage.d.ts +1 -1
- package/dist/api/types/ToolReturnMessage.d.ts +10 -11
- package/dist/api/types/UsageStatistics.d.ts +3 -3
- package/dist/api/types/User.d.ts +7 -7
- package/dist/api/types/UserCreate.d.ts +1 -1
- package/dist/api/types/UserMessageOutput.d.ts +4 -5
- package/dist/api/types/UserUpdate.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -13
- package/dist/api/types/index.js +2 -13
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +14 -1
- package/dist/core/schemas/Schema.d.ts +85 -0
- package/dist/core/schemas/Schema.js +22 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +14 -0
- package/dist/core/schemas/builders/index.js +30 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +25 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +55 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +261 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +31 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +95 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +44 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +130 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/agents/client/getAgentMemoryBlocks.d.ts +11 -0
- package/dist/serialization/resources/agents/client/getAgentMemoryBlocks.js +32 -0
- package/dist/serialization/resources/agents/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/client/index.js +32 -0
- package/dist/serialization/resources/agents/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/client/list.js +32 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +12 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +33 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +12 -0
- package/dist/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.js +33 -0
- package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +14 -0
- package/dist/serialization/resources/agents/client/requests/AgentsMigrateRequest.js +35 -0
- package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +18 -0
- package/dist/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +39 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +41 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +62 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +27 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +48 -0
- package/dist/serialization/resources/agents/client/requests/index.d.ts +6 -0
- package/dist/serialization/resources/agents/client/requests/index.js +15 -0
- package/dist/serialization/resources/agents/index.d.ts +3 -0
- package/dist/serialization/resources/agents/index.js +19 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.js +32 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +32 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.js +32 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +33 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +8 -0
- package/dist/serialization/resources/agents/resources/index.js +37 -0
- package/dist/serialization/resources/agents/resources/memory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/memory/resources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/resources/index.js +27 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/index.js +27 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.js +32 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/memory/resources/messages/index.js +17 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.js +17 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +16 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +37 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +18 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +39 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +7 -0
- package/dist/serialization/resources/agents/resources/messages/index.d.ts +2 -0
- package/dist/serialization/resources/agents/resources/messages/index.js +18 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +38 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +51 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +36 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +34 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +49 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.js +19 -0
- package/dist/serialization/resources/agents/resources/sources/client/get.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/sources/client/get.js +32 -0
- package/dist/serialization/resources/agents/resources/sources/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/client/index.js +27 -0
- package/dist/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/sources/index.js +17 -0
- package/dist/serialization/resources/agents/resources/tools/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/client/index.js +27 -0
- package/dist/serialization/resources/agents/resources/tools/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/tools/client/list.js +32 -0
- package/dist/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/tools/index.js +17 -0
- package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.js +33 -0
- package/dist/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +12 -0
- package/dist/serialization/resources/agents/types/AgentsMigrateResponse.js +33 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +22 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +43 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +14 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +35 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +15 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +36 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +31 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +12 -0
- package/dist/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +33 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +14 -0
- package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +35 -0
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +14 -0
- package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +35 -0
- package/dist/serialization/resources/agents/types/index.d.ts +12 -0
- package/dist/serialization/resources/agents/types/index.js +28 -0
- package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/client/index.js +27 -0
- package/dist/serialization/resources/blocks/client/list.d.ts +11 -0
- package/dist/serialization/resources/blocks/client/list.js +32 -0
- package/dist/serialization/resources/blocks/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/index.js +39 -0
- package/dist/serialization/resources/jobs/client/index.d.ts +2 -0
- package/dist/serialization/resources/jobs/client/index.js +28 -0
- package/dist/serialization/resources/jobs/client/list.d.ts +11 -0
- package/dist/serialization/resources/jobs/client/list.js +32 -0
- package/dist/serialization/resources/jobs/client/listActive.d.ts +11 -0
- package/dist/serialization/resources/jobs/client/listActive.js +32 -0
- package/dist/serialization/resources/jobs/index.d.ts +1 -0
- package/dist/serialization/resources/jobs/index.js +17 -0
- package/dist/serialization/resources/models/client/index.d.ts +2 -0
- package/dist/serialization/resources/models/client/index.js +28 -0
- package/dist/serialization/resources/models/client/listEmbeddingModels.d.ts +11 -0
- package/dist/serialization/resources/models/client/listEmbeddingModels.js +32 -0
- package/dist/serialization/resources/models/client/listLlms.d.ts +11 -0
- package/dist/serialization/resources/models/client/listLlms.js +32 -0
- package/dist/serialization/resources/models/index.d.ts +1 -0
- package/dist/serialization/resources/models/index.js +17 -0
- package/dist/serialization/resources/sources/client/getByName.d.ts +9 -0
- package/dist/serialization/resources/sources/client/getByName.js +31 -0
- package/dist/serialization/resources/sources/client/index.d.ts +3 -0
- package/dist/serialization/resources/sources/client/index.js +32 -0
- package/dist/serialization/resources/sources/client/list.d.ts +11 -0
- package/dist/serialization/resources/sources/client/list.js +32 -0
- package/dist/serialization/resources/sources/client/requests/SourceCreate.d.ts +16 -0
- package/dist/serialization/resources/sources/client/requests/SourceCreate.js +37 -0
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.d.ts +16 -0
- package/dist/serialization/resources/sources/client/requests/SourceUpdate.js +37 -0
- package/dist/serialization/resources/sources/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/sources/client/requests/index.js +7 -0
- package/dist/serialization/resources/sources/index.d.ts +2 -0
- package/dist/serialization/resources/sources/index.js +18 -0
- package/dist/serialization/resources/sources/resources/files/client/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/files/client/index.js +27 -0
- package/dist/serialization/resources/sources/resources/files/client/list.d.ts +11 -0
- package/dist/serialization/resources/sources/resources/files/client/list.js +32 -0
- package/dist/serialization/resources/sources/resources/files/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/files/index.js +17 -0
- package/dist/serialization/resources/sources/resources/index.d.ts +2 -0
- package/dist/serialization/resources/sources/resources/index.js +28 -0
- package/dist/serialization/resources/sources/resources/passages/client/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/passages/client/index.js +27 -0
- package/dist/serialization/resources/sources/resources/passages/client/list.d.ts +11 -0
- package/dist/serialization/resources/sources/resources/passages/client/list.js +32 -0
- package/dist/serialization/resources/sources/resources/passages/index.d.ts +1 -0
- package/dist/serialization/resources/sources/resources/passages/index.js +17 -0
- package/dist/serialization/resources/tools/client/addBaseTool.d.ts +11 -0
- package/dist/serialization/resources/tools/client/addBaseTool.js +32 -0
- package/dist/serialization/resources/tools/client/getByName.d.ts +9 -0
- package/dist/serialization/resources/tools/client/getByName.js +31 -0
- package/dist/serialization/resources/tools/client/index.d.ts +6 -0
- package/dist/serialization/resources/tools/client/index.js +35 -0
- package/dist/serialization/resources/tools/client/list.d.ts +11 -0
- package/dist/serialization/resources/tools/client/list.js +32 -0
- package/dist/serialization/resources/tools/client/listComposioActionsByApp.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listComposioActionsByApp.js +32 -0
- package/dist/serialization/resources/tools/client/listComposioApps.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listComposioApps.js +32 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +15 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +36 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +18 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +39 -0
- package/dist/serialization/resources/tools/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/requests/index.js +7 -0
- package/dist/serialization/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/tools/index.js +17 -0
- package/dist/serialization/types/ActionModel.d.ts +23 -0
- package/dist/serialization/types/ActionModel.js +44 -0
- package/dist/serialization/types/ActionParametersModel.d.ts +15 -0
- package/dist/serialization/types/ActionParametersModel.js +36 -0
- package/dist/serialization/types/ActionResponseModel.d.ts +15 -0
- package/dist/serialization/types/ActionResponseModel.js +36 -0
- package/dist/serialization/types/AgentEnvironmentVariable.d.ts +21 -0
- package/dist/serialization/types/AgentEnvironmentVariable.js +42 -0
- package/dist/serialization/types/AgentState.d.ts +39 -0
- package/dist/serialization/types/AgentState.js +60 -0
- package/dist/serialization/types/AgentStateToolRulesItem.d.ts +14 -0
- package/dist/serialization/types/AgentStateToolRulesItem.js +35 -0
- package/dist/serialization/types/AgentType.d.ts +10 -0
- package/dist/serialization/types/AgentType.js +37 -0
- package/dist/serialization/types/AppAuthScheme.d.ts +23 -0
- package/dist/serialization/types/AppAuthScheme.js +44 -0
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +10 -0
- package/dist/serialization/types/AppAuthSchemeAuthMode.js +31 -0
- package/dist/serialization/types/AppModel.d.ts +28 -0
- package/dist/serialization/types/AppModel.js +51 -0
- package/dist/serialization/types/ArchivalMemorySummary.d.ts +12 -0
- package/dist/serialization/types/ArchivalMemorySummary.js +33 -0
- package/dist/serialization/types/AssistantFile.d.ts +15 -0
- package/dist/serialization/types/AssistantFile.js +36 -0
- package/dist/serialization/types/AssistantMessageInput.d.ts +16 -0
- package/dist/serialization/types/AssistantMessageInput.js +37 -0
- package/dist/serialization/types/AssistantMessageOutput.d.ts +14 -0
- package/dist/serialization/types/AssistantMessageOutput.js +35 -0
- package/dist/serialization/types/AuthRequest.d.ts +12 -0
- package/dist/serialization/types/AuthRequest.js +33 -0
- package/dist/serialization/types/AuthResponse.d.ts +13 -0
- package/dist/serialization/types/AuthResponse.js +34 -0
- package/dist/serialization/types/AuthSchemeField.d.ts +19 -0
- package/dist/serialization/types/AuthSchemeField.js +40 -0
- package/dist/serialization/types/Block.d.ts +22 -0
- package/dist/serialization/types/Block.js +43 -0
- package/dist/serialization/types/BlockUpdate.d.ts +18 -0
- package/dist/serialization/types/BlockUpdate.js +39 -0
- package/dist/serialization/types/ChatCompletionRequest.d.ts +38 -0
- package/dist/serialization/types/ChatCompletionRequest.js +59 -0
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionRequestFunctionCall.js +36 -0
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.d.ts +14 -0
- package/dist/serialization/types/ChatCompletionRequestMessagesItem.js +35 -0
- package/dist/serialization/types/ChatCompletionRequestStop.d.ts +10 -0
- package/dist/serialization/types/ChatCompletionRequestStop.js +34 -0
- package/dist/serialization/types/ChatCompletionRequestToolChoice.d.ts +11 -0
- package/dist/serialization/types/ChatCompletionRequestToolChoice.js +37 -0
- package/dist/serialization/types/ChatCompletionResponse.d.ts +20 -0
- package/dist/serialization/types/ChatCompletionResponse.js +41 -0
- package/dist/serialization/types/ChildToolRule.d.ts +15 -0
- package/dist/serialization/types/ChildToolRule.js +36 -0
- package/dist/serialization/types/Choice.d.ts +18 -0
- package/dist/serialization/types/Choice.js +41 -0
- package/dist/serialization/types/ConditionalToolRule.d.ts +17 -0
- package/dist/serialization/types/ConditionalToolRule.js +38 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/dist/serialization/types/ConflictErrorBody.js +33 -0
- package/dist/serialization/types/ContextWindowOverview.d.ts +30 -0
- package/dist/serialization/types/ContextWindowOverview.js +51 -0
- package/dist/serialization/types/CreateAssistantFileRequest.d.ts +12 -0
- package/dist/serialization/types/CreateAssistantFileRequest.js +33 -0
- package/dist/serialization/types/CreateAssistantRequest.d.ts +19 -0
- package/dist/serialization/types/CreateAssistantRequest.js +40 -0
- package/dist/serialization/types/CreateBlock.d.ts +18 -0
- package/dist/serialization/types/CreateBlock.js +39 -0
- package/dist/serialization/types/DeleteAssistantFileResponse.d.ts +14 -0
- package/dist/serialization/types/DeleteAssistantFileResponse.js +35 -0
- package/dist/serialization/types/DeleteAssistantResponse.d.ts +14 -0
- package/dist/serialization/types/DeleteAssistantResponse.js +35 -0
- package/dist/serialization/types/E2BSandboxConfig.d.ts +14 -0
- package/dist/serialization/types/E2BSandboxConfig.js +35 -0
- package/dist/serialization/types/EmbeddingConfig.d.ts +21 -0
- package/dist/serialization/types/EmbeddingConfig.js +42 -0
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +10 -0
- package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +49 -0
- package/dist/serialization/types/FileMetadata.d.ts +23 -0
- package/dist/serialization/types/FileMetadata.js +44 -0
- package/dist/serialization/types/FunctionCallInput.d.ts +12 -0
- package/dist/serialization/types/FunctionCallInput.js +33 -0
- package/dist/serialization/types/FunctionCallOutput.d.ts +13 -0
- package/dist/serialization/types/FunctionCallOutput.js +34 -0
- package/dist/serialization/types/FunctionSchema.d.ts +14 -0
- package/dist/serialization/types/FunctionSchema.js +35 -0
- package/dist/serialization/types/Health.d.ts +13 -0
- package/dist/serialization/types/Health.js +34 -0
- package/dist/serialization/types/HttpValidationError.d.ts +13 -0
- package/dist/serialization/types/HttpValidationError.js +34 -0
- package/dist/serialization/types/InitToolRule.d.ts +14 -0
- package/dist/serialization/types/InitToolRule.js +35 -0
- package/dist/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/dist/serialization/types/InternalServerErrorBody.js +33 -0
- package/dist/serialization/types/Job.d.ts +21 -0
- package/dist/serialization/types/Job.js +42 -0
- package/dist/serialization/types/JobStatus.d.ts +10 -0
- package/dist/serialization/types/JobStatus.js +31 -0
- package/dist/serialization/types/LettaRequest.d.ts +15 -0
- package/dist/serialization/types/LettaRequest.js +36 -0
- package/dist/serialization/types/LettaResponse.d.ts +15 -0
- package/dist/serialization/types/LettaResponse.js +36 -0
- package/dist/serialization/types/LettaResponseMessagesItem.d.ts +34 -0
- package/dist/serialization/types/LettaResponseMessagesItem.js +49 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +14 -0
- package/dist/serialization/types/LettaSchemasLettaMessageToolCall.js +35 -0
- package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +26 -0
- package/dist/serialization/types/LettaSchemasMessageMessage.js +47 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +14 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +35 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +36 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +13 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +34 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +17 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +38 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +36 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +13 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +34 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +36 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +15 -0
- package/dist/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +36 -0
- package/dist/serialization/types/LettaSchemasToolTool.d.ts +23 -0
- package/dist/serialization/types/LettaSchemasToolTool.js +44 -0
- package/dist/serialization/types/LettaUsageStatistics.d.ts +15 -0
- package/dist/serialization/types/LettaUsageStatistics.js +36 -0
- package/dist/serialization/types/LlmConfig.d.ts +19 -0
- package/dist/serialization/types/LlmConfig.js +40 -0
- package/dist/serialization/types/LlmConfigModelEndpointType.d.ts +10 -0
- package/dist/serialization/types/LlmConfigModelEndpointType.js +49 -0
- package/dist/serialization/types/LocalSandboxConfig.d.ts +14 -0
- package/dist/serialization/types/LocalSandboxConfig.js +35 -0
- package/dist/serialization/types/LogProbToken.d.ts +14 -0
- package/dist/serialization/types/LogProbToken.js +35 -0
- package/dist/serialization/types/Memory.d.ts +14 -0
- package/dist/serialization/types/Memory.js +35 -0
- package/dist/serialization/types/MessageContentLogProb.d.ts +16 -0
- package/dist/serialization/types/MessageContentLogProb.js +37 -0
- package/dist/serialization/types/MessageCreate.d.ts +15 -0
- package/dist/serialization/types/MessageCreate.js +36 -0
- package/dist/serialization/types/MessageCreateRole.d.ts +10 -0
- package/dist/serialization/types/MessageCreateRole.js +31 -0
- package/dist/serialization/types/MessageRole.d.ts +10 -0
- package/dist/serialization/types/MessageRole.js +31 -0
- package/dist/serialization/types/NotFoundErrorBody.d.ts +12 -0
- package/dist/serialization/types/NotFoundErrorBody.js +33 -0
- package/dist/serialization/types/NotFoundErrorBodyMessage.d.ts +10 -0
- package/dist/serialization/types/NotFoundErrorBodyMessage.js +34 -0
- package/dist/serialization/types/OpenAiAssistant.d.ts +21 -0
- package/dist/serialization/types/OpenAiAssistant.js +42 -0
- package/dist/serialization/types/Organization.d.ts +14 -0
- package/dist/serialization/types/Organization.js +35 -0
- package/dist/serialization/types/OrganizationCreate.d.ts +12 -0
- package/dist/serialization/types/OrganizationCreate.js +33 -0
- package/dist/serialization/types/Passage.d.ts +26 -0
- package/dist/serialization/types/Passage.js +47 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +14 -0
- package/dist/serialization/types/ReasoningMessage.js +35 -0
- package/dist/serialization/types/RecallMemorySummary.d.ts +12 -0
- package/dist/serialization/types/RecallMemorySummary.js +33 -0
- package/dist/serialization/types/ResponseFormat.d.ts +12 -0
- package/dist/serialization/types/ResponseFormat.js +33 -0
- package/dist/serialization/types/SandboxConfig.d.ts +20 -0
- package/dist/serialization/types/SandboxConfig.js +41 -0
- package/dist/serialization/types/SandboxConfigCreate.d.ts +13 -0
- package/dist/serialization/types/SandboxConfigCreate.js +34 -0
- package/dist/serialization/types/SandboxConfigCreateConfig.d.ts +12 -0
- package/dist/serialization/types/SandboxConfigCreateConfig.js +33 -0
- package/dist/serialization/types/SandboxConfigUpdate.d.ts +13 -0
- package/dist/serialization/types/SandboxConfigUpdate.js +34 -0
- package/dist/serialization/types/SandboxConfigUpdateConfig.d.ts +12 -0
- package/dist/serialization/types/SandboxConfigUpdateConfig.js +33 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.d.ts +21 -0
- package/dist/serialization/types/SandboxEnvironmentVariable.js +42 -0
- package/dist/serialization/types/SandboxEnvironmentVariableCreate.d.ts +14 -0
- package/dist/serialization/types/SandboxEnvironmentVariableCreate.js +35 -0
- package/dist/serialization/types/SandboxEnvironmentVariableUpdate.d.ts +14 -0
- package/dist/serialization/types/SandboxEnvironmentVariableUpdate.js +35 -0
- package/dist/serialization/types/SandboxType.d.ts +10 -0
- package/dist/serialization/types/SandboxType.js +31 -0
- package/dist/serialization/types/Source.d.ts +22 -0
- package/dist/serialization/types/Source.js +43 -0
- package/dist/serialization/types/SystemMessageInput.d.ts +14 -0
- package/dist/serialization/types/SystemMessageInput.js +35 -0
- package/dist/serialization/types/SystemMessageOutput.d.ts +14 -0
- package/dist/serialization/types/SystemMessageOutput.js +35 -0
- package/dist/serialization/types/TerminalToolRule.d.ts +14 -0
- package/dist/serialization/types/TerminalToolRule.js +35 -0
- package/dist/serialization/types/ToolCallDelta.d.ts +14 -0
- package/dist/serialization/types/ToolCallDelta.js +35 -0
- package/dist/serialization/types/ToolCallFunctionOutput.d.ts +13 -0
- package/dist/serialization/types/ToolCallFunctionOutput.js +34 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +15 -0
- package/dist/serialization/types/ToolCallMessage.js +36 -0
- package/dist/serialization/types/ToolCallMessageToolCall.d.ts +12 -0
- package/dist/serialization/types/ToolCallMessageToolCall.js +33 -0
- package/dist/serialization/types/ToolCreate.d.ts +19 -0
- package/dist/serialization/types/ToolCreate.js +40 -0
- package/dist/serialization/types/ToolFunctionChoice.d.ts +14 -0
- package/dist/serialization/types/ToolFunctionChoice.js +35 -0
- package/dist/serialization/types/ToolInput.d.ts +14 -0
- package/dist/serialization/types/ToolInput.js +35 -0
- package/dist/serialization/types/ToolMessage.d.ts +14 -0
- package/dist/serialization/types/ToolMessage.js +35 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +19 -0
- package/dist/serialization/types/ToolReturnMessage.js +40 -0
- package/dist/serialization/types/ToolReturnMessageStatus.d.ts +10 -0
- package/dist/serialization/types/ToolReturnMessageStatus.js +31 -0
- package/dist/serialization/types/ToolRuleType.d.ts +10 -0
- package/dist/serialization/types/ToolRuleType.js +38 -0
- package/dist/serialization/types/UsageStatistics.d.ts +14 -0
- package/dist/serialization/types/UsageStatistics.js +35 -0
- package/dist/serialization/types/User.d.ts +17 -0
- package/dist/serialization/types/User.js +38 -0
- package/dist/serialization/types/UserCreate.d.ts +13 -0
- package/dist/serialization/types/UserCreate.js +34 -0
- package/dist/serialization/types/UserMessageInput.d.ts +15 -0
- package/dist/serialization/types/UserMessageInput.js +36 -0
- package/dist/serialization/types/UserMessageInputContent.d.ts +10 -0
- package/dist/serialization/types/UserMessageInputContent.js +34 -0
- package/dist/serialization/types/UserMessageOutput.d.ts +14 -0
- package/dist/serialization/types/UserMessageOutput.js +35 -0
- package/dist/serialization/types/UserUpdate.d.ts +14 -0
- package/dist/serialization/types/UserUpdate.js +35 -0
- package/dist/serialization/types/ValidationError.d.ts +15 -0
- package/dist/serialization/types/ValidationError.js +36 -0
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/dist/serialization/types/ValidationErrorLocItem.js +31 -0
- package/dist/serialization/types/index.d.ts +114 -0
- package/dist/serialization/types/index.js +130 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +2 -2
- package/environments.js +1 -1
- package/package.json +1 -2
- package/reference.md +157 -11
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/resources/agents/client/getAgentMemoryBlocks.d.ts +11 -0
- package/serialization/resources/agents/client/getAgentMemoryBlocks.js +32 -0
- package/serialization/resources/agents/client/index.d.ts +3 -0
- package/serialization/resources/agents/client/index.js +32 -0
- package/serialization/resources/agents/client/list.d.ts +11 -0
- package/serialization/resources/agents/client/list.js +32 -0
- package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.d.ts +12 -0
- package/serialization/resources/agents/client/requests/AgentsCreateTemplateFromAgentRequest.js +33 -0
- package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.d.ts +12 -0
- package/serialization/resources/agents/client/requests/AgentsCreateVersionRequest.js +33 -0
- package/serialization/resources/agents/client/requests/AgentsMigrateRequest.d.ts +14 -0
- package/serialization/resources/agents/client/requests/AgentsMigrateRequest.js +35 -0
- package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.d.ts +18 -0
- package/serialization/resources/agents/client/requests/AgentsSearchDeployedAgentsRequest.js +39 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +41 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +62 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +27 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +48 -0
- package/serialization/resources/agents/client/requests/index.d.ts +6 -0
- package/serialization/resources/agents/client/requests/index.js +15 -0
- package/serialization/resources/agents/index.d.ts +3 -0
- package/serialization/resources/agents/index.js +19 -0
- package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/serialization/resources/agents/resources/archivalMemory/client/create.js +32 -0
- package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/serialization/resources/agents/resources/archivalMemory/client/index.js +32 -0
- package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/serialization/resources/agents/resources/archivalMemory/client/list.js +32 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +33 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +8 -0
- package/serialization/resources/agents/resources/index.js +37 -0
- package/serialization/resources/agents/resources/memory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/index.js +17 -0
- package/serialization/resources/agents/resources/memory/resources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/resources/index.js +27 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/index.js +27 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.d.ts +11 -0
- package/serialization/resources/agents/resources/memory/resources/messages/client/listInContext.js +32 -0
- package/serialization/resources/agents/resources/memory/resources/messages/index.d.ts +1 -0
- package/serialization/resources/agents/resources/memory/resources/messages/index.js +17 -0
- package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/index.js +17 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +16 -0
- package/serialization/resources/agents/resources/messages/client/requests/LettaStreamingRequest.js +37 -0
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +18 -0
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +39 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +2 -0
- package/serialization/resources/agents/resources/messages/client/requests/index.js +7 -0
- package/serialization/resources/agents/resources/messages/index.d.ts +2 -0
- package/serialization/resources/agents/resources/messages/index.js +18 -0
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +38 -0
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +51 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.d.ts +12 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponse.js +36 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.d.ts +34 -0
- package/serialization/resources/agents/resources/messages/types/MessagesListResponseItem.js +49 -0
- package/serialization/resources/agents/resources/messages/types/index.d.ts +3 -0
- package/serialization/resources/agents/resources/messages/types/index.js +19 -0
- package/serialization/resources/agents/resources/sources/client/get.d.ts +11 -0
- package/serialization/resources/agents/resources/sources/client/get.js +32 -0
- package/serialization/resources/agents/resources/sources/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/client/index.js +27 -0
- package/serialization/resources/agents/resources/sources/index.d.ts +1 -0
- package/serialization/resources/agents/resources/sources/index.js +17 -0
- package/serialization/resources/agents/resources/tools/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/client/index.js +27 -0
- package/serialization/resources/agents/resources/tools/client/list.d.ts +11 -0
- package/serialization/resources/agents/resources/tools/client/list.js +32 -0
- package/serialization/resources/agents/resources/tools/index.d.ts +1 -0
- package/serialization/resources/agents/resources/tools/index.js +17 -0
- package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.d.ts +12 -0
- package/serialization/resources/agents/types/AgentsGetAgentVariablesResponse.js +33 -0
- package/serialization/resources/agents/types/AgentsMigrateResponse.d.ts +12 -0
- package/serialization/resources/agents/types/AgentsMigrateResponse.js +33 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestCombinator.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.d.ts +22 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItem.js +43 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.d.ts +14 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js +35 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemNameOperator.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.d.ts +15 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js +36 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByDirection.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderByValue.js +31 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.d.ts +12 -0
- package/serialization/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js +33 -0
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +14 -0
- package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +35 -0
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +14 -0
- package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +35 -0
- package/serialization/resources/agents/types/index.d.ts +12 -0
- package/serialization/resources/agents/types/index.js +28 -0
- package/serialization/resources/blocks/client/index.d.ts +1 -0
- package/serialization/resources/blocks/client/index.js +27 -0
- package/serialization/resources/blocks/client/list.d.ts +11 -0
- package/serialization/resources/blocks/client/list.js +32 -0
- package/serialization/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/blocks/index.js +17 -0
- package/serialization/resources/index.d.ts +10 -0
- package/serialization/resources/index.js +39 -0
- package/serialization/resources/jobs/client/index.d.ts +2 -0
- package/serialization/resources/jobs/client/index.js +28 -0
- package/serialization/resources/jobs/client/list.d.ts +11 -0
- package/serialization/resources/jobs/client/list.js +32 -0
- package/serialization/resources/jobs/client/listActive.d.ts +11 -0
- package/serialization/resources/jobs/client/listActive.js +32 -0
- package/serialization/resources/jobs/index.d.ts +1 -0
- package/serialization/resources/jobs/index.js +17 -0
- package/serialization/resources/models/client/index.d.ts +2 -0
- package/serialization/resources/models/client/index.js +28 -0
- package/serialization/resources/models/client/listEmbeddingModels.d.ts +11 -0
- package/serialization/resources/models/client/listEmbeddingModels.js +32 -0
- package/serialization/resources/models/client/listLlms.d.ts +11 -0
- package/serialization/resources/models/client/listLlms.js +32 -0
- package/serialization/resources/models/index.d.ts +1 -0
- package/serialization/resources/models/index.js +17 -0
- package/serialization/resources/sources/client/getByName.d.ts +9 -0
- package/serialization/resources/sources/client/getByName.js +31 -0
- package/serialization/resources/sources/client/index.d.ts +3 -0
- package/serialization/resources/sources/client/index.js +32 -0
- package/serialization/resources/sources/client/list.d.ts +11 -0
- package/serialization/resources/sources/client/list.js +32 -0
- package/serialization/resources/sources/client/requests/SourceCreate.d.ts +16 -0
- package/serialization/resources/sources/client/requests/SourceCreate.js +37 -0
- package/serialization/resources/sources/client/requests/SourceUpdate.d.ts +16 -0
- package/serialization/resources/sources/client/requests/SourceUpdate.js +37 -0
- package/serialization/resources/sources/client/requests/index.d.ts +2 -0
- package/serialization/resources/sources/client/requests/index.js +7 -0
- package/serialization/resources/sources/index.d.ts +2 -0
- package/serialization/resources/sources/index.js +18 -0
- package/serialization/resources/sources/resources/files/client/index.d.ts +1 -0
- package/serialization/resources/sources/resources/files/client/index.js +27 -0
- package/serialization/resources/sources/resources/files/client/list.d.ts +11 -0
- package/serialization/resources/sources/resources/files/client/list.js +32 -0
- package/serialization/resources/sources/resources/files/index.d.ts +1 -0
- package/serialization/resources/sources/resources/files/index.js +17 -0
- package/serialization/resources/sources/resources/index.d.ts +2 -0
- package/serialization/resources/sources/resources/index.js +28 -0
- package/serialization/resources/sources/resources/passages/client/index.d.ts +1 -0
- package/serialization/resources/sources/resources/passages/client/index.js +27 -0
- package/serialization/resources/sources/resources/passages/client/list.d.ts +11 -0
- package/serialization/resources/sources/resources/passages/client/list.js +32 -0
- package/serialization/resources/sources/resources/passages/index.d.ts +1 -0
- package/serialization/resources/sources/resources/passages/index.js +17 -0
- package/serialization/resources/tools/client/addBaseTool.d.ts +11 -0
- package/serialization/resources/tools/client/addBaseTool.js +32 -0
- package/serialization/resources/tools/client/getByName.d.ts +9 -0
- package/serialization/resources/tools/client/getByName.js +31 -0
- package/serialization/resources/tools/client/index.d.ts +6 -0
- package/serialization/resources/tools/client/index.js +35 -0
- package/serialization/resources/tools/client/list.d.ts +11 -0
- package/serialization/resources/tools/client/list.js +32 -0
- package/serialization/resources/tools/client/listComposioActionsByApp.d.ts +11 -0
- package/serialization/resources/tools/client/listComposioActionsByApp.js +32 -0
- package/serialization/resources/tools/client/listComposioApps.d.ts +11 -0
- package/serialization/resources/tools/client/listComposioApps.js +32 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +15 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +36 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +18 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +39 -0
- package/serialization/resources/tools/client/requests/index.d.ts +2 -0
- package/serialization/resources/tools/client/requests/index.js +7 -0
- package/serialization/resources/tools/index.d.ts +1 -0
- package/serialization/resources/tools/index.js +17 -0
- package/serialization/types/ActionModel.d.ts +23 -0
- package/serialization/types/ActionModel.js +44 -0
- package/serialization/types/ActionParametersModel.d.ts +15 -0
- package/serialization/types/ActionParametersModel.js +36 -0
- package/serialization/types/ActionResponseModel.d.ts +15 -0
- package/serialization/types/ActionResponseModel.js +36 -0
- package/serialization/types/AgentEnvironmentVariable.d.ts +21 -0
- package/serialization/types/AgentEnvironmentVariable.js +42 -0
- package/serialization/types/AgentState.d.ts +39 -0
- package/serialization/types/AgentState.js +60 -0
- package/serialization/types/AgentStateToolRulesItem.d.ts +14 -0
- package/serialization/types/AgentStateToolRulesItem.js +35 -0
- package/serialization/types/AgentType.d.ts +10 -0
- package/serialization/types/AgentType.js +37 -0
- package/serialization/types/AppAuthScheme.d.ts +23 -0
- package/serialization/types/AppAuthScheme.js +44 -0
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +10 -0
- package/serialization/types/AppAuthSchemeAuthMode.js +31 -0
- package/serialization/types/AppModel.d.ts +28 -0
- package/serialization/types/AppModel.js +51 -0
- package/serialization/types/ArchivalMemorySummary.d.ts +12 -0
- package/serialization/types/ArchivalMemorySummary.js +33 -0
- package/serialization/types/AssistantFile.d.ts +15 -0
- package/serialization/types/AssistantFile.js +36 -0
- package/serialization/types/AssistantMessageInput.d.ts +16 -0
- package/serialization/types/AssistantMessageInput.js +37 -0
- package/serialization/types/AssistantMessageOutput.d.ts +14 -0
- package/serialization/types/AssistantMessageOutput.js +35 -0
- package/serialization/types/AuthRequest.d.ts +12 -0
- package/serialization/types/AuthRequest.js +33 -0
- package/serialization/types/AuthResponse.d.ts +13 -0
- package/serialization/types/AuthResponse.js +34 -0
- package/serialization/types/AuthSchemeField.d.ts +19 -0
- package/serialization/types/AuthSchemeField.js +40 -0
- package/serialization/types/Block.d.ts +22 -0
- package/serialization/types/Block.js +43 -0
- package/serialization/types/BlockUpdate.d.ts +18 -0
- package/serialization/types/BlockUpdate.js +39 -0
- package/serialization/types/ChatCompletionRequest.d.ts +38 -0
- package/serialization/types/ChatCompletionRequest.js +59 -0
- package/serialization/types/ChatCompletionRequestFunctionCall.d.ts +11 -0
- package/serialization/types/ChatCompletionRequestFunctionCall.js +36 -0
- package/serialization/types/ChatCompletionRequestMessagesItem.d.ts +14 -0
- package/serialization/types/ChatCompletionRequestMessagesItem.js +35 -0
- package/serialization/types/ChatCompletionRequestStop.d.ts +10 -0
- package/serialization/types/ChatCompletionRequestStop.js +34 -0
- package/serialization/types/ChatCompletionRequestToolChoice.d.ts +11 -0
- package/serialization/types/ChatCompletionRequestToolChoice.js +37 -0
- package/serialization/types/ChatCompletionResponse.d.ts +20 -0
- package/serialization/types/ChatCompletionResponse.js +41 -0
- package/serialization/types/ChildToolRule.d.ts +15 -0
- package/serialization/types/ChildToolRule.js +36 -0
- package/serialization/types/Choice.d.ts +18 -0
- package/serialization/types/Choice.js +41 -0
- package/serialization/types/ConditionalToolRule.d.ts +17 -0
- package/serialization/types/ConditionalToolRule.js +38 -0
- package/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/serialization/types/ConflictErrorBody.js +33 -0
- package/serialization/types/ContextWindowOverview.d.ts +30 -0
- package/serialization/types/ContextWindowOverview.js +51 -0
- package/serialization/types/CreateAssistantFileRequest.d.ts +12 -0
- package/serialization/types/CreateAssistantFileRequest.js +33 -0
- package/serialization/types/CreateAssistantRequest.d.ts +19 -0
- package/serialization/types/CreateAssistantRequest.js +40 -0
- package/serialization/types/CreateBlock.d.ts +18 -0
- package/serialization/types/CreateBlock.js +39 -0
- package/serialization/types/DeleteAssistantFileResponse.d.ts +14 -0
- package/serialization/types/DeleteAssistantFileResponse.js +35 -0
- package/serialization/types/DeleteAssistantResponse.d.ts +14 -0
- package/serialization/types/DeleteAssistantResponse.js +35 -0
- package/serialization/types/E2BSandboxConfig.d.ts +14 -0
- package/serialization/types/E2BSandboxConfig.js +35 -0
- package/serialization/types/EmbeddingConfig.d.ts +21 -0
- package/serialization/types/EmbeddingConfig.js +42 -0
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +10 -0
- package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +49 -0
- package/serialization/types/FileMetadata.d.ts +23 -0
- package/serialization/types/FileMetadata.js +44 -0
- package/serialization/types/FunctionCallInput.d.ts +12 -0
- package/serialization/types/FunctionCallInput.js +33 -0
- package/serialization/types/FunctionCallOutput.d.ts +13 -0
- package/serialization/types/FunctionCallOutput.js +34 -0
- package/serialization/types/FunctionSchema.d.ts +14 -0
- package/serialization/types/FunctionSchema.js +35 -0
- package/serialization/types/Health.d.ts +13 -0
- package/serialization/types/Health.js +34 -0
- package/serialization/types/HttpValidationError.d.ts +13 -0
- package/serialization/types/HttpValidationError.js +34 -0
- package/serialization/types/InitToolRule.d.ts +14 -0
- package/serialization/types/InitToolRule.js +35 -0
- package/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/serialization/types/InternalServerErrorBody.js +33 -0
- package/serialization/types/Job.d.ts +21 -0
- package/serialization/types/Job.js +42 -0
- package/serialization/types/JobStatus.d.ts +10 -0
- package/serialization/types/JobStatus.js +31 -0
- package/serialization/types/LettaRequest.d.ts +15 -0
- package/serialization/types/LettaRequest.js +36 -0
- package/serialization/types/LettaResponse.d.ts +15 -0
- package/serialization/types/LettaResponse.js +36 -0
- package/serialization/types/LettaResponseMessagesItem.d.ts +34 -0
- package/serialization/types/LettaResponseMessagesItem.js +49 -0
- package/serialization/types/LettaSchemasLettaMessageToolCall.d.ts +14 -0
- package/serialization/types/LettaSchemasLettaMessageToolCall.js +35 -0
- package/serialization/types/LettaSchemasMessageMessage.d.ts +26 -0
- package/serialization/types/LettaSchemasMessageMessage.js +47 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.d.ts +14 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestTool.js +35 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCall.js +36 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.d.ts +13 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionRequestToolCallFunction.js +34 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.d.ts +17 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseMessage.js +38 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionResponseToolCall.js +36 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.d.ts +13 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallFunction.js +34 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallInput.js +36 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.d.ts +15 -0
- package/serialization/types/LettaSchemasOpenaiChatCompletionsToolCallOutput.js +36 -0
- package/serialization/types/LettaSchemasToolTool.d.ts +23 -0
- package/serialization/types/LettaSchemasToolTool.js +44 -0
- package/serialization/types/LettaUsageStatistics.d.ts +15 -0
- package/serialization/types/LettaUsageStatistics.js +36 -0
- package/serialization/types/LlmConfig.d.ts +19 -0
- package/serialization/types/LlmConfig.js +40 -0
- package/serialization/types/LlmConfigModelEndpointType.d.ts +10 -0
- package/serialization/types/LlmConfigModelEndpointType.js +49 -0
- package/serialization/types/LocalSandboxConfig.d.ts +14 -0
- package/serialization/types/LocalSandboxConfig.js +35 -0
- package/serialization/types/LogProbToken.d.ts +14 -0
- package/serialization/types/LogProbToken.js +35 -0
- package/serialization/types/Memory.d.ts +14 -0
- package/serialization/types/Memory.js +35 -0
- package/serialization/types/MessageContentLogProb.d.ts +16 -0
- package/serialization/types/MessageContentLogProb.js +37 -0
- package/serialization/types/MessageCreate.d.ts +15 -0
- package/serialization/types/MessageCreate.js +36 -0
- package/serialization/types/MessageCreateRole.d.ts +10 -0
- package/serialization/types/MessageCreateRole.js +31 -0
- package/serialization/types/MessageRole.d.ts +10 -0
- package/serialization/types/MessageRole.js +31 -0
- package/serialization/types/NotFoundErrorBody.d.ts +12 -0
- package/serialization/types/NotFoundErrorBody.js +33 -0
- package/serialization/types/NotFoundErrorBodyMessage.d.ts +10 -0
- package/serialization/types/NotFoundErrorBodyMessage.js +34 -0
- package/serialization/types/OpenAiAssistant.d.ts +21 -0
- package/serialization/types/OpenAiAssistant.js +42 -0
- package/serialization/types/Organization.d.ts +14 -0
- package/serialization/types/Organization.js +35 -0
- package/serialization/types/OrganizationCreate.d.ts +12 -0
- package/serialization/types/OrganizationCreate.js +33 -0
- package/serialization/types/Passage.d.ts +26 -0
- package/serialization/types/Passage.js +47 -0
- package/serialization/types/ReasoningMessage.d.ts +14 -0
- package/serialization/types/ReasoningMessage.js +35 -0
- package/serialization/types/RecallMemorySummary.d.ts +12 -0
- package/serialization/types/RecallMemorySummary.js +33 -0
- package/serialization/types/ResponseFormat.d.ts +12 -0
- package/serialization/types/ResponseFormat.js +33 -0
- package/serialization/types/SandboxConfig.d.ts +20 -0
- package/serialization/types/SandboxConfig.js +41 -0
- package/serialization/types/SandboxConfigCreate.d.ts +13 -0
- package/serialization/types/SandboxConfigCreate.js +34 -0
- package/serialization/types/SandboxConfigCreateConfig.d.ts +12 -0
- package/serialization/types/SandboxConfigCreateConfig.js +33 -0
- package/serialization/types/SandboxConfigUpdate.d.ts +13 -0
- package/serialization/types/SandboxConfigUpdate.js +34 -0
- package/serialization/types/SandboxConfigUpdateConfig.d.ts +12 -0
- package/serialization/types/SandboxConfigUpdateConfig.js +33 -0
- package/serialization/types/SandboxEnvironmentVariable.d.ts +21 -0
- package/serialization/types/SandboxEnvironmentVariable.js +42 -0
- package/serialization/types/SandboxEnvironmentVariableCreate.d.ts +14 -0
- package/serialization/types/SandboxEnvironmentVariableCreate.js +35 -0
- package/serialization/types/SandboxEnvironmentVariableUpdate.d.ts +14 -0
- package/serialization/types/SandboxEnvironmentVariableUpdate.js +35 -0
- package/serialization/types/SandboxType.d.ts +10 -0
- package/serialization/types/SandboxType.js +31 -0
- package/serialization/types/Source.d.ts +22 -0
- package/serialization/types/Source.js +43 -0
- package/serialization/types/SystemMessageInput.d.ts +14 -0
- package/serialization/types/SystemMessageInput.js +35 -0
- package/serialization/types/SystemMessageOutput.d.ts +14 -0
- package/serialization/types/SystemMessageOutput.js +35 -0
- package/serialization/types/TerminalToolRule.d.ts +14 -0
- package/serialization/types/TerminalToolRule.js +35 -0
- package/serialization/types/ToolCallDelta.d.ts +14 -0
- package/serialization/types/ToolCallDelta.js +35 -0
- package/serialization/types/ToolCallFunctionOutput.d.ts +13 -0
- package/serialization/types/ToolCallFunctionOutput.js +34 -0
- package/serialization/types/ToolCallMessage.d.ts +15 -0
- package/serialization/types/ToolCallMessage.js +36 -0
- package/serialization/types/ToolCallMessageToolCall.d.ts +12 -0
- package/serialization/types/ToolCallMessageToolCall.js +33 -0
- package/serialization/types/ToolCreate.d.ts +19 -0
- package/serialization/types/ToolCreate.js +40 -0
- package/serialization/types/ToolFunctionChoice.d.ts +14 -0
- package/serialization/types/ToolFunctionChoice.js +35 -0
- package/serialization/types/ToolInput.d.ts +14 -0
- package/serialization/types/ToolInput.js +35 -0
- package/serialization/types/ToolMessage.d.ts +14 -0
- package/serialization/types/ToolMessage.js +35 -0
- package/serialization/types/ToolReturnMessage.d.ts +19 -0
- package/serialization/types/ToolReturnMessage.js +40 -0
- package/serialization/types/ToolReturnMessageStatus.d.ts +10 -0
- package/serialization/types/ToolReturnMessageStatus.js +31 -0
- package/serialization/types/ToolRuleType.d.ts +10 -0
- package/serialization/types/ToolRuleType.js +38 -0
- package/serialization/types/UsageStatistics.d.ts +14 -0
- package/serialization/types/UsageStatistics.js +35 -0
- package/serialization/types/User.d.ts +17 -0
- package/serialization/types/User.js +38 -0
- package/serialization/types/UserCreate.d.ts +13 -0
- package/serialization/types/UserCreate.js +34 -0
- package/serialization/types/UserMessageInput.d.ts +15 -0
- package/serialization/types/UserMessageInput.js +36 -0
- package/serialization/types/UserMessageInputContent.d.ts +10 -0
- package/serialization/types/UserMessageInputContent.js +34 -0
- package/serialization/types/UserMessageOutput.d.ts +14 -0
- package/serialization/types/UserMessageOutput.js +35 -0
- package/serialization/types/UserUpdate.d.ts +14 -0
- package/serialization/types/UserUpdate.js +35 -0
- package/serialization/types/ValidationError.d.ts +15 -0
- package/serialization/types/ValidationError.js +36 -0
- package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/serialization/types/ValidationErrorLocItem.js +31 -0
- package/serialization/types/index.d.ts +114 -0
- package/serialization/types/index.js +130 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +0 -9
- package/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +0 -9
- package/api/types/LettaResponseAssistantMessage.d.ts +0 -9
- package/api/types/LettaResponseLettaUsageStatistics.d.ts +0 -23
- package/api/types/LettaResponseReasoningMessage.d.ts +0 -17
- package/api/types/LettaResponseSystemMessage.d.ts +0 -17
- package/api/types/LettaResponseToolCall.d.ts +0 -8
- package/api/types/LettaResponseToolCallDelta.d.ts +0 -8
- package/api/types/LettaResponseToolCallMessage.d.ts +0 -18
- package/api/types/LettaResponseToolCallMessageToolCall.d.ts +0 -5
- package/api/types/LettaResponseToolCallMessageToolCallOne.d.ts +0 -8
- package/api/types/LettaResponseToolCallMessageToolCallZero.d.ts +0 -8
- package/api/types/LettaResponseToolCallMessageToolCallZero.js +0 -5
- package/api/types/LettaResponseToolReturnMessage.d.ts +0 -26
- package/api/types/LettaResponseToolReturnMessage.js +0 -5
- package/api/types/LettaResponseToolReturnMessageStatus.d.ts +0 -8
- package/api/types/LettaResponseToolReturnMessageStatus.js +0 -10
- package/api/types/LettaResponseUserMessage.d.ts +0 -17
- package/api/types/LettaResponseUserMessage.js +0 -5
- package/core/auth/BasicAuth.d.ts +0 -8
- package/core/auth/BasicAuth.js +0 -26
- package/core/auth/BearerToken.d.ts +0 -5
- package/core/auth/BearerToken.js +0 -15
- package/core/auth/index.d.ts +0 -2
- package/core/auth/index.js +0 -7
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.d.ts +0 -9
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemDirection.js +0 -5
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.d.ts +0 -9
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOperator.js +0 -5
- package/dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemZero.js +0 -5
- package/dist/api/types/LettaResponseAssistantMessage.d.ts +0 -9
- package/dist/api/types/LettaResponseAssistantMessage.js +0 -5
- package/dist/api/types/LettaResponseLettaUsageStatistics.d.ts +0 -23
- package/dist/api/types/LettaResponseLettaUsageStatistics.js +0 -5
- package/dist/api/types/LettaResponseReasoningMessage.d.ts +0 -17
- package/dist/api/types/LettaResponseReasoningMessage.js +0 -5
- package/dist/api/types/LettaResponseSystemMessage.d.ts +0 -17
- package/dist/api/types/LettaResponseSystemMessage.js +0 -5
- package/dist/api/types/LettaResponseToolCall.d.ts +0 -8
- package/dist/api/types/LettaResponseToolCall.js +0 -5
- package/dist/api/types/LettaResponseToolCallDelta.d.ts +0 -8
- package/dist/api/types/LettaResponseToolCallDelta.js +0 -5
- package/dist/api/types/LettaResponseToolCallMessage.d.ts +0 -18
- package/dist/api/types/LettaResponseToolCallMessage.js +0 -5
- package/dist/api/types/LettaResponseToolCallMessageToolCall.d.ts +0 -5
- package/dist/api/types/LettaResponseToolCallMessageToolCall.js +0 -5
- package/dist/api/types/LettaResponseToolCallMessageToolCallOne.d.ts +0 -8
- package/dist/api/types/LettaResponseToolCallMessageToolCallOne.js +0 -5
- package/dist/api/types/LettaResponseToolCallMessageToolCallZero.d.ts +0 -8
- package/dist/api/types/LettaResponseToolCallMessageToolCallZero.js +0 -5
- package/dist/api/types/LettaResponseToolReturnMessage.d.ts +0 -26
- package/dist/api/types/LettaResponseToolReturnMessage.js +0 -5
- package/dist/api/types/LettaResponseToolReturnMessageStatus.d.ts +0 -8
- package/dist/api/types/LettaResponseToolReturnMessageStatus.js +0 -10
- package/dist/api/types/LettaResponseUserMessage.d.ts +0 -17
- package/dist/api/types/LettaResponseUserMessage.js +0 -5
- package/dist/core/auth/BasicAuth.d.ts +0 -8
- package/dist/core/auth/BasicAuth.js +0 -26
- package/dist/core/auth/BearerToken.d.ts +0 -5
- package/dist/core/auth/BearerToken.js +0 -15
- package/dist/core/auth/index.d.ts +0 -2
- package/dist/core/auth/index.js +0 -7
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemDirection.js → AgentsGetAgentVariablesResponse.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemOperator.js → AgentsSearchDeployedAgentsRequestSearchItemName.js} +0 -0
- /package/api/resources/agents/types/{AgentsSearchDeployedAgentsRequestSearchItemZero.js → AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js} +0 -0
- /package/api/{types/LettaResponseAssistantMessage.js → resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js} +0 -0
- /package/api/types/{LettaResponseLettaUsageStatistics.js → AgentEnvironmentVariable.js} +0 -0
- /package/api/types/{LettaResponseReasoningMessage.js → LettaResponseMessagesItem.js} +0 -0
- /package/{api/types/LettaResponseSystemMessage.js → dist/api/resources/agents/types/AgentsGetAgentVariablesResponse.js} +0 -0
- /package/{api/types/LettaResponseToolCall.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemName.js} +0 -0
- /package/{api/types/LettaResponseToolCallDelta.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemOrderBy.js} +0 -0
- /package/{api/types/LettaResponseToolCallMessage.js → dist/api/resources/agents/types/AgentsSearchDeployedAgentsRequestSearchItemVersion.js} +0 -0
- /package/{api/types/LettaResponseToolCallMessageToolCall.js → dist/api/types/AgentEnvironmentVariable.js} +0 -0
- /package/{api/types/LettaResponseToolCallMessageToolCallOne.js → dist/api/types/LettaResponseMessagesItem.js} +0 -0
|
@@ -43,11 +43,12 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
44
|
const Letta = __importStar(require("../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
47
48
|
const Client_1 = require("../resources/files/client/Client");
|
|
48
49
|
const Client_2 = require("../resources/passages/client/Client");
|
|
49
50
|
class Sources {
|
|
50
|
-
constructor(_options) {
|
|
51
|
+
constructor(_options = {}) {
|
|
51
52
|
this._options = _options;
|
|
52
53
|
}
|
|
53
54
|
get files() {
|
|
@@ -73,9 +74,9 @@ class Sources {
|
|
|
73
74
|
var _a, _b;
|
|
74
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
77
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
77
78
|
method: "GET",
|
|
78
|
-
headers: Object.assign(
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
80
|
contentType: "application/json",
|
|
80
81
|
requestType: "json",
|
|
81
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -83,12 +84,24 @@ class Sources {
|
|
|
83
84
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
85
|
});
|
|
85
86
|
if (_response.ok) {
|
|
86
|
-
return _response.body
|
|
87
|
+
return serializers.Source.parseOrThrow(_response.body, {
|
|
88
|
+
unrecognizedObjectKeys: "passthrough",
|
|
89
|
+
allowUnrecognizedUnionMembers: true,
|
|
90
|
+
allowUnrecognizedEnumValues: true,
|
|
91
|
+
skipValidation: true,
|
|
92
|
+
breadcrumbsPrefix: ["response"],
|
|
93
|
+
});
|
|
87
94
|
}
|
|
88
95
|
if (_response.error.reason === "status-code") {
|
|
89
96
|
switch (_response.error.statusCode) {
|
|
90
97
|
case 422:
|
|
91
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
98
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
99
|
+
unrecognizedObjectKeys: "passthrough",
|
|
100
|
+
allowUnrecognizedUnionMembers: true,
|
|
101
|
+
allowUnrecognizedEnumValues: true,
|
|
102
|
+
skipValidation: true,
|
|
103
|
+
breadcrumbsPrefix: ["response"],
|
|
104
|
+
}));
|
|
92
105
|
default:
|
|
93
106
|
throw new errors.LettaError({
|
|
94
107
|
statusCode: _response.error.statusCode,
|
|
@@ -126,9 +139,9 @@ class Sources {
|
|
|
126
139
|
var _a, _b;
|
|
127
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
129
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
142
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
130
143
|
method: "DELETE",
|
|
131
|
-
headers: Object.assign(
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
132
145
|
contentType: "application/json",
|
|
133
146
|
requestType: "json",
|
|
134
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -141,7 +154,13 @@ class Sources {
|
|
|
141
154
|
if (_response.error.reason === "status-code") {
|
|
142
155
|
switch (_response.error.statusCode) {
|
|
143
156
|
case 422:
|
|
144
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
157
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
158
|
+
unrecognizedObjectKeys: "passthrough",
|
|
159
|
+
allowUnrecognizedUnionMembers: true,
|
|
160
|
+
allowUnrecognizedEnumValues: true,
|
|
161
|
+
skipValidation: true,
|
|
162
|
+
breadcrumbsPrefix: ["response"],
|
|
163
|
+
}));
|
|
145
164
|
default:
|
|
146
165
|
throw new errors.LettaError({
|
|
147
166
|
statusCode: _response.error.statusCode,
|
|
@@ -180,23 +199,35 @@ class Sources {
|
|
|
180
199
|
var _a, _b;
|
|
181
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
183
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
202
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
184
203
|
method: "PATCH",
|
|
185
|
-
headers: Object.assign(
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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
205
|
contentType: "application/json",
|
|
187
206
|
requestType: "json",
|
|
188
|
-
body: request,
|
|
207
|
+
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
189
208
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
190
209
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
191
210
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
192
211
|
});
|
|
193
212
|
if (_response.ok) {
|
|
194
|
-
return _response.body
|
|
213
|
+
return serializers.Source.parseOrThrow(_response.body, {
|
|
214
|
+
unrecognizedObjectKeys: "passthrough",
|
|
215
|
+
allowUnrecognizedUnionMembers: true,
|
|
216
|
+
allowUnrecognizedEnumValues: true,
|
|
217
|
+
skipValidation: true,
|
|
218
|
+
breadcrumbsPrefix: ["response"],
|
|
219
|
+
});
|
|
195
220
|
}
|
|
196
221
|
if (_response.error.reason === "status-code") {
|
|
197
222
|
switch (_response.error.statusCode) {
|
|
198
223
|
case 422:
|
|
199
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
224
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
225
|
+
unrecognizedObjectKeys: "passthrough",
|
|
226
|
+
allowUnrecognizedUnionMembers: true,
|
|
227
|
+
allowUnrecognizedEnumValues: true,
|
|
228
|
+
skipValidation: true,
|
|
229
|
+
breadcrumbsPrefix: ["response"],
|
|
230
|
+
}));
|
|
200
231
|
default:
|
|
201
232
|
throw new errors.LettaError({
|
|
202
233
|
statusCode: _response.error.statusCode,
|
|
@@ -234,9 +265,9 @@ class Sources {
|
|
|
234
265
|
var _a, _b;
|
|
235
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
236
267
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
237
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
268
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
|
|
238
269
|
method: "GET",
|
|
239
|
-
headers: Object.assign(
|
|
270
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
240
271
|
contentType: "application/json",
|
|
241
272
|
requestType: "json",
|
|
242
273
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -244,12 +275,24 @@ class Sources {
|
|
|
244
275
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
245
276
|
});
|
|
246
277
|
if (_response.ok) {
|
|
247
|
-
return _response.body
|
|
278
|
+
return serializers.sources.getByName.Response.parseOrThrow(_response.body, {
|
|
279
|
+
unrecognizedObjectKeys: "passthrough",
|
|
280
|
+
allowUnrecognizedUnionMembers: true,
|
|
281
|
+
allowUnrecognizedEnumValues: true,
|
|
282
|
+
skipValidation: true,
|
|
283
|
+
breadcrumbsPrefix: ["response"],
|
|
284
|
+
});
|
|
248
285
|
}
|
|
249
286
|
if (_response.error.reason === "status-code") {
|
|
250
287
|
switch (_response.error.statusCode) {
|
|
251
288
|
case 422:
|
|
252
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
289
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
290
|
+
unrecognizedObjectKeys: "passthrough",
|
|
291
|
+
allowUnrecognizedUnionMembers: true,
|
|
292
|
+
allowUnrecognizedEnumValues: true,
|
|
293
|
+
skipValidation: true,
|
|
294
|
+
breadcrumbsPrefix: ["response"],
|
|
295
|
+
}));
|
|
253
296
|
default:
|
|
254
297
|
throw new errors.LettaError({
|
|
255
298
|
statusCode: _response.error.statusCode,
|
|
@@ -286,9 +329,9 @@ class Sources {
|
|
|
286
329
|
var _a, _b;
|
|
287
330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
331
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
289
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
332
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
290
333
|
method: "GET",
|
|
291
|
-
headers: Object.assign(
|
|
334
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
292
335
|
contentType: "application/json",
|
|
293
336
|
requestType: "json",
|
|
294
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -296,12 +339,24 @@ class Sources {
|
|
|
296
339
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
297
340
|
});
|
|
298
341
|
if (_response.ok) {
|
|
299
|
-
return _response.body
|
|
342
|
+
return serializers.sources.list.Response.parseOrThrow(_response.body, {
|
|
343
|
+
unrecognizedObjectKeys: "passthrough",
|
|
344
|
+
allowUnrecognizedUnionMembers: true,
|
|
345
|
+
allowUnrecognizedEnumValues: true,
|
|
346
|
+
skipValidation: true,
|
|
347
|
+
breadcrumbsPrefix: ["response"],
|
|
348
|
+
});
|
|
300
349
|
}
|
|
301
350
|
if (_response.error.reason === "status-code") {
|
|
302
351
|
switch (_response.error.statusCode) {
|
|
303
352
|
case 422:
|
|
304
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
353
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
354
|
+
unrecognizedObjectKeys: "passthrough",
|
|
355
|
+
allowUnrecognizedUnionMembers: true,
|
|
356
|
+
allowUnrecognizedEnumValues: true,
|
|
357
|
+
skipValidation: true,
|
|
358
|
+
breadcrumbsPrefix: ["response"],
|
|
359
|
+
}));
|
|
305
360
|
default:
|
|
306
361
|
throw new errors.LettaError({
|
|
307
362
|
statusCode: _response.error.statusCode,
|
|
@@ -341,23 +396,35 @@ class Sources {
|
|
|
341
396
|
var _a, _b;
|
|
342
397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
343
398
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
344
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
399
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
345
400
|
method: "POST",
|
|
346
|
-
headers: Object.assign(
|
|
401
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
347
402
|
contentType: "application/json",
|
|
348
403
|
requestType: "json",
|
|
349
|
-
body: request,
|
|
404
|
+
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
350
405
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
351
406
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
352
407
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
353
408
|
});
|
|
354
409
|
if (_response.ok) {
|
|
355
|
-
return _response.body
|
|
410
|
+
return serializers.Source.parseOrThrow(_response.body, {
|
|
411
|
+
unrecognizedObjectKeys: "passthrough",
|
|
412
|
+
allowUnrecognizedUnionMembers: true,
|
|
413
|
+
allowUnrecognizedEnumValues: true,
|
|
414
|
+
skipValidation: true,
|
|
415
|
+
breadcrumbsPrefix: ["response"],
|
|
416
|
+
});
|
|
356
417
|
}
|
|
357
418
|
if (_response.error.reason === "status-code") {
|
|
358
419
|
switch (_response.error.statusCode) {
|
|
359
420
|
case 422:
|
|
360
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
421
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
422
|
+
unrecognizedObjectKeys: "passthrough",
|
|
423
|
+
allowUnrecognizedUnionMembers: true,
|
|
424
|
+
allowUnrecognizedEnumValues: true,
|
|
425
|
+
skipValidation: true,
|
|
426
|
+
breadcrumbsPrefix: ["response"],
|
|
427
|
+
}));
|
|
361
428
|
default:
|
|
362
429
|
throw new errors.LettaError({
|
|
363
430
|
statusCode: _response.error.statusCode,
|
|
@@ -391,19 +458,19 @@ class Sources {
|
|
|
391
458
|
*
|
|
392
459
|
* @example
|
|
393
460
|
* await client.sources.attach("source_id", {
|
|
394
|
-
*
|
|
461
|
+
* agentId: "agent_id"
|
|
395
462
|
* })
|
|
396
463
|
*/
|
|
397
464
|
attach(sourceId, request, requestOptions) {
|
|
398
465
|
var _a, _b;
|
|
399
466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
400
|
-
const {
|
|
467
|
+
const { agentId } = request;
|
|
401
468
|
const _queryParams = {};
|
|
402
469
|
_queryParams["agent_id"] = agentId;
|
|
403
470
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
404
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
471
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/attach`),
|
|
405
472
|
method: "POST",
|
|
406
|
-
headers: Object.assign(
|
|
473
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
407
474
|
contentType: "application/json",
|
|
408
475
|
queryParameters: _queryParams,
|
|
409
476
|
requestType: "json",
|
|
@@ -412,12 +479,24 @@ class Sources {
|
|
|
412
479
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
413
480
|
});
|
|
414
481
|
if (_response.ok) {
|
|
415
|
-
return _response.body
|
|
482
|
+
return serializers.Source.parseOrThrow(_response.body, {
|
|
483
|
+
unrecognizedObjectKeys: "passthrough",
|
|
484
|
+
allowUnrecognizedUnionMembers: true,
|
|
485
|
+
allowUnrecognizedEnumValues: true,
|
|
486
|
+
skipValidation: true,
|
|
487
|
+
breadcrumbsPrefix: ["response"],
|
|
488
|
+
});
|
|
416
489
|
}
|
|
417
490
|
if (_response.error.reason === "status-code") {
|
|
418
491
|
switch (_response.error.statusCode) {
|
|
419
492
|
case 422:
|
|
420
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
493
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
494
|
+
unrecognizedObjectKeys: "passthrough",
|
|
495
|
+
allowUnrecognizedUnionMembers: true,
|
|
496
|
+
allowUnrecognizedEnumValues: true,
|
|
497
|
+
skipValidation: true,
|
|
498
|
+
breadcrumbsPrefix: ["response"],
|
|
499
|
+
}));
|
|
421
500
|
default:
|
|
422
501
|
throw new errors.LettaError({
|
|
423
502
|
statusCode: _response.error.statusCode,
|
|
@@ -451,19 +530,19 @@ class Sources {
|
|
|
451
530
|
*
|
|
452
531
|
* @example
|
|
453
532
|
* await client.sources.detach("source_id", {
|
|
454
|
-
*
|
|
533
|
+
* agentId: "agent_id"
|
|
455
534
|
* })
|
|
456
535
|
*/
|
|
457
536
|
detach(sourceId, request, requestOptions) {
|
|
458
537
|
var _a, _b;
|
|
459
538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
-
const {
|
|
539
|
+
const { agentId } = request;
|
|
461
540
|
const _queryParams = {};
|
|
462
541
|
_queryParams["agent_id"] = agentId;
|
|
463
542
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
464
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
543
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/detach`),
|
|
465
544
|
method: "POST",
|
|
466
|
-
headers: Object.assign(
|
|
545
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
467
546
|
contentType: "application/json",
|
|
468
547
|
queryParameters: _queryParams,
|
|
469
548
|
requestType: "json",
|
|
@@ -472,12 +551,24 @@ class Sources {
|
|
|
472
551
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
473
552
|
});
|
|
474
553
|
if (_response.ok) {
|
|
475
|
-
return _response.body
|
|
554
|
+
return serializers.Source.parseOrThrow(_response.body, {
|
|
555
|
+
unrecognizedObjectKeys: "passthrough",
|
|
556
|
+
allowUnrecognizedUnionMembers: true,
|
|
557
|
+
allowUnrecognizedEnumValues: true,
|
|
558
|
+
skipValidation: true,
|
|
559
|
+
breadcrumbsPrefix: ["response"],
|
|
560
|
+
});
|
|
476
561
|
}
|
|
477
562
|
if (_response.error.reason === "status-code") {
|
|
478
563
|
switch (_response.error.statusCode) {
|
|
479
564
|
case 422:
|
|
480
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
565
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
566
|
+
unrecognizedObjectKeys: "passthrough",
|
|
567
|
+
allowUnrecognizedUnionMembers: true,
|
|
568
|
+
allowUnrecognizedEnumValues: true,
|
|
569
|
+
skipValidation: true,
|
|
570
|
+
breadcrumbsPrefix: ["response"],
|
|
571
|
+
}));
|
|
481
572
|
default:
|
|
482
573
|
throw new errors.LettaError({
|
|
483
574
|
statusCode: _response.error.statusCode,
|
|
@@ -500,9 +591,10 @@ class Sources {
|
|
|
500
591
|
}
|
|
501
592
|
});
|
|
502
593
|
}
|
|
503
|
-
|
|
594
|
+
_getCustomAuthorizationHeaders() {
|
|
504
595
|
return __awaiter(this, void 0, void 0, function* () {
|
|
505
|
-
|
|
596
|
+
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
597
|
+
return { Authorization: `Bearer ${tokenValue}` };
|
|
506
598
|
});
|
|
507
599
|
}
|
|
508
600
|
}
|
|
@@ -12,9 +12,9 @@ export interface SourceCreate {
|
|
|
12
12
|
/** The name of the source. */
|
|
13
13
|
name: string;
|
|
14
14
|
/** The embedding configuration used by the source. */
|
|
15
|
-
|
|
15
|
+
embeddingConfig?: Letta.EmbeddingConfig;
|
|
16
16
|
/** The description of the source. */
|
|
17
17
|
description?: string;
|
|
18
18
|
/** Metadata associated with the source. */
|
|
19
|
-
|
|
19
|
+
metadata?: Record<string, unknown>;
|
|
20
20
|
}
|
|
@@ -12,7 +12,7 @@ export interface SourceUpdate {
|
|
|
12
12
|
/** The description of the source. */
|
|
13
13
|
description?: string;
|
|
14
14
|
/** Metadata associated with the source. */
|
|
15
|
-
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
16
|
/** The embedding configuration used by the source. */
|
|
17
|
-
|
|
17
|
+
embeddingConfig?: Letta.EmbeddingConfig;
|
|
18
18
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* agentId: "agent_id"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface SourcesAttachRequest {
|
|
11
11
|
/**
|
|
12
12
|
* The unique identifier of the agent to attach the source to.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
agentId: string;
|
|
15
15
|
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* agentId: "agent_id"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface SourcesDetachRequest {
|
|
11
11
|
/**
|
|
12
12
|
* The unique identifier of the agent to detach the source from.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
agentId: string;
|
|
15
15
|
}
|
|
@@ -10,7 +10,7 @@ import { Blob } from "buffer";
|
|
|
10
10
|
export declare namespace Files {
|
|
11
11
|
interface Options {
|
|
12
12
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
13
|
-
token
|
|
13
|
+
token?: core.Supplier<string | undefined>;
|
|
14
14
|
fetcher?: core.FetchFunction;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
@@ -26,7 +26,7 @@ export declare namespace Files {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class Files {
|
|
28
28
|
protected readonly _options: Files.Options;
|
|
29
|
-
constructor(_options
|
|
29
|
+
constructor(_options?: Files.Options);
|
|
30
30
|
/**
|
|
31
31
|
* Upload a file to a data source.
|
|
32
32
|
*
|
|
@@ -66,5 +66,7 @@ export declare class Files {
|
|
|
66
66
|
* await client.sources.files.delete("source_id", "file_id")
|
|
67
67
|
*/
|
|
68
68
|
delete(sourceId: string, fileId: string, requestOptions?: Files.RequestOptions): Promise<void>;
|
|
69
|
-
protected
|
|
69
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
70
|
+
Authorization: string;
|
|
71
|
+
}>;
|
|
70
72
|
}
|
|
@@ -43,9 +43,10 @@ const environments = __importStar(require("../../../../../../environments"));
|
|
|
43
43
|
const core = __importStar(require("../../../../../../core"));
|
|
44
44
|
const Letta = __importStar(require("../../../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
46
47
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
47
48
|
class Files {
|
|
48
|
-
constructor(_options) {
|
|
49
|
+
constructor(_options = {}) {
|
|
49
50
|
this._options = _options;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
@@ -67,9 +68,9 @@ class Files {
|
|
|
67
68
|
yield _request.appendFile("file", file);
|
|
68
69
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
69
70
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
70
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
71
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
71
72
|
method: "POST",
|
|
72
|
-
headers: Object.assign(Object.assign(
|
|
73
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
73
74
|
requestType: "file",
|
|
74
75
|
duplex: _maybeEncodedRequest.duplex,
|
|
75
76
|
body: _maybeEncodedRequest.body,
|
|
@@ -78,12 +79,24 @@ class Files {
|
|
|
78
79
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
79
80
|
});
|
|
80
81
|
if (_response.ok) {
|
|
81
|
-
return _response.body
|
|
82
|
+
return serializers.Job.parseOrThrow(_response.body, {
|
|
83
|
+
unrecognizedObjectKeys: "passthrough",
|
|
84
|
+
allowUnrecognizedUnionMembers: true,
|
|
85
|
+
allowUnrecognizedEnumValues: true,
|
|
86
|
+
skipValidation: true,
|
|
87
|
+
breadcrumbsPrefix: ["response"],
|
|
88
|
+
});
|
|
82
89
|
}
|
|
83
90
|
if (_response.error.reason === "status-code") {
|
|
84
91
|
switch (_response.error.statusCode) {
|
|
85
92
|
case 422:
|
|
86
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
93
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
|
96
|
+
allowUnrecognizedEnumValues: true,
|
|
97
|
+
skipValidation: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
}));
|
|
87
100
|
default:
|
|
88
101
|
throw new errors.LettaError({
|
|
89
102
|
statusCode: _response.error.statusCode,
|
|
@@ -130,9 +143,9 @@ class Files {
|
|
|
130
143
|
_queryParams["cursor"] = cursor;
|
|
131
144
|
}
|
|
132
145
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
133
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
146
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
|
|
134
147
|
method: "GET",
|
|
135
|
-
headers: Object.assign(
|
|
148
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
136
149
|
contentType: "application/json",
|
|
137
150
|
queryParameters: _queryParams,
|
|
138
151
|
requestType: "json",
|
|
@@ -141,12 +154,24 @@ class Files {
|
|
|
141
154
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
142
155
|
});
|
|
143
156
|
if (_response.ok) {
|
|
144
|
-
return _response.body
|
|
157
|
+
return serializers.sources.files.list.Response.parseOrThrow(_response.body, {
|
|
158
|
+
unrecognizedObjectKeys: "passthrough",
|
|
159
|
+
allowUnrecognizedUnionMembers: true,
|
|
160
|
+
allowUnrecognizedEnumValues: true,
|
|
161
|
+
skipValidation: true,
|
|
162
|
+
breadcrumbsPrefix: ["response"],
|
|
163
|
+
});
|
|
145
164
|
}
|
|
146
165
|
if (_response.error.reason === "status-code") {
|
|
147
166
|
switch (_response.error.statusCode) {
|
|
148
167
|
case 422:
|
|
149
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
168
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
169
|
+
unrecognizedObjectKeys: "passthrough",
|
|
170
|
+
allowUnrecognizedUnionMembers: true,
|
|
171
|
+
allowUnrecognizedEnumValues: true,
|
|
172
|
+
skipValidation: true,
|
|
173
|
+
breadcrumbsPrefix: ["response"],
|
|
174
|
+
}));
|
|
150
175
|
default:
|
|
151
176
|
throw new errors.LettaError({
|
|
152
177
|
statusCode: _response.error.statusCode,
|
|
@@ -185,9 +210,9 @@ class Files {
|
|
|
185
210
|
var _a, _b;
|
|
186
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
212
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.
|
|
213
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
189
214
|
method: "DELETE",
|
|
190
|
-
headers: Object.assign(
|
|
215
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.4", "User-Agent": "@letta-ai/letta-client/0.1.4", "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),
|
|
191
216
|
contentType: "application/json",
|
|
192
217
|
requestType: "json",
|
|
193
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -200,7 +225,13 @@ class Files {
|
|
|
200
225
|
if (_response.error.reason === "status-code") {
|
|
201
226
|
switch (_response.error.statusCode) {
|
|
202
227
|
case 422:
|
|
203
|
-
throw new Letta.UnprocessableEntityError(_response.error.body
|
|
228
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
229
|
+
unrecognizedObjectKeys: "passthrough",
|
|
230
|
+
allowUnrecognizedUnionMembers: true,
|
|
231
|
+
allowUnrecognizedEnumValues: true,
|
|
232
|
+
skipValidation: true,
|
|
233
|
+
breadcrumbsPrefix: ["response"],
|
|
234
|
+
}));
|
|
204
235
|
default:
|
|
205
236
|
throw new errors.LettaError({
|
|
206
237
|
statusCode: _response.error.statusCode,
|
|
@@ -223,9 +254,10 @@ class Files {
|
|
|
223
254
|
}
|
|
224
255
|
});
|
|
225
256
|
}
|
|
226
|
-
|
|
257
|
+
_getCustomAuthorizationHeaders() {
|
|
227
258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
-
|
|
259
|
+
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
260
|
+
return { Authorization: `Bearer ${tokenValue}` };
|
|
229
261
|
});
|
|
230
262
|
}
|
|
231
263
|
}
|
|
@@ -7,7 +7,7 @@ import * as Letta from "../../../../../index";
|
|
|
7
7
|
export declare namespace Passages {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
10
|
-
token
|
|
10
|
+
token?: core.Supplier<string | undefined>;
|
|
11
11
|
fetcher?: core.FetchFunction;
|
|
12
12
|
}
|
|
13
13
|
interface RequestOptions {
|
|
@@ -23,7 +23,7 @@ export declare namespace Passages {
|
|
|
23
23
|
}
|
|
24
24
|
export declare class Passages {
|
|
25
25
|
protected readonly _options: Passages.Options;
|
|
26
|
-
constructor(_options
|
|
26
|
+
constructor(_options?: Passages.Options);
|
|
27
27
|
/**
|
|
28
28
|
* List all passages associated with a data source.
|
|
29
29
|
*
|
|
@@ -36,5 +36,7 @@ export declare class Passages {
|
|
|
36
36
|
* await client.sources.passages.list("source_id")
|
|
37
37
|
*/
|
|
38
38
|
list(sourceId: string, requestOptions?: Passages.RequestOptions): Promise<Letta.Passage[]>;
|
|
39
|
-
protected
|
|
39
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
40
|
+
Authorization: string;
|
|
41
|
+
}>;
|
|
40
42
|
}
|