Skip to content
Sarj Workspace Sync

github-access-audit/reviewed-direct-grants

@sarj-ai/workspace-sync/github-access-audit/reviewed-direct-grants ยท Source

export interface ReviewedGitHubDirectGrantRetention {
readonly allowedTeamSlugs: readonly string[];
readonly githubLogin: string;
readonly githubUserId: string;
readonly googleUserId: string;
readonly grants: readonly {
readonly customRoleName?: string | undefined;
readonly permission: "admin" | "maintain" | "pull" | "push" | "triage";
readonly repositoryId: number;
readonly repositoryName: string;
}[];
readonly primaryEmail: string;
readonly reviewedAt: string;
}
export declare function matchesReviewedGitHubDirectGrants(reviewed: ReviewedGitHubDirectGrantRetention, subject: {
readonly githubLogin: string;
readonly githubUserId: string;
readonly googleUserId: string;
readonly primaryEmail: string;
}, grants: readonly {
readonly customRoleName?: string | undefined;
readonly unresolvedDirectRole?: true | undefined;
readonly permission: string;
readonly repositoryId: number;
readonly repositoryName: string;
}[]): boolean;
export declare function reviewedGitHubDirectGrantRetentions(): {
allowedTeamSlugs: string[];
githubLogin: string;
githubUserId: string;
googleUserId: string;
grants: {
customRoleName?: string | undefined;
permission: "admin" | "maintain" | "pull" | "push" | "triage";
repositoryId: number;
repositoryName: string;
}[];
primaryEmail: string;
reviewedAt: string;
}[];