groundmail 0.38.0 → 0.39.1

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-gRhoYpOK.js';
1
+ import { G as Groundmail } from './client-CTQyEXww.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-5KMGMW5F.js";
4
+ } from "./chunk-V4ZZRJ3Q.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-gRhoYpOK.js';
1
+ import { S as SendEmailResult, G as Groundmail } from './client-CTQyEXww.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-5KMGMW5F.js";
4
+ } from "./chunk-V4ZZRJ3Q.js";
5
5
 
6
6
  // src/better-auth.ts
7
7
  function linkHtml(label, url) {
@@ -2118,9 +2118,41 @@ var TenantDomainsResource = class {
2118
2118
  };
2119
2119
 
2120
2120
  // src/webhooks/index.ts
2121
+ var WebhookDeliveriesResource = class {
2122
+ constructor(client) {
2123
+ this.client = client;
2124
+ }
2125
+ /** Newest first. Filter by `status`, `event`, `email_id`, `test`, or search with `q`. */
2126
+ async list(webhookId, params = {}) {
2127
+ const search = new URLSearchParams();
2128
+ for (const [key, value] of Object.entries(params)) {
2129
+ if (value != null && value !== "") search.set(key, String(value));
2130
+ }
2131
+ const query = search.toString();
2132
+ return this.client.request(
2133
+ `/webhooks/${encodeURIComponent(webhookId)}/deliveries${query ? `?${query}` : ""}`,
2134
+ { method: "GET" }
2135
+ );
2136
+ }
2137
+ /** One delivery with every attempt, the payload sent and what your server replied. */
2138
+ async get(webhookId, deliveryId) {
2139
+ return this.client.request(
2140
+ `/webhooks/${encodeURIComponent(webhookId)}/deliveries/${encodeURIComponent(deliveryId)}`,
2141
+ { method: "GET" }
2142
+ );
2143
+ }
2144
+ /** Send the same payload again as a new delivery, signed afresh. The original is unchanged. */
2145
+ async resend(webhookId, deliveryId) {
2146
+ return this.client.request(
2147
+ `/webhooks/${encodeURIComponent(webhookId)}/deliveries/${encodeURIComponent(deliveryId)}/resend`,
2148
+ { method: "POST" }
2149
+ );
2150
+ }
2151
+ };
2121
2152
  var WebhooksResource = class {
2122
2153
  constructor(client) {
2123
2154
  this.client = client;
2155
+ this.deliveries = new WebhookDeliveriesResource(client);
2124
2156
  }
2125
2157
  async list(params = {}) {
2126
2158
  const search = new URLSearchParams();
package/dist/clerk.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail, S as SendEmailResult } from './client-gRhoYpOK.js';
1
+ import { G as Groundmail, S as SendEmailResult } from './client-CTQyEXww.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-5KMGMW5F.js";
4
+ } from "./chunk-V4ZZRJ3Q.js";
5
5
 
6
6
  // src/clerk.ts
7
7
  function resolveApiKey(options) {
@@ -809,9 +809,81 @@ type WebhookEndpoint = {
809
809
  enabled: boolean;
810
810
  /** Present only when the endpoint receives email events for some tenants only (their external ids). */
811
811
  tenants?: string[];
812
+ /** Delivery health, on `list` and `get`. */
813
+ health?: WebhookEndpointHealth;
812
814
  created_at: string;
813
815
  updated_at: string;
814
816
  };
817
+ type WebhookEndpointHealth = {
818
+ last_24h: {
819
+ total: number;
820
+ delivered: number;
821
+ /** Deliveries that used all 5 attempts and still failed. */
822
+ failed: number;
823
+ /** Median response time in milliseconds; null with no responses. */
824
+ median_latency_ms: number | null;
825
+ };
826
+ last_delivery_at: string | null;
827
+ last_status: WebhookDeliveryStatus | null;
828
+ /** The HTTP status of the latest attempt; null when nothing answered. */
829
+ last_response_status: number | null;
830
+ /** At least one delivery failed all 5 attempts in the last 24 hours. */
831
+ failing: boolean;
832
+ };
833
+ type WebhookDeliveryStatus = 'pending' | 'retrying' | 'delivered' | 'failed';
834
+ type WebhookDelivery = {
835
+ id: string;
836
+ webhook_id: string;
837
+ event: WebhookEventType;
838
+ status: WebhookDeliveryStatus;
839
+ attempt_count: number;
840
+ max_attempts: number;
841
+ email_id: string | null;
842
+ recipient: string | null;
843
+ /** A simulated event (`data.test: true`). */
844
+ test: boolean;
845
+ /** The latest attempt's HTTP status; null when nothing answered. */
846
+ response_status: number | null;
847
+ /** Why there was no response: `timeout`, `connection`, or `blocked_destination` (a private or internal URL, so no request was made). */
848
+ error_kind: 'timeout' | 'connection' | 'blocked_destination' | null;
849
+ latency_ms: number | null;
850
+ last_attempt_at: string | null;
851
+ next_attempt_at: string | null;
852
+ /** The delivery this one resends. */
853
+ resent_from: string | null;
854
+ created_at: string;
855
+ updated_at: string;
856
+ };
857
+ type WebhookDeliveryAttempt = {
858
+ attempt: number;
859
+ started_at: string;
860
+ response_status: number | null;
861
+ error_kind: 'timeout' | 'connection' | 'blocked_destination' | null;
862
+ latency_ms: number | null;
863
+ /** The first 2 KB of what your server replied. */
864
+ response_body: string | null;
865
+ response_headers: Record<string, string> | null;
866
+ };
867
+ type WebhookDeliveryDetail = WebhookDelivery & {
868
+ /** The event exactly as sent. */
869
+ payload: unknown;
870
+ attempts: WebhookDeliveryAttempt[];
871
+ };
872
+ type ListWebhookDeliveriesParams = {
873
+ limit?: number;
874
+ cursor?: string;
875
+ status?: WebhookDeliveryStatus;
876
+ event?: WebhookEventType;
877
+ email_id?: string;
878
+ /** An exact email id, or part of a recipient address. */
879
+ q?: string;
880
+ test?: boolean;
881
+ };
882
+ type ListWebhookDeliveriesResult = {
883
+ deliveries: WebhookDelivery[];
884
+ has_more: boolean;
885
+ next_cursor: string | null;
886
+ };
815
887
  type CreateWebhookParams = {
816
888
  url: string;
817
889
  events?: WebhookEventType[];
@@ -2258,8 +2330,24 @@ declare class TestInboxResource {
2258
2330
  waitFor(params: WaitForTestEmailParams): Promise<TestInboxEmailDetail>;
2259
2331
  }
2260
2332
 
2333
+ /** The delivery log of one endpoint: every event sent to it, kept 30 days. */
2334
+ declare class WebhookDeliveriesResource {
2335
+ private readonly client;
2336
+ constructor(client: Groundmail);
2337
+ /** Newest first. Filter by `status`, `event`, `email_id`, `test`, or search with `q`. */
2338
+ list(webhookId: string, params?: ListWebhookDeliveriesParams): Promise<ListWebhookDeliveriesResult>;
2339
+ /** One delivery with every attempt, the payload sent and what your server replied. */
2340
+ get(webhookId: string, deliveryId: string): Promise<{
2341
+ delivery: WebhookDeliveryDetail;
2342
+ }>;
2343
+ /** Send the same payload again as a new delivery, signed afresh. The original is unchanged. */
2344
+ resend(webhookId: string, deliveryId: string): Promise<{
2345
+ delivery: WebhookDeliveryDetail;
2346
+ }>;
2347
+ }
2261
2348
  declare class WebhooksResource {
2262
2349
  private readonly client;
2350
+ readonly deliveries: WebhookDeliveriesResource;
2263
2351
  constructor(client: Groundmail);
2264
2352
  list(params?: {
2265
2353
  limit?: number;
@@ -2345,4 +2433,4 @@ declare function normalizeAccessToken(value: GroundmailAccessToken | null | unde
2345
2433
  expiresAt: number | null;
2346
2434
  };
2347
2435
 
2348
- export { type DeliverabilityBucket as $, type ApiErrorBody as A, type Batch as B, type BrandLogo as C, type DnsRecord as D, type BrandSettings as E, type CancelBatchResult as F, Groundmail as G, type CategoryOptOut as H, type CategoryOptOutCategory as I, type CategoryUnsubscribedErrorDetails as J, type ConnectTwilioParams as K, type ContactWebhookEventPayload as L, type CreateApiKeyParams as M, type CreateApiKeyResult as N, type CreateAutomationParams as O, type CreateDomainParams as P, type CreateDomainResult as Q, type CreateMigrationParams as R, type SendEmailResult as S, type CreateSenderParams as T, type CreateSuppressionParams as U, type CreateTemplateParams as V, type CreateTenantParams as W, type CreateWebhookParams as X, DEFAULT_API_BASE_URL as Y, type DailyRampLimitErrorDetails as Z, type DeleteTenantResult as _, type ApiErrorCode as a, type ListTestInboxEmailsResult as a$, type DeliverabilityDomainInsight as a0, type DeliverabilityInsightsResult as a1, type DeliverabilityMailServerRelay as a2, type DeliverabilityWindow as a3, type DmarcDailyPoint as a4, type DmarcMonitoring as a5, type DmarcMonitoringDisabled as a6, type DmarcReadiness as a7, type DmarcReadinessVerdict as a8, type DmarcSource as a9, type GroundmailTokenProvider as aA, type HeldBackErrorDetails as aB, type HeldBackReason as aC, type HeldBackRecipient as aD, type InReplyToEmail as aE, type ListApiKeysParams as aF, type ListApiKeysResult as aG, type ListAutomationRunsParams as aH, type ListAutomationRunsResult as aI, type ListAutomationsResult as aJ, type ListCategoryOptOutsParams as aK, type ListCategoryOptOutsResult as aL, type ListDomainsParams as aM, type ListDomainsResult as aN, type ListEmailsParams as aO, type ListEmailsResult as aP, type ListReceivedEmailsParams as aQ, type ListReceivedEmailsResult as aR, type ListSendersResult as aS, type ListSuppressionsParams as aT, type ListSuppressionsResult as aU, type ListTemplatesParams as aV, type ListTemplatesResult as aW, type ListTenantDomainsResult as aX, type ListTenantsParams as aY, type ListTenantsResult as aZ, type ListTestInboxEmailsParams as a_, type DmarcSourceStatus as aa, type DmarcStatus as ab, type DnsProviderName as ac, type Domain as ad, type DomainBimiAnalysis as ae, type DomainBlocklistListing as af, type DomainBlocklistStatus as ag, type DomainBlocklists as ah, type DomainDetailResult as ai, type DomainDmarcAnalysis as aj, type DomainDnsAnalysis as ak, type DomainStatus as al, type DomainTlsMode as am, type DomainTrackingDns as an, type DomainTrackingStatus as ao, type EmailDelivery as ap, type EmailListItem as aq, type EmailWebhookEventPayload as ar, type EmailWebhookEventType as as, type EnableDmarcParams as at, type EnableDmarcResult as au, type EnrollmentSkip as av, type EventRecord as aw, type GroundmailAccessToken as ax, type GroundmailOptions as ay, type GroundmailTokenOptions as az, type ApiKey as b, type ValidationVerdict as b$, type MailServerSigningStatus as b0, type MailStream as b1, type Migration as b2, type MigrationDnsChange as b3, type MigrationDnsPlan as b4, type MigrationDomainItem as b5, type MigrationItemStatus as b6, type MigrationProvider as b7, type MigrationResource as b8, type MigrationSummary as b9, type TenantStats as bA, type TenantStatsResult as bB, type TenantStatus as bC, type TenantStreamPolicy as bD, type TestEmailWebhookParams as bE, type TestEmailWebhookResult as bF, type TestInbox as bG, type TestInboxAddressOptions as bH, type TestInboxEmail as bI, type TestInboxEmailDetail as bJ, type TestInboxHeader as bK, TestInboxResource as bL, type TestInboxUsage as bM, type TriggerEventParams as bN, type TriggerEventResult as bO, type TwilioIntegrationResponse as bP, type TwilioIntegrationStatus as bQ, type UpdateAutomationParams as bR, type UpdateBrandParams as bS, type UpdateDomainParams as bT, type UpdateEmailParams as bU, type UpdateSenderParams as bV, type UpdateTemplateParams as bW, type UpdateTenantParams as bX, type UpdateWebhookParams as bY, type ValidateEmailResult as bZ, type ValidationReason as b_, type MigrationTemplateItem as ba, type MigrationTotals as bb, type MigrationWebhookItem as bc, type ReceivedEmail as bd, type ReceivedEmailAttachment as be, type ReceivedEmailAttachmentMeta as bf, type RemoteApplyDnsCredentials as bg, type RemoveCategoryOptOutOptions as bh, type RunMigrationOptions as bi, type SendEmailParams as bj, type Sender as bk, type SesMigrationParams as bl, type StreamDeliverability as bm, type SuppressedErrorDetails as bn, type Suppression as bo, TEST_INBOX_WAIT_DEFAULT_MS as bp, TEST_INBOX_WAIT_MAX_SECONDS as bq, type Template as br, type TemplateFormat as bs, type TemplateLintWarning as bt, type TemplateStarter as bu, type TemplateStatus as bv, type TemplateVersion as bw, type Tenant as bx, type TenantPauseSource as by, type TenantRamp as bz, type ApiKeyMigrationParams as c, type VerifyDomainResult as c0, type WaitForTestEmailParams as c1, type WebhookEmailTag as c2, type WebhookEndpoint as c3, type WebhookEndpointWithSecret as c4, type WebhookEventType as c5, mergeMigrations as c6, normalizeAccessToken as c7, 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 BatchSendEmailResult as x, type BounceType as y, type Brand as z };
2436
+ export { type DeliverabilityBucket as $, type ApiErrorBody as A, type Batch as B, type BrandLogo as C, type DnsRecord as D, type BrandSettings as E, type CancelBatchResult as F, Groundmail as G, type CategoryOptOut as H, type CategoryOptOutCategory as I, type CategoryUnsubscribedErrorDetails as J, type ConnectTwilioParams as K, type ContactWebhookEventPayload as L, type CreateApiKeyParams as M, type CreateApiKeyResult as N, type CreateAutomationParams as O, type CreateDomainParams as P, type CreateDomainResult as Q, type CreateMigrationParams as R, type SendEmailResult as S, type CreateSenderParams as T, type CreateSuppressionParams as U, type CreateTemplateParams as V, type CreateTenantParams as W, type CreateWebhookParams as X, DEFAULT_API_BASE_URL as Y, type DailyRampLimitErrorDetails as Z, type DeleteTenantResult as _, type ApiErrorCode as a, type ListTestInboxEmailsResult as a$, type DeliverabilityDomainInsight as a0, type DeliverabilityInsightsResult as a1, type DeliverabilityMailServerRelay as a2, type DeliverabilityWindow as a3, type DmarcDailyPoint as a4, type DmarcMonitoring as a5, type DmarcMonitoringDisabled as a6, type DmarcReadiness as a7, type DmarcReadinessVerdict as a8, type DmarcSource as a9, type GroundmailTokenProvider as aA, type HeldBackErrorDetails as aB, type HeldBackReason as aC, type HeldBackRecipient as aD, type InReplyToEmail as aE, type ListApiKeysParams as aF, type ListApiKeysResult as aG, type ListAutomationRunsParams as aH, type ListAutomationRunsResult as aI, type ListAutomationsResult as aJ, type ListCategoryOptOutsParams as aK, type ListCategoryOptOutsResult as aL, type ListDomainsParams as aM, type ListDomainsResult as aN, type ListEmailsParams as aO, type ListEmailsResult as aP, type ListReceivedEmailsParams as aQ, type ListReceivedEmailsResult as aR, type ListSendersResult as aS, type ListSuppressionsParams as aT, type ListSuppressionsResult as aU, type ListTemplatesParams as aV, type ListTemplatesResult as aW, type ListTenantDomainsResult as aX, type ListTenantsParams as aY, type ListTenantsResult as aZ, type ListTestInboxEmailsParams as a_, type DmarcSourceStatus as aa, type DmarcStatus as ab, type DnsProviderName as ac, type Domain as ad, type DomainBimiAnalysis as ae, type DomainBlocklistListing as af, type DomainBlocklistStatus as ag, type DomainBlocklists as ah, type DomainDetailResult as ai, type DomainDmarcAnalysis as aj, type DomainDnsAnalysis as ak, type DomainStatus as al, type DomainTlsMode as am, type DomainTrackingDns as an, type DomainTrackingStatus as ao, type EmailDelivery as ap, type EmailListItem as aq, type EmailWebhookEventPayload as ar, type EmailWebhookEventType as as, type EnableDmarcParams as at, type EnableDmarcResult as au, type EnrollmentSkip as av, type EventRecord as aw, type GroundmailAccessToken as ax, type GroundmailOptions as ay, type GroundmailTokenOptions as az, type ApiKey as b, type ValidateEmailResult as b$, type ListWebhookDeliveriesParams as b0, type ListWebhookDeliveriesResult as b1, type MailServerSigningStatus as b2, type MailStream as b3, type Migration as b4, type MigrationDnsChange as b5, type MigrationDnsPlan as b6, type MigrationDomainItem as b7, type MigrationItemStatus as b8, type MigrationProvider as b9, type TenantPauseSource as bA, type TenantRamp as bB, type TenantStats as bC, type TenantStatsResult as bD, type TenantStatus as bE, type TenantStreamPolicy as bF, type TestEmailWebhookParams as bG, type TestEmailWebhookResult as bH, type TestInbox as bI, type TestInboxAddressOptions as bJ, type TestInboxEmail as bK, type TestInboxEmailDetail as bL, type TestInboxHeader as bM, TestInboxResource as bN, type TestInboxUsage as bO, type TriggerEventParams as bP, type TriggerEventResult as bQ, type TwilioIntegrationResponse as bR, type TwilioIntegrationStatus as bS, type UpdateAutomationParams as bT, type UpdateBrandParams as bU, type UpdateDomainParams as bV, type UpdateEmailParams as bW, type UpdateSenderParams as bX, type UpdateTemplateParams as bY, type UpdateTenantParams as bZ, type UpdateWebhookParams as b_, type MigrationResource as ba, type MigrationSummary as bb, type MigrationTemplateItem as bc, type MigrationTotals as bd, type MigrationWebhookItem as be, type ReceivedEmail as bf, type ReceivedEmailAttachment as bg, type ReceivedEmailAttachmentMeta as bh, type RemoteApplyDnsCredentials as bi, type RemoveCategoryOptOutOptions as bj, type RunMigrationOptions as bk, type SendEmailParams as bl, type Sender as bm, type SesMigrationParams as bn, type StreamDeliverability as bo, type SuppressedErrorDetails as bp, type Suppression as bq, TEST_INBOX_WAIT_DEFAULT_MS as br, TEST_INBOX_WAIT_MAX_SECONDS as bs, type Template as bt, type TemplateFormat as bu, type TemplateLintWarning as bv, type TemplateStarter as bw, type TemplateStatus as bx, type TemplateVersion as by, type Tenant as bz, type ApiKeyMigrationParams as c, type ValidationReason as c0, type ValidationVerdict as c1, type VerifyDomainResult as c2, type WaitForTestEmailParams as c3, type WebhookDelivery as c4, type WebhookDeliveryAttempt as c5, type WebhookDeliveryDetail as c6, type WebhookDeliveryStatus as c7, type WebhookEmailTag as c8, type WebhookEndpoint as c9, type WebhookEndpointHealth as ca, type WebhookEndpointWithSecret as cb, type WebhookEventType as cc, mergeMigrations as cd, normalizeAccessToken as ce, 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 BatchSendEmailResult as x, type BounceType as y, type Brand as z };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiErrorBody, D as DnsRecord } from './client-gRhoYpOK.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 Batch, x as BatchSendEmailResult, y as BounceType, z as Brand, C as BrandLogo, E as BrandSettings, F as CancelBatchResult, H as CategoryOptOut, I as CategoryOptOutCategory, J as CategoryUnsubscribedErrorDetails, K as ConnectTwilioParams, L as ContactWebhookEventPayload, M as CreateApiKeyParams, N as CreateApiKeyResult, O as CreateAutomationParams, P as CreateDomainParams, Q as CreateDomainResult, R as CreateMigrationParams, T as CreateSenderParams, U as CreateSuppressionParams, V as CreateTemplateParams, W as CreateTenantParams, X as CreateWebhookParams, Y as DEFAULT_API_BASE_URL, Z as DailyRampLimitErrorDetails, _ as DeleteTenantResult, $ as DeliverabilityBucket, a0 as DeliverabilityDomainInsight, a1 as DeliverabilityInsightsResult, a2 as DeliverabilityMailServerRelay, a3 as DeliverabilityWindow, a4 as DmarcDailyPoint, a5 as DmarcMonitoring, a6 as DmarcMonitoringDisabled, a7 as DmarcReadiness, a8 as DmarcReadinessVerdict, a9 as DmarcSource, aa as DmarcSourceStatus, ab as DmarcStatus, ac as DnsProviderName, ad as Domain, ae as DomainBimiAnalysis, af as DomainBlocklistListing, ag as DomainBlocklistStatus, ah as DomainBlocklists, ai as DomainDetailResult, aj as DomainDmarcAnalysis, ak as DomainDnsAnalysis, al as DomainStatus, am as DomainTlsMode, an as DomainTrackingDns, ao as DomainTrackingStatus, ap as EmailDelivery, aq as EmailListItem, ar as EmailWebhookEventPayload, as as EmailWebhookEventType, at as EnableDmarcParams, au as EnableDmarcResult, av as EnrollmentSkip, aw as EventRecord, G as Groundmail, ax as GroundmailAccessToken, ay as GroundmailOptions, az as GroundmailTokenOptions, aA as GroundmailTokenProvider, aB as HeldBackErrorDetails, aC as HeldBackReason, aD as HeldBackRecipient, aE as InReplyToEmail, aF as ListApiKeysParams, aG as ListApiKeysResult, aH as ListAutomationRunsParams, aI as ListAutomationRunsResult, aJ as ListAutomationsResult, aK as ListCategoryOptOutsParams, aL as ListCategoryOptOutsResult, aM as ListDomainsParams, aN as ListDomainsResult, aO as ListEmailsParams, aP as ListEmailsResult, aQ as ListReceivedEmailsParams, aR as ListReceivedEmailsResult, aS as ListSendersResult, aT as ListSuppressionsParams, aU as ListSuppressionsResult, aV as ListTemplatesParams, aW as ListTemplatesResult, aX as ListTenantDomainsResult, aY as ListTenantsParams, aZ as ListTenantsResult, a_ as ListTestInboxEmailsParams, a$ as ListTestInboxEmailsResult, b0 as MailServerSigningStatus, b1 as MailStream, b2 as Migration, b3 as MigrationDnsChange, b4 as MigrationDnsPlan, b5 as MigrationDomainItem, b6 as MigrationItemStatus, b7 as MigrationProvider, b8 as MigrationResource, b9 as MigrationSummary, ba as MigrationTemplateItem, bb as MigrationTotals, bc as MigrationWebhookItem, bd as ReceivedEmail, be as ReceivedEmailAttachment, bf as ReceivedEmailAttachmentMeta, bg as RemoteApplyDnsCredentials, bh as RemoveCategoryOptOutOptions, bi as RunMigrationOptions, bj as SendEmailParams, S as SendEmailResult, bk as Sender, bl as SesMigrationParams, bm as StreamDeliverability, bn as SuppressedErrorDetails, bo as Suppression, bp as TEST_INBOX_WAIT_DEFAULT_MS, bq as TEST_INBOX_WAIT_MAX_SECONDS, br as Template, bs as TemplateFormat, bt as TemplateLintWarning, bu as TemplateStarter, bv as TemplateStatus, bw as TemplateVersion, bx as Tenant, by as TenantPauseSource, bz as TenantRamp, bA as TenantStats, bB as TenantStatsResult, bC as TenantStatus, bD as TenantStreamPolicy, bE as TestEmailWebhookParams, bF as TestEmailWebhookResult, bG as TestInbox, bH as TestInboxAddressOptions, bI as TestInboxEmail, bJ as TestInboxEmailDetail, bK as TestInboxHeader, bL as TestInboxResource, bM as TestInboxUsage, bN as TriggerEventParams, bO as TriggerEventResult, bP as TwilioIntegrationResponse, bQ as TwilioIntegrationStatus, bR as UpdateAutomationParams, bS as UpdateBrandParams, bT as UpdateDomainParams, bU as UpdateEmailParams, bV as UpdateSenderParams, bW as UpdateTemplateParams, bX as UpdateTenantParams, bY as UpdateWebhookParams, bZ as ValidateEmailResult, b_ as ValidationReason, b$ as ValidationVerdict, c0 as VerifyDomainResult, c1 as WaitForTestEmailParams, c2 as WebhookEmailTag, c3 as WebhookEndpoint, c4 as WebhookEndpointWithSecret, c5 as WebhookEventType, c6 as mergeMigrations, c7 as normalizeAccessToken } from './client-gRhoYpOK.js';
1
+ import { A as ApiErrorBody, D as DnsRecord } from './client-CTQyEXww.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 Batch, x as BatchSendEmailResult, y as BounceType, z as Brand, C as BrandLogo, E as BrandSettings, F as CancelBatchResult, H as CategoryOptOut, I as CategoryOptOutCategory, J as CategoryUnsubscribedErrorDetails, K as ConnectTwilioParams, L as ContactWebhookEventPayload, M as CreateApiKeyParams, N as CreateApiKeyResult, O as CreateAutomationParams, P as CreateDomainParams, Q as CreateDomainResult, R as CreateMigrationParams, T as CreateSenderParams, U as CreateSuppressionParams, V as CreateTemplateParams, W as CreateTenantParams, X as CreateWebhookParams, Y as DEFAULT_API_BASE_URL, Z as DailyRampLimitErrorDetails, _ as DeleteTenantResult, $ as DeliverabilityBucket, a0 as DeliverabilityDomainInsight, a1 as DeliverabilityInsightsResult, a2 as DeliverabilityMailServerRelay, a3 as DeliverabilityWindow, a4 as DmarcDailyPoint, a5 as DmarcMonitoring, a6 as DmarcMonitoringDisabled, a7 as DmarcReadiness, a8 as DmarcReadinessVerdict, a9 as DmarcSource, aa as DmarcSourceStatus, ab as DmarcStatus, ac as DnsProviderName, ad as Domain, ae as DomainBimiAnalysis, af as DomainBlocklistListing, ag as DomainBlocklistStatus, ah as DomainBlocklists, ai as DomainDetailResult, aj as DomainDmarcAnalysis, ak as DomainDnsAnalysis, al as DomainStatus, am as DomainTlsMode, an as DomainTrackingDns, ao as DomainTrackingStatus, ap as EmailDelivery, aq as EmailListItem, ar as EmailWebhookEventPayload, as as EmailWebhookEventType, at as EnableDmarcParams, au as EnableDmarcResult, av as EnrollmentSkip, aw as EventRecord, G as Groundmail, ax as GroundmailAccessToken, ay as GroundmailOptions, az as GroundmailTokenOptions, aA as GroundmailTokenProvider, aB as HeldBackErrorDetails, aC as HeldBackReason, aD as HeldBackRecipient, aE as InReplyToEmail, aF as ListApiKeysParams, aG as ListApiKeysResult, aH as ListAutomationRunsParams, aI as ListAutomationRunsResult, aJ as ListAutomationsResult, aK as ListCategoryOptOutsParams, aL as ListCategoryOptOutsResult, aM as ListDomainsParams, aN as ListDomainsResult, aO as ListEmailsParams, aP as ListEmailsResult, aQ as ListReceivedEmailsParams, aR as ListReceivedEmailsResult, aS as ListSendersResult, aT as ListSuppressionsParams, aU as ListSuppressionsResult, aV as ListTemplatesParams, aW as ListTemplatesResult, aX as ListTenantDomainsResult, aY as ListTenantsParams, aZ as ListTenantsResult, a_ as ListTestInboxEmailsParams, a$ as ListTestInboxEmailsResult, b0 as ListWebhookDeliveriesParams, b1 as ListWebhookDeliveriesResult, b2 as MailServerSigningStatus, b3 as MailStream, b4 as Migration, b5 as MigrationDnsChange, b6 as MigrationDnsPlan, b7 as MigrationDomainItem, b8 as MigrationItemStatus, b9 as MigrationProvider, ba as MigrationResource, bb as MigrationSummary, bc as MigrationTemplateItem, bd as MigrationTotals, be as MigrationWebhookItem, bf as ReceivedEmail, bg as ReceivedEmailAttachment, bh as ReceivedEmailAttachmentMeta, bi as RemoteApplyDnsCredentials, bj as RemoveCategoryOptOutOptions, bk as RunMigrationOptions, bl as SendEmailParams, S as SendEmailResult, bm as Sender, bn as SesMigrationParams, bo as StreamDeliverability, bp as SuppressedErrorDetails, bq as Suppression, br as TEST_INBOX_WAIT_DEFAULT_MS, bs as TEST_INBOX_WAIT_MAX_SECONDS, bt as Template, bu as TemplateFormat, bv as TemplateLintWarning, bw as TemplateStarter, bx as TemplateStatus, by as TemplateVersion, bz as Tenant, bA as TenantPauseSource, bB as TenantRamp, bC as TenantStats, bD as TenantStatsResult, bE as TenantStatus, bF as TenantStreamPolicy, bG as TestEmailWebhookParams, bH as TestEmailWebhookResult, bI as TestInbox, bJ as TestInboxAddressOptions, bK as TestInboxEmail, bL as TestInboxEmailDetail, bM as TestInboxHeader, bN as TestInboxResource, bO as TestInboxUsage, bP as TriggerEventParams, bQ as TriggerEventResult, bR as TwilioIntegrationResponse, bS as TwilioIntegrationStatus, bT as UpdateAutomationParams, bU as UpdateBrandParams, bV as UpdateDomainParams, bW as UpdateEmailParams, bX as UpdateSenderParams, bY as UpdateTemplateParams, bZ as UpdateTenantParams, b_ as UpdateWebhookParams, b$ as ValidateEmailResult, c0 as ValidationReason, c1 as ValidationVerdict, c2 as VerifyDomainResult, c3 as WaitForTestEmailParams, c4 as WebhookDelivery, c5 as WebhookDeliveryAttempt, c6 as WebhookDeliveryDetail, c7 as WebhookDeliveryStatus, c8 as WebhookEmailTag, c9 as WebhookEndpoint, ca as WebhookEndpointHealth, cb as WebhookEndpointWithSecret, cc as WebhookEventType, cd as mergeMigrations, ce as normalizeAccessToken } from './client-CTQyEXww.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-5KMGMW5F.js";
15
+ } from "./chunk-V4ZZRJ3Q.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-gRhoYpOK.js';
1
+ import { G as Groundmail } from './client-CTQyEXww.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-5KMGMW5F.js";
4
+ } from "./chunk-V4ZZRJ3Q.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.38.0",
3
+ "version": "0.39.1",
4
4
  "description": "Groundmail transactional email API client",
5
5
  "license": "MIT",
6
6
  "type": "module",