@epilot/sdk 2.1.0-rc.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/app.json +38 -0
- package/definitions/automation.json +2 -37
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +115 -1
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +279 -42
- package/definitions/data-management.json +10 -0
- package/definitions/email-template.json +25 -3
- package/definitions/entity.json +205 -3
- package/definitions/erp-integration-runtime.json +1 -1
- package/definitions/erp-integration.json +472 -13
- package/definitions/journey.json +257 -12
- package/definitions/kanban.json +630 -78
- package/definitions/organization-runtime.json +1 -1
- package/definitions/organization.json +614 -51
- package/definitions/workflow.json +40 -0
- package/dist/README-VG67PX4R.js +7 -0
- package/dist/README-W4B35MRN.cjs +7 -0
- package/dist/_index-AMVZBT2K.cjs +99 -0
- package/dist/_index-S6LFD3ER.js +99 -0
- package/dist/access-token-6BJDZSFE.cjs +7 -0
- package/dist/access-token-GSQZLDXR.js +7 -0
- package/dist/address-HA4RMRNQ.cjs +7 -0
- package/dist/address-QVJUGMOG.js +7 -0
- package/dist/address-suggestions-74244BAJ.js +7 -0
- package/dist/address-suggestions-IUQMYF27.cjs +7 -0
- package/dist/ai-agents-IZWFEUSH.js +7 -0
- package/dist/ai-agents-PWHKNRCX.cjs +7 -0
- package/dist/apis/access-token.cjs +10 -13
- package/dist/apis/access-token.js +7 -10
- package/dist/apis/address-suggestions.cjs +10 -13
- package/dist/apis/address-suggestions.js +7 -10
- package/dist/apis/address.cjs +10 -13
- package/dist/apis/address.js +7 -10
- package/dist/apis/ai-agents.cjs +10 -13
- package/dist/apis/ai-agents.js +7 -10
- package/dist/apis/app.cjs +10 -13
- package/dist/apis/app.js +7 -10
- package/dist/apis/audit-logs.cjs +10 -13
- package/dist/apis/audit-logs.js +7 -10
- package/dist/apis/automation.cjs +10 -13
- package/dist/apis/automation.js +7 -10
- package/dist/apis/billing.cjs +10 -13
- package/dist/apis/billing.js +7 -10
- package/dist/apis/blueprint-manifest.cjs +10 -13
- package/dist/apis/blueprint-manifest.js +7 -10
- package/dist/apis/consent.cjs +10 -13
- package/dist/apis/consent.js +7 -10
- package/dist/apis/customer-portal.cjs +10 -13
- package/dist/apis/customer-portal.js +7 -10
- package/dist/apis/dashboard.cjs +10 -13
- package/dist/apis/dashboard.js +7 -10
- package/dist/apis/data-management.cjs +10 -13
- package/dist/apis/data-management.js +7 -10
- package/dist/apis/deduplication.cjs +10 -13
- package/dist/apis/deduplication.js +7 -10
- package/dist/apis/design.cjs +10 -13
- package/dist/apis/design.js +7 -10
- package/dist/apis/document.cjs +10 -13
- package/dist/apis/document.js +7 -10
- package/dist/apis/email-settings.cjs +10 -13
- package/dist/apis/email-settings.js +7 -10
- package/dist/apis/email-template.cjs +10 -13
- package/dist/apis/email-template.js +7 -10
- package/dist/apis/entity-mapping.cjs +10 -13
- package/dist/apis/entity-mapping.js +7 -10
- package/dist/apis/entity.cjs +10 -13
- package/dist/apis/entity.js +7 -10
- package/dist/apis/environments.cjs +10 -13
- package/dist/apis/environments.js +7 -10
- package/dist/apis/erp-integration.cjs +10 -13
- package/dist/apis/erp-integration.js +7 -10
- package/dist/apis/event-catalog.cjs +10 -13
- package/dist/apis/event-catalog.js +7 -10
- package/dist/apis/file.cjs +10 -13
- package/dist/apis/file.js +7 -10
- package/dist/apis/iban.cjs +10 -13
- package/dist/apis/iban.js +7 -10
- package/dist/apis/journey.cjs +10 -13
- package/dist/apis/journey.js +7 -10
- package/dist/apis/kanban.cjs +10 -13
- package/dist/apis/kanban.js +7 -10
- package/dist/apis/message.cjs +10 -13
- package/dist/apis/message.js +7 -10
- package/dist/apis/metering.cjs +10 -13
- package/dist/apis/metering.js +7 -10
- package/dist/apis/notes.cjs +10 -13
- package/dist/apis/notes.js +7 -10
- package/dist/apis/notification.cjs +10 -13
- package/dist/apis/notification.js +7 -10
- package/dist/apis/organization.cjs +10 -13
- package/dist/apis/organization.d.cts +2 -2
- package/dist/apis/organization.d.ts +2 -2
- package/dist/apis/organization.js +7 -10
- package/dist/apis/partner-directory.cjs +10 -13
- package/dist/apis/partner-directory.js +7 -10
- package/dist/apis/permissions.cjs +10 -13
- package/dist/apis/permissions.js +7 -10
- package/dist/apis/pricing-tier.cjs +10 -13
- package/dist/apis/pricing-tier.js +7 -10
- package/dist/apis/pricing.cjs +10 -13
- package/dist/apis/pricing.js +7 -10
- package/dist/apis/purpose.cjs +10 -13
- package/dist/apis/purpose.js +7 -10
- package/dist/apis/sandbox.cjs +10 -13
- package/dist/apis/sandbox.js +7 -10
- package/dist/apis/submission.cjs +10 -13
- package/dist/apis/submission.js +7 -10
- package/dist/apis/targeting.cjs +10 -13
- package/dist/apis/targeting.js +7 -10
- package/dist/apis/template-variables.cjs +10 -13
- package/dist/apis/template-variables.js +7 -10
- package/dist/apis/user.cjs +10 -13
- package/dist/apis/user.js +7 -10
- package/dist/apis/validation-rules.cjs +10 -13
- package/dist/apis/validation-rules.js +7 -10
- package/dist/apis/webhooks.cjs +10 -13
- package/dist/apis/webhooks.js +7 -10
- package/dist/apis/workflow-definition.cjs +10 -13
- package/dist/apis/workflow-definition.js +7 -10
- package/dist/apis/workflow.cjs +10 -13
- package/dist/apis/workflow.js +7 -10
- package/dist/app-IKHWU222.cjs +7 -0
- package/dist/app-VLM3SWKA.js +7 -0
- package/dist/audit-logs-5VXHOQ7S.js +7 -0
- package/dist/audit-logs-D2LFUA2R.cjs +7 -0
- package/dist/automation-3HGCK725.cjs +7 -0
- package/dist/automation-72VGEJCY.js +7 -0
- package/dist/billing-DUWDISHP.cjs +7 -0
- package/dist/billing-IPALEAG2.js +7 -0
- package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
- package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
- package/dist/chunk-2HOJWFQ4.js +14 -0
- package/dist/chunk-372VUPHN.js +14 -0
- package/dist/chunk-3HJEWWPS.cjs +14 -0
- package/dist/chunk-3N67SSL3.js +14 -0
- package/dist/chunk-3XEP56SV.cjs +204 -0
- package/dist/chunk-3ZZ57K3S.cjs +14 -0
- package/dist/chunk-4SWC43JO.cjs +14 -0
- package/dist/chunk-4VFQTSJQ.js +14 -0
- package/dist/chunk-57QIBYDN.js +14 -0
- package/dist/chunk-5SNJAD6F.cjs +14 -0
- package/dist/chunk-73H6TVKN.js +14 -0
- package/dist/chunk-A6JOROUC.cjs +14 -0
- package/dist/chunk-AJKH25H2.cjs +14 -0
- package/dist/chunk-ARWMTXJV.cjs +14 -0
- package/dist/chunk-B3ZGAG7B.js +14 -0
- package/dist/chunk-BH5ZXK4J.cjs +14 -0
- package/dist/chunk-BWFXLUK5.cjs +14 -0
- package/dist/chunk-C6UTZEHH.js +14 -0
- package/dist/chunk-CPKBR34V.js +14 -0
- package/dist/chunk-CWSHYFVZ.js +14 -0
- package/dist/chunk-DJKSULPK.js +14 -0
- package/dist/chunk-DNJ54L2G.js +14 -0
- package/dist/chunk-DY2D2IW5.cjs +14 -0
- package/dist/chunk-E26ZO7QM.cjs +14 -0
- package/dist/chunk-EBCHCYUO.js +14 -0
- package/dist/chunk-EPAIOB5U.cjs +14 -0
- package/dist/chunk-EQZMT2HF.cjs +14 -0
- package/dist/chunk-F376L6PP.cjs +14 -0
- package/dist/chunk-F472YLJG.cjs +14 -0
- package/dist/chunk-FXOX3X7E.cjs +14 -0
- package/dist/chunk-G2REP2VZ.cjs +14 -0
- package/dist/chunk-GLO477NZ.js +14 -0
- package/dist/chunk-H4VSK4KF.js +14 -0
- package/dist/chunk-HPSGM6QP.js +14 -0
- package/dist/chunk-HPYHWTTA.cjs +14 -0
- package/dist/chunk-IH4CMOML.js +14 -0
- package/dist/chunk-IMT3IE5M.cjs +14 -0
- package/dist/chunk-IP2WWEOU.js +14 -0
- package/dist/chunk-IS2VB342.js +14 -0
- package/dist/chunk-ITX53XAZ.js +14 -0
- package/dist/chunk-JXBXDTFG.cjs +14 -0
- package/dist/chunk-K62XK7KU.js +14 -0
- package/dist/chunk-KA3TGFJP.js +14 -0
- package/dist/chunk-KBOVBUBM.js +14 -0
- package/dist/chunk-KPGC2D6E.js +14 -0
- package/dist/chunk-KSXTBGIV.js +14 -0
- package/dist/chunk-LCIJ4TJ4.cjs +14 -0
- package/dist/chunk-LQOLYXGQ.cjs +14 -0
- package/dist/chunk-LSIWCIQV.js +14 -0
- package/dist/chunk-MHNSZ4HE.js +14 -0
- package/dist/chunk-MKX4CKAB.cjs +14 -0
- package/dist/chunk-MRTAFRO7.js +14 -0
- package/dist/chunk-MRZ7LGKZ.js +14 -0
- package/dist/chunk-MSASBR2Y.js +14 -0
- package/dist/chunk-NAWLLC3T.cjs +14 -0
- package/dist/chunk-NJK5F5TF.cjs +21 -0
- package/dist/chunk-NLSZVGHK.cjs +14 -0
- package/dist/chunk-O4LRVGOY.js +14 -0
- package/dist/chunk-OG2DMGU6.cjs +14 -0
- package/dist/chunk-OGQKJTXF.js +14 -0
- package/dist/chunk-PETLAONH.js +14 -0
- package/dist/chunk-PVSS2WPM.cjs +14 -0
- package/dist/chunk-PXITFTJA.cjs +14 -0
- package/dist/chunk-QDVPPRWI.cjs +14 -0
- package/dist/chunk-QKERXNJJ.cjs +14 -0
- package/dist/chunk-QLML3IP5.cjs +14 -0
- package/dist/chunk-QVAJ5JP4.js +14 -0
- package/dist/chunk-RD7E4OSJ.cjs +14 -0
- package/dist/chunk-RWSA3LXE.cjs +14 -0
- package/dist/chunk-RXSS67VI.cjs +14 -0
- package/dist/chunk-S3ZNESMC.cjs +14 -0
- package/dist/chunk-S7NDMDRX.js +14 -0
- package/dist/chunk-SK3VYIZ6.cjs +14 -0
- package/dist/chunk-SMGHAG5C.cjs +14 -0
- package/dist/chunk-T46LODOF.js +14 -0
- package/dist/chunk-TIJWJVKZ.js +14 -0
- package/dist/chunk-TLWCYLNA.js +14 -0
- package/dist/chunk-TRJLYZHD.js +14 -0
- package/dist/chunk-UKKJMCNH.js +14 -0
- package/dist/chunk-ULBEEHG4.js +204 -0
- package/dist/chunk-VGTUK3QD.cjs +14 -0
- package/dist/chunk-VQ7R36AC.js +14 -0
- package/dist/chunk-VVQB5W7U.cjs +14 -0
- package/dist/chunk-VVVATFGK.cjs +14 -0
- package/dist/chunk-WMTYO5OX.cjs +14 -0
- package/dist/chunk-WOSSSFXB.js +14 -0
- package/dist/chunk-WOXXNKTE.js +14 -0
- package/dist/chunk-XKI2OAYV.cjs +14 -0
- package/dist/chunk-XR4QF6KQ.cjs +14 -0
- package/dist/chunk-XYHTQ523.cjs +14 -0
- package/dist/chunk-XZYZLSUO.cjs +14 -0
- package/dist/chunk-YPSWSI3M.js +21 -0
- package/dist/chunk-YYBIU5BQ.js +14 -0
- package/dist/chunk-YZA5WZUS.js +14 -0
- package/dist/chunk-Z4LUE424.cjs +14 -0
- package/dist/chunk-ZV6XYUXS.js +14 -0
- package/dist/consent-CS2ZBZX4.cjs +7 -0
- package/dist/consent-NNYHF2N4.js +7 -0
- package/dist/customer-portal-D3SLPAHZ.js +7 -0
- package/dist/customer-portal-UR3GN4VU.cjs +7 -0
- package/dist/dashboard-UHYR5RTY.cjs +7 -0
- package/dist/dashboard-UTPGXFW5.js +7 -0
- package/dist/data-management-QH2IJ5QV.js +7 -0
- package/dist/data-management-TEFRLGSU.cjs +7 -0
- package/dist/deduplication-ECVAZVVA.cjs +7 -0
- package/dist/deduplication-GYIST22B.js +7 -0
- package/dist/design-KUVXMFFK.cjs +7 -0
- package/dist/design-YKBXRW5C.js +7 -0
- package/dist/document-CY2A2OE7.js +7 -0
- package/dist/document-RYQ7MF6U.cjs +7 -0
- package/dist/email-settings-TQ5GGDYG.js +7 -0
- package/dist/email-settings-TQC34GST.cjs +7 -0
- package/dist/email-template-M2VVL4TI.cjs +7 -0
- package/dist/email-template-WYROV3UG.js +7 -0
- package/dist/entity-FA6PZX6S.js +7 -0
- package/dist/entity-IX5NSHPX.cjs +7 -0
- package/dist/entity-mapping-7J3IAGKQ.js +7 -0
- package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
- package/dist/environments-E3X6NYGX.js +7 -0
- package/dist/environments-P2JS4F5N.cjs +7 -0
- package/dist/erp-integration-EP2XFEH5.js +7 -0
- package/dist/erp-integration-NNV72VFI.cjs +7 -0
- package/dist/event-catalog-C45ISVMP.cjs +7 -0
- package/dist/event-catalog-D7VJ7WRS.js +7 -0
- package/dist/file-UOWBTDIU.cjs +7 -0
- package/dist/file-XSN3NAVZ.js +7 -0
- package/dist/iban-24GHLFDB.cjs +7 -0
- package/dist/iban-LDKYDVQV.js +7 -0
- package/dist/index.cjs +199 -58
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +197 -56
- package/dist/journey-7CKX67M7.js +7 -0
- package/dist/journey-EUZ6MVHG.cjs +7 -0
- package/dist/kanban-CHTH2ZSY.cjs +7 -0
- package/dist/kanban-HI6LL5WY.js +7 -0
- package/dist/message-3XZLJR6R.cjs +7 -0
- package/dist/message-ZNMCS5YH.js +7 -0
- package/dist/metering-DZNZPPY6.cjs +7 -0
- package/dist/metering-KOSCPPKB.js +7 -0
- package/dist/notes-3AO5GXIT.js +7 -0
- package/dist/notes-MPWOQC5J.cjs +7 -0
- package/dist/notification-PZOCUYD5.cjs +7 -0
- package/dist/notification-VWDZRSFZ.js +7 -0
- package/dist/organization-RARYYG2E.cjs +7 -0
- package/dist/organization-ZERPH2IH.js +7 -0
- package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
- package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
- package/dist/partner-directory-2XMPQWWX.js +7 -0
- package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
- package/dist/permissions-4T3GFNB4.js +7 -0
- package/dist/permissions-FGBIJNN7.cjs +7 -0
- package/dist/pricing-4Z4TOETA.cjs +7 -0
- package/dist/pricing-C65DTZSX.js +7 -0
- package/dist/pricing-tier-NI35WOUP.cjs +7 -0
- package/dist/pricing-tier-VUOFK5Q7.js +7 -0
- package/dist/purpose-AKOEUHZ4.cjs +7 -0
- package/dist/purpose-RBRV3AQZ.js +7 -0
- package/dist/sandbox-2KN4X66E.cjs +7 -0
- package/dist/sandbox-L2SOOGGR.js +7 -0
- package/dist/submission-7BISSPO6.js +7 -0
- package/dist/submission-Q24BU4GS.cjs +7 -0
- package/dist/targeting-EYGYZD6M.cjs +7 -0
- package/dist/targeting-GEJTJN5Z.js +7 -0
- package/dist/template-variables-OAYS2E3G.cjs +1148 -0
- package/dist/template-variables-VKDJJZUT.js +1148 -0
- package/dist/user-EIEOI3OG.js +7 -0
- package/dist/user-NJJ7XVKB.cjs +7 -0
- package/dist/validation-rules-P6F5P73P.js +7 -0
- package/dist/validation-rules-VDU3CIZV.cjs +7 -0
- package/dist/webhooks-I7JWU34X.cjs +7 -0
- package/dist/webhooks-WPLEHVPX.js +7 -0
- package/dist/workflow-3LLURW3H.js +7 -0
- package/dist/workflow-RAGQDYXT.cjs +7 -0
- package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
- package/dist/workflow-definition-D24CRCK2.js +7 -0
- package/docs/access-token.md +440 -0
- package/docs/address-suggestions.md +256 -0
- package/docs/address.md +284 -0
- package/docs/ai-agents.md +1891 -0
- package/docs/app.md +3388 -0
- package/docs/audit-logs.md +242 -0
- package/docs/automation.md +4044 -0
- package/docs/billing.md +783 -0
- package/docs/blueprint-manifest.md +3234 -0
- package/docs/consent.md +213 -0
- package/docs/customer-portal.md +11399 -0
- package/docs/dashboard.md +640 -0
- package/docs/data-management.md +883 -0
- package/docs/deduplication.md +135 -0
- package/docs/design.md +1273 -0
- package/docs/document.md +590 -0
- package/docs/email-settings.md +1544 -0
- package/docs/email-template.md +1197 -0
- package/docs/entity-mapping.md +2864 -0
- package/docs/entity.md +9595 -0
- package/docs/environments.md +259 -0
- package/docs/erp-integration.md +4572 -0
- package/docs/event-catalog.md +835 -0
- package/docs/file.md +1453 -0
- package/docs/iban.md +61 -0
- package/docs/journey.md +2268 -0
- package/docs/kanban.md +882 -0
- package/docs/message.md +2122 -0
- package/docs/metering.md +1431 -0
- package/docs/notes.md +670 -0
- package/docs/notification.md +1207 -0
- package/docs/organization.md +733 -0
- package/docs/partner-directory.md +1197 -0
- package/docs/permissions.md +1047 -0
- package/docs/pricing-tier.md +81 -0
- package/docs/pricing.md +5923 -0
- package/docs/purpose.md +283 -0
- package/docs/sandbox.md +389 -0
- package/docs/submission.md +195 -0
- package/docs/targeting.md +959 -0
- package/docs/template-variables.md +1141 -0
- package/docs/user.md +2555 -0
- package/docs/validation-rules.md +1597 -0
- package/docs/webhooks.md +996 -0
- package/docs/workflow-definition.md +3842 -0
- package/docs/workflow.md +4465 -0
- package/package.json +3 -2
- package/dist/chunk-XE25WERA.js +0 -125
- package/dist/chunk-XEQMAKGA.cjs +0 -125
package/docs/webhooks.md
ADDED
|
@@ -0,0 +1,996 @@
|
|
|
1
|
+
# Webhooks
|
|
2
|
+
|
|
3
|
+
- **Base URL:** `https://webhooks.sls.epilot.io`
|
|
4
|
+
- **Full API Docs:** [https://docs.epilot.io/api/webhooks](https://docs.epilot.io/api/webhooks)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { epilot } from '@epilot/sdk'
|
|
10
|
+
|
|
11
|
+
epilot.authorize(() => '<token>')
|
|
12
|
+
const { data } = await epilot.webhooks.getPublicKey(...)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Tree-shakeable import
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { getClient, authorize } from '@epilot/sdk/webhooks'
|
|
19
|
+
|
|
20
|
+
const webhooksClient = getClient()
|
|
21
|
+
authorize(webhooksClient, () => '<token>')
|
|
22
|
+
const { data } = await webhooksClient.getPublicKey(...)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Operations
|
|
26
|
+
|
|
27
|
+
**webhooks**
|
|
28
|
+
- [`getPublicKey`](#getpublickey)
|
|
29
|
+
- [`getConfiguredEvents`](#getconfiguredevents)
|
|
30
|
+
- [`getConfigs`](#getconfigs)
|
|
31
|
+
- [`createConfig`](#createconfig)
|
|
32
|
+
- [`getConfig`](#getconfig)
|
|
33
|
+
- [`updateConfig`](#updateconfig)
|
|
34
|
+
- [`deleteConfig`](#deleteconfig)
|
|
35
|
+
- [`triggerWebhook`](#triggerwebhook)
|
|
36
|
+
- [`batchReplayEvents`](#batchreplayevents)
|
|
37
|
+
- [`getEventById`](#geteventbyid)
|
|
38
|
+
- [`replayEvent`](#replayevent)
|
|
39
|
+
- [`getWebhookExample`](#getwebhookexample)
|
|
40
|
+
|
|
41
|
+
**Events**
|
|
42
|
+
- [`getWebhookEventsV2`](#getwebhookeventsv2)
|
|
43
|
+
|
|
44
|
+
**Schemas**
|
|
45
|
+
- [`PublicKeyResponse`](#publickeyresponse)
|
|
46
|
+
- [`SearchOptions`](#searchoptions)
|
|
47
|
+
- [`EventListResponse`](#eventlistresponse)
|
|
48
|
+
- [`HttpMethod`](#httpmethod)
|
|
49
|
+
- [`AuthType`](#authtype)
|
|
50
|
+
- [`Filter`](#filter)
|
|
51
|
+
- [`Auth`](#auth)
|
|
52
|
+
- [`BasicAuthConfig`](#basicauthconfig)
|
|
53
|
+
- [`OAuthConfig`](#oauthconfig)
|
|
54
|
+
- [`ApiKeyConfig`](#apikeyconfig)
|
|
55
|
+
- [`WebhookConfig`](#webhookconfig)
|
|
56
|
+
- [`EventConfigResp`](#eventconfigresp)
|
|
57
|
+
- [`EventConfigEntry`](#eventconfigentry)
|
|
58
|
+
- [`ErrorResp`](#errorresp)
|
|
59
|
+
- [`TriggerWebhookResp`](#triggerwebhookresp)
|
|
60
|
+
- [`PayloadConfiguration`](#payloadconfiguration)
|
|
61
|
+
- [`CustomHeader`](#customheader)
|
|
62
|
+
- [`CustomOAuthParameter`](#customoauthparameter)
|
|
63
|
+
- [`Metadata`](#metadata)
|
|
64
|
+
- [`ExecutionPayload`](#executionpayload)
|
|
65
|
+
- [`WebhookEvent`](#webhookevent)
|
|
66
|
+
- [`ExampleRequest`](#examplerequest)
|
|
67
|
+
- [`ExampleResponse`](#exampleresponse)
|
|
68
|
+
- [`BatchReplayRequest`](#batchreplayrequest)
|
|
69
|
+
|
|
70
|
+
### `getPublicKey`
|
|
71
|
+
|
|
72
|
+
Returns the platform-level Ed25519 public key used to verify
|
|
73
|
+
asymmetric (v1a) webhook signatures. This endpoint is unauthenticated since the public key is not a secret, but the orgId parameter is requ
|
|
74
|
+
|
|
75
|
+
`GET /v1/webhooks/.well-known/public-key`
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
const { data } = await client.getPublicKey({
|
|
79
|
+
orgId: 'example',
|
|
80
|
+
})
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<details>
|
|
84
|
+
<summary>Response</summary>
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"public_key": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----\n",
|
|
89
|
+
"algorithm": "ed25519",
|
|
90
|
+
"issuer": "epilot"
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
</details>
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### `getConfiguredEvents`
|
|
99
|
+
|
|
100
|
+
Retrieve events that can trigger webhooks
|
|
101
|
+
|
|
102
|
+
`GET /v1/webhooks/configured-events`
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
const { data } = await client.getConfiguredEvents()
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
<details>
|
|
109
|
+
<summary>Response</summary>
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
[
|
|
113
|
+
{
|
|
114
|
+
"eventName": "customer_request_created",
|
|
115
|
+
"eventLabel": "Customer Request Created"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
</details>
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
### `getConfigs`
|
|
125
|
+
|
|
126
|
+
Search Webhook Client Configs
|
|
127
|
+
|
|
128
|
+
`GET /v1/webhooks/configs`
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
const { data } = await client.getConfigs({
|
|
132
|
+
eventName: 'example',
|
|
133
|
+
})
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
<details>
|
|
137
|
+
<summary>Response</summary>
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
[
|
|
141
|
+
{
|
|
142
|
+
"eventName": "CustomerRequest_Created",
|
|
143
|
+
"url": "https://my-partner-service.api.com",
|
|
144
|
+
"httpMethod": "POST",
|
|
145
|
+
"enabled": true,
|
|
146
|
+
"auth": {
|
|
147
|
+
"authType": "BASIC",
|
|
148
|
+
"basicAuthConfig": {
|
|
149
|
+
"username": "secretUsername",
|
|
150
|
+
"password": "secret7825@!"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"filter": {
|
|
154
|
+
"keyToFilter": "customer_request.productId",
|
|
155
|
+
"supportedValues": ["2324245", "5253642"]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
</details>
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
### `createConfig`
|
|
166
|
+
|
|
167
|
+
Create Webhook Client Config
|
|
168
|
+
|
|
169
|
+
`POST /v1/webhooks/configs`
|
|
170
|
+
|
|
171
|
+
```ts
|
|
172
|
+
const { data } = await client.createConfig(
|
|
173
|
+
null,
|
|
174
|
+
{
|
|
175
|
+
eventName: 'CustomerRequest_Created',
|
|
176
|
+
url: 'https://my-partner-service.api.com',
|
|
177
|
+
httpMethod: 'POST',
|
|
178
|
+
enabled: true,
|
|
179
|
+
auth: {
|
|
180
|
+
authType: 'BASIC',
|
|
181
|
+
basicAuthConfig: {
|
|
182
|
+
username: 'secretUsername',
|
|
183
|
+
password: 'secret7825@!'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
filter: {
|
|
187
|
+
keyToFilter: 'customer_request.productId',
|
|
188
|
+
supportedValues: ['2324245', '5253642']
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
<details>
|
|
195
|
+
<summary>Response</summary>
|
|
196
|
+
|
|
197
|
+
```json
|
|
198
|
+
{
|
|
199
|
+
"eventName": "CustomerRequest_Created",
|
|
200
|
+
"url": "https://my-partner-service.api.com",
|
|
201
|
+
"httpMethod": "POST",
|
|
202
|
+
"enabled": true,
|
|
203
|
+
"auth": {
|
|
204
|
+
"authType": "BASIC",
|
|
205
|
+
"basicAuthConfig": {
|
|
206
|
+
"username": "secretUsername",
|
|
207
|
+
"password": "secret7825@!"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"filter": {
|
|
211
|
+
"keyToFilter": "customer_request.productId",
|
|
212
|
+
"supportedValues": ["2324245", "5253642"]
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
</details>
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
### `getConfig`
|
|
222
|
+
|
|
223
|
+
Get webhook config by id
|
|
224
|
+
|
|
225
|
+
`GET /v1/webhooks/configs/{configId}`
|
|
226
|
+
|
|
227
|
+
```ts
|
|
228
|
+
const { data } = await client.getConfig({
|
|
229
|
+
configId: 'example',
|
|
230
|
+
})
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
<details>
|
|
234
|
+
<summary>Response</summary>
|
|
235
|
+
|
|
236
|
+
```json
|
|
237
|
+
{
|
|
238
|
+
"eventName": "CustomerRequest_Created",
|
|
239
|
+
"url": "https://my-partner-service.api.com",
|
|
240
|
+
"httpMethod": "POST",
|
|
241
|
+
"enabled": true,
|
|
242
|
+
"auth": {
|
|
243
|
+
"authType": "BASIC",
|
|
244
|
+
"basicAuthConfig": {
|
|
245
|
+
"username": "secretUsername",
|
|
246
|
+
"password": "secret7825@!"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"filter": {
|
|
250
|
+
"keyToFilter": "customer_request.productId",
|
|
251
|
+
"supportedValues": ["2324245", "5253642"]
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
</details>
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
### `updateConfig`
|
|
261
|
+
|
|
262
|
+
Update Webhook Client Config
|
|
263
|
+
|
|
264
|
+
`PUT /v1/webhooks/configs/{configId}`
|
|
265
|
+
|
|
266
|
+
```ts
|
|
267
|
+
const { data } = await client.updateConfig(
|
|
268
|
+
{
|
|
269
|
+
configId: 'example',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
eventName: 'CustomerRequest_Created',
|
|
273
|
+
url: 'https://my-partner-service.api.com',
|
|
274
|
+
httpMethod: 'POST',
|
|
275
|
+
enabled: true,
|
|
276
|
+
auth: {
|
|
277
|
+
authType: 'BASIC',
|
|
278
|
+
basicAuthConfig: {
|
|
279
|
+
username: 'secretUsername',
|
|
280
|
+
password: 'secret7825@!'
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
filter: {
|
|
284
|
+
keyToFilter: 'customer_request.productId',
|
|
285
|
+
supportedValues: ['2324245', '5253642']
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
)
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
<details>
|
|
292
|
+
<summary>Response</summary>
|
|
293
|
+
|
|
294
|
+
```json
|
|
295
|
+
{
|
|
296
|
+
"eventName": "CustomerRequest_Created",
|
|
297
|
+
"url": "https://my-partner-service.api.com",
|
|
298
|
+
"httpMethod": "POST",
|
|
299
|
+
"enabled": true,
|
|
300
|
+
"auth": {
|
|
301
|
+
"authType": "BASIC",
|
|
302
|
+
"basicAuthConfig": {
|
|
303
|
+
"username": "secretUsername",
|
|
304
|
+
"password": "secret7825@!"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"filter": {
|
|
308
|
+
"keyToFilter": "customer_request.productId",
|
|
309
|
+
"supportedValues": ["2324245", "5253642"]
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
</details>
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
### `deleteConfig`
|
|
319
|
+
|
|
320
|
+
Delete Webhook Client Config
|
|
321
|
+
|
|
322
|
+
`DELETE /v1/webhooks/configs/{configId}`
|
|
323
|
+
|
|
324
|
+
```ts
|
|
325
|
+
const { data } = await client.deleteConfig({
|
|
326
|
+
configId: 'example',
|
|
327
|
+
})
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
### `triggerWebhook`
|
|
333
|
+
|
|
334
|
+
triggers a webhook event either async or sync
|
|
335
|
+
|
|
336
|
+
`POST /v1/webhooks/configs/{configId}/trigger`
|
|
337
|
+
|
|
338
|
+
```ts
|
|
339
|
+
const { data } = await client.triggerWebhook(
|
|
340
|
+
{
|
|
341
|
+
sync: true,
|
|
342
|
+
configId: 'example',
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
metadata: {
|
|
346
|
+
action: 'Manual triggered by user with id 123456',
|
|
347
|
+
origin: 'string',
|
|
348
|
+
creation_timestamp: 'string',
|
|
349
|
+
webhook_id: 'string',
|
|
350
|
+
webhook_name: 'string',
|
|
351
|
+
automation_name: 'string',
|
|
352
|
+
organization_id: 'string',
|
|
353
|
+
user_id: 'string',
|
|
354
|
+
correlation_id: 'string',
|
|
355
|
+
execution_id: 'string',
|
|
356
|
+
action_id: 'string'
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
)
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
<details>
|
|
363
|
+
<summary>Response</summary>
|
|
364
|
+
|
|
365
|
+
```json
|
|
366
|
+
{
|
|
367
|
+
"status_code": "string",
|
|
368
|
+
"message": "string",
|
|
369
|
+
"body": {},
|
|
370
|
+
"code": "string",
|
|
371
|
+
"status": "succeeded",
|
|
372
|
+
"start_date": "string",
|
|
373
|
+
"end_date": "string",
|
|
374
|
+
"event_id": "string"
|
|
375
|
+
}
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
</details>
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
### `batchReplayEvents`
|
|
383
|
+
|
|
384
|
+
Replay a batch of webhook events
|
|
385
|
+
|
|
386
|
+
`POST /v1/webhooks/configs/{configId}/events/replay-batch`
|
|
387
|
+
|
|
388
|
+
```ts
|
|
389
|
+
const { data } = await client.batchReplayEvents(
|
|
390
|
+
{
|
|
391
|
+
configId: 'example',
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
eventIds: ['2f1b7cf8-ff55-4359-966f-e56f39a52c94', '48c984bf-466b-470b-b743-d07cea168243']
|
|
395
|
+
},
|
|
396
|
+
)
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
### `getEventById`
|
|
402
|
+
|
|
403
|
+
Get a webhook event by its id
|
|
404
|
+
|
|
405
|
+
`GET /v1/webhooks/configs/{configId}/events/{eventId}`
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
const { data } = await client.getEventById({
|
|
409
|
+
configId: 'example',
|
|
410
|
+
eventId: 'example',
|
|
411
|
+
})
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
<details>
|
|
415
|
+
<summary>Response</summary>
|
|
416
|
+
|
|
417
|
+
```json
|
|
418
|
+
{
|
|
419
|
+
"event_id": "string",
|
|
420
|
+
"org_id": "string",
|
|
421
|
+
"webhook_config_id": "string",
|
|
422
|
+
"url": "string",
|
|
423
|
+
"created_at": "2021-04-27T12:01:13.000Z",
|
|
424
|
+
"event_name": "string",
|
|
425
|
+
"http_response": {
|
|
426
|
+
"status_code": 0,
|
|
427
|
+
"message": "string",
|
|
428
|
+
"body": {},
|
|
429
|
+
"code": "string"
|
|
430
|
+
},
|
|
431
|
+
"metadata": {
|
|
432
|
+
"action": "Manual triggered by user with id 123456",
|
|
433
|
+
"origin": "string",
|
|
434
|
+
"creation_timestamp": "string",
|
|
435
|
+
"webhook_id": "string",
|
|
436
|
+
"webhook_name": "string",
|
|
437
|
+
"automation_name": "string",
|
|
438
|
+
"organization_id": "string",
|
|
439
|
+
"user_id": "string",
|
|
440
|
+
"correlation_id": "string",
|
|
441
|
+
"execution_id": "string",
|
|
442
|
+
"action_id": "string"
|
|
443
|
+
},
|
|
444
|
+
"status": "succeeded",
|
|
445
|
+
"http_method": "GET",
|
|
446
|
+
"payload": "string"
|
|
447
|
+
}
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
</details>
|
|
451
|
+
|
|
452
|
+
---
|
|
453
|
+
|
|
454
|
+
### `replayEvent`
|
|
455
|
+
|
|
456
|
+
Replay a webhook event
|
|
457
|
+
|
|
458
|
+
`POST /v1/webhooks/configs/{configId}/events/{eventId}/replay`
|
|
459
|
+
|
|
460
|
+
```ts
|
|
461
|
+
const { data } = await client.replayEvent({
|
|
462
|
+
configId: 'example',
|
|
463
|
+
eventId: 'example',
|
|
464
|
+
})
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
### `getWebhookExample`
|
|
470
|
+
|
|
471
|
+
Generate an example payload for a webhook configuration based on trigger type
|
|
472
|
+
|
|
473
|
+
`POST /v1/webhooks/configs/{configId}/example`
|
|
474
|
+
|
|
475
|
+
```ts
|
|
476
|
+
const { data } = await client.getWebhookExample(
|
|
477
|
+
{
|
|
478
|
+
configId: 'example',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
automation_id: 'automation_123'
|
|
482
|
+
},
|
|
483
|
+
)
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
<details>
|
|
487
|
+
<summary>Response</summary>
|
|
488
|
+
|
|
489
|
+
```json
|
|
490
|
+
{
|
|
491
|
+
"metadata": {
|
|
492
|
+
"action": "Manual triggered by user with id 123456",
|
|
493
|
+
"origin": "string",
|
|
494
|
+
"creation_timestamp": "string",
|
|
495
|
+
"webhook_id": "string",
|
|
496
|
+
"webhook_name": "string",
|
|
497
|
+
"automation_name": "string",
|
|
498
|
+
"organization_id": "string",
|
|
499
|
+
"user_id": "string",
|
|
500
|
+
"correlation_id": "string",
|
|
501
|
+
"execution_id": "string",
|
|
502
|
+
"action_id": "string"
|
|
503
|
+
},
|
|
504
|
+
"entity": {},
|
|
505
|
+
"relations": [
|
|
506
|
+
{}
|
|
507
|
+
]
|
|
508
|
+
}
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
</details>
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
### `getWebhookEventsV2`
|
|
516
|
+
|
|
517
|
+
List webhook events and filter them by status, timestamp, etc.
|
|
518
|
+
|
|
519
|
+
`POST /v2/webhooks/configs/{configId}/events`
|
|
520
|
+
|
|
521
|
+
```ts
|
|
522
|
+
const { data } = await client.getWebhookEventsV2(
|
|
523
|
+
{
|
|
524
|
+
configId: 'example',
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
limit: 25,
|
|
528
|
+
cursor: {
|
|
529
|
+
created_at: '2025-10-31T12:34:56Z',
|
|
530
|
+
event_id: 'evt_1234567890abcdef'
|
|
531
|
+
},
|
|
532
|
+
timestamp: {
|
|
533
|
+
from: '2025-10-01T00:00:00Z',
|
|
534
|
+
to: '2025-10-31T23:59:59Z'
|
|
535
|
+
},
|
|
536
|
+
event_id: 'evt_1234567890abcdef',
|
|
537
|
+
status: 'succeeded'
|
|
538
|
+
},
|
|
539
|
+
)
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
<details>
|
|
543
|
+
<summary>Response</summary>
|
|
544
|
+
|
|
545
|
+
```json
|
|
546
|
+
{
|
|
547
|
+
"data": [
|
|
548
|
+
{
|
|
549
|
+
"event_id": "string",
|
|
550
|
+
"org_id": "string",
|
|
551
|
+
"webhook_config_id": "string",
|
|
552
|
+
"url": "string",
|
|
553
|
+
"created_at": "2021-04-27T12:01:13.000Z",
|
|
554
|
+
"event_name": "string",
|
|
555
|
+
"http_response": {
|
|
556
|
+
"status_code": 0,
|
|
557
|
+
"message": "string",
|
|
558
|
+
"body": {},
|
|
559
|
+
"code": "string"
|
|
560
|
+
},
|
|
561
|
+
"metadata": {
|
|
562
|
+
"action": "Manual triggered by user with id 123456",
|
|
563
|
+
"origin": "string",
|
|
564
|
+
"creation_timestamp": "string",
|
|
565
|
+
"webhook_id": "string",
|
|
566
|
+
"webhook_name": "string",
|
|
567
|
+
"automation_name": "string",
|
|
568
|
+
"organization_id": "string",
|
|
569
|
+
"user_id": "string",
|
|
570
|
+
"correlation_id": "string",
|
|
571
|
+
"execution_id": "string",
|
|
572
|
+
"action_id": "string"
|
|
573
|
+
},
|
|
574
|
+
"status": "succeeded",
|
|
575
|
+
"http_method": "GET",
|
|
576
|
+
"payload": "string"
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"next_cursor": {
|
|
580
|
+
"created_at": "2025-10-31T12:34:56Z",
|
|
581
|
+
"event_id": "evt_1234567890abcdef"
|
|
582
|
+
},
|
|
583
|
+
"has_more": true
|
|
584
|
+
}
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
</details>
|
|
588
|
+
|
|
589
|
+
---
|
|
590
|
+
|
|
591
|
+
## Schemas
|
|
592
|
+
|
|
593
|
+
### `PublicKeyResponse`
|
|
594
|
+
|
|
595
|
+
```ts
|
|
596
|
+
type PublicKeyResponse = {
|
|
597
|
+
public_key: string
|
|
598
|
+
algorithm: string
|
|
599
|
+
issuer?: string
|
|
600
|
+
}
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
### `SearchOptions`
|
|
604
|
+
|
|
605
|
+
```ts
|
|
606
|
+
type SearchOptions = {
|
|
607
|
+
limit?: number
|
|
608
|
+
cursor?: {
|
|
609
|
+
created_at?: string // date-time
|
|
610
|
+
event_id?: string
|
|
611
|
+
}
|
|
612
|
+
timestamp?: {
|
|
613
|
+
from?: string // date-time
|
|
614
|
+
to?: string // date-time
|
|
615
|
+
}
|
|
616
|
+
event_id?: string
|
|
617
|
+
status?: "succeeded" | "failed"
|
|
618
|
+
}
|
|
619
|
+
```
|
|
620
|
+
|
|
621
|
+
### `EventListResponse`
|
|
622
|
+
|
|
623
|
+
```ts
|
|
624
|
+
type EventListResponse = {
|
|
625
|
+
data?: Array<{
|
|
626
|
+
event_id: string
|
|
627
|
+
org_id: string
|
|
628
|
+
webhook_config_id: string
|
|
629
|
+
url?: string
|
|
630
|
+
created_at?: string
|
|
631
|
+
event_name?: string
|
|
632
|
+
http_response?: {
|
|
633
|
+
status_code?: { ... }
|
|
634
|
+
message?: { ... }
|
|
635
|
+
body?: { ... }
|
|
636
|
+
code?: { ... }
|
|
637
|
+
}
|
|
638
|
+
metadata?: {
|
|
639
|
+
action?: { ... }
|
|
640
|
+
origin?: { ... }
|
|
641
|
+
creation_timestamp?: { ... }
|
|
642
|
+
webhook_id?: { ... }
|
|
643
|
+
webhook_name?: { ... }
|
|
644
|
+
automation_name?: { ... }
|
|
645
|
+
organization_id: { ... }
|
|
646
|
+
user_id?: { ... }
|
|
647
|
+
correlation_id?: { ... }
|
|
648
|
+
execution_id?: { ... }
|
|
649
|
+
action_id?: { ... }
|
|
650
|
+
}
|
|
651
|
+
status?: "succeeded" | "failed" | "in_progress"
|
|
652
|
+
http_method?: "GET" | "POST" | "PUT"
|
|
653
|
+
payload?: string
|
|
654
|
+
}>
|
|
655
|
+
next_cursor?: {
|
|
656
|
+
created_at?: string // date-time
|
|
657
|
+
event_id?: string
|
|
658
|
+
}
|
|
659
|
+
has_more?: boolean
|
|
660
|
+
}
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
### `HttpMethod`
|
|
664
|
+
|
|
665
|
+
```ts
|
|
666
|
+
type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
### `AuthType`
|
|
670
|
+
|
|
671
|
+
```ts
|
|
672
|
+
type AuthType = "BASIC" | "OAUTH_CLIENT_CREDENTIALS" | "API_KEY" | "NONE"
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
### `Filter`
|
|
676
|
+
|
|
677
|
+
```ts
|
|
678
|
+
type Filter = {
|
|
679
|
+
keyToFilter: string
|
|
680
|
+
supportedValues: string[]
|
|
681
|
+
}
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
### `Auth`
|
|
685
|
+
|
|
686
|
+
```ts
|
|
687
|
+
type Auth = {
|
|
688
|
+
authType: "BASIC" | "OAUTH_CLIENT_CREDENTIALS" | "API_KEY" | "NONE"
|
|
689
|
+
basicAuthConfig?: {
|
|
690
|
+
username: string
|
|
691
|
+
password?: string
|
|
692
|
+
passwordIsEnvVar?: boolean
|
|
693
|
+
}
|
|
694
|
+
oauthConfig?: {
|
|
695
|
+
clientId: string
|
|
696
|
+
clientSecret?: string
|
|
697
|
+
clientSecretIsEnvVar?: boolean
|
|
698
|
+
endpoint: string
|
|
699
|
+
httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
|
|
700
|
+
customParameterList?: Array<{
|
|
701
|
+
type: { ... }
|
|
702
|
+
key: { ... }
|
|
703
|
+
value: { ... }
|
|
704
|
+
}>
|
|
705
|
+
}
|
|
706
|
+
apiKeyConfig?: {
|
|
707
|
+
keyName: string
|
|
708
|
+
keyValue?: string
|
|
709
|
+
keyValueIsEnvVar?: boolean
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
### `BasicAuthConfig`
|
|
715
|
+
|
|
716
|
+
To be sent only if authType is BASIC
|
|
717
|
+
|
|
718
|
+
```ts
|
|
719
|
+
type BasicAuthConfig = {
|
|
720
|
+
username: string
|
|
721
|
+
password?: string
|
|
722
|
+
passwordIsEnvVar?: boolean
|
|
723
|
+
}
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
### `OAuthConfig`
|
|
727
|
+
|
|
728
|
+
To be sent only if authType is OAUTH_CLIENT_CREDENTIALS
|
|
729
|
+
|
|
730
|
+
```ts
|
|
731
|
+
type OAuthConfig = {
|
|
732
|
+
clientId: string
|
|
733
|
+
clientSecret?: string
|
|
734
|
+
clientSecretIsEnvVar?: boolean
|
|
735
|
+
endpoint: string
|
|
736
|
+
httpMethod: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
|
|
737
|
+
customParameterList?: Array<{
|
|
738
|
+
type: "body" | "query" | "header"
|
|
739
|
+
key: string
|
|
740
|
+
value: string
|
|
741
|
+
}>
|
|
742
|
+
}
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
### `ApiKeyConfig`
|
|
746
|
+
|
|
747
|
+
To be sent only if authType is API_KEY
|
|
748
|
+
|
|
749
|
+
```ts
|
|
750
|
+
type ApiKeyConfig = {
|
|
751
|
+
keyName: string
|
|
752
|
+
keyValue?: string
|
|
753
|
+
keyValueIsEnvVar?: boolean
|
|
754
|
+
}
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
### `WebhookConfig`
|
|
758
|
+
|
|
759
|
+
```ts
|
|
760
|
+
type WebhookConfig = {
|
|
761
|
+
id?: string
|
|
762
|
+
name: string
|
|
763
|
+
eventName: string
|
|
764
|
+
url?: string
|
|
765
|
+
creationTime?: string
|
|
766
|
+
httpMethod?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
|
|
767
|
+
enabled?: boolean
|
|
768
|
+
auth?: {
|
|
769
|
+
authType: "BASIC" | "OAUTH_CLIENT_CREDENTIALS" | "API_KEY" | "NONE"
|
|
770
|
+
basicAuthConfig?: {
|
|
771
|
+
username: { ... }
|
|
772
|
+
password?: { ... }
|
|
773
|
+
passwordIsEnvVar?: { ... }
|
|
774
|
+
}
|
|
775
|
+
oauthConfig?: {
|
|
776
|
+
clientId: { ... }
|
|
777
|
+
clientSecret?: { ... }
|
|
778
|
+
clientSecretIsEnvVar?: { ... }
|
|
779
|
+
endpoint: { ... }
|
|
780
|
+
httpMethod: { ... }
|
|
781
|
+
customParameterList?: { ... }
|
|
782
|
+
}
|
|
783
|
+
apiKeyConfig?: {
|
|
784
|
+
keyName: { ... }
|
|
785
|
+
keyValue?: { ... }
|
|
786
|
+
keyValueIsEnvVar?: { ... }
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
filter?: {
|
|
790
|
+
keyToFilter: string
|
|
791
|
+
supportedValues: string[]
|
|
792
|
+
}
|
|
793
|
+
payloadConfiguration?: {
|
|
794
|
+
hydrate_entity?: boolean
|
|
795
|
+
include_relations?: boolean
|
|
796
|
+
include_activity?: boolean
|
|
797
|
+
include_changed_attributes?: boolean
|
|
798
|
+
custom_headers?: Record<string, string>
|
|
799
|
+
}
|
|
800
|
+
enableStaticIP?: boolean
|
|
801
|
+
status?: "active" | "inactive" | "incomplete"
|
|
802
|
+
jsonataExpression?: string
|
|
803
|
+
_manifest?: string // uuid[]
|
|
804
|
+
signingSecret?: string
|
|
805
|
+
}
|
|
806
|
+
```
|
|
807
|
+
|
|
808
|
+
### `EventConfigResp`
|
|
809
|
+
|
|
810
|
+
```ts
|
|
811
|
+
type EventConfigResp = Array<{
|
|
812
|
+
eventName?: string
|
|
813
|
+
eventLabel?: string
|
|
814
|
+
}>
|
|
815
|
+
```
|
|
816
|
+
|
|
817
|
+
### `EventConfigEntry`
|
|
818
|
+
|
|
819
|
+
```ts
|
|
820
|
+
type EventConfigEntry = {
|
|
821
|
+
eventName?: string
|
|
822
|
+
eventLabel?: string
|
|
823
|
+
}
|
|
824
|
+
```
|
|
825
|
+
|
|
826
|
+
### `ErrorResp`
|
|
827
|
+
|
|
828
|
+
```ts
|
|
829
|
+
type ErrorResp = {
|
|
830
|
+
message?: string
|
|
831
|
+
}
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
### `TriggerWebhookResp`
|
|
835
|
+
|
|
836
|
+
```ts
|
|
837
|
+
type TriggerWebhookResp = {
|
|
838
|
+
status_code?: string
|
|
839
|
+
message?: string
|
|
840
|
+
body?: object
|
|
841
|
+
code?: string
|
|
842
|
+
status?: "succeeded" | "failed"
|
|
843
|
+
start_date?: string
|
|
844
|
+
end_date?: string
|
|
845
|
+
event_id: string
|
|
846
|
+
}
|
|
847
|
+
```
|
|
848
|
+
|
|
849
|
+
### `PayloadConfiguration`
|
|
850
|
+
|
|
851
|
+
Configuration for the webhook payload
|
|
852
|
+
|
|
853
|
+
```ts
|
|
854
|
+
type PayloadConfiguration = {
|
|
855
|
+
hydrate_entity?: boolean
|
|
856
|
+
include_relations?: boolean
|
|
857
|
+
include_activity?: boolean
|
|
858
|
+
include_changed_attributes?: boolean
|
|
859
|
+
custom_headers?: Record<string, string>
|
|
860
|
+
}
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
### `CustomHeader`
|
|
864
|
+
|
|
865
|
+
Object representing custom headers as key-value pairs.
|
|
866
|
+
|
|
867
|
+
```ts
|
|
868
|
+
type CustomHeader = Record<string, string>
|
|
869
|
+
```
|
|
870
|
+
|
|
871
|
+
### `CustomOAuthParameter`
|
|
872
|
+
|
|
873
|
+
Custom key/value pair of either type body, query or header
|
|
874
|
+
|
|
875
|
+
```ts
|
|
876
|
+
type CustomOAuthParameter = {
|
|
877
|
+
type: "body" | "query" | "header"
|
|
878
|
+
key: string
|
|
879
|
+
value: string
|
|
880
|
+
}
|
|
881
|
+
```
|
|
882
|
+
|
|
883
|
+
### `Metadata`
|
|
884
|
+
|
|
885
|
+
Contains the metadata about the configured event
|
|
886
|
+
|
|
887
|
+
```ts
|
|
888
|
+
type Metadata = {
|
|
889
|
+
action?: string
|
|
890
|
+
origin?: string
|
|
891
|
+
creation_timestamp?: string
|
|
892
|
+
webhook_id?: string
|
|
893
|
+
webhook_name?: string
|
|
894
|
+
automation_name?: string
|
|
895
|
+
organization_id: string
|
|
896
|
+
user_id?: string
|
|
897
|
+
correlation_id?: string
|
|
898
|
+
execution_id?: string
|
|
899
|
+
action_id?: string
|
|
900
|
+
}
|
|
901
|
+
```
|
|
902
|
+
|
|
903
|
+
### `ExecutionPayload`
|
|
904
|
+
|
|
905
|
+
Payload for triggering a webhook
|
|
906
|
+
|
|
907
|
+
```ts
|
|
908
|
+
type ExecutionPayload = {
|
|
909
|
+
metadata: {
|
|
910
|
+
action?: string
|
|
911
|
+
origin?: string
|
|
912
|
+
creation_timestamp?: string
|
|
913
|
+
webhook_id?: string
|
|
914
|
+
webhook_name?: string
|
|
915
|
+
automation_name?: string
|
|
916
|
+
organization_id: string
|
|
917
|
+
user_id?: string
|
|
918
|
+
correlation_id?: string
|
|
919
|
+
execution_id?: string
|
|
920
|
+
action_id?: string
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
```
|
|
924
|
+
|
|
925
|
+
### `WebhookEvent`
|
|
926
|
+
|
|
927
|
+
```ts
|
|
928
|
+
type WebhookEvent = {
|
|
929
|
+
event_id: string
|
|
930
|
+
org_id: string
|
|
931
|
+
webhook_config_id: string
|
|
932
|
+
url?: string
|
|
933
|
+
created_at?: string
|
|
934
|
+
event_name?: string
|
|
935
|
+
http_response?: {
|
|
936
|
+
status_code?: number
|
|
937
|
+
message?: string
|
|
938
|
+
body?: object
|
|
939
|
+
code?: string
|
|
940
|
+
}
|
|
941
|
+
metadata?: {
|
|
942
|
+
action?: string
|
|
943
|
+
origin?: string
|
|
944
|
+
creation_timestamp?: string
|
|
945
|
+
webhook_id?: string
|
|
946
|
+
webhook_name?: string
|
|
947
|
+
automation_name?: string
|
|
948
|
+
organization_id: string
|
|
949
|
+
user_id?: string
|
|
950
|
+
correlation_id?: string
|
|
951
|
+
execution_id?: string
|
|
952
|
+
action_id?: string
|
|
953
|
+
}
|
|
954
|
+
status?: "succeeded" | "failed" | "in_progress"
|
|
955
|
+
http_method?: "GET" | "POST" | "PUT"
|
|
956
|
+
payload?: string
|
|
957
|
+
}
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
### `ExampleRequest`
|
|
961
|
+
|
|
962
|
+
```ts
|
|
963
|
+
type ExampleRequest = {
|
|
964
|
+
automation_id?: string
|
|
965
|
+
}
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
### `ExampleResponse`
|
|
969
|
+
|
|
970
|
+
```ts
|
|
971
|
+
type ExampleResponse = {
|
|
972
|
+
metadata?: {
|
|
973
|
+
action?: string
|
|
974
|
+
origin?: string
|
|
975
|
+
creation_timestamp?: string
|
|
976
|
+
webhook_id?: string
|
|
977
|
+
webhook_name?: string
|
|
978
|
+
automation_name?: string
|
|
979
|
+
organization_id: string
|
|
980
|
+
user_id?: string
|
|
981
|
+
correlation_id?: string
|
|
982
|
+
execution_id?: string
|
|
983
|
+
action_id?: string
|
|
984
|
+
}
|
|
985
|
+
entity?: Record<string, unknown>
|
|
986
|
+
relations?: Record<string, unknown>[]
|
|
987
|
+
}
|
|
988
|
+
```
|
|
989
|
+
|
|
990
|
+
### `BatchReplayRequest`
|
|
991
|
+
|
|
992
|
+
```ts
|
|
993
|
+
type BatchReplayRequest = {
|
|
994
|
+
eventIds: string[]
|
|
995
|
+
}
|
|
996
|
+
```
|