/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { StreamConfig$inboundSchema, StreamConfig$outboundSchema, } from "./streamconfig.js";
/** @internal */
export const CreateStreamRequest$inboundSchema = z.object({
    config: z.nullable(StreamConfig$inboundSchema).optional(),
    stream: z.string(),
});
/** @internal */
export const CreateStreamRequest$outboundSchema = z.object({
    config: z.nullable(StreamConfig$outboundSchema).optional(),
    stream: z.string(),
});
/**
 * @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=createstreamrequest.js.map