@remit/api-openapi-types 0.0.18 → 0.0.19

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 +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -2347,7 +2347,7 @@ standing to persist.
2347
2347
  updatedAt: number;
2348
2348
  }
2349
2349
  /**
2350
- * Thread message item returned by list/search operations. `category` and `senderTrust` are attached at read time via batch-fetch so the inbox row can render badges without a per-row round trip.
2350
+ * Thread message item returned by list/search operations. `senderTrust` is attached at read time via batch-fetch so the inbox row can render its badge without a per-row round trip. `category` is served from the ThreadMessage row itself, which is also the row the category filter matches, so the badge and the filter cannot disagree.
2351
2351
  */
2352
2352
  export interface ThreadMessageResponse {
2353
2353
  /**
@@ -2413,9 +2413,9 @@ standing to persist.
2413
2413
  createdAt: number;
2414
2414
  updatedAt: number;
2415
2415
  /**
2416
- * Header-derived category for the message (from the underlying Message). Absent for messages synced before classification rolled out clients should treat this as `personal`.
2416
+ * Header-derived category for the message, served from the ThreadMessage row. Always present: the column is NOT NULL with an `uncategorized` default, and `uncategorized` is a named value for the not-yet-classified state, never a stand-in for `personal` (issue #45).
2417
2417
  */
2418
- category?: MessageCategory;
2418
+ category: MessageCategory;
2419
2419
  /**
2420
2420
  * Trust level for the From address, derived from AddressFlags at read time. Defaults to `unknown` when no Address row resolves.
2421
2421
  */
@@ -3378,9 +3378,9 @@ server-capped window. `items` is omitted when `results=false` (count-only);
3378
3378
  */
3379
3379
  replyTo: EnvelopeAddressResponse[];
3380
3380
  /**
3381
- * Header-derived category for the message. Absent for messages synced before classification rolled out.
3381
+ * Header-derived category for the message. Always present: `Message.category` is NOT NULL with an `uncategorized` default, and `uncategorized` names the not-yet-classified state rather than standing for absence (issue #45).
3382
3382
  */
3383
- category?: MessageCategory;
3383
+ category: MessageCategory;
3384
3384
  /**
3385
3385
  * Trust level for the From address, derived from AddressFlags at read time.
3386
3386
  */
@@ -5085,7 +5085,7 @@ Ordering: oldest first, by the date the message was sent, with `threadMessageId`
5085
5085
  config?: AxiosRequestConfig
5086
5086
  ): OperationResponse<Paths.ListThreadMessages.Responses.$200>;
5087
5087
  /**
5088
- * listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc. Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust`/`category` enrichment. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
5088
+ * listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc. Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
5089
5089
 
5090
5090
  INBOX scope: results are filtered to each account's top-level INBOX, matched by exact path `fullPath === "INBOX"` (RFC 6154 defines no Inbox special-use). By design this excludes namespaced sub-paths like `INBOX/Receipts` and non-English server primaries — the unified inbox is each account's primary INBOX, not its sub-folders. Soft-deleted rows are also excluded.
5091
5091
 
@@ -5621,7 +5621,7 @@ Ordering: oldest first, by the date the message was sent, with `threadMessageId`
5621
5621
  };
5622
5622
  ['/threads']: {
5623
5623
  /**
5624
- * listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc. Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust`/`category` enrichment. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
5624
+ * listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc. Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
5625
5625
 
5626
5626
  INBOX scope: results are filtered to each account's top-level INBOX, matched by exact path `fullPath === "INBOX"` (RFC 6154 defines no Inbox special-use). By design this excludes namespaced sub-paths like `INBOX/Receipts` and non-English server primaries — the unified inbox is each account's primary INBOX, not its sub-folders. Soft-deleted rows are also excluded.
5627
5627