@remit/api-openapi-spec 0.0.22 → 0.0.24
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 +185 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1968,6 +1968,80 @@
|
|
|
1968
1968
|
}
|
|
1969
1969
|
}
|
|
1970
1970
|
},
|
|
1971
|
+
"/messages/not-spam": {
|
|
1972
|
+
"post": {
|
|
1973
|
+
"operationId": "MessageBulkOperations_notSpam",
|
|
1974
|
+
"description": "Undo a spam report: clear the sender's `blocked` flag (never promotes to trusted/wellknown) and move each message back to `Message.originalMailboxId`. Idempotent under a repeated call. Each message is processed independently and concurrently, so the request's total wait is bounded by one message's settle timeout rather than accumulating across the batch.",
|
|
1975
|
+
"parameters": [],
|
|
1976
|
+
"responses": {
|
|
1977
|
+
"200": {
|
|
1978
|
+
"description": "The request has succeeded.",
|
|
1979
|
+
"content": {
|
|
1980
|
+
"application/json": {
|
|
1981
|
+
"schema": {
|
|
1982
|
+
"$ref": "#/components/schemas/RemitImap.SpamReportBulkResult"
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
},
|
|
1988
|
+
"requestBody": {
|
|
1989
|
+
"required": true,
|
|
1990
|
+
"content": {
|
|
1991
|
+
"application/json": {
|
|
1992
|
+
"schema": {
|
|
1993
|
+
"$ref": "#/components/schemas/RemitImap.BulkMessageInput"
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
"x-amazon-apigateway-integration": {
|
|
1999
|
+
"type": "aws_proxy",
|
|
2000
|
+
"httpMethod": "POST",
|
|
2001
|
+
"passthroughBehavior": "when_no_match",
|
|
2002
|
+
"uri": {
|
|
2003
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
},
|
|
2008
|
+
"/messages/report-spam": {
|
|
2009
|
+
"post": {
|
|
2010
|
+
"operationId": "MessageBulkOperations_reportSpam",
|
|
2011
|
+
"description": "Report messages as spam: block the sender (Address.flags.blocked) and move each message to the account's Junk folder. Skips the block (but still moves the message) when the sender is the account's own address. One call replaces composing the old separate `Block` and `Mark spam` actions — a single user intent, a single failure story. The sender block is written first and does not wait on the move; a failed move never rolls it back. Idempotent under a repeated call.",
|
|
2012
|
+
"parameters": [],
|
|
2013
|
+
"responses": {
|
|
2014
|
+
"200": {
|
|
2015
|
+
"description": "The request has succeeded.",
|
|
2016
|
+
"content": {
|
|
2017
|
+
"application/json": {
|
|
2018
|
+
"schema": {
|
|
2019
|
+
"$ref": "#/components/schemas/RemitImap.SpamReportBulkResult"
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
"requestBody": {
|
|
2026
|
+
"required": true,
|
|
2027
|
+
"content": {
|
|
2028
|
+
"application/json": {
|
|
2029
|
+
"schema": {
|
|
2030
|
+
"$ref": "#/components/schemas/RemitImap.BulkMessageInput"
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
2035
|
+
"x-amazon-apigateway-integration": {
|
|
2036
|
+
"type": "aws_proxy",
|
|
2037
|
+
"httpMethod": "POST",
|
|
2038
|
+
"passthroughBehavior": "when_no_match",
|
|
2039
|
+
"uri": {
|
|
2040
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
1971
2045
|
"/messages/{messageId}": {
|
|
1972
2046
|
"get": {
|
|
1973
2047
|
"operationId": "MessageOperations_describeMessage",
|
|
@@ -3110,6 +3184,13 @@
|
|
|
3110
3184
|
"type": "string",
|
|
3111
3185
|
"description": "HTML email signature for this account"
|
|
3112
3186
|
},
|
|
3187
|
+
"composeLanguages": {
|
|
3188
|
+
"type": "array",
|
|
3189
|
+
"items": {
|
|
3190
|
+
"type": "string"
|
|
3191
|
+
},
|
|
3192
|
+
"description": "BCP 47 language tags this account writes mail in, most-used first (issue #686). The first entry is what a new message opens on; the whole list is the candidate set language detection chooses inside. Absent when the user has not configured one, and the client falls back to the browser's own languages. Sourced from a per-account AccountSetting row (RFC 032)."
|
|
3193
|
+
},
|
|
3113
3194
|
"folderAppointments": {
|
|
3114
3195
|
"type": "array",
|
|
3115
3196
|
"items": {
|
|
@@ -3577,6 +3658,24 @@
|
|
|
3577
3658
|
},
|
|
3578
3659
|
"description": "Body part information"
|
|
3579
3660
|
},
|
|
3661
|
+
"RemitImap.BulkMessageInput": {
|
|
3662
|
+
"type": "object",
|
|
3663
|
+
"required": [
|
|
3664
|
+
"messageIds"
|
|
3665
|
+
],
|
|
3666
|
+
"properties": {
|
|
3667
|
+
"messageIds": {
|
|
3668
|
+
"type": "array",
|
|
3669
|
+
"items": {
|
|
3670
|
+
"$ref": "#/components/schemas/UUID"
|
|
3671
|
+
},
|
|
3672
|
+
"minItems": 1,
|
|
3673
|
+
"maxItems": 100,
|
|
3674
|
+
"description": "List of message IDs to operate on"
|
|
3675
|
+
}
|
|
3676
|
+
},
|
|
3677
|
+
"description": "Input for bulk message operations"
|
|
3678
|
+
},
|
|
3580
3679
|
"RemitImap.BulkUpdateFlagsInput": {
|
|
3581
3680
|
"type": "object",
|
|
3582
3681
|
"required": [
|
|
@@ -4986,6 +5085,20 @@
|
|
|
4986
5085
|
},
|
|
4987
5086
|
"description": "Message reference response for In-Reply-To and References headers"
|
|
4988
5087
|
},
|
|
5088
|
+
"RemitImap.MessageSpamReport": {
|
|
5089
|
+
"type": "object",
|
|
5090
|
+
"required": [
|
|
5091
|
+
"reportedAt"
|
|
5092
|
+
],
|
|
5093
|
+
"properties": {
|
|
5094
|
+
"reportedAt": {
|
|
5095
|
+
"type": "integer",
|
|
5096
|
+
"format": "int64",
|
|
5097
|
+
"description": "Timestamp (epoch millis) the report was made."
|
|
5098
|
+
}
|
|
5099
|
+
},
|
|
5100
|
+
"description": "Recorded when the user reported this message as spam via `POST /messages/report-spam`. Present means the report stands; absent means never reported, or reported and then undone via `POST /messages/not-spam` (which clears it). Backs the \"Reported as spam · Undo\" affordance independent of the message's current folder — the underlying move can settle, fail, or no-op (already in Junk) without changing whether the report itself is shown."
|
|
5101
|
+
},
|
|
4989
5102
|
"RemitImap.MessageSummaryResponse": {
|
|
4990
5103
|
"type": "object",
|
|
4991
5104
|
"required": [
|
|
@@ -5062,6 +5175,14 @@
|
|
|
5062
5175
|
"$ref": "#/components/schemas/RemitImap.LabelSummaryResponse"
|
|
5063
5176
|
},
|
|
5064
5177
|
"description": "Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied."
|
|
5178
|
+
},
|
|
5179
|
+
"spamReport": {
|
|
5180
|
+
"allOf": [
|
|
5181
|
+
{
|
|
5182
|
+
"$ref": "#/components/schemas/RemitImap.MessageSpamReport"
|
|
5183
|
+
}
|
|
5184
|
+
],
|
|
5185
|
+
"description": "Present when the user reported this message as spam and the report has not been undone. Backs the \"Reported as spam · Undo\" affordance."
|
|
5065
5186
|
}
|
|
5066
5187
|
},
|
|
5067
5188
|
"description": "Core message metadata for API responses"
|
|
@@ -5924,6 +6045,55 @@
|
|
|
5924
6045
|
],
|
|
5925
6046
|
"description": "Sort order for list operations"
|
|
5926
6047
|
},
|
|
6048
|
+
"RemitImap.SpamReportBulkResult": {
|
|
6049
|
+
"type": "object",
|
|
6050
|
+
"required": [
|
|
6051
|
+
"successCount",
|
|
6052
|
+
"failureCount"
|
|
6053
|
+
],
|
|
6054
|
+
"properties": {
|
|
6055
|
+
"successCount": {
|
|
6056
|
+
"type": "integer",
|
|
6057
|
+
"format": "int32",
|
|
6058
|
+
"description": "Number of items accepted for processing"
|
|
6059
|
+
},
|
|
6060
|
+
"failureCount": {
|
|
6061
|
+
"type": "integer",
|
|
6062
|
+
"format": "int32",
|
|
6063
|
+
"description": "Number of items rejected before processing"
|
|
6064
|
+
},
|
|
6065
|
+
"failures": {
|
|
6066
|
+
"type": "array",
|
|
6067
|
+
"items": {
|
|
6068
|
+
"$ref": "#/components/schemas/RemitImap.SpamReportFailure"
|
|
6069
|
+
},
|
|
6070
|
+
"description": "One entry per message that failed, naming why. Absent or empty when every message succeeded."
|
|
6071
|
+
}
|
|
6072
|
+
},
|
|
6073
|
+
"description": "Result of a report-spam or not-spam bulk call. Extends the standard counts with a reason per failed message: a partial failure here is an expected, routine outcome (a move from a prior press still settling) the client should be able to explain, not just count."
|
|
6074
|
+
},
|
|
6075
|
+
"RemitImap.SpamReportFailure": {
|
|
6076
|
+
"type": "object",
|
|
6077
|
+
"required": [
|
|
6078
|
+
"messageId",
|
|
6079
|
+
"reason"
|
|
6080
|
+
],
|
|
6081
|
+
"properties": {
|
|
6082
|
+
"messageId": {
|
|
6083
|
+
"allOf": [
|
|
6084
|
+
{
|
|
6085
|
+
"$ref": "#/components/schemas/UUID"
|
|
6086
|
+
}
|
|
6087
|
+
],
|
|
6088
|
+
"description": "The message that failed"
|
|
6089
|
+
},
|
|
6090
|
+
"reason": {
|
|
6091
|
+
"type": "string",
|
|
6092
|
+
"description": "Why it failed, safe to show the user as-is. One of a small allowlisted set of user-facing messages (e.g. \"has not settled yet\" while a prior move is still in flight) — never a raw internal error, which is logged server-side instead and never returned here. Not intended to be parsed programmatically."
|
|
6093
|
+
}
|
|
6094
|
+
},
|
|
6095
|
+
"description": "One message's failure reason within a report-spam or not-spam bulk call."
|
|
6096
|
+
},
|
|
5927
6097
|
"RemitImap.StarColor": {
|
|
5928
6098
|
"type": "string",
|
|
5929
6099
|
"enum": [
|
|
@@ -6450,6 +6620,14 @@
|
|
|
6450
6620
|
"$ref": "#/components/schemas/RemitImap.LabelSummaryResponse"
|
|
6451
6621
|
},
|
|
6452
6622
|
"description": "Labels applied to this message — filter-, organize-, and manually-applied alike (issue #26). Absent/empty means no label is applied."
|
|
6623
|
+
},
|
|
6624
|
+
"spamReport": {
|
|
6625
|
+
"allOf": [
|
|
6626
|
+
{
|
|
6627
|
+
"$ref": "#/components/schemas/RemitImap.MessageSpamReport"
|
|
6628
|
+
}
|
|
6629
|
+
],
|
|
6630
|
+
"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."
|
|
6453
6631
|
}
|
|
6454
6632
|
},
|
|
6455
6633
|
"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."
|
|
@@ -6617,6 +6795,13 @@
|
|
|
6617
6795
|
"type": "string",
|
|
6618
6796
|
"description": "HTML email signature"
|
|
6619
6797
|
},
|
|
6798
|
+
"composeLanguages": {
|
|
6799
|
+
"type": "array",
|
|
6800
|
+
"items": {
|
|
6801
|
+
"type": "string"
|
|
6802
|
+
},
|
|
6803
|
+
"description": "BCP 47 language tags this account writes mail in, most-used first (issue #686). Replaces the stored list outright; an empty array clears it."
|
|
6804
|
+
},
|
|
6620
6805
|
"muted": {
|
|
6621
6806
|
"type": "object",
|
|
6622
6807
|
"allOf": [
|