@letta-ai/letta-react 0.0.8 → 0.1.0
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/README.md +3 -115
- package/dist/hooks/agentsHooks/index.d.ts +72 -0
- package/dist/hooks/agentsHooks/useAgents/createTemplateFromAgent.d.ts +39 -0
- package/dist/hooks/agentsHooks/useAgents/getAgentVariables.d.ts +63 -0
- package/dist/hooks/agentsHooks/useAgents/getAgentVariablesSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useAgents/index.d.ts +12 -0
- package/dist/hooks/agentsHooks/useAgents/migrateAgent.d.ts +39 -0
- package/dist/hooks/agentsHooks/useAgents/searchDeployedAgents.d.ts +37 -0
- package/dist/hooks/agentsHooks/useAgents/versionAgentTemplate.d.ts +41 -0
- package/dist/hooks/agentsHooks/useCreateAgent.d.ts +39 -0
- package/dist/hooks/agentsHooks/useCreateAgentMessageAsync.d.ts +39 -0
- package/dist/hooks/agentsHooks/useCreateAgentMessageStream.d.ts +39 -0
- package/dist/hooks/agentsHooks/useCreatePassage.d.ts +39 -0
- package/dist/hooks/agentsHooks/useDeleteAgent.d.ts +37 -0
- package/dist/hooks/agentsHooks/useDeletePassage.d.ts +39 -0
- package/dist/hooks/agentsHooks/useExportAgentSerialized.d.ts +63 -0
- package/dist/hooks/agentsHooks/useExportAgentSerializedSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useImportAgentSerialized.d.ts +39 -0
- package/dist/hooks/agentsHooks/useListAgentSources.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListAgentSourcesSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListAgentTools.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListAgentToolsSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListAgents.d.ts +51 -0
- package/dist/hooks/agentsHooks/useListAgentsSuspense.d.ts +51 -0
- package/dist/hooks/agentsHooks/useListCoreMemoryBlocks.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListCoreMemoryBlocksSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListMessages.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListMessagesSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListPassages.d.ts +63 -0
- package/dist/hooks/agentsHooks/useListPassagesSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveAgent.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveAgentContextWindow.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveAgentContextWindowSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveAgentMemory.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveAgentMemorySuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveAgentSuspense.d.ts +63 -0
- package/dist/hooks/agentsHooks/useRetrieveCoreMemoryBlock.d.ts +67 -0
- package/dist/hooks/agentsHooks/useRetrieveCoreMemoryBlockSuspense.d.ts +67 -0
- package/dist/hooks/agentsHooks/useSendMessage.d.ts +39 -0
- package/dist/hooks/blocksHooks/index.d.ts +16 -0
- package/dist/hooks/blocksHooks/useCreateBlock.d.ts +35 -0
- package/dist/hooks/blocksHooks/useDeleteBlock.d.ts +35 -0
- package/dist/hooks/blocksHooks/useListAgentsForBlock.d.ts +63 -0
- package/dist/hooks/blocksHooks/useListAgentsForBlockSuspense.d.ts +63 -0
- package/dist/hooks/blocksHooks/useListBlocks.d.ts +49 -0
- package/dist/hooks/blocksHooks/useListBlocksSuspense.d.ts +49 -0
- package/dist/hooks/blocksHooks/useRetrieveBlock.d.ts +61 -0
- package/dist/hooks/blocksHooks/useRetrieveBlockSuspense.d.ts +61 -0
- package/dist/hooks/clientSideAccessTokensHooks/index.d.ts +4 -0
- package/dist/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/createClientSideAccessToken.d.ts +37 -0
- package/dist/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/deleteClientSideAccessToken.d.ts +39 -0
- package/dist/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/index.d.ts +4 -0
- package/dist/hooks/groupsHooks/index.d.ts +20 -0
- package/dist/hooks/groupsHooks/useCreateGroup.d.ts +39 -0
- package/dist/hooks/groupsHooks/useDeleteGroup.d.ts +37 -0
- package/dist/hooks/groupsHooks/useListGroupMessages.d.ts +63 -0
- package/dist/hooks/groupsHooks/useListGroupMessagesSuspense.d.ts +63 -0
- package/dist/hooks/groupsHooks/useListGroups.d.ts +51 -0
- package/dist/hooks/groupsHooks/useListGroupsSuspense.d.ts +51 -0
- package/dist/hooks/groupsHooks/useRetrieveGroup.d.ts +63 -0
- package/dist/hooks/groupsHooks/useRetrieveGroupSuspense.d.ts +63 -0
- package/dist/hooks/groupsHooks/useSendGroupMessage.d.ts +39 -0
- package/dist/hooks/groupsHooks/useSendGroupMessageStreaming.d.ts +39 -0
- package/dist/hooks/healthHooks/index.d.ts +4 -0
- package/dist/hooks/healthHooks/useHealthCheck.d.ts +49 -0
- package/dist/hooks/healthHooks/useHealthCheckSuspense.d.ts +49 -0
- package/dist/hooks/identitiesHooks/index.d.ts +16 -0
- package/dist/hooks/identitiesHooks/useCreateIdentity.d.ts +37 -0
- package/dist/hooks/identitiesHooks/useDeleteIdentity.d.ts +37 -0
- package/dist/hooks/identitiesHooks/useListIdentities.d.ts +51 -0
- package/dist/hooks/identitiesHooks/useListIdentitiesSuspense.d.ts +51 -0
- package/dist/hooks/identitiesHooks/useRetrieveIdentity.d.ts +61 -0
- package/dist/hooks/identitiesHooks/useRetrieveIdentitySuspense.d.ts +61 -0
- package/dist/hooks/identitiesHooks/useUpsertIdentity.d.ts +37 -0
- package/dist/hooks/identitiesHooks/useUpsertIdentityProperties.d.ts +37 -0
- package/dist/hooks/index.d.ts +274 -0
- package/dist/hooks/jobsHooks/index.d.ts +14 -0
- package/dist/hooks/jobsHooks/useDeleteJob.d.ts +37 -0
- package/dist/hooks/jobsHooks/useListActiveJobs.d.ts +51 -0
- package/dist/hooks/jobsHooks/useListActiveJobsSuspense.d.ts +51 -0
- package/dist/hooks/jobsHooks/useListJobs.d.ts +51 -0
- package/dist/hooks/jobsHooks/useListJobsSuspense.d.ts +51 -0
- package/dist/hooks/jobsHooks/useRetrieveJob.d.ts +63 -0
- package/dist/hooks/jobsHooks/useRetrieveJobSuspense.d.ts +63 -0
- package/dist/hooks/modelsHooks/index.d.ts +8 -0
- package/dist/hooks/modelsHooks/useListEmbeddingModels.d.ts +49 -0
- package/dist/hooks/modelsHooks/useListEmbeddingModelsSuspense.d.ts +49 -0
- package/dist/hooks/modelsHooks/useListModels.d.ts +49 -0
- package/dist/hooks/modelsHooks/useListModelsSuspense.d.ts +49 -0
- package/dist/hooks/providersHooks/index.d.ts +8 -0
- package/dist/hooks/providersHooks/useCreateProvider.d.ts +37 -0
- package/dist/hooks/providersHooks/useDeleteProvider.d.ts +37 -0
- package/dist/hooks/providersHooks/useListProviders.d.ts +51 -0
- package/dist/hooks/providersHooks/useListProvidersSuspense.d.ts +51 -0
- package/dist/hooks/runsHooks/index.d.ts +26 -0
- package/dist/hooks/runsHooks/useDeleteRun.d.ts +37 -0
- package/dist/hooks/runsHooks/useListActiveRuns.d.ts +51 -0
- package/dist/hooks/runsHooks/useListActiveRunsSuspense.d.ts +51 -0
- package/dist/hooks/runsHooks/useListRunMessages.d.ts +63 -0
- package/dist/hooks/runsHooks/useListRunMessagesSuspense.d.ts +63 -0
- package/dist/hooks/runsHooks/useListRunSteps.d.ts +63 -0
- package/dist/hooks/runsHooks/useListRunStepsSuspense.d.ts +63 -0
- package/dist/hooks/runsHooks/useListRuns.d.ts +51 -0
- package/dist/hooks/runsHooks/useListRunsSuspense.d.ts +51 -0
- package/dist/hooks/runsHooks/useRetrieveRun.d.ts +63 -0
- package/dist/hooks/runsHooks/useRetrieveRunSuspense.d.ts +63 -0
- package/dist/hooks/runsHooks/useRetrieveRunUsage.d.ts +63 -0
- package/dist/hooks/runsHooks/useRetrieveRunUsageSuspense.d.ts +63 -0
- package/dist/hooks/sourcesHooks/index.d.ts +28 -0
- package/dist/hooks/sourcesHooks/useCreateSource.d.ts +37 -0
- package/dist/hooks/sourcesHooks/useDeleteFileFromSource.d.ts +39 -0
- package/dist/hooks/sourcesHooks/useDeleteSource.d.ts +37 -0
- package/dist/hooks/sourcesHooks/useGetSourceIdByName.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useGetSourceIdByNameSuspense.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useListSourceFiles.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useListSourceFilesSuspense.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useListSourcePassages.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useListSourcePassagesSuspense.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useListSources.d.ts +51 -0
- package/dist/hooks/sourcesHooks/useListSourcesSuspense.d.ts +51 -0
- package/dist/hooks/sourcesHooks/useRetrieveSource.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useRetrieveSourceSuspense.d.ts +63 -0
- package/dist/hooks/sourcesHooks/useUploadFileToSource.d.ts +39 -0
- package/dist/hooks/stepsHooks/index.d.ts +8 -0
- package/dist/hooks/stepsHooks/useListSteps.d.ts +51 -0
- package/dist/hooks/stepsHooks/useListStepsSuspense.d.ts +51 -0
- package/dist/hooks/stepsHooks/useRetrieveStep.d.ts +63 -0
- package/dist/hooks/stepsHooks/useRetrieveStepSuspense.d.ts +63 -0
- package/dist/hooks/tagHooks/index.d.ts +4 -0
- package/dist/hooks/tagHooks/useListTags.d.ts +51 -0
- package/dist/hooks/tagHooks/useListTagsSuspense.d.ts +51 -0
- package/dist/hooks/templatesHooks/index.d.ts +2 -0
- package/dist/hooks/templatesHooks/useTemplates/createAgentsFromTemplate.d.ts +41 -0
- package/dist/hooks/templatesHooks/useTemplates/index.d.ts +2 -0
- package/dist/hooks/toolsHooks/index.d.ts +42 -0
- package/dist/hooks/toolsHooks/useAddBaseTools.d.ts +33 -0
- package/dist/hooks/toolsHooks/useAddComposioTool.d.ts +37 -0
- package/dist/hooks/toolsHooks/useAddMcpServer.d.ts +37 -0
- package/dist/hooks/toolsHooks/useAddMcpTool.d.ts +39 -0
- package/dist/hooks/toolsHooks/useCreateTool.d.ts +37 -0
- package/dist/hooks/toolsHooks/useDeleteMcpServer.d.ts +37 -0
- package/dist/hooks/toolsHooks/useDeleteTool.d.ts +37 -0
- package/dist/hooks/toolsHooks/useListComposioActionsByApp.d.ts +63 -0
- package/dist/hooks/toolsHooks/useListComposioActionsByAppSuspense.d.ts +63 -0
- package/dist/hooks/toolsHooks/useListComposioApps.d.ts +51 -0
- package/dist/hooks/toolsHooks/useListComposioAppsSuspense.d.ts +51 -0
- package/dist/hooks/toolsHooks/useListMcpServers.d.ts +51 -0
- package/dist/hooks/toolsHooks/useListMcpServersSuspense.d.ts +51 -0
- package/dist/hooks/toolsHooks/useListMcpToolsByServer.d.ts +63 -0
- package/dist/hooks/toolsHooks/useListMcpToolsByServerSuspense.d.ts +63 -0
- package/dist/hooks/toolsHooks/useListTools.d.ts +51 -0
- package/dist/hooks/toolsHooks/useListToolsSuspense.d.ts +51 -0
- package/dist/hooks/toolsHooks/useRetrieveTool.d.ts +63 -0
- package/dist/hooks/toolsHooks/useRetrieveToolSuspense.d.ts +63 -0
- package/dist/hooks/toolsHooks/useRunToolFromSource.d.ts +37 -0
- package/dist/hooks/toolsHooks/useUpsertTool.d.ts +37 -0
- package/dist/hooks/voiceHooks/index.d.ts +2 -0
- package/dist/hooks/voiceHooks/useCreateVoiceChatCompletions.d.ts +39 -0
- package/dist/index.d.ts +602 -4
- package/dist/index.js +10625 -4
- package/dist/index.js.map +7 -0
- package/dist/types/ActionModel.d.ts +54 -0
- package/dist/types/ActionParametersModel.d.ts +25 -0
- package/dist/types/ActionResponseModel.d.ts +25 -0
- package/dist/types/AddBaseTools.d.ts +19 -0
- package/dist/types/AddComposioTool.d.ts +26 -0
- package/dist/types/AddMcpServer.d.ts +22 -0
- package/dist/types/AddMcpTool.d.ts +30 -0
- package/dist/types/AgentEnvironmentVariable.d.ts +47 -0
- package/dist/types/AgentSchema.d.ts +86 -0
- package/dist/types/AgentState.d.ts +140 -0
- package/dist/types/AgentType.d.ts +14 -0
- package/dist/types/AppAuthScheme.d.ts +44 -0
- package/dist/types/AppModel.d.ts +56 -0
- package/dist/types/AssistantMessage.d.ts +33 -0
- package/dist/types/AttachCoreMemoryBlock.d.ts +30 -0
- package/dist/types/AttachSourceToAgent.d.ts +30 -0
- package/dist/types/AttachTool.d.ts +30 -0
- package/dist/types/Audio.d.ts +10 -0
- package/dist/types/AuthRequest.d.ts +11 -0
- package/dist/types/AuthResponse.d.ts +15 -0
- package/dist/types/AuthSchemeField.d.ts +34 -0
- package/dist/types/BaseToolRuleSchema.d.ts +14 -0
- package/dist/types/Block.d.ts +59 -0
- package/dist/types/BlockUpdate.d.ts +42 -0
- package/dist/types/BodyImportAgentSerialized.d.ts +10 -0
- package/dist/types/BodyUploadFileToSource.d.ts +10 -0
- package/dist/types/ChatCompletionAssistantMessageParam.d.ts +27 -0
- package/dist/types/ChatCompletionAudioParam.d.ts +33 -0
- package/dist/types/ChatCompletionContentPartImageParam.d.ts +15 -0
- package/dist/types/ChatCompletionContentPartInputAudioParam.d.ts +15 -0
- package/dist/types/ChatCompletionContentPartRefusalParam.d.ts +14 -0
- package/dist/types/ChatCompletionContentPartTextParam.d.ts +14 -0
- package/dist/types/ChatCompletionDeveloperMessageParam.d.ts +16 -0
- package/dist/types/ChatCompletionFunctionCallOptionParam.d.ts +10 -0
- package/dist/types/ChatCompletionFunctionMessageParam.d.ts +15 -0
- package/dist/types/ChatCompletionMessageToolCall.d.ts +20 -0
- package/dist/types/ChatCompletionMessageToolCallParam.d.ts +19 -0
- package/dist/types/ChatCompletionNamedToolChoiceParam.d.ts +15 -0
- package/dist/types/ChatCompletionPredictionContentParam.d.ts +12 -0
- package/dist/types/ChatCompletionStreamOptionsParam.d.ts +10 -0
- package/dist/types/ChatCompletionSystemMessageParam.d.ts +16 -0
- package/dist/types/ChatCompletionToolMessageParam.d.ts +16 -0
- package/dist/types/ChatCompletionToolParam.d.ts +15 -0
- package/dist/types/ChatCompletionUserMessageParam.d.ts +19 -0
- package/dist/types/ChildToolRule.d.ts +24 -0
- package/dist/types/ChildToolRuleSchema.d.ts +18 -0
- package/dist/types/CompletionCreateParamsNonStreaming.d.ts +149 -0
- package/dist/types/CompletionCreateParamsStreaming.d.ts +152 -0
- package/dist/types/ConditionalToolRule.d.ts +36 -0
- package/dist/types/ConditionalToolRuleSchema.d.ts +25 -0
- package/dist/types/ContextWindowOverview.d.ts +94 -0
- package/dist/types/ContinueToolRule.d.ts +19 -0
- package/dist/types/CoreMemoryBlockSchema.d.ts +35 -0
- package/dist/types/CreateAgent.d.ts +26 -0
- package/dist/types/CreateAgentMessageAsync.d.ts +29 -0
- package/dist/types/CreateAgentMessageStream.d.ts +28 -0
- package/dist/types/CreateAgentRequest.d.ts +185 -0
- package/dist/types/CreateArchivalMemory.d.ts +11 -0
- package/dist/types/CreateBlock.d.ts +62 -0
- package/dist/types/CreateGroup.d.ts +26 -0
- package/dist/types/CreateIdentity.d.ts +26 -0
- package/dist/types/CreatePassage.d.ts +29 -0
- package/dist/types/CreateProvider.d.ts +22 -0
- package/dist/types/CreateSource.d.ts +22 -0
- package/dist/types/CreateTool.d.ts +22 -0
- package/dist/types/CreateVoiceChatCompletions.d.ts +33 -0
- package/dist/types/DeleteAgent.d.ts +25 -0
- package/dist/types/DeleteBlock.d.ts +26 -0
- package/dist/types/DeleteFileFromSource.d.ts +29 -0
- package/dist/types/DeleteGroup.d.ts +25 -0
- package/dist/types/DeleteIdentity.d.ts +25 -0
- package/dist/types/DeleteJob.d.ts +26 -0
- package/dist/types/DeleteMcpServer.d.ts +27 -0
- package/dist/types/DeletePassage.d.ts +29 -0
- package/dist/types/DeleteProvider.d.ts +26 -0
- package/dist/types/DeleteRun.d.ts +26 -0
- package/dist/types/DeleteSource.d.ts +25 -0
- package/dist/types/DeleteTool.d.ts +25 -0
- package/dist/types/DetachCoreMemoryBlock.d.ts +30 -0
- package/dist/types/DetachSourceFromAgent.d.ts +30 -0
- package/dist/types/DetachTool.d.ts +30 -0
- package/dist/types/DynamicManager.d.ts +20 -0
- package/dist/types/DynamicManagerUpdate.d.ts +14 -0
- package/dist/types/E2BSandboxConfig.d.ts +20 -0
- package/dist/types/EmbeddingConfig.d.ts +71 -0
- package/dist/types/ExportAgentSerialized.d.ts +28 -0
- package/dist/types/File.d.ts +15 -0
- package/dist/types/FileFile.d.ts +18 -0
- package/dist/types/FileMetadata.d.ts +58 -0
- package/dist/types/FunctionCall.d.ts +14 -0
- package/dist/types/FunctionDefinitionInput.d.ts +21 -0
- package/dist/types/FunctionDefinitionOutput.d.ts +16 -0
- package/dist/types/FunctionOutput.d.ts +15 -0
- package/dist/types/FunctionTool.d.ts +16 -0
- package/dist/types/GetSourceIdByName.d.ts +25 -0
- package/dist/types/Group.d.ts +34 -0
- package/dist/types/GroupCreate.d.ts +26 -0
- package/dist/types/GroupUpdate.d.ts +14 -0
- package/dist/types/HTTPValidationError.d.ts +11 -0
- package/dist/types/Health.d.ts +17 -0
- package/dist/types/HealthCheck.d.ts +14 -0
- package/dist/types/HiddenReasoningMessage.d.ts +38 -0
- package/dist/types/Identity.d.ts +47 -0
- package/dist/types/IdentityCreate.d.ts +38 -0
- package/dist/types/IdentityProperty.d.ts +25 -0
- package/dist/types/IdentityPropertyType.d.ts +15 -0
- package/dist/types/IdentityType.d.ts +14 -0
- package/dist/types/IdentityUpdate.d.ts +32 -0
- package/dist/types/IdentityUpsert.d.ts +38 -0
- package/dist/types/ImageURL.d.ts +20 -0
- package/dist/types/ImportAgentSerialized.d.ts +47 -0
- package/dist/types/InitToolRule.d.ts +19 -0
- package/dist/types/InputAudio.d.ts +19 -0
- package/dist/types/JSONSchema.d.ts +21 -0
- package/dist/types/Job.d.ts +51 -0
- package/dist/types/JobStatus.d.ts +18 -0
- package/dist/types/JobType.d.ts +10 -0
- package/dist/types/LLMConfig.d.ts +89 -0
- package/dist/types/LettaAssistantMessageContentUnion.d.ts +12 -0
- package/dist/types/LettaMessageContentUnion.d.ts +32 -0
- package/dist/types/LettaMessageUnion.d.ts +36 -0
- package/dist/types/LettaRequest.d.ts +30 -0
- package/dist/types/LettaRequestConfig.d.ts +24 -0
- package/dist/types/LettaResponse.d.ts +20 -0
- package/dist/types/LettaStreamingRequest.d.ts +36 -0
- package/dist/types/LettaUsageStatistics.d.ts +47 -0
- package/dist/types/LettaUserMessageContentUnion.d.ts +12 -0
- package/dist/types/ListActiveJobs.d.ts +19 -0
- package/dist/types/ListActiveRuns.d.ts +26 -0
- package/dist/types/ListAgentSources.d.ts +26 -0
- package/dist/types/ListAgentTools.d.ts +26 -0
- package/dist/types/ListAgents.d.ts +83 -0
- package/dist/types/ListAgentsForBlock.d.ts +26 -0
- package/dist/types/ListBlocks.d.ts +44 -0
- package/dist/types/ListComposioActionsByApp.d.ts +26 -0
- package/dist/types/ListComposioApps.d.ts +23 -0
- package/dist/types/ListCoreMemoryBlocks.d.ts +26 -0
- package/dist/types/ListEmbeddingModels.d.ts +14 -0
- package/dist/types/ListGroupMessages.d.ts +61 -0
- package/dist/types/ListGroups.d.ts +43 -0
- package/dist/types/ListIdentities.d.ts +33 -0
- package/dist/types/ListJobs.d.ts +26 -0
- package/dist/types/ListMcpServers.d.ts +26 -0
- package/dist/types/ListMcpToolsByServer.d.ts +26 -0
- package/dist/types/ListMessages.d.ts +65 -0
- package/dist/types/ListModels.d.ts +14 -0
- package/dist/types/ListPassages.d.ts +50 -0
- package/dist/types/ListProviders.d.ts +27 -0
- package/dist/types/ListRunMessages.d.ts +53 -0
- package/dist/types/ListRunSteps.d.ts +48 -0
- package/dist/types/ListRuns.d.ts +26 -0
- package/dist/types/ListSourceFiles.d.ts +39 -0
- package/dist/types/ListSourcePassages.d.ts +26 -0
- package/dist/types/ListSources.d.ts +19 -0
- package/dist/types/ListSteps.d.ts +56 -0
- package/dist/types/ListTags.d.ts +27 -0
- package/dist/types/ListTools.d.ts +28 -0
- package/dist/types/LocalSandboxConfig.d.ts +28 -0
- package/dist/types/MCPServerType.d.ts +10 -0
- package/dist/types/MCPTool.d.ts +21 -0
- package/dist/types/ManagerType.d.ts +13 -0
- package/dist/types/MaxCountPerStepToolRule.d.ts +24 -0
- package/dist/types/MaxCountPerStepToolRuleSchema.d.ts +18 -0
- package/dist/types/Memory.d.ts +21 -0
- package/dist/types/Message.d.ts +85 -0
- package/dist/types/MessageCreate.d.ts +32 -0
- package/dist/types/MessageRole.d.ts +13 -0
- package/dist/types/MessageSchema.d.ts +35 -0
- package/dist/types/ModifyAgent.d.ts +29 -0
- package/dist/types/ModifyBlock.d.ts +29 -0
- package/dist/types/ModifyCoreMemoryBlock.d.ts +33 -0
- package/dist/types/ModifyGroup.d.ts +33 -0
- package/dist/types/ModifyGroupMessage.d.ts +42 -0
- package/dist/types/ModifyMessage.d.ts +42 -0
- package/dist/types/ModifyPassage.d.ts +33 -0
- package/dist/types/ModifyProvider.d.ts +22 -0
- package/dist/types/ModifySource.d.ts +29 -0
- package/dist/types/ModifyTool.d.ts +29 -0
- package/dist/types/OmittedReasoningContent.d.ts +21 -0
- package/dist/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts +14 -0
- package/dist/types/OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction.d.ts +10 -0
- package/dist/types/OpenaiTypesChatCompletionCreateParamsFunction.d.ts +20 -0
- package/dist/types/Organization.d.ts +28 -0
- package/dist/types/OrganizationCreate.d.ts +15 -0
- package/dist/types/OrganizationUpdate.d.ts +15 -0
- package/dist/types/ParameterProperties.d.ts +11 -0
- package/dist/types/ParametersSchema.d.ts +21 -0
- package/dist/types/ParentToolRule.d.ts +24 -0
- package/dist/types/Passage.d.ts +71 -0
- package/dist/types/PassageUpdate.d.ts +65 -0
- package/dist/types/PipRequirement.d.ts +16 -0
- package/dist/types/Provider.d.ts +23 -0
- package/dist/types/ProviderCreate.d.ts +16 -0
- package/dist/types/ProviderUpdate.d.ts +16 -0
- package/dist/types/ReasoningContent.d.ts +30 -0
- package/dist/types/ReasoningMessage.d.ts +43 -0
- package/dist/types/RedactedReasoningContent.d.ts +21 -0
- package/dist/types/ResetGroupMessages.d.ts +25 -0
- package/dist/types/ResetMessages.d.ts +35 -0
- package/dist/types/ResponseFormatJSONObject.d.ts +10 -0
- package/dist/types/ResponseFormatJSONSchema.d.ts +15 -0
- package/dist/types/ResponseFormatText.d.ts +10 -0
- package/dist/types/RetrieveAgent.d.ts +26 -0
- package/dist/types/RetrieveAgentContextWindow.d.ts +26 -0
- package/dist/types/RetrieveAgentMemory.d.ts +26 -0
- package/dist/types/RetrieveBlock.d.ts +26 -0
- package/dist/types/RetrieveCoreMemoryBlock.d.ts +30 -0
- package/dist/types/RetrieveGroup.d.ts +26 -0
- package/dist/types/RetrieveIdentity.d.ts +26 -0
- package/dist/types/RetrieveJob.d.ts +26 -0
- package/dist/types/RetrieveRun.d.ts +26 -0
- package/dist/types/RetrieveRunUsage.d.ts +26 -0
- package/dist/types/RetrieveSource.d.ts +26 -0
- package/dist/types/RetrieveStep.d.ts +26 -0
- package/dist/types/RetrieveTool.d.ts +26 -0
- package/dist/types/RoundRobinManager.d.ts +12 -0
- package/dist/types/RoundRobinManagerUpdate.d.ts +12 -0
- package/dist/types/Run.d.ts +56 -0
- package/dist/types/RunToolFromSource.d.ts +22 -0
- package/dist/types/SSEServerConfig.d.ts +21 -0
- package/dist/types/SandboxConfig.d.ts +40 -0
- package/dist/types/SandboxConfigCreate.d.ts +12 -0
- package/dist/types/SandboxConfigUpdate.d.ts +15 -0
- package/dist/types/SandboxEnvironmentVariable.d.ts +47 -0
- package/dist/types/SandboxEnvironmentVariableCreate.d.ts +20 -0
- package/dist/types/SandboxEnvironmentVariableUpdate.d.ts +18 -0
- package/dist/types/SandboxType.d.ts +10 -0
- package/dist/types/SendGroupMessage.d.ts +29 -0
- package/dist/types/SendGroupMessageStreaming.d.ts +28 -0
- package/dist/types/SendMessage.d.ts +29 -0
- package/dist/types/SleeptimeManager.d.ts +16 -0
- package/dist/types/SleeptimeManagerUpdate.d.ts +13 -0
- package/dist/types/Source.d.ts +51 -0
- package/dist/types/SourceCreate.d.ts +37 -0
- package/dist/types/SourceUpdate.d.ts +28 -0
- package/dist/types/StdioServerConfig.d.ts +32 -0
- package/dist/types/Step.d.ts +80 -0
- package/dist/types/SupervisorManager.d.ts +15 -0
- package/dist/types/SupervisorManagerUpdate.d.ts +12 -0
- package/dist/types/SystemMessage.d.ts +33 -0
- package/dist/types/TagSchema.d.ts +10 -0
- package/dist/types/TerminalToolRule.d.ts +19 -0
- package/dist/types/TextContent.d.ts +21 -0
- package/dist/types/Tool.d.ts +73 -0
- package/dist/types/ToolCall.d.ts +18 -0
- package/dist/types/ToolCallContent.d.ts +34 -0
- package/dist/types/ToolCallDelta.d.ts +9 -0
- package/dist/types/ToolCallMessage.d.ts +31 -0
- package/dist/types/ToolCreate.d.ts +44 -0
- package/dist/types/ToolEnvVarSchema.d.ts +23 -0
- package/dist/types/ToolJSONSchema.d.ts +21 -0
- package/dist/types/ToolReturn.d.ts +24 -0
- package/dist/types/ToolReturnContent.d.ts +27 -0
- package/dist/types/ToolReturnMessage.d.ts +47 -0
- package/dist/types/ToolRunFromSource.d.ts +45 -0
- package/dist/types/ToolSchema.d.ts +48 -0
- package/dist/types/ToolType.d.ts +16 -0
- package/dist/types/ToolUpdate.d.ts +38 -0
- package/dist/types/UpdateAgent.d.ts +103 -0
- package/dist/types/UpdateAssistantMessage.d.ts +16 -0
- package/dist/types/UpdateIdentity.d.ts +29 -0
- package/dist/types/UpdateReasoningMessage.d.ts +15 -0
- package/dist/types/UpdateSystemMessage.d.ts +16 -0
- package/dist/types/UpdateUserMessage.d.ts +16 -0
- package/dist/types/UploadFileToSource.d.ts +29 -0
- package/dist/types/UpsertIdentity.d.ts +26 -0
- package/dist/types/UpsertIdentityProperties.d.ts +28 -0
- package/dist/types/UpsertTool.d.ts +22 -0
- package/dist/types/UsageStatistics.d.ts +21 -0
- package/dist/types/User.d.ts +34 -0
- package/dist/types/UserCreate.d.ts +11 -0
- package/dist/types/UserMessage.d.ts +33 -0
- package/dist/types/UserUpdate.d.ts +15 -0
- package/dist/types/ValidationError.d.ts +18 -0
- package/dist/types/WebSearchOptions.d.ts +18 -0
- package/dist/types/WebSearchOptionsUserLocation.d.ts +15 -0
- package/dist/types/WebSearchOptionsUserLocationApproximate.d.ts +22 -0
- package/dist/types/agents/CreateTemplateFromAgent.d.ts +52 -0
- package/dist/types/agents/GetAgentVariables.d.ts +40 -0
- package/dist/types/agents/MigrateAgent.d.ts +90 -0
- package/dist/types/agents/SearchDeployedAgents.d.ts +130 -0
- package/dist/types/agents/VersionAgentTemplate.d.ts +69 -0
- package/dist/types/agents/index.d.ts +10 -0
- package/dist/types/clientSideAccessTokens/CreateClientSideAccessToken.d.ts +120 -0
- package/dist/types/clientSideAccessTokens/DeleteClientSideAccessToken.d.ts +35 -0
- package/dist/types/clientSideAccessTokens/index.d.ts +3 -0
- package/dist/types/index.d.ts +328 -0
- package/dist/types/templates/CreateAgentsFromTemplate.d.ts +67 -0
- package/dist/types/templates/index.d.ts +1 -0
- package/hooks/agentsHooks/index.d.ts +72 -0
- package/hooks/agentsHooks/useAgents/createTemplateFromAgent.d.ts +39 -0
- package/hooks/agentsHooks/useAgents/getAgentVariables.d.ts +63 -0
- package/hooks/agentsHooks/useAgents/getAgentVariablesSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useAgents/index.d.ts +12 -0
- package/hooks/agentsHooks/useAgents/migrateAgent.d.ts +39 -0
- package/hooks/agentsHooks/useAgents/searchDeployedAgents.d.ts +37 -0
- package/hooks/agentsHooks/useAgents/versionAgentTemplate.d.ts +41 -0
- package/hooks/agentsHooks/useCreateAgent.d.ts +39 -0
- package/hooks/agentsHooks/useCreateAgentMessageAsync.d.ts +39 -0
- package/hooks/agentsHooks/useCreateAgentMessageStream.d.ts +39 -0
- package/hooks/agentsHooks/useCreatePassage.d.ts +39 -0
- package/hooks/agentsHooks/useDeleteAgent.d.ts +37 -0
- package/hooks/agentsHooks/useDeletePassage.d.ts +39 -0
- package/hooks/agentsHooks/useExportAgentSerialized.d.ts +63 -0
- package/hooks/agentsHooks/useExportAgentSerializedSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useImportAgentSerialized.d.ts +39 -0
- package/hooks/agentsHooks/useListAgentSources.d.ts +63 -0
- package/hooks/agentsHooks/useListAgentSourcesSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useListAgentTools.d.ts +63 -0
- package/hooks/agentsHooks/useListAgentToolsSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useListAgents.d.ts +51 -0
- package/hooks/agentsHooks/useListAgentsSuspense.d.ts +51 -0
- package/hooks/agentsHooks/useListCoreMemoryBlocks.d.ts +63 -0
- package/hooks/agentsHooks/useListCoreMemoryBlocksSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useListMessages.d.ts +63 -0
- package/hooks/agentsHooks/useListMessagesSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useListPassages.d.ts +63 -0
- package/hooks/agentsHooks/useListPassagesSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveAgent.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveAgentContextWindow.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveAgentContextWindowSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveAgentMemory.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveAgentMemorySuspense.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveAgentSuspense.d.ts +63 -0
- package/hooks/agentsHooks/useRetrieveCoreMemoryBlock.d.ts +67 -0
- package/hooks/agentsHooks/useRetrieveCoreMemoryBlockSuspense.d.ts +67 -0
- package/hooks/agentsHooks/useSendMessage.d.ts +39 -0
- package/hooks/blocksHooks/index.d.ts +16 -0
- package/hooks/blocksHooks/useCreateBlock.d.ts +35 -0
- package/hooks/blocksHooks/useDeleteBlock.d.ts +35 -0
- package/hooks/blocksHooks/useListAgentsForBlock.d.ts +63 -0
- package/hooks/blocksHooks/useListAgentsForBlockSuspense.d.ts +63 -0
- package/hooks/blocksHooks/useListBlocks.d.ts +49 -0
- package/hooks/blocksHooks/useListBlocksSuspense.d.ts +49 -0
- package/hooks/blocksHooks/useRetrieveBlock.d.ts +61 -0
- package/hooks/blocksHooks/useRetrieveBlockSuspense.d.ts +61 -0
- package/hooks/clientSideAccessTokensHooks/index.d.ts +4 -0
- package/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/createClientSideAccessToken.d.ts +37 -0
- package/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/deleteClientSideAccessToken.d.ts +39 -0
- package/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/index.d.ts +4 -0
- package/hooks/groupsHooks/index.d.ts +20 -0
- package/hooks/groupsHooks/useCreateGroup.d.ts +39 -0
- package/hooks/groupsHooks/useDeleteGroup.d.ts +37 -0
- package/hooks/groupsHooks/useListGroupMessages.d.ts +63 -0
- package/hooks/groupsHooks/useListGroupMessagesSuspense.d.ts +63 -0
- package/hooks/groupsHooks/useListGroups.d.ts +51 -0
- package/hooks/groupsHooks/useListGroupsSuspense.d.ts +51 -0
- package/hooks/groupsHooks/useRetrieveGroup.d.ts +63 -0
- package/hooks/groupsHooks/useRetrieveGroupSuspense.d.ts +63 -0
- package/hooks/groupsHooks/useSendGroupMessage.d.ts +39 -0
- package/hooks/groupsHooks/useSendGroupMessageStreaming.d.ts +39 -0
- package/hooks/healthHooks/index.d.ts +4 -0
- package/hooks/healthHooks/useHealthCheck.d.ts +49 -0
- package/hooks/healthHooks/useHealthCheckSuspense.d.ts +49 -0
- package/hooks/identitiesHooks/index.d.ts +16 -0
- package/hooks/identitiesHooks/useCreateIdentity.d.ts +37 -0
- package/hooks/identitiesHooks/useDeleteIdentity.d.ts +37 -0
- package/hooks/identitiesHooks/useListIdentities.d.ts +51 -0
- package/hooks/identitiesHooks/useListIdentitiesSuspense.d.ts +51 -0
- package/hooks/identitiesHooks/useRetrieveIdentity.d.ts +61 -0
- package/hooks/identitiesHooks/useRetrieveIdentitySuspense.d.ts +61 -0
- package/hooks/identitiesHooks/useUpsertIdentity.d.ts +37 -0
- package/hooks/identitiesHooks/useUpsertIdentityProperties.d.ts +37 -0
- package/hooks/index.d.ts +274 -0
- package/hooks/jobsHooks/index.d.ts +14 -0
- package/hooks/jobsHooks/useDeleteJob.d.ts +37 -0
- package/hooks/jobsHooks/useListActiveJobs.d.ts +51 -0
- package/hooks/jobsHooks/useListActiveJobsSuspense.d.ts +51 -0
- package/hooks/jobsHooks/useListJobs.d.ts +51 -0
- package/hooks/jobsHooks/useListJobsSuspense.d.ts +51 -0
- package/hooks/jobsHooks/useRetrieveJob.d.ts +63 -0
- package/hooks/jobsHooks/useRetrieveJobSuspense.d.ts +63 -0
- package/hooks/modelsHooks/index.d.ts +8 -0
- package/hooks/modelsHooks/useListEmbeddingModels.d.ts +49 -0
- package/hooks/modelsHooks/useListEmbeddingModelsSuspense.d.ts +49 -0
- package/hooks/modelsHooks/useListModels.d.ts +49 -0
- package/hooks/modelsHooks/useListModelsSuspense.d.ts +49 -0
- package/hooks/providersHooks/index.d.ts +8 -0
- package/hooks/providersHooks/useCreateProvider.d.ts +37 -0
- package/hooks/providersHooks/useDeleteProvider.d.ts +37 -0
- package/hooks/providersHooks/useListProviders.d.ts +51 -0
- package/hooks/providersHooks/useListProvidersSuspense.d.ts +51 -0
- package/hooks/runsHooks/index.d.ts +26 -0
- package/hooks/runsHooks/useDeleteRun.d.ts +37 -0
- package/hooks/runsHooks/useListActiveRuns.d.ts +51 -0
- package/hooks/runsHooks/useListActiveRunsSuspense.d.ts +51 -0
- package/hooks/runsHooks/useListRunMessages.d.ts +63 -0
- package/hooks/runsHooks/useListRunMessagesSuspense.d.ts +63 -0
- package/hooks/runsHooks/useListRunSteps.d.ts +63 -0
- package/hooks/runsHooks/useListRunStepsSuspense.d.ts +63 -0
- package/hooks/runsHooks/useListRuns.d.ts +51 -0
- package/hooks/runsHooks/useListRunsSuspense.d.ts +51 -0
- package/hooks/runsHooks/useRetrieveRun.d.ts +63 -0
- package/hooks/runsHooks/useRetrieveRunSuspense.d.ts +63 -0
- package/hooks/runsHooks/useRetrieveRunUsage.d.ts +63 -0
- package/hooks/runsHooks/useRetrieveRunUsageSuspense.d.ts +63 -0
- package/hooks/sourcesHooks/index.d.ts +28 -0
- package/hooks/sourcesHooks/useCreateSource.d.ts +37 -0
- package/hooks/sourcesHooks/useDeleteFileFromSource.d.ts +39 -0
- package/hooks/sourcesHooks/useDeleteSource.d.ts +37 -0
- package/hooks/sourcesHooks/useGetSourceIdByName.d.ts +63 -0
- package/hooks/sourcesHooks/useGetSourceIdByNameSuspense.d.ts +63 -0
- package/hooks/sourcesHooks/useListSourceFiles.d.ts +63 -0
- package/hooks/sourcesHooks/useListSourceFilesSuspense.d.ts +63 -0
- package/hooks/sourcesHooks/useListSourcePassages.d.ts +63 -0
- package/hooks/sourcesHooks/useListSourcePassagesSuspense.d.ts +63 -0
- package/hooks/sourcesHooks/useListSources.d.ts +51 -0
- package/hooks/sourcesHooks/useListSourcesSuspense.d.ts +51 -0
- package/hooks/sourcesHooks/useRetrieveSource.d.ts +63 -0
- package/hooks/sourcesHooks/useRetrieveSourceSuspense.d.ts +63 -0
- package/hooks/sourcesHooks/useUploadFileToSource.d.ts +39 -0
- package/hooks/stepsHooks/index.d.ts +8 -0
- package/hooks/stepsHooks/useListSteps.d.ts +51 -0
- package/hooks/stepsHooks/useListStepsSuspense.d.ts +51 -0
- package/hooks/stepsHooks/useRetrieveStep.d.ts +63 -0
- package/hooks/stepsHooks/useRetrieveStepSuspense.d.ts +63 -0
- package/hooks/tagHooks/index.d.ts +4 -0
- package/hooks/tagHooks/useListTags.d.ts +51 -0
- package/hooks/tagHooks/useListTagsSuspense.d.ts +51 -0
- package/hooks/templatesHooks/index.d.ts +2 -0
- package/hooks/templatesHooks/useTemplates/createAgentsFromTemplate.d.ts +41 -0
- package/hooks/templatesHooks/useTemplates/index.d.ts +2 -0
- package/hooks/toolsHooks/index.d.ts +42 -0
- package/hooks/toolsHooks/useAddBaseTools.d.ts +33 -0
- package/hooks/toolsHooks/useAddComposioTool.d.ts +37 -0
- package/hooks/toolsHooks/useAddMcpServer.d.ts +37 -0
- package/hooks/toolsHooks/useAddMcpTool.d.ts +39 -0
- package/hooks/toolsHooks/useCreateTool.d.ts +37 -0
- package/hooks/toolsHooks/useDeleteMcpServer.d.ts +37 -0
- package/hooks/toolsHooks/useDeleteTool.d.ts +37 -0
- package/hooks/toolsHooks/useListComposioActionsByApp.d.ts +63 -0
- package/hooks/toolsHooks/useListComposioActionsByAppSuspense.d.ts +63 -0
- package/hooks/toolsHooks/useListComposioApps.d.ts +51 -0
- package/hooks/toolsHooks/useListComposioAppsSuspense.d.ts +51 -0
- package/hooks/toolsHooks/useListMcpServers.d.ts +51 -0
- package/hooks/toolsHooks/useListMcpServersSuspense.d.ts +51 -0
- package/hooks/toolsHooks/useListMcpToolsByServer.d.ts +63 -0
- package/hooks/toolsHooks/useListMcpToolsByServerSuspense.d.ts +63 -0
- package/hooks/toolsHooks/useListTools.d.ts +51 -0
- package/hooks/toolsHooks/useListToolsSuspense.d.ts +51 -0
- package/hooks/toolsHooks/useRetrieveTool.d.ts +63 -0
- package/hooks/toolsHooks/useRetrieveToolSuspense.d.ts +63 -0
- package/hooks/toolsHooks/useRunToolFromSource.d.ts +37 -0
- package/hooks/toolsHooks/useUpsertTool.d.ts +37 -0
- package/hooks/voiceHooks/index.d.ts +2 -0
- package/hooks/voiceHooks/useCreateVoiceChatCompletions.d.ts +39 -0
- package/index.d.ts +602 -4
- package/index.js +10625 -4
- package/index.js.map +7 -0
- package/package.json +7 -3
- package/src/hooks/agentsHooks/index.ts +141 -0
- package/src/hooks/agentsHooks/useAgents/createTemplateFromAgent.ts +75 -0
- package/src/hooks/agentsHooks/useAgents/getAgentVariables.ts +93 -0
- package/src/hooks/agentsHooks/useAgents/getAgentVariablesSuspense.ts +93 -0
- package/src/hooks/agentsHooks/useAgents/index.ts +22 -0
- package/src/hooks/agentsHooks/useAgents/migrateAgent.ts +77 -0
- package/src/hooks/agentsHooks/useAgents/searchDeployedAgents.ts +70 -0
- package/src/hooks/agentsHooks/useAgents/versionAgentTemplate.ts +86 -0
- package/src/hooks/agentsHooks/useCreateAgent.ts +72 -0
- package/src/hooks/agentsHooks/useCreateAgentMessageAsync.ts +76 -0
- package/src/hooks/agentsHooks/useCreateAgentMessageStream.ts +75 -0
- package/src/hooks/agentsHooks/useCreatePassage.ts +71 -0
- package/src/hooks/agentsHooks/useDeleteAgent.ts +66 -0
- package/src/hooks/agentsHooks/useDeletePassage.ts +70 -0
- package/src/hooks/agentsHooks/useExportAgentSerialized.ts +98 -0
- package/src/hooks/agentsHooks/useExportAgentSerializedSuspense.ts +98 -0
- package/src/hooks/agentsHooks/useImportAgentSerialized.ts +87 -0
- package/src/hooks/agentsHooks/useListAgentSources.ts +86 -0
- package/src/hooks/agentsHooks/useListAgentSourcesSuspense.ts +89 -0
- package/src/hooks/agentsHooks/useListAgentTools.ts +83 -0
- package/src/hooks/agentsHooks/useListAgentToolsSuspense.ts +86 -0
- package/src/hooks/agentsHooks/useListAgents.ts +77 -0
- package/src/hooks/agentsHooks/useListAgentsSuspense.ts +77 -0
- package/src/hooks/agentsHooks/useListCoreMemoryBlocks.ts +89 -0
- package/src/hooks/agentsHooks/useListCoreMemoryBlocksSuspense.ts +89 -0
- package/src/hooks/agentsHooks/useListMessages.ts +93 -0
- package/src/hooks/agentsHooks/useListMessagesSuspense.ts +93 -0
- package/src/hooks/agentsHooks/useListPassages.ts +93 -0
- package/src/hooks/agentsHooks/useListPassagesSuspense.ts +93 -0
- package/src/hooks/agentsHooks/useRetrieveAgent.ts +83 -0
- package/src/hooks/agentsHooks/useRetrieveAgentContextWindow.ts +99 -0
- package/src/hooks/agentsHooks/useRetrieveAgentContextWindowSuspense.ts +93 -0
- package/src/hooks/agentsHooks/useRetrieveAgentMemory.ts +89 -0
- package/src/hooks/agentsHooks/useRetrieveAgentMemorySuspense.ts +89 -0
- package/src/hooks/agentsHooks/useRetrieveAgentSuspense.ts +86 -0
- package/src/hooks/agentsHooks/useRetrieveCoreMemoryBlock.ts +98 -0
- package/src/hooks/agentsHooks/useRetrieveCoreMemoryBlockSuspense.ts +98 -0
- package/src/hooks/agentsHooks/useSendMessage.ts +71 -0
- package/src/hooks/blocksHooks/index.ts +26 -0
- package/src/hooks/blocksHooks/useCreateBlock.ts +63 -0
- package/src/hooks/blocksHooks/useDeleteBlock.ts +64 -0
- package/src/hooks/blocksHooks/useListAgentsForBlock.ts +86 -0
- package/src/hooks/blocksHooks/useListAgentsForBlockSuspense.ts +89 -0
- package/src/hooks/blocksHooks/useListBlocks.ts +75 -0
- package/src/hooks/blocksHooks/useListBlocksSuspense.ts +75 -0
- package/src/hooks/blocksHooks/useRetrieveBlock.ts +81 -0
- package/src/hooks/blocksHooks/useRetrieveBlockSuspense.ts +84 -0
- package/src/hooks/clientSideAccessTokensHooks/index.ts +12 -0
- package/src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/createClientSideAccessToken.ts +73 -0
- package/src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/deleteClientSideAccessToken.ts +75 -0
- package/src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/index.ts +12 -0
- package/src/hooks/groupsHooks/index.ts +30 -0
- package/src/hooks/groupsHooks/useCreateGroup.ts +72 -0
- package/src/hooks/groupsHooks/useDeleteGroup.ts +66 -0
- package/src/hooks/groupsHooks/useListGroupMessages.ts +98 -0
- package/src/hooks/groupsHooks/useListGroupMessagesSuspense.ts +98 -0
- package/src/hooks/groupsHooks/useListGroups.ts +77 -0
- package/src/hooks/groupsHooks/useListGroupsSuspense.ts +77 -0
- package/src/hooks/groupsHooks/useRetrieveGroup.ts +83 -0
- package/src/hooks/groupsHooks/useRetrieveGroupSuspense.ts +86 -0
- package/src/hooks/groupsHooks/useSendGroupMessage.ts +76 -0
- package/src/hooks/groupsHooks/useSendGroupMessageStreaming.ts +75 -0
- package/src/hooks/healthHooks/index.ts +4 -0
- package/src/hooks/healthHooks/useHealthCheck.ts +69 -0
- package/src/hooks/healthHooks/useHealthCheckSuspense.ts +67 -0
- package/src/hooks/identitiesHooks/index.ts +26 -0
- package/src/hooks/identitiesHooks/useCreateIdentity.ts +75 -0
- package/src/hooks/identitiesHooks/useDeleteIdentity.ts +66 -0
- package/src/hooks/identitiesHooks/useListIdentities.ts +82 -0
- package/src/hooks/identitiesHooks/useListIdentitiesSuspense.ts +82 -0
- package/src/hooks/identitiesHooks/useRetrieveIdentity.ts +87 -0
- package/src/hooks/identitiesHooks/useRetrieveIdentitySuspense.ts +87 -0
- package/src/hooks/identitiesHooks/useUpsertIdentity.ts +75 -0
- package/src/hooks/identitiesHooks/useUpsertIdentityProperties.ts +73 -0
- package/src/hooks/index.ts +533 -0
- package/src/hooks/jobsHooks/index.ts +19 -0
- package/src/hooks/jobsHooks/useDeleteJob.ts +61 -0
- package/src/hooks/jobsHooks/useListActiveJobs.ts +80 -0
- package/src/hooks/jobsHooks/useListActiveJobsSuspense.ts +80 -0
- package/src/hooks/jobsHooks/useListJobs.ts +72 -0
- package/src/hooks/jobsHooks/useListJobsSuspense.ts +72 -0
- package/src/hooks/jobsHooks/useRetrieveJob.ts +79 -0
- package/src/hooks/jobsHooks/useRetrieveJobSuspense.ts +79 -0
- package/src/hooks/modelsHooks/index.ts +13 -0
- package/src/hooks/modelsHooks/useListEmbeddingModels.ts +78 -0
- package/src/hooks/modelsHooks/useListEmbeddingModelsSuspense.ts +78 -0
- package/src/hooks/modelsHooks/useListModels.ts +69 -0
- package/src/hooks/modelsHooks/useListModelsSuspense.ts +67 -0
- package/src/hooks/providersHooks/index.ts +13 -0
- package/src/hooks/providersHooks/useCreateProvider.ts +65 -0
- package/src/hooks/providersHooks/useDeleteProvider.ts +62 -0
- package/src/hooks/providersHooks/useListProviders.ts +82 -0
- package/src/hooks/providersHooks/useListProvidersSuspense.ts +82 -0
- package/src/hooks/runsHooks/index.ts +41 -0
- package/src/hooks/runsHooks/useDeleteRun.ts +61 -0
- package/src/hooks/runsHooks/useListActiveRuns.ts +82 -0
- package/src/hooks/runsHooks/useListActiveRunsSuspense.ts +82 -0
- package/src/hooks/runsHooks/useListRunMessages.ts +93 -0
- package/src/hooks/runsHooks/useListRunMessagesSuspense.ts +93 -0
- package/src/hooks/runsHooks/useListRunSteps.ts +93 -0
- package/src/hooks/runsHooks/useListRunStepsSuspense.ts +93 -0
- package/src/hooks/runsHooks/useListRuns.ts +72 -0
- package/src/hooks/runsHooks/useListRunsSuspense.ts +72 -0
- package/src/hooks/runsHooks/useRetrieveRun.ts +79 -0
- package/src/hooks/runsHooks/useRetrieveRunSuspense.ts +79 -0
- package/src/hooks/runsHooks/useRetrieveRunUsage.ts +83 -0
- package/src/hooks/runsHooks/useRetrieveRunUsageSuspense.ts +86 -0
- package/src/hooks/sourcesHooks/index.ts +48 -0
- package/src/hooks/sourcesHooks/useCreateSource.ts +65 -0
- package/src/hooks/sourcesHooks/useDeleteFileFromSource.ts +70 -0
- package/src/hooks/sourcesHooks/useDeleteSource.ts +66 -0
- package/src/hooks/sourcesHooks/useGetSourceIdByName.ts +89 -0
- package/src/hooks/sourcesHooks/useGetSourceIdByNameSuspense.ts +89 -0
- package/src/hooks/sourcesHooks/useListSourceFiles.ts +93 -0
- package/src/hooks/sourcesHooks/useListSourceFilesSuspense.ts +93 -0
- package/src/hooks/sourcesHooks/useListSourcePassages.ts +89 -0
- package/src/hooks/sourcesHooks/useListSourcePassagesSuspense.ts +89 -0
- package/src/hooks/sourcesHooks/useListSources.ts +73 -0
- package/src/hooks/sourcesHooks/useListSourcesSuspense.ts +73 -0
- package/src/hooks/sourcesHooks/useRetrieveSource.ts +83 -0
- package/src/hooks/sourcesHooks/useRetrieveSourceSuspense.ts +89 -0
- package/src/hooks/sourcesHooks/useUploadFileToSource.ts +86 -0
- package/src/hooks/stepsHooks/index.ts +8 -0
- package/src/hooks/stepsHooks/useListSteps.ts +72 -0
- package/src/hooks/stepsHooks/useListStepsSuspense.ts +72 -0
- package/src/hooks/stepsHooks/useRetrieveStep.ts +82 -0
- package/src/hooks/stepsHooks/useRetrieveStepSuspense.ts +83 -0
- package/src/hooks/tagHooks/index.ts +4 -0
- package/src/hooks/tagHooks/useListTags.ts +72 -0
- package/src/hooks/tagHooks/useListTagsSuspense.ts +72 -0
- package/src/hooks/templatesHooks/index.ts +6 -0
- package/src/hooks/templatesHooks/useTemplates/createAgentsFromTemplate.ts +84 -0
- package/src/hooks/templatesHooks/useTemplates/index.ts +6 -0
- package/src/hooks/toolsHooks/index.ts +67 -0
- package/src/hooks/toolsHooks/useAddBaseTools.ts +56 -0
- package/src/hooks/toolsHooks/useAddComposioTool.ts +69 -0
- package/src/hooks/toolsHooks/useAddMcpServer.ts +65 -0
- package/src/hooks/toolsHooks/useAddMcpTool.ts +70 -0
- package/src/hooks/toolsHooks/useCreateTool.ts +62 -0
- package/src/hooks/toolsHooks/useDeleteMcpServer.ts +69 -0
- package/src/hooks/toolsHooks/useDeleteTool.ts +61 -0
- package/src/hooks/toolsHooks/useListComposioActionsByApp.ts +99 -0
- package/src/hooks/toolsHooks/useListComposioActionsByAppSuspense.ts +93 -0
- package/src/hooks/toolsHooks/useListComposioApps.ts +82 -0
- package/src/hooks/toolsHooks/useListComposioAppsSuspense.ts +82 -0
- package/src/hooks/toolsHooks/useListMcpServers.ts +82 -0
- package/src/hooks/toolsHooks/useListMcpServersSuspense.ts +82 -0
- package/src/hooks/toolsHooks/useListMcpToolsByServer.ts +89 -0
- package/src/hooks/toolsHooks/useListMcpToolsByServerSuspense.ts +89 -0
- package/src/hooks/toolsHooks/useListTools.ts +72 -0
- package/src/hooks/toolsHooks/useListToolsSuspense.ts +72 -0
- package/src/hooks/toolsHooks/useRetrieveTool.ts +82 -0
- package/src/hooks/toolsHooks/useRetrieveToolSuspense.ts +83 -0
- package/src/hooks/toolsHooks/useRunToolFromSource.ts +70 -0
- package/src/hooks/toolsHooks/useUpsertTool.ts +62 -0
- package/src/hooks/voiceHooks/index.ts +2 -0
- package/src/hooks/voiceHooks/useCreateVoiceChatCompletions.ts +83 -0
- package/src/index.ts +1454 -4
- package/src/schemas/HTTPValidationError.json +1 -0
- package/src/schemas/JSONSchema.json +1 -0
- package/src/schemas/LLMConfig.json +1 -0
- package/src/schemas/MCPServerType.json +1 -0
- package/src/schemas/MCPTool.json +1 -0
- package/src/schemas/SSEServerConfig.json +1 -0
- package/src/schemas/actionModel.json +1 -0
- package/src/schemas/actionParametersModel.json +1 -0
- package/src/schemas/actionResponseModel.json +1 -0
- package/src/schemas/agentEnvironmentVariable.json +1 -0
- package/src/schemas/agentSchema.json +1 -0
- package/src/schemas/agentState.json +1 -0
- package/src/schemas/agentType.json +1 -0
- package/src/schemas/appAuthScheme.json +1 -0
- package/src/schemas/appModel.json +1 -0
- package/src/schemas/assistantMessage.json +1 -0
- package/src/schemas/audio.json +1 -0
- package/src/schemas/authRequest.json +1 -0
- package/src/schemas/authResponse.json +1 -0
- package/src/schemas/authSchemeField.json +1 -0
- package/src/schemas/baseToolRuleSchema.json +1 -0
- package/src/schemas/block.json +1 -0
- package/src/schemas/blockUpdate.json +1 -0
- package/src/schemas/bodyImportAgentSerialized.json +1 -0
- package/src/schemas/bodyUploadFileToSource.json +1 -0
- package/src/schemas/chatCompletionAssistantMessageParam.json +1 -0
- package/src/schemas/chatCompletionAudioParam.json +1 -0
- package/src/schemas/chatCompletionContentPartImageParam.json +1 -0
- package/src/schemas/chatCompletionContentPartInputAudioParam.json +1 -0
- package/src/schemas/chatCompletionContentPartRefusalParam.json +1 -0
- package/src/schemas/chatCompletionContentPartTextParam.json +1 -0
- package/src/schemas/chatCompletionDeveloperMessageParam.json +1 -0
- package/src/schemas/chatCompletionFunctionCallOptionParam.json +1 -0
- package/src/schemas/chatCompletionFunctionMessageParam.json +1 -0
- package/src/schemas/chatCompletionMessageToolCall.json +1 -0
- package/src/schemas/chatCompletionMessageToolCallParam.json +1 -0
- package/src/schemas/chatCompletionNamedToolChoiceParam.json +1 -0
- package/src/schemas/chatCompletionPredictionContentParam.json +1 -0
- package/src/schemas/chatCompletionStreamOptionsParam.json +1 -0
- package/src/schemas/chatCompletionSystemMessageParam.json +1 -0
- package/src/schemas/chatCompletionToolMessageParam.json +1 -0
- package/src/schemas/chatCompletionToolParam.json +1 -0
- package/src/schemas/chatCompletionUserMessageParam.json +1 -0
- package/src/schemas/childToolRule.json +1 -0
- package/src/schemas/childToolRuleSchema.json +1 -0
- package/src/schemas/completionCreateParamsNonStreaming.json +1 -0
- package/src/schemas/completionCreateParamsStreaming.json +1 -0
- package/src/schemas/conditionalToolRule.json +1 -0
- package/src/schemas/conditionalToolRuleSchema.json +1 -0
- package/src/schemas/contextWindowOverview.json +1 -0
- package/src/schemas/continueToolRule.json +1 -0
- package/src/schemas/coreMemoryBlockSchema.json +1 -0
- package/src/schemas/createAgentRequest.json +1 -0
- package/src/schemas/createArchivalMemory.json +1 -0
- package/src/schemas/createBlock.json +1 -0
- package/src/schemas/dynamicManager.json +1 -0
- package/src/schemas/dynamicManagerUpdate.json +1 -0
- package/src/schemas/e2BSandboxConfig.json +1 -0
- package/src/schemas/embeddingConfig.json +1 -0
- package/src/schemas/file.json +1 -0
- package/src/schemas/fileFile.json +1 -0
- package/src/schemas/fileMetadata.json +1 -0
- package/src/schemas/functionCall.json +1 -0
- package/src/schemas/functionDefinitionInput.json +1 -0
- package/src/schemas/functionDefinitionOutput.json +1 -0
- package/src/schemas/functionOutput.json +1 -0
- package/src/schemas/functionTool.json +1 -0
- package/src/schemas/group.json +1 -0
- package/src/schemas/groupCreate.json +1 -0
- package/src/schemas/groupUpdate.json +1 -0
- package/src/schemas/health.json +1 -0
- package/src/schemas/hiddenReasoningMessage.json +1 -0
- package/src/schemas/identity.json +1 -0
- package/src/schemas/identityCreate.json +1 -0
- package/src/schemas/identityProperty.json +1 -0
- package/src/schemas/identityPropertyType.json +1 -0
- package/src/schemas/identityType.json +1 -0
- package/src/schemas/identityUpdate.json +1 -0
- package/src/schemas/identityUpsert.json +1 -0
- package/src/schemas/imageURL.json +1 -0
- package/src/schemas/initToolRule.json +1 -0
- package/src/schemas/inputAudio.json +1 -0
- package/src/schemas/job.json +1 -0
- package/src/schemas/jobStatus.json +1 -0
- package/src/schemas/jobType.json +1 -0
- package/src/schemas/lettaAssistantMessageContentUnion.json +1 -0
- package/src/schemas/lettaMessageContentUnion.json +1 -0
- package/src/schemas/lettaMessageUnion.json +1 -0
- package/src/schemas/lettaRequest.json +1 -0
- package/src/schemas/lettaRequestConfig.json +1 -0
- package/src/schemas/lettaResponse.json +1 -0
- package/src/schemas/lettaStreamingRequest.json +1 -0
- package/src/schemas/lettaUsageStatistics.json +1 -0
- package/src/schemas/lettaUserMessageContentUnion.json +1 -0
- package/src/schemas/localSandboxConfig.json +1 -0
- package/src/schemas/managerType.json +1 -0
- package/src/schemas/maxCountPerStepToolRule.json +1 -0
- package/src/schemas/maxCountPerStepToolRuleSchema.json +1 -0
- package/src/schemas/memory.json +1 -0
- package/src/schemas/message.json +1 -0
- package/src/schemas/messageCreate.json +1 -0
- package/src/schemas/messageRole.json +1 -0
- package/src/schemas/messageSchema.json +1 -0
- package/src/schemas/omittedReasoningContent.json +1 -0
- package/src/schemas/openaiTypesChatChatCompletionMessageToolCallParamFunction.json +1 -0
- package/src/schemas/openaiTypesChatChatCompletionNamedToolChoiceParamFunction.json +1 -0
- package/src/schemas/openaiTypesChatCompletionCreateParamsFunction.json +1 -0
- package/src/schemas/organization.json +1 -0
- package/src/schemas/organizationCreate.json +1 -0
- package/src/schemas/organizationUpdate.json +1 -0
- package/src/schemas/parameterProperties.json +1 -0
- package/src/schemas/parametersSchema.json +1 -0
- package/src/schemas/parentToolRule.json +1 -0
- package/src/schemas/passage.json +1 -0
- package/src/schemas/passageUpdate.json +1 -0
- package/src/schemas/pipRequirement.json +1 -0
- package/src/schemas/provider.json +1 -0
- package/src/schemas/providerCreate.json +1 -0
- package/src/schemas/providerUpdate.json +1 -0
- package/src/schemas/reasoningContent.json +1 -0
- package/src/schemas/reasoningMessage.json +1 -0
- package/src/schemas/redactedReasoningContent.json +1 -0
- package/src/schemas/responseFormatJSONObject.json +1 -0
- package/src/schemas/responseFormatJSONSchema.json +1 -0
- package/src/schemas/responseFormatText.json +1 -0
- package/src/schemas/roundRobinManager.json +1 -0
- package/src/schemas/roundRobinManagerUpdate.json +1 -0
- package/src/schemas/run.json +1 -0
- package/src/schemas/sandboxConfig.json +1 -0
- package/src/schemas/sandboxConfigCreate.json +1 -0
- package/src/schemas/sandboxConfigUpdate.json +1 -0
- package/src/schemas/sandboxEnvironmentVariable.json +1 -0
- package/src/schemas/sandboxEnvironmentVariableCreate.json +1 -0
- package/src/schemas/sandboxEnvironmentVariableUpdate.json +1 -0
- package/src/schemas/sandboxType.json +1 -0
- package/src/schemas/sleeptimeManager.json +1 -0
- package/src/schemas/sleeptimeManagerUpdate.json +1 -0
- package/src/schemas/source.json +1 -0
- package/src/schemas/sourceCreate.json +1 -0
- package/src/schemas/sourceUpdate.json +1 -0
- package/src/schemas/stdioServerConfig.json +1 -0
- package/src/schemas/step.json +1 -0
- package/src/schemas/supervisorManager.json +1 -0
- package/src/schemas/supervisorManagerUpdate.json +1 -0
- package/src/schemas/systemMessage.json +1 -0
- package/src/schemas/tagSchema.json +1 -0
- package/src/schemas/terminalToolRule.json +1 -0
- package/src/schemas/textContent.json +1 -0
- package/src/schemas/tool.json +1 -0
- package/src/schemas/toolCall.json +1 -0
- package/src/schemas/toolCallContent.json +1 -0
- package/src/schemas/toolCallDelta.json +1 -0
- package/src/schemas/toolCallMessage.json +1 -0
- package/src/schemas/toolCreate.json +1 -0
- package/src/schemas/toolEnvVarSchema.json +1 -0
- package/src/schemas/toolJSONSchema.json +1 -0
- package/src/schemas/toolReturn.json +1 -0
- package/src/schemas/toolReturnContent.json +1 -0
- package/src/schemas/toolReturnMessage.json +1 -0
- package/src/schemas/toolRunFromSource.json +1 -0
- package/src/schemas/toolSchema.json +1 -0
- package/src/schemas/toolType.json +1 -0
- package/src/schemas/toolUpdate.json +1 -0
- package/src/schemas/updateAgent.json +1 -0
- package/src/schemas/updateAssistantMessage.json +1 -0
- package/src/schemas/updateReasoningMessage.json +1 -0
- package/src/schemas/updateSystemMessage.json +1 -0
- package/src/schemas/updateUserMessage.json +1 -0
- package/src/schemas/usageStatistics.json +1 -0
- package/src/schemas/user.json +1 -0
- package/src/schemas/userCreate.json +1 -0
- package/src/schemas/userMessage.json +1 -0
- package/src/schemas/userUpdate.json +1 -0
- package/src/schemas/validationError.json +1 -0
- package/src/schemas/webSearchOptions.json +1 -0
- package/src/schemas/webSearchOptionsUserLocation.json +1 -0
- package/src/schemas/webSearchOptionsUserLocationApproximate.json +1 -0
- package/src/types/ActionModel.ts +56 -0
- package/src/types/ActionParametersModel.ts +26 -0
- package/src/types/ActionResponseModel.ts +26 -0
- package/src/types/AddBaseTools.ts +24 -0
- package/src/types/AddComposioTool.ts +32 -0
- package/src/types/AddMcpServer.ts +28 -0
- package/src/types/AddMcpTool.ts +36 -0
- package/src/types/AgentEnvironmentVariable.ts +48 -0
- package/src/types/AgentSchema.ts +88 -0
- package/src/types/AgentState.ts +142 -0
- package/src/types/AgentType.ts +17 -0
- package/src/types/AppAuthScheme.ts +48 -0
- package/src/types/AppModel.ts +60 -0
- package/src/types/AssistantMessage.ts +37 -0
- package/src/types/AttachCoreMemoryBlock.ts +36 -0
- package/src/types/AttachSourceToAgent.ts +36 -0
- package/src/types/AttachTool.ts +36 -0
- package/src/types/Audio.ts +11 -0
- package/src/types/AuthRequest.ts +12 -0
- package/src/types/AuthResponse.ts +16 -0
- package/src/types/AuthSchemeField.ts +35 -0
- package/src/types/BaseToolRuleSchema.ts +15 -0
- package/src/types/Block.ts +60 -0
- package/src/types/BlockUpdate.ts +43 -0
- package/src/types/BodyImportAgentSerialized.ts +11 -0
- package/src/types/BodyUploadFileToSource.ts +11 -0
- package/src/types/ChatCompletionAssistantMessageParam.ts +29 -0
- package/src/types/ChatCompletionAudioParam.ts +38 -0
- package/src/types/ChatCompletionContentPartImageParam.ts +17 -0
- package/src/types/ChatCompletionContentPartInputAudioParam.ts +17 -0
- package/src/types/ChatCompletionContentPartRefusalParam.ts +15 -0
- package/src/types/ChatCompletionContentPartTextParam.ts +15 -0
- package/src/types/ChatCompletionDeveloperMessageParam.ts +18 -0
- package/src/types/ChatCompletionFunctionCallOptionParam.ts +11 -0
- package/src/types/ChatCompletionFunctionMessageParam.ts +16 -0
- package/src/types/ChatCompletionMessageToolCall.ts +22 -0
- package/src/types/ChatCompletionMessageToolCallParam.ts +21 -0
- package/src/types/ChatCompletionNamedToolChoiceParam.ts +17 -0
- package/src/types/ChatCompletionPredictionContentParam.ts +14 -0
- package/src/types/ChatCompletionStreamOptionsParam.ts +11 -0
- package/src/types/ChatCompletionSystemMessageParam.ts +18 -0
- package/src/types/ChatCompletionToolMessageParam.ts +18 -0
- package/src/types/ChatCompletionToolParam.ts +17 -0
- package/src/types/ChatCompletionUserMessageParam.ts +21 -0
- package/src/types/ChildToolRule.ts +25 -0
- package/src/types/ChildToolRuleSchema.ts +19 -0
- package/src/types/CompletionCreateParamsNonStreaming.ts +176 -0
- package/src/types/CompletionCreateParamsStreaming.ts +178 -0
- package/src/types/ConditionalToolRule.ts +37 -0
- package/src/types/ConditionalToolRuleSchema.ts +26 -0
- package/src/types/ContextWindowOverview.ts +96 -0
- package/src/types/ContinueToolRule.ts +20 -0
- package/src/types/CoreMemoryBlockSchema.ts +36 -0
- package/src/types/CreateAgent.ts +33 -0
- package/src/types/CreateAgentMessageAsync.ts +36 -0
- package/src/types/CreateAgentMessageStream.ts +35 -0
- package/src/types/CreateAgentRequest.ts +187 -0
- package/src/types/CreateArchivalMemory.ts +12 -0
- package/src/types/CreateBlock.ts +69 -0
- package/src/types/CreateGroup.ts +33 -0
- package/src/types/CreateIdentity.ts +33 -0
- package/src/types/CreatePassage.ts +36 -0
- package/src/types/CreateProvider.ts +28 -0
- package/src/types/CreateSource.ts +28 -0
- package/src/types/CreateTool.ts +28 -0
- package/src/types/CreateVoiceChatCompletions.ts +41 -0
- package/src/types/DeleteAgent.ts +31 -0
- package/src/types/DeleteBlock.ts +32 -0
- package/src/types/DeleteFileFromSource.ts +35 -0
- package/src/types/DeleteGroup.ts +31 -0
- package/src/types/DeleteIdentity.ts +31 -0
- package/src/types/DeleteJob.ts +32 -0
- package/src/types/DeleteMcpServer.ts +33 -0
- package/src/types/DeletePassage.ts +35 -0
- package/src/types/DeleteProvider.ts +32 -0
- package/src/types/DeleteRun.ts +32 -0
- package/src/types/DeleteSource.ts +31 -0
- package/src/types/DeleteTool.ts +31 -0
- package/src/types/DetachCoreMemoryBlock.ts +36 -0
- package/src/types/DetachSourceFromAgent.ts +36 -0
- package/src/types/DetachTool.ts +36 -0
- package/src/types/DynamicManager.ts +21 -0
- package/src/types/DynamicManagerUpdate.ts +15 -0
- package/src/types/E2BSandboxConfig.ts +21 -0
- package/src/types/EmbeddingConfig.ts +74 -0
- package/src/types/ExportAgentSerialized.ts +35 -0
- package/src/types/File.ts +17 -0
- package/src/types/FileFile.ts +19 -0
- package/src/types/FileMetadata.ts +59 -0
- package/src/types/FunctionCall.ts +15 -0
- package/src/types/FunctionDefinitionInput.ts +22 -0
- package/src/types/FunctionDefinitionOutput.ts +17 -0
- package/src/types/FunctionOutput.ts +16 -0
- package/src/types/FunctionTool.ts +18 -0
- package/src/types/GetSourceIdByName.ts +31 -0
- package/src/types/Group.ts +36 -0
- package/src/types/GroupCreate.ts +28 -0
- package/src/types/GroupUpdate.ts +16 -0
- package/src/types/HTTPValidationError.ts +13 -0
- package/src/types/Health.ts +18 -0
- package/src/types/HealthCheck.ts +18 -0
- package/src/types/HiddenReasoningMessage.ts +43 -0
- package/src/types/Identity.ts +49 -0
- package/src/types/IdentityCreate.ts +40 -0
- package/src/types/IdentityProperty.ts +32 -0
- package/src/types/IdentityPropertyType.ts +18 -0
- package/src/types/IdentityType.ts +17 -0
- package/src/types/IdentityUpdate.ts +34 -0
- package/src/types/IdentityUpsert.ts +40 -0
- package/src/types/ImageURL.ts +23 -0
- package/src/types/ImportAgentSerialized.ts +54 -0
- package/src/types/InitToolRule.ts +20 -0
- package/src/types/InputAudio.ts +22 -0
- package/src/types/JSONSchema.ts +22 -0
- package/src/types/Job.ts +53 -0
- package/src/types/JobStatus.ts +21 -0
- package/src/types/JobType.ts +13 -0
- package/src/types/LLMConfig.ts +92 -0
- package/src/types/LettaAssistantMessageContentUnion.ts +17 -0
- package/src/types/LettaMessageContentUnion.ts +42 -0
- package/src/types/LettaMessageUnion.ts +47 -0
- package/src/types/LettaRequest.ts +32 -0
- package/src/types/LettaRequestConfig.ts +25 -0
- package/src/types/LettaResponse.ts +22 -0
- package/src/types/LettaStreamingRequest.ts +38 -0
- package/src/types/LettaUsageStatistics.ts +49 -0
- package/src/types/LettaUserMessageContentUnion.ts +16 -0
- package/src/types/ListActiveJobs.ts +24 -0
- package/src/types/ListActiveRuns.ts +32 -0
- package/src/types/ListAgentSources.ts +32 -0
- package/src/types/ListAgentTools.ts +32 -0
- package/src/types/ListAgents.ts +89 -0
- package/src/types/ListAgentsForBlock.ts +32 -0
- package/src/types/ListBlocks.ts +50 -0
- package/src/types/ListComposioActionsByApp.ts +32 -0
- package/src/types/ListComposioApps.ts +29 -0
- package/src/types/ListCoreMemoryBlocks.ts +32 -0
- package/src/types/ListEmbeddingModels.ts +18 -0
- package/src/types/ListGroupMessages.ts +68 -0
- package/src/types/ListGroups.ts +49 -0
- package/src/types/ListIdentities.ts +39 -0
- package/src/types/ListJobs.ts +32 -0
- package/src/types/ListMcpServers.ts +32 -0
- package/src/types/ListMcpToolsByServer.ts +32 -0
- package/src/types/ListMessages.ts +72 -0
- package/src/types/ListModels.ts +18 -0
- package/src/types/ListPassages.ts +57 -0
- package/src/types/ListProviders.ts +33 -0
- package/src/types/ListRunMessages.ts +60 -0
- package/src/types/ListRunSteps.ts +55 -0
- package/src/types/ListRuns.ts +32 -0
- package/src/types/ListSourceFiles.ts +46 -0
- package/src/types/ListSourcePassages.ts +32 -0
- package/src/types/ListSources.ts +24 -0
- package/src/types/ListSteps.ts +62 -0
- package/src/types/ListTags.ts +33 -0
- package/src/types/ListTools.ts +34 -0
- package/src/types/LocalSandboxConfig.ts +30 -0
- package/src/types/MCPServerType.ts +13 -0
- package/src/types/MCPTool.ts +22 -0
- package/src/types/ManagerType.ts +16 -0
- package/src/types/MaxCountPerStepToolRule.ts +25 -0
- package/src/types/MaxCountPerStepToolRuleSchema.ts +19 -0
- package/src/types/Memory.ts +23 -0
- package/src/types/Message.ts +87 -0
- package/src/types/MessageCreate.ts +36 -0
- package/src/types/MessageRole.ts +16 -0
- package/src/types/MessageSchema.ts +37 -0
- package/src/types/ModifyAgent.ts +36 -0
- package/src/types/ModifyBlock.ts +36 -0
- package/src/types/ModifyCoreMemoryBlock.ts +40 -0
- package/src/types/ModifyGroup.ts +41 -0
- package/src/types/ModifyGroupMessage.ts +56 -0
- package/src/types/ModifyMessage.ts +49 -0
- package/src/types/ModifyPassage.ts +40 -0
- package/src/types/ModifyProvider.ts +28 -0
- package/src/types/ModifySource.ts +36 -0
- package/src/types/ModifyTool.ts +36 -0
- package/src/types/OmittedReasoningContent.ts +24 -0
- package/src/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.ts +15 -0
- package/src/types/OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction.ts +11 -0
- package/src/types/OpenaiTypesChatCompletionCreateParamsFunction.ts +21 -0
- package/src/types/Organization.ts +29 -0
- package/src/types/OrganizationCreate.ts +16 -0
- package/src/types/OrganizationUpdate.ts +16 -0
- package/src/types/ParameterProperties.ts +12 -0
- package/src/types/ParametersSchema.ts +23 -0
- package/src/types/ParentToolRule.ts +25 -0
- package/src/types/Passage.ts +73 -0
- package/src/types/PassageUpdate.ts +67 -0
- package/src/types/PipRequirement.ts +17 -0
- package/src/types/Provider.ts +24 -0
- package/src/types/ProviderCreate.ts +17 -0
- package/src/types/ProviderUpdate.ts +17 -0
- package/src/types/ReasoningContent.ts +33 -0
- package/src/types/ReasoningMessage.ts +48 -0
- package/src/types/RedactedReasoningContent.ts +24 -0
- package/src/types/ResetGroupMessages.ts +31 -0
- package/src/types/ResetMessages.ts +42 -0
- package/src/types/ResponseFormatJSONObject.ts +11 -0
- package/src/types/ResponseFormatJSONSchema.ts +17 -0
- package/src/types/ResponseFormatText.ts +11 -0
- package/src/types/RetrieveAgent.ts +32 -0
- package/src/types/RetrieveAgentContextWindow.ts +32 -0
- package/src/types/RetrieveAgentMemory.ts +32 -0
- package/src/types/RetrieveBlock.ts +32 -0
- package/src/types/RetrieveCoreMemoryBlock.ts +36 -0
- package/src/types/RetrieveGroup.ts +32 -0
- package/src/types/RetrieveIdentity.ts +32 -0
- package/src/types/RetrieveJob.ts +32 -0
- package/src/types/RetrieveRun.ts +32 -0
- package/src/types/RetrieveRunUsage.ts +32 -0
- package/src/types/RetrieveSource.ts +32 -0
- package/src/types/RetrieveStep.ts +32 -0
- package/src/types/RetrieveTool.ts +32 -0
- package/src/types/RoundRobinManager.ts +13 -0
- package/src/types/RoundRobinManagerUpdate.ts +13 -0
- package/src/types/Run.ts +58 -0
- package/src/types/RunToolFromSource.ts +28 -0
- package/src/types/SSEServerConfig.ts +23 -0
- package/src/types/SandboxConfig.ts +42 -0
- package/src/types/SandboxConfigCreate.ts +14 -0
- package/src/types/SandboxConfigUpdate.ts +17 -0
- package/src/types/SandboxEnvironmentVariable.ts +48 -0
- package/src/types/SandboxEnvironmentVariableCreate.ts +21 -0
- package/src/types/SandboxEnvironmentVariableUpdate.ts +19 -0
- package/src/types/SandboxType.ts +13 -0
- package/src/types/SendGroupMessage.ts +36 -0
- package/src/types/SendGroupMessageStreaming.ts +35 -0
- package/src/types/SendMessage.ts +36 -0
- package/src/types/SleeptimeManager.ts +17 -0
- package/src/types/SleeptimeManagerUpdate.ts +14 -0
- package/src/types/Source.ts +53 -0
- package/src/types/SourceCreate.ts +39 -0
- package/src/types/SourceUpdate.ts +30 -0
- package/src/types/StdioServerConfig.ts +34 -0
- package/src/types/Step.ts +82 -0
- package/src/types/SupervisorManager.ts +16 -0
- package/src/types/SupervisorManagerUpdate.ts +13 -0
- package/src/types/SystemMessage.ts +36 -0
- package/src/types/TagSchema.ts +11 -0
- package/src/types/TerminalToolRule.ts +20 -0
- package/src/types/TextContent.ts +24 -0
- package/src/types/Tool.ts +75 -0
- package/src/types/ToolCall.ts +19 -0
- package/src/types/ToolCallContent.ts +37 -0
- package/src/types/ToolCallDelta.ts +10 -0
- package/src/types/ToolCallMessage.ts +35 -0
- package/src/types/ToolCreate.ts +45 -0
- package/src/types/ToolEnvVarSchema.ts +24 -0
- package/src/types/ToolJSONSchema.ts +23 -0
- package/src/types/ToolReturn.ts +27 -0
- package/src/types/ToolReturnContent.ts +28 -0
- package/src/types/ToolReturnMessage.ts +52 -0
- package/src/types/ToolRunFromSource.ts +46 -0
- package/src/types/ToolSchema.ts +50 -0
- package/src/types/ToolType.ts +19 -0
- package/src/types/ToolUpdate.ts +39 -0
- package/src/types/UpdateAgent.ts +105 -0
- package/src/types/UpdateAssistantMessage.ts +18 -0
- package/src/types/UpdateIdentity.ts +36 -0
- package/src/types/UpdateReasoningMessage.ts +16 -0
- package/src/types/UpdateSystemMessage.ts +17 -0
- package/src/types/UpdateUserMessage.ts +18 -0
- package/src/types/UploadFileToSource.ts +36 -0
- package/src/types/UpsertIdentity.ts +33 -0
- package/src/types/UpsertIdentityProperties.ts +35 -0
- package/src/types/UpsertTool.ts +28 -0
- package/src/types/UsageStatistics.ts +22 -0
- package/src/types/User.ts +35 -0
- package/src/types/UserCreate.ts +12 -0
- package/src/types/UserMessage.ts +37 -0
- package/src/types/UserUpdate.ts +16 -0
- package/src/types/ValidationError.ts +19 -0
- package/src/types/WebSearchOptions.ts +22 -0
- package/src/types/WebSearchOptionsUserLocation.ts +17 -0
- package/src/types/WebSearchOptionsUserLocationApproximate.ts +23 -0
- package/src/types/agents/CreateTemplateFromAgent.ts +61 -0
- package/src/types/agents/GetAgentVariables.ts +47 -0
- package/src/types/agents/MigrateAgent.ts +108 -0
- package/src/types/agents/SearchDeployedAgents.ts +157 -0
- package/src/types/agents/VersionAgentTemplate.ts +81 -0
- package/src/types/agents/index.ts +76 -0
- package/src/types/clientSideAccessTokens/CreateClientSideAccessToken.ts +135 -0
- package/src/types/clientSideAccessTokens/DeleteClientSideAccessToken.ts +41 -0
- package/src/types/clientSideAccessTokens/index.ts +21 -0
- package/src/types/index.ts +837 -0
- package/src/types/templates/CreateAgentsFromTemplate.ts +73 -0
- package/src/types/templates/index.ts +7 -0
- package/tsconfig.json +3 -1
- package/types/ActionModel.d.ts +54 -0
- package/types/ActionParametersModel.d.ts +25 -0
- package/types/ActionResponseModel.d.ts +25 -0
- package/types/AddBaseTools.d.ts +19 -0
- package/types/AddComposioTool.d.ts +26 -0
- package/types/AddMcpServer.d.ts +22 -0
- package/types/AddMcpTool.d.ts +30 -0
- package/types/AgentEnvironmentVariable.d.ts +47 -0
- package/types/AgentSchema.d.ts +86 -0
- package/types/AgentState.d.ts +140 -0
- package/types/AgentType.d.ts +14 -0
- package/types/AppAuthScheme.d.ts +44 -0
- package/types/AppModel.d.ts +56 -0
- package/types/AssistantMessage.d.ts +33 -0
- package/types/AttachCoreMemoryBlock.d.ts +30 -0
- package/types/AttachSourceToAgent.d.ts +30 -0
- package/types/AttachTool.d.ts +30 -0
- package/types/Audio.d.ts +10 -0
- package/types/AuthRequest.d.ts +11 -0
- package/types/AuthResponse.d.ts +15 -0
- package/types/AuthSchemeField.d.ts +34 -0
- package/types/BaseToolRuleSchema.d.ts +14 -0
- package/types/Block.d.ts +59 -0
- package/types/BlockUpdate.d.ts +42 -0
- package/types/BodyImportAgentSerialized.d.ts +10 -0
- package/types/BodyUploadFileToSource.d.ts +10 -0
- package/types/ChatCompletionAssistantMessageParam.d.ts +27 -0
- package/types/ChatCompletionAudioParam.d.ts +33 -0
- package/types/ChatCompletionContentPartImageParam.d.ts +15 -0
- package/types/ChatCompletionContentPartInputAudioParam.d.ts +15 -0
- package/types/ChatCompletionContentPartRefusalParam.d.ts +14 -0
- package/types/ChatCompletionContentPartTextParam.d.ts +14 -0
- package/types/ChatCompletionDeveloperMessageParam.d.ts +16 -0
- package/types/ChatCompletionFunctionCallOptionParam.d.ts +10 -0
- package/types/ChatCompletionFunctionMessageParam.d.ts +15 -0
- package/types/ChatCompletionMessageToolCall.d.ts +20 -0
- package/types/ChatCompletionMessageToolCallParam.d.ts +19 -0
- package/types/ChatCompletionNamedToolChoiceParam.d.ts +15 -0
- package/types/ChatCompletionPredictionContentParam.d.ts +12 -0
- package/types/ChatCompletionStreamOptionsParam.d.ts +10 -0
- package/types/ChatCompletionSystemMessageParam.d.ts +16 -0
- package/types/ChatCompletionToolMessageParam.d.ts +16 -0
- package/types/ChatCompletionToolParam.d.ts +15 -0
- package/types/ChatCompletionUserMessageParam.d.ts +19 -0
- package/types/ChildToolRule.d.ts +24 -0
- package/types/ChildToolRuleSchema.d.ts +18 -0
- package/types/CompletionCreateParamsNonStreaming.d.ts +149 -0
- package/types/CompletionCreateParamsStreaming.d.ts +152 -0
- package/types/ConditionalToolRule.d.ts +36 -0
- package/types/ConditionalToolRuleSchema.d.ts +25 -0
- package/types/ContextWindowOverview.d.ts +94 -0
- package/types/ContinueToolRule.d.ts +19 -0
- package/types/CoreMemoryBlockSchema.d.ts +35 -0
- package/types/CreateAgent.d.ts +26 -0
- package/types/CreateAgentMessageAsync.d.ts +29 -0
- package/types/CreateAgentMessageStream.d.ts +28 -0
- package/types/CreateAgentRequest.d.ts +185 -0
- package/types/CreateArchivalMemory.d.ts +11 -0
- package/types/CreateBlock.d.ts +62 -0
- package/types/CreateGroup.d.ts +26 -0
- package/types/CreateIdentity.d.ts +26 -0
- package/types/CreatePassage.d.ts +29 -0
- package/types/CreateProvider.d.ts +22 -0
- package/types/CreateSource.d.ts +22 -0
- package/types/CreateTool.d.ts +22 -0
- package/types/CreateVoiceChatCompletions.d.ts +33 -0
- package/types/DeleteAgent.d.ts +25 -0
- package/types/DeleteBlock.d.ts +26 -0
- package/types/DeleteFileFromSource.d.ts +29 -0
- package/types/DeleteGroup.d.ts +25 -0
- package/types/DeleteIdentity.d.ts +25 -0
- package/types/DeleteJob.d.ts +26 -0
- package/types/DeleteMcpServer.d.ts +27 -0
- package/types/DeletePassage.d.ts +29 -0
- package/types/DeleteProvider.d.ts +26 -0
- package/types/DeleteRun.d.ts +26 -0
- package/types/DeleteSource.d.ts +25 -0
- package/types/DeleteTool.d.ts +25 -0
- package/types/DetachCoreMemoryBlock.d.ts +30 -0
- package/types/DetachSourceFromAgent.d.ts +30 -0
- package/types/DetachTool.d.ts +30 -0
- package/types/DynamicManager.d.ts +20 -0
- package/types/DynamicManagerUpdate.d.ts +14 -0
- package/types/E2BSandboxConfig.d.ts +20 -0
- package/types/EmbeddingConfig.d.ts +71 -0
- package/types/ExportAgentSerialized.d.ts +28 -0
- package/types/File.d.ts +15 -0
- package/types/FileFile.d.ts +18 -0
- package/types/FileMetadata.d.ts +58 -0
- package/types/FunctionCall.d.ts +14 -0
- package/types/FunctionDefinitionInput.d.ts +21 -0
- package/types/FunctionDefinitionOutput.d.ts +16 -0
- package/types/FunctionOutput.d.ts +15 -0
- package/types/FunctionTool.d.ts +16 -0
- package/types/GetSourceIdByName.d.ts +25 -0
- package/types/Group.d.ts +34 -0
- package/types/GroupCreate.d.ts +26 -0
- package/types/GroupUpdate.d.ts +14 -0
- package/types/HTTPValidationError.d.ts +11 -0
- package/types/Health.d.ts +17 -0
- package/types/HealthCheck.d.ts +14 -0
- package/types/HiddenReasoningMessage.d.ts +38 -0
- package/types/Identity.d.ts +47 -0
- package/types/IdentityCreate.d.ts +38 -0
- package/types/IdentityProperty.d.ts +25 -0
- package/types/IdentityPropertyType.d.ts +15 -0
- package/types/IdentityType.d.ts +14 -0
- package/types/IdentityUpdate.d.ts +32 -0
- package/types/IdentityUpsert.d.ts +38 -0
- package/types/ImageURL.d.ts +20 -0
- package/types/ImportAgentSerialized.d.ts +47 -0
- package/types/InitToolRule.d.ts +19 -0
- package/types/InputAudio.d.ts +19 -0
- package/types/JSONSchema.d.ts +21 -0
- package/types/Job.d.ts +51 -0
- package/types/JobStatus.d.ts +18 -0
- package/types/JobType.d.ts +10 -0
- package/types/LLMConfig.d.ts +89 -0
- package/types/LettaAssistantMessageContentUnion.d.ts +12 -0
- package/types/LettaMessageContentUnion.d.ts +32 -0
- package/types/LettaMessageUnion.d.ts +36 -0
- package/types/LettaRequest.d.ts +30 -0
- package/types/LettaRequestConfig.d.ts +24 -0
- package/types/LettaResponse.d.ts +20 -0
- package/types/LettaStreamingRequest.d.ts +36 -0
- package/types/LettaUsageStatistics.d.ts +47 -0
- package/types/LettaUserMessageContentUnion.d.ts +12 -0
- package/types/ListActiveJobs.d.ts +19 -0
- package/types/ListActiveRuns.d.ts +26 -0
- package/types/ListAgentSources.d.ts +26 -0
- package/types/ListAgentTools.d.ts +26 -0
- package/types/ListAgents.d.ts +83 -0
- package/types/ListAgentsForBlock.d.ts +26 -0
- package/types/ListBlocks.d.ts +44 -0
- package/types/ListComposioActionsByApp.d.ts +26 -0
- package/types/ListComposioApps.d.ts +23 -0
- package/types/ListCoreMemoryBlocks.d.ts +26 -0
- package/types/ListEmbeddingModels.d.ts +14 -0
- package/types/ListGroupMessages.d.ts +61 -0
- package/types/ListGroups.d.ts +43 -0
- package/types/ListIdentities.d.ts +33 -0
- package/types/ListJobs.d.ts +26 -0
- package/types/ListMcpServers.d.ts +26 -0
- package/types/ListMcpToolsByServer.d.ts +26 -0
- package/types/ListMessages.d.ts +65 -0
- package/types/ListModels.d.ts +14 -0
- package/types/ListPassages.d.ts +50 -0
- package/types/ListProviders.d.ts +27 -0
- package/types/ListRunMessages.d.ts +53 -0
- package/types/ListRunSteps.d.ts +48 -0
- package/types/ListRuns.d.ts +26 -0
- package/types/ListSourceFiles.d.ts +39 -0
- package/types/ListSourcePassages.d.ts +26 -0
- package/types/ListSources.d.ts +19 -0
- package/types/ListSteps.d.ts +56 -0
- package/types/ListTags.d.ts +27 -0
- package/types/ListTools.d.ts +28 -0
- package/types/LocalSandboxConfig.d.ts +28 -0
- package/types/MCPServerType.d.ts +10 -0
- package/types/MCPTool.d.ts +21 -0
- package/types/ManagerType.d.ts +13 -0
- package/types/MaxCountPerStepToolRule.d.ts +24 -0
- package/types/MaxCountPerStepToolRuleSchema.d.ts +18 -0
- package/types/Memory.d.ts +21 -0
- package/types/Message.d.ts +85 -0
- package/types/MessageCreate.d.ts +32 -0
- package/types/MessageRole.d.ts +13 -0
- package/types/MessageSchema.d.ts +35 -0
- package/types/ModifyAgent.d.ts +29 -0
- package/types/ModifyBlock.d.ts +29 -0
- package/types/ModifyCoreMemoryBlock.d.ts +33 -0
- package/types/ModifyGroup.d.ts +33 -0
- package/types/ModifyGroupMessage.d.ts +42 -0
- package/types/ModifyMessage.d.ts +42 -0
- package/types/ModifyPassage.d.ts +33 -0
- package/types/ModifyProvider.d.ts +22 -0
- package/types/ModifySource.d.ts +29 -0
- package/types/ModifyTool.d.ts +29 -0
- package/types/OmittedReasoningContent.d.ts +21 -0
- package/types/OpenaiTypesChatChatCompletionMessageToolCallParamFunction.d.ts +14 -0
- package/types/OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction.d.ts +10 -0
- package/types/OpenaiTypesChatCompletionCreateParamsFunction.d.ts +20 -0
- package/types/Organization.d.ts +28 -0
- package/types/OrganizationCreate.d.ts +15 -0
- package/types/OrganizationUpdate.d.ts +15 -0
- package/types/ParameterProperties.d.ts +11 -0
- package/types/ParametersSchema.d.ts +21 -0
- package/types/ParentToolRule.d.ts +24 -0
- package/types/Passage.d.ts +71 -0
- package/types/PassageUpdate.d.ts +65 -0
- package/types/PipRequirement.d.ts +16 -0
- package/types/Provider.d.ts +23 -0
- package/types/ProviderCreate.d.ts +16 -0
- package/types/ProviderUpdate.d.ts +16 -0
- package/types/ReasoningContent.d.ts +30 -0
- package/types/ReasoningMessage.d.ts +43 -0
- package/types/RedactedReasoningContent.d.ts +21 -0
- package/types/ResetGroupMessages.d.ts +25 -0
- package/types/ResetMessages.d.ts +35 -0
- package/types/ResponseFormatJSONObject.d.ts +10 -0
- package/types/ResponseFormatJSONSchema.d.ts +15 -0
- package/types/ResponseFormatText.d.ts +10 -0
- package/types/RetrieveAgent.d.ts +26 -0
- package/types/RetrieveAgentContextWindow.d.ts +26 -0
- package/types/RetrieveAgentMemory.d.ts +26 -0
- package/types/RetrieveBlock.d.ts +26 -0
- package/types/RetrieveCoreMemoryBlock.d.ts +30 -0
- package/types/RetrieveGroup.d.ts +26 -0
- package/types/RetrieveIdentity.d.ts +26 -0
- package/types/RetrieveJob.d.ts +26 -0
- package/types/RetrieveRun.d.ts +26 -0
- package/types/RetrieveRunUsage.d.ts +26 -0
- package/types/RetrieveSource.d.ts +26 -0
- package/types/RetrieveStep.d.ts +26 -0
- package/types/RetrieveTool.d.ts +26 -0
- package/types/RoundRobinManager.d.ts +12 -0
- package/types/RoundRobinManagerUpdate.d.ts +12 -0
- package/types/Run.d.ts +56 -0
- package/types/RunToolFromSource.d.ts +22 -0
- package/types/SSEServerConfig.d.ts +21 -0
- package/types/SandboxConfig.d.ts +40 -0
- package/types/SandboxConfigCreate.d.ts +12 -0
- package/types/SandboxConfigUpdate.d.ts +15 -0
- package/types/SandboxEnvironmentVariable.d.ts +47 -0
- package/types/SandboxEnvironmentVariableCreate.d.ts +20 -0
- package/types/SandboxEnvironmentVariableUpdate.d.ts +18 -0
- package/types/SandboxType.d.ts +10 -0
- package/types/SendGroupMessage.d.ts +29 -0
- package/types/SendGroupMessageStreaming.d.ts +28 -0
- package/types/SendMessage.d.ts +29 -0
- package/types/SleeptimeManager.d.ts +16 -0
- package/types/SleeptimeManagerUpdate.d.ts +13 -0
- package/types/Source.d.ts +51 -0
- package/types/SourceCreate.d.ts +37 -0
- package/types/SourceUpdate.d.ts +28 -0
- package/types/StdioServerConfig.d.ts +32 -0
- package/types/Step.d.ts +80 -0
- package/types/SupervisorManager.d.ts +15 -0
- package/types/SupervisorManagerUpdate.d.ts +12 -0
- package/types/SystemMessage.d.ts +33 -0
- package/types/TagSchema.d.ts +10 -0
- package/types/TerminalToolRule.d.ts +19 -0
- package/types/TextContent.d.ts +21 -0
- package/types/Tool.d.ts +73 -0
- package/types/ToolCall.d.ts +18 -0
- package/types/ToolCallContent.d.ts +34 -0
- package/types/ToolCallDelta.d.ts +9 -0
- package/types/ToolCallMessage.d.ts +31 -0
- package/types/ToolCreate.d.ts +44 -0
- package/types/ToolEnvVarSchema.d.ts +23 -0
- package/types/ToolJSONSchema.d.ts +21 -0
- package/types/ToolReturn.d.ts +24 -0
- package/types/ToolReturnContent.d.ts +27 -0
- package/types/ToolReturnMessage.d.ts +47 -0
- package/types/ToolRunFromSource.d.ts +45 -0
- package/types/ToolSchema.d.ts +48 -0
- package/types/ToolType.d.ts +16 -0
- package/types/ToolUpdate.d.ts +38 -0
- package/types/UpdateAgent.d.ts +103 -0
- package/types/UpdateAssistantMessage.d.ts +16 -0
- package/types/UpdateIdentity.d.ts +29 -0
- package/types/UpdateReasoningMessage.d.ts +15 -0
- package/types/UpdateSystemMessage.d.ts +16 -0
- package/types/UpdateUserMessage.d.ts +16 -0
- package/types/UploadFileToSource.d.ts +29 -0
- package/types/UpsertIdentity.d.ts +26 -0
- package/types/UpsertIdentityProperties.d.ts +28 -0
- package/types/UpsertTool.d.ts +22 -0
- package/types/UsageStatistics.d.ts +21 -0
- package/types/User.d.ts +34 -0
- package/types/UserCreate.d.ts +11 -0
- package/types/UserMessage.d.ts +33 -0
- package/types/UserUpdate.d.ts +15 -0
- package/types/ValidationError.d.ts +18 -0
- package/types/WebSearchOptions.d.ts +18 -0
- package/types/WebSearchOptionsUserLocation.d.ts +15 -0
- package/types/WebSearchOptionsUserLocationApproximate.d.ts +22 -0
- package/types/agents/CreateTemplateFromAgent.d.ts +52 -0
- package/types/agents/GetAgentVariables.d.ts +40 -0
- package/types/agents/MigrateAgent.d.ts +90 -0
- package/types/agents/SearchDeployedAgents.d.ts +130 -0
- package/types/agents/VersionAgentTemplate.d.ts +69 -0
- package/types/agents/index.d.ts +10 -0
- package/types/clientSideAccessTokens/CreateClientSideAccessToken.d.ts +120 -0
- package/types/clientSideAccessTokens/DeleteClientSideAccessToken.d.ts +35 -0
- package/types/clientSideAccessTokens/index.d.ts +3 -0
- package/types/index.d.ts +328 -0
- package/types/templates/CreateAgentsFromTemplate.d.ts +67 -0
- package/types/templates/index.d.ts +1 -0
- package/dist/hooks/useAgentMessages/useAgentMessages.d.ts +0 -27
- package/dist/hooks/useAgentMessages/useAgentMessages.js +0 -252
- package/dist/hooks/useAgentPassages/useAgentPassages.d.ts +0 -13
- package/dist/hooks/useAgentPassages/useAgentPassages.js +0 -45
- package/dist/hooks/useAgentState/useAgentState.d.ts +0 -16
- package/dist/hooks/useAgentState/useAgentState.js +0 -63
- package/dist/hooks/useCachedState/useCachedState.d.ts +0 -2
- package/dist/hooks/useCachedState/useCachedState.js +0 -19
- package/dist/hooks/useGlobalLettaConfig/useGlobalLettaConfig.d.ts +0 -17
- package/dist/hooks/useGlobalLettaConfig/useGlobalLettaConfig.js +0 -22
- package/dist/hooks/useLettaClient/useLettaClient.d.ts +0 -2
- package/dist/hooks/useLettaClient/useLettaClient.js +0 -8
- package/dist/types.d.ts +0 -5
- package/dist/types.js +0 -1
- package/examples/view-and-send-messages/package-lock.json +0 -1020
- package/examples/view-and-send-messages/package.json +0 -15
- package/examples/view-and-send-messages/src/App.css +0 -24
- package/examples/view-and-send-messages/src/App.tsx +0 -109
- package/examples/view-and-send-messages/src/client.tsx +0 -34
- package/examples/view-and-send-messages/src/index.html +0 -13
- package/examples/view-and-send-messages/tsconfig.json +0 -21
- package/examples/view-and-send-messages/vite.config.mts +0 -6
- package/hooks/useAgentMessages/useAgentMessages.d.ts +0 -27
- package/hooks/useAgentMessages/useAgentMessages.js +0 -252
- package/hooks/useAgentPassages/useAgentPassages.d.ts +0 -13
- package/hooks/useAgentPassages/useAgentPassages.js +0 -45
- package/hooks/useAgentState/useAgentState.d.ts +0 -16
- package/hooks/useAgentState/useAgentState.js +0 -63
- package/hooks/useCachedState/useCachedState.d.ts +0 -2
- package/hooks/useCachedState/useCachedState.js +0 -19
- package/hooks/useGlobalLettaConfig/useGlobalLettaConfig.d.ts +0 -17
- package/hooks/useGlobalLettaConfig/useGlobalLettaConfig.js +0 -22
- package/hooks/useLettaClient/useLettaClient.d.ts +0 -2
- package/hooks/useLettaClient/useLettaClient.js +0 -8
- package/src/hooks/useAgentMessages/useAgentMessages.ts +0 -394
- package/src/hooks/useAgentPassages/useAgentPassages.ts +0 -51
- package/src/hooks/useAgentState/useAgentState.ts +0 -72
- package/src/hooks/useCachedState/useCachedState.ts +0 -30
- package/src/hooks/useGlobalLettaConfig/useGlobalLettaConfig.tsx +0 -49
- package/src/hooks/useLettaClient/useLettaClient.ts +0 -17
- package/src/types.ts +0 -6
- package/types.d.ts +0 -5
- package/types.js +0 -1
@@ -0,0 +1,82 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListActiveRunsQueryResponse, ListActiveRunsQueryParams, ListActiveRuns422 } from '../../types/ListActiveRuns.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listActiveRunsQueryKey = (params?: ListActiveRunsQueryParams) => [{ url: '/v1/runs/active' }, ...(params ? [params] : [])] as const
|
13
|
+
|
14
|
+
export type ListActiveRunsQueryKey = ReturnType<typeof listActiveRunsQueryKey>
|
15
|
+
|
16
|
+
/**
|
17
|
+
* @description List all active runs.
|
18
|
+
* @summary List Active Runs
|
19
|
+
* {@link /v1/runs/active}
|
20
|
+
*/
|
21
|
+
export async function listActiveRuns(params?: ListActiveRunsQueryParams, config: Partial<RequestConfig> & { client?: typeof client } = {}) {
|
22
|
+
const { client: request = client, ...requestConfig } = config
|
23
|
+
|
24
|
+
const res = await request<ListActiveRunsQueryResponse, ResponseErrorConfig<ListActiveRuns422>, unknown>({
|
25
|
+
method: 'GET',
|
26
|
+
url: `/v1/runs/active`,
|
27
|
+
params,
|
28
|
+
...requestConfig,
|
29
|
+
})
|
30
|
+
return res
|
31
|
+
}
|
32
|
+
|
33
|
+
export function listActiveRunsQueryOptions(params?: ListActiveRunsQueryParams, config: Partial<RequestConfig> & { client?: typeof client } = {}) {
|
34
|
+
const queryKey = listActiveRunsQueryKey(params)
|
35
|
+
return queryOptions<
|
36
|
+
ResponseConfig<ListActiveRunsQueryResponse>,
|
37
|
+
ResponseErrorConfig<ListActiveRuns422>,
|
38
|
+
ResponseConfig<ListActiveRunsQueryResponse>,
|
39
|
+
typeof queryKey
|
40
|
+
>({
|
41
|
+
queryKey,
|
42
|
+
queryFn: async ({ signal }) => {
|
43
|
+
config.signal = signal
|
44
|
+
return listActiveRuns(params, config)
|
45
|
+
},
|
46
|
+
})
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* @description List all active runs.
|
51
|
+
* @summary List Active Runs
|
52
|
+
* {@link /v1/runs/active}
|
53
|
+
*/
|
54
|
+
export function useListActiveRuns<
|
55
|
+
TData = ResponseConfig<ListActiveRunsQueryResponse>,
|
56
|
+
TQueryData = ResponseConfig<ListActiveRunsQueryResponse>,
|
57
|
+
TQueryKey extends QueryKey = ListActiveRunsQueryKey,
|
58
|
+
>(
|
59
|
+
params?: ListActiveRunsQueryParams,
|
60
|
+
options: {
|
61
|
+
query?: Partial<QueryObserverOptions<ResponseConfig<ListActiveRunsQueryResponse>, ResponseErrorConfig<ListActiveRuns422>, TData, TQueryData, TQueryKey>> & {
|
62
|
+
client?: QueryClient
|
63
|
+
}
|
64
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
65
|
+
} = {},
|
66
|
+
) {
|
67
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
68
|
+
const queryKey = queryOptions?.queryKey ?? listActiveRunsQueryKey(params)
|
69
|
+
|
70
|
+
const query = useQuery(
|
71
|
+
{
|
72
|
+
...(listActiveRunsQueryOptions(params, config) as unknown as QueryObserverOptions),
|
73
|
+
queryKey,
|
74
|
+
...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),
|
75
|
+
},
|
76
|
+
queryClient,
|
77
|
+
) as UseQueryResult<TData, ResponseErrorConfig<ListActiveRuns422>> & { queryKey: TQueryKey }
|
78
|
+
|
79
|
+
query.queryKey = queryKey as TQueryKey
|
80
|
+
|
81
|
+
return query
|
82
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListActiveRunsQueryResponse, ListActiveRunsQueryParams, ListActiveRuns422 } from '../../types/ListActiveRuns.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listActiveRunsSuspenseQueryKey = (params?: ListActiveRunsQueryParams) => [{ url: '/v1/runs/active' }, ...(params ? [params] : [])] as const
|
13
|
+
|
14
|
+
export type ListActiveRunsSuspenseQueryKey = ReturnType<typeof listActiveRunsSuspenseQueryKey>
|
15
|
+
|
16
|
+
/**
|
17
|
+
* @description List all active runs.
|
18
|
+
* @summary List Active Runs
|
19
|
+
* {@link /v1/runs/active}
|
20
|
+
*/
|
21
|
+
export async function listActiveRunsSuspense(params?: ListActiveRunsQueryParams, config: Partial<RequestConfig> & { client?: typeof client } = {}) {
|
22
|
+
const { client: request = client, ...requestConfig } = config
|
23
|
+
|
24
|
+
const res = await request<ListActiveRunsQueryResponse, ResponseErrorConfig<ListActiveRuns422>, unknown>({
|
25
|
+
method: 'GET',
|
26
|
+
url: `/v1/runs/active`,
|
27
|
+
params,
|
28
|
+
...requestConfig,
|
29
|
+
})
|
30
|
+
return res
|
31
|
+
}
|
32
|
+
|
33
|
+
export function listActiveRunsSuspenseQueryOptions(params?: ListActiveRunsQueryParams, config: Partial<RequestConfig> & { client?: typeof client } = {}) {
|
34
|
+
const queryKey = listActiveRunsSuspenseQueryKey(params)
|
35
|
+
return queryOptions<
|
36
|
+
ResponseConfig<ListActiveRunsQueryResponse>,
|
37
|
+
ResponseErrorConfig<ListActiveRuns422>,
|
38
|
+
ResponseConfig<ListActiveRunsQueryResponse>,
|
39
|
+
typeof queryKey
|
40
|
+
>({
|
41
|
+
queryKey,
|
42
|
+
queryFn: async ({ signal }) => {
|
43
|
+
config.signal = signal
|
44
|
+
return listActiveRunsSuspense(params, config)
|
45
|
+
},
|
46
|
+
})
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* @description List all active runs.
|
51
|
+
* @summary List Active Runs
|
52
|
+
* {@link /v1/runs/active}
|
53
|
+
*/
|
54
|
+
export function useListActiveRunsSuspense<
|
55
|
+
TData = ResponseConfig<ListActiveRunsQueryResponse>,
|
56
|
+
TQueryData = ResponseConfig<ListActiveRunsQueryResponse>,
|
57
|
+
TQueryKey extends QueryKey = ListActiveRunsSuspenseQueryKey,
|
58
|
+
>(
|
59
|
+
params?: ListActiveRunsQueryParams,
|
60
|
+
options: {
|
61
|
+
query?: Partial<UseSuspenseQueryOptions<ResponseConfig<ListActiveRunsQueryResponse>, ResponseErrorConfig<ListActiveRuns422>, TData, TQueryKey>> & {
|
62
|
+
client?: QueryClient
|
63
|
+
}
|
64
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
65
|
+
} = {},
|
66
|
+
) {
|
67
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
68
|
+
const queryKey = queryOptions?.queryKey ?? listActiveRunsSuspenseQueryKey(params)
|
69
|
+
|
70
|
+
const query = useSuspenseQuery(
|
71
|
+
{
|
72
|
+
...(listActiveRunsSuspenseQueryOptions(params, config) as unknown as UseSuspenseQueryOptions),
|
73
|
+
queryKey,
|
74
|
+
...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),
|
75
|
+
},
|
76
|
+
queryClient,
|
77
|
+
) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListActiveRuns422>> & { queryKey: TQueryKey }
|
78
|
+
|
79
|
+
query.queryKey = queryKey as TQueryKey
|
80
|
+
|
81
|
+
return query
|
82
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListRunMessagesQueryResponse, ListRunMessagesPathParams, ListRunMessagesQueryParams, ListRunMessages422 } from '../../types/ListRunMessages.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listRunMessagesQueryKey = (run_id: ListRunMessagesPathParams['run_id'], params?: ListRunMessagesQueryParams) =>
|
13
|
+
[{ url: '/v1/runs/:run_id/messages', params: { run_id: run_id } }, ...(params ? [params] : [])] as const
|
14
|
+
|
15
|
+
export type ListRunMessagesQueryKey = ReturnType<typeof listRunMessagesQueryKey>
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].
|
19
|
+
* @summary List Run Messages
|
20
|
+
* {@link /v1/runs/:run_id/messages}
|
21
|
+
*/
|
22
|
+
export async function listRunMessages(
|
23
|
+
run_id: ListRunMessagesPathParams['run_id'],
|
24
|
+
params?: ListRunMessagesQueryParams,
|
25
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
26
|
+
) {
|
27
|
+
const { client: request = client, ...requestConfig } = config
|
28
|
+
|
29
|
+
const res = await request<ListRunMessagesQueryResponse, ResponseErrorConfig<ListRunMessages422>, unknown>({
|
30
|
+
method: 'GET',
|
31
|
+
url: `/v1/runs/${run_id}/messages`,
|
32
|
+
params,
|
33
|
+
...requestConfig,
|
34
|
+
})
|
35
|
+
return res
|
36
|
+
}
|
37
|
+
|
38
|
+
export function listRunMessagesQueryOptions(
|
39
|
+
run_id: ListRunMessagesPathParams['run_id'],
|
40
|
+
params?: ListRunMessagesQueryParams,
|
41
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
42
|
+
) {
|
43
|
+
const queryKey = listRunMessagesQueryKey(run_id, params)
|
44
|
+
return queryOptions<
|
45
|
+
ResponseConfig<ListRunMessagesQueryResponse>,
|
46
|
+
ResponseErrorConfig<ListRunMessages422>,
|
47
|
+
ResponseConfig<ListRunMessagesQueryResponse>,
|
48
|
+
typeof queryKey
|
49
|
+
>({
|
50
|
+
enabled: !!run_id,
|
51
|
+
queryKey,
|
52
|
+
queryFn: async ({ signal }) => {
|
53
|
+
config.signal = signal
|
54
|
+
return listRunMessages(run_id, params, config)
|
55
|
+
},
|
56
|
+
})
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].
|
61
|
+
* @summary List Run Messages
|
62
|
+
* {@link /v1/runs/:run_id/messages}
|
63
|
+
*/
|
64
|
+
export function useListRunMessages<
|
65
|
+
TData = ResponseConfig<ListRunMessagesQueryResponse>,
|
66
|
+
TQueryData = ResponseConfig<ListRunMessagesQueryResponse>,
|
67
|
+
TQueryKey extends QueryKey = ListRunMessagesQueryKey,
|
68
|
+
>(
|
69
|
+
run_id: ListRunMessagesPathParams['run_id'],
|
70
|
+
params?: ListRunMessagesQueryParams,
|
71
|
+
options: {
|
72
|
+
query?: Partial<
|
73
|
+
QueryObserverOptions<ResponseConfig<ListRunMessagesQueryResponse>, ResponseErrorConfig<ListRunMessages422>, TData, TQueryData, TQueryKey>
|
74
|
+
> & { client?: QueryClient }
|
75
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
76
|
+
} = {},
|
77
|
+
) {
|
78
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
79
|
+
const queryKey = queryOptions?.queryKey ?? listRunMessagesQueryKey(run_id, params)
|
80
|
+
|
81
|
+
const query = useQuery(
|
82
|
+
{
|
83
|
+
...(listRunMessagesQueryOptions(run_id, params, config) as unknown as QueryObserverOptions),
|
84
|
+
queryKey,
|
85
|
+
...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),
|
86
|
+
},
|
87
|
+
queryClient,
|
88
|
+
) as UseQueryResult<TData, ResponseErrorConfig<ListRunMessages422>> & { queryKey: TQueryKey }
|
89
|
+
|
90
|
+
query.queryKey = queryKey as TQueryKey
|
91
|
+
|
92
|
+
return query
|
93
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListRunMessagesQueryResponse, ListRunMessagesPathParams, ListRunMessagesQueryParams, ListRunMessages422 } from '../../types/ListRunMessages.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listRunMessagesSuspenseQueryKey = (run_id: ListRunMessagesPathParams['run_id'], params?: ListRunMessagesQueryParams) =>
|
13
|
+
[{ url: '/v1/runs/:run_id/messages', params: { run_id: run_id } }, ...(params ? [params] : [])] as const
|
14
|
+
|
15
|
+
export type ListRunMessagesSuspenseQueryKey = ReturnType<typeof listRunMessagesSuspenseQueryKey>
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].
|
19
|
+
* @summary List Run Messages
|
20
|
+
* {@link /v1/runs/:run_id/messages}
|
21
|
+
*/
|
22
|
+
export async function listRunMessagesSuspense(
|
23
|
+
run_id: ListRunMessagesPathParams['run_id'],
|
24
|
+
params?: ListRunMessagesQueryParams,
|
25
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
26
|
+
) {
|
27
|
+
const { client: request = client, ...requestConfig } = config
|
28
|
+
|
29
|
+
const res = await request<ListRunMessagesQueryResponse, ResponseErrorConfig<ListRunMessages422>, unknown>({
|
30
|
+
method: 'GET',
|
31
|
+
url: `/v1/runs/${run_id}/messages`,
|
32
|
+
params,
|
33
|
+
...requestConfig,
|
34
|
+
})
|
35
|
+
return res
|
36
|
+
}
|
37
|
+
|
38
|
+
export function listRunMessagesSuspenseQueryOptions(
|
39
|
+
run_id: ListRunMessagesPathParams['run_id'],
|
40
|
+
params?: ListRunMessagesQueryParams,
|
41
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
42
|
+
) {
|
43
|
+
const queryKey = listRunMessagesSuspenseQueryKey(run_id, params)
|
44
|
+
return queryOptions<
|
45
|
+
ResponseConfig<ListRunMessagesQueryResponse>,
|
46
|
+
ResponseErrorConfig<ListRunMessages422>,
|
47
|
+
ResponseConfig<ListRunMessagesQueryResponse>,
|
48
|
+
typeof queryKey
|
49
|
+
>({
|
50
|
+
enabled: !!run_id,
|
51
|
+
queryKey,
|
52
|
+
queryFn: async ({ signal }) => {
|
53
|
+
config.signal = signal
|
54
|
+
return listRunMessagesSuspense(run_id, params, config)
|
55
|
+
},
|
56
|
+
})
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].
|
61
|
+
* @summary List Run Messages
|
62
|
+
* {@link /v1/runs/:run_id/messages}
|
63
|
+
*/
|
64
|
+
export function useListRunMessagesSuspense<
|
65
|
+
TData = ResponseConfig<ListRunMessagesQueryResponse>,
|
66
|
+
TQueryData = ResponseConfig<ListRunMessagesQueryResponse>,
|
67
|
+
TQueryKey extends QueryKey = ListRunMessagesSuspenseQueryKey,
|
68
|
+
>(
|
69
|
+
run_id: ListRunMessagesPathParams['run_id'],
|
70
|
+
params?: ListRunMessagesQueryParams,
|
71
|
+
options: {
|
72
|
+
query?: Partial<UseSuspenseQueryOptions<ResponseConfig<ListRunMessagesQueryResponse>, ResponseErrorConfig<ListRunMessages422>, TData, TQueryKey>> & {
|
73
|
+
client?: QueryClient
|
74
|
+
}
|
75
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
76
|
+
} = {},
|
77
|
+
) {
|
78
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
79
|
+
const queryKey = queryOptions?.queryKey ?? listRunMessagesSuspenseQueryKey(run_id, params)
|
80
|
+
|
81
|
+
const query = useSuspenseQuery(
|
82
|
+
{
|
83
|
+
...(listRunMessagesSuspenseQueryOptions(run_id, params, config) as unknown as UseSuspenseQueryOptions),
|
84
|
+
queryKey,
|
85
|
+
...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),
|
86
|
+
},
|
87
|
+
queryClient,
|
88
|
+
) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListRunMessages422>> & { queryKey: TQueryKey }
|
89
|
+
|
90
|
+
query.queryKey = queryKey as TQueryKey
|
91
|
+
|
92
|
+
return query
|
93
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListRunStepsQueryResponse, ListRunStepsPathParams, ListRunStepsQueryParams, ListRunSteps422 } from '../../types/ListRunSteps.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listRunStepsQueryKey = (run_id: ListRunStepsPathParams['run_id'], params?: ListRunStepsQueryParams) =>
|
13
|
+
[{ url: '/v1/runs/:run_id/steps', params: { run_id: run_id } }, ...(params ? [params] : [])] as const
|
14
|
+
|
15
|
+
export type ListRunStepsQueryKey = ReturnType<typeof listRunStepsQueryKey>
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.
|
19
|
+
* @summary List Run Steps
|
20
|
+
* {@link /v1/runs/:run_id/steps}
|
21
|
+
*/
|
22
|
+
export async function listRunSteps(
|
23
|
+
run_id: ListRunStepsPathParams['run_id'],
|
24
|
+
params?: ListRunStepsQueryParams,
|
25
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
26
|
+
) {
|
27
|
+
const { client: request = client, ...requestConfig } = config
|
28
|
+
|
29
|
+
const res = await request<ListRunStepsQueryResponse, ResponseErrorConfig<ListRunSteps422>, unknown>({
|
30
|
+
method: 'GET',
|
31
|
+
url: `/v1/runs/${run_id}/steps`,
|
32
|
+
params,
|
33
|
+
...requestConfig,
|
34
|
+
})
|
35
|
+
return res
|
36
|
+
}
|
37
|
+
|
38
|
+
export function listRunStepsQueryOptions(
|
39
|
+
run_id: ListRunStepsPathParams['run_id'],
|
40
|
+
params?: ListRunStepsQueryParams,
|
41
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
42
|
+
) {
|
43
|
+
const queryKey = listRunStepsQueryKey(run_id, params)
|
44
|
+
return queryOptions<
|
45
|
+
ResponseConfig<ListRunStepsQueryResponse>,
|
46
|
+
ResponseErrorConfig<ListRunSteps422>,
|
47
|
+
ResponseConfig<ListRunStepsQueryResponse>,
|
48
|
+
typeof queryKey
|
49
|
+
>({
|
50
|
+
enabled: !!run_id,
|
51
|
+
queryKey,
|
52
|
+
queryFn: async ({ signal }) => {
|
53
|
+
config.signal = signal
|
54
|
+
return listRunSteps(run_id, params, config)
|
55
|
+
},
|
56
|
+
})
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.
|
61
|
+
* @summary List Run Steps
|
62
|
+
* {@link /v1/runs/:run_id/steps}
|
63
|
+
*/
|
64
|
+
export function useListRunSteps<
|
65
|
+
TData = ResponseConfig<ListRunStepsQueryResponse>,
|
66
|
+
TQueryData = ResponseConfig<ListRunStepsQueryResponse>,
|
67
|
+
TQueryKey extends QueryKey = ListRunStepsQueryKey,
|
68
|
+
>(
|
69
|
+
run_id: ListRunStepsPathParams['run_id'],
|
70
|
+
params?: ListRunStepsQueryParams,
|
71
|
+
options: {
|
72
|
+
query?: Partial<QueryObserverOptions<ResponseConfig<ListRunStepsQueryResponse>, ResponseErrorConfig<ListRunSteps422>, TData, TQueryData, TQueryKey>> & {
|
73
|
+
client?: QueryClient
|
74
|
+
}
|
75
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
76
|
+
} = {},
|
77
|
+
) {
|
78
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
79
|
+
const queryKey = queryOptions?.queryKey ?? listRunStepsQueryKey(run_id, params)
|
80
|
+
|
81
|
+
const query = useQuery(
|
82
|
+
{
|
83
|
+
...(listRunStepsQueryOptions(run_id, params, config) as unknown as QueryObserverOptions),
|
84
|
+
queryKey,
|
85
|
+
...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),
|
86
|
+
},
|
87
|
+
queryClient,
|
88
|
+
) as UseQueryResult<TData, ResponseErrorConfig<ListRunSteps422>> & { queryKey: TQueryKey }
|
89
|
+
|
90
|
+
query.queryKey = queryKey as TQueryKey
|
91
|
+
|
92
|
+
return query
|
93
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListRunStepsQueryResponse, ListRunStepsPathParams, ListRunStepsQueryParams, ListRunSteps422 } from '../../types/ListRunSteps.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useSuspenseQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listRunStepsSuspenseQueryKey = (run_id: ListRunStepsPathParams['run_id'], params?: ListRunStepsQueryParams) =>
|
13
|
+
[{ url: '/v1/runs/:run_id/steps', params: { run_id: run_id } }, ...(params ? [params] : [])] as const
|
14
|
+
|
15
|
+
export type ListRunStepsSuspenseQueryKey = ReturnType<typeof listRunStepsSuspenseQueryKey>
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.
|
19
|
+
* @summary List Run Steps
|
20
|
+
* {@link /v1/runs/:run_id/steps}
|
21
|
+
*/
|
22
|
+
export async function listRunStepsSuspense(
|
23
|
+
run_id: ListRunStepsPathParams['run_id'],
|
24
|
+
params?: ListRunStepsQueryParams,
|
25
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
26
|
+
) {
|
27
|
+
const { client: request = client, ...requestConfig } = config
|
28
|
+
|
29
|
+
const res = await request<ListRunStepsQueryResponse, ResponseErrorConfig<ListRunSteps422>, unknown>({
|
30
|
+
method: 'GET',
|
31
|
+
url: `/v1/runs/${run_id}/steps`,
|
32
|
+
params,
|
33
|
+
...requestConfig,
|
34
|
+
})
|
35
|
+
return res
|
36
|
+
}
|
37
|
+
|
38
|
+
export function listRunStepsSuspenseQueryOptions(
|
39
|
+
run_id: ListRunStepsPathParams['run_id'],
|
40
|
+
params?: ListRunStepsQueryParams,
|
41
|
+
config: Partial<RequestConfig> & { client?: typeof client } = {},
|
42
|
+
) {
|
43
|
+
const queryKey = listRunStepsSuspenseQueryKey(run_id, params)
|
44
|
+
return queryOptions<
|
45
|
+
ResponseConfig<ListRunStepsQueryResponse>,
|
46
|
+
ResponseErrorConfig<ListRunSteps422>,
|
47
|
+
ResponseConfig<ListRunStepsQueryResponse>,
|
48
|
+
typeof queryKey
|
49
|
+
>({
|
50
|
+
enabled: !!run_id,
|
51
|
+
queryKey,
|
52
|
+
queryFn: async ({ signal }) => {
|
53
|
+
config.signal = signal
|
54
|
+
return listRunStepsSuspense(run_id, params, config)
|
55
|
+
},
|
56
|
+
})
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.
|
61
|
+
* @summary List Run Steps
|
62
|
+
* {@link /v1/runs/:run_id/steps}
|
63
|
+
*/
|
64
|
+
export function useListRunStepsSuspense<
|
65
|
+
TData = ResponseConfig<ListRunStepsQueryResponse>,
|
66
|
+
TQueryData = ResponseConfig<ListRunStepsQueryResponse>,
|
67
|
+
TQueryKey extends QueryKey = ListRunStepsSuspenseQueryKey,
|
68
|
+
>(
|
69
|
+
run_id: ListRunStepsPathParams['run_id'],
|
70
|
+
params?: ListRunStepsQueryParams,
|
71
|
+
options: {
|
72
|
+
query?: Partial<UseSuspenseQueryOptions<ResponseConfig<ListRunStepsQueryResponse>, ResponseErrorConfig<ListRunSteps422>, TData, TQueryKey>> & {
|
73
|
+
client?: QueryClient
|
74
|
+
}
|
75
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
76
|
+
} = {},
|
77
|
+
) {
|
78
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
79
|
+
const queryKey = queryOptions?.queryKey ?? listRunStepsSuspenseQueryKey(run_id, params)
|
80
|
+
|
81
|
+
const query = useSuspenseQuery(
|
82
|
+
{
|
83
|
+
...(listRunStepsSuspenseQueryOptions(run_id, params, config) as unknown as UseSuspenseQueryOptions),
|
84
|
+
queryKey,
|
85
|
+
...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),
|
86
|
+
},
|
87
|
+
queryClient,
|
88
|
+
) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListRunSteps422>> & { queryKey: TQueryKey }
|
89
|
+
|
90
|
+
query.queryKey = queryKey as TQueryKey
|
91
|
+
|
92
|
+
return query
|
93
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/**
|
2
|
+
* Generated by Kubb (https://kubb.dev/).
|
3
|
+
* Do not edit manually.
|
4
|
+
*/
|
5
|
+
|
6
|
+
import client from '@kubb/plugin-client/clients/axios'
|
7
|
+
import type { ListRunsQueryResponse, ListRunsQueryParams, ListRuns422 } from '../../types/ListRuns.ts'
|
8
|
+
import type { RequestConfig, ResponseErrorConfig, ResponseConfig } from '@kubb/plugin-client/clients/axios'
|
9
|
+
import type { QueryKey, QueryClient, QueryObserverOptions, UseQueryResult } from '@tanstack/react-query'
|
10
|
+
import { queryOptions, useQuery } from '@tanstack/react-query'
|
11
|
+
|
12
|
+
export const listRunsQueryKey = (params?: ListRunsQueryParams) => [{ url: '/v1/runs/' }, ...(params ? [params] : [])] as const
|
13
|
+
|
14
|
+
export type ListRunsQueryKey = ReturnType<typeof listRunsQueryKey>
|
15
|
+
|
16
|
+
/**
|
17
|
+
* @description List all runs.
|
18
|
+
* @summary List Runs
|
19
|
+
* {@link /v1/runs/}
|
20
|
+
*/
|
21
|
+
export async function listRuns(params?: ListRunsQueryParams, config: Partial<RequestConfig> & { client?: typeof client } = {}) {
|
22
|
+
const { client: request = client, ...requestConfig } = config
|
23
|
+
|
24
|
+
const res = await request<ListRunsQueryResponse, ResponseErrorConfig<ListRuns422>, unknown>({ method: 'GET', url: `/v1/runs/`, params, ...requestConfig })
|
25
|
+
return res
|
26
|
+
}
|
27
|
+
|
28
|
+
export function listRunsQueryOptions(params?: ListRunsQueryParams, config: Partial<RequestConfig> & { client?: typeof client } = {}) {
|
29
|
+
const queryKey = listRunsQueryKey(params)
|
30
|
+
return queryOptions<ResponseConfig<ListRunsQueryResponse>, ResponseErrorConfig<ListRuns422>, ResponseConfig<ListRunsQueryResponse>, typeof queryKey>({
|
31
|
+
queryKey,
|
32
|
+
queryFn: async ({ signal }) => {
|
33
|
+
config.signal = signal
|
34
|
+
return listRuns(params, config)
|
35
|
+
},
|
36
|
+
})
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* @description List all runs.
|
41
|
+
* @summary List Runs
|
42
|
+
* {@link /v1/runs/}
|
43
|
+
*/
|
44
|
+
export function useListRuns<
|
45
|
+
TData = ResponseConfig<ListRunsQueryResponse>,
|
46
|
+
TQueryData = ResponseConfig<ListRunsQueryResponse>,
|
47
|
+
TQueryKey extends QueryKey = ListRunsQueryKey,
|
48
|
+
>(
|
49
|
+
params?: ListRunsQueryParams,
|
50
|
+
options: {
|
51
|
+
query?: Partial<QueryObserverOptions<ResponseConfig<ListRunsQueryResponse>, ResponseErrorConfig<ListRuns422>, TData, TQueryData, TQueryKey>> & {
|
52
|
+
client?: QueryClient
|
53
|
+
}
|
54
|
+
client?: Partial<RequestConfig> & { client?: typeof client }
|
55
|
+
} = {},
|
56
|
+
) {
|
57
|
+
const { query: { client: queryClient, ...queryOptions } = {}, client: config = {} } = options ?? {}
|
58
|
+
const queryKey = queryOptions?.queryKey ?? listRunsQueryKey(params)
|
59
|
+
|
60
|
+
const query = useQuery(
|
61
|
+
{
|
62
|
+
...(listRunsQueryOptions(params, config) as unknown as QueryObserverOptions),
|
63
|
+
queryKey,
|
64
|
+
...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),
|
65
|
+
},
|
66
|
+
queryClient,
|
67
|
+
) as UseQueryResult<TData, ResponseErrorConfig<ListRuns422>> & { queryKey: TQueryKey }
|
68
|
+
|
69
|
+
query.queryKey = queryKey as TQueryKey
|
70
|
+
|
71
|
+
return query
|
72
|
+
}
|