@remit/api-openapi-spec 0.0.5 → 0.0.6
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 +298 -0
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1476,6 +1476,33 @@
|
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
1478
|
},
|
|
1479
|
+
"/me/quarantine": {
|
|
1480
|
+
"get": {
|
|
1481
|
+
"operationId": "MeOperations_listQuarantine",
|
|
1482
|
+
"description": "List every message the sync path could not read, for the current user across all of their mail accounts (issue #72). Backs the quarantine section in settings. Unpaginated: the list is small by design, and an entry is a defect waiting to be reported rather than a page of mail.",
|
|
1483
|
+
"parameters": [],
|
|
1484
|
+
"responses": {
|
|
1485
|
+
"200": {
|
|
1486
|
+
"description": "The request has succeeded.",
|
|
1487
|
+
"content": {
|
|
1488
|
+
"application/json": {
|
|
1489
|
+
"schema": {
|
|
1490
|
+
"$ref": "#/components/schemas/RemitImap.QuarantineListResponse"
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
},
|
|
1496
|
+
"x-amazon-apigateway-integration": {
|
|
1497
|
+
"type": "aws_proxy",
|
|
1498
|
+
"httpMethod": "POST",
|
|
1499
|
+
"passthroughBehavior": "when_no_match",
|
|
1500
|
+
"uri": {
|
|
1501
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1479
1506
|
"/me/vip-suggestions": {
|
|
1480
1507
|
"get": {
|
|
1481
1508
|
"operationId": "MeOperations_listVipSuggestions",
|
|
@@ -4891,6 +4918,269 @@
|
|
|
4891
4918
|
],
|
|
4892
4919
|
"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."
|
|
4893
4920
|
},
|
|
4921
|
+
"RemitImap.QuarantineFailureCode": {
|
|
4922
|
+
"type": "string",
|
|
4923
|
+
"enum": [
|
|
4924
|
+
"UnterminatedMultipartBoundary",
|
|
4925
|
+
"UnknownCharset",
|
|
4926
|
+
"TruncatedBody"
|
|
4927
|
+
],
|
|
4928
|
+
"description": "The specific defect within a stage.\n\nClosed rather than free text: this is the one diagnostic that is interpolated\ninto the title of an issue filed under the user's own GitHub account, so its\npublishability has to be a property of the type instead of a claim about the\nwriter. Grows with the same narrowing that grows QuarantineFailureStage."
|
|
4929
|
+
},
|
|
4930
|
+
"RemitImap.QuarantineFailureStage": {
|
|
4931
|
+
"type": "string",
|
|
4932
|
+
"enum": [
|
|
4933
|
+
"BodyParse"
|
|
4934
|
+
],
|
|
4935
|
+
"description": "The pipeline step that refused a quarantined message.\n\nOne member. No catch site on the sync path can currently tell a parse failure\nfrom an infrastructure failure: the per-message frame in `body-sync.ts` wraps\nthe S3 body write, the parsed-body cache write, the body-part upserts, the\nplacement move and the label and counter writes alongside the `simpleParser`\ncall, and filters only connection drops out of it. A stage is added when a\ntry block is narrowed far enough to attribute it, never ahead of that — an\nenum member that reached stored rows cannot be walked back."
|
|
4936
|
+
},
|
|
4937
|
+
"RemitImap.QuarantineListResponse": {
|
|
4938
|
+
"type": "object",
|
|
4939
|
+
"required": [
|
|
4940
|
+
"entries"
|
|
4941
|
+
],
|
|
4942
|
+
"properties": {
|
|
4943
|
+
"entries": {
|
|
4944
|
+
"type": "array",
|
|
4945
|
+
"items": {
|
|
4946
|
+
"$ref": "#/components/schemas/RemitImap.QuarantineResponse"
|
|
4947
|
+
},
|
|
4948
|
+
"description": "Quarantined messages, newest first."
|
|
4949
|
+
}
|
|
4950
|
+
},
|
|
4951
|
+
"description": "Everything quarantined for the current user, newest first. The list is small by design — a mailbox with a growing quarantine list is a bug being reported, not a page to paginate."
|
|
4952
|
+
},
|
|
4953
|
+
"RemitImap.QuarantineMimeNode": {
|
|
4954
|
+
"type": "object",
|
|
4955
|
+
"required": [
|
|
4956
|
+
"depth",
|
|
4957
|
+
"contentType"
|
|
4958
|
+
],
|
|
4959
|
+
"properties": {
|
|
4960
|
+
"depth": {
|
|
4961
|
+
"type": "integer",
|
|
4962
|
+
"format": "int32",
|
|
4963
|
+
"description": "Nesting level, 0 for the root part."
|
|
4964
|
+
},
|
|
4965
|
+
"contentType": {
|
|
4966
|
+
"allOf": [
|
|
4967
|
+
{
|
|
4968
|
+
"$ref": "#/components/schemas/String140"
|
|
4969
|
+
}
|
|
4970
|
+
],
|
|
4971
|
+
"description": "Media type of this node, `type/subtype`, parameters stripped."
|
|
4972
|
+
}
|
|
4973
|
+
},
|
|
4974
|
+
"description": "One node of a quarantined message's MIME tree, in a pre-order walk.\n\nThe tree is carried flat with an explicit `depth` rather than as nested\nchildren: a self-referential model is not expressible here (the entity\nemitter recurses forever on one), and the tree is only ever rendered as an\nindented list, which a pre-order walk reproduces exactly. Nothing caps the\nwalk — it is as long as the message has parts.\n\n`contentType` is `type/subtype` only. BODYSTRUCTURE hands the type and its\nparameters over separately, so a node is built from `type`/`subtype` and\nnever from a raw content-type line — parameters carry `name=` and\n`filename=`, which name the user's attachments."
|
|
4975
|
+
},
|
|
4976
|
+
"RemitImap.QuarantineResponse": {
|
|
4977
|
+
"type": "object",
|
|
4978
|
+
"required": [
|
|
4979
|
+
"quarantineId",
|
|
4980
|
+
"accountConfigId",
|
|
4981
|
+
"accountId",
|
|
4982
|
+
"mailboxId",
|
|
4983
|
+
"uidValidity",
|
|
4984
|
+
"uid",
|
|
4985
|
+
"mailboxPath",
|
|
4986
|
+
"quarantinedAt",
|
|
4987
|
+
"attempts",
|
|
4988
|
+
"failureStage",
|
|
4989
|
+
"failureCode",
|
|
4990
|
+
"failureMessage",
|
|
4991
|
+
"workerVersion",
|
|
4992
|
+
"structure",
|
|
4993
|
+
"createdAt",
|
|
4994
|
+
"updatedAt"
|
|
4995
|
+
],
|
|
4996
|
+
"properties": {
|
|
4997
|
+
"quarantineId": {
|
|
4998
|
+
"allOf": [
|
|
4999
|
+
{
|
|
5000
|
+
"$ref": "#/components/schemas/UUID"
|
|
5001
|
+
}
|
|
5002
|
+
],
|
|
5003
|
+
"description": "Deterministic v5 identity derived from accountId, mailboxId, uidValidity and uid. Idempotent by construction: the same failing message keys the same row on every retry, so nothing has to check for an existing entry before writing one.",
|
|
5004
|
+
"readOnly": true
|
|
5005
|
+
},
|
|
5006
|
+
"accountConfigId": {
|
|
5007
|
+
"allOf": [
|
|
5008
|
+
{
|
|
5009
|
+
"$ref": "#/components/schemas/UUID"
|
|
5010
|
+
}
|
|
5011
|
+
],
|
|
5012
|
+
"description": "Owning account configuration — the user. Scopes the settings list and the read endpoint.",
|
|
5013
|
+
"readOnly": true
|
|
5014
|
+
},
|
|
5015
|
+
"accountId": {
|
|
5016
|
+
"allOf": [
|
|
5017
|
+
{
|
|
5018
|
+
"$ref": "#/components/schemas/UUID"
|
|
5019
|
+
}
|
|
5020
|
+
],
|
|
5021
|
+
"description": "Mail account the message arrived on. Part of the quarantineId derivation.",
|
|
5022
|
+
"readOnly": true
|
|
5023
|
+
},
|
|
5024
|
+
"mailboxId": {
|
|
5025
|
+
"allOf": [
|
|
5026
|
+
{
|
|
5027
|
+
"$ref": "#/components/schemas/UUID"
|
|
5028
|
+
}
|
|
5029
|
+
],
|
|
5030
|
+
"description": "Mailbox the message arrived in. Part of the quarantineId derivation.",
|
|
5031
|
+
"readOnly": true
|
|
5032
|
+
},
|
|
5033
|
+
"uidValidity": {
|
|
5034
|
+
"type": "integer",
|
|
5035
|
+
"format": "int64",
|
|
5036
|
+
"description": "UIDVALIDITY of the mailbox when the message was set aside. A uid means nothing without it — only uidValidity + uid names a message forever (RFC 9051 2.3.1.1), and a mailbox keeps its mailboxId across a bump, so leaving this out would let a stale entry claim the identity of a later, unrelated message and suppress it from a sync round.",
|
|
5037
|
+
"readOnly": true
|
|
5038
|
+
},
|
|
5039
|
+
"uid": {
|
|
5040
|
+
"type": "integer",
|
|
5041
|
+
"format": "int64",
|
|
5042
|
+
"description": "The IMAP uid that was never written. Part of the quarantineId derivation.",
|
|
5043
|
+
"readOnly": true
|
|
5044
|
+
},
|
|
5045
|
+
"mailboxRole": {
|
|
5046
|
+
"allOf": [
|
|
5047
|
+
{
|
|
5048
|
+
"$ref": "#/components/schemas/RemitImap.CanonicalMailboxRole"
|
|
5049
|
+
}
|
|
5050
|
+
],
|
|
5051
|
+
"description": "Canonical role of the folder the message arrived in — travels in the report. Absent when the user has appointed no role to that folder, which is the normal state for a plain folder. A sentinel would mean a new member on the shared canonical-role enum, which FolderAppointment would then have to mean something by.",
|
|
5052
|
+
"readOnly": true
|
|
5053
|
+
},
|
|
5054
|
+
"mailboxPath": {
|
|
5055
|
+
"allOf": [
|
|
5056
|
+
{
|
|
5057
|
+
"$ref": "#/components/schemas/String512"
|
|
5058
|
+
}
|
|
5059
|
+
],
|
|
5060
|
+
"description": "The user's own folder name. Shown on screen, withheld from the report.",
|
|
5061
|
+
"readOnly": true
|
|
5062
|
+
},
|
|
5063
|
+
"quarantinedAt": {
|
|
5064
|
+
"type": "integer",
|
|
5065
|
+
"format": "int64",
|
|
5066
|
+
"description": "Epoch millis the message was set aside.",
|
|
5067
|
+
"readOnly": true
|
|
5068
|
+
},
|
|
5069
|
+
"attempts": {
|
|
5070
|
+
"type": "integer",
|
|
5071
|
+
"format": "int32",
|
|
5072
|
+
"description": "Rounds tried before the message was set aside.",
|
|
5073
|
+
"readOnly": true
|
|
5074
|
+
},
|
|
5075
|
+
"failureStage": {
|
|
5076
|
+
"allOf": [
|
|
5077
|
+
{
|
|
5078
|
+
"$ref": "#/components/schemas/RemitImap.QuarantineFailureStage"
|
|
5079
|
+
}
|
|
5080
|
+
],
|
|
5081
|
+
"description": "Pipeline step that refused the message.",
|
|
5082
|
+
"readOnly": true
|
|
5083
|
+
},
|
|
5084
|
+
"failureCode": {
|
|
5085
|
+
"allOf": [
|
|
5086
|
+
{
|
|
5087
|
+
"$ref": "#/components/schemas/RemitImap.QuarantineFailureCode"
|
|
5088
|
+
}
|
|
5089
|
+
],
|
|
5090
|
+
"description": "The specific defect. Closed vocabulary, because this is what a filed issue quotes.",
|
|
5091
|
+
"readOnly": true
|
|
5092
|
+
},
|
|
5093
|
+
"failureMessage": {
|
|
5094
|
+
"allOf": [
|
|
5095
|
+
{
|
|
5096
|
+
"$ref": "#/components/schemas/String512"
|
|
5097
|
+
}
|
|
5098
|
+
],
|
|
5099
|
+
"description": "Parser error text. Shown on screen, never in the report.",
|
|
5100
|
+
"readOnly": true
|
|
5101
|
+
},
|
|
5102
|
+
"failurePartPath": {
|
|
5103
|
+
"allOf": [
|
|
5104
|
+
{
|
|
5105
|
+
"$ref": "#/components/schemas/String140"
|
|
5106
|
+
}
|
|
5107
|
+
],
|
|
5108
|
+
"description": "Dot-numbered part path the failure is attributable to, off ROOT_PART_PATH. Absent when the failure belongs to no single node — every whole-body parse failure today.",
|
|
5109
|
+
"readOnly": true
|
|
5110
|
+
},
|
|
5111
|
+
"workerVersion": {
|
|
5112
|
+
"allOf": [
|
|
5113
|
+
{
|
|
5114
|
+
"$ref": "#/components/schemas/String64"
|
|
5115
|
+
}
|
|
5116
|
+
],
|
|
5117
|
+
"description": "Build of the imap-worker that failed to read the message. Named for the worker, not the app: the record is written by the sync worker, and stamping the client build on a backend parse failure points a maintainer at the wrong commit.",
|
|
5118
|
+
"readOnly": true
|
|
5119
|
+
},
|
|
5120
|
+
"contentType": {
|
|
5121
|
+
"allOf": [
|
|
5122
|
+
{
|
|
5123
|
+
"$ref": "#/components/schemas/String140"
|
|
5124
|
+
}
|
|
5125
|
+
],
|
|
5126
|
+
"description": "Top-level Content-Type, `type/subtype` only. Sender-controlled text — escape it wherever it is rendered. Absent together with the other BODYSTRUCTURE-derived fields when the message failed before its structure was read.",
|
|
5127
|
+
"readOnly": true
|
|
5128
|
+
},
|
|
5129
|
+
"transferEncoding": {
|
|
5130
|
+
"allOf": [
|
|
5131
|
+
{
|
|
5132
|
+
"$ref": "#/components/schemas/String64"
|
|
5133
|
+
}
|
|
5134
|
+
],
|
|
5135
|
+
"description": "Content-Transfer-Encoding as declared. Sender-controlled text. Absent when there was no BODYSTRUCTURE to read it from.",
|
|
5136
|
+
"readOnly": true
|
|
5137
|
+
},
|
|
5138
|
+
"charset": {
|
|
5139
|
+
"allOf": [
|
|
5140
|
+
{
|
|
5141
|
+
"$ref": "#/components/schemas/String64"
|
|
5142
|
+
}
|
|
5143
|
+
],
|
|
5144
|
+
"description": "Declared charset. Sender-controlled text. Absent is meaningful: an undeclared charset is a cause in its own right, distinct from a charset nobody recognises.",
|
|
5145
|
+
"readOnly": true
|
|
5146
|
+
},
|
|
5147
|
+
"sizeBytes": {
|
|
5148
|
+
"type": "integer",
|
|
5149
|
+
"format": "int64",
|
|
5150
|
+
"description": "RFC822.SIZE. Separates \"too large\" from \"malformed\". Absent when the FETCH that failed carried no size.",
|
|
5151
|
+
"readOnly": true
|
|
5152
|
+
},
|
|
5153
|
+
"structure": {
|
|
5154
|
+
"type": "array",
|
|
5155
|
+
"items": {
|
|
5156
|
+
"$ref": "#/components/schemas/RemitImap.QuarantineMimeNode"
|
|
5157
|
+
},
|
|
5158
|
+
"description": "The MIME tree, structure only, as a pre-order walk. The one field here that cannot be a column, because it is a tree; every other message-shape field is flat and stays typed. Empty when the message failed before its BODYSTRUCTURE was read.",
|
|
5159
|
+
"default": [],
|
|
5160
|
+
"readOnly": true
|
|
5161
|
+
},
|
|
5162
|
+
"messageIdHash": {
|
|
5163
|
+
"allOf": [
|
|
5164
|
+
{
|
|
5165
|
+
"$ref": "#/components/schemas/String140"
|
|
5166
|
+
}
|
|
5167
|
+
],
|
|
5168
|
+
"description": "SHA-256 of the Message-ID, `sha256:` prefixed. Pinned to one algorithm: correlating two reports of the same message is the whole point of the field, and two builds hashing differently make it useless. Absent when the message declared no Message-ID — a hash of the empty string would make every such message correlate with every other, which is worse than no value at all.",
|
|
5169
|
+
"readOnly": true
|
|
5170
|
+
},
|
|
5171
|
+
"createdAt": {
|
|
5172
|
+
"type": "integer",
|
|
5173
|
+
"format": "int64",
|
|
5174
|
+
"readOnly": true
|
|
5175
|
+
},
|
|
5176
|
+
"updatedAt": {
|
|
5177
|
+
"type": "integer",
|
|
5178
|
+
"format": "int64",
|
|
5179
|
+
"readOnly": true
|
|
5180
|
+
}
|
|
5181
|
+
},
|
|
5182
|
+
"description": "One quarantined message as the settings surface sees it."
|
|
5183
|
+
},
|
|
4894
5184
|
"RemitImap.RawMessageResponse": {
|
|
4895
5185
|
"type": "object",
|
|
4896
5186
|
"required": [
|
|
@@ -5887,6 +6177,10 @@
|
|
|
5887
6177
|
],
|
|
5888
6178
|
"description": "Sender is wellknown: engagement counters crossed the promotion threshold"
|
|
5889
6179
|
},
|
|
6180
|
+
"String140": {
|
|
6181
|
+
"type": "string",
|
|
6182
|
+
"maxLength": 140
|
|
6183
|
+
},
|
|
5890
6184
|
"String256": {
|
|
5891
6185
|
"type": "string",
|
|
5892
6186
|
"maxLength": 256
|
|
@@ -5895,6 +6189,10 @@
|
|
|
5895
6189
|
"type": "string",
|
|
5896
6190
|
"maxLength": 512
|
|
5897
6191
|
},
|
|
6192
|
+
"String64": {
|
|
6193
|
+
"type": "string",
|
|
6194
|
+
"maxLength": 64
|
|
6195
|
+
},
|
|
5898
6196
|
"String800": {
|
|
5899
6197
|
"type": "string",
|
|
5900
6198
|
"maxLength": 800
|