Skip to content
Sarj Workspace Sync

identity-provisioning/employee-entitlement-policy

@sarj-ai/workspace-sync/identity-provisioning/employee-entitlement-policy ยท Source

export interface EmployeeEntitlementAuthority {
readonly complete: boolean;
readonly excludedEmails: readonly string[];
readonly excludedGoogleUserIds: readonly string[];
readonly fingerprint: string;
readonly groupEmail: string;
readonly groupId: string;
}
interface ContractorGroupAuthorityInput {
readonly email: string;
readonly id: string;
readonly members: readonly {
readonly email?: string;
readonly id: string;
readonly role?: "MANAGER" | "MEMBER" | "OWNER";
readonly status?: "ACTIVE" | "ARCHIVED" | "SUSPENDED" | "UNKNOWN";
readonly type: "CUSTOMER" | "GROUP" | "USER";
}[];
}
export declare function buildEmployeeEntitlementAuthority(group: ContractorGroupAuthorityInput): Promise<EmployeeEntitlementAuthority>;
export declare function bootstrapEmployeeEntitlementAuthority(): EmployeeEntitlementAuthority;
export declare function hasCompleteEmployeeEntitlementAuthority(authority: EmployeeEntitlementAuthority | undefined): boolean;
export declare function isEmployeeEntitlementExcluded(primaryEmail: string, googleUserId?: string, authority?: EmployeeEntitlementAuthority, aliases?: readonly string[]): boolean;
export declare function contractorAuthorityGroup(): {
acceptedEmails: string[];
email: string;
id: string;
};
export declare function employeeEntitlementExcludedEmails(): string[];
export {};