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