@remit/api-openapi-spec 0.0.34 → 0.0.36
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 +58 -1
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -1440,6 +1440,33 @@
|
|
|
1440
1440
|
}
|
|
1441
1441
|
}
|
|
1442
1442
|
},
|
|
1443
|
+
"/config/export": {
|
|
1444
|
+
"get": {
|
|
1445
|
+
"operationId": "ConfigOperations_exportConfig",
|
|
1446
|
+
"description": "Export every configured setting for the caller as one versioned JSON document. Contains no credentials: no IMAP/SMTP password and no OAuth token, encrypted or otherwise, and the credential fields are structurally absent rather than blank. The document's own shape is not defined here - it is defined by the published JSON Schema for its `schemaVersion` (build/config-schema/reader-config.v<N>.schema.json), so a file keeps validating independent of this API's models.",
|
|
1447
|
+
"parameters": [],
|
|
1448
|
+
"responses": {
|
|
1449
|
+
"200": {
|
|
1450
|
+
"description": "The request has succeeded.",
|
|
1451
|
+
"content": {
|
|
1452
|
+
"application/json": {
|
|
1453
|
+
"schema": {
|
|
1454
|
+
"$ref": "#/components/schemas/RemitImap.ConfigExportResponse"
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
},
|
|
1460
|
+
"x-amazon-apigateway-integration": {
|
|
1461
|
+
"type": "aws_proxy",
|
|
1462
|
+
"httpMethod": "POST",
|
|
1463
|
+
"passthroughBehavior": "when_no_match",
|
|
1464
|
+
"uri": {
|
|
1465
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1443
1470
|
"/mailboxes/{mailboxId}/threads": {
|
|
1444
1471
|
"get": {
|
|
1445
1472
|
"operationId": "ThreadOperations_listThreads",
|
|
@@ -1849,6 +1876,16 @@
|
|
|
1849
1876
|
}
|
|
1850
1877
|
}
|
|
1851
1878
|
}
|
|
1879
|
+
},
|
|
1880
|
+
"409": {
|
|
1881
|
+
"description": "The same flat 409 body, for a message whose folder and uid do not name the same message.\n\n`code: \"message_placement_unsettled\"` — the message is mid-move, so its row names the destination folder while its uid still belongs to the source; acting on that pair would hit whatever the destination holds at that uid. `details` carries `accountId`, `messageId` and `reason`, one of: `in_flight` (the move is still running, and the same request succeeds once it confirms) or `unverified` (the move gave up without confirming, so where the message sits is unknown until the folder is resynced).",
|
|
1882
|
+
"content": {
|
|
1883
|
+
"application/json": {
|
|
1884
|
+
"schema": {
|
|
1885
|
+
"$ref": "#/components/schemas/ApiError"
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1852
1889
|
}
|
|
1853
1890
|
},
|
|
1854
1891
|
"requestBody": {
|
|
@@ -1888,7 +1925,7 @@
|
|
|
1888
1925
|
}
|
|
1889
1926
|
},
|
|
1890
1927
|
"409": {
|
|
1891
|
-
"description": "
|
|
1928
|
+
"description": "The same flat 409 body, with the two codes this endpoint can answer with.\n\n`code: \"folder_role_unresolved\"` — as everywhere else, with `details` carrying `role`, `accountId` and `reason`.\n\n`code: \"message_placement_unsettled\"` — as `MessagePlacementConflict`, with `details` carrying `accountId`, `messageId` and `reason`.",
|
|
1892
1929
|
"content": {
|
|
1893
1930
|
"application/json": {
|
|
1894
1931
|
"schema": {
|
|
@@ -3988,6 +4025,26 @@
|
|
|
3988
4025
|
},
|
|
3989
4026
|
"description": "Full configuration description including accounts"
|
|
3990
4027
|
},
|
|
4028
|
+
"RemitImap.ConfigExportResponse": {
|
|
4029
|
+
"type": "object",
|
|
4030
|
+
"required": [
|
|
4031
|
+
"schemaVersion",
|
|
4032
|
+
"document"
|
|
4033
|
+
],
|
|
4034
|
+
"properties": {
|
|
4035
|
+
"schemaVersion": {
|
|
4036
|
+
"type": "integer",
|
|
4037
|
+
"format": "int32",
|
|
4038
|
+
"description": "Schema version of the document below"
|
|
4039
|
+
},
|
|
4040
|
+
"document": {
|
|
4041
|
+
"type": "object",
|
|
4042
|
+
"additionalProperties": {},
|
|
4043
|
+
"description": "The config document. Opaque here; the JSON Schema for `schemaVersion` is its contract."
|
|
4044
|
+
}
|
|
4045
|
+
},
|
|
4046
|
+
"description": "A configuration export: one versioned document carrying every user decision this instance holds, and no credential."
|
|
4047
|
+
},
|
|
3991
4048
|
"RemitImap.ConnectionState": {
|
|
3992
4049
|
"type": "string",
|
|
3993
4050
|
"enum": [
|