@remit/api-openapi-types 0.0.48 → 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 +26 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.48",
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
  */
@@ -4552,6 +4560,14 @@ either way and cannot tell which it received.
4552
4560
  * Message-ID header value for quick reference
4553
4561
  */
4554
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;
4555
4571
  /**
4556
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.
4557
4573
  */
@@ -8590,13 +8606,13 @@ export type StarColor = Components.Schemas.StarColor;
8590
8606
  export type MessageCategory = Components.Schemas.MessageCategory;
8591
8607
  export type SenderTrust = Components.Schemas.SenderTrust;
8592
8608
  export type DisplayNameCorrespondence = Components.Schemas.DisplayNameCorrespondence;
8609
+ export type MessageStatus = Components.Schemas.MessageStatus;
8610
+ export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
8593
8611
  export type PlacementAction = Components.Schemas.PlacementAction;
8594
8612
  export type SemanticSearchChunkType = Components.Schemas.SemanticSearchChunkType;
8595
8613
  export type OutboxMessageStatus = Components.Schemas.OutboxMessageStatus;
8596
8614
  export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
8597
8615
  export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
8598
- export type MessageStatus = Components.Schemas.MessageStatus;
8599
- export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
8600
8616
  export type AuthenticityVerdict = Components.Schemas.AuthenticityVerdict;
8601
8617
  export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;
8602
8618
  export type PlacementConfidence = Components.Schemas.PlacementConfidence;