@epilot/sdk 2.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +294 -0
  2. package/dist/access-token-MYDOBCIY.cjs +89 -0
  3. package/dist/access-token-Y5JR7PRG.js +89 -0
  4. package/dist/access-token.d-C2qnueDV.d.cts +553 -0
  5. package/dist/access-token.d-C2qnueDV.d.ts +553 -0
  6. package/dist/address-3RQRG3MK.js +84 -0
  7. package/dist/address-LQUTDOUA.cjs +84 -0
  8. package/dist/address-suggestions-PEKSA7B2.cjs +132 -0
  9. package/dist/address-suggestions-QNK5JWNH.js +132 -0
  10. package/dist/address-suggestions.d-CewXYNYH.d.cts +340 -0
  11. package/dist/address-suggestions.d-CewXYNYH.d.ts +340 -0
  12. package/dist/address.d-DP_aE2ex.d.cts +438 -0
  13. package/dist/address.d-DP_aE2ex.d.ts +438 -0
  14. package/dist/ai-agents-MO4PK2RJ.cjs +215 -0
  15. package/dist/ai-agents-OHP2F243.js +215 -0
  16. package/dist/ai-agents.d-vG-1utqk.d.cts +1340 -0
  17. package/dist/ai-agents.d-vG-1utqk.d.ts +1340 -0
  18. package/dist/apis/access-token.cjs +33 -0
  19. package/dist/apis/access-token.d.cts +18 -0
  20. package/dist/apis/access-token.d.ts +18 -0
  21. package/dist/apis/access-token.js +33 -0
  22. package/dist/apis/address-suggestions.cjs +33 -0
  23. package/dist/apis/address-suggestions.d.cts +18 -0
  24. package/dist/apis/address-suggestions.d.ts +18 -0
  25. package/dist/apis/address-suggestions.js +33 -0
  26. package/dist/apis/address.cjs +33 -0
  27. package/dist/apis/address.d.cts +18 -0
  28. package/dist/apis/address.d.ts +18 -0
  29. package/dist/apis/address.js +33 -0
  30. package/dist/apis/ai-agents.cjs +33 -0
  31. package/dist/apis/ai-agents.d.cts +18 -0
  32. package/dist/apis/ai-agents.d.ts +18 -0
  33. package/dist/apis/ai-agents.js +33 -0
  34. package/dist/apis/app.cjs +33 -0
  35. package/dist/apis/app.d.cts +18 -0
  36. package/dist/apis/app.d.ts +18 -0
  37. package/dist/apis/app.js +33 -0
  38. package/dist/apis/audit-logs.cjs +33 -0
  39. package/dist/apis/audit-logs.d.cts +18 -0
  40. package/dist/apis/audit-logs.d.ts +18 -0
  41. package/dist/apis/audit-logs.js +33 -0
  42. package/dist/apis/automation.cjs +33 -0
  43. package/dist/apis/automation.d.cts +18 -0
  44. package/dist/apis/automation.d.ts +18 -0
  45. package/dist/apis/automation.js +33 -0
  46. package/dist/apis/billing.cjs +33 -0
  47. package/dist/apis/billing.d.cts +18 -0
  48. package/dist/apis/billing.d.ts +18 -0
  49. package/dist/apis/billing.js +33 -0
  50. package/dist/apis/blueprint-manifest.cjs +33 -0
  51. package/dist/apis/blueprint-manifest.d.cts +18 -0
  52. package/dist/apis/blueprint-manifest.d.ts +18 -0
  53. package/dist/apis/blueprint-manifest.js +33 -0
  54. package/dist/apis/consent.cjs +33 -0
  55. package/dist/apis/consent.d.cts +18 -0
  56. package/dist/apis/consent.d.ts +18 -0
  57. package/dist/apis/consent.js +33 -0
  58. package/dist/apis/customer-portal.cjs +33 -0
  59. package/dist/apis/customer-portal.d.cts +18 -0
  60. package/dist/apis/customer-portal.d.ts +18 -0
  61. package/dist/apis/customer-portal.js +33 -0
  62. package/dist/apis/data-management.cjs +33 -0
  63. package/dist/apis/data-management.d.cts +18 -0
  64. package/dist/apis/data-management.d.ts +18 -0
  65. package/dist/apis/data-management.js +33 -0
  66. package/dist/apis/deduplication.cjs +33 -0
  67. package/dist/apis/deduplication.d.cts +18 -0
  68. package/dist/apis/deduplication.d.ts +18 -0
  69. package/dist/apis/deduplication.js +33 -0
  70. package/dist/apis/design.cjs +33 -0
  71. package/dist/apis/design.d.cts +18 -0
  72. package/dist/apis/design.d.ts +18 -0
  73. package/dist/apis/design.js +33 -0
  74. package/dist/apis/discussion.cjs +33 -0
  75. package/dist/apis/discussion.d.cts +18 -0
  76. package/dist/apis/discussion.d.ts +18 -0
  77. package/dist/apis/discussion.js +33 -0
  78. package/dist/apis/document.cjs +33 -0
  79. package/dist/apis/document.d.cts +18 -0
  80. package/dist/apis/document.d.ts +18 -0
  81. package/dist/apis/document.js +33 -0
  82. package/dist/apis/email-settings.cjs +33 -0
  83. package/dist/apis/email-settings.d.cts +18 -0
  84. package/dist/apis/email-settings.d.ts +18 -0
  85. package/dist/apis/email-settings.js +33 -0
  86. package/dist/apis/email-template.cjs +33 -0
  87. package/dist/apis/email-template.d.cts +18 -0
  88. package/dist/apis/email-template.d.ts +18 -0
  89. package/dist/apis/email-template.js +33 -0
  90. package/dist/apis/entity-mapping.cjs +33 -0
  91. package/dist/apis/entity-mapping.d.cts +18 -0
  92. package/dist/apis/entity-mapping.d.ts +18 -0
  93. package/dist/apis/entity-mapping.js +33 -0
  94. package/dist/apis/entity.cjs +33 -0
  95. package/dist/apis/entity.d.cts +18 -0
  96. package/dist/apis/entity.d.ts +18 -0
  97. package/dist/apis/entity.js +33 -0
  98. package/dist/apis/environments.cjs +33 -0
  99. package/dist/apis/environments.d.cts +18 -0
  100. package/dist/apis/environments.d.ts +18 -0
  101. package/dist/apis/environments.js +33 -0
  102. package/dist/apis/erp-integration.cjs +33 -0
  103. package/dist/apis/erp-integration.d.cts +18 -0
  104. package/dist/apis/erp-integration.d.ts +18 -0
  105. package/dist/apis/erp-integration.js +33 -0
  106. package/dist/apis/event-catalog.cjs +33 -0
  107. package/dist/apis/event-catalog.d.cts +18 -0
  108. package/dist/apis/event-catalog.d.ts +18 -0
  109. package/dist/apis/event-catalog.js +33 -0
  110. package/dist/apis/file.cjs +33 -0
  111. package/dist/apis/file.d.cts +18 -0
  112. package/dist/apis/file.d.ts +18 -0
  113. package/dist/apis/file.js +33 -0
  114. package/dist/apis/iban.cjs +33 -0
  115. package/dist/apis/iban.d.cts +18 -0
  116. package/dist/apis/iban.d.ts +18 -0
  117. package/dist/apis/iban.js +33 -0
  118. package/dist/apis/journey.cjs +33 -0
  119. package/dist/apis/journey.d.cts +18 -0
  120. package/dist/apis/journey.d.ts +18 -0
  121. package/dist/apis/journey.js +33 -0
  122. package/dist/apis/kanban.cjs +33 -0
  123. package/dist/apis/kanban.d.cts +18 -0
  124. package/dist/apis/kanban.d.ts +18 -0
  125. package/dist/apis/kanban.js +33 -0
  126. package/dist/apis/message.cjs +33 -0
  127. package/dist/apis/message.d.cts +18 -0
  128. package/dist/apis/message.d.ts +18 -0
  129. package/dist/apis/message.js +33 -0
  130. package/dist/apis/metering.cjs +33 -0
  131. package/dist/apis/metering.d.cts +18 -0
  132. package/dist/apis/metering.d.ts +18 -0
  133. package/dist/apis/metering.js +33 -0
  134. package/dist/apis/notes.cjs +33 -0
  135. package/dist/apis/notes.d.cts +18 -0
  136. package/dist/apis/notes.d.ts +18 -0
  137. package/dist/apis/notes.js +33 -0
  138. package/dist/apis/notification.cjs +33 -0
  139. package/dist/apis/notification.d.cts +18 -0
  140. package/dist/apis/notification.d.ts +18 -0
  141. package/dist/apis/notification.js +33 -0
  142. package/dist/apis/organization.cjs +33 -0
  143. package/dist/apis/organization.d.cts +18 -0
  144. package/dist/apis/organization.d.ts +18 -0
  145. package/dist/apis/organization.js +33 -0
  146. package/dist/apis/partner-directory.cjs +33 -0
  147. package/dist/apis/partner-directory.d.cts +18 -0
  148. package/dist/apis/partner-directory.d.ts +18 -0
  149. package/dist/apis/partner-directory.js +33 -0
  150. package/dist/apis/permissions.cjs +33 -0
  151. package/dist/apis/permissions.d.cts +18 -0
  152. package/dist/apis/permissions.d.ts +18 -0
  153. package/dist/apis/permissions.js +33 -0
  154. package/dist/apis/pricing-tier.cjs +33 -0
  155. package/dist/apis/pricing-tier.d.cts +18 -0
  156. package/dist/apis/pricing-tier.d.ts +18 -0
  157. package/dist/apis/pricing-tier.js +33 -0
  158. package/dist/apis/pricing.cjs +33 -0
  159. package/dist/apis/pricing.d.cts +18 -0
  160. package/dist/apis/pricing.d.ts +18 -0
  161. package/dist/apis/pricing.js +33 -0
  162. package/dist/apis/purpose.cjs +33 -0
  163. package/dist/apis/purpose.d.cts +18 -0
  164. package/dist/apis/purpose.d.ts +18 -0
  165. package/dist/apis/purpose.js +33 -0
  166. package/dist/apis/sandbox.cjs +33 -0
  167. package/dist/apis/sandbox.d.cts +18 -0
  168. package/dist/apis/sandbox.d.ts +18 -0
  169. package/dist/apis/sandbox.js +33 -0
  170. package/dist/apis/submission.cjs +33 -0
  171. package/dist/apis/submission.d.cts +18 -0
  172. package/dist/apis/submission.d.ts +18 -0
  173. package/dist/apis/submission.js +33 -0
  174. package/dist/apis/targeting.cjs +33 -0
  175. package/dist/apis/targeting.d.cts +18 -0
  176. package/dist/apis/targeting.d.ts +18 -0
  177. package/dist/apis/targeting.js +33 -0
  178. package/dist/apis/template-variables.cjs +33 -0
  179. package/dist/apis/template-variables.d.cts +18 -0
  180. package/dist/apis/template-variables.d.ts +18 -0
  181. package/dist/apis/template-variables.js +33 -0
  182. package/dist/apis/user.cjs +33 -0
  183. package/dist/apis/user.d.cts +18 -0
  184. package/dist/apis/user.d.ts +18 -0
  185. package/dist/apis/user.js +33 -0
  186. package/dist/apis/validation-rules.cjs +33 -0
  187. package/dist/apis/validation-rules.d.cts +18 -0
  188. package/dist/apis/validation-rules.d.ts +18 -0
  189. package/dist/apis/validation-rules.js +33 -0
  190. package/dist/apis/webhooks.cjs +33 -0
  191. package/dist/apis/webhooks.d.cts +18 -0
  192. package/dist/apis/webhooks.d.ts +18 -0
  193. package/dist/apis/webhooks.js +33 -0
  194. package/dist/apis/workflow-definition.cjs +33 -0
  195. package/dist/apis/workflow-definition.d.cts +18 -0
  196. package/dist/apis/workflow-definition.d.ts +18 -0
  197. package/dist/apis/workflow-definition.js +33 -0
  198. package/dist/apis/workflow.cjs +33 -0
  199. package/dist/apis/workflow.d.cts +18 -0
  200. package/dist/apis/workflow.d.ts +18 -0
  201. package/dist/apis/workflow.js +33 -0
  202. package/dist/app-UUTBO3WJ.js +573 -0
  203. package/dist/app-XJGY6SHO.cjs +573 -0
  204. package/dist/app.d-Uncn387s.d.cts +3370 -0
  205. package/dist/app.d-Uncn387s.d.ts +3370 -0
  206. package/dist/audit-logs-4IJYIOXF.js +55 -0
  207. package/dist/audit-logs-UWLCPBB4.cjs +55 -0
  208. package/dist/audit-logs.d-BxZqONu5.d.cts +288 -0
  209. package/dist/audit-logs.d-BxZqONu5.d.ts +288 -0
  210. package/dist/automation-4UQADTDO.cjs +282 -0
  211. package/dist/automation-PVXTQLZX.js +282 -0
  212. package/dist/automation.d-BteCzeFn.d.cts +4921 -0
  213. package/dist/automation.d-BteCzeFn.d.ts +4921 -0
  214. package/dist/billing-FI4V4UX5.cjs +175 -0
  215. package/dist/billing-OMWNJHGW.js +175 -0
  216. package/dist/billing.d-BH4__05Y.d.cts +994 -0
  217. package/dist/billing.d-BH4__05Y.d.ts +994 -0
  218. package/dist/bin/cli.js +135 -0
  219. package/dist/blueprint-manifest-CPQAL76N.cjs +504 -0
  220. package/dist/blueprint-manifest-FIMGDHSH.js +504 -0
  221. package/dist/blueprint-manifest.d-CU4v09fj.d.cts +3327 -0
  222. package/dist/blueprint-manifest.d-CU4v09fj.d.ts +3327 -0
  223. package/dist/chunk-3RG5ZIWI.js +10 -0
  224. package/dist/chunk-OBGZSXTJ.cjs +10 -0
  225. package/dist/chunk-UJTFRZMS.js +65 -0
  226. package/dist/chunk-YLLKMXS3.cjs +65 -0
  227. package/dist/consent-NHDCDJMK.js +84 -0
  228. package/dist/consent-R5GU3WCK.cjs +84 -0
  229. package/dist/consent.d-BETWwU_2.d.cts +266 -0
  230. package/dist/consent.d-BETWwU_2.d.ts +266 -0
  231. package/dist/customer-portal-6AV2W43T.cjs +2252 -0
  232. package/dist/customer-portal-EY57GJYV.js +2252 -0
  233. package/dist/customer-portal.d-Co_I6psR.d.cts +15255 -0
  234. package/dist/customer-portal.d-Co_I6psR.d.ts +15255 -0
  235. package/dist/data-management-ILQUYNTN.cjs +240 -0
  236. package/dist/data-management-QMXOLOEG.js +240 -0
  237. package/dist/data-management.d-CkR2E_Pm.d.cts +548 -0
  238. package/dist/data-management.d-CkR2E_Pm.d.ts +548 -0
  239. package/dist/deduplication-IVXANO7S.cjs +42 -0
  240. package/dist/deduplication-WN45DVK3.js +42 -0
  241. package/dist/deduplication.d-BlHnjhXk.d.cts +114 -0
  242. package/dist/deduplication.d-BlHnjhXk.d.ts +114 -0
  243. package/dist/design-ONRLY6XI.cjs +219 -0
  244. package/dist/design-UHMRO3PG.js +219 -0
  245. package/dist/design.d-JsNY_cGh.d.cts +834 -0
  246. package/dist/design.d-JsNY_cGh.d.ts +834 -0
  247. package/dist/discussion-4CZIG3ZM.cjs +134 -0
  248. package/dist/discussion-VWMWL2AF.js +134 -0
  249. package/dist/discussion.d-CxxaYKTf.d.cts +580 -0
  250. package/dist/discussion.d-CxxaYKTf.d.ts +580 -0
  251. package/dist/document-CN3JNXFF.js +78 -0
  252. package/dist/document-PCKNZA4K.cjs +78 -0
  253. package/dist/document.d-CZ_FGhEn.d.cts +649 -0
  254. package/dist/document.d-CZ_FGhEn.d.ts +649 -0
  255. package/dist/email-settings-ANURQMKZ.js +533 -0
  256. package/dist/email-settings-YE2XB2ZU.cjs +533 -0
  257. package/dist/email-settings.d-3eXYEyRr.d.cts +2278 -0
  258. package/dist/email-settings.d-3eXYEyRr.d.ts +2278 -0
  259. package/dist/email-template-4QI4YS4J.js +122 -0
  260. package/dist/email-template-BUJBC6HH.cjs +122 -0
  261. package/dist/email-template.d-C2L0dKqB.d.cts +1175 -0
  262. package/dist/email-template.d-C2L0dKqB.d.ts +1175 -0
  263. package/dist/entity-BCFE3UJT.cjs +1600 -0
  264. package/dist/entity-VEXNQC4Y.js +1600 -0
  265. package/dist/entity-mapping-PHRLSYP7.cjs +215 -0
  266. package/dist/entity-mapping-QK7MGNAW.js +215 -0
  267. package/dist/entity-mapping.d-B3Vyepok.d.cts +1093 -0
  268. package/dist/entity-mapping.d-B3Vyepok.d.ts +1093 -0
  269. package/dist/entity.d-DmER_7q5.d.cts +16018 -0
  270. package/dist/entity.d-DmER_7q5.d.ts +16018 -0
  271. package/dist/environments-266S44UM.cjs +71 -0
  272. package/dist/environments-AV7W6SLT.js +71 -0
  273. package/dist/environments.d-CpILpSNF.d.cts +254 -0
  274. package/dist/environments.d-CpILpSNF.d.ts +254 -0
  275. package/dist/erp-integration-5WNBCGWS.cjs +586 -0
  276. package/dist/erp-integration-EMI5WIWA.js +586 -0
  277. package/dist/erp-integration.d-DmxUZOUQ.d.cts +4120 -0
  278. package/dist/erp-integration.d-DmxUZOUQ.d.ts +4120 -0
  279. package/dist/event-catalog-DBWYKQ6J.cjs +130 -0
  280. package/dist/event-catalog-KKMXV5LB.js +130 -0
  281. package/dist/event-catalog.d-B2tq20gn.d.cts +1512 -0
  282. package/dist/event-catalog.d-B2tq20gn.d.ts +1512 -0
  283. package/dist/file-3ZLMS6TL.js +573 -0
  284. package/dist/file-Q66N5XMG.cjs +573 -0
  285. package/dist/file.d-Bi0EZkNu.d.cts +2993 -0
  286. package/dist/file.d-Bi0EZkNu.d.ts +2993 -0
  287. package/dist/iban-HSXVSIFW.cjs +43 -0
  288. package/dist/iban-Q27INTOC.js +43 -0
  289. package/dist/iban.d-DP7hl0Qt.d.cts +71 -0
  290. package/dist/iban.d-DP7hl0Qt.d.ts +71 -0
  291. package/dist/index.cjs +563 -0
  292. package/dist/index.d.cts +119 -0
  293. package/dist/index.d.ts +119 -0
  294. package/dist/index.js +563 -0
  295. package/dist/journey-DGKXVWZQ.js +270 -0
  296. package/dist/journey-T2Y72EBS.cjs +270 -0
  297. package/dist/journey.d-DxL16X6N.d.cts +1794 -0
  298. package/dist/journey.d-DxL16X6N.d.ts +1794 -0
  299. package/dist/kanban-A4B6RCJ2.cjs +164 -0
  300. package/dist/kanban-PP6WJVT2.js +164 -0
  301. package/dist/kanban.d-DDrBwr9h.d.cts +631 -0
  302. package/dist/kanban.d-DDrBwr9h.d.ts +631 -0
  303. package/dist/message-D6JY4GJH.cjs +673 -0
  304. package/dist/message-HFX2DDCV.js +673 -0
  305. package/dist/message.d-BeBH6vof.d.cts +3580 -0
  306. package/dist/message.d-BeBH6vof.d.ts +3580 -0
  307. package/dist/metering-63MJFCS2.cjs +399 -0
  308. package/dist/metering-F63PNFCZ.js +399 -0
  309. package/dist/metering.d-D5VR4tVa.d.cts +1842 -0
  310. package/dist/metering.d-D5VR4tVa.d.ts +1842 -0
  311. package/dist/notes-FTL5H4JE.cjs +219 -0
  312. package/dist/notes-GMWTQCMB.js +219 -0
  313. package/dist/notes.d-DZYeVo0I.d.cts +1047 -0
  314. package/dist/notes.d-DZYeVo0I.d.ts +1047 -0
  315. package/dist/notification-WXFSOORN.cjs +237 -0
  316. package/dist/notification-XHG3TIBW.js +237 -0
  317. package/dist/notification.d-BJwdFZnG.d.cts +1148 -0
  318. package/dist/notification.d-BJwdFZnG.d.ts +1148 -0
  319. package/dist/organization-CPXTUDJO.js +118 -0
  320. package/dist/organization-XIFV7MWP.cjs +118 -0
  321. package/dist/organization.d-DfUcuwKM.d.cts +629 -0
  322. package/dist/organization.d-DfUcuwKM.d.ts +629 -0
  323. package/dist/partner-directory-4WCHPJRO.js +282 -0
  324. package/dist/partner-directory-FKWPPO7F.cjs +282 -0
  325. package/dist/partner-directory.d-BRRDHFcz.d.cts +1511 -0
  326. package/dist/partner-directory.d-BRRDHFcz.d.ts +1511 -0
  327. package/dist/permissions-5E36GPG3.js +178 -0
  328. package/dist/permissions-PBTK5CCD.cjs +178 -0
  329. package/dist/permissions.d-CL7SwMFy.d.cts +1253 -0
  330. package/dist/permissions.d-CL7SwMFy.d.ts +1253 -0
  331. package/dist/pricing-FDWEBIQU.js +439 -0
  332. package/dist/pricing-FZQKL4DW.cjs +439 -0
  333. package/dist/pricing-tier-34O624R4.js +36 -0
  334. package/dist/pricing-tier-F4HE6WIM.cjs +36 -0
  335. package/dist/pricing-tier.d-VuH-NtlR.d.cts +82 -0
  336. package/dist/pricing-tier.d-VuH-NtlR.d.ts +82 -0
  337. package/dist/pricing.d-Dd1CaSX_.d.cts +12201 -0
  338. package/dist/pricing.d-Dd1CaSX_.d.ts +12201 -0
  339. package/dist/purpose-47HJIG2Q.cjs +180 -0
  340. package/dist/purpose-MX33NU5H.js +180 -0
  341. package/dist/purpose.d-D8YCSqt9.d.cts +373 -0
  342. package/dist/purpose.d-D8YCSqt9.d.ts +373 -0
  343. package/dist/sandbox-7QNLGFN2.cjs +100 -0
  344. package/dist/sandbox-TZCXHBJN.js +100 -0
  345. package/dist/sandbox.d-D1NgPMEc.d.cts +466 -0
  346. package/dist/sandbox.d-D1NgPMEc.d.ts +466 -0
  347. package/dist/submission-6LSPBI27.js +55 -0
  348. package/dist/submission-DBQNDJ4B.cjs +55 -0
  349. package/dist/submission.d-e9MPrbY1.d.cts +470 -0
  350. package/dist/submission.d-e9MPrbY1.d.ts +470 -0
  351. package/dist/targeting-HZRCLNIF.cjs +275 -0
  352. package/dist/targeting-MTQ6JBCY.js +275 -0
  353. package/dist/targeting.d-1GW3nh-y.d.cts +2058 -0
  354. package/dist/targeting.d-1GW3nh-y.d.ts +2058 -0
  355. package/dist/template-variables-S6IXK7SF.js +159 -0
  356. package/dist/template-variables-VPNIMC7L.cjs +159 -0
  357. package/dist/template-variables.d-CqqGe3sd.d.cts +1315 -0
  358. package/dist/template-variables.d-CqqGe3sd.d.ts +1315 -0
  359. package/dist/types-C5cGIwtq.d.cts +28 -0
  360. package/dist/types-C5cGIwtq.d.ts +28 -0
  361. package/dist/user-BHH4DAA5.cjs +488 -0
  362. package/dist/user-KBXFVRPI.js +488 -0
  363. package/dist/user.d-CWBgUia2.d.cts +2199 -0
  364. package/dist/user.d-CWBgUia2.d.ts +2199 -0
  365. package/dist/validation-rules-4V7KAWGW.cjs +120 -0
  366. package/dist/validation-rules-UGQY4ASY.js +120 -0
  367. package/dist/validation-rules.d-CMSvveua.d.cts +808 -0
  368. package/dist/validation-rules.d-CMSvveua.d.ts +808 -0
  369. package/dist/webhooks-JR475VD4.js +252 -0
  370. package/dist/webhooks-X64U3KCB.cjs +252 -0
  371. package/dist/webhooks.d-Bzl-u_Zs.d.cts +1201 -0
  372. package/dist/webhooks.d-Bzl-u_Zs.d.ts +1201 -0
  373. package/dist/workflow-7ANPQZDP.cjs +402 -0
  374. package/dist/workflow-DWSAHA5Q.js +402 -0
  375. package/dist/workflow-definition-2M3JBCUI.cjs +342 -0
  376. package/dist/workflow-definition-WLPGEU55.js +342 -0
  377. package/dist/workflow-definition.d-BKmIy2Qp.d.cts +2030 -0
  378. package/dist/workflow-definition.d-BKmIy2Qp.d.ts +2030 -0
  379. package/dist/workflow.d-DElz0XoQ.d.cts +3017 -0
  380. package/dist/workflow.d-DElz0XoQ.d.ts +3017 -0
  381. package/package.json +289 -0
@@ -0,0 +1,1175 @@
1
+ import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
+
3
+ /* eslint-disable */
4
+ /* Auto-copied from email-template-client */
5
+ /* eslint-disable */
6
+
7
+
8
+
9
+ declare namespace Components {
10
+ namespace Schemas {
11
+ /**
12
+ * Type of approval action for the bulk message request.
13
+ * * APPROVE_WITH_CONSENT: Approve the bulk message request and send emails to queued recipients with consent
14
+ * * APPROVE_ALL: Approve the bulk message request and send emails to all queued recipients, including those without consent
15
+ *
16
+ */
17
+ export type ApproveAction = "APPROVE_WITH_CONSENT" | "APPROVE_ALL";
18
+ /**
19
+ * Time when the bulk message action was last approved
20
+ */
21
+ export type ApprovedAt = string; // date-time
22
+ export interface AsyncEmailTemplateResponse {
23
+ /**
24
+ * Job ID of the email template that is requested to replace and generate docs
25
+ * example:
26
+ * 8c086140-f33e-4bb7-a993-50c0f2402c7b
27
+ */
28
+ job_id: string;
29
+ status: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED";
30
+ /**
31
+ * Error message
32
+ */
33
+ message?: string;
34
+ /**
35
+ * Progress count of the documents that are needed to generate
36
+ */
37
+ doc_progress_count?: {
38
+ /**
39
+ * Total count
40
+ * example:
41
+ * 10
42
+ */
43
+ total: number;
44
+ /**
45
+ * Completed count
46
+ * example:
47
+ * 5
48
+ */
49
+ completed: number;
50
+ };
51
+ /**
52
+ * Result of the email template that is replaced along with generated docs
53
+ */
54
+ result?: {
55
+ entity?: EmailTemplateEntity;
56
+ relations?: {
57
+ [key: string]: any;
58
+ }[];
59
+ };
60
+ }
61
+ export type Attachment = {
62
+ /**
63
+ * Attachment ID
64
+ * example:
65
+ * f820ce3b-07b0-45ae-bcc6-babb2f53f79f
66
+ */
67
+ cid?: string;
68
+ /**
69
+ * File name
70
+ * example:
71
+ * Produktinformationen_epilot360_Double_Opt_in.pdf
72
+ */
73
+ filename: string;
74
+ /**
75
+ * File size in bytes
76
+ * example:
77
+ * 451349
78
+ */
79
+ size: number;
80
+ /**
81
+ * Content type
82
+ * example:
83
+ * application/pdf
84
+ */
85
+ content_type: string;
86
+ /**
87
+ * URL to download the attachment.
88
+ * example:
89
+ * https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
90
+ */
91
+ url?: string;
92
+ /**
93
+ * S3 bucket where file is stored
94
+ * example:
95
+ * 893487340562-message-attachment
96
+ */
97
+ bucket: string;
98
+ /**
99
+ * S3 object apiKey
100
+ * example:
101
+ * attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
102
+ */
103
+ object_key: string;
104
+ /**
105
+ * If true then this attachment should not be offered for download (at least not in the main attachments list).\
106
+ * The usecase is CID embedded image (aka inline image).
107
+ *
108
+ */
109
+ inline?: boolean;
110
+ /**
111
+ * 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.
112
+ */
113
+ send_as_link?: boolean;
114
+ /**
115
+ * File type such as Document template, Document,... Use for replace variables on document template
116
+ * example:
117
+ * Document template
118
+ */
119
+ type?: string;
120
+ /**
121
+ * If true then this attachment is copied to the message and replaces corresponding one
122
+ */
123
+ copy_to_message?: boolean;
124
+ } | null;
125
+ export interface AttachmentResponse {
126
+ /**
127
+ * Total attachments
128
+ * example:
129
+ * 10
130
+ */
131
+ total?: number;
132
+ /**
133
+ * List attachments
134
+ */
135
+ attachments?: {
136
+ /**
137
+ * File name
138
+ * example:
139
+ * order.docx
140
+ */
141
+ filename?: string;
142
+ /**
143
+ * Bucket name
144
+ * example:
145
+ * epilot-playground-upload-document
146
+ */
147
+ bucket?: string;
148
+ /**
149
+ * Object key
150
+ * example:
151
+ * 9f561bea-f0d9-4e96-b7a9-879fc1643ac0.docx
152
+ */
153
+ object_key?: string;
154
+ /**
155
+ * URL
156
+ * example:
157
+ * https://epilot-playground-upload-document.s3.eu-central-1.amazonaws.com/9f561bea-f0d9-4e96-b7a9-879fc1643ac0.docx
158
+ */
159
+ url?: string;
160
+ /**
161
+ * Document type:
162
+ * * 0: Static docs
163
+ * * 1: Templates
164
+ *
165
+ * example:
166
+ * 0
167
+ */
168
+ document_type?: number;
169
+ }[];
170
+ }
171
+ export interface BaseEntity {
172
+ /**
173
+ * Entity ID
174
+ * example:
175
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
176
+ */
177
+ _id: string;
178
+ /**
179
+ * Entity title
180
+ */
181
+ _title: string;
182
+ /**
183
+ * Ivy Organization ID the entity belongs to
184
+ * example:
185
+ * 206801
186
+ */
187
+ _org: string;
188
+ /**
189
+ * URL-friendly identifier for the entity schema
190
+ * example:
191
+ * message
192
+ */
193
+ _schema: string;
194
+ /**
195
+ * Entity tags
196
+ * example:
197
+ * [
198
+ * "automatic email template"
199
+ * ]
200
+ */
201
+ _tags?: string[];
202
+ /**
203
+ * Created date
204
+ * example:
205
+ * 2021-02-09T12:41:43.662Z
206
+ */
207
+ _created_at: string; // date-time
208
+ /**
209
+ * Updated date
210
+ * example:
211
+ * 2021-02-10T09:14:31.990Z
212
+ */
213
+ _updated_at: string; // date-time
214
+ /**
215
+ * Entity Purposes
216
+ * example:
217
+ * [
218
+ * "a0ec23ac-12f8-4d89-9a63-91cba3787f2a",
219
+ * "310cd388-2f15-4b5b-8f98-ca14c1e03304"
220
+ * ]
221
+ */
222
+ _purpose?: string[];
223
+ /**
224
+ * Manifest ID used to create/update the entity
225
+ */
226
+ _manifest?: string /* uuid */[];
227
+ }
228
+ export interface BulkSendMessageJob {
229
+ org_id?: /**
230
+ * Organization ID
231
+ * example:
232
+ * 206801
233
+ */
234
+ OrgId;
235
+ /**
236
+ * Job ID for tracking the status of bulk message action
237
+ * example:
238
+ * 8c086140-f33e-4bb7-a993-50c0f2402c7b
239
+ */
240
+ job_id: string;
241
+ skip_creating_entities?: /* When true, it lets to send only the email by skip creating the thread & message entities. */ SkipCreatingEntities;
242
+ /**
243
+ * Status of the bulk message action
244
+ * * PROCESSING: Bulk message action is processing the request
245
+ * * QUEUEING: Bulk message action is generating emails to send in a queue
246
+ * * SENDING: Bulk message action is sending emails from the queue
247
+ * * SUCCESS: Bulk message action is completed successfully
248
+ * * FAILED: Bulk message action is failed
249
+ * * CANCELLED: Bulk message action was cancelled
250
+ *
251
+ */
252
+ status: "PROCESSING" | "QUEUEING" | "APPROVAL" | "SENDING" | "SUCCESS" | "FAILED" | "CANCELLED";
253
+ request: /**
254
+ * It takes a list of entity ids, treating each as a separate mainEntity to construct individual messages.
255
+ * For e.g; if there some opportunityIds are provided, then each opportunityId is treated as a separate mainEntity to construct individual messages.
256
+ *
257
+ */
258
+ BulkSendMessageRequest | /**
259
+ * It takes an entity query to derive recipient_ids, treating each as a separate mainEntity to construct individual messages.
260
+ * For e.g; if the query is provided as `_schema:opportunity AND status:PENDING`,
261
+ * then all the opportunity Ids with status PENDING are treated as separate mainEntity to construct individual messages.
262
+ *
263
+ */
264
+ BulkSendMessageRequestWithQuery;
265
+ created_by?: /**
266
+ * User ID who created the bulk message action
267
+ * example:
268
+ * 1234
269
+ */
270
+ CreatedBy;
271
+ created_at?: /* Time when the bulk message action was created */ CreatedAt /* date-time */;
272
+ updated_at?: /* Time when the bulk message action was last updated */ UpdatedAt /* date-time */;
273
+ approved_at?: /* Time when the bulk message action was last approved */ ApprovedAt /* date-time */;
274
+ approve_action?: /**
275
+ * Type of approval action for the bulk message request.
276
+ * * APPROVE_WITH_CONSENT: Approve the bulk message request and send emails to queued recipients with consent
277
+ * * APPROVE_ALL: Approve the bulk message request and send emails to all queued recipients, including those without consent
278
+ *
279
+ */
280
+ ApproveAction;
281
+ task_token?: /**
282
+ * Task token to approve or cancel the bulk message action
283
+ * example:
284
+ * 8c086140-f33e-4bb7-a993-50c0f2402c7b
285
+ */
286
+ TaskToken;
287
+ /**
288
+ * Total number of emails generated and queued for sending
289
+ * example:
290
+ * 100
291
+ */
292
+ total_queued?: number;
293
+ /**
294
+ * List of entity ids that are queued for sending
295
+ */
296
+ queued?: {
297
+ /**
298
+ * Recipient Entity ID
299
+ * example:
300
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
301
+ */
302
+ entity_id: string;
303
+ /**
304
+ * Recipient emails
305
+ */
306
+ email_to: string[];
307
+ /**
308
+ * Recipient emails with consent
309
+ */
310
+ email_with_consent: string[];
311
+ }[];
312
+ /**
313
+ * List of entity ids and message ids that were sent successfully
314
+ */
315
+ sent?: {
316
+ /**
317
+ * Recipient Entity ID
318
+ * example:
319
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
320
+ */
321
+ entity_id: string;
322
+ /**
323
+ * Message ID
324
+ * example:
325
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
326
+ */
327
+ message_id: string;
328
+ email_to?: string[];
329
+ }[];
330
+ /**
331
+ * List of entity ids that were skipped or failed
332
+ */
333
+ failed?: {
334
+ /**
335
+ * Recipient Entity ID
336
+ * example:
337
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
338
+ */
339
+ entity_id: string;
340
+ /**
341
+ * Error message
342
+ */
343
+ error: string;
344
+ email_to?: string[];
345
+ }[];
346
+ }
347
+ /**
348
+ * It takes a list of entity ids, treating each as a separate mainEntity to construct individual messages.
349
+ * For e.g; if there some opportunityIds are provided, then each opportunityId is treated as a separate mainEntity to construct individual messages.
350
+ *
351
+ */
352
+ export interface BulkSendMessageRequest {
353
+ skip_creating_entities?: /* When true, it lets to send only the email by skip creating the thread & message entities. */ SkipCreatingEntities;
354
+ /**
355
+ * ID of email template to use for sending bulk emails
356
+ * example:
357
+ * 511ceb90-f738-47aa-8b1e-915ace0ae13c
358
+ */
359
+ email_template_id: string;
360
+ /**
361
+ * If true then include unsubscribe link in the email body
362
+ *
363
+ */
364
+ must_include_unsubscribe_link?: boolean;
365
+ /**
366
+ * List of entity ids to use as recipients
367
+ * example:
368
+ * [
369
+ * "3fa85f64-5717-4562-b3fc-2c963f66afa6",
370
+ * "3fa85f64-5717-4562-b3fc-2c963f66afa7",
371
+ * "3fa85f64-5717-4562-b3fc-2c963f66afa8"
372
+ * ]
373
+ */
374
+ recipient_ids: string[];
375
+ custom_variables?: /* Custom variables to be replaced in the email template */ CustomVariables;
376
+ }
377
+ /**
378
+ * It takes an entity query to derive recipient_ids, treating each as a separate mainEntity to construct individual messages.
379
+ * For e.g; if the query is provided as `_schema:opportunity AND status:PENDING`,
380
+ * then all the opportunity Ids with status PENDING are treated as separate mainEntity to construct individual messages.
381
+ *
382
+ */
383
+ export interface BulkSendMessageRequestWithQuery {
384
+ skip_creating_entities?: /* When true, it lets to send only the email by skip creating the thread & message entities. */ SkipCreatingEntities;
385
+ /**
386
+ * ID of email template to use for sending bulk emails
387
+ * example:
388
+ * 511ceb90-f738-47aa-8b1e-915ace0ae13c
389
+ */
390
+ email_template_id: string;
391
+ /**
392
+ * If true then include unsubscribe link in the email body
393
+ *
394
+ */
395
+ must_include_unsubscribe_link?: boolean;
396
+ /**
397
+ * Entity search query to select recipients
398
+ * example:
399
+ * _schema:contact AND consent_email_marketing:active
400
+ */
401
+ recipient_query: string;
402
+ custom_variables?: /* Custom variables to be replaced in the email template */ CustomVariables;
403
+ }
404
+ export interface CreateSystemTemplatesReq {
405
+ /**
406
+ * example:
407
+ * [
408
+ * "DoubleOptIn_Email_DE",
409
+ * "Einladung Kundenportal",
410
+ * "Partner_Kooperation_Email_DE"
411
+ * ]
412
+ */
413
+ template_names: string[];
414
+ }
415
+ export type CreateSystemTemplatesResp = BaseEntity[];
416
+ /**
417
+ * Time when the bulk message action was created
418
+ */
419
+ export type CreatedAt = string; // date-time
420
+ /**
421
+ * User ID who created the bulk message action
422
+ * example:
423
+ * 1234
424
+ */
425
+ export type CreatedBy = string;
426
+ /**
427
+ * Custom variables to be replaced in the email template
428
+ */
429
+ export type CustomVariables = {
430
+ /**
431
+ * Template Variable Name
432
+ * example:
433
+ * {{abc.xyz}}
434
+ */
435
+ variable?: string;
436
+ /**
437
+ * Value to be Replaced
438
+ * example:
439
+ * ReplacedValue
440
+ */
441
+ value?: string;
442
+ }[];
443
+ export interface EmailTemplateEntity {
444
+ /**
445
+ * Entity ID
446
+ * example:
447
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
448
+ */
449
+ _id: string;
450
+ /**
451
+ * Entity title
452
+ */
453
+ _title: string;
454
+ /**
455
+ * Ivy Organization ID the entity belongs to
456
+ * example:
457
+ * 206801
458
+ */
459
+ _org: string;
460
+ /**
461
+ * URL-friendly identifier for the entity schema
462
+ * example:
463
+ * message
464
+ */
465
+ _schema: string;
466
+ /**
467
+ * Entity tags
468
+ * example:
469
+ * [
470
+ * "automatic email template"
471
+ * ]
472
+ */
473
+ _tags?: string[];
474
+ /**
475
+ * Created date
476
+ * example:
477
+ * 2021-02-09T12:41:43.662Z
478
+ */
479
+ _created_at: string; // date-time
480
+ /**
481
+ * Updated date
482
+ * example:
483
+ * 2021-02-10T09:14:31.990Z
484
+ */
485
+ _updated_at: string; // date-time
486
+ /**
487
+ * Entity Purposes
488
+ * example:
489
+ * [
490
+ * "a0ec23ac-12f8-4d89-9a63-91cba3787f2a",
491
+ * "310cd388-2f15-4b5b-8f98-ca14c1e03304"
492
+ * ]
493
+ */
494
+ _purpose?: string[];
495
+ /**
496
+ * Manifest ID used to create/update the entity
497
+ */
498
+ _manifest?: string /* uuid */[];
499
+ /**
500
+ * name
501
+ * example:
502
+ * Order confirmation
503
+ */
504
+ name: string;
505
+ /**
506
+ * Brand ID. Equal 0 if available for All brands
507
+ * example:
508
+ * 0
509
+ */
510
+ brand_id?: number | null;
511
+ from?: From;
512
+ /**
513
+ * To
514
+ */
515
+ to?: To[];
516
+ /**
517
+ * Cc
518
+ */
519
+ cc?: To[];
520
+ /**
521
+ * Bcc
522
+ */
523
+ bcc?: To[];
524
+ /**
525
+ * Subject
526
+ * example:
527
+ * We have received your order!
528
+ */
529
+ subject?: string;
530
+ /**
531
+ * Body
532
+ * example:
533
+ * Hi Ms Ny Huynh, </br> Thank you for your order. We will contact you shortly
534
+ */
535
+ body?: string;
536
+ /**
537
+ * Email template attachments
538
+ */
539
+ attachments?: Attachment[] | null;
540
+ file?: {
541
+ /**
542
+ * Entity tags
543
+ */
544
+ $relation?: {
545
+ [key: string]: any;
546
+ }[];
547
+ };
548
+ /**
549
+ * Created by
550
+ * example:
551
+ * 1234
552
+ */
553
+ created_by?: string;
554
+ /**
555
+ * Updated by
556
+ * example:
557
+ * 1234
558
+ */
559
+ updated_by?: string;
560
+ /**
561
+ * If template is created by system (Double Opt-in, CMD invitation,...) then true, and some attributes can not be edited such as Name, To,...
562
+ * Remember to add default content of template to system_template enum for revert to original feature
563
+ *
564
+ * example:
565
+ * false
566
+ */
567
+ system_template?: boolean;
568
+ }
569
+ export interface EmailTemplateRequest {
570
+ /**
571
+ * example:
572
+ * cd7809ba-a111-4dd9-8d15-18eb4de0faed
573
+ */
574
+ _id?: string;
575
+ /**
576
+ * Entity tags
577
+ * example:
578
+ * [
579
+ * "template"
580
+ * ]
581
+ */
582
+ _tags?: string[];
583
+ /**
584
+ * Manifest ID used to create/update the entity
585
+ */
586
+ _manifest?: string /* uuid */[];
587
+ /**
588
+ * Entity Purposes
589
+ * example:
590
+ * [
591
+ * "a0ec23ac-12f8-4d89-9a63-91cba3787f2a",
592
+ * "310cd388-2f15-4b5b-8f98-ca14c1e03304"
593
+ * ]
594
+ */
595
+ _purpose?: string[];
596
+ /**
597
+ * name
598
+ * example:
599
+ * Order confirmation
600
+ */
601
+ name: string;
602
+ /**
603
+ * Brand ID. Equal 0 if available for All brands
604
+ * example:
605
+ * 0
606
+ */
607
+ brand_id?: number | null;
608
+ /**
609
+ * From
610
+ */
611
+ from?: From;
612
+ /**
613
+ * To
614
+ */
615
+ to?: To[];
616
+ /**
617
+ * Cc
618
+ */
619
+ cc?: To[];
620
+ /**
621
+ * Bcc
622
+ */
623
+ bcc?: To[];
624
+ /**
625
+ * Subject
626
+ * example:
627
+ * We have received your order!
628
+ */
629
+ subject: string;
630
+ /**
631
+ * Body
632
+ * example:
633
+ * Hi Ms Ny Huynh, </br> Thank you for your order. We will contact you shortly
634
+ */
635
+ body?: string;
636
+ /**
637
+ * Email template attachments
638
+ */
639
+ attachments?: Attachment[] | null;
640
+ file?: {
641
+ /**
642
+ * Entity tags
643
+ */
644
+ $relation?: {
645
+ [key: string]: any;
646
+ }[];
647
+ };
648
+ /**
649
+ * If template is created by system (Double Opt-in, CMD invitation,...) then true, and some attributes can not be edited such as Name, To,...
650
+ * Remember 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
651
+ *
652
+ * example:
653
+ * false
654
+ */
655
+ system_template?: boolean;
656
+ /**
657
+ * Created by
658
+ * example:
659
+ * 1234
660
+ */
661
+ created_by?: string;
662
+ /**
663
+ * Updated by
664
+ * example:
665
+ * 1234
666
+ */
667
+ updated_by?: string;
668
+ }
669
+ export interface EmailTemplateResponse {
670
+ entity?: EmailTemplateEntity;
671
+ relations?: {
672
+ [key: string]: any;
673
+ }[];
674
+ }
675
+ export interface From {
676
+ /**
677
+ * example:
678
+ * epilot
679
+ */
680
+ name?: string;
681
+ /**
682
+ * example:
683
+ * no-reply@epilot.cloud
684
+ */
685
+ email: string;
686
+ }
687
+ /**
688
+ * Organization ID
689
+ * example:
690
+ * 206801
691
+ */
692
+ export type OrgId = string;
693
+ export interface PresignedRequest {
694
+ /**
695
+ * UUID
696
+ * example:
697
+ * 8c086140-f33e-4bb7-a993-50c0f2402c7b
698
+ */
699
+ id: string;
700
+ /**
701
+ * File name
702
+ * example:
703
+ * order.pdf
704
+ */
705
+ filename: string;
706
+ /**
707
+ * Content type
708
+ * example:
709
+ * application/pdf
710
+ */
711
+ content_type: string;
712
+ }
713
+ export interface PresignedResponse {
714
+ /**
715
+ * URL to download the attachment. This URL is not accessible until attachment is uploaded successfully.
716
+ * example:
717
+ * https://go.epilot.cloud/attachments/3e7c616a-3e89-4f92-b4c5-ea5ab140e3dd/Produktinformationen_epilot360_Double_Opt_in.pdf
718
+ */
719
+ download_url: string;
720
+ /**
721
+ * Post presigned URL to upload file
722
+ */
723
+ upload_url: {
724
+ /**
725
+ * URL to upload the attachment
726
+ * example:
727
+ * https://s3.eu-central-1.amazonaws.com/893487340562-message-attachment
728
+ */
729
+ url: number;
730
+ /**
731
+ * Fields are provided by AWS to authenticate and validate the request. All fields should be included in form-data when performing upload request.
732
+ * example:
733
+ * {}
734
+ */
735
+ fields: {
736
+ [key: string]: any;
737
+ };
738
+ };
739
+ }
740
+ /**
741
+ * When true, it lets to send only the email by skip creating the thread & message entities.
742
+ */
743
+ export type SkipCreatingEntities = boolean;
744
+ /**
745
+ * Task token to approve or cancel the bulk message action
746
+ * example:
747
+ * 8c086140-f33e-4bb7-a993-50c0f2402c7b
748
+ */
749
+ export type TaskToken = string;
750
+ export type TemplateType = "email" | "document";
751
+ export interface To {
752
+ /**
753
+ * example:
754
+ * Ny Huynh
755
+ */
756
+ name?: string;
757
+ /**
758
+ * example:
759
+ * ny.huynh@axonactive.com
760
+ */
761
+ email: string;
762
+ }
763
+ /**
764
+ * Time when the bulk message action was last updated
765
+ */
766
+ export type UpdatedAt = string; // date-time
767
+ export interface UserResponse {
768
+ id?: string;
769
+ organization_id?: string;
770
+ /**
771
+ * User's display name (default: email address)
772
+ * example:
773
+ * Example User
774
+ */
775
+ display_name?: string;
776
+ email?: string; // email
777
+ /**
778
+ * example:
779
+ * 1234567890
780
+ */
781
+ phone?: string | null;
782
+ /**
783
+ * example:
784
+ * de
785
+ */
786
+ preferred_language?: string;
787
+ /**
788
+ * example:
789
+ * {
790
+ * "original": "https://account-profile-images.epilot.cloud/1/avatar.png",
791
+ * "thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
792
+ * }
793
+ */
794
+ image_uri?: {
795
+ [name: string]: any;
796
+ original?: string; // uri
797
+ thumbnail_32?: string; // uri
798
+ };
799
+ properties?: {
800
+ /**
801
+ * example:
802
+ * profileImageName
803
+ */
804
+ name: string;
805
+ /**
806
+ * example:
807
+ * avatar.png
808
+ */
809
+ value: string;
810
+ }[];
811
+ }
812
+ export interface VariableParameters {
813
+ template_type: TemplateType;
814
+ language?: "en" | "de";
815
+ /**
816
+ * 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.
817
+ * example:
818
+ * 63753437-c9e2-4e83-82bb-b1c666514561
819
+ */
820
+ main_entity_id?: string;
821
+ /**
822
+ * User ID
823
+ * example:
824
+ * 123452
825
+ */
826
+ user_id?: string;
827
+ custom_variables?: /* Custom variables to be replaced in the email template */ CustomVariables;
828
+ }
829
+ }
830
+ }
831
+ declare namespace Paths {
832
+ namespace BulkSendMessage {
833
+ export type RequestBody = /**
834
+ * It takes an entity query to derive recipient_ids, treating each as a separate mainEntity to construct individual messages.
835
+ * For e.g; if the query is provided as `_schema:opportunity AND status:PENDING`,
836
+ * then all the opportunity Ids with status PENDING are treated as separate mainEntity to construct individual messages.
837
+ *
838
+ */
839
+ Components.Schemas.BulkSendMessageRequestWithQuery | /**
840
+ * It takes a list of entity ids, treating each as a separate mainEntity to construct individual messages.
841
+ * For e.g; if there some opportunityIds are provided, then each opportunityId is treated as a separate mainEntity to construct individual messages.
842
+ *
843
+ */
844
+ Components.Schemas.BulkSendMessageRequest | {
845
+ /**
846
+ * Job ID for tracking the status of a bulk message request
847
+ * example:
848
+ * 8c086140-f33e-4bb7-a993-50c0f2402c7b
849
+ */
850
+ job_id: string;
851
+ /**
852
+ * Trigger an APPROVE OR CANCEL action for the bulk message request.
853
+ *
854
+ * * APPROVE: Alias for APPROVE_WITH_CONSENT
855
+ * * APPROVE_WITH_CONSENT: Approve the bulk message request and send emails to queued recipients with consent
856
+ * * APPROVE_ALL: Approve the bulk message request and send emails to all queued recipients, including those without consent
857
+ * * CANCEL: Cancel the bulk message request
858
+ *
859
+ */
860
+ action?: "APPROVE" | "APPROVE_WITH_CONSENT" | "APPROVE_ALL" | "CANCEL";
861
+ };
862
+ namespace Responses {
863
+ export type $200 = Components.Schemas.BulkSendMessageJob;
864
+ export interface $403 {
865
+ }
866
+ }
867
+ }
868
+ namespace GetTemplateDetail {
869
+ namespace Parameters {
870
+ export type Id = string;
871
+ }
872
+ export interface PathParameters {
873
+ id: Parameters.Id;
874
+ }
875
+ namespace Responses {
876
+ export type $200 = Components.Schemas.EmailTemplateResponse;
877
+ export interface $403 {
878
+ }
879
+ export interface $404 {
880
+ }
881
+ }
882
+ }
883
+ namespace ReplaceVariables {
884
+ export interface RequestBody {
885
+ /**
886
+ * example:
887
+ * 511ceb90-f738-47aa-8b1e-915ace0ae13c
888
+ */
889
+ email_template_id: string;
890
+ variable_parameters?: Components.Schemas.VariableParameters;
891
+ /**
892
+ * If true then include unsubscribe link in the email body
893
+ *
894
+ */
895
+ must_include_unsubscribe_link?: boolean;
896
+ /**
897
+ * If true then skip document generation. This is useful when you want to replace html variables only. Speeds up the process.
898
+ *
899
+ */
900
+ skip_document_generation?: boolean;
901
+ }
902
+ namespace Responses {
903
+ export type $200 = Components.Schemas.EmailTemplateResponse;
904
+ export interface $403 {
905
+ }
906
+ }
907
+ }
908
+ namespace ReplaceVariablesAsync {
909
+ namespace Parameters {
910
+ export type JobId = string;
911
+ }
912
+ export interface QueryParameters {
913
+ job_id?: Parameters.JobId;
914
+ }
915
+ export interface RequestBody {
916
+ /**
917
+ * example:
918
+ * 511ceb90-f738-47aa-8b1e-915ace0ae13c
919
+ */
920
+ email_template_id?: string;
921
+ variable_parameters?: Components.Schemas.VariableParameters;
922
+ /**
923
+ * If true then include unsubscribe link in the email body
924
+ *
925
+ */
926
+ must_include_unsubscribe_link?: boolean;
927
+ /**
928
+ * If true then skip document generation. This is useful when you want to replace html variables only. Speeds up the process.
929
+ *
930
+ */
931
+ skip_document_generation?: boolean;
932
+ }
933
+ namespace Responses {
934
+ export type $200 = Components.Schemas.AsyncEmailTemplateResponse;
935
+ export interface $403 {
936
+ }
937
+ }
938
+ }
939
+ namespace RevertToOriginalTemplate {
940
+ export interface RequestBody {
941
+ /**
942
+ * example:
943
+ * 511ceb90-f738-47aa-8b1e-915ace0ae13c
944
+ */
945
+ email_template_id: string;
946
+ }
947
+ namespace Responses {
948
+ export interface $200 {
949
+ }
950
+ export interface $403 {
951
+ }
952
+ }
953
+ }
954
+ namespace SaveTemplate {
955
+ export type RequestBody = Components.Schemas.EmailTemplateRequest;
956
+ namespace Responses {
957
+ export type $200 = Components.Schemas.EmailTemplateEntity;
958
+ export interface $403 {
959
+ }
960
+ }
961
+ }
962
+ namespace UpdateTemplateDetail {
963
+ namespace Parameters {
964
+ export type Id = string;
965
+ }
966
+ export interface PathParameters {
967
+ id: Parameters.Id;
968
+ }
969
+ export type RequestBody = Components.Schemas.EmailTemplateRequest;
970
+ namespace Responses {
971
+ export type $200 = Components.Schemas.EmailTemplateEntity;
972
+ export interface $403 {
973
+ }
974
+ export interface $404 {
975
+ }
976
+ }
977
+ }
978
+ }
979
+
980
+ interface OperationMethods {
981
+ /**
982
+ * saveTemplate - saveTemplate
983
+ *
984
+ * Create or update a template. If `id` is provided, it will update the template.
985
+ */
986
+ 'saveTemplate'(
987
+ parameters?: Parameters<UnknownParamsObject> | null,
988
+ data?: Paths.SaveTemplate.RequestBody,
989
+ config?: AxiosRequestConfig
990
+ ): OperationResponse<Paths.SaveTemplate.Responses.$200>
991
+ /**
992
+ * getTemplateDetail - getTemplateDetail
993
+ *
994
+ * Get email template by ID
995
+ */
996
+ 'getTemplateDetail'(
997
+ parameters?: Parameters<Paths.GetTemplateDetail.PathParameters> | null,
998
+ data?: any,
999
+ config?: AxiosRequestConfig
1000
+ ): OperationResponse<Paths.GetTemplateDetail.Responses.$200>
1001
+ /**
1002
+ * updateTemplateDetail - updateTemplateDetail
1003
+ *
1004
+ * Update email template by ID
1005
+ */
1006
+ 'updateTemplateDetail'(
1007
+ parameters?: Parameters<Paths.UpdateTemplateDetail.PathParameters> | null,
1008
+ data?: Paths.UpdateTemplateDetail.RequestBody,
1009
+ config?: AxiosRequestConfig
1010
+ ): OperationResponse<Paths.UpdateTemplateDetail.Responses.$200>
1011
+ /**
1012
+ * replaceVariables - replaceVariables
1013
+ *
1014
+ * Get template detail and replace all variables (template variables and document generation)
1015
+ */
1016
+ 'replaceVariables'(
1017
+ parameters?: Parameters<UnknownParamsObject> | null,
1018
+ data?: Paths.ReplaceVariables.RequestBody,
1019
+ config?: AxiosRequestConfig
1020
+ ): OperationResponse<Paths.ReplaceVariables.Responses.$200>
1021
+ /**
1022
+ * replaceVariablesAsync - replaceVariablesAsync
1023
+ *
1024
+ * This endpoint allows to initiate an asynchronous process in replacing the template details & generating the documents.
1025
+ * On initial request, a jobId and STARTED status are returned. Subsequent requests can use this jobId to poll for the resolved template.
1026
+ * If 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.
1027
+ *
1028
+ */
1029
+ 'replaceVariablesAsync'(
1030
+ parameters?: Parameters<Paths.ReplaceVariablesAsync.QueryParameters> | null,
1031
+ data?: Paths.ReplaceVariablesAsync.RequestBody,
1032
+ config?: AxiosRequestConfig
1033
+ ): OperationResponse<Paths.ReplaceVariablesAsync.Responses.$200>
1034
+ /**
1035
+ * bulkSendMessage - bulkSendMessage
1036
+ *
1037
+ * Send emails to multiple recipients using a template
1038
+ */
1039
+ 'bulkSendMessage'(
1040
+ parameters?: Parameters<UnknownParamsObject> | null,
1041
+ data?: Paths.BulkSendMessage.RequestBody,
1042
+ config?: AxiosRequestConfig
1043
+ ): OperationResponse<Paths.BulkSendMessage.Responses.$200>
1044
+ /**
1045
+ * revertToOriginalTemplate - revertToOriginalTemplate
1046
+ *
1047
+ * Revert to the original system generated email template
1048
+ */
1049
+ 'revertToOriginalTemplate'(
1050
+ parameters?: Parameters<UnknownParamsObject> | null,
1051
+ data?: Paths.RevertToOriginalTemplate.RequestBody,
1052
+ config?: AxiosRequestConfig
1053
+ ): OperationResponse<Paths.RevertToOriginalTemplate.Responses.$200>
1054
+ }
1055
+
1056
+ interface PathsDictionary {
1057
+ ['/v1/email-template/templates']: {
1058
+ /**
1059
+ * saveTemplate - saveTemplate
1060
+ *
1061
+ * Create or update a template. If `id` is provided, it will update the template.
1062
+ */
1063
+ 'post'(
1064
+ parameters?: Parameters<UnknownParamsObject> | null,
1065
+ data?: Paths.SaveTemplate.RequestBody,
1066
+ config?: AxiosRequestConfig
1067
+ ): OperationResponse<Paths.SaveTemplate.Responses.$200>
1068
+ }
1069
+ ['/v1/email-template/templates/{id}']: {
1070
+ /**
1071
+ * getTemplateDetail - getTemplateDetail
1072
+ *
1073
+ * Get email template by ID
1074
+ */
1075
+ 'get'(
1076
+ parameters?: Parameters<Paths.GetTemplateDetail.PathParameters> | null,
1077
+ data?: any,
1078
+ config?: AxiosRequestConfig
1079
+ ): OperationResponse<Paths.GetTemplateDetail.Responses.$200>
1080
+ /**
1081
+ * updateTemplateDetail - updateTemplateDetail
1082
+ *
1083
+ * Update email template by ID
1084
+ */
1085
+ 'put'(
1086
+ parameters?: Parameters<Paths.UpdateTemplateDetail.PathParameters> | null,
1087
+ data?: Paths.UpdateTemplateDetail.RequestBody,
1088
+ config?: AxiosRequestConfig
1089
+ ): OperationResponse<Paths.UpdateTemplateDetail.Responses.$200>
1090
+ }
1091
+ ['/v1/email-template/templates:replace']: {
1092
+ /**
1093
+ * replaceVariables - replaceVariables
1094
+ *
1095
+ * Get template detail and replace all variables (template variables and document generation)
1096
+ */
1097
+ 'post'(
1098
+ parameters?: Parameters<UnknownParamsObject> | null,
1099
+ data?: Paths.ReplaceVariables.RequestBody,
1100
+ config?: AxiosRequestConfig
1101
+ ): OperationResponse<Paths.ReplaceVariables.Responses.$200>
1102
+ }
1103
+ ['/v1/email-template/templates:replaceAsync']: {
1104
+ /**
1105
+ * replaceVariablesAsync - replaceVariablesAsync
1106
+ *
1107
+ * This endpoint allows to initiate an asynchronous process in replacing the template details & generating the documents.
1108
+ * On initial request, a jobId and STARTED status are returned. Subsequent requests can use this jobId to poll for the resolved template.
1109
+ * If 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.
1110
+ *
1111
+ */
1112
+ 'post'(
1113
+ parameters?: Parameters<Paths.ReplaceVariablesAsync.QueryParameters> | null,
1114
+ data?: Paths.ReplaceVariablesAsync.RequestBody,
1115
+ config?: AxiosRequestConfig
1116
+ ): OperationResponse<Paths.ReplaceVariablesAsync.Responses.$200>
1117
+ }
1118
+ ['/v1/email-template/templates:bulkSendMessage']: {
1119
+ /**
1120
+ * bulkSendMessage - bulkSendMessage
1121
+ *
1122
+ * Send emails to multiple recipients using a template
1123
+ */
1124
+ 'post'(
1125
+ parameters?: Parameters<UnknownParamsObject> | null,
1126
+ data?: Paths.BulkSendMessage.RequestBody,
1127
+ config?: AxiosRequestConfig
1128
+ ): OperationResponse<Paths.BulkSendMessage.Responses.$200>
1129
+ }
1130
+ ['/v1/email-template/templates:revert']: {
1131
+ /**
1132
+ * revertToOriginalTemplate - revertToOriginalTemplate
1133
+ *
1134
+ * Revert to the original system generated email template
1135
+ */
1136
+ 'post'(
1137
+ parameters?: Parameters<UnknownParamsObject> | null,
1138
+ data?: Paths.RevertToOriginalTemplate.RequestBody,
1139
+ config?: AxiosRequestConfig
1140
+ ): OperationResponse<Paths.RevertToOriginalTemplate.Responses.$200>
1141
+ }
1142
+ }
1143
+
1144
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1145
+
1146
+ type ApproveAction = Components.Schemas.ApproveAction;
1147
+ type ApprovedAt = Components.Schemas.ApprovedAt;
1148
+ type AsyncEmailTemplateResponse = Components.Schemas.AsyncEmailTemplateResponse;
1149
+ type Attachment = Components.Schemas.Attachment;
1150
+ type AttachmentResponse = Components.Schemas.AttachmentResponse;
1151
+ type BaseEntity = Components.Schemas.BaseEntity;
1152
+ type BulkSendMessageJob = Components.Schemas.BulkSendMessageJob;
1153
+ type BulkSendMessageRequest = Components.Schemas.BulkSendMessageRequest;
1154
+ type BulkSendMessageRequestWithQuery = Components.Schemas.BulkSendMessageRequestWithQuery;
1155
+ type CreateSystemTemplatesReq = Components.Schemas.CreateSystemTemplatesReq;
1156
+ type CreateSystemTemplatesResp = Components.Schemas.CreateSystemTemplatesResp;
1157
+ type CreatedAt = Components.Schemas.CreatedAt;
1158
+ type CreatedBy = Components.Schemas.CreatedBy;
1159
+ type CustomVariables = Components.Schemas.CustomVariables;
1160
+ type EmailTemplateEntity = Components.Schemas.EmailTemplateEntity;
1161
+ type EmailTemplateRequest = Components.Schemas.EmailTemplateRequest;
1162
+ type EmailTemplateResponse = Components.Schemas.EmailTemplateResponse;
1163
+ type From = Components.Schemas.From;
1164
+ type OrgId = Components.Schemas.OrgId;
1165
+ type PresignedRequest = Components.Schemas.PresignedRequest;
1166
+ type PresignedResponse = Components.Schemas.PresignedResponse;
1167
+ type SkipCreatingEntities = Components.Schemas.SkipCreatingEntities;
1168
+ type TaskToken = Components.Schemas.TaskToken;
1169
+ type TemplateType = Components.Schemas.TemplateType;
1170
+ type To = Components.Schemas.To;
1171
+ type UpdatedAt = Components.Schemas.UpdatedAt;
1172
+ type UserResponse = Components.Schemas.UserResponse;
1173
+ type VariableParameters = Components.Schemas.VariableParameters;
1174
+
1175
+ export type { ApproveAction as A, BaseEntity as B, Client as C, EmailTemplateEntity as E, From as F, OperationMethods as O, PathsDictionary as P, SkipCreatingEntities as S, TaskToken as T, UpdatedAt as U, VariableParameters as V, ApprovedAt as a, AsyncEmailTemplateResponse as b, Attachment as c, AttachmentResponse as d, BulkSendMessageJob as e, BulkSendMessageRequest as f, BulkSendMessageRequestWithQuery as g, CreateSystemTemplatesReq as h, CreateSystemTemplatesResp as i, CreatedAt as j, CreatedBy as k, CustomVariables as l, EmailTemplateRequest as m, EmailTemplateResponse as n, OrgId as o, PresignedRequest as p, PresignedResponse as q, TemplateType as r, To as s, UserResponse as t };