// This file is auto-generated by @hey-api/openapi-ts import { type _JSONValue, defineQueryOptions, type UseMutationOptions } from '@pinia/colada'; import { serializeQueryKeyValue } from '../client'; import { client } from '../client.gen'; import { deleteAgentAuthorizationsById, deleteBotsByBotIdAclRulesByRuleId, deleteBotsByBotIdAcpRuntimesByRuntimeId, deleteBotsByBotIdAgentsById, deleteBotsByBotIdAgentsByIdCredential, deleteBotsByBotIdChannelManagersByChannelIdentityId, deleteBotsByBotIdCompactionLogs, deleteBotsByBotIdConnectorsByConnectionId, deleteBotsByBotIdContainer, deleteBotsByBotIdContainerBrowserSessionsBySessionId, deleteBotsByBotIdContainerDisplaySessionsBySessionId, deleteBotsByBotIdContainerSkills, deleteBotsByBotIdMcpById, deleteBotsByBotIdMcpByIdOauthToken, deleteBotsByBotIdMemory, deleteBotsByBotIdMemoryById, deleteBotsByBotIdMessages, deleteBotsByBotIdScheduleById, deleteBotsByBotIdScheduleLogs, deleteBotsByBotIdSessionsBySessionId, deleteBotsByBotIdSessionsBySessionIdFollowUpQueueByItemId, deleteBotsByBotIdSessionsBySessionIdSteerQueueByItemId, deleteBotsByBotIdSettings, deleteBotsByBotIdUserAccessByGrantId, deleteBotsByBotIdWorkdirsByWorkdirId, deleteBotsByBotIdWorkspaceTargetsByTargetId, deleteBotsById, deleteBotsByIdChannelByPlatform, deleteFetchProvidersById, deleteModelsById, deleteModelsModelByModelId, deleteProvidersById, deleteProvidersByIdOauthToken, deleteSearchProvidersById, deleteUsersById, deleteUsersMeChannelIdentitiesByChannelIdentityId, deleteUsersMeRuntimesById, getAcpProfiles, getAgentAuthorizationsById, getBots, getBotsByBotIdAclChannelIdentities, getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversations, getBotsByBotIdAclChannelTypesByChannelTypeConversations, getBotsByBotIdAclDefaultEffect, getBotsByBotIdAclRules, getBotsByBotIdAcpRuntimesByRuntimeId, getBotsByBotIdAgents, getBotsByBotIdAgentsById, getBotsByBotIdAgentsByIdCodexUsage, getBotsByBotIdAgentsByIdCredential, getBotsByBotIdAgentsByIdModels, getBotsByBotIdAgentsByIdRuntimeControls, getBotsByBotIdApps, getBotsByBotIdAppsByInstallationId, getBotsByBotIdAppsByInstallationIdRemovalPreview, getBotsByBotIdBackupSummary, getBotsByBotIdChannelManagers, getBotsByBotIdCompactionLogs, getBotsByBotIdConnectors, getBotsByBotIdConnectorsByConnectionId, getBotsByBotIdContainer, getBotsByBotIdContainerDisplay, getBotsByBotIdContainerDisplaySessions, getBotsByBotIdContainerFs, getBotsByBotIdContainerFsDownload, getBotsByBotIdContainerFsList, getBotsByBotIdContainerFsRead, getBotsByBotIdContainerMetrics, getBotsByBotIdContainerSkills, getBotsByBotIdContainerSnapshots, getBotsByBotIdContainerTerminal, getBotsByBotIdContainerTerminalWs, getBotsByBotIdDependencies, getBotsByBotIdDependenciesByDepIdScript, getBotsByBotIdHooksEvents, getBotsByBotIdMcp, getBotsByBotIdMcpById, getBotsByBotIdMcpByIdOauthStatus, getBotsByBotIdMcpOpsExport, getBotsByBotIdMemory, getBotsByBotIdMemoryGraph, getBotsByBotIdMemoryStatus, getBotsByBotIdMemoryUsage, getBotsByBotIdMessages, getBotsByBotIdMessagesLocate, getBotsByBotIdSchedule, getBotsByBotIdScheduleById, getBotsByBotIdScheduleByIdLogs, getBotsByBotIdScheduleByIdSessions, getBotsByBotIdScheduleLogs, getBotsByBotIdSessions, getBotsByBotIdSessionsBySessionId, getBotsByBotIdSessionsBySessionIdAcpRuntime, getBotsByBotIdSessionsBySessionIdContextLifecycle, getBotsByBotIdSessionsBySessionIdFollowUpQueue, getBotsByBotIdSessionsBySessionIdInvocationsByInvocationId, getBotsByBotIdSessionsBySessionIdQueue, getBotsByBotIdSessionsBySessionIdRuntimeControls, getBotsByBotIdSessionsBySessionIdRuntimeControlsGoal, getBotsByBotIdSessionsBySessionIdStatus, getBotsByBotIdSessionsBySessionIdSteerQueue, getBotsByBotIdSessionsModelPreferenceSeed, getBotsByBotIdSettings, getBotsByBotIdSkillsCatalog, getBotsByBotIdStarterPrompts, getBotsByBotIdTokenUsage, getBotsByBotIdTokenUsageRecords, getBotsByBotIdUserAccess, getBotsByBotIdUserAccessCandidates, getBotsByBotIdWebWs, getBotsByBotIdWorkdirs, getBotsByBotIdWorkdirsByWorkdirIdGitBranch, getBotsByBotIdWorkdirsDirectories, getBotsByBotIdWorkspaceTargets, getBotsById, getBotsByIdChannelByPlatform, getBotsByIdChecks, getBotsNameAvailability, getBotsUserAccessCandidates, getChannels, getChannelsByPlatform, getConnectorsCatalog, getFetchProviders, getFetchProvidersById, getFetchProvidersMeta, getMemoryConfig, getModels, getModelsById, getModelsCount, getModelsModelByModelId, getOauthMcpCallback, getPing, getProviders, getProvidersById, getProvidersByIdModels, getProvidersByIdOauthAuthorize, getProvidersByIdOauthStatus, getProvidersCount, getProvidersNameByName, getProvidersOauthCallback, getProviderTemplates, getProviderTemplatesById, getSearchProviders, getSearchProvidersById, getSearchProvidersMeta, getSiteIcon, getSpeechModels, getSpeechModelsById, getSpeechModelsByIdCapabilities, getSpeechProviders, getSpeechProvidersById, getSpeechProvidersByIdModels, getSpeechProvidersMeta, getSupermarketApps, getSupermarketArtifactsIconByDigest, getSupermarketCategories, getSupermarketRegistries, getSupermarketRegistriesByRegistryIdApps, getSupermarketRegistriesByRegistryIdAppsByAppId, getSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevision, getSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillId, getSupermarketSkills, getTranscriptionModels, getTranscriptionModelsById, getTranscriptionModelsByIdCapabilities, getTranscriptionProviders, getTranscriptionProvidersById, getTranscriptionProvidersByIdModels, getTranscriptionProvidersMeta, getUsers, getUsersById, getUsersMe, getUsersMeChannelIdentities, getUsersMeChannelsByPlatform, getUsersMeComputerAccess, getUsersMeRuntimes, getVideoModels, getVideoModelsById, getVideoProviders, getVideoProvidersById, getVideoProvidersByIdModels, getVideoProvidersMeta, getWebhookTunnelStatus, getWorkspaceDependencies, getWorkspaceDependenciesIconsByDigest, type Options, patchBotsByBotIdAcpRuntimesByRuntimeIdMode, patchBotsByBotIdAcpRuntimesByRuntimeIdModel, patchBotsByBotIdAcpRuntimesByRuntimeIdReasoning, patchBotsByBotIdAgentsById, patchBotsByBotIdConnectorsByConnectionId, patchBotsByBotIdSessionsBySessionId, patchBotsByBotIdSessionsBySessionIdAcpRuntimeMode, patchBotsByBotIdSessionsBySessionIdAcpRuntimeModel, patchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoning, patchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemId, patchBotsByBotIdSessionsBySessionIdRuntimeControlsMode, patchBotsByBotIdSessionsBySessionIdSteerQueueByItemId, patchBotsByBotIdWorkdirsByWorkdirId, patchBotsByIdChannelByPlatformStatus, postAgentAuthorizations, postAgentAuthorizationsByIdExchange, postAgentAuthorizationsByIdPoll, postAuthLogin, postAuthRefresh, postBots, postBotsBackupImport, postBotsBackupImportPreview, postBotsByBotIdAclRules, postBotsByBotIdAcpRuntimes, postBotsByBotIdAgents, postBotsByBotIdAgentsByIdCredentialClaim, postBotsByBotIdAgentsByIdLoginDeviceAuthorize, postBotsByBotIdAgentsByIdLoginDeviceCancel, postBotsByBotIdAgentsByIdLoginDevicePoll, postBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKey, postBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauth, postBotsByBotIdAppsCheckUpdates, postBotsByBotIdBackupExport, postBotsByBotIdChannelManagers, postBotsByBotIdConnectorsByConnectionIdReauth, postBotsByBotIdContainer, postBotsByBotIdContainerBrowserSessions, postBotsByBotIdContainerBrowserSessionsBySessionIdKeepalive, postBotsByBotIdContainerDataRestore, postBotsByBotIdContainerDisplayWebrtcOffer, postBotsByBotIdContainerFsArchive, postBotsByBotIdContainerFsDelete, postBotsByBotIdContainerFsExtract, postBotsByBotIdContainerFsMkdir, postBotsByBotIdContainerFsRename, postBotsByBotIdContainerFsUpload, postBotsByBotIdContainerFsWrite, postBotsByBotIdContainerRemovalCancel, postBotsByBotIdContainerSkills, postBotsByBotIdContainerSkillsActions, postBotsByBotIdContainerSnapshots, postBotsByBotIdContainerSnapshotsRollback, postBotsByBotIdContainerStart, postBotsByBotIdContainerStop, postBotsByBotIdDependenciesByDepIdRollback, postBotsByBotIdDependenciesCheckUpdates, postBotsByBotIdDependenciesPreflight, postBotsByBotIdHooksTest, postBotsByBotIdMcp, postBotsByBotIdMcpByIdOauthAuthorize, postBotsByBotIdMcpByIdOauthDiscover, postBotsByBotIdMcpByIdOauthExchange, postBotsByBotIdMcpByIdProbe, postBotsByBotIdMcpOpsBatchDelete, postBotsByBotIdMcpStdio, postBotsByBotIdMcpStdioByConnectionId, postBotsByBotIdMemory, postBotsByBotIdMemoryCompact, postBotsByBotIdMemoryIngest, postBotsByBotIdMemoryRebuild, postBotsByBotIdMemorySearch, postBotsByBotIdQuickActionsExecute, postBotsByBotIdSchedule, postBotsByBotIdSessions, postBotsByBotIdSessionsBySessionIdAcpRuntime, postBotsByBotIdSessionsBySessionIdCompact, postBotsByBotIdSessionsBySessionIdFollowUpQueue, postBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteer, postBotsByBotIdSessionsBySessionIdFork, postBotsByBotIdSessionsBySessionIdRuntimeControlsCommands, postBotsByBotIdSessionsBySessionIdRuntimeControlsGoal, postBotsByBotIdSessionsBySessionIdSteerQueue, postBotsByBotIdSettings, postBotsByBotIdStarterPromptsRefresh, postBotsByBotIdToolApprovalsByApprovalIdApprove, postBotsByBotIdToolApprovalsByApprovalIdReject, postBotsByBotIdTools, postBotsByBotIdTtsSynthesize, postBotsByBotIdUserAccess, postBotsByBotIdWebMessages, postBotsByBotIdWorkdirs, postBotsByBotIdWorkdirsByWorkdirIdGitBranch, postBotsByIdChannelByPlatformSend, postBotsByIdChannelByPlatformSendChat, postBotsByIdChannelByPlatformWebhookEndpoint, postFetchProviders, postModels, postModelsByIdTest, postProviders, postProvidersByIdImportModels, postProvidersByIdOauthPoll, postProvidersByIdTest, postProvidersFromTemplate, postSearchProviders, postSpeechModelsByIdTest, postSpeechProvidersByIdImportModels, postTranscriptionModelsByIdTest, postTranscriptionProvidersByIdImportModels, postUsers, postUsersMeChannelLinks, postUsersMeRuntimes, postVideoProvidersByIdImportModels, putBotsByBotIdAclDefaultEffect, putBotsByBotIdAclRulesByRuleId, putBotsByBotIdAgentsByIdCredential, putBotsByBotIdContainerMetrics, putBotsByBotIdMcpById, putBotsByBotIdMcpOpsImport, putBotsByBotIdMemoryByMemoryId, putBotsByBotIdScheduleById, putBotsByBotIdSessionsBySessionIdFollowUpQueueReorder, putBotsByBotIdSessionsBySessionIdSteerQueueReorder, putBotsByBotIdSettings, putBotsByBotIdUserAccessByGrantId, putBotsByBotIdWorkspaceTargetsByTargetIdToolApproval, putBotsByBotIdWorkspaceTargetsPrimary, putBotsByBotIdWorkspaceTargetsRemotesByRuntimeId, putBotsById, putBotsByIdChannelByPlatform, putBotsByIdOwner, putFetchProvidersById, putMemoryConfig, putModelsById, putModelsModelByModelId, putProvidersById, putSearchProvidersById, putSpeechModelsById, putTranscriptionModelsById, putUsersById, putUsersMe, putUsersMeChannelsByPlatform, putUsersMePassword, putVideoModelsById } from '../sdk.gen'; import type { DeleteAgentAuthorizationsByIdData, DeleteAgentAuthorizationsByIdError, DeleteBotsByBotIdAclRulesByRuleIdData, DeleteBotsByBotIdAclRulesByRuleIdError, DeleteBotsByBotIdAcpRuntimesByRuntimeIdData, DeleteBotsByBotIdAcpRuntimesByRuntimeIdError, DeleteBotsByBotIdAgentsByIdCredentialData, DeleteBotsByBotIdAgentsByIdCredentialError, DeleteBotsByBotIdAgentsByIdData, DeleteBotsByBotIdAgentsByIdError, DeleteBotsByBotIdChannelManagersByChannelIdentityIdData, DeleteBotsByBotIdChannelManagersByChannelIdentityIdError, DeleteBotsByBotIdCompactionLogsData, DeleteBotsByBotIdCompactionLogsError, DeleteBotsByBotIdConnectorsByConnectionIdData, DeleteBotsByBotIdConnectorsByConnectionIdError, DeleteBotsByBotIdContainerBrowserSessionsBySessionIdData, DeleteBotsByBotIdContainerBrowserSessionsBySessionIdError, DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerDisplaySessionsBySessionIdData, DeleteBotsByBotIdContainerDisplaySessionsBySessionIdError, DeleteBotsByBotIdContainerError, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsError, DeleteBotsByBotIdContainerSkillsResponse, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdError, DeleteBotsByBotIdMcpByIdOauthTokenData, DeleteBotsByBotIdMcpByIdOauthTokenError, DeleteBotsByBotIdMemoryByIdData, DeleteBotsByBotIdMemoryByIdError, DeleteBotsByBotIdMemoryByIdResponse, DeleteBotsByBotIdMemoryData, DeleteBotsByBotIdMemoryError, DeleteBotsByBotIdMemoryResponse, DeleteBotsByBotIdMessagesData, DeleteBotsByBotIdMessagesError, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdError, DeleteBotsByBotIdScheduleLogsData, DeleteBotsByBotIdScheduleLogsError, DeleteBotsByBotIdSessionsBySessionIdData, DeleteBotsByBotIdSessionsBySessionIdError, DeleteBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdData, DeleteBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdError, DeleteBotsByBotIdSessionsBySessionIdSteerQueueByItemIdData, DeleteBotsByBotIdSessionsBySessionIdSteerQueueByItemIdError, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsError, DeleteBotsByBotIdUserAccessByGrantIdData, DeleteBotsByBotIdUserAccessByGrantIdError, DeleteBotsByBotIdWorkdirsByWorkdirIdData, DeleteBotsByBotIdWorkdirsByWorkdirIdError, DeleteBotsByBotIdWorkspaceTargetsByTargetIdData, DeleteBotsByBotIdWorkspaceTargetsByTargetIdError, DeleteBotsByIdChannelByPlatformData, DeleteBotsByIdChannelByPlatformError, DeleteBotsByIdData, DeleteBotsByIdError, DeleteBotsByIdResponse, DeleteFetchProvidersByIdData, DeleteFetchProvidersByIdError, DeleteModelsByIdData, DeleteModelsByIdError, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdError, DeleteProvidersByIdData, DeleteProvidersByIdError, DeleteProvidersByIdOauthTokenData, DeleteProvidersByIdOauthTokenError, DeleteSearchProvidersByIdData, DeleteSearchProvidersByIdError, DeleteUsersByIdData, DeleteUsersByIdError, DeleteUsersMeChannelIdentitiesByChannelIdentityIdData, DeleteUsersMeChannelIdentitiesByChannelIdentityIdError, DeleteUsersMeRuntimesByIdData, DeleteUsersMeRuntimesByIdError, GetAcpProfilesData, GetAcpProfilesResponse, GetAgentAuthorizationsByIdData, GetAgentAuthorizationsByIdError, GetAgentAuthorizationsByIdResponse, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsData, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsError, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsResponse, GetBotsByBotIdAclChannelIdentitiesData, GetBotsByBotIdAclChannelIdentitiesError, GetBotsByBotIdAclChannelIdentitiesResponse, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsData, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsError, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsResponse, GetBotsByBotIdAclDefaultEffectData, GetBotsByBotIdAclDefaultEffectError, GetBotsByBotIdAclDefaultEffectResponse, GetBotsByBotIdAclRulesData, GetBotsByBotIdAclRulesError, GetBotsByBotIdAclRulesResponse, GetBotsByBotIdAcpRuntimesByRuntimeIdData, GetBotsByBotIdAcpRuntimesByRuntimeIdError, GetBotsByBotIdAcpRuntimesByRuntimeIdResponse, GetBotsByBotIdAgentsByIdCodexUsageData, GetBotsByBotIdAgentsByIdCodexUsageError, GetBotsByBotIdAgentsByIdCodexUsageResponse, GetBotsByBotIdAgentsByIdCredentialData, GetBotsByBotIdAgentsByIdCredentialError, GetBotsByBotIdAgentsByIdCredentialResponse, GetBotsByBotIdAgentsByIdData, GetBotsByBotIdAgentsByIdError, GetBotsByBotIdAgentsByIdModelsData, GetBotsByBotIdAgentsByIdModelsError, GetBotsByBotIdAgentsByIdModelsResponse, GetBotsByBotIdAgentsByIdResponse, GetBotsByBotIdAgentsByIdRuntimeControlsData, GetBotsByBotIdAgentsByIdRuntimeControlsError, GetBotsByBotIdAgentsByIdRuntimeControlsResponse, GetBotsByBotIdAgentsData, GetBotsByBotIdAgentsError, GetBotsByBotIdAgentsResponse, GetBotsByBotIdAppsByInstallationIdData, GetBotsByBotIdAppsByInstallationIdError, GetBotsByBotIdAppsByInstallationIdRemovalPreviewData, GetBotsByBotIdAppsByInstallationIdRemovalPreviewError, GetBotsByBotIdAppsByInstallationIdRemovalPreviewResponse, GetBotsByBotIdAppsByInstallationIdResponse, GetBotsByBotIdAppsData, GetBotsByBotIdAppsError, GetBotsByBotIdAppsResponse, GetBotsByBotIdBackupSummaryData, GetBotsByBotIdBackupSummaryError, GetBotsByBotIdBackupSummaryResponse, GetBotsByBotIdChannelManagersData, GetBotsByBotIdChannelManagersError, GetBotsByBotIdChannelManagersResponse, GetBotsByBotIdCompactionLogsData, GetBotsByBotIdCompactionLogsError, GetBotsByBotIdCompactionLogsResponse, GetBotsByBotIdConnectorsByConnectionIdData, GetBotsByBotIdConnectorsByConnectionIdError, GetBotsByBotIdConnectorsByConnectionIdResponse, GetBotsByBotIdConnectorsData, GetBotsByBotIdConnectorsError, GetBotsByBotIdConnectorsResponse, GetBotsByBotIdContainerData, GetBotsByBotIdContainerDisplayData, GetBotsByBotIdContainerDisplayError, GetBotsByBotIdContainerDisplayResponse, GetBotsByBotIdContainerDisplaySessionsData, GetBotsByBotIdContainerDisplaySessionsError, GetBotsByBotIdContainerDisplaySessionsResponse, GetBotsByBotIdContainerError, GetBotsByBotIdContainerFsData, GetBotsByBotIdContainerFsDownloadData, GetBotsByBotIdContainerFsDownloadError, GetBotsByBotIdContainerFsError, GetBotsByBotIdContainerFsListData, GetBotsByBotIdContainerFsListError, GetBotsByBotIdContainerFsListResponse, GetBotsByBotIdContainerFsReadData, GetBotsByBotIdContainerFsReadError, GetBotsByBotIdContainerFsReadResponse, GetBotsByBotIdContainerFsResponse, GetBotsByBotIdContainerMetricsData, GetBotsByBotIdContainerMetricsError, GetBotsByBotIdContainerMetricsResponse, GetBotsByBotIdContainerResponse, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSkillsError, GetBotsByBotIdContainerSkillsResponse, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdContainerSnapshotsError, GetBotsByBotIdContainerSnapshotsResponse, GetBotsByBotIdContainerTerminalData, GetBotsByBotIdContainerTerminalError, GetBotsByBotIdContainerTerminalResponse, GetBotsByBotIdContainerTerminalWsData, GetBotsByBotIdContainerTerminalWsError, GetBotsByBotIdDependenciesByDepIdScriptData, GetBotsByBotIdDependenciesByDepIdScriptError, GetBotsByBotIdDependenciesByDepIdScriptResponse, GetBotsByBotIdDependenciesData, GetBotsByBotIdDependenciesError, GetBotsByBotIdDependenciesResponse, GetBotsByBotIdHooksEventsData, GetBotsByBotIdHooksEventsError, GetBotsByBotIdHooksEventsResponse, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpByIdError, GetBotsByBotIdMcpByIdOauthStatusData, GetBotsByBotIdMcpByIdOauthStatusError, GetBotsByBotIdMcpByIdOauthStatusResponse, GetBotsByBotIdMcpByIdResponse, GetBotsByBotIdMcpData, GetBotsByBotIdMcpError, GetBotsByBotIdMcpOpsExportData, GetBotsByBotIdMcpOpsExportError, GetBotsByBotIdMcpOpsExportResponse, GetBotsByBotIdMcpResponse, GetBotsByBotIdMemoryData, GetBotsByBotIdMemoryError, GetBotsByBotIdMemoryGraphData, GetBotsByBotIdMemoryGraphError, GetBotsByBotIdMemoryGraphResponse, GetBotsByBotIdMemoryResponse, GetBotsByBotIdMemoryStatusData, GetBotsByBotIdMemoryStatusError, GetBotsByBotIdMemoryStatusResponse, GetBotsByBotIdMemoryUsageData, GetBotsByBotIdMemoryUsageError, GetBotsByBotIdMemoryUsageResponse, GetBotsByBotIdMessagesData, GetBotsByBotIdMessagesError, GetBotsByBotIdMessagesLocateData, GetBotsByBotIdMessagesLocateError, GetBotsByBotIdMessagesLocateResponse, GetBotsByBotIdMessagesResponse, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleByIdError, GetBotsByBotIdScheduleByIdLogsData, GetBotsByBotIdScheduleByIdLogsError, GetBotsByBotIdScheduleByIdLogsResponse, GetBotsByBotIdScheduleByIdResponse, GetBotsByBotIdScheduleByIdSessionsData, GetBotsByBotIdScheduleByIdSessionsError, GetBotsByBotIdScheduleByIdSessionsResponse, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleError, GetBotsByBotIdScheduleLogsData, GetBotsByBotIdScheduleLogsError, GetBotsByBotIdScheduleLogsResponse, GetBotsByBotIdScheduleResponse, GetBotsByBotIdSessionsBySessionIdAcpRuntimeData, GetBotsByBotIdSessionsBySessionIdAcpRuntimeError, GetBotsByBotIdSessionsBySessionIdAcpRuntimeResponse, GetBotsByBotIdSessionsBySessionIdContextLifecycleData, GetBotsByBotIdSessionsBySessionIdContextLifecycleError, GetBotsByBotIdSessionsBySessionIdContextLifecycleResponse, GetBotsByBotIdSessionsBySessionIdData, GetBotsByBotIdSessionsBySessionIdError, GetBotsByBotIdSessionsBySessionIdFollowUpQueueData, GetBotsByBotIdSessionsBySessionIdFollowUpQueueError, GetBotsByBotIdSessionsBySessionIdFollowUpQueueResponse, GetBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdData, GetBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdError, GetBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdResponse, GetBotsByBotIdSessionsBySessionIdQueueData, GetBotsByBotIdSessionsBySessionIdQueueError, GetBotsByBotIdSessionsBySessionIdQueueResponse, GetBotsByBotIdSessionsBySessionIdResponse, GetBotsByBotIdSessionsBySessionIdRuntimeControlsData, GetBotsByBotIdSessionsBySessionIdRuntimeControlsError, GetBotsByBotIdSessionsBySessionIdRuntimeControlsGoalData, GetBotsByBotIdSessionsBySessionIdRuntimeControlsGoalError, GetBotsByBotIdSessionsBySessionIdRuntimeControlsGoalResponse, GetBotsByBotIdSessionsBySessionIdRuntimeControlsResponse, GetBotsByBotIdSessionsBySessionIdStatusData, GetBotsByBotIdSessionsBySessionIdStatusError, GetBotsByBotIdSessionsBySessionIdStatusResponse, GetBotsByBotIdSessionsBySessionIdSteerQueueData, GetBotsByBotIdSessionsBySessionIdSteerQueueError, GetBotsByBotIdSessionsBySessionIdSteerQueueResponse, GetBotsByBotIdSessionsData, GetBotsByBotIdSessionsError, GetBotsByBotIdSessionsModelPreferenceSeedData, GetBotsByBotIdSessionsModelPreferenceSeedError, GetBotsByBotIdSessionsModelPreferenceSeedResponse, GetBotsByBotIdSessionsResponse, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsError, GetBotsByBotIdSettingsResponse, GetBotsByBotIdSkillsCatalogData, GetBotsByBotIdSkillsCatalogError, GetBotsByBotIdSkillsCatalogResponse, GetBotsByBotIdStarterPromptsData, GetBotsByBotIdStarterPromptsError, GetBotsByBotIdStarterPromptsResponse, GetBotsByBotIdTokenUsageData, GetBotsByBotIdTokenUsageError, GetBotsByBotIdTokenUsageRecordsData, GetBotsByBotIdTokenUsageRecordsError, GetBotsByBotIdTokenUsageRecordsResponse, GetBotsByBotIdTokenUsageResponse, GetBotsByBotIdUserAccessCandidatesData, GetBotsByBotIdUserAccessCandidatesError, GetBotsByBotIdUserAccessCandidatesResponse, GetBotsByBotIdUserAccessData, GetBotsByBotIdUserAccessError, GetBotsByBotIdUserAccessResponse, GetBotsByBotIdWebWsData, GetBotsByBotIdWebWsError, GetBotsByBotIdWorkdirsByWorkdirIdGitBranchData, GetBotsByBotIdWorkdirsByWorkdirIdGitBranchError, GetBotsByBotIdWorkdirsByWorkdirIdGitBranchResponse, GetBotsByBotIdWorkdirsData, GetBotsByBotIdWorkdirsDirectoriesData, GetBotsByBotIdWorkdirsDirectoriesError, GetBotsByBotIdWorkdirsDirectoriesResponse, GetBotsByBotIdWorkdirsError, GetBotsByBotIdWorkdirsResponse, GetBotsByBotIdWorkspaceTargetsData, GetBotsByBotIdWorkspaceTargetsError, GetBotsByBotIdWorkspaceTargetsResponse, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformError, GetBotsByIdChannelByPlatformResponse, GetBotsByIdChecksData, GetBotsByIdChecksError, GetBotsByIdChecksResponse, GetBotsByIdData, GetBotsByIdError, GetBotsByIdResponse, GetBotsData, GetBotsError, GetBotsNameAvailabilityData, GetBotsNameAvailabilityError, GetBotsNameAvailabilityResponse, GetBotsResponse, GetBotsUserAccessCandidatesData, GetBotsUserAccessCandidatesError, GetBotsUserAccessCandidatesResponse, GetChannelsByPlatformData, GetChannelsByPlatformError, GetChannelsByPlatformResponse, GetChannelsData, GetChannelsError, GetChannelsResponse, GetConnectorsCatalogData, GetConnectorsCatalogError, GetConnectorsCatalogResponse, GetFetchProvidersByIdData, GetFetchProvidersByIdError, GetFetchProvidersByIdResponse, GetFetchProvidersData, GetFetchProvidersError, GetFetchProvidersMetaData, GetFetchProvidersMetaResponse, GetFetchProvidersResponse, GetMemoryConfigData, GetMemoryConfigError, GetMemoryConfigResponse, GetModelsByIdData, GetModelsByIdError, GetModelsByIdResponse, GetModelsCountData, GetModelsCountError, GetModelsCountResponse, GetModelsData, GetModelsError, GetModelsModelByModelIdData, GetModelsModelByModelIdError, GetModelsModelByModelIdResponse, GetModelsResponse, GetOauthMcpCallbackData, GetOauthMcpCallbackError, GetOauthMcpCallbackResponse, GetPingData, GetPingResponse, GetProvidersByIdData, GetProvidersByIdError, GetProvidersByIdModelsData, GetProvidersByIdModelsError, GetProvidersByIdModelsResponse, GetProvidersByIdOauthAuthorizeData, GetProvidersByIdOauthAuthorizeError, GetProvidersByIdOauthAuthorizeResponse, GetProvidersByIdOauthStatusData, GetProvidersByIdOauthStatusError, GetProvidersByIdOauthStatusResponse, GetProvidersByIdResponse, GetProvidersCountData, GetProvidersCountError, GetProvidersCountResponse, GetProvidersData, GetProvidersError, GetProvidersNameByNameData, GetProvidersNameByNameError, GetProvidersNameByNameResponse, GetProvidersOauthCallbackData, GetProvidersOauthCallbackError, GetProvidersOauthCallbackResponse, GetProvidersResponse, GetProviderTemplatesByIdData, GetProviderTemplatesByIdError, GetProviderTemplatesByIdResponse, GetProviderTemplatesData, GetProviderTemplatesError, GetProviderTemplatesResponse, GetSearchProvidersByIdData, GetSearchProvidersByIdError, GetSearchProvidersByIdResponse, GetSearchProvidersData, GetSearchProvidersError, GetSearchProvidersMetaData, GetSearchProvidersMetaResponse, GetSearchProvidersResponse, GetSiteIconData, GetSiteIconResponse, GetSpeechModelsByIdCapabilitiesData, GetSpeechModelsByIdCapabilitiesError, GetSpeechModelsByIdCapabilitiesResponse, GetSpeechModelsByIdData, GetSpeechModelsByIdError, GetSpeechModelsByIdResponse, GetSpeechModelsData, GetSpeechModelsError, GetSpeechModelsResponse, GetSpeechProvidersByIdData, GetSpeechProvidersByIdError, GetSpeechProvidersByIdModelsData, GetSpeechProvidersByIdModelsError, GetSpeechProvidersByIdModelsResponse, GetSpeechProvidersByIdResponse, GetSpeechProvidersData, GetSpeechProvidersError, GetSpeechProvidersMetaData, GetSpeechProvidersMetaResponse, GetSpeechProvidersResponse, GetSupermarketAppsData, GetSupermarketAppsError, GetSupermarketAppsResponse, GetSupermarketArtifactsIconByDigestData, GetSupermarketArtifactsIconByDigestError, GetSupermarketCategoriesData, GetSupermarketCategoriesError, GetSupermarketCategoriesResponse, GetSupermarketRegistriesByRegistryIdAppsByAppIdData, GetSupermarketRegistriesByRegistryIdAppsByAppIdError, GetSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionData, GetSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionError, GetSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionResponse, GetSupermarketRegistriesByRegistryIdAppsByAppIdResponse, GetSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdData, GetSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdError, GetSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdResponse, GetSupermarketRegistriesByRegistryIdAppsData, GetSupermarketRegistriesByRegistryIdAppsError, GetSupermarketRegistriesByRegistryIdAppsResponse, GetSupermarketRegistriesData, GetSupermarketRegistriesError, GetSupermarketRegistriesResponse, GetSupermarketSkillsData, GetSupermarketSkillsError, GetSupermarketSkillsResponse, GetTranscriptionModelsByIdCapabilitiesData, GetTranscriptionModelsByIdCapabilitiesError, GetTranscriptionModelsByIdCapabilitiesResponse, GetTranscriptionModelsByIdData, GetTranscriptionModelsByIdError, GetTranscriptionModelsByIdResponse, GetTranscriptionModelsData, GetTranscriptionModelsError, GetTranscriptionModelsResponse, GetTranscriptionProvidersByIdData, GetTranscriptionProvidersByIdError, GetTranscriptionProvidersByIdModelsData, GetTranscriptionProvidersByIdModelsError, GetTranscriptionProvidersByIdModelsResponse, GetTranscriptionProvidersByIdResponse, GetTranscriptionProvidersData, GetTranscriptionProvidersError, GetTranscriptionProvidersMetaData, GetTranscriptionProvidersMetaResponse, GetTranscriptionProvidersResponse, GetUsersByIdData, GetUsersByIdError, GetUsersByIdResponse, GetUsersData, GetUsersError, GetUsersMeChannelIdentitiesData, GetUsersMeChannelIdentitiesError, GetUsersMeChannelIdentitiesResponse, GetUsersMeChannelsByPlatformData, GetUsersMeChannelsByPlatformError, GetUsersMeChannelsByPlatformResponse, GetUsersMeComputerAccessData, GetUsersMeComputerAccessError, GetUsersMeComputerAccessResponse, GetUsersMeData, GetUsersMeError, GetUsersMeResponse, GetUsersMeRuntimesData, GetUsersMeRuntimesError, GetUsersMeRuntimesResponse, GetUsersResponse, GetVideoModelsByIdData, GetVideoModelsByIdError, GetVideoModelsByIdResponse, GetVideoModelsData, GetVideoModelsError, GetVideoModelsResponse, GetVideoProvidersByIdData, GetVideoProvidersByIdError, GetVideoProvidersByIdModelsData, GetVideoProvidersByIdModelsError, GetVideoProvidersByIdModelsResponse, GetVideoProvidersByIdResponse, GetVideoProvidersData, GetVideoProvidersError, GetVideoProvidersMetaData, GetVideoProvidersMetaResponse, GetVideoProvidersResponse, GetWebhookTunnelStatusData, GetWebhookTunnelStatusResponse, GetWorkspaceDependenciesData, GetWorkspaceDependenciesError, GetWorkspaceDependenciesIconsByDigestData, GetWorkspaceDependenciesIconsByDigestError, GetWorkspaceDependenciesResponse, PatchBotsByBotIdAcpRuntimesByRuntimeIdModeData, PatchBotsByBotIdAcpRuntimesByRuntimeIdModeError, PatchBotsByBotIdAcpRuntimesByRuntimeIdModelData, PatchBotsByBotIdAcpRuntimesByRuntimeIdModelError, PatchBotsByBotIdAcpRuntimesByRuntimeIdModelResponse, PatchBotsByBotIdAcpRuntimesByRuntimeIdModeResponse, PatchBotsByBotIdAcpRuntimesByRuntimeIdReasoningData, PatchBotsByBotIdAcpRuntimesByRuntimeIdReasoningError, PatchBotsByBotIdAcpRuntimesByRuntimeIdReasoningResponse, PatchBotsByBotIdAgentsByIdData, PatchBotsByBotIdAgentsByIdError, PatchBotsByBotIdAgentsByIdResponse, PatchBotsByBotIdConnectorsByConnectionIdData, PatchBotsByBotIdConnectorsByConnectionIdError, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModeData, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModeError, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModelData, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModelError, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModelResponse, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModeResponse, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoningData, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoningError, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoningResponse, PatchBotsByBotIdSessionsBySessionIdData, PatchBotsByBotIdSessionsBySessionIdError, PatchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdData, PatchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdError, PatchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdResponse, PatchBotsByBotIdSessionsBySessionIdResponse, PatchBotsByBotIdSessionsBySessionIdRuntimeControlsModeData, PatchBotsByBotIdSessionsBySessionIdRuntimeControlsModeError, PatchBotsByBotIdSessionsBySessionIdRuntimeControlsModeResponse, PatchBotsByBotIdSessionsBySessionIdSteerQueueByItemIdData, PatchBotsByBotIdSessionsBySessionIdSteerQueueByItemIdError, PatchBotsByBotIdSessionsBySessionIdSteerQueueByItemIdResponse, PatchBotsByBotIdWorkdirsByWorkdirIdData, PatchBotsByBotIdWorkdirsByWorkdirIdError, PatchBotsByBotIdWorkdirsByWorkdirIdResponse, PatchBotsByIdChannelByPlatformStatusData, PatchBotsByIdChannelByPlatformStatusError, PatchBotsByIdChannelByPlatformStatusResponse, PostAgentAuthorizationsByIdExchangeData, PostAgentAuthorizationsByIdExchangeError, PostAgentAuthorizationsByIdExchangeResponse, PostAgentAuthorizationsByIdPollData, PostAgentAuthorizationsByIdPollError, PostAgentAuthorizationsByIdPollResponse, PostAgentAuthorizationsData, PostAgentAuthorizationsError, PostAgentAuthorizationsResponse, PostAuthLoginData, PostAuthLoginError, PostAuthLoginResponse, PostAuthRefreshData, PostAuthRefreshError, PostAuthRefreshResponse, PostBotsBackupImportData, PostBotsBackupImportError, PostBotsBackupImportPreviewData, PostBotsBackupImportPreviewError, PostBotsBackupImportPreviewResponse, PostBotsBackupImportResponse, PostBotsByBotIdAclRulesData, PostBotsByBotIdAclRulesError, PostBotsByBotIdAclRulesResponse, PostBotsByBotIdAcpRuntimesData, PostBotsByBotIdAcpRuntimesError, PostBotsByBotIdAcpRuntimesResponse, PostBotsByBotIdAgentsByIdCredentialClaimData, PostBotsByBotIdAgentsByIdCredentialClaimError, PostBotsByBotIdAgentsByIdCredentialClaimResponse, PostBotsByBotIdAgentsByIdLoginDeviceAuthorizeData, PostBotsByBotIdAgentsByIdLoginDeviceAuthorizeError, PostBotsByBotIdAgentsByIdLoginDeviceAuthorizeResponse, PostBotsByBotIdAgentsByIdLoginDeviceCancelData, PostBotsByBotIdAgentsByIdLoginDeviceCancelError, PostBotsByBotIdAgentsByIdLoginDevicePollData, PostBotsByBotIdAgentsByIdLoginDevicePollError, PostBotsByBotIdAgentsByIdLoginDevicePollResponse, PostBotsByBotIdAgentsData, PostBotsByBotIdAgentsError, PostBotsByBotIdAgentsResponse, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKeyData, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKeyError, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKeyResponse, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauthData, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauthError, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauthResponse, PostBotsByBotIdAppsCheckUpdatesData, PostBotsByBotIdAppsCheckUpdatesError, PostBotsByBotIdAppsCheckUpdatesResponse, PostBotsByBotIdBackupExportData, PostBotsByBotIdBackupExportError, PostBotsByBotIdChannelManagersData, PostBotsByBotIdChannelManagersError, PostBotsByBotIdConnectorsByConnectionIdReauthData, PostBotsByBotIdConnectorsByConnectionIdReauthError, PostBotsByBotIdConnectorsByConnectionIdReauthResponse, PostBotsByBotIdContainerBrowserSessionsBySessionIdKeepaliveData, PostBotsByBotIdContainerBrowserSessionsBySessionIdKeepaliveError, PostBotsByBotIdContainerBrowserSessionsBySessionIdKeepaliveResponse, PostBotsByBotIdContainerBrowserSessionsData, PostBotsByBotIdContainerBrowserSessionsError, PostBotsByBotIdContainerBrowserSessionsResponse, PostBotsByBotIdContainerData, PostBotsByBotIdContainerDataRestoreData, PostBotsByBotIdContainerDataRestoreError, PostBotsByBotIdContainerDataRestoreResponse, PostBotsByBotIdContainerDisplayWebrtcOfferData, PostBotsByBotIdContainerDisplayWebrtcOfferError, PostBotsByBotIdContainerDisplayWebrtcOfferResponse, PostBotsByBotIdContainerError, PostBotsByBotIdContainerFsArchiveData, PostBotsByBotIdContainerFsArchiveError, PostBotsByBotIdContainerFsDeleteData, PostBotsByBotIdContainerFsDeleteError, PostBotsByBotIdContainerFsDeleteResponse, PostBotsByBotIdContainerFsExtractData, PostBotsByBotIdContainerFsExtractError, PostBotsByBotIdContainerFsExtractResponse, PostBotsByBotIdContainerFsMkdirData, PostBotsByBotIdContainerFsMkdirError, PostBotsByBotIdContainerFsMkdirResponse, PostBotsByBotIdContainerFsRenameData, PostBotsByBotIdContainerFsRenameError, PostBotsByBotIdContainerFsRenameResponse, PostBotsByBotIdContainerFsUploadData, PostBotsByBotIdContainerFsUploadError, PostBotsByBotIdContainerFsUploadResponse, PostBotsByBotIdContainerFsWriteData, PostBotsByBotIdContainerFsWriteError, PostBotsByBotIdContainerFsWriteResponse, PostBotsByBotIdContainerRemovalCancelData, PostBotsByBotIdContainerRemovalCancelError, PostBotsByBotIdContainerResponse, PostBotsByBotIdContainerSkillsActionsData, PostBotsByBotIdContainerSkillsActionsError, PostBotsByBotIdContainerSkillsActionsResponse, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsError, PostBotsByBotIdContainerSkillsResponse, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsError, PostBotsByBotIdContainerSnapshotsResponse, PostBotsByBotIdContainerSnapshotsRollbackData, PostBotsByBotIdContainerSnapshotsRollbackError, PostBotsByBotIdContainerSnapshotsRollbackResponse, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartError, PostBotsByBotIdContainerStartResponse, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopError, PostBotsByBotIdContainerStopResponse, PostBotsByBotIdDependenciesByDepIdRollbackData, PostBotsByBotIdDependenciesByDepIdRollbackError, PostBotsByBotIdDependenciesByDepIdRollbackResponse, PostBotsByBotIdDependenciesCheckUpdatesData, PostBotsByBotIdDependenciesCheckUpdatesError, PostBotsByBotIdDependenciesCheckUpdatesResponse, PostBotsByBotIdDependenciesPreflightData, PostBotsByBotIdDependenciesPreflightError, PostBotsByBotIdDependenciesPreflightResponse, PostBotsByBotIdHooksTestData, PostBotsByBotIdHooksTestError, PostBotsByBotIdHooksTestResponse, PostBotsByBotIdMcpByIdOauthAuthorizeData, PostBotsByBotIdMcpByIdOauthAuthorizeError, PostBotsByBotIdMcpByIdOauthAuthorizeResponse, PostBotsByBotIdMcpByIdOauthDiscoverData, PostBotsByBotIdMcpByIdOauthDiscoverError, PostBotsByBotIdMcpByIdOauthDiscoverResponse, PostBotsByBotIdMcpByIdOauthExchangeData, PostBotsByBotIdMcpByIdOauthExchangeError, PostBotsByBotIdMcpByIdOauthExchangeResponse, PostBotsByBotIdMcpByIdProbeData, PostBotsByBotIdMcpByIdProbeError, PostBotsByBotIdMcpByIdProbeResponse, PostBotsByBotIdMcpData, PostBotsByBotIdMcpError, PostBotsByBotIdMcpOpsBatchDeleteData, PostBotsByBotIdMcpOpsBatchDeleteError, PostBotsByBotIdMcpResponse, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdError, PostBotsByBotIdMcpStdioByConnectionIdResponse, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioError, PostBotsByBotIdMcpStdioResponse, PostBotsByBotIdMemoryCompactData, PostBotsByBotIdMemoryCompactError, PostBotsByBotIdMemoryCompactResponse, PostBotsByBotIdMemoryData, PostBotsByBotIdMemoryError, PostBotsByBotIdMemoryIngestData, PostBotsByBotIdMemoryIngestError, PostBotsByBotIdMemoryIngestResponse, PostBotsByBotIdMemoryRebuildData, PostBotsByBotIdMemoryRebuildError, PostBotsByBotIdMemoryRebuildResponse, PostBotsByBotIdMemoryResponse, PostBotsByBotIdMemorySearchData, PostBotsByBotIdMemorySearchError, PostBotsByBotIdMemorySearchResponse, PostBotsByBotIdQuickActionsExecuteData, PostBotsByBotIdQuickActionsExecuteError, PostBotsByBotIdQuickActionsExecuteResponse, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleError, PostBotsByBotIdScheduleResponse, PostBotsByBotIdSessionsBySessionIdAcpRuntimeData, PostBotsByBotIdSessionsBySessionIdAcpRuntimeError, PostBotsByBotIdSessionsBySessionIdAcpRuntimeResponse, PostBotsByBotIdSessionsBySessionIdCompactData, PostBotsByBotIdSessionsBySessionIdCompactError, PostBotsByBotIdSessionsBySessionIdCompactResponse, PostBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteerData, PostBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteerError, PostBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteerResponse, PostBotsByBotIdSessionsBySessionIdFollowUpQueueData, PostBotsByBotIdSessionsBySessionIdFollowUpQueueError, PostBotsByBotIdSessionsBySessionIdFollowUpQueueResponse, PostBotsByBotIdSessionsBySessionIdForkData, PostBotsByBotIdSessionsBySessionIdForkError, PostBotsByBotIdSessionsBySessionIdForkResponse, PostBotsByBotIdSessionsBySessionIdRuntimeControlsCommandsData, PostBotsByBotIdSessionsBySessionIdRuntimeControlsCommandsError, PostBotsByBotIdSessionsBySessionIdRuntimeControlsCommandsResponse, PostBotsByBotIdSessionsBySessionIdRuntimeControlsGoalData, PostBotsByBotIdSessionsBySessionIdRuntimeControlsGoalError, PostBotsByBotIdSessionsBySessionIdSteerQueueData, PostBotsByBotIdSessionsBySessionIdSteerQueueError, PostBotsByBotIdSessionsBySessionIdSteerQueueResponse, PostBotsByBotIdSessionsData, PostBotsByBotIdSessionsError, PostBotsByBotIdSessionsResponse, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsError, PostBotsByBotIdSettingsResponse, PostBotsByBotIdStarterPromptsRefreshData, PostBotsByBotIdStarterPromptsRefreshError, PostBotsByBotIdStarterPromptsRefreshResponse, PostBotsByBotIdToolApprovalsByApprovalIdApproveData, PostBotsByBotIdToolApprovalsByApprovalIdApproveError, PostBotsByBotIdToolApprovalsByApprovalIdApproveResponse, PostBotsByBotIdToolApprovalsByApprovalIdRejectData, PostBotsByBotIdToolApprovalsByApprovalIdRejectError, PostBotsByBotIdToolApprovalsByApprovalIdRejectResponse, PostBotsByBotIdToolsData, PostBotsByBotIdToolsError, PostBotsByBotIdToolsResponse, PostBotsByBotIdTtsSynthesizeData, PostBotsByBotIdTtsSynthesizeError, PostBotsByBotIdTtsSynthesizeResponse, PostBotsByBotIdUserAccessData, PostBotsByBotIdUserAccessError, PostBotsByBotIdUserAccessResponse, PostBotsByBotIdWebMessagesData, PostBotsByBotIdWebMessagesError, PostBotsByBotIdWebMessagesResponse, PostBotsByBotIdWorkdirsByWorkdirIdGitBranchData, PostBotsByBotIdWorkdirsByWorkdirIdGitBranchError, PostBotsByBotIdWorkdirsByWorkdirIdGitBranchResponse, PostBotsByBotIdWorkdirsData, PostBotsByBotIdWorkdirsError, PostBotsByBotIdWorkdirsResponse, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatError, PostBotsByIdChannelByPlatformSendChatResponse, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendError, PostBotsByIdChannelByPlatformSendResponse, PostBotsByIdChannelByPlatformWebhookEndpointData, PostBotsByIdChannelByPlatformWebhookEndpointError, PostBotsByIdChannelByPlatformWebhookEndpointResponse, PostBotsData, PostBotsError, PostBotsResponse, PostFetchProvidersData, PostFetchProvidersError, PostFetchProvidersResponse, PostModelsByIdTestData, PostModelsByIdTestError, PostModelsByIdTestResponse, PostModelsData, PostModelsError, PostModelsResponse, PostProvidersByIdImportModelsData, PostProvidersByIdImportModelsError, PostProvidersByIdImportModelsResponse, PostProvidersByIdOauthPollData, PostProvidersByIdOauthPollError, PostProvidersByIdOauthPollResponse, PostProvidersByIdTestData, PostProvidersByIdTestError, PostProvidersByIdTestResponse, PostProvidersData, PostProvidersError, PostProvidersFromTemplateData, PostProvidersFromTemplateError, PostProvidersFromTemplateResponse, PostProvidersResponse, PostSearchProvidersData, PostSearchProvidersError, PostSearchProvidersResponse, PostSpeechModelsByIdTestData, PostSpeechModelsByIdTestError, PostSpeechProvidersByIdImportModelsData, PostSpeechProvidersByIdImportModelsError, PostSpeechProvidersByIdImportModelsResponse, PostTranscriptionModelsByIdTestData, PostTranscriptionModelsByIdTestError, PostTranscriptionModelsByIdTestResponse, PostTranscriptionProvidersByIdImportModelsData, PostTranscriptionProvidersByIdImportModelsError, PostTranscriptionProvidersByIdImportModelsResponse, PostUsersData, PostUsersError, PostUsersMeChannelLinksData, PostUsersMeChannelLinksError, PostUsersMeChannelLinksResponse, PostUsersMeRuntimesData, PostUsersMeRuntimesError, PostUsersMeRuntimesResponse, PostUsersResponse, PostVideoProvidersByIdImportModelsData, PostVideoProvidersByIdImportModelsError, PostVideoProvidersByIdImportModelsResponse, PutBotsByBotIdAclDefaultEffectData, PutBotsByBotIdAclDefaultEffectError, PutBotsByBotIdAclRulesByRuleIdData, PutBotsByBotIdAclRulesByRuleIdError, PutBotsByBotIdAclRulesByRuleIdResponse, PutBotsByBotIdAgentsByIdCredentialData, PutBotsByBotIdAgentsByIdCredentialError, PutBotsByBotIdAgentsByIdCredentialResponse, PutBotsByBotIdContainerMetricsData, PutBotsByBotIdContainerMetricsError, PutBotsByBotIdContainerMetricsResponse, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdError, PutBotsByBotIdMcpByIdResponse, PutBotsByBotIdMcpOpsImportData, PutBotsByBotIdMcpOpsImportError, PutBotsByBotIdMcpOpsImportResponse, PutBotsByBotIdMemoryByMemoryIdData, PutBotsByBotIdMemoryByMemoryIdError, PutBotsByBotIdMemoryByMemoryIdResponse, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdError, PutBotsByBotIdScheduleByIdResponse, PutBotsByBotIdSessionsBySessionIdFollowUpQueueReorderData, PutBotsByBotIdSessionsBySessionIdFollowUpQueueReorderError, PutBotsByBotIdSessionsBySessionIdFollowUpQueueReorderResponse, PutBotsByBotIdSessionsBySessionIdSteerQueueReorderData, PutBotsByBotIdSessionsBySessionIdSteerQueueReorderError, PutBotsByBotIdSessionsBySessionIdSteerQueueReorderResponse, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsError, PutBotsByBotIdSettingsResponse, PutBotsByBotIdUserAccessByGrantIdData, PutBotsByBotIdUserAccessByGrantIdError, PutBotsByBotIdUserAccessByGrantIdResponse, PutBotsByBotIdWorkspaceTargetsByTargetIdToolApprovalData, PutBotsByBotIdWorkspaceTargetsByTargetIdToolApprovalError, PutBotsByBotIdWorkspaceTargetsPrimaryData, PutBotsByBotIdWorkspaceTargetsPrimaryError, PutBotsByBotIdWorkspaceTargetsRemotesByRuntimeIdData, PutBotsByBotIdWorkspaceTargetsRemotesByRuntimeIdError, PutBotsByBotIdWorkspaceTargetsRemotesByRuntimeIdResponse, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformError, PutBotsByIdChannelByPlatformResponse, PutBotsByIdData, PutBotsByIdError, PutBotsByIdOwnerData, PutBotsByIdOwnerError, PutBotsByIdOwnerResponse, PutBotsByIdResponse, PutFetchProvidersByIdData, PutFetchProvidersByIdError, PutFetchProvidersByIdResponse, PutMemoryConfigData, PutMemoryConfigError, PutMemoryConfigResponse, PutModelsByIdData, PutModelsByIdError, PutModelsByIdResponse, PutModelsModelByModelIdData, PutModelsModelByModelIdError, PutModelsModelByModelIdResponse, PutProvidersByIdData, PutProvidersByIdError, PutProvidersByIdResponse, PutSearchProvidersByIdData, PutSearchProvidersByIdError, PutSearchProvidersByIdResponse, PutSpeechModelsByIdData, PutSpeechModelsByIdError, PutSpeechModelsByIdResponse, PutTranscriptionModelsByIdData, PutTranscriptionModelsByIdError, PutTranscriptionModelsByIdResponse, PutUsersByIdData, PutUsersByIdError, PutUsersByIdResponse, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformError, PutUsersMeChannelsByPlatformResponse, PutUsersMeData, PutUsersMeError, PutUsersMePasswordData, PutUsersMePasswordError, PutUsersMeResponse, PutVideoModelsByIdData, PutVideoModelsByIdError, PutVideoModelsByIdResponse } from '../types.gen'; export type QueryKey = [ Pick & { _id: string; baseUrl?: _JSONValue; body?: _JSONValue; query?: _JSONValue; tags?: _JSONValue; } ]; const createQueryKey = (id: string, options?: TOptions, tags?: ReadonlyArray): [ QueryKey[0] ] => { const params: QueryKey[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey[0]; if (tags) { params.tags = tags as unknown as _JSONValue; } if (options?.body !== undefined) { const normalizedBody = serializeQueryKeyValue(options.body); if (normalizedBody !== undefined) { params.body = normalizedBody; } } if (options?.path) { params.path = options.path; } if (options?.query !== undefined) { const normalizedQuery = serializeQueryKeyValue(options.query); if (normalizedQuery !== undefined) { params.query = normalizedQuery; } } return [params]; }; export const getAcpProfilesQueryKey = (options?: Options) => createQueryKey('getAcpProfiles', options); /** * List ACP profiles * * List safe ACP profile metadata used by the frontend to render agent configuration UI */ export const getAcpProfilesQuery = defineQueryOptions, GetAcpProfilesResponse, Error>((options?: Options) => ({ key: getAcpProfilesQueryKey(options), query: async (context) => { const { data } = await getAcpProfiles({ ...options, ...context, throwOnError: true }); return data; } })); /** * Authorize an Agent account independently of a Bot * * Starts Codex device authorization or Claude browser authorization, or encrypts a supplied API key or Claude OAuth token. A Grok account cannot be staged: it signs in on the Agent itself. No Bot or workspace is created. Ready means the credential has been staged; API keys and manually supplied tokens are not probed against the provider. */ export const postAgentAuthorizationsMutation = (options?: Partial>): UseMutationOptions, PostAgentAuthorizationsError> => ({ mutation: async (vars) => { const { data } = await postAgentAuthorizations({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Discard a temporary authorization without disconnecting an already-created Agent */ export const deleteAgentAuthorizationsByIdMutation = (options?: Partial>): UseMutationOptions, DeleteAgentAuthorizationsByIdError> => ({ mutation: async (vars) => { const { data } = await deleteAgentAuthorizationsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getAgentAuthorizationsByIdQueryKey = (options: Options) => createQueryKey('getAgentAuthorizationsById', options); /** * Read an authorization session owned by the current user */ export const getAgentAuthorizationsByIdQuery = defineQueryOptions, GetAgentAuthorizationsByIdResponse, GetAgentAuthorizationsByIdError>((options: Options) => ({ key: getAgentAuthorizationsByIdQueryKey(options), query: async (context) => { const { data } = await getAgentAuthorizationsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Complete Claude browser authorization with the returned authorization code */ export const postAgentAuthorizationsByIdExchangeMutation = (options?: Partial>): UseMutationOptions, PostAgentAuthorizationsByIdExchangeError> => ({ mutation: async (vars) => { const { data } = await postAgentAuthorizationsByIdExchange({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Poll a pending Agent device authorization */ export const postAgentAuthorizationsByIdPollMutation = (options?: Partial>): UseMutationOptions, PostAgentAuthorizationsByIdPollError> => ({ mutation: async (vars) => { const { data } = await postAgentAuthorizationsByIdPoll({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Login * * Validate user credentials and issue a JWT */ export const postAuthLoginMutation = (options?: Partial>): UseMutationOptions, PostAuthLoginError> => ({ mutation: async (vars) => { const { data } = await postAuthLogin({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Refresh Token * * Issue a new JWT using the existing claims with updated expiration */ export const postAuthRefreshMutation = (options?: Partial>): UseMutationOptions, PostAuthRefreshError> => ({ mutation: async (vars) => { const { data } = await postAuthRefresh({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsQueryKey = (options?: Options) => createQueryKey('getBots', options); /** * List bots * * List bots accessible to current user (admin can specify owner_id) */ export const getBotsQuery = defineQueryOptions, GetBotsResponse, GetBotsError>((options?: Options) => ({ key: getBotsQueryKey(options), query: async (context) => { const { data } = await getBots({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create bot user * * Create a bot user owned by current user (or admin-specified owner) */ export const postBotsMutation = (options?: Partial>): UseMutationOptions, PostBotsError> => ({ mutation: async (vars) => { const { data } = await postBots({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Import a bot backup */ export const postBotsBackupImportMutation = (options?: Partial>): UseMutationOptions, PostBotsBackupImportError> => ({ mutation: async (vars) => { const { data } = await postBotsBackupImport({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Preview a bot backup import */ export const postBotsBackupImportPreviewMutation = (options?: Partial>): UseMutationOptions, PostBotsBackupImportPreviewError> => ({ mutation: async (vars) => { const { data } = await postBotsBackupImportPreview({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsNameAvailabilityQueryKey = (options: Options) => createQueryKey('getBotsNameAvailability', options); /** * Check bot name availability * * Validate a candidate bot name and report whether it is available */ export const getBotsNameAvailabilityQuery = defineQueryOptions, GetBotsNameAvailabilityResponse, GetBotsNameAvailabilityError>((options: Options) => ({ key: getBotsNameAvailabilityQueryKey(options), query: async (context) => { const { data } = await getBotsNameAvailability({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsUserAccessCandidatesQueryKey = (options?: Options) => createQueryKey('getBotsUserAccessCandidates', options); /** * Search workspace member candidates for a bot being created * * List grantable workspace members before the bot exists, for the create form */ export const getBotsUserAccessCandidatesQuery = defineQueryOptions, GetBotsUserAccessCandidatesResponse, GetBotsUserAccessCandidatesError>((options?: Options) => ({ key: getBotsUserAccessCandidatesQueryKey(options), query: async (context) => { const { data } = await getBotsUserAccessCandidates({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdAclChannelIdentitiesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAclChannelIdentities', options); /** * Search ACL channel identity candidates * * Search locally observed channel identities for building ACL rules */ export const getBotsByBotIdAclChannelIdentitiesQuery = defineQueryOptions, GetBotsByBotIdAclChannelIdentitiesResponse, GetBotsByBotIdAclChannelIdentitiesError>((options: Options) => ({ key: getBotsByBotIdAclChannelIdentitiesQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAclChannelIdentities({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversations', options); /** * List observed conversations for a channel identity * * List previously observed conversation candidates for a channel identity, for scoped rule building */ export const getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsQuery = defineQueryOptions, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsResponse, GetBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsError>((options: Options) => ({ key: getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversationsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAclChannelIdentitiesByChannelIdentityIdConversations({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdAclChannelTypesByChannelTypeConversationsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAclChannelTypesByChannelTypeConversations', options); /** * List observed conversations for a platform type * * List previously observed group/thread conversation candidates for a channel type under this bot */ export const getBotsByBotIdAclChannelTypesByChannelTypeConversationsQuery = defineQueryOptions, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsResponse, GetBotsByBotIdAclChannelTypesByChannelTypeConversationsError>((options: Options) => ({ key: getBotsByBotIdAclChannelTypesByChannelTypeConversationsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAclChannelTypesByChannelTypeConversations({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdAclDefaultEffectQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAclDefaultEffect', options); /** * Get bot ACL default effect * * Get the fallback effect when no rule matches */ export const getBotsByBotIdAclDefaultEffectQuery = defineQueryOptions, GetBotsByBotIdAclDefaultEffectResponse, GetBotsByBotIdAclDefaultEffectError>((options: Options) => ({ key: getBotsByBotIdAclDefaultEffectQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAclDefaultEffect({ ...options, ...context, throwOnError: true }); return data; } })); /** * Set bot ACL default effect * * Set the fallback effect when no rule matches (allow or deny) */ export const putBotsByBotIdAclDefaultEffectMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdAclDefaultEffectError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdAclDefaultEffect({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAclRulesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAclRules', options); /** * List bot ACL rules * * List all ACL rules for a bot */ export const getBotsByBotIdAclRulesQuery = defineQueryOptions, GetBotsByBotIdAclRulesResponse, GetBotsByBotIdAclRulesError>((options: Options) => ({ key: getBotsByBotIdAclRulesQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAclRules({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create ACL rule * * Create a new ACL rule for chat.trigger */ export const postBotsByBotIdAclRulesMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAclRulesError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAclRules({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete ACL rule * * Delete an ACL rule by ID */ export const deleteBotsByBotIdAclRulesByRuleIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdAclRulesByRuleIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdAclRulesByRuleId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Update ACL rule * * Update an existing ACL rule */ export const putBotsByBotIdAclRulesByRuleIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdAclRulesByRuleIdError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdAclRulesByRuleId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Create an unbound ACP runtime (pre-session model picker) * * Starts an agent runtime before any session exists. The runtime ID is server generated; bind it to a session at creation time via acp_runtime_id. */ export const postBotsByBotIdAcpRuntimesMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAcpRuntimesError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAcpRuntimes({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Close an ACP runtime */ export const deleteBotsByBotIdAcpRuntimesByRuntimeIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdAcpRuntimesByRuntimeIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdAcpRuntimesByRuntimeId({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAcpRuntimesByRuntimeIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAcpRuntimesByRuntimeId', options); /** * Get ACP runtime state by runtime ID */ export const getBotsByBotIdAcpRuntimesByRuntimeIdQuery = defineQueryOptions, GetBotsByBotIdAcpRuntimesByRuntimeIdResponse, GetBotsByBotIdAcpRuntimesByRuntimeIdError>((options: Options) => ({ key: getBotsByBotIdAcpRuntimesByRuntimeIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAcpRuntimesByRuntimeId({ ...options, ...context, throwOnError: true }); return data; } })); /** * Set an unbound ACP runtime's mode * * Sends the selected agent-declared mode ID unchanged to session/set_mode before the first chat message binds this runtime to a Session. */ export const patchBotsByBotIdAcpRuntimesByRuntimeIdModeMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdAcpRuntimesByRuntimeIdModeError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdAcpRuntimesByRuntimeIdMode({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set (or reset) an ACP runtime's model * * An empty model_id resets the runtime to the agent default model. */ export const patchBotsByBotIdAcpRuntimesByRuntimeIdModelMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdAcpRuntimesByRuntimeIdModelError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdAcpRuntimesByRuntimeIdModel({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set an ACP runtime's reasoning effort */ export const patchBotsByBotIdAcpRuntimesByRuntimeIdReasoningMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdAcpRuntimesByRuntimeIdReasoningError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdAcpRuntimesByRuntimeIdReasoning({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAgentsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAgents', options); /** * List a bot's Agents * * List active and disabled non-deleted Agents attached to a bot. Direct-runtime Agents carry the workspace dependency their runtime declares. */ export const getBotsByBotIdAgentsQuery = defineQueryOptions, GetBotsByBotIdAgentsResponse, GetBotsByBotIdAgentsError>((options: Options) => ({ key: getBotsByBotIdAgentsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAgents({ ...options, ...context, throwOnError: true }); return data; } })); /** * Add an Agent to a bot * * Add a named Agent backed by a runtime descriptor. Omit enabled to create it enabled; pass enabled=false to hold a direct-runtime Agent back until its workspace dependency preflight passes. The response reports that dependency (dependency_id) when the runtime declares one. */ export const postBotsByBotIdAgentsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAgentsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAgents({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete a bot Agent * * Soft-delete an Agent while preserving existing session bindings */ export const deleteBotsByBotIdAgentsByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdAgentsByIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdAgentsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAgentsByIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAgentsById', options); /** * Get a bot Agent * * Get one Agent attached to a bot, including the workspace dependency its runtime declares (omitted for runtimes without one). */ export const getBotsByBotIdAgentsByIdQuery = defineQueryOptions, GetBotsByBotIdAgentsByIdResponse, GetBotsByBotIdAgentsByIdError>((options: Options) => ({ key: getBotsByBotIdAgentsByIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAgentsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a bot Agent * * Update an Agent's name, availability, or runtime configuration */ export const patchBotsByBotIdAgentsByIdMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdAgentsByIdError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdAgentsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAgentsByIdCodexUsageQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAgentsByIdCodexUsage', options); /** * Get the Codex usage limits of the Agent's ChatGPT account * * Available to anyone who can chat with the Bot, so the composer */ export const getBotsByBotIdAgentsByIdCodexUsageQuery = defineQueryOptions, GetBotsByBotIdAgentsByIdCodexUsageResponse, GetBotsByBotIdAgentsByIdCodexUsageError>((options: Options) => ({ key: getBotsByBotIdAgentsByIdCodexUsageQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAgentsByIdCodexUsage({ ...options, ...context, throwOnError: true }); return data; } })); /** * Disconnect a Bot Agent's credential */ export const deleteBotsByBotIdAgentsByIdCredentialMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdAgentsByIdCredentialError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdAgentsByIdCredential({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAgentsByIdCredentialQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAgentsByIdCredential', options); /** * Get the credential attached to a Bot Agent */ export const getBotsByBotIdAgentsByIdCredentialQuery = defineQueryOptions, GetBotsByBotIdAgentsByIdCredentialResponse, GetBotsByBotIdAgentsByIdCredentialError>((options: Options) => ({ key: getBotsByBotIdAgentsByIdCredentialQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAgentsByIdCredential({ ...options, ...context, throwOnError: true }); return data; } })); /** * Attach a credential to a Bot Agent, replacing any previous one * * Creates an encrypted credential from the submitted secret and */ export const putBotsByBotIdAgentsByIdCredentialMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdAgentsByIdCredentialError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdAgentsByIdCredential({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Bind a completed temporary authorization to a Bot Agent * * Requires Bot management access and ownership of the authorization. Retrying for the same Agent is safe; an authorization cannot be bound to another Agent. Credentials are attached atomically and removed from the temporary session. */ export const postBotsByBotIdAgentsByIdCredentialClaimMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAgentsByIdCredentialClaimError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAgentsByIdCredentialClaim({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Start a device-code account sign-in on a direct runtime Agent * * The Agent's own process obtains the device code; the user opens the URL and confirms the code there. Only runtimes that sign in this way (Codex, Grok Build) accept it. */ export const postBotsByBotIdAgentsByIdLoginDeviceAuthorizeMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAgentsByIdLoginDeviceAuthorizeError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAgentsByIdLoginDeviceAuthorize({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Cancel a pending device-code sign-in */ export const postBotsByBotIdAgentsByIdLoginDeviceCancelMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAgentsByIdLoginDeviceCancelError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAgentsByIdLoginDeviceCancel({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Poll a pending device-code sign-in * * A successful sign-in has already been stored as the Agent's credential when this answers success. */ export const postBotsByBotIdAgentsByIdLoginDevicePollMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAgentsByIdLoginDevicePollError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAgentsByIdLoginDevicePoll({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAgentsByIdModelsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAgentsByIdModels', options); /** * List models available to a bot Agent */ export const getBotsByBotIdAgentsByIdModelsQuery = defineQueryOptions, GetBotsByBotIdAgentsByIdModelsResponse, GetBotsByBotIdAgentsByIdModelsError>((options: Options) => ({ key: getBotsByBotIdAgentsByIdModelsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAgentsByIdModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdAgentsByIdRuntimeControlsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAgentsByIdRuntimeControls', options); /** * Get bot Agent default runtime controls */ export const getBotsByBotIdAgentsByIdRuntimeControlsQuery = defineQueryOptions, GetBotsByBotIdAgentsByIdRuntimeControlsResponse, GetBotsByBotIdAgentsByIdRuntimeControlsError>((options: Options) => ({ key: getBotsByBotIdAgentsByIdRuntimeControlsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAgentsByIdRuntimeControls({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdAppsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdApps', options); /** * List the Apps installed for a bot * * Every App installed on the bot workspace with its Skills, dependency references and connector references, plus the canonical Apps of dependencies the workspace carries that no App references. */ export const getBotsByBotIdAppsQuery = defineQueryOptions, GetBotsByBotIdAppsResponse, GetBotsByBotIdAppsError>((options: Options) => ({ key: getBotsByBotIdAppsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdApps({ ...options, ...context, throwOnError: true }); return data; } })); /** * Check installed Apps for newer releases * * Compares every installed App with the registry's current release, runs the dependency update checks, and returns the refreshed list. The checks are bounded in time; update_checks_incomplete marks a list where some did not finish and keep their last result. */ export const postBotsByBotIdAppsCheckUpdatesMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAppsCheckUpdatesError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAppsCheckUpdates({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAppsByInstallationIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAppsByInstallationId', options); /** * Get one installed App */ export const getBotsByBotIdAppsByInstallationIdQuery = defineQueryOptions, GetBotsByBotIdAppsByInstallationIdResponse, GetBotsByBotIdAppsByInstallationIdError>((options: Options) => ({ key: getBotsByBotIdAppsByInstallationIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAppsByInstallationId({ ...options, ...context, throwOnError: true }); return data; } })); /** * Connect an API-key connector an App references * * Sends the credential fields to Connect-It and links the resulting connection to the App installation. */ export const postBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKeyMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKeyError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeApiKey({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Authorize a connector an App references * * Starts OAuth for the connector type and links the resulting Connect-It connection to the App installation. */ export const postBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauthMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauthError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdAppsByInstallationIdConnectorsByConnectorTypeOauth({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdAppsByInstallationIdRemovalPreviewQueryKey = (options: Options) => createQueryKey('getBotsByBotIdAppsByInstallationIdRemovalPreview', options); /** * Preview what removing an App would do */ export const getBotsByBotIdAppsByInstallationIdRemovalPreviewQuery = defineQueryOptions, GetBotsByBotIdAppsByInstallationIdRemovalPreviewResponse, GetBotsByBotIdAppsByInstallationIdRemovalPreviewError>((options: Options) => ({ key: getBotsByBotIdAppsByInstallationIdRemovalPreviewQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdAppsByInstallationIdRemovalPreview({ ...options, ...context, throwOnError: true }); return data; } })); /** * Export a full bot backup */ export const postBotsByBotIdBackupExportMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdBackupExportError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdBackupExport({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdBackupSummaryQueryKey = (options: Options) => createQueryKey('getBotsByBotIdBackupSummary', options); /** * Summarize what a bot would export */ export const getBotsByBotIdBackupSummaryQuery = defineQueryOptions, GetBotsByBotIdBackupSummaryResponse, GetBotsByBotIdBackupSummaryError>((options: Options) => ({ key: getBotsByBotIdBackupSummaryQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdBackupSummary({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdChannelManagersQueryKey = (options: Options) => createQueryKey('getBotsByBotIdChannelManagers', options); /** * List channel managers * * List effective Manage state per channel identity on a bot (inherited + local overrides) */ export const getBotsByBotIdChannelManagersQuery = defineQueryOptions, GetBotsByBotIdChannelManagersResponse, GetBotsByBotIdChannelManagersError>((options: Options) => ({ key: getBotsByBotIdChannelManagersQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdChannelManagers({ ...options, ...context, throwOnError: true }); return data; } })); /** * Set a channel manage override * * Force the Manage capability ON or OFF for a channel identity on a bot */ export const postBotsByBotIdChannelManagersMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdChannelManagersError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdChannelManagers({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Clear a channel manage override * * Remove the local Manage override so the channel identity falls back to inheritance */ export const deleteBotsByBotIdChannelManagersByChannelIdentityIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdChannelManagersByChannelIdentityIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdChannelManagersByChannelIdentityId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete compaction logs * * Delete all compaction logs for a bot */ export const deleteBotsByBotIdCompactionLogsMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdCompactionLogsError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdCompactionLogs({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdCompactionLogsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdCompactionLogs', options); /** * List compaction logs * * List compaction logs for a bot */ export const getBotsByBotIdCompactionLogsQuery = defineQueryOptions, GetBotsByBotIdCompactionLogsResponse, GetBotsByBotIdCompactionLogsError>((options: Options) => ({ key: getBotsByBotIdCompactionLogsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdCompactionLogs({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdConnectorsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdConnectors', options); /** * List bot connectors * * List Connect-It connections enabled or disabled for a bot. */ export const getBotsByBotIdConnectorsQuery = defineQueryOptions, GetBotsByBotIdConnectorsResponse, GetBotsByBotIdConnectorsError>((options: Options) => ({ key: getBotsByBotIdConnectorsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdConnectors({ ...options, ...context, throwOnError: true }); return data; } })); /** * Disconnect a connector * * Delete the Connect-It credential, remove its bot binding and unlink it from every App that referenced it; those Apps ask for authorization again. */ export const deleteBotsByBotIdConnectorsByConnectionIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdConnectorsByConnectionIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdConnectorsByConnectionId({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdConnectorsByConnectionIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdConnectorsByConnectionId', options); /** * Get a bot connector * * Get one Connect-It connection bound to a bot. */ export const getBotsByBotIdConnectorsByConnectionIdQuery = defineQueryOptions, GetBotsByBotIdConnectorsByConnectionIdResponse, GetBotsByBotIdConnectorsByConnectionIdError>((options: Options) => ({ key: getBotsByBotIdConnectorsByConnectionIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdConnectorsByConnectionId({ ...options, ...context, throwOnError: true }); return data; } })); /** * Enable or disable a connector * * Disabled connectors are omitted when Memoh signs the bot's next aggregate MCP session. */ export const patchBotsByBotIdConnectorsByConnectionIdMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdConnectorsByConnectionIdError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdConnectorsByConnectionId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Reauthorize a connector * * Start OAuth again while preserving the same Connect-It connection ID. */ export const postBotsByBotIdConnectorsByConnectionIdReauthMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdConnectorsByConnectionIdReauthError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdConnectorsByConnectionIdReauth({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete workspace for bot * * Records the removal and answers at once. The workspace is gone when GET answers 404; until then GET reports the removal's state. */ export const deleteBotsByBotIdContainerMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdContainerError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdContainer({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainer', options); /** * Get workspace info for bot */ export const getBotsByBotIdContainerQuery = defineQueryOptions, GetBotsByBotIdContainerResponse, GetBotsByBotIdContainerError>((options: Options) => ({ key: getBotsByBotIdContainerQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainer({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create workspace for bot * * Records the intent for a running workspace and streams the */ export const postBotsByBotIdContainerMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainer({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Create browser proxy session for bot workspace */ export const postBotsByBotIdContainerBrowserSessionsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerBrowserSessionsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerBrowserSessions({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete browser proxy session */ export const deleteBotsByBotIdContainerBrowserSessionsBySessionIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdContainerBrowserSessionsBySessionIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdContainerBrowserSessionsBySessionId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Keep browser proxy session alive */ export const postBotsByBotIdContainerBrowserSessionsBySessionIdKeepaliveMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerBrowserSessionsBySessionIdKeepaliveError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerBrowserSessionsBySessionIdKeepalive({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Restore previously preserved data into workspace */ export const postBotsByBotIdContainerDataRestoreMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerDataRestoreError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerDataRestore({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerDisplayQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerDisplay', options); /** * Check workspace display availability for bot */ export const getBotsByBotIdContainerDisplayQuery = defineQueryOptions, GetBotsByBotIdContainerDisplayResponse, GetBotsByBotIdContainerDisplayError>((options: Options) => ({ key: getBotsByBotIdContainerDisplayQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerDisplay({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdContainerDisplaySessionsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerDisplaySessions', options); /** * List active workspace display WebRTC sessions */ export const getBotsByBotIdContainerDisplaySessionsQuery = defineQueryOptions, GetBotsByBotIdContainerDisplaySessionsResponse, GetBotsByBotIdContainerDisplaySessionsError>((options: Options) => ({ key: getBotsByBotIdContainerDisplaySessionsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerDisplaySessions({ ...options, ...context, throwOnError: true }); return data; } })); /** * Close a workspace display WebRTC session */ export const deleteBotsByBotIdContainerDisplaySessionsBySessionIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdContainerDisplaySessionsBySessionIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdContainerDisplaySessionsBySessionId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Create a WebRTC answer for bot workspace display */ export const postBotsByBotIdContainerDisplayWebrtcOfferMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerDisplayWebrtcOfferError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerDisplayWebrtcOffer({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerFsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerFs', options); /** * Get file or directory info * * Returns metadata about a file or directory at the given workspace path */ export const getBotsByBotIdContainerFsQuery = defineQueryOptions, GetBotsByBotIdContainerFsResponse, GetBotsByBotIdContainerFsError>((options: Options) => ({ key: getBotsByBotIdContainerFsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerFs({ ...options, ...context, throwOnError: true }); return data; } })); /** * Download files and directories as tar.gz * * Downloads selected files/directories from the workspace as a tar.gz archive */ export const postBotsByBotIdContainerFsArchiveMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsArchiveError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsArchive({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete a file or directory * * Deletes a file or directory at the given workspace path */ export const postBotsByBotIdContainerFsDeleteMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsDeleteError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsDelete({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerFsDownloadQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerFsDownload', options); /** * Download a file as binary stream * * Downloads a file from the workspace with appropriate Content-Type */ export const getBotsByBotIdContainerFsDownloadQuery = defineQueryOptions, unknown, GetBotsByBotIdContainerFsDownloadError>((options: Options) => ({ key: getBotsByBotIdContainerFsDownloadQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerFsDownload({ ...options, ...context, throwOnError: true }); return data; } })); /** * Extract an archive file * * Extracts a .zip, .tar.gz, or .tgz file into a sibling directory named after the archive */ export const postBotsByBotIdContainerFsExtractMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsExtractError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsExtract({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerFsListQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerFsList', options); /** * List directory contents * * Lists files and directories at the given workspace path */ export const getBotsByBotIdContainerFsListQuery = defineQueryOptions, GetBotsByBotIdContainerFsListResponse, GetBotsByBotIdContainerFsListError>((options: Options) => ({ key: getBotsByBotIdContainerFsListQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerFsList({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a directory * * Creates a directory (and parents) at the given workspace path. workspace_target_id selects an explicit target; when omitted, the Bot's Primary target is used. */ export const postBotsByBotIdContainerFsMkdirMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsMkdirError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsMkdir({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerFsReadQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerFsRead', options); /** * Read file content as text * * Reads the content of a file and returns it as a JSON string */ export const getBotsByBotIdContainerFsReadQuery = defineQueryOptions, GetBotsByBotIdContainerFsReadResponse, GetBotsByBotIdContainerFsReadError>((options: Options) => ({ key: getBotsByBotIdContainerFsReadQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerFsRead({ ...options, ...context, throwOnError: true }); return data; } })); /** * Rename or move a file/directory * * Renames or moves a file/directory from oldPath to newPath */ export const postBotsByBotIdContainerFsRenameMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsRenameError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsRename({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Upload a file via multipart form * * Uploads a binary file to the given workspace path */ export const postBotsByBotIdContainerFsUploadMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsUploadError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsUpload({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Write text content to a file * * Creates or overwrites a file with the provided text content */ export const postBotsByBotIdContainerFsWriteMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerFsWriteError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerFsWrite({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerMetricsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerMetrics', options); /** * Get current workspace metrics for bot */ export const getBotsByBotIdContainerMetricsQuery = defineQueryOptions, GetBotsByBotIdContainerMetricsResponse, GetBotsByBotIdContainerMetricsError>((options: Options) => ({ key: getBotsByBotIdContainerMetricsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerMetrics({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update workspace metrics settings for bot */ export const putBotsByBotIdContainerMetricsMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdContainerMetricsError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdContainerMetrics({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Withdraw a failed workspace removal * * Keeps the workspace after its removal failed. Does nothing when no removal has failed; one still in progress cannot be withdrawn. */ export const postBotsByBotIdContainerRemovalCancelMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerRemovalCancelError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerRemovalCancel({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete Memoh-managed skills */ export const deleteBotsByBotIdContainerSkillsMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdContainerSkillsError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdContainerSkills({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerSkillsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerSkills', options); /** * List skills from the bot workspace */ export const getBotsByBotIdContainerSkillsQuery = defineQueryOptions, GetBotsByBotIdContainerSkillsResponse, GetBotsByBotIdContainerSkillsError>((options: Options) => ({ key: getBotsByBotIdContainerSkillsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerSkills({ ...options, ...context, throwOnError: true }); return data; } })); /** * Upload skills into Memoh-managed directory */ export const postBotsByBotIdContainerSkillsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerSkillsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerSkills({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Apply an action to a discovered or managed skill source */ export const postBotsByBotIdContainerSkillsActionsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerSkillsActionsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerSkillsActions({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerSnapshotsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerSnapshots', options); /** * List snapshots */ export const getBotsByBotIdContainerSnapshotsQuery = defineQueryOptions, GetBotsByBotIdContainerSnapshotsResponse, GetBotsByBotIdContainerSnapshotsError>((options: Options) => ({ key: getBotsByBotIdContainerSnapshotsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerSnapshots({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create workspace snapshot for bot */ export const postBotsByBotIdContainerSnapshotsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerSnapshotsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerSnapshots({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Roll back workspace to a previous snapshot version */ export const postBotsByBotIdContainerSnapshotsRollbackMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerSnapshotsRollbackError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerSnapshotsRollback({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Start workspace for bot */ export const postBotsByBotIdContainerStartMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerStartError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerStart({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Stop workspace for bot */ export const postBotsByBotIdContainerStopMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdContainerStopError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdContainerStop({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdContainerTerminalQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerTerminal', options); /** * Check terminal availability for bot workspace */ export const getBotsByBotIdContainerTerminalQuery = defineQueryOptions, GetBotsByBotIdContainerTerminalResponse, GetBotsByBotIdContainerTerminalError>((options: Options) => ({ key: getBotsByBotIdContainerTerminalQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerTerminal({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdContainerTerminalWsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdContainerTerminalWs', options); /** * Interactive WebSocket terminal for bot workspace */ export const getBotsByBotIdContainerTerminalWsQuery = defineQueryOptions, unknown, GetBotsByBotIdContainerTerminalWsError>((options: Options) => ({ key: getBotsByBotIdContainerTerminalWsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdContainerTerminalWs({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdDependenciesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdDependencies', options); /** * List workspace dependencies * * Every catalog dependency (image-provided runtimes, managed agent CLIs and tools) reconciled with its installation record and, when the workspace is running, with what is actually installed. */ export const getBotsByBotIdDependenciesQuery = defineQueryOptions, GetBotsByBotIdDependenciesResponse, GetBotsByBotIdDependenciesError>((options: Options) => ({ key: getBotsByBotIdDependenciesQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdDependencies({ ...options, ...context, throwOnError: true }); return data; } })); /** * Check workspace dependencies for updates * * Re-discovers the workspace and runs the upstream update check of every installed tool dependency, then returns the refreshed list. The checks are bounded in time; update_checks_incomplete marks a list where some did not finish and keep their last result. */ export const postBotsByBotIdDependenciesCheckUpdatesMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdDependenciesCheckUpdatesError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdDependenciesCheckUpdates({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Check whether dependencies are ready * * Reports for each requested dependency whether a copy is installed, whatever its version. Never starts the workspace: when it is not running, items is empty and workspace_state says why. */ export const postBotsByBotIdDependenciesPreflightMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdDependenciesPreflightError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdDependenciesPreflight({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Roll a workspace dependency back to its previous version * * Switches the dependency back to the previous version kept in the workspace. A pure data operation: nothing is downloaded and no log is streamed. */ export const postBotsByBotIdDependenciesByDepIdRollbackMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdDependenciesByDepIdRollbackError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdDependenciesByDepIdRollback({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdDependenciesByDepIdScriptQueryKey = (options: Options) => createQueryKey('getBotsByBotIdDependenciesByDepIdScript', options); /** * Show the script a dependency action would run * * The exact stdin text the workspace shell receives, prelude included, with the command, time budget, and environment the runner uses. Scripts never touch the workspace disk, so this is the only way to inspect them. */ export const getBotsByBotIdDependenciesByDepIdScriptQuery = defineQueryOptions, GetBotsByBotIdDependenciesByDepIdScriptResponse, GetBotsByBotIdDependenciesByDepIdScriptError>((options: Options) => ({ key: getBotsByBotIdDependenciesByDepIdScriptQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdDependenciesByDepIdScript({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdHooksEventsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdHooksEvents', options); /** * List supported bot hook events */ export const getBotsByBotIdHooksEventsQuery = defineQueryOptions, GetBotsByBotIdHooksEventsResponse, GetBotsByBotIdHooksEventsError>((options: Options) => ({ key: getBotsByBotIdHooksEventsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdHooksEvents({ ...options, ...context, throwOnError: true }); return data; } })); /** * Run bot hooks for a synthetic event */ export const postBotsByBotIdHooksTestMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdHooksTestError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdHooksTest({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMcpQueryKey = (options?: Options) => createQueryKey('getBotsByBotIdMcp', options); /** * List MCP connections * * List MCP connections for a bot */ export const getBotsByBotIdMcpQuery = defineQueryOptions, GetBotsByBotIdMcpResponse, GetBotsByBotIdMcpError>((options?: Options) => ({ key: getBotsByBotIdMcpQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMcp({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create MCP connection * * Create a MCP connection for a bot */ export const postBotsByBotIdMcpMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcp({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Batch delete MCP connections * * Delete multiple MCP connections by IDs. */ export const postBotsByBotIdMcpOpsBatchDeleteMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpOpsBatchDeleteError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpOpsBatchDelete({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMcpOpsExportQueryKey = (options?: Options) => createQueryKey('getBotsByBotIdMcpOpsExport', options); /** * Export MCP connections * * Export all MCP connections for a bot in standard mcpServers format. */ export const getBotsByBotIdMcpOpsExportQuery = defineQueryOptions, GetBotsByBotIdMcpOpsExportResponse, GetBotsByBotIdMcpOpsExportError>((options?: Options) => ({ key: getBotsByBotIdMcpOpsExportQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMcpOpsExport({ ...options, ...context, throwOnError: true }); return data; } })); /** * Import MCP connections * * Batch import MCP connections from standard mcpServers format. Existing connections (matched by name) get config updated with is_active preserved. New connections are created as active. */ export const putBotsByBotIdMcpOpsImportMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdMcpOpsImportError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdMcpOpsImport({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Create MCP stdio proxy * * Start a stdio MCP process in the bot workspace and expose it as an MCP HTTP endpoint. */ export const postBotsByBotIdMcpStdioMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpStdioError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpStdio({ ...options, ...vars, throwOnError: true }); return data; } }); /** * MCP stdio proxy (JSON-RPC) * * Proxies MCP JSON-RPC requests to a stdio MCP process in the workspace. */ export const postBotsByBotIdMcpStdioByConnectionIdMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpStdioByConnectionIdError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpStdioByConnectionId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete MCP connection * * Delete a MCP connection by ID */ export const deleteBotsByBotIdMcpByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMcpByIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdMcpById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMcpByIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMcpById', options); /** * Get MCP connection * * Get a MCP connection by ID */ export const getBotsByBotIdMcpByIdQuery = defineQueryOptions, GetBotsByBotIdMcpByIdResponse, GetBotsByBotIdMcpByIdError>((options: Options) => ({ key: getBotsByBotIdMcpByIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMcpById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update MCP connection * * Update a MCP connection by ID */ export const putBotsByBotIdMcpByIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdMcpByIdError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdMcpById({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Start OAuth authorization flow * * Generate PKCE and return authorization URL for the user to authorize */ export const postBotsByBotIdMcpByIdOauthAuthorizeMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpByIdOauthAuthorizeError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpByIdOauthAuthorize({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Discover OAuth configuration for MCP server * * Probe MCP server URL for OAuth requirements and discover authorization server metadata */ export const postBotsByBotIdMcpByIdOauthDiscoverMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpByIdOauthDiscoverError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpByIdOauthDiscover({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Exchange OAuth authorization code for tokens * * Frontend callback page calls this to exchange the authorization code for access/refresh tokens */ export const postBotsByBotIdMcpByIdOauthExchangeMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpByIdOauthExchangeError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpByIdOauthExchange({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMcpByIdOauthStatusQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMcpByIdOauthStatus', options); /** * Get OAuth status for MCP connection * * Returns the current OAuth status including whether tokens are available */ export const getBotsByBotIdMcpByIdOauthStatusQuery = defineQueryOptions, GetBotsByBotIdMcpByIdOauthStatusResponse, GetBotsByBotIdMcpByIdOauthStatusError>((options: Options) => ({ key: getBotsByBotIdMcpByIdOauthStatusQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMcpByIdOauthStatus({ ...options, ...context, throwOnError: true }); return data; } })); /** * Revoke OAuth tokens for MCP connection * * Clears stored OAuth tokens */ export const deleteBotsByBotIdMcpByIdOauthTokenMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMcpByIdOauthTokenError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdMcpByIdOauthToken({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Probe MCP connection * * Probe a MCP connection to discover tools and verify connectivity */ export const postBotsByBotIdMcpByIdProbeMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpByIdProbeError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMcpByIdProbe({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete memories * * Delete specific memories by IDs, or delete all memories if no IDs are provided */ export const deleteBotsByBotIdMemoryMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMemoryError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdMemory({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMemoryQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMemory', options); /** * Get all memories * * List all memories in the bot-shared namespace */ export const getBotsByBotIdMemoryQuery = defineQueryOptions, GetBotsByBotIdMemoryResponse, GetBotsByBotIdMemoryError>((options: Options) => ({ key: getBotsByBotIdMemoryQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMemory({ ...options, ...context, throwOnError: true }); return data; } })); /** * Add memory * * Add memory into the bot-shared namespace */ export const postBotsByBotIdMemoryMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMemory({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Compact memories * * Consolidate memories by merging similar/redundant entries using LLM. * * **ratio** (required, range (0,1]): * - 0.8 = light compression, mostly dedup, keep ~80% of entries * - 0.5 = moderate compression, merge similar facts, keep ~50% * - 0.3 = aggressive compression, heavily consolidate, keep ~30% * * **decay_days** (optional): enable time decay — memories older than N days are treated as low priority and more likely to be merged/dropped. */ export const postBotsByBotIdMemoryCompactMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryCompactError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMemoryCompact({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMemoryGraphQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMemoryGraph', options); /** * Get memory graph * * Get derived memory graph nodes and edges for a bot. */ export const getBotsByBotIdMemoryGraphQuery = defineQueryOptions, GetBotsByBotIdMemoryGraphResponse, GetBotsByBotIdMemoryGraphError>((options: Options) => ({ key: getBotsByBotIdMemoryGraphQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMemoryGraph({ ...options, ...context, throwOnError: true }); return data; } })); /** * Ingest agent-authored memory markdown into the wiki store * * Read /data/memory*.md the bot (or its agent) wrote directly and upsert them as DB memory nodes, so they become searchable and survive the next derived-view rebuild. Idempotent (ON CONFLICT id DO UPDATE). */ export const postBotsByBotIdMemoryIngestMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryIngestError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMemoryIngest({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Rebuild memories from filesystem * * Read memory files from the workspace filesystem (source of truth) and restore missing entries to memory storage */ export const postBotsByBotIdMemoryRebuildMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryRebuildError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMemoryRebuild({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Search memory * * Search memory in the bot-shared namespace */ export const postBotsByBotIdMemorySearchMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemorySearchError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdMemorySearch({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMemoryStatusQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMemoryStatus', options); /** * Get memory runtime status * * Get the resolved memory runtime status for a bot, including index health and source counts */ export const getBotsByBotIdMemoryStatusQuery = defineQueryOptions, GetBotsByBotIdMemoryStatusResponse, GetBotsByBotIdMemoryStatusError>((options: Options) => ({ key: getBotsByBotIdMemoryStatusQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMemoryStatus({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdMemoryUsageQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMemoryUsage', options); /** * Get memory usage * * Query the estimated storage usage of current memories */ export const getBotsByBotIdMemoryUsageQuery = defineQueryOptions, GetBotsByBotIdMemoryUsageResponse, GetBotsByBotIdMemoryUsageError>((options: Options) => ({ key: getBotsByBotIdMemoryUsageQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMemoryUsage({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete a single memory * * Delete a single memory by its ID */ export const deleteBotsByBotIdMemoryByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMemoryByIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdMemoryById({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Update a single memory by id * * Update the body of an existing memory entry in place (preserves id, layer, metadata). Replaces the legacy client-side delete-then-add edit emulation. */ export const putBotsByBotIdMemoryByMemoryIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdMemoryByMemoryIdError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdMemoryByMemoryId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete all bot history messages * * Clear all persisted bot-level history messages */ export const deleteBotsByBotIdMessagesMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMessagesError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdMessages({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdMessagesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMessages', options); /** * List session history messages * * List messages for one session with optional pagination */ export const getBotsByBotIdMessagesQuery = defineQueryOptions, GetBotsByBotIdMessagesResponse, GetBotsByBotIdMessagesError>((options: Options) => ({ key: getBotsByBotIdMessagesQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMessages({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdMessagesLocateQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMessagesLocate', options); /** * Locate a bot history message * * Locate a session message by external message ID and return nearby UI turns */ export const getBotsByBotIdMessagesLocateQuery = defineQueryOptions, GetBotsByBotIdMessagesLocateResponse, GetBotsByBotIdMessagesLocateError>((options: Options) => ({ key: getBotsByBotIdMessagesLocateQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdMessagesLocate({ ...options, ...context, throwOnError: true }); return data; } })); /** * Execute a Web quick action * * Runs a typed Web quick action such as help or skill.list and returns a command_result or command_error envelope. */ export const postBotsByBotIdQuickActionsExecuteMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdQuickActionsExecuteError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdQuickActionsExecute({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdScheduleQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSchedule', options); /** * List schedules * * List schedules for current user */ export const getBotsByBotIdScheduleQuery = defineQueryOptions, GetBotsByBotIdScheduleResponse, GetBotsByBotIdScheduleError>((options: Options) => ({ key: getBotsByBotIdScheduleQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSchedule({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create schedule * * Create a schedule for current user */ export const postBotsByBotIdScheduleMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdScheduleError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSchedule({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete schedule logs * * Delete all schedule execution logs for a bot */ export const deleteBotsByBotIdScheduleLogsMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdScheduleLogsError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdScheduleLogs({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdScheduleLogsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdScheduleLogs', options); /** * List schedule logs * * List schedule execution logs for a bot */ export const getBotsByBotIdScheduleLogsQuery = defineQueryOptions, GetBotsByBotIdScheduleLogsResponse, GetBotsByBotIdScheduleLogsError>((options: Options) => ({ key: getBotsByBotIdScheduleLogsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdScheduleLogs({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete schedule * * Delete a schedule by ID */ export const deleteBotsByBotIdScheduleByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdScheduleByIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdScheduleById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdScheduleByIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdScheduleById', options); /** * Get schedule * * Get a schedule by ID */ export const getBotsByBotIdScheduleByIdQuery = defineQueryOptions, GetBotsByBotIdScheduleByIdResponse, GetBotsByBotIdScheduleByIdError>((options: Options) => ({ key: getBotsByBotIdScheduleByIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdScheduleById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update schedule * * Update a schedule by ID */ export const putBotsByBotIdScheduleByIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdScheduleByIdError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdScheduleById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdScheduleByIdLogsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdScheduleByIdLogs', options); /** * List schedule logs by schedule * * List execution logs for a specific schedule */ export const getBotsByBotIdScheduleByIdLogsQuery = defineQueryOptions, GetBotsByBotIdScheduleByIdLogsResponse, GetBotsByBotIdScheduleByIdLogsError>((options: Options) => ({ key: getBotsByBotIdScheduleByIdLogsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdScheduleByIdLogs({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdScheduleByIdSessionsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdScheduleByIdSessions', options); /** * List the sessions a schedule's runs created * * List a schedule's runs newest first, each with the session it ran in. Runs whose session was deleted are omitted; a run that failed before it had a session is included with an empty session_id. status is running until the run completes. */ export const getBotsByBotIdScheduleByIdSessionsQuery = defineQueryOptions, GetBotsByBotIdScheduleByIdSessionsResponse, GetBotsByBotIdScheduleByIdSessionsError>((options: Options) => ({ key: getBotsByBotIdScheduleByIdSessionsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdScheduleByIdSessions({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdSessionsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessions', options); /** * List bot sessions */ export const getBotsByBotIdSessionsQuery = defineQueryOptions, GetBotsByBotIdSessionsResponse, GetBotsByBotIdSessionsError>((options: Options) => ({ key: getBotsByBotIdSessionsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessions({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a new chat session */ export const postBotsByBotIdSessionsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessions({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsModelPreferenceSeedQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsModelPreferenceSeed', options); /** * Welcome composer model seed */ export const getBotsByBotIdSessionsModelPreferenceSeedQuery = defineQueryOptions, GetBotsByBotIdSessionsModelPreferenceSeedResponse, GetBotsByBotIdSessionsModelPreferenceSeedError>((options: Options) => ({ key: getBotsByBotIdSessionsModelPreferenceSeedQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsModelPreferenceSeed({ ...options, ...context, throwOnError: true }); return data; } })); /** * Soft-delete a session */ export const deleteBotsByBotIdSessionsBySessionIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdSessionsBySessionIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdSessionsBySessionId({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsBySessionIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionId', options); /** * Get a session by ID */ export const getBotsByBotIdSessionsBySessionIdQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdResponse, GetBotsByBotIdSessionsBySessionIdError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionId({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a session */ export const patchBotsByBotIdSessionsBySessionIdMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionId({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsBySessionIdAcpRuntimeQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdAcpRuntime', options); /** * Get ACP session runtime state */ export const getBotsByBotIdSessionsBySessionIdAcpRuntimeQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdAcpRuntimeResponse, GetBotsByBotIdSessionsBySessionIdAcpRuntimeError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdAcpRuntimeQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdAcpRuntime({ ...options, ...context, throwOnError: true }); return data; } })); /** * Ensure ACP session runtime is started */ export const postBotsByBotIdSessionsBySessionIdAcpRuntimeMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdAcpRuntimeError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdAcpRuntime({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set ACP session runtime mode * * Sends the selected agent-declared mode ID unchanged to session/set_mode. The selection applies only to this live session. */ export const patchBotsByBotIdSessionsBySessionIdAcpRuntimeModeMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModeError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionIdAcpRuntimeMode({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set ACP session runtime model */ export const patchBotsByBotIdSessionsBySessionIdAcpRuntimeModelMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeModelError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionIdAcpRuntimeModel({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set ACP session runtime reasoning effort */ export const patchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoningMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoningError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionIdAcpRuntimeReasoning({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Trigger immediate context compaction * * Run context compaction synchronously for a session */ export const postBotsByBotIdSessionsBySessionIdCompactMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdCompactError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdCompact({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsBySessionIdContextLifecycleQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdContextLifecycle', options); /** * Get session context lifecycle * * List run-keyed context lifecycle snapshots for a chat session, newest first, with page-scoped aggregate totals (cache read/write tokens, drop reasons, mutation kinds). Aggregates cover only the returned page; has_more reports older turns. Sessions predating run lifecycle persistence fall back to legacy assistant metadata (legacy_source). Per-fragment selection_decisions are never returned; each turn's selection trace carries their rolled-up counts and token costs */ export const getBotsByBotIdSessionsBySessionIdContextLifecycleQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdContextLifecycleResponse, GetBotsByBotIdSessionsBySessionIdContextLifecycleError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdContextLifecycleQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdContextLifecycle({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdSessionsBySessionIdFollowUpQueueQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdFollowUpQueue', options); /** * List pending follow-up inputs */ export const getBotsByBotIdSessionsBySessionIdFollowUpQueueQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdFollowUpQueueResponse, GetBotsByBotIdSessionsBySessionIdFollowUpQueueError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdFollowUpQueueQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdFollowUpQueue({ ...options, ...context, throwOnError: true }); return data; } })); /** * Enqueue follow-up input for the active session run */ export const postBotsByBotIdSessionsBySessionIdFollowUpQueueMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdFollowUpQueueError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdFollowUpQueue({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Reorder accepted follow-up inputs */ export const putBotsByBotIdSessionsBySessionIdFollowUpQueueReorderMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdSessionsBySessionIdFollowUpQueueReorderError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdSessionsBySessionIdFollowUpQueueReorder({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Cancel an accepted follow-up input */ export const deleteBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdSessionsBySessionIdFollowUpQueueByItemId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Edit an accepted follow-up input */ export const patchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionIdFollowUpQueueByItemId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Promote an accepted follow-up input to steer the active run */ export const postBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteerMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteerError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdFollowUpQueueByItemIdSteer({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Fork a chat session from an assistant reply */ export const postBotsByBotIdSessionsBySessionIdForkMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdForkError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdFork({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdInvocationsByInvocationId', options); /** * Look up the run admitted for a client invocation * * Read-only. Lets a client that lost the acknowledgement of a send learn whether the invocation was admitted and what state its run is in. An unknown invocation returns 200 with found=false. */ export const getBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdResponse, GetBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdInvocationsByInvocationIdQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdInvocationsByInvocationId({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdSessionsBySessionIdQueueQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdQueue', options); /** * List pending steer and follow-up inputs in one response */ export const getBotsByBotIdSessionsBySessionIdQueueQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdQueueResponse, GetBotsByBotIdSessionsBySessionIdQueueError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdQueueQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdQueue({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdSessionsBySessionIdRuntimeControlsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdRuntimeControls', options); /** * Get session runtime controls */ export const getBotsByBotIdSessionsBySessionIdRuntimeControlsQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdRuntimeControlsResponse, GetBotsByBotIdSessionsBySessionIdRuntimeControlsError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdRuntimeControlsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdRuntimeControls({ ...options, ...context, throwOnError: true }); return data; } })); /** * Execute a read or operation runtime command */ export const postBotsByBotIdSessionsBySessionIdRuntimeControlsCommandsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdRuntimeControlsCommandsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdRuntimeControlsCommands({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsBySessionIdRuntimeControlsGoalQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdRuntimeControlsGoal', options); /** * Get the runtime-owned goal */ export const getBotsByBotIdSessionsBySessionIdRuntimeControlsGoalQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdRuntimeControlsGoalResponse, GetBotsByBotIdSessionsBySessionIdRuntimeControlsGoalError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdRuntimeControlsGoalQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdRuntimeControlsGoal({ ...options, ...context, throwOnError: true }); return data; } })); /** * Pause or clear a runtime-owned goal */ export const postBotsByBotIdSessionsBySessionIdRuntimeControlsGoalMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdRuntimeControlsGoalError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdRuntimeControlsGoal({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set session runtime permission or planning mode */ export const patchBotsByBotIdSessionsBySessionIdRuntimeControlsModeMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdRuntimeControlsModeError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionIdRuntimeControlsMode({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSessionsBySessionIdStatusQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdStatus', options); /** * Get session info * * Get aggregated info for a chat session including message count, context usage, cache stats, and used skills */ export const getBotsByBotIdSessionsBySessionIdStatusQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdStatusResponse, GetBotsByBotIdSessionsBySessionIdStatusError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdStatusQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdStatus({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdSessionsBySessionIdSteerQueueQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSessionsBySessionIdSteerQueue', options); /** * List pending steer inputs */ export const getBotsByBotIdSessionsBySessionIdSteerQueueQuery = defineQueryOptions, GetBotsByBotIdSessionsBySessionIdSteerQueueResponse, GetBotsByBotIdSessionsBySessionIdSteerQueueError>((options: Options) => ({ key: getBotsByBotIdSessionsBySessionIdSteerQueueQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSessionsBySessionIdSteerQueue({ ...options, ...context, throwOnError: true }); return data; } })); /** * Enqueue steer input for the active session run */ export const postBotsByBotIdSessionsBySessionIdSteerQueueMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSessionsBySessionIdSteerQueueError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSessionsBySessionIdSteerQueue({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Reorder accepted steer inputs */ export const putBotsByBotIdSessionsBySessionIdSteerQueueReorderMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdSessionsBySessionIdSteerQueueReorderError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdSessionsBySessionIdSteerQueueReorder({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Cancel an accepted steer input */ export const deleteBotsByBotIdSessionsBySessionIdSteerQueueByItemIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdSessionsBySessionIdSteerQueueByItemIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdSessionsBySessionIdSteerQueueByItemId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Edit an accepted steer input */ export const patchBotsByBotIdSessionsBySessionIdSteerQueueByItemIdMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdSessionsBySessionIdSteerQueueByItemIdError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdSessionsBySessionIdSteerQueueByItemId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete user settings * * Remove agent settings for current user */ export const deleteBotsByBotIdSettingsMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdSettingsError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdSettings({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSettingsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSettings', options); /** * Get user settings * * Get agent settings for current user */ export const getBotsByBotIdSettingsQuery = defineQueryOptions, GetBotsByBotIdSettingsResponse, GetBotsByBotIdSettingsError>((options: Options) => ({ key: getBotsByBotIdSettingsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSettings({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update user settings * * Update or create agent settings for current user */ export const postBotsByBotIdSettingsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdSettingsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdSettings({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Update user settings * * Update or create agent settings for current user */ export const putBotsByBotIdSettingsMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdSettingsError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdSettings({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdSkillsCatalogQueryKey = (options: Options) => createQueryKey('getBotsByBotIdSkillsCatalog', options); /** * List runtime-safe skills for chat-time skill selection */ export const getBotsByBotIdSkillsCatalogQuery = defineQueryOptions, GetBotsByBotIdSkillsCatalogResponse, GetBotsByBotIdSkillsCatalogError>((options: Options) => ({ key: getBotsByBotIdSkillsCatalogQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdSkillsCatalog({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdStarterPromptsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdStarterPrompts', options); /** * Get new-chat starter prompts * * Suggestions for the current user's new chat with a bot, generated from the bot's memory, the user's recent session titles, the bot's installed Apps and its name. The server keeps nothing: pass the hash of the set you hold as known_hash, and the response says unchanged while that set is still current; otherwise a new set is generated, which can take a while. */ export const getBotsByBotIdStarterPromptsQuery = defineQueryOptions, GetBotsByBotIdStarterPromptsResponse, GetBotsByBotIdStarterPromptsError>((options: Options) => ({ key: getBotsByBotIdStarterPromptsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdStarterPrompts({ ...options, ...context, throwOnError: true }); return data; } })); /** * Generate a different set of new-chat starter prompts * * Generates a new set for the current user's new chat with a bot, steering away from the prompts already on screen. The returned hash is the same one Get reports for the current material, so later Get calls answer unchanged for the refreshed set. */ export const postBotsByBotIdStarterPromptsRefreshMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdStarterPromptsRefreshError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdStarterPromptsRefresh({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdTokenUsageQueryKey = (options: Options) => createQueryKey('getBotsByBotIdTokenUsage', options); /** * Get token usage statistics * * Get daily aggregated token usage for a bot, split by chat, discuss, and schedule session types, with optional model filter and per-model breakdown */ export const getBotsByBotIdTokenUsageQuery = defineQueryOptions, GetBotsByBotIdTokenUsageResponse, GetBotsByBotIdTokenUsageError>((options: Options) => ({ key: getBotsByBotIdTokenUsageQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdTokenUsage({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdTokenUsageRecordsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdTokenUsageRecords', options); /** * List per-call token usage records * * Paginated list of individual LLM call records (assistant messages with usage) for a bot, with optional model and session type filters */ export const getBotsByBotIdTokenUsageRecordsQuery = defineQueryOptions, GetBotsByBotIdTokenUsageRecordsResponse, GetBotsByBotIdTokenUsageRecordsError>((options: Options) => ({ key: getBotsByBotIdTokenUsageRecordsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdTokenUsageRecords({ ...options, ...context, throwOnError: true }); return data; } })); /** * Approve a pending tool call */ export const postBotsByBotIdToolApprovalsByApprovalIdApproveMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdToolApprovalsByApprovalIdApproveError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdToolApprovalsByApprovalIdApprove({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Reject a pending tool call */ export const postBotsByBotIdToolApprovalsByApprovalIdRejectMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdToolApprovalsByApprovalIdRejectError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdToolApprovalsByApprovalIdReject({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Unified MCP tools gateway * * MCP endpoint for tool discovery and invocation. */ export const postBotsByBotIdToolsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdToolsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdTools({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Synthesize speech for a bot * * Stream-synthesize text using the bot's configured TTS model, write to temp file */ export const postBotsByBotIdTtsSynthesizeMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdTtsSynthesizeError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdTtsSynthesize({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdUserAccessQueryKey = (options: Options) => createQueryKey('getBotsByBotIdUserAccess', options); /** * List bot user access grants * * List workspace user access grants for a bot, including the owner entry */ export const getBotsByBotIdUserAccessQuery = defineQueryOptions, GetBotsByBotIdUserAccessResponse, GetBotsByBotIdUserAccessError>((options: Options) => ({ key: getBotsByBotIdUserAccessQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdUserAccess({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create bot user access grant * * Grant a workspace user (or everyone) access to a bot with a permission set */ export const postBotsByBotIdUserAccessMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdUserAccessError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdUserAccess({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdUserAccessCandidatesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdUserAccessCandidates', options); /** * List grantable workspace members * * List workspace members that can be granted access to a bot */ export const getBotsByBotIdUserAccessCandidatesQuery = defineQueryOptions, GetBotsByBotIdUserAccessCandidatesResponse, GetBotsByBotIdUserAccessCandidatesError>((options: Options) => ({ key: getBotsByBotIdUserAccessCandidatesQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdUserAccessCandidates({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete bot user access grant * * Remove a workspace user access grant from a bot */ export const deleteBotsByBotIdUserAccessByGrantIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdUserAccessByGrantIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdUserAccessByGrantId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Update bot user access grant * * Update the permission set of a grant */ export const putBotsByBotIdUserAccessByGrantIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdUserAccessByGrantIdError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdUserAccessByGrantId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Send a message to a local channel * * Post a user message (with optional attachments) through the local channel pipeline. */ export const postBotsByBotIdWebMessagesMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdWebMessagesError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdWebMessages({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdWebWsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdWebWs', options); /** * WebSocket chat endpoint * * Upgrade to WebSocket for bidirectional chat streaming with abort support. */ export const getBotsByBotIdWebWsQuery = defineQueryOptions, unknown, GetBotsByBotIdWebWsError>((options: Options) => ({ key: getBotsByBotIdWebWsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdWebWs({ ...options, ...context, throwOnError: true }); return data; } })); export const getBotsByBotIdWorkdirsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdWorkdirs', options); /** * List a Bot's workdirs */ export const getBotsByBotIdWorkdirsQuery = defineQueryOptions, GetBotsByBotIdWorkdirsResponse, GetBotsByBotIdWorkdirsError>((options: Options) => ({ key: getBotsByBotIdWorkdirsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdWorkdirs({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a Bot workdir * * Registers a named working directory on a workspace target. The directory must already exist on that target. */ export const postBotsByBotIdWorkdirsMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdWorkdirsError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdWorkdirs({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdWorkdirsDirectoriesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdWorkdirsDirectories', options); /** * List directories for choosing a workdir path * * Lists the child directories of a directory on one workspace target, so a workdir path can be picked instead of typed. An empty path starts at the target's default directory: the data mount on the native workspace, the reported workspace base on a remote computer. */ export const getBotsByBotIdWorkdirsDirectoriesQuery = defineQueryOptions, GetBotsByBotIdWorkdirsDirectoriesResponse, GetBotsByBotIdWorkdirsDirectoriesError>((options: Options) => ({ key: getBotsByBotIdWorkdirsDirectoriesQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdWorkdirsDirectories({ ...options, ...context, throwOnError: true }); return data; } })); /** * Archive a Bot workdir * * Archiving refuses new session bindings but keeps existing sessions working: their directory never changes underneath them. */ export const deleteBotsByBotIdWorkdirsByWorkdirIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdWorkdirsByWorkdirIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdWorkdirsByWorkdirId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Rename a Bot workdir * * Only the name can change. The target and path are immutable: they are baked into the working directory of every session bound to this workdir. */ export const patchBotsByBotIdWorkdirsByWorkdirIdMutation = (options?: Partial>): UseMutationOptions, PatchBotsByBotIdWorkdirsByWorkdirIdError> => ({ mutation: async (vars) => { const { data } = await patchBotsByBotIdWorkdirsByWorkdirId({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdWorkdirsByWorkdirIdGitBranchQueryKey = (options: Options) => createQueryKey('getBotsByBotIdWorkdirsByWorkdirIdGitBranch', options); /** * Read a workdir's current Git branch */ export const getBotsByBotIdWorkdirsByWorkdirIdGitBranchQuery = defineQueryOptions, GetBotsByBotIdWorkdirsByWorkdirIdGitBranchResponse, GetBotsByBotIdWorkdirsByWorkdirIdGitBranchError>((options: Options) => ({ key: getBotsByBotIdWorkdirsByWorkdirIdGitBranchQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdWorkdirsByWorkdirIdGitBranch({ ...options, ...context, throwOnError: true }); return data; } })); /** * Switch a workdir to an existing local Git branch */ export const postBotsByBotIdWorkdirsByWorkdirIdGitBranchMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdWorkdirsByWorkdirIdGitBranchError> => ({ mutation: async (vars) => { const { data } = await postBotsByBotIdWorkdirsByWorkdirIdGitBranch({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByBotIdWorkspaceTargetsQueryKey = (options: Options) => createQueryKey('getBotsByBotIdWorkspaceTargets', options); /** * List a Bot's workspace targets */ export const getBotsByBotIdWorkspaceTargetsQuery = defineQueryOptions, GetBotsByBotIdWorkspaceTargetsResponse, GetBotsByBotIdWorkspaceTargetsError>((options: Options) => ({ key: getBotsByBotIdWorkspaceTargetsQueryKey(options), query: async (context) => { const { data } = await getBotsByBotIdWorkspaceTargets({ ...options, ...context, throwOnError: true }); return data; } })); /** * Set a Bot's Primary workspace target */ export const putBotsByBotIdWorkspaceTargetsPrimaryMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdWorkspaceTargetsPrimaryError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdWorkspaceTargetsPrimary({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Add or update a Remote Runtime workspace target */ export const putBotsByBotIdWorkspaceTargetsRemotesByRuntimeIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdWorkspaceTargetsRemotesByRuntimeIdError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdWorkspaceTargetsRemotesByRuntimeId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete a Remote Runtime workspace target * * Remote files and the Native workspace are not deleted. */ export const deleteBotsByBotIdWorkspaceTargetsByTargetIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdWorkspaceTargetsByTargetIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByBotIdWorkspaceTargetsByTargetId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Update tool approval for one workspace target * * The read/write/exec fields are mode shortcuts. tool_approval_config preserves and updates advanced bypass/force rules. */ export const putBotsByBotIdWorkspaceTargetsByTargetIdToolApprovalMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdWorkspaceTargetsByTargetIdToolApprovalError> => ({ mutation: async (vars) => { const { data } = await putBotsByBotIdWorkspaceTargetsByTargetIdToolApproval({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete bot * * Delete a bot user (owner/admin only) */ export const deleteBotsByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByIdError> => ({ mutation: async (vars) => { const { data } = await deleteBotsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByIdQueryKey = (options: Options) => createQueryKey('getBotsById', options); /** * Get bot details * * Get a bot by ID (owner/admin only) */ export const getBotsByIdQuery = defineQueryOptions, GetBotsByIdResponse, GetBotsByIdError>((options: Options) => ({ key: getBotsByIdQueryKey(options), query: async (context) => { const { data } = await getBotsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update bot details * * Update bot profile (owner/admin only) */ export const putBotsByIdMutation = (options?: Partial>): UseMutationOptions, PutBotsByIdError> => ({ mutation: async (vars) => { const { data } = await putBotsById({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete bot channel config * * Remove bot channel configuration */ export const deleteBotsByIdChannelByPlatformMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByIdChannelByPlatformError> => ({ mutation: async (vars) => { const { data } = await deleteBotsByIdChannelByPlatform({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByIdChannelByPlatformQueryKey = (options: Options) => createQueryKey('getBotsByIdChannelByPlatform', options); /** * Get bot channel config * * Get bot channel configuration */ export const getBotsByIdChannelByPlatformQuery = defineQueryOptions, GetBotsByIdChannelByPlatformResponse, GetBotsByIdChannelByPlatformError>((options: Options) => ({ key: getBotsByIdChannelByPlatformQueryKey(options), query: async (context) => { const { data } = await getBotsByIdChannelByPlatform({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update bot channel config * * Update bot channel configuration */ export const putBotsByIdChannelByPlatformMutation = (options?: Partial>): UseMutationOptions, PutBotsByIdChannelByPlatformError> => ({ mutation: async (vars) => { const { data } = await putBotsByIdChannelByPlatform({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Send message via bot channel * * Send a message using bot channel configuration */ export const postBotsByIdChannelByPlatformSendMutation = (options?: Partial>): UseMutationOptions, PostBotsByIdChannelByPlatformSendError> => ({ mutation: async (vars) => { const { data } = await postBotsByIdChannelByPlatformSend({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Send message via bot channel session token * * Send a message using a session-scoped token (reply only) */ export const postBotsByIdChannelByPlatformSendChatMutation = (options?: Partial>): UseMutationOptions, PostBotsByIdChannelByPlatformSendChatError> => ({ mutation: async (vars) => { const { data } = await postBotsByIdChannelByPlatformSendChat({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Update bot channel status * * Update bot channel enabled/disabled status */ export const patchBotsByIdChannelByPlatformStatusMutation = (options?: Partial>): UseMutationOptions, PatchBotsByIdChannelByPlatformStatusError> => ({ mutation: async (vars) => { const { data } = await patchBotsByIdChannelByPlatformStatus({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Set bot channel webhook endpoint * * Set the platform-side webhook endpoint for a bot channel. */ export const postBotsByIdChannelByPlatformWebhookEndpointMutation = (options?: Partial>): UseMutationOptions, PostBotsByIdChannelByPlatformWebhookEndpointError> => ({ mutation: async (vars) => { const { data } = await postBotsByIdChannelByPlatformWebhookEndpoint({ ...options, ...vars, throwOnError: true }); return data; } }); export const getBotsByIdChecksQueryKey = (options: Options) => createQueryKey('getBotsByIdChecks', options); /** * List bot runtime checks * * Evaluate bot attached resource checks in runtime */ export const getBotsByIdChecksQuery = defineQueryOptions, GetBotsByIdChecksResponse, GetBotsByIdChecksError>((options: Options) => ({ key: getBotsByIdChecksQueryKey(options), query: async (context) => { const { data } = await getBotsByIdChecks({ ...options, ...context, throwOnError: true }); return data; } })); /** * Transfer bot owner (admin only) * * Transfer bot ownership to another human user */ export const putBotsByIdOwnerMutation = (options?: Partial>): UseMutationOptions, PutBotsByIdOwnerError> => ({ mutation: async (vars) => { const { data } = await putBotsByIdOwner({ ...options, ...vars, throwOnError: true }); return data; } }); export const getChannelsQueryKey = (options?: Options) => createQueryKey('getChannels', options); /** * List channel capabilities and schemas * * List channel meta information including capabilities and schemas */ export const getChannelsQuery = defineQueryOptions, GetChannelsResponse, GetChannelsError>((options?: Options) => ({ key: getChannelsQueryKey(options), query: async (context) => { const { data } = await getChannels({ ...options, ...context, throwOnError: true }); return data; } })); export const getChannelsByPlatformQueryKey = (options: Options) => createQueryKey('getChannelsByPlatform', options); /** * Get channel capabilities and schemas * * Get channel meta information including capabilities and schemas */ export const getChannelsByPlatformQuery = defineQueryOptions, GetChannelsByPlatformResponse, GetChannelsByPlatformError>((options: Options) => ({ key: getChannelsByPlatformQueryKey(options), query: async (context) => { const { data } = await getChannelsByPlatform({ ...options, ...context, throwOnError: true }); return data; } })); export const getConnectorsCatalogQueryKey = (options?: Options) => createQueryKey('getConnectorsCatalog', options); /** * List connector catalog * * List providers available from the configured Connect-It deployment. */ export const getConnectorsCatalogQuery = defineQueryOptions, GetConnectorsCatalogResponse, GetConnectorsCatalogError>((options?: Options) => ({ key: getConnectorsCatalogQueryKey(options), query: async (context) => { const { data } = await getConnectorsCatalog({ ...options, ...context, throwOnError: true }); return data; } })); export const getFetchProvidersQueryKey = (options?: Options) => createQueryKey('getFetchProviders', options); /** * List fetch providers * * List configured fetch providers */ export const getFetchProvidersQuery = defineQueryOptions, GetFetchProvidersResponse, GetFetchProvidersError>((options?: Options) => ({ key: getFetchProvidersQueryKey(options), query: async (context) => { const { data } = await getFetchProviders({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a fetch provider * * Create a fetch provider configuration */ export const postFetchProvidersMutation = (options?: Partial>): UseMutationOptions, PostFetchProvidersError> => ({ mutation: async (vars) => { const { data } = await postFetchProviders({ ...options, ...vars, throwOnError: true }); return data; } }); export const getFetchProvidersMetaQueryKey = (options?: Options) => createQueryKey('getFetchProvidersMeta', options); /** * List fetch provider metadata * * List available fetch provider types and config schemas */ export const getFetchProvidersMetaQuery = defineQueryOptions, GetFetchProvidersMetaResponse, Error>((options?: Options) => ({ key: getFetchProvidersMetaQueryKey(options), query: async (context) => { const { data } = await getFetchProvidersMeta({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete a fetch provider * * Delete fetch provider by ID */ export const deleteFetchProvidersByIdMutation = (options?: Partial>): UseMutationOptions, DeleteFetchProvidersByIdError> => ({ mutation: async (vars) => { const { data } = await deleteFetchProvidersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getFetchProvidersByIdQueryKey = (options: Options) => createQueryKey('getFetchProvidersById', options); /** * Get a fetch provider * * Get fetch provider by ID */ export const getFetchProvidersByIdQuery = defineQueryOptions, GetFetchProvidersByIdResponse, GetFetchProvidersByIdError>((options: Options) => ({ key: getFetchProvidersByIdQueryKey(options), query: async (context) => { const { data } = await getFetchProvidersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a fetch provider * * Update fetch provider by ID */ export const putFetchProvidersByIdMutation = (options?: Partial>): UseMutationOptions, PutFetchProvidersByIdError> => ({ mutation: async (vars) => { const { data } = await putFetchProvidersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getMemoryConfigQueryKey = (options?: Options) => createQueryKey('getMemoryConfig', options); /** * Get Built-in Memory configuration * * Get the team-level Built-in Memory configuration */ export const getMemoryConfigQuery = defineQueryOptions, GetMemoryConfigResponse, GetMemoryConfigError>((options?: Options) => ({ key: getMemoryConfigQueryKey(options), query: async (context) => { const { data } = await getMemoryConfig({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update Built-in Memory configuration * * Update the team-level Built-in Memory configuration */ export const putMemoryConfigMutation = (options?: Partial>): UseMutationOptions, PutMemoryConfigError> => ({ mutation: async (vars) => { const { data } = await putMemoryConfig({ ...options, ...vars, throwOnError: true }); return data; } }); export const getModelsQueryKey = (options?: Options) => createQueryKey('getModels', options); /** * List all models * * Get a list of all configured models, optionally filtered by type or provider client type */ export const getModelsQuery = defineQueryOptions, GetModelsResponse, GetModelsError>((options?: Options) => ({ key: getModelsQueryKey(options), query: async (context) => { const { data } = await getModels({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a new model * * Create a new model configuration */ export const postModelsMutation = (options?: Partial>): UseMutationOptions, PostModelsError> => ({ mutation: async (vars) => { const { data } = await postModels({ ...options, ...vars, throwOnError: true }); return data; } }); export const getModelsCountQueryKey = (options?: Options) => createQueryKey('getModelsCount', options); /** * Get model count * * Get the total count of models, optionally filtered by type */ export const getModelsCountQuery = defineQueryOptions, GetModelsCountResponse, GetModelsCountError>((options?: Options) => ({ key: getModelsCountQueryKey(options), query: async (context) => { const { data } = await getModelsCount({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete model by model ID * * Delete a model configuration by its model_id field (e.g., gpt-4) */ export const deleteModelsModelByModelIdMutation = (options?: Partial>): UseMutationOptions, DeleteModelsModelByModelIdError> => ({ mutation: async (vars) => { const { data } = await deleteModelsModelByModelId({ ...options, ...vars, throwOnError: true }); return data; } }); export const getModelsModelByModelIdQueryKey = (options: Options) => createQueryKey('getModelsModelByModelId', options); /** * Get model by model ID * * Get a model configuration by its model_id field (e.g., gpt-4) */ export const getModelsModelByModelIdQuery = defineQueryOptions, GetModelsModelByModelIdResponse, GetModelsModelByModelIdError>((options: Options) => ({ key: getModelsModelByModelIdQueryKey(options), query: async (context) => { const { data } = await getModelsModelByModelId({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update model by model ID * * Update a model configuration by its model_id field (e.g., gpt-4) */ export const putModelsModelByModelIdMutation = (options?: Partial>): UseMutationOptions, PutModelsModelByModelIdError> => ({ mutation: async (vars) => { const { data } = await putModelsModelByModelId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Delete model by internal ID * * Delete a model configuration by its internal UUID */ export const deleteModelsByIdMutation = (options?: Partial>): UseMutationOptions, DeleteModelsByIdError> => ({ mutation: async (vars) => { const { data } = await deleteModelsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getModelsByIdQueryKey = (options: Options) => createQueryKey('getModelsById', options); /** * Get model by internal ID * * Get a model configuration by its internal UUID */ export const getModelsByIdQuery = defineQueryOptions, GetModelsByIdResponse, GetModelsByIdError>((options: Options) => ({ key: getModelsByIdQueryKey(options), query: async (context) => { const { data } = await getModelsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update model by internal ID * * Update a model configuration by its internal UUID */ export const putModelsByIdMutation = (options?: Partial>): UseMutationOptions, PutModelsByIdError> => ({ mutation: async (vars) => { const { data } = await putModelsById({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Test model connectivity * * Probe a model's provider endpoint using the model's real model_id and client_type to verify configuration */ export const postModelsByIdTestMutation = (options?: Partial>): UseMutationOptions, PostModelsByIdTestError> => ({ mutation: async (vars) => { const { data } = await postModelsByIdTest({ ...options, ...vars, throwOnError: true }); return data; } }); export const getOauthMcpCallbackQueryKey = (options?: Options) => createQueryKey('getOauthMcpCallback', options); /** * OAuth callback for MCP connections * * Exchanges the authorization code and renders a small completion page */ export const getOauthMcpCallbackQuery = defineQueryOptions, GetOauthMcpCallbackResponse, GetOauthMcpCallbackError>((options?: Options) => ({ key: getOauthMcpCallbackQueryKey(options), query: async (context) => { const { data } = await getOauthMcpCallback({ ...options, ...context, throwOnError: true }); return data; } })); export const getPingQueryKey = (options?: Options) => createQueryKey('getPing', options); /** * Health check with server capabilities */ export const getPingQuery = defineQueryOptions, GetPingResponse, Error>((options?: Options) => ({ key: getPingQueryKey(options), query: async (context) => { const { data } = await getPing({ ...options, ...context, throwOnError: true }); return data; } })); export const getProviderTemplatesQueryKey = (options?: Options) => createQueryKey('getProviderTemplates', options); /** * List provider templates * * List active global provider templates and whether the current tenant has configured each template */ export const getProviderTemplatesQuery = defineQueryOptions, GetProviderTemplatesResponse, GetProviderTemplatesError>((options?: Options) => ({ key: getProviderTemplatesQueryKey(options), query: async (context) => { const { data } = await getProviderTemplates({ ...options, ...context, throwOnError: true }); return data; } })); export const getProviderTemplatesByIdQueryKey = (options: Options) => createQueryKey('getProviderTemplatesById', options); /** * Get a provider template * * Get an active global provider template and its model catalog */ export const getProviderTemplatesByIdQuery = defineQueryOptions, GetProviderTemplatesByIdResponse, GetProviderTemplatesByIdError>((options: Options) => ({ key: getProviderTemplatesByIdQueryKey(options), query: async (context) => { const { data } = await getProviderTemplatesById({ ...options, ...context, throwOnError: true }); return data; } })); export const getProvidersQueryKey = (options?: Options) => createQueryKey('getProviders', options); /** * List all LLM providers * * Get a list of all configured LLM providers */ export const getProvidersQuery = defineQueryOptions, GetProvidersResponse, GetProvidersError>((options?: Options) => ({ key: getProvidersQueryKey(options), query: async (context) => { const { data } = await getProviders({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a new LLM provider * * Create a new LLM provider configuration */ export const postProvidersMutation = (options?: Partial>): UseMutationOptions, PostProvidersError> => ({ mutation: async (vars) => { const { data } = await postProviders({ ...options, ...vars, throwOnError: true }); return data; } }); export const getProvidersCountQueryKey = (options?: Options) => createQueryKey('getProvidersCount', options); /** * Count providers * * Get the total count of providers */ export const getProvidersCountQuery = defineQueryOptions, GetProvidersCountResponse, GetProvidersCountError>((options?: Options) => ({ key: getProvidersCountQueryKey(options), query: async (context) => { const { data } = await getProvidersCount({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a provider from a global template * * Materialize a tenant-owned provider only when the user saves a template configuration */ export const postProvidersFromTemplateMutation = (options?: Partial>): UseMutationOptions, PostProvidersFromTemplateError> => ({ mutation: async (vars) => { const { data } = await postProvidersFromTemplate({ ...options, ...vars, throwOnError: true }); return data; } }); export const getProvidersNameByNameQueryKey = (options: Options) => createQueryKey('getProvidersNameByName', options); /** * Get provider by name * * Get a provider configuration by its name */ export const getProvidersNameByNameQuery = defineQueryOptions, GetProvidersNameByNameResponse, GetProvidersNameByNameError>((options: Options) => ({ key: getProvidersNameByNameQueryKey(options), query: async (context) => { const { data } = await getProvidersNameByName({ ...options, ...context, throwOnError: true }); return data; } })); export const getProvidersOauthCallbackQueryKey = (options: Options) => createQueryKey('getProvidersOauthCallback', options); /** * OAuth2 callback for LLM providers */ export const getProvidersOauthCallbackQuery = defineQueryOptions, GetProvidersOauthCallbackResponse, GetProvidersOauthCallbackError>((options: Options) => ({ key: getProvidersOauthCallbackQueryKey(options), query: async (context) => { const { data } = await getProvidersOauthCallback({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete provider * * Delete a provider configuration */ export const deleteProvidersByIdMutation = (options?: Partial>): UseMutationOptions, DeleteProvidersByIdError> => ({ mutation: async (vars) => { const { data } = await deleteProvidersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getProvidersByIdQueryKey = (options: Options) => createQueryKey('getProvidersById', options); /** * Get provider by ID * * Get a provider configuration by its ID */ export const getProvidersByIdQuery = defineQueryOptions, GetProvidersByIdResponse, GetProvidersByIdError>((options: Options) => ({ key: getProvidersByIdQueryKey(options), query: async (context) => { const { data } = await getProvidersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update provider * * Update an existing provider configuration */ export const putProvidersByIdMutation = (options?: Partial>): UseMutationOptions, PutProvidersByIdError> => ({ mutation: async (vars) => { const { data } = await putProvidersById({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Import models from provider * * Fetch models from provider and import them */ export const postProvidersByIdImportModelsMutation = (options?: Partial>): UseMutationOptions, PostProvidersByIdImportModelsError> => ({ mutation: async (vars) => { const { data } = await postProvidersByIdImportModels({ ...options, ...vars, throwOnError: true }); return data; } }); export const getProvidersByIdModelsQueryKey = (options: Options) => createQueryKey('getProvidersByIdModels', options); /** * List provider models * * Get models for a provider by id, optionally filtered by type */ export const getProvidersByIdModelsQuery = defineQueryOptions, GetProvidersByIdModelsResponse, GetProvidersByIdModelsError>((options: Options) => ({ key: getProvidersByIdModelsQueryKey(options), query: async (context) => { const { data } = await getProvidersByIdModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getProvidersByIdOauthAuthorizeQueryKey = (options: Options) => createQueryKey('getProvidersByIdOauthAuthorize', options); /** * Start OAuth2 authorization for an LLM provider */ export const getProvidersByIdOauthAuthorizeQuery = defineQueryOptions, GetProvidersByIdOauthAuthorizeResponse, GetProvidersByIdOauthAuthorizeError>((options: Options) => ({ key: getProvidersByIdOauthAuthorizeQueryKey(options), query: async (context) => { const { data } = await getProvidersByIdOauthAuthorize({ ...options, ...context, throwOnError: true }); return data; } })); /** * Poll OAuth device authorization for an LLM provider */ export const postProvidersByIdOauthPollMutation = (options?: Partial>): UseMutationOptions, PostProvidersByIdOauthPollError> => ({ mutation: async (vars) => { const { data } = await postProvidersByIdOauthPoll({ ...options, ...vars, throwOnError: true }); return data; } }); export const getProvidersByIdOauthStatusQueryKey = (options: Options) => createQueryKey('getProvidersByIdOauthStatus', options); /** * Get OAuth2 status for an LLM provider */ export const getProvidersByIdOauthStatusQuery = defineQueryOptions, GetProvidersByIdOauthStatusResponse, GetProvidersByIdOauthStatusError>((options: Options) => ({ key: getProvidersByIdOauthStatusQueryKey(options), query: async (context) => { const { data } = await getProvidersByIdOauthStatus({ ...options, ...context, throwOnError: true }); return data; } })); /** * Revoke stored OAuth2 tokens for an LLM provider */ export const deleteProvidersByIdOauthTokenMutation = (options?: Partial>): UseMutationOptions, DeleteProvidersByIdOauthTokenError> => ({ mutation: async (vars) => { const { data } = await deleteProvidersByIdOauthToken({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Test provider connectivity * * Probe a provider's base URL to check reachability, supported client types, and embedding support */ export const postProvidersByIdTestMutation = (options?: Partial>): UseMutationOptions, PostProvidersByIdTestError> => ({ mutation: async (vars) => { const { data } = await postProvidersByIdTest({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSearchProvidersQueryKey = (options?: Options) => createQueryKey('getSearchProviders', options); /** * List search providers * * List configured search providers */ export const getSearchProvidersQuery = defineQueryOptions, GetSearchProvidersResponse, GetSearchProvidersError>((options?: Options) => ({ key: getSearchProvidersQueryKey(options), query: async (context) => { const { data } = await getSearchProviders({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a search provider * * Create a search provider configuration */ export const postSearchProvidersMutation = (options?: Partial>): UseMutationOptions, PostSearchProvidersError> => ({ mutation: async (vars) => { const { data } = await postSearchProviders({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSearchProvidersMetaQueryKey = (options?: Options) => createQueryKey('getSearchProvidersMeta', options); /** * List search provider metadata * * List available search provider types and config schemas */ export const getSearchProvidersMetaQuery = defineQueryOptions, GetSearchProvidersMetaResponse, Error>((options?: Options) => ({ key: getSearchProvidersMetaQueryKey(options), query: async (context) => { const { data } = await getSearchProvidersMeta({ ...options, ...context, throwOnError: true }); return data; } })); /** * Delete a search provider * * Delete search provider by ID */ export const deleteSearchProvidersByIdMutation = (options?: Partial>): UseMutationOptions, DeleteSearchProvidersByIdError> => ({ mutation: async (vars) => { const { data } = await deleteSearchProvidersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSearchProvidersByIdQueryKey = (options: Options) => createQueryKey('getSearchProvidersById', options); /** * Get a search provider * * Get search provider by ID */ export const getSearchProvidersByIdQuery = defineQueryOptions, GetSearchProvidersByIdResponse, GetSearchProvidersByIdError>((options: Options) => ({ key: getSearchProvidersByIdQueryKey(options), query: async (context) => { const { data } = await getSearchProvidersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a search provider * * Update search provider by ID */ export const putSearchProvidersByIdMutation = (options?: Partial>): UseMutationOptions, PutSearchProvidersByIdError> => ({ mutation: async (vars) => { const { data } = await putSearchProvidersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSiteIconQueryKey = (options: Options) => createQueryKey('getSiteIcon', options); /** * Resolve a public site's favicons for light and dark color schemes */ export const getSiteIconQuery = defineQueryOptions, GetSiteIconResponse, Error>((options: Options) => ({ key: getSiteIconQueryKey(options), query: async (context) => { const { data } = await getSiteIcon({ ...options, ...context, throwOnError: true }); return data; } })); export const getSpeechModelsQueryKey = (options?: Options) => createQueryKey('getSpeechModels', options); /** * List all speech models * * List all models of type 'speech' (filtered view of unified models table) */ export const getSpeechModelsQuery = defineQueryOptions, GetSpeechModelsResponse, GetSpeechModelsError>((options?: Options) => ({ key: getSpeechModelsQueryKey(options), query: async (context) => { const { data } = await getSpeechModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getSpeechModelsByIdQueryKey = (options: Options) => createQueryKey('getSpeechModelsById', options); /** * Get a speech model */ export const getSpeechModelsByIdQuery = defineQueryOptions, GetSpeechModelsByIdResponse, GetSpeechModelsByIdError>((options: Options) => ({ key: getSpeechModelsByIdQueryKey(options), query: async (context) => { const { data } = await getSpeechModelsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a speech model */ export const putSpeechModelsByIdMutation = (options?: Partial>): UseMutationOptions, PutSpeechModelsByIdError> => ({ mutation: async (vars) => { const { data } = await putSpeechModelsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSpeechModelsByIdCapabilitiesQueryKey = (options: Options) => createQueryKey('getSpeechModelsByIdCapabilities', options); /** * Get speech model capabilities */ export const getSpeechModelsByIdCapabilitiesQuery = defineQueryOptions, GetSpeechModelsByIdCapabilitiesResponse, GetSpeechModelsByIdCapabilitiesError>((options: Options) => ({ key: getSpeechModelsByIdCapabilitiesQueryKey(options), query: async (context) => { const { data } = await getSpeechModelsByIdCapabilities({ ...options, ...context, throwOnError: true }); return data; } })); /** * Test speech model synthesis * * Synthesize text using a specific model's config and return audio */ export const postSpeechModelsByIdTestMutation = (options?: Partial>): UseMutationOptions, PostSpeechModelsByIdTestError> => ({ mutation: async (vars) => { const { data } = await postSpeechModelsByIdTest({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSpeechProvidersQueryKey = (options?: Options) => createQueryKey('getSpeechProviders', options); /** * List speech providers * * List providers that support speech (filtered view of unified providers table) */ export const getSpeechProvidersQuery = defineQueryOptions, GetSpeechProvidersResponse, GetSpeechProvidersError>((options?: Options) => ({ key: getSpeechProvidersQueryKey(options), query: async (context) => { const { data } = await getSpeechProviders({ ...options, ...context, throwOnError: true }); return data; } })); export const getSpeechProvidersMetaQueryKey = (options?: Options) => createQueryKey('getSpeechProvidersMeta', options); /** * List speech provider metadata * * List available speech provider types with their models and capabilities */ export const getSpeechProvidersMetaQuery = defineQueryOptions, GetSpeechProvidersMetaResponse, Error>((options?: Options) => ({ key: getSpeechProvidersMetaQueryKey(options), query: async (context) => { const { data } = await getSpeechProvidersMeta({ ...options, ...context, throwOnError: true }); return data; } })); export const getSpeechProvidersByIdQueryKey = (options: Options) => createQueryKey('getSpeechProvidersById', options); /** * Get speech provider * * Get a speech provider with masked config values */ export const getSpeechProvidersByIdQuery = defineQueryOptions, GetSpeechProvidersByIdResponse, GetSpeechProvidersByIdError>((options: Options) => ({ key: getSpeechProvidersByIdQueryKey(options), query: async (context) => { const { data } = await getSpeechProvidersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Import speech models from provider * * Fetch models using the configured speech provider and import them into the unified models table */ export const postSpeechProvidersByIdImportModelsMutation = (options?: Partial>): UseMutationOptions, PostSpeechProvidersByIdImportModelsError> => ({ mutation: async (vars) => { const { data } = await postSpeechProvidersByIdImportModels({ ...options, ...vars, throwOnError: true }); return data; } }); export const getSpeechProvidersByIdModelsQueryKey = (options: Options) => createQueryKey('getSpeechProvidersByIdModels', options); /** * List speech models by provider * * List models of type 'speech' for a specific speech provider */ export const getSpeechProvidersByIdModelsQuery = defineQueryOptions, GetSpeechProvidersByIdModelsResponse, GetSpeechProvidersByIdModelsError>((options: Options) => ({ key: getSpeechProvidersByIdModelsQueryKey(options), query: async (context) => { const { data } = await getSpeechProvidersByIdModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketAppsQueryKey = (options?: Options) => createQueryKey('getSupermarketApps', options); /** * List Skill Apps across supermarket Registries */ export const getSupermarketAppsQuery = defineQueryOptions, GetSupermarketAppsResponse, GetSupermarketAppsError>((options?: Options) => ({ key: getSupermarketAppsQueryKey(options), query: async (context) => { const { data } = await getSupermarketApps({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketArtifactsIconByDigestQueryKey = (options: Options) => createQueryKey('getSupermarketArtifactsIconByDigest', options); /** * Get a mirrored Skill icon */ export const getSupermarketArtifactsIconByDigestQuery = defineQueryOptions, unknown, GetSupermarketArtifactsIconByDigestError>((options: Options) => ({ key: getSupermarketArtifactsIconByDigestQueryKey(options), query: async (context) => { const { data } = await getSupermarketArtifactsIconByDigest({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketCategoriesQueryKey = (options?: Options) => createQueryKey('getSupermarketCategories', options); /** * List App categories with localized names */ export const getSupermarketCategoriesQuery = defineQueryOptions, GetSupermarketCategoriesResponse, GetSupermarketCategoriesError>((options?: Options) => ({ key: getSupermarketCategoriesQueryKey(options), query: async (context) => { const { data } = await getSupermarketCategories({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketRegistriesQueryKey = (options?: Options) => createQueryKey('getSupermarketRegistries', options); /** * List Skill Registries from supermarket */ export const getSupermarketRegistriesQuery = defineQueryOptions, GetSupermarketRegistriesResponse, GetSupermarketRegistriesError>((options?: Options) => ({ key: getSupermarketRegistriesQueryKey(options), query: async (context) => { const { data } = await getSupermarketRegistries({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketRegistriesByRegistryIdAppsQueryKey = (options: Options) => createQueryKey('getSupermarketRegistriesByRegistryIdApps', options); /** * List Skill Apps in one Registry */ export const getSupermarketRegistriesByRegistryIdAppsQuery = defineQueryOptions, GetSupermarketRegistriesByRegistryIdAppsResponse, GetSupermarketRegistriesByRegistryIdAppsError>((options: Options) => ({ key: getSupermarketRegistriesByRegistryIdAppsQueryKey(options), query: async (context) => { const { data } = await getSupermarketRegistriesByRegistryIdApps({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketRegistriesByRegistryIdAppsByAppIdQueryKey = (options: Options) => createQueryKey('getSupermarketRegistriesByRegistryIdAppsByAppId', options); /** * Get a namespaced Skill App */ export const getSupermarketRegistriesByRegistryIdAppsByAppIdQuery = defineQueryOptions, GetSupermarketRegistriesByRegistryIdAppsByAppIdResponse, GetSupermarketRegistriesByRegistryIdAppsByAppIdError>((options: Options) => ({ key: getSupermarketRegistriesByRegistryIdAppsByAppIdQueryKey(options), query: async (context) => { const { data } = await getSupermarketRegistriesByRegistryIdAppsByAppId({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionQueryKey = (options: Options) => createQueryKey('getSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevision', options); /** * Get an immutable Skill App release */ export const getSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionQuery = defineQueryOptions, GetSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionResponse, GetSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionError>((options: Options) => ({ key: getSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevisionQueryKey(options), query: async (context) => { const { data } = await getSupermarketRegistriesByRegistryIdAppsByAppIdReleasesByRevision({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdQueryKey = (options: Options) => createQueryKey('getSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillId', options); /** * Get a namespaced Registry Skill */ export const getSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdQuery = defineQueryOptions, GetSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdResponse, GetSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdError>((options: Options) => ({ key: getSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillIdQueryKey(options), query: async (context) => { const { data } = await getSupermarketRegistriesByRegistryIdAppsByAppIdSkillsBySkillId({ ...options, ...context, throwOnError: true }); return data; } })); export const getSupermarketSkillsQueryKey = (options?: Options) => createQueryKey('getSupermarketSkills', options); /** * List Skills across supermarket Registries */ export const getSupermarketSkillsQuery = defineQueryOptions, GetSupermarketSkillsResponse, GetSupermarketSkillsError>((options?: Options) => ({ key: getSupermarketSkillsQueryKey(options), query: async (context) => { const { data } = await getSupermarketSkills({ ...options, ...context, throwOnError: true }); return data; } })); export const getTranscriptionModelsQueryKey = (options?: Options) => createQueryKey('getTranscriptionModels', options); /** * List all transcription models * * List all models of type 'transcription' (filtered view of unified models table) */ export const getTranscriptionModelsQuery = defineQueryOptions, GetTranscriptionModelsResponse, GetTranscriptionModelsError>((options?: Options) => ({ key: getTranscriptionModelsQueryKey(options), query: async (context) => { const { data } = await getTranscriptionModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getTranscriptionModelsByIdQueryKey = (options: Options) => createQueryKey('getTranscriptionModelsById', options); /** * Get a transcription model */ export const getTranscriptionModelsByIdQuery = defineQueryOptions, GetTranscriptionModelsByIdResponse, GetTranscriptionModelsByIdError>((options: Options) => ({ key: getTranscriptionModelsByIdQueryKey(options), query: async (context) => { const { data } = await getTranscriptionModelsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a transcription model */ export const putTranscriptionModelsByIdMutation = (options?: Partial>): UseMutationOptions, PutTranscriptionModelsByIdError> => ({ mutation: async (vars) => { const { data } = await putTranscriptionModelsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getTranscriptionModelsByIdCapabilitiesQueryKey = (options: Options) => createQueryKey('getTranscriptionModelsByIdCapabilities', options); /** * Get transcription model capabilities */ export const getTranscriptionModelsByIdCapabilitiesQuery = defineQueryOptions, GetTranscriptionModelsByIdCapabilitiesResponse, GetTranscriptionModelsByIdCapabilitiesError>((options: Options) => ({ key: getTranscriptionModelsByIdCapabilitiesQueryKey(options), query: async (context) => { const { data } = await getTranscriptionModelsByIdCapabilities({ ...options, ...context, throwOnError: true }); return data; } })); /** * Test transcription model recognition * * Transcribe uploaded audio using a specific model's config and return structured text output */ export const postTranscriptionModelsByIdTestMutation = (options?: Partial>): UseMutationOptions, PostTranscriptionModelsByIdTestError> => ({ mutation: async (vars) => { const { data } = await postTranscriptionModelsByIdTest({ ...options, ...vars, throwOnError: true }); return data; } }); export const getTranscriptionProvidersQueryKey = (options?: Options) => createQueryKey('getTranscriptionProviders', options); /** * List transcription providers * * List providers that support transcription (filtered view of unified providers table) */ export const getTranscriptionProvidersQuery = defineQueryOptions, GetTranscriptionProvidersResponse, GetTranscriptionProvidersError>((options?: Options) => ({ key: getTranscriptionProvidersQueryKey(options), query: async (context) => { const { data } = await getTranscriptionProviders({ ...options, ...context, throwOnError: true }); return data; } })); export const getTranscriptionProvidersMetaQueryKey = (options?: Options) => createQueryKey('getTranscriptionProvidersMeta', options); /** * List transcription provider metadata * * List available transcription provider types with their models and capabilities */ export const getTranscriptionProvidersMetaQuery = defineQueryOptions, GetTranscriptionProvidersMetaResponse, Error>((options?: Options) => ({ key: getTranscriptionProvidersMetaQueryKey(options), query: async (context) => { const { data } = await getTranscriptionProvidersMeta({ ...options, ...context, throwOnError: true }); return data; } })); export const getTranscriptionProvidersByIdQueryKey = (options: Options) => createQueryKey('getTranscriptionProvidersById', options); /** * Get speech provider * * Get a speech provider with masked config values */ export const getTranscriptionProvidersByIdQuery = defineQueryOptions, GetTranscriptionProvidersByIdResponse, GetTranscriptionProvidersByIdError>((options: Options) => ({ key: getTranscriptionProvidersByIdQueryKey(options), query: async (context) => { const { data } = await getTranscriptionProvidersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Import transcription models from provider * * Fetch models using the configured transcription provider and import them into the unified models table */ export const postTranscriptionProvidersByIdImportModelsMutation = (options?: Partial>): UseMutationOptions, PostTranscriptionProvidersByIdImportModelsError> => ({ mutation: async (vars) => { const { data } = await postTranscriptionProvidersByIdImportModels({ ...options, ...vars, throwOnError: true }); return data; } }); export const getTranscriptionProvidersByIdModelsQueryKey = (options: Options) => createQueryKey('getTranscriptionProvidersByIdModels', options); /** * List transcription models by provider * * List models of type 'transcription' for a specific transcription provider */ export const getTranscriptionProvidersByIdModelsQuery = defineQueryOptions, GetTranscriptionProvidersByIdModelsResponse, GetTranscriptionProvidersByIdModelsError>((options: Options) => ({ key: getTranscriptionProvidersByIdModelsQueryKey(options), query: async (context) => { const { data } = await getTranscriptionProvidersByIdModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getUsersQueryKey = (options?: Options) => createQueryKey('getUsers', options); /** * List users (admin only) * * List users */ export const getUsersQuery = defineQueryOptions, GetUsersResponse, GetUsersError>((options?: Options) => ({ key: getUsersQueryKey(options), query: async (context) => { const { data } = await getUsers({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create human user (admin only) * * Create a new human user account */ export const postUsersMutation = (options?: Partial>): UseMutationOptions, PostUsersError> => ({ mutation: async (vars) => { const { data } = await postUsers({ ...options, ...vars, throwOnError: true }); return data; } }); export const getUsersMeQueryKey = (options?: Options) => createQueryKey('getUsersMe', options); /** * Get current user * * Get current user profile */ export const getUsersMeQuery = defineQueryOptions, GetUsersMeResponse, GetUsersMeError>((options?: Options) => ({ key: getUsersMeQueryKey(options), query: async (context) => { const { data } = await getUsersMe({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update current user profile * * Update current user profile and preferences */ export const putUsersMeMutation = (options?: Partial>): UseMutationOptions, PutUsersMeError> => ({ mutation: async (vars) => { const { data } = await putUsersMe({ ...options, ...vars, throwOnError: true }); return data; } }); export const getUsersMeChannelIdentitiesQueryKey = (options?: Options) => createQueryKey('getUsersMeChannelIdentities', options); /** * List connected channel identities * * List the IM channel identities bound to the current user's account */ export const getUsersMeChannelIdentitiesQuery = defineQueryOptions, GetUsersMeChannelIdentitiesResponse, GetUsersMeChannelIdentitiesError>((options?: Options) => ({ key: getUsersMeChannelIdentitiesQueryKey(options), query: async (context) => { const { data } = await getUsersMeChannelIdentities({ ...options, ...context, throwOnError: true }); return data; } })); /** * Disconnect a channel identity * * Remove a channel identity binding from the current user's account */ export const deleteUsersMeChannelIdentitiesByChannelIdentityIdMutation = (options?: Partial>): UseMutationOptions, DeleteUsersMeChannelIdentitiesByChannelIdentityIdError> => ({ mutation: async (vars) => { const { data } = await deleteUsersMeChannelIdentitiesByChannelIdentityId({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Issue an account link code * * Generate a one-time code to send as /link in IM to bind that channel identity to your account */ export const postUsersMeChannelLinksMutation = (options?: Partial>): UseMutationOptions, PostUsersMeChannelLinksError> => ({ mutation: async (vars) => { const { data } = await postUsersMeChannelLinks({ ...options, ...vars, throwOnError: true }); return data; } }); export const getUsersMeChannelsByPlatformQueryKey = (options: Options) => createQueryKey('getUsersMeChannelsByPlatform', options); /** * Get channel user config * * Get channel binding configuration for current user */ export const getUsersMeChannelsByPlatformQuery = defineQueryOptions, GetUsersMeChannelsByPlatformResponse, GetUsersMeChannelsByPlatformError>((options: Options) => ({ key: getUsersMeChannelsByPlatformQueryKey(options), query: async (context) => { const { data } = await getUsersMeChannelsByPlatform({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update channel user config * * Update channel binding configuration for current user */ export const putUsersMeChannelsByPlatformMutation = (options?: Partial>): UseMutationOptions, PutUsersMeChannelsByPlatformError> => ({ mutation: async (vars) => { const { data } = await putUsersMeChannelsByPlatform({ ...options, ...vars, throwOnError: true }); return data; } }); export const getUsersMeComputerAccessQueryKey = (options?: Options) => createQueryKey('getUsersMeComputerAccess', options); /** * List the caller's bot-to-Computer access grants * * Every live Remote Runtime mount held by the caller's bots, across all of their runtimes. */ export const getUsersMeComputerAccessQuery = defineQueryOptions, GetUsersMeComputerAccessResponse, GetUsersMeComputerAccessError>((options?: Options) => ({ key: getUsersMeComputerAccessQueryKey(options), query: async (context) => { const { data } = await getUsersMeComputerAccess({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update current user password * * Update current user password with current password check */ export const putUsersMePasswordMutation = (options?: Partial>): UseMutationOptions, PutUsersMePasswordError> => ({ mutation: async (vars) => { const { data } = await putUsersMePassword({ ...options, ...vars, throwOnError: true }); return data; } }); export const getUsersMeRuntimesQueryKey = (options?: Options) => createQueryKey('getUsersMeRuntimes', options); /** * List Remote Runtime credentials */ export const getUsersMeRuntimesQuery = defineQueryOptions, GetUsersMeRuntimesResponse, GetUsersMeRuntimesError>((options?: Options) => ({ key: getUsersMeRuntimesQueryKey(options), query: async (context) => { const { data } = await getUsersMeRuntimes({ ...options, ...context, throwOnError: true }); return data; } })); /** * Create a Remote Runtime credential * * Register a Remote Runtime and return its reusable API token. */ export const postUsersMeRuntimesMutation = (options?: Partial>): UseMutationOptions, PostUsersMeRuntimesError> => ({ mutation: async (vars) => { const { data } = await postUsersMeRuntimes({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Revoke a Remote Runtime credential */ export const deleteUsersMeRuntimesByIdMutation = (options?: Partial>): UseMutationOptions, DeleteUsersMeRuntimesByIdError> => ({ mutation: async (vars) => { const { data } = await deleteUsersMeRuntimesById({ ...options, ...vars, throwOnError: true }); return data; } }); /** * Deactivate member (admin only) * * Deactivate the member in the current workspace without changing global credentials */ export const deleteUsersByIdMutation = (options?: Partial>): UseMutationOptions, DeleteUsersByIdError> => ({ mutation: async (vars) => { const { data } = await deleteUsersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getUsersByIdQueryKey = (options: Options) => createQueryKey('getUsersById', options); /** * Get user by ID * * Get user details (self or admin only) */ export const getUsersByIdQuery = defineQueryOptions, GetUsersByIdResponse, GetUsersByIdError>((options: Options) => ({ key: getUsersByIdQueryKey(options), query: async (context) => { const { data } = await getUsersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update user (admin only) * * Update the user's role or membership status in the current workspace */ export const putUsersByIdMutation = (options?: Partial>): UseMutationOptions, PutUsersByIdError> => ({ mutation: async (vars) => { const { data } = await putUsersById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getVideoModelsQueryKey = (options?: Options) => createQueryKey('getVideoModels', options); /** * List all video models */ export const getVideoModelsQuery = defineQueryOptions, GetVideoModelsResponse, GetVideoModelsError>((options?: Options) => ({ key: getVideoModelsQueryKey(options), query: async (context) => { const { data } = await getVideoModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getVideoModelsByIdQueryKey = (options: Options) => createQueryKey('getVideoModelsById', options); /** * Get a video model */ export const getVideoModelsByIdQuery = defineQueryOptions, GetVideoModelsByIdResponse, GetVideoModelsByIdError>((options: Options) => ({ key: getVideoModelsByIdQueryKey(options), query: async (context) => { const { data } = await getVideoModelsById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Update a video model */ export const putVideoModelsByIdMutation = (options?: Partial>): UseMutationOptions, PutVideoModelsByIdError> => ({ mutation: async (vars) => { const { data } = await putVideoModelsById({ ...options, ...vars, throwOnError: true }); return data; } }); export const getVideoProvidersQueryKey = (options?: Options) => createQueryKey('getVideoProviders', options); /** * List video providers * * List providers that support video generation */ export const getVideoProvidersQuery = defineQueryOptions, GetVideoProvidersResponse, GetVideoProvidersError>((options?: Options) => ({ key: getVideoProvidersQueryKey(options), query: async (context) => { const { data } = await getVideoProviders({ ...options, ...context, throwOnError: true }); return data; } })); export const getVideoProvidersMetaQueryKey = (options?: Options) => createQueryKey('getVideoProvidersMeta', options); /** * List video provider metadata * * List available video provider types with their models and capabilities */ export const getVideoProvidersMetaQuery = defineQueryOptions, GetVideoProvidersMetaResponse, Error>((options?: Options) => ({ key: getVideoProvidersMetaQueryKey(options), query: async (context) => { const { data } = await getVideoProvidersMeta({ ...options, ...context, throwOnError: true }); return data; } })); export const getVideoProvidersByIdQueryKey = (options: Options) => createQueryKey('getVideoProvidersById', options); /** * Get video provider */ export const getVideoProvidersByIdQuery = defineQueryOptions, GetVideoProvidersByIdResponse, GetVideoProvidersByIdError>((options: Options) => ({ key: getVideoProvidersByIdQueryKey(options), query: async (context) => { const { data } = await getVideoProvidersById({ ...options, ...context, throwOnError: true }); return data; } })); /** * Import video models from provider */ export const postVideoProvidersByIdImportModelsMutation = (options?: Partial>): UseMutationOptions, PostVideoProvidersByIdImportModelsError> => ({ mutation: async (vars) => { const { data } = await postVideoProvidersByIdImportModels({ ...options, ...vars, throwOnError: true }); return data; } }); export const getVideoProvidersByIdModelsQueryKey = (options: Options) => createQueryKey('getVideoProvidersByIdModels', options); /** * List video models by provider */ export const getVideoProvidersByIdModelsQuery = defineQueryOptions, GetVideoProvidersByIdModelsResponse, GetVideoProvidersByIdModelsError>((options: Options) => ({ key: getVideoProvidersByIdModelsQueryKey(options), query: async (context) => { const { data } = await getVideoProvidersByIdModels({ ...options, ...context, throwOnError: true }); return data; } })); export const getWebhookTunnelStatusQueryKey = (options?: Options) => createQueryKey('getWebhookTunnelStatus', options); /** * Get webhook tunnel status */ export const getWebhookTunnelStatusQuery = defineQueryOptions, GetWebhookTunnelStatusResponse, Error>((options?: Options) => ({ key: getWebhookTunnelStatusQueryKey(options), query: async (context) => { const { data } = await getWebhookTunnelStatus({ ...options, ...context, throwOnError: true }); return data; } })); export const getWorkspaceDependenciesQueryKey = (options?: Options) => createQueryKey('getWorkspaceDependencies', options); /** * List published workspace dependency metadata * * Reads names, descriptions and verified icon URLs without inspecting or starting a bot workspace. */ export const getWorkspaceDependenciesQuery = defineQueryOptions, GetWorkspaceDependenciesResponse, GetWorkspaceDependenciesError>((options?: Options) => ({ key: getWorkspaceDependenciesQueryKey(options), query: async (context) => { const { data } = await getWorkspaceDependencies({ ...options, ...context, throwOnError: true }); return data; } })); export const getWorkspaceDependenciesIconsByDigestQueryKey = (options: Options) => createQueryKey('getWorkspaceDependenciesIconsByDigest', options); /** * Read a cached verified dependency icon */ export const getWorkspaceDependenciesIconsByDigestQuery = defineQueryOptions, unknown, GetWorkspaceDependenciesIconsByDigestError>((options: Options) => ({ key: getWorkspaceDependenciesIconsByDigestQueryKey(options), query: async (context) => { const { data } = await getWorkspaceDependenciesIconsByDigest({ ...options, ...context, throwOnError: true }); return data; } }));