dify/packages/contracts/generated/api/console/onboarding/zod.gen.ts
Jingyi cb64446fa3
feat(web): add step-by-step tour shell (#38785)
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
2026-07-20 09:23:25 +00:00

42 lines
1.1 KiB
TypeScript

// 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(),
})
/**
* 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