mirror of
https://github.com/langgenius/dify.git
synced 2026-06-14 04:31:07 +08:00
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>
92 lines
2.1 KiB
TypeScript
92 lines
2.1 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* SimpleResultResponse
|
|
*/
|
|
export const zSimpleResultResponse = z.object({
|
|
result: z.string(),
|
|
})
|
|
|
|
/**
|
|
* DataSourceIntegrateIconResponse
|
|
*/
|
|
export const zDataSourceIntegrateIconResponse = z.object({
|
|
emoji: z.string().nullish(),
|
|
type: z.string().nullish(),
|
|
url: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* DataSourceIntegratePageResponse
|
|
*/
|
|
export const zDataSourceIntegratePageResponse = z.object({
|
|
page_icon: zDataSourceIntegrateIconResponse.nullable(),
|
|
page_id: z.string(),
|
|
page_name: z.string(),
|
|
parent_id: z.string(),
|
|
type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* DataSourceIntegrateWorkspaceResponse
|
|
*/
|
|
export const zDataSourceIntegrateWorkspaceResponse = z.object({
|
|
pages: z.array(zDataSourceIntegratePageResponse),
|
|
total: z.int(),
|
|
workspace_icon: z.string().nullable(),
|
|
workspace_id: z.string().nullable(),
|
|
workspace_name: z.string().nullable(),
|
|
})
|
|
|
|
/**
|
|
* DataSourceIntegrateResponse
|
|
*/
|
|
export const zDataSourceIntegrateResponse = z.object({
|
|
created_at: z.int().nullable(),
|
|
disabled: z.boolean().nullable(),
|
|
id: z.string().nullable(),
|
|
is_bound: z.boolean(),
|
|
link: z.string(),
|
|
provider: z.string(),
|
|
source_info: zDataSourceIntegrateWorkspaceResponse.nullable(),
|
|
})
|
|
|
|
/**
|
|
* DataSourceIntegrateListResponse
|
|
*/
|
|
export const zDataSourceIntegrateListResponse = z.object({
|
|
data: z.array(zDataSourceIntegrateResponse),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetDataSourceIntegratesResponse = zDataSourceIntegrateListResponse
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPatchDataSourceIntegratesResponse = zSimpleResultResponse
|
|
|
|
export const zGetDataSourceIntegratesByBindingIdByActionPath = z.object({
|
|
action: z.string(),
|
|
binding_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetDataSourceIntegratesByBindingIdByActionResponse = zDataSourceIntegrateListResponse
|
|
|
|
export const zPatchDataSourceIntegratesByBindingIdByActionPath = z.object({
|
|
action: z.string(),
|
|
binding_id: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPatchDataSourceIntegratesByBindingIdByActionResponse = zSimpleResultResponse
|