Skip to content
Sarj Workspace Sync

execution/github-deprovision-operation

@sarj-ai/workspace-sync/execution/github-deprovision-operation ยท Source

import { z } from "zod";
import type { GitHubDeprovisionAuthority } from "../github-access-audit/github-deprovision-authority-contract.ts";
import { type GitHubDeprovisionGoogleAuthoritySnapshotInput } from "../identity-provisioning/github-deprovision-google-authority-contract.ts";
import { type RegisteredOperation } from "../operations/registry.ts";
export declare const GITHUB_DEPROVISION_OPERATION_ID = "workspace-directory.github-deprovision";
export declare const GitHubDeprovisionInputSchema: z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
schemaVersion: z.ZodLiteral<"github-deprovision-plan/v1">;
}, z.core.$strict>;
export type GitHubDeprovisionGoogleAuthoritySnapshot = GitHubDeprovisionGoogleAuthoritySnapshotInput;
export interface GitHubDeprovisionOperationPorts {
captureGitHubOrganization(): Promise<GitHubDeprovisionAuthority>;
/** Must return complete live and deleted-user inventories from one bounded authority capture. */
captureGoogleAuthority(): Promise<GitHubDeprovisionGoogleAuthoritySnapshot>;
organizationId: string;
organizationLogin: string;
}
export declare function createGitHubDeprovisionOperation(ports: GitHubDeprovisionOperationPorts): RegisteredOperation;