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