mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
We're migrating to ESM, which will allow us to import the latest versions of our dependencies. Co-Authored-By: Christopher Kolstad <chriswk@getunleash.io>
36 lines
700 B
TypeScript
36 lines
700 B
TypeScript
import type { IRole } from './role.js';
|
|
import type { IUser } from './user.js';
|
|
|
|
export interface ICreateInvitedUser {
|
|
username?: string;
|
|
email: string;
|
|
name: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface IPublicSignupTokens {
|
|
tokens: IPublicSignupToken[];
|
|
}
|
|
|
|
export interface IPublicSignupToken {
|
|
secret: string;
|
|
url: string;
|
|
name: string;
|
|
enabled: boolean;
|
|
expiresAt: string;
|
|
createdAt: string;
|
|
createdBy: string | null;
|
|
users?: IUser[] | null;
|
|
role: IRole;
|
|
}
|
|
|
|
export interface IPublicSignupTokenCreate {
|
|
name: string;
|
|
expiresAt: string;
|
|
}
|
|
|
|
export interface IPublicSignupTokenUpdate {
|
|
expiresAt?: string;
|
|
enabled?: boolean;
|
|
}
|