diff --git a/src/authentication/permissions.enum.ts b/src/authentication/permissions.enum.ts index 5386ac0..2c8a47d 100644 --- a/src/authentication/permissions.enum.ts +++ b/src/authentication/permissions.enum.ts @@ -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, }, },