mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
/**
|
|
* Generated by Orval
|
|
* Do not edit manually.
|
|
* See `gen:api` script in package.json
|
|
*/
|
|
import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchemaRootRole';
|
|
|
|
/**
|
|
* An Unleash user after creation
|
|
*/
|
|
export interface CreateUserResponseSchema {
|
|
/** The user id */
|
|
id: number;
|
|
/**
|
|
* (Deprecated): Used internally to know which operations the user should be allowed to perform
|
|
* @deprecated
|
|
*/
|
|
isAPI?: boolean;
|
|
/** Name of the user */
|
|
name?: string | null;
|
|
/** Email of the user */
|
|
email?: string;
|
|
/** A unique username for the user */
|
|
username?: string;
|
|
/** URL used for the userprofile image */
|
|
imageUrl?: string;
|
|
/** If the user is actively inviting other users, this is the link that can be shared with other users */
|
|
inviteLink?: string;
|
|
/** How many unsuccessful attempts at logging in has the user made */
|
|
loginAttempts?: number;
|
|
/** Is the welcome email sent to the user or not */
|
|
emailSent?: boolean;
|
|
/** Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned. Usually a numeric role ID, but can be a string when returning newly created user with an explicit string role. */
|
|
rootRole?: CreateUserResponseSchemaRootRole;
|
|
/** The last time this user logged in */
|
|
seenAt?: string | null;
|
|
/** The user was created at this time */
|
|
createdAt?: string;
|
|
/** A user is either an actual User or a Service Account */
|
|
accountType?: string;
|
|
/** Deprecated */
|
|
permissions?: string[];
|
|
}
|