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