@epilot/sdk 2.9.0 → 2.9.1
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/LICENSE +21 -0
- package/README.md +1 -0
- package/definitions/access-token-runtime.json +1 -1
- package/definitions/access-token.json +155 -1
- package/definitions/automation.json +120 -0
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +571 -1
- package/definitions/journey.json +19 -2
- package/definitions/snapshot-runtime.json +1 -0
- package/definitions/snapshot.json +935 -0
- package/definitions/targeting.json +5 -4
- package/definitions/user-runtime.json +1 -1
- package/definitions/user.json +441 -0
- package/dist/README-NBWAQWQS.js +7 -0
- package/dist/README-XCIDDEAE.cjs +7 -0
- package/dist/{_index-DB2VV4PQ.cjs → _index-D5TTZP5F.cjs} +4 -1
- package/dist/{_index-5FB6F5YY.js → _index-UY46ZN47.js} +3 -0
- package/dist/access-token-GD6REL4U.js +7 -0
- package/dist/access-token-NQ5BLMOW.cjs +7 -0
- package/dist/{access-token-runtime-KCKGT4O7.js → access-token-runtime-2PSLN2U3.js} +1 -1
- package/dist/{access-token-runtime-NZWZJPWV.cjs → access-token-runtime-B6Z7JLUS.cjs} +2 -2
- package/dist/{access-token.d-CnmUTOlq.d.cts → access-token.d-CegaQmrK.d.cts} +165 -5
- package/dist/{access-token.d-CnmUTOlq.d.ts → access-token.d-CegaQmrK.d.ts} +165 -5
- package/dist/{ai-agents.d-OkXfr2bz.d.cts → ai-agents.d-CC5IjXrs.d.cts} +0 -2
- package/dist/{ai-agents.d-OkXfr2bz.d.ts → ai-agents.d-CC5IjXrs.d.ts} +0 -2
- package/dist/apis/access-token.cjs +8 -8
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +2 -2
- 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 +6 -6
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +1 -1
- 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.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- 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 +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- 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 +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- 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 +38 -0
- package/dist/apis/snapshot.d.cts +18 -0
- package/dist/apis/snapshot.d.ts +18 -0
- package/dist/apis/snapshot.js +38 -0
- 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 +6 -6
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +8 -8
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +2 -2
- 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 +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/automation-S6NFS5KU.cjs +7 -0
- package/dist/automation-W75XZG7B.js +7 -0
- package/dist/{automation.d-Du6-uiz5.d.cts → automation.d-DS_YXDE8.d.cts} +300 -1
- package/dist/{automation.d-Du6-uiz5.d.ts → automation.d-DS_YXDE8.d.ts} +300 -1
- package/dist/blueprint-manifest-WHYSBU66.cjs +7 -0
- package/dist/blueprint-manifest-WZVBTKUL.js +7 -0
- package/dist/{blueprint-manifest-runtime-FRLU3ZSF.js → blueprint-manifest-runtime-2344IUIE.js} +1 -1
- package/dist/{blueprint-manifest-runtime-EIDOROIQ.cjs → blueprint-manifest-runtime-WU5MWPVT.cjs} +2 -2
- package/dist/{blueprint-manifest.d-B8yDxagC.d.cts → blueprint-manifest.d-2-TORV8o.d.cts} +926 -4
- package/dist/{blueprint-manifest.d-B8yDxagC.d.ts → blueprint-manifest.d-2-TORV8o.d.ts} +926 -4
- package/dist/chunk-54QNWEPZ.js +14 -0
- package/dist/{chunk-CULH5PIN.cjs → chunk-6V3NYADA.cjs} +13 -11
- package/dist/chunk-NFIYEMMM.js +14 -0
- package/dist/{chunk-XSE4CFSM.js → chunk-OHHHS4HH.js} +1 -1
- package/dist/chunk-OWXEZ56F.cjs +14 -0
- package/dist/{chunk-RZ4ABDOF.js → chunk-QGP5WMHK.js} +13 -11
- package/dist/{chunk-OXJOO2YF.cjs → chunk-S5HBBTKM.cjs} +1 -1
- package/dist/{chunk-NGHCQ2FA.cjs → chunk-T57MT6J5.cjs} +1 -1
- package/dist/{chunk-4YBWMDFP.js → chunk-UWGWRGGB.js} +1 -1
- package/dist/chunk-YXJ4PBFQ.cjs +14 -0
- package/dist/index.cjs +24 -16
- package/dist/index.d.cts +23 -21
- package/dist/index.d.ts +23 -21
- package/dist/index.js +14 -6
- package/dist/journey-LHVSSVTG.cjs +7 -0
- package/dist/journey-NXL264XW.js +7 -0
- package/dist/{journey.d-BenIUWaO.d.ts → journey.d-B1sOeMHw.d.cts} +16 -3
- package/dist/{journey.d-BenIUWaO.d.cts → journey.d-B1sOeMHw.d.ts} +16 -3
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/snapshot-2HFERXRQ.js +7 -0
- package/dist/snapshot-UHCQAT4R.cjs +7 -0
- package/dist/snapshot-runtime-6DV42FVY.cjs +5 -0
- package/dist/snapshot-runtime-IW57MINC.js +5 -0
- package/dist/snapshot.d-CqefmvuB.d.cts +724 -0
- package/dist/snapshot.d-CqefmvuB.d.ts +724 -0
- package/dist/{targeting-DAFJBPIZ.cjs → targeting-WC62BBZN.cjs} +1 -1
- package/dist/{targeting-TGPCRRI6.js → targeting-X4Y2ODBT.js} +1 -1
- package/dist/{targeting.d-DxHQbn7-.d.cts → targeting.d-0rNF7ErD.d.cts} +11 -4
- package/dist/{targeting.d-DxHQbn7-.d.ts → targeting.d-0rNF7ErD.d.ts} +11 -4
- package/dist/user-3SLAEEVD.cjs +7 -0
- package/dist/user-PRUYBXQV.js +7 -0
- package/dist/{user-runtime-U4HYUWJU.js → user-runtime-6ICV2Y73.js} +1 -1
- package/dist/user-runtime-Y3227ETX.cjs +5 -0
- package/dist/{user.d-D18fe97W.d.cts → user.d-L-C7_K84.d.cts} +421 -1
- package/dist/{user.d-D18fe97W.d.ts → user.d-L-C7_K84.d.ts} +421 -1
- package/docs/access-token.md +111 -3
- package/docs/automation.md +180 -37
- package/docs/blueprint-manifest.md +421 -95
- package/docs/journey.md +28 -8
- package/docs/snapshot.md +607 -0
- package/docs/targeting.md +6 -3
- package/docs/user.md +321 -8
- package/package.json +20 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/README-46VYEGGW.js +0 -7
- package/dist/README-IVBISSWB.cjs +0 -7
- package/dist/access-token-6BJDZSFE.cjs +0 -7
- package/dist/access-token-GSQZLDXR.js +0 -7
- package/dist/automation-BMO7ZFTN.cjs +0 -7
- package/dist/automation-MEZTSUR3.js +0 -7
- package/dist/blueprint-manifest-6DEYW5MW.js +0 -7
- package/dist/blueprint-manifest-GCV7H74X.cjs +0 -7
- package/dist/chunk-3XKBB5AE.js +0 -14
- package/dist/chunk-Z5TVWG3I.cjs +0 -14
- package/dist/journey-4DIIPRU4.js +0 -7
- package/dist/journey-ATC3Y5AW.cjs +0 -7
- package/dist/user-7ZN2XO7G.cjs +0 -7
- package/dist/user-ZK7BK6VY.js +0 -7
- package/dist/user-runtime-7O2HLFVQ.cjs +0 -5
package/docs/automation.md
CHANGED
|
@@ -56,7 +56,9 @@ const { data } = await automationClient.searchFlows(...)
|
|
|
56
56
|
- [`AnyAction`](#anyaction)
|
|
57
57
|
- [`AnyActionConfig`](#anyactionconfig)
|
|
58
58
|
- [`AutomationActionConfig`](#automationactionconfig)
|
|
59
|
+
- [`AutomationLoop`](#automationloop)
|
|
59
60
|
- [`AutomationActionExecutionState`](#automationactionexecutionstate)
|
|
61
|
+
- [`AutomationActionIteration`](#automationactioniteration)
|
|
60
62
|
- [`RetryStrategy`](#retrystrategy)
|
|
61
63
|
- [`AutomationAction`](#automationaction)
|
|
62
64
|
- [`ErrorOutput`](#erroroutput)
|
|
@@ -124,6 +126,7 @@ const { data } = await automationClient.searchFlows(...)
|
|
|
124
126
|
- [`ActionSchedule`](#actionschedule)
|
|
125
127
|
- [`AutomationExecutionId`](#automationexecutionid)
|
|
126
128
|
- [`AutomationExecution`](#automationexecution)
|
|
129
|
+
- [`AutomationLoopState`](#automationloopstate)
|
|
127
130
|
- [`WorkflowExecutionContext`](#workflowexecutioncontext)
|
|
128
131
|
- [`ExecutionChain`](#executionchain)
|
|
129
132
|
- [`TriggerEventManual`](#triggereventmanual)
|
|
@@ -311,7 +314,9 @@ const { data } = await client.getExecutions({
|
|
|
311
314
|
"trigger_context": {},
|
|
312
315
|
"version": 2,
|
|
313
316
|
"trigger_event": {},
|
|
314
|
-
"workflow_context": {}
|
|
317
|
+
"workflow_context": {},
|
|
318
|
+
"loops": [],
|
|
319
|
+
"loop_state": {}
|
|
315
320
|
}
|
|
316
321
|
]
|
|
317
322
|
}
|
|
@@ -385,6 +390,7 @@ const { data } = await client.startExecution(
|
|
|
385
390
|
"id": "string",
|
|
386
391
|
"schedule_id": "string",
|
|
387
392
|
"evaluationResult": true,
|
|
393
|
+
"error_output": {},
|
|
388
394
|
"statements": []
|
|
389
395
|
}
|
|
390
396
|
],
|
|
@@ -411,12 +417,14 @@ const { data } = await client.startExecution(
|
|
|
411
417
|
"reason": {},
|
|
412
418
|
"condition_id": "string",
|
|
413
419
|
"schedule_id": "string",
|
|
420
|
+
"loop_id": "string",
|
|
414
421
|
"execution_status": "pending",
|
|
415
422
|
"started_at": "string",
|
|
416
423
|
"updated_at": "string",
|
|
417
424
|
"outputs": {},
|
|
418
425
|
"error_output": {},
|
|
419
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
426
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
427
|
+
"iterations": []
|
|
420
428
|
},
|
|
421
429
|
{
|
|
422
430
|
"id": "9ec3711b-db63-449c-b894-54d5bb622a8f",
|
|
@@ -430,12 +438,14 @@ const { data } = await client.startExecution(
|
|
|
430
438
|
"reason": {},
|
|
431
439
|
"condition_id": "string",
|
|
432
440
|
"schedule_id": "string",
|
|
441
|
+
"loop_id": "string",
|
|
433
442
|
"execution_status": "pending",
|
|
434
443
|
"started_at": "string",
|
|
435
444
|
"updated_at": "string",
|
|
436
445
|
"outputs": {},
|
|
437
446
|
"error_output": {},
|
|
438
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
447
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
448
|
+
"iterations": []
|
|
439
449
|
}
|
|
440
450
|
],
|
|
441
451
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
@@ -463,7 +473,16 @@ const { data } = await client.startExecution(
|
|
|
463
473
|
"entity_contexts": [
|
|
464
474
|
{}
|
|
465
475
|
]
|
|
466
|
-
}
|
|
476
|
+
},
|
|
477
|
+
"loops": [
|
|
478
|
+
{
|
|
479
|
+
"id": "loop_contracts",
|
|
480
|
+
"source_path": "submission.steps[0]['Contracts']",
|
|
481
|
+
"source_type": "journey-multi-select",
|
|
482
|
+
"length": 0
|
|
483
|
+
}
|
|
484
|
+
],
|
|
485
|
+
"loop_state": {}
|
|
467
486
|
}
|
|
468
487
|
```
|
|
469
488
|
|
|
@@ -672,6 +691,7 @@ const { data } = await client.getExecution({
|
|
|
672
691
|
"id": "string",
|
|
673
692
|
"schedule_id": "string",
|
|
674
693
|
"evaluationResult": true,
|
|
694
|
+
"error_output": {},
|
|
675
695
|
"statements": []
|
|
676
696
|
}
|
|
677
697
|
],
|
|
@@ -698,12 +718,14 @@ const { data } = await client.getExecution({
|
|
|
698
718
|
"reason": {},
|
|
699
719
|
"condition_id": "string",
|
|
700
720
|
"schedule_id": "string",
|
|
721
|
+
"loop_id": "string",
|
|
701
722
|
"execution_status": "pending",
|
|
702
723
|
"started_at": "string",
|
|
703
724
|
"updated_at": "string",
|
|
704
725
|
"outputs": {},
|
|
705
726
|
"error_output": {},
|
|
706
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
727
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
728
|
+
"iterations": []
|
|
707
729
|
},
|
|
708
730
|
{
|
|
709
731
|
"id": "9ec3711b-db63-449c-b894-54d5bb622a8f",
|
|
@@ -717,12 +739,14 @@ const { data } = await client.getExecution({
|
|
|
717
739
|
"reason": {},
|
|
718
740
|
"condition_id": "string",
|
|
719
741
|
"schedule_id": "string",
|
|
742
|
+
"loop_id": "string",
|
|
720
743
|
"execution_status": "pending",
|
|
721
744
|
"started_at": "string",
|
|
722
745
|
"updated_at": "string",
|
|
723
746
|
"outputs": {},
|
|
724
747
|
"error_output": {},
|
|
725
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
748
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
749
|
+
"iterations": []
|
|
726
750
|
}
|
|
727
751
|
],
|
|
728
752
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
@@ -750,7 +774,16 @@ const { data } = await client.getExecution({
|
|
|
750
774
|
"entity_contexts": [
|
|
751
775
|
{}
|
|
752
776
|
]
|
|
753
|
-
}
|
|
777
|
+
},
|
|
778
|
+
"loops": [
|
|
779
|
+
{
|
|
780
|
+
"id": "loop_contracts",
|
|
781
|
+
"source_path": "submission.steps[0]['Contracts']",
|
|
782
|
+
"source_type": "journey-multi-select",
|
|
783
|
+
"length": 0
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
"loop_state": {}
|
|
754
787
|
}
|
|
755
788
|
```
|
|
756
789
|
|
|
@@ -799,6 +832,7 @@ const { data } = await client.cancelExecution({
|
|
|
799
832
|
"id": "string",
|
|
800
833
|
"schedule_id": "string",
|
|
801
834
|
"evaluationResult": true,
|
|
835
|
+
"error_output": {},
|
|
802
836
|
"statements": []
|
|
803
837
|
}
|
|
804
838
|
],
|
|
@@ -825,12 +859,14 @@ const { data } = await client.cancelExecution({
|
|
|
825
859
|
"reason": {},
|
|
826
860
|
"condition_id": "string",
|
|
827
861
|
"schedule_id": "string",
|
|
862
|
+
"loop_id": "string",
|
|
828
863
|
"execution_status": "pending",
|
|
829
864
|
"started_at": "string",
|
|
830
865
|
"updated_at": "string",
|
|
831
866
|
"outputs": {},
|
|
832
867
|
"error_output": {},
|
|
833
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
868
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
869
|
+
"iterations": []
|
|
834
870
|
},
|
|
835
871
|
{
|
|
836
872
|
"id": "9ec3711b-db63-449c-b894-54d5bb622a8f",
|
|
@@ -844,12 +880,14 @@ const { data } = await client.cancelExecution({
|
|
|
844
880
|
"reason": {},
|
|
845
881
|
"condition_id": "string",
|
|
846
882
|
"schedule_id": "string",
|
|
883
|
+
"loop_id": "string",
|
|
847
884
|
"execution_status": "pending",
|
|
848
885
|
"started_at": "string",
|
|
849
886
|
"updated_at": "string",
|
|
850
887
|
"outputs": {},
|
|
851
888
|
"error_output": {},
|
|
852
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
889
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
890
|
+
"iterations": []
|
|
853
891
|
}
|
|
854
892
|
],
|
|
855
893
|
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
@@ -877,7 +915,16 @@ const { data } = await client.cancelExecution({
|
|
|
877
915
|
"entity_contexts": [
|
|
878
916
|
{}
|
|
879
917
|
]
|
|
880
|
-
}
|
|
918
|
+
},
|
|
919
|
+
"loops": [
|
|
920
|
+
{
|
|
921
|
+
"id": "loop_contracts",
|
|
922
|
+
"source_path": "submission.steps[0]['Contracts']",
|
|
923
|
+
"source_type": "journey-multi-select",
|
|
924
|
+
"length": 0
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
"loop_state": {}
|
|
881
928
|
}
|
|
882
929
|
```
|
|
883
930
|
|
|
@@ -973,7 +1020,11 @@ const { data } = await client.resumeExecutionWithToken(
|
|
|
973
1020
|
"workflow_role": "trigger_workflow",
|
|
974
1021
|
"_execution_chain": {},
|
|
975
1022
|
"entity_contexts": []
|
|
976
|
-
}
|
|
1023
|
+
},
|
|
1024
|
+
"loops": [
|
|
1025
|
+
{}
|
|
1026
|
+
],
|
|
1027
|
+
"loop_state": {}
|
|
977
1028
|
},
|
|
978
1029
|
"resumedAction": {
|
|
979
1030
|
"id": "9ec3711b-db63-449c-b894-54d5bb622a8f",
|
|
@@ -998,6 +1049,7 @@ const { data } = await client.resumeExecutionWithToken(
|
|
|
998
1049
|
},
|
|
999
1050
|
"condition_id": "string",
|
|
1000
1051
|
"schedule_id": "string",
|
|
1052
|
+
"loop_id": "string",
|
|
1001
1053
|
"execution_status": "pending",
|
|
1002
1054
|
"started_at": "string",
|
|
1003
1055
|
"updated_at": "string",
|
|
@@ -1007,7 +1059,10 @@ const { data } = await client.resumeExecutionWithToken(
|
|
|
1007
1059
|
"error_reason": "string",
|
|
1008
1060
|
"error_info": {}
|
|
1009
1061
|
},
|
|
1010
|
-
"retry_strategy": "RETRY_AND_RESUME"
|
|
1062
|
+
"retry_strategy": "RETRY_AND_RESUME",
|
|
1063
|
+
"iterations": [
|
|
1064
|
+
{}
|
|
1065
|
+
]
|
|
1011
1066
|
}
|
|
1012
1067
|
}
|
|
1013
1068
|
```
|
|
@@ -1152,6 +1207,11 @@ type AutomationFlow = {
|
|
|
1152
1207
|
id?: string
|
|
1153
1208
|
schedule_id?: string
|
|
1154
1209
|
evaluationResult?: boolean
|
|
1210
|
+
error_output?: {
|
|
1211
|
+
error_code: { ... }
|
|
1212
|
+
error_reason: { ... }
|
|
1213
|
+
error_info?: { ... }
|
|
1214
|
+
}
|
|
1155
1215
|
statements?: Array<{
|
|
1156
1216
|
id?: { ... }
|
|
1157
1217
|
source?: { ... }
|
|
@@ -1166,11 +1226,6 @@ type AutomationFlow = {
|
|
|
1166
1226
|
timePeriod?: "minutes" | "hours" | "days" | "weeks" | "months"
|
|
1167
1227
|
timeRelation?: "after" | "before"
|
|
1168
1228
|
source: {
|
|
1169
|
-
id: { ... }
|
|
1170
|
-
origin: { ... }
|
|
1171
|
-
schema?: { ... }
|
|
1172
|
-
attribute?: { ... }
|
|
1173
|
-
}
|
|
1174
1229
|
// ...
|
|
1175
1230
|
}
|
|
1176
1231
|
```
|
|
@@ -1244,6 +1299,7 @@ type SearchAutomationsResp = {
|
|
|
1244
1299
|
id?: { ... }
|
|
1245
1300
|
schedule_id?: { ... }
|
|
1246
1301
|
evaluationResult?: { ... }
|
|
1302
|
+
error_output?: { ... }
|
|
1247
1303
|
statements?: { ... }
|
|
1248
1304
|
}>
|
|
1249
1305
|
schedules?: Array<{
|
|
@@ -1254,6 +1310,12 @@ type SearchAutomationsResp = {
|
|
|
1254
1310
|
timeRelation?: { ... }
|
|
1255
1311
|
source: { ... }
|
|
1256
1312
|
}>
|
|
1313
|
+
loops?: Array<{
|
|
1314
|
+
id: { ... }
|
|
1315
|
+
source_path: { ... }
|
|
1316
|
+
source_type?: { ... }
|
|
1317
|
+
length?: { ... }
|
|
1318
|
+
}>
|
|
1257
1319
|
actions: Array<{
|
|
1258
1320
|
type?: { ... }
|
|
1259
1321
|
config?: { ... }
|
|
@@ -1279,13 +1341,6 @@ type SearchAutomationsResp = {
|
|
|
1279
1341
|
type?: { ... }
|
|
1280
1342
|
config?: { ... }
|
|
1281
1343
|
} | {
|
|
1282
|
-
type?: { ... }
|
|
1283
|
-
config?: { ... }
|
|
1284
|
-
} | {
|
|
1285
|
-
type?: { ... }
|
|
1286
|
-
config?: { ... }
|
|
1287
|
-
} | {
|
|
1288
|
-
id?: { ... }
|
|
1289
1344
|
// ...
|
|
1290
1345
|
}
|
|
1291
1346
|
```
|
|
@@ -1525,6 +1580,7 @@ type AnyActionConfig = {
|
|
|
1525
1580
|
}
|
|
1526
1581
|
condition_id?: string
|
|
1527
1582
|
schedule_id?: string
|
|
1583
|
+
loop_id?: string
|
|
1528
1584
|
} | {
|
|
1529
1585
|
id?: string
|
|
1530
1586
|
flow_action_id?: string
|
|
@@ -1555,6 +1611,7 @@ type AnyActionConfig = {
|
|
|
1555
1611
|
}
|
|
1556
1612
|
condition_id?: string
|
|
1557
1613
|
schedule_id?: string
|
|
1614
|
+
loop_id?: string
|
|
1558
1615
|
} | {
|
|
1559
1616
|
id?: string
|
|
1560
1617
|
flow_action_id?: string
|
|
@@ -1572,8 +1629,6 @@ type AnyActionConfig = {
|
|
|
1572
1629
|
}
|
|
1573
1630
|
condition_id?: string
|
|
1574
1631
|
schedule_id?: string
|
|
1575
|
-
} | {
|
|
1576
|
-
id?: string
|
|
1577
1632
|
// ...
|
|
1578
1633
|
}
|
|
1579
1634
|
```
|
|
@@ -1596,6 +1651,20 @@ type AutomationActionConfig = {
|
|
|
1596
1651
|
}
|
|
1597
1652
|
condition_id?: string
|
|
1598
1653
|
schedule_id?: string
|
|
1654
|
+
loop_id?: string
|
|
1655
|
+
}
|
|
1656
|
+
```
|
|
1657
|
+
|
|
1658
|
+
### `AutomationLoop`
|
|
1659
|
+
|
|
1660
|
+
A loop scope on an automation flow.
|
|
1661
|
+
|
|
1662
|
+
```ts
|
|
1663
|
+
type AutomationLoop = {
|
|
1664
|
+
id: string
|
|
1665
|
+
source_path: string
|
|
1666
|
+
source_type?: "journey-multi-select" | "previous-action-outputs" | "entity-relation"
|
|
1667
|
+
length?: number
|
|
1599
1668
|
}
|
|
1600
1669
|
```
|
|
1601
1670
|
|
|
@@ -1615,6 +1684,39 @@ type AutomationActionExecutionState = {
|
|
|
1615
1684
|
}
|
|
1616
1685
|
}
|
|
1617
1686
|
retry_strategy?: "RETRY_AND_RESUME" | "RETRY_AND_STOP" | "RETRY_ALL_PARENT_CONDITION_ACTIONS"
|
|
1687
|
+
iterations?: Array<{
|
|
1688
|
+
index: number
|
|
1689
|
+
execution_status: "pending" | "starting" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled" | "hot"
|
|
1690
|
+
started_at?: string // date-time
|
|
1691
|
+
ended_at?: string // date-time
|
|
1692
|
+
outputs?: Record<string, unknown>
|
|
1693
|
+
error_output?: {
|
|
1694
|
+
error_code: { ... }
|
|
1695
|
+
error_reason: { ... }
|
|
1696
|
+
error_info?: { ... }
|
|
1697
|
+
}
|
|
1698
|
+
}>
|
|
1699
|
+
}
|
|
1700
|
+
```
|
|
1701
|
+
|
|
1702
|
+
### `AutomationActionIteration`
|
|
1703
|
+
|
|
1704
|
+
A snapshot of a single completed pass through a looped action.
|
|
1705
|
+
|
|
1706
|
+
```ts
|
|
1707
|
+
type AutomationActionIteration = {
|
|
1708
|
+
index: number
|
|
1709
|
+
execution_status: "pending" | "starting" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled" | "hot"
|
|
1710
|
+
started_at?: string // date-time
|
|
1711
|
+
ended_at?: string // date-time
|
|
1712
|
+
outputs?: Record<string, unknown>
|
|
1713
|
+
error_output?: {
|
|
1714
|
+
error_code: "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR" | "TEMPLATE_ERROR" | "INVALID_PAYLOAD" | "INVALID_SCHEDULE_CONFIG" | "CUSTOM_ACTION_ERROR" | "ORDER_CREATION_ERROR" | "DOCUMENT_GENERATION_ERROR" | "BULK_EMAIL_ERROR" | "SHARING_ERROR" | "CANCEL_FLOW_EXECUTION_ERROR" | "METER_READING_NOT_FOUND" | "ENTITY_NOT_FOUND"
|
|
1715
|
+
error_reason: string
|
|
1716
|
+
error_info?: {
|
|
1717
|
+
details?: { ... }
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1618
1720
|
}
|
|
1619
1721
|
```
|
|
1620
1722
|
|
|
@@ -1644,6 +1746,7 @@ type AutomationAction = {
|
|
|
1644
1746
|
}
|
|
1645
1747
|
condition_id?: string
|
|
1646
1748
|
schedule_id?: string
|
|
1749
|
+
loop_id?: string
|
|
1647
1750
|
execution_status?: "pending" | "starting" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled" | "hot"
|
|
1648
1751
|
started_at?: string
|
|
1649
1752
|
updated_at?: string
|
|
@@ -1656,6 +1759,18 @@ type AutomationAction = {
|
|
|
1656
1759
|
}
|
|
1657
1760
|
}
|
|
1658
1761
|
retry_strategy?: "RETRY_AND_RESUME" | "RETRY_AND_STOP" | "RETRY_ALL_PARENT_CONDITION_ACTIONS"
|
|
1762
|
+
iterations?: Array<{
|
|
1763
|
+
index: number
|
|
1764
|
+
execution_status: "pending" | "starting" | "in_progress" | "paused" | "success" | "failed" | "cancelled" | "skipped" | "scheduled" | "hot"
|
|
1765
|
+
started_at?: string // date-time
|
|
1766
|
+
ended_at?: string // date-time
|
|
1767
|
+
outputs?: Record<string, unknown>
|
|
1768
|
+
error_output?: {
|
|
1769
|
+
error_code: { ... }
|
|
1770
|
+
error_reason: { ... }
|
|
1771
|
+
error_info?: { ... }
|
|
1772
|
+
}
|
|
1773
|
+
}>
|
|
1659
1774
|
}
|
|
1660
1775
|
```
|
|
1661
1776
|
|
|
@@ -1745,6 +1860,7 @@ type CartCheckoutActionConfig = {
|
|
|
1745
1860
|
}
|
|
1746
1861
|
condition_id?: string
|
|
1747
1862
|
schedule_id?: string
|
|
1863
|
+
loop_id?: string
|
|
1748
1864
|
}
|
|
1749
1865
|
```
|
|
1750
1866
|
|
|
@@ -1901,6 +2017,7 @@ type MapEntityActionConfig = {
|
|
|
1901
2017
|
}
|
|
1902
2018
|
condition_id?: string
|
|
1903
2019
|
schedule_id?: string
|
|
2020
|
+
loop_id?: string
|
|
1904
2021
|
}
|
|
1905
2022
|
```
|
|
1906
2023
|
|
|
@@ -2211,6 +2328,7 @@ type SendEmailActionConfig = {
|
|
|
2211
2328
|
}
|
|
2212
2329
|
condition_id?: string
|
|
2213
2330
|
schedule_id?: string
|
|
2331
|
+
loop_id?: string
|
|
2214
2332
|
}
|
|
2215
2333
|
```
|
|
2216
2334
|
|
|
@@ -2266,6 +2384,7 @@ type ForwardEmailActionConfig = {
|
|
|
2266
2384
|
}
|
|
2267
2385
|
condition_id?: string
|
|
2268
2386
|
schedule_id?: string
|
|
2387
|
+
loop_id?: string
|
|
2269
2388
|
}
|
|
2270
2389
|
```
|
|
2271
2390
|
|
|
@@ -2326,6 +2445,7 @@ type ReplyEmailActionConfig = {
|
|
|
2326
2445
|
}
|
|
2327
2446
|
condition_id?: string
|
|
2328
2447
|
schedule_id?: string
|
|
2448
|
+
loop_id?: string
|
|
2329
2449
|
}
|
|
2330
2450
|
```
|
|
2331
2451
|
|
|
@@ -2421,6 +2541,7 @@ type CreateDocumentActionConfig = {
|
|
|
2421
2541
|
}
|
|
2422
2542
|
condition_id?: string
|
|
2423
2543
|
schedule_id?: string
|
|
2544
|
+
loop_id?: string
|
|
2424
2545
|
}
|
|
2425
2546
|
```
|
|
2426
2547
|
|
|
@@ -2478,6 +2599,7 @@ type TriggerWorkflowActionConfig = {
|
|
|
2478
2599
|
}
|
|
2479
2600
|
condition_id?: string
|
|
2480
2601
|
schedule_id?: string
|
|
2602
|
+
loop_id?: string
|
|
2481
2603
|
}
|
|
2482
2604
|
```
|
|
2483
2605
|
|
|
@@ -2557,6 +2679,7 @@ type TriggerShareEntityActionConfig = {
|
|
|
2557
2679
|
}
|
|
2558
2680
|
condition_id?: string
|
|
2559
2681
|
schedule_id?: string
|
|
2682
|
+
loop_id?: string
|
|
2560
2683
|
}
|
|
2561
2684
|
```
|
|
2562
2685
|
|
|
@@ -2627,6 +2750,7 @@ type TriggerWebhookActionConfig = {
|
|
|
2627
2750
|
}
|
|
2628
2751
|
condition_id?: string
|
|
2629
2752
|
schedule_id?: string
|
|
2753
|
+
loop_id?: string
|
|
2630
2754
|
}
|
|
2631
2755
|
```
|
|
2632
2756
|
|
|
@@ -2677,6 +2801,7 @@ type InformERPActionConfig = {
|
|
|
2677
2801
|
}
|
|
2678
2802
|
condition_id?: string
|
|
2679
2803
|
schedule_id?: string
|
|
2804
|
+
loop_id?: string
|
|
2680
2805
|
}
|
|
2681
2806
|
```
|
|
2682
2807
|
|
|
@@ -2724,6 +2849,7 @@ type TriggerEventActionConfig = {
|
|
|
2724
2849
|
}
|
|
2725
2850
|
condition_id?: string
|
|
2726
2851
|
schedule_id?: string
|
|
2852
|
+
loop_id?: string
|
|
2727
2853
|
}
|
|
2728
2854
|
```
|
|
2729
2855
|
|
|
@@ -2774,6 +2900,7 @@ type FlowExecutionCancelActionConfig = {
|
|
|
2774
2900
|
}
|
|
2775
2901
|
condition_id?: string
|
|
2776
2902
|
schedule_id?: string
|
|
2903
|
+
loop_id?: string
|
|
2777
2904
|
}
|
|
2778
2905
|
```
|
|
2779
2906
|
|
|
@@ -2845,6 +2972,13 @@ type ActionCondition = {
|
|
|
2845
2972
|
id?: string
|
|
2846
2973
|
schedule_id?: string
|
|
2847
2974
|
evaluationResult?: boolean
|
|
2975
|
+
error_output?: {
|
|
2976
|
+
error_code: "MAPPING_ERROR" | "REFRESH_RELATIONS_ERROR" | "DUPLICATE_ENTITY_ERROR" | "TRIGGER_WORKFLOW_ERROR" | "TIMEOUT_ERROR" | "BAD_CONFIG" | "INTERNAL_ERROR" | "TRIGGER_WEBHOOK_ERROR" | "TEMPLATE_ERROR" | "INVALID_PAYLOAD" | "INVALID_SCHEDULE_CONFIG" | "CUSTOM_ACTION_ERROR" | "ORDER_CREATION_ERROR" | "DOCUMENT_GENERATION_ERROR" | "BULK_EMAIL_ERROR" | "SHARING_ERROR" | "CANCEL_FLOW_EXECUTION_ERROR" | "METER_READING_NOT_FOUND" | "ENTITY_NOT_FOUND"
|
|
2977
|
+
error_reason: string
|
|
2978
|
+
error_info?: {
|
|
2979
|
+
details?: { ... }
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2848
2982
|
statements?: Array<{
|
|
2849
2983
|
id?: string // uuid
|
|
2850
2984
|
source?: {
|
|
@@ -2928,6 +3062,11 @@ type AutomationExecution = {
|
|
|
2928
3062
|
id?: string
|
|
2929
3063
|
schedule_id?: string
|
|
2930
3064
|
evaluationResult?: boolean
|
|
3065
|
+
error_output?: {
|
|
3066
|
+
error_code: { ... }
|
|
3067
|
+
error_reason: { ... }
|
|
3068
|
+
error_info?: { ... }
|
|
3069
|
+
}
|
|
2931
3070
|
statements?: Array<{
|
|
2932
3071
|
id?: { ... }
|
|
2933
3072
|
source?: { ... }
|
|
@@ -2999,15 +3138,19 @@ type AutomationExecution = {
|
|
|
2999
3138
|
config?: {
|
|
3000
3139
|
template_id?: { ... }
|
|
3001
3140
|
filename?: { ... }
|
|
3002
|
-
}
|
|
3003
|
-
} | {
|
|
3004
|
-
type?: "send-email"
|
|
3005
|
-
config?: {
|
|
3006
|
-
email_template_id?: { ... }
|
|
3007
3141
|
// ...
|
|
3008
3142
|
}
|
|
3009
3143
|
```
|
|
3010
3144
|
|
|
3145
|
+
### `AutomationLoopState`
|
|
3146
|
+
|
|
3147
|
+
```ts
|
|
3148
|
+
type AutomationLoopState = {
|
|
3149
|
+
current_index: number
|
|
3150
|
+
total: number
|
|
3151
|
+
}
|
|
3152
|
+
```
|
|
3153
|
+
|
|
3011
3154
|
### `WorkflowExecutionContext`
|
|
3012
3155
|
|
|
3013
3156
|
```ts
|
|
@@ -3168,6 +3311,7 @@ type GetExecutionsResp = {
|
|
|
3168
3311
|
id?: { ... }
|
|
3169
3312
|
schedule_id?: { ... }
|
|
3170
3313
|
evaluationResult?: { ... }
|
|
3314
|
+
error_output?: { ... }
|
|
3171
3315
|
statements?: { ... }
|
|
3172
3316
|
}>
|
|
3173
3317
|
schedules?: Array<{
|
|
@@ -3220,12 +3364,14 @@ type GetExecutionsResp = {
|
|
|
3220
3364
|
reason?: { ... }
|
|
3221
3365
|
condition_id?: { ... }
|
|
3222
3366
|
schedule_id?: { ... }
|
|
3367
|
+
loop_id?: { ... }
|
|
3223
3368
|
execution_status?: { ... }
|
|
3224
3369
|
started_at?: { ... }
|
|
3225
3370
|
updated_at?: { ... }
|
|
3226
3371
|
outputs?: { ... }
|
|
3227
3372
|
error_output?: { ... }
|
|
3228
3373
|
retry_strategy?: { ... }
|
|
3374
|
+
iterations?: { ... }
|
|
3229
3375
|
} | {
|
|
3230
3376
|
type?: { ... }
|
|
3231
3377
|
config?: { ... }
|
|
@@ -3239,9 +3385,6 @@ type GetExecutionsResp = {
|
|
|
3239
3385
|
resume_token?: string
|
|
3240
3386
|
trigger_context?: Record<string, string>
|
|
3241
3387
|
version?: number
|
|
3242
|
-
trigger_event?: {
|
|
3243
|
-
type?: { ... }
|
|
3244
|
-
org_id: { ... }
|
|
3245
3388
|
// ...
|
|
3246
3389
|
}
|
|
3247
3390
|
```
|
|
@@ -4118,6 +4261,7 @@ type ResumeResp = {
|
|
|
4118
4261
|
id?: { ... }
|
|
4119
4262
|
schedule_id?: { ... }
|
|
4120
4263
|
evaluationResult?: { ... }
|
|
4264
|
+
error_output?: { ... }
|
|
4121
4265
|
statements?: { ... }
|
|
4122
4266
|
}>
|
|
4123
4267
|
schedules?: Array<{
|
|
@@ -4170,12 +4314,14 @@ type ResumeResp = {
|
|
|
4170
4314
|
reason?: { ... }
|
|
4171
4315
|
condition_id?: { ... }
|
|
4172
4316
|
schedule_id?: { ... }
|
|
4317
|
+
loop_id?: { ... }
|
|
4173
4318
|
execution_status?: { ... }
|
|
4174
4319
|
started_at?: { ... }
|
|
4175
4320
|
updated_at?: { ... }
|
|
4176
4321
|
outputs?: { ... }
|
|
4177
4322
|
error_output?: { ... }
|
|
4178
4323
|
retry_strategy?: { ... }
|
|
4324
|
+
iterations?: { ... }
|
|
4179
4325
|
} | {
|
|
4180
4326
|
type?: { ... }
|
|
4181
4327
|
config?: { ... }
|
|
@@ -4190,9 +4336,6 @@ type ResumeResp = {
|
|
|
4190
4336
|
trigger_context?: Record<string, string>
|
|
4191
4337
|
version?: number
|
|
4192
4338
|
trigger_event?: {
|
|
4193
|
-
type?: { ... }
|
|
4194
|
-
org_id: { ... }
|
|
4195
|
-
entity_id: { ... }
|
|
4196
4339
|
// ...
|
|
4197
4340
|
}
|
|
4198
4341
|
```
|