@remit/api-openapi-types 0.0.112 → 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 +40 -4
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -332,6 +332,10 @@ explained to the user as a failed delete.
|
|
|
332
332
|
* What happened to the model call for one checked message (RFC 041 stage 3).
|
|
333
333
|
*/
|
|
334
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";
|
|
335
339
|
/**
|
|
336
340
|
* Why a spam service gave no verdict (RFC 041).
|
|
337
341
|
*/
|
|
@@ -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
|
}
|
|
@@ -5063,6 +5067,10 @@ every reader of either would otherwise narrow on the kind first.
|
|
|
5063
5067
|
* What happened to the model call: `Answered`, or why no answer shaped the verdict.
|
|
5064
5068
|
*/
|
|
5065
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;
|
|
5066
5074
|
}
|
|
5067
5075
|
/**
|
|
5068
5076
|
* One check that found something, shaped like an rspamd symbol.
|
|
@@ -7484,6 +7492,30 @@ of copying it, and so a person can see what was imported after the fact.
|
|
|
7484
7492
|
provider: SpamRequestProvider;
|
|
7485
7493
|
context: SpamRequestContext;
|
|
7486
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
|
+
}
|
|
7487
7519
|
/**
|
|
7488
7520
|
* Pending-move marker for a Remit-driven placement move (issue #1271, epic
|
|
7489
7521
|
#1281). Written in the SAME local step that moves a Message's `mailboxId` to
|
|
@@ -12213,6 +12245,9 @@ export type SpamRequestAuthentication = Components.Schemas.SpamRequestAuthentica
|
|
|
12213
12245
|
export type SpamRequestProvider = Components.Schemas.SpamRequestProvider;
|
|
12214
12246
|
export type SpamRequestContext = Components.Schemas.SpamRequestContext;
|
|
12215
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;
|
|
12216
12251
|
export type MessagePlacementMove = Components.Schemas.MessagePlacementMove;
|
|
12217
12252
|
export type MessageFlagPush = Components.Schemas.MessageFlagPush;
|
|
12218
12253
|
export type Envelope = Components.Schemas.Envelope;
|
|
@@ -12302,6 +12337,7 @@ export type PlacementConfidence = Components.Schemas.PlacementConfidence;
|
|
|
12302
12337
|
export type SpamSenderScreenRule = Components.Schemas.SpamSenderScreenRule;
|
|
12303
12338
|
export type SpamReasonName = Components.Schemas.SpamReasonName;
|
|
12304
12339
|
export type SpamModelOutcome = Components.Schemas.SpamModelOutcome;
|
|
12340
|
+
export type SpamJudgeName = Components.Schemas.SpamJudgeName;
|
|
12305
12341
|
export type SpamFailureKind = Components.Schemas.SpamFailureKind;
|
|
12306
12342
|
export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
|
|
12307
12343
|
export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
|