"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.nationalIdentityNumberApiModelFromJSON = exports.nationalIdentityNumberApiModelToJSON = exports.NationalIdentityNumberApiModel$ = exports.NationalIdentityNumberApiModel$outboundSchema = exports.NationalIdentityNumberApiModel$inboundSchema = exports.nationalIdentityNumberApiModelTypeFromJSON = exports.nationalIdentityNumberApiModelTypeToJSON = exports.NationalIdentityNumberApiModelType$ = exports.NationalIdentityNumberApiModelType$outboundSchema = exports.NationalIdentityNumberApiModelType$inboundSchema = exports.NationalIdentityNumberApiModelSchemasValue$ = exports.NationalIdentityNumberApiModelSchemasValue$outboundSchema = exports.NationalIdentityNumberApiModelSchemasValue$inboundSchema = exports.nationalIdentityNumberApiModelSchemasSourceValueFromJSON = exports.nationalIdentityNumberApiModelSchemasSourceValueToJSON = exports.NationalIdentityNumberApiModelSchemasSourceValue$ = exports.NationalIdentityNumberApiModelSchemasSourceValue$outboundSchema = exports.NationalIdentityNumberApiModelSchemasSourceValue$inboundSchema = exports.nationalIdentityNumberApiModelSchemas4FromJSON = exports.nationalIdentityNumberApiModelSchemas4ToJSON = exports.NationalIdentityNumberApiModelSchemas4$ = exports.NationalIdentityNumberApiModelSchemas4$outboundSchema = exports.NationalIdentityNumberApiModelSchemas4$inboundSchema = exports.nationalIdentityNumberApiModelCountryFromJSON = exports.nationalIdentityNumberApiModelCountryToJSON = exports.NationalIdentityNumberApiModelCountry$ = exports.NationalIdentityNumberApiModelCountry$outboundSchema = exports.NationalIdentityNumberApiModelCountry$inboundSchema = exports.NationalIdentityNumberApiModelValue$ = exports.NationalIdentityNumberApiModelValue$outboundSchema = exports.NationalIdentityNumberApiModelValue$inboundSchema = exports.nationalIdentityNumberApiModelSourceValueFromJSON = exports.nationalIdentityNumberApiModelSourceValueToJSON = exports.NationalIdentityNumberApiModelSourceValue$ = exports.NationalIdentityNumberApiModelSourceValue$outboundSchema = exports.NationalIdentityNumberApiModelSourceValue$inboundSchema = exports.nationalIdentityNumberApiModel4FromJSON = exports.nationalIdentityNumberApiModel4ToJSON = exports.NationalIdentityNumberApiModel4$ = exports.NationalIdentityNumberApiModel4$outboundSchema = exports.NationalIdentityNumberApiModel4$inboundSchema = exports.NationalIdentityNumberApiModelSchemasValue = exports.NationalIdentityNumberApiModelValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
/**
 * The ISO3166-1 Alpha2 Code of the Country
 */
var NationalIdentityNumberApiModelValue;
(function (NationalIdentityNumberApiModelValue) {
    NationalIdentityNumberApiModelValue["Af"] = "AF";
    NationalIdentityNumberApiModelValue["Al"] = "AL";
    NationalIdentityNumberApiModelValue["Dz"] = "DZ";
    NationalIdentityNumberApiModelValue["As"] = "AS";
    NationalIdentityNumberApiModelValue["Ad"] = "AD";
    NationalIdentityNumberApiModelValue["Ao"] = "AO";
    NationalIdentityNumberApiModelValue["Ai"] = "AI";
    NationalIdentityNumberApiModelValue["Aq"] = "AQ";
    NationalIdentityNumberApiModelValue["Ag"] = "AG";
    NationalIdentityNumberApiModelValue["Ar"] = "AR";
    NationalIdentityNumberApiModelValue["Am"] = "AM";
    NationalIdentityNumberApiModelValue["Aw"] = "AW";
    NationalIdentityNumberApiModelValue["Au"] = "AU";
    NationalIdentityNumberApiModelValue["At"] = "AT";
    NationalIdentityNumberApiModelValue["Az"] = "AZ";
    NationalIdentityNumberApiModelValue["Bs"] = "BS";
    NationalIdentityNumberApiModelValue["Bh"] = "BH";
    NationalIdentityNumberApiModelValue["Bd"] = "BD";
    NationalIdentityNumberApiModelValue["Bb"] = "BB";
    NationalIdentityNumberApiModelValue["By"] = "BY";
    NationalIdentityNumberApiModelValue["Be"] = "BE";
    NationalIdentityNumberApiModelValue["Bz"] = "BZ";
    NationalIdentityNumberApiModelValue["Bj"] = "BJ";
    NationalIdentityNumberApiModelValue["Bm"] = "BM";
    NationalIdentityNumberApiModelValue["Bt"] = "BT";
    NationalIdentityNumberApiModelValue["Bo"] = "BO";
    NationalIdentityNumberApiModelValue["Bq"] = "BQ";
    NationalIdentityNumberApiModelValue["Ba"] = "BA";
    NationalIdentityNumberApiModelValue["Bw"] = "BW";
    NationalIdentityNumberApiModelValue["Bv"] = "BV";
    NationalIdentityNumberApiModelValue["Br"] = "BR";
    NationalIdentityNumberApiModelValue["Io"] = "IO";
    NationalIdentityNumberApiModelValue["Bn"] = "BN";
    NationalIdentityNumberApiModelValue["Bg"] = "BG";
    NationalIdentityNumberApiModelValue["Bf"] = "BF";
    NationalIdentityNumberApiModelValue["Bi"] = "BI";
    NationalIdentityNumberApiModelValue["Kh"] = "KH";
    NationalIdentityNumberApiModelValue["Cm"] = "CM";
    NationalIdentityNumberApiModelValue["Ca"] = "CA";
    NationalIdentityNumberApiModelValue["Cv"] = "CV";
    NationalIdentityNumberApiModelValue["Ky"] = "KY";
    NationalIdentityNumberApiModelValue["Cf"] = "CF";
    NationalIdentityNumberApiModelValue["Td"] = "TD";
    NationalIdentityNumberApiModelValue["Cl"] = "CL";
    NationalIdentityNumberApiModelValue["Cn"] = "CN";
    NationalIdentityNumberApiModelValue["Cx"] = "CX";
    NationalIdentityNumberApiModelValue["Cc"] = "CC";
    NationalIdentityNumberApiModelValue["Co"] = "CO";
    NationalIdentityNumberApiModelValue["Km"] = "KM";
    NationalIdentityNumberApiModelValue["Cg"] = "CG";
    NationalIdentityNumberApiModelValue["Cd"] = "CD";
    NationalIdentityNumberApiModelValue["Ck"] = "CK";
    NationalIdentityNumberApiModelValue["Cr"] = "CR";
    NationalIdentityNumberApiModelValue["Hr"] = "HR";
    NationalIdentityNumberApiModelValue["Cu"] = "CU";
    NationalIdentityNumberApiModelValue["Cw"] = "CW";
    NationalIdentityNumberApiModelValue["Cy"] = "CY";
    NationalIdentityNumberApiModelValue["Cz"] = "CZ";
    NationalIdentityNumberApiModelValue["Ci"] = "CI";
    NationalIdentityNumberApiModelValue["Dk"] = "DK";
    NationalIdentityNumberApiModelValue["Dj"] = "DJ";
    NationalIdentityNumberApiModelValue["Dm"] = "DM";
    NationalIdentityNumberApiModelValue["Do"] = "DO";
    NationalIdentityNumberApiModelValue["Ec"] = "EC";
    NationalIdentityNumberApiModelValue["Eg"] = "EG";
    NationalIdentityNumberApiModelValue["Sv"] = "SV";
    NationalIdentityNumberApiModelValue["Gq"] = "GQ";
    NationalIdentityNumberApiModelValue["Er"] = "ER";
    NationalIdentityNumberApiModelValue["Ee"] = "EE";
    NationalIdentityNumberApiModelValue["Et"] = "ET";
    NationalIdentityNumberApiModelValue["Fk"] = "FK";
    NationalIdentityNumberApiModelValue["Fo"] = "FO";
    NationalIdentityNumberApiModelValue["Fj"] = "FJ";
    NationalIdentityNumberApiModelValue["Fi"] = "FI";
    NationalIdentityNumberApiModelValue["Fr"] = "FR";
    NationalIdentityNumberApiModelValue["Gf"] = "GF";
    NationalIdentityNumberApiModelValue["Pf"] = "PF";
    NationalIdentityNumberApiModelValue["Tf"] = "TF";
    NationalIdentityNumberApiModelValue["Ga"] = "GA";
    NationalIdentityNumberApiModelValue["Gm"] = "GM";
    NationalIdentityNumberApiModelValue["Ge"] = "GE";
    NationalIdentityNumberApiModelValue["De"] = "DE";
    NationalIdentityNumberApiModelValue["Gh"] = "GH";
    NationalIdentityNumberApiModelValue["Gi"] = "GI";
    NationalIdentityNumberApiModelValue["Gr"] = "GR";
    NationalIdentityNumberApiModelValue["Gl"] = "GL";
    NationalIdentityNumberApiModelValue["Gd"] = "GD";
    NationalIdentityNumberApiModelValue["Gp"] = "GP";
    NationalIdentityNumberApiModelValue["Gu"] = "GU";
    NationalIdentityNumberApiModelValue["Gt"] = "GT";
    NationalIdentityNumberApiModelValue["Gg"] = "GG";
    NationalIdentityNumberApiModelValue["Gn"] = "GN";
    NationalIdentityNumberApiModelValue["Gw"] = "GW";
    NationalIdentityNumberApiModelValue["Gy"] = "GY";
    NationalIdentityNumberApiModelValue["Ht"] = "HT";
    NationalIdentityNumberApiModelValue["Hm"] = "HM";
    NationalIdentityNumberApiModelValue["Va"] = "VA";
    NationalIdentityNumberApiModelValue["Hn"] = "HN";
    NationalIdentityNumberApiModelValue["Hk"] = "HK";
    NationalIdentityNumberApiModelValue["Hu"] = "HU";
    NationalIdentityNumberApiModelValue["Is"] = "IS";
    NationalIdentityNumberApiModelValue["In"] = "IN";
    NationalIdentityNumberApiModelValue["Id"] = "ID";
    NationalIdentityNumberApiModelValue["Ir"] = "IR";
    NationalIdentityNumberApiModelValue["Iq"] = "IQ";
    NationalIdentityNumberApiModelValue["Ie"] = "IE";
    NationalIdentityNumberApiModelValue["Im"] = "IM";
    NationalIdentityNumberApiModelValue["Il"] = "IL";
    NationalIdentityNumberApiModelValue["It"] = "IT";
    NationalIdentityNumberApiModelValue["Jm"] = "JM";
    NationalIdentityNumberApiModelValue["Jp"] = "JP";
    NationalIdentityNumberApiModelValue["Je"] = "JE";
    NationalIdentityNumberApiModelValue["Jo"] = "JO";
    NationalIdentityNumberApiModelValue["Kz"] = "KZ";
    NationalIdentityNumberApiModelValue["Ke"] = "KE";
    NationalIdentityNumberApiModelValue["Ki"] = "KI";
    NationalIdentityNumberApiModelValue["Kp"] = "KP";
    NationalIdentityNumberApiModelValue["Kr"] = "KR";
    NationalIdentityNumberApiModelValue["Kw"] = "KW";
    NationalIdentityNumberApiModelValue["Kg"] = "KG";
    NationalIdentityNumberApiModelValue["La"] = "LA";
    NationalIdentityNumberApiModelValue["Lv"] = "LV";
    NationalIdentityNumberApiModelValue["Lb"] = "LB";
    NationalIdentityNumberApiModelValue["Ls"] = "LS";
    NationalIdentityNumberApiModelValue["Lr"] = "LR";
    NationalIdentityNumberApiModelValue["Ly"] = "LY";
    NationalIdentityNumberApiModelValue["Li"] = "LI";
    NationalIdentityNumberApiModelValue["Lt"] = "LT";
    NationalIdentityNumberApiModelValue["Lu"] = "LU";
    NationalIdentityNumberApiModelValue["Mo"] = "MO";
    NationalIdentityNumberApiModelValue["Mk"] = "MK";
    NationalIdentityNumberApiModelValue["Mg"] = "MG";
    NationalIdentityNumberApiModelValue["Mw"] = "MW";
    NationalIdentityNumberApiModelValue["My"] = "MY";
    NationalIdentityNumberApiModelValue["Mv"] = "MV";
    NationalIdentityNumberApiModelValue["Ml"] = "ML";
    NationalIdentityNumberApiModelValue["Mt"] = "MT";
    NationalIdentityNumberApiModelValue["Mh"] = "MH";
    NationalIdentityNumberApiModelValue["Mq"] = "MQ";
    NationalIdentityNumberApiModelValue["Mr"] = "MR";
    NationalIdentityNumberApiModelValue["Mu"] = "MU";
    NationalIdentityNumberApiModelValue["Yt"] = "YT";
    NationalIdentityNumberApiModelValue["Mx"] = "MX";
    NationalIdentityNumberApiModelValue["Fm"] = "FM";
    NationalIdentityNumberApiModelValue["Md"] = "MD";
    NationalIdentityNumberApiModelValue["Mc"] = "MC";
    NationalIdentityNumberApiModelValue["Mn"] = "MN";
    NationalIdentityNumberApiModelValue["Me"] = "ME";
    NationalIdentityNumberApiModelValue["Ms"] = "MS";
    NationalIdentityNumberApiModelValue["Ma"] = "MA";
    NationalIdentityNumberApiModelValue["Mz"] = "MZ";
    NationalIdentityNumberApiModelValue["Mm"] = "MM";
    NationalIdentityNumberApiModelValue["Na"] = "NA";
    NationalIdentityNumberApiModelValue["Nr"] = "NR";
    NationalIdentityNumberApiModelValue["Np"] = "NP";
    NationalIdentityNumberApiModelValue["Nl"] = "NL";
    NationalIdentityNumberApiModelValue["Nc"] = "NC";
    NationalIdentityNumberApiModelValue["Nz"] = "NZ";
    NationalIdentityNumberApiModelValue["Ni"] = "NI";
    NationalIdentityNumberApiModelValue["Ne"] = "NE";
    NationalIdentityNumberApiModelValue["Ng"] = "NG";
    NationalIdentityNumberApiModelValue["Nu"] = "NU";
    NationalIdentityNumberApiModelValue["Nf"] = "NF";
    NationalIdentityNumberApiModelValue["Mp"] = "MP";
    NationalIdentityNumberApiModelValue["No"] = "NO";
    NationalIdentityNumberApiModelValue["Om"] = "OM";
    NationalIdentityNumberApiModelValue["Pk"] = "PK";
    NationalIdentityNumberApiModelValue["Pw"] = "PW";
    NationalIdentityNumberApiModelValue["Ps"] = "PS";
    NationalIdentityNumberApiModelValue["Pa"] = "PA";
    NationalIdentityNumberApiModelValue["Pg"] = "PG";
    NationalIdentityNumberApiModelValue["Py"] = "PY";
    NationalIdentityNumberApiModelValue["Pe"] = "PE";
    NationalIdentityNumberApiModelValue["Ph"] = "PH";
    NationalIdentityNumberApiModelValue["Pn"] = "PN";
    NationalIdentityNumberApiModelValue["Pl"] = "PL";
    NationalIdentityNumberApiModelValue["Pt"] = "PT";
    NationalIdentityNumberApiModelValue["Pr"] = "PR";
    NationalIdentityNumberApiModelValue["Qa"] = "QA";
    NationalIdentityNumberApiModelValue["Ro"] = "RO";
    NationalIdentityNumberApiModelValue["Ru"] = "RU";
    NationalIdentityNumberApiModelValue["Rw"] = "RW";
    NationalIdentityNumberApiModelValue["Re"] = "RE";
    NationalIdentityNumberApiModelValue["Bl"] = "BL";
    NationalIdentityNumberApiModelValue["Sh"] = "SH";
    NationalIdentityNumberApiModelValue["Kn"] = "KN";
    NationalIdentityNumberApiModelValue["Lc"] = "LC";
    NationalIdentityNumberApiModelValue["Mf"] = "MF";
    NationalIdentityNumberApiModelValue["Pm"] = "PM";
    NationalIdentityNumberApiModelValue["Vc"] = "VC";
    NationalIdentityNumberApiModelValue["Ws"] = "WS";
    NationalIdentityNumberApiModelValue["Sm"] = "SM";
    NationalIdentityNumberApiModelValue["St"] = "ST";
    NationalIdentityNumberApiModelValue["Sa"] = "SA";
    NationalIdentityNumberApiModelValue["Sn"] = "SN";
    NationalIdentityNumberApiModelValue["Rs"] = "RS";
    NationalIdentityNumberApiModelValue["Sc"] = "SC";
    NationalIdentityNumberApiModelValue["Sl"] = "SL";
    NationalIdentityNumberApiModelValue["Sg"] = "SG";
    NationalIdentityNumberApiModelValue["Sx"] = "SX";
    NationalIdentityNumberApiModelValue["Sk"] = "SK";
    NationalIdentityNumberApiModelValue["Si"] = "SI";
    NationalIdentityNumberApiModelValue["Sb"] = "SB";
    NationalIdentityNumberApiModelValue["So"] = "SO";
    NationalIdentityNumberApiModelValue["Za"] = "ZA";
    NationalIdentityNumberApiModelValue["Gs"] = "GS";
    NationalIdentityNumberApiModelValue["Ss"] = "SS";
    NationalIdentityNumberApiModelValue["Es"] = "ES";
    NationalIdentityNumberApiModelValue["Lk"] = "LK";
    NationalIdentityNumberApiModelValue["Sd"] = "SD";
    NationalIdentityNumberApiModelValue["Sr"] = "SR";
    NationalIdentityNumberApiModelValue["Sj"] = "SJ";
    NationalIdentityNumberApiModelValue["Sz"] = "SZ";
    NationalIdentityNumberApiModelValue["Se"] = "SE";
    NationalIdentityNumberApiModelValue["Ch"] = "CH";
    NationalIdentityNumberApiModelValue["Sy"] = "SY";
    NationalIdentityNumberApiModelValue["Tw"] = "TW";
    NationalIdentityNumberApiModelValue["Tj"] = "TJ";
    NationalIdentityNumberApiModelValue["Tz"] = "TZ";
    NationalIdentityNumberApiModelValue["Th"] = "TH";
    NationalIdentityNumberApiModelValue["Tl"] = "TL";
    NationalIdentityNumberApiModelValue["Tg"] = "TG";
    NationalIdentityNumberApiModelValue["Tk"] = "TK";
    NationalIdentityNumberApiModelValue["To"] = "TO";
    NationalIdentityNumberApiModelValue["Tt"] = "TT";
    NationalIdentityNumberApiModelValue["Tn"] = "TN";
    NationalIdentityNumberApiModelValue["Tr"] = "TR";
    NationalIdentityNumberApiModelValue["Tm"] = "TM";
    NationalIdentityNumberApiModelValue["Tc"] = "TC";
    NationalIdentityNumberApiModelValue["Tv"] = "TV";
    NationalIdentityNumberApiModelValue["Ug"] = "UG";
    NationalIdentityNumberApiModelValue["Ua"] = "UA";
    NationalIdentityNumberApiModelValue["Ae"] = "AE";
    NationalIdentityNumberApiModelValue["Gb"] = "GB";
    NationalIdentityNumberApiModelValue["Us"] = "US";
    NationalIdentityNumberApiModelValue["Um"] = "UM";
    NationalIdentityNumberApiModelValue["Uy"] = "UY";
    NationalIdentityNumberApiModelValue["Uz"] = "UZ";
    NationalIdentityNumberApiModelValue["Vu"] = "VU";
    NationalIdentityNumberApiModelValue["Ve"] = "VE";
    NationalIdentityNumberApiModelValue["Vn"] = "VN";
    NationalIdentityNumberApiModelValue["Vg"] = "VG";
    NationalIdentityNumberApiModelValue["Vi"] = "VI";
    NationalIdentityNumberApiModelValue["Wf"] = "WF";
    NationalIdentityNumberApiModelValue["Eh"] = "EH";
    NationalIdentityNumberApiModelValue["Ye"] = "YE";
    NationalIdentityNumberApiModelValue["Zm"] = "ZM";
    NationalIdentityNumberApiModelValue["Zw"] = "ZW";
    NationalIdentityNumberApiModelValue["UnmappedValue"] = "unmapped_value";
})(NationalIdentityNumberApiModelValue || (exports.NationalIdentityNumberApiModelValue = NationalIdentityNumberApiModelValue = {}));
/**
 * The type of the national identity number
 */
var NationalIdentityNumberApiModelSchemasValue;
(function (NationalIdentityNumberApiModelSchemasValue) {
    NationalIdentityNumberApiModelSchemasValue["Ssn"] = "ssn";
    NationalIdentityNumberApiModelSchemasValue["Nin"] = "nin";
    NationalIdentityNumberApiModelSchemasValue["Sin"] = "sin";
    NationalIdentityNumberApiModelSchemasValue["Nid"] = "nid";
    NationalIdentityNumberApiModelSchemasValue["Pin"] = "pin";
    NationalIdentityNumberApiModelSchemasValue["Pn"] = "pn";
    NationalIdentityNumberApiModelSchemasValue["Umcn"] = "umcn";
    NationalIdentityNumberApiModelSchemasValue["Pic"] = "pic";
    NationalIdentityNumberApiModelSchemasValue["Ric"] = "ric";
    NationalIdentityNumberApiModelSchemasValue["Idnum"] = "idnum";
    NationalIdentityNumberApiModelSchemasValue["Cid"] = "cid";
    NationalIdentityNumberApiModelSchemasValue["Nidnr"] = "nidnr";
    NationalIdentityNumberApiModelSchemasValue["Pan"] = "pan";
    NationalIdentityNumberApiModelSchemasValue["Aadhaar"] = "aadhaar";
    NationalIdentityNumberApiModelSchemasValue["Epic"] = "epic";
    NationalIdentityNumberApiModelSchemasValue["Ptn"] = "ptn";
    NationalIdentityNumberApiModelSchemasValue["Itin"] = "itin";
    NationalIdentityNumberApiModelSchemasValue["Tin"] = "tin";
    NationalIdentityNumberApiModelSchemasValue["Uprc"] = "uprc";
    NationalIdentityNumberApiModelSchemasValue["Pcode"] = "pcode";
    NationalIdentityNumberApiModelSchemasValue["Ssi"] = "ssi";
    NationalIdentityNumberApiModelSchemasValue["Cedula"] = "cedula";
    NationalIdentityNumberApiModelSchemasValue["Passport"] = "passport";
    NationalIdentityNumberApiModelSchemasValue["Voterid"] = "voterid";
    NationalIdentityNumberApiModelSchemasValue["Ntin"] = "ntin";
    NationalIdentityNumberApiModelSchemasValue["Bn"] = "bn";
    NationalIdentityNumberApiModelSchemasValue["Fnr"] = "fnr";
    NationalIdentityNumberApiModelSchemasValue["Mva"] = "mva";
    NationalIdentityNumberApiModelSchemasValue["CivilId"] = "civil_id";
    NationalIdentityNumberApiModelSchemasValue["Cnic"] = "cnic";
    NationalIdentityNumberApiModelSchemasValue["Nric"] = "nric";
    NationalIdentityNumberApiModelSchemasValue["Fin"] = "fin";
    NationalIdentityNumberApiModelSchemasValue["Uen"] = "uen";
    NationalIdentityNumberApiModelSchemasValue["Registrationnumber"] = "registrationnumber";
    NationalIdentityNumberApiModelSchemasValue["Nic"] = "nic";
    NationalIdentityNumberApiModelSchemasValue["Personnummer"] = "personnummer";
    NationalIdentityNumberApiModelSchemasValue["Ahv"] = "ahv";
    NationalIdentityNumberApiModelSchemasValue["Id"] = "id";
    NationalIdentityNumberApiModelSchemasValue["Eid"] = "eid";
    NationalIdentityNumberApiModelSchemasValue["Va"] = "va";
    NationalIdentityNumberApiModelSchemasValue["Pid"] = "pid";
    NationalIdentityNumberApiModelSchemasValue["Nrt"] = "nrt";
    NationalIdentityNumberApiModelSchemasValue["Nipt"] = "nipt";
    NationalIdentityNumberApiModelSchemasValue["Cbu"] = "cbu";
    NationalIdentityNumberApiModelSchemasValue["Cuit"] = "cuit";
    NationalIdentityNumberApiModelSchemasValue["Dni"] = "dni";
    NationalIdentityNumberApiModelSchemasValue["Businessid"] = "businessid";
    NationalIdentityNumberApiModelSchemasValue["Vnr"] = "vnr";
    NationalIdentityNumberApiModelSchemasValue["Abn"] = "abn";
    NationalIdentityNumberApiModelSchemasValue["Acn"] = "acn";
    NationalIdentityNumberApiModelSchemasValue["Tfn"] = "tfn";
    NationalIdentityNumberApiModelSchemasValue["Jmbg"] = "jmbg";
    NationalIdentityNumberApiModelSchemasValue["Bis"] = "bis";
    NationalIdentityNumberApiModelSchemasValue["Insz"] = "insz";
    NationalIdentityNumberApiModelSchemasValue["Nn"] = "nn";
    NationalIdentityNumberApiModelSchemasValue["Egn"] = "egn";
    NationalIdentityNumberApiModelSchemasValue["Pnf"] = "pnf";
    NationalIdentityNumberApiModelSchemasValue["Vat"] = "vat";
    NationalIdentityNumberApiModelSchemasValue["Cnpj"] = "cnpj";
    NationalIdentityNumberApiModelSchemasValue["Unp"] = "unp";
    NationalIdentityNumberApiModelSchemasValue["Gst"] = "gst";
    NationalIdentityNumberApiModelSchemasValue["Pst"] = "pst";
    NationalIdentityNumberApiModelSchemasValue["Qst"] = "qst";
    NationalIdentityNumberApiModelSchemasValue["Ni"] = "ni";
    NationalIdentityNumberApiModelSchemasValue["Dic"] = "dic";
    NationalIdentityNumberApiModelSchemasValue["Rc"] = "rc";
    NationalIdentityNumberApiModelSchemasValue["Uid"] = "uid";
    NationalIdentityNumberApiModelSchemasValue["Rut"] = "rut";
    NationalIdentityNumberApiModelSchemasValue["Uscc"] = "uscc";
    NationalIdentityNumberApiModelSchemasValue["Cpf"] = "cpf";
    NationalIdentityNumberApiModelSchemasValue["Cpj"] = "cpj";
    NationalIdentityNumberApiModelSchemasValue["Cr"] = "cr";
    NationalIdentityNumberApiModelSchemasValue["Stnr"] = "stnr";
    NationalIdentityNumberApiModelSchemasValue["Svnr"] = "svnr";
    NationalIdentityNumberApiModelSchemasValue["Ncf"] = "ncf";
    NationalIdentityNumberApiModelSchemasValue["Rnc"] = "rnc";
    NationalIdentityNumberApiModelSchemasValue["Nif"] = "nif";
    NationalIdentityNumberApiModelSchemasValue["Ci"] = "ci";
    NationalIdentityNumberApiModelSchemasValue["Ik"] = "ik";
    NationalIdentityNumberApiModelSchemasValue["Kmkr"] = "kmkr";
    NationalIdentityNumberApiModelSchemasValue["Registrikood"] = "registrikood";
    NationalIdentityNumberApiModelSchemasValue["Tn"] = "tn";
    NationalIdentityNumberApiModelSchemasValue["Ruc"] = "ruc";
    NationalIdentityNumberApiModelSchemasValue["Nit"] = "nit";
    NationalIdentityNumberApiModelSchemasValue["Alv"] = "alv";
    NationalIdentityNumberApiModelSchemasValue["Hetu"] = "hetu";
    NationalIdentityNumberApiModelSchemasValue["Ytunnus"] = "ytunnus";
    NationalIdentityNumberApiModelSchemasValue["Vn"] = "vn";
    NationalIdentityNumberApiModelSchemasValue["Utr"] = "utr";
    NationalIdentityNumberApiModelSchemasValue["Nifp"] = "nifp";
    NationalIdentityNumberApiModelSchemasValue["Amka"] = "amka";
    NationalIdentityNumberApiModelSchemasValue["Cui"] = "cui";
    NationalIdentityNumberApiModelSchemasValue["Nir"] = "nir";
    NationalIdentityNumberApiModelSchemasValue["Siren"] = "siren";
    NationalIdentityNumberApiModelSchemasValue["Siret"] = "siret";
    NationalIdentityNumberApiModelSchemasValue["Tva"] = "tva";
    NationalIdentityNumberApiModelSchemasValue["Oib"] = "oib";
    NationalIdentityNumberApiModelSchemasValue["Hkid"] = "hkid";
    NationalIdentityNumberApiModelSchemasValue["Anum"] = "anum";
    NationalIdentityNumberApiModelSchemasValue["Kennitala"] = "kennitala";
    NationalIdentityNumberApiModelSchemasValue["Vsk"] = "vsk";
    NationalIdentityNumberApiModelSchemasValue["Npwp"] = "npwp";
    NationalIdentityNumberApiModelSchemasValue["Pps"] = "pps";
    NationalIdentityNumberApiModelSchemasValue["Gstin"] = "gstin";
    NationalIdentityNumberApiModelSchemasValue["Idnr"] = "idnr";
    NationalIdentityNumberApiModelSchemasValue["Hr"] = "hr";
    NationalIdentityNumberApiModelSchemasValue["Aic"] = "aic";
    NationalIdentityNumberApiModelSchemasValue["Codicefiscale"] = "codicefiscale";
    NationalIdentityNumberApiModelSchemasValue["Iva"] = "iva";
    NationalIdentityNumberApiModelSchemasValue["Peid"] = "peid";
    NationalIdentityNumberApiModelSchemasValue["Asmens"] = "asmens";
    NationalIdentityNumberApiModelSchemasValue["Pvm"] = "pvm";
    NationalIdentityNumberApiModelSchemasValue["Ctps"] = "ctps";
    NationalIdentityNumberApiModelSchemasValue["Vrn"] = "vrn";
    NationalIdentityNumberApiModelSchemasValue["Vtk"] = "vtk";
    NationalIdentityNumberApiModelSchemasValue["Int"] = "int";
    NationalIdentityNumberApiModelSchemasValue["Tk"] = "tk";
    NationalIdentityNumberApiModelSchemasValue["Pas"] = "pas";
    NationalIdentityNumberApiModelSchemasValue["Rne"] = "rne";
    NationalIdentityNumberApiModelSchemasValue["Rg"] = "rg";
    NationalIdentityNumberApiModelSchemasValue["Nci"] = "nci";
    NationalIdentityNumberApiModelSchemasValue["Crnm"] = "crnm";
    NationalIdentityNumberApiModelSchemasValue["Pis"] = "pis";
    NationalIdentityNumberApiModelSchemasValue["Insee"] = "insee";
    NationalIdentityNumberApiModelSchemasValue["Tax"] = "tax";
    NationalIdentityNumberApiModelSchemasValue["Mpf"] = "mpf";
    NationalIdentityNumberApiModelSchemasValue["Epfo"] = "epfo";
    NationalIdentityNumberApiModelSchemasValue["Esi"] = "esi";
    NationalIdentityNumberApiModelSchemasValue["Pran"] = "pran";
    NationalIdentityNumberApiModelSchemasValue["Uan"] = "uan";
    NationalIdentityNumberApiModelSchemasValue["Idk"] = "idk";
    NationalIdentityNumberApiModelSchemasValue["Bsn"] = "bsn";
    NationalIdentityNumberApiModelSchemasValue["Mid"] = "mid";
    NationalIdentityNumberApiModelSchemasValue["Sss"] = "sss";
    NationalIdentityNumberApiModelSchemasValue["Nie"] = "nie";
    NationalIdentityNumberApiModelSchemasValue["Nss"] = "nss";
    NationalIdentityNumberApiModelSchemasValue["Arc"] = "arc";
    NationalIdentityNumberApiModelSchemasValue["Curp"] = "curp";
    NationalIdentityNumberApiModelSchemasValue["Imss"] = "imss";
    NationalIdentityNumberApiModelSchemasValue["Rfc"] = "rfc";
    NationalIdentityNumberApiModelSchemasValue["Ein"] = "ein";
    NationalIdentityNumberApiModelSchemasValue["Other"] = "other";
    NationalIdentityNumberApiModelSchemasValue["Unknown"] = "unknown";
    NationalIdentityNumberApiModelSchemasValue["UnmappedValue"] = "unmapped_value";
})(NationalIdentityNumberApiModelSchemasValue || (exports.NationalIdentityNumberApiModelSchemasValue = NationalIdentityNumberApiModelSchemasValue = {}));
/** @internal */
exports.NationalIdentityNumberApiModel4$inboundSchema = z.object({});
/** @internal */
exports.NationalIdentityNumberApiModel4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModel4$;
(function (NationalIdentityNumberApiModel4$) {
    /** @deprecated use `NationalIdentityNumberApiModel4$inboundSchema` instead. */
    NationalIdentityNumberApiModel4$.inboundSchema = exports.NationalIdentityNumberApiModel4$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModel4$outboundSchema` instead. */
    NationalIdentityNumberApiModel4$.outboundSchema = exports.NationalIdentityNumberApiModel4$outboundSchema;
})(NationalIdentityNumberApiModel4$ || (exports.NationalIdentityNumberApiModel4$ = NationalIdentityNumberApiModel4$ = {}));
function nationalIdentityNumberApiModel4ToJSON(nationalIdentityNumberApiModel4) {
    return JSON.stringify(exports.NationalIdentityNumberApiModel4$outboundSchema.parse(nationalIdentityNumberApiModel4));
}
exports.nationalIdentityNumberApiModel4ToJSON = nationalIdentityNumberApiModel4ToJSON;
function nationalIdentityNumberApiModel4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModel4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModel4' from JSON`);
}
exports.nationalIdentityNumberApiModel4FromJSON = nationalIdentityNumberApiModel4FromJSON;
/** @internal */
exports.NationalIdentityNumberApiModelSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.NationalIdentityNumberApiModel4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.NationalIdentityNumberApiModelSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.NationalIdentityNumberApiModel4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelSourceValue$;
(function (NationalIdentityNumberApiModelSourceValue$) {
    /** @deprecated use `NationalIdentityNumberApiModelSourceValue$inboundSchema` instead. */
    NationalIdentityNumberApiModelSourceValue$.inboundSchema = exports.NationalIdentityNumberApiModelSourceValue$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelSourceValue$outboundSchema` instead. */
    NationalIdentityNumberApiModelSourceValue$.outboundSchema = exports.NationalIdentityNumberApiModelSourceValue$outboundSchema;
})(NationalIdentityNumberApiModelSourceValue$ || (exports.NationalIdentityNumberApiModelSourceValue$ = NationalIdentityNumberApiModelSourceValue$ = {}));
function nationalIdentityNumberApiModelSourceValueToJSON(nationalIdentityNumberApiModelSourceValue) {
    return JSON.stringify(exports.NationalIdentityNumberApiModelSourceValue$outboundSchema.parse(nationalIdentityNumberApiModelSourceValue));
}
exports.nationalIdentityNumberApiModelSourceValueToJSON = nationalIdentityNumberApiModelSourceValueToJSON;
function nationalIdentityNumberApiModelSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModelSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModelSourceValue' from JSON`);
}
exports.nationalIdentityNumberApiModelSourceValueFromJSON = nationalIdentityNumberApiModelSourceValueFromJSON;
/** @internal */
exports.NationalIdentityNumberApiModelValue$inboundSchema = z
    .union([
    z.nativeEnum(NationalIdentityNumberApiModelValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.NationalIdentityNumberApiModelValue$outboundSchema = z.union([
    z.nativeEnum(NationalIdentityNumberApiModelValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelValue$;
(function (NationalIdentityNumberApiModelValue$) {
    /** @deprecated use `NationalIdentityNumberApiModelValue$inboundSchema` instead. */
    NationalIdentityNumberApiModelValue$.inboundSchema = exports.NationalIdentityNumberApiModelValue$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelValue$outboundSchema` instead. */
    NationalIdentityNumberApiModelValue$.outboundSchema = exports.NationalIdentityNumberApiModelValue$outboundSchema;
})(NationalIdentityNumberApiModelValue$ || (exports.NationalIdentityNumberApiModelValue$ = NationalIdentityNumberApiModelValue$ = {}));
/** @internal */
exports.NationalIdentityNumberApiModelCountry$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.NationalIdentityNumberApiModel4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.NationalIdentityNumberApiModelValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.NationalIdentityNumberApiModelCountry$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.NationalIdentityNumberApiModel4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.NationalIdentityNumberApiModelValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelCountry$;
(function (NationalIdentityNumberApiModelCountry$) {
    /** @deprecated use `NationalIdentityNumberApiModelCountry$inboundSchema` instead. */
    NationalIdentityNumberApiModelCountry$.inboundSchema = exports.NationalIdentityNumberApiModelCountry$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelCountry$outboundSchema` instead. */
    NationalIdentityNumberApiModelCountry$.outboundSchema = exports.NationalIdentityNumberApiModelCountry$outboundSchema;
})(NationalIdentityNumberApiModelCountry$ || (exports.NationalIdentityNumberApiModelCountry$ = NationalIdentityNumberApiModelCountry$ = {}));
function nationalIdentityNumberApiModelCountryToJSON(nationalIdentityNumberApiModelCountry) {
    return JSON.stringify(exports.NationalIdentityNumberApiModelCountry$outboundSchema.parse(nationalIdentityNumberApiModelCountry));
}
exports.nationalIdentityNumberApiModelCountryToJSON = nationalIdentityNumberApiModelCountryToJSON;
function nationalIdentityNumberApiModelCountryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModelCountry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModelCountry' from JSON`);
}
exports.nationalIdentityNumberApiModelCountryFromJSON = nationalIdentityNumberApiModelCountryFromJSON;
/** @internal */
exports.NationalIdentityNumberApiModelSchemas4$inboundSchema = z.object({});
/** @internal */
exports.NationalIdentityNumberApiModelSchemas4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelSchemas4$;
(function (NationalIdentityNumberApiModelSchemas4$) {
    /** @deprecated use `NationalIdentityNumberApiModelSchemas4$inboundSchema` instead. */
    NationalIdentityNumberApiModelSchemas4$.inboundSchema = exports.NationalIdentityNumberApiModelSchemas4$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelSchemas4$outboundSchema` instead. */
    NationalIdentityNumberApiModelSchemas4$.outboundSchema = exports.NationalIdentityNumberApiModelSchemas4$outboundSchema;
})(NationalIdentityNumberApiModelSchemas4$ || (exports.NationalIdentityNumberApiModelSchemas4$ = NationalIdentityNumberApiModelSchemas4$ = {}));
function nationalIdentityNumberApiModelSchemas4ToJSON(nationalIdentityNumberApiModelSchemas4) {
    return JSON.stringify(exports.NationalIdentityNumberApiModelSchemas4$outboundSchema.parse(nationalIdentityNumberApiModelSchemas4));
}
exports.nationalIdentityNumberApiModelSchemas4ToJSON = nationalIdentityNumberApiModelSchemas4ToJSON;
function nationalIdentityNumberApiModelSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModelSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModelSchemas4' from JSON`);
}
exports.nationalIdentityNumberApiModelSchemas4FromJSON = nationalIdentityNumberApiModelSchemas4FromJSON;
/** @internal */
exports.NationalIdentityNumberApiModelSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.NationalIdentityNumberApiModelSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.NationalIdentityNumberApiModelSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.NationalIdentityNumberApiModelSchemas4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelSchemasSourceValue$;
(function (NationalIdentityNumberApiModelSchemasSourceValue$) {
    /** @deprecated use `NationalIdentityNumberApiModelSchemasSourceValue$inboundSchema` instead. */
    NationalIdentityNumberApiModelSchemasSourceValue$.inboundSchema = exports.NationalIdentityNumberApiModelSchemasSourceValue$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelSchemasSourceValue$outboundSchema` instead. */
    NationalIdentityNumberApiModelSchemasSourceValue$.outboundSchema = exports.NationalIdentityNumberApiModelSchemasSourceValue$outboundSchema;
})(NationalIdentityNumberApiModelSchemasSourceValue$ || (exports.NationalIdentityNumberApiModelSchemasSourceValue$ = NationalIdentityNumberApiModelSchemasSourceValue$ = {}));
function nationalIdentityNumberApiModelSchemasSourceValueToJSON(nationalIdentityNumberApiModelSchemasSourceValue) {
    return JSON.stringify(exports.NationalIdentityNumberApiModelSchemasSourceValue$outboundSchema.parse(nationalIdentityNumberApiModelSchemasSourceValue));
}
exports.nationalIdentityNumberApiModelSchemasSourceValueToJSON = nationalIdentityNumberApiModelSchemasSourceValueToJSON;
function nationalIdentityNumberApiModelSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModelSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModelSchemasSourceValue' from JSON`);
}
exports.nationalIdentityNumberApiModelSchemasSourceValueFromJSON = nationalIdentityNumberApiModelSchemasSourceValueFromJSON;
/** @internal */
exports.NationalIdentityNumberApiModelSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(NationalIdentityNumberApiModelSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.NationalIdentityNumberApiModelSchemasValue$outboundSchema = z.union([
    z.nativeEnum(NationalIdentityNumberApiModelSchemasValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelSchemasValue$;
(function (NationalIdentityNumberApiModelSchemasValue$) {
    /** @deprecated use `NationalIdentityNumberApiModelSchemasValue$inboundSchema` instead. */
    NationalIdentityNumberApiModelSchemasValue$.inboundSchema = exports.NationalIdentityNumberApiModelSchemasValue$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelSchemasValue$outboundSchema` instead. */
    NationalIdentityNumberApiModelSchemasValue$.outboundSchema = exports.NationalIdentityNumberApiModelSchemasValue$outboundSchema;
})(NationalIdentityNumberApiModelSchemasValue$ || (exports.NationalIdentityNumberApiModelSchemasValue$ = NationalIdentityNumberApiModelSchemasValue$ = {}));
/** @internal */
exports.NationalIdentityNumberApiModelType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.NationalIdentityNumberApiModelSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.NationalIdentityNumberApiModelSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.NationalIdentityNumberApiModelType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.NationalIdentityNumberApiModelSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.NationalIdentityNumberApiModelSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModelType$;
(function (NationalIdentityNumberApiModelType$) {
    /** @deprecated use `NationalIdentityNumberApiModelType$inboundSchema` instead. */
    NationalIdentityNumberApiModelType$.inboundSchema = exports.NationalIdentityNumberApiModelType$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModelType$outboundSchema` instead. */
    NationalIdentityNumberApiModelType$.outboundSchema = exports.NationalIdentityNumberApiModelType$outboundSchema;
})(NationalIdentityNumberApiModelType$ || (exports.NationalIdentityNumberApiModelType$ = NationalIdentityNumberApiModelType$ = {}));
function nationalIdentityNumberApiModelTypeToJSON(nationalIdentityNumberApiModelType) {
    return JSON.stringify(exports.NationalIdentityNumberApiModelType$outboundSchema.parse(nationalIdentityNumberApiModelType));
}
exports.nationalIdentityNumberApiModelTypeToJSON = nationalIdentityNumberApiModelTypeToJSON;
function nationalIdentityNumberApiModelTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModelType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModelType' from JSON`);
}
exports.nationalIdentityNumberApiModelTypeFromJSON = nationalIdentityNumberApiModelTypeFromJSON;
/** @internal */
exports.NationalIdentityNumberApiModel$inboundSchema = z.object({
    country: z.nullable(z.lazy(() => exports.NationalIdentityNumberApiModelCountry$inboundSchema)).optional(),
    type: z.nullable(z.lazy(() => exports.NationalIdentityNumberApiModelType$inboundSchema)).optional(),
    value: z.nullable(z.string()).optional(),
});
/** @internal */
exports.NationalIdentityNumberApiModel$outboundSchema = z.object({
    country: z.nullable(z.lazy(() => exports.NationalIdentityNumberApiModelCountry$outboundSchema)).optional(),
    type: z.nullable(z.lazy(() => exports.NationalIdentityNumberApiModelType$outboundSchema)).optional(),
    value: z.nullable(z.string()).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var NationalIdentityNumberApiModel$;
(function (NationalIdentityNumberApiModel$) {
    /** @deprecated use `NationalIdentityNumberApiModel$inboundSchema` instead. */
    NationalIdentityNumberApiModel$.inboundSchema = exports.NationalIdentityNumberApiModel$inboundSchema;
    /** @deprecated use `NationalIdentityNumberApiModel$outboundSchema` instead. */
    NationalIdentityNumberApiModel$.outboundSchema = exports.NationalIdentityNumberApiModel$outboundSchema;
})(NationalIdentityNumberApiModel$ || (exports.NationalIdentityNumberApiModel$ = NationalIdentityNumberApiModel$ = {}));
function nationalIdentityNumberApiModelToJSON(nationalIdentityNumberApiModel) {
    return JSON.stringify(exports.NationalIdentityNumberApiModel$outboundSchema.parse(nationalIdentityNumberApiModel));
}
exports.nationalIdentityNumberApiModelToJSON = nationalIdentityNumberApiModelToJSON;
function nationalIdentityNumberApiModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.NationalIdentityNumberApiModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NationalIdentityNumberApiModel' from JSON`);
}
exports.nationalIdentityNumberApiModelFromJSON = nationalIdentityNumberApiModelFromJSON;
//# sourceMappingURL=nationalidentitynumberapimodel.js.map