resend 6.32.1-preview-inboxes.2 → 6.32.1-preview-inboxes.4
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/dist/index.cjs +4 -3
- package/dist/index.d.cts +4 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -64,7 +64,7 @@ const INBOX_LABEL_COLORS = [
|
|
|
64
64
|
];
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region package.json
|
|
67
|
-
var version = "6.32.1-preview-inboxes.
|
|
67
|
+
var version = "6.32.1-preview-inboxes.4";
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/common/utils/build-pagination-query.ts
|
|
70
70
|
function buildPaginationUrl(base, options) {
|
|
@@ -1134,13 +1134,14 @@ var InboxThreadEmails = class {
|
|
|
1134
1134
|
return this.resend.get(`/inboxes/${inboxId}/threads/${threadId}/emails/${emailId}`, requestOptions);
|
|
1135
1135
|
}
|
|
1136
1136
|
async reply(payload, options = {}) {
|
|
1137
|
-
const { inboxId, threadId, emailId, cc, bcc, html, text, subject } = payload;
|
|
1137
|
+
const { inboxId, threadId, emailId, cc, bcc, html, text, subject, replyAll } = payload;
|
|
1138
1138
|
return this.resend.post(`/inboxes/${inboxId}/threads/${threadId}/emails/${emailId}/reply`, {
|
|
1139
1139
|
cc,
|
|
1140
1140
|
bcc,
|
|
1141
1141
|
html,
|
|
1142
1142
|
text,
|
|
1143
|
-
subject
|
|
1143
|
+
subject,
|
|
1144
|
+
reply_all: replyAll
|
|
1144
1145
|
}, options);
|
|
1145
1146
|
}
|
|
1146
1147
|
async forward(payload, options = {}) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1880,7 +1880,7 @@ interface SendInboxDraftOptions {
|
|
|
1880
1880
|
inboxId: string;
|
|
1881
1881
|
draftId: string;
|
|
1882
1882
|
}
|
|
1883
|
-
interface SendInboxDraftRequestOptions extends PostOptions {}
|
|
1883
|
+
interface SendInboxDraftRequestOptions extends PostOptions, IdempotentRequest {}
|
|
1884
1884
|
interface SendInboxDraftResponseSuccess {
|
|
1885
1885
|
object: 'inbox_draft';
|
|
1886
1886
|
id: string;
|
|
@@ -2041,8 +2041,9 @@ type ReplyInboxThreadEmailOptions = {
|
|
|
2041
2041
|
cc?: string | string[];
|
|
2042
2042
|
bcc?: string | string[];
|
|
2043
2043
|
subject?: string;
|
|
2044
|
+
replyAll?: boolean;
|
|
2044
2045
|
};
|
|
2045
|
-
interface ReplyInboxThreadEmailRequestOptions extends PostOptions {}
|
|
2046
|
+
interface ReplyInboxThreadEmailRequestOptions extends PostOptions, IdempotentRequest {}
|
|
2046
2047
|
type ReplyInboxThreadEmailResponseSuccess = InboxMessage & {
|
|
2047
2048
|
direction: 'outbound';
|
|
2048
2049
|
email_id: string;
|
|
@@ -2061,7 +2062,7 @@ interface ForwardInboxThreadEmailOptions {
|
|
|
2061
2062
|
text?: string;
|
|
2062
2063
|
subject?: string;
|
|
2063
2064
|
}
|
|
2064
|
-
interface ForwardInboxThreadEmailRequestOptions extends PostOptions {}
|
|
2065
|
+
interface ForwardInboxThreadEmailRequestOptions extends PostOptions, IdempotentRequest {}
|
|
2065
2066
|
type ForwardInboxThreadEmailResponseSuccess = ReplyInboxThreadEmailResponseSuccess;
|
|
2066
2067
|
type ForwardInboxThreadEmailResponse = Response<ForwardInboxThreadEmailResponseSuccess>;
|
|
2067
2068
|
//#endregion
|
package/dist/index.d.mts
CHANGED
|
@@ -1880,7 +1880,7 @@ interface SendInboxDraftOptions {
|
|
|
1880
1880
|
inboxId: string;
|
|
1881
1881
|
draftId: string;
|
|
1882
1882
|
}
|
|
1883
|
-
interface SendInboxDraftRequestOptions extends PostOptions {}
|
|
1883
|
+
interface SendInboxDraftRequestOptions extends PostOptions, IdempotentRequest {}
|
|
1884
1884
|
interface SendInboxDraftResponseSuccess {
|
|
1885
1885
|
object: 'inbox_draft';
|
|
1886
1886
|
id: string;
|
|
@@ -2041,8 +2041,9 @@ type ReplyInboxThreadEmailOptions = {
|
|
|
2041
2041
|
cc?: string | string[];
|
|
2042
2042
|
bcc?: string | string[];
|
|
2043
2043
|
subject?: string;
|
|
2044
|
+
replyAll?: boolean;
|
|
2044
2045
|
};
|
|
2045
|
-
interface ReplyInboxThreadEmailRequestOptions extends PostOptions {}
|
|
2046
|
+
interface ReplyInboxThreadEmailRequestOptions extends PostOptions, IdempotentRequest {}
|
|
2046
2047
|
type ReplyInboxThreadEmailResponseSuccess = InboxMessage & {
|
|
2047
2048
|
direction: 'outbound';
|
|
2048
2049
|
email_id: string;
|
|
@@ -2061,7 +2062,7 @@ interface ForwardInboxThreadEmailOptions {
|
|
|
2061
2062
|
text?: string;
|
|
2062
2063
|
subject?: string;
|
|
2063
2064
|
}
|
|
2064
|
-
interface ForwardInboxThreadEmailRequestOptions extends PostOptions {}
|
|
2065
|
+
interface ForwardInboxThreadEmailRequestOptions extends PostOptions, IdempotentRequest {}
|
|
2065
2066
|
type ForwardInboxThreadEmailResponseSuccess = ReplyInboxThreadEmailResponseSuccess;
|
|
2066
2067
|
type ForwardInboxThreadEmailResponse = Response<ForwardInboxThreadEmailResponseSuccess>;
|
|
2067
2068
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ const INBOX_LABEL_COLORS = [
|
|
|
40
40
|
];
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region package.json
|
|
43
|
-
var version = "6.32.1-preview-inboxes.
|
|
43
|
+
var version = "6.32.1-preview-inboxes.4";
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/common/utils/build-pagination-query.ts
|
|
46
46
|
function buildPaginationUrl(base, options) {
|
|
@@ -1110,13 +1110,14 @@ var InboxThreadEmails = class {
|
|
|
1110
1110
|
return this.resend.get(`/inboxes/${inboxId}/threads/${threadId}/emails/${emailId}`, requestOptions);
|
|
1111
1111
|
}
|
|
1112
1112
|
async reply(payload, options = {}) {
|
|
1113
|
-
const { inboxId, threadId, emailId, cc, bcc, html, text, subject } = payload;
|
|
1113
|
+
const { inboxId, threadId, emailId, cc, bcc, html, text, subject, replyAll } = payload;
|
|
1114
1114
|
return this.resend.post(`/inboxes/${inboxId}/threads/${threadId}/emails/${emailId}/reply`, {
|
|
1115
1115
|
cc,
|
|
1116
1116
|
bcc,
|
|
1117
1117
|
html,
|
|
1118
1118
|
text,
|
|
1119
|
-
subject
|
|
1119
|
+
subject,
|
|
1120
|
+
reply_all: replyAll
|
|
1120
1121
|
}, options);
|
|
1121
1122
|
}
|
|
1122
1123
|
async forward(payload, options = {}) {
|