// 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' | 'watercrawl' | 'jinareader'
  url: string
}

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

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

export type PostWebsiteCrawlError = PostWebsiteCrawlErrors[keyof PostWebsiteCrawlErrors]

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

export type PostWebsiteCrawlResponse = PostWebsiteCrawlResponses[keyof PostWebsiteCrawlResponses]

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

export type GetWebsiteCrawlStatusByJobIdErrors = {
  400: {
    [key: string]: unknown
  }
  404: {
    [key: string]: unknown
  }
}

export type GetWebsiteCrawlStatusByJobIdError
  = GetWebsiteCrawlStatusByJobIdErrors[keyof GetWebsiteCrawlStatusByJobIdErrors]

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

export type GetWebsiteCrawlStatusByJobIdResponse
  = GetWebsiteCrawlStatusByJobIdResponses[keyof GetWebsiteCrawlStatusByJobIdResponses]
