/*
 * 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 DeleteStreamServerList = [
    /**
     * Endpoint for the basin
     */
    "https://{basin}.b.aws.s2.dev/v1",
];
/** @internal */
export const DeleteStreamRequest$inboundSchema = z.object({
    stream: z.string(),
    "s2-basin": z.string(),
}).transform((v) => {
    return remap$(v, {
        "s2-basin": "s2Basin",
    });
});
/** @internal */
export const DeleteStreamRequest$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 DeleteStreamRequest$;
(function (DeleteStreamRequest$) {
    /** @deprecated use `DeleteStreamRequest$inboundSchema` instead. */
    DeleteStreamRequest$.inboundSchema = DeleteStreamRequest$inboundSchema;
    /** @deprecated use `DeleteStreamRequest$outboundSchema` instead. */
    DeleteStreamRequest$.outboundSchema = DeleteStreamRequest$outboundSchema;
})(DeleteStreamRequest$ || (DeleteStreamRequest$ = {}));
export function deleteStreamRequestToJSON(deleteStreamRequest) {
    return JSON.stringify(DeleteStreamRequest$outboundSchema.parse(deleteStreamRequest));
}
export function deleteStreamRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeleteStreamRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteStreamRequest' from JSON`);
}
//# sourceMappingURL=deletestream.js.map