"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.LmsCreateContentRequestDto$ = exports.LmsCreateContentRequestDto$outboundSchema = exports.LmsCreateContentRequestDto$inboundSchema = exports.LmsCreateContentRequestDtoContentType$ = exports.LmsCreateContentRequestDtoContentType$outboundSchema = exports.LmsCreateContentRequestDtoContentType$inboundSchema = exports.LmsCreateContentRequestDtoSchemasValue$ = exports.LmsCreateContentRequestDtoSchemasValue$outboundSchema = exports.LmsCreateContentRequestDtoSchemasValue$inboundSchema = exports.LmsCreateContentRequestDtoSchemasSourceValue$ = exports.LmsCreateContentRequestDtoSchemasSourceValue$outboundSchema = exports.LmsCreateContentRequestDtoSchemasSourceValue$inboundSchema = exports.LmsCreateContentRequestDtoSchemas4$ = exports.LmsCreateContentRequestDtoSchemas4$outboundSchema = exports.LmsCreateContentRequestDtoSchemas4$inboundSchema = exports.LmsCreateContentRequestDtoContentLaunchMethod$ = exports.LmsCreateContentRequestDtoContentLaunchMethod$outboundSchema = exports.LmsCreateContentRequestDtoContentLaunchMethod$inboundSchema = exports.LmsCreateContentRequestDtoValue$ = exports.LmsCreateContentRequestDtoValue$outboundSchema = exports.LmsCreateContentRequestDtoValue$inboundSchema = exports.LmsCreateContentRequestDtoSourceValue$ = exports.LmsCreateContentRequestDtoSourceValue$outboundSchema = exports.LmsCreateContentRequestDtoSourceValue$inboundSchema = exports.LmsCreateContentRequestDto4$ = exports.LmsCreateContentRequestDto4$outboundSchema = exports.LmsCreateContentRequestDto4$inboundSchema = exports.LmsCreateContentRequestDtoActive$ = exports.LmsCreateContentRequestDtoActive$outboundSchema = exports.LmsCreateContentRequestDtoActive$inboundSchema = exports.LmsCreateContentRequestDto2$ = exports.LmsCreateContentRequestDto2$outboundSchema = exports.LmsCreateContentRequestDto2$inboundSchema = exports.LmsCreateContentRequestDtoSchemasValue = exports.LmsCreateContentRequestDtoValue = exports.LmsCreateContentRequestDto2 = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
const contentlanguageenum_js_1 = require("./contentlanguageenum.js");
const createcategoriesapimodel_js_1 = require("./createcategoriesapimodel.js");
var LmsCreateContentRequestDto2;
(function (LmsCreateContentRequestDto2) {
    LmsCreateContentRequestDto2["True"] = "true";
    LmsCreateContentRequestDto2["False"] = "false";
})(LmsCreateContentRequestDto2 || (exports.LmsCreateContentRequestDto2 = LmsCreateContentRequestDto2 = {}));
var LmsCreateContentRequestDtoValue;
(function (LmsCreateContentRequestDtoValue) {
    LmsCreateContentRequestDtoValue["Automatic"] = "automatic";
    LmsCreateContentRequestDtoValue["Browser"] = "browser";
})(LmsCreateContentRequestDtoValue || (exports.LmsCreateContentRequestDtoValue = LmsCreateContentRequestDtoValue = {}));
var LmsCreateContentRequestDtoSchemasValue;
(function (LmsCreateContentRequestDtoSchemasValue) {
    LmsCreateContentRequestDtoSchemasValue["Video"] = "video";
    LmsCreateContentRequestDtoSchemasValue["Quiz"] = "quiz";
    LmsCreateContentRequestDtoSchemasValue["Document"] = "document";
})(LmsCreateContentRequestDtoSchemasValue || (exports.LmsCreateContentRequestDtoSchemasValue = LmsCreateContentRequestDtoSchemasValue = {}));
/** @internal */
exports.LmsCreateContentRequestDto2$inboundSchema = z.nativeEnum(LmsCreateContentRequestDto2);
/** @internal */
exports.LmsCreateContentRequestDto2$outboundSchema = exports.LmsCreateContentRequestDto2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateContentRequestDto2$;
(function (LmsCreateContentRequestDto2$) {
    /** @deprecated use `LmsCreateContentRequestDto2$inboundSchema` instead. */
    LmsCreateContentRequestDto2$.inboundSchema = exports.LmsCreateContentRequestDto2$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDto2$outboundSchema` instead. */
    LmsCreateContentRequestDto2$.outboundSchema = exports.LmsCreateContentRequestDto2$outboundSchema;
})(LmsCreateContentRequestDto2$ || (exports.LmsCreateContentRequestDto2$ = LmsCreateContentRequestDto2$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoActive$inboundSchema = z.union([z.boolean(), exports.LmsCreateContentRequestDto2$inboundSchema]);
/** @internal */
exports.LmsCreateContentRequestDtoActive$outboundSchema = z.union([z.boolean(), exports.LmsCreateContentRequestDto2$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsCreateContentRequestDtoActive$;
(function (LmsCreateContentRequestDtoActive$) {
    /** @deprecated use `LmsCreateContentRequestDtoActive$inboundSchema` instead. */
    LmsCreateContentRequestDtoActive$.inboundSchema = exports.LmsCreateContentRequestDtoActive$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoActive$outboundSchema` instead. */
    LmsCreateContentRequestDtoActive$.outboundSchema = exports.LmsCreateContentRequestDtoActive$outboundSchema;
})(LmsCreateContentRequestDtoActive$ || (exports.LmsCreateContentRequestDtoActive$ = LmsCreateContentRequestDtoActive$ = {}));
/** @internal */
exports.LmsCreateContentRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.LmsCreateContentRequestDto4$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 LmsCreateContentRequestDto4$;
(function (LmsCreateContentRequestDto4$) {
    /** @deprecated use `LmsCreateContentRequestDto4$inboundSchema` instead. */
    LmsCreateContentRequestDto4$.inboundSchema = exports.LmsCreateContentRequestDto4$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDto4$outboundSchema` instead. */
    LmsCreateContentRequestDto4$.outboundSchema = exports.LmsCreateContentRequestDto4$outboundSchema;
})(LmsCreateContentRequestDto4$ || (exports.LmsCreateContentRequestDto4$ = LmsCreateContentRequestDto4$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LmsCreateContentRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LmsCreateContentRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LmsCreateContentRequestDto4$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 LmsCreateContentRequestDtoSourceValue$;
(function (LmsCreateContentRequestDtoSourceValue$) {
    /** @deprecated use `LmsCreateContentRequestDtoSourceValue$inboundSchema` instead. */
    LmsCreateContentRequestDtoSourceValue$.inboundSchema = exports.LmsCreateContentRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoSourceValue$outboundSchema` instead. */
    LmsCreateContentRequestDtoSourceValue$.outboundSchema = exports.LmsCreateContentRequestDtoSourceValue$outboundSchema;
})(LmsCreateContentRequestDtoSourceValue$ || (exports.LmsCreateContentRequestDtoSourceValue$ = LmsCreateContentRequestDtoSourceValue$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(LmsCreateContentRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LmsCreateContentRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(LmsCreateContentRequestDtoValue),
    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 LmsCreateContentRequestDtoValue$;
(function (LmsCreateContentRequestDtoValue$) {
    /** @deprecated use `LmsCreateContentRequestDtoValue$inboundSchema` instead. */
    LmsCreateContentRequestDtoValue$.inboundSchema = exports.LmsCreateContentRequestDtoValue$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoValue$outboundSchema` instead. */
    LmsCreateContentRequestDtoValue$.outboundSchema = exports.LmsCreateContentRequestDtoValue$outboundSchema;
})(LmsCreateContentRequestDtoValue$ || (exports.LmsCreateContentRequestDtoValue$ = LmsCreateContentRequestDtoValue$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoContentLaunchMethod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LmsCreateContentRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsCreateContentRequestDtoValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LmsCreateContentRequestDtoContentLaunchMethod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LmsCreateContentRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsCreateContentRequestDtoValue$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 LmsCreateContentRequestDtoContentLaunchMethod$;
(function (LmsCreateContentRequestDtoContentLaunchMethod$) {
    /** @deprecated use `LmsCreateContentRequestDtoContentLaunchMethod$inboundSchema` instead. */
    LmsCreateContentRequestDtoContentLaunchMethod$.inboundSchema = exports.LmsCreateContentRequestDtoContentLaunchMethod$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoContentLaunchMethod$outboundSchema` instead. */
    LmsCreateContentRequestDtoContentLaunchMethod$.outboundSchema = exports.LmsCreateContentRequestDtoContentLaunchMethod$outboundSchema;
})(LmsCreateContentRequestDtoContentLaunchMethod$ || (exports.LmsCreateContentRequestDtoContentLaunchMethod$ = LmsCreateContentRequestDtoContentLaunchMethod$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoSchemas4$inboundSchema = z.object({});
/** @internal */
exports.LmsCreateContentRequestDtoSchemas4$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 LmsCreateContentRequestDtoSchemas4$;
(function (LmsCreateContentRequestDtoSchemas4$) {
    /** @deprecated use `LmsCreateContentRequestDtoSchemas4$inboundSchema` instead. */
    LmsCreateContentRequestDtoSchemas4$.inboundSchema = exports.LmsCreateContentRequestDtoSchemas4$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoSchemas4$outboundSchema` instead. */
    LmsCreateContentRequestDtoSchemas4$.outboundSchema = exports.LmsCreateContentRequestDtoSchemas4$outboundSchema;
})(LmsCreateContentRequestDtoSchemas4$ || (exports.LmsCreateContentRequestDtoSchemas4$ = LmsCreateContentRequestDtoSchemas4$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LmsCreateContentRequestDtoSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LmsCreateContentRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LmsCreateContentRequestDtoSchemas4$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 LmsCreateContentRequestDtoSchemasSourceValue$;
(function (LmsCreateContentRequestDtoSchemasSourceValue$) {
    /** @deprecated use `LmsCreateContentRequestDtoSchemasSourceValue$inboundSchema` instead. */
    LmsCreateContentRequestDtoSchemasSourceValue$.inboundSchema = exports.LmsCreateContentRequestDtoSchemasSourceValue$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoSchemasSourceValue$outboundSchema` instead. */
    LmsCreateContentRequestDtoSchemasSourceValue$.outboundSchema = exports.LmsCreateContentRequestDtoSchemasSourceValue$outboundSchema;
})(LmsCreateContentRequestDtoSchemasSourceValue$ || (exports.LmsCreateContentRequestDtoSchemasSourceValue$ = LmsCreateContentRequestDtoSchemasSourceValue$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(LmsCreateContentRequestDtoSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LmsCreateContentRequestDtoSchemasValue$outboundSchema = z.union([
    z.nativeEnum(LmsCreateContentRequestDtoSchemasValue),
    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 LmsCreateContentRequestDtoSchemasValue$;
(function (LmsCreateContentRequestDtoSchemasValue$) {
    /** @deprecated use `LmsCreateContentRequestDtoSchemasValue$inboundSchema` instead. */
    LmsCreateContentRequestDtoSchemasValue$.inboundSchema = exports.LmsCreateContentRequestDtoSchemasValue$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoSchemasValue$outboundSchema` instead. */
    LmsCreateContentRequestDtoSchemasValue$.outboundSchema = exports.LmsCreateContentRequestDtoSchemasValue$outboundSchema;
})(LmsCreateContentRequestDtoSchemasValue$ || (exports.LmsCreateContentRequestDtoSchemasValue$ = LmsCreateContentRequestDtoSchemasValue$ = {}));
/** @internal */
exports.LmsCreateContentRequestDtoContentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LmsCreateContentRequestDtoSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsCreateContentRequestDtoSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LmsCreateContentRequestDtoContentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LmsCreateContentRequestDtoSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsCreateContentRequestDtoSchemasValue$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 LmsCreateContentRequestDtoContentType$;
(function (LmsCreateContentRequestDtoContentType$) {
    /** @deprecated use `LmsCreateContentRequestDtoContentType$inboundSchema` instead. */
    LmsCreateContentRequestDtoContentType$.inboundSchema = exports.LmsCreateContentRequestDtoContentType$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDtoContentType$outboundSchema` instead. */
    LmsCreateContentRequestDtoContentType$.outboundSchema = exports.LmsCreateContentRequestDtoContentType$outboundSchema;
})(LmsCreateContentRequestDtoContentType$ || (exports.LmsCreateContentRequestDtoContentType$ = LmsCreateContentRequestDtoContentType$ = {}));
/** @internal */
exports.LmsCreateContentRequestDto$inboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.LmsCreateContentRequestDto2$inboundSchema])).optional(),
    categories: z.nullable(z.array(createcategoriesapimodel_js_1.CreateCategoriesApiModel$inboundSchema))
        .optional(),
    content_launch_method: z.nullable(z.lazy(() => exports.LmsCreateContentRequestDtoContentLaunchMethod$inboundSchema)).optional(),
    content_type: z.nullable(z.lazy(() => exports.LmsCreateContentRequestDtoContentType$inboundSchema)).optional(),
    content_url: z.nullable(z.string()).optional(),
    course_ids: z.nullable(z.array(z.string())).optional(),
    cover_url: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    duration: z.nullable(z.string()).optional(),
    external_reference: z.nullable(z.string()).optional(),
    languages: z.nullable(z.array(contentlanguageenum_js_1.ContentLanguageEnum$inboundSchema)).optional(),
    order: z.nullable(z.number()).optional(),
    title: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "content_launch_method": "contentLaunchMethod",
        "content_type": "contentType",
        "content_url": "contentUrl",
        "course_ids": "courseIds",
        "cover_url": "coverUrl",
        "external_reference": "externalReference",
        "unified_custom_fields": "unifiedCustomFields",
    });
});
/** @internal */
exports.LmsCreateContentRequestDto$outboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.LmsCreateContentRequestDto2$outboundSchema])).optional(),
    categories: z.nullable(z.array(createcategoriesapimodel_js_1.CreateCategoriesApiModel$outboundSchema))
        .optional(),
    contentLaunchMethod: z.nullable(z.lazy(() => exports.LmsCreateContentRequestDtoContentLaunchMethod$outboundSchema)).optional(),
    contentType: z.nullable(z.lazy(() => exports.LmsCreateContentRequestDtoContentType$outboundSchema)).optional(),
    contentUrl: z.nullable(z.string()).optional(),
    courseIds: z.nullable(z.array(z.string())).optional(),
    coverUrl: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    duration: z.nullable(z.string()).optional(),
    externalReference: z.nullable(z.string()).optional(),
    languages: z.nullable(z.array(contentlanguageenum_js_1.ContentLanguageEnum$outboundSchema)).optional(),
    order: z.nullable(z.number()).optional(),
    title: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentLaunchMethod: "content_launch_method",
        contentType: "content_type",
        contentUrl: "content_url",
        courseIds: "course_ids",
        coverUrl: "cover_url",
        externalReference: "external_reference",
        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 LmsCreateContentRequestDto$;
(function (LmsCreateContentRequestDto$) {
    /** @deprecated use `LmsCreateContentRequestDto$inboundSchema` instead. */
    LmsCreateContentRequestDto$.inboundSchema = exports.LmsCreateContentRequestDto$inboundSchema;
    /** @deprecated use `LmsCreateContentRequestDto$outboundSchema` instead. */
    LmsCreateContentRequestDto$.outboundSchema = exports.LmsCreateContentRequestDto$outboundSchema;
})(LmsCreateContentRequestDto$ || (exports.LmsCreateContentRequestDto$ = LmsCreateContentRequestDto$ = {}));
//# sourceMappingURL=lmscreatecontentrequestdto.js.map