/*
 * 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";
export const ReconfigureStreamServerList = [
    /**
     * Endpoint for the basin
     */
    "https://{basin}.b.aws.s2.dev/v1",
];
/** @internal */
export const ReconfigureStreamRequest$inboundSchema = z.object({
    stream: z.string(),
    "s2-basin": z.string(),
    StreamReconfiguration: components.StreamReconfiguration$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "s2-basin": "s2Basin",
        "StreamReconfiguration": "streamReconfiguration",
    });
});
/** @internal */
export const ReconfigureStreamRequest$outboundSchema = z.object({
    stream: z.string(),
    s2Basin: z.string(),
    streamReconfiguration: components.StreamReconfiguration$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        s2Basin: "s2-basin",
        streamReconfiguration: "StreamReconfiguration",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ReconfigureStreamRequest$;
(function (ReconfigureStreamRequest$) {
    /** @deprecated use `ReconfigureStreamRequest$inboundSchema` instead. */
    ReconfigureStreamRequest$.inboundSchema = ReconfigureStreamRequest$inboundSchema;
    /** @deprecated use `ReconfigureStreamRequest$outboundSchema` instead. */
    ReconfigureStreamRequest$.outboundSchema = ReconfigureStreamRequest$outboundSchema;
})(ReconfigureStreamRequest$ || (ReconfigureStreamRequest$ = {}));
export function reconfigureStreamRequestToJSON(reconfigureStreamRequest) {
    return JSON.stringify(ReconfigureStreamRequest$outboundSchema.parse(reconfigureStreamRequest));
}
export function reconfigureStreamRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ReconfigureStreamRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReconfigureStreamRequest' from JSON`);
}
//# sourceMappingURL=reconfigurestream.js.map