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

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

export type WorkflowGeneratePayload = {
  current_graph?: {
    [key: string]: unknown
  } | null
  ideal_output?: string
  instruction: string
  mode: 'advanced-chat' | 'workflow'
  model_config: ModelConfig
}

export type GeneratorResponse = unknown

export type ModelConfig = {
  completion_params?: {
    [key: string]: unknown
  }
  mode: LlmMode
  name: string
  provider: string
}

export type LlmMode = 'chat' | 'completion'

export type PostWorkflowGenerateData = {
  body: WorkflowGeneratePayload
  path?: never
  query?: never
  url: '/workflow-generate'
}

export type PostWorkflowGenerateErrors = {
  400: unknown
  402: unknown
}

export type PostWorkflowGenerateResponses = {
  200: GeneratorResponse
}

export type PostWorkflowGenerateResponse
  = PostWorkflowGenerateResponses[keyof PostWorkflowGenerateResponses]
