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

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

export type RuleGeneratePayload = {
  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 PostRuleGenerateData = {
  body: RuleGeneratePayload
  path?: never
  query?: never
  url: '/rule-generate'
}

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

export type PostRuleGenerateResponses = {
  200: GeneratorResponse
}

export type PostRuleGenerateResponse = PostRuleGenerateResponses[keyof PostRuleGenerateResponses]
