/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: dc8d06c81232 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { DebugSession, DebugSession$inboundSchema } from "./debugsession.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * Paginated response */ export type DebugSessionListResponse = { /** * Items in this page */ items: Array; /** * Cursor for the next page, null if last page */ nextCursor: string | null; }; /** @internal */ export const DebugSessionListResponse$inboundSchema: z.ZodType< DebugSessionListResponse, unknown > = z.object({ items: z.array(DebugSession$inboundSchema), nextCursor: z.nullable(z.string()), }); export function debugSessionListResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DebugSessionListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DebugSessionListResponse' from JSON`, ); }