/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
export const SemanticThreadSimpleFieldSelectionField = {
    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",
};
/**
 * Export mode for JSON fields (properties, userProperties). "unpack" (default): Flattens JSON into separate columns (e.g., properties.key1, properties.key2). "json": Exports the entire JSON object as a single stringified column. Only applicable to JSON fields like properties and userProperties.
 */
export const SemanticThreadSimpleFieldSelectionMode = {
    Unpack: "unpack",
    Json: "json",
};
/** @internal */
export const SemanticThreadSimpleFieldSelectionField$inboundSchema = z
    .nativeEnum(SemanticThreadSimpleFieldSelectionField);
/** @internal */
export const SemanticThreadSimpleFieldSelectionField$outboundSchema = SemanticThreadSimpleFieldSelectionField$inboundSchema;
/** @internal */
export const SemanticThreadSimpleFieldSelectionMode$inboundSchema = z.nativeEnum(SemanticThreadSimpleFieldSelectionMode);
/** @internal */
export const SemanticThreadSimpleFieldSelectionMode$outboundSchema = SemanticThreadSimpleFieldSelectionMode$inboundSchema;
/** @internal */
export const SemanticThreadSimpleFieldSelection$inboundSchema = z.object({
    type: z.literal("field"),
    field: SemanticThreadSimpleFieldSelectionField$inboundSchema,
    path: z.array(z.string()).optional(),
    mode: SemanticThreadSimpleFieldSelectionMode$inboundSchema.optional(),
});
/** @internal */
export const SemanticThreadSimpleFieldSelection$outboundSchema = z.object({
    type: z.literal("field"),
    field: SemanticThreadSimpleFieldSelectionField$outboundSchema,
    path: z.array(z.string()).optional(),
    mode: SemanticThreadSimpleFieldSelectionMode$outboundSchema.optional(),
});
export function semanticThreadSimpleFieldSelectionToJSON(semanticThreadSimpleFieldSelection) {
    return JSON.stringify(SemanticThreadSimpleFieldSelection$outboundSchema.parse(semanticThreadSimpleFieldSelection));
}
export function semanticThreadSimpleFieldSelectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SemanticThreadSimpleFieldSelection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SemanticThreadSimpleFieldSelection' from JSON`);
}
//# sourceMappingURL=semanticthreadsimplefieldselection.js.map