/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const GetCurrentLevelRequest$inboundSchema = z.object({
    student: z.string(),
    subject: z.string(),
});
/** @internal */
export const GetCurrentLevelRequest$outboundSchema = z.object({
    student: z.string(),
    subject: 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 GetCurrentLevelRequest$;
(function (GetCurrentLevelRequest$) {
    /** @deprecated use `GetCurrentLevelRequest$inboundSchema` instead. */
    GetCurrentLevelRequest$.inboundSchema = GetCurrentLevelRequest$inboundSchema;
    /** @deprecated use `GetCurrentLevelRequest$outboundSchema` instead. */
    GetCurrentLevelRequest$.outboundSchema = GetCurrentLevelRequest$outboundSchema;
})(GetCurrentLevelRequest$ || (GetCurrentLevelRequest$ = {}));
export function getCurrentLevelRequestToJSON(getCurrentLevelRequest) {
    return JSON.stringify(GetCurrentLevelRequest$outboundSchema.parse(getCurrentLevelRequest));
}
export function getCurrentLevelRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCurrentLevelRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCurrentLevelRequest' from JSON`);
}
/** @internal */
export const GetCurrentLevelResponse$inboundSchema = z.object({
    gradeLevel: z.nullable(z.number()),
    onboarded: z.boolean(),
    availableTests: z.number(),
});
/** @internal */
export const GetCurrentLevelResponse$outboundSchema = z.object({
    gradeLevel: z.nullable(z.number()),
    onboarded: z.boolean(),
    availableTests: 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 GetCurrentLevelResponse$;
(function (GetCurrentLevelResponse$) {
    /** @deprecated use `GetCurrentLevelResponse$inboundSchema` instead. */
    GetCurrentLevelResponse$.inboundSchema = GetCurrentLevelResponse$inboundSchema;
    /** @deprecated use `GetCurrentLevelResponse$outboundSchema` instead. */
    GetCurrentLevelResponse$.outboundSchema = GetCurrentLevelResponse$outboundSchema;
})(GetCurrentLevelResponse$ || (GetCurrentLevelResponse$ = {}));
export function getCurrentLevelResponseToJSON(getCurrentLevelResponse) {
    return JSON.stringify(GetCurrentLevelResponse$outboundSchema.parse(getCurrentLevelResponse));
}
export function getCurrentLevelResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCurrentLevelResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCurrentLevelResponse' from JSON`);
}
//# sourceMappingURL=getcurrentlevel.js.map