import { IsString, Matches, MaxLength } from 'class-validator'; export class SendOtpDto { @IsString() @Matches(/^\+[1-9]\d{6,14}$/, { message: 'cellNumber must be in E.164 format (e.g. +989121234567)', }) cellNumber!: string; /** Tenant host/apex — required so OTP SMS is billed to the business. */ @IsString() @MaxLength(253) domain!: string; }