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

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

export type WebsiteCrawlPayload = {
  options: {
    [key: string]: unknown
  }
  provider: 'firecrawl' | 'jinareader' | 'watercrawl'
  url: string
}

export type WebsiteCrawlResponse = {
  [key: string]: unknown
}

export type PostWebsiteCrawlData = {
  body: WebsiteCrawlPayload
  path?: never
  query?: never
  url: '/website/crawl'
}

export type PostWebsiteCrawlErrors = {
  400: unknown
}

export type PostWebsiteCrawlResponses = {
  200: WebsiteCrawlResponse
}

export type PostWebsiteCrawlResponse = PostWebsiteCrawlResponses[keyof PostWebsiteCrawlResponses]

export type GetWebsiteCrawlStatusByJobIdData = {
  body?: never
  path: {
    job_id: string
  }
  query: {
    provider: 'firecrawl' | 'jinareader' | 'watercrawl'
  }
  url: '/website/crawl/status/{job_id}'
}

export type GetWebsiteCrawlStatusByJobIdErrors = {
  400: unknown
  404: unknown
}

export type GetWebsiteCrawlStatusByJobIdResponses = {
  200: WebsiteCrawlResponse
}

export type GetWebsiteCrawlStatusByJobIdResponse
  = GetWebsiteCrawlStatusByJobIdResponses[keyof GetWebsiteCrawlStatusByJobIdResponses]
