Files
stack/apps/gateway/src/admin/bootstrap.dto.ts
jason.woltje 39ccba95d0
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline failed
feat: mosaic gateway CLI daemon management + admin token auth (#369)
2026-04-04 18:03:12 +00:00

32 lines
480 B
TypeScript

import { IsString, IsEmail, MinLength } from 'class-validator';
export class BootstrapSetupDto {
@IsString()
name!: string;
@IsEmail()
email!: string;
@IsString()
@MinLength(8)
password!: string;
}
export interface BootstrapStatusDto {
needsSetup: boolean;
}
export interface BootstrapResultDto {
user: {
id: string;
name: string;
email: string;
role: string;
};
token: {
id: string;
plaintext: string;
label: string;
};
}