mailery 0.7.0 → 0.8.1

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.
@@ -527,6 +527,14 @@ interface MailTesterConfig {
527
527
  apiKey: string;
528
528
  /** Minimum score (0-10) below which publish is blocked. Default 8.0. */
529
529
  minScore?: number;
530
+ /**
531
+ * When true, publishing content that has no cached score is blocked too —
532
+ * the operator must run a deliverability check for that exact content first.
533
+ * Default false, which only blocks content already known to score below
534
+ * `minScore`; in that mode any edit (even whitespace) changes the content
535
+ * key, misses the cache, and publishes freely.
536
+ */
537
+ requireScore?: boolean;
530
538
  /**
531
539
  * How long a successful score remains cached for the same content. Default 24.
532
540
  * Re-publishing the same body within the window does not burn a credit.
@@ -840,6 +848,12 @@ interface FlowRunDoc {
840
848
  properties: Record<string, unknown>;
841
849
  occurredAt: Date;
842
850
  } | null;
851
+ /**
852
+ * Dedupe key of the triggering event. Unique per flow (partial index) so the
853
+ * trigger scan's overlap window can re-read an event without creating a
854
+ * second run. Null for non-event entries (manual/API).
855
+ */
856
+ triggerDedupeKey?: string | null;
843
857
  enteredAt: Date;
844
858
  status: FlowRunStatus;
845
859
  currentStepIndex: number;
@@ -1469,4 +1483,4 @@ declare class NullProvider implements MailProvider {
1469
1483
  reset(): void;
1470
1484
  }
1471
1485
 
1472
- export { getCollections as $, type AdapterFilter as A, type BroadcastDoc as B, type ContactAdapter as C, type DeliveryWindow as D, type EventDoc as E, type FlowStep as F, type SenderDomainValidation as G, type HealthDoc as H, type SubscriptionDoc as I, type SubscriptionStatus as J, type SuppressionDoc as K, type LeadDoc as L, type MailProvider as M, type NormalizedEvent as N, type OutboxDoc as O, type Predicate as P, type SuppressionReason as Q, type RunnerContext as R, type SendArgs as S, type TemplateDoc as T, type TemplateKind as U, type TemplateVersionDoc as V, type VarsAdapter as W, type VarsResolveInfo as X, type WebhookEventDoc as Y, defineVars as Z, ensureIndexes as _, type Contact as a, validateSenderDomain as a0, varsJsonSchema as a1, type SendResult as b, type MailTesterFeedback as c, Mailer as d, type SuppressionScope as e, type SegmentFilter as f, type AuditLogDoc as g, type BroadcastStatus as h, type CircuitBreakerThresholds as i, type Collections as j, type ContactTagDoc as k, type FlowDoc as l, type FlowGoal as m, type FlowRunDoc as n, type FlowRunStatus as o, type FlowVersionDoc as p, type HealthStatus as q, type MailerConfig as r, NullProvider as s, RESERVED_VAR_KEYS as t, type RedisOptions as u, type SegmentDefinition as v, type SendDoc as w, type SendStatus as x, type SenderDomainConfig as y, type SenderDomainRegistry as z };
1486
+ export { getCollections as $, type AdapterFilter as A, type BroadcastDoc as B, type ContactAdapter as C, type DeliveryWindow as D, type EventDoc as E, type FlowStep as F, type SenderDomainValidation as G, type HealthDoc as H, type SubscriptionDoc as I, type SubscriptionStatus as J, type SuppressionDoc as K, type LeadDoc as L, type MailProvider as M, type NormalizedEvent as N, type OutboxDoc as O, type Predicate as P, type SuppressionReason as Q, type RunnerContext as R, type SendArgs as S, type TemplateDoc as T, type TemplateKind as U, type TemplateVersionDoc as V, type VarsAdapter as W, type VarsResolveInfo as X, type WebhookEventDoc as Y, defineVars as Z, ensureIndexes as _, type Contact as a, validateSenderDomain as a0, varsJsonSchema as a1, type FlowTrigger as a2, type QueueDriverConfig as a3, type SendResult as b, type MailTesterFeedback as c, Mailer as d, type SuppressionScope as e, type SegmentFilter as f, type AuditLogDoc as g, type BroadcastStatus as h, type CircuitBreakerThresholds as i, type Collections as j, type ContactTagDoc as k, type FlowDoc as l, type FlowGoal as m, type FlowRunDoc as n, type FlowRunStatus as o, type FlowVersionDoc as p, type HealthStatus as q, type MailerConfig as r, NullProvider as s, RESERVED_VAR_KEYS as t, type RedisOptions as u, type SegmentDefinition as v, type SendDoc as w, type SendStatus as x, type SenderDomainConfig as y, type SenderDomainRegistry as z };
@@ -527,6 +527,14 @@ interface MailTesterConfig {
527
527
  apiKey: string;
528
528
  /** Minimum score (0-10) below which publish is blocked. Default 8.0. */
529
529
  minScore?: number;
530
+ /**
531
+ * When true, publishing content that has no cached score is blocked too —
532
+ * the operator must run a deliverability check for that exact content first.
533
+ * Default false, which only blocks content already known to score below
534
+ * `minScore`; in that mode any edit (even whitespace) changes the content
535
+ * key, misses the cache, and publishes freely.
536
+ */
537
+ requireScore?: boolean;
530
538
  /**
531
539
  * How long a successful score remains cached for the same content. Default 24.
532
540
  * Re-publishing the same body within the window does not burn a credit.
@@ -840,6 +848,12 @@ interface FlowRunDoc {
840
848
  properties: Record<string, unknown>;
841
849
  occurredAt: Date;
842
850
  } | null;
851
+ /**
852
+ * Dedupe key of the triggering event. Unique per flow (partial index) so the
853
+ * trigger scan's overlap window can re-read an event without creating a
854
+ * second run. Null for non-event entries (manual/API).
855
+ */
856
+ triggerDedupeKey?: string | null;
843
857
  enteredAt: Date;
844
858
  status: FlowRunStatus;
845
859
  currentStepIndex: number;
@@ -1469,4 +1483,4 @@ declare class NullProvider implements MailProvider {
1469
1483
  reset(): void;
1470
1484
  }
1471
1485
 
1472
- export { getCollections as $, type AdapterFilter as A, type BroadcastDoc as B, type ContactAdapter as C, type DeliveryWindow as D, type EventDoc as E, type FlowStep as F, type SenderDomainValidation as G, type HealthDoc as H, type SubscriptionDoc as I, type SubscriptionStatus as J, type SuppressionDoc as K, type LeadDoc as L, type MailProvider as M, type NormalizedEvent as N, type OutboxDoc as O, type Predicate as P, type SuppressionReason as Q, type RunnerContext as R, type SendArgs as S, type TemplateDoc as T, type TemplateKind as U, type TemplateVersionDoc as V, type VarsAdapter as W, type VarsResolveInfo as X, type WebhookEventDoc as Y, defineVars as Z, ensureIndexes as _, type Contact as a, validateSenderDomain as a0, varsJsonSchema as a1, type SendResult as b, type MailTesterFeedback as c, Mailer as d, type SuppressionScope as e, type SegmentFilter as f, type AuditLogDoc as g, type BroadcastStatus as h, type CircuitBreakerThresholds as i, type Collections as j, type ContactTagDoc as k, type FlowDoc as l, type FlowGoal as m, type FlowRunDoc as n, type FlowRunStatus as o, type FlowVersionDoc as p, type HealthStatus as q, type MailerConfig as r, NullProvider as s, RESERVED_VAR_KEYS as t, type RedisOptions as u, type SegmentDefinition as v, type SendDoc as w, type SendStatus as x, type SenderDomainConfig as y, type SenderDomainRegistry as z };
1486
+ export { getCollections as $, type AdapterFilter as A, type BroadcastDoc as B, type ContactAdapter as C, type DeliveryWindow as D, type EventDoc as E, type FlowStep as F, type SenderDomainValidation as G, type HealthDoc as H, type SubscriptionDoc as I, type SubscriptionStatus as J, type SuppressionDoc as K, type LeadDoc as L, type MailProvider as M, type NormalizedEvent as N, type OutboxDoc as O, type Predicate as P, type SuppressionReason as Q, type RunnerContext as R, type SendArgs as S, type TemplateDoc as T, type TemplateKind as U, type TemplateVersionDoc as V, type VarsAdapter as W, type VarsResolveInfo as X, type WebhookEventDoc as Y, defineVars as Z, ensureIndexes as _, type Contact as a, validateSenderDomain as a0, varsJsonSchema as a1, type FlowTrigger as a2, type QueueDriverConfig as a3, type SendResult as b, type MailTesterFeedback as c, Mailer as d, type SuppressionScope as e, type SegmentFilter as f, type AuditLogDoc as g, type BroadcastStatus as h, type CircuitBreakerThresholds as i, type Collections as j, type ContactTagDoc as k, type FlowDoc as l, type FlowGoal as m, type FlowRunDoc as n, type FlowRunStatus as o, type FlowVersionDoc as p, type HealthStatus as q, type MailerConfig as r, NullProvider as s, RESERVED_VAR_KEYS as t, type RedisOptions as u, type SegmentDefinition as v, type SendDoc as w, type SendStatus as x, type SenderDomainConfig as y, type SenderDomainRegistry as z };