agentmail 0.0.24 → 0.0.26

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 (281) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  3. package/README.md +1 -1
  4. package/api/resources/drafts/client/Client.d.ts +53 -0
  5. package/api/resources/drafts/client/Client.js +218 -0
  6. package/api/resources/drafts/client/index.d.ts +1 -0
  7. package/api/resources/drafts/client/index.js +17 -0
  8. package/api/resources/drafts/client/requests/ListDraftsRequest.d.ts +15 -0
  9. package/api/resources/drafts/client/requests/index.d.ts +1 -0
  10. package/api/resources/drafts/client/requests/index.js +2 -0
  11. package/api/resources/drafts/index.d.ts +2 -0
  12. package/api/resources/drafts/index.js +18 -0
  13. package/api/resources/drafts/types/Draft.d.ts +51 -0
  14. package/api/resources/drafts/types/DraftAttachments.d.ts +8 -0
  15. package/api/resources/drafts/types/DraftAttachments.js +5 -0
  16. package/api/resources/drafts/types/DraftBcc.d.ts +7 -0
  17. package/api/resources/drafts/types/DraftBcc.js +5 -0
  18. package/api/resources/drafts/types/DraftCc.d.ts +7 -0
  19. package/api/resources/drafts/types/DraftCc.js +5 -0
  20. package/api/resources/drafts/types/DraftCreatedAt.d.ts +7 -0
  21. package/api/resources/drafts/types/DraftCreatedAt.js +5 -0
  22. package/api/resources/drafts/types/DraftEventId.d.ts +7 -0
  23. package/api/resources/drafts/types/DraftEventId.js +5 -0
  24. package/api/resources/drafts/types/DraftHtml.d.ts +7 -0
  25. package/api/resources/drafts/types/DraftHtml.js +5 -0
  26. package/api/resources/drafts/types/DraftId.d.ts +7 -0
  27. package/api/resources/drafts/types/DraftId.js +5 -0
  28. package/api/resources/drafts/types/DraftInReplyTo.d.ts +7 -0
  29. package/api/resources/drafts/types/DraftInReplyTo.js +5 -0
  30. package/api/resources/drafts/types/DraftItem.d.ts +21 -0
  31. package/api/resources/drafts/types/DraftItem.js +5 -0
  32. package/api/resources/drafts/types/DraftLabels.d.ts +7 -0
  33. package/api/resources/drafts/types/DraftLabels.js +5 -0
  34. package/api/resources/drafts/types/DraftPreview.d.ts +7 -0
  35. package/api/resources/drafts/types/DraftPreview.js +5 -0
  36. package/api/resources/drafts/types/DraftReferences.d.ts +7 -0
  37. package/api/resources/drafts/types/DraftReferences.js +5 -0
  38. package/api/resources/drafts/types/DraftSubject.d.ts +7 -0
  39. package/api/resources/drafts/types/DraftSubject.js +5 -0
  40. package/api/resources/drafts/types/DraftText.d.ts +7 -0
  41. package/api/resources/drafts/types/DraftText.js +5 -0
  42. package/api/resources/drafts/types/DraftTo.d.ts +7 -0
  43. package/api/resources/drafts/types/DraftTo.js +5 -0
  44. package/api/resources/drafts/types/DraftUpdatedAt.d.ts +7 -0
  45. package/api/resources/drafts/types/DraftUpdatedAt.js +5 -0
  46. package/api/resources/drafts/types/ListDraftsResponse.d.ts +51 -0
  47. package/api/resources/drafts/types/ListDraftsResponse.js +5 -0
  48. package/api/resources/drafts/types/index.d.ts +18 -0
  49. package/api/resources/drafts/types/index.js +34 -0
  50. package/api/resources/inboxes/client/Client.js +8 -3
  51. package/api/resources/inboxes/types/Inbox.d.ts +0 -4
  52. package/api/resources/inboxes/types/ListInboxesResponse.d.ts +2 -3
  53. package/api/resources/index.d.ts +3 -0
  54. package/api/resources/index.js +4 -1
  55. package/api/resources/messages/client/Client.js +18 -5
  56. package/api/resources/messages/types/ListMessagesResponse.d.ts +6 -4
  57. package/api/resources/messages/types/Message.d.ts +4 -8
  58. package/api/resources/messages/types/MessageItem.d.ts +3 -0
  59. package/api/resources/messages/types/SendAttachment.d.ts +1 -1
  60. package/api/resources/messages/types/index.d.ts +4 -5
  61. package/api/resources/messages/types/index.js +4 -5
  62. package/api/resources/threads/client/Client.js +6 -2
  63. package/api/resources/threads/types/ListThreadsResponse.d.ts +4 -2
  64. package/api/resources/threads/types/Thread.d.ts +2 -5
  65. package/api/resources/threads/types/ThreadItem.d.ts +1 -0
  66. package/api/resources/threads/types/index.d.ts +1 -1
  67. package/api/resources/threads/types/index.js +1 -1
  68. package/api/resources/webhooks/client/Client.js +10 -4
  69. package/api/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  70. package/dist/Client.d.ts +3 -0
  71. package/dist/Client.js +7 -2
  72. package/dist/api/resources/drafts/client/Client.d.ts +53 -0
  73. package/dist/api/resources/drafts/client/Client.js +218 -0
  74. package/dist/api/resources/drafts/client/index.d.ts +1 -0
  75. package/dist/api/resources/drafts/client/index.js +17 -0
  76. package/dist/api/resources/drafts/client/requests/ListDraftsRequest.d.ts +15 -0
  77. package/dist/api/resources/drafts/client/requests/ListDraftsRequest.js +5 -0
  78. package/dist/api/resources/drafts/client/requests/index.d.ts +1 -0
  79. package/dist/api/resources/drafts/client/requests/index.js +2 -0
  80. package/dist/api/resources/drafts/index.d.ts +2 -0
  81. package/dist/api/resources/drafts/index.js +18 -0
  82. package/dist/api/resources/drafts/types/Draft.d.ts +51 -0
  83. package/dist/api/resources/drafts/types/Draft.js +5 -0
  84. package/dist/api/resources/drafts/types/DraftAttachments.d.ts +8 -0
  85. package/dist/api/resources/drafts/types/DraftAttachments.js +5 -0
  86. package/dist/api/resources/drafts/types/DraftBcc.d.ts +7 -0
  87. package/dist/api/resources/drafts/types/DraftBcc.js +5 -0
  88. package/dist/api/resources/drafts/types/DraftCc.d.ts +7 -0
  89. package/dist/api/resources/drafts/types/DraftCc.js +5 -0
  90. package/dist/api/resources/drafts/types/DraftCreatedAt.d.ts +7 -0
  91. package/dist/api/resources/drafts/types/DraftCreatedAt.js +5 -0
  92. package/dist/api/resources/drafts/types/DraftEventId.d.ts +7 -0
  93. package/dist/api/resources/drafts/types/DraftEventId.js +5 -0
  94. package/dist/api/resources/drafts/types/DraftHtml.d.ts +7 -0
  95. package/dist/api/resources/drafts/types/DraftHtml.js +5 -0
  96. package/dist/api/resources/drafts/types/DraftId.d.ts +7 -0
  97. package/dist/api/resources/drafts/types/DraftId.js +5 -0
  98. package/dist/api/resources/drafts/types/DraftInReplyTo.d.ts +7 -0
  99. package/dist/api/resources/drafts/types/DraftInReplyTo.js +5 -0
  100. package/dist/api/resources/drafts/types/DraftItem.d.ts +21 -0
  101. package/dist/api/resources/drafts/types/DraftItem.js +5 -0
  102. package/dist/api/resources/drafts/types/DraftLabels.d.ts +7 -0
  103. package/dist/api/resources/drafts/types/DraftLabels.js +5 -0
  104. package/dist/api/resources/drafts/types/DraftPreview.d.ts +7 -0
  105. package/dist/api/resources/drafts/types/DraftPreview.js +5 -0
  106. package/dist/api/resources/drafts/types/DraftReferences.d.ts +7 -0
  107. package/dist/api/resources/drafts/types/DraftReferences.js +5 -0
  108. package/dist/api/resources/drafts/types/DraftSubject.d.ts +7 -0
  109. package/dist/api/resources/drafts/types/DraftSubject.js +5 -0
  110. package/dist/api/resources/drafts/types/DraftText.d.ts +7 -0
  111. package/dist/api/resources/drafts/types/DraftText.js +5 -0
  112. package/dist/api/resources/drafts/types/DraftTo.d.ts +7 -0
  113. package/dist/api/resources/drafts/types/DraftTo.js +5 -0
  114. package/dist/api/resources/drafts/types/DraftUpdatedAt.d.ts +7 -0
  115. package/dist/api/resources/drafts/types/DraftUpdatedAt.js +5 -0
  116. package/dist/api/resources/drafts/types/ListDraftsResponse.d.ts +51 -0
  117. package/dist/api/resources/drafts/types/ListDraftsResponse.js +5 -0
  118. package/dist/api/resources/drafts/types/index.d.ts +18 -0
  119. package/dist/api/resources/drafts/types/index.js +34 -0
  120. package/dist/api/resources/inboxes/client/Client.js +8 -3
  121. package/dist/api/resources/inboxes/types/Inbox.d.ts +0 -4
  122. package/dist/api/resources/inboxes/types/ListInboxesResponse.d.ts +2 -3
  123. package/dist/api/resources/index.d.ts +3 -0
  124. package/dist/api/resources/index.js +4 -1
  125. package/dist/api/resources/messages/client/Client.js +18 -5
  126. package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +6 -4
  127. package/dist/api/resources/messages/types/Message.d.ts +4 -8
  128. package/dist/api/resources/messages/types/MessageItem.d.ts +3 -0
  129. package/dist/api/resources/messages/types/SendAttachment.d.ts +1 -1
  130. package/dist/api/resources/messages/types/index.d.ts +4 -5
  131. package/dist/api/resources/messages/types/index.js +4 -5
  132. package/dist/api/resources/threads/client/Client.js +6 -2
  133. package/dist/api/resources/threads/types/ListThreadsResponse.d.ts +4 -2
  134. package/dist/api/resources/threads/types/Thread.d.ts +2 -5
  135. package/dist/api/resources/threads/types/ThreadItem.d.ts +1 -0
  136. package/dist/api/resources/threads/types/index.d.ts +1 -1
  137. package/dist/api/resources/threads/types/index.js +1 -1
  138. package/dist/api/resources/webhooks/client/Client.js +10 -4
  139. package/dist/api/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  140. package/dist/serialization/resources/drafts/index.d.ts +1 -0
  141. package/dist/serialization/resources/drafts/index.js +17 -0
  142. package/dist/serialization/resources/drafts/types/Draft.d.ts +45 -0
  143. package/dist/serialization/resources/drafts/types/Draft.js +76 -0
  144. package/dist/serialization/resources/drafts/types/DraftAttachments.d.ts +11 -0
  145. package/dist/serialization/resources/drafts/types/DraftAttachments.js +42 -0
  146. package/dist/serialization/resources/drafts/types/DraftBcc.d.ts +10 -0
  147. package/dist/serialization/resources/drafts/types/DraftBcc.js +41 -0
  148. package/dist/serialization/resources/drafts/types/DraftCc.d.ts +10 -0
  149. package/dist/serialization/resources/drafts/types/DraftCc.js +41 -0
  150. package/dist/serialization/resources/{messages/types/MessageReplyTo.d.ts → drafts/types/DraftCreatedAt.d.ts} +2 -2
  151. package/dist/serialization/resources/{messages/types/MessageReplyTo.js → drafts/types/DraftCreatedAt.js} +2 -2
  152. package/{serialization/resources/messages/types/MessageReplyTo.d.ts → dist/serialization/resources/drafts/types/DraftEventId.d.ts} +2 -2
  153. package/{serialization/resources/messages/types/MessageReplyTo.js → dist/serialization/resources/drafts/types/DraftEventId.js} +2 -2
  154. package/dist/serialization/resources/drafts/types/DraftHtml.d.ts +10 -0
  155. package/dist/serialization/resources/drafts/types/DraftHtml.js +41 -0
  156. package/dist/serialization/resources/drafts/types/DraftId.d.ts +10 -0
  157. package/dist/serialization/resources/drafts/types/DraftId.js +41 -0
  158. package/dist/serialization/resources/drafts/types/DraftInReplyTo.d.ts +10 -0
  159. package/dist/serialization/resources/drafts/types/DraftInReplyTo.js +41 -0
  160. package/dist/serialization/resources/drafts/types/DraftItem.d.ts +41 -0
  161. package/dist/serialization/resources/drafts/types/DraftItem.js +72 -0
  162. package/dist/serialization/resources/drafts/types/DraftLabels.d.ts +10 -0
  163. package/dist/serialization/resources/drafts/types/DraftLabels.js +41 -0
  164. package/dist/serialization/resources/drafts/types/DraftPreview.d.ts +10 -0
  165. package/dist/serialization/resources/drafts/types/DraftPreview.js +41 -0
  166. package/dist/serialization/resources/drafts/types/DraftReferences.d.ts +10 -0
  167. package/dist/serialization/resources/drafts/types/DraftReferences.js +41 -0
  168. package/dist/serialization/resources/drafts/types/DraftSubject.d.ts +10 -0
  169. package/dist/serialization/resources/drafts/types/DraftSubject.js +41 -0
  170. package/dist/serialization/resources/drafts/types/DraftText.d.ts +10 -0
  171. package/dist/serialization/resources/drafts/types/DraftText.js +41 -0
  172. package/dist/serialization/resources/drafts/types/DraftTo.d.ts +10 -0
  173. package/dist/serialization/resources/drafts/types/DraftTo.js +41 -0
  174. package/dist/serialization/resources/drafts/types/DraftUpdatedAt.d.ts +10 -0
  175. package/dist/serialization/resources/drafts/types/DraftUpdatedAt.js +41 -0
  176. package/dist/serialization/resources/drafts/types/ListDraftsResponse.d.ts +19 -0
  177. package/dist/serialization/resources/drafts/types/ListDraftsResponse.js +50 -0
  178. package/dist/serialization/resources/drafts/types/index.d.ts +18 -0
  179. package/dist/serialization/resources/drafts/types/index.js +34 -0
  180. package/dist/serialization/resources/inboxes/types/Inbox.d.ts +0 -1
  181. package/dist/serialization/resources/inboxes/types/Inbox.js +0 -1
  182. package/dist/serialization/resources/inboxes/types/ListInboxesResponse.d.ts +2 -2
  183. package/dist/serialization/resources/inboxes/types/ListInboxesResponse.js +2 -2
  184. package/dist/serialization/resources/index.d.ts +2 -0
  185. package/dist/serialization/resources/index.js +3 -1
  186. package/dist/serialization/resources/messages/types/ListMessagesResponse.d.ts +2 -2
  187. package/dist/serialization/resources/messages/types/ListMessagesResponse.js +2 -2
  188. package/dist/serialization/resources/messages/types/Message.d.ts +6 -10
  189. package/dist/serialization/resources/messages/types/Message.js +6 -10
  190. package/dist/serialization/resources/messages/types/MessageItem.d.ts +6 -0
  191. package/dist/serialization/resources/messages/types/MessageItem.js +6 -0
  192. package/dist/serialization/resources/messages/types/SendAttachment.d.ts +1 -1
  193. package/dist/serialization/resources/messages/types/SendAttachment.js +1 -1
  194. package/dist/serialization/resources/messages/types/index.d.ts +4 -5
  195. package/dist/serialization/resources/messages/types/index.js +4 -5
  196. package/dist/serialization/resources/threads/types/ListThreadsResponse.d.ts +2 -2
  197. package/dist/serialization/resources/threads/types/ListThreadsResponse.js +2 -2
  198. package/dist/serialization/resources/threads/types/Thread.d.ts +2 -4
  199. package/dist/serialization/resources/threads/types/Thread.js +2 -4
  200. package/dist/serialization/resources/threads/types/ThreadItem.d.ts +2 -0
  201. package/dist/serialization/resources/threads/types/ThreadItem.js +2 -0
  202. package/dist/serialization/resources/threads/types/index.d.ts +1 -1
  203. package/dist/serialization/resources/threads/types/index.js +1 -1
  204. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  205. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +2 -2
  206. package/dist/version.d.ts +1 -1
  207. package/dist/version.js +1 -1
  208. package/package.json +1 -1
  209. package/reference.md +116 -0
  210. package/serialization/resources/drafts/index.d.ts +1 -0
  211. package/serialization/resources/drafts/index.js +17 -0
  212. package/serialization/resources/drafts/types/Draft.d.ts +45 -0
  213. package/serialization/resources/drafts/types/Draft.js +76 -0
  214. package/serialization/resources/drafts/types/DraftAttachments.d.ts +11 -0
  215. package/serialization/resources/drafts/types/DraftAttachments.js +42 -0
  216. package/serialization/resources/drafts/types/DraftBcc.d.ts +10 -0
  217. package/serialization/resources/drafts/types/DraftBcc.js +41 -0
  218. package/serialization/resources/drafts/types/DraftCc.d.ts +10 -0
  219. package/serialization/resources/drafts/types/DraftCc.js +41 -0
  220. package/serialization/resources/drafts/types/DraftCreatedAt.d.ts +10 -0
  221. package/serialization/resources/drafts/types/DraftCreatedAt.js +41 -0
  222. package/serialization/resources/drafts/types/DraftEventId.d.ts +10 -0
  223. package/serialization/resources/drafts/types/DraftEventId.js +41 -0
  224. package/serialization/resources/drafts/types/DraftHtml.d.ts +10 -0
  225. package/serialization/resources/drafts/types/DraftHtml.js +41 -0
  226. package/serialization/resources/drafts/types/DraftId.d.ts +10 -0
  227. package/serialization/resources/drafts/types/DraftId.js +41 -0
  228. package/serialization/resources/drafts/types/DraftInReplyTo.d.ts +10 -0
  229. package/serialization/resources/drafts/types/DraftInReplyTo.js +41 -0
  230. package/serialization/resources/drafts/types/DraftItem.d.ts +41 -0
  231. package/serialization/resources/drafts/types/DraftItem.js +72 -0
  232. package/serialization/resources/drafts/types/DraftLabels.d.ts +10 -0
  233. package/serialization/resources/drafts/types/DraftLabels.js +41 -0
  234. package/serialization/resources/drafts/types/DraftPreview.d.ts +10 -0
  235. package/serialization/resources/drafts/types/DraftPreview.js +41 -0
  236. package/serialization/resources/drafts/types/DraftReferences.d.ts +10 -0
  237. package/serialization/resources/drafts/types/DraftReferences.js +41 -0
  238. package/serialization/resources/drafts/types/DraftSubject.d.ts +10 -0
  239. package/serialization/resources/drafts/types/DraftSubject.js +41 -0
  240. package/serialization/resources/drafts/types/DraftText.d.ts +10 -0
  241. package/serialization/resources/drafts/types/DraftText.js +41 -0
  242. package/serialization/resources/drafts/types/DraftTo.d.ts +10 -0
  243. package/serialization/resources/drafts/types/DraftTo.js +41 -0
  244. package/serialization/resources/drafts/types/DraftUpdatedAt.d.ts +10 -0
  245. package/serialization/resources/drafts/types/DraftUpdatedAt.js +41 -0
  246. package/serialization/resources/drafts/types/ListDraftsResponse.d.ts +19 -0
  247. package/serialization/resources/drafts/types/ListDraftsResponse.js +50 -0
  248. package/serialization/resources/drafts/types/index.d.ts +18 -0
  249. package/serialization/resources/drafts/types/index.js +34 -0
  250. package/serialization/resources/inboxes/types/Inbox.d.ts +0 -1
  251. package/serialization/resources/inboxes/types/Inbox.js +0 -1
  252. package/serialization/resources/inboxes/types/ListInboxesResponse.d.ts +2 -2
  253. package/serialization/resources/inboxes/types/ListInboxesResponse.js +2 -2
  254. package/serialization/resources/index.d.ts +2 -0
  255. package/serialization/resources/index.js +3 -1
  256. package/serialization/resources/messages/types/ListMessagesResponse.d.ts +2 -2
  257. package/serialization/resources/messages/types/ListMessagesResponse.js +2 -2
  258. package/serialization/resources/messages/types/Message.d.ts +6 -10
  259. package/serialization/resources/messages/types/Message.js +6 -10
  260. package/serialization/resources/messages/types/MessageItem.d.ts +6 -0
  261. package/serialization/resources/messages/types/MessageItem.js +6 -0
  262. package/serialization/resources/messages/types/SendAttachment.d.ts +1 -1
  263. package/serialization/resources/messages/types/SendAttachment.js +1 -1
  264. package/serialization/resources/messages/types/index.d.ts +4 -5
  265. package/serialization/resources/messages/types/index.js +4 -5
  266. package/serialization/resources/threads/types/ListThreadsResponse.d.ts +2 -2
  267. package/serialization/resources/threads/types/ListThreadsResponse.js +2 -2
  268. package/serialization/resources/threads/types/Thread.d.ts +2 -4
  269. package/serialization/resources/threads/types/Thread.js +2 -4
  270. package/serialization/resources/threads/types/ThreadItem.d.ts +2 -0
  271. package/serialization/resources/threads/types/ThreadItem.js +2 -0
  272. package/serialization/resources/threads/types/index.d.ts +1 -1
  273. package/serialization/resources/threads/types/index.js +1 -1
  274. package/serialization/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  275. package/serialization/resources/webhooks/types/ListWebhooksResponse.js +2 -2
  276. package/version.d.ts +1 -1
  277. package/version.js +1 -1
  278. package/api/resources/messages/types/MessageReplyTo.d.ts +0 -7
  279. package/dist/api/resources/messages/types/MessageReplyTo.d.ts +0 -7
  280. /package/api/resources/{messages/types/MessageReplyTo.js → drafts/client/requests/ListDraftsRequest.js} +0 -0
  281. /package/{dist/api/resources/messages/types/MessageReplyTo.js → api/resources/drafts/types/Draft.js} +0 -0
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DraftPreview = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftPreview = core.serialization.string();
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DraftReferences: core.serialization.Schema<serializers.DraftReferences.Raw, AgentMail.DraftReferences>;
8
+ export declare namespace DraftReferences {
9
+ type Raw = string[];
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DraftReferences = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftReferences = core.serialization.list(core.serialization.string());
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DraftSubject: core.serialization.Schema<serializers.DraftSubject.Raw, AgentMail.DraftSubject>;
8
+ export declare namespace DraftSubject {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DraftSubject = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftSubject = core.serialization.string();
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DraftText: core.serialization.Schema<serializers.DraftText.Raw, AgentMail.DraftText>;
8
+ export declare namespace DraftText {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DraftText = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftText = core.serialization.string();
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DraftTo: core.serialization.Schema<serializers.DraftTo.Raw, AgentMail.DraftTo>;
8
+ export declare namespace DraftTo {
9
+ type Raw = string[];
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DraftTo = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftTo = core.serialization.list(core.serialization.string());
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DraftUpdatedAt: core.serialization.Schema<serializers.DraftUpdatedAt.Raw, AgentMail.DraftUpdatedAt>;
8
+ export declare namespace DraftUpdatedAt {
9
+ type Raw = string;
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.DraftUpdatedAt = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.DraftUpdatedAt = core.serialization.date();
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as AgentMail from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { Count } from "../../../types/Count";
8
+ import { Limit } from "../../../types/Limit";
9
+ import { LastKey } from "../../../types/LastKey";
10
+ import { DraftItem } from "./DraftItem";
11
+ export declare const ListDraftsResponse: core.serialization.ObjectSchema<serializers.ListDraftsResponse.Raw, AgentMail.ListDraftsResponse>;
12
+ export declare namespace ListDraftsResponse {
13
+ interface Raw {
14
+ count: Count.Raw;
15
+ limit?: Limit.Raw | null;
16
+ last_key?: LastKey.Raw | null;
17
+ drafts: DraftItem.Raw[];
18
+ }
19
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ListDraftsResponse = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Count_1 = require("../../../types/Count");
42
+ const Limit_1 = require("../../../types/Limit");
43
+ const LastKey_1 = require("../../../types/LastKey");
44
+ const DraftItem_1 = require("./DraftItem");
45
+ exports.ListDraftsResponse = core.serialization.object({
46
+ count: Count_1.Count,
47
+ limit: Limit_1.Limit.optional(),
48
+ lastKey: core.serialization.property("last_key", LastKey_1.LastKey.optional()),
49
+ drafts: core.serialization.list(DraftItem_1.DraftItem),
50
+ });
@@ -0,0 +1,18 @@
1
+ export * from "./DraftId";
2
+ export * from "./DraftEventId";
3
+ export * from "./DraftLabels";
4
+ export * from "./DraftUpdatedAt";
5
+ export * from "./DraftCreatedAt";
6
+ export * from "./DraftTo";
7
+ export * from "./DraftCc";
8
+ export * from "./DraftBcc";
9
+ export * from "./DraftSubject";
10
+ export * from "./DraftPreview";
11
+ export * from "./DraftText";
12
+ export * from "./DraftHtml";
13
+ export * from "./DraftAttachments";
14
+ export * from "./DraftInReplyTo";
15
+ export * from "./DraftReferences";
16
+ export * from "./DraftItem";
17
+ export * from "./Draft";
18
+ export * from "./ListDraftsResponse";
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./DraftId"), exports);
18
+ __exportStar(require("./DraftEventId"), exports);
19
+ __exportStar(require("./DraftLabels"), exports);
20
+ __exportStar(require("./DraftUpdatedAt"), exports);
21
+ __exportStar(require("./DraftCreatedAt"), exports);
22
+ __exportStar(require("./DraftTo"), exports);
23
+ __exportStar(require("./DraftCc"), exports);
24
+ __exportStar(require("./DraftBcc"), exports);
25
+ __exportStar(require("./DraftSubject"), exports);
26
+ __exportStar(require("./DraftPreview"), exports);
27
+ __exportStar(require("./DraftText"), exports);
28
+ __exportStar(require("./DraftHtml"), exports);
29
+ __exportStar(require("./DraftAttachments"), exports);
30
+ __exportStar(require("./DraftInReplyTo"), exports);
31
+ __exportStar(require("./DraftReferences"), exports);
32
+ __exportStar(require("./DraftItem"), exports);
33
+ __exportStar(require("./Draft"), exports);
34
+ __exportStar(require("./ListDraftsResponse"), exports);
@@ -10,7 +10,6 @@ export declare const Inbox: core.serialization.ObjectSchema<serializers.Inbox.Ra
10
10
  export declare namespace Inbox {
11
11
  interface Raw {
12
12
  inbox_id: InboxId.Raw;
13
- organization_id: string;
14
13
  display_name?: DisplayName.Raw | null;
15
14
  created_at: string;
16
15
  }
@@ -42,7 +42,6 @@ const InboxId_1 = require("./InboxId");
42
42
  const DisplayName_1 = require("./DisplayName");
43
43
  exports.Inbox = core.serialization.object({
44
44
  inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
45
- organizationId: core.serialization.property("organization_id", core.serialization.string()),
46
45
  displayName: core.serialization.property("display_name", DisplayName_1.DisplayName.optional()),
47
46
  createdAt: core.serialization.property("created_at", core.serialization.date()),
48
47
  });
@@ -4,16 +4,16 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { Inbox } from "./Inbox";
8
7
  import { Count } from "../../../types/Count";
9
8
  import { Limit } from "../../../types/Limit";
10
9
  import { LastKey } from "../../../types/LastKey";
10
+ import { Inbox } from "./Inbox";
11
11
  export declare const ListInboxesResponse: core.serialization.ObjectSchema<serializers.ListInboxesResponse.Raw, AgentMail.ListInboxesResponse>;
12
12
  export declare namespace ListInboxesResponse {
13
13
  interface Raw {
14
- inboxes: Inbox.Raw[];
15
14
  count: Count.Raw;
16
15
  limit?: Limit.Raw | null;
17
16
  last_key?: LastKey.Raw | null;
17
+ inboxes: Inbox.Raw[];
18
18
  }
19
19
  }
@@ -38,13 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ListInboxesResponse = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const Inbox_1 = require("./Inbox");
42
41
  const Count_1 = require("../../../types/Count");
43
42
  const Limit_1 = require("../../../types/Limit");
44
43
  const LastKey_1 = require("../../../types/LastKey");
44
+ const Inbox_1 = require("./Inbox");
45
45
  exports.ListInboxesResponse = core.serialization.object({
46
- inboxes: core.serialization.list(Inbox_1.Inbox),
47
46
  count: Count_1.Count,
48
47
  limit: Limit_1.Limit.optional(),
49
48
  lastKey: core.serialization.property("last_key", LastKey_1.LastKey.optional()),
49
+ inboxes: core.serialization.list(Inbox_1.Inbox),
50
50
  });
@@ -1,3 +1,5 @@
1
+ export * as drafts from "./drafts";
2
+ export * from "./drafts/types";
1
3
  export * as inboxes from "./inboxes";
2
4
  export * from "./inboxes/types";
3
5
  export * as messages from "./messages";
@@ -36,7 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.webhooks = exports.threads = exports.messages = exports.inboxes = void 0;
39
+ exports.webhooks = exports.threads = exports.messages = exports.inboxes = exports.drafts = void 0;
40
+ exports.drafts = __importStar(require("./drafts"));
41
+ __exportStar(require("./drafts/types"), exports);
40
42
  exports.inboxes = __importStar(require("./inboxes"));
41
43
  __exportStar(require("./inboxes/types"), exports);
42
44
  exports.messages = __importStar(require("./messages"));
@@ -4,16 +4,16 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { MessageItem } from "./MessageItem";
8
7
  import { Count } from "../../../types/Count";
9
8
  import { Limit } from "../../../types/Limit";
10
9
  import { LastKey } from "../../../types/LastKey";
10
+ import { MessageItem } from "./MessageItem";
11
11
  export declare const ListMessagesResponse: core.serialization.ObjectSchema<serializers.ListMessagesResponse.Raw, AgentMail.ListMessagesResponse>;
12
12
  export declare namespace ListMessagesResponse {
13
13
  interface Raw {
14
- messages: MessageItem.Raw[];
15
14
  count: Count.Raw;
16
15
  limit?: Limit.Raw | null;
17
16
  last_key?: LastKey.Raw | null;
17
+ messages: MessageItem.Raw[];
18
18
  }
19
19
  }
@@ -38,13 +38,13 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ListMessagesResponse = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const MessageItem_1 = require("./MessageItem");
42
41
  const Count_1 = require("../../../types/Count");
43
42
  const Limit_1 = require("../../../types/Limit");
44
43
  const LastKey_1 = require("../../../types/LastKey");
44
+ const MessageItem_1 = require("./MessageItem");
45
45
  exports.ListMessagesResponse = core.serialization.object({
46
- messages: core.serialization.list(MessageItem_1.MessageItem),
47
46
  count: Count_1.Count,
48
47
  limit: Limit_1.Limit.optional(),
49
48
  lastKey: core.serialization.property("last_key", LastKey_1.LastKey.optional()),
49
+ messages: core.serialization.list(MessageItem_1.MessageItem),
50
50
  });
@@ -4,46 +4,42 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { InboxId } from "../../inboxes/types/InboxId";
7
8
  import { ThreadId } from "../../threads/types/ThreadId";
8
9
  import { MessageId } from "./MessageId";
9
10
  import { MessageEventId } from "./MessageEventId";
10
11
  import { MessageLabels } from "./MessageLabels";
11
12
  import { MessageTimestamp } from "./MessageTimestamp";
12
13
  import { MessageFrom } from "./MessageFrom";
13
- import { MessageReplyTo } from "./MessageReplyTo";
14
- import { MessageSubject } from "./MessageSubject";
15
- import { MessagePreview } from "./MessagePreview";
16
14
  import { MessageTo } from "./MessageTo";
17
15
  import { MessageCc } from "./MessageCc";
18
16
  import { MessageBcc } from "./MessageBcc";
17
+ import { MessageSubject } from "./MessageSubject";
18
+ import { MessagePreview } from "./MessagePreview";
19
19
  import { MessageText } from "./MessageText";
20
20
  import { MessageHtml } from "./MessageHtml";
21
21
  import { MessageAttachments } from "./MessageAttachments";
22
22
  import { MessageInReplyTo } from "./MessageInReplyTo";
23
23
  import { MessageReferences } from "./MessageReferences";
24
- import { InboxId } from "../../inboxes/types/InboxId";
25
- import { OrganizationId } from "../../../types/OrganizationId";
26
24
  export declare const Message: core.serialization.ObjectSchema<serializers.Message.Raw, AgentMail.Message>;
27
25
  export declare namespace Message {
28
26
  interface Raw {
27
+ inbox_id: InboxId.Raw;
29
28
  thread_id: ThreadId.Raw;
30
29
  message_id: MessageId.Raw;
31
30
  event_id: MessageEventId.Raw;
32
31
  labels: MessageLabels.Raw;
33
32
  timestamp: MessageTimestamp.Raw;
34
33
  from: MessageFrom.Raw;
35
- reply_to?: MessageReplyTo.Raw | null;
36
- subject?: MessageSubject.Raw | null;
37
- preview?: MessagePreview.Raw | null;
38
34
  to: MessageTo.Raw;
39
35
  cc?: MessageCc.Raw | null;
40
36
  bcc?: MessageBcc.Raw | null;
37
+ subject?: MessageSubject.Raw | null;
38
+ preview?: MessagePreview.Raw | null;
41
39
  text?: MessageText.Raw | null;
42
40
  html?: MessageHtml.Raw | null;
43
41
  attachments?: MessageAttachments.Raw | null;
44
42
  in_reply_to?: MessageInReplyTo.Raw | null;
45
43
  references?: MessageReferences.Raw | null;
46
- inbox_id: InboxId.Raw;
47
- organization_id: OrganizationId.Raw;
48
44
  }
49
45
  }
@@ -38,43 +38,39 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Message = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
+ const InboxId_1 = require("../../inboxes/types/InboxId");
41
42
  const ThreadId_1 = require("../../threads/types/ThreadId");
42
43
  const MessageId_1 = require("./MessageId");
43
44
  const MessageEventId_1 = require("./MessageEventId");
44
45
  const MessageLabels_1 = require("./MessageLabels");
45
46
  const MessageTimestamp_1 = require("./MessageTimestamp");
46
47
  const MessageFrom_1 = require("./MessageFrom");
47
- const MessageReplyTo_1 = require("./MessageReplyTo");
48
- const MessageSubject_1 = require("./MessageSubject");
49
- const MessagePreview_1 = require("./MessagePreview");
50
48
  const MessageTo_1 = require("./MessageTo");
51
49
  const MessageCc_1 = require("./MessageCc");
52
50
  const MessageBcc_1 = require("./MessageBcc");
51
+ const MessageSubject_1 = require("./MessageSubject");
52
+ const MessagePreview_1 = require("./MessagePreview");
53
53
  const MessageText_1 = require("./MessageText");
54
54
  const MessageHtml_1 = require("./MessageHtml");
55
55
  const MessageAttachments_1 = require("./MessageAttachments");
56
56
  const MessageInReplyTo_1 = require("./MessageInReplyTo");
57
57
  const MessageReferences_1 = require("./MessageReferences");
58
- const InboxId_1 = require("../../inboxes/types/InboxId");
59
- const OrganizationId_1 = require("../../../types/OrganizationId");
60
58
  exports.Message = core.serialization.object({
59
+ inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
61
60
  threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
62
61
  messageId: core.serialization.property("message_id", MessageId_1.MessageId),
63
62
  eventId: core.serialization.property("event_id", MessageEventId_1.MessageEventId),
64
63
  labels: MessageLabels_1.MessageLabels,
65
64
  timestamp: MessageTimestamp_1.MessageTimestamp,
66
65
  from: MessageFrom_1.MessageFrom,
67
- replyTo: core.serialization.property("reply_to", MessageReplyTo_1.MessageReplyTo.optional()),
68
- subject: MessageSubject_1.MessageSubject.optional(),
69
- preview: MessagePreview_1.MessagePreview.optional(),
70
66
  to: MessageTo_1.MessageTo,
71
67
  cc: MessageCc_1.MessageCc.optional(),
72
68
  bcc: MessageBcc_1.MessageBcc.optional(),
69
+ subject: MessageSubject_1.MessageSubject.optional(),
70
+ preview: MessagePreview_1.MessagePreview.optional(),
73
71
  text: MessageText_1.MessageText.optional(),
74
72
  html: MessageHtml_1.MessageHtml.optional(),
75
73
  attachments: MessageAttachments_1.MessageAttachments.optional(),
76
74
  inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo.optional()),
77
75
  references: MessageReferences_1.MessageReferences.optional(),
78
- inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
79
- organizationId: core.serialization.property("organization_id", OrganizationId_1.OrganizationId),
80
76
  });