/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { BasinConfig$inboundSchema, BasinConfig$outboundSchema, } from "./basinconfig.js";
import { BasinScope$inboundSchema, BasinScope$outboundSchema, } from "./basinscope.js";
/** @internal */
export const CreateOrReconfigureBasinRequestScope$inboundSchema = BasinScope$inboundSchema;
/** @internal */
export const CreateOrReconfigureBasinRequestScope$outboundSchema = BasinScope$outboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateOrReconfigureBasinRequestScope$;
(function (CreateOrReconfigureBasinRequestScope$) {
    /** @deprecated use `CreateOrReconfigureBasinRequestScope$inboundSchema` instead. */
    CreateOrReconfigureBasinRequestScope$.inboundSchema = CreateOrReconfigureBasinRequestScope$inboundSchema;
    /** @deprecated use `CreateOrReconfigureBasinRequestScope$outboundSchema` instead. */
    CreateOrReconfigureBasinRequestScope$.outboundSchema = CreateOrReconfigureBasinRequestScope$outboundSchema;
})(CreateOrReconfigureBasinRequestScope$ || (CreateOrReconfigureBasinRequestScope$ = {}));
export function createOrReconfigureBasinRequestScopeToJSON(createOrReconfigureBasinRequestScope) {
    return JSON.stringify(CreateOrReconfigureBasinRequestScope$outboundSchema.parse(createOrReconfigureBasinRequestScope));
}
export function createOrReconfigureBasinRequestScopeFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateOrReconfigureBasinRequestScope$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateOrReconfigureBasinRequestScope' from JSON`);
}
/** @internal */
export const CreateOrReconfigureBasinRequest$inboundSchema = z.object({
    config: z.nullable(BasinConfig$inboundSchema).optional(),
    scope: BasinScope$inboundSchema.optional(),
});
/** @internal */
export const CreateOrReconfigureBasinRequest$outboundSchema = z.object({
    config: z.nullable(BasinConfig$outboundSchema).optional(),
    scope: BasinScope$outboundSchema.optional(),
});
/**
 * @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=createorreconfigurebasinrequest.js.map