FEAT: new orchest permissions

This commit is contained in:
Arthur Simas
2022-06-28 18:02:01 -03:00
parent 3ddbfcebeb
commit 9e0a58b4b7
+17 -4
View File
@@ -14,8 +14,11 @@ export interface Permission {
usage: PermissionUsages;
}
// like field numbers in gRPC, avoid to change (or reuse previously used) seqids once its
// deployed to DUC
/*
- like field numbers in gRPC, avoid to change (or reuse previously used) seqids once its deployed to DUC
- it is possible to update claim and usage, not seqid
*/
/*export const Permissions: {
[P in keyof any]: { [Q in keyof any]: Permission };
} = {*/
@@ -201,9 +204,19 @@ export const Permissions = {
},
ORCHEST: {
USE: {
INTELLIGENCE: {
seqid: 31,
claim: 'orchest:use',
claim: 'intelligence:open',
usage: PermissionUsages.PUBLIC,
},
APP_BUILDER: {
seqid: 32,
claim: 'app-builder:open',
usage: PermissionUsages.PUBLIC,
},
MACHINE_LEARNING: {
seqid: 33,
claim: 'machine-learning:open',
usage: PermissionUsages.PUBLIC,
},
},