shipmail 0.4.16 → 0.4.18
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/README.md +2 -2
- package/dist/index.cjs +18 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -25
- package/dist/index.d.ts +61 -25
- package/dist/index.js +18 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -196,13 +196,13 @@ const inbox = await shipmail.mailboxes.listInboxMessages(mailboxId, {
|
|
|
196
196
|
const exact = await shipmail.mailboxes.getInboxMessage(mailboxId, inbox.data[0].id);
|
|
197
197
|
|
|
198
198
|
const queue = await shipmail.mailboxes.listInboxThreads(mailboxId, {
|
|
199
|
-
|
|
199
|
+
attention_state: "needs_reply",
|
|
200
200
|
after: "2025-07-20T00:00:00.000Z",
|
|
201
201
|
});
|
|
202
202
|
const candidate = queue.data[0];
|
|
203
203
|
const draft = await shipmail.mailboxes.createInboxReplyDraft(mailboxId, candidate.thread_id, {
|
|
204
204
|
text: "Thanks for the note.",
|
|
205
|
-
|
|
205
|
+
expected_version: candidate.version,
|
|
206
206
|
});
|
|
207
207
|
// Apply your approval policy before sending. Stale versions fail with 409 without delivery.
|
|
208
208
|
await shipmail.mailboxes.sendInboxReplyDraft(mailboxId, candidate.thread_id, draft.id);
|
package/dist/index.cjs
CHANGED
|
@@ -837,7 +837,7 @@ var Mailboxes = class extends ApiResource {
|
|
|
837
837
|
method: "GET",
|
|
838
838
|
path: `/mailboxes/${encodeURIComponent(id)}/inbox/threads`,
|
|
839
839
|
query: {
|
|
840
|
-
|
|
840
|
+
attention_state: params?.attention_state,
|
|
841
841
|
sort_by: params?.sort_by,
|
|
842
842
|
order: params?.order,
|
|
843
843
|
after: params?.after,
|
|
@@ -855,7 +855,7 @@ var Mailboxes = class extends ApiResource {
|
|
|
855
855
|
methodOptions: options
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
|
|
858
|
+
updateInboxThreadAttention(id, threadId, params, options) {
|
|
859
859
|
return this.client.request({
|
|
860
860
|
method: "PATCH",
|
|
861
861
|
path: `/mailboxes/${encodeURIComponent(id)}/inbox/threads/${encodeURIComponent(threadId)}`,
|
|
@@ -1055,6 +1055,21 @@ var Mailboxes = class extends ApiResource {
|
|
|
1055
1055
|
methodOptions: options
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
+
completeImportUpload(id, fileId, params, options) {
|
|
1059
|
+
return this.client.request({
|
|
1060
|
+
method: "POST",
|
|
1061
|
+
path: `/mailboxes/${encodeURIComponent(id)}/imports/files/${encodeURIComponent(fileId)}/complete`,
|
|
1062
|
+
body: params,
|
|
1063
|
+
methodOptions: options
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
abortImportUpload(id, fileId, options) {
|
|
1067
|
+
return this.client.request({
|
|
1068
|
+
method: "DELETE",
|
|
1069
|
+
path: `/mailboxes/${encodeURIComponent(id)}/imports/files/${encodeURIComponent(fileId)}`,
|
|
1070
|
+
methodOptions: options
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1058
1073
|
};
|
|
1059
1074
|
|
|
1060
1075
|
// src/resources/messages.ts
|
|
@@ -1621,7 +1636,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1621
1636
|
};
|
|
1622
1637
|
|
|
1623
1638
|
// src/version.ts
|
|
1624
|
-
var VERSION = "0.4.
|
|
1639
|
+
var VERSION = "0.4.18";
|
|
1625
1640
|
|
|
1626
1641
|
// src/client.ts
|
|
1627
1642
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|