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

62 lines
1.7 KiB
TypeScript

export interface UserProfileConfig {
attributes?: UserProfileAttribute[];
groups?: UserProfileGroup[];
unmanagedAttributePolicy?: UnmanagedAttributePolicy;
}
export interface UserProfileAttribute {
name?: string;
validations?: Record<string, unknown>;
validators?: Record<string, unknown>;
annotations?: Record<string, unknown>;
required?: UserProfileAttributeRequired;
readOnly?: boolean;
permissions?: UserProfileAttributePermissions;
selector?: UserProfileAttributeSelector;
displayName?: string;
group?: string;
multivalued?: boolean;
}
export interface UserProfileAttributeRequired {
roles?: string[];
scopes?: string[];
}
export interface UserProfileAttributePermissions {
view?: string[];
edit?: string[];
}
export interface UserProfileAttributeSelector {
scopes?: string[];
}
export interface UserProfileGroup {
name?: string;
displayHeader?: string;
displayDescription?: string;
annotations?: Record<string, unknown>;
}
export interface UserProfileAttributeMetadata {
name?: string;
displayName?: string;
required?: boolean;
readOnly?: boolean;
group?: string;
annotations?: Record<string, unknown>;
validators?: Record<string, Record<string, unknown>>;
multivalued?: boolean;
}
export interface UserProfileAttributeGroupMetadata {
name?: string;
displayHeader?: string;
displayDescription?: string;
annotations?: Record<string, unknown>;
}
export interface UserProfileMetadata {
attributes?: UserProfileAttributeMetadata[];
groups?: UserProfileAttributeGroupMetadata[];
}
export declare enum UnmanagedAttributePolicy {
Disabled = "DISABLED",
Enabled = "ENABLED",
AdminView = "ADMIN_VIEW",
AdminEdit = "ADMIN_EDIT"
}