/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 26b22970cc32 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { AgentSessionEvent, AgentSessionEvent$inboundSchema, } from "./agentsessionevent.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type AgentSessionEventsResponse = { events: Array; latestSeq: number; hasMore: boolean; }; /** @internal */ export const AgentSessionEventsResponse$inboundSchema: z.ZodType< AgentSessionEventsResponse, unknown > = z.object({ events: z.array(AgentSessionEvent$inboundSchema), latestSeq: z.number(), hasMore: z.boolean(), }); export function agentSessionEventsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AgentSessionEventsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentSessionEventsResponse' from JSON`, ); }