"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.GetNextQuestionResponse$ = exports.GetNextQuestionResponse$outboundSchema = exports.GetNextQuestionResponse$inboundSchema = exports.GetNextQuestionRequest$ = exports.GetNextQuestionRequest$outboundSchema = exports.GetNextQuestionRequest$inboundSchema = void 0;
exports.getNextQuestionRequestToJSON = getNextQuestionRequestToJSON;
exports.getNextQuestionRequestFromJSON = getNextQuestionRequestFromJSON;
exports.getNextQuestionResponseToJSON = getNextQuestionResponseToJSON;
exports.getNextQuestionResponseFromJSON = getNextQuestionResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.GetNextQuestionRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
});
/** @internal */
exports.GetNextQuestionRequest$outboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetNextQuestionRequest$;
(function (GetNextQuestionRequest$) {
    /** @deprecated use `GetNextQuestionRequest$inboundSchema` instead. */
    GetNextQuestionRequest$.inboundSchema = exports.GetNextQuestionRequest$inboundSchema;
    /** @deprecated use `GetNextQuestionRequest$outboundSchema` instead. */
    GetNextQuestionRequest$.outboundSchema = exports.GetNextQuestionRequest$outboundSchema;
})(GetNextQuestionRequest$ || (exports.GetNextQuestionRequest$ = GetNextQuestionRequest$ = {}));
function getNextQuestionRequestToJSON(getNextQuestionRequest) {
    return JSON.stringify(exports.GetNextQuestionRequest$outboundSchema.parse(getNextQuestionRequest));
}
function getNextQuestionRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetNextQuestionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetNextQuestionRequest' from JSON`);
}
/** @internal */
exports.GetNextQuestionResponse$inboundSchema = z.object({
    score: z.number(),
    question: components.PowerPathTestQuestion$inboundSchema,
});
/** @internal */
exports.GetNextQuestionResponse$outboundSchema = z.object({
    score: z.number(),
    question: components.PowerPathTestQuestion$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetNextQuestionResponse$;
(function (GetNextQuestionResponse$) {
    /** @deprecated use `GetNextQuestionResponse$inboundSchema` instead. */
    GetNextQuestionResponse$.inboundSchema = exports.GetNextQuestionResponse$inboundSchema;
    /** @deprecated use `GetNextQuestionResponse$outboundSchema` instead. */
    GetNextQuestionResponse$.outboundSchema = exports.GetNextQuestionResponse$outboundSchema;
})(GetNextQuestionResponse$ || (exports.GetNextQuestionResponse$ = GetNextQuestionResponse$ = {}));
function getNextQuestionResponseToJSON(getNextQuestionResponse) {
    return JSON.stringify(exports.GetNextQuestionResponse$outboundSchema.parse(getNextQuestionResponse));
}
function getNextQuestionResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetNextQuestionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetNextQuestionResponse' from JSON`);
}
//# sourceMappingURL=getnextquestion.js.map