keycloak-scim/js/libs/keycloak-admin-client/src/defs/userRepresentation.ts

36 lines
1.2 KiB
TypeScript
Raw Normal View History

import type UserConsentRepresentation from "./userConsentRepresentation.js";
import type CredentialRepresentation from "./credentialRepresentation.js";
import type FederatedIdentityRepresentation from "./federatedIdentityRepresentation.js";
import type { RequiredActionAlias } from "./requiredActionProviderRepresentation.js";
import type UserProfileConfig from "./userProfileConfig.js";
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;
userProfileMetadata?: UserProfileConfig;
}