"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.localizationModelFromJSON = exports.localizationModelToJSON = exports.LocalizationModel$ = exports.LocalizationModel$outboundSchema = exports.LocalizationModel$inboundSchema = exports.localizationModelLanguageFromJSON = exports.localizationModelLanguageToJSON = exports.LocalizationModelLanguage$ = exports.LocalizationModelLanguage$outboundSchema = exports.LocalizationModelLanguage$inboundSchema = exports.LocalizationModelValue$ = exports.LocalizationModelValue$outboundSchema = exports.LocalizationModelValue$inboundSchema = exports.localizationModelSourceValueFromJSON = exports.localizationModelSourceValueToJSON = exports.LocalizationModelSourceValue$ = exports.LocalizationModelSourceValue$outboundSchema = exports.LocalizationModelSourceValue$inboundSchema = exports.localizationModel4FromJSON = exports.localizationModel4ToJSON = exports.LocalizationModel4$ = exports.LocalizationModel4$outboundSchema = exports.LocalizationModel4$inboundSchema = exports.LocalizationModelValue = 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 Locale Code of the language
 */
var LocalizationModelValue;
(function (LocalizationModelValue) {
    LocalizationModelValue["ARAR"] = "ar_AR";
    LocalizationModelValue["AaER"] = "aa_ER";
    LocalizationModelValue["AfNA"] = "af_NA";
    LocalizationModelValue["AfZA"] = "af_ZA";
    LocalizationModelValue["AmET"] = "am_ET";
    LocalizationModelValue["ArAE"] = "ar_AE";
    LocalizationModelValue["ArBH"] = "ar_BH";
    LocalizationModelValue["ArDJ"] = "ar_DJ";
    LocalizationModelValue["ArDZ"] = "ar_DZ";
    LocalizationModelValue["ArEG"] = "ar_EG";
    LocalizationModelValue["ArER"] = "ar_ER";
    LocalizationModelValue["ArIQ"] = "ar_IQ";
    LocalizationModelValue["ArJO"] = "ar_JO";
    LocalizationModelValue["ArKM"] = "ar_KM";
    LocalizationModelValue["ArKW"] = "ar_KW";
    LocalizationModelValue["ArLB"] = "ar_LB";
    LocalizationModelValue["ArLY"] = "ar_LY";
    LocalizationModelValue["ArMA"] = "ar_MA";
    LocalizationModelValue["ArMR"] = "ar_MR";
    LocalizationModelValue["ArOM"] = "ar_OM";
    LocalizationModelValue["ArPS"] = "ar_PS";
    LocalizationModelValue["ArQA"] = "ar_QA";
    LocalizationModelValue["ArSA"] = "ar_SA";
    LocalizationModelValue["ArSD"] = "ar_SD";
    LocalizationModelValue["ArSY"] = "ar_SY";
    LocalizationModelValue["ArTD"] = "ar_TD";
    LocalizationModelValue["ArTN"] = "ar_TN";
    LocalizationModelValue["ArYE"] = "ar_YE";
    LocalizationModelValue["AyBO"] = "ay_BO";
    LocalizationModelValue["AyPE"] = "ay_PE";
    LocalizationModelValue["AZAZ"] = "az_AZ";
    LocalizationModelValue["AzIR"] = "az_IR";
    LocalizationModelValue["BeBY"] = "be_BY";
    LocalizationModelValue["BGBG"] = "bg_BG";
    LocalizationModelValue["BiVU"] = "bi_VU";
    LocalizationModelValue["BnBD"] = "bn_BD";
    LocalizationModelValue["BnIN"] = "bn_IN";
    LocalizationModelValue["BsBA"] = "bs_BA";
    LocalizationModelValue["BsME"] = "bs-ME";
    LocalizationModelValue["BynER"] = "byn_ER";
    LocalizationModelValue["CaAD"] = "ca_AD";
    LocalizationModelValue["CaES"] = "ca_ES";
    LocalizationModelValue["CaFR"] = "ca_FR";
    LocalizationModelValue["CaIT"] = "ca_IT";
    LocalizationModelValue["ChGU"] = "ch_GU";
    LocalizationModelValue["CsCZ"] = "cs_CZ";
    LocalizationModelValue["DaDK"] = "da_DK";
    LocalizationModelValue["DeAT"] = "de_AT";
    LocalizationModelValue["DeBE"] = "de_BE";
    LocalizationModelValue["DeCH"] = "de_CH";
    LocalizationModelValue["DEDE"] = "de_DE";
    LocalizationModelValue["DeLI"] = "de_LI";
    LocalizationModelValue["DeLU"] = "de_LU";
    LocalizationModelValue["DeVA"] = "de_VA";
    LocalizationModelValue["DeMV"] = "de_MV";
    LocalizationModelValue["DvMV"] = "dv_MV";
    LocalizationModelValue["DzBT"] = "dz_BT";
    LocalizationModelValue["ElCY"] = "el_CY";
    LocalizationModelValue["ElGR"] = "el_GR";
    LocalizationModelValue["EnAG"] = "en_AG";
    LocalizationModelValue["EnAI"] = "en_AI";
    LocalizationModelValue["EnAS"] = "en_AS";
    LocalizationModelValue["EnAU"] = "en_AU";
    LocalizationModelValue["EnBB"] = "en_BB";
    LocalizationModelValue["EnBE"] = "en_BE";
    LocalizationModelValue["EnBM"] = "en_BM";
    LocalizationModelValue["EnBS"] = "en_BS";
    LocalizationModelValue["EnBW"] = "en_BW";
    LocalizationModelValue["EnBZ"] = "en_BZ";
    LocalizationModelValue["EnCA"] = "en_CA";
    LocalizationModelValue["EnCC"] = "en_CC";
    LocalizationModelValue["EnCK"] = "en_CK";
    LocalizationModelValue["EnCM"] = "en_CM";
    LocalizationModelValue["EnCW"] = "en_CW";
    LocalizationModelValue["EnCX"] = "en_CX";
    LocalizationModelValue["EnDG"] = "en_DG";
    LocalizationModelValue["EnDM"] = "en_DM";
    LocalizationModelValue["EnER"] = "en_ER";
    LocalizationModelValue["EnFJ"] = "en_FJ";
    LocalizationModelValue["EnFK"] = "en_FK";
    LocalizationModelValue["EnFM"] = "en_FM";
    LocalizationModelValue["EnGB"] = "en_GB";
    LocalizationModelValue["EnGD"] = "en_GD";
    LocalizationModelValue["EnGG"] = "en_GG";
    LocalizationModelValue["EnGH"] = "en_GH";
    LocalizationModelValue["EnGI"] = "en_GI";
    LocalizationModelValue["EnGM"] = "en_GM";
    LocalizationModelValue["EnGS"] = "en_GS";
    LocalizationModelValue["EnGU"] = "en_GU";
    LocalizationModelValue["EnGY"] = "en_GY";
    LocalizationModelValue["EnHK"] = "en_HK";
    LocalizationModelValue["EnIE"] = "en_IE";
    LocalizationModelValue["EnIM"] = "en_IM";
    LocalizationModelValue["EnIN"] = "en_IN";
    LocalizationModelValue["EnIO"] = "en_IO";
    LocalizationModelValue["EnJE"] = "en_JE";
    LocalizationModelValue["EnJM"] = "en_JM";
    LocalizationModelValue["EnKE"] = "en_KE";
    LocalizationModelValue["EnKI"] = "en_KI";
    LocalizationModelValue["EnKN"] = "en_KN";
    LocalizationModelValue["EnKY"] = "en_KY";
    LocalizationModelValue["EnLC"] = "en_LC";
    LocalizationModelValue["EnLR"] = "en_LR";
    LocalizationModelValue["EnLS"] = "en_LS";
    LocalizationModelValue["EnMF"] = "en_MF";
    LocalizationModelValue["EnMG"] = "en_MG";
    LocalizationModelValue["EnMH"] = "en_MH";
    LocalizationModelValue["EnMO"] = "en_MO";
    LocalizationModelValue["EnMP"] = "en_MP";
    LocalizationModelValue["EnMS"] = "en_MS";
    LocalizationModelValue["EnMT"] = "en_MT";
    LocalizationModelValue["EnMU"] = "en_MU";
    LocalizationModelValue["EnMW"] = "en_MW";
    LocalizationModelValue["EnMY"] = "en_MY";
    LocalizationModelValue["EnNA"] = "en_NA";
    LocalizationModelValue["EnNF"] = "en_NF";
    LocalizationModelValue["EnNG"] = "en_NG";
    LocalizationModelValue["EnNL"] = "en_NL";
    LocalizationModelValue["EnNR"] = "en_NR";
    LocalizationModelValue["EnNU"] = "en_NU";
    LocalizationModelValue["EnNZ"] = "en_NZ";
    LocalizationModelValue["EnPG"] = "en_PG";
    LocalizationModelValue["EnPH"] = "en_PH";
    LocalizationModelValue["EnPK"] = "en_PK";
    LocalizationModelValue["EnPN"] = "en_PN";
    LocalizationModelValue["EnPR"] = "en_PR";
    LocalizationModelValue["EnPW"] = "en_PW";
    LocalizationModelValue["EnRW"] = "en_RW";
    LocalizationModelValue["EnSB"] = "en_SB";
    LocalizationModelValue["EnSC"] = "en_SC";
    LocalizationModelValue["EnSD"] = "en_SD";
    LocalizationModelValue["EnSG"] = "en_SG";
    LocalizationModelValue["EnSH"] = "en_SH";
    LocalizationModelValue["EnSL"] = "en_SL";
    LocalizationModelValue["EnSS"] = "en_SS";
    LocalizationModelValue["EnSX"] = "en_SX";
    LocalizationModelValue["EnSZ"] = "en_SZ";
    LocalizationModelValue["EnTC"] = "en_TC";
    LocalizationModelValue["EnTK"] = "en_TK";
    LocalizationModelValue["EnTO"] = "en_TO";
    LocalizationModelValue["EnTT"] = "en_TT";
    LocalizationModelValue["EnTV"] = "en_TV";
    LocalizationModelValue["EnTZ"] = "en_TZ";
    LocalizationModelValue["EnUG"] = "en_UG";
    LocalizationModelValue["EnUM"] = "en_UM";
    LocalizationModelValue["EnUS"] = "en_US";
    LocalizationModelValue["EnVC"] = "en_VC";
    LocalizationModelValue["EnVG"] = "en_VG";
    LocalizationModelValue["EnVI"] = "en_VI";
    LocalizationModelValue["EnVU"] = "en_VU";
    LocalizationModelValue["EnWS"] = "en_WS";
    LocalizationModelValue["EnZA"] = "en_ZA";
    LocalizationModelValue["EnZM"] = "en_ZM";
    LocalizationModelValue["EnZW"] = "en_ZW";
    LocalizationModelValue["EsAR"] = "es_AR";
    LocalizationModelValue["EsBO"] = "es_BO";
    LocalizationModelValue["EsBZ"] = "es_BZ";
    LocalizationModelValue["EsCL"] = "es_CL";
    LocalizationModelValue["EsCO"] = "es_CO";
    LocalizationModelValue["EsCR"] = "es_CR";
    LocalizationModelValue["EsCU"] = "es_CU";
    LocalizationModelValue["EsDO"] = "es_DO";
    LocalizationModelValue["EsEA"] = "es_EA";
    LocalizationModelValue["EsEC"] = "es_EC";
    LocalizationModelValue["EsEH"] = "es_EH";
    LocalizationModelValue["ESES"] = "es_ES";
    LocalizationModelValue["EsGQ"] = "es_GQ";
    LocalizationModelValue["EsGT"] = "es_GT";
    LocalizationModelValue["EsHN"] = "es_HN";
    LocalizationModelValue["EsIC"] = "es_IC";
    LocalizationModelValue["EsLA"] = "es_LA";
    LocalizationModelValue["EsMX"] = "es_MX";
    LocalizationModelValue["EsNI"] = "es_NI";
    LocalizationModelValue["EsPA"] = "es_PA";
    LocalizationModelValue["EsPE"] = "es_PE";
    LocalizationModelValue["EsPH"] = "es_PH";
    LocalizationModelValue["EsPR"] = "es_PR";
    LocalizationModelValue["EsPY"] = "es_PY";
    LocalizationModelValue["EsSV"] = "es_SV";
    LocalizationModelValue["EsUS"] = "es_US";
    LocalizationModelValue["EsUY"] = "es_UY";
    LocalizationModelValue["EsVE"] = "es_VE";
    LocalizationModelValue["EtEE"] = "et_EE";
    LocalizationModelValue["FaAF"] = "fa_AF";
    LocalizationModelValue["FaIR"] = "fa_IR";
    LocalizationModelValue["FanGA"] = "fan_GA";
    LocalizationModelValue["FfCM"] = "ff_CM";
    LocalizationModelValue["FfGN"] = "ff_GN";
    LocalizationModelValue["FfMR"] = "ff_MR";
    LocalizationModelValue["FfSN"] = "ff_SN";
    LocalizationModelValue["FfBF"] = "ff_BF";
    LocalizationModelValue["FIFI"] = "fi_FI";
    LocalizationModelValue["FJFJ"] = "fj_FJ";
    LocalizationModelValue["FOFO"] = "fo_FO";
    LocalizationModelValue["FrBE"] = "fr_BE";
    LocalizationModelValue["FrBF"] = "fr_BF";
    LocalizationModelValue["FrBI"] = "fr_BI";
    LocalizationModelValue["FrBJ"] = "fr_BJ";
    LocalizationModelValue["FrBL"] = "fr_BL";
    LocalizationModelValue["FrCA"] = "fr_CA";
    LocalizationModelValue["FrCD"] = "fr_CD";
    LocalizationModelValue["FrCF"] = "fr_CF";
    LocalizationModelValue["FrCG"] = "fr_CG";
    LocalizationModelValue["FrCH"] = "fr_CH";
    LocalizationModelValue["FrCI"] = "fr_CI";
    LocalizationModelValue["FrCM"] = "fr_CM";
    LocalizationModelValue["FrDJ"] = "fr_DJ";
    LocalizationModelValue["FrDZ"] = "fr_DZ";
    LocalizationModelValue["FRFR"] = "fr_FR";
    LocalizationModelValue["FrGA"] = "fr_GA";
    LocalizationModelValue["FrGF"] = "fr_GF";
    LocalizationModelValue["FrGG"] = "fr_GG";
    LocalizationModelValue["FrGN"] = "fr_GN";
    LocalizationModelValue["FrGP"] = "fr_GP";
    LocalizationModelValue["FrGQ"] = "fr_GQ";
    LocalizationModelValue["FrHT"] = "fr_HT";
    LocalizationModelValue["FrKM"] = "fr_KM";
    LocalizationModelValue["FrJE"] = "fr_JE";
    LocalizationModelValue["FrLU"] = "fr_LU";
    LocalizationModelValue["FrLB"] = "fr_LB";
    LocalizationModelValue["FrMA"] = "fr_MA";
    LocalizationModelValue["FrMC"] = "fr_MC";
    LocalizationModelValue["FrMF"] = "fr_MF";
    LocalizationModelValue["FrMG"] = "fr_MG";
    LocalizationModelValue["FrML"] = "fr_ML";
    LocalizationModelValue["FrMQ"] = "fr_MQ";
    LocalizationModelValue["FrMR"] = "fr_MR";
    LocalizationModelValue["FrMU"] = "fr_MU";
    LocalizationModelValue["FrNC"] = "fr_NC";
    LocalizationModelValue["FrNE"] = "fr_NE";
    LocalizationModelValue["FrPF"] = "fr_PF";
    LocalizationModelValue["FrPM"] = "fr_PM";
    LocalizationModelValue["FrRE"] = "fr_RE";
    LocalizationModelValue["FrRW"] = "fr_RW";
    LocalizationModelValue["FrSC"] = "fr_SC";
    LocalizationModelValue["FrSN"] = "fr_SN";
    LocalizationModelValue["FrSY"] = "fr_SY";
    LocalizationModelValue["FrTD"] = "fr_TD";
    LocalizationModelValue["FrTF"] = "fr_TF";
    LocalizationModelValue["FrTG"] = "fr_TG";
    LocalizationModelValue["FrTN"] = "fr_TN";
    LocalizationModelValue["FrVU"] = "fr_VU";
    LocalizationModelValue["FrVA"] = "fr_VA";
    LocalizationModelValue["FrWF"] = "fr_WF";
    LocalizationModelValue["FrYT"] = "fr_YT";
    LocalizationModelValue["GaIE"] = "ga_IE";
    LocalizationModelValue["GnPY"] = "gn_PY";
    LocalizationModelValue["GnAR"] = "gn_AR";
    LocalizationModelValue["GuIN"] = "gu_IN";
    LocalizationModelValue["GvIM"] = "gv_IM";
    LocalizationModelValue["HeIL"] = "he_IL";
    LocalizationModelValue["HiIN"] = "hi_IN";
    LocalizationModelValue["HrBA"] = "hr_BA";
    LocalizationModelValue["HRHR"] = "hr_HR";
    LocalizationModelValue["HrME"] = "hr_ME";
    LocalizationModelValue["HTHT"] = "ht_HT";
    LocalizationModelValue["HUHU"] = "hu_HU";
    LocalizationModelValue["HyAM"] = "hy_AM";
    LocalizationModelValue["HyCY"] = "hy_CY";
    LocalizationModelValue["IDID"] = "id_ID";
    LocalizationModelValue["ISIS"] = "is_IS";
    LocalizationModelValue["ItCH"] = "it_CH";
    LocalizationModelValue["ITIT"] = "it_IT";
    LocalizationModelValue["ItSM"] = "it_SM";
    LocalizationModelValue["ItVA"] = "it_VA";
    LocalizationModelValue["JaJP"] = "ja_JP";
    LocalizationModelValue["KaGE"] = "ka_GE";
    LocalizationModelValue["KgCD"] = "kg_CD";
    LocalizationModelValue["KkKZ"] = "kk_KZ";
    LocalizationModelValue["KlGL"] = "kl_GL";
    LocalizationModelValue["KmKH"] = "km_KH";
    LocalizationModelValue["KoKP"] = "ko_KP";
    LocalizationModelValue["KoKR"] = "ko_KR";
    LocalizationModelValue["KuIQ"] = "ku_IQ";
    LocalizationModelValue["KyKG"] = "ky_KG";
    LocalizationModelValue["LaVA"] = "la_VA";
    LocalizationModelValue["LbLU"] = "lb_LU";
    LocalizationModelValue["LnAO"] = "ln_AO";
    LocalizationModelValue["LnCD"] = "ln_CD";
    LocalizationModelValue["LnCF"] = "ln_CF";
    LocalizationModelValue["LnCG"] = "ln_CG";
    LocalizationModelValue["LoLA"] = "lo_LA";
    LocalizationModelValue["LTLT"] = "lt_LT";
    LocalizationModelValue["LuCD"] = "lu_CD";
    LocalizationModelValue["LVLV"] = "lv_LV";
    LocalizationModelValue["MGMG"] = "mg_MG";
    LocalizationModelValue["MHMH"] = "mh_MH";
    LocalizationModelValue["MiNZ"] = "mi_NZ";
    LocalizationModelValue["MKMK"] = "mk_MK";
    LocalizationModelValue["MNMN"] = "mn_MN";
    LocalizationModelValue["MrIN"] = "mr_IN";
    LocalizationModelValue["MsBN"] = "ms_BN";
    LocalizationModelValue["MsMY"] = "ms_MY";
    LocalizationModelValue["MsSG"] = "ms_SG";
    LocalizationModelValue["MTMT"] = "mt_MT";
    LocalizationModelValue["MyMM"] = "my_MM";
    LocalizationModelValue["NbNO"] = "nb_NO";
    LocalizationModelValue["NbBV"] = "nb_BV";
    LocalizationModelValue["NbZW"] = "nb_ZW";
    LocalizationModelValue["NeNP"] = "ne_NP";
    LocalizationModelValue["NlAW"] = "nl_AW";
    LocalizationModelValue["NlBE"] = "nl_BE";
    LocalizationModelValue["NlBQ"] = "nl_BQ";
    LocalizationModelValue["NlCW"] = "nl_CW";
    LocalizationModelValue["NLNL"] = "nl_NL";
    LocalizationModelValue["NlSR"] = "nl_SR";
    LocalizationModelValue["NlSX"] = "nl_SX";
    LocalizationModelValue["NlMF"] = "nl_MF";
    LocalizationModelValue["NnNO"] = "nn_NO";
    LocalizationModelValue["NnBV"] = "nn_BV";
    LocalizationModelValue["NONO"] = "no_NO";
    LocalizationModelValue["NoBV"] = "no_BV";
    LocalizationModelValue["NoSJ"] = "no_SJ";
    LocalizationModelValue["NrZA"] = "nr_ZA";
    LocalizationModelValue["NyMW"] = "ny_MW";
    LocalizationModelValue["PaIN"] = "pa_IN";
    LocalizationModelValue["PaPK"] = "pa_PK";
    LocalizationModelValue["PLPL"] = "pl_PL";
    LocalizationModelValue["PsAF"] = "ps_AF";
    LocalizationModelValue["PtAO"] = "pt_AO";
    LocalizationModelValue["PtBR"] = "pt_BR";
    LocalizationModelValue["PtCH"] = "pt_CH";
    LocalizationModelValue["PtCV"] = "pt_CV";
    LocalizationModelValue["PtGQ"] = "pt_GQ";
    LocalizationModelValue["PtGW"] = "pt_GW";
    LocalizationModelValue["PtLU"] = "pt_LU";
    LocalizationModelValue["PtMO"] = "pt_MO";
    LocalizationModelValue["PtMZ"] = "pt_MZ";
    LocalizationModelValue["PTPT"] = "pt_PT";
    LocalizationModelValue["PtST"] = "pt_ST";
    LocalizationModelValue["PtTL"] = "pt_TL";
    LocalizationModelValue["QuBO"] = "qu_BO";
    LocalizationModelValue["QuEC"] = "qu_EC";
    LocalizationModelValue["QuPE"] = "qu_PE";
    LocalizationModelValue["RarCK"] = "rar_CK";
    LocalizationModelValue["RmCH"] = "rm_CH";
    LocalizationModelValue["RupMK"] = "rup_MK";
    LocalizationModelValue["RoMD"] = "ro_MD";
    LocalizationModelValue["RORO"] = "ro_RO";
    LocalizationModelValue["RuBY"] = "ru_BY";
    LocalizationModelValue["RuKG"] = "ru_KG";
    LocalizationModelValue["RuKZ"] = "ru_KZ";
    LocalizationModelValue["RuMD"] = "ru_MD";
    LocalizationModelValue["RURU"] = "ru_RU";
    LocalizationModelValue["RuUA"] = "ru_UA";
    LocalizationModelValue["RuAQ"] = "ru_AQ";
    LocalizationModelValue["RuTJ"] = "ru_TJ";
    LocalizationModelValue["RuTM"] = "ru_TM";
    LocalizationModelValue["RuUZ"] = "ru_UZ";
    LocalizationModelValue["RWRW"] = "rw_RW";
    LocalizationModelValue["SESE"] = "se_SE";
    LocalizationModelValue["SgCF"] = "sg_CF";
    LocalizationModelValue["SiLK"] = "si_LK";
    LocalizationModelValue["SKSK"] = "sk_SK";
    LocalizationModelValue["SlSI"] = "sl_SI";
    LocalizationModelValue["SmAS"] = "sm_AS";
    LocalizationModelValue["SmWS"] = "sm_WS";
    LocalizationModelValue["SnZW"] = "sn_ZW";
    LocalizationModelValue["SoDJ"] = "so_DJ";
    LocalizationModelValue["SoET"] = "so_ET";
    LocalizationModelValue["SoKE"] = "so_KE";
    LocalizationModelValue["SOSO"] = "so_SO";
    LocalizationModelValue["SqAL"] = "sq_AL";
    LocalizationModelValue["SqME"] = "sq_ME";
    LocalizationModelValue["SqXK"] = "sq_XK";
    LocalizationModelValue["SrBA"] = "sr_BA";
    LocalizationModelValue["SrME"] = "sr_ME";
    LocalizationModelValue["SrRS"] = "sr_RS";
    LocalizationModelValue["SrXK"] = "sr_XK";
    LocalizationModelValue["SsSZ"] = "ss_SZ";
    LocalizationModelValue["SsZA"] = "ss_ZA";
    LocalizationModelValue["SvAX"] = "sv_AX";
    LocalizationModelValue["SvFI"] = "sv_FI";
    LocalizationModelValue["SvSE"] = "sv_SE";
    LocalizationModelValue["SwKE"] = "sw_KE";
    LocalizationModelValue["SwTZ"] = "sw_TZ";
    LocalizationModelValue["SwUG"] = "sw_UG";
    LocalizationModelValue["SwCD"] = "sw_CD";
    LocalizationModelValue["TaIN"] = "ta_IN";
    LocalizationModelValue["TaMY"] = "ta_MY";
    LocalizationModelValue["TaSG"] = "ta_SG";
    LocalizationModelValue["TaLK"] = "ta_LK";
    LocalizationModelValue["TeIN"] = "te_IN";
    LocalizationModelValue["TgTJ"] = "tg_TJ";
    LocalizationModelValue["THTH"] = "th_TH";
    LocalizationModelValue["TiER"] = "ti_ER";
    LocalizationModelValue["TiET"] = "ti_ET";
    LocalizationModelValue["TigER"] = "tig_ER";
    LocalizationModelValue["TkTM"] = "tk_TM";
    LocalizationModelValue["TkAF"] = "tk_AF";
    LocalizationModelValue["TnBW"] = "tn_BW";
    LocalizationModelValue["TnZA"] = "tn_ZA";
    LocalizationModelValue["TOTO"] = "to_TO";
    LocalizationModelValue["TrCY"] = "tr_CY";
    LocalizationModelValue["TRTR"] = "tr_TR";
    LocalizationModelValue["TsZA"] = "ts_ZA";
    LocalizationModelValue["UkUA"] = "uk_UA";
    LocalizationModelValue["UrIN"] = "ur_IN";
    LocalizationModelValue["UrPK"] = "ur_PK";
    LocalizationModelValue["UzAF"] = "uz_AF";
    LocalizationModelValue["UZUZ"] = "uz_UZ";
    LocalizationModelValue["VeZA"] = "ve_ZA";
    LocalizationModelValue["ViVN"] = "vi_VN";
    LocalizationModelValue["XhZA"] = "xh_ZA";
    LocalizationModelValue["ZhCN"] = "zh_CN";
    LocalizationModelValue["ZhHK"] = "zh_HK";
    LocalizationModelValue["ZhMO"] = "zh_MO";
    LocalizationModelValue["ZhSG"] = "zh_SG";
    LocalizationModelValue["ZhTW"] = "zh_TW";
    LocalizationModelValue["ZuZA"] = "zu_ZA";
    LocalizationModelValue["UnmappedValue"] = "unmapped_value";
})(LocalizationModelValue || (exports.LocalizationModelValue = LocalizationModelValue = {}));
/** @internal */
exports.LocalizationModel4$inboundSchema = z.object({});
/** @internal */
exports.LocalizationModel4$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 LocalizationModel4$;
(function (LocalizationModel4$) {
    /** @deprecated use `LocalizationModel4$inboundSchema` instead. */
    LocalizationModel4$.inboundSchema = exports.LocalizationModel4$inboundSchema;
    /** @deprecated use `LocalizationModel4$outboundSchema` instead. */
    LocalizationModel4$.outboundSchema = exports.LocalizationModel4$outboundSchema;
})(LocalizationModel4$ || (exports.LocalizationModel4$ = LocalizationModel4$ = {}));
function localizationModel4ToJSON(localizationModel4) {
    return JSON.stringify(exports.LocalizationModel4$outboundSchema.parse(localizationModel4));
}
exports.localizationModel4ToJSON = localizationModel4ToJSON;
function localizationModel4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LocalizationModel4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LocalizationModel4' from JSON`);
}
exports.localizationModel4FromJSON = localizationModel4FromJSON;
/** @internal */
exports.LocalizationModelSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LocalizationModel4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LocalizationModelSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LocalizationModel4$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 LocalizationModelSourceValue$;
(function (LocalizationModelSourceValue$) {
    /** @deprecated use `LocalizationModelSourceValue$inboundSchema` instead. */
    LocalizationModelSourceValue$.inboundSchema = exports.LocalizationModelSourceValue$inboundSchema;
    /** @deprecated use `LocalizationModelSourceValue$outboundSchema` instead. */
    LocalizationModelSourceValue$.outboundSchema = exports.LocalizationModelSourceValue$outboundSchema;
})(LocalizationModelSourceValue$ || (exports.LocalizationModelSourceValue$ = LocalizationModelSourceValue$ = {}));
function localizationModelSourceValueToJSON(localizationModelSourceValue) {
    return JSON.stringify(exports.LocalizationModelSourceValue$outboundSchema.parse(localizationModelSourceValue));
}
exports.localizationModelSourceValueToJSON = localizationModelSourceValueToJSON;
function localizationModelSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LocalizationModelSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LocalizationModelSourceValue' from JSON`);
}
exports.localizationModelSourceValueFromJSON = localizationModelSourceValueFromJSON;
/** @internal */
exports.LocalizationModelValue$inboundSchema = z
    .union([
    z.nativeEnum(LocalizationModelValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LocalizationModelValue$outboundSchema = z.union([
    z.nativeEnum(LocalizationModelValue),
    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 LocalizationModelValue$;
(function (LocalizationModelValue$) {
    /** @deprecated use `LocalizationModelValue$inboundSchema` instead. */
    LocalizationModelValue$.inboundSchema = exports.LocalizationModelValue$inboundSchema;
    /** @deprecated use `LocalizationModelValue$outboundSchema` instead. */
    LocalizationModelValue$.outboundSchema = exports.LocalizationModelValue$outboundSchema;
})(LocalizationModelValue$ || (exports.LocalizationModelValue$ = LocalizationModelValue$ = {}));
/** @internal */
exports.LocalizationModelLanguage$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LocalizationModel4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LocalizationModelValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LocalizationModelLanguage$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LocalizationModel4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LocalizationModelValue$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 LocalizationModelLanguage$;
(function (LocalizationModelLanguage$) {
    /** @deprecated use `LocalizationModelLanguage$inboundSchema` instead. */
    LocalizationModelLanguage$.inboundSchema = exports.LocalizationModelLanguage$inboundSchema;
    /** @deprecated use `LocalizationModelLanguage$outboundSchema` instead. */
    LocalizationModelLanguage$.outboundSchema = exports.LocalizationModelLanguage$outboundSchema;
})(LocalizationModelLanguage$ || (exports.LocalizationModelLanguage$ = LocalizationModelLanguage$ = {}));
function localizationModelLanguageToJSON(localizationModelLanguage) {
    return JSON.stringify(exports.LocalizationModelLanguage$outboundSchema.parse(localizationModelLanguage));
}
exports.localizationModelLanguageToJSON = localizationModelLanguageToJSON;
function localizationModelLanguageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LocalizationModelLanguage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LocalizationModelLanguage' from JSON`);
}
exports.localizationModelLanguageFromJSON = localizationModelLanguageFromJSON;
/** @internal */
exports.LocalizationModel$inboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    language: z.nullable(z.lazy(() => exports.LocalizationModelLanguage$inboundSchema))
        .optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: z.nullable(z.string()).optional(),
});
/** @internal */
exports.LocalizationModel$outboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    language: z.nullable(z.lazy(() => exports.LocalizationModelLanguage$outboundSchema))
        .optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: 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 LocalizationModel$;
(function (LocalizationModel$) {
    /** @deprecated use `LocalizationModel$inboundSchema` instead. */
    LocalizationModel$.inboundSchema = exports.LocalizationModel$inboundSchema;
    /** @deprecated use `LocalizationModel$outboundSchema` instead. */
    LocalizationModel$.outboundSchema = exports.LocalizationModel$outboundSchema;
})(LocalizationModel$ || (exports.LocalizationModel$ = LocalizationModel$ = {}));
function localizationModelToJSON(localizationModel) {
    return JSON.stringify(exports.LocalizationModel$outboundSchema.parse(localizationModel));
}
exports.localizationModelToJSON = localizationModelToJSON;
function localizationModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LocalizationModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LocalizationModel' from JSON`);
}
exports.localizationModelFromJSON = localizationModelFromJSON;
//# sourceMappingURL=localizationmodel.js.map