"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ManualKycStatusUpdateDto = exports.AdminKycQueryDto = exports.CreateDiditSessionDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const class_transformer_1 = require("class-transformer");
const kyc_status_enum_1 = require("../../common/kyc/kyc-status.enum");
class DiditContactDetailsDto {
}
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'john.doe@example.com' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditContactDetailsDto.prototype, "email", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: false, default: false }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Boolean)
], DiditContactDetailsDto.prototype, "send_notification_emails", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'en', default: 'en' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditContactDetailsDto.prototype, "email_lang", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: '+14155552671' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditContactDetailsDto.prototype, "phone", void 0);
class DiditExpectedDetailsDto {
}
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'John' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "first_name", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'Doe' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "last_name", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: '1990-05-15' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "date_of_birth", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ enum: ['M', 'F'], nullable: true }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsIn)(['M', 'F']),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "gender", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'USA' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "nationality", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'GBR' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "id_country", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'USA' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "poa_country", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: '123 Main St, San Francisco, CA 94105, USA' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "address", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: '123456789' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "identification_number", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: '192.168.1.100' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], DiditExpectedDetailsDto.prototype, "ip_address", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: ['P', 'ID'] }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Array)
], DiditExpectedDetailsDto.prototype, "expected_document_types", void 0);
class CreateDiditSessionDto {
}
exports.CreateDiditSessionDto = CreateDiditSessionDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Didit workflow_id to use. If omitted, the server uses DIDIT_KYC_WORKFLOW_ID from env.',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "workflow_id", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Binds the session to your entity. If omitted, defaults to the authenticated userId.',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "vendor_data", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'URL to redirect the user after verification completes.',
        example: 'https://yourapp.com/callback',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsUrl)({ require_tld: false }),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "callback", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ enum: ['initiator', 'completer', 'both'], default: 'initiator' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsIn)(['initiator', 'completer', 'both']),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "callback_method", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Additional data stored with the session (not shown to user). Can be an object or string.',
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Object)
], CreateDiditSessionDto.prototype, "metadata", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Language code (ISO 639-1).', example: 'en' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "language", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: DiditContactDetailsDto }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.ValidateNested)(),
    (0, class_transformer_1.Type)(() => DiditContactDetailsDto),
    __metadata("design:type", DiditContactDetailsDto)
], CreateDiditSessionDto.prototype, "contact_details", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: DiditExpectedDetailsDto }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.ValidateNested)(),
    (0, class_transformer_1.Type)(() => DiditExpectedDetailsDto),
    __metadata("design:type", DiditExpectedDetailsDto)
], CreateDiditSessionDto.prototype, "expected_details", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Base64 encoded portrait image (max 1MB) for biometric workflows.',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsBase64)(),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "portrait_image", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Business hint for the verification flow, for example car_listing or number_plate_listing.',
        example: 'car_listing',
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreateDiditSessionDto.prototype, "listingType", void 0);
class AdminKycQueryDto {
}
exports.AdminKycQueryDto = AdminKycQueryDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ enum: kyc_status_enum_1.KycVerificationStatus }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(kyc_status_enum_1.KycVerificationStatus),
    __metadata("design:type", String)
], AdminKycQueryDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'user@example.com' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], AdminKycQueryDto.prototype, "email", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: '+971501234567' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], AdminKycQueryDto.prototype, "mobileNumber", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 12 }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Number)
], AdminKycQueryDto.prototype, "userId", void 0);
class ManualKycStatusUpdateDto {
}
exports.ManualKycStatusUpdateDto = ManualKycStatusUpdateDto;
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ enum: kyc_status_enum_1.KycVerificationStatus, example: kyc_status_enum_1.KycVerificationStatus.VERIFIED }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsEnum)(kyc_status_enum_1.KycVerificationStatus),
    __metadata("design:type", String)
], ManualKycStatusUpdateDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'ID image unclear.' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], ManualKycStatusUpdateDto.prototype, "rejectionReason", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ example: 'Manually reviewed by compliance.' }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], ManualKycStatusUpdateDto.prototype, "reviewNotes", void 0);
//# sourceMappingURL=didit.dto.js.map