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