/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 5ae71e8dde10 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { AgentSessionSubject, AgentSessionSubject$inboundSchema, } from "./agentsessionsubject.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type AgentSessionListItem = { id: string; triggerType: string; subjectId: string; subject: AgentSessionSubject; status: string; createdAt: string; updatedAt: string; }; /** @internal */ export const AgentSessionListItem$inboundSchema: z.ZodType< AgentSessionListItem, unknown > = z.object({ id: z.string(), triggerType: z.string(), subjectId: z.string(), subject: AgentSessionSubject$inboundSchema, status: z.string(), createdAt: z.string(), updatedAt: z.string(), }); export function agentSessionListItemFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AgentSessionListItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentSessionListItem' from JSON`, ); }