/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { TimeUnit$inboundSchema, TimeUnit$outboundSchema, } from "./timeunit.js";
export const SemanticThreadTimeBasedGroupBySelectionField = {
    Id: "id",
    MessageIds: "messageIds",
    MessagesCount: "messagesCount",
    OrganizationId: "organizationId",
    Question: "question",
    QuestionLength: "questionLength",
    Answer: "answer",
    IsOnTopic: "isOnTopic",
    IsClear: "isClear",
    IsDocumented: "isDocumented",
    IsFeatureSupported: "isFeatureSupported",
    IsAnswerConfident: "isAnswerConfident",
    GapSummary: "gapSummary",
    Subject: "subject",
    Category: "category",
    Languages: "languages",
    FirstPartyEntities: "firstPartyEntities",
    ThirdPartyEntities: "thirdPartyEntities",
    Emotion: "emotion",
    Sentiment: "sentiment",
    QuestionType: "questionType",
    ProjectId: "projectId",
    IntegrationId: "integrationId",
    Properties: "properties",
    UserProperties: "userProperties",
    FirstMessageTime: "firstMessageTime",
    LastMessageTime: "lastMessageTime",
    LastUpdated: "lastUpdated",
    HasPositiveFeedback: "hasPositiveFeedback",
    HasNegativeFeedback: "hasNegativeFeedback",
    ConversationIds: "conversationIds",
    AreAIAnnotationsVerified: "areAIAnnotationsVerified",
    IsInitialQuestionAnswer: "isInitialQuestionAnswer",
};
/** @internal */
export const SemanticThreadTimeBasedGroupBySelectionField$inboundSchema = z
    .nativeEnum(SemanticThreadTimeBasedGroupBySelectionField);
/** @internal */
export const SemanticThreadTimeBasedGroupBySelectionField$outboundSchema = SemanticThreadTimeBasedGroupBySelectionField$inboundSchema;
/** @internal */
export const SemanticThreadTimeBasedGroupBySelection$inboundSchema = z.object({
    type: z.literal("time"),
    timeUnit: TimeUnit$inboundSchema,
    field: SemanticThreadTimeBasedGroupBySelectionField$inboundSchema.optional(),
});
/** @internal */
export const SemanticThreadTimeBasedGroupBySelection$outboundSchema = z.object({
    type: z.literal("time"),
    timeUnit: TimeUnit$outboundSchema,
    field: SemanticThreadTimeBasedGroupBySelectionField$outboundSchema.optional(),
});
export function semanticThreadTimeBasedGroupBySelectionToJSON(semanticThreadTimeBasedGroupBySelection) {
    return JSON.stringify(SemanticThreadTimeBasedGroupBySelection$outboundSchema.parse(semanticThreadTimeBasedGroupBySelection));
}
export function semanticThreadTimeBasedGroupBySelectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadTimeBasedGroupBySelection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadTimeBasedGroupBySelection' from JSON`);
}
//# sourceMappingURL=semanticthreadtimebasedgroupbyselection.js.map