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