/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { ConversationsAggregationSelection$inboundSchema, ConversationsAggregationSelection$outboundSchema, } from "./conversationsaggregationselection.js";
import { ConversationsSimpleFieldSelection$inboundSchema, ConversationsSimpleFieldSelection$outboundSchema, } from "./conversationssimplefieldselection.js";
import { ConversationsTimeBasedGroupBySelection$inboundSchema, ConversationsTimeBasedGroupBySelection$outboundSchema, } from "./conversationstimebasedgroupbyselection.js";
/** @internal */
export const ConversationsSelection$inboundSchema = z.union([
    ConversationsAggregationSelection$inboundSchema,
    ConversationsTimeBasedGroupBySelection$inboundSchema,
    ConversationsSimpleFieldSelection$inboundSchema,
]);
/** @internal */
export const ConversationsSelection$outboundSchema = z.union([
    ConversationsAggregationSelection$outboundSchema,
    ConversationsTimeBasedGroupBySelection$outboundSchema,
    ConversationsSimpleFieldSelection$outboundSchema,
]);
export function conversationsSelectionToJSON(conversationsSelection) {
    return JSON.stringify(ConversationsSelection$outboundSchema.parse(conversationsSelection));
}
export function conversationsSelectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ConversationsSelection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConversationsSelection' from JSON`);
}
//# sourceMappingURL=conversationsselection.js.map