@epilot/sdk 2.9.5 → 2.10.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/definitions/ai-agents-runtime.json +1 -1
- package/definitions/ai-agents.json +63 -936
- package/definitions/focus-pocus-runtime.json +1 -0
- package/definitions/focus-pocus.json +757 -0
- package/definitions/integration-toolkit-runtime.json +1 -1
- package/definitions/integration-toolkit.json +213 -2
- package/definitions/targeting-runtime.json +1 -1
- package/definitions/targeting.json +2 -7
- package/definitions/workflow-runtime.json +1 -1
- package/definitions/workflow.json +60 -445
- package/dist/ai-agents-IZWFEUSH.js +7 -0
- package/dist/ai-agents-PWHKNRCX.cjs +7 -0
- package/dist/{ai-agents-runtime-EA23HCCP.js → ai-agents-runtime-25YRUJHI.js} +1 -1
- package/dist/{targeting-runtime-X3DQ527N.cjs → ai-agents-runtime-TILIO3UM.cjs} +2 -2
- package/dist/{ai-agents.d-D-7bTH-9.d.cts → ai-agents.d-CC5IjXrs.d.cts} +5 -506
- package/dist/{ai-agents.d-D-7bTH-9.d.ts → ai-agents.d-CC5IjXrs.d.ts} +5 -506
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +8 -8
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +2 -2
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +8 -8
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +2 -2
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +8 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +2 -2
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +8 -8
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +2 -2
- package/dist/chunk-7WGJSGWE.js +14 -0
- package/dist/chunk-FARDEGPH.cjs +14 -0
- package/dist/chunk-JENQHXFI.js +14 -0
- package/dist/{chunk-522LYPPW.js → chunk-KQKBSWGI.js} +1 -1
- package/dist/{chunk-H3NMCCSA.js → chunk-LSPXLT3A.js} +1 -1
- package/dist/{chunk-7ILTRJDQ.cjs → chunk-MCK2QUSD.cjs} +1 -1
- package/dist/{chunk-IIQYDQGR.cjs → chunk-OJGUX5TG.cjs} +8 -8
- package/dist/{chunk-PM25LLET.cjs → chunk-QNZPOA54.cjs} +1 -1
- package/dist/{chunk-DBRYXXXY.js → chunk-XH5F3S6Y.js} +8 -8
- package/dist/chunk-YISO22FS.cjs +14 -0
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/integration-toolkit-DUMRNE6A.cjs +7 -0
- package/dist/integration-toolkit-IK7KA76K.js +7 -0
- package/dist/{integration-toolkit-runtime-FR6RZS5O.cjs → integration-toolkit-runtime-4LHEPGGC.cjs} +2 -2
- package/dist/{integration-toolkit-runtime-I2O6QP5G.js → integration-toolkit-runtime-5K3AAC63.js} +1 -1
- package/dist/{integration-toolkit.d-DUZ_fiuf.d.cts → integration-toolkit.d-BVe_MBBi.d.cts} +162 -3
- package/dist/{integration-toolkit.d-DUZ_fiuf.d.ts → integration-toolkit.d-BVe_MBBi.d.ts} +162 -3
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/{targeting-4YMBBPDW.cjs → targeting-WC62BBZN.cjs} +1 -1
- package/dist/{targeting-VCENULF6.js → targeting-X4Y2ODBT.js} +1 -1
- package/dist/{targeting-runtime-QI7322HB.js → targeting-runtime-D5YUPZQM.js} +1 -1
- package/dist/{ai-agents-runtime-WZ3EI3NH.cjs → targeting-runtime-MLMOM7CK.cjs} +2 -2
- package/dist/{targeting.d-Bq3onSes.d.ts → targeting.d-0rNF7ErD.d.cts} +1 -1
- package/dist/{targeting.d-Bq3onSes.d.cts → targeting.d-0rNF7ErD.d.ts} +1 -1
- package/dist/workflow-3WBD74WR.js +7 -0
- package/dist/workflow-WIUZ5TOX.cjs +7 -0
- package/dist/{workflow-runtime-L5HMFISV.js → workflow-runtime-DNTQDYPQ.js} +1 -1
- package/dist/{workflow-runtime-LMGACZP4.cjs → workflow-runtime-VKFESVFX.cjs} +2 -2
- package/dist/{workflow.d-eFv0ecBi.d.cts → workflow.d-CMSKt8oN.d.cts} +81 -745
- package/dist/{workflow.d-eFv0ecBi.d.ts → workflow.d-CMSKt8oN.d.ts} +81 -745
- package/docs/ai-agents.md +23 -641
- package/docs/integration-toolkit.md +133 -0
- package/docs/targeting.md +1 -1
- package/docs/workflow.md +47 -247
- package/package.json +12 -11
- package/dist/ai-agents-D6C5TXLD.cjs +0 -7
- package/dist/ai-agents-Y6PH53PH.js +0 -7
- package/dist/chunk-3CNCQJOJ.js +0 -14
- package/dist/chunk-BRWY3QHG.js +0 -14
- package/dist/chunk-ILIHCSNO.cjs +0 -14
- package/dist/chunk-YEBEA6XU.cjs +0 -14
- package/dist/integration-toolkit-TL3BQ6FJ.cjs +0 -7
- package/dist/integration-toolkit-X3Y4OFVW.js +0 -7
- package/dist/workflow-7OU2YEEI.cjs +0 -7
- package/dist/workflow-IVKCWS44.js +0 -7
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Workflows Executions",
|
|
5
5
|
"version": "1.0.0",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Service for Workflow Executions which covers executions of processes defined in an Organization\n"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -13,19 +13,16 @@
|
|
|
13
13
|
"tags": [
|
|
14
14
|
{
|
|
15
15
|
"name": "Workflow Executions",
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Interact with workflow executions - start / close / retrieve one or all / search / delete"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "Workflow Steps"
|
|
20
|
-
"description": "Manage individual steps within V1 workflow executions (legacy). Steps represent discrete tasks\nthat can be assigned to users, have due dates, and track completion status. Use the Flows V2\ntask endpoints for new integrations.\n"
|
|
19
|
+
"name": "Workflow Steps"
|
|
21
20
|
},
|
|
22
21
|
{
|
|
23
|
-
"name": "Closing Reasons"
|
|
24
|
-
"description": "Retrieve closing reasons configured for workflow executions. When a workflow is closed/cancelled,\nusers can select from predefined closing reasons to document why the workflow ended. Closing\nreasons are snapshots from the definition at execution creation time.\n"
|
|
22
|
+
"name": "Closing Reasons"
|
|
25
23
|
},
|
|
26
24
|
{
|
|
27
|
-
"name": "Flows V2"
|
|
28
|
-
"description": "**Recommended for new integrations.** Manage V2 flow executions using the graph-based execution model.\nThis API version supports advanced features including:\n- Conditional branching with decision tasks\n- Automation tasks with configurable triggers\n- AI agent tasks for intelligent processing\n- Task scheduling (immediate, delayed, or relative to events)\n- Loop iterations for repeatable task sequences\n- Phase-based organization with progress tracking\n"
|
|
25
|
+
"name": "Flows V2"
|
|
29
26
|
}
|
|
30
27
|
],
|
|
31
28
|
"security": [
|
|
@@ -93,61 +90,24 @@
|
|
|
93
90
|
"post": {
|
|
94
91
|
"operationId": "createExecution",
|
|
95
92
|
"summary": "createExecution",
|
|
96
|
-
"description": "
|
|
93
|
+
"description": "Create a Workflow Execution. Start a new workflow execution, based on a workflow definition (template).",
|
|
97
94
|
"tags": [
|
|
98
95
|
"Workflow Executions"
|
|
99
96
|
],
|
|
100
97
|
"requestBody": {
|
|
101
|
-
"description": "Workflow
|
|
98
|
+
"description": "Workflow Execution payload",
|
|
102
99
|
"required": true,
|
|
103
100
|
"content": {
|
|
104
101
|
"application/json": {
|
|
105
102
|
"schema": {
|
|
106
103
|
"$ref": "#/components/schemas/WorkflowExecutionCreateReq"
|
|
107
|
-
},
|
|
108
|
-
"examples": {
|
|
109
|
-
"basicCreate": {
|
|
110
|
-
"summary": "Create with single context",
|
|
111
|
-
"description": "Create an execution linked to an opportunity entity",
|
|
112
|
-
"value": {
|
|
113
|
-
"workflowId": "j3f23fh23uif98",
|
|
114
|
-
"trigger": "MANUAL",
|
|
115
|
-
"contexts": [
|
|
116
|
-
{
|
|
117
|
-
"id": "3fa3fa86-0907-4642-a57e-0fe30a19874d",
|
|
118
|
-
"title": "New Opportunity",
|
|
119
|
-
"schema": "opportunity"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"automatedTrigger": {
|
|
125
|
-
"summary": "Create from automation",
|
|
126
|
-
"description": "Create an execution triggered automatically by an automation rule",
|
|
127
|
-
"value": {
|
|
128
|
-
"workflowId": "j3f23fh23uif98",
|
|
129
|
-
"trigger": "AUTOMATIC",
|
|
130
|
-
"contexts": [
|
|
131
|
-
{
|
|
132
|
-
"id": "3fa3fa86-0907-4642-a57e-0fe30a19874d",
|
|
133
|
-
"title": "John Doe",
|
|
134
|
-
"schema": "contact"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"id": "3a6d42fa-5070-4723-b90f-41ead4303e33",
|
|
138
|
-
"title": "Sales Opportunity",
|
|
139
|
-
"schema": "opportunity"
|
|
140
|
-
}
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
104
|
}
|
|
145
105
|
}
|
|
146
106
|
}
|
|
147
107
|
},
|
|
148
108
|
"responses": {
|
|
149
109
|
"201": {
|
|
150
|
-
"description": "
|
|
110
|
+
"description": "Success - if the execution is created successfully",
|
|
151
111
|
"content": {
|
|
152
112
|
"application/json": {
|
|
153
113
|
"schema": {
|
|
@@ -157,40 +117,31 @@
|
|
|
157
117
|
}
|
|
158
118
|
},
|
|
159
119
|
"400": {
|
|
160
|
-
"description": "Validation
|
|
120
|
+
"description": "Validation Errors",
|
|
161
121
|
"content": {
|
|
162
122
|
"application/json": {
|
|
163
123
|
"schema": {
|
|
164
124
|
"$ref": "#/components/schemas/ErrorResp"
|
|
165
|
-
},
|
|
166
|
-
"example": {
|
|
167
|
-
"message": "workflowId is required"
|
|
168
125
|
}
|
|
169
126
|
}
|
|
170
127
|
}
|
|
171
128
|
},
|
|
172
129
|
"401": {
|
|
173
|
-
"description": "Authentication
|
|
130
|
+
"description": "Authentication Errors",
|
|
174
131
|
"content": {
|
|
175
132
|
"application/json": {
|
|
176
133
|
"schema": {
|
|
177
134
|
"$ref": "#/components/schemas/ErrorResp"
|
|
178
|
-
},
|
|
179
|
-
"example": {
|
|
180
|
-
"message": "Unauthorized"
|
|
181
135
|
}
|
|
182
136
|
}
|
|
183
137
|
}
|
|
184
138
|
},
|
|
185
139
|
"500": {
|
|
186
|
-
"description": "
|
|
140
|
+
"description": "Other errors",
|
|
187
141
|
"content": {
|
|
188
142
|
"application/json": {
|
|
189
143
|
"schema": {
|
|
190
144
|
"$ref": "#/components/schemas/ErrorResp"
|
|
191
|
-
},
|
|
192
|
-
"example": {
|
|
193
|
-
"message": "Internal server error"
|
|
194
145
|
}
|
|
195
146
|
}
|
|
196
147
|
}
|
|
@@ -202,7 +153,7 @@
|
|
|
202
153
|
"get": {
|
|
203
154
|
"operationId": "getExecution",
|
|
204
155
|
"summary": "getExecution",
|
|
205
|
-
"description": "
|
|
156
|
+
"description": "Get a full workflow execution, included steps information, by execution id.",
|
|
206
157
|
"tags": [
|
|
207
158
|
"Workflow Executions"
|
|
208
159
|
],
|
|
@@ -405,7 +356,7 @@
|
|
|
405
356
|
"patch": {
|
|
406
357
|
"operationId": "updateStep",
|
|
407
358
|
"summary": "updateStep",
|
|
408
|
-
"description": "
|
|
359
|
+
"description": "Patches various changes to a workflow execution step.",
|
|
409
360
|
"tags": [
|
|
410
361
|
"Workflow Steps"
|
|
411
362
|
],
|
|
@@ -417,7 +368,7 @@
|
|
|
417
368
|
"type": "string"
|
|
418
369
|
},
|
|
419
370
|
"required": true,
|
|
420
|
-
"description": "
|
|
371
|
+
"description": "Id of the execution",
|
|
421
372
|
"example": "wd56125gah"
|
|
422
373
|
},
|
|
423
374
|
{
|
|
@@ -427,12 +378,12 @@
|
|
|
427
378
|
"type": "string"
|
|
428
379
|
},
|
|
429
380
|
"required": true,
|
|
430
|
-
"description": "Short
|
|
381
|
+
"description": "Short uuid (length 6) to identify the Workflow Execution Step.",
|
|
431
382
|
"example": "7hj28a"
|
|
432
383
|
}
|
|
433
384
|
],
|
|
434
385
|
"requestBody": {
|
|
435
|
-
"description": "Step
|
|
386
|
+
"description": "Workflow Execution Step payload",
|
|
436
387
|
"required": true,
|
|
437
388
|
"content": {
|
|
438
389
|
"application/json": {
|
|
@@ -440,57 +391,24 @@
|
|
|
440
391
|
"$ref": "#/components/schemas/UpdateStepReq"
|
|
441
392
|
},
|
|
442
393
|
"examples": {
|
|
443
|
-
"
|
|
444
|
-
"summary": "Mark step as completed",
|
|
445
|
-
"description": "Complete a step, advancing the workflow",
|
|
446
|
-
"value": {
|
|
447
|
-
"status": "COMPLETED"
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
"markInProgress": {
|
|
451
|
-
"summary": "Mark step as in progress",
|
|
452
|
-
"description": "Indicate that work has started on this step",
|
|
453
|
-
"value": {
|
|
454
|
-
"status": "IN_PROGRESS"
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
"assignUsers": {
|
|
458
|
-
"summary": "Assign users to step",
|
|
459
|
-
"description": "Assign one or more users to the step",
|
|
394
|
+
"dynamicDueDate": {
|
|
460
395
|
"value": {
|
|
396
|
+
"stepId": "string",
|
|
461
397
|
"assignedTo": [
|
|
462
|
-
"10010730"
|
|
463
|
-
|
|
464
|
-
]
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
"setStaticDueDate": {
|
|
468
|
-
"summary": "Set static due date",
|
|
469
|
-
"description": "Set an explicit due date for the step",
|
|
470
|
-
"value": {
|
|
471
|
-
"dueDate": "2024-06-15T17:00:00.000Z"
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
"setDynamicDueDate": {
|
|
475
|
-
"summary": "Set dynamic due date",
|
|
476
|
-
"description": "Configure due date relative to workflow start or another step",
|
|
477
|
-
"value": {
|
|
398
|
+
"10010730"
|
|
399
|
+
],
|
|
478
400
|
"dynamicDueDate": {
|
|
479
401
|
"numberOfUnits": 2,
|
|
480
402
|
"timePeriod": "weeks",
|
|
481
403
|
"actionTypeCondition": "STEP_CLOSED",
|
|
482
|
-
"stepId": "
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
},
|
|
486
|
-
"reorderStep": {
|
|
487
|
-
"summary": "Reorder step position",
|
|
488
|
-
"description": "Move a step to a different position within its section",
|
|
489
|
-
"value": {
|
|
404
|
+
"stepId": "optional"
|
|
405
|
+
},
|
|
406
|
+
"name": "Static Duedate",
|
|
490
407
|
"position": {
|
|
491
|
-
"index":
|
|
492
|
-
|
|
493
|
-
|
|
408
|
+
"index": 0
|
|
409
|
+
},
|
|
410
|
+
"sectionId": "string",
|
|
411
|
+
"status": "string"
|
|
494
412
|
}
|
|
495
413
|
}
|
|
496
414
|
}
|
|
@@ -499,7 +417,7 @@
|
|
|
499
417
|
},
|
|
500
418
|
"responses": {
|
|
501
419
|
"200": {
|
|
502
|
-
"description": "
|
|
420
|
+
"description": "Success - if the step is updated successfully",
|
|
503
421
|
"content": {
|
|
504
422
|
"application/json": {
|
|
505
423
|
"schema": {
|
|
@@ -763,80 +681,24 @@
|
|
|
763
681
|
"post": {
|
|
764
682
|
"operationId": "startFlowExecution",
|
|
765
683
|
"summary": "startFlowExecution",
|
|
766
|
-
"description": "Starts a new Flow Execution based on a flow template
|
|
684
|
+
"description": "Starts a new Flow Execution based on a flow template.",
|
|
767
685
|
"tags": [
|
|
768
686
|
"Flows V2"
|
|
769
687
|
],
|
|
770
688
|
"requestBody": {
|
|
771
|
-
"description": "Flow Execution payload
|
|
689
|
+
"description": "Flow Execution payload",
|
|
772
690
|
"required": true,
|
|
773
691
|
"content": {
|
|
774
692
|
"application/json": {
|
|
775
693
|
"schema": {
|
|
776
694
|
"$ref": "#/components/schemas/StartFlowReq"
|
|
777
|
-
},
|
|
778
|
-
"examples": {
|
|
779
|
-
"basicStart": {
|
|
780
|
-
"summary": "Start with single entity context",
|
|
781
|
-
"description": "Start a flow execution linked to an opportunity entity",
|
|
782
|
-
"value": {
|
|
783
|
-
"flow_template_id": "tpl_abc123def456",
|
|
784
|
-
"contexts": [
|
|
785
|
-
{
|
|
786
|
-
"entity_id": "3fa3fa86-0907-4642-a57e-0fe30a19874d",
|
|
787
|
-
"entity_schema": "opportunity",
|
|
788
|
-
"is_primary": true
|
|
789
|
-
}
|
|
790
|
-
]
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
"multipleContexts": {
|
|
794
|
-
"summary": "Start with multiple entity contexts",
|
|
795
|
-
"description": "Start a flow execution linked to both a contact and an opportunity",
|
|
796
|
-
"value": {
|
|
797
|
-
"flow_template_id": "tpl_abc123def456",
|
|
798
|
-
"trigger": {
|
|
799
|
-
"type": "MANUAL"
|
|
800
|
-
},
|
|
801
|
-
"contexts": [
|
|
802
|
-
{
|
|
803
|
-
"entity_id": "3fa3fa86-0907-4642-a57e-0fe30a19874d",
|
|
804
|
-
"entity_schema": "contact",
|
|
805
|
-
"is_primary": true
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
"entity_id": "7bc8de90-1234-5678-90ab-cdef12345678",
|
|
809
|
-
"entity_schema": "opportunity",
|
|
810
|
-
"is_primary": false
|
|
811
|
-
}
|
|
812
|
-
]
|
|
813
|
-
}
|
|
814
|
-
},
|
|
815
|
-
"withPurposes": {
|
|
816
|
-
"summary": "Start with purpose filtering",
|
|
817
|
-
"description": "Start a flow execution with specific purposes to filter applicable phases",
|
|
818
|
-
"value": {
|
|
819
|
-
"flow_template_id": "tpl_abc123def456",
|
|
820
|
-
"contexts": [
|
|
821
|
-
{
|
|
822
|
-
"entity_id": "3fa3fa86-0907-4642-a57e-0fe30a19874d",
|
|
823
|
-
"entity_schema": "opportunity",
|
|
824
|
-
"is_primary": true
|
|
825
|
-
}
|
|
826
|
-
],
|
|
827
|
-
"purposes": [
|
|
828
|
-
"sales",
|
|
829
|
-
"onboarding"
|
|
830
|
-
]
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
695
|
}
|
|
834
696
|
}
|
|
835
697
|
}
|
|
836
698
|
},
|
|
837
699
|
"responses": {
|
|
838
700
|
"201": {
|
|
839
|
-
"description": "
|
|
701
|
+
"description": "Success - when the flow execution is started successfully",
|
|
840
702
|
"content": {
|
|
841
703
|
"application/json": {
|
|
842
704
|
"schema": {
|
|
@@ -846,53 +708,27 @@
|
|
|
846
708
|
}
|
|
847
709
|
},
|
|
848
710
|
"400": {
|
|
849
|
-
"description": "Validation
|
|
711
|
+
"description": "Validation Errors",
|
|
850
712
|
"content": {
|
|
851
713
|
"application/json": {
|
|
852
714
|
"schema": {
|
|
853
715
|
"$ref": "#/components/schemas/ErrorResp"
|
|
854
|
-
},
|
|
855
|
-
"example": {
|
|
856
|
-
"message": "flow_template_id is required"
|
|
857
716
|
}
|
|
858
717
|
}
|
|
859
718
|
}
|
|
860
719
|
},
|
|
861
720
|
"401": {
|
|
862
|
-
"description": "
|
|
863
|
-
"content": {
|
|
864
|
-
"application/json": {
|
|
865
|
-
"schema": {
|
|
866
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
867
|
-
},
|
|
868
|
-
"example": {
|
|
869
|
-
"message": "Unauthorized"
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
}
|
|
721
|
+
"description": "Unauthorized"
|
|
873
722
|
},
|
|
874
723
|
"403": {
|
|
875
|
-
"description": "
|
|
876
|
-
"content": {
|
|
877
|
-
"application/json": {
|
|
878
|
-
"schema": {
|
|
879
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
880
|
-
},
|
|
881
|
-
"example": {
|
|
882
|
-
"message": "Forbidden"
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
}
|
|
724
|
+
"description": "Forbidden"
|
|
886
725
|
},
|
|
887
726
|
"500": {
|
|
888
|
-
"description": "
|
|
727
|
+
"description": "Other errors",
|
|
889
728
|
"content": {
|
|
890
729
|
"application/json": {
|
|
891
730
|
"schema": {
|
|
892
731
|
"$ref": "#/components/schemas/ErrorResp"
|
|
893
|
-
},
|
|
894
|
-
"example": {
|
|
895
|
-
"message": "Internal server error"
|
|
896
732
|
}
|
|
897
733
|
}
|
|
898
734
|
}
|
|
@@ -904,7 +740,7 @@
|
|
|
904
740
|
"get": {
|
|
905
741
|
"operationId": "getFlowExecution",
|
|
906
742
|
"summary": "getFlowExecution",
|
|
907
|
-
"description": "
|
|
743
|
+
"description": "Get a full flow execution, included tasks, phases, edges & analytics.",
|
|
908
744
|
"tags": [
|
|
909
745
|
"Flows V2"
|
|
910
746
|
],
|
|
@@ -1092,7 +928,7 @@
|
|
|
1092
928
|
"patch": {
|
|
1093
929
|
"operationId": "patchTask",
|
|
1094
930
|
"summary": "patchTask",
|
|
1095
|
-
"description": "
|
|
931
|
+
"description": "Changes various attributes of a flow task, like assignees, status, due date, etc.",
|
|
1096
932
|
"tags": [
|
|
1097
933
|
"Flows V2"
|
|
1098
934
|
],
|
|
@@ -1105,75 +941,19 @@
|
|
|
1105
941
|
}
|
|
1106
942
|
],
|
|
1107
943
|
"requestBody": {
|
|
1108
|
-
"description": "Task
|
|
944
|
+
"description": "Patch Task Payload",
|
|
1109
945
|
"required": true,
|
|
1110
946
|
"content": {
|
|
1111
947
|
"application/json": {
|
|
1112
948
|
"schema": {
|
|
1113
949
|
"$ref": "#/components/schemas/PatchTaskReq"
|
|
1114
|
-
},
|
|
1115
|
-
"examples": {
|
|
1116
|
-
"markCompleted": {
|
|
1117
|
-
"summary": "Mark task as completed",
|
|
1118
|
-
"description": "Complete a task, advancing the workflow to the next task",
|
|
1119
|
-
"value": {
|
|
1120
|
-
"status": "COMPLETED"
|
|
1121
|
-
}
|
|
1122
|
-
},
|
|
1123
|
-
"markInProgress": {
|
|
1124
|
-
"summary": "Mark task as in progress",
|
|
1125
|
-
"description": "Indicate that work has started on this task",
|
|
1126
|
-
"value": {
|
|
1127
|
-
"status": "IN_PROGRESS"
|
|
1128
|
-
}
|
|
1129
|
-
},
|
|
1130
|
-
"skipTask": {
|
|
1131
|
-
"summary": "Skip a task",
|
|
1132
|
-
"description": "Bypass a task without completing it",
|
|
1133
|
-
"value": {
|
|
1134
|
-
"status": "SKIPPED"
|
|
1135
|
-
}
|
|
1136
|
-
},
|
|
1137
|
-
"assignUsers": {
|
|
1138
|
-
"summary": "Assign users to task",
|
|
1139
|
-
"description": "Assign one or more users to be responsible for this task",
|
|
1140
|
-
"value": {
|
|
1141
|
-
"assigned_to": [
|
|
1142
|
-
"10010730",
|
|
1143
|
-
"10010731"
|
|
1144
|
-
]
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
"updateDueDate": {
|
|
1148
|
-
"summary": "Set task due date",
|
|
1149
|
-
"description": "Set an explicit due date for the task",
|
|
1150
|
-
"value": {
|
|
1151
|
-
"due_date": "2024-06-15T17:00:00.000Z"
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
"revertToPreviousTask": {
|
|
1155
|
-
"summary": "Revert execution to previous task",
|
|
1156
|
-
"description": "Reset workflow back to a previously completed task, clearing all subsequent progress",
|
|
1157
|
-
"value": {
|
|
1158
|
-
"status": "PENDING",
|
|
1159
|
-
"revert_execution": true
|
|
1160
|
-
}
|
|
1161
|
-
},
|
|
1162
|
-
"decisionTaskBranch": {
|
|
1163
|
-
"summary": "Select branch for decision task",
|
|
1164
|
-
"description": "For manual decision tasks, specify which condition/branch to follow",
|
|
1165
|
-
"value": {
|
|
1166
|
-
"status": "COMPLETED",
|
|
1167
|
-
"next_condition_id": "cond_branch_a"
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
950
|
}
|
|
1171
951
|
}
|
|
1172
952
|
}
|
|
1173
953
|
},
|
|
1174
954
|
"responses": {
|
|
1175
955
|
"200": {
|
|
1176
|
-
"description": "
|
|
956
|
+
"description": "Success - when task has been successfully updated",
|
|
1177
957
|
"content": {
|
|
1178
958
|
"application/json": {
|
|
1179
959
|
"schema": {
|
|
@@ -1183,53 +963,31 @@
|
|
|
1183
963
|
}
|
|
1184
964
|
},
|
|
1185
965
|
"400": {
|
|
1186
|
-
"description": "Validation
|
|
966
|
+
"description": "Validation Errors",
|
|
1187
967
|
"content": {
|
|
1188
968
|
"application/json": {
|
|
1189
969
|
"schema": {
|
|
1190
970
|
"$ref": "#/components/schemas/ErrorResp"
|
|
1191
|
-
},
|
|
1192
|
-
"example": {
|
|
1193
|
-
"message": "Invalid status transition from COMPLETED to IN_PROGRESS"
|
|
1194
971
|
}
|
|
1195
972
|
}
|
|
1196
973
|
}
|
|
1197
974
|
},
|
|
1198
975
|
"401": {
|
|
1199
|
-
"description": "Authentication
|
|
1200
|
-
"content": {
|
|
1201
|
-
"application/json": {
|
|
1202
|
-
"schema": {
|
|
1203
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1204
|
-
},
|
|
1205
|
-
"example": {
|
|
1206
|
-
"message": "Unauthorized"
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
},
|
|
1211
|
-
"404": {
|
|
1212
|
-
"description": "Task or execution not found. The specified execution_id or task_id does not exist.\n",
|
|
976
|
+
"description": "Authentication Errors",
|
|
1213
977
|
"content": {
|
|
1214
978
|
"application/json": {
|
|
1215
979
|
"schema": {
|
|
1216
980
|
"$ref": "#/components/schemas/ErrorResp"
|
|
1217
|
-
},
|
|
1218
|
-
"example": {
|
|
1219
|
-
"message": "Task not found"
|
|
1220
981
|
}
|
|
1221
982
|
}
|
|
1222
983
|
}
|
|
1223
984
|
},
|
|
1224
985
|
"500": {
|
|
1225
|
-
"description": "
|
|
986
|
+
"description": "Other errors",
|
|
1226
987
|
"content": {
|
|
1227
988
|
"application/json": {
|
|
1228
989
|
"schema": {
|
|
1229
990
|
"$ref": "#/components/schemas/ErrorResp"
|
|
1230
|
-
},
|
|
1231
|
-
"example": {
|
|
1232
|
-
"message": "Internal server error"
|
|
1233
991
|
}
|
|
1234
992
|
}
|
|
1235
993
|
}
|
|
@@ -1559,86 +1317,6 @@
|
|
|
1559
1317
|
}
|
|
1560
1318
|
}
|
|
1561
1319
|
},
|
|
1562
|
-
"/v2/flows/executions/{execution_id}/tasks/{task_id}/reconcile-automation": {
|
|
1563
|
-
"post": {
|
|
1564
|
-
"operationId": "reconcileAutomationTask",
|
|
1565
|
-
"summary": "reconcileAutomationTask",
|
|
1566
|
-
"description": "Reconciles an automation task's status against its linked automation execution.\n\nLooks the task up by id (whether or not it is currently a `crt_task`),\nfetches its automation execution, and — if the automation has reached a\nterminal state (success/failed/skipped) — corrects the task's `status`,\n`automation_config` and `analytics` to match and persists them. If the\ntask is the current task and the flow is still active, the flow is\nadvanced; otherwise only the task record is corrected.\n\nUsed by the \"Refresh status\" action to recover a task left `IN_PROGRESS`\nafter a missed or clobbered completion event. No-op (returns the\nexecution unchanged) when the task is already terminal or the automation\nis still running.\n",
|
|
1567
|
-
"tags": [
|
|
1568
|
-
"Flows V2"
|
|
1569
|
-
],
|
|
1570
|
-
"parameters": [
|
|
1571
|
-
{
|
|
1572
|
-
"$ref": "#/components/parameters/ExecutionIdParam"
|
|
1573
|
-
},
|
|
1574
|
-
{
|
|
1575
|
-
"$ref": "#/components/parameters/TaskIdParam"
|
|
1576
|
-
}
|
|
1577
|
-
],
|
|
1578
|
-
"responses": {
|
|
1579
|
-
"200": {
|
|
1580
|
-
"description": "Success - returns the (possibly updated) flow execution",
|
|
1581
|
-
"content": {
|
|
1582
|
-
"application/json": {
|
|
1583
|
-
"schema": {
|
|
1584
|
-
"$ref": "#/components/schemas/FlowExecution"
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
}
|
|
1588
|
-
},
|
|
1589
|
-
"400": {
|
|
1590
|
-
"description": "Validation Errors",
|
|
1591
|
-
"content": {
|
|
1592
|
-
"application/json": {
|
|
1593
|
-
"schema": {
|
|
1594
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
},
|
|
1599
|
-
"401": {
|
|
1600
|
-
"description": "Authentication Errors",
|
|
1601
|
-
"content": {
|
|
1602
|
-
"application/json": {
|
|
1603
|
-
"schema": {
|
|
1604
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
},
|
|
1609
|
-
"403": {
|
|
1610
|
-
"description": "Forbidden",
|
|
1611
|
-
"content": {
|
|
1612
|
-
"application/json": {
|
|
1613
|
-
"schema": {
|
|
1614
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
"404": {
|
|
1620
|
-
"description": "Not Found",
|
|
1621
|
-
"content": {
|
|
1622
|
-
"application/json": {
|
|
1623
|
-
"schema": {
|
|
1624
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1625
|
-
}
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
},
|
|
1629
|
-
"500": {
|
|
1630
|
-
"description": "Other errors",
|
|
1631
|
-
"content": {
|
|
1632
|
-
"application/json": {
|
|
1633
|
-
"schema": {
|
|
1634
|
-
"$ref": "#/components/schemas/ErrorResp"
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
},
|
|
1642
1320
|
"/v2/flows/executions/{execution_id}/tasks/{task_id}/schedule/run-now": {
|
|
1643
1321
|
"post": {
|
|
1644
1322
|
"operationId": "runTaskScheduleNow",
|
|
@@ -1790,8 +1468,8 @@
|
|
|
1790
1468
|
"type": "string"
|
|
1791
1469
|
},
|
|
1792
1470
|
"required": true,
|
|
1793
|
-
"description": "
|
|
1794
|
-
"example": "
|
|
1471
|
+
"description": "Id of the execution",
|
|
1472
|
+
"example": "wd561"
|
|
1795
1473
|
},
|
|
1796
1474
|
"TaskIdParam": {
|
|
1797
1475
|
"in": "path",
|
|
@@ -1800,8 +1478,8 @@
|
|
|
1800
1478
|
"type": "string"
|
|
1801
1479
|
},
|
|
1802
1480
|
"required": true,
|
|
1803
|
-
"description": "
|
|
1804
|
-
"example": "
|
|
1481
|
+
"description": "Id of the task",
|
|
1482
|
+
"example": "7hj28a"
|
|
1805
1483
|
},
|
|
1806
1484
|
"PhaseIdParam": {
|
|
1807
1485
|
"in": "path",
|
|
@@ -1810,8 +1488,8 @@
|
|
|
1810
1488
|
"type": "string"
|
|
1811
1489
|
},
|
|
1812
1490
|
"required": true,
|
|
1813
|
-
"description": "
|
|
1814
|
-
"example": "
|
|
1491
|
+
"description": "Id of the phase",
|
|
1492
|
+
"example": "9gjs2952j"
|
|
1815
1493
|
},
|
|
1816
1494
|
"ScheduleIdParam": {
|
|
1817
1495
|
"in": "path",
|
|
@@ -1820,7 +1498,7 @@
|
|
|
1820
1498
|
"type": "string"
|
|
1821
1499
|
},
|
|
1822
1500
|
"required": true,
|
|
1823
|
-
"description": "
|
|
1501
|
+
"description": "Id of the schedule",
|
|
1824
1502
|
"example": "sch_8k2m9n4p"
|
|
1825
1503
|
},
|
|
1826
1504
|
"SoftDeleteParam": {
|
|
@@ -1831,7 +1509,7 @@
|
|
|
1831
1509
|
"default": false
|
|
1832
1510
|
},
|
|
1833
1511
|
"required": false,
|
|
1834
|
-
"description": "
|
|
1512
|
+
"description": "If true, the execution will NOT be deleted permanently, but rather kept for archive purpose.",
|
|
1835
1513
|
"example": true
|
|
1836
1514
|
}
|
|
1837
1515
|
},
|
|
@@ -2928,17 +2606,11 @@
|
|
|
2928
2606
|
},
|
|
2929
2607
|
"ErrorResp": {
|
|
2930
2608
|
"type": "object",
|
|
2931
|
-
"description": "Standard error response returned when an API request fails.\nContains a human-readable message describing the error.\n",
|
|
2932
2609
|
"properties": {
|
|
2933
2610
|
"message": {
|
|
2934
|
-
"type": "string"
|
|
2935
|
-
"description": "Human-readable description of the error that occurred",
|
|
2936
|
-
"example": "Validation failed: workflowId is required"
|
|
2611
|
+
"type": "string"
|
|
2937
2612
|
}
|
|
2938
|
-
}
|
|
2939
|
-
"required": [
|
|
2940
|
-
"message"
|
|
2941
|
-
]
|
|
2613
|
+
}
|
|
2942
2614
|
},
|
|
2943
2615
|
"ClosingReasonResp": {
|
|
2944
2616
|
"type": "object",
|
|
@@ -3272,23 +2944,19 @@
|
|
|
3272
2944
|
},
|
|
3273
2945
|
"StartFlowReq": {
|
|
3274
2946
|
"type": "object",
|
|
3275
|
-
"description": "Request payload for starting a new flow execution from a template.\n",
|
|
3276
2947
|
"required": [
|
|
3277
2948
|
"flow_template_id",
|
|
3278
2949
|
"contexts"
|
|
3279
2950
|
],
|
|
3280
2951
|
"properties": {
|
|
3281
2952
|
"flow_template_id": {
|
|
3282
|
-
"type": "string"
|
|
3283
|
-
"description": "The unique identifier of the flow template (definition) to instantiate.\nThe template must exist and be accessible within the organization.\n",
|
|
3284
|
-
"example": "tpl_abc123def456"
|
|
2953
|
+
"type": "string"
|
|
3285
2954
|
},
|
|
3286
2955
|
"trigger": {
|
|
3287
2956
|
"$ref": "#/components/schemas/FlowTrigger"
|
|
3288
2957
|
},
|
|
3289
2958
|
"contexts": {
|
|
3290
2959
|
"type": "array",
|
|
3291
|
-
"description": "Entity references that this execution is linked to. At least one context\nis required. The primary context (is_primary: true) is used for condition\nevaluation and data mapping.\n",
|
|
3292
2960
|
"minItems": 1,
|
|
3293
2961
|
"items": {
|
|
3294
2962
|
"$ref": "#/components/schemas/FlowContext"
|
|
@@ -3299,7 +2967,7 @@
|
|
|
3299
2967
|
"items": {
|
|
3300
2968
|
"type": "string"
|
|
3301
2969
|
},
|
|
3302
|
-
"description": "
|
|
2970
|
+
"description": "An array of purposes to filter workflow phases."
|
|
3303
2971
|
}
|
|
3304
2972
|
}
|
|
3305
2973
|
},
|
|
@@ -3433,11 +3101,6 @@
|
|
|
3433
3101
|
"properties": {
|
|
3434
3102
|
"id": {
|
|
3435
3103
|
"$ref": "#/components/schemas/TaskId"
|
|
3436
|
-
},
|
|
3437
|
-
"crt_since": {
|
|
3438
|
-
"type": "string",
|
|
3439
|
-
"format": "date-time",
|
|
3440
|
-
"description": "Timestamp when this task entered crt_tasks (i.e. became current). Used by the flow-healing-service as the authoritative gate for \"has this PENDING task been stuck long enough to heal?\". Using the task's own analytics.status_updated_at as the gate produced false positives because transitioning a task INTO crt_tasks does not change its status — so that timestamp can be hours old for a freshly-current task."
|
|
3441
3104
|
}
|
|
3442
3105
|
}
|
|
3443
3106
|
}
|
|
@@ -3747,10 +3410,6 @@
|
|
|
3747
3410
|
"schedule_id": {
|
|
3748
3411
|
"type": "string",
|
|
3749
3412
|
"description": "The id of the created schedule"
|
|
3750
|
-
},
|
|
3751
|
-
"scheduled_at": {
|
|
3752
|
-
"type": "string",
|
|
3753
|
-
"description": "The resolved absolute timestamp (ISO 8601, UTC) at which the task is\narmed to run. Set by the backend when the schedule is armed and the\ntask transitions to SCHEDULED. Absent while the task is still\npending/unscheduled.\n\nNote: intentionally typed as plain `string` (not\n`format: date-time`). `schedule` is embedded in the AutomationTask /\nDecisionTask schemas; if a future request body ever accepts a task\n(or schedule) and `safeParse`s it, `format: date-time` would make\nopenapi-zod-client emit `z.string().datetime({ offset: true })` and\nreject any round-tripped value that is empty or tz-less — the exact\nmechanism behind the May 2026 due_date incident (513ed597 added the\nformat, ee574b43 activated it via an unrelated regen; see commit\n2c91ff35). This field is server-written via `toISOString()` so it is\nalways a valid UTC instant; the datetime validator adds no\nprotection, only latent risk.\n"
|
|
3754
3413
|
}
|
|
3755
3414
|
}
|
|
3756
3415
|
},
|
|
@@ -3808,10 +3467,6 @@
|
|
|
3808
3467
|
"schedule_id": {
|
|
3809
3468
|
"type": "string",
|
|
3810
3469
|
"description": "The id of the created schedule"
|
|
3811
|
-
},
|
|
3812
|
-
"scheduled_at": {
|
|
3813
|
-
"type": "string",
|
|
3814
|
-
"description": "The resolved absolute timestamp (ISO 8601, UTC) at which the task is\narmed to run. Set by the backend when the schedule is armed and the\ntask transitions to SCHEDULED. Absent while the task is still\npending/unscheduled.\n\nNote: intentionally typed as plain `string` (not\n`format: date-time`). `schedule` is embedded in the AutomationTask /\nDecisionTask schemas; if a future request body ever accepts a task\n(or schedule) and `safeParse`s it, `format: date-time` would make\nopenapi-zod-client emit `z.string().datetime({ offset: true })` and\nreject any round-tripped value that is empty or tz-less — the exact\nmechanism behind the May 2026 due_date incident (513ed597 added the\nformat, ee574b43 activated it via an unrelated regen; see commit\n2c91ff35). This field is server-written via `toISOString()` so it is\nalways a valid UTC instant; the datetime validator adds no\nprotection, only latent risk.\n"
|
|
3815
3470
|
}
|
|
3816
3471
|
},
|
|
3817
3472
|
"required": [
|
|
@@ -3921,10 +3576,6 @@
|
|
|
3921
3576
|
},
|
|
3922
3577
|
"error_reason": {
|
|
3923
3578
|
"type": "string"
|
|
3924
|
-
},
|
|
3925
|
-
"outcome": {
|
|
3926
|
-
"type": "string",
|
|
3927
|
-
"description": "Server-computed outcome read from the agent execution's structured_output (e.g. assigned, recommended, no_eligible_partner, missing_input). When the outcome means the work is not really done (no_eligible_partner, missing_input) the task is held as the current task instead of auto-completing, so the phase does not advance."
|
|
3928
3579
|
}
|
|
3929
3580
|
}
|
|
3930
3581
|
},
|
|
@@ -4116,15 +3767,6 @@
|
|
|
4116
3767
|
},
|
|
4117
3768
|
"input_context": {
|
|
4118
3769
|
"$ref": "#/components/schemas/AutomationInputContext"
|
|
4119
|
-
},
|
|
4120
|
-
"heal_attempts": {
|
|
4121
|
-
"type": "integer",
|
|
4122
|
-
"description": "Internal — number of times flow-healing-service has attempted to re-trigger this task's lost automation dispatch. Used to cap retries and avoid an indefinite heal-on-every-read storm against a deterministically-failing automation flow."
|
|
4123
|
-
},
|
|
4124
|
-
"last_heal_attempted_at": {
|
|
4125
|
-
"type": "string",
|
|
4126
|
-
"format": "date-time",
|
|
4127
|
-
"description": "Internal — timestamp of the most recent heal attempt for this task. flow-healing-service uses this as a per-task debounce gate so the heal cannot fire more than once per HEAL_RETRY_COOLDOWN_MS regardless of how often the flow execution is read."
|
|
4128
3770
|
}
|
|
4129
3771
|
},
|
|
4130
3772
|
"required": [
|
|
@@ -4336,22 +3978,6 @@
|
|
|
4336
3978
|
"deleted"
|
|
4337
3979
|
]
|
|
4338
3980
|
},
|
|
4339
|
-
"attributes": {
|
|
4340
|
-
"type": "array",
|
|
4341
|
-
"maxItems": 10,
|
|
4342
|
-
"items": {
|
|
4343
|
-
"type": "string"
|
|
4344
|
-
},
|
|
4345
|
-
"description": "Multi-attribute mode. When present and length > 1, the statement is\nevaluated against every listed attribute and combined via\n`attributes_match`. All listed attributes must share the same\n`attribute_type`. Mutually exclusive with `attribute_sub_field`,\n`date_offset`, and `attribute_operation`. When absent or length === 1,\nthe legacy `attribute` field is used.\n"
|
|
4346
|
-
},
|
|
4347
|
-
"attributes_match": {
|
|
4348
|
-
"type": "string",
|
|
4349
|
-
"enum": [
|
|
4350
|
-
"any",
|
|
4351
|
-
"all"
|
|
4352
|
-
],
|
|
4353
|
-
"description": "Inner connector across `attributes`. `any` (default) means at least\none attribute must satisfy the operator; `all` means every attribute\nmust satisfy it. Ignored when `attributes` is absent or has length < 2.\n"
|
|
4354
|
-
},
|
|
4355
3981
|
"attribute_sub_field": {
|
|
4356
3982
|
"type": "string",
|
|
4357
3983
|
"description": "For complex attribute types, specifies which sub-field to extract (e.g., 'address', 'name', 'email_type')"
|
|
@@ -4436,8 +4062,7 @@
|
|
|
4436
4062
|
"hours",
|
|
4437
4063
|
"days",
|
|
4438
4064
|
"weeks",
|
|
4439
|
-
"months"
|
|
4440
|
-
"years"
|
|
4065
|
+
"months"
|
|
4441
4066
|
]
|
|
4442
4067
|
},
|
|
4443
4068
|
"EnableRequirement": {
|
|
@@ -4514,20 +4139,16 @@
|
|
|
4514
4139
|
},
|
|
4515
4140
|
"PatchTaskReq": {
|
|
4516
4141
|
"type": "object",
|
|
4517
|
-
"description": "Request payload for updating a task within a flow execution.\nAll fields are optional; only provided fields will be updated.\n",
|
|
4518
4142
|
"properties": {
|
|
4519
4143
|
"name": {
|
|
4520
|
-
"type": "string"
|
|
4521
|
-
"description": "Display name of the task",
|
|
4522
|
-
"example": "Review customer application"
|
|
4144
|
+
"type": "string"
|
|
4523
4145
|
},
|
|
4524
4146
|
"status": {
|
|
4525
4147
|
"$ref": "#/components/schemas/StepStatus"
|
|
4526
4148
|
},
|
|
4527
4149
|
"due_date": {
|
|
4528
4150
|
"type": "string",
|
|
4529
|
-
"
|
|
4530
|
-
"example": "2026-05-28T00:00:00.000"
|
|
4151
|
+
"example": "2021-04-27T12:00:00.000Z"
|
|
4531
4152
|
},
|
|
4532
4153
|
"due_date_config": {
|
|
4533
4154
|
"$ref": "#/components/schemas/DueDateConfig"
|
|
@@ -4537,7 +4158,7 @@
|
|
|
4537
4158
|
},
|
|
4538
4159
|
"enabled": {
|
|
4539
4160
|
"type": "boolean",
|
|
4540
|
-
"description": "
|
|
4161
|
+
"description": "flag for controlling enabled/disabled state of the task"
|
|
4541
4162
|
},
|
|
4542
4163
|
"automation_config": {
|
|
4543
4164
|
"$ref": "#/components/schemas/AutomationInfo"
|
|
@@ -4557,17 +4178,11 @@
|
|
|
4557
4178
|
},
|
|
4558
4179
|
"next_condition_id": {
|
|
4559
4180
|
"type": "string",
|
|
4560
|
-
"description": "
|
|
4561
|
-
"example": "cond_branch_approved"
|
|
4181
|
+
"description": "Condition to evaluate as true for a decision task with a manual trigger mode"
|
|
4562
4182
|
},
|
|
4563
4183
|
"revert_execution": {
|
|
4564
4184
|
"type": "boolean",
|
|
4565
|
-
"description": "
|
|
4566
|
-
"default": false
|
|
4567
|
-
},
|
|
4568
|
-
"completed_via_journey": {
|
|
4569
|
-
"type": "boolean",
|
|
4570
|
-
"description": "Request-only signal indicating the task is being completed as a\nresult of the user submitting the task's linked journey (journey\nauto-completion). When `true` and the task transitions to\n`COMPLETED`, the activity log records a journey-specific message\ninstead of the generic completion message. Not persisted on the task.\n",
|
|
4185
|
+
"description": "When patching an already completed/skipped task that comes before the current task, this flag controls whether to revert the execution:\n- `true`: The patched task becomes the current task AND all succeeding tasks are reset to PENDING (full revert)\n- `false` or omitted (undefined): The task is updated but the current task does not change and no downstream tasks are affected\nThis parameter is silently ignored when patching the current task or future tasks.\n",
|
|
4571
4186
|
"default": false
|
|
4572
4187
|
}
|
|
4573
4188
|
}
|