"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.UpdateResultResponse$ = exports.UpdateResultResponse$outboundSchema = exports.UpdateResultResponse$inboundSchema = exports.UpdateResultRequest$ = exports.UpdateResultRequest$outboundSchema = exports.UpdateResultRequest$inboundSchema = exports.UpdateResultRequestBody$ = exports.UpdateResultRequestBody$outboundSchema = exports.UpdateResultRequestBody$inboundSchema = void 0;
exports.updateResultRequestBodyToJSON = updateResultRequestBodyToJSON;
exports.updateResultRequestBodyFromJSON = updateResultRequestBodyFromJSON;
exports.updateResultRequestToJSON = updateResultRequestToJSON;
exports.updateResultRequestFromJSON = updateResultRequestFromJSON;
exports.updateResultResponseToJSON = updateResultResponseToJSON;
exports.updateResultResponseFromJSON = updateResultResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.UpdateResultRequestBody$inboundSchema = z.object({
    result: components.Result$inboundSchema,
});
/** @internal */
exports.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.
 */
var UpdateResultRequestBody$;
(function (UpdateResultRequestBody$) {
    /** @deprecated use `UpdateResultRequestBody$inboundSchema` instead. */
    UpdateResultRequestBody$.inboundSchema = exports.UpdateResultRequestBody$inboundSchema;
    /** @deprecated use `UpdateResultRequestBody$outboundSchema` instead. */
    UpdateResultRequestBody$.outboundSchema = exports.UpdateResultRequestBody$outboundSchema;
})(UpdateResultRequestBody$ || (exports.UpdateResultRequestBody$ = UpdateResultRequestBody$ = {}));
function updateResultRequestBodyToJSON(updateResultRequestBody) {
    return JSON.stringify(exports.UpdateResultRequestBody$outboundSchema.parse(updateResultRequestBody));
}
function updateResultRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateResultRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResultRequestBody' from JSON`);
}
/** @internal */
exports.UpdateResultRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => exports.UpdateResultRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.UpdateResultRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => exports.UpdateResultRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var UpdateResultRequest$;
(function (UpdateResultRequest$) {
    /** @deprecated use `UpdateResultRequest$inboundSchema` instead. */
    UpdateResultRequest$.inboundSchema = exports.UpdateResultRequest$inboundSchema;
    /** @deprecated use `UpdateResultRequest$outboundSchema` instead. */
    UpdateResultRequest$.outboundSchema = exports.UpdateResultRequest$outboundSchema;
})(UpdateResultRequest$ || (exports.UpdateResultRequest$ = UpdateResultRequest$ = {}));
function updateResultRequestToJSON(updateResultRequest) {
    return JSON.stringify(exports.UpdateResultRequest$outboundSchema.parse(updateResultRequest));
}
function updateResultRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResultRequest' from JSON`);
}
/** @internal */
exports.UpdateResultResponse$inboundSchema = z.object({
    result: components.Result$inboundSchema,
});
/** @internal */
exports.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.
 */
var UpdateResultResponse$;
(function (UpdateResultResponse$) {
    /** @deprecated use `UpdateResultResponse$inboundSchema` instead. */
    UpdateResultResponse$.inboundSchema = exports.UpdateResultResponse$inboundSchema;
    /** @deprecated use `UpdateResultResponse$outboundSchema` instead. */
    UpdateResultResponse$.outboundSchema = exports.UpdateResultResponse$outboundSchema;
})(UpdateResultResponse$ || (exports.UpdateResultResponse$ = UpdateResultResponse$ = {}));
function updateResultResponseToJSON(updateResultResponse) {
    return JSON.stringify(exports.UpdateResultResponse$outboundSchema.parse(updateResultResponse));
}
function updateResultResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResultResponse' from JSON`);
}
//# sourceMappingURL=updateresult.js.map