/*
 * 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";
/** @internal */
export const GetNextQuestionRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
});
/** @internal */
export const GetNextQuestionRequest$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 GetNextQuestionRequest$;
(function (GetNextQuestionRequest$) {
    /** @deprecated use `GetNextQuestionRequest$inboundSchema` instead. */
    GetNextQuestionRequest$.inboundSchema = GetNextQuestionRequest$inboundSchema;
    /** @deprecated use `GetNextQuestionRequest$outboundSchema` instead. */
    GetNextQuestionRequest$.outboundSchema = GetNextQuestionRequest$outboundSchema;
})(GetNextQuestionRequest$ || (GetNextQuestionRequest$ = {}));
export function getNextQuestionRequestToJSON(getNextQuestionRequest) {
    return JSON.stringify(GetNextQuestionRequest$outboundSchema.parse(getNextQuestionRequest));
}
export function getNextQuestionRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetNextQuestionRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetNextQuestionRequest' from JSON`);
}
/** @internal */
export const GetNextQuestionResponse$inboundSchema = z.object({
    score: z.number(),
    question: components.PowerPathTestQuestion$inboundSchema,
});
/** @internal */
export const GetNextQuestionResponse$outboundSchema = z.object({
    score: z.number(),
    question: components.PowerPathTestQuestion$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetNextQuestionResponse$;
(function (GetNextQuestionResponse$) {
    /** @deprecated use `GetNextQuestionResponse$inboundSchema` instead. */
    GetNextQuestionResponse$.inboundSchema = GetNextQuestionResponse$inboundSchema;
    /** @deprecated use `GetNextQuestionResponse$outboundSchema` instead. */
    GetNextQuestionResponse$.outboundSchema = GetNextQuestionResponse$outboundSchema;
})(GetNextQuestionResponse$ || (GetNextQuestionResponse$ = {}));
export function getNextQuestionResponseToJSON(getNextQuestionResponse) {
    return JSON.stringify(GetNextQuestionResponse$outboundSchema.parse(getNextQuestionResponse));
}
export function getNextQuestionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetNextQuestionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetNextQuestionResponse' from JSON`);
}
//# sourceMappingURL=getnextquestion.js.map