@remit/api-openapi-spec 0.0.49 → 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 +27 -6
- 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",
|
|
@@ -10019,7 +10033,7 @@
|
|
|
10019
10033
|
}
|
|
10020
10034
|
],
|
|
10021
10035
|
"nullable": true,
|
|
10022
|
-
"description": "
|
|
10036
|
+
"description": "Name this key in `clearFlags` to offer the address in autocomplete again"
|
|
10023
10037
|
},
|
|
10024
10038
|
"category": {
|
|
10025
10039
|
"type": "object",
|
|
@@ -10049,7 +10063,7 @@
|
|
|
10049
10063
|
"nullable": true
|
|
10050
10064
|
}
|
|
10051
10065
|
},
|
|
10052
|
-
"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."
|
|
10053
10067
|
},
|
|
10054
10068
|
"RemitImap.UpdateAddressInput": {
|
|
10055
10069
|
"type": "object",
|
|
@@ -10060,7 +10074,14 @@
|
|
|
10060
10074
|
"$ref": "#/components/schemas/RemitImap.UpdateAddressFlagsInput"
|
|
10061
10075
|
}
|
|
10062
10076
|
],
|
|
10063
|
-
"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."
|
|
10064
10085
|
}
|
|
10065
10086
|
},
|
|
10066
10087
|
"description": "Input for updating an Address (currently flag updates only)"
|