/*
 * 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 { StreamInfo$inboundSchema, StreamInfo$outboundSchema, } from "./streaminfo.js";
/** @internal */
export const ListStreamsResponse$inboundSchema = z.object({
    has_more: z.boolean(),
    streams: z.array(StreamInfo$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
export const ListStreamsResponse$outboundSchema = z.object({
    hasMore: z.boolean(),
    streams: z.array(StreamInfo$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        hasMore: "has_more",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListStreamsResponse$;
(function (ListStreamsResponse$) {
    /** @deprecated use `ListStreamsResponse$inboundSchema` instead. */
    ListStreamsResponse$.inboundSchema = ListStreamsResponse$inboundSchema;
    /** @deprecated use `ListStreamsResponse$outboundSchema` instead. */
    ListStreamsResponse$.outboundSchema = ListStreamsResponse$outboundSchema;
})(ListStreamsResponse$ || (ListStreamsResponse$ = {}));
export function listStreamsResponseToJSON(listStreamsResponse) {
    return JSON.stringify(ListStreamsResponse$outboundSchema.parse(listStreamsResponse));
}
export function listStreamsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListStreamsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStreamsResponse' from JSON`);
}
//# sourceMappingURL=liststreamsresponse.js.map