@caido/sdk-workflow 0.55.0-beta.0 → 0.55.0-beta.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/package.json +2 -2
- package/src/global.d.ts +6 -0
- package/src/typing.d.ts +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caido/sdk-workflow",
|
|
3
|
-
"version": "0.55.0-beta.
|
|
3
|
+
"version": "0.55.0-beta.1",
|
|
4
4
|
"description": "Typing for the Caido Workflow SDK",
|
|
5
5
|
"author": "Caido Labs Inc. <dev@caido.io>",
|
|
6
6
|
"repository": "https://github.com/caido/sdk-js/",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"src/*"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@caido/quickjs-types": "^0.25.
|
|
13
|
+
"@caido/quickjs-types": "^0.25.3"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"generate:doc": "typedoc"
|
package/src/global.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
ConvertInput as _ConvertInput,
|
|
22
22
|
Data as _Data,
|
|
23
23
|
Decision as _Decision,
|
|
24
|
+
NodeInput as _NodeInput,
|
|
25
|
+
NodeResult as _NodeResult,
|
|
26
|
+
NodeInputHTTP as _NodeInputHTTP,
|
|
24
27
|
SDK as _SDK,
|
|
25
28
|
} from "caido:workflow";
|
|
26
29
|
|
|
@@ -50,6 +53,9 @@ declare global {
|
|
|
50
53
|
_ConvertInput as ConvertInput,
|
|
51
54
|
_Data as Data,
|
|
52
55
|
_Decision as Decision,
|
|
56
|
+
_NodeInput as NodeInput,
|
|
57
|
+
_NodeResult as NodeResult,
|
|
58
|
+
_NodeInputHTTP as NodeInputHTTP,
|
|
53
59
|
_SDK as SDK,
|
|
54
60
|
};
|
|
55
61
|
}
|
package/src/typing.d.ts
CHANGED
|
@@ -50,6 +50,34 @@ declare module "caido:workflow" {
|
|
|
50
50
|
*/
|
|
51
51
|
export type Decision = boolean;
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* The input for the JavaScript V2+ Nodes.
|
|
55
|
+
* @category Data
|
|
56
|
+
*/
|
|
57
|
+
export type NodeInput = {
|
|
58
|
+
data?: Bytes;
|
|
59
|
+
extra?: Record<string, any>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The result for the JavaScript V2+ Nodes.
|
|
64
|
+
* @category Data
|
|
65
|
+
*/
|
|
66
|
+
export type NodeResult = {
|
|
67
|
+
data?: Bytes;
|
|
68
|
+
extra?: Record<string, any>;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The input for HTTP JavaScript Nodes.
|
|
73
|
+
* @category Data
|
|
74
|
+
*/
|
|
75
|
+
export type NodeInputHTTP = {
|
|
76
|
+
request?: Request;
|
|
77
|
+
response?: Response;
|
|
78
|
+
extra?: Record<string, any>;
|
|
79
|
+
};
|
|
80
|
+
|
|
53
81
|
/**
|
|
54
82
|
* The SDK object available to all scripts.
|
|
55
83
|
* @category SDK
|