groundmail 0.19.0 → 0.21.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
package/dist/better-auth.d.ts
CHANGED
package/dist/clerk.d.ts
CHANGED
|
@@ -198,7 +198,10 @@ type ReceivedEmail = {
|
|
|
198
198
|
to: string[];
|
|
199
199
|
cc: string[];
|
|
200
200
|
subject: string;
|
|
201
|
-
|
|
201
|
+
/** Content scanning verdict; null when the message was not scanned. */
|
|
202
|
+
spam_status: 'clean' | 'suspicious' | 'spam' | null;
|
|
203
|
+
/** Content scanning score (most clean mail is under 5); null when not scanned. */
|
|
204
|
+
spam_score: number | null;
|
|
202
205
|
bounced: boolean;
|
|
203
206
|
received_with_ssl: boolean | null;
|
|
204
207
|
message_id: string | null;
|
|
@@ -362,7 +365,7 @@ type CreateSmtpCredentialParams = {
|
|
|
362
365
|
type CreateSmtpCredentialResult = SmtpCredential & {
|
|
363
366
|
password: string;
|
|
364
367
|
};
|
|
365
|
-
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';
|
|
368
|
+
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';
|
|
366
369
|
/** Outbound `email.*` webhook payload (everything except `email.received`). */
|
|
367
370
|
type EmailWebhookEventPayload = {
|
|
368
371
|
type: Exclude<EmailWebhookEventType, 'email.received'>;
|
|
@@ -380,6 +383,10 @@ type EmailWebhookEventPayload = {
|
|
|
380
383
|
test?: true;
|
|
381
384
|
/** The tenant's external id, when the email was sent as a tenant. */
|
|
382
385
|
tenant?: string;
|
|
386
|
+
/** On `email.held`: why the email was held before sending. */
|
|
387
|
+
held_reason?: string;
|
|
388
|
+
/** On `email.held` when content scanning held it: the score. */
|
|
389
|
+
spam_score?: number;
|
|
383
390
|
};
|
|
384
391
|
};
|
|
385
392
|
/** `contact.unsubscribed` webhook payload (`scope` distinguishes global vs category opt-out). */
|
|
@@ -430,7 +437,7 @@ type DailyRampLimitErrorDetails = {
|
|
|
430
437
|
resets_at: string;
|
|
431
438
|
};
|
|
432
439
|
/** Event types accepted by `POST /emails/test`. */
|
|
433
|
-
type EmailWebhookEventType = 'email.received' | 'email.sent' | 'email.delivered' | 'email.delivery_delayed' | 'email.bounced' | 'email.complained' | 'email.opened' | 'email.clicked' | 'email.failed' | 'email.suppressed' | 'email.scheduled';
|
|
440
|
+
type EmailWebhookEventType = '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';
|
|
434
441
|
type TestEmailWebhookParams = {
|
|
435
442
|
event: EmailWebhookEventType;
|
|
436
443
|
email_id?: string;
|
|
@@ -524,6 +531,8 @@ type Automation = {
|
|
|
524
531
|
status: AutomationStatus;
|
|
525
532
|
trigger: AutomationTrigger;
|
|
526
533
|
steps: AutomationStep[];
|
|
534
|
+
/** Folder the automation is filed in on the dashboard, or null. */
|
|
535
|
+
folder: string | null;
|
|
527
536
|
created_at: string;
|
|
528
537
|
updated_at: string;
|
|
529
538
|
};
|
|
@@ -531,11 +540,15 @@ type CreateAutomationParams = {
|
|
|
531
540
|
name: string;
|
|
532
541
|
trigger: AutomationTrigger;
|
|
533
542
|
steps: AutomationStep[];
|
|
543
|
+
/** File it in this folder, created when it does not exist. */
|
|
544
|
+
folder?: string;
|
|
534
545
|
};
|
|
535
546
|
type UpdateAutomationParams = {
|
|
536
547
|
name?: string;
|
|
537
548
|
trigger?: AutomationTrigger;
|
|
538
549
|
steps?: AutomationStep[];
|
|
550
|
+
/** Move it to this folder (created when missing); `null` or `''` takes it out of any folder. */
|
|
551
|
+
folder?: string | null;
|
|
539
552
|
};
|
|
540
553
|
type AutomationResult = {
|
|
541
554
|
automation: Automation;
|
|
@@ -663,6 +676,8 @@ type Template = {
|
|
|
663
676
|
variables: string[] | null;
|
|
664
677
|
unsubscribe_enabled: boolean;
|
|
665
678
|
category: 'transactional' | 'product' | 'newsletter' | string;
|
|
679
|
+
/** Folder the template is filed in on the dashboard, or null. */
|
|
680
|
+
folder: string | null;
|
|
666
681
|
published_version_id: string | null;
|
|
667
682
|
published_at: string | null;
|
|
668
683
|
created_at: string;
|
|
@@ -716,6 +731,8 @@ type CreateTemplateParams = {
|
|
|
716
731
|
variables?: string[];
|
|
717
732
|
unsubscribe_enabled?: boolean;
|
|
718
733
|
category?: 'transactional' | 'product';
|
|
734
|
+
/** File it in this folder, created when it does not exist. */
|
|
735
|
+
folder?: string;
|
|
719
736
|
};
|
|
720
737
|
type TemplateStarter = {
|
|
721
738
|
alias: string;
|
|
@@ -741,6 +758,8 @@ type UpdateTemplateParams = {
|
|
|
741
758
|
variables?: string[] | null;
|
|
742
759
|
unsubscribe_enabled?: boolean;
|
|
743
760
|
category?: 'transactional' | 'product' | null;
|
|
761
|
+
/** Move it to this folder (created when missing); `null` or `''` takes it out of any folder. */
|
|
762
|
+
folder?: string | null;
|
|
744
763
|
};
|
|
745
764
|
type GroundmailOptions = {
|
|
746
765
|
baseUrl?: string;
|
|
@@ -796,6 +815,10 @@ type Domain = {
|
|
|
796
815
|
inbound_enabled: boolean;
|
|
797
816
|
inbound_status: 'disabled' | 'pending' | 'active' | 'error' | string;
|
|
798
817
|
inbound_error: string | null;
|
|
818
|
+
/** Received mail at or above this score is `spam`; null uses the default (10). */
|
|
819
|
+
inbound_spam_threshold?: number | null;
|
|
820
|
+
/** `flag` keeps spam with `spam_status: 'spam'`; `drop` discards it. */
|
|
821
|
+
inbound_spam_action?: 'flag' | 'drop';
|
|
799
822
|
/** The tenant that owns this domain (external id). Absent for an account-wide domain. */
|
|
800
823
|
tenant?: string | null;
|
|
801
824
|
};
|
|
@@ -883,6 +906,10 @@ type UpdateDomainParams = {
|
|
|
883
906
|
tlsMode?: DomainTlsMode;
|
|
884
907
|
inbound_enabled?: boolean;
|
|
885
908
|
inboundEnabled?: boolean;
|
|
909
|
+
/** Spam threshold for received mail (1–100); null resets to the default. */
|
|
910
|
+
inbound_spam_threshold?: number | null;
|
|
911
|
+
/** What to do with received mail at or above the threshold. */
|
|
912
|
+
inbound_spam_action?: 'flag' | 'drop';
|
|
886
913
|
};
|
|
887
914
|
type DnsProviderName = 'cloudflare' | 'godaddy' | 'vercel';
|
|
888
915
|
type RemoteApplyDnsCredentials = {
|
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, 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 Migration, aD as MigrationDnsChange, aE as MigrationDnsPlan, aF as MigrationDomainItem, aG as MigrationItemStatus, aH as MigrationProvider, aI as MigrationResource, aJ as MigrationSummary, aK as MigrationTemplateItem, aL as MigrationTotals, aM as MigrationWebhookItem, aN as ReceivedEmail, aO as ReceivedEmailAttachment, aP as ReceivedEmailAttachmentMeta, aQ as RemoteApplyDnsCredentials, aR as RunMigrationOptions, aS as SendEmailParams, S as SendEmailResult, aT as SuppressedErrorDetails, aU as Suppression, aV as Template, aW as TemplateFormat, aX as TemplateLintWarning, aY as TemplateStarter, aZ as TemplateStatus, a_ as TemplateVersion, a$ as Tenant, b0 as TenantPauseSource, b1 as TenantRamp, b2 as TenantStats, b3 as TenantStatsResult, b4 as TenantStatus, b5 as TenantStreamPolicy, b6 as TestEmailWebhookParams, b7 as TestEmailWebhookResult, b8 as TriggerEventParams, b9 as TriggerEventResult, ba as TwilioIntegrationResponse, bb as TwilioIntegrationStatus, bc as UpdateAutomationParams, bd as UpdateDomainParams, be as UpdateEmailParams, bf as UpdateTemplateParams, bg as UpdateTenantParams, bh as UpdateWebhookParams, bi as ValidateEmailResult, bj as ValidationReason, bk as ValidationVerdict, bl as VerifyDomainResult, bm as WebhookEndpoint, bn as WebhookEndpointWithSecret, bo as WebhookEventType, bp as mergeMigrations } from './client-
|
|
1
|
+
import { A as ApiErrorBody, D as DnsRecord } from './client-DmLWvBuY.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 Migration, aD as MigrationDnsChange, aE as MigrationDnsPlan, aF as MigrationDomainItem, aG as MigrationItemStatus, aH as MigrationProvider, aI as MigrationResource, aJ as MigrationSummary, aK as MigrationTemplateItem, aL as MigrationTotals, aM as MigrationWebhookItem, aN as ReceivedEmail, aO as ReceivedEmailAttachment, aP as ReceivedEmailAttachmentMeta, aQ as RemoteApplyDnsCredentials, aR as RunMigrationOptions, aS as SendEmailParams, S as SendEmailResult, aT as SuppressedErrorDetails, aU as Suppression, aV as Template, aW as TemplateFormat, aX as TemplateLintWarning, aY as TemplateStarter, aZ as TemplateStatus, a_ as TemplateVersion, a$ as Tenant, b0 as TenantPauseSource, b1 as TenantRamp, b2 as TenantStats, b3 as TenantStatsResult, b4 as TenantStatus, b5 as TenantStreamPolicy, b6 as TestEmailWebhookParams, b7 as TestEmailWebhookResult, b8 as TriggerEventParams, b9 as TriggerEventResult, ba as TwilioIntegrationResponse, bb as TwilioIntegrationStatus, bc as UpdateAutomationParams, bd as UpdateDomainParams, be as UpdateEmailParams, bf as UpdateTemplateParams, bg as UpdateTenantParams, bh as UpdateWebhookParams, bi as ValidateEmailResult, bj as ValidationReason, bk as ValidationVerdict, bl as VerifyDomainResult, bm as WebhookEndpoint, bn as WebhookEndpointWithSecret, bo as WebhookEventType, bp as mergeMigrations } from './client-DmLWvBuY.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.
|
|
3
|
+
"version": "0.21.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.
|
|
92
|
+
"groundmail-nodemailer": "0.15.7"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@types/nodemailer": "^8.0.1",
|