Skip to main content

@lifeaz/gate-helper

Lifeaz Global Authentication and Trust Endpoint Helper - 1.0.7

Permission​

type Permission = string;

PermissionsBySource​

interface PermissionsBySource {
	direct: Permission[];
	role: Permission[];
}

User​

interface User {
	blocked: boolean;
	id: UUID;
	email: string;
	firstname: string;
	lastname: string;
	gender: Gender;
	role: Role;
	permissions?: PermissionsBySource;
	birthdate: Dayjs | null;
	phone: Phone | null;
	address: Address | null;
	a2f: A2F | null;
}

Gender​

interface Gender {
id: UUID;
name: string;
}

A2F​

interface A2F {
	id: UUID;
	method: A2FMethod;
	secret: string;
}

A2FMethod​

interface A2FMethod {
id: UUID;
name: string;
}

Role​

interface Role {
	id: UUID;
	name: string;
	permissions: Permission[];
}

Phone​

interface Phone {
	id: UUID;
	country: Country;
	number: string;
}

Address​

interface Address {
	id: UUID;
	country: Country;
	state: State | null;
	alias: string | null;
	line: string;
	details: string;
	postcode: string;
	city: string;
}

Country​

interface Country {
	id: UUID;
	geozone: Geozone;
	iso: string;
	phonePrefix: string;
	name: string;
	hasState: boolean;
}

Geozone​

interface Geozone {
id: UUID;
name: string;
}

State​

interface State {
	id: UUID;
	country?: Country | null;
	name: string;
	iso: string;
}