shipmail 0.4.16 → 0.4.17
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -24
- package/dist/index.d.ts +46 -24
- package/dist/index.js +3 -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)}`,
|
|
@@ -1621,7 +1621,7 @@ var Webhooks = class extends ApiResource {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
|
|
1623
1623
|
// src/version.ts
|
|
1624
|
-
var VERSION = "0.4.
|
|
1624
|
+
var VERSION = "0.4.17";
|
|
1625
1625
|
|
|
1626
1626
|
// src/client.ts
|
|
1627
1627
|
var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
|