import * as z from "zod/v4-mini"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { ListResourceWebhookDelivery } from "../components/listresourcewebhookdelivery.js"; import { WebhookEventType } from "../components/webhookeventtype.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by webhook endpoint ID. */ export type EndpointId = string | Array; /** * Filter by HTTP response code class (2xx, 3xx, 4xx, 5xx). */ export declare const HttpCodeClass: { readonly Twoxx: "2xx"; readonly Threexx: "3xx"; readonly Fourxx: "4xx"; readonly Fivexx: "5xx"; }; /** * Filter by HTTP response code class (2xx, 3xx, 4xx, 5xx). */ export type HttpCodeClass = ClosedEnum; /** * Filter by webhook event type. */ export type EventType = WebhookEventType | Array; export type WebhooksListWebhookDeliveriesRequest = { /** * Filter by webhook endpoint ID. */ endpointId?: string | Array | null | undefined; /** * Filter deliveries after this timestamp. */ startTimestamp?: Date | null | undefined; /** * Filter deliveries before this timestamp. */ endTimestamp?: Date | null | undefined; /** * Filter by delivery success status. */ succeeded?: boolean | null | undefined; /** * Query to filter webhook deliveries. */ query?: string | null | undefined; /** * Filter by HTTP response code class (2xx, 3xx, 4xx, 5xx). */ httpCodeClass?: HttpCodeClass | null | undefined; /** * Filter by webhook event type. */ eventType?: WebhookEventType | Array | null | undefined; /** * Page number, defaults to 1. */ page?: number | undefined; /** * Size of a page, defaults to 10. Maximum is 100. */ limit?: number | undefined; }; export type WebhooksListWebhookDeliveriesResponse = { result: ListResourceWebhookDelivery; }; /** @internal */ export type EndpointId$Outbound = string | Array; /** @internal */ export declare const EndpointId$outboundSchema: z.ZodMiniType; export declare function endpointIdToJSON(endpointId: EndpointId): string; /** @internal */ export declare const HttpCodeClass$outboundSchema: z.ZodMiniEnum; /** @internal */ export type EventType$Outbound = string | Array; /** @internal */ export declare const EventType$outboundSchema: z.ZodMiniType; export declare function eventTypeToJSON(eventType: EventType): string; /** @internal */ export type WebhooksListWebhookDeliveriesRequest$Outbound = { endpoint_id?: string | Array | null | undefined; start_timestamp?: string | null | undefined; end_timestamp?: string | null | undefined; succeeded?: boolean | null | undefined; query?: string | null | undefined; http_code_class?: string | null | undefined; event_type?: string | Array | null | undefined; page: number; limit: number; }; /** @internal */ export declare const WebhooksListWebhookDeliveriesRequest$outboundSchema: z.ZodMiniType; export declare function webhooksListWebhookDeliveriesRequestToJSON(webhooksListWebhookDeliveriesRequest: WebhooksListWebhookDeliveriesRequest): string; /** @internal */ export declare const WebhooksListWebhookDeliveriesResponse$inboundSchema: z.ZodMiniType; export declare function webhooksListWebhookDeliveriesResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=webhookslistwebhookdeliveries.d.ts.map