groundmail 0.22.0 → 0.24.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/authjs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail } from './client-XU99yezY.js';
1
+ import { G as Groundmail } from './client-DkpJ9AT0.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-QBGTN2WD.js";
4
+ } from "./chunk-TTRMVR6T.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-XU99yezY.js';
1
+ import { S as SendEmailResult, G as Groundmail } from './client-DkpJ9AT0.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-QBGTN2WD.js";
4
+ } from "./chunk-TTRMVR6T.js";
5
5
 
6
6
  // src/better-auth.ts
7
7
  function linkHtml(label, url) {
@@ -1334,6 +1334,37 @@ var SuppressionsResource = class {
1334
1334
  method: "DELETE"
1335
1335
  });
1336
1336
  }
1337
+ /**
1338
+ * List category opt-outs: addresses that unsubscribed from product or
1339
+ * newsletter email. Pass `tenant` for one tenant's opt-outs.
1340
+ */
1341
+ async listCategoryOptOuts(params = {}) {
1342
+ const search = new URLSearchParams({ type: "category_opt_out" });
1343
+ if (params.limit != null) search.set("limit", String(params.limit));
1344
+ if (params.cursor) search.set("cursor", params.cursor);
1345
+ if (params.email) search.set("email", params.email);
1346
+ if (params.category) search.set("category", params.category);
1347
+ if (params.tenant) search.set("tenant", params.tenant);
1348
+ if (params.includeTenants) search.set("include_tenants", "true");
1349
+ return this.client.request(`/suppressions?${search.toString()}`, { method: "GET" });
1350
+ }
1351
+ /**
1352
+ * Remove a category opt-out by opt-out id or email address, so the address
1353
+ * can receive that category again (for example after the reader re-subscribes).
1354
+ * Throws a 404 error when nothing matches.
1355
+ */
1356
+ async removeCategoryOptOut(idOrEmail, options = {}) {
1357
+ const search = new URLSearchParams({ type: "category_opt_out" });
1358
+ if (options.category) search.set("category", options.category);
1359
+ if (options.tenant) search.set("tenant", options.tenant);
1360
+ if (idOrEmail.includes("@")) {
1361
+ search.set("email", idOrEmail);
1362
+ return this.client.request(`/suppressions?${search.toString()}`, { method: "DELETE" });
1363
+ }
1364
+ return this.client.request(`/suppressions/${encodeURIComponent(idOrEmail)}?${search.toString()}`, {
1365
+ method: "DELETE"
1366
+ });
1367
+ }
1337
1368
  };
1338
1369
 
1339
1370
  // src/templates.ts
package/dist/clerk.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail, S as SendEmailResult } from './client-XU99yezY.js';
1
+ import { G as Groundmail, S as SendEmailResult } from './client-DkpJ9AT0.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-QBGTN2WD.js";
4
+ } from "./chunk-TTRMVR6T.js";
5
5
 
6
6
  // src/clerk.ts
7
7
  function resolveApiKey(options) {
@@ -389,6 +389,11 @@ type CreateSmtpCredentialResult = SmtpCredential & {
389
389
  password: string;
390
390
  };
391
391
  type WebhookEventType = 'email.received' | 'email.sent' | 'email.delivered' | 'email.delivery_delayed' | 'email.held' | 'email.bounced' | 'email.complained' | 'email.opened' | 'email.clicked' | 'email.failed' | 'email.suppressed' | 'email.scheduled' | 'contact.unsubscribed' | 'automation.started' | 'automation.step_completed' | 'automation.completed' | 'automation.failed';
392
+ /** A tag on a webhook payload: the email's tags as sent, as `{ name, value }` pairs. */
393
+ type WebhookEmailTag = {
394
+ name: string;
395
+ value: string;
396
+ };
392
397
  /** Outbound `email.*` webhook payload (everything except `email.received`). */
393
398
  type EmailWebhookEventPayload = {
394
399
  type: Exclude<EmailWebhookEventType, 'email.received'>;
@@ -402,6 +407,11 @@ type EmailWebhookEventPayload = {
402
407
  bounce_reason?: string | null;
403
408
  /** Set on `email.bounced` and `email.failed` when the email bounced: `hard` or `block`. */
404
409
  bounce_type?: BounceType | null;
410
+ /**
411
+ * The email's tags as sent (`[]` when it had none), so you can match an event
412
+ * to your own records without storing the email id first.
413
+ */
414
+ tags?: WebhookEmailTag[];
405
415
  /** `true` on simulated events (test keys, simulator addresses, `POST /emails/test`). Absent on real mail. */
406
416
  test?: true;
407
417
  /** The tenant's external id, when the email was sent as a tenant. */
@@ -427,6 +437,13 @@ type ContactWebhookEventPayload = {
427
437
  suppression_id?: string | null;
428
438
  category_opt_out_id?: string | null;
429
439
  email_id?: string | null;
440
+ /**
441
+ * The tenant's external id when the unsubscribed email was sent as a tenant.
442
+ * The opt-out or suppression then applies to that tenant only.
443
+ */
444
+ tenant?: string;
445
+ /** The unsubscribed email's tags as sent; present when `email_id` is. */
446
+ tags?: WebhookEmailTag[];
430
447
  };
431
448
  };
432
449
  /** `details` on `POST /emails` 422 when recipients opted out of a category. */
@@ -680,6 +697,43 @@ type CreateSuppressionParams = {
680
697
  /** Add to this tenant's own list (external id or Groundmail id) instead of the account's. */
681
698
  tenant?: string;
682
699
  };
700
+ /** A category a reader can opt out of with a one-click unsubscribe. */
701
+ type CategoryOptOutCategory = 'product' | 'newsletter';
702
+ /**
703
+ * A category opt-out: the address unsubscribed from one category (product or
704
+ * newsletter email). Sends in that category to the address are refused with a 422.
705
+ */
706
+ type CategoryOptOut = {
707
+ id: string;
708
+ type: 'category_opt_out';
709
+ email: string;
710
+ category: CategoryOptOutCategory | string;
711
+ /** The tenant's external id for a tenant's opt-out; `null` when account-wide. */
712
+ tenant: string | null;
713
+ created_at: string;
714
+ updated_at: string;
715
+ };
716
+ type ListCategoryOptOutsParams = {
717
+ limit?: number;
718
+ cursor?: string;
719
+ email?: string;
720
+ category?: CategoryOptOutCategory;
721
+ /** List this tenant's opt-outs instead of the account-wide ones. */
722
+ tenant?: string;
723
+ /** Without `tenant`: also list every tenant's opt-outs (each row carries its tenant). */
724
+ includeTenants?: boolean;
725
+ };
726
+ type ListCategoryOptOutsResult = {
727
+ data: CategoryOptOut[];
728
+ has_more: boolean;
729
+ next_cursor: string | null;
730
+ };
731
+ type RemoveCategoryOptOutOptions = {
732
+ /** Only this category; omit to remove every category for the address. */
733
+ category?: CategoryOptOutCategory;
734
+ /** Remove from this tenant's opt-outs instead of the account-wide ones. */
735
+ tenant?: string;
736
+ };
683
737
  type TemplateStatus = 'draft' | 'published';
684
738
  type TemplateFormat = 'html' | 'blocks';
685
739
  type TemplateLintWarning = {
@@ -1522,6 +1576,20 @@ declare class SuppressionsResource {
1522
1576
  }): Promise<{
1523
1577
  ok: boolean;
1524
1578
  }>;
1579
+ /**
1580
+ * List category opt-outs: addresses that unsubscribed from product or
1581
+ * newsletter email. Pass `tenant` for one tenant's opt-outs.
1582
+ */
1583
+ listCategoryOptOuts(params?: ListCategoryOptOutsParams): Promise<ListCategoryOptOutsResult>;
1584
+ /**
1585
+ * Remove a category opt-out by opt-out id or email address, so the address
1586
+ * can receive that category again (for example after the reader re-subscribes).
1587
+ * Throws a 404 error when nothing matches.
1588
+ */
1589
+ removeCategoryOptOut(idOrEmail: string, options?: RemoveCategoryOptOutOptions): Promise<{
1590
+ ok: boolean;
1591
+ deleted: number;
1592
+ }>;
1525
1593
  }
1526
1594
 
1527
1595
  declare class TemplatesResource {
@@ -1683,4 +1751,4 @@ declare class Groundmail {
1683
1751
  request<T>(path: string, init: RequestInit): Promise<T>;
1684
1752
  }
1685
1753
 
1686
- export { type Domain as $, type ApiErrorBody as A, type BatchSendEmailResult as B, type CategoryUnsubscribedErrorDetails as C, type DnsRecord as D, type CreateSuppressionParams as E, type CreateTemplateParams as F, Groundmail as G, type CreateTenantParams as H, type CreateWebhookParams as I, DEFAULT_API_BASE_URL as J, type DailyRampLimitErrorDetails as K, type DeleteTenantResult as L, type DeliverabilityBucket as M, type DeliverabilityDomainInsight as N, type DeliverabilityInsightsResult as O, type DeliverabilityMailServerRelay as P, type DeliverabilityWindow as Q, type DmarcDailyPoint as R, type SendEmailResult as S, type DmarcMonitoring as T, type DmarcMonitoringDisabled as U, type DmarcReadiness as V, type DmarcReadinessVerdict as W, type DmarcSource as X, type DmarcSourceStatus as Y, type DmarcStatus as Z, type DnsProviderName as _, type ApiErrorCode as a, type TemplateStatus as a$, type DomainBimiAnalysis as a0, type DomainDetailResult as a1, type DomainDmarcAnalysis as a2, type DomainDnsAnalysis as a3, type DomainStatus as a4, type DomainTlsMode as a5, type DomainTrackingDns as a6, type DomainTrackingStatus as a7, type EmailListItem as a8, type EmailWebhookEventPayload as a9, type ListTenantsResult as aA, type MailServerSigningStatus as aB, type MailStream as aC, type Migration as aD, type MigrationDnsChange as aE, type MigrationDnsPlan as aF, type MigrationDomainItem as aG, type MigrationItemStatus as aH, type MigrationProvider as aI, type MigrationResource as aJ, type MigrationSummary as aK, type MigrationTemplateItem as aL, type MigrationTotals as aM, type MigrationWebhookItem as aN, type ReceivedEmail as aO, type ReceivedEmailAttachment as aP, type ReceivedEmailAttachmentMeta as aQ, type RemoteApplyDnsCredentials as aR, type RunMigrationOptions as aS, type SendEmailParams as aT, type StreamDeliverability as aU, type SuppressedErrorDetails as aV, type Suppression as aW, type Template as aX, type TemplateFormat as aY, type TemplateLintWarning as aZ, type TemplateStarter as a_, type EmailWebhookEventType as aa, type EnableDmarcParams as ab, type EnableDmarcResult as ac, type EnrollmentSkip as ad, type EventRecord as ae, type GroundmailOptions as af, type HeldBackErrorDetails as ag, type HeldBackReason as ah, type HeldBackRecipient as ai, type ListApiKeysParams as aj, type ListApiKeysResult as ak, type ListAutomationRunsParams as al, type ListAutomationRunsResult as am, type ListAutomationsResult as an, type ListDomainsParams as ao, type ListDomainsResult as ap, type ListEmailsParams as aq, type ListEmailsResult as ar, type ListReceivedEmailsParams as as, type ListReceivedEmailsResult as at, type ListSuppressionsParams as au, type ListSuppressionsResult as av, type ListTemplatesParams as aw, type ListTemplatesResult as ax, type ListTenantDomainsResult as ay, type ListTenantsParams as az, type ApiKey as b, type TemplateVersion as b0, type Tenant as b1, type TenantPauseSource as b2, type TenantRamp as b3, type TenantStats as b4, type TenantStatsResult as b5, type TenantStatus as b6, type TenantStreamPolicy as b7, type TestEmailWebhookParams as b8, type TestEmailWebhookResult as b9, type TriggerEventParams as ba, type TriggerEventResult as bb, type TwilioIntegrationResponse as bc, type TwilioIntegrationStatus as bd, type UpdateAutomationParams as be, type UpdateDomainParams as bf, type UpdateEmailParams as bg, type UpdateTemplateParams as bh, type UpdateTenantParams as bi, type UpdateWebhookParams as bj, type ValidateEmailResult as bk, type ValidationReason as bl, type ValidationVerdict as bm, type VerifyDomainResult as bn, type WebhookEndpoint as bo, type WebhookEndpointWithSecret as bp, type WebhookEventType as bq, mergeMigrations as br, type ApiKeyScope as c, type ApplyDnsParams as d, type ApplyDnsRecordResult as e, type ApplyDnsResult as f, type Asset as g, type Automation as h, type AutomationResult as i, type AutomationRun as j, type AutomationRunResponse as k, type AutomationRunStatus as l, type AutomationRunStep as m, type AutomationRunStepStatus as n, type AutomationStatus as o, type AutomationStep as p, type AutomationTrigger as q, type BounceType as r, type ConnectTwilioParams as s, type ContactWebhookEventPayload as t, type CreateApiKeyParams as u, type CreateApiKeyResult as v, type CreateAutomationParams as w, type CreateDomainParams as x, type CreateDomainResult as y, type CreateMigrationParams as z };
1754
+ export { type DmarcStatus as $, type ApiErrorBody as A, type BatchSendEmailResult as B, type CategoryOptOut as C, type DnsRecord as D, type CreateDomainResult as E, type CreateMigrationParams as F, Groundmail as G, type CreateSuppressionParams as H, type CreateTemplateParams as I, type CreateTenantParams as J, type CreateWebhookParams as K, DEFAULT_API_BASE_URL as L, type DailyRampLimitErrorDetails as M, type DeleteTenantResult as N, type DeliverabilityBucket as O, type DeliverabilityDomainInsight as P, type DeliverabilityInsightsResult as Q, type DeliverabilityMailServerRelay as R, type SendEmailResult as S, type DeliverabilityWindow as T, type DmarcDailyPoint as U, type DmarcMonitoring as V, type DmarcMonitoringDisabled as W, type DmarcReadiness as X, type DmarcReadinessVerdict as Y, type DmarcSource as Z, type DmarcSourceStatus as _, type ApiErrorCode as a, type Suppression as a$, type DnsProviderName as a0, type Domain as a1, type DomainBimiAnalysis as a2, type DomainDetailResult as a3, type DomainDmarcAnalysis as a4, type DomainDnsAnalysis as a5, type DomainStatus as a6, type DomainTlsMode as a7, type DomainTrackingDns as a8, type DomainTrackingStatus as a9, type ListTemplatesParams as aA, type ListTemplatesResult as aB, type ListTenantDomainsResult as aC, type ListTenantsParams as aD, type ListTenantsResult as aE, type MailServerSigningStatus as aF, type MailStream as aG, type Migration as aH, type MigrationDnsChange as aI, type MigrationDnsPlan as aJ, type MigrationDomainItem as aK, type MigrationItemStatus as aL, type MigrationProvider as aM, type MigrationResource as aN, type MigrationSummary as aO, type MigrationTemplateItem as aP, type MigrationTotals as aQ, type MigrationWebhookItem as aR, type ReceivedEmail as aS, type ReceivedEmailAttachment as aT, type ReceivedEmailAttachmentMeta as aU, type RemoteApplyDnsCredentials as aV, type RemoveCategoryOptOutOptions as aW, type RunMigrationOptions as aX, type SendEmailParams as aY, type StreamDeliverability as aZ, type SuppressedErrorDetails as a_, type EmailListItem as aa, type EmailWebhookEventPayload as ab, type EmailWebhookEventType as ac, type EnableDmarcParams as ad, type EnableDmarcResult as ae, type EnrollmentSkip as af, type EventRecord as ag, type GroundmailOptions as ah, type HeldBackErrorDetails as ai, type HeldBackReason as aj, type HeldBackRecipient as ak, type ListApiKeysParams as al, type ListApiKeysResult as am, type ListAutomationRunsParams as an, type ListAutomationRunsResult as ao, type ListAutomationsResult as ap, type ListCategoryOptOutsParams as aq, type ListCategoryOptOutsResult as ar, type ListDomainsParams as as, type ListDomainsResult as at, type ListEmailsParams as au, type ListEmailsResult as av, type ListReceivedEmailsParams as aw, type ListReceivedEmailsResult as ax, type ListSuppressionsParams as ay, type ListSuppressionsResult as az, type ApiKey as b, type Template as b0, type TemplateFormat as b1, type TemplateLintWarning as b2, type TemplateStarter as b3, type TemplateStatus as b4, type TemplateVersion as b5, type Tenant as b6, type TenantPauseSource as b7, type TenantRamp as b8, type TenantStats as b9, type TenantStatsResult as ba, type TenantStatus as bb, type TenantStreamPolicy as bc, type TestEmailWebhookParams as bd, type TestEmailWebhookResult 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 UpdateTemplateParams as bm, type UpdateTenantParams as bn, type UpdateWebhookParams as bo, type ValidateEmailResult as bp, type ValidationReason as bq, type ValidationVerdict as br, type VerifyDomainResult as bs, type WebhookEmailTag as bt, type WebhookEndpoint as bu, type WebhookEndpointWithSecret as bv, type WebhookEventType as bw, mergeMigrations as bx, type ApiKeyScope as c, type ApplyDnsParams as d, type ApplyDnsRecordResult as e, type ApplyDnsResult as f, type Asset as g, type Automation as h, type AutomationResult as i, type AutomationRun as j, type AutomationRunResponse as k, type AutomationRunStatus as l, type AutomationRunStep as m, type AutomationRunStepStatus as n, type AutomationStatus as o, type AutomationStep as p, type AutomationTrigger as q, type BounceType as r, type CategoryOptOutCategory as s, type CategoryUnsubscribedErrorDetails as t, type ConnectTwilioParams as u, type ContactWebhookEventPayload as v, type CreateApiKeyParams as w, type CreateApiKeyResult as x, type CreateAutomationParams as y, type CreateDomainParams as z };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiErrorBody, D as DnsRecord } from './client-XU99yezY.js';
2
- export { a as ApiErrorCode, b as ApiKey, c as ApiKeyScope, d as ApplyDnsParams, e as ApplyDnsRecordResult, f as ApplyDnsResult, g as Asset, h as Automation, i as AutomationResult, j as AutomationRun, k as AutomationRunResponse, l as AutomationRunStatus, m as AutomationRunStep, n as AutomationRunStepStatus, o as AutomationStatus, p as AutomationStep, q as AutomationTrigger, B as BatchSendEmailResult, r as BounceType, C as CategoryUnsubscribedErrorDetails, s as ConnectTwilioParams, t as ContactWebhookEventPayload, u as CreateApiKeyParams, v as CreateApiKeyResult, w as CreateAutomationParams, x as CreateDomainParams, y as CreateDomainResult, z as CreateMigrationParams, E as CreateSuppressionParams, F as CreateTemplateParams, H as CreateTenantParams, I as CreateWebhookParams, J as DEFAULT_API_BASE_URL, K as DailyRampLimitErrorDetails, L as DeleteTenantResult, M as DeliverabilityBucket, N as DeliverabilityDomainInsight, O as DeliverabilityInsightsResult, P as DeliverabilityMailServerRelay, Q as DeliverabilityWindow, R as DmarcDailyPoint, T as DmarcMonitoring, U as DmarcMonitoringDisabled, V as DmarcReadiness, W as DmarcReadinessVerdict, X as DmarcSource, Y as DmarcSourceStatus, Z as DmarcStatus, _ as DnsProviderName, $ as Domain, a0 as DomainBimiAnalysis, a1 as DomainDetailResult, a2 as DomainDmarcAnalysis, a3 as DomainDnsAnalysis, a4 as DomainStatus, a5 as DomainTlsMode, a6 as DomainTrackingDns, a7 as DomainTrackingStatus, a8 as EmailListItem, a9 as EmailWebhookEventPayload, aa as EmailWebhookEventType, ab as EnableDmarcParams, ac as EnableDmarcResult, ad as EnrollmentSkip, ae as EventRecord, G as Groundmail, af as GroundmailOptions, ag as HeldBackErrorDetails, ah as HeldBackReason, ai as HeldBackRecipient, aj as ListApiKeysParams, ak as ListApiKeysResult, al as ListAutomationRunsParams, am as ListAutomationRunsResult, an as ListAutomationsResult, ao as ListDomainsParams, ap as ListDomainsResult, aq as ListEmailsParams, ar as ListEmailsResult, as as ListReceivedEmailsParams, at as ListReceivedEmailsResult, au as ListSuppressionsParams, av as ListSuppressionsResult, aw as ListTemplatesParams, ax as ListTemplatesResult, ay as ListTenantDomainsResult, az as ListTenantsParams, aA as ListTenantsResult, aB as MailServerSigningStatus, aC as MailStream, aD as Migration, aE as MigrationDnsChange, aF as MigrationDnsPlan, aG as MigrationDomainItem, aH as MigrationItemStatus, aI as MigrationProvider, aJ as MigrationResource, aK as MigrationSummary, aL as MigrationTemplateItem, aM as MigrationTotals, aN as MigrationWebhookItem, aO as ReceivedEmail, aP as ReceivedEmailAttachment, aQ as ReceivedEmailAttachmentMeta, aR as RemoteApplyDnsCredentials, aS as RunMigrationOptions, aT as SendEmailParams, S as SendEmailResult, aU as StreamDeliverability, aV as SuppressedErrorDetails, aW as Suppression, aX as Template, aY as TemplateFormat, aZ as TemplateLintWarning, a_ as TemplateStarter, a$ as TemplateStatus, b0 as TemplateVersion, b1 as Tenant, b2 as TenantPauseSource, b3 as TenantRamp, b4 as TenantStats, b5 as TenantStatsResult, b6 as TenantStatus, b7 as TenantStreamPolicy, b8 as TestEmailWebhookParams, b9 as TestEmailWebhookResult, ba as TriggerEventParams, bb as TriggerEventResult, bc as TwilioIntegrationResponse, bd as TwilioIntegrationStatus, be as UpdateAutomationParams, bf as UpdateDomainParams, bg as UpdateEmailParams, bh as UpdateTemplateParams, bi as UpdateTenantParams, bj as UpdateWebhookParams, bk as ValidateEmailResult, bl as ValidationReason, bm as ValidationVerdict, bn as VerifyDomainResult, bo as WebhookEndpoint, bp as WebhookEndpointWithSecret, bq as WebhookEventType, br as mergeMigrations } from './client-XU99yezY.js';
1
+ import { A as ApiErrorBody, D as DnsRecord } from './client-DkpJ9AT0.js';
2
+ export { a as ApiErrorCode, b as ApiKey, c as ApiKeyScope, d as ApplyDnsParams, e as ApplyDnsRecordResult, f as ApplyDnsResult, g as Asset, h as Automation, i as AutomationResult, j as AutomationRun, k as AutomationRunResponse, l as AutomationRunStatus, m as AutomationRunStep, n as AutomationRunStepStatus, o as AutomationStatus, p as AutomationStep, q as AutomationTrigger, B as BatchSendEmailResult, r as BounceType, C as CategoryOptOut, s as CategoryOptOutCategory, t as CategoryUnsubscribedErrorDetails, u as ConnectTwilioParams, v as ContactWebhookEventPayload, w as CreateApiKeyParams, x as CreateApiKeyResult, y as CreateAutomationParams, z as CreateDomainParams, E as CreateDomainResult, F as CreateMigrationParams, H as CreateSuppressionParams, I as CreateTemplateParams, J as CreateTenantParams, K as CreateWebhookParams, L as DEFAULT_API_BASE_URL, M as DailyRampLimitErrorDetails, N as DeleteTenantResult, O as DeliverabilityBucket, P as DeliverabilityDomainInsight, Q as DeliverabilityInsightsResult, R as DeliverabilityMailServerRelay, T as DeliverabilityWindow, U as DmarcDailyPoint, V as DmarcMonitoring, W as DmarcMonitoringDisabled, X as DmarcReadiness, Y as DmarcReadinessVerdict, Z as DmarcSource, _ as DmarcSourceStatus, $ as DmarcStatus, a0 as DnsProviderName, a1 as Domain, a2 as DomainBimiAnalysis, a3 as DomainDetailResult, a4 as DomainDmarcAnalysis, a5 as DomainDnsAnalysis, a6 as DomainStatus, a7 as DomainTlsMode, a8 as DomainTrackingDns, a9 as DomainTrackingStatus, aa as EmailListItem, ab as EmailWebhookEventPayload, ac as EmailWebhookEventType, ad as EnableDmarcParams, ae as EnableDmarcResult, af as EnrollmentSkip, ag as EventRecord, G as Groundmail, ah as GroundmailOptions, ai as HeldBackErrorDetails, aj as HeldBackReason, ak as HeldBackRecipient, al as ListApiKeysParams, am as ListApiKeysResult, an as ListAutomationRunsParams, ao as ListAutomationRunsResult, ap as ListAutomationsResult, aq as ListCategoryOptOutsParams, ar as ListCategoryOptOutsResult, as as ListDomainsParams, at as ListDomainsResult, au as ListEmailsParams, av as ListEmailsResult, aw as ListReceivedEmailsParams, ax as ListReceivedEmailsResult, ay as ListSuppressionsParams, az as ListSuppressionsResult, aA as ListTemplatesParams, aB as ListTemplatesResult, aC as ListTenantDomainsResult, aD as ListTenantsParams, aE as ListTenantsResult, aF as MailServerSigningStatus, aG as MailStream, aH as Migration, aI as MigrationDnsChange, aJ as MigrationDnsPlan, aK as MigrationDomainItem, aL as MigrationItemStatus, aM as MigrationProvider, aN as MigrationResource, aO as MigrationSummary, aP as MigrationTemplateItem, aQ as MigrationTotals, aR as MigrationWebhookItem, aS as ReceivedEmail, aT as ReceivedEmailAttachment, aU as ReceivedEmailAttachmentMeta, aV as RemoteApplyDnsCredentials, aW as RemoveCategoryOptOutOptions, aX as RunMigrationOptions, aY as SendEmailParams, S as SendEmailResult, aZ as StreamDeliverability, a_ as SuppressedErrorDetails, a$ as Suppression, b0 as Template, b1 as TemplateFormat, b2 as TemplateLintWarning, b3 as TemplateStarter, b4 as TemplateStatus, b5 as TemplateVersion, b6 as Tenant, b7 as TenantPauseSource, b8 as TenantRamp, b9 as TenantStats, ba as TenantStatsResult, bb as TenantStatus, bc as TenantStreamPolicy, bd as TestEmailWebhookParams, be as TestEmailWebhookResult, bf as TriggerEventParams, bg as TriggerEventResult, bh as TwilioIntegrationResponse, bi as TwilioIntegrationStatus, bj as UpdateAutomationParams, bk as UpdateDomainParams, bl as UpdateEmailParams, bm as UpdateTemplateParams, bn as UpdateTenantParams, bo as UpdateWebhookParams, bp as ValidateEmailResult, bq as ValidationReason, br as ValidationVerdict, bs as VerifyDomainResult, bt as WebhookEmailTag, bu as WebhookEndpoint, bv as WebhookEndpointWithSecret, bw as WebhookEventType, bx as mergeMigrations } from './client-DkpJ9AT0.js';
3
3
 
4
4
  type GroundmailErrorOptions = {
5
5
  code?: string;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  mergeSpfInclude,
9
9
  signWebhookPayload,
10
10
  verifyWebhookSignature
11
- } from "./chunk-QBGTN2WD.js";
11
+ } from "./chunk-TTRMVR6T.js";
12
12
 
13
13
  // src/simulator.ts
14
14
  var SIMULATOR_DOMAIN = "simulator.groundmail.dev";
package/dist/payload.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail } from './client-XU99yezY.js';
1
+ import { G as Groundmail } from './client-DkpJ9AT0.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-QBGTN2WD.js";
4
+ } from "./chunk-TTRMVR6T.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.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Groundmail transactional email API client",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -89,7 +89,7 @@
89
89
  "prepublishOnly": "npm run build && npm run build:nodemailer-bridge"
90
90
  },
91
91
  "dependencies": {
92
- "groundmail-nodemailer": "0.15.8"
92
+ "groundmail-nodemailer": "0.15.10"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@types/nodemailer": "^8.0.1",