import * as z from "zod/v4-mini"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; import * as models from "../index.js"; export type ListWebhooksRequest = { page?: number | undefined; pageSize?: number | undefined; /** * The project to act on, when you call with an organization key. Optional when the organization has one project. A project key acts on its own project: naming another one is an error. */ projectId?: string | undefined; }; export declare const ListWebhooksEventType: { readonly QueueItemNew: "QUEUE_ITEM_NEW"; readonly QueueItemCompleted: "QUEUE_ITEM_COMPLETED"; readonly QueueItemAction: "QUEUE_ITEM_ACTION"; readonly QueueItemRejected: "QUEUE_ITEM_REJECTED"; readonly QueueItemAllowed: "QUEUE_ITEM_ALLOWED"; readonly AuthorBlocked: "AUTHOR_BLOCKED"; readonly AuthorUnblocked: "AUTHOR_UNBLOCKED"; readonly AuthorSuspended: "AUTHOR_SUSPENDED"; readonly AuthorUpdated: "AUTHOR_UPDATED"; readonly AuthorTrustLevelChanged: "AUTHOR_TRUST_LEVEL_CHANGED"; readonly AuthorAction: "AUTHOR_ACTION"; }; export type ListWebhooksEventType = OpenEnum; /** * Payload envelope version. V2 is the Stripe-style envelope; V1 is the legacy flat shape and is read-only via this API. */ export declare const ListWebhooksPayloadVersion: { readonly V1: "V1"; readonly V2: "V2"; }; /** * Payload envelope version. V2 is the Stripe-style envelope; V1 is the legacy flat shape and is read-only via this API. */ export type ListWebhooksPayloadVersion = OpenEnum; export type ListWebhooksData = { /** * The ID of the webhook. */ id: string; /** * The webhook's name. */ name: string; /** * The webhook's description. */ description?: string | null | undefined; /** * The URL we call when a subscribed event occurs. */ url: string; /** * Event types this webhook subscribes to. Empty for legacy v1 webhooks, which subscribe via their single deprecated `type` instead. */ eventTypes: Array; /** * Payload envelope version. V2 is the Stripe-style envelope; V1 is the legacy flat shape and is read-only via this API. */ payloadVersion: ListWebhooksPayloadVersion; /** * The date the webhook was created. */ createdAt: string; }; /** * Webhooks retrieved successfully */ export type ListWebhooksResponseBody = { /** * The items on this page. */ data: Array; /** * Where this page is in the full list. */ pagination: models.Pagination; }; export type ListWebhooksResponse = { result: ListWebhooksResponseBody; }; /** @internal */ export type ListWebhooksRequest$Outbound = { page: number; pageSize: number; projectId?: string | undefined; }; /** @internal */ export declare const ListWebhooksRequest$outboundSchema: z.ZodMiniType; export declare function listWebhooksRequestToJSON(listWebhooksRequest: ListWebhooksRequest): string; /** @internal */ export declare const ListWebhooksEventType$inboundSchema: z.ZodMiniType; /** @internal */ export declare const ListWebhooksPayloadVersion$inboundSchema: z.ZodMiniType; /** @internal */ export declare const ListWebhooksData$inboundSchema: z.ZodMiniType; export declare function listWebhooksDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListWebhooksResponseBody$inboundSchema: z.ZodMiniType; export declare function listWebhooksResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ListWebhooksResponse$inboundSchema: z.ZodMiniType; export declare function listWebhooksResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=list-webhooks.d.ts.map