/*
 * 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 CreateResultRequest$inboundSchema = z.object({
    result: components.Result$inboundSchema,
});
/** @internal */
export const CreateResultRequest$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 CreateResultRequest$;
(function (CreateResultRequest$) {
    /** @deprecated use `CreateResultRequest$inboundSchema` instead. */
    CreateResultRequest$.inboundSchema = CreateResultRequest$inboundSchema;
    /** @deprecated use `CreateResultRequest$outboundSchema` instead. */
    CreateResultRequest$.outboundSchema = CreateResultRequest$outboundSchema;
})(CreateResultRequest$ || (CreateResultRequest$ = {}));
export function createResultRequestToJSON(createResultRequest) {
    return JSON.stringify(CreateResultRequest$outboundSchema.parse(createResultRequest));
}
export function createResultRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultRequest' from JSON`);
}
/** @internal */
export const CreateResultSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateResultSourcedIdPairs$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.
 */
export var CreateResultSourcedIdPairs$;
(function (CreateResultSourcedIdPairs$) {
    /** @deprecated use `CreateResultSourcedIdPairs$inboundSchema` instead. */
    CreateResultSourcedIdPairs$.inboundSchema = CreateResultSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateResultSourcedIdPairs$outboundSchema` instead. */
    CreateResultSourcedIdPairs$.outboundSchema = CreateResultSourcedIdPairs$outboundSchema;
})(CreateResultSourcedIdPairs$ || (CreateResultSourcedIdPairs$ = {}));
export function createResultSourcedIdPairsToJSON(createResultSourcedIdPairs) {
    return JSON.stringify(CreateResultSourcedIdPairs$outboundSchema.parse(createResultSourcedIdPairs));
}
export function createResultSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultSourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateResultResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateResultSourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateResultResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateResultSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateResultResponse$;
(function (CreateResultResponse$) {
    /** @deprecated use `CreateResultResponse$inboundSchema` instead. */
    CreateResultResponse$.inboundSchema = CreateResultResponse$inboundSchema;
    /** @deprecated use `CreateResultResponse$outboundSchema` instead. */
    CreateResultResponse$.outboundSchema = CreateResultResponse$outboundSchema;
})(CreateResultResponse$ || (CreateResultResponse$ = {}));
export function createResultResponseToJSON(createResultResponse) {
    return JSON.stringify(CreateResultResponse$outboundSchema.parse(createResultResponse));
}
export function createResultResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultResponse' from JSON`);
}
//# sourceMappingURL=createresult.js.map