@slflows/sdk 0.0.4 → 0.0.6
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 +16 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -46,6 +46,11 @@ interface AppSchema {
|
|
|
46
46
|
* and available to all blocks within the app.
|
|
47
47
|
*/
|
|
48
48
|
config?: Record<string, AppConfigField>;
|
|
49
|
+
/**
|
|
50
|
+
* Signals exported by the app.
|
|
51
|
+
* These are available to all blocks within the app.
|
|
52
|
+
*/
|
|
53
|
+
signals?: Record<string, AppSignal>;
|
|
49
54
|
/**
|
|
50
55
|
* Lifecycle hook called when the app needs to synchronize its state.
|
|
51
56
|
* Use this to provision resources, validate configuration, or perform setup.
|
|
@@ -109,6 +114,12 @@ interface AppConfigField {
|
|
|
109
114
|
fixed?: boolean;
|
|
110
115
|
required: boolean;
|
|
111
116
|
default?: unknown;
|
|
117
|
+
sensitive?: boolean;
|
|
118
|
+
}
|
|
119
|
+
interface AppSignal {
|
|
120
|
+
name: string;
|
|
121
|
+
description: string;
|
|
122
|
+
sensitive?: boolean;
|
|
112
123
|
}
|
|
113
124
|
interface AppHTTPComponent {
|
|
114
125
|
onRequest: (input: AppOnHTTPRequestInput) => Promise<void>;
|
|
@@ -157,6 +168,7 @@ interface AppBlockConfigField {
|
|
|
157
168
|
required: boolean;
|
|
158
169
|
default?: unknown;
|
|
159
170
|
fieldKey?: string;
|
|
171
|
+
sensitive?: boolean;
|
|
160
172
|
}
|
|
161
173
|
interface AppBlockComponentInput {
|
|
162
174
|
name?: string;
|
|
@@ -188,6 +200,7 @@ interface AppBlockUIComponent {
|
|
|
188
200
|
interface AppBlockSignal {
|
|
189
201
|
name: string;
|
|
190
202
|
description: string;
|
|
203
|
+
sensitive?: boolean;
|
|
191
204
|
}
|
|
192
205
|
interface AppBlockSchedule {
|
|
193
206
|
description?: string;
|
|
@@ -327,6 +340,7 @@ interface EntityOnInternalMessageInput extends EntityInput {
|
|
|
327
340
|
}
|
|
328
341
|
interface AppOnTimerInput extends AppInput {
|
|
329
342
|
timer: {
|
|
343
|
+
id: string;
|
|
330
344
|
payload: any;
|
|
331
345
|
prompt?: {
|
|
332
346
|
id: string;
|
|
@@ -336,6 +350,7 @@ interface AppOnTimerInput extends AppInput {
|
|
|
336
350
|
}
|
|
337
351
|
interface EntityOnTimerInput extends EntityInput {
|
|
338
352
|
timer: {
|
|
353
|
+
id: string;
|
|
339
354
|
payload: any;
|
|
340
355
|
pendingEvent?: {
|
|
341
356
|
id: string;
|
|
@@ -1092,4 +1107,4 @@ declare const ui: {
|
|
|
1092
1107
|
*/
|
|
1093
1108
|
declare function defineApp(app: AppSchema): AppSchema;
|
|
1094
1109
|
|
|
1095
|
-
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 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 ScheduleDefinition, type UIRequest, blocks, defineApp, events, getInvocationMetadata, http, kv, lifecycle, messaging, timers, ui };
|