18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import { z } from "zod";
|
|
|
|
export const MODULE_LIFECYCLE_STAGES = [
|
|
"discovered",
|
|
"validated",
|
|
"configured",
|
|
"registered",
|
|
"migrated",
|
|
"initialized",
|
|
"started",
|
|
"stopped",
|
|
"failed",
|
|
] as const;
|
|
|
|
export const moduleLifecycleStageSchema = z.enum(MODULE_LIFECYCLE_STAGES);
|
|
|
|
export type ModuleLifecycleStage = z.infer<typeof moduleLifecycleStageSchema>;
|