mirror of
https://github.com/langgenius/dify.git
synced 2026-07-24 21:18:35 +08:00
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>
42 lines
1.1 KiB
TypeScript
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
|