"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.LearningObjectiveSet$ = exports.LearningObjectiveSet$outboundSchema = exports.LearningObjectiveSet$inboundSchema = exports.LearningObjectiveSetLearningObjectiveId$ = exports.LearningObjectiveSetLearningObjectiveId$outboundSchema = exports.LearningObjectiveSetLearningObjectiveId$inboundSchema = void 0;
exports.learningObjectiveSetLearningObjectiveIdToJSON = learningObjectiveSetLearningObjectiveIdToJSON;
exports.learningObjectiveSetLearningObjectiveIdFromJSON = learningObjectiveSetLearningObjectiveIdFromJSON;
exports.learningObjectiveSetToJSON = learningObjectiveSetToJSON;
exports.learningObjectiveSetFromJSON = learningObjectiveSetFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.LearningObjectiveSetLearningObjectiveId$inboundSchema = z.object({
    learningObjectiveId: z.string(),
    score: z.number().optional(),
    textScore: z.string().optional(),
});
/** @internal */
exports.LearningObjectiveSetLearningObjectiveId$outboundSchema = z.object({
    learningObjectiveId: z.string(),
    score: z.number().optional(),
    textScore: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LearningObjectiveSetLearningObjectiveId$;
(function (LearningObjectiveSetLearningObjectiveId$) {
    /** @deprecated use `LearningObjectiveSetLearningObjectiveId$inboundSchema` instead. */
    LearningObjectiveSetLearningObjectiveId$.inboundSchema = exports.LearningObjectiveSetLearningObjectiveId$inboundSchema;
    /** @deprecated use `LearningObjectiveSetLearningObjectiveId$outboundSchema` instead. */
    LearningObjectiveSetLearningObjectiveId$.outboundSchema = exports.LearningObjectiveSetLearningObjectiveId$outboundSchema;
})(LearningObjectiveSetLearningObjectiveId$ || (exports.LearningObjectiveSetLearningObjectiveId$ = LearningObjectiveSetLearningObjectiveId$ = {}));
function learningObjectiveSetLearningObjectiveIdToJSON(learningObjectiveSetLearningObjectiveId) {
    return JSON.stringify(exports.LearningObjectiveSetLearningObjectiveId$outboundSchema.parse(learningObjectiveSetLearningObjectiveId));
}
function learningObjectiveSetLearningObjectiveIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LearningObjectiveSetLearningObjectiveId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearningObjectiveSetLearningObjectiveId' from JSON`);
}
/** @internal */
exports.LearningObjectiveSet$inboundSchema = z.object({
    source: z.string(),
    learningObjectiveIds: z.array(z.lazy(() => exports.LearningObjectiveSetLearningObjectiveId$inboundSchema)),
});
/** @internal */
exports.LearningObjectiveSet$outboundSchema = z.object({
    source: z.string(),
    learningObjectiveIds: z.array(z.lazy(() => exports.LearningObjectiveSetLearningObjectiveId$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LearningObjectiveSet$;
(function (LearningObjectiveSet$) {
    /** @deprecated use `LearningObjectiveSet$inboundSchema` instead. */
    LearningObjectiveSet$.inboundSchema = exports.LearningObjectiveSet$inboundSchema;
    /** @deprecated use `LearningObjectiveSet$outboundSchema` instead. */
    LearningObjectiveSet$.outboundSchema = exports.LearningObjectiveSet$outboundSchema;
})(LearningObjectiveSet$ || (exports.LearningObjectiveSet$ = LearningObjectiveSet$ = {}));
function learningObjectiveSetToJSON(learningObjectiveSet) {
    return JSON.stringify(exports.LearningObjectiveSet$outboundSchema.parse(learningObjectiveSet));
}
function learningObjectiveSetFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LearningObjectiveSet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearningObjectiveSet' from JSON`);
}
//# sourceMappingURL=learningobjectiveset.js.map