@remit/api-openapi-spec 0.0.48 → 0.0.50
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/openapi.json +34 -7
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1367,7 +1367,7 @@
|
|
|
1367
1367
|
"/addresses/{addressId}": {
|
|
1368
1368
|
"patch": {
|
|
1369
1369
|
"operationId": "AddressDetailOperations_updateAddress",
|
|
1370
|
-
"description": "Update an address (currently: per-sender flags). Pass `flags
|
|
1370
|
+
"description": "Update an address (currently: per-sender flags). Pass `flags` to set flags and `clearFlags: [\"<name>\"]` to remove them. Other flags are untouched.",
|
|
1371
1371
|
"parameters": [
|
|
1372
1372
|
{
|
|
1373
1373
|
"name": "addressId",
|
|
@@ -4852,6 +4852,20 @@
|
|
|
4852
4852
|
},
|
|
4853
4853
|
"description": "Common metadata for sender-level flags"
|
|
4854
4854
|
},
|
|
4855
|
+
"RemitImap.AddressFlagKey": {
|
|
4856
|
+
"type": "string",
|
|
4857
|
+
"enum": [
|
|
4858
|
+
"trusted",
|
|
4859
|
+
"blocked",
|
|
4860
|
+
"muted",
|
|
4861
|
+
"vip",
|
|
4862
|
+
"junkOnly",
|
|
4863
|
+
"category",
|
|
4864
|
+
"autoArchive",
|
|
4865
|
+
"unsubscribed"
|
|
4866
|
+
],
|
|
4867
|
+
"description": "Names a key of `AddressFlags` that a client may address in `PATCH /addresses/{addressId}`. `wellknown` is deliberately absent: it is server-owned, derived from engagement counters, and is never written or removed by a client."
|
|
4868
|
+
},
|
|
4855
4869
|
"RemitImap.AddressFlags": {
|
|
4856
4870
|
"type": "object",
|
|
4857
4871
|
"properties": {
|
|
@@ -7390,7 +7404,7 @@
|
|
|
7390
7404
|
"$ref": "#/components/schemas/RemitImap.AddressFlagBase"
|
|
7391
7405
|
}
|
|
7392
7406
|
],
|
|
7393
|
-
"description": "Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by
|
|
7407
|
+
"description": "Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by naming this key in `UpdateAddressInput.clearFlags`."
|
|
7394
7408
|
},
|
|
7395
7409
|
"RemitImap.JunkOnlyFlagUpdate": {
|
|
7396
7410
|
"type": "object",
|
|
@@ -7404,7 +7418,7 @@
|
|
|
7404
7418
|
"$ref": "#/components/schemas/RemitImap.AddressFlagBaseUpdate"
|
|
7405
7419
|
}
|
|
7406
7420
|
],
|
|
7407
|
-
"description": "Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by
|
|
7421
|
+
"description": "Address was only ever seen on mail in a Junk folder: withheld from autocomplete suggestions until the account corresponds with it, flags it, or meets it on live mail. Written by sync and by the boot-time repair; clear it by naming this key in `UpdateAddressInput.clearFlags`."
|
|
7408
7422
|
},
|
|
7409
7423
|
"RemitImap.LabelAction": {
|
|
7410
7424
|
"type": "string",
|
|
@@ -7687,7 +7701,8 @@
|
|
|
7687
7701
|
"fullPath",
|
|
7688
7702
|
"phase",
|
|
7689
7703
|
"messagesTotal",
|
|
7690
|
-
"messagesSynced"
|
|
7704
|
+
"messagesSynced",
|
|
7705
|
+
"highWaterMarkUid"
|
|
7691
7706
|
],
|
|
7692
7707
|
"properties": {
|
|
7693
7708
|
"mailboxId": {
|
|
@@ -7716,6 +7731,11 @@
|
|
|
7716
7731
|
"format": "int32",
|
|
7717
7732
|
"description": "Approximate number of messages synced. Computed as highWaterMarkUid − lastSyncUid (UID-range approximation; UIDs are sparse so this may undercount). Clamped to messagesTotal."
|
|
7718
7733
|
},
|
|
7734
|
+
"highWaterMarkUid": {
|
|
7735
|
+
"type": "integer",
|
|
7736
|
+
"format": "int64",
|
|
7737
|
+
"description": "The highest UID ever seen in this mailbox. An arrival is a UID above the highest one seen; a total is not, because one message in and one out nets to zero. A mailbox that has never synced carries the sentinel 0 rather than an absent field."
|
|
7738
|
+
},
|
|
7719
7739
|
"lastSyncedAt": {
|
|
7720
7740
|
"type": "integer",
|
|
7721
7741
|
"format": "int64",
|
|
@@ -10013,7 +10033,7 @@
|
|
|
10013
10033
|
}
|
|
10014
10034
|
],
|
|
10015
10035
|
"nullable": true,
|
|
10016
|
-
"description": "
|
|
10036
|
+
"description": "Name this key in `clearFlags` to offer the address in autocomplete again"
|
|
10017
10037
|
},
|
|
10018
10038
|
"category": {
|
|
10019
10039
|
"type": "object",
|
|
@@ -10043,7 +10063,7 @@
|
|
|
10043
10063
|
"nullable": true
|
|
10044
10064
|
}
|
|
10045
10065
|
},
|
|
10046
|
-
"description": "Patch payload for
|
|
10066
|
+
"description": "Patch payload for AddressFlags entries. Sets the flags named here and leaves the others untouched. Removal travels in `UpdateAddressInput.clearFlags`, not here: the `null` alternative below is unreachable over OAS 3.0, where a nullable `$ref` emits as `allOf` and the request validator drops the `nullable` — and no `null` form exists at all for `category`, whose value is an enum with no false-equivalent member."
|
|
10047
10067
|
},
|
|
10048
10068
|
"RemitImap.UpdateAddressInput": {
|
|
10049
10069
|
"type": "object",
|
|
@@ -10054,7 +10074,14 @@
|
|
|
10054
10074
|
"$ref": "#/components/schemas/RemitImap.UpdateAddressFlagsInput"
|
|
10055
10075
|
}
|
|
10056
10076
|
],
|
|
10057
|
-
"description": "Per-flag merge update; omitted flags are untouched
|
|
10077
|
+
"description": "Per-flag merge update; omitted flags are untouched"
|
|
10078
|
+
},
|
|
10079
|
+
"clearFlags": {
|
|
10080
|
+
"type": "array",
|
|
10081
|
+
"items": {
|
|
10082
|
+
"$ref": "#/components/schemas/RemitImap.AddressFlagKey"
|
|
10083
|
+
},
|
|
10084
|
+
"description": "Flag keys to remove from the sparse map, leaving the rest untouched. This is the removal form for every flag, whatever its value type — clearing `category` reverts the sender to automatic classification. Applied after `flags`, so a key named in both ends up removed. Removing an absent flag succeeds and changes nothing."
|
|
10058
10085
|
}
|
|
10059
10086
|
},
|
|
10060
10087
|
"description": "Input for updating an Address (currently flag updates only)"
|