/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { QueryEventsResponseData$inboundSchema, QueryEventsResponseData$outboundSchema, } from "./queryeventsresponsedata.js";
/**
 * Status of the response
 */
export const QueryEventsResponseBodyStatus = {
    Ok: "ok",
};
/** @internal */
export const QueryEventsResponseBodyStatus$inboundSchema = z.nativeEnum(QueryEventsResponseBodyStatus);
/** @internal */
export const QueryEventsResponseBodyStatus$outboundSchema = QueryEventsResponseBodyStatus$inboundSchema;
/** @internal */
export const QueryEventsResponseBody$inboundSchema = z.object({
    status: QueryEventsResponseBodyStatus$inboundSchema,
    data: QueryEventsResponseData$inboundSchema,
});
/** @internal */
export const QueryEventsResponseBody$outboundSchema = z.object({
    status: QueryEventsResponseBodyStatus$outboundSchema,
    data: QueryEventsResponseData$outboundSchema,
});
export function queryEventsResponseBodyToJSON(queryEventsResponseBody) {
    return JSON.stringify(QueryEventsResponseBody$outboundSchema.parse(queryEventsResponseBody));
}
export function queryEventsResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => QueryEventsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QueryEventsResponseBody' from JSON`);
}
//# sourceMappingURL=queryeventsresponsebody.js.map