execution/create-privileged-google-group-cleanup-operation
@sarj-ai/workspace-sync/execution/create-privileged-google-group-cleanup-operation ยท Source
import { z } from "zod";import { type ResourceLeaseRepository } from "../identity-sync/resource-lease.ts";import { type RegisteredOperation } from "../operations/registry.ts";import type { IGoogleDirectoryClient } from "../org-sync/google-directory-client.ts";import type { IGoogleGroupPrivilegedMembershipWriter, IGoogleGroupsClient } from "../org-sync/google-groups-client.ts";export declare const PrivilegedGoogleGroupCleanupInputSchema: z.ZodObject<{ googleGroupEmail: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>; googleGroupId: z.ZodString; googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">; lifecycle: z.ZodEnum<{ archived: "archived"; deleted: "deleted"; suspended: "suspended"; }>; memberEmail: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>; role: z.ZodEnum<{ MANAGER: "MANAGER"; OWNER: "OWNER"; }>;}, z.core.$strict>;export type PrivilegedGoogleGroupCleanupInput = z.output<typeof PrivilegedGoogleGroupCleanupInputSchema>;type Directory = Required<Pick<IGoogleDirectoryClient, "getUserById" | "listDeletedUsers">>;export interface PrivilegedGoogleGroupCleanupDependencies { directory: Directory; groups: Pick<IGoogleGroupsClient, "listGroups">; leaseRepository: ResourceLeaseRepository; protectedGoogleUserIds: readonly string[]; writer: IGoogleGroupPrivilegedMembershipWriter;}export declare function createPrivilegedGoogleGroupCleanupOperation(dependencies: PrivilegedGoogleGroupCleanupDependencies): RegisteredOperation;export {};