@remit/api-openapi-types 0.0.22 → 0.0.24

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 (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +18 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -141,6 +141,10 @@ current enum emitter anyway, so the wire contract uses the bare form.
141
141
  * Trust level for the From address, derived at read time from AddressFlags + counters.
142
142
  */
143
143
  export type SenderTrust = "unknown" | "wellknown" | "vip";
144
+ /**
145
+ * How the From display name relates to the From domain. `Corresponds` — the name is contained in the domain. `Lookalike` — the name is one or two characters away from a domain label. `Unrelated` — no relation. `NoClaim` — the name is empty or is the address itself, so it claims no identity.
146
+ */
147
+ export type DisplayNameCorrespondence = "Corresponds" | "Lookalike" | "Unrelated" | "NoClaim";
144
148
  /**
145
149
  * Actionable placement verdict — the direction Remit decided to move a message. `leave` is not represented: a left-in-place verdict means the placement sub-model is absent.
146
150
  */
@@ -2468,6 +2472,14 @@ standing to persist.
2468
2472
  * True when DKIM signing domain(s) are present and none aligns with the From domain
2469
2473
  */
2470
2474
  dkimMismatch: boolean;
2475
+ /**
2476
+ * How the From display name relates to the From domain. Present only for a message the provider's own filter already classified as spam, and only when the sender is not bulk-shaped (no List-Unsubscribe) — absence means the comparison was never made, never that it found nothing.
2477
+ */
2478
+ displayNameCorrespondence?: DisplayNameCorrespondence;
2479
+ /**
2480
+ * Registrable domains (eTLD+1) the body's links point at, excluding the From address's own registrable domain. Present only for a message the provider's own filter already classified as spam; an empty array means every link stayed on the sender's domain, absence means the comparison was never made.
2481
+ */
2482
+ offDomainLinkDomains?: string[];
2471
2483
  }
2472
2484
  /**
2473
2485
  * Present only when Remit auto-moved this message on body-sync. Two shapes share this model: a classifier placement move carries `action` + `fromPlacement` (Inbox/Junk direction); a standing-filter move carries `fromMailboxId` + `destinationMailboxId` + `filterId` (an arbitrary destination folder). Absent means the message was not auto-moved by Remit — clients treat absence as no indicator.
@@ -2504,10 +2516,10 @@ standing to persist.
2504
2516
  }
2505
2517
  /**
2506
2518
  * Aggregate response for `searchThreads`. Carries the matching rows (`items`), a
2507
- pagination `continuationToken`, and an optional `count` of matches within the
2508
- server-capped window. `items` is omitted when `results=false` (count-only);
2509
- `count` is present only when `count=true`. Thread-specific so the shared
2510
- `ResultList<T>` (7 endpoints) stays untouched.
2519
+ pagination `continuationToken`, and an optional `count` of every message the
2520
+ query matches. `items` is omitted when `results=false` (count-only); `count` is
2521
+ present only when `count=true`. Thread-specific so the shared `ResultList<T>`
2522
+ (7 endpoints) stays untouched.
2511
2523
  */
2512
2524
  export interface ThreadSearchResponse {
2513
2525
  /**
@@ -2519,7 +2531,7 @@ server-capped window. `items` is omitted when `results=false` (count-only);
2519
2531
  */
2520
2532
  continuationToken?: String800;
2521
2533
  /**
2522
- * Number of matches within the server-capped window. Present only when `count=true`.
2534
+ * How many messages the query matches, over the whole mailbox and independent of `limit`. Present only when `count=true`. With `senderTrust` or `dkimMismatch` in the query the count is over the enriched window instead, since those are resolved off the row.
2523
2535
  */
2524
2536
  count?: number;
2525
2537
  }
@@ -6013,6 +6025,7 @@ export type SortOrder = Components.Schemas.SortOrder;
6013
6025
  export type StarColor = Components.Schemas.StarColor;
6014
6026
  export type MessageCategory = Components.Schemas.MessageCategory;
6015
6027
  export type SenderTrust = Components.Schemas.SenderTrust;
6028
+ export type DisplayNameCorrespondence = Components.Schemas.DisplayNameCorrespondence;
6016
6029
  export type PlacementAction = Components.Schemas.PlacementAction;
6017
6030
  export type SemanticSearchChunkType = Components.Schemas.SemanticSearchChunkType;
6018
6031
  export type OutboxMessageStatus = Components.Schemas.OutboxMessageStatus;