dify/packages/contracts/generated/api/console/billing/zod.gen.ts
Stephen Zhou 93981cf75f
refactor(web): migrate console contracts to generated routes (#38233)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-07-01 05:41:37 +00:00

49 lines
1014 B
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* BillingInvoiceResponse
*/
export const zBillingInvoiceResponse = z.object({
url: z.string(),
})
/**
* PartnerTenantsPayload
*/
export const zPartnerTenantsPayload = z.object({
click_id: z.string(),
})
/**
* BillingResponse
*/
export const zBillingResponse = z.record(z.string(), z.unknown())
/**
* Success
*/
export const zGetBillingInvoicesResponse = zBillingInvoiceResponse
export const zPutBillingPartnersByPartnerKeyTenantsBody = zPartnerTenantsPayload
export const zPutBillingPartnersByPartnerKeyTenantsPath = z.object({
partner_key: z.string(),
})
/**
* Tenants synced to partner successfully
*/
export const zPutBillingPartnersByPartnerKeyTenantsResponse = zBillingResponse
export const zGetBillingSubscriptionQuery = z.object({
interval: z.enum(['month', 'year']),
plan: z.enum(['professional', 'team']),
})
/**
* Success
*/
export const zGetBillingSubscriptionResponse = zBillingResponse