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

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

export type RuleCodeGeneratePayload = {
  code_language?: string
  instruction: string
  model_config: ModelConfig
  no_variable?: boolean
}

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 PostRuleCodeGenerateData = {
  body: RuleCodeGeneratePayload
  path?: never
  query?: never
  url: '/rule-code-generate'
}

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

export type PostRuleCodeGenerateResponses = {
  200: GeneratorResponse
}

export type PostRuleCodeGenerateResponse =
  PostRuleCodeGenerateResponses[keyof PostRuleCodeGenerateResponses]
