@remit/api-openapi-types 0.0.48 → 0.0.50
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.
- package/package.json +1 -1
- package/types.d.ts +38 -13
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ current enum emitter anyway, so the wire contract uses the bare form.
|
|
|
174
174
|
*/
|
|
175
175
|
export type StarColor = "none" | "yellow" | "orange" | "red" | "purple" | "blue" | "teal" | "green" | "yellow_bang" | "red_bang" | "purple_question" | "blue_info" | "orange_guillemet" | "green_check" | "yellow_check" | "blue_star";
|
|
176
176
|
/**
|
|
177
|
-
* Header-derived message category. Set by classifyByHeaders during body-sync. Defaults to `uncategorized
|
|
177
|
+
* Header-derived message category. Set by classifyByHeaders during body-sync. Defaults to `uncategorized`, which covers both a message that has not been classified yet and one the classifier declined to categorize; `Message.classificationState` is what tells those apart.
|
|
178
178
|
*/
|
|
179
179
|
export type MessageCategory = "uncategorized" | "personal" | "newsletter" | "marketing" | "automated" | "transactional" | "social";
|
|
180
180
|
/**
|
|
@@ -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
|
*/
|
|
@@ -214,13 +222,9 @@ distinguishable from a network failure without parsing prose.
|
|
|
214
222
|
*/
|
|
215
223
|
export type OutboxAttachmentRejectionReason = "EmptyFile" | "UnusableFilename" | "FileTooLarge" | "MessageTooLarge" | "TooManyAttachments" | "ReservationExpired" | "UploadMissing" | "SizeMismatch";
|
|
216
224
|
/**
|
|
217
|
-
* Message
|
|
225
|
+
* Whether the header classifier has examined a message's body (issue #331). Persistence-level state on `Message`, deliberately off the wire: no response model carries it. It exists because `category` cannot answer this question — `uncategorized` is both the value a metadata-synced row starts at and the answer the classifier gives when it has nothing to say, so a guard reading `category` alone cannot tell "never examined" from "examined and declined" and re-reads the stored body on every sync pass forever.
|
|
218
226
|
*/
|
|
219
|
-
export type
|
|
220
|
-
/**
|
|
221
|
-
* Sync status for message move/delete operations
|
|
222
|
-
*/
|
|
223
|
-
export type MessageSyncStatus = "synced" | "pending" | "failed";
|
|
227
|
+
export type MessageClassificationState = "NotExamined" | "Examined";
|
|
224
228
|
/**
|
|
225
229
|
* 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
230
|
*/
|
|
@@ -3274,7 +3278,7 @@ asking "is this slot free" never has to do the merging itself.
|
|
|
3274
3278
|
*/
|
|
3275
3279
|
snippet?: String256;
|
|
3276
3280
|
/**
|
|
3277
|
-
* Header-derived category, denormalized from the underlying Message. Defaults to `uncategorized` at metadata-sync and is set to the
|
|
3281
|
+
* Header-derived category, denormalized from the underlying Message. Defaults to `uncategorized` at metadata-sync and is set to the classifier's answer at body-sync — `uncategorized` is a named value, not absence, and it is also the answer a classifier with nothing to say gives. Whether the classifier has run at all is `Message.classificationState`; this row has no column for it.
|
|
3278
3282
|
*/
|
|
3279
3283
|
category: MessageCategory;
|
|
3280
3284
|
createdAt: number;
|
|
@@ -3347,7 +3351,7 @@ asking "is this slot free" never has to do the merging itself.
|
|
|
3347
3351
|
createdAt: number;
|
|
3348
3352
|
updatedAt: number;
|
|
3349
3353
|
/**
|
|
3350
|
-
* 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
|
|
3354
|
+
* 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 — no category — never a stand-in for `personal` (issue #45).
|
|
3351
3355
|
*/
|
|
3352
3356
|
category: MessageCategory;
|
|
3353
3357
|
/**
|
|
@@ -3362,6 +3366,14 @@ asking "is this slot free" never has to do the merging itself.
|
|
|
3362
3366
|
* 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
3367
|
*/
|
|
3364
3368
|
authenticity?: MessageAuthenticity;
|
|
3369
|
+
/**
|
|
3370
|
+
* 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.
|
|
3371
|
+
*/
|
|
3372
|
+
status: MessageStatus;
|
|
3373
|
+
/**
|
|
3374
|
+
* 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.
|
|
3375
|
+
*/
|
|
3376
|
+
syncStatus: MessageSyncStatus;
|
|
3365
3377
|
/**
|
|
3366
3378
|
* 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
3379
|
*/
|
|
@@ -4394,9 +4406,13 @@ either way and cannot tell which it received.
|
|
|
4394
4406
|
*/
|
|
4395
4407
|
originalUid?: number;
|
|
4396
4408
|
/**
|
|
4397
|
-
* Header-derived category. Defaults to `uncategorized
|
|
4409
|
+
* Header-derived category. Defaults to `uncategorized`, a named value rather than absence. It covers two states — metadata-synced but not yet classified, and classified with nothing to say — and `classificationState` is what tells them apart.
|
|
4398
4410
|
*/
|
|
4399
4411
|
category: MessageCategory;
|
|
4412
|
+
/**
|
|
4413
|
+
* Whether the header classifier has examined this message's body. Defaults to `NotExamined`, the named pending state every message written before this field existed carries. A field of its own rather than a reading of `category` or of `bodyStorageKey`: `uncategorized` is both the pending value and the classifier's own "nothing to say", and key presence is the storage fact, not the derivation's. Persistence-only — no response model exposes it — and it is what a later backfill selects the never-examined cohort by.
|
|
4414
|
+
*/
|
|
4415
|
+
classificationState: MessageClassificationState;
|
|
4400
4416
|
/**
|
|
4401
4417
|
* Structured sender-authenticity signal derived from DKIM headers at classification time. Absent for messages classified before this field was introduced — absence means no signal.
|
|
4402
4418
|
*/
|
|
@@ -4552,6 +4568,14 @@ either way and cannot tell which it received.
|
|
|
4552
4568
|
* Message-ID header value for quick reference
|
|
4553
4569
|
*/
|
|
4554
4570
|
messageIdHeader?: string;
|
|
4571
|
+
/**
|
|
4572
|
+
* Message lifecycle status for move/delete operations. Defaults to `active` (normal, visible).
|
|
4573
|
+
*/
|
|
4574
|
+
status: MessageStatus;
|
|
4575
|
+
/**
|
|
4576
|
+
* 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.
|
|
4577
|
+
*/
|
|
4578
|
+
syncStatus: MessageSyncStatus;
|
|
4555
4579
|
/**
|
|
4556
4580
|
* 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
4581
|
*/
|
|
@@ -4610,7 +4634,7 @@ either way and cannot tell which it received.
|
|
|
4610
4634
|
*/
|
|
4611
4635
|
replyTo: EnvelopeAddressResponse[];
|
|
4612
4636
|
/**
|
|
4613
|
-
* Header-derived category for the message. Always present: `Message.category` is NOT NULL with an `uncategorized` default, and `uncategorized`
|
|
4637
|
+
* Header-derived category for the message. Always present: `Message.category` is NOT NULL with an `uncategorized` default, and `uncategorized` is a named value — no category — rather than a stand-in for absence or for `personal` (issue #45).
|
|
4614
4638
|
*/
|
|
4615
4639
|
category: MessageCategory;
|
|
4616
4640
|
/**
|
|
@@ -8590,13 +8614,14 @@ export type StarColor = Components.Schemas.StarColor;
|
|
|
8590
8614
|
export type MessageCategory = Components.Schemas.MessageCategory;
|
|
8591
8615
|
export type SenderTrust = Components.Schemas.SenderTrust;
|
|
8592
8616
|
export type DisplayNameCorrespondence = Components.Schemas.DisplayNameCorrespondence;
|
|
8617
|
+
export type MessageStatus = Components.Schemas.MessageStatus;
|
|
8618
|
+
export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
|
|
8593
8619
|
export type PlacementAction = Components.Schemas.PlacementAction;
|
|
8594
8620
|
export type SemanticSearchChunkType = Components.Schemas.SemanticSearchChunkType;
|
|
8595
8621
|
export type OutboxMessageStatus = Components.Schemas.OutboxMessageStatus;
|
|
8596
8622
|
export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
|
|
8597
8623
|
export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
|
|
8598
|
-
export type
|
|
8599
|
-
export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
|
|
8624
|
+
export type MessageClassificationState = Components.Schemas.MessageClassificationState;
|
|
8600
8625
|
export type AuthenticityVerdict = Components.Schemas.AuthenticityVerdict;
|
|
8601
8626
|
export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;
|
|
8602
8627
|
export type PlacementConfidence = Components.Schemas.PlacementConfidence;
|