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