import { IsOptional, IsString, Length, Matches } from 'class-validator'; export class SupportChatDto { @IsString() @Length(1, 1500) message!: string; @IsOptional() @IsString() @Length(36, 36) @Matches(/^[0-9a-f-]{36}$/i) conversationId?: string; @IsOptional() @IsString() @Length(1, 512) entryPath?: string; @IsOptional() @IsString() @Length(1, 64) @Matches(/^[A-Za-z0-9_-]+$/) anonymousBrowserId?: string; }