@slflows/sdk 0.5.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.
Files changed (2) hide show
  1. package/dist/v1/index.d.ts +12 -0
  2. package/package.json +1 -1
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slflows/sdk",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],