"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.CreateCategoriesApiModel$ = exports.CreateCategoriesApiModel$outboundSchema = exports.CreateCategoriesApiModel$inboundSchema = exports.CreateCategoriesApiModelLevel$ = exports.CreateCategoriesApiModelLevel$outboundSchema = exports.CreateCategoriesApiModelLevel$inboundSchema = exports.CreateCategoriesApiModelValue$ = exports.CreateCategoriesApiModelValue$outboundSchema = exports.CreateCategoriesApiModelValue$inboundSchema = exports.CreateCategoriesApiModelSourceValue$ = exports.CreateCategoriesApiModelSourceValue$outboundSchema = exports.CreateCategoriesApiModelSourceValue$inboundSchema = exports.CreateCategoriesApiModel4$ = exports.CreateCategoriesApiModel4$outboundSchema = exports.CreateCategoriesApiModel4$inboundSchema = exports.CreateCategoriesApiModelValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
var CreateCategoriesApiModelValue;
(function (CreateCategoriesApiModelValue) {
    CreateCategoriesApiModelValue["Primary"] = "primary";
    CreateCategoriesApiModelValue["Secondary"] = "secondary";
})(CreateCategoriesApiModelValue || (exports.CreateCategoriesApiModelValue = CreateCategoriesApiModelValue = {}));
/** @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$ = {}));
/** @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$ = {}));
/** @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.CreateCategoriesApiModelLevel$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.CreateCategoriesApiModelLevel$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 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$ = {}));
/** @internal */
exports.CreateCategoriesApiModel$inboundSchema = z.object({
    active: z.nullable(z.boolean()).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({
    active: z.nullable(z.boolean()).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$ = {}));
//# sourceMappingURL=createcategoriesapimodel.js.map