mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 13:00:51 -04:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
53 lines
1.2 KiB
TypeScript
53 lines
1.2 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.record(z.string(), z.never())
|