/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: f54f3d9ec9e5 */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Processing history event for a datasource */ export type ProcessingHistoryEvent = { /** * The start time of the processing in ISO 8601 format */ startTime?: string | undefined; /** * The end time of the processing in ISO 8601 format, 'NA' if still in progress */ endTime?: string | undefined; }; /** @internal */ export const ProcessingHistoryEvent$inboundSchema: z.ZodType< ProcessingHistoryEvent, z.ZodTypeDef, unknown > = z.object({ startTime: z.string().optional(), endTime: z.string().optional(), }); export function processingHistoryEventFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ProcessingHistoryEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProcessingHistoryEvent' from JSON`, ); }