Skip to content
Sarj Workspace Sync

identity-lifecycle/contracts

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

import { z } from "zod";
export declare const GoogleDirectoryUserIdSchema: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
export declare const GoogleDirectoryLifecycleEventSchema: z.ZodEnum<{
add: "add";
delete: "delete";
makeAdmin: "makeAdmin";
undelete: "undelete";
update: "update";
}>;
export type GoogleDirectoryUserId = z.output<typeof GoogleDirectoryUserIdSchema>;
declare const RefetchedGoogleDirectoryUserSchema: z.ZodObject<{
archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
deletionTime: z.ZodOptional<z.ZodISODateTime>;
id: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
primaryEmail: z.ZodOptional<z.ZodEmail>;
suspended: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, z.core.$strict>;
export declare const AuthoritativeGoogleDirectoryUserStateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
primaryEmail: z.ZodEmail;
state: z.ZodLiteral<"active">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
primaryEmail: z.ZodEmail;
state: z.ZodLiteral<"suspended">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
primaryEmail: z.ZodEmail;
state: z.ZodLiteral<"archived">;
}, z.core.$strict>, z.ZodObject<{
deletedAt: z.ZodISODateTime;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lastKnownPrimaryEmail: z.ZodOptional<z.ZodEmail>;
state: z.ZodLiteral<"deleted">;
}, z.core.$strict>], "state">;
export type AuthoritativeGoogleDirectoryUserState = z.output<typeof AuthoritativeGoogleDirectoryUserStateSchema>;
export declare function authoritativeGoogleDirectoryUserState(input: z.input<typeof RefetchedGoogleDirectoryUserSchema>): AuthoritativeGoogleDirectoryUserState;
export declare const RefreshGoogleDirectoryUserTaskSchema: z.ZodObject<{
event: z.ZodEnum<{
add: "add";
delete: "delete";
makeAdmin: "makeAdmin";
undelete: "undelete";
update: "update";
}>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
notificationId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryNotificationId", "out">;
notificationPrimaryEmail: z.ZodEmail;
observedAt: z.ZodISODateTime;
type: z.ZodLiteral<"identity.refresh-google-directory-user">;
}, z.core.$strict>;
export type RefreshGoogleDirectoryUserTask = z.output<typeof RefreshGoogleDirectoryUserTaskSchema>;
export {};