@convertrilo/sdk 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/types.d.ts +4 -0
- package/docs/WEBHOOKS.md +24 -1
- package/openapi.yaml +2 -0
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -1723,6 +1723,10 @@ export interface components {
|
|
|
1723
1723
|
error?: string | null;
|
|
1724
1724
|
attempt?: number;
|
|
1725
1725
|
/** Format: date-time */
|
|
1726
|
+
nextRetryAt?: string | null;
|
|
1727
|
+
/** Format: date-time */
|
|
1728
|
+
retriedAt?: string | null;
|
|
1729
|
+
/** Format: date-time */
|
|
1726
1730
|
createdAt?: string;
|
|
1727
1731
|
};
|
|
1728
1732
|
WebhookDeliveryListResponse: {
|
package/docs/WEBHOOKS.md
CHANGED
|
@@ -127,7 +127,28 @@ export async function POST(req: NextRequest) {
|
|
|
127
127
|
- A webhook is automatically disabled after 10 consecutive failures
|
|
128
128
|
- Re-enable it with `PATCH /webhooks/{id}` and `{ "isActive": true }`
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
Failed managed deliveries are scheduled for retry when possible.
|
|
131
|
+
|
|
132
|
+
Retry schedule:
|
|
133
|
+
|
|
134
|
+
- Attempt 2: about 1 minute after the failed attempt
|
|
135
|
+
- Attempt 3: about 5 minutes after the failed attempt
|
|
136
|
+
- Attempt 4: about 30 minutes after the failed attempt
|
|
137
|
+
|
|
138
|
+
Run due retries with:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
pnpm run webhooks:retry
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Use `--limit` to cap one run:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
pnpm run webhooks:retry -- --limit=50
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Schedule this command every minute in production. Webhooks are still disabled after
|
|
151
|
+
10 consecutive failures.
|
|
131
152
|
|
|
132
153
|
## Delivery History
|
|
133
154
|
|
|
@@ -153,6 +174,8 @@ The response includes the 50 most recent attempts for that webhook:
|
|
|
153
174
|
"responseBody": null,
|
|
154
175
|
"error": null,
|
|
155
176
|
"attempt": 1,
|
|
177
|
+
"nextRetryAt": null,
|
|
178
|
+
"retriedAt": null,
|
|
156
179
|
"createdAt": "2026-06-09T07:30:00.000Z"
|
|
157
180
|
}
|
|
158
181
|
]
|
package/openapi.yaml
CHANGED
|
@@ -364,6 +364,8 @@ components:
|
|
|
364
364
|
nullable: true
|
|
365
365
|
description: Network, timeout, or delivery error, truncated to 2048 characters.
|
|
366
366
|
attempt: { type: integer }
|
|
367
|
+
nextRetryAt: { type: string, format: date-time, nullable: true }
|
|
368
|
+
retriedAt: { type: string, format: date-time, nullable: true }
|
|
367
369
|
createdAt: { type: string, format: date-time }
|
|
368
370
|
WebhookDeliveryListResponse:
|
|
369
371
|
type: object
|