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