import { z } from "zod"; import { apiResponseBaseSchema, migrationModeSchema, errorContextSchema, resocketConfigSchema, userConfigSchema, } from "./schema"; export type UserConfig = z.infer; export type MigrationtMode = z.infer; export type ResocketConfig = z.infer; type ResocketMigrationStep = | { newRooms: Array } | { deletedRooms: Array } | { renamedRooms: Array<{ from: string; to: string }> }; export type ResocketMigrations = | ResocketMigrationsWithoutSteps | ResocketMigrationsWithSteps; export type ResocketMigrationsWithoutSteps = { id: string; renamedRooms?: Array<{ from: string; to: string }>; deletedRooms?: Array; newRooms?: Array; }; //Todo move this one to advanced use case in docs export type ResocketMigrationsWithSteps = { id: string; steps: Array; }; export type ErrorContext = z.infer; export type ApiResponseBase = z.infer;