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

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

export type RuleStructuredOutputPayload = {
  instruction: string
  model_config: ModelConfig
}

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

export type LlmMode = 'chat' | 'completion'

export type PostRuleStructuredOutputGenerateData = {
  body: RuleStructuredOutputPayload
  path?: never
  query?: never
  url: '/rule-structured-output-generate'
}

export type PostRuleStructuredOutputGenerateErrors = {
  400: {
    [key: string]: unknown
  }
  402: {
    [key: string]: unknown
  }
}

export type PostRuleStructuredOutputGenerateError
  = PostRuleStructuredOutputGenerateErrors[keyof PostRuleStructuredOutputGenerateErrors]

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

export type PostRuleStructuredOutputGenerateResponse
  = PostRuleStructuredOutputGenerateResponses[keyof PostRuleStructuredOutputGenerateResponses]
