"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.LmsUpsertContentRequestDto$ = exports.LmsUpsertContentRequestDto$outboundSchema = exports.LmsUpsertContentRequestDto$inboundSchema = exports.LmsUpsertContentRequestDtoContentType$ = exports.LmsUpsertContentRequestDtoContentType$outboundSchema = exports.LmsUpsertContentRequestDtoContentType$inboundSchema = exports.LmsUpsertContentRequestDtoSchemasValue$ = exports.LmsUpsertContentRequestDtoSchemasValue$outboundSchema = exports.LmsUpsertContentRequestDtoSchemasValue$inboundSchema = exports.LmsUpsertContentRequestDtoSchemasSourceValue$ = exports.LmsUpsertContentRequestDtoSchemasSourceValue$outboundSchema = exports.LmsUpsertContentRequestDtoSchemasSourceValue$inboundSchema = exports.LmsUpsertContentRequestDtoSchemas4$ = exports.LmsUpsertContentRequestDtoSchemas4$outboundSchema = exports.LmsUpsertContentRequestDtoSchemas4$inboundSchema = exports.LmsUpsertContentRequestDtoContentLaunchMethod$ = exports.LmsUpsertContentRequestDtoContentLaunchMethod$outboundSchema = exports.LmsUpsertContentRequestDtoContentLaunchMethod$inboundSchema = exports.LmsUpsertContentRequestDtoValue$ = exports.LmsUpsertContentRequestDtoValue$outboundSchema = exports.LmsUpsertContentRequestDtoValue$inboundSchema = exports.LmsUpsertContentRequestDtoSourceValue$ = exports.LmsUpsertContentRequestDtoSourceValue$outboundSchema = exports.LmsUpsertContentRequestDtoSourceValue$inboundSchema = exports.LmsUpsertContentRequestDto4$ = exports.LmsUpsertContentRequestDto4$outboundSchema = exports.LmsUpsertContentRequestDto4$inboundSchema = exports.LmsUpsertContentRequestDtoActive$ = exports.LmsUpsertContentRequestDtoActive$outboundSchema = exports.LmsUpsertContentRequestDtoActive$inboundSchema = exports.LmsUpsertContentRequestDto2$ = exports.LmsUpsertContentRequestDto2$outboundSchema = exports.LmsUpsertContentRequestDto2$inboundSchema = exports.LmsUpsertContentRequestDtoSchemasValue = exports.LmsUpsertContentRequestDtoValue = exports.LmsUpsertContentRequestDto2 = 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 LmsUpsertContentRequestDto2;
(function (LmsUpsertContentRequestDto2) {
    LmsUpsertContentRequestDto2["True"] = "true";
    LmsUpsertContentRequestDto2["False"] = "false";
})(LmsUpsertContentRequestDto2 || (exports.LmsUpsertContentRequestDto2 = LmsUpsertContentRequestDto2 = {}));
var LmsUpsertContentRequestDtoValue;
(function (LmsUpsertContentRequestDtoValue) {
    LmsUpsertContentRequestDtoValue["Automatic"] = "automatic";
    LmsUpsertContentRequestDtoValue["Browser"] = "browser";
})(LmsUpsertContentRequestDtoValue || (exports.LmsUpsertContentRequestDtoValue = LmsUpsertContentRequestDtoValue = {}));
var LmsUpsertContentRequestDtoSchemasValue;
(function (LmsUpsertContentRequestDtoSchemasValue) {
    LmsUpsertContentRequestDtoSchemasValue["Video"] = "video";
    LmsUpsertContentRequestDtoSchemasValue["Quiz"] = "quiz";
    LmsUpsertContentRequestDtoSchemasValue["Document"] = "document";
})(LmsUpsertContentRequestDtoSchemasValue || (exports.LmsUpsertContentRequestDtoSchemasValue = LmsUpsertContentRequestDtoSchemasValue = {}));
/** @internal */
exports.LmsUpsertContentRequestDto2$inboundSchema = z.nativeEnum(LmsUpsertContentRequestDto2);
/** @internal */
exports.LmsUpsertContentRequestDto2$outboundSchema = exports.LmsUpsertContentRequestDto2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsUpsertContentRequestDto2$;
(function (LmsUpsertContentRequestDto2$) {
    /** @deprecated use `LmsUpsertContentRequestDto2$inboundSchema` instead. */
    LmsUpsertContentRequestDto2$.inboundSchema = exports.LmsUpsertContentRequestDto2$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDto2$outboundSchema` instead. */
    LmsUpsertContentRequestDto2$.outboundSchema = exports.LmsUpsertContentRequestDto2$outboundSchema;
})(LmsUpsertContentRequestDto2$ || (exports.LmsUpsertContentRequestDto2$ = LmsUpsertContentRequestDto2$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoActive$inboundSchema = z.union([z.boolean(), exports.LmsUpsertContentRequestDto2$inboundSchema]);
/** @internal */
exports.LmsUpsertContentRequestDtoActive$outboundSchema = z.union([z.boolean(), exports.LmsUpsertContentRequestDto2$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsUpsertContentRequestDtoActive$;
(function (LmsUpsertContentRequestDtoActive$) {
    /** @deprecated use `LmsUpsertContentRequestDtoActive$inboundSchema` instead. */
    LmsUpsertContentRequestDtoActive$.inboundSchema = exports.LmsUpsertContentRequestDtoActive$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoActive$outboundSchema` instead. */
    LmsUpsertContentRequestDtoActive$.outboundSchema = exports.LmsUpsertContentRequestDtoActive$outboundSchema;
})(LmsUpsertContentRequestDtoActive$ || (exports.LmsUpsertContentRequestDtoActive$ = LmsUpsertContentRequestDtoActive$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.LmsUpsertContentRequestDto4$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 LmsUpsertContentRequestDto4$;
(function (LmsUpsertContentRequestDto4$) {
    /** @deprecated use `LmsUpsertContentRequestDto4$inboundSchema` instead. */
    LmsUpsertContentRequestDto4$.inboundSchema = exports.LmsUpsertContentRequestDto4$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDto4$outboundSchema` instead. */
    LmsUpsertContentRequestDto4$.outboundSchema = exports.LmsUpsertContentRequestDto4$outboundSchema;
})(LmsUpsertContentRequestDto4$ || (exports.LmsUpsertContentRequestDto4$ = LmsUpsertContentRequestDto4$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LmsUpsertContentRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LmsUpsertContentRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LmsUpsertContentRequestDto4$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 LmsUpsertContentRequestDtoSourceValue$;
(function (LmsUpsertContentRequestDtoSourceValue$) {
    /** @deprecated use `LmsUpsertContentRequestDtoSourceValue$inboundSchema` instead. */
    LmsUpsertContentRequestDtoSourceValue$.inboundSchema = exports.LmsUpsertContentRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoSourceValue$outboundSchema` instead. */
    LmsUpsertContentRequestDtoSourceValue$.outboundSchema = exports.LmsUpsertContentRequestDtoSourceValue$outboundSchema;
})(LmsUpsertContentRequestDtoSourceValue$ || (exports.LmsUpsertContentRequestDtoSourceValue$ = LmsUpsertContentRequestDtoSourceValue$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(LmsUpsertContentRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LmsUpsertContentRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(LmsUpsertContentRequestDtoValue),
    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 LmsUpsertContentRequestDtoValue$;
(function (LmsUpsertContentRequestDtoValue$) {
    /** @deprecated use `LmsUpsertContentRequestDtoValue$inboundSchema` instead. */
    LmsUpsertContentRequestDtoValue$.inboundSchema = exports.LmsUpsertContentRequestDtoValue$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoValue$outboundSchema` instead. */
    LmsUpsertContentRequestDtoValue$.outboundSchema = exports.LmsUpsertContentRequestDtoValue$outboundSchema;
})(LmsUpsertContentRequestDtoValue$ || (exports.LmsUpsertContentRequestDtoValue$ = LmsUpsertContentRequestDtoValue$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoContentLaunchMethod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LmsUpsertContentRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsUpsertContentRequestDtoValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LmsUpsertContentRequestDtoContentLaunchMethod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LmsUpsertContentRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsUpsertContentRequestDtoValue$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 LmsUpsertContentRequestDtoContentLaunchMethod$;
(function (LmsUpsertContentRequestDtoContentLaunchMethod$) {
    /** @deprecated use `LmsUpsertContentRequestDtoContentLaunchMethod$inboundSchema` instead. */
    LmsUpsertContentRequestDtoContentLaunchMethod$.inboundSchema = exports.LmsUpsertContentRequestDtoContentLaunchMethod$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoContentLaunchMethod$outboundSchema` instead. */
    LmsUpsertContentRequestDtoContentLaunchMethod$.outboundSchema = exports.LmsUpsertContentRequestDtoContentLaunchMethod$outboundSchema;
})(LmsUpsertContentRequestDtoContentLaunchMethod$ || (exports.LmsUpsertContentRequestDtoContentLaunchMethod$ = LmsUpsertContentRequestDtoContentLaunchMethod$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoSchemas4$inboundSchema = z.object({});
/** @internal */
exports.LmsUpsertContentRequestDtoSchemas4$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 LmsUpsertContentRequestDtoSchemas4$;
(function (LmsUpsertContentRequestDtoSchemas4$) {
    /** @deprecated use `LmsUpsertContentRequestDtoSchemas4$inboundSchema` instead. */
    LmsUpsertContentRequestDtoSchemas4$.inboundSchema = exports.LmsUpsertContentRequestDtoSchemas4$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoSchemas4$outboundSchema` instead. */
    LmsUpsertContentRequestDtoSchemas4$.outboundSchema = exports.LmsUpsertContentRequestDtoSchemas4$outboundSchema;
})(LmsUpsertContentRequestDtoSchemas4$ || (exports.LmsUpsertContentRequestDtoSchemas4$ = LmsUpsertContentRequestDtoSchemas4$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.LmsUpsertContentRequestDtoSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.LmsUpsertContentRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.LmsUpsertContentRequestDtoSchemas4$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 LmsUpsertContentRequestDtoSchemasSourceValue$;
(function (LmsUpsertContentRequestDtoSchemasSourceValue$) {
    /** @deprecated use `LmsUpsertContentRequestDtoSchemasSourceValue$inboundSchema` instead. */
    LmsUpsertContentRequestDtoSchemasSourceValue$.inboundSchema = exports.LmsUpsertContentRequestDtoSchemasSourceValue$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoSchemasSourceValue$outboundSchema` instead. */
    LmsUpsertContentRequestDtoSchemasSourceValue$.outboundSchema = exports.LmsUpsertContentRequestDtoSchemasSourceValue$outboundSchema;
})(LmsUpsertContentRequestDtoSchemasSourceValue$ || (exports.LmsUpsertContentRequestDtoSchemasSourceValue$ = LmsUpsertContentRequestDtoSchemasSourceValue$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(LmsUpsertContentRequestDtoSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.LmsUpsertContentRequestDtoSchemasValue$outboundSchema = z.union([
    z.nativeEnum(LmsUpsertContentRequestDtoSchemasValue),
    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 LmsUpsertContentRequestDtoSchemasValue$;
(function (LmsUpsertContentRequestDtoSchemasValue$) {
    /** @deprecated use `LmsUpsertContentRequestDtoSchemasValue$inboundSchema` instead. */
    LmsUpsertContentRequestDtoSchemasValue$.inboundSchema = exports.LmsUpsertContentRequestDtoSchemasValue$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoSchemasValue$outboundSchema` instead. */
    LmsUpsertContentRequestDtoSchemasValue$.outboundSchema = exports.LmsUpsertContentRequestDtoSchemasValue$outboundSchema;
})(LmsUpsertContentRequestDtoSchemasValue$ || (exports.LmsUpsertContentRequestDtoSchemasValue$ = LmsUpsertContentRequestDtoSchemasValue$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDtoContentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.LmsUpsertContentRequestDtoSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsUpsertContentRequestDtoSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LmsUpsertContentRequestDtoContentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.LmsUpsertContentRequestDtoSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.LmsUpsertContentRequestDtoSchemasValue$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 LmsUpsertContentRequestDtoContentType$;
(function (LmsUpsertContentRequestDtoContentType$) {
    /** @deprecated use `LmsUpsertContentRequestDtoContentType$inboundSchema` instead. */
    LmsUpsertContentRequestDtoContentType$.inboundSchema = exports.LmsUpsertContentRequestDtoContentType$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDtoContentType$outboundSchema` instead. */
    LmsUpsertContentRequestDtoContentType$.outboundSchema = exports.LmsUpsertContentRequestDtoContentType$outboundSchema;
})(LmsUpsertContentRequestDtoContentType$ || (exports.LmsUpsertContentRequestDtoContentType$ = LmsUpsertContentRequestDtoContentType$ = {}));
/** @internal */
exports.LmsUpsertContentRequestDto$inboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.LmsUpsertContentRequestDto2$inboundSchema])).optional(),
    categories: z.nullable(z.array(createcategoriesapimodel_js_1.CreateCategoriesApiModel$inboundSchema))
        .optional(),
    content_launch_method: z.nullable(z.lazy(() => exports.LmsUpsertContentRequestDtoContentLaunchMethod$inboundSchema)).optional(),
    content_type: z.nullable(z.lazy(() => exports.LmsUpsertContentRequestDtoContentType$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.LmsUpsertContentRequestDto$outboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.LmsUpsertContentRequestDto2$outboundSchema])).optional(),
    categories: z.nullable(z.array(createcategoriesapimodel_js_1.CreateCategoriesApiModel$outboundSchema))
        .optional(),
    contentLaunchMethod: z.nullable(z.lazy(() => exports.LmsUpsertContentRequestDtoContentLaunchMethod$outboundSchema)).optional(),
    contentType: z.nullable(z.lazy(() => exports.LmsUpsertContentRequestDtoContentType$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 LmsUpsertContentRequestDto$;
(function (LmsUpsertContentRequestDto$) {
    /** @deprecated use `LmsUpsertContentRequestDto$inboundSchema` instead. */
    LmsUpsertContentRequestDto$.inboundSchema = exports.LmsUpsertContentRequestDto$inboundSchema;
    /** @deprecated use `LmsUpsertContentRequestDto$outboundSchema` instead. */
    LmsUpsertContentRequestDto$.outboundSchema = exports.LmsUpsertContentRequestDto$outboundSchema;
})(LmsUpsertContentRequestDto$ || (exports.LmsUpsertContentRequestDto$ = LmsUpsertContentRequestDto$ = {}));
//# sourceMappingURL=lmsupsertcontentrequestdto.js.map