import { z } from "zod"; import { type OutboundWebhookStoreOptions } from "./outbound-webhooks.js"; export interface WebhookOperationContext { store?: OutboundWebhookStoreOptions; fetcher?: typeof fetch; resolveSecret?: (secretRef: string) => string | undefined; } export declare function resolveWebhookOperationStore(context: WebhookOperationContext): OutboundWebhookStoreOptions; declare const webhookListInputSchema: z.ZodObject<{ enabled: z.ZodOptional>>; }, z.core.$strip>; declare const webhookCreateInputSchema: z.ZodObject<{ name: z.ZodString; url: z.ZodURL; secret_ref: z.ZodString; event_filters: z.ZodArray>>; enabled: z.ZodDefault>>; timeout_ms: z.ZodDefault, unknown>>>; max_attempts: z.ZodDefault, unknown>>>; circuit_failure_threshold: z.ZodDefault, unknown>>>; circuit_cooldown_ms: z.ZodDefault, unknown>>>; }, z.core.$strip>; declare const webhookUpdateInputSchema: z.ZodObject<{ id: z.ZodUUID; name: z.ZodOptional; url: z.ZodOptional; secret_ref: z.ZodOptional; event_filters: z.ZodOptional>>>; enabled: z.ZodOptional>>; timeout_ms: z.ZodOptional, unknown>>>; max_attempts: z.ZodOptional, unknown>>>; circuit_failure_threshold: z.ZodOptional, unknown>>>; circuit_cooldown_ms: z.ZodOptional, unknown>>>; }, z.core.$strip>; declare const webhookDeleteInputSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; declare const webhookTestInputSchema: z.ZodObject<{ id: z.ZodUUID; correlation_id: z.ZodOptional; }, z.core.$strip>; declare const webhookDispatchInputSchema: z.ZodObject<{ limit: z.ZodDefault, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>; declare const webhookDeliveryListInputSchema: z.ZodObject<{ endpoint_id: z.ZodOptional; status: z.ZodOptional>; event_type: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>; declare const webhookDeliveryRetryInputSchema: z.ZodObject<{ id: z.ZodUUID; expected_manual_retry_count: z.ZodOptional; }, z.core.$strip>; declare const webhookReconcileInputSchema: z.ZodObject<{ limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; recovery_set: z.ZodOptional>; }, z.core.$strip>; declare const webhookPruneInputSchema: z.ZodObject<{ older_than_days: z.ZodDefault, unknown>>>; before: z.ZodOptional; ids: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>; declare const webhookTickInputSchema: z.ZodObject<{ dispatch_limit: z.ZodDefault, unknown>>>; reconcile_limit: z.ZodDefault, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>; declare const webhookRuntimeStatusInputSchema: z.ZodObject<{ worker_stale_ms: z.ZodDefault, unknown>>>; }, z.core.$strip>; declare const webhookInboundIngestInputSchema: z.ZodObject<{ provider: z.ZodString; provider_event_id: z.ZodString; kind: z.ZodEnum<{ bounced: "bounced"; complained: "complained"; delayed: "delayed"; delivered: "delivered"; rejected: "rejected"; unsubscribed: "unsubscribed"; }>; occurred_at: z.ZodOptional; message_id: z.ZodOptional; subscriber_uuid: z.ZodOptional; campaign_id: z.ZodOptional, unknown>>>; metadata: z.ZodDefault>; }, z.core.$strip>; declare const webhookDlqListInputSchema: z.ZodObject<{ endpoint_id: z.ZodOptional; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>; declare const webhookDlqReplayInputSchema: z.ZodObject<{ endpoint_id: z.ZodOptional; delivery_ids: z.ZodOptional>; recovery_generations: z.ZodOptional>>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>; declare const webhookCircuitResetInputSchema: z.ZodObject<{ id: z.ZodUUID; }, z.core.$strip>; declare const webhookListOutputSchema: z.ZodObject<{ endpoints: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>; declare const webhookCreateOutputSchema: z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; created: z.ZodBoolean; }, z.core.$strip>; declare const webhookUpdateOutputSchema: z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; }, z.core.$strip>; declare const webhookDeleteOutputSchema: z.ZodObject<{ deleted: z.ZodBoolean; endpoint: z.ZodOptional>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>; declare const webhookDispatchOutputSchema: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; declare const webhookTestOutputSchema: z.ZodObject<{ event_id: z.ZodUUID; delivery_id: z.ZodOptional; replayed: z.ZodBoolean; bound_revision: z.ZodString; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; declare const webhookDeliveryListOutputSchema: z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; declare const webhookDeliveryRetryOutputSchema: z.ZodObject<{ delivery: z.ZodObject<{ id: z.ZodUUID; event_id: z.ZodUUID; endpoint_id: z.ZodUUID; event: z.ZodObject<{ id: z.ZodUUID; type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>; retried: z.ZodBoolean; retry_generation: z.ZodNumber; }, z.core.$strip>; declare const webhookReconcileOutputSchema: z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>; declare const webhookPruneOutputSchema: z.ZodObject<{ eligible: z.ZodNumber; deleted: z.ZodNumber; dry_run: z.ZodBoolean; before: z.ZodISODateTime; ids: z.ZodReadonly>; }, z.core.$strip>; declare const webhookTickOutputSchema: z.ZodObject<{ reconcile: z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; declare const webhookRuntimeStatusOutputSchema: z.ZodObject<{ store: z.ZodEnum<{ file: "file"; postgres: "postgres"; }>; schema_version: z.ZodNumber; healthy: z.ZodBoolean; checked_at: z.ZodISODateTime; endpoints: z.ZodObject<{ total: z.ZodNumber; enabled: z.ZodNumber; circuit_open: z.ZodNumber; }, z.core.$strip>; deliveries: z.ZodObject<{ pending: z.ZodNumber; delivering: z.ZodNumber; retry: z.ZodNumber; succeeded: z.ZodNumber; exhausted: z.ZodNumber; due: z.ZodNumber; dead_letter: z.ZodNumber; oldest_due_at: z.ZodOptional; }, z.core.$strip>; workers: z.ZodObject<{ running: z.ZodNumber; stale: z.ZodNumber; stopped: z.ZodNumber; failed: z.ZodNumber; last_heartbeat_at: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>; declare const webhookInboundIngestOutputSchema: z.ZodObject<{ event_id: z.ZodUUID; event_type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; matched_endpoints: z.ZodNumber; queued_deliveries: z.ZodNumber; duplicate_deliveries: z.ZodNumber; delivery_ids: z.ZodArray; }, z.core.$strip>; declare const webhookDlqListOutputSchema: z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; declare const webhookDlqReplayOutputSchema: z.ZodObject<{ eligible: z.ZodNumber; replayed: z.ZodNumber; failed: z.ZodNumber; dry_run: z.ZodBoolean; delivery_ids: z.ZodArray; replayed_generations: z.ZodArray>; errors: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>; declare const webhookCircuitResetOutputSchema: z.ZodObject<{ endpoint_id: z.ZodUUID; circuit_state: z.ZodLiteral<"closed">; consecutive_failures: z.ZodLiteral<0>; }, z.core.$strip>; export declare function executeWebhookListOperation(context: WebhookOperationContext, input: z.output): Promise<{ endpoints: { id: string; name: string; url_origin: string; url_fingerprint: string; secret_reference_configured: boolean; event_filters: ("*" | "abtest.*" | "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.*" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.*" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.*" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.*" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.*" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.*" | "webhook.test")[]; enabled: boolean; timeout_ms: number; max_attempts: number; circuit_failure_threshold: number; circuit_cooldown_ms: number; created_at: string; updated_at: string; }[]; }>; export declare function executeWebhookCreateOperation(context: WebhookOperationContext, input: z.output): Promise<{ endpoint: { id: string; name: string; url_origin: string; url_fingerprint: string; secret_reference_configured: boolean; event_filters: ("*" | "abtest.*" | "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.*" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.*" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.*" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.*" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.*" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.*" | "webhook.test")[]; enabled: boolean; timeout_ms: number; max_attempts: number; circuit_failure_threshold: number; circuit_cooldown_ms: number; created_at: string; updated_at: string; }; created: true; } | { endpoint: { id: string; name: string; url_origin: string; url_fingerprint: string; secret_reference_configured: boolean; event_filters: ("*" | "abtest.*" | "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.*" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.*" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.*" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.*" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.*" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.*" | "webhook.test")[]; enabled: boolean; timeout_ms: number; max_attempts: number; circuit_failure_threshold: number; circuit_cooldown_ms: number; created_at: string; updated_at: string; }; created: false; }>; export declare function executeWebhookUpdateOperation(context: WebhookOperationContext, input: z.output): Promise<{ endpoint: { id: string; name: string; url_origin: string; url_fingerprint: string; secret_reference_configured: boolean; event_filters: ("*" | "abtest.*" | "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.*" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.*" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.*" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.*" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.*" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.*" | "webhook.test")[]; enabled: boolean; timeout_ms: number; max_attempts: number; circuit_failure_threshold: number; circuit_cooldown_ms: number; created_at: string; updated_at: string; }; }>; export declare function executeWebhookDeleteOperation(context: WebhookOperationContext, input: z.output): Promise<{ deleted: true; endpoint: { id: string; name: string; url_origin: string; url_fingerprint: string; secret_reference_configured: boolean; event_filters: ("*" | "abtest.*" | "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.*" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.*" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.*" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.*" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.*" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.*" | "webhook.test")[]; enabled: boolean; timeout_ms: number; max_attempts: number; circuit_failure_threshold: number; circuit_cooldown_ms: number; created_at: string; updated_at: string; }; } | { endpoint?: undefined; deleted: false; }>; export declare function testConfigFingerprint(endpoint: { updatedAt: string; }): string; /** * @deprecated Unsalted derivation retained only for backward compatibility. * The webhook.test operation derives ids with {@link keyedTestEventUuid}, * whose HMAC key is the store's server-generated probe id key — an * independent secret, never an endpoint signing credential. */ export declare function testEventUuid(endpointId: string, correlationId: string, configFingerprint?: string): string; /** * Derive the deterministic event id for a keyed webhook.test probe. The * HMAC key is the store's server-generated probe id key — independent of * every endpoint signing credential, so delivery-log readers cannot test * secret candidates offline against known message/id pairs. The config * fingerprint re-keys the id when the endpoint configuration changes, so a * repeat after a URL or secret change tests the new configuration. */ export declare function keyedTestEventUuid(endpointId: string, correlationId: string, idKey: string, configFingerprint?: string): string; export declare function executeWebhookTestOperation(context: WebhookOperationContext, input: z.output): Promise<{ event_id: string; delivery_id?: string | undefined; replayed: boolean; bound_revision: string; dispatch: { claimed: number; claimed_ids: string[]; claim_steps: { delivery_id: string; attempt_count: number; }[]; succeeded: number; retried: number; exhausted: number; skipped: number; results: ({ delivery_id: string; endpoint_id: string; status: "succeeded"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "retry"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "exhausted"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "skipped"; error_code: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked"; })[]; requested?: number | undefined; pending_ids?: string[] | undefined; already_done?: number | undefined; }; }>; export declare function executeWebhookDispatchOperation(context: WebhookOperationContext, input: z.output): Promise<{ claimed: number; claimed_ids: string[]; claim_steps: { delivery_id: string; attempt_count: number; }[]; succeeded: number; retried: number; exhausted: number; skipped: number; results: ({ delivery_id: string; endpoint_id: string; status: "succeeded"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "retry"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "exhausted"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "skipped"; error_code: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked"; })[]; requested?: number | undefined; pending_ids?: string[] | undefined; already_done?: number | undefined; }>; export declare function executeWebhookDeliveryListOperation(context: WebhookOperationContext, input: z.output): Promise<{ deliveries: { id: string; event_id: string; endpoint_id: string; event: { id: string; type: "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.test"; schema_version: 1; occurred_at: string; source: import("@listmonk-ops/operations/specs").OperationEventSource; correlation_id_present: boolean; subject: { kind: import("./outbound-webhooks.js").OutboundWebhookSubjectKind; key_redacted: true; } | undefined; }; status: import("./outbound-webhooks.js").OutboundWebhookDeliveryStatus; attempt_count: number; manual_retry_count: number; next_attempt_at: string; last_attempt_at: string | undefined; completed_at: string | undefined; status_code: number | undefined; last_error_present: boolean; }[]; }>; export declare function executeWebhookDeliveryRetryOperation(context: WebhookOperationContext, input: z.output): Promise<{ delivery: { id: string; event_id: string; endpoint_id: string; event: { id: string; type: "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.test"; schema_version: 1; occurred_at: string; source: import("@listmonk-ops/operations/specs").OperationEventSource; correlation_id_present: boolean; subject: { kind: import("./outbound-webhooks.js").OutboundWebhookSubjectKind; key_redacted: true; } | undefined; }; status: import("./outbound-webhooks.js").OutboundWebhookDeliveryStatus; attempt_count: number; manual_retry_count: number; next_attempt_at: string; last_attempt_at: string | undefined; completed_at: string | undefined; status_code: number | undefined; last_error_present: boolean; }; retried: boolean; retry_generation: number; }>; export declare function executeWebhookReconcileOperation(context: WebhookOperationContext, input: z.output): Promise<{ scanned_ids: string[]; scanned: number; recovered: number; exhausted: number; unchanged: number; dry_run: boolean; }>; export declare function executeWebhookPruneOperation(context: WebhookOperationContext, input: z.output): Promise<{ eligible: number; deleted: number; dry_run: boolean; before: string; ids: readonly string[]; }>; export declare function executeWebhookTickOperation(context: WebhookOperationContext, input: z.output): Promise<{ reconcile: { scanned_ids: string[]; scanned: number; recovered: number; exhausted: number; unchanged: number; dry_run: boolean; }; dispatch: { claimed: number; claimed_ids: string[]; claim_steps: { delivery_id: string; attempt_count: number; }[]; succeeded: number; retried: number; exhausted: number; skipped: number; results: ({ delivery_id: string; endpoint_id: string; status: "succeeded"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "retry"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "exhausted"; status_code?: number | undefined; error_code?: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked" | undefined; } | { delivery_id: string; endpoint_id: string; status: "skipped"; error_code: "delivery_failed" | "delivery_state_conflict" | "delivery_unavailable" | "endpoint_unavailable" | "http_rejected" | "lease_conflict" | "signing_secret_unavailable" | "url_policy_blocked"; })[]; requested?: number | undefined; pending_ids?: string[] | undefined; already_done?: number | undefined; }; }>; export declare function executeWebhookRuntimeStatusOperation(context: WebhookOperationContext, input: z.output): Promise<{ store: "file" | "postgres"; schema_version: number; healthy: boolean; checked_at: string; endpoints: { total: number; enabled: number; circuit_open: number; }; deliveries: { pending: number; delivering: number; retry: number; succeeded: number; exhausted: number; due: number; dead_letter: number; oldest_due_at: string | undefined; }; workers: { running: number; stale: number; stopped: number; failed: number; last_heartbeat_at: string | undefined; }; }>; export declare function executeWebhookInboundIngestOperation(context: WebhookOperationContext, input: z.output): Promise<{ event_id: string; event_type: "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.test"; matched_endpoints: number; queued_deliveries: number; duplicate_deliveries: number; delivery_ids: string[]; }>; export declare function executeWebhookDlqListOperation(context: WebhookOperationContext, input: z.output): Promise<{ deliveries: { id: string; event_id: string; endpoint_id: string; event: { id: string; type: "abtest.failed" | "abtest.inconclusive" | "abtest.ready-for-analysis" | "abtest.started" | "abtest.winner-selected" | "campaign.cancelled" | "campaign.finished" | "campaign.paused" | "campaign.scheduled" | "campaign.started" | "delivery.bounced" | "delivery.complained" | "delivery.delayed" | "delivery.delivered" | "delivery.rejected" | "operation.blocked" | "operation.failed" | "operation.started" | "operation.succeeded" | "sequence.created" | "sequence.deleted" | "sequence.enrolled" | "sequence.paused" | "sequence.reconciled" | "sequence.resumed" | "sequence.revised" | "subscriber.blocklisted" | "subscriber.created" | "subscriber.unsubscribed" | "subscriber.updated" | "webhook.test"; schema_version: 1; occurred_at: string; source: import("@listmonk-ops/operations/specs").OperationEventSource; correlation_id_present: boolean; subject: { kind: import("./outbound-webhooks.js").OutboundWebhookSubjectKind; key_redacted: true; } | undefined; }; status: import("./outbound-webhooks.js").OutboundWebhookDeliveryStatus; attempt_count: number; manual_retry_count: number; next_attempt_at: string; last_attempt_at: string | undefined; completed_at: string | undefined; status_code: number | undefined; last_error_present: boolean; }[]; }>; export declare function executeWebhookDlqReplayOperation(context: WebhookOperationContext, input: z.output): Promise<{ eligible: number; replayed: number; failed: number; dry_run: boolean; delivery_ids: string[]; replayed_generations: { delivery_id: string; manual_retry_count: number; }[]; errors: { delivery_id: string; error_code: import("./outbound-webhooks.js").OutboundWebhookDispatchErrorCode; }[]; }>; export declare function executeWebhookCircuitResetOperation(context: WebhookOperationContext, input: z.output): Promise<{ endpoint_id: string; circuit_state: "closed"; consecutive_failures: 0; }>; export declare const webhookListOperation: import("@listmonk-ops/operations").OperationDefinition>>; }, z.core.$strip>, z.ZodObject<{ endpoints: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>>; export declare const webhookCreateOperation: import("@listmonk-ops/operations").OperationDefinition>>; enabled: z.ZodDefault>>; timeout_ms: z.ZodDefault, unknown>>>; max_attempts: z.ZodDefault, unknown>>>; circuit_failure_threshold: z.ZodDefault, unknown>>>; circuit_cooldown_ms: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; created: z.ZodBoolean; }, z.core.$strip>>; export declare const webhookUpdateOperation: import("@listmonk-ops/operations").OperationDefinition; url: z.ZodOptional; secret_ref: z.ZodOptional; event_filters: z.ZodOptional>>>; enabled: z.ZodOptional>>; timeout_ms: z.ZodOptional, unknown>>>; max_attempts: z.ZodOptional, unknown>>>; circuit_failure_threshold: z.ZodOptional, unknown>>>; circuit_cooldown_ms: z.ZodOptional, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; }, z.core.$strip>>; export declare const webhookDeleteOperation: import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ deleted: z.ZodBoolean; endpoint: z.ZodOptional>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>>; export declare const webhookTestOperation: import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; delivery_id: z.ZodOptional; replayed: z.ZodBoolean; bound_revision: z.ZodString; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; export declare const webhookDispatchOperation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>>; export declare const webhookDeliveryListOperation: import("@listmonk-ops/operations").OperationDefinition; status: z.ZodOptional>; event_type: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>>; export declare const webhookDeliveryRetryOperation: import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ delivery: z.ZodObject<{ id: z.ZodUUID; event_id: z.ZodUUID; endpoint_id: z.ZodUUID; event: z.ZodObject<{ id: z.ZodUUID; type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>; retried: z.ZodBoolean; retry_generation: z.ZodNumber; }, z.core.$strip>>; export declare const webhookReconcileOperation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; dry_run: z.ZodDefault>>; recovery_set: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>>; export declare const webhookPruneOperation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; before: z.ZodOptional; ids: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; deleted: z.ZodNumber; dry_run: z.ZodBoolean; before: z.ZodISODateTime; ids: z.ZodReadonly>; }, z.core.$strip>>; export declare const webhookTickOperation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; reconcile_limit: z.ZodDefault, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ reconcile: z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; export declare const webhookRuntimeStatusOperation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; }, z.core.$strip>, z.ZodObject<{ store: z.ZodEnum<{ file: "file"; postgres: "postgres"; }>; schema_version: z.ZodNumber; healthy: z.ZodBoolean; checked_at: z.ZodISODateTime; endpoints: z.ZodObject<{ total: z.ZodNumber; enabled: z.ZodNumber; circuit_open: z.ZodNumber; }, z.core.$strip>; deliveries: z.ZodObject<{ pending: z.ZodNumber; delivering: z.ZodNumber; retry: z.ZodNumber; succeeded: z.ZodNumber; exhausted: z.ZodNumber; due: z.ZodNumber; dead_letter: z.ZodNumber; oldest_due_at: z.ZodOptional; }, z.core.$strip>; workers: z.ZodObject<{ running: z.ZodNumber; stale: z.ZodNumber; stopped: z.ZodNumber; failed: z.ZodNumber; last_heartbeat_at: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; export declare const webhookInboundIngestOperation: import("@listmonk-ops/operations").OperationDefinition; occurred_at: z.ZodOptional; message_id: z.ZodOptional; subscriber_uuid: z.ZodOptional; campaign_id: z.ZodOptional, unknown>>>; metadata: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; event_type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; matched_endpoints: z.ZodNumber; queued_deliveries: z.ZodNumber; duplicate_deliveries: z.ZodNumber; delivery_ids: z.ZodArray; }, z.core.$strip>>; export declare const webhookDlqListOperation: import("@listmonk-ops/operations").OperationDefinition; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>>; export declare const webhookDlqReplayOperation: import("@listmonk-ops/operations").OperationDefinition; delivery_ids: z.ZodOptional>; recovery_generations: z.ZodOptional>>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; replayed: z.ZodNumber; failed: z.ZodNumber; dry_run: z.ZodBoolean; delivery_ids: z.ZodArray; replayed_generations: z.ZodArray>; errors: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; export declare const webhookCircuitResetOperation: import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ endpoint_id: z.ZodUUID; circuit_state: z.ZodLiteral<"closed">; consecutive_failures: z.ZodLiteral<0>; }, z.core.$strip>>; export declare function invokeWebhookListOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookCreateOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookUpdateOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookDeleteOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookTestOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookDispatchOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookDeliveryListOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookDeliveryRetryOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookReconcileOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookPruneOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookTickOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookRuntimeStatusOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookInboundIngestOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookDlqListOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookDlqReplayOperation(context: WebhookOperationContext, input: unknown): Promise>; export declare function invokeWebhookCircuitResetOperation(context: WebhookOperationContext, input: unknown): Promise>; declare const webhookOperationBindings: readonly [{ readonly operation: import("@listmonk-ops/operations").OperationDefinition>>; }, z.core.$strip>, z.ZodObject<{ endpoints: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookListOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition>>; enabled: z.ZodDefault>>; timeout_ms: z.ZodDefault, unknown>>>; max_attempts: z.ZodDefault, unknown>>>; circuit_failure_threshold: z.ZodDefault, unknown>>>; circuit_cooldown_ms: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; created: z.ZodBoolean; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookCreateOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; url: z.ZodOptional; secret_ref: z.ZodOptional; event_filters: z.ZodOptional>>>; enabled: z.ZodOptional>>; timeout_ms: z.ZodOptional, unknown>>>; max_attempts: z.ZodOptional, unknown>>>; circuit_failure_threshold: z.ZodOptional, unknown>>>; circuit_cooldown_ms: z.ZodOptional, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookUpdateOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ deleted: z.ZodBoolean; endpoint: z.ZodOptional>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookDeleteOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; delivery_id: z.ZodOptional; replayed: z.ZodBoolean; bound_revision: z.ZodString; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookTestOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookDispatchOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; status: z.ZodOptional>; event_type: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookDeliveryListOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ delivery: z.ZodObject<{ id: z.ZodUUID; event_id: z.ZodUUID; endpoint_id: z.ZodUUID; event: z.ZodObject<{ id: z.ZodUUID; type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>; retried: z.ZodBoolean; retry_generation: z.ZodNumber; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookDeliveryRetryOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; dry_run: z.ZodDefault>>; recovery_set: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookReconcileOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; before: z.ZodOptional; ids: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; deleted: z.ZodNumber; dry_run: z.ZodBoolean; before: z.ZodISODateTime; ids: z.ZodReadonly>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookPruneOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; reconcile_limit: z.ZodDefault, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ reconcile: z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookTickOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, unknown>>>; }, z.core.$strip>, z.ZodObject<{ store: z.ZodEnum<{ file: "file"; postgres: "postgres"; }>; schema_version: z.ZodNumber; healthy: z.ZodBoolean; checked_at: z.ZodISODateTime; endpoints: z.ZodObject<{ total: z.ZodNumber; enabled: z.ZodNumber; circuit_open: z.ZodNumber; }, z.core.$strip>; deliveries: z.ZodObject<{ pending: z.ZodNumber; delivering: z.ZodNumber; retry: z.ZodNumber; succeeded: z.ZodNumber; exhausted: z.ZodNumber; due: z.ZodNumber; dead_letter: z.ZodNumber; oldest_due_at: z.ZodOptional; }, z.core.$strip>; workers: z.ZodObject<{ running: z.ZodNumber; stale: z.ZodNumber; stopped: z.ZodNumber; failed: z.ZodNumber; last_heartbeat_at: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookRuntimeStatusOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; occurred_at: z.ZodOptional; message_id: z.ZodOptional; subscriber_uuid: z.ZodOptional; campaign_id: z.ZodOptional, unknown>>>; metadata: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; event_type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; matched_endpoints: z.ZodNumber; queued_deliveries: z.ZodNumber; duplicate_deliveries: z.ZodNumber; delivery_ids: z.ZodArray; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookInboundIngestOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookDlqListOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition; delivery_ids: z.ZodOptional>; recovery_generations: z.ZodOptional>>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; replayed: z.ZodNumber; failed: z.ZodNumber; dry_run: z.ZodBoolean; delivery_ids: z.ZodArray; replayed_generations: z.ZodArray>; errors: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookDlqReplayOperation; }, { readonly operation: import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ endpoint_id: z.ZodUUID; circuit_state: z.ZodLiteral<"closed">; consecutive_failures: z.ZodLiteral<0>; }, z.core.$strip>>; readonly invoke: typeof invokeWebhookCircuitResetOperation; }]; export declare const webhookOperations: (import("@listmonk-ops/operations").OperationDefinition>>; }, z.core.$strip>, z.ZodObject<{ endpoints: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition>>; enabled: z.ZodDefault>>; timeout_ms: z.ZodDefault, unknown>>>; max_attempts: z.ZodDefault, unknown>>>; circuit_failure_threshold: z.ZodDefault, unknown>>>; circuit_cooldown_ms: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; created: z.ZodBoolean; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; url: z.ZodOptional; secret_ref: z.ZodOptional; event_filters: z.ZodOptional>>>; enabled: z.ZodOptional>>; timeout_ms: z.ZodOptional, unknown>>>; max_attempts: z.ZodOptional, unknown>>>; circuit_failure_threshold: z.ZodOptional, unknown>>>; circuit_cooldown_ms: z.ZodOptional, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ deleted: z.ZodBoolean; endpoint: z.ZodOptional>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; delivery_id: z.ZodOptional; replayed: z.ZodBoolean; bound_revision: z.ZodString; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; status: z.ZodOptional>; event_type: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ delivery: z.ZodObject<{ id: z.ZodUUID; event_id: z.ZodUUID; endpoint_id: z.ZodUUID; event: z.ZodObject<{ id: z.ZodUUID; type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>; retried: z.ZodBoolean; retry_generation: z.ZodNumber; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; dry_run: z.ZodDefault>>; recovery_set: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; before: z.ZodOptional; ids: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; deleted: z.ZodNumber; dry_run: z.ZodBoolean; before: z.ZodISODateTime; ids: z.ZodReadonly>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; reconcile_limit: z.ZodDefault, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ reconcile: z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; }, z.core.$strip>, z.ZodObject<{ store: z.ZodEnum<{ file: "file"; postgres: "postgres"; }>; schema_version: z.ZodNumber; healthy: z.ZodBoolean; checked_at: z.ZodISODateTime; endpoints: z.ZodObject<{ total: z.ZodNumber; enabled: z.ZodNumber; circuit_open: z.ZodNumber; }, z.core.$strip>; deliveries: z.ZodObject<{ pending: z.ZodNumber; delivering: z.ZodNumber; retry: z.ZodNumber; succeeded: z.ZodNumber; exhausted: z.ZodNumber; due: z.ZodNumber; dead_letter: z.ZodNumber; oldest_due_at: z.ZodOptional; }, z.core.$strip>; workers: z.ZodObject<{ running: z.ZodNumber; stale: z.ZodNumber; stopped: z.ZodNumber; failed: z.ZodNumber; last_heartbeat_at: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; occurred_at: z.ZodOptional; message_id: z.ZodOptional; subscriber_uuid: z.ZodOptional; campaign_id: z.ZodOptional, unknown>>>; metadata: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; event_type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; matched_endpoints: z.ZodNumber; queued_deliveries: z.ZodNumber; duplicate_deliveries: z.ZodNumber; delivery_ids: z.ZodArray; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; delivery_ids: z.ZodOptional>; recovery_generations: z.ZodOptional>>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; replayed: z.ZodNumber; failed: z.ZodNumber; dry_run: z.ZodBoolean; delivery_ids: z.ZodArray; replayed_generations: z.ZodArray>; errors: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ endpoint_id: z.ZodUUID; circuit_state: z.ZodLiteral<"closed">; consecutive_failures: z.ZodLiteral<0>; }, z.core.$strip>>)[]; export declare const webhookOperationCatalog: Readonly<{ id: string; title: string; operations: (import("@listmonk-ops/operations").OperationDefinition>>; }, z.core.$strip>, z.ZodObject<{ endpoints: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition>>; enabled: z.ZodDefault>>; timeout_ms: z.ZodDefault, unknown>>>; max_attempts: z.ZodDefault, unknown>>>; circuit_failure_threshold: z.ZodDefault, unknown>>>; circuit_cooldown_ms: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; created: z.ZodBoolean; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; url: z.ZodOptional; secret_ref: z.ZodOptional; event_filters: z.ZodOptional>>>; enabled: z.ZodOptional>>; timeout_ms: z.ZodOptional, unknown>>>; max_attempts: z.ZodOptional, unknown>>>; circuit_failure_threshold: z.ZodOptional, unknown>>>; circuit_cooldown_ms: z.ZodOptional, unknown>>>; }, z.core.$strip>, z.ZodObject<{ endpoint: z.ZodObject<{ id: z.ZodUUID; name: z.ZodString; url_origin: z.ZodString; url_fingerprint: z.ZodString; secret_reference_configured: z.ZodBoolean; event_filters: z.ZodArray>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ deleted: z.ZodBoolean; endpoint: z.ZodOptional>>; enabled: z.ZodBoolean; timeout_ms: z.ZodNumber; max_attempts: z.ZodNumber; circuit_failure_threshold: z.ZodNumber; circuit_cooldown_ms: z.ZodNumber; created_at: z.ZodISODateTime; updated_at: z.ZodISODateTime; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; delivery_id: z.ZodOptional; replayed: z.ZodBoolean; bound_revision: z.ZodString; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; status: z.ZodOptional>; event_type: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; }, z.core.$strip>, z.ZodObject<{ delivery: z.ZodObject<{ id: z.ZodUUID; event_id: z.ZodUUID; endpoint_id: z.ZodUUID; event: z.ZodObject<{ id: z.ZodUUID; type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>; retried: z.ZodBoolean; retry_generation: z.ZodNumber; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; dry_run: z.ZodDefault>>; recovery_set: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; before: z.ZodOptional; ids: z.ZodOptional>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; deleted: z.ZodNumber; dry_run: z.ZodBoolean; before: z.ZodISODateTime; ids: z.ZodReadonly>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; reconcile_limit: z.ZodDefault, unknown>>>; recovery_set: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ reconcile: z.ZodObject<{ scanned_ids: z.ZodArray; scanned: z.ZodNumber; recovered: z.ZodNumber; exhausted: z.ZodNumber; unchanged: z.ZodNumber; dry_run: z.ZodBoolean; }, z.core.$strip>; dispatch: z.ZodObject<{ claimed: z.ZodNumber; claimed_ids: z.ZodArray; claim_steps: z.ZodArray>; succeeded: z.ZodNumber; retried: z.ZodNumber; exhausted: z.ZodNumber; skipped: z.ZodNumber; results: z.ZodArray; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"retry">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"exhausted">; status_code: z.ZodOptional; error_code: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ delivery_id: z.ZodUUID; endpoint_id: z.ZodUUID; status: z.ZodLiteral<"skipped">; error_code: z.ZodEnum<{ delivery_failed: "delivery_failed"; delivery_state_conflict: "delivery_state_conflict"; delivery_unavailable: "delivery_unavailable"; endpoint_unavailable: "endpoint_unavailable"; http_rejected: "http_rejected"; lease_conflict: "lease_conflict"; signing_secret_unavailable: "signing_secret_unavailable"; url_policy_blocked: "url_policy_blocked"; }>; }, z.core.$strip>], "status">>; requested: z.ZodOptional; pending_ids: z.ZodOptional>; already_done: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, unknown>>>; }, z.core.$strip>, z.ZodObject<{ store: z.ZodEnum<{ file: "file"; postgres: "postgres"; }>; schema_version: z.ZodNumber; healthy: z.ZodBoolean; checked_at: z.ZodISODateTime; endpoints: z.ZodObject<{ total: z.ZodNumber; enabled: z.ZodNumber; circuit_open: z.ZodNumber; }, z.core.$strip>; deliveries: z.ZodObject<{ pending: z.ZodNumber; delivering: z.ZodNumber; retry: z.ZodNumber; succeeded: z.ZodNumber; exhausted: z.ZodNumber; due: z.ZodNumber; dead_letter: z.ZodNumber; oldest_due_at: z.ZodOptional; }, z.core.$strip>; workers: z.ZodObject<{ running: z.ZodNumber; stale: z.ZodNumber; stopped: z.ZodNumber; failed: z.ZodNumber; last_heartbeat_at: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; occurred_at: z.ZodOptional; message_id: z.ZodOptional; subscriber_uuid: z.ZodOptional; campaign_id: z.ZodOptional, unknown>>>; metadata: z.ZodDefault>; }, z.core.$strip>, z.ZodObject<{ event_id: z.ZodUUID; event_type: z.ZodEnum<{ "abtest.failed": "abtest.failed"; "abtest.inconclusive": "abtest.inconclusive"; "abtest.ready-for-analysis": "abtest.ready-for-analysis"; "abtest.started": "abtest.started"; "abtest.winner-selected": "abtest.winner-selected"; "campaign.cancelled": "campaign.cancelled"; "campaign.finished": "campaign.finished"; "campaign.paused": "campaign.paused"; "campaign.scheduled": "campaign.scheduled"; "campaign.started": "campaign.started"; "delivery.bounced": "delivery.bounced"; "delivery.complained": "delivery.complained"; "delivery.delayed": "delivery.delayed"; "delivery.delivered": "delivery.delivered"; "delivery.rejected": "delivery.rejected"; "operation.blocked": "operation.blocked"; "operation.failed": "operation.failed"; "operation.started": "operation.started"; "operation.succeeded": "operation.succeeded"; "sequence.created": "sequence.created"; "sequence.deleted": "sequence.deleted"; "sequence.enrolled": "sequence.enrolled"; "sequence.paused": "sequence.paused"; "sequence.reconciled": "sequence.reconciled"; "sequence.resumed": "sequence.resumed"; "sequence.revised": "sequence.revised"; "subscriber.blocklisted": "subscriber.blocklisted"; "subscriber.created": "subscriber.created"; "subscriber.unsubscribed": "subscriber.unsubscribed"; "subscriber.updated": "subscriber.updated"; "webhook.test": "webhook.test"; }>; matched_endpoints: z.ZodNumber; queued_deliveries: z.ZodNumber; duplicate_deliveries: z.ZodNumber; delivery_ids: z.ZodArray; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; limit: z.ZodDefault, unknown>>>; }, z.core.$strip>, z.ZodObject<{ deliveries: z.ZodArray; schema_version: z.ZodNumber; occurred_at: z.ZodISODateTime; source: z.ZodEnum<{ abtest: "abtest"; listmonk: "listmonk"; operation: "operation"; provider: "provider"; sequence: "sequence"; webhook: "webhook"; }>; correlation_id_present: z.ZodBoolean; subject: z.ZodOptional; key_redacted: z.ZodLiteral; }, z.core.$strip>>; }, z.core.$strip>; status: z.ZodEnum<{ delivering: "delivering"; exhausted: "exhausted"; pending: "pending"; retry: "retry"; succeeded: "succeeded"; }>; attempt_count: z.ZodNumber; manual_retry_count: z.ZodNumber; next_attempt_at: z.ZodISODateTime; last_attempt_at: z.ZodOptional; completed_at: z.ZodOptional; status_code: z.ZodOptional; last_error_present: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition; delivery_ids: z.ZodOptional>; recovery_generations: z.ZodOptional>>; limit: z.ZodDefault, unknown>>>; dry_run: z.ZodDefault>>; }, z.core.$strip>, z.ZodObject<{ eligible: z.ZodNumber; replayed: z.ZodNumber; failed: z.ZodNumber; dry_run: z.ZodBoolean; delivery_ids: z.ZodArray; replayed_generations: z.ZodArray>; errors: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>> | import("@listmonk-ops/operations").OperationDefinition, z.ZodObject<{ endpoint_id: z.ZodUUID; circuit_state: z.ZodLiteral<"closed">; consecutive_failures: z.ZodLiteral<0>; }, z.core.$strip>>)[]; specMigrationExemptions: readonly import("@listmonk-ops/operations/specs").OperationSpecMigrationExemption[]; }>; export type WebhookOperation = (typeof webhookOperationBindings)[number]["operation"]; export declare function getWebhookOperationByMcpName(name: string): WebhookOperation | undefined; export interface WebhookOperationInvocation { operation: WebhookOperation; output: Record; } export declare function invokeWebhookOperationByMcpName(context: WebhookOperationContext, name: string, input: unknown): Promise; export {};