Files
neo/backend/src/voice/dto/initiate-call.dto.ts
2026-01-05 07:59:02 +01:00

11 lines
252 B
TypeScript

import { IsString, IsNotEmpty, Matches } from 'class-validator';
export class InitiateCallDto {
@IsString()
@IsNotEmpty()
@Matches(/^\+?[1-9]\d{1,14}$/, {
message: 'Invalid phone number format (use E.164 format)',
})
toNumber: string;
}