/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const GetResultRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetResultRequest$outboundSchema = z.object({
    sourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResultRequest$;
(function (GetResultRequest$) {
    /** @deprecated use `GetResultRequest$inboundSchema` instead. */
    GetResultRequest$.inboundSchema = GetResultRequest$inboundSchema;
    /** @deprecated use `GetResultRequest$outboundSchema` instead. */
    GetResultRequest$.outboundSchema = GetResultRequest$outboundSchema;
})(GetResultRequest$ || (GetResultRequest$ = {}));
export function getResultRequestToJSON(getResultRequest) {
    return JSON.stringify(GetResultRequest$outboundSchema.parse(getResultRequest));
}
export function getResultRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultRequest' from JSON`);
}
/** @internal */
export const GetResultResponse$inboundSchema = z.object({
    result: components.Result$inboundSchema,
});
/** @internal */
export const GetResultResponse$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 GetResultResponse$;
(function (GetResultResponse$) {
    /** @deprecated use `GetResultResponse$inboundSchema` instead. */
    GetResultResponse$.inboundSchema = GetResultResponse$inboundSchema;
    /** @deprecated use `GetResultResponse$outboundSchema` instead. */
    GetResultResponse$.outboundSchema = GetResultResponse$outboundSchema;
})(GetResultResponse$ || (GetResultResponse$ = {}));
export function getResultResponseToJSON(getResultResponse) {
    return JSON.stringify(GetResultResponse$outboundSchema.parse(getResultResponse));
}
export function getResultResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResultResponse' from JSON`);
}
//# sourceMappingURL=getresult.js.map