@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,3580 @@
1
+ import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
+
3
+ /* eslint-disable */
4
+ /* Auto-copied from message-client */
5
+ /* eslint-disable */
6
+
7
+
8
+
9
+ declare namespace Components {
10
+ namespace Responses {
11
+ export type BadRequest = Schemas.ErrorResponse;
12
+ export type Conflict = Schemas.ErrorResponse;
13
+ export type Forbidden = Schemas.ErrorResponse;
14
+ export type InternalServerError = Schemas.ErrorResponse;
15
+ export type NotFound = Schemas.ErrorResponse;
16
+ }
17
+ namespace Schemas {
18
+ export interface Address {
19
+ /**
20
+ * Email address alias
21
+ * example:
22
+ * epilot
23
+ */
24
+ name?: string;
25
+ /**
26
+ * Email address
27
+ * example:
28
+ * messaging@epilot.cloud
29
+ */
30
+ address: string;
31
+ /**
32
+ * Type of the email, Internal (360 Agents), Partners, External users(Customers)
33
+ *
34
+ */
35
+ email_type?: "INTERNAL" | "EXTERNAL" | "PARTNER";
36
+ /**
37
+ * Sent message status regarding to this recipient. Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
38
+ *
39
+ */
40
+ send_status?: "SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR";
41
+ /**
42
+ * Information about reject, complaint or bounce event. Only available if `send_status` is REJECT, COMPLAINT, BOUNCE or ERROR. JSON object is defined by AWS SES. Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notification-contents.html>
43
+ *
44
+ */
45
+ send_error?: {
46
+ [key: string]: any;
47
+ };
48
+ }
49
+ /**
50
+ * Message attachments
51
+ */
52
+ export interface AttachmentsRelation {
53
+ /**
54
+ * It's normal entity relation with some additional properties for sending message attachment.
55
+ */
56
+ $relation?: File[];
57
+ }
58
+ export interface BaseEntity {
59
+ /**
60
+ * Entity ID
61
+ * example:
62
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
63
+ */
64
+ _id: string;
65
+ /**
66
+ * Entity title
67
+ */
68
+ _title: string;
69
+ /**
70
+ * Organization ID the entity belongs to
71
+ * example:
72
+ * 206801
73
+ */
74
+ _org: string;
75
+ /**
76
+ * URL-friendly identifier for the entity schema
77
+ * example:
78
+ * message
79
+ */
80
+ _schema: string;
81
+ /**
82
+ * Entity tags
83
+ * example:
84
+ * [
85
+ * "pricing",
86
+ * "INBOX"
87
+ * ]
88
+ */
89
+ _tags?: string[];
90
+ /**
91
+ * Created date
92
+ * example:
93
+ * 2021-02-09T12:41:43.662Z
94
+ */
95
+ _created_at: string; // date-time
96
+ /**
97
+ * Updated date
98
+ * example:
99
+ * 2021-02-10T09:14:31.990Z
100
+ */
101
+ _updated_at: string; // date-time
102
+ }
103
+ export interface BulkActionsPayload {
104
+ /**
105
+ * Array of threads you wish to perform bulk actions on
106
+ * example:
107
+ * [
108
+ * "6b299eda-4018-4554-8965-c4b5598e6531"
109
+ * ]
110
+ */
111
+ ids: string[];
112
+ }
113
+ export interface BulkActionsPayloadWithScopes {
114
+ /**
115
+ * Array of threads you wish to perform bulk actions on
116
+ * example:
117
+ * [
118
+ * "6b299eda-4018-4554-8965-c4b5598e6531"
119
+ * ]
120
+ */
121
+ ids: string[];
122
+ /**
123
+ * The scopes to be used when marking an item as read or unread. The read status will be synced for all provided scopes.
124
+ * example:
125
+ * [
126
+ * "organization",
127
+ * "user"
128
+ * ]
129
+ */
130
+ scopes?: /* Who is marking an item as read or unread. */ ReadingScope[];
131
+ }
132
+ export interface ErrorResponse {
133
+ /**
134
+ * Error message
135
+ * example:
136
+ * Thread not found
137
+ */
138
+ error?: string;
139
+ }
140
+ /**
141
+ * List of entity fields to include or exclude in the response
142
+ *
143
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
144
+ *
145
+ * Globbing and globstart (**) is supported for nested fields.
146
+ *
147
+ * example:
148
+ * [
149
+ * "_id",
150
+ * "_title",
151
+ * "first_name",
152
+ * "account",
153
+ * "!account.*._files",
154
+ * "**._product"
155
+ * ]
156
+ */
157
+ export type FieldsParam = string[];
158
+ export interface File {
159
+ /**
160
+ * File entity ID
161
+ * example:
162
+ * f820ce3b-07b0-45ae-bcc6-babb2f53f79f
163
+ */
164
+ entity_id: string;
165
+ /**
166
+ * File name
167
+ * example:
168
+ * Produktinformationen_epilot360_Double_Opt_in.pdf
169
+ */
170
+ filename?: string;
171
+ /**
172
+ * To indicate this file relation is message attachment. If false then this file will not be sent and simply kept as a file relation.
173
+ */
174
+ is_message_attachment?: boolean;
175
+ /**
176
+ * To indicate this file relation may be signature attachment. If true then this file will be sent as signature attachment and not related to any entity.
177
+ */
178
+ may_be_signature_attachment?: boolean;
179
+ /**
180
+ * Content ID (for inline)
181
+ * example:
182
+ * fb222496-a1a5-4639-94f2-07b5e35e4068
183
+ */
184
+ cid?: string;
185
+ /**
186
+ * If true then this attachment should not be offered for download (at least not in the main attachments list). The usecase is CID embedded image (aka inline image).
187
+ *
188
+ */
189
+ inline?: boolean;
190
+ /**
191
+ * If true then this attachment is sent via link. The link have to be inserted to email body by API caller. In this case, service doesn't process this attachment.
192
+ *
193
+ */
194
+ send_as_link?: boolean;
195
+ }
196
+ export interface Message {
197
+ /**
198
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
199
+ * example:
200
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
201
+ */
202
+ message_id?: string;
203
+ /**
204
+ * User ID of user sends the message.
205
+ * example:
206
+ * 206801
207
+ */
208
+ sender?: string;
209
+ /**
210
+ * Subject
211
+ * example:
212
+ * Request for solar panel price
213
+ */
214
+ subject: string;
215
+ /**
216
+ * HTML body
217
+ * example:
218
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
219
+ */
220
+ html?: string;
221
+ /**
222
+ * Text body
223
+ * example:
224
+ * We at ABC GmbH would like to request a price quote for the solar panel.
225
+ */
226
+ text?: string;
227
+ from: Address;
228
+ reply_to?: Address;
229
+ /**
230
+ * To email addresses
231
+ */
232
+ to?: Address[];
233
+ /**
234
+ * Cc email addresses
235
+ */
236
+ cc?: Address[];
237
+ /**
238
+ * Bcc email addresses
239
+ */
240
+ bcc?: Address[];
241
+ file?: /* Message attachments */ AttachmentsRelation;
242
+ /**
243
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
244
+ *
245
+ * example:
246
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
247
+ */
248
+ references?: string;
249
+ /**
250
+ * In-Reply-To header. Value is the `message_id` of parent message.
251
+ *
252
+ * example:
253
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
254
+ */
255
+ in_reply_to?: string;
256
+ /**
257
+ * User ID of user read the message.
258
+ * example:
259
+ * [
260
+ * "206801",
261
+ * "200109"
262
+ * ]
263
+ */
264
+ user_read_message?: string[];
265
+ /**
266
+ * Organization ID of organization read the message.
267
+ * example:
268
+ * [
269
+ * "789372",
270
+ * "210291"
271
+ * ]
272
+ */
273
+ org_read_message?: string[];
274
+ /**
275
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
276
+ *
277
+ */
278
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
279
+ /**
280
+ * Message type
281
+ */
282
+ type?: "SENT" | "RECEIVED";
283
+ /**
284
+ * Template ID used for sending message.
285
+ * example:
286
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
287
+ */
288
+ template_id?: string;
289
+ }
290
+ export interface MessageRequestParams {
291
+ [name: string]: any;
292
+ /**
293
+ * Whether the thread is marked as Done immediately after sending the message
294
+ */
295
+ complete_thread?: boolean;
296
+ /**
297
+ * Open new thread when sending the very first message in conversation. Thread should contains context related to all messages in it (eg. topic, brand_id, opportunity_id, assigned_to,...). Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing. `thread` or `parent_id` must be provided either.
298
+ *
299
+ * example:
300
+ * {
301
+ * "topic": "CUSTOMER_MESSAGE",
302
+ * "assigned_to": [
303
+ * "206801",
304
+ * "200109"
305
+ * ],
306
+ * "opportunity_id": 829072
307
+ * }
308
+ */
309
+ thread?: {
310
+ /**
311
+ * Message topic (e.g. which service sends the message or message category)
312
+ */
313
+ topic: string;
314
+ /**
315
+ * User ID of who the message is assigned to. Default is the user who sends message.
316
+ */
317
+ assigned_to?: string[];
318
+ };
319
+ /**
320
+ * Entity ID of parent message which this message replies to or forwards from. If both `parent_id` and `thread` are provided, `thread` is discarded.
321
+ *
322
+ * example:
323
+ * 44d7a3eb-0cce-4bd3-a7cd-0b3e652de0c2
324
+ */
325
+ parent_id?: string;
326
+ /**
327
+ * Subject
328
+ * example:
329
+ * Request for solar panel price
330
+ */
331
+ subject: string;
332
+ /**
333
+ * HTML body
334
+ * example:
335
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
336
+ */
337
+ html?: string;
338
+ /**
339
+ * Text body. If not provided, text body is converted from HTML body using [html-to-text](https://www.npmjs.com/package/html-to-text)
340
+ * example:
341
+ * We at ABC GmbH would like to request a price quote for the solar panel.
342
+ */
343
+ text?: string;
344
+ from: Address;
345
+ reply_to?: Address;
346
+ /**
347
+ * To email addresses
348
+ */
349
+ to?: Address[];
350
+ /**
351
+ * Cc email addresses
352
+ */
353
+ cc?: Address[];
354
+ /**
355
+ * Bcc email addresses
356
+ */
357
+ bcc?: Address[];
358
+ file?: /* Message attachments */ AttachmentsRelation;
359
+ /**
360
+ * Template ID used for sending message.
361
+ * example:
362
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
363
+ */
364
+ template_id?: string;
365
+ }
366
+ export interface MessageV2 {
367
+ /**
368
+ * Entity ID
369
+ * example:
370
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
371
+ */
372
+ _id: string;
373
+ /**
374
+ * Entity title
375
+ */
376
+ _title: string;
377
+ /**
378
+ * Organization ID the entity belongs to
379
+ * example:
380
+ * 206801
381
+ */
382
+ _org: string;
383
+ /**
384
+ * URL-friendly identifier for the entity schema
385
+ * example:
386
+ * message
387
+ */
388
+ _schema: string;
389
+ /**
390
+ * Entity tags
391
+ * example:
392
+ * [
393
+ * "pricing",
394
+ * "INBOX"
395
+ * ]
396
+ */
397
+ _tags?: string[];
398
+ /**
399
+ * Created date
400
+ * example:
401
+ * 2021-02-09T12:41:43.662Z
402
+ */
403
+ _created_at: string; // date-time
404
+ /**
405
+ * Updated date
406
+ * example:
407
+ * 2021-02-10T09:14:31.990Z
408
+ */
409
+ _updated_at: string; // date-time
410
+ /**
411
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
412
+ * example:
413
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
414
+ */
415
+ message_id?: string;
416
+ /**
417
+ * User ID of user sends the message.
418
+ * example:
419
+ * 206801
420
+ */
421
+ sender?: string;
422
+ /**
423
+ * Subject
424
+ * example:
425
+ * Request for solar panel price
426
+ */
427
+ subject: string;
428
+ /**
429
+ * HTML body
430
+ * example:
431
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
432
+ */
433
+ html?: string;
434
+ /**
435
+ * Text body
436
+ * example:
437
+ * We at ABC GmbH would like to request a price quote for the solar panel.
438
+ */
439
+ text?: string;
440
+ from: Address;
441
+ reply_to?: Address;
442
+ /**
443
+ * To email addresses
444
+ */
445
+ to?: Address[];
446
+ /**
447
+ * Cc email addresses
448
+ */
449
+ cc?: Address[];
450
+ /**
451
+ * Bcc email addresses
452
+ */
453
+ bcc?: Address[];
454
+ file?: /* Message attachments */ AttachmentsRelation;
455
+ /**
456
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
457
+ *
458
+ * example:
459
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
460
+ */
461
+ references?: string;
462
+ /**
463
+ * In-Reply-To header. Value is the `message_id` of parent message.
464
+ *
465
+ * example:
466
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
467
+ */
468
+ in_reply_to?: string;
469
+ /**
470
+ * User ID of user read the message.
471
+ * example:
472
+ * [
473
+ * "206801",
474
+ * "200109"
475
+ * ]
476
+ */
477
+ user_read_message?: string[];
478
+ /**
479
+ * Organization ID of organization read the message.
480
+ * example:
481
+ * [
482
+ * "789372",
483
+ * "210291"
484
+ * ]
485
+ */
486
+ org_read_message?: string[];
487
+ /**
488
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
489
+ *
490
+ */
491
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
492
+ /**
493
+ * Message type
494
+ */
495
+ type?: "SENT" | "RECEIVED";
496
+ /**
497
+ * Template ID used for sending message.
498
+ * example:
499
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
500
+ */
501
+ template_id?: string;
502
+ /**
503
+ * If true then html is not provided and must be downloaded using the html_download_url
504
+ */
505
+ html_omitted?: boolean;
506
+ /**
507
+ * HTML body download URL
508
+ * example:
509
+ * https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html
510
+ */
511
+ html_download_url?: string;
512
+ }
513
+ export interface MoveThreadPayload {
514
+ /**
515
+ * Inbox ID
516
+ * example:
517
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
518
+ */
519
+ inbox_id: string;
520
+ }
521
+ export interface ReadMessagePayload {
522
+ /**
523
+ * The scopes to be used when marking an item as read or unread. The read status will be synced for all provided scopes.
524
+ * example:
525
+ * [
526
+ * "organization",
527
+ * "user"
528
+ * ]
529
+ */
530
+ scopes: /* Who is marking an item as read or unread. */ ReadingScope[];
531
+ }
532
+ /**
533
+ * Who is marking an item as read or unread.
534
+ */
535
+ export type ReadingScope = "organization" | "user";
536
+ export interface SearchIDParams {
537
+ /**
538
+ * Lucene query syntax supported with ElasticSearch
539
+ * example:
540
+ * subject:"Request for solar panel price" AND _tags:INBOX
541
+ */
542
+ q?: string;
543
+ }
544
+ export interface SearchParams {
545
+ /**
546
+ * Lucene query syntax supported with ElasticSearch
547
+ * example:
548
+ * subject:"Request for solar panel price" AND _tags:INBOX
549
+ */
550
+ q: string;
551
+ from?: number;
552
+ size?: number;
553
+ hydrate?: boolean;
554
+ }
555
+ export interface SearchParamsV2 {
556
+ inbox_id?: string | string[];
557
+ /**
558
+ * Lucene query syntax supported with ElasticSearch
559
+ * example:
560
+ * subject:"Request for solar panel price" AND _tags:INBOX
561
+ */
562
+ q: string;
563
+ fields?: /**
564
+ * List of entity fields to include or exclude in the response
565
+ *
566
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
567
+ *
568
+ * Globbing and globstart (**) is supported for nested fields.
569
+ *
570
+ * example:
571
+ * [
572
+ * "_id",
573
+ * "_title",
574
+ * "first_name",
575
+ * "account",
576
+ * "!account.*._files",
577
+ * "**._product"
578
+ * ]
579
+ */
580
+ FieldsParam;
581
+ from?: number;
582
+ size?: number;
583
+ hydrate?: boolean;
584
+ include_scores?: boolean;
585
+ sort?: string;
586
+ highlight?: any;
587
+ }
588
+ /**
589
+ * Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
590
+ */
591
+ export interface Thread {
592
+ /**
593
+ * Message topic (e.g. which service sends the message or message category)
594
+ * example:
595
+ * CUSTOMER_MESSAGE
596
+ */
597
+ topic: string;
598
+ /**
599
+ * User ID of who the message is assigned to. Default is the user who sends message.
600
+ * example:
601
+ * [
602
+ * "206801",
603
+ * "200109"
604
+ * ]
605
+ */
606
+ assigned_to?: string[];
607
+ /**
608
+ * Organization ID of organization read the message.
609
+ * example:
610
+ * [
611
+ * "789372",
612
+ * "210291"
613
+ * ]
614
+ */
615
+ org_read_message?: string[];
616
+ /**
617
+ * Whether the thread is marked as Done
618
+ * example:
619
+ * false
620
+ */
621
+ done?: boolean;
622
+ latest_message?: Message;
623
+ latest_trash_message?: Message;
624
+ /**
625
+ * The date of the latest message time in the thread
626
+ * example:
627
+ * 2024-02-10T09:14:31.990Z
628
+ */
629
+ latest_message_at?: string;
630
+ }
631
+ export interface ThreadDoneEvent {
632
+ type: "THREAD_DONE";
633
+ /**
634
+ * User ID of the user who marked the thread as done
635
+ * example:
636
+ * 123
637
+ */
638
+ user_id: string;
639
+ /**
640
+ * Organization ID of the organization who marked the thread as done
641
+ * example:
642
+ * 456
643
+ */
644
+ organization_id: string;
645
+ }
646
+ export interface ThreadOpenEvent {
647
+ type: "THREAD_OPEN";
648
+ /**
649
+ * User ID of the user who marked the thread as open
650
+ * example:
651
+ * 123
652
+ */
653
+ user_id: string;
654
+ /**
655
+ * Organization ID of the organization who marked the thread as open
656
+ * example:
657
+ * 456
658
+ */
659
+ organization_id: string;
660
+ }
661
+ export interface ThreadTimeline {
662
+ events: TimelineEvent[];
663
+ }
664
+ export interface TimelineEvent {
665
+ data: TimelineEventData;
666
+ /**
667
+ * Timestamp of the event
668
+ * example:
669
+ * 2024-01-01T00:00:00.000Z
670
+ */
671
+ timestamp: string;
672
+ }
673
+ export type TimelineEventData = ThreadDoneEvent | ThreadOpenEvent;
674
+ }
675
+ }
676
+ declare namespace Paths {
677
+ namespace AssignThread {
678
+ namespace Parameters {
679
+ export type Id = string;
680
+ }
681
+ export interface PathParameters {
682
+ id: Parameters.Id;
683
+ }
684
+ /**
685
+ * Entities which thread is assigned to
686
+ */
687
+ export type RequestBody = {
688
+ /**
689
+ * Entity slug
690
+ * example:
691
+ * contact
692
+ */
693
+ slug?: string;
694
+ /**
695
+ * Entity ID
696
+ * example:
697
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
698
+ */
699
+ entity_id?: string;
700
+ /**
701
+ * Organization ID
702
+ * example:
703
+ * 206801
704
+ */
705
+ org_id?: string;
706
+ /**
707
+ * To indicate this is main entity
708
+ * example:
709
+ * true
710
+ */
711
+ is_main_entity?: boolean;
712
+ }[];
713
+ namespace Responses {
714
+ export interface $204 {
715
+ }
716
+ export interface $403 {
717
+ }
718
+ }
719
+ }
720
+ namespace AssignUsers {
721
+ namespace Parameters {
722
+ export type Id = string;
723
+ }
724
+ export interface PathParameters {
725
+ id: Parameters.Id;
726
+ }
727
+ /**
728
+ * User IDs of users assigned to thread
729
+ */
730
+ export interface RequestBody {
731
+ /**
732
+ * IDs of users assigned to thread
733
+ */
734
+ assigned_to?: string[];
735
+ }
736
+ namespace Responses {
737
+ export interface $204 {
738
+ }
739
+ export interface $403 {
740
+ }
741
+ }
742
+ }
743
+ namespace AssignUsersV2 {
744
+ namespace Parameters {
745
+ export type Id = string;
746
+ }
747
+ export interface PathParameters {
748
+ id: Parameters.Id;
749
+ }
750
+ export interface RequestBody {
751
+ /**
752
+ * User IDs of users to add to thread
753
+ */
754
+ add: string[];
755
+ /**
756
+ * User IDs of users to remove from thread
757
+ */
758
+ remove: string[];
759
+ }
760
+ namespace Responses {
761
+ export interface $204 {
762
+ }
763
+ export interface $403 {
764
+ }
765
+ }
766
+ }
767
+ namespace CreateDraft {
768
+ export type RequestBody = Components.Schemas.MessageRequestParams;
769
+ namespace Responses {
770
+ export interface $201 {
771
+ /**
772
+ * Entity ID
773
+ * example:
774
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
775
+ */
776
+ _id: string;
777
+ /**
778
+ * Entity title
779
+ */
780
+ _title: string;
781
+ /**
782
+ * Organization ID the entity belongs to
783
+ * example:
784
+ * 206801
785
+ */
786
+ _org: string;
787
+ /**
788
+ * URL-friendly identifier for the entity schema
789
+ * example:
790
+ * message
791
+ */
792
+ _schema: string;
793
+ /**
794
+ * Entity tags
795
+ * example:
796
+ * [
797
+ * "pricing",
798
+ * "INBOX"
799
+ * ]
800
+ */
801
+ _tags?: string[];
802
+ /**
803
+ * Created date
804
+ * example:
805
+ * 2021-02-09T12:41:43.662Z
806
+ */
807
+ _created_at: string; // date-time
808
+ /**
809
+ * Updated date
810
+ * example:
811
+ * 2021-02-10T09:14:31.990Z
812
+ */
813
+ _updated_at: string; // date-time
814
+ /**
815
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
816
+ * example:
817
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
818
+ */
819
+ message_id?: string;
820
+ /**
821
+ * User ID of user sends the message.
822
+ * example:
823
+ * 206801
824
+ */
825
+ sender?: string;
826
+ /**
827
+ * Subject
828
+ * example:
829
+ * Request for solar panel price
830
+ */
831
+ subject: string;
832
+ /**
833
+ * HTML body
834
+ * example:
835
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
836
+ */
837
+ html?: string;
838
+ /**
839
+ * Text body
840
+ * example:
841
+ * We at ABC GmbH would like to request a price quote for the solar panel.
842
+ */
843
+ text?: string;
844
+ from: Components.Schemas.Address;
845
+ reply_to?: Components.Schemas.Address;
846
+ /**
847
+ * To email addresses
848
+ */
849
+ to?: Components.Schemas.Address[];
850
+ /**
851
+ * Cc email addresses
852
+ */
853
+ cc?: Components.Schemas.Address[];
854
+ /**
855
+ * Bcc email addresses
856
+ */
857
+ bcc?: Components.Schemas.Address[];
858
+ file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
859
+ /**
860
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
861
+ *
862
+ * example:
863
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
864
+ */
865
+ references?: string;
866
+ /**
867
+ * In-Reply-To header. Value is the `message_id` of parent message.
868
+ *
869
+ * example:
870
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
871
+ */
872
+ in_reply_to?: string;
873
+ /**
874
+ * User ID of user read the message.
875
+ * example:
876
+ * [
877
+ * "206801",
878
+ * "200109"
879
+ * ]
880
+ */
881
+ user_read_message?: string[];
882
+ /**
883
+ * Organization ID of organization read the message.
884
+ * example:
885
+ * [
886
+ * "789372",
887
+ * "210291"
888
+ * ]
889
+ */
890
+ org_read_message?: string[];
891
+ /**
892
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
893
+ *
894
+ */
895
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
896
+ /**
897
+ * Message type
898
+ */
899
+ type?: "SENT" | "RECEIVED";
900
+ /**
901
+ * Template ID used for sending message.
902
+ * example:
903
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
904
+ */
905
+ template_id?: string;
906
+ }
907
+ export interface $403 {
908
+ }
909
+ }
910
+ }
911
+ namespace DeleteMessage {
912
+ namespace Parameters {
913
+ export type Id = string;
914
+ }
915
+ export interface PathParameters {
916
+ id: Parameters.Id;
917
+ }
918
+ namespace Responses {
919
+ export interface $204 {
920
+ }
921
+ export interface $403 {
922
+ }
923
+ }
924
+ }
925
+ namespace DeleteThread {
926
+ namespace Parameters {
927
+ export type Id = string;
928
+ }
929
+ export interface PathParameters {
930
+ id: Parameters.Id;
931
+ }
932
+ namespace Responses {
933
+ export interface $204 {
934
+ }
935
+ export interface $403 {
936
+ }
937
+ }
938
+ }
939
+ namespace GetMessage {
940
+ namespace Parameters {
941
+ /**
942
+ * example:
943
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
944
+ */
945
+ export type Id = string;
946
+ }
947
+ export interface PathParameters {
948
+ id: /**
949
+ * example:
950
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
951
+ */
952
+ Parameters.Id;
953
+ }
954
+ namespace Responses {
955
+ export interface $200 {
956
+ /**
957
+ * Entity ID
958
+ * example:
959
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
960
+ */
961
+ _id: string;
962
+ /**
963
+ * Entity title
964
+ */
965
+ _title: string;
966
+ /**
967
+ * Organization ID the entity belongs to
968
+ * example:
969
+ * 206801
970
+ */
971
+ _org: string;
972
+ /**
973
+ * URL-friendly identifier for the entity schema
974
+ * example:
975
+ * message
976
+ */
977
+ _schema: string;
978
+ /**
979
+ * Entity tags
980
+ * example:
981
+ * [
982
+ * "pricing",
983
+ * "INBOX"
984
+ * ]
985
+ */
986
+ _tags?: string[];
987
+ /**
988
+ * Created date
989
+ * example:
990
+ * 2021-02-09T12:41:43.662Z
991
+ */
992
+ _created_at: string; // date-time
993
+ /**
994
+ * Updated date
995
+ * example:
996
+ * 2021-02-10T09:14:31.990Z
997
+ */
998
+ _updated_at: string; // date-time
999
+ /**
1000
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
1001
+ * example:
1002
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
1003
+ */
1004
+ message_id?: string;
1005
+ /**
1006
+ * User ID of user sends the message.
1007
+ * example:
1008
+ * 206801
1009
+ */
1010
+ sender?: string;
1011
+ /**
1012
+ * Subject
1013
+ * example:
1014
+ * Request for solar panel price
1015
+ */
1016
+ subject: string;
1017
+ /**
1018
+ * HTML body
1019
+ * example:
1020
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
1021
+ */
1022
+ html?: string;
1023
+ /**
1024
+ * Text body
1025
+ * example:
1026
+ * We at ABC GmbH would like to request a price quote for the solar panel.
1027
+ */
1028
+ text?: string;
1029
+ from: Components.Schemas.Address;
1030
+ reply_to?: Components.Schemas.Address;
1031
+ /**
1032
+ * To email addresses
1033
+ */
1034
+ to?: Components.Schemas.Address[];
1035
+ /**
1036
+ * Cc email addresses
1037
+ */
1038
+ cc?: Components.Schemas.Address[];
1039
+ /**
1040
+ * Bcc email addresses
1041
+ */
1042
+ bcc?: Components.Schemas.Address[];
1043
+ file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
1044
+ /**
1045
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
1046
+ *
1047
+ * example:
1048
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1049
+ */
1050
+ references?: string;
1051
+ /**
1052
+ * In-Reply-To header. Value is the `message_id` of parent message.
1053
+ *
1054
+ * example:
1055
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1056
+ */
1057
+ in_reply_to?: string;
1058
+ /**
1059
+ * User ID of user read the message.
1060
+ * example:
1061
+ * [
1062
+ * "206801",
1063
+ * "200109"
1064
+ * ]
1065
+ */
1066
+ user_read_message?: string[];
1067
+ /**
1068
+ * Organization ID of organization read the message.
1069
+ * example:
1070
+ * [
1071
+ * "789372",
1072
+ * "210291"
1073
+ * ]
1074
+ */
1075
+ org_read_message?: string[];
1076
+ /**
1077
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
1078
+ *
1079
+ */
1080
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
1081
+ /**
1082
+ * Message type
1083
+ */
1084
+ type?: "SENT" | "RECEIVED";
1085
+ /**
1086
+ * Template ID used for sending message.
1087
+ * example:
1088
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
1089
+ */
1090
+ template_id?: string;
1091
+ }
1092
+ export interface $302 {
1093
+ }
1094
+ export interface $403 {
1095
+ }
1096
+ }
1097
+ }
1098
+ namespace GetMessageEml {
1099
+ namespace Parameters {
1100
+ /**
1101
+ * example:
1102
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
1103
+ */
1104
+ export type Id = string;
1105
+ }
1106
+ export interface PathParameters {
1107
+ id: /**
1108
+ * example:
1109
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
1110
+ */
1111
+ Parameters.Id;
1112
+ }
1113
+ namespace Responses {
1114
+ export interface $302 {
1115
+ }
1116
+ export interface $403 {
1117
+ }
1118
+ export interface $404 {
1119
+ }
1120
+ }
1121
+ }
1122
+ namespace GetMessageV2 {
1123
+ namespace Parameters {
1124
+ /**
1125
+ * example:
1126
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
1127
+ */
1128
+ export type Id = string;
1129
+ }
1130
+ export interface PathParameters {
1131
+ id: /**
1132
+ * example:
1133
+ * 4d74976d-fb64-47fd-85e2-65eea140f5eb
1134
+ */
1135
+ Parameters.Id;
1136
+ }
1137
+ namespace Responses {
1138
+ export interface $200 {
1139
+ /**
1140
+ * Entity ID
1141
+ * example:
1142
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
1143
+ */
1144
+ _id: string;
1145
+ /**
1146
+ * Entity title
1147
+ */
1148
+ _title: string;
1149
+ /**
1150
+ * Organization ID the entity belongs to
1151
+ * example:
1152
+ * 206801
1153
+ */
1154
+ _org: string;
1155
+ /**
1156
+ * URL-friendly identifier for the entity schema
1157
+ * example:
1158
+ * message
1159
+ */
1160
+ _schema: string;
1161
+ /**
1162
+ * Entity tags
1163
+ * example:
1164
+ * [
1165
+ * "pricing",
1166
+ * "INBOX"
1167
+ * ]
1168
+ */
1169
+ _tags?: string[];
1170
+ /**
1171
+ * Created date
1172
+ * example:
1173
+ * 2021-02-09T12:41:43.662Z
1174
+ */
1175
+ _created_at: string; // date-time
1176
+ /**
1177
+ * Updated date
1178
+ * example:
1179
+ * 2021-02-10T09:14:31.990Z
1180
+ */
1181
+ _updated_at: string; // date-time
1182
+ /**
1183
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
1184
+ * example:
1185
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
1186
+ */
1187
+ message_id?: string;
1188
+ /**
1189
+ * User ID of user sends the message.
1190
+ * example:
1191
+ * 206801
1192
+ */
1193
+ sender?: string;
1194
+ /**
1195
+ * Subject
1196
+ * example:
1197
+ * Request for solar panel price
1198
+ */
1199
+ subject: string;
1200
+ /**
1201
+ * HTML body
1202
+ * example:
1203
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
1204
+ */
1205
+ html?: string;
1206
+ /**
1207
+ * Text body
1208
+ * example:
1209
+ * We at ABC GmbH would like to request a price quote for the solar panel.
1210
+ */
1211
+ text?: string;
1212
+ from: Components.Schemas.Address;
1213
+ reply_to?: Components.Schemas.Address;
1214
+ /**
1215
+ * To email addresses
1216
+ */
1217
+ to?: Components.Schemas.Address[];
1218
+ /**
1219
+ * Cc email addresses
1220
+ */
1221
+ cc?: Components.Schemas.Address[];
1222
+ /**
1223
+ * Bcc email addresses
1224
+ */
1225
+ bcc?: Components.Schemas.Address[];
1226
+ file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
1227
+ /**
1228
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
1229
+ *
1230
+ * example:
1231
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1232
+ */
1233
+ references?: string;
1234
+ /**
1235
+ * In-Reply-To header. Value is the `message_id` of parent message.
1236
+ *
1237
+ * example:
1238
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1239
+ */
1240
+ in_reply_to?: string;
1241
+ /**
1242
+ * User ID of user read the message.
1243
+ * example:
1244
+ * [
1245
+ * "206801",
1246
+ * "200109"
1247
+ * ]
1248
+ */
1249
+ user_read_message?: string[];
1250
+ /**
1251
+ * Organization ID of organization read the message.
1252
+ * example:
1253
+ * [
1254
+ * "789372",
1255
+ * "210291"
1256
+ * ]
1257
+ */
1258
+ org_read_message?: string[];
1259
+ /**
1260
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
1261
+ *
1262
+ */
1263
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
1264
+ /**
1265
+ * Message type
1266
+ */
1267
+ type?: "SENT" | "RECEIVED";
1268
+ /**
1269
+ * Template ID used for sending message.
1270
+ * example:
1271
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
1272
+ */
1273
+ template_id?: string;
1274
+ /**
1275
+ * If true then html is not provided and must be downloaded using the html_download_url
1276
+ */
1277
+ html_omitted?: boolean;
1278
+ /**
1279
+ * HTML body download URL
1280
+ * example:
1281
+ * https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html
1282
+ */
1283
+ html_download_url?: string;
1284
+ }
1285
+ export interface $403 {
1286
+ }
1287
+ }
1288
+ }
1289
+ namespace GetThreadTimeline {
1290
+ namespace Parameters {
1291
+ export type Id = string;
1292
+ }
1293
+ export interface PathParameters {
1294
+ id: Parameters.Id;
1295
+ }
1296
+ namespace Responses {
1297
+ export type $200 = Components.Schemas.ThreadTimeline;
1298
+ export interface $403 {
1299
+ }
1300
+ }
1301
+ }
1302
+ namespace GetUnread {
1303
+ namespace Parameters {
1304
+ export type Actor = "organization" | "user";
1305
+ export type EmailFilter = string[] | string;
1306
+ }
1307
+ export interface PathParameters {
1308
+ actor: Parameters.Actor;
1309
+ }
1310
+ export interface QueryParameters {
1311
+ email_filter?: Parameters.EmailFilter;
1312
+ }
1313
+ namespace Responses {
1314
+ export interface $200 {
1315
+ /**
1316
+ * Total of unread messages
1317
+ * example:
1318
+ * 14
1319
+ */
1320
+ count: number;
1321
+ /**
1322
+ * Total of unread messages
1323
+ * example:
1324
+ * 0
1325
+ */
1326
+ unread?: number;
1327
+ /**
1328
+ * Total of drafts messages
1329
+ * example:
1330
+ * 12
1331
+ */
1332
+ drafts?: number;
1333
+ /**
1334
+ * Total of unassigned messages
1335
+ * example:
1336
+ * 1
1337
+ */
1338
+ unassigned?: number;
1339
+ }
1340
+ export interface $403 {
1341
+ }
1342
+ }
1343
+ }
1344
+ namespace MarkReadMessage {
1345
+ namespace Parameters {
1346
+ export type Id = string;
1347
+ }
1348
+ export interface PathParameters {
1349
+ id: Parameters.Id;
1350
+ }
1351
+ namespace Responses {
1352
+ export interface $204 {
1353
+ }
1354
+ export interface $403 {
1355
+ }
1356
+ }
1357
+ }
1358
+ namespace MarkReadMessageV2 {
1359
+ namespace Parameters {
1360
+ export type Id = string;
1361
+ }
1362
+ export interface PathParameters {
1363
+ id: Parameters.Id;
1364
+ }
1365
+ export type RequestBody = Components.Schemas.ReadMessagePayload;
1366
+ namespace Responses {
1367
+ export interface $204 {
1368
+ }
1369
+ export interface $403 {
1370
+ }
1371
+ }
1372
+ }
1373
+ namespace MarkReadThread {
1374
+ namespace Parameters {
1375
+ export type Id = string;
1376
+ }
1377
+ export interface PathParameters {
1378
+ id: Parameters.Id;
1379
+ }
1380
+ namespace Responses {
1381
+ export interface $200 {
1382
+ }
1383
+ export interface $403 {
1384
+ }
1385
+ }
1386
+ }
1387
+ namespace MarkReadThreadV2 {
1388
+ namespace Parameters {
1389
+ export type Id = string;
1390
+ }
1391
+ export interface PathParameters {
1392
+ id: Parameters.Id;
1393
+ }
1394
+ export type RequestBody = Components.Schemas.ReadMessagePayload;
1395
+ namespace Responses {
1396
+ export interface $200 {
1397
+ }
1398
+ export interface $403 {
1399
+ }
1400
+ }
1401
+ }
1402
+ namespace MarkThreadAsDone {
1403
+ namespace Parameters {
1404
+ export type Id = string;
1405
+ }
1406
+ export interface PathParameters {
1407
+ id: Parameters.Id;
1408
+ }
1409
+ namespace Responses {
1410
+ export interface $204 {
1411
+ }
1412
+ export interface $400 {
1413
+ }
1414
+ }
1415
+ }
1416
+ namespace MarkThreadAsOpen {
1417
+ namespace Parameters {
1418
+ export type Id = string;
1419
+ }
1420
+ export interface PathParameters {
1421
+ id: Parameters.Id;
1422
+ }
1423
+ namespace Responses {
1424
+ export interface $204 {
1425
+ }
1426
+ export interface $400 {
1427
+ }
1428
+ }
1429
+ }
1430
+ namespace MarkUnreadMessage {
1431
+ namespace Parameters {
1432
+ export type Id = string;
1433
+ }
1434
+ export interface PathParameters {
1435
+ id: Parameters.Id;
1436
+ }
1437
+ namespace Responses {
1438
+ export interface $204 {
1439
+ }
1440
+ export interface $403 {
1441
+ }
1442
+ }
1443
+ }
1444
+ namespace MarkUnreadMessageV2 {
1445
+ namespace Parameters {
1446
+ export type Id = string;
1447
+ }
1448
+ export interface PathParameters {
1449
+ id: Parameters.Id;
1450
+ }
1451
+ export type RequestBody = Components.Schemas.ReadMessagePayload;
1452
+ namespace Responses {
1453
+ export interface $204 {
1454
+ }
1455
+ export interface $403 {
1456
+ }
1457
+ }
1458
+ }
1459
+ namespace MarkUnreadThread {
1460
+ namespace Parameters {
1461
+ export type Id = string;
1462
+ }
1463
+ export interface PathParameters {
1464
+ id: Parameters.Id;
1465
+ }
1466
+ namespace Responses {
1467
+ export interface $200 {
1468
+ }
1469
+ export interface $403 {
1470
+ }
1471
+ }
1472
+ }
1473
+ namespace MarkUnreadThreadV2 {
1474
+ namespace Parameters {
1475
+ export type Id = string;
1476
+ }
1477
+ export interface PathParameters {
1478
+ id: Parameters.Id;
1479
+ }
1480
+ export type RequestBody = Components.Schemas.ReadMessagePayload;
1481
+ namespace Responses {
1482
+ export interface $200 {
1483
+ }
1484
+ export interface $403 {
1485
+ }
1486
+ }
1487
+ }
1488
+ namespace MoveThread {
1489
+ namespace Parameters {
1490
+ export type Id = string;
1491
+ }
1492
+ export interface PathParameters {
1493
+ id: Parameters.Id;
1494
+ }
1495
+ export type RequestBody = Components.Schemas.MoveThreadPayload;
1496
+ namespace Responses {
1497
+ export interface $204 {
1498
+ }
1499
+ export type $400 = Components.Responses.BadRequest;
1500
+ export type $403 = Components.Responses.Forbidden;
1501
+ export type $404 = Components.Responses.NotFound;
1502
+ export type $409 = Components.Responses.Conflict;
1503
+ export type $500 = Components.Responses.InternalServerError;
1504
+ }
1505
+ }
1506
+ namespace PinThread {
1507
+ namespace Parameters {
1508
+ export type Id = string;
1509
+ }
1510
+ export interface PathParameters {
1511
+ id: Parameters.Id;
1512
+ }
1513
+ namespace Responses {
1514
+ export interface $204 {
1515
+ }
1516
+ export interface $400 {
1517
+ }
1518
+ export interface $404 {
1519
+ }
1520
+ export interface $409 {
1521
+ }
1522
+ export interface $500 {
1523
+ }
1524
+ }
1525
+ }
1526
+ namespace SearchIds {
1527
+ export type RequestBody = Components.Schemas.SearchIDParams;
1528
+ namespace Responses {
1529
+ export interface $200 {
1530
+ /**
1531
+ * Total of matched threads
1532
+ * example:
1533
+ * 14
1534
+ */
1535
+ hits: number;
1536
+ /**
1537
+ * Matched threads ids
1538
+ */
1539
+ results: string[];
1540
+ }
1541
+ export interface $403 {
1542
+ }
1543
+ }
1544
+ }
1545
+ namespace SearchMessages {
1546
+ export type RequestBody = Components.Schemas.SearchParamsV2;
1547
+ namespace Responses {
1548
+ export interface $200 {
1549
+ /**
1550
+ * Total of matched messages
1551
+ * example:
1552
+ * 14
1553
+ */
1554
+ hits: number;
1555
+ /**
1556
+ * Matched messages
1557
+ */
1558
+ results: {
1559
+ /**
1560
+ * Entity ID
1561
+ * example:
1562
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
1563
+ */
1564
+ _id: string;
1565
+ /**
1566
+ * Entity title
1567
+ */
1568
+ _title: string;
1569
+ /**
1570
+ * Organization ID the entity belongs to
1571
+ * example:
1572
+ * 206801
1573
+ */
1574
+ _org: string;
1575
+ /**
1576
+ * URL-friendly identifier for the entity schema
1577
+ * example:
1578
+ * message
1579
+ */
1580
+ _schema: string;
1581
+ /**
1582
+ * Entity tags
1583
+ * example:
1584
+ * [
1585
+ * "pricing",
1586
+ * "INBOX"
1587
+ * ]
1588
+ */
1589
+ _tags?: string[];
1590
+ /**
1591
+ * Created date
1592
+ * example:
1593
+ * 2021-02-09T12:41:43.662Z
1594
+ */
1595
+ _created_at: string; // date-time
1596
+ /**
1597
+ * Updated date
1598
+ * example:
1599
+ * 2021-02-10T09:14:31.990Z
1600
+ */
1601
+ _updated_at: string; // date-time
1602
+ /**
1603
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
1604
+ * example:
1605
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
1606
+ */
1607
+ message_id?: string;
1608
+ /**
1609
+ * User ID of user sends the message.
1610
+ * example:
1611
+ * 206801
1612
+ */
1613
+ sender?: string;
1614
+ /**
1615
+ * Subject
1616
+ * example:
1617
+ * Request for solar panel price
1618
+ */
1619
+ subject: string;
1620
+ /**
1621
+ * HTML body
1622
+ * example:
1623
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
1624
+ */
1625
+ html?: string;
1626
+ /**
1627
+ * Text body
1628
+ * example:
1629
+ * We at ABC GmbH would like to request a price quote for the solar panel.
1630
+ */
1631
+ text?: string;
1632
+ from: Components.Schemas.Address;
1633
+ reply_to?: Components.Schemas.Address;
1634
+ /**
1635
+ * To email addresses
1636
+ */
1637
+ to?: Components.Schemas.Address[];
1638
+ /**
1639
+ * Cc email addresses
1640
+ */
1641
+ cc?: Components.Schemas.Address[];
1642
+ /**
1643
+ * Bcc email addresses
1644
+ */
1645
+ bcc?: Components.Schemas.Address[];
1646
+ file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
1647
+ /**
1648
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
1649
+ *
1650
+ * example:
1651
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1652
+ */
1653
+ references?: string;
1654
+ /**
1655
+ * In-Reply-To header. Value is the `message_id` of parent message.
1656
+ *
1657
+ * example:
1658
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1659
+ */
1660
+ in_reply_to?: string;
1661
+ /**
1662
+ * User ID of user read the message.
1663
+ * example:
1664
+ * [
1665
+ * "206801",
1666
+ * "200109"
1667
+ * ]
1668
+ */
1669
+ user_read_message?: string[];
1670
+ /**
1671
+ * Organization ID of organization read the message.
1672
+ * example:
1673
+ * [
1674
+ * "789372",
1675
+ * "210291"
1676
+ * ]
1677
+ */
1678
+ org_read_message?: string[];
1679
+ /**
1680
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
1681
+ *
1682
+ */
1683
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
1684
+ /**
1685
+ * Message type
1686
+ */
1687
+ type?: "SENT" | "RECEIVED";
1688
+ /**
1689
+ * Template ID used for sending message.
1690
+ * example:
1691
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
1692
+ */
1693
+ template_id?: string;
1694
+ }[];
1695
+ }
1696
+ export interface $403 {
1697
+ }
1698
+ }
1699
+ }
1700
+ namespace SearchThreads {
1701
+ export type RequestBody = Components.Schemas.SearchParams;
1702
+ namespace Responses {
1703
+ export interface $200 {
1704
+ /**
1705
+ * Total of matched threads
1706
+ * example:
1707
+ * 14
1708
+ */
1709
+ hits: number;
1710
+ /**
1711
+ * Matched threads
1712
+ */
1713
+ results: {
1714
+ /**
1715
+ * Entity ID
1716
+ * example:
1717
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
1718
+ */
1719
+ _id: string;
1720
+ /**
1721
+ * Entity title
1722
+ */
1723
+ _title: string;
1724
+ /**
1725
+ * Organization ID the entity belongs to
1726
+ * example:
1727
+ * 206801
1728
+ */
1729
+ _org: string;
1730
+ /**
1731
+ * URL-friendly identifier for the entity schema
1732
+ * example:
1733
+ * message
1734
+ */
1735
+ _schema: string;
1736
+ /**
1737
+ * Entity tags
1738
+ * example:
1739
+ * [
1740
+ * "pricing",
1741
+ * "INBOX"
1742
+ * ]
1743
+ */
1744
+ _tags?: string[];
1745
+ /**
1746
+ * Created date
1747
+ * example:
1748
+ * 2021-02-09T12:41:43.662Z
1749
+ */
1750
+ _created_at: string; // date-time
1751
+ /**
1752
+ * Updated date
1753
+ * example:
1754
+ * 2021-02-10T09:14:31.990Z
1755
+ */
1756
+ _updated_at: string; // date-time
1757
+ /**
1758
+ * Message topic (e.g. which service sends the message or message category)
1759
+ * example:
1760
+ * CUSTOMER_MESSAGE
1761
+ */
1762
+ topic: string;
1763
+ /**
1764
+ * User ID of who the message is assigned to. Default is the user who sends message.
1765
+ * example:
1766
+ * [
1767
+ * "206801",
1768
+ * "200109"
1769
+ * ]
1770
+ */
1771
+ assigned_to?: string[];
1772
+ /**
1773
+ * Organization ID of organization read the message.
1774
+ * example:
1775
+ * [
1776
+ * "789372",
1777
+ * "210291"
1778
+ * ]
1779
+ */
1780
+ org_read_message?: string[];
1781
+ /**
1782
+ * Whether the thread is marked as Done
1783
+ * example:
1784
+ * false
1785
+ */
1786
+ done?: boolean;
1787
+ latest_message?: Components.Schemas.Message;
1788
+ latest_trash_message?: Components.Schemas.Message;
1789
+ /**
1790
+ * The date of the latest message time in the thread
1791
+ * example:
1792
+ * 2024-02-10T09:14:31.990Z
1793
+ */
1794
+ latest_message_at?: string;
1795
+ }[];
1796
+ }
1797
+ export interface $403 {
1798
+ }
1799
+ }
1800
+ }
1801
+ namespace SearchThreadsV2 {
1802
+ export type RequestBody = Components.Schemas.SearchParamsV2;
1803
+ namespace Responses {
1804
+ export interface $200 {
1805
+ /**
1806
+ * Total of matched threads
1807
+ * example:
1808
+ * 14
1809
+ */
1810
+ hits: number;
1811
+ /**
1812
+ * Matched threads
1813
+ */
1814
+ results: {
1815
+ /**
1816
+ * Entity ID
1817
+ * example:
1818
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
1819
+ */
1820
+ _id: string;
1821
+ /**
1822
+ * Entity title
1823
+ */
1824
+ _title: string;
1825
+ /**
1826
+ * Organization ID the entity belongs to
1827
+ * example:
1828
+ * 206801
1829
+ */
1830
+ _org: string;
1831
+ /**
1832
+ * URL-friendly identifier for the entity schema
1833
+ * example:
1834
+ * message
1835
+ */
1836
+ _schema: string;
1837
+ /**
1838
+ * Entity tags
1839
+ * example:
1840
+ * [
1841
+ * "pricing",
1842
+ * "INBOX"
1843
+ * ]
1844
+ */
1845
+ _tags?: string[];
1846
+ /**
1847
+ * Created date
1848
+ * example:
1849
+ * 2021-02-09T12:41:43.662Z
1850
+ */
1851
+ _created_at: string; // date-time
1852
+ /**
1853
+ * Updated date
1854
+ * example:
1855
+ * 2021-02-10T09:14:31.990Z
1856
+ */
1857
+ _updated_at: string; // date-time
1858
+ /**
1859
+ * Message topic (e.g. which service sends the message or message category)
1860
+ * example:
1861
+ * CUSTOMER_MESSAGE
1862
+ */
1863
+ topic: string;
1864
+ /**
1865
+ * User ID of who the message is assigned to. Default is the user who sends message.
1866
+ * example:
1867
+ * [
1868
+ * "206801",
1869
+ * "200109"
1870
+ * ]
1871
+ */
1872
+ assigned_to?: string[];
1873
+ /**
1874
+ * Organization ID of organization read the message.
1875
+ * example:
1876
+ * [
1877
+ * "789372",
1878
+ * "210291"
1879
+ * ]
1880
+ */
1881
+ org_read_message?: string[];
1882
+ /**
1883
+ * Whether the thread is marked as Done
1884
+ * example:
1885
+ * false
1886
+ */
1887
+ done?: boolean;
1888
+ latest_message?: Components.Schemas.Message;
1889
+ latest_trash_message?: Components.Schemas.Message;
1890
+ /**
1891
+ * The date of the latest message time in the thread
1892
+ * example:
1893
+ * 2024-02-10T09:14:31.990Z
1894
+ */
1895
+ latest_message_at?: string;
1896
+ }[];
1897
+ }
1898
+ export interface $403 {
1899
+ }
1900
+ }
1901
+ }
1902
+ namespace SendDraft {
1903
+ namespace Responses {
1904
+ export interface $201 {
1905
+ /**
1906
+ * Entity ID
1907
+ * example:
1908
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
1909
+ */
1910
+ _id: string;
1911
+ /**
1912
+ * Entity title
1913
+ */
1914
+ _title: string;
1915
+ /**
1916
+ * Organization ID the entity belongs to
1917
+ * example:
1918
+ * 206801
1919
+ */
1920
+ _org: string;
1921
+ /**
1922
+ * URL-friendly identifier for the entity schema
1923
+ * example:
1924
+ * message
1925
+ */
1926
+ _schema: string;
1927
+ /**
1928
+ * Entity tags
1929
+ * example:
1930
+ * [
1931
+ * "pricing",
1932
+ * "INBOX"
1933
+ * ]
1934
+ */
1935
+ _tags?: string[];
1936
+ /**
1937
+ * Created date
1938
+ * example:
1939
+ * 2021-02-09T12:41:43.662Z
1940
+ */
1941
+ _created_at: string; // date-time
1942
+ /**
1943
+ * Updated date
1944
+ * example:
1945
+ * 2021-02-10T09:14:31.990Z
1946
+ */
1947
+ _updated_at: string; // date-time
1948
+ /**
1949
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
1950
+ * example:
1951
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
1952
+ */
1953
+ message_id?: string;
1954
+ /**
1955
+ * User ID of user sends the message.
1956
+ * example:
1957
+ * 206801
1958
+ */
1959
+ sender?: string;
1960
+ /**
1961
+ * Subject
1962
+ * example:
1963
+ * Request for solar panel price
1964
+ */
1965
+ subject: string;
1966
+ /**
1967
+ * HTML body
1968
+ * example:
1969
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
1970
+ */
1971
+ html?: string;
1972
+ /**
1973
+ * Text body
1974
+ * example:
1975
+ * We at ABC GmbH would like to request a price quote for the solar panel.
1976
+ */
1977
+ text?: string;
1978
+ from: Components.Schemas.Address;
1979
+ reply_to?: Components.Schemas.Address;
1980
+ /**
1981
+ * To email addresses
1982
+ */
1983
+ to?: Components.Schemas.Address[];
1984
+ /**
1985
+ * Cc email addresses
1986
+ */
1987
+ cc?: Components.Schemas.Address[];
1988
+ /**
1989
+ * Bcc email addresses
1990
+ */
1991
+ bcc?: Components.Schemas.Address[];
1992
+ file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
1993
+ /**
1994
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
1995
+ *
1996
+ * example:
1997
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
1998
+ */
1999
+ references?: string;
2000
+ /**
2001
+ * In-Reply-To header. Value is the `message_id` of parent message.
2002
+ *
2003
+ * example:
2004
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
2005
+ */
2006
+ in_reply_to?: string;
2007
+ /**
2008
+ * User ID of user read the message.
2009
+ * example:
2010
+ * [
2011
+ * "206801",
2012
+ * "200109"
2013
+ * ]
2014
+ */
2015
+ user_read_message?: string[];
2016
+ /**
2017
+ * Organization ID of organization read the message.
2018
+ * example:
2019
+ * [
2020
+ * "789372",
2021
+ * "210291"
2022
+ * ]
2023
+ */
2024
+ org_read_message?: string[];
2025
+ /**
2026
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
2027
+ *
2028
+ */
2029
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
2030
+ /**
2031
+ * Message type
2032
+ */
2033
+ type?: "SENT" | "RECEIVED";
2034
+ /**
2035
+ * Template ID used for sending message.
2036
+ * example:
2037
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
2038
+ */
2039
+ template_id?: string;
2040
+ }
2041
+ export interface $403 {
2042
+ }
2043
+ }
2044
+ }
2045
+ namespace SendMessage {
2046
+ namespace Parameters {
2047
+ export type DoNotCreateEntities = boolean;
2048
+ }
2049
+ export interface QueryParameters {
2050
+ do_not_create_entities?: Parameters.DoNotCreateEntities;
2051
+ }
2052
+ export type RequestBody = Components.Schemas.MessageRequestParams;
2053
+ namespace Responses {
2054
+ export type $201 = Components.Schemas.MessageRequestParams;
2055
+ export interface $403 {
2056
+ }
2057
+ }
2058
+ }
2059
+ namespace ThreadBulkActionsDelete {
2060
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2061
+ namespace Responses {
2062
+ export interface $200 {
2063
+ }
2064
+ export interface $403 {
2065
+ }
2066
+ }
2067
+ }
2068
+ namespace ThreadBulkActionsDone {
2069
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2070
+ namespace Responses {
2071
+ export interface $200 {
2072
+ }
2073
+ export interface $403 {
2074
+ }
2075
+ }
2076
+ }
2077
+ namespace ThreadBulkActionsFavorite {
2078
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2079
+ namespace Responses {
2080
+ export interface $200 {
2081
+ }
2082
+ export interface $403 {
2083
+ }
2084
+ }
2085
+ }
2086
+ namespace ThreadBulkActionsOpen {
2087
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2088
+ namespace Responses {
2089
+ export interface $200 {
2090
+ }
2091
+ export interface $403 {
2092
+ }
2093
+ }
2094
+ }
2095
+ namespace ThreadBulkActionsRead {
2096
+ export type RequestBody = Components.Schemas.BulkActionsPayloadWithScopes;
2097
+ namespace Responses {
2098
+ export interface $200 {
2099
+ }
2100
+ export interface $403 {
2101
+ }
2102
+ }
2103
+ }
2104
+ namespace ThreadBulkActionsTrash {
2105
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2106
+ namespace Responses {
2107
+ export interface $200 {
2108
+ }
2109
+ export interface $403 {
2110
+ }
2111
+ }
2112
+ }
2113
+ namespace ThreadBulkActionsUnfavorite {
2114
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2115
+ namespace Responses {
2116
+ export interface $200 {
2117
+ }
2118
+ export interface $403 {
2119
+ }
2120
+ }
2121
+ }
2122
+ namespace ThreadBulkActionsUnread {
2123
+ export type RequestBody = Components.Schemas.BulkActionsPayloadWithScopes;
2124
+ namespace Responses {
2125
+ export interface $200 {
2126
+ }
2127
+ export interface $403 {
2128
+ }
2129
+ }
2130
+ }
2131
+ namespace ThreadBulkActionsUntrash {
2132
+ export type RequestBody = Components.Schemas.BulkActionsPayload;
2133
+ namespace Responses {
2134
+ export interface $200 {
2135
+ }
2136
+ export interface $403 {
2137
+ }
2138
+ }
2139
+ }
2140
+ namespace TrashMessage {
2141
+ namespace Parameters {
2142
+ export type Id = string;
2143
+ }
2144
+ export interface PathParameters {
2145
+ id: Parameters.Id;
2146
+ }
2147
+ namespace Responses {
2148
+ export interface $204 {
2149
+ }
2150
+ export interface $403 {
2151
+ }
2152
+ }
2153
+ }
2154
+ namespace TrashThread {
2155
+ namespace Parameters {
2156
+ export type Id = string;
2157
+ }
2158
+ export interface PathParameters {
2159
+ id: Parameters.Id;
2160
+ }
2161
+ namespace Responses {
2162
+ export interface $200 {
2163
+ }
2164
+ export interface $403 {
2165
+ }
2166
+ }
2167
+ }
2168
+ namespace UnassignThread {
2169
+ namespace Parameters {
2170
+ export type Id = string;
2171
+ }
2172
+ export interface PathParameters {
2173
+ id: Parameters.Id;
2174
+ }
2175
+ /**
2176
+ * Entities which thread is unassigned from
2177
+ */
2178
+ export type RequestBody = {
2179
+ /**
2180
+ * Entity slug
2181
+ * example:
2182
+ * contact
2183
+ */
2184
+ slug?: string;
2185
+ /**
2186
+ * Entity ID
2187
+ * example:
2188
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
2189
+ */
2190
+ entity_id?: string;
2191
+ }[];
2192
+ namespace Responses {
2193
+ export interface $204 {
2194
+ }
2195
+ export interface $403 {
2196
+ }
2197
+ }
2198
+ }
2199
+ namespace UnpinThread {
2200
+ namespace Parameters {
2201
+ export type Id = string;
2202
+ }
2203
+ export interface PathParameters {
2204
+ id: Parameters.Id;
2205
+ }
2206
+ namespace Responses {
2207
+ export interface $204 {
2208
+ }
2209
+ export interface $400 {
2210
+ }
2211
+ export interface $404 {
2212
+ }
2213
+ export interface $409 {
2214
+ }
2215
+ export interface $500 {
2216
+ }
2217
+ }
2218
+ }
2219
+ namespace UntrashMessage {
2220
+ namespace Parameters {
2221
+ export type Id = string;
2222
+ }
2223
+ export interface PathParameters {
2224
+ id: Parameters.Id;
2225
+ }
2226
+ namespace Responses {
2227
+ export interface $204 {
2228
+ }
2229
+ export interface $403 {
2230
+ }
2231
+ }
2232
+ }
2233
+ namespace UntrashThread {
2234
+ namespace Parameters {
2235
+ export type Id = string;
2236
+ }
2237
+ export interface PathParameters {
2238
+ id: Parameters.Id;
2239
+ }
2240
+ namespace Responses {
2241
+ export interface $200 {
2242
+ }
2243
+ export interface $403 {
2244
+ }
2245
+ }
2246
+ }
2247
+ namespace UpdateMessage {
2248
+ namespace Responses {
2249
+ export interface $201 {
2250
+ /**
2251
+ * Entity ID
2252
+ * example:
2253
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
2254
+ */
2255
+ _id: string;
2256
+ /**
2257
+ * Entity title
2258
+ */
2259
+ _title: string;
2260
+ /**
2261
+ * Organization ID the entity belongs to
2262
+ * example:
2263
+ * 206801
2264
+ */
2265
+ _org: string;
2266
+ /**
2267
+ * URL-friendly identifier for the entity schema
2268
+ * example:
2269
+ * message
2270
+ */
2271
+ _schema: string;
2272
+ /**
2273
+ * Entity tags
2274
+ * example:
2275
+ * [
2276
+ * "pricing",
2277
+ * "INBOX"
2278
+ * ]
2279
+ */
2280
+ _tags?: string[];
2281
+ /**
2282
+ * Created date
2283
+ * example:
2284
+ * 2021-02-09T12:41:43.662Z
2285
+ */
2286
+ _created_at: string; // date-time
2287
+ /**
2288
+ * Updated date
2289
+ * example:
2290
+ * 2021-02-10T09:14:31.990Z
2291
+ */
2292
+ _updated_at: string; // date-time
2293
+ /**
2294
+ * Message ID which is from email provider. If you provide `message-id`, API overrides by its own value.
2295
+ * example:
2296
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com>
2297
+ */
2298
+ message_id?: string;
2299
+ /**
2300
+ * User ID of user sends the message.
2301
+ * example:
2302
+ * 206801
2303
+ */
2304
+ sender?: string;
2305
+ /**
2306
+ * Subject
2307
+ * example:
2308
+ * Request for solar panel price
2309
+ */
2310
+ subject: string;
2311
+ /**
2312
+ * HTML body
2313
+ * example:
2314
+ * <div>We at ABC GmbH would like to request a price quote for the solar panel.</div>
2315
+ */
2316
+ html?: string;
2317
+ /**
2318
+ * Text body
2319
+ * example:
2320
+ * We at ABC GmbH would like to request a price quote for the solar panel.
2321
+ */
2322
+ text?: string;
2323
+ from: Components.Schemas.Address;
2324
+ reply_to?: Components.Schemas.Address;
2325
+ /**
2326
+ * To email addresses
2327
+ */
2328
+ to?: Components.Schemas.Address[];
2329
+ /**
2330
+ * Cc email addresses
2331
+ */
2332
+ cc?: Components.Schemas.Address[];
2333
+ /**
2334
+ * Bcc email addresses
2335
+ */
2336
+ bcc?: Components.Schemas.Address[];
2337
+ file?: /* Message attachments */ Components.Schemas.AttachmentsRelation;
2338
+ /**
2339
+ * References header. Value is the series of `message_id` which is reparated by space to indicate that message has parent. The last message ID in references identifies the parent. The first message ID in references identifies the first message in the thread. The basic idea is that sender should copy `references` from the parent and append the parent's `message_id` when replying.
2340
+ *
2341
+ * example:
2342
+ * <0102017b97a502f8-a67f01c2-68cc-4928-b91b-45853f34e259-000000@eu-west-1.amazonses.com> <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
2343
+ */
2344
+ references?: string;
2345
+ /**
2346
+ * In-Reply-To header. Value is the `message_id` of parent message.
2347
+ *
2348
+ * example:
2349
+ * <CALHgQpziyxW9NaFUs+nRMykzr6Ljq6vjq4WO9SaihAuMasuDyg@mail.gmail.com>
2350
+ */
2351
+ in_reply_to?: string;
2352
+ /**
2353
+ * User ID of user read the message.
2354
+ * example:
2355
+ * [
2356
+ * "206801",
2357
+ * "200109"
2358
+ * ]
2359
+ */
2360
+ user_read_message?: string[];
2361
+ /**
2362
+ * Organization ID of organization read the message.
2363
+ * example:
2364
+ * [
2365
+ * "789372",
2366
+ * "210291"
2367
+ * ]
2368
+ */
2369
+ org_read_message?: string[];
2370
+ /**
2371
+ * Sent message status. The array contains sending message status corresponding to all recipients. For more detail, check `send_status` of each recipient in `to`, `cc`, `bcc` Reference at <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/monitor-sending-activity.html>
2372
+ *
2373
+ */
2374
+ send_status?: ("SEND" | "DELIVERY" | "REJECT" | "COMPLAINT" | "BOUNCE" | "ERROR")[];
2375
+ /**
2376
+ * Message type
2377
+ */
2378
+ type?: "SENT" | "RECEIVED";
2379
+ /**
2380
+ * Template ID used for sending message.
2381
+ * example:
2382
+ * 3f34ce73-089c-4d45-a5ee-c161234e41c3
2383
+ */
2384
+ template_id?: string;
2385
+ }
2386
+ export interface $403 {
2387
+ }
2388
+ }
2389
+ }
2390
+ namespace UpdateThread {
2391
+ namespace Responses {
2392
+ /**
2393
+ * Thread properties depend on API caller as it's not pre-defined. We do recommend having at least `topic` property for categorizing.
2394
+ */
2395
+ export interface $201 {
2396
+ /**
2397
+ * Entity ID
2398
+ * example:
2399
+ * 3fa85f64-5717-4562-b3fc-2c963f66afa6
2400
+ */
2401
+ _id: string;
2402
+ /**
2403
+ * Entity title
2404
+ */
2405
+ _title: string;
2406
+ /**
2407
+ * Organization ID the entity belongs to
2408
+ * example:
2409
+ * 206801
2410
+ */
2411
+ _org: string;
2412
+ /**
2413
+ * URL-friendly identifier for the entity schema
2414
+ * example:
2415
+ * message
2416
+ */
2417
+ _schema: string;
2418
+ /**
2419
+ * Entity tags
2420
+ * example:
2421
+ * [
2422
+ * "pricing",
2423
+ * "INBOX"
2424
+ * ]
2425
+ */
2426
+ _tags?: string[];
2427
+ /**
2428
+ * Created date
2429
+ * example:
2430
+ * 2021-02-09T12:41:43.662Z
2431
+ */
2432
+ _created_at: string; // date-time
2433
+ /**
2434
+ * Updated date
2435
+ * example:
2436
+ * 2021-02-10T09:14:31.990Z
2437
+ */
2438
+ _updated_at: string; // date-time
2439
+ /**
2440
+ * Message topic (e.g. which service sends the message or message category)
2441
+ * example:
2442
+ * CUSTOMER_MESSAGE
2443
+ */
2444
+ topic: string;
2445
+ /**
2446
+ * User ID of who the message is assigned to. Default is the user who sends message.
2447
+ * example:
2448
+ * [
2449
+ * "206801",
2450
+ * "200109"
2451
+ * ]
2452
+ */
2453
+ assigned_to?: string[];
2454
+ /**
2455
+ * Organization ID of organization read the message.
2456
+ * example:
2457
+ * [
2458
+ * "789372",
2459
+ * "210291"
2460
+ * ]
2461
+ */
2462
+ org_read_message?: string[];
2463
+ /**
2464
+ * Whether the thread is marked as Done
2465
+ * example:
2466
+ * false
2467
+ */
2468
+ done?: boolean;
2469
+ latest_message?: Components.Schemas.Message;
2470
+ latest_trash_message?: Components.Schemas.Message;
2471
+ /**
2472
+ * The date of the latest message time in the thread
2473
+ * example:
2474
+ * 2024-02-10T09:14:31.990Z
2475
+ */
2476
+ latest_message_at?: string;
2477
+ }
2478
+ export interface $403 {
2479
+ }
2480
+ }
2481
+ }
2482
+ }
2483
+
2484
+
2485
+ interface OperationMethods {
2486
+ /**
2487
+ * updateMessage - updateMessage
2488
+ *
2489
+ * Update message metadata
2490
+ */
2491
+ 'updateMessage'(
2492
+ parameters?: Parameters<UnknownParamsObject> | null,
2493
+ data?: any,
2494
+ config?: AxiosRequestConfig
2495
+ ): OperationResponse<Paths.UpdateMessage.Responses.$201>
2496
+ /**
2497
+ * sendMessage - sendMessage
2498
+ *
2499
+ * Send an email message
2500
+ */
2501
+ 'sendMessage'(
2502
+ parameters?: Parameters<Paths.SendMessage.QueryParameters> | null,
2503
+ data?: Paths.SendMessage.RequestBody,
2504
+ config?: AxiosRequestConfig
2505
+ ): OperationResponse<Paths.SendMessage.Responses.$201>
2506
+ /**
2507
+ * getMessage - getMessage
2508
+ *
2509
+ * Get an email message by id
2510
+ */
2511
+ 'getMessage'(
2512
+ parameters?: Parameters<Paths.GetMessage.PathParameters> | null,
2513
+ data?: any,
2514
+ config?: AxiosRequestConfig
2515
+ ): OperationResponse<Paths.GetMessage.Responses.$200>
2516
+ /**
2517
+ * deleteMessage - deleteMessage
2518
+ *
2519
+ * Immediately and permanently delete a message. This operation cannot be undone.
2520
+ */
2521
+ 'deleteMessage'(
2522
+ parameters?: Parameters<Paths.DeleteMessage.PathParameters> | null,
2523
+ data?: any,
2524
+ config?: AxiosRequestConfig
2525
+ ): OperationResponse<Paths.DeleteMessage.Responses.$204>
2526
+ /**
2527
+ * getMessageEml - getMessageEml
2528
+ *
2529
+ * Download a message as an EML file.
2530
+ * Returns a 302 redirect to a pre-signed S3 URL where the EML file can be downloaded.
2531
+ *
2532
+ */
2533
+ 'getMessageEml'(
2534
+ parameters?: Parameters<Paths.GetMessageEml.PathParameters> | null,
2535
+ data?: any,
2536
+ config?: AxiosRequestConfig
2537
+ ): OperationResponse<any>
2538
+ /**
2539
+ * searchMessages - searchMessages
2540
+ *
2541
+ * Search Messages
2542
+ */
2543
+ 'searchMessages'(
2544
+ parameters?: Parameters<UnknownParamsObject> | null,
2545
+ data?: Paths.SearchMessages.RequestBody,
2546
+ config?: AxiosRequestConfig
2547
+ ): OperationResponse<Paths.SearchMessages.Responses.$200>
2548
+ /**
2549
+ * trashMessage - trashMessage
2550
+ *
2551
+ * Move a message to the trash
2552
+ */
2553
+ 'trashMessage'(
2554
+ parameters?: Parameters<Paths.TrashMessage.PathParameters> | null,
2555
+ data?: any,
2556
+ config?: AxiosRequestConfig
2557
+ ): OperationResponse<Paths.TrashMessage.Responses.$204>
2558
+ /**
2559
+ * untrashMessage - untrashMessage
2560
+ *
2561
+ * Restore a trashed message
2562
+ */
2563
+ 'untrashMessage'(
2564
+ parameters?: Parameters<Paths.UntrashMessage.PathParameters> | null,
2565
+ data?: any,
2566
+ config?: AxiosRequestConfig
2567
+ ): OperationResponse<Paths.UntrashMessage.Responses.$204>
2568
+ /**
2569
+ * markReadMessage - markReadMessage
2570
+ *
2571
+ * Mark message as read
2572
+ */
2573
+ 'markReadMessage'(
2574
+ parameters?: Parameters<Paths.MarkReadMessage.PathParameters> | null,
2575
+ data?: any,
2576
+ config?: AxiosRequestConfig
2577
+ ): OperationResponse<Paths.MarkReadMessage.Responses.$204>
2578
+ /**
2579
+ * markReadMessageV2 - markReadMessageV2
2580
+ *
2581
+ * Mark message as read within a scope
2582
+ */
2583
+ 'markReadMessageV2'(
2584
+ parameters?: Parameters<Paths.MarkReadMessageV2.PathParameters> | null,
2585
+ data?: Paths.MarkReadMessageV2.RequestBody,
2586
+ config?: AxiosRequestConfig
2587
+ ): OperationResponse<Paths.MarkReadMessageV2.Responses.$204>
2588
+ /**
2589
+ * markUnreadMessage - markUnreadMessage
2590
+ *
2591
+ * Mark message as unread
2592
+ */
2593
+ 'markUnreadMessage'(
2594
+ parameters?: Parameters<Paths.MarkUnreadMessage.PathParameters> | null,
2595
+ data?: any,
2596
+ config?: AxiosRequestConfig
2597
+ ): OperationResponse<Paths.MarkUnreadMessage.Responses.$204>
2598
+ /**
2599
+ * getUnread - getUnread
2600
+ *
2601
+ * Get all unread messages by actor
2602
+ */
2603
+ 'getUnread'(
2604
+ parameters?: Parameters<Paths.GetUnread.QueryParameters & Paths.GetUnread.PathParameters> | null,
2605
+ data?: any,
2606
+ config?: AxiosRequestConfig
2607
+ ): OperationResponse<Paths.GetUnread.Responses.$200>
2608
+ /**
2609
+ * markUnreadMessageV2 - markUnreadMessageV2
2610
+ *
2611
+ * Mark message as unread within a scope
2612
+ */
2613
+ 'markUnreadMessageV2'(
2614
+ parameters?: Parameters<Paths.MarkUnreadMessageV2.PathParameters> | null,
2615
+ data?: Paths.MarkUnreadMessageV2.RequestBody,
2616
+ config?: AxiosRequestConfig
2617
+ ): OperationResponse<Paths.MarkUnreadMessageV2.Responses.$204>
2618
+ /**
2619
+ * searchThreads - searchThreads
2620
+ *
2621
+ * Search for threads of email messages.
2622
+ *
2623
+ * Messages with no replies yet are treated as threads with single message.
2624
+ *
2625
+ * Lucene syntax supported.
2626
+ *
2627
+ */
2628
+ 'searchThreads'(
2629
+ parameters?: Parameters<UnknownParamsObject> | null,
2630
+ data?: Paths.SearchThreads.RequestBody,
2631
+ config?: AxiosRequestConfig
2632
+ ): OperationResponse<Paths.SearchThreads.Responses.$200>
2633
+ /**
2634
+ * searchThreadsV2 - searchThreadsV2
2635
+ *
2636
+ * Search for threads of email messages.
2637
+ *
2638
+ * Messages with no replies yet are treated as threads with single message.
2639
+ *
2640
+ * Lucene syntax supported.
2641
+ *
2642
+ */
2643
+ 'searchThreadsV2'(
2644
+ parameters?: Parameters<UnknownParamsObject> | null,
2645
+ data?: Paths.SearchThreadsV2.RequestBody,
2646
+ config?: AxiosRequestConfig
2647
+ ): OperationResponse<Paths.SearchThreadsV2.Responses.$200>
2648
+ /**
2649
+ * searchIds - Search threads and return all id's
2650
+ *
2651
+ * Return all thread id's that match a criteria
2652
+ *
2653
+ * Lucene syntax supported.
2654
+ *
2655
+ */
2656
+ 'searchIds'(
2657
+ parameters?: Parameters<UnknownParamsObject> | null,
2658
+ data?: Paths.SearchIds.RequestBody,
2659
+ config?: AxiosRequestConfig
2660
+ ): OperationResponse<Paths.SearchIds.Responses.$200>
2661
+ /**
2662
+ * updateThread - updateThread
2663
+ *
2664
+ * Modify thread metadata
2665
+ */
2666
+ 'updateThread'(
2667
+ parameters?: Parameters<UnknownParamsObject> | null,
2668
+ data?: any,
2669
+ config?: AxiosRequestConfig
2670
+ ): OperationResponse<Paths.UpdateThread.Responses.$201>
2671
+ /**
2672
+ * deleteThread - deleteThread
2673
+ *
2674
+ * Immediately and permanently delete a thread. This operation cannot be undone.
2675
+ */
2676
+ 'deleteThread'(
2677
+ parameters?: Parameters<Paths.DeleteThread.PathParameters> | null,
2678
+ data?: any,
2679
+ config?: AxiosRequestConfig
2680
+ ): OperationResponse<Paths.DeleteThread.Responses.$204>
2681
+ /**
2682
+ * moveThread - moveThread
2683
+ *
2684
+ * Move thread to a different Inbox
2685
+ */
2686
+ 'moveThread'(
2687
+ parameters?: Parameters<Paths.MoveThread.PathParameters> | null,
2688
+ data?: Paths.MoveThread.RequestBody,
2689
+ config?: AxiosRequestConfig
2690
+ ): OperationResponse<Paths.MoveThread.Responses.$204>
2691
+ /**
2692
+ * markThreadAsDone - markThreadAsDone
2693
+ *
2694
+ * Mark thread as done
2695
+ */
2696
+ 'markThreadAsDone'(
2697
+ parameters?: Parameters<Paths.MarkThreadAsDone.PathParameters> | null,
2698
+ data?: any,
2699
+ config?: AxiosRequestConfig
2700
+ ): OperationResponse<Paths.MarkThreadAsDone.Responses.$204>
2701
+ /**
2702
+ * markThreadAsOpen - markThreadAsOpen
2703
+ *
2704
+ * Mark thread as open
2705
+ */
2706
+ 'markThreadAsOpen'(
2707
+ parameters?: Parameters<Paths.MarkThreadAsOpen.PathParameters> | null,
2708
+ data?: any,
2709
+ config?: AxiosRequestConfig
2710
+ ): OperationResponse<Paths.MarkThreadAsOpen.Responses.$204>
2711
+ /**
2712
+ * getThreadTimeline - getThreadTimeline
2713
+ *
2714
+ * Get thread timeline
2715
+ */
2716
+ 'getThreadTimeline'(
2717
+ parameters?: Parameters<Paths.GetThreadTimeline.PathParameters> | null,
2718
+ data?: any,
2719
+ config?: AxiosRequestConfig
2720
+ ): OperationResponse<Paths.GetThreadTimeline.Responses.$200>
2721
+ /**
2722
+ * trashThread - trashThread
2723
+ *
2724
+ * Move a thread to trash
2725
+ */
2726
+ 'trashThread'(
2727
+ parameters?: Parameters<Paths.TrashThread.PathParameters> | null,
2728
+ data?: any,
2729
+ config?: AxiosRequestConfig
2730
+ ): OperationResponse<Paths.TrashThread.Responses.$200>
2731
+ /**
2732
+ * untrashThread - untrashThread
2733
+ *
2734
+ * Restore a trashed thread
2735
+ */
2736
+ 'untrashThread'(
2737
+ parameters?: Parameters<Paths.UntrashThread.PathParameters> | null,
2738
+ data?: any,
2739
+ config?: AxiosRequestConfig
2740
+ ): OperationResponse<Paths.UntrashThread.Responses.$200>
2741
+ /**
2742
+ * threadBulkActionsRead - threadBulkActionsRead
2743
+ *
2744
+ * Perform a bulk action of marking an array of thread ids as read
2745
+ */
2746
+ 'threadBulkActionsRead'(
2747
+ parameters?: Parameters<UnknownParamsObject> | null,
2748
+ data?: Paths.ThreadBulkActionsRead.RequestBody,
2749
+ config?: AxiosRequestConfig
2750
+ ): OperationResponse<Paths.ThreadBulkActionsRead.Responses.$200>
2751
+ /**
2752
+ * threadBulkActionsUnread - threadBulkActionsUnread
2753
+ *
2754
+ * Perform a bulk action of marking an array of thread ids as unread
2755
+ */
2756
+ 'threadBulkActionsUnread'(
2757
+ parameters?: Parameters<UnknownParamsObject> | null,
2758
+ data?: Paths.ThreadBulkActionsUnread.RequestBody,
2759
+ config?: AxiosRequestConfig
2760
+ ): OperationResponse<Paths.ThreadBulkActionsUnread.Responses.$200>
2761
+ /**
2762
+ * threadBulkActionsFavorite - threadBulkActionsFavorite
2763
+ *
2764
+ * Perform a bulk action of marking an array of thread ids favorite
2765
+ */
2766
+ 'threadBulkActionsFavorite'(
2767
+ parameters?: Parameters<UnknownParamsObject> | null,
2768
+ data?: Paths.ThreadBulkActionsFavorite.RequestBody,
2769
+ config?: AxiosRequestConfig
2770
+ ): OperationResponse<Paths.ThreadBulkActionsFavorite.Responses.$200>
2771
+ /**
2772
+ * threadBulkActionsUnfavorite - threadBulkActionsUnfavorite
2773
+ *
2774
+ * Perform a bulk action of marking an array of thread ids unfavorited
2775
+ */
2776
+ 'threadBulkActionsUnfavorite'(
2777
+ parameters?: Parameters<UnknownParamsObject> | null,
2778
+ data?: Paths.ThreadBulkActionsUnfavorite.RequestBody,
2779
+ config?: AxiosRequestConfig
2780
+ ): OperationResponse<Paths.ThreadBulkActionsUnfavorite.Responses.$200>
2781
+ /**
2782
+ * threadBulkActionsTrash - threadBulkActionsTrash
2783
+ *
2784
+ * Perform a bulk action of trashing an array of threads
2785
+ */
2786
+ 'threadBulkActionsTrash'(
2787
+ parameters?: Parameters<UnknownParamsObject> | null,
2788
+ data?: Paths.ThreadBulkActionsTrash.RequestBody,
2789
+ config?: AxiosRequestConfig
2790
+ ): OperationResponse<Paths.ThreadBulkActionsTrash.Responses.$200>
2791
+ /**
2792
+ * threadBulkActionsUntrash - threadBulkActionsUntrash
2793
+ *
2794
+ * Perform a bulk action of untrashing an array of threads
2795
+ */
2796
+ 'threadBulkActionsUntrash'(
2797
+ parameters?: Parameters<UnknownParamsObject> | null,
2798
+ data?: Paths.ThreadBulkActionsUntrash.RequestBody,
2799
+ config?: AxiosRequestConfig
2800
+ ): OperationResponse<Paths.ThreadBulkActionsUntrash.Responses.$200>
2801
+ /**
2802
+ * threadBulkActionsDelete - threadBulkActionsDelete
2803
+ *
2804
+ * Performs a bulk permanent delete for all threads
2805
+ */
2806
+ 'threadBulkActionsDelete'(
2807
+ parameters?: Parameters<UnknownParamsObject> | null,
2808
+ data?: Paths.ThreadBulkActionsDelete.RequestBody,
2809
+ config?: AxiosRequestConfig
2810
+ ): OperationResponse<Paths.ThreadBulkActionsDelete.Responses.$200>
2811
+ /**
2812
+ * threadBulkActionsDone - threadBulkActionsDone
2813
+ *
2814
+ * Perform a bulk action of marking an array of threads as done
2815
+ */
2816
+ 'threadBulkActionsDone'(
2817
+ parameters?: Parameters<UnknownParamsObject> | null,
2818
+ data?: Paths.ThreadBulkActionsDone.RequestBody,
2819
+ config?: AxiosRequestConfig
2820
+ ): OperationResponse<Paths.ThreadBulkActionsDone.Responses.$200>
2821
+ /**
2822
+ * threadBulkActionsOpen - threadBulkActionsOpen
2823
+ *
2824
+ * Perform a bulk action of marking an array of threads as open
2825
+ */
2826
+ 'threadBulkActionsOpen'(
2827
+ parameters?: Parameters<UnknownParamsObject> | null,
2828
+ data?: Paths.ThreadBulkActionsOpen.RequestBody,
2829
+ config?: AxiosRequestConfig
2830
+ ): OperationResponse<Paths.ThreadBulkActionsOpen.Responses.$200>
2831
+ /**
2832
+ * markReadThread - markReadThread
2833
+ *
2834
+ * Mark thread as read
2835
+ */
2836
+ 'markReadThread'(
2837
+ parameters?: Parameters<Paths.MarkReadThread.PathParameters> | null,
2838
+ data?: any,
2839
+ config?: AxiosRequestConfig
2840
+ ): OperationResponse<Paths.MarkReadThread.Responses.$200>
2841
+ /**
2842
+ * markReadThreadV2 - markReadThreadV2
2843
+ *
2844
+ * Mark thread as read within a scope
2845
+ */
2846
+ 'markReadThreadV2'(
2847
+ parameters?: Parameters<Paths.MarkReadThreadV2.PathParameters> | null,
2848
+ data?: Paths.MarkReadThreadV2.RequestBody,
2849
+ config?: AxiosRequestConfig
2850
+ ): OperationResponse<Paths.MarkReadThreadV2.Responses.$200>
2851
+ /**
2852
+ * markUnreadThread - markUnreadThread
2853
+ *
2854
+ * Mark thread as unread
2855
+ */
2856
+ 'markUnreadThread'(
2857
+ parameters?: Parameters<Paths.MarkUnreadThread.PathParameters> | null,
2858
+ data?: any,
2859
+ config?: AxiosRequestConfig
2860
+ ): OperationResponse<Paths.MarkUnreadThread.Responses.$200>
2861
+ /**
2862
+ * markUnreadThreadV2 - markUnreadThreadV2
2863
+ *
2864
+ * Mark thread as unread within a scope
2865
+ */
2866
+ 'markUnreadThreadV2'(
2867
+ parameters?: Parameters<Paths.MarkUnreadThreadV2.PathParameters> | null,
2868
+ data?: Paths.MarkUnreadThreadV2.RequestBody,
2869
+ config?: AxiosRequestConfig
2870
+ ): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$200>
2871
+ /**
2872
+ * assignThread - assignThread
2873
+ *
2874
+ * Assign thread to entities
2875
+ */
2876
+ 'assignThread'(
2877
+ parameters?: Parameters<Paths.AssignThread.PathParameters> | null,
2878
+ data?: Paths.AssignThread.RequestBody,
2879
+ config?: AxiosRequestConfig
2880
+ ): OperationResponse<Paths.AssignThread.Responses.$204>
2881
+ /**
2882
+ * unassignThread - unassignThread
2883
+ *
2884
+ * Unassign thread from entities
2885
+ */
2886
+ 'unassignThread'(
2887
+ parameters?: Parameters<Paths.UnassignThread.PathParameters> | null,
2888
+ data?: Paths.UnassignThread.RequestBody,
2889
+ config?: AxiosRequestConfig
2890
+ ): OperationResponse<Paths.UnassignThread.Responses.$204>
2891
+ /**
2892
+ * assignUsers - assignUsers
2893
+ *
2894
+ * Assign users to thread for receiving notifications.
2895
+ * The operation replaces all existing assigned users in thread.
2896
+ *
2897
+ */
2898
+ 'assignUsers'(
2899
+ parameters?: Parameters<Paths.AssignUsers.PathParameters> | null,
2900
+ data?: Paths.AssignUsers.RequestBody,
2901
+ config?: AxiosRequestConfig
2902
+ ): OperationResponse<Paths.AssignUsers.Responses.$204>
2903
+ /**
2904
+ * assignUsersV2 - assignUsersV2
2905
+ *
2906
+ * Assign users to thread.
2907
+ *
2908
+ */
2909
+ 'assignUsersV2'(
2910
+ parameters?: Parameters<Paths.AssignUsersV2.PathParameters> | null,
2911
+ data?: Paths.AssignUsersV2.RequestBody,
2912
+ config?: AxiosRequestConfig
2913
+ ): OperationResponse<Paths.AssignUsersV2.Responses.$204>
2914
+ /**
2915
+ * pinThread - Pin a single thread
2916
+ *
2917
+ * Pin a single thread
2918
+ */
2919
+ 'pinThread'(
2920
+ parameters?: Parameters<Paths.PinThread.PathParameters> | null,
2921
+ data?: any,
2922
+ config?: AxiosRequestConfig
2923
+ ): OperationResponse<Paths.PinThread.Responses.$204>
2924
+ /**
2925
+ * unpinThread - Unpin a single thread
2926
+ *
2927
+ * Unpin a single thread
2928
+ */
2929
+ 'unpinThread'(
2930
+ parameters?: Parameters<Paths.UnpinThread.PathParameters> | null,
2931
+ data?: any,
2932
+ config?: AxiosRequestConfig
2933
+ ): OperationResponse<Paths.UnpinThread.Responses.$204>
2934
+ /**
2935
+ * createDraft - createDraft
2936
+ *
2937
+ * Create a new draft
2938
+ */
2939
+ 'createDraft'(
2940
+ parameters?: Parameters<UnknownParamsObject> | null,
2941
+ data?: Paths.CreateDraft.RequestBody,
2942
+ config?: AxiosRequestConfig
2943
+ ): OperationResponse<Paths.CreateDraft.Responses.$201>
2944
+ /**
2945
+ * sendDraft - sendDraft
2946
+ *
2947
+ * Send the existing draft to the recipients
2948
+ */
2949
+ 'sendDraft'(
2950
+ parameters?: Parameters<UnknownParamsObject> | null,
2951
+ data?: any,
2952
+ config?: AxiosRequestConfig
2953
+ ): OperationResponse<Paths.SendDraft.Responses.$201>
2954
+ /**
2955
+ * getMessageV2 - getMessageV2
2956
+ *
2957
+ * - Fetches message by ID
2958
+ * - If the message html is omitted on the entity, then it keeps the content on the message as a signed url
2959
+ * {
2960
+ * ...
2961
+ * _id: "4d74976d-fb64-47fd-85e2-65eea140f5eb",
2962
+ * _schema: "message",
2963
+ * _org: "org-123",
2964
+ * html_omitted: true,
2965
+ * html_download_url: "https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html"
2966
+ * }
2967
+ *
2968
+ */
2969
+ 'getMessageV2'(
2970
+ parameters?: Parameters<Paths.GetMessageV2.PathParameters> | null,
2971
+ data?: any,
2972
+ config?: AxiosRequestConfig
2973
+ ): OperationResponse<Paths.GetMessageV2.Responses.$200>
2974
+ }
2975
+
2976
+ interface PathsDictionary {
2977
+ ['/v1/message/messages']: {
2978
+ /**
2979
+ * sendMessage - sendMessage
2980
+ *
2981
+ * Send an email message
2982
+ */
2983
+ 'post'(
2984
+ parameters?: Parameters<Paths.SendMessage.QueryParameters> | null,
2985
+ data?: Paths.SendMessage.RequestBody,
2986
+ config?: AxiosRequestConfig
2987
+ ): OperationResponse<Paths.SendMessage.Responses.$201>
2988
+ /**
2989
+ * updateMessage - updateMessage
2990
+ *
2991
+ * Update message metadata
2992
+ */
2993
+ 'put'(
2994
+ parameters?: Parameters<UnknownParamsObject> | null,
2995
+ data?: any,
2996
+ config?: AxiosRequestConfig
2997
+ ): OperationResponse<Paths.UpdateMessage.Responses.$201>
2998
+ }
2999
+ ['/v1/message/messages/{id}']: {
3000
+ /**
3001
+ * getMessage - getMessage
3002
+ *
3003
+ * Get an email message by id
3004
+ */
3005
+ 'get'(
3006
+ parameters?: Parameters<Paths.GetMessage.PathParameters> | null,
3007
+ data?: any,
3008
+ config?: AxiosRequestConfig
3009
+ ): OperationResponse<Paths.GetMessage.Responses.$200>
3010
+ /**
3011
+ * deleteMessage - deleteMessage
3012
+ *
3013
+ * Immediately and permanently delete a message. This operation cannot be undone.
3014
+ */
3015
+ 'delete'(
3016
+ parameters?: Parameters<Paths.DeleteMessage.PathParameters> | null,
3017
+ data?: any,
3018
+ config?: AxiosRequestConfig
3019
+ ): OperationResponse<Paths.DeleteMessage.Responses.$204>
3020
+ }
3021
+ ['/v1/message/messages/{id}/eml']: {
3022
+ /**
3023
+ * getMessageEml - getMessageEml
3024
+ *
3025
+ * Download a message as an EML file.
3026
+ * Returns a 302 redirect to a pre-signed S3 URL where the EML file can be downloaded.
3027
+ *
3028
+ */
3029
+ 'get'(
3030
+ parameters?: Parameters<Paths.GetMessageEml.PathParameters> | null,
3031
+ data?: any,
3032
+ config?: AxiosRequestConfig
3033
+ ): OperationResponse<any>
3034
+ }
3035
+ ['/v1/message/messages:search']: {
3036
+ /**
3037
+ * searchMessages - searchMessages
3038
+ *
3039
+ * Search Messages
3040
+ */
3041
+ 'post'(
3042
+ parameters?: Parameters<UnknownParamsObject> | null,
3043
+ data?: Paths.SearchMessages.RequestBody,
3044
+ config?: AxiosRequestConfig
3045
+ ): OperationResponse<Paths.SearchMessages.Responses.$200>
3046
+ }
3047
+ ['/v1/message/messages/{id}/trash']: {
3048
+ /**
3049
+ * trashMessage - trashMessage
3050
+ *
3051
+ * Move a message to the trash
3052
+ */
3053
+ 'post'(
3054
+ parameters?: Parameters<Paths.TrashMessage.PathParameters> | null,
3055
+ data?: any,
3056
+ config?: AxiosRequestConfig
3057
+ ): OperationResponse<Paths.TrashMessage.Responses.$204>
3058
+ }
3059
+ ['/v1/message/messages/{id}/untrash']: {
3060
+ /**
3061
+ * untrashMessage - untrashMessage
3062
+ *
3063
+ * Restore a trashed message
3064
+ */
3065
+ 'post'(
3066
+ parameters?: Parameters<Paths.UntrashMessage.PathParameters> | null,
3067
+ data?: any,
3068
+ config?: AxiosRequestConfig
3069
+ ): OperationResponse<Paths.UntrashMessage.Responses.$204>
3070
+ }
3071
+ ['/v1/message/messages/{id}/read']: {
3072
+ /**
3073
+ * markReadMessage - markReadMessage
3074
+ *
3075
+ * Mark message as read
3076
+ */
3077
+ 'post'(
3078
+ parameters?: Parameters<Paths.MarkReadMessage.PathParameters> | null,
3079
+ data?: any,
3080
+ config?: AxiosRequestConfig
3081
+ ): OperationResponse<Paths.MarkReadMessage.Responses.$204>
3082
+ }
3083
+ ['/v2/message/messages/{id}/read']: {
3084
+ /**
3085
+ * markReadMessageV2 - markReadMessageV2
3086
+ *
3087
+ * Mark message as read within a scope
3088
+ */
3089
+ 'post'(
3090
+ parameters?: Parameters<Paths.MarkReadMessageV2.PathParameters> | null,
3091
+ data?: Paths.MarkReadMessageV2.RequestBody,
3092
+ config?: AxiosRequestConfig
3093
+ ): OperationResponse<Paths.MarkReadMessageV2.Responses.$204>
3094
+ }
3095
+ ['/v1/message/messages/{id}/unread']: {
3096
+ /**
3097
+ * markUnreadMessage - markUnreadMessage
3098
+ *
3099
+ * Mark message as unread
3100
+ */
3101
+ 'post'(
3102
+ parameters?: Parameters<Paths.MarkUnreadMessage.PathParameters> | null,
3103
+ data?: any,
3104
+ config?: AxiosRequestConfig
3105
+ ): OperationResponse<Paths.MarkUnreadMessage.Responses.$204>
3106
+ }
3107
+ ['/v1/message/messages/unread/{actor}']: {
3108
+ /**
3109
+ * getUnread - getUnread
3110
+ *
3111
+ * Get all unread messages by actor
3112
+ */
3113
+ 'get'(
3114
+ parameters?: Parameters<Paths.GetUnread.QueryParameters & Paths.GetUnread.PathParameters> | null,
3115
+ data?: any,
3116
+ config?: AxiosRequestConfig
3117
+ ): OperationResponse<Paths.GetUnread.Responses.$200>
3118
+ }
3119
+ ['/v2/message/messages/{id}/unread']: {
3120
+ /**
3121
+ * markUnreadMessageV2 - markUnreadMessageV2
3122
+ *
3123
+ * Mark message as unread within a scope
3124
+ */
3125
+ 'post'(
3126
+ parameters?: Parameters<Paths.MarkUnreadMessageV2.PathParameters> | null,
3127
+ data?: Paths.MarkUnreadMessageV2.RequestBody,
3128
+ config?: AxiosRequestConfig
3129
+ ): OperationResponse<Paths.MarkUnreadMessageV2.Responses.$204>
3130
+ }
3131
+ ['/v1/message/threads:search']: {
3132
+ /**
3133
+ * searchThreads - searchThreads
3134
+ *
3135
+ * Search for threads of email messages.
3136
+ *
3137
+ * Messages with no replies yet are treated as threads with single message.
3138
+ *
3139
+ * Lucene syntax supported.
3140
+ *
3141
+ */
3142
+ 'post'(
3143
+ parameters?: Parameters<UnknownParamsObject> | null,
3144
+ data?: Paths.SearchThreads.RequestBody,
3145
+ config?: AxiosRequestConfig
3146
+ ): OperationResponse<Paths.SearchThreads.Responses.$200>
3147
+ }
3148
+ ['/v2/message/threads:search']: {
3149
+ /**
3150
+ * searchThreadsV2 - searchThreadsV2
3151
+ *
3152
+ * Search for threads of email messages.
3153
+ *
3154
+ * Messages with no replies yet are treated as threads with single message.
3155
+ *
3156
+ * Lucene syntax supported.
3157
+ *
3158
+ */
3159
+ 'post'(
3160
+ parameters?: Parameters<UnknownParamsObject> | null,
3161
+ data?: Paths.SearchThreadsV2.RequestBody,
3162
+ config?: AxiosRequestConfig
3163
+ ): OperationResponse<Paths.SearchThreadsV2.Responses.$200>
3164
+ }
3165
+ ['/v1/message/threads:searchIds']: {
3166
+ /**
3167
+ * searchIds - Search threads and return all id's
3168
+ *
3169
+ * Return all thread id's that match a criteria
3170
+ *
3171
+ * Lucene syntax supported.
3172
+ *
3173
+ */
3174
+ 'post'(
3175
+ parameters?: Parameters<UnknownParamsObject> | null,
3176
+ data?: Paths.SearchIds.RequestBody,
3177
+ config?: AxiosRequestConfig
3178
+ ): OperationResponse<Paths.SearchIds.Responses.$200>
3179
+ }
3180
+ ['/v1/message/threads']: {
3181
+ /**
3182
+ * updateThread - updateThread
3183
+ *
3184
+ * Modify thread metadata
3185
+ */
3186
+ 'put'(
3187
+ parameters?: Parameters<UnknownParamsObject> | null,
3188
+ data?: any,
3189
+ config?: AxiosRequestConfig
3190
+ ): OperationResponse<Paths.UpdateThread.Responses.$201>
3191
+ }
3192
+ ['/v1/message/threads/{id}']: {
3193
+ /**
3194
+ * deleteThread - deleteThread
3195
+ *
3196
+ * Immediately and permanently delete a thread. This operation cannot be undone.
3197
+ */
3198
+ 'delete'(
3199
+ parameters?: Parameters<Paths.DeleteThread.PathParameters> | null,
3200
+ data?: any,
3201
+ config?: AxiosRequestConfig
3202
+ ): OperationResponse<Paths.DeleteThread.Responses.$204>
3203
+ }
3204
+ ['/v1/message/threads/{id}:move']: {
3205
+ /**
3206
+ * moveThread - moveThread
3207
+ *
3208
+ * Move thread to a different Inbox
3209
+ */
3210
+ 'post'(
3211
+ parameters?: Parameters<Paths.MoveThread.PathParameters> | null,
3212
+ data?: Paths.MoveThread.RequestBody,
3213
+ config?: AxiosRequestConfig
3214
+ ): OperationResponse<Paths.MoveThread.Responses.$204>
3215
+ }
3216
+ ['/v1/message/threads/{id}:markAsDone']: {
3217
+ /**
3218
+ * markThreadAsDone - markThreadAsDone
3219
+ *
3220
+ * Mark thread as done
3221
+ */
3222
+ 'post'(
3223
+ parameters?: Parameters<Paths.MarkThreadAsDone.PathParameters> | null,
3224
+ data?: any,
3225
+ config?: AxiosRequestConfig
3226
+ ): OperationResponse<Paths.MarkThreadAsDone.Responses.$204>
3227
+ }
3228
+ ['/v1/message/threads/{id}:markAsOpen']: {
3229
+ /**
3230
+ * markThreadAsOpen - markThreadAsOpen
3231
+ *
3232
+ * Mark thread as open
3233
+ */
3234
+ 'post'(
3235
+ parameters?: Parameters<Paths.MarkThreadAsOpen.PathParameters> | null,
3236
+ data?: any,
3237
+ config?: AxiosRequestConfig
3238
+ ): OperationResponse<Paths.MarkThreadAsOpen.Responses.$204>
3239
+ }
3240
+ ['/v1/message/threads/{id}/timeline']: {
3241
+ /**
3242
+ * getThreadTimeline - getThreadTimeline
3243
+ *
3244
+ * Get thread timeline
3245
+ */
3246
+ 'get'(
3247
+ parameters?: Parameters<Paths.GetThreadTimeline.PathParameters> | null,
3248
+ data?: any,
3249
+ config?: AxiosRequestConfig
3250
+ ): OperationResponse<Paths.GetThreadTimeline.Responses.$200>
3251
+ }
3252
+ ['/v1/message/threads/{id}/trash']: {
3253
+ /**
3254
+ * trashThread - trashThread
3255
+ *
3256
+ * Move a thread to trash
3257
+ */
3258
+ 'post'(
3259
+ parameters?: Parameters<Paths.TrashThread.PathParameters> | null,
3260
+ data?: any,
3261
+ config?: AxiosRequestConfig
3262
+ ): OperationResponse<Paths.TrashThread.Responses.$200>
3263
+ }
3264
+ ['/v1/message/threads/{id}/untrash']: {
3265
+ /**
3266
+ * untrashThread - untrashThread
3267
+ *
3268
+ * Restore a trashed thread
3269
+ */
3270
+ 'post'(
3271
+ parameters?: Parameters<Paths.UntrashThread.PathParameters> | null,
3272
+ data?: any,
3273
+ config?: AxiosRequestConfig
3274
+ ): OperationResponse<Paths.UntrashThread.Responses.$200>
3275
+ }
3276
+ ['/v1/message/threads/bulk:read']: {
3277
+ /**
3278
+ * threadBulkActionsRead - threadBulkActionsRead
3279
+ *
3280
+ * Perform a bulk action of marking an array of thread ids as read
3281
+ */
3282
+ 'post'(
3283
+ parameters?: Parameters<UnknownParamsObject> | null,
3284
+ data?: Paths.ThreadBulkActionsRead.RequestBody,
3285
+ config?: AxiosRequestConfig
3286
+ ): OperationResponse<Paths.ThreadBulkActionsRead.Responses.$200>
3287
+ }
3288
+ ['/v1/message/threads/bulk:unread']: {
3289
+ /**
3290
+ * threadBulkActionsUnread - threadBulkActionsUnread
3291
+ *
3292
+ * Perform a bulk action of marking an array of thread ids as unread
3293
+ */
3294
+ 'post'(
3295
+ parameters?: Parameters<UnknownParamsObject> | null,
3296
+ data?: Paths.ThreadBulkActionsUnread.RequestBody,
3297
+ config?: AxiosRequestConfig
3298
+ ): OperationResponse<Paths.ThreadBulkActionsUnread.Responses.$200>
3299
+ }
3300
+ ['/v1/message/threads/bulk:favorite']: {
3301
+ /**
3302
+ * threadBulkActionsFavorite - threadBulkActionsFavorite
3303
+ *
3304
+ * Perform a bulk action of marking an array of thread ids favorite
3305
+ */
3306
+ 'post'(
3307
+ parameters?: Parameters<UnknownParamsObject> | null,
3308
+ data?: Paths.ThreadBulkActionsFavorite.RequestBody,
3309
+ config?: AxiosRequestConfig
3310
+ ): OperationResponse<Paths.ThreadBulkActionsFavorite.Responses.$200>
3311
+ }
3312
+ ['/v1/message/threads/bulk:unfavorite']: {
3313
+ /**
3314
+ * threadBulkActionsUnfavorite - threadBulkActionsUnfavorite
3315
+ *
3316
+ * Perform a bulk action of marking an array of thread ids unfavorited
3317
+ */
3318
+ 'post'(
3319
+ parameters?: Parameters<UnknownParamsObject> | null,
3320
+ data?: Paths.ThreadBulkActionsUnfavorite.RequestBody,
3321
+ config?: AxiosRequestConfig
3322
+ ): OperationResponse<Paths.ThreadBulkActionsUnfavorite.Responses.$200>
3323
+ }
3324
+ ['/v1/message/threads/bulk:trash']: {
3325
+ /**
3326
+ * threadBulkActionsTrash - threadBulkActionsTrash
3327
+ *
3328
+ * Perform a bulk action of trashing an array of threads
3329
+ */
3330
+ 'post'(
3331
+ parameters?: Parameters<UnknownParamsObject> | null,
3332
+ data?: Paths.ThreadBulkActionsTrash.RequestBody,
3333
+ config?: AxiosRequestConfig
3334
+ ): OperationResponse<Paths.ThreadBulkActionsTrash.Responses.$200>
3335
+ }
3336
+ ['/v1/message/threads/bulk:untrash']: {
3337
+ /**
3338
+ * threadBulkActionsUntrash - threadBulkActionsUntrash
3339
+ *
3340
+ * Perform a bulk action of untrashing an array of threads
3341
+ */
3342
+ 'post'(
3343
+ parameters?: Parameters<UnknownParamsObject> | null,
3344
+ data?: Paths.ThreadBulkActionsUntrash.RequestBody,
3345
+ config?: AxiosRequestConfig
3346
+ ): OperationResponse<Paths.ThreadBulkActionsUntrash.Responses.$200>
3347
+ }
3348
+ ['/v1/message/threads/bulk:delete']: {
3349
+ /**
3350
+ * threadBulkActionsDelete - threadBulkActionsDelete
3351
+ *
3352
+ * Performs a bulk permanent delete for all threads
3353
+ */
3354
+ 'post'(
3355
+ parameters?: Parameters<UnknownParamsObject> | null,
3356
+ data?: Paths.ThreadBulkActionsDelete.RequestBody,
3357
+ config?: AxiosRequestConfig
3358
+ ): OperationResponse<Paths.ThreadBulkActionsDelete.Responses.$200>
3359
+ }
3360
+ ['/v1/message/threads/bulk:done']: {
3361
+ /**
3362
+ * threadBulkActionsDone - threadBulkActionsDone
3363
+ *
3364
+ * Perform a bulk action of marking an array of threads as done
3365
+ */
3366
+ 'post'(
3367
+ parameters?: Parameters<UnknownParamsObject> | null,
3368
+ data?: Paths.ThreadBulkActionsDone.RequestBody,
3369
+ config?: AxiosRequestConfig
3370
+ ): OperationResponse<Paths.ThreadBulkActionsDone.Responses.$200>
3371
+ }
3372
+ ['/v1/message/threads/bulk:open']: {
3373
+ /**
3374
+ * threadBulkActionsOpen - threadBulkActionsOpen
3375
+ *
3376
+ * Perform a bulk action of marking an array of threads as open
3377
+ */
3378
+ 'post'(
3379
+ parameters?: Parameters<UnknownParamsObject> | null,
3380
+ data?: Paths.ThreadBulkActionsOpen.RequestBody,
3381
+ config?: AxiosRequestConfig
3382
+ ): OperationResponse<Paths.ThreadBulkActionsOpen.Responses.$200>
3383
+ }
3384
+ ['/v1/message/threads/{id}/read']: {
3385
+ /**
3386
+ * markReadThread - markReadThread
3387
+ *
3388
+ * Mark thread as read
3389
+ */
3390
+ 'post'(
3391
+ parameters?: Parameters<Paths.MarkReadThread.PathParameters> | null,
3392
+ data?: any,
3393
+ config?: AxiosRequestConfig
3394
+ ): OperationResponse<Paths.MarkReadThread.Responses.$200>
3395
+ }
3396
+ ['/v2/message/threads/{id}/read']: {
3397
+ /**
3398
+ * markReadThreadV2 - markReadThreadV2
3399
+ *
3400
+ * Mark thread as read within a scope
3401
+ */
3402
+ 'post'(
3403
+ parameters?: Parameters<Paths.MarkReadThreadV2.PathParameters> | null,
3404
+ data?: Paths.MarkReadThreadV2.RequestBody,
3405
+ config?: AxiosRequestConfig
3406
+ ): OperationResponse<Paths.MarkReadThreadV2.Responses.$200>
3407
+ }
3408
+ ['/v1/message/threads/{id}/unread']: {
3409
+ /**
3410
+ * markUnreadThread - markUnreadThread
3411
+ *
3412
+ * Mark thread as unread
3413
+ */
3414
+ 'post'(
3415
+ parameters?: Parameters<Paths.MarkUnreadThread.PathParameters> | null,
3416
+ data?: any,
3417
+ config?: AxiosRequestConfig
3418
+ ): OperationResponse<Paths.MarkUnreadThread.Responses.$200>
3419
+ }
3420
+ ['/v2/message/threads/{id}/unread']: {
3421
+ /**
3422
+ * markUnreadThreadV2 - markUnreadThreadV2
3423
+ *
3424
+ * Mark thread as unread within a scope
3425
+ */
3426
+ 'post'(
3427
+ parameters?: Parameters<Paths.MarkUnreadThreadV2.PathParameters> | null,
3428
+ data?: Paths.MarkUnreadThreadV2.RequestBody,
3429
+ config?: AxiosRequestConfig
3430
+ ): OperationResponse<Paths.MarkUnreadThreadV2.Responses.$200>
3431
+ }
3432
+ ['/v1/message/threads/{id}/assign']: {
3433
+ /**
3434
+ * assignThread - assignThread
3435
+ *
3436
+ * Assign thread to entities
3437
+ */
3438
+ 'post'(
3439
+ parameters?: Parameters<Paths.AssignThread.PathParameters> | null,
3440
+ data?: Paths.AssignThread.RequestBody,
3441
+ config?: AxiosRequestConfig
3442
+ ): OperationResponse<Paths.AssignThread.Responses.$204>
3443
+ }
3444
+ ['/v1/message/threads/{id}/unassign']: {
3445
+ /**
3446
+ * unassignThread - unassignThread
3447
+ *
3448
+ * Unassign thread from entities
3449
+ */
3450
+ 'post'(
3451
+ parameters?: Parameters<Paths.UnassignThread.PathParameters> | null,
3452
+ data?: Paths.UnassignThread.RequestBody,
3453
+ config?: AxiosRequestConfig
3454
+ ): OperationResponse<Paths.UnassignThread.Responses.$204>
3455
+ }
3456
+ ['/v1/message/threads/{id}/assign:users']: {
3457
+ /**
3458
+ * assignUsers - assignUsers
3459
+ *
3460
+ * Assign users to thread for receiving notifications.
3461
+ * The operation replaces all existing assigned users in thread.
3462
+ *
3463
+ */
3464
+ 'post'(
3465
+ parameters?: Parameters<Paths.AssignUsers.PathParameters> | null,
3466
+ data?: Paths.AssignUsers.RequestBody,
3467
+ config?: AxiosRequestConfig
3468
+ ): OperationResponse<Paths.AssignUsers.Responses.$204>
3469
+ }
3470
+ ['/v2/message/threads/{id}/assign:users']: {
3471
+ /**
3472
+ * assignUsersV2 - assignUsersV2
3473
+ *
3474
+ * Assign users to thread.
3475
+ *
3476
+ */
3477
+ 'post'(
3478
+ parameters?: Parameters<Paths.AssignUsersV2.PathParameters> | null,
3479
+ data?: Paths.AssignUsersV2.RequestBody,
3480
+ config?: AxiosRequestConfig
3481
+ ): OperationResponse<Paths.AssignUsersV2.Responses.$204>
3482
+ }
3483
+ ['/v1/message/threads/{id}:pin']: {
3484
+ /**
3485
+ * pinThread - Pin a single thread
3486
+ *
3487
+ * Pin a single thread
3488
+ */
3489
+ 'post'(
3490
+ parameters?: Parameters<Paths.PinThread.PathParameters> | null,
3491
+ data?: any,
3492
+ config?: AxiosRequestConfig
3493
+ ): OperationResponse<Paths.PinThread.Responses.$204>
3494
+ /**
3495
+ * unpinThread - Unpin a single thread
3496
+ *
3497
+ * Unpin a single thread
3498
+ */
3499
+ 'delete'(
3500
+ parameters?: Parameters<Paths.UnpinThread.PathParameters> | null,
3501
+ data?: any,
3502
+ config?: AxiosRequestConfig
3503
+ ): OperationResponse<Paths.UnpinThread.Responses.$204>
3504
+ }
3505
+ ['/v1/message/drafts']: {
3506
+ /**
3507
+ * createDraft - createDraft
3508
+ *
3509
+ * Create a new draft
3510
+ */
3511
+ 'post'(
3512
+ parameters?: Parameters<UnknownParamsObject> | null,
3513
+ data?: Paths.CreateDraft.RequestBody,
3514
+ config?: AxiosRequestConfig
3515
+ ): OperationResponse<Paths.CreateDraft.Responses.$201>
3516
+ }
3517
+ ['/v1/message/drafts:send']: {
3518
+ /**
3519
+ * sendDraft - sendDraft
3520
+ *
3521
+ * Send the existing draft to the recipients
3522
+ */
3523
+ 'post'(
3524
+ parameters?: Parameters<UnknownParamsObject> | null,
3525
+ data?: any,
3526
+ config?: AxiosRequestConfig
3527
+ ): OperationResponse<Paths.SendDraft.Responses.$201>
3528
+ }
3529
+ ['/v2/message/messages/{id}']: {
3530
+ /**
3531
+ * getMessageV2 - getMessageV2
3532
+ *
3533
+ * - Fetches message by ID
3534
+ * - If the message html is omitted on the entity, then it keeps the content on the message as a signed url
3535
+ * {
3536
+ * ...
3537
+ * _id: "4d74976d-fb64-47fd-85e2-65eea140f5eb",
3538
+ * _schema: "message",
3539
+ * _org: "org-123",
3540
+ * html_omitted: true,
3541
+ * html_download_url: "https://s3.eu-central-1.amazonaws.com/epilot-attachments/3f34ce73-089c-4d45-a5ee-c161234e41c3/3f34ce73-089c-4d45-a5ee-c161234e41c3.html"
3542
+ * }
3543
+ *
3544
+ */
3545
+ 'get'(
3546
+ parameters?: Parameters<Paths.GetMessageV2.PathParameters> | null,
3547
+ data?: any,
3548
+ config?: AxiosRequestConfig
3549
+ ): OperationResponse<Paths.GetMessageV2.Responses.$200>
3550
+ }
3551
+ }
3552
+
3553
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
3554
+
3555
+
3556
+ type Address = Components.Schemas.Address;
3557
+ type AttachmentsRelation = Components.Schemas.AttachmentsRelation;
3558
+ type BaseEntity = Components.Schemas.BaseEntity;
3559
+ type BulkActionsPayload = Components.Schemas.BulkActionsPayload;
3560
+ type BulkActionsPayloadWithScopes = Components.Schemas.BulkActionsPayloadWithScopes;
3561
+ type ErrorResponse = Components.Schemas.ErrorResponse;
3562
+ type FieldsParam = Components.Schemas.FieldsParam;
3563
+ type File = Components.Schemas.File;
3564
+ type Message = Components.Schemas.Message;
3565
+ type MessageRequestParams = Components.Schemas.MessageRequestParams;
3566
+ type MessageV2 = Components.Schemas.MessageV2;
3567
+ type MoveThreadPayload = Components.Schemas.MoveThreadPayload;
3568
+ type ReadMessagePayload = Components.Schemas.ReadMessagePayload;
3569
+ type ReadingScope = Components.Schemas.ReadingScope;
3570
+ type SearchIDParams = Components.Schemas.SearchIDParams;
3571
+ type SearchParams = Components.Schemas.SearchParams;
3572
+ type SearchParamsV2 = Components.Schemas.SearchParamsV2;
3573
+ type Thread = Components.Schemas.Thread;
3574
+ type ThreadDoneEvent = Components.Schemas.ThreadDoneEvent;
3575
+ type ThreadOpenEvent = Components.Schemas.ThreadOpenEvent;
3576
+ type ThreadTimeline = Components.Schemas.ThreadTimeline;
3577
+ type TimelineEvent = Components.Schemas.TimelineEvent;
3578
+ type TimelineEventData = Components.Schemas.TimelineEventData;
3579
+
3580
+ export type { Address as A, BaseEntity as B, Client as C, ErrorResponse as E, FieldsParam as F, Message as M, OperationMethods as O, PathsDictionary as P, ReadMessagePayload as R, SearchIDParams as S, Thread as T, AttachmentsRelation as a, BulkActionsPayload as b, BulkActionsPayloadWithScopes as c, File as d, MessageRequestParams as e, MessageV2 as f, MoveThreadPayload as g, ReadingScope as h, SearchParams as i, SearchParamsV2 as j, ThreadDoneEvent as k, ThreadOpenEvent as l, ThreadTimeline as m, TimelineEvent as n, TimelineEventData as o };