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