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