/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
export const FeedbackSimpleFieldSelectionField = {
    Id: "id",
    Type: "type",
    MessageId: "messageId",
    CreatedAt: "createdAt",
    UpdatedAt: "updatedAt",
    OrganizationId: "organizationId",
    Reasons: "reasons",
    Sources: "sources",
    Details: "details",
    Properties: "properties",
    UserProperties: "userProperties",
    ConversationId: "conversationId",
    ProjectId: "projectId",
    IntegrationId: "integrationId",
};
/**
 * 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 FeedbackSimpleFieldSelectionMode = {
    Unpack: "unpack",
    Json: "json",
};
/** @internal */
export const FeedbackSimpleFieldSelectionField$inboundSchema = z.nativeEnum(FeedbackSimpleFieldSelectionField);
/** @internal */
export const FeedbackSimpleFieldSelectionField$outboundSchema = FeedbackSimpleFieldSelectionField$inboundSchema;
/** @internal */
export const FeedbackSimpleFieldSelectionMode$inboundSchema = z.nativeEnum(FeedbackSimpleFieldSelectionMode);
/** @internal */
export const FeedbackSimpleFieldSelectionMode$outboundSchema = FeedbackSimpleFieldSelectionMode$inboundSchema;
/** @internal */
export const FeedbackSimpleFieldSelection$inboundSchema = z.object({
    type: z.literal("field"),
    field: FeedbackSimpleFieldSelectionField$inboundSchema,
    path: z.array(z.string()).optional(),
    mode: FeedbackSimpleFieldSelectionMode$inboundSchema.optional(),
});
/** @internal */
export const FeedbackSimpleFieldSelection$outboundSchema = z.object({
    type: z.literal("field"),
    field: FeedbackSimpleFieldSelectionField$outboundSchema,
    path: z.array(z.string()).optional(),
    mode: FeedbackSimpleFieldSelectionMode$outboundSchema.optional(),
});
export function feedbackSimpleFieldSelectionToJSON(feedbackSimpleFieldSelection) {
    return JSON.stringify(FeedbackSimpleFieldSelection$outboundSchema.parse(feedbackSimpleFieldSelection));
}
export function feedbackSimpleFieldSelectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FeedbackSimpleFieldSelection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackSimpleFieldSelection' from JSON`);
}
//# sourceMappingURL=feedbacksimplefieldselection.js.map