@remit/api-openapi-types 0.0.47 → 0.0.49

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 +41 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -185,6 +185,14 @@ current enum emitter anyway, so the wire contract uses the bare form.
185
185
  * 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. `ForeignAddress` — the name spells out an email address at a domain the sender does not send from. `Unrelated` — no relation. `NoClaim` — the name is empty, or is an address at the sending domain, so it claims no other identity.
186
186
  */
187
187
  export type DisplayNameCorrespondence = "Corresponds" | "Lookalike" | "ForeignAddress" | "Unrelated" | "NoClaim";
188
+ /**
189
+ * Message lifecycle status for move/delete operations
190
+ */
191
+ export type MessageStatus = "active" | "deleting" | "deleted" | "moving";
192
+ /**
193
+ * Sync status for message move/delete operations
194
+ */
195
+ export type MessageSyncStatus = "synced" | "pending" | "failed";
188
196
  /**
189
197
  * 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.
190
198
  */
@@ -213,14 +221,6 @@ member (naming the file, the size and the cap), so a refusal must be
213
221
  distinguishable from a network failure without parsing prose.
214
222
  */
215
223
  export type OutboxAttachmentRejectionReason = "EmptyFile" | "UnusableFilename" | "FileTooLarge" | "MessageTooLarge" | "TooManyAttachments" | "ReservationExpired" | "UploadMissing" | "SizeMismatch";
216
- /**
217
- * Message lifecycle status for move/delete operations
218
- */
219
- export type MessageStatus = "active" | "deleting" | "deleted" | "moving";
220
- /**
221
- * Sync status for message move/delete operations
222
- */
223
- export type MessageSyncStatus = "synced" | "pending" | "failed";
224
224
  /**
225
225
  * Sender-authenticity tier for a message, resolved at body-sync from the trusted Authentication-Results header and the sender's pair-keyed standing. First match wins, in tier order: `Impersonation`, `Aligned`, `Authenticated`, `Routine`, `NotChecked`, `Caution`. `NotEvaluated` is the sentinel for a message the derivation has never run on — it is the default and what every message written before this field existed carries, and it is distinct from `NotChecked`, which is a result.
226
226
  */
@@ -3362,6 +3362,14 @@ asking "is this slot free" never has to do the merging itself.
3362
3362
  * Structured sender-authenticity signal derived from DKIM headers at classification time (from the underlying Message). Absent for messages classified before this field was introduced — absence means no signal.
3363
3363
  */
3364
3364
  authenticity?: MessageAuthenticity;
3365
+ /**
3366
+ * Mutation lifecycle of the underlying Message, projected at read time — the ThreadMessage row has no column of its own. `active` means no move or delete is outstanding; `moving` or `deleting` means one is, and this row's folder is a local write the mail server has not confirmed.
3367
+ */
3368
+ status: MessageStatus;
3369
+ /**
3370
+ * Sync status of the underlying Message, projected at read time. Read it WITH `status`, never alone: `message-move`, `message-delete` and `message-copy` all write `failed` on an ordinary transient attempt before a redelivery that usually succeeds, so `failed` by itself does not mean a mutation gave up. One pair does prove one: `active` + `failed`, written only by `abandonDelete` — a delete Remit refused to run and handed back. Nothing else here is decidable. A move that gave up leaves `moving` + `failed`, the same pair its first dropped connection leaves; a delete that exhausted its retries is repaired to `active` + `synced` and reads as settled; `flag-push` and `placement-move-push` never write either field.
3371
+ */
3372
+ syncStatus: MessageSyncStatus;
3365
3373
  /**
3366
3374
  * Account identifier attached at read time via a mailboxId→accountId map. Present on rows returned by `GET /threads`; absent on rows from per-mailbox endpoints (clients can resolve from the mailbox cache).
3367
3375
  */
@@ -3486,18 +3494,23 @@ listing is scoped to a mailbox or spans every account.
3486
3494
  */
3487
3495
  continuationToken?: String800;
3488
3496
  /**
3489
- * How much the query matches, over the whole scope and independent of `limit`.
3490
- Present only when `count=true`.
3497
+ * How much the query matches, over the whole scope. Exact: no page size bounds
3498
+ it, no cursor narrows it, so it is the same number on the first page and the
3499
+ last. Present only when `count=true`.
3491
3500
 
3492
3501
  Each operation counts what it lists. `searchThreads` lists messages of one
3493
- mailbox and counts messages; with `senderTrust` or `dkimMismatch` in the
3494
- query that count is over the enriched window instead, since those are
3495
- resolved off the row. `listAllThreads` counts CONVERSATIONS across every
3496
- non-muted mailbox of every account — a thread holding two matching messages
3497
- counts once, and so does one message reachable through a real folder and a
3498
- virtual copy of it — because that is what the cross-account listing renders
3499
- after collapsing by `threadId`. A count that disagreed with the rows beneath
3500
- it would be a third number for the same set.
3502
+ mailbox and counts messages. `listAllThreads` counts CONVERSATIONS across
3503
+ every non-muted mailbox of every account — a thread holding two matching
3504
+ messages counts once, and so does one message reachable through a real
3505
+ folder and a virtual copy of it — because that is what the cross-account
3506
+ listing renders after collapsing by `threadId`. A count that disagreed with
3507
+ the rows beneath it would be a third number for the same set.
3508
+
3509
+ Absent when the query carries `senderTrust` or `dkimMismatch`, even with
3510
+ `count=true`. Those are resolved by enriching rows rather than by a
3511
+ predicate, so no exact count exists short of enriching the whole mailbox.
3512
+ Absence says so; a page's post-filter length labelled `count` would be a
3513
+ page length presented as a total. A client with no number renders none.
3501
3514
  */
3502
3515
  count?: number;
3503
3516
  }
@@ -4547,6 +4560,14 @@ either way and cannot tell which it received.
4547
4560
  * Message-ID header value for quick reference
4548
4561
  */
4549
4562
  messageIdHeader?: string;
4563
+ /**
4564
+ * Message lifecycle status for move/delete operations. Defaults to `active` (normal, visible).
4565
+ */
4566
+ status: MessageStatus;
4567
+ /**
4568
+ * Sync status for move/delete operations. The `synced` column default only applies to a row written without the field: the repository always supplies one, and an ordinary inbound sync writes `pending`, which nothing later promotes. So `pending` here does not mean an outstanding move or delete — `status` names that, and `failed` marks a mutation that gave up.
4569
+ */
4570
+ syncStatus: MessageSyncStatus;
4550
4571
  /**
4551
4572
  * Structured sender-authenticity signal derived from DKIM headers at classification time. Absent for messages classified before this field was introduced — absence means no signal.
4552
4573
  */
@@ -8585,13 +8606,13 @@ export type StarColor = Components.Schemas.StarColor;
8585
8606
  export type MessageCategory = Components.Schemas.MessageCategory;
8586
8607
  export type SenderTrust = Components.Schemas.SenderTrust;
8587
8608
  export type DisplayNameCorrespondence = Components.Schemas.DisplayNameCorrespondence;
8609
+ export type MessageStatus = Components.Schemas.MessageStatus;
8610
+ export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
8588
8611
  export type PlacementAction = Components.Schemas.PlacementAction;
8589
8612
  export type SemanticSearchChunkType = Components.Schemas.SemanticSearchChunkType;
8590
8613
  export type OutboxMessageStatus = Components.Schemas.OutboxMessageStatus;
8591
8614
  export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
8592
8615
  export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
8593
- export type MessageStatus = Components.Schemas.MessageStatus;
8594
- export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
8595
8616
  export type AuthenticityVerdict = Components.Schemas.AuthenticityVerdict;
8596
8617
  export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;
8597
8618
  export type PlacementConfidence = Components.Schemas.PlacementConfidence;