mirror of
https://github.com/langgenius/dify.git
synced 2026-06-16 05:51:07 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
48 lines
1.1 KiB
TypeScript
48 lines
1.1 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(),
|
|
})
|
|
|
|
/**
|
|
* NotionEstimatePayload
|
|
*/
|
|
export const zNotionEstimatePayload = z.object({
|
|
doc_form: z.string().optional().default('text_model'),
|
|
doc_language: z.string().optional().default('English'),
|
|
notion_info_list: z.array(z.record(z.string(), z.unknown())),
|
|
process_rule: z.record(z.string(), z.unknown()),
|
|
})
|
|
|
|
export const zGetNotionPagesByPageIdByPageTypePreviewPath = z.object({
|
|
page_id: z.string(),
|
|
page_type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetNotionPagesByPageIdByPageTypePreviewResponse = zTextContentResponse
|
|
|
|
export const zPostNotionPagesByPageIdByPageTypePreviewBody = zNotionEstimatePayload
|
|
|
|
export const zPostNotionPagesByPageIdByPageTypePreviewPath = z.object({
|
|
page_id: z.string(),
|
|
page_type: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zPostNotionPagesByPageIdByPageTypePreviewResponse = z.record(z.string(), z.unknown())
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetNotionPreImportPagesResponse = z.record(z.string(), z.unknown())
|