agentmail 0.0.19 → 0.0.21
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 +3 -3
- package/api/resources/inboxes/types/Inbox.d.ts +1 -1
- package/api/resources/messages/client/Client.js +5 -5
- package/api/resources/messages/types/MessageInReplyTo.d.ts +1 -1
- package/api/resources/messages/types/MessageReferences.d.ts +1 -1
- package/api/resources/messages/types/MessageReplyTo.d.ts +1 -1
- package/api/resources/messages/types/SendMessageBcc.d.ts +1 -1
- package/api/resources/messages/types/SendMessageCc.d.ts +1 -1
- package/api/resources/threads/client/Client.js +2 -2
- package/dist/api/resources/inboxes/client/Client.js +3 -3
- package/dist/api/resources/inboxes/types/Inbox.d.ts +1 -1
- package/dist/api/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/messages/types/MessageInReplyTo.d.ts +1 -1
- package/dist/api/resources/messages/types/MessageReferences.d.ts +1 -1
- package/dist/api/resources/messages/types/MessageReplyTo.d.ts +1 -1
- package/dist/api/resources/messages/types/SendMessageBcc.d.ts +1 -1
- package/dist/api/resources/messages/types/SendMessageCc.d.ts +1 -1
- package/dist/api/resources/threads/client/Client.js +2 -2
- package/dist/serialization/resources/inboxes/types/Inbox.d.ts +1 -1
- package/dist/serialization/resources/inboxes/types/Inbox.js +1 -1
- package/dist/serialization/resources/messages/types/Message.d.ts +3 -3
- package/dist/serialization/resources/messages/types/Message.js +3 -3
- package/dist/serialization/resources/messages/types/MessageInReplyTo.d.ts +1 -1
- package/dist/serialization/resources/messages/types/MessageInReplyTo.js +1 -1
- package/dist/serialization/resources/messages/types/MessageReferences.d.ts +1 -1
- package/dist/serialization/resources/messages/types/MessageReferences.js +1 -1
- package/dist/serialization/resources/messages/types/MessageReplyTo.d.ts +1 -1
- package/dist/serialization/resources/messages/types/MessageReplyTo.js +1 -1
- package/dist/serialization/resources/messages/types/ReplyToMessageRequest.d.ts +2 -2
- package/dist/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -2
- package/dist/serialization/resources/messages/types/SendMessageBcc.d.ts +1 -1
- package/dist/serialization/resources/messages/types/SendMessageBcc.js +1 -1
- package/dist/serialization/resources/messages/types/SendMessageCc.d.ts +1 -1
- package/dist/serialization/resources/messages/types/SendMessageCc.js +1 -1
- package/dist/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -2
- package/dist/serialization/resources/messages/types/SendMessageRequest.js +2 -2
- 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 +1 -1
- package/serialization/resources/inboxes/types/Inbox.js +1 -1
- package/serialization/resources/messages/types/Message.d.ts +3 -3
- package/serialization/resources/messages/types/Message.js +3 -3
- package/serialization/resources/messages/types/MessageInReplyTo.d.ts +1 -1
- package/serialization/resources/messages/types/MessageInReplyTo.js +1 -1
- package/serialization/resources/messages/types/MessageReferences.d.ts +1 -1
- package/serialization/resources/messages/types/MessageReferences.js +1 -1
- package/serialization/resources/messages/types/MessageReplyTo.d.ts +1 -1
- package/serialization/resources/messages/types/MessageReplyTo.js +1 -1
- package/serialization/resources/messages/types/ReplyToMessageRequest.d.ts +2 -2
- package/serialization/resources/messages/types/ReplyToMessageRequest.js +2 -2
- package/serialization/resources/messages/types/SendMessageBcc.d.ts +1 -1
- package/serialization/resources/messages/types/SendMessageBcc.js +1 -1
- package/serialization/resources/messages/types/SendMessageCc.d.ts +1 -1
- package/serialization/resources/messages/types/SendMessageCc.js +1 -1
- package/serialization/resources/messages/types/SendMessageRequest.d.ts +2 -2
- package/serialization/resources/messages/types/SendMessageRequest.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -83,7 +83,7 @@ class Inboxes {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
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"),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -135,7 +135,7 @@ class Inboxes {
|
|
|
135
135
|
const _response = yield core.fetcher({
|
|
136
136
|
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))}`),
|
|
137
137
|
method: "GET",
|
|
138
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
138
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
requestType: "json",
|
|
141
141
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -204,7 +204,7 @@ class Inboxes {
|
|
|
204
204
|
const _response = yield core.fetcher({
|
|
205
205
|
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"),
|
|
206
206
|
method: "POST",
|
|
207
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
207
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
208
208
|
contentType: "application/json",
|
|
209
209
|
requestType: "json",
|
|
210
210
|
body: serializers.CreateInboxRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -23,7 +23,7 @@ export interface Inbox {
|
|
|
23
23
|
inboxId: AgentMail.InboxId;
|
|
24
24
|
/** ID of organization that owns inbox. */
|
|
25
25
|
organizationId: string;
|
|
26
|
-
displayName
|
|
26
|
+
displayName?: AgentMail.DisplayName;
|
|
27
27
|
/** Time at which inbox was created. */
|
|
28
28
|
createdAt: Date;
|
|
29
29
|
}
|
|
@@ -91,7 +91,7 @@ class Messages {
|
|
|
91
91
|
const _response = yield core.fetcher({
|
|
92
92
|
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`),
|
|
93
93
|
method: "GET",
|
|
94
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
94
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
queryParameters: _queryParams,
|
|
97
97
|
requestType: "json",
|
|
@@ -154,7 +154,7 @@ class Messages {
|
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
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))}`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
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.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -209,7 +209,7 @@ class Messages {
|
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
210
|
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))}`),
|
|
211
211
|
method: "GET",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
213
|
contentType: "application/json",
|
|
214
214
|
requestType: "json",
|
|
215
215
|
responseType: "streaming",
|
|
@@ -275,7 +275,7 @@ class Messages {
|
|
|
275
275
|
const _response = yield core.fetcher({
|
|
276
276
|
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`),
|
|
277
277
|
method: "POST",
|
|
278
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
278
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
requestType: "json",
|
|
281
281
|
body: serializers.SendMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -352,7 +352,7 @@ class Messages {
|
|
|
352
352
|
const _response = yield core.fetcher({
|
|
353
353
|
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`),
|
|
354
354
|
method: "POST",
|
|
355
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
355
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
356
356
|
contentType: "application/json",
|
|
357
357
|
requestType: "json",
|
|
358
358
|
body: serializers.ReplyToMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -91,7 +91,7 @@ class Threads {
|
|
|
91
91
|
const _response = yield core.fetcher({
|
|
92
92
|
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`),
|
|
93
93
|
method: "GET",
|
|
94
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
94
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
queryParameters: _queryParams,
|
|
97
97
|
requestType: "json",
|
|
@@ -154,7 +154,7 @@ class Threads {
|
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
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))}`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
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.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -83,7 +83,7 @@ class Inboxes {
|
|
|
83
83
|
const _response = yield core.fetcher({
|
|
84
84
|
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"),
|
|
85
85
|
method: "GET",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
86
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
queryParameters: _queryParams,
|
|
89
89
|
requestType: "json",
|
|
@@ -135,7 +135,7 @@ class Inboxes {
|
|
|
135
135
|
const _response = yield core.fetcher({
|
|
136
136
|
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))}`),
|
|
137
137
|
method: "GET",
|
|
138
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
138
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
requestType: "json",
|
|
141
141
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -204,7 +204,7 @@ class Inboxes {
|
|
|
204
204
|
const _response = yield core.fetcher({
|
|
205
205
|
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"),
|
|
206
206
|
method: "POST",
|
|
207
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
207
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
208
208
|
contentType: "application/json",
|
|
209
209
|
requestType: "json",
|
|
210
210
|
body: serializers.CreateInboxRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -23,7 +23,7 @@ export interface Inbox {
|
|
|
23
23
|
inboxId: AgentMail.InboxId;
|
|
24
24
|
/** ID of organization that owns inbox. */
|
|
25
25
|
organizationId: string;
|
|
26
|
-
displayName
|
|
26
|
+
displayName?: AgentMail.DisplayName;
|
|
27
27
|
/** Time at which inbox was created. */
|
|
28
28
|
createdAt: Date;
|
|
29
29
|
}
|
|
@@ -91,7 +91,7 @@ class Messages {
|
|
|
91
91
|
const _response = yield core.fetcher({
|
|
92
92
|
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`),
|
|
93
93
|
method: "GET",
|
|
94
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
94
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
queryParameters: _queryParams,
|
|
97
97
|
requestType: "json",
|
|
@@ -154,7 +154,7 @@ class Messages {
|
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
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))}`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
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.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -209,7 +209,7 @@ class Messages {
|
|
|
209
209
|
const _response = yield core.fetcher({
|
|
210
210
|
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))}`),
|
|
211
211
|
method: "GET",
|
|
212
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
212
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
213
|
contentType: "application/json",
|
|
214
214
|
requestType: "json",
|
|
215
215
|
responseType: "streaming",
|
|
@@ -275,7 +275,7 @@ class Messages {
|
|
|
275
275
|
const _response = yield core.fetcher({
|
|
276
276
|
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`),
|
|
277
277
|
method: "POST",
|
|
278
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
278
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
requestType: "json",
|
|
281
281
|
body: serializers.SendMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -352,7 +352,7 @@ class Messages {
|
|
|
352
352
|
const _response = yield core.fetcher({
|
|
353
353
|
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`),
|
|
354
354
|
method: "POST",
|
|
355
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
355
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
356
356
|
contentType: "application/json",
|
|
357
357
|
requestType: "json",
|
|
358
358
|
body: serializers.ReplyToMessageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -91,7 +91,7 @@ class Threads {
|
|
|
91
91
|
const _response = yield core.fetcher({
|
|
92
92
|
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`),
|
|
93
93
|
method: "GET",
|
|
94
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.
|
|
94
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "agentmail", "X-Fern-SDK-Version": "0.0.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
queryParameters: _queryParams,
|
|
97
97
|
requestType: "json",
|
|
@@ -154,7 +154,7 @@ class Threads {
|
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
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))}`),
|
|
156
156
|
method: "GET",
|
|
157
|
-
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.21", "User-Agent": "agentmail/0.0.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -43,6 +43,6 @@ const DisplayName_1 = require("./DisplayName");
|
|
|
43
43
|
exports.Inbox = core.serialization.object({
|
|
44
44
|
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
45
45
|
organizationId: core.serialization.property("organization_id", core.serialization.string()),
|
|
46
|
-
displayName: core.serialization.property("display_name", DisplayName_1.DisplayName),
|
|
46
|
+
displayName: core.serialization.property("display_name", DisplayName_1.DisplayName.optional()),
|
|
47
47
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
48
48
|
});
|
|
@@ -32,7 +32,7 @@ export declare namespace Message {
|
|
|
32
32
|
labels: MessageLabels.Raw;
|
|
33
33
|
timestamp: MessageTimestamp.Raw;
|
|
34
34
|
from: MessageFrom.Raw;
|
|
35
|
-
reply_to?: MessageReplyTo.Raw;
|
|
35
|
+
reply_to?: MessageReplyTo.Raw | null;
|
|
36
36
|
subject?: MessageSubject.Raw | null;
|
|
37
37
|
preview?: MessagePreview.Raw | null;
|
|
38
38
|
to: MessageTo.Raw;
|
|
@@ -41,8 +41,8 @@ export declare namespace Message {
|
|
|
41
41
|
text?: MessageText.Raw | null;
|
|
42
42
|
html?: MessageHtml.Raw | null;
|
|
43
43
|
attachments?: MessageAttachments.Raw | null;
|
|
44
|
-
in_reply_to?: MessageInReplyTo.Raw;
|
|
45
|
-
references?: MessageReferences.Raw;
|
|
44
|
+
in_reply_to?: MessageInReplyTo.Raw | null;
|
|
45
|
+
references?: MessageReferences.Raw | null;
|
|
46
46
|
inbox_id: InboxId.Raw;
|
|
47
47
|
organization_id: OrganizationId.Raw;
|
|
48
48
|
}
|
|
@@ -64,7 +64,7 @@ exports.Message = core.serialization.object({
|
|
|
64
64
|
labels: MessageLabels_1.MessageLabels,
|
|
65
65
|
timestamp: MessageTimestamp_1.MessageTimestamp,
|
|
66
66
|
from: MessageFrom_1.MessageFrom,
|
|
67
|
-
replyTo: core.serialization.property("reply_to", MessageReplyTo_1.MessageReplyTo),
|
|
67
|
+
replyTo: core.serialization.property("reply_to", MessageReplyTo_1.MessageReplyTo.optional()),
|
|
68
68
|
subject: MessageSubject_1.MessageSubject.optional(),
|
|
69
69
|
preview: MessagePreview_1.MessagePreview.optional(),
|
|
70
70
|
to: MessageTo_1.MessageTo,
|
|
@@ -73,8 +73,8 @@ exports.Message = core.serialization.object({
|
|
|
73
73
|
text: MessageText_1.MessageText.optional(),
|
|
74
74
|
html: MessageHtml_1.MessageHtml.optional(),
|
|
75
75
|
attachments: MessageAttachments_1.MessageAttachments.optional(),
|
|
76
|
-
inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo),
|
|
77
|
-
references: MessageReferences_1.MessageReferences,
|
|
76
|
+
inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo.optional()),
|
|
77
|
+
references: MessageReferences_1.MessageReferences.optional(),
|
|
78
78
|
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
79
79
|
organizationId: core.serialization.property("organization_id", OrganizationId_1.OrganizationId),
|
|
80
80
|
});
|
|
@@ -6,5 +6,5 @@ import * as AgentMail from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const MessageInReplyTo: core.serialization.Schema<serializers.MessageInReplyTo.Raw, AgentMail.MessageInReplyTo>;
|
|
8
8
|
export declare namespace MessageInReplyTo {
|
|
9
|
-
type Raw = string
|
|
9
|
+
type Raw = string;
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageInReplyTo = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.MessageInReplyTo = core.serialization.string()
|
|
41
|
+
exports.MessageInReplyTo = core.serialization.string();
|
|
@@ -6,5 +6,5 @@ import * as AgentMail from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const MessageReferences: core.serialization.Schema<serializers.MessageReferences.Raw, AgentMail.MessageReferences>;
|
|
8
8
|
export declare namespace MessageReferences {
|
|
9
|
-
type Raw = string[]
|
|
9
|
+
type Raw = string[];
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageReferences = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.MessageReferences = core.serialization.list(core.serialization.string())
|
|
41
|
+
exports.MessageReferences = core.serialization.list(core.serialization.string());
|
|
@@ -6,5 +6,5 @@ import * as AgentMail from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const MessageReplyTo: core.serialization.Schema<serializers.MessageReplyTo.Raw, AgentMail.MessageReplyTo>;
|
|
8
8
|
export declare namespace MessageReplyTo {
|
|
9
|
-
type Raw = string
|
|
9
|
+
type Raw = string;
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageReplyTo = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.MessageReplyTo = core.serialization.string()
|
|
41
|
+
exports.MessageReplyTo = core.serialization.string();
|
|
@@ -13,8 +13,8 @@ export declare const ReplyToMessageRequest: core.serialization.ObjectSchema<seri
|
|
|
13
13
|
export declare namespace ReplyToMessageRequest {
|
|
14
14
|
interface Raw {
|
|
15
15
|
to?: SendMessageTo.Raw | null;
|
|
16
|
-
cc?: SendMessageCc.Raw;
|
|
17
|
-
bcc?: SendMessageBcc.Raw;
|
|
16
|
+
cc?: SendMessageCc.Raw | null;
|
|
17
|
+
bcc?: SendMessageBcc.Raw | null;
|
|
18
18
|
text?: MessageText.Raw | null;
|
|
19
19
|
html?: MessageHtml.Raw | null;
|
|
20
20
|
}
|
|
@@ -45,8 +45,8 @@ const MessageText_1 = require("./MessageText");
|
|
|
45
45
|
const MessageHtml_1 = require("./MessageHtml");
|
|
46
46
|
exports.ReplyToMessageRequest = core.serialization.object({
|
|
47
47
|
to: SendMessageTo_1.SendMessageTo.optional(),
|
|
48
|
-
cc: SendMessageCc_1.SendMessageCc,
|
|
49
|
-
bcc: SendMessageBcc_1.SendMessageBcc,
|
|
48
|
+
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
49
|
+
bcc: SendMessageBcc_1.SendMessageBcc.optional(),
|
|
50
50
|
text: MessageText_1.MessageText.optional(),
|
|
51
51
|
html: MessageHtml_1.MessageHtml.optional(),
|
|
52
52
|
});
|
|
@@ -7,5 +7,5 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { Addresses } from "./Addresses";
|
|
8
8
|
export declare const SendMessageBcc: core.serialization.Schema<serializers.SendMessageBcc.Raw, AgentMail.SendMessageBcc>;
|
|
9
9
|
export declare namespace SendMessageBcc {
|
|
10
|
-
type Raw = Addresses.Raw
|
|
10
|
+
type Raw = Addresses.Raw;
|
|
11
11
|
}
|
|
@@ -7,5 +7,5 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { Addresses } from "./Addresses";
|
|
8
8
|
export declare const SendMessageCc: core.serialization.Schema<serializers.SendMessageCc.Raw, AgentMail.SendMessageCc>;
|
|
9
9
|
export declare namespace SendMessageCc {
|
|
10
|
-
type Raw = Addresses.Raw
|
|
10
|
+
type Raw = Addresses.Raw;
|
|
11
11
|
}
|
|
@@ -14,8 +14,8 @@ export declare const SendMessageRequest: core.serialization.ObjectSchema<seriali
|
|
|
14
14
|
export declare namespace SendMessageRequest {
|
|
15
15
|
interface Raw {
|
|
16
16
|
to: SendMessageTo.Raw;
|
|
17
|
-
cc?: SendMessageCc.Raw;
|
|
18
|
-
bcc?: SendMessageBcc.Raw;
|
|
17
|
+
cc?: SendMessageCc.Raw | null;
|
|
18
|
+
bcc?: SendMessageBcc.Raw | null;
|
|
19
19
|
subject?: MessageSubject.Raw | null;
|
|
20
20
|
text?: MessageText.Raw | null;
|
|
21
21
|
html?: MessageHtml.Raw | null;
|
|
@@ -46,8 +46,8 @@ const MessageText_1 = require("./MessageText");
|
|
|
46
46
|
const MessageHtml_1 = require("./MessageHtml");
|
|
47
47
|
exports.SendMessageRequest = core.serialization.object({
|
|
48
48
|
to: SendMessageTo_1.SendMessageTo,
|
|
49
|
-
cc: SendMessageCc_1.SendMessageCc,
|
|
50
|
-
bcc: SendMessageBcc_1.SendMessageBcc,
|
|
49
|
+
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
50
|
+
bcc: SendMessageBcc_1.SendMessageBcc.optional(),
|
|
51
51
|
subject: MessageSubject_1.MessageSubject.optional(),
|
|
52
52
|
text: MessageText_1.MessageText.optional(),
|
|
53
53
|
html: MessageHtml_1.MessageHtml.optional(),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.21";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -43,6 +43,6 @@ const DisplayName_1 = require("./DisplayName");
|
|
|
43
43
|
exports.Inbox = core.serialization.object({
|
|
44
44
|
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
45
45
|
organizationId: core.serialization.property("organization_id", core.serialization.string()),
|
|
46
|
-
displayName: core.serialization.property("display_name", DisplayName_1.DisplayName),
|
|
46
|
+
displayName: core.serialization.property("display_name", DisplayName_1.DisplayName.optional()),
|
|
47
47
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
48
48
|
});
|
|
@@ -32,7 +32,7 @@ export declare namespace Message {
|
|
|
32
32
|
labels: MessageLabels.Raw;
|
|
33
33
|
timestamp: MessageTimestamp.Raw;
|
|
34
34
|
from: MessageFrom.Raw;
|
|
35
|
-
reply_to?: MessageReplyTo.Raw;
|
|
35
|
+
reply_to?: MessageReplyTo.Raw | null;
|
|
36
36
|
subject?: MessageSubject.Raw | null;
|
|
37
37
|
preview?: MessagePreview.Raw | null;
|
|
38
38
|
to: MessageTo.Raw;
|
|
@@ -41,8 +41,8 @@ export declare namespace Message {
|
|
|
41
41
|
text?: MessageText.Raw | null;
|
|
42
42
|
html?: MessageHtml.Raw | null;
|
|
43
43
|
attachments?: MessageAttachments.Raw | null;
|
|
44
|
-
in_reply_to?: MessageInReplyTo.Raw;
|
|
45
|
-
references?: MessageReferences.Raw;
|
|
44
|
+
in_reply_to?: MessageInReplyTo.Raw | null;
|
|
45
|
+
references?: MessageReferences.Raw | null;
|
|
46
46
|
inbox_id: InboxId.Raw;
|
|
47
47
|
organization_id: OrganizationId.Raw;
|
|
48
48
|
}
|
|
@@ -64,7 +64,7 @@ exports.Message = core.serialization.object({
|
|
|
64
64
|
labels: MessageLabels_1.MessageLabels,
|
|
65
65
|
timestamp: MessageTimestamp_1.MessageTimestamp,
|
|
66
66
|
from: MessageFrom_1.MessageFrom,
|
|
67
|
-
replyTo: core.serialization.property("reply_to", MessageReplyTo_1.MessageReplyTo),
|
|
67
|
+
replyTo: core.serialization.property("reply_to", MessageReplyTo_1.MessageReplyTo.optional()),
|
|
68
68
|
subject: MessageSubject_1.MessageSubject.optional(),
|
|
69
69
|
preview: MessagePreview_1.MessagePreview.optional(),
|
|
70
70
|
to: MessageTo_1.MessageTo,
|
|
@@ -73,8 +73,8 @@ exports.Message = core.serialization.object({
|
|
|
73
73
|
text: MessageText_1.MessageText.optional(),
|
|
74
74
|
html: MessageHtml_1.MessageHtml.optional(),
|
|
75
75
|
attachments: MessageAttachments_1.MessageAttachments.optional(),
|
|
76
|
-
inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo),
|
|
77
|
-
references: MessageReferences_1.MessageReferences,
|
|
76
|
+
inReplyTo: core.serialization.property("in_reply_to", MessageInReplyTo_1.MessageInReplyTo.optional()),
|
|
77
|
+
references: MessageReferences_1.MessageReferences.optional(),
|
|
78
78
|
inboxId: core.serialization.property("inbox_id", InboxId_1.InboxId),
|
|
79
79
|
organizationId: core.serialization.property("organization_id", OrganizationId_1.OrganizationId),
|
|
80
80
|
});
|
|
@@ -6,5 +6,5 @@ import * as AgentMail from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const MessageInReplyTo: core.serialization.Schema<serializers.MessageInReplyTo.Raw, AgentMail.MessageInReplyTo>;
|
|
8
8
|
export declare namespace MessageInReplyTo {
|
|
9
|
-
type Raw = string
|
|
9
|
+
type Raw = string;
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageInReplyTo = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.MessageInReplyTo = core.serialization.string()
|
|
41
|
+
exports.MessageInReplyTo = core.serialization.string();
|
|
@@ -6,5 +6,5 @@ import * as AgentMail from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const MessageReferences: core.serialization.Schema<serializers.MessageReferences.Raw, AgentMail.MessageReferences>;
|
|
8
8
|
export declare namespace MessageReferences {
|
|
9
|
-
type Raw = string[]
|
|
9
|
+
type Raw = string[];
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageReferences = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.MessageReferences = core.serialization.list(core.serialization.string())
|
|
41
|
+
exports.MessageReferences = core.serialization.list(core.serialization.string());
|
|
@@ -6,5 +6,5 @@ import * as AgentMail from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const MessageReplyTo: core.serialization.Schema<serializers.MessageReplyTo.Raw, AgentMail.MessageReplyTo>;
|
|
8
8
|
export declare namespace MessageReplyTo {
|
|
9
|
-
type Raw = string
|
|
9
|
+
type Raw = string;
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.MessageReplyTo = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
exports.MessageReplyTo = core.serialization.string()
|
|
41
|
+
exports.MessageReplyTo = core.serialization.string();
|
|
@@ -13,8 +13,8 @@ export declare const ReplyToMessageRequest: core.serialization.ObjectSchema<seri
|
|
|
13
13
|
export declare namespace ReplyToMessageRequest {
|
|
14
14
|
interface Raw {
|
|
15
15
|
to?: SendMessageTo.Raw | null;
|
|
16
|
-
cc?: SendMessageCc.Raw;
|
|
17
|
-
bcc?: SendMessageBcc.Raw;
|
|
16
|
+
cc?: SendMessageCc.Raw | null;
|
|
17
|
+
bcc?: SendMessageBcc.Raw | null;
|
|
18
18
|
text?: MessageText.Raw | null;
|
|
19
19
|
html?: MessageHtml.Raw | null;
|
|
20
20
|
}
|
|
@@ -45,8 +45,8 @@ const MessageText_1 = require("./MessageText");
|
|
|
45
45
|
const MessageHtml_1 = require("./MessageHtml");
|
|
46
46
|
exports.ReplyToMessageRequest = core.serialization.object({
|
|
47
47
|
to: SendMessageTo_1.SendMessageTo.optional(),
|
|
48
|
-
cc: SendMessageCc_1.SendMessageCc,
|
|
49
|
-
bcc: SendMessageBcc_1.SendMessageBcc,
|
|
48
|
+
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
49
|
+
bcc: SendMessageBcc_1.SendMessageBcc.optional(),
|
|
50
50
|
text: MessageText_1.MessageText.optional(),
|
|
51
51
|
html: MessageHtml_1.MessageHtml.optional(),
|
|
52
52
|
});
|
|
@@ -7,5 +7,5 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { Addresses } from "./Addresses";
|
|
8
8
|
export declare const SendMessageBcc: core.serialization.Schema<serializers.SendMessageBcc.Raw, AgentMail.SendMessageBcc>;
|
|
9
9
|
export declare namespace SendMessageBcc {
|
|
10
|
-
type Raw = Addresses.Raw
|
|
10
|
+
type Raw = Addresses.Raw;
|
|
11
11
|
}
|
|
@@ -7,5 +7,5 @@ import * as core from "../../../../core";
|
|
|
7
7
|
import { Addresses } from "./Addresses";
|
|
8
8
|
export declare const SendMessageCc: core.serialization.Schema<serializers.SendMessageCc.Raw, AgentMail.SendMessageCc>;
|
|
9
9
|
export declare namespace SendMessageCc {
|
|
10
|
-
type Raw = Addresses.Raw
|
|
10
|
+
type Raw = Addresses.Raw;
|
|
11
11
|
}
|
|
@@ -14,8 +14,8 @@ export declare const SendMessageRequest: core.serialization.ObjectSchema<seriali
|
|
|
14
14
|
export declare namespace SendMessageRequest {
|
|
15
15
|
interface Raw {
|
|
16
16
|
to: SendMessageTo.Raw;
|
|
17
|
-
cc?: SendMessageCc.Raw;
|
|
18
|
-
bcc?: SendMessageBcc.Raw;
|
|
17
|
+
cc?: SendMessageCc.Raw | null;
|
|
18
|
+
bcc?: SendMessageBcc.Raw | null;
|
|
19
19
|
subject?: MessageSubject.Raw | null;
|
|
20
20
|
text?: MessageText.Raw | null;
|
|
21
21
|
html?: MessageHtml.Raw | null;
|
|
@@ -46,8 +46,8 @@ const MessageText_1 = require("./MessageText");
|
|
|
46
46
|
const MessageHtml_1 = require("./MessageHtml");
|
|
47
47
|
exports.SendMessageRequest = core.serialization.object({
|
|
48
48
|
to: SendMessageTo_1.SendMessageTo,
|
|
49
|
-
cc: SendMessageCc_1.SendMessageCc,
|
|
50
|
-
bcc: SendMessageBcc_1.SendMessageBcc,
|
|
49
|
+
cc: SendMessageCc_1.SendMessageCc.optional(),
|
|
50
|
+
bcc: SendMessageBcc_1.SendMessageBcc.optional(),
|
|
51
51
|
subject: MessageSubject_1.MessageSubject.optional(),
|
|
52
52
|
text: MessageText_1.MessageText.optional(),
|
|
53
53
|
html: MessageHtml_1.MessageHtml.optional(),
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.21";
|
package/version.js
CHANGED