"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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __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.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.LmsCreateContentRequestDtoValue = exports.LmsCreateContentRequestDto2 = void 0;
exports.lmsCreateContentRequestDtoActiveToJSON = lmsCreateContentRequestDtoActiveToJSON;
exports.lmsCreateContentRequestDtoActiveFromJSON = lmsCreateContentRequestDtoActiveFromJSON;
exports.lmsCreateContentRequestDto4ToJSON = lmsCreateContentRequestDto4ToJSON;
exports.lmsCreateContentRequestDto4FromJSON = lmsCreateContentRequestDto4FromJSON;
exports.lmsCreateContentRequestDtoSourceValueToJSON = lmsCreateContentRequestDtoSourceValueToJSON;
exports.lmsCreateContentRequestDtoSourceValueFromJSON = lmsCreateContentRequestDtoSourceValueFromJSON;
exports.lmsCreateContentRequestDtoContentTypeToJSON = lmsCreateContentRequestDtoContentTypeToJSON;
exports.lmsCreateContentRequestDtoContentTypeFromJSON = lmsCreateContentRequestDtoContentTypeFromJSON;
exports.lmsCreateContentRequestDtoToJSON = lmsCreateContentRequestDtoToJSON;
exports.lmsCreateContentRequestDtoFromJSON = lmsCreateContentRequestDtoFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
const additionaldata_js_1 = require("./additionaldata.js");
const authormodel_js_1 = require("./authormodel.js");
const createcategoriesapimodel_js_1 = require("./createcategoriesapimodel.js");
const createskillsapimodel_js_1 = require("./createskillsapimodel.js");
const languageenum_js_1 = require("./languageenum.js");
const localizationmodel_js_1 = require("./localizationmodel.js");
var LmsCreateContentRequestDto2;
(function (LmsCreateContentRequestDto2) {
    LmsCreateContentRequestDto2["True"] = "true";
    LmsCreateContentRequestDto2["False"] = "false";
})(LmsCreateContentRequestDto2 || (exports.LmsCreateContentRequestDto2 = LmsCreateContentRequestDto2 = {}));
/**
 * The content type for write operations. Provide one of the listed enum values. If omitted or set to "unmapped_value", the source_value will be sent to the provider instead.
 */
var LmsCreateContentRequestDtoValue;
(function (LmsCreateContentRequestDtoValue) {
    LmsCreateContentRequestDtoValue["Video"] = "video";
    LmsCreateContentRequestDtoValue["Quiz"] = "quiz";
    LmsCreateContentRequestDtoValue["Document"] = "document";
    LmsCreateContentRequestDtoValue["Audio"] = "audio";
    LmsCreateContentRequestDtoValue["Article"] = "article";
    LmsCreateContentRequestDtoValue["Book"] = "book";
    LmsCreateContentRequestDtoValue["Event"] = "event";
    LmsCreateContentRequestDtoValue["Course"] = "course";
    LmsCreateContentRequestDtoValue["Collection"] = "collection";
    LmsCreateContentRequestDtoValue["Interactive"] = "interactive";
    LmsCreateContentRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(LmsCreateContentRequestDtoValue || (exports.LmsCreateContentRequestDtoValue = LmsCreateContentRequestDtoValue = {}));
/** @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$ = {}));
function lmsCreateContentRequestDtoActiveToJSON(lmsCreateContentRequestDtoActive) {
    return JSON.stringify(exports.LmsCreateContentRequestDtoActive$outboundSchema.parse(lmsCreateContentRequestDtoActive));
}
function lmsCreateContentRequestDtoActiveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateContentRequestDtoActive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateContentRequestDtoActive' from JSON`);
}
/** @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$ = {}));
function lmsCreateContentRequestDto4ToJSON(lmsCreateContentRequestDto4) {
    return JSON.stringify(exports.LmsCreateContentRequestDto4$outboundSchema.parse(lmsCreateContentRequestDto4));
}
function lmsCreateContentRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateContentRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateContentRequestDto4' from JSON`);
}
/** @internal */
exports.LmsCreateContentRequestDtoSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.LmsCreateContentRequestDto4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.LmsCreateContentRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.LmsCreateContentRequestDto4$outboundSchema),
    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$ = {}));
function lmsCreateContentRequestDtoSourceValueToJSON(lmsCreateContentRequestDtoSourceValue) {
    return JSON.stringify(exports.LmsCreateContentRequestDtoSourceValue$outboundSchema.parse(lmsCreateContentRequestDtoSourceValue));
}
function lmsCreateContentRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateContentRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateContentRequestDtoSourceValue' from JSON`);
}
/** @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.LmsCreateContentRequestDtoContentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.LmsCreateContentRequestDto4$inboundSchema),
        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.LmsCreateContentRequestDtoContentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.LmsCreateContentRequestDto4$outboundSchema),
        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 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$ = {}));
function lmsCreateContentRequestDtoContentTypeToJSON(lmsCreateContentRequestDtoContentType) {
    return JSON.stringify(exports.LmsCreateContentRequestDtoContentType$outboundSchema.parse(lmsCreateContentRequestDtoContentType));
}
function lmsCreateContentRequestDtoContentTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateContentRequestDtoContentType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateContentRequestDtoContentType' from JSON`);
}
/** @internal */
exports.LmsCreateContentRequestDto$inboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.LmsCreateContentRequestDto2$inboundSchema])).optional(),
    additional_data: z.nullable(z.array(additionaldata_js_1.AdditionalData$inboundSchema)).optional(),
    authors: z.nullable(z.array(authormodel_js_1.AuthorModel$inboundSchema)).optional(),
    categories: z.nullable(z.array(createcategoriesapimodel_js_1.CreateCategoriesApiModel$inboundSchema))
        .optional(),
    content_type: z.nullable(z.lazy(() => exports.LmsCreateContentRequestDtoContentType$inboundSchema)).optional(),
    content_url: z.nullable(z.string()).optional(),
    cover_url: z.nullable(z.string()).optional(),
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    description: z.nullable(z.string()).optional(),
    duration: z.nullable(z.string()).optional(),
    external_reference: z.string(),
    languages: z.nullable(z.array(languageenum_js_1.LanguageEnum$inboundSchema)).optional(),
    localizations: z.nullable(z.array(localizationmodel_js_1.LocalizationModel$inboundSchema))
        .optional(),
    mobile_launch_content_url: z.nullable(z.string()).optional(),
    order: z.nullable(z.number()).optional(),
    short_description: z.nullable(z.string()).optional(),
    skills: z.nullable(z.array(createskillsapimodel_js_1.CreateSkillsApiModel$inboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "additional_data": "additionalData",
        "content_type": "contentType",
        "content_url": "contentUrl",
        "cover_url": "coverUrl",
        "created_at": "createdAt",
        "external_reference": "externalReference",
        "mobile_launch_content_url": "mobileLaunchContentUrl",
        "short_description": "shortDescription",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
    });
});
/** @internal */
exports.LmsCreateContentRequestDto$outboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.LmsCreateContentRequestDto2$outboundSchema])).optional(),
    additionalData: z.nullable(z.array(additionaldata_js_1.AdditionalData$outboundSchema)).optional(),
    authors: z.nullable(z.array(authormodel_js_1.AuthorModel$outboundSchema)).optional(),
    categories: z.nullable(z.array(createcategoriesapimodel_js_1.CreateCategoriesApiModel$outboundSchema))
        .optional(),
    contentType: z.nullable(z.lazy(() => exports.LmsCreateContentRequestDtoContentType$outboundSchema)).optional(),
    contentUrl: z.nullable(z.string()).optional(),
    coverUrl: z.nullable(z.string()).optional(),
    createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    description: z.nullable(z.string()).optional(),
    duration: z.nullable(z.string()).optional(),
    externalReference: z.string(),
    languages: z.nullable(z.array(languageenum_js_1.LanguageEnum$outboundSchema)).optional(),
    localizations: z.nullable(z.array(localizationmodel_js_1.LocalizationModel$outboundSchema))
        .optional(),
    mobileLaunchContentUrl: z.nullable(z.string()).optional(),
    order: z.nullable(z.number()).optional(),
    shortDescription: z.nullable(z.string()).optional(),
    skills: z.nullable(z.array(createskillsapimodel_js_1.CreateSkillsApiModel$outboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        additionalData: "additional_data",
        contentType: "content_type",
        contentUrl: "content_url",
        coverUrl: "cover_url",
        createdAt: "created_at",
        externalReference: "external_reference",
        mobileLaunchContentUrl: "mobile_launch_content_url",
        shortDescription: "short_description",
        unifiedCustomFields: "unified_custom_fields",
        updatedAt: "updated_at",
    });
});
/**
 * @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$ = {}));
function lmsCreateContentRequestDtoToJSON(lmsCreateContentRequestDto) {
    return JSON.stringify(exports.LmsCreateContentRequestDto$outboundSchema.parse(lmsCreateContentRequestDto));
}
function lmsCreateContentRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsCreateContentRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsCreateContentRequestDto' from JSON`);
}
//# sourceMappingURL=lmscreatecontentrequestdto.js.map