"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.Content$ = exports.Content$outboundSchema = exports.Content$inboundSchema = exports.ContentContentType$ = exports.ContentContentType$outboundSchema = exports.ContentContentType$inboundSchema = exports.ContentSchemasValue$ = exports.ContentSchemasValue$outboundSchema = exports.ContentSchemasValue$inboundSchema = exports.ContentSchemasSourceValue$ = exports.ContentSchemasSourceValue$outboundSchema = exports.ContentSchemasSourceValue$inboundSchema = exports.ContentSchemas4$ = exports.ContentSchemas4$outboundSchema = exports.ContentSchemas4$inboundSchema = exports.ContentLaunchMethod$ = exports.ContentLaunchMethod$outboundSchema = exports.ContentLaunchMethod$inboundSchema = exports.ContentValue$ = exports.ContentValue$outboundSchema = exports.ContentValue$inboundSchema = exports.ContentSourceValue$ = exports.ContentSourceValue$outboundSchema = exports.ContentSourceValue$inboundSchema = exports.Content4$ = exports.Content4$outboundSchema = exports.Content4$inboundSchema = exports.Active$ = exports.Active$outboundSchema = exports.Active$inboundSchema = exports.Content2$ = exports.Content2$outboundSchema = exports.Content2$inboundSchema = exports.ContentSchemasValue = exports.ContentValue = exports.Content2 = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
const category_js_1 = require("./category.js");
const contentlanguageenum_js_1 = require("./contentlanguageenum.js");
var Content2;
(function (Content2) {
    Content2["True"] = "true";
    Content2["False"] = "false";
})(Content2 || (exports.Content2 = Content2 = {}));
var ContentValue;
(function (ContentValue) {
    ContentValue["Automatic"] = "automatic";
    ContentValue["Browser"] = "browser";
})(ContentValue || (exports.ContentValue = ContentValue = {}));
var ContentSchemasValue;
(function (ContentSchemasValue) {
    ContentSchemasValue["Video"] = "video";
    ContentSchemasValue["Quiz"] = "quiz";
    ContentSchemasValue["Document"] = "document";
})(ContentSchemasValue || (exports.ContentSchemasValue = ContentSchemasValue = {}));
/** @internal */
exports.Content2$inboundSchema = z
    .nativeEnum(Content2);
/** @internal */
exports.Content2$outboundSchema = exports.Content2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Content2$;
(function (Content2$) {
    /** @deprecated use `Content2$inboundSchema` instead. */
    Content2$.inboundSchema = exports.Content2$inboundSchema;
    /** @deprecated use `Content2$outboundSchema` instead. */
    Content2$.outboundSchema = exports.Content2$outboundSchema;
})(Content2$ || (exports.Content2$ = Content2$ = {}));
/** @internal */
exports.Active$inboundSchema = z
    .union([z.boolean(), exports.Content2$inboundSchema]);
/** @internal */
exports.Active$outboundSchema = z.union([z.boolean(), exports.Content2$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Active$;
(function (Active$) {
    /** @deprecated use `Active$inboundSchema` instead. */
    Active$.inboundSchema = exports.Active$inboundSchema;
    /** @deprecated use `Active$outboundSchema` instead. */
    Active$.outboundSchema = exports.Active$outboundSchema;
})(Active$ || (exports.Active$ = Active$ = {}));
/** @internal */
exports.Content4$inboundSchema = z.object({});
/** @internal */
exports.Content4$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 Content4$;
(function (Content4$) {
    /** @deprecated use `Content4$inboundSchema` instead. */
    Content4$.inboundSchema = exports.Content4$inboundSchema;
    /** @deprecated use `Content4$outboundSchema` instead. */
    Content4$.outboundSchema = exports.Content4$outboundSchema;
})(Content4$ || (exports.Content4$ = Content4$ = {}));
/** @internal */
exports.ContentSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.Content4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.ContentSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.Content4$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 ContentSourceValue$;
(function (ContentSourceValue$) {
    /** @deprecated use `ContentSourceValue$inboundSchema` instead. */
    ContentSourceValue$.inboundSchema = exports.ContentSourceValue$inboundSchema;
    /** @deprecated use `ContentSourceValue$outboundSchema` instead. */
    ContentSourceValue$.outboundSchema = exports.ContentSourceValue$outboundSchema;
})(ContentSourceValue$ || (exports.ContentSourceValue$ = ContentSourceValue$ = {}));
/** @internal */
exports.ContentValue$inboundSchema = z
    .union([
    z.nativeEnum(ContentValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.ContentValue$outboundSchema = z.union([
    z.nativeEnum(ContentValue),
    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 ContentValue$;
(function (ContentValue$) {
    /** @deprecated use `ContentValue$inboundSchema` instead. */
    ContentValue$.inboundSchema = exports.ContentValue$inboundSchema;
    /** @deprecated use `ContentValue$outboundSchema` instead. */
    ContentValue$.outboundSchema = exports.ContentValue$outboundSchema;
})(ContentValue$ || (exports.ContentValue$ = ContentValue$ = {}));
/** @internal */
exports.ContentLaunchMethod$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.Content4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ContentValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.ContentLaunchMethod$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.Content4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ContentValue$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 ContentLaunchMethod$;
(function (ContentLaunchMethod$) {
    /** @deprecated use `ContentLaunchMethod$inboundSchema` instead. */
    ContentLaunchMethod$.inboundSchema = exports.ContentLaunchMethod$inboundSchema;
    /** @deprecated use `ContentLaunchMethod$outboundSchema` instead. */
    ContentLaunchMethod$.outboundSchema = exports.ContentLaunchMethod$outboundSchema;
})(ContentLaunchMethod$ || (exports.ContentLaunchMethod$ = ContentLaunchMethod$ = {}));
/** @internal */
exports.ContentSchemas4$inboundSchema = z.object({});
/** @internal */
exports.ContentSchemas4$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 ContentSchemas4$;
(function (ContentSchemas4$) {
    /** @deprecated use `ContentSchemas4$inboundSchema` instead. */
    ContentSchemas4$.inboundSchema = exports.ContentSchemas4$inboundSchema;
    /** @deprecated use `ContentSchemas4$outboundSchema` instead. */
    ContentSchemas4$.outboundSchema = exports.ContentSchemas4$outboundSchema;
})(ContentSchemas4$ || (exports.ContentSchemas4$ = ContentSchemas4$ = {}));
/** @internal */
exports.ContentSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.ContentSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.ContentSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.ContentSchemas4$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 ContentSchemasSourceValue$;
(function (ContentSchemasSourceValue$) {
    /** @deprecated use `ContentSchemasSourceValue$inboundSchema` instead. */
    ContentSchemasSourceValue$.inboundSchema = exports.ContentSchemasSourceValue$inboundSchema;
    /** @deprecated use `ContentSchemasSourceValue$outboundSchema` instead. */
    ContentSchemasSourceValue$.outboundSchema = exports.ContentSchemasSourceValue$outboundSchema;
})(ContentSchemasSourceValue$ || (exports.ContentSchemasSourceValue$ = ContentSchemasSourceValue$ = {}));
/** @internal */
exports.ContentSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(ContentSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.ContentSchemasValue$outboundSchema = z.union([
    z.nativeEnum(ContentSchemasValue),
    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 ContentSchemasValue$;
(function (ContentSchemasValue$) {
    /** @deprecated use `ContentSchemasValue$inboundSchema` instead. */
    ContentSchemasValue$.inboundSchema = exports.ContentSchemasValue$inboundSchema;
    /** @deprecated use `ContentSchemasValue$outboundSchema` instead. */
    ContentSchemasValue$.outboundSchema = exports.ContentSchemasValue$outboundSchema;
})(ContentSchemasValue$ || (exports.ContentSchemasValue$ = ContentSchemasValue$ = {}));
/** @internal */
exports.ContentContentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.ContentSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ContentSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.ContentContentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.ContentSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ContentSchemasValue$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 ContentContentType$;
(function (ContentContentType$) {
    /** @deprecated use `ContentContentType$inboundSchema` instead. */
    ContentContentType$.inboundSchema = exports.ContentContentType$inboundSchema;
    /** @deprecated use `ContentContentType$outboundSchema` instead. */
    ContentContentType$.outboundSchema = exports.ContentContentType$outboundSchema;
})(ContentContentType$ || (exports.ContentContentType$ = ContentContentType$ = {}));
/** @internal */
exports.Content$inboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.Content2$inboundSchema]))
        .optional(),
    categories: z.nullable(z.array(category_js_1.Category$inboundSchema)).optional(),
    content_launch_method: z.nullable(z.lazy(() => exports.ContentLaunchMethod$inboundSchema)).optional(),
    content_type: z.nullable(z.lazy(() => exports.ContentContentType$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(),
    id: z.nullable(z.string()).optional(),
    languages: z.nullable(z.array(contentlanguageenum_js_1.ContentLanguageEnum$inboundSchema))
        .optional(),
    order: z.nullable(z.number()).optional(),
    remote_course_ids: z.nullable(z.array(z.string())).optional(),
    remote_id: z.nullable(z.string()).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",
        "remote_course_ids": "remoteCourseIds",
        "remote_id": "remoteId",
        "unified_custom_fields": "unifiedCustomFields",
    });
});
/** @internal */
exports.Content$outboundSchema = z.object({
    active: z.nullable(z.union([z.boolean(), exports.Content2$outboundSchema]))
        .optional(),
    categories: z.nullable(z.array(category_js_1.Category$outboundSchema)).optional(),
    contentLaunchMethod: z.nullable(z.lazy(() => exports.ContentLaunchMethod$outboundSchema)).optional(),
    contentType: z.nullable(z.lazy(() => exports.ContentContentType$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(),
    id: z.nullable(z.string()).optional(),
    languages: z.nullable(z.array(contentlanguageenum_js_1.ContentLanguageEnum$outboundSchema)).optional(),
    order: z.nullable(z.number()).optional(),
    remoteCourseIds: z.nullable(z.array(z.string())).optional(),
    remoteId: z.nullable(z.string()).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",
        remoteCourseIds: "remote_course_ids",
        remoteId: "remote_id",
        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 Content$;
(function (Content$) {
    /** @deprecated use `Content$inboundSchema` instead. */
    Content$.inboundSchema = exports.Content$inboundSchema;
    /** @deprecated use `Content$outboundSchema` instead. */
    Content$.outboundSchema = exports.Content$outboundSchema;
})(Content$ || (exports.Content$ = Content$ = {}));
//# sourceMappingURL=content.js.map