/*
 * 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 ReconfigureBasinRequest$inboundSchema = z.object({
    basin: z.string(),
    BasinReconfiguration: components.BasinReconfiguration$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "BasinReconfiguration": "basinReconfiguration",
    });
});
/** @internal */
export const ReconfigureBasinRequest$outboundSchema = z.object({
    basin: z.string(),
    basinReconfiguration: components.BasinReconfiguration$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        basinReconfiguration: "BasinReconfiguration",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ReconfigureBasinRequest$;
(function (ReconfigureBasinRequest$) {
    /** @deprecated use `ReconfigureBasinRequest$inboundSchema` instead. */
    ReconfigureBasinRequest$.inboundSchema = ReconfigureBasinRequest$inboundSchema;
    /** @deprecated use `ReconfigureBasinRequest$outboundSchema` instead. */
    ReconfigureBasinRequest$.outboundSchema = ReconfigureBasinRequest$outboundSchema;
})(ReconfigureBasinRequest$ || (ReconfigureBasinRequest$ = {}));
export function reconfigureBasinRequestToJSON(reconfigureBasinRequest) {
    return JSON.stringify(ReconfigureBasinRequest$outboundSchema.parse(reconfigureBasinRequest));
}
export function reconfigureBasinRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ReconfigureBasinRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReconfigureBasinRequest' from JSON`);
}
//# sourceMappingURL=reconfigurebasin.js.map