@marlinjai/mail-sdk 0.20.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 +80 -2
- package/dist/index.d.ts +80 -2
- package/dist/index.js +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -382,12 +382,12 @@ 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" | "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;
|
|
389
389
|
member_id: string;
|
|
390
|
-
app?: "booking" | undefined;
|
|
390
|
+
app?: "booking" | "sites" | undefined;
|
|
391
391
|
} | {
|
|
392
392
|
type: "api_key";
|
|
393
393
|
api_key_id: string;
|
|
@@ -3640,6 +3640,84 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3640
3640
|
current_version: string;
|
|
3641
3641
|
}>;
|
|
3642
3642
|
};
|
|
3643
|
+
domains: {
|
|
3644
|
+
search: (query: RouteQuery<"domains.search">, opts?: RequestOpts) => Promise<{
|
|
3645
|
+
data: {
|
|
3646
|
+
reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
|
|
3647
|
+
currency: "EUR";
|
|
3648
|
+
domain: string;
|
|
3649
|
+
available: boolean;
|
|
3650
|
+
price_cents: number | null;
|
|
3651
|
+
renewal_price_cents: number | null;
|
|
3652
|
+
}[];
|
|
3653
|
+
blocked: "not_configured" | "paid_plan_required" | "no_company" | null;
|
|
3654
|
+
}>;
|
|
3655
|
+
};
|
|
3656
|
+
domainOrders: {
|
|
3657
|
+
create: (body: RouteBody<"domainOrders.create">, opts?: RequestOpts) => Promise<{
|
|
3658
|
+
id: string;
|
|
3659
|
+
kind: "sending" | "domain_only";
|
|
3660
|
+
created_at: string;
|
|
3661
|
+
updated_at: string;
|
|
3662
|
+
last_error: string | null;
|
|
3663
|
+
expires_at: string | null;
|
|
3664
|
+
currency: "EUR";
|
|
3665
|
+
from_name: string | null;
|
|
3666
|
+
from_email: string | null;
|
|
3667
|
+
domain: string;
|
|
3668
|
+
price_cents: number;
|
|
3669
|
+
renewal_price_cents: number;
|
|
3670
|
+
state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
|
|
3671
|
+
checkout_url: string | null;
|
|
3672
|
+
registrant_name: string;
|
|
3673
|
+
sending_domain_id: string | null;
|
|
3674
|
+
paid_at: string | null;
|
|
3675
|
+
registered_at: string | null;
|
|
3676
|
+
}>;
|
|
3677
|
+
list: (query?: RouteQuery<"domainOrders.list">, opts?: RequestOpts) => Promise<{
|
|
3678
|
+
data: {
|
|
3679
|
+
id: string;
|
|
3680
|
+
kind: "sending" | "domain_only";
|
|
3681
|
+
created_at: string;
|
|
3682
|
+
updated_at: string;
|
|
3683
|
+
last_error: string | null;
|
|
3684
|
+
expires_at: string | null;
|
|
3685
|
+
currency: "EUR";
|
|
3686
|
+
from_name: string | null;
|
|
3687
|
+
from_email: string | null;
|
|
3688
|
+
domain: string;
|
|
3689
|
+
price_cents: number;
|
|
3690
|
+
renewal_price_cents: number;
|
|
3691
|
+
state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
|
|
3692
|
+
checkout_url: string | null;
|
|
3693
|
+
registrant_name: string;
|
|
3694
|
+
sending_domain_id: string | null;
|
|
3695
|
+
paid_at: string | null;
|
|
3696
|
+
registered_at: string | null;
|
|
3697
|
+
}[];
|
|
3698
|
+
next_cursor: string | null;
|
|
3699
|
+
}>;
|
|
3700
|
+
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
3701
|
+
id: string;
|
|
3702
|
+
kind: "sending" | "domain_only";
|
|
3703
|
+
created_at: string;
|
|
3704
|
+
updated_at: string;
|
|
3705
|
+
last_error: string | null;
|
|
3706
|
+
expires_at: string | null;
|
|
3707
|
+
currency: "EUR";
|
|
3708
|
+
from_name: string | null;
|
|
3709
|
+
from_email: string | null;
|
|
3710
|
+
domain: string;
|
|
3711
|
+
price_cents: number;
|
|
3712
|
+
renewal_price_cents: number;
|
|
3713
|
+
state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
|
|
3714
|
+
checkout_url: string | null;
|
|
3715
|
+
registrant_name: string;
|
|
3716
|
+
sending_domain_id: string | null;
|
|
3717
|
+
paid_at: string | null;
|
|
3718
|
+
registered_at: string | null;
|
|
3719
|
+
}>;
|
|
3720
|
+
};
|
|
3643
3721
|
automations: {
|
|
3644
3722
|
list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
|
|
3645
3723
|
data: {
|
package/dist/index.d.ts
CHANGED
|
@@ -382,12 +382,12 @@ 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" | "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;
|
|
389
389
|
member_id: string;
|
|
390
|
-
app?: "booking" | undefined;
|
|
390
|
+
app?: "booking" | "sites" | undefined;
|
|
391
391
|
} | {
|
|
392
392
|
type: "api_key";
|
|
393
393
|
api_key_id: string;
|
|
@@ -3640,6 +3640,84 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3640
3640
|
current_version: string;
|
|
3641
3641
|
}>;
|
|
3642
3642
|
};
|
|
3643
|
+
domains: {
|
|
3644
|
+
search: (query: RouteQuery<"domains.search">, opts?: RequestOpts) => Promise<{
|
|
3645
|
+
data: {
|
|
3646
|
+
reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
|
|
3647
|
+
currency: "EUR";
|
|
3648
|
+
domain: string;
|
|
3649
|
+
available: boolean;
|
|
3650
|
+
price_cents: number | null;
|
|
3651
|
+
renewal_price_cents: number | null;
|
|
3652
|
+
}[];
|
|
3653
|
+
blocked: "not_configured" | "paid_plan_required" | "no_company" | null;
|
|
3654
|
+
}>;
|
|
3655
|
+
};
|
|
3656
|
+
domainOrders: {
|
|
3657
|
+
create: (body: RouteBody<"domainOrders.create">, opts?: RequestOpts) => Promise<{
|
|
3658
|
+
id: string;
|
|
3659
|
+
kind: "sending" | "domain_only";
|
|
3660
|
+
created_at: string;
|
|
3661
|
+
updated_at: string;
|
|
3662
|
+
last_error: string | null;
|
|
3663
|
+
expires_at: string | null;
|
|
3664
|
+
currency: "EUR";
|
|
3665
|
+
from_name: string | null;
|
|
3666
|
+
from_email: string | null;
|
|
3667
|
+
domain: string;
|
|
3668
|
+
price_cents: number;
|
|
3669
|
+
renewal_price_cents: number;
|
|
3670
|
+
state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
|
|
3671
|
+
checkout_url: string | null;
|
|
3672
|
+
registrant_name: string;
|
|
3673
|
+
sending_domain_id: string | null;
|
|
3674
|
+
paid_at: string | null;
|
|
3675
|
+
registered_at: string | null;
|
|
3676
|
+
}>;
|
|
3677
|
+
list: (query?: RouteQuery<"domainOrders.list">, opts?: RequestOpts) => Promise<{
|
|
3678
|
+
data: {
|
|
3679
|
+
id: string;
|
|
3680
|
+
kind: "sending" | "domain_only";
|
|
3681
|
+
created_at: string;
|
|
3682
|
+
updated_at: string;
|
|
3683
|
+
last_error: string | null;
|
|
3684
|
+
expires_at: string | null;
|
|
3685
|
+
currency: "EUR";
|
|
3686
|
+
from_name: string | null;
|
|
3687
|
+
from_email: string | null;
|
|
3688
|
+
domain: string;
|
|
3689
|
+
price_cents: number;
|
|
3690
|
+
renewal_price_cents: number;
|
|
3691
|
+
state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
|
|
3692
|
+
checkout_url: string | null;
|
|
3693
|
+
registrant_name: string;
|
|
3694
|
+
sending_domain_id: string | null;
|
|
3695
|
+
paid_at: string | null;
|
|
3696
|
+
registered_at: string | null;
|
|
3697
|
+
}[];
|
|
3698
|
+
next_cursor: string | null;
|
|
3699
|
+
}>;
|
|
3700
|
+
get: (id: string, opts?: RequestOpts) => Promise<{
|
|
3701
|
+
id: string;
|
|
3702
|
+
kind: "sending" | "domain_only";
|
|
3703
|
+
created_at: string;
|
|
3704
|
+
updated_at: string;
|
|
3705
|
+
last_error: string | null;
|
|
3706
|
+
expires_at: string | null;
|
|
3707
|
+
currency: "EUR";
|
|
3708
|
+
from_name: string | null;
|
|
3709
|
+
from_email: string | null;
|
|
3710
|
+
domain: string;
|
|
3711
|
+
price_cents: number;
|
|
3712
|
+
renewal_price_cents: number;
|
|
3713
|
+
state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
|
|
3714
|
+
checkout_url: string | null;
|
|
3715
|
+
registrant_name: string;
|
|
3716
|
+
sending_domain_id: string | null;
|
|
3717
|
+
paid_at: string | null;
|
|
3718
|
+
registered_at: string | null;
|
|
3719
|
+
}>;
|
|
3720
|
+
};
|
|
3643
3721
|
automations: {
|
|
3644
3722
|
list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
|
|
3645
3723
|
data: {
|
package/dist/index.js
CHANGED
|
@@ -684,6 +684,15 @@ function createNamespaces(config) {
|
|
|
684
684
|
setExtraSendingDomains: (body, opts) => execute(config, "billing.setExtraSendingDomains", { body }, opts),
|
|
685
685
|
acceptTerms: (body, opts) => execute(config, "billing.acceptTerms", { body }, opts)
|
|
686
686
|
},
|
|
687
|
+
// Domains bought inside Lumitra Mail: names with today's prices, and orders.
|
|
688
|
+
domains: {
|
|
689
|
+
search: (query, opts) => execute(config, "domains.search", { query }, opts)
|
|
690
|
+
},
|
|
691
|
+
domainOrders: {
|
|
692
|
+
create: (body, opts) => execute(config, "domainOrders.create", { body }, opts),
|
|
693
|
+
list: (query, opts) => execute(config, "domainOrders.list", { query }, opts),
|
|
694
|
+
get: (id, opts) => execute(config, "domainOrders.get", { params: { id } }, opts)
|
|
695
|
+
},
|
|
687
696
|
// A1: automations.
|
|
688
697
|
automations: {
|
|
689
698
|
list: (query, opts) => execute(config, "automations.list", { query }, opts),
|
package/dist/index.mjs
CHANGED
|
@@ -668,6 +668,15 @@ function createNamespaces(config) {
|
|
|
668
668
|
setExtraSendingDomains: (body, opts) => execute(config, "billing.setExtraSendingDomains", { body }, opts),
|
|
669
669
|
acceptTerms: (body, opts) => execute(config, "billing.acceptTerms", { body }, opts)
|
|
670
670
|
},
|
|
671
|
+
// Domains bought inside Lumitra Mail: names with today's prices, and orders.
|
|
672
|
+
domains: {
|
|
673
|
+
search: (query, opts) => execute(config, "domains.search", { query }, opts)
|
|
674
|
+
},
|
|
675
|
+
domainOrders: {
|
|
676
|
+
create: (body, opts) => execute(config, "domainOrders.create", { body }, opts),
|
|
677
|
+
list: (query, opts) => execute(config, "domainOrders.list", { query }, opts),
|
|
678
|
+
get: (id, opts) => execute(config, "domainOrders.get", { params: { id } }, opts)
|
|
679
|
+
},
|
|
671
680
|
// A1: automations.
|
|
672
681
|
automations: {
|
|
673
682
|
list: (query, opts) => execute(config, "automations.list", { query }, opts),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "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.
|
|
35
|
+
"@marlinjai/mail-contract": "^0.22.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"zod": "^3.25.0"
|