shipmail 0.2.3 → 0.3.0

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 CHANGED
@@ -159,8 +159,6 @@ const folder = await shipmail.mailboxes.createFolder("mbx_...", {
159
159
  await shipmail.mailboxes.updateFolder("mbx_...", folder.id, { name: "VIP Clients" });
160
160
  await shipmail.mailboxes.deleteFolder("mbx_...", folder.id);
161
161
  const identities = await shipmail.mailboxes.listIdentities("mbx_...");
162
- const rules = await shipmail.mailboxes.getRules("mbx_...");
163
- await shipmail.mailboxes.updateRules("mbx_...", { rules: rules.rules });
164
162
  await shipmail.mailboxes.updateSpamFilter("mbx_...", { threshold: 8 });
165
163
  await shipmail.mailboxes.delete("mbx_...");
166
164
 
@@ -216,7 +214,7 @@ await shipmail.messages.reply("msg_...", {
216
214
 
217
215
  ## Sandbox
218
216
 
219
- Create a test API key (`sm_test_...`) to simulate email without contacting real recipients. Test messages, threads, rules, webhooks, quota, suppressions, and reputation are isolated from live mode.
217
+ Create a test API key (`sm_test_...`) to simulate email without contacting real recipients. Test messages, threads, Assistant automations, webhooks, quota, suppressions, and reputation are isolated from live mode.
220
218
 
221
219
  ```ts
222
220
  const testClient = new ShipMailClient("sm_test_...");
package/dist/index.cjs CHANGED
@@ -767,21 +767,6 @@ var Mailboxes = class extends ApiResource {
767
767
  methodOptions: options
768
768
  });
769
769
  }
770
- getRules(id, options) {
771
- return this.client.request({
772
- method: "GET",
773
- path: `/mailboxes/${encodeURIComponent(id)}/rules`,
774
- methodOptions: options
775
- });
776
- }
777
- updateRules(id, params, options) {
778
- return this.client.request({
779
- method: "PUT",
780
- path: `/mailboxes/${encodeURIComponent(id)}/rules`,
781
- body: params,
782
- methodOptions: options
783
- });
784
- }
785
770
  listForwarding(id, options) {
786
771
  return this.client.request({
787
772
  method: "GET",
@@ -1355,7 +1340,7 @@ var Webhooks = class extends ApiResource {
1355
1340
  };
1356
1341
 
1357
1342
  // src/version.ts
1358
- var VERSION = "0.2.3";
1343
+ var VERSION = "0.3.0";
1359
1344
 
1360
1345
  // src/client.ts
1361
1346
  var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
@@ -1528,7 +1513,6 @@ var WEBHOOK_EVENT_TYPES = [
1528
1513
  "message.bounced",
1529
1514
  "message.complained",
1530
1515
  "thread.needs_reply",
1531
- "mailbox.rule_matched",
1532
1516
  "domain.verified",
1533
1517
  "domain.verification_failed",
1534
1518
  "domain.degraded",
@@ -1556,7 +1540,7 @@ var MESSAGE_SOURCES = [
1556
1540
  "dashboard",
1557
1541
  "inbound",
1558
1542
  "smtp",
1559
- "agent"
1543
+ "assistant"
1560
1544
  ];
1561
1545
  var WEBHOOK_DELIVERY_STATUSES = ["pending", "delivered", "failed"];
1562
1546