@remit/api-openapi-types 0.0.11 → 0.0.12
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 +43 -5
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -2215,17 +2215,29 @@ standing to persist.
|
|
|
2215
2215
|
dkimMismatch: boolean;
|
|
2216
2216
|
}
|
|
2217
2217
|
/**
|
|
2218
|
-
* Present only when Remit auto-moved this message on body-sync (a
|
|
2218
|
+
* 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.
|
|
2219
2219
|
*/
|
|
2220
2220
|
export interface AutoMovedInfo {
|
|
2221
2221
|
/**
|
|
2222
|
-
*
|
|
2222
|
+
* Classifier move only: direction Remit moved the message — MoveToInbox | MoveToJunk. Absent for a standing-filter move, which names its destination via `destinationMailboxId` instead.
|
|
2223
2223
|
*/
|
|
2224
|
-
action
|
|
2224
|
+
action?: PlacementAction;
|
|
2225
2225
|
/**
|
|
2226
|
-
*
|
|
2226
|
+
* Classifier move only: folder role the message was moved from — inbox | junk | other. Used to render "moved from Junk" and to resolve the undo target via MailboxRole. Absent for a standing-filter move, which names its source via `fromMailboxId`.
|
|
2227
2227
|
*/
|
|
2228
|
-
fromPlacement
|
|
2228
|
+
fromPlacement?: string;
|
|
2229
|
+
/**
|
|
2230
|
+
* Standing-filter move only: the mailbox the message was moved out of. The undo target — the client resolves its display name for the badge and moves the message back here.
|
|
2231
|
+
*/
|
|
2232
|
+
fromMailboxId?: UUID;
|
|
2233
|
+
/**
|
|
2234
|
+
* Standing-filter move only: the mailbox the filter moved the message into. The move is still in effect while the message sits here.
|
|
2235
|
+
*/
|
|
2236
|
+
destinationMailboxId?: UUID;
|
|
2237
|
+
/**
|
|
2238
|
+
* Standing-filter move only: the filter that moved the message, for the Settings › Filters link. Undo does not disable it.
|
|
2239
|
+
*/
|
|
2240
|
+
filterId?: UUID;
|
|
2229
2241
|
}
|
|
2230
2242
|
/**
|
|
2231
2243
|
* Aggregate response for `searchThreads`. Carries the matching rows (`items`), a
|
|
@@ -2945,6 +2957,10 @@ server-capped window. `items` is omitted when `results=false` (count-only);
|
|
|
2945
2957
|
* Remit's placement verdict, recorded when Remit decided to act (action != leave). Absent means left-in-place or synced before placement rolled out. Recorded in dry-run too, so the dark-ship distribution is queryable.
|
|
2946
2958
|
*/
|
|
2947
2959
|
placementVerdict?: MessagePlacementVerdict;
|
|
2960
|
+
/**
|
|
2961
|
+
* Recorded when a standing filter moved this message at body-sync time (RFC 034). Absent means no filter moved it — a classifier move records `placementVerdict` instead, and a retroactive back-apply records neither. Drives the arbitrary-destination auto-moved badge and its undo.
|
|
2962
|
+
*/
|
|
2963
|
+
filterMove?: MessageFilterMove;
|
|
2948
2964
|
createdAt: number;
|
|
2949
2965
|
updatedAt: number;
|
|
2950
2966
|
}
|
|
@@ -3011,6 +3027,27 @@ server-capped window. `items` is omitted when `results=false` (count-only);
|
|
|
3011
3027
|
*/
|
|
3012
3028
|
decidedAt: number;
|
|
3013
3029
|
}
|
|
3030
|
+
/**
|
|
3031
|
+
* Recorded when a standing filter (RFC 034) moved this message at body-sync time. Present only for a real, index-time filter move, so the client can render the badge naming the destination, offer an undo back to the source folder, and link to the filter in Settings. A retroactive back-apply move attributes to no filter and never writes this (RFC 034 Decision 3.3).
|
|
3032
|
+
*/
|
|
3033
|
+
export interface MessageFilterMove {
|
|
3034
|
+
/**
|
|
3035
|
+
* The standing filter that moved the message — lets the client link the badge to Settings › Filters.
|
|
3036
|
+
*/
|
|
3037
|
+
filterId: UUID;
|
|
3038
|
+
/**
|
|
3039
|
+
* The mailbox the message was in before the filter moved it. The undo target: undo returns the message here and does not disable the filter.
|
|
3040
|
+
*/
|
|
3041
|
+
sourceMailboxId: UUID;
|
|
3042
|
+
/**
|
|
3043
|
+
* The mailbox the filter moved the message into. The move is still in effect while the message sits here; any move away (undo or manual) clears the badge.
|
|
3044
|
+
*/
|
|
3045
|
+
destinationMailboxId: UUID;
|
|
3046
|
+
/**
|
|
3047
|
+
* Body-sync timestamp the move was decided at (epoch millis).
|
|
3048
|
+
*/
|
|
3049
|
+
decidedAt: number;
|
|
3050
|
+
}
|
|
3014
3051
|
/**
|
|
3015
3052
|
* Core message metadata for API responses
|
|
3016
3053
|
*/
|
|
@@ -5438,6 +5475,7 @@ export type Message = Components.Schemas.Message;
|
|
|
5438
5475
|
export type MessageAuthResult = Components.Schemas.MessageAuthResult;
|
|
5439
5476
|
export type MessageProviderSpam = Components.Schemas.MessageProviderSpam;
|
|
5440
5477
|
export type MessagePlacementVerdict = Components.Schemas.MessagePlacementVerdict;
|
|
5478
|
+
export type MessageFilterMove = Components.Schemas.MessageFilterMove;
|
|
5441
5479
|
export type MessageSummaryResponse = Components.Schemas.MessageSummaryResponse;
|
|
5442
5480
|
export type EnvelopeResponse = Components.Schemas.EnvelopeResponse;
|
|
5443
5481
|
export type EnvelopeAddressResponse = Components.Schemas.EnvelopeAddressResponse;
|