idea-toolbox
Version:
IDEA's utility functions
65 lines (64 loc) • 1.37 kB
TypeScript
import { Resource } from './resource.model';
import { ISOString } from './epoch';
/**
* A user stored in a Auth0 User Pool.
*/
export declare class Auth0User extends Resource {
/**
* The ID of the user (sub).
*/
userId: string;
/**
* The email address of the user.
*/
email: string;
/**
* Whether the email address of the user is verified.
*/
emailVerified: boolean;
/**
* The fullname of the user.
*/
name: string;
/**
* The nickname of the user.
*/
nickname: string;
/**
* The URI or URL to the user's picture.
*/
picture: string;
/**
* The timestamp of last update of the user.
*/
updatedAt: ISOString;
/**
* The list of groups the user is part of.
*/
groups: string[];
/**
* The user's custom attributes.
*/
attributes: {
[attribute: string]: any;
};
/**
* The user's custom preferences.
*/
preferences: {
[preference: string]: any;
};
load(x: any): void;
/**
* Check whether the user's attributes are valid.
*/
validate(): string[];
/**
* Whether the user is part of the administrators group.
*/
isAdmin: () => boolean;
/**
* Whether the user is part of the robots group.
*/
isRobot: () => boolean;
}