/*
 * 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";
/** @internal */
export const StreamInfo$inboundSchema = z.object({
    created_at: z.string(),
    deleted_at: z.nullable(z.string()).optional(),
    name: z.string(),
}).transform((v) => {
    return remap$(v, {
        "created_at": "createdAt",
        "deleted_at": "deletedAt",
    });
});
/** @internal */
export const StreamInfo$outboundSchema = z.object({
    createdAt: z.string(),
    deletedAt: z.nullable(z.string()).optional(),
    name: z.string(),
}).transform((v) => {
    return remap$(v, {
        createdAt: "created_at",
        deletedAt: "deleted_at",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var StreamInfo$;
(function (StreamInfo$) {
    /** @deprecated use `StreamInfo$inboundSchema` instead. */
    StreamInfo$.inboundSchema = StreamInfo$inboundSchema;
    /** @deprecated use `StreamInfo$outboundSchema` instead. */
    StreamInfo$.outboundSchema = StreamInfo$outboundSchema;
})(StreamInfo$ || (StreamInfo$ = {}));
export function streamInfoToJSON(streamInfo) {
    return JSON.stringify(StreamInfo$outboundSchema.parse(streamInfo));
}
export function streamInfoFromJSON(jsonString) {
    return safeParse(jsonString, (x) => StreamInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StreamInfo' from JSON`);
}
//# sourceMappingURL=streaminfo.js.map