execution/reviewed-provider-admission
@sarj-ai/workspace-sync/execution/reviewed-provider-admission ยท Source
import type { PreparedOperationApply } from "../operations/kernel.ts";import { type ManagedChange, type OperationPlanEnvelope } from "../operations/schemas.ts";import { type WorkspaceDirectoryPlan } from "./contracts.ts";import { type ReviewedProviderIntentProof } from "./reviewed-slack-lifecycle-intent.ts";type ReviewedProviderAdmissionInput = Pick<Extract<PreparedOperationApply, { ok: true;}>, "pending" | "plan">;export declare function usesReviewedProviderAdmission(rawInput: unknown, pending: readonly ManagedChange[]): boolean;export declare function reviewedProviderAdmissionProof(prepared: ReviewedProviderAdmissionInput): Promise<ReviewedProviderIntentProof>;export declare function assertReviewedProviderPlanMatches(proof: ReviewedProviderIntentProof, plan: OperationPlanEnvelope): Promise<void>;export declare function assertReviewedLinearIntentPlan(proof: ReviewedProviderIntentProof, plan: WorkspaceDirectoryPlan): Promise<void>;export declare function scheduledGoogleCleanupMatchesReviewedIntent(proof: ReviewedProviderIntentProof, plan: WorkspaceDirectoryPlan): Promise<boolean>;export declare function reviewedProviderSelection(proof: ReviewedProviderIntentProof): { actionId: "workspace-directory.slack-groups-channels"; confirmations: { linearSuspensions?: never; }; input: { includedActionIds: "workspace-directory.slack-groups-channels"[]; reviewedSlackLifecycleRemoval: { googleUserId: string & import("zod").$brand<"GoogleUserId">; slackUserGroupId: string; slackUserId: string; }; reviewedGoogleGroupCleanup?: never; reviewedLinearSuspension?: never; };} | { actionId: "workspace-directory.google-group-cleanup"; confirmations: { linearSuspensions?: never; }; input: { reviewedSlackLifecycleRemoval?: never; includedActionIds: "workspace-directory.google-group-cleanup"[]; reviewedGoogleGroupCleanup: { expectedPlanHash: string; action: { googleGroupEmail: string; googleGroupId: string; googleUserId: string & import("zod").$brand<"GoogleDirectoryUserId">; lifecycle: "archived" | "deleted" | "suspended"; memberEmail: string; memberId: string & import("zod").$brand<"GoogleDirectoryUserId">; type: "remove-inactive-google-group-member"; authorityEmail: string; } | { googleGroupEmail: string; googleGroupId: string; googleUserId: string & import("zod").$brand<"GoogleDirectoryUserId">; lifecycle: "archived" | "deleted" | "suspended"; memberEmail: string; memberId: string & import("zod").$brand<"GoogleDirectoryUserId">; type: "remove-inactive-google-group-member"; authorityEmail: string; role: "MANAGER" | "OWNER"; }; }; reviewedLinearSuspension?: never; };} | { actionId: "workspace-directory.linear-suspensions"; confirmations: { linearSuspensions: { allowed: boolean; expectedCount: number; }; }; input: { reviewedSlackLifecycleRemoval?: never; reviewedGoogleGroupCleanup?: never; includedActionIds: "workspace-directory.linear-suspensions"[]; reviewedLinearSuspension: { accountId: string; email: string; googleUserId: string & import("zod").$brand<"GoogleUserId">; organizationId: string; organizationUrlKey: string; }; };};export {};