agentmail 0.0.23 → 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/AttachmentContent.d.ts +7 -0
- package/api/resources/messages/types/AttachmentContent.js +5 -0
- 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/ReplyToMessageRequest.d.ts +1 -0
- package/api/resources/messages/types/SendAttachment.d.ts +9 -0
- package/api/resources/messages/types/SendAttachment.js +5 -0
- package/api/resources/messages/types/SendMessageAttachments.d.ts +8 -0
- package/api/resources/messages/types/SendMessageAttachments.js +5 -0
- package/api/resources/messages/types/SendMessageRequest.d.ts +1 -0
- package/api/resources/messages/types/index.d.ts +3 -0
- package/api/resources/messages/types/index.js +3 -0
- 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/AttachmentContent.d.ts +7 -0
- package/dist/api/resources/messages/types/AttachmentContent.js +5 -0
- 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/ReplyToMessageRequest.d.ts +1 -0
- package/dist/api/resources/messages/types/SendAttachment.d.ts +9 -0
- package/dist/api/resources/messages/types/SendAttachment.js +5 -0
- package/dist/api/resources/messages/types/SendMessageAttachments.d.ts +8 -0
- package/dist/api/resources/messages/types/SendMessageAttachments.js +5 -0
- package/dist/api/resources/messages/types/SendMessageRequest.d.ts +1 -0
- package/dist/api/resources/messages/types/index.d.ts +3 -0
- package/dist/api/resources/messages/types/index.js +3 -0
- 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/AttachmentContent.d.ts +10 -0
- package/dist/serialization/resources/messages/types/AttachmentContent.js +41 -0
- 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/ReplyToMessageRequest.d.ts +2 -0
- package/dist/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -0
- package/dist/serialization/resources/messages/types/SendAttachment.d.ts +17 -0
- package/dist/serialization/resources/messages/types/SendAttachment.js +48 -0
- package/dist/serialization/resources/messages/types/SendMessageAttachments.d.ts +11 -0
- package/dist/serialization/resources/messages/types/SendMessageAttachments.js +42 -0
- package/dist/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -0
- package/dist/serialization/resources/messages/types/SendMessageRequest.js +2 -0
- package/dist/serialization/resources/messages/types/index.d.ts +3 -0
- package/dist/serialization/resources/messages/types/index.js +3 -0
- 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/AttachmentContent.d.ts +10 -0
- package/serialization/resources/messages/types/AttachmentContent.js +41 -0
- 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/ReplyToMessageRequest.d.ts +2 -0
- package/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -0
- package/serialization/resources/messages/types/SendAttachment.d.ts +17 -0
- package/serialization/resources/messages/types/SendAttachment.js +48 -0
- package/serialization/resources/messages/types/SendMessageAttachments.d.ts +11 -0
- package/serialization/resources/messages/types/SendMessageAttachments.js +42 -0
- package/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -0
- package/serialization/resources/messages/types/SendMessageRequest.js +2 -0
- package/serialization/resources/messages/types/index.d.ts +3 -0
- package/serialization/resources/messages/types/index.js +3 -0
- 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
|
@@ -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);
|
|
@@ -80,7 +80,7 @@ class Webhooks {
|
|
|
80
80
|
const _response = yield core.fetcher({
|
|
81
81
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/webhooks"),
|
|
82
82
|
method: "GET",
|
|
83
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
83
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
queryParameters: _queryParams,
|
|
86
86
|
requestType: "json",
|
|
@@ -93,6 +93,7 @@ class Webhooks {
|
|
|
93
93
|
unrecognizedObjectKeys: "passthrough",
|
|
94
94
|
allowUnrecognizedUnionMembers: true,
|
|
95
95
|
allowUnrecognizedEnumValues: true,
|
|
96
|
+
skipValidation: true,
|
|
96
97
|
breadcrumbsPrefix: ["response"],
|
|
97
98
|
});
|
|
98
99
|
}
|
|
@@ -132,7 +133,7 @@ class Webhooks {
|
|
|
132
133
|
const _response = yield core.fetcher({
|
|
133
134
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/webhooks/${encodeURIComponent(serializers.WebhookId.jsonOrThrow(webhookId))}`),
|
|
134
135
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
136
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
136
137
|
contentType: "application/json",
|
|
137
138
|
requestType: "json",
|
|
138
139
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -144,6 +145,7 @@ class Webhooks {
|
|
|
144
145
|
unrecognizedObjectKeys: "passthrough",
|
|
145
146
|
allowUnrecognizedUnionMembers: true,
|
|
146
147
|
allowUnrecognizedEnumValues: true,
|
|
148
|
+
skipValidation: true,
|
|
147
149
|
breadcrumbsPrefix: ["response"],
|
|
148
150
|
});
|
|
149
151
|
}
|
|
@@ -154,6 +156,7 @@ class Webhooks {
|
|
|
154
156
|
unrecognizedObjectKeys: "passthrough",
|
|
155
157
|
allowUnrecognizedUnionMembers: true,
|
|
156
158
|
allowUnrecognizedEnumValues: true,
|
|
159
|
+
skipValidation: true,
|
|
157
160
|
breadcrumbsPrefix: ["response"],
|
|
158
161
|
}));
|
|
159
162
|
default:
|
|
@@ -197,7 +200,7 @@ class Webhooks {
|
|
|
197
200
|
const _response = yield core.fetcher({
|
|
198
201
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, "/v0/webhooks"),
|
|
199
202
|
method: "POST",
|
|
200
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
203
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
201
204
|
contentType: "application/json",
|
|
202
205
|
requestType: "json",
|
|
203
206
|
body: serializers.CreateWebhookRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -210,6 +213,7 @@ class Webhooks {
|
|
|
210
213
|
unrecognizedObjectKeys: "passthrough",
|
|
211
214
|
allowUnrecognizedUnionMembers: true,
|
|
212
215
|
allowUnrecognizedEnumValues: true,
|
|
216
|
+
skipValidation: true,
|
|
213
217
|
breadcrumbsPrefix: ["response"],
|
|
214
218
|
});
|
|
215
219
|
}
|
|
@@ -220,6 +224,7 @@ class Webhooks {
|
|
|
220
224
|
unrecognizedObjectKeys: "passthrough",
|
|
221
225
|
allowUnrecognizedUnionMembers: true,
|
|
222
226
|
allowUnrecognizedEnumValues: true,
|
|
227
|
+
skipValidation: true,
|
|
223
228
|
breadcrumbsPrefix: ["response"],
|
|
224
229
|
}));
|
|
225
230
|
default:
|
|
@@ -259,7 +264,7 @@ class Webhooks {
|
|
|
259
264
|
const _response = yield core.fetcher({
|
|
260
265
|
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.AgentMailEnvironment.Production, `/v0/webhooks/${encodeURIComponent(serializers.WebhookId.jsonOrThrow(webhookId))}`),
|
|
261
266
|
method: "DELETE",
|
|
262
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
267
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.25", "User-Agent": "agentmail/0.0.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
263
268
|
contentType: "application/json",
|
|
264
269
|
requestType: "json",
|
|
265
270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -276,6 +281,7 @@ class Webhooks {
|
|
|
276
281
|
unrecognizedObjectKeys: "passthrough",
|
|
277
282
|
allowUnrecognizedUnionMembers: true,
|
|
278
283
|
allowUnrecognizedEnumValues: true,
|
|
284
|
+
skipValidation: true,
|
|
279
285
|
breadcrumbsPrefix: ["response"],
|
|
280
286
|
}));
|
|
281
287
|
default:
|
|
@@ -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
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as AgentMail from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const AttachmentContent: core.serialization.Schema<serializers.AttachmentContent.Raw, AgentMail.AttachmentContent>;
|
|
8
|
+
export declare namespace AttachmentContent {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AttachmentContent = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.AttachmentContent = core.serialization.string();
|
|
@@ -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),
|
|
@@ -9,6 +9,7 @@ import { SendMessageCc } from "./SendMessageCc";
|
|
|
9
9
|
import { SendMessageBcc } from "./SendMessageBcc";
|
|
10
10
|
import { MessageText } from "./MessageText";
|
|
11
11
|
import { MessageHtml } from "./MessageHtml";
|
|
12
|
+
import { SendMessageAttachments } from "./SendMessageAttachments";
|
|
12
13
|
export declare const ReplyToMessageRequest: core.serialization.ObjectSchema<serializers.ReplyToMessageRequest.Raw, AgentMail.ReplyToMessageRequest>;
|
|
13
14
|
export declare namespace ReplyToMessageRequest {
|
|
14
15
|
interface Raw {
|
|
@@ -17,5 +18,6 @@ export declare namespace ReplyToMessageRequest {
|
|
|
17
18
|
bcc?: SendMessageBcc.Raw | null;
|
|
18
19
|
text?: MessageText.Raw | null;
|
|
19
20
|
html?: MessageHtml.Raw | null;
|
|
21
|
+
attachments?: SendMessageAttachments.Raw | null;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -43,10 +43,12 @@ const SendMessageCc_1 = require("./SendMessageCc");
|
|
|
43
43
|
const SendMessageBcc_1 = require("./SendMessageBcc");
|
|
44
44
|
const MessageText_1 = require("./MessageText");
|
|
45
45
|
const MessageHtml_1 = require("./MessageHtml");
|
|
46
|
+
const SendMessageAttachments_1 = require("./SendMessageAttachments");
|
|
46
47
|
exports.ReplyToMessageRequest = core.serialization.object({
|
|
47
48
|
to: SendMessageTo_1.SendMessageTo.optional(),
|
|
48
49
|
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
49
50
|
bcc: SendMessageBcc_1.SendMessageBcc.optional(),
|
|
50
51
|
text: MessageText_1.MessageText.optional(),
|
|
51
52
|
html: MessageHtml_1.MessageHtml.optional(),
|
|
53
|
+
attachments: SendMessageAttachments_1.SendMessageAttachments.optional(),
|
|
52
54
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as AgentMail from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { AttachmentFilename } from "./AttachmentFilename";
|
|
8
|
+
import { AttachmentContentType } from "./AttachmentContentType";
|
|
9
|
+
import { AttachmentContent } from "./AttachmentContent";
|
|
10
|
+
export declare const SendAttachment: core.serialization.ObjectSchema<serializers.SendAttachment.Raw, AgentMail.SendAttachment>;
|
|
11
|
+
export declare namespace SendAttachment {
|
|
12
|
+
interface Raw {
|
|
13
|
+
filename: AttachmentFilename.Raw;
|
|
14
|
+
content_type?: AttachmentContentType.Raw | null;
|
|
15
|
+
content: AttachmentContent.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.SendAttachment = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const AttachmentFilename_1 = require("./AttachmentFilename");
|
|
42
|
+
const AttachmentContentType_1 = require("./AttachmentContentType");
|
|
43
|
+
const AttachmentContent_1 = require("./AttachmentContent");
|
|
44
|
+
exports.SendAttachment = core.serialization.object({
|
|
45
|
+
filename: AttachmentFilename_1.AttachmentFilename,
|
|
46
|
+
contentType: core.serialization.property("content_type", AttachmentContentType_1.AttachmentContentType.optional()),
|
|
47
|
+
content: AttachmentContent_1.AttachmentContent,
|
|
48
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as AgentMail from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { SendAttachment } from "./SendAttachment";
|
|
8
|
+
export declare const SendMessageAttachments: core.serialization.Schema<serializers.SendMessageAttachments.Raw, AgentMail.SendMessageAttachments>;
|
|
9
|
+
export declare namespace SendMessageAttachments {
|
|
10
|
+
type Raw = SendAttachment.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.SendMessageAttachments = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const SendAttachment_1 = require("./SendAttachment");
|
|
42
|
+
exports.SendMessageAttachments = core.serialization.list(SendAttachment_1.SendAttachment);
|
|
@@ -10,6 +10,7 @@ import { SendMessageBcc } from "./SendMessageBcc";
|
|
|
10
10
|
import { MessageSubject } from "./MessageSubject";
|
|
11
11
|
import { MessageText } from "./MessageText";
|
|
12
12
|
import { MessageHtml } from "./MessageHtml";
|
|
13
|
+
import { SendMessageAttachments } from "./SendMessageAttachments";
|
|
13
14
|
export declare const SendMessageRequest: core.serialization.ObjectSchema<serializers.SendMessageRequest.Raw, AgentMail.SendMessageRequest>;
|
|
14
15
|
export declare namespace SendMessageRequest {
|
|
15
16
|
interface Raw {
|
|
@@ -19,5 +20,6 @@ export declare namespace SendMessageRequest {
|
|
|
19
20
|
subject?: MessageSubject.Raw | null;
|
|
20
21
|
text?: MessageText.Raw | null;
|
|
21
22
|
html?: MessageHtml.Raw | null;
|
|
23
|
+
attachments?: SendMessageAttachments.Raw | null;
|
|
22
24
|
}
|
|
23
25
|
}
|
|
@@ -44,6 +44,7 @@ const SendMessageBcc_1 = require("./SendMessageBcc");
|
|
|
44
44
|
const MessageSubject_1 = require("./MessageSubject");
|
|
45
45
|
const MessageText_1 = require("./MessageText");
|
|
46
46
|
const MessageHtml_1 = require("./MessageHtml");
|
|
47
|
+
const SendMessageAttachments_1 = require("./SendMessageAttachments");
|
|
47
48
|
exports.SendMessageRequest = core.serialization.object({
|
|
48
49
|
to: SendMessageTo_1.SendMessageTo,
|
|
49
50
|
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
@@ -51,4 +52,5 @@ exports.SendMessageRequest = core.serialization.object({
|
|
|
51
52
|
subject: MessageSubject_1.MessageSubject.optional(),
|
|
52
53
|
text: MessageText_1.MessageText.optional(),
|
|
53
54
|
html: MessageHtml_1.MessageHtml.optional(),
|
|
55
|
+
attachments: SendMessageAttachments_1.SendMessageAttachments.optional(),
|
|
54
56
|
});
|
|
@@ -3,7 +3,9 @@ export * from "./AttachmentFilename";
|
|
|
3
3
|
export * from "./AttachmentContentType";
|
|
4
4
|
export * from "./AttachmentSize";
|
|
5
5
|
export * from "./AttachmentInline";
|
|
6
|
+
export * from "./AttachmentContent";
|
|
6
7
|
export * from "./Attachment";
|
|
8
|
+
export * from "./SendAttachment";
|
|
7
9
|
export * from "./MessageId";
|
|
8
10
|
export * from "./MessageEventId";
|
|
9
11
|
export * from "./MessageLabels";
|
|
@@ -27,6 +29,7 @@ export * from "./Addresses";
|
|
|
27
29
|
export * from "./SendMessageTo";
|
|
28
30
|
export * from "./SendMessageCc";
|
|
29
31
|
export * from "./SendMessageBcc";
|
|
32
|
+
export * from "./SendMessageAttachments";
|
|
30
33
|
export * from "./SendMessageRequest";
|
|
31
34
|
export * from "./SendMessageResponse";
|
|
32
35
|
export * from "./ReplyToMessageRequest";
|
|
@@ -19,7 +19,9 @@ __exportStar(require("./AttachmentFilename"), exports);
|
|
|
19
19
|
__exportStar(require("./AttachmentContentType"), exports);
|
|
20
20
|
__exportStar(require("./AttachmentSize"), exports);
|
|
21
21
|
__exportStar(require("./AttachmentInline"), exports);
|
|
22
|
+
__exportStar(require("./AttachmentContent"), exports);
|
|
22
23
|
__exportStar(require("./Attachment"), exports);
|
|
24
|
+
__exportStar(require("./SendAttachment"), exports);
|
|
23
25
|
__exportStar(require("./MessageId"), exports);
|
|
24
26
|
__exportStar(require("./MessageEventId"), exports);
|
|
25
27
|
__exportStar(require("./MessageLabels"), exports);
|
|
@@ -43,6 +45,7 @@ __exportStar(require("./Addresses"), exports);
|
|
|
43
45
|
__exportStar(require("./SendMessageTo"), exports);
|
|
44
46
|
__exportStar(require("./SendMessageCc"), exports);
|
|
45
47
|
__exportStar(require("./SendMessageBcc"), exports);
|
|
48
|
+
__exportStar(require("./SendMessageAttachments"), exports);
|
|
46
49
|
__exportStar(require("./SendMessageRequest"), exports);
|
|
47
50
|
__exportStar(require("./SendMessageResponse"), exports);
|
|
48
51
|
__exportStar(require("./ReplyToMessageRequest"), exports);
|
|
@@ -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/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