"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.Assignment$ = exports.Assignment$outboundSchema = exports.Assignment$inboundSchema = exports.AssignmentStatus$ = exports.AssignmentStatus$outboundSchema = exports.AssignmentStatus$inboundSchema = exports.AssignmentSchemasStatusValue$ = exports.AssignmentSchemasStatusValue$outboundSchema = exports.AssignmentSchemasStatusValue$inboundSchema = exports.AssignmentSchemasStatusSourceValue$ = exports.AssignmentSchemasStatusSourceValue$outboundSchema = exports.AssignmentSchemasStatusSourceValue$inboundSchema = exports.AssignmentSchemasStatus4$ = exports.AssignmentSchemasStatus4$outboundSchema = exports.AssignmentSchemasStatus4$inboundSchema = exports.Result$ = exports.Result$outboundSchema = exports.Result$inboundSchema = exports.AssignmentSchemasValue$ = exports.AssignmentSchemasValue$outboundSchema = exports.AssignmentSchemasValue$inboundSchema = exports.AssignmentSchemasSourceValue$ = exports.AssignmentSchemasSourceValue$outboundSchema = exports.AssignmentSchemasSourceValue$inboundSchema = exports.AssignmentSchemas4$ = exports.AssignmentSchemas4$outboundSchema = exports.AssignmentSchemas4$inboundSchema = exports.LearningObjectType$ = exports.LearningObjectType$outboundSchema = exports.LearningObjectType$inboundSchema = exports.AssignmentValue$ = exports.AssignmentValue$outboundSchema = exports.AssignmentValue$inboundSchema = exports.AssignmentSourceValue$ = exports.AssignmentSourceValue$outboundSchema = exports.AssignmentSourceValue$inboundSchema = exports.Assignment4$ = exports.Assignment4$outboundSchema = exports.Assignment4$inboundSchema = exports.AssignmentSchemasStatusValue = exports.AssignmentSchemasValue = exports.AssignmentValue = void 0;
exports.assignment4ToJSON = assignment4ToJSON;
exports.assignment4FromJSON = assignment4FromJSON;
exports.assignmentSourceValueToJSON = assignmentSourceValueToJSON;
exports.assignmentSourceValueFromJSON = assignmentSourceValueFromJSON;
exports.learningObjectTypeToJSON = learningObjectTypeToJSON;
exports.learningObjectTypeFromJSON = learningObjectTypeFromJSON;
exports.assignmentSchemas4ToJSON = assignmentSchemas4ToJSON;
exports.assignmentSchemas4FromJSON = assignmentSchemas4FromJSON;
exports.assignmentSchemasSourceValueToJSON = assignmentSchemasSourceValueToJSON;
exports.assignmentSchemasSourceValueFromJSON = assignmentSchemasSourceValueFromJSON;
exports.resultToJSON = resultToJSON;
exports.resultFromJSON = resultFromJSON;
exports.assignmentSchemasStatus4ToJSON = assignmentSchemasStatus4ToJSON;
exports.assignmentSchemasStatus4FromJSON = assignmentSchemasStatus4FromJSON;
exports.assignmentSchemasStatusSourceValueToJSON = assignmentSchemasStatusSourceValueToJSON;
exports.assignmentSchemasStatusSourceValueFromJSON = assignmentSchemasStatusSourceValueFromJSON;
exports.assignmentStatusToJSON = assignmentStatusToJSON;
exports.assignmentStatusFromJSON = assignmentStatusFromJSON;
exports.assignmentToJSON = assignmentToJSON;
exports.assignmentFromJSON = assignmentFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
/**
 * The StackOne unified learning object type.
 */
var AssignmentValue;
(function (AssignmentValue) {
    AssignmentValue["Content"] = "content";
    AssignmentValue["Course"] = "course";
    AssignmentValue["Collection"] = "collection";
    AssignmentValue["UnmappedValue"] = "unmapped_value";
})(AssignmentValue || (exports.AssignmentValue = AssignmentValue = {}));
/**
 * The StackOne unified result status.
 */
var AssignmentSchemasValue;
(function (AssignmentSchemasValue) {
    AssignmentSchemasValue["Pass"] = "Pass";
    AssignmentSchemasValue["Fail"] = "Fail";
    AssignmentSchemasValue["UnmappedValue"] = "unmapped_value";
})(AssignmentSchemasValue || (exports.AssignmentSchemasValue = AssignmentSchemasValue = {}));
/**
 * The StackOne unified assignment status.
 */
var AssignmentSchemasStatusValue;
(function (AssignmentSchemasStatusValue) {
    AssignmentSchemasStatusValue["Pending"] = "pending";
    AssignmentSchemasStatusValue["InProgress"] = "in_progress";
    AssignmentSchemasStatusValue["Completed"] = "completed";
    AssignmentSchemasStatusValue["UnmappedValue"] = "unmapped_value";
})(AssignmentSchemasStatusValue || (exports.AssignmentSchemasStatusValue = AssignmentSchemasStatusValue = {}));
/** @internal */
exports.Assignment4$inboundSchema = z.object({});
/** @internal */
exports.Assignment4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Assignment4$;
(function (Assignment4$) {
    /** @deprecated use `Assignment4$inboundSchema` instead. */
    Assignment4$.inboundSchema = exports.Assignment4$inboundSchema;
    /** @deprecated use `Assignment4$outboundSchema` instead. */
    Assignment4$.outboundSchema = exports.Assignment4$outboundSchema;
})(Assignment4$ || (exports.Assignment4$ = Assignment4$ = {}));
function assignment4ToJSON(assignment4) {
    return JSON.stringify(exports.Assignment4$outboundSchema.parse(assignment4));
}
function assignment4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Assignment4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Assignment4' from JSON`);
}
/** @internal */
exports.AssignmentSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.Assignment4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.AssignmentSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.Assignment4$outboundSchema),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSourceValue$;
(function (AssignmentSourceValue$) {
    /** @deprecated use `AssignmentSourceValue$inboundSchema` instead. */
    AssignmentSourceValue$.inboundSchema = exports.AssignmentSourceValue$inboundSchema;
    /** @deprecated use `AssignmentSourceValue$outboundSchema` instead. */
    AssignmentSourceValue$.outboundSchema = exports.AssignmentSourceValue$outboundSchema;
})(AssignmentSourceValue$ || (exports.AssignmentSourceValue$ = AssignmentSourceValue$ = {}));
function assignmentSourceValueToJSON(assignmentSourceValue) {
    return JSON.stringify(exports.AssignmentSourceValue$outboundSchema.parse(assignmentSourceValue));
}
function assignmentSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignmentSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignmentSourceValue' from JSON`);
}
/** @internal */
exports.AssignmentValue$inboundSchema = z
    .union([
    z.nativeEnum(AssignmentValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssignmentValue$outboundSchema = z.union([
    z.nativeEnum(AssignmentValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentValue$;
(function (AssignmentValue$) {
    /** @deprecated use `AssignmentValue$inboundSchema` instead. */
    AssignmentValue$.inboundSchema = exports.AssignmentValue$inboundSchema;
    /** @deprecated use `AssignmentValue$outboundSchema` instead. */
    AssignmentValue$.outboundSchema = exports.AssignmentValue$outboundSchema;
})(AssignmentValue$ || (exports.AssignmentValue$ = AssignmentValue$ = {}));
/** @internal */
exports.LearningObjectType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.Assignment4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.LearningObjectType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.Assignment4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LearningObjectType$;
(function (LearningObjectType$) {
    /** @deprecated use `LearningObjectType$inboundSchema` instead. */
    LearningObjectType$.inboundSchema = exports.LearningObjectType$inboundSchema;
    /** @deprecated use `LearningObjectType$outboundSchema` instead. */
    LearningObjectType$.outboundSchema = exports.LearningObjectType$outboundSchema;
})(LearningObjectType$ || (exports.LearningObjectType$ = LearningObjectType$ = {}));
function learningObjectTypeToJSON(learningObjectType) {
    return JSON.stringify(exports.LearningObjectType$outboundSchema.parse(learningObjectType));
}
function learningObjectTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LearningObjectType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearningObjectType' from JSON`);
}
/** @internal */
exports.AssignmentSchemas4$inboundSchema = z.object({});
/** @internal */
exports.AssignmentSchemas4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSchemas4$;
(function (AssignmentSchemas4$) {
    /** @deprecated use `AssignmentSchemas4$inboundSchema` instead. */
    AssignmentSchemas4$.inboundSchema = exports.AssignmentSchemas4$inboundSchema;
    /** @deprecated use `AssignmentSchemas4$outboundSchema` instead. */
    AssignmentSchemas4$.outboundSchema = exports.AssignmentSchemas4$outboundSchema;
})(AssignmentSchemas4$ || (exports.AssignmentSchemas4$ = AssignmentSchemas4$ = {}));
function assignmentSchemas4ToJSON(assignmentSchemas4) {
    return JSON.stringify(exports.AssignmentSchemas4$outboundSchema.parse(assignmentSchemas4));
}
function assignmentSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignmentSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignmentSchemas4' from JSON`);
}
/** @internal */
exports.AssignmentSchemasSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AssignmentSchemas4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.AssignmentSchemasSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AssignmentSchemas4$outboundSchema),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSchemasSourceValue$;
(function (AssignmentSchemasSourceValue$) {
    /** @deprecated use `AssignmentSchemasSourceValue$inboundSchema` instead. */
    AssignmentSchemasSourceValue$.inboundSchema = exports.AssignmentSchemasSourceValue$inboundSchema;
    /** @deprecated use `AssignmentSchemasSourceValue$outboundSchema` instead. */
    AssignmentSchemasSourceValue$.outboundSchema = exports.AssignmentSchemasSourceValue$outboundSchema;
})(AssignmentSchemasSourceValue$ || (exports.AssignmentSchemasSourceValue$ = AssignmentSchemasSourceValue$ = {}));
function assignmentSchemasSourceValueToJSON(assignmentSchemasSourceValue) {
    return JSON.stringify(exports.AssignmentSchemasSourceValue$outboundSchema.parse(assignmentSchemasSourceValue));
}
function assignmentSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignmentSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignmentSchemasSourceValue' from JSON`);
}
/** @internal */
exports.AssignmentSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(AssignmentSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssignmentSchemasValue$outboundSchema = z.union([
    z.nativeEnum(AssignmentSchemasValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSchemasValue$;
(function (AssignmentSchemasValue$) {
    /** @deprecated use `AssignmentSchemasValue$inboundSchema` instead. */
    AssignmentSchemasValue$.inboundSchema = exports.AssignmentSchemasValue$inboundSchema;
    /** @deprecated use `AssignmentSchemasValue$outboundSchema` instead. */
    AssignmentSchemasValue$.outboundSchema = exports.AssignmentSchemasValue$outboundSchema;
})(AssignmentSchemasValue$ || (exports.AssignmentSchemasValue$ = AssignmentSchemasValue$ = {}));
/** @internal */
exports.Result$inboundSchema = z
    .object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AssignmentSchemas4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.Result$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AssignmentSchemas4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentSchemasValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Result$;
(function (Result$) {
    /** @deprecated use `Result$inboundSchema` instead. */
    Result$.inboundSchema = exports.Result$inboundSchema;
    /** @deprecated use `Result$outboundSchema` instead. */
    Result$.outboundSchema = exports.Result$outboundSchema;
})(Result$ || (exports.Result$ = Result$ = {}));
function resultToJSON(result) {
    return JSON.stringify(exports.Result$outboundSchema.parse(result));
}
function resultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Result$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Result' from JSON`);
}
/** @internal */
exports.AssignmentSchemasStatus4$inboundSchema = z.object({});
/** @internal */
exports.AssignmentSchemasStatus4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSchemasStatus4$;
(function (AssignmentSchemasStatus4$) {
    /** @deprecated use `AssignmentSchemasStatus4$inboundSchema` instead. */
    AssignmentSchemasStatus4$.inboundSchema = exports.AssignmentSchemasStatus4$inboundSchema;
    /** @deprecated use `AssignmentSchemasStatus4$outboundSchema` instead. */
    AssignmentSchemasStatus4$.outboundSchema = exports.AssignmentSchemasStatus4$outboundSchema;
})(AssignmentSchemasStatus4$ || (exports.AssignmentSchemasStatus4$ = AssignmentSchemasStatus4$ = {}));
function assignmentSchemasStatus4ToJSON(assignmentSchemasStatus4) {
    return JSON.stringify(exports.AssignmentSchemasStatus4$outboundSchema.parse(assignmentSchemasStatus4));
}
function assignmentSchemasStatus4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignmentSchemasStatus4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignmentSchemasStatus4' from JSON`);
}
/** @internal */
exports.AssignmentSchemasStatusSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AssignmentSchemasStatus4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.AssignmentSchemasStatusSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AssignmentSchemasStatus4$outboundSchema),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSchemasStatusSourceValue$;
(function (AssignmentSchemasStatusSourceValue$) {
    /** @deprecated use `AssignmentSchemasStatusSourceValue$inboundSchema` instead. */
    AssignmentSchemasStatusSourceValue$.inboundSchema = exports.AssignmentSchemasStatusSourceValue$inboundSchema;
    /** @deprecated use `AssignmentSchemasStatusSourceValue$outboundSchema` instead. */
    AssignmentSchemasStatusSourceValue$.outboundSchema = exports.AssignmentSchemasStatusSourceValue$outboundSchema;
})(AssignmentSchemasStatusSourceValue$ || (exports.AssignmentSchemasStatusSourceValue$ = AssignmentSchemasStatusSourceValue$ = {}));
function assignmentSchemasStatusSourceValueToJSON(assignmentSchemasStatusSourceValue) {
    return JSON.stringify(exports.AssignmentSchemasStatusSourceValue$outboundSchema.parse(assignmentSchemasStatusSourceValue));
}
function assignmentSchemasStatusSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignmentSchemasStatusSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignmentSchemasStatusSourceValue' from JSON`);
}
/** @internal */
exports.AssignmentSchemasStatusValue$inboundSchema = z
    .union([
    z.nativeEnum(AssignmentSchemasStatusValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssignmentSchemasStatusValue$outboundSchema = z.union([
    z.nativeEnum(AssignmentSchemasStatusValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentSchemasStatusValue$;
(function (AssignmentSchemasStatusValue$) {
    /** @deprecated use `AssignmentSchemasStatusValue$inboundSchema` instead. */
    AssignmentSchemasStatusValue$.inboundSchema = exports.AssignmentSchemasStatusValue$inboundSchema;
    /** @deprecated use `AssignmentSchemasStatusValue$outboundSchema` instead. */
    AssignmentSchemasStatusValue$.outboundSchema = exports.AssignmentSchemasStatusValue$outboundSchema;
})(AssignmentSchemasStatusValue$ || (exports.AssignmentSchemasStatusValue$ = AssignmentSchemasStatusValue$ = {}));
/** @internal */
exports.AssignmentStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AssignmentSchemasStatus4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentSchemasStatusValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AssignmentStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AssignmentSchemasStatus4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssignmentSchemasStatusValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignmentStatus$;
(function (AssignmentStatus$) {
    /** @deprecated use `AssignmentStatus$inboundSchema` instead. */
    AssignmentStatus$.inboundSchema = exports.AssignmentStatus$inboundSchema;
    /** @deprecated use `AssignmentStatus$outboundSchema` instead. */
    AssignmentStatus$.outboundSchema = exports.AssignmentStatus$outboundSchema;
})(AssignmentStatus$ || (exports.AssignmentStatus$ = AssignmentStatus$ = {}));
function assignmentStatusToJSON(assignmentStatus) {
    return JSON.stringify(exports.AssignmentStatus$outboundSchema.parse(assignmentStatus));
}
function assignmentStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignmentStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignmentStatus' from JSON`);
}
/** @internal */
exports.Assignment$inboundSchema = z.object({
    certificate_url: z.nullable(z.string()).optional(),
    completed_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    course_id: z.nullable(z.string()).optional(),
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    due_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    external_reference: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    learning_object_external_reference: z.nullable(z.string()).optional(),
    learning_object_id: z.nullable(z.string()).optional(),
    learning_object_type: z.nullable(z.lazy(() => exports.LearningObjectType$inboundSchema)).optional(),
    progress: z.nullable(z.number()).optional(),
    remote_course_id: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    remote_learning_object_id: z.nullable(z.string()).optional(),
    remote_user_id: z.nullable(z.string()).optional(),
    result: z.nullable(z.lazy(() => exports.Result$inboundSchema)).optional(),
    status: z.nullable(z.lazy(() => exports.AssignmentStatus$inboundSchema)).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    user_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "certificate_url": "certificateUrl",
        "completed_at": "completedAt",
        "course_id": "courseId",
        "created_at": "createdAt",
        "due_date": "dueDate",
        "external_reference": "externalReference",
        "learning_object_external_reference": "learningObjectExternalReference",
        "learning_object_id": "learningObjectId",
        "learning_object_type": "learningObjectType",
        "remote_course_id": "remoteCourseId",
        "remote_id": "remoteId",
        "remote_learning_object_id": "remoteLearningObjectId",
        "remote_user_id": "remoteUserId",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
        "user_id": "userId",
    });
});
/** @internal */
exports.Assignment$outboundSchema = z.object({
    certificateUrl: z.nullable(z.string()).optional(),
    completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    courseId: z.nullable(z.string()).optional(),
    createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    externalReference: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    learningObjectExternalReference: z.nullable(z.string()).optional(),
    learningObjectId: z.nullable(z.string()).optional(),
    learningObjectType: z.nullable(z.lazy(() => exports.LearningObjectType$outboundSchema)).optional(),
    progress: z.nullable(z.number()).optional(),
    remoteCourseId: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    remoteLearningObjectId: z.nullable(z.string()).optional(),
    remoteUserId: z.nullable(z.string()).optional(),
    result: z.nullable(z.lazy(() => exports.Result$outboundSchema)).optional(),
    status: z.nullable(z.lazy(() => exports.AssignmentStatus$outboundSchema)).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    userId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        certificateUrl: "certificate_url",
        completedAt: "completed_at",
        courseId: "course_id",
        createdAt: "created_at",
        dueDate: "due_date",
        externalReference: "external_reference",
        learningObjectExternalReference: "learning_object_external_reference",
        learningObjectId: "learning_object_id",
        learningObjectType: "learning_object_type",
        remoteCourseId: "remote_course_id",
        remoteId: "remote_id",
        remoteLearningObjectId: "remote_learning_object_id",
        remoteUserId: "remote_user_id",
        unifiedCustomFields: "unified_custom_fields",
        updatedAt: "updated_at",
        userId: "user_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Assignment$;
(function (Assignment$) {
    /** @deprecated use `Assignment$inboundSchema` instead. */
    Assignment$.inboundSchema = exports.Assignment$inboundSchema;
    /** @deprecated use `Assignment$outboundSchema` instead. */
    Assignment$.outboundSchema = exports.Assignment$outboundSchema;
})(Assignment$ || (exports.Assignment$ = Assignment$ = {}));
function assignmentToJSON(assignment) {
    return JSON.stringify(exports.Assignment$outboundSchema.parse(assignment));
}
function assignmentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Assignment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Assignment' from JSON`);
}
//# sourceMappingURL=assignment.js.map