@flowgram.ai/runtime-js 0.2.21 → 0.2.23

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
@@ -44,11 +44,35 @@ interface SnapshotData {
44
44
  outputs: WorkflowOutputs;
45
45
  data: any;
46
46
  branch?: string;
47
+ error?: string;
47
48
  }
48
49
  interface Snapshot extends SnapshotData {
49
50
  id: string;
50
51
  }
51
52
 
53
+ /**
54
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
55
+ * SPDX-License-Identifier: MIT
56
+ */
57
+ declare enum WorkflowMessageType {
58
+ Log = "log",
59
+ Info = "info",
60
+ Debug = "debug",
61
+ Error = "error",
62
+ Warn = "warning"
63
+ }
64
+ interface MessageData {
65
+ message: string;
66
+ nodeID?: string;
67
+ timestamp?: number;
68
+ }
69
+ interface IMessage extends MessageData {
70
+ id: string;
71
+ type: WorkflowMessageType;
72
+ timestamp: number;
73
+ }
74
+ type WorkflowMessages = Record<WorkflowMessageType, IMessage[]>;
75
+
52
76
  /**
53
77
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
54
78
  * SPDX-License-Identifier: MIT
@@ -58,12 +82,14 @@ interface NodeReport extends StatusData {
58
82
  id: string;
59
83
  snapshots: Snapshot[];
60
84
  }
85
+ type WorkflowReports = Record<string, NodeReport>;
61
86
  interface IReport {
62
87
  id: string;
63
88
  inputs: WorkflowInputs;
64
89
  outputs: WorkflowOutputs;
65
90
  workflowStatus: StatusData;
66
- reports: Record<string, NodeReport>;
91
+ reports: WorkflowReports;
92
+ messages: WorkflowMessages;
67
93
  }
68
94
 
69
95
  /**
package/dist/index.d.ts CHANGED
@@ -44,11 +44,35 @@ interface SnapshotData {
44
44
  outputs: WorkflowOutputs;
45
45
  data: any;
46
46
  branch?: string;
47
+ error?: string;
47
48
  }
48
49
  interface Snapshot extends SnapshotData {
49
50
  id: string;
50
51
  }
51
52
 
53
+ /**
54
+ * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
55
+ * SPDX-License-Identifier: MIT
56
+ */
57
+ declare enum WorkflowMessageType {
58
+ Log = "log",
59
+ Info = "info",
60
+ Debug = "debug",
61
+ Error = "error",
62
+ Warn = "warning"
63
+ }
64
+ interface MessageData {
65
+ message: string;
66
+ nodeID?: string;
67
+ timestamp?: number;
68
+ }
69
+ interface IMessage extends MessageData {
70
+ id: string;
71
+ type: WorkflowMessageType;
72
+ timestamp: number;
73
+ }
74
+ type WorkflowMessages = Record<WorkflowMessageType, IMessage[]>;
75
+
52
76
  /**
53
77
  * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
54
78
  * SPDX-License-Identifier: MIT
@@ -58,12 +82,14 @@ interface NodeReport extends StatusData {
58
82
  id: string;
59
83
  snapshots: Snapshot[];
60
84
  }
85
+ type WorkflowReports = Record<string, NodeReport>;
61
86
  interface IReport {
62
87
  id: string;
63
88
  inputs: WorkflowInputs;
64
89
  outputs: WorkflowOutputs;
65
90
  workflowStatus: StatusData;
66
- reports: Record<string, NodeReport>;
91
+ reports: WorkflowReports;
92
+ messages: WorkflowMessages;
67
93
  }
68
94
 
69
95
  /**