@xentom/integration-framework 0.0.17 → 0.0.18

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.
@@ -165,12 +165,23 @@ export interface TriggerNextOptions {
165
165
  */
166
166
  ctx?: TriggerRunContext;
167
167
  /**
168
- * Optional identifier to prevent duplicate executions of the same trigger.
169
- * If a trigger with the same deduplicationId is already queued or recently
170
- * executed, this run will be skipped. Useful for ensuring idempotency when
171
- * the same event may be received multiple times.
168
+ * Optional configuration for deduplicating trigger executions.
169
+ * Helps prevent the same trigger from running multiple times when
170
+ * identical events are received.
172
171
  */
173
- deduplicationId?: string;
172
+ deduplication?: {
173
+ /**
174
+ * Unique identifier used to detect duplicate executions.
175
+ * If a trigger with the same ID is already queued or was recently
176
+ * executed, this run will be skipped.
177
+ */
178
+ id: string;
179
+ /**
180
+ * Optional time-to-live (in seconds) for the deduplication record.
181
+ * After this period expires, a trigger with the same ID may run again.
182
+ */
183
+ ttl?: number;
184
+ };
174
185
  }
175
186
  export type TriggerRunContext = Record<string, any>;
176
187
  export type TriggerNodeBuilder = <I extends TriggerNodeInputs, O extends TriggerNodeOutputs>(definition: Omit<TriggerNode<I, O>, 'type'>) => TriggerNode<I, O>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xentom/integration-framework",
3
3
  "description": "A type-safe, declarative framework for building composable workflow integrations using nodes, pins, and rich controls.",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "license": "MIT",
6
6
  "homepage": "https://xentom.com",
7
7
  "author": {