/*
 * 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 UpdateResultRequestBody$inboundSchema = z.object({
    result: components.Result$inboundSchema,
});
/** @internal */
export const UpdateResultRequestBody$outboundSchema = z.object({
    result: components.Result$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateResultRequestBody$;
(function (UpdateResultRequestBody$) {
    /** @deprecated use `UpdateResultRequestBody$inboundSchema` instead. */
    UpdateResultRequestBody$.inboundSchema = UpdateResultRequestBody$inboundSchema;
    /** @deprecated use `UpdateResultRequestBody$outboundSchema` instead. */
    UpdateResultRequestBody$.outboundSchema = UpdateResultRequestBody$outboundSchema;
})(UpdateResultRequestBody$ || (UpdateResultRequestBody$ = {}));
export function updateResultRequestBodyToJSON(updateResultRequestBody) {
    return JSON.stringify(UpdateResultRequestBody$outboundSchema.parse(updateResultRequestBody));
}
export function updateResultRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateResultRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResultRequestBody' from JSON`);
}
/** @internal */
export const UpdateResultRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => UpdateResultRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateResultRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => UpdateResultRequestBody$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 UpdateResultRequest$;
(function (UpdateResultRequest$) {
    /** @deprecated use `UpdateResultRequest$inboundSchema` instead. */
    UpdateResultRequest$.inboundSchema = UpdateResultRequest$inboundSchema;
    /** @deprecated use `UpdateResultRequest$outboundSchema` instead. */
    UpdateResultRequest$.outboundSchema = UpdateResultRequest$outboundSchema;
})(UpdateResultRequest$ || (UpdateResultRequest$ = {}));
export function updateResultRequestToJSON(updateResultRequest) {
    return JSON.stringify(UpdateResultRequest$outboundSchema.parse(updateResultRequest));
}
export function updateResultRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResultRequest' from JSON`);
}
/** @internal */
export const UpdateResultResponse$inboundSchema = z.object({
    result: components.Result$inboundSchema,
});
/** @internal */
export const UpdateResultResponse$outboundSchema = z.object({
    result: components.Result$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateResultResponse$;
(function (UpdateResultResponse$) {
    /** @deprecated use `UpdateResultResponse$inboundSchema` instead. */
    UpdateResultResponse$.inboundSchema = UpdateResultResponse$inboundSchema;
    /** @deprecated use `UpdateResultResponse$outboundSchema` instead. */
    UpdateResultResponse$.outboundSchema = UpdateResultResponse$outboundSchema;
})(UpdateResultResponse$ || (UpdateResultResponse$ = {}));
export function updateResultResponseToJSON(updateResultResponse) {
    return JSON.stringify(UpdateResultResponse$outboundSchema.parse(updateResultResponse));
}
export function updateResultResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResultResponse' from JSON`);
}
//# sourceMappingURL=updateresult.js.map