/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
export const FinalStudentAssessmentResponseLessonType = {
    Quiz: "quiz",
    TestOut: "test-out",
    Placement: "placement",
};
/** @internal */
export const FinalStudentAssessmentResponseRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
});
/** @internal */
export const FinalStudentAssessmentResponseRequest$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.
 */
export var FinalStudentAssessmentResponseRequest$;
(function (FinalStudentAssessmentResponseRequest$) {
    /** @deprecated use `FinalStudentAssessmentResponseRequest$inboundSchema` instead. */
    FinalStudentAssessmentResponseRequest$.inboundSchema = FinalStudentAssessmentResponseRequest$inboundSchema;
    /** @deprecated use `FinalStudentAssessmentResponseRequest$outboundSchema` instead. */
    FinalStudentAssessmentResponseRequest$.outboundSchema = FinalStudentAssessmentResponseRequest$outboundSchema;
})(FinalStudentAssessmentResponseRequest$ || (FinalStudentAssessmentResponseRequest$ = {}));
export function finalStudentAssessmentResponseRequestToJSON(finalStudentAssessmentResponseRequest) {
    return JSON.stringify(FinalStudentAssessmentResponseRequest$outboundSchema.parse(finalStudentAssessmentResponseRequest));
}
export function finalStudentAssessmentResponseRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FinalStudentAssessmentResponseRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FinalStudentAssessmentResponseRequest' from JSON`);
}
/** @internal */
export const FinalStudentAssessmentResponseLessonType$inboundSchema = z
    .nativeEnum(FinalStudentAssessmentResponseLessonType);
/** @internal */
export const FinalStudentAssessmentResponseLessonType$outboundSchema = FinalStudentAssessmentResponseLessonType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var FinalStudentAssessmentResponseLessonType$;
(function (FinalStudentAssessmentResponseLessonType$) {
    /** @deprecated use `FinalStudentAssessmentResponseLessonType$inboundSchema` instead. */
    FinalStudentAssessmentResponseLessonType$.inboundSchema = FinalStudentAssessmentResponseLessonType$inboundSchema;
    /** @deprecated use `FinalStudentAssessmentResponseLessonType$outboundSchema` instead. */
    FinalStudentAssessmentResponseLessonType$.outboundSchema = FinalStudentAssessmentResponseLessonType$outboundSchema;
})(FinalStudentAssessmentResponseLessonType$ || (FinalStudentAssessmentResponseLessonType$ = {}));
/** @internal */
export const FinalStudentAssessmentResponseResponse$inboundSchema = z.object({
    lessonType: FinalStudentAssessmentResponseLessonType$inboundSchema,
    finalized: z.boolean(),
    attempt: z.number(),
});
/** @internal */
export const FinalStudentAssessmentResponseResponse$outboundSchema = z.object({
    lessonType: FinalStudentAssessmentResponseLessonType$outboundSchema,
    finalized: z.boolean(),
    attempt: 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 FinalStudentAssessmentResponseResponse$;
(function (FinalStudentAssessmentResponseResponse$) {
    /** @deprecated use `FinalStudentAssessmentResponseResponse$inboundSchema` instead. */
    FinalStudentAssessmentResponseResponse$.inboundSchema = FinalStudentAssessmentResponseResponse$inboundSchema;
    /** @deprecated use `FinalStudentAssessmentResponseResponse$outboundSchema` instead. */
    FinalStudentAssessmentResponseResponse$.outboundSchema = FinalStudentAssessmentResponseResponse$outboundSchema;
})(FinalStudentAssessmentResponseResponse$ || (FinalStudentAssessmentResponseResponse$ = {}));
export function finalStudentAssessmentResponseResponseToJSON(finalStudentAssessmentResponseResponse) {
    return JSON.stringify(FinalStudentAssessmentResponseResponse$outboundSchema.parse(finalStudentAssessmentResponseResponse));
}
export function finalStudentAssessmentResponseResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FinalStudentAssessmentResponseResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FinalStudentAssessmentResponseResponse' from JSON`);
}
//# sourceMappingURL=finalstudentassessmentresponse.js.map