@remit/api-openapi-types 0.0.10 → 0.0.12

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 +47 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -1552,6 +1552,10 @@ vectors at match time and never persisted as a FilterAnchor row.
1552
1552
  * Ids of the matching messages, bounded to the same cap the apply pass uses
1553
1553
  */
1554
1554
  messageIds: string[];
1555
+ /**
1556
+ * True when the semantic widen could not run because this deployment ships no vector pipeline (self-host without sqlite-vec / the embedding model). The matched set is then the literal matches only, or empty for an anchor-only predicate; literal search is unaffected. Absent on deployments where the widen ran.
1557
+ */
1558
+ semanticUnavailable?: boolean;
1555
1559
  }
1556
1560
  /**
1557
1561
  * An async "all like these" back-apply job (RFC 034 recap, #1278). Modeled on
@@ -2211,17 +2215,29 @@ standing to persist.
2211
2215
  dkimMismatch: boolean;
2212
2216
  }
2213
2217
  /**
2214
- * Present only when Remit auto-moved this message on body-sync (a confident, non-dry-run move). Absent means the message was not auto-moved by Remit — clients treat absence as no indicator.
2218
+ * 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.
2215
2219
  */
2216
2220
  export interface AutoMovedInfo {
2217
2221
  /**
2218
- * Direction Remit moved the message: MoveToInbox | MoveToJunk. The implied destination lets the client tell whether the move is still in effect.
2222
+ * Classifier move only: direction Remit moved the message MoveToInbox | MoveToJunk. Absent for a standing-filter move, which names its destination via `destinationMailboxId` instead.
2219
2223
  */
2220
- action: PlacementAction;
2224
+ action?: PlacementAction;
2221
2225
  /**
2222
- * Folder role the message was moved from: inbox | junk | other. Used to render "moved from Junk" and to resolve the undo target client-side via MailboxRole.
2226
+ * Classifier move only: folder role the message was moved from inbox | junk | other. Used to render "moved from Junk" and to resolve the undo target via MailboxRole. Absent for a standing-filter move, which names its source via `fromMailboxId`.
2223
2227
  */
2224
- fromPlacement: string;
2228
+ fromPlacement?: string;
2229
+ /**
2230
+ * Standing-filter move only: the mailbox the message was moved out of. The undo target — the client resolves its display name for the badge and moves the message back here.
2231
+ */
2232
+ fromMailboxId?: UUID;
2233
+ /**
2234
+ * Standing-filter move only: the mailbox the filter moved the message into. The move is still in effect while the message sits here.
2235
+ */
2236
+ destinationMailboxId?: UUID;
2237
+ /**
2238
+ * Standing-filter move only: the filter that moved the message, for the Settings › Filters link. Undo does not disable it.
2239
+ */
2240
+ filterId?: UUID;
2225
2241
  }
2226
2242
  /**
2227
2243
  * Aggregate response for `searchThreads`. Carries the matching rows (`items`), a
@@ -2941,6 +2957,10 @@ server-capped window. `items` is omitted when `results=false` (count-only);
2941
2957
  * Remit's placement verdict, recorded when Remit decided to act (action != leave). Absent means left-in-place or synced before placement rolled out. Recorded in dry-run too, so the dark-ship distribution is queryable.
2942
2958
  */
2943
2959
  placementVerdict?: MessagePlacementVerdict;
2960
+ /**
2961
+ * Recorded when a standing filter moved this message at body-sync time (RFC 034). Absent means no filter moved it — a classifier move records `placementVerdict` instead, and a retroactive back-apply records neither. Drives the arbitrary-destination auto-moved badge and its undo.
2962
+ */
2963
+ filterMove?: MessageFilterMove;
2944
2964
  createdAt: number;
2945
2965
  updatedAt: number;
2946
2966
  }
@@ -3007,6 +3027,27 @@ server-capped window. `items` is omitted when `results=false` (count-only);
3007
3027
  */
3008
3028
  decidedAt: number;
3009
3029
  }
3030
+ /**
3031
+ * Recorded when a standing filter (RFC 034) moved this message at body-sync time. Present only for a real, index-time filter move, so the client can render the badge naming the destination, offer an undo back to the source folder, and link to the filter in Settings. A retroactive back-apply move attributes to no filter and never writes this (RFC 034 Decision 3.3).
3032
+ */
3033
+ export interface MessageFilterMove {
3034
+ /**
3035
+ * The standing filter that moved the message — lets the client link the badge to Settings › Filters.
3036
+ */
3037
+ filterId: UUID;
3038
+ /**
3039
+ * The mailbox the message was in before the filter moved it. The undo target: undo returns the message here and does not disable the filter.
3040
+ */
3041
+ sourceMailboxId: UUID;
3042
+ /**
3043
+ * The mailbox the filter moved the message into. The move is still in effect while the message sits here; any move away (undo or manual) clears the badge.
3044
+ */
3045
+ destinationMailboxId: UUID;
3046
+ /**
3047
+ * Body-sync timestamp the move was decided at (epoch millis).
3048
+ */
3049
+ decidedAt: number;
3050
+ }
3010
3051
  /**
3011
3052
  * Core message metadata for API responses
3012
3053
  */
@@ -5434,6 +5475,7 @@ export type Message = Components.Schemas.Message;
5434
5475
  export type MessageAuthResult = Components.Schemas.MessageAuthResult;
5435
5476
  export type MessageProviderSpam = Components.Schemas.MessageProviderSpam;
5436
5477
  export type MessagePlacementVerdict = Components.Schemas.MessagePlacementVerdict;
5478
+ export type MessageFilterMove = Components.Schemas.MessageFilterMove;
5437
5479
  export type MessageSummaryResponse = Components.Schemas.MessageSummaryResponse;
5438
5480
  export type EnvelopeResponse = Components.Schemas.EnvelopeResponse;
5439
5481
  export type EnvelopeAddressResponse = Components.Schemas.EnvelopeAddressResponse;