import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString, MinLength } from 'class-validator';

export class LogoutDto {
  @ApiPropertyOptional({ description: 'Refresh token from login (camelCase)' })
  @IsOptional()
  @IsString()
  @MinLength(10)
  refreshToken?: string;

  @ApiPropertyOptional({ description: 'Refresh token (snake_case, Flutter legacy)' })
  @IsOptional()
  @IsString()
  @MinLength(10)
  refresh_token?: string;

  @ApiPropertyOptional()
  @IsOptional()
  @IsString()
  deviceId?: string;
}
