agentmail 0.0.24 → 0.0.25
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.
- package/api/resources/inboxes/client/Client.js +8 -3
- package/api/resources/inboxes/types/Inbox.d.ts +0 -4
- package/api/resources/inboxes/types/ListInboxesResponse.d.ts +0 -1
- package/api/resources/messages/client/Client.js +18 -5
- package/api/resources/messages/types/ListMessagesResponse.d.ts +4 -2
- package/api/resources/messages/types/Message.d.ts +2 -4
- package/api/resources/messages/types/MessageItem.d.ts +1 -0
- package/api/resources/messages/types/SendAttachment.d.ts +1 -1
- package/api/resources/threads/client/Client.js +6 -2
- package/api/resources/threads/types/ListThreadsResponse.d.ts +2 -0
- package/api/resources/threads/types/Thread.d.ts +2 -5
- package/api/resources/threads/types/ThreadItem.d.ts +1 -0
- package/api/resources/threads/types/index.d.ts +1 -1
- package/api/resources/threads/types/index.js +1 -1
- package/api/resources/webhooks/client/Client.js +10 -4
- package/dist/api/resources/inboxes/client/Client.js +8 -3
- package/dist/api/resources/inboxes/types/Inbox.d.ts +0 -4
- package/dist/api/resources/inboxes/types/ListInboxesResponse.d.ts +0 -1
- package/dist/api/resources/messages/client/Client.js +18 -5
- package/dist/api/resources/messages/types/ListMessagesResponse.d.ts +4 -2
- package/dist/api/resources/messages/types/Message.d.ts +2 -4
- package/dist/api/resources/messages/types/MessageItem.d.ts +1 -0
- package/dist/api/resources/messages/types/SendAttachment.d.ts +1 -1
- package/dist/api/resources/threads/client/Client.js +6 -2
- package/dist/api/resources/threads/types/ListThreadsResponse.d.ts +2 -0
- package/dist/api/resources/threads/types/Thread.d.ts +2 -5
- package/dist/api/resources/threads/types/ThreadItem.d.ts +1 -0
- package/dist/api/resources/threads/types/index.d.ts +1 -1
- package/dist/api/resources/threads/types/index.js +1 -1
- package/dist/api/resources/webhooks/client/Client.js +10 -4
- package/dist/serialization/resources/inboxes/types/Inbox.d.ts +0 -1
- package/dist/serialization/resources/inboxes/types/Inbox.js +0 -1
- package/dist/serialization/resources/messages/types/Message.d.ts +2 -4
- package/dist/serialization/resources/messages/types/Message.js +2 -4
- package/dist/serialization/resources/messages/types/MessageItem.d.ts +2 -0
- package/dist/serialization/resources/messages/types/MessageItem.js +2 -0
- package/dist/serialization/resources/messages/types/SendAttachment.d.ts +1 -1
- package/dist/serialization/resources/messages/types/SendAttachment.js +1 -1
- package/dist/serialization/resources/threads/types/Thread.d.ts +2 -4
- package/dist/serialization/resources/threads/types/Thread.js +2 -4
- package/dist/serialization/resources/threads/types/ThreadItem.d.ts +2 -0
- package/dist/serialization/resources/threads/types/ThreadItem.js +2 -0
- package/dist/serialization/resources/threads/types/index.d.ts +1 -1
- package/dist/serialization/resources/threads/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/inboxes/types/Inbox.d.ts +0 -1
- package/serialization/resources/inboxes/types/Inbox.js +0 -1
- package/serialization/resources/messages/types/Message.d.ts +2 -4
- package/serialization/resources/messages/types/Message.js +2 -4
- package/serialization/resources/messages/types/MessageItem.d.ts +2 -0
- package/serialization/resources/messages/types/MessageItem.js +2 -0
- package/serialization/resources/messages/types/SendAttachment.d.ts +1 -1
- package/serialization/resources/messages/types/SendAttachment.js +1 -1
- package/serialization/resources/threads/types/Thread.d.ts +2 -4
- package/serialization/resources/threads/types/Thread.js +2 -4
- package/serialization/resources/threads/types/ThreadItem.d.ts +2 -0
- package/serialization/resources/threads/types/ThreadItem.js +2 -0
- package/serialization/resources/threads/types/index.d.ts +1 -1
- package/serialization/resources/threads/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Thread = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
41
42
|
const ThreadId_1 = require("./ThreadId");
|
|
42
43
|
const ThreadEventId_1 = require("./ThreadEventId");
|
|
43
44
|
const ThreadLabels_1 = require("./ThreadLabels");
|
|
@@ -49,9 +50,8 @@ const ThreadSubject_1 = require("./ThreadSubject");
|
|
|
49
50
|
const ThreadPreview_1 = require("./ThreadPreview");
|
|
50
51
|
const ThreadAttachments_1 = require("./ThreadAttachments");
|
|
51
52
|
const Message_1 = require("../../messages/types/Message");
|
|
52
|
-
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
53
|
-
const OrganizationId_1 = require("../../../types/OrganizationId");
|
|
54
53
|
exports.Thread = core.serialization.object({
|
|
54
|
+
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
55
55
|
threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
|
|
56
56
|
eventId: core.serialization.property("event_id", ThreadEventId_1.ThreadEventId),
|
|
57
57
|
labels: ThreadLabels_1.ThreadLabels,
|
|
@@ -63,6 +63,4 @@ exports.Thread = core.serialization.object({
|
|
|
63
63
|
preview: ThreadPreview_1.ThreadPreview.optional(),
|
|
64
64
|
attachments: ThreadAttachments_1.ThreadAttachments.optional(),
|
|
65
65
|
messages: core.serialization.list(Message_1.Message),
|
|
66
|
-
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
67
|
-
organizationId: core.serialization.property("organization_id", OrganizationId_1.OrganizationId),
|
|
68
66
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
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 "./ThreadId";
|
|
8
9
|
import { ThreadEventId } from "./ThreadEventId";
|
|
9
10
|
import { ThreadLabels } from "./ThreadLabels";
|
|
@@ -17,6 +18,7 @@ import { ThreadAttachments } from "./ThreadAttachments";
|
|
|
17
18
|
export declare const ThreadItem: core.serialization.ObjectSchema<serializers.ThreadItem.Raw, AgentMail.ThreadItem>;
|
|
18
19
|
export declare namespace ThreadItem {
|
|
19
20
|
interface Raw {
|
|
21
|
+
inbox_id: InboxId.Raw;
|
|
20
22
|
thread_id: ThreadId.Raw;
|
|
21
23
|
event_id: ThreadEventId.Raw;
|
|
22
24
|
labels: ThreadLabels.Raw;
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ThreadItem = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
41
42
|
const ThreadId_1 = require("./ThreadId");
|
|
42
43
|
const ThreadEventId_1 = require("./ThreadEventId");
|
|
43
44
|
const ThreadLabels_1 = require("./ThreadLabels");
|
|
@@ -49,6 +50,7 @@ const ThreadSubject_1 = require("./ThreadSubject");
|
|
|
49
50
|
const ThreadPreview_1 = require("./ThreadPreview");
|
|
50
51
|
const ThreadAttachments_1 = require("./ThreadAttachments");
|
|
51
52
|
exports.ThreadItem = core.serialization.object({
|
|
53
|
+
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
52
54
|
threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
|
|
53
55
|
eventId: core.serialization.property("event_id", ThreadEventId_1.ThreadEventId),
|
|
54
56
|
labels: ThreadLabels_1.ThreadLabels,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./ThreadAttachment";
|
|
2
1
|
export * from "./ThreadId";
|
|
3
2
|
export * from "./ThreadEventId";
|
|
4
3
|
export * from "./ThreadLabels";
|
|
@@ -8,6 +7,7 @@ export * from "./ThreadRecipients";
|
|
|
8
7
|
export * from "./ThreadMessageCount";
|
|
9
8
|
export * from "./ThreadSubject";
|
|
10
9
|
export * from "./ThreadPreview";
|
|
10
|
+
export * from "./ThreadAttachment";
|
|
11
11
|
export * from "./ThreadAttachments";
|
|
12
12
|
export * from "./ThreadItem";
|
|
13
13
|
export * from "./Thread";
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ThreadAttachment"), exports);
|
|
18
17
|
__exportStar(require("./ThreadId"), exports);
|
|
19
18
|
__exportStar(require("./ThreadEventId"), exports);
|
|
20
19
|
__exportStar(require("./ThreadLabels"), exports);
|
|
@@ -24,6 +23,7 @@ __exportStar(require("./ThreadRecipients"), exports);
|
|
|
24
23
|
__exportStar(require("./ThreadMessageCount"), exports);
|
|
25
24
|
__exportStar(require("./ThreadSubject"), exports);
|
|
26
25
|
__exportStar(require("./ThreadPreview"), exports);
|
|
26
|
+
__exportStar(require("./ThreadAttachment"), exports);
|
|
27
27
|
__exportStar(require("./ThreadAttachments"), exports);
|
|
28
28
|
__exportStar(require("./ThreadItem"), exports);
|
|
29
29
|
__exportStar(require("./Thread"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.25";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -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,6 +4,7 @@
|
|
|
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";
|
|
@@ -21,11 +22,10 @@ import { MessageHtml } from "./MessageHtml";
|
|
|
21
22
|
import { MessageAttachments } from "./MessageAttachments";
|
|
22
23
|
import { MessageInReplyTo } from "./MessageInReplyTo";
|
|
23
24
|
import { MessageReferences } from "./MessageReferences";
|
|
24
|
-
import { InboxId } from "../../inboxes/types/InboxId";
|
|
25
|
-
import { OrganizationId } from "../../../types/OrganizationId";
|
|
26
25
|
export declare const Message: core.serialization.ObjectSchema<serializers.Message.Raw, AgentMail.Message>;
|
|
27
26
|
export declare namespace Message {
|
|
28
27
|
interface Raw {
|
|
28
|
+
inbox_id: InboxId.Raw;
|
|
29
29
|
thread_id: ThreadId.Raw;
|
|
30
30
|
message_id: MessageId.Raw;
|
|
31
31
|
event_id: MessageEventId.Raw;
|
|
@@ -43,7 +43,5 @@ export declare namespace Message {
|
|
|
43
43
|
attachments?: MessageAttachments.Raw | null;
|
|
44
44
|
in_reply_to?: MessageInReplyTo.Raw | null;
|
|
45
45
|
references?: MessageReferences.Raw | null;
|
|
46
|
-
inbox_id: InboxId.Raw;
|
|
47
|
-
organization_id: OrganizationId.Raw;
|
|
48
46
|
}
|
|
49
47
|
}
|
|
@@ -38,6 +38,7 @@ 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");
|
|
@@ -55,9 +56,8 @@ const MessageHtml_1 = require("./MessageHtml");
|
|
|
55
56
|
const MessageAttachments_1 = require("./MessageAttachments");
|
|
56
57
|
const MessageInReplyTo_1 = require("./MessageInReplyTo");
|
|
57
58
|
const MessageReferences_1 = require("./MessageReferences");
|
|
58
|
-
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
59
|
-
const OrganizationId_1 = require("../../../types/OrganizationId");
|
|
60
59
|
exports.Message = core.serialization.object({
|
|
60
|
+
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
61
61
|
threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
|
|
62
62
|
messageId: core.serialization.property("message_id", MessageId_1.MessageId),
|
|
63
63
|
eventId: core.serialization.property("event_id", MessageEventId_1.MessageEventId),
|
|
@@ -75,6 +75,4 @@ exports.Message = core.serialization.object({
|
|
|
75
75
|
attachments: MessageAttachments_1.MessageAttachments.optional(),
|
|
76
76
|
inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo.optional()),
|
|
77
77
|
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
78
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
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";
|
|
@@ -19,6 +20,7 @@ import { MessageAttachments } from "./MessageAttachments";
|
|
|
19
20
|
export declare const MessageItem: core.serialization.ObjectSchema<serializers.MessageItem.Raw, AgentMail.MessageItem>;
|
|
20
21
|
export declare namespace MessageItem {
|
|
21
22
|
interface Raw {
|
|
23
|
+
inbox_id: InboxId.Raw;
|
|
22
24
|
thread_id: ThreadId.Raw;
|
|
23
25
|
message_id: MessageId.Raw;
|
|
24
26
|
event_id: MessageEventId.Raw;
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageItem = 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");
|
|
@@ -51,6 +52,7 @@ const MessageSubject_1 = require("./MessageSubject");
|
|
|
51
52
|
const MessagePreview_1 = require("./MessagePreview");
|
|
52
53
|
const MessageAttachments_1 = require("./MessageAttachments");
|
|
53
54
|
exports.MessageItem = core.serialization.object({
|
|
55
|
+
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
54
56
|
threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
|
|
55
57
|
messageId: core.serialization.property("message_id", MessageId_1.MessageId),
|
|
56
58
|
eventId: core.serialization.property("event_id", MessageEventId_1.MessageEventId),
|
|
@@ -11,7 +11,7 @@ export declare const SendAttachment: core.serialization.ObjectSchema<serializers
|
|
|
11
11
|
export declare namespace SendAttachment {
|
|
12
12
|
interface Raw {
|
|
13
13
|
filename: AttachmentFilename.Raw;
|
|
14
|
-
content_type
|
|
14
|
+
content_type?: AttachmentContentType.Raw | null;
|
|
15
15
|
content: AttachmentContent.Raw;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -43,6 +43,6 @@ const AttachmentContentType_1 = require("./AttachmentContentType");
|
|
|
43
43
|
const AttachmentContent_1 = require("./AttachmentContent");
|
|
44
44
|
exports.SendAttachment = core.serialization.object({
|
|
45
45
|
filename: AttachmentFilename_1.AttachmentFilename,
|
|
46
|
-
contentType: core.serialization.property("content_type", AttachmentContentType_1.AttachmentContentType),
|
|
46
|
+
contentType: core.serialization.property("content_type", AttachmentContentType_1.AttachmentContentType.optional()),
|
|
47
47
|
content: AttachmentContent_1.AttachmentContent,
|
|
48
48
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
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 "./ThreadId";
|
|
8
9
|
import { ThreadEventId } from "./ThreadEventId";
|
|
9
10
|
import { ThreadLabels } from "./ThreadLabels";
|
|
@@ -15,11 +16,10 @@ import { ThreadSubject } from "./ThreadSubject";
|
|
|
15
16
|
import { ThreadPreview } from "./ThreadPreview";
|
|
16
17
|
import { ThreadAttachments } from "./ThreadAttachments";
|
|
17
18
|
import { Message } from "../../messages/types/Message";
|
|
18
|
-
import { InboxId } from "../../inboxes/types/InboxId";
|
|
19
|
-
import { OrganizationId } from "../../../types/OrganizationId";
|
|
20
19
|
export declare const Thread: core.serialization.ObjectSchema<serializers.Thread.Raw, AgentMail.Thread>;
|
|
21
20
|
export declare namespace Thread {
|
|
22
21
|
interface Raw {
|
|
22
|
+
inbox_id: InboxId.Raw;
|
|
23
23
|
thread_id: ThreadId.Raw;
|
|
24
24
|
event_id: ThreadEventId.Raw;
|
|
25
25
|
labels: ThreadLabels.Raw;
|
|
@@ -31,7 +31,5 @@ export declare namespace Thread {
|
|
|
31
31
|
preview?: ThreadPreview.Raw | null;
|
|
32
32
|
attachments?: ThreadAttachments.Raw | null;
|
|
33
33
|
messages: Message.Raw[];
|
|
34
|
-
inbox_id: InboxId.Raw;
|
|
35
|
-
organization_id: OrganizationId.Raw;
|
|
36
34
|
}
|
|
37
35
|
}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Thread = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
41
42
|
const ThreadId_1 = require("./ThreadId");
|
|
42
43
|
const ThreadEventId_1 = require("./ThreadEventId");
|
|
43
44
|
const ThreadLabels_1 = require("./ThreadLabels");
|
|
@@ -49,9 +50,8 @@ const ThreadSubject_1 = require("./ThreadSubject");
|
|
|
49
50
|
const ThreadPreview_1 = require("./ThreadPreview");
|
|
50
51
|
const ThreadAttachments_1 = require("./ThreadAttachments");
|
|
51
52
|
const Message_1 = require("../../messages/types/Message");
|
|
52
|
-
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
53
|
-
const OrganizationId_1 = require("../../../types/OrganizationId");
|
|
54
53
|
exports.Thread = core.serialization.object({
|
|
54
|
+
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
55
55
|
threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
|
|
56
56
|
eventId: core.serialization.property("event_id", ThreadEventId_1.ThreadEventId),
|
|
57
57
|
labels: ThreadLabels_1.ThreadLabels,
|
|
@@ -63,6 +63,4 @@ exports.Thread = core.serialization.object({
|
|
|
63
63
|
preview: ThreadPreview_1.ThreadPreview.optional(),
|
|
64
64
|
attachments: ThreadAttachments_1.ThreadAttachments.optional(),
|
|
65
65
|
messages: core.serialization.list(Message_1.Message),
|
|
66
|
-
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
67
|
-
organizationId: core.serialization.property("organization_id", OrganizationId_1.OrganizationId),
|
|
68
66
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
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 "./ThreadId";
|
|
8
9
|
import { ThreadEventId } from "./ThreadEventId";
|
|
9
10
|
import { ThreadLabels } from "./ThreadLabels";
|
|
@@ -17,6 +18,7 @@ import { ThreadAttachments } from "./ThreadAttachments";
|
|
|
17
18
|
export declare const ThreadItem: core.serialization.ObjectSchema<serializers.ThreadItem.Raw, AgentMail.ThreadItem>;
|
|
18
19
|
export declare namespace ThreadItem {
|
|
19
20
|
interface Raw {
|
|
21
|
+
inbox_id: InboxId.Raw;
|
|
20
22
|
thread_id: ThreadId.Raw;
|
|
21
23
|
event_id: ThreadEventId.Raw;
|
|
22
24
|
labels: ThreadLabels.Raw;
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ThreadItem = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const InboxId_1 = require("../../inboxes/types/InboxId");
|
|
41
42
|
const ThreadId_1 = require("./ThreadId");
|
|
42
43
|
const ThreadEventId_1 = require("./ThreadEventId");
|
|
43
44
|
const ThreadLabels_1 = require("./ThreadLabels");
|
|
@@ -49,6 +50,7 @@ const ThreadSubject_1 = require("./ThreadSubject");
|
|
|
49
50
|
const ThreadPreview_1 = require("./ThreadPreview");
|
|
50
51
|
const ThreadAttachments_1 = require("./ThreadAttachments");
|
|
51
52
|
exports.ThreadItem = core.serialization.object({
|
|
53
|
+
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
52
54
|
threadId: core.serialization.property("thread_id", ThreadId_1.ThreadId),
|
|
53
55
|
eventId: core.serialization.property("event_id", ThreadEventId_1.ThreadEventId),
|
|
54
56
|
labels: ThreadLabels_1.ThreadLabels,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./ThreadAttachment";
|
|
2
1
|
export * from "./ThreadId";
|
|
3
2
|
export * from "./ThreadEventId";
|
|
4
3
|
export * from "./ThreadLabels";
|
|
@@ -8,6 +7,7 @@ export * from "./ThreadRecipients";
|
|
|
8
7
|
export * from "./ThreadMessageCount";
|
|
9
8
|
export * from "./ThreadSubject";
|
|
10
9
|
export * from "./ThreadPreview";
|
|
10
|
+
export * from "./ThreadAttachment";
|
|
11
11
|
export * from "./ThreadAttachments";
|
|
12
12
|
export * from "./ThreadItem";
|
|
13
13
|
export * from "./Thread";
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ThreadAttachment"), exports);
|
|
18
17
|
__exportStar(require("./ThreadId"), exports);
|
|
19
18
|
__exportStar(require("./ThreadEventId"), exports);
|
|
20
19
|
__exportStar(require("./ThreadLabels"), exports);
|
|
@@ -24,6 +23,7 @@ __exportStar(require("./ThreadRecipients"), exports);
|
|
|
24
23
|
__exportStar(require("./ThreadMessageCount"), exports);
|
|
25
24
|
__exportStar(require("./ThreadSubject"), exports);
|
|
26
25
|
__exportStar(require("./ThreadPreview"), exports);
|
|
26
|
+
__exportStar(require("./ThreadAttachment"), exports);
|
|
27
27
|
__exportStar(require("./ThreadAttachments"), exports);
|
|
28
28
|
__exportStar(require("./ThreadItem"), exports);
|
|
29
29
|
__exportStar(require("./Thread"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.25";
|
package/version.js
CHANGED