import { IsString, IsOptional, IsBoolean, MinLength, MaxLength, IsIn } from "class-validator"; import { FORMALITY_LEVELS, FormalityLevelType } from "./create-personality.dto"; export class UpdatePersonalityDto { @IsOptional() @IsString() @MinLength(1) @MaxLength(100) name?: string; @IsOptional() @IsString() @MaxLength(500) description?: string; @IsOptional() @IsString() @MinLength(1) @MaxLength(50) tone?: string; @IsOptional() @IsIn(FORMALITY_LEVELS) formalityLevel?: FormalityLevelType; @IsOptional() @IsString() @MinLength(10) systemPromptTemplate?: string; @IsOptional() @IsBoolean() isDefault?: boolean; @IsOptional() @IsBoolean() isActive?: boolean; }