@marlinjai/mail-sdk 0.16.0 → 0.17.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/dist/index.d.mts CHANGED
@@ -382,7 +382,7 @@ declare function createNamespaces(config: CoreConfig): {
382
382
  id: string;
383
383
  details: Record<string, unknown>;
384
384
  created_at: string;
385
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
385
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
386
386
  actor: {
387
387
  type: "member";
388
388
  subject: string;
@@ -3581,6 +3581,13 @@ declare function createNamespaces(config: CoreConfig): {
3581
3581
  };
3582
3582
  sellable: boolean;
3583
3583
  }[];
3584
+ addons: {
3585
+ sending_domain: {
3586
+ currency: string;
3587
+ monthly_price_cents: number;
3588
+ sellable: boolean;
3589
+ };
3590
+ };
3584
3591
  }>;
3585
3592
  subscription: (opts?: RequestOpts) => Promise<{
3586
3593
  status: "cancelled" | "active" | "trialing" | "past_due";
@@ -3590,6 +3597,7 @@ declare function createNamespaces(config: CoreConfig): {
3590
3597
  current_period_end: string;
3591
3598
  cancel_at_period_end: boolean;
3592
3599
  billing_exempt: boolean;
3600
+ extra_sending_domains: number;
3593
3601
  }>;
3594
3602
  usage: (opts?: RequestOpts) => Promise<{
3595
3603
  warnings: {
@@ -3612,6 +3620,17 @@ declare function createNamespaces(config: CoreConfig): {
3612
3620
  portal: (body: RouteBody<"billing.portal">, opts?: RequestOpts) => Promise<{
3613
3621
  url: string;
3614
3622
  }>;
3623
+ /** How many own sending domains the workspace pays for beyond its plan's (the add-on, monthly). */
3624
+ setExtraSendingDomains: (body: RouteBody<"billing.setExtraSendingDomains">, opts?: RequestOpts) => Promise<{
3625
+ status: "cancelled" | "active" | "trialing" | "past_due";
3626
+ workspace_id: string;
3627
+ plan: "free" | "starter" | "growth" | "design_partner";
3628
+ current_period_start: string;
3629
+ current_period_end: string;
3630
+ cancel_at_period_end: boolean;
3631
+ billing_exempt: boolean;
3632
+ extra_sending_domains: number;
3633
+ }>;
3615
3634
  };
3616
3635
  automations: {
3617
3636
  list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
package/dist/index.d.ts CHANGED
@@ -382,7 +382,7 @@ declare function createNamespaces(config: CoreConfig): {
382
382
  id: string;
383
383
  details: Record<string, unknown>;
384
384
  created_at: string;
385
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
385
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
386
386
  actor: {
387
387
  type: "member";
388
388
  subject: string;
@@ -3581,6 +3581,13 @@ declare function createNamespaces(config: CoreConfig): {
3581
3581
  };
3582
3582
  sellable: boolean;
3583
3583
  }[];
3584
+ addons: {
3585
+ sending_domain: {
3586
+ currency: string;
3587
+ monthly_price_cents: number;
3588
+ sellable: boolean;
3589
+ };
3590
+ };
3584
3591
  }>;
3585
3592
  subscription: (opts?: RequestOpts) => Promise<{
3586
3593
  status: "cancelled" | "active" | "trialing" | "past_due";
@@ -3590,6 +3597,7 @@ declare function createNamespaces(config: CoreConfig): {
3590
3597
  current_period_end: string;
3591
3598
  cancel_at_period_end: boolean;
3592
3599
  billing_exempt: boolean;
3600
+ extra_sending_domains: number;
3593
3601
  }>;
3594
3602
  usage: (opts?: RequestOpts) => Promise<{
3595
3603
  warnings: {
@@ -3612,6 +3620,17 @@ declare function createNamespaces(config: CoreConfig): {
3612
3620
  portal: (body: RouteBody<"billing.portal">, opts?: RequestOpts) => Promise<{
3613
3621
  url: string;
3614
3622
  }>;
3623
+ /** How many own sending domains the workspace pays for beyond its plan's (the add-on, monthly). */
3624
+ setExtraSendingDomains: (body: RouteBody<"billing.setExtraSendingDomains">, opts?: RequestOpts) => Promise<{
3625
+ status: "cancelled" | "active" | "trialing" | "past_due";
3626
+ workspace_id: string;
3627
+ plan: "free" | "starter" | "growth" | "design_partner";
3628
+ current_period_start: string;
3629
+ current_period_end: string;
3630
+ cancel_at_period_end: boolean;
3631
+ billing_exempt: boolean;
3632
+ extra_sending_domains: number;
3633
+ }>;
3615
3634
  };
3616
3635
  automations: {
3617
3636
  list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
package/dist/index.js CHANGED
@@ -679,7 +679,9 @@ function createNamespaces(config) {
679
679
  subscription: (opts) => execute(config, "billing.subscription", {}, opts),
680
680
  usage: (opts) => execute(config, "billing.usage", {}, opts),
681
681
  checkout: (body, opts) => execute(config, "billing.checkout", { body }, opts),
682
- portal: (body, opts) => execute(config, "billing.portal", { body }, opts)
682
+ portal: (body, opts) => execute(config, "billing.portal", { body }, opts),
683
+ /** How many own sending domains the workspace pays for beyond its plan's (the add-on, monthly). */
684
+ setExtraSendingDomains: (body, opts) => execute(config, "billing.setExtraSendingDomains", { body }, opts)
683
685
  },
684
686
  // A1: automations.
685
687
  automations: {
package/dist/index.mjs CHANGED
@@ -663,7 +663,9 @@ function createNamespaces(config) {
663
663
  subscription: (opts) => execute(config, "billing.subscription", {}, opts),
664
664
  usage: (opts) => execute(config, "billing.usage", {}, opts),
665
665
  checkout: (body, opts) => execute(config, "billing.checkout", { body }, opts),
666
- portal: (body, opts) => execute(config, "billing.portal", { body }, opts)
666
+ portal: (body, opts) => execute(config, "billing.portal", { body }, opts),
667
+ /** How many own sending domains the workspace pays for beyond its plan's (the add-on, monthly). */
668
+ setExtraSendingDomains: (body, opts) => execute(config, "billing.setExtraSendingDomains", { body }, opts)
667
669
  },
668
670
  // A1: automations.
669
671
  automations: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.16.0",
6
+ "version": "0.17.0",
7
7
  "description": "Typed client for the Lumitra Mail v1 API: Node and edge runtimes, retries with idempotency, cursor pagination, webhook verification",
8
8
  "license": "MIT",
9
9
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "LICENSE"
33
33
  ],
34
34
  "dependencies": {
35
- "@marlinjai/mail-contract": "^0.16.0"
35
+ "@marlinjai/mail-contract": "^0.17.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "zod": "^3.25.0"