"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.CreateAssessmentResultResponse$ = exports.CreateAssessmentResultResponse$outboundSchema = exports.CreateAssessmentResultResponse$inboundSchema = exports.CreateAssessmentResultSourcedIdPairs$ = exports.CreateAssessmentResultSourcedIdPairs$outboundSchema = exports.CreateAssessmentResultSourcedIdPairs$inboundSchema = exports.CreateAssessmentResultRequest$ = exports.CreateAssessmentResultRequest$outboundSchema = exports.CreateAssessmentResultRequest$inboundSchema = void 0;
exports.createAssessmentResultRequestToJSON = createAssessmentResultRequestToJSON;
exports.createAssessmentResultRequestFromJSON = createAssessmentResultRequestFromJSON;
exports.createAssessmentResultSourcedIdPairsToJSON = createAssessmentResultSourcedIdPairsToJSON;
exports.createAssessmentResultSourcedIdPairsFromJSON = createAssessmentResultSourcedIdPairsFromJSON;
exports.createAssessmentResultResponseToJSON = createAssessmentResultResponseToJSON;
exports.createAssessmentResultResponseFromJSON = createAssessmentResultResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.CreateAssessmentResultRequest$inboundSchema = z.object({
    assessmentResult: components.AssessmentResult$inboundSchema,
});
/** @internal */
exports.CreateAssessmentResultRequest$outboundSchema = z.object({
    assessmentResult: components.AssessmentResult$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateAssessmentResultRequest$;
(function (CreateAssessmentResultRequest$) {
    /** @deprecated use `CreateAssessmentResultRequest$inboundSchema` instead. */
    CreateAssessmentResultRequest$.inboundSchema = exports.CreateAssessmentResultRequest$inboundSchema;
    /** @deprecated use `CreateAssessmentResultRequest$outboundSchema` instead. */
    CreateAssessmentResultRequest$.outboundSchema = exports.CreateAssessmentResultRequest$outboundSchema;
})(CreateAssessmentResultRequest$ || (exports.CreateAssessmentResultRequest$ = CreateAssessmentResultRequest$ = {}));
function createAssessmentResultRequestToJSON(createAssessmentResultRequest) {
    return JSON.stringify(exports.CreateAssessmentResultRequest$outboundSchema.parse(createAssessmentResultRequest));
}
function createAssessmentResultRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssessmentResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentResultRequest' from JSON`);
}
/** @internal */
exports.CreateAssessmentResultSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.CreateAssessmentResultSourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateAssessmentResultSourcedIdPairs$;
(function (CreateAssessmentResultSourcedIdPairs$) {
    /** @deprecated use `CreateAssessmentResultSourcedIdPairs$inboundSchema` instead. */
    CreateAssessmentResultSourcedIdPairs$.inboundSchema = exports.CreateAssessmentResultSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateAssessmentResultSourcedIdPairs$outboundSchema` instead. */
    CreateAssessmentResultSourcedIdPairs$.outboundSchema = exports.CreateAssessmentResultSourcedIdPairs$outboundSchema;
})(CreateAssessmentResultSourcedIdPairs$ || (exports.CreateAssessmentResultSourcedIdPairs$ = CreateAssessmentResultSourcedIdPairs$ = {}));
function createAssessmentResultSourcedIdPairsToJSON(createAssessmentResultSourcedIdPairs) {
    return JSON.stringify(exports.CreateAssessmentResultSourcedIdPairs$outboundSchema.parse(createAssessmentResultSourcedIdPairs));
}
function createAssessmentResultSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssessmentResultSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentResultSourcedIdPairs' from JSON`);
}
/** @internal */
exports.CreateAssessmentResultResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateAssessmentResultSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.CreateAssessmentResultResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateAssessmentResultSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateAssessmentResultResponse$;
(function (CreateAssessmentResultResponse$) {
    /** @deprecated use `CreateAssessmentResultResponse$inboundSchema` instead. */
    CreateAssessmentResultResponse$.inboundSchema = exports.CreateAssessmentResultResponse$inboundSchema;
    /** @deprecated use `CreateAssessmentResultResponse$outboundSchema` instead. */
    CreateAssessmentResultResponse$.outboundSchema = exports.CreateAssessmentResultResponse$outboundSchema;
})(CreateAssessmentResultResponse$ || (exports.CreateAssessmentResultResponse$ = CreateAssessmentResultResponse$ = {}));
function createAssessmentResultResponseToJSON(createAssessmentResultResponse) {
    return JSON.stringify(exports.CreateAssessmentResultResponse$outboundSchema.parse(createAssessmentResultResponse));
}
function createAssessmentResultResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssessmentResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentResultResponse' from JSON`);
}
//# sourceMappingURL=createassessmentresult.js.map