Files
yara724api/src/auth/dto/get-captcha-image-query.dto.ts
SepehrYahyaee 866696094f FIX Catcha
2026-05-24 10:56:28 +03:30

16 lines
463 B
TypeScript

import { ApiPropertyOptional } from "@nestjs/swagger";
import { IsIn, IsOptional } from "class-validator";
export class GetCaptchaImageQueryDto {
@ApiPropertyOptional({
enum: ["json", "raw"],
default: "json",
description:
"On GET /actor/captcha, use `raw` to return image/svg+xml (for browser preview). " +
"The JSON response includes `captchaId` either way.",
})
@IsOptional()
@IsIn(["json", "raw"])
format?: "json" | "raw";
}