"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.GetAssessmentProgressResponse$ = exports.GetAssessmentProgressResponse$outboundSchema = exports.GetAssessmentProgressResponse$inboundSchema = exports.ResponseBody$ = exports.ResponseBody$outboundSchema = exports.ResponseBody$inboundSchema = exports.GetAssessmentProgressLessonType$ = exports.GetAssessmentProgressLessonType$outboundSchema = exports.GetAssessmentProgressLessonType$inboundSchema = exports.GetAssessmentProgressRequest$ = exports.GetAssessmentProgressRequest$outboundSchema = exports.GetAssessmentProgressRequest$inboundSchema = exports.GetAssessmentProgressLessonType = void 0;
exports.getAssessmentProgressRequestToJSON = getAssessmentProgressRequestToJSON;
exports.getAssessmentProgressRequestFromJSON = getAssessmentProgressRequestFromJSON;
exports.responseBodyToJSON = responseBodyToJSON;
exports.responseBodyFromJSON = responseBodyFromJSON;
exports.getAssessmentProgressResponseToJSON = getAssessmentProgressResponseToJSON;
exports.getAssessmentProgressResponseFromJSON = getAssessmentProgressResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
exports.GetAssessmentProgressLessonType = {
    Quiz: "quiz",
    TestOut: "test-out",
    Placement: "placement",
};
/** @internal */
exports.GetAssessmentProgressRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    attempt: z.string().optional(),
});
/** @internal */
exports.GetAssessmentProgressRequest$outboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    attempt: 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 GetAssessmentProgressRequest$;
(function (GetAssessmentProgressRequest$) {
    /** @deprecated use `GetAssessmentProgressRequest$inboundSchema` instead. */
    GetAssessmentProgressRequest$.inboundSchema = exports.GetAssessmentProgressRequest$inboundSchema;
    /** @deprecated use `GetAssessmentProgressRequest$outboundSchema` instead. */
    GetAssessmentProgressRequest$.outboundSchema = exports.GetAssessmentProgressRequest$outboundSchema;
})(GetAssessmentProgressRequest$ || (exports.GetAssessmentProgressRequest$ = GetAssessmentProgressRequest$ = {}));
function getAssessmentProgressRequestToJSON(getAssessmentProgressRequest) {
    return JSON.stringify(exports.GetAssessmentProgressRequest$outboundSchema.parse(getAssessmentProgressRequest));
}
function getAssessmentProgressRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAssessmentProgressRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAssessmentProgressRequest' from JSON`);
}
/** @internal */
exports.GetAssessmentProgressLessonType$inboundSchema = z.nativeEnum(exports.GetAssessmentProgressLessonType);
/** @internal */
exports.GetAssessmentProgressLessonType$outboundSchema = exports.GetAssessmentProgressLessonType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAssessmentProgressLessonType$;
(function (GetAssessmentProgressLessonType$) {
    /** @deprecated use `GetAssessmentProgressLessonType$inboundSchema` instead. */
    GetAssessmentProgressLessonType$.inboundSchema = exports.GetAssessmentProgressLessonType$inboundSchema;
    /** @deprecated use `GetAssessmentProgressLessonType$outboundSchema` instead. */
    GetAssessmentProgressLessonType$.outboundSchema = exports.GetAssessmentProgressLessonType$outboundSchema;
})(GetAssessmentProgressLessonType$ || (exports.GetAssessmentProgressLessonType$ = GetAssessmentProgressLessonType$ = {}));
/** @internal */
exports.ResponseBody$inboundSchema = z.object({
    lessonType: exports.GetAssessmentProgressLessonType$inboundSchema,
    finalized: z.boolean(),
    score: z.number().optional(),
    questions: z.array(components.PowerPathTestQuestion$inboundSchema),
    toolProvider: z.nullable(z.string()),
    attempt: z.number(),
    xp: z.nullable(z.number()),
    multiplier: z.nullable(z.number()),
    accuracy: z.number(),
    correctQuestions: z.number(),
    totalQuestions: z.number(),
});
/** @internal */
exports.ResponseBody$outboundSchema = z.object({
    lessonType: exports.GetAssessmentProgressLessonType$outboundSchema,
    finalized: z.boolean(),
    score: z.number().optional(),
    questions: z.array(components.PowerPathTestQuestion$outboundSchema),
    toolProvider: z.nullable(z.string()),
    attempt: z.number(),
    xp: z.nullable(z.number()),
    multiplier: z.nullable(z.number()),
    accuracy: z.number(),
    correctQuestions: z.number(),
    totalQuestions: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ResponseBody$;
(function (ResponseBody$) {
    /** @deprecated use `ResponseBody$inboundSchema` instead. */
    ResponseBody$.inboundSchema = exports.ResponseBody$inboundSchema;
    /** @deprecated use `ResponseBody$outboundSchema` instead. */
    ResponseBody$.outboundSchema = exports.ResponseBody$outboundSchema;
})(ResponseBody$ || (exports.ResponseBody$ = ResponseBody$ = {}));
function responseBodyToJSON(responseBody) {
    return JSON.stringify(exports.ResponseBody$outboundSchema.parse(responseBody));
}
function responseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody' from JSON`);
}
/** @internal */
exports.GetAssessmentProgressResponse$inboundSchema = z.union([
    components.PowerPath100ProgressResult$inboundSchema,
    z.lazy(() => exports.ResponseBody$inboundSchema),
]);
/** @internal */
exports.GetAssessmentProgressResponse$outboundSchema = z.union([
    components.PowerPath100ProgressResult$outboundSchema,
    z.lazy(() => exports.ResponseBody$outboundSchema),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAssessmentProgressResponse$;
(function (GetAssessmentProgressResponse$) {
    /** @deprecated use `GetAssessmentProgressResponse$inboundSchema` instead. */
    GetAssessmentProgressResponse$.inboundSchema = exports.GetAssessmentProgressResponse$inboundSchema;
    /** @deprecated use `GetAssessmentProgressResponse$outboundSchema` instead. */
    GetAssessmentProgressResponse$.outboundSchema = exports.GetAssessmentProgressResponse$outboundSchema;
})(GetAssessmentProgressResponse$ || (exports.GetAssessmentProgressResponse$ = GetAssessmentProgressResponse$ = {}));
function getAssessmentProgressResponseToJSON(getAssessmentProgressResponse) {
    return JSON.stringify(exports.GetAssessmentProgressResponse$outboundSchema.parse(getAssessmentProgressResponse));
}
function getAssessmentProgressResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAssessmentProgressResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAssessmentProgressResponse' from JSON`);
}
//# sourceMappingURL=getassessmentprogress.js.map