/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { EventsField$inboundSchema, EventsField$outboundSchema, } from "./eventsfield.js";
/** @internal */
export const EventsGroupBy$inboundSchema = z.object({
    field: EventsField$inboundSchema,
    path: z.array(z.string()).optional(),
    includeInSelect: z.boolean().default(true),
});
/** @internal */
export const EventsGroupBy$outboundSchema = z.object({
    field: EventsField$outboundSchema,
    path: z.array(z.string()).optional(),
    includeInSelect: z.boolean().default(true),
});
export function eventsGroupByToJSON(eventsGroupBy) {
    return JSON.stringify(EventsGroupBy$outboundSchema.parse(eventsGroupBy));
}
export function eventsGroupByFromJSON(jsonString) {
    return safeParse(jsonString, (x) => EventsGroupBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventsGroupBy' from JSON`);
}
//# sourceMappingURL=eventsgroupby.js.map