NeahNew/node_modules/@keycloak/keycloak-admin-client/lib/defs/whoAmIRepresentation.d.ts
2025-05-03 15:36:20 +02:00

18 lines
847 B
TypeScript

export type AccessChecker = {
hasAll: (...types: AccessType[]) => boolean;
hasAny: (...types: AccessType[]) => boolean;
};
export type AccessTypeFunc = (accessChecker: AccessChecker) => boolean;
export type AccessType = "view-realm" | "view-identity-providers" | "manage-identity-providers" | "impersonation" | "create-client" | "manage-users" | "query-realms" | "view-authorization" | "query-clients" | "query-users" | "manage-events" | "manage-realm" | "view-events" | "view-users" | "view-clients" | "manage-authorization" | "manage-clients" | "query-groups" | "anyone" | AccessTypeFunc;
export default interface WhoAmIRepresentation {
userId: string;
realm: string;
displayName: string;
locale: string;
createRealm: boolean;
realm_access: {
[key: string]: AccessType[];
};
temporary: boolean;
}