dify/packages/contracts/generated/api/console/api-key-auth/zod.gen.ts
Asuka Minato 6c0cce4b7f
chore: update to openapi v3 by change dep (#37316)
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: Stephen Zhou <hi@hyoban.cc>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-12 07:52:19 +00:00

53 lines
1.1 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* ApiKeyAuthBindingPayload
*/
export const zApiKeyAuthBindingPayload = z.object({
category: z.string(),
credentials: z.record(z.string(), z.unknown()),
provider: z.string(),
})
/**
* ApiKeyAuthDataSourceItem
*/
export const zApiKeyAuthDataSourceItem = z.object({
category: z.string(),
created_at: z.int(),
disabled: z.boolean(),
id: z.string(),
provider: z.string(),
updated_at: z.int(),
})
/**
* ApiKeyAuthDataSourceListResponse
*/
export const zApiKeyAuthDataSourceListResponse = z.object({
sources: z.array(zApiKeyAuthDataSourceItem),
})
/**
* Success
*/
export const zGetApiKeyAuthDataSourceResponse = zApiKeyAuthDataSourceListResponse
export const zPostApiKeyAuthDataSourceBindingBody = zApiKeyAuthBindingPayload
/**
* Success
*/
export const zPostApiKeyAuthDataSourceBindingResponse = z.record(z.string(), z.unknown())
export const zDeleteApiKeyAuthDataSourceByBindingIdPath = z.object({
binding_id: z.string(),
})
/**
* Binding deleted successfully
*/
export const zDeleteApiKeyAuthDataSourceByBindingIdResponse = z.void()