@marlinjai/mail-sdk 0.21.0 → 0.22.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.records_written" | "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" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.refunded" | "domain_order.cancelled" | "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.records_written" | "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" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "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;
@@ -3656,13 +3656,14 @@ declare function createNamespaces(config: CoreConfig): {
3656
3656
  domainOrders: {
3657
3657
  create: (body: RouteBody<"domainOrders.create">, opts?: RequestOpts) => Promise<{
3658
3658
  id: string;
3659
+ kind: "sending" | "domain_only";
3659
3660
  created_at: string;
3660
3661
  updated_at: string;
3661
3662
  last_error: string | null;
3662
3663
  expires_at: string | null;
3663
3664
  currency: "EUR";
3664
- from_name: string;
3665
- from_email: string;
3665
+ from_name: string | null;
3666
+ from_email: string | null;
3666
3667
  domain: string;
3667
3668
  price_cents: number;
3668
3669
  renewal_price_cents: number;
@@ -3676,13 +3677,14 @@ declare function createNamespaces(config: CoreConfig): {
3676
3677
  list: (query?: RouteQuery<"domainOrders.list">, opts?: RequestOpts) => Promise<{
3677
3678
  data: {
3678
3679
  id: string;
3680
+ kind: "sending" | "domain_only";
3679
3681
  created_at: string;
3680
3682
  updated_at: string;
3681
3683
  last_error: string | null;
3682
3684
  expires_at: string | null;
3683
3685
  currency: "EUR";
3684
- from_name: string;
3685
- from_email: string;
3686
+ from_name: string | null;
3687
+ from_email: string | null;
3686
3688
  domain: string;
3687
3689
  price_cents: number;
3688
3690
  renewal_price_cents: number;
@@ -3697,13 +3699,14 @@ declare function createNamespaces(config: CoreConfig): {
3697
3699
  }>;
3698
3700
  get: (id: string, opts?: RequestOpts) => Promise<{
3699
3701
  id: string;
3702
+ kind: "sending" | "domain_only";
3700
3703
  created_at: string;
3701
3704
  updated_at: string;
3702
3705
  last_error: string | null;
3703
3706
  expires_at: string | null;
3704
3707
  currency: "EUR";
3705
- from_name: string;
3706
- from_email: string;
3708
+ from_name: string | null;
3709
+ from_email: string | null;
3707
3710
  domain: string;
3708
3711
  price_cents: number;
3709
3712
  renewal_price_cents: number;
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.records_written" | "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" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.refunded" | "domain_order.cancelled" | "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.records_written" | "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" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "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;
@@ -3656,13 +3656,14 @@ declare function createNamespaces(config: CoreConfig): {
3656
3656
  domainOrders: {
3657
3657
  create: (body: RouteBody<"domainOrders.create">, opts?: RequestOpts) => Promise<{
3658
3658
  id: string;
3659
+ kind: "sending" | "domain_only";
3659
3660
  created_at: string;
3660
3661
  updated_at: string;
3661
3662
  last_error: string | null;
3662
3663
  expires_at: string | null;
3663
3664
  currency: "EUR";
3664
- from_name: string;
3665
- from_email: string;
3665
+ from_name: string | null;
3666
+ from_email: string | null;
3666
3667
  domain: string;
3667
3668
  price_cents: number;
3668
3669
  renewal_price_cents: number;
@@ -3676,13 +3677,14 @@ declare function createNamespaces(config: CoreConfig): {
3676
3677
  list: (query?: RouteQuery<"domainOrders.list">, opts?: RequestOpts) => Promise<{
3677
3678
  data: {
3678
3679
  id: string;
3680
+ kind: "sending" | "domain_only";
3679
3681
  created_at: string;
3680
3682
  updated_at: string;
3681
3683
  last_error: string | null;
3682
3684
  expires_at: string | null;
3683
3685
  currency: "EUR";
3684
- from_name: string;
3685
- from_email: string;
3686
+ from_name: string | null;
3687
+ from_email: string | null;
3686
3688
  domain: string;
3687
3689
  price_cents: number;
3688
3690
  renewal_price_cents: number;
@@ -3697,13 +3699,14 @@ declare function createNamespaces(config: CoreConfig): {
3697
3699
  }>;
3698
3700
  get: (id: string, opts?: RequestOpts) => Promise<{
3699
3701
  id: string;
3702
+ kind: "sending" | "domain_only";
3700
3703
  created_at: string;
3701
3704
  updated_at: string;
3702
3705
  last_error: string | null;
3703
3706
  expires_at: string | null;
3704
3707
  currency: "EUR";
3705
- from_name: string;
3706
- from_email: string;
3708
+ from_name: string | null;
3709
+ from_email: string | null;
3707
3710
  domain: string;
3708
3711
  price_cents: number;
3709
3712
  renewal_price_cents: number;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.21.0",
6
+ "version": "0.22.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.21.0"
35
+ "@marlinjai/mail-contract": "^0.22.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "zod": "^3.25.0"