/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const ResetAttemptRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
});
/** @internal */
export const ResetAttemptRequest$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 ResetAttemptRequest$;
(function (ResetAttemptRequest$) {
    /** @deprecated use `ResetAttemptRequest$inboundSchema` instead. */
    ResetAttemptRequest$.inboundSchema = ResetAttemptRequest$inboundSchema;
    /** @deprecated use `ResetAttemptRequest$outboundSchema` instead. */
    ResetAttemptRequest$.outboundSchema = ResetAttemptRequest$outboundSchema;
})(ResetAttemptRequest$ || (ResetAttemptRequest$ = {}));
export function resetAttemptRequestToJSON(resetAttemptRequest) {
    return JSON.stringify(ResetAttemptRequest$outboundSchema.parse(resetAttemptRequest));
}
export function resetAttemptRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ResetAttemptRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResetAttemptRequest' from JSON`);
}
/** @internal */
export const ResetAttemptResponse$inboundSchema = z.object({
    success: z.boolean(),
    score: z.number(),
});
/** @internal */
export const ResetAttemptResponse$outboundSchema = z.object({
    success: z.boolean(),
    score: 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 ResetAttemptResponse$;
(function (ResetAttemptResponse$) {
    /** @deprecated use `ResetAttemptResponse$inboundSchema` instead. */
    ResetAttemptResponse$.inboundSchema = ResetAttemptResponse$inboundSchema;
    /** @deprecated use `ResetAttemptResponse$outboundSchema` instead. */
    ResetAttemptResponse$.outboundSchema = ResetAttemptResponse$outboundSchema;
})(ResetAttemptResponse$ || (ResetAttemptResponse$ = {}));
export function resetAttemptResponseToJSON(resetAttemptResponse) {
    return JSON.stringify(ResetAttemptResponse$outboundSchema.parse(resetAttemptResponse));
}
export function resetAttemptResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ResetAttemptResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResetAttemptResponse' from JSON`);
}
//# sourceMappingURL=resetattempt.js.map