groundmail 0.32.0 → 0.33.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-PMQDWLBY.js → chunk-KOSFM5QK.js} +12 -4
- package/dist/clerk.d.ts +1 -1
- package/dist/clerk.js +1 -1
- package/dist/{client-C6Cu0xLT.d.ts → client-C8TtxhtX.d.ts} +19 -2
- 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
|
@@ -61,10 +61,18 @@ function mergeSpfInclude(existing, includeHost) {
|
|
|
61
61
|
if (!/^v=spf1\b/i.test(trimmed)) {
|
|
62
62
|
return `v=spf1 ${include} ~all`;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
const terms = trimmed.split(/\s+/);
|
|
65
|
+
const redirect = terms.find((t) => /^redirect=/i.test(t));
|
|
66
|
+
const kept = terms.filter((t) => !/^redirect=/i.test(t));
|
|
67
|
+
const allIndex = kept.findIndex((t) => /^[~?+-]?all$/i.test(t));
|
|
68
|
+
if (redirect && allIndex === -1) {
|
|
69
|
+
kept.push(`include:${redirect.slice("redirect=".length)}`);
|
|
70
|
+
}
|
|
71
|
+
if (allIndex !== -1) {
|
|
72
|
+
kept.splice(allIndex, 0, include);
|
|
73
|
+
return kept.join(" ");
|
|
74
|
+
}
|
|
75
|
+
return `${kept.join(" ")} ${include} ~all`;
|
|
68
76
|
}
|
|
69
77
|
function isSpfRecord(value) {
|
|
70
78
|
return value.trim().toLowerCase().startsWith("v=spf1");
|
package/dist/clerk.d.ts
CHANGED
package/dist/clerk.js
CHANGED
|
@@ -601,10 +601,25 @@ type AutomationTrigger = {
|
|
|
601
601
|
/** Do not enrol the same recipient again within this many days. */
|
|
602
602
|
cooldown_days?: number;
|
|
603
603
|
};
|
|
604
|
+
/** The question an If / otherwise step asks: did they send an event since the run started, or a value on the event. */
|
|
605
|
+
type AutomationBranchQuestion = {
|
|
606
|
+
event: string;
|
|
607
|
+
} | {
|
|
608
|
+
path: string;
|
|
609
|
+
operator: 'equals' | 'not_equals' | 'exists' | 'not_exists' | 'includes';
|
|
610
|
+
value?: string | number | boolean | null;
|
|
611
|
+
};
|
|
612
|
+
/** If / otherwise: the last step at the top level, with a path for each answer. Paths cannot hold another branch. */
|
|
613
|
+
type AutomationBranchStep = {
|
|
614
|
+
type: 'branch';
|
|
615
|
+
if: AutomationBranchQuestion;
|
|
616
|
+
then: AutomationStep[];
|
|
617
|
+
else: AutomationStep[];
|
|
618
|
+
};
|
|
604
619
|
type AutomationStep = {
|
|
605
620
|
type: 'delay' | 'send_email' | 'send_sms' | 'condition' | 'wait_for_event';
|
|
606
621
|
[key: string]: unknown;
|
|
607
|
-
};
|
|
622
|
+
} | AutomationBranchStep;
|
|
608
623
|
type TwilioIntegrationStatus = {
|
|
609
624
|
connected: boolean;
|
|
610
625
|
hint: string | null;
|
|
@@ -659,6 +674,8 @@ type AutomationRunStepStatus = 'started' | 'waiting' | 'completed' | 'failed';
|
|
|
659
674
|
type AutomationRunStep = {
|
|
660
675
|
id: string;
|
|
661
676
|
step_index: number;
|
|
677
|
+
/** Where the step sits: `"3"`, or `"3.then.0"` inside an If / otherwise path. */
|
|
678
|
+
step_path: string | null;
|
|
662
679
|
step_type: AutomationStep['type'] | string;
|
|
663
680
|
status: AutomationRunStepStatus | string;
|
|
664
681
|
output: unknown;
|
|
@@ -2047,4 +2064,4 @@ declare function normalizeAccessToken(value: GroundmailAccessToken | null | unde
|
|
|
2047
2064
|
expiresAt: number | null;
|
|
2048
2065
|
};
|
|
2049
2066
|
|
|
2050
|
-
export { type
|
|
2067
|
+
export { type DmarcReadinessVerdict as $, type ApiErrorBody as A, type BatchSendEmailResult as B, type CategoryOptOut as C, type DnsRecord as D, type CreateApiKeyResult as E, type CreateAutomationParams as F, Groundmail as G, type CreateDomainParams as H, type CreateDomainResult as I, type CreateMigrationParams as J, type CreateSuppressionParams as K, type CreateTemplateParams as L, type CreateTenantParams as M, type CreateWebhookParams as N, DEFAULT_API_BASE_URL as O, type DailyRampLimitErrorDetails as P, type DeleteTenantResult as Q, type DeliverabilityBucket as R, type SendEmailResult as S, type DeliverabilityDomainInsight as T, type DeliverabilityInsightsResult as U, type DeliverabilityMailServerRelay as V, type DeliverabilityWindow as W, type DmarcDailyPoint as X, type DmarcMonitoring as Y, type DmarcMonitoringDisabled as Z, type DmarcReadiness as _, type ApiErrorCode as a, type MigrationSummary as a$, type DmarcSource as a0, type DmarcSourceStatus as a1, type DmarcStatus as a2, type DnsProviderName as a3, type Domain as a4, type DomainBimiAnalysis as a5, type DomainBlocklistListing as a6, type DomainBlocklistStatus as a7, type DomainBlocklists as a8, type DomainDetailResult as a9, type ListAutomationsResult as aA, type ListCategoryOptOutsParams as aB, type ListCategoryOptOutsResult as aC, type ListDomainsParams as aD, type ListDomainsResult as aE, type ListEmailsParams as aF, type ListEmailsResult as aG, type ListReceivedEmailsParams as aH, type ListReceivedEmailsResult as aI, type ListSuppressionsParams as aJ, type ListSuppressionsResult as aK, type ListTemplatesParams as aL, type ListTemplatesResult as aM, type ListTenantDomainsResult as aN, type ListTenantsParams as aO, type ListTenantsResult as aP, type ListTestInboxEmailsParams as aQ, type ListTestInboxEmailsResult as aR, type MailServerSigningStatus as aS, type MailStream as aT, type Migration as aU, type MigrationDnsChange as aV, type MigrationDnsPlan as aW, type MigrationDomainItem as aX, type MigrationItemStatus as aY, type MigrationProvider as aZ, type MigrationResource as a_, type DomainDmarcAnalysis as aa, type DomainDnsAnalysis as ab, type DomainStatus as ac, type DomainTlsMode as ad, type DomainTrackingDns as ae, type DomainTrackingStatus as af, type EmailDelivery as ag, type EmailListItem as ah, type EmailWebhookEventPayload as ai, type EmailWebhookEventType as aj, type EnableDmarcParams as ak, type EnableDmarcResult as al, type EnrollmentSkip as am, type EventRecord as an, type GroundmailAccessToken as ao, type GroundmailOptions as ap, type GroundmailTokenOptions as aq, type GroundmailTokenProvider as ar, type HeldBackErrorDetails as as, type HeldBackReason as at, type HeldBackRecipient as au, type InReplyToEmail as av, type ListApiKeysParams as aw, type ListApiKeysResult as ax, type ListAutomationRunsParams as ay, type ListAutomationRunsResult as az, type ApiKey as b, type MigrationTemplateItem as b0, type MigrationTotals as b1, type MigrationWebhookItem as b2, type ReceivedEmail as b3, type ReceivedEmailAttachment as b4, type ReceivedEmailAttachmentMeta as b5, type RemoteApplyDnsCredentials as b6, type RemoveCategoryOptOutOptions as b7, type RunMigrationOptions as b8, type SendEmailParams as b9, TestInboxResource as bA, type TestInboxUsage as bB, type TriggerEventParams as bC, type TriggerEventResult as bD, type TwilioIntegrationResponse as bE, type TwilioIntegrationStatus as bF, type UpdateAutomationParams as bG, type UpdateDomainParams as bH, type UpdateEmailParams as bI, type UpdateTemplateParams as bJ, type UpdateTenantParams as bK, type UpdateWebhookParams as bL, type ValidateEmailResult as bM, type ValidationReason as bN, type ValidationVerdict as bO, type VerifyDomainResult as bP, type WaitForTestEmailParams as bQ, type WebhookEmailTag as bR, type WebhookEndpoint as bS, type WebhookEndpointWithSecret as bT, type WebhookEventType as bU, mergeMigrations as bV, normalizeAccessToken as bW, type SesMigrationParams as ba, type StreamDeliverability as bb, type SuppressedErrorDetails as bc, type Suppression as bd, TEST_INBOX_WAIT_DEFAULT_MS as be, TEST_INBOX_WAIT_MAX_SECONDS as bf, type Template as bg, type TemplateFormat as bh, type TemplateLintWarning as bi, type TemplateStarter as bj, type TemplateStatus as bk, type TemplateVersion as bl, type Tenant as bm, type TenantPauseSource as bn, type TenantRamp as bo, type TenantStats as bp, type TenantStatsResult as bq, type TenantStatus as br, type TenantStreamPolicy as bs, type TestEmailWebhookParams as bt, type TestEmailWebhookResult as bu, type TestInbox as bv, type TestInboxAddressOptions as bw, type TestInboxEmail as bx, type TestInboxEmailDetail as by, type TestInboxHeader as bz, type ApiKeyMigrationParams as c, 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 AutomationResult as l, type AutomationRun as m, type AutomationRunResponse as n, type AutomationRunStatus as o, type AutomationRunStep as p, type AutomationRunStepStatus as q, type AutomationStatus as r, type AutomationStep as s, type AutomationTrigger as t, type BounceType as u, type CategoryOptOutCategory as v, type CategoryUnsubscribedErrorDetails as w, type ConnectTwilioParams as x, type ContactWebhookEventPayload as y, type CreateApiKeyParams 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 ApiKeyMigrationParams, d as ApiKeyScope, e as ApplyDnsParams, f as ApplyDnsRecordResult, g as ApplyDnsResult, h as Asset, i as Automation, j as
|
|
1
|
+
import { A as ApiErrorBody, D as DnsRecord } from './client-C8TtxhtX.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 CreateSuppressionParams, L as CreateTemplateParams, M as CreateTenantParams, N as CreateWebhookParams, O as DEFAULT_API_BASE_URL, P as DailyRampLimitErrorDetails, Q as DeleteTenantResult, R as DeliverabilityBucket, T as DeliverabilityDomainInsight, U as DeliverabilityInsightsResult, V as DeliverabilityMailServerRelay, W as DeliverabilityWindow, X as DmarcDailyPoint, Y as DmarcMonitoring, Z as DmarcMonitoringDisabled, _ as DmarcReadiness, $ as DmarcReadinessVerdict, a0 as DmarcSource, a1 as DmarcSourceStatus, a2 as DmarcStatus, a3 as DnsProviderName, a4 as Domain, a5 as DomainBimiAnalysis, a6 as DomainBlocklistListing, a7 as DomainBlocklistStatus, a8 as DomainBlocklists, a9 as DomainDetailResult, aa as DomainDmarcAnalysis, ab as DomainDnsAnalysis, ac as DomainStatus, ad as DomainTlsMode, ae as DomainTrackingDns, af as DomainTrackingStatus, ag as EmailDelivery, ah as EmailListItem, ai as EmailWebhookEventPayload, aj as EmailWebhookEventType, ak as EnableDmarcParams, al as EnableDmarcResult, am as EnrollmentSkip, an as EventRecord, G as Groundmail, ao as GroundmailAccessToken, ap as GroundmailOptions, aq as GroundmailTokenOptions, ar as GroundmailTokenProvider, as as HeldBackErrorDetails, at as HeldBackReason, au as HeldBackRecipient, av as InReplyToEmail, aw as ListApiKeysParams, ax as ListApiKeysResult, ay as ListAutomationRunsParams, az as ListAutomationRunsResult, aA as ListAutomationsResult, aB as ListCategoryOptOutsParams, aC as ListCategoryOptOutsResult, aD as ListDomainsParams, aE as ListDomainsResult, aF as ListEmailsParams, aG as ListEmailsResult, aH as ListReceivedEmailsParams, aI as ListReceivedEmailsResult, aJ as ListSuppressionsParams, aK as ListSuppressionsResult, aL as ListTemplatesParams, aM as ListTemplatesResult, aN as ListTenantDomainsResult, aO as ListTenantsParams, aP as ListTenantsResult, aQ as ListTestInboxEmailsParams, aR as ListTestInboxEmailsResult, aS as MailServerSigningStatus, aT as MailStream, aU as Migration, aV as MigrationDnsChange, aW as MigrationDnsPlan, aX as MigrationDomainItem, aY as MigrationItemStatus, aZ as MigrationProvider, a_ as MigrationResource, a$ as MigrationSummary, b0 as MigrationTemplateItem, b1 as MigrationTotals, b2 as MigrationWebhookItem, b3 as ReceivedEmail, b4 as ReceivedEmailAttachment, b5 as ReceivedEmailAttachmentMeta, b6 as RemoteApplyDnsCredentials, b7 as RemoveCategoryOptOutOptions, b8 as RunMigrationOptions, b9 as SendEmailParams, S as SendEmailResult, ba as SesMigrationParams, bb as StreamDeliverability, bc as SuppressedErrorDetails, bd as Suppression, be as TEST_INBOX_WAIT_DEFAULT_MS, bf as TEST_INBOX_WAIT_MAX_SECONDS, bg as Template, bh as TemplateFormat, bi as TemplateLintWarning, bj as TemplateStarter, bk as TemplateStatus, bl as TemplateVersion, bm as Tenant, bn as TenantPauseSource, bo as TenantRamp, bp as TenantStats, bq as TenantStatsResult, br as TenantStatus, bs as TenantStreamPolicy, bt as TestEmailWebhookParams, bu as TestEmailWebhookResult, bv as TestInbox, bw as TestInboxAddressOptions, bx as TestInboxEmail, by as TestInboxEmailDetail, bz as TestInboxHeader, bA as TestInboxResource, bB as TestInboxUsage, bC as TriggerEventParams, bD as TriggerEventResult, bE as TwilioIntegrationResponse, bF as TwilioIntegrationStatus, bG as UpdateAutomationParams, bH as UpdateDomainParams, bI as UpdateEmailParams, bJ as UpdateTemplateParams, bK as UpdateTenantParams, bL as UpdateWebhookParams, bM as ValidateEmailResult, bN as ValidationReason, bO as ValidationVerdict, bP as VerifyDomainResult, bQ as WaitForTestEmailParams, bR as WebhookEmailTag, bS as WebhookEndpoint, bT as WebhookEndpointWithSecret, bU as WebhookEventType, bV as mergeMigrations, bW as normalizeAccessToken } from './client-C8TtxhtX.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