Implemented rbac

This commit is contained in:
2026-10-11 11:16:08 +02:00
parent 45a6c0aca0
commit 1142cfd94e
24 changed files with 3033 additions and 432 deletions
+58 -1
View File
@@ -256,6 +256,57 @@ export enum UserRole {
RecipientViewer = 5,
}
export interface Role {
id: string;
name: string;
}
export interface Claim {
id?: string | number | null;
claimId?: number | string | null;
claimType?: string | null;
claimValue?: string | null;
issuer?: string | null;
originalIssuer?: string | null;
properties?: Record<string, string> | null;
subject?: ClaimsIdentity | null;
type?: string | null;
value?: string | null;
valueType?: string | null;
}
export interface ClaimsIdentity {
authenticationType?: string | null;
isAuthenticated: boolean;
actor?: ClaimsIdentity | null;
bootstrapContext?: any;
claims?: Claim[] | null;
label?: string | null;
name?: string | null;
nameClaimType?: string | null;
roleClaimType?: string | null;
}
export interface CreateUserRequest {
id?: string | null;
userName?: string | null;
email?: string | null;
emailConfirmed?: boolean;
phoneNumber?: string | null;
phoneNumberConfirmed?: boolean;
LockoutEnabled?: boolean;
twoFactorEnabled?: boolean;
accessFailedCount?: number | string;
lockoutEnd?: string | null;
}
export interface AddUserClaimRequest {
userId: string;
claimId: number | string;
claimType: string;
claimValue: string;
}
export interface User {
id: string;
email: string | null;
@@ -264,10 +315,16 @@ export interface User {
role?: string | UserRole | null;
idNumber?: string | null;
name?: string;
userName?: string | null;
phoneNumber?: string | null;
lockoutEnabled?: boolean;
lockoutEnd?: string | null;
twoFactorEnabled?: boolean;
accessFailedCount?: number | string;
organisationId?: number | string;
organisationName?: string;
tenant?: string;
tenant_id?: number;
tenant_id?: number | string;
}
export type SystemUser = User;