groundmail 0.45.0 → 0.46.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-DWPH4iLB.js';
1
+ import { G as Groundmail } from './client-92N8VztP.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-UL6W7BCH.js";
4
+ } from "./chunk-ACYLU736.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-DWPH4iLB.js';
1
+ import { S as SendEmailResult, G as Groundmail } from './client-92N8VztP.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-UL6W7BCH.js";
4
+ } from "./chunk-ACYLU736.js";
5
5
 
6
6
  // src/better-auth.ts
7
7
  function linkHtml(label, url) {
@@ -1386,6 +1386,14 @@ var MailboxesResource = class {
1386
1386
  });
1387
1387
  return mailbox;
1388
1388
  }
1389
+ /** Name the person behind a mailbox made without an account. They get a code by email. */
1390
+ async setOwner(mailbox, ownerEmail) {
1391
+ return this.client.request(`${path(mailbox, "owner")}`, { method: "POST", body: JSON.stringify({ owner_email: ownerEmail }) });
1392
+ }
1393
+ /** Give back the code your person received. The mailbox becomes a normal one, with the same key. */
1394
+ async verifyOwner(mailbox, code) {
1395
+ return this.client.request(`${path(mailbox, "owner", "verify")}`, { method: "POST", body: JSON.stringify({ code }) });
1396
+ }
1389
1397
  /** Mailboxes, newest first. */
1390
1398
  async list(params = {}) {
1391
1399
  const search = new URLSearchParams();
@@ -1464,6 +1472,17 @@ var MailboxesResource = class {
1464
1472
  }
1465
1473
  }
1466
1474
  };
1475
+ async function createInstantMailbox(params = {}, options = {}) {
1476
+ const base = (options.baseUrl || "https://api.groundmail.dev").replace(/\/$/, "");
1477
+ const response = await fetch(`${base}/mailboxes/instant`, {
1478
+ method: "POST",
1479
+ headers: { "Content-Type": "application/json" },
1480
+ body: JSON.stringify(params)
1481
+ });
1482
+ const body = await response.json().catch(() => null);
1483
+ if (!response.ok || !body) throw new Error(body?.error?.message ?? `Could not create a mailbox (${response.status})`);
1484
+ return body;
1485
+ }
1467
1486
 
1468
1487
  // src/migrations.ts
1469
1488
  function mergeMigrations(previous, next) {
@@ -1651,7 +1670,7 @@ function verifyWebhookSignature(secret, payload, header, toleranceSec = 300) {
1651
1670
  }
1652
1671
 
1653
1672
  // package.json
1654
- var version = "0.45.0";
1673
+ var version = "0.46.0";
1655
1674
 
1656
1675
  // src/automations.ts
1657
1676
  var AutomationsResource = class {
@@ -2664,6 +2683,7 @@ export {
2664
2683
  MailboxThreadsResource,
2665
2684
  MailboxMessagesResource,
2666
2685
  MailboxesResource,
2686
+ createInstantMailbox,
2667
2687
  mergeMigrations,
2668
2688
  TEST_INBOX_WAIT_MAX_SECONDS,
2669
2689
  TEST_INBOX_WAIT_DEFAULT_MS,
package/dist/clerk.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail, S as SendEmailResult } from './client-DWPH4iLB.js';
1
+ import { G as Groundmail, S as SendEmailResult } from './client-92N8VztP.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-UL6W7BCH.js";
4
+ } from "./chunk-ACYLU736.js";
5
5
 
6
6
  // src/clerk.ts
7
7
  function resolveApiKey(options) {
@@ -2610,6 +2610,15 @@ declare class MailboxesResource {
2610
2610
  constructor(client: Groundmail);
2611
2611
  /** A new mailbox. With no `domain` it gets a hosted address; with no `local_part`, a generated one. */
2612
2612
  create(params?: CreateMailboxParams): Promise<Mailbox>;
2613
+ /** Name the person behind a mailbox made without an account. They get a code by email. */
2614
+ setOwner(mailbox: string, ownerEmail: string): Promise<{
2615
+ owner_email: string;
2616
+ code_expires_at: string;
2617
+ }>;
2618
+ /** Give back the code your person received. The mailbox becomes a normal one, with the same key. */
2619
+ verifyOwner(mailbox: string, code: string): Promise<{
2620
+ level: 'verified';
2621
+ }>;
2613
2622
  /** Mailboxes, newest first. */
2614
2623
  list(params?: ListMailboxesParams): Promise<ListMailboxesResult>;
2615
2624
  get(mailbox: string): Promise<Mailbox>;
@@ -2631,6 +2640,27 @@ declare class MailboxesResource {
2631
2640
  */
2632
2641
  wait(mailbox: string, params?: WaitForMailboxMessageParams): Promise<MailboxMessageDetail>;
2633
2642
  }
2643
+ type InstantMailboxParams = {
2644
+ local_part?: string;
2645
+ display_name?: string;
2646
+ /** The person behind the agent. They get a code that unlocks sending. */
2647
+ owner_email?: string;
2648
+ /** Where the agent found us. */
2649
+ source?: string;
2650
+ };
2651
+ type InstantMailbox = {
2652
+ mailbox: Mailbox;
2653
+ /** A key limited to this mailbox. Shown once. */
2654
+ api_key: string;
2655
+ level: 'none' | 'attached';
2656
+ };
2657
+ /**
2658
+ * A mailbox with no account and no key: receive mail straight away, then pass `api_key`
2659
+ * to `new Groundmail(key)`. Sending starts once a person is attached.
2660
+ */
2661
+ declare function createInstantMailbox(params?: InstantMailboxParams, options?: {
2662
+ baseUrl?: string;
2663
+ }): Promise<InstantMailbox>;
2634
2664
 
2635
2665
  /** Combine the reports of one import's requests: every item, the latest totals. */
2636
2666
  declare function mergeMigrations(previous: Migration | null, next: Migration): Migration;
@@ -3012,4 +3042,4 @@ declare function normalizeAccessToken(value: GroundmailAccessToken | null | unde
3012
3042
  expiresAt: number | null;
3013
3043
  };
3014
3044
 
3015
- export { type CreateMigrationParams as $, type ApiErrorBody as A, type Batch as B, type BrandLogo as C, type DnsRecord as D, type BrandSettings as E, type BurrowGuardCheck as F, Groundmail as G, type BurrowGuardReason as H, BurrowGuardResource as I, type BurrowGuardSite as J, type BurrowGuardSiteWithSecret as K, type BurrowGuardVerifyParams as L, type BurrowGuardVerifyResult as M, type CancelBatchResult as N, type CategoryOptOut as O, type CategoryOptOutCategory as P, type CategoryUnsubscribedErrorDetails as Q, type ConnectTwilioParams as R, type SendEmailResult as S, type ContactWebhookEventPayload as T, type CreateApiKeyParams as U, type CreateApiKeyResult as V, type CreateAutomationParams as W, type CreateBurrowGuardSiteParams as X, type CreateDomainParams as Y, type CreateDomainResult as Z, type CreateMailboxParams as _, type ApiErrorCode as a, type ListDomainsResult as a$, type CreateSenderParams as a0, type CreateSuppressionParams as a1, type CreateTemplateParams as a2, type CreateTenantParams as a3, type CreateWebhookParams as a4, DEFAULT_API_BASE_URL as a5, type DailyRampLimitErrorDetails as a6, type DeleteMailboxResult as a7, type DeleteTenantResult as a8, type DeliverabilityBucket as a9, 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 ForwardMailboxParams as aH, type GetMailboxThreadParams as aI, type GroundmailAccessToken as aJ, type GroundmailOptions as aK, type GroundmailTokenOptions as aL, type GroundmailTokenProvider as aM, type HeldBackErrorDetails as aN, type HeldBackReason as aO, type HeldBackRecipient as aP, type InReplyToEmail as aQ, type ListApiKeysParams as aR, type ListApiKeysResult as aS, type ListAutomationRunsParams as aT, type ListAutomationRunsResult as aU, type ListAutomationsResult as aV, type ListBurrowGuardChecksParams as aW, type ListBurrowGuardChecksResult as aX, type ListCategoryOptOutsParams as aY, type ListCategoryOptOutsResult as aZ, type ListDomainsParams as a_, type DeliverabilityDomainInsight as aa, type DeliverabilityInsightsResult as ab, type DeliverabilityMailServerRelay as ac, type DeliverabilityWindow as ad, type DmarcDailyPoint as ae, type DmarcMonitoring as af, type DmarcMonitoringDisabled as ag, type DmarcReadiness as ah, type DmarcReadinessVerdict as ai, type DmarcSource as aj, type DmarcSourceStatus as ak, type DmarcStatus as al, type DnsProviderName as am, type Domain as an, type DomainBimiAnalysis as ao, type DomainBlocklistListing as ap, type DomainBlocklistStatus as aq, type DomainBlocklists as ar, type DomainDetailResult as as, type DomainDmarcAnalysis as at, type DomainDnsAnalysis as au, type DomainStatus as av, type DomainTlsMode as aw, type DomainTrackingDns as ax, type DomainTrackingStatus as ay, type EmailDelivery as az, type ApiKey as b, type StreamDeliverability as b$, type ListEmailsParams as b0, type ListEmailsResult as b1, type ListMailboxMessagesParams as b2, type ListMailboxMessagesResult as b3, type ListMailboxThreadsParams as b4, type ListMailboxThreadsResult as b5, type ListMailboxesParams as b6, type ListMailboxesResult as b7, type ListReceivedEmailsParams as b8, type ListReceivedEmailsResult as b9, type MailboxThread as bA, type MailboxThreadDetail as bB, MailboxThreadsResource as bC, type MailboxWebhookEventPayload as bD, MailboxesResource as bE, type Migration as bF, type MigrationDnsChange as bG, type MigrationDnsPlan as bH, type MigrationDomainItem as bI, type MigrationItemStatus as bJ, type MigrationProvider as bK, type MigrationResource as bL, type MigrationSummary as bM, type MigrationTemplateItem as bN, type MigrationTotals as bO, type MigrationWebhookItem as bP, type ReceivedEmail as bQ, type ReceivedEmailAttachment as bR, type ReceivedEmailAttachmentMeta as bS, type RemoteApplyDnsCredentials as bT, type RemoveCategoryOptOutOptions as bU, type ReplyToMailboxMessageParams as bV, type RunMigrationOptions as bW, type SendEmailParams as bX, type SendMailboxMessageParams as bY, type Sender as bZ, type SesMigrationParams as b_, type ListSendersResult as ba, type ListSuppressionsParams as bb, type ListSuppressionsResult as bc, type ListTemplatesParams as bd, type ListTemplatesResult as be, type ListTenantDomainsResult as bf, type ListTenantsParams as bg, type ListTenantsResult as bh, type ListTestInboxEmailsParams as bi, type ListTestInboxEmailsResult as bj, type ListWebhookDeliveriesParams as bk, type ListWebhookDeliveriesResult as bl, MAILBOX_WAIT_DEFAULT_MS as bm, MAILBOX_WAIT_MAX_SECONDS as bn, type MailServerSigningStatus as bo, type MailStream as bp, type Mailbox as bq, type MailboxAttachment as br, type MailboxAttachmentDownload as bs, type MailboxForwarding as bt, type MailboxMessage as bu, type MailboxMessageDetail as bv, MailboxMessagesResource as bw, type MailboxOutgoingAttachment as bx, type MailboxSendResult as by, type MailboxStatus as bz, type ApiKeyMigrationParams as c, type SuppressedErrorDetails as c0, type Suppression as c1, TEST_INBOX_WAIT_DEFAULT_MS as c2, TEST_INBOX_WAIT_MAX_SECONDS as c3, type Template as c4, type TemplateFormat as c5, type TemplateLintWarning as c6, type TemplateStarter as c7, type TemplateStatus as c8, type TemplateVersion as c9, type UpdateMailboxParams as cA, type UpdateMailboxThreadParams as cB, type UpdateSenderParams as cC, type UpdateTemplateParams as cD, type UpdateTenantParams as cE, type UpdateWebhookParams as cF, type ValidateEmailResult as cG, type ValidationReason as cH, type ValidationVerdict as cI, type VerifyDomainResult as cJ, type WaitForMailboxMessageParams as cK, type WaitForTestEmailParams as cL, type WebhookDelivery as cM, type WebhookDeliveryAttempt as cN, type WebhookDeliveryDetail as cO, type WebhookDeliveryStatus as cP, type WebhookEmailTag as cQ, type WebhookEndpoint as cR, type WebhookEndpointHealth as cS, type WebhookEndpointWithSecret as cT, type WebhookEventType as cU, mergeMigrations as cV, normalizeAccessToken as cW, type Tenant as ca, type TenantPauseSource as cb, type TenantRamp as cc, type TenantStats as cd, type TenantStatsResult as ce, type TenantStatus as cf, type TenantStreamPolicy as cg, type TestEmailWebhookParams as ch, type TestEmailWebhookResult as ci, type TestInbox as cj, type TestInboxAddressOptions as ck, type TestInboxEmail as cl, type TestInboxEmailDetail as cm, type TestInboxHeader as cn, TestInboxResource as co, type TestInboxUsage as cp, type TriggerEventParams as cq, type TriggerEventResult as cr, type TwilioIntegrationResponse as cs, type TwilioIntegrationStatus as ct, type UpdateAutomationParams as cu, type UpdateBrandParams as cv, type UpdateBurrowGuardSiteParams as cw, type UpdateDomainParams as cx, type UpdateEmailParams as cy, type UpdateMailboxMessageParams as cz, 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 };
3045
+ export { type CreateMigrationParams as $, type ApiErrorBody as A, type Batch as B, type BrandLogo as C, type DnsRecord as D, type BrandSettings as E, type BurrowGuardCheck as F, Groundmail as G, type BurrowGuardReason as H, BurrowGuardResource as I, type BurrowGuardSite as J, type BurrowGuardSiteWithSecret as K, type BurrowGuardVerifyParams as L, type BurrowGuardVerifyResult as M, type CancelBatchResult as N, type CategoryOptOut as O, type CategoryOptOutCategory as P, type CategoryUnsubscribedErrorDetails as Q, type ConnectTwilioParams as R, type SendEmailResult as S, type ContactWebhookEventPayload as T, type CreateApiKeyParams as U, type CreateApiKeyResult as V, type CreateAutomationParams as W, type CreateBurrowGuardSiteParams as X, type CreateDomainParams as Y, type CreateDomainResult as Z, type CreateMailboxParams as _, type ApiErrorCode as a, type ListCategoryOptOutsResult as a$, type CreateSenderParams as a0, type CreateSuppressionParams as a1, type CreateTemplateParams as a2, type CreateTenantParams as a3, type CreateWebhookParams as a4, DEFAULT_API_BASE_URL as a5, type DailyRampLimitErrorDetails as a6, type DeleteMailboxResult as a7, type DeleteTenantResult as a8, type DeliverabilityBucket as a9, 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 ForwardMailboxParams as aH, type GetMailboxThreadParams as aI, type GroundmailAccessToken as aJ, type GroundmailOptions as aK, type GroundmailTokenOptions as aL, type GroundmailTokenProvider as aM, type HeldBackErrorDetails as aN, type HeldBackReason as aO, type HeldBackRecipient as aP, type InReplyToEmail as aQ, type InstantMailbox as aR, type InstantMailboxParams as aS, type ListApiKeysParams as aT, type ListApiKeysResult as aU, type ListAutomationRunsParams as aV, type ListAutomationRunsResult as aW, type ListAutomationsResult as aX, type ListBurrowGuardChecksParams as aY, type ListBurrowGuardChecksResult as aZ, type ListCategoryOptOutsParams as a_, type DeliverabilityDomainInsight as aa, type DeliverabilityInsightsResult as ab, type DeliverabilityMailServerRelay as ac, type DeliverabilityWindow as ad, type DmarcDailyPoint as ae, type DmarcMonitoring as af, type DmarcMonitoringDisabled as ag, type DmarcReadiness as ah, type DmarcReadinessVerdict as ai, type DmarcSource as aj, type DmarcSourceStatus as ak, type DmarcStatus as al, type DnsProviderName as am, type Domain as an, type DomainBimiAnalysis as ao, type DomainBlocklistListing as ap, type DomainBlocklistStatus as aq, type DomainBlocklists as ar, type DomainDetailResult as as, type DomainDmarcAnalysis as at, type DomainDnsAnalysis as au, type DomainStatus as av, type DomainTlsMode as aw, type DomainTrackingDns as ax, type DomainTrackingStatus as ay, type EmailDelivery as az, type ApiKey as b, type Sender as b$, type ListDomainsParams as b0, type ListDomainsResult as b1, type ListEmailsParams as b2, type ListEmailsResult as b3, type ListMailboxMessagesParams as b4, type ListMailboxMessagesResult as b5, type ListMailboxThreadsParams as b6, type ListMailboxThreadsResult as b7, type ListMailboxesParams as b8, type ListMailboxesResult as b9, type MailboxSendResult as bA, type MailboxStatus as bB, type MailboxThread as bC, type MailboxThreadDetail as bD, MailboxThreadsResource as bE, type MailboxWebhookEventPayload as bF, MailboxesResource as bG, type Migration as bH, type MigrationDnsChange as bI, type MigrationDnsPlan as bJ, type MigrationDomainItem as bK, type MigrationItemStatus as bL, type MigrationProvider as bM, type MigrationResource as bN, type MigrationSummary as bO, type MigrationTemplateItem as bP, type MigrationTotals as bQ, type MigrationWebhookItem as bR, type ReceivedEmail as bS, type ReceivedEmailAttachment as bT, type ReceivedEmailAttachmentMeta as bU, type RemoteApplyDnsCredentials as bV, type RemoveCategoryOptOutOptions as bW, type ReplyToMailboxMessageParams as bX, type RunMigrationOptions as bY, type SendEmailParams as bZ, type SendMailboxMessageParams as b_, type ListReceivedEmailsParams as ba, type ListReceivedEmailsResult as bb, type ListSendersResult as bc, type ListSuppressionsParams as bd, type ListSuppressionsResult as be, type ListTemplatesParams as bf, type ListTemplatesResult as bg, type ListTenantDomainsResult as bh, type ListTenantsParams as bi, type ListTenantsResult as bj, type ListTestInboxEmailsParams as bk, type ListTestInboxEmailsResult as bl, type ListWebhookDeliveriesParams as bm, type ListWebhookDeliveriesResult as bn, MAILBOX_WAIT_DEFAULT_MS as bo, MAILBOX_WAIT_MAX_SECONDS as bp, type MailServerSigningStatus as bq, type MailStream as br, type Mailbox as bs, type MailboxAttachment as bt, type MailboxAttachmentDownload as bu, type MailboxForwarding as bv, type MailboxMessage as bw, type MailboxMessageDetail as bx, MailboxMessagesResource as by, type MailboxOutgoingAttachment as bz, type ApiKeyMigrationParams as c, type SesMigrationParams as c0, type StreamDeliverability as c1, type SuppressedErrorDetails as c2, type Suppression as c3, TEST_INBOX_WAIT_DEFAULT_MS as c4, TEST_INBOX_WAIT_MAX_SECONDS as c5, type Template as c6, type TemplateFormat as c7, type TemplateLintWarning as c8, type TemplateStarter as c9, type UpdateEmailParams as cA, type UpdateMailboxMessageParams as cB, type UpdateMailboxParams as cC, type UpdateMailboxThreadParams as cD, type UpdateSenderParams as cE, type UpdateTemplateParams as cF, type UpdateTenantParams as cG, type UpdateWebhookParams as cH, type ValidateEmailResult as cI, type ValidationReason as cJ, type ValidationVerdict as cK, type VerifyDomainResult as cL, type WaitForMailboxMessageParams as cM, type WaitForTestEmailParams as cN, type WebhookDelivery as cO, type WebhookDeliveryAttempt as cP, type WebhookDeliveryDetail as cQ, type WebhookDeliveryStatus as cR, type WebhookEmailTag as cS, type WebhookEndpoint as cT, type WebhookEndpointHealth as cU, type WebhookEndpointWithSecret as cV, type WebhookEventType as cW, createInstantMailbox as cX, mergeMigrations as cY, normalizeAccessToken as cZ, type TemplateStatus as ca, type TemplateVersion as cb, type Tenant as cc, type TenantPauseSource as cd, type TenantRamp as ce, type TenantStats as cf, type TenantStatsResult as cg, type TenantStatus as ch, type TenantStreamPolicy as ci, type TestEmailWebhookParams as cj, type TestEmailWebhookResult as ck, type TestInbox as cl, type TestInboxAddressOptions as cm, type TestInboxEmail as cn, type TestInboxEmailDetail as co, type TestInboxHeader as cp, TestInboxResource as cq, type TestInboxUsage as cr, type TriggerEventParams as cs, type TriggerEventResult as ct, type TwilioIntegrationResponse as cu, type TwilioIntegrationStatus as cv, type UpdateAutomationParams as cw, type UpdateBrandParams as cx, type UpdateBurrowGuardSiteParams as cy, type UpdateDomainParams as cz, 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-DWPH4iLB.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 BurrowGuardCheck, H as BurrowGuardReason, I as BurrowGuardResource, J as BurrowGuardSite, K as BurrowGuardSiteWithSecret, L as BurrowGuardVerifyParams, M as BurrowGuardVerifyResult, N as CancelBatchResult, O as CategoryOptOut, P as CategoryOptOutCategory, Q as CategoryUnsubscribedErrorDetails, R as ConnectTwilioParams, T as ContactWebhookEventPayload, U as CreateApiKeyParams, V as CreateApiKeyResult, W as CreateAutomationParams, X as CreateBurrowGuardSiteParams, Y as CreateDomainParams, Z as CreateDomainResult, _ as CreateMailboxParams, $ as CreateMigrationParams, a0 as CreateSenderParams, a1 as CreateSuppressionParams, a2 as CreateTemplateParams, a3 as CreateTenantParams, a4 as CreateWebhookParams, a5 as DEFAULT_API_BASE_URL, a6 as DailyRampLimitErrorDetails, a7 as DeleteMailboxResult, a8 as DeleteTenantResult, a9 as DeliverabilityBucket, aa as DeliverabilityDomainInsight, ab as DeliverabilityInsightsResult, ac as DeliverabilityMailServerRelay, ad as DeliverabilityWindow, ae as DmarcDailyPoint, af as DmarcMonitoring, ag as DmarcMonitoringDisabled, ah as DmarcReadiness, ai as DmarcReadinessVerdict, aj as DmarcSource, ak as DmarcSourceStatus, al as DmarcStatus, am as DnsProviderName, an as Domain, ao as DomainBimiAnalysis, ap as DomainBlocklistListing, aq as DomainBlocklistStatus, ar as DomainBlocklists, as as DomainDetailResult, at as DomainDmarcAnalysis, au as DomainDnsAnalysis, av as DomainStatus, aw as DomainTlsMode, ax as DomainTrackingDns, ay as DomainTrackingStatus, az as EmailDelivery, aA as EmailListItem, aB as EmailWebhookEventPayload, aC as EmailWebhookEventType, aD as EnableDmarcParams, aE as EnableDmarcResult, aF as EnrollmentSkip, aG as EventRecord, aH as ForwardMailboxParams, aI as GetMailboxThreadParams, G as Groundmail, aJ as GroundmailAccessToken, aK as GroundmailOptions, aL as GroundmailTokenOptions, aM as GroundmailTokenProvider, aN as HeldBackErrorDetails, aO as HeldBackReason, aP as HeldBackRecipient, aQ as InReplyToEmail, aR as ListApiKeysParams, aS as ListApiKeysResult, aT as ListAutomationRunsParams, aU as ListAutomationRunsResult, aV as ListAutomationsResult, aW as ListBurrowGuardChecksParams, aX as ListBurrowGuardChecksResult, aY as ListCategoryOptOutsParams, aZ as ListCategoryOptOutsResult, a_ as ListDomainsParams, a$ as ListDomainsResult, b0 as ListEmailsParams, b1 as ListEmailsResult, b2 as ListMailboxMessagesParams, b3 as ListMailboxMessagesResult, b4 as ListMailboxThreadsParams, b5 as ListMailboxThreadsResult, b6 as ListMailboxesParams, b7 as ListMailboxesResult, b8 as ListReceivedEmailsParams, b9 as ListReceivedEmailsResult, ba as ListSendersResult, bb as ListSuppressionsParams, bc as ListSuppressionsResult, bd as ListTemplatesParams, be as ListTemplatesResult, bf as ListTenantDomainsResult, bg as ListTenantsParams, bh as ListTenantsResult, bi as ListTestInboxEmailsParams, bj as ListTestInboxEmailsResult, bk as ListWebhookDeliveriesParams, bl as ListWebhookDeliveriesResult, bm as MAILBOX_WAIT_DEFAULT_MS, bn as MAILBOX_WAIT_MAX_SECONDS, bo as MailServerSigningStatus, bp as MailStream, bq as Mailbox, br as MailboxAttachment, bs as MailboxAttachmentDownload, bt as MailboxForwarding, bu as MailboxMessage, bv as MailboxMessageDetail, bw as MailboxMessagesResource, bx as MailboxOutgoingAttachment, by as MailboxSendResult, bz as MailboxStatus, bA as MailboxThread, bB as MailboxThreadDetail, bC as MailboxThreadsResource, bD as MailboxWebhookEventPayload, bE as MailboxesResource, bF as Migration, bG as MigrationDnsChange, bH as MigrationDnsPlan, bI as MigrationDomainItem, bJ as MigrationItemStatus, bK as MigrationProvider, bL as MigrationResource, bM as MigrationSummary, bN as MigrationTemplateItem, bO as MigrationTotals, bP as MigrationWebhookItem, bQ as ReceivedEmail, bR as ReceivedEmailAttachment, bS as ReceivedEmailAttachmentMeta, bT as RemoteApplyDnsCredentials, bU as RemoveCategoryOptOutOptions, bV as ReplyToMailboxMessageParams, bW as RunMigrationOptions, bX as SendEmailParams, S as SendEmailResult, bY as SendMailboxMessageParams, bZ as Sender, b_ as SesMigrationParams, b$ as StreamDeliverability, c0 as SuppressedErrorDetails, c1 as Suppression, c2 as TEST_INBOX_WAIT_DEFAULT_MS, c3 as TEST_INBOX_WAIT_MAX_SECONDS, c4 as Template, c5 as TemplateFormat, c6 as TemplateLintWarning, c7 as TemplateStarter, c8 as TemplateStatus, c9 as TemplateVersion, ca as Tenant, cb as TenantPauseSource, cc as TenantRamp, cd as TenantStats, ce as TenantStatsResult, cf as TenantStatus, cg as TenantStreamPolicy, ch as TestEmailWebhookParams, ci as TestEmailWebhookResult, cj as TestInbox, ck as TestInboxAddressOptions, cl as TestInboxEmail, cm as TestInboxEmailDetail, cn as TestInboxHeader, co as TestInboxResource, cp as TestInboxUsage, cq as TriggerEventParams, cr as TriggerEventResult, cs as TwilioIntegrationResponse, ct as TwilioIntegrationStatus, cu as UpdateAutomationParams, cv as UpdateBrandParams, cw as UpdateBurrowGuardSiteParams, cx as UpdateDomainParams, cy as UpdateEmailParams, cz as UpdateMailboxMessageParams, cA as UpdateMailboxParams, cB as UpdateMailboxThreadParams, cC as UpdateSenderParams, cD as UpdateTemplateParams, cE as UpdateTenantParams, cF as UpdateWebhookParams, cG as ValidateEmailResult, cH as ValidationReason, cI as ValidationVerdict, cJ as VerifyDomainResult, cK as WaitForMailboxMessageParams, cL as WaitForTestEmailParams, cM as WebhookDelivery, cN as WebhookDeliveryAttempt, cO as WebhookDeliveryDetail, cP as WebhookDeliveryStatus, cQ as WebhookEmailTag, cR as WebhookEndpoint, cS as WebhookEndpointHealth, cT as WebhookEndpointWithSecret, cU as WebhookEventType, cV as mergeMigrations, cW as normalizeAccessToken } from './client-DWPH4iLB.js';
1
+ import { A as ApiErrorBody, D as DnsRecord } from './client-92N8VztP.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 BurrowGuardCheck, H as BurrowGuardReason, I as BurrowGuardResource, J as BurrowGuardSite, K as BurrowGuardSiteWithSecret, L as BurrowGuardVerifyParams, M as BurrowGuardVerifyResult, N as CancelBatchResult, O as CategoryOptOut, P as CategoryOptOutCategory, Q as CategoryUnsubscribedErrorDetails, R as ConnectTwilioParams, T as ContactWebhookEventPayload, U as CreateApiKeyParams, V as CreateApiKeyResult, W as CreateAutomationParams, X as CreateBurrowGuardSiteParams, Y as CreateDomainParams, Z as CreateDomainResult, _ as CreateMailboxParams, $ as CreateMigrationParams, a0 as CreateSenderParams, a1 as CreateSuppressionParams, a2 as CreateTemplateParams, a3 as CreateTenantParams, a4 as CreateWebhookParams, a5 as DEFAULT_API_BASE_URL, a6 as DailyRampLimitErrorDetails, a7 as DeleteMailboxResult, a8 as DeleteTenantResult, a9 as DeliverabilityBucket, aa as DeliverabilityDomainInsight, ab as DeliverabilityInsightsResult, ac as DeliverabilityMailServerRelay, ad as DeliverabilityWindow, ae as DmarcDailyPoint, af as DmarcMonitoring, ag as DmarcMonitoringDisabled, ah as DmarcReadiness, ai as DmarcReadinessVerdict, aj as DmarcSource, ak as DmarcSourceStatus, al as DmarcStatus, am as DnsProviderName, an as Domain, ao as DomainBimiAnalysis, ap as DomainBlocklistListing, aq as DomainBlocklistStatus, ar as DomainBlocklists, as as DomainDetailResult, at as DomainDmarcAnalysis, au as DomainDnsAnalysis, av as DomainStatus, aw as DomainTlsMode, ax as DomainTrackingDns, ay as DomainTrackingStatus, az as EmailDelivery, aA as EmailListItem, aB as EmailWebhookEventPayload, aC as EmailWebhookEventType, aD as EnableDmarcParams, aE as EnableDmarcResult, aF as EnrollmentSkip, aG as EventRecord, aH as ForwardMailboxParams, aI as GetMailboxThreadParams, G as Groundmail, aJ as GroundmailAccessToken, aK as GroundmailOptions, aL as GroundmailTokenOptions, aM as GroundmailTokenProvider, aN as HeldBackErrorDetails, aO as HeldBackReason, aP as HeldBackRecipient, aQ as InReplyToEmail, aR as InstantMailbox, aS as InstantMailboxParams, aT as ListApiKeysParams, aU as ListApiKeysResult, aV as ListAutomationRunsParams, aW as ListAutomationRunsResult, aX as ListAutomationsResult, aY as ListBurrowGuardChecksParams, aZ as ListBurrowGuardChecksResult, a_ as ListCategoryOptOutsParams, a$ as ListCategoryOptOutsResult, b0 as ListDomainsParams, b1 as ListDomainsResult, b2 as ListEmailsParams, b3 as ListEmailsResult, b4 as ListMailboxMessagesParams, b5 as ListMailboxMessagesResult, b6 as ListMailboxThreadsParams, b7 as ListMailboxThreadsResult, b8 as ListMailboxesParams, b9 as ListMailboxesResult, ba as ListReceivedEmailsParams, bb as ListReceivedEmailsResult, bc as ListSendersResult, bd as ListSuppressionsParams, be as ListSuppressionsResult, bf as ListTemplatesParams, bg as ListTemplatesResult, bh as ListTenantDomainsResult, bi as ListTenantsParams, bj as ListTenantsResult, bk as ListTestInboxEmailsParams, bl as ListTestInboxEmailsResult, bm as ListWebhookDeliveriesParams, bn as ListWebhookDeliveriesResult, bo as MAILBOX_WAIT_DEFAULT_MS, bp as MAILBOX_WAIT_MAX_SECONDS, bq as MailServerSigningStatus, br as MailStream, bs as Mailbox, bt as MailboxAttachment, bu as MailboxAttachmentDownload, bv as MailboxForwarding, bw as MailboxMessage, bx as MailboxMessageDetail, by as MailboxMessagesResource, bz as MailboxOutgoingAttachment, bA as MailboxSendResult, bB as MailboxStatus, bC as MailboxThread, bD as MailboxThreadDetail, bE as MailboxThreadsResource, bF as MailboxWebhookEventPayload, bG as MailboxesResource, bH as Migration, bI as MigrationDnsChange, bJ as MigrationDnsPlan, bK as MigrationDomainItem, bL as MigrationItemStatus, bM as MigrationProvider, bN as MigrationResource, bO as MigrationSummary, bP as MigrationTemplateItem, bQ as MigrationTotals, bR as MigrationWebhookItem, bS as ReceivedEmail, bT as ReceivedEmailAttachment, bU as ReceivedEmailAttachmentMeta, bV as RemoteApplyDnsCredentials, bW as RemoveCategoryOptOutOptions, bX as ReplyToMailboxMessageParams, bY as RunMigrationOptions, bZ as SendEmailParams, S as SendEmailResult, b_ as SendMailboxMessageParams, b$ as Sender, c0 as SesMigrationParams, c1 as StreamDeliverability, c2 as SuppressedErrorDetails, c3 as Suppression, c4 as TEST_INBOX_WAIT_DEFAULT_MS, c5 as TEST_INBOX_WAIT_MAX_SECONDS, c6 as Template, c7 as TemplateFormat, c8 as TemplateLintWarning, c9 as TemplateStarter, ca as TemplateStatus, cb as TemplateVersion, cc as Tenant, cd as TenantPauseSource, ce as TenantRamp, cf as TenantStats, cg as TenantStatsResult, ch as TenantStatus, ci as TenantStreamPolicy, cj as TestEmailWebhookParams, ck as TestEmailWebhookResult, cl as TestInbox, cm as TestInboxAddressOptions, cn as TestInboxEmail, co as TestInboxEmailDetail, cp as TestInboxHeader, cq as TestInboxResource, cr as TestInboxUsage, cs as TriggerEventParams, ct as TriggerEventResult, cu as TwilioIntegrationResponse, cv as TwilioIntegrationStatus, cw as UpdateAutomationParams, cx as UpdateBrandParams, cy as UpdateBurrowGuardSiteParams, cz as UpdateDomainParams, cA as UpdateEmailParams, cB as UpdateMailboxMessageParams, cC as UpdateMailboxParams, cD as UpdateMailboxThreadParams, cE as UpdateSenderParams, cF as UpdateTemplateParams, cG as UpdateTenantParams, cH as UpdateWebhookParams, cI as ValidateEmailResult, cJ as ValidationReason, cK as ValidationVerdict, cL as VerifyDomainResult, cM as WaitForMailboxMessageParams, cN as WaitForTestEmailParams, cO as WebhookDelivery, cP as WebhookDeliveryAttempt, cQ as WebhookDeliveryDetail, cR as WebhookDeliveryStatus, cS as WebhookEmailTag, cT as WebhookEndpoint, cU as WebhookEndpointHealth, cV as WebhookEndpointWithSecret, cW as WebhookEventType, cX as createInstantMailbox, cY as mergeMigrations, cZ as normalizeAccessToken } from './client-92N8VztP.js';
3
3
 
4
4
  type GroundmailErrorOptions = {
5
5
  code?: string;
package/dist/index.js CHANGED
@@ -13,12 +13,13 @@ import {
13
13
  TestInboxResource,
14
14
  applyDnsRecords,
15
15
  buildSignatureHeader,
16
+ createInstantMailbox,
16
17
  mergeMigrations,
17
18
  mergeSpfInclude,
18
19
  normalizeAccessToken,
19
20
  signWebhookPayload,
20
21
  verifyWebhookSignature
21
- } from "./chunk-UL6W7BCH.js";
22
+ } from "./chunk-ACYLU736.js";
22
23
 
23
24
  // src/simulator.ts
24
25
  var SIMULATOR_DOMAIN = "simulator.groundmail.dev";
@@ -57,6 +58,7 @@ export {
57
58
  TestInboxResource,
58
59
  applyDnsRecords,
59
60
  buildSignatureHeader,
61
+ createInstantMailbox,
60
62
  isSimulatorAddress,
61
63
  isTestApiKey,
62
64
  mergeMigrations,
package/dist/payload.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { G as Groundmail } from './client-DWPH4iLB.js';
1
+ import { G as Groundmail } from './client-92N8VztP.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-UL6W7BCH.js";
4
+ } from "./chunk-ACYLU736.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.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "Groundmail transactional email API client",
5
5
  "license": "MIT",
6
6
  "type": "module",