"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.PIIRedactionPluginEn$outboundSchema = exports.PIIRedactionPluginEn$inboundSchema = exports.PIIRedactionPluginEnEntities$outboundSchema = exports.PIIRedactionPluginEnEntities$inboundSchema = exports.Language$outboundSchema = exports.Language$inboundSchema = exports.PIIRedactionPluginEnOnFailure$outboundSchema = exports.PIIRedactionPluginEnOnFailure$inboundSchema = exports.PIIRedactionPluginEnId$outboundSchema = exports.PIIRedactionPluginEnId$inboundSchema = exports.PIIRedactionPluginEnEntities = exports.Language = exports.PIIRedactionPluginEnOnFailure = exports.PIIRedactionPluginEnId = void 0;
exports.piiRedactionPluginEnToJSON = piiRedactionPluginEnToJSON;
exports.piiRedactionPluginEnFromJSON = piiRedactionPluginEnFromJSON;
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.PIIRedactionPluginEnId = {
    PiiRedaction: "pii_redaction",
};
/**
 * Behavior when redaction is unavailable. `block` (default) fails the request; `passthrough` sends the original text.
 */
exports.PIIRedactionPluginEnOnFailure = {
    Block: "block",
    Passthrough: "passthrough",
};
/**
 * Detector language.
 */
exports.Language = {
    En: "en",
};
exports.PIIRedactionPluginEnEntities = {
    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",
    Jobtitle: "JOBTITLE",
    Jwt: "JWT",
    KvkNumber: "KVK_NUMBER",
    Language: "LANGUAGE",
    LicenseNumber: "LICENSE_NUMBER",
    LicensePlate: "LICENSE_PLATE",
    Location: "LOCATION",
    MacAddress: "MAC_ADDRESS",
    MedicalLicense: "MEDICAL_LICENSE",
    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",
    UkNhs: "UK_NHS",
    Url: "URL",
    UsBankNumber: "US_BANK_NUMBER",
    UsDriverLicense: "US_DRIVER_LICENSE",
    UsItin: "US_ITIN",
    UsPassport: "US_PASSPORT",
    UsSsn: "US_SSN",
    Uuid: "UUID",
    VehicleId: "VEHICLE_ID",
};
/** @internal */
exports.PIIRedactionPluginEnId$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginEnId);
/** @internal */
exports.PIIRedactionPluginEnId$outboundSchema = exports.PIIRedactionPluginEnId$inboundSchema;
/** @internal */
exports.PIIRedactionPluginEnOnFailure$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginEnOnFailure);
/** @internal */
exports.PIIRedactionPluginEnOnFailure$outboundSchema = exports.PIIRedactionPluginEnOnFailure$inboundSchema;
/** @internal */
exports.Language$inboundSchema = z
    .nativeEnum(exports.Language);
/** @internal */
exports.Language$outboundSchema = exports.Language$inboundSchema;
/** @internal */
exports.PIIRedactionPluginEnEntities$inboundSchema = z.nativeEnum(exports.PIIRedactionPluginEnEntities);
/** @internal */
exports.PIIRedactionPluginEnEntities$outboundSchema = exports.PIIRedactionPluginEnEntities$inboundSchema;
/** @internal */
exports.PIIRedactionPluginEn$inboundSchema = z.object({
    id: exports.PIIRedactionPluginEnId$inboundSchema,
    on_failure: exports.PIIRedactionPluginEnOnFailure$inboundSchema.optional(),
    threshold: z.number().optional(),
    language: exports.Language$inboundSchema,
    entities: z.array(exports.PIIRedactionPluginEnEntities$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "on_failure": "onFailure",
    });
});
/** @internal */
exports.PIIRedactionPluginEn$outboundSchema = z.object({
    id: exports.PIIRedactionPluginEnId$outboundSchema,
    onFailure: exports.PIIRedactionPluginEnOnFailure$outboundSchema.optional(),
    threshold: z.number().optional(),
    language: exports.Language$outboundSchema,
    entities: z.array(exports.PIIRedactionPluginEnEntities$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        onFailure: "on_failure",
    });
});
function piiRedactionPluginEnToJSON(piiRedactionPluginEn) {
    return JSON.stringify(exports.PIIRedactionPluginEn$outboundSchema.parse(piiRedactionPluginEn));
}
function piiRedactionPluginEnFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PIIRedactionPluginEn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PIIRedactionPluginEn' from JSON`);
}
//# sourceMappingURL=piiredactionpluginen.js.map