import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger"; import { IsNotEmpty, IsOptional, IsString } from "class-validator"; export class LoginDto { @ApiProperty({ description: "Key identifier — filename (without extension) from the keys/ directory", example: "3273334361", }) @IsString() @IsNotEmpty() key: string; @ApiProperty({ description: "Environment name to resolve login/cabinet URLs from", example: "liquio-diia-stg", }) @IsString() @IsNotEmpty() environmentName: string; @ApiPropertyOptional({ description: "Session name to store credentials under. Auto-generated UUID if omitted.", example: "my-test-session", }) @IsOptional() @IsString() sessionName?: string; }