@decocms/bindings 1.0.1-alpha.20 → 1.0.1-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/bindings",
3
- "version": "1.0.1-alpha.20",
3
+ "version": "1.0.1-alpha.21",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",
@@ -107,11 +107,17 @@ export type OnEventsInput = z.infer<typeof OnEventsInputSchema>;
107
107
  /**
108
108
  * Per-event result schema
109
109
  * Allows granular control over each event in a batch
110
+ *
111
+ * Three modes:
112
+ * - `{ success: true }` - Event processed successfully
113
+ * - `{ success: false, error: "..." }` - Event failed permanently
114
+ * - `{ retryAfter: 60000 }` - Retry later (success not yet determined)
110
115
  */
111
116
  export const EventResultSchema = z.object({
112
117
  /** Whether this specific event was processed successfully */
113
118
  success: z
114
119
  .boolean()
120
+ .optional()
115
121
  .describe("Whether this event was processed successfully"),
116
122
 
117
123
  /** Error message if success=false */
@@ -120,6 +126,7 @@ export const EventResultSchema = z.object({
120
126
  /**
121
127
  * Request re-delivery of this event after this many milliseconds.
122
128
  * Does not count toward max retry attempts.
129
+ * When present without success, indicates the event should be retried.
123
130
  */
124
131
  retryAfter: z
125
132
  .number()