/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
/**
 * Which JSON field to query values from
 */
export const PropertyValuesRequestBodyField = {
    Properties: "properties",
    UserProperties: "userProperties",
};
export const PropertyValuesRequestBodyViews = {
    EventsView: "events_view",
    ConversationsView: "conversations_view",
    SemanticThreadsView: "semantic_threads_view",
    FeedbackView: "feedback_view",
};
/** @internal */
export const PropertyValuesRequestBodyField$inboundSchema = z.nativeEnum(PropertyValuesRequestBodyField);
/** @internal */
export const PropertyValuesRequestBodyField$outboundSchema = PropertyValuesRequestBodyField$inboundSchema;
/** @internal */
export const PropertyValuesRequestBodyViews$inboundSchema = z.nativeEnum(PropertyValuesRequestBodyViews);
/** @internal */
export const PropertyValuesRequestBodyViews$outboundSchema = PropertyValuesRequestBodyViews$inboundSchema;
/** @internal */
export const PropertyValuesRequestBody$inboundSchema = z.object({
    field: PropertyValuesRequestBodyField$inboundSchema,
    key: z.string(),
    views: z.array(PropertyValuesRequestBodyViews$inboundSchema).optional(),
    limit: z.number().default(100),
});
/** @internal */
export const PropertyValuesRequestBody$outboundSchema = z.object({
    field: PropertyValuesRequestBodyField$outboundSchema,
    key: z.string(),
    views: z.array(PropertyValuesRequestBodyViews$outboundSchema).optional(),
    limit: z.number().default(100),
});
export function propertyValuesRequestBodyToJSON(propertyValuesRequestBody) {
    return JSON.stringify(PropertyValuesRequestBody$outboundSchema.parse(propertyValuesRequestBody));
}
export function propertyValuesRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PropertyValuesRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyValuesRequestBody' from JSON`);
}
//# sourceMappingURL=propertyvaluesrequestbody.js.map