/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { SelectConversationEvent$inboundSchema, SelectConversationEvent$outboundSchema, } from "./selectconversationevent.js";
import { SelectMessageEvent$inboundSchema, SelectMessageEvent$outboundSchema, } from "./selectmessageevent.js";
import { SelectSearchEvent$inboundSchema, SelectSearchEvent$outboundSchema, } from "./selectsearchevent.js";
/** @internal */
export const SelectEvent$inboundSchema = z.union([
    SelectMessageEvent$inboundSchema,
    SelectConversationEvent$inboundSchema,
    SelectSearchEvent$inboundSchema,
]);
/** @internal */
export const SelectEvent$outboundSchema = z.union([
    SelectMessageEvent$outboundSchema,
    SelectConversationEvent$outboundSchema,
    SelectSearchEvent$outboundSchema,
]);
export function selectEventToJSON(selectEvent) {
    return JSON.stringify(SelectEvent$outboundSchema.parse(selectEvent));
}
export function selectEventFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SelectEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SelectEvent' from JSON`);
}
//# sourceMappingURL=selectevent.js.map