1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-13 11:17:26 +02:00
unleash.unleash/frontend/src/openapi/models/createUserResponseSchema.ts
Tymoteusz Czech 553ffc62b7
fix: orval for ESM (#10086)
updated Orval and configured it to be compatible with v7.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2025-06-05 10:40:58 +00:00

64 lines
2.0 KiB
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { CreateUserResponseSchemaAccountType } from './createUserResponseSchemaAccountType.js';
import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchemaRootRole.js';
/**
* An Unleash user after creation
*/
export interface CreateUserResponseSchema {
/** A user is either an actual User or a Service Account */
accountType?: CreateUserResponseSchemaAccountType;
/**
* Count of active browser sessions for this user
* @nullable
*/
activeSessions?: number | null;
/** The user was created at this time */
createdAt?: string;
/** Experimental. The number of deleted browser sessions after last login */
deletedSessions?: number;
/** Email of the user */
email?: string;
/** Is the welcome email sent to the user or not */
emailSent?: boolean;
/** The user id */
id: number;
/** URL used for the user profile 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
* @minimum 0
*/
loginAttempts?: number;
/**
* Name of the user
* @nullable
*/
name?: string | null;
/** Deprecated */
permissions?: string[];
/** 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 SCIM ID of the user, only present if managed by SCIM
* @nullable
*/
scimId?: string | null;
/**
* The last time this user logged in
* @nullable
*/
seenAt?: string | null;
/**
* A unique username for the user
* @nullable
*/
username?: string | null;
}