/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
export const SemanticThreadAggregationSelectionAggregation = {
    Sum: "sum",
    Count: "count",
    CountDistinct: "countDistinct",
    Avg: "avg",
    Min: "min",
    Max: "max",
};
export const SemanticThreadAggregationSelectionField = {
    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 SemanticThreadAggregationSelectionAggregation$inboundSchema = z
    .nativeEnum(SemanticThreadAggregationSelectionAggregation);
/** @internal */
export const SemanticThreadAggregationSelectionAggregation$outboundSchema = SemanticThreadAggregationSelectionAggregation$inboundSchema;
/** @internal */
export const SemanticThreadAggregationSelectionField$inboundSchema = z
    .nativeEnum(SemanticThreadAggregationSelectionField);
/** @internal */
export const SemanticThreadAggregationSelectionField$outboundSchema = SemanticThreadAggregationSelectionField$inboundSchema;
/** @internal */
export const SemanticThreadAggregationSelection$inboundSchema = z.object({
    type: z.literal("aggregation"),
    aggregation: SemanticThreadAggregationSelectionAggregation$inboundSchema,
    field: SemanticThreadAggregationSelectionField$inboundSchema.optional(),
    path: z.array(z.string()).optional(),
});
/** @internal */
export const SemanticThreadAggregationSelection$outboundSchema = z.object({
    type: z.literal("aggregation"),
    aggregation: SemanticThreadAggregationSelectionAggregation$outboundSchema,
    field: SemanticThreadAggregationSelectionField$outboundSchema.optional(),
    path: z.array(z.string()).optional(),
});
export function semanticThreadAggregationSelectionToJSON(semanticThreadAggregationSelection) {
    return JSON.stringify(SemanticThreadAggregationSelection$outboundSchema.parse(semanticThreadAggregationSelection));
}
export function semanticThreadAggregationSelectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadAggregationSelection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadAggregationSelection' from JSON`);
}
//# sourceMappingURL=semanticthreadaggregationselection.js.map