Files
gsfdc/demo-dify/dify/packages/contracts/generated/api/console/onboarding/zod.gen.ts
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

58 lines
1.6 KiB
TypeScript
Generated

// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* StepByStepTourStateResponse
*/
export const zStepByStepTourStateResponse = z.object({
completed_task_ids: z.array(z.enum(['home', 'integration', 'knowledge', 'studio'])).optional(),
first_workspace_id: z.string().nullish(),
manually_disabled_workspace_ids: z.array(z.string()).optional(),
manually_enabled_workspace_ids: z.array(z.string()).optional(),
skipped: z.boolean().optional().default(false),
updated_at: z.iso.datetime().nullish(),
})
/**
* ErrorResponse
*
* Documented non-2xx body emitted by ``register_external_error_handlers``.
*
* ``params`` and ``details`` appear only on the errors that set them. The schema
* stays open because ``HTTPException.data`` may carry extra keys.
*/
export const zErrorResponse = z.object({
code: z.string(),
details: z.record(z.string(), z.unknown()).optional(),
message: z.string(),
params: z.string().optional(),
status: z.int(),
})
/**
* StepByStepTourStatePatchPayload
*/
export const zStepByStepTourStatePatchPayload = z.object({
action: z.enum([
'complete_task',
'disable_current_workspace',
'enable_current_workspace',
'skip',
'uncomplete_task',
]),
task_id: z.enum(['home', 'integration', 'knowledge', 'studio']).nullish(),
})
/**
* Success
*/
export const zGetOnboardingStepByStepTourStateResponse = zStepByStepTourStateResponse
export const zPatchOnboardingStepByStepTourStateBody = zStepByStepTourStatePatchPayload
/**
* Success
*/
export const zPatchOnboardingStepByStepTourStateResponse = zStepByStepTourStateResponse