@remit/api-openapi-spec 0.0.57 → 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 +72 -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": {
@@ -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": {
@@ -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": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",