@caido/sdk-workflow 0.54.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-workflow",
3
- "version": "0.54.1",
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.24.0"
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
@@ -12,6 +12,7 @@ declare module "caido:workflow" {
12
12
  ScopeSDK,
13
13
  GraphQLSDK,
14
14
  HostedFileSDK,
15
+ NetSDK,
15
16
  } from "caido:utils";
16
17
 
17
18
  /**
@@ -49,6 +50,34 @@ declare module "caido:workflow" {
49
50
  */
50
51
  export type Decision = boolean;
51
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
+
52
81
  /**
53
82
  * The SDK object available to all scripts.
54
83
  * @category SDK
@@ -96,6 +125,10 @@ declare module "caido:workflow" {
96
125
  * The SDK for the HostedFile service.
97
126
  */
98
127
  hostedFile: HostedFileSDK;
128
+ /**
129
+ * The SDK for the Net service.
130
+ */
131
+ net: NetSDK;
99
132
  /**
100
133
  * Converts bytes to a string.
101
134
  *