mirror of
https://github.com/langgenius/dify.git
synced 2026-06-15 21:41:16 +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>
73 lines
1.6 KiB
TypeScript
73 lines
1.6 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* TextContentResponse
|
|
*/
|
|
export const zTextContentResponse = z.object({
|
|
content: z.string(),
|
|
})
|
|
|
|
/**
|
|
* DataSourceIntegrateIconResponse
|
|
*/
|
|
export const zDataSourceIntegrateIconResponse = z.object({
|
|
emoji: z.string().nullish(),
|
|
type: z.string().nullish(),
|
|
url: z.string().nullish(),
|
|
})
|
|
|
|
/**
|
|
* NotionIntegratePageResponse
|
|
*/
|
|
export const zNotionIntegratePageResponse = z.object({
|
|
is_bound: z.boolean(),
|
|
page_icon: zDataSourceIntegrateIconResponse.nullable(),
|
|
page_id: z.string(),
|
|
page_name: z.string(),
|
|
parent_id: z.string().nullable(),
|
|
type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* NotionIntegrateWorkspaceResponse
|
|
*/
|
|
export const zNotionIntegrateWorkspaceResponse = z.object({
|
|
pages: z.array(zNotionIntegratePageResponse),
|
|
workspace_icon: z.string().nullable(),
|
|
workspace_id: z.string().nullable(),
|
|
workspace_name: z.string().nullable(),
|
|
})
|
|
|
|
/**
|
|
* NotionIntegrateInfoListResponse
|
|
*/
|
|
export const zNotionIntegrateInfoListResponse = z.object({
|
|
notion_info: z.array(zNotionIntegrateWorkspaceResponse),
|
|
})
|
|
|
|
export const zGetNotionPagesByPageIdByPageTypePreviewPath = z.object({
|
|
page_id: z.string(),
|
|
page_type: z.string(),
|
|
})
|
|
|
|
export const zGetNotionPagesByPageIdByPageTypePreviewQuery = z.object({
|
|
credential_id: z.string().min(1),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetNotionPagesByPageIdByPageTypePreviewResponse = zTextContentResponse
|
|
|
|
export const zGetNotionPreImportPagesQuery = z.object({
|
|
credential_id: z.string().min(1),
|
|
dataset_id: z.string().optional(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetNotionPreImportPagesResponse = zNotionIntegrateInfoListResponse
|