trycomp/model
@sarj-ai/workspace-sync/trycomp/model ยท Source
import { z } from "zod";export declare const TrycompMemberSchema: z.ZodObject<{ deactivated: z.ZodBoolean; fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; id: z.ZodString; isActive: z.ZodBoolean; role: z.ZodString; user: z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; name: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.core.$strip>;}, z.core.$strip>;export type TrycompMember = z.output<typeof TrycompMemberSchema>;export declare const TrycompDeactivationResponseSchema: z.ZodObject<{ success: z.ZodLiteral<true>; deletedMember: z.ZodObject<{ id: z.ZodString; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strip>;}, z.core.$strip>;export declare const TrycompPeopleResponseSchema: z.ZodObject<{ count: z.ZodNumber; data: z.ZodArray<z.ZodObject<{ deactivated: z.ZodBoolean; fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; id: z.ZodString; isActive: z.ZodBoolean; role: z.ZodString; user: z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; name: z.ZodOptional<z.ZodString>; role: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.core.$strip>; }, z.core.$strip>>;}, z.core.$strip>;export declare const TrycompActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ deactivationAuthority: z.ZodOptional<z.ZodEnum<{ contractor_group: "contractor_group"; inactive_google: "inactive_google"; }>>; email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"deactivate">;}, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"reactivate">;}, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; type: z.ZodLiteral<"invite">;}, z.core.$strip>], "type">;export type TrycompAction = z.output<typeof TrycompActionSchema>;export declare const TrycompPlanSchema: z.ZodObject<{ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{ deactivationAuthority: z.ZodOptional<z.ZodEnum<{ contractor_group: "contractor_group"; inactive_google: "inactive_google"; }>>; email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"deactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"reactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; type: z.ZodLiteral<"invite">; }, z.core.$strip>], "type">>; errors: z.ZodArray<z.ZodString>; planHash: z.ZodString; stats: z.ZodObject<{ activeGoogleEmployees: z.ZodNumber; contractorGoogleUsers: z.ZodNumber; trycompMembers: z.ZodNumber; }, z.core.$strip>; warnings: z.ZodArray<z.ZodString>;}, z.core.$strip>;export type TrycompPlan = z.output<typeof TrycompPlanSchema>;export declare const TrycompReviewedMemberSchema: z.ZodObject<{ fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>; deactivated: z.ZodBoolean; email: z.ZodPipe<z.ZodString, z.ZodEmail>; id: z.ZodString; isActive: z.ZodBoolean; role: z.ZodString;}, z.core.$strict>;export type TrycompReviewedMember = z.output<typeof TrycompReviewedMemberSchema>;export declare const TrycompSelectedIdentitySchema: z.ZodObject<{ googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">; provider: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"member">; memberId: z.ZodString; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"pending-invitation">; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>], "kind">;}, z.core.$strict>;export type TrycompSelectedIdentity = z.output<typeof TrycompSelectedIdentitySchema>;export declare const TrycompReviewedPlanSchema: z.ZodObject<{ plan: z.ZodObject<{ errors: z.ZodArray<z.ZodString>; planHash: z.ZodString; stats: z.ZodObject<{ activeGoogleEmployees: z.ZodNumber; contractorGoogleUsers: z.ZodNumber; trycompMembers: z.ZodNumber; }, z.core.$strip>; warnings: z.ZodArray<z.ZodString>; actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{ deactivationAuthority: z.ZodOptional<z.ZodEnum<{ contractor_group: "contractor_group"; inactive_google: "inactive_google"; }>>; email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"deactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"reactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; type: z.ZodLiteral<"invite">; }, z.core.$strip>], "type">>; }, z.core.$strip>; schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">; deactivationMode: z.ZodOptional<z.ZodEnum<{ "device-free-membership-revocation": "device-free-membership-revocation"; "membership-revocation": "membership-revocation"; }>>; sourceFingerprint: z.ZodString; targetBefore: z.ZodArray<z.ZodObject<{ fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>; platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>; deactivated: z.ZodBoolean; email: z.ZodPipe<z.ZodString, z.ZodEmail>; id: z.ZodString; isActive: z.ZodBoolean; role: z.ZodString; }, z.core.$strict>>; selectedIdentity: z.ZodOptional<z.ZodObject<{ googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">; provider: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"member">; memberId: z.ZodString; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"pending-invitation">; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>], "kind">; }, z.core.$strict>>;}, z.core.$strict>;export type TrycompReviewedPlan = z.output<typeof TrycompReviewedPlanSchema>;export declare const TrycompReviewedSliceSchema: z.ZodObject<{ state: z.ZodEnum<{ converged: "converged"; drifted: "drifted"; pending: "pending"; }>; selectedIdentity: z.ZodOptional<z.ZodObject<{ googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">; provider: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"member">; memberId: z.ZodString; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"pending-invitation">; email: z.ZodPipe<z.ZodString, z.ZodEmail>; }, z.core.$strict>], "kind">; }, z.core.$strict>>;}, z.core.$strict>;export type TrycompReviewedSlice = z.output<typeof TrycompReviewedSliceSchema>;export declare const TrycompRunReportSchema: z.ZodObject<{ applied: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{ deactivationAuthority: z.ZodOptional<z.ZodEnum<{ contractor_group: "contractor_group"; inactive_google: "inactive_google"; }>>; email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"deactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"reactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; type: z.ZodLiteral<"invite">; }, z.core.$strip>], "type">>; errors: z.ZodArray<z.ZodString>; mode: z.ZodEnum<{ audit: "audit"; live: "live"; }>; planHash: z.ZodString; planned: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{ deactivationAuthority: z.ZodOptional<z.ZodEnum<{ contractor_group: "contractor_group"; inactive_google: "inactive_google"; }>>; email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"deactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; memberId: z.ZodString; providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>; type: z.ZodLiteral<"reactivate">; }, z.core.$strip>, z.ZodObject<{ email: z.ZodPipe<z.ZodString, z.ZodEmail>; type: z.ZodLiteral<"invite">; }, z.core.$strip>], "type">>; runId: z.ZodUUID; status: z.ZodEnum<{ audit: "audit"; blocked: "blocked"; converged: "converged"; failed: "failed"; }>; warnings: z.ZodArray<z.ZodString>;}, z.core.$strict>;export type TrycompRunReport = z.output<typeof TrycompRunReportSchema>;