mirror of
https://github.com/langgenius/dify.git
synced 2026-06-14 04:31:07 +08:00
60 lines
1.2 KiB
TypeScript
60 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(),
|
|
})
|
|
|
|
/**
|
|
* SimpleResultResponse
|
|
*/
|
|
export const zSimpleResultResponse = z.object({
|
|
result: 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 = zSimpleResultResponse
|
|
|
|
export const zDeleteApiKeyAuthDataSourceByBindingIdPath = z.object({
|
|
binding_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Binding deleted successfully
|
|
*/
|
|
export const zDeleteApiKeyAuthDataSourceByBindingIdResponse = z.void()
|