"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.Course$ = exports.Course$outboundSchema = exports.Course$inboundSchema = exports.CourseType$ = exports.CourseType$outboundSchema = exports.CourseType$inboundSchema = exports.CourseSchemasValue$ = exports.CourseSchemasValue$outboundSchema = exports.CourseSchemasValue$inboundSchema = exports.CourseSchemasSourceValue$ = exports.CourseSchemasSourceValue$outboundSchema = exports.CourseSchemasSourceValue$inboundSchema = exports.CourseSchemas4$ = exports.CourseSchemas4$outboundSchema = exports.CourseSchemas4$inboundSchema = exports.CourseActive$ = exports.CourseActive$outboundSchema = exports.CourseActive$inboundSchema = exports.CourseValue$ = exports.CourseValue$outboundSchema = exports.CourseValue$inboundSchema = exports.CourseSourceValue$ = exports.CourseSourceValue$outboundSchema = exports.CourseSourceValue$inboundSchema = exports.Course4$ = exports.Course4$outboundSchema = exports.Course4$inboundSchema = exports.CourseSchemasValue = exports.CourseValue = 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");
const skills_js_1 = require("./skills.js");
var CourseValue;
(function (CourseValue) {
    CourseValue["Active"] = "ACTIVE";
    CourseValue["Inactive"] = "INACTIVE";
})(CourseValue || (exports.CourseValue = CourseValue = {}));
var CourseSchemasValue;
(function (CourseSchemasValue) {
    CourseSchemasValue["Video"] = "video";
    CourseSchemasValue["Quiz"] = "quiz";
    CourseSchemasValue["Document"] = "document";
})(CourseSchemasValue || (exports.CourseSchemasValue = CourseSchemasValue = {}));
/** @internal */
exports.Course4$inboundSchema = z.object({});
/** @internal */
exports.Course4$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 Course4$;
(function (Course4$) {
    /** @deprecated use `Course4$inboundSchema` instead. */
    Course4$.inboundSchema = exports.Course4$inboundSchema;
    /** @deprecated use `Course4$outboundSchema` instead. */
    Course4$.outboundSchema = exports.Course4$outboundSchema;
})(Course4$ || (exports.Course4$ = Course4$ = {}));
/** @internal */
exports.CourseSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.Course4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.CourseSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.Course4$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 CourseSourceValue$;
(function (CourseSourceValue$) {
    /** @deprecated use `CourseSourceValue$inboundSchema` instead. */
    CourseSourceValue$.inboundSchema = exports.CourseSourceValue$inboundSchema;
    /** @deprecated use `CourseSourceValue$outboundSchema` instead. */
    CourseSourceValue$.outboundSchema = exports.CourseSourceValue$outboundSchema;
})(CourseSourceValue$ || (exports.CourseSourceValue$ = CourseSourceValue$ = {}));
/** @internal */
exports.CourseValue$inboundSchema = z
    .union([
    z.nativeEnum(CourseValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CourseValue$outboundSchema = z.union([
    z.nativeEnum(CourseValue),
    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 CourseValue$;
(function (CourseValue$) {
    /** @deprecated use `CourseValue$inboundSchema` instead. */
    CourseValue$.inboundSchema = exports.CourseValue$inboundSchema;
    /** @deprecated use `CourseValue$outboundSchema` instead. */
    CourseValue$.outboundSchema = exports.CourseValue$outboundSchema;
})(CourseValue$ || (exports.CourseValue$ = CourseValue$ = {}));
/** @internal */
exports.CourseActive$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.Course4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CourseValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CourseActive$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.Course4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CourseValue$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 CourseActive$;
(function (CourseActive$) {
    /** @deprecated use `CourseActive$inboundSchema` instead. */
    CourseActive$.inboundSchema = exports.CourseActive$inboundSchema;
    /** @deprecated use `CourseActive$outboundSchema` instead. */
    CourseActive$.outboundSchema = exports.CourseActive$outboundSchema;
})(CourseActive$ || (exports.CourseActive$ = CourseActive$ = {}));
/** @internal */
exports.CourseSchemas4$inboundSchema = z.object({});
/** @internal */
exports.CourseSchemas4$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 CourseSchemas4$;
(function (CourseSchemas4$) {
    /** @deprecated use `CourseSchemas4$inboundSchema` instead. */
    CourseSchemas4$.inboundSchema = exports.CourseSchemas4$inboundSchema;
    /** @deprecated use `CourseSchemas4$outboundSchema` instead. */
    CourseSchemas4$.outboundSchema = exports.CourseSchemas4$outboundSchema;
})(CourseSchemas4$ || (exports.CourseSchemas4$ = CourseSchemas4$ = {}));
/** @internal */
exports.CourseSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.CourseSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.CourseSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.CourseSchemas4$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 CourseSchemasSourceValue$;
(function (CourseSchemasSourceValue$) {
    /** @deprecated use `CourseSchemasSourceValue$inboundSchema` instead. */
    CourseSchemasSourceValue$.inboundSchema = exports.CourseSchemasSourceValue$inboundSchema;
    /** @deprecated use `CourseSchemasSourceValue$outboundSchema` instead. */
    CourseSchemasSourceValue$.outboundSchema = exports.CourseSchemasSourceValue$outboundSchema;
})(CourseSchemasSourceValue$ || (exports.CourseSchemasSourceValue$ = CourseSchemasSourceValue$ = {}));
/** @internal */
exports.CourseSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(CourseSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CourseSchemasValue$outboundSchema = z.union([
    z.nativeEnum(CourseSchemasValue),
    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 CourseSchemasValue$;
(function (CourseSchemasValue$) {
    /** @deprecated use `CourseSchemasValue$inboundSchema` instead. */
    CourseSchemasValue$.inboundSchema = exports.CourseSchemasValue$inboundSchema;
    /** @deprecated use `CourseSchemasValue$outboundSchema` instead. */
    CourseSchemasValue$.outboundSchema = exports.CourseSchemasValue$outboundSchema;
})(CourseSchemasValue$ || (exports.CourseSchemasValue$ = CourseSchemasValue$ = {}));
/** @internal */
exports.CourseType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.CourseSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CourseSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CourseType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.CourseSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CourseSchemasValue$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 CourseType$;
(function (CourseType$) {
    /** @deprecated use `CourseType$inboundSchema` instead. */
    CourseType$.inboundSchema = exports.CourseType$inboundSchema;
    /** @deprecated use `CourseType$outboundSchema` instead. */
    CourseType$.outboundSchema = exports.CourseType$outboundSchema;
})(CourseType$ || (exports.CourseType$ = CourseType$ = {}));
/** @internal */
exports.Course$inboundSchema = z
    .object({
    active: z.nullable(z.lazy(() => exports.CourseActive$inboundSchema)).optional(),
    categories: z.nullable(z.array(category_js_1.Category$inboundSchema)).optional(),
    content_ids: z.nullable(z.array(z.string())).optional(),
    course_type: z.nullable(z.lazy(() => exports.CourseType$inboundSchema)).optional(),
    cover_url: z.nullable(z.string()).optional(),
    created_at: 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(),
    remote_content_ids: z.nullable(z.array(z.string())).optional(),
    remote_id: z.nullable(z.string()).optional(),
    skills: z.nullable(z.array(skills_js_1.Skills$inboundSchema)).optional(),
    title: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string()).optional(),
    url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "content_ids": "contentIds",
        "course_type": "courseType",
        "cover_url": "coverUrl",
        "created_at": "createdAt",
        "external_reference": "externalReference",
        "remote_content_ids": "remoteContentIds",
        "remote_id": "remoteId",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
    });
});
/** @internal */
exports.Course$outboundSchema = z.object({
    active: z.nullable(z.lazy(() => exports.CourseActive$outboundSchema)).optional(),
    categories: z.nullable(z.array(category_js_1.Category$outboundSchema)).optional(),
    contentIds: z.nullable(z.array(z.string())).optional(),
    courseType: z.nullable(z.lazy(() => exports.CourseType$outboundSchema)).optional(),
    coverUrl: z.nullable(z.string()).optional(),
    createdAt: 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(),
    remoteContentIds: z.nullable(z.array(z.string())).optional(),
    remoteId: z.nullable(z.string()).optional(),
    skills: z.nullable(z.array(skills_js_1.Skills$outboundSchema)).optional(),
    title: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.string()).optional(),
    url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentIds: "content_ids",
        courseType: "course_type",
        coverUrl: "cover_url",
        createdAt: "created_at",
        externalReference: "external_reference",
        remoteContentIds: "remote_content_ids",
        remoteId: "remote_id",
        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 Course$;
(function (Course$) {
    /** @deprecated use `Course$inboundSchema` instead. */
    Course$.inboundSchema = exports.Course$inboundSchema;
    /** @deprecated use `Course$outboundSchema` instead. */
    Course$.outboundSchema = exports.Course$outboundSchema;
})(Course$ || (exports.Course$ = Course$ = {}));
//# sourceMappingURL=course.js.map