2023-02-03 10:45:11 +00:00
|
|
|
import type UserConsentRepresentation from "./userConsentRepresentation.js";
|
|
|
|
import type CredentialRepresentation from "./credentialRepresentation.js";
|
|
|
|
import type FederatedIdentityRepresentation from "./federatedIdentityRepresentation.js";
|
|
|
|
import type { RequiredActionAlias } from "./requiredActionProviderRepresentation.js";
|
2023-08-17 19:26:52 +00:00
|
|
|
import type UserProfileConfig from "./userProfileConfig.js";
|
2023-02-03 10:45:11 +00:00
|
|
|
|
|
|
|
export default interface UserRepresentation {
|
|
|
|
id?: string;
|
|
|
|
createdTimestamp?: number;
|
|
|
|
username?: string;
|
|
|
|
enabled?: boolean;
|
|
|
|
totp?: boolean;
|
|
|
|
emailVerified?: boolean;
|
|
|
|
disableableCredentialTypes?: string[];
|
|
|
|
requiredActions?: (RequiredActionAlias | string)[];
|
|
|
|
notBefore?: number;
|
|
|
|
access?: Record<string, boolean>;
|
|
|
|
|
|
|
|
// optional from response
|
|
|
|
attributes?: Record<string, any>;
|
|
|
|
clientConsents?: UserConsentRepresentation[];
|
|
|
|
clientRoles?: Record<string, any>;
|
|
|
|
credentials?: CredentialRepresentation[];
|
|
|
|
email?: string;
|
|
|
|
federatedIdentities?: FederatedIdentityRepresentation[];
|
|
|
|
federationLink?: string;
|
|
|
|
firstName?: string;
|
|
|
|
groups?: string[];
|
|
|
|
lastName?: string;
|
|
|
|
origin?: string;
|
|
|
|
realmRoles?: string[];
|
|
|
|
self?: string;
|
|
|
|
serviceAccountClientId?: string;
|
2023-08-17 19:26:52 +00:00
|
|
|
userProfileMetadata?: UserProfileConfig;
|
2023-02-03 10:45:11 +00:00
|
|
|
}
|