@marlinjai/mail-sdk 0.19.0 → 0.20.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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
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" | "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" | "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;
|
|
@@ -3613,6 +3613,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3613
3613
|
limit: number | null;
|
|
3614
3614
|
used: number;
|
|
3615
3615
|
}>>;
|
|
3616
|
+
terms: {
|
|
3617
|
+
accepted_version: string | null;
|
|
3618
|
+
current_version: string;
|
|
3619
|
+
};
|
|
3616
3620
|
}>;
|
|
3617
3621
|
checkout: (body: RouteBody<"billing.checkout">, opts?: RequestOpts) => Promise<{
|
|
3618
3622
|
url: string;
|
|
@@ -3631,6 +3635,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3631
3635
|
billing_exempt: boolean;
|
|
3632
3636
|
extra_sending_domains: number;
|
|
3633
3637
|
}>;
|
|
3638
|
+
acceptTerms: (body: RouteBody<"billing.acceptTerms">, opts?: RequestOpts) => Promise<{
|
|
3639
|
+
accepted_version: string | null;
|
|
3640
|
+
current_version: string;
|
|
3641
|
+
}>;
|
|
3634
3642
|
};
|
|
3635
3643
|
automations: {
|
|
3636
3644
|
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.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" | "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" | "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;
|
|
@@ -3613,6 +3613,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3613
3613
|
limit: number | null;
|
|
3614
3614
|
used: number;
|
|
3615
3615
|
}>>;
|
|
3616
|
+
terms: {
|
|
3617
|
+
accepted_version: string | null;
|
|
3618
|
+
current_version: string;
|
|
3619
|
+
};
|
|
3616
3620
|
}>;
|
|
3617
3621
|
checkout: (body: RouteBody<"billing.checkout">, opts?: RequestOpts) => Promise<{
|
|
3618
3622
|
url: string;
|
|
@@ -3631,6 +3635,10 @@ declare function createNamespaces(config: CoreConfig): {
|
|
|
3631
3635
|
billing_exempt: boolean;
|
|
3632
3636
|
extra_sending_domains: number;
|
|
3633
3637
|
}>;
|
|
3638
|
+
acceptTerms: (body: RouteBody<"billing.acceptTerms">, opts?: RequestOpts) => Promise<{
|
|
3639
|
+
accepted_version: string | null;
|
|
3640
|
+
current_version: string;
|
|
3641
|
+
}>;
|
|
3634
3642
|
};
|
|
3635
3643
|
automations: {
|
|
3636
3644
|
list: (query?: RouteQuery<"automations.list">, opts?: RequestOpts) => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -681,7 +681,8 @@ function createNamespaces(config) {
|
|
|
681
681
|
checkout: (body, opts) => execute(config, "billing.checkout", { body }, opts),
|
|
682
682
|
portal: (body, opts) => execute(config, "billing.portal", { body }, opts),
|
|
683
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)
|
|
684
|
+
setExtraSendingDomains: (body, opts) => execute(config, "billing.setExtraSendingDomains", { body }, opts),
|
|
685
|
+
acceptTerms: (body, opts) => execute(config, "billing.acceptTerms", { body }, opts)
|
|
685
686
|
},
|
|
686
687
|
// A1: automations.
|
|
687
688
|
automations: {
|
package/dist/index.mjs
CHANGED
|
@@ -665,7 +665,8 @@ function createNamespaces(config) {
|
|
|
665
665
|
checkout: (body, opts) => execute(config, "billing.checkout", { body }, opts),
|
|
666
666
|
portal: (body, opts) => execute(config, "billing.portal", { body }, opts),
|
|
667
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)
|
|
668
|
+
setExtraSendingDomains: (body, opts) => execute(config, "billing.setExtraSendingDomains", { body }, opts),
|
|
669
|
+
acceptTerms: (body, opts) => execute(config, "billing.acceptTerms", { body }, opts)
|
|
669
670
|
},
|
|
670
671
|
// A1: automations.
|
|
671
672
|
automations: {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.20.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.20.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"zod": "^3.25.0"
|