@remit/api-openapi-types 0.0.27 → 0.0.29
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 +77 -1
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ current enum emitter anyway, so the wire contract uses the bare form.
|
|
|
156
156
|
/**
|
|
157
157
|
* Status of an outbox message in the send queue
|
|
158
158
|
*/
|
|
159
|
-
export type OutboxMessageStatus = "draft" | "queued" | "sending" | "sent" | "failed" | "blocked";
|
|
159
|
+
export type OutboxMessageStatus = "draft" | "queued" | "sending" | "sent" | "unfiled" | "failed" | "blocked";
|
|
160
160
|
/**
|
|
161
161
|
* Where an attachment is between being promised and being sendable.
|
|
162
162
|
|
|
@@ -181,6 +181,10 @@ distinguishable from a network failure without parsing prose.
|
|
|
181
181
|
* Sync status for message move/delete operations
|
|
182
182
|
*/
|
|
183
183
|
export type MessageSyncStatus = "synced" | "pending" | "failed";
|
|
184
|
+
/**
|
|
185
|
+
* 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.
|
|
186
|
+
*/
|
|
187
|
+
export type AuthenticityVerdict = "NotEvaluated" | "NotChecked" | "Aligned" | "Authenticated" | "Routine" | "Caution" | "Impersonation";
|
|
184
188
|
/**
|
|
185
189
|
* Authentication verdict for a single auth mechanism, as reported in the Authentication-Results header.
|
|
186
190
|
*/
|
|
@@ -2508,6 +2512,22 @@ standing to persist.
|
|
|
2508
2512
|
* Registrable domains (eTLD+1) the body's links point at, excluding the From address's own registrable domain. Present only for a message the provider's own filter already classified as spam; an empty array means every link stayed on the sender's domain, absence means the comparison was never made.
|
|
2509
2513
|
*/
|
|
2510
2514
|
offDomainLinkDomains?: string[];
|
|
2515
|
+
/**
|
|
2516
|
+
* Registrable domain of the first verified DKIM `header.d` in trusted Authentication-Results order, or the reserved literal `unverified` when no identity could be established. Unlike `dkimDomain`, which is the unverified `d=` claim the sender wrote, this is only set from a signature the trusted Authentication-Results reported as passing. Absent for messages classified before the field existed.
|
|
2517
|
+
*/
|
|
2518
|
+
signerDomain?: string;
|
|
2519
|
+
/**
|
|
2520
|
+
* SPF-checked envelope-from domain (`smtp.mailfrom`, falling back to `smtp.helo`) from the trusted Authentication-Results. Absent when the trusted header carried no SPF clause, or for messages classified before the field existed.
|
|
2521
|
+
*/
|
|
2522
|
+
envelopeDomain?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* Messages this account had already seen for the sender's standing key when this message arrived. A snapshot frozen at derivation time, deliberately not a live read — a message classified when the key stood at 340 always reads 340. Absent for messages classified before the field existed.
|
|
2525
|
+
*/
|
|
2526
|
+
signerMessageCount?: number;
|
|
2527
|
+
/**
|
|
2528
|
+
* Epoch milliseconds this account first saw the sender's standing key, snapshotted at derivation time alongside `signerMessageCount`. Absent for messages classified before the field existed.
|
|
2529
|
+
*/
|
|
2530
|
+
signerFirstSeenAt?: number;
|
|
2511
2531
|
}
|
|
2512
2532
|
/**
|
|
2513
2533
|
* 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.
|
|
@@ -3421,6 +3441,10 @@ either way and cannot tell which it received.
|
|
|
3421
3441
|
* Structured sender-authenticity signal derived from DKIM headers at classification time. Absent for messages classified before this field was introduced — absence means no signal.
|
|
3422
3442
|
*/
|
|
3423
3443
|
authenticity?: MessageAuthenticity;
|
|
3444
|
+
/**
|
|
3445
|
+
* Sender-authenticity tier resolved at body-sync. Defaults to `NotEvaluated`, the named pending state every message written before the derivation existed carries. Top-level rather than a member of `authenticity` on purpose: that blob is absent for all unsigned mail, so a guard keyed on its absence cannot tell "never derived" from "nothing to derive" and would re-derive unsigned mail forever.
|
|
3446
|
+
*/
|
|
3447
|
+
authenticityVerdict: AuthenticityVerdict;
|
|
3424
3448
|
/**
|
|
3425
3449
|
* Provider authentication-results signal parsed from Authentication-Results header. Absent for messages synced before this field was introduced.
|
|
3426
3450
|
*/
|
|
@@ -4327,6 +4351,56 @@ locally".
|
|
|
4327
4351
|
createdAt: number;
|
|
4328
4352
|
updatedAt: number;
|
|
4329
4353
|
}
|
|
4354
|
+
/**
|
|
4355
|
+
* How often this account has seen mail from one sender arrive under one DKIM
|
|
4356
|
+
signing identity. A third-party signer is not suspicious in itself — an ESP
|
|
4357
|
+
signing for its own domain on behalf of a customer is the ordinary shape of
|
|
4358
|
+
bulk mail — so what the authenticity derivation asks is whether this sender
|
|
4359
|
+
has been seen arriving this way before.
|
|
4360
|
+
|
|
4361
|
+
`senderKey` carries two scopes, disambiguated by `signerDomain`: the From
|
|
4362
|
+
domain when the signer is a real verified identity, and the full From address
|
|
4363
|
+
when `signerDomain` is the reserved literal `unverified`. Address granularity
|
|
4364
|
+
on the unverified pseudo-pair is a security boundary — a domain-wide key would
|
|
4365
|
+
let one unverifiable message from any address at a domain earn quiet treatment
|
|
4366
|
+
for every forged sender at it.
|
|
4367
|
+
|
|
4368
|
+
Standing is a noise filter, not an anti-spoofing control. It narrows the
|
|
4369
|
+
attack from "rent any established relay" to "rent the relay this specific From
|
|
4370
|
+
domain already uses"; it does not close it.
|
|
4371
|
+
*/
|
|
4372
|
+
export interface SenderSignerStanding {
|
|
4373
|
+
/**
|
|
4374
|
+
* Owning account configuration. Standing is never shared between accounts.
|
|
4375
|
+
*/
|
|
4376
|
+
accountConfigId: UUID;
|
|
4377
|
+
/**
|
|
4378
|
+
* Lowercased From domain when `signerDomain` names a real verified signer; the full lowercased From address when `signerDomain` is the reserved literal `unverified`.
|
|
4379
|
+
*/
|
|
4380
|
+
senderKey: String256;
|
|
4381
|
+
/**
|
|
4382
|
+
* Registrable domain of the first verified DKIM `header.d` in trusted Authentication-Results order, or the reserved literal `unverified` when no identity could be established. `unverified` is rejected as a real signer domain on write.
|
|
4383
|
+
*/
|
|
4384
|
+
signerDomain: String256;
|
|
4385
|
+
/**
|
|
4386
|
+
* Messages observed for this key. One increment per message.
|
|
4387
|
+
*/
|
|
4388
|
+
messageCount: number;
|
|
4389
|
+
/**
|
|
4390
|
+
* Epoch milliseconds of the first observation. Immutable after creation — the conflict path of the upsert deliberately omits it, so a later message can never reset the key's age.
|
|
4391
|
+
*/
|
|
4392
|
+
firstSeenAt: number;
|
|
4393
|
+
/**
|
|
4394
|
+
* Epoch milliseconds of the most recent observation.
|
|
4395
|
+
*/
|
|
4396
|
+
lastSeenAt: number;
|
|
4397
|
+
/**
|
|
4398
|
+
* Epoch milliseconds the user affirmed knowing this sender, promoting `Caution` to `Routine` for the pair. `0` means never affirmed, which is the state of every row until a user acts.
|
|
4399
|
+
*/
|
|
4400
|
+
userAffirmedAt: number;
|
|
4401
|
+
createdAt: number;
|
|
4402
|
+
updatedAt: number;
|
|
4403
|
+
}
|
|
4330
4404
|
/**
|
|
4331
4405
|
* Content-Type and other MIME parameters (CHARSET, BOUNDARY, NAME, etc.)
|
|
4332
4406
|
*/
|
|
@@ -6351,6 +6425,7 @@ export type MessageFlag = Components.Schemas.MessageFlag;
|
|
|
6351
6425
|
export type MessagePlacementMove = Components.Schemas.MessagePlacementMove;
|
|
6352
6426
|
export type MessageFlagPush = Components.Schemas.MessageFlagPush;
|
|
6353
6427
|
export type Envelope = Components.Schemas.Envelope;
|
|
6428
|
+
export type SenderSignerStanding = Components.Schemas.SenderSignerStanding;
|
|
6354
6429
|
export type BodyPartParameter = Components.Schemas.BodyPartParameter;
|
|
6355
6430
|
export type RawMessageStorage = Components.Schemas.RawMessageStorage;
|
|
6356
6431
|
export type BodyPartStorage = Components.Schemas.BodyPartStorage;
|
|
@@ -6393,6 +6468,7 @@ export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
|
|
|
6393
6468
|
export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
|
|
6394
6469
|
export type MessageStatus = Components.Schemas.MessageStatus;
|
|
6395
6470
|
export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
|
|
6471
|
+
export type AuthenticityVerdict = Components.Schemas.AuthenticityVerdict;
|
|
6396
6472
|
export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;
|
|
6397
6473
|
export type PlacementConfidence = Components.Schemas.PlacementConfidence;
|
|
6398
6474
|
export type AddressRole = Components.Schemas.AddressRole;
|