import { IsInt, IsOptional, IsString, Max, Min } from 'class-validator';

export class PresignUploadDto {
  @IsString() mime!: string;
  @IsInt() @Min(1) @Max(26 * 1024 * 1024) sizeBytes!: number;
}

export class PresignDownloadDto {
  @IsString() contentRef!: string;
  @IsOptional() @IsString() mime?: string;
}
