@elqnt/workflow 2.0.0 → 2.0.5

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.
@@ -0,0 +1,307 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ // models/workflow.ts
4
+ var NodeTypeTrigger = "trigger";
5
+ var NodeTypeHumanAction = "humanAction";
6
+ var NodeTypeAgent = "agent";
7
+ var NodeTypeAction = "action";
8
+ var NodeTypeLogic = "logic";
9
+ var NodeTypeLoop = "loop";
10
+ var NodeTypeParallel = "parallel";
11
+ var NodeTypeDelay = "delay";
12
+ var NodeTypeData = "data";
13
+ var NodeTypeIntegration = "integration";
14
+ var NodeTypeTimer = "timer";
15
+ var NodeTypeSubflow = "subflow";
16
+ var NodeTypeCustom = "custom";
17
+ var NodeTypeAccounting = "accounting";
18
+ var NodeTypeDocumentExtraction = "documentExtraction";
19
+ var NodeSubTypeTriggerStart = "triggerStart";
20
+ var NodeSubTypeTriggerEntityRecordCreated = "triggerEntityRecordCreated";
21
+ var NodeSubTypeTriggerEntityRecordUpdated = "triggerEntityRecordUpdated";
22
+ var NodeSubTypeTriggerEntityRecordDeleted = "triggerEntityRecordDeleted";
23
+ var NodeSubTypeTriggerSLAWarning = "triggerSLAWarning";
24
+ var NodeSubTypeTriggerSLABreach = "triggerSLABreach";
25
+ var NodeSubTypeTriggerEscalation = "triggerEscalation";
26
+ var NodeSubTypeTriggerWebhookReceived = "triggerWebhookReceived";
27
+ var NodeSubTypeHumanActionReview = "humanActionReview";
28
+ var NodeSubTypeHumanActionApproval = "humanActionApproval";
29
+ var NodeSubTypeHumanActionDataEntry = "humanActionDataEntry";
30
+ var NodeSubTypeHumanActionAssignment = "humanActionAssignment";
31
+ var NodeSubTypeAgentChat = "agentChat";
32
+ var NodeSubTypeAgentIntentDetector = "agentIntentDetector";
33
+ var NodeSubTypeAgentKnowledgeGraph = "agentKnowledgeGraph";
34
+ var NodeSubTypeAgentClientApiCall = "clientApiCall";
35
+ var NodeSubTypeAgentTransferToHuman = "agentTransferToHuman";
36
+ var NodeSubTypeAgentOpenTicket = "agentOpenTicket";
37
+ var NodeSubTypeAgentApiIntegration = "agentApiIntegration";
38
+ var NodeSubTypeAgentCustomResponse = "agentCustomResponse";
39
+ var NodeSubTypeAgentStructuredOutput = "agentStructuredOutput";
40
+ var NodeSubTypeActionApiCall = "actionApiCall";
41
+ var NodeSubTypeActionDocumentExtraction = "actionDocumentExtraction";
42
+ var NodeSubTypeActionSendEmail = "actionSendEmail";
43
+ var NodeSubTypeActionSendSMS = "actionSendSMS";
44
+ var NodeSubTypeActionGenerateDocument = "actionGenerateDocument";
45
+ var NodeSubTypeActionProcessPayment = "actionProcessPayment";
46
+ var NodeSubTypeActionCreateEntityRecord = "actionCreateEntityRecord";
47
+ var NodeSubTypeActionUpdateEntityRecord = "actionUpdateEntityRecord";
48
+ var NodeSubTypeActionDeleteEntityRecord = "actionDeleteEntityRecord";
49
+ var NodeSubTypeActionMergeEntityRecords = "actionMergeEntityRecords";
50
+ var NodeSubTypeActionAssignSLAPolicy = "actionAssignSLAPolicy";
51
+ var NodeSubTypeActionChangeSLAStatus = "actionChangeSLAAssignmentStatus";
52
+ var NodeSubTypeActionEscalateSLA = "actionEscalateSLAAssignment";
53
+ var NodeSubTypeActionCSATSurvey = "actionCSATSurvey";
54
+ var NodeSubTypeActionSetVariables = "actionSetVariables";
55
+ var NodeSubTypeActionQueryEntityRecords = "actionQueryEntityRecords";
56
+ var NodeSubTypeActionNatsRequest = "actionNatsRequest";
57
+ var NodeSubTypeLogicIf = "logicIf";
58
+ var NodeSubTypeLogicSwitch = "logicSwitch";
59
+ var NodeSubTypeLogicFor = "logicFor";
60
+ var NodeSubTypeLogicParallel = "logicParallel";
61
+ var NodeSubTypeLoopData = "loopData";
62
+ var NodeSubTypeDelay = "delay";
63
+ var NodeSubTypeDataFilter = "dataFilter";
64
+ var NodeSubTypeDataMap = "dataMap";
65
+ var NodeSubTypeDataCalculate = "dataCalculate";
66
+ var NodeSubTypeDataValidate = "dataValidate";
67
+ var NodeSubTypeTimerDelay = "timerDelay";
68
+ var NodeSubTypeTimerSchedule = "timerSchedule";
69
+ var NodeSubTypeTimerBusinessHours = "timerBusinessHours";
70
+ var ExpressionTypeFilter = "filter";
71
+ var ExpressionTypeJavaScript = "javascript";
72
+ var ExpressionTypeTemplate = "template";
73
+ var ExpressionTypeDSL = "dsl";
74
+ var ExpressionTypeRules = "rules";
75
+ var EdgeTypeNormal = "normal";
76
+ var EdgeTypeLoopBack = "loopBack";
77
+ var EdgeTypeError = "error";
78
+ var EdgeTypeDefault = "default";
79
+ var EdgeTypeParallel = "parallel";
80
+ var EdgeTypeConditional = "conditional";
81
+ var EdgeTypeMerge = "merge";
82
+ var EdgeTypeCompensation = "compensation";
83
+ var EdgeTypeTimeout = "timeout";
84
+ var WorkflowTypeEntity = "entity";
85
+ var WorkflowTypeDocument = "document";
86
+ var WorkflowTypeChat = "chat";
87
+ var WorkflowTypeAgent = "agent";
88
+ var WorkflowTypeProductivity = "productivity";
89
+ var RuleLevelError = "error";
90
+ var RuleLevelWarning = "warning";
91
+ var RuleLevelInfo = "info";
92
+ var PersistenceTypeEphemeral = "ephemeral";
93
+ var PersistenceTypePermanent = "permanent";
94
+ var TimeoutActionFail = "fail";
95
+ var TimeoutActionSkip = "skip";
96
+ var TimeoutActionRetry = "retry";
97
+ var TimeoutActionAlt = "alt";
98
+ var InstanceStatusNew = "NEW";
99
+ var InstanceStatusRunning = "RUNNING";
100
+ var InstanceStatusWaiting = "WAITING";
101
+ var InstanceStatusPaused = "PAUSED";
102
+ var InstanceStatusCompleted = "COMPLETED";
103
+ var InstanceStatusFailed = "FAILED";
104
+ var NodeStatusPending = "PENDING";
105
+ var NodeStatusRunning = "RUNNING";
106
+ var NodeStatusCompleted = "COMPLETED";
107
+ var NodeStatusFailed = "FAILED";
108
+ var NodeStatusWaiting = "WAITING";
109
+ var NodeStatusSkipped = "SKIPPED";
110
+ var EdgeStatusPending = "PENDING";
111
+ var EdgeStatusCompleted = "COMPLETED";
112
+ var EdgeStatusSkipped = "SKIPPED";
113
+
114
+ // models/subjects.ts
115
+ var WorkflowDefinitionCreate = "workflow.definition.create";
116
+ var WorkflowDefinitionCreated = "workflow.definition.created";
117
+ var WorkflowDefinitionUpdate = "workflow.definition.update";
118
+ var WorkflowDefinitionUpdated = "workflow.definition.updated";
119
+ var WorkflowDefinitionGet = "workflow.definition.get";
120
+ var WorkflowDefinitionGetServer = "workflow.definition.get.server";
121
+ var WorkflowDefinitionGetByTitle = "workflow.definition.get.by.title";
122
+ var WorkflowDefinitionList = "workflow.definition.list";
123
+ var WorkflowDefinitionDelete = "workflow.definition.delete";
124
+ var WorkflowDefinitionDeleted = "workflow.definition.deleted";
125
+ var WorkflowInstanceCreate = "workflow.instance.create";
126
+ var WorkflowInstanceExecuteNode = "workflow.instance.execute.node";
127
+ var WorkflowInstanceResumeNode = "workflow.instance.resume.node";
128
+ var WorkflowInstanceExecuteNodeServer = "workflow.instance.execute.node.server";
129
+ var WorkflowInstanceResumeNodeServer = "workflow.instance.resume.node.server";
130
+ var WorkflowInstanceExecuteNodeLean = "workflow.instance.execute.node.lean";
131
+ var WorkflowInstanceExecuteNodeLeanServer = "workflow.instance.execute.node.lean.server";
132
+ var WorkflowInstanceGet = "workflow.instance.get";
133
+ var WorkflowInstanceGetByStateVariable = "workflow.instance.get.by.state.variable";
134
+ var WorkflowInstanceList = "workflow.instance.list";
135
+ var WorkflowInstanceUpdate = "workflow.instance.update";
136
+ var WorkflowInstanceUpdated = "workflow.instance.updated";
137
+ var WorkflowInstanceUpdateNodeMetadata = "workflow.instance.update.node.metadata";
138
+ var WorkflowTemplateList = "workflow.template.list";
139
+ var WorkflowTemplateGet = "workflow.template.get";
140
+ var WorkflowTemplateInstantiate = "workflow.template.instantiate";
141
+ var WorkflowScheduleCreate = "workflow.schedule.create";
142
+ var WorkflowScheduleUpdate = "workflow.schedule.update";
143
+ var WorkflowScheduleDelete = "workflow.schedule.delete";
144
+ var WorkflowScheduleList = "workflow.schedule.list";
145
+ var WorkflowSchedulePause = "workflow.schedule.pause";
146
+ var WorkflowScheduleResume = "workflow.schedule.resume";
147
+ var WorkflowTriggerRegister = "workflow.trigger.register";
148
+ var WorkflowTriggerPause = "workflow.trigger.pause";
149
+ var WorkflowTriggerResume = "workflow.trigger.resume";
150
+ var WorkflowTriggerStatus = "workflow.trigger.status";
151
+ var WorkflowTriggerFired = "workflow.trigger.fired";
152
+ var WorkflowExecutionStarted = "workflow.execution.started";
153
+ var WorkflowExecutionCompleted = "workflow.execution.completed";
154
+ var WorkflowExecutionFailed = "workflow.execution.failed";
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+ exports.NodeTypeTrigger = NodeTypeTrigger; exports.NodeTypeHumanAction = NodeTypeHumanAction; exports.NodeTypeAgent = NodeTypeAgent; exports.NodeTypeAction = NodeTypeAction; exports.NodeTypeLogic = NodeTypeLogic; exports.NodeTypeLoop = NodeTypeLoop; exports.NodeTypeParallel = NodeTypeParallel; exports.NodeTypeDelay = NodeTypeDelay; exports.NodeTypeData = NodeTypeData; exports.NodeTypeIntegration = NodeTypeIntegration; exports.NodeTypeTimer = NodeTypeTimer; exports.NodeTypeSubflow = NodeTypeSubflow; exports.NodeTypeCustom = NodeTypeCustom; exports.NodeTypeAccounting = NodeTypeAccounting; exports.NodeTypeDocumentExtraction = NodeTypeDocumentExtraction; exports.NodeSubTypeTriggerStart = NodeSubTypeTriggerStart; exports.NodeSubTypeTriggerEntityRecordCreated = NodeSubTypeTriggerEntityRecordCreated; exports.NodeSubTypeTriggerEntityRecordUpdated = NodeSubTypeTriggerEntityRecordUpdated; exports.NodeSubTypeTriggerEntityRecordDeleted = NodeSubTypeTriggerEntityRecordDeleted; exports.NodeSubTypeTriggerSLAWarning = NodeSubTypeTriggerSLAWarning; exports.NodeSubTypeTriggerSLABreach = NodeSubTypeTriggerSLABreach; exports.NodeSubTypeTriggerEscalation = NodeSubTypeTriggerEscalation; exports.NodeSubTypeTriggerWebhookReceived = NodeSubTypeTriggerWebhookReceived; exports.NodeSubTypeHumanActionReview = NodeSubTypeHumanActionReview; exports.NodeSubTypeHumanActionApproval = NodeSubTypeHumanActionApproval; exports.NodeSubTypeHumanActionDataEntry = NodeSubTypeHumanActionDataEntry; exports.NodeSubTypeHumanActionAssignment = NodeSubTypeHumanActionAssignment; exports.NodeSubTypeAgentChat = NodeSubTypeAgentChat; exports.NodeSubTypeAgentIntentDetector = NodeSubTypeAgentIntentDetector; exports.NodeSubTypeAgentKnowledgeGraph = NodeSubTypeAgentKnowledgeGraph; exports.NodeSubTypeAgentClientApiCall = NodeSubTypeAgentClientApiCall; exports.NodeSubTypeAgentTransferToHuman = NodeSubTypeAgentTransferToHuman; exports.NodeSubTypeAgentOpenTicket = NodeSubTypeAgentOpenTicket; exports.NodeSubTypeAgentApiIntegration = NodeSubTypeAgentApiIntegration; exports.NodeSubTypeAgentCustomResponse = NodeSubTypeAgentCustomResponse; exports.NodeSubTypeAgentStructuredOutput = NodeSubTypeAgentStructuredOutput; exports.NodeSubTypeActionApiCall = NodeSubTypeActionApiCall; exports.NodeSubTypeActionDocumentExtraction = NodeSubTypeActionDocumentExtraction; exports.NodeSubTypeActionSendEmail = NodeSubTypeActionSendEmail; exports.NodeSubTypeActionSendSMS = NodeSubTypeActionSendSMS; exports.NodeSubTypeActionGenerateDocument = NodeSubTypeActionGenerateDocument; exports.NodeSubTypeActionProcessPayment = NodeSubTypeActionProcessPayment; exports.NodeSubTypeActionCreateEntityRecord = NodeSubTypeActionCreateEntityRecord; exports.NodeSubTypeActionUpdateEntityRecord = NodeSubTypeActionUpdateEntityRecord; exports.NodeSubTypeActionDeleteEntityRecord = NodeSubTypeActionDeleteEntityRecord; exports.NodeSubTypeActionMergeEntityRecords = NodeSubTypeActionMergeEntityRecords; exports.NodeSubTypeActionAssignSLAPolicy = NodeSubTypeActionAssignSLAPolicy; exports.NodeSubTypeActionChangeSLAStatus = NodeSubTypeActionChangeSLAStatus; exports.NodeSubTypeActionEscalateSLA = NodeSubTypeActionEscalateSLA; exports.NodeSubTypeActionCSATSurvey = NodeSubTypeActionCSATSurvey; exports.NodeSubTypeActionSetVariables = NodeSubTypeActionSetVariables; exports.NodeSubTypeActionQueryEntityRecords = NodeSubTypeActionQueryEntityRecords; exports.NodeSubTypeActionNatsRequest = NodeSubTypeActionNatsRequest; exports.NodeSubTypeLogicIf = NodeSubTypeLogicIf; exports.NodeSubTypeLogicSwitch = NodeSubTypeLogicSwitch; exports.NodeSubTypeLogicFor = NodeSubTypeLogicFor; exports.NodeSubTypeLogicParallel = NodeSubTypeLogicParallel; exports.NodeSubTypeLoopData = NodeSubTypeLoopData; exports.NodeSubTypeDelay = NodeSubTypeDelay; exports.NodeSubTypeDataFilter = NodeSubTypeDataFilter; exports.NodeSubTypeDataMap = NodeSubTypeDataMap; exports.NodeSubTypeDataCalculate = NodeSubTypeDataCalculate; exports.NodeSubTypeDataValidate = NodeSubTypeDataValidate; exports.NodeSubTypeTimerDelay = NodeSubTypeTimerDelay; exports.NodeSubTypeTimerSchedule = NodeSubTypeTimerSchedule; exports.NodeSubTypeTimerBusinessHours = NodeSubTypeTimerBusinessHours; exports.ExpressionTypeFilter = ExpressionTypeFilter; exports.ExpressionTypeJavaScript = ExpressionTypeJavaScript; exports.ExpressionTypeTemplate = ExpressionTypeTemplate; exports.ExpressionTypeDSL = ExpressionTypeDSL; exports.ExpressionTypeRules = ExpressionTypeRules; exports.EdgeTypeNormal = EdgeTypeNormal; exports.EdgeTypeLoopBack = EdgeTypeLoopBack; exports.EdgeTypeError = EdgeTypeError; exports.EdgeTypeDefault = EdgeTypeDefault; exports.EdgeTypeParallel = EdgeTypeParallel; exports.EdgeTypeConditional = EdgeTypeConditional; exports.EdgeTypeMerge = EdgeTypeMerge; exports.EdgeTypeCompensation = EdgeTypeCompensation; exports.EdgeTypeTimeout = EdgeTypeTimeout; exports.WorkflowTypeEntity = WorkflowTypeEntity; exports.WorkflowTypeDocument = WorkflowTypeDocument; exports.WorkflowTypeChat = WorkflowTypeChat; exports.WorkflowTypeAgent = WorkflowTypeAgent; exports.WorkflowTypeProductivity = WorkflowTypeProductivity; exports.RuleLevelError = RuleLevelError; exports.RuleLevelWarning = RuleLevelWarning; exports.RuleLevelInfo = RuleLevelInfo; exports.PersistenceTypeEphemeral = PersistenceTypeEphemeral; exports.PersistenceTypePermanent = PersistenceTypePermanent; exports.TimeoutActionFail = TimeoutActionFail; exports.TimeoutActionSkip = TimeoutActionSkip; exports.TimeoutActionRetry = TimeoutActionRetry; exports.TimeoutActionAlt = TimeoutActionAlt; exports.InstanceStatusNew = InstanceStatusNew; exports.InstanceStatusRunning = InstanceStatusRunning; exports.InstanceStatusWaiting = InstanceStatusWaiting; exports.InstanceStatusPaused = InstanceStatusPaused; exports.InstanceStatusCompleted = InstanceStatusCompleted; exports.InstanceStatusFailed = InstanceStatusFailed; exports.NodeStatusPending = NodeStatusPending; exports.NodeStatusRunning = NodeStatusRunning; exports.NodeStatusCompleted = NodeStatusCompleted; exports.NodeStatusFailed = NodeStatusFailed; exports.NodeStatusWaiting = NodeStatusWaiting; exports.NodeStatusSkipped = NodeStatusSkipped; exports.EdgeStatusPending = EdgeStatusPending; exports.EdgeStatusCompleted = EdgeStatusCompleted; exports.EdgeStatusSkipped = EdgeStatusSkipped; exports.WorkflowDefinitionCreate = WorkflowDefinitionCreate; exports.WorkflowDefinitionCreated = WorkflowDefinitionCreated; exports.WorkflowDefinitionUpdate = WorkflowDefinitionUpdate; exports.WorkflowDefinitionUpdated = WorkflowDefinitionUpdated; exports.WorkflowDefinitionGet = WorkflowDefinitionGet; exports.WorkflowDefinitionGetServer = WorkflowDefinitionGetServer; exports.WorkflowDefinitionGetByTitle = WorkflowDefinitionGetByTitle; exports.WorkflowDefinitionList = WorkflowDefinitionList; exports.WorkflowDefinitionDelete = WorkflowDefinitionDelete; exports.WorkflowDefinitionDeleted = WorkflowDefinitionDeleted; exports.WorkflowInstanceCreate = WorkflowInstanceCreate; exports.WorkflowInstanceExecuteNode = WorkflowInstanceExecuteNode; exports.WorkflowInstanceResumeNode = WorkflowInstanceResumeNode; exports.WorkflowInstanceExecuteNodeServer = WorkflowInstanceExecuteNodeServer; exports.WorkflowInstanceResumeNodeServer = WorkflowInstanceResumeNodeServer; exports.WorkflowInstanceExecuteNodeLean = WorkflowInstanceExecuteNodeLean; exports.WorkflowInstanceExecuteNodeLeanServer = WorkflowInstanceExecuteNodeLeanServer; exports.WorkflowInstanceGet = WorkflowInstanceGet; exports.WorkflowInstanceGetByStateVariable = WorkflowInstanceGetByStateVariable; exports.WorkflowInstanceList = WorkflowInstanceList; exports.WorkflowInstanceUpdate = WorkflowInstanceUpdate; exports.WorkflowInstanceUpdated = WorkflowInstanceUpdated; exports.WorkflowInstanceUpdateNodeMetadata = WorkflowInstanceUpdateNodeMetadata; exports.WorkflowTemplateList = WorkflowTemplateList; exports.WorkflowTemplateGet = WorkflowTemplateGet; exports.WorkflowTemplateInstantiate = WorkflowTemplateInstantiate; exports.WorkflowScheduleCreate = WorkflowScheduleCreate; exports.WorkflowScheduleUpdate = WorkflowScheduleUpdate; exports.WorkflowScheduleDelete = WorkflowScheduleDelete; exports.WorkflowScheduleList = WorkflowScheduleList; exports.WorkflowSchedulePause = WorkflowSchedulePause; exports.WorkflowScheduleResume = WorkflowScheduleResume; exports.WorkflowTriggerRegister = WorkflowTriggerRegister; exports.WorkflowTriggerPause = WorkflowTriggerPause; exports.WorkflowTriggerResume = WorkflowTriggerResume; exports.WorkflowTriggerStatus = WorkflowTriggerStatus; exports.WorkflowTriggerFired = WorkflowTriggerFired; exports.WorkflowExecutionStarted = WorkflowExecutionStarted; exports.WorkflowExecutionCompleted = WorkflowExecutionCompleted; exports.WorkflowExecutionFailed = WorkflowExecutionFailed;
307
+ //# sourceMappingURL=chunk-H24IF5AA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/workflow/dist/chunk-H24IF5AA.js","../models/workflow.ts","../models/subjects.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACUO,IAAM,gBAAA,EAA4B,SAAA;AAClC,IAAM,oBAAA,EAAgC,aAAA;AACtC,IAAM,cAAA,EAA0B,OAAA;AAChC,IAAM,eAAA,EAA2B,QAAA;AACjC,IAAM,cAAA,EAA0B,OAAA;AAChC,IAAM,aAAA,EAAyB,MAAA;AAC/B,IAAM,iBAAA,EAA6B,UAAA;AACnC,IAAM,cAAA,EAA0B,OAAA;AAChC,IAAM,aAAA,EAAyB,MAAA;AAC/B,IAAM,oBAAA,EAAgC,aAAA;AACtC,IAAM,cAAA,EAA0B,OAAA;AAChC,IAAM,gBAAA,EAA4B,SAAA;AAClC,IAAM,eAAA,EAA2B,QAAA;AACjC,IAAM,mBAAA,E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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gkRAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/workflow/dist/chunk-H24IF5AA.js","sourcesContent":[null,"// Code generated by tygo. DO NOT EDIT.\nimport { EntityFilterOperatorTS } from \"@elqnt/entity\";\nimport { JSONSchema, ResponseMetadata } from \"@elqnt/types\";\nimport { NodeSubTypeTS, WorkflowTypeTS, WorkflowNodeTypeTS, WorkflowNodeSubTypeTS, WorkflowEdgeTypeTS } from \"../schema/schemas\";\n\n//////////\n// source: constants.go\n\n/**\n * NodeType represents the primary type of a workflow node\n */\nexport type NodeType = string;\nexport const NodeTypeTrigger: NodeType = \"trigger\";\nexport const NodeTypeHumanAction: NodeType = \"humanAction\";\nexport const NodeTypeAgent: NodeType = \"agent\";\nexport const NodeTypeAction: NodeType = \"action\";\nexport const NodeTypeLogic: NodeType = \"logic\";\nexport const NodeTypeLoop: NodeType = \"loop\";\nexport const NodeTypeParallel: NodeType = \"parallel\";\nexport const NodeTypeDelay: NodeType = \"delay\";\nexport const NodeTypeData: NodeType = \"data\";\nexport const NodeTypeIntegration: NodeType = \"integration\";\nexport const NodeTypeTimer: NodeType = \"timer\";\nexport const NodeTypeSubflow: NodeType = \"subflow\";\nexport const NodeTypeCustom: NodeType = \"custom\";\nexport const NodeTypeAccounting: NodeType = \"accounting\";\nexport const NodeTypeDocumentExtraction: NodeType = \"documentExtraction\";\n/**\n * NodeSubType represents the subtype of a workflow node\n * All node subtypes are unified under this single type\n */\nexport type NodeSubType = string;\n/**\n * Trigger subtypes\n */\nexport const NodeSubTypeTriggerStart: NodeSubType = \"triggerStart\";\nexport const NodeSubTypeTriggerEntityRecordCreated: NodeSubType = \"triggerEntityRecordCreated\";\nexport const NodeSubTypeTriggerEntityRecordUpdated: NodeSubType = \"triggerEntityRecordUpdated\";\nexport const NodeSubTypeTriggerEntityRecordDeleted: NodeSubType = \"triggerEntityRecordDeleted\";\nexport const NodeSubTypeTriggerSLAWarning: NodeSubType = \"triggerSLAWarning\";\nexport const NodeSubTypeTriggerSLABreach: NodeSubType = \"triggerSLABreach\";\nexport const NodeSubTypeTriggerEscalation: NodeSubType = \"triggerEscalation\";\nexport const NodeSubTypeTriggerWebhookReceived: NodeSubType = \"triggerWebhookReceived\";\n/**\n * Human action subtypes\n */\nexport const NodeSubTypeHumanActionReview: NodeSubType = \"humanActionReview\"; // review means will be able to edit the fields and move to next node (no approval)\nexport const NodeSubTypeHumanActionApproval: NodeSubType = \"humanActionApproval\"; // approval means will be able to edit the fields and move to next node (with approval)\nexport const NodeSubTypeHumanActionDataEntry: NodeSubType = \"humanActionDataEntry\"; // data entry means will be able to fill the fields and move to next node (no approval)\nexport const NodeSubTypeHumanActionAssignment: NodeSubType = \"humanActionAssignment\"; // assignment means will be able to only assign the task to a user (no approval)\n/**\n * Agent subtypes\n */\nexport const NodeSubTypeAgentChat: NodeSubType = \"agentChat\";\nexport const NodeSubTypeAgentIntentDetector: NodeSubType = \"agentIntentDetector\";\nexport const NodeSubTypeAgentKnowledgeGraph: NodeSubType = \"agentKnowledgeGraph\";\nexport const NodeSubTypeAgentClientApiCall: NodeSubType = \"clientApiCall\";\nexport const NodeSubTypeAgentTransferToHuman: NodeSubType = \"agentTransferToHuman\";\nexport const NodeSubTypeAgentOpenTicket: NodeSubType = \"agentOpenTicket\";\nexport const NodeSubTypeAgentApiIntegration: NodeSubType = \"agentApiIntegration\";\nexport const NodeSubTypeAgentCustomResponse: NodeSubType = \"agentCustomResponse\";\nexport const NodeSubTypeAgentStructuredOutput: NodeSubType = \"agentStructuredOutput\"; // Generic structured output using OpenAI with dynamic input/output schemas\n/**\n * Action subtypes\n */\nexport const NodeSubTypeActionApiCall: NodeSubType = \"actionApiCall\";\nexport const NodeSubTypeActionDocumentExtraction: NodeSubType = \"actionDocumentExtraction\";\nexport const NodeSubTypeActionSendEmail: NodeSubType = \"actionSendEmail\";\nexport const NodeSubTypeActionSendSMS: NodeSubType = \"actionSendSMS\";\nexport const NodeSubTypeActionGenerateDocument: NodeSubType = \"actionGenerateDocument\";\nexport const NodeSubTypeActionProcessPayment: NodeSubType = \"actionProcessPayment\";\nexport const NodeSubTypeActionCreateEntityRecord: NodeSubType = \"actionCreateEntityRecord\";\nexport const NodeSubTypeActionUpdateEntityRecord: NodeSubType = \"actionUpdateEntityRecord\";\nexport const NodeSubTypeActionDeleteEntityRecord: NodeSubType = \"actionDeleteEntityRecord\";\nexport const NodeSubTypeActionMergeEntityRecords: NodeSubType = \"actionMergeEntityRecords\";\nexport const NodeSubTypeActionAssignSLAPolicy: NodeSubType = \"actionAssignSLAPolicy\";\nexport const NodeSubTypeActionChangeSLAStatus: NodeSubType = \"actionChangeSLAAssignmentStatus\";\nexport const NodeSubTypeActionEscalateSLA: NodeSubType = \"actionEscalateSLAAssignment\";\nexport const NodeSubTypeActionCSATSurvey: NodeSubType = \"actionCSATSurvey\";\nexport const NodeSubTypeActionSetVariables: NodeSubType = \"actionSetVariables\"; // Passthrough node that sets variables from config values\nexport const NodeSubTypeActionQueryEntityRecords: NodeSubType = \"actionQueryEntityRecords\"; // Query entity records with filters\nexport const NodeSubTypeActionNatsRequest: NodeSubType = \"actionNatsRequest\"; // Execute a NATS request-reply call\n/**\n * Logic subtypes\n */\nexport const NodeSubTypeLogicIf: NodeSubType = \"logicIf\";\nexport const NodeSubTypeLogicSwitch: NodeSubType = \"logicSwitch\";\nexport const NodeSubTypeLogicFor: NodeSubType = \"logicFor\";\nexport const NodeSubTypeLogicParallel: NodeSubType = \"logicParallel\";\n/**\n * Loop subtypes\n */\nexport const NodeSubTypeLoopData: NodeSubType = \"loopData\";\n/**\n * Delay subtypes\n */\nexport const NodeSubTypeDelay: NodeSubType = \"delay\";\n/**\n * Data subtypes\n */\nexport const NodeSubTypeDataFilter: NodeSubType = \"dataFilter\";\nexport const NodeSubTypeDataMap: NodeSubType = \"dataMap\";\nexport const NodeSubTypeDataCalculate: NodeSubType = \"dataCalculate\";\nexport const NodeSubTypeDataValidate: NodeSubType = \"dataValidate\";\n/**\n * Timer subtypes\n */\nexport const NodeSubTypeTimerDelay: NodeSubType = \"timerDelay\";\nexport const NodeSubTypeTimerSchedule: NodeSubType = \"timerSchedule\";\nexport const NodeSubTypeTimerBusinessHours: NodeSubType = \"timerBusinessHours\";\n/**\n * ExpressionType defines the type of expression evaluation to be used\n */\nexport type ExpressionType = string;\n/**\n * Simple filter-based expressions using predefined operators\n */\nexport const ExpressionTypeFilter: ExpressionType = \"filter\";\n/**\n * JavaScript-like expressions with full language features\n */\nexport const ExpressionTypeJavaScript: ExpressionType = \"javascript\";\n/**\n * Template expressions with variable interpolation\n */\nexport const ExpressionTypeTemplate: ExpressionType = \"template\";\n/**\n * Custom domain-specific language expressions\n */\nexport const ExpressionTypeDSL: ExpressionType = \"dsl\";\n/**\n * Complex rule-based expressions (e.g., business rules)\n */\nexport const ExpressionTypeRules: ExpressionType = \"rules\";\n/**\n * EdgeType defines the type and behavior of workflow edges\n */\nexport type EdgeType = string;\n/**\n * Standard flow between nodes\n */\nexport const EdgeTypeNormal: EdgeType = \"normal\";\n/**\n * Loop back to previous node\n */\nexport const EdgeTypeLoopBack: EdgeType = \"loopBack\";\n/**\n * Error handling path\n */\nexport const EdgeTypeError: EdgeType = \"error\";\n/**\n * Fallback/default path when no other conditions match\n */\nexport const EdgeTypeDefault: EdgeType = \"default\";\n/**\n * Path for parallel execution branch\n */\nexport const EdgeTypeParallel: EdgeType = \"parallel\";\n/**\n * Path for conditional branching\n */\nexport const EdgeTypeConditional: EdgeType = \"conditional\";\n/**\n * Path for merging parallel branches\n */\nexport const EdgeTypeMerge: EdgeType = \"merge\";\n/**\n * Compensating/rollback path\n */\nexport const EdgeTypeCompensation: EdgeType = \"compensation\";\n/**\n * Path for timeout/deadline handling\n */\nexport const EdgeTypeTimeout: EdgeType = \"timeout\";\nexport type WorkflowType = string;\nexport const WorkflowTypeEntity: WorkflowType = \"entity\";\nexport const WorkflowTypeDocument: WorkflowType = \"document\";\nexport const WorkflowTypeChat: WorkflowType = \"chat\";\nexport const WorkflowTypeAgent: WorkflowType = \"agent\";\nexport const WorkflowTypeProductivity: WorkflowType = \"productivity\";\n\n//////////\n// source: node-definitions.go\n\n/**\n * NodeDefinition is the design-time template for creating WorkflowNode instances.\n * This is the single source of truth for all node types in the workflow system.\n * Generated to TypeScript via schema-generator for use in the workflow designer UI.\n */\nexport interface NodeDefinition {\n type: NodeType;\n subType: NodeSubTypeTS;\n label: string;\n icon: string;\n description: string;\n category: string;\n config: JSONSchema;\n input: JSONSchema;\n output: JSONSchema;\n}\n/**\n * EdgeTypeDefinition defines metadata for an edge type\n */\nexport interface EdgeTypeDefinition {\n value: string;\n label: string;\n}\n/**\n * WorkflowTypeDefinition defines metadata for a workflow type\n */\nexport interface WorkflowTypeDefinition {\n value: string;\n label: string;\n}\n\n//////////\n// source: workflow-helper-models.go\n\nexport interface LogicPath {\n id: string;\n nodeId: string;\n condition: string; // \"true\"/\"false\" for if, value for switch\n priority: number /* int */; // For ordering multiple possible paths\n}\nexport interface Intent {\n id: string;\n nodeId: string;\n name: string;\n description: string;\n}\n\n//////////\n// source: workflows-base-models.go\n\nexport interface Metadata {\n createdBy: string;\n createdAt: string /* RFC3339 */;\n updatedBy?: string;\n updatedAt?: string /* RFC3339 */;\n isActive: boolean;\n version: number /* int */;\n}\nexport interface CreateWorkflowDefinitionRequest {\n definition: WorkflowDefinition;\n orgId: string;\n}\nexport interface UpdateWorkflowDefinitionRequest {\n definition: WorkflowDefinition;\n orgId: string;\n}\nexport interface WorkflowDefinitionResponse {\n definition: WorkflowDefinition;\n metadata: ResponseMetadata;\n}\nexport interface GetWorkflowDefinitionRequest {\n id?: string /* uuid */; // Lookup by ID\n name?: string; // Or lookup by name (normalized: lowercase, dashes)\n title?: string; // Or lookup by title (deprecated, use name)\n type?: string; // Optional: filter by type when looking up by name/title\n orgId: string;\n}\n/**\n * GetWorkflowDefinitionByTitleRequest is used for the legacy workflow.definition.get.by.title endpoint\n * Kept for backward compatibility - prefer using GetWorkflowDefinitionRequest with Name field\n */\nexport interface GetWorkflowDefinitionByTitleRequest {\n title: string;\n name?: string; // Preferred over Title\n type?: string; // Optional: filter by type\n orgId: string;\n}\nexport interface ListWorkflowDefinitionsRequest {\n orgId: string;\n status?: string; // Optional: active, inactive, etc\n}\nexport interface ListWorkflowDefinitionsResponse {\n definitions: WorkflowDefinition[];\n metadata: ResponseMetadata;\n}\nexport interface DeleteWorkflowDefinitionRequest {\n id: string;\n orgId: string;\n}\n/**\n * Workflow Definition models\n */\nexport interface WorkflowDefinition {\n /**\n * Core Identity\n */\n id?: string /* uuid */;\n name: string; // Normalized name: lowercase, spaces replaced with dashes (auto-generated from Title)\n title: string;\n description: string;\n type: WorkflowTypeTS; // entity, chat, document, etc.\n /**\n * Graph Structure\n */\n nodes: { [key: string]: WorkflowNode};\n edges: WorkflowEdge[];\n entryPoints: string[]; // List of start node IDs, currently only one\n /**\n * Data Management\n */\n variables: WorkflowVariables;\n constants?: { [key: string]: any};\n /**\n * Runtime Configuration\n */\n persistence?: PersistenceType;\n /**\n * Validation and Constraints\n */\n rules?: WorkflowRule[];\n permissions: WorkflowPermissions;\n /**\n * Metadata and Tracking\n */\n metadata: WorkflowMetadata;\n}\nexport interface WorkflowVariables {\n schema: JSONSchema;\n scope: { [key: string]: string}; // Variable visibility\n defaultValues: { [key: string]: any}; // Default values\n computed: { [key: string]: string}; // Expressions for computed variables\n}\nexport interface WorkflowRule {\n name: string;\n description: string;\n condition: string; // Expression\n action: string; // What to do if condition is met\n level: RuleLevel; // error, warning, info\n}\nexport type RuleLevel = string;\nexport const RuleLevelError: RuleLevel = \"error\";\nexport const RuleLevelWarning: RuleLevel = \"warning\";\nexport const RuleLevelInfo: RuleLevel = \"info\";\nexport interface WorkflowPermissions {\n roles: { [key: string]: string[]}; // Role-based permissions\n accessLevel: string; // public, private, restricted\n editableBy: string[]; // User/Role IDs\n viewableBy: string[]; // User/Role IDs\n}\nexport interface WorkflowMetadata {\n createdBy: string;\n createdAt: string /* RFC3339 */;\n updatedBy?: string;\n updatedAt?: string /* RFC3339 */;\n isActive: boolean;\n version: number /* int */;\n tags?: string[];\n category?: string;\n labels?: string[];\n}\nexport type PersistenceType = string;\nexport const PersistenceTypeEphemeral: PersistenceType = \"ephemeral\";\nexport const PersistenceTypePermanent: PersistenceType = \"permanent\";\n/**\n * todo: validate default values against schema\n */\nexport interface NodeInput {\n schema: JSONSchema;\n defaultValues?: { [key: string]: any};\n}\nexport interface NodeOutput {\n schema: JSONSchema;\n /**\n * Mapping map[string]string `json:\"mapping,omitempty\"`\n */\n values?: { [key: string]: any};\n}\nexport interface NodeConfig {\n schema: JSONSchema; // config schema, the ui must validate against this\n values: { [key: string]: any}; // actual config values\n promoteToVariables?: string[]; // output fields to promote to workflow-level variables\n}\nexport interface WorkflowNode {\n id: string;\n title: string;\n name: string; // ** normalized function name, for example: find_products **\n label?: string;\n description?: string;\n type: WorkflowNodeTypeTS;\n subType?: WorkflowNodeSubTypeTS;\n config: NodeConfig;\n settings: NodeSettings;\n input: NodeInput;\n output: NodeOutput;\n isStart: boolean;\n}\n/**\n * NodeSettings contains type-specific configuration\n */\nexport interface NodeSettings {\n /**\n * Shared configs\n */\n execution?: ExecutionConfig;\n retry?: RetryConfig;\n}\nexport interface ExecutionConfig {\n timeoutSeconds: number /* int */;\n priority: number /* int */;\n subject?: string;\n}\nexport interface RetryConfig {\n maxAttempts: number /* int */;\n initialDelay: any /* time.Duration */;\n maxDelay: any /* time.Duration */;\n backoffMultiplier: number /* float64 */;\n}\n/**\n * CacheConfig defines caching behavior for expression results\n */\nexport interface CacheConfig {\n enabled: boolean;\n ttl: any /* time.Duration */; // How long to cache\n key?: string; // Custom cache key\n tags?: string[];\n}\nexport interface ExpressionConfig {\n type: ExpressionType;\n expression: string;\n variables?: string[]; // Referenced variables\n timeout?: any /* time.Duration */; // Evaluation timeout\n cache?: CacheConfig; // Expression result caching\n}\n/**\n * Example usage in full edge structure\n */\nexport interface WorkflowEdge {\n id: string;\n fromNodeId: string;\n toNodeId: string;\n type: WorkflowEdgeTypeTS;\n label?: string;\n expression?: ExpressionConfig;\n priority: number /* int */;\n retry?: RetryConfig;\n timeout?: TimeoutConfig;\n properties?: { [key: string]: string};\n}\n/**\n * TimeoutConfig defines timeout behavior for nodes and edges\n */\nexport interface TimeoutConfig {\n duration: any /* time.Duration */; // How long to wait\n action: TimeoutAction; // What to do on timeout\n retryPolicy?: RetryConfig; // Optional retry on timeout\n}\nexport type TimeoutAction = string;\nexport const TimeoutActionFail: TimeoutAction = \"fail\"; // Mark as failed\nexport const TimeoutActionSkip: TimeoutAction = \"skip\"; // Skip and continue\nexport const TimeoutActionRetry: TimeoutAction = \"retry\"; // Attempt retry\nexport const TimeoutActionAlt: TimeoutAction = \"alt\"; // Take alternate path\nexport interface CreateWorkflowInstanceRequest {\n orgId: string;\n definitionId: string /* uuid */;\n variables: { [key: string]: any};\n autoExecute: boolean;\n}\nexport interface WorkflowInstanceResponse {\n instance?: WorkflowInstance;\n metadata: ResponseMetadata;\n}\nexport interface WorkflowInstanceExecuteNodeRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n input: { [key: string]: any};\n}\nexport interface WorkflowInstanceResumeNodeRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n result: { [key: string]: any};\n}\nexport interface WorkflowInstanceExecuteNodeLeanRequest {\n orgId: string;\n nodeDef: WorkflowNode;\n input: { [key: string]: any};\n}\nexport interface UpdateInstanceNodeMetadataRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n metadataKey: string;\n payload: any;\n}\nexport interface GetWorkflowInstanceRequest {\n orgId: string;\n instanceId: string /* uuid */;\n}\n/**\n * GetInstanceByStateVariableRequest finds an instance by a variable stored in state.variables\n */\nexport interface GetInstanceByStateVariableRequest {\n orgId: string;\n definitionId: string /* uuid */;\n variableKey: string; // e.g., \"orgId\"\n variableValue: string; // e.g., \"019bf2bf-e713-7936-8a4d-daeb67742a4d\"\n}\nexport interface ListWorkflowInstancesRequest {\n orgId: string;\n definitionId: string /* uuid */;\n userId?: string; // Optional: filter by state.variables.userId\n status?: string; // Optional: filter by instance status\n}\nexport interface ListWorkflowInstancesResponse {\n instances: WorkflowInstance[];\n metadata: ResponseMetadata;\n}\nexport interface UpdateInstanceStatusRequest {\n orgId: string;\n instanceId: string /* uuid */;\n status: InstanceStatus;\n}\nexport interface RetryNodeRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n}\nexport interface ListInstancesOptions {\n definitionId: string /* uuid */;\n userId?: string; // Optional: filter by state.variables.userId\n status: InstanceStatus;\n limit: number /* int */;\n offset: number /* int */;\n}\nexport interface InstanceState {\n variables: { [key: string]: any};\n constants: { [key: string]: any};\n nodeStates: { [key: string]: NodeState};\n edgeStates: { [key: string]: EdgeState};\n}\nexport interface ExecutionContext {\n currentNodes: string[];\n path: ExecutionPathEntry[];\n errors: ExecutionError[];\n}\n/**\n * Workflow Instance models\n */\nexport interface WorkflowInstance {\n id?: string /* uuid */;\n orgId?: string /* uuid */;\n definitionId: string /* uuid */;\n definitionName?: string; // Normalized name from definition (lowercase, dashes)\n title?: string;\n description?: string;\n type?: WorkflowType;\n definitionVersion: number /* int */;\n status: InstanceStatus;\n state: InstanceState;\n context: ExecutionContext;\n persistence?: PersistenceType;\n metadata: WorkflowMetadata;\n}\nexport interface NodeState {\n status: NodeStatus;\n input?: { [key: string]: any};\n output?: { [key: string]: any};\n /**\n * Variables map[string]interface{} `json:\"variables,omitempty\"`\n */\n error?: string;\n startTime?: string /* RFC3339 */;\n endTime?: string /* RFC3339 */;\n retryCount: number /* int */;\n nextRetryAt?: string /* RFC3339 */;\n}\nexport interface EdgeState {\n status: EdgeStatus;\n timestamp: string /* RFC3339 */;\n error?: string;\n}\nexport interface ExecutionPathEntry {\n nodeId: string;\n edgeId: string;\n type: string; // node_enter, node_exit, edge_traverse\n timestamp: string /* RFC3339 */;\n data?: { [key: string]: any};\n}\nexport interface ExecutionError {\n nodeId?: string;\n edgeId?: string;\n error: string;\n timestamp: string /* RFC3339 */;\n retryable: boolean;\n}\nexport type InstanceStatus = string;\nexport const InstanceStatusNew: InstanceStatus = \"NEW\";\nexport const InstanceStatusRunning: InstanceStatus = \"RUNNING\";\nexport const InstanceStatusWaiting: InstanceStatus = \"WAITING\";\nexport const InstanceStatusPaused: InstanceStatus = \"PAUSED\";\nexport const InstanceStatusCompleted: InstanceStatus = \"COMPLETED\";\nexport const InstanceStatusFailed: InstanceStatus = \"FAILED\";\nexport interface NodeInstance {\n nodeId: string;\n status: NodeStatus;\n input?: { [key: string]: any};\n output?: { [key: string]: any};\n error?: string;\n startTime?: string /* RFC3339 */;\n endTime?: string /* RFC3339 */;\n retryCount: number /* int */;\n nextRetryAt?: string /* RFC3339 */;\n}\nexport type NodeStatus = string;\nexport const NodeStatusPending: NodeStatus = \"PENDING\";\nexport const NodeStatusRunning: NodeStatus = \"RUNNING\";\nexport const NodeStatusCompleted: NodeStatus = \"COMPLETED\";\nexport const NodeStatusFailed: NodeStatus = \"FAILED\";\nexport const NodeStatusWaiting: NodeStatus = \"WAITING\";\nexport const NodeStatusSkipped: NodeStatus = \"SKIPPED\";\nexport type EdgeStatus = string;\nexport const EdgeStatusPending: EdgeStatus = \"PENDING\";\nexport const EdgeStatusCompleted: EdgeStatus = \"COMPLETED\";\nexport const EdgeStatusSkipped: EdgeStatus = \"SKIPPED\";\n/**\n * WorkflowDefinitionInfo holds summarized info about an active workflow definition\n * Used by schedulers and services that need to process workflows without full definition details\n */\nexport interface WorkflowDefinitionInfo {\n id: string; // Workflow definition ID\n orgId: string; // Organization ID\n title: string;\n type: string; // e.g., \"productivity\", \"entity\"\n category: string; // e.g., \"email\" (from metadata)\n isActive: boolean;\n createdBy: string; // User who created this workflow\n /**\n * User config from definition.variables.defaultValues (workflow-specific)\n */\n provider?: string; // e.g., \"google\" or \"microsoft\" for email workflows\n userEmail?: string; // User's email address\n userId?: string; // User ID who owns this workflow\n}\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: subjects.go\n\nexport const WorkflowDefinitionCreate = \"workflow.definition.create\";\nexport const WorkflowDefinitionCreated = \"workflow.definition.created\";\nexport const WorkflowDefinitionUpdate = \"workflow.definition.update\";\nexport const WorkflowDefinitionUpdated = \"workflow.definition.updated\";\nexport const WorkflowDefinitionGet = \"workflow.definition.get\";\nexport const WorkflowDefinitionGetServer = \"workflow.definition.get.server\";\nexport const WorkflowDefinitionGetByTitle = \"workflow.definition.get.by.title\";\nexport const WorkflowDefinitionList = \"workflow.definition.list\";\nexport const WorkflowDefinitionDelete = \"workflow.definition.delete\";\nexport const WorkflowDefinitionDeleted = \"workflow.definition.deleted\";\nexport const WorkflowInstanceCreate = \"workflow.instance.create\";\nexport const WorkflowInstanceExecuteNode = \"workflow.instance.execute.node\";\nexport const WorkflowInstanceResumeNode = \"workflow.instance.resume.node\";\nexport const WorkflowInstanceExecuteNodeServer = \"workflow.instance.execute.node.server\";\nexport const WorkflowInstanceResumeNodeServer = \"workflow.instance.resume.node.server\";\nexport const WorkflowInstanceExecuteNodeLean = \"workflow.instance.execute.node.lean\";\nexport const WorkflowInstanceExecuteNodeLeanServer = \"workflow.instance.execute.node.lean.server\";\nexport const WorkflowInstanceGet = \"workflow.instance.get\";\nexport const WorkflowInstanceGetByStateVariable = \"workflow.instance.get.by.state.variable\";\nexport const WorkflowInstanceList = \"workflow.instance.list\";\nexport const WorkflowInstanceUpdate = \"workflow.instance.update\";\nexport const WorkflowInstanceUpdated = \"workflow.instance.updated\";\nexport const WorkflowInstanceUpdateNodeMetadata = \"workflow.instance.update.node.metadata\";\n/**\n * Template management\n */\nexport const WorkflowTemplateList = \"workflow.template.list\";\nexport const WorkflowTemplateGet = \"workflow.template.get\";\nexport const WorkflowTemplateInstantiate = \"workflow.template.instantiate\";\n/**\n * Schedule management\n */\nexport const WorkflowScheduleCreate = \"workflow.schedule.create\";\nexport const WorkflowScheduleUpdate = \"workflow.schedule.update\";\nexport const WorkflowScheduleDelete = \"workflow.schedule.delete\";\nexport const WorkflowScheduleList = \"workflow.schedule.list\";\nexport const WorkflowSchedulePause = \"workflow.schedule.pause\";\nexport const WorkflowScheduleResume = \"workflow.schedule.resume\";\n/**\n * Trigger management\n */\nexport const WorkflowTriggerRegister = \"workflow.trigger.register\";\nexport const WorkflowTriggerPause = \"workflow.trigger.pause\";\nexport const WorkflowTriggerResume = \"workflow.trigger.resume\";\nexport const WorkflowTriggerStatus = \"workflow.trigger.status\";\nexport const WorkflowTriggerFired = \"workflow.trigger.fired\";\n/**\n * Execution events\n */\nexport const WorkflowExecutionStarted = \"workflow.execution.started\";\nexport const WorkflowExecutionCompleted = \"workflow.execution.completed\";\nexport const WorkflowExecutionFailed = \"workflow.execution.failed\";\n"]}
@@ -15,6 +15,7 @@ var NodeTypeTimer = "timer";
15
15
  var NodeTypeSubflow = "subflow";
16
16
  var NodeTypeCustom = "custom";
17
17
  var NodeTypeAccounting = "accounting";
18
+ var NodeTypeDocumentExtraction = "documentExtraction";
18
19
  var NodeSubTypeTriggerStart = "triggerStart";
19
20
  var NodeSubTypeTriggerEntityRecordCreated = "triggerEntityRecordCreated";
20
21
  var NodeSubTypeTriggerEntityRecordUpdated = "triggerEntityRecordUpdated";
@@ -167,6 +168,7 @@ export {
167
168
  NodeTypeSubflow,
168
169
  NodeTypeCustom,
169
170
  NodeTypeAccounting,
171
+ NodeTypeDocumentExtraction,
170
172
  NodeSubTypeTriggerStart,
171
173
  NodeSubTypeTriggerEntityRecordCreated,
172
174
  NodeSubTypeTriggerEntityRecordUpdated,
@@ -302,4 +304,4 @@ export {
302
304
  WorkflowExecutionCompleted,
303
305
  WorkflowExecutionFailed
304
306
  };
305
- //# sourceMappingURL=chunk-CZAV6SMB.mjs.map
307
+ //# sourceMappingURL=chunk-YCEGKVXP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../models/workflow.ts","../models/subjects.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { EntityFilterOperatorTS } from \"@elqnt/entity\";\nimport { JSONSchema, ResponseMetadata } from \"@elqnt/types\";\nimport { NodeSubTypeTS, WorkflowTypeTS, WorkflowNodeTypeTS, WorkflowNodeSubTypeTS, WorkflowEdgeTypeTS } from \"../schema/schemas\";\n\n//////////\n// source: constants.go\n\n/**\n * NodeType represents the primary type of a workflow node\n */\nexport type NodeType = string;\nexport const NodeTypeTrigger: NodeType = \"trigger\";\nexport const NodeTypeHumanAction: NodeType = \"humanAction\";\nexport const NodeTypeAgent: NodeType = \"agent\";\nexport const NodeTypeAction: NodeType = \"action\";\nexport const NodeTypeLogic: NodeType = \"logic\";\nexport const NodeTypeLoop: NodeType = \"loop\";\nexport const NodeTypeParallel: NodeType = \"parallel\";\nexport const NodeTypeDelay: NodeType = \"delay\";\nexport const NodeTypeData: NodeType = \"data\";\nexport const NodeTypeIntegration: NodeType = \"integration\";\nexport const NodeTypeTimer: NodeType = \"timer\";\nexport const NodeTypeSubflow: NodeType = \"subflow\";\nexport const NodeTypeCustom: NodeType = \"custom\";\nexport const NodeTypeAccounting: NodeType = \"accounting\";\nexport const NodeTypeDocumentExtraction: NodeType = \"documentExtraction\";\n/**\n * NodeSubType represents the subtype of a workflow node\n * All node subtypes are unified under this single type\n */\nexport type NodeSubType = string;\n/**\n * Trigger subtypes\n */\nexport const NodeSubTypeTriggerStart: NodeSubType = \"triggerStart\";\nexport const NodeSubTypeTriggerEntityRecordCreated: NodeSubType = \"triggerEntityRecordCreated\";\nexport const NodeSubTypeTriggerEntityRecordUpdated: NodeSubType = \"triggerEntityRecordUpdated\";\nexport const NodeSubTypeTriggerEntityRecordDeleted: NodeSubType = \"triggerEntityRecordDeleted\";\nexport const NodeSubTypeTriggerSLAWarning: NodeSubType = \"triggerSLAWarning\";\nexport const NodeSubTypeTriggerSLABreach: NodeSubType = \"triggerSLABreach\";\nexport const NodeSubTypeTriggerEscalation: NodeSubType = \"triggerEscalation\";\nexport const NodeSubTypeTriggerWebhookReceived: NodeSubType = \"triggerWebhookReceived\";\n/**\n * Human action subtypes\n */\nexport const NodeSubTypeHumanActionReview: NodeSubType = \"humanActionReview\"; // review means will be able to edit the fields and move to next node (no approval)\nexport const NodeSubTypeHumanActionApproval: NodeSubType = \"humanActionApproval\"; // approval means will be able to edit the fields and move to next node (with approval)\nexport const NodeSubTypeHumanActionDataEntry: NodeSubType = \"humanActionDataEntry\"; // data entry means will be able to fill the fields and move to next node (no approval)\nexport const NodeSubTypeHumanActionAssignment: NodeSubType = \"humanActionAssignment\"; // assignment means will be able to only assign the task to a user (no approval)\n/**\n * Agent subtypes\n */\nexport const NodeSubTypeAgentChat: NodeSubType = \"agentChat\";\nexport const NodeSubTypeAgentIntentDetector: NodeSubType = \"agentIntentDetector\";\nexport const NodeSubTypeAgentKnowledgeGraph: NodeSubType = \"agentKnowledgeGraph\";\nexport const NodeSubTypeAgentClientApiCall: NodeSubType = \"clientApiCall\";\nexport const NodeSubTypeAgentTransferToHuman: NodeSubType = \"agentTransferToHuman\";\nexport const NodeSubTypeAgentOpenTicket: NodeSubType = \"agentOpenTicket\";\nexport const NodeSubTypeAgentApiIntegration: NodeSubType = \"agentApiIntegration\";\nexport const NodeSubTypeAgentCustomResponse: NodeSubType = \"agentCustomResponse\";\nexport const NodeSubTypeAgentStructuredOutput: NodeSubType = \"agentStructuredOutput\"; // Generic structured output using OpenAI with dynamic input/output schemas\n/**\n * Action subtypes\n */\nexport const NodeSubTypeActionApiCall: NodeSubType = \"actionApiCall\";\nexport const NodeSubTypeActionDocumentExtraction: NodeSubType = \"actionDocumentExtraction\";\nexport const NodeSubTypeActionSendEmail: NodeSubType = \"actionSendEmail\";\nexport const NodeSubTypeActionSendSMS: NodeSubType = \"actionSendSMS\";\nexport const NodeSubTypeActionGenerateDocument: NodeSubType = \"actionGenerateDocument\";\nexport const NodeSubTypeActionProcessPayment: NodeSubType = \"actionProcessPayment\";\nexport const NodeSubTypeActionCreateEntityRecord: NodeSubType = \"actionCreateEntityRecord\";\nexport const NodeSubTypeActionUpdateEntityRecord: NodeSubType = \"actionUpdateEntityRecord\";\nexport const NodeSubTypeActionDeleteEntityRecord: NodeSubType = \"actionDeleteEntityRecord\";\nexport const NodeSubTypeActionMergeEntityRecords: NodeSubType = \"actionMergeEntityRecords\";\nexport const NodeSubTypeActionAssignSLAPolicy: NodeSubType = \"actionAssignSLAPolicy\";\nexport const NodeSubTypeActionChangeSLAStatus: NodeSubType = \"actionChangeSLAAssignmentStatus\";\nexport const NodeSubTypeActionEscalateSLA: NodeSubType = \"actionEscalateSLAAssignment\";\nexport const NodeSubTypeActionCSATSurvey: NodeSubType = \"actionCSATSurvey\";\nexport const NodeSubTypeActionSetVariables: NodeSubType = \"actionSetVariables\"; // Passthrough node that sets variables from config values\nexport const NodeSubTypeActionQueryEntityRecords: NodeSubType = \"actionQueryEntityRecords\"; // Query entity records with filters\nexport const NodeSubTypeActionNatsRequest: NodeSubType = \"actionNatsRequest\"; // Execute a NATS request-reply call\n/**\n * Logic subtypes\n */\nexport const NodeSubTypeLogicIf: NodeSubType = \"logicIf\";\nexport const NodeSubTypeLogicSwitch: NodeSubType = \"logicSwitch\";\nexport const NodeSubTypeLogicFor: NodeSubType = \"logicFor\";\nexport const NodeSubTypeLogicParallel: NodeSubType = \"logicParallel\";\n/**\n * Loop subtypes\n */\nexport const NodeSubTypeLoopData: NodeSubType = \"loopData\";\n/**\n * Delay subtypes\n */\nexport const NodeSubTypeDelay: NodeSubType = \"delay\";\n/**\n * Data subtypes\n */\nexport const NodeSubTypeDataFilter: NodeSubType = \"dataFilter\";\nexport const NodeSubTypeDataMap: NodeSubType = \"dataMap\";\nexport const NodeSubTypeDataCalculate: NodeSubType = \"dataCalculate\";\nexport const NodeSubTypeDataValidate: NodeSubType = \"dataValidate\";\n/**\n * Timer subtypes\n */\nexport const NodeSubTypeTimerDelay: NodeSubType = \"timerDelay\";\nexport const NodeSubTypeTimerSchedule: NodeSubType = \"timerSchedule\";\nexport const NodeSubTypeTimerBusinessHours: NodeSubType = \"timerBusinessHours\";\n/**\n * ExpressionType defines the type of expression evaluation to be used\n */\nexport type ExpressionType = string;\n/**\n * Simple filter-based expressions using predefined operators\n */\nexport const ExpressionTypeFilter: ExpressionType = \"filter\";\n/**\n * JavaScript-like expressions with full language features\n */\nexport const ExpressionTypeJavaScript: ExpressionType = \"javascript\";\n/**\n * Template expressions with variable interpolation\n */\nexport const ExpressionTypeTemplate: ExpressionType = \"template\";\n/**\n * Custom domain-specific language expressions\n */\nexport const ExpressionTypeDSL: ExpressionType = \"dsl\";\n/**\n * Complex rule-based expressions (e.g., business rules)\n */\nexport const ExpressionTypeRules: ExpressionType = \"rules\";\n/**\n * EdgeType defines the type and behavior of workflow edges\n */\nexport type EdgeType = string;\n/**\n * Standard flow between nodes\n */\nexport const EdgeTypeNormal: EdgeType = \"normal\";\n/**\n * Loop back to previous node\n */\nexport const EdgeTypeLoopBack: EdgeType = \"loopBack\";\n/**\n * Error handling path\n */\nexport const EdgeTypeError: EdgeType = \"error\";\n/**\n * Fallback/default path when no other conditions match\n */\nexport const EdgeTypeDefault: EdgeType = \"default\";\n/**\n * Path for parallel execution branch\n */\nexport const EdgeTypeParallel: EdgeType = \"parallel\";\n/**\n * Path for conditional branching\n */\nexport const EdgeTypeConditional: EdgeType = \"conditional\";\n/**\n * Path for merging parallel branches\n */\nexport const EdgeTypeMerge: EdgeType = \"merge\";\n/**\n * Compensating/rollback path\n */\nexport const EdgeTypeCompensation: EdgeType = \"compensation\";\n/**\n * Path for timeout/deadline handling\n */\nexport const EdgeTypeTimeout: EdgeType = \"timeout\";\nexport type WorkflowType = string;\nexport const WorkflowTypeEntity: WorkflowType = \"entity\";\nexport const WorkflowTypeDocument: WorkflowType = \"document\";\nexport const WorkflowTypeChat: WorkflowType = \"chat\";\nexport const WorkflowTypeAgent: WorkflowType = \"agent\";\nexport const WorkflowTypeProductivity: WorkflowType = \"productivity\";\n\n//////////\n// source: node-definitions.go\n\n/**\n * NodeDefinition is the design-time template for creating WorkflowNode instances.\n * This is the single source of truth for all node types in the workflow system.\n * Generated to TypeScript via schema-generator for use in the workflow designer UI.\n */\nexport interface NodeDefinition {\n type: NodeType;\n subType: NodeSubTypeTS;\n label: string;\n icon: string;\n description: string;\n category: string;\n config: JSONSchema;\n input: JSONSchema;\n output: JSONSchema;\n}\n/**\n * EdgeTypeDefinition defines metadata for an edge type\n */\nexport interface EdgeTypeDefinition {\n value: string;\n label: string;\n}\n/**\n * WorkflowTypeDefinition defines metadata for a workflow type\n */\nexport interface WorkflowTypeDefinition {\n value: string;\n label: string;\n}\n\n//////////\n// source: workflow-helper-models.go\n\nexport interface LogicPath {\n id: string;\n nodeId: string;\n condition: string; // \"true\"/\"false\" for if, value for switch\n priority: number /* int */; // For ordering multiple possible paths\n}\nexport interface Intent {\n id: string;\n nodeId: string;\n name: string;\n description: string;\n}\n\n//////////\n// source: workflows-base-models.go\n\nexport interface Metadata {\n createdBy: string;\n createdAt: string /* RFC3339 */;\n updatedBy?: string;\n updatedAt?: string /* RFC3339 */;\n isActive: boolean;\n version: number /* int */;\n}\nexport interface CreateWorkflowDefinitionRequest {\n definition: WorkflowDefinition;\n orgId: string;\n}\nexport interface UpdateWorkflowDefinitionRequest {\n definition: WorkflowDefinition;\n orgId: string;\n}\nexport interface WorkflowDefinitionResponse {\n definition: WorkflowDefinition;\n metadata: ResponseMetadata;\n}\nexport interface GetWorkflowDefinitionRequest {\n id?: string /* uuid */; // Lookup by ID\n name?: string; // Or lookup by name (normalized: lowercase, dashes)\n title?: string; // Or lookup by title (deprecated, use name)\n type?: string; // Optional: filter by type when looking up by name/title\n orgId: string;\n}\n/**\n * GetWorkflowDefinitionByTitleRequest is used for the legacy workflow.definition.get.by.title endpoint\n * Kept for backward compatibility - prefer using GetWorkflowDefinitionRequest with Name field\n */\nexport interface GetWorkflowDefinitionByTitleRequest {\n title: string;\n name?: string; // Preferred over Title\n type?: string; // Optional: filter by type\n orgId: string;\n}\nexport interface ListWorkflowDefinitionsRequest {\n orgId: string;\n status?: string; // Optional: active, inactive, etc\n}\nexport interface ListWorkflowDefinitionsResponse {\n definitions: WorkflowDefinition[];\n metadata: ResponseMetadata;\n}\nexport interface DeleteWorkflowDefinitionRequest {\n id: string;\n orgId: string;\n}\n/**\n * Workflow Definition models\n */\nexport interface WorkflowDefinition {\n /**\n * Core Identity\n */\n id?: string /* uuid */;\n name: string; // Normalized name: lowercase, spaces replaced with dashes (auto-generated from Title)\n title: string;\n description: string;\n type: WorkflowTypeTS; // entity, chat, document, etc.\n /**\n * Graph Structure\n */\n nodes: { [key: string]: WorkflowNode};\n edges: WorkflowEdge[];\n entryPoints: string[]; // List of start node IDs, currently only one\n /**\n * Data Management\n */\n variables: WorkflowVariables;\n constants?: { [key: string]: any};\n /**\n * Runtime Configuration\n */\n persistence?: PersistenceType;\n /**\n * Validation and Constraints\n */\n rules?: WorkflowRule[];\n permissions: WorkflowPermissions;\n /**\n * Metadata and Tracking\n */\n metadata: WorkflowMetadata;\n}\nexport interface WorkflowVariables {\n schema: JSONSchema;\n scope: { [key: string]: string}; // Variable visibility\n defaultValues: { [key: string]: any}; // Default values\n computed: { [key: string]: string}; // Expressions for computed variables\n}\nexport interface WorkflowRule {\n name: string;\n description: string;\n condition: string; // Expression\n action: string; // What to do if condition is met\n level: RuleLevel; // error, warning, info\n}\nexport type RuleLevel = string;\nexport const RuleLevelError: RuleLevel = \"error\";\nexport const RuleLevelWarning: RuleLevel = \"warning\";\nexport const RuleLevelInfo: RuleLevel = \"info\";\nexport interface WorkflowPermissions {\n roles: { [key: string]: string[]}; // Role-based permissions\n accessLevel: string; // public, private, restricted\n editableBy: string[]; // User/Role IDs\n viewableBy: string[]; // User/Role IDs\n}\nexport interface WorkflowMetadata {\n createdBy: string;\n createdAt: string /* RFC3339 */;\n updatedBy?: string;\n updatedAt?: string /* RFC3339 */;\n isActive: boolean;\n version: number /* int */;\n tags?: string[];\n category?: string;\n labels?: string[];\n}\nexport type PersistenceType = string;\nexport const PersistenceTypeEphemeral: PersistenceType = \"ephemeral\";\nexport const PersistenceTypePermanent: PersistenceType = \"permanent\";\n/**\n * todo: validate default values against schema\n */\nexport interface NodeInput {\n schema: JSONSchema;\n defaultValues?: { [key: string]: any};\n}\nexport interface NodeOutput {\n schema: JSONSchema;\n /**\n * Mapping map[string]string `json:\"mapping,omitempty\"`\n */\n values?: { [key: string]: any};\n}\nexport interface NodeConfig {\n schema: JSONSchema; // config schema, the ui must validate against this\n values: { [key: string]: any}; // actual config values\n promoteToVariables?: string[]; // output fields to promote to workflow-level variables\n}\nexport interface WorkflowNode {\n id: string;\n title: string;\n name: string; // ** normalized function name, for example: find_products **\n label?: string;\n description?: string;\n type: WorkflowNodeTypeTS;\n subType?: WorkflowNodeSubTypeTS;\n config: NodeConfig;\n settings: NodeSettings;\n input: NodeInput;\n output: NodeOutput;\n isStart: boolean;\n}\n/**\n * NodeSettings contains type-specific configuration\n */\nexport interface NodeSettings {\n /**\n * Shared configs\n */\n execution?: ExecutionConfig;\n retry?: RetryConfig;\n}\nexport interface ExecutionConfig {\n timeoutSeconds: number /* int */;\n priority: number /* int */;\n subject?: string;\n}\nexport interface RetryConfig {\n maxAttempts: number /* int */;\n initialDelay: any /* time.Duration */;\n maxDelay: any /* time.Duration */;\n backoffMultiplier: number /* float64 */;\n}\n/**\n * CacheConfig defines caching behavior for expression results\n */\nexport interface CacheConfig {\n enabled: boolean;\n ttl: any /* time.Duration */; // How long to cache\n key?: string; // Custom cache key\n tags?: string[];\n}\nexport interface ExpressionConfig {\n type: ExpressionType;\n expression: string;\n variables?: string[]; // Referenced variables\n timeout?: any /* time.Duration */; // Evaluation timeout\n cache?: CacheConfig; // Expression result caching\n}\n/**\n * Example usage in full edge structure\n */\nexport interface WorkflowEdge {\n id: string;\n fromNodeId: string;\n toNodeId: string;\n type: WorkflowEdgeTypeTS;\n label?: string;\n expression?: ExpressionConfig;\n priority: number /* int */;\n retry?: RetryConfig;\n timeout?: TimeoutConfig;\n properties?: { [key: string]: string};\n}\n/**\n * TimeoutConfig defines timeout behavior for nodes and edges\n */\nexport interface TimeoutConfig {\n duration: any /* time.Duration */; // How long to wait\n action: TimeoutAction; // What to do on timeout\n retryPolicy?: RetryConfig; // Optional retry on timeout\n}\nexport type TimeoutAction = string;\nexport const TimeoutActionFail: TimeoutAction = \"fail\"; // Mark as failed\nexport const TimeoutActionSkip: TimeoutAction = \"skip\"; // Skip and continue\nexport const TimeoutActionRetry: TimeoutAction = \"retry\"; // Attempt retry\nexport const TimeoutActionAlt: TimeoutAction = \"alt\"; // Take alternate path\nexport interface CreateWorkflowInstanceRequest {\n orgId: string;\n definitionId: string /* uuid */;\n variables: { [key: string]: any};\n autoExecute: boolean;\n}\nexport interface WorkflowInstanceResponse {\n instance?: WorkflowInstance;\n metadata: ResponseMetadata;\n}\nexport interface WorkflowInstanceExecuteNodeRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n input: { [key: string]: any};\n}\nexport interface WorkflowInstanceResumeNodeRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n result: { [key: string]: any};\n}\nexport interface WorkflowInstanceExecuteNodeLeanRequest {\n orgId: string;\n nodeDef: WorkflowNode;\n input: { [key: string]: any};\n}\nexport interface UpdateInstanceNodeMetadataRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n metadataKey: string;\n payload: any;\n}\nexport interface GetWorkflowInstanceRequest {\n orgId: string;\n instanceId: string /* uuid */;\n}\n/**\n * GetInstanceByStateVariableRequest finds an instance by a variable stored in state.variables\n */\nexport interface GetInstanceByStateVariableRequest {\n orgId: string;\n definitionId: string /* uuid */;\n variableKey: string; // e.g., \"orgId\"\n variableValue: string; // e.g., \"019bf2bf-e713-7936-8a4d-daeb67742a4d\"\n}\nexport interface ListWorkflowInstancesRequest {\n orgId: string;\n definitionId: string /* uuid */;\n userId?: string; // Optional: filter by state.variables.userId\n status?: string; // Optional: filter by instance status\n}\nexport interface ListWorkflowInstancesResponse {\n instances: WorkflowInstance[];\n metadata: ResponseMetadata;\n}\nexport interface UpdateInstanceStatusRequest {\n orgId: string;\n instanceId: string /* uuid */;\n status: InstanceStatus;\n}\nexport interface RetryNodeRequest {\n orgId: string;\n instanceId: string /* uuid */;\n nodeId: string;\n}\nexport interface ListInstancesOptions {\n definitionId: string /* uuid */;\n userId?: string; // Optional: filter by state.variables.userId\n status: InstanceStatus;\n limit: number /* int */;\n offset: number /* int */;\n}\nexport interface InstanceState {\n variables: { [key: string]: any};\n constants: { [key: string]: any};\n nodeStates: { [key: string]: NodeState};\n edgeStates: { [key: string]: EdgeState};\n}\nexport interface ExecutionContext {\n currentNodes: string[];\n path: ExecutionPathEntry[];\n errors: ExecutionError[];\n}\n/**\n * Workflow Instance models\n */\nexport interface WorkflowInstance {\n id?: string /* uuid */;\n orgId?: string /* uuid */;\n definitionId: string /* uuid */;\n definitionName?: string; // Normalized name from definition (lowercase, dashes)\n title?: string;\n description?: string;\n type?: WorkflowType;\n definitionVersion: number /* int */;\n status: InstanceStatus;\n state: InstanceState;\n context: ExecutionContext;\n persistence?: PersistenceType;\n metadata: WorkflowMetadata;\n}\nexport interface NodeState {\n status: NodeStatus;\n input?: { [key: string]: any};\n output?: { [key: string]: any};\n /**\n * Variables map[string]interface{} `json:\"variables,omitempty\"`\n */\n error?: string;\n startTime?: string /* RFC3339 */;\n endTime?: string /* RFC3339 */;\n retryCount: number /* int */;\n nextRetryAt?: string /* RFC3339 */;\n}\nexport interface EdgeState {\n status: EdgeStatus;\n timestamp: string /* RFC3339 */;\n error?: string;\n}\nexport interface ExecutionPathEntry {\n nodeId: string;\n edgeId: string;\n type: string; // node_enter, node_exit, edge_traverse\n timestamp: string /* RFC3339 */;\n data?: { [key: string]: any};\n}\nexport interface ExecutionError {\n nodeId?: string;\n edgeId?: string;\n error: string;\n timestamp: string /* RFC3339 */;\n retryable: boolean;\n}\nexport type InstanceStatus = string;\nexport const InstanceStatusNew: InstanceStatus = \"NEW\";\nexport const InstanceStatusRunning: InstanceStatus = \"RUNNING\";\nexport const InstanceStatusWaiting: InstanceStatus = \"WAITING\";\nexport const InstanceStatusPaused: InstanceStatus = \"PAUSED\";\nexport const InstanceStatusCompleted: InstanceStatus = \"COMPLETED\";\nexport const InstanceStatusFailed: InstanceStatus = \"FAILED\";\nexport interface NodeInstance {\n nodeId: string;\n status: NodeStatus;\n input?: { [key: string]: any};\n output?: { [key: string]: any};\n error?: string;\n startTime?: string /* RFC3339 */;\n endTime?: string /* RFC3339 */;\n retryCount: number /* int */;\n nextRetryAt?: string /* RFC3339 */;\n}\nexport type NodeStatus = string;\nexport const NodeStatusPending: NodeStatus = \"PENDING\";\nexport const NodeStatusRunning: NodeStatus = \"RUNNING\";\nexport const NodeStatusCompleted: NodeStatus = \"COMPLETED\";\nexport const NodeStatusFailed: NodeStatus = \"FAILED\";\nexport const NodeStatusWaiting: NodeStatus = \"WAITING\";\nexport const NodeStatusSkipped: NodeStatus = \"SKIPPED\";\nexport type EdgeStatus = string;\nexport const EdgeStatusPending: EdgeStatus = \"PENDING\";\nexport const EdgeStatusCompleted: EdgeStatus = \"COMPLETED\";\nexport const EdgeStatusSkipped: EdgeStatus = \"SKIPPED\";\n/**\n * WorkflowDefinitionInfo holds summarized info about an active workflow definition\n * Used by schedulers and services that need to process workflows without full definition details\n */\nexport interface WorkflowDefinitionInfo {\n id: string; // Workflow definition ID\n orgId: string; // Organization ID\n title: string;\n type: string; // e.g., \"productivity\", \"entity\"\n category: string; // e.g., \"email\" (from metadata)\n isActive: boolean;\n createdBy: string; // User who created this workflow\n /**\n * User config from definition.variables.defaultValues (workflow-specific)\n */\n provider?: string; // e.g., \"google\" or \"microsoft\" for email workflows\n userEmail?: string; // User's email address\n userId?: string; // User ID who owns this workflow\n}\n","// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: subjects.go\n\nexport const WorkflowDefinitionCreate = \"workflow.definition.create\";\nexport const WorkflowDefinitionCreated = \"workflow.definition.created\";\nexport const WorkflowDefinitionUpdate = \"workflow.definition.update\";\nexport const WorkflowDefinitionUpdated = \"workflow.definition.updated\";\nexport const WorkflowDefinitionGet = \"workflow.definition.get\";\nexport const WorkflowDefinitionGetServer = \"workflow.definition.get.server\";\nexport const WorkflowDefinitionGetByTitle = \"workflow.definition.get.by.title\";\nexport const WorkflowDefinitionList = \"workflow.definition.list\";\nexport const WorkflowDefinitionDelete = \"workflow.definition.delete\";\nexport const WorkflowDefinitionDeleted = \"workflow.definition.deleted\";\nexport const WorkflowInstanceCreate = \"workflow.instance.create\";\nexport const WorkflowInstanceExecuteNode = \"workflow.instance.execute.node\";\nexport const WorkflowInstanceResumeNode = \"workflow.instance.resume.node\";\nexport const WorkflowInstanceExecuteNodeServer = \"workflow.instance.execute.node.server\";\nexport const WorkflowInstanceResumeNodeServer = \"workflow.instance.resume.node.server\";\nexport const WorkflowInstanceExecuteNodeLean = \"workflow.instance.execute.node.lean\";\nexport const WorkflowInstanceExecuteNodeLeanServer = \"workflow.instance.execute.node.lean.server\";\nexport const WorkflowInstanceGet = \"workflow.instance.get\";\nexport const WorkflowInstanceGetByStateVariable = \"workflow.instance.get.by.state.variable\";\nexport const WorkflowInstanceList = \"workflow.instance.list\";\nexport const WorkflowInstanceUpdate = \"workflow.instance.update\";\nexport const WorkflowInstanceUpdated = \"workflow.instance.updated\";\nexport const WorkflowInstanceUpdateNodeMetadata = \"workflow.instance.update.node.metadata\";\n/**\n * Template management\n */\nexport const WorkflowTemplateList = \"workflow.template.list\";\nexport const WorkflowTemplateGet = \"workflow.template.get\";\nexport const WorkflowTemplateInstantiate = \"workflow.template.instantiate\";\n/**\n * Schedule management\n */\nexport const WorkflowScheduleCreate = \"workflow.schedule.create\";\nexport const WorkflowScheduleUpdate = \"workflow.schedule.update\";\nexport const WorkflowScheduleDelete = \"workflow.schedule.delete\";\nexport const WorkflowScheduleList = \"workflow.schedule.list\";\nexport const WorkflowSchedulePause = \"workflow.schedule.pause\";\nexport const WorkflowScheduleResume = \"workflow.schedule.resume\";\n/**\n * Trigger management\n */\nexport const WorkflowTriggerRegister = \"workflow.trigger.register\";\nexport const WorkflowTriggerPause = \"workflow.trigger.pause\";\nexport const WorkflowTriggerResume = \"workflow.trigger.resume\";\nexport const WorkflowTriggerStatus = \"workflow.trigger.status\";\nexport const WorkflowTriggerFired = \"workflow.trigger.fired\";\n/**\n * Execution events\n */\nexport const WorkflowExecutionStarted = \"workflow.execution.started\";\nexport const WorkflowExecutionCompleted = \"workflow.execution.completed\";\nexport const WorkflowExecutionFailed = \"workflow.execution.failed\";\n"],"mappings":";;;AAYO,IAAM,kBAA4B;AAClC,IAAM,sBAAgC;AACtC,IAAM,gBAA0B;AAChC,IAAM,iBAA2B;AACjC,IAAM,gBAA0B;AAChC,IAAM,eAAyB;AAC/B,IAAM,mBAA6B;AACnC,IAAM,gBAA0B;AAChC,IAAM,eAAyB;AAC/B,IAAM,sBAAgC;AACtC,IAAM,gBAA0B;AAChC,IAAM,kBAA4B;AAClC,IAAM,iBAA2B;AACjC,IAAM,qBAA+B;AACrC,IAAM,6BAAuC;AAS7C,IAAM,0BAAuC;AAC7C,IAAM,wCAAqD;AAC3D,IAAM,wCAAqD;AAC3D,IAAM,wCAAqD;AAC3D,IAAM,+BAA4C;AAClD,IAAM,8BAA2C;AACjD,IAAM,+BAA4C;AAClD,IAAM,oCAAiD;AAIvD,IAAM,+BAA4C;AAClD,IAAM,iCAA8C;AACpD,IAAM,kCA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M,uBAAuB;AAC7B,IAAM,wBAAwB;AAC9B,IAAM,wBAAwB;AAC9B,IAAM,uBAAuB;AAI7B,IAAM,2BAA2B;AACjC,IAAM,6BAA6B;AACnC,IAAM,0BAA0B;","names":[]}
@@ -1,4 +1,4 @@
1
- import { JSONSchema } from '@elqnt/types';
1
+ import { JSONSchema, ResponseMetadata } from '@elqnt/types';
2
2
 
3
3
  type NodeSubTypeTS = "actionAIClassify" | "actionAIExtractData" | "actionAISummarize" | "actionApiCall" | "actionAssignSLAPolicy" | "actionCreateEntityRecord" | "actionDeleteEntityRecord" | "actionDocumentExtraction" | "actionNatsRequest" | "actionQueryEntityRecords" | "actionSendEmail" | "actionSendSMS" | "actionSetVariables" | "actionUpdateEntityRecord" | "agentChat" | "agentCustomResponse" | "agentIntentDetector" | "agentKnowledgeGraph" | "agentOpenTicket" | "agentStructuredOutput" | "agentTransferToHuman" | "delay" | "humanActionApproval" | "humanActionAssignment" | "humanActionDataEntry" | "humanActionReview" | "integrationCreateEvent" | "integrationGetDriveFile" | "integrationSearchCalendar" | "integrationSearchDrive" | "integrationSearchEmails" | "integrationSendEmail" | "logicFor" | "logicIf" | "logicSwitch" | "triggerCalendarEvent" | "triggerDriveFileChanged" | "triggerEmailReceived" | "triggerEntityRecordCreated" | "triggerEntityRecordDeleted" | "triggerEntityRecordUpdated" | "triggerEscalation" | "triggerSLABreach" | "triggerSLAWarning" | "triggerSchedule" | "triggerStart" | "triggerWebhookReceived";
4
4
  interface NodeSubTypeInfo {
@@ -142,6 +142,7 @@ declare const NodeTypeTimer: NodeType;
142
142
  declare const NodeTypeSubflow: NodeType;
143
143
  declare const NodeTypeCustom: NodeType;
144
144
  declare const NodeTypeAccounting: NodeType;
145
+ declare const NodeTypeDocumentExtraction: NodeType;
145
146
  /**
146
147
  * NodeSubType represents the subtype of a workflow node
147
148
  * All node subtypes are unified under this single type
@@ -337,12 +338,6 @@ interface Intent {
337
338
  name: string;
338
339
  description: string;
339
340
  }
340
- interface ResponseMetadata {
341
- success: boolean;
342
- timestamp: string;
343
- message?: string;
344
- error?: string;
345
- }
346
341
  interface Metadata {
347
342
  createdBy: string;
348
343
  createdAt: string;
@@ -847,4 +842,4 @@ declare const WorkflowExecutionStarted = "workflow.execution.started";
847
842
  declare const WorkflowExecutionCompleted = "workflow.execution.completed";
848
843
  declare const WorkflowExecutionFailed = "workflow.execution.failed";
849
844
 
850
- export { NodeSubTypeActionSetVariables as $, NodeSubTypeHumanActionDataEntry as A, NodeSubTypeHumanActionAssignment as B, NodeSubTypeAgentChat as C, NodeSubTypeAgentIntentDetector as D, NodeSubTypeAgentKnowledgeGraph as E, NodeSubTypeAgentClientApiCall as F, NodeSubTypeAgentTransferToHuman as G, NodeSubTypeAgentOpenTicket as H, NodeSubTypeAgentApiIntegration as I, NodeSubTypeAgentCustomResponse as J, NodeSubTypeAgentStructuredOutput as K, NodeSubTypeActionApiCall as L, NodeSubTypeActionDocumentExtraction as M, type NodeType as N, NodeSubTypeActionSendEmail as O, NodeSubTypeActionSendSMS as P, NodeSubTypeActionGenerateDocument as Q, NodeSubTypeActionProcessPayment as R, NodeSubTypeActionCreateEntityRecord as S, NodeSubTypeActionUpdateEntityRecord as T, NodeSubTypeActionDeleteEntityRecord as U, NodeSubTypeActionMergeEntityRecords as V, type WorkflowDefinition as W, NodeSubTypeActionAssignSLAPolicy as X, NodeSubTypeActionChangeSLAStatus as Y, NodeSubTypeActionEscalateSLA as Z, NodeSubTypeActionCSATSurvey as _, type WorkflowInstance as a, type NodeInput as a$, NodeSubTypeActionQueryEntityRecords as a0, NodeSubTypeActionNatsRequest as a1, NodeSubTypeLogicIf as a2, NodeSubTypeLogicSwitch as a3, NodeSubTypeLogicFor as a4, NodeSubTypeLogicParallel as a5, NodeSubTypeLoopData as a6, NodeSubTypeDelay as a7, NodeSubTypeDataFilter as a8, NodeSubTypeDataMap as a9, WorkflowTypeProductivity as aA, type NodeDefinition as aB, type EdgeTypeDefinition as aC, type WorkflowTypeDefinition as aD, type LogicPath as aE, type Intent as aF, type ResponseMetadata as aG, type Metadata as aH, type CreateWorkflowDefinitionRequest as aI, type UpdateWorkflowDefinitionRequest as aJ, type WorkflowDefinitionResponse as aK, type GetWorkflowDefinitionRequest as aL, type GetWorkflowDefinitionByTitleRequest as aM, type ListWorkflowDefinitionsRequest as aN, type ListWorkflowDefinitionsResponse as aO, type DeleteWorkflowDefinitionRequest as aP, type WorkflowVariables as aQ, type WorkflowRule as aR, type RuleLevel as aS, RuleLevelError as aT, RuleLevelWarning as aU, RuleLevelInfo as aV, type WorkflowPermissions as aW, type WorkflowMetadata as aX, type PersistenceType as aY, PersistenceTypeEphemeral as aZ, PersistenceTypePermanent as a_, NodeSubTypeDataCalculate as aa, NodeSubTypeDataValidate as ab, NodeSubTypeTimerDelay as ac, NodeSubTypeTimerSchedule as ad, NodeSubTypeTimerBusinessHours as ae, type ExpressionType as af, ExpressionTypeFilter as ag, ExpressionTypeJavaScript as ah, ExpressionTypeTemplate as ai, ExpressionTypeDSL as aj, ExpressionTypeRules as ak, type EdgeType as al, EdgeTypeNormal as am, EdgeTypeLoopBack as an, EdgeTypeError as ao, EdgeTypeDefault as ap, EdgeTypeParallel as aq, EdgeTypeConditional as ar, EdgeTypeMerge as as, EdgeTypeCompensation as at, EdgeTypeTimeout as au, type WorkflowType as av, WorkflowTypeEntity as aw, WorkflowTypeDocument as ax, WorkflowTypeChat as ay, WorkflowTypeAgent as az, NodeTypeTrigger as b, WorkflowDefinitionDeleted as b$, type NodeOutput as b0, type NodeConfig as b1, type WorkflowNode as b2, type NodeSettings as b3, type ExecutionConfig as b4, type RetryConfig as b5, type CacheConfig as b6, type ExpressionConfig as b7, type WorkflowEdge as b8, type TimeoutConfig as b9, InstanceStatusRunning as bA, InstanceStatusWaiting as bB, InstanceStatusPaused as bC, InstanceStatusCompleted as bD, InstanceStatusFailed as bE, type NodeInstance as bF, type NodeStatus as bG, NodeStatusPending as bH, NodeStatusRunning as bI, NodeStatusCompleted as bJ, NodeStatusFailed as bK, NodeStatusWaiting as bL, NodeStatusSkipped as bM, type EdgeStatus as bN, EdgeStatusPending as bO, EdgeStatusCompleted as bP, EdgeStatusSkipped as bQ, type WorkflowDefinitionInfo as bR, WorkflowDefinitionCreate as bS, WorkflowDefinitionCreated as bT, WorkflowDefinitionUpdate as bU, WorkflowDefinitionUpdated as bV, WorkflowDefinitionGet as bW, WorkflowDefinitionGetServer as bX, WorkflowDefinitionGetByTitle as bY, WorkflowDefinitionList as bZ, WorkflowDefinitionDelete as b_, type TimeoutAction as ba, TimeoutActionFail as bb, TimeoutActionSkip as bc, TimeoutActionRetry as bd, TimeoutActionAlt as be, type CreateWorkflowInstanceRequest as bf, type WorkflowInstanceResponse as bg, type WorkflowInstanceExecuteNodeRequest as bh, type WorkflowInstanceResumeNodeRequest as bi, type WorkflowInstanceExecuteNodeLeanRequest as bj, type UpdateInstanceNodeMetadataRequest as bk, type GetWorkflowInstanceRequest as bl, type GetInstanceByStateVariableRequest as bm, type ListWorkflowInstancesRequest as bn, type ListWorkflowInstancesResponse as bo, type UpdateInstanceStatusRequest as bp, type RetryNodeRequest as bq, type ListInstancesOptions as br, type InstanceState as bs, type ExecutionContext as bt, type NodeState as bu, type EdgeState as bv, type ExecutionPathEntry as bw, type ExecutionError as bx, type InstanceStatus as by, InstanceStatusNew as bz, NodeTypeHumanAction as c, type WorkflowEdgeTypeOptionTS as c$, WorkflowInstanceCreate as c0, WorkflowInstanceExecuteNode as c1, WorkflowInstanceResumeNode as c2, WorkflowInstanceExecuteNodeServer as c3, WorkflowInstanceResumeNodeServer as c4, WorkflowInstanceExecuteNodeLean as c5, WorkflowInstanceExecuteNodeLeanServer as c6, WorkflowInstanceGet as c7, WorkflowInstanceGetByStateVariable as c8, WorkflowInstanceList as c9, AgentNodeSubTypes as cA, ActionNodeSubTypes as cB, LogicNodeSubTypes as cC, DelayNodeSubTypes as cD, ParallelNodeSubTypes as cE, DataNodeSubTypes as cF, TimerNodeSubTypes as cG, LoopNodeSubTypes as cH, AccountingNodeSubTypes as cI, type TriggerNodeSubType as cJ, type HumanActionNodeSubType as cK, type AgentNodeSubType as cL, type ActionNodeSubType as cM, type LogicNodeSubType as cN, type DelayNodeSubType as cO, type DataNodeSubType as cP, type TimerNodeSubType as cQ, type LoopNodeSubType as cR, type ParallelNodeSubType as cS, type AccountingNodeSubType as cT, type WorkflowNodeSubTypeTS as cU, WorkflowNodeTypes as cV, type WorkflowNodeTypeTS as cW, type WorkflowNodeTypeOptionTS as cX, type NodeCategory as cY, WorkflowEdgeTypes as cZ, type WorkflowEdgeTypeTS as c_, WorkflowInstanceUpdate as ca, WorkflowInstanceUpdated as cb, WorkflowInstanceUpdateNodeMetadata as cc, WorkflowTemplateList as cd, WorkflowTemplateGet as ce, WorkflowTemplateInstantiate as cf, WorkflowScheduleCreate as cg, WorkflowScheduleUpdate as ch, WorkflowScheduleDelete as ci, WorkflowScheduleList as cj, WorkflowSchedulePause as ck, WorkflowScheduleResume as cl, WorkflowTriggerRegister as cm, WorkflowTriggerPause as cn, WorkflowTriggerResume as co, WorkflowTriggerStatus as cp, WorkflowTriggerFired as cq, WorkflowExecutionStarted as cr, WorkflowExecutionCompleted as cs, WorkflowExecutionFailed as ct, type NodeSubTypeTS as cu, type NodeSubTypeInfo as cv, nodeDefinitions as cw, nodeSchemas as cx, TriggerNodeSubTypes as cy, HumanActionNodeSubTypes as cz, NodeTypeAgent as d, WorkflowTypes as d0, type WorkflowTypeTS as d1, type WorkflowTypeOptionTS as d2, NodeTypeAction as e, NodeTypeLogic as f, NodeTypeLoop as g, NodeTypeParallel as h, NodeTypeDelay as i, NodeTypeData as j, NodeTypeIntegration as k, NodeTypeTimer as l, NodeTypeSubflow as m, NodeTypeCustom as n, NodeTypeAccounting as o, type NodeSubType as p, NodeSubTypeTriggerStart as q, NodeSubTypeTriggerEntityRecordCreated as r, NodeSubTypeTriggerEntityRecordUpdated as s, NodeSubTypeTriggerEntityRecordDeleted as t, NodeSubTypeTriggerSLAWarning as u, NodeSubTypeTriggerSLABreach as v, NodeSubTypeTriggerEscalation as w, NodeSubTypeTriggerWebhookReceived as x, NodeSubTypeHumanActionReview as y, NodeSubTypeHumanActionApproval as z };
845
+ export { NodeSubTypeActionCSATSurvey as $, NodeSubTypeHumanActionApproval as A, NodeSubTypeHumanActionDataEntry as B, NodeSubTypeHumanActionAssignment as C, NodeSubTypeAgentChat as D, NodeSubTypeAgentIntentDetector as E, NodeSubTypeAgentKnowledgeGraph as F, NodeSubTypeAgentClientApiCall as G, NodeSubTypeAgentTransferToHuman as H, NodeSubTypeAgentOpenTicket as I, NodeSubTypeAgentApiIntegration as J, NodeSubTypeAgentCustomResponse as K, NodeSubTypeAgentStructuredOutput as L, NodeSubTypeActionApiCall as M, type NodeType as N, NodeSubTypeActionDocumentExtraction as O, NodeSubTypeActionSendEmail as P, NodeSubTypeActionSendSMS as Q, NodeSubTypeActionGenerateDocument as R, NodeSubTypeActionProcessPayment as S, NodeSubTypeActionCreateEntityRecord as T, NodeSubTypeActionUpdateEntityRecord as U, NodeSubTypeActionDeleteEntityRecord as V, type WorkflowDefinition as W, NodeSubTypeActionMergeEntityRecords as X, NodeSubTypeActionAssignSLAPolicy as Y, NodeSubTypeActionChangeSLAStatus as Z, NodeSubTypeActionEscalateSLA as _, type WorkflowInstance as a, type NodeInput as a$, NodeSubTypeActionSetVariables as a0, NodeSubTypeActionQueryEntityRecords as a1, NodeSubTypeActionNatsRequest as a2, NodeSubTypeLogicIf as a3, NodeSubTypeLogicSwitch as a4, NodeSubTypeLogicFor as a5, NodeSubTypeLogicParallel as a6, NodeSubTypeLoopData as a7, NodeSubTypeDelay as a8, NodeSubTypeDataFilter as a9, WorkflowTypeAgent as aA, WorkflowTypeProductivity as aB, type NodeDefinition as aC, type EdgeTypeDefinition as aD, type WorkflowTypeDefinition as aE, type LogicPath as aF, type Intent as aG, type Metadata as aH, type CreateWorkflowDefinitionRequest as aI, type UpdateWorkflowDefinitionRequest as aJ, type WorkflowDefinitionResponse as aK, type GetWorkflowDefinitionRequest as aL, type GetWorkflowDefinitionByTitleRequest as aM, type ListWorkflowDefinitionsRequest as aN, type ListWorkflowDefinitionsResponse as aO, type DeleteWorkflowDefinitionRequest as aP, type WorkflowVariables as aQ, type WorkflowRule as aR, type RuleLevel as aS, RuleLevelError as aT, RuleLevelWarning as aU, RuleLevelInfo as aV, type WorkflowPermissions as aW, type WorkflowMetadata as aX, type PersistenceType as aY, PersistenceTypeEphemeral as aZ, PersistenceTypePermanent as a_, NodeSubTypeDataMap as aa, NodeSubTypeDataCalculate as ab, NodeSubTypeDataValidate as ac, NodeSubTypeTimerDelay as ad, NodeSubTypeTimerSchedule as ae, NodeSubTypeTimerBusinessHours as af, type ExpressionType as ag, ExpressionTypeFilter as ah, ExpressionTypeJavaScript as ai, ExpressionTypeTemplate as aj, ExpressionTypeDSL as ak, ExpressionTypeRules as al, type EdgeType as am, EdgeTypeNormal as an, EdgeTypeLoopBack as ao, EdgeTypeError as ap, EdgeTypeDefault as aq, EdgeTypeParallel as ar, EdgeTypeConditional as as, EdgeTypeMerge as at, EdgeTypeCompensation as au, EdgeTypeTimeout as av, type WorkflowType as aw, WorkflowTypeEntity as ax, WorkflowTypeDocument as ay, WorkflowTypeChat as az, NodeTypeTrigger as b, WorkflowDefinitionDeleted as b$, type NodeOutput as b0, type NodeConfig as b1, type WorkflowNode as b2, type NodeSettings as b3, type ExecutionConfig as b4, type RetryConfig as b5, type CacheConfig as b6, type ExpressionConfig as b7, type WorkflowEdge as b8, type TimeoutConfig as b9, InstanceStatusRunning as bA, InstanceStatusWaiting as bB, InstanceStatusPaused as bC, InstanceStatusCompleted as bD, InstanceStatusFailed as bE, type NodeInstance as bF, type NodeStatus as bG, NodeStatusPending as bH, NodeStatusRunning as bI, NodeStatusCompleted as bJ, NodeStatusFailed as bK, NodeStatusWaiting as bL, NodeStatusSkipped as bM, type EdgeStatus as bN, EdgeStatusPending as bO, EdgeStatusCompleted as bP, EdgeStatusSkipped as bQ, type WorkflowDefinitionInfo as bR, WorkflowDefinitionCreate as bS, WorkflowDefinitionCreated as bT, WorkflowDefinitionUpdate as bU, WorkflowDefinitionUpdated as bV, WorkflowDefinitionGet as bW, WorkflowDefinitionGetServer as bX, WorkflowDefinitionGetByTitle as bY, WorkflowDefinitionList as bZ, WorkflowDefinitionDelete as b_, type TimeoutAction as ba, TimeoutActionFail as bb, TimeoutActionSkip as bc, TimeoutActionRetry as bd, TimeoutActionAlt as be, type CreateWorkflowInstanceRequest as bf, type WorkflowInstanceResponse as bg, type WorkflowInstanceExecuteNodeRequest as bh, type WorkflowInstanceResumeNodeRequest as bi, type WorkflowInstanceExecuteNodeLeanRequest as bj, type UpdateInstanceNodeMetadataRequest as bk, type GetWorkflowInstanceRequest as bl, type GetInstanceByStateVariableRequest as bm, type ListWorkflowInstancesRequest as bn, type ListWorkflowInstancesResponse as bo, type UpdateInstanceStatusRequest as bp, type RetryNodeRequest as bq, type ListInstancesOptions as br, type InstanceState as bs, type ExecutionContext as bt, type NodeState as bu, type EdgeState as bv, type ExecutionPathEntry as bw, type ExecutionError as bx, type InstanceStatus as by, InstanceStatusNew as bz, NodeTypeHumanAction as c, type WorkflowEdgeTypeOptionTS as c$, WorkflowInstanceCreate as c0, WorkflowInstanceExecuteNode as c1, WorkflowInstanceResumeNode as c2, WorkflowInstanceExecuteNodeServer as c3, WorkflowInstanceResumeNodeServer as c4, WorkflowInstanceExecuteNodeLean as c5, WorkflowInstanceExecuteNodeLeanServer as c6, WorkflowInstanceGet as c7, WorkflowInstanceGetByStateVariable as c8, WorkflowInstanceList as c9, AgentNodeSubTypes as cA, ActionNodeSubTypes as cB, LogicNodeSubTypes as cC, DelayNodeSubTypes as cD, ParallelNodeSubTypes as cE, DataNodeSubTypes as cF, TimerNodeSubTypes as cG, LoopNodeSubTypes as cH, AccountingNodeSubTypes as cI, type TriggerNodeSubType as cJ, type HumanActionNodeSubType as cK, type AgentNodeSubType as cL, type ActionNodeSubType as cM, type LogicNodeSubType as cN, type DelayNodeSubType as cO, type DataNodeSubType as cP, type TimerNodeSubType as cQ, type LoopNodeSubType as cR, type ParallelNodeSubType as cS, type AccountingNodeSubType as cT, type WorkflowNodeSubTypeTS as cU, WorkflowNodeTypes as cV, type WorkflowNodeTypeTS as cW, type WorkflowNodeTypeOptionTS as cX, type NodeCategory as cY, WorkflowEdgeTypes as cZ, type WorkflowEdgeTypeTS as c_, WorkflowInstanceUpdate as ca, WorkflowInstanceUpdated as cb, WorkflowInstanceUpdateNodeMetadata as cc, WorkflowTemplateList as cd, WorkflowTemplateGet as ce, WorkflowTemplateInstantiate as cf, WorkflowScheduleCreate as cg, WorkflowScheduleUpdate as ch, WorkflowScheduleDelete as ci, WorkflowScheduleList as cj, WorkflowSchedulePause as ck, WorkflowScheduleResume as cl, WorkflowTriggerRegister as cm, WorkflowTriggerPause as cn, WorkflowTriggerResume as co, WorkflowTriggerStatus as cp, WorkflowTriggerFired as cq, WorkflowExecutionStarted as cr, WorkflowExecutionCompleted as cs, WorkflowExecutionFailed as ct, type NodeSubTypeTS as cu, type NodeSubTypeInfo as cv, nodeDefinitions as cw, nodeSchemas as cx, TriggerNodeSubTypes as cy, HumanActionNodeSubTypes as cz, NodeTypeAgent as d, WorkflowTypes as d0, type WorkflowTypeTS as d1, type WorkflowTypeOptionTS as d2, NodeTypeAction as e, NodeTypeLogic as f, NodeTypeLoop as g, NodeTypeParallel as h, NodeTypeDelay as i, NodeTypeData as j, NodeTypeIntegration as k, NodeTypeTimer as l, NodeTypeSubflow as m, NodeTypeCustom as n, NodeTypeAccounting as o, NodeTypeDocumentExtraction as p, type NodeSubType as q, NodeSubTypeTriggerStart as r, NodeSubTypeTriggerEntityRecordCreated as s, NodeSubTypeTriggerEntityRecordUpdated as t, NodeSubTypeTriggerEntityRecordDeleted as u, NodeSubTypeTriggerSLAWarning as v, NodeSubTypeTriggerSLABreach as w, NodeSubTypeTriggerEscalation as x, NodeSubTypeTriggerWebhookReceived as y, NodeSubTypeHumanActionReview as z };
@@ -1,4 +1,4 @@
1
- import { JSONSchema } from '@elqnt/types';
1
+ import { JSONSchema, ResponseMetadata } from '@elqnt/types';
2
2
 
3
3
  type NodeSubTypeTS = "actionAIClassify" | "actionAIExtractData" | "actionAISummarize" | "actionApiCall" | "actionAssignSLAPolicy" | "actionCreateEntityRecord" | "actionDeleteEntityRecord" | "actionDocumentExtraction" | "actionNatsRequest" | "actionQueryEntityRecords" | "actionSendEmail" | "actionSendSMS" | "actionSetVariables" | "actionUpdateEntityRecord" | "agentChat" | "agentCustomResponse" | "agentIntentDetector" | "agentKnowledgeGraph" | "agentOpenTicket" | "agentStructuredOutput" | "agentTransferToHuman" | "delay" | "humanActionApproval" | "humanActionAssignment" | "humanActionDataEntry" | "humanActionReview" | "integrationCreateEvent" | "integrationGetDriveFile" | "integrationSearchCalendar" | "integrationSearchDrive" | "integrationSearchEmails" | "integrationSendEmail" | "logicFor" | "logicIf" | "logicSwitch" | "triggerCalendarEvent" | "triggerDriveFileChanged" | "triggerEmailReceived" | "triggerEntityRecordCreated" | "triggerEntityRecordDeleted" | "triggerEntityRecordUpdated" | "triggerEscalation" | "triggerSLABreach" | "triggerSLAWarning" | "triggerSchedule" | "triggerStart" | "triggerWebhookReceived";
4
4
  interface NodeSubTypeInfo {
@@ -142,6 +142,7 @@ declare const NodeTypeTimer: NodeType;
142
142
  declare const NodeTypeSubflow: NodeType;
143
143
  declare const NodeTypeCustom: NodeType;
144
144
  declare const NodeTypeAccounting: NodeType;
145
+ declare const NodeTypeDocumentExtraction: NodeType;
145
146
  /**
146
147
  * NodeSubType represents the subtype of a workflow node
147
148
  * All node subtypes are unified under this single type
@@ -337,12 +338,6 @@ interface Intent {
337
338
  name: string;
338
339
  description: string;
339
340
  }
340
- interface ResponseMetadata {
341
- success: boolean;
342
- timestamp: string;
343
- message?: string;
344
- error?: string;
345
- }
346
341
  interface Metadata {
347
342
  createdBy: string;
348
343
  createdAt: string;
@@ -847,4 +842,4 @@ declare const WorkflowExecutionStarted = "workflow.execution.started";
847
842
  declare const WorkflowExecutionCompleted = "workflow.execution.completed";
848
843
  declare const WorkflowExecutionFailed = "workflow.execution.failed";
849
844
 
850
- export { NodeSubTypeActionSetVariables as $, NodeSubTypeHumanActionDataEntry as A, NodeSubTypeHumanActionAssignment as B, NodeSubTypeAgentChat as C, NodeSubTypeAgentIntentDetector as D, NodeSubTypeAgentKnowledgeGraph as E, NodeSubTypeAgentClientApiCall as F, NodeSubTypeAgentTransferToHuman as G, NodeSubTypeAgentOpenTicket as H, NodeSubTypeAgentApiIntegration as I, NodeSubTypeAgentCustomResponse as J, NodeSubTypeAgentStructuredOutput as K, NodeSubTypeActionApiCall as L, NodeSubTypeActionDocumentExtraction as M, type NodeType as N, NodeSubTypeActionSendEmail as O, NodeSubTypeActionSendSMS as P, NodeSubTypeActionGenerateDocument as Q, NodeSubTypeActionProcessPayment as R, NodeSubTypeActionCreateEntityRecord as S, NodeSubTypeActionUpdateEntityRecord as T, NodeSubTypeActionDeleteEntityRecord as U, NodeSubTypeActionMergeEntityRecords as V, type WorkflowDefinition as W, NodeSubTypeActionAssignSLAPolicy as X, NodeSubTypeActionChangeSLAStatus as Y, NodeSubTypeActionEscalateSLA as Z, NodeSubTypeActionCSATSurvey as _, type WorkflowInstance as a, type NodeInput as a$, NodeSubTypeActionQueryEntityRecords as a0, NodeSubTypeActionNatsRequest as a1, NodeSubTypeLogicIf as a2, NodeSubTypeLogicSwitch as a3, NodeSubTypeLogicFor as a4, NodeSubTypeLogicParallel as a5, NodeSubTypeLoopData as a6, NodeSubTypeDelay as a7, NodeSubTypeDataFilter as a8, NodeSubTypeDataMap as a9, WorkflowTypeProductivity as aA, type NodeDefinition as aB, type EdgeTypeDefinition as aC, type WorkflowTypeDefinition as aD, type LogicPath as aE, type Intent as aF, type ResponseMetadata as aG, type Metadata as aH, type CreateWorkflowDefinitionRequest as aI, type UpdateWorkflowDefinitionRequest as aJ, type WorkflowDefinitionResponse as aK, type GetWorkflowDefinitionRequest as aL, type GetWorkflowDefinitionByTitleRequest as aM, type ListWorkflowDefinitionsRequest as aN, type ListWorkflowDefinitionsResponse as aO, type DeleteWorkflowDefinitionRequest as aP, type WorkflowVariables as aQ, type WorkflowRule as aR, type RuleLevel as aS, RuleLevelError as aT, RuleLevelWarning as aU, RuleLevelInfo as aV, type WorkflowPermissions as aW, type WorkflowMetadata as aX, type PersistenceType as aY, PersistenceTypeEphemeral as aZ, PersistenceTypePermanent as a_, NodeSubTypeDataCalculate as aa, NodeSubTypeDataValidate as ab, NodeSubTypeTimerDelay as ac, NodeSubTypeTimerSchedule as ad, NodeSubTypeTimerBusinessHours as ae, type ExpressionType as af, ExpressionTypeFilter as ag, ExpressionTypeJavaScript as ah, ExpressionTypeTemplate as ai, ExpressionTypeDSL as aj, ExpressionTypeRules as ak, type EdgeType as al, EdgeTypeNormal as am, EdgeTypeLoopBack as an, EdgeTypeError as ao, EdgeTypeDefault as ap, EdgeTypeParallel as aq, EdgeTypeConditional as ar, EdgeTypeMerge as as, EdgeTypeCompensation as at, EdgeTypeTimeout as au, type WorkflowType as av, WorkflowTypeEntity as aw, WorkflowTypeDocument as ax, WorkflowTypeChat as ay, WorkflowTypeAgent as az, NodeTypeTrigger as b, WorkflowDefinitionDeleted as b$, type NodeOutput as b0, type NodeConfig as b1, type WorkflowNode as b2, type NodeSettings as b3, type ExecutionConfig as b4, type RetryConfig as b5, type CacheConfig as b6, type ExpressionConfig as b7, type WorkflowEdge as b8, type TimeoutConfig as b9, InstanceStatusRunning as bA, InstanceStatusWaiting as bB, InstanceStatusPaused as bC, InstanceStatusCompleted as bD, InstanceStatusFailed as bE, type NodeInstance as bF, type NodeStatus as bG, NodeStatusPending as bH, NodeStatusRunning as bI, NodeStatusCompleted as bJ, NodeStatusFailed as bK, NodeStatusWaiting as bL, NodeStatusSkipped as bM, type EdgeStatus as bN, EdgeStatusPending as bO, EdgeStatusCompleted as bP, EdgeStatusSkipped as bQ, type WorkflowDefinitionInfo as bR, WorkflowDefinitionCreate as bS, WorkflowDefinitionCreated as bT, WorkflowDefinitionUpdate as bU, WorkflowDefinitionUpdated as bV, WorkflowDefinitionGet as bW, WorkflowDefinitionGetServer as bX, WorkflowDefinitionGetByTitle as bY, WorkflowDefinitionList as bZ, WorkflowDefinitionDelete as b_, type TimeoutAction as ba, TimeoutActionFail as bb, TimeoutActionSkip as bc, TimeoutActionRetry as bd, TimeoutActionAlt as be, type CreateWorkflowInstanceRequest as bf, type WorkflowInstanceResponse as bg, type WorkflowInstanceExecuteNodeRequest as bh, type WorkflowInstanceResumeNodeRequest as bi, type WorkflowInstanceExecuteNodeLeanRequest as bj, type UpdateInstanceNodeMetadataRequest as bk, type GetWorkflowInstanceRequest as bl, type GetInstanceByStateVariableRequest as bm, type ListWorkflowInstancesRequest as bn, type ListWorkflowInstancesResponse as bo, type UpdateInstanceStatusRequest as bp, type RetryNodeRequest as bq, type ListInstancesOptions as br, type InstanceState as bs, type ExecutionContext as bt, type NodeState as bu, type EdgeState as bv, type ExecutionPathEntry as bw, type ExecutionError as bx, type InstanceStatus as by, InstanceStatusNew as bz, NodeTypeHumanAction as c, type WorkflowEdgeTypeOptionTS as c$, WorkflowInstanceCreate as c0, WorkflowInstanceExecuteNode as c1, WorkflowInstanceResumeNode as c2, WorkflowInstanceExecuteNodeServer as c3, WorkflowInstanceResumeNodeServer as c4, WorkflowInstanceExecuteNodeLean as c5, WorkflowInstanceExecuteNodeLeanServer as c6, WorkflowInstanceGet as c7, WorkflowInstanceGetByStateVariable as c8, WorkflowInstanceList as c9, AgentNodeSubTypes as cA, ActionNodeSubTypes as cB, LogicNodeSubTypes as cC, DelayNodeSubTypes as cD, ParallelNodeSubTypes as cE, DataNodeSubTypes as cF, TimerNodeSubTypes as cG, LoopNodeSubTypes as cH, AccountingNodeSubTypes as cI, type TriggerNodeSubType as cJ, type HumanActionNodeSubType as cK, type AgentNodeSubType as cL, type ActionNodeSubType as cM, type LogicNodeSubType as cN, type DelayNodeSubType as cO, type DataNodeSubType as cP, type TimerNodeSubType as cQ, type LoopNodeSubType as cR, type ParallelNodeSubType as cS, type AccountingNodeSubType as cT, type WorkflowNodeSubTypeTS as cU, WorkflowNodeTypes as cV, type WorkflowNodeTypeTS as cW, type WorkflowNodeTypeOptionTS as cX, type NodeCategory as cY, WorkflowEdgeTypes as cZ, type WorkflowEdgeTypeTS as c_, WorkflowInstanceUpdate as ca, WorkflowInstanceUpdated as cb, WorkflowInstanceUpdateNodeMetadata as cc, WorkflowTemplateList as cd, WorkflowTemplateGet as ce, WorkflowTemplateInstantiate as cf, WorkflowScheduleCreate as cg, WorkflowScheduleUpdate as ch, WorkflowScheduleDelete as ci, WorkflowScheduleList as cj, WorkflowSchedulePause as ck, WorkflowScheduleResume as cl, WorkflowTriggerRegister as cm, WorkflowTriggerPause as cn, WorkflowTriggerResume as co, WorkflowTriggerStatus as cp, WorkflowTriggerFired as cq, WorkflowExecutionStarted as cr, WorkflowExecutionCompleted as cs, WorkflowExecutionFailed as ct, type NodeSubTypeTS as cu, type NodeSubTypeInfo as cv, nodeDefinitions as cw, nodeSchemas as cx, TriggerNodeSubTypes as cy, HumanActionNodeSubTypes as cz, NodeTypeAgent as d, WorkflowTypes as d0, type WorkflowTypeTS as d1, type WorkflowTypeOptionTS as d2, NodeTypeAction as e, NodeTypeLogic as f, NodeTypeLoop as g, NodeTypeParallel as h, NodeTypeDelay as i, NodeTypeData as j, NodeTypeIntegration as k, NodeTypeTimer as l, NodeTypeSubflow as m, NodeTypeCustom as n, NodeTypeAccounting as o, type NodeSubType as p, NodeSubTypeTriggerStart as q, NodeSubTypeTriggerEntityRecordCreated as r, NodeSubTypeTriggerEntityRecordUpdated as s, NodeSubTypeTriggerEntityRecordDeleted as t, NodeSubTypeTriggerSLAWarning as u, NodeSubTypeTriggerSLABreach as v, NodeSubTypeTriggerEscalation as w, NodeSubTypeTriggerWebhookReceived as x, NodeSubTypeHumanActionReview as y, NodeSubTypeHumanActionApproval as z };
845
+ export { NodeSubTypeActionCSATSurvey as $, NodeSubTypeHumanActionApproval as A, NodeSubTypeHumanActionDataEntry as B, NodeSubTypeHumanActionAssignment as C, NodeSubTypeAgentChat as D, NodeSubTypeAgentIntentDetector as E, NodeSubTypeAgentKnowledgeGraph as F, NodeSubTypeAgentClientApiCall as G, NodeSubTypeAgentTransferToHuman as H, NodeSubTypeAgentOpenTicket as I, NodeSubTypeAgentApiIntegration as J, NodeSubTypeAgentCustomResponse as K, NodeSubTypeAgentStructuredOutput as L, NodeSubTypeActionApiCall as M, type NodeType as N, NodeSubTypeActionDocumentExtraction as O, NodeSubTypeActionSendEmail as P, NodeSubTypeActionSendSMS as Q, NodeSubTypeActionGenerateDocument as R, NodeSubTypeActionProcessPayment as S, NodeSubTypeActionCreateEntityRecord as T, NodeSubTypeActionUpdateEntityRecord as U, NodeSubTypeActionDeleteEntityRecord as V, type WorkflowDefinition as W, NodeSubTypeActionMergeEntityRecords as X, NodeSubTypeActionAssignSLAPolicy as Y, NodeSubTypeActionChangeSLAStatus as Z, NodeSubTypeActionEscalateSLA as _, type WorkflowInstance as a, type NodeInput as a$, NodeSubTypeActionSetVariables as a0, NodeSubTypeActionQueryEntityRecords as a1, NodeSubTypeActionNatsRequest as a2, NodeSubTypeLogicIf as a3, NodeSubTypeLogicSwitch as a4, NodeSubTypeLogicFor as a5, NodeSubTypeLogicParallel as a6, NodeSubTypeLoopData as a7, NodeSubTypeDelay as a8, NodeSubTypeDataFilter as a9, WorkflowTypeAgent as aA, WorkflowTypeProductivity as aB, type NodeDefinition as aC, type EdgeTypeDefinition as aD, type WorkflowTypeDefinition as aE, type LogicPath as aF, type Intent as aG, type Metadata as aH, type CreateWorkflowDefinitionRequest as aI, type UpdateWorkflowDefinitionRequest as aJ, type WorkflowDefinitionResponse as aK, type GetWorkflowDefinitionRequest as aL, type GetWorkflowDefinitionByTitleRequest as aM, type ListWorkflowDefinitionsRequest as aN, type ListWorkflowDefinitionsResponse as aO, type DeleteWorkflowDefinitionRequest as aP, type WorkflowVariables as aQ, type WorkflowRule as aR, type RuleLevel as aS, RuleLevelError as aT, RuleLevelWarning as aU, RuleLevelInfo as aV, type WorkflowPermissions as aW, type WorkflowMetadata as aX, type PersistenceType as aY, PersistenceTypeEphemeral as aZ, PersistenceTypePermanent as a_, NodeSubTypeDataMap as aa, NodeSubTypeDataCalculate as ab, NodeSubTypeDataValidate as ac, NodeSubTypeTimerDelay as ad, NodeSubTypeTimerSchedule as ae, NodeSubTypeTimerBusinessHours as af, type ExpressionType as ag, ExpressionTypeFilter as ah, ExpressionTypeJavaScript as ai, ExpressionTypeTemplate as aj, ExpressionTypeDSL as ak, ExpressionTypeRules as al, type EdgeType as am, EdgeTypeNormal as an, EdgeTypeLoopBack as ao, EdgeTypeError as ap, EdgeTypeDefault as aq, EdgeTypeParallel as ar, EdgeTypeConditional as as, EdgeTypeMerge as at, EdgeTypeCompensation as au, EdgeTypeTimeout as av, type WorkflowType as aw, WorkflowTypeEntity as ax, WorkflowTypeDocument as ay, WorkflowTypeChat as az, NodeTypeTrigger as b, WorkflowDefinitionDeleted as b$, type NodeOutput as b0, type NodeConfig as b1, type WorkflowNode as b2, type NodeSettings as b3, type ExecutionConfig as b4, type RetryConfig as b5, type CacheConfig as b6, type ExpressionConfig as b7, type WorkflowEdge as b8, type TimeoutConfig as b9, InstanceStatusRunning as bA, InstanceStatusWaiting as bB, InstanceStatusPaused as bC, InstanceStatusCompleted as bD, InstanceStatusFailed as bE, type NodeInstance as bF, type NodeStatus as bG, NodeStatusPending as bH, NodeStatusRunning as bI, NodeStatusCompleted as bJ, NodeStatusFailed as bK, NodeStatusWaiting as bL, NodeStatusSkipped as bM, type EdgeStatus as bN, EdgeStatusPending as bO, EdgeStatusCompleted as bP, EdgeStatusSkipped as bQ, type WorkflowDefinitionInfo as bR, WorkflowDefinitionCreate as bS, WorkflowDefinitionCreated as bT, WorkflowDefinitionUpdate as bU, WorkflowDefinitionUpdated as bV, WorkflowDefinitionGet as bW, WorkflowDefinitionGetServer as bX, WorkflowDefinitionGetByTitle as bY, WorkflowDefinitionList as bZ, WorkflowDefinitionDelete as b_, type TimeoutAction as ba, TimeoutActionFail as bb, TimeoutActionSkip as bc, TimeoutActionRetry as bd, TimeoutActionAlt as be, type CreateWorkflowInstanceRequest as bf, type WorkflowInstanceResponse as bg, type WorkflowInstanceExecuteNodeRequest as bh, type WorkflowInstanceResumeNodeRequest as bi, type WorkflowInstanceExecuteNodeLeanRequest as bj, type UpdateInstanceNodeMetadataRequest as bk, type GetWorkflowInstanceRequest as bl, type GetInstanceByStateVariableRequest as bm, type ListWorkflowInstancesRequest as bn, type ListWorkflowInstancesResponse as bo, type UpdateInstanceStatusRequest as bp, type RetryNodeRequest as bq, type ListInstancesOptions as br, type InstanceState as bs, type ExecutionContext as bt, type NodeState as bu, type EdgeState as bv, type ExecutionPathEntry as bw, type ExecutionError as bx, type InstanceStatus as by, InstanceStatusNew as bz, NodeTypeHumanAction as c, type WorkflowEdgeTypeOptionTS as c$, WorkflowInstanceCreate as c0, WorkflowInstanceExecuteNode as c1, WorkflowInstanceResumeNode as c2, WorkflowInstanceExecuteNodeServer as c3, WorkflowInstanceResumeNodeServer as c4, WorkflowInstanceExecuteNodeLean as c5, WorkflowInstanceExecuteNodeLeanServer as c6, WorkflowInstanceGet as c7, WorkflowInstanceGetByStateVariable as c8, WorkflowInstanceList as c9, AgentNodeSubTypes as cA, ActionNodeSubTypes as cB, LogicNodeSubTypes as cC, DelayNodeSubTypes as cD, ParallelNodeSubTypes as cE, DataNodeSubTypes as cF, TimerNodeSubTypes as cG, LoopNodeSubTypes as cH, AccountingNodeSubTypes as cI, type TriggerNodeSubType as cJ, type HumanActionNodeSubType as cK, type AgentNodeSubType as cL, type ActionNodeSubType as cM, type LogicNodeSubType as cN, type DelayNodeSubType as cO, type DataNodeSubType as cP, type TimerNodeSubType as cQ, type LoopNodeSubType as cR, type ParallelNodeSubType as cS, type AccountingNodeSubType as cT, type WorkflowNodeSubTypeTS as cU, WorkflowNodeTypes as cV, type WorkflowNodeTypeTS as cW, type WorkflowNodeTypeOptionTS as cX, type NodeCategory as cY, WorkflowEdgeTypes as cZ, type WorkflowEdgeTypeTS as c_, WorkflowInstanceUpdate as ca, WorkflowInstanceUpdated as cb, WorkflowInstanceUpdateNodeMetadata as cc, WorkflowTemplateList as cd, WorkflowTemplateGet as ce, WorkflowTemplateInstantiate as cf, WorkflowScheduleCreate as cg, WorkflowScheduleUpdate as ch, WorkflowScheduleDelete as ci, WorkflowScheduleList as cj, WorkflowSchedulePause as ck, WorkflowScheduleResume as cl, WorkflowTriggerRegister as cm, WorkflowTriggerPause as cn, WorkflowTriggerResume as co, WorkflowTriggerStatus as cp, WorkflowTriggerFired as cq, WorkflowExecutionStarted as cr, WorkflowExecutionCompleted as cs, WorkflowExecutionFailed as ct, type NodeSubTypeTS as cu, type NodeSubTypeInfo as cv, nodeDefinitions as cw, nodeSchemas as cx, TriggerNodeSubTypes as cy, HumanActionNodeSubTypes as cz, NodeTypeAgent as d, WorkflowTypes as d0, type WorkflowTypeTS as d1, type WorkflowTypeOptionTS as d2, NodeTypeAction as e, NodeTypeLogic as f, NodeTypeLoop as g, NodeTypeParallel as h, NodeTypeDelay as i, NodeTypeData as j, NodeTypeIntegration as k, NodeTypeTimer as l, NodeTypeSubflow as m, NodeTypeCustom as n, NodeTypeAccounting as o, NodeTypeDocumentExtraction as p, type NodeSubType as q, NodeSubTypeTriggerStart as r, NodeSubTypeTriggerEntityRecordCreated as s, NodeSubTypeTriggerEntityRecordUpdated as t, NodeSubTypeTriggerEntityRecordDeleted as u, NodeSubTypeTriggerSLAWarning as v, NodeSubTypeTriggerSLABreach as w, NodeSubTypeTriggerEscalation as x, NodeSubTypeTriggerWebhookReceived as y, NodeSubTypeHumanActionReview as z };