import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { WebhookEvent } from "./webhookevent.js"; /** * A webhook delivery for a webhook event. */ export type WebhookDelivery = { /** * Creation timestamp of the object. */ createdAt: Date; /** * Last modification timestamp of the object. */ modifiedAt: Date | null; /** * The ID of the object. */ id: string; /** * Whether the delivery was successful. */ succeeded: boolean; /** * The HTTP code returned by the URL. `null` if the endpoint was unreachable. */ httpCode: number | null; /** * The response body returned by the URL, or the error message if the endpoint was unreachable. */ response: string | null; /** * A webhook event. * * @remarks * * An event represent something that happened in the system * that should be sent to the webhook endpoint. * * It can be delivered multiple times until it's marked as succeeded, * each one creating a new delivery. */ webhookEvent: WebhookEvent; }; /** @internal */ export declare const WebhookDelivery$inboundSchema: z.ZodMiniType; export declare function webhookDeliveryFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhookdelivery.d.ts.map