@slflows/sdk 0.0.6 → 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 +4 -4
- 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({
|
|
@@ -1107,4 +1107,4 @@ declare const ui: {
|
|
|
1107
1107
|
*/
|
|
1108
1108
|
declare function defineApp(app: AppSchema): AppSchema;
|
|
1109
1109
|
|
|
1110
|
-
export { type AppBlock, type AppBlockComponentInput, type AppBlockComponentOutput, type AppBlockConfigField, type AppBlockHTTPComponent, type AppBlockSchedule, type AppBlockSignal, type AppBlockUIComponent, type AppConfigField, type AppContext, type AppHTTPComponent, type AppHTTPEndpoint, type AppInput, type AppLifecycleCallbackOutput, type AppLifecycleStatus, type AppOnCreateOutput, type AppOnHTTPRequestInput, type AppOnInternalMessageInput, type AppOnTimerInput, type AppOnTriggerInput, type AppOnUIRequestInput, type AppSchedule, type AppSchema, type AppSignal, type AppUIComponent, type EntityContext, type EntityHTTPEndpoint, type EntityInput, type EntityLifecycleCallbackOutput, type EntityLifecycleComponent, type EntityLifecycleStatus, type EntityOnHTTPRequestInput, type EntityOnInternalMessageInput, type EntityOnTimerInput, type EntityOnTriggerInput, type EntityOnUIRequestInput, type EntityView, type EntityViewType, type EventContext, type EventInput, type HTTPRequest, type ScheduleDefinition, type UIRequest, blocks, defineApp, events, getInvocationMetadata, http, kv, lifecycle, messaging, timers, ui };
|
|
1110
|
+
export { type AppBlock, type AppBlockComponentInput, type AppBlockComponentOutput, type AppBlockConfigField, type AppBlockHTTPComponent, type AppBlockSchedule, type AppBlockSignal, type AppBlockUIComponent, type AppConfigField, type AppContext, type AppHTTPComponent, type AppHTTPEndpoint, type AppInput, type AppLifecycleCallbackOutput, type AppLifecycleStatus, type AppOnCreateOutput, type AppOnHTTPRequestInput, type AppOnInternalMessageInput, type AppOnTimerInput, type AppOnTriggerInput, type AppOnUIRequestInput, type AppSchedule, type AppSchema, type AppSignal, type AppUIComponent, type EntityContext, type EntityHTTPEndpoint, type EntityInput, type EntityLifecycleCallbackOutput, type EntityLifecycleComponent, type EntityLifecycleStatus, type EntityOnHTTPRequestInput, type EntityOnInternalMessageInput, type EntityOnTimerInput, type EntityOnTriggerInput, type EntityOnUIRequestInput, type EntityView, type EntityViewType, type EventContext, type EventInput, type HTTPRequest, type JsonSchema, type ScheduleDefinition, type Type, type UIRequest, blocks, defineApp, events, getInvocationMetadata, http, kv, lifecycle, messaging, timers, ui };
|