agentmail 0.0.25 → 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 (249) 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 +3 -3
  51. package/api/resources/inboxes/types/ListInboxesResponse.d.ts +2 -2
  52. package/api/resources/index.d.ts +3 -0
  53. package/api/resources/index.js +4 -1
  54. package/api/resources/messages/client/Client.js +5 -5
  55. package/api/resources/messages/types/ListMessagesResponse.d.ts +2 -2
  56. package/api/resources/messages/types/Message.d.ts +2 -4
  57. package/api/resources/messages/types/MessageItem.d.ts +2 -0
  58. package/api/resources/messages/types/index.d.ts +4 -5
  59. package/api/resources/messages/types/index.js +4 -5
  60. package/api/resources/threads/client/Client.js +2 -2
  61. package/api/resources/threads/types/ListThreadsResponse.d.ts +2 -2
  62. package/api/resources/webhooks/client/Client.js +4 -4
  63. package/api/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  64. package/dist/Client.d.ts +3 -0
  65. package/dist/Client.js +7 -2
  66. package/dist/api/resources/drafts/client/Client.d.ts +53 -0
  67. package/dist/api/resources/drafts/client/Client.js +218 -0
  68. package/dist/api/resources/drafts/client/index.d.ts +1 -0
  69. package/dist/api/resources/drafts/client/index.js +17 -0
  70. package/dist/api/resources/drafts/client/requests/ListDraftsRequest.d.ts +15 -0
  71. package/dist/api/resources/drafts/client/requests/ListDraftsRequest.js +5 -0
  72. package/dist/api/resources/drafts/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/drafts/client/requests/index.js +2 -0
  74. package/dist/api/resources/drafts/index.d.ts +2 -0
  75. package/dist/api/resources/drafts/index.js +18 -0
  76. package/dist/api/resources/drafts/types/Draft.d.ts +51 -0
  77. package/dist/api/resources/drafts/types/Draft.js +5 -0
  78. package/dist/api/resources/drafts/types/DraftAttachments.d.ts +8 -0
  79. package/dist/api/resources/drafts/types/DraftAttachments.js +5 -0
  80. package/dist/api/resources/drafts/types/DraftBcc.d.ts +7 -0
  81. package/dist/api/resources/drafts/types/DraftBcc.js +5 -0
  82. package/dist/api/resources/drafts/types/DraftCc.d.ts +7 -0
  83. package/dist/api/resources/drafts/types/DraftCc.js +5 -0
  84. package/dist/api/resources/drafts/types/DraftCreatedAt.d.ts +7 -0
  85. package/dist/api/resources/drafts/types/DraftCreatedAt.js +5 -0
  86. package/dist/api/resources/drafts/types/DraftEventId.d.ts +7 -0
  87. package/dist/api/resources/drafts/types/DraftEventId.js +5 -0
  88. package/dist/api/resources/drafts/types/DraftHtml.d.ts +7 -0
  89. package/dist/api/resources/drafts/types/DraftHtml.js +5 -0
  90. package/dist/api/resources/drafts/types/DraftId.d.ts +7 -0
  91. package/dist/api/resources/drafts/types/DraftId.js +5 -0
  92. package/dist/api/resources/drafts/types/DraftInReplyTo.d.ts +7 -0
  93. package/dist/api/resources/drafts/types/DraftInReplyTo.js +5 -0
  94. package/dist/api/resources/drafts/types/DraftItem.d.ts +21 -0
  95. package/dist/api/resources/drafts/types/DraftItem.js +5 -0
  96. package/dist/api/resources/drafts/types/DraftLabels.d.ts +7 -0
  97. package/dist/api/resources/drafts/types/DraftLabels.js +5 -0
  98. package/dist/api/resources/drafts/types/DraftPreview.d.ts +7 -0
  99. package/dist/api/resources/drafts/types/DraftPreview.js +5 -0
  100. package/dist/api/resources/drafts/types/DraftReferences.d.ts +7 -0
  101. package/dist/api/resources/drafts/types/DraftReferences.js +5 -0
  102. package/dist/api/resources/drafts/types/DraftSubject.d.ts +7 -0
  103. package/dist/api/resources/drafts/types/DraftSubject.js +5 -0
  104. package/dist/api/resources/drafts/types/DraftText.d.ts +7 -0
  105. package/dist/api/resources/drafts/types/DraftText.js +5 -0
  106. package/dist/api/resources/drafts/types/DraftTo.d.ts +7 -0
  107. package/dist/api/resources/drafts/types/DraftTo.js +5 -0
  108. package/dist/api/resources/drafts/types/DraftUpdatedAt.d.ts +7 -0
  109. package/dist/api/resources/drafts/types/DraftUpdatedAt.js +5 -0
  110. package/dist/api/resources/drafts/types/ListDraftsResponse.d.ts +51 -0
  111. package/dist/api/resources/drafts/types/ListDraftsResponse.js +5 -0
  112. package/dist/api/resources/drafts/types/index.d.ts +18 -0
  113. package/dist/api/resources/drafts/types/index.js +34 -0
  114. package/dist/api/resources/inboxes/client/Client.js +3 -3
  115. package/dist/api/resources/inboxes/types/ListInboxesResponse.d.ts +2 -2
  116. package/dist/api/resources/index.d.ts +3 -0
  117. package/dist/api/resources/index.js +4 -1
  118. package/dist/api/resources/messages/client/Client.js +5 -5
  119. package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +2 -2
  120. package/dist/api/resources/messages/types/Message.d.ts +2 -4
  121. package/dist/api/resources/messages/types/MessageItem.d.ts +2 -0
  122. package/dist/api/resources/messages/types/index.d.ts +4 -5
  123. package/dist/api/resources/messages/types/index.js +4 -5
  124. package/dist/api/resources/threads/client/Client.js +2 -2
  125. package/dist/api/resources/threads/types/ListThreadsResponse.d.ts +2 -2
  126. package/dist/api/resources/webhooks/client/Client.js +4 -4
  127. package/dist/api/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  128. package/dist/serialization/resources/drafts/index.d.ts +1 -0
  129. package/dist/serialization/resources/drafts/index.js +17 -0
  130. package/dist/serialization/resources/drafts/types/Draft.d.ts +45 -0
  131. package/dist/serialization/resources/drafts/types/Draft.js +76 -0
  132. package/dist/serialization/resources/drafts/types/DraftAttachments.d.ts +11 -0
  133. package/dist/serialization/resources/drafts/types/DraftAttachments.js +42 -0
  134. package/dist/serialization/resources/drafts/types/DraftBcc.d.ts +10 -0
  135. package/dist/serialization/resources/drafts/types/DraftBcc.js +41 -0
  136. package/dist/serialization/resources/drafts/types/DraftCc.d.ts +10 -0
  137. package/dist/serialization/resources/drafts/types/DraftCc.js +41 -0
  138. package/dist/serialization/resources/{messages/types/MessageReplyTo.d.ts → drafts/types/DraftCreatedAt.d.ts} +2 -2
  139. package/dist/serialization/resources/{messages/types/MessageReplyTo.js → drafts/types/DraftCreatedAt.js} +2 -2
  140. package/{serialization/resources/messages/types/MessageReplyTo.d.ts → dist/serialization/resources/drafts/types/DraftEventId.d.ts} +2 -2
  141. package/{serialization/resources/messages/types/MessageReplyTo.js → dist/serialization/resources/drafts/types/DraftEventId.js} +2 -2
  142. package/dist/serialization/resources/drafts/types/DraftHtml.d.ts +10 -0
  143. package/dist/serialization/resources/drafts/types/DraftHtml.js +41 -0
  144. package/dist/serialization/resources/drafts/types/DraftId.d.ts +10 -0
  145. package/dist/serialization/resources/drafts/types/DraftId.js +41 -0
  146. package/dist/serialization/resources/drafts/types/DraftInReplyTo.d.ts +10 -0
  147. package/dist/serialization/resources/drafts/types/DraftInReplyTo.js +41 -0
  148. package/dist/serialization/resources/drafts/types/DraftItem.d.ts +41 -0
  149. package/dist/serialization/resources/drafts/types/DraftItem.js +72 -0
  150. package/dist/serialization/resources/drafts/types/DraftLabels.d.ts +10 -0
  151. package/dist/serialization/resources/drafts/types/DraftLabels.js +41 -0
  152. package/dist/serialization/resources/drafts/types/DraftPreview.d.ts +10 -0
  153. package/dist/serialization/resources/drafts/types/DraftPreview.js +41 -0
  154. package/dist/serialization/resources/drafts/types/DraftReferences.d.ts +10 -0
  155. package/dist/serialization/resources/drafts/types/DraftReferences.js +41 -0
  156. package/dist/serialization/resources/drafts/types/DraftSubject.d.ts +10 -0
  157. package/dist/serialization/resources/drafts/types/DraftSubject.js +41 -0
  158. package/dist/serialization/resources/drafts/types/DraftText.d.ts +10 -0
  159. package/dist/serialization/resources/drafts/types/DraftText.js +41 -0
  160. package/dist/serialization/resources/drafts/types/DraftTo.d.ts +10 -0
  161. package/dist/serialization/resources/drafts/types/DraftTo.js +41 -0
  162. package/dist/serialization/resources/drafts/types/DraftUpdatedAt.d.ts +10 -0
  163. package/dist/serialization/resources/drafts/types/DraftUpdatedAt.js +41 -0
  164. package/dist/serialization/resources/drafts/types/ListDraftsResponse.d.ts +19 -0
  165. package/dist/serialization/resources/drafts/types/ListDraftsResponse.js +50 -0
  166. package/dist/serialization/resources/drafts/types/index.d.ts +18 -0
  167. package/dist/serialization/resources/drafts/types/index.js +34 -0
  168. package/dist/serialization/resources/inboxes/types/ListInboxesResponse.d.ts +2 -2
  169. package/dist/serialization/resources/inboxes/types/ListInboxesResponse.js +2 -2
  170. package/dist/serialization/resources/index.d.ts +2 -0
  171. package/dist/serialization/resources/index.js +3 -1
  172. package/dist/serialization/resources/messages/types/ListMessagesResponse.d.ts +2 -2
  173. package/dist/serialization/resources/messages/types/ListMessagesResponse.js +2 -2
  174. package/dist/serialization/resources/messages/types/Message.d.ts +4 -6
  175. package/dist/serialization/resources/messages/types/Message.js +4 -6
  176. package/dist/serialization/resources/messages/types/MessageItem.d.ts +4 -0
  177. package/dist/serialization/resources/messages/types/MessageItem.js +4 -0
  178. package/dist/serialization/resources/messages/types/index.d.ts +4 -5
  179. package/dist/serialization/resources/messages/types/index.js +4 -5
  180. package/dist/serialization/resources/threads/types/ListThreadsResponse.d.ts +2 -2
  181. package/dist/serialization/resources/threads/types/ListThreadsResponse.js +2 -2
  182. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  183. package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +2 -2
  184. package/dist/version.d.ts +1 -1
  185. package/dist/version.js +1 -1
  186. package/package.json +1 -1
  187. package/reference.md +116 -0
  188. package/serialization/resources/drafts/index.d.ts +1 -0
  189. package/serialization/resources/drafts/index.js +17 -0
  190. package/serialization/resources/drafts/types/Draft.d.ts +45 -0
  191. package/serialization/resources/drafts/types/Draft.js +76 -0
  192. package/serialization/resources/drafts/types/DraftAttachments.d.ts +11 -0
  193. package/serialization/resources/drafts/types/DraftAttachments.js +42 -0
  194. package/serialization/resources/drafts/types/DraftBcc.d.ts +10 -0
  195. package/serialization/resources/drafts/types/DraftBcc.js +41 -0
  196. package/serialization/resources/drafts/types/DraftCc.d.ts +10 -0
  197. package/serialization/resources/drafts/types/DraftCc.js +41 -0
  198. package/serialization/resources/drafts/types/DraftCreatedAt.d.ts +10 -0
  199. package/serialization/resources/drafts/types/DraftCreatedAt.js +41 -0
  200. package/serialization/resources/drafts/types/DraftEventId.d.ts +10 -0
  201. package/serialization/resources/drafts/types/DraftEventId.js +41 -0
  202. package/serialization/resources/drafts/types/DraftHtml.d.ts +10 -0
  203. package/serialization/resources/drafts/types/DraftHtml.js +41 -0
  204. package/serialization/resources/drafts/types/DraftId.d.ts +10 -0
  205. package/serialization/resources/drafts/types/DraftId.js +41 -0
  206. package/serialization/resources/drafts/types/DraftInReplyTo.d.ts +10 -0
  207. package/serialization/resources/drafts/types/DraftInReplyTo.js +41 -0
  208. package/serialization/resources/drafts/types/DraftItem.d.ts +41 -0
  209. package/serialization/resources/drafts/types/DraftItem.js +72 -0
  210. package/serialization/resources/drafts/types/DraftLabels.d.ts +10 -0
  211. package/serialization/resources/drafts/types/DraftLabels.js +41 -0
  212. package/serialization/resources/drafts/types/DraftPreview.d.ts +10 -0
  213. package/serialization/resources/drafts/types/DraftPreview.js +41 -0
  214. package/serialization/resources/drafts/types/DraftReferences.d.ts +10 -0
  215. package/serialization/resources/drafts/types/DraftReferences.js +41 -0
  216. package/serialization/resources/drafts/types/DraftSubject.d.ts +10 -0
  217. package/serialization/resources/drafts/types/DraftSubject.js +41 -0
  218. package/serialization/resources/drafts/types/DraftText.d.ts +10 -0
  219. package/serialization/resources/drafts/types/DraftText.js +41 -0
  220. package/serialization/resources/drafts/types/DraftTo.d.ts +10 -0
  221. package/serialization/resources/drafts/types/DraftTo.js +41 -0
  222. package/serialization/resources/drafts/types/DraftUpdatedAt.d.ts +10 -0
  223. package/serialization/resources/drafts/types/DraftUpdatedAt.js +41 -0
  224. package/serialization/resources/drafts/types/ListDraftsResponse.d.ts +19 -0
  225. package/serialization/resources/drafts/types/ListDraftsResponse.js +50 -0
  226. package/serialization/resources/drafts/types/index.d.ts +18 -0
  227. package/serialization/resources/drafts/types/index.js +34 -0
  228. package/serialization/resources/inboxes/types/ListInboxesResponse.d.ts +2 -2
  229. package/serialization/resources/inboxes/types/ListInboxesResponse.js +2 -2
  230. package/serialization/resources/index.d.ts +2 -0
  231. package/serialization/resources/index.js +3 -1
  232. package/serialization/resources/messages/types/ListMessagesResponse.d.ts +2 -2
  233. package/serialization/resources/messages/types/ListMessagesResponse.js +2 -2
  234. package/serialization/resources/messages/types/Message.d.ts +4 -6
  235. package/serialization/resources/messages/types/Message.js +4 -6
  236. package/serialization/resources/messages/types/MessageItem.d.ts +4 -0
  237. package/serialization/resources/messages/types/MessageItem.js +4 -0
  238. package/serialization/resources/messages/types/index.d.ts +4 -5
  239. package/serialization/resources/messages/types/index.js +4 -5
  240. package/serialization/resources/threads/types/ListThreadsResponse.d.ts +2 -2
  241. package/serialization/resources/threads/types/ListThreadsResponse.js +2 -2
  242. package/serialization/resources/webhooks/types/ListWebhooksResponse.d.ts +2 -2
  243. package/serialization/resources/webhooks/types/ListWebhooksResponse.js +2 -2
  244. package/version.d.ts +1 -1
  245. package/version.js +1 -1
  246. package/api/resources/messages/types/MessageReplyTo.d.ts +0 -7
  247. package/dist/api/resources/messages/types/MessageReplyTo.d.ts +0 -7
  248. /package/api/resources/{messages/types/MessageReplyTo.js → drafts/client/requests/ListDraftsRequest.js} +0 -0
  249. /package/{dist/api/resources/messages/types/MessageReplyTo.js → api/resources/drafts/types/Draft.js} +0 -0
@@ -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
  });
@@ -11,12 +11,11 @@ import { MessageEventId } from "./MessageEventId";
11
11
  import { MessageLabels } from "./MessageLabels";
12
12
  import { MessageTimestamp } from "./MessageTimestamp";
13
13
  import { MessageFrom } from "./MessageFrom";
14
- import { MessageReplyTo } from "./MessageReplyTo";
15
- import { MessageSubject } from "./MessageSubject";
16
- import { MessagePreview } from "./MessagePreview";
17
14
  import { MessageTo } from "./MessageTo";
18
15
  import { MessageCc } from "./MessageCc";
19
16
  import { MessageBcc } from "./MessageBcc";
17
+ import { MessageSubject } from "./MessageSubject";
18
+ import { MessagePreview } from "./MessagePreview";
20
19
  import { MessageText } from "./MessageText";
21
20
  import { MessageHtml } from "./MessageHtml";
22
21
  import { MessageAttachments } from "./MessageAttachments";
@@ -32,12 +31,11 @@ export declare namespace Message {
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;
@@ -45,12 +45,11 @@ const MessageEventId_1 = require("./MessageEventId");
45
45
  const MessageLabels_1 = require("./MessageLabels");
46
46
  const MessageTimestamp_1 = require("./MessageTimestamp");
47
47
  const MessageFrom_1 = require("./MessageFrom");
48
- const MessageReplyTo_1 = require("./MessageReplyTo");
49
- const MessageSubject_1 = require("./MessageSubject");
50
- const MessagePreview_1 = require("./MessagePreview");
51
48
  const MessageTo_1 = require("./MessageTo");
52
49
  const MessageCc_1 = require("./MessageCc");
53
50
  const MessageBcc_1 = require("./MessageBcc");
51
+ const MessageSubject_1 = require("./MessageSubject");
52
+ const MessagePreview_1 = require("./MessagePreview");
54
53
  const MessageText_1 = require("./MessageText");
55
54
  const MessageHtml_1 = require("./MessageHtml");
56
55
  const MessageAttachments_1 = require("./MessageAttachments");
@@ -64,12 +63,11 @@ exports.Message = core.serialization.object({
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(),
@@ -17,6 +17,8 @@ import { MessageBcc } from "./MessageBcc";
17
17
  import { MessageSubject } from "./MessageSubject";
18
18
  import { MessagePreview } from "./MessagePreview";
19
19
  import { MessageAttachments } from "./MessageAttachments";
20
+ import { MessageInReplyTo } from "./MessageInReplyTo";
21
+ import { MessageReferences } from "./MessageReferences";
20
22
  export declare const MessageItem: core.serialization.ObjectSchema<serializers.MessageItem.Raw, AgentMail.MessageItem>;
21
23
  export declare namespace MessageItem {
22
24
  interface Raw {
@@ -33,5 +35,7 @@ export declare namespace MessageItem {
33
35
  subject?: MessageSubject.Raw | null;
34
36
  preview?: MessagePreview.Raw | null;
35
37
  attachments?: MessageAttachments.Raw | null;
38
+ in_reply_to?: MessageInReplyTo.Raw | null;
39
+ references?: MessageReferences.Raw | null;
36
40
  }
37
41
  }
@@ -51,6 +51,8 @@ const MessageBcc_1 = require("./MessageBcc");
51
51
  const MessageSubject_1 = require("./MessageSubject");
52
52
  const MessagePreview_1 = require("./MessagePreview");
53
53
  const MessageAttachments_1 = require("./MessageAttachments");
54
+ const MessageInReplyTo_1 = require("./MessageInReplyTo");
55
+ const MessageReferences_1 = require("./MessageReferences");
54
56
  exports.MessageItem = core.serialization.object({
55
57
  inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
56
58
  threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
@@ -65,4 +67,6 @@ exports.MessageItem = core.serialization.object({
65
67
  subject: MessageSubject_1.MessageSubject.optional(),
66
68
  preview: MessagePreview_1.MessagePreview.optional(),
67
69
  attachments: MessageAttachments_1.MessageAttachments.optional(),
70
+ inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo.optional()),
71
+ references: MessageReferences_1.MessageReferences.optional(),
68
72
  });
@@ -11,18 +11,17 @@ export * from "./MessageEventId";
11
11
  export * from "./MessageLabels";
12
12
  export * from "./MessageTimestamp";
13
13
  export * from "./MessageFrom";
14
- export * from "./MessageReplyTo";
15
- export * from "./MessageSubject";
16
- export * from "./MessagePreview";
17
14
  export * from "./MessageTo";
18
15
  export * from "./MessageCc";
19
16
  export * from "./MessageBcc";
17
+ export * from "./MessageSubject";
18
+ export * from "./MessagePreview";
19
+ export * from "./MessageText";
20
+ export * from "./MessageHtml";
20
21
  export * from "./MessageAttachments";
21
22
  export * from "./MessageInReplyTo";
22
23
  export * from "./MessageReferences";
23
24
  export * from "./MessageItem";
24
- export * from "./MessageText";
25
- export * from "./MessageHtml";
26
25
  export * from "./Message";
27
26
  export * from "./ListMessagesResponse";
28
27
  export * from "./Addresses";
@@ -27,18 +27,17 @@ __exportStar(require("./MessageEventId"), exports);
27
27
  __exportStar(require("./MessageLabels"), exports);
28
28
  __exportStar(require("./MessageTimestamp"), exports);
29
29
  __exportStar(require("./MessageFrom"), exports);
30
- __exportStar(require("./MessageReplyTo"), exports);
31
- __exportStar(require("./MessageSubject"), exports);
32
- __exportStar(require("./MessagePreview"), exports);
33
30
  __exportStar(require("./MessageTo"), exports);
34
31
  __exportStar(require("./MessageCc"), exports);
35
32
  __exportStar(require("./MessageBcc"), exports);
33
+ __exportStar(require("./MessageSubject"), exports);
34
+ __exportStar(require("./MessagePreview"), exports);
35
+ __exportStar(require("./MessageText"), exports);
36
+ __exportStar(require("./MessageHtml"), exports);
36
37
  __exportStar(require("./MessageAttachments"), exports);
37
38
  __exportStar(require("./MessageInReplyTo"), exports);
38
39
  __exportStar(require("./MessageReferences"), exports);
39
40
  __exportStar(require("./MessageItem"), exports);
40
- __exportStar(require("./MessageText"), exports);
41
- __exportStar(require("./MessageHtml"), exports);
42
41
  __exportStar(require("./Message"), exports);
43
42
  __exportStar(require("./ListMessagesResponse"), exports);
44
43
  __exportStar(require("./Addresses"), exports);
@@ -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 { ThreadItem } from "./ThreadItem";
8
7
  import { Count } from "../../../types/Count";
9
8
  import { Limit } from "../../../types/Limit";
10
9
  import { LastKey } from "../../../types/LastKey";
10
+ import { ThreadItem } from "./ThreadItem";
11
11
  export declare const ListThreadsResponse: core.serialization.ObjectSchema<serializers.ListThreadsResponse.Raw, AgentMail.ListThreadsResponse>;
12
12
  export declare namespace ListThreadsResponse {
13
13
  interface Raw {
14
- threads: ThreadItem.Raw[];
15
14
  count: Count.Raw;
16
15
  limit?: Limit.Raw | null;
17
16
  last_key?: LastKey.Raw | null;
17
+ threads: ThreadItem.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.ListThreadsResponse = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const ThreadItem_1 = require("./ThreadItem");
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 ThreadItem_1 = require("./ThreadItem");
45
45
  exports.ListThreadsResponse = core.serialization.object({
46
- threads: core.serialization.list(ThreadItem_1.ThreadItem),
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
+ threads: core.serialization.list(ThreadItem_1.ThreadItem),
50
50
  });
@@ -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 { Webhook } from "./Webhook";
8
7
  import { Count } from "../../../types/Count";
9
8
  import { Limit } from "../../../types/Limit";
10
9
  import { LastKey } from "../../../types/LastKey";
10
+ import { Webhook } from "./Webhook";
11
11
  export declare const ListWebhooksResponse: core.serialization.ObjectSchema<serializers.ListWebhooksResponse.Raw, AgentMail.ListWebhooksResponse>;
12
12
  export declare namespace ListWebhooksResponse {
13
13
  interface Raw {
14
- webhooks: Webhook.Raw[];
15
14
  count: Count.Raw;
16
15
  limit?: Limit.Raw | null;
17
16
  last_key?: LastKey.Raw | null;
17
+ webhooks: Webhook.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.ListWebhooksResponse = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const Webhook_1 = require("./Webhook");
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 Webhook_1 = require("./Webhook");
45
45
  exports.ListWebhooksResponse = core.serialization.object({
46
- webhooks: core.serialization.list(Webhook_1.Webhook),
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
+ webhooks: core.serialization.list(Webhook_1.Webhook),
50
50
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.25";
1
+ export declare const SDK_VERSION = "0.0.26";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.25";
4
+ exports.SDK_VERSION = "0.0.26";
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Address to reply to. In format `username@domain.com` or `Display Name <username@domain.com>`.
6
- */
7
- export type MessageReplyTo = string;
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Address to reply to. In format `username@domain.com` or `Display Name <username@domain.com>`.
6
- */
7
- export type MessageReplyTo = string;