groundmail 0.36.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-_kSrks28.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-_kSrks28.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-_kSrks28.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) {
@@ -1662,6 +1662,79 @@ type WaitForTestEmailParams = {
1662
1662
  /** Only emails received at or after this time. */
1663
1663
  since?: Date | string;
1664
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
+ };
1665
1738
 
1666
1739
  declare class AutomationsResource {
1667
1740
  private readonly client;
@@ -1953,6 +2026,23 @@ declare class SendersResource {
1953
2026
  }>;
1954
2027
  }
1955
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
+
1956
2046
  declare class SuppressionsResource {
1957
2047
  private readonly client;
1958
2048
  constructor(client: Groundmail);
@@ -2162,6 +2252,8 @@ declare class Groundmail {
2162
2252
  readonly templates: TemplatesResource;
2163
2253
  /** Saved senders: name, address and reply-to that sends name with `sender: 'billing'`. */
2164
2254
  readonly senders: SendersResource;
2255
+ /** Your workspace brand: the look, logo and footer every template follows. */
2256
+ readonly brand: BrandResource;
2165
2257
  /** Your platform's customers, each with its own domains, suppressions, stats and limits. */
2166
2258
  readonly tenants: TenantsResource;
2167
2259
  /** Import from SendGrid, Postmark, Mailgun, Resend or Amazon SES (Beta). */
@@ -2205,4 +2297,4 @@ declare function normalizeAccessToken(value: GroundmailAccessToken | null | unde
2205
2297
  expiresAt: number | null;
2206
2298
  };
2207
2299
 
2208
- export { type DmarcDailyPoint as $, type ApiErrorBody as A, type BatchSendEmailResult as B, type CategoryOptOut as C, type DnsRecord as D, type ConnectTwilioParams as E, type ContactWebhookEventPayload as F, Groundmail as G, type CreateApiKeyParams as H, type CreateApiKeyResult as I, type CreateAutomationParams as J, type CreateDomainParams as K, type CreateDomainResult as L, type CreateMigrationParams as M, type CreateSenderParams as N, type CreateSuppressionParams as O, type CreateTemplateParams as P, type CreateTenantParams as Q, type CreateWebhookParams as R, type SendEmailResult as S, DEFAULT_API_BASE_URL as T, type DailyRampLimitErrorDetails as U, type DeleteTenantResult as V, type DeliverabilityBucket as W, type DeliverabilityDomainInsight as X, type DeliverabilityInsightsResult as Y, type DeliverabilityMailServerRelay as Z, type DeliverabilityWindow as _, type ApiErrorCode as a, type MigrationDnsPlan as a$, type DmarcMonitoring as a0, type DmarcMonitoringDisabled as a1, type DmarcReadiness as a2, type DmarcReadinessVerdict as a3, type DmarcSource as a4, type DmarcSourceStatus as a5, type DmarcStatus as a6, type DnsProviderName as a7, type Domain as a8, type DomainBimiAnalysis as a9, type ListApiKeysParams as aA, type ListApiKeysResult as aB, type ListAutomationRunsParams as aC, type ListAutomationRunsResult as aD, type ListAutomationsResult as aE, type ListCategoryOptOutsParams as aF, type ListCategoryOptOutsResult as aG, type ListDomainsParams as aH, type ListDomainsResult as aI, type ListEmailsParams as aJ, type ListEmailsResult as aK, type ListReceivedEmailsParams as aL, type ListReceivedEmailsResult as aM, type ListSendersResult as aN, type ListSuppressionsParams as aO, type ListSuppressionsResult as aP, type ListTemplatesParams as aQ, type ListTemplatesResult as aR, type ListTenantDomainsResult as aS, type ListTenantsParams as aT, type ListTenantsResult as aU, type ListTestInboxEmailsParams as aV, type ListTestInboxEmailsResult as aW, type MailServerSigningStatus as aX, type MailStream as aY, type Migration as aZ, type MigrationDnsChange as a_, type DomainBlocklistListing as aa, type DomainBlocklistStatus as ab, type DomainBlocklists as ac, type DomainDetailResult as ad, type DomainDmarcAnalysis as ae, type DomainDnsAnalysis as af, type DomainStatus as ag, type DomainTlsMode as ah, type DomainTrackingDns as ai, type DomainTrackingStatus as aj, type EmailDelivery as ak, type EmailListItem as al, type EmailWebhookEventPayload as am, type EmailWebhookEventType as an, type EnableDmarcParams as ao, type EnableDmarcResult as ap, type EnrollmentSkip as aq, type EventRecord as ar, type GroundmailAccessToken as as, type GroundmailOptions as at, type GroundmailTokenOptions as au, type GroundmailTokenProvider as av, type HeldBackErrorDetails as aw, type HeldBackReason as ax, type HeldBackRecipient as ay, type InReplyToEmail as az, type ApiKey as b, type WebhookEventType as b$, type MigrationDomainItem as b0, type MigrationItemStatus as b1, type MigrationProvider as b2, type MigrationResource as b3, type MigrationSummary as b4, type MigrationTemplateItem as b5, type MigrationTotals as b6, type MigrationWebhookItem as b7, type ReceivedEmail as b8, type ReceivedEmailAttachment as b9, type TestEmailWebhookResult as bA, type TestInbox as bB, type TestInboxAddressOptions as bC, type TestInboxEmail as bD, type TestInboxEmailDetail as bE, type TestInboxHeader as bF, TestInboxResource as bG, type TestInboxUsage as bH, type TriggerEventParams as bI, type TriggerEventResult as bJ, type TwilioIntegrationResponse as bK, type TwilioIntegrationStatus as bL, type UpdateAutomationParams as bM, type UpdateDomainParams as bN, type UpdateEmailParams as bO, type UpdateSenderParams as bP, type UpdateTemplateParams as bQ, type UpdateTenantParams as bR, type UpdateWebhookParams as bS, type ValidateEmailResult as bT, type ValidationReason as bU, type ValidationVerdict as bV, type VerifyDomainResult as bW, type WaitForTestEmailParams as bX, type WebhookEmailTag as bY, type WebhookEndpoint as bZ, type WebhookEndpointWithSecret as b_, type ReceivedEmailAttachmentMeta as ba, type RemoteApplyDnsCredentials as bb, type RemoveCategoryOptOutOptions as bc, type RunMigrationOptions as bd, type SendEmailParams as be, type Sender as bf, type SesMigrationParams as bg, type StreamDeliverability as bh, type SuppressedErrorDetails as bi, type Suppression as bj, TEST_INBOX_WAIT_DEFAULT_MS as bk, TEST_INBOX_WAIT_MAX_SECONDS as bl, type Template as bm, type TemplateFormat as bn, type TemplateLintWarning as bo, type TemplateStarter as bp, type TemplateStatus as bq, type TemplateVersion as br, type Tenant as bs, type TenantPauseSource as bt, type TenantRamp as bu, type TenantStats as bv, type TenantStatsResult as bw, type TenantStatus as bx, type TenantStreamPolicy as by, type TestEmailWebhookParams as bz, type ApiKeyMigrationParams as c, mergeMigrations as c0, normalizeAccessToken as c1, 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 CategoryOptOutCategory as y, type CategoryUnsubscribedErrorDetails 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-_kSrks28.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, C as CategoryOptOut, y as CategoryOptOutCategory, z as CategoryUnsubscribedErrorDetails, E as ConnectTwilioParams, F as ContactWebhookEventPayload, H as CreateApiKeyParams, I as CreateApiKeyResult, J as CreateAutomationParams, K as CreateDomainParams, L as CreateDomainResult, M as CreateMigrationParams, N as CreateSenderParams, O as CreateSuppressionParams, P as CreateTemplateParams, Q as CreateTenantParams, R as CreateWebhookParams, T as DEFAULT_API_BASE_URL, U as DailyRampLimitErrorDetails, V as DeleteTenantResult, W as DeliverabilityBucket, X as DeliverabilityDomainInsight, Y as DeliverabilityInsightsResult, Z as DeliverabilityMailServerRelay, _ as DeliverabilityWindow, $ as DmarcDailyPoint, a0 as DmarcMonitoring, a1 as DmarcMonitoringDisabled, a2 as DmarcReadiness, a3 as DmarcReadinessVerdict, a4 as DmarcSource, a5 as DmarcSourceStatus, a6 as DmarcStatus, a7 as DnsProviderName, a8 as Domain, a9 as DomainBimiAnalysis, aa as DomainBlocklistListing, ab as DomainBlocklistStatus, ac as DomainBlocklists, ad as DomainDetailResult, ae as DomainDmarcAnalysis, af as DomainDnsAnalysis, ag as DomainStatus, ah as DomainTlsMode, ai as DomainTrackingDns, aj as DomainTrackingStatus, ak as EmailDelivery, al as EmailListItem, am as EmailWebhookEventPayload, an as EmailWebhookEventType, ao as EnableDmarcParams, ap as EnableDmarcResult, aq as EnrollmentSkip, ar as EventRecord, G as Groundmail, as as GroundmailAccessToken, at as GroundmailOptions, au as GroundmailTokenOptions, av as GroundmailTokenProvider, aw as HeldBackErrorDetails, ax as HeldBackReason, ay as HeldBackRecipient, az as InReplyToEmail, aA as ListApiKeysParams, aB as ListApiKeysResult, aC as ListAutomationRunsParams, aD as ListAutomationRunsResult, aE as ListAutomationsResult, aF as ListCategoryOptOutsParams, aG as ListCategoryOptOutsResult, aH as ListDomainsParams, aI as ListDomainsResult, aJ as ListEmailsParams, aK as ListEmailsResult, aL as ListReceivedEmailsParams, aM as ListReceivedEmailsResult, aN as ListSendersResult, aO as ListSuppressionsParams, aP as ListSuppressionsResult, aQ as ListTemplatesParams, aR as ListTemplatesResult, aS as ListTenantDomainsResult, aT as ListTenantsParams, aU as ListTenantsResult, aV as ListTestInboxEmailsParams, aW as ListTestInboxEmailsResult, aX as MailServerSigningStatus, aY as MailStream, aZ as Migration, a_ as MigrationDnsChange, a$ as MigrationDnsPlan, b0 as MigrationDomainItem, b1 as MigrationItemStatus, b2 as MigrationProvider, b3 as MigrationResource, b4 as MigrationSummary, b5 as MigrationTemplateItem, b6 as MigrationTotals, b7 as MigrationWebhookItem, b8 as ReceivedEmail, b9 as ReceivedEmailAttachment, ba as ReceivedEmailAttachmentMeta, bb as RemoteApplyDnsCredentials, bc as RemoveCategoryOptOutOptions, bd as RunMigrationOptions, be as SendEmailParams, S as SendEmailResult, bf as Sender, bg as SesMigrationParams, bh as StreamDeliverability, bi as SuppressedErrorDetails, bj as Suppression, bk as TEST_INBOX_WAIT_DEFAULT_MS, bl as TEST_INBOX_WAIT_MAX_SECONDS, bm as Template, bn as TemplateFormat, bo as TemplateLintWarning, bp as TemplateStarter, bq as TemplateStatus, br as TemplateVersion, bs as Tenant, bt as TenantPauseSource, bu as TenantRamp, bv as TenantStats, bw as TenantStatsResult, bx as TenantStatus, by as TenantStreamPolicy, bz as TestEmailWebhookParams, bA as TestEmailWebhookResult, bB as TestInbox, bC as TestInboxAddressOptions, bD as TestInboxEmail, bE as TestInboxEmailDetail, bF as TestInboxHeader, bG as TestInboxResource, bH as TestInboxUsage, bI as TriggerEventParams, bJ as TriggerEventResult, bK as TwilioIntegrationResponse, bL as TwilioIntegrationStatus, bM as UpdateAutomationParams, bN as UpdateDomainParams, bO as UpdateEmailParams, bP as UpdateSenderParams, bQ as UpdateTemplateParams, bR as UpdateTenantParams, bS as UpdateWebhookParams, bT as ValidateEmailResult, bU as ValidationReason, bV as ValidationVerdict, bW as VerifyDomainResult, bX as WaitForTestEmailParams, bY as WebhookEmailTag, bZ as WebhookEndpoint, b_ as WebhookEndpointWithSecret, b$ as WebhookEventType, c0 as mergeMigrations, c1 as normalizeAccessToken } from './client-_kSrks28.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-_kSrks28.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.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "Groundmail transactional email API client",
5
5
  "license": "MIT",
6
6
  "type": "module",