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

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

export type BillingInvoiceResponse = {
  url: string
}

export type PartnerTenantsPayload = {
  click_id: string
}

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

export type GetBillingInvoicesData = {
  body?: never
  path?: never
  query?: never
  url: '/billing/invoices'
}

export type GetBillingInvoicesResponses = {
  200: BillingInvoiceResponse
}

export type GetBillingInvoicesResponse =
  GetBillingInvoicesResponses[keyof GetBillingInvoicesResponses]

export type PutBillingPartnersByPartnerKeyTenantsData = {
  body: PartnerTenantsPayload
  path: {
    partner_key: string
  }
  query?: never
  url: '/billing/partners/{partner_key}/tenants'
}

export type PutBillingPartnersByPartnerKeyTenantsErrors = {
  400: unknown
}

export type PutBillingPartnersByPartnerKeyTenantsResponses = {
  200: BillingResponse
}

export type PutBillingPartnersByPartnerKeyTenantsResponse =
  PutBillingPartnersByPartnerKeyTenantsResponses[keyof PutBillingPartnersByPartnerKeyTenantsResponses]

export type GetBillingSubscriptionData = {
  body?: never
  path?: never
  query: {
    interval: 'month' | 'year'
    plan: 'professional' | 'team'
  }
  url: '/billing/subscription'
}

export type GetBillingSubscriptionResponses = {
  200: BillingResponse
}

export type GetBillingSubscriptionResponse =
  GetBillingSubscriptionResponses[keyof GetBillingSubscriptionResponses]
