@datatechsolutions/ui 2.11.93 → 3.1.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.
Files changed (138) hide show
  1. package/dist/astrlabe/contracts.d.mts +3 -3
  2. package/dist/astrlabe/contracts.d.ts +3 -3
  3. package/dist/astrlabe/index.js +108 -108
  4. package/dist/astrlabe/index.mjs +4 -4
  5. package/dist/astrlabe/workflow-canvas.js +4 -4
  6. package/dist/astrlabe/workflow-canvas.mjs +3 -3
  7. package/dist/brand/index.d.mts +1 -15
  8. package/dist/brand/index.d.ts +1 -15
  9. package/dist/brand/index.js +0 -14
  10. package/dist/brand/index.js.map +1 -1
  11. package/dist/brand/index.mjs +0 -14
  12. package/dist/brand/index.mjs.map +1 -1
  13. package/dist/{chunk-24QKSC74.js → chunk-3JJWPOK6.js} +6 -6
  14. package/dist/{chunk-24QKSC74.js.map → chunk-3JJWPOK6.js.map} +1 -1
  15. package/dist/{chunk-HGN5W56D.mjs → chunk-3ZUMJTDT.mjs} +3 -3
  16. package/dist/{chunk-HGN5W56D.mjs.map → chunk-3ZUMJTDT.mjs.map} +1 -1
  17. package/dist/{chunk-LKJZGFM4.mjs → chunk-5GDKCFM5.mjs} +3 -3
  18. package/dist/{chunk-LKJZGFM4.mjs.map → chunk-5GDKCFM5.mjs.map} +1 -1
  19. package/dist/{chunk-ZHUPYX4Q.mjs → chunk-5RM6NGZ6.mjs} +3 -3
  20. package/dist/{chunk-ZHUPYX4Q.mjs.map → chunk-5RM6NGZ6.mjs.map} +1 -1
  21. package/dist/{chunk-DB64YDV2.js → chunk-AOUUZ52N.js} +55 -55
  22. package/dist/{chunk-DB64YDV2.js.map → chunk-AOUUZ52N.js.map} +1 -1
  23. package/dist/{chunk-VGSWSQQU.mjs → chunk-B67DP7MI.mjs} +4 -4
  24. package/dist/{chunk-VGSWSQQU.mjs.map → chunk-B67DP7MI.mjs.map} +1 -1
  25. package/dist/{chunk-NYQAEPC7.js → chunk-EFOXN3LC.js} +159 -168
  26. package/dist/chunk-EFOXN3LC.js.map +1 -0
  27. package/dist/{chunk-ARVLVWUC.js → chunk-F54Q2YJY.js} +97 -15
  28. package/dist/chunk-F54Q2YJY.js.map +1 -0
  29. package/dist/{chunk-GMZ3PTNK.mjs → chunk-H2D2CRTD.mjs} +7 -7
  30. package/dist/{chunk-GMZ3PTNK.mjs.map → chunk-H2D2CRTD.mjs.map} +1 -1
  31. package/dist/{chunk-PTGPQJZJ.js → chunk-HDCUWUNH.js} +15 -15
  32. package/dist/{chunk-PTGPQJZJ.js.map → chunk-HDCUWUNH.js.map} +1 -1
  33. package/dist/{chunk-ZKUYNCAG.js → chunk-I2NZGVBG.js} +1595 -2140
  34. package/dist/chunk-I2NZGVBG.js.map +1 -0
  35. package/dist/{chunk-MLAXYDEU.mjs → chunk-IRPS5UCS.mjs} +3 -3
  36. package/dist/{chunk-MLAXYDEU.mjs.map → chunk-IRPS5UCS.mjs.map} +1 -1
  37. package/dist/{chunk-TEQYIK2B.mjs → chunk-IRT4T3CU.mjs} +92 -101
  38. package/dist/chunk-IRT4T3CU.mjs.map +1 -0
  39. package/dist/{chunk-A3BFURJB.mjs → chunk-JN6IL6OH.mjs} +1595 -2138
  40. package/dist/chunk-JN6IL6OH.mjs.map +1 -0
  41. package/dist/{chunk-NA57KK4O.js → chunk-JSNRCYSO.js} +4 -4
  42. package/dist/{chunk-NA57KK4O.js.map → chunk-JSNRCYSO.js.map} +1 -1
  43. package/dist/{chunk-XSBZNPUO.js → chunk-KR2X2WHJ.js} +53 -53
  44. package/dist/{chunk-XSBZNPUO.js.map → chunk-KR2X2WHJ.js.map} +1 -1
  45. package/dist/{chunk-YEWXDCCI.mjs → chunk-LEKZUS6N.mjs} +4 -4
  46. package/dist/{chunk-YEWXDCCI.mjs.map → chunk-LEKZUS6N.mjs.map} +1 -1
  47. package/dist/{chunk-6NAZVG2O.mjs → chunk-MVBIAXVN.mjs} +4 -4
  48. package/dist/{chunk-6NAZVG2O.mjs.map → chunk-MVBIAXVN.mjs.map} +1 -1
  49. package/dist/{chunk-4TY55HGO.mjs → chunk-OL73LBX5.mjs} +3 -3
  50. package/dist/{chunk-4TY55HGO.mjs.map → chunk-OL73LBX5.mjs.map} +1 -1
  51. package/dist/{chunk-HUGHELRM.mjs → chunk-QYA53LUF.mjs} +6 -6
  52. package/dist/chunk-QYA53LUF.mjs.map +1 -0
  53. package/dist/{chunk-DWFLIXES.mjs → chunk-R4TQWXNG.mjs} +3 -3
  54. package/dist/{chunk-DWFLIXES.mjs.map → chunk-R4TQWXNG.mjs.map} +1 -1
  55. package/dist/{chunk-SMKN4ZVB.js → chunk-RGI74SQH.js} +4 -4
  56. package/dist/{chunk-SMKN4ZVB.js.map → chunk-RGI74SQH.js.map} +1 -1
  57. package/dist/{chunk-FZTOP6EE.js → chunk-RL35XATZ.js} +141 -141
  58. package/dist/chunk-RL35XATZ.js.map +1 -0
  59. package/dist/{chunk-BUI7BCUN.js → chunk-RXZNACMI.js} +33 -33
  60. package/dist/{chunk-BUI7BCUN.js.map → chunk-RXZNACMI.js.map} +1 -1
  61. package/dist/{chunk-ST3GH5OM.js → chunk-SU3YPWFW.js} +26 -26
  62. package/dist/{chunk-ST3GH5OM.js.map → chunk-SU3YPWFW.js.map} +1 -1
  63. package/dist/{chunk-DIMLLLZR.js → chunk-TIJJHW2Z.js} +36 -36
  64. package/dist/{chunk-DIMLLLZR.js.map → chunk-TIJJHW2Z.js.map} +1 -1
  65. package/dist/{chunk-2RDGJXYZ.js → chunk-TVMLV675.js} +67 -67
  66. package/dist/{chunk-2RDGJXYZ.js.map → chunk-TVMLV675.js.map} +1 -1
  67. package/dist/{chunk-Y3WJAYOY.mjs → chunk-UDDZTTLO.mjs} +6 -6
  68. package/dist/chunk-UDDZTTLO.mjs.map +1 -0
  69. package/dist/{chunk-43GCSCQA.js → chunk-W5OEBO6E.js} +12 -12
  70. package/dist/chunk-W5OEBO6E.js.map +1 -0
  71. package/dist/{chunk-3Z366CVM.js → chunk-Y6AEE56Q.js} +67 -67
  72. package/dist/{chunk-3Z366CVM.js.map → chunk-Y6AEE56Q.js.map} +1 -1
  73. package/dist/{chunk-RXFAQFE7.mjs → chunk-YIB2YAM5.mjs} +3 -3
  74. package/dist/{chunk-RXFAQFE7.mjs.map → chunk-YIB2YAM5.mjs.map} +1 -1
  75. package/dist/{chunk-OLXOBT42.mjs → chunk-YV72JM4B.mjs} +4 -4
  76. package/dist/{chunk-OLXOBT42.mjs.map → chunk-YV72JM4B.mjs.map} +1 -1
  77. package/dist/{chunk-MEEFOZC4.js → chunk-ZM5MVWIT.js} +4 -4
  78. package/dist/{chunk-MEEFOZC4.js.map → chunk-ZM5MVWIT.js.map} +1 -1
  79. package/dist/{chunk-PU2KTO4O.mjs → chunk-ZV5EZXXO.mjs} +97 -15
  80. package/dist/chunk-ZV5EZXXO.mjs.map +1 -0
  81. package/dist/index.d.mts +8 -41
  82. package/dist/index.d.ts +8 -41
  83. package/dist/index.js +745 -753
  84. package/dist/index.mjs +2 -2
  85. package/dist/platform/admin/index.js +11 -11
  86. package/dist/platform/admin/index.mjs +5 -5
  87. package/dist/platform/agents-workspace.js +7 -7
  88. package/dist/platform/agents-workspace.mjs +6 -6
  89. package/dist/platform/app-shell.js +4 -4
  90. package/dist/platform/app-shell.mjs +3 -3
  91. package/dist/platform/auth/index.js +28 -28
  92. package/dist/platform/auth/index.mjs +5 -5
  93. package/dist/platform/billing/index.js +4 -4
  94. package/dist/platform/billing/index.mjs +3 -3
  95. package/dist/platform/impersonation/index.js +4 -4
  96. package/dist/platform/impersonation/index.mjs +3 -3
  97. package/dist/platform/index.d.mts +1 -1
  98. package/dist/platform/index.d.ts +1 -1
  99. package/dist/platform/index.js +99 -99
  100. package/dist/platform/index.js.map +1 -1
  101. package/dist/platform/index.mjs +19 -19
  102. package/dist/platform/index.mjs.map +1 -1
  103. package/dist/platform/pages/index.d.mts +4 -5
  104. package/dist/platform/pages/index.d.ts +4 -5
  105. package/dist/platform/pages/index.js +197 -197
  106. package/dist/platform/pages/index.js.map +1 -1
  107. package/dist/platform/pages/index.mjs +9 -9
  108. package/dist/platform/pages/index.mjs.map +1 -1
  109. package/dist/platform/settings/index.js +8 -8
  110. package/dist/platform/settings/index.mjs +7 -7
  111. package/dist/platform/telemetry/index.d.mts +42 -0
  112. package/dist/platform/telemetry/index.d.ts +42 -0
  113. package/dist/platform/telemetry/index.js +75 -0
  114. package/dist/platform/telemetry/index.js.map +1 -0
  115. package/dist/platform/telemetry/index.mjs +68 -0
  116. package/dist/platform/telemetry/index.mjs.map +1 -0
  117. package/dist/platform/workflow-api-client.d.mts +1 -1
  118. package/dist/platform/workflow-api-client.d.ts +1 -1
  119. package/dist/platform/workflow-api-client.js +61 -61
  120. package/dist/platform/workflow-api-client.mjs +1 -1
  121. package/dist/platform/workflow-canvas-shell.js +5 -5
  122. package/dist/platform/workflow-canvas-shell.mjs +4 -4
  123. package/dist/{workflow-api-client-DVLhcpUj.d.ts → workflow-api-client-BKD8OfP_.d.ts} +61 -30
  124. package/dist/{workflow-api-client-DpBxHTHr.d.mts → workflow-api-client-DoYj7nHz.d.mts} +61 -30
  125. package/package.json +7 -1
  126. package/dist/chunk-43GCSCQA.js.map +0 -1
  127. package/dist/chunk-A3BFURJB.mjs.map +0 -1
  128. package/dist/chunk-ARVLVWUC.js.map +0 -1
  129. package/dist/chunk-FZTOP6EE.js.map +0 -1
  130. package/dist/chunk-HUGHELRM.mjs.map +0 -1
  131. package/dist/chunk-NYQAEPC7.js.map +0 -1
  132. package/dist/chunk-PU2KTO4O.mjs.map +0 -1
  133. package/dist/chunk-TEQYIK2B.mjs.map +0 -1
  134. package/dist/chunk-Y3WJAYOY.mjs.map +0 -1
  135. package/dist/chunk-ZKUYNCAG.js.map +0 -1
  136. package/src/brand/logos/fuel-icon.svg +0 -32
  137. package/src/brand/logos/fuel-logo-dark.svg +0 -43
  138. package/src/brand/logos/fuel-logo.svg +0 -43
@@ -1,250 +1,250 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkARVLVWUC_js = require('../chunk-ARVLVWUC.js');
4
+ var chunkF54Q2YJY_js = require('../chunk-F54Q2YJY.js');
5
5
  require('../chunk-FAGDZEKM.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "aiGenerateWorkflow", {
10
10
  enumerable: true,
11
- get: function () { return chunkARVLVWUC_js.aiGenerateWorkflow; }
11
+ get: function () { return chunkF54Q2YJY_js.aiGenerateWorkflow; }
12
12
  });
13
13
  Object.defineProperty(exports, "aiValidateWorkflow", {
14
14
  enumerable: true,
15
- get: function () { return chunkARVLVWUC_js.aiValidateWorkflow; }
15
+ get: function () { return chunkF54Q2YJY_js.aiValidateWorkflow; }
16
16
  });
17
17
  Object.defineProperty(exports, "buildAuthenticatedApiUrl", {
18
18
  enumerable: true,
19
- get: function () { return chunkARVLVWUC_js.buildAuthenticatedApiUrl; }
19
+ get: function () { return chunkF54Q2YJY_js.buildAuthenticatedApiUrl; }
20
20
  });
21
21
  Object.defineProperty(exports, "cancelWorkflowRun", {
22
22
  enumerable: true,
23
- get: function () { return chunkARVLVWUC_js.cancelWorkflowRun; }
23
+ get: function () { return chunkF54Q2YJY_js.cancelWorkflowRun; }
24
24
  });
25
25
  Object.defineProperty(exports, "createAgentConfig", {
26
26
  enumerable: true,
27
- get: function () { return chunkARVLVWUC_js.createAgentConfig; }
27
+ get: function () { return chunkF54Q2YJY_js.createAgentConfig; }
28
28
  });
29
29
  Object.defineProperty(exports, "createAgentPrompt", {
30
30
  enumerable: true,
31
- get: function () { return chunkARVLVWUC_js.createAgentPrompt; }
31
+ get: function () { return chunkF54Q2YJY_js.createAgentPrompt; }
32
32
  });
33
33
  Object.defineProperty(exports, "createAgentRule", {
34
34
  enumerable: true,
35
- get: function () { return chunkARVLVWUC_js.createAgentRule; }
35
+ get: function () { return chunkF54Q2YJY_js.createAgentRule; }
36
36
  });
37
37
  Object.defineProperty(exports, "createAgentTool", {
38
38
  enumerable: true,
39
- get: function () { return chunkARVLVWUC_js.createAgentTool; }
39
+ get: function () { return chunkF54Q2YJY_js.createAgentTool; }
40
40
  });
41
41
  Object.defineProperty(exports, "createAgentToolDefinition", {
42
42
  enumerable: true,
43
- get: function () { return chunkARVLVWUC_js.createAgentToolDefinition; }
43
+ get: function () { return chunkF54Q2YJY_js.createAgentToolDefinition; }
44
44
  });
45
45
  Object.defineProperty(exports, "createDatasource", {
46
46
  enumerable: true,
47
- get: function () { return chunkARVLVWUC_js.createDatasource; }
47
+ get: function () { return chunkF54Q2YJY_js.createDatasource; }
48
48
  });
49
49
  Object.defineProperty(exports, "createModelProviderConnection", {
50
50
  enumerable: true,
51
- get: function () { return chunkARVLVWUC_js.createModelProviderConnection; }
51
+ get: function () { return chunkF54Q2YJY_js.createModelProviderConnection; }
52
52
  });
53
53
  Object.defineProperty(exports, "createWorkflow", {
54
54
  enumerable: true,
55
- get: function () { return chunkARVLVWUC_js.createWorkflow; }
55
+ get: function () { return chunkF54Q2YJY_js.createWorkflow; }
56
56
  });
57
57
  Object.defineProperty(exports, "createWorkflowFromTemplate", {
58
58
  enumerable: true,
59
- get: function () { return chunkARVLVWUC_js.createWorkflowFromTemplate; }
59
+ get: function () { return chunkF54Q2YJY_js.createWorkflowFromTemplate; }
60
60
  });
61
61
  Object.defineProperty(exports, "deleteAgentConfig", {
62
62
  enumerable: true,
63
- get: function () { return chunkARVLVWUC_js.deleteAgentConfig; }
63
+ get: function () { return chunkF54Q2YJY_js.deleteAgentConfig; }
64
64
  });
65
65
  Object.defineProperty(exports, "deleteAgentPrompt", {
66
66
  enumerable: true,
67
- get: function () { return chunkARVLVWUC_js.deleteAgentPrompt; }
67
+ get: function () { return chunkF54Q2YJY_js.deleteAgentPrompt; }
68
68
  });
69
69
  Object.defineProperty(exports, "deleteAgentRule", {
70
70
  enumerable: true,
71
- get: function () { return chunkARVLVWUC_js.deleteAgentRule; }
71
+ get: function () { return chunkF54Q2YJY_js.deleteAgentRule; }
72
72
  });
73
73
  Object.defineProperty(exports, "deleteAgentTool", {
74
74
  enumerable: true,
75
- get: function () { return chunkARVLVWUC_js.deleteAgentTool; }
75
+ get: function () { return chunkF54Q2YJY_js.deleteAgentTool; }
76
76
  });
77
77
  Object.defineProperty(exports, "deleteAgentToolDefinition", {
78
78
  enumerable: true,
79
- get: function () { return chunkARVLVWUC_js.deleteAgentToolDefinition; }
79
+ get: function () { return chunkF54Q2YJY_js.deleteAgentToolDefinition; }
80
80
  });
81
81
  Object.defineProperty(exports, "deleteModelProviderConnection", {
82
82
  enumerable: true,
83
- get: function () { return chunkARVLVWUC_js.deleteModelProviderConnection; }
83
+ get: function () { return chunkF54Q2YJY_js.deleteModelProviderConnection; }
84
84
  });
85
85
  Object.defineProperty(exports, "deleteUpload", {
86
86
  enumerable: true,
87
- get: function () { return chunkARVLVWUC_js.deleteUpload; }
87
+ get: function () { return chunkF54Q2YJY_js.deleteUpload; }
88
88
  });
89
89
  Object.defineProperty(exports, "deleteWorkflow", {
90
90
  enumerable: true,
91
- get: function () { return chunkARVLVWUC_js.deleteWorkflow; }
91
+ get: function () { return chunkF54Q2YJY_js.deleteWorkflow; }
92
92
  });
93
93
  Object.defineProperty(exports, "executeAgentRule", {
94
94
  enumerable: true,
95
- get: function () { return chunkARVLVWUC_js.executeAgentRule; }
95
+ get: function () { return chunkF54Q2YJY_js.executeAgentRule; }
96
96
  });
97
97
  Object.defineProperty(exports, "executeWorkflow", {
98
98
  enumerable: true,
99
- get: function () { return chunkARVLVWUC_js.executeWorkflow; }
99
+ get: function () { return chunkF54Q2YJY_js.executeWorkflow; }
100
100
  });
101
101
  Object.defineProperty(exports, "getAgentConfigsWithPrompts", {
102
102
  enumerable: true,
103
- get: function () { return chunkARVLVWUC_js.getAgentConfigsWithPrompts; }
103
+ get: function () { return chunkF54Q2YJY_js.getAgentConfigsWithPrompts; }
104
104
  });
105
105
  Object.defineProperty(exports, "getAgentModels", {
106
106
  enumerable: true,
107
- get: function () { return chunkARVLVWUC_js.getAgentModels; }
107
+ get: function () { return chunkF54Q2YJY_js.getAgentModels; }
108
108
  });
109
109
  Object.defineProperty(exports, "getAgentPrompts", {
110
110
  enumerable: true,
111
- get: function () { return chunkARVLVWUC_js.getAgentPrompts; }
111
+ get: function () { return chunkF54Q2YJY_js.getAgentPrompts; }
112
112
  });
113
113
  Object.defineProperty(exports, "getAgentRules", {
114
114
  enumerable: true,
115
- get: function () { return chunkARVLVWUC_js.getAgentRules; }
115
+ get: function () { return chunkF54Q2YJY_js.getAgentRules; }
116
116
  });
117
117
  Object.defineProperty(exports, "getAgentToolDefinitions", {
118
118
  enumerable: true,
119
- get: function () { return chunkARVLVWUC_js.getAgentToolDefinitions; }
119
+ get: function () { return chunkF54Q2YJY_js.getAgentToolDefinitions; }
120
120
  });
121
121
  Object.defineProperty(exports, "getAgentTools", {
122
122
  enumerable: true,
123
- get: function () { return chunkARVLVWUC_js.getAgentTools; }
123
+ get: function () { return chunkF54Q2YJY_js.getAgentTools; }
124
124
  });
125
125
  Object.defineProperty(exports, "getAnalyticsSummary", {
126
126
  enumerable: true,
127
- get: function () { return chunkARVLVWUC_js.getAnalyticsSummary; }
127
+ get: function () { return chunkF54Q2YJY_js.getAnalyticsSummary; }
128
128
  });
129
129
  Object.defineProperty(exports, "getCurrentAccessToken", {
130
130
  enumerable: true,
131
- get: function () { return chunkARVLVWUC_js.getCurrentAccessToken; }
131
+ get: function () { return chunkF54Q2YJY_js.getCurrentAccessToken; }
132
132
  });
133
133
  Object.defineProperty(exports, "getDatasourceSchema", {
134
134
  enumerable: true,
135
- get: function () { return chunkARVLVWUC_js.getDatasourceSchema; }
135
+ get: function () { return chunkF54Q2YJY_js.getDatasourceSchema; }
136
136
  });
137
137
  Object.defineProperty(exports, "getDatasourceTables", {
138
138
  enumerable: true,
139
- get: function () { return chunkARVLVWUC_js.getDatasourceTables; }
139
+ get: function () { return chunkF54Q2YJY_js.getDatasourceTables; }
140
140
  });
141
141
  Object.defineProperty(exports, "getDatasources", {
142
142
  enumerable: true,
143
- get: function () { return chunkARVLVWUC_js.getDatasources; }
143
+ get: function () { return chunkF54Q2YJY_js.getDatasources; }
144
144
  });
145
145
  Object.defineProperty(exports, "getPublicSampleWorkflow", {
146
146
  enumerable: true,
147
- get: function () { return chunkARVLVWUC_js.getPublicSampleWorkflow; }
147
+ get: function () { return chunkF54Q2YJY_js.getPublicSampleWorkflow; }
148
148
  });
149
149
  Object.defineProperty(exports, "getRunTimeline", {
150
150
  enumerable: true,
151
- get: function () { return chunkARVLVWUC_js.getRunTimeline; }
151
+ get: function () { return chunkF54Q2YJY_js.getRunTimeline; }
152
152
  });
153
153
  Object.defineProperty(exports, "getUploadDownloadUrl", {
154
154
  enumerable: true,
155
- get: function () { return chunkARVLVWUC_js.getUploadDownloadUrl; }
155
+ get: function () { return chunkF54Q2YJY_js.getUploadDownloadUrl; }
156
156
  });
157
157
  Object.defineProperty(exports, "getWorkflowById", {
158
158
  enumerable: true,
159
- get: function () { return chunkARVLVWUC_js.getWorkflowById; }
159
+ get: function () { return chunkF54Q2YJY_js.getWorkflowById; }
160
160
  });
161
161
  Object.defineProperty(exports, "getWorkflowRunById", {
162
162
  enumerable: true,
163
- get: function () { return chunkARVLVWUC_js.getWorkflowRunById; }
163
+ get: function () { return chunkF54Q2YJY_js.getWorkflowRunById; }
164
164
  });
165
165
  Object.defineProperty(exports, "getWorkflowRuns", {
166
166
  enumerable: true,
167
- get: function () { return chunkARVLVWUC_js.getWorkflowRuns; }
167
+ get: function () { return chunkF54Q2YJY_js.getWorkflowRuns; }
168
168
  });
169
169
  Object.defineProperty(exports, "getWorkflows", {
170
170
  enumerable: true,
171
- get: function () { return chunkARVLVWUC_js.getWorkflows; }
171
+ get: function () { return chunkF54Q2YJY_js.getWorkflows; }
172
172
  });
173
173
  Object.defineProperty(exports, "listModelProviderCatalog", {
174
174
  enumerable: true,
175
- get: function () { return chunkARVLVWUC_js.listModelProviderCatalog; }
175
+ get: function () { return chunkF54Q2YJY_js.listModelProviderCatalog; }
176
176
  });
177
177
  Object.defineProperty(exports, "listModelProviderConnections", {
178
178
  enumerable: true,
179
- get: function () { return chunkARVLVWUC_js.listModelProviderConnections; }
179
+ get: function () { return chunkF54Q2YJY_js.listModelProviderConnections; }
180
180
  });
181
181
  Object.defineProperty(exports, "listWorkflowRuns", {
182
182
  enumerable: true,
183
- get: function () { return chunkARVLVWUC_js.listWorkflowRuns; }
183
+ get: function () { return chunkF54Q2YJY_js.listWorkflowRuns; }
184
184
  });
185
185
  Object.defineProperty(exports, "listWorkflowTemplates", {
186
186
  enumerable: true,
187
- get: function () { return chunkARVLVWUC_js.listWorkflowTemplates; }
187
+ get: function () { return chunkF54Q2YJY_js.listWorkflowTemplates; }
188
188
  });
189
189
  Object.defineProperty(exports, "presignUpload", {
190
190
  enumerable: true,
191
- get: function () { return chunkARVLVWUC_js.presignUpload; }
191
+ get: function () { return chunkF54Q2YJY_js.presignUpload; }
192
192
  });
193
193
  Object.defineProperty(exports, "publishWorkflow", {
194
194
  enumerable: true,
195
- get: function () { return chunkARVLVWUC_js.publishWorkflow; }
195
+ get: function () { return chunkF54Q2YJY_js.publishWorkflow; }
196
196
  });
197
197
  Object.defineProperty(exports, "replayWorkflowRun", {
198
198
  enumerable: true,
199
- get: function () { return chunkARVLVWUC_js.replayWorkflowRun; }
199
+ get: function () { return chunkF54Q2YJY_js.replayWorkflowRun; }
200
200
  });
201
201
  Object.defineProperty(exports, "saveWorkflowDraft", {
202
202
  enumerable: true,
203
- get: function () { return chunkARVLVWUC_js.saveWorkflowDraft; }
203
+ get: function () { return chunkF54Q2YJY_js.saveWorkflowDraft; }
204
204
  });
205
205
  Object.defineProperty(exports, "setAccessTokenProvider", {
206
206
  enumerable: true,
207
- get: function () { return chunkARVLVWUC_js.setAccessTokenProvider; }
207
+ get: function () { return chunkF54Q2YJY_js.setAccessTokenProvider; }
208
208
  });
209
209
  Object.defineProperty(exports, "setAuthenticatedFetch", {
210
210
  enumerable: true,
211
- get: function () { return chunkARVLVWUC_js.setAuthenticatedFetch; }
211
+ get: function () { return chunkF54Q2YJY_js.setAuthenticatedFetch; }
212
212
  });
213
213
  Object.defineProperty(exports, "submitApproval", {
214
214
  enumerable: true,
215
- get: function () { return chunkARVLVWUC_js.submitApproval; }
215
+ get: function () { return chunkF54Q2YJY_js.submitApproval; }
216
216
  });
217
217
  Object.defineProperty(exports, "subscribeToRunEvents", {
218
218
  enumerable: true,
219
- get: function () { return chunkARVLVWUC_js.subscribeToRunEvents; }
219
+ get: function () { return chunkF54Q2YJY_js.subscribeToRunEvents; }
220
220
  });
221
221
  Object.defineProperty(exports, "updateAgentConfig", {
222
222
  enumerable: true,
223
- get: function () { return chunkARVLVWUC_js.updateAgentConfig; }
223
+ get: function () { return chunkF54Q2YJY_js.updateAgentConfig; }
224
224
  });
225
225
  Object.defineProperty(exports, "updateAgentPrompt", {
226
226
  enumerable: true,
227
- get: function () { return chunkARVLVWUC_js.updateAgentPrompt; }
227
+ get: function () { return chunkF54Q2YJY_js.updateAgentPrompt; }
228
228
  });
229
229
  Object.defineProperty(exports, "updateAgentRule", {
230
230
  enumerable: true,
231
- get: function () { return chunkARVLVWUC_js.updateAgentRule; }
231
+ get: function () { return chunkF54Q2YJY_js.updateAgentRule; }
232
232
  });
233
233
  Object.defineProperty(exports, "updateAgentTool", {
234
234
  enumerable: true,
235
- get: function () { return chunkARVLVWUC_js.updateAgentTool; }
235
+ get: function () { return chunkF54Q2YJY_js.updateAgentTool; }
236
236
  });
237
237
  Object.defineProperty(exports, "updateAgentToolDefinition", {
238
238
  enumerable: true,
239
- get: function () { return chunkARVLVWUC_js.updateAgentToolDefinition; }
239
+ get: function () { return chunkF54Q2YJY_js.updateAgentToolDefinition; }
240
240
  });
241
241
  Object.defineProperty(exports, "updateModelProviderConnection", {
242
242
  enumerable: true,
243
- get: function () { return chunkARVLVWUC_js.updateModelProviderConnection; }
243
+ get: function () { return chunkF54Q2YJY_js.updateModelProviderConnection; }
244
244
  });
245
245
  Object.defineProperty(exports, "updateWorkflowSettings", {
246
246
  enumerable: true,
247
- get: function () { return chunkARVLVWUC_js.updateWorkflowSettings; }
247
+ get: function () { return chunkF54Q2YJY_js.updateWorkflowSettings; }
248
248
  });
249
249
  //# sourceMappingURL=workflow-api-client.js.map
250
250
  //# sourceMappingURL=workflow-api-client.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { aiGenerateWorkflow, aiValidateWorkflow, buildAuthenticatedApiUrl, cancelWorkflowRun, createAgentConfig, createAgentPrompt, createAgentRule, createAgentTool, createAgentToolDefinition, createDatasource, createModelProviderConnection, createWorkflow, createWorkflowFromTemplate, deleteAgentConfig, deleteAgentPrompt, deleteAgentRule, deleteAgentTool, deleteAgentToolDefinition, deleteModelProviderConnection, deleteUpload, deleteWorkflow, executeAgentRule, executeWorkflow, getAgentConfigsWithPrompts, getAgentModels, getAgentPrompts, getAgentRules, getAgentToolDefinitions, getAgentTools, getAnalyticsSummary, getCurrentAccessToken, getDatasourceSchema, getDatasourceTables, getDatasources, getPublicSampleWorkflow, getRunTimeline, getUploadDownloadUrl, getWorkflowById, getWorkflowRunById, getWorkflowRuns, getWorkflows, listModelProviderCatalog, listModelProviderConnections, listWorkflowRuns, listWorkflowTemplates, presignUpload, publishWorkflow, replayWorkflowRun, saveWorkflowDraft, setAccessTokenProvider, setAuthenticatedFetch, submitApproval, subscribeToRunEvents, updateAgentConfig, updateAgentPrompt, updateAgentRule, updateAgentTool, updateAgentToolDefinition, updateModelProviderConnection, updateWorkflowSettings } from '../chunk-PU2KTO4O.mjs';
2
+ export { aiGenerateWorkflow, aiValidateWorkflow, buildAuthenticatedApiUrl, cancelWorkflowRun, createAgentConfig, createAgentPrompt, createAgentRule, createAgentTool, createAgentToolDefinition, createDatasource, createModelProviderConnection, createWorkflow, createWorkflowFromTemplate, deleteAgentConfig, deleteAgentPrompt, deleteAgentRule, deleteAgentTool, deleteAgentToolDefinition, deleteModelProviderConnection, deleteUpload, deleteWorkflow, executeAgentRule, executeWorkflow, getAgentConfigsWithPrompts, getAgentModels, getAgentPrompts, getAgentRules, getAgentToolDefinitions, getAgentTools, getAnalyticsSummary, getCurrentAccessToken, getDatasourceSchema, getDatasourceTables, getDatasources, getPublicSampleWorkflow, getRunTimeline, getUploadDownloadUrl, getWorkflowById, getWorkflowRunById, getWorkflowRuns, getWorkflows, listModelProviderCatalog, listModelProviderConnections, listWorkflowRuns, listWorkflowTemplates, presignUpload, publishWorkflow, replayWorkflowRun, saveWorkflowDraft, setAccessTokenProvider, setAuthenticatedFetch, submitApproval, subscribeToRunEvents, updateAgentConfig, updateAgentPrompt, updateAgentRule, updateAgentTool, updateAgentToolDefinition, updateModelProviderConnection, updateWorkflowSettings } from '../chunk-ZV5EZXXO.mjs';
3
3
  import '../chunk-SYNVNTLJ.mjs';
4
4
  //# sourceMappingURL=workflow-api-client.mjs.map
5
5
  //# sourceMappingURL=workflow-api-client.mjs.map
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkSMKN4ZVB_js = require('../chunk-SMKN4ZVB.js');
5
- require('../chunk-NYQAEPC7.js');
6
- require('../chunk-ZKUYNCAG.js');
4
+ var chunkRGI74SQH_js = require('../chunk-RGI74SQH.js');
5
+ require('../chunk-EFOXN3LC.js');
6
+ require('../chunk-I2NZGVBG.js');
7
7
  require('../chunk-UZ3CMNUJ.js');
8
8
  require('../chunk-YXN2K77G.js');
9
9
  require('../chunk-S7KHTUHA.js');
10
- require('../chunk-ARVLVWUC.js');
10
+ require('../chunk-F54Q2YJY.js');
11
11
  require('../chunk-FAGDZEKM.js');
12
12
  require('../chunk-P4YYEM4B.js');
13
13
  require('../chunk-C3H4FM4A.js');
@@ -16,7 +16,7 @@ require('../chunk-C3H4FM4A.js');
16
16
 
17
17
  Object.defineProperty(exports, "WorkflowCanvasShell", {
18
18
  enumerable: true,
19
- get: function () { return chunkSMKN4ZVB_js.WorkflowCanvasShell; }
19
+ get: function () { return chunkRGI74SQH_js.WorkflowCanvasShell; }
20
20
  });
21
21
  //# sourceMappingURL=workflow-canvas-shell.js.map
22
22
  //# sourceMappingURL=workflow-canvas-shell.js.map
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- export { WorkflowCanvasShell } from '../chunk-RXFAQFE7.mjs';
3
- import '../chunk-TEQYIK2B.mjs';
4
- import '../chunk-A3BFURJB.mjs';
2
+ export { WorkflowCanvasShell } from '../chunk-YIB2YAM5.mjs';
3
+ import '../chunk-IRT4T3CU.mjs';
4
+ import '../chunk-JN6IL6OH.mjs';
5
5
  import '../chunk-D2JF6C3E.mjs';
6
6
  import '../chunk-7VJ7CMMT.mjs';
7
7
  import '../chunk-QWG2FMUN.mjs';
8
- import '../chunk-PU2KTO4O.mjs';
8
+ import '../chunk-ZV5EZXXO.mjs';
9
9
  import '../chunk-SYNVNTLJ.mjs';
10
10
  import '../chunk-OZNTQROP.mjs';
11
11
  import '../chunk-5W7L7BT7.mjs';
@@ -183,10 +183,26 @@ interface ModelProviderConnection {
183
183
  updatedAt?: string;
184
184
  }
185
185
  declare function listModelProviderConnections(): Promise<ModelProviderConnection[]>;
186
+ /**
187
+ * One model family record joined onto a provider in the catalog.
188
+ * Mirrors the `FamilyView` shape returned by `agents_providers.rs`.
189
+ */
190
+ type ModelFamilyCatalogEntry = {
191
+ id: string;
192
+ slug: string;
193
+ name: string;
194
+ modelIds: string[];
195
+ maxTokens?: number | null;
196
+ contextWindow?: string | null;
197
+ supportsTools?: boolean | null;
198
+ supportsVision?: boolean | null;
199
+ costTier?: string | null;
200
+ };
186
201
  /**
187
202
  * Catalog of supported LLM providers. Previously hard-coded in the
188
- * connections modal; now backed by `astrlabe.model_providers` so new
189
- * providers can be added server-side without a frontend release.
203
+ * connections modal; now backed by `astrlabe.model_providers` +
204
+ * `astrlabe.model_families` so new providers can be added server-side
205
+ * without a frontend release.
190
206
  */
191
207
  type ModelProviderCatalogEntry = {
192
208
  id: string;
@@ -198,8 +214,15 @@ type ModelProviderCatalogEntry = {
198
214
  logoUrl?: string | null;
199
215
  docsUrl?: string | null;
200
216
  authType?: string | null;
217
+ /**
218
+ * Full family records joined from `model_families`. Empty array if no
219
+ * families are seeded for this provider (`custom`, where the operator
220
+ * supplies the model id at node-config time).
221
+ */
222
+ families: ModelFamilyCatalogEntry[];
223
+ /** @deprecated — array of family slugs only. New callers read `families`. */
201
224
  supportedModelFamilies?: unknown;
202
- regions?: unknown;
225
+ regions?: string[] | null;
203
226
  enabled: boolean;
204
227
  };
205
228
  declare function listModelProviderCatalog(): Promise<ModelProviderCatalogEntry[]>;
@@ -358,34 +381,15 @@ declare function deleteUpload(objectKey: string): Promise<{
358
381
  }>;
359
382
  type RunEvent = {
360
383
  /**
361
- * Discriminator for the event payload. Wire format is snake_case
362
- * because the Rust engine's `ExecutionEvent.kind` (in
363
- * `lambda-rs/.../engine/events.rs`) is set as `node_started` /
364
- * `run_completed` / `ui_render` / etc. The `serde(rename = "type")`
365
- * keeps the JSON key as `type` but the *value* stays snake_case
366
- * end-to-end through Redis pub/sub and the SSE handler. Matches
367
- * `WorkflowEventType` in `@datatechsolutions/shared-domain`.
368
- *
369
- * `ui_render` is the per-section generative-UI event — the agent's
370
- * tool_use block content lives in `outputs.section`. `run_paused`
371
- * is the human_approval pause, with `outputs.prompt` + `outputs.payload`.
384
+ * Discriminator for the event payload. The set is open-ended on purpose
385
+ * Phase 2/3 of the generative-UI work adds `ui-render` (per-section
386
+ * progressive rendering) and `run-paused` (operator-input pause) without
387
+ * a breaking change.
372
388
  */
373
- type: 'run_started' | 'node_started' | 'node_completed' | 'node_failed' | 'node_error' | 'run_completed' | 'run_failed' | 'run_paused' | 'ui_render' | 'log';
389
+ type: 'run-started' | 'node-started' | 'node-completed' | 'node-failed' | 'run-completed' | 'run-failed' | 'run-paused' | 'ui-render' | 'log';
374
390
  runId: string;
375
- workflowId?: string;
376
391
  nodeId?: string;
377
- nodeType?: string;
378
- status?: string;
379
- /**
380
- * Engine attaches the executor's output here. For `node_completed`
381
- * this is the node's full output; for `ui_render` it carries
382
- * `{ section, toolName, toolUseId }`; for `run_paused` it carries
383
- * `{ prompt, payload, kind, nodeId }` — the human_approval sentinel.
384
- */
385
- outputs?: Record<string, unknown>;
386
- error?: string;
387
- durationMs?: number;
388
- /** RFC 3339. */
392
+ data?: Record<string, unknown>;
389
393
  timestamp: string;
390
394
  };
391
395
  type PublicSampleWorkflow = {
@@ -423,7 +427,34 @@ type ApprovalResponse = {
423
427
  * inputs, and re-executes — see #457.
424
428
  */
425
429
  declare function submitApproval(runId: string, nodeId: string, decision: ApprovalDecision): Promise<ApprovalResponse>;
426
- declare function subscribeToRunEvents(runId: string, onEvent: (event: RunEvent) => void, onError?: (error: Event) => void): () => void;
430
+ /**
431
+ * Connection state for {@link subscribeToRunEvents}. UI consumers can
432
+ * surface this — e.g. show "reconnecting…" badge — by passing an
433
+ * `onState` callback.
434
+ */
435
+ type RunSubscriptionState = 'live' | 'reconnecting' | 'polling' | 'closed';
436
+ /**
437
+ * Subscribe to a run's event stream with auto-reconnect + polling fallback.
438
+ *
439
+ * The default `EventSource` drops silently on idle proxies / cold-restarts
440
+ * (CloudFront + Lambda Function URL combo at customer scale will close
441
+ * an idle connection after ~30–60s). When that happens the run viewer
442
+ * looks frozen with no signal to the user.
443
+ *
444
+ * Lifecycle:
445
+ * 1. Open SSE. On `open`, state = `live`.
446
+ * 2. On `error`, close the source and exponential-backoff (1s → 2s → 4s
447
+ * → 8s → 16s, with jitter). State = `reconnecting`.
448
+ * 3. After {@link SSE_MAX_RECONNECT_ATTEMPTS} failures, fall back to
449
+ * polling `GET /workflow-runs/{runId}` every 5s. State = `polling`.
450
+ * 4. On terminal event (`run-completed` / `run-failed`) or terminal
451
+ * polled status (completed/failed/cancelled), close + state = `closed`.
452
+ * 5. Returned disposer also flips to `closed`; idempotent.
453
+ *
454
+ * Backwards-compatible with the previous 3-arg signature; pass `onState`
455
+ * as a 4th arg if you want to render connection-state UI.
456
+ */
457
+ declare function subscribeToRunEvents(runId: string, onEvent: (event: RunEvent) => void, onError?: (error: Event) => void, onState?: (state: RunSubscriptionState) => void): () => void;
427
458
  declare function getAgentConfigsWithPrompts(): Promise<AgentWithPrompts[]>;
428
459
  declare function getDatasources(): Promise<DataSource[]>;
429
460
  declare function createDatasource(data: DatasourceFormData): Promise<DataSource>;
@@ -434,4 +465,4 @@ declare function getDatasourceSchema(datasourceId: string, table: string): Promi
434
465
  nullable?: boolean;
435
466
  }>>;
436
467
 
437
- export { getAnalyticsSummary as $, type AnalyticsSummary as A, createDatasource as B, createModelProviderConnection as C, type DatasourceFormData as D, createWorkflow as E, createWorkflowFromTemplate as F, deleteAgentConfig as G, deleteAgentPrompt as H, deleteAgentRule as I, deleteAgentTool as J, deleteAgentToolDefinition as K, deleteModelProviderConnection as L, type ModelProviderConnection as M, type NodeMetrics as N, deleteUpload as O, type PresignUploadInput as P, deleteWorkflow as Q, type RunTimelineEntry as R, executeAgentRule as S, executeWorkflow as T, getAgentConfigsWithPrompts as U, getAgentModels as V, type WorkflowRunListParams as W, getAgentPrompts as X, getAgentRules as Y, getAgentToolDefinitions as Z, getAgentTools as _, DIALECT_CATEGORIES as a, getCurrentAccessToken as a0, getDatasourceSchema as a1, getDatasourceTables as a2, getDatasources as a3, getPublicSampleWorkflow as a4, getRunTimeline as a5, getUploadDownloadUrl as a6, getWorkflowById as a7, getWorkflowRunById as a8, getWorkflowRuns as a9, getWorkflows as aa, listModelProviderCatalog as ab, listModelProviderConnections as ac, listWorkflowRuns as ad, listWorkflowTemplates as ae, presignUpload as af, publishWorkflow as ag, replayWorkflowRun as ah, saveWorkflowDraft as ai, setAccessTokenProvider as aj, setAuthenticatedFetch as ak, submitApproval as al, subscribeToRunEvents as am, updateAgentConfig as an, updateAgentPrompt as ao, updateAgentRule as ap, updateAgentTool as aq, updateAgentToolDefinition as ar, updateModelProviderConnection as as, updateWorkflowSettings as at, DatasourceFormModal as b, type DatasourceFormModalProps as c, DatasourceModal as d, type DatasourceModalProps as e, findCategory as f, findDialect as g, type AiGenerateResponse as h, type AiValidateResponse as i, type ApprovalDecision as j, type ApprovalResponse as k, type ModelProviderCatalogEntry as l, type NodeValidationIssue as m, type PresignedUpload as n, type PublicSampleWorkflow as o, type RunEvent as p, type WorkflowTemplateSummary as q, aiGenerateWorkflow as r, aiValidateWorkflow as s, buildAuthenticatedApiUrl as t, cancelWorkflowRun as u, createAgentConfig as v, createAgentPrompt as w, createAgentRule as x, createAgentTool as y, createAgentToolDefinition as z };
468
+ export { getAgentToolDefinitions as $, type AnalyticsSummary as A, createAgentTool as B, createAgentToolDefinition as C, type DatasourceFormData as D, createDatasource as E, createModelProviderConnection as F, createWorkflow as G, createWorkflowFromTemplate as H, deleteAgentConfig as I, deleteAgentPrompt as J, deleteAgentRule as K, deleteAgentTool as L, type ModelProviderConnection as M, type NodeMetrics as N, deleteAgentToolDefinition as O, type PresignUploadInput as P, deleteModelProviderConnection as Q, type RunTimelineEntry as R, deleteUpload as S, deleteWorkflow as T, executeAgentRule as U, executeWorkflow as V, type WorkflowRunListParams as W, getAgentConfigsWithPrompts as X, getAgentModels as Y, getAgentPrompts as Z, getAgentRules as _, DIALECT_CATEGORIES as a, getAgentTools as a0, getAnalyticsSummary as a1, getCurrentAccessToken as a2, getDatasourceSchema as a3, getDatasourceTables as a4, getDatasources as a5, getPublicSampleWorkflow as a6, getRunTimeline as a7, getUploadDownloadUrl as a8, getWorkflowById as a9, getWorkflowRunById as aa, getWorkflowRuns as ab, getWorkflows as ac, listModelProviderCatalog as ad, listModelProviderConnections as ae, listWorkflowRuns as af, listWorkflowTemplates as ag, presignUpload as ah, publishWorkflow as ai, replayWorkflowRun as aj, saveWorkflowDraft as ak, setAccessTokenProvider as al, setAuthenticatedFetch as am, submitApproval as an, subscribeToRunEvents as ao, updateAgentConfig as ap, updateAgentPrompt as aq, updateAgentRule as ar, updateAgentTool as as, updateAgentToolDefinition as at, updateModelProviderConnection as au, updateWorkflowSettings as av, DatasourceFormModal as b, type DatasourceFormModalProps as c, DatasourceModal as d, type DatasourceModalProps as e, findCategory as f, findDialect as g, type AiGenerateResponse as h, type AiValidateResponse as i, type ApprovalDecision as j, type ApprovalResponse as k, type ModelFamilyCatalogEntry as l, type ModelProviderCatalogEntry as m, type NodeValidationIssue as n, type PresignedUpload as o, type PublicSampleWorkflow as p, type RunEvent as q, type RunSubscriptionState as r, type WorkflowTemplateSummary as s, aiGenerateWorkflow as t, aiValidateWorkflow as u, buildAuthenticatedApiUrl as v, cancelWorkflowRun as w, createAgentConfig as x, createAgentPrompt as y, createAgentRule as z };
@@ -183,10 +183,26 @@ interface ModelProviderConnection {
183
183
  updatedAt?: string;
184
184
  }
185
185
  declare function listModelProviderConnections(): Promise<ModelProviderConnection[]>;
186
+ /**
187
+ * One model family record joined onto a provider in the catalog.
188
+ * Mirrors the `FamilyView` shape returned by `agents_providers.rs`.
189
+ */
190
+ type ModelFamilyCatalogEntry = {
191
+ id: string;
192
+ slug: string;
193
+ name: string;
194
+ modelIds: string[];
195
+ maxTokens?: number | null;
196
+ contextWindow?: string | null;
197
+ supportsTools?: boolean | null;
198
+ supportsVision?: boolean | null;
199
+ costTier?: string | null;
200
+ };
186
201
  /**
187
202
  * Catalog of supported LLM providers. Previously hard-coded in the
188
- * connections modal; now backed by `astrlabe.model_providers` so new
189
- * providers can be added server-side without a frontend release.
203
+ * connections modal; now backed by `astrlabe.model_providers` +
204
+ * `astrlabe.model_families` so new providers can be added server-side
205
+ * without a frontend release.
190
206
  */
191
207
  type ModelProviderCatalogEntry = {
192
208
  id: string;
@@ -198,8 +214,15 @@ type ModelProviderCatalogEntry = {
198
214
  logoUrl?: string | null;
199
215
  docsUrl?: string | null;
200
216
  authType?: string | null;
217
+ /**
218
+ * Full family records joined from `model_families`. Empty array if no
219
+ * families are seeded for this provider (`custom`, where the operator
220
+ * supplies the model id at node-config time).
221
+ */
222
+ families: ModelFamilyCatalogEntry[];
223
+ /** @deprecated — array of family slugs only. New callers read `families`. */
201
224
  supportedModelFamilies?: unknown;
202
- regions?: unknown;
225
+ regions?: string[] | null;
203
226
  enabled: boolean;
204
227
  };
205
228
  declare function listModelProviderCatalog(): Promise<ModelProviderCatalogEntry[]>;
@@ -358,34 +381,15 @@ declare function deleteUpload(objectKey: string): Promise<{
358
381
  }>;
359
382
  type RunEvent = {
360
383
  /**
361
- * Discriminator for the event payload. Wire format is snake_case
362
- * because the Rust engine's `ExecutionEvent.kind` (in
363
- * `lambda-rs/.../engine/events.rs`) is set as `node_started` /
364
- * `run_completed` / `ui_render` / etc. The `serde(rename = "type")`
365
- * keeps the JSON key as `type` but the *value* stays snake_case
366
- * end-to-end through Redis pub/sub and the SSE handler. Matches
367
- * `WorkflowEventType` in `@datatechsolutions/shared-domain`.
368
- *
369
- * `ui_render` is the per-section generative-UI event — the agent's
370
- * tool_use block content lives in `outputs.section`. `run_paused`
371
- * is the human_approval pause, with `outputs.prompt` + `outputs.payload`.
384
+ * Discriminator for the event payload. The set is open-ended on purpose
385
+ * Phase 2/3 of the generative-UI work adds `ui-render` (per-section
386
+ * progressive rendering) and `run-paused` (operator-input pause) without
387
+ * a breaking change.
372
388
  */
373
- type: 'run_started' | 'node_started' | 'node_completed' | 'node_failed' | 'node_error' | 'run_completed' | 'run_failed' | 'run_paused' | 'ui_render' | 'log';
389
+ type: 'run-started' | 'node-started' | 'node-completed' | 'node-failed' | 'run-completed' | 'run-failed' | 'run-paused' | 'ui-render' | 'log';
374
390
  runId: string;
375
- workflowId?: string;
376
391
  nodeId?: string;
377
- nodeType?: string;
378
- status?: string;
379
- /**
380
- * Engine attaches the executor's output here. For `node_completed`
381
- * this is the node's full output; for `ui_render` it carries
382
- * `{ section, toolName, toolUseId }`; for `run_paused` it carries
383
- * `{ prompt, payload, kind, nodeId }` — the human_approval sentinel.
384
- */
385
- outputs?: Record<string, unknown>;
386
- error?: string;
387
- durationMs?: number;
388
- /** RFC 3339. */
392
+ data?: Record<string, unknown>;
389
393
  timestamp: string;
390
394
  };
391
395
  type PublicSampleWorkflow = {
@@ -423,7 +427,34 @@ type ApprovalResponse = {
423
427
  * inputs, and re-executes — see #457.
424
428
  */
425
429
  declare function submitApproval(runId: string, nodeId: string, decision: ApprovalDecision): Promise<ApprovalResponse>;
426
- declare function subscribeToRunEvents(runId: string, onEvent: (event: RunEvent) => void, onError?: (error: Event) => void): () => void;
430
+ /**
431
+ * Connection state for {@link subscribeToRunEvents}. UI consumers can
432
+ * surface this — e.g. show "reconnecting…" badge — by passing an
433
+ * `onState` callback.
434
+ */
435
+ type RunSubscriptionState = 'live' | 'reconnecting' | 'polling' | 'closed';
436
+ /**
437
+ * Subscribe to a run's event stream with auto-reconnect + polling fallback.
438
+ *
439
+ * The default `EventSource` drops silently on idle proxies / cold-restarts
440
+ * (CloudFront + Lambda Function URL combo at customer scale will close
441
+ * an idle connection after ~30–60s). When that happens the run viewer
442
+ * looks frozen with no signal to the user.
443
+ *
444
+ * Lifecycle:
445
+ * 1. Open SSE. On `open`, state = `live`.
446
+ * 2. On `error`, close the source and exponential-backoff (1s → 2s → 4s
447
+ * → 8s → 16s, with jitter). State = `reconnecting`.
448
+ * 3. After {@link SSE_MAX_RECONNECT_ATTEMPTS} failures, fall back to
449
+ * polling `GET /workflow-runs/{runId}` every 5s. State = `polling`.
450
+ * 4. On terminal event (`run-completed` / `run-failed`) or terminal
451
+ * polled status (completed/failed/cancelled), close + state = `closed`.
452
+ * 5. Returned disposer also flips to `closed`; idempotent.
453
+ *
454
+ * Backwards-compatible with the previous 3-arg signature; pass `onState`
455
+ * as a 4th arg if you want to render connection-state UI.
456
+ */
457
+ declare function subscribeToRunEvents(runId: string, onEvent: (event: RunEvent) => void, onError?: (error: Event) => void, onState?: (state: RunSubscriptionState) => void): () => void;
427
458
  declare function getAgentConfigsWithPrompts(): Promise<AgentWithPrompts[]>;
428
459
  declare function getDatasources(): Promise<DataSource[]>;
429
460
  declare function createDatasource(data: DatasourceFormData): Promise<DataSource>;
@@ -434,4 +465,4 @@ declare function getDatasourceSchema(datasourceId: string, table: string): Promi
434
465
  nullable?: boolean;
435
466
  }>>;
436
467
 
437
- export { getAnalyticsSummary as $, type AnalyticsSummary as A, createDatasource as B, createModelProviderConnection as C, type DatasourceFormData as D, createWorkflow as E, createWorkflowFromTemplate as F, deleteAgentConfig as G, deleteAgentPrompt as H, deleteAgentRule as I, deleteAgentTool as J, deleteAgentToolDefinition as K, deleteModelProviderConnection as L, type ModelProviderConnection as M, type NodeMetrics as N, deleteUpload as O, type PresignUploadInput as P, deleteWorkflow as Q, type RunTimelineEntry as R, executeAgentRule as S, executeWorkflow as T, getAgentConfigsWithPrompts as U, getAgentModels as V, type WorkflowRunListParams as W, getAgentPrompts as X, getAgentRules as Y, getAgentToolDefinitions as Z, getAgentTools as _, DIALECT_CATEGORIES as a, getCurrentAccessToken as a0, getDatasourceSchema as a1, getDatasourceTables as a2, getDatasources as a3, getPublicSampleWorkflow as a4, getRunTimeline as a5, getUploadDownloadUrl as a6, getWorkflowById as a7, getWorkflowRunById as a8, getWorkflowRuns as a9, getWorkflows as aa, listModelProviderCatalog as ab, listModelProviderConnections as ac, listWorkflowRuns as ad, listWorkflowTemplates as ae, presignUpload as af, publishWorkflow as ag, replayWorkflowRun as ah, saveWorkflowDraft as ai, setAccessTokenProvider as aj, setAuthenticatedFetch as ak, submitApproval as al, subscribeToRunEvents as am, updateAgentConfig as an, updateAgentPrompt as ao, updateAgentRule as ap, updateAgentTool as aq, updateAgentToolDefinition as ar, updateModelProviderConnection as as, updateWorkflowSettings as at, DatasourceFormModal as b, type DatasourceFormModalProps as c, DatasourceModal as d, type DatasourceModalProps as e, findCategory as f, findDialect as g, type AiGenerateResponse as h, type AiValidateResponse as i, type ApprovalDecision as j, type ApprovalResponse as k, type ModelProviderCatalogEntry as l, type NodeValidationIssue as m, type PresignedUpload as n, type PublicSampleWorkflow as o, type RunEvent as p, type WorkflowTemplateSummary as q, aiGenerateWorkflow as r, aiValidateWorkflow as s, buildAuthenticatedApiUrl as t, cancelWorkflowRun as u, createAgentConfig as v, createAgentPrompt as w, createAgentRule as x, createAgentTool as y, createAgentToolDefinition as z };
468
+ export { getAgentToolDefinitions as $, type AnalyticsSummary as A, createAgentTool as B, createAgentToolDefinition as C, type DatasourceFormData as D, createDatasource as E, createModelProviderConnection as F, createWorkflow as G, createWorkflowFromTemplate as H, deleteAgentConfig as I, deleteAgentPrompt as J, deleteAgentRule as K, deleteAgentTool as L, type ModelProviderConnection as M, type NodeMetrics as N, deleteAgentToolDefinition as O, type PresignUploadInput as P, deleteModelProviderConnection as Q, type RunTimelineEntry as R, deleteUpload as S, deleteWorkflow as T, executeAgentRule as U, executeWorkflow as V, type WorkflowRunListParams as W, getAgentConfigsWithPrompts as X, getAgentModels as Y, getAgentPrompts as Z, getAgentRules as _, DIALECT_CATEGORIES as a, getAgentTools as a0, getAnalyticsSummary as a1, getCurrentAccessToken as a2, getDatasourceSchema as a3, getDatasourceTables as a4, getDatasources as a5, getPublicSampleWorkflow as a6, getRunTimeline as a7, getUploadDownloadUrl as a8, getWorkflowById as a9, getWorkflowRunById as aa, getWorkflowRuns as ab, getWorkflows as ac, listModelProviderCatalog as ad, listModelProviderConnections as ae, listWorkflowRuns as af, listWorkflowTemplates as ag, presignUpload as ah, publishWorkflow as ai, replayWorkflowRun as aj, saveWorkflowDraft as ak, setAccessTokenProvider as al, setAuthenticatedFetch as am, submitApproval as an, subscribeToRunEvents as ao, updateAgentConfig as ap, updateAgentPrompt as aq, updateAgentRule as ar, updateAgentTool as as, updateAgentToolDefinition as at, updateModelProviderConnection as au, updateWorkflowSettings as av, DatasourceFormModal as b, type DatasourceFormModalProps as c, DatasourceModal as d, type DatasourceModalProps as e, findCategory as f, findDialect as g, type AiGenerateResponse as h, type AiValidateResponse as i, type ApprovalDecision as j, type ApprovalResponse as k, type ModelFamilyCatalogEntry as l, type ModelProviderCatalogEntry as m, type NodeValidationIssue as n, type PresignedUpload as o, type PublicSampleWorkflow as p, type RunEvent as q, type RunSubscriptionState as r, type WorkflowTemplateSummary as s, aiGenerateWorkflow as t, aiValidateWorkflow as u, buildAuthenticatedApiUrl as v, cancelWorkflowRun as w, createAgentConfig as x, createAgentPrompt as y, createAgentRule as z };