// 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 = {
  agent_mode_dict?: JsonValue
  annotation_reply_dict?: JsonValue
  chat_prompt_config_dict?: JsonValue
  completion_prompt_config_dict?: JsonValue
  created_at?: number | null
  created_by?: string | null
  dataset_configs_dict?: JsonValue
  dataset_query_variable?: string | null
  external_data_tools_list?: JsonValue
  file_upload_dict?: JsonValue
  model_dict?: JsonValue
  more_like_this_dict?: JsonValue
  opening_statement?: string | null
  pre_prompt?: string | null
  prompt_type?: string | null
  retriever_resource_dict?: JsonValue
  sensitive_word_avoidance_dict?: JsonValue
  speech_to_text_dict?: JsonValue
  suggested_questions_after_answer_dict?: JsonValue
  suggested_questions_list?: JsonValue
  text_to_speech_dict?: JsonValue
  updated_at?: number | null
  updated_by?: string | null
  user_input_form_list?: JsonValue
}

export type JsonValue = unknown

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]
