/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
export const ToolProvider = {
    Edulastic: "edulastic",
};
export const MakeExternalTestAssignmentLessonType = {
    TestOut: "test-out",
    Placement: "placement",
};
/** @internal */
export const MakeExternalTestAssignmentRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    applicationName: z.string().optional(),
});
/** @internal */
export const MakeExternalTestAssignmentRequest$outboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    applicationName: 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 MakeExternalTestAssignmentRequest$;
(function (MakeExternalTestAssignmentRequest$) {
    /** @deprecated use `MakeExternalTestAssignmentRequest$inboundSchema` instead. */
    MakeExternalTestAssignmentRequest$.inboundSchema = MakeExternalTestAssignmentRequest$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentRequest$outboundSchema` instead. */
    MakeExternalTestAssignmentRequest$.outboundSchema = MakeExternalTestAssignmentRequest$outboundSchema;
})(MakeExternalTestAssignmentRequest$ || (MakeExternalTestAssignmentRequest$ = {}));
export function makeExternalTestAssignmentRequestToJSON(makeExternalTestAssignmentRequest) {
    return JSON.stringify(MakeExternalTestAssignmentRequest$outboundSchema.parse(makeExternalTestAssignmentRequest));
}
export function makeExternalTestAssignmentRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => MakeExternalTestAssignmentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MakeExternalTestAssignmentRequest' from JSON`);
}
/** @internal */
export const ToolProvider$inboundSchema = z.nativeEnum(ToolProvider);
/** @internal */
export const ToolProvider$outboundSchema = ToolProvider$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ToolProvider$;
(function (ToolProvider$) {
    /** @deprecated use `ToolProvider$inboundSchema` instead. */
    ToolProvider$.inboundSchema = ToolProvider$inboundSchema;
    /** @deprecated use `ToolProvider$outboundSchema` instead. */
    ToolProvider$.outboundSchema = ToolProvider$outboundSchema;
})(ToolProvider$ || (ToolProvider$ = {}));
/** @internal */
export const MakeExternalTestAssignmentLessonType$inboundSchema = z.nativeEnum(MakeExternalTestAssignmentLessonType);
/** @internal */
export const MakeExternalTestAssignmentLessonType$outboundSchema = MakeExternalTestAssignmentLessonType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var MakeExternalTestAssignmentLessonType$;
(function (MakeExternalTestAssignmentLessonType$) {
    /** @deprecated use `MakeExternalTestAssignmentLessonType$inboundSchema` instead. */
    MakeExternalTestAssignmentLessonType$.inboundSchema = MakeExternalTestAssignmentLessonType$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentLessonType$outboundSchema` instead. */
    MakeExternalTestAssignmentLessonType$.outboundSchema = MakeExternalTestAssignmentLessonType$outboundSchema;
})(MakeExternalTestAssignmentLessonType$ || (MakeExternalTestAssignmentLessonType$ = {}));
/** @internal */
export const MakeExternalTestAssignmentCredentials$inboundSchema = z.object({
    email: z.string(),
    password: z.string(),
});
/** @internal */
export const MakeExternalTestAssignmentCredentials$outboundSchema = z.object({
    email: z.string(),
    password: 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 MakeExternalTestAssignmentCredentials$;
(function (MakeExternalTestAssignmentCredentials$) {
    /** @deprecated use `MakeExternalTestAssignmentCredentials$inboundSchema` instead. */
    MakeExternalTestAssignmentCredentials$.inboundSchema = MakeExternalTestAssignmentCredentials$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentCredentials$outboundSchema` instead. */
    MakeExternalTestAssignmentCredentials$.outboundSchema = MakeExternalTestAssignmentCredentials$outboundSchema;
})(MakeExternalTestAssignmentCredentials$ || (MakeExternalTestAssignmentCredentials$ = {}));
export function makeExternalTestAssignmentCredentialsToJSON(makeExternalTestAssignmentCredentials) {
    return JSON.stringify(MakeExternalTestAssignmentCredentials$outboundSchema.parse(makeExternalTestAssignmentCredentials));
}
export function makeExternalTestAssignmentCredentialsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => MakeExternalTestAssignmentCredentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MakeExternalTestAssignmentCredentials' from JSON`);
}
/** @internal */
export const MakeExternalTestAssignmentResponse$inboundSchema = z.object({
    toolProvider: ToolProvider$inboundSchema,
    lessonType: MakeExternalTestAssignmentLessonType$inboundSchema,
    attempt: z.number(),
    credentials: z.lazy(() => MakeExternalTestAssignmentCredentials$inboundSchema)
        .optional(),
    assignmentId: z.string().optional(),
    classId: z.string().optional(),
    testUrl: z.string().optional(),
    testId: z.string().optional(),
});
/** @internal */
export const MakeExternalTestAssignmentResponse$outboundSchema = z.object({
    toolProvider: ToolProvider$outboundSchema,
    lessonType: MakeExternalTestAssignmentLessonType$outboundSchema,
    attempt: z.number(),
    credentials: z.lazy(() => MakeExternalTestAssignmentCredentials$outboundSchema).optional(),
    assignmentId: z.string().optional(),
    classId: z.string().optional(),
    testUrl: z.string().optional(),
    testId: 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 MakeExternalTestAssignmentResponse$;
(function (MakeExternalTestAssignmentResponse$) {
    /** @deprecated use `MakeExternalTestAssignmentResponse$inboundSchema` instead. */
    MakeExternalTestAssignmentResponse$.inboundSchema = MakeExternalTestAssignmentResponse$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentResponse$outboundSchema` instead. */
    MakeExternalTestAssignmentResponse$.outboundSchema = MakeExternalTestAssignmentResponse$outboundSchema;
})(MakeExternalTestAssignmentResponse$ || (MakeExternalTestAssignmentResponse$ = {}));
export function makeExternalTestAssignmentResponseToJSON(makeExternalTestAssignmentResponse) {
    return JSON.stringify(MakeExternalTestAssignmentResponse$outboundSchema.parse(makeExternalTestAssignmentResponse));
}
export function makeExternalTestAssignmentResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => MakeExternalTestAssignmentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MakeExternalTestAssignmentResponse' from JSON`);
}
//# sourceMappingURL=makeexternaltestassignment.js.map