"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.LearningObjectTypeEnum$ = exports.LearningObjectTypeEnum$outboundSchema = exports.LearningObjectTypeEnum$inboundSchema = exports.LearningObjectTypeEnumValue$ = exports.LearningObjectTypeEnumValue$outboundSchema = exports.LearningObjectTypeEnumValue$inboundSchema = exports.LearningObjectTypeEnumSourceValue$ = exports.LearningObjectTypeEnumSourceValue$outboundSchema = exports.LearningObjectTypeEnumSourceValue$inboundSchema = exports.LearningObjectTypeEnum4$ = exports.LearningObjectTypeEnum4$outboundSchema = exports.LearningObjectTypeEnum4$inboundSchema = exports.LearningObjectTypeEnumValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
var LearningObjectTypeEnumValue;
(function (LearningObjectTypeEnumValue) {
    LearningObjectTypeEnumValue["Content"] = "content";
    LearningObjectTypeEnumValue["Course"] = "course";
    LearningObjectTypeEnumValue["Collection"] = "collection";
})(LearningObjectTypeEnumValue || (exports.LearningObjectTypeEnumValue = LearningObjectTypeEnumValue = {}));
/** @internal */
exports.LearningObjectTypeEnum4$inboundSchema = z.object({});
/** @internal */
exports.LearningObjectTypeEnum4$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 LearningObjectTypeEnum4$;
(function (LearningObjectTypeEnum4$) {
    /** @deprecated use `LearningObjectTypeEnum4$inboundSchema` instead. */
    LearningObjectTypeEnum4$.inboundSchema = exports.LearningObjectTypeEnum4$inboundSchema;
    /** @deprecated use `LearningObjectTypeEnum4$outboundSchema` instead. */
    LearningObjectTypeEnum4$.outboundSchema = exports.LearningObjectTypeEnum4$outboundSchema;
})(LearningObjectTypeEnum4$ || (exports.LearningObjectTypeEnum4$ = LearningObjectTypeEnum4$ = {}));
/** @internal */
exports.LearningObjectTypeEnumSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LearningObjectTypeEnum4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LearningObjectTypeEnumSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LearningObjectTypeEnum4$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 LearningObjectTypeEnumSourceValue$;
(function (LearningObjectTypeEnumSourceValue$) {
    /** @deprecated use `LearningObjectTypeEnumSourceValue$inboundSchema` instead. */
    LearningObjectTypeEnumSourceValue$.inboundSchema = exports.LearningObjectTypeEnumSourceValue$inboundSchema;
    /** @deprecated use `LearningObjectTypeEnumSourceValue$outboundSchema` instead. */
    LearningObjectTypeEnumSourceValue$.outboundSchema = exports.LearningObjectTypeEnumSourceValue$outboundSchema;
})(LearningObjectTypeEnumSourceValue$ || (exports.LearningObjectTypeEnumSourceValue$ = LearningObjectTypeEnumSourceValue$ = {}));
/** @internal */
exports.LearningObjectTypeEnumValue$inboundSchema = z
    .union([
    z.nativeEnum(LearningObjectTypeEnumValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LearningObjectTypeEnumValue$outboundSchema = z.union([
    z.nativeEnum(LearningObjectTypeEnumValue),
    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 LearningObjectTypeEnumValue$;
(function (LearningObjectTypeEnumValue$) {
    /** @deprecated use `LearningObjectTypeEnumValue$inboundSchema` instead. */
    LearningObjectTypeEnumValue$.inboundSchema = exports.LearningObjectTypeEnumValue$inboundSchema;
    /** @deprecated use `LearningObjectTypeEnumValue$outboundSchema` instead. */
    LearningObjectTypeEnumValue$.outboundSchema = exports.LearningObjectTypeEnumValue$outboundSchema;
})(LearningObjectTypeEnumValue$ || (exports.LearningObjectTypeEnumValue$ = LearningObjectTypeEnumValue$ = {}));
/** @internal */
exports.LearningObjectTypeEnum$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LearningObjectTypeEnum4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LearningObjectTypeEnumValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LearningObjectTypeEnum$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LearningObjectTypeEnum4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LearningObjectTypeEnumValue$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 LearningObjectTypeEnum$;
(function (LearningObjectTypeEnum$) {
    /** @deprecated use `LearningObjectTypeEnum$inboundSchema` instead. */
    LearningObjectTypeEnum$.inboundSchema = exports.LearningObjectTypeEnum$inboundSchema;
    /** @deprecated use `LearningObjectTypeEnum$outboundSchema` instead. */
    LearningObjectTypeEnum$.outboundSchema = exports.LearningObjectTypeEnum$outboundSchema;
})(LearningObjectTypeEnum$ || (exports.LearningObjectTypeEnum$ = LearningObjectTypeEnum$ = {}));
//# sourceMappingURL=learningobjecttypeenum.js.map