groundmail 0.33.0 → 0.35.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/README.md +15 -0
- package/dist/authjs.d.ts +1 -1
- package/dist/authjs.js +1 -1
- package/dist/better-auth.d.ts +1 -1
- package/dist/better-auth.js +1 -1
- package/dist/{chunk-KOSFM5QK.js → chunk-ARI5MWK4.js} +48 -5
- package/dist/clerk.d.ts +1 -1
- package/dist/clerk.js +1 -1
- package/dist/{client-C8TtxhtX.d.ts → client-BZPPEFB1.d.ts} +100 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/payload.d.ts +1 -1
- package/dist/payload.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -79,6 +79,21 @@ time. Also: `tx.testInbox.list({ to, since })`, `tx.testInbox.get(id)` and `tx.t
|
|
|
79
79
|
(domain and monthly usage). Emails sent with a `gm_test_` key land here too. Details:
|
|
80
80
|
https://docs.groundmail.dev/email-testing
|
|
81
81
|
|
|
82
|
+
## Senders
|
|
83
|
+
|
|
84
|
+
Save a sender once (name, an address on a verified domain, where replies go) and send as it by
|
|
85
|
+
handle instead of writing `from` each time. A `from` you pass still wins; with no `from` or
|
|
86
|
+
`sender`, the template's sender, then your default sender, is used.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
await tx.senders.create({ name: 'Acme Billing', address: 'billing@mail.acme.com', reply_to: 'billing@acme.com', handle: 'billing' })
|
|
90
|
+
|
|
91
|
+
await tx.emails.send({ sender: 'billing', to: 'user@example.com', template: { id: 'receipt' } })
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Also `tx.senders.list()`, `get`, `update` and `remove`, and `sender_id` on templates. Details:
|
|
95
|
+
https://docs.groundmail.dev/senders
|
|
96
|
+
|
|
82
97
|
## Tenants
|
|
83
98
|
|
|
84
99
|
If you send email for your own customers, create one tenant per customer. Each tenant has its
|
package/dist/authjs.d.ts
CHANGED
package/dist/authjs.js
CHANGED
package/dist/better-auth.d.ts
CHANGED
package/dist/better-auth.js
CHANGED
|
@@ -1585,10 +1585,20 @@ var EmailsResource = class {
|
|
|
1585
1585
|
body: JSON.stringify(payload)
|
|
1586
1586
|
});
|
|
1587
1587
|
}
|
|
1588
|
-
|
|
1588
|
+
/**
|
|
1589
|
+
* Send up to 100 emails in one request. `idempotencyKey` works as on `send`:
|
|
1590
|
+
* a retry with the same key and emails returns the first response and sends
|
|
1591
|
+
* nothing again. (An `idempotencyKey` on an individual email is ignored here.)
|
|
1592
|
+
*/
|
|
1593
|
+
async batch(emails, options = {}) {
|
|
1589
1594
|
const serialized = await Promise.all(emails.map((email) => this.serializeSendParams(email)));
|
|
1595
|
+
const headers = {};
|
|
1596
|
+
if (options.idempotencyKey) {
|
|
1597
|
+
headers["Idempotency-Key"] = options.idempotencyKey;
|
|
1598
|
+
}
|
|
1590
1599
|
return this.client.request("/emails/batch", {
|
|
1591
1600
|
method: "POST",
|
|
1601
|
+
headers,
|
|
1592
1602
|
body: JSON.stringify({ emails: serialized })
|
|
1593
1603
|
});
|
|
1594
1604
|
}
|
|
@@ -1638,10 +1648,10 @@ var EmailsResource = class {
|
|
|
1638
1648
|
if (hasTemplate && (hasHtml || hasText)) {
|
|
1639
1649
|
throw new Error("`template` cannot be combined with `html` or `text`");
|
|
1640
1650
|
}
|
|
1641
|
-
const payload = {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1651
|
+
const payload = {};
|
|
1652
|
+
if (params.from !== void 0) payload.from = params.from;
|
|
1653
|
+
if (params.sender !== void 0) payload.sender = params.sender;
|
|
1654
|
+
payload.to = params.to;
|
|
1645
1655
|
if (params.subject !== void 0) payload.subject = params.subject;
|
|
1646
1656
|
if (hasReact) {
|
|
1647
1657
|
payload.html = await renderReactEmail(params.react);
|
|
@@ -1817,6 +1827,38 @@ var ReceivedEmailsResource = class {
|
|
|
1817
1827
|
}
|
|
1818
1828
|
};
|
|
1819
1829
|
|
|
1830
|
+
// src/senders.ts
|
|
1831
|
+
var SendersResource = class {
|
|
1832
|
+
constructor(client) {
|
|
1833
|
+
this.client = client;
|
|
1834
|
+
}
|
|
1835
|
+
/** Every sender, the default first, with how many automations and templates use each. */
|
|
1836
|
+
async list() {
|
|
1837
|
+
return this.client.request("/senders", { method: "GET" });
|
|
1838
|
+
}
|
|
1839
|
+
async get(idOrHandle) {
|
|
1840
|
+
return this.client.request(`/senders/${encodeURIComponent(idOrHandle)}`, { method: "GET" });
|
|
1841
|
+
}
|
|
1842
|
+
/** The address must be on a verified domain. The handle is made from the name when left out. */
|
|
1843
|
+
async create(params) {
|
|
1844
|
+
return this.client.request("/senders", {
|
|
1845
|
+
method: "POST",
|
|
1846
|
+
body: JSON.stringify(params)
|
|
1847
|
+
});
|
|
1848
|
+
}
|
|
1849
|
+
/** Renaming the handle updates automation emails that use it; code using the old handle needs the new one. */
|
|
1850
|
+
async update(idOrHandle, params) {
|
|
1851
|
+
return this.client.request(`/senders/${encodeURIComponent(idOrHandle)}`, {
|
|
1852
|
+
method: "PATCH",
|
|
1853
|
+
body: JSON.stringify(params)
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
/** Fails with a 409 `conflict` while an automation or template uses the sender. */
|
|
1857
|
+
async remove(idOrHandle) {
|
|
1858
|
+
return this.client.request(`/senders/${encodeURIComponent(idOrHandle)}`, { method: "DELETE" });
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1820
1862
|
// src/suppressions.ts
|
|
1821
1863
|
var SuppressionsResource = class {
|
|
1822
1864
|
constructor(client) {
|
|
@@ -2108,6 +2150,7 @@ var _Groundmail = class _Groundmail {
|
|
|
2108
2150
|
this.smtpCredentials = new SmtpCredentialsResource(this);
|
|
2109
2151
|
this.suppressions = new SuppressionsResource(this);
|
|
2110
2152
|
this.templates = new TemplatesResource(this);
|
|
2153
|
+
this.senders = new SendersResource(this);
|
|
2111
2154
|
this.tenants = new TenantsResource(this);
|
|
2112
2155
|
this.migrations = new MigrationsResource(this);
|
|
2113
2156
|
this.dmarc = new DmarcResource(this);
|
package/dist/clerk.d.ts
CHANGED
package/dist/clerk.js
CHANGED
|
@@ -8,10 +8,19 @@ type ApiErrorCode = 'validation_error' | 'unauthorized' | 'forbidden' | 'not_fou
|
|
|
8
8
|
/** 408: a long-poll ended before anything matched (`testInbox.waitFor`). Safe to call again. */
|
|
9
9
|
| 'timeout' | 'upstream_error' | 'not_configured' | 'internal_error';
|
|
10
10
|
type SendEmailParams = {
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Who it is from. Optional when you pass `sender`, the template has a sender, or
|
|
13
|
+
* the team has a default sender. When set, it wins over all of them.
|
|
14
|
+
*/
|
|
15
|
+
from?: string | {
|
|
12
16
|
email: string;
|
|
13
17
|
name?: string;
|
|
14
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* A saved sender's handle or id (`groundmail.senders.list()`), e.g. `'billing'`.
|
|
21
|
+
* Sets `from`, and `reply_to` when the send has none. Ignored when `from` is set.
|
|
22
|
+
*/
|
|
23
|
+
sender?: string;
|
|
15
24
|
to: string | string[];
|
|
16
25
|
/** Required unless `template` supplies the subject. */
|
|
17
26
|
subject?: string;
|
|
@@ -121,6 +130,10 @@ type ValidateEmailResult = {
|
|
|
121
130
|
/** Reaches a team or queue (`info@`, `support@`) rather than a person. */
|
|
122
131
|
role: boolean;
|
|
123
132
|
};
|
|
133
|
+
type BatchSendOptions = {
|
|
134
|
+
/** Optional Idempotency-Key for the whole batch (24h TTL), as on `emails.send`. */
|
|
135
|
+
idempotencyKey?: string;
|
|
136
|
+
};
|
|
124
137
|
type BatchSendEmailResult = {
|
|
125
138
|
data: Array<{
|
|
126
139
|
index: number;
|
|
@@ -828,6 +841,8 @@ type Template = {
|
|
|
828
841
|
category: 'transactional' | 'product' | 'newsletter' | string;
|
|
829
842
|
/** Folder the template is filed in on the dashboard, or null. */
|
|
830
843
|
folder: string | null;
|
|
844
|
+
/** The sender it goes out as when a send sets neither `from` nor `sender`; null uses the default sender. */
|
|
845
|
+
sender_id?: string | null;
|
|
831
846
|
published_version_id: string | null;
|
|
832
847
|
published_at: string | null;
|
|
833
848
|
created_at: string;
|
|
@@ -883,6 +898,8 @@ type CreateTemplateParams = {
|
|
|
883
898
|
category?: 'transactional' | 'product';
|
|
884
899
|
/** File it in this folder, created when it does not exist. */
|
|
885
900
|
folder?: string;
|
|
901
|
+
/** The sender it goes out as (sender id or handle). */
|
|
902
|
+
sender_id?: string | null;
|
|
886
903
|
};
|
|
887
904
|
type TemplateStarter = {
|
|
888
905
|
alias: string;
|
|
@@ -910,7 +927,48 @@ type UpdateTemplateParams = {
|
|
|
910
927
|
category?: 'transactional' | 'product' | null;
|
|
911
928
|
/** Move it to this folder (created when missing); `null` or `''` takes it out of any folder. */
|
|
912
929
|
folder?: string | null;
|
|
930
|
+
/** The sender it goes out as (sender id or handle); `null` falls back to the default sender. */
|
|
931
|
+
sender_id?: string | null;
|
|
913
932
|
};
|
|
933
|
+
/**
|
|
934
|
+
* A saved sender: the name people see, an address on a verified domain, an
|
|
935
|
+
* optional reply-to and the handle sends use (`sender: 'billing'`).
|
|
936
|
+
*/
|
|
937
|
+
type Sender = {
|
|
938
|
+
id: string;
|
|
939
|
+
name: string;
|
|
940
|
+
address: string;
|
|
941
|
+
/** Name and address as the inbox shows them: `Acme Billing <billing@mail.acme.com>`. */
|
|
942
|
+
from: string;
|
|
943
|
+
/** Where replies go; null means replies go to `address`. */
|
|
944
|
+
reply_to: string | null;
|
|
945
|
+
handle: string;
|
|
946
|
+
/** Sends with no `from`, `sender` or template sender go out as the default. */
|
|
947
|
+
is_default: boolean;
|
|
948
|
+
/** How many automations and templates send as it. */
|
|
949
|
+
used_by?: {
|
|
950
|
+
automations: number;
|
|
951
|
+
templates: number;
|
|
952
|
+
};
|
|
953
|
+
created_at: string;
|
|
954
|
+
updated_at: string;
|
|
955
|
+
};
|
|
956
|
+
type ListSendersResult = {
|
|
957
|
+
data: Sender[];
|
|
958
|
+
};
|
|
959
|
+
type CreateSenderParams = {
|
|
960
|
+
/** The name people see. */
|
|
961
|
+
name: string;
|
|
962
|
+
/** An address on one of your verified domains. */
|
|
963
|
+
address: string;
|
|
964
|
+
/** Where replies go; leave it out to get replies at `address`. */
|
|
965
|
+
reply_to?: string | null;
|
|
966
|
+
/** Lowercase letters, digits and hyphens. Made from `name` when left out. */
|
|
967
|
+
handle?: string;
|
|
968
|
+
/** Make it the default. Your first sender is the default unless this is `false`. */
|
|
969
|
+
is_default?: boolean;
|
|
970
|
+
};
|
|
971
|
+
type UpdateSenderParams = Partial<CreateSenderParams>;
|
|
914
972
|
/**
|
|
915
973
|
* What a token provider may return: the token itself, or an object with the
|
|
916
974
|
* token and when it expires (the `AccessToken` shape `@azure/identity`'s
|
|
@@ -1734,7 +1792,12 @@ declare class EmailsResource {
|
|
|
1734
1792
|
}>;
|
|
1735
1793
|
insights(window?: DeliverabilityWindow): Promise<DeliverabilityInsightsResult>;
|
|
1736
1794
|
send(params: SendEmailParams): Promise<SendEmailResult>;
|
|
1737
|
-
|
|
1795
|
+
/**
|
|
1796
|
+
* Send up to 100 emails in one request. `idempotencyKey` works as on `send`:
|
|
1797
|
+
* a retry with the same key and emails returns the first response and sends
|
|
1798
|
+
* nothing again. (An `idempotencyKey` on an individual email is ignored here.)
|
|
1799
|
+
*/
|
|
1800
|
+
batch(emails: SendEmailParams[], options?: BatchSendOptions): Promise<BatchSendEmailResult>;
|
|
1738
1801
|
update(id: string, params: UpdateEmailParams): Promise<SendEmailResult>;
|
|
1739
1802
|
cancel(id: string): Promise<SendEmailResult>;
|
|
1740
1803
|
/** Create a new send from a previously stored email (new `msg_…` id). */
|
|
@@ -1817,6 +1880,33 @@ declare class ReceivedEmailsResource {
|
|
|
1817
1880
|
}>;
|
|
1818
1881
|
}
|
|
1819
1882
|
|
|
1883
|
+
/**
|
|
1884
|
+
* Saved senders: the name people see, an address on one of your verified
|
|
1885
|
+
* domains, an optional reply-to, and a handle. Send with `sender: 'billing'`
|
|
1886
|
+
* instead of writing the address. Every method takes the sender's id or handle.
|
|
1887
|
+
*/
|
|
1888
|
+
declare class SendersResource {
|
|
1889
|
+
private readonly client;
|
|
1890
|
+
constructor(client: Groundmail);
|
|
1891
|
+
/** Every sender, the default first, with how many automations and templates use each. */
|
|
1892
|
+
list(): Promise<ListSendersResult>;
|
|
1893
|
+
get(idOrHandle: string): Promise<{
|
|
1894
|
+
sender: Sender;
|
|
1895
|
+
}>;
|
|
1896
|
+
/** The address must be on a verified domain. The handle is made from the name when left out. */
|
|
1897
|
+
create(params: CreateSenderParams): Promise<{
|
|
1898
|
+
sender: Sender;
|
|
1899
|
+
}>;
|
|
1900
|
+
/** Renaming the handle updates automation emails that use it; code using the old handle needs the new one. */
|
|
1901
|
+
update(idOrHandle: string, params: UpdateSenderParams): Promise<{
|
|
1902
|
+
sender: Sender;
|
|
1903
|
+
}>;
|
|
1904
|
+
/** Fails with a 409 `conflict` while an automation or template uses the sender. */
|
|
1905
|
+
remove(idOrHandle: string): Promise<{
|
|
1906
|
+
ok: boolean;
|
|
1907
|
+
}>;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1820
1910
|
declare class SuppressionsResource {
|
|
1821
1911
|
private readonly client;
|
|
1822
1912
|
constructor(client: Groundmail);
|
|
@@ -1886,9 +1976,12 @@ declare class TemplatesResource {
|
|
|
1886
1976
|
restoreVersion(idOrAlias: string, version: number): Promise<{
|
|
1887
1977
|
template: Template;
|
|
1888
1978
|
}>;
|
|
1889
|
-
testSend(idOrAlias: string,
|
|
1979
|
+
testSend(idOrAlias: string,
|
|
1980
|
+
/** Without `from` or `sender`, the test goes out as the template's sender, else the default sender. */
|
|
1981
|
+
params: {
|
|
1890
1982
|
to: string;
|
|
1891
|
-
from
|
|
1983
|
+
from?: string;
|
|
1984
|
+
sender?: string;
|
|
1892
1985
|
variables?: Record<string, unknown>;
|
|
1893
1986
|
}): Promise<unknown>;
|
|
1894
1987
|
}
|
|
@@ -2021,6 +2114,8 @@ declare class Groundmail {
|
|
|
2021
2114
|
readonly smtpCredentials: SmtpCredentialsResource;
|
|
2022
2115
|
readonly suppressions: SuppressionsResource;
|
|
2023
2116
|
readonly templates: TemplatesResource;
|
|
2117
|
+
/** Saved senders: name, address and reply-to that sends name with `sender: 'billing'`. */
|
|
2118
|
+
readonly senders: SendersResource;
|
|
2024
2119
|
/** Your platform's customers, each with its own domains, suppressions, stats and limits. */
|
|
2025
2120
|
readonly tenants: TenantsResource;
|
|
2026
2121
|
/** Import from SendGrid, Postmark, Mailgun, Resend or Amazon SES (Beta). */
|
|
@@ -2064,4 +2159,4 @@ declare function normalizeAccessToken(value: GroundmailAccessToken | null | unde
|
|
|
2064
2159
|
expiresAt: number | null;
|
|
2065
2160
|
};
|
|
2066
2161
|
|
|
2067
|
-
export { type
|
|
2162
|
+
export { type DmarcReadiness as $, type ApiErrorBody as A, type BatchSendEmailResult as B, type CategoryOptOut as C, type DnsRecord as D, type CreateApiKeyResult as E, type CreateAutomationParams as F, Groundmail as G, type CreateDomainParams as H, type CreateDomainResult as I, type CreateMigrationParams as J, type CreateSenderParams as K, type CreateSuppressionParams as L, type CreateTemplateParams as M, type CreateTenantParams as N, type CreateWebhookParams as O, DEFAULT_API_BASE_URL as P, type DailyRampLimitErrorDetails as Q, type DeleteTenantResult as R, type SendEmailResult as S, type DeliverabilityBucket as T, type DeliverabilityDomainInsight as U, type DeliverabilityInsightsResult as V, type DeliverabilityMailServerRelay as W, type DeliverabilityWindow as X, type DmarcDailyPoint as Y, type DmarcMonitoring as Z, type DmarcMonitoringDisabled as _, type ApiErrorCode as a, type MigrationProvider as a$, type DmarcReadinessVerdict as a0, type DmarcSource as a1, type DmarcSourceStatus as a2, type DmarcStatus as a3, type DnsProviderName as a4, type Domain as a5, type DomainBimiAnalysis as a6, type DomainBlocklistListing as a7, type DomainBlocklistStatus as a8, type DomainBlocklists as a9, type ListAutomationRunsResult as aA, type ListAutomationsResult as aB, type ListCategoryOptOutsParams as aC, type ListCategoryOptOutsResult as aD, type ListDomainsParams as aE, type ListDomainsResult as aF, type ListEmailsParams as aG, type ListEmailsResult as aH, type ListReceivedEmailsParams as aI, type ListReceivedEmailsResult as aJ, type ListSendersResult as aK, type ListSuppressionsParams as aL, type ListSuppressionsResult as aM, type ListTemplatesParams as aN, type ListTemplatesResult as aO, type ListTenantDomainsResult as aP, type ListTenantsParams as aQ, type ListTenantsResult as aR, type ListTestInboxEmailsParams as aS, type ListTestInboxEmailsResult as aT, type MailServerSigningStatus as aU, type MailStream as aV, type Migration as aW, type MigrationDnsChange as aX, type MigrationDnsPlan as aY, type MigrationDomainItem as aZ, type MigrationItemStatus as a_, type DomainDetailResult as aa, type DomainDmarcAnalysis as ab, type DomainDnsAnalysis as ac, type DomainStatus as ad, type DomainTlsMode as ae, type DomainTrackingDns as af, type DomainTrackingStatus as ag, type EmailDelivery as ah, type EmailListItem as ai, type EmailWebhookEventPayload as aj, type EmailWebhookEventType as ak, type EnableDmarcParams as al, type EnableDmarcResult as am, type EnrollmentSkip as an, type EventRecord as ao, type GroundmailAccessToken as ap, type GroundmailOptions as aq, type GroundmailTokenOptions as ar, type GroundmailTokenProvider as as, type HeldBackErrorDetails as at, type HeldBackReason as au, type HeldBackRecipient as av, type InReplyToEmail as aw, type ListApiKeysParams as ax, type ListApiKeysResult as ay, type ListAutomationRunsParams as az, type ApiKey as b, type MigrationResource as b0, type MigrationSummary as b1, type MigrationTemplateItem as b2, type MigrationTotals as b3, type MigrationWebhookItem as b4, type ReceivedEmail as b5, type ReceivedEmailAttachment as b6, type ReceivedEmailAttachmentMeta as b7, type RemoteApplyDnsCredentials as b8, type RemoveCategoryOptOutOptions as b9, type TestInboxEmail as bA, type TestInboxEmailDetail as bB, type TestInboxHeader as bC, TestInboxResource as bD, type TestInboxUsage as bE, type TriggerEventParams as bF, type TriggerEventResult as bG, type TwilioIntegrationResponse as bH, type TwilioIntegrationStatus as bI, type UpdateAutomationParams as bJ, type UpdateDomainParams as bK, type UpdateEmailParams as bL, type UpdateSenderParams as bM, type UpdateTemplateParams as bN, type UpdateTenantParams as bO, type UpdateWebhookParams as bP, type ValidateEmailResult as bQ, type ValidationReason as bR, type ValidationVerdict as bS, type VerifyDomainResult as bT, type WaitForTestEmailParams as bU, type WebhookEmailTag as bV, type WebhookEndpoint as bW, type WebhookEndpointWithSecret as bX, type WebhookEventType as bY, mergeMigrations as bZ, normalizeAccessToken as b_, type RunMigrationOptions as ba, type SendEmailParams as bb, type Sender as bc, type SesMigrationParams as bd, type StreamDeliverability as be, type SuppressedErrorDetails as bf, type Suppression as bg, TEST_INBOX_WAIT_DEFAULT_MS as bh, TEST_INBOX_WAIT_MAX_SECONDS as bi, type Template as bj, type TemplateFormat as bk, type TemplateLintWarning as bl, type TemplateStarter as bm, type TemplateStatus as bn, type TemplateVersion as bo, type Tenant as bp, type TenantPauseSource as bq, type TenantRamp as br, type TenantStats as bs, type TenantStatsResult as bt, type TenantStatus as bu, type TenantStreamPolicy as bv, type TestEmailWebhookParams as bw, type TestEmailWebhookResult as bx, type TestInbox as by, type TestInboxAddressOptions as bz, type ApiKeyMigrationParams as c, type ApiKeyScope as d, type ApplyDnsParams as e, type ApplyDnsRecordResult as f, type ApplyDnsResult as g, type Asset as h, type Automation as i, type AutomationBranchQuestion as j, type AutomationBranchStep as k, type AutomationResult as l, type AutomationRun as m, type AutomationRunResponse as n, type AutomationRunStatus as o, type AutomationRunStep as p, type AutomationRunStepStatus as q, type AutomationStatus as r, type AutomationStep as s, type AutomationTrigger as t, type BounceType as u, type CategoryOptOutCategory as v, type CategoryUnsubscribedErrorDetails as w, type ConnectTwilioParams as x, type ContactWebhookEventPayload as y, type CreateApiKeyParams as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiErrorBody, D as DnsRecord } from './client-
|
|
2
|
-
export { a as ApiErrorCode, b as ApiKey, c as ApiKeyMigrationParams, d as ApiKeyScope, e as ApplyDnsParams, f as ApplyDnsRecordResult, g as ApplyDnsResult, h as Asset, i as Automation, j as AutomationBranchQuestion, k as AutomationBranchStep, l as AutomationResult, m as AutomationRun, n as AutomationRunResponse, o as AutomationRunStatus, p as AutomationRunStep, q as AutomationRunStepStatus, r as AutomationStatus, s as AutomationStep, t as AutomationTrigger, B as BatchSendEmailResult, u as BounceType, C as CategoryOptOut, v as CategoryOptOutCategory, w as CategoryUnsubscribedErrorDetails, x as ConnectTwilioParams, y as ContactWebhookEventPayload, z as CreateApiKeyParams, E as CreateApiKeyResult, F as CreateAutomationParams, H as CreateDomainParams, I as CreateDomainResult, J as CreateMigrationParams, K as
|
|
1
|
+
import { A as ApiErrorBody, D as DnsRecord } from './client-BZPPEFB1.js';
|
|
2
|
+
export { a as ApiErrorCode, b as ApiKey, c as ApiKeyMigrationParams, d as ApiKeyScope, e as ApplyDnsParams, f as ApplyDnsRecordResult, g as ApplyDnsResult, h as Asset, i as Automation, j as AutomationBranchQuestion, k as AutomationBranchStep, l as AutomationResult, m as AutomationRun, n as AutomationRunResponse, o as AutomationRunStatus, p as AutomationRunStep, q as AutomationRunStepStatus, r as AutomationStatus, s as AutomationStep, t as AutomationTrigger, B as BatchSendEmailResult, u as BounceType, C as CategoryOptOut, v as CategoryOptOutCategory, w as CategoryUnsubscribedErrorDetails, x as ConnectTwilioParams, y as ContactWebhookEventPayload, z as CreateApiKeyParams, E as CreateApiKeyResult, F as CreateAutomationParams, H as CreateDomainParams, I as CreateDomainResult, J as CreateMigrationParams, K as CreateSenderParams, L as CreateSuppressionParams, M as CreateTemplateParams, N as CreateTenantParams, O as CreateWebhookParams, P as DEFAULT_API_BASE_URL, Q as DailyRampLimitErrorDetails, R as DeleteTenantResult, T as DeliverabilityBucket, U as DeliverabilityDomainInsight, V as DeliverabilityInsightsResult, W as DeliverabilityMailServerRelay, X as DeliverabilityWindow, Y as DmarcDailyPoint, Z as DmarcMonitoring, _ as DmarcMonitoringDisabled, $ as DmarcReadiness, a0 as DmarcReadinessVerdict, a1 as DmarcSource, a2 as DmarcSourceStatus, a3 as DmarcStatus, a4 as DnsProviderName, a5 as Domain, a6 as DomainBimiAnalysis, a7 as DomainBlocklistListing, a8 as DomainBlocklistStatus, a9 as DomainBlocklists, aa as DomainDetailResult, ab as DomainDmarcAnalysis, ac as DomainDnsAnalysis, ad as DomainStatus, ae as DomainTlsMode, af as DomainTrackingDns, ag as DomainTrackingStatus, ah as EmailDelivery, ai as EmailListItem, aj as EmailWebhookEventPayload, ak as EmailWebhookEventType, al as EnableDmarcParams, am as EnableDmarcResult, an as EnrollmentSkip, ao as EventRecord, G as Groundmail, ap as GroundmailAccessToken, aq as GroundmailOptions, ar as GroundmailTokenOptions, as as GroundmailTokenProvider, at as HeldBackErrorDetails, au as HeldBackReason, av as HeldBackRecipient, aw as InReplyToEmail, ax as ListApiKeysParams, ay as ListApiKeysResult, az as ListAutomationRunsParams, aA as ListAutomationRunsResult, aB as ListAutomationsResult, aC as ListCategoryOptOutsParams, aD as ListCategoryOptOutsResult, aE as ListDomainsParams, aF as ListDomainsResult, aG as ListEmailsParams, aH as ListEmailsResult, aI as ListReceivedEmailsParams, aJ as ListReceivedEmailsResult, aK as ListSendersResult, aL as ListSuppressionsParams, aM as ListSuppressionsResult, aN as ListTemplatesParams, aO as ListTemplatesResult, aP as ListTenantDomainsResult, aQ as ListTenantsParams, aR as ListTenantsResult, aS as ListTestInboxEmailsParams, aT as ListTestInboxEmailsResult, aU as MailServerSigningStatus, aV as MailStream, aW as Migration, aX as MigrationDnsChange, aY as MigrationDnsPlan, aZ as MigrationDomainItem, a_ as MigrationItemStatus, a$ as MigrationProvider, b0 as MigrationResource, b1 as MigrationSummary, b2 as MigrationTemplateItem, b3 as MigrationTotals, b4 as MigrationWebhookItem, b5 as ReceivedEmail, b6 as ReceivedEmailAttachment, b7 as ReceivedEmailAttachmentMeta, b8 as RemoteApplyDnsCredentials, b9 as RemoveCategoryOptOutOptions, ba as RunMigrationOptions, bb as SendEmailParams, S as SendEmailResult, bc as Sender, bd as SesMigrationParams, be as StreamDeliverability, bf as SuppressedErrorDetails, bg as Suppression, bh as TEST_INBOX_WAIT_DEFAULT_MS, bi as TEST_INBOX_WAIT_MAX_SECONDS, bj as Template, bk as TemplateFormat, bl as TemplateLintWarning, bm as TemplateStarter, bn as TemplateStatus, bo as TemplateVersion, bp as Tenant, bq as TenantPauseSource, br as TenantRamp, bs as TenantStats, bt as TenantStatsResult, bu as TenantStatus, bv as TenantStreamPolicy, bw as TestEmailWebhookParams, bx as TestEmailWebhookResult, by as TestInbox, bz as TestInboxAddressOptions, bA as TestInboxEmail, bB as TestInboxEmailDetail, bC as TestInboxHeader, bD as TestInboxResource, bE as TestInboxUsage, bF as TriggerEventParams, bG as TriggerEventResult, bH as TwilioIntegrationResponse, bI as TwilioIntegrationStatus, bJ as UpdateAutomationParams, bK as UpdateDomainParams, bL as UpdateEmailParams, bM as UpdateSenderParams, bN as UpdateTemplateParams, bO as UpdateTenantParams, bP as UpdateWebhookParams, bQ as ValidateEmailResult, bR as ValidationReason, bS as ValidationVerdict, bT as VerifyDomainResult, bU as WaitForTestEmailParams, bV as WebhookEmailTag, bW as WebhookEndpoint, bX as WebhookEndpointWithSecret, bY as WebhookEventType, bZ as mergeMigrations, b_ as normalizeAccessToken } from './client-BZPPEFB1.js';
|
|
3
3
|
|
|
4
4
|
type GroundmailErrorOptions = {
|
|
5
5
|
code?: string;
|
package/dist/index.js
CHANGED
package/dist/payload.d.ts
CHANGED
package/dist/payload.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groundmail",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Groundmail transactional email API client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"groundmail-nodemailer": "0.15.21"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@types/nodemailer": "^8.0.
|
|
96
|
-
"nodemailer": "^10.
|
|
95
|
+
"@types/nodemailer": "^8.0.2",
|
|
96
|
+
"nodemailer": "^10.3.1",
|
|
97
97
|
"tsup": "^8.5.0",
|
|
98
98
|
"typescript": "^5",
|
|
99
99
|
"vitest": "^3.2.4"
|