execution/execute-scheduled-workspace-branch
@sarj-ai/workspace-sync/execution/execute-scheduled-workspace-branch ยท Source
import type { GithubDispatchClaim } from "../identity-provisioning/github-zero-dispatch.ts";import type { IWorkspaceDirectoryChangeLedger } from "./change-ledger.ts";import { type WorkspaceDirectoryBranchId, type WorkspaceDirectoryWorkflowParams, type WorkspaceDirectoryWorkflowResult } from "./contracts.ts";import type { WorkspaceDirectoryRuntime } from "./runtime-contract.ts";import type { IWorkspaceScheduleHealthRepository } from "./workspace-schedule-health-repository.ts";type BranchResult = WorkspaceDirectoryWorkflowResult["branches"][number];interface Input { branchId: WorkspaceDirectoryBranchId; enabled: boolean; execute(claim?: GithubDispatchClaim): Promise<BranchResult>; ledger: IWorkspaceDirectoryChangeLedger; now?: () => number; params: WorkspaceDirectoryWorkflowParams; repository: Pick<IWorkspaceScheduleHealthRepository, "claimBranchAttempt" | "read" | "verifyBranchAttempt"> & Partial<Pick<IWorkspaceScheduleHealthRepository, "recordGithubNoDispatch">>; runtime: WorkspaceDirectoryRuntime;}export declare function executeScheduledWorkspaceBranch(input: Input): Promise<BranchResult>;export declare function recoverVerifiedScheduledWorkspaceBranch(input: Omit<Input, "execute">): Promise<{ detail: string; branchId: "access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people"; execution: "managed"; state: "applied" | "skipped";} | { detail: string; branchId: "access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people"; execution: "audit-only"; state: "audited";} | { detail: string; branchId: "access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people"; execution: "disabled"; state: "disabled";}>;export {};