@slflows/sdk 0.1.1 → 0.2.0
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 +8 -5
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -587,7 +587,8 @@ declare const http: {
|
|
|
587
587
|
*
|
|
588
588
|
* onSync: async (input) => {
|
|
589
589
|
* // Create approval prompt if needed
|
|
590
|
-
*
|
|
590
|
+
* await lifecycle.prompt.create(
|
|
591
|
+
* "production-deployment-approval",
|
|
591
592
|
* "Please approve production deployment",
|
|
592
593
|
* {
|
|
593
594
|
* redirect: {
|
|
@@ -609,8 +610,8 @@ declare const lifecycle: {
|
|
|
609
610
|
sync: () => Promise<void>;
|
|
610
611
|
proceed: () => Promise<void>;
|
|
611
612
|
prompt: {
|
|
612
|
-
create: (description: string, options: PromptOptions) => Promise<
|
|
613
|
-
delete: (
|
|
613
|
+
create: (key: string, description: string, options: PromptOptions) => Promise<void>;
|
|
614
|
+
delete: (promptKey: string) => Promise<void>;
|
|
614
615
|
};
|
|
615
616
|
};
|
|
616
617
|
/**
|
|
@@ -632,7 +633,7 @@ declare const timers: {
|
|
|
632
633
|
set: (delaySeconds: number, options: {
|
|
633
634
|
inputPayload?: unknown;
|
|
634
635
|
pendingEventId?: string;
|
|
635
|
-
|
|
636
|
+
promptKey?: string;
|
|
636
637
|
description?: string;
|
|
637
638
|
}) => Promise<string>;
|
|
638
639
|
unset: (id: string) => Promise<void>;
|
|
@@ -647,7 +648,7 @@ declare const timers: {
|
|
|
647
648
|
app: {
|
|
648
649
|
set: (delaySeconds: number, options: {
|
|
649
650
|
inputPayload?: unknown;
|
|
650
|
-
|
|
651
|
+
promptKey?: string;
|
|
651
652
|
description?: string;
|
|
652
653
|
}) => Promise<string>;
|
|
653
654
|
unset: (id: string) => Promise<void>;
|
|
@@ -958,6 +959,8 @@ interface AppContext {
|
|
|
958
959
|
config: Record<string, any>;
|
|
959
960
|
/** Current status of the app installation */
|
|
960
961
|
status: "draft" | "in_progress" | "ready" | "failed" | "draining" | "draining_failed" | "drained";
|
|
962
|
+
/** Currently active prompts for this app */
|
|
963
|
+
prompts: Record<string, {}>;
|
|
961
964
|
/** HTTP endpoint information for this app */
|
|
962
965
|
http: AppHTTPEndpoint;
|
|
963
966
|
/** URL for managing this app installation */
|