groundmail 0.14.7 → 0.14.8
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
package/dist/better-auth.d.ts
CHANGED
package/dist/clerk.d.ts
CHANGED
|
@@ -80,6 +80,15 @@ type UpdateEmailParams = {
|
|
|
80
80
|
scheduled_at?: string | Date;
|
|
81
81
|
cancel?: boolean;
|
|
82
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* Why an email bounced.
|
|
85
|
+
* - `hard`: the address cannot receive mail; it is added to your suppression list.
|
|
86
|
+
* - `block`: the receiving server refused the message because of the sending IP's or
|
|
87
|
+
* domain's reputation or policy (for example a blocklist listing). The address is
|
|
88
|
+
* fine, is not suppressed, and the bounce does not count toward your bounce rate.
|
|
89
|
+
* Null when the email has not bounced, and for complaints.
|
|
90
|
+
*/
|
|
91
|
+
type BounceType = 'hard' | 'block';
|
|
83
92
|
type EmailListItem = {
|
|
84
93
|
id: string;
|
|
85
94
|
from: string;
|
|
@@ -91,6 +100,8 @@ type EmailListItem = {
|
|
|
91
100
|
status: string;
|
|
92
101
|
last_event: string | null;
|
|
93
102
|
bounce_reason: string | null;
|
|
103
|
+
/** `hard` or `block` once the email has bounced; null otherwise. */
|
|
104
|
+
bounce_type: BounceType | null;
|
|
94
105
|
tags: unknown;
|
|
95
106
|
scheduled_at: string | null;
|
|
96
107
|
cancelled_at: string | null;
|
|
@@ -256,6 +267,21 @@ type CreateSmtpCredentialResult = SmtpCredential & {
|
|
|
256
267
|
password: string;
|
|
257
268
|
};
|
|
258
269
|
type WebhookEventType = 'email.received' | 'email.sent' | 'email.delivered' | 'email.delivery_delayed' | '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';
|
|
270
|
+
/** Outbound `email.*` webhook payload (everything except `email.received`). */
|
|
271
|
+
type EmailWebhookEventPayload = {
|
|
272
|
+
type: Exclude<EmailWebhookEventType, 'email.received'>;
|
|
273
|
+
created_at: string;
|
|
274
|
+
data: {
|
|
275
|
+
email_id: string;
|
|
276
|
+
to: string[];
|
|
277
|
+
from: string;
|
|
278
|
+
subject: string;
|
|
279
|
+
status: string;
|
|
280
|
+
bounce_reason?: string | null;
|
|
281
|
+
/** Set on `email.bounced` and `email.failed` when the email bounced: `hard` or `block`. */
|
|
282
|
+
bounce_type?: BounceType | null;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
259
285
|
/** `contact.unsubscribed` webhook payload (`scope` distinguishes global vs category opt-out). */
|
|
260
286
|
type ContactWebhookEventPayload = {
|
|
261
287
|
type: 'contact.unsubscribed';
|
|
@@ -1118,4 +1144,4 @@ declare class Groundmail {
|
|
|
1118
1144
|
request<T>(path: string, init: RequestInit): Promise<T>;
|
|
1119
1145
|
}
|
|
1120
1146
|
|
|
1121
|
-
export { type
|
|
1147
|
+
export { type EmailWebhookEventType 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 CreateWebhookParams as H, DEFAULT_API_BASE_URL as I, type DeliverabilityBucket as J, type DeliverabilityDomainInsight as K, type DeliverabilityInsightsResult as L, type DeliverabilityMailServerRelay as M, type DeliverabilityWindow as N, type DnsProviderName as O, type Domain as P, type DomainBimiAnalysis as Q, type DomainDetailResult as R, type SendEmailResult as S, type DomainDmarcAnalysis as T, type DomainDnsAnalysis as U, type DomainStatus as V, type DomainTlsMode as W, type DomainTrackingDns as X, type DomainTrackingStatus as Y, type EmailListItem as Z, type EmailWebhookEventPayload as _, type ApiErrorCode as a, type EnrollmentSkip as a0, type EventRecord as a1, type GroundmailOptions as a2, type ListApiKeysParams as a3, type ListApiKeysResult as a4, type ListAutomationRunsParams as a5, type ListAutomationRunsResult as a6, type ListAutomationsResult as a7, type ListDomainsParams as a8, type ListDomainsResult as a9, type TemplateFormat as aA, type TemplateLintWarning as aB, type TemplateStarter as aC, type TemplateStatus as aD, type TemplateVersion as aE, type TestEmailWebhookParams as aF, type TestEmailWebhookResult as aG, type TriggerEventParams as aH, type TriggerEventResult as aI, type TwilioIntegrationResponse as aJ, type TwilioIntegrationStatus as aK, type UpdateAutomationParams as aL, type UpdateDomainParams as aM, type UpdateEmailParams as aN, type UpdateTemplateParams as aO, type UpdateWebhookParams as aP, type VerifyDomainResult as aQ, type WebhookEndpoint as aR, type WebhookEndpointWithSecret as aS, type WebhookEventType as aT, mergeMigrations as aU, type ListEmailsParams as aa, type ListEmailsResult as ab, type ListReceivedEmailsParams as ac, type ListReceivedEmailsResult as ad, type ListSuppressionsParams as ae, type ListSuppressionsResult as af, type ListTemplatesParams as ag, type ListTemplatesResult as ah, type MailServerSigningStatus as ai, type Migration as aj, type MigrationDomainItem as ak, type MigrationItemStatus as al, type MigrationProvider as am, type MigrationResource as an, type MigrationTemplateItem as ao, type MigrationTotals as ap, type MigrationWebhookItem as aq, type ReceivedEmail as ar, type ReceivedEmailAttachment as as, type ReceivedEmailAttachmentMeta as at, type RemoteApplyDnsCredentials as au, type RunMigrationOptions as av, type SendEmailParams as aw, type SuppressedErrorDetails as ax, type Suppression as ay, type Template as az, type ApiKey as b, 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 };
|
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 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, C as CategoryUnsubscribedErrorDetails,
|
|
1
|
+
import { A as ApiErrorBody, D as DnsRecord } from './client-UTorFXe6.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 CreateWebhookParams, I as DEFAULT_API_BASE_URL, J as DeliverabilityBucket, K as DeliverabilityDomainInsight, L as DeliverabilityInsightsResult, M as DeliverabilityMailServerRelay, N as DeliverabilityWindow, O as DnsProviderName, P as Domain, Q as DomainBimiAnalysis, R as DomainDetailResult, T as DomainDmarcAnalysis, U as DomainDnsAnalysis, V as DomainStatus, W as DomainTlsMode, X as DomainTrackingDns, Y as DomainTrackingStatus, Z as EmailListItem, _ as EmailWebhookEventPayload, $ as EmailWebhookEventType, a0 as EnrollmentSkip, a1 as EventRecord, G as Groundmail, a2 as GroundmailOptions, a3 as ListApiKeysParams, a4 as ListApiKeysResult, a5 as ListAutomationRunsParams, a6 as ListAutomationRunsResult, a7 as ListAutomationsResult, a8 as ListDomainsParams, a9 as ListDomainsResult, aa as ListEmailsParams, ab as ListEmailsResult, ac as ListReceivedEmailsParams, ad as ListReceivedEmailsResult, ae as ListSuppressionsParams, af as ListSuppressionsResult, ag as ListTemplatesParams, ah as ListTemplatesResult, ai as MailServerSigningStatus, aj as Migration, ak as MigrationDomainItem, al as MigrationItemStatus, am as MigrationProvider, an as MigrationResource, ao as MigrationTemplateItem, ap as MigrationTotals, aq as MigrationWebhookItem, ar as ReceivedEmail, as as ReceivedEmailAttachment, at as ReceivedEmailAttachmentMeta, au as RemoteApplyDnsCredentials, av as RunMigrationOptions, aw as SendEmailParams, S as SendEmailResult, ax as SuppressedErrorDetails, ay as Suppression, az as Template, aA as TemplateFormat, aB as TemplateLintWarning, aC as TemplateStarter, aD as TemplateStatus, aE as TemplateVersion, aF as TestEmailWebhookParams, aG as TestEmailWebhookResult, aH as TriggerEventParams, aI as TriggerEventResult, aJ as TwilioIntegrationResponse, aK as TwilioIntegrationStatus, aL as UpdateAutomationParams, aM as UpdateDomainParams, aN as UpdateEmailParams, aO as UpdateTemplateParams, aP as UpdateWebhookParams, aQ as VerifyDomainResult, aR as WebhookEndpoint, aS as WebhookEndpointWithSecret, aT as WebhookEventType, aU as mergeMigrations } from './client-UTorFXe6.js';
|
|
3
3
|
|
|
4
4
|
type GroundmailErrorOptions = {
|
|
5
5
|
code?: string;
|
package/dist/payload.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groundmail",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8",
|
|
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.14.
|
|
92
|
+
"groundmail-nodemailer": "0.14.8"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@types/nodemailer": "^8.0.1",
|