@bobfrankston/mailx-types 0.1.102 → 0.1.106

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.
Files changed (3) hide show
  1. package/index.d.ts +7 -0
  2. package/package.json +1 -1
  3. package/trust.js +16 -1
package/index.d.ts CHANGED
@@ -349,6 +349,13 @@ export interface ExtractedEvent {
349
349
  timeZone?: string;
350
350
  location?: string;
351
351
  notes?: string;
352
+ /** True when the text records someone's birthday as a yearly date to
353
+ * remember ("Ann's birthday is March 5"), not a party at a time. The
354
+ * service creates it as a Google birthday event: all-day, repeats yearly. */
355
+ birthday?: boolean;
356
+ /** True when the text says the time is not blocked (free / tentative /
357
+ * optional / FYI). Sent to Google as transparency "transparent". */
358
+ free?: boolean;
352
359
  }
353
360
  export interface AiTransformResponse {
354
361
  /** Transformed text. Empty when AI is disabled / provider error / feature
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-types",
3
- "version": "0.1.102",
3
+ "version": "0.1.106",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/trust.js CHANGED
@@ -346,7 +346,22 @@ function dmarcProof(input) {
346
346
  && !fromDomain.endsWith("." + stated)) {
347
347
  return { pass: false, failed, authFailures, domain: "", policy };
348
348
  }
349
- return { pass: true, failed: false, authFailures, domain: stated || fromDomain, policy };
349
+ // 2026-09-23 — Claude Code (Fable 5.1), at Bob's direction.
350
+ // An aligned DMARC pass IS the identity verdict: RFC 7489 pass means SPF or
351
+ // DKIM verified on the domain the reader sees in From. A failed mechanism
352
+ // beside it is about some OTHER identity — a relay's broken body hash, a
353
+ // forwarder's envelope — not about the From line. This function already
354
+ // said so for the aligned-pass case in selfSpoof ("one failed signature on
355
+ // a message with an aligned pass is not evidence about the From line; the
356
+ // pass is"), but authFailures still carried the DKIM name up to analyze-
357
+ // ServerSpam, where any authFailure forces kind = "forgery" and the red
358
+ // "not what it says it is" banner. Eversource's payment notice (SendGrid,
359
+ // dkim=fail on eversource.com's own signature, dmarc=pass header.from=
360
+ // notifications.eversource.com policy=reject) was painted as a forgery,
361
+ // and the trust button — gated on no danger — never appeared. Same shape
362
+ // as the list-relay carve-out at the call site, generalised to the case
363
+ // where the server itself pronounced the aligned verdict.
364
+ return { pass: true, failed: false, authFailures: [], domain: stated || fromDomain, policy };
350
365
  }
351
366
  /** Unfold a header value the way RFC 5322 folds it: delete the line break,
352
367
  * KEEP the whitespace that continues the line. SpamAssassin breaks its tests=