/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { BasinScope$inboundSchema, BasinScope$outboundSchema, } from "./basinscope.js";
import { BasinState$inboundSchema, BasinState$outboundSchema, } from "./basinstate.js";
/** @internal */
export const BasinInfo$inboundSchema = z.object({
    name: z.string(),
    scope: BasinScope$inboundSchema,
    state: BasinState$inboundSchema,
});
/** @internal */
export const BasinInfo$outboundSchema = z.object({
    name: z.string(),
    scope: BasinScope$outboundSchema,
    state: BasinState$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var BasinInfo$;
(function (BasinInfo$) {
    /** @deprecated use `BasinInfo$inboundSchema` instead. */
    BasinInfo$.inboundSchema = BasinInfo$inboundSchema;
    /** @deprecated use `BasinInfo$outboundSchema` instead. */
    BasinInfo$.outboundSchema = BasinInfo$outboundSchema;
})(BasinInfo$ || (BasinInfo$ = {}));
export function basinInfoToJSON(basinInfo) {
    return JSON.stringify(BasinInfo$outboundSchema.parse(basinInfo));
}
export function basinInfoFromJSON(jsonString) {
    return safeParse(jsonString, (x) => BasinInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BasinInfo' from JSON`);
}
//# sourceMappingURL=basininfo.js.map