// 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 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: {
    [key: string]: unknown
  }
  402: {
    [key: string]: unknown
  }
}

export type PostRuleCodeGenerateError = PostRuleCodeGenerateErrors[keyof PostRuleCodeGenerateErrors]

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

export type PostRuleCodeGenerateResponse
  = PostRuleCodeGenerateResponses[keyof PostRuleCodeGenerateResponses]
