@remit/api-openapi-spec 0.0.56 → 0.0.58

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 +93 -1
  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 one code only this endpoint can answer with.\n\n`code: \"folder_role_unresolved\"` — as everywhere else, with `details` carrying `role`, `accountId` and `reason`.\n\n`code: \"mailbox_not_settled\"` — the mailbox being appointed is still being created or deleted on the mail server, so it cannot yet hold a role. `details` carries `mailboxId` and `syncStatus`. Clearing a role is never refused this way.",
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": {
@@ -1453,6 +1483,7 @@
1453
1483
  },
1454
1484
  "patch": {
1455
1485
  "operationId": "MailboxDetailOperations_renameMailbox",
1486
+ "description": "Rename a folder, or dismiss a folder mutation that failed. `fullPath` records the rename target over the folder and everything under it; the folder keeps the path the mail server holds until the rename lands. A `fullPath` equal to the folder's current one is a dismissal: it clears a failed rename or delete and enqueues nothing. Refused with 400 for INBOX at either end, a name reserved for a system folder, and a name another folder already has; with 409 when a mutation is already in flight on the folder or on anything inside it.",
1456
1487
  "parameters": [
1457
1488
  {
1458
1489
  "name": "accountId",
@@ -1482,6 +1513,16 @@
1482
1513
  }
1483
1514
  }
1484
1515
  },
1516
+ "400": {
1517
+ "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.",
1518
+ "content": {
1519
+ "application/json": {
1520
+ "schema": {
1521
+ "$ref": "#/components/schemas/ValidationError"
1522
+ }
1523
+ }
1524
+ }
1525
+ },
1485
1526
  "401": {
1486
1527
  "description": "The request carried no usable credential. `code` is `unauthorized`.",
1487
1528
  "content": {
@@ -1511,6 +1552,16 @@
1511
1552
  }
1512
1553
  }
1513
1554
  }
1555
+ },
1556
+ "409": {
1557
+ "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`.",
1558
+ "content": {
1559
+ "application/json": {
1560
+ "schema": {
1561
+ "$ref": "#/components/schemas/ApiError"
1562
+ }
1563
+ }
1564
+ }
1514
1565
  }
1515
1566
  },
1516
1567
  "requestBody": {
@@ -1534,6 +1585,7 @@
1534
1585
  },
1535
1586
  "delete": {
1536
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.",
1537
1589
  "parameters": [
1538
1590
  {
1539
1591
  "name": "accountId",
@@ -1556,6 +1608,16 @@
1556
1608
  "204": {
1557
1609
  "description": "Nothing to return. The request succeeded and the response carries no body."
1558
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
+ },
1559
1621
  "401": {
1560
1622
  "description": "The request carried no usable credential. `code` is `unauthorized`.",
1561
1623
  "content": {
@@ -1585,6 +1647,16 @@
1585
1647
  }
1586
1648
  }
1587
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
+ }
1588
1660
  }
1589
1661
  },
1590
1662
  "x-amazon-apigateway-integration": {
@@ -4214,6 +4286,16 @@
4214
4286
  }
4215
4287
  }
4216
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
+ }
4217
4299
  }
4218
4300
  },
4219
4301
  "requestBody": {
@@ -4501,6 +4583,16 @@
4501
4583
  }
4502
4584
  }
4503
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
+ }
4504
4596
  }
4505
4597
  },
4506
4598
  "requestBody": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",