import { IsString, IsOptional } from 'class-validator'; export class CreateSshKeyDto { @IsString() name: string; @IsString() privateKey: string; // plaintext — encrypted before storage @IsString() @IsOptional() passphrase?: string; // plaintext — encrypted before storage @IsString() @IsOptional() publicKey?: string; }