@letta-ai/letta-client 0.0.68657 → 0.0.68659
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/errors/InternalServerError.d.ts +8 -0
- package/api/errors/InternalServerError.js +52 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/agents/client/Client.js +9 -9
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/archives/client/Client.js +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.js +8 -8
- package/api/resources/folders/resources/agents/client/Client.js +1 -1
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/agents/client/Client.js +1 -1
- package/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.d.ts +3 -0
- package/api/resources/steps/client/Client.js +7 -2
- package/api/resources/steps/index.d.ts +1 -1
- package/api/resources/steps/index.js +1 -1
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/steps/resources/index.d.ts +3 -0
- package/api/resources/steps/resources/index.js +4 -1
- package/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
- package/api/resources/steps/resources/messages/client/Client.js +166 -0
- package/api/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/api/resources/steps/resources/messages/client/index.js +17 -0
- package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
- package/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
- package/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/steps/resources/messages/client/requests/index.js +2 -0
- package/api/resources/steps/resources/messages/index.d.ts +2 -0
- package/api/resources/steps/resources/messages/index.js +18 -0
- package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
- package/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
- package/api/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/api/resources/steps/resources/messages/types/index.js +18 -0
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.d.ts +39 -0
- package/api/resources/templates/client/Client.js +174 -9
- package/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +19 -0
- package/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +5 -0
- package/api/resources/templates/client/requests/index.d.ts +1 -0
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +24 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +12 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +14 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +5 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +4 -0
- package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +5 -0
- package/api/resources/templates/resources/agents/types/index.d.ts +29 -0
- package/api/resources/templates/resources/agents/types/index.js +29 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +1 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +7 -0
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +5 -0
- package/api/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +7 -0
- package/api/resources/templates/types/TemplatesMigrateDeploymentResponse.js +5 -0
- package/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +7 -0
- package/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +5 -0
- package/api/resources/templates/types/index.d.ts +3 -0
- package/api/resources/templates/types/index.js +3 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ChildToolRule.d.ts +1 -1
- package/api/types/ConditionalToolRule.d.ts +1 -1
- package/api/types/ContinueToolRule.d.ts +1 -1
- package/api/types/InitToolRule.d.ts +1 -1
- package/api/types/InternalServerErrorBody.d.ts +6 -0
- package/api/types/InternalServerErrorBody.js +5 -0
- package/api/types/MaxCountPerStepToolRule.d.ts +1 -1
- package/api/types/Memory.d.ts +3 -1
- package/api/types/MemoryAgentType.d.ts +8 -0
- package/api/types/MemoryAgentType.js +5 -0
- package/api/types/ParentToolRule.d.ts +1 -1
- package/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
- package/api/types/RequiresApprovalToolRule.d.ts +1 -1
- package/api/types/Step.d.ts +1 -1
- package/api/types/TerminalToolRule.d.ts +1 -1
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/errors/InternalServerError.d.ts +8 -0
- package/dist/api/errors/InternalServerError.js +52 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/agents/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/archives/client/Client.js +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.js +8 -8
- package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.d.ts +3 -0
- package/dist/api/resources/steps/client/Client.js +7 -2
- package/dist/api/resources/steps/index.d.ts +1 -1
- package/dist/api/resources/steps/index.js +1 -1
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/index.d.ts +3 -0
- package/dist/api/resources/steps/resources/index.js +4 -1
- package/dist/api/resources/steps/resources/messages/client/Client.d.ts +50 -0
- package/dist/api/resources/steps/resources/messages/client/Client.js +166 -0
- package/dist/api/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/messages/client/index.js +17 -0
- package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.d.ts +30 -0
- package/dist/api/resources/steps/resources/messages/client/requests/MessagesListRequest.js +5 -0
- package/dist/api/resources/steps/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/steps/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/steps/resources/messages/index.js +18 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +11 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListRequestOrder.js +10 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +5 -0
- package/dist/api/resources/steps/resources/messages/types/MessagesListResponseItem.js +5 -0
- package/dist/api/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/dist/api/resources/steps/resources/messages/types/index.js +18 -0
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.d.ts +39 -0
- package/dist/api/resources/templates/client/Client.js +174 -9
- package/dist/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +19 -0
- package/dist/api/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +5 -0
- package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +24 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +12 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +14 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +5 -0
- package/dist/api/resources/templates/resources/agents/types/index.d.ts +29 -0
- package/dist/api/resources/templates/resources/agents/types/index.js +29 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +7 -0
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +5 -0
- package/dist/api/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +7 -0
- package/dist/api/resources/templates/types/TemplatesMigrateDeploymentResponse.js +5 -0
- package/dist/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +7 -0
- package/dist/api/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +3 -0
- package/dist/api/resources/templates/types/index.js +3 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ChildToolRule.d.ts +1 -1
- package/dist/api/types/ConditionalToolRule.d.ts +1 -1
- package/dist/api/types/ContinueToolRule.d.ts +1 -1
- package/dist/api/types/InitToolRule.d.ts +1 -1
- package/dist/api/types/InternalServerErrorBody.d.ts +6 -0
- package/dist/api/types/InternalServerErrorBody.js +5 -0
- package/dist/api/types/MaxCountPerStepToolRule.d.ts +1 -1
- package/dist/api/types/Memory.d.ts +3 -1
- package/dist/api/types/MemoryAgentType.d.ts +8 -0
- package/dist/api/types/MemoryAgentType.js +5 -0
- package/dist/api/types/ParentToolRule.d.ts +1 -1
- package/dist/api/types/RequiredBeforeExitToolRule.d.ts +1 -1
- package/dist/api/types/RequiresApprovalToolRule.d.ts +1 -1
- package/dist/api/types/Step.d.ts +1 -1
- package/dist/api/types/TerminalToolRule.d.ts +1 -1
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/steps/index.d.ts +1 -1
- package/dist/serialization/resources/steps/index.js +1 -1
- package/dist/serialization/resources/steps/resources/index.d.ts +2 -0
- package/dist/serialization/resources/steps/resources/index.js +3 -1
- package/dist/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/steps/resources/messages/client/index.js +37 -0
- package/dist/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
- package/dist/serialization/resources/steps/resources/messages/client/list.js +42 -0
- package/dist/serialization/resources/steps/resources/messages/index.d.ts +2 -0
- package/dist/serialization/resources/steps/resources/messages/index.js +18 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
- package/dist/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
- package/dist/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/dist/serialization/resources/steps/resources/messages/types/index.js +18 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +15 -0
- package/dist/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +46 -0
- package/dist/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/templates/client/requests/index.js +3 -1
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js +3 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +44 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +75 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +44 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +11 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +47 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +10 -0
- package/dist/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +41 -0
- package/dist/serialization/resources/templates/resources/agents/types/index.d.ts +29 -0
- package/dist/serialization/resources/templates/resources/agents/types/index.js +29 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +13 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +44 -0
- package/dist/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +13 -0
- package/dist/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.js +44 -0
- package/dist/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +13 -0
- package/dist/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +44 -0
- package/dist/serialization/resources/templates/types/index.d.ts +3 -0
- package/dist/serialization/resources/templates/types/index.js +3 -0
- package/dist/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/dist/serialization/types/InternalServerErrorBody.js +43 -0
- package/dist/serialization/types/Memory.d.ts +2 -0
- package/dist/serialization/types/Memory.js +2 -0
- package/dist/serialization/types/MemoryAgentType.d.ts +11 -0
- package/dist/serialization/types/MemoryAgentType.js +42 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +243 -0
- package/serialization/resources/steps/index.d.ts +1 -1
- package/serialization/resources/steps/index.js +1 -1
- package/serialization/resources/steps/resources/index.d.ts +2 -0
- package/serialization/resources/steps/resources/index.js +3 -1
- package/serialization/resources/steps/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/steps/resources/messages/client/index.js +37 -0
- package/serialization/resources/steps/resources/messages/client/list.d.ts +11 -0
- package/serialization/resources/steps/resources/messages/client/list.js +42 -0
- package/serialization/resources/steps/resources/messages/index.d.ts +2 -0
- package/serialization/resources/steps/resources/messages/index.js +18 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.d.ts +10 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListRequestOrder.js +41 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.d.ts +19 -0
- package/serialization/resources/steps/resources/messages/types/MessagesListResponseItem.js +60 -0
- package/serialization/resources/steps/resources/messages/types/index.d.ts +2 -0
- package/serialization/resources/steps/resources/messages/types/index.js +18 -0
- package/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.d.ts +15 -0
- package/serialization/resources/templates/client/requests/TemplatesMigrateDeploymentRequest.js +46 -0
- package/serialization/resources/templates/client/requests/index.d.ts +1 -0
- package/serialization/resources/templates/client/requests/index.js +3 -1
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.d.ts +3 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponse.js +3 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.d.ts +44 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroup.js +75 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateIdItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentIdItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHidden.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupHiddenItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageId.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupLastProcessedMessageIdItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentIdItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLength.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxMessageBufferLengthItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurns.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMaxTurnsItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLength.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupMinMessageBufferLengthItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectIdItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSharedBlockIds.js +44 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequency.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupSleeptimeAgentFrequencyItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateId.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTemplateIdItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationToken.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTerminationTokenItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.d.ts +11 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounter.js +47 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.d.ts +10 -0
- package/serialization/resources/templates/resources/agents/types/AgentsCreateResponseGroupTurnsCounterItem.js +41 -0
- package/serialization/resources/templates/resources/agents/types/index.d.ts +29 -0
- package/serialization/resources/templates/resources/agents/types/index.js +29 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponse.js +2 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.d.ts +1 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseBlocksItem.js +1 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.d.ts +13 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseRelationshipsItem.js +44 -0
- package/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.d.ts +13 -0
- package/serialization/resources/templates/types/TemplatesMigrateDeploymentResponse.js +44 -0
- package/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.d.ts +13 -0
- package/serialization/resources/templates/types/TemplatesSetCurrentTemplateFromSnapshotResponse.js +44 -0
- package/serialization/resources/templates/types/index.d.ts +3 -0
- package/serialization/resources/templates/types/index.js +3 -0
- package/serialization/types/InternalServerErrorBody.d.ts +12 -0
- package/serialization/types/InternalServerErrorBody.js +43 -0
- package/serialization/types/Memory.d.ts +2 -0
- package/serialization/types/Memory.js +2 -0
- package/serialization/types/MemoryAgentType.d.ts +11 -0
- package/serialization/types/MemoryAgentType.js +42 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -118,7 +118,7 @@ class Templates {
|
|
|
118
118
|
method: "GET",
|
|
119
119
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
120
120
|
? yield core.Supplier.get(this._options.project)
|
|
121
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
121
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
122
122
|
contentType: "application/json",
|
|
123
123
|
queryParameters: _queryParams,
|
|
124
124
|
requestType: "json",
|
|
@@ -186,7 +186,7 @@ class Templates {
|
|
|
186
186
|
method: "POST",
|
|
187
187
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
188
188
|
? yield core.Supplier.get(this._options.project)
|
|
189
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
189
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
requestType: "json",
|
|
192
192
|
body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
|
|
@@ -261,7 +261,7 @@ class Templates {
|
|
|
261
261
|
method: "DELETE",
|
|
262
262
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
263
263
|
? yield core.Supplier.get(this._options.project)
|
|
264
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
264
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
265
265
|
contentType: "application/json",
|
|
266
266
|
requestType: "json",
|
|
267
267
|
body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -331,7 +331,7 @@ class Templates {
|
|
|
331
331
|
method: "GET",
|
|
332
332
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
333
333
|
? yield core.Supplier.get(this._options.project)
|
|
334
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
334
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
335
335
|
contentType: "application/json",
|
|
336
336
|
requestType: "json",
|
|
337
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -374,6 +374,87 @@ class Templates {
|
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Updates the current working version of a template from a snapshot
|
|
379
|
+
*
|
|
380
|
+
* @param {string} project - The project slug
|
|
381
|
+
* @param {string} templateVersion - The template name with :current version (e.g., my-template:current)
|
|
382
|
+
* @param {unknown} request
|
|
383
|
+
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
384
|
+
*
|
|
385
|
+
* @throws {@link Letta.BadRequestError}
|
|
386
|
+
* @throws {@link Letta.NotFoundError}
|
|
387
|
+
* @throws {@link Letta.InternalServerError}
|
|
388
|
+
*
|
|
389
|
+
* @example
|
|
390
|
+
* await client.templates.setcurrenttemplatefromsnapshot("project", "template_version", {
|
|
391
|
+
* "key": "value"
|
|
392
|
+
* })
|
|
393
|
+
*/
|
|
394
|
+
setcurrenttemplatefromsnapshot(project, templateVersion, request, requestOptions) {
|
|
395
|
+
return core.HttpResponsePromise.fromPromise(this.__setcurrenttemplatefromsnapshot(project, templateVersion, request, requestOptions));
|
|
396
|
+
}
|
|
397
|
+
__setcurrenttemplatefromsnapshot(project, templateVersion, request, requestOptions) {
|
|
398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
var _a, _b, _c;
|
|
400
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
401
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/snapshot`),
|
|
402
|
+
method: "PUT",
|
|
403
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
404
|
+
? yield core.Supplier.get(this._options.project)
|
|
405
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
406
|
+
contentType: "application/json",
|
|
407
|
+
requestType: "json",
|
|
408
|
+
body: request,
|
|
409
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
410
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
411
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
412
|
+
});
|
|
413
|
+
if (_response.ok) {
|
|
414
|
+
return {
|
|
415
|
+
data: serializers.TemplatesSetCurrentTemplateFromSnapshotResponse.parseOrThrow(_response.body, {
|
|
416
|
+
unrecognizedObjectKeys: "passthrough",
|
|
417
|
+
allowUnrecognizedUnionMembers: true,
|
|
418
|
+
allowUnrecognizedEnumValues: true,
|
|
419
|
+
skipValidation: true,
|
|
420
|
+
breadcrumbsPrefix: ["response"],
|
|
421
|
+
}),
|
|
422
|
+
rawResponse: _response.rawResponse,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
if (_response.error.reason === "status-code") {
|
|
426
|
+
switch (_response.error.statusCode) {
|
|
427
|
+
case 400:
|
|
428
|
+
throw new Letta.BadRequestError(_response.error.body, _response.rawResponse);
|
|
429
|
+
case 404:
|
|
430
|
+
throw new Letta.NotFoundError(_response.error.body, _response.rawResponse);
|
|
431
|
+
case 500:
|
|
432
|
+
throw new Letta.InternalServerError(_response.error.body, _response.rawResponse);
|
|
433
|
+
default:
|
|
434
|
+
throw new errors.LettaError({
|
|
435
|
+
statusCode: _response.error.statusCode,
|
|
436
|
+
body: _response.error.body,
|
|
437
|
+
rawResponse: _response.rawResponse,
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
switch (_response.error.reason) {
|
|
442
|
+
case "non-json":
|
|
443
|
+
throw new errors.LettaError({
|
|
444
|
+
statusCode: _response.error.statusCode,
|
|
445
|
+
body: _response.error.rawBody,
|
|
446
|
+
rawResponse: _response.rawResponse,
|
|
447
|
+
});
|
|
448
|
+
case "timeout":
|
|
449
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling PUT /v1/templates/{project}/{template_version}/snapshot.");
|
|
450
|
+
case "unknown":
|
|
451
|
+
throw new errors.LettaError({
|
|
452
|
+
message: _response.error.errorMessage,
|
|
453
|
+
rawResponse: _response.rawResponse,
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
}
|
|
377
458
|
/**
|
|
378
459
|
* Forks a template version into a new template
|
|
379
460
|
*
|
|
@@ -398,7 +479,7 @@ class Templates {
|
|
|
398
479
|
method: "POST",
|
|
399
480
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
400
481
|
? yield core.Supplier.get(this._options.project)
|
|
401
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
482
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
402
483
|
contentType: "application/json",
|
|
403
484
|
requestType: "json",
|
|
404
485
|
body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -473,7 +554,7 @@ class Templates {
|
|
|
473
554
|
method: "POST",
|
|
474
555
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
475
556
|
? yield core.Supplier.get(this._options.project)
|
|
476
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
557
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
477
558
|
contentType: "application/json",
|
|
478
559
|
requestType: "json",
|
|
479
560
|
body: serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -550,7 +631,7 @@ class Templates {
|
|
|
550
631
|
method: "PATCH",
|
|
551
632
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
552
633
|
? yield core.Supplier.get(this._options.project)
|
|
553
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
634
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
554
635
|
contentType: "application/json",
|
|
555
636
|
requestType: "json",
|
|
556
637
|
body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -634,7 +715,7 @@ class Templates {
|
|
|
634
715
|
method: "PATCH",
|
|
635
716
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
636
717
|
? yield core.Supplier.get(this._options.project)
|
|
637
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
718
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
638
719
|
contentType: "application/json",
|
|
639
720
|
requestType: "json",
|
|
640
721
|
body: serializers.TemplatesUpdateTemplateDescriptionRequest.jsonOrThrow(request, {
|
|
@@ -719,7 +800,7 @@ class Templates {
|
|
|
719
800
|
method: "GET",
|
|
720
801
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
721
802
|
? yield core.Supplier.get(this._options.project)
|
|
722
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
803
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
723
804
|
contentType: "application/json",
|
|
724
805
|
queryParameters: _queryParams,
|
|
725
806
|
requestType: "json",
|
|
@@ -768,6 +849,90 @@ class Templates {
|
|
|
768
849
|
}
|
|
769
850
|
});
|
|
770
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* Migrates a deployment to a specific template version
|
|
854
|
+
*
|
|
855
|
+
* @param {string} project - The project slug
|
|
856
|
+
* @param {string} templateName - The template name (without version)
|
|
857
|
+
* @param {string} deploymentId - The deployment ID to migrate
|
|
858
|
+
* @param {Letta.TemplatesMigrateDeploymentRequest} request
|
|
859
|
+
* @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
|
|
860
|
+
*
|
|
861
|
+
* @throws {@link Letta.BadRequestError}
|
|
862
|
+
* @throws {@link Letta.NotFoundError}
|
|
863
|
+
* @throws {@link Letta.InternalServerError}
|
|
864
|
+
*
|
|
865
|
+
* @example
|
|
866
|
+
* await client.templates.migratedeployment("project", "template_name", "deployment_id", {
|
|
867
|
+
* version: "version"
|
|
868
|
+
* })
|
|
869
|
+
*/
|
|
870
|
+
migratedeployment(project, templateName, deploymentId, request, requestOptions) {
|
|
871
|
+
return core.HttpResponsePromise.fromPromise(this.__migratedeployment(project, templateName, deploymentId, request, requestOptions));
|
|
872
|
+
}
|
|
873
|
+
__migratedeployment(project, templateName, deploymentId, request, requestOptions) {
|
|
874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
875
|
+
var _a, _b, _c;
|
|
876
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
877
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateName)}/deployments/${encodeURIComponent(deploymentId)}/migrate`),
|
|
878
|
+
method: "POST",
|
|
879
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
880
|
+
? yield core.Supplier.get(this._options.project)
|
|
881
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
882
|
+
contentType: "application/json",
|
|
883
|
+
requestType: "json",
|
|
884
|
+
body: serializers.TemplatesMigrateDeploymentRequest.jsonOrThrow(request, {
|
|
885
|
+
unrecognizedObjectKeys: "strip",
|
|
886
|
+
}),
|
|
887
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
888
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
889
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
890
|
+
});
|
|
891
|
+
if (_response.ok) {
|
|
892
|
+
return {
|
|
893
|
+
data: serializers.TemplatesMigrateDeploymentResponse.parseOrThrow(_response.body, {
|
|
894
|
+
unrecognizedObjectKeys: "passthrough",
|
|
895
|
+
allowUnrecognizedUnionMembers: true,
|
|
896
|
+
allowUnrecognizedEnumValues: true,
|
|
897
|
+
skipValidation: true,
|
|
898
|
+
breadcrumbsPrefix: ["response"],
|
|
899
|
+
}),
|
|
900
|
+
rawResponse: _response.rawResponse,
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
if (_response.error.reason === "status-code") {
|
|
904
|
+
switch (_response.error.statusCode) {
|
|
905
|
+
case 400:
|
|
906
|
+
throw new Letta.BadRequestError(_response.error.body, _response.rawResponse);
|
|
907
|
+
case 404:
|
|
908
|
+
throw new Letta.NotFoundError(_response.error.body, _response.rawResponse);
|
|
909
|
+
case 500:
|
|
910
|
+
throw new Letta.InternalServerError(_response.error.body, _response.rawResponse);
|
|
911
|
+
default:
|
|
912
|
+
throw new errors.LettaError({
|
|
913
|
+
statusCode: _response.error.statusCode,
|
|
914
|
+
body: _response.error.body,
|
|
915
|
+
rawResponse: _response.rawResponse,
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
switch (_response.error.reason) {
|
|
920
|
+
case "non-json":
|
|
921
|
+
throw new errors.LettaError({
|
|
922
|
+
statusCode: _response.error.statusCode,
|
|
923
|
+
body: _response.error.rawBody,
|
|
924
|
+
rawResponse: _response.rawResponse,
|
|
925
|
+
});
|
|
926
|
+
case "timeout":
|
|
927
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/templates/{project}/{template_name}/deployments/{deployment_id}/migrate.");
|
|
928
|
+
case "unknown":
|
|
929
|
+
throw new errors.LettaError({
|
|
930
|
+
message: _response.error.errorMessage,
|
|
931
|
+
rawResponse: _response.rawResponse,
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
}
|
|
771
936
|
_getCustomAuthorizationHeaders() {
|
|
772
937
|
return __awaiter(this, void 0, void 0, function* () {
|
|
773
938
|
const tokenValue = yield core.Supplier.get(this._options.token);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* version: "version"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface TemplatesMigrateDeploymentRequest {
|
|
11
|
+
/** The target template version to migrate to */
|
|
12
|
+
version: string;
|
|
13
|
+
/** Whether to preserve existing tool variables during migration */
|
|
14
|
+
preserveToolVariables?: boolean;
|
|
15
|
+
/** Whether to preserve existing core memories during migration */
|
|
16
|
+
preserveCoreMemories?: boolean;
|
|
17
|
+
/** Additional memory variables to apply during migration */
|
|
18
|
+
memoryVariables?: Record<string, string>;
|
|
19
|
+
}
|
|
@@ -5,3 +5,4 @@ export { type TemplatesForkTemplateRequest } from "./TemplatesForkTemplateReques
|
|
|
5
5
|
export { type TemplatesRenameTemplateRequest } from "./TemplatesRenameTemplateRequest";
|
|
6
6
|
export { type TemplatesUpdateTemplateDescriptionRequest } from "./TemplatesUpdateTemplateDescriptionRequest";
|
|
7
7
|
export { type TemplatesListTemplateVersionsRequest } from "./TemplatesListTemplateVersionsRequest";
|
|
8
|
+
export { type TemplatesMigrateDeploymentRequest } from "./TemplatesMigrateDeploymentRequest";
|
|
@@ -83,7 +83,7 @@ class Agents {
|
|
|
83
83
|
method: "POST",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68659", "User-Agent": "@letta-ai/letta-client/0.0.68659", "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),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,4 +4,7 @@
|
|
|
4
4
|
import * as Letta from "../../../../../index";
|
|
5
5
|
export interface AgentsCreateResponse {
|
|
6
6
|
agents: Letta.AgentState[];
|
|
7
|
+
group?: Letta.templates.AgentsCreateResponseGroup;
|
|
8
|
+
/** The deployment ID of the created agents, group and blocks, can be used to identify from a specific invokation */
|
|
9
|
+
deploymentId: string;
|
|
7
10
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export interface AgentsCreateResponseGroup {
|
|
6
|
+
id: string;
|
|
7
|
+
managerType: Letta.templates.AgentsCreateResponseGroupManagerType;
|
|
8
|
+
agentIds: string[];
|
|
9
|
+
description: string;
|
|
10
|
+
projectId?: Letta.templates.AgentsCreateResponseGroupProjectId;
|
|
11
|
+
templateId?: Letta.templates.AgentsCreateResponseGroupTemplateId;
|
|
12
|
+
baseTemplateId?: Letta.templates.AgentsCreateResponseGroupBaseTemplateId;
|
|
13
|
+
deploymentId?: Letta.templates.AgentsCreateResponseGroupDeploymentId;
|
|
14
|
+
sharedBlockIds?: Letta.templates.AgentsCreateResponseGroupSharedBlockIds;
|
|
15
|
+
managerAgentId?: Letta.templates.AgentsCreateResponseGroupManagerAgentId;
|
|
16
|
+
terminationToken?: Letta.templates.AgentsCreateResponseGroupTerminationToken;
|
|
17
|
+
maxTurns?: Letta.templates.AgentsCreateResponseGroupMaxTurns;
|
|
18
|
+
sleeptimeAgentFrequency?: Letta.templates.AgentsCreateResponseGroupSleeptimeAgentFrequency;
|
|
19
|
+
turnsCounter?: Letta.templates.AgentsCreateResponseGroupTurnsCounter;
|
|
20
|
+
lastProcessedMessageId?: Letta.templates.AgentsCreateResponseGroupLastProcessedMessageId;
|
|
21
|
+
maxMessageBufferLength?: Letta.templates.AgentsCreateResponseGroupMaxMessageBufferLength;
|
|
22
|
+
minMessageBufferLength?: Letta.templates.AgentsCreateResponseGroupMinMessageBufferLength;
|
|
23
|
+
hidden?: Letta.templates.AgentsCreateResponseGroupHidden;
|
|
24
|
+
}
|
package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupBaseTemplateId.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupBaseTemplateId = string | string | undefined | (Letta.templates.AgentsCreateResponseGroupBaseTemplateIdItem | undefined)[] | unknown;
|
package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupDeploymentId.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupDeploymentId = string | string | undefined | (Letta.templates.AgentsCreateResponseGroupDeploymentIdItem | undefined)[] | unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupHidden = boolean | string | undefined | (Letta.templates.AgentsCreateResponseGroupHiddenItem | undefined)[] | unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupLastProcessedMessageId = string | string | undefined | (Letta.templates.AgentsCreateResponseGroupLastProcessedMessageIdItem | undefined)[] | unknown;
|
package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerAgentId.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupManagerAgentId = string | string | undefined | (Letta.templates.AgentsCreateResponseGroupManagerAgentIdItem | undefined)[] | unknown;
|
package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type AgentsCreateResponseGroupManagerType = "round_robin" | "supervisor" | "dynamic" | "sleeptime" | "voice_sleeptime" | "swarm";
|
|
5
|
+
export declare const AgentsCreateResponseGroupManagerType: {
|
|
6
|
+
readonly RoundRobin: "round_robin";
|
|
7
|
+
readonly Supervisor: "supervisor";
|
|
8
|
+
readonly Dynamic: "dynamic";
|
|
9
|
+
readonly Sleeptime: "sleeptime";
|
|
10
|
+
readonly VoiceSleeptime: "voice_sleeptime";
|
|
11
|
+
readonly Swarm: "swarm";
|
|
12
|
+
};
|
package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupManagerType.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AgentsCreateResponseGroupManagerType = void 0;
|
|
7
|
+
exports.AgentsCreateResponseGroupManagerType = {
|
|
8
|
+
RoundRobin: "round_robin",
|
|
9
|
+
Supervisor: "supervisor",
|
|
10
|
+
Dynamic: "dynamic",
|
|
11
|
+
Sleeptime: "sleeptime",
|
|
12
|
+
VoiceSleeptime: "voice_sleeptime",
|
|
13
|
+
Swarm: "swarm",
|
|
14
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupMaxMessageBufferLength = number | string | undefined | (Letta.templates.AgentsCreateResponseGroupMaxMessageBufferLengthItem | undefined)[] | unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupMaxTurns = number | string | undefined | (Letta.templates.AgentsCreateResponseGroupMaxTurnsItem | undefined)[] | unknown;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupMinMessageBufferLength = number | string | undefined | (Letta.templates.AgentsCreateResponseGroupMinMessageBufferLengthItem | undefined)[] | unknown;
|
package/api/resources/templates/resources/agents/types/AgentsCreateResponseGroupProjectId.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../../../index";
|
|
5
|
+
export type AgentsCreateResponseGroupProjectId = string | string | undefined | (Letta.templates.AgentsCreateResponseGroupProjectIdItem | undefined)[] | unknown;
|