/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Webhook, Webhook$inboundSchema } from "./webhook.js"; export type WebhookPaginatedList = { next?: string | undefined; previous?: string | undefined; count?: number | undefined; results?: Array | undefined; }; /** @internal */ export const WebhookPaginatedList$inboundSchema: z.ZodMiniType< WebhookPaginatedList, unknown > = z.object({ next: z.optional(z.string()), previous: z.optional(z.string()), count: z.optional(z.int()), results: z.optional(z.array(Webhook$inboundSchema)), }); export function webhookPaginatedListFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => WebhookPaginatedList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookPaginatedList' from JSON`, ); }