@epilot/sdk 2.1.0-rc.1 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- 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/environments-runtime.json +1 -1
- 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-6OOYWQYJ.cjs +7 -0
- package/dist/README-JUWX7KNV.js +7 -0
- package/dist/_index-NWNYWBIF.js +146 -0
- package/dist/_index-ONGE545F.cjs +146 -0
- package/dist/access-token-2O6ULCCN.js +633 -0
- package/dist/access-token-6BJDZSFE.cjs +7 -0
- package/dist/access-token-GSQZLDXR.js +7 -0
- package/dist/access-token-RKP2A2F7.cjs +633 -0
- package/dist/access-token-runtime-KCKGT4O7.js +5 -0
- package/dist/access-token-runtime-NZWZJPWV.cjs +5 -0
- package/dist/address-HA4RMRNQ.cjs +7 -0
- package/dist/address-HLBX47SQ.cjs +567 -0
- package/dist/address-IJF4N2UV.js +567 -0
- package/dist/address-QVJUGMOG.js +7 -0
- package/dist/address-runtime-2MNO2YRD.cjs +5 -0
- package/dist/address-runtime-YFCNBJBW.js +5 -0
- package/dist/address-suggestions-74244BAJ.js +7 -0
- package/dist/address-suggestions-BYUTV7OU.js +574 -0
- package/dist/address-suggestions-ERVGGO6Z.cjs +574 -0
- package/dist/address-suggestions-IUQMYF27.cjs +7 -0
- package/dist/address-suggestions-runtime-NIMC2J32.js +5 -0
- package/dist/address-suggestions-runtime-ZNGLDADE.cjs +5 -0
- package/dist/ai-agents-6VHVYRCC.cjs +1612 -0
- package/dist/ai-agents-IZWFEUSH.js +7 -0
- package/dist/ai-agents-PKCHKKJS.js +1612 -0
- package/dist/ai-agents-PWHKNRCX.cjs +7 -0
- package/dist/ai-agents-runtime-25YRUJHI.js +5 -0
- package/dist/ai-agents-runtime-TILIO3UM.cjs +5 -0
- package/dist/apis/access-token.cjs +10 -8
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +6 -4
- package/dist/apis/address-suggestions.cjs +10 -8
- package/dist/apis/address-suggestions.d.cts +2 -2
- package/dist/apis/address-suggestions.d.ts +2 -2
- package/dist/apis/address-suggestions.js +6 -4
- package/dist/apis/address.cjs +10 -8
- package/dist/apis/address.d.cts +2 -2
- package/dist/apis/address.d.ts +2 -2
- package/dist/apis/address.js +6 -4
- package/dist/apis/ai-agents.cjs +10 -8
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +6 -4
- package/dist/apis/app.cjs +10 -8
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +6 -4
- package/dist/apis/audit-logs.cjs +10 -8
- package/dist/apis/audit-logs.d.cts +2 -2
- package/dist/apis/audit-logs.d.ts +2 -2
- package/dist/apis/audit-logs.js +6 -4
- package/dist/apis/automation.cjs +10 -8
- package/dist/apis/automation.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- package/dist/apis/automation.js +6 -4
- package/dist/apis/billing.cjs +10 -8
- package/dist/apis/billing.d.cts +2 -2
- package/dist/apis/billing.d.ts +2 -2
- package/dist/apis/billing.js +6 -4
- package/dist/apis/blueprint-manifest.cjs +10 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +6 -4
- package/dist/apis/consent.cjs +10 -8
- package/dist/apis/consent.d.cts +2 -2
- package/dist/apis/consent.d.ts +2 -2
- package/dist/apis/consent.js +6 -4
- package/dist/apis/customer-portal.cjs +10 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +6 -4
- package/dist/apis/dashboard.cjs +10 -8
- package/dist/apis/dashboard.d.cts +2 -2
- package/dist/apis/dashboard.d.ts +2 -2
- package/dist/apis/dashboard.js +6 -4
- package/dist/apis/data-management.cjs +10 -8
- package/dist/apis/data-management.d.cts +2 -2
- package/dist/apis/data-management.d.ts +2 -2
- package/dist/apis/data-management.js +6 -4
- package/dist/apis/deduplication.cjs +10 -8
- package/dist/apis/deduplication.d.cts +2 -2
- package/dist/apis/deduplication.d.ts +2 -2
- package/dist/apis/deduplication.js +6 -4
- package/dist/apis/design.cjs +10 -8
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +6 -4
- package/dist/apis/document.cjs +10 -8
- package/dist/apis/document.d.cts +2 -2
- package/dist/apis/document.d.ts +2 -2
- package/dist/apis/document.js +6 -4
- package/dist/apis/email-settings.cjs +10 -8
- package/dist/apis/email-settings.d.cts +2 -2
- package/dist/apis/email-settings.d.ts +2 -2
- package/dist/apis/email-settings.js +6 -4
- package/dist/apis/email-template.cjs +10 -8
- package/dist/apis/email-template.d.cts +2 -2
- package/dist/apis/email-template.d.ts +2 -2
- package/dist/apis/email-template.js +6 -4
- package/dist/apis/entity-mapping.cjs +10 -8
- package/dist/apis/entity-mapping.d.cts +2 -2
- package/dist/apis/entity-mapping.d.ts +2 -2
- package/dist/apis/entity-mapping.js +6 -4
- package/dist/apis/entity.cjs +10 -8
- package/dist/apis/entity.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- package/dist/apis/entity.js +6 -4
- package/dist/apis/environments.cjs +10 -8
- package/dist/apis/environments.d.cts +2 -2
- package/dist/apis/environments.d.ts +2 -2
- package/dist/apis/environments.js +6 -4
- package/dist/apis/erp-integration.cjs +10 -8
- package/dist/apis/erp-integration.d.cts +2 -2
- package/dist/apis/erp-integration.d.ts +2 -2
- package/dist/apis/erp-integration.js +6 -4
- package/dist/apis/event-catalog.cjs +10 -8
- package/dist/apis/event-catalog.d.cts +2 -2
- package/dist/apis/event-catalog.d.ts +2 -2
- package/dist/apis/event-catalog.js +6 -4
- package/dist/apis/file.cjs +10 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +6 -4
- package/dist/apis/iban.cjs +10 -8
- package/dist/apis/iban.d.cts +2 -2
- package/dist/apis/iban.d.ts +2 -2
- package/dist/apis/iban.js +6 -4
- package/dist/apis/journey.cjs +10 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +6 -4
- package/dist/apis/kanban.cjs +10 -8
- package/dist/apis/kanban.d.cts +2 -2
- package/dist/apis/kanban.d.ts +2 -2
- package/dist/apis/kanban.js +6 -4
- package/dist/apis/message.cjs +10 -8
- package/dist/apis/message.d.cts +2 -2
- package/dist/apis/message.d.ts +2 -2
- package/dist/apis/message.js +6 -4
- package/dist/apis/metering.cjs +10 -8
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +6 -4
- package/dist/apis/notes.cjs +10 -8
- package/dist/apis/notes.d.cts +2 -2
- package/dist/apis/notes.d.ts +2 -2
- package/dist/apis/notes.js +6 -4
- package/dist/apis/notification.cjs +10 -8
- package/dist/apis/notification.d.cts +2 -2
- package/dist/apis/notification.d.ts +2 -2
- package/dist/apis/notification.js +6 -4
- package/dist/apis/organization.cjs +10 -8
- package/dist/apis/organization.d.cts +4 -4
- package/dist/apis/organization.d.ts +4 -4
- package/dist/apis/organization.js +6 -4
- package/dist/apis/partner-directory.cjs +10 -8
- package/dist/apis/partner-directory.d.cts +2 -2
- package/dist/apis/partner-directory.d.ts +2 -2
- package/dist/apis/partner-directory.js +6 -4
- package/dist/apis/permissions.cjs +10 -8
- package/dist/apis/permissions.d.cts +2 -2
- package/dist/apis/permissions.d.ts +2 -2
- package/dist/apis/permissions.js +6 -4
- package/dist/apis/pricing-tier.cjs +10 -8
- package/dist/apis/pricing-tier.d.cts +2 -2
- package/dist/apis/pricing-tier.d.ts +2 -2
- package/dist/apis/pricing-tier.js +6 -4
- package/dist/apis/pricing.cjs +10 -8
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +6 -4
- package/dist/apis/purpose.cjs +10 -8
- package/dist/apis/purpose.d.cts +2 -2
- package/dist/apis/purpose.d.ts +2 -2
- package/dist/apis/purpose.js +6 -4
- package/dist/apis/sandbox.cjs +10 -8
- package/dist/apis/sandbox.d.cts +2 -2
- package/dist/apis/sandbox.d.ts +2 -2
- package/dist/apis/sandbox.js +6 -4
- package/dist/apis/submission.cjs +10 -8
- package/dist/apis/submission.d.cts +2 -2
- package/dist/apis/submission.d.ts +2 -2
- package/dist/apis/submission.js +6 -4
- package/dist/apis/targeting.cjs +10 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +6 -4
- package/dist/apis/template-variables.cjs +10 -8
- package/dist/apis/template-variables.d.cts +2 -2
- package/dist/apis/template-variables.d.ts +2 -2
- package/dist/apis/template-variables.js +6 -4
- package/dist/apis/user.cjs +10 -8
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +6 -4
- package/dist/apis/validation-rules.cjs +10 -8
- package/dist/apis/validation-rules.d.cts +2 -2
- package/dist/apis/validation-rules.d.ts +2 -2
- package/dist/apis/validation-rules.js +6 -4
- package/dist/apis/webhooks.cjs +10 -8
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +6 -4
- package/dist/apis/workflow-definition.cjs +10 -8
- package/dist/apis/workflow-definition.d.cts +2 -2
- package/dist/apis/workflow-definition.d.ts +2 -2
- package/dist/apis/workflow-definition.js +6 -4
- package/dist/apis/workflow.cjs +10 -8
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +6 -4
- package/dist/app-5VPBDFW2.cjs +4047 -0
- package/dist/app-IKHWU222.cjs +7 -0
- package/dist/app-VJW2KKWE.js +4047 -0
- package/dist/app-VLM3SWKA.js +7 -0
- package/dist/app-runtime-SSNHSBR7.cjs +5 -0
- package/dist/app-runtime-U7RGV7KT.js +5 -0
- package/dist/audit-logs-5VXHOQ7S.js +7 -0
- package/dist/audit-logs-D2LFUA2R.cjs +7 -0
- package/dist/audit-logs-F2NHDISQ.js +312 -0
- package/dist/audit-logs-RFEMBILB.cjs +312 -0
- package/dist/audit-logs-runtime-4WMHPWNX.cjs +5 -0
- package/dist/audit-logs-runtime-76R6WRAB.js +5 -0
- package/dist/automation-3HGCK725.cjs +7 -0
- package/dist/automation-72VGEJCY.js +7 -0
- package/dist/automation-HZASSUCS.cjs +4460 -0
- package/dist/automation-WEVRW77F.js +4460 -0
- package/dist/automation-runtime-L5UKEFLA.js +5 -0
- package/dist/automation-runtime-YBGGE5PL.cjs +5 -0
- package/dist/billing-3VZPNG6M.cjs +796 -0
- package/dist/billing-ASWY7HC3.js +796 -0
- package/dist/billing-DUWDISHP.cjs +7 -0
- package/dist/billing-IPALEAG2.js +7 -0
- package/dist/billing-runtime-C6BMGWCX.js +5 -0
- package/dist/billing-runtime-L4Y7MLM3.cjs +5 -0
- package/dist/blueprint-manifest-5TNVSDKC.cjs +3169 -0
- package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
- package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
- package/dist/blueprint-manifest-UGGYWGRZ.js +3169 -0
- package/dist/blueprint-manifest-runtime-2RTW5C52.js +5 -0
- package/dist/blueprint-manifest-runtime-AF3FIDVX.cjs +5 -0
- package/dist/{chunk-ZPCMZO2O.js → chunk-24T6CJTG.js} +1 -1
- package/dist/{chunk-4JPVFLVU.js → chunk-265TE2OV.js} +1 -1
- package/dist/{chunk-NSOHW3R6.js → chunk-2BPBDRRO.js} +1 -1
- package/dist/{chunk-ZAPA4RPI.js → chunk-3XKBB5AE.js} +1 -1
- package/dist/{chunk-CFGXI3FX.js → chunk-3YSEO476.js} +1 -1
- package/dist/{chunk-WOOKHE7Y.cjs → chunk-46HU6232.cjs} +2 -2
- package/dist/{chunk-KU2XF4TS.cjs → chunk-4G6LO3JY.cjs} +2 -2
- package/dist/{chunk-GGBSLAVO.cjs → chunk-4QCVVDTA.cjs} +2 -2
- package/dist/{chunk-TUAAE3UC.cjs → chunk-4W22EIRF.cjs} +2 -2
- package/dist/{chunk-BDIJHJOG.js → chunk-4ZGZDE6D.js} +1 -1
- package/dist/{chunk-VD5TBK2T.cjs → chunk-4ZMLRFDX.cjs} +2 -2
- package/dist/{chunk-YNPRF4BX.js → chunk-5JPM6YUD.js} +1 -1
- package/dist/{chunk-FCLW3FLF.js → chunk-5MFHAXBT.js} +1 -1
- package/dist/{chunk-OBQIS3KU.js → chunk-5NKXJA43.js} +1 -1
- package/dist/{chunk-UXVV3BSC.cjs → chunk-5WNEYQII.cjs} +2 -2
- package/dist/chunk-6OYECNL2.js +14 -0
- package/dist/{chunk-D5FJ26GG.js → chunk-6UAS2VVG.js} +1 -1
- package/dist/{chunk-UE4XPL43.js → chunk-6VWCUZ5M.js} +1 -1
- package/dist/{chunk-HSGQSTVK.js → chunk-75EI2Q64.js} +1 -1
- package/dist/{chunk-6J7CIOKR.js → chunk-75ZWZM3L.js} +1 -1
- package/dist/{chunk-LXAJ722U.js → chunk-7IKQIVUS.js} +1 -1
- package/dist/{chunk-5YVVQBA2.js → chunk-A7AAVJGM.js} +1 -1
- package/dist/{chunk-ZDJ3J6Z6.cjs → chunk-ANN2QTMY.cjs} +2 -2
- package/dist/{chunk-MKZGM4A6.js → chunk-AUH6NP6Y.js} +1 -1
- package/dist/{chunk-BB7WFIE2.cjs → chunk-BLNXQAMX.cjs} +2 -2
- package/dist/{chunk-PLBIQ2Y7.cjs → chunk-BM6NCHPL.cjs} +2 -2
- package/dist/{chunk-5Y2KLUU6.cjs → chunk-BPHOGIQM.cjs} +2 -2
- package/dist/{chunk-Y4YQEDR3.js → chunk-BTTPWE2P.js} +1 -1
- package/dist/{chunk-Z5LLUUFD.cjs → chunk-COQMJFAB.cjs} +2 -2
- package/dist/{chunk-YFHQYQII.js → chunk-CSK5ZUTS.js} +1 -1
- package/dist/{chunk-7KFKA3AH.cjs → chunk-D32L2HMX.cjs} +2 -2
- package/dist/{chunk-Y4ZMNMYI.js → chunk-D7Q4JGN7.js} +1 -1
- package/dist/{chunk-UTQY2DSM.js → chunk-DZ3P537S.js} +1 -1
- package/dist/{chunk-CLMZ2EXW.js → chunk-E2WMGOM5.js} +1 -1
- package/dist/{chunk-R6WNZVTA.cjs → chunk-F5JVW2D5.cjs} +2 -2
- package/dist/{chunk-WAKSLH7V.cjs → chunk-FARDEGPH.cjs} +2 -2
- package/dist/{chunk-XIB2G42L.cjs → chunk-G3VDRMOH.cjs} +2 -2
- package/dist/{chunk-ZAXYMQ2B.cjs → chunk-G5FKTWUC.cjs} +2 -2
- package/dist/{chunk-URRL33D5.cjs → chunk-GWKHOJGD.cjs} +2 -2
- package/dist/{chunk-XLOXC52O.js → chunk-H45V55VT.js} +1 -1
- package/dist/{chunk-TBBLLEB2.cjs → chunk-HAZ3WP7V.cjs} +2 -2
- package/dist/{chunk-KEJRWMXR.cjs → chunk-HHMXS5NC.cjs} +2 -2
- package/dist/{chunk-YXPUCBVK.cjs → chunk-IGVVJMX7.cjs} +2 -2
- package/dist/{chunk-IXRDP4VP.js → chunk-IJR3GZKC.js} +1 -1
- package/dist/{chunk-OI2M6FSB.js → chunk-IQOCHPWU.js} +1 -1
- package/dist/{chunk-6ADJEPMJ.js → chunk-JENQHXFI.js} +1 -1
- package/dist/{chunk-E4IFBCNM.cjs → chunk-JICWF5VI.cjs} +2 -2
- package/dist/{chunk-Q5TESEDZ.cjs → chunk-JIUTCNTB.cjs} +2 -2
- package/dist/{chunk-RNKZDJOY.js → chunk-JJWJLY42.js} +1 -1
- package/dist/{chunk-CX3KG7D2.cjs → chunk-JXJC6WEW.cjs} +2 -2
- package/dist/{chunk-RQKN4WTW.cjs → chunk-K2UZPY6U.cjs} +2 -2
- package/dist/{chunk-UDO4JYVU.cjs → chunk-L66IX6GX.cjs} +2 -2
- package/dist/{chunk-HBPCJRZX.cjs → chunk-LKRBFBFN.cjs} +2 -2
- package/dist/{chunk-EIILOQ6X.js → chunk-LLZYRINH.js} +1 -1
- package/dist/{chunk-CVSQT5PV.cjs → chunk-M2SSGV7K.cjs} +2 -2
- package/dist/{chunk-MK4ZGXVE.cjs → chunk-M2UDF7PY.cjs} +2 -2
- package/dist/{chunk-SPZSDRM6.cjs → chunk-M56QQHVA.cjs} +2 -2
- package/dist/{chunk-IPFHV2FV.cjs → chunk-MB6NKETA.cjs} +2 -2
- package/dist/{chunk-PBNPZ7UX.js → chunk-MEUS7LCE.js} +1 -1
- package/dist/{chunk-S2QF6HG2.cjs → chunk-N5NFJW7Y.cjs} +2 -2
- package/dist/chunk-NBYH536J.js +291 -0
- package/dist/{chunk-W3MM2BSK.cjs → chunk-NEVFKRDU.cjs} +2 -2
- package/dist/chunk-NJK5F5TF.cjs +21 -0
- package/dist/{chunk-CK36RZXR.js → chunk-O4JDWMYD.js} +1 -1
- package/dist/{chunk-5RXE7X63.js → chunk-OEBV2PMV.js} +2 -2
- package/dist/{chunk-HKZQ56AS.cjs → chunk-OXJOO2YF.cjs} +2 -2
- package/dist/{chunk-U4BMKRG6.js → chunk-PSQMDY3B.js} +1 -1
- package/dist/{chunk-SHPXCOTN.cjs → chunk-QOAWSFXA.cjs} +3 -3
- package/dist/{chunk-RNBO3DEN.js → chunk-QT44OHHL.js} +1 -1
- package/dist/{chunk-7BPPP4M2.js → chunk-QTR3RH4N.js} +1 -1
- package/dist/{chunk-ID6BXIOZ.js → chunk-RELUU5QZ.js} +1 -1
- package/dist/{chunk-4K3MX2J6.js → chunk-RJ3DWFSK.js} +1 -1
- package/dist/{chunk-DBNEZWK2.cjs → chunk-RUZRPIHW.cjs} +2 -2
- package/dist/{chunk-O3R6C3WW.js → chunk-RW5JOHG7.js} +1 -1
- package/dist/{chunk-4MO4WLKA.cjs → chunk-RXMOHUBP.cjs} +2 -2
- package/dist/{chunk-YGULLD73.js → chunk-SBSIGQDU.js} +1 -1
- package/dist/{chunk-JX45ME2Z.js → chunk-SITPUXIR.js} +1 -1
- package/dist/{chunk-TIJGLQKO.js → chunk-SZMCMLOQ.js} +1 -1
- package/dist/{chunk-IPDIEZBN.cjs → chunk-T67ZXTVG.cjs} +2 -2
- package/dist/{chunk-33TQRYMY.js → chunk-TME4YJNP.js} +1 -1
- package/dist/{chunk-N2P26AAD.js → chunk-TPA4HEAO.js} +1 -1
- package/dist/{chunk-U52A2DMK.cjs → chunk-TTNPMFXL.cjs} +2 -2
- package/dist/chunk-TXDVGTQD.cjs +14 -0
- package/dist/{chunk-XD6XML3Z.cjs → chunk-UNCVJH6J.cjs} +2 -2
- package/dist/{chunk-CBRWUULQ.js → chunk-UUVJYJHD.js} +1 -1
- package/dist/{chunk-V56ZCL54.js → chunk-VSZEOCIE.js} +1 -1
- package/dist/{chunk-UX2IZQNM.cjs → chunk-WQBBB6BN.cjs} +2 -2
- package/dist/chunk-WSZWUQDD.cjs +291 -0
- package/dist/{chunk-5WN2YXNU.cjs → chunk-WTMV77T2.cjs} +2 -2
- package/dist/{chunk-JM6HKPSC.cjs → chunk-WWOAKRNG.cjs} +2 -2
- package/dist/{chunk-UNHWLNE4.js → chunk-XSE4CFSM.js} +1 -1
- package/dist/{chunk-HO7KACZZ.cjs → chunk-YO4M3BZL.cjs} +2 -2
- package/dist/chunk-YPSWSI3M.js +21 -0
- package/dist/{chunk-6BERHKDQ.cjs → chunk-Z5TVWG3I.cjs} +2 -2
- package/dist/{chunk-ONN5COYQ.cjs → chunk-ZI33AJQ5.cjs} +2 -2
- package/dist/{chunk-DIP442PL.js → chunk-ZKQ573B7.js} +1 -1
- package/dist/consent-6SIH4NQS.cjs +342 -0
- package/dist/consent-7MNRAINV.js +342 -0
- package/dist/consent-CS2ZBZX4.cjs +7 -0
- package/dist/consent-NNYHF2N4.js +7 -0
- package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
- package/dist/consent-runtime-OAPXBJH2.js +5 -0
- package/dist/customer-portal-D3SLPAHZ.js +7 -0
- package/dist/customer-portal-L5DEQEGC.js +14142 -0
- package/dist/customer-portal-MXILX4KH.cjs +14142 -0
- package/dist/customer-portal-UR3GN4VU.cjs +7 -0
- package/dist/customer-portal-runtime-MRVZ7JR4.js +5 -0
- package/dist/customer-portal-runtime-VGK7RMLC.cjs +5 -0
- package/dist/dashboard-RKUQLIME.cjs +483 -0
- package/dist/dashboard-UDL26RGG.js +483 -0
- package/dist/dashboard-UHYR5RTY.cjs +7 -0
- package/dist/dashboard-UTPGXFW5.js +7 -0
- package/dist/dashboard-runtime-EXP2AM44.cjs +5 -0
- package/dist/dashboard-runtime-PSKSGLCF.js +5 -0
- package/dist/data-management-QH2IJ5QV.js +7 -0
- package/dist/data-management-TEFRLGSU.cjs +7 -0
- package/dist/data-management-W5JQGGGH.js +925 -0
- package/dist/data-management-XFSRLFYA.cjs +925 -0
- package/dist/data-management-runtime-PAC7UFGT.cjs +5 -0
- package/dist/data-management-runtime-XZ347IUB.js +5 -0
- package/dist/deduplication-7RTGTLN5.cjs +193 -0
- package/dist/deduplication-ECVAZVVA.cjs +7 -0
- package/dist/deduplication-GYIST22B.js +7 -0
- package/dist/deduplication-RKLRTNZU.js +193 -0
- package/dist/deduplication-runtime-BBHG7MJW.cjs +5 -0
- package/dist/deduplication-runtime-DLGBF4RN.js +5 -0
- package/dist/design-AO6EGLHD.cjs +1352 -0
- package/dist/design-KUVXMFFK.cjs +7 -0
- package/dist/design-VLRA2WGV.js +1352 -0
- package/dist/design-YKBXRW5C.js +7 -0
- package/dist/design-runtime-3SKJA7QH.js +5 -0
- package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
- package/dist/document-CY2A2OE7.js +7 -0
- package/dist/document-OVTR7RVH.cjs +744 -0
- package/dist/document-RYQ7MF6U.cjs +7 -0
- package/dist/document-SEZ45XAO.js +744 -0
- package/dist/document-runtime-GFEBGNMS.js +5 -0
- package/dist/document-runtime-RG3F4R6O.cjs +5 -0
- package/dist/email-settings-QGCIUWLC.js +2427 -0
- package/dist/email-settings-SEGEKVMF.cjs +2427 -0
- package/dist/email-settings-TQ5GGDYG.js +7 -0
- package/dist/email-settings-TQC34GST.cjs +7 -0
- package/dist/email-settings-runtime-NS7MU3RB.cjs +5 -0
- package/dist/email-settings-runtime-X7F3EPAB.js +5 -0
- package/dist/email-template-26SANLRD.cjs +1308 -0
- package/dist/email-template-346NDG4D.js +1308 -0
- package/dist/email-template-M2VVL4TI.cjs +7 -0
- package/dist/email-template-WYROV3UG.js +7 -0
- package/dist/email-template-runtime-QBB64BJQ.js +5 -0
- package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
- package/dist/entity-FA6PZX6S.js +7 -0
- package/dist/entity-HSCBRIOS.js +9411 -0
- package/dist/entity-IX5NSHPX.cjs +7 -0
- package/dist/entity-UKAWTND4.cjs +9411 -0
- package/dist/entity-mapping-7J3IAGKQ.js +7 -0
- package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
- package/dist/entity-mapping-UOGYYCZH.js +1506 -0
- package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
- package/dist/entity-mapping-runtime-734TTUA2.cjs +5 -0
- package/dist/entity-mapping-runtime-HCOJM6DV.js +5 -0
- package/dist/entity-runtime-QSFVEFJ6.js +5 -0
- package/dist/entity-runtime-XSAICIVR.cjs +5 -0
- package/dist/environments-5IS2ZJYQ.cjs +352 -0
- package/dist/environments-E3X6NYGX.js +7 -0
- package/dist/environments-P2JS4F5N.cjs +7 -0
- package/dist/environments-VCREW73K.js +352 -0
- package/dist/environments-runtime-BPR47PW7.js +5 -0
- package/dist/environments-runtime-L6TJCVW6.cjs +5 -0
- package/dist/erp-integration-735KQ73W.js +5295 -0
- package/dist/erp-integration-EP2XFEH5.js +7 -0
- package/dist/erp-integration-NNV72VFI.cjs +7 -0
- package/dist/erp-integration-W7FZDJOB.cjs +5295 -0
- package/dist/erp-integration-runtime-FNJXDO75.js +5 -0
- package/dist/erp-integration-runtime-WXZIQCLJ.cjs +5 -0
- package/dist/event-catalog-C45ISVMP.cjs +7 -0
- package/dist/event-catalog-D7VJ7WRS.js +7 -0
- package/dist/event-catalog-MZYFJ23V.cjs +965 -0
- package/dist/event-catalog-ZUFXLY7B.js +965 -0
- package/dist/event-catalog-runtime-5HQSAJVX.cjs +5 -0
- package/dist/event-catalog-runtime-6FA3SCRI.js +5 -0
- package/dist/file-637CTR4Y.cjs +2744 -0
- package/dist/file-EJJBQEQI.js +2744 -0
- package/dist/file-UOWBTDIU.cjs +7 -0
- package/dist/file-XSN3NAVZ.js +7 -0
- package/dist/file-runtime-B6AAGZQF.js +5 -0
- package/dist/file-runtime-SFZIKODF.cjs +5 -0
- package/dist/iban-24GHLFDB.cjs +7 -0
- package/dist/iban-ETTCKOHK.cjs +148 -0
- package/dist/iban-HXFDAF4I.js +148 -0
- package/dist/iban-LDKYDVQV.js +7 -0
- package/dist/iban-runtime-EVXLFPPP.js +5 -0
- package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
- package/dist/index.cjs +113 -101
- package/dist/index.d.cts +36 -5
- package/dist/index.d.ts +36 -5
- package/dist/index.js +64 -52
- package/dist/journey-7CKX67M7.js +7 -0
- package/dist/journey-EUZ6MVHG.cjs +7 -0
- package/dist/journey-KW3ZFQAL.js +2194 -0
- package/dist/journey-XIMSLSZC.cjs +2194 -0
- package/dist/journey-runtime-SPBL3F32.cjs +5 -0
- package/dist/journey-runtime-YXIAOTMD.js +5 -0
- package/dist/kanban-CHTH2ZSY.cjs +7 -0
- package/dist/kanban-HI6LL5WY.js +7 -0
- package/dist/kanban-M4P7R5TM.cjs +890 -0
- package/dist/kanban-QXQEQIF4.js +890 -0
- package/dist/kanban-runtime-NHEUWTCG.cjs +5 -0
- package/dist/kanban-runtime-R6EWHBFS.js +5 -0
- package/dist/message-2VOVRXBB.cjs +2447 -0
- package/dist/message-3XZLJR6R.cjs +7 -0
- package/dist/message-M62W3KP2.js +2447 -0
- package/dist/message-ZNMCS5YH.js +7 -0
- package/dist/message-runtime-ITR7MPKT.cjs +5 -0
- package/dist/message-runtime-YMKW2N3R.js +5 -0
- package/dist/metering-DZNZPPY6.cjs +7 -0
- package/dist/metering-KEMILE75.cjs +2198 -0
- package/dist/metering-KOSCPPKB.js +7 -0
- package/dist/metering-W3TA6ZUQ.js +2198 -0
- package/dist/metering-runtime-HAIWXZXJ.cjs +5 -0
- package/dist/metering-runtime-NJ6NEUMB.js +5 -0
- package/dist/notes-3AO5GXIT.js +7 -0
- package/dist/notes-4LVCGLBE.js +1427 -0
- package/dist/notes-MPWOQC5J.cjs +7 -0
- package/dist/notes-OBM5POWI.cjs +1427 -0
- package/dist/notes-runtime-CVNAVKPP.js +5 -0
- package/dist/notes-runtime-E3YYF74V.cjs +5 -0
- package/dist/notification-EEYPLPUV.cjs +1381 -0
- package/dist/notification-MJQGIBM7.js +1381 -0
- package/dist/notification-PZOCUYD5.cjs +7 -0
- package/dist/notification-VWDZRSFZ.js +7 -0
- package/dist/notification-runtime-7QLZTPHG.cjs +5 -0
- package/dist/notification-runtime-KREP32YP.js +5 -0
- package/dist/organization-2UK7QZLQ.cjs +615 -0
- package/dist/organization-RARYYG2E.cjs +7 -0
- package/dist/organization-U5HPX627.js +615 -0
- package/dist/organization-ZERPH2IH.js +7 -0
- package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
- package/dist/organization-runtime-P3WZ2BBU.js +5 -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-CG5CYJGB.cjs +1600 -0
- package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
- package/dist/partner-directory-XJ7KI7EX.js +1600 -0
- package/dist/partner-directory-runtime-QURDOO4Z.js +5 -0
- package/dist/partner-directory-runtime-RSONSDNJ.cjs +5 -0
- package/dist/permissions-4T3GFNB4.js +7 -0
- package/dist/permissions-FGBIJNN7.cjs +7 -0
- package/dist/permissions-SGPGANEP.js +1415 -0
- package/dist/permissions-WCOABHKQ.cjs +1415 -0
- package/dist/permissions-runtime-D74HOCVO.js +5 -0
- package/dist/permissions-runtime-O5LH7WOU.cjs +5 -0
- package/dist/pricing-3RNPCUR6.js +9362 -0
- package/dist/pricing-4Z4TOETA.cjs +7 -0
- package/dist/pricing-C65DTZSX.js +7 -0
- package/dist/pricing-VYHPSVKM.cjs +9362 -0
- package/dist/pricing-runtime-6XNS4EOF.cjs +5 -0
- package/dist/pricing-runtime-JRR4FWFI.js +5 -0
- package/dist/pricing-tier-36WV4P4X.js +121 -0
- package/dist/pricing-tier-FKQPW2ND.cjs +121 -0
- package/dist/pricing-tier-NI35WOUP.cjs +7 -0
- package/dist/pricing-tier-VUOFK5Q7.js +7 -0
- package/dist/pricing-tier-runtime-32BCKJ7Y.cjs +5 -0
- package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
- package/dist/purpose-AKOEUHZ4.cjs +7 -0
- package/dist/purpose-JC2E7W3M.cjs +523 -0
- package/dist/purpose-QFQ4W255.js +523 -0
- package/dist/purpose-RBRV3AQZ.js +7 -0
- package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
- package/dist/purpose-runtime-V5X5ESZV.js +5 -0
- package/dist/sandbox-2KN4X66E.cjs +7 -0
- package/dist/sandbox-CLZTN7IW.cjs +445 -0
- package/dist/sandbox-L2SOOGGR.js +7 -0
- package/dist/sandbox-O2NWMZGJ.js +445 -0
- package/dist/sandbox-runtime-4MLOMFPK.js +5 -0
- package/dist/sandbox-runtime-GKEK3GQB.cjs +5 -0
- package/dist/submission-6FD67HIE.cjs +308 -0
- package/dist/submission-7BISSPO6.js +7 -0
- package/dist/submission-MWJU4L32.js +308 -0
- package/dist/submission-Q24BU4GS.cjs +7 -0
- package/dist/submission-runtime-5FD4AQSD.cjs +5 -0
- package/dist/submission-runtime-JPHKPQ77.js +5 -0
- package/dist/targeting-4CQDSEKL.cjs +1369 -0
- package/dist/targeting-EYGYZD6M.cjs +7 -0
- package/dist/targeting-GEJTJN5Z.js +7 -0
- package/dist/targeting-RB7LBQMX.js +1369 -0
- package/dist/targeting-runtime-6JFMP262.cjs +5 -0
- package/dist/targeting-runtime-M2VSTKFT.js +5 -0
- package/dist/template-variables-JYHE2VCH.cjs +1447 -0
- package/dist/template-variables-OAYS2E3G.cjs +1148 -0
- package/dist/template-variables-VKDJJZUT.js +1148 -0
- package/dist/template-variables-XLIW4GY6.js +1447 -0
- package/dist/template-variables-runtime-62U3ZY5P.js +5 -0
- package/dist/template-variables-runtime-LFOA32UM.cjs +5 -0
- package/dist/{types-BwBvJkY_.d.ts → types-ChU9Acbv.d.cts} +3 -0
- package/dist/{types-BwBvJkY_.d.cts → types-ChU9Acbv.d.ts} +3 -0
- package/dist/user-DKA6DDPX.cjs +2265 -0
- package/dist/user-EIEOI3OG.js +7 -0
- package/dist/user-NJJ7XVKB.cjs +7 -0
- package/dist/user-O4JDAIRO.js +2265 -0
- package/dist/user-runtime-7O2HLFVQ.cjs +5 -0
- package/dist/user-runtime-U4HYUWJU.js +5 -0
- package/dist/validation-rules-AYCAOVDZ.cjs +1344 -0
- package/dist/validation-rules-GCI64B57.js +1344 -0
- package/dist/validation-rules-P6F5P73P.js +7 -0
- package/dist/validation-rules-VDU3CIZV.cjs +7 -0
- package/dist/validation-rules-runtime-6MRCS5X2.js +5 -0
- package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
- package/dist/webhooks-I7JWU34X.cjs +7 -0
- package/dist/webhooks-L3FXPRKT.cjs +1431 -0
- package/dist/webhooks-WPLEHVPX.js +7 -0
- package/dist/webhooks-XXLU2KWP.js +1431 -0
- package/dist/webhooks-runtime-EBM4M3SU.cjs +5 -0
- package/dist/webhooks-runtime-XCQYIGQK.js +5 -0
- package/dist/workflow-3LLURW3H.js +7 -0
- package/dist/workflow-RAGQDYXT.cjs +7 -0
- package/dist/workflow-VLNZNE3S.js +3834 -0
- package/dist/workflow-YJHUCGVK.cjs +3834 -0
- package/dist/workflow-definition-7BA4H6W3.cjs +3100 -0
- package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
- package/dist/workflow-definition-D24CRCK2.js +7 -0
- package/dist/workflow-definition-VFYWBQQ3.js +3100 -0
- package/dist/workflow-definition-runtime-S7AZHOU7.js +5 -0
- package/dist/workflow-definition-runtime-VRND6VQR.cjs +5 -0
- package/dist/workflow-runtime-RLZO2OQB.js +5 -0
- package/dist/workflow-runtime-WCJ7NRTH.cjs +5 -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 +5 -3
- package/dist/chunk-GMBRXWMD.cjs +0 -14
- package/dist/chunk-L43U5IO3.js +0 -14
- package/dist/chunk-XE25WERA.js +0 -125
- package/dist/chunk-XEQMAKGA.cjs +0 -125
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/definitions/consent.json
|
|
4
|
+
var openapi = "3.0.3";
|
|
5
|
+
var info = {
|
|
6
|
+
title: "Consent API",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
description: "Consent Management for epilot customer entities\n"
|
|
9
|
+
};
|
|
10
|
+
var tags = [
|
|
11
|
+
{
|
|
12
|
+
name: "consent",
|
|
13
|
+
description: "Consent Management"
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
var security = [
|
|
17
|
+
{
|
|
18
|
+
EpilotAuth: []
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
var paths = {
|
|
22
|
+
"/v1/consent/publish": {
|
|
23
|
+
post: {
|
|
24
|
+
operationId: "publishConsentEvent",
|
|
25
|
+
summary: "publishConsentEvent",
|
|
26
|
+
description: "Publishes consent event on event bus, which appends to consent store\n",
|
|
27
|
+
tags: ["consent"],
|
|
28
|
+
requestBody: {
|
|
29
|
+
content: {
|
|
30
|
+
"application/json": {
|
|
31
|
+
schema: {
|
|
32
|
+
$ref: "#/components/schemas/ConsentEventRequestBody"
|
|
33
|
+
},
|
|
34
|
+
examples: {
|
|
35
|
+
OptInEmailMarketing: {
|
|
36
|
+
$ref: "#/components/examples/ConsentOptInEmailMarketing"
|
|
37
|
+
},
|
|
38
|
+
OptInSMSMarketing: {
|
|
39
|
+
$ref: "#/components/examples/ConsentOptInSMSMarketing"
|
|
40
|
+
},
|
|
41
|
+
OptInPhoneCallMarketing: {
|
|
42
|
+
$ref: "#/components/examples/ConsentOptInPhoneCallMarketing"
|
|
43
|
+
},
|
|
44
|
+
OptOutEmailMarketing: {
|
|
45
|
+
$ref: "#/components/examples/ConsentOptOutEmailMarketing"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
responses: {
|
|
52
|
+
"201": {
|
|
53
|
+
description: "The created opt-in",
|
|
54
|
+
content: {
|
|
55
|
+
"application/json": {
|
|
56
|
+
schema: {
|
|
57
|
+
$ref: "#/components/schemas/ConsentEvent"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/v1/consent/{identifier}": {
|
|
66
|
+
get: {
|
|
67
|
+
operationId: "listConsentEvents",
|
|
68
|
+
summary: "listConsentEvents",
|
|
69
|
+
description: "List opt-ins and opt-outs by customer identifier\n",
|
|
70
|
+
tags: ["consent"],
|
|
71
|
+
parameters: [
|
|
72
|
+
{
|
|
73
|
+
name: "identifier",
|
|
74
|
+
in: "path",
|
|
75
|
+
required: true,
|
|
76
|
+
schema: {
|
|
77
|
+
$ref: "#/components/schemas/ConsentIdentifier"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "topic",
|
|
82
|
+
in: "query",
|
|
83
|
+
required: false,
|
|
84
|
+
schema: {
|
|
85
|
+
$ref: "#/components/schemas/ConsentTopic"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "limit",
|
|
90
|
+
in: "query",
|
|
91
|
+
required: false,
|
|
92
|
+
schema: {
|
|
93
|
+
type: "integer",
|
|
94
|
+
default: 50,
|
|
95
|
+
minimum: 1,
|
|
96
|
+
maximum: 100
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "from",
|
|
101
|
+
in: "query",
|
|
102
|
+
required: false,
|
|
103
|
+
schema: {
|
|
104
|
+
type: "integer",
|
|
105
|
+
default: 0,
|
|
106
|
+
minimum: 0
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
responses: {
|
|
111
|
+
"200": {
|
|
112
|
+
description: "list of opt-ins and opt-outs",
|
|
113
|
+
content: {
|
|
114
|
+
"application/json": {
|
|
115
|
+
schema: {
|
|
116
|
+
type: "object",
|
|
117
|
+
properties: {
|
|
118
|
+
events: {
|
|
119
|
+
type: "array",
|
|
120
|
+
items: {
|
|
121
|
+
$ref: "#/components/schemas/ConsentEvent"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
total: {
|
|
125
|
+
type: "integer",
|
|
126
|
+
example: 1
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"/v1/opt-in/{token}": {
|
|
137
|
+
get: {
|
|
138
|
+
operationId: "handleOptInWithToken",
|
|
139
|
+
summary: "handleOptInWithToken",
|
|
140
|
+
security: [],
|
|
141
|
+
description: "Endpoint to handle opt-in links\n",
|
|
142
|
+
tags: ["consent"],
|
|
143
|
+
parameters: [
|
|
144
|
+
{
|
|
145
|
+
name: "token",
|
|
146
|
+
in: "path",
|
|
147
|
+
required: true,
|
|
148
|
+
schema: {
|
|
149
|
+
type: "string"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "lang",
|
|
154
|
+
in: "query",
|
|
155
|
+
schema: {
|
|
156
|
+
type: "string",
|
|
157
|
+
default: "de"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
responses: {
|
|
162
|
+
"200": {
|
|
163
|
+
description: "Handler page for opt in links",
|
|
164
|
+
content: {
|
|
165
|
+
"text/html": {
|
|
166
|
+
example: "<p>You are subscribed!</p>\n"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
var components = {
|
|
175
|
+
securitySchemes: {
|
|
176
|
+
EpilotAuth: {
|
|
177
|
+
type: "http",
|
|
178
|
+
scheme: "bearer",
|
|
179
|
+
description: "Epilot Id Token\n"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
schemas: {
|
|
183
|
+
ConsentIdentifier: {
|
|
184
|
+
type: "string",
|
|
185
|
+
description: "Unique identifier for consent source (e.g. customer email or phone)",
|
|
186
|
+
example: "exampleuser@epilot.cloud"
|
|
187
|
+
},
|
|
188
|
+
ConsentTopic: {
|
|
189
|
+
type: "string",
|
|
190
|
+
description: "Consent Topic (what the person is opting into)",
|
|
191
|
+
example: "EMAIL_MARKETING"
|
|
192
|
+
},
|
|
193
|
+
ConsentSource: {
|
|
194
|
+
type: "string",
|
|
195
|
+
description: "Consent Source (Origin of the Consent Event)",
|
|
196
|
+
example: "www.frontend.epilot.cloud"
|
|
197
|
+
},
|
|
198
|
+
ConsentMeta: {
|
|
199
|
+
type: "object",
|
|
200
|
+
additionalProperties: true,
|
|
201
|
+
example: {
|
|
202
|
+
double_opt_in: true,
|
|
203
|
+
source_type: "journey",
|
|
204
|
+
source_id: "0e4f2a26-14f0-4ada-9294-a7d7a0b9b214",
|
|
205
|
+
ip_address: "1.1.1.1",
|
|
206
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
ConsentEventRequestBody: {
|
|
210
|
+
type: "object",
|
|
211
|
+
properties: {
|
|
212
|
+
type: {
|
|
213
|
+
type: "string",
|
|
214
|
+
enum: ["OPT_IN", "OPT_OUT"]
|
|
215
|
+
},
|
|
216
|
+
topic: {
|
|
217
|
+
$ref: "#/components/schemas/ConsentTopic"
|
|
218
|
+
},
|
|
219
|
+
source: {
|
|
220
|
+
$ref: "#/components/schemas/ConsentSource"
|
|
221
|
+
},
|
|
222
|
+
identifier: {
|
|
223
|
+
$ref: "#/components/schemas/ConsentIdentifier"
|
|
224
|
+
},
|
|
225
|
+
meta: {
|
|
226
|
+
$ref: "#/components/schemas/ConsentMeta"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
required: ["type", "topic", "identifier"]
|
|
230
|
+
},
|
|
231
|
+
ConsentEvent: {
|
|
232
|
+
type: "object",
|
|
233
|
+
properties: {
|
|
234
|
+
type: {
|
|
235
|
+
type: "string",
|
|
236
|
+
enum: ["OPT_IN", "OPT_OUT", "DOUBLE_OPT_IN_REQUESTED", "DOUBLE_OPT_IN"]
|
|
237
|
+
},
|
|
238
|
+
created_at: {
|
|
239
|
+
type: "string",
|
|
240
|
+
format: "date-time"
|
|
241
|
+
},
|
|
242
|
+
topic: {
|
|
243
|
+
$ref: "#/components/schemas/ConsentTopic"
|
|
244
|
+
},
|
|
245
|
+
source: {
|
|
246
|
+
$ref: "#/components/schemas/ConsentSource"
|
|
247
|
+
},
|
|
248
|
+
organization_id: {
|
|
249
|
+
$ref: "#/components/schemas/OrganizationId"
|
|
250
|
+
},
|
|
251
|
+
identifier: {
|
|
252
|
+
$ref: "#/components/schemas/ConsentIdentifier"
|
|
253
|
+
},
|
|
254
|
+
meta: {
|
|
255
|
+
$ref: "#/components/schemas/ConsentMeta"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
required: ["type", "topic", "identifier"]
|
|
259
|
+
},
|
|
260
|
+
OrganizationId: {
|
|
261
|
+
type: "string",
|
|
262
|
+
example: "123"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
examples: {
|
|
266
|
+
ConsentOptInEmailMarketing: {
|
|
267
|
+
value: {
|
|
268
|
+
type: "OPT_IN",
|
|
269
|
+
topic: "EMAIL_MARKETING",
|
|
270
|
+
identifier: "exampleuser@epilot.cloud",
|
|
271
|
+
source: "frontend.epilot.cloud",
|
|
272
|
+
meta: {
|
|
273
|
+
ip_address: "1.1.1.1",
|
|
274
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
ConsentOptOutEmailMarketing: {
|
|
279
|
+
value: {
|
|
280
|
+
type: "OPT_OUT",
|
|
281
|
+
topic: "EMAIL_MARKETING",
|
|
282
|
+
identifier: "exampleuser@epilot.cloud",
|
|
283
|
+
source: "unsubscribe via email",
|
|
284
|
+
meta: {
|
|
285
|
+
ip_address: "1.1.1.1",
|
|
286
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
ConsentOptInSMSMarketing: {
|
|
291
|
+
value: {
|
|
292
|
+
type: "OPT_IN",
|
|
293
|
+
topic: "SMS_MARKETING",
|
|
294
|
+
identifier: "+49 123 1234567",
|
|
295
|
+
source: "frontend.epilot.cloud",
|
|
296
|
+
meta: {
|
|
297
|
+
ip_address: "1.1.1.1",
|
|
298
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
ConsentOptInPhoneCallMarketing: {
|
|
303
|
+
value: {
|
|
304
|
+
type: "OPT_IN",
|
|
305
|
+
topic: "PHONE_CALL_MARKETING",
|
|
306
|
+
identifier: "+49 123 1234567",
|
|
307
|
+
source: "frontend.epilot.cloud",
|
|
308
|
+
meta: {
|
|
309
|
+
ip_address: "1.1.1.1",
|
|
310
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
var servers = [
|
|
317
|
+
{
|
|
318
|
+
url: "https://consent.sls.epilot.io"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
url: "https://consent.sls.epilot.io"
|
|
322
|
+
}
|
|
323
|
+
];
|
|
324
|
+
var consent_default = {
|
|
325
|
+
openapi,
|
|
326
|
+
info,
|
|
327
|
+
tags,
|
|
328
|
+
security,
|
|
329
|
+
paths,
|
|
330
|
+
components,
|
|
331
|
+
servers
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
exports.components = components; exports.default = consent_default; exports.info = info; exports.openapi = openapi; exports.paths = paths; exports.security = security; exports.servers = servers; exports.tags = tags;
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/definitions/consent.json
|
|
4
|
+
var openapi = "3.0.3";
|
|
5
|
+
var info = {
|
|
6
|
+
title: "Consent API",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
description: "Consent Management for epilot customer entities\n"
|
|
9
|
+
};
|
|
10
|
+
var tags = [
|
|
11
|
+
{
|
|
12
|
+
name: "consent",
|
|
13
|
+
description: "Consent Management"
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
var security = [
|
|
17
|
+
{
|
|
18
|
+
EpilotAuth: []
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
var paths = {
|
|
22
|
+
"/v1/consent/publish": {
|
|
23
|
+
post: {
|
|
24
|
+
operationId: "publishConsentEvent",
|
|
25
|
+
summary: "publishConsentEvent",
|
|
26
|
+
description: "Publishes consent event on event bus, which appends to consent store\n",
|
|
27
|
+
tags: ["consent"],
|
|
28
|
+
requestBody: {
|
|
29
|
+
content: {
|
|
30
|
+
"application/json": {
|
|
31
|
+
schema: {
|
|
32
|
+
$ref: "#/components/schemas/ConsentEventRequestBody"
|
|
33
|
+
},
|
|
34
|
+
examples: {
|
|
35
|
+
OptInEmailMarketing: {
|
|
36
|
+
$ref: "#/components/examples/ConsentOptInEmailMarketing"
|
|
37
|
+
},
|
|
38
|
+
OptInSMSMarketing: {
|
|
39
|
+
$ref: "#/components/examples/ConsentOptInSMSMarketing"
|
|
40
|
+
},
|
|
41
|
+
OptInPhoneCallMarketing: {
|
|
42
|
+
$ref: "#/components/examples/ConsentOptInPhoneCallMarketing"
|
|
43
|
+
},
|
|
44
|
+
OptOutEmailMarketing: {
|
|
45
|
+
$ref: "#/components/examples/ConsentOptOutEmailMarketing"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
responses: {
|
|
52
|
+
"201": {
|
|
53
|
+
description: "The created opt-in",
|
|
54
|
+
content: {
|
|
55
|
+
"application/json": {
|
|
56
|
+
schema: {
|
|
57
|
+
$ref: "#/components/schemas/ConsentEvent"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"/v1/consent/{identifier}": {
|
|
66
|
+
get: {
|
|
67
|
+
operationId: "listConsentEvents",
|
|
68
|
+
summary: "listConsentEvents",
|
|
69
|
+
description: "List opt-ins and opt-outs by customer identifier\n",
|
|
70
|
+
tags: ["consent"],
|
|
71
|
+
parameters: [
|
|
72
|
+
{
|
|
73
|
+
name: "identifier",
|
|
74
|
+
in: "path",
|
|
75
|
+
required: true,
|
|
76
|
+
schema: {
|
|
77
|
+
$ref: "#/components/schemas/ConsentIdentifier"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "topic",
|
|
82
|
+
in: "query",
|
|
83
|
+
required: false,
|
|
84
|
+
schema: {
|
|
85
|
+
$ref: "#/components/schemas/ConsentTopic"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "limit",
|
|
90
|
+
in: "query",
|
|
91
|
+
required: false,
|
|
92
|
+
schema: {
|
|
93
|
+
type: "integer",
|
|
94
|
+
default: 50,
|
|
95
|
+
minimum: 1,
|
|
96
|
+
maximum: 100
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "from",
|
|
101
|
+
in: "query",
|
|
102
|
+
required: false,
|
|
103
|
+
schema: {
|
|
104
|
+
type: "integer",
|
|
105
|
+
default: 0,
|
|
106
|
+
minimum: 0
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
responses: {
|
|
111
|
+
"200": {
|
|
112
|
+
description: "list of opt-ins and opt-outs",
|
|
113
|
+
content: {
|
|
114
|
+
"application/json": {
|
|
115
|
+
schema: {
|
|
116
|
+
type: "object",
|
|
117
|
+
properties: {
|
|
118
|
+
events: {
|
|
119
|
+
type: "array",
|
|
120
|
+
items: {
|
|
121
|
+
$ref: "#/components/schemas/ConsentEvent"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
total: {
|
|
125
|
+
type: "integer",
|
|
126
|
+
example: 1
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"/v1/opt-in/{token}": {
|
|
137
|
+
get: {
|
|
138
|
+
operationId: "handleOptInWithToken",
|
|
139
|
+
summary: "handleOptInWithToken",
|
|
140
|
+
security: [],
|
|
141
|
+
description: "Endpoint to handle opt-in links\n",
|
|
142
|
+
tags: ["consent"],
|
|
143
|
+
parameters: [
|
|
144
|
+
{
|
|
145
|
+
name: "token",
|
|
146
|
+
in: "path",
|
|
147
|
+
required: true,
|
|
148
|
+
schema: {
|
|
149
|
+
type: "string"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "lang",
|
|
154
|
+
in: "query",
|
|
155
|
+
schema: {
|
|
156
|
+
type: "string",
|
|
157
|
+
default: "de"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
responses: {
|
|
162
|
+
"200": {
|
|
163
|
+
description: "Handler page for opt in links",
|
|
164
|
+
content: {
|
|
165
|
+
"text/html": {
|
|
166
|
+
example: "<p>You are subscribed!</p>\n"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
var components = {
|
|
175
|
+
securitySchemes: {
|
|
176
|
+
EpilotAuth: {
|
|
177
|
+
type: "http",
|
|
178
|
+
scheme: "bearer",
|
|
179
|
+
description: "Epilot Id Token\n"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
schemas: {
|
|
183
|
+
ConsentIdentifier: {
|
|
184
|
+
type: "string",
|
|
185
|
+
description: "Unique identifier for consent source (e.g. customer email or phone)",
|
|
186
|
+
example: "exampleuser@epilot.cloud"
|
|
187
|
+
},
|
|
188
|
+
ConsentTopic: {
|
|
189
|
+
type: "string",
|
|
190
|
+
description: "Consent Topic (what the person is opting into)",
|
|
191
|
+
example: "EMAIL_MARKETING"
|
|
192
|
+
},
|
|
193
|
+
ConsentSource: {
|
|
194
|
+
type: "string",
|
|
195
|
+
description: "Consent Source (Origin of the Consent Event)",
|
|
196
|
+
example: "www.frontend.epilot.cloud"
|
|
197
|
+
},
|
|
198
|
+
ConsentMeta: {
|
|
199
|
+
type: "object",
|
|
200
|
+
additionalProperties: true,
|
|
201
|
+
example: {
|
|
202
|
+
double_opt_in: true,
|
|
203
|
+
source_type: "journey",
|
|
204
|
+
source_id: "0e4f2a26-14f0-4ada-9294-a7d7a0b9b214",
|
|
205
|
+
ip_address: "1.1.1.1",
|
|
206
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
ConsentEventRequestBody: {
|
|
210
|
+
type: "object",
|
|
211
|
+
properties: {
|
|
212
|
+
type: {
|
|
213
|
+
type: "string",
|
|
214
|
+
enum: ["OPT_IN", "OPT_OUT"]
|
|
215
|
+
},
|
|
216
|
+
topic: {
|
|
217
|
+
$ref: "#/components/schemas/ConsentTopic"
|
|
218
|
+
},
|
|
219
|
+
source: {
|
|
220
|
+
$ref: "#/components/schemas/ConsentSource"
|
|
221
|
+
},
|
|
222
|
+
identifier: {
|
|
223
|
+
$ref: "#/components/schemas/ConsentIdentifier"
|
|
224
|
+
},
|
|
225
|
+
meta: {
|
|
226
|
+
$ref: "#/components/schemas/ConsentMeta"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
required: ["type", "topic", "identifier"]
|
|
230
|
+
},
|
|
231
|
+
ConsentEvent: {
|
|
232
|
+
type: "object",
|
|
233
|
+
properties: {
|
|
234
|
+
type: {
|
|
235
|
+
type: "string",
|
|
236
|
+
enum: ["OPT_IN", "OPT_OUT", "DOUBLE_OPT_IN_REQUESTED", "DOUBLE_OPT_IN"]
|
|
237
|
+
},
|
|
238
|
+
created_at: {
|
|
239
|
+
type: "string",
|
|
240
|
+
format: "date-time"
|
|
241
|
+
},
|
|
242
|
+
topic: {
|
|
243
|
+
$ref: "#/components/schemas/ConsentTopic"
|
|
244
|
+
},
|
|
245
|
+
source: {
|
|
246
|
+
$ref: "#/components/schemas/ConsentSource"
|
|
247
|
+
},
|
|
248
|
+
organization_id: {
|
|
249
|
+
$ref: "#/components/schemas/OrganizationId"
|
|
250
|
+
},
|
|
251
|
+
identifier: {
|
|
252
|
+
$ref: "#/components/schemas/ConsentIdentifier"
|
|
253
|
+
},
|
|
254
|
+
meta: {
|
|
255
|
+
$ref: "#/components/schemas/ConsentMeta"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
required: ["type", "topic", "identifier"]
|
|
259
|
+
},
|
|
260
|
+
OrganizationId: {
|
|
261
|
+
type: "string",
|
|
262
|
+
example: "123"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
examples: {
|
|
266
|
+
ConsentOptInEmailMarketing: {
|
|
267
|
+
value: {
|
|
268
|
+
type: "OPT_IN",
|
|
269
|
+
topic: "EMAIL_MARKETING",
|
|
270
|
+
identifier: "exampleuser@epilot.cloud",
|
|
271
|
+
source: "frontend.epilot.cloud",
|
|
272
|
+
meta: {
|
|
273
|
+
ip_address: "1.1.1.1",
|
|
274
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
ConsentOptOutEmailMarketing: {
|
|
279
|
+
value: {
|
|
280
|
+
type: "OPT_OUT",
|
|
281
|
+
topic: "EMAIL_MARKETING",
|
|
282
|
+
identifier: "exampleuser@epilot.cloud",
|
|
283
|
+
source: "unsubscribe via email",
|
|
284
|
+
meta: {
|
|
285
|
+
ip_address: "1.1.1.1",
|
|
286
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
ConsentOptInSMSMarketing: {
|
|
291
|
+
value: {
|
|
292
|
+
type: "OPT_IN",
|
|
293
|
+
topic: "SMS_MARKETING",
|
|
294
|
+
identifier: "+49 123 1234567",
|
|
295
|
+
source: "frontend.epilot.cloud",
|
|
296
|
+
meta: {
|
|
297
|
+
ip_address: "1.1.1.1",
|
|
298
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
ConsentOptInPhoneCallMarketing: {
|
|
303
|
+
value: {
|
|
304
|
+
type: "OPT_IN",
|
|
305
|
+
topic: "PHONE_CALL_MARKETING",
|
|
306
|
+
identifier: "+49 123 1234567",
|
|
307
|
+
source: "frontend.epilot.cloud",
|
|
308
|
+
meta: {
|
|
309
|
+
ip_address: "1.1.1.1",
|
|
310
|
+
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
var servers = [
|
|
317
|
+
{
|
|
318
|
+
url: "https://consent.sls.epilot.io"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
url: "https://consent.sls.epilot.io"
|
|
322
|
+
}
|
|
323
|
+
];
|
|
324
|
+
var consent_default = {
|
|
325
|
+
openapi,
|
|
326
|
+
info,
|
|
327
|
+
tags,
|
|
328
|
+
security,
|
|
329
|
+
paths,
|
|
330
|
+
components,
|
|
331
|
+
servers
|
|
332
|
+
};
|
|
333
|
+
export {
|
|
334
|
+
components,
|
|
335
|
+
consent_default as default,
|
|
336
|
+
info,
|
|
337
|
+
openapi,
|
|
338
|
+
paths,
|
|
339
|
+
security,
|
|
340
|
+
servers,
|
|
341
|
+
tags
|
|
342
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/docs/consent.json
|
|
4
|
+
var consent_default = '# Consent API\n\n- **Base URL:** `https://consent.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/consent](https://docs.epilot.io/api/consent)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.consent.publishConsentEvent(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/consent\'\n\nconst consentClient = getClient()\nauthorize(consentClient, () => \'<token>\')\nconst { data } = await consentClient.publishConsentEvent(...)\n```\n\n## Operations\n\n**consent**\n- [`publishConsentEvent`](#publishconsentevent)\n- [`listConsentEvents`](#listconsentevents)\n- [`handleOptInWithToken`](#handleoptinwithtoken)\n\n**Schemas**\n- [`ConsentIdentifier`](#consentidentifier)\n- [`ConsentTopic`](#consenttopic)\n- [`ConsentSource`](#consentsource)\n- [`ConsentMeta`](#consentmeta)\n- [`ConsentEventRequestBody`](#consenteventrequestbody)\n- [`ConsentEvent`](#consentevent)\n- [`OrganizationId`](#organizationid)\n\n### `publishConsentEvent`\n\nPublishes consent event on event bus, which appends to consent store\n\n`POST /v1/consent/publish`\n\n```ts\nconst { data } = await client.publishConsentEvent(\n null,\n {\n type: \'OPT_IN\',\n topic: \'EMAIL_MARKETING\',\n source: \'www.frontend.epilot.cloud\',\n identifier: \'exampleuser@epilot.cloud\',\n meta: {\n double_opt_in: true,\n source_type: \'journey\',\n source_id: \'0e4f2a26-14f0-4ada-9294-a7d7a0b9b214\',\n ip_address: \'1.1.1.1\',\n user_agent: \'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36\'\n }\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "OPT_IN",\n "created_at": "1970-01-01T00:00:00.000Z",\n "topic": "EMAIL_MARKETING",\n "source": "www.frontend.epilot.cloud",\n "organization_id": "123",\n "identifier": "exampleuser@epilot.cloud",\n "meta": {\n "double_opt_in": true,\n "source_type": "journey",\n "source_id": "0e4f2a26-14f0-4ada-9294-a7d7a0b9b214",\n "ip_address": "1.1.1.1",\n "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"\n }\n}\n```\n\n</details>\n\n---\n\n### `listConsentEvents`\n\nList opt-ins and opt-outs by customer identifier\n\n`GET /v1/consent/{identifier}`\n\n```ts\nconst { data } = await client.listConsentEvents({\n identifier: \'example\',\n topic: \'example\',\n limit: 1,\n from: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "events": [\n {\n "type": "OPT_IN",\n "created_at": "1970-01-01T00:00:00.000Z",\n "topic": "EMAIL_MARKETING",\n "source": "www.frontend.epilot.cloud",\n "organization_id": "123",\n "identifier": "exampleuser@epilot.cloud",\n "meta": {\n "double_opt_in": true,\n "source_type": "journey",\n "source_id": "0e4f2a26-14f0-4ada-9294-a7d7a0b9b214",\n "ip_address": "1.1.1.1",\n "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"\n }\n }\n ],\n "total": 1\n}\n```\n\n</details>\n\n---\n\n### `handleOptInWithToken`\n\nEndpoint to handle opt-in links\n\n`GET /v1/opt-in/{token}`\n\n```ts\nconst { data } = await client.handleOptInWithToken({\n token: \'example\',\n lang: \'example\',\n})\n```\n\n---\n\n## Schemas\n\n### `ConsentIdentifier`\n\nUnique identifier for consent source (e.g. customer email or phone)\n\n```ts\ntype ConsentIdentifier = string\n```\n\n### `ConsentTopic`\n\nConsent Topic (what the person is opting into)\n\n```ts\ntype ConsentTopic = string\n```\n\n### `ConsentSource`\n\nConsent Source (Origin of the Consent Event)\n\n```ts\ntype ConsentSource = string\n```\n\n### `ConsentMeta`\n\n```ts\ntype ConsentMeta = Record<string, unknown>\n```\n\n### `ConsentEventRequestBody`\n\n```ts\ntype ConsentEventRequestBody = {\n type: "OPT_IN" | "OPT_OUT"\n topic: string\n source?: string\n identifier: string\n meta?: Record<string, unknown>\n}\n```\n\n### `ConsentEvent`\n\n```ts\ntype ConsentEvent = {\n type: "OPT_IN" | "OPT_OUT" | "DOUBLE_OPT_IN_REQUESTED" | "DOUBLE_OPT_IN"\n created_at?: string // date-time\n topic: string\n source?: string\n organization_id?: string\n identifier: string\n meta?: Record<string, unknown>\n}\n```\n\n### `OrganizationId`\n\n```ts\ntype OrganizationId = string\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = consent_default;
|