// 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
