@epilot/sdk 2.1.0 → 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/environments-runtime.json +1 -1
- package/dist/{README-W4B35MRN.cjs → README-6OOYWQYJ.cjs} +1 -1
- package/dist/{README-VG67PX4R.js → README-JUWX7KNV.js} +1 -1
- package/dist/{_index-S6LFD3ER.js → _index-NWNYWBIF.js} +48 -1
- package/dist/{_index-AMVZBT2K.cjs → _index-ONGE545F.cjs} +48 -1
- package/dist/access-token-2O6ULCCN.js +633 -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-HLBX47SQ.cjs +567 -0
- package/dist/address-IJF4N2UV.js +567 -0
- package/dist/address-runtime-2MNO2YRD.cjs +5 -0
- package/dist/address-runtime-YFCNBJBW.js +5 -0
- package/dist/address-suggestions-BYUTV7OU.js +574 -0
- package/dist/address-suggestions-ERVGGO6Z.cjs +574 -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-PKCHKKJS.js +1612 -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 +8 -8
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +4 -4
- package/dist/apis/address-suggestions.cjs +8 -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 +4 -4
- package/dist/apis/address.cjs +8 -8
- package/dist/apis/address.d.cts +2 -2
- package/dist/apis/address.d.ts +2 -2
- package/dist/apis/address.js +4 -4
- package/dist/apis/ai-agents.cjs +8 -8
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +4 -4
- package/dist/apis/app.cjs +8 -8
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +4 -4
- package/dist/apis/audit-logs.cjs +8 -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 +4 -4
- package/dist/apis/automation.cjs +8 -8
- package/dist/apis/automation.d.cts +2 -2
- package/dist/apis/automation.d.ts +2 -2
- package/dist/apis/automation.js +4 -4
- package/dist/apis/billing.cjs +8 -8
- package/dist/apis/billing.d.cts +2 -2
- package/dist/apis/billing.d.ts +2 -2
- package/dist/apis/billing.js +4 -4
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +4 -4
- package/dist/apis/consent.cjs +8 -8
- package/dist/apis/consent.d.cts +2 -2
- package/dist/apis/consent.d.ts +2 -2
- package/dist/apis/consent.js +4 -4
- package/dist/apis/customer-portal.cjs +8 -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 +4 -4
- package/dist/apis/dashboard.cjs +8 -8
- package/dist/apis/dashboard.d.cts +2 -2
- package/dist/apis/dashboard.d.ts +2 -2
- package/dist/apis/dashboard.js +4 -4
- package/dist/apis/data-management.cjs +8 -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 +4 -4
- package/dist/apis/deduplication.cjs +8 -8
- package/dist/apis/deduplication.d.cts +2 -2
- package/dist/apis/deduplication.d.ts +2 -2
- package/dist/apis/deduplication.js +4 -4
- package/dist/apis/design.cjs +8 -8
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +4 -4
- package/dist/apis/document.cjs +8 -8
- package/dist/apis/document.d.cts +2 -2
- package/dist/apis/document.d.ts +2 -2
- package/dist/apis/document.js +4 -4
- package/dist/apis/email-settings.cjs +8 -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 +4 -4
- package/dist/apis/email-template.cjs +8 -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 +4 -4
- package/dist/apis/entity-mapping.cjs +8 -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 +4 -4
- package/dist/apis/entity.cjs +8 -8
- package/dist/apis/entity.d.cts +2 -2
- package/dist/apis/entity.d.ts +2 -2
- package/dist/apis/entity.js +4 -4
- package/dist/apis/environments.cjs +8 -8
- package/dist/apis/environments.d.cts +2 -2
- package/dist/apis/environments.d.ts +2 -2
- package/dist/apis/environments.js +4 -4
- package/dist/apis/erp-integration.cjs +8 -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 +4 -4
- package/dist/apis/event-catalog.cjs +8 -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 +4 -4
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +4 -4
- package/dist/apis/iban.cjs +8 -8
- package/dist/apis/iban.d.cts +2 -2
- package/dist/apis/iban.d.ts +2 -2
- package/dist/apis/iban.js +4 -4
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +4 -4
- package/dist/apis/kanban.cjs +8 -8
- package/dist/apis/kanban.d.cts +2 -2
- package/dist/apis/kanban.d.ts +2 -2
- package/dist/apis/kanban.js +4 -4
- package/dist/apis/message.cjs +8 -8
- package/dist/apis/message.d.cts +2 -2
- package/dist/apis/message.d.ts +2 -2
- package/dist/apis/message.js +4 -4
- package/dist/apis/metering.cjs +8 -8
- package/dist/apis/metering.d.cts +2 -2
- package/dist/apis/metering.d.ts +2 -2
- package/dist/apis/metering.js +4 -4
- package/dist/apis/notes.cjs +8 -8
- package/dist/apis/notes.d.cts +2 -2
- package/dist/apis/notes.d.ts +2 -2
- package/dist/apis/notes.js +4 -4
- package/dist/apis/notification.cjs +8 -8
- package/dist/apis/notification.d.cts +2 -2
- package/dist/apis/notification.d.ts +2 -2
- package/dist/apis/notification.js +4 -4
- package/dist/apis/organization.cjs +8 -8
- package/dist/apis/organization.d.cts +2 -2
- package/dist/apis/organization.d.ts +2 -2
- package/dist/apis/organization.js +4 -4
- package/dist/apis/partner-directory.cjs +8 -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 +4 -4
- package/dist/apis/permissions.cjs +8 -8
- package/dist/apis/permissions.d.cts +2 -2
- package/dist/apis/permissions.d.ts +2 -2
- package/dist/apis/permissions.js +4 -4
- package/dist/apis/pricing-tier.cjs +8 -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 +4 -4
- package/dist/apis/pricing.cjs +8 -8
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +4 -4
- package/dist/apis/purpose.cjs +8 -8
- package/dist/apis/purpose.d.cts +2 -2
- package/dist/apis/purpose.d.ts +2 -2
- package/dist/apis/purpose.js +4 -4
- package/dist/apis/sandbox.cjs +8 -8
- package/dist/apis/sandbox.d.cts +2 -2
- package/dist/apis/sandbox.d.ts +2 -2
- package/dist/apis/sandbox.js +4 -4
- package/dist/apis/submission.cjs +8 -8
- package/dist/apis/submission.d.cts +2 -2
- package/dist/apis/submission.d.ts +2 -2
- package/dist/apis/submission.js +4 -4
- package/dist/apis/targeting.cjs +8 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +4 -4
- package/dist/apis/template-variables.cjs +8 -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 +4 -4
- package/dist/apis/user.cjs +8 -8
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +4 -4
- package/dist/apis/validation-rules.cjs +8 -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 +4 -4
- package/dist/apis/webhooks.cjs +8 -8
- package/dist/apis/webhooks.d.cts +2 -2
- package/dist/apis/webhooks.d.ts +2 -2
- package/dist/apis/webhooks.js +4 -4
- package/dist/apis/workflow-definition.cjs +8 -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 +4 -4
- package/dist/apis/workflow.cjs +8 -8
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +4 -4
- package/dist/app-5VPBDFW2.cjs +4047 -0
- package/dist/app-VJW2KKWE.js +4047 -0
- package/dist/app-runtime-SSNHSBR7.cjs +5 -0
- package/dist/app-runtime-U7RGV7KT.js +5 -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-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-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-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-NBYH536J.js +291 -0
- package/dist/chunk-WSZWUQDD.cjs +291 -0
- package/dist/consent-6SIH4NQS.cjs +342 -0
- package/dist/consent-7MNRAINV.js +342 -0
- package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
- package/dist/consent-runtime-OAPXBJH2.js +5 -0
- package/dist/customer-portal-L5DEQEGC.js +14142 -0
- package/dist/customer-portal-MXILX4KH.cjs +14142 -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-runtime-EXP2AM44.cjs +5 -0
- package/dist/dashboard-runtime-PSKSGLCF.js +5 -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-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-VLRA2WGV.js +1352 -0
- package/dist/design-runtime-3SKJA7QH.js +5 -0
- package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
- package/dist/document-OVTR7RVH.cjs +744 -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-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-runtime-QBB64BJQ.js +5 -0
- package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
- package/dist/entity-HSCBRIOS.js +9411 -0
- package/dist/entity-UKAWTND4.cjs +9411 -0
- package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
- package/dist/entity-mapping-UOGYYCZH.js +1506 -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-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-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-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-runtime-B6AAGZQF.js +5 -0
- package/dist/file-runtime-SFZIKODF.cjs +5 -0
- package/dist/iban-ETTCKOHK.cjs +148 -0
- package/dist/iban-HXFDAF4I.js +148 -0
- package/dist/iban-runtime-EVXLFPPP.js +5 -0
- package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
- package/dist/index.cjs +105 -100
- package/dist/index.d.cts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +56 -51
- 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-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-M62W3KP2.js +2447 -0
- package/dist/message-runtime-ITR7MPKT.cjs +5 -0
- package/dist/message-runtime-YMKW2N3R.js +5 -0
- package/dist/metering-KEMILE75.cjs +2198 -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-4LVCGLBE.js +1427 -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-runtime-7QLZTPHG.cjs +5 -0
- package/dist/notification-runtime-KREP32YP.js +5 -0
- package/dist/organization-2UK7QZLQ.cjs +615 -0
- package/dist/organization-U5HPX627.js +615 -0
- package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
- package/dist/organization-runtime-P3WZ2BBU.js +5 -0
- package/dist/partner-directory-CG5CYJGB.cjs +1600 -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-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-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-runtime-32BCKJ7Y.cjs +5 -0
- package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
- package/dist/purpose-JC2E7W3M.cjs +523 -0
- package/dist/purpose-QFQ4W255.js +523 -0
- package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
- package/dist/purpose-runtime-V5X5ESZV.js +5 -0
- package/dist/sandbox-CLZTN7IW.cjs +445 -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-MWJU4L32.js +308 -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-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-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-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-runtime-6MRCS5X2.js +5 -0
- package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
- package/dist/webhooks-L3FXPRKT.cjs +1431 -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-VLNZNE3S.js +3834 -0
- package/dist/workflow-YJHUCGVK.cjs +3834 -0
- package/dist/workflow-definition-7BA4H6W3.cjs +3100 -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/package.json +3 -2
- package/dist/chunk-3XEP56SV.cjs +0 -204
- package/dist/chunk-ULBEEHG4.js +0 -204
- /package/dist/{chunk-CPKBR34V.js → chunk-24T6CJTG.js} +0 -0
- /package/dist/{chunk-VQ7R36AC.js → chunk-265TE2OV.js} +0 -0
- /package/dist/{chunk-ZV6XYUXS.js → chunk-2BPBDRRO.js} +0 -0
- /package/dist/{chunk-KSXTBGIV.js → chunk-3XKBB5AE.js} +0 -0
- /package/dist/{chunk-GLO477NZ.js → chunk-3YSEO476.js} +0 -0
- /package/dist/{chunk-MKX4CKAB.cjs → chunk-46HU6232.cjs} +0 -0
- /package/dist/{chunk-JXBXDTFG.cjs → chunk-4G6LO3JY.cjs} +0 -0
- /package/dist/{chunk-Z4LUE424.cjs → chunk-4QCVVDTA.cjs} +0 -0
- /package/dist/{chunk-LQOLYXGQ.cjs → chunk-4W22EIRF.cjs} +0 -0
- /package/dist/{chunk-372VUPHN.js → chunk-4ZGZDE6D.js} +0 -0
- /package/dist/{chunk-IMT3IE5M.cjs → chunk-4ZMLRFDX.cjs} +0 -0
- /package/dist/{chunk-S7NDMDRX.js → chunk-5JPM6YUD.js} +0 -0
- /package/dist/{chunk-IS2VB342.js → chunk-5MFHAXBT.js} +0 -0
- /package/dist/{chunk-WOXXNKTE.js → chunk-5NKXJA43.js} +0 -0
- /package/dist/{chunk-S3ZNESMC.cjs → chunk-5WNEYQII.cjs} +0 -0
- /package/dist/{chunk-KA3TGFJP.js → chunk-6OYECNL2.js} +0 -0
- /package/dist/{chunk-T46LODOF.js → chunk-6UAS2VVG.js} +0 -0
- /package/dist/{chunk-PETLAONH.js → chunk-6VWCUZ5M.js} +0 -0
- /package/dist/{chunk-YZA5WZUS.js → chunk-75EI2Q64.js} +0 -0
- /package/dist/{chunk-2HOJWFQ4.js → chunk-75ZWZM3L.js} +0 -0
- /package/dist/{chunk-57QIBYDN.js → chunk-7IKQIVUS.js} +0 -0
- /package/dist/{chunk-DJKSULPK.js → chunk-A7AAVJGM.js} +0 -0
- /package/dist/{chunk-QLML3IP5.cjs → chunk-ANN2QTMY.cjs} +0 -0
- /package/dist/{chunk-KPGC2D6E.js → chunk-AUH6NP6Y.js} +0 -0
- /package/dist/{chunk-A6JOROUC.cjs → chunk-BLNXQAMX.cjs} +0 -0
- /package/dist/{chunk-LCIJ4TJ4.cjs → chunk-BM6NCHPL.cjs} +0 -0
- /package/dist/{chunk-XR4QF6KQ.cjs → chunk-BPHOGIQM.cjs} +0 -0
- /package/dist/{chunk-K62XK7KU.js → chunk-BTTPWE2P.js} +0 -0
- /package/dist/{chunk-E26ZO7QM.cjs → chunk-COQMJFAB.cjs} +0 -0
- /package/dist/{chunk-QVAJ5JP4.js → chunk-CSK5ZUTS.js} +0 -0
- /package/dist/{chunk-3ZZ57K3S.cjs → chunk-D32L2HMX.cjs} +0 -0
- /package/dist/{chunk-TIJWJVKZ.js → chunk-D7Q4JGN7.js} +0 -0
- /package/dist/{chunk-CWSHYFVZ.js → chunk-DZ3P537S.js} +0 -0
- /package/dist/{chunk-MSASBR2Y.js → chunk-E2WMGOM5.js} +0 -0
- /package/dist/{chunk-RXSS67VI.cjs → chunk-F5JVW2D5.cjs} +0 -0
- /package/dist/{chunk-XKI2OAYV.cjs → chunk-FARDEGPH.cjs} +0 -0
- /package/dist/{chunk-RWSA3LXE.cjs → chunk-G3VDRMOH.cjs} +0 -0
- /package/dist/{chunk-QDVPPRWI.cjs → chunk-G5FKTWUC.cjs} +0 -0
- /package/dist/{chunk-WMTYO5OX.cjs → chunk-GWKHOJGD.cjs} +0 -0
- /package/dist/{chunk-DNJ54L2G.js → chunk-H45V55VT.js} +0 -0
- /package/dist/{chunk-F472YLJG.cjs → chunk-HAZ3WP7V.cjs} +0 -0
- /package/dist/{chunk-NAWLLC3T.cjs → chunk-HHMXS5NC.cjs} +0 -0
- /package/dist/{chunk-DY2D2IW5.cjs → chunk-IGVVJMX7.cjs} +0 -0
- /package/dist/{chunk-KBOVBUBM.js → chunk-IJR3GZKC.js} +0 -0
- /package/dist/{chunk-73H6TVKN.js → chunk-IQOCHPWU.js} +0 -0
- /package/dist/{chunk-LSIWCIQV.js → chunk-JENQHXFI.js} +0 -0
- /package/dist/{chunk-G2REP2VZ.cjs → chunk-JICWF5VI.cjs} +0 -0
- /package/dist/{chunk-3HJEWWPS.cjs → chunk-JIUTCNTB.cjs} +0 -0
- /package/dist/{chunk-EBCHCYUO.js → chunk-JJWJLY42.js} +0 -0
- /package/dist/{chunk-SMGHAG5C.cjs → chunk-JXJC6WEW.cjs} +0 -0
- /package/dist/{chunk-HPYHWTTA.cjs → chunk-K2UZPY6U.cjs} +0 -0
- /package/dist/{chunk-VGTUK3QD.cjs → chunk-L66IX6GX.cjs} +0 -0
- /package/dist/{chunk-NLSZVGHK.cjs → chunk-LKRBFBFN.cjs} +0 -0
- /package/dist/{chunk-TLWCYLNA.js → chunk-LLZYRINH.js} +0 -0
- /package/dist/{chunk-4SWC43JO.cjs → chunk-M2SSGV7K.cjs} +0 -0
- /package/dist/{chunk-PVSS2WPM.cjs → chunk-M2UDF7PY.cjs} +0 -0
- /package/dist/{chunk-5SNJAD6F.cjs → chunk-M56QQHVA.cjs} +0 -0
- /package/dist/{chunk-QKERXNJJ.cjs → chunk-MB6NKETA.cjs} +0 -0
- /package/dist/{chunk-H4VSK4KF.js → chunk-MEUS7LCE.js} +0 -0
- /package/dist/{chunk-RD7E4OSJ.cjs → chunk-N5NFJW7Y.cjs} +0 -0
- /package/dist/{chunk-FXOX3X7E.cjs → chunk-NEVFKRDU.cjs} +0 -0
- /package/dist/{chunk-O4LRVGOY.js → chunk-O4JDWMYD.js} +0 -0
- /package/dist/{chunk-IH4CMOML.js → chunk-OEBV2PMV.js} +0 -0
- /package/dist/{chunk-VVVATFGK.cjs → chunk-OXJOO2YF.cjs} +0 -0
- /package/dist/{chunk-WOSSSFXB.js → chunk-PSQMDY3B.js} +0 -0
- /package/dist/{chunk-AJKH25H2.cjs → chunk-QOAWSFXA.cjs} +0 -0
- /package/dist/{chunk-UKKJMCNH.js → chunk-QT44OHHL.js} +0 -0
- /package/dist/{chunk-B3ZGAG7B.js → chunk-QTR3RH4N.js} +0 -0
- /package/dist/{chunk-3N67SSL3.js → chunk-RELUU5QZ.js} +0 -0
- /package/dist/{chunk-YYBIU5BQ.js → chunk-RJ3DWFSK.js} +0 -0
- /package/dist/{chunk-ARWMTXJV.cjs → chunk-RUZRPIHW.cjs} +0 -0
- /package/dist/{chunk-4VFQTSJQ.js → chunk-RW5JOHG7.js} +0 -0
- /package/dist/{chunk-EPAIOB5U.cjs → chunk-RXMOHUBP.cjs} +0 -0
- /package/dist/{chunk-MRZ7LGKZ.js → chunk-SBSIGQDU.js} +0 -0
- /package/dist/{chunk-TRJLYZHD.js → chunk-SITPUXIR.js} +0 -0
- /package/dist/{chunk-OGQKJTXF.js → chunk-SZMCMLOQ.js} +0 -0
- /package/dist/{chunk-VVQB5W7U.cjs → chunk-T67ZXTVG.cjs} +0 -0
- /package/dist/{chunk-HPSGM6QP.js → chunk-TME4YJNP.js} +0 -0
- /package/dist/{chunk-MRTAFRO7.js → chunk-TPA4HEAO.js} +0 -0
- /package/dist/{chunk-F376L6PP.cjs → chunk-TTNPMFXL.cjs} +0 -0
- /package/dist/{chunk-OG2DMGU6.cjs → chunk-TXDVGTQD.cjs} +0 -0
- /package/dist/{chunk-XZYZLSUO.cjs → chunk-UNCVJH6J.cjs} +0 -0
- /package/dist/{chunk-MHNSZ4HE.js → chunk-UUVJYJHD.js} +0 -0
- /package/dist/{chunk-C6UTZEHH.js → chunk-VSZEOCIE.js} +0 -0
- /package/dist/{chunk-EQZMT2HF.cjs → chunk-WQBBB6BN.cjs} +0 -0
- /package/dist/{chunk-BH5ZXK4J.cjs → chunk-WTMV77T2.cjs} +0 -0
- /package/dist/{chunk-BWFXLUK5.cjs → chunk-WWOAKRNG.cjs} +0 -0
- /package/dist/{chunk-ITX53XAZ.js → chunk-XSE4CFSM.js} +0 -0
- /package/dist/{chunk-SK3VYIZ6.cjs → chunk-YO4M3BZL.cjs} +0 -0
- /package/dist/{chunk-XYHTQ523.cjs → chunk-Z5TVWG3I.cjs} +0 -0
- /package/dist/{chunk-PXITFTJA.cjs → chunk-ZI33AJQ5.cjs} +0 -0
- /package/dist/{chunk-IP2WWEOU.js → chunk-ZKQ573B7.js} +0 -0
|
@@ -0,0 +1,1308 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/definitions/email-template.json
|
|
4
|
+
var openapi = "3.0.2";
|
|
5
|
+
var info = {
|
|
6
|
+
title: "Email template API",
|
|
7
|
+
version: "1.0.0-RFC",
|
|
8
|
+
description: "Email template API service\n"
|
|
9
|
+
};
|
|
10
|
+
var tags = [
|
|
11
|
+
{
|
|
12
|
+
name: "Email templates",
|
|
13
|
+
description: "Email template service"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "Variables",
|
|
17
|
+
description: "Variable service"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "email_template_schema",
|
|
21
|
+
"x-displayName": "Email Template",
|
|
22
|
+
description: '<SchemaDefinition schemaRef="#/components/schemas/EmailTemplateEntity" />\n'
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
var security = [
|
|
26
|
+
{
|
|
27
|
+
EpilotAuth: []
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
AsOrganization: []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
EpilotOrg: []
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
var paths = {
|
|
37
|
+
"/v1/email-template/templates": {
|
|
38
|
+
post: {
|
|
39
|
+
operationId: "saveTemplate",
|
|
40
|
+
summary: "saveTemplate",
|
|
41
|
+
description: "Create or update a template. If `id` is provided, it will update the template.",
|
|
42
|
+
tags: ["Email templates"],
|
|
43
|
+
requestBody: {
|
|
44
|
+
content: {
|
|
45
|
+
"application/json": {
|
|
46
|
+
schema: {
|
|
47
|
+
$ref: "#/components/schemas/EmailTemplateRequest"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
responses: {
|
|
53
|
+
"200": {
|
|
54
|
+
description: "Success",
|
|
55
|
+
content: {
|
|
56
|
+
"application/json": {
|
|
57
|
+
schema: {
|
|
58
|
+
$ref: "#/components/schemas/EmailTemplateEntity"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"403": {
|
|
64
|
+
description: "Forbidden"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"/v1/email-template/templates/{id}": {
|
|
70
|
+
get: {
|
|
71
|
+
operationId: "getTemplateDetail",
|
|
72
|
+
summary: "getTemplateDetail",
|
|
73
|
+
description: "Get email template by ID",
|
|
74
|
+
tags: ["Email templates"],
|
|
75
|
+
parameters: [
|
|
76
|
+
{
|
|
77
|
+
name: "id",
|
|
78
|
+
description: "Template entity ID",
|
|
79
|
+
in: "path",
|
|
80
|
+
required: true,
|
|
81
|
+
schema: {
|
|
82
|
+
type: "string"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
responses: {
|
|
87
|
+
"200": {
|
|
88
|
+
description: "Success",
|
|
89
|
+
content: {
|
|
90
|
+
"application/json": {
|
|
91
|
+
schema: {
|
|
92
|
+
$ref: "#/components/schemas/EmailTemplateResponse"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"403": {
|
|
98
|
+
description: "Forbidden"
|
|
99
|
+
},
|
|
100
|
+
"404": {
|
|
101
|
+
description: "Not found"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
put: {
|
|
106
|
+
operationId: "updateTemplateDetail",
|
|
107
|
+
summary: "updateTemplateDetail",
|
|
108
|
+
description: "Update email template by ID",
|
|
109
|
+
tags: ["Email templates"],
|
|
110
|
+
parameters: [
|
|
111
|
+
{
|
|
112
|
+
name: "id",
|
|
113
|
+
description: "Template entity ID",
|
|
114
|
+
in: "path",
|
|
115
|
+
required: true,
|
|
116
|
+
schema: {
|
|
117
|
+
type: "string"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
requestBody: {
|
|
122
|
+
content: {
|
|
123
|
+
"application/json": {
|
|
124
|
+
schema: {
|
|
125
|
+
$ref: "#/components/schemas/EmailTemplateRequest"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
responses: {
|
|
131
|
+
"200": {
|
|
132
|
+
description: "Success",
|
|
133
|
+
content: {
|
|
134
|
+
"application/json": {
|
|
135
|
+
schema: {
|
|
136
|
+
$ref: "#/components/schemas/EmailTemplateEntity"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"403": {
|
|
142
|
+
description: "Forbidden"
|
|
143
|
+
},
|
|
144
|
+
"404": {
|
|
145
|
+
description: "Not found"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"/v1/email-template/templates:replace": {
|
|
151
|
+
post: {
|
|
152
|
+
operationId: "replaceVariables",
|
|
153
|
+
summary: "replaceVariables",
|
|
154
|
+
description: "Get template detail and replace all variables (template variables and document generation)",
|
|
155
|
+
deprecated: true,
|
|
156
|
+
tags: ["Variables"],
|
|
157
|
+
requestBody: {
|
|
158
|
+
content: {
|
|
159
|
+
"application/json": {
|
|
160
|
+
schema: {
|
|
161
|
+
type: "object",
|
|
162
|
+
required: ["email_template_id"],
|
|
163
|
+
properties: {
|
|
164
|
+
email_template_id: {
|
|
165
|
+
type: "string",
|
|
166
|
+
example: "511ceb90-f738-47aa-8b1e-915ace0ae13c"
|
|
167
|
+
},
|
|
168
|
+
variable_parameters: {
|
|
169
|
+
$ref: "#/components/schemas/VariableParameters"
|
|
170
|
+
},
|
|
171
|
+
must_include_unsubscribe_link: {
|
|
172
|
+
type: "boolean",
|
|
173
|
+
description: "If true then include unsubscribe link in the email body\n",
|
|
174
|
+
default: false
|
|
175
|
+
},
|
|
176
|
+
skip_document_generation: {
|
|
177
|
+
type: "boolean",
|
|
178
|
+
description: "If true then skip document generation. This is useful when you want to replace html variables only. Speeds up the process.\n",
|
|
179
|
+
default: false
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
responses: {
|
|
187
|
+
"200": {
|
|
188
|
+
description: "Success",
|
|
189
|
+
content: {
|
|
190
|
+
"application/json": {
|
|
191
|
+
schema: {
|
|
192
|
+
$ref: "#/components/schemas/EmailTemplateResponse"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"403": {
|
|
198
|
+
description: "Forbidden"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"/v1/email-template/templates:replaceAsync": {
|
|
204
|
+
post: {
|
|
205
|
+
operationId: "replaceVariablesAsync",
|
|
206
|
+
summary: "replaceVariablesAsync",
|
|
207
|
+
description: "This endpoint allows to initiate an asynchronous process in replacing the template details & generating the documents.\nOn initial request, a jobId and STARTED status are returned. Subsequent requests can use this jobId to poll for the resolved template.\nIf still processing, it returns the jobId and IN-PROGRESS status. Upon completion or failure, it returns the final template or a failure status with reason.\n",
|
|
208
|
+
tags: ["Variables"],
|
|
209
|
+
parameters: [
|
|
210
|
+
{
|
|
211
|
+
in: "query",
|
|
212
|
+
name: "job_id",
|
|
213
|
+
description: "Job ID for tracking the status of document generation action",
|
|
214
|
+
schema: {
|
|
215
|
+
type: "string"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
requestBody: {
|
|
220
|
+
content: {
|
|
221
|
+
"application/json": {
|
|
222
|
+
schema: {
|
|
223
|
+
type: "object",
|
|
224
|
+
properties: {
|
|
225
|
+
email_template_id: {
|
|
226
|
+
type: "string",
|
|
227
|
+
example: "511ceb90-f738-47aa-8b1e-915ace0ae13c"
|
|
228
|
+
},
|
|
229
|
+
variable_parameters: {
|
|
230
|
+
$ref: "#/components/schemas/VariableParameters"
|
|
231
|
+
},
|
|
232
|
+
must_include_unsubscribe_link: {
|
|
233
|
+
type: "boolean",
|
|
234
|
+
description: "If true then include unsubscribe link in the email body\n",
|
|
235
|
+
default: false
|
|
236
|
+
},
|
|
237
|
+
skip_document_generation: {
|
|
238
|
+
type: "boolean",
|
|
239
|
+
description: "If true then skip document generation. This is useful when you want to replace html variables only. Speeds up the process.\n",
|
|
240
|
+
default: false
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
responses: {
|
|
248
|
+
"200": {
|
|
249
|
+
description: "Success",
|
|
250
|
+
content: {
|
|
251
|
+
"application/json": {
|
|
252
|
+
schema: {
|
|
253
|
+
$ref: "#/components/schemas/AsyncEmailTemplateResponse"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"403": {
|
|
259
|
+
description: "Forbidden"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"/v1/email-template/templates:bulkSendMessage": {
|
|
265
|
+
post: {
|
|
266
|
+
operationId: "bulkSendMessage",
|
|
267
|
+
summary: "bulkSendMessage",
|
|
268
|
+
description: "Send emails to multiple recipients using a template",
|
|
269
|
+
tags: ["Email templates"],
|
|
270
|
+
requestBody: {
|
|
271
|
+
content: {
|
|
272
|
+
"application/json": {
|
|
273
|
+
schema: {
|
|
274
|
+
oneOf: [
|
|
275
|
+
{
|
|
276
|
+
$ref: "#/components/schemas/BulkSendMessageRequestWithQuery"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
$ref: "#/components/schemas/BulkSendMessageRequest"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
type: "object",
|
|
283
|
+
required: ["job_id"],
|
|
284
|
+
properties: {
|
|
285
|
+
job_id: {
|
|
286
|
+
type: "string",
|
|
287
|
+
description: "Job ID for tracking the status of a bulk message request",
|
|
288
|
+
example: "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
289
|
+
},
|
|
290
|
+
action: {
|
|
291
|
+
type: "string",
|
|
292
|
+
description: "Trigger an APPROVE OR CANCEL action for the bulk message request.\n\n* APPROVE: Alias for APPROVE_WITH_CONSENT\n* APPROVE_WITH_CONSENT: Approve the bulk message request and send emails to queued recipients with consent\n* APPROVE_ALL: Approve the bulk message request and send emails to all queued recipients, including those without consent\n* CANCEL: Cancel the bulk message request\n",
|
|
293
|
+
enum: ["APPROVE", "APPROVE_WITH_CONSENT", "APPROVE_ALL", "CANCEL"]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
responses: {
|
|
303
|
+
"200": {
|
|
304
|
+
description: "Success",
|
|
305
|
+
content: {
|
|
306
|
+
"application/json": {
|
|
307
|
+
schema: {
|
|
308
|
+
$ref: "#/components/schemas/BulkSendMessageJob"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"403": {
|
|
314
|
+
description: "Forbidden"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"/v1/email-template/templates:revert": {
|
|
320
|
+
post: {
|
|
321
|
+
operationId: "revertToOriginalTemplate",
|
|
322
|
+
summary: "revertToOriginalTemplate",
|
|
323
|
+
description: "Revert to the original system generated email template",
|
|
324
|
+
tags: ["Email templates"],
|
|
325
|
+
requestBody: {
|
|
326
|
+
content: {
|
|
327
|
+
"application/json": {
|
|
328
|
+
schema: {
|
|
329
|
+
type: "object",
|
|
330
|
+
required: ["email_template_id"],
|
|
331
|
+
properties: {
|
|
332
|
+
email_template_id: {
|
|
333
|
+
type: "string",
|
|
334
|
+
example: "511ceb90-f738-47aa-8b1e-915ace0ae13c"
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
responses: {
|
|
342
|
+
"200": {
|
|
343
|
+
description: "Success"
|
|
344
|
+
},
|
|
345
|
+
"403": {
|
|
346
|
+
description: "Forbidden"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
var components = {
|
|
353
|
+
securitySchemes: {
|
|
354
|
+
EpilotAuth: {
|
|
355
|
+
type: "http",
|
|
356
|
+
scheme: "bearer",
|
|
357
|
+
description: "Authorization header with epilot OAuth2 bearer token",
|
|
358
|
+
bearerFormat: "JWT"
|
|
359
|
+
},
|
|
360
|
+
EpilotOrg: {
|
|
361
|
+
description: "Overrides the target organization to allow shared tenant access",
|
|
362
|
+
name: "x-epilot-org-id",
|
|
363
|
+
in: "header",
|
|
364
|
+
type: "apiKey"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
schemas: {
|
|
368
|
+
BaseEntity: {
|
|
369
|
+
type: "object",
|
|
370
|
+
required: ["_id", "_title", "_org", "_schema", "_created_at", "_updated_at"],
|
|
371
|
+
properties: {
|
|
372
|
+
_id: {
|
|
373
|
+
type: "string",
|
|
374
|
+
description: "Entity ID",
|
|
375
|
+
example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
376
|
+
},
|
|
377
|
+
_title: {
|
|
378
|
+
type: "string",
|
|
379
|
+
description: "Entity title"
|
|
380
|
+
},
|
|
381
|
+
_org: {
|
|
382
|
+
type: "string",
|
|
383
|
+
description: "Ivy Organization ID the entity belongs to",
|
|
384
|
+
example: "206801"
|
|
385
|
+
},
|
|
386
|
+
_schema: {
|
|
387
|
+
type: "string",
|
|
388
|
+
description: "URL-friendly identifier for the entity schema",
|
|
389
|
+
example: "message"
|
|
390
|
+
},
|
|
391
|
+
_tags: {
|
|
392
|
+
type: "array",
|
|
393
|
+
description: "Entity tags",
|
|
394
|
+
items: {
|
|
395
|
+
type: "string"
|
|
396
|
+
},
|
|
397
|
+
example: ["automatic email template"]
|
|
398
|
+
},
|
|
399
|
+
_created_at: {
|
|
400
|
+
type: "string",
|
|
401
|
+
description: "Created date",
|
|
402
|
+
format: "date-time",
|
|
403
|
+
example: "2021-02-09T12:41:43.662Z"
|
|
404
|
+
},
|
|
405
|
+
_updated_at: {
|
|
406
|
+
type: "string",
|
|
407
|
+
description: "Updated date",
|
|
408
|
+
format: "date-time",
|
|
409
|
+
example: "2021-02-10T09:14:31.990Z"
|
|
410
|
+
},
|
|
411
|
+
_purpose: {
|
|
412
|
+
type: "array",
|
|
413
|
+
description: "Entity Purposes",
|
|
414
|
+
items: {
|
|
415
|
+
type: "string"
|
|
416
|
+
},
|
|
417
|
+
example: ["a0ec23ac-12f8-4d89-9a63-91cba3787f2a", "310cd388-2f15-4b5b-8f98-ca14c1e03304"]
|
|
418
|
+
},
|
|
419
|
+
_manifest: {
|
|
420
|
+
type: "array",
|
|
421
|
+
description: "Manifest ID used to create/update the entity",
|
|
422
|
+
items: {
|
|
423
|
+
type: "string",
|
|
424
|
+
format: "uuid",
|
|
425
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
EmailTemplateRequest: {
|
|
431
|
+
type: "object",
|
|
432
|
+
required: ["name", "subject"],
|
|
433
|
+
properties: {
|
|
434
|
+
_id: {
|
|
435
|
+
type: "string",
|
|
436
|
+
example: "cd7809ba-a111-4dd9-8d15-18eb4de0faed"
|
|
437
|
+
},
|
|
438
|
+
_tags: {
|
|
439
|
+
type: "array",
|
|
440
|
+
description: "Entity tags",
|
|
441
|
+
items: {
|
|
442
|
+
type: "string"
|
|
443
|
+
},
|
|
444
|
+
example: ["template"]
|
|
445
|
+
},
|
|
446
|
+
_manifest: {
|
|
447
|
+
type: "array",
|
|
448
|
+
description: "Manifest ID used to create/update the entity",
|
|
449
|
+
items: {
|
|
450
|
+
type: "string",
|
|
451
|
+
format: "uuid",
|
|
452
|
+
example: "123e4567-e89b-12d3-a456-426614174000"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
_purpose: {
|
|
456
|
+
type: "array",
|
|
457
|
+
description: "Entity Purposes",
|
|
458
|
+
items: {
|
|
459
|
+
type: "string"
|
|
460
|
+
},
|
|
461
|
+
example: ["a0ec23ac-12f8-4d89-9a63-91cba3787f2a", "310cd388-2f15-4b5b-8f98-ca14c1e03304"]
|
|
462
|
+
},
|
|
463
|
+
name: {
|
|
464
|
+
description: "name",
|
|
465
|
+
type: "string",
|
|
466
|
+
example: "Order confirmation"
|
|
467
|
+
},
|
|
468
|
+
brand_id: {
|
|
469
|
+
description: "Brand ID. Equal 0 if available for All brands",
|
|
470
|
+
type: "number",
|
|
471
|
+
nullable: true,
|
|
472
|
+
example: 0
|
|
473
|
+
},
|
|
474
|
+
from: {
|
|
475
|
+
description: "From",
|
|
476
|
+
$ref: "#/components/schemas/From"
|
|
477
|
+
},
|
|
478
|
+
to: {
|
|
479
|
+
description: "To",
|
|
480
|
+
type: "array",
|
|
481
|
+
items: {
|
|
482
|
+
$ref: "#/components/schemas/To"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
cc: {
|
|
486
|
+
description: "Cc",
|
|
487
|
+
type: "array",
|
|
488
|
+
items: {
|
|
489
|
+
$ref: "#/components/schemas/To"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
bcc: {
|
|
493
|
+
description: "Bcc",
|
|
494
|
+
type: "array",
|
|
495
|
+
items: {
|
|
496
|
+
$ref: "#/components/schemas/To"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
subject: {
|
|
500
|
+
description: "Subject",
|
|
501
|
+
type: "string",
|
|
502
|
+
example: "We have received your order!"
|
|
503
|
+
},
|
|
504
|
+
body: {
|
|
505
|
+
description: "Body",
|
|
506
|
+
type: "string",
|
|
507
|
+
example: "Hi Ms Ny Huynh, </br> Thank you for your order. We will contact you shortly"
|
|
508
|
+
},
|
|
509
|
+
attachments: {
|
|
510
|
+
type: "array",
|
|
511
|
+
nullable: true,
|
|
512
|
+
description: "Email template attachments",
|
|
513
|
+
items: {
|
|
514
|
+
$ref: "#/components/schemas/Attachment"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
file: {
|
|
518
|
+
type: "object",
|
|
519
|
+
properties: {
|
|
520
|
+
$relation: {
|
|
521
|
+
type: "array",
|
|
522
|
+
description: "Entity tags",
|
|
523
|
+
items: {
|
|
524
|
+
type: "object"
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
system_template: {
|
|
530
|
+
description: "If template is created by system (Double Opt-in, CMD invitation,...) then true, and some attributes can not be edited such as Name, To,...\nRemember to add default content of template to [system-template.ts](https://gitlab.com/e-pilot/product/email-templates/svc-email-templates-api/-/blob/main/lambda/HandlerFunction/src/enum/system-template.ts) enum for revert to original feature\n",
|
|
531
|
+
type: "boolean",
|
|
532
|
+
example: false
|
|
533
|
+
},
|
|
534
|
+
created_by: {
|
|
535
|
+
description: "Created by",
|
|
536
|
+
type: "string",
|
|
537
|
+
example: 1234
|
|
538
|
+
},
|
|
539
|
+
updated_by: {
|
|
540
|
+
description: "Updated by",
|
|
541
|
+
type: "string",
|
|
542
|
+
example: 1234
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
EmailTemplateEntity: {
|
|
547
|
+
allOf: [
|
|
548
|
+
{
|
|
549
|
+
$ref: "#/components/schemas/BaseEntity"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
type: "object",
|
|
553
|
+
required: ["name"],
|
|
554
|
+
properties: {
|
|
555
|
+
name: {
|
|
556
|
+
description: "name",
|
|
557
|
+
type: "string",
|
|
558
|
+
example: "Order confirmation"
|
|
559
|
+
},
|
|
560
|
+
brand_id: {
|
|
561
|
+
description: "Brand ID. Equal 0 if available for All brands",
|
|
562
|
+
type: "number",
|
|
563
|
+
nullable: true,
|
|
564
|
+
example: 0
|
|
565
|
+
},
|
|
566
|
+
from: {
|
|
567
|
+
description: "From",
|
|
568
|
+
$ref: "#/components/schemas/From"
|
|
569
|
+
},
|
|
570
|
+
to: {
|
|
571
|
+
description: "To",
|
|
572
|
+
type: "array",
|
|
573
|
+
items: {
|
|
574
|
+
$ref: "#/components/schemas/To"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
cc: {
|
|
578
|
+
description: "Cc",
|
|
579
|
+
type: "array",
|
|
580
|
+
items: {
|
|
581
|
+
$ref: "#/components/schemas/To"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
bcc: {
|
|
585
|
+
description: "Bcc",
|
|
586
|
+
type: "array",
|
|
587
|
+
items: {
|
|
588
|
+
$ref: "#/components/schemas/To"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
subject: {
|
|
592
|
+
description: "Subject",
|
|
593
|
+
type: "string",
|
|
594
|
+
example: "We have received your order!"
|
|
595
|
+
},
|
|
596
|
+
body: {
|
|
597
|
+
description: "Body",
|
|
598
|
+
type: "string",
|
|
599
|
+
example: "Hi Ms Ny Huynh, </br> Thank you for your order. We will contact you shortly"
|
|
600
|
+
},
|
|
601
|
+
attachments: {
|
|
602
|
+
type: "array",
|
|
603
|
+
nullable: true,
|
|
604
|
+
description: "Email template attachments",
|
|
605
|
+
items: {
|
|
606
|
+
$ref: "#/components/schemas/Attachment"
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
file: {
|
|
610
|
+
type: "object",
|
|
611
|
+
properties: {
|
|
612
|
+
$relation: {
|
|
613
|
+
type: "array",
|
|
614
|
+
description: "Entity tags",
|
|
615
|
+
items: {
|
|
616
|
+
type: "object"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
created_by: {
|
|
622
|
+
description: "Created by",
|
|
623
|
+
type: "string",
|
|
624
|
+
example: 1234
|
|
625
|
+
},
|
|
626
|
+
updated_by: {
|
|
627
|
+
description: "Updated by",
|
|
628
|
+
type: "string",
|
|
629
|
+
example: 1234
|
|
630
|
+
},
|
|
631
|
+
system_template: {
|
|
632
|
+
description: "If template is created by system (Double Opt-in, CMD invitation,...) then true, and some attributes can not be edited such as Name, To,...\nRemember to add default content of template to system_template enum for revert to original feature\n",
|
|
633
|
+
type: "boolean",
|
|
634
|
+
example: false
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
Attachment: {
|
|
641
|
+
type: "object",
|
|
642
|
+
nullable: true,
|
|
643
|
+
required: ["filename", "size", "content_type", "bucket", "object_key"],
|
|
644
|
+
properties: {
|
|
645
|
+
cid: {
|
|
646
|
+
type: "string",
|
|
647
|
+
description: "Attachment ID",
|
|
648
|
+
example: "f820ce3b-07b0-45ae-bcc6-babb2f53f79f"
|
|
649
|
+
},
|
|
650
|
+
filename: {
|
|
651
|
+
type: "string",
|
|
652
|
+
description: "File name",
|
|
653
|
+
example: "Produktinformationen_epilot360_Double_Opt_in.pdf"
|
|
654
|
+
},
|
|
655
|
+
size: {
|
|
656
|
+
type: "number",
|
|
657
|
+
description: "File size in bytes",
|
|
658
|
+
example: 451349
|
|
659
|
+
},
|
|
660
|
+
content_type: {
|
|
661
|
+
type: "string",
|
|
662
|
+
description: "Content type",
|
|
663
|
+
example: "application/pdf"
|
|
664
|
+
},
|
|
665
|
+
url: {
|
|
666
|
+
type: "string",
|
|
667
|
+
description: "URL to download the attachment.",
|
|
668
|
+
example: "https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf"
|
|
669
|
+
},
|
|
670
|
+
bucket: {
|
|
671
|
+
type: "string",
|
|
672
|
+
description: "S3 bucket where file is stored",
|
|
673
|
+
example: "893487340562-message-attachment"
|
|
674
|
+
},
|
|
675
|
+
object_key: {
|
|
676
|
+
type: "string",
|
|
677
|
+
description: "S3 object apiKey",
|
|
678
|
+
example: "attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf"
|
|
679
|
+
},
|
|
680
|
+
inline: {
|
|
681
|
+
type: "boolean",
|
|
682
|
+
description: "If true then this attachment should not be offered for download (at least not in the main attachments list).\\\nThe usecase is CID embedded image (aka inline image).\n",
|
|
683
|
+
default: false
|
|
684
|
+
},
|
|
685
|
+
send_as_link: {
|
|
686
|
+
type: "boolean",
|
|
687
|
+
description: "If true then this attachment is sent via link. The link is already inserted to email body by API caller. In this case, service doesn't process this attachment.",
|
|
688
|
+
default: false
|
|
689
|
+
},
|
|
690
|
+
type: {
|
|
691
|
+
type: "string",
|
|
692
|
+
description: "File type such as Document template, Document,... Use for replace variables on document template",
|
|
693
|
+
example: "Document template"
|
|
694
|
+
},
|
|
695
|
+
copy_to_message: {
|
|
696
|
+
type: "boolean",
|
|
697
|
+
description: "If true then this attachment is copied to the message and replaces corresponding one",
|
|
698
|
+
default: true
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
From: {
|
|
703
|
+
type: "object",
|
|
704
|
+
required: ["email"],
|
|
705
|
+
properties: {
|
|
706
|
+
name: {
|
|
707
|
+
type: "string",
|
|
708
|
+
example: "epilot"
|
|
709
|
+
},
|
|
710
|
+
email: {
|
|
711
|
+
type: "string",
|
|
712
|
+
example: "no-reply@epilot.cloud"
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
To: {
|
|
717
|
+
type: "object",
|
|
718
|
+
required: ["email"],
|
|
719
|
+
properties: {
|
|
720
|
+
name: {
|
|
721
|
+
type: "string",
|
|
722
|
+
example: "Ny Huynh"
|
|
723
|
+
},
|
|
724
|
+
email: {
|
|
725
|
+
type: "string",
|
|
726
|
+
example: "ny.huynh@axonactive.com"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
PresignedRequest: {
|
|
731
|
+
type: "object",
|
|
732
|
+
required: ["id", "filename", "content_type"],
|
|
733
|
+
properties: {
|
|
734
|
+
id: {
|
|
735
|
+
description: "UUID",
|
|
736
|
+
type: "string",
|
|
737
|
+
example: "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
738
|
+
},
|
|
739
|
+
filename: {
|
|
740
|
+
description: "File name",
|
|
741
|
+
type: "string",
|
|
742
|
+
example: "order.pdf"
|
|
743
|
+
},
|
|
744
|
+
content_type: {
|
|
745
|
+
description: "Content type",
|
|
746
|
+
type: "string",
|
|
747
|
+
example: "application/pdf"
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
PresignedResponse: {
|
|
752
|
+
type: "object",
|
|
753
|
+
required: ["download_url", "upload_url"],
|
|
754
|
+
properties: {
|
|
755
|
+
download_url: {
|
|
756
|
+
type: "string",
|
|
757
|
+
description: "URL to download the attachment. This URL is not accessible until attachment is uploaded successfully.",
|
|
758
|
+
example: "https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf"
|
|
759
|
+
},
|
|
760
|
+
upload_url: {
|
|
761
|
+
description: "Post presigned URL to upload file",
|
|
762
|
+
type: "object",
|
|
763
|
+
required: ["url", "fields"],
|
|
764
|
+
properties: {
|
|
765
|
+
url: {
|
|
766
|
+
type: "number",
|
|
767
|
+
description: "URL to upload the attachment",
|
|
768
|
+
example: "https://s3.eu-central-1.amazonaws.com/893487340562-message-attachment"
|
|
769
|
+
},
|
|
770
|
+
fields: {
|
|
771
|
+
type: "object",
|
|
772
|
+
description: "Fields are provided by AWS to authenticate and validate the request. All fields should be included in form-data when performing upload request.",
|
|
773
|
+
example: {}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
AttachmentResponse: {
|
|
780
|
+
type: "object",
|
|
781
|
+
properties: {
|
|
782
|
+
total: {
|
|
783
|
+
description: "Total attachments",
|
|
784
|
+
type: "number",
|
|
785
|
+
example: 10
|
|
786
|
+
},
|
|
787
|
+
attachments: {
|
|
788
|
+
description: "List attachments",
|
|
789
|
+
type: "array",
|
|
790
|
+
items: {
|
|
791
|
+
type: "object",
|
|
792
|
+
properties: {
|
|
793
|
+
filename: {
|
|
794
|
+
description: "File name",
|
|
795
|
+
type: "string",
|
|
796
|
+
example: "order.docx"
|
|
797
|
+
},
|
|
798
|
+
bucket: {
|
|
799
|
+
description: "Bucket name",
|
|
800
|
+
type: "string",
|
|
801
|
+
example: "epilot-playground-upload-document"
|
|
802
|
+
},
|
|
803
|
+
object_key: {
|
|
804
|
+
description: "Object key",
|
|
805
|
+
type: "string",
|
|
806
|
+
example: "9f561bea-f0d9-4e96-b7a9-879fc1643ac0.docx"
|
|
807
|
+
},
|
|
808
|
+
url: {
|
|
809
|
+
description: "URL",
|
|
810
|
+
type: "string",
|
|
811
|
+
example: "https://epilot-playground-upload-document.s3.eu-central-1.amazonaws.com/9f561bea-f0d9-4e96-b7a9-879fc1643ac0.docx"
|
|
812
|
+
},
|
|
813
|
+
document_type: {
|
|
814
|
+
description: "Document type:\n* 0: Static docs\n* 1: Templates\n",
|
|
815
|
+
type: "number",
|
|
816
|
+
example: 0
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
UserResponse: {
|
|
824
|
+
type: "object",
|
|
825
|
+
properties: {
|
|
826
|
+
id: {
|
|
827
|
+
type: "string"
|
|
828
|
+
},
|
|
829
|
+
organization_id: {
|
|
830
|
+
type: "string"
|
|
831
|
+
},
|
|
832
|
+
display_name: {
|
|
833
|
+
type: "string",
|
|
834
|
+
description: "User's display name (default: email address)",
|
|
835
|
+
example: "Example User"
|
|
836
|
+
},
|
|
837
|
+
email: {
|
|
838
|
+
type: "string",
|
|
839
|
+
format: "email"
|
|
840
|
+
},
|
|
841
|
+
phone: {
|
|
842
|
+
type: "string",
|
|
843
|
+
nullable: true,
|
|
844
|
+
example: 1234567890
|
|
845
|
+
},
|
|
846
|
+
preferred_language: {
|
|
847
|
+
type: "string",
|
|
848
|
+
example: "de"
|
|
849
|
+
},
|
|
850
|
+
image_uri: {
|
|
851
|
+
type: "object",
|
|
852
|
+
additionalProperties: true,
|
|
853
|
+
properties: {
|
|
854
|
+
original: {
|
|
855
|
+
type: "string",
|
|
856
|
+
format: "uri"
|
|
857
|
+
},
|
|
858
|
+
thumbnail_32: {
|
|
859
|
+
type: "string",
|
|
860
|
+
format: "uri"
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
example: {
|
|
864
|
+
original: "https://account-profile-images.epilot.cloud/1/avatar.png",
|
|
865
|
+
thumbnail_32: "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
properties: {
|
|
869
|
+
type: "array",
|
|
870
|
+
items: {
|
|
871
|
+
type: "object",
|
|
872
|
+
properties: {
|
|
873
|
+
name: {
|
|
874
|
+
type: "string",
|
|
875
|
+
example: "profileImageName"
|
|
876
|
+
},
|
|
877
|
+
value: {
|
|
878
|
+
type: "string",
|
|
879
|
+
example: "avatar.png"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
required: ["name", "value"]
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
VariableParameters: {
|
|
888
|
+
type: "object",
|
|
889
|
+
properties: {
|
|
890
|
+
template_type: {
|
|
891
|
+
$ref: "#/components/schemas/TemplateType"
|
|
892
|
+
},
|
|
893
|
+
language: {
|
|
894
|
+
type: "string",
|
|
895
|
+
enum: ["en", "de"]
|
|
896
|
+
},
|
|
897
|
+
main_entity_id: {
|
|
898
|
+
type: "string",
|
|
899
|
+
description: "The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.",
|
|
900
|
+
example: "63753437-c9e2-4e83-82bb-b1c666514561"
|
|
901
|
+
},
|
|
902
|
+
user_id: {
|
|
903
|
+
type: "string",
|
|
904
|
+
description: "User ID",
|
|
905
|
+
example: "123452"
|
|
906
|
+
},
|
|
907
|
+
custom_variables: {
|
|
908
|
+
$ref: "#/components/schemas/CustomVariables"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
required: ["template_type"]
|
|
912
|
+
},
|
|
913
|
+
TemplateType: {
|
|
914
|
+
type: "string",
|
|
915
|
+
enum: ["email", "document"]
|
|
916
|
+
},
|
|
917
|
+
EmailTemplateResponse: {
|
|
918
|
+
type: "object",
|
|
919
|
+
properties: {
|
|
920
|
+
entity: {
|
|
921
|
+
$ref: "#/components/schemas/EmailTemplateEntity"
|
|
922
|
+
},
|
|
923
|
+
relations: {
|
|
924
|
+
type: "array",
|
|
925
|
+
items: {
|
|
926
|
+
type: "object"
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
AsyncEmailTemplateResponse: {
|
|
932
|
+
type: "object",
|
|
933
|
+
required: ["job_id", "status"],
|
|
934
|
+
properties: {
|
|
935
|
+
job_id: {
|
|
936
|
+
type: "string",
|
|
937
|
+
description: "Job ID of the email template that is requested to replace and generate docs",
|
|
938
|
+
example: "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
939
|
+
},
|
|
940
|
+
status: {
|
|
941
|
+
type: "string",
|
|
942
|
+
enum: ["STARTED", "PROCESSING", "SUCCESS", "FAILED"]
|
|
943
|
+
},
|
|
944
|
+
message: {
|
|
945
|
+
type: "string",
|
|
946
|
+
description: "Error message"
|
|
947
|
+
},
|
|
948
|
+
doc_progress_count: {
|
|
949
|
+
type: "object",
|
|
950
|
+
description: "Progress count of the documents that are needed to generate",
|
|
951
|
+
required: ["total", "completed"],
|
|
952
|
+
properties: {
|
|
953
|
+
total: {
|
|
954
|
+
type: "number",
|
|
955
|
+
description: "Total count",
|
|
956
|
+
example: 10
|
|
957
|
+
},
|
|
958
|
+
completed: {
|
|
959
|
+
type: "number",
|
|
960
|
+
description: "Completed count",
|
|
961
|
+
example: 5
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
result: {
|
|
966
|
+
type: "object",
|
|
967
|
+
description: "Result of the email template that is replaced along with generated docs",
|
|
968
|
+
properties: {
|
|
969
|
+
entity: {
|
|
970
|
+
$ref: "#/components/schemas/EmailTemplateEntity"
|
|
971
|
+
},
|
|
972
|
+
relations: {
|
|
973
|
+
type: "array",
|
|
974
|
+
items: {
|
|
975
|
+
type: "object"
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
SkipCreatingEntities: {
|
|
983
|
+
type: "boolean",
|
|
984
|
+
description: "When true, it lets to send only the email by skip creating the thread & message entities."
|
|
985
|
+
},
|
|
986
|
+
BulkSendMessageRequest: {
|
|
987
|
+
type: "object",
|
|
988
|
+
description: "It takes a list of entity ids, treating each as a separate mainEntity to construct individual messages.\nFor e.g; if there some opportunityIds are provided, then each opportunityId is treated as a separate mainEntity to construct individual messages.\n",
|
|
989
|
+
required: ["email_template_id", "recipient_ids"],
|
|
990
|
+
properties: {
|
|
991
|
+
skip_creating_entities: {
|
|
992
|
+
$ref: "#/components/schemas/SkipCreatingEntities"
|
|
993
|
+
},
|
|
994
|
+
email_template_id: {
|
|
995
|
+
type: "string",
|
|
996
|
+
description: "ID of email template to use for sending bulk emails",
|
|
997
|
+
example: "511ceb90-f738-47aa-8b1e-915ace0ae13c"
|
|
998
|
+
},
|
|
999
|
+
must_include_unsubscribe_link: {
|
|
1000
|
+
type: "boolean",
|
|
1001
|
+
description: "If true then include unsubscribe link in the email body\n",
|
|
1002
|
+
default: true
|
|
1003
|
+
},
|
|
1004
|
+
recipient_ids: {
|
|
1005
|
+
type: "array",
|
|
1006
|
+
description: "List of entity ids to use as recipients",
|
|
1007
|
+
items: {
|
|
1008
|
+
type: "string"
|
|
1009
|
+
},
|
|
1010
|
+
example: [
|
|
1011
|
+
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1012
|
+
"3fa85f64-5717-4562-b3fc-2c963f66afa7",
|
|
1013
|
+
"3fa85f64-5717-4562-b3fc-2c963f66afa8"
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
custom_variables: {
|
|
1017
|
+
$ref: "#/components/schemas/CustomVariables"
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
BulkSendMessageRequestWithQuery: {
|
|
1022
|
+
type: "object",
|
|
1023
|
+
description: "It takes an entity query to derive recipient_ids, treating each as a separate mainEntity to construct individual messages.\nFor e.g; if the query is provided as `_schema:opportunity AND status:PENDING`,\n then all the opportunity Ids with status PENDING are treated as separate mainEntity to construct individual messages.\n",
|
|
1024
|
+
required: ["email_template_id", "recipient_query"],
|
|
1025
|
+
properties: {
|
|
1026
|
+
skip_creating_entities: {
|
|
1027
|
+
$ref: "#/components/schemas/SkipCreatingEntities"
|
|
1028
|
+
},
|
|
1029
|
+
email_template_id: {
|
|
1030
|
+
type: "string",
|
|
1031
|
+
description: "ID of email template to use for sending bulk emails",
|
|
1032
|
+
example: "511ceb90-f738-47aa-8b1e-915ace0ae13c"
|
|
1033
|
+
},
|
|
1034
|
+
must_include_unsubscribe_link: {
|
|
1035
|
+
type: "boolean",
|
|
1036
|
+
description: "If true then include unsubscribe link in the email body\n",
|
|
1037
|
+
default: true
|
|
1038
|
+
},
|
|
1039
|
+
recipient_query: {
|
|
1040
|
+
type: "string",
|
|
1041
|
+
description: "Entity search query to select recipients",
|
|
1042
|
+
example: "_schema:contact AND consent_email_marketing:active"
|
|
1043
|
+
},
|
|
1044
|
+
custom_variables: {
|
|
1045
|
+
$ref: "#/components/schemas/CustomVariables"
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
CustomVariables: {
|
|
1050
|
+
description: "Custom variables to be replaced in the email template",
|
|
1051
|
+
type: "array",
|
|
1052
|
+
items: {
|
|
1053
|
+
type: "object",
|
|
1054
|
+
properties: {
|
|
1055
|
+
variable: {
|
|
1056
|
+
type: "string",
|
|
1057
|
+
description: "Template Variable Name",
|
|
1058
|
+
example: "{{abc.xyz}}"
|
|
1059
|
+
},
|
|
1060
|
+
value: {
|
|
1061
|
+
type: "string",
|
|
1062
|
+
description: "Value to be Replaced",
|
|
1063
|
+
example: "ReplacedValue"
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
BulkSendMessageJob: {
|
|
1069
|
+
type: "object",
|
|
1070
|
+
required: ["job_id", "status", "request"],
|
|
1071
|
+
properties: {
|
|
1072
|
+
org_id: {
|
|
1073
|
+
$ref: "#/components/schemas/OrgId"
|
|
1074
|
+
},
|
|
1075
|
+
job_id: {
|
|
1076
|
+
type: "string",
|
|
1077
|
+
description: "Job ID for tracking the status of bulk message action",
|
|
1078
|
+
example: "8c086140-f33e-4bb7-a993-50c0f2402c7b"
|
|
1079
|
+
},
|
|
1080
|
+
skip_creating_entities: {
|
|
1081
|
+
$ref: "#/components/schemas/SkipCreatingEntities"
|
|
1082
|
+
},
|
|
1083
|
+
status: {
|
|
1084
|
+
type: "string",
|
|
1085
|
+
description: "Status of the bulk message action\n* PROCESSING: Bulk message action is processing the request\n* QUEUEING: Bulk message action is generating emails to send in a queue\n* SENDING: Bulk message action is sending emails from the queue\n* SUCCESS: Bulk message action is completed successfully\n* FAILED: Bulk message action is failed\n* CANCELLED: Bulk message action was cancelled\n",
|
|
1086
|
+
enum: ["PROCESSING", "QUEUEING", "APPROVAL", "SENDING", "SUCCESS", "FAILED", "CANCELLED"]
|
|
1087
|
+
},
|
|
1088
|
+
request: {
|
|
1089
|
+
oneOf: [
|
|
1090
|
+
{
|
|
1091
|
+
$ref: "#/components/schemas/BulkSendMessageRequest"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
$ref: "#/components/schemas/BulkSendMessageRequestWithQuery"
|
|
1095
|
+
}
|
|
1096
|
+
]
|
|
1097
|
+
},
|
|
1098
|
+
created_by: {
|
|
1099
|
+
$ref: "#/components/schemas/CreatedBy"
|
|
1100
|
+
},
|
|
1101
|
+
created_at: {
|
|
1102
|
+
$ref: "#/components/schemas/CreatedAt"
|
|
1103
|
+
},
|
|
1104
|
+
updated_at: {
|
|
1105
|
+
$ref: "#/components/schemas/UpdatedAt"
|
|
1106
|
+
},
|
|
1107
|
+
approved_at: {
|
|
1108
|
+
$ref: "#/components/schemas/ApprovedAt"
|
|
1109
|
+
},
|
|
1110
|
+
approve_action: {
|
|
1111
|
+
$ref: "#/components/schemas/ApproveAction"
|
|
1112
|
+
},
|
|
1113
|
+
task_token: {
|
|
1114
|
+
$ref: "#/components/schemas/TaskToken"
|
|
1115
|
+
},
|
|
1116
|
+
total_queued: {
|
|
1117
|
+
type: "integer",
|
|
1118
|
+
description: "Total number of emails generated and queued for sending",
|
|
1119
|
+
example: 100,
|
|
1120
|
+
deprecated: true
|
|
1121
|
+
},
|
|
1122
|
+
queued: {
|
|
1123
|
+
type: "array",
|
|
1124
|
+
description: "List of entity ids that are queued for sending",
|
|
1125
|
+
items: {
|
|
1126
|
+
type: "object",
|
|
1127
|
+
required: ["entity_id", "email_to", "email_with_consent"],
|
|
1128
|
+
properties: {
|
|
1129
|
+
entity_id: {
|
|
1130
|
+
type: "string",
|
|
1131
|
+
description: "Recipient Entity ID",
|
|
1132
|
+
example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
1133
|
+
},
|
|
1134
|
+
email_to: {
|
|
1135
|
+
description: "Recipient emails",
|
|
1136
|
+
type: "array",
|
|
1137
|
+
items: {
|
|
1138
|
+
type: "string",
|
|
1139
|
+
description: "Recipient email address",
|
|
1140
|
+
example: "recipient@example.com"
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
email_with_consent: {
|
|
1144
|
+
description: "Recipient emails with consent",
|
|
1145
|
+
type: "array",
|
|
1146
|
+
items: {
|
|
1147
|
+
type: "string",
|
|
1148
|
+
description: "Recipient email address",
|
|
1149
|
+
example: "recipient@example.com"
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
sent: {
|
|
1156
|
+
type: "array",
|
|
1157
|
+
description: "List of entity ids and message ids that were sent successfully",
|
|
1158
|
+
items: {
|
|
1159
|
+
type: "object",
|
|
1160
|
+
required: ["entity_id", "message_id"],
|
|
1161
|
+
properties: {
|
|
1162
|
+
entity_id: {
|
|
1163
|
+
type: "string",
|
|
1164
|
+
description: "Recipient Entity ID",
|
|
1165
|
+
example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
1166
|
+
},
|
|
1167
|
+
message_id: {
|
|
1168
|
+
type: "string",
|
|
1169
|
+
description: "Message ID",
|
|
1170
|
+
example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
1171
|
+
},
|
|
1172
|
+
email_to: {
|
|
1173
|
+
type: "array",
|
|
1174
|
+
items: {
|
|
1175
|
+
type: "string",
|
|
1176
|
+
description: "Recipient email address",
|
|
1177
|
+
example: "recipient@example.com"
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
failed: {
|
|
1184
|
+
type: "array",
|
|
1185
|
+
description: "List of entity ids that were skipped or failed",
|
|
1186
|
+
items: {
|
|
1187
|
+
type: "object",
|
|
1188
|
+
required: ["entity_id", "error"],
|
|
1189
|
+
properties: {
|
|
1190
|
+
entity_id: {
|
|
1191
|
+
type: "string",
|
|
1192
|
+
description: "Recipient Entity ID",
|
|
1193
|
+
example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
1194
|
+
},
|
|
1195
|
+
error: {
|
|
1196
|
+
type: "string",
|
|
1197
|
+
description: "Error message"
|
|
1198
|
+
},
|
|
1199
|
+
email_to: {
|
|
1200
|
+
type: "array",
|
|
1201
|
+
items: {
|
|
1202
|
+
type: "string",
|
|
1203
|
+
description: "Recipient email address",
|
|
1204
|
+
example: "recipient@example.com"
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
CreateSystemTemplatesReq: {
|
|
1213
|
+
type: "object",
|
|
1214
|
+
properties: {
|
|
1215
|
+
template_names: {
|
|
1216
|
+
type: "array",
|
|
1217
|
+
items: {
|
|
1218
|
+
type: "string"
|
|
1219
|
+
},
|
|
1220
|
+
example: ["DoubleOptIn_Email_DE", "Einladung Kundenportal", "Partner_Kooperation_Email_DE"]
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
required: ["template_names"]
|
|
1224
|
+
},
|
|
1225
|
+
CreateSystemTemplatesResp: {
|
|
1226
|
+
type: "array",
|
|
1227
|
+
items: {
|
|
1228
|
+
$ref: "#/components/schemas/BaseEntity"
|
|
1229
|
+
}
|
|
1230
|
+
},
|
|
1231
|
+
OrgId: {
|
|
1232
|
+
type: "string",
|
|
1233
|
+
description: "Organization ID",
|
|
1234
|
+
example: "206801",
|
|
1235
|
+
readOnly: true
|
|
1236
|
+
},
|
|
1237
|
+
CreatedBy: {
|
|
1238
|
+
type: "string",
|
|
1239
|
+
description: "User ID who created the bulk message action",
|
|
1240
|
+
example: "1234",
|
|
1241
|
+
readOnly: true
|
|
1242
|
+
},
|
|
1243
|
+
CreatedAt: {
|
|
1244
|
+
type: "string",
|
|
1245
|
+
description: "Time when the bulk message action was created",
|
|
1246
|
+
format: "date-time",
|
|
1247
|
+
readOnly: true
|
|
1248
|
+
},
|
|
1249
|
+
UpdatedAt: {
|
|
1250
|
+
type: "string",
|
|
1251
|
+
description: "Time when the bulk message action was last updated",
|
|
1252
|
+
format: "date-time",
|
|
1253
|
+
readOnly: true
|
|
1254
|
+
},
|
|
1255
|
+
ApprovedAt: {
|
|
1256
|
+
type: "string",
|
|
1257
|
+
description: "Time when the bulk message action was last approved",
|
|
1258
|
+
format: "date-time",
|
|
1259
|
+
readOnly: true
|
|
1260
|
+
},
|
|
1261
|
+
ApproveAction: {
|
|
1262
|
+
type: "string",
|
|
1263
|
+
description: "Type of approval action for the bulk message request.\n* APPROVE_WITH_CONSENT: Approve the bulk message request and send emails to queued recipients with consent\n* APPROVE_ALL: Approve the bulk message request and send emails to all queued recipients, including those without consent\n",
|
|
1264
|
+
enum: ["APPROVE_WITH_CONSENT", "APPROVE_ALL"],
|
|
1265
|
+
readOnly: true
|
|
1266
|
+
},
|
|
1267
|
+
TaskToken: {
|
|
1268
|
+
type: "string",
|
|
1269
|
+
description: "Task token to approve or cancel the bulk message action",
|
|
1270
|
+
example: "8c086140-f33e-4bb7-a993-50c0f2402c7b",
|
|
1271
|
+
readOnly: true
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
var servers = [
|
|
1276
|
+
{
|
|
1277
|
+
url: "https://email-template.sls.epilot.io"
|
|
1278
|
+
}
|
|
1279
|
+
];
|
|
1280
|
+
var email_template_default = {
|
|
1281
|
+
openapi,
|
|
1282
|
+
info,
|
|
1283
|
+
tags,
|
|
1284
|
+
"x-tagGroups": [
|
|
1285
|
+
{
|
|
1286
|
+
name: "APIs",
|
|
1287
|
+
tags: ["Email templates", "Variables"]
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
name: "Schemas",
|
|
1291
|
+
tags: ["email_template_schema"]
|
|
1292
|
+
}
|
|
1293
|
+
],
|
|
1294
|
+
security,
|
|
1295
|
+
paths,
|
|
1296
|
+
components,
|
|
1297
|
+
servers
|
|
1298
|
+
};
|
|
1299
|
+
export {
|
|
1300
|
+
components,
|
|
1301
|
+
email_template_default as default,
|
|
1302
|
+
info,
|
|
1303
|
+
openapi,
|
|
1304
|
+
paths,
|
|
1305
|
+
security,
|
|
1306
|
+
servers,
|
|
1307
|
+
tags
|
|
1308
|
+
};
|