"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PIIRedactionPluginNl$outboundSchema = exports.PIIRedactionPluginNl$inboundSchema = exports.PIIRedactionPluginNlEntities$outboundSchema = exports.PIIRedactionPluginNlEntities$inboundSchema = exports.PIIRedactionPluginNlLanguage$outboundSchema = exports.PIIRedactionPluginNlLanguage$inboundSchema = exports.PIIRedactionPluginNlOnFailure$outboundSchema = exports.PIIRedactionPluginNlOnFailure$inboundSchema = exports.PIIRedactionPluginNlId$outboundSchema = exports.PIIRedactionPluginNlId$inboundSchema = exports.PIIRedactionPluginNlEntities = exports.PIIRedactionPluginNlLanguage = exports.PIIRedactionPluginNlOnFailure = exports.PIIRedactionPluginNlId = void 0;
exports.piiRedactionPluginNlToJSON = piiRedactionPluginNlToJSON;
exports.piiRedactionPluginNlFromJSON = piiRedactionPluginNlFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * Plugin discriminator. Must be `pii_redaction`.
 */
exports.PIIRedactionPluginNlId = {
    PiiRedaction: "pii_redaction",
};
/**
 * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
 */
exports.PIIRedactionPluginNlOnFailure = {
    Block: "block",
    Passthrough: "passthrough",
};
/**
 * Detector language.
 */
exports.PIIRedactionPluginNlLanguage = {
    Nl: "nl",
};
exports.PIIRedactionPluginNlEntities = {
    Age: "AGE",
    ApiKey: "API_KEY",
    BankRouting: "BANK_ROUTING",
    Bic: "BIC",
    BiometricId: "BIOMETRIC_ID",
    BloodType: "BLOOD_TYPE",
    Bsn: "BSN",
    CreditCard: "CREDIT_CARD",
    Crypto: "CRYPTO",
    DateTime: "DATE_TIME",
    DeviceId: "DEVICE_ID",
    EducationLevel: "EDUCATION_LEVEL",
    EmailAddress: "EMAIL_ADDRESS",
    EmploymentStatus: "EMPLOYMENT_STATUS",
    Gender: "GENDER",
    HealthPlanId: "HEALTH_PLAN_ID",
    HttpCookie: "HTTP_COOKIE",
    IbanCode: "IBAN_CODE",
    Id: "ID",
    IdCard: "ID_CARD",
    Imei: "IMEI",
    IpAddress: "IP_ADDRESS",
    KvkNumber: "KVK_NUMBER",
    Language: "LANGUAGE",
    LicenseNumber: "LICENSE_NUMBER",
    LicensePlate: "LICENSE_PLATE",
    Location: "LOCATION",
    MacAddress: "MAC_ADDRESS",
    MedicalRecord: "MEDICAL_RECORD",
    Nrp: "NRP",
    Organization: "ORGANIZATION",
    Passport: "PASSPORT",
    Password: "PASSWORD",
    Person: "PERSON",
    PhoneNumber: "PHONE_NUMBER",
    Pin: "PIN",
    PoliticalView: "POLITICAL_VIEW",
    RaceEthnicity: "RACE_ETHNICITY",
    ReligiousBelief: "RELIGIOUS_BELIEF",
    Sexuality: "SEXUALITY",
    TaxId: "TAX_ID",
    Title: "TITLE",
    Url: "URL",
    UsDriverLicense: "US_DRIVER_LICENSE",
    UsSsn: "US_SSN",
    VehicleId: "VEHICLE_ID",
};
/** @internal */
exports.PIIRedactionPluginNlId$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginNlId);
/** @internal */
exports.PIIRedactionPluginNlId$outboundSchema = exports.PIIRedactionPluginNlId$inboundSchema;
/** @internal */
exports.PIIRedactionPluginNlOnFailure$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginNlOnFailure);
/** @internal */
exports.PIIRedactionPluginNlOnFailure$outboundSchema = exports.PIIRedactionPluginNlOnFailure$inboundSchema;
/** @internal */
exports.PIIRedactionPluginNlLanguage$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginNlLanguage);
/** @internal */
exports.PIIRedactionPluginNlLanguage$outboundSchema = exports.PIIRedactionPluginNlLanguage$inboundSchema;
/** @internal */
exports.PIIRedactionPluginNlEntities$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginNlEntities);
/** @internal */
exports.PIIRedactionPluginNlEntities$outboundSchema = exports.PIIRedactionPluginNlEntities$inboundSchema;
/** @internal */
exports.PIIRedactionPluginNl$inboundSchema = z.object({
    id: exports.PIIRedactionPluginNlId$inboundSchema,
    on_failure: exports.PIIRedactionPluginNlOnFailure$inboundSchema.optional(),
    threshold: z.number().optional(),
    language: exports.PIIRedactionPluginNlLanguage$inboundSchema,
    entities: z.array(exports.PIIRedactionPluginNlEntities$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "on_failure": "onFailure",
    });
});
/** @internal */
exports.PIIRedactionPluginNl$outboundSchema = z.object({
    id: exports.PIIRedactionPluginNlId$outboundSchema,
    onFailure: exports.PIIRedactionPluginNlOnFailure$outboundSchema.optional(),
    threshold: z.number().optional(),
    language: exports.PIIRedactionPluginNlLanguage$outboundSchema,
    entities: z.array(exports.PIIRedactionPluginNlEntities$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        onFailure: "on_failure",
    });
});
function piiRedactionPluginNlToJSON(piiRedactionPluginNl) {
    return JSON.stringify(exports.PIIRedactionPluginNl$outboundSchema.parse(piiRedactionPluginNl));
}
function piiRedactionPluginNlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PIIRedactionPluginNl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PIIRedactionPluginNl' from JSON`);
}
//# sourceMappingURL=piiredactionpluginnl.js.map