/** * Typed identifiers for the well-known action slugs. * * Use these as action-map keys (`[Actions.CREATE_SCOPE]: { … }`) instead of * magic strings. Only KNOWN lifecycle + telemetry actions get a constant — * custom/dynamic slugs stay plain strings by design (they're the author's * namespace, not the platform's). */ export const Actions = { CREATE_SCOPE: "create-scope", DELETE_SCOPE: "delete-scope", UPDATE_SCOPE: "update-scope", START_INITIAL: "start-initial", START_BLUE_GREEN: "start-blue-green", SWITCH_TRAFFIC: "switch-traffic", FINALIZE_BLUE_GREEN: "finalize-blue-green", ROLLBACK_DEPLOYMENT: "rollback-deployment", DELETE_DEPLOYMENT: "delete-deployment", DIAGNOSE_SCOPE: "diagnose-scope", DIAGNOSE_DEPLOYMENT: "diagnose-deployment", LOG_READ: "log:read", INSTANCE_DATA: "instance:data", } as const; /** Action slugs for service (dependency) packages with useDefaultActions. */ export const ServiceActions = { CREATE: "create", UPDATE: "update", DELETE: "delete", } as const; export type ActionSlug = (typeof Actions)[keyof typeof Actions]; export type ServiceActionSlug = (typeof ServiceActions)[keyof typeof ServiceActions];