/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const PingEventData$inboundSchema = z.object({
    timestamp: z.number().int(),
});
/** @internal */
export const PingEventData$outboundSchema = z.object({
    timestamp: z.number().int(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var PingEventData$;
(function (PingEventData$) {
    /** @deprecated use `PingEventData$inboundSchema` instead. */
    PingEventData$.inboundSchema = PingEventData$inboundSchema;
    /** @deprecated use `PingEventData$outboundSchema` instead. */
    PingEventData$.outboundSchema = PingEventData$outboundSchema;
})(PingEventData$ || (PingEventData$ = {}));
export function pingEventDataToJSON(pingEventData) {
    return JSON.stringify(PingEventData$outboundSchema.parse(pingEventData));
}
export function pingEventDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PingEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PingEventData' from JSON`);
}
//# sourceMappingURL=pingeventdata.js.map