@remit/api-openapi-spec 0.0.35 → 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.
Files changed (2) hide show
  1. package/openapi.json +11 -1
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -1876,6 +1876,16 @@
1876
1876
  }
1877
1877
  }
1878
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
+ }
1879
1889
  }
1880
1890
  },
1881
1891
  "requestBody": {
@@ -1915,7 +1925,7 @@
1915
1925
  }
1916
1926
  },
1917
1927
  "409": {
1918
- "description": "An action was refused because the folder role it needs is not settled. The body is flat: `code`, `message` and `details` sit at the top level, which is what the API emits. Clients branch on `code` and word their prompt from `details`, never from `message`.\n\n`code: \"folder_role_unresolved\"` — no folder holds the role this action needs. `details` carries `role`, `accountId`, and `reason`, one of: `none` (the account has no candidate folder), `stale` (the folder the user appointed is gone from the mail server), `unconfirmed` (a folder matches by name, but neither the user nor the server's own flag ever said it holds the role).",
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`.",
1919
1929
  "content": {
1920
1930
  "application/json": {
1921
1931
  "schema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",