@remit/api-openapi-spec 0.0.92 → 0.0.94

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/openapi.json +66 -5
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -9458,7 +9458,6 @@
9458
9458
  "presetId",
9459
9459
  "model",
9460
9460
  "baseUrl",
9461
- "apiKeySaved",
9462
9461
  "enabled",
9463
9462
  "dailyLimit",
9464
9463
  "sources",
@@ -9480,10 +9479,6 @@
9480
9479
  "baseUrl": {
9481
9480
  "type": "string"
9482
9481
  },
9483
- "apiKeySaved": {
9484
- "type": "boolean",
9485
- "description": "Deprecated: read `sources.apiKey` instead. Whether an API key is saved or inherited from the deployment. Removed once reader-ui reads `sources`."
9486
- },
9487
9482
  "enabled": {
9488
9483
  "type": "boolean",
9489
9484
  "description": "Whether classification runs."
@@ -11962,6 +11957,56 @@
11962
11957
  ],
11963
11958
  "description": "Which mutation a message's placement gave up on. Read it only while\n`syncStatus` is `abandoned` — outside that it is `none` and says nothing,\nthe way `originalUid` says nothing once a placement has settled\n(`docs/architecture/imap-mutations.md` R3).\n\nIt exists because a hand-back erases the evidence: the give-up puts `status`\nback to `active`, and `status` was the only field naming the mutation that\nwas outstanding. Without this the client can see that something was\nabandoned and cannot see what, which is how a move that gave up came to be\nexplained to the user as a failed delete."
11964
11959
  },
11960
+ "RemitImap.MessagePlacementVerdict": {
11961
+ "type": "object",
11962
+ "required": [
11963
+ "action",
11964
+ "confidence",
11965
+ "fromPlacement",
11966
+ "reasons",
11967
+ "dryRun",
11968
+ "decidedAt"
11969
+ ],
11970
+ "properties": {
11971
+ "action": {
11972
+ "allOf": [
11973
+ {
11974
+ "$ref": "#/components/schemas/RemitImap.PlacementAction"
11975
+ }
11976
+ ],
11977
+ "description": "The direction Remit decided to move the message."
11978
+ },
11979
+ "confidence": {
11980
+ "allOf": [
11981
+ {
11982
+ "$ref": "#/components/schemas/RemitImap.PlacementConfidence"
11983
+ }
11984
+ ],
11985
+ "description": "Confidence of the verdict. A Junk arrival not judged junk moves to the Inbox at either confidence, and one judged junk stays in Junk. Outside Junk only a `Confident` verdict moves the message."
11986
+ },
11987
+ "fromPlacement": {
11988
+ "type": "string",
11989
+ "description": "The folder the message was in when the verdict was made: inbox | junk | other."
11990
+ },
11991
+ "reasons": {
11992
+ "type": "array",
11993
+ "items": {
11994
+ "type": "string"
11995
+ },
11996
+ "description": "Deterministic signals the verdict was based on, for diagnostics."
11997
+ },
11998
+ "dryRun": {
11999
+ "type": "boolean",
12000
+ "description": "True when the dark-ship flag was off, so the move was computed but not enqueued (would-move only). False when a real IMAP move was enqueued."
12001
+ },
12002
+ "decidedAt": {
12003
+ "type": "integer",
12004
+ "format": "int64",
12005
+ "description": "Body-sync timestamp the verdict was decided at (epoch millis)."
12006
+ }
12007
+ },
12008
+ "description": "Remit's placement decision for a message, recorded at body-sync time. Present only when Remit decided to act (action != leave); absent when the message was left in place or synced before placement rolled out. Written in dry-run too, so the dark-ship verdict distribution is queryable before moves are enabled."
12009
+ },
11965
12010
  "RemitImap.MessageReferenceResponse": {
11966
12011
  "type": "object",
11967
12012
  "required": [
@@ -13073,6 +13118,14 @@
13073
13118
  ],
13074
13119
  "description": "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."
13075
13120
  },
13121
+ "RemitImap.PlacementConfidence": {
13122
+ "type": "string",
13123
+ "enum": [
13124
+ "Confident",
13125
+ "Unsure"
13126
+ ],
13127
+ "description": "Confidence of a placement verdict. `Confident` verdicts move mail (when the dark-ship flag is on); `Unsure` verdicts are recorded but never moved."
13128
+ },
13076
13129
  "RemitImap.QuarantineFailureCode": {
13077
13130
  "type": "string",
13078
13131
  "enum": [
@@ -14242,6 +14295,14 @@
14242
14295
  }
14243
14296
  ],
14244
14297
  "description": "Present when the user reported this message as spam and the report has not been undone, projected from the underlying Message row. Backs the \"Reported as spam · Undo\" affordance in list views."
14298
+ },
14299
+ "placementVerdict": {
14300
+ "allOf": [
14301
+ {
14302
+ "$ref": "#/components/schemas/RemitImap.MessagePlacementVerdict"
14303
+ }
14304
+ ],
14305
+ "description": "Remit's placement verdict for this message, projected from the underlying Message row. Absent for a message judged before placement verdicts were recorded, or one Remit left in place."
14245
14306
  }
14246
14307
  },
14247
14308
  "description": "Thread message item returned by list/search operations. `senderTrust` is attached at read time via batch-fetch so the inbox row can render its badge without a per-row round trip. `category` is served from the ThreadMessage row itself, which is also the row the category filter matches, so the badge and the filter cannot disagree."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec, and its precompiled request validators.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",