"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.PowerPath100UpdateStudentQuestionResponseResult$ = exports.PowerPath100UpdateStudentQuestionResponseResult$outboundSchema = exports.PowerPath100UpdateStudentQuestionResponseResult$inboundSchema = exports.ResponseResult$ = exports.ResponseResult$outboundSchema = exports.ResponseResult$inboundSchema = void 0;
exports.responseResultToJSON = responseResultToJSON;
exports.responseResultFromJSON = responseResultFromJSON;
exports.powerPath100UpdateStudentQuestionResponseResultToJSON = powerPath100UpdateStudentQuestionResponseResultToJSON;
exports.powerPath100UpdateStudentQuestionResponseResultFromJSON = powerPath100UpdateStudentQuestionResponseResultFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.ResponseResult$inboundSchema = z.object({
    score: z.number(),
    feedback: z.any().optional(),
});
/** @internal */
exports.ResponseResult$outboundSchema = z.object({
    score: z.number(),
    feedback: z.any().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ResponseResult$;
(function (ResponseResult$) {
    /** @deprecated use `ResponseResult$inboundSchema` instead. */
    ResponseResult$.inboundSchema = exports.ResponseResult$inboundSchema;
    /** @deprecated use `ResponseResult$outboundSchema` instead. */
    ResponseResult$.outboundSchema = exports.ResponseResult$outboundSchema;
})(ResponseResult$ || (exports.ResponseResult$ = ResponseResult$ = {}));
function responseResultToJSON(responseResult) {
    return JSON.stringify(exports.ResponseResult$outboundSchema.parse(responseResult));
}
function responseResultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseResult' from JSON`);
}
/** @internal */
exports.PowerPath100UpdateStudentQuestionResponseResult$inboundSchema = z.object({
    lessonType: z.literal("powerpath-100").default("powerpath-100").optional(),
    powerpathScore: z.number(),
    responseResult: z.lazy(() => exports.ResponseResult$inboundSchema),
    questionResult: z.any().optional(),
    testResult: z.any().optional(),
    accuracy: z.number(),
    correctQuestions: z.number(),
    totalQuestions: z.number(),
    xp: z.nullable(z.number()),
    multiplier: z.nullable(z.number()),
});
/** @internal */
exports.PowerPath100UpdateStudentQuestionResponseResult$outboundSchema = z.object({
    lessonType: z.literal("powerpath-100").default("powerpath-100"),
    powerpathScore: z.number(),
    responseResult: z.lazy(() => exports.ResponseResult$outboundSchema),
    questionResult: z.any().optional(),
    testResult: z.any().optional(),
    accuracy: z.number(),
    correctQuestions: z.number(),
    totalQuestions: z.number(),
    xp: z.nullable(z.number()),
    multiplier: z.nullable(z.number()),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PowerPath100UpdateStudentQuestionResponseResult$;
(function (PowerPath100UpdateStudentQuestionResponseResult$) {
    /** @deprecated use `PowerPath100UpdateStudentQuestionResponseResult$inboundSchema` instead. */
    PowerPath100UpdateStudentQuestionResponseResult$.inboundSchema = exports.PowerPath100UpdateStudentQuestionResponseResult$inboundSchema;
    /** @deprecated use `PowerPath100UpdateStudentQuestionResponseResult$outboundSchema` instead. */
    PowerPath100UpdateStudentQuestionResponseResult$.outboundSchema = exports.PowerPath100UpdateStudentQuestionResponseResult$outboundSchema;
})(PowerPath100UpdateStudentQuestionResponseResult$ || (exports.PowerPath100UpdateStudentQuestionResponseResult$ = PowerPath100UpdateStudentQuestionResponseResult$ = {}));
function powerPath100UpdateStudentQuestionResponseResultToJSON(powerPath100UpdateStudentQuestionResponseResult) {
    return JSON.stringify(exports.PowerPath100UpdateStudentQuestionResponseResult$outboundSchema.parse(powerPath100UpdateStudentQuestionResponseResult));
}
function powerPath100UpdateStudentQuestionResponseResultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PowerPath100UpdateStudentQuestionResponseResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PowerPath100UpdateStudentQuestionResponseResult' from JSON`);
}
//# sourceMappingURL=powerpath100updatestudentquestionresponseresult.js.map