groundmail 0.34.0 → 0.35.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 +1 -1
- package/dist/authjs.js +1 -1
- package/dist/better-auth.d.ts +1 -1
- package/dist/better-auth.js +1 -1
- package/dist/{chunk-PSLA3IGN.js → chunk-ARI5MWK4.js} +11 -1
- package/dist/clerk.d.ts +1 -1
- package/dist/clerk.js +1 -1
- package/dist/{client-PVTp1lAM.d.ts → client-BZPPEFB1.d.ts} +10 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/payload.d.ts +1 -1
- package/dist/payload.js +1 -1
- package/package.json +1 -1
package/dist/authjs.d.ts
CHANGED
package/dist/authjs.js
CHANGED
package/dist/better-auth.d.ts
CHANGED
package/dist/better-auth.js
CHANGED
|
@@ -1585,10 +1585,20 @@ var EmailsResource = class {
|
|
|
1585
1585
|
body: JSON.stringify(payload)
|
|
1586
1586
|
});
|
|
1587
1587
|
}
|
|
1588
|
-
|
|
1588
|
+
/**
|
|
1589
|
+
* Send up to 100 emails in one request. `idempotencyKey` works as on `send`:
|
|
1590
|
+
* a retry with the same key and emails returns the first response and sends
|
|
1591
|
+
* nothing again. (An `idempotencyKey` on an individual email is ignored here.)
|
|
1592
|
+
*/
|
|
1593
|
+
async batch(emails, options = {}) {
|
|
1589
1594
|
const serialized = await Promise.all(emails.map((email) => this.serializeSendParams(email)));
|
|
1595
|
+
const headers = {};
|
|
1596
|
+
if (options.idempotencyKey) {
|
|
1597
|
+
headers["Idempotency-Key"] = options.idempotencyKey;
|
|
1598
|
+
}
|
|
1590
1599
|
return this.client.request("/emails/batch", {
|
|
1591
1600
|
method: "POST",
|
|
1601
|
+
headers,
|
|
1592
1602
|
body: JSON.stringify({ emails: serialized })
|
|
1593
1603
|
});
|
|
1594
1604
|
}
|
package/dist/clerk.d.ts
CHANGED
package/dist/clerk.js
CHANGED
|
@@ -130,6 +130,10 @@ type ValidateEmailResult = {
|
|
|
130
130
|
/** Reaches a team or queue (`info@`, `support@`) rather than a person. */
|
|
131
131
|
role: boolean;
|
|
132
132
|
};
|
|
133
|
+
type BatchSendOptions = {
|
|
134
|
+
/** Optional Idempotency-Key for the whole batch (24h TTL), as on `emails.send`. */
|
|
135
|
+
idempotencyKey?: string;
|
|
136
|
+
};
|
|
133
137
|
type BatchSendEmailResult = {
|
|
134
138
|
data: Array<{
|
|
135
139
|
index: number;
|
|
@@ -1788,7 +1792,12 @@ declare class EmailsResource {
|
|
|
1788
1792
|
}>;
|
|
1789
1793
|
insights(window?: DeliverabilityWindow): Promise<DeliverabilityInsightsResult>;
|
|
1790
1794
|
send(params: SendEmailParams): Promise<SendEmailResult>;
|
|
1791
|
-
|
|
1795
|
+
/**
|
|
1796
|
+
* Send up to 100 emails in one request. `idempotencyKey` works as on `send`:
|
|
1797
|
+
* a retry with the same key and emails returns the first response and sends
|
|
1798
|
+
* nothing again. (An `idempotencyKey` on an individual email is ignored here.)
|
|
1799
|
+
*/
|
|
1800
|
+
batch(emails: SendEmailParams[], options?: BatchSendOptions): Promise<BatchSendEmailResult>;
|
|
1792
1801
|
update(id: string, params: UpdateEmailParams): Promise<SendEmailResult>;
|
|
1793
1802
|
cancel(id: string): Promise<SendEmailResult>;
|
|
1794
1803
|
/** Create a new send from a previously stored email (new `msg_…` id). */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiErrorBody, D as DnsRecord } from './client-
|
|
2
|
-
export { a as ApiErrorCode, b as ApiKey, c as ApiKeyMigrationParams, d as ApiKeyScope, e as ApplyDnsParams, f as ApplyDnsRecordResult, g as ApplyDnsResult, h as Asset, i as Automation, j as AutomationBranchQuestion, k as AutomationBranchStep, l as AutomationResult, m as AutomationRun, n as AutomationRunResponse, o as AutomationRunStatus, p as AutomationRunStep, q as AutomationRunStepStatus, r as AutomationStatus, s as AutomationStep, t as AutomationTrigger, B as BatchSendEmailResult, u as BounceType, C as CategoryOptOut, v as CategoryOptOutCategory, w as CategoryUnsubscribedErrorDetails, x as ConnectTwilioParams, y as ContactWebhookEventPayload, z as CreateApiKeyParams, E as CreateApiKeyResult, F as CreateAutomationParams, H as CreateDomainParams, I as CreateDomainResult, J as CreateMigrationParams, K as CreateSenderParams, L as CreateSuppressionParams, M as CreateTemplateParams, N as CreateTenantParams, O as CreateWebhookParams, P as DEFAULT_API_BASE_URL, Q as DailyRampLimitErrorDetails, R as DeleteTenantResult, T as DeliverabilityBucket, U as DeliverabilityDomainInsight, V as DeliverabilityInsightsResult, W as DeliverabilityMailServerRelay, X as DeliverabilityWindow, Y as DmarcDailyPoint, Z as DmarcMonitoring, _ as DmarcMonitoringDisabled, $ as DmarcReadiness, a0 as DmarcReadinessVerdict, a1 as DmarcSource, a2 as DmarcSourceStatus, a3 as DmarcStatus, a4 as DnsProviderName, a5 as Domain, a6 as DomainBimiAnalysis, a7 as DomainBlocklistListing, a8 as DomainBlocklistStatus, a9 as DomainBlocklists, aa as DomainDetailResult, ab as DomainDmarcAnalysis, ac as DomainDnsAnalysis, ad as DomainStatus, ae as DomainTlsMode, af as DomainTrackingDns, ag as DomainTrackingStatus, ah as EmailDelivery, ai as EmailListItem, aj as EmailWebhookEventPayload, ak as EmailWebhookEventType, al as EnableDmarcParams, am as EnableDmarcResult, an as EnrollmentSkip, ao as EventRecord, G as Groundmail, ap as GroundmailAccessToken, aq as GroundmailOptions, ar as GroundmailTokenOptions, as as GroundmailTokenProvider, at as HeldBackErrorDetails, au as HeldBackReason, av as HeldBackRecipient, aw as InReplyToEmail, ax as ListApiKeysParams, ay as ListApiKeysResult, az as ListAutomationRunsParams, aA as ListAutomationRunsResult, aB as ListAutomationsResult, aC as ListCategoryOptOutsParams, aD as ListCategoryOptOutsResult, aE as ListDomainsParams, aF as ListDomainsResult, aG as ListEmailsParams, aH as ListEmailsResult, aI as ListReceivedEmailsParams, aJ as ListReceivedEmailsResult, aK as ListSendersResult, aL as ListSuppressionsParams, aM as ListSuppressionsResult, aN as ListTemplatesParams, aO as ListTemplatesResult, aP as ListTenantDomainsResult, aQ as ListTenantsParams, aR as ListTenantsResult, aS as ListTestInboxEmailsParams, aT as ListTestInboxEmailsResult, aU as MailServerSigningStatus, aV as MailStream, aW as Migration, aX as MigrationDnsChange, aY as MigrationDnsPlan, aZ as MigrationDomainItem, a_ as MigrationItemStatus, a$ as MigrationProvider, b0 as MigrationResource, b1 as MigrationSummary, b2 as MigrationTemplateItem, b3 as MigrationTotals, b4 as MigrationWebhookItem, b5 as ReceivedEmail, b6 as ReceivedEmailAttachment, b7 as ReceivedEmailAttachmentMeta, b8 as RemoteApplyDnsCredentials, b9 as RemoveCategoryOptOutOptions, ba as RunMigrationOptions, bb as SendEmailParams, S as SendEmailResult, bc as Sender, bd as SesMigrationParams, be as StreamDeliverability, bf as SuppressedErrorDetails, bg as Suppression, bh as TEST_INBOX_WAIT_DEFAULT_MS, bi as TEST_INBOX_WAIT_MAX_SECONDS, bj as Template, bk as TemplateFormat, bl as TemplateLintWarning, bm as TemplateStarter, bn as TemplateStatus, bo as TemplateVersion, bp as Tenant, bq as TenantPauseSource, br as TenantRamp, bs as TenantStats, bt as TenantStatsResult, bu as TenantStatus, bv as TenantStreamPolicy, bw as TestEmailWebhookParams, bx as TestEmailWebhookResult, by as TestInbox, bz as TestInboxAddressOptions, bA as TestInboxEmail, bB as TestInboxEmailDetail, bC as TestInboxHeader, bD as TestInboxResource, bE as TestInboxUsage, bF as TriggerEventParams, bG as TriggerEventResult, bH as TwilioIntegrationResponse, bI as TwilioIntegrationStatus, bJ as UpdateAutomationParams, bK as UpdateDomainParams, bL as UpdateEmailParams, bM as UpdateSenderParams, bN as UpdateTemplateParams, bO as UpdateTenantParams, bP as UpdateWebhookParams, bQ as ValidateEmailResult, bR as ValidationReason, bS as ValidationVerdict, bT as VerifyDomainResult, bU as WaitForTestEmailParams, bV as WebhookEmailTag, bW as WebhookEndpoint, bX as WebhookEndpointWithSecret, bY as WebhookEventType, bZ as mergeMigrations, b_ as normalizeAccessToken } from './client-
|
|
1
|
+
import { A as ApiErrorBody, D as DnsRecord } from './client-BZPPEFB1.js';
|
|
2
|
+
export { a as ApiErrorCode, b as ApiKey, c as ApiKeyMigrationParams, d as ApiKeyScope, e as ApplyDnsParams, f as ApplyDnsRecordResult, g as ApplyDnsResult, h as Asset, i as Automation, j as AutomationBranchQuestion, k as AutomationBranchStep, l as AutomationResult, m as AutomationRun, n as AutomationRunResponse, o as AutomationRunStatus, p as AutomationRunStep, q as AutomationRunStepStatus, r as AutomationStatus, s as AutomationStep, t as AutomationTrigger, B as BatchSendEmailResult, u as BounceType, C as CategoryOptOut, v as CategoryOptOutCategory, w as CategoryUnsubscribedErrorDetails, x as ConnectTwilioParams, y as ContactWebhookEventPayload, z as CreateApiKeyParams, E as CreateApiKeyResult, F as CreateAutomationParams, H as CreateDomainParams, I as CreateDomainResult, J as CreateMigrationParams, K as CreateSenderParams, L as CreateSuppressionParams, M as CreateTemplateParams, N as CreateTenantParams, O as CreateWebhookParams, P as DEFAULT_API_BASE_URL, Q as DailyRampLimitErrorDetails, R as DeleteTenantResult, T as DeliverabilityBucket, U as DeliverabilityDomainInsight, V as DeliverabilityInsightsResult, W as DeliverabilityMailServerRelay, X as DeliverabilityWindow, Y as DmarcDailyPoint, Z as DmarcMonitoring, _ as DmarcMonitoringDisabled, $ as DmarcReadiness, a0 as DmarcReadinessVerdict, a1 as DmarcSource, a2 as DmarcSourceStatus, a3 as DmarcStatus, a4 as DnsProviderName, a5 as Domain, a6 as DomainBimiAnalysis, a7 as DomainBlocklistListing, a8 as DomainBlocklistStatus, a9 as DomainBlocklists, aa as DomainDetailResult, ab as DomainDmarcAnalysis, ac as DomainDnsAnalysis, ad as DomainStatus, ae as DomainTlsMode, af as DomainTrackingDns, ag as DomainTrackingStatus, ah as EmailDelivery, ai as EmailListItem, aj as EmailWebhookEventPayload, ak as EmailWebhookEventType, al as EnableDmarcParams, am as EnableDmarcResult, an as EnrollmentSkip, ao as EventRecord, G as Groundmail, ap as GroundmailAccessToken, aq as GroundmailOptions, ar as GroundmailTokenOptions, as as GroundmailTokenProvider, at as HeldBackErrorDetails, au as HeldBackReason, av as HeldBackRecipient, aw as InReplyToEmail, ax as ListApiKeysParams, ay as ListApiKeysResult, az as ListAutomationRunsParams, aA as ListAutomationRunsResult, aB as ListAutomationsResult, aC as ListCategoryOptOutsParams, aD as ListCategoryOptOutsResult, aE as ListDomainsParams, aF as ListDomainsResult, aG as ListEmailsParams, aH as ListEmailsResult, aI as ListReceivedEmailsParams, aJ as ListReceivedEmailsResult, aK as ListSendersResult, aL as ListSuppressionsParams, aM as ListSuppressionsResult, aN as ListTemplatesParams, aO as ListTemplatesResult, aP as ListTenantDomainsResult, aQ as ListTenantsParams, aR as ListTenantsResult, aS as ListTestInboxEmailsParams, aT as ListTestInboxEmailsResult, aU as MailServerSigningStatus, aV as MailStream, aW as Migration, aX as MigrationDnsChange, aY as MigrationDnsPlan, aZ as MigrationDomainItem, a_ as MigrationItemStatus, a$ as MigrationProvider, b0 as MigrationResource, b1 as MigrationSummary, b2 as MigrationTemplateItem, b3 as MigrationTotals, b4 as MigrationWebhookItem, b5 as ReceivedEmail, b6 as ReceivedEmailAttachment, b7 as ReceivedEmailAttachmentMeta, b8 as RemoteApplyDnsCredentials, b9 as RemoveCategoryOptOutOptions, ba as RunMigrationOptions, bb as SendEmailParams, S as SendEmailResult, bc as Sender, bd as SesMigrationParams, be as StreamDeliverability, bf as SuppressedErrorDetails, bg as Suppression, bh as TEST_INBOX_WAIT_DEFAULT_MS, bi as TEST_INBOX_WAIT_MAX_SECONDS, bj as Template, bk as TemplateFormat, bl as TemplateLintWarning, bm as TemplateStarter, bn as TemplateStatus, bo as TemplateVersion, bp as Tenant, bq as TenantPauseSource, br as TenantRamp, bs as TenantStats, bt as TenantStatsResult, bu as TenantStatus, bv as TenantStreamPolicy, bw as TestEmailWebhookParams, bx as TestEmailWebhookResult, by as TestInbox, bz as TestInboxAddressOptions, bA as TestInboxEmail, bB as TestInboxEmailDetail, bC as TestInboxHeader, bD as TestInboxResource, bE as TestInboxUsage, bF as TriggerEventParams, bG as TriggerEventResult, bH as TwilioIntegrationResponse, bI as TwilioIntegrationStatus, bJ as UpdateAutomationParams, bK as UpdateDomainParams, bL as UpdateEmailParams, bM as UpdateSenderParams, bN as UpdateTemplateParams, bO as UpdateTenantParams, bP as UpdateWebhookParams, bQ as ValidateEmailResult, bR as ValidationReason, bS as ValidationVerdict, bT as VerifyDomainResult, bU as WaitForTestEmailParams, bV as WebhookEmailTag, bW as WebhookEndpoint, bX as WebhookEndpointWithSecret, bY as WebhookEventType, bZ as mergeMigrations, b_ as normalizeAccessToken } from './client-BZPPEFB1.js';
|
|
3
3
|
|
|
4
4
|
type GroundmailErrorOptions = {
|
|
5
5
|
code?: string;
|
package/dist/index.js
CHANGED
package/dist/payload.d.ts
CHANGED
package/dist/payload.js
CHANGED