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