execution/workspace-status
@sarj-ai/workspace-sync/execution/workspace-status ยท Source
import { z } from "zod";import type { WorkspaceScheduleHealth } from "./workspace-schedule-health-repository.ts";export declare const WorkspaceSyncStatusResponseSchema: z.ZodObject<{ branches: z.ZodArray<z.ZodObject<{ branchId: z.ZodEnum<{ "access-guard": "access-guard"; "drive-org-chart": "drive-org-chart"; "github-access": "github-access"; "google-group-cleanup": "google-group-cleanup"; "identity-provisioning": "identity-provisioning"; "linear-profiles": "linear-profiles"; "pagerduty-teams": "pagerduty-teams"; "posthog-memberships": "posthog-memberships"; "sentry-memberships": "sentry-memberships"; "slack-groups-channels": "slack-groups-channels"; "slack-names": "slack-names"; "slack-profiles": "slack-profiles"; "trycomp-people": "trycomp-people"; }>; blockerCount: z.ZodNumber; diagnostics: z.ZodArray<z.ZodObject<{ code: z.ZodString; severity: z.ZodEnum<{ blocker: "blocker"; warning: "warning"; }>; }, z.core.$strict>>; diagnosticsTruncated: z.ZodBoolean; displayName: z.ZodString; latestRunMutation: z.ZodEnum<{ attempted: "attempted"; none: "none"; verified: "verified"; }>; rolloutState: z.ZodEnum<{ disabled: "disabled"; enabled: "enabled"; }>; scheduledExecution: z.ZodEnum<{ "audit-only": "audit-only"; automatic: "automatic"; "bounded-automatic": "bounded-automatic"; "manual-review": "manual-review"; "rollout-gated": "rollout-gated"; }>; targetSystemIds: z.ZodArray<z.ZodString>; warningCount: z.ZodNumber; }, z.core.$strict>>; attentionReasons: z.ZodArray<z.ZodEnum<{ "latest-run-blocked": "latest-run-blocked"; "latest-run-failed": "latest-run-failed"; "mutation-safety-unresolved": "mutation-safety-unresolved"; "pending-schedule-ticks": "pending-schedule-ticks"; "schedule-unhealthy": "schedule-unhealthy"; }>>; healthy: z.ZodBoolean; latest: z.ZodNullable<z.ZodObject<{ completedAtMs: z.ZodNullable<z.ZodNumber>; deployment: z.ZodObject<{ id: z.ZodString; revision: z.ZodString; timestamp: z.ZodISODateTime; }, z.core.$strict>; mode: z.ZodNullable<z.ZodEnum<{ audit: "audit"; live: "live"; }>>; notificationRequired: z.ZodBoolean; notificationVerified: z.ZodBoolean; outcome: z.ZodNullable<z.ZodEnum<{ applied: "applied"; "audit-only": "audit-only"; blocked: "blocked"; failed: "failed"; "no-op": "no-op"; }>>; phase: z.ZodEnum<{ launched: "launched"; planned: "planned"; started: "started"; terminal: "terminal"; }>; planHash: z.ZodNullable<z.ZodString>; scheduledAtMs: z.ZodNumber; startedAtMs: z.ZodNumber; tickId: z.ZodString; workflowId: z.ZodNullable<z.ZodString>; }, z.core.$strict>>; mutationSafetyClear: z.ZodBoolean; observedAt: z.ZodISODateTime; pendingTicks: z.ZodNumber; scheduleHealthy: z.ZodBoolean; schemaVersion: z.ZodLiteral<"workspace-sync-status/v1">; unresolvedMutations: z.ZodNumber;}, z.core.$strict>;export declare function workspaceSyncStatus(health: WorkspaceScheduleHealth, observedAtMs: number): z.output<typeof WorkspaceSyncStatusResponseSchema>;