"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.MakeExternalTestAssignmentResponse$ = exports.MakeExternalTestAssignmentResponse$outboundSchema = exports.MakeExternalTestAssignmentResponse$inboundSchema = exports.MakeExternalTestAssignmentCredentials$ = exports.MakeExternalTestAssignmentCredentials$outboundSchema = exports.MakeExternalTestAssignmentCredentials$inboundSchema = exports.MakeExternalTestAssignmentLessonType$ = exports.MakeExternalTestAssignmentLessonType$outboundSchema = exports.MakeExternalTestAssignmentLessonType$inboundSchema = exports.ToolProvider$ = exports.ToolProvider$outboundSchema = exports.ToolProvider$inboundSchema = exports.MakeExternalTestAssignmentRequest$ = exports.MakeExternalTestAssignmentRequest$outboundSchema = exports.MakeExternalTestAssignmentRequest$inboundSchema = exports.MakeExternalTestAssignmentLessonType = exports.ToolProvider = void 0;
exports.makeExternalTestAssignmentRequestToJSON = makeExternalTestAssignmentRequestToJSON;
exports.makeExternalTestAssignmentRequestFromJSON = makeExternalTestAssignmentRequestFromJSON;
exports.makeExternalTestAssignmentCredentialsToJSON = makeExternalTestAssignmentCredentialsToJSON;
exports.makeExternalTestAssignmentCredentialsFromJSON = makeExternalTestAssignmentCredentialsFromJSON;
exports.makeExternalTestAssignmentResponseToJSON = makeExternalTestAssignmentResponseToJSON;
exports.makeExternalTestAssignmentResponseFromJSON = makeExternalTestAssignmentResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.ToolProvider = {
    Edulastic: "edulastic",
};
exports.MakeExternalTestAssignmentLessonType = {
    TestOut: "test-out",
    Placement: "placement",
};
/** @internal */
exports.MakeExternalTestAssignmentRequest$inboundSchema = z.object({
    student: z.string(),
    lesson: z.string(),
    applicationName: z.string().optional(),
});
/** @internal */
exports.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.
 */
var MakeExternalTestAssignmentRequest$;
(function (MakeExternalTestAssignmentRequest$) {
    /** @deprecated use `MakeExternalTestAssignmentRequest$inboundSchema` instead. */
    MakeExternalTestAssignmentRequest$.inboundSchema = exports.MakeExternalTestAssignmentRequest$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentRequest$outboundSchema` instead. */
    MakeExternalTestAssignmentRequest$.outboundSchema = exports.MakeExternalTestAssignmentRequest$outboundSchema;
})(MakeExternalTestAssignmentRequest$ || (exports.MakeExternalTestAssignmentRequest$ = MakeExternalTestAssignmentRequest$ = {}));
function makeExternalTestAssignmentRequestToJSON(makeExternalTestAssignmentRequest) {
    return JSON.stringify(exports.MakeExternalTestAssignmentRequest$outboundSchema.parse(makeExternalTestAssignmentRequest));
}
function makeExternalTestAssignmentRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MakeExternalTestAssignmentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MakeExternalTestAssignmentRequest' from JSON`);
}
/** @internal */
exports.ToolProvider$inboundSchema = z.nativeEnum(exports.ToolProvider);
/** @internal */
exports.ToolProvider$outboundSchema = exports.ToolProvider$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ToolProvider$;
(function (ToolProvider$) {
    /** @deprecated use `ToolProvider$inboundSchema` instead. */
    ToolProvider$.inboundSchema = exports.ToolProvider$inboundSchema;
    /** @deprecated use `ToolProvider$outboundSchema` instead. */
    ToolProvider$.outboundSchema = exports.ToolProvider$outboundSchema;
})(ToolProvider$ || (exports.ToolProvider$ = ToolProvider$ = {}));
/** @internal */
exports.MakeExternalTestAssignmentLessonType$inboundSchema = z.nativeEnum(exports.MakeExternalTestAssignmentLessonType);
/** @internal */
exports.MakeExternalTestAssignmentLessonType$outboundSchema = exports.MakeExternalTestAssignmentLessonType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var MakeExternalTestAssignmentLessonType$;
(function (MakeExternalTestAssignmentLessonType$) {
    /** @deprecated use `MakeExternalTestAssignmentLessonType$inboundSchema` instead. */
    MakeExternalTestAssignmentLessonType$.inboundSchema = exports.MakeExternalTestAssignmentLessonType$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentLessonType$outboundSchema` instead. */
    MakeExternalTestAssignmentLessonType$.outboundSchema = exports.MakeExternalTestAssignmentLessonType$outboundSchema;
})(MakeExternalTestAssignmentLessonType$ || (exports.MakeExternalTestAssignmentLessonType$ = MakeExternalTestAssignmentLessonType$ = {}));
/** @internal */
exports.MakeExternalTestAssignmentCredentials$inboundSchema = z.object({
    email: z.string(),
    password: z.string(),
});
/** @internal */
exports.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.
 */
var MakeExternalTestAssignmentCredentials$;
(function (MakeExternalTestAssignmentCredentials$) {
    /** @deprecated use `MakeExternalTestAssignmentCredentials$inboundSchema` instead. */
    MakeExternalTestAssignmentCredentials$.inboundSchema = exports.MakeExternalTestAssignmentCredentials$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentCredentials$outboundSchema` instead. */
    MakeExternalTestAssignmentCredentials$.outboundSchema = exports.MakeExternalTestAssignmentCredentials$outboundSchema;
})(MakeExternalTestAssignmentCredentials$ || (exports.MakeExternalTestAssignmentCredentials$ = MakeExternalTestAssignmentCredentials$ = {}));
function makeExternalTestAssignmentCredentialsToJSON(makeExternalTestAssignmentCredentials) {
    return JSON.stringify(exports.MakeExternalTestAssignmentCredentials$outboundSchema.parse(makeExternalTestAssignmentCredentials));
}
function makeExternalTestAssignmentCredentialsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MakeExternalTestAssignmentCredentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MakeExternalTestAssignmentCredentials' from JSON`);
}
/** @internal */
exports.MakeExternalTestAssignmentResponse$inboundSchema = z.object({
    toolProvider: exports.ToolProvider$inboundSchema,
    lessonType: exports.MakeExternalTestAssignmentLessonType$inboundSchema,
    attempt: z.number(),
    credentials: z.lazy(() => exports.MakeExternalTestAssignmentCredentials$inboundSchema)
        .optional(),
    assignmentId: z.string().optional(),
    classId: z.string().optional(),
    testUrl: z.string().optional(),
    testId: z.string().optional(),
});
/** @internal */
exports.MakeExternalTestAssignmentResponse$outboundSchema = z.object({
    toolProvider: exports.ToolProvider$outboundSchema,
    lessonType: exports.MakeExternalTestAssignmentLessonType$outboundSchema,
    attempt: z.number(),
    credentials: z.lazy(() => exports.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.
 */
var MakeExternalTestAssignmentResponse$;
(function (MakeExternalTestAssignmentResponse$) {
    /** @deprecated use `MakeExternalTestAssignmentResponse$inboundSchema` instead. */
    MakeExternalTestAssignmentResponse$.inboundSchema = exports.MakeExternalTestAssignmentResponse$inboundSchema;
    /** @deprecated use `MakeExternalTestAssignmentResponse$outboundSchema` instead. */
    MakeExternalTestAssignmentResponse$.outboundSchema = exports.MakeExternalTestAssignmentResponse$outboundSchema;
})(MakeExternalTestAssignmentResponse$ || (exports.MakeExternalTestAssignmentResponse$ = MakeExternalTestAssignmentResponse$ = {}));
function makeExternalTestAssignmentResponseToJSON(makeExternalTestAssignmentResponse) {
    return JSON.stringify(exports.MakeExternalTestAssignmentResponse$outboundSchema.parse(makeExternalTestAssignmentResponse));
}
function makeExternalTestAssignmentResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MakeExternalTestAssignmentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MakeExternalTestAssignmentResponse' from JSON`);
}
//# sourceMappingURL=makeexternaltestassignment.js.map