import { IsString, IsNotEmpty, IsOptional } from 'class-validator';

export class CreateAnonymousDto {
  @IsOptional()
  @IsString()
  fingerprint?: string;
}

export class SendCodeDto {
  @IsNotEmpty()
  @IsString()
  phone: string;
}

export class VerifyCodeDto {
  @IsNotEmpty()
  @IsString()
  phone: string;

  @IsNotEmpty()
  @IsString()
  code: string;
}

export class RefreshTokenDto {
  @IsNotEmpty()
  @IsString()
  token: string;
}
