diff --git a/src/model/Role.ts b/src/model/Role.ts index 2f379c666..270fb5d85 100644 --- a/src/model/Role.ts +++ b/src/model/Role.ts @@ -2,14 +2,23 @@ import BaseEntity, { BaseEntityArgs } from './BaseEntity'; export interface ProviderRoleDetails {} +export interface KeycloakRoleComposites { + realm?: string[]; + client?: { + [key: string]: string[]; + }; + application?: { + [key: string]: string[]; + }; +} + export interface KeycloakRoleRepresentation extends ProviderRoleDetails { id?: string; name?: string; description?: string; scopeParamRequired?: boolean; composite?: boolean; - // TODO Recheck this type - composites?: string; + composites?: KeycloakRoleComposites; clientRole?: boolean; containerId?: string; attributes?: {