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
|
@@ -6,7 +6,6 @@ import * as AgentMail from "../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* inboxId: "yourinbox@agentmail.to",
|
|
9
|
-
* organizationId: "123e4567-e89b-12d3-a456-426614174000",
|
|
10
9
|
* displayName: "Your Inbox",
|
|
11
10
|
* createdAt: "2024-01-15T09:30:00Z"
|
|
12
11
|
* }
|
|
@@ -14,15 +13,12 @@ import * as AgentMail from "../../../index";
|
|
|
14
13
|
* @example
|
|
15
14
|
* {
|
|
16
15
|
* inboxId: "helpfulagent123@yourdomain.com",
|
|
17
|
-
* organizationId: "123e4567-e89b-12d3-a456-426614174000",
|
|
18
16
|
* displayName: "Helpful Agent",
|
|
19
17
|
* createdAt: "2024-01-15T09:30:00Z"
|
|
20
18
|
* }
|
|
21
19
|
*/
|
|
22
20
|
export interface Inbox {
|
|
23
21
|
inboxId: AgentMail.InboxId;
|
|
24
|
-
/** ID of organization that owns inbox. */
|
|
25
|
-
organizationId: string;
|
|
26
22
|
displayName?: AgentMail.DisplayName;
|
|
27
23
|
/** Time at which inbox was created. */
|
|
28
24
|
createdAt: Date;
|
|
@@ -89,7 +89,7 @@ class Messages {
|
|
|
89
89
|
const _response = yield core.fetcher({
|
|
90
90
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages`),
|
|
91
91
|
method: "GET",
|
|
92
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
92
|
+
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),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -102,6 +102,7 @@ class Messages {
|
|
|
102
102
|
unrecognizedObjectKeys: "passthrough",
|
|
103
103
|
allowUnrecognizedUnionMembers: true,
|
|
104
104
|
allowUnrecognizedEnumValues: true,
|
|
105
|
+
skipValidation: true,
|
|
105
106
|
breadcrumbsPrefix: ["response"],
|
|
106
107
|
});
|
|
107
108
|
}
|
|
@@ -112,6 +113,7 @@ class Messages {
|
|
|
112
113
|
unrecognizedObjectKeys: "passthrough",
|
|
113
114
|
allowUnrecognizedUnionMembers: true,
|
|
114
115
|
allowUnrecognizedEnumValues: true,
|
|
116
|
+
skipValidation: true,
|
|
115
117
|
breadcrumbsPrefix: ["response"],
|
|
116
118
|
}));
|
|
117
119
|
default:
|
|
@@ -152,7 +154,7 @@ class Messages {
|
|
|
152
154
|
const _response = yield core.fetcher({
|
|
153
155
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}`),
|
|
154
156
|
method: "GET",
|
|
155
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
157
|
+
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),
|
|
156
158
|
contentType: "application/json",
|
|
157
159
|
requestType: "json",
|
|
158
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -164,6 +166,7 @@ class Messages {
|
|
|
164
166
|
unrecognizedObjectKeys: "passthrough",
|
|
165
167
|
allowUnrecognizedUnionMembers: true,
|
|
166
168
|
allowUnrecognizedEnumValues: true,
|
|
169
|
+
skipValidation: true,
|
|
167
170
|
breadcrumbsPrefix: ["response"],
|
|
168
171
|
});
|
|
169
172
|
}
|
|
@@ -174,6 +177,7 @@ class Messages {
|
|
|
174
177
|
unrecognizedObjectKeys: "passthrough",
|
|
175
178
|
allowUnrecognizedUnionMembers: true,
|
|
176
179
|
allowUnrecognizedEnumValues: true,
|
|
180
|
+
skipValidation: true,
|
|
177
181
|
breadcrumbsPrefix: ["response"],
|
|
178
182
|
}));
|
|
179
183
|
default:
|
|
@@ -207,7 +211,7 @@ class Messages {
|
|
|
207
211
|
const _response = yield core.fetcher({
|
|
208
212
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}/attachments/${encodeURIComponent(serializers.AttachmentId.jsonOrThrow(attachmentId))}`),
|
|
209
213
|
method: "GET",
|
|
210
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
214
|
+
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),
|
|
211
215
|
contentType: "application/json",
|
|
212
216
|
requestType: "json",
|
|
213
217
|
responseType: "streaming",
|
|
@@ -225,6 +229,7 @@ class Messages {
|
|
|
225
229
|
unrecognizedObjectKeys: "passthrough",
|
|
226
230
|
allowUnrecognizedUnionMembers: true,
|
|
227
231
|
allowUnrecognizedEnumValues: true,
|
|
232
|
+
skipValidation: true,
|
|
228
233
|
breadcrumbsPrefix: ["response"],
|
|
229
234
|
}));
|
|
230
235
|
default:
|
|
@@ -274,7 +279,7 @@ class Messages {
|
|
|
274
279
|
const _response = yield core.fetcher({
|
|
275
280
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/send`),
|
|
276
281
|
method: "POST",
|
|
277
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
282
|
+
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),
|
|
278
283
|
contentType: "application/json",
|
|
279
284
|
requestType: "json",
|
|
280
285
|
body: serializers.SendMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -287,6 +292,7 @@ class Messages {
|
|
|
287
292
|
unrecognizedObjectKeys: "passthrough",
|
|
288
293
|
allowUnrecognizedUnionMembers: true,
|
|
289
294
|
allowUnrecognizedEnumValues: true,
|
|
295
|
+
skipValidation: true,
|
|
290
296
|
breadcrumbsPrefix: ["response"],
|
|
291
297
|
});
|
|
292
298
|
}
|
|
@@ -297,6 +303,7 @@ class Messages {
|
|
|
297
303
|
unrecognizedObjectKeys: "passthrough",
|
|
298
304
|
allowUnrecognizedUnionMembers: true,
|
|
299
305
|
allowUnrecognizedEnumValues: true,
|
|
306
|
+
skipValidation: true,
|
|
300
307
|
breadcrumbsPrefix: ["response"],
|
|
301
308
|
}));
|
|
302
309
|
case 400:
|
|
@@ -304,6 +311,7 @@ class Messages {
|
|
|
304
311
|
unrecognizedObjectKeys: "passthrough",
|
|
305
312
|
allowUnrecognizedUnionMembers: true,
|
|
306
313
|
allowUnrecognizedEnumValues: true,
|
|
314
|
+
skipValidation: true,
|
|
307
315
|
breadcrumbsPrefix: ["response"],
|
|
308
316
|
}));
|
|
309
317
|
case 403:
|
|
@@ -311,6 +319,7 @@ class Messages {
|
|
|
311
319
|
unrecognizedObjectKeys: "passthrough",
|
|
312
320
|
allowUnrecognizedUnionMembers: true,
|
|
313
321
|
allowUnrecognizedEnumValues: true,
|
|
322
|
+
skipValidation: true,
|
|
314
323
|
breadcrumbsPrefix: ["response"],
|
|
315
324
|
}));
|
|
316
325
|
default:
|
|
@@ -359,7 +368,7 @@ class Messages {
|
|
|
359
368
|
const _response = yield core.fetcher({
|
|
360
369
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/messages/${encodeURIComponent(serializers.MessageId.jsonOrThrow(messageId))}/reply`),
|
|
361
370
|
method: "POST",
|
|
362
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
371
|
+
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),
|
|
363
372
|
contentType: "application/json",
|
|
364
373
|
requestType: "json",
|
|
365
374
|
body: serializers.ReplyToMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -372,6 +381,7 @@ class Messages {
|
|
|
372
381
|
unrecognizedObjectKeys: "passthrough",
|
|
373
382
|
allowUnrecognizedUnionMembers: true,
|
|
374
383
|
allowUnrecognizedEnumValues: true,
|
|
384
|
+
skipValidation: true,
|
|
375
385
|
breadcrumbsPrefix: ["response"],
|
|
376
386
|
});
|
|
377
387
|
}
|
|
@@ -382,6 +392,7 @@ class Messages {
|
|
|
382
392
|
unrecognizedObjectKeys: "passthrough",
|
|
383
393
|
allowUnrecognizedUnionMembers: true,
|
|
384
394
|
allowUnrecognizedEnumValues: true,
|
|
395
|
+
skipValidation: true,
|
|
385
396
|
breadcrumbsPrefix: ["response"],
|
|
386
397
|
}));
|
|
387
398
|
case 400:
|
|
@@ -389,6 +400,7 @@ class Messages {
|
|
|
389
400
|
unrecognizedObjectKeys: "passthrough",
|
|
390
401
|
allowUnrecognizedUnionMembers: true,
|
|
391
402
|
allowUnrecognizedEnumValues: true,
|
|
403
|
+
skipValidation: true,
|
|
392
404
|
breadcrumbsPrefix: ["response"],
|
|
393
405
|
}));
|
|
394
406
|
case 403:
|
|
@@ -396,6 +408,7 @@ class Messages {
|
|
|
396
408
|
unrecognizedObjectKeys: "passthrough",
|
|
397
409
|
allowUnrecognizedUnionMembers: true,
|
|
398
410
|
allowUnrecognizedEnumValues: true,
|
|
411
|
+
skipValidation: true,
|
|
399
412
|
breadcrumbsPrefix: ["response"],
|
|
400
413
|
}));
|
|
401
414
|
default:
|
|
@@ -6,8 +6,9 @@ import * as AgentMail from "../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* messages: [{
|
|
9
|
-
*
|
|
9
|
+
* inboxId: "yourinbox@agentmail.to",
|
|
10
10
|
* threadId: "thread_123",
|
|
11
|
+
* messageId: "msg_123",
|
|
11
12
|
* eventId: "event_123",
|
|
12
13
|
* labels: ["RECEIVED", "UNREAD"],
|
|
13
14
|
* timestamp: "2024-01-15T09:30:00Z",
|
|
@@ -25,8 +26,9 @@ import * as AgentMail from "../../../index";
|
|
|
25
26
|
* inline: false
|
|
26
27
|
* }]
|
|
27
28
|
* }, {
|
|
28
|
-
*
|
|
29
|
+
* inboxId: "yourinbox@agentmail.to",
|
|
29
30
|
* threadId: "thread_123",
|
|
31
|
+
* messageId: "msg_456",
|
|
30
32
|
* eventId: "event_456",
|
|
31
33
|
* labels: ["SENT"],
|
|
32
34
|
* timestamp: "2024-01-15T10:15:00Z",
|
|
@@ -28,11 +28,11 @@ import * as AgentMail from "../../../index";
|
|
|
28
28
|
* }],
|
|
29
29
|
* inReplyTo: "msg_122",
|
|
30
30
|
* references: ["msg_121", "msg_122"],
|
|
31
|
-
* inboxId: "yourinbox@agentmail.to"
|
|
32
|
-
* organizationId: "org_123"
|
|
31
|
+
* inboxId: "yourinbox@agentmail.to"
|
|
33
32
|
* }
|
|
34
33
|
*/
|
|
35
34
|
export interface Message {
|
|
35
|
+
inboxId: AgentMail.InboxId;
|
|
36
36
|
threadId: AgentMail.ThreadId;
|
|
37
37
|
messageId: AgentMail.MessageId;
|
|
38
38
|
eventId: AgentMail.MessageEventId;
|
|
@@ -50,6 +50,4 @@ export interface Message {
|
|
|
50
50
|
attachments?: AgentMail.MessageAttachments;
|
|
51
51
|
inReplyTo?: AgentMail.MessageInReplyTo;
|
|
52
52
|
references?: AgentMail.MessageReferences;
|
|
53
|
-
inboxId: AgentMail.InboxId;
|
|
54
|
-
organizationId: AgentMail.OrganizationId;
|
|
55
53
|
}
|
|
@@ -89,7 +89,7 @@ class Threads {
|
|
|
89
89
|
const _response = yield core.fetcher({
|
|
90
90
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/threads`),
|
|
91
91
|
method: "GET",
|
|
92
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
92
|
+
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),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -102,6 +102,7 @@ class Threads {
|
|
|
102
102
|
unrecognizedObjectKeys: "passthrough",
|
|
103
103
|
allowUnrecognizedUnionMembers: true,
|
|
104
104
|
allowUnrecognizedEnumValues: true,
|
|
105
|
+
skipValidation: true,
|
|
105
106
|
breadcrumbsPrefix: ["response"],
|
|
106
107
|
});
|
|
107
108
|
}
|
|
@@ -112,6 +113,7 @@ class Threads {
|
|
|
112
113
|
unrecognizedObjectKeys: "passthrough",
|
|
113
114
|
allowUnrecognizedUnionMembers: true,
|
|
114
115
|
allowUnrecognizedEnumValues: true,
|
|
116
|
+
skipValidation: true,
|
|
115
117
|
breadcrumbsPrefix: ["response"],
|
|
116
118
|
}));
|
|
117
119
|
default:
|
|
@@ -152,7 +154,7 @@ class Threads {
|
|
|
152
154
|
const _response = yield core.fetcher({
|
|
153
155
|
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/inboxes/${encodeURIComponent(serializers.InboxId.jsonOrThrow(inboxId))}/threads/${encodeURIComponent(serializers.ThreadId.jsonOrThrow(threadId))}`),
|
|
154
156
|
method: "GET",
|
|
155
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
157
|
+
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),
|
|
156
158
|
contentType: "application/json",
|
|
157
159
|
requestType: "json",
|
|
158
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -164,6 +166,7 @@ class Threads {
|
|
|
164
166
|
unrecognizedObjectKeys: "passthrough",
|
|
165
167
|
allowUnrecognizedUnionMembers: true,
|
|
166
168
|
allowUnrecognizedEnumValues: true,
|
|
169
|
+
skipValidation: true,
|
|
167
170
|
breadcrumbsPrefix: ["response"],
|
|
168
171
|
});
|
|
169
172
|
}
|
|
@@ -174,6 +177,7 @@ class Threads {
|
|
|
174
177
|
unrecognizedObjectKeys: "passthrough",
|
|
175
178
|
allowUnrecognizedUnionMembers: true,
|
|
176
179
|
allowUnrecognizedEnumValues: true,
|
|
180
|
+
skipValidation: true,
|
|
177
181
|
breadcrumbsPrefix: ["response"],
|
|
178
182
|
}));
|
|
179
183
|
default:
|
|
@@ -6,6 +6,7 @@ import * as AgentMail from "../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* threads: [{
|
|
9
|
+
* inboxId: "yourinbox@agentmail.to",
|
|
9
10
|
* threadId: "thread_123",
|
|
10
11
|
* eventId: "event_123",
|
|
11
12
|
* labels: ["RECEIVED", "UNREAD"],
|
|
@@ -16,6 +17,7 @@ import * as AgentMail from "../../../index";
|
|
|
16
17
|
* subject: "Project Discussion",
|
|
17
18
|
* preview: "Let's review the timeline for..."
|
|
18
19
|
* }, {
|
|
20
|
+
* inboxId: "yourinbox@agentmail.to",
|
|
19
21
|
* threadId: "thread_456",
|
|
20
22
|
* eventId: "event_456",
|
|
21
23
|
* labels: ["SENT"],
|
|
@@ -5,7 +5,6 @@ import * as AgentMail from "../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* organizationId: "org_123",
|
|
9
8
|
* inboxId: "yourinbox@agentmail.to",
|
|
10
9
|
* threadId: "thread_123",
|
|
11
10
|
* eventId: "event_123",
|
|
@@ -25,12 +24,12 @@ import * as AgentMail from "../../../index";
|
|
|
25
24
|
* from: "alice@example.com",
|
|
26
25
|
* to: ["bob@example.com"],
|
|
27
26
|
* text: "Let's review the timeline for the project.",
|
|
28
|
-
* inboxId: "yourinbox@agentmail.to"
|
|
29
|
-
* organizationId: "org_123"
|
|
27
|
+
* inboxId: "yourinbox@agentmail.to"
|
|
30
28
|
* }]
|
|
31
29
|
* }
|
|
32
30
|
*/
|
|
33
31
|
export interface Thread {
|
|
32
|
+
inboxId: AgentMail.InboxId;
|
|
34
33
|
threadId: AgentMail.ThreadId;
|
|
35
34
|
eventId: AgentMail.ThreadEventId;
|
|
36
35
|
labels: AgentMail.ThreadLabels;
|
|
@@ -43,6 +42,4 @@ export interface Thread {
|
|
|
43
42
|
attachments?: AgentMail.ThreadAttachments;
|
|
44
43
|
/** Messages in thread. Ordered by `sent_at` ascending. */
|
|
45
44
|
messages: AgentMail.Message[];
|
|
46
|
-
inboxId: AgentMail.InboxId;
|
|
47
|
-
organizationId: AgentMail.OrganizationId;
|
|
48
45
|
}
|
|
@@ -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);
|
|
@@ -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
|
});
|
|
@@ -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
|
}
|