@elqnt/workflow 1.0.7 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-CZAV6SMB.mjs +305 -0
- package/dist/chunk-CZAV6SMB.mjs.map +1 -0
- package/dist/chunk-GYLRUX77.js +305 -0
- package/dist/chunk-GYLRUX77.js.map +1 -0
- package/dist/index-BDCA9Cs7.d.mts +850 -0
- package/dist/index-BDCA9Cs7.d.ts +850 -0
- package/dist/index.d.mts +3 -890
- package/dist/index.d.ts +3 -890
- package/dist/index.js +482 -1148
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +151 -617
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.mts +2 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +302 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/index.mjs +302 -0
- package/dist/models/index.mjs.map +1 -0
- package/package.json +10 -6
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"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 NodeSubTypeTriggerStart = "triggerStart";
|
|
19
|
+
var NodeSubTypeTriggerEntityRecordCreated = "triggerEntityRecordCreated";
|
|
20
|
+
var NodeSubTypeTriggerEntityRecordUpdated = "triggerEntityRecordUpdated";
|
|
21
|
+
var NodeSubTypeTriggerEntityRecordDeleted = "triggerEntityRecordDeleted";
|
|
22
|
+
var NodeSubTypeTriggerSLAWarning = "triggerSLAWarning";
|
|
23
|
+
var NodeSubTypeTriggerSLABreach = "triggerSLABreach";
|
|
24
|
+
var NodeSubTypeTriggerEscalation = "triggerEscalation";
|
|
25
|
+
var NodeSubTypeTriggerWebhookReceived = "triggerWebhookReceived";
|
|
26
|
+
var NodeSubTypeHumanActionReview = "humanActionReview";
|
|
27
|
+
var NodeSubTypeHumanActionApproval = "humanActionApproval";
|
|
28
|
+
var NodeSubTypeHumanActionDataEntry = "humanActionDataEntry";
|
|
29
|
+
var NodeSubTypeHumanActionAssignment = "humanActionAssignment";
|
|
30
|
+
var NodeSubTypeAgentChat = "agentChat";
|
|
31
|
+
var NodeSubTypeAgentIntentDetector = "agentIntentDetector";
|
|
32
|
+
var NodeSubTypeAgentKnowledgeGraph = "agentKnowledgeGraph";
|
|
33
|
+
var NodeSubTypeAgentClientApiCall = "clientApiCall";
|
|
34
|
+
var NodeSubTypeAgentTransferToHuman = "agentTransferToHuman";
|
|
35
|
+
var NodeSubTypeAgentOpenTicket = "agentOpenTicket";
|
|
36
|
+
var NodeSubTypeAgentApiIntegration = "agentApiIntegration";
|
|
37
|
+
var NodeSubTypeAgentCustomResponse = "agentCustomResponse";
|
|
38
|
+
var NodeSubTypeAgentStructuredOutput = "agentStructuredOutput";
|
|
39
|
+
var NodeSubTypeActionApiCall = "actionApiCall";
|
|
40
|
+
var NodeSubTypeActionDocumentExtraction = "actionDocumentExtraction";
|
|
41
|
+
var NodeSubTypeActionSendEmail = "actionSendEmail";
|
|
42
|
+
var NodeSubTypeActionSendSMS = "actionSendSMS";
|
|
43
|
+
var NodeSubTypeActionGenerateDocument = "actionGenerateDocument";
|
|
44
|
+
var NodeSubTypeActionProcessPayment = "actionProcessPayment";
|
|
45
|
+
var NodeSubTypeActionCreateEntityRecord = "actionCreateEntityRecord";
|
|
46
|
+
var NodeSubTypeActionUpdateEntityRecord = "actionUpdateEntityRecord";
|
|
47
|
+
var NodeSubTypeActionDeleteEntityRecord = "actionDeleteEntityRecord";
|
|
48
|
+
var NodeSubTypeActionMergeEntityRecords = "actionMergeEntityRecords";
|
|
49
|
+
var NodeSubTypeActionAssignSLAPolicy = "actionAssignSLAPolicy";
|
|
50
|
+
var NodeSubTypeActionChangeSLAStatus = "actionChangeSLAAssignmentStatus";
|
|
51
|
+
var NodeSubTypeActionEscalateSLA = "actionEscalateSLAAssignment";
|
|
52
|
+
var NodeSubTypeActionCSATSurvey = "actionCSATSurvey";
|
|
53
|
+
var NodeSubTypeActionSetVariables = "actionSetVariables";
|
|
54
|
+
var NodeSubTypeActionQueryEntityRecords = "actionQueryEntityRecords";
|
|
55
|
+
var NodeSubTypeActionNatsRequest = "actionNatsRequest";
|
|
56
|
+
var NodeSubTypeLogicIf = "logicIf";
|
|
57
|
+
var NodeSubTypeLogicSwitch = "logicSwitch";
|
|
58
|
+
var NodeSubTypeLogicFor = "logicFor";
|
|
59
|
+
var NodeSubTypeLogicParallel = "logicParallel";
|
|
60
|
+
var NodeSubTypeLoopData = "loopData";
|
|
61
|
+
var NodeSubTypeDelay = "delay";
|
|
62
|
+
var NodeSubTypeDataFilter = "dataFilter";
|
|
63
|
+
var NodeSubTypeDataMap = "dataMap";
|
|
64
|
+
var NodeSubTypeDataCalculate = "dataCalculate";
|
|
65
|
+
var NodeSubTypeDataValidate = "dataValidate";
|
|
66
|
+
var NodeSubTypeTimerDelay = "timerDelay";
|
|
67
|
+
var NodeSubTypeTimerSchedule = "timerSchedule";
|
|
68
|
+
var NodeSubTypeTimerBusinessHours = "timerBusinessHours";
|
|
69
|
+
var ExpressionTypeFilter = "filter";
|
|
70
|
+
var ExpressionTypeJavaScript = "javascript";
|
|
71
|
+
var ExpressionTypeTemplate = "template";
|
|
72
|
+
var ExpressionTypeDSL = "dsl";
|
|
73
|
+
var ExpressionTypeRules = "rules";
|
|
74
|
+
var EdgeTypeNormal = "normal";
|
|
75
|
+
var EdgeTypeLoopBack = "loopBack";
|
|
76
|
+
var EdgeTypeError = "error";
|
|
77
|
+
var EdgeTypeDefault = "default";
|
|
78
|
+
var EdgeTypeParallel = "parallel";
|
|
79
|
+
var EdgeTypeConditional = "conditional";
|
|
80
|
+
var EdgeTypeMerge = "merge";
|
|
81
|
+
var EdgeTypeCompensation = "compensation";
|
|
82
|
+
var EdgeTypeTimeout = "timeout";
|
|
83
|
+
var WorkflowTypeEntity = "entity";
|
|
84
|
+
var WorkflowTypeDocument = "document";
|
|
85
|
+
var WorkflowTypeChat = "chat";
|
|
86
|
+
var WorkflowTypeAgent = "agent";
|
|
87
|
+
var WorkflowTypeProductivity = "productivity";
|
|
88
|
+
var RuleLevelError = "error";
|
|
89
|
+
var RuleLevelWarning = "warning";
|
|
90
|
+
var RuleLevelInfo = "info";
|
|
91
|
+
var PersistenceTypeEphemeral = "ephemeral";
|
|
92
|
+
var PersistenceTypePermanent = "permanent";
|
|
93
|
+
var TimeoutActionFail = "fail";
|
|
94
|
+
var TimeoutActionSkip = "skip";
|
|
95
|
+
var TimeoutActionRetry = "retry";
|
|
96
|
+
var TimeoutActionAlt = "alt";
|
|
97
|
+
var InstanceStatusNew = "NEW";
|
|
98
|
+
var InstanceStatusRunning = "RUNNING";
|
|
99
|
+
var InstanceStatusWaiting = "WAITING";
|
|
100
|
+
var InstanceStatusPaused = "PAUSED";
|
|
101
|
+
var InstanceStatusCompleted = "COMPLETED";
|
|
102
|
+
var InstanceStatusFailed = "FAILED";
|
|
103
|
+
var NodeStatusPending = "PENDING";
|
|
104
|
+
var NodeStatusRunning = "RUNNING";
|
|
105
|
+
var NodeStatusCompleted = "COMPLETED";
|
|
106
|
+
var NodeStatusFailed = "FAILED";
|
|
107
|
+
var NodeStatusWaiting = "WAITING";
|
|
108
|
+
var NodeStatusSkipped = "SKIPPED";
|
|
109
|
+
var EdgeStatusPending = "PENDING";
|
|
110
|
+
var EdgeStatusCompleted = "COMPLETED";
|
|
111
|
+
var EdgeStatusSkipped = "SKIPPED";
|
|
112
|
+
|
|
113
|
+
// models/subjects.ts
|
|
114
|
+
var WorkflowDefinitionCreate = "workflow.definition.create";
|
|
115
|
+
var WorkflowDefinitionCreated = "workflow.definition.created";
|
|
116
|
+
var WorkflowDefinitionUpdate = "workflow.definition.update";
|
|
117
|
+
var WorkflowDefinitionUpdated = "workflow.definition.updated";
|
|
118
|
+
var WorkflowDefinitionGet = "workflow.definition.get";
|
|
119
|
+
var WorkflowDefinitionGetServer = "workflow.definition.get.server";
|
|
120
|
+
var WorkflowDefinitionGetByTitle = "workflow.definition.get.by.title";
|
|
121
|
+
var WorkflowDefinitionList = "workflow.definition.list";
|
|
122
|
+
var WorkflowDefinitionDelete = "workflow.definition.delete";
|
|
123
|
+
var WorkflowDefinitionDeleted = "workflow.definition.deleted";
|
|
124
|
+
var WorkflowInstanceCreate = "workflow.instance.create";
|
|
125
|
+
var WorkflowInstanceExecuteNode = "workflow.instance.execute.node";
|
|
126
|
+
var WorkflowInstanceResumeNode = "workflow.instance.resume.node";
|
|
127
|
+
var WorkflowInstanceExecuteNodeServer = "workflow.instance.execute.node.server";
|
|
128
|
+
var WorkflowInstanceResumeNodeServer = "workflow.instance.resume.node.server";
|
|
129
|
+
var WorkflowInstanceExecuteNodeLean = "workflow.instance.execute.node.lean";
|
|
130
|
+
var WorkflowInstanceExecuteNodeLeanServer = "workflow.instance.execute.node.lean.server";
|
|
131
|
+
var WorkflowInstanceGet = "workflow.instance.get";
|
|
132
|
+
var WorkflowInstanceGetByStateVariable = "workflow.instance.get.by.state.variable";
|
|
133
|
+
var WorkflowInstanceList = "workflow.instance.list";
|
|
134
|
+
var WorkflowInstanceUpdate = "workflow.instance.update";
|
|
135
|
+
var WorkflowInstanceUpdated = "workflow.instance.updated";
|
|
136
|
+
var WorkflowInstanceUpdateNodeMetadata = "workflow.instance.update.node.metadata";
|
|
137
|
+
var WorkflowTemplateList = "workflow.template.list";
|
|
138
|
+
var WorkflowTemplateGet = "workflow.template.get";
|
|
139
|
+
var WorkflowTemplateInstantiate = "workflow.template.instantiate";
|
|
140
|
+
var WorkflowScheduleCreate = "workflow.schedule.create";
|
|
141
|
+
var WorkflowScheduleUpdate = "workflow.schedule.update";
|
|
142
|
+
var WorkflowScheduleDelete = "workflow.schedule.delete";
|
|
143
|
+
var WorkflowScheduleList = "workflow.schedule.list";
|
|
144
|
+
var WorkflowSchedulePause = "workflow.schedule.pause";
|
|
145
|
+
var WorkflowScheduleResume = "workflow.schedule.resume";
|
|
146
|
+
var WorkflowTriggerRegister = "workflow.trigger.register";
|
|
147
|
+
var WorkflowTriggerPause = "workflow.trigger.pause";
|
|
148
|
+
var WorkflowTriggerResume = "workflow.trigger.resume";
|
|
149
|
+
var WorkflowTriggerStatus = "workflow.trigger.status";
|
|
150
|
+
var WorkflowTriggerFired = "workflow.trigger.fired";
|
|
151
|
+
var WorkflowExecutionStarted = "workflow.execution.started";
|
|
152
|
+
var WorkflowExecutionCompleted = "workflow.execution.completed";
|
|
153
|
+
var WorkflowExecutionFailed = "workflow.execution.failed";
|
|
154
|
+
|
|
155
|
+
export {
|
|
156
|
+
NodeTypeTrigger,
|
|
157
|
+
NodeTypeHumanAction,
|
|
158
|
+
NodeTypeAgent,
|
|
159
|
+
NodeTypeAction,
|
|
160
|
+
NodeTypeLogic,
|
|
161
|
+
NodeTypeLoop,
|
|
162
|
+
NodeTypeParallel,
|
|
163
|
+
NodeTypeDelay,
|
|
164
|
+
NodeTypeData,
|
|
165
|
+
NodeTypeIntegration,
|
|
166
|
+
NodeTypeTimer,
|
|
167
|
+
NodeTypeSubflow,
|
|
168
|
+
NodeTypeCustom,
|
|
169
|
+
NodeTypeAccounting,
|
|
170
|
+
NodeSubTypeTriggerStart,
|
|
171
|
+
NodeSubTypeTriggerEntityRecordCreated,
|
|
172
|
+
NodeSubTypeTriggerEntityRecordUpdated,
|
|
173
|
+
NodeSubTypeTriggerEntityRecordDeleted,
|
|
174
|
+
NodeSubTypeTriggerSLAWarning,
|
|
175
|
+
NodeSubTypeTriggerSLABreach,
|
|
176
|
+
NodeSubTypeTriggerEscalation,
|
|
177
|
+
NodeSubTypeTriggerWebhookReceived,
|
|
178
|
+
NodeSubTypeHumanActionReview,
|
|
179
|
+
NodeSubTypeHumanActionApproval,
|
|
180
|
+
NodeSubTypeHumanActionDataEntry,
|
|
181
|
+
NodeSubTypeHumanActionAssignment,
|
|
182
|
+
NodeSubTypeAgentChat,
|
|
183
|
+
NodeSubTypeAgentIntentDetector,
|
|
184
|
+
NodeSubTypeAgentKnowledgeGraph,
|
|
185
|
+
NodeSubTypeAgentClientApiCall,
|
|
186
|
+
NodeSubTypeAgentTransferToHuman,
|
|
187
|
+
NodeSubTypeAgentOpenTicket,
|
|
188
|
+
NodeSubTypeAgentApiIntegration,
|
|
189
|
+
NodeSubTypeAgentCustomResponse,
|
|
190
|
+
NodeSubTypeAgentStructuredOutput,
|
|
191
|
+
NodeSubTypeActionApiCall,
|
|
192
|
+
NodeSubTypeActionDocumentExtraction,
|
|
193
|
+
NodeSubTypeActionSendEmail,
|
|
194
|
+
NodeSubTypeActionSendSMS,
|
|
195
|
+
NodeSubTypeActionGenerateDocument,
|
|
196
|
+
NodeSubTypeActionProcessPayment,
|
|
197
|
+
NodeSubTypeActionCreateEntityRecord,
|
|
198
|
+
NodeSubTypeActionUpdateEntityRecord,
|
|
199
|
+
NodeSubTypeActionDeleteEntityRecord,
|
|
200
|
+
NodeSubTypeActionMergeEntityRecords,
|
|
201
|
+
NodeSubTypeActionAssignSLAPolicy,
|
|
202
|
+
NodeSubTypeActionChangeSLAStatus,
|
|
203
|
+
NodeSubTypeActionEscalateSLA,
|
|
204
|
+
NodeSubTypeActionCSATSurvey,
|
|
205
|
+
NodeSubTypeActionSetVariables,
|
|
206
|
+
NodeSubTypeActionQueryEntityRecords,
|
|
207
|
+
NodeSubTypeActionNatsRequest,
|
|
208
|
+
NodeSubTypeLogicIf,
|
|
209
|
+
NodeSubTypeLogicSwitch,
|
|
210
|
+
NodeSubTypeLogicFor,
|
|
211
|
+
NodeSubTypeLogicParallel,
|
|
212
|
+
NodeSubTypeLoopData,
|
|
213
|
+
NodeSubTypeDelay,
|
|
214
|
+
NodeSubTypeDataFilter,
|
|
215
|
+
NodeSubTypeDataMap,
|
|
216
|
+
NodeSubTypeDataCalculate,
|
|
217
|
+
NodeSubTypeDataValidate,
|
|
218
|
+
NodeSubTypeTimerDelay,
|
|
219
|
+
NodeSubTypeTimerSchedule,
|
|
220
|
+
NodeSubTypeTimerBusinessHours,
|
|
221
|
+
ExpressionTypeFilter,
|
|
222
|
+
ExpressionTypeJavaScript,
|
|
223
|
+
ExpressionTypeTemplate,
|
|
224
|
+
ExpressionTypeDSL,
|
|
225
|
+
ExpressionTypeRules,
|
|
226
|
+
EdgeTypeNormal,
|
|
227
|
+
EdgeTypeLoopBack,
|
|
228
|
+
EdgeTypeError,
|
|
229
|
+
EdgeTypeDefault,
|
|
230
|
+
EdgeTypeParallel,
|
|
231
|
+
EdgeTypeConditional,
|
|
232
|
+
EdgeTypeMerge,
|
|
233
|
+
EdgeTypeCompensation,
|
|
234
|
+
EdgeTypeTimeout,
|
|
235
|
+
WorkflowTypeEntity,
|
|
236
|
+
WorkflowTypeDocument,
|
|
237
|
+
WorkflowTypeChat,
|
|
238
|
+
WorkflowTypeAgent,
|
|
239
|
+
WorkflowTypeProductivity,
|
|
240
|
+
RuleLevelError,
|
|
241
|
+
RuleLevelWarning,
|
|
242
|
+
RuleLevelInfo,
|
|
243
|
+
PersistenceTypeEphemeral,
|
|
244
|
+
PersistenceTypePermanent,
|
|
245
|
+
TimeoutActionFail,
|
|
246
|
+
TimeoutActionSkip,
|
|
247
|
+
TimeoutActionRetry,
|
|
248
|
+
TimeoutActionAlt,
|
|
249
|
+
InstanceStatusNew,
|
|
250
|
+
InstanceStatusRunning,
|
|
251
|
+
InstanceStatusWaiting,
|
|
252
|
+
InstanceStatusPaused,
|
|
253
|
+
InstanceStatusCompleted,
|
|
254
|
+
InstanceStatusFailed,
|
|
255
|
+
NodeStatusPending,
|
|
256
|
+
NodeStatusRunning,
|
|
257
|
+
NodeStatusCompleted,
|
|
258
|
+
NodeStatusFailed,
|
|
259
|
+
NodeStatusWaiting,
|
|
260
|
+
NodeStatusSkipped,
|
|
261
|
+
EdgeStatusPending,
|
|
262
|
+
EdgeStatusCompleted,
|
|
263
|
+
EdgeStatusSkipped,
|
|
264
|
+
WorkflowDefinitionCreate,
|
|
265
|
+
WorkflowDefinitionCreated,
|
|
266
|
+
WorkflowDefinitionUpdate,
|
|
267
|
+
WorkflowDefinitionUpdated,
|
|
268
|
+
WorkflowDefinitionGet,
|
|
269
|
+
WorkflowDefinitionGetServer,
|
|
270
|
+
WorkflowDefinitionGetByTitle,
|
|
271
|
+
WorkflowDefinitionList,
|
|
272
|
+
WorkflowDefinitionDelete,
|
|
273
|
+
WorkflowDefinitionDeleted,
|
|
274
|
+
WorkflowInstanceCreate,
|
|
275
|
+
WorkflowInstanceExecuteNode,
|
|
276
|
+
WorkflowInstanceResumeNode,
|
|
277
|
+
WorkflowInstanceExecuteNodeServer,
|
|
278
|
+
WorkflowInstanceResumeNodeServer,
|
|
279
|
+
WorkflowInstanceExecuteNodeLean,
|
|
280
|
+
WorkflowInstanceExecuteNodeLeanServer,
|
|
281
|
+
WorkflowInstanceGet,
|
|
282
|
+
WorkflowInstanceGetByStateVariable,
|
|
283
|
+
WorkflowInstanceList,
|
|
284
|
+
WorkflowInstanceUpdate,
|
|
285
|
+
WorkflowInstanceUpdated,
|
|
286
|
+
WorkflowInstanceUpdateNodeMetadata,
|
|
287
|
+
WorkflowTemplateList,
|
|
288
|
+
WorkflowTemplateGet,
|
|
289
|
+
WorkflowTemplateInstantiate,
|
|
290
|
+
WorkflowScheduleCreate,
|
|
291
|
+
WorkflowScheduleUpdate,
|
|
292
|
+
WorkflowScheduleDelete,
|
|
293
|
+
WorkflowScheduleList,
|
|
294
|
+
WorkflowSchedulePause,
|
|
295
|
+
WorkflowScheduleResume,
|
|
296
|
+
WorkflowTriggerRegister,
|
|
297
|
+
WorkflowTriggerPause,
|
|
298
|
+
WorkflowTriggerResume,
|
|
299
|
+
WorkflowTriggerStatus,
|
|
300
|
+
WorkflowTriggerFired,
|
|
301
|
+
WorkflowExecutionStarted,
|
|
302
|
+
WorkflowExecutionCompleted,
|
|
303
|
+
WorkflowExecutionFailed
|
|
304
|
+
};
|
|
305
|
+
//# sourceMappingURL=chunk-CZAV6SMB.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 } 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\";\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 ResponseMetadata {\n success: boolean;\n timestamp: string /* RFC3339 */;\n message?: string;\n error?: string;\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":"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","names":[]}
|