@epilot/sdk 2.0.0-beta.3 → 2.0.0-beta.6
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/access-token-runtime.json +1 -0
- package/definitions/access-token.json +663 -0
- package/definitions/address-runtime.json +1 -0
- package/definitions/address-suggestions-runtime.json +1 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents-runtime.json +1 -0
- package/definitions/ai-agents.json +1711 -0
- package/definitions/app-runtime.json +1 -0
- package/definitions/app.json +4443 -0
- package/definitions/audit-logs-runtime.json +1 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation-runtime.json +1 -0
- package/definitions/automation.json +4850 -0
- package/definitions/billing-runtime.json +1 -0
- package/definitions/billing.json +837 -0
- package/definitions/blueprint-manifest-runtime.json +1 -0
- package/definitions/blueprint-manifest.json +3376 -0
- package/definitions/consent-runtime.json +1 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal-runtime.json +1 -0
- package/definitions/customer-portal.json +15000 -0
- package/definitions/dashboard-runtime.json +1 -0
- package/definitions/dashboard.json +484 -0
- package/definitions/data-management-runtime.json +1 -0
- package/definitions/data-management.json +962 -0
- package/definitions/deduplication-runtime.json +1 -0
- package/definitions/deduplication.json +183 -0
- package/definitions/design-runtime.json +1 -0
- package/definitions/design.json +1423 -0
- package/definitions/document-runtime.json +1 -0
- package/definitions/document.json +758 -0
- package/definitions/email-settings-runtime.json +1 -0
- package/definitions/email-settings.json +2627 -0
- package/definitions/email-template-runtime.json +1 -0
- package/definitions/email-template.json +1419 -0
- package/definitions/entity-mapping-runtime.json +1 -0
- package/definitions/entity-mapping.json +1642 -0
- package/definitions/entity-runtime.json +1 -0
- package/definitions/entity.json +10074 -0
- package/definitions/environments-runtime.json +1 -0
- package/definitions/environments.json +363 -0
- package/definitions/erp-integration-runtime.json +1 -0
- package/definitions/erp-integration.json +5845 -0
- package/definitions/event-catalog-runtime.json +1 -0
- package/definitions/event-catalog.json +1051 -0
- package/definitions/file-runtime.json +1 -0
- package/definitions/file.json +2842 -0
- package/definitions/iban-runtime.json +1 -0
- package/definitions/iban.json +132 -0
- package/definitions/journey-runtime.json +1 -0
- package/definitions/journey.json +2341 -0
- package/definitions/kanban-runtime.json +1 -0
- package/definitions/kanban.json +929 -0
- package/definitions/message-runtime.json +1 -0
- package/definitions/message.json +2660 -0
- package/definitions/metering-runtime.json +1 -0
- package/definitions/metering.json +2321 -0
- package/definitions/notes-runtime.json +1 -0
- package/definitions/notes.json +1531 -0
- package/definitions/notification-runtime.json +1 -0
- package/definitions/notification.json +1425 -0
- package/definitions/organization-runtime.json +1 -0
- package/definitions/organization.json +629 -0
- package/definitions/partner-directory-runtime.json +1 -0
- package/definitions/partner-directory.json +1718 -0
- package/definitions/permissions-runtime.json +1 -0
- package/definitions/permissions.json +1480 -0
- package/definitions/pricing-runtime.json +1 -0
- package/definitions/pricing-tier-runtime.json +1 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +9884 -0
- package/definitions/purpose-runtime.json +1 -0
- package/definitions/purpose.json +524 -0
- package/definitions/sandbox-runtime.json +1 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/submission-runtime.json +1 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting-runtime.json +1 -0
- package/definitions/targeting.json +1474 -0
- package/definitions/template-variables-runtime.json +1 -0
- package/definitions/template-variables.json +1408 -0
- package/definitions/user-runtime.json +1 -0
- package/definitions/user.json +2408 -0
- package/definitions/validation-rules-runtime.json +1 -0
- package/definitions/validation-rules.json +1491 -0
- package/definitions/webhooks-runtime.json +1 -0
- package/definitions/webhooks.json +1525 -0
- package/definitions/workflow-definition-runtime.json +1 -0
- package/definitions/workflow-definition.json +3417 -0
- package/definitions/workflow-runtime.json +1 -0
- package/definitions/workflow.json +4106 -0
- package/dist/{access-token.d-BuXO-21p.d.cts → access-token.d-CnmUTOlq.d.cts} +1 -1
- package/dist/{access-token.d-BuXO-21p.d.ts → access-token.d-CnmUTOlq.d.ts} +1 -1
- package/dist/{address-suggestions.d-Cay0qOfA.d.cts → address-suggestions.d-_YwTOR-9.d.cts} +1 -1
- package/dist/{address-suggestions.d-Cay0qOfA.d.ts → address-suggestions.d-_YwTOR-9.d.ts} +1 -1
- package/dist/{address.d-D-oZY0rk.d.cts → address.d-CwAPOVxa.d.cts} +1 -1
- package/dist/{address.d-D-oZY0rk.d.ts → address.d-CwAPOVxa.d.ts} +1 -1
- package/dist/{ai-agents.d-B4_CZTCP.d.cts → ai-agents.d-OkXfr2bz.d.cts} +1 -1
- package/dist/{ai-agents.d-B4_CZTCP.d.ts → ai-agents.d-OkXfr2bz.d.ts} +1 -1
- package/dist/apis/access-token.cjs +13 -84
- package/dist/apis/access-token.d.cts +3 -3
- package/dist/apis/access-token.d.ts +3 -3
- package/dist/apis/access-token.js +11 -82
- package/dist/apis/address-suggestions.cjs +13 -127
- package/dist/apis/address-suggestions.d.cts +3 -3
- package/dist/apis/address-suggestions.d.ts +3 -3
- package/dist/apis/address-suggestions.js +11 -125
- package/dist/apis/address.cjs +13 -79
- package/dist/apis/address.d.cts +3 -3
- package/dist/apis/address.d.ts +3 -3
- package/dist/apis/address.js +11 -77
- package/dist/apis/ai-agents.cjs +13 -210
- package/dist/apis/ai-agents.d.cts +3 -3
- package/dist/apis/ai-agents.d.ts +3 -3
- package/dist/apis/ai-agents.js +11 -208
- package/dist/apis/app.cjs +13 -568
- package/dist/apis/app.d.cts +3 -3
- package/dist/apis/app.d.ts +3 -3
- package/dist/apis/app.js +11 -566
- package/dist/apis/audit-logs.cjs +13 -50
- package/dist/apis/audit-logs.d.cts +3 -3
- package/dist/apis/audit-logs.d.ts +3 -3
- package/dist/apis/audit-logs.js +11 -48
- package/dist/apis/automation.cjs +13 -277
- package/dist/apis/automation.d.cts +3 -3
- package/dist/apis/automation.d.ts +3 -3
- package/dist/apis/automation.js +11 -275
- package/dist/apis/billing.cjs +13 -170
- package/dist/apis/billing.d.cts +3 -3
- package/dist/apis/billing.d.ts +3 -3
- package/dist/apis/billing.js +11 -168
- package/dist/apis/blueprint-manifest.cjs +13 -499
- package/dist/apis/blueprint-manifest.d.cts +3 -3
- package/dist/apis/blueprint-manifest.d.ts +3 -3
- package/dist/apis/blueprint-manifest.js +11 -497
- package/dist/apis/consent.cjs +13 -79
- package/dist/apis/consent.d.cts +3 -3
- package/dist/apis/consent.d.ts +3 -3
- package/dist/apis/consent.js +11 -77
- package/dist/apis/customer-portal.cjs +13 -2247
- package/dist/apis/customer-portal.d.cts +3 -3
- package/dist/apis/customer-portal.d.ts +3 -3
- package/dist/apis/customer-portal.js +11 -2245
- package/dist/apis/dashboard.cjs +13 -79
- package/dist/apis/dashboard.d.cts +3 -3
- package/dist/apis/dashboard.d.ts +3 -3
- package/dist/apis/dashboard.js +11 -77
- package/dist/apis/data-management.cjs +13 -235
- package/dist/apis/data-management.d.cts +3 -3
- package/dist/apis/data-management.d.ts +3 -3
- package/dist/apis/data-management.js +11 -233
- package/dist/apis/deduplication.cjs +13 -37
- package/dist/apis/deduplication.d.cts +3 -3
- package/dist/apis/deduplication.d.ts +3 -3
- package/dist/apis/deduplication.js +11 -35
- package/dist/apis/design.cjs +13 -214
- package/dist/apis/design.d.cts +3 -3
- package/dist/apis/design.d.ts +3 -3
- package/dist/apis/design.js +11 -212
- package/dist/apis/document.cjs +13 -73
- package/dist/apis/document.d.cts +3 -3
- package/dist/apis/document.d.ts +3 -3
- package/dist/apis/document.js +11 -71
- package/dist/apis/email-settings.cjs +13 -528
- package/dist/apis/email-settings.d.cts +3 -3
- package/dist/apis/email-settings.d.ts +3 -3
- package/dist/apis/email-settings.js +11 -526
- package/dist/apis/email-template.cjs +13 -117
- package/dist/apis/email-template.d.cts +3 -3
- package/dist/apis/email-template.d.ts +3 -3
- package/dist/apis/email-template.js +11 -115
- package/dist/apis/entity-mapping.cjs +13 -210
- package/dist/apis/entity-mapping.d.cts +3 -3
- package/dist/apis/entity-mapping.d.ts +3 -3
- package/dist/apis/entity-mapping.js +11 -208
- package/dist/apis/entity.cjs +13 -1595
- package/dist/apis/entity.d.cts +3 -3
- package/dist/apis/entity.d.ts +3 -3
- package/dist/apis/entity.js +11 -1593
- package/dist/apis/environments.cjs +13 -66
- package/dist/apis/environments.d.cts +3 -3
- package/dist/apis/environments.d.ts +3 -3
- package/dist/apis/environments.js +11 -64
- package/dist/apis/erp-integration.cjs +13 -581
- package/dist/apis/erp-integration.d.cts +3 -3
- package/dist/apis/erp-integration.d.ts +3 -3
- package/dist/apis/erp-integration.js +11 -579
- package/dist/apis/event-catalog.cjs +13 -125
- package/dist/apis/event-catalog.d.cts +3 -3
- package/dist/apis/event-catalog.d.ts +3 -3
- package/dist/apis/event-catalog.js +11 -123
- package/dist/apis/file.cjs +13 -568
- package/dist/apis/file.d.cts +3 -3
- package/dist/apis/file.d.ts +3 -3
- package/dist/apis/file.js +11 -566
- package/dist/apis/iban.cjs +13 -38
- package/dist/apis/iban.d.cts +3 -3
- package/dist/apis/iban.d.ts +3 -3
- package/dist/apis/iban.js +11 -36
- package/dist/apis/journey.cjs +13 -265
- package/dist/apis/journey.d.cts +3 -3
- package/dist/apis/journey.d.ts +3 -3
- package/dist/apis/journey.js +11 -263
- package/dist/apis/kanban.cjs +13 -159
- package/dist/apis/kanban.d.cts +3 -3
- package/dist/apis/kanban.d.ts +3 -3
- package/dist/apis/kanban.js +11 -157
- package/dist/apis/message.cjs +13 -668
- package/dist/apis/message.d.cts +3 -3
- package/dist/apis/message.d.ts +3 -3
- package/dist/apis/message.js +11 -666
- package/dist/apis/metering.cjs +13 -394
- package/dist/apis/metering.d.cts +3 -3
- package/dist/apis/metering.d.ts +3 -3
- package/dist/apis/metering.js +11 -392
- package/dist/apis/notes.cjs +13 -214
- package/dist/apis/notes.d.cts +3 -3
- package/dist/apis/notes.d.ts +3 -3
- package/dist/apis/notes.js +11 -212
- package/dist/apis/notification.cjs +13 -232
- package/dist/apis/notification.d.cts +3 -3
- package/dist/apis/notification.d.ts +3 -3
- package/dist/apis/notification.js +11 -230
- package/dist/apis/organization.cjs +13 -113
- package/dist/apis/organization.d.cts +3 -3
- package/dist/apis/organization.d.ts +3 -3
- package/dist/apis/organization.js +11 -111
- package/dist/apis/partner-directory.cjs +13 -277
- package/dist/apis/partner-directory.d.cts +3 -3
- package/dist/apis/partner-directory.d.ts +3 -3
- package/dist/apis/partner-directory.js +11 -275
- package/dist/apis/permissions.cjs +13 -173
- package/dist/apis/permissions.d.cts +3 -3
- package/dist/apis/permissions.d.ts +3 -3
- package/dist/apis/permissions.js +11 -171
- package/dist/apis/pricing-tier.cjs +14 -32
- package/dist/apis/pricing-tier.d.cts +3 -3
- package/dist/apis/pricing-tier.d.ts +3 -3
- package/dist/apis/pricing-tier.js +11 -29
- package/dist/apis/pricing.cjs +13 -434
- package/dist/apis/pricing.d.cts +3 -3
- package/dist/apis/pricing.d.ts +3 -3
- package/dist/apis/pricing.js +11 -432
- package/dist/apis/purpose.cjs +13 -175
- package/dist/apis/purpose.d.cts +3 -3
- package/dist/apis/purpose.d.ts +3 -3
- package/dist/apis/purpose.js +11 -173
- package/dist/apis/sandbox.cjs +13 -95
- package/dist/apis/sandbox.d.cts +3 -3
- package/dist/apis/sandbox.d.ts +3 -3
- package/dist/apis/sandbox.js +11 -93
- package/dist/apis/submission.cjs +13 -50
- package/dist/apis/submission.d.cts +3 -3
- package/dist/apis/submission.d.ts +3 -3
- package/dist/apis/submission.js +11 -48
- package/dist/apis/targeting.cjs +13 -270
- package/dist/apis/targeting.d.cts +3 -3
- package/dist/apis/targeting.d.ts +3 -3
- package/dist/apis/targeting.js +11 -268
- package/dist/apis/template-variables.cjs +13 -154
- package/dist/apis/template-variables.d.cts +3 -3
- package/dist/apis/template-variables.d.ts +3 -3
- package/dist/apis/template-variables.js +11 -152
- package/dist/apis/user.cjs +13 -483
- package/dist/apis/user.d.cts +3 -3
- package/dist/apis/user.d.ts +3 -3
- package/dist/apis/user.js +11 -481
- package/dist/apis/validation-rules.cjs +13 -115
- package/dist/apis/validation-rules.d.cts +3 -3
- package/dist/apis/validation-rules.d.ts +3 -3
- package/dist/apis/validation-rules.js +11 -113
- package/dist/apis/webhooks.cjs +13 -247
- package/dist/apis/webhooks.d.cts +3 -3
- package/dist/apis/webhooks.d.ts +3 -3
- package/dist/apis/webhooks.js +11 -245
- package/dist/apis/workflow-definition.cjs +13 -337
- package/dist/apis/workflow-definition.d.cts +3 -3
- package/dist/apis/workflow-definition.d.ts +3 -3
- package/dist/apis/workflow-definition.js +11 -335
- package/dist/apis/workflow.cjs +13 -397
- package/dist/apis/workflow.d.cts +3 -3
- package/dist/apis/workflow.d.ts +3 -3
- package/dist/apis/workflow.js +11 -395
- package/dist/{app.d-BKyfin-q.d.cts → app.d-Dr03n4J4.d.cts} +1 -1
- package/dist/{app.d-BKyfin-q.d.ts → app.d-Dr03n4J4.d.ts} +1 -1
- package/dist/{audit-logs.d-19BKb-ur.d.cts → audit-logs.d-BRToFqeX.d.cts} +1 -1
- package/dist/{audit-logs.d-19BKb-ur.d.ts → audit-logs.d-BRToFqeX.d.ts} +1 -1
- package/dist/{automation.d-DKl2VtnW.d.cts → automation.d-sRCRiHKf.d.cts} +1 -1
- package/dist/{automation.d-DKl2VtnW.d.ts → automation.d-sRCRiHKf.d.ts} +1 -1
- package/dist/{billing.d-58fUMBqj.d.cts → billing.d-Bs8Ku9qE.d.cts} +1 -1
- package/dist/{billing.d-58fUMBqj.d.ts → billing.d-Bs8Ku9qE.d.ts} +1 -1
- package/dist/{blueprint-manifest.d-Bu1GyXFW.d.cts → blueprint-manifest.d-CEWRdF3i.d.cts} +1 -1
- package/dist/{blueprint-manifest.d-Bu1GyXFW.d.ts → blueprint-manifest.d-CEWRdF3i.d.ts} +1 -1
- package/dist/{chunk-D7ICL3AM.cjs → chunk-5LXNSDG2.cjs} +51 -2
- package/dist/{chunk-DGCGLG7G.js → chunk-QMQNMCOC.js} +49 -0
- package/dist/{consent.d-CQ88IEj0.d.cts → consent.d-C2PROHhX.d.cts} +1 -1
- package/dist/{consent.d-CQ88IEj0.d.ts → consent.d-C2PROHhX.d.ts} +1 -1
- package/dist/{customer-portal.d-EyndRWh6.d.cts → customer-portal.d-D7cJvhBK.d.cts} +1 -1
- package/dist/{customer-portal.d-EyndRWh6.d.ts → customer-portal.d-D7cJvhBK.d.ts} +1 -1
- package/dist/{dashboard.d-AE3RQ6zo.d.cts → dashboard.d-CsGcA74I.d.cts} +1 -1
- package/dist/{dashboard.d-AE3RQ6zo.d.ts → dashboard.d-CsGcA74I.d.ts} +1 -1
- package/dist/{data-management.d-CNExsqJQ.d.cts → data-management.d-pnuiRU2h.d.cts} +1 -1
- package/dist/{data-management.d-CNExsqJQ.d.ts → data-management.d-pnuiRU2h.d.ts} +1 -1
- package/dist/{deduplication.d-DCeJzdbM.d.cts → deduplication.d-w_2aJD5f.d.cts} +1 -1
- package/dist/{deduplication.d-DCeJzdbM.d.ts → deduplication.d-w_2aJD5f.d.ts} +1 -1
- package/dist/{design.d-CkwgJ78Z.d.cts → design.d-eA-irKEX.d.cts} +1 -1
- package/dist/{design.d-CkwgJ78Z.d.ts → design.d-eA-irKEX.d.ts} +1 -1
- package/dist/{document.d-Y8i32qNV.d.cts → document.d-DN37pjdx.d.cts} +1 -1
- package/dist/{document.d-Y8i32qNV.d.ts → document.d-DN37pjdx.d.ts} +1 -1
- package/dist/{email-settings.d-CPAsRFWN.d.cts → email-settings.d-BXxYjVDr.d.cts} +1 -1
- package/dist/{email-settings.d-CPAsRFWN.d.ts → email-settings.d-BXxYjVDr.d.ts} +1 -1
- package/dist/{email-template.d-CQqiCN0N.d.cts → email-template.d-BeqkDHtk.d.cts} +1 -1
- package/dist/{email-template.d-CQqiCN0N.d.ts → email-template.d-BeqkDHtk.d.ts} +1 -1
- package/dist/{entity-mapping.d-DiqXqJWb.d.cts → entity-mapping.d-DKSW3sfy.d.cts} +1 -1
- package/dist/{entity-mapping.d-DiqXqJWb.d.ts → entity-mapping.d-DKSW3sfy.d.ts} +1 -1
- package/dist/{entity.d-BtT4mdq4.d.cts → entity.d-CrtZaZr8.d.cts} +1 -1
- package/dist/{entity.d-BtT4mdq4.d.ts → entity.d-CrtZaZr8.d.ts} +1 -1
- package/dist/{environments.d-C1xIs8N2.d.cts → environments.d-H3LK_KuH.d.cts} +1 -1
- package/dist/{environments.d-C1xIs8N2.d.ts → environments.d-H3LK_KuH.d.ts} +1 -1
- package/dist/{erp-integration.d-CNLzgl4L.d.cts → erp-integration.d-3LmxMirP.d.cts} +1 -1
- package/dist/{erp-integration.d-CNLzgl4L.d.ts → erp-integration.d-3LmxMirP.d.ts} +1 -1
- package/dist/{event-catalog.d-DW1dOyVh.d.cts → event-catalog.d-ENw6HO-w.d.cts} +1 -1
- package/dist/{event-catalog.d-DW1dOyVh.d.ts → event-catalog.d-ENw6HO-w.d.ts} +1 -1
- package/dist/{file.d-Bpdt2ORN.d.cts → file.d-DcTJxjp7.d.cts} +1 -1
- package/dist/{file.d-Bpdt2ORN.d.ts → file.d-DcTJxjp7.d.ts} +1 -1
- package/dist/{iban.d-3_7FEsbx.d.cts → iban.d-BwdiGbxi.d.cts} +1 -1
- package/dist/{iban.d-3_7FEsbx.d.ts → iban.d-BwdiGbxi.d.ts} +1 -1
- package/dist/index.cjs +56 -54
- package/dist/index.d.cts +46 -46
- package/dist/index.d.ts +46 -46
- package/dist/index.js +53 -51
- package/dist/{journey.d-C2lgynUF.d.cts → journey.d-DkBvO_Wa.d.cts} +1 -1
- package/dist/{journey.d-C2lgynUF.d.ts → journey.d-DkBvO_Wa.d.ts} +1 -1
- package/dist/{kanban.d-DYVjUQ_S.d.cts → kanban.d-DUClxyBG.d.cts} +1 -1
- package/dist/{kanban.d-DYVjUQ_S.d.ts → kanban.d-DUClxyBG.d.ts} +1 -1
- package/dist/{message.d-TAVDRlDJ.d.cts → message.d-YEv1kmQd.d.cts} +1 -1
- package/dist/{message.d-TAVDRlDJ.d.ts → message.d-YEv1kmQd.d.ts} +1 -1
- package/dist/{metering.d-qyYaAU-O.d.cts → metering.d-DvtPv7wk.d.cts} +1 -1
- package/dist/{metering.d-qyYaAU-O.d.ts → metering.d-DvtPv7wk.d.ts} +1 -1
- package/dist/{notes.d-CDyIbegf.d.cts → notes.d-BC-scR42.d.cts} +1 -1
- package/dist/{notes.d-CDyIbegf.d.ts → notes.d-BC-scR42.d.ts} +1 -1
- package/dist/{notification.d-B7ccbaPr.d.cts → notification.d-BfBL3lga.d.cts} +1 -1
- package/dist/{notification.d-B7ccbaPr.d.ts → notification.d-BfBL3lga.d.ts} +1 -1
- package/dist/{organization.d-BxZWnh8L.d.cts → organization.d-BOLK3v9o.d.cts} +1 -1
- package/dist/{organization.d-BxZWnh8L.d.ts → organization.d-BOLK3v9o.d.ts} +1 -1
- package/dist/{partner-directory.d-CzKV3WfP.d.cts → partner-directory.d-CRNkDF8q.d.cts} +1 -1
- package/dist/{partner-directory.d-CzKV3WfP.d.ts → partner-directory.d-CRNkDF8q.d.ts} +1 -1
- package/dist/{permissions.d-lVoPAfl3.d.cts → permissions.d-BHB1FFS5.d.cts} +1 -1
- package/dist/{permissions.d-lVoPAfl3.d.ts → permissions.d-BHB1FFS5.d.ts} +1 -1
- package/dist/{pricing-tier.d-BW2cZt1w.d.cts → pricing-tier.d-Cg0jl6n_.d.cts} +1 -1
- package/dist/{pricing-tier.d-BW2cZt1w.d.ts → pricing-tier.d-Cg0jl6n_.d.ts} +1 -1
- package/dist/{pricing.d-Ehb2JuKY.d.cts → pricing.d-Cv39plGm.d.cts} +1 -1
- package/dist/{pricing.d-Ehb2JuKY.d.ts → pricing.d-Cv39plGm.d.ts} +1 -1
- package/dist/{purpose.d-BVxst611.d.cts → purpose.d-CbIYfTua.d.cts} +1 -1
- package/dist/{purpose.d-BVxst611.d.ts → purpose.d-CbIYfTua.d.ts} +1 -1
- package/dist/{sandbox.d-tRO2movo.d.cts → sandbox.d-BdbOFzDu.d.cts} +1 -1
- package/dist/{sandbox.d-tRO2movo.d.ts → sandbox.d-BdbOFzDu.d.ts} +1 -1
- package/dist/{submission.d-CSll5Km9.d.cts → submission.d-BamwfhXw.d.cts} +1 -1
- package/dist/{submission.d-CSll5Km9.d.ts → submission.d-BamwfhXw.d.ts} +1 -1
- package/dist/{targeting.d-CDxIsOWy.d.cts → targeting.d-BNmcVsNS.d.cts} +1 -1
- package/dist/{targeting.d-CDxIsOWy.d.ts → targeting.d-BNmcVsNS.d.ts} +1 -1
- package/dist/{template-variables.d-PwA27Ocv.d.cts → template-variables.d-Ch3H3zYf.d.cts} +1 -1
- package/dist/{template-variables.d-PwA27Ocv.d.ts → template-variables.d-Ch3H3zYf.d.ts} +1 -1
- package/dist/{user.d-DJBp6aX5.d.cts → user.d-CXqM751M.d.cts} +1 -1
- package/dist/{user.d-DJBp6aX5.d.ts → user.d-CXqM751M.d.ts} +1 -1
- package/dist/{validation-rules.d-CScjNdxD.d.cts → validation-rules.d-Db5c5zTf.d.cts} +1 -1
- package/dist/{validation-rules.d-CScjNdxD.d.ts → validation-rules.d-Db5c5zTf.d.ts} +1 -1
- package/dist/{webhooks.d-C_MQSJEB.d.cts → webhooks.d-CUNJrltY.d.cts} +1 -1
- package/dist/{webhooks.d-C_MQSJEB.d.ts → webhooks.d-CUNJrltY.d.ts} +1 -1
- package/dist/{workflow-definition.d-CFXrp2Hg.d.cts → workflow-definition.d-CE3kk9gl.d.cts} +1 -1
- package/dist/{workflow-definition.d-CFXrp2Hg.d.ts → workflow-definition.d-CE3kk9gl.d.ts} +1 -1
- package/dist/{workflow.d-BIWtgMyP.d.cts → workflow.d-EPa2OdVW.d.cts} +1 -1
- package/dist/{workflow.d-BIWtgMyP.d.ts → workflow.d-EPa2OdVW.d.ts} +1 -1
- package/package.json +192 -3
|
@@ -0,0 +1,4850 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Automation API",
|
|
5
|
+
"description": "API Backend for epilot Automation Workflows feature",
|
|
6
|
+
"version": "1.4.0"
|
|
7
|
+
},
|
|
8
|
+
"tags": [
|
|
9
|
+
{
|
|
10
|
+
"name": "flows",
|
|
11
|
+
"description": "Automation flows"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "executions",
|
|
15
|
+
"description": "Automation executions"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "bulk",
|
|
19
|
+
"description": "Bulk job for triggering automation executions"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"security": [
|
|
23
|
+
{
|
|
24
|
+
"EpilotAuth": []
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"paths": {
|
|
28
|
+
"/v1/automation/flows": {
|
|
29
|
+
"get": {
|
|
30
|
+
"operationId": "searchFlows",
|
|
31
|
+
"summary": "searchFlows",
|
|
32
|
+
"description": "Search available automation flows",
|
|
33
|
+
"tags": [
|
|
34
|
+
"flows"
|
|
35
|
+
],
|
|
36
|
+
"parameters": [
|
|
37
|
+
{
|
|
38
|
+
"name": "schema",
|
|
39
|
+
"in": "query",
|
|
40
|
+
"description": "Entity Schema",
|
|
41
|
+
"schema": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"example": "submission"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "size",
|
|
48
|
+
"in": "query",
|
|
49
|
+
"description": "Pagination: max number of results to return",
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"default": 25
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "from",
|
|
57
|
+
"in": "query",
|
|
58
|
+
"description": "Pagination: starting for results",
|
|
59
|
+
"schema": {
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"default": 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "trigger_source_id",
|
|
66
|
+
"in": "query",
|
|
67
|
+
"description": "Trigger source identifier",
|
|
68
|
+
"schema": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"example": "600945fe-212e-4b97-acf7-391d64648384"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "include_flows",
|
|
75
|
+
"in": "query",
|
|
76
|
+
"description": "Include flow automations in the response",
|
|
77
|
+
"schema": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"default": false
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"responses": {
|
|
84
|
+
"200": {
|
|
85
|
+
"description": "List of automation flows, including total count",
|
|
86
|
+
"content": {
|
|
87
|
+
"application/json": {
|
|
88
|
+
"schema": {
|
|
89
|
+
"$ref": "#/components/schemas/SearchAutomationsResp"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"post": {
|
|
97
|
+
"operationId": "createFlow",
|
|
98
|
+
"summary": "createFlow",
|
|
99
|
+
"description": "Create new automation flow",
|
|
100
|
+
"tags": [
|
|
101
|
+
"flows"
|
|
102
|
+
],
|
|
103
|
+
"requestBody": {
|
|
104
|
+
"description": "Automation flow to create",
|
|
105
|
+
"content": {
|
|
106
|
+
"application/json": {
|
|
107
|
+
"schema": {
|
|
108
|
+
"$ref": "#/components/schemas/AutomationFlow"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"responses": {
|
|
114
|
+
"201": {
|
|
115
|
+
"description": "The created automation flow",
|
|
116
|
+
"content": {
|
|
117
|
+
"application/json": {
|
|
118
|
+
"schema": {
|
|
119
|
+
"$ref": "#/components/schemas/AutomationFlow"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"403": {
|
|
125
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"/v1/automation/flows:batchGet": {
|
|
131
|
+
"post": {
|
|
132
|
+
"operationId": "batchGetFlows",
|
|
133
|
+
"summary": "batchGetFlows",
|
|
134
|
+
"description": "Get multiple automation flows by their IDs",
|
|
135
|
+
"tags": [
|
|
136
|
+
"flows"
|
|
137
|
+
],
|
|
138
|
+
"requestBody": {
|
|
139
|
+
"description": "List of flow IDs to retrieve",
|
|
140
|
+
"content": {
|
|
141
|
+
"application/json": {
|
|
142
|
+
"schema": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"ids": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"responses": {
|
|
157
|
+
"200": {
|
|
158
|
+
"description": "List of automation flows",
|
|
159
|
+
"content": {
|
|
160
|
+
"application/json": {
|
|
161
|
+
"schema": {
|
|
162
|
+
"$ref": "#/components/schemas/SearchAutomationsResp"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"403": {
|
|
168
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"/v1/automation/flows/{flow_id}": {
|
|
174
|
+
"get": {
|
|
175
|
+
"operationId": "getFlow",
|
|
176
|
+
"summary": "getFlow",
|
|
177
|
+
"description": "List available automation flows",
|
|
178
|
+
"tags": [
|
|
179
|
+
"flows"
|
|
180
|
+
],
|
|
181
|
+
"parameters": [
|
|
182
|
+
{
|
|
183
|
+
"name": "flow_id",
|
|
184
|
+
"in": "path",
|
|
185
|
+
"required": true,
|
|
186
|
+
"description": "Automation Workflow ID",
|
|
187
|
+
"schema": {
|
|
188
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"responses": {
|
|
193
|
+
"200": {
|
|
194
|
+
"description": "The returned automation flow",
|
|
195
|
+
"content": {
|
|
196
|
+
"application/json": {
|
|
197
|
+
"schema": {
|
|
198
|
+
"$ref": "#/components/schemas/AutomationFlow"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"403": {
|
|
204
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
205
|
+
},
|
|
206
|
+
"404": {
|
|
207
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"put": {
|
|
212
|
+
"operationId": "putFlow",
|
|
213
|
+
"summary": "putFlow",
|
|
214
|
+
"description": "Update automation flow by id",
|
|
215
|
+
"tags": [
|
|
216
|
+
"flows"
|
|
217
|
+
],
|
|
218
|
+
"parameters": [
|
|
219
|
+
{
|
|
220
|
+
"name": "flow_id",
|
|
221
|
+
"in": "path",
|
|
222
|
+
"required": true,
|
|
223
|
+
"description": "Automation Workflow ID",
|
|
224
|
+
"schema": {
|
|
225
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"requestBody": {
|
|
230
|
+
"description": "Automation flow to create",
|
|
231
|
+
"content": {
|
|
232
|
+
"application/json": {
|
|
233
|
+
"schema": {
|
|
234
|
+
"$ref": "#/components/schemas/AutomationFlow"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"responses": {
|
|
240
|
+
"200": {
|
|
241
|
+
"description": "The updated automation flow",
|
|
242
|
+
"content": {
|
|
243
|
+
"application/json": {
|
|
244
|
+
"schema": {
|
|
245
|
+
"$ref": "#/components/schemas/AutomationFlow"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"403": {
|
|
251
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"delete": {
|
|
256
|
+
"operationId": "deleteFlow",
|
|
257
|
+
"summary": "deleteFlow",
|
|
258
|
+
"description": "Update automation flow by id",
|
|
259
|
+
"tags": [
|
|
260
|
+
"flows"
|
|
261
|
+
],
|
|
262
|
+
"parameters": [
|
|
263
|
+
{
|
|
264
|
+
"name": "flow_id",
|
|
265
|
+
"in": "path",
|
|
266
|
+
"required": true,
|
|
267
|
+
"description": "Automation Workflow ID",
|
|
268
|
+
"schema": {
|
|
269
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"responses": {
|
|
274
|
+
"200": {
|
|
275
|
+
"description": "Flow deleted successfully"
|
|
276
|
+
},
|
|
277
|
+
"403": {
|
|
278
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
279
|
+
},
|
|
280
|
+
"404": {
|
|
281
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"/v1/automation/executions": {
|
|
287
|
+
"get": {
|
|
288
|
+
"operationId": "getExecutions",
|
|
289
|
+
"summary": "getExecutions",
|
|
290
|
+
"description": "List automation executions",
|
|
291
|
+
"parameters": [
|
|
292
|
+
{
|
|
293
|
+
"name": "entity_id",
|
|
294
|
+
"in": "query",
|
|
295
|
+
"schema": {
|
|
296
|
+
"$ref": "#/components/schemas/EntityId"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "size",
|
|
301
|
+
"in": "query",
|
|
302
|
+
"description": "Pagination: max number of results to return",
|
|
303
|
+
"schema": {
|
|
304
|
+
"type": "integer",
|
|
305
|
+
"default": 25
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "from",
|
|
310
|
+
"in": "query",
|
|
311
|
+
"description": "Pagination: starting for results",
|
|
312
|
+
"schema": {
|
|
313
|
+
"type": "integer",
|
|
314
|
+
"default": 0
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "include_flows",
|
|
319
|
+
"in": "query",
|
|
320
|
+
"description": "Include flow automations in the response",
|
|
321
|
+
"schema": {
|
|
322
|
+
"type": "boolean",
|
|
323
|
+
"default": false
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"tags": [
|
|
328
|
+
"executions"
|
|
329
|
+
],
|
|
330
|
+
"responses": {
|
|
331
|
+
"200": {
|
|
332
|
+
"description": "List of automation executions",
|
|
333
|
+
"content": {
|
|
334
|
+
"application/json": {
|
|
335
|
+
"schema": {
|
|
336
|
+
"$ref": "#/components/schemas/GetExecutionsResp"
|
|
337
|
+
},
|
|
338
|
+
"examples": {
|
|
339
|
+
"manual_trigger": {
|
|
340
|
+
"summary": "Manual trigger execution",
|
|
341
|
+
"value": {
|
|
342
|
+
"total": 1,
|
|
343
|
+
"results": [
|
|
344
|
+
{
|
|
345
|
+
"id": "9baf184f-bc81-4128-bca3-d974c90a12c4",
|
|
346
|
+
"execution_status": "success",
|
|
347
|
+
"entity_id": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74",
|
|
348
|
+
"org_id": "123",
|
|
349
|
+
"flow_id": "7791b04a-16d2-44a2-9af9-2d59c25c512f",
|
|
350
|
+
"flow_name": "Handle contact form",
|
|
351
|
+
"created_at": "2023-01-01T10:00:00Z",
|
|
352
|
+
"updated_at": "2023-01-01T10:05:00Z",
|
|
353
|
+
"actions": [],
|
|
354
|
+
"version": 1,
|
|
355
|
+
"trigger_event": {
|
|
356
|
+
"type": "manual",
|
|
357
|
+
"org_id": "123",
|
|
358
|
+
"entity_id": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74",
|
|
359
|
+
"caller": {
|
|
360
|
+
"EpilotAuth": {
|
|
361
|
+
"claims": {
|
|
362
|
+
"userId": "10006129",
|
|
363
|
+
"email": "user@epilot.cloud"
|
|
364
|
+
},
|
|
365
|
+
"userId": "10006129",
|
|
366
|
+
"organizationId": "123"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"entity_operation_trigger": {
|
|
375
|
+
"summary": "Entity operation trigger execution",
|
|
376
|
+
"value": {
|
|
377
|
+
"total": 1,
|
|
378
|
+
"results": [
|
|
379
|
+
{
|
|
380
|
+
"id": "8cdf274e-ab70-4029-9ca2-c863b80a11c3",
|
|
381
|
+
"execution_status": "in_progress",
|
|
382
|
+
"entity_id": "f4e4fcbd-cbcc-4496-bf5f-60c6ce2c621e",
|
|
383
|
+
"activity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
|
|
384
|
+
"org_id": "123",
|
|
385
|
+
"flow_id": "8e2e067e-3c63-4b1a-8e02-6150a3d1fd89",
|
|
386
|
+
"flow_name": "Contact updated automation",
|
|
387
|
+
"created_at": "2023-01-01T12:00:00Z",
|
|
388
|
+
"updated_at": "2023-01-01T12:02:00Z",
|
|
389
|
+
"actions": [],
|
|
390
|
+
"version": 1,
|
|
391
|
+
"trigger_event": {
|
|
392
|
+
"type": "entity_operation",
|
|
393
|
+
"entity_id": "f4e4fcbd-cbcc-4496-bf5f-60c6ce2c621e",
|
|
394
|
+
"org_id": "123",
|
|
395
|
+
"activity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
|
|
396
|
+
"operation_type": "updateEntity"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"entity_activity_trigger": {
|
|
403
|
+
"summary": "Entity activity trigger execution",
|
|
404
|
+
"value": {
|
|
405
|
+
"total": 1,
|
|
406
|
+
"results": [
|
|
407
|
+
{
|
|
408
|
+
"id": "7bde163d-9a5f-3f18-8b92-d752a79a10b2",
|
|
409
|
+
"execution_status": "failed",
|
|
410
|
+
"entity_id": "c2b1a9d8-7e6f-5040-3029-180716253f4e",
|
|
411
|
+
"activity_id": "b3c4d5e6-f7a8-9012-3456-789012bcdef0",
|
|
412
|
+
"org_id": "123",
|
|
413
|
+
"flow_id": "6d1d956d-2b52-4a0a-9e01-5049a2c0ee78",
|
|
414
|
+
"flow_name": "Document upload handler",
|
|
415
|
+
"created_at": "2023-01-01T14:00:00Z",
|
|
416
|
+
"updated_at": "2023-01-01T14:01:30Z",
|
|
417
|
+
"actions": [],
|
|
418
|
+
"version": 1,
|
|
419
|
+
"trigger_event": {
|
|
420
|
+
"type": "entity_activity",
|
|
421
|
+
"org_id": "123",
|
|
422
|
+
"activity_id": "b3c4d5e6-f7a8-9012-3456-789012bcdef0",
|
|
423
|
+
"activity_type": "DocUploadedFromPortal",
|
|
424
|
+
"entity_id": "c2b1a9d8-7e6f-5040-3029-180716253f4e"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"flow_automation_task_trigger": {
|
|
431
|
+
"summary": "Flow automation task trigger execution",
|
|
432
|
+
"value": {
|
|
433
|
+
"total": 1,
|
|
434
|
+
"results": [
|
|
435
|
+
{
|
|
436
|
+
"id": "5ade051c-8a4e-2e07-7a81-c641968a0fa1",
|
|
437
|
+
"execution_status": "paused",
|
|
438
|
+
"entity_id": "d3c2b1a0-8f7e-6d5c-4b3a-291807364e5f",
|
|
439
|
+
"org_id": "123",
|
|
440
|
+
"flow_id": "9f0f178f-4c74-5b2b-af12-6160b3d1ee89",
|
|
441
|
+
"flow_name": "Journey completion follow-up",
|
|
442
|
+
"created_at": "2023-01-01T16:00:00Z",
|
|
443
|
+
"updated_at": "2023-01-01T16:03:00Z",
|
|
444
|
+
"actions": [],
|
|
445
|
+
"version": 1,
|
|
446
|
+
"resume_token": "eyJraWQiOiJrZXkifQ==",
|
|
447
|
+
"trigger_event": {
|
|
448
|
+
"type": "flow_automation_task",
|
|
449
|
+
"org_id": "123",
|
|
450
|
+
"entity_id": "d3c2b1a0-8f7e-6d5c-4b3a-291807364e5f",
|
|
451
|
+
"flow_execution_id": "wfwAJoT_cK",
|
|
452
|
+
"flow_automation_task_id": "2fa221ec-3aac-4655-ab8f-c062eca44a3",
|
|
453
|
+
"caller": {
|
|
454
|
+
"EpilotAuth": {
|
|
455
|
+
"claims": {
|
|
456
|
+
"userId": "10006129",
|
|
457
|
+
"email": "user@epilot.cloud"
|
|
458
|
+
},
|
|
459
|
+
"userId": "10006129",
|
|
460
|
+
"organizationId": "123"
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"mixed_execution_statuses": {
|
|
469
|
+
"summary": "Multiple executions with different trigger types and statuses",
|
|
470
|
+
"value": {
|
|
471
|
+
"total": 4,
|
|
472
|
+
"results": [
|
|
473
|
+
{
|
|
474
|
+
"id": "1aef262e-9b5f-4f29-8c93-e763b90b21d3",
|
|
475
|
+
"execution_status": "success",
|
|
476
|
+
"entity_id": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74",
|
|
477
|
+
"org_id": "123",
|
|
478
|
+
"flow_id": "7791b04a-16d2-44a2-9af9-2d59c25c512f",
|
|
479
|
+
"flow_name": "Send welcome email",
|
|
480
|
+
"created_at": "2023-01-01T09:00:00Z",
|
|
481
|
+
"updated_at": "2023-01-01T09:02:00Z",
|
|
482
|
+
"actions": [],
|
|
483
|
+
"version": 2,
|
|
484
|
+
"trigger_event": {
|
|
485
|
+
"type": "manual",
|
|
486
|
+
"org_id": "123",
|
|
487
|
+
"entity_id": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74",
|
|
488
|
+
"caller": {
|
|
489
|
+
"EpilotAuth": {
|
|
490
|
+
"claims": {
|
|
491
|
+
"userId": "10006129",
|
|
492
|
+
"email": "admin@epilot.cloud"
|
|
493
|
+
},
|
|
494
|
+
"userId": "10006129",
|
|
495
|
+
"organizationId": "123"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"id": "2bef373f-ac60-5039-9da4-f874ca1c32e4",
|
|
502
|
+
"execution_status": "in_progress",
|
|
503
|
+
"entity_id": "f4e4fcbd-cbcc-4496-bf5f-60c6ce2c621e",
|
|
504
|
+
"activity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
|
|
505
|
+
"org_id": "123",
|
|
506
|
+
"flow_id": "8e2e067e-3c63-4b1a-8e02-6150a3d1fd89",
|
|
507
|
+
"flow_name": "Update CRM system",
|
|
508
|
+
"created_at": "2023-01-01T10:30:00Z",
|
|
509
|
+
"updated_at": "2023-01-01T10:31:00Z",
|
|
510
|
+
"actions": [],
|
|
511
|
+
"version": 1,
|
|
512
|
+
"trigger_event": {
|
|
513
|
+
"type": "entity_operation",
|
|
514
|
+
"entity_id": "f4e4fcbd-cbcc-4496-bf5f-60c6ce2c621e",
|
|
515
|
+
"org_id": "123",
|
|
516
|
+
"activity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
|
|
517
|
+
"operation_type": "createEntity"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "3cef484g-bd71-6149-ae04-0985db2d43f5",
|
|
522
|
+
"execution_status": "failed",
|
|
523
|
+
"entity_id": "c2b1a9d8-7e6f-5040-3029-180716253f4e",
|
|
524
|
+
"activity_id": "b3c4d5e6-f7a8-9012-3456-789012bcdef0",
|
|
525
|
+
"org_id": "123",
|
|
526
|
+
"flow_id": "6d1d956d-2b52-4a0a-9e01-5049a2c0ee78",
|
|
527
|
+
"flow_name": "Generate invoice",
|
|
528
|
+
"created_at": "2023-01-01T11:15:00Z",
|
|
529
|
+
"updated_at": "2023-01-01T11:16:30Z",
|
|
530
|
+
"actions": [],
|
|
531
|
+
"version": 1,
|
|
532
|
+
"trigger_event": {
|
|
533
|
+
"type": "entity_activity",
|
|
534
|
+
"org_id": "123",
|
|
535
|
+
"activity_id": "b3c4d5e6-f7a8-9012-3456-789012bcdef0",
|
|
536
|
+
"activity_type": "CreateMeterReading",
|
|
537
|
+
"entity_id": "c2b1a9d8-7e6f-5040-3029-180716253f4e"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"id": "4def595h-ce82-7259-bf15-1a96ec3e54g6",
|
|
542
|
+
"execution_status": "scheduled",
|
|
543
|
+
"entity_id": "d3c2b1a0-8f7e-6d5c-4b3a-291807364e5f",
|
|
544
|
+
"org_id": "123",
|
|
545
|
+
"flow_id": "9f0f178f-4c74-5b2b-af12-6160b3d1ee89",
|
|
546
|
+
"flow_name": "Scheduled reminder",
|
|
547
|
+
"created_at": "2023-01-01T12:45:00Z",
|
|
548
|
+
"updated_at": "2023-01-01T12:45:00Z",
|
|
549
|
+
"actions": [],
|
|
550
|
+
"version": 1,
|
|
551
|
+
"trigger_event": {
|
|
552
|
+
"type": "flow_automation_task",
|
|
553
|
+
"org_id": "123",
|
|
554
|
+
"entity_id": "d3c2b1a0-8f7e-6d5c-4b3a-291807364e5f",
|
|
555
|
+
"flow_execution_id": "xgxBKpU_dL",
|
|
556
|
+
"flow_automation_task_id": "3gb332fd-4bbd-5766-bc9g-d173fdb55b4",
|
|
557
|
+
"caller": {
|
|
558
|
+
"EpilotAuth": {
|
|
559
|
+
"claims": {
|
|
560
|
+
"userId": "10006130",
|
|
561
|
+
"email": "scheduler@epilot.cloud"
|
|
562
|
+
},
|
|
563
|
+
"userId": "10006130",
|
|
564
|
+
"organizationId": "123"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"403": {
|
|
577
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"post": {
|
|
582
|
+
"operationId": "startExecution",
|
|
583
|
+
"summary": "startExecution",
|
|
584
|
+
"description": "Start new automation execution",
|
|
585
|
+
"requestBody": {
|
|
586
|
+
"description": "Execution parameters",
|
|
587
|
+
"content": {
|
|
588
|
+
"application/json": {
|
|
589
|
+
"schema": {
|
|
590
|
+
"$ref": "#/components/schemas/StartExecutionRequest"
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"tags": [
|
|
596
|
+
"executions"
|
|
597
|
+
],
|
|
598
|
+
"responses": {
|
|
599
|
+
"201": {
|
|
600
|
+
"description": "The created execution",
|
|
601
|
+
"content": {
|
|
602
|
+
"application/json": {
|
|
603
|
+
"schema": {
|
|
604
|
+
"$ref": "#/components/schemas/AutomationExecution"
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"403": {
|
|
610
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"/v1/automation/executions/bulk-jobs": {
|
|
616
|
+
"post": {
|
|
617
|
+
"operationId": "bulkTriggerExecutions",
|
|
618
|
+
"summary": "bulkTriggerExecutions",
|
|
619
|
+
"description": "Create a bulk job that triggers multiple automation executions",
|
|
620
|
+
"requestBody": {
|
|
621
|
+
"description": "Execution parameters",
|
|
622
|
+
"content": {
|
|
623
|
+
"application/json": {
|
|
624
|
+
"schema": {
|
|
625
|
+
"$ref": "#/components/schemas/BulkTriggerRequest"
|
|
626
|
+
},
|
|
627
|
+
"example": {
|
|
628
|
+
"flow_id": "8e2e067e-3c63-4b1a-8e02-6150a3d1fd89",
|
|
629
|
+
"entities_refs": [
|
|
630
|
+
{
|
|
631
|
+
"entity_schema": "opportunity",
|
|
632
|
+
"entity_id": "7791b04a-16d2-44a2-9af9-2d59c25c512f"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"entity_schema": "opportunity",
|
|
636
|
+
"entity_id": "b35a6c51-2a15-4ef1-9623-20db37b0744f"
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
"trigger_context": {
|
|
640
|
+
"entity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
"tags": [
|
|
647
|
+
"bulk"
|
|
648
|
+
],
|
|
649
|
+
"responses": {
|
|
650
|
+
"202": {
|
|
651
|
+
"description": "Trigger Executions Job Info",
|
|
652
|
+
"content": {
|
|
653
|
+
"application/json": {
|
|
654
|
+
"schema": {
|
|
655
|
+
"$ref": "#/components/schemas/BulkTriggerJob"
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
"403": {
|
|
661
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"/v1/automation/executions/bulk-jobs/{job_id}": {
|
|
667
|
+
"get": {
|
|
668
|
+
"operationId": "getBulkJob",
|
|
669
|
+
"summary": "getBulkJob",
|
|
670
|
+
"description": "Get the status of a bulk job that triggers multiple automation executions",
|
|
671
|
+
"parameters": [
|
|
672
|
+
{
|
|
673
|
+
"name": "job_id",
|
|
674
|
+
"in": "path",
|
|
675
|
+
"schema": {
|
|
676
|
+
"$ref": "#/components/schemas/JobId"
|
|
677
|
+
},
|
|
678
|
+
"required": true
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
"tags": [
|
|
682
|
+
"bulk"
|
|
683
|
+
],
|
|
684
|
+
"responses": {
|
|
685
|
+
"200": {
|
|
686
|
+
"description": "Bulk Job Info",
|
|
687
|
+
"content": {
|
|
688
|
+
"application/json": {
|
|
689
|
+
"schema": {
|
|
690
|
+
"$ref": "#/components/schemas/BulkTriggerJob"
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"403": {
|
|
696
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
697
|
+
},
|
|
698
|
+
"404": {
|
|
699
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
"patch": {
|
|
704
|
+
"operationId": "patchBulkJob",
|
|
705
|
+
"summary": "patchBulkJob",
|
|
706
|
+
"description": "Approve / Cancel bulk job that triggers multiple automation executions",
|
|
707
|
+
"parameters": [
|
|
708
|
+
{
|
|
709
|
+
"name": "job_id",
|
|
710
|
+
"in": "path",
|
|
711
|
+
"schema": {
|
|
712
|
+
"$ref": "#/components/schemas/JobId"
|
|
713
|
+
},
|
|
714
|
+
"required": true
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"requestBody": {
|
|
718
|
+
"content": {
|
|
719
|
+
"application/json": {
|
|
720
|
+
"schema": {
|
|
721
|
+
"$ref": "#/components/schemas/PatchBulkJobRequest"
|
|
722
|
+
},
|
|
723
|
+
"example": {
|
|
724
|
+
"action": "APPROVE",
|
|
725
|
+
"task_token": "b35a6c51-2a15-4ef1-9623-20db37b0744f"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"tags": [
|
|
731
|
+
"bulk"
|
|
732
|
+
],
|
|
733
|
+
"responses": {
|
|
734
|
+
"200": {
|
|
735
|
+
"description": "Bulk Job Info",
|
|
736
|
+
"content": {
|
|
737
|
+
"application/json": {
|
|
738
|
+
"schema": {
|
|
739
|
+
"$ref": "#/components/schemas/BulkTriggerJob"
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
"403": {
|
|
745
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
746
|
+
},
|
|
747
|
+
"404": {
|
|
748
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
"/v1/automation/executions/{execution_id}": {
|
|
754
|
+
"get": {
|
|
755
|
+
"operationId": "getExecution",
|
|
756
|
+
"summary": "getExecution",
|
|
757
|
+
"description": "Get automation execution",
|
|
758
|
+
"parameters": [
|
|
759
|
+
{
|
|
760
|
+
"name": "execution_id",
|
|
761
|
+
"in": "path",
|
|
762
|
+
"schema": {
|
|
763
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
764
|
+
},
|
|
765
|
+
"required": true
|
|
766
|
+
}
|
|
767
|
+
],
|
|
768
|
+
"tags": [
|
|
769
|
+
"executions"
|
|
770
|
+
],
|
|
771
|
+
"responses": {
|
|
772
|
+
"200": {
|
|
773
|
+
"description": "The returned execution",
|
|
774
|
+
"content": {
|
|
775
|
+
"application/json": {
|
|
776
|
+
"schema": {
|
|
777
|
+
"$ref": "#/components/schemas/AutomationExecution"
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"403": {
|
|
783
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
784
|
+
},
|
|
785
|
+
"404": {
|
|
786
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"delete": {
|
|
791
|
+
"operationId": "cancelExecution",
|
|
792
|
+
"summary": "cancelExecution",
|
|
793
|
+
"description": "Cancel automation execution",
|
|
794
|
+
"parameters": [
|
|
795
|
+
{
|
|
796
|
+
"name": "execution_id",
|
|
797
|
+
"in": "path",
|
|
798
|
+
"schema": {
|
|
799
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
800
|
+
},
|
|
801
|
+
"required": true
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"tags": [
|
|
805
|
+
"executions"
|
|
806
|
+
],
|
|
807
|
+
"responses": {
|
|
808
|
+
"200": {
|
|
809
|
+
"description": "The cancelled execution",
|
|
810
|
+
"content": {
|
|
811
|
+
"application/json": {
|
|
812
|
+
"schema": {
|
|
813
|
+
"$ref": "#/components/schemas/AutomationExecution"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"403": {
|
|
819
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
820
|
+
},
|
|
821
|
+
"404": {
|
|
822
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
"/v1/automation/executions/{execution_id}/{action_id}/retrigger": {
|
|
828
|
+
"post": {
|
|
829
|
+
"operationId": "retriggerAction",
|
|
830
|
+
"summary": "retriggerAction",
|
|
831
|
+
"description": "Retry a specific automation execution action which failed / is stuck.",
|
|
832
|
+
"tags": [
|
|
833
|
+
"executions"
|
|
834
|
+
],
|
|
835
|
+
"parameters": [
|
|
836
|
+
{
|
|
837
|
+
"name": "execution_id",
|
|
838
|
+
"in": "path",
|
|
839
|
+
"description": "Execution Id",
|
|
840
|
+
"schema": {
|
|
841
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
842
|
+
},
|
|
843
|
+
"required": true
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "action_id",
|
|
847
|
+
"in": "path",
|
|
848
|
+
"description": "Id of Action to retry.",
|
|
849
|
+
"schema": {
|
|
850
|
+
"$ref": "#/components/schemas/AutomationActionId"
|
|
851
|
+
},
|
|
852
|
+
"required": true
|
|
853
|
+
}
|
|
854
|
+
],
|
|
855
|
+
"requestBody": {
|
|
856
|
+
"description": "Retry request details.",
|
|
857
|
+
"required": false,
|
|
858
|
+
"content": {
|
|
859
|
+
"application/json": {
|
|
860
|
+
"schema": {
|
|
861
|
+
"$ref": "#/components/schemas/RetryReq"
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"responses": {
|
|
867
|
+
"200": {
|
|
868
|
+
"description": "action re-triggered with success"
|
|
869
|
+
},
|
|
870
|
+
"403": {
|
|
871
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
872
|
+
},
|
|
873
|
+
"404": {
|
|
874
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
"/v1/automation/public/executions:resume": {
|
|
880
|
+
"post": {
|
|
881
|
+
"operationId": "resumeExecutionWithToken",
|
|
882
|
+
"summary": "resumeExecutionWithToken",
|
|
883
|
+
"description": "Resume a paused automation execution using a unique resume token.\n\nThis public API is normally called when a user lands on a confirmation page via email link.\n\nExample link: https://automation.epilot.io/confirm-email?token=eyJraWQiOiJrZXkifQ...\n",
|
|
884
|
+
"tags": [
|
|
885
|
+
"executions"
|
|
886
|
+
],
|
|
887
|
+
"security": [],
|
|
888
|
+
"requestBody": {
|
|
889
|
+
"description": "Retry request details.",
|
|
890
|
+
"content": {
|
|
891
|
+
"application/json": {
|
|
892
|
+
"schema": {
|
|
893
|
+
"$ref": "#/components/schemas/ResumeReq"
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
"responses": {
|
|
899
|
+
"200": {
|
|
900
|
+
"description": "execution resumed with success",
|
|
901
|
+
"content": {
|
|
902
|
+
"application/json": {
|
|
903
|
+
"schema": {
|
|
904
|
+
"$ref": "#/components/schemas/ResumeResp"
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
"400": {
|
|
910
|
+
"description": "execution could not be resumed"
|
|
911
|
+
},
|
|
912
|
+
"403": {
|
|
913
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
914
|
+
},
|
|
915
|
+
"404": {
|
|
916
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"/v1/automation/executions/{execution_id}/schedules/{schedule_id}": {
|
|
922
|
+
"delete": {
|
|
923
|
+
"operationId": "cancelSchedule",
|
|
924
|
+
"summary": "cancelSchedule",
|
|
925
|
+
"description": "Cancel a scheduled automation",
|
|
926
|
+
"parameters": [
|
|
927
|
+
{
|
|
928
|
+
"name": "execution_id",
|
|
929
|
+
"in": "path",
|
|
930
|
+
"schema": {
|
|
931
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
932
|
+
},
|
|
933
|
+
"required": true
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "schedule_id",
|
|
937
|
+
"in": "path",
|
|
938
|
+
"schema": {
|
|
939
|
+
"type": "string"
|
|
940
|
+
},
|
|
941
|
+
"required": true,
|
|
942
|
+
"description": "ID of the schedule to cancel"
|
|
943
|
+
}
|
|
944
|
+
],
|
|
945
|
+
"tags": [
|
|
946
|
+
"executions"
|
|
947
|
+
],
|
|
948
|
+
"responses": {
|
|
949
|
+
"200": {
|
|
950
|
+
"description": "The schedule was successfully cancelled",
|
|
951
|
+
"content": {
|
|
952
|
+
"application/json": {
|
|
953
|
+
"schema": {
|
|
954
|
+
"$ref": "#/components/schemas/ActionSchedule"
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
"403": {
|
|
960
|
+
"$ref": "#/components/responses/ForbiddenError"
|
|
961
|
+
},
|
|
962
|
+
"404": {
|
|
963
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"components": {
|
|
970
|
+
"securitySchemes": {
|
|
971
|
+
"EpilotAuth": {
|
|
972
|
+
"type": "http",
|
|
973
|
+
"scheme": "bearer",
|
|
974
|
+
"description": "Epilot Bearer Token"
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
"schemas": {
|
|
978
|
+
"AutomationFlowId": {
|
|
979
|
+
"type": "string",
|
|
980
|
+
"description": "ID of the Automation Flow",
|
|
981
|
+
"example": "7791b04a-16d2-44a2-9af9-2d59c25c512f",
|
|
982
|
+
"readOnly": true
|
|
983
|
+
},
|
|
984
|
+
"AutomationActionId": {
|
|
985
|
+
"type": "string",
|
|
986
|
+
"example": "9ec3711b-db63-449c-b894-54d5bb622a8f"
|
|
987
|
+
},
|
|
988
|
+
"AutomationFlow": {
|
|
989
|
+
"type": "object",
|
|
990
|
+
"properties": {
|
|
991
|
+
"id": {
|
|
992
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
993
|
+
},
|
|
994
|
+
"flow_name": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"description": "A descriptive name for the Automation",
|
|
997
|
+
"example": "Handle contact form"
|
|
998
|
+
},
|
|
999
|
+
"enabled": {
|
|
1000
|
+
"type": "boolean",
|
|
1001
|
+
"description": "Whether the automation is enabled or not"
|
|
1002
|
+
},
|
|
1003
|
+
"disable_details": {
|
|
1004
|
+
"type": "object",
|
|
1005
|
+
"properties": {
|
|
1006
|
+
"disabled_at": {
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"format": "date-time",
|
|
1009
|
+
"description": "When the flow was disabled"
|
|
1010
|
+
},
|
|
1011
|
+
"disabled_by": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"enum": [
|
|
1014
|
+
"system",
|
|
1015
|
+
"user"
|
|
1016
|
+
],
|
|
1017
|
+
"description": "Who disabled the flow (system or user)"
|
|
1018
|
+
},
|
|
1019
|
+
"blame": {
|
|
1020
|
+
"type": "string",
|
|
1021
|
+
"description": "The 360 user email that disabled the flow"
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
"required": [
|
|
1025
|
+
"disabled_at",
|
|
1026
|
+
"disabled_by"
|
|
1027
|
+
]
|
|
1028
|
+
},
|
|
1029
|
+
"triggers": {
|
|
1030
|
+
"type": "array",
|
|
1031
|
+
"items": {
|
|
1032
|
+
"$ref": "#/components/schemas/AnyTrigger"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"trigger_conditions": {
|
|
1036
|
+
"type": "array",
|
|
1037
|
+
"items": {
|
|
1038
|
+
"$ref": "#/components/schemas/TriggerCondition"
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
"entity_schema": {
|
|
1042
|
+
"description": "The triggering entity schema",
|
|
1043
|
+
"type": "string",
|
|
1044
|
+
"example": "submission"
|
|
1045
|
+
},
|
|
1046
|
+
"conditions": {
|
|
1047
|
+
"type": "array",
|
|
1048
|
+
"items": {
|
|
1049
|
+
"$ref": "#/components/schemas/ActionCondition"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
"schedules": {
|
|
1053
|
+
"type": "array",
|
|
1054
|
+
"items": {
|
|
1055
|
+
"$ref": "#/components/schemas/ActionSchedule"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"actions": {
|
|
1059
|
+
"type": "array",
|
|
1060
|
+
"description": "The actions (nodes) of the automation flow",
|
|
1061
|
+
"items": {
|
|
1062
|
+
"$ref": "#/components/schemas/AnyAction"
|
|
1063
|
+
},
|
|
1064
|
+
"readOnly": true
|
|
1065
|
+
},
|
|
1066
|
+
"runs": {
|
|
1067
|
+
"type": "number",
|
|
1068
|
+
"example": 7,
|
|
1069
|
+
"description": "Number of automation executions that ran"
|
|
1070
|
+
},
|
|
1071
|
+
"max_executions": {
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"description": "Customized execution hot flow rate limit. Takes precedence over the default hot flow rate limit if specified.",
|
|
1074
|
+
"properties": {
|
|
1075
|
+
"count": {
|
|
1076
|
+
"type": "number",
|
|
1077
|
+
"description": "Maximum number of executions per time window",
|
|
1078
|
+
"minimum": 1,
|
|
1079
|
+
"example": 100
|
|
1080
|
+
},
|
|
1081
|
+
"window": {
|
|
1082
|
+
"type": "string",
|
|
1083
|
+
"description": "ISO 8601 duration time window for the threshold",
|
|
1084
|
+
"example": "PT1M"
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
"created_at": {
|
|
1089
|
+
"type": "string",
|
|
1090
|
+
"format": "date-time",
|
|
1091
|
+
"readOnly": true
|
|
1092
|
+
},
|
|
1093
|
+
"updated_at": {
|
|
1094
|
+
"type": "string",
|
|
1095
|
+
"format": "date-time",
|
|
1096
|
+
"readOnly": true
|
|
1097
|
+
},
|
|
1098
|
+
"created_by": {
|
|
1099
|
+
"type": "string",
|
|
1100
|
+
"example": "user:123",
|
|
1101
|
+
"description": "User / service who created automation flow",
|
|
1102
|
+
"readOnly": true
|
|
1103
|
+
},
|
|
1104
|
+
"last_updated_by": {
|
|
1105
|
+
"type": "string",
|
|
1106
|
+
"example": "user:123",
|
|
1107
|
+
"description": "User / service who last updated automation flow",
|
|
1108
|
+
"readOnly": true
|
|
1109
|
+
},
|
|
1110
|
+
"org_id": {
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"example": "123",
|
|
1113
|
+
"description": "Organization the automation flow belongs to",
|
|
1114
|
+
"readOnly": true
|
|
1115
|
+
},
|
|
1116
|
+
"system_flow": {
|
|
1117
|
+
"type": "boolean",
|
|
1118
|
+
"description": "Determines if the flow is a system generated flow"
|
|
1119
|
+
},
|
|
1120
|
+
"version": {
|
|
1121
|
+
"type": "number",
|
|
1122
|
+
"description": "Version of the flow",
|
|
1123
|
+
"example": 2
|
|
1124
|
+
},
|
|
1125
|
+
"_manifest": {
|
|
1126
|
+
"type": "array",
|
|
1127
|
+
"description": "Source blueprint/manifest ID used when automation is created via blueprints.",
|
|
1128
|
+
"items": {
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"format": "uuid",
|
|
1131
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
1132
|
+
},
|
|
1133
|
+
"nullable": true
|
|
1134
|
+
},
|
|
1135
|
+
"workflow_context": {
|
|
1136
|
+
"$ref": "#/components/schemas/WorkflowContext"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"required": [
|
|
1140
|
+
"flow_name",
|
|
1141
|
+
"triggers",
|
|
1142
|
+
"actions"
|
|
1143
|
+
]
|
|
1144
|
+
},
|
|
1145
|
+
"WorkflowContext": {
|
|
1146
|
+
"type": "object",
|
|
1147
|
+
"description": "For automation that are connected to workflows V2, this field tracks various information about the workflow.",
|
|
1148
|
+
"required": [
|
|
1149
|
+
"workflow_id",
|
|
1150
|
+
"workflow_role"
|
|
1151
|
+
],
|
|
1152
|
+
"properties": {
|
|
1153
|
+
"workflow_id": {
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
"format": "uuid",
|
|
1156
|
+
"description": "The ID of the workflow this automation is connected to"
|
|
1157
|
+
},
|
|
1158
|
+
"task_id": {
|
|
1159
|
+
"type": "string",
|
|
1160
|
+
"format": "uuid",
|
|
1161
|
+
"description": "The ID of the task in the workflow that this automation is connected to"
|
|
1162
|
+
},
|
|
1163
|
+
"workflow_role": {
|
|
1164
|
+
"$ref": "#/components/schemas/WorkflowContextRole"
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
"WorkflowContextRole": {
|
|
1169
|
+
"type": "string",
|
|
1170
|
+
"description": "The role this automation plays in the workflow.",
|
|
1171
|
+
"enum": [
|
|
1172
|
+
"trigger_workflow",
|
|
1173
|
+
"run_task_automation"
|
|
1174
|
+
]
|
|
1175
|
+
},
|
|
1176
|
+
"SearchAutomationsResp": {
|
|
1177
|
+
"type": "object",
|
|
1178
|
+
"properties": {
|
|
1179
|
+
"total": {
|
|
1180
|
+
"type": "number"
|
|
1181
|
+
},
|
|
1182
|
+
"results": {
|
|
1183
|
+
"type": "array",
|
|
1184
|
+
"items": {
|
|
1185
|
+
"$ref": "#/components/schemas/AutomationFlow"
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
"required": [
|
|
1190
|
+
"total",
|
|
1191
|
+
"results"
|
|
1192
|
+
]
|
|
1193
|
+
},
|
|
1194
|
+
"AnyTrigger": {
|
|
1195
|
+
"anyOf": [
|
|
1196
|
+
{
|
|
1197
|
+
"$ref": "#/components/schemas/FrontendSubmitTrigger"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"$ref": "#/components/schemas/JourneySubmitTrigger"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"$ref": "#/components/schemas/ApiSubmissionTrigger"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"$ref": "#/components/schemas/EntityOperationTrigger"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"$ref": "#/components/schemas/ActivityTrigger"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"$ref": "#/components/schemas/EntityManualTrigger"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"$ref": "#/components/schemas/ReceivedEmailTrigger"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"$ref": "#/components/schemas/NewEmailThreadTrigger"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"$ref": "#/components/schemas/FlowsTrigger"
|
|
1222
|
+
}
|
|
1223
|
+
]
|
|
1224
|
+
},
|
|
1225
|
+
"AnyAction": {
|
|
1226
|
+
"anyOf": [
|
|
1227
|
+
{
|
|
1228
|
+
"$ref": "#/components/schemas/MapEntityAction"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"$ref": "#/components/schemas/TriggerWorkflowAction"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"$ref": "#/components/schemas/TriggerShareEntityAction"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"$ref": "#/components/schemas/TriggerWebhookAction"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"$ref": "#/components/schemas/InformERPAction"
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"$ref": "#/components/schemas/TriggerEventAction"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"$ref": "#/components/schemas/CreateDocumentAction"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"$ref": "#/components/schemas/SendEmailAction"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"$ref": "#/components/schemas/CartCheckoutAction"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"$ref": "#/components/schemas/CustomAction"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"$ref": "#/components/schemas/FlowExecutionCancelAction"
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1264
|
+
},
|
|
1265
|
+
"AnyActionConfig": {
|
|
1266
|
+
"anyOf": [
|
|
1267
|
+
{
|
|
1268
|
+
"$ref": "#/components/schemas/MapEntityActionConfig"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"$ref": "#/components/schemas/TriggerWorkflowActionConfig"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"$ref": "#/components/schemas/TriggerShareEntityActionConfig"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"$ref": "#/components/schemas/TriggerWebhookActionConfig"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"$ref": "#/components/schemas/InformERPActionConfig"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"$ref": "#/components/schemas/TriggerEventActionConfig"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"$ref": "#/components/schemas/CreateDocumentActionConfig"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"$ref": "#/components/schemas/SendEmailActionConfig"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"$ref": "#/components/schemas/CartCheckoutActionConfig"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"$ref": "#/components/schemas/CustomAction"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"$ref": "#/components/schemas/FlowExecutionCancelActionConfig"
|
|
1302
|
+
}
|
|
1303
|
+
]
|
|
1304
|
+
},
|
|
1305
|
+
"AutomationActionConfig": {
|
|
1306
|
+
"type": "object",
|
|
1307
|
+
"properties": {
|
|
1308
|
+
"id": {
|
|
1309
|
+
"$ref": "#/components/schemas/AutomationActionId"
|
|
1310
|
+
},
|
|
1311
|
+
"flow_action_id": {
|
|
1312
|
+
"$ref": "#/components/schemas/AutomationActionId"
|
|
1313
|
+
},
|
|
1314
|
+
"name": {
|
|
1315
|
+
"type": "string"
|
|
1316
|
+
},
|
|
1317
|
+
"type": {
|
|
1318
|
+
"type": "string"
|
|
1319
|
+
},
|
|
1320
|
+
"config": {
|
|
1321
|
+
"type": "object",
|
|
1322
|
+
"additionalProperties": true
|
|
1323
|
+
},
|
|
1324
|
+
"allow_failure": {
|
|
1325
|
+
"description": "Whether to stop execution in a failed state if this action fails",
|
|
1326
|
+
"type": "boolean"
|
|
1327
|
+
},
|
|
1328
|
+
"created_automatically": {
|
|
1329
|
+
"description": "Flag indicating whether the action was created automatically or manually",
|
|
1330
|
+
"type": "boolean"
|
|
1331
|
+
},
|
|
1332
|
+
"is_bulk_action": {
|
|
1333
|
+
"description": "Flag indicating whether the same action can be in bulk in a single execution. e.g; send-email / map-entity",
|
|
1334
|
+
"type": "boolean"
|
|
1335
|
+
},
|
|
1336
|
+
"reason": {
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"properties": {
|
|
1339
|
+
"message": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"description": "Why the action has to be skipped/failed",
|
|
1342
|
+
"example": "There are no registered portal users for the given emails, hence skipping the action"
|
|
1343
|
+
},
|
|
1344
|
+
"payload": {
|
|
1345
|
+
"type": "object",
|
|
1346
|
+
"additionalProperties": true,
|
|
1347
|
+
"description": "Extra metadata about the skipping reason - such as a certain condition not met, etc."
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
"condition_id": {
|
|
1352
|
+
"type": "string",
|
|
1353
|
+
"description": "Condition Id to be checked before executing the action"
|
|
1354
|
+
},
|
|
1355
|
+
"schedule_id": {
|
|
1356
|
+
"type": "string",
|
|
1357
|
+
"description": "Schedule Id which indicates the schedule of the action"
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
"AutomationActionExecutionState": {
|
|
1362
|
+
"type": "object",
|
|
1363
|
+
"properties": {
|
|
1364
|
+
"execution_status": {
|
|
1365
|
+
"$ref": "#/components/schemas/ExecutionStatus"
|
|
1366
|
+
},
|
|
1367
|
+
"started_at": {
|
|
1368
|
+
"type": "string"
|
|
1369
|
+
},
|
|
1370
|
+
"updated_at": {
|
|
1371
|
+
"type": "string"
|
|
1372
|
+
},
|
|
1373
|
+
"outputs": {
|
|
1374
|
+
"type": "object",
|
|
1375
|
+
"additionalProperties": true,
|
|
1376
|
+
"example": {}
|
|
1377
|
+
},
|
|
1378
|
+
"error_output": {
|
|
1379
|
+
"$ref": "#/components/schemas/ErrorOutput"
|
|
1380
|
+
},
|
|
1381
|
+
"retry_strategy": {
|
|
1382
|
+
"$ref": "#/components/schemas/RetryStrategy"
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
"RetryStrategy": {
|
|
1387
|
+
"type": "string",
|
|
1388
|
+
"description": "different behaviors for retrying failed execution actions.",
|
|
1389
|
+
"enum": [
|
|
1390
|
+
"RETRY_AND_RESUME",
|
|
1391
|
+
"RETRY_AND_STOP",
|
|
1392
|
+
"RETRY_ALL_PARENT_CONDITION_ACTIONS"
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
"AutomationAction": {
|
|
1396
|
+
"allOf": [
|
|
1397
|
+
{
|
|
1398
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"$ref": "#/components/schemas/AutomationActionExecutionState"
|
|
1402
|
+
}
|
|
1403
|
+
]
|
|
1404
|
+
},
|
|
1405
|
+
"ErrorOutput": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"error_code": {
|
|
1409
|
+
"$ref": "#/components/schemas/ErrorCode"
|
|
1410
|
+
},
|
|
1411
|
+
"error_reason": {
|
|
1412
|
+
"type": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"error_info": {
|
|
1415
|
+
"type": "object",
|
|
1416
|
+
"additionalProperties": true,
|
|
1417
|
+
"properties": {
|
|
1418
|
+
"details": {
|
|
1419
|
+
"type": "array",
|
|
1420
|
+
"items": {
|
|
1421
|
+
"$ref": "#/components/schemas/ErrorDetail"
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
"required": [
|
|
1428
|
+
"error_code",
|
|
1429
|
+
"error_reason"
|
|
1430
|
+
]
|
|
1431
|
+
},
|
|
1432
|
+
"ErrorCode": {
|
|
1433
|
+
"type": "string",
|
|
1434
|
+
"enum": [
|
|
1435
|
+
"MAPPING_ERROR",
|
|
1436
|
+
"REFRESH_RELATIONS_ERROR",
|
|
1437
|
+
"DUPLICATE_ENTITY_ERROR",
|
|
1438
|
+
"TRIGGER_WORKFLOW_ERROR",
|
|
1439
|
+
"TIMEOUT_ERROR",
|
|
1440
|
+
"BAD_CONFIG",
|
|
1441
|
+
"INTERNAL_ERROR",
|
|
1442
|
+
"TRIGGER_WEBHOOK_ERROR",
|
|
1443
|
+
"TEMPLATE_ERROR",
|
|
1444
|
+
"INVALID_PAYLOAD",
|
|
1445
|
+
"INVALID_SCHEDULE_CONFIG",
|
|
1446
|
+
"CUSTOM_ACTION_ERROR",
|
|
1447
|
+
"ORDER_CREATION_ERROR",
|
|
1448
|
+
"DOCUMENT_GENERATION_ERROR",
|
|
1449
|
+
"BULK_EMAIL_ERROR",
|
|
1450
|
+
"SHARING_ERROR",
|
|
1451
|
+
"CANCEL_FLOW_EXECUTION_ERROR",
|
|
1452
|
+
"METER_READING_NOT_FOUND",
|
|
1453
|
+
"ENTITY_NOT_FOUND"
|
|
1454
|
+
]
|
|
1455
|
+
},
|
|
1456
|
+
"ErrorDetail": {
|
|
1457
|
+
"type": "object",
|
|
1458
|
+
"properties": {
|
|
1459
|
+
"explanation": {
|
|
1460
|
+
"type": "string"
|
|
1461
|
+
},
|
|
1462
|
+
"context": {
|
|
1463
|
+
"type": "string"
|
|
1464
|
+
},
|
|
1465
|
+
"id": {
|
|
1466
|
+
"type": "string"
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
"required": [
|
|
1470
|
+
"explanation"
|
|
1471
|
+
]
|
|
1472
|
+
},
|
|
1473
|
+
"CartCheckoutActionConfig": {
|
|
1474
|
+
"allOf": [
|
|
1475
|
+
{
|
|
1476
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"type": "object",
|
|
1480
|
+
"description": "Creates an order entity with prices from journey",
|
|
1481
|
+
"properties": {
|
|
1482
|
+
"type": {
|
|
1483
|
+
"enum": [
|
|
1484
|
+
"cart-checkout"
|
|
1485
|
+
]
|
|
1486
|
+
},
|
|
1487
|
+
"config": {
|
|
1488
|
+
"$ref": "#/components/schemas/CartCheckoutConfig"
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
]
|
|
1493
|
+
},
|
|
1494
|
+
"CartCheckoutAction": {
|
|
1495
|
+
"allOf": [
|
|
1496
|
+
{
|
|
1497
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"type": "object",
|
|
1501
|
+
"description": "Creates an order entity with prices from journey",
|
|
1502
|
+
"properties": {
|
|
1503
|
+
"type": {
|
|
1504
|
+
"enum": [
|
|
1505
|
+
"cart-checkout"
|
|
1506
|
+
]
|
|
1507
|
+
},
|
|
1508
|
+
"config": {
|
|
1509
|
+
"$ref": "#/components/schemas/CartCheckoutConfig"
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
]
|
|
1514
|
+
},
|
|
1515
|
+
"CartCheckoutConfig": {
|
|
1516
|
+
"type": "object",
|
|
1517
|
+
"properties": {
|
|
1518
|
+
"version": {
|
|
1519
|
+
"description": "Version of the config",
|
|
1520
|
+
"type": "string",
|
|
1521
|
+
"default": "1"
|
|
1522
|
+
},
|
|
1523
|
+
"mapping_config": {
|
|
1524
|
+
"$ref": "#/components/schemas/MappingConfigRef"
|
|
1525
|
+
},
|
|
1526
|
+
"relation_attributes": {
|
|
1527
|
+
"type": "array",
|
|
1528
|
+
"items": {
|
|
1529
|
+
"$ref": "#/components/schemas/RelationAttribute"
|
|
1530
|
+
}
|
|
1531
|
+
},
|
|
1532
|
+
"mapping_attributes": {
|
|
1533
|
+
"type": "array",
|
|
1534
|
+
"items": {
|
|
1535
|
+
"anyOf": [
|
|
1536
|
+
{
|
|
1537
|
+
"$ref": "#/components/schemas/MappingAttributeV2"
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"$ref": "#/components/schemas/MappingAttribute"
|
|
1541
|
+
}
|
|
1542
|
+
]
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
"linkback_relation_attribute": {
|
|
1546
|
+
"type": "string",
|
|
1547
|
+
"default": "mapped_entities",
|
|
1548
|
+
"description": "Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback\n"
|
|
1549
|
+
},
|
|
1550
|
+
"linkback_relation_tags": {
|
|
1551
|
+
"type": "array",
|
|
1552
|
+
"description": "Relation tags (labels) to include in main entity linkback relation attribute",
|
|
1553
|
+
"items": {
|
|
1554
|
+
"type": "string"
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
"target_unique": {
|
|
1558
|
+
"type": "array",
|
|
1559
|
+
"description": "Unique key for target entity (see upsertEntity of Entity API)",
|
|
1560
|
+
"items": {
|
|
1561
|
+
"type": "string"
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"MapEntityActionConfig": {
|
|
1567
|
+
"allOf": [
|
|
1568
|
+
{
|
|
1569
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"type": "object",
|
|
1573
|
+
"properties": {
|
|
1574
|
+
"type": {
|
|
1575
|
+
"enum": [
|
|
1576
|
+
"map-entity"
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1579
|
+
"config": {
|
|
1580
|
+
"$ref": "#/components/schemas/MapEntityConfig"
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
],
|
|
1585
|
+
"example": {
|
|
1586
|
+
"id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
1587
|
+
"name": "Map Entity",
|
|
1588
|
+
"type": "map-entity",
|
|
1589
|
+
"config": {
|
|
1590
|
+
"target_schema": "contact",
|
|
1591
|
+
"target_unique": [
|
|
1592
|
+
"email.0.email"
|
|
1593
|
+
],
|
|
1594
|
+
"relation_attributes": [
|
|
1595
|
+
{
|
|
1596
|
+
"target": "company",
|
|
1597
|
+
"mode": "append",
|
|
1598
|
+
"source_filter": {
|
|
1599
|
+
"schema": "account",
|
|
1600
|
+
"limit": 1
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
],
|
|
1604
|
+
"mapping_attributes": [
|
|
1605
|
+
{
|
|
1606
|
+
"target": "_tags",
|
|
1607
|
+
"operation": {
|
|
1608
|
+
"_append": [
|
|
1609
|
+
"primary",
|
|
1610
|
+
"payer"
|
|
1611
|
+
],
|
|
1612
|
+
"_uniq": true
|
|
1613
|
+
}
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"target": "email",
|
|
1617
|
+
"operation": {
|
|
1618
|
+
"_append": [
|
|
1619
|
+
{
|
|
1620
|
+
"email": {
|
|
1621
|
+
"_copy": "billing_contact.email"
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
]
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"target": "first_name",
|
|
1629
|
+
"operation": {
|
|
1630
|
+
"_copy": "billing_contact.first_name"
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
"target": "last_name",
|
|
1635
|
+
"operation": {
|
|
1636
|
+
"_copy": "billing_contact.last_name"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"target": "contact_type",
|
|
1641
|
+
"operation": {
|
|
1642
|
+
"_set": "customer"
|
|
1643
|
+
}
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"target": "address",
|
|
1647
|
+
"operation": {
|
|
1648
|
+
"_append": [
|
|
1649
|
+
{
|
|
1650
|
+
"_tags": [
|
|
1651
|
+
"billing",
|
|
1652
|
+
"primary"
|
|
1653
|
+
],
|
|
1654
|
+
"street_name": {
|
|
1655
|
+
"_copy": "billing_contact.street_name"
|
|
1656
|
+
},
|
|
1657
|
+
"street_number": {
|
|
1658
|
+
"_copy": "billing_contact.street_number"
|
|
1659
|
+
},
|
|
1660
|
+
"city": {
|
|
1661
|
+
"_copy": "billing_contact.city"
|
|
1662
|
+
},
|
|
1663
|
+
"postal_code": {
|
|
1664
|
+
"_copy": "billing_contact.postal_code"
|
|
1665
|
+
},
|
|
1666
|
+
"country": {
|
|
1667
|
+
"_copy": "billing_contact.country"
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"_tags": [
|
|
1672
|
+
"delivery"
|
|
1673
|
+
],
|
|
1674
|
+
"street_name": {
|
|
1675
|
+
"_copy": "delivery_contact.street_name"
|
|
1676
|
+
},
|
|
1677
|
+
"street_number": {
|
|
1678
|
+
"_copy": "delivery_contact.street_number"
|
|
1679
|
+
},
|
|
1680
|
+
"city": {
|
|
1681
|
+
"_copy": "delivery_contact.city"
|
|
1682
|
+
},
|
|
1683
|
+
"postal_code": {
|
|
1684
|
+
"_copy": "delivery_contact.postal_code"
|
|
1685
|
+
},
|
|
1686
|
+
"country": {
|
|
1687
|
+
"_copy": "delivery_contact.country"
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
],
|
|
1691
|
+
"_uniq": [
|
|
1692
|
+
"street_name",
|
|
1693
|
+
"street_number",
|
|
1694
|
+
"postal_code",
|
|
1695
|
+
"country"
|
|
1696
|
+
]
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
]
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
"MapEntityAction": {
|
|
1704
|
+
"allOf": [
|
|
1705
|
+
{
|
|
1706
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"type": "object",
|
|
1710
|
+
"properties": {
|
|
1711
|
+
"type": {
|
|
1712
|
+
"enum": [
|
|
1713
|
+
"map-entity"
|
|
1714
|
+
]
|
|
1715
|
+
},
|
|
1716
|
+
"config": {
|
|
1717
|
+
"$ref": "#/components/schemas/MapEntityConfig"
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
"MapEntityConfig": {
|
|
1724
|
+
"type": "object",
|
|
1725
|
+
"properties": {
|
|
1726
|
+
"mapping_config": {
|
|
1727
|
+
"$ref": "#/components/schemas/MappingConfigRef"
|
|
1728
|
+
},
|
|
1729
|
+
"target_schema": {
|
|
1730
|
+
"type": "string",
|
|
1731
|
+
"description": "Schema of target entity"
|
|
1732
|
+
},
|
|
1733
|
+
"target_unique": {
|
|
1734
|
+
"type": "array",
|
|
1735
|
+
"description": "Unique key for target entity (see upsertEntity of Entity API)",
|
|
1736
|
+
"items": {
|
|
1737
|
+
"type": "string"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
"mapping_attributes": {
|
|
1741
|
+
"type": "array",
|
|
1742
|
+
"description": "Attribute mappings",
|
|
1743
|
+
"items": {
|
|
1744
|
+
"anyOf": [
|
|
1745
|
+
{
|
|
1746
|
+
"$ref": "#/components/schemas/MappingAttributeV2"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"$ref": "#/components/schemas/MappingAttribute"
|
|
1750
|
+
}
|
|
1751
|
+
]
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
"relation_attributes": {
|
|
1755
|
+
"type": "array",
|
|
1756
|
+
"description": "Relation mappings",
|
|
1757
|
+
"items": {
|
|
1758
|
+
"$ref": "#/components/schemas/RelationAttribute"
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
"linkback_relation_attribute": {
|
|
1762
|
+
"type": "string",
|
|
1763
|
+
"default": "mapped_entities",
|
|
1764
|
+
"description": "Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback\n"
|
|
1765
|
+
},
|
|
1766
|
+
"linkback_relation_tags": {
|
|
1767
|
+
"type": "array",
|
|
1768
|
+
"description": "Relation tags (labels) to include in main entity linkback relation attribute",
|
|
1769
|
+
"items": {
|
|
1770
|
+
"type": "string"
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"required": [
|
|
1775
|
+
"target_schema"
|
|
1776
|
+
]
|
|
1777
|
+
},
|
|
1778
|
+
"MappingConfigRef": {
|
|
1779
|
+
"type": "object",
|
|
1780
|
+
"properties": {
|
|
1781
|
+
"config_id": {
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"description": "Id of Entity Mapping Configuration to run for mapping."
|
|
1784
|
+
},
|
|
1785
|
+
"target_id": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"description": "Id of TargetConfig to run for mapping."
|
|
1788
|
+
},
|
|
1789
|
+
"version": {
|
|
1790
|
+
"type": "number",
|
|
1791
|
+
"description": "Version of Entity Mapping Configuration to run for mapping."
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
"required": [
|
|
1795
|
+
"config_id",
|
|
1796
|
+
"target_id"
|
|
1797
|
+
]
|
|
1798
|
+
},
|
|
1799
|
+
"RelationAttribute": {
|
|
1800
|
+
"type": "object",
|
|
1801
|
+
"properties": {
|
|
1802
|
+
"target": {
|
|
1803
|
+
"type": "string",
|
|
1804
|
+
"description": "Target attribute to store the relation in"
|
|
1805
|
+
},
|
|
1806
|
+
"target_tags": {
|
|
1807
|
+
"type": "array",
|
|
1808
|
+
"description": "Relation tags (labels) to set for the stored relations",
|
|
1809
|
+
"items": {
|
|
1810
|
+
"type": "string"
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"target_tags_include_source": {
|
|
1814
|
+
"type": "boolean",
|
|
1815
|
+
"description": "Include all relation tags (labels) present on the main entity relation",
|
|
1816
|
+
"default": false
|
|
1817
|
+
},
|
|
1818
|
+
"source_filter": {
|
|
1819
|
+
"type": "object",
|
|
1820
|
+
"description": "A filter to identify which source entities to pick as relations from main entity",
|
|
1821
|
+
"properties": {
|
|
1822
|
+
"limit": {
|
|
1823
|
+
"type": "integer",
|
|
1824
|
+
"description": "Limit relations to maximum number (default, all matched relations)",
|
|
1825
|
+
"minimum": 0
|
|
1826
|
+
},
|
|
1827
|
+
"schema": {
|
|
1828
|
+
"type": "string",
|
|
1829
|
+
"description": "Filter by specific schema"
|
|
1830
|
+
},
|
|
1831
|
+
"attribute": {
|
|
1832
|
+
"type": "string",
|
|
1833
|
+
"description": "Filter by a specific relation attribute on the main entity"
|
|
1834
|
+
},
|
|
1835
|
+
"relation_tag": {
|
|
1836
|
+
"type": "string",
|
|
1837
|
+
"description": "Filter by relation tag (label) on the main entity"
|
|
1838
|
+
},
|
|
1839
|
+
"tag": {
|
|
1840
|
+
"type": "string",
|
|
1841
|
+
"description": "Filter by a specific tag on the related entity"
|
|
1842
|
+
},
|
|
1843
|
+
"self": {
|
|
1844
|
+
"type": "boolean",
|
|
1845
|
+
"description": "Picks main entity as relation (overrides other filters)",
|
|
1846
|
+
"default": false
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
"related_to": {
|
|
1851
|
+
"type": "object",
|
|
1852
|
+
"additionalProperties": true,
|
|
1853
|
+
"deprecated": true
|
|
1854
|
+
},
|
|
1855
|
+
"mode": {
|
|
1856
|
+
"type": "string",
|
|
1857
|
+
"enum": [
|
|
1858
|
+
"append",
|
|
1859
|
+
"prepend",
|
|
1860
|
+
"set"
|
|
1861
|
+
]
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
"required": [
|
|
1865
|
+
"target",
|
|
1866
|
+
"mode"
|
|
1867
|
+
]
|
|
1868
|
+
},
|
|
1869
|
+
"MappingAttributeV2": {
|
|
1870
|
+
"type": "object",
|
|
1871
|
+
"properties": {
|
|
1872
|
+
"target": {
|
|
1873
|
+
"type": "string",
|
|
1874
|
+
"description": "Target JSON path for the attribute to set"
|
|
1875
|
+
},
|
|
1876
|
+
"operation": {
|
|
1877
|
+
"$ref": "#/components/schemas/OperationNode"
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"required": [
|
|
1881
|
+
"targetPath",
|
|
1882
|
+
"operation"
|
|
1883
|
+
],
|
|
1884
|
+
"example": {
|
|
1885
|
+
"target": "_tags",
|
|
1886
|
+
"operation": {
|
|
1887
|
+
"_append": [
|
|
1888
|
+
"new",
|
|
1889
|
+
"tags"
|
|
1890
|
+
],
|
|
1891
|
+
"_uniq": true
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"OperationNode": {
|
|
1896
|
+
"description": "Mapping operation nodes are either primitive values or operation node objects",
|
|
1897
|
+
"oneOf": [
|
|
1898
|
+
{
|
|
1899
|
+
"$ref": "#/components/schemas/OperationObjectNode"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1903
|
+
}
|
|
1904
|
+
]
|
|
1905
|
+
},
|
|
1906
|
+
"OperationObjectNode": {
|
|
1907
|
+
"type": "object",
|
|
1908
|
+
"properties": {
|
|
1909
|
+
"_set": {
|
|
1910
|
+
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1911
|
+
},
|
|
1912
|
+
"_append": {
|
|
1913
|
+
"description": "Append to array",
|
|
1914
|
+
"items": {
|
|
1915
|
+
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1916
|
+
}
|
|
1917
|
+
},
|
|
1918
|
+
"_uniq": {
|
|
1919
|
+
"description": "Unique array",
|
|
1920
|
+
"oneOf": [
|
|
1921
|
+
{
|
|
1922
|
+
"type": "boolean",
|
|
1923
|
+
"example": true
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"type": "array",
|
|
1927
|
+
"description": "Unique key consisting of object keys",
|
|
1928
|
+
"example": [
|
|
1929
|
+
"email"
|
|
1930
|
+
],
|
|
1931
|
+
"items": {
|
|
1932
|
+
"type": "string"
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
]
|
|
1936
|
+
},
|
|
1937
|
+
"_copy": {
|
|
1938
|
+
"description": "Copy JSONPath value from source entity context",
|
|
1939
|
+
"type": "string",
|
|
1940
|
+
"example": "contact.first_name"
|
|
1941
|
+
}
|
|
1942
|
+
},
|
|
1943
|
+
"additionalProperties": true
|
|
1944
|
+
},
|
|
1945
|
+
"PrimitiveJSONValue": {},
|
|
1946
|
+
"MappingAttribute": {
|
|
1947
|
+
"anyOf": [
|
|
1948
|
+
{
|
|
1949
|
+
"$ref": "#/components/schemas/SetValueMapper"
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"$ref": "#/components/schemas/CopyValueMapper"
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"$ref": "#/components/schemas/AppendValueMapper"
|
|
1956
|
+
}
|
|
1957
|
+
]
|
|
1958
|
+
},
|
|
1959
|
+
"MappingAttributeMode": {
|
|
1960
|
+
"type": "string",
|
|
1961
|
+
"enum": [
|
|
1962
|
+
"copy_if_exists",
|
|
1963
|
+
"append_if_exists",
|
|
1964
|
+
"set_value"
|
|
1965
|
+
],
|
|
1966
|
+
"description": "- copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.\n"
|
|
1967
|
+
},
|
|
1968
|
+
"SetValueMapper": {
|
|
1969
|
+
"type": "object",
|
|
1970
|
+
"deprecated": true,
|
|
1971
|
+
"properties": {
|
|
1972
|
+
"mode": {
|
|
1973
|
+
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1974
|
+
},
|
|
1975
|
+
"target": {
|
|
1976
|
+
"type": "string",
|
|
1977
|
+
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1978
|
+
},
|
|
1979
|
+
"value": {
|
|
1980
|
+
"description": "Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.\n"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
"required": [
|
|
1984
|
+
"mode",
|
|
1985
|
+
"target",
|
|
1986
|
+
"value"
|
|
1987
|
+
]
|
|
1988
|
+
},
|
|
1989
|
+
"CopyValueMapper": {
|
|
1990
|
+
"type": "object",
|
|
1991
|
+
"deprecated": true,
|
|
1992
|
+
"properties": {
|
|
1993
|
+
"mode": {
|
|
1994
|
+
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1995
|
+
},
|
|
1996
|
+
"target": {
|
|
1997
|
+
"type": "string",
|
|
1998
|
+
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1999
|
+
},
|
|
2000
|
+
"source": {
|
|
2001
|
+
"type": "string",
|
|
2002
|
+
"description": "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
"required": [
|
|
2006
|
+
"mode",
|
|
2007
|
+
"target",
|
|
2008
|
+
"source"
|
|
2009
|
+
]
|
|
2010
|
+
},
|
|
2011
|
+
"AppendValueMapper": {
|
|
2012
|
+
"type": "object",
|
|
2013
|
+
"deprecated": true,
|
|
2014
|
+
"properties": {
|
|
2015
|
+
"mode": {
|
|
2016
|
+
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
2017
|
+
},
|
|
2018
|
+
"target": {
|
|
2019
|
+
"type": "string",
|
|
2020
|
+
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
2021
|
+
},
|
|
2022
|
+
"source": {
|
|
2023
|
+
"type": "string",
|
|
2024
|
+
"description": "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
|
|
2025
|
+
},
|
|
2026
|
+
"value_json": {
|
|
2027
|
+
"type": "string",
|
|
2028
|
+
"description": "To be provided only when mapping json objects into a target attribute. Eg array of addresses.\n"
|
|
2029
|
+
},
|
|
2030
|
+
"target_unique": {
|
|
2031
|
+
"type": "array",
|
|
2032
|
+
"items": {
|
|
2033
|
+
"type": "string"
|
|
2034
|
+
},
|
|
2035
|
+
"description": "Array of keys which should be used when checking for uniqueness. Eg: [country, city, postal_code]\n"
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
"required": [
|
|
2039
|
+
"mode",
|
|
2040
|
+
"target",
|
|
2041
|
+
"value_json"
|
|
2042
|
+
]
|
|
2043
|
+
},
|
|
2044
|
+
"MoveThreadAction": {
|
|
2045
|
+
"allOf": [
|
|
2046
|
+
{
|
|
2047
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"type": "object",
|
|
2051
|
+
"properties": {
|
|
2052
|
+
"type": {
|
|
2053
|
+
"enum": [
|
|
2054
|
+
"move-thread"
|
|
2055
|
+
]
|
|
2056
|
+
},
|
|
2057
|
+
"config": {
|
|
2058
|
+
"$ref": "#/components/schemas/MoveThreadConfig"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
]
|
|
2063
|
+
},
|
|
2064
|
+
"AssignThreadAction": {
|
|
2065
|
+
"allOf": [
|
|
2066
|
+
{
|
|
2067
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"type": "object",
|
|
2071
|
+
"properties": {
|
|
2072
|
+
"type": {
|
|
2073
|
+
"enum": [
|
|
2074
|
+
"assign-thread"
|
|
2075
|
+
]
|
|
2076
|
+
},
|
|
2077
|
+
"config": {
|
|
2078
|
+
"$ref": "#/components/schemas/AssignThreadConfig"
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
]
|
|
2083
|
+
},
|
|
2084
|
+
"MoveThreadConfig": {
|
|
2085
|
+
"type": "object",
|
|
2086
|
+
"properties": {
|
|
2087
|
+
"target_inbox_id": {
|
|
2088
|
+
"type": "string",
|
|
2089
|
+
"description": "ID of the inbox where the thread should be moved to"
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
},
|
|
2093
|
+
"AssignThreadConfig": {
|
|
2094
|
+
"type": "object",
|
|
2095
|
+
"properties": {
|
|
2096
|
+
"remove": {
|
|
2097
|
+
"type": "array",
|
|
2098
|
+
"description": "Assignees to remove from the thread, if they exist",
|
|
2099
|
+
"items": {
|
|
2100
|
+
"type": "string"
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
"add": {
|
|
2104
|
+
"type": "array",
|
|
2105
|
+
"description": "Assignees to add to the thread",
|
|
2106
|
+
"items": {
|
|
2107
|
+
"type": "string"
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
"SendEmailActionConfig": {
|
|
2113
|
+
"allOf": [
|
|
2114
|
+
{
|
|
2115
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
"type": "object",
|
|
2119
|
+
"properties": {
|
|
2120
|
+
"type": {
|
|
2121
|
+
"enum": [
|
|
2122
|
+
"send-email"
|
|
2123
|
+
]
|
|
2124
|
+
},
|
|
2125
|
+
"config": {
|
|
2126
|
+
"$ref": "#/components/schemas/SendEmailConfig"
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
],
|
|
2131
|
+
"example": {
|
|
2132
|
+
"id": "25jga0-gkasl26-0asg-908sgaj2",
|
|
2133
|
+
"name": "Send Email",
|
|
2134
|
+
"type": "send-email",
|
|
2135
|
+
"config": {
|
|
2136
|
+
"email_template_id": "gasj02-29ug9asgm-29t9gsaghg2g-pkmbhx2",
|
|
2137
|
+
"language_code": "de"
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
"SendEmailAction": {
|
|
2142
|
+
"allOf": [
|
|
2143
|
+
{
|
|
2144
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"type": "object",
|
|
2148
|
+
"properties": {
|
|
2149
|
+
"type": {
|
|
2150
|
+
"enum": [
|
|
2151
|
+
"send-email"
|
|
2152
|
+
]
|
|
2153
|
+
},
|
|
2154
|
+
"config": {
|
|
2155
|
+
"$ref": "#/components/schemas/SendEmailConfig"
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
]
|
|
2160
|
+
},
|
|
2161
|
+
"SendEmailConfig": {
|
|
2162
|
+
"type": "object",
|
|
2163
|
+
"properties": {
|
|
2164
|
+
"email_template_id": {
|
|
2165
|
+
"type": "string"
|
|
2166
|
+
},
|
|
2167
|
+
"language_code": {
|
|
2168
|
+
"type": "string",
|
|
2169
|
+
"enum": [
|
|
2170
|
+
"de",
|
|
2171
|
+
"en"
|
|
2172
|
+
]
|
|
2173
|
+
},
|
|
2174
|
+
"notify_portal_user_only": {
|
|
2175
|
+
"type": "boolean",
|
|
2176
|
+
"description": "Send an email exclusively to the portal user if they are registered on the portal.",
|
|
2177
|
+
"default": false
|
|
2178
|
+
},
|
|
2179
|
+
"skip_creating_entities": {
|
|
2180
|
+
"type": "boolean",
|
|
2181
|
+
"description": "When true, it lets to send only the email by skip creating the thread & message entities.",
|
|
2182
|
+
"default": false
|
|
2183
|
+
},
|
|
2184
|
+
"wait_for_confirmation": {
|
|
2185
|
+
"type": "boolean",
|
|
2186
|
+
"description": "Pause automation execution after sending email to wait for a confirmation link to be clicked.\n\nThe email template should contain a confirmation link using the variable `{{confirmation_url}}`\n",
|
|
2187
|
+
"default": false
|
|
2188
|
+
},
|
|
2189
|
+
"attachments": {
|
|
2190
|
+
"type": "array",
|
|
2191
|
+
"description": "Include extra file attachments in sent email.\nAttachments in email template will be sent regardless of this configuration.\n",
|
|
2192
|
+
"items": {
|
|
2193
|
+
"type": "object",
|
|
2194
|
+
"properties": {
|
|
2195
|
+
"source_filter": {
|
|
2196
|
+
"type": "object",
|
|
2197
|
+
"description": "Specify filters to match file entities related to main entity",
|
|
2198
|
+
"properties": {
|
|
2199
|
+
"limit": {
|
|
2200
|
+
"type": "integer",
|
|
2201
|
+
"description": "Limit files to maximum number (default, all matched file relations)",
|
|
2202
|
+
"minimum": 0,
|
|
2203
|
+
"example": 1
|
|
2204
|
+
},
|
|
2205
|
+
"filename_regex": {
|
|
2206
|
+
"type": "string",
|
|
2207
|
+
"description": "Match by filename. Regex syntax supported",
|
|
2208
|
+
"example": ".*"
|
|
2209
|
+
},
|
|
2210
|
+
"attribute": {
|
|
2211
|
+
"type": "string",
|
|
2212
|
+
"description": "Filter by a specific relation attribute on the main entity",
|
|
2213
|
+
"example": "_files"
|
|
2214
|
+
},
|
|
2215
|
+
"relation_tag": {
|
|
2216
|
+
"type": "string",
|
|
2217
|
+
"description": "Filter by relation tag (label) on the main entity",
|
|
2218
|
+
"example": "contract"
|
|
2219
|
+
},
|
|
2220
|
+
"tag": {
|
|
2221
|
+
"type": "string",
|
|
2222
|
+
"description": "Filter by a specific tag on the related file entity"
|
|
2223
|
+
},
|
|
2224
|
+
"document_type": {
|
|
2225
|
+
"type": "string",
|
|
2226
|
+
"description": "Filter by a specific document type (e.g. document)",
|
|
2227
|
+
"enum": [
|
|
2228
|
+
"document",
|
|
2229
|
+
"text",
|
|
2230
|
+
"image",
|
|
2231
|
+
"video",
|
|
2232
|
+
"audio",
|
|
2233
|
+
"spreadsheet",
|
|
2234
|
+
"presentation",
|
|
2235
|
+
"font",
|
|
2236
|
+
"archive",
|
|
2237
|
+
"application",
|
|
2238
|
+
"unknown"
|
|
2239
|
+
]
|
|
2240
|
+
},
|
|
2241
|
+
"self": {
|
|
2242
|
+
"type": "boolean",
|
|
2243
|
+
"description": "Picks main entity as file (only works if source entity is a file)",
|
|
2244
|
+
"default": false
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
},
|
|
2250
|
+
"required": [
|
|
2251
|
+
"email_template_id"
|
|
2252
|
+
]
|
|
2253
|
+
},
|
|
2254
|
+
"conditions": {
|
|
2255
|
+
"type": "array",
|
|
2256
|
+
"description": "Conditions necessary to send out email. Otherwise it will be skipped",
|
|
2257
|
+
"items": {
|
|
2258
|
+
"$ref": "#/components/schemas/SendEmailCondition"
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
"SendEmailCondition": {
|
|
2264
|
+
"type": "object",
|
|
2265
|
+
"properties": {
|
|
2266
|
+
"_equals": {
|
|
2267
|
+
"type": "object",
|
|
2268
|
+
"properties": {
|
|
2269
|
+
"source": {
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"value": {
|
|
2273
|
+
"type": "string"
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
"CreateDocumentActionConfig": {
|
|
2280
|
+
"allOf": [
|
|
2281
|
+
{
|
|
2282
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2283
|
+
},
|
|
2284
|
+
{
|
|
2285
|
+
"type": "object",
|
|
2286
|
+
"properties": {
|
|
2287
|
+
"type": {
|
|
2288
|
+
"enum": [
|
|
2289
|
+
"create-document"
|
|
2290
|
+
]
|
|
2291
|
+
},
|
|
2292
|
+
"config": {
|
|
2293
|
+
"$ref": "#/components/schemas/CreateDocumentConfig"
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
],
|
|
2298
|
+
"example": {
|
|
2299
|
+
"id": "08g988-ojt2jtaga-292h-8978gsaga",
|
|
2300
|
+
"name": "Create Document",
|
|
2301
|
+
"type": "create-document",
|
|
2302
|
+
"config": {
|
|
2303
|
+
"template_id": {
|
|
2304
|
+
"type": "string",
|
|
2305
|
+
"example": "112b08ba-789c-42f2-9940-43b302f641e8\""
|
|
2306
|
+
},
|
|
2307
|
+
"filename": {
|
|
2308
|
+
"type": "string",
|
|
2309
|
+
"example": "newsletter.pdf\""
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
},
|
|
2314
|
+
"CreateDocumentAction": {
|
|
2315
|
+
"allOf": [
|
|
2316
|
+
{
|
|
2317
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
"type": "object",
|
|
2321
|
+
"properties": {
|
|
2322
|
+
"type": {
|
|
2323
|
+
"enum": [
|
|
2324
|
+
"create-document"
|
|
2325
|
+
]
|
|
2326
|
+
},
|
|
2327
|
+
"config": {
|
|
2328
|
+
"$ref": "#/components/schemas/CreateDocumentConfig"
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
]
|
|
2333
|
+
},
|
|
2334
|
+
"CreateDocumentConfig": {
|
|
2335
|
+
"type": "object",
|
|
2336
|
+
"properties": {
|
|
2337
|
+
"template_id": {
|
|
2338
|
+
"type": "string"
|
|
2339
|
+
},
|
|
2340
|
+
"filename": {
|
|
2341
|
+
"type": "string"
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
"TriggerWorkflowActionConfig": {
|
|
2346
|
+
"allOf": [
|
|
2347
|
+
{
|
|
2348
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
"type": "object",
|
|
2352
|
+
"properties": {
|
|
2353
|
+
"type": {
|
|
2354
|
+
"enum": [
|
|
2355
|
+
"trigger-workflow"
|
|
2356
|
+
]
|
|
2357
|
+
},
|
|
2358
|
+
"config": {
|
|
2359
|
+
"$ref": "#/components/schemas/TriggerWorkflowConfig"
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
],
|
|
2364
|
+
"example": {
|
|
2365
|
+
"id": "08g988-ojt2jtaga-292h-8978gsaga",
|
|
2366
|
+
"name": "Trigger Workflow",
|
|
2367
|
+
"type": "trigger-workflow",
|
|
2368
|
+
"config": {
|
|
2369
|
+
"target_workflow": "mfptvUMH",
|
|
2370
|
+
"conditions": [
|
|
2371
|
+
{
|
|
2372
|
+
"schema": "ivy-opportunity",
|
|
2373
|
+
"source": "customer.type",
|
|
2374
|
+
"comparison": "equals",
|
|
2375
|
+
"value": "PRIVATE"
|
|
2376
|
+
}
|
|
2377
|
+
],
|
|
2378
|
+
"assign_steps": [
|
|
2379
|
+
{
|
|
2380
|
+
"step_name": "Lead Sales",
|
|
2381
|
+
"user_ids": [
|
|
2382
|
+
10010729
|
|
2383
|
+
]
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"step_name": "Operations",
|
|
2387
|
+
"user_ids": [
|
|
2388
|
+
10010728,
|
|
2389
|
+
10010729
|
|
2390
|
+
]
|
|
2391
|
+
}
|
|
2392
|
+
]
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"TriggerWorkflowAction": {
|
|
2397
|
+
"allOf": [
|
|
2398
|
+
{
|
|
2399
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
"type": "object",
|
|
2403
|
+
"properties": {
|
|
2404
|
+
"type": {
|
|
2405
|
+
"enum": [
|
|
2406
|
+
"trigger-workflow"
|
|
2407
|
+
]
|
|
2408
|
+
},
|
|
2409
|
+
"config": {
|
|
2410
|
+
"$ref": "#/components/schemas/TriggerWorkflowConfig"
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
]
|
|
2415
|
+
},
|
|
2416
|
+
"TriggerWorkflowConfig": {
|
|
2417
|
+
"type": "object",
|
|
2418
|
+
"properties": {
|
|
2419
|
+
"target_workflow": {
|
|
2420
|
+
"type": "string"
|
|
2421
|
+
},
|
|
2422
|
+
"conditions": {
|
|
2423
|
+
"type": "array",
|
|
2424
|
+
"items": {
|
|
2425
|
+
"$ref": "#/components/schemas/TriggerWorkflowCondition"
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2428
|
+
"assignees": {
|
|
2429
|
+
"type": "array",
|
|
2430
|
+
"items": {
|
|
2431
|
+
"type": "string"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"assign_steps": {
|
|
2435
|
+
"type": "array",
|
|
2436
|
+
"items": {
|
|
2437
|
+
"$ref": "#/components/schemas/AssignUsersToStep"
|
|
2438
|
+
}
|
|
2439
|
+
},
|
|
2440
|
+
"filter_with_purposes": {
|
|
2441
|
+
"type": "boolean"
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
"TriggerWorkflowCondition": {
|
|
2446
|
+
"allOf": [
|
|
2447
|
+
{
|
|
2448
|
+
"$ref": "#/components/schemas/TriggerCondition"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"type": "object",
|
|
2452
|
+
"properties": {
|
|
2453
|
+
"schema": {
|
|
2454
|
+
"type": "string"
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
],
|
|
2459
|
+
"required": [
|
|
2460
|
+
"schema",
|
|
2461
|
+
"source",
|
|
2462
|
+
"comparison"
|
|
2463
|
+
],
|
|
2464
|
+
"example": {
|
|
2465
|
+
"schema": "contact",
|
|
2466
|
+
"source": "email",
|
|
2467
|
+
"comparison": "equals",
|
|
2468
|
+
"value": "test@epilot.cloud"
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
"TriggerShareEntityActionConfig": {
|
|
2472
|
+
"allOf": [
|
|
2473
|
+
{
|
|
2474
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"type": "object",
|
|
2478
|
+
"properties": {
|
|
2479
|
+
"type": {
|
|
2480
|
+
"enum": [
|
|
2481
|
+
"trigger-workflow"
|
|
2482
|
+
]
|
|
2483
|
+
},
|
|
2484
|
+
"config": {
|
|
2485
|
+
"$ref": "#/components/schemas/TriggerShareEntityConfig"
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
]
|
|
2490
|
+
},
|
|
2491
|
+
"TriggerShareEntityAction": {
|
|
2492
|
+
"allOf": [
|
|
2493
|
+
{
|
|
2494
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"type": "object",
|
|
2498
|
+
"properties": {
|
|
2499
|
+
"type": {
|
|
2500
|
+
"enum": [
|
|
2501
|
+
"trigger-share-entity"
|
|
2502
|
+
]
|
|
2503
|
+
},
|
|
2504
|
+
"config": {
|
|
2505
|
+
"$ref": "#/components/schemas/TriggerShareEntityConfig"
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
]
|
|
2510
|
+
},
|
|
2511
|
+
"TriggerShareEntityConfig": {
|
|
2512
|
+
"type": "object",
|
|
2513
|
+
"properties": {
|
|
2514
|
+
"partner_org_ids": {
|
|
2515
|
+
"type": "array",
|
|
2516
|
+
"items": {
|
|
2517
|
+
"type": "string"
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
},
|
|
2522
|
+
"AssignUsersToStep": {
|
|
2523
|
+
"type": "object",
|
|
2524
|
+
"properties": {
|
|
2525
|
+
"step_id": {
|
|
2526
|
+
"type": "string"
|
|
2527
|
+
},
|
|
2528
|
+
"step_name": {
|
|
2529
|
+
"type": "string"
|
|
2530
|
+
},
|
|
2531
|
+
"user_ids": {
|
|
2532
|
+
"type": "array",
|
|
2533
|
+
"items": {
|
|
2534
|
+
"type": "number"
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
},
|
|
2538
|
+
"example": [
|
|
2539
|
+
{
|
|
2540
|
+
"step_id": "xyh9t2ha",
|
|
2541
|
+
"step_name": "Lead Sales",
|
|
2542
|
+
"user_ids": [
|
|
2543
|
+
10010729
|
|
2544
|
+
]
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
"step_id": "29jgasl",
|
|
2548
|
+
"step_name": "Operations",
|
|
2549
|
+
"user_ids": [
|
|
2550
|
+
10010728,
|
|
2551
|
+
10010729
|
|
2552
|
+
]
|
|
2553
|
+
}
|
|
2554
|
+
]
|
|
2555
|
+
},
|
|
2556
|
+
"CustomAction": {
|
|
2557
|
+
"allOf": [
|
|
2558
|
+
{
|
|
2559
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2560
|
+
},
|
|
2561
|
+
{
|
|
2562
|
+
"type": "object",
|
|
2563
|
+
"properties": {
|
|
2564
|
+
"type": {
|
|
2565
|
+
"type": "string",
|
|
2566
|
+
"enum": [
|
|
2567
|
+
"custom-action"
|
|
2568
|
+
]
|
|
2569
|
+
},
|
|
2570
|
+
"config": {
|
|
2571
|
+
"type": "object",
|
|
2572
|
+
"properties": {
|
|
2573
|
+
"name": {
|
|
2574
|
+
"type": "string",
|
|
2575
|
+
"description": "The name of the custom action",
|
|
2576
|
+
"example": "Credit Check"
|
|
2577
|
+
},
|
|
2578
|
+
"description": {
|
|
2579
|
+
"type": "string",
|
|
2580
|
+
"description": "The description of the custom action",
|
|
2581
|
+
"example": "Check if the customer has a credit limit"
|
|
2582
|
+
},
|
|
2583
|
+
"app_id": {
|
|
2584
|
+
"type": "string",
|
|
2585
|
+
"description": "The ID of the app to fetch configuration from the app API",
|
|
2586
|
+
"example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2587
|
+
},
|
|
2588
|
+
"component_id": {
|
|
2589
|
+
"type": "string",
|
|
2590
|
+
"description": "The ID of the component from the app. As the app can potentially have multiple custom actions, this ID is used to identify the component",
|
|
2591
|
+
"example": "2f1c26a-cc7a-4c1c-92bf-1c6246cbfe88"
|
|
2592
|
+
},
|
|
2593
|
+
"wait_for_callback": {
|
|
2594
|
+
"type": "boolean",
|
|
2595
|
+
"description": "Whether to wait for the callback from the custom action",
|
|
2596
|
+
"default": false
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
]
|
|
2603
|
+
},
|
|
2604
|
+
"TriggerWebhookActionConfig": {
|
|
2605
|
+
"allOf": [
|
|
2606
|
+
{
|
|
2607
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
"type": "object",
|
|
2611
|
+
"properties": {
|
|
2612
|
+
"type": {
|
|
2613
|
+
"enum": [
|
|
2614
|
+
"trigger-webhook"
|
|
2615
|
+
]
|
|
2616
|
+
},
|
|
2617
|
+
"config": {
|
|
2618
|
+
"$ref": "#/components/schemas/TriggerWebhookConfig"
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
],
|
|
2623
|
+
"example": {
|
|
2624
|
+
"id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
2625
|
+
"name": "Trigger Webhook",
|
|
2626
|
+
"type": "trigger-webhook",
|
|
2627
|
+
"config": {
|
|
2628
|
+
"entity_sources": [
|
|
2629
|
+
"contact",
|
|
2630
|
+
"account"
|
|
2631
|
+
],
|
|
2632
|
+
"target_webhook_id": "25jg9ag2ga"
|
|
2633
|
+
}
|
|
2634
|
+
}
|
|
2635
|
+
},
|
|
2636
|
+
"TriggerWebhookAction": {
|
|
2637
|
+
"allOf": [
|
|
2638
|
+
{
|
|
2639
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
"type": "object",
|
|
2643
|
+
"properties": {
|
|
2644
|
+
"type": {
|
|
2645
|
+
"enum": [
|
|
2646
|
+
"trigger-webhook"
|
|
2647
|
+
]
|
|
2648
|
+
},
|
|
2649
|
+
"config": {
|
|
2650
|
+
"$ref": "#/components/schemas/TriggerWebhookConfig"
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
]
|
|
2655
|
+
},
|
|
2656
|
+
"TriggerWebhookConfig": {
|
|
2657
|
+
"type": "object",
|
|
2658
|
+
"properties": {
|
|
2659
|
+
"event_id": {
|
|
2660
|
+
"type": "string",
|
|
2661
|
+
"description": "The latest webhook event_id for an execution of this action"
|
|
2662
|
+
},
|
|
2663
|
+
"entity_sources": {
|
|
2664
|
+
"type": "array",
|
|
2665
|
+
"items": {
|
|
2666
|
+
"type": "string"
|
|
2667
|
+
}
|
|
2668
|
+
},
|
|
2669
|
+
"target_webhook_id": {
|
|
2670
|
+
"type": "string"
|
|
2671
|
+
},
|
|
2672
|
+
"sync": {
|
|
2673
|
+
"type": "boolean",
|
|
2674
|
+
"description": "Whether to wait for the request to finish before continuing automation execution",
|
|
2675
|
+
"default": false
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
},
|
|
2679
|
+
"InformERPActionConfig": {
|
|
2680
|
+
"allOf": [
|
|
2681
|
+
{
|
|
2682
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
"type": "object",
|
|
2686
|
+
"properties": {
|
|
2687
|
+
"type": {
|
|
2688
|
+
"enum": [
|
|
2689
|
+
"inform-erp"
|
|
2690
|
+
]
|
|
2691
|
+
},
|
|
2692
|
+
"config": {
|
|
2693
|
+
"$ref": "#/components/schemas/InformERPConfig"
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
],
|
|
2698
|
+
"example": {
|
|
2699
|
+
"id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
2700
|
+
"name": "Inform ERP",
|
|
2701
|
+
"type": "inform-erp",
|
|
2702
|
+
"config": {
|
|
2703
|
+
"entity_sources": [
|
|
2704
|
+
"contact",
|
|
2705
|
+
"account"
|
|
2706
|
+
],
|
|
2707
|
+
"target_webhook_id": "25jg9ag2ga"
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
},
|
|
2711
|
+
"InformERPAction": {
|
|
2712
|
+
"allOf": [
|
|
2713
|
+
{
|
|
2714
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"type": "object",
|
|
2718
|
+
"properties": {
|
|
2719
|
+
"type": {
|
|
2720
|
+
"enum": [
|
|
2721
|
+
"inform-erp"
|
|
2722
|
+
]
|
|
2723
|
+
},
|
|
2724
|
+
"config": {
|
|
2725
|
+
"$ref": "#/components/schemas/InformERPConfig"
|
|
2726
|
+
}
|
|
2727
|
+
}
|
|
2728
|
+
}
|
|
2729
|
+
]
|
|
2730
|
+
},
|
|
2731
|
+
"InformERPConfig": {
|
|
2732
|
+
"type": "object",
|
|
2733
|
+
"properties": {
|
|
2734
|
+
"entity_sources": {
|
|
2735
|
+
"type": "array",
|
|
2736
|
+
"items": {
|
|
2737
|
+
"type": "string"
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2740
|
+
"target_webhook_id": {
|
|
2741
|
+
"type": "string"
|
|
2742
|
+
},
|
|
2743
|
+
"sync": {
|
|
2744
|
+
"type": "boolean",
|
|
2745
|
+
"description": "Whether to wait for the request to finish before continuing automation execution",
|
|
2746
|
+
"default": false
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
"TriggerEventActionConfig": {
|
|
2751
|
+
"allOf": [
|
|
2752
|
+
{
|
|
2753
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
"type": "object",
|
|
2757
|
+
"properties": {
|
|
2758
|
+
"type": {
|
|
2759
|
+
"enum": [
|
|
2760
|
+
"trigger-event"
|
|
2761
|
+
]
|
|
2762
|
+
},
|
|
2763
|
+
"config": {
|
|
2764
|
+
"$ref": "#/components/schemas/TriggerEventConfig"
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
],
|
|
2769
|
+
"example": {
|
|
2770
|
+
"id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
2771
|
+
"name": "Trigger Event",
|
|
2772
|
+
"type": "trigger-event",
|
|
2773
|
+
"config": {
|
|
2774
|
+
"event_name": "my_custom_event",
|
|
2775
|
+
"event_inputs": {
|
|
2776
|
+
"key": "value"
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
},
|
|
2781
|
+
"TriggerEventAction": {
|
|
2782
|
+
"allOf": [
|
|
2783
|
+
{
|
|
2784
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"type": "object",
|
|
2788
|
+
"properties": {
|
|
2789
|
+
"type": {
|
|
2790
|
+
"enum": [
|
|
2791
|
+
"trigger-event"
|
|
2792
|
+
]
|
|
2793
|
+
},
|
|
2794
|
+
"config": {
|
|
2795
|
+
"$ref": "#/components/schemas/TriggerEventConfig"
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
]
|
|
2800
|
+
},
|
|
2801
|
+
"TriggerEventConfig": {
|
|
2802
|
+
"type": "object",
|
|
2803
|
+
"description": "Configuration for triggering an event catalog event",
|
|
2804
|
+
"properties": {
|
|
2805
|
+
"event_name": {
|
|
2806
|
+
"type": "string",
|
|
2807
|
+
"description": "The event catalog event name to trigger"
|
|
2808
|
+
},
|
|
2809
|
+
"event_inputs": {
|
|
2810
|
+
"type": "object",
|
|
2811
|
+
"additionalProperties": true,
|
|
2812
|
+
"description": "Inputs to be passed to trigger the event"
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
"required": [
|
|
2816
|
+
"event_name"
|
|
2817
|
+
]
|
|
2818
|
+
},
|
|
2819
|
+
"FlowExecutionCancelActionConfig": {
|
|
2820
|
+
"allOf": [
|
|
2821
|
+
{
|
|
2822
|
+
"$ref": "#/components/schemas/AutomationActionConfig"
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
"type": "object",
|
|
2826
|
+
"properties": {
|
|
2827
|
+
"type": {
|
|
2828
|
+
"enum": [
|
|
2829
|
+
"cancel-flow-execution"
|
|
2830
|
+
]
|
|
2831
|
+
},
|
|
2832
|
+
"config": {
|
|
2833
|
+
"$ref": "#/components/schemas/FlowExecutionCancelConfig"
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
],
|
|
2838
|
+
"example": {
|
|
2839
|
+
"id": "2520gja-2sgmsaga-0asg-822jgal",
|
|
2840
|
+
"name": "Cancel Flow Execution",
|
|
2841
|
+
"type": "cancel-flow-execution",
|
|
2842
|
+
"config": {
|
|
2843
|
+
"selected_reasons": [
|
|
2844
|
+
{
|
|
2845
|
+
"id": "_6kITMwkv_0Uo4i7fO7Ja",
|
|
2846
|
+
"title": "when you are done! that's when you close it."
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
"id": "qgK9sGbKoS7NxlAbNReVn",
|
|
2850
|
+
"title": "Client didn't want our services"
|
|
2851
|
+
}
|
|
2852
|
+
],
|
|
2853
|
+
"extra_description": "Test cancellation"
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
"FlowExecutionCancelAction": {
|
|
2858
|
+
"allOf": [
|
|
2859
|
+
{
|
|
2860
|
+
"$ref": "#/components/schemas/AutomationAction"
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
"type": "object",
|
|
2864
|
+
"properties": {
|
|
2865
|
+
"type": {
|
|
2866
|
+
"enum": [
|
|
2867
|
+
"cancel-flow-execution"
|
|
2868
|
+
]
|
|
2869
|
+
},
|
|
2870
|
+
"config": {
|
|
2871
|
+
"$ref": "#/components/schemas/FlowExecutionCancelConfig"
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
]
|
|
2876
|
+
},
|
|
2877
|
+
"FlowExecutionCancelConfig": {
|
|
2878
|
+
"type": "object",
|
|
2879
|
+
"description": "Configuration for cancelling a flow execution with selected reasons",
|
|
2880
|
+
"properties": {
|
|
2881
|
+
"selected_reasons": {
|
|
2882
|
+
"type": "array",
|
|
2883
|
+
"description": "List of reasons selected for this specific cancellation",
|
|
2884
|
+
"items": {
|
|
2885
|
+
"$ref": "#/components/schemas/CancellationReason"
|
|
2886
|
+
}
|
|
2887
|
+
},
|
|
2888
|
+
"extra_description": {
|
|
2889
|
+
"type": "string",
|
|
2890
|
+
"description": "Additional description or notes for the cancellation",
|
|
2891
|
+
"example": "Process completed successfully"
|
|
2892
|
+
}
|
|
2893
|
+
},
|
|
2894
|
+
"required": [
|
|
2895
|
+
"configured_reasons"
|
|
2896
|
+
]
|
|
2897
|
+
},
|
|
2898
|
+
"CancellationReason": {
|
|
2899
|
+
"type": "object",
|
|
2900
|
+
"description": "A reason for cancelling a flow execution",
|
|
2901
|
+
"properties": {
|
|
2902
|
+
"id": {
|
|
2903
|
+
"type": "string",
|
|
2904
|
+
"description": "Unique identifier for the cancellation reason",
|
|
2905
|
+
"example": "_6kITMwkv_0Uo4i7fO7Ja"
|
|
2906
|
+
},
|
|
2907
|
+
"title": {
|
|
2908
|
+
"type": "string",
|
|
2909
|
+
"description": "Human-readable title for the cancellation reason",
|
|
2910
|
+
"example": "Process completed successfully"
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
"required": [
|
|
2914
|
+
"id",
|
|
2915
|
+
"title"
|
|
2916
|
+
]
|
|
2917
|
+
},
|
|
2918
|
+
"ConditionStatement": {
|
|
2919
|
+
"type": "object",
|
|
2920
|
+
"properties": {
|
|
2921
|
+
"id": {
|
|
2922
|
+
"type": "string",
|
|
2923
|
+
"format": "uuid",
|
|
2924
|
+
"example": "1c8d3d9c-6d4c-4a83-aa22-aa0d630cbc2d"
|
|
2925
|
+
},
|
|
2926
|
+
"source": {
|
|
2927
|
+
"type": "object",
|
|
2928
|
+
"properties": {
|
|
2929
|
+
"id": {
|
|
2930
|
+
"type": "string",
|
|
2931
|
+
"description": "The id of the action or trigger"
|
|
2932
|
+
},
|
|
2933
|
+
"origin": {
|
|
2934
|
+
"type": "string",
|
|
2935
|
+
"enum": [
|
|
2936
|
+
"trigger",
|
|
2937
|
+
"action"
|
|
2938
|
+
]
|
|
2939
|
+
},
|
|
2940
|
+
"originType": {
|
|
2941
|
+
"type": "string",
|
|
2942
|
+
"enum": [
|
|
2943
|
+
"entity",
|
|
2944
|
+
"workflow",
|
|
2945
|
+
"journey_block"
|
|
2946
|
+
]
|
|
2947
|
+
},
|
|
2948
|
+
"schema": {
|
|
2949
|
+
"type": "string"
|
|
2950
|
+
},
|
|
2951
|
+
"attribute": {
|
|
2952
|
+
"type": "string"
|
|
2953
|
+
},
|
|
2954
|
+
"attributeType": {
|
|
2955
|
+
"type": "string",
|
|
2956
|
+
"enum": [
|
|
2957
|
+
"string",
|
|
2958
|
+
"text",
|
|
2959
|
+
"number",
|
|
2960
|
+
"boolean",
|
|
2961
|
+
"date",
|
|
2962
|
+
"datetime",
|
|
2963
|
+
"tags",
|
|
2964
|
+
"country",
|
|
2965
|
+
"email",
|
|
2966
|
+
"phone",
|
|
2967
|
+
"product",
|
|
2968
|
+
"price",
|
|
2969
|
+
"status",
|
|
2970
|
+
"relation",
|
|
2971
|
+
"multiselect",
|
|
2972
|
+
"select",
|
|
2973
|
+
"radio",
|
|
2974
|
+
"relation_user",
|
|
2975
|
+
"purpose",
|
|
2976
|
+
"label",
|
|
2977
|
+
"payment",
|
|
2978
|
+
"relation_payment_method"
|
|
2979
|
+
]
|
|
2980
|
+
},
|
|
2981
|
+
"attributeRepeatable": {
|
|
2982
|
+
"type": "boolean"
|
|
2983
|
+
},
|
|
2984
|
+
"repeatableItemOp": {
|
|
2985
|
+
"type": "boolean",
|
|
2986
|
+
"description": "Whether to apply the operation to each item of the repeatable attribute"
|
|
2987
|
+
},
|
|
2988
|
+
"attributeOperation": {
|
|
2989
|
+
"enum": [
|
|
2990
|
+
"all",
|
|
2991
|
+
"updated",
|
|
2992
|
+
"added",
|
|
2993
|
+
"deleted"
|
|
2994
|
+
]
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
},
|
|
2998
|
+
"operation": {
|
|
2999
|
+
"type": "string",
|
|
3000
|
+
"enum": [
|
|
3001
|
+
"equals",
|
|
3002
|
+
"not_equals",
|
|
3003
|
+
"any_of",
|
|
3004
|
+
"none_of",
|
|
3005
|
+
"contains",
|
|
3006
|
+
"not_contains",
|
|
3007
|
+
"starts_with",
|
|
3008
|
+
"ends_with",
|
|
3009
|
+
"greater_than",
|
|
3010
|
+
"less_than",
|
|
3011
|
+
"greater_than_or_equals",
|
|
3012
|
+
"less_than_or_equals",
|
|
3013
|
+
"is_empty",
|
|
3014
|
+
"is_not_empty",
|
|
3015
|
+
"entity_exists",
|
|
3016
|
+
"entity_does_not_exist"
|
|
3017
|
+
]
|
|
3018
|
+
},
|
|
3019
|
+
"values": {
|
|
3020
|
+
"type": "array",
|
|
3021
|
+
"items": {
|
|
3022
|
+
"type": "string"
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
},
|
|
3026
|
+
"example": {
|
|
3027
|
+
"source": {
|
|
3028
|
+
"origin": "trigger",
|
|
3029
|
+
"originType": "entity",
|
|
3030
|
+
"id": "trigger-id",
|
|
3031
|
+
"schema": "contact",
|
|
3032
|
+
"attribute": "email",
|
|
3033
|
+
"attributeType": "text"
|
|
3034
|
+
},
|
|
3035
|
+
"operation": "equals",
|
|
3036
|
+
"values": [
|
|
3037
|
+
"hello@epilot.cloud"
|
|
3038
|
+
]
|
|
3039
|
+
}
|
|
3040
|
+
},
|
|
3041
|
+
"ActionCondition": {
|
|
3042
|
+
"type": "object",
|
|
3043
|
+
"properties": {
|
|
3044
|
+
"id": {
|
|
3045
|
+
"type": "string"
|
|
3046
|
+
},
|
|
3047
|
+
"schedule_id": {
|
|
3048
|
+
"type": "string",
|
|
3049
|
+
"description": "Schedule Id which indicates the schedule of the actions inside the condition"
|
|
3050
|
+
},
|
|
3051
|
+
"evaluationResult": {
|
|
3052
|
+
"type": "boolean",
|
|
3053
|
+
"description": "Result of the condition evaluation"
|
|
3054
|
+
},
|
|
3055
|
+
"statements": {
|
|
3056
|
+
"type": "array",
|
|
3057
|
+
"items": {
|
|
3058
|
+
"$ref": "#/components/schemas/ConditionStatement"
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
},
|
|
3063
|
+
"ActionScheduleSource": {
|
|
3064
|
+
"type": "object",
|
|
3065
|
+
"description": "The source of the schedule_at timestamp that will be used to schedule the action",
|
|
3066
|
+
"properties": {
|
|
3067
|
+
"id": {
|
|
3068
|
+
"type": "string",
|
|
3069
|
+
"description": "The id of the action or trigger"
|
|
3070
|
+
},
|
|
3071
|
+
"origin": {
|
|
3072
|
+
"type": "string",
|
|
3073
|
+
"enum": [
|
|
3074
|
+
"trigger",
|
|
3075
|
+
"action",
|
|
3076
|
+
"action_task",
|
|
3077
|
+
"automation"
|
|
3078
|
+
]
|
|
3079
|
+
},
|
|
3080
|
+
"schema": {
|
|
3081
|
+
"type": "string"
|
|
3082
|
+
},
|
|
3083
|
+
"attribute": {
|
|
3084
|
+
"type": "string"
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
"required": [
|
|
3088
|
+
"id",
|
|
3089
|
+
"origin"
|
|
3090
|
+
]
|
|
3091
|
+
},
|
|
3092
|
+
"ActionSchedule": {
|
|
3093
|
+
"type": "object",
|
|
3094
|
+
"properties": {
|
|
3095
|
+
"id": {
|
|
3096
|
+
"type": "string",
|
|
3097
|
+
"description": "Schedule Id"
|
|
3098
|
+
},
|
|
3099
|
+
"scheduleApiId": {
|
|
3100
|
+
"type": "string",
|
|
3101
|
+
"description": "The id of the configured scheduler which will be added on automation triggered"
|
|
3102
|
+
},
|
|
3103
|
+
"numberOfUnits": {
|
|
3104
|
+
"type": "number"
|
|
3105
|
+
},
|
|
3106
|
+
"timePeriod": {
|
|
3107
|
+
"type": "string",
|
|
3108
|
+
"enum": [
|
|
3109
|
+
"minutes",
|
|
3110
|
+
"hours",
|
|
3111
|
+
"days",
|
|
3112
|
+
"weeks",
|
|
3113
|
+
"months"
|
|
3114
|
+
]
|
|
3115
|
+
},
|
|
3116
|
+
"timeRelation": {
|
|
3117
|
+
"type": "string",
|
|
3118
|
+
"enum": [
|
|
3119
|
+
"after",
|
|
3120
|
+
"before"
|
|
3121
|
+
]
|
|
3122
|
+
},
|
|
3123
|
+
"source": {
|
|
3124
|
+
"$ref": "#/components/schemas/ActionScheduleSource"
|
|
3125
|
+
}
|
|
3126
|
+
},
|
|
3127
|
+
"required": [
|
|
3128
|
+
"id",
|
|
3129
|
+
"source"
|
|
3130
|
+
]
|
|
3131
|
+
},
|
|
3132
|
+
"AutomationExecutionId": {
|
|
3133
|
+
"type": "string",
|
|
3134
|
+
"example": "9baf184f-bc81-4128-bca3-d974c90a12c4"
|
|
3135
|
+
},
|
|
3136
|
+
"AutomationExecution": {
|
|
3137
|
+
"type": "object",
|
|
3138
|
+
"properties": {
|
|
3139
|
+
"id": {
|
|
3140
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
3141
|
+
},
|
|
3142
|
+
"execution_status": {
|
|
3143
|
+
"$ref": "#/components/schemas/ExecutionStatus"
|
|
3144
|
+
},
|
|
3145
|
+
"entity_id": {
|
|
3146
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3147
|
+
},
|
|
3148
|
+
"activity_id": {
|
|
3149
|
+
"$ref": "#/components/schemas/ActivityId"
|
|
3150
|
+
},
|
|
3151
|
+
"entity_snapshot": {
|
|
3152
|
+
"$ref": "#/components/schemas/EntityItemSnapshot"
|
|
3153
|
+
},
|
|
3154
|
+
"org_id": {
|
|
3155
|
+
"$ref": "#/components/schemas/OrganizationId"
|
|
3156
|
+
},
|
|
3157
|
+
"flow_id": {
|
|
3158
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
3159
|
+
},
|
|
3160
|
+
"flow_name": {
|
|
3161
|
+
"type": "string",
|
|
3162
|
+
"example": "Handle contact form"
|
|
3163
|
+
},
|
|
3164
|
+
"created_at": {
|
|
3165
|
+
"type": "string",
|
|
3166
|
+
"format": "date-time"
|
|
3167
|
+
},
|
|
3168
|
+
"updated_at": {
|
|
3169
|
+
"type": "string",
|
|
3170
|
+
"format": "date-time"
|
|
3171
|
+
},
|
|
3172
|
+
"current_action_id": {
|
|
3173
|
+
"$ref": "#/components/schemas/AutomationActionId"
|
|
3174
|
+
},
|
|
3175
|
+
"conditions": {
|
|
3176
|
+
"type": "array",
|
|
3177
|
+
"items": {
|
|
3178
|
+
"$ref": "#/components/schemas/ActionCondition"
|
|
3179
|
+
}
|
|
3180
|
+
},
|
|
3181
|
+
"schedules": {
|
|
3182
|
+
"type": "array",
|
|
3183
|
+
"items": {
|
|
3184
|
+
"$ref": "#/components/schemas/ActionSchedule"
|
|
3185
|
+
}
|
|
3186
|
+
},
|
|
3187
|
+
"actions": {
|
|
3188
|
+
"type": "array",
|
|
3189
|
+
"items": {
|
|
3190
|
+
"$ref": "#/components/schemas/AnyAction"
|
|
3191
|
+
}
|
|
3192
|
+
},
|
|
3193
|
+
"resume_token": {
|
|
3194
|
+
"$ref": "#/components/schemas/ResumeToken"
|
|
3195
|
+
},
|
|
3196
|
+
"trigger_context": {
|
|
3197
|
+
"$ref": "#/components/schemas/TriggerContext"
|
|
3198
|
+
},
|
|
3199
|
+
"version": {
|
|
3200
|
+
"type": "number",
|
|
3201
|
+
"description": "Version of the flow",
|
|
3202
|
+
"example": 2
|
|
3203
|
+
},
|
|
3204
|
+
"trigger_event": {
|
|
3205
|
+
"oneOf": [
|
|
3206
|
+
{
|
|
3207
|
+
"$ref": "#/components/schemas/TriggerEventManual"
|
|
3208
|
+
},
|
|
3209
|
+
{
|
|
3210
|
+
"$ref": "#/components/schemas/TriggerEventEntityActivity"
|
|
3211
|
+
},
|
|
3212
|
+
{
|
|
3213
|
+
"$ref": "#/components/schemas/TriggerEventEntityOperation"
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
"$ref": "#/components/schemas/TriggerEventFlowAutomationTask"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
"$ref": "#/components/schemas/TriggerEventMessaging"
|
|
3220
|
+
}
|
|
3221
|
+
]
|
|
3222
|
+
},
|
|
3223
|
+
"workflow_context": {
|
|
3224
|
+
"$ref": "#/components/schemas/WorkflowExecutionContext"
|
|
3225
|
+
}
|
|
3226
|
+
},
|
|
3227
|
+
"required": [
|
|
3228
|
+
"id",
|
|
3229
|
+
"status",
|
|
3230
|
+
"entity_id",
|
|
3231
|
+
"org_id",
|
|
3232
|
+
"flow_id",
|
|
3233
|
+
"actions"
|
|
3234
|
+
]
|
|
3235
|
+
},
|
|
3236
|
+
"WorkflowExecutionContext": {
|
|
3237
|
+
"type": "object",
|
|
3238
|
+
"required": [
|
|
3239
|
+
"workflow_exec_id",
|
|
3240
|
+
"workflow_role"
|
|
3241
|
+
],
|
|
3242
|
+
"properties": {
|
|
3243
|
+
"workflow_exec_id": {
|
|
3244
|
+
"type": "string"
|
|
3245
|
+
},
|
|
3246
|
+
"workflow_exec_task_id": {
|
|
3247
|
+
"type": "string"
|
|
3248
|
+
},
|
|
3249
|
+
"workflow_role": {
|
|
3250
|
+
"$ref": "#/components/schemas/WorkflowContextRole"
|
|
3251
|
+
},
|
|
3252
|
+
"_execution_chain": {
|
|
3253
|
+
"$ref": "#/components/schemas/ExecutionChain"
|
|
3254
|
+
}
|
|
3255
|
+
}
|
|
3256
|
+
},
|
|
3257
|
+
"ExecutionChain": {
|
|
3258
|
+
"type": "object",
|
|
3259
|
+
"description": "[Internal] Tracks execution chain for infinite loop prevention. This is an internal property and should not be used by external consumers.",
|
|
3260
|
+
"properties": {
|
|
3261
|
+
"parent_execution_id": {
|
|
3262
|
+
"type": "string",
|
|
3263
|
+
"description": "ID of the parent flow execution that triggered this one"
|
|
3264
|
+
},
|
|
3265
|
+
"parent_task_id": {
|
|
3266
|
+
"type": "string",
|
|
3267
|
+
"description": "ID of the automation task that triggered this execution"
|
|
3268
|
+
},
|
|
3269
|
+
"depth": {
|
|
3270
|
+
"type": "integer",
|
|
3271
|
+
"description": "Current depth in the execution chain (0 = manual start)"
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
"TriggerEventManual": {
|
|
3276
|
+
"type": "object",
|
|
3277
|
+
"properties": {
|
|
3278
|
+
"type": {
|
|
3279
|
+
"type": "string",
|
|
3280
|
+
"enum": [
|
|
3281
|
+
"manual"
|
|
3282
|
+
]
|
|
3283
|
+
},
|
|
3284
|
+
"org_id": {
|
|
3285
|
+
"type": "string",
|
|
3286
|
+
"example": "123"
|
|
3287
|
+
},
|
|
3288
|
+
"entity_id": {
|
|
3289
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3290
|
+
},
|
|
3291
|
+
"caller": {
|
|
3292
|
+
"$ref": "#/components/schemas/ApiCallerContext"
|
|
3293
|
+
}
|
|
3294
|
+
},
|
|
3295
|
+
"required": [
|
|
3296
|
+
"org_id",
|
|
3297
|
+
"entity_id"
|
|
3298
|
+
]
|
|
3299
|
+
},
|
|
3300
|
+
"TriggerEventFlowAutomationTask": {
|
|
3301
|
+
"type": "object",
|
|
3302
|
+
"properties": {
|
|
3303
|
+
"type": {
|
|
3304
|
+
"type": "string",
|
|
3305
|
+
"enum": [
|
|
3306
|
+
"flow_automation_task"
|
|
3307
|
+
]
|
|
3308
|
+
},
|
|
3309
|
+
"org_id": {
|
|
3310
|
+
"type": "string",
|
|
3311
|
+
"example": "123"
|
|
3312
|
+
},
|
|
3313
|
+
"entity_id": {
|
|
3314
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3315
|
+
},
|
|
3316
|
+
"flow_execution_id": {
|
|
3317
|
+
"type": "string",
|
|
3318
|
+
"example": "wfwAJoT_cK"
|
|
3319
|
+
},
|
|
3320
|
+
"flow_automation_task_id": {
|
|
3321
|
+
"type": "string",
|
|
3322
|
+
"format": "UUID",
|
|
3323
|
+
"example": "2fa221ec-3aac-4655-ab8f-c062eca44a3"
|
|
3324
|
+
},
|
|
3325
|
+
"caller": {
|
|
3326
|
+
"$ref": "#/components/schemas/ApiCallerContext"
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"required": [
|
|
3330
|
+
"org_id",
|
|
3331
|
+
"entity_id",
|
|
3332
|
+
"flow_execution_id",
|
|
3333
|
+
"flow_automation_task_id"
|
|
3334
|
+
]
|
|
3335
|
+
},
|
|
3336
|
+
"TriggerEventEntityActivity": {
|
|
3337
|
+
"type": "object",
|
|
3338
|
+
"properties": {
|
|
3339
|
+
"type": {
|
|
3340
|
+
"type": "string",
|
|
3341
|
+
"enum": [
|
|
3342
|
+
"entity_activity"
|
|
3343
|
+
]
|
|
3344
|
+
},
|
|
3345
|
+
"org_id": {
|
|
3346
|
+
"type": "string",
|
|
3347
|
+
"example": "123"
|
|
3348
|
+
},
|
|
3349
|
+
"activity_id": {
|
|
3350
|
+
"$ref": "#/components/schemas/ActivityId"
|
|
3351
|
+
},
|
|
3352
|
+
"activity_type": {
|
|
3353
|
+
"type": "string"
|
|
3354
|
+
},
|
|
3355
|
+
"entity_id": {
|
|
3356
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
"required": [
|
|
3360
|
+
"org_id",
|
|
3361
|
+
"activity_id",
|
|
3362
|
+
"activity_type"
|
|
3363
|
+
]
|
|
3364
|
+
},
|
|
3365
|
+
"TriggerEventMessaging": {
|
|
3366
|
+
"type": "object",
|
|
3367
|
+
"properties": {
|
|
3368
|
+
"type": {
|
|
3369
|
+
"type": "string",
|
|
3370
|
+
"enum": [
|
|
3371
|
+
"new_email_thread"
|
|
3372
|
+
]
|
|
3373
|
+
},
|
|
3374
|
+
"org_id": {
|
|
3375
|
+
"type": "string",
|
|
3376
|
+
"example": "123"
|
|
3377
|
+
},
|
|
3378
|
+
"thread_id": {
|
|
3379
|
+
"type": "string"
|
|
3380
|
+
},
|
|
3381
|
+
"message_id": {
|
|
3382
|
+
"type": "string"
|
|
3383
|
+
},
|
|
3384
|
+
"entity_id": {
|
|
3385
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3386
|
+
}
|
|
3387
|
+
},
|
|
3388
|
+
"required": [
|
|
3389
|
+
"org_id",
|
|
3390
|
+
"thread_id",
|
|
3391
|
+
"message_id",
|
|
3392
|
+
"entity_id"
|
|
3393
|
+
]
|
|
3394
|
+
},
|
|
3395
|
+
"TriggerEventEntityOperation": {
|
|
3396
|
+
"type": "object",
|
|
3397
|
+
"properties": {
|
|
3398
|
+
"type": {
|
|
3399
|
+
"type": "string",
|
|
3400
|
+
"enum": [
|
|
3401
|
+
"entity_operation"
|
|
3402
|
+
]
|
|
3403
|
+
},
|
|
3404
|
+
"entity_id": {
|
|
3405
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3406
|
+
},
|
|
3407
|
+
"org_id": {
|
|
3408
|
+
"type": "string",
|
|
3409
|
+
"example": "123"
|
|
3410
|
+
},
|
|
3411
|
+
"activity_id": {
|
|
3412
|
+
"$ref": "#/components/schemas/ActivityId"
|
|
3413
|
+
},
|
|
3414
|
+
"operation_type": {
|
|
3415
|
+
"$ref": "#/components/schemas/EntityOperation"
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3418
|
+
"required": [
|
|
3419
|
+
"entity_id",
|
|
3420
|
+
"org_id",
|
|
3421
|
+
"activity_id",
|
|
3422
|
+
"operation_type"
|
|
3423
|
+
]
|
|
3424
|
+
},
|
|
3425
|
+
"ApiCallerContext": {
|
|
3426
|
+
"type": "object",
|
|
3427
|
+
"additionalProperties": true,
|
|
3428
|
+
"properties": {
|
|
3429
|
+
"EpilotAuth": {
|
|
3430
|
+
"type": "object",
|
|
3431
|
+
"properties": {
|
|
3432
|
+
"claims": {
|
|
3433
|
+
"type": "object",
|
|
3434
|
+
"properties": {
|
|
3435
|
+
"userId": {
|
|
3436
|
+
"type": "string",
|
|
3437
|
+
"example": "10006129"
|
|
3438
|
+
},
|
|
3439
|
+
"sub": {
|
|
3440
|
+
"type": "string",
|
|
3441
|
+
"example": "476e9b48-42f4-4234-a2b0-4668b34626ce"
|
|
3442
|
+
},
|
|
3443
|
+
"email": {
|
|
3444
|
+
"type": "string",
|
|
3445
|
+
"example": "example@epilot.cloud"
|
|
3446
|
+
},
|
|
3447
|
+
"cognito:username": {
|
|
3448
|
+
"type": "string",
|
|
3449
|
+
"example": "example@epilot.cloud"
|
|
3450
|
+
},
|
|
3451
|
+
"custom:ivy_user_id": {
|
|
3452
|
+
"type": "string",
|
|
3453
|
+
"example": "10006129"
|
|
3454
|
+
}
|
|
3455
|
+
},
|
|
3456
|
+
"example": {
|
|
3457
|
+
"sub": "476e9b48-42f4-4234-a2b0-4668b34626ce",
|
|
3458
|
+
"iss": "https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_6lZSgmU6D",
|
|
3459
|
+
"custom:ivy_org_id": "739224",
|
|
3460
|
+
"cognito:username": "n.ahmad@epilot.cloud",
|
|
3461
|
+
"custom:ivy_user_id": "10006129",
|
|
3462
|
+
"aud": "6e0jbdnger7nmoktaaflarue1l",
|
|
3463
|
+
"event_id": "cd5f5583-d90c-4db5-8e99-5f5dd29a4d75",
|
|
3464
|
+
"token_use": "id",
|
|
3465
|
+
"auth_time": 1614333023,
|
|
3466
|
+
"exp": 1614336623,
|
|
3467
|
+
"iat": 1614333023,
|
|
3468
|
+
"email": "n.ahmad@epilot.cloud"
|
|
3469
|
+
}
|
|
3470
|
+
},
|
|
3471
|
+
"userId": {
|
|
3472
|
+
"type": "string",
|
|
3473
|
+
"example": "10006129"
|
|
3474
|
+
},
|
|
3475
|
+
"organizationId": {
|
|
3476
|
+
"type": "string",
|
|
3477
|
+
"example": "739224"
|
|
3478
|
+
},
|
|
3479
|
+
"token": {
|
|
3480
|
+
"type": "string",
|
|
3481
|
+
"example": "eyJraWQiOi..."
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
},
|
|
3487
|
+
"ExecutionStatus": {
|
|
3488
|
+
"type": "string",
|
|
3489
|
+
"enum": [
|
|
3490
|
+
"pending",
|
|
3491
|
+
"starting",
|
|
3492
|
+
"in_progress",
|
|
3493
|
+
"paused",
|
|
3494
|
+
"success",
|
|
3495
|
+
"failed",
|
|
3496
|
+
"cancelled",
|
|
3497
|
+
"skipped",
|
|
3498
|
+
"scheduled",
|
|
3499
|
+
"hot"
|
|
3500
|
+
]
|
|
3501
|
+
},
|
|
3502
|
+
"GetExecutionsResp": {
|
|
3503
|
+
"type": "object",
|
|
3504
|
+
"properties": {
|
|
3505
|
+
"total": {
|
|
3506
|
+
"type": "number"
|
|
3507
|
+
},
|
|
3508
|
+
"results": {
|
|
3509
|
+
"type": "array",
|
|
3510
|
+
"items": {
|
|
3511
|
+
"$ref": "#/components/schemas/AutomationExecution"
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
"required": [
|
|
3516
|
+
"total",
|
|
3517
|
+
"results"
|
|
3518
|
+
]
|
|
3519
|
+
},
|
|
3520
|
+
"StartExecutionRequest": {
|
|
3521
|
+
"type": "object",
|
|
3522
|
+
"properties": {
|
|
3523
|
+
"entity_id": {
|
|
3524
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3525
|
+
},
|
|
3526
|
+
"flow_id": {
|
|
3527
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
3528
|
+
},
|
|
3529
|
+
"workflow_context": {
|
|
3530
|
+
"$ref": "#/components/schemas/WorkflowExecutionContext"
|
|
3531
|
+
},
|
|
3532
|
+
"flow_execution_id": {
|
|
3533
|
+
"type": "string",
|
|
3534
|
+
"deprecated": true,
|
|
3535
|
+
"description": "Use workflow_context.workflow_exec_id instead"
|
|
3536
|
+
},
|
|
3537
|
+
"flow_automation_task_id": {
|
|
3538
|
+
"type": "string",
|
|
3539
|
+
"deprecated": true,
|
|
3540
|
+
"description": "Use workflow_context.workflow_exec_task_id instead"
|
|
3541
|
+
}
|
|
3542
|
+
},
|
|
3543
|
+
"required": [
|
|
3544
|
+
"entity_id",
|
|
3545
|
+
"flow_id"
|
|
3546
|
+
]
|
|
3547
|
+
},
|
|
3548
|
+
"PatchBulkJobRequest": {
|
|
3549
|
+
"type": "object",
|
|
3550
|
+
"properties": {
|
|
3551
|
+
"action": {
|
|
3552
|
+
"type": "string",
|
|
3553
|
+
"enum": [
|
|
3554
|
+
"APPROVE",
|
|
3555
|
+
"CANCEL"
|
|
3556
|
+
]
|
|
3557
|
+
},
|
|
3558
|
+
"task_token": {
|
|
3559
|
+
"type": "string"
|
|
3560
|
+
}
|
|
3561
|
+
},
|
|
3562
|
+
"required": [
|
|
3563
|
+
"action",
|
|
3564
|
+
"task_token"
|
|
3565
|
+
]
|
|
3566
|
+
},
|
|
3567
|
+
"BulkTriggerRequest": {
|
|
3568
|
+
"oneOf": [
|
|
3569
|
+
{
|
|
3570
|
+
"type": "object",
|
|
3571
|
+
"properties": {
|
|
3572
|
+
"flow_id": {
|
|
3573
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
3574
|
+
},
|
|
3575
|
+
"entities_refs": {
|
|
3576
|
+
"type": "array",
|
|
3577
|
+
"items": {
|
|
3578
|
+
"$ref": "#/components/schemas/EntityRef"
|
|
3579
|
+
}
|
|
3580
|
+
},
|
|
3581
|
+
"trigger_context": {
|
|
3582
|
+
"$ref": "#/components/schemas/TriggerContext"
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
"required": [
|
|
3586
|
+
"flow_id",
|
|
3587
|
+
"entities_refs"
|
|
3588
|
+
]
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
"type": "object",
|
|
3592
|
+
"properties": {
|
|
3593
|
+
"flow_id": {
|
|
3594
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
3595
|
+
},
|
|
3596
|
+
"entities_query": {
|
|
3597
|
+
"type": "string"
|
|
3598
|
+
},
|
|
3599
|
+
"trigger_context": {
|
|
3600
|
+
"$ref": "#/components/schemas/TriggerContext"
|
|
3601
|
+
}
|
|
3602
|
+
},
|
|
3603
|
+
"required": [
|
|
3604
|
+
"flow_id",
|
|
3605
|
+
"entities_query"
|
|
3606
|
+
]
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"type": "object",
|
|
3610
|
+
"properties": {
|
|
3611
|
+
"flow_id": {
|
|
3612
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
3613
|
+
},
|
|
3614
|
+
"entities_filter": {
|
|
3615
|
+
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
3616
|
+
},
|
|
3617
|
+
"trigger_context": {
|
|
3618
|
+
"$ref": "#/components/schemas/TriggerContext"
|
|
3619
|
+
}
|
|
3620
|
+
},
|
|
3621
|
+
"required": [
|
|
3622
|
+
"flow_id",
|
|
3623
|
+
"entities_filter"
|
|
3624
|
+
]
|
|
3625
|
+
}
|
|
3626
|
+
]
|
|
3627
|
+
},
|
|
3628
|
+
"EntityRef": {
|
|
3629
|
+
"type": "object",
|
|
3630
|
+
"required": [
|
|
3631
|
+
"entity_id",
|
|
3632
|
+
"entity_schema"
|
|
3633
|
+
],
|
|
3634
|
+
"properties": {
|
|
3635
|
+
"entity_id": {
|
|
3636
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3637
|
+
},
|
|
3638
|
+
"entity_schema": {
|
|
3639
|
+
"type": "string"
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
},
|
|
3643
|
+
"BulkTriggerJob": {
|
|
3644
|
+
"type": "object",
|
|
3645
|
+
"required": [
|
|
3646
|
+
"job_id",
|
|
3647
|
+
"org_id",
|
|
3648
|
+
"flow_id",
|
|
3649
|
+
"status",
|
|
3650
|
+
"created_by",
|
|
3651
|
+
"created_at",
|
|
3652
|
+
"updated_at"
|
|
3653
|
+
],
|
|
3654
|
+
"properties": {
|
|
3655
|
+
"job_id": {
|
|
3656
|
+
"$ref": "#/components/schemas/JobId"
|
|
3657
|
+
},
|
|
3658
|
+
"org_id": {
|
|
3659
|
+
"$ref": "#/components/schemas/OrganizationId"
|
|
3660
|
+
},
|
|
3661
|
+
"flow_id": {
|
|
3662
|
+
"$ref": "#/components/schemas/AutomationFlowId"
|
|
3663
|
+
},
|
|
3664
|
+
"status": {
|
|
3665
|
+
"type": "string",
|
|
3666
|
+
"description": "Status of the bulk trigger automation job\n* approval: Waiting for user approval to start the bulk trigger automation\n* querying_entities: Loading entities in batches\n* entities_loaded: All entities have been loaded and stored\n* executing: Automation execution are currently running\n* monitoring: All executions have been started, now monitoring their completion\n* send_report: Automation executions finished running. Report is being created & sent to the user who initiated the bulk trigger automation\n* finished: Automation executions finished running. Some may have failed. Check the status of each entity.\n* failed: Bulk trigger automation execution failed. Some executions might have started. Check the status of each entity.\n* cancelled: Bulk trigger automation execution was cancelled\n",
|
|
3667
|
+
"enum": [
|
|
3668
|
+
"approval",
|
|
3669
|
+
"querying_entities",
|
|
3670
|
+
"entities_loaded",
|
|
3671
|
+
"executing",
|
|
3672
|
+
"monitoring",
|
|
3673
|
+
"send_report",
|
|
3674
|
+
"finished",
|
|
3675
|
+
"failed",
|
|
3676
|
+
"cancelled"
|
|
3677
|
+
]
|
|
3678
|
+
},
|
|
3679
|
+
"created_by": {
|
|
3680
|
+
"type": "string",
|
|
3681
|
+
"description": "User ID who created the bulk trigger automation job",
|
|
3682
|
+
"example": "1234"
|
|
3683
|
+
},
|
|
3684
|
+
"created_at": {
|
|
3685
|
+
"type": "string",
|
|
3686
|
+
"format": "date-time"
|
|
3687
|
+
},
|
|
3688
|
+
"updated_at": {
|
|
3689
|
+
"type": "string",
|
|
3690
|
+
"format": "date-time"
|
|
3691
|
+
},
|
|
3692
|
+
"approved_at": {
|
|
3693
|
+
"type": "string",
|
|
3694
|
+
"description": "Time when the bulk trigger automation executions job was approved",
|
|
3695
|
+
"format": "date-time"
|
|
3696
|
+
},
|
|
3697
|
+
"trigger_context": {
|
|
3698
|
+
"$ref": "#/components/schemas/TriggerContext"
|
|
3699
|
+
},
|
|
3700
|
+
"task_token": {
|
|
3701
|
+
"type": "string",
|
|
3702
|
+
"description": "Task token to approve/cancel the bulk automation job",
|
|
3703
|
+
"example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
3704
|
+
},
|
|
3705
|
+
"report_file_entity_id": {
|
|
3706
|
+
"type": "string",
|
|
3707
|
+
"description": "Entity ID of the report file entity"
|
|
3708
|
+
},
|
|
3709
|
+
"entity_query": {
|
|
3710
|
+
"type": "object",
|
|
3711
|
+
"description": "Query configuration for loading entities",
|
|
3712
|
+
"properties": {
|
|
3713
|
+
"type": {
|
|
3714
|
+
"type": "string",
|
|
3715
|
+
"enum": [
|
|
3716
|
+
"refs",
|
|
3717
|
+
"query",
|
|
3718
|
+
"filter"
|
|
3719
|
+
]
|
|
3720
|
+
},
|
|
3721
|
+
"data": {
|
|
3722
|
+
"oneOf": [
|
|
3723
|
+
{
|
|
3724
|
+
"type": "array",
|
|
3725
|
+
"items": {
|
|
3726
|
+
"$ref": "#/components/schemas/EntityRef"
|
|
3727
|
+
}
|
|
3728
|
+
},
|
|
3729
|
+
{
|
|
3730
|
+
"type": "string"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
3734
|
+
}
|
|
3735
|
+
]
|
|
3736
|
+
}
|
|
3737
|
+
},
|
|
3738
|
+
"required": [
|
|
3739
|
+
"type",
|
|
3740
|
+
"data"
|
|
3741
|
+
]
|
|
3742
|
+
},
|
|
3743
|
+
"pagination_state": {
|
|
3744
|
+
"type": "object",
|
|
3745
|
+
"description": "Pagination state for entity loading",
|
|
3746
|
+
"properties": {
|
|
3747
|
+
"page_size": {
|
|
3748
|
+
"type": "integer",
|
|
3749
|
+
"description": "Number of entities per page"
|
|
3750
|
+
},
|
|
3751
|
+
"pages_processed": {
|
|
3752
|
+
"type": "integer",
|
|
3753
|
+
"description": "Number of pages processed so far"
|
|
3754
|
+
},
|
|
3755
|
+
"total_processed": {
|
|
3756
|
+
"type": "integer",
|
|
3757
|
+
"description": "Total number of entities processed so far"
|
|
3758
|
+
},
|
|
3759
|
+
"stable_query_id": {
|
|
3760
|
+
"type": "string",
|
|
3761
|
+
"description": "Stable query ID for pagination"
|
|
3762
|
+
},
|
|
3763
|
+
"search_after": {
|
|
3764
|
+
"type": "array",
|
|
3765
|
+
"description": "Last sort value used for pagination",
|
|
3766
|
+
"items": {
|
|
3767
|
+
"oneOf": [
|
|
3768
|
+
{
|
|
3769
|
+
"type": "string"
|
|
3770
|
+
},
|
|
3771
|
+
{
|
|
3772
|
+
"type": "number"
|
|
3773
|
+
}
|
|
3774
|
+
]
|
|
3775
|
+
}
|
|
3776
|
+
},
|
|
3777
|
+
"has_more": {
|
|
3778
|
+
"type": "boolean",
|
|
3779
|
+
"description": "Whether there are more entities to load"
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
"execution_summary": {
|
|
3784
|
+
"type": "array",
|
|
3785
|
+
"description": "List of entities & their automation execution id & status",
|
|
3786
|
+
"items": {
|
|
3787
|
+
"$ref": "#/components/schemas/ExecItem"
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
"ExecItem": {
|
|
3793
|
+
"type": "object",
|
|
3794
|
+
"description": "Execution item for bulk trigger automation. It maps each entity to its automation execution id & status",
|
|
3795
|
+
"required": [
|
|
3796
|
+
"entity_id",
|
|
3797
|
+
"execution_status"
|
|
3798
|
+
],
|
|
3799
|
+
"properties": {
|
|
3800
|
+
"entity_id": {
|
|
3801
|
+
"$ref": "#/components/schemas/EntityId"
|
|
3802
|
+
},
|
|
3803
|
+
"entity_schema": {
|
|
3804
|
+
"type": "string"
|
|
3805
|
+
},
|
|
3806
|
+
"execution_id": {
|
|
3807
|
+
"$ref": "#/components/schemas/AutomationExecutionId"
|
|
3808
|
+
},
|
|
3809
|
+
"execution_status": {
|
|
3810
|
+
"$ref": "#/components/schemas/ExecutionStatus"
|
|
3811
|
+
},
|
|
3812
|
+
"timestamp": {
|
|
3813
|
+
"type": "string",
|
|
3814
|
+
"format": "date-time",
|
|
3815
|
+
"description": "Timestamp in UTC ISO format",
|
|
3816
|
+
"example": "2025-10-30T15:56:47.842Z"
|
|
3817
|
+
},
|
|
3818
|
+
"error": {
|
|
3819
|
+
"type": "string",
|
|
3820
|
+
"description": "Error message for the failed automation execution"
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3823
|
+
},
|
|
3824
|
+
"JobId": {
|
|
3825
|
+
"type": "string",
|
|
3826
|
+
"description": "Job ID for tracking the status of bulk trigger automation executions",
|
|
3827
|
+
"example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
3828
|
+
},
|
|
3829
|
+
"EntityId": {
|
|
3830
|
+
"type": "string",
|
|
3831
|
+
"example": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74"
|
|
3832
|
+
},
|
|
3833
|
+
"ActivityId": {
|
|
3834
|
+
"type": "string",
|
|
3835
|
+
"example": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74"
|
|
3836
|
+
},
|
|
3837
|
+
"OrganizationId": {
|
|
3838
|
+
"type": "string",
|
|
3839
|
+
"example": "e3d3ebac-baab-4395-abf4-50b5bf1f8b74"
|
|
3840
|
+
},
|
|
3841
|
+
"TriggerContext": {
|
|
3842
|
+
"type": "object",
|
|
3843
|
+
"additionalProperties": {
|
|
3844
|
+
"type": "string"
|
|
3845
|
+
},
|
|
3846
|
+
"description": "Additional contextual data for a bulk trigger automation. This would normally include additional entity IDs you'd need after a listener picks up an event.",
|
|
3847
|
+
"example": {
|
|
3848
|
+
"entity_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
|
|
3849
|
+
}
|
|
3850
|
+
},
|
|
3851
|
+
"AutomationTrigger": {
|
|
3852
|
+
"type": "object",
|
|
3853
|
+
"properties": {
|
|
3854
|
+
"id": {
|
|
3855
|
+
"type": "string",
|
|
3856
|
+
"format": "uuid",
|
|
3857
|
+
"example": "12d4f45a-1883-4841-a94c-5928cb338a94"
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3860
|
+
},
|
|
3861
|
+
"FlowsTrigger": {
|
|
3862
|
+
"allOf": [
|
|
3863
|
+
{
|
|
3864
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
3865
|
+
},
|
|
3866
|
+
{
|
|
3867
|
+
"type": "object",
|
|
3868
|
+
"properties": {
|
|
3869
|
+
"type": {
|
|
3870
|
+
"type": "string",
|
|
3871
|
+
"enum": [
|
|
3872
|
+
"flows_trigger"
|
|
3873
|
+
]
|
|
3874
|
+
},
|
|
3875
|
+
"configuration": {
|
|
3876
|
+
"type": "object",
|
|
3877
|
+
"properties": {
|
|
3878
|
+
"source_id": {
|
|
3879
|
+
"type": "string",
|
|
3880
|
+
"format": "uuid",
|
|
3881
|
+
"description": "The ID of the workflow v2 that triggers this automation"
|
|
3882
|
+
},
|
|
3883
|
+
"journey_id": {
|
|
3884
|
+
"type": "string",
|
|
3885
|
+
"format": "uuid",
|
|
3886
|
+
"description": "When Journeys are linked to Workflows V2 as Journey Automations, this field will contain the ID of the Journey"
|
|
3887
|
+
}
|
|
3888
|
+
},
|
|
3889
|
+
"required": [
|
|
3890
|
+
"source_id"
|
|
3891
|
+
]
|
|
3892
|
+
}
|
|
3893
|
+
},
|
|
3894
|
+
"required": [
|
|
3895
|
+
"type",
|
|
3896
|
+
"configuration"
|
|
3897
|
+
]
|
|
3898
|
+
}
|
|
3899
|
+
]
|
|
3900
|
+
},
|
|
3901
|
+
"JourneySubmitTrigger": {
|
|
3902
|
+
"allOf": [
|
|
3903
|
+
{
|
|
3904
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
3905
|
+
},
|
|
3906
|
+
{
|
|
3907
|
+
"type": "object",
|
|
3908
|
+
"properties": {
|
|
3909
|
+
"type": {
|
|
3910
|
+
"type": "string",
|
|
3911
|
+
"enum": [
|
|
3912
|
+
"journey_submission"
|
|
3913
|
+
]
|
|
3914
|
+
},
|
|
3915
|
+
"configuration": {
|
|
3916
|
+
"type": "object",
|
|
3917
|
+
"properties": {
|
|
3918
|
+
"source_id": {
|
|
3919
|
+
"type": "string",
|
|
3920
|
+
"format": "uuid"
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3923
|
+
"required": [
|
|
3924
|
+
"source_id"
|
|
3925
|
+
]
|
|
3926
|
+
}
|
|
3927
|
+
},
|
|
3928
|
+
"required": [
|
|
3929
|
+
"type",
|
|
3930
|
+
"configuration"
|
|
3931
|
+
]
|
|
3932
|
+
}
|
|
3933
|
+
]
|
|
3934
|
+
},
|
|
3935
|
+
"FrontendSubmitTrigger": {
|
|
3936
|
+
"allOf": [
|
|
3937
|
+
{
|
|
3938
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
3939
|
+
},
|
|
3940
|
+
{
|
|
3941
|
+
"type": "object",
|
|
3942
|
+
"properties": {
|
|
3943
|
+
"type": {
|
|
3944
|
+
"type": "string",
|
|
3945
|
+
"enum": [
|
|
3946
|
+
"frontend_submission"
|
|
3947
|
+
]
|
|
3948
|
+
},
|
|
3949
|
+
"configuration": {
|
|
3950
|
+
"type": "object",
|
|
3951
|
+
"properties": {
|
|
3952
|
+
"source_id": {
|
|
3953
|
+
"type": "string",
|
|
3954
|
+
"example": "99"
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
},
|
|
3959
|
+
"required": [
|
|
3960
|
+
"type",
|
|
3961
|
+
"configuration"
|
|
3962
|
+
]
|
|
3963
|
+
}
|
|
3964
|
+
]
|
|
3965
|
+
},
|
|
3966
|
+
"ApiSubmissionTrigger": {
|
|
3967
|
+
"allOf": [
|
|
3968
|
+
{
|
|
3969
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
3970
|
+
},
|
|
3971
|
+
{
|
|
3972
|
+
"type": "object",
|
|
3973
|
+
"properties": {
|
|
3974
|
+
"type": {
|
|
3975
|
+
"type": "string",
|
|
3976
|
+
"enum": [
|
|
3977
|
+
"api_submission"
|
|
3978
|
+
]
|
|
3979
|
+
},
|
|
3980
|
+
"configuration": {
|
|
3981
|
+
"type": "object",
|
|
3982
|
+
"properties": {
|
|
3983
|
+
"source_id": {
|
|
3984
|
+
"type": "string"
|
|
3985
|
+
}
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
},
|
|
3989
|
+
"required": [
|
|
3990
|
+
"type",
|
|
3991
|
+
"configuration"
|
|
3992
|
+
]
|
|
3993
|
+
}
|
|
3994
|
+
]
|
|
3995
|
+
},
|
|
3996
|
+
"NewEmailThreadTrigger": {
|
|
3997
|
+
"allOf": [
|
|
3998
|
+
{
|
|
3999
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
"type": "object",
|
|
4003
|
+
"properties": {
|
|
4004
|
+
"type": {
|
|
4005
|
+
"type": "string",
|
|
4006
|
+
"enum": [
|
|
4007
|
+
"new_email_thread"
|
|
4008
|
+
]
|
|
4009
|
+
},
|
|
4010
|
+
"configuration": {
|
|
4011
|
+
"type": "object",
|
|
4012
|
+
"required": [
|
|
4013
|
+
"direction"
|
|
4014
|
+
],
|
|
4015
|
+
"properties": {
|
|
4016
|
+
"shared_inbox_ids": {
|
|
4017
|
+
"type": "array",
|
|
4018
|
+
"description": "A list of shared inbox IDs that the email thread should be matched against.",
|
|
4019
|
+
"items": {
|
|
4020
|
+
"type": "string"
|
|
4021
|
+
}
|
|
4022
|
+
},
|
|
4023
|
+
"direction": {
|
|
4024
|
+
"type": "string",
|
|
4025
|
+
"description": "Whether the trigger should be matched against only inbound, outbound emails or both.",
|
|
4026
|
+
"enum": [
|
|
4027
|
+
"INBOUND",
|
|
4028
|
+
"OUTBOUND",
|
|
4029
|
+
"BOTH"
|
|
4030
|
+
]
|
|
4031
|
+
}
|
|
4032
|
+
}
|
|
4033
|
+
}
|
|
4034
|
+
},
|
|
4035
|
+
"required": [
|
|
4036
|
+
"type",
|
|
4037
|
+
"configuration"
|
|
4038
|
+
]
|
|
4039
|
+
}
|
|
4040
|
+
]
|
|
4041
|
+
},
|
|
4042
|
+
"ReceivedEmailTrigger": {
|
|
4043
|
+
"allOf": [
|
|
4044
|
+
{
|
|
4045
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
4046
|
+
},
|
|
4047
|
+
{
|
|
4048
|
+
"type": "object",
|
|
4049
|
+
"properties": {
|
|
4050
|
+
"type": {
|
|
4051
|
+
"type": "string",
|
|
4052
|
+
"enum": [
|
|
4053
|
+
"received_email"
|
|
4054
|
+
]
|
|
4055
|
+
},
|
|
4056
|
+
"configuration": {
|
|
4057
|
+
"type": "object",
|
|
4058
|
+
"properties": {
|
|
4059
|
+
"message_type": {
|
|
4060
|
+
"type": "string",
|
|
4061
|
+
"enum": [
|
|
4062
|
+
"RECEIVED"
|
|
4063
|
+
]
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
},
|
|
4068
|
+
"required": [
|
|
4069
|
+
"type",
|
|
4070
|
+
"configuration"
|
|
4071
|
+
]
|
|
4072
|
+
}
|
|
4073
|
+
]
|
|
4074
|
+
},
|
|
4075
|
+
"EntityOperationTrigger": {
|
|
4076
|
+
"description": "- If provides filter_config, executes an automation based on the filtered configuration when an entity event occurs.\n- The conditions on a filter follows the event bridge patterns - `https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html`\n | Comparison | Example | Rule syntax |\n |------------------------|-----------------------------------------------------|----------------------------------------------------------|\n | Null | first_name is null | `\"first_name\": [ null ]` |\n | Empty | last_name is empty | `\"last_name\": [\"\"]` |\n | Equals | email is \"j.doe@email.com\" | `\"email\": [ \"j.doe@email.com\" ]` |\n | Equals (ignore case) | first_name is \"John\" | `\"first_name\": [ { \"equals-ignore-case\": \"john\" } ]` |\n | And | fist_name is \"John\" and last_name is \"Doe\" | `\"first_name\": [ \"John\" ], \"last_name\": [\"Doe\"]` |\n | Or | PaymentType is \"Invoice\" or \"SEPA\" | `\"PaymentType\": [ \"invoice\", \"sepa\"]` |\n | Or (multiple fields) | first_name is \"John\", or last_name is \"Doe\". | `\"$or\": [ { \"first_name\": [ \"John\" ] }, { \"last_name\": [ \"Doe\" ] } ]` |\n | Not | status is anything but \"cancelled\" | `\"status\": [ { \"anything-but\": [ \"cancelled\" ] } ]` |\n | Numeric (equals) | Price is 100 | `\"Price\": [ { \"numeric\": [ \"=\", 100 ] } ]` |\n | Numeric (range) | Price is more than 10, and less than or equal to 20 | `\"Price\": [ { \"numeric\": [ \">\", 10, \"<=\", 20 ] } ]` |\n | Exists | ProductName exists | `\"ProductName\": [ { \"exists\": true } ]` |\n | Does not exist | ProductName does not exist | `\"ProductName\": [ { \"exists\": false } ]` |\n | Begins with | OpportunityNumber starts with OPP- | `\"opportunity_number\": [ { \"prefix\": \"OPP-\" } ]` |\n | Ends with | FileName ends with a .png extension | `\"filename\": [ { \"suffix\": \".png\" } ]` |\n | Wildcard | search a string using a wildcard | `\"email\": [ { \"wildcard\": \"*@doe.com\" } ]` |\n - To run the execution on all update events\n ```\n {\n \"type\": \"filter_entity_event\",\n \"configuration\": {\n \"operation\": {\n \"operation\": [\"updateEntity\"]\n }\n }\n }\n ```\n - To run the execution only when the updates are from a portal user\n ```\n {\n \"type\": \"filter_entity_event\",\n \"configuration\": {\n \"operation\": {\n \"operation\": [\"updateEntity\"]\n },\n \"activity\": {\n \"type\": \"EntityUpdatedFromPortal\"\n }\n }\n }\n ```\n - To run the execution only when there is an update on a specific attribute\n ```\n Only starts the automation when the email on a contact is changed\n {\n \"type\": \"filter_entity_event\",\n \"configuration\": {\n \"operation\": {\n \"operation\": [\"updateEntity\"],\n \"payload\": {\n \"_schema\": [\"contact\"]\n },\n \"diff\": {\n \"updated\": {\n \"email\": [{ \"exists\": true }]\n }\n }\n }\n }\n }\n ```\n - To run the execution only when a specific attribute is altered(created/updated/deleted)\n ```\n Only starts the automation when a price is altered on a contract\n {\n \"type\": \"filter_entity_event\",\n \"configuration\": {\n \"operation\": {\n \"payload\": {\n \"_schema\": [\"contract\"]\n },\n \"diff\": {\n // Whether he first_name has been added, updated, or removed\n $or: [\n {\n 'added.first_name': [{ exists: true }]\n },\n {\n 'updated.first_name': [{ exists: true }]\n },\n {\n 'deleted.first_name': [{ exists: true }]\n }\n ]\n }\n }\n }\n }\n ```\n - To run the execution if an attribute is changed from one state to another\n ```\n Only starts the automation when the order status changes from `open_for_acceptance` to `placed`\n {\n \"type\": \"filter_entity_event\",\n \"configuration\": {\n \"operation\": {\n \"operation\": [\"updateEntity\"],\n \"payload\": {\n \"_schema\": [\"order\"],\n \"status\": [\"placed\"]\n },\n \"diff\": {\n \"updated\": {\n \"status\": [\"open_for_acceptance\"]\n }\n }\n }\n }\n }\n ```\n",
|
|
4077
|
+
"allOf": [
|
|
4078
|
+
{
|
|
4079
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
4080
|
+
},
|
|
4081
|
+
{
|
|
4082
|
+
"type": "object",
|
|
4083
|
+
"properties": {
|
|
4084
|
+
"type": {
|
|
4085
|
+
"type": "string",
|
|
4086
|
+
"enum": [
|
|
4087
|
+
"entity_operation"
|
|
4088
|
+
]
|
|
4089
|
+
},
|
|
4090
|
+
"configuration": {
|
|
4091
|
+
"type": "object",
|
|
4092
|
+
"properties": {
|
|
4093
|
+
"schema": {
|
|
4094
|
+
"type": "string",
|
|
4095
|
+
"example": "submission"
|
|
4096
|
+
},
|
|
4097
|
+
"operations": {
|
|
4098
|
+
"type": "array",
|
|
4099
|
+
"minItems": 1,
|
|
4100
|
+
"items": {
|
|
4101
|
+
"$ref": "#/components/schemas/EntityOperation"
|
|
4102
|
+
}
|
|
4103
|
+
},
|
|
4104
|
+
"include_activities": {
|
|
4105
|
+
"type": "array",
|
|
4106
|
+
"items": {
|
|
4107
|
+
"type": "string",
|
|
4108
|
+
"example": [
|
|
4109
|
+
"CreateEntity"
|
|
4110
|
+
]
|
|
4111
|
+
}
|
|
4112
|
+
},
|
|
4113
|
+
"exclude_activities": {
|
|
4114
|
+
"type": "array",
|
|
4115
|
+
"items": {
|
|
4116
|
+
"type": "string",
|
|
4117
|
+
"example": [
|
|
4118
|
+
"SyncEntity"
|
|
4119
|
+
]
|
|
4120
|
+
}
|
|
4121
|
+
},
|
|
4122
|
+
"filter_config": {
|
|
4123
|
+
"type": "object",
|
|
4124
|
+
"properties": {
|
|
4125
|
+
"operation": {
|
|
4126
|
+
"type": "object",
|
|
4127
|
+
"properties": {
|
|
4128
|
+
"operation": {
|
|
4129
|
+
"type": "array",
|
|
4130
|
+
"description": "Filter on operation type. If not specified, all operations will be matched on execution.\nExample:\n 1. Filter all the createEntity/updateEntity operations\n ```\n {\n \"operation\":{\n \"operation\": [\"createEntity\", \"updateEntity\"]\n }\n }\n ```\n",
|
|
4131
|
+
"items": {
|
|
4132
|
+
"$ref": "#/components/schemas/EntityOperation"
|
|
4133
|
+
}
|
|
4134
|
+
},
|
|
4135
|
+
"payload": {
|
|
4136
|
+
"$ref": "#/components/schemas/FilterConditionOnEvent"
|
|
4137
|
+
},
|
|
4138
|
+
"diff": {
|
|
4139
|
+
"anyOf": [
|
|
4140
|
+
{
|
|
4141
|
+
"$ref": "#/components/schemas/OrConditionForDiff"
|
|
4142
|
+
},
|
|
4143
|
+
{
|
|
4144
|
+
"type": "object",
|
|
4145
|
+
"description": "Diff to it's prior state when an entity is updated",
|
|
4146
|
+
"properties": {
|
|
4147
|
+
"added": {
|
|
4148
|
+
"$ref": "#/components/schemas/DiffAdded"
|
|
4149
|
+
},
|
|
4150
|
+
"updated": {
|
|
4151
|
+
"$ref": "#/components/schemas/DiffUpdated"
|
|
4152
|
+
},
|
|
4153
|
+
"deleted": {
|
|
4154
|
+
"$ref": "#/components/schemas/DiffDeleted"
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
4158
|
+
]
|
|
4159
|
+
}
|
|
4160
|
+
}
|
|
4161
|
+
},
|
|
4162
|
+
"activity": {
|
|
4163
|
+
"type": "object",
|
|
4164
|
+
"properties": {
|
|
4165
|
+
"type": {
|
|
4166
|
+
"type": "array",
|
|
4167
|
+
"items": {
|
|
4168
|
+
"anyOf": [
|
|
4169
|
+
{
|
|
4170
|
+
"type": "string"
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"$ref": "#/components/schemas/EqualsIgnoreCaseCondition"
|
|
4174
|
+
},
|
|
4175
|
+
{
|
|
4176
|
+
"$ref": "#/components/schemas/AnythingButCondition"
|
|
4177
|
+
},
|
|
4178
|
+
{
|
|
4179
|
+
"$ref": "#/components/schemas/ExistsCondition"
|
|
4180
|
+
},
|
|
4181
|
+
{
|
|
4182
|
+
"$ref": "#/components/schemas/PrefixCondition"
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
"$ref": "#/components/schemas/SuffixCondition"
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
"$ref": "#/components/schemas/WildcardCondition"
|
|
4189
|
+
}
|
|
4190
|
+
]
|
|
4191
|
+
},
|
|
4192
|
+
"example": [
|
|
4193
|
+
"EntityUpdatedFromPortal",
|
|
4194
|
+
"EntityUpdated",
|
|
4195
|
+
"DocUploadedFromPortal"
|
|
4196
|
+
],
|
|
4197
|
+
"description": "Filter on activity type. If not specified, all activities will be matched on execution.\nExample:\n 1. Filter the events when an entity is updated from portal\n ```\n {\n \"activity\":{\n \"type\": [\"EntityUpdatedFromPortal\"]\n }\n }\n ```\n 2. Filter the events when either a doc is uploaded/removed on an entity from a portal\n ```\n {\n \"activity\":{\n \"type\": [\"DocUploadedFromPortal\", \"DocRemovedFromPortal\"]\n }\n }\n ```\n"
|
|
4198
|
+
}
|
|
4199
|
+
}
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
},
|
|
4203
|
+
"ecp_config": {
|
|
4204
|
+
"type": "object",
|
|
4205
|
+
"properties": {
|
|
4206
|
+
"origin": {
|
|
4207
|
+
"type": "string",
|
|
4208
|
+
"example": "END_CUSTOMER_PORTAL"
|
|
4209
|
+
},
|
|
4210
|
+
"portal_id": {
|
|
4211
|
+
"type": "string",
|
|
4212
|
+
"example": "any-portal-id"
|
|
4213
|
+
},
|
|
4214
|
+
"file_config": {
|
|
4215
|
+
"type": "object",
|
|
4216
|
+
"properties": {
|
|
4217
|
+
"shared_with_end_customer": {
|
|
4218
|
+
"type": "boolean",
|
|
4219
|
+
"example": true
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
}
|
|
4227
|
+
},
|
|
4228
|
+
"required": [
|
|
4229
|
+
"type",
|
|
4230
|
+
"configuration"
|
|
4231
|
+
]
|
|
4232
|
+
}
|
|
4233
|
+
]
|
|
4234
|
+
},
|
|
4235
|
+
"ActivityTrigger": {
|
|
4236
|
+
"allOf": [
|
|
4237
|
+
{
|
|
4238
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
4239
|
+
},
|
|
4240
|
+
{
|
|
4241
|
+
"type": "object",
|
|
4242
|
+
"properties": {
|
|
4243
|
+
"type": {
|
|
4244
|
+
"type": "string",
|
|
4245
|
+
"enum": [
|
|
4246
|
+
"activity"
|
|
4247
|
+
]
|
|
4248
|
+
},
|
|
4249
|
+
"configuration": {
|
|
4250
|
+
"type": "object",
|
|
4251
|
+
"properties": {
|
|
4252
|
+
"schema": {
|
|
4253
|
+
"type": "string",
|
|
4254
|
+
"example": "submission"
|
|
4255
|
+
},
|
|
4256
|
+
"types": {
|
|
4257
|
+
"type": "array",
|
|
4258
|
+
"items": {
|
|
4259
|
+
"anyOf": [
|
|
4260
|
+
{
|
|
4261
|
+
"type": "string",
|
|
4262
|
+
"enum": [
|
|
4263
|
+
"CreateMeterReading",
|
|
4264
|
+
"UpdateMeterReading",
|
|
4265
|
+
"DocDownloadedFromPortal",
|
|
4266
|
+
"PortalUserResetPassword",
|
|
4267
|
+
"PortalUserResetForgotPassword",
|
|
4268
|
+
"SelfAssignmentFromPortal"
|
|
4269
|
+
]
|
|
4270
|
+
},
|
|
4271
|
+
{
|
|
4272
|
+
"type": "string"
|
|
4273
|
+
}
|
|
4274
|
+
]
|
|
4275
|
+
}
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
},
|
|
4280
|
+
"required": [
|
|
4281
|
+
"type",
|
|
4282
|
+
"configuration"
|
|
4283
|
+
]
|
|
4284
|
+
}
|
|
4285
|
+
]
|
|
4286
|
+
},
|
|
4287
|
+
"EntityOperation": {
|
|
4288
|
+
"type": "string",
|
|
4289
|
+
"nullable": true,
|
|
4290
|
+
"enum": [
|
|
4291
|
+
"createEntity",
|
|
4292
|
+
"updateEntity",
|
|
4293
|
+
"deleteEntity",
|
|
4294
|
+
"softDeleteEntity",
|
|
4295
|
+
"restoreEntity"
|
|
4296
|
+
]
|
|
4297
|
+
},
|
|
4298
|
+
"EntitySearchFilter": {
|
|
4299
|
+
"type": "array",
|
|
4300
|
+
"description": "A subset of simplified Elasticsearch query clauses. The default operator is a logical AND. Use nested $and, $or, $not to combine filters using different logical operators.",
|
|
4301
|
+
"items": {
|
|
4302
|
+
"type": "object",
|
|
4303
|
+
"minProperties": 1,
|
|
4304
|
+
"maxProperties": 1,
|
|
4305
|
+
"properties": {
|
|
4306
|
+
"term": {
|
|
4307
|
+
"description": "Returns documents that contain an exact term in a provided field.\n\nTo return a document, the query term must exactly match the queried field's value, including whitespace and capitalization.\n\nYou likely DO NOT want to use this filter on text fields and want to target its .keyword instead.\n",
|
|
4308
|
+
"externalDocs": {
|
|
4309
|
+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html"
|
|
4310
|
+
},
|
|
4311
|
+
"type": "object",
|
|
4312
|
+
"minProperties": 1,
|
|
4313
|
+
"maxProperties": 1,
|
|
4314
|
+
"additionalProperties": {
|
|
4315
|
+
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
4316
|
+
},
|
|
4317
|
+
"example": {
|
|
4318
|
+
"_schema": "contact"
|
|
4319
|
+
}
|
|
4320
|
+
},
|
|
4321
|
+
"terms": {
|
|
4322
|
+
"description": "Returns documents that contain one of the exact terms in a provided field. See term filter for more info.",
|
|
4323
|
+
"externalDocs": {
|
|
4324
|
+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html"
|
|
4325
|
+
},
|
|
4326
|
+
"type": "object",
|
|
4327
|
+
"minProperties": 1,
|
|
4328
|
+
"maxProperties": 1,
|
|
4329
|
+
"additionalProperties": {
|
|
4330
|
+
"type": "array",
|
|
4331
|
+
"items": {
|
|
4332
|
+
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
4333
|
+
}
|
|
4334
|
+
},
|
|
4335
|
+
"example": {
|
|
4336
|
+
"status": [
|
|
4337
|
+
"active"
|
|
4338
|
+
]
|
|
4339
|
+
}
|
|
4340
|
+
},
|
|
4341
|
+
"ids": {
|
|
4342
|
+
"description": "Returns documents based on their IDs.",
|
|
4343
|
+
"externalDocs": {
|
|
4344
|
+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html"
|
|
4345
|
+
},
|
|
4346
|
+
"type": "object",
|
|
4347
|
+
"properties": {
|
|
4348
|
+
"values": {
|
|
4349
|
+
"type": "array",
|
|
4350
|
+
"items": {
|
|
4351
|
+
"type": "string"
|
|
4352
|
+
}
|
|
4353
|
+
}
|
|
4354
|
+
},
|
|
4355
|
+
"example": {
|
|
4356
|
+
"values": [
|
|
4357
|
+
"550e8400-e29b-41d4-a716-446655440000"
|
|
4358
|
+
]
|
|
4359
|
+
}
|
|
4360
|
+
},
|
|
4361
|
+
"range": {
|
|
4362
|
+
"description": "Returns documents with fields that have terms within a certain range.",
|
|
4363
|
+
"externalDocs": {
|
|
4364
|
+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html"
|
|
4365
|
+
},
|
|
4366
|
+
"type": "object",
|
|
4367
|
+
"minProperties": 1,
|
|
4368
|
+
"maxProperties": 1,
|
|
4369
|
+
"additionalProperties": {
|
|
4370
|
+
"type": "object",
|
|
4371
|
+
"properties": {
|
|
4372
|
+
"gt": {
|
|
4373
|
+
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
4374
|
+
},
|
|
4375
|
+
"gte": {
|
|
4376
|
+
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
4377
|
+
},
|
|
4378
|
+
"lt": {
|
|
4379
|
+
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
4380
|
+
},
|
|
4381
|
+
"lte": {
|
|
4382
|
+
"$ref": "#/components/schemas/EntitySearchFilterValue"
|
|
4383
|
+
},
|
|
4384
|
+
"format": {
|
|
4385
|
+
"type": "string",
|
|
4386
|
+
"description": "The date format used to parse date values."
|
|
4387
|
+
},
|
|
4388
|
+
"relation": {
|
|
4389
|
+
"type": "string",
|
|
4390
|
+
"enum": [
|
|
4391
|
+
"INTERSECTS",
|
|
4392
|
+
"CONTAINS",
|
|
4393
|
+
"WITHIN"
|
|
4394
|
+
],
|
|
4395
|
+
"description": "Indicates how the range query matches values for range fields."
|
|
4396
|
+
},
|
|
4397
|
+
"time_zone": {
|
|
4398
|
+
"type": "string",
|
|
4399
|
+
"description": "Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC."
|
|
4400
|
+
}
|
|
4401
|
+
}
|
|
4402
|
+
},
|
|
4403
|
+
"example": {
|
|
4404
|
+
"_created_at": {
|
|
4405
|
+
"gte": "2021-01-01T00:00:00.000Z",
|
|
4406
|
+
"lte": "2021-01-31T23:59:59.999Z"
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4409
|
+
},
|
|
4410
|
+
"exists": {
|
|
4411
|
+
"description": "Returns documents that have a value in the specified field.",
|
|
4412
|
+
"externalDocs": {
|
|
4413
|
+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html"
|
|
4414
|
+
},
|
|
4415
|
+
"type": "object",
|
|
4416
|
+
"properties": {
|
|
4417
|
+
"field": {
|
|
4418
|
+
"type": "string"
|
|
4419
|
+
}
|
|
4420
|
+
},
|
|
4421
|
+
"required": [
|
|
4422
|
+
"field"
|
|
4423
|
+
],
|
|
4424
|
+
"example": {
|
|
4425
|
+
"field": "_tags"
|
|
4426
|
+
}
|
|
4427
|
+
},
|
|
4428
|
+
"$and": {
|
|
4429
|
+
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
4430
|
+
},
|
|
4431
|
+
"$or": {
|
|
4432
|
+
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
4433
|
+
},
|
|
4434
|
+
"$not": {
|
|
4435
|
+
"$ref": "#/components/schemas/EntitySearchFilter"
|
|
4436
|
+
}
|
|
4437
|
+
}
|
|
4438
|
+
},
|
|
4439
|
+
"example": [
|
|
4440
|
+
{
|
|
4441
|
+
"term": {
|
|
4442
|
+
"_schema": "contact"
|
|
4443
|
+
}
|
|
4444
|
+
},
|
|
4445
|
+
{
|
|
4446
|
+
"terms": {
|
|
4447
|
+
"status": [
|
|
4448
|
+
"active"
|
|
4449
|
+
]
|
|
4450
|
+
}
|
|
4451
|
+
}
|
|
4452
|
+
]
|
|
4453
|
+
},
|
|
4454
|
+
"EntitySearchFilterValue": {
|
|
4455
|
+
"description": "A filter field value.",
|
|
4456
|
+
"oneOf": [
|
|
4457
|
+
{
|
|
4458
|
+
"type": "string",
|
|
4459
|
+
"nullable": true
|
|
4460
|
+
},
|
|
4461
|
+
{
|
|
4462
|
+
"type": "number"
|
|
4463
|
+
},
|
|
4464
|
+
{
|
|
4465
|
+
"type": "boolean"
|
|
4466
|
+
}
|
|
4467
|
+
]
|
|
4468
|
+
},
|
|
4469
|
+
"EntityManualTrigger": {
|
|
4470
|
+
"allOf": [
|
|
4471
|
+
{
|
|
4472
|
+
"$ref": "#/components/schemas/AutomationTrigger"
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
"type": "object",
|
|
4476
|
+
"properties": {
|
|
4477
|
+
"type": {
|
|
4478
|
+
"type": "string",
|
|
4479
|
+
"enum": [
|
|
4480
|
+
"entity_manual"
|
|
4481
|
+
]
|
|
4482
|
+
},
|
|
4483
|
+
"configuration": {
|
|
4484
|
+
"type": "object",
|
|
4485
|
+
"properties": {
|
|
4486
|
+
"schema": {
|
|
4487
|
+
"description": "Which entity type can this automation be triggered from",
|
|
4488
|
+
"type": "string",
|
|
4489
|
+
"example": "submission"
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
},
|
|
4494
|
+
"required": [
|
|
4495
|
+
"type",
|
|
4496
|
+
"configuration"
|
|
4497
|
+
]
|
|
4498
|
+
}
|
|
4499
|
+
]
|
|
4500
|
+
},
|
|
4501
|
+
"TriggerCondition": {
|
|
4502
|
+
"type": "object",
|
|
4503
|
+
"properties": {
|
|
4504
|
+
"source": {
|
|
4505
|
+
"type": "string"
|
|
4506
|
+
},
|
|
4507
|
+
"comparison": {
|
|
4508
|
+
"$ref": "#/components/schemas/Comparison"
|
|
4509
|
+
},
|
|
4510
|
+
"value": {
|
|
4511
|
+
"oneOf": [
|
|
4512
|
+
{
|
|
4513
|
+
"type": "string"
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
"type": "number"
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
"type": "array",
|
|
4520
|
+
"items": {
|
|
4521
|
+
"type": "string"
|
|
4522
|
+
}
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
"type": "array",
|
|
4526
|
+
"items": {
|
|
4527
|
+
"type": "number"
|
|
4528
|
+
}
|
|
4529
|
+
}
|
|
4530
|
+
]
|
|
4531
|
+
}
|
|
4532
|
+
},
|
|
4533
|
+
"required": [
|
|
4534
|
+
"source",
|
|
4535
|
+
"comparison"
|
|
4536
|
+
],
|
|
4537
|
+
"example": {
|
|
4538
|
+
"source": "billing_contact.email",
|
|
4539
|
+
"comparison": "exists"
|
|
4540
|
+
}
|
|
4541
|
+
},
|
|
4542
|
+
"Comparison": {
|
|
4543
|
+
"type": "string",
|
|
4544
|
+
"enum": [
|
|
4545
|
+
"equals",
|
|
4546
|
+
"any_of",
|
|
4547
|
+
"not_empty",
|
|
4548
|
+
"is_empty"
|
|
4549
|
+
]
|
|
4550
|
+
},
|
|
4551
|
+
"FilterConditionOnEvent": {
|
|
4552
|
+
"anyOf": [
|
|
4553
|
+
{
|
|
4554
|
+
"$ref": "#/components/schemas/OrCondition"
|
|
4555
|
+
},
|
|
4556
|
+
{
|
|
4557
|
+
"type": "object",
|
|
4558
|
+
"description": "- Filter on entity payload that is modified. If not specified, entire entity be matched on execution.\n Example:\n ```\n {\n \"operation\": {\n \"payload\": {\n \"_schema\": [\"contact\"]\n \"address\": {\n \"country\": [\"Germany\"]\n }\n age: [ { \"numeric\": [ \">\", 25, \"<=\", 35 ] } ]\n }\n }\n }\n",
|
|
4559
|
+
"additionalProperties": {
|
|
4560
|
+
"type": "array",
|
|
4561
|
+
"items": {
|
|
4562
|
+
"oneOf": [
|
|
4563
|
+
{
|
|
4564
|
+
"type": "string"
|
|
4565
|
+
},
|
|
4566
|
+
{
|
|
4567
|
+
"$ref": "#/components/schemas/EqualsIgnoreCaseCondition"
|
|
4568
|
+
},
|
|
4569
|
+
{
|
|
4570
|
+
"$ref": "#/components/schemas/AnythingButCondition"
|
|
4571
|
+
},
|
|
4572
|
+
{
|
|
4573
|
+
"$ref": "#/components/schemas/NumericCondition"
|
|
4574
|
+
},
|
|
4575
|
+
{
|
|
4576
|
+
"$ref": "#/components/schemas/ExistsCondition"
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
"$ref": "#/components/schemas/PrefixCondition"
|
|
4580
|
+
},
|
|
4581
|
+
{
|
|
4582
|
+
"$ref": "#/components/schemas/SuffixCondition"
|
|
4583
|
+
},
|
|
4584
|
+
{
|
|
4585
|
+
"$ref": "#/components/schemas/WildcardCondition"
|
|
4586
|
+
}
|
|
4587
|
+
]
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
4590
|
+
}
|
|
4591
|
+
]
|
|
4592
|
+
},
|
|
4593
|
+
"EqualsIgnoreCaseCondition": {
|
|
4594
|
+
"type": "object",
|
|
4595
|
+
"properties": {
|
|
4596
|
+
"equals-ignore-case": {
|
|
4597
|
+
"type": "string"
|
|
4598
|
+
}
|
|
4599
|
+
}
|
|
4600
|
+
},
|
|
4601
|
+
"AnythingButCondition": {
|
|
4602
|
+
"type": "object",
|
|
4603
|
+
"properties": {
|
|
4604
|
+
"anything-but": {
|
|
4605
|
+
"type": "array",
|
|
4606
|
+
"items": {
|
|
4607
|
+
"type": "string"
|
|
4608
|
+
}
|
|
4609
|
+
}
|
|
4610
|
+
}
|
|
4611
|
+
},
|
|
4612
|
+
"NumericCondition": {
|
|
4613
|
+
"type": "object",
|
|
4614
|
+
"properties": {
|
|
4615
|
+
"numeric": {
|
|
4616
|
+
"type": "array",
|
|
4617
|
+
"items": {
|
|
4618
|
+
"oneOf": [
|
|
4619
|
+
{
|
|
4620
|
+
"type": "string"
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
"type": "integer"
|
|
4624
|
+
}
|
|
4625
|
+
]
|
|
4626
|
+
}
|
|
4627
|
+
}
|
|
4628
|
+
}
|
|
4629
|
+
},
|
|
4630
|
+
"ExistsCondition": {
|
|
4631
|
+
"type": "object",
|
|
4632
|
+
"properties": {
|
|
4633
|
+
"exists": {
|
|
4634
|
+
"type": "boolean"
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
"PrefixCondition": {
|
|
4639
|
+
"type": "object",
|
|
4640
|
+
"properties": {
|
|
4641
|
+
"prefix": {
|
|
4642
|
+
"type": "string"
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
},
|
|
4646
|
+
"SuffixCondition": {
|
|
4647
|
+
"type": "object",
|
|
4648
|
+
"properties": {
|
|
4649
|
+
"suffix": {
|
|
4650
|
+
"type": "string"
|
|
4651
|
+
}
|
|
4652
|
+
}
|
|
4653
|
+
},
|
|
4654
|
+
"WildcardCondition": {
|
|
4655
|
+
"type": "object",
|
|
4656
|
+
"properties": {
|
|
4657
|
+
"wildcard": {
|
|
4658
|
+
"type": "string"
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4661
|
+
},
|
|
4662
|
+
"OrCondition": {
|
|
4663
|
+
"type": "object",
|
|
4664
|
+
"properties": {
|
|
4665
|
+
"$or": {
|
|
4666
|
+
"type": "array",
|
|
4667
|
+
"items": {
|
|
4668
|
+
"$ref": "#/components/schemas/FilterConditionOnEvent"
|
|
4669
|
+
}
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4672
|
+
},
|
|
4673
|
+
"DiffAdded": {
|
|
4674
|
+
"$ref": "#/components/schemas/FilterConditionOnEvent"
|
|
4675
|
+
},
|
|
4676
|
+
"DiffUpdated": {
|
|
4677
|
+
"$ref": "#/components/schemas/FilterConditionOnEvent"
|
|
4678
|
+
},
|
|
4679
|
+
"DiffDeleted": {
|
|
4680
|
+
"$ref": "#/components/schemas/FilterConditionOnEvent"
|
|
4681
|
+
},
|
|
4682
|
+
"OrConditionForDiff": {
|
|
4683
|
+
"type": "object",
|
|
4684
|
+
"properties": {
|
|
4685
|
+
"$or": {
|
|
4686
|
+
"type": "array",
|
|
4687
|
+
"items": {
|
|
4688
|
+
"anyOf": [
|
|
4689
|
+
{
|
|
4690
|
+
"$ref": "#/components/schemas/DiffAdded"
|
|
4691
|
+
},
|
|
4692
|
+
{
|
|
4693
|
+
"$ref": "#/components/schemas/DiffUpdated"
|
|
4694
|
+
},
|
|
4695
|
+
{
|
|
4696
|
+
"$ref": "#/components/schemas/DiffDeleted"
|
|
4697
|
+
}
|
|
4698
|
+
]
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
}
|
|
4702
|
+
},
|
|
4703
|
+
"EntityItemSnapshot": {
|
|
4704
|
+
"type": "object",
|
|
4705
|
+
"properties": {
|
|
4706
|
+
"_id": {
|
|
4707
|
+
"$ref": "#/components/schemas/EntityId"
|
|
4708
|
+
},
|
|
4709
|
+
"_title": {
|
|
4710
|
+
"type": "string"
|
|
4711
|
+
},
|
|
4712
|
+
"_org": {
|
|
4713
|
+
"type": "string"
|
|
4714
|
+
},
|
|
4715
|
+
"_schema": {
|
|
4716
|
+
"type": "string"
|
|
4717
|
+
},
|
|
4718
|
+
"_tags": {
|
|
4719
|
+
"type": "array",
|
|
4720
|
+
"items": {
|
|
4721
|
+
"type": "string"
|
|
4722
|
+
}
|
|
4723
|
+
},
|
|
4724
|
+
"_created_at": {
|
|
4725
|
+
"type": "string",
|
|
4726
|
+
"format": "date-time"
|
|
4727
|
+
},
|
|
4728
|
+
"_updated_at": {
|
|
4729
|
+
"type": "string",
|
|
4730
|
+
"format": "date-time"
|
|
4731
|
+
}
|
|
4732
|
+
},
|
|
4733
|
+
"additionalProperties": true,
|
|
4734
|
+
"required": [
|
|
4735
|
+
"_id",
|
|
4736
|
+
"_title",
|
|
4737
|
+
"_org",
|
|
4738
|
+
"_schema",
|
|
4739
|
+
"_created_at",
|
|
4740
|
+
"_updated_at"
|
|
4741
|
+
]
|
|
4742
|
+
},
|
|
4743
|
+
"RetryReq": {
|
|
4744
|
+
"type": "object",
|
|
4745
|
+
"properties": {
|
|
4746
|
+
"condition_id": {
|
|
4747
|
+
"type": "string",
|
|
4748
|
+
"description": "The condition id to retry when retry strategy is RETRY_ALL_PARENT_CONDITION_ACTIONS"
|
|
4749
|
+
},
|
|
4750
|
+
"retry_strategy": {
|
|
4751
|
+
"$ref": "#/components/schemas/RetryStrategy"
|
|
4752
|
+
}
|
|
4753
|
+
}
|
|
4754
|
+
},
|
|
4755
|
+
"ResumeToken": {
|
|
4756
|
+
"type": "string",
|
|
4757
|
+
"description": "A unique token to resume a paused automation execution",
|
|
4758
|
+
"example": "eyJraWQiOiJrZXkifQ=="
|
|
4759
|
+
},
|
|
4760
|
+
"ResumeReq": {
|
|
4761
|
+
"type": "object",
|
|
4762
|
+
"additionalProperties": false,
|
|
4763
|
+
"properties": {
|
|
4764
|
+
"resume_token": {
|
|
4765
|
+
"$ref": "#/components/schemas/ResumeToken"
|
|
4766
|
+
}
|
|
4767
|
+
},
|
|
4768
|
+
"required": [
|
|
4769
|
+
"resume_token"
|
|
4770
|
+
]
|
|
4771
|
+
},
|
|
4772
|
+
"ResumeResp": {
|
|
4773
|
+
"type": "object",
|
|
4774
|
+
"properties": {
|
|
4775
|
+
"execution": {
|
|
4776
|
+
"$ref": "#/components/schemas/AutomationExecution"
|
|
4777
|
+
},
|
|
4778
|
+
"resumedAction": {
|
|
4779
|
+
"$ref": "#/components/schemas/AnyAction"
|
|
4780
|
+
}
|
|
4781
|
+
},
|
|
4782
|
+
"required": [
|
|
4783
|
+
"execution",
|
|
4784
|
+
"resumedAction"
|
|
4785
|
+
]
|
|
4786
|
+
},
|
|
4787
|
+
"ErrorObject": {
|
|
4788
|
+
"type": "object",
|
|
4789
|
+
"properties": {
|
|
4790
|
+
"status": {
|
|
4791
|
+
"type": "integer",
|
|
4792
|
+
"description": "The HTTP status code of the error",
|
|
4793
|
+
"example": 400
|
|
4794
|
+
},
|
|
4795
|
+
"error": {
|
|
4796
|
+
"type": "string",
|
|
4797
|
+
"description": "The error message"
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
}
|
|
4801
|
+
},
|
|
4802
|
+
"responses": {
|
|
4803
|
+
"NotFoundError": {
|
|
4804
|
+
"description": "The requested resource was not found",
|
|
4805
|
+
"content": {
|
|
4806
|
+
"application/json": {
|
|
4807
|
+
"schema": {
|
|
4808
|
+
"allOf": [
|
|
4809
|
+
{
|
|
4810
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
"example": {
|
|
4814
|
+
"status": 404,
|
|
4815
|
+
"error": "Not Found"
|
|
4816
|
+
}
|
|
4817
|
+
}
|
|
4818
|
+
]
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
}
|
|
4822
|
+
},
|
|
4823
|
+
"ForbiddenError": {
|
|
4824
|
+
"description": "The requested resource is forbidden",
|
|
4825
|
+
"content": {
|
|
4826
|
+
"application/json": {
|
|
4827
|
+
"schema": {
|
|
4828
|
+
"allOf": [
|
|
4829
|
+
{
|
|
4830
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
"example": {
|
|
4834
|
+
"status": 403,
|
|
4835
|
+
"error": "Forbidden"
|
|
4836
|
+
}
|
|
4837
|
+
}
|
|
4838
|
+
]
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
}
|
|
4843
|
+
}
|
|
4844
|
+
},
|
|
4845
|
+
"servers": [
|
|
4846
|
+
{
|
|
4847
|
+
"url": "https://automation.sls.epilot.io"
|
|
4848
|
+
}
|
|
4849
|
+
]
|
|
4850
|
+
}
|