Skip to content
Sarj Workspace Sync

identity-sync/google-identity-parent-boundary-schema

@sarj-ai/workspace-sync/identity-sync/google-identity-parent-contracts ยท Source

import { z } from "zod";
import type { IdentityWriteBudget } from "../identity-provisioning/identity-budget-contracts.ts";
import type { GoogleDirectoryUser } from "../org-sync/model.ts";
export declare const GoogleIdentityParentBoundarySchema: z.ZodObject<{
mode: z.ZodLiteral<"parent">;
identityBudget: z.ZodObject<{
required: z.ZodLiteral<true>;
reserve: z.ZodCustom<unknown, unknown>;
}, z.core.$strip>;
}, z.core.$strip>;
/** Trusted parent adapter callbacks; not a caller-supplied authorization document. */
export interface GoogleIdentityParentContext<Reviewed> {
assertFreshPlan(): void;
assertWriteAuthority(reviewed: Reviewed): Promise<void>;
captureGoogleAuthority: () => Promise<readonly GoogleDirectoryUser[]>;
readonly expectedBeforeFingerprint: string;
readonly identityBudget: Extract<IdentityWriteBudget, {
required: true;
}>;
readonly mode: "parent";
verifyPreannouncement: (reviewed: Reviewed) => Promise<void>;
}
export interface GoogleIdentityParentDispatch {
assertFreshPlan(): void;
assertWriteAuthority(): Promise<void>;
}