/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const UpdateAssessmentResultRequestBody$inboundSchema = z.object({
    assessmentResult: components.AssessmentResult$inboundSchema,
});
/** @internal */
export const UpdateAssessmentResultRequestBody$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.
 */
export var UpdateAssessmentResultRequestBody$;
(function (UpdateAssessmentResultRequestBody$) {
    /** @deprecated use `UpdateAssessmentResultRequestBody$inboundSchema` instead. */
    UpdateAssessmentResultRequestBody$.inboundSchema = UpdateAssessmentResultRequestBody$inboundSchema;
    /** @deprecated use `UpdateAssessmentResultRequestBody$outboundSchema` instead. */
    UpdateAssessmentResultRequestBody$.outboundSchema = UpdateAssessmentResultRequestBody$outboundSchema;
})(UpdateAssessmentResultRequestBody$ || (UpdateAssessmentResultRequestBody$ = {}));
export function updateAssessmentResultRequestBodyToJSON(updateAssessmentResultRequestBody) {
    return JSON.stringify(UpdateAssessmentResultRequestBody$outboundSchema.parse(updateAssessmentResultRequestBody));
}
export function updateAssessmentResultRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateAssessmentResultRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentResultRequestBody' from JSON`);
}
/** @internal */
export const UpdateAssessmentResultRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => UpdateAssessmentResultRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateAssessmentResultRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => UpdateAssessmentResultRequestBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateAssessmentResultRequest$;
(function (UpdateAssessmentResultRequest$) {
    /** @deprecated use `UpdateAssessmentResultRequest$inboundSchema` instead. */
    UpdateAssessmentResultRequest$.inboundSchema = UpdateAssessmentResultRequest$inboundSchema;
    /** @deprecated use `UpdateAssessmentResultRequest$outboundSchema` instead. */
    UpdateAssessmentResultRequest$.outboundSchema = UpdateAssessmentResultRequest$outboundSchema;
})(UpdateAssessmentResultRequest$ || (UpdateAssessmentResultRequest$ = {}));
export function updateAssessmentResultRequestToJSON(updateAssessmentResultRequest) {
    return JSON.stringify(UpdateAssessmentResultRequest$outboundSchema.parse(updateAssessmentResultRequest));
}
export function updateAssessmentResultRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateAssessmentResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentResultRequest' from JSON`);
}
/** @internal */
export const UpdateAssessmentResultResponse$inboundSchema = z.object({
    assessmentResult: components.AssessmentResult$inboundSchema,
});
/** @internal */
export const UpdateAssessmentResultResponse$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.
 */
export var UpdateAssessmentResultResponse$;
(function (UpdateAssessmentResultResponse$) {
    /** @deprecated use `UpdateAssessmentResultResponse$inboundSchema` instead. */
    UpdateAssessmentResultResponse$.inboundSchema = UpdateAssessmentResultResponse$inboundSchema;
    /** @deprecated use `UpdateAssessmentResultResponse$outboundSchema` instead. */
    UpdateAssessmentResultResponse$.outboundSchema = UpdateAssessmentResultResponse$outboundSchema;
})(UpdateAssessmentResultResponse$ || (UpdateAssessmentResultResponse$ = {}));
export function updateAssessmentResultResponseToJSON(updateAssessmentResultResponse) {
    return JSON.stringify(UpdateAssessmentResultResponse$outboundSchema.parse(updateAssessmentResultResponse));
}
export function updateAssessmentResultResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateAssessmentResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentResultResponse' from JSON`);
}
//# sourceMappingURL=updateassessmentresult.js.map