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