feat(rbac): ui components and hooks for rbac

This commit is contained in:
Akhil Mohan
2023-09-08 21:20:29 +05:30
parent 1bf9041ac9
commit 1167b1bc60
15 changed files with 974 additions and 196 deletions
+5 -4
View File
@@ -42,9 +42,10 @@ export type OrgUser = {
};
inviteEmail: string;
organization: string;
role: "owner" | "admin" | "member";
role: "owner" | "admin" | "member" | "custom";
status: "invited" | "accepted" | "verified" | "completed";
deniedPermissions: any[];
customRole: string;
};
export type AddUserToWsDTO = {
@@ -76,7 +77,7 @@ export type AddUserToOrgDTO = {
export type CreateAPIKeyRes = {
apiKey: string;
apiKeyData: APIKeyData;
}
};
export type RenameUserDTO = {
newName: string;
@@ -89,7 +90,7 @@ export type APIKeyData = {
lastUsed: string;
createdAt: string;
expiresAt: string;
}
};
export type TokenVersion = {
_id: string;
@@ -99,4 +100,4 @@ export type TokenVersion = {
lastUsed: string;
createdAt: string;
updatedAt: string;
}
};