@slflows/sdk 0.4.0 → 0.5.1
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 +14 -0
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -815,6 +815,12 @@ interface AppSchema {
|
|
|
815
815
|
* Called when a timer created with timers.app.set() expires.
|
|
816
816
|
*/
|
|
817
817
|
onTimer?: (input: AppOnTimerInput) => Promise<void>;
|
|
818
|
+
/**
|
|
819
|
+
* Skip confirmation step and automatically confirm the app installation.
|
|
820
|
+
* Useful for apps that don't require any configuration.
|
|
821
|
+
* Defaults to false.
|
|
822
|
+
*/
|
|
823
|
+
autoconfirm?: boolean;
|
|
818
824
|
}
|
|
819
825
|
interface AppUIComponent {
|
|
820
826
|
onRequest: (input: AppOnUIRequestInput) => Promise<any>;
|
|
@@ -887,6 +893,12 @@ interface AppBlock {
|
|
|
887
893
|
ui?: AppBlockUIComponent;
|
|
888
894
|
schedules?: Record<string, AppBlockSchedule>;
|
|
889
895
|
onTimer?: (input: EntityOnTimerInput) => Promise<void>;
|
|
896
|
+
/**
|
|
897
|
+
* Skip confirmation step and automatically confirm the block lifecycle.
|
|
898
|
+
* Useful for blocks that don't require any configuration before sync.
|
|
899
|
+
* Defaults to false.
|
|
900
|
+
*/
|
|
901
|
+
autoconfirm?: boolean;
|
|
890
902
|
}
|
|
891
903
|
interface AppBlockConfigField {
|
|
892
904
|
name: string;
|
|
@@ -1031,6 +1043,8 @@ interface EventContext {
|
|
|
1031
1043
|
* Present when this event was emitted with echo: true.
|
|
1032
1044
|
*/
|
|
1033
1045
|
echo?: {
|
|
1046
|
+
/** Unique identifier of the original event that was echoed */
|
|
1047
|
+
id: string;
|
|
1034
1048
|
/** The event body that was echoed */
|
|
1035
1049
|
body: any;
|
|
1036
1050
|
/** The output key where the original event was emitted */
|