@epilot/sdk 2.0.0-beta.3 → 2.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/definitions/access-token-runtime.json +1 -0
  2. package/definitions/access-token.json +663 -0
  3. package/definitions/address-runtime.json +1 -0
  4. package/definitions/address-suggestions-runtime.json +1 -0
  5. package/definitions/address-suggestions.json +582 -0
  6. package/definitions/address.json +578 -0
  7. package/definitions/ai-agents-runtime.json +1 -0
  8. package/definitions/ai-agents.json +1711 -0
  9. package/definitions/app-runtime.json +1 -0
  10. package/definitions/app.json +4443 -0
  11. package/definitions/audit-logs-runtime.json +1 -0
  12. package/definitions/audit-logs.json +305 -0
  13. package/definitions/automation-runtime.json +1 -0
  14. package/definitions/automation.json +4850 -0
  15. package/definitions/billing-runtime.json +1 -0
  16. package/definitions/billing.json +837 -0
  17. package/definitions/blueprint-manifest-runtime.json +1 -0
  18. package/definitions/blueprint-manifest.json +3376 -0
  19. package/definitions/consent-runtime.json +1 -0
  20. package/definitions/consent.json +344 -0
  21. package/definitions/customer-portal-runtime.json +1 -0
  22. package/definitions/customer-portal.json +15000 -0
  23. package/definitions/dashboard-runtime.json +1 -0
  24. package/definitions/dashboard.json +484 -0
  25. package/definitions/data-management-runtime.json +1 -0
  26. package/definitions/data-management.json +962 -0
  27. package/definitions/deduplication-runtime.json +1 -0
  28. package/definitions/deduplication.json +183 -0
  29. package/definitions/design-runtime.json +1 -0
  30. package/definitions/design.json +1423 -0
  31. package/definitions/document-runtime.json +1 -0
  32. package/definitions/document.json +758 -0
  33. package/definitions/email-settings-runtime.json +1 -0
  34. package/definitions/email-settings.json +2627 -0
  35. package/definitions/email-template-runtime.json +1 -0
  36. package/definitions/email-template.json +1419 -0
  37. package/definitions/entity-mapping-runtime.json +1 -0
  38. package/definitions/entity-mapping.json +1642 -0
  39. package/definitions/entity-runtime.json +1 -0
  40. package/definitions/entity.json +10074 -0
  41. package/definitions/environments-runtime.json +1 -0
  42. package/definitions/environments.json +363 -0
  43. package/definitions/erp-integration-runtime.json +1 -0
  44. package/definitions/erp-integration.json +5845 -0
  45. package/definitions/event-catalog-runtime.json +1 -0
  46. package/definitions/event-catalog.json +1051 -0
  47. package/definitions/file-runtime.json +1 -0
  48. package/definitions/file.json +2842 -0
  49. package/definitions/iban-runtime.json +1 -0
  50. package/definitions/iban.json +132 -0
  51. package/definitions/journey-runtime.json +1 -0
  52. package/definitions/journey.json +2341 -0
  53. package/definitions/kanban-runtime.json +1 -0
  54. package/definitions/kanban.json +929 -0
  55. package/definitions/message-runtime.json +1 -0
  56. package/definitions/message.json +2660 -0
  57. package/definitions/metering-runtime.json +1 -0
  58. package/definitions/metering.json +2321 -0
  59. package/definitions/notes-runtime.json +1 -0
  60. package/definitions/notes.json +1531 -0
  61. package/definitions/notification-runtime.json +1 -0
  62. package/definitions/notification.json +1425 -0
  63. package/definitions/organization-runtime.json +1 -0
  64. package/definitions/organization.json +629 -0
  65. package/definitions/partner-directory-runtime.json +1 -0
  66. package/definitions/partner-directory.json +1718 -0
  67. package/definitions/permissions-runtime.json +1 -0
  68. package/definitions/permissions.json +1480 -0
  69. package/definitions/pricing-runtime.json +1 -0
  70. package/definitions/pricing-tier-runtime.json +1 -0
  71. package/definitions/pricing-tier.json +105 -0
  72. package/definitions/pricing.json +9884 -0
  73. package/definitions/purpose-runtime.json +1 -0
  74. package/definitions/purpose.json +524 -0
  75. package/definitions/sandbox-runtime.json +1 -0
  76. package/definitions/sandbox.json +453 -0
  77. package/definitions/submission-runtime.json +1 -0
  78. package/definitions/submission.json +313 -0
  79. package/definitions/targeting-runtime.json +1 -0
  80. package/definitions/targeting.json +1474 -0
  81. package/definitions/template-variables-runtime.json +1 -0
  82. package/definitions/template-variables.json +1408 -0
  83. package/definitions/user-runtime.json +1 -0
  84. package/definitions/user.json +2408 -0
  85. package/definitions/validation-rules-runtime.json +1 -0
  86. package/definitions/validation-rules.json +1491 -0
  87. package/definitions/webhooks-runtime.json +1 -0
  88. package/definitions/webhooks.json +1525 -0
  89. package/definitions/workflow-definition-runtime.json +1 -0
  90. package/definitions/workflow-definition.json +3417 -0
  91. package/definitions/workflow-runtime.json +1 -0
  92. package/definitions/workflow.json +4106 -0
  93. package/dist/{access-token.d-BuXO-21p.d.cts → access-token.d-CnmUTOlq.d.cts} +1 -1
  94. package/dist/{access-token.d-BuXO-21p.d.ts → access-token.d-CnmUTOlq.d.ts} +1 -1
  95. package/dist/{address-suggestions.d-Cay0qOfA.d.cts → address-suggestions.d-_YwTOR-9.d.cts} +1 -1
  96. package/dist/{address-suggestions.d-Cay0qOfA.d.ts → address-suggestions.d-_YwTOR-9.d.ts} +1 -1
  97. package/dist/{address.d-D-oZY0rk.d.cts → address.d-CwAPOVxa.d.cts} +1 -1
  98. package/dist/{address.d-D-oZY0rk.d.ts → address.d-CwAPOVxa.d.ts} +1 -1
  99. package/dist/{ai-agents.d-B4_CZTCP.d.cts → ai-agents.d-OkXfr2bz.d.cts} +1 -1
  100. package/dist/{ai-agents.d-B4_CZTCP.d.ts → ai-agents.d-OkXfr2bz.d.ts} +1 -1
  101. package/dist/apis/access-token.cjs +13 -84
  102. package/dist/apis/access-token.d.cts +3 -3
  103. package/dist/apis/access-token.d.ts +3 -3
  104. package/dist/apis/access-token.js +11 -82
  105. package/dist/apis/address-suggestions.cjs +13 -127
  106. package/dist/apis/address-suggestions.d.cts +3 -3
  107. package/dist/apis/address-suggestions.d.ts +3 -3
  108. package/dist/apis/address-suggestions.js +11 -125
  109. package/dist/apis/address.cjs +13 -79
  110. package/dist/apis/address.d.cts +3 -3
  111. package/dist/apis/address.d.ts +3 -3
  112. package/dist/apis/address.js +11 -77
  113. package/dist/apis/ai-agents.cjs +13 -210
  114. package/dist/apis/ai-agents.d.cts +3 -3
  115. package/dist/apis/ai-agents.d.ts +3 -3
  116. package/dist/apis/ai-agents.js +11 -208
  117. package/dist/apis/app.cjs +13 -568
  118. package/dist/apis/app.d.cts +3 -3
  119. package/dist/apis/app.d.ts +3 -3
  120. package/dist/apis/app.js +11 -566
  121. package/dist/apis/audit-logs.cjs +13 -50
  122. package/dist/apis/audit-logs.d.cts +3 -3
  123. package/dist/apis/audit-logs.d.ts +3 -3
  124. package/dist/apis/audit-logs.js +11 -48
  125. package/dist/apis/automation.cjs +13 -277
  126. package/dist/apis/automation.d.cts +3 -3
  127. package/dist/apis/automation.d.ts +3 -3
  128. package/dist/apis/automation.js +11 -275
  129. package/dist/apis/billing.cjs +13 -170
  130. package/dist/apis/billing.d.cts +3 -3
  131. package/dist/apis/billing.d.ts +3 -3
  132. package/dist/apis/billing.js +11 -168
  133. package/dist/apis/blueprint-manifest.cjs +13 -499
  134. package/dist/apis/blueprint-manifest.d.cts +3 -3
  135. package/dist/apis/blueprint-manifest.d.ts +3 -3
  136. package/dist/apis/blueprint-manifest.js +11 -497
  137. package/dist/apis/consent.cjs +13 -79
  138. package/dist/apis/consent.d.cts +3 -3
  139. package/dist/apis/consent.d.ts +3 -3
  140. package/dist/apis/consent.js +11 -77
  141. package/dist/apis/customer-portal.cjs +13 -2247
  142. package/dist/apis/customer-portal.d.cts +3 -3
  143. package/dist/apis/customer-portal.d.ts +3 -3
  144. package/dist/apis/customer-portal.js +11 -2245
  145. package/dist/apis/dashboard.cjs +13 -79
  146. package/dist/apis/dashboard.d.cts +3 -3
  147. package/dist/apis/dashboard.d.ts +3 -3
  148. package/dist/apis/dashboard.js +11 -77
  149. package/dist/apis/data-management.cjs +13 -235
  150. package/dist/apis/data-management.d.cts +3 -3
  151. package/dist/apis/data-management.d.ts +3 -3
  152. package/dist/apis/data-management.js +11 -233
  153. package/dist/apis/deduplication.cjs +13 -37
  154. package/dist/apis/deduplication.d.cts +3 -3
  155. package/dist/apis/deduplication.d.ts +3 -3
  156. package/dist/apis/deduplication.js +11 -35
  157. package/dist/apis/design.cjs +13 -214
  158. package/dist/apis/design.d.cts +3 -3
  159. package/dist/apis/design.d.ts +3 -3
  160. package/dist/apis/design.js +11 -212
  161. package/dist/apis/document.cjs +13 -73
  162. package/dist/apis/document.d.cts +3 -3
  163. package/dist/apis/document.d.ts +3 -3
  164. package/dist/apis/document.js +11 -71
  165. package/dist/apis/email-settings.cjs +13 -528
  166. package/dist/apis/email-settings.d.cts +3 -3
  167. package/dist/apis/email-settings.d.ts +3 -3
  168. package/dist/apis/email-settings.js +11 -526
  169. package/dist/apis/email-template.cjs +13 -117
  170. package/dist/apis/email-template.d.cts +3 -3
  171. package/dist/apis/email-template.d.ts +3 -3
  172. package/dist/apis/email-template.js +11 -115
  173. package/dist/apis/entity-mapping.cjs +13 -210
  174. package/dist/apis/entity-mapping.d.cts +3 -3
  175. package/dist/apis/entity-mapping.d.ts +3 -3
  176. package/dist/apis/entity-mapping.js +11 -208
  177. package/dist/apis/entity.cjs +13 -1595
  178. package/dist/apis/entity.d.cts +3 -3
  179. package/dist/apis/entity.d.ts +3 -3
  180. package/dist/apis/entity.js +11 -1593
  181. package/dist/apis/environments.cjs +13 -66
  182. package/dist/apis/environments.d.cts +3 -3
  183. package/dist/apis/environments.d.ts +3 -3
  184. package/dist/apis/environments.js +11 -64
  185. package/dist/apis/erp-integration.cjs +13 -581
  186. package/dist/apis/erp-integration.d.cts +3 -3
  187. package/dist/apis/erp-integration.d.ts +3 -3
  188. package/dist/apis/erp-integration.js +11 -579
  189. package/dist/apis/event-catalog.cjs +13 -125
  190. package/dist/apis/event-catalog.d.cts +3 -3
  191. package/dist/apis/event-catalog.d.ts +3 -3
  192. package/dist/apis/event-catalog.js +11 -123
  193. package/dist/apis/file.cjs +13 -568
  194. package/dist/apis/file.d.cts +3 -3
  195. package/dist/apis/file.d.ts +3 -3
  196. package/dist/apis/file.js +11 -566
  197. package/dist/apis/iban.cjs +13 -38
  198. package/dist/apis/iban.d.cts +3 -3
  199. package/dist/apis/iban.d.ts +3 -3
  200. package/dist/apis/iban.js +11 -36
  201. package/dist/apis/journey.cjs +13 -265
  202. package/dist/apis/journey.d.cts +3 -3
  203. package/dist/apis/journey.d.ts +3 -3
  204. package/dist/apis/journey.js +11 -263
  205. package/dist/apis/kanban.cjs +13 -159
  206. package/dist/apis/kanban.d.cts +3 -3
  207. package/dist/apis/kanban.d.ts +3 -3
  208. package/dist/apis/kanban.js +11 -157
  209. package/dist/apis/message.cjs +13 -668
  210. package/dist/apis/message.d.cts +3 -3
  211. package/dist/apis/message.d.ts +3 -3
  212. package/dist/apis/message.js +11 -666
  213. package/dist/apis/metering.cjs +13 -394
  214. package/dist/apis/metering.d.cts +3 -3
  215. package/dist/apis/metering.d.ts +3 -3
  216. package/dist/apis/metering.js +11 -392
  217. package/dist/apis/notes.cjs +13 -214
  218. package/dist/apis/notes.d.cts +3 -3
  219. package/dist/apis/notes.d.ts +3 -3
  220. package/dist/apis/notes.js +11 -212
  221. package/dist/apis/notification.cjs +13 -232
  222. package/dist/apis/notification.d.cts +3 -3
  223. package/dist/apis/notification.d.ts +3 -3
  224. package/dist/apis/notification.js +11 -230
  225. package/dist/apis/organization.cjs +13 -113
  226. package/dist/apis/organization.d.cts +3 -3
  227. package/dist/apis/organization.d.ts +3 -3
  228. package/dist/apis/organization.js +11 -111
  229. package/dist/apis/partner-directory.cjs +13 -277
  230. package/dist/apis/partner-directory.d.cts +3 -3
  231. package/dist/apis/partner-directory.d.ts +3 -3
  232. package/dist/apis/partner-directory.js +11 -275
  233. package/dist/apis/permissions.cjs +13 -173
  234. package/dist/apis/permissions.d.cts +3 -3
  235. package/dist/apis/permissions.d.ts +3 -3
  236. package/dist/apis/permissions.js +11 -171
  237. package/dist/apis/pricing-tier.cjs +14 -32
  238. package/dist/apis/pricing-tier.d.cts +3 -3
  239. package/dist/apis/pricing-tier.d.ts +3 -3
  240. package/dist/apis/pricing-tier.js +11 -29
  241. package/dist/apis/pricing.cjs +13 -434
  242. package/dist/apis/pricing.d.cts +3 -3
  243. package/dist/apis/pricing.d.ts +3 -3
  244. package/dist/apis/pricing.js +11 -432
  245. package/dist/apis/purpose.cjs +13 -175
  246. package/dist/apis/purpose.d.cts +3 -3
  247. package/dist/apis/purpose.d.ts +3 -3
  248. package/dist/apis/purpose.js +11 -173
  249. package/dist/apis/sandbox.cjs +13 -95
  250. package/dist/apis/sandbox.d.cts +3 -3
  251. package/dist/apis/sandbox.d.ts +3 -3
  252. package/dist/apis/sandbox.js +11 -93
  253. package/dist/apis/submission.cjs +13 -50
  254. package/dist/apis/submission.d.cts +3 -3
  255. package/dist/apis/submission.d.ts +3 -3
  256. package/dist/apis/submission.js +11 -48
  257. package/dist/apis/targeting.cjs +13 -270
  258. package/dist/apis/targeting.d.cts +3 -3
  259. package/dist/apis/targeting.d.ts +3 -3
  260. package/dist/apis/targeting.js +11 -268
  261. package/dist/apis/template-variables.cjs +13 -154
  262. package/dist/apis/template-variables.d.cts +3 -3
  263. package/dist/apis/template-variables.d.ts +3 -3
  264. package/dist/apis/template-variables.js +11 -152
  265. package/dist/apis/user.cjs +13 -483
  266. package/dist/apis/user.d.cts +3 -3
  267. package/dist/apis/user.d.ts +3 -3
  268. package/dist/apis/user.js +11 -481
  269. package/dist/apis/validation-rules.cjs +13 -115
  270. package/dist/apis/validation-rules.d.cts +3 -3
  271. package/dist/apis/validation-rules.d.ts +3 -3
  272. package/dist/apis/validation-rules.js +11 -113
  273. package/dist/apis/webhooks.cjs +13 -247
  274. package/dist/apis/webhooks.d.cts +3 -3
  275. package/dist/apis/webhooks.d.ts +3 -3
  276. package/dist/apis/webhooks.js +11 -245
  277. package/dist/apis/workflow-definition.cjs +13 -337
  278. package/dist/apis/workflow-definition.d.cts +3 -3
  279. package/dist/apis/workflow-definition.d.ts +3 -3
  280. package/dist/apis/workflow-definition.js +11 -335
  281. package/dist/apis/workflow.cjs +13 -397
  282. package/dist/apis/workflow.d.cts +3 -3
  283. package/dist/apis/workflow.d.ts +3 -3
  284. package/dist/apis/workflow.js +11 -395
  285. package/dist/{app.d-BKyfin-q.d.cts → app.d-Dr03n4J4.d.cts} +1 -1
  286. package/dist/{app.d-BKyfin-q.d.ts → app.d-Dr03n4J4.d.ts} +1 -1
  287. package/dist/{audit-logs.d-19BKb-ur.d.cts → audit-logs.d-BRToFqeX.d.cts} +1 -1
  288. package/dist/{audit-logs.d-19BKb-ur.d.ts → audit-logs.d-BRToFqeX.d.ts} +1 -1
  289. package/dist/{automation.d-DKl2VtnW.d.cts → automation.d-sRCRiHKf.d.cts} +1 -1
  290. package/dist/{automation.d-DKl2VtnW.d.ts → automation.d-sRCRiHKf.d.ts} +1 -1
  291. package/dist/{billing.d-58fUMBqj.d.cts → billing.d-Bs8Ku9qE.d.cts} +1 -1
  292. package/dist/{billing.d-58fUMBqj.d.ts → billing.d-Bs8Ku9qE.d.ts} +1 -1
  293. package/dist/{blueprint-manifest.d-Bu1GyXFW.d.cts → blueprint-manifest.d-CEWRdF3i.d.cts} +1 -1
  294. package/dist/{blueprint-manifest.d-Bu1GyXFW.d.ts → blueprint-manifest.d-CEWRdF3i.d.ts} +1 -1
  295. package/dist/{chunk-D7ICL3AM.cjs → chunk-5LXNSDG2.cjs} +51 -2
  296. package/dist/{chunk-DGCGLG7G.js → chunk-QMQNMCOC.js} +49 -0
  297. package/dist/{consent.d-CQ88IEj0.d.cts → consent.d-C2PROHhX.d.cts} +1 -1
  298. package/dist/{consent.d-CQ88IEj0.d.ts → consent.d-C2PROHhX.d.ts} +1 -1
  299. package/dist/{customer-portal.d-EyndRWh6.d.cts → customer-portal.d-D7cJvhBK.d.cts} +1 -1
  300. package/dist/{customer-portal.d-EyndRWh6.d.ts → customer-portal.d-D7cJvhBK.d.ts} +1 -1
  301. package/dist/{dashboard.d-AE3RQ6zo.d.cts → dashboard.d-CsGcA74I.d.cts} +1 -1
  302. package/dist/{dashboard.d-AE3RQ6zo.d.ts → dashboard.d-CsGcA74I.d.ts} +1 -1
  303. package/dist/{data-management.d-CNExsqJQ.d.cts → data-management.d-pnuiRU2h.d.cts} +1 -1
  304. package/dist/{data-management.d-CNExsqJQ.d.ts → data-management.d-pnuiRU2h.d.ts} +1 -1
  305. package/dist/{deduplication.d-DCeJzdbM.d.cts → deduplication.d-w_2aJD5f.d.cts} +1 -1
  306. package/dist/{deduplication.d-DCeJzdbM.d.ts → deduplication.d-w_2aJD5f.d.ts} +1 -1
  307. package/dist/{design.d-CkwgJ78Z.d.cts → design.d-eA-irKEX.d.cts} +1 -1
  308. package/dist/{design.d-CkwgJ78Z.d.ts → design.d-eA-irKEX.d.ts} +1 -1
  309. package/dist/{document.d-Y8i32qNV.d.cts → document.d-DN37pjdx.d.cts} +1 -1
  310. package/dist/{document.d-Y8i32qNV.d.ts → document.d-DN37pjdx.d.ts} +1 -1
  311. package/dist/{email-settings.d-CPAsRFWN.d.cts → email-settings.d-BXxYjVDr.d.cts} +1 -1
  312. package/dist/{email-settings.d-CPAsRFWN.d.ts → email-settings.d-BXxYjVDr.d.ts} +1 -1
  313. package/dist/{email-template.d-CQqiCN0N.d.cts → email-template.d-BeqkDHtk.d.cts} +1 -1
  314. package/dist/{email-template.d-CQqiCN0N.d.ts → email-template.d-BeqkDHtk.d.ts} +1 -1
  315. package/dist/{entity-mapping.d-DiqXqJWb.d.cts → entity-mapping.d-DKSW3sfy.d.cts} +1 -1
  316. package/dist/{entity-mapping.d-DiqXqJWb.d.ts → entity-mapping.d-DKSW3sfy.d.ts} +1 -1
  317. package/dist/{entity.d-BtT4mdq4.d.cts → entity.d-CrtZaZr8.d.cts} +1 -1
  318. package/dist/{entity.d-BtT4mdq4.d.ts → entity.d-CrtZaZr8.d.ts} +1 -1
  319. package/dist/{environments.d-C1xIs8N2.d.cts → environments.d-H3LK_KuH.d.cts} +1 -1
  320. package/dist/{environments.d-C1xIs8N2.d.ts → environments.d-H3LK_KuH.d.ts} +1 -1
  321. package/dist/{erp-integration.d-CNLzgl4L.d.cts → erp-integration.d-3LmxMirP.d.cts} +1 -1
  322. package/dist/{erp-integration.d-CNLzgl4L.d.ts → erp-integration.d-3LmxMirP.d.ts} +1 -1
  323. package/dist/{event-catalog.d-DW1dOyVh.d.cts → event-catalog.d-ENw6HO-w.d.cts} +1 -1
  324. package/dist/{event-catalog.d-DW1dOyVh.d.ts → event-catalog.d-ENw6HO-w.d.ts} +1 -1
  325. package/dist/{file.d-Bpdt2ORN.d.cts → file.d-DcTJxjp7.d.cts} +1 -1
  326. package/dist/{file.d-Bpdt2ORN.d.ts → file.d-DcTJxjp7.d.ts} +1 -1
  327. package/dist/{iban.d-3_7FEsbx.d.cts → iban.d-BwdiGbxi.d.cts} +1 -1
  328. package/dist/{iban.d-3_7FEsbx.d.ts → iban.d-BwdiGbxi.d.ts} +1 -1
  329. package/dist/index.cjs +56 -54
  330. package/dist/index.d.cts +46 -46
  331. package/dist/index.d.ts +46 -46
  332. package/dist/index.js +53 -51
  333. package/dist/{journey.d-C2lgynUF.d.cts → journey.d-DkBvO_Wa.d.cts} +1 -1
  334. package/dist/{journey.d-C2lgynUF.d.ts → journey.d-DkBvO_Wa.d.ts} +1 -1
  335. package/dist/{kanban.d-DYVjUQ_S.d.cts → kanban.d-DUClxyBG.d.cts} +1 -1
  336. package/dist/{kanban.d-DYVjUQ_S.d.ts → kanban.d-DUClxyBG.d.ts} +1 -1
  337. package/dist/{message.d-TAVDRlDJ.d.cts → message.d-YEv1kmQd.d.cts} +1 -1
  338. package/dist/{message.d-TAVDRlDJ.d.ts → message.d-YEv1kmQd.d.ts} +1 -1
  339. package/dist/{metering.d-qyYaAU-O.d.cts → metering.d-DvtPv7wk.d.cts} +1 -1
  340. package/dist/{metering.d-qyYaAU-O.d.ts → metering.d-DvtPv7wk.d.ts} +1 -1
  341. package/dist/{notes.d-CDyIbegf.d.cts → notes.d-BC-scR42.d.cts} +1 -1
  342. package/dist/{notes.d-CDyIbegf.d.ts → notes.d-BC-scR42.d.ts} +1 -1
  343. package/dist/{notification.d-B7ccbaPr.d.cts → notification.d-BfBL3lga.d.cts} +1 -1
  344. package/dist/{notification.d-B7ccbaPr.d.ts → notification.d-BfBL3lga.d.ts} +1 -1
  345. package/dist/{organization.d-BxZWnh8L.d.cts → organization.d-BOLK3v9o.d.cts} +1 -1
  346. package/dist/{organization.d-BxZWnh8L.d.ts → organization.d-BOLK3v9o.d.ts} +1 -1
  347. package/dist/{partner-directory.d-CzKV3WfP.d.cts → partner-directory.d-CRNkDF8q.d.cts} +1 -1
  348. package/dist/{partner-directory.d-CzKV3WfP.d.ts → partner-directory.d-CRNkDF8q.d.ts} +1 -1
  349. package/dist/{permissions.d-lVoPAfl3.d.cts → permissions.d-BHB1FFS5.d.cts} +1 -1
  350. package/dist/{permissions.d-lVoPAfl3.d.ts → permissions.d-BHB1FFS5.d.ts} +1 -1
  351. package/dist/{pricing-tier.d-BW2cZt1w.d.cts → pricing-tier.d-Cg0jl6n_.d.cts} +1 -1
  352. package/dist/{pricing-tier.d-BW2cZt1w.d.ts → pricing-tier.d-Cg0jl6n_.d.ts} +1 -1
  353. package/dist/{pricing.d-Ehb2JuKY.d.cts → pricing.d-Cv39plGm.d.cts} +1 -1
  354. package/dist/{pricing.d-Ehb2JuKY.d.ts → pricing.d-Cv39plGm.d.ts} +1 -1
  355. package/dist/{purpose.d-BVxst611.d.cts → purpose.d-CbIYfTua.d.cts} +1 -1
  356. package/dist/{purpose.d-BVxst611.d.ts → purpose.d-CbIYfTua.d.ts} +1 -1
  357. package/dist/{sandbox.d-tRO2movo.d.cts → sandbox.d-BdbOFzDu.d.cts} +1 -1
  358. package/dist/{sandbox.d-tRO2movo.d.ts → sandbox.d-BdbOFzDu.d.ts} +1 -1
  359. package/dist/{submission.d-CSll5Km9.d.cts → submission.d-BamwfhXw.d.cts} +1 -1
  360. package/dist/{submission.d-CSll5Km9.d.ts → submission.d-BamwfhXw.d.ts} +1 -1
  361. package/dist/{targeting.d-CDxIsOWy.d.cts → targeting.d-BNmcVsNS.d.cts} +1 -1
  362. package/dist/{targeting.d-CDxIsOWy.d.ts → targeting.d-BNmcVsNS.d.ts} +1 -1
  363. package/dist/{template-variables.d-PwA27Ocv.d.cts → template-variables.d-Ch3H3zYf.d.cts} +1 -1
  364. package/dist/{template-variables.d-PwA27Ocv.d.ts → template-variables.d-Ch3H3zYf.d.ts} +1 -1
  365. package/dist/{user.d-DJBp6aX5.d.cts → user.d-CXqM751M.d.cts} +1 -1
  366. package/dist/{user.d-DJBp6aX5.d.ts → user.d-CXqM751M.d.ts} +1 -1
  367. package/dist/{validation-rules.d-CScjNdxD.d.cts → validation-rules.d-Db5c5zTf.d.cts} +1 -1
  368. package/dist/{validation-rules.d-CScjNdxD.d.ts → validation-rules.d-Db5c5zTf.d.ts} +1 -1
  369. package/dist/{webhooks.d-C_MQSJEB.d.cts → webhooks.d-CUNJrltY.d.cts} +1 -1
  370. package/dist/{webhooks.d-C_MQSJEB.d.ts → webhooks.d-CUNJrltY.d.ts} +1 -1
  371. package/dist/{workflow-definition.d-CFXrp2Hg.d.cts → workflow-definition.d-CE3kk9gl.d.cts} +1 -1
  372. package/dist/{workflow-definition.d-CFXrp2Hg.d.ts → workflow-definition.d-CE3kk9gl.d.ts} +1 -1
  373. package/dist/{workflow.d-BIWtgMyP.d.cts → workflow.d-EPa2OdVW.d.cts} +1 -1
  374. package/dist/{workflow.d-BIWtgMyP.d.ts → workflow.d-EPa2OdVW.d.ts} +1 -1
  375. package/package.json +192 -3
@@ -0,0 +1,1419 @@
1
+ {
2
+ "openapi": "3.0.2",
3
+ "info": {
4
+ "title": "Email template API",
5
+ "version": "1.0.0-RFC",
6
+ "description": "Email template API service\n"
7
+ },
8
+ "tags": [
9
+ {
10
+ "name": "Email templates",
11
+ "description": "Email template service"
12
+ },
13
+ {
14
+ "name": "Variables",
15
+ "description": "Variable service"
16
+ },
17
+ {
18
+ "name": "email_template_schema",
19
+ "x-displayName": "Email Template",
20
+ "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmailTemplateEntity\" />\n"
21
+ }
22
+ ],
23
+ "x-tagGroups": [
24
+ {
25
+ "name": "APIs",
26
+ "tags": [
27
+ "Email templates",
28
+ "Variables"
29
+ ]
30
+ },
31
+ {
32
+ "name": "Schemas",
33
+ "tags": [
34
+ "email_template_schema"
35
+ ]
36
+ }
37
+ ],
38
+ "security": [
39
+ {
40
+ "EpilotAuth": []
41
+ },
42
+ {
43
+ "AsOrganization": []
44
+ },
45
+ {
46
+ "EpilotOrg": []
47
+ }
48
+ ],
49
+ "paths": {
50
+ "/v1/email-template/templates": {
51
+ "post": {
52
+ "operationId": "saveTemplate",
53
+ "summary": "saveTemplate",
54
+ "description": "Create or update a template. If `id` is provided, it will update the template.",
55
+ "tags": [
56
+ "Email templates"
57
+ ],
58
+ "requestBody": {
59
+ "content": {
60
+ "application/json": {
61
+ "schema": {
62
+ "$ref": "#/components/schemas/EmailTemplateRequest"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "responses": {
68
+ "200": {
69
+ "description": "Success",
70
+ "content": {
71
+ "application/json": {
72
+ "schema": {
73
+ "$ref": "#/components/schemas/EmailTemplateEntity"
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "403": {
79
+ "description": "Forbidden"
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "/v1/email-template/templates/{id}": {
85
+ "get": {
86
+ "operationId": "getTemplateDetail",
87
+ "summary": "getTemplateDetail",
88
+ "description": "Get email template by ID",
89
+ "tags": [
90
+ "Email templates"
91
+ ],
92
+ "parameters": [
93
+ {
94
+ "name": "id",
95
+ "description": "Template entity ID",
96
+ "in": "path",
97
+ "required": true,
98
+ "schema": {
99
+ "type": "string"
100
+ }
101
+ }
102
+ ],
103
+ "responses": {
104
+ "200": {
105
+ "description": "Success",
106
+ "content": {
107
+ "application/json": {
108
+ "schema": {
109
+ "$ref": "#/components/schemas/EmailTemplateResponse"
110
+ }
111
+ }
112
+ }
113
+ },
114
+ "403": {
115
+ "description": "Forbidden"
116
+ },
117
+ "404": {
118
+ "description": "Not found"
119
+ }
120
+ }
121
+ },
122
+ "put": {
123
+ "operationId": "updateTemplateDetail",
124
+ "summary": "updateTemplateDetail",
125
+ "description": "Update email template by ID",
126
+ "tags": [
127
+ "Email templates"
128
+ ],
129
+ "parameters": [
130
+ {
131
+ "name": "id",
132
+ "description": "Template entity ID",
133
+ "in": "path",
134
+ "required": true,
135
+ "schema": {
136
+ "type": "string"
137
+ }
138
+ }
139
+ ],
140
+ "requestBody": {
141
+ "content": {
142
+ "application/json": {
143
+ "schema": {
144
+ "$ref": "#/components/schemas/EmailTemplateRequest"
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "responses": {
150
+ "200": {
151
+ "description": "Success",
152
+ "content": {
153
+ "application/json": {
154
+ "schema": {
155
+ "$ref": "#/components/schemas/EmailTemplateEntity"
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "403": {
161
+ "description": "Forbidden"
162
+ },
163
+ "404": {
164
+ "description": "Not found"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ "/v1/email-template/templates:replace": {
170
+ "post": {
171
+ "operationId": "replaceVariables",
172
+ "summary": "replaceVariables",
173
+ "description": "Get template detail and replace all variables (template variables and document generation)",
174
+ "deprecated": true,
175
+ "tags": [
176
+ "Variables"
177
+ ],
178
+ "requestBody": {
179
+ "content": {
180
+ "application/json": {
181
+ "schema": {
182
+ "type": "object",
183
+ "required": [
184
+ "email_template_id"
185
+ ],
186
+ "properties": {
187
+ "email_template_id": {
188
+ "type": "string",
189
+ "example": "511ceb90-f738-47aa-8b1e-915ace0ae13c"
190
+ },
191
+ "variable_parameters": {
192
+ "$ref": "#/components/schemas/VariableParameters"
193
+ },
194
+ "must_include_unsubscribe_link": {
195
+ "type": "boolean",
196
+ "description": "If true then include unsubscribe link in the email body\n",
197
+ "default": false
198
+ },
199
+ "skip_document_generation": {
200
+ "type": "boolean",
201
+ "description": "If true then skip document generation. This is useful when you want to replace html variables only. Speeds up the process.\n",
202
+ "default": false
203
+ }
204
+ }
205
+ }
206
+ }
207
+ }
208
+ },
209
+ "responses": {
210
+ "200": {
211
+ "description": "Success",
212
+ "content": {
213
+ "application/json": {
214
+ "schema": {
215
+ "$ref": "#/components/schemas/EmailTemplateResponse"
216
+ }
217
+ }
218
+ }
219
+ },
220
+ "403": {
221
+ "description": "Forbidden"
222
+ }
223
+ }
224
+ }
225
+ },
226
+ "/v1/email-template/templates:replaceAsync": {
227
+ "post": {
228
+ "operationId": "replaceVariablesAsync",
229
+ "summary": "replaceVariablesAsync",
230
+ "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",
231
+ "tags": [
232
+ "Variables"
233
+ ],
234
+ "parameters": [
235
+ {
236
+ "in": "query",
237
+ "name": "job_id",
238
+ "description": "Job ID for tracking the status of document generation action",
239
+ "schema": {
240
+ "type": "string"
241
+ }
242
+ }
243
+ ],
244
+ "requestBody": {
245
+ "content": {
246
+ "application/json": {
247
+ "schema": {
248
+ "type": "object",
249
+ "properties": {
250
+ "email_template_id": {
251
+ "type": "string",
252
+ "example": "511ceb90-f738-47aa-8b1e-915ace0ae13c"
253
+ },
254
+ "variable_parameters": {
255
+ "$ref": "#/components/schemas/VariableParameters"
256
+ },
257
+ "must_include_unsubscribe_link": {
258
+ "type": "boolean",
259
+ "description": "If true then include unsubscribe link in the email body\n",
260
+ "default": false
261
+ },
262
+ "skip_document_generation": {
263
+ "type": "boolean",
264
+ "description": "If true then skip document generation. This is useful when you want to replace html variables only. Speeds up the process.\n",
265
+ "default": false
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ },
272
+ "responses": {
273
+ "200": {
274
+ "description": "Success",
275
+ "content": {
276
+ "application/json": {
277
+ "schema": {
278
+ "$ref": "#/components/schemas/AsyncEmailTemplateResponse"
279
+ }
280
+ }
281
+ }
282
+ },
283
+ "403": {
284
+ "description": "Forbidden"
285
+ }
286
+ }
287
+ }
288
+ },
289
+ "/v1/email-template/templates:bulkSendMessage": {
290
+ "post": {
291
+ "operationId": "bulkSendMessage",
292
+ "summary": "bulkSendMessage",
293
+ "description": "Send emails to multiple recipients using a template",
294
+ "tags": [
295
+ "Email templates"
296
+ ],
297
+ "requestBody": {
298
+ "content": {
299
+ "application/json": {
300
+ "schema": {
301
+ "oneOf": [
302
+ {
303
+ "$ref": "#/components/schemas/BulkSendMessageRequestWithQuery"
304
+ },
305
+ {
306
+ "$ref": "#/components/schemas/BulkSendMessageRequest"
307
+ },
308
+ {
309
+ "type": "object",
310
+ "required": [
311
+ "job_id"
312
+ ],
313
+ "properties": {
314
+ "job_id": {
315
+ "type": "string",
316
+ "description": "Job ID for tracking the status of a bulk message request",
317
+ "example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
318
+ },
319
+ "action": {
320
+ "type": "string",
321
+ "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",
322
+ "enum": [
323
+ "APPROVE",
324
+ "APPROVE_WITH_CONSENT",
325
+ "APPROVE_ALL",
326
+ "CANCEL"
327
+ ]
328
+ }
329
+ }
330
+ }
331
+ ]
332
+ }
333
+ }
334
+ }
335
+ },
336
+ "responses": {
337
+ "200": {
338
+ "description": "Success",
339
+ "content": {
340
+ "application/json": {
341
+ "schema": {
342
+ "$ref": "#/components/schemas/BulkSendMessageJob"
343
+ }
344
+ }
345
+ }
346
+ },
347
+ "403": {
348
+ "description": "Forbidden"
349
+ }
350
+ }
351
+ }
352
+ },
353
+ "/v1/email-template/templates:revert": {
354
+ "post": {
355
+ "operationId": "revertToOriginalTemplate",
356
+ "summary": "revertToOriginalTemplate",
357
+ "description": "Revert to the original system generated email template",
358
+ "tags": [
359
+ "Email templates"
360
+ ],
361
+ "requestBody": {
362
+ "content": {
363
+ "application/json": {
364
+ "schema": {
365
+ "type": "object",
366
+ "required": [
367
+ "email_template_id"
368
+ ],
369
+ "properties": {
370
+ "email_template_id": {
371
+ "type": "string",
372
+ "example": "511ceb90-f738-47aa-8b1e-915ace0ae13c"
373
+ }
374
+ }
375
+ }
376
+ }
377
+ }
378
+ },
379
+ "responses": {
380
+ "200": {
381
+ "description": "Success"
382
+ },
383
+ "403": {
384
+ "description": "Forbidden"
385
+ }
386
+ }
387
+ }
388
+ }
389
+ },
390
+ "components": {
391
+ "securitySchemes": {
392
+ "EpilotAuth": {
393
+ "type": "http",
394
+ "scheme": "bearer",
395
+ "description": "Authorization header with epilot OAuth2 bearer token",
396
+ "bearerFormat": "JWT"
397
+ },
398
+ "EpilotOrg": {
399
+ "description": "Overrides the target organization to allow shared tenant access",
400
+ "name": "x-epilot-org-id",
401
+ "in": "header",
402
+ "type": "apiKey"
403
+ }
404
+ },
405
+ "schemas": {
406
+ "BaseEntity": {
407
+ "type": "object",
408
+ "required": [
409
+ "_id",
410
+ "_title",
411
+ "_org",
412
+ "_schema",
413
+ "_created_at",
414
+ "_updated_at"
415
+ ],
416
+ "properties": {
417
+ "_id": {
418
+ "type": "string",
419
+ "description": "Entity ID",
420
+ "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
421
+ },
422
+ "_title": {
423
+ "type": "string",
424
+ "description": "Entity title"
425
+ },
426
+ "_org": {
427
+ "type": "string",
428
+ "description": "Ivy Organization ID the entity belongs to",
429
+ "example": "206801"
430
+ },
431
+ "_schema": {
432
+ "type": "string",
433
+ "description": "URL-friendly identifier for the entity schema",
434
+ "example": "message"
435
+ },
436
+ "_tags": {
437
+ "type": "array",
438
+ "description": "Entity tags",
439
+ "items": {
440
+ "type": "string"
441
+ },
442
+ "example": [
443
+ "automatic email template"
444
+ ]
445
+ },
446
+ "_created_at": {
447
+ "type": "string",
448
+ "description": "Created date",
449
+ "format": "date-time",
450
+ "example": "2021-02-09T12:41:43.662Z"
451
+ },
452
+ "_updated_at": {
453
+ "type": "string",
454
+ "description": "Updated date",
455
+ "format": "date-time",
456
+ "example": "2021-02-10T09:14:31.990Z"
457
+ },
458
+ "_purpose": {
459
+ "type": "array",
460
+ "description": "Entity Purposes",
461
+ "items": {
462
+ "type": "string"
463
+ },
464
+ "example": [
465
+ "a0ec23ac-12f8-4d89-9a63-91cba3787f2a",
466
+ "310cd388-2f15-4b5b-8f98-ca14c1e03304"
467
+ ]
468
+ },
469
+ "_manifest": {
470
+ "type": "array",
471
+ "description": "Manifest ID used to create/update the entity",
472
+ "items": {
473
+ "type": "string",
474
+ "format": "uuid",
475
+ "example": "123e4567-e89b-12d3-a456-426614174000"
476
+ }
477
+ }
478
+ }
479
+ },
480
+ "EmailTemplateRequest": {
481
+ "type": "object",
482
+ "required": [
483
+ "name",
484
+ "subject"
485
+ ],
486
+ "properties": {
487
+ "_id": {
488
+ "type": "string",
489
+ "example": "cd7809ba-a111-4dd9-8d15-18eb4de0faed"
490
+ },
491
+ "_tags": {
492
+ "type": "array",
493
+ "description": "Entity tags",
494
+ "items": {
495
+ "type": "string"
496
+ },
497
+ "example": [
498
+ "template"
499
+ ]
500
+ },
501
+ "_manifest": {
502
+ "type": "array",
503
+ "description": "Manifest ID used to create/update the entity",
504
+ "items": {
505
+ "type": "string",
506
+ "format": "uuid",
507
+ "example": "123e4567-e89b-12d3-a456-426614174000"
508
+ }
509
+ },
510
+ "_purpose": {
511
+ "type": "array",
512
+ "description": "Entity Purposes",
513
+ "items": {
514
+ "type": "string"
515
+ },
516
+ "example": [
517
+ "a0ec23ac-12f8-4d89-9a63-91cba3787f2a",
518
+ "310cd388-2f15-4b5b-8f98-ca14c1e03304"
519
+ ]
520
+ },
521
+ "name": {
522
+ "description": "name",
523
+ "type": "string",
524
+ "example": "Order confirmation"
525
+ },
526
+ "brand_id": {
527
+ "description": "Brand ID. Equal 0 if available for All brands",
528
+ "type": "number",
529
+ "nullable": true,
530
+ "example": 0
531
+ },
532
+ "from": {
533
+ "description": "From",
534
+ "$ref": "#/components/schemas/From"
535
+ },
536
+ "to": {
537
+ "description": "To",
538
+ "type": "array",
539
+ "items": {
540
+ "$ref": "#/components/schemas/To"
541
+ }
542
+ },
543
+ "cc": {
544
+ "description": "Cc",
545
+ "type": "array",
546
+ "items": {
547
+ "$ref": "#/components/schemas/To"
548
+ }
549
+ },
550
+ "bcc": {
551
+ "description": "Bcc",
552
+ "type": "array",
553
+ "items": {
554
+ "$ref": "#/components/schemas/To"
555
+ }
556
+ },
557
+ "subject": {
558
+ "description": "Subject",
559
+ "type": "string",
560
+ "example": "We have received your order!"
561
+ },
562
+ "body": {
563
+ "description": "Body",
564
+ "type": "string",
565
+ "example": "Hi Ms Ny Huynh, </br> Thank you for your order. We will contact you shortly"
566
+ },
567
+ "attachments": {
568
+ "type": "array",
569
+ "nullable": true,
570
+ "description": "Email template attachments",
571
+ "items": {
572
+ "$ref": "#/components/schemas/Attachment"
573
+ }
574
+ },
575
+ "file": {
576
+ "type": "object",
577
+ "properties": {
578
+ "$relation": {
579
+ "type": "array",
580
+ "description": "Entity tags",
581
+ "items": {
582
+ "type": "object"
583
+ }
584
+ }
585
+ }
586
+ },
587
+ "system_template": {
588
+ "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",
589
+ "type": "boolean",
590
+ "example": false
591
+ },
592
+ "created_by": {
593
+ "description": "Created by",
594
+ "type": "string",
595
+ "example": 1234
596
+ },
597
+ "updated_by": {
598
+ "description": "Updated by",
599
+ "type": "string",
600
+ "example": 1234
601
+ }
602
+ }
603
+ },
604
+ "EmailTemplateEntity": {
605
+ "allOf": [
606
+ {
607
+ "$ref": "#/components/schemas/BaseEntity"
608
+ },
609
+ {
610
+ "type": "object",
611
+ "required": [
612
+ "name"
613
+ ],
614
+ "properties": {
615
+ "name": {
616
+ "description": "name",
617
+ "type": "string",
618
+ "example": "Order confirmation"
619
+ },
620
+ "brand_id": {
621
+ "description": "Brand ID. Equal 0 if available for All brands",
622
+ "type": "number",
623
+ "nullable": true,
624
+ "example": 0
625
+ },
626
+ "from": {
627
+ "description": "From",
628
+ "$ref": "#/components/schemas/From"
629
+ },
630
+ "to": {
631
+ "description": "To",
632
+ "type": "array",
633
+ "items": {
634
+ "$ref": "#/components/schemas/To"
635
+ }
636
+ },
637
+ "cc": {
638
+ "description": "Cc",
639
+ "type": "array",
640
+ "items": {
641
+ "$ref": "#/components/schemas/To"
642
+ }
643
+ },
644
+ "bcc": {
645
+ "description": "Bcc",
646
+ "type": "array",
647
+ "items": {
648
+ "$ref": "#/components/schemas/To"
649
+ }
650
+ },
651
+ "subject": {
652
+ "description": "Subject",
653
+ "type": "string",
654
+ "example": "We have received your order!"
655
+ },
656
+ "body": {
657
+ "description": "Body",
658
+ "type": "string",
659
+ "example": "Hi Ms Ny Huynh, </br> Thank you for your order. We will contact you shortly"
660
+ },
661
+ "attachments": {
662
+ "type": "array",
663
+ "nullable": true,
664
+ "description": "Email template attachments",
665
+ "items": {
666
+ "$ref": "#/components/schemas/Attachment"
667
+ }
668
+ },
669
+ "file": {
670
+ "type": "object",
671
+ "properties": {
672
+ "$relation": {
673
+ "type": "array",
674
+ "description": "Entity tags",
675
+ "items": {
676
+ "type": "object"
677
+ }
678
+ }
679
+ }
680
+ },
681
+ "created_by": {
682
+ "description": "Created by",
683
+ "type": "string",
684
+ "example": 1234
685
+ },
686
+ "updated_by": {
687
+ "description": "Updated by",
688
+ "type": "string",
689
+ "example": 1234
690
+ },
691
+ "system_template": {
692
+ "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",
693
+ "type": "boolean",
694
+ "example": false
695
+ }
696
+ }
697
+ }
698
+ ]
699
+ },
700
+ "Attachment": {
701
+ "type": "object",
702
+ "nullable": true,
703
+ "required": [
704
+ "filename",
705
+ "size",
706
+ "content_type",
707
+ "bucket",
708
+ "object_key"
709
+ ],
710
+ "properties": {
711
+ "cid": {
712
+ "type": "string",
713
+ "description": "Attachment ID",
714
+ "example": "f820ce3b-07b0-45ae-bcc6-babb2f53f79f"
715
+ },
716
+ "filename": {
717
+ "type": "string",
718
+ "description": "File name",
719
+ "example": "Produktinformationen_epilot360_Double_Opt_in.pdf"
720
+ },
721
+ "size": {
722
+ "type": "number",
723
+ "description": "File size in bytes",
724
+ "example": 451349
725
+ },
726
+ "content_type": {
727
+ "type": "string",
728
+ "description": "Content type",
729
+ "example": "application/pdf"
730
+ },
731
+ "url": {
732
+ "type": "string",
733
+ "description": "URL to download the attachment.",
734
+ "example": "https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf"
735
+ },
736
+ "bucket": {
737
+ "type": "string",
738
+ "description": "S3 bucket where file is stored",
739
+ "example": "893487340562-message-attachment"
740
+ },
741
+ "object_key": {
742
+ "type": "string",
743
+ "description": "S3 object apiKey",
744
+ "example": "attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf"
745
+ },
746
+ "inline": {
747
+ "type": "boolean",
748
+ "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",
749
+ "default": false
750
+ },
751
+ "send_as_link": {
752
+ "type": "boolean",
753
+ "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.",
754
+ "default": false
755
+ },
756
+ "type": {
757
+ "type": "string",
758
+ "description": "File type such as Document template, Document,... Use for replace variables on document template",
759
+ "example": "Document template"
760
+ },
761
+ "copy_to_message": {
762
+ "type": "boolean",
763
+ "description": "If true then this attachment is copied to the message and replaces corresponding one",
764
+ "default": true
765
+ }
766
+ }
767
+ },
768
+ "From": {
769
+ "type": "object",
770
+ "required": [
771
+ "email"
772
+ ],
773
+ "properties": {
774
+ "name": {
775
+ "type": "string",
776
+ "example": "epilot"
777
+ },
778
+ "email": {
779
+ "type": "string",
780
+ "example": "no-reply@epilot.cloud"
781
+ }
782
+ }
783
+ },
784
+ "To": {
785
+ "type": "object",
786
+ "required": [
787
+ "email"
788
+ ],
789
+ "properties": {
790
+ "name": {
791
+ "type": "string",
792
+ "example": "Ny Huynh"
793
+ },
794
+ "email": {
795
+ "type": "string",
796
+ "example": "ny.huynh@axonactive.com"
797
+ }
798
+ }
799
+ },
800
+ "PresignedRequest": {
801
+ "type": "object",
802
+ "required": [
803
+ "id",
804
+ "filename",
805
+ "content_type"
806
+ ],
807
+ "properties": {
808
+ "id": {
809
+ "description": "UUID",
810
+ "type": "string",
811
+ "example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
812
+ },
813
+ "filename": {
814
+ "description": "File name",
815
+ "type": "string",
816
+ "example": "order.pdf"
817
+ },
818
+ "content_type": {
819
+ "description": "Content type",
820
+ "type": "string",
821
+ "example": "application/pdf"
822
+ }
823
+ }
824
+ },
825
+ "PresignedResponse": {
826
+ "type": "object",
827
+ "required": [
828
+ "download_url",
829
+ "upload_url"
830
+ ],
831
+ "properties": {
832
+ "download_url": {
833
+ "type": "string",
834
+ "description": "URL to download the attachment. This URL is not accessible until attachment is uploaded successfully.",
835
+ "example": "https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf"
836
+ },
837
+ "upload_url": {
838
+ "description": "Post presigned URL to upload file",
839
+ "type": "object",
840
+ "required": [
841
+ "url",
842
+ "fields"
843
+ ],
844
+ "properties": {
845
+ "url": {
846
+ "type": "number",
847
+ "description": "URL to upload the attachment",
848
+ "example": "https://s3.eu-central-1.amazonaws.com/893487340562-message-attachment"
849
+ },
850
+ "fields": {
851
+ "type": "object",
852
+ "description": "Fields are provided by AWS to authenticate and validate the request. All fields should be included in form-data when performing upload request.",
853
+ "example": {}
854
+ }
855
+ }
856
+ }
857
+ }
858
+ },
859
+ "AttachmentResponse": {
860
+ "type": "object",
861
+ "properties": {
862
+ "total": {
863
+ "description": "Total attachments",
864
+ "type": "number",
865
+ "example": 10
866
+ },
867
+ "attachments": {
868
+ "description": "List attachments",
869
+ "type": "array",
870
+ "items": {
871
+ "type": "object",
872
+ "properties": {
873
+ "filename": {
874
+ "description": "File name",
875
+ "type": "string",
876
+ "example": "order.docx"
877
+ },
878
+ "bucket": {
879
+ "description": "Bucket name",
880
+ "type": "string",
881
+ "example": "epilot-playground-upload-document"
882
+ },
883
+ "object_key": {
884
+ "description": "Object key",
885
+ "type": "string",
886
+ "example": "9f561bea-f0d9-4e96-b7a9-879fc1643ac0.docx"
887
+ },
888
+ "url": {
889
+ "description": "URL",
890
+ "type": "string",
891
+ "example": "https://epilot-playground-upload-document.s3.eu-central-1.amazonaws.com/9f561bea-f0d9-4e96-b7a9-879fc1643ac0.docx"
892
+ },
893
+ "document_type": {
894
+ "description": "Document type:\n* 0: Static docs\n* 1: Templates\n",
895
+ "type": "number",
896
+ "example": 0
897
+ }
898
+ }
899
+ }
900
+ }
901
+ }
902
+ },
903
+ "UserResponse": {
904
+ "type": "object",
905
+ "properties": {
906
+ "id": {
907
+ "type": "string"
908
+ },
909
+ "organization_id": {
910
+ "type": "string"
911
+ },
912
+ "display_name": {
913
+ "type": "string",
914
+ "description": "User's display name (default: email address)",
915
+ "example": "Example User"
916
+ },
917
+ "email": {
918
+ "type": "string",
919
+ "format": "email"
920
+ },
921
+ "phone": {
922
+ "type": "string",
923
+ "nullable": true,
924
+ "example": 1234567890
925
+ },
926
+ "preferred_language": {
927
+ "type": "string",
928
+ "example": "de"
929
+ },
930
+ "image_uri": {
931
+ "type": "object",
932
+ "additionalProperties": true,
933
+ "properties": {
934
+ "original": {
935
+ "type": "string",
936
+ "format": "uri"
937
+ },
938
+ "thumbnail_32": {
939
+ "type": "string",
940
+ "format": "uri"
941
+ }
942
+ },
943
+ "example": {
944
+ "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
945
+ "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
946
+ }
947
+ },
948
+ "properties": {
949
+ "type": "array",
950
+ "items": {
951
+ "type": "object",
952
+ "properties": {
953
+ "name": {
954
+ "type": "string",
955
+ "example": "profileImageName"
956
+ },
957
+ "value": {
958
+ "type": "string",
959
+ "example": "avatar.png"
960
+ }
961
+ },
962
+ "required": [
963
+ "name",
964
+ "value"
965
+ ]
966
+ }
967
+ }
968
+ }
969
+ },
970
+ "VariableParameters": {
971
+ "type": "object",
972
+ "properties": {
973
+ "template_type": {
974
+ "$ref": "#/components/schemas/TemplateType"
975
+ },
976
+ "language": {
977
+ "type": "string",
978
+ "enum": [
979
+ "en",
980
+ "de"
981
+ ]
982
+ },
983
+ "main_entity_id": {
984
+ "type": "string",
985
+ "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.",
986
+ "example": "63753437-c9e2-4e83-82bb-b1c666514561"
987
+ },
988
+ "user_id": {
989
+ "type": "string",
990
+ "description": "User ID",
991
+ "example": "123452"
992
+ },
993
+ "custom_variables": {
994
+ "$ref": "#/components/schemas/CustomVariables"
995
+ }
996
+ },
997
+ "required": [
998
+ "template_type"
999
+ ]
1000
+ },
1001
+ "TemplateType": {
1002
+ "type": "string",
1003
+ "enum": [
1004
+ "email",
1005
+ "document"
1006
+ ]
1007
+ },
1008
+ "EmailTemplateResponse": {
1009
+ "type": "object",
1010
+ "properties": {
1011
+ "entity": {
1012
+ "$ref": "#/components/schemas/EmailTemplateEntity"
1013
+ },
1014
+ "relations": {
1015
+ "type": "array",
1016
+ "items": {
1017
+ "type": "object"
1018
+ }
1019
+ }
1020
+ }
1021
+ },
1022
+ "AsyncEmailTemplateResponse": {
1023
+ "type": "object",
1024
+ "required": [
1025
+ "job_id",
1026
+ "status"
1027
+ ],
1028
+ "properties": {
1029
+ "job_id": {
1030
+ "type": "string",
1031
+ "description": "Job ID of the email template that is requested to replace and generate docs",
1032
+ "example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
1033
+ },
1034
+ "status": {
1035
+ "type": "string",
1036
+ "enum": [
1037
+ "STARTED",
1038
+ "PROCESSING",
1039
+ "SUCCESS",
1040
+ "FAILED"
1041
+ ]
1042
+ },
1043
+ "message": {
1044
+ "type": "string",
1045
+ "description": "Error message"
1046
+ },
1047
+ "doc_progress_count": {
1048
+ "type": "object",
1049
+ "description": "Progress count of the documents that are needed to generate",
1050
+ "required": [
1051
+ "total",
1052
+ "completed"
1053
+ ],
1054
+ "properties": {
1055
+ "total": {
1056
+ "type": "number",
1057
+ "description": "Total count",
1058
+ "example": 10
1059
+ },
1060
+ "completed": {
1061
+ "type": "number",
1062
+ "description": "Completed count",
1063
+ "example": 5
1064
+ }
1065
+ }
1066
+ },
1067
+ "result": {
1068
+ "type": "object",
1069
+ "description": "Result of the email template that is replaced along with generated docs",
1070
+ "properties": {
1071
+ "entity": {
1072
+ "$ref": "#/components/schemas/EmailTemplateEntity"
1073
+ },
1074
+ "relations": {
1075
+ "type": "array",
1076
+ "items": {
1077
+ "type": "object"
1078
+ }
1079
+ }
1080
+ }
1081
+ }
1082
+ }
1083
+ },
1084
+ "SkipCreatingEntities": {
1085
+ "type": "boolean",
1086
+ "description": "When true, it lets to send only the email by skip creating the thread & message entities."
1087
+ },
1088
+ "BulkSendMessageRequest": {
1089
+ "type": "object",
1090
+ "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",
1091
+ "required": [
1092
+ "email_template_id",
1093
+ "recipient_ids"
1094
+ ],
1095
+ "properties": {
1096
+ "skip_creating_entities": {
1097
+ "$ref": "#/components/schemas/SkipCreatingEntities"
1098
+ },
1099
+ "email_template_id": {
1100
+ "type": "string",
1101
+ "description": "ID of email template to use for sending bulk emails",
1102
+ "example": "511ceb90-f738-47aa-8b1e-915ace0ae13c"
1103
+ },
1104
+ "must_include_unsubscribe_link": {
1105
+ "type": "boolean",
1106
+ "description": "If true then include unsubscribe link in the email body\n",
1107
+ "default": true
1108
+ },
1109
+ "recipient_ids": {
1110
+ "type": "array",
1111
+ "description": "List of entity ids to use as recipients",
1112
+ "items": {
1113
+ "type": "string"
1114
+ },
1115
+ "example": [
1116
+ "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1117
+ "3fa85f64-5717-4562-b3fc-2c963f66afa7",
1118
+ "3fa85f64-5717-4562-b3fc-2c963f66afa8"
1119
+ ]
1120
+ },
1121
+ "custom_variables": {
1122
+ "$ref": "#/components/schemas/CustomVariables"
1123
+ }
1124
+ }
1125
+ },
1126
+ "BulkSendMessageRequestWithQuery": {
1127
+ "type": "object",
1128
+ "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",
1129
+ "required": [
1130
+ "email_template_id",
1131
+ "recipient_query"
1132
+ ],
1133
+ "properties": {
1134
+ "skip_creating_entities": {
1135
+ "$ref": "#/components/schemas/SkipCreatingEntities"
1136
+ },
1137
+ "email_template_id": {
1138
+ "type": "string",
1139
+ "description": "ID of email template to use for sending bulk emails",
1140
+ "example": "511ceb90-f738-47aa-8b1e-915ace0ae13c"
1141
+ },
1142
+ "must_include_unsubscribe_link": {
1143
+ "type": "boolean",
1144
+ "description": "If true then include unsubscribe link in the email body\n",
1145
+ "default": true
1146
+ },
1147
+ "recipient_query": {
1148
+ "type": "string",
1149
+ "description": "Entity search query to select recipients",
1150
+ "example": "_schema:contact AND consent_email_marketing:active"
1151
+ },
1152
+ "custom_variables": {
1153
+ "$ref": "#/components/schemas/CustomVariables"
1154
+ }
1155
+ }
1156
+ },
1157
+ "CustomVariables": {
1158
+ "description": "Custom variables to be replaced in the email template",
1159
+ "type": "array",
1160
+ "items": {
1161
+ "type": "object",
1162
+ "properties": {
1163
+ "variable": {
1164
+ "type": "string",
1165
+ "description": "Template Variable Name",
1166
+ "example": "{{abc.xyz}}"
1167
+ },
1168
+ "value": {
1169
+ "type": "string",
1170
+ "description": "Value to be Replaced",
1171
+ "example": "ReplacedValue"
1172
+ }
1173
+ }
1174
+ }
1175
+ },
1176
+ "BulkSendMessageJob": {
1177
+ "type": "object",
1178
+ "required": [
1179
+ "job_id",
1180
+ "status",
1181
+ "request"
1182
+ ],
1183
+ "properties": {
1184
+ "org_id": {
1185
+ "$ref": "#/components/schemas/OrgId"
1186
+ },
1187
+ "job_id": {
1188
+ "type": "string",
1189
+ "description": "Job ID for tracking the status of bulk message action",
1190
+ "example": "8c086140-f33e-4bb7-a993-50c0f2402c7b"
1191
+ },
1192
+ "skip_creating_entities": {
1193
+ "$ref": "#/components/schemas/SkipCreatingEntities"
1194
+ },
1195
+ "status": {
1196
+ "type": "string",
1197
+ "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",
1198
+ "enum": [
1199
+ "PROCESSING",
1200
+ "QUEUEING",
1201
+ "APPROVAL",
1202
+ "SENDING",
1203
+ "SUCCESS",
1204
+ "FAILED",
1205
+ "CANCELLED"
1206
+ ]
1207
+ },
1208
+ "request": {
1209
+ "oneOf": [
1210
+ {
1211
+ "$ref": "#/components/schemas/BulkSendMessageRequest"
1212
+ },
1213
+ {
1214
+ "$ref": "#/components/schemas/BulkSendMessageRequestWithQuery"
1215
+ }
1216
+ ]
1217
+ },
1218
+ "created_by": {
1219
+ "$ref": "#/components/schemas/CreatedBy"
1220
+ },
1221
+ "created_at": {
1222
+ "$ref": "#/components/schemas/CreatedAt"
1223
+ },
1224
+ "updated_at": {
1225
+ "$ref": "#/components/schemas/UpdatedAt"
1226
+ },
1227
+ "approved_at": {
1228
+ "$ref": "#/components/schemas/ApprovedAt"
1229
+ },
1230
+ "approve_action": {
1231
+ "$ref": "#/components/schemas/ApproveAction"
1232
+ },
1233
+ "task_token": {
1234
+ "$ref": "#/components/schemas/TaskToken"
1235
+ },
1236
+ "total_queued": {
1237
+ "type": "integer",
1238
+ "description": "Total number of emails generated and queued for sending",
1239
+ "example": 100,
1240
+ "deprecated": true
1241
+ },
1242
+ "queued": {
1243
+ "type": "array",
1244
+ "description": "List of entity ids that are queued for sending",
1245
+ "items": {
1246
+ "type": "object",
1247
+ "required": [
1248
+ "entity_id",
1249
+ "email_to",
1250
+ "email_with_consent"
1251
+ ],
1252
+ "properties": {
1253
+ "entity_id": {
1254
+ "type": "string",
1255
+ "description": "Recipient Entity ID",
1256
+ "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1257
+ },
1258
+ "email_to": {
1259
+ "description": "Recipient emails",
1260
+ "type": "array",
1261
+ "items": {
1262
+ "type": "string",
1263
+ "description": "Recipient email address",
1264
+ "example": "recipient@example.com"
1265
+ }
1266
+ },
1267
+ "email_with_consent": {
1268
+ "description": "Recipient emails with consent",
1269
+ "type": "array",
1270
+ "items": {
1271
+ "type": "string",
1272
+ "description": "Recipient email address",
1273
+ "example": "recipient@example.com"
1274
+ }
1275
+ }
1276
+ }
1277
+ }
1278
+ },
1279
+ "sent": {
1280
+ "type": "array",
1281
+ "description": "List of entity ids and message ids that were sent successfully",
1282
+ "items": {
1283
+ "type": "object",
1284
+ "required": [
1285
+ "entity_id",
1286
+ "message_id"
1287
+ ],
1288
+ "properties": {
1289
+ "entity_id": {
1290
+ "type": "string",
1291
+ "description": "Recipient Entity ID",
1292
+ "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1293
+ },
1294
+ "message_id": {
1295
+ "type": "string",
1296
+ "description": "Message ID",
1297
+ "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1298
+ },
1299
+ "email_to": {
1300
+ "type": "array",
1301
+ "items": {
1302
+ "type": "string",
1303
+ "description": "Recipient email address",
1304
+ "example": "recipient@example.com"
1305
+ }
1306
+ }
1307
+ }
1308
+ }
1309
+ },
1310
+ "failed": {
1311
+ "type": "array",
1312
+ "description": "List of entity ids that were skipped or failed",
1313
+ "items": {
1314
+ "type": "object",
1315
+ "required": [
1316
+ "entity_id",
1317
+ "error"
1318
+ ],
1319
+ "properties": {
1320
+ "entity_id": {
1321
+ "type": "string",
1322
+ "description": "Recipient Entity ID",
1323
+ "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
1324
+ },
1325
+ "error": {
1326
+ "type": "string",
1327
+ "description": "Error message"
1328
+ },
1329
+ "email_to": {
1330
+ "type": "array",
1331
+ "items": {
1332
+ "type": "string",
1333
+ "description": "Recipient email address",
1334
+ "example": "recipient@example.com"
1335
+ }
1336
+ }
1337
+ }
1338
+ }
1339
+ }
1340
+ }
1341
+ },
1342
+ "CreateSystemTemplatesReq": {
1343
+ "type": "object",
1344
+ "properties": {
1345
+ "template_names": {
1346
+ "type": "array",
1347
+ "items": {
1348
+ "type": "string"
1349
+ },
1350
+ "example": [
1351
+ "DoubleOptIn_Email_DE",
1352
+ "Einladung Kundenportal",
1353
+ "Partner_Kooperation_Email_DE"
1354
+ ]
1355
+ }
1356
+ },
1357
+ "required": [
1358
+ "template_names"
1359
+ ]
1360
+ },
1361
+ "CreateSystemTemplatesResp": {
1362
+ "type": "array",
1363
+ "items": {
1364
+ "$ref": "#/components/schemas/BaseEntity"
1365
+ }
1366
+ },
1367
+ "OrgId": {
1368
+ "type": "string",
1369
+ "description": "Organization ID",
1370
+ "example": "206801",
1371
+ "readOnly": true
1372
+ },
1373
+ "CreatedBy": {
1374
+ "type": "string",
1375
+ "description": "User ID who created the bulk message action",
1376
+ "example": "1234",
1377
+ "readOnly": true
1378
+ },
1379
+ "CreatedAt": {
1380
+ "type": "string",
1381
+ "description": "Time when the bulk message action was created",
1382
+ "format": "date-time",
1383
+ "readOnly": true
1384
+ },
1385
+ "UpdatedAt": {
1386
+ "type": "string",
1387
+ "description": "Time when the bulk message action was last updated",
1388
+ "format": "date-time",
1389
+ "readOnly": true
1390
+ },
1391
+ "ApprovedAt": {
1392
+ "type": "string",
1393
+ "description": "Time when the bulk message action was last approved",
1394
+ "format": "date-time",
1395
+ "readOnly": true
1396
+ },
1397
+ "ApproveAction": {
1398
+ "type": "string",
1399
+ "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",
1400
+ "enum": [
1401
+ "APPROVE_WITH_CONSENT",
1402
+ "APPROVE_ALL"
1403
+ ],
1404
+ "readOnly": true
1405
+ },
1406
+ "TaskToken": {
1407
+ "type": "string",
1408
+ "description": "Task token to approve or cancel the bulk message action",
1409
+ "example": "8c086140-f33e-4bb7-a993-50c0f2402c7b",
1410
+ "readOnly": true
1411
+ }
1412
+ }
1413
+ },
1414
+ "servers": [
1415
+ {
1416
+ "url": "https://email-template.sls.epilot.io"
1417
+ }
1418
+ ]
1419
+ }