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