/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
export const GetAssessmentProgressLessonType = {
    Quiz: "quiz",
    TestOut: "test-out",
    Placement: "placement",
};
/** @internal */
export const GetAssessmentProgressRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    attempt: z.string().optional(),
});
/** @internal */
export const 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.
 */
export var GetAssessmentProgressRequest$;
(function (GetAssessmentProgressRequest$) {
    /** @deprecated use `GetAssessmentProgressRequest$inboundSchema` instead. */
    GetAssessmentProgressRequest$.inboundSchema = GetAssessmentProgressRequest$inboundSchema;
    /** @deprecated use `GetAssessmentProgressRequest$outboundSchema` instead. */
    GetAssessmentProgressRequest$.outboundSchema = GetAssessmentProgressRequest$outboundSchema;
})(GetAssessmentProgressRequest$ || (GetAssessmentProgressRequest$ = {}));
export function getAssessmentProgressRequestToJSON(getAssessmentProgressRequest) {
    return JSON.stringify(GetAssessmentProgressRequest$outboundSchema.parse(getAssessmentProgressRequest));
}
export function getAssessmentProgressRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAssessmentProgressRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAssessmentProgressRequest' from JSON`);
}
/** @internal */
export const GetAssessmentProgressLessonType$inboundSchema = z.nativeEnum(GetAssessmentProgressLessonType);
/** @internal */
export const GetAssessmentProgressLessonType$outboundSchema = GetAssessmentProgressLessonType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAssessmentProgressLessonType$;
(function (GetAssessmentProgressLessonType$) {
    /** @deprecated use `GetAssessmentProgressLessonType$inboundSchema` instead. */
    GetAssessmentProgressLessonType$.inboundSchema = GetAssessmentProgressLessonType$inboundSchema;
    /** @deprecated use `GetAssessmentProgressLessonType$outboundSchema` instead. */
    GetAssessmentProgressLessonType$.outboundSchema = GetAssessmentProgressLessonType$outboundSchema;
})(GetAssessmentProgressLessonType$ || (GetAssessmentProgressLessonType$ = {}));
/** @internal */
export const ResponseBody$inboundSchema = z.object({
    lessonType: 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 */
export const ResponseBody$outboundSchema = z.object({
    lessonType: 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.
 */
export var ResponseBody$;
(function (ResponseBody$) {
    /** @deprecated use `ResponseBody$inboundSchema` instead. */
    ResponseBody$.inboundSchema = ResponseBody$inboundSchema;
    /** @deprecated use `ResponseBody$outboundSchema` instead. */
    ResponseBody$.outboundSchema = ResponseBody$outboundSchema;
})(ResponseBody$ || (ResponseBody$ = {}));
export function responseBodyToJSON(responseBody) {
    return JSON.stringify(ResponseBody$outboundSchema.parse(responseBody));
}
export function responseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody' from JSON`);
}
/** @internal */
export const GetAssessmentProgressResponse$inboundSchema = z.union([
    components.PowerPath100ProgressResult$inboundSchema,
    z.lazy(() => ResponseBody$inboundSchema),
]);
/** @internal */
export const GetAssessmentProgressResponse$outboundSchema = z.union([
    components.PowerPath100ProgressResult$outboundSchema,
    z.lazy(() => ResponseBody$outboundSchema),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAssessmentProgressResponse$;
(function (GetAssessmentProgressResponse$) {
    /** @deprecated use `GetAssessmentProgressResponse$inboundSchema` instead. */
    GetAssessmentProgressResponse$.inboundSchema = GetAssessmentProgressResponse$inboundSchema;
    /** @deprecated use `GetAssessmentProgressResponse$outboundSchema` instead. */
    GetAssessmentProgressResponse$.outboundSchema = GetAssessmentProgressResponse$outboundSchema;
})(GetAssessmentProgressResponse$ || (GetAssessmentProgressResponse$ = {}));
export function getAssessmentProgressResponseToJSON(getAssessmentProgressResponse) {
    return JSON.stringify(GetAssessmentProgressResponse$outboundSchema.parse(getAssessmentProgressResponse));
}
export function getAssessmentProgressResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAssessmentProgressResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAssessmentProgressResponse' from JSON`);
}
//# sourceMappingURL=getassessmentprogress.js.map