/** * @example * { * id: "id", * sent_after: "2026-01-01T12:00:00.000Z" * } */ export interface ReplayWebhooksRequest { /** Webhook ID, prefixed `hook_`. */ id: string; /** Only replay these event types, in dot form (for example `payment.succeeded`). Omit to include every event. */ events?: string[]; /** Only replay messages whose most recent delivery attempt in the window failed. Defaults to false. Best-effort: a message whose attempts span processing batches can still be re-sent — replays keep the original `webhook-id` by default, so consumers that deduplicate are unaffected. */ failed_only?: boolean; /** Re-send each replayed message under a freshly generated `webhook-id` (in both the envelope and the signed headers) instead of its original one. Defaults to false. Use this when your endpoint deduplicates on `webhook-id` and you want it to process the replays as new messages. */ regenerate_ids?: boolean; /** Start of the delivery window to replay, as an ISO 8601 timestamp. Clamped to the 30-day delivery retention. */ sent_after: string; /** End of the delivery window to replay, as an ISO 8601 timestamp. Defaults to now. */ sent_before?: string; }