mirror of
https://github.com/langgenius/dify.git
synced 2026-05-23 02:18:23 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
4299 lines
135 KiB
TypeScript
4299 lines
135 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import {
|
|
zDeleteAppsByAppIdAnnotationsByAnnotationIdPath,
|
|
zDeleteAppsByAppIdAnnotationsByAnnotationIdResponse,
|
|
zDeleteAppsByAppIdAnnotationsPath,
|
|
zDeleteAppsByAppIdAnnotationsResponse,
|
|
zDeleteAppsByAppIdChatConversationsByConversationIdPath,
|
|
zDeleteAppsByAppIdChatConversationsByConversationIdResponse,
|
|
zDeleteAppsByAppIdCompletionConversationsByConversationIdPath,
|
|
zDeleteAppsByAppIdCompletionConversationsByConversationIdResponse,
|
|
zDeleteAppsByAppIdPath,
|
|
zDeleteAppsByAppIdResponse,
|
|
zDeleteAppsByAppIdTraceConfigBody,
|
|
zDeleteAppsByAppIdTraceConfigPath,
|
|
zDeleteAppsByAppIdTraceConfigResponse,
|
|
zDeleteAppsByAppIdWorkflowCommentsByCommentIdPath,
|
|
zDeleteAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdPath,
|
|
zDeleteAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdResponse,
|
|
zDeleteAppsByAppIdWorkflowCommentsByCommentIdResponse,
|
|
zDeleteAppsByAppIdWorkflowsByWorkflowIdPath,
|
|
zDeleteAppsByAppIdWorkflowsByWorkflowIdResponse,
|
|
zDeleteAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesPath,
|
|
zDeleteAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesResponse,
|
|
zDeleteAppsByAppIdWorkflowsDraftVariablesByVariableIdPath,
|
|
zDeleteAppsByAppIdWorkflowsDraftVariablesByVariableIdResponse,
|
|
zDeleteAppsByAppIdWorkflowsDraftVariablesPath,
|
|
zDeleteAppsByAppIdWorkflowsDraftVariablesResponse,
|
|
zDeleteAppsByResourceIdApiKeysByApiKeyIdPath,
|
|
zDeleteAppsByResourceIdApiKeysByApiKeyIdResponse,
|
|
zGetAppsByAppIdAdvancedChatWorkflowRunsCountPath,
|
|
zGetAppsByAppIdAdvancedChatWorkflowRunsCountQuery,
|
|
zGetAppsByAppIdAdvancedChatWorkflowRunsCountResponse,
|
|
zGetAppsByAppIdAdvancedChatWorkflowRunsPath,
|
|
zGetAppsByAppIdAdvancedChatWorkflowRunsQuery,
|
|
zGetAppsByAppIdAdvancedChatWorkflowRunsResponse,
|
|
zGetAppsByAppIdAgentLogsPath,
|
|
zGetAppsByAppIdAgentLogsQuery,
|
|
zGetAppsByAppIdAgentLogsResponse,
|
|
zGetAppsByAppIdAnnotationReplyByActionStatusByJobIdPath,
|
|
zGetAppsByAppIdAnnotationReplyByActionStatusByJobIdResponse,
|
|
zGetAppsByAppIdAnnotationsBatchImportStatusByJobIdPath,
|
|
zGetAppsByAppIdAnnotationsBatchImportStatusByJobIdResponse,
|
|
zGetAppsByAppIdAnnotationsByAnnotationIdHitHistoriesPath,
|
|
zGetAppsByAppIdAnnotationsByAnnotationIdHitHistoriesQuery,
|
|
zGetAppsByAppIdAnnotationsByAnnotationIdHitHistoriesResponse,
|
|
zGetAppsByAppIdAnnotationsCountPath,
|
|
zGetAppsByAppIdAnnotationsCountResponse,
|
|
zGetAppsByAppIdAnnotationSettingPath,
|
|
zGetAppsByAppIdAnnotationSettingResponse,
|
|
zGetAppsByAppIdAnnotationsExportPath,
|
|
zGetAppsByAppIdAnnotationsExportResponse,
|
|
zGetAppsByAppIdAnnotationsPath,
|
|
zGetAppsByAppIdAnnotationsQuery,
|
|
zGetAppsByAppIdAnnotationsResponse,
|
|
zGetAppsByAppIdChatConversationsByConversationIdPath,
|
|
zGetAppsByAppIdChatConversationsByConversationIdResponse,
|
|
zGetAppsByAppIdChatConversationsPath,
|
|
zGetAppsByAppIdChatConversationsQuery,
|
|
zGetAppsByAppIdChatConversationsResponse,
|
|
zGetAppsByAppIdChatMessagesByMessageIdSuggestedQuestionsPath,
|
|
zGetAppsByAppIdChatMessagesByMessageIdSuggestedQuestionsResponse,
|
|
zGetAppsByAppIdChatMessagesPath,
|
|
zGetAppsByAppIdChatMessagesQuery,
|
|
zGetAppsByAppIdChatMessagesResponse,
|
|
zGetAppsByAppIdCompletionConversationsByConversationIdPath,
|
|
zGetAppsByAppIdCompletionConversationsByConversationIdResponse,
|
|
zGetAppsByAppIdCompletionConversationsPath,
|
|
zGetAppsByAppIdCompletionConversationsQuery,
|
|
zGetAppsByAppIdCompletionConversationsResponse,
|
|
zGetAppsByAppIdConversationVariablesPath,
|
|
zGetAppsByAppIdConversationVariablesQuery,
|
|
zGetAppsByAppIdConversationVariablesResponse,
|
|
zGetAppsByAppIdExportPath,
|
|
zGetAppsByAppIdExportQuery,
|
|
zGetAppsByAppIdExportResponse,
|
|
zGetAppsByAppIdFeedbacksExportPath,
|
|
zGetAppsByAppIdFeedbacksExportQuery,
|
|
zGetAppsByAppIdFeedbacksExportResponse,
|
|
zGetAppsByAppIdMessagesByMessageIdPath,
|
|
zGetAppsByAppIdMessagesByMessageIdResponse,
|
|
zGetAppsByAppIdPath,
|
|
zGetAppsByAppIdResponse,
|
|
zGetAppsByAppIdServerPath,
|
|
zGetAppsByAppIdServerResponse,
|
|
zGetAppsByAppIdStatisticsAverageResponseTimePath,
|
|
zGetAppsByAppIdStatisticsAverageResponseTimeQuery,
|
|
zGetAppsByAppIdStatisticsAverageResponseTimeResponse,
|
|
zGetAppsByAppIdStatisticsAverageSessionInteractionsPath,
|
|
zGetAppsByAppIdStatisticsAverageSessionInteractionsQuery,
|
|
zGetAppsByAppIdStatisticsAverageSessionInteractionsResponse,
|
|
zGetAppsByAppIdStatisticsDailyConversationsPath,
|
|
zGetAppsByAppIdStatisticsDailyConversationsQuery,
|
|
zGetAppsByAppIdStatisticsDailyConversationsResponse,
|
|
zGetAppsByAppIdStatisticsDailyEndUsersPath,
|
|
zGetAppsByAppIdStatisticsDailyEndUsersQuery,
|
|
zGetAppsByAppIdStatisticsDailyEndUsersResponse,
|
|
zGetAppsByAppIdStatisticsDailyMessagesPath,
|
|
zGetAppsByAppIdStatisticsDailyMessagesQuery,
|
|
zGetAppsByAppIdStatisticsDailyMessagesResponse,
|
|
zGetAppsByAppIdStatisticsTokenCostsPath,
|
|
zGetAppsByAppIdStatisticsTokenCostsQuery,
|
|
zGetAppsByAppIdStatisticsTokenCostsResponse,
|
|
zGetAppsByAppIdStatisticsTokensPerSecondPath,
|
|
zGetAppsByAppIdStatisticsTokensPerSecondQuery,
|
|
zGetAppsByAppIdStatisticsTokensPerSecondResponse,
|
|
zGetAppsByAppIdStatisticsUserSatisfactionRatePath,
|
|
zGetAppsByAppIdStatisticsUserSatisfactionRateQuery,
|
|
zGetAppsByAppIdStatisticsUserSatisfactionRateResponse,
|
|
zGetAppsByAppIdTextToAudioVoicesPath,
|
|
zGetAppsByAppIdTextToAudioVoicesQuery,
|
|
zGetAppsByAppIdTextToAudioVoicesResponse,
|
|
zGetAppsByAppIdTraceConfigPath,
|
|
zGetAppsByAppIdTraceConfigQuery,
|
|
zGetAppsByAppIdTraceConfigResponse,
|
|
zGetAppsByAppIdTracePath,
|
|
zGetAppsByAppIdTraceResponse,
|
|
zGetAppsByAppIdTriggersPath,
|
|
zGetAppsByAppIdTriggersResponse,
|
|
zGetAppsByAppIdWorkflowAppLogsPath,
|
|
zGetAppsByAppIdWorkflowAppLogsQuery,
|
|
zGetAppsByAppIdWorkflowAppLogsResponse,
|
|
zGetAppsByAppIdWorkflowArchivedLogsPath,
|
|
zGetAppsByAppIdWorkflowArchivedLogsQuery,
|
|
zGetAppsByAppIdWorkflowArchivedLogsResponse,
|
|
zGetAppsByAppIdWorkflowCommentsByCommentIdPath,
|
|
zGetAppsByAppIdWorkflowCommentsByCommentIdResponse,
|
|
zGetAppsByAppIdWorkflowCommentsMentionUsersPath,
|
|
zGetAppsByAppIdWorkflowCommentsMentionUsersResponse,
|
|
zGetAppsByAppIdWorkflowCommentsPath,
|
|
zGetAppsByAppIdWorkflowCommentsResponse,
|
|
zGetAppsByAppIdWorkflowRunsByRunIdExportPath,
|
|
zGetAppsByAppIdWorkflowRunsByRunIdExportResponse,
|
|
zGetAppsByAppIdWorkflowRunsByRunIdNodeExecutionsPath,
|
|
zGetAppsByAppIdWorkflowRunsByRunIdNodeExecutionsResponse,
|
|
zGetAppsByAppIdWorkflowRunsByRunIdPath,
|
|
zGetAppsByAppIdWorkflowRunsByRunIdResponse,
|
|
zGetAppsByAppIdWorkflowRunsCountPath,
|
|
zGetAppsByAppIdWorkflowRunsCountQuery,
|
|
zGetAppsByAppIdWorkflowRunsCountResponse,
|
|
zGetAppsByAppIdWorkflowRunsPath,
|
|
zGetAppsByAppIdWorkflowRunsQuery,
|
|
zGetAppsByAppIdWorkflowRunsResponse,
|
|
zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypePath,
|
|
zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypeQuery,
|
|
zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypeResponse,
|
|
zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsPath,
|
|
zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsResponse,
|
|
zGetAppsByAppIdWorkflowsDraftConversationVariablesPath,
|
|
zGetAppsByAppIdWorkflowsDraftConversationVariablesResponse,
|
|
zGetAppsByAppIdWorkflowsDraftEnvironmentVariablesPath,
|
|
zGetAppsByAppIdWorkflowsDraftEnvironmentVariablesResponse,
|
|
zGetAppsByAppIdWorkflowsDraftNodesByNodeIdLastRunPath,
|
|
zGetAppsByAppIdWorkflowsDraftNodesByNodeIdLastRunResponse,
|
|
zGetAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesPath,
|
|
zGetAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesResponse,
|
|
zGetAppsByAppIdWorkflowsDraftPath,
|
|
zGetAppsByAppIdWorkflowsDraftResponse,
|
|
zGetAppsByAppIdWorkflowsDraftSystemVariablesPath,
|
|
zGetAppsByAppIdWorkflowsDraftSystemVariablesResponse,
|
|
zGetAppsByAppIdWorkflowsDraftVariablesByVariableIdPath,
|
|
zGetAppsByAppIdWorkflowsDraftVariablesByVariableIdResponse,
|
|
zGetAppsByAppIdWorkflowsDraftVariablesPath,
|
|
zGetAppsByAppIdWorkflowsDraftVariablesQuery,
|
|
zGetAppsByAppIdWorkflowsDraftVariablesResponse,
|
|
zGetAppsByAppIdWorkflowsPath,
|
|
zGetAppsByAppIdWorkflowsPublishPath,
|
|
zGetAppsByAppIdWorkflowsPublishResponse,
|
|
zGetAppsByAppIdWorkflowsQuery,
|
|
zGetAppsByAppIdWorkflowsResponse,
|
|
zGetAppsByAppIdWorkflowStatisticsAverageAppInteractionsPath,
|
|
zGetAppsByAppIdWorkflowStatisticsAverageAppInteractionsQuery,
|
|
zGetAppsByAppIdWorkflowStatisticsAverageAppInteractionsResponse,
|
|
zGetAppsByAppIdWorkflowStatisticsDailyConversationsPath,
|
|
zGetAppsByAppIdWorkflowStatisticsDailyConversationsQuery,
|
|
zGetAppsByAppIdWorkflowStatisticsDailyConversationsResponse,
|
|
zGetAppsByAppIdWorkflowStatisticsDailyTerminalsPath,
|
|
zGetAppsByAppIdWorkflowStatisticsDailyTerminalsQuery,
|
|
zGetAppsByAppIdWorkflowStatisticsDailyTerminalsResponse,
|
|
zGetAppsByAppIdWorkflowStatisticsTokenCostsPath,
|
|
zGetAppsByAppIdWorkflowStatisticsTokenCostsQuery,
|
|
zGetAppsByAppIdWorkflowStatisticsTokenCostsResponse,
|
|
zGetAppsByAppIdWorkflowsTriggersWebhookPath,
|
|
zGetAppsByAppIdWorkflowsTriggersWebhookQuery,
|
|
zGetAppsByAppIdWorkflowsTriggersWebhookResponse,
|
|
zGetAppsByResourceIdApiKeysPath,
|
|
zGetAppsByResourceIdApiKeysResponse,
|
|
zGetAppsByServerIdServerRefreshPath,
|
|
zGetAppsByServerIdServerRefreshResponse,
|
|
zGetAppsImportsByAppIdCheckDependenciesPath,
|
|
zGetAppsImportsByAppIdCheckDependenciesResponse,
|
|
zGetAppsQuery,
|
|
zGetAppsResponse,
|
|
zPatchAppsByAppIdTraceConfigBody,
|
|
zPatchAppsByAppIdTraceConfigPath,
|
|
zPatchAppsByAppIdTraceConfigResponse,
|
|
zPatchAppsByAppIdWorkflowsByWorkflowIdBody,
|
|
zPatchAppsByAppIdWorkflowsByWorkflowIdPath,
|
|
zPatchAppsByAppIdWorkflowsByWorkflowIdResponse,
|
|
zPatchAppsByAppIdWorkflowsDraftVariablesByVariableIdBody,
|
|
zPatchAppsByAppIdWorkflowsDraftVariablesByVariableIdPath,
|
|
zPatchAppsByAppIdWorkflowsDraftVariablesByVariableIdResponse,
|
|
zPostAppsBody,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreviewBody,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreviewPath,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreviewResponse,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRunBody,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRunPath,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRunResponse,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRunBody,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRunPath,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRunResponse,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRunBody,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRunPath,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRunResponse,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftRunBody,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftRunPath,
|
|
zPostAppsByAppIdAdvancedChatWorkflowsDraftRunResponse,
|
|
zPostAppsByAppIdAnnotationReplyByActionBody,
|
|
zPostAppsByAppIdAnnotationReplyByActionPath,
|
|
zPostAppsByAppIdAnnotationReplyByActionResponse,
|
|
zPostAppsByAppIdAnnotationsBatchImportPath,
|
|
zPostAppsByAppIdAnnotationsBatchImportResponse,
|
|
zPostAppsByAppIdAnnotationsBody,
|
|
zPostAppsByAppIdAnnotationsByAnnotationIdBody,
|
|
zPostAppsByAppIdAnnotationsByAnnotationIdPath,
|
|
zPostAppsByAppIdAnnotationsByAnnotationIdResponse,
|
|
zPostAppsByAppIdAnnotationSettingsByAnnotationSettingIdBody,
|
|
zPostAppsByAppIdAnnotationSettingsByAnnotationSettingIdPath,
|
|
zPostAppsByAppIdAnnotationSettingsByAnnotationSettingIdResponse,
|
|
zPostAppsByAppIdAnnotationsPath,
|
|
zPostAppsByAppIdAnnotationsResponse,
|
|
zPostAppsByAppIdApiEnableBody,
|
|
zPostAppsByAppIdApiEnablePath,
|
|
zPostAppsByAppIdApiEnableResponse,
|
|
zPostAppsByAppIdAudioToTextPath,
|
|
zPostAppsByAppIdAudioToTextResponse,
|
|
zPostAppsByAppIdChatMessagesByTaskIdStopPath,
|
|
zPostAppsByAppIdChatMessagesByTaskIdStopResponse,
|
|
zPostAppsByAppIdCompletionMessagesBody,
|
|
zPostAppsByAppIdCompletionMessagesByTaskIdStopPath,
|
|
zPostAppsByAppIdCompletionMessagesByTaskIdStopResponse,
|
|
zPostAppsByAppIdCompletionMessagesPath,
|
|
zPostAppsByAppIdCompletionMessagesResponse,
|
|
zPostAppsByAppIdConvertToWorkflowBody,
|
|
zPostAppsByAppIdConvertToWorkflowPath,
|
|
zPostAppsByAppIdConvertToWorkflowResponse,
|
|
zPostAppsByAppIdCopyBody,
|
|
zPostAppsByAppIdCopyPath,
|
|
zPostAppsByAppIdCopyResponse,
|
|
zPostAppsByAppIdFeedbacksBody,
|
|
zPostAppsByAppIdFeedbacksPath,
|
|
zPostAppsByAppIdFeedbacksResponse,
|
|
zPostAppsByAppIdIconBody,
|
|
zPostAppsByAppIdIconPath,
|
|
zPostAppsByAppIdIconResponse,
|
|
zPostAppsByAppIdModelConfigBody,
|
|
zPostAppsByAppIdModelConfigPath,
|
|
zPostAppsByAppIdModelConfigResponse,
|
|
zPostAppsByAppIdNameBody,
|
|
zPostAppsByAppIdNamePath,
|
|
zPostAppsByAppIdNameResponse,
|
|
zPostAppsByAppIdPublishToCreatorsPlatformPath,
|
|
zPostAppsByAppIdPublishToCreatorsPlatformResponse,
|
|
zPostAppsByAppIdServerBody,
|
|
zPostAppsByAppIdServerPath,
|
|
zPostAppsByAppIdServerResponse,
|
|
zPostAppsByAppIdSiteAccessTokenResetPath,
|
|
zPostAppsByAppIdSiteAccessTokenResetResponse,
|
|
zPostAppsByAppIdSiteBody,
|
|
zPostAppsByAppIdSiteEnableBody,
|
|
zPostAppsByAppIdSiteEnablePath,
|
|
zPostAppsByAppIdSiteEnableResponse,
|
|
zPostAppsByAppIdSitePath,
|
|
zPostAppsByAppIdSiteResponse,
|
|
zPostAppsByAppIdTextToAudioBody,
|
|
zPostAppsByAppIdTextToAudioPath,
|
|
zPostAppsByAppIdTextToAudioResponse,
|
|
zPostAppsByAppIdTraceBody,
|
|
zPostAppsByAppIdTraceConfigBody,
|
|
zPostAppsByAppIdTraceConfigPath,
|
|
zPostAppsByAppIdTraceConfigResponse,
|
|
zPostAppsByAppIdTracePath,
|
|
zPostAppsByAppIdTraceResponse,
|
|
zPostAppsByAppIdTriggerEnableBody,
|
|
zPostAppsByAppIdTriggerEnablePath,
|
|
zPostAppsByAppIdTriggerEnableResponse,
|
|
zPostAppsByAppIdWorkflowCommentsBody,
|
|
zPostAppsByAppIdWorkflowCommentsByCommentIdRepliesBody,
|
|
zPostAppsByAppIdWorkflowCommentsByCommentIdRepliesPath,
|
|
zPostAppsByAppIdWorkflowCommentsByCommentIdRepliesResponse,
|
|
zPostAppsByAppIdWorkflowCommentsByCommentIdResolvePath,
|
|
zPostAppsByAppIdWorkflowCommentsByCommentIdResolveResponse,
|
|
zPostAppsByAppIdWorkflowCommentsPath,
|
|
zPostAppsByAppIdWorkflowCommentsResponse,
|
|
zPostAppsByAppIdWorkflowRunsTasksByTaskIdStopPath,
|
|
zPostAppsByAppIdWorkflowRunsTasksByTaskIdStopResponse,
|
|
zPostAppsByAppIdWorkflowsByWorkflowIdRestorePath,
|
|
zPostAppsByAppIdWorkflowsByWorkflowIdRestoreResponse,
|
|
zPostAppsByAppIdWorkflowsDraftBody,
|
|
zPostAppsByAppIdWorkflowsDraftConversationVariablesBody,
|
|
zPostAppsByAppIdWorkflowsDraftConversationVariablesPath,
|
|
zPostAppsByAppIdWorkflowsDraftConversationVariablesResponse,
|
|
zPostAppsByAppIdWorkflowsDraftEnvironmentVariablesBody,
|
|
zPostAppsByAppIdWorkflowsDraftEnvironmentVariablesPath,
|
|
zPostAppsByAppIdWorkflowsDraftEnvironmentVariablesResponse,
|
|
zPostAppsByAppIdWorkflowsDraftFeaturesBody,
|
|
zPostAppsByAppIdWorkflowsDraftFeaturesPath,
|
|
zPostAppsByAppIdWorkflowsDraftFeaturesResponse,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTestBody,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTestPath,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTestResponse,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreviewBody,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreviewPath,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreviewResponse,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRunBody,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRunResponse,
|
|
zPostAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRunBody,
|
|
zPostAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRunResponse,
|
|
zPostAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRunBody,
|
|
zPostAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRunResponse,
|
|
zPostAppsByAppIdWorkflowsDraftNodesByNodeIdRunBody,
|
|
zPostAppsByAppIdWorkflowsDraftNodesByNodeIdRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftNodesByNodeIdRunResponse,
|
|
zPostAppsByAppIdWorkflowsDraftNodesByNodeIdTriggerRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftNodesByNodeIdTriggerRunResponse,
|
|
zPostAppsByAppIdWorkflowsDraftPath,
|
|
zPostAppsByAppIdWorkflowsDraftResponse,
|
|
zPostAppsByAppIdWorkflowsDraftRunBody,
|
|
zPostAppsByAppIdWorkflowsDraftRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftRunResponse,
|
|
zPostAppsByAppIdWorkflowsDraftTriggerRunAllBody,
|
|
zPostAppsByAppIdWorkflowsDraftTriggerRunAllPath,
|
|
zPostAppsByAppIdWorkflowsDraftTriggerRunAllResponse,
|
|
zPostAppsByAppIdWorkflowsDraftTriggerRunBody,
|
|
zPostAppsByAppIdWorkflowsDraftTriggerRunPath,
|
|
zPostAppsByAppIdWorkflowsDraftTriggerRunResponse,
|
|
zPostAppsByAppIdWorkflowsPublishBody,
|
|
zPostAppsByAppIdWorkflowsPublishPath,
|
|
zPostAppsByAppIdWorkflowsPublishResponse,
|
|
zPostAppsByResourceIdApiKeysPath,
|
|
zPostAppsByResourceIdApiKeysResponse,
|
|
zPostAppsImportsBody,
|
|
zPostAppsImportsByImportIdConfirmPath,
|
|
zPostAppsImportsByImportIdConfirmResponse,
|
|
zPostAppsImportsResponse,
|
|
zPostAppsResponse,
|
|
zPostAppsWorkflowsOnlineUsersBody,
|
|
zPostAppsWorkflowsOnlineUsersResponse,
|
|
zPutAppsByAppIdBody,
|
|
zPutAppsByAppIdPath,
|
|
zPutAppsByAppIdResponse,
|
|
zPutAppsByAppIdServerBody,
|
|
zPutAppsByAppIdServerPath,
|
|
zPutAppsByAppIdServerResponse,
|
|
zPutAppsByAppIdWorkflowCommentsByCommentIdBody,
|
|
zPutAppsByAppIdWorkflowCommentsByCommentIdPath,
|
|
zPutAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdBody,
|
|
zPutAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdPath,
|
|
zPutAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdResponse,
|
|
zPutAppsByAppIdWorkflowCommentsByCommentIdResponse,
|
|
zPutAppsByAppIdWorkflowsDraftVariablesByVariableIdResetPath,
|
|
zPutAppsByAppIdWorkflowsDraftVariablesByVariableIdResetResponse,
|
|
} from './zod.gen'
|
|
|
|
export const get = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsImportsByAppIdCheckDependencies',
|
|
path: '/apps/imports/{app_id}/check-dependencies',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsImportsByAppIdCheckDependenciesPath }))
|
|
.output(zGetAppsImportsByAppIdCheckDependenciesResponse)
|
|
|
|
export const checkDependencies = {
|
|
get,
|
|
}
|
|
|
|
export const byAppId = {
|
|
checkDependencies,
|
|
}
|
|
|
|
export const post = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsImportsByImportIdConfirm',
|
|
path: '/apps/imports/{import_id}/confirm',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsImportsByImportIdConfirmPath }))
|
|
.output(zPostAppsImportsByImportIdConfirmResponse)
|
|
|
|
export const confirm = {
|
|
post,
|
|
}
|
|
|
|
export const byImportId = {
|
|
confirm,
|
|
}
|
|
|
|
export const post2 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsImports',
|
|
path: '/apps/imports',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsImportsBody }))
|
|
.output(zPostAppsImportsResponse)
|
|
|
|
export const imports = {
|
|
post: post2,
|
|
byAppId,
|
|
byImportId,
|
|
}
|
|
|
|
/**
|
|
* Get workflow online users
|
|
*/
|
|
export const post3 = oc
|
|
.route({
|
|
description: 'Get workflow online users',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsWorkflowsOnlineUsers',
|
|
path: '/apps/workflows/online-users',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsWorkflowsOnlineUsersBody }))
|
|
.output(zPostAppsWorkflowsOnlineUsersResponse)
|
|
|
|
export const onlineUsers = {
|
|
post: post3,
|
|
}
|
|
|
|
export const workflows = {
|
|
onlineUsers,
|
|
}
|
|
|
|
/**
|
|
* Get advanced chat workflow runs count statistics
|
|
*
|
|
* Get advanced chat workflow runs count statistics
|
|
*/
|
|
export const get2 = oc
|
|
.route({
|
|
description: 'Get advanced chat workflow runs count statistics',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAdvancedChatWorkflowRunsCount',
|
|
path: '/apps/{app_id}/advanced-chat/workflow-runs/count',
|
|
summary: 'Get advanced chat workflow runs count statistics',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdAdvancedChatWorkflowRunsCountPath,
|
|
query: zGetAppsByAppIdAdvancedChatWorkflowRunsCountQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdAdvancedChatWorkflowRunsCountResponse)
|
|
|
|
export const count = {
|
|
get: get2,
|
|
}
|
|
|
|
/**
|
|
* Get advanced chat app workflow run list
|
|
*
|
|
* Get advanced chat workflow run list
|
|
*/
|
|
export const get3 = oc
|
|
.route({
|
|
description: 'Get advanced chat workflow run list',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAdvancedChatWorkflowRuns',
|
|
path: '/apps/{app_id}/advanced-chat/workflow-runs',
|
|
summary: 'Get advanced chat app workflow run list',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdAdvancedChatWorkflowRunsPath,
|
|
query: zGetAppsByAppIdAdvancedChatWorkflowRunsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdAdvancedChatWorkflowRunsResponse)
|
|
|
|
export const workflowRuns = {
|
|
get: get3,
|
|
count,
|
|
}
|
|
|
|
/**
|
|
* Preview human input form content and placeholders
|
|
*
|
|
* Get human input form preview for advanced chat workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post4 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get human input form preview for advanced chat workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreview',
|
|
path: '/apps/{app_id}/advanced-chat/workflows/draft/human-input/nodes/{node_id}/form/preview',
|
|
summary: 'Preview human input form content and placeholders',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreviewBody,
|
|
params: zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreviewPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormPreviewResponse)
|
|
|
|
export const preview = {
|
|
post: post4,
|
|
}
|
|
|
|
/**
|
|
* Submit human input form preview
|
|
*
|
|
* Submit human input form preview for advanced chat workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post5 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Submit human input form preview for advanced chat workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRun',
|
|
path: '/apps/{app_id}/advanced-chat/workflows/draft/human-input/nodes/{node_id}/form/run',
|
|
summary: 'Submit human input form preview',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRunBody,
|
|
params: zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAdvancedChatWorkflowsDraftHumanInputNodesByNodeIdFormRunResponse)
|
|
|
|
export const run = {
|
|
post: post5,
|
|
}
|
|
|
|
export const form = {
|
|
preview,
|
|
run,
|
|
}
|
|
|
|
export const byNodeId = {
|
|
form,
|
|
}
|
|
|
|
export const nodes = {
|
|
byNodeId,
|
|
}
|
|
|
|
export const humanInput = {
|
|
nodes,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow iteration node
|
|
*
|
|
* Run draft workflow iteration node for advanced chat
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post6 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow iteration node for advanced chat\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRun',
|
|
path: '/apps/{app_id}/advanced-chat/workflows/draft/iteration/nodes/{node_id}/run',
|
|
summary: 'Run draft workflow iteration node',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRunBody,
|
|
params: zPostAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAdvancedChatWorkflowsDraftIterationNodesByNodeIdRunResponse)
|
|
|
|
export const run2 = {
|
|
post: post6,
|
|
}
|
|
|
|
export const byNodeId2 = {
|
|
run: run2,
|
|
}
|
|
|
|
export const nodes2 = {
|
|
byNodeId: byNodeId2,
|
|
}
|
|
|
|
export const iteration = {
|
|
nodes: nodes2,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow loop node
|
|
*
|
|
* Run draft workflow loop node for advanced chat
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post7 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow loop node for advanced chat\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRun',
|
|
path: '/apps/{app_id}/advanced-chat/workflows/draft/loop/nodes/{node_id}/run',
|
|
summary: 'Run draft workflow loop node',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRunBody,
|
|
params: zPostAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAdvancedChatWorkflowsDraftLoopNodesByNodeIdRunResponse)
|
|
|
|
export const run3 = {
|
|
post: post7,
|
|
}
|
|
|
|
export const byNodeId3 = {
|
|
run: run3,
|
|
}
|
|
|
|
export const nodes3 = {
|
|
byNodeId: byNodeId3,
|
|
}
|
|
|
|
export const loop = {
|
|
nodes: nodes3,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow
|
|
*
|
|
* Run draft workflow for advanced chat application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post8 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow for advanced chat application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAdvancedChatWorkflowsDraftRun',
|
|
path: '/apps/{app_id}/advanced-chat/workflows/draft/run',
|
|
summary: 'Run draft workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAdvancedChatWorkflowsDraftRunBody,
|
|
params: zPostAppsByAppIdAdvancedChatWorkflowsDraftRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAdvancedChatWorkflowsDraftRunResponse)
|
|
|
|
export const run4 = {
|
|
post: post8,
|
|
}
|
|
|
|
export const draft = {
|
|
humanInput,
|
|
iteration,
|
|
loop,
|
|
run: run4,
|
|
}
|
|
|
|
export const workflows2 = {
|
|
draft,
|
|
}
|
|
|
|
export const advancedChat = {
|
|
workflowRuns,
|
|
workflows: workflows2,
|
|
}
|
|
|
|
/**
|
|
* Get agent logs
|
|
*
|
|
* Get agent execution logs for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get4 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get agent execution logs for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAgentLogs',
|
|
path: '/apps/{app_id}/agent/logs',
|
|
summary: 'Get agent logs',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdAgentLogsPath, query: zGetAppsByAppIdAgentLogsQuery }))
|
|
.output(zGetAppsByAppIdAgentLogsResponse)
|
|
|
|
export const logs = {
|
|
get: get4,
|
|
}
|
|
|
|
export const agent = {
|
|
logs,
|
|
}
|
|
|
|
/**
|
|
* Get status of annotation reply action job
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get5 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get status of annotation reply action job\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotationReplyByActionStatusByJobId',
|
|
path: '/apps/{app_id}/annotation-reply/{action}/status/{job_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdAnnotationReplyByActionStatusByJobIdPath }))
|
|
.output(zGetAppsByAppIdAnnotationReplyByActionStatusByJobIdResponse)
|
|
|
|
export const byJobId = {
|
|
get: get5,
|
|
}
|
|
|
|
export const status = {
|
|
byJobId,
|
|
}
|
|
|
|
/**
|
|
* Enable or disable annotation reply for an app
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post9 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Enable or disable annotation reply for an app\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAnnotationReplyByAction',
|
|
path: '/apps/{app_id}/annotation-reply/{action}',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAnnotationReplyByActionBody,
|
|
params: zPostAppsByAppIdAnnotationReplyByActionPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAnnotationReplyByActionResponse)
|
|
|
|
export const byAction = {
|
|
post: post9,
|
|
status,
|
|
}
|
|
|
|
export const annotationReply = {
|
|
byAction,
|
|
}
|
|
|
|
/**
|
|
* Get annotation settings for an app
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get6 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get annotation settings for an app\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotationSetting',
|
|
path: '/apps/{app_id}/annotation-setting',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdAnnotationSettingPath }))
|
|
.output(zGetAppsByAppIdAnnotationSettingResponse)
|
|
|
|
export const annotationSetting = {
|
|
get: get6,
|
|
}
|
|
|
|
/**
|
|
* Update annotation settings for an app
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post10 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update annotation settings for an app\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAnnotationSettingsByAnnotationSettingId',
|
|
path: '/apps/{app_id}/annotation-settings/{annotation_setting_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAnnotationSettingsByAnnotationSettingIdBody,
|
|
params: zPostAppsByAppIdAnnotationSettingsByAnnotationSettingIdPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAnnotationSettingsByAnnotationSettingIdResponse)
|
|
|
|
export const byAnnotationSettingId = {
|
|
post: post10,
|
|
}
|
|
|
|
export const annotationSettings = {
|
|
byAnnotationSettingId,
|
|
}
|
|
|
|
/**
|
|
* Batch import annotations from CSV file with rate limiting and security checks
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post11 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Batch import annotations from CSV file with rate limiting and security checks\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAnnotationsBatchImport',
|
|
path: '/apps/{app_id}/annotations/batch-import',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdAnnotationsBatchImportPath }))
|
|
.output(zPostAppsByAppIdAnnotationsBatchImportResponse)
|
|
|
|
export const batchImport = {
|
|
post: post11,
|
|
}
|
|
|
|
/**
|
|
* Get status of batch import job
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get7 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get status of batch import job\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotationsBatchImportStatusByJobId',
|
|
path: '/apps/{app_id}/annotations/batch-import-status/{job_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdAnnotationsBatchImportStatusByJobIdPath }))
|
|
.output(zGetAppsByAppIdAnnotationsBatchImportStatusByJobIdResponse)
|
|
|
|
export const byJobId2 = {
|
|
get: get7,
|
|
}
|
|
|
|
export const batchImportStatus = {
|
|
byJobId: byJobId2,
|
|
}
|
|
|
|
/**
|
|
* Get count of message annotations for the app
|
|
*/
|
|
export const get8 = oc
|
|
.route({
|
|
description: 'Get count of message annotations for the app',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotationsCount',
|
|
path: '/apps/{app_id}/annotations/count',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdAnnotationsCountPath }))
|
|
.output(zGetAppsByAppIdAnnotationsCountResponse)
|
|
|
|
export const count2 = {
|
|
get: get8,
|
|
}
|
|
|
|
/**
|
|
* Export all annotations for an app with CSV injection protection
|
|
*/
|
|
export const get9 = oc
|
|
.route({
|
|
description: 'Export all annotations for an app with CSV injection protection',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotationsExport',
|
|
path: '/apps/{app_id}/annotations/export',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdAnnotationsExportPath }))
|
|
.output(zGetAppsByAppIdAnnotationsExportResponse)
|
|
|
|
export const export_ = {
|
|
get: get9,
|
|
}
|
|
|
|
/**
|
|
* Get hit histories for an annotation
|
|
*/
|
|
export const get10 = oc
|
|
.route({
|
|
description: 'Get hit histories for an annotation',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotationsByAnnotationIdHitHistories',
|
|
path: '/apps/{app_id}/annotations/{annotation_id}/hit-histories',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdAnnotationsByAnnotationIdHitHistoriesPath,
|
|
query: zGetAppsByAppIdAnnotationsByAnnotationIdHitHistoriesQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdAnnotationsByAnnotationIdHitHistoriesResponse)
|
|
|
|
export const hitHistories = {
|
|
get: get10,
|
|
}
|
|
|
|
/**
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const delete_ = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdAnnotationsByAnnotationId',
|
|
path: '/apps/{app_id}/annotations/{annotation_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdAnnotationsByAnnotationIdPath }))
|
|
.output(zDeleteAppsByAppIdAnnotationsByAnnotationIdResponse)
|
|
|
|
/**
|
|
* Update or delete an annotation
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post12 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update or delete an annotation\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAnnotationsByAnnotationId',
|
|
path: '/apps/{app_id}/annotations/{annotation_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdAnnotationsByAnnotationIdBody,
|
|
params: zPostAppsByAppIdAnnotationsByAnnotationIdPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdAnnotationsByAnnotationIdResponse)
|
|
|
|
export const byAnnotationId = {
|
|
delete: delete_,
|
|
post: post12,
|
|
hitHistories,
|
|
}
|
|
|
|
/**
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const delete2 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdAnnotations',
|
|
path: '/apps/{app_id}/annotations',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdAnnotationsPath }))
|
|
.output(zDeleteAppsByAppIdAnnotationsResponse)
|
|
|
|
/**
|
|
* Get annotations for an app with pagination
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get11 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get annotations for an app with pagination\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdAnnotations',
|
|
path: '/apps/{app_id}/annotations',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdAnnotationsPath,
|
|
query: zGetAppsByAppIdAnnotationsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdAnnotationsResponse)
|
|
|
|
/**
|
|
* Create a new annotation for an app
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post13 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Create a new annotation for an app\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAnnotations',
|
|
path: '/apps/{app_id}/annotations',
|
|
successStatus: 201,
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ body: zPostAppsByAppIdAnnotationsBody, params: zPostAppsByAppIdAnnotationsPath }),
|
|
)
|
|
.output(zPostAppsByAppIdAnnotationsResponse)
|
|
|
|
export const annotations = {
|
|
delete: delete2,
|
|
get: get11,
|
|
post: post13,
|
|
batchImport,
|
|
batchImportStatus,
|
|
count: count2,
|
|
export: export_,
|
|
byAnnotationId,
|
|
}
|
|
|
|
/**
|
|
* Enable or disable app API
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post14 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Enable or disable app API\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdApiEnable',
|
|
path: '/apps/{app_id}/api-enable',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdApiEnableBody, params: zPostAppsByAppIdApiEnablePath }))
|
|
.output(zPostAppsByAppIdApiEnableResponse)
|
|
|
|
export const apiEnable = {
|
|
post: post14,
|
|
}
|
|
|
|
/**
|
|
* Transcript audio to text for chat messages
|
|
*/
|
|
export const post15 = oc
|
|
.route({
|
|
description: 'Transcript audio to text for chat messages',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdAudioToText',
|
|
path: '/apps/{app_id}/audio-to-text',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdAudioToTextPath }))
|
|
.output(zPostAppsByAppIdAudioToTextResponse)
|
|
|
|
export const audioToText = {
|
|
post: post15,
|
|
}
|
|
|
|
/**
|
|
* Delete a chat conversation
|
|
*/
|
|
export const delete3 = oc
|
|
.route({
|
|
description: 'Delete a chat conversation',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdChatConversationsByConversationId',
|
|
path: '/apps/{app_id}/chat-conversations/{conversation_id}',
|
|
successStatus: 204,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdChatConversationsByConversationIdPath }))
|
|
.output(zDeleteAppsByAppIdChatConversationsByConversationIdResponse)
|
|
|
|
/**
|
|
* Get chat conversation details
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get12 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get chat conversation details\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdChatConversationsByConversationId',
|
|
path: '/apps/{app_id}/chat-conversations/{conversation_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdChatConversationsByConversationIdPath }))
|
|
.output(zGetAppsByAppIdChatConversationsByConversationIdResponse)
|
|
|
|
export const byConversationId = {
|
|
delete: delete3,
|
|
get: get12,
|
|
}
|
|
|
|
/**
|
|
* Get chat conversations with pagination, filtering and summary
|
|
*/
|
|
export const get13 = oc
|
|
.route({
|
|
description: 'Get chat conversations with pagination, filtering and summary',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdChatConversations',
|
|
path: '/apps/{app_id}/chat-conversations',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdChatConversationsPath,
|
|
query: zGetAppsByAppIdChatConversationsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdChatConversationsResponse)
|
|
|
|
export const chatConversations = {
|
|
get: get13,
|
|
byConversationId,
|
|
}
|
|
|
|
/**
|
|
* Get suggested questions for a message
|
|
*/
|
|
export const get14 = oc
|
|
.route({
|
|
description: 'Get suggested questions for a message',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdChatMessagesByMessageIdSuggestedQuestions',
|
|
path: '/apps/{app_id}/chat-messages/{message_id}/suggested-questions',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdChatMessagesByMessageIdSuggestedQuestionsPath }))
|
|
.output(zGetAppsByAppIdChatMessagesByMessageIdSuggestedQuestionsResponse)
|
|
|
|
export const suggestedQuestions = {
|
|
get: get14,
|
|
}
|
|
|
|
export const byMessageId = {
|
|
suggestedQuestions,
|
|
}
|
|
|
|
/**
|
|
* Stop a running chat message generation
|
|
*/
|
|
export const post16 = oc
|
|
.route({
|
|
description: 'Stop a running chat message generation',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdChatMessagesByTaskIdStop',
|
|
path: '/apps/{app_id}/chat-messages/{task_id}/stop',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdChatMessagesByTaskIdStopPath }))
|
|
.output(zPostAppsByAppIdChatMessagesByTaskIdStopResponse)
|
|
|
|
export const stop = {
|
|
post: post16,
|
|
}
|
|
|
|
export const byTaskId = {
|
|
stop,
|
|
}
|
|
|
|
/**
|
|
* Get chat messages for a conversation with pagination
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get15 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get chat messages for a conversation with pagination\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdChatMessages',
|
|
path: '/apps/{app_id}/chat-messages',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ params: zGetAppsByAppIdChatMessagesPath, query: zGetAppsByAppIdChatMessagesQuery }),
|
|
)
|
|
.output(zGetAppsByAppIdChatMessagesResponse)
|
|
|
|
export const chatMessages = {
|
|
get: get15,
|
|
byMessageId,
|
|
byTaskId,
|
|
}
|
|
|
|
/**
|
|
* Delete a completion conversation
|
|
*/
|
|
export const delete4 = oc
|
|
.route({
|
|
description: 'Delete a completion conversation',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdCompletionConversationsByConversationId',
|
|
path: '/apps/{app_id}/completion-conversations/{conversation_id}',
|
|
successStatus: 204,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdCompletionConversationsByConversationIdPath }))
|
|
.output(zDeleteAppsByAppIdCompletionConversationsByConversationIdResponse)
|
|
|
|
/**
|
|
* Get completion conversation details with messages
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get16 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get completion conversation details with messages\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdCompletionConversationsByConversationId',
|
|
path: '/apps/{app_id}/completion-conversations/{conversation_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdCompletionConversationsByConversationIdPath }))
|
|
.output(zGetAppsByAppIdCompletionConversationsByConversationIdResponse)
|
|
|
|
export const byConversationId2 = {
|
|
delete: delete4,
|
|
get: get16,
|
|
}
|
|
|
|
/**
|
|
* Get completion conversations with pagination and filtering
|
|
*/
|
|
export const get17 = oc
|
|
.route({
|
|
description: 'Get completion conversations with pagination and filtering',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdCompletionConversations',
|
|
path: '/apps/{app_id}/completion-conversations',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdCompletionConversationsPath,
|
|
query: zGetAppsByAppIdCompletionConversationsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdCompletionConversationsResponse)
|
|
|
|
export const completionConversations = {
|
|
get: get17,
|
|
byConversationId: byConversationId2,
|
|
}
|
|
|
|
/**
|
|
* Stop a running completion message generation
|
|
*/
|
|
export const post17 = oc
|
|
.route({
|
|
description: 'Stop a running completion message generation',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdCompletionMessagesByTaskIdStop',
|
|
path: '/apps/{app_id}/completion-messages/{task_id}/stop',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdCompletionMessagesByTaskIdStopPath }))
|
|
.output(zPostAppsByAppIdCompletionMessagesByTaskIdStopResponse)
|
|
|
|
export const stop2 = {
|
|
post: post17,
|
|
}
|
|
|
|
export const byTaskId2 = {
|
|
stop: stop2,
|
|
}
|
|
|
|
/**
|
|
* Generate completion message for debugging
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post18 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generate completion message for debugging\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdCompletionMessages',
|
|
path: '/apps/{app_id}/completion-messages',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdCompletionMessagesBody,
|
|
params: zPostAppsByAppIdCompletionMessagesPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdCompletionMessagesResponse)
|
|
|
|
export const completionMessages = {
|
|
post: post18,
|
|
byTaskId: byTaskId2,
|
|
}
|
|
|
|
/**
|
|
* Get conversation variables for an application
|
|
*/
|
|
export const get18 = oc
|
|
.route({
|
|
description: 'Get conversation variables for an application',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdConversationVariables',
|
|
path: '/apps/{app_id}/conversation-variables',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdConversationVariablesPath,
|
|
query: zGetAppsByAppIdConversationVariablesQuery,
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdConversationVariablesResponse)
|
|
|
|
export const conversationVariables = {
|
|
get: get18,
|
|
}
|
|
|
|
/**
|
|
* Convert basic mode of chatbot app to workflow mode
|
|
*
|
|
* Convert application to workflow mode
|
|
* Convert expert mode of chatbot app to workflow mode
|
|
* Convert Completion App to Workflow App
|
|
*/
|
|
export const post19 = oc
|
|
.route({
|
|
description:
|
|
'Convert application to workflow mode\nConvert expert mode of chatbot app to workflow mode\nConvert Completion App to Workflow App',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdConvertToWorkflow',
|
|
path: '/apps/{app_id}/convert-to-workflow',
|
|
summary: 'Convert basic mode of chatbot app to workflow mode',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdConvertToWorkflowBody,
|
|
params: zPostAppsByAppIdConvertToWorkflowPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdConvertToWorkflowResponse)
|
|
|
|
export const convertToWorkflow = {
|
|
post: post19,
|
|
}
|
|
|
|
/**
|
|
* Copy app
|
|
*
|
|
* Create a copy of an existing application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post20 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Create a copy of an existing application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdCopy',
|
|
path: '/apps/{app_id}/copy',
|
|
successStatus: 201,
|
|
summary: 'Copy app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdCopyBody, params: zPostAppsByAppIdCopyPath }))
|
|
.output(zPostAppsByAppIdCopyResponse)
|
|
|
|
export const copy = {
|
|
post: post20,
|
|
}
|
|
|
|
/**
|
|
* Export app
|
|
*
|
|
* Export application configuration as DSL
|
|
*/
|
|
export const get19 = oc
|
|
.route({
|
|
description: 'Export application configuration as DSL',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdExport',
|
|
path: '/apps/{app_id}/export',
|
|
summary: 'Export app',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ params: zGetAppsByAppIdExportPath, query: zGetAppsByAppIdExportQuery.optional() }),
|
|
)
|
|
.output(zGetAppsByAppIdExportResponse)
|
|
|
|
export const export2 = {
|
|
get: get19,
|
|
}
|
|
|
|
/**
|
|
* Export user feedback data for Google Sheets
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get20 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Export user feedback data for Google Sheets\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdFeedbacksExport',
|
|
path: '/apps/{app_id}/feedbacks/export',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdFeedbacksExportPath,
|
|
query: zGetAppsByAppIdFeedbacksExportQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdFeedbacksExportResponse)
|
|
|
|
export const export3 = {
|
|
get: get20,
|
|
}
|
|
|
|
/**
|
|
* Create or update message feedback (like/dislike)
|
|
*/
|
|
export const post21 = oc
|
|
.route({
|
|
description: 'Create or update message feedback (like/dislike)',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdFeedbacks',
|
|
path: '/apps/{app_id}/feedbacks',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdFeedbacksBody, params: zPostAppsByAppIdFeedbacksPath }))
|
|
.output(zPostAppsByAppIdFeedbacksResponse)
|
|
|
|
export const feedbacks = {
|
|
post: post21,
|
|
export: export3,
|
|
}
|
|
|
|
/**
|
|
* Update application icon
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post22 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update application icon\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdIcon',
|
|
path: '/apps/{app_id}/icon',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdIconBody, params: zPostAppsByAppIdIconPath }))
|
|
.output(zPostAppsByAppIdIconResponse)
|
|
|
|
export const icon = {
|
|
post: post22,
|
|
}
|
|
|
|
/**
|
|
* Get message details by ID
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get21 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get message details by ID\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdMessagesByMessageId',
|
|
path: '/apps/{app_id}/messages/{message_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdMessagesByMessageIdPath }))
|
|
.output(zGetAppsByAppIdMessagesByMessageIdResponse)
|
|
|
|
export const byMessageId2 = {
|
|
get: get21,
|
|
}
|
|
|
|
export const messages = {
|
|
byMessageId: byMessageId2,
|
|
}
|
|
|
|
/**
|
|
* Modify app model config
|
|
*
|
|
* Update application model configuration
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post23 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update application model configuration\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdModelConfig',
|
|
path: '/apps/{app_id}/model-config',
|
|
summary: 'Modify app model config',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ body: zPostAppsByAppIdModelConfigBody, params: zPostAppsByAppIdModelConfigPath }),
|
|
)
|
|
.output(zPostAppsByAppIdModelConfigResponse)
|
|
|
|
export const modelConfig = {
|
|
post: post23,
|
|
}
|
|
|
|
/**
|
|
* Check if app name is available
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post24 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Check if app name is available\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdName',
|
|
path: '/apps/{app_id}/name',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdNameBody, params: zPostAppsByAppIdNamePath }))
|
|
.output(zPostAppsByAppIdNameResponse)
|
|
|
|
export const name = {
|
|
post: post24,
|
|
}
|
|
|
|
/**
|
|
* Publish app to Creators Platform
|
|
*/
|
|
export const post25 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdPublishToCreatorsPlatform',
|
|
path: '/apps/{app_id}/publish-to-creators-platform',
|
|
summary: 'Publish app to Creators Platform',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdPublishToCreatorsPlatformPath }))
|
|
.output(zPostAppsByAppIdPublishToCreatorsPlatformResponse)
|
|
|
|
export const publishToCreatorsPlatform = {
|
|
post: post25,
|
|
}
|
|
|
|
/**
|
|
* Get MCP server configuration for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get22 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get MCP server configuration for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdServer',
|
|
path: '/apps/{app_id}/server',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdServerPath }))
|
|
.output(zGetAppsByAppIdServerResponse)
|
|
|
|
/**
|
|
* Create MCP server configuration for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post26 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Create MCP server configuration for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdServer',
|
|
path: '/apps/{app_id}/server',
|
|
successStatus: 201,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdServerBody, params: zPostAppsByAppIdServerPath }))
|
|
.output(zPostAppsByAppIdServerResponse)
|
|
|
|
/**
|
|
* Update MCP server configuration for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const put = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update MCP server configuration for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'PUT',
|
|
operationId: 'putAppsByAppIdServer',
|
|
path: '/apps/{app_id}/server',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPutAppsByAppIdServerBody, params: zPutAppsByAppIdServerPath }))
|
|
.output(zPutAppsByAppIdServerResponse)
|
|
|
|
export const server = {
|
|
get: get22,
|
|
post: post26,
|
|
put,
|
|
}
|
|
|
|
/**
|
|
* Reset access token for application site
|
|
*/
|
|
export const post27 = oc
|
|
.route({
|
|
description: 'Reset access token for application site',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdSiteAccessTokenReset',
|
|
path: '/apps/{app_id}/site/access-token-reset',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdSiteAccessTokenResetPath }))
|
|
.output(zPostAppsByAppIdSiteAccessTokenResetResponse)
|
|
|
|
export const accessTokenReset = {
|
|
post: post27,
|
|
}
|
|
|
|
/**
|
|
* Update application site configuration
|
|
*/
|
|
export const post28 = oc
|
|
.route({
|
|
description: 'Update application site configuration',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdSite',
|
|
path: '/apps/{app_id}/site',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdSiteBody, params: zPostAppsByAppIdSitePath }))
|
|
.output(zPostAppsByAppIdSiteResponse)
|
|
|
|
export const site = {
|
|
post: post28,
|
|
accessTokenReset,
|
|
}
|
|
|
|
/**
|
|
* Enable or disable app site
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post29 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Enable or disable app site\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdSiteEnable',
|
|
path: '/apps/{app_id}/site-enable',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdSiteEnableBody, params: zPostAppsByAppIdSiteEnablePath }))
|
|
.output(zPostAppsByAppIdSiteEnableResponse)
|
|
|
|
export const siteEnable = {
|
|
post: post29,
|
|
}
|
|
|
|
/**
|
|
* Get average response time statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get23 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get average response time statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsAverageResponseTime',
|
|
path: '/apps/{app_id}/statistics/average-response-time',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsAverageResponseTimePath,
|
|
query: zGetAppsByAppIdStatisticsAverageResponseTimeQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsAverageResponseTimeResponse)
|
|
|
|
export const averageResponseTime = {
|
|
get: get23,
|
|
}
|
|
|
|
/**
|
|
* Get average session interaction statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get24 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get average session interaction statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsAverageSessionInteractions',
|
|
path: '/apps/{app_id}/statistics/average-session-interactions',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsAverageSessionInteractionsPath,
|
|
query: zGetAppsByAppIdStatisticsAverageSessionInteractionsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsAverageSessionInteractionsResponse)
|
|
|
|
export const averageSessionInteractions = {
|
|
get: get24,
|
|
}
|
|
|
|
/**
|
|
* Get daily conversation statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get25 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get daily conversation statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsDailyConversations',
|
|
path: '/apps/{app_id}/statistics/daily-conversations',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsDailyConversationsPath,
|
|
query: zGetAppsByAppIdStatisticsDailyConversationsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsDailyConversationsResponse)
|
|
|
|
export const dailyConversations = {
|
|
get: get25,
|
|
}
|
|
|
|
/**
|
|
* Get daily terminal/end-user statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get26 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get daily terminal/end-user statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsDailyEndUsers',
|
|
path: '/apps/{app_id}/statistics/daily-end-users',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsDailyEndUsersPath,
|
|
query: zGetAppsByAppIdStatisticsDailyEndUsersQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsDailyEndUsersResponse)
|
|
|
|
export const dailyEndUsers = {
|
|
get: get26,
|
|
}
|
|
|
|
/**
|
|
* Get daily message statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get27 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get daily message statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsDailyMessages',
|
|
path: '/apps/{app_id}/statistics/daily-messages',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsDailyMessagesPath,
|
|
query: zGetAppsByAppIdStatisticsDailyMessagesQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsDailyMessagesResponse)
|
|
|
|
export const dailyMessages = {
|
|
get: get27,
|
|
}
|
|
|
|
/**
|
|
* Get daily token cost statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get28 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get daily token cost statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsTokenCosts',
|
|
path: '/apps/{app_id}/statistics/token-costs',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsTokenCostsPath,
|
|
query: zGetAppsByAppIdStatisticsTokenCostsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsTokenCostsResponse)
|
|
|
|
export const tokenCosts = {
|
|
get: get28,
|
|
}
|
|
|
|
/**
|
|
* Get tokens per second statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get29 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get tokens per second statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsTokensPerSecond',
|
|
path: '/apps/{app_id}/statistics/tokens-per-second',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsTokensPerSecondPath,
|
|
query: zGetAppsByAppIdStatisticsTokensPerSecondQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsTokensPerSecondResponse)
|
|
|
|
export const tokensPerSecond = {
|
|
get: get29,
|
|
}
|
|
|
|
/**
|
|
* Get user satisfaction rate statistics for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get30 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get user satisfaction rate statistics for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdStatisticsUserSatisfactionRate',
|
|
path: '/apps/{app_id}/statistics/user-satisfaction-rate',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdStatisticsUserSatisfactionRatePath,
|
|
query: zGetAppsByAppIdStatisticsUserSatisfactionRateQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdStatisticsUserSatisfactionRateResponse)
|
|
|
|
export const userSatisfactionRate = {
|
|
get: get30,
|
|
}
|
|
|
|
export const statistics = {
|
|
averageResponseTime,
|
|
averageSessionInteractions,
|
|
dailyConversations,
|
|
dailyEndUsers,
|
|
dailyMessages,
|
|
tokenCosts,
|
|
tokensPerSecond,
|
|
userSatisfactionRate,
|
|
}
|
|
|
|
/**
|
|
* Get available TTS voices for a specific language
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get31 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get available TTS voices for a specific language\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdTextToAudioVoices',
|
|
path: '/apps/{app_id}/text-to-audio/voices',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdTextToAudioVoicesPath,
|
|
query: zGetAppsByAppIdTextToAudioVoicesQuery,
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdTextToAudioVoicesResponse)
|
|
|
|
export const voices = {
|
|
get: get31,
|
|
}
|
|
|
|
/**
|
|
* Convert text to speech for chat messages
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post30 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Convert text to speech for chat messages\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdTextToAudio',
|
|
path: '/apps/{app_id}/text-to-audio',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ body: zPostAppsByAppIdTextToAudioBody, params: zPostAppsByAppIdTextToAudioPath }),
|
|
)
|
|
.output(zPostAppsByAppIdTextToAudioResponse)
|
|
|
|
export const textToAudio = {
|
|
post: post30,
|
|
voices,
|
|
}
|
|
|
|
/**
|
|
* Get app trace
|
|
*
|
|
* Get app tracing configuration
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get32 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get app tracing configuration\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdTrace',
|
|
path: '/apps/{app_id}/trace',
|
|
summary: 'Get app trace',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdTracePath }))
|
|
.output(zGetAppsByAppIdTraceResponse)
|
|
|
|
/**
|
|
* Update app tracing configuration
|
|
*/
|
|
export const post31 = oc
|
|
.route({
|
|
description: 'Update app tracing configuration',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdTrace',
|
|
path: '/apps/{app_id}/trace',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsByAppIdTraceBody, params: zPostAppsByAppIdTracePath }))
|
|
.output(zPostAppsByAppIdTraceResponse)
|
|
|
|
export const trace = {
|
|
get: get32,
|
|
post: post31,
|
|
}
|
|
|
|
/**
|
|
* Delete an existing trace app configuration
|
|
*
|
|
* Delete an existing tracing configuration for an application
|
|
*/
|
|
export const delete5 = oc
|
|
.route({
|
|
description: 'Delete an existing tracing configuration for an application',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdTraceConfig',
|
|
path: '/apps/{app_id}/trace-config',
|
|
successStatus: 204,
|
|
summary: 'Delete an existing trace app configuration',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zDeleteAppsByAppIdTraceConfigBody,
|
|
params: zDeleteAppsByAppIdTraceConfigPath,
|
|
}),
|
|
)
|
|
.output(zDeleteAppsByAppIdTraceConfigResponse)
|
|
|
|
/**
|
|
* Get tracing configuration for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get33 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get tracing configuration for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdTraceConfig',
|
|
path: '/apps/{app_id}/trace-config',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ params: zGetAppsByAppIdTraceConfigPath, query: zGetAppsByAppIdTraceConfigQuery }),
|
|
)
|
|
.output(zGetAppsByAppIdTraceConfigResponse)
|
|
|
|
/**
|
|
* Update an existing trace app configuration
|
|
*
|
|
* Update an existing tracing configuration for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const patch = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update an existing tracing configuration for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'PATCH',
|
|
operationId: 'patchAppsByAppIdTraceConfig',
|
|
path: '/apps/{app_id}/trace-config',
|
|
summary: 'Update an existing trace app configuration',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ body: zPatchAppsByAppIdTraceConfigBody, params: zPatchAppsByAppIdTraceConfigPath }),
|
|
)
|
|
.output(zPatchAppsByAppIdTraceConfigResponse)
|
|
|
|
/**
|
|
* Create a new trace app configuration
|
|
*
|
|
* Create a new tracing configuration for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post32 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Create a new tracing configuration for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdTraceConfig',
|
|
path: '/apps/{app_id}/trace-config',
|
|
successStatus: 201,
|
|
summary: 'Create a new trace app configuration',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({ body: zPostAppsByAppIdTraceConfigBody, params: zPostAppsByAppIdTraceConfigPath }),
|
|
)
|
|
.output(zPostAppsByAppIdTraceConfigResponse)
|
|
|
|
export const traceConfig = {
|
|
delete: delete5,
|
|
get: get33,
|
|
patch,
|
|
post: post32,
|
|
}
|
|
|
|
/**
|
|
* Update app trigger (enable/disable)
|
|
*/
|
|
export const post33 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdTriggerEnable',
|
|
path: '/apps/{app_id}/trigger-enable',
|
|
summary: 'Update app trigger (enable/disable)',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdTriggerEnableBody,
|
|
params: zPostAppsByAppIdTriggerEnablePath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdTriggerEnableResponse)
|
|
|
|
export const triggerEnable = {
|
|
post: post33,
|
|
}
|
|
|
|
/**
|
|
* Get app triggers list
|
|
*/
|
|
export const get34 = oc
|
|
.route({
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdTriggers',
|
|
path: '/apps/{app_id}/triggers',
|
|
summary: 'Get app triggers list',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdTriggersPath }))
|
|
.output(zGetAppsByAppIdTriggersResponse)
|
|
|
|
export const triggers = {
|
|
get: get34,
|
|
}
|
|
|
|
/**
|
|
* Get workflow app logs
|
|
*
|
|
* Get workflow application execution logs
|
|
*/
|
|
export const get35 = oc
|
|
.route({
|
|
description: 'Get workflow application execution logs',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowAppLogs',
|
|
path: '/apps/{app_id}/workflow-app-logs',
|
|
summary: 'Get workflow app logs',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowAppLogsPath,
|
|
query: zGetAppsByAppIdWorkflowAppLogsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowAppLogsResponse)
|
|
|
|
export const workflowAppLogs = {
|
|
get: get35,
|
|
}
|
|
|
|
/**
|
|
* Get workflow archived logs
|
|
*
|
|
* Get workflow archived execution logs
|
|
*/
|
|
export const get36 = oc
|
|
.route({
|
|
description: 'Get workflow archived execution logs',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowArchivedLogs',
|
|
path: '/apps/{app_id}/workflow-archived-logs',
|
|
summary: 'Get workflow archived logs',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowArchivedLogsPath,
|
|
query: zGetAppsByAppIdWorkflowArchivedLogsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowArchivedLogsResponse)
|
|
|
|
export const workflowArchivedLogs = {
|
|
get: get36,
|
|
}
|
|
|
|
/**
|
|
* Get workflow runs count statistics
|
|
*
|
|
* Get workflow runs count statistics
|
|
*/
|
|
export const get37 = oc
|
|
.route({
|
|
description: 'Get workflow runs count statistics',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowRunsCount',
|
|
path: '/apps/{app_id}/workflow-runs/count',
|
|
summary: 'Get workflow runs count statistics',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowRunsCountPath,
|
|
query: zGetAppsByAppIdWorkflowRunsCountQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowRunsCountResponse)
|
|
|
|
export const count3 = {
|
|
get: get37,
|
|
}
|
|
|
|
/**
|
|
* Stop workflow task
|
|
*
|
|
* Stop running workflow task
|
|
*/
|
|
export const post34 = oc
|
|
.route({
|
|
description: 'Stop running workflow task',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowRunsTasksByTaskIdStop',
|
|
path: '/apps/{app_id}/workflow-runs/tasks/{task_id}/stop',
|
|
summary: 'Stop workflow task',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdWorkflowRunsTasksByTaskIdStopPath }))
|
|
.output(zPostAppsByAppIdWorkflowRunsTasksByTaskIdStopResponse)
|
|
|
|
export const stop3 = {
|
|
post: post34,
|
|
}
|
|
|
|
export const byTaskId3 = {
|
|
stop: stop3,
|
|
}
|
|
|
|
export const tasks = {
|
|
byTaskId: byTaskId3,
|
|
}
|
|
|
|
/**
|
|
* Generate a download URL for an archived workflow run.
|
|
*/
|
|
export const get38 = oc
|
|
.route({
|
|
description: 'Generate a download URL for an archived workflow run.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowRunsByRunIdExport',
|
|
path: '/apps/{app_id}/workflow-runs/{run_id}/export',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowRunsByRunIdExportPath }))
|
|
.output(zGetAppsByAppIdWorkflowRunsByRunIdExportResponse)
|
|
|
|
export const export4 = {
|
|
get: get38,
|
|
}
|
|
|
|
/**
|
|
* Get workflow run node execution list
|
|
*
|
|
* Get workflow run node execution list
|
|
*/
|
|
export const get39 = oc
|
|
.route({
|
|
description: 'Get workflow run node execution list',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowRunsByRunIdNodeExecutions',
|
|
path: '/apps/{app_id}/workflow-runs/{run_id}/node-executions',
|
|
summary: 'Get workflow run node execution list',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowRunsByRunIdNodeExecutionsPath }))
|
|
.output(zGetAppsByAppIdWorkflowRunsByRunIdNodeExecutionsResponse)
|
|
|
|
export const nodeExecutions = {
|
|
get: get39,
|
|
}
|
|
|
|
/**
|
|
* Get workflow run detail
|
|
*
|
|
* Get workflow run detail
|
|
*/
|
|
export const get40 = oc
|
|
.route({
|
|
description: 'Get workflow run detail',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowRunsByRunId',
|
|
path: '/apps/{app_id}/workflow-runs/{run_id}',
|
|
summary: 'Get workflow run detail',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowRunsByRunIdPath }))
|
|
.output(zGetAppsByAppIdWorkflowRunsByRunIdResponse)
|
|
|
|
export const byRunId = {
|
|
get: get40,
|
|
export: export4,
|
|
nodeExecutions,
|
|
}
|
|
|
|
/**
|
|
* Get workflow run list
|
|
*
|
|
* Get workflow run list
|
|
*/
|
|
export const get41 = oc
|
|
.route({
|
|
description: 'Get workflow run list',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowRuns',
|
|
path: '/apps/{app_id}/workflow-runs',
|
|
summary: 'Get workflow run list',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowRunsPath,
|
|
query: zGetAppsByAppIdWorkflowRunsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowRunsResponse)
|
|
|
|
export const workflowRuns2 = {
|
|
get: get41,
|
|
count: count3,
|
|
tasks,
|
|
byRunId,
|
|
}
|
|
|
|
/**
|
|
* Get all users in current tenant for mentions
|
|
*
|
|
* Get all users in current tenant for mentions
|
|
*/
|
|
export const get42 = oc
|
|
.route({
|
|
description: 'Get all users in current tenant for mentions',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowCommentsMentionUsers',
|
|
path: '/apps/{app_id}/workflow/comments/mention-users',
|
|
summary: 'Get all users in current tenant for mentions',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowCommentsMentionUsersPath }))
|
|
.output(zGetAppsByAppIdWorkflowCommentsMentionUsersResponse)
|
|
|
|
export const mentionUsers = {
|
|
get: get42,
|
|
}
|
|
|
|
/**
|
|
* Delete a comment reply
|
|
*
|
|
* Delete a comment reply
|
|
*/
|
|
export const delete6 = oc
|
|
.route({
|
|
description: 'Delete a comment reply',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyId',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}/replies/{reply_id}',
|
|
successStatus: 204,
|
|
summary: 'Delete a comment reply',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdPath }))
|
|
.output(zDeleteAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdResponse)
|
|
|
|
/**
|
|
* Update a comment reply
|
|
*
|
|
* Update a comment reply
|
|
*/
|
|
export const put2 = oc
|
|
.route({
|
|
description: 'Update a comment reply',
|
|
inputStructure: 'detailed',
|
|
method: 'PUT',
|
|
operationId: 'putAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyId',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}/replies/{reply_id}',
|
|
summary: 'Update a comment reply',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPutAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdBody,
|
|
params: zPutAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdPath,
|
|
}),
|
|
)
|
|
.output(zPutAppsByAppIdWorkflowCommentsByCommentIdRepliesByReplyIdResponse)
|
|
|
|
export const byReplyId = {
|
|
delete: delete6,
|
|
put: put2,
|
|
}
|
|
|
|
/**
|
|
* Add a reply to a workflow comment
|
|
*
|
|
* Add a reply to a workflow comment
|
|
*/
|
|
export const post35 = oc
|
|
.route({
|
|
description: 'Add a reply to a workflow comment',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowCommentsByCommentIdReplies',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}/replies',
|
|
successStatus: 201,
|
|
summary: 'Add a reply to a workflow comment',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowCommentsByCommentIdRepliesBody,
|
|
params: zPostAppsByAppIdWorkflowCommentsByCommentIdRepliesPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowCommentsByCommentIdRepliesResponse)
|
|
|
|
export const replies = {
|
|
post: post35,
|
|
byReplyId,
|
|
}
|
|
|
|
/**
|
|
* Resolve a workflow comment
|
|
*
|
|
* Resolve a workflow comment
|
|
*/
|
|
export const post36 = oc
|
|
.route({
|
|
description: 'Resolve a workflow comment',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowCommentsByCommentIdResolve',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}/resolve',
|
|
summary: 'Resolve a workflow comment',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdWorkflowCommentsByCommentIdResolvePath }))
|
|
.output(zPostAppsByAppIdWorkflowCommentsByCommentIdResolveResponse)
|
|
|
|
export const resolve = {
|
|
post: post36,
|
|
}
|
|
|
|
/**
|
|
* Delete a workflow comment
|
|
*
|
|
* Delete a workflow comment
|
|
*/
|
|
export const delete7 = oc
|
|
.route({
|
|
description: 'Delete a workflow comment',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdWorkflowCommentsByCommentId',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}',
|
|
successStatus: 204,
|
|
summary: 'Delete a workflow comment',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdWorkflowCommentsByCommentIdPath }))
|
|
.output(zDeleteAppsByAppIdWorkflowCommentsByCommentIdResponse)
|
|
|
|
/**
|
|
* Get a specific workflow comment
|
|
*
|
|
* Get a specific workflow comment
|
|
*/
|
|
export const get43 = oc
|
|
.route({
|
|
description: 'Get a specific workflow comment',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowCommentsByCommentId',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}',
|
|
summary: 'Get a specific workflow comment',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowCommentsByCommentIdPath }))
|
|
.output(zGetAppsByAppIdWorkflowCommentsByCommentIdResponse)
|
|
|
|
/**
|
|
* Update a workflow comment
|
|
*
|
|
* Update a workflow comment
|
|
*/
|
|
export const put3 = oc
|
|
.route({
|
|
description: 'Update a workflow comment',
|
|
inputStructure: 'detailed',
|
|
method: 'PUT',
|
|
operationId: 'putAppsByAppIdWorkflowCommentsByCommentId',
|
|
path: '/apps/{app_id}/workflow/comments/{comment_id}',
|
|
summary: 'Update a workflow comment',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPutAppsByAppIdWorkflowCommentsByCommentIdBody,
|
|
params: zPutAppsByAppIdWorkflowCommentsByCommentIdPath,
|
|
}),
|
|
)
|
|
.output(zPutAppsByAppIdWorkflowCommentsByCommentIdResponse)
|
|
|
|
export const byCommentId = {
|
|
delete: delete7,
|
|
get: get43,
|
|
put: put3,
|
|
replies,
|
|
resolve,
|
|
}
|
|
|
|
/**
|
|
* Get all comments for a workflow
|
|
*
|
|
* Get all comments for a workflow
|
|
*/
|
|
export const get44 = oc
|
|
.route({
|
|
description: 'Get all comments for a workflow',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowComments',
|
|
path: '/apps/{app_id}/workflow/comments',
|
|
summary: 'Get all comments for a workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowCommentsPath }))
|
|
.output(zGetAppsByAppIdWorkflowCommentsResponse)
|
|
|
|
/**
|
|
* Create a new workflow comment
|
|
*
|
|
* Create a new workflow comment
|
|
*/
|
|
export const post37 = oc
|
|
.route({
|
|
description: 'Create a new workflow comment',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowComments',
|
|
path: '/apps/{app_id}/workflow/comments',
|
|
successStatus: 201,
|
|
summary: 'Create a new workflow comment',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowCommentsBody,
|
|
params: zPostAppsByAppIdWorkflowCommentsPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowCommentsResponse)
|
|
|
|
export const comments = {
|
|
get: get44,
|
|
post: post37,
|
|
mentionUsers,
|
|
byCommentId,
|
|
}
|
|
|
|
/**
|
|
* Get workflow average app interaction statistics
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get45 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get workflow average app interaction statistics\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowStatisticsAverageAppInteractions',
|
|
path: '/apps/{app_id}/workflow/statistics/average-app-interactions',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowStatisticsAverageAppInteractionsPath,
|
|
query: zGetAppsByAppIdWorkflowStatisticsAverageAppInteractionsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowStatisticsAverageAppInteractionsResponse)
|
|
|
|
export const averageAppInteractions = {
|
|
get: get45,
|
|
}
|
|
|
|
/**
|
|
* Get workflow daily runs statistics
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get46 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get workflow daily runs statistics\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowStatisticsDailyConversations',
|
|
path: '/apps/{app_id}/workflow/statistics/daily-conversations',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowStatisticsDailyConversationsPath,
|
|
query: zGetAppsByAppIdWorkflowStatisticsDailyConversationsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowStatisticsDailyConversationsResponse)
|
|
|
|
export const dailyConversations2 = {
|
|
get: get46,
|
|
}
|
|
|
|
/**
|
|
* Get workflow daily terminals statistics
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get47 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get workflow daily terminals statistics\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowStatisticsDailyTerminals',
|
|
path: '/apps/{app_id}/workflow/statistics/daily-terminals',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowStatisticsDailyTerminalsPath,
|
|
query: zGetAppsByAppIdWorkflowStatisticsDailyTerminalsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowStatisticsDailyTerminalsResponse)
|
|
|
|
export const dailyTerminals = {
|
|
get: get47,
|
|
}
|
|
|
|
/**
|
|
* Get workflow daily token cost statistics
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get48 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get workflow daily token cost statistics\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowStatisticsTokenCosts',
|
|
path: '/apps/{app_id}/workflow/statistics/token-costs',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowStatisticsTokenCostsPath,
|
|
query: zGetAppsByAppIdWorkflowStatisticsTokenCostsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowStatisticsTokenCostsResponse)
|
|
|
|
export const tokenCosts2 = {
|
|
get: get48,
|
|
}
|
|
|
|
export const statistics2 = {
|
|
averageAppInteractions,
|
|
dailyConversations: dailyConversations2,
|
|
dailyTerminals,
|
|
tokenCosts: tokenCosts2,
|
|
}
|
|
|
|
export const workflow = {
|
|
comments,
|
|
statistics: statistics2,
|
|
}
|
|
|
|
/**
|
|
* Get default block config
|
|
*
|
|
* Get default block configuration by type
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get49 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get default block configuration by type\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockType',
|
|
path: '/apps/{app_id}/workflows/default-workflow-block-configs/{block_type}',
|
|
summary: 'Get default block config',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypePath,
|
|
query: zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypeQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsByBlockTypeResponse)
|
|
|
|
export const byBlockType = {
|
|
get: get49,
|
|
}
|
|
|
|
/**
|
|
* Get default block config
|
|
*
|
|
* Get default block configurations for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get50 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get default block configurations for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDefaultWorkflowBlockConfigs',
|
|
path: '/apps/{app_id}/workflows/default-workflow-block-configs',
|
|
summary: 'Get default block config',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDefaultWorkflowBlockConfigsResponse)
|
|
|
|
export const defaultWorkflowBlockConfigs = {
|
|
get: get50,
|
|
byBlockType,
|
|
}
|
|
|
|
/**
|
|
* Get conversation variables for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get51 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get conversation variables for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftConversationVariables',
|
|
path: '/apps/{app_id}/workflows/draft/conversation-variables',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftConversationVariablesPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftConversationVariablesResponse)
|
|
|
|
/**
|
|
* Update conversation variables for workflow draft
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post38 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update conversation variables for workflow draft\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftConversationVariables',
|
|
path: '/apps/{app_id}/workflows/draft/conversation-variables',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftConversationVariablesBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftConversationVariablesPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftConversationVariablesResponse)
|
|
|
|
export const conversationVariables2 = {
|
|
get: get51,
|
|
post: post38,
|
|
}
|
|
|
|
/**
|
|
* Get draft workflow
|
|
*
|
|
* Get environment variables for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get52 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get environment variables for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftEnvironmentVariables',
|
|
path: '/apps/{app_id}/workflows/draft/environment-variables',
|
|
summary: 'Get draft workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftEnvironmentVariablesPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftEnvironmentVariablesResponse)
|
|
|
|
/**
|
|
* Update environment variables for workflow draft
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post39 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update environment variables for workflow draft\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftEnvironmentVariables',
|
|
path: '/apps/{app_id}/workflows/draft/environment-variables',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftEnvironmentVariablesBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftEnvironmentVariablesPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftEnvironmentVariablesResponse)
|
|
|
|
export const environmentVariables = {
|
|
get: get52,
|
|
post: post39,
|
|
}
|
|
|
|
/**
|
|
* Update draft workflow features
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post40 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update draft workflow features\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftFeatures',
|
|
path: '/apps/{app_id}/workflows/draft/features',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftFeaturesBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftFeaturesPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftFeaturesResponse)
|
|
|
|
export const features = {
|
|
post: post40,
|
|
}
|
|
|
|
/**
|
|
* Test human input delivery
|
|
*
|
|
* Test human input delivery for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post41 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Test human input delivery for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTest',
|
|
path: '/apps/{app_id}/workflows/draft/human-input/nodes/{node_id}/delivery-test',
|
|
summary: 'Test human input delivery',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTestBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTestPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdDeliveryTestResponse)
|
|
|
|
export const deliveryTest = {
|
|
post: post41,
|
|
}
|
|
|
|
/**
|
|
* Preview human input form content and placeholders
|
|
*
|
|
* Get human input form preview for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post42 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get human input form preview for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreview',
|
|
path: '/apps/{app_id}/workflows/draft/human-input/nodes/{node_id}/form/preview',
|
|
summary: 'Preview human input form content and placeholders',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreviewBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreviewPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormPreviewResponse)
|
|
|
|
export const preview2 = {
|
|
post: post42,
|
|
}
|
|
|
|
/**
|
|
* Submit human input form preview
|
|
*
|
|
* Submit human input form preview for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post43 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Submit human input form preview for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRun',
|
|
path: '/apps/{app_id}/workflows/draft/human-input/nodes/{node_id}/form/run',
|
|
summary: 'Submit human input form preview',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRunBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftHumanInputNodesByNodeIdFormRunResponse)
|
|
|
|
export const run5 = {
|
|
post: post43,
|
|
}
|
|
|
|
export const form2 = {
|
|
preview: preview2,
|
|
run: run5,
|
|
}
|
|
|
|
export const byNodeId4 = {
|
|
deliveryTest,
|
|
form: form2,
|
|
}
|
|
|
|
export const nodes4 = {
|
|
byNodeId: byNodeId4,
|
|
}
|
|
|
|
export const humanInput2 = {
|
|
nodes: nodes4,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow iteration node
|
|
*
|
|
* Run draft workflow iteration node
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post44 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow iteration node\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRun',
|
|
path: '/apps/{app_id}/workflows/draft/iteration/nodes/{node_id}/run',
|
|
summary: 'Run draft workflow iteration node',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRunBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftIterationNodesByNodeIdRunResponse)
|
|
|
|
export const run6 = {
|
|
post: post44,
|
|
}
|
|
|
|
export const byNodeId5 = {
|
|
run: run6,
|
|
}
|
|
|
|
export const nodes5 = {
|
|
byNodeId: byNodeId5,
|
|
}
|
|
|
|
export const iteration2 = {
|
|
nodes: nodes5,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow loop node
|
|
*
|
|
* Run draft workflow loop node
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post45 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow loop node\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRun',
|
|
path: '/apps/{app_id}/workflows/draft/loop/nodes/{node_id}/run',
|
|
summary: 'Run draft workflow loop node',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRunBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftLoopNodesByNodeIdRunResponse)
|
|
|
|
export const run7 = {
|
|
post: post45,
|
|
}
|
|
|
|
export const byNodeId6 = {
|
|
run: run7,
|
|
}
|
|
|
|
export const nodes6 = {
|
|
byNodeId: byNodeId6,
|
|
}
|
|
|
|
export const loop2 = {
|
|
nodes: nodes6,
|
|
}
|
|
|
|
/**
|
|
* Get last run result for draft workflow node
|
|
*/
|
|
export const get53 = oc
|
|
.route({
|
|
description: 'Get last run result for draft workflow node',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftNodesByNodeIdLastRun',
|
|
path: '/apps/{app_id}/workflows/draft/nodes/{node_id}/last-run',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftNodesByNodeIdLastRunPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftNodesByNodeIdLastRunResponse)
|
|
|
|
export const lastRun = {
|
|
get: get53,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow node
|
|
*
|
|
* Run draft workflow node
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post46 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow node\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftNodesByNodeIdRun',
|
|
path: '/apps/{app_id}/workflows/draft/nodes/{node_id}/run',
|
|
summary: 'Run draft workflow node',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftNodesByNodeIdRunBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftNodesByNodeIdRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftNodesByNodeIdRunResponse)
|
|
|
|
export const run8 = {
|
|
post: post46,
|
|
}
|
|
|
|
/**
|
|
* Poll for trigger events and execute single node when event arrives
|
|
*
|
|
* Poll for trigger events and execute single node when event arrives
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post47 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Poll for trigger events and execute single node when event arrives\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftNodesByNodeIdTriggerRun',
|
|
path: '/apps/{app_id}/workflows/draft/nodes/{node_id}/trigger/run',
|
|
summary: 'Poll for trigger events and execute single node when event arrives',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdWorkflowsDraftNodesByNodeIdTriggerRunPath }))
|
|
.output(zPostAppsByAppIdWorkflowsDraftNodesByNodeIdTriggerRunResponse)
|
|
|
|
export const run9 = {
|
|
post: post47,
|
|
}
|
|
|
|
export const trigger = {
|
|
run: run9,
|
|
}
|
|
|
|
/**
|
|
* Delete all variables for a specific node
|
|
*/
|
|
export const delete8 = oc
|
|
.route({
|
|
description: 'Delete all variables for a specific node',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdWorkflowsDraftNodesByNodeIdVariables',
|
|
path: '/apps/{app_id}/workflows/draft/nodes/{node_id}/variables',
|
|
successStatus: 204,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesPath }))
|
|
.output(zDeleteAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesResponse)
|
|
|
|
/**
|
|
* Get variables for a specific node
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get54 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get variables for a specific node\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftNodesByNodeIdVariables',
|
|
path: '/apps/{app_id}/workflows/draft/nodes/{node_id}/variables',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftNodesByNodeIdVariablesResponse)
|
|
|
|
export const variables = {
|
|
delete: delete8,
|
|
get: get54,
|
|
}
|
|
|
|
export const byNodeId7 = {
|
|
lastRun,
|
|
run: run8,
|
|
trigger,
|
|
variables,
|
|
}
|
|
|
|
export const nodes7 = {
|
|
byNodeId: byNodeId7,
|
|
}
|
|
|
|
/**
|
|
* Run draft workflow
|
|
*
|
|
* Run draft workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post48 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Run draft workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftRun',
|
|
path: '/apps/{app_id}/workflows/draft/run',
|
|
summary: 'Run draft workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftRunBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftRunResponse)
|
|
|
|
export const run10 = {
|
|
post: post48,
|
|
}
|
|
|
|
/**
|
|
* Get system variables for workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get55 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get system variables for workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftSystemVariables',
|
|
path: '/apps/{app_id}/workflows/draft/system-variables',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftSystemVariablesPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftSystemVariablesResponse)
|
|
|
|
export const systemVariables = {
|
|
get: get55,
|
|
}
|
|
|
|
/**
|
|
* Poll for trigger events and execute full workflow when event arrives
|
|
*
|
|
* Poll for trigger events and execute full workflow when event arrives
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post49 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Poll for trigger events and execute full workflow when event arrives\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftTriggerRun',
|
|
path: '/apps/{app_id}/workflows/draft/trigger/run',
|
|
summary: 'Poll for trigger events and execute full workflow when event arrives',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftTriggerRunBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftTriggerRunPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftTriggerRunResponse)
|
|
|
|
export const run11 = {
|
|
post: post49,
|
|
}
|
|
|
|
/**
|
|
* Full workflow debug when the start node is a trigger
|
|
*
|
|
* Full workflow debug when the start node is a trigger
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post50 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Full workflow debug when the start node is a trigger\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraftTriggerRunAll',
|
|
path: '/apps/{app_id}/workflows/draft/trigger/run-all',
|
|
summary: 'Full workflow debug when the start node is a trigger',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftTriggerRunAllBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftTriggerRunAllPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftTriggerRunAllResponse)
|
|
|
|
export const runAll = {
|
|
post: post50,
|
|
}
|
|
|
|
export const trigger2 = {
|
|
run: run11,
|
|
runAll,
|
|
}
|
|
|
|
/**
|
|
* Reset a workflow variable to its default value
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const put4 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Reset a workflow variable to its default value\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'PUT',
|
|
operationId: 'putAppsByAppIdWorkflowsDraftVariablesByVariableIdReset',
|
|
path: '/apps/{app_id}/workflows/draft/variables/{variable_id}/reset',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPutAppsByAppIdWorkflowsDraftVariablesByVariableIdResetPath }))
|
|
.output(zPutAppsByAppIdWorkflowsDraftVariablesByVariableIdResetResponse)
|
|
|
|
export const reset = {
|
|
put: put4,
|
|
}
|
|
|
|
/**
|
|
* Delete a workflow variable
|
|
*/
|
|
export const delete9 = oc
|
|
.route({
|
|
description: 'Delete a workflow variable',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdWorkflowsDraftVariablesByVariableId',
|
|
path: '/apps/{app_id}/workflows/draft/variables/{variable_id}',
|
|
successStatus: 204,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdWorkflowsDraftVariablesByVariableIdPath }))
|
|
.output(zDeleteAppsByAppIdWorkflowsDraftVariablesByVariableIdResponse)
|
|
|
|
/**
|
|
* Get a specific workflow variable
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get56 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get a specific workflow variable\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftVariablesByVariableId',
|
|
path: '/apps/{app_id}/workflows/draft/variables/{variable_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftVariablesByVariableIdPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftVariablesByVariableIdResponse)
|
|
|
|
/**
|
|
* Update a workflow variable
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const patch2 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update a workflow variable\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'PATCH',
|
|
operationId: 'patchAppsByAppIdWorkflowsDraftVariablesByVariableId',
|
|
path: '/apps/{app_id}/workflows/draft/variables/{variable_id}',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPatchAppsByAppIdWorkflowsDraftVariablesByVariableIdBody,
|
|
params: zPatchAppsByAppIdWorkflowsDraftVariablesByVariableIdPath,
|
|
}),
|
|
)
|
|
.output(zPatchAppsByAppIdWorkflowsDraftVariablesByVariableIdResponse)
|
|
|
|
export const byVariableId = {
|
|
delete: delete9,
|
|
get: get56,
|
|
patch: patch2,
|
|
reset,
|
|
}
|
|
|
|
/**
|
|
* Delete all draft workflow variables
|
|
*/
|
|
export const delete10 = oc
|
|
.route({
|
|
description: 'Delete all draft workflow variables',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdWorkflowsDraftVariables',
|
|
path: '/apps/{app_id}/workflows/draft/variables',
|
|
successStatus: 204,
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdWorkflowsDraftVariablesPath }))
|
|
.output(zDeleteAppsByAppIdWorkflowsDraftVariablesResponse)
|
|
|
|
/**
|
|
* Get draft workflow
|
|
*
|
|
* Get draft workflow variables
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get57 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get draft workflow variables\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraftVariables',
|
|
path: '/apps/{app_id}/workflows/draft/variables',
|
|
summary: 'Get draft workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowsDraftVariablesPath,
|
|
query: zGetAppsByAppIdWorkflowsDraftVariablesQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowsDraftVariablesResponse)
|
|
|
|
export const variables2 = {
|
|
delete: delete10,
|
|
get: get57,
|
|
byVariableId,
|
|
}
|
|
|
|
/**
|
|
* Get draft workflow
|
|
*
|
|
* Get draft workflow for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get58 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get draft workflow for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsDraft',
|
|
path: '/apps/{app_id}/workflows/draft',
|
|
summary: 'Get draft workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsDraftPath }))
|
|
.output(zGetAppsByAppIdWorkflowsDraftResponse)
|
|
|
|
/**
|
|
* Sync draft workflow
|
|
*
|
|
* Sync draft workflow configuration
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post51 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Sync draft workflow configuration\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsDraft',
|
|
path: '/apps/{app_id}/workflows/draft',
|
|
summary: 'Sync draft workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsDraftBody,
|
|
params: zPostAppsByAppIdWorkflowsDraftPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsDraftResponse)
|
|
|
|
export const draft2 = {
|
|
get: get58,
|
|
post: post51,
|
|
conversationVariables: conversationVariables2,
|
|
environmentVariables,
|
|
features,
|
|
humanInput: humanInput2,
|
|
iteration: iteration2,
|
|
loop: loop2,
|
|
nodes: nodes7,
|
|
run: run10,
|
|
systemVariables,
|
|
trigger: trigger2,
|
|
variables: variables2,
|
|
}
|
|
|
|
/**
|
|
* Get published workflow
|
|
*
|
|
* Get published workflow for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get59 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get published workflow for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsPublish',
|
|
path: '/apps/{app_id}/workflows/publish',
|
|
summary: 'Get published workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdWorkflowsPublishPath }))
|
|
.output(zGetAppsByAppIdWorkflowsPublishResponse)
|
|
|
|
/**
|
|
* Publish workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post52 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsPublish',
|
|
path: '/apps/{app_id}/workflows/publish',
|
|
summary: 'Publish workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPostAppsByAppIdWorkflowsPublishBody,
|
|
params: zPostAppsByAppIdWorkflowsPublishPath,
|
|
}),
|
|
)
|
|
.output(zPostAppsByAppIdWorkflowsPublishResponse)
|
|
|
|
export const publish = {
|
|
get: get59,
|
|
post: post52,
|
|
}
|
|
|
|
/**
|
|
* Get webhook trigger for a node
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get60 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflowsTriggersWebhook',
|
|
path: '/apps/{app_id}/workflows/triggers/webhook',
|
|
summary: 'Get webhook trigger for a node',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowsTriggersWebhookPath,
|
|
query: zGetAppsByAppIdWorkflowsTriggersWebhookQuery,
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowsTriggersWebhookResponse)
|
|
|
|
export const webhook = {
|
|
get: get60,
|
|
}
|
|
|
|
export const triggers2 = {
|
|
webhook,
|
|
}
|
|
|
|
/**
|
|
* Restore a published workflow version into the draft workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post53 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Restore a published workflow version into the draft workflow\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByAppIdWorkflowsByWorkflowIdRestore',
|
|
path: '/apps/{app_id}/workflows/{workflow_id}/restore',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByAppIdWorkflowsByWorkflowIdRestorePath }))
|
|
.output(zPostAppsByAppIdWorkflowsByWorkflowIdRestoreResponse)
|
|
|
|
export const restore = {
|
|
post: post53,
|
|
}
|
|
|
|
/**
|
|
* Delete workflow
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const delete11 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppIdWorkflowsByWorkflowId',
|
|
path: '/apps/{app_id}/workflows/{workflow_id}',
|
|
summary: 'Delete workflow',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdWorkflowsByWorkflowIdPath }))
|
|
.output(zDeleteAppsByAppIdWorkflowsByWorkflowIdResponse)
|
|
|
|
/**
|
|
* Update workflow attributes
|
|
*
|
|
* Update workflow by ID
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const patch3 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update workflow by ID\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'PATCH',
|
|
operationId: 'patchAppsByAppIdWorkflowsByWorkflowId',
|
|
path: '/apps/{app_id}/workflows/{workflow_id}',
|
|
summary: 'Update workflow attributes',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
body: zPatchAppsByAppIdWorkflowsByWorkflowIdBody,
|
|
params: zPatchAppsByAppIdWorkflowsByWorkflowIdPath,
|
|
}),
|
|
)
|
|
.output(zPatchAppsByAppIdWorkflowsByWorkflowIdResponse)
|
|
|
|
export const byWorkflowId = {
|
|
delete: delete11,
|
|
patch: patch3,
|
|
restore,
|
|
}
|
|
|
|
/**
|
|
* Get published workflows
|
|
*
|
|
* Get all published workflows for an application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get61 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get all published workflows for an application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppIdWorkflows',
|
|
path: '/apps/{app_id}/workflows',
|
|
summary: 'Get published workflows',
|
|
tags: ['console'],
|
|
})
|
|
.input(
|
|
z.object({
|
|
params: zGetAppsByAppIdWorkflowsPath,
|
|
query: zGetAppsByAppIdWorkflowsQuery.optional(),
|
|
}),
|
|
)
|
|
.output(zGetAppsByAppIdWorkflowsResponse)
|
|
|
|
export const workflows3 = {
|
|
get: get61,
|
|
defaultWorkflowBlockConfigs,
|
|
draft: draft2,
|
|
publish,
|
|
triggers: triggers2,
|
|
byWorkflowId,
|
|
}
|
|
|
|
/**
|
|
* Delete app
|
|
*
|
|
* Delete application
|
|
*/
|
|
export const delete12 = oc
|
|
.route({
|
|
description: 'Delete application',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByAppId',
|
|
path: '/apps/{app_id}',
|
|
successStatus: 204,
|
|
summary: 'Delete app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByAppIdPath }))
|
|
.output(zDeleteAppsByAppIdResponse)
|
|
|
|
/**
|
|
* Get app detail
|
|
*
|
|
* Get application details
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get62 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get application details\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByAppId',
|
|
path: '/apps/{app_id}',
|
|
summary: 'Get app detail',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByAppIdPath }))
|
|
.output(zGetAppsByAppIdResponse)
|
|
|
|
/**
|
|
* Update app
|
|
*
|
|
* Update application details
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const put5 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Update application details\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'PUT',
|
|
operationId: 'putAppsByAppId',
|
|
path: '/apps/{app_id}',
|
|
summary: 'Update app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPutAppsByAppIdBody, params: zPutAppsByAppIdPath }))
|
|
.output(zPutAppsByAppIdResponse)
|
|
|
|
export const byAppId2 = {
|
|
delete: delete12,
|
|
get: get62,
|
|
put: put5,
|
|
advancedChat,
|
|
agent,
|
|
annotationReply,
|
|
annotationSetting,
|
|
annotationSettings,
|
|
annotations,
|
|
apiEnable,
|
|
audioToText,
|
|
chatConversations,
|
|
chatMessages,
|
|
completionConversations,
|
|
completionMessages,
|
|
conversationVariables,
|
|
convertToWorkflow,
|
|
copy,
|
|
export: export2,
|
|
feedbacks,
|
|
icon,
|
|
messages,
|
|
modelConfig,
|
|
name,
|
|
publishToCreatorsPlatform,
|
|
server,
|
|
site,
|
|
siteEnable,
|
|
statistics,
|
|
textToAudio,
|
|
trace,
|
|
traceConfig,
|
|
triggerEnable,
|
|
triggers,
|
|
workflowAppLogs,
|
|
workflowArchivedLogs,
|
|
workflowRuns: workflowRuns2,
|
|
workflow,
|
|
workflows: workflows3,
|
|
}
|
|
|
|
/**
|
|
* Delete an API key for an app
|
|
*
|
|
* Delete an API key for an app
|
|
*/
|
|
export const delete13 = oc
|
|
.route({
|
|
description: 'Delete an API key for an app',
|
|
inputStructure: 'detailed',
|
|
method: 'DELETE',
|
|
operationId: 'deleteAppsByResourceIdApiKeysByApiKeyId',
|
|
path: '/apps/{resource_id}/api-keys/{api_key_id}',
|
|
successStatus: 204,
|
|
summary: 'Delete an API key for an app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zDeleteAppsByResourceIdApiKeysByApiKeyIdPath }))
|
|
.output(zDeleteAppsByResourceIdApiKeysByApiKeyIdResponse)
|
|
|
|
export const byApiKeyId = {
|
|
delete: delete13,
|
|
}
|
|
|
|
/**
|
|
* Get all API keys for an app
|
|
*
|
|
* Get all API keys for an app
|
|
*/
|
|
export const get63 = oc
|
|
.route({
|
|
description: 'Get all API keys for an app',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByResourceIdApiKeys',
|
|
path: '/apps/{resource_id}/api-keys',
|
|
summary: 'Get all API keys for an app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByResourceIdApiKeysPath }))
|
|
.output(zGetAppsByResourceIdApiKeysResponse)
|
|
|
|
/**
|
|
* Create a new API key for an app
|
|
*
|
|
* Create a new API key for an app
|
|
*/
|
|
export const post54 = oc
|
|
.route({
|
|
description: 'Create a new API key for an app',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postAppsByResourceIdApiKeys',
|
|
path: '/apps/{resource_id}/api-keys',
|
|
successStatus: 201,
|
|
summary: 'Create a new API key for an app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zPostAppsByResourceIdApiKeysPath }))
|
|
.output(zPostAppsByResourceIdApiKeysResponse)
|
|
|
|
export const apiKeys = {
|
|
get: get63,
|
|
post: post54,
|
|
byApiKeyId,
|
|
}
|
|
|
|
export const byResourceId = {
|
|
apiKeys,
|
|
}
|
|
|
|
/**
|
|
* Refresh MCP server configuration and regenerate server code
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const get64 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Refresh MCP server configuration and regenerate server code\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getAppsByServerIdServerRefresh',
|
|
path: '/apps/{server_id}/server/refresh',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ params: zGetAppsByServerIdServerRefreshPath }))
|
|
.output(zGetAppsByServerIdServerRefreshResponse)
|
|
|
|
export const refresh = {
|
|
get: get64,
|
|
}
|
|
|
|
export const server2 = {
|
|
refresh,
|
|
}
|
|
|
|
export const byServerId = {
|
|
server: server2,
|
|
}
|
|
|
|
/**
|
|
* Get app list
|
|
*
|
|
* Get list of applications with pagination and filtering
|
|
*/
|
|
export const get65 = oc
|
|
.route({
|
|
description: 'Get list of applications with pagination and filtering',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getApps',
|
|
path: '/apps',
|
|
summary: 'Get app list',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetAppsQuery.optional() }))
|
|
.output(zGetAppsResponse)
|
|
|
|
/**
|
|
* Create app
|
|
*
|
|
* Create a new application
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post55 = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Create a new application\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postApps',
|
|
path: '/apps',
|
|
successStatus: 201,
|
|
summary: 'Create app',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostAppsBody }))
|
|
.output(zPostAppsResponse)
|
|
|
|
export const apps = {
|
|
get: get65,
|
|
post: post55,
|
|
imports,
|
|
workflows,
|
|
byAppId: byAppId2,
|
|
byResourceId,
|
|
byServerId,
|
|
}
|
|
|
|
export const contract = {
|
|
apps,
|
|
}
|