groundmail 0.35.0 → 0.37.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 CHANGED
@@ -94,6 +94,27 @@ await tx.emails.send({ sender: 'billing', to: 'user@example.com', template: { id
94
94
  Also `tx.senders.list()`, `get`, `update` and `remove`, and `sender_id` on templates. Details:
95
95
  https://docs.groundmail.dev/senders
96
96
 
97
+ ## Brand
98
+
99
+ Set your logo, colours and footer once. Templates follow the brand unless they override a
100
+ setting, and new templates and starter copies get your logo on top and your company name,
101
+ address and website in the footer.
102
+
103
+ ```ts
104
+ await tx.brand.update({
105
+ logo: { url: 'https://cdn.acme.com/logo.png', align: 'left' },
106
+ accent_color: '#2f6feb',
107
+ settings: { linkColor: '#2f6feb', theme: { buttonBackground: '#2f6feb', buttonTextColor: '#ffffff' } },
108
+ company_name: 'Acme Inc',
109
+ address: '548 Market St, San Francisco, CA 94104',
110
+ website: 'acme.com',
111
+ })
112
+
113
+ const { brand } = await tx.brand.get()
114
+ ```
115
+
116
+ Details: https://docs.groundmail.dev/brand
117
+
97
118
  ## Tenants
98
119
 
99
120
  If you send email for your own customers, create one tenant per customer. Each tenant has its
package/dist/authjs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail } from './client-BZPPEFB1.js';
1
+ import { G as Groundmail } from './client-BZWkihNZ.js';
2
2
 
3
3
  /** Subset of Auth.js theme used for the default magic-link email. */
4
4
  type AuthjsTheme = {
package/dist/authjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_API_BASE_URL,
3
3
  Groundmail
4
- } from "./chunk-ARI5MWK4.js";
4
+ } from "./chunk-HMOQDJOX.js";
5
5
 
6
6
  // src/authjs.ts
7
7
  function escapeHtml(value) {
@@ -1,4 +1,4 @@
1
- import { S as SendEmailResult, G as Groundmail } from './client-BZPPEFB1.js';
1
+ import { S as SendEmailResult, G as Groundmail } from './client-BZWkihNZ.js';
2
2
 
3
3
  type BetterAuthEmailUser = {
4
4
  email: string;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_API_BASE_URL,
3
3
  Groundmail
4
- } from "./chunk-ARI5MWK4.js";
4
+ } from "./chunk-HMOQDJOX.js";
5
5
 
6
6
  // src/better-auth.ts
7
7
  function linkHtml(label, url) {
@@ -1859,6 +1859,23 @@ var SendersResource = class {
1859
1859
  }
1860
1860
  };
1861
1861
 
1862
+ // src/brand.ts
1863
+ var BrandResource = class {
1864
+ constructor(client) {
1865
+ this.client = client;
1866
+ }
1867
+ async get() {
1868
+ return this.client.request("/brand", { method: "GET" });
1869
+ }
1870
+ /** Update the brand. Fields left out keep their value; `null` clears one. */
1871
+ async update(params) {
1872
+ return this.client.request("/brand", {
1873
+ method: "PUT",
1874
+ body: JSON.stringify(params)
1875
+ });
1876
+ }
1877
+ };
1878
+
1862
1879
  // src/suppressions.ts
1863
1880
  var SuppressionsResource = class {
1864
1881
  constructor(client) {
@@ -2151,6 +2168,7 @@ var _Groundmail = class _Groundmail {
2151
2168
  this.suppressions = new SuppressionsResource(this);
2152
2169
  this.templates = new TemplatesResource(this);
2153
2170
  this.senders = new SendersResource(this);
2171
+ this.brand = new BrandResource(this);
2154
2172
  this.tenants = new TenantsResource(this);
2155
2173
  this.migrations = new MigrationsResource(this);
2156
2174
  this.dmarc = new DmarcResource(this);
package/dist/clerk.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail, S as SendEmailResult } from './client-BZPPEFB1.js';
1
+ import { G as Groundmail, S as SendEmailResult } from './client-BZWkihNZ.js';
2
2
 
3
3
  /**
4
4
  * Subset of Clerk `email.created` webhook `data` used for delivery.
package/dist/clerk.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_API_BASE_URL,
3
3
  Groundmail
4
- } from "./chunk-ARI5MWK4.js";
4
+ } from "./chunk-HMOQDJOX.js";
5
5
 
6
6
  // src/clerk.ts
7
7
  function resolveApiKey(options) {
@@ -629,10 +629,56 @@ type AutomationBranchStep = {
629
629
  then: AutomationStep[];
630
630
  else: AutomationStep[];
631
631
  };
632
+ /** Who an automation email is from and to, and what it overrides for its step. */
633
+ type AutomationEmailAddressing = {
634
+ /** A sender address. Use this or `sender`. */
635
+ from?: string;
636
+ /** A saved sender's handle (`GET /senders`), looked up when the email sends. */
637
+ sender?: string;
638
+ /** Usually `'{{event.email}}'`. */
639
+ to: string | string[];
640
+ reply_to?: string | string[];
641
+ category?: 'transactional' | 'product';
642
+ tags?: {
643
+ name: string;
644
+ value: string;
645
+ }[];
646
+ headers?: Record<string, string>;
647
+ [key: string]: unknown;
648
+ };
649
+ /**
650
+ * The email an automation step sends: a published template, by id or alias,
651
+ * with its fields filled from the run. Publishing a new version of the
652
+ * template changes every step that sends it. The template can also read the
653
+ * run directly: `{{event.data.plan}}`, `{{contact.email}}`.
654
+ */
655
+ type AutomationTemplateEmail = AutomationEmailAddressing & {
656
+ template: {
657
+ /** The template's id or alias. */
658
+ id: string;
659
+ /** A value for each of the template's fields, e.g. `{ name: '{{event.data.name}}' }`. */
660
+ variables?: Record<string, string>;
661
+ };
662
+ /** This step's subject instead of the template's. */
663
+ subject?: string;
664
+ html?: never;
665
+ text?: never;
666
+ };
667
+ /** An email written into the step from code (no template): its own subject and body. */
668
+ type AutomationInlineEmail = AutomationEmailAddressing & {
669
+ template?: never;
670
+ subject: string;
671
+ html?: string;
672
+ text?: string;
673
+ };
674
+ type AutomationSendEmailStep = {
675
+ type: 'send_email';
676
+ email: AutomationTemplateEmail | AutomationInlineEmail;
677
+ };
632
678
  type AutomationStep = {
633
- type: 'delay' | 'send_email' | 'send_sms' | 'condition' | 'wait_for_event';
679
+ type: 'delay' | 'send_sms' | 'condition' | 'wait_for_event';
634
680
  [key: string]: unknown;
635
- } | AutomationBranchStep;
681
+ } | AutomationSendEmailStep | AutomationBranchStep;
636
682
  type TwilioIntegrationStatus = {
637
683
  connected: boolean;
638
684
  hint: string | null;
@@ -1616,6 +1662,79 @@ type WaitForTestEmailParams = {
1616
1662
  /** Only emails received at or after this time. */
1617
1663
  since?: Date | string;
1618
1664
  };
1665
+ /**
1666
+ * The look every template follows: the same settings as a template's
1667
+ * `design.settings` (colours, fonts, button style, global CSS), any subset.
1668
+ */
1669
+ type BrandSettings = {
1670
+ backgroundColor?: string;
1671
+ contentBackgroundColor?: string;
1672
+ contentWidth?: number;
1673
+ fontFamily?: string;
1674
+ fontUrl?: string;
1675
+ textColor?: string;
1676
+ linkColor?: string;
1677
+ darkMode?: 'auto' | 'off';
1678
+ colorScheme?: 'dark';
1679
+ pagePadding?: {
1680
+ top: number;
1681
+ right: number;
1682
+ bottom: number;
1683
+ left: number;
1684
+ };
1685
+ globalCss?: string;
1686
+ theme?: {
1687
+ headingFontSize?: {
1688
+ 1: number;
1689
+ 2: number;
1690
+ 3: number;
1691
+ };
1692
+ bodyFontSize?: number;
1693
+ lineHeight?: number;
1694
+ buttonRadius?: number;
1695
+ buttonBackground?: string;
1696
+ buttonTextColor?: string;
1697
+ blockSpacing?: number;
1698
+ buttonFontSize?: number;
1699
+ buttonFontWeight?: number;
1700
+ buttonHeight?: number;
1701
+ buttonPaddingX?: number;
1702
+ buttonBorderColor?: string;
1703
+ };
1704
+ };
1705
+ type BrandLogo = {
1706
+ /** An https image URL. */
1707
+ url: string;
1708
+ /** Width in px the logo is drawn at (24–552). Default 120. */
1709
+ width?: number | null;
1710
+ align: 'left' | 'center';
1711
+ };
1712
+ /** Your workspace brand: the look templates follow, the logo header and the company footer. */
1713
+ type Brand = {
1714
+ /** False until anything is set. */
1715
+ is_set: boolean;
1716
+ settings: BrandSettings;
1717
+ logo: BrandLogo | null;
1718
+ /** The line across the top of every email. */
1719
+ accent_color: string | null;
1720
+ company_name: string | null;
1721
+ /** Mailing address for the footer. */
1722
+ address: string | null;
1723
+ website: string | null;
1724
+ updated_at: string | null;
1725
+ };
1726
+ /**
1727
+ * Fields left out keep their value; `null` clears one. `settings`, when sent,
1728
+ * replaces the brand's settings.
1729
+ */
1730
+ type UpdateBrandParams = {
1731
+ settings?: BrandSettings;
1732
+ logo?: BrandLogo | null;
1733
+ accent_color?: string | null;
1734
+ company_name?: string | null;
1735
+ address?: string | null;
1736
+ website?: string | null;
1737
+ };
1619
1738
 
1620
1739
  declare class AutomationsResource {
1621
1740
  private readonly client;
@@ -1907,6 +2026,23 @@ declare class SendersResource {
1907
2026
  }>;
1908
2027
  }
1909
2028
 
2029
+ /**
2030
+ * Your workspace brand: the look every template follows unless it overrides a
2031
+ * setting, plus the logo header and the company footer (name, mailing address,
2032
+ * website). Changes reach templates that follow the brand from their next send.
2033
+ */
2034
+ declare class BrandResource {
2035
+ private readonly client;
2036
+ constructor(client: Groundmail);
2037
+ get(): Promise<{
2038
+ brand: Brand;
2039
+ }>;
2040
+ /** Update the brand. Fields left out keep their value; `null` clears one. */
2041
+ update(params: UpdateBrandParams): Promise<{
2042
+ brand: Brand;
2043
+ }>;
2044
+ }
2045
+
1910
2046
  declare class SuppressionsResource {
1911
2047
  private readonly client;
1912
2048
  constructor(client: Groundmail);
@@ -2116,6 +2252,8 @@ declare class Groundmail {
2116
2252
  readonly templates: TemplatesResource;
2117
2253
  /** Saved senders: name, address and reply-to that sends name with `sender: 'billing'`. */
2118
2254
  readonly senders: SendersResource;
2255
+ /** Your workspace brand: the look, logo and footer every template follows. */
2256
+ readonly brand: BrandResource;
2119
2257
  /** Your platform's customers, each with its own domains, suppressions, stats and limits. */
2120
2258
  readonly tenants: TenantsResource;
2121
2259
  /** Import from SendGrid, Postmark, Mailgun, Resend or Amazon SES (Beta). */
@@ -2159,4 +2297,4 @@ declare function normalizeAccessToken(value: GroundmailAccessToken | null | unde
2159
2297
  expiresAt: number | null;
2160
2298
  };
2161
2299
 
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 };
2300
+ export { type DeliverabilityInsightsResult as $, type ApiErrorBody as A, type BatchSendEmailResult as B, type BrandSettings as C, type DnsRecord as D, type CategoryOptOut as E, type CategoryOptOutCategory as F, Groundmail as G, type CategoryUnsubscribedErrorDetails as H, type ConnectTwilioParams as I, type ContactWebhookEventPayload as J, type CreateApiKeyParams as K, type CreateApiKeyResult as L, type CreateAutomationParams as M, type CreateDomainParams as N, type CreateDomainResult as O, type CreateMigrationParams as P, type CreateSenderParams as Q, type CreateSuppressionParams as R, type SendEmailResult as S, type CreateTemplateParams as T, type CreateTenantParams as U, type CreateWebhookParams as V, DEFAULT_API_BASE_URL as W, type DailyRampLimitErrorDetails as X, type DeleteTenantResult as Y, type DeliverabilityBucket as Z, type DeliverabilityDomainInsight as _, type ApiErrorCode as a, type MailStream as a$, type DeliverabilityMailServerRelay as a0, type DeliverabilityWindow as a1, type DmarcDailyPoint as a2, type DmarcMonitoring as a3, type DmarcMonitoringDisabled as a4, type DmarcReadiness as a5, type DmarcReadinessVerdict as a6, type DmarcSource as a7, type DmarcSourceStatus as a8, type DmarcStatus as a9, type HeldBackReason as aA, type HeldBackRecipient as aB, type InReplyToEmail as aC, type ListApiKeysParams as aD, type ListApiKeysResult as aE, type ListAutomationRunsParams as aF, type ListAutomationRunsResult as aG, type ListAutomationsResult as aH, type ListCategoryOptOutsParams as aI, type ListCategoryOptOutsResult as aJ, type ListDomainsParams as aK, type ListDomainsResult as aL, type ListEmailsParams as aM, type ListEmailsResult as aN, type ListReceivedEmailsParams as aO, type ListReceivedEmailsResult as aP, type ListSendersResult as aQ, type ListSuppressionsParams as aR, type ListSuppressionsResult as aS, type ListTemplatesParams as aT, type ListTemplatesResult as aU, type ListTenantDomainsResult as aV, type ListTenantsParams as aW, type ListTenantsResult as aX, type ListTestInboxEmailsParams as aY, type ListTestInboxEmailsResult as aZ, type MailServerSigningStatus as a_, type DnsProviderName as aa, type Domain as ab, type DomainBimiAnalysis as ac, type DomainBlocklistListing as ad, type DomainBlocklistStatus as ae, type DomainBlocklists as af, type DomainDetailResult as ag, type DomainDmarcAnalysis as ah, type DomainDnsAnalysis as ai, type DomainStatus as aj, type DomainTlsMode as ak, type DomainTrackingDns as al, type DomainTrackingStatus as am, type EmailDelivery as an, type EmailListItem as ao, type EmailWebhookEventPayload as ap, type EmailWebhookEventType as aq, type EnableDmarcParams as ar, type EnableDmarcResult as as, type EnrollmentSkip as at, type EventRecord as au, type GroundmailAccessToken as av, type GroundmailOptions as aw, type GroundmailTokenOptions as ax, type GroundmailTokenProvider as ay, type HeldBackErrorDetails as az, type ApiKey as b, type WaitForTestEmailParams as b$, type Migration as b0, type MigrationDnsChange as b1, type MigrationDnsPlan as b2, type MigrationDomainItem as b3, type MigrationItemStatus as b4, type MigrationProvider as b5, type MigrationResource as b6, type MigrationSummary as b7, type MigrationTemplateItem as b8, type MigrationTotals as b9, type TenantStatus as bA, type TenantStreamPolicy as bB, type TestEmailWebhookParams as bC, type TestEmailWebhookResult as bD, type TestInbox as bE, type TestInboxAddressOptions as bF, type TestInboxEmail as bG, type TestInboxEmailDetail as bH, type TestInboxHeader as bI, TestInboxResource as bJ, type TestInboxUsage as bK, type TriggerEventParams as bL, type TriggerEventResult as bM, type TwilioIntegrationResponse as bN, type TwilioIntegrationStatus as bO, type UpdateAutomationParams as bP, type UpdateBrandParams as bQ, type UpdateDomainParams as bR, type UpdateEmailParams as bS, type UpdateSenderParams as bT, type UpdateTemplateParams as bU, type UpdateTenantParams as bV, type UpdateWebhookParams as bW, type ValidateEmailResult as bX, type ValidationReason as bY, type ValidationVerdict as bZ, type VerifyDomainResult as b_, type MigrationWebhookItem as ba, type ReceivedEmail as bb, type ReceivedEmailAttachment as bc, type ReceivedEmailAttachmentMeta as bd, type RemoteApplyDnsCredentials as be, type RemoveCategoryOptOutOptions as bf, type RunMigrationOptions as bg, type SendEmailParams as bh, type Sender as bi, type SesMigrationParams as bj, type StreamDeliverability as bk, type SuppressedErrorDetails as bl, type Suppression as bm, TEST_INBOX_WAIT_DEFAULT_MS as bn, TEST_INBOX_WAIT_MAX_SECONDS as bo, type Template as bp, type TemplateFormat as bq, type TemplateLintWarning as br, type TemplateStarter as bs, type TemplateStatus as bt, type TemplateVersion as bu, type Tenant as bv, type TenantPauseSource as bw, type TenantRamp as bx, type TenantStats as by, type TenantStatsResult as bz, type ApiKeyMigrationParams as c, type WebhookEmailTag as c0, type WebhookEndpoint as c1, type WebhookEndpointWithSecret as c2, type WebhookEventType as c3, mergeMigrations as c4, normalizeAccessToken as c5, 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 AutomationInlineEmail as l, type AutomationResult as m, type AutomationRun as n, type AutomationRunResponse as o, type AutomationRunStatus as p, type AutomationRunStep as q, type AutomationRunStepStatus as r, type AutomationSendEmailStep as s, type AutomationStatus as t, type AutomationStep as u, type AutomationTemplateEmail as v, type AutomationTrigger as w, type BounceType as x, type Brand as y, type BrandLogo as z };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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';
1
+ import { A as ApiErrorBody, D as DnsRecord } from './client-BZWkihNZ.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 AutomationInlineEmail, m as AutomationResult, n as AutomationRun, o as AutomationRunResponse, p as AutomationRunStatus, q as AutomationRunStep, r as AutomationRunStepStatus, s as AutomationSendEmailStep, t as AutomationStatus, u as AutomationStep, v as AutomationTemplateEmail, w as AutomationTrigger, B as BatchSendEmailResult, x as BounceType, y as Brand, z as BrandLogo, C as BrandSettings, E as CategoryOptOut, F as CategoryOptOutCategory, H as CategoryUnsubscribedErrorDetails, I as ConnectTwilioParams, J as ContactWebhookEventPayload, K as CreateApiKeyParams, L as CreateApiKeyResult, M as CreateAutomationParams, N as CreateDomainParams, O as CreateDomainResult, P as CreateMigrationParams, Q as CreateSenderParams, R as CreateSuppressionParams, T as CreateTemplateParams, U as CreateTenantParams, V as CreateWebhookParams, W as DEFAULT_API_BASE_URL, X as DailyRampLimitErrorDetails, Y as DeleteTenantResult, Z as DeliverabilityBucket, _ as DeliverabilityDomainInsight, $ as DeliverabilityInsightsResult, a0 as DeliverabilityMailServerRelay, a1 as DeliverabilityWindow, a2 as DmarcDailyPoint, a3 as DmarcMonitoring, a4 as DmarcMonitoringDisabled, a5 as DmarcReadiness, a6 as DmarcReadinessVerdict, a7 as DmarcSource, a8 as DmarcSourceStatus, a9 as DmarcStatus, aa as DnsProviderName, ab as Domain, ac as DomainBimiAnalysis, ad as DomainBlocklistListing, ae as DomainBlocklistStatus, af as DomainBlocklists, ag as DomainDetailResult, ah as DomainDmarcAnalysis, ai as DomainDnsAnalysis, aj as DomainStatus, ak as DomainTlsMode, al as DomainTrackingDns, am as DomainTrackingStatus, an as EmailDelivery, ao as EmailListItem, ap as EmailWebhookEventPayload, aq as EmailWebhookEventType, ar as EnableDmarcParams, as as EnableDmarcResult, at as EnrollmentSkip, au as EventRecord, G as Groundmail, av as GroundmailAccessToken, aw as GroundmailOptions, ax as GroundmailTokenOptions, ay as GroundmailTokenProvider, az as HeldBackErrorDetails, aA as HeldBackReason, aB as HeldBackRecipient, aC as InReplyToEmail, aD as ListApiKeysParams, aE as ListApiKeysResult, aF as ListAutomationRunsParams, aG as ListAutomationRunsResult, aH as ListAutomationsResult, aI as ListCategoryOptOutsParams, aJ as ListCategoryOptOutsResult, aK as ListDomainsParams, aL as ListDomainsResult, aM as ListEmailsParams, aN as ListEmailsResult, aO as ListReceivedEmailsParams, aP as ListReceivedEmailsResult, aQ as ListSendersResult, aR as ListSuppressionsParams, aS as ListSuppressionsResult, aT as ListTemplatesParams, aU as ListTemplatesResult, aV as ListTenantDomainsResult, aW as ListTenantsParams, aX as ListTenantsResult, aY as ListTestInboxEmailsParams, aZ as ListTestInboxEmailsResult, a_ as MailServerSigningStatus, a$ as MailStream, b0 as Migration, b1 as MigrationDnsChange, b2 as MigrationDnsPlan, b3 as MigrationDomainItem, b4 as MigrationItemStatus, b5 as MigrationProvider, b6 as MigrationResource, b7 as MigrationSummary, b8 as MigrationTemplateItem, b9 as MigrationTotals, ba as MigrationWebhookItem, bb as ReceivedEmail, bc as ReceivedEmailAttachment, bd as ReceivedEmailAttachmentMeta, be as RemoteApplyDnsCredentials, bf as RemoveCategoryOptOutOptions, bg as RunMigrationOptions, bh as SendEmailParams, S as SendEmailResult, bi as Sender, bj as SesMigrationParams, bk as StreamDeliverability, bl as SuppressedErrorDetails, bm as Suppression, bn as TEST_INBOX_WAIT_DEFAULT_MS, bo as TEST_INBOX_WAIT_MAX_SECONDS, bp as Template, bq as TemplateFormat, br as TemplateLintWarning, bs as TemplateStarter, bt as TemplateStatus, bu as TemplateVersion, bv as Tenant, bw as TenantPauseSource, bx as TenantRamp, by as TenantStats, bz as TenantStatsResult, bA as TenantStatus, bB as TenantStreamPolicy, bC as TestEmailWebhookParams, bD as TestEmailWebhookResult, bE as TestInbox, bF as TestInboxAddressOptions, bG as TestInboxEmail, bH as TestInboxEmailDetail, bI as TestInboxHeader, bJ as TestInboxResource, bK as TestInboxUsage, bL as TriggerEventParams, bM as TriggerEventResult, bN as TwilioIntegrationResponse, bO as TwilioIntegrationStatus, bP as UpdateAutomationParams, bQ as UpdateBrandParams, bR as UpdateDomainParams, bS as UpdateEmailParams, bT as UpdateSenderParams, bU as UpdateTemplateParams, bV as UpdateTenantParams, bW as UpdateWebhookParams, bX as ValidateEmailResult, bY as ValidationReason, bZ as ValidationVerdict, b_ as VerifyDomainResult, b$ as WaitForTestEmailParams, c0 as WebhookEmailTag, c1 as WebhookEndpoint, c2 as WebhookEndpointWithSecret, c3 as WebhookEventType, c4 as mergeMigrations, c5 as normalizeAccessToken } from './client-BZWkihNZ.js';
3
3
 
4
4
  type GroundmailErrorOptions = {
5
5
  code?: string;
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  normalizeAccessToken,
13
13
  signWebhookPayload,
14
14
  verifyWebhookSignature
15
- } from "./chunk-ARI5MWK4.js";
15
+ } from "./chunk-HMOQDJOX.js";
16
16
 
17
17
  // src/simulator.ts
18
18
  var SIMULATOR_DOMAIN = "simulator.groundmail.dev";
package/dist/payload.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail } from './client-BZPPEFB1.js';
1
+ import { G as Groundmail } from './client-BZWkihNZ.js';
2
2
 
3
3
  /**
4
4
  * Minimal Payload `SendEmailOptions` / address shapes used by this adapter.
package/dist/payload.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_API_BASE_URL,
3
3
  Groundmail
4
- } from "./chunk-ARI5MWK4.js";
4
+ } from "./chunk-HMOQDJOX.js";
5
5
 
6
6
  // src/payload.ts
7
7
  function resolveApiKey(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groundmail",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "Groundmail transactional email API client",
5
5
  "license": "MIT",
6
6
  "type": "module",