Add catch-all email group and platform filtering (#3)
- Add catch-all email group with admin-adam@modelcontextprotocol.io - Add onlyOnPlatforms configuration to restrict groups to specific platforms - Set antitrust and catch-all groups to Google only - Groups default to all platforms when onlyOnPlatforms is not specified
This commit is contained in:
parent
83c4314971
commit
0289b61df4
1 changed files with 24 additions and 0 deletions
|
|
@ -4,12 +4,15 @@ function isValidGroupName(name: string): boolean {
|
|||
return /^[a-z][a-z0-9-]*[a-z]$/.test(name);
|
||||
}
|
||||
|
||||
export type Platform = 'github' | 'google';
|
||||
|
||||
export function defineGroups<
|
||||
const T extends readonly {
|
||||
name: Lowercase<string>;
|
||||
description: string;
|
||||
memberOf?: readonly (T[number]['name'])[];
|
||||
isEmailGroup?: boolean;
|
||||
onlyOnPlatforms?: readonly Platform[];
|
||||
}[]
|
||||
>(groups: T) {
|
||||
for (const group of groups) {
|
||||
|
|
@ -30,6 +33,7 @@ export interface Group {
|
|||
description: string;
|
||||
memberOf?: readonly GroupKey[];
|
||||
isEmailGroup?: boolean;
|
||||
onlyOnPlatforms?: readonly Platform[];
|
||||
}
|
||||
|
||||
export interface Member {
|
||||
|
|
|
|||
Loading…
Reference in a new issue