@remit/api-openapi-spec 0.0.57 → 0.0.59
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 +73 -2
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -526,6 +526,16 @@
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
+
},
|
|
530
|
+
"422": {
|
|
531
|
+
"description": "The write binds a durable reference — a role appointment, a filter's move target, a message's destination — to a folder whose own mutation has not settled, so the reference would point at something that may never exist.\n\n`code: \"mailbox_not_settled\"` — `details` carries `mailboxId` and `syncStatus`, one of `pending` (the mail server has not confirmed the folder yet), `deleting` (it is on its way out) or `failed` (its last rename or delete did not land, and the user has a retry or a dismissal to make first). Clearing a reference is never refused this way, and neither is moving mail *out of* such a folder.\n\n422 rather than a second 409: 409 means somebody else is changing this folder right now and the client should refresh, which is different copy and a different remedy.",
|
|
532
|
+
"content": {
|
|
533
|
+
"application/json": {
|
|
534
|
+
"schema": {
|
|
535
|
+
"$ref": "#/components/schemas/ApiError"
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
529
539
|
}
|
|
530
540
|
},
|
|
531
541
|
"requestBody": {
|
|
@@ -670,6 +680,16 @@
|
|
|
670
680
|
}
|
|
671
681
|
}
|
|
672
682
|
}
|
|
683
|
+
},
|
|
684
|
+
"422": {
|
|
685
|
+
"description": "The write binds a durable reference — a role appointment, a filter's move target, a message's destination — to a folder whose own mutation has not settled, so the reference would point at something that may never exist.\n\n`code: \"mailbox_not_settled\"` — `details` carries `mailboxId` and `syncStatus`, one of `pending` (the mail server has not confirmed the folder yet), `deleting` (it is on its way out) or `failed` (its last rename or delete did not land, and the user has a retry or a dismissal to make first). Clearing a reference is never refused this way, and neither is moving mail *out of* such a folder.\n\n422 rather than a second 409: 409 means somebody else is changing this folder right now and the client should refresh, which is different copy and a different remedy.",
|
|
686
|
+
"content": {
|
|
687
|
+
"application/json": {
|
|
688
|
+
"schema": {
|
|
689
|
+
"$ref": "#/components/schemas/ApiError"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
673
693
|
}
|
|
674
694
|
},
|
|
675
695
|
"requestBody": {
|
|
@@ -820,7 +840,17 @@
|
|
|
820
840
|
}
|
|
821
841
|
},
|
|
822
842
|
"409": {
|
|
823
|
-
"description": "The same flat 409 body as `FolderRoleConflict`, with
|
|
843
|
+
"description": "The same flat 409 body as `FolderRoleConflict`, with the codes only this endpoint can answer with.\n\n`code: \"folder_role_unresolved\"` — as everywhere else, with `details` carrying `role`, `accountId` and `reason`.",
|
|
844
|
+
"content": {
|
|
845
|
+
"application/json": {
|
|
846
|
+
"schema": {
|
|
847
|
+
"$ref": "#/components/schemas/ApiError"
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"422": {
|
|
853
|
+
"description": "The write binds a durable reference — a role appointment, a filter's move target, a message's destination — to a folder whose own mutation has not settled, so the reference would point at something that may never exist.\n\n`code: \"mailbox_not_settled\"` — `details` carries `mailboxId` and `syncStatus`, one of `pending` (the mail server has not confirmed the folder yet), `deleting` (it is on its way out) or `failed` (its last rename or delete did not land, and the user has a retry or a dismissal to make first). Clearing a reference is never refused this way, and neither is moving mail *out of* such a folder.\n\n422 rather than a second 409: 409 means somebody else is changing this folder right now and the client should refresh, which is different copy and a different remedy.",
|
|
824
854
|
"content": {
|
|
825
855
|
"application/json": {
|
|
826
856
|
"schema": {
|
|
@@ -1555,6 +1585,7 @@
|
|
|
1555
1585
|
},
|
|
1556
1586
|
"delete": {
|
|
1557
1587
|
"operationId": "MailboxDetailOperations_deleteMailbox",
|
|
1588
|
+
"description": "Record a delete intent for a folder. The folder stays listed, marked as being deleted, until the mail server confirms it and its mail goes with it. Refused with 400 for INBOX, for a folder with folders inside it, and for a folder a filter or a canonical role is bound to — the message names each binding; with 409 when a mutation is already in flight on it.",
|
|
1558
1589
|
"parameters": [
|
|
1559
1590
|
{
|
|
1560
1591
|
"name": "accountId",
|
|
@@ -1577,6 +1608,16 @@
|
|
|
1577
1608
|
"204": {
|
|
1578
1609
|
"description": "Nothing to return. The request succeeded and the response carries no body."
|
|
1579
1610
|
},
|
|
1611
|
+
"400": {
|
|
1612
|
+
"description": "The request was refused as malformed or contradictory. `code` is\n`invalid_request` where nothing more specific is known, and the refusal's own\ntoken where there is one.\n\nThe calendar surface answers with the reason it read the request by:\n`invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,\n`unknown_time_zone` and `default_calendar_undeletable` on the collection and\nthe query, and, for a VCALENDAR it could not accept,\n`malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,\n`no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,\n`missing_dt_start`, `backwards_end`, `invalid_date_time`,\n`invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring` and\n`unknown_occurrence`.\n\n`errors` is present only when the request failed schema validation before any\nhandler ran, and names every field that was refused.",
|
|
1613
|
+
"content": {
|
|
1614
|
+
"application/json": {
|
|
1615
|
+
"schema": {
|
|
1616
|
+
"$ref": "#/components/schemas/ValidationError"
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1580
1621
|
"401": {
|
|
1581
1622
|
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
1582
1623
|
"content": {
|
|
@@ -1606,6 +1647,16 @@
|
|
|
1606
1647
|
}
|
|
1607
1648
|
}
|
|
1608
1649
|
}
|
|
1650
|
+
},
|
|
1651
|
+
"409": {
|
|
1652
|
+
"description": "The request contradicts the state the resource is in. `code` is `conflict`\nunless the refusal names its own — see `FolderRoleConflict`,\n`MessagePlacementConflict` and `ConfigImportConflict`.",
|
|
1653
|
+
"content": {
|
|
1654
|
+
"application/json": {
|
|
1655
|
+
"schema": {
|
|
1656
|
+
"$ref": "#/components/schemas/ApiError"
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1609
1660
|
}
|
|
1610
1661
|
},
|
|
1611
1662
|
"x-amazon-apigateway-integration": {
|
|
@@ -2452,7 +2503,7 @@
|
|
|
2452
2503
|
"name": "recurrenceId",
|
|
2453
2504
|
"in": "query",
|
|
2454
2505
|
"required": false,
|
|
2455
|
-
"description": "RECURRENCE-ID of the occurrence the update is anchored at, as the ISO 8601 UTC instant a listing returned. Required for `This` and `Following`.",
|
|
2506
|
+
"description": "RECURRENCE-ID of the occurrence the update is anchored at, as the ISO 8601 UTC instant a listing returned. Required for `This` and `Following`. Optional for `All`, where it names the occurrence the edit was made from: a start or end in the patch is that occurrence's new time, and the whole series moves by as much.",
|
|
2456
2507
|
"schema": {
|
|
2457
2508
|
"type": "string"
|
|
2458
2509
|
}
|
|
@@ -4235,6 +4286,16 @@
|
|
|
4235
4286
|
}
|
|
4236
4287
|
}
|
|
4237
4288
|
}
|
|
4289
|
+
},
|
|
4290
|
+
"422": {
|
|
4291
|
+
"description": "The write binds a durable reference — a role appointment, a filter's move target, a message's destination — to a folder whose own mutation has not settled, so the reference would point at something that may never exist.\n\n`code: \"mailbox_not_settled\"` — `details` carries `mailboxId` and `syncStatus`, one of `pending` (the mail server has not confirmed the folder yet), `deleting` (it is on its way out) or `failed` (its last rename or delete did not land, and the user has a retry or a dismissal to make first). Clearing a reference is never refused this way, and neither is moving mail *out of* such a folder.\n\n422 rather than a second 409: 409 means somebody else is changing this folder right now and the client should refresh, which is different copy and a different remedy.",
|
|
4292
|
+
"content": {
|
|
4293
|
+
"application/json": {
|
|
4294
|
+
"schema": {
|
|
4295
|
+
"$ref": "#/components/schemas/ApiError"
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4238
4299
|
}
|
|
4239
4300
|
},
|
|
4240
4301
|
"requestBody": {
|
|
@@ -4522,6 +4583,16 @@
|
|
|
4522
4583
|
}
|
|
4523
4584
|
}
|
|
4524
4585
|
}
|
|
4586
|
+
},
|
|
4587
|
+
"422": {
|
|
4588
|
+
"description": "The write binds a durable reference — a role appointment, a filter's move target, a message's destination — to a folder whose own mutation has not settled, so the reference would point at something that may never exist.\n\n`code: \"mailbox_not_settled\"` — `details` carries `mailboxId` and `syncStatus`, one of `pending` (the mail server has not confirmed the folder yet), `deleting` (it is on its way out) or `failed` (its last rename or delete did not land, and the user has a retry or a dismissal to make first). Clearing a reference is never refused this way, and neither is moving mail *out of* such a folder.\n\n422 rather than a second 409: 409 means somebody else is changing this folder right now and the client should refresh, which is different copy and a different remedy.",
|
|
4589
|
+
"content": {
|
|
4590
|
+
"application/json": {
|
|
4591
|
+
"schema": {
|
|
4592
|
+
"$ref": "#/components/schemas/ApiError"
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
}
|
|
4525
4596
|
}
|
|
4526
4597
|
},
|
|
4527
4598
|
"requestBody": {
|