@slflows/sdk 0.0.7 → 0.0.8
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/v1/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -501,7 +501,7 @@ interface CreatePendingEventOptions {
|
|
|
501
501
|
/** Optional predicted event payload */
|
|
502
502
|
event?: Record<string, any>;
|
|
503
503
|
/** Which output this will emit on (optional) */
|
|
504
|
-
|
|
504
|
+
outputKey?: string;
|
|
505
505
|
/** Parent event (auto-populated in handlers) */
|
|
506
506
|
parentEventId?: string;
|
|
507
507
|
/** Additional parent event IDs for complex lineage */
|
|
@@ -517,7 +517,7 @@ interface UpdatePendingEventOptions {
|
|
|
517
517
|
/** Updated event data (replaces previous event data) */
|
|
518
518
|
event?: Record<string, any>;
|
|
519
519
|
/** Updated output ID to emit on when completed */
|
|
520
|
-
|
|
520
|
+
outputKey?: string;
|
|
521
521
|
/** Updated parent event ID for lineage tracking */
|
|
522
522
|
parentEventId?: string;
|
|
523
523
|
/** Updated additional parent event IDs */
|
|
@@ -581,7 +581,7 @@ declare const getInvocationMetadata: () => Promise<InvocationMetadata>;
|
|
|
581
581
|
* await events.emit({ message: "Hello World" });
|
|
582
582
|
*
|
|
583
583
|
* // Emit to specific output
|
|
584
|
-
* await events.emit(data, {
|
|
584
|
+
* await events.emit(data, { outputKey: "success" });
|
|
585
585
|
*
|
|
586
586
|
* // Create pending event for long operation
|
|
587
587
|
* const pendingId = await events.createPending({
|