@remit/api-openapi-spec 0.0.30 → 0.0.31

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 +39 -2
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -4784,7 +4784,8 @@
4784
4784
  "RemitImap.FolderAppointment": {
4785
4785
  "type": "object",
4786
4786
  "required": [
4787
- "role"
4787
+ "role",
4788
+ "source"
4788
4789
  ],
4789
4790
  "properties": {
4790
4791
  "role": {
@@ -4795,17 +4796,53 @@
4795
4796
  ],
4796
4797
  "description": "Which canonical role this entry fills."
4797
4798
  },
4799
+ "source": {
4800
+ "allOf": [
4801
+ {
4802
+ "$ref": "#/components/schemas/RemitImap.FolderAppointmentSource"
4803
+ }
4804
+ ],
4805
+ "description": "Where `mailboxId` came from. Read this rather than inferring provenance from the shape of the entry: only `Appointed` means a person decided, and only `Appointed` and `Flagged` are evidence strong enough to destroy mail with."
4806
+ },
4798
4807
  "mailboxId": {
4799
4808
  "allOf": [
4800
4809
  {
4801
4810
  "$ref": "#/components/schemas/UUID"
4802
4811
  }
4803
4812
  ],
4804
- "description": "The mailbox appointed to the role. Absent when the role is unfilled either nothing was detected yet, or the account genuinely has no such folder. When absent on a GET, this is a server-proposed best guess (SPECIAL-USE flag, then the reserved INBOX name, then a weak name hint) rather than a user's persisted choice; it becomes persisted only once the user calls appointFolderRole."
4813
+ "description": "The mailbox this role resolves to. Absent when resolution names none`source: None`, or a `Stale` appointment with nothing to fall back to."
4814
+ },
4815
+ "staleAppointmentMailboxId": {
4816
+ "allOf": [
4817
+ {
4818
+ "$ref": "#/components/schemas/UUID"
4819
+ }
4820
+ ],
4821
+ "description": "The mailbox the user appointed, when the account no longer holds it. Present exactly when `source` is `Stale`; the appointment is kept rather than collected, so the user can repair it instead of silently losing the choice."
4822
+ },
4823
+ "staleAppointmentPath": {
4824
+ "allOf": [
4825
+ {
4826
+ "$ref": "#/components/schemas/String512"
4827
+ }
4828
+ ],
4829
+ "description": "The path that stale mailbox last had, recorded beside the appointment when it was made. Display only — resolution never reads it — and present only alongside `staleAppointmentMailboxId`, and only for an appointment made after the path was first recorded."
4805
4830
  }
4806
4831
  },
4807
4832
  "description": "Per-account appointment of a canonical role to at most one mailbox (RFC 032 exclusive-folder-appointment, issue #976). A role with no `mailboxId` is unfilled — either genuinely unappointed, or the account has no matching folder yet. Persisted as per-(account, role) AccountSetting rows (RFC 032 settings tiers), surfaced on AccountResponse.folderAppointments — never on the Mailbox entity, so two folders can never both claim the same role."
4808
4833
  },
4834
+ "RemitImap.FolderAppointmentSource": {
4835
+ "type": "string",
4836
+ "enum": [
4837
+ "Appointed",
4838
+ "Flagged",
4839
+ "Reserved",
4840
+ "Proposed",
4841
+ "Stale",
4842
+ "None"
4843
+ ],
4844
+ "description": "Where a resolved FolderAppointment came from. Total and required: every role carries one, so a surface can tell a folder somebody chose from a folder reader guessed without inferring it from which fields happen to be present."
4845
+ },
4809
4846
  "RemitImap.JunkOnlyFlag": {
4810
4847
  "type": "object",
4811
4848
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",