agentmail 0.0.36 → 0.0.38

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 (170) hide show
  1. package/api/resources/attachments/types/SendAttachment.d.ts +1 -1
  2. package/api/resources/contexts/client/Client.js +4 -4
  3. package/api/resources/drafts/client/Client.js +2 -2
  4. package/api/resources/drafts/types/Draft.d.ts +7 -5
  5. package/api/resources/drafts/types/DraftItem.d.ts +1 -5
  6. package/api/resources/drafts/types/index.d.ts +1 -5
  7. package/api/resources/drafts/types/index.js +1 -5
  8. package/api/resources/inboxes/client/Client.js +3 -3
  9. package/api/resources/inboxes/resources/drafts/client/Client.js +4 -4
  10. package/api/resources/inboxes/resources/messages/client/Client.d.ts +2 -0
  11. package/api/resources/inboxes/resources/messages/client/Client.js +8 -6
  12. package/api/resources/inboxes/resources/threads/client/Client.js +3 -3
  13. package/api/resources/messages/types/Message.d.ts +10 -3
  14. package/api/resources/messages/types/MessageItem.d.ts +0 -3
  15. package/api/resources/messages/types/ReplyToMessageRequest.d.ts +1 -0
  16. package/api/resources/messages/types/SendMessageReplyTo.d.ts +8 -0
  17. package/api/resources/messages/types/SendMessageRequest.d.ts +1 -0
  18. package/api/resources/messages/types/index.d.ts +1 -3
  19. package/api/resources/messages/types/index.js +1 -3
  20. package/api/resources/threads/client/Client.js +3 -3
  21. package/api/resources/threads/types/Thread.d.ts +5 -2
  22. package/api/resources/threads/types/ThreadItem.d.ts +1 -2
  23. package/api/resources/threads/types/index.d.ts +1 -2
  24. package/api/resources/threads/types/index.js +1 -2
  25. package/api/resources/webhooks/client/Client.js +4 -4
  26. package/dist/api/resources/attachments/types/SendAttachment.d.ts +1 -1
  27. package/dist/api/resources/contexts/client/Client.js +4 -4
  28. package/dist/api/resources/drafts/client/Client.js +2 -2
  29. package/dist/api/resources/drafts/types/Draft.d.ts +7 -5
  30. package/dist/api/resources/drafts/types/DraftItem.d.ts +1 -5
  31. package/dist/api/resources/drafts/types/index.d.ts +1 -5
  32. package/dist/api/resources/drafts/types/index.js +1 -5
  33. package/dist/api/resources/inboxes/client/Client.js +3 -3
  34. package/dist/api/resources/inboxes/resources/drafts/client/Client.js +4 -4
  35. package/dist/api/resources/inboxes/resources/messages/client/Client.d.ts +2 -0
  36. package/dist/api/resources/inboxes/resources/messages/client/Client.js +8 -6
  37. package/dist/api/resources/inboxes/resources/threads/client/Client.js +3 -3
  38. package/dist/api/resources/messages/types/Message.d.ts +10 -3
  39. package/dist/api/resources/messages/types/MessageItem.d.ts +0 -3
  40. package/dist/api/resources/messages/types/ReplyToMessageRequest.d.ts +1 -0
  41. package/dist/api/resources/messages/types/SendMessageReplyTo.d.ts +8 -0
  42. package/dist/api/resources/messages/types/SendMessageRequest.d.ts +1 -0
  43. package/dist/api/resources/messages/types/index.d.ts +1 -3
  44. package/dist/api/resources/messages/types/index.js +1 -3
  45. package/dist/api/resources/threads/client/Client.js +3 -3
  46. package/dist/api/resources/threads/types/Thread.d.ts +5 -2
  47. package/dist/api/resources/threads/types/ThreadItem.d.ts +1 -2
  48. package/dist/api/resources/threads/types/index.d.ts +1 -2
  49. package/dist/api/resources/threads/types/index.js +1 -2
  50. package/dist/api/resources/webhooks/client/Client.js +4 -4
  51. package/dist/serialization/resources/attachments/types/SendAttachment.d.ts +1 -1
  52. package/dist/serialization/resources/attachments/types/SendAttachment.js +1 -1
  53. package/dist/serialization/resources/drafts/types/Draft.d.ts +5 -10
  54. package/dist/serialization/resources/drafts/types/Draft.js +5 -10
  55. package/dist/serialization/resources/drafts/types/DraftItem.d.ts +2 -10
  56. package/dist/serialization/resources/drafts/types/DraftItem.js +2 -10
  57. package/dist/serialization/resources/drafts/types/index.d.ts +1 -5
  58. package/dist/serialization/resources/drafts/types/index.js +1 -5
  59. package/dist/serialization/resources/messages/types/Message.d.ts +5 -6
  60. package/dist/serialization/resources/messages/types/Message.js +5 -6
  61. package/dist/serialization/resources/messages/types/MessageItem.d.ts +0 -6
  62. package/dist/serialization/resources/messages/types/MessageItem.js +0 -6
  63. package/dist/serialization/resources/messages/types/ReplyToMessageRequest.d.ts +2 -0
  64. package/dist/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -0
  65. package/dist/serialization/resources/messages/types/SendMessageReplyTo.d.ts +11 -0
  66. package/{api/resources/drafts/types/DraftInReplyTo.js → dist/serialization/resources/messages/types/SendMessageReplyTo.js} +3 -0
  67. package/dist/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -0
  68. package/dist/serialization/resources/messages/types/SendMessageRequest.js +2 -0
  69. package/dist/serialization/resources/messages/types/index.d.ts +1 -3
  70. package/dist/serialization/resources/messages/types/index.js +1 -3
  71. package/dist/serialization/resources/threads/types/Thread.d.ts +4 -4
  72. package/dist/serialization/resources/threads/types/Thread.js +4 -4
  73. package/dist/serialization/resources/threads/types/ThreadItem.d.ts +2 -4
  74. package/dist/serialization/resources/threads/types/ThreadItem.js +2 -4
  75. package/dist/serialization/resources/threads/types/index.d.ts +1 -2
  76. package/dist/serialization/resources/threads/types/index.js +1 -2
  77. package/dist/version.d.ts +1 -1
  78. package/dist/version.js +1 -1
  79. package/package.json +1 -1
  80. package/reference.md +2 -0
  81. package/serialization/resources/attachments/types/SendAttachment.d.ts +1 -1
  82. package/serialization/resources/attachments/types/SendAttachment.js +1 -1
  83. package/serialization/resources/drafts/types/Draft.d.ts +5 -10
  84. package/serialization/resources/drafts/types/Draft.js +5 -10
  85. package/serialization/resources/drafts/types/DraftItem.d.ts +2 -10
  86. package/serialization/resources/drafts/types/DraftItem.js +2 -10
  87. package/serialization/resources/drafts/types/index.d.ts +1 -5
  88. package/serialization/resources/drafts/types/index.js +1 -5
  89. package/serialization/resources/messages/types/Message.d.ts +5 -6
  90. package/serialization/resources/messages/types/Message.js +5 -6
  91. package/serialization/resources/messages/types/MessageItem.d.ts +0 -6
  92. package/serialization/resources/messages/types/MessageItem.js +0 -6
  93. package/serialization/resources/messages/types/ReplyToMessageRequest.d.ts +2 -0
  94. package/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -0
  95. package/serialization/resources/messages/types/SendMessageReplyTo.d.ts +11 -0
  96. package/{api/resources/drafts/types/DraftReferences.js → serialization/resources/messages/types/SendMessageReplyTo.js} +3 -0
  97. package/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -0
  98. package/serialization/resources/messages/types/SendMessageRequest.js +2 -0
  99. package/serialization/resources/messages/types/index.d.ts +1 -3
  100. package/serialization/resources/messages/types/index.js +1 -3
  101. package/serialization/resources/threads/types/Thread.d.ts +4 -4
  102. package/serialization/resources/threads/types/Thread.js +4 -4
  103. package/serialization/resources/threads/types/ThreadItem.d.ts +2 -4
  104. package/serialization/resources/threads/types/ThreadItem.js +2 -4
  105. package/serialization/resources/threads/types/index.d.ts +1 -2
  106. package/serialization/resources/threads/types/index.js +1 -2
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
  109. package/api/resources/drafts/types/DraftCreatedAt.d.ts +0 -7
  110. package/api/resources/drafts/types/DraftEventId.d.ts +0 -7
  111. package/api/resources/drafts/types/DraftInReplyTo.d.ts +0 -7
  112. package/api/resources/drafts/types/DraftReferences.d.ts +0 -7
  113. package/api/resources/messages/types/MessageEventId.d.ts +0 -7
  114. package/api/resources/messages/types/MessageEventId.js +0 -5
  115. package/api/resources/messages/types/MessageInReplyTo.d.ts +0 -7
  116. package/api/resources/messages/types/MessageInReplyTo.js +0 -5
  117. package/api/resources/messages/types/MessageReferences.d.ts +0 -7
  118. package/api/resources/messages/types/MessageReferences.js +0 -5
  119. package/api/resources/threads/types/ThreadEventId.d.ts +0 -7
  120. package/api/resources/threads/types/ThreadEventId.js +0 -5
  121. package/dist/api/resources/drafts/types/DraftCreatedAt.d.ts +0 -7
  122. package/dist/api/resources/drafts/types/DraftCreatedAt.js +0 -5
  123. package/dist/api/resources/drafts/types/DraftEventId.d.ts +0 -7
  124. package/dist/api/resources/drafts/types/DraftEventId.js +0 -5
  125. package/dist/api/resources/drafts/types/DraftInReplyTo.d.ts +0 -7
  126. package/dist/api/resources/drafts/types/DraftInReplyTo.js +0 -5
  127. package/dist/api/resources/drafts/types/DraftReferences.d.ts +0 -7
  128. package/dist/api/resources/drafts/types/DraftReferences.js +0 -5
  129. package/dist/api/resources/messages/types/MessageEventId.d.ts +0 -7
  130. package/dist/api/resources/messages/types/MessageEventId.js +0 -5
  131. package/dist/api/resources/messages/types/MessageInReplyTo.d.ts +0 -7
  132. package/dist/api/resources/messages/types/MessageInReplyTo.js +0 -5
  133. package/dist/api/resources/messages/types/MessageReferences.d.ts +0 -7
  134. package/dist/api/resources/messages/types/MessageReferences.js +0 -5
  135. package/dist/api/resources/threads/types/ThreadEventId.d.ts +0 -7
  136. package/dist/api/resources/threads/types/ThreadEventId.js +0 -5
  137. package/dist/serialization/resources/drafts/types/DraftCreatedAt.d.ts +0 -10
  138. package/dist/serialization/resources/drafts/types/DraftCreatedAt.js +0 -41
  139. package/dist/serialization/resources/drafts/types/DraftEventId.d.ts +0 -10
  140. package/dist/serialization/resources/drafts/types/DraftEventId.js +0 -41
  141. package/dist/serialization/resources/drafts/types/DraftInReplyTo.d.ts +0 -10
  142. package/dist/serialization/resources/drafts/types/DraftInReplyTo.js +0 -41
  143. package/dist/serialization/resources/drafts/types/DraftReferences.d.ts +0 -10
  144. package/dist/serialization/resources/drafts/types/DraftReferences.js +0 -41
  145. package/dist/serialization/resources/messages/types/MessageEventId.d.ts +0 -10
  146. package/dist/serialization/resources/messages/types/MessageEventId.js +0 -41
  147. package/dist/serialization/resources/messages/types/MessageInReplyTo.d.ts +0 -10
  148. package/dist/serialization/resources/messages/types/MessageInReplyTo.js +0 -41
  149. package/dist/serialization/resources/messages/types/MessageReferences.d.ts +0 -10
  150. package/dist/serialization/resources/messages/types/MessageReferences.js +0 -41
  151. package/dist/serialization/resources/threads/types/ThreadEventId.d.ts +0 -10
  152. package/dist/serialization/resources/threads/types/ThreadEventId.js +0 -41
  153. package/serialization/resources/drafts/types/DraftCreatedAt.d.ts +0 -10
  154. package/serialization/resources/drafts/types/DraftCreatedAt.js +0 -41
  155. package/serialization/resources/drafts/types/DraftEventId.d.ts +0 -10
  156. package/serialization/resources/drafts/types/DraftEventId.js +0 -41
  157. package/serialization/resources/drafts/types/DraftInReplyTo.d.ts +0 -10
  158. package/serialization/resources/drafts/types/DraftInReplyTo.js +0 -41
  159. package/serialization/resources/drafts/types/DraftReferences.d.ts +0 -10
  160. package/serialization/resources/drafts/types/DraftReferences.js +0 -41
  161. package/serialization/resources/messages/types/MessageEventId.d.ts +0 -10
  162. package/serialization/resources/messages/types/MessageEventId.js +0 -41
  163. package/serialization/resources/messages/types/MessageInReplyTo.d.ts +0 -10
  164. package/serialization/resources/messages/types/MessageInReplyTo.js +0 -41
  165. package/serialization/resources/messages/types/MessageReferences.d.ts +0 -10
  166. package/serialization/resources/messages/types/MessageReferences.js +0 -41
  167. package/serialization/resources/threads/types/ThreadEventId.d.ts +0 -10
  168. package/serialization/resources/threads/types/ThreadEventId.js +0 -41
  169. /package/api/resources/{drafts/types/DraftCreatedAt.js → messages/types/SendMessageReplyTo.js} +0 -0
  170. /package/{api/resources/drafts/types/DraftEventId.js → dist/api/resources/messages/types/SendMessageReplyTo.js} +0 -0
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./MessageId"), exports);
18
- __exportStar(require("./MessageEventId"), exports);
19
18
  __exportStar(require("./MessageLabels"), exports);
20
19
  __exportStar(require("./MessageTimestamp"), exports);
21
20
  __exportStar(require("./MessageFrom"), exports);
@@ -27,12 +26,11 @@ __exportStar(require("./MessagePreview"), exports);
27
26
  __exportStar(require("./MessageText"), exports);
28
27
  __exportStar(require("./MessageHtml"), exports);
29
28
  __exportStar(require("./MessageAttachments"), exports);
30
- __exportStar(require("./MessageInReplyTo"), exports);
31
- __exportStar(require("./MessageReferences"), exports);
32
29
  __exportStar(require("./MessageItem"), exports);
33
30
  __exportStar(require("./Message"), exports);
34
31
  __exportStar(require("./ListMessagesResponse"), exports);
35
32
  __exportStar(require("./Addresses"), exports);
33
+ __exportStar(require("./SendMessageReplyTo"), exports);
36
34
  __exportStar(require("./SendMessageTo"), exports);
37
35
  __exportStar(require("./SendMessageCc"), exports);
38
36
  __exportStar(require("./SendMessageBcc"), exports);
@@ -6,30 +6,30 @@ import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { InboxId } from "../../inboxes/types/InboxId";
8
8
  import { ThreadId } from "./ThreadId";
9
- import { ThreadEventId } from "./ThreadEventId";
10
9
  import { ThreadLabels } from "./ThreadLabels";
11
10
  import { ThreadTimestamp } from "./ThreadTimestamp";
12
11
  import { ThreadSenders } from "./ThreadSenders";
13
12
  import { ThreadRecipients } from "./ThreadRecipients";
14
- import { ThreadMessageCount } from "./ThreadMessageCount";
15
13
  import { ThreadSubject } from "./ThreadSubject";
16
14
  import { ThreadPreview } from "./ThreadPreview";
17
15
  import { ThreadAttachments } from "./ThreadAttachments";
16
+ import { ThreadMessageCount } from "./ThreadMessageCount";
18
17
  import { Message } from "../../messages/types/Message";
19
18
  export declare const Thread: core.serialization.ObjectSchema<serializers.Thread.Raw, AgentMail.Thread>;
20
19
  export declare namespace Thread {
21
20
  interface Raw {
22
21
  inbox_id: InboxId.Raw;
23
22
  thread_id: ThreadId.Raw;
24
- event_id: ThreadEventId.Raw;
25
23
  labels: ThreadLabels.Raw;
26
24
  timestamp: ThreadTimestamp.Raw;
27
25
  senders: ThreadSenders.Raw;
28
26
  recipients: ThreadRecipients.Raw;
29
- message_count: ThreadMessageCount.Raw;
30
27
  subject?: ThreadSubject.Raw | null;
31
28
  preview?: ThreadPreview.Raw | null;
32
29
  attachments?: ThreadAttachments.Raw | null;
30
+ message_count: ThreadMessageCount.Raw;
33
31
  messages: Message.Raw[];
32
+ updated_at: string;
33
+ created_at: string;
34
34
  }
35
35
  }
@@ -40,27 +40,27 @@ exports.Thread = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const InboxId_1 = require("../../inboxes/types/InboxId");
42
42
  const ThreadId_1 = require("./ThreadId");
43
- const ThreadEventId_1 = require("./ThreadEventId");
44
43
  const ThreadLabels_1 = require("./ThreadLabels");
45
44
  const ThreadTimestamp_1 = require("./ThreadTimestamp");
46
45
  const ThreadSenders_1 = require("./ThreadSenders");
47
46
  const ThreadRecipients_1 = require("./ThreadRecipients");
48
- const ThreadMessageCount_1 = require("./ThreadMessageCount");
49
47
  const ThreadSubject_1 = require("./ThreadSubject");
50
48
  const ThreadPreview_1 = require("./ThreadPreview");
51
49
  const ThreadAttachments_1 = require("./ThreadAttachments");
50
+ const ThreadMessageCount_1 = require("./ThreadMessageCount");
52
51
  const Message_1 = require("../../messages/types/Message");
53
52
  exports.Thread = core.serialization.object({
54
53
  inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
55
54
  threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
56
- eventId: core.serialization.property("event_id", ThreadEventId_1.ThreadEventId),
57
55
  labels: ThreadLabels_1.ThreadLabels,
58
56
  timestamp: ThreadTimestamp_1.ThreadTimestamp,
59
57
  senders: ThreadSenders_1.ThreadSenders,
60
58
  recipients: ThreadRecipients_1.ThreadRecipients,
61
- messageCount: core.serialization.property("message_count", ThreadMessageCount_1.ThreadMessageCount),
62
59
  subject: ThreadSubject_1.ThreadSubject.optional(),
63
60
  preview: ThreadPreview_1.ThreadPreview.optional(),
64
61
  attachments: ThreadAttachments_1.ThreadAttachments.optional(),
62
+ messageCount: core.serialization.property("message_count", ThreadMessageCount_1.ThreadMessageCount),
65
63
  messages: core.serialization.list(Message_1.Message),
64
+ updatedAt: core.serialization.property("updated_at", core.serialization.date()),
65
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
66
66
  });
@@ -6,28 +6,26 @@ import * as AgentMail from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { InboxId } from "../../inboxes/types/InboxId";
8
8
  import { ThreadId } from "./ThreadId";
9
- import { ThreadEventId } from "./ThreadEventId";
10
9
  import { ThreadLabels } from "./ThreadLabels";
11
10
  import { ThreadTimestamp } from "./ThreadTimestamp";
12
11
  import { ThreadSenders } from "./ThreadSenders";
13
12
  import { ThreadRecipients } from "./ThreadRecipients";
14
- import { ThreadMessageCount } from "./ThreadMessageCount";
15
13
  import { ThreadSubject } from "./ThreadSubject";
16
14
  import { ThreadPreview } from "./ThreadPreview";
17
15
  import { ThreadAttachments } from "./ThreadAttachments";
16
+ import { ThreadMessageCount } from "./ThreadMessageCount";
18
17
  export declare const ThreadItem: core.serialization.ObjectSchema<serializers.ThreadItem.Raw, AgentMail.ThreadItem>;
19
18
  export declare namespace ThreadItem {
20
19
  interface Raw {
21
20
  inbox_id: InboxId.Raw;
22
21
  thread_id: ThreadId.Raw;
23
- event_id: ThreadEventId.Raw;
24
22
  labels: ThreadLabels.Raw;
25
23
  timestamp: ThreadTimestamp.Raw;
26
24
  senders: ThreadSenders.Raw;
27
25
  recipients: ThreadRecipients.Raw;
28
- message_count: ThreadMessageCount.Raw;
29
26
  subject?: ThreadSubject.Raw | null;
30
27
  preview?: ThreadPreview.Raw | null;
31
28
  attachments?: ThreadAttachments.Raw | null;
29
+ message_count: ThreadMessageCount.Raw;
32
30
  }
33
31
  }
@@ -40,25 +40,23 @@ exports.ThreadItem = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
41
  const InboxId_1 = require("../../inboxes/types/InboxId");
42
42
  const ThreadId_1 = require("./ThreadId");
43
- const ThreadEventId_1 = require("./ThreadEventId");
44
43
  const ThreadLabels_1 = require("./ThreadLabels");
45
44
  const ThreadTimestamp_1 = require("./ThreadTimestamp");
46
45
  const ThreadSenders_1 = require("./ThreadSenders");
47
46
  const ThreadRecipients_1 = require("./ThreadRecipients");
48
- const ThreadMessageCount_1 = require("./ThreadMessageCount");
49
47
  const ThreadSubject_1 = require("./ThreadSubject");
50
48
  const ThreadPreview_1 = require("./ThreadPreview");
51
49
  const ThreadAttachments_1 = require("./ThreadAttachments");
50
+ const ThreadMessageCount_1 = require("./ThreadMessageCount");
52
51
  exports.ThreadItem = core.serialization.object({
53
52
  inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
54
53
  threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
55
- eventId: core.serialization.property("event_id", ThreadEventId_1.ThreadEventId),
56
54
  labels: ThreadLabels_1.ThreadLabels,
57
55
  timestamp: ThreadTimestamp_1.ThreadTimestamp,
58
56
  senders: ThreadSenders_1.ThreadSenders,
59
57
  recipients: ThreadRecipients_1.ThreadRecipients,
60
- messageCount: core.serialization.property("message_count", ThreadMessageCount_1.ThreadMessageCount),
61
58
  subject: ThreadSubject_1.ThreadSubject.optional(),
62
59
  preview: ThreadPreview_1.ThreadPreview.optional(),
63
60
  attachments: ThreadAttachments_1.ThreadAttachments.optional(),
61
+ messageCount: core.serialization.property("message_count", ThreadMessageCount_1.ThreadMessageCount),
64
62
  });
@@ -1,13 +1,12 @@
1
1
  export * from "./ThreadId";
2
- export * from "./ThreadEventId";
3
2
  export * from "./ThreadLabels";
4
3
  export * from "./ThreadTimestamp";
5
4
  export * from "./ThreadSenders";
6
5
  export * from "./ThreadRecipients";
7
- export * from "./ThreadMessageCount";
8
6
  export * from "./ThreadSubject";
9
7
  export * from "./ThreadPreview";
10
8
  export * from "./ThreadAttachments";
9
+ export * from "./ThreadMessageCount";
11
10
  export * from "./ThreadItem";
12
11
  export * from "./Thread";
13
12
  export * from "./ListThreadsResponse";
@@ -15,15 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ThreadId"), exports);
18
- __exportStar(require("./ThreadEventId"), exports);
19
18
  __exportStar(require("./ThreadLabels"), exports);
20
19
  __exportStar(require("./ThreadTimestamp"), exports);
21
20
  __exportStar(require("./ThreadSenders"), exports);
22
21
  __exportStar(require("./ThreadRecipients"), exports);
23
- __exportStar(require("./ThreadMessageCount"), exports);
24
22
  __exportStar(require("./ThreadSubject"), exports);
25
23
  __exportStar(require("./ThreadPreview"), exports);
26
24
  __exportStar(require("./ThreadAttachments"), exports);
25
+ __exportStar(require("./ThreadMessageCount"), exports);
27
26
  __exportStar(require("./ThreadItem"), exports);
28
27
  __exportStar(require("./Thread"), exports);
29
28
  __exportStar(require("./ListThreadsResponse"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.36";
1
+ export declare const SDK_VERSION = "0.0.38";
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.36";
4
+ exports.SDK_VERSION = "0.0.38";
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Time at which draft was created.
6
- */
7
- export type DraftCreatedAt = Date;
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Event ID of draft.
6
- */
7
- export type DraftEventId = string;
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * ID of message being replied to.
6
- */
7
- export type DraftInReplyTo = string;
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * IDs of previous messages in draft.
6
- */
7
- export type DraftReferences = string[];
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Event ID of message.
6
- */
7
- export type MessageEventId = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * ID of message being replied to.
6
- */
7
- export type MessageInReplyTo = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * IDs of previous messages in thread.
6
- */
7
- export type MessageReferences = string[];
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Event ID of thread.
6
- */
7
- export type ThreadEventId = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Time at which draft was created.
6
- */
7
- export type DraftCreatedAt = Date;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Event ID of draft.
6
- */
7
- export type DraftEventId = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * ID of message being replied to.
6
- */
7
- export type DraftInReplyTo = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * IDs of previous messages in draft.
6
- */
7
- export type DraftReferences = string[];
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Event ID of message.
6
- */
7
- export type MessageEventId = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * ID of message being replied to.
6
- */
7
- export type MessageInReplyTo = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * IDs of previous messages in thread.
6
- */
7
- export type MessageReferences = string[];
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * Event ID of thread.
6
- */
7
- export type ThreadEventId = string;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
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 DraftCreatedAt: core.serialization.Schema<serializers.DraftCreatedAt.Raw, AgentMail.DraftCreatedAt>;
8
- export declare namespace DraftCreatedAt {
9
- type Raw = string;
10
- }
@@ -1,41 +0,0 @@
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.DraftCreatedAt = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.DraftCreatedAt = core.serialization.date();
@@ -1,10 +0,0 @@
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 DraftEventId: core.serialization.Schema<serializers.DraftEventId.Raw, AgentMail.DraftEventId>;
8
- export declare namespace DraftEventId {
9
- type Raw = string;
10
- }
@@ -1,41 +0,0 @@
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.DraftEventId = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.DraftEventId = core.serialization.string();
@@ -1,10 +0,0 @@
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 DraftInReplyTo: core.serialization.Schema<serializers.DraftInReplyTo.Raw, AgentMail.DraftInReplyTo>;
8
- export declare namespace DraftInReplyTo {
9
- type Raw = string;
10
- }
@@ -1,41 +0,0 @@
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.DraftInReplyTo = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.DraftInReplyTo = core.serialization.string();
@@ -1,10 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
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());