mirror of
https://github.com/langgenius/dify.git
synced 2026-09-03 06:53:26 +08:00
56 lines
1.2 KiB
TypeScript
56 lines
1.2 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* ComplianceDownloadResponse
|
|
*/
|
|
export const zComplianceDownloadResponse = z.object({
|
|
url: z.string(),
|
|
})
|
|
|
|
/**
|
|
* BillingUnprocessableEntityErrorResponse
|
|
*/
|
|
export const zBillingUnprocessableEntityErrorResponse = z.object({
|
|
code: z.literal('unprocessable_entity'),
|
|
message: z.string(),
|
|
status: z.literal(422),
|
|
})
|
|
|
|
/**
|
|
* ComplianceRateLimitErrorResponse
|
|
*/
|
|
export const zComplianceRateLimitErrorResponse = z.object({
|
|
code: z.literal('compliance_rate_limit'),
|
|
message: z.string(),
|
|
status: z.literal(429),
|
|
})
|
|
|
|
/**
|
|
* BillingOperationFailedErrorResponse
|
|
*/
|
|
export const zBillingOperationFailedErrorResponse = z.object({
|
|
code: z.literal('billing_operation_failed'),
|
|
message: z.string(),
|
|
status: z.literal(502),
|
|
})
|
|
|
|
/**
|
|
* BillingUnavailableErrorResponse
|
|
*/
|
|
export const zBillingUnavailableErrorResponse = z.object({
|
|
code: z.literal('billing_unavailable'),
|
|
message: z.string(),
|
|
status: z.literal(503),
|
|
})
|
|
|
|
export const zGetComplianceDownloadQuery = z.object({
|
|
doc_name: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetComplianceDownloadResponse = zComplianceDownloadResponse
|