@slflows/sdk 0.8.0 → 0.10.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 +18 -2
- package/package.json +3 -3
package/dist/v1/index.d.ts
CHANGED
|
@@ -575,7 +575,7 @@ declare const http: {
|
|
|
575
575
|
* onRequest: async (input) => {
|
|
576
576
|
* if (input.request.path === "/approve") {
|
|
577
577
|
* // Manual approval received
|
|
578
|
-
* await lifecycle.
|
|
578
|
+
* await lifecycle.sync();
|
|
579
579
|
*
|
|
580
580
|
* await http.respond(input.request.requestId, {
|
|
581
581
|
* statusCode: 200,
|
|
@@ -839,6 +839,7 @@ interface JsonSchema {
|
|
|
839
839
|
anyOf?: JsonSchema[];
|
|
840
840
|
oneOf?: JsonSchema[];
|
|
841
841
|
description?: string;
|
|
842
|
+
sensitive?: boolean;
|
|
842
843
|
additionalProperties?: boolean | {
|
|
843
844
|
type: JsonSchemaType;
|
|
844
845
|
};
|
|
@@ -859,6 +860,12 @@ interface AppSignal {
|
|
|
859
860
|
name: string;
|
|
860
861
|
description: string;
|
|
861
862
|
sensitive?: boolean;
|
|
863
|
+
sensitivity?: SignalSensitivity;
|
|
864
|
+
}
|
|
865
|
+
declare enum SignalSensitivity {
|
|
866
|
+
HideByDefault = "hide_by_default",
|
|
867
|
+
NeverShow = "never_show",
|
|
868
|
+
NotSensitive = "not_sensitive"
|
|
862
869
|
}
|
|
863
870
|
interface AppHTTPComponent {
|
|
864
871
|
onRequest: (input: AppOnHTTPRequestInput) => Promise<void>;
|
|
@@ -946,6 +953,12 @@ interface SuggestValuesInput {
|
|
|
946
953
|
block: EntityContext;
|
|
947
954
|
/** Optional search phrase entered by the user to filter suggestions */
|
|
948
955
|
searchPhrase?: string;
|
|
956
|
+
/**
|
|
957
|
+
* Static input config values from other fields on the same input.
|
|
958
|
+
* Only present for input-level config fields. Contains the parsed values
|
|
959
|
+
* of sibling config fields whose expressions are static JSON values.
|
|
960
|
+
*/
|
|
961
|
+
staticInputConfig?: Record<string, unknown>;
|
|
949
962
|
}
|
|
950
963
|
/**
|
|
951
964
|
* Output from the suggestValues function.
|
|
@@ -953,6 +966,8 @@ interface SuggestValuesInput {
|
|
|
953
966
|
interface SuggestValuesOutput {
|
|
954
967
|
/** Array of suggested values to present to the user */
|
|
955
968
|
suggestedValues: SuggestedValue[];
|
|
969
|
+
/** Optional message to display above the suggestions list */
|
|
970
|
+
message?: string;
|
|
956
971
|
}
|
|
957
972
|
/**
|
|
958
973
|
* A single suggested value with a display label and actual value.
|
|
@@ -995,6 +1010,7 @@ interface AppBlockSignal {
|
|
|
995
1010
|
name: string;
|
|
996
1011
|
description: string;
|
|
997
1012
|
sensitive?: boolean;
|
|
1013
|
+
sensitivity?: SignalSensitivity;
|
|
998
1014
|
}
|
|
999
1015
|
interface AppBlockSchedule {
|
|
1000
1016
|
description?: string;
|
|
@@ -1237,5 +1253,5 @@ interface PopulateFrom {
|
|
|
1237
1253
|
outputProperty: string;
|
|
1238
1254
|
}
|
|
1239
1255
|
|
|
1240
|
-
export { blocks, defineApp, events, getInvocationMetadata, http, kv, lifecycle, messaging, timers, ui };
|
|
1256
|
+
export { SignalSensitivity, blocks, defineApp, events, getInvocationMetadata, http, kv, lifecycle, messaging, timers, ui };
|
|
1241
1257
|
export type { AppBlock, AppBlockComponentInput, AppBlockComponentOutput, AppBlockConfigField, AppBlockHTTPComponent, AppBlockInputConfigField, AppBlockSchedule, AppBlockSignal, AppBlockUIComponent, AppConfigField, AppContext, AppHTTPComponent, AppHTTPEndpoint, AppInput, AppLifecycleCallbackOutput, AppLifecycleStatus, AppOnCreateOutput, AppOnHTTPRequestInput, AppOnInternalMessageInput, AppOnTimerInput, AppOnTriggerInput, AppOnUIRequestInput, AppSchedule, AppSchema, AppSignal, AppUIComponent, EntityContext, EntityHTTPEndpoint, EntityInput, EntityLifecycleCallbackOutput, EntityLifecycleComponent, EntityLifecycleStatus, EntityOnHTTPRequestInput, EntityOnInternalMessageInput, EntityOnTimerInput, EntityOnTriggerInput, EntityOnUIRequestInput, EntityOutput, EntityView, EntityViewType, EventContext, EventInput, HTTPRequest, JsonSchema, PopulateFrom, ScheduleDefinition, SuggestValuesInput, SuggestValuesOutput, SuggestedValue, Type, UIRequest };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slflows/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"./v1": "./dist/v1/index.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"pkgroll": "^2.
|
|
13
|
-
"rollup": "^4.
|
|
12
|
+
"pkgroll": "^2.27.0",
|
|
13
|
+
"rollup": "^4.59.0",
|
|
14
14
|
"rollup-plugin-dts": "^6.3.0",
|
|
15
15
|
"typescript": "^5.9.3"
|
|
16
16
|
},
|