"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssetOcrResponseDto = void 0;
const openapi = require("@nestjs/swagger");
const nestjs_zod_1 = require("nestjs-zod");
const zod_1 = __importDefault(require("zod"));
const AssetOcrResponseSchema = zod_1.default
    .object({
    assetId: zod_1.default.uuidv4(),
    boxScore: zod_1.default.number().meta({ format: 'double' }).describe('Confidence score for text detection box'),
    id: zod_1.default.uuidv4(),
    text: zod_1.default.string().describe('Recognized text'),
    textScore: zod_1.default.number().meta({ format: 'double' }).describe('Confidence score for text recognition'),
    x1: zod_1.default.number().meta({ format: 'double' }).describe('Normalized x coordinate of box corner 1 (0-1)'),
    x2: zod_1.default.number().meta({ format: 'double' }).describe('Normalized x coordinate of box corner 2 (0-1)'),
    x3: zod_1.default.number().meta({ format: 'double' }).describe('Normalized x coordinate of box corner 3 (0-1)'),
    x4: zod_1.default.number().meta({ format: 'double' }).describe('Normalized x coordinate of box corner 4 (0-1)'),
    y1: zod_1.default.number().meta({ format: 'double' }).describe('Normalized y coordinate of box corner 1 (0-1)'),
    y2: zod_1.default.number().meta({ format: 'double' }).describe('Normalized y coordinate of box corner 2 (0-1)'),
    y3: zod_1.default.number().meta({ format: 'double' }).describe('Normalized y coordinate of box corner 3 (0-1)'),
    y4: zod_1.default.number().meta({ format: 'double' }).describe('Normalized y coordinate of box corner 4 (0-1)'),
})
    .meta({ id: 'AssetOcrResponseDto' });
class AssetOcrResponseDto extends (0, nestjs_zod_1.createZodDto)(AssetOcrResponseSchema) {
    static _OPENAPI_METADATA_FACTORY() {
        return {};
    }
}
exports.AssetOcrResponseDto = AssetOcrResponseDto;
//# sourceMappingURL=ocr.dto.js.map