@remit/api-openapi-spec 0.0.30 → 0.0.32

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 +51 -4
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -2693,8 +2693,18 @@
2693
2693
  "/system/update": {
2694
2694
  "get": {
2695
2695
  "operationId": "SystemOperations_getSystemUpdate",
2696
- "description": "Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).",
2697
- "parameters": [],
2696
+ "description": "Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).",
2697
+ "parameters": [
2698
+ {
2699
+ "name": "refresh",
2700
+ "in": "query",
2701
+ "required": false,
2702
+ "schema": {
2703
+ "type": "boolean"
2704
+ },
2705
+ "explode": false
2706
+ }
2707
+ ],
2698
2708
  "responses": {
2699
2709
  "200": {
2700
2710
  "description": "The request has succeeded.",
@@ -4784,7 +4794,8 @@
4784
4794
  "RemitImap.FolderAppointment": {
4785
4795
  "type": "object",
4786
4796
  "required": [
4787
- "role"
4797
+ "role",
4798
+ "source"
4788
4799
  ],
4789
4800
  "properties": {
4790
4801
  "role": {
@@ -4795,17 +4806,53 @@
4795
4806
  ],
4796
4807
  "description": "Which canonical role this entry fills."
4797
4808
  },
4809
+ "source": {
4810
+ "allOf": [
4811
+ {
4812
+ "$ref": "#/components/schemas/RemitImap.FolderAppointmentSource"
4813
+ }
4814
+ ],
4815
+ "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."
4816
+ },
4798
4817
  "mailboxId": {
4799
4818
  "allOf": [
4800
4819
  {
4801
4820
  "$ref": "#/components/schemas/UUID"
4802
4821
  }
4803
4822
  ],
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."
4823
+ "description": "The mailbox this role resolves to. Absent when resolution names none`source: None`, or a `Stale` appointment with nothing to fall back to."
4824
+ },
4825
+ "staleAppointmentMailboxId": {
4826
+ "allOf": [
4827
+ {
4828
+ "$ref": "#/components/schemas/UUID"
4829
+ }
4830
+ ],
4831
+ "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."
4832
+ },
4833
+ "staleAppointmentPath": {
4834
+ "allOf": [
4835
+ {
4836
+ "$ref": "#/components/schemas/String512"
4837
+ }
4838
+ ],
4839
+ "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
4840
  }
4806
4841
  },
4807
4842
  "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
4843
  },
4844
+ "RemitImap.FolderAppointmentSource": {
4845
+ "type": "string",
4846
+ "enum": [
4847
+ "Appointed",
4848
+ "Flagged",
4849
+ "Reserved",
4850
+ "Proposed",
4851
+ "Stale",
4852
+ "None"
4853
+ ],
4854
+ "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."
4855
+ },
4809
4856
  "RemitImap.JunkOnlyFlag": {
4810
4857
  "type": "object",
4811
4858
  "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.32",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",