shipmail 0.4.6 → 0.4.8

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.d.cts CHANGED
@@ -55,9 +55,9 @@ type EmailRecipient = {
55
55
  readonly name?: string | null | undefined;
56
56
  };
57
57
  type EmailRecipientInput = EmailRecipient | string;
58
- declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "thread.needs_reply", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
58
+ declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
59
59
  type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
60
- declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "thread.needs_reply", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
60
+ declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
61
61
  type WebhookDeliveryEventType = (typeof WEBHOOK_DELIVERY_EVENT_TYPES)[number];
62
62
  type StatusResponse = {
63
63
  readonly status: string;
@@ -106,8 +106,10 @@ type AudienceFeed = {
106
106
  readonly title: string | null;
107
107
  readonly subtitle: string | null;
108
108
  readonly site_url: string | null;
109
+ readonly canonical_url: string | null;
109
110
  readonly author_name: string | null;
110
111
  readonly icon_url: string | null;
112
+ readonly entry_limit: number | null;
111
113
  /** Atom feed URL, or null when the feed is disabled. Anyone with this URL can read the feed. */
112
114
  readonly url: string | null;
113
115
  readonly updated_at: string;
@@ -138,8 +140,10 @@ type UpdateAudienceFeedParams = {
138
140
  readonly title?: string | null | undefined;
139
141
  readonly subtitle?: string | null | undefined;
140
142
  readonly site_url?: string | null | undefined;
143
+ readonly canonical_url?: string | null | undefined;
141
144
  readonly author_name?: string | null | undefined;
142
145
  readonly icon_url?: string | null | undefined;
146
+ readonly entry_limit?: number | null | undefined;
143
147
  };
144
148
  type ListAudiencesParams = PaginationParams;
145
149
  type AddSubscriberParams = {
package/dist/index.d.ts CHANGED
@@ -55,9 +55,9 @@ type EmailRecipient = {
55
55
  readonly name?: string | null | undefined;
56
56
  };
57
57
  type EmailRecipientInput = EmailRecipient | string;
58
- declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "thread.needs_reply", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
58
+ declare const WEBHOOK_EVENT_TYPES: readonly ["message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
59
59
  type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
60
- declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "thread.needs_reply", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
60
+ declare const WEBHOOK_DELIVERY_EVENT_TYPES: readonly ["webhook.test", "message.received", "message.sent", "message.delivered", "message.bounced", "message.complained", "mailbox.rule_matched", "domain.verified", "domain.verification_failed", "domain.degraded", "org.reputation_warning", "org.sending_throttled", "org.sending_suspended", "org.reputation_recovered"];
61
61
  type WebhookDeliveryEventType = (typeof WEBHOOK_DELIVERY_EVENT_TYPES)[number];
62
62
  type StatusResponse = {
63
63
  readonly status: string;
@@ -106,8 +106,10 @@ type AudienceFeed = {
106
106
  readonly title: string | null;
107
107
  readonly subtitle: string | null;
108
108
  readonly site_url: string | null;
109
+ readonly canonical_url: string | null;
109
110
  readonly author_name: string | null;
110
111
  readonly icon_url: string | null;
112
+ readonly entry_limit: number | null;
111
113
  /** Atom feed URL, or null when the feed is disabled. Anyone with this URL can read the feed. */
112
114
  readonly url: string | null;
113
115
  readonly updated_at: string;
@@ -138,8 +140,10 @@ type UpdateAudienceFeedParams = {
138
140
  readonly title?: string | null | undefined;
139
141
  readonly subtitle?: string | null | undefined;
140
142
  readonly site_url?: string | null | undefined;
143
+ readonly canonical_url?: string | null | undefined;
141
144
  readonly author_name?: string | null | undefined;
142
145
  readonly icon_url?: string | null | undefined;
146
+ readonly entry_limit?: number | null | undefined;
143
147
  };
144
148
  type ListAudiencesParams = PaginationParams;
145
149
  type AddSubscriberParams = {
package/dist/index.js CHANGED
@@ -1535,7 +1535,7 @@ var Webhooks = class extends ApiResource {
1535
1535
  };
1536
1536
 
1537
1537
  // src/version.ts
1538
- var VERSION = "0.4.6";
1538
+ var VERSION = "0.4.8";
1539
1539
 
1540
1540
  // src/client.ts
1541
1541
  var DEFAULT_BASE_URL = "https://shipmail.to/api/v1";
@@ -1709,7 +1709,6 @@ var WEBHOOK_EVENT_TYPES = [
1709
1709
  "message.delivered",
1710
1710
  "message.bounced",
1711
1711
  "message.complained",
1712
- "thread.needs_reply",
1713
1712
  "mailbox.rule_matched",
1714
1713
  "domain.verified",
1715
1714
  "domain.verification_failed",