2023-07-20 12:59:55 +02:00
/ * *
* 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 {
2023-12-04 20:49:49 +01:00
/** A user is either an actual User or a Service Account */
accountType? : string ;
2024-11-22 12:19:29 +01:00
/ * *
* Count of active browser sessions for this user
* @nullable
* /
activeSessions? : number | null ;
2023-12-04 20:49:49 +01:00
/** The user was created at this time */
createdAt? : string ;
2024-11-22 12:19:29 +01:00
/** Experimental. The number of deleted browser sessions after last login */
deletedSessions? : number ;
2023-12-04 20:49:49 +01:00
/** Email of the user */
email? : string ;
/** Is the welcome email sent to the user or not */
emailSent? : boolean ;
2023-07-20 12:59:55 +02:00
/** The user id */
id : number ;
2024-06-05 14:40:13 +02:00
/** URL used for the user profile image */
2023-12-04 20:49:49 +01:00
imageUrl? : string ;
/** If the user is actively inviting other users, this is the link that can be shared with other users */
inviteLink? : string ;
2023-07-20 12:59:55 +02:00
/ * *
2024-06-05 09:14:50 +02:00
* Deprecated in v5 . Used internally to know which operations the user should be allowed to perform
2023-07-20 12:59:55 +02:00
* @deprecated
* /
isAPI? : boolean ;
2024-04-26 13:31:15 +02:00
/ * *
* How many unsuccessful attempts at logging in has the user made
* @minimum 0
* /
2023-07-20 12:59:55 +02:00
loginAttempts? : number ;
2024-04-26 13:31:15 +02:00
/ * *
* Name of the user
* @nullable
* /
2023-12-04 20:49:49 +01:00
name? : string | null ;
/** Deprecated */
permissions? : string [ ] ;
2023-08-24 12:13:02 +02:00
/** 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. */
2023-07-20 12:59:55 +02:00
rootRole? : CreateUserResponseSchemaRootRole ;
2024-04-26 13:31:15 +02:00
/ * *
* The SCIM ID of the user , only present if managed by SCIM
* @nullable
* /
2024-04-16 20:07:37 +02:00
scimId? : string | null ;
2024-04-26 13:31:15 +02:00
/ * *
* The last time this user logged in
* @nullable
* /
2023-07-20 12:59:55 +02:00
seenAt? : string | null ;
2024-04-26 13:31:15 +02:00
/ * *
* A unique username for the user
* @nullable
* /
2023-12-22 11:10:50 +01:00
username? : string | null ;
2023-07-20 12:59:55 +02:00
}