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

export type PostRuleGenerateError = PostRuleGenerateErrors[keyof PostRuleGenerateErrors]

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

export type PostRuleGenerateResponse = PostRuleGenerateResponses[keyof PostRuleGenerateResponses]
