execution/reviewed-google-group-cleanup
@sarj-ai/workspace-sync/execution/reviewed-google-group-cleanup ยท Source
import { z } from "zod";export declare const ReviewedGoogleGroupCleanupSchema: z.ZodObject<{ action: z.ZodObject<{ authorityEmail: z.ZodOptional<z.ZodEmail>; googleGroupEmail: z.ZodEmail; googleGroupId: z.ZodString; googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">; lifecycle: z.ZodEnum<{ archived: "archived"; deleted: "deleted"; suspended: "suspended"; }>; memberEmail: z.ZodEmail; memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">; role: z.ZodOptional<z.ZodEnum<{ MANAGER: "MANAGER"; OWNER: "OWNER"; }>>; type: z.ZodLiteral<"remove-inactive-google-group-member">; }, z.core.$strict>; expectedPlanHash: z.ZodString;}, z.core.$strict>;export type ReviewedGoogleGroupCleanup = z.output<typeof ReviewedGoogleGroupCleanupSchema>;/** Reviewed intents pin an explicit, JSON-safe authority identity. */export declare const ReviewedGoogleGroupCleanupIntentSchema: z.ZodPipe<z.ZodObject<{ action: z.ZodObject<{ authorityEmail: z.ZodOptional<z.ZodEmail>; googleGroupEmail: z.ZodEmail; googleGroupId: z.ZodString; googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">; lifecycle: z.ZodEnum<{ archived: "archived"; deleted: "deleted"; suspended: "suspended"; }>; memberEmail: z.ZodEmail; memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">; role: z.ZodOptional<z.ZodEnum<{ MANAGER: "MANAGER"; OWNER: "OWNER"; }>>; type: z.ZodLiteral<"remove-inactive-google-group-member">; }, z.core.$strict>; expectedPlanHash: z.ZodString;}, z.core.$strict>, z.ZodTransform<{ expectedPlanHash: string; action: { googleGroupEmail: string; googleGroupId: string; googleUserId: string & z.$brand<"GoogleDirectoryUserId">; lifecycle: "archived" | "deleted" | "suspended"; memberEmail: string; memberId: string & z.$brand<"GoogleDirectoryUserId">; type: "remove-inactive-google-group-member"; authorityEmail: string; } | { googleGroupEmail: string; googleGroupId: string; googleUserId: string & z.$brand<"GoogleDirectoryUserId">; lifecycle: "archived" | "deleted" | "suspended"; memberEmail: string; memberId: string & z.$brand<"GoogleDirectoryUserId">; type: "remove-inactive-google-group-member"; authorityEmail: string; role: "MANAGER" | "OWNER"; };}, { action: { authorityEmail?: string | undefined; googleGroupEmail: string; googleGroupId: string; googleUserId: string & z.$brand<"GoogleDirectoryUserId">; lifecycle: "archived" | "deleted" | "suspended"; memberEmail: string; memberId: string & z.$brand<"GoogleDirectoryUserId">; role?: "MANAGER" | "OWNER" | undefined; type: "remove-inactive-google-group-member"; }; expectedPlanHash: string;}>>;export type ReviewedGoogleGroupCleanupIntent = z.output<typeof ReviewedGoogleGroupCleanupIntentSchema>;export declare function googleGroupCleanupManagedSlice(reviewed: ReviewedGoogleGroupCleanup, state: "converged" | "pending"): z.JSONType;export declare function googleGroupCleanupSourceIdentity(reviewed: ReviewedGoogleGroupCleanup): { kind: "identity"; systemId: "google-workspace"; googleUserId: string & z.$brand<"GoogleDirectoryUserId">; providerAccountId: string & z.$brand<"GoogleDirectoryUserId">;};export declare function googleGroupCleanupResourceId(reviewed: ReviewedGoogleGroupCleanup): string;