Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.6 KB
Raw Blame
// 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