@flowgram.ai/runtime-js 0.2.16 → 0.2.18

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/index.d.mts CHANGED
@@ -7,9 +7,17 @@ declare enum FlowGramAPIName {
7
7
  Validation = "Validation"
8
8
  }
9
9
 
10
+ /**
11
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
12
+ * SPDX-License-Identifier: MIT
13
+ */
10
14
  type WorkflowInputs = Record<string, any>;
11
15
  type WorkflowOutputs = Record<string, any>;
12
16
 
17
+ /**
18
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
19
+ * SPDX-License-Identifier: MIT
20
+ */
13
21
  declare enum WorkflowStatus {
14
22
  Pending = "pending",
15
23
  Processing = "processing",
@@ -25,6 +33,11 @@ interface StatusData {
25
33
  timeCost: number;
26
34
  }
27
35
 
36
+ /**
37
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
38
+ * SPDX-License-Identifier: MIT
39
+ */
40
+
28
41
  interface SnapshotData {
29
42
  nodeID: string;
30
43
  inputs: WorkflowInputs;
@@ -36,6 +49,11 @@ interface Snapshot extends SnapshotData {
36
49
  id: string;
37
50
  }
38
51
 
52
+ /**
53
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
54
+ * SPDX-License-Identifier: MIT
55
+ */
56
+
39
57
  interface NodeReport extends StatusData {
40
58
  id: string;
41
59
  snapshots: Snapshot[];
@@ -48,6 +66,11 @@ interface IReport {
48
66
  reports: Record<string, NodeReport>;
49
67
  }
50
68
 
69
+ /**
70
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
71
+ * SPDX-License-Identifier: MIT
72
+ */
73
+
51
74
  interface TaskRunInput {
52
75
  inputs: WorkflowInputs;
53
76
  schema: string;
@@ -56,16 +79,31 @@ interface TaskRunOutput {
56
79
  taskID: string;
57
80
  }
58
81
 
82
+ /**
83
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
84
+ * SPDX-License-Identifier: MIT
85
+ */
86
+
59
87
  interface TaskReportInput {
60
88
  taskID: string;
61
89
  }
62
90
  type TaskReportOutput = IReport | undefined;
63
91
 
92
+ /**
93
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
94
+ * SPDX-License-Identifier: MIT
95
+ */
96
+
64
97
  interface TaskResultInput {
65
98
  taskID: string;
66
99
  }
67
100
  type TaskResultOutput = WorkflowOutputs | undefined;
68
101
 
102
+ /**
103
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
104
+ * SPDX-License-Identifier: MIT
105
+ */
106
+
69
107
  interface TaskCancelInput {
70
108
  taskID: string;
71
109
  }
@@ -73,14 +111,39 @@ type TaskCancelOutput = {
73
111
  success: boolean;
74
112
  };
75
113
 
114
+ /**
115
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
116
+ * SPDX-License-Identifier: MIT
117
+ */
118
+
76
119
  declare const TaskRunAPI: (input: TaskRunInput) => Promise<TaskRunOutput>;
77
120
 
121
+ /**
122
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
123
+ * SPDX-License-Identifier: MIT
124
+ */
125
+
78
126
  declare const TaskResultAPI: (input: TaskResultInput) => Promise<TaskResultOutput>;
79
127
 
128
+ /**
129
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
130
+ * SPDX-License-Identifier: MIT
131
+ */
132
+
80
133
  declare const TaskReportAPI: (input: TaskReportInput) => Promise<TaskReportOutput>;
81
134
 
135
+ /**
136
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
137
+ * SPDX-License-Identifier: MIT
138
+ */
139
+
82
140
  declare const TaskCancelAPI: (input: TaskCancelInput) => Promise<TaskCancelOutput>;
83
141
 
142
+ /**
143
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
144
+ * SPDX-License-Identifier: MIT
145
+ */
146
+
84
147
  declare const WorkflowRuntimeAPIs: Record<FlowGramAPIName, (i: any) => any>;
85
148
 
86
149
  export { TaskCancelAPI, TaskReportAPI, TaskResultAPI, TaskRunAPI, WorkflowRuntimeAPIs };
package/dist/index.d.ts CHANGED
@@ -7,9 +7,17 @@ declare enum FlowGramAPIName {
7
7
  Validation = "Validation"
8
8
  }
9
9
 
10
+ /**
11
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
12
+ * SPDX-License-Identifier: MIT
13
+ */
10
14
  type WorkflowInputs = Record<string, any>;
11
15
  type WorkflowOutputs = Record<string, any>;
12
16
 
17
+ /**
18
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
19
+ * SPDX-License-Identifier: MIT
20
+ */
13
21
  declare enum WorkflowStatus {
14
22
  Pending = "pending",
15
23
  Processing = "processing",
@@ -25,6 +33,11 @@ interface StatusData {
25
33
  timeCost: number;
26
34
  }
27
35
 
36
+ /**
37
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
38
+ * SPDX-License-Identifier: MIT
39
+ */
40
+
28
41
  interface SnapshotData {
29
42
  nodeID: string;
30
43
  inputs: WorkflowInputs;
@@ -36,6 +49,11 @@ interface Snapshot extends SnapshotData {
36
49
  id: string;
37
50
  }
38
51
 
52
+ /**
53
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
54
+ * SPDX-License-Identifier: MIT
55
+ */
56
+
39
57
  interface NodeReport extends StatusData {
40
58
  id: string;
41
59
  snapshots: Snapshot[];
@@ -48,6 +66,11 @@ interface IReport {
48
66
  reports: Record<string, NodeReport>;
49
67
  }
50
68
 
69
+ /**
70
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
71
+ * SPDX-License-Identifier: MIT
72
+ */
73
+
51
74
  interface TaskRunInput {
52
75
  inputs: WorkflowInputs;
53
76
  schema: string;
@@ -56,16 +79,31 @@ interface TaskRunOutput {
56
79
  taskID: string;
57
80
  }
58
81
 
82
+ /**
83
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
84
+ * SPDX-License-Identifier: MIT
85
+ */
86
+
59
87
  interface TaskReportInput {
60
88
  taskID: string;
61
89
  }
62
90
  type TaskReportOutput = IReport | undefined;
63
91
 
92
+ /**
93
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
94
+ * SPDX-License-Identifier: MIT
95
+ */
96
+
64
97
  interface TaskResultInput {
65
98
  taskID: string;
66
99
  }
67
100
  type TaskResultOutput = WorkflowOutputs | undefined;
68
101
 
102
+ /**
103
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
104
+ * SPDX-License-Identifier: MIT
105
+ */
106
+
69
107
  interface TaskCancelInput {
70
108
  taskID: string;
71
109
  }
@@ -73,14 +111,39 @@ type TaskCancelOutput = {
73
111
  success: boolean;
74
112
  };
75
113
 
114
+ /**
115
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
116
+ * SPDX-License-Identifier: MIT
117
+ */
118
+
76
119
  declare const TaskRunAPI: (input: TaskRunInput) => Promise<TaskRunOutput>;
77
120
 
121
+ /**
122
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
123
+ * SPDX-License-Identifier: MIT
124
+ */
125
+
78
126
  declare const TaskResultAPI: (input: TaskResultInput) => Promise<TaskResultOutput>;
79
127
 
128
+ /**
129
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
130
+ * SPDX-License-Identifier: MIT
131
+ */
132
+
80
133
  declare const TaskReportAPI: (input: TaskReportInput) => Promise<TaskReportOutput>;
81
134
 
135
+ /**
136
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
137
+ * SPDX-License-Identifier: MIT
138
+ */
139
+
82
140
  declare const TaskCancelAPI: (input: TaskCancelInput) => Promise<TaskCancelOutput>;
83
141
 
142
+ /**
143
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
144
+ * SPDX-License-Identifier: MIT
145
+ */
146
+
84
147
  declare const WorkflowRuntimeAPIs: Record<FlowGramAPIName, (i: any) => any>;
85
148
 
86
149
  export { TaskCancelAPI, TaskReportAPI, TaskResultAPI, TaskRunAPI, WorkflowRuntimeAPIs };