@epilot/sdk 2.1.0-rc.0 → 2.1.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 (357) hide show
  1. package/definitions/app.json +38 -0
  2. package/definitions/automation.json +2 -37
  3. package/definitions/blueprint-manifest-runtime.json +1 -1
  4. package/definitions/blueprint-manifest.json +115 -1
  5. package/definitions/customer-portal-runtime.json +1 -1
  6. package/definitions/customer-portal.json +279 -42
  7. package/definitions/data-management.json +10 -0
  8. package/definitions/email-template.json +25 -3
  9. package/definitions/entity.json +205 -3
  10. package/definitions/erp-integration-runtime.json +1 -1
  11. package/definitions/erp-integration.json +472 -13
  12. package/definitions/journey.json +257 -12
  13. package/definitions/kanban.json +630 -78
  14. package/definitions/organization-runtime.json +1 -1
  15. package/definitions/organization.json +614 -51
  16. package/definitions/workflow.json +40 -0
  17. package/dist/README-VG67PX4R.js +7 -0
  18. package/dist/README-W4B35MRN.cjs +7 -0
  19. package/dist/_index-AMVZBT2K.cjs +99 -0
  20. package/dist/_index-S6LFD3ER.js +99 -0
  21. package/dist/access-token-6BJDZSFE.cjs +7 -0
  22. package/dist/access-token-GSQZLDXR.js +7 -0
  23. package/dist/address-HA4RMRNQ.cjs +7 -0
  24. package/dist/address-QVJUGMOG.js +7 -0
  25. package/dist/address-suggestions-74244BAJ.js +7 -0
  26. package/dist/address-suggestions-IUQMYF27.cjs +7 -0
  27. package/dist/ai-agents-IZWFEUSH.js +7 -0
  28. package/dist/ai-agents-PWHKNRCX.cjs +7 -0
  29. package/dist/apis/access-token.cjs +10 -13
  30. package/dist/apis/access-token.js +7 -10
  31. package/dist/apis/address-suggestions.cjs +10 -13
  32. package/dist/apis/address-suggestions.js +7 -10
  33. package/dist/apis/address.cjs +10 -13
  34. package/dist/apis/address.js +7 -10
  35. package/dist/apis/ai-agents.cjs +10 -13
  36. package/dist/apis/ai-agents.js +7 -10
  37. package/dist/apis/app.cjs +10 -13
  38. package/dist/apis/app.js +7 -10
  39. package/dist/apis/audit-logs.cjs +10 -13
  40. package/dist/apis/audit-logs.js +7 -10
  41. package/dist/apis/automation.cjs +10 -13
  42. package/dist/apis/automation.js +7 -10
  43. package/dist/apis/billing.cjs +10 -13
  44. package/dist/apis/billing.js +7 -10
  45. package/dist/apis/blueprint-manifest.cjs +10 -13
  46. package/dist/apis/blueprint-manifest.js +7 -10
  47. package/dist/apis/consent.cjs +10 -13
  48. package/dist/apis/consent.js +7 -10
  49. package/dist/apis/customer-portal.cjs +10 -13
  50. package/dist/apis/customer-portal.js +7 -10
  51. package/dist/apis/dashboard.cjs +10 -13
  52. package/dist/apis/dashboard.js +7 -10
  53. package/dist/apis/data-management.cjs +10 -13
  54. package/dist/apis/data-management.js +7 -10
  55. package/dist/apis/deduplication.cjs +10 -13
  56. package/dist/apis/deduplication.js +7 -10
  57. package/dist/apis/design.cjs +10 -13
  58. package/dist/apis/design.js +7 -10
  59. package/dist/apis/document.cjs +10 -13
  60. package/dist/apis/document.js +7 -10
  61. package/dist/apis/email-settings.cjs +10 -13
  62. package/dist/apis/email-settings.js +7 -10
  63. package/dist/apis/email-template.cjs +10 -13
  64. package/dist/apis/email-template.js +7 -10
  65. package/dist/apis/entity-mapping.cjs +10 -13
  66. package/dist/apis/entity-mapping.js +7 -10
  67. package/dist/apis/entity.cjs +10 -13
  68. package/dist/apis/entity.js +7 -10
  69. package/dist/apis/environments.cjs +10 -13
  70. package/dist/apis/environments.js +7 -10
  71. package/dist/apis/erp-integration.cjs +10 -13
  72. package/dist/apis/erp-integration.js +7 -10
  73. package/dist/apis/event-catalog.cjs +10 -13
  74. package/dist/apis/event-catalog.js +7 -10
  75. package/dist/apis/file.cjs +10 -13
  76. package/dist/apis/file.js +7 -10
  77. package/dist/apis/iban.cjs +10 -13
  78. package/dist/apis/iban.js +7 -10
  79. package/dist/apis/journey.cjs +10 -13
  80. package/dist/apis/journey.js +7 -10
  81. package/dist/apis/kanban.cjs +10 -13
  82. package/dist/apis/kanban.js +7 -10
  83. package/dist/apis/message.cjs +10 -13
  84. package/dist/apis/message.js +7 -10
  85. package/dist/apis/metering.cjs +10 -13
  86. package/dist/apis/metering.js +7 -10
  87. package/dist/apis/notes.cjs +10 -13
  88. package/dist/apis/notes.js +7 -10
  89. package/dist/apis/notification.cjs +10 -13
  90. package/dist/apis/notification.js +7 -10
  91. package/dist/apis/organization.cjs +10 -13
  92. package/dist/apis/organization.d.cts +2 -2
  93. package/dist/apis/organization.d.ts +2 -2
  94. package/dist/apis/organization.js +7 -10
  95. package/dist/apis/partner-directory.cjs +10 -13
  96. package/dist/apis/partner-directory.js +7 -10
  97. package/dist/apis/permissions.cjs +10 -13
  98. package/dist/apis/permissions.js +7 -10
  99. package/dist/apis/pricing-tier.cjs +10 -13
  100. package/dist/apis/pricing-tier.js +7 -10
  101. package/dist/apis/pricing.cjs +10 -13
  102. package/dist/apis/pricing.js +7 -10
  103. package/dist/apis/purpose.cjs +10 -13
  104. package/dist/apis/purpose.js +7 -10
  105. package/dist/apis/sandbox.cjs +10 -13
  106. package/dist/apis/sandbox.js +7 -10
  107. package/dist/apis/submission.cjs +10 -13
  108. package/dist/apis/submission.js +7 -10
  109. package/dist/apis/targeting.cjs +10 -13
  110. package/dist/apis/targeting.js +7 -10
  111. package/dist/apis/template-variables.cjs +10 -13
  112. package/dist/apis/template-variables.js +7 -10
  113. package/dist/apis/user.cjs +10 -13
  114. package/dist/apis/user.js +7 -10
  115. package/dist/apis/validation-rules.cjs +10 -13
  116. package/dist/apis/validation-rules.js +7 -10
  117. package/dist/apis/webhooks.cjs +10 -13
  118. package/dist/apis/webhooks.js +7 -10
  119. package/dist/apis/workflow-definition.cjs +10 -13
  120. package/dist/apis/workflow-definition.js +7 -10
  121. package/dist/apis/workflow.cjs +10 -13
  122. package/dist/apis/workflow.js +7 -10
  123. package/dist/app-IKHWU222.cjs +7 -0
  124. package/dist/app-VLM3SWKA.js +7 -0
  125. package/dist/audit-logs-5VXHOQ7S.js +7 -0
  126. package/dist/audit-logs-D2LFUA2R.cjs +7 -0
  127. package/dist/automation-3HGCK725.cjs +7 -0
  128. package/dist/automation-72VGEJCY.js +7 -0
  129. package/dist/billing-DUWDISHP.cjs +7 -0
  130. package/dist/billing-IPALEAG2.js +7 -0
  131. package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
  132. package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
  133. package/dist/chunk-2HOJWFQ4.js +14 -0
  134. package/dist/chunk-372VUPHN.js +14 -0
  135. package/dist/chunk-3HJEWWPS.cjs +14 -0
  136. package/dist/chunk-3N67SSL3.js +14 -0
  137. package/dist/chunk-3XEP56SV.cjs +204 -0
  138. package/dist/chunk-3ZZ57K3S.cjs +14 -0
  139. package/dist/chunk-4SWC43JO.cjs +14 -0
  140. package/dist/chunk-4VFQTSJQ.js +14 -0
  141. package/dist/chunk-57QIBYDN.js +14 -0
  142. package/dist/chunk-5SNJAD6F.cjs +14 -0
  143. package/dist/chunk-73H6TVKN.js +14 -0
  144. package/dist/chunk-A6JOROUC.cjs +14 -0
  145. package/dist/chunk-AJKH25H2.cjs +14 -0
  146. package/dist/chunk-ARWMTXJV.cjs +14 -0
  147. package/dist/chunk-B3ZGAG7B.js +14 -0
  148. package/dist/chunk-BH5ZXK4J.cjs +14 -0
  149. package/dist/chunk-BWFXLUK5.cjs +14 -0
  150. package/dist/chunk-C6UTZEHH.js +14 -0
  151. package/dist/chunk-CPKBR34V.js +14 -0
  152. package/dist/chunk-CWSHYFVZ.js +14 -0
  153. package/dist/chunk-DJKSULPK.js +14 -0
  154. package/dist/chunk-DNJ54L2G.js +14 -0
  155. package/dist/chunk-DY2D2IW5.cjs +14 -0
  156. package/dist/chunk-E26ZO7QM.cjs +14 -0
  157. package/dist/chunk-EBCHCYUO.js +14 -0
  158. package/dist/chunk-EPAIOB5U.cjs +14 -0
  159. package/dist/chunk-EQZMT2HF.cjs +14 -0
  160. package/dist/chunk-F376L6PP.cjs +14 -0
  161. package/dist/chunk-F472YLJG.cjs +14 -0
  162. package/dist/chunk-FXOX3X7E.cjs +14 -0
  163. package/dist/chunk-G2REP2VZ.cjs +14 -0
  164. package/dist/chunk-GLO477NZ.js +14 -0
  165. package/dist/chunk-H4VSK4KF.js +14 -0
  166. package/dist/chunk-HPSGM6QP.js +14 -0
  167. package/dist/chunk-HPYHWTTA.cjs +14 -0
  168. package/dist/chunk-IH4CMOML.js +14 -0
  169. package/dist/chunk-IMT3IE5M.cjs +14 -0
  170. package/dist/chunk-IP2WWEOU.js +14 -0
  171. package/dist/chunk-IS2VB342.js +14 -0
  172. package/dist/chunk-ITX53XAZ.js +14 -0
  173. package/dist/chunk-JXBXDTFG.cjs +14 -0
  174. package/dist/chunk-K62XK7KU.js +14 -0
  175. package/dist/chunk-KA3TGFJP.js +14 -0
  176. package/dist/chunk-KBOVBUBM.js +14 -0
  177. package/dist/chunk-KPGC2D6E.js +14 -0
  178. package/dist/chunk-KSXTBGIV.js +14 -0
  179. package/dist/chunk-LCIJ4TJ4.cjs +14 -0
  180. package/dist/chunk-LQOLYXGQ.cjs +14 -0
  181. package/dist/chunk-LSIWCIQV.js +14 -0
  182. package/dist/chunk-MHNSZ4HE.js +14 -0
  183. package/dist/chunk-MKX4CKAB.cjs +14 -0
  184. package/dist/chunk-MRTAFRO7.js +14 -0
  185. package/dist/chunk-MRZ7LGKZ.js +14 -0
  186. package/dist/chunk-MSASBR2Y.js +14 -0
  187. package/dist/chunk-NAWLLC3T.cjs +14 -0
  188. package/dist/chunk-NJK5F5TF.cjs +21 -0
  189. package/dist/chunk-NLSZVGHK.cjs +14 -0
  190. package/dist/chunk-O4LRVGOY.js +14 -0
  191. package/dist/chunk-OG2DMGU6.cjs +14 -0
  192. package/dist/chunk-OGQKJTXF.js +14 -0
  193. package/dist/chunk-PETLAONH.js +14 -0
  194. package/dist/chunk-PVSS2WPM.cjs +14 -0
  195. package/dist/chunk-PXITFTJA.cjs +14 -0
  196. package/dist/chunk-QDVPPRWI.cjs +14 -0
  197. package/dist/chunk-QKERXNJJ.cjs +14 -0
  198. package/dist/chunk-QLML3IP5.cjs +14 -0
  199. package/dist/chunk-QVAJ5JP4.js +14 -0
  200. package/dist/chunk-RD7E4OSJ.cjs +14 -0
  201. package/dist/chunk-RWSA3LXE.cjs +14 -0
  202. package/dist/chunk-RXSS67VI.cjs +14 -0
  203. package/dist/chunk-S3ZNESMC.cjs +14 -0
  204. package/dist/chunk-S7NDMDRX.js +14 -0
  205. package/dist/chunk-SK3VYIZ6.cjs +14 -0
  206. package/dist/chunk-SMGHAG5C.cjs +14 -0
  207. package/dist/chunk-T46LODOF.js +14 -0
  208. package/dist/chunk-TIJWJVKZ.js +14 -0
  209. package/dist/chunk-TLWCYLNA.js +14 -0
  210. package/dist/chunk-TRJLYZHD.js +14 -0
  211. package/dist/chunk-UKKJMCNH.js +14 -0
  212. package/dist/chunk-ULBEEHG4.js +204 -0
  213. package/dist/chunk-VGTUK3QD.cjs +14 -0
  214. package/dist/chunk-VQ7R36AC.js +14 -0
  215. package/dist/chunk-VVQB5W7U.cjs +14 -0
  216. package/dist/chunk-VVVATFGK.cjs +14 -0
  217. package/dist/chunk-WMTYO5OX.cjs +14 -0
  218. package/dist/chunk-WOSSSFXB.js +14 -0
  219. package/dist/chunk-WOXXNKTE.js +14 -0
  220. package/dist/chunk-XKI2OAYV.cjs +14 -0
  221. package/dist/chunk-XR4QF6KQ.cjs +14 -0
  222. package/dist/chunk-XYHTQ523.cjs +14 -0
  223. package/dist/chunk-XZYZLSUO.cjs +14 -0
  224. package/dist/chunk-YPSWSI3M.js +21 -0
  225. package/dist/chunk-YYBIU5BQ.js +14 -0
  226. package/dist/chunk-YZA5WZUS.js +14 -0
  227. package/dist/chunk-Z4LUE424.cjs +14 -0
  228. package/dist/chunk-ZV6XYUXS.js +14 -0
  229. package/dist/consent-CS2ZBZX4.cjs +7 -0
  230. package/dist/consent-NNYHF2N4.js +7 -0
  231. package/dist/customer-portal-D3SLPAHZ.js +7 -0
  232. package/dist/customer-portal-UR3GN4VU.cjs +7 -0
  233. package/dist/dashboard-UHYR5RTY.cjs +7 -0
  234. package/dist/dashboard-UTPGXFW5.js +7 -0
  235. package/dist/data-management-QH2IJ5QV.js +7 -0
  236. package/dist/data-management-TEFRLGSU.cjs +7 -0
  237. package/dist/deduplication-ECVAZVVA.cjs +7 -0
  238. package/dist/deduplication-GYIST22B.js +7 -0
  239. package/dist/design-KUVXMFFK.cjs +7 -0
  240. package/dist/design-YKBXRW5C.js +7 -0
  241. package/dist/document-CY2A2OE7.js +7 -0
  242. package/dist/document-RYQ7MF6U.cjs +7 -0
  243. package/dist/email-settings-TQ5GGDYG.js +7 -0
  244. package/dist/email-settings-TQC34GST.cjs +7 -0
  245. package/dist/email-template-M2VVL4TI.cjs +7 -0
  246. package/dist/email-template-WYROV3UG.js +7 -0
  247. package/dist/entity-FA6PZX6S.js +7 -0
  248. package/dist/entity-IX5NSHPX.cjs +7 -0
  249. package/dist/entity-mapping-7J3IAGKQ.js +7 -0
  250. package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
  251. package/dist/environments-E3X6NYGX.js +7 -0
  252. package/dist/environments-P2JS4F5N.cjs +7 -0
  253. package/dist/erp-integration-EP2XFEH5.js +7 -0
  254. package/dist/erp-integration-NNV72VFI.cjs +7 -0
  255. package/dist/event-catalog-C45ISVMP.cjs +7 -0
  256. package/dist/event-catalog-D7VJ7WRS.js +7 -0
  257. package/dist/file-UOWBTDIU.cjs +7 -0
  258. package/dist/file-XSN3NAVZ.js +7 -0
  259. package/dist/iban-24GHLFDB.cjs +7 -0
  260. package/dist/iban-LDKYDVQV.js +7 -0
  261. package/dist/index.cjs +199 -58
  262. package/dist/index.d.cts +17 -2
  263. package/dist/index.d.ts +17 -2
  264. package/dist/index.js +197 -56
  265. package/dist/journey-7CKX67M7.js +7 -0
  266. package/dist/journey-EUZ6MVHG.cjs +7 -0
  267. package/dist/kanban-CHTH2ZSY.cjs +7 -0
  268. package/dist/kanban-HI6LL5WY.js +7 -0
  269. package/dist/message-3XZLJR6R.cjs +7 -0
  270. package/dist/message-ZNMCS5YH.js +7 -0
  271. package/dist/metering-DZNZPPY6.cjs +7 -0
  272. package/dist/metering-KOSCPPKB.js +7 -0
  273. package/dist/notes-3AO5GXIT.js +7 -0
  274. package/dist/notes-MPWOQC5J.cjs +7 -0
  275. package/dist/notification-PZOCUYD5.cjs +7 -0
  276. package/dist/notification-VWDZRSFZ.js +7 -0
  277. package/dist/organization-RARYYG2E.cjs +7 -0
  278. package/dist/organization-ZERPH2IH.js +7 -0
  279. package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
  280. package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
  281. package/dist/partner-directory-2XMPQWWX.js +7 -0
  282. package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
  283. package/dist/permissions-4T3GFNB4.js +7 -0
  284. package/dist/permissions-FGBIJNN7.cjs +7 -0
  285. package/dist/pricing-4Z4TOETA.cjs +7 -0
  286. package/dist/pricing-C65DTZSX.js +7 -0
  287. package/dist/pricing-tier-NI35WOUP.cjs +7 -0
  288. package/dist/pricing-tier-VUOFK5Q7.js +7 -0
  289. package/dist/purpose-AKOEUHZ4.cjs +7 -0
  290. package/dist/purpose-RBRV3AQZ.js +7 -0
  291. package/dist/sandbox-2KN4X66E.cjs +7 -0
  292. package/dist/sandbox-L2SOOGGR.js +7 -0
  293. package/dist/submission-7BISSPO6.js +7 -0
  294. package/dist/submission-Q24BU4GS.cjs +7 -0
  295. package/dist/targeting-EYGYZD6M.cjs +7 -0
  296. package/dist/targeting-GEJTJN5Z.js +7 -0
  297. package/dist/template-variables-OAYS2E3G.cjs +1148 -0
  298. package/dist/template-variables-VKDJJZUT.js +1148 -0
  299. package/dist/user-EIEOI3OG.js +7 -0
  300. package/dist/user-NJJ7XVKB.cjs +7 -0
  301. package/dist/validation-rules-P6F5P73P.js +7 -0
  302. package/dist/validation-rules-VDU3CIZV.cjs +7 -0
  303. package/dist/webhooks-I7JWU34X.cjs +7 -0
  304. package/dist/webhooks-WPLEHVPX.js +7 -0
  305. package/dist/workflow-3LLURW3H.js +7 -0
  306. package/dist/workflow-RAGQDYXT.cjs +7 -0
  307. package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
  308. package/dist/workflow-definition-D24CRCK2.js +7 -0
  309. package/docs/access-token.md +440 -0
  310. package/docs/address-suggestions.md +256 -0
  311. package/docs/address.md +284 -0
  312. package/docs/ai-agents.md +1891 -0
  313. package/docs/app.md +3388 -0
  314. package/docs/audit-logs.md +242 -0
  315. package/docs/automation.md +4044 -0
  316. package/docs/billing.md +783 -0
  317. package/docs/blueprint-manifest.md +3234 -0
  318. package/docs/consent.md +213 -0
  319. package/docs/customer-portal.md +11399 -0
  320. package/docs/dashboard.md +640 -0
  321. package/docs/data-management.md +883 -0
  322. package/docs/deduplication.md +135 -0
  323. package/docs/design.md +1273 -0
  324. package/docs/document.md +590 -0
  325. package/docs/email-settings.md +1544 -0
  326. package/docs/email-template.md +1197 -0
  327. package/docs/entity-mapping.md +2864 -0
  328. package/docs/entity.md +9595 -0
  329. package/docs/environments.md +259 -0
  330. package/docs/erp-integration.md +4572 -0
  331. package/docs/event-catalog.md +835 -0
  332. package/docs/file.md +1453 -0
  333. package/docs/iban.md +61 -0
  334. package/docs/journey.md +2268 -0
  335. package/docs/kanban.md +882 -0
  336. package/docs/message.md +2122 -0
  337. package/docs/metering.md +1431 -0
  338. package/docs/notes.md +670 -0
  339. package/docs/notification.md +1207 -0
  340. package/docs/organization.md +733 -0
  341. package/docs/partner-directory.md +1197 -0
  342. package/docs/permissions.md +1047 -0
  343. package/docs/pricing-tier.md +81 -0
  344. package/docs/pricing.md +5923 -0
  345. package/docs/purpose.md +283 -0
  346. package/docs/sandbox.md +389 -0
  347. package/docs/submission.md +195 -0
  348. package/docs/targeting.md +959 -0
  349. package/docs/template-variables.md +1141 -0
  350. package/docs/user.md +2555 -0
  351. package/docs/validation-rules.md +1597 -0
  352. package/docs/webhooks.md +996 -0
  353. package/docs/workflow-definition.md +3842 -0
  354. package/docs/workflow.md +4465 -0
  355. package/package.json +3 -2
  356. package/dist/chunk-XE25WERA.js +0 -125
  357. package/dist/chunk-XEQMAKGA.cjs +0 -125
@@ -0,0 +1,1544 @@
1
+ # Messaging Settings API
2
+
3
+ - **Base URL:** `https://email-settings.sls.epilot.io`
4
+ - **Full API Docs:** [https://docs.epilot.io/api/email-settings](https://docs.epilot.io/api/email-settings)
5
+
6
+ ## Usage
7
+
8
+ ```ts
9
+ import { epilot } from '@epilot/sdk'
10
+
11
+ epilot.authorize(() => '<token>')
12
+ const { data } = await epilot.emailSettings.provisionEpilotEmailAddress(...)
13
+ ```
14
+
15
+ ### Tree-shakeable import
16
+
17
+ ```ts
18
+ import { getClient, authorize } from '@epilot/sdk/email-settings'
19
+
20
+ const emailSettingsClient = getClient()
21
+ authorize(emailSettingsClient, () => '<token>')
22
+ const { data } = await emailSettingsClient.provisionEpilotEmailAddress(...)
23
+ ```
24
+
25
+ ## Operations
26
+
27
+ **Email addresses**
28
+ - [`provisionEpilotEmailAddress`](#provisionepilotemailaddress)
29
+ - [`setEmailAddressPrimary`](#setemailaddressprimary)
30
+ - [`getEmailAddress`](#getemailaddress)
31
+ - [`deleteEmailAddress`](#deleteemailaddress)
32
+ - [`updateEmailAddress`](#updateemailaddress)
33
+ - [`listEmailAddresses`](#listemailaddresses)
34
+ - [`addEmailAddress`](#addemailaddress)
35
+
36
+ **Shared inboxes**
37
+ - [`getSharedInbox`](#getsharedinbox)
38
+ - [`deleteSharedInbox`](#deletesharedinbox)
39
+ - [`updateSharedInbox`](#updatesharedinbox)
40
+ - [`listSharedInboxes`](#listsharedinboxes)
41
+ - [`addSharedInbox`](#addsharedinbox)
42
+
43
+ **Inbox buckets**
44
+ - [`listInboxBuckets`](#listinboxbuckets)
45
+
46
+ **O365 Outlook Connection**
47
+ - [`connectOutlook`](#connectoutlook)
48
+ - [`getOutlookConnectionStatus`](#getoutlookconnectionstatus)
49
+ - [`disconnectOutlook`](#disconnectoutlook)
50
+ - [`connectOutlookMailbox`](#connectoutlookmailbox)
51
+ - [`disconnectOutlookMailbox`](#disconnectoutlookmailbox)
52
+ - [`startMailboxSync`](#startmailboxsync)
53
+ - [`getMailboxSyncStatus`](#getmailboxsyncstatus)
54
+ - [`retryMailboxSync`](#retrymailboxsync)
55
+ - [`getConnectedOutlookEmails`](#getconnectedoutlookemails)
56
+ - [`outlookOAuthCallback`](#outlookoauthcallback)
57
+
58
+ **Settings**
59
+ - [`getSettings`](#getsettings)
60
+ - [`addSetting`](#addsetting)
61
+ - [`deleteSetting`](#deletesetting)
62
+ - [`updateSetting`](#updatesetting)
63
+
64
+ **Domains**
65
+ - [`addDomain`](#adddomain)
66
+ - [`deleteDomain`](#deletedomain)
67
+ - [`verifyNameServers`](#verifynameservers)
68
+ - [`verifyDomain`](#verifydomain)
69
+
70
+ **Schemas**
71
+ - [`MailboxSyncStatus`](#mailboxsyncstatus)
72
+ - [`MailboxSyncStatuses`](#mailboxsyncstatuses)
73
+ - [`MailboxSyncFolderStatuses`](#mailboxsyncfolderstatuses)
74
+ - [`MailboxSyncTimeframePeriods`](#mailboxsynctimeframeperiods)
75
+ - [`InboxBucketResponse`](#inboxbucketresponse)
76
+ - [`ProvisionEpilotEmailAddressPayload`](#provisionepilotemailaddresspayload)
77
+ - [`SetEmailAddressPrimaryPayload`](#setemailaddressprimarypayload)
78
+ - [`UpdateEmailAddressPayload`](#updateemailaddresspayload)
79
+ - [`CreateEmailAddressPayload`](#createemailaddresspayload)
80
+ - [`EmailAddressResponse`](#emailaddressresponse)
81
+ - [`ErrorResponse`](#errorresponse)
82
+ - [`SettingMeta`](#settingmeta)
83
+ - [`UpdateSharedInboxPayload`](#updatesharedinboxpayload)
84
+ - [`CreateSharedInboxPayload`](#createsharedinboxpayload)
85
+ - [`SharedInboxResponse`](#sharedinboxresponse)
86
+ - [`SettingsResponse`](#settingsresponse)
87
+ - [`ConnectedOutlookEmail`](#connectedoutlookemail)
88
+ - [`OutlookConnectionError`](#outlookconnectionerror)
89
+ - [`OutlookConnectionStatus`](#outlookconnectionstatus)
90
+ - [`SignatureSetting`](#signaturesetting)
91
+ - [`EmailDomainSetting`](#emaildomainsetting)
92
+ - [`EmailAddressSetting`](#emailaddresssetting)
93
+ - [`WhitelistEmailAddressSetting`](#whitelistemailaddresssetting)
94
+ - [`RestrictDuplicatesWithinSetting`](#restrictduplicateswithinsetting)
95
+ - [`SettingType`](#settingtype)
96
+ - [`Setting`](#setting)
97
+ - [`Domain`](#domain)
98
+
99
+ ### `provisionEpilotEmailAddress`
100
+
101
+ Provisions or reactivates an epilot-managed email address for the organization.
102
+
103
+ `PUT /v2/email-settings/email-addresses/epilot:provision`
104
+
105
+ ```ts
106
+ const { data } = await client.provisionEpilotEmailAddress(
107
+ null,
108
+ {
109
+ address: 'mycompany@epilot.cloud'
110
+ },
111
+ )
112
+ ```
113
+
114
+ <details>
115
+ <summary>Response</summary>
116
+
117
+ ```json
118
+ {
119
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
120
+ "created_at": "2024-01-15T10:30:00Z",
121
+ "updated_at": "2024-01-20T14:45:00Z",
122
+ "created_by": "user-123",
123
+ "updated_by": "user-456",
124
+ "address": "sales@yourcompany.com",
125
+ "name": "Sales Team",
126
+ "user_ids": ["user-123", "user-456"],
127
+ "group_ids": ["group-789"],
128
+ "default_signature_id": "sig-abc",
129
+ "shared_inbox_id": "inbox-xyz",
130
+ "is_active": true,
131
+ "is_primary": false,
132
+ "is_epilot_email_address": false
133
+ }
134
+ ```
135
+
136
+ </details>
137
+
138
+ ---
139
+
140
+ ### `setEmailAddressPrimary`
141
+
142
+ Sets the specified email address as the primary address for the organization.
143
+
144
+ `POST /v2/email-settings/email-addresses/primary`
145
+
146
+ ```ts
147
+ const { data } = await client.setEmailAddressPrimary(
148
+ null,
149
+ {
150
+ address: 'sales@yourcompany.com'
151
+ },
152
+ )
153
+ ```
154
+
155
+ <details>
156
+ <summary>Response</summary>
157
+
158
+ ```json
159
+ {
160
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
161
+ "created_at": "2024-01-15T10:30:00Z",
162
+ "updated_at": "2024-01-20T14:45:00Z",
163
+ "created_by": "user-123",
164
+ "updated_by": "user-456",
165
+ "address": "sales@yourcompany.com",
166
+ "name": "Sales Team",
167
+ "user_ids": ["user-123", "user-456"],
168
+ "group_ids": ["group-789"],
169
+ "default_signature_id": "sig-abc",
170
+ "shared_inbox_id": "inbox-xyz",
171
+ "is_active": true,
172
+ "is_primary": false,
173
+ "is_epilot_email_address": false
174
+ }
175
+ ```
176
+
177
+ </details>
178
+
179
+ ---
180
+
181
+ ### `getEmailAddress`
182
+
183
+ Retrieves the details of a specific email address by its ID.
184
+
185
+ `GET /v2/email-settings/email-addresses/{id}`
186
+
187
+ ```ts
188
+ const { data } = await client.getEmailAddress({
189
+ id: '123e4567-e89b-12d3-a456-426614174000',
190
+ })
191
+ ```
192
+
193
+ <details>
194
+ <summary>Response</summary>
195
+
196
+ ```json
197
+ {
198
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
199
+ "created_at": "2024-01-15T10:30:00Z",
200
+ "updated_at": "2024-01-20T14:45:00Z",
201
+ "created_by": "user-123",
202
+ "updated_by": "user-456",
203
+ "address": "sales@yourcompany.com",
204
+ "name": "Sales Team",
205
+ "user_ids": ["user-123", "user-456"],
206
+ "group_ids": ["group-789"],
207
+ "default_signature_id": "sig-abc",
208
+ "shared_inbox_id": "inbox-xyz",
209
+ "is_active": true,
210
+ "is_primary": false,
211
+ "is_epilot_email_address": false
212
+ }
213
+ ```
214
+
215
+ </details>
216
+
217
+ ---
218
+
219
+ ### `deleteEmailAddress`
220
+
221
+ Permanently deletes an email address from the organization.
222
+
223
+ `DELETE /v2/email-settings/email-addresses/{id}`
224
+
225
+ ```ts
226
+ const { data } = await client.deleteEmailAddress({
227
+ id: '123e4567-e89b-12d3-a456-426614174000',
228
+ })
229
+ ```
230
+
231
+ ---
232
+
233
+ ### `updateEmailAddress`
234
+
235
+ Updates the configuration of an existing email address.
236
+
237
+ `PUT /v2/email-settings/email-addresses/{id}`
238
+
239
+ ```ts
240
+ const { data } = await client.updateEmailAddress(
241
+ {
242
+ id: '123e4567-e89b-12d3-a456-426614174000',
243
+ },
244
+ {
245
+ name: 'Sales Team',
246
+ user_ids: ['user-123', 'user-456'],
247
+ group_ids: ['group-789'],
248
+ default_signature_id: 'sig-abc',
249
+ shared_inbox_id: 'inbox-xyz',
250
+ is_active: true
251
+ },
252
+ )
253
+ ```
254
+
255
+ <details>
256
+ <summary>Response</summary>
257
+
258
+ ```json
259
+ {
260
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
261
+ "created_at": "2024-01-15T10:30:00Z",
262
+ "updated_at": "2024-01-20T14:45:00Z",
263
+ "created_by": "user-123",
264
+ "updated_by": "user-456",
265
+ "address": "sales@yourcompany.com",
266
+ "name": "Sales Team",
267
+ "user_ids": ["user-123", "user-456"],
268
+ "group_ids": ["group-789"],
269
+ "default_signature_id": "sig-abc",
270
+ "shared_inbox_id": "inbox-xyz",
271
+ "is_active": true,
272
+ "is_primary": false,
273
+ "is_epilot_email_address": false
274
+ }
275
+ ```
276
+
277
+ </details>
278
+
279
+ ---
280
+
281
+ ### `listEmailAddresses`
282
+
283
+ Retrieves all email addresses configured for the organization.
284
+
285
+ `GET /v2/email-settings/email-addresses`
286
+
287
+ ```ts
288
+ const { data } = await client.listEmailAddresses()
289
+ ```
290
+
291
+ <details>
292
+ <summary>Response</summary>
293
+
294
+ ```json
295
+ [
296
+ {
297
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
298
+ "created_at": "2024-01-15T10:30:00Z",
299
+ "updated_at": "2024-01-20T14:45:00Z",
300
+ "created_by": "user-123",
301
+ "updated_by": "user-456",
302
+ "address": "sales@yourcompany.com",
303
+ "name": "Sales Team",
304
+ "user_ids": ["user-123", "user-456"],
305
+ "group_ids": ["group-789"],
306
+ "default_signature_id": "sig-abc",
307
+ "shared_inbox_id": "inbox-xyz",
308
+ "is_active": true,
309
+ "is_primary": false,
310
+ "is_epilot_email_address": false
311
+ }
312
+ ]
313
+ ```
314
+
315
+ </details>
316
+
317
+ ---
318
+
319
+ ### `addEmailAddress`
320
+
321
+ Adds a new email address to the organization.
322
+
323
+ `POST /v2/email-settings/email-addresses`
324
+
325
+ ```ts
326
+ const { data } = await client.addEmailAddress(
327
+ null,
328
+ {
329
+ address: 'support@yourcompany.com',
330
+ name: 'Customer Support',
331
+ user_ids: ['user-123'],
332
+ group_ids: ['group-456'],
333
+ default_signature_id: 'sig-789',
334
+ shared_inbox_id: 'inbox-abc'
335
+ },
336
+ )
337
+ ```
338
+
339
+ <details>
340
+ <summary>Response</summary>
341
+
342
+ ```json
343
+ {
344
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
345
+ "created_at": "2024-01-15T10:30:00Z",
346
+ "updated_at": "2024-01-20T14:45:00Z",
347
+ "created_by": "user-123",
348
+ "updated_by": "user-456",
349
+ "address": "sales@yourcompany.com",
350
+ "name": "Sales Team",
351
+ "user_ids": ["user-123", "user-456"],
352
+ "group_ids": ["group-789"],
353
+ "default_signature_id": "sig-abc",
354
+ "shared_inbox_id": "inbox-xyz",
355
+ "is_active": true,
356
+ "is_primary": false,
357
+ "is_epilot_email_address": false
358
+ }
359
+ ```
360
+
361
+ </details>
362
+
363
+ ---
364
+
365
+ ### `getSharedInbox`
366
+
367
+ Retrieves the details of a specific shared inbox by its ID.
368
+
369
+ `GET /v2/email-settings/shared-inboxes/{id}`
370
+
371
+ ```ts
372
+ const { data } = await client.getSharedInbox({
373
+ id: '123e4567-e89b-12d3-a456-426614174000',
374
+ })
375
+ ```
376
+
377
+ <details>
378
+ <summary>Response</summary>
379
+
380
+ ```json
381
+ {
382
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
383
+ "created_at": "2024-01-15T10:30:00Z",
384
+ "updated_at": "2024-01-20T14:45:00Z",
385
+ "created_by": "user-123",
386
+ "updated_by": "user-456",
387
+ "name": "Customer Support",
388
+ "color": "#4CAF50",
389
+ "assignees": ["user-123", "user-456"],
390
+ "description": "Incoming customer support requests",
391
+ "bucket_id": "bucket-xyz"
392
+ }
393
+ ```
394
+
395
+ </details>
396
+
397
+ ---
398
+
399
+ ### `deleteSharedInbox`
400
+
401
+ Deletes a shared inbox and reroutes all associated emails to a successor inbox.
402
+
403
+ `DELETE /v2/email-settings/shared-inboxes/{id}`
404
+
405
+ ```ts
406
+ const { data } = await client.deleteSharedInbox({
407
+ id: '123e4567-e89b-12d3-a456-426614174000',
408
+ successorInboxId: 'example',
409
+ })
410
+ ```
411
+
412
+ ---
413
+
414
+ ### `updateSharedInbox`
415
+
416
+ Updates the configuration of an existing shared inbox.
417
+
418
+ `PUT /v2/email-settings/shared-inboxes/{id}`
419
+
420
+ ```ts
421
+ const { data } = await client.updateSharedInbox(
422
+ {
423
+ id: '123e4567-e89b-12d3-a456-426614174000',
424
+ },
425
+ {
426
+ color: '#4CAF50',
427
+ name: 'Customer Support',
428
+ assignees: ['user-123', 'user-456'],
429
+ description: 'Incoming customer support requests'
430
+ },
431
+ )
432
+ ```
433
+
434
+ <details>
435
+ <summary>Response</summary>
436
+
437
+ ```json
438
+ {
439
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
440
+ "created_at": "2024-01-15T10:30:00Z",
441
+ "updated_at": "2024-01-20T14:45:00Z",
442
+ "created_by": "user-123",
443
+ "updated_by": "user-456",
444
+ "name": "Customer Support",
445
+ "color": "#4CAF50",
446
+ "assignees": ["user-123", "user-456"],
447
+ "description": "Incoming customer support requests",
448
+ "bucket_id": "bucket-xyz"
449
+ }
450
+ ```
451
+
452
+ </details>
453
+
454
+ ---
455
+
456
+ ### `listSharedInboxes`
457
+
458
+ Retrieves all shared inboxes configured for the organization.
459
+
460
+ `GET /v2/email-settings/shared-inboxes`
461
+
462
+ ```ts
463
+ const { data } = await client.listSharedInboxes()
464
+ ```
465
+
466
+ <details>
467
+ <summary>Response</summary>
468
+
469
+ ```json
470
+ [
471
+ {
472
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
473
+ "created_at": "2024-01-15T10:30:00Z",
474
+ "updated_at": "2024-01-20T14:45:00Z",
475
+ "created_by": "user-123",
476
+ "updated_by": "user-456",
477
+ "name": "Customer Support",
478
+ "color": "#4CAF50",
479
+ "assignees": ["user-123", "user-456"],
480
+ "description": "Incoming customer support requests",
481
+ "bucket_id": "bucket-xyz"
482
+ }
483
+ ]
484
+ ```
485
+
486
+ </details>
487
+
488
+ ---
489
+
490
+ ### `addSharedInbox`
491
+
492
+ Creates a new shared inbox for the organization.
493
+
494
+ `POST /v2/email-settings/shared-inboxes`
495
+
496
+ ```ts
497
+ const { data } = await client.addSharedInbox(
498
+ null,
499
+ {
500
+ id: 'support-inbox',
501
+ color: '#2196F3',
502
+ name: 'Sales Inquiries',
503
+ assignees: ['user-123', 'user-456'],
504
+ description: 'Inbound sales and pricing requests'
505
+ },
506
+ )
507
+ ```
508
+
509
+ <details>
510
+ <summary>Response</summary>
511
+
512
+ ```json
513
+ {
514
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
515
+ "created_at": "2024-01-15T10:30:00Z",
516
+ "updated_at": "2024-01-20T14:45:00Z",
517
+ "created_by": "user-123",
518
+ "updated_by": "user-456",
519
+ "name": "Customer Support",
520
+ "color": "#4CAF50",
521
+ "assignees": ["user-123", "user-456"],
522
+ "description": "Incoming customer support requests",
523
+ "bucket_id": "bucket-xyz"
524
+ }
525
+ ```
526
+
527
+ </details>
528
+
529
+ ---
530
+
531
+ ### `listInboxBuckets`
532
+
533
+ Retrieves all inbox buckets for the organization.
534
+
535
+ `GET /v2/email-settings/inbox-buckets`
536
+
537
+ ```ts
538
+ const { data } = await client.listInboxBuckets()
539
+ ```
540
+
541
+ <details>
542
+ <summary>Response</summary>
543
+
544
+ ```json
545
+ [
546
+ {
547
+ "id": "bucket-abc",
548
+ "inbox_id": "inbox-xyz"
549
+ }
550
+ ]
551
+ ```
552
+
553
+ </details>
554
+
555
+ ---
556
+
557
+ ### `connectOutlook`
558
+
559
+ Returns Microsoft authorization URL for Outlook OAuth.
560
+
561
+ `GET /v2/outlook/connect`
562
+
563
+ ```ts
564
+ const { data } = await client.connectOutlook()
565
+ ```
566
+
567
+ <details>
568
+ <summary>Response</summary>
569
+
570
+ ```json
571
+ {
572
+ "authorization_url": "string"
573
+ }
574
+ ```
575
+
576
+ </details>
577
+
578
+ ---
579
+
580
+ ### `getOutlookConnectionStatus`
581
+
582
+ Returns all Microsoft 365 / Outlook connections for the organization.
583
+ Supports multiple connections (one per Azure AD tenant).
584
+
585
+ `GET /v2/outlook/connection/status`
586
+
587
+ ```ts
588
+ const { data } = await client.getOutlookConnectionStatus()
589
+ ```
590
+
591
+ <details>
592
+ <summary>Response</summary>
593
+
594
+ ```json
595
+ {
596
+ "connections": [
597
+ {
598
+ "status": "connected",
599
+ "action": "connect",
600
+ "connected_by_display_name": "string",
601
+ "connected_by_email": "user@example.com",
602
+ "connected_by_user_id": "string",
603
+ "connected_at": "1970-01-01T00:00:00.000Z",
604
+ "updated_at": "1970-01-01T00:00:00.000Z",
605
+ "tenant_id": "string",
606
+ "scopes": ["string"],
607
+ "expires_at": "1970-01-01T00:00:00.000Z",
608
+ "is_token_valid": true
609
+ }
610
+ ],
611
+ "has_connections": true
612
+ }
613
+ ```
614
+
615
+ </details>
616
+
617
+ ---
618
+
619
+ ### `disconnectOutlook`
620
+
621
+ Removes the Microsoft 365 / Outlook connection for a specific tenant.
622
+ This deletes the stored tokens and disconnects the integration.
623
+
624
+ `POST /v2/outlook/connection/disconnect`
625
+
626
+ ```ts
627
+ const { data } = await client.disconnectOutlook(
628
+ null,
629
+ {
630
+ tenant_id: 'string'
631
+ },
632
+ )
633
+ ```
634
+
635
+ <details>
636
+ <summary>Response</summary>
637
+
638
+ ```json
639
+ {
640
+ "success": true,
641
+ "tenant_id": "string",
642
+ "affected_shared_inboxes": ["string"]
643
+ }
644
+ ```
645
+
646
+ </details>
647
+
648
+ ---
649
+
650
+ ### `connectOutlookMailbox`
651
+
652
+ Connects an Outlook mailbox:
653
+ 1. Validates the user has access to the mailbox via Microsoft Graph API
654
+ 2. Creates a mapping between the email address of the mailbox and the outlook connection
655
+ 3. E
656
+
657
+ `POST /v2/outlook/mailbox/connect`
658
+
659
+ ```ts
660
+ const { data } = await client.connectOutlookMailbox(
661
+ null,
662
+ {
663
+ email: 'user@example.com',
664
+ shared_inbox_id: 'default',
665
+ mailboxSyncTimeframe: '5m'
666
+ },
667
+ )
668
+ ```
669
+
670
+ <details>
671
+ <summary>Response</summary>
672
+
673
+ ```json
674
+ {
675
+ "email_address": {
676
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
677
+ "created_at": "2024-01-15T10:30:00Z",
678
+ "updated_at": "2024-01-20T14:45:00Z",
679
+ "created_by": "user-123",
680
+ "updated_by": "user-456",
681
+ "address": "sales@yourcompany.com",
682
+ "name": "Sales Team",
683
+ "user_ids": ["user-123", "user-456"],
684
+ "group_ids": ["group-789"],
685
+ "default_signature_id": "sig-abc",
686
+ "shared_inbox_id": "inbox-xyz",
687
+ "is_active": true,
688
+ "is_primary": false,
689
+ "is_epilot_email_address": false
690
+ },
691
+ "outlook_email": "user@example.com",
692
+ "tenant_id": "string",
693
+ "provider": "outlook"
694
+ }
695
+ ```
696
+
697
+ </details>
698
+
699
+ ---
700
+
701
+ ### `disconnectOutlookMailbox`
702
+
703
+ Disconnect Outlook Mailbox
704
+
705
+ `POST /v2/outlook/mailbox/{email}/disconnect`
706
+
707
+ ```ts
708
+ const { data } = await client.disconnectOutlookMailbox({
709
+ email: 'example',
710
+ })
711
+ ```
712
+
713
+ <details>
714
+ <summary>Response</summary>
715
+
716
+ ```json
717
+ {
718
+ "success": true,
719
+ "email": "user@example.com"
720
+ }
721
+ ```
722
+
723
+ </details>
724
+
725
+ ---
726
+
727
+ ### `startMailboxSync`
728
+
729
+ Start Mailbox Sync
730
+
731
+ `POST /v2/outlook/mailbox/{email}/sync`
732
+
733
+ ```ts
734
+ const { data } = await client.startMailboxSync(
735
+ {
736
+ email: 'example',
737
+ },
738
+ {
739
+ timeframe: '5m'
740
+ },
741
+ )
742
+ ```
743
+
744
+ ---
745
+
746
+ ### `getMailboxSyncStatus`
747
+
748
+ Get Mailbox Sync Status
749
+
750
+ `GET /v2/outlook/mailbox/{email}/sync/status`
751
+
752
+ ```ts
753
+ const { data } = await client.getMailboxSyncStatus({
754
+ email: 'example',
755
+ })
756
+ ```
757
+
758
+ <details>
759
+ <summary>Response</summary>
760
+
761
+ ```json
762
+ {
763
+ "execution_id": "string",
764
+ "status": "RUNNING",
765
+ "timeframe": "5m",
766
+ "started_at": "1970-01-01T00:00:00.000Z",
767
+ "completed_at": "1970-01-01T00:00:00.000Z",
768
+ "inbox": {
769
+ "status": "PENDING",
770
+ "total_messages": 0,
771
+ "processed_messages": 0,
772
+ "failed_messages": 0
773
+ },
774
+ "sent_items": {
775
+ "status": "PENDING",
776
+ "total_messages": 0,
777
+ "processed_messages": 0,
778
+ "failed_messages": 0
779
+ }
780
+ }
781
+ ```
782
+
783
+ </details>
784
+
785
+ ---
786
+
787
+ ### `retryMailboxSync`
788
+
789
+ Retry Failed Messages
790
+
791
+ `POST /v2/outlook/mailbox/{email}/sync/retry`
792
+
793
+ ```ts
794
+ const { data } = await client.retryMailboxSync(
795
+ {
796
+ email: 'example',
797
+ },
798
+ {
799
+ sync_id: 'string',
800
+ scope: 'all_failed',
801
+ message_ids: ['string']
802
+ },
803
+ )
804
+ ```
805
+
806
+ ---
807
+
808
+ ### `getConnectedOutlookEmails`
809
+
810
+ Returns all Outlook email addresses connected to the organization.
811
+
812
+ `GET /v2/outlook/mailbox/mappings`
813
+
814
+ ```ts
815
+ const { data } = await client.getConnectedOutlookEmails()
816
+ ```
817
+
818
+ <details>
819
+ <summary>Response</summary>
820
+
821
+ ```json
822
+ {
823
+ "outlook_emails": [
824
+ {
825
+ "outlook_email": "user@example.com",
826
+ "tenant_id": "string",
827
+ "provider": "outlook",
828
+ "connected_at": "1970-01-01T00:00:00.000Z",
829
+ "connected_by_user_id": "string"
830
+ }
831
+ ],
832
+ "count": 0
833
+ }
834
+ ```
835
+
836
+ </details>
837
+
838
+ ---
839
+
840
+ ### `outlookOAuthCallback`
841
+
842
+ Exchanges authorization code for tokens and stores them.
843
+
844
+ `GET /v2/outlook/oauth/callback`
845
+
846
+ ```ts
847
+ const { data } = await client.outlookOAuthCallback({
848
+ code: 'example',
849
+ state: 'example',
850
+ session_state: 'example',
851
+ error: 'example',
852
+ error_description: 'example',
853
+ error_subcode: 'example',
854
+ client_info: 'example',
855
+ error_uri: 'example',
856
+ admin_consent: 'example',
857
+ tenant: 'example',
858
+ })
859
+ ```
860
+
861
+ <details>
862
+ <summary>Response</summary>
863
+
864
+ ```json
865
+ {
866
+ "connected": true,
867
+ "expires_at": "1970-01-01T00:00:00.000Z",
868
+ "scope": "string"
869
+ }
870
+ ```
871
+
872
+ </details>
873
+
874
+ ---
875
+
876
+ ### `getSettings`
877
+
878
+ Retrieves settings of a specific type for the organization.
879
+
880
+ `GET /v1/email-settings`
881
+
882
+ ```ts
883
+ const { data } = await client.getSettings({
884
+ type: 'example',
885
+ id: '123e4567-e89b-12d3-a456-426614174000',
886
+ })
887
+ ```
888
+
889
+ <details>
890
+ <summary>Response</summary>
891
+
892
+ ```json
893
+ [
894
+ {
895
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
896
+ "name": "Default Signature",
897
+ "org_id": "org-123",
898
+ "type": "signature",
899
+ "value": "Best regards, The Team",
900
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
901
+ "created_at": "2024-01-15T10:30:00Z",
902
+ "updated_at": "2024-01-20T14:45:00Z",
903
+ "created_by": "user-123",
904
+ "updated_by": "user-456"
905
+ }
906
+ ]
907
+ ```
908
+
909
+ </details>
910
+
911
+ ---
912
+
913
+ ### `addSetting`
914
+
915
+ Creates a new setting of the specified type.
916
+
917
+ `POST /v1/email-settings`
918
+
919
+ ```ts
920
+ const { data } = await client.addSetting(
921
+ null,
922
+ {
923
+ id: 'a10bd0ff-4391-4cfc-88ee-b19d718a9bf7',
924
+ name: 'Default Signature',
925
+ org_id: 'org-123',
926
+ type: 'signature',
927
+ value: 'Best regards, The Team',
928
+ html: '<p>Best regards,<br/><strong>The Team</strong></p>',
929
+ created_at: '2024-01-15T10:30:00Z',
930
+ updated_at: '2024-01-20T14:45:00Z',
931
+ created_by: 'user-123',
932
+ updated_by: 'user-456'
933
+ },
934
+ )
935
+ ```
936
+
937
+ <details>
938
+ <summary>Response</summary>
939
+
940
+ ```json
941
+ [
942
+ {
943
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
944
+ "name": "Default Signature",
945
+ "org_id": "org-123",
946
+ "type": "signature",
947
+ "value": "Best regards, The Team",
948
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
949
+ "created_at": "2024-01-15T10:30:00Z",
950
+ "updated_at": "2024-01-20T14:45:00Z",
951
+ "created_by": "user-123",
952
+ "updated_by": "user-456"
953
+ }
954
+ ]
955
+ ```
956
+
957
+ </details>
958
+
959
+ ---
960
+
961
+ ### `deleteSetting`
962
+
963
+ Deletes a setting by its ID and type.
964
+
965
+ `DELETE /v1/email-settings`
966
+
967
+ ```ts
968
+ const { data } = await client.deleteSetting(
969
+ null,
970
+ {
971
+ type: 'signature',
972
+ id: 'a10bd0ff-4391-4cfc-88ee-b19d718a9bf7'
973
+ },
974
+ )
975
+ ```
976
+
977
+ <details>
978
+ <summary>Response</summary>
979
+
980
+ ```json
981
+ {
982
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
983
+ "name": "Default Signature",
984
+ "org_id": "org-123",
985
+ "type": "signature",
986
+ "value": "Best regards, The Team",
987
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
988
+ "created_at": "2024-01-15T10:30:00Z",
989
+ "updated_at": "2024-01-20T14:45:00Z",
990
+ "created_by": "user-123",
991
+ "updated_by": "user-456"
992
+ }
993
+ ```
994
+
995
+ </details>
996
+
997
+ ---
998
+
999
+ ### `updateSetting`
1000
+
1001
+ Updates an existing setting identified by its ID.
1002
+
1003
+ `POST /v1/email-settings/{id}`
1004
+
1005
+ ```ts
1006
+ const { data } = await client.updateSetting(
1007
+ {
1008
+ id: '123e4567-e89b-12d3-a456-426614174000',
1009
+ },
1010
+ {
1011
+ id: 'a10bd0ff-4391-4cfc-88ee-b19d718a9bf7',
1012
+ name: 'Default Signature',
1013
+ org_id: 'org-123',
1014
+ type: 'signature',
1015
+ value: 'Best regards, The Team',
1016
+ html: '<p>Best regards,<br/><strong>The Team</strong></p>',
1017
+ created_at: '2024-01-15T10:30:00Z',
1018
+ updated_at: '2024-01-20T14:45:00Z',
1019
+ created_by: 'user-123',
1020
+ updated_by: 'user-456'
1021
+ },
1022
+ )
1023
+ ```
1024
+
1025
+ <details>
1026
+ <summary>Response</summary>
1027
+
1028
+ ```json
1029
+ {
1030
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
1031
+ "name": "Default Signature",
1032
+ "org_id": "org-123",
1033
+ "type": "signature",
1034
+ "value": "Best regards, The Team",
1035
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
1036
+ "created_at": "2024-01-15T10:30:00Z",
1037
+ "updated_at": "2024-01-20T14:45:00Z",
1038
+ "created_by": "user-123",
1039
+ "updated_by": "user-456"
1040
+ }
1041
+ ```
1042
+
1043
+ </details>
1044
+
1045
+ ---
1046
+
1047
+ ### `addDomain`
1048
+
1049
+ Adds a custom email domain to the organization.
1050
+
1051
+ `POST /v1/email-settings/domain`
1052
+
1053
+ ```ts
1054
+ const { data } = await client.addDomain(
1055
+ null,
1056
+ {
1057
+ domain: 'mail.yourcompany.com'
1058
+ },
1059
+ )
1060
+ ```
1061
+
1062
+ <details>
1063
+ <summary>Response</summary>
1064
+
1065
+ ```json
1066
+ [
1067
+ {
1068
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
1069
+ "name": "Default Signature",
1070
+ "org_id": "org-123",
1071
+ "type": "signature",
1072
+ "value": "Best regards, The Team",
1073
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
1074
+ "created_at": "2024-01-15T10:30:00Z",
1075
+ "updated_at": "2024-01-20T14:45:00Z",
1076
+ "created_by": "user-123",
1077
+ "updated_by": "user-456"
1078
+ }
1079
+ ]
1080
+ ```
1081
+
1082
+ </details>
1083
+
1084
+ ---
1085
+
1086
+ ### `deleteDomain`
1087
+
1088
+ Removes a custom email domain from the organization.
1089
+
1090
+ `DELETE /v1/email-settings/domain`
1091
+
1092
+ ```ts
1093
+ const { data } = await client.deleteDomain(
1094
+ null,
1095
+ {
1096
+ domain: 'mail.yourcompany.com'
1097
+ },
1098
+ )
1099
+ ```
1100
+
1101
+ ---
1102
+
1103
+ ### `verifyNameServers`
1104
+
1105
+ Verifies that the domain's name server (NS) records are correctly configured.
1106
+
1107
+ `POST /v1/email-settings/domain/name-servers:verify`
1108
+
1109
+ ```ts
1110
+ const { data } = await client.verifyNameServers(
1111
+ null,
1112
+ {
1113
+ domain: 'mail.yourcompany.com'
1114
+ },
1115
+ )
1116
+ ```
1117
+
1118
+ <details>
1119
+ <summary>Response</summary>
1120
+
1121
+ ```json
1122
+ [
1123
+ {
1124
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
1125
+ "name": "Default Signature",
1126
+ "org_id": "org-123",
1127
+ "type": "signature",
1128
+ "value": "Best regards, The Team",
1129
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
1130
+ "created_at": "2024-01-15T10:30:00Z",
1131
+ "updated_at": "2024-01-20T14:45:00Z",
1132
+ "created_by": "user-123",
1133
+ "updated_by": "user-456"
1134
+ }
1135
+ ]
1136
+ ```
1137
+
1138
+ </details>
1139
+
1140
+ ---
1141
+
1142
+ ### `verifyDomain`
1143
+
1144
+ Verifies ownership and configuration of a custom email domain.
1145
+
1146
+ `POST /v1/email-settings/domain:verify`
1147
+
1148
+ ```ts
1149
+ const { data } = await client.verifyDomain(
1150
+ null,
1151
+ {
1152
+ domain: 'mail.yourcompany.com'
1153
+ },
1154
+ )
1155
+ ```
1156
+
1157
+ <details>
1158
+ <summary>Response</summary>
1159
+
1160
+ ```json
1161
+ [
1162
+ {
1163
+ "id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
1164
+ "name": "Default Signature",
1165
+ "org_id": "org-123",
1166
+ "type": "signature",
1167
+ "value": "Best regards, The Team",
1168
+ "html": "<p>Best regards,<br/><strong>The Team</strong></p>",
1169
+ "created_at": "2024-01-15T10:30:00Z",
1170
+ "updated_at": "2024-01-20T14:45:00Z",
1171
+ "created_by": "user-123",
1172
+ "updated_by": "user-456"
1173
+ }
1174
+ ]
1175
+ ```
1176
+
1177
+ </details>
1178
+
1179
+ ---
1180
+
1181
+ ## Schemas
1182
+
1183
+ ### `MailboxSyncStatus`
1184
+
1185
+ ```ts
1186
+ type MailboxSyncStatus = {
1187
+ execution_id: string
1188
+ status: "RUNNING" | "COMPLETED" | "COMPLETED_WITH_ERRORS" | "FAILED" | "CANCELLED"
1189
+ timeframe: "5m" | "1w" | "2w" | "1m"
1190
+ started_at: string // date-time
1191
+ completed_at?: string // date-time
1192
+ inbox?: {
1193
+ status?: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | "SKIPPED"
1194
+ total_messages?: number
1195
+ processed_messages?: number
1196
+ failed_messages?: number
1197
+ }
1198
+ sent_items?: {
1199
+ status?: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | "SKIPPED"
1200
+ total_messages?: number
1201
+ processed_messages?: number
1202
+ failed_messages?: number
1203
+ }
1204
+ }
1205
+ ```
1206
+
1207
+ ### `MailboxSyncStatuses`
1208
+
1209
+ ```ts
1210
+ type MailboxSyncStatuses = "RUNNING" | "COMPLETED" | "COMPLETED_WITH_ERRORS" | "FAILED" | "CANCELLED"
1211
+ ```
1212
+
1213
+ ### `MailboxSyncFolderStatuses`
1214
+
1215
+ ```ts
1216
+ type MailboxSyncFolderStatuses = "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | "SKIPPED"
1217
+ ```
1218
+
1219
+ ### `MailboxSyncTimeframePeriods`
1220
+
1221
+ ```ts
1222
+ type MailboxSyncTimeframePeriods = "5m" | "1w" | "2w" | "1m"
1223
+ ```
1224
+
1225
+ ### `InboxBucketResponse`
1226
+
1227
+ Inbox bucket representing the storage container for a shared inbox.
1228
+
1229
+ ```ts
1230
+ type InboxBucketResponse = {
1231
+ id: string
1232
+ inbox_id: string
1233
+ }
1234
+ ```
1235
+
1236
+ ### `ProvisionEpilotEmailAddressPayload`
1237
+
1238
+ Request payload for provisioning an epilot-managed email address.
1239
+
1240
+ ```ts
1241
+ type ProvisionEpilotEmailAddressPayload = {
1242
+ address: string
1243
+ }
1244
+ ```
1245
+
1246
+ ### `SetEmailAddressPrimaryPayload`
1247
+
1248
+ Request payload for setting an email address as the organization's primary address.
1249
+
1250
+ ```ts
1251
+ type SetEmailAddressPrimaryPayload = {
1252
+ address: string
1253
+ }
1254
+ ```
1255
+
1256
+ ### `UpdateEmailAddressPayload`
1257
+
1258
+ Request payload for updating an email address configuration.
1259
+ All fields are optional; only provided fields will be updated.
1260
+
1261
+
1262
+ ```ts
1263
+ type UpdateEmailAddressPayload = {
1264
+ name?: string
1265
+ user_ids?: string[]
1266
+ group_ids?: string[]
1267
+ default_signature_id?: string
1268
+ shared_inbox_id?: string
1269
+ is_active?: boolean
1270
+ }
1271
+ ```
1272
+
1273
+ ### `CreateEmailAddressPayload`
1274
+
1275
+ Request payload for creating a new email address.
1276
+
1277
+ ```ts
1278
+ type CreateEmailAddressPayload = {
1279
+ address: string
1280
+ name?: string
1281
+ user_ids?: string[]
1282
+ group_ids?: string[]
1283
+ default_signature_id?: string
1284
+ shared_inbox_id?: string
1285
+ }
1286
+ ```
1287
+
1288
+ ### `EmailAddressResponse`
1289
+
1290
+ Email address configuration with all associated metadata.
1291
+
1292
+ ```ts
1293
+ type EmailAddressResponse = {
1294
+ id: string
1295
+ created_at: string // date-time
1296
+ updated_at?: string // date-time
1297
+ created_by?: string
1298
+ updated_by?: string
1299
+ address: string
1300
+ name?: string
1301
+ user_ids?: string[]
1302
+ group_ids?: string[]
1303
+ default_signature_id?: string
1304
+ shared_inbox_id?: string
1305
+ is_active?: boolean
1306
+ is_primary?: boolean
1307
+ is_epilot_email_address?: boolean
1308
+ }
1309
+ ```
1310
+
1311
+ ### `ErrorResponse`
1312
+
1313
+ Standard error response format for all API errors.
1314
+
1315
+ ```ts
1316
+ type ErrorResponse = {
1317
+ error: string
1318
+ status: number
1319
+ }
1320
+ ```
1321
+
1322
+ ### `SettingMeta`
1323
+
1324
+ Common metadata fields for all settings and resources.
1325
+
1326
+ ```ts
1327
+ type SettingMeta = {
1328
+ id: string
1329
+ created_at: string // date-time
1330
+ updated_at?: string // date-time
1331
+ created_by?: string
1332
+ updated_by?: string
1333
+ }
1334
+ ```
1335
+
1336
+ ### `UpdateSharedInboxPayload`
1337
+
1338
+ Request payload for updating a shared inbox configuration.
1339
+ All fields are optional; only provided fields will be updated.
1340
+
1341
+
1342
+ ```ts
1343
+ type UpdateSharedInboxPayload = {
1344
+ color?: string
1345
+ name?: string
1346
+ assignees?: string[]
1347
+ description?: string
1348
+ }
1349
+ ```
1350
+
1351
+ ### `CreateSharedInboxPayload`
1352
+
1353
+ Request payload for creating a new shared inbox.
1354
+
1355
+ ```ts
1356
+ type CreateSharedInboxPayload = {
1357
+ id?: string
1358
+ color: string
1359
+ name: string
1360
+ assignees?: string[]
1361
+ description?: string
1362
+ }
1363
+ ```
1364
+
1365
+ ### `SharedInboxResponse`
1366
+
1367
+ Shared inbox configuration with all associated metadata.
1368
+
1369
+ ```ts
1370
+ type SharedInboxResponse = {
1371
+ id: string
1372
+ created_at: string // date-time
1373
+ updated_at?: string // date-time
1374
+ created_by?: string
1375
+ updated_by?: string
1376
+ name: string
1377
+ color: string
1378
+ assignees: string[]
1379
+ description?: string
1380
+ bucket_id: string
1381
+ }
1382
+ ```
1383
+
1384
+ ### `SettingsResponse`
1385
+
1386
+ ```ts
1387
+ type SettingsResponse = Array<{
1388
+ id?: string
1389
+ name?: string
1390
+ org_id?: string
1391
+ type: "signature" | "email_domain" | "email_address" | "whitelist_email_address" | "restrict_duplicates_within"
1392
+ value?: string
1393
+ html?: string
1394
+ created_at?: string
1395
+ updated_at?: string
1396
+ created_by?: string
1397
+ updated_by?: string
1398
+ }> | {
1399
+ id?: string
1400
+ name?: string
1401
+ org_id?: string
1402
+ type: "signature" | "email_domain" | "email_address" | "whitelist_email_address" | "restrict_duplicates_within"
1403
+ value?: string
1404
+ html?: string
1405
+ created_at?: string
1406
+ updated_at?: string
1407
+ created_by?: string
1408
+ updated_by?: string
1409
+ }
1410
+ ```
1411
+
1412
+ ### `ConnectedOutlookEmail`
1413
+
1414
+ Mapping between an Outlook email and its Outlook Connection.
1415
+ This tracks which provider/tenant provisions each Outlook email.
1416
+
1417
+
1418
+ ```ts
1419
+ type ConnectedOutlookEmail = {
1420
+ outlook_email: string // email
1421
+ tenant_id?: string
1422
+ provider?: "outlook"
1423
+ connected_at?: string // date-time
1424
+ connected_by_user_id?: string
1425
+ }
1426
+ ```
1427
+
1428
+ ### `OutlookConnectionError`
1429
+
1430
+ ```ts
1431
+ type OutlookConnectionError = {
1432
+ error: string
1433
+ error_description?: string
1434
+ admin_consent_url?: string // uri
1435
+ }
1436
+ ```
1437
+
1438
+ ### `OutlookConnectionStatus`
1439
+
1440
+ ```ts
1441
+ type OutlookConnectionStatus = {
1442
+ status: "connected" | "expired" | "pending_auth" | "not_connected"
1443
+ action: "connect" | "authorize" | "reconnect" | "none"
1444
+ connected_by_display_name?: string
1445
+ connected_by_email?: string // email
1446
+ connected_by_user_id?: string
1447
+ connected_at?: string // date-time
1448
+ updated_at?: string // date-time
1449
+ tenant_id: string
1450
+ scopes?: string[]
1451
+ expires_at?: string // date-time
1452
+ is_token_valid?: boolean
1453
+ }
1454
+ ```
1455
+
1456
+ ### `SignatureSetting`
1457
+
1458
+ Setting that allows to add a signature.
1459
+
1460
+ ```ts
1461
+ type SignatureSetting = "signature"
1462
+ ```
1463
+
1464
+ ### `EmailDomainSetting`
1465
+
1466
+ Setting that allows to add a custom domain. For e.g; doe.com
1467
+
1468
+ ```ts
1469
+ type EmailDomainSetting = "email_domain"
1470
+ ```
1471
+
1472
+ ### `EmailAddressSetting`
1473
+
1474
+ Setting that allows to add an email address on the custom domain. For e.g; john@doe.com
1475
+
1476
+ ```ts
1477
+ type EmailAddressSetting = "email_address"
1478
+ ```
1479
+
1480
+ ### `WhitelistEmailAddressSetting`
1481
+
1482
+ - Setting that specifies a list of addresses exempt from being flagged as duplicate emails.
1483
+ - An email will be flagged as a duplicate if it has the same content and is sent to the same recipient within the time frame specified in the RestrictDuplicatesWithinSetting.
1484
+
1485
+
1486
+ ```ts
1487
+ type WhitelistEmailAddressSetting = "whitelist_email_address"
1488
+ ```
1489
+
1490
+ ### `RestrictDuplicatesWithinSetting`
1491
+
1492
+ - Restrict duplicates within:
1493
+ * 10s
1494
+ * 5m
1495
+ * 1d
1496
+ * 5000 // It converts to 5 seconds.When expressed as a numerical value, it will be interpreted as being in milliseconds.
1497
+ - Defaults to 3 minutes
1498
+ - Negative values will be treated same as positive values
1499
+ - If not set, defaults to 3 min
1500
+ - If set as
1501
+
1502
+ ```ts
1503
+ type RestrictDuplicatesWithinSetting = "restrict_duplicates_within"
1504
+ ```
1505
+
1506
+ ### `SettingType`
1507
+
1508
+ ```ts
1509
+ type SettingType = "signature" | "email_domain" | "email_address" | "whitelist_email_address" | "restrict_duplicates_within"
1510
+ ```
1511
+
1512
+ ### `Setting`
1513
+
1514
+ Generic setting object used for various email configuration types.
1515
+ The applicable fields depend on the setting type:
1516
+ - **signature**: Uses `name`, `value` (plain text), and `html` (rich text)
1517
+ - **email_domain**: Uses `value` (domain name)
1518
+ - **whitelist_email_address**: Uses `value` (email address)
1519
+ -
1520
+
1521
+ ```ts
1522
+ type Setting = {
1523
+ id?: string
1524
+ name?: string
1525
+ org_id?: string
1526
+ type: "signature" | "email_domain" | "email_address" | "whitelist_email_address" | "restrict_duplicates_within"
1527
+ value?: string
1528
+ html?: string
1529
+ created_at?: string
1530
+ updated_at?: string
1531
+ created_by?: string
1532
+ updated_by?: string
1533
+ }
1534
+ ```
1535
+
1536
+ ### `Domain`
1537
+
1538
+ Custom email domain configuration.
1539
+
1540
+ ```ts
1541
+ type Domain = {
1542
+ domain?: string
1543
+ }
1544
+ ```