/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f72aee8fe43d */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type BillingAuditLogRow = { id: string; workspaceId: string | null; action: string; payload?: any | null | undefined; createdAt: string; }; /** @internal */ export const BillingAuditLogRow$inboundSchema: z.ZodType< BillingAuditLogRow, unknown > = z.object({ id: z.string(), workspaceId: z.nullable(z.string()), action: z.string(), payload: z.nullable(z.any()).optional(), createdAt: z.string(), }); export function billingAuditLogRowFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => BillingAuditLogRow$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BillingAuditLogRow' from JSON`, ); }