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