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

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

export type BedrockRetrievalPayload = {
  knowledge_id: string
  query: string
  retrieval_setting: BedrockRetrievalSetting
}

export type ExternalRetrievalTestResponse
  = | {
    [key: string]: unknown
  }
  | Array<{
    [key: string]: unknown
  }>

export type BedrockRetrievalSetting = {
  score_threshold?: number
  top_k?: number | null
}

export type PostTestRetrievalData = {
  body: BedrockRetrievalPayload
  path?: never
  query?: never
  url: '/test/retrieval'
}

export type PostTestRetrievalResponses = {
  200: ExternalRetrievalTestResponse
}

export type PostTestRetrievalResponse = PostTestRetrievalResponses[keyof PostTestRetrievalResponses]
