@remit/api-openapi-types 0.0.111 → 0.0.113
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 +63 -19
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -289,10 +289,6 @@ current enum emitter anyway, so the wire contract uses the bare form.
|
|
|
289
289
|
* Trust level for the From address, derived at read time from AddressFlags + counters.
|
|
290
290
|
*/
|
|
291
291
|
export type SenderTrust = "unknown" | "wellknown" | "vip";
|
|
292
|
-
/**
|
|
293
|
-
* 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.
|
|
294
|
-
*/
|
|
295
|
-
export type DisplayNameCorrespondence = "Corresponds" | "Lookalike" | "ForeignAddress" | "Unrelated" | "NoClaim";
|
|
296
292
|
/**
|
|
297
293
|
* Message lifecycle status for move/delete operations
|
|
298
294
|
*/
|
|
@@ -336,6 +332,10 @@ explained to the user as a failed delete.
|
|
|
336
332
|
* What happened to the model call for one checked message (RFC 041 stage 3).
|
|
337
333
|
*/
|
|
338
334
|
export type SpamModelOutcome = "Answered" | "NotConfigured" | "DailyLimit" | "RateLimited" | "OutOfBand";
|
|
335
|
+
/**
|
|
336
|
+
* One judge in the deployment's spam pipeline (RFC 041). The judges run in the configured order until one is sure.
|
|
337
|
+
*/
|
|
338
|
+
export type SpamJudgeName = "Inline" | "Rspamd" | "Model";
|
|
339
339
|
/**
|
|
340
340
|
* Why a spam service gave no verdict (RFC 041).
|
|
341
341
|
*/
|
|
@@ -448,6 +448,10 @@ distinguishable from a network failure without parsing prose.
|
|
|
448
448
|
* Which piece of configuration a still-unbound folder reference belongs to. A mailbox id is regenerated by every discovery, so an imported file names folders by IMAP path and the binder writes the row once a path resolves.
|
|
449
449
|
*/
|
|
450
450
|
export type ConfigImportRefKind = "FolderRole" | "MailboxOverride" | "FilterAction";
|
|
451
|
+
/**
|
|
452
|
+
* 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.
|
|
453
|
+
*/
|
|
454
|
+
export type DisplayNameCorrespondence = "Corresponds" | "Lookalike" | "ForeignAddress" | "Unrelated" | "NoClaim";
|
|
451
455
|
/**
|
|
452
456
|
* Whether sync still retries a warned message. Derived from stage and attempts, never stored.
|
|
453
457
|
*/
|
|
@@ -3996,7 +4000,7 @@ field on this resource rather than one more operation.
|
|
|
3996
4000
|
*/
|
|
3997
4001
|
export interface SpamSettings {
|
|
3998
4002
|
/**
|
|
3999
|
-
* The
|
|
4003
|
+
* The inline judge's thresholds, from the deployment's `SPAM_PIPELINE`. `Unset` when the pipeline has no inline judge.
|
|
4000
4004
|
*/
|
|
4001
4005
|
thresholds: SpamThresholdsUnset | SpamThresholdsSet;
|
|
4002
4006
|
/**
|
|
@@ -4009,13 +4013,13 @@ field on this resource rather than one more operation.
|
|
|
4009
4013
|
phishingPlacement: SpamLabelPlacement;
|
|
4010
4014
|
}
|
|
4011
4015
|
/**
|
|
4012
|
-
* No thresholds are set, so
|
|
4016
|
+
* No thresholds are set, so the judge's action is `None` and it is never sure: the next judge runs, and nothing moves.
|
|
4013
4017
|
*/
|
|
4014
4018
|
export interface SpamThresholdsUnset {
|
|
4015
4019
|
state: "Unset";
|
|
4016
4020
|
}
|
|
4017
4021
|
/**
|
|
4018
|
-
* The two scores that turn a spam score into an action: below `cleanBelow` nothing happens, from `spamAt` up the message goes to Junk, and between the two the owner is warned.
|
|
4022
|
+
* The two scores that turn a spam score into an action: below `cleanBelow` nothing happens, from `spamAt` up the message goes to Junk, and between the two the owner is warned. The judge is sure outside the band; inside it the next judge runs.
|
|
4019
4023
|
*/
|
|
4020
4024
|
export interface SpamThresholdsSet {
|
|
4021
4025
|
state: "Set";
|
|
@@ -4148,7 +4152,7 @@ field on this resource rather than one more operation.
|
|
|
4148
4152
|
*/
|
|
4149
4153
|
spamByDay: SpamDayCount[];
|
|
4150
4154
|
/**
|
|
4151
|
-
* Checked messages per spam score band of width 0.05, lowest first. A band with none is absent. Summing the bands from a threshold up counts the messages that threshold reaches.
|
|
4155
|
+
* Checked messages the inline judge decided, per spam score band of width 0.05, lowest first, so calibration reads inline scores only. A band with none is absent. Summing the bands from a threshold up counts the messages that threshold reaches.
|
|
4152
4156
|
*/
|
|
4153
4157
|
spamScoreBands: SpamScoreBand[];
|
|
4154
4158
|
}
|
|
@@ -4892,9 +4896,9 @@ every reader of either would otherwise narrow on the kind first.
|
|
|
4892
4896
|
*/
|
|
4893
4897
|
abandonedMutation: MessageMutation;
|
|
4894
4898
|
/**
|
|
4895
|
-
*
|
|
4899
|
+
* The account that owns the message, resolved at read time from the row's mailbox. The ThreadMessage row has no column of its own.
|
|
4896
4900
|
*/
|
|
4897
|
-
accountId
|
|
4901
|
+
accountId: UUID;
|
|
4898
4902
|
/**
|
|
4899
4903
|
* Present only when Remit auto-moved this message on body-sync. Absent means the message was not auto-moved by Remit.
|
|
4900
4904
|
*/
|
|
@@ -4915,6 +4919,10 @@ every reader of either would otherwise narrow on the kind first.
|
|
|
4915
4919
|
* The spam outcome of the underlying Message (RFC 041), projected at read time. `NotChecked` when the Message row is missing from the batch.
|
|
4916
4920
|
*/
|
|
4917
4921
|
spamVerdict: SpamVerdictNotChecked | SpamVerdictScreenedOut | SpamChecked | SpamFailed;
|
|
4922
|
+
/**
|
|
4923
|
+
* True once the owner marked the underlying Message Not spam, projected at read time. While true, `spamVerdict` raises no warning. `false` when the Message row is missing from the batch.
|
|
4924
|
+
*/
|
|
4925
|
+
spamCleared: boolean;
|
|
4918
4926
|
}
|
|
4919
4927
|
/**
|
|
4920
4928
|
* Structured sender-authenticity signal, derived from headers at classification time. Absent for messages classified before this field was introduced — clients should treat absence as no-signal.
|
|
@@ -4932,14 +4940,6 @@ every reader of either would otherwise narrow on the kind first.
|
|
|
4932
4940
|
* True when DKIM signing domain(s) are present and none aligns with the From domain
|
|
4933
4941
|
*/
|
|
4934
4942
|
dkimMismatch: boolean;
|
|
4935
|
-
/**
|
|
4936
|
-
* How the From display name relates to the From domain. Display-only: it never decides placement. Present only when the sender is not bulk-shaped (no List-Unsubscribe) — absence means the comparison was never made, never that it found nothing.
|
|
4937
|
-
*/
|
|
4938
|
-
displayNameCorrespondence?: DisplayNameCorrespondence;
|
|
4939
|
-
/**
|
|
4940
|
-
* Registrable domains (eTLD+1) the body's links point at, excluding the From address's own registrable domain. Display-only: it never decides placement. An empty array means every link stayed on the sender's domain, absence means the comparison was never made.
|
|
4941
|
-
*/
|
|
4942
|
-
offDomainLinkDomains?: string[];
|
|
4943
4943
|
/**
|
|
4944
4944
|
* 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.
|
|
4945
4945
|
*/
|
|
@@ -5067,6 +5067,10 @@ every reader of either would otherwise narrow on the kind first.
|
|
|
5067
5067
|
* What happened to the model call: `Answered`, or why no answer shaped the verdict.
|
|
5068
5068
|
*/
|
|
5069
5069
|
modelOutcome: SpamModelOutcome;
|
|
5070
|
+
/**
|
|
5071
|
+
* The judge whose score and action stand: the first one that was sure, or the last one that ran. `reasons` holds every judge that ran.
|
|
5072
|
+
*/
|
|
5073
|
+
decidedBy: SpamJudgeName;
|
|
5070
5074
|
}
|
|
5071
5075
|
/**
|
|
5072
5076
|
* One check that found something, shaped like an rspamd symbol.
|
|
@@ -6115,6 +6119,10 @@ either way and cannot tell which it received.
|
|
|
6115
6119
|
* The spam outcome for this message (RFC 041). Defaults to `NotChecked`; body sync records `ScreenedOut` when stage 1 let the message through, or the spam service's answer.
|
|
6116
6120
|
*/
|
|
6117
6121
|
spamVerdict: SpamVerdictNotChecked | SpamVerdictScreenedOut | SpamChecked | SpamFailed;
|
|
6122
|
+
/**
|
|
6123
|
+
* True once the owner marked this message Not spam, until they report it as spam again. A cleared message carries no Spam or Phishing label, and a rescan records its verdict without labelling or moving it, so clients read this before `spamVerdict` and raise no warning while it is true.
|
|
6124
|
+
*/
|
|
6125
|
+
spamCleared: boolean;
|
|
6118
6126
|
createdAt: number;
|
|
6119
6127
|
updatedAt: number;
|
|
6120
6128
|
}
|
|
@@ -6302,6 +6310,10 @@ either way and cannot tell which it received.
|
|
|
6302
6310
|
* The spam outcome for this message (RFC 041). Defaults to `NotChecked`; body sync records `ScreenedOut` when stage 1 let the message through, or the spam service's answer.
|
|
6303
6311
|
*/
|
|
6304
6312
|
spamVerdict: SpamVerdictNotChecked | SpamVerdictScreenedOut | SpamChecked | SpamFailed;
|
|
6313
|
+
/**
|
|
6314
|
+
* True once the owner marked this message Not spam, until they report it as spam again. A cleared message carries no Spam or Phishing label, and a rescan records its verdict without labelling or moving it, so clients read this before `spamVerdict` and raise no warning while it is true.
|
|
6315
|
+
*/
|
|
6316
|
+
spamCleared: boolean;
|
|
6305
6317
|
createdAt: number;
|
|
6306
6318
|
updatedAt: number;
|
|
6307
6319
|
/**
|
|
@@ -6353,6 +6365,10 @@ either way and cannot tell which it received.
|
|
|
6353
6365
|
* The spam outcome for this message (RFC 041). Defaults to `NotChecked`; body sync records `ScreenedOut` when stage 1 let the message through, or the spam service's answer.
|
|
6354
6366
|
*/
|
|
6355
6367
|
spamVerdict: SpamVerdictNotChecked | SpamVerdictScreenedOut | SpamChecked | SpamFailed;
|
|
6368
|
+
/**
|
|
6369
|
+
* True once the owner marked this message Not spam, until they report it as spam again. A cleared message carries no Spam or Phishing label, and a rescan records its verdict without labelling or moving it, so clients read this before `spamVerdict` and raise no warning while it is true.
|
|
6370
|
+
*/
|
|
6371
|
+
spamCleared: boolean;
|
|
6356
6372
|
/**
|
|
6357
6373
|
* Message-ID header value for quick reference
|
|
6358
6374
|
*/
|
|
@@ -7476,6 +7492,30 @@ of copying it, and so a person can see what was imported after the fact.
|
|
|
7476
7492
|
provider: SpamRequestProvider;
|
|
7477
7493
|
context: SpamRequestContext;
|
|
7478
7494
|
}
|
|
7495
|
+
/**
|
|
7496
|
+
* The inline judge, with its own thresholds.
|
|
7497
|
+
*/
|
|
7498
|
+
export interface SpamInlineJudgeConfig {
|
|
7499
|
+
name: any;
|
|
7500
|
+
thresholds: SpamThresholdsUnset | SpamThresholdsSet;
|
|
7501
|
+
}
|
|
7502
|
+
/**
|
|
7503
|
+
* An rspamd judge. Its action is its verdict: `no action` and `Junk` actions are sure, softer ones pass the message on.
|
|
7504
|
+
*/
|
|
7505
|
+
export interface SpamRspamdJudgeConfig {
|
|
7506
|
+
name: any;
|
|
7507
|
+
/**
|
|
7508
|
+
* The rspamd normal worker's http or https URL.
|
|
7509
|
+
*/
|
|
7510
|
+
url: string;
|
|
7511
|
+
}
|
|
7512
|
+
/**
|
|
7513
|
+
* The model judge. It spends a unit of the daily model cap per call, so it always has thresholds.
|
|
7514
|
+
*/
|
|
7515
|
+
export interface SpamModelJudgeConfig {
|
|
7516
|
+
name: any;
|
|
7517
|
+
thresholds: SpamThresholdsSet;
|
|
7518
|
+
}
|
|
7479
7519
|
/**
|
|
7480
7520
|
* Pending-move marker for a Remit-driven placement move (issue #1271, epic
|
|
7481
7521
|
#1281). Written in the SAME local step that moves a Message's `mailboxId` to
|
|
@@ -12205,6 +12245,9 @@ export type SpamRequestAuthentication = Components.Schemas.SpamRequestAuthentica
|
|
|
12205
12245
|
export type SpamRequestProvider = Components.Schemas.SpamRequestProvider;
|
|
12206
12246
|
export type SpamRequestContext = Components.Schemas.SpamRequestContext;
|
|
12207
12247
|
export type SpamRequest = Components.Schemas.SpamRequest;
|
|
12248
|
+
export type SpamInlineJudgeConfig = Components.Schemas.SpamInlineJudgeConfig;
|
|
12249
|
+
export type SpamRspamdJudgeConfig = Components.Schemas.SpamRspamdJudgeConfig;
|
|
12250
|
+
export type SpamModelJudgeConfig = Components.Schemas.SpamModelJudgeConfig;
|
|
12208
12251
|
export type MessagePlacementMove = Components.Schemas.MessagePlacementMove;
|
|
12209
12252
|
export type MessageFlagPush = Components.Schemas.MessageFlagPush;
|
|
12210
12253
|
export type Envelope = Components.Schemas.Envelope;
|
|
@@ -12286,7 +12329,6 @@ export type SpamKind = Components.Schemas.SpamKind;
|
|
|
12286
12329
|
export type SortOrder = Components.Schemas.SortOrder;
|
|
12287
12330
|
export type StarColor = Components.Schemas.StarColor;
|
|
12288
12331
|
export type SenderTrust = Components.Schemas.SenderTrust;
|
|
12289
|
-
export type DisplayNameCorrespondence = Components.Schemas.DisplayNameCorrespondence;
|
|
12290
12332
|
export type MessageStatus = Components.Schemas.MessageStatus;
|
|
12291
12333
|
export type MessageSyncStatus = Components.Schemas.MessageSyncStatus;
|
|
12292
12334
|
export type MessageMutation = Components.Schemas.MessageMutation;
|
|
@@ -12295,6 +12337,7 @@ export type PlacementConfidence = Components.Schemas.PlacementConfidence;
|
|
|
12295
12337
|
export type SpamSenderScreenRule = Components.Schemas.SpamSenderScreenRule;
|
|
12296
12338
|
export type SpamReasonName = Components.Schemas.SpamReasonName;
|
|
12297
12339
|
export type SpamModelOutcome = Components.Schemas.SpamModelOutcome;
|
|
12340
|
+
export type SpamJudgeName = Components.Schemas.SpamJudgeName;
|
|
12298
12341
|
export type SpamFailureKind = Components.Schemas.SpamFailureKind;
|
|
12299
12342
|
export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
|
|
12300
12343
|
export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
|
|
@@ -12321,6 +12364,7 @@ export type SenderOverride = Components.Schemas.SenderOverride;
|
|
|
12321
12364
|
export type AccountSettingName = Components.Schemas.AccountSettingName;
|
|
12322
12365
|
export type ConfigImportState = Components.Schemas.ConfigImportState;
|
|
12323
12366
|
export type ConfigImportRefKind = Components.Schemas.ConfigImportRefKind;
|
|
12367
|
+
export type DisplayNameCorrespondence = Components.Schemas.DisplayNameCorrespondence;
|
|
12324
12368
|
export type SyncWarningState = Components.Schemas.SyncWarningState;
|
|
12325
12369
|
export type ProviderSpamVerdict = Components.Schemas.ProviderSpamVerdict;
|
|
12326
12370
|
export type MessagePlacementMoveState = Components.Schemas.MessagePlacementMoveState;
|