@remit/api-openapi-spec 0.0.33 → 0.0.35

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.
Files changed (2) hide show
  1. package/openapi.json +77 -0
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -339,6 +339,16 @@
339
339
  }
340
340
  }
341
341
  }
342
+ },
343
+ "400": {
344
+ "description": "Validation error response",
345
+ "content": {
346
+ "application/json": {
347
+ "schema": {
348
+ "$ref": "#/components/schemas/ApiError"
349
+ }
350
+ }
351
+ }
342
352
  }
343
353
  },
344
354
  "requestBody": {
@@ -1044,6 +1054,16 @@
1044
1054
  }
1045
1055
  }
1046
1056
  }
1057
+ },
1058
+ "400": {
1059
+ "description": "Validation error response",
1060
+ "content": {
1061
+ "application/json": {
1062
+ "schema": {
1063
+ "$ref": "#/components/schemas/ApiError"
1064
+ }
1065
+ }
1066
+ }
1047
1067
  }
1048
1068
  },
1049
1069
  "requestBody": {
@@ -1090,6 +1110,16 @@
1090
1110
  }
1091
1111
  }
1092
1112
  }
1113
+ },
1114
+ "400": {
1115
+ "description": "Validation error response",
1116
+ "content": {
1117
+ "application/json": {
1118
+ "schema": {
1119
+ "$ref": "#/components/schemas/ApiError"
1120
+ }
1121
+ }
1122
+ }
1093
1123
  }
1094
1124
  },
1095
1125
  "requestBody": {
@@ -1410,6 +1440,33 @@
1410
1440
  }
1411
1441
  }
1412
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
+ },
1413
1470
  "/mailboxes/{mailboxId}/threads": {
1414
1471
  "get": {
1415
1472
  "operationId": "ThreadOperations_listThreads",
@@ -3958,6 +4015,26 @@
3958
4015
  },
3959
4016
  "description": "Full configuration description including accounts"
3960
4017
  },
4018
+ "RemitImap.ConfigExportResponse": {
4019
+ "type": "object",
4020
+ "required": [
4021
+ "schemaVersion",
4022
+ "document"
4023
+ ],
4024
+ "properties": {
4025
+ "schemaVersion": {
4026
+ "type": "integer",
4027
+ "format": "int32",
4028
+ "description": "Schema version of the document below"
4029
+ },
4030
+ "document": {
4031
+ "type": "object",
4032
+ "additionalProperties": {},
4033
+ "description": "The config document. Opaque here; the JSON Schema for `schemaVersion` is its contract."
4034
+ }
4035
+ },
4036
+ "description": "A configuration export: one versioned document carrying every user decision this instance holds, and no credential."
4037
+ },
3961
4038
  "RemitImap.ConnectionState": {
3962
4039
  "type": "string",
3963
4040
  "enum": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",