/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/**
 * The type of external service (e.g.: 'edulastic')
 */
export const CreateExternalTestOutInputToolProvider = {
    Edulastic: "edulastic",
};
/** @internal */
export const CreateExternalTestOutInputToolProvider$inboundSchema = z.nativeEnum(CreateExternalTestOutInputToolProvider);
/** @internal */
export const CreateExternalTestOutInputToolProvider$outboundSchema = CreateExternalTestOutInputToolProvider$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateExternalTestOutInputToolProvider$;
(function (CreateExternalTestOutInputToolProvider$) {
    /** @deprecated use `CreateExternalTestOutInputToolProvider$inboundSchema` instead. */
    CreateExternalTestOutInputToolProvider$.inboundSchema = CreateExternalTestOutInputToolProvider$inboundSchema;
    /** @deprecated use `CreateExternalTestOutInputToolProvider$outboundSchema` instead. */
    CreateExternalTestOutInputToolProvider$.outboundSchema = CreateExternalTestOutInputToolProvider$outboundSchema;
})(CreateExternalTestOutInputToolProvider$ || (CreateExternalTestOutInputToolProvider$ = {}));
/** @internal */
export const CreateExternalTestOutInput$inboundSchema = z.object({
    courseId: z.string(),
    lessonTitle: z.string().optional(),
    launchUrl: z.string().optional(),
    toolProvider: CreateExternalTestOutInputToolProvider$inboundSchema,
    unitTitle: z.string().optional(),
    courseComponentSourcedId: z.string().optional(),
    vendorId: z.string(),
    description: z.string().optional(),
    resourceMetadata: z.any().optional(),
    lessonType: z.literal("test-out").default("test-out").optional(),
    xp: z.number(),
});
/** @internal */
export const CreateExternalTestOutInput$outboundSchema = z.object({
    courseId: z.string(),
    lessonTitle: z.string().optional(),
    launchUrl: z.string().optional(),
    toolProvider: CreateExternalTestOutInputToolProvider$outboundSchema,
    unitTitle: z.string().optional(),
    courseComponentSourcedId: z.string().optional(),
    vendorId: z.string(),
    description: z.string().optional(),
    resourceMetadata: z.any().optional(),
    lessonType: z.literal("test-out").default("test-out"),
    xp: 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 CreateExternalTestOutInput$;
(function (CreateExternalTestOutInput$) {
    /** @deprecated use `CreateExternalTestOutInput$inboundSchema` instead. */
    CreateExternalTestOutInput$.inboundSchema = CreateExternalTestOutInput$inboundSchema;
    /** @deprecated use `CreateExternalTestOutInput$outboundSchema` instead. */
    CreateExternalTestOutInput$.outboundSchema = CreateExternalTestOutInput$outboundSchema;
})(CreateExternalTestOutInput$ || (CreateExternalTestOutInput$ = {}));
export function createExternalTestOutInputToJSON(createExternalTestOutInput) {
    return JSON.stringify(CreateExternalTestOutInput$outboundSchema.parse(createExternalTestOutInput));
}
export function createExternalTestOutInputFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateExternalTestOutInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateExternalTestOutInput' from JSON`);
}
//# sourceMappingURL=createexternaltestoutinput.js.map