Begin service account middleware

This commit is contained in:
Tuan Dang
2023-03-30 23:55:24 +07:00
parent 54e099f8a8
commit 9c18adf35f
31 changed files with 279 additions and 146 deletions
@@ -1,3 +1,5 @@
import { Workspace } from '../workspace/types';
export type ServiceAccount = {
_id: string;
name: string;
@@ -27,7 +29,7 @@ export type RenameServiceAccountDTO = {
export type ServiceAccountWorkspacePermission = {
_id: string;
serviceAccount: string;
workspace: string;
workspace: Workspace;
environment: string;
canRead: boolean;
canWrite: boolean;