// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
  baseUrl: `${string}://${string}/console/api` | (string & {})
}

export type ChatRequest = {
  conversation_id?: string | null
  files?: Array<unknown> | null
  inputs: {
    [key: string]: unknown
  }
  parent_message_id?: string | null
  query: string
  retriever_from?: string
}

export type CompletionRequest = {
  files?: Array<unknown> | null
  inputs: {
    [key: string]: unknown
  }
  query?: string
  response_mode?: 'blocking' | 'streaming' | null
  retriever_from?: string
}

export type TextToSpeechRequest = {
  message_id?: string | null
  streaming?: boolean | null
  text?: string | null
  voice?: string | null
}

export type WorkflowRunRequest = {
  files?: Array<unknown> | null
  inputs: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdData = {
  body?: never
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}'
}

export type GetTrialAppsByAppIdResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdResponse
  = GetTrialAppsByAppIdResponses[keyof GetTrialAppsByAppIdResponses]

export type PostTrialAppsByAppIdAudioToTextData = {
  body?: never
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/audio-to-text'
}

export type PostTrialAppsByAppIdAudioToTextResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostTrialAppsByAppIdAudioToTextResponse
  = PostTrialAppsByAppIdAudioToTextResponses[keyof PostTrialAppsByAppIdAudioToTextResponses]

export type PostTrialAppsByAppIdChatMessagesData = {
  body: ChatRequest
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/chat-messages'
}

export type PostTrialAppsByAppIdChatMessagesResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostTrialAppsByAppIdChatMessagesResponse
  = PostTrialAppsByAppIdChatMessagesResponses[keyof PostTrialAppsByAppIdChatMessagesResponses]

export type PostTrialAppsByAppIdCompletionMessagesData = {
  body: CompletionRequest
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/completion-messages'
}

export type PostTrialAppsByAppIdCompletionMessagesResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostTrialAppsByAppIdCompletionMessagesResponse
  = PostTrialAppsByAppIdCompletionMessagesResponses[keyof PostTrialAppsByAppIdCompletionMessagesResponses]

export type GetTrialAppsByAppIdDatasetsData = {
  body?: never
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/datasets'
}

export type GetTrialAppsByAppIdDatasetsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdDatasetsResponse
  = GetTrialAppsByAppIdDatasetsResponses[keyof GetTrialAppsByAppIdDatasetsResponses]

export type GetTrialAppsByAppIdMessagesByMessageIdSuggestedQuestionsData = {
  body?: never
  path: {
    app_id: string
    message_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/messages/{message_id}/suggested-questions'
}

export type GetTrialAppsByAppIdMessagesByMessageIdSuggestedQuestionsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdMessagesByMessageIdSuggestedQuestionsResponse
  = GetTrialAppsByAppIdMessagesByMessageIdSuggestedQuestionsResponses[keyof GetTrialAppsByAppIdMessagesByMessageIdSuggestedQuestionsResponses]

export type GetTrialAppsByAppIdParametersData = {
  body?: never
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/parameters'
}

export type GetTrialAppsByAppIdParametersResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdParametersResponse
  = GetTrialAppsByAppIdParametersResponses[keyof GetTrialAppsByAppIdParametersResponses]

export type GetTrialAppsByAppIdSiteData = {
  body?: never
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/site'
}

export type GetTrialAppsByAppIdSiteResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdSiteResponse
  = GetTrialAppsByAppIdSiteResponses[keyof GetTrialAppsByAppIdSiteResponses]

export type PostTrialAppsByAppIdTextToAudioData = {
  body: TextToSpeechRequest
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/text-to-audio'
}

export type PostTrialAppsByAppIdTextToAudioResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostTrialAppsByAppIdTextToAudioResponse
  = PostTrialAppsByAppIdTextToAudioResponses[keyof PostTrialAppsByAppIdTextToAudioResponses]

export type GetTrialAppsByAppIdWorkflowsData = {
  body?: never
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/workflows'
}

export type GetTrialAppsByAppIdWorkflowsResponses = {
  200: {
    [key: string]: unknown
  }
}

export type GetTrialAppsByAppIdWorkflowsResponse
  = GetTrialAppsByAppIdWorkflowsResponses[keyof GetTrialAppsByAppIdWorkflowsResponses]

export type PostTrialAppsByAppIdWorkflowsRunData = {
  body: WorkflowRunRequest
  path: {
    app_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/workflows/run'
}

export type PostTrialAppsByAppIdWorkflowsRunResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostTrialAppsByAppIdWorkflowsRunResponse
  = PostTrialAppsByAppIdWorkflowsRunResponses[keyof PostTrialAppsByAppIdWorkflowsRunResponses]

export type PostTrialAppsByAppIdWorkflowsTasksByTaskIdStopData = {
  body?: never
  path: {
    app_id: string
    task_id: string
  }
  query?: never
  url: '/trial-apps/{app_id}/workflows/tasks/{task_id}/stop'
}

export type PostTrialAppsByAppIdWorkflowsTasksByTaskIdStopResponses = {
  200: {
    [key: string]: unknown
  }
}

export type PostTrialAppsByAppIdWorkflowsTasksByTaskIdStopResponse
  = PostTrialAppsByAppIdWorkflowsTasksByTaskIdStopResponses[keyof PostTrialAppsByAppIdWorkflowsTasksByTaskIdStopResponses]
