18 lines
348 B
TypeScript
18 lines
348 B
TypeScript
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;
|
|
}
|