@remit/api-openapi-types 0.0.33 → 0.0.35

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/package.json +1 -1
  2. package/types.d.ts +26 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -69,6 +69,10 @@ writer can reach is a vocabulary that lies about what the field means.
69
69
  * Phase of the initial account sync lifecycle
70
70
  */
71
71
  export type SyncPhase = "idle" | "discovering_mailboxes" | "syncing_inbox" | "syncing_others" | "complete" | "error";
72
+ /**
73
+ * 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.
74
+ */
75
+ export type FolderAppointmentSource = "Appointed" | "Flagged" | "Reserved" | "Proposed" | "Stale" | "None";
72
76
  /**
73
77
  * Outcome of the most recent manifest check. `ok` when a manifest was fetched and validated, `failed` when it could not be, `disabled` when no manifest URL is configured or no check has ever run (RFC 037 D8).
74
78
  */
@@ -244,7 +248,7 @@ distinguishable from a network failure without parsing prose.
244
248
  /**
245
249
  * Known user-setting keys. Each maps, in the registry, to a required value kind and a zod schema. New keys are added deliberately by extending this enum and the registry — never as an ad-hoc column.
246
250
  */
247
- export type AccountSettingName = "Theme" | "Density" | "DefaultComposerFormat" | "PinnedFolders" | "AccountSignaturePlainText" | "AccountSignatureHtml" | "AccountDisplayName" | "AccountMuted" | "AccountComposeLanguages" | "MailboxDisplayName" | "MailboxMuted" | "FolderRoleAppointment" | "MailboxRole";
251
+ export type AccountSettingName = "Theme" | "Density" | "DefaultComposerFormat" | "PinnedFolders" | "AccountSignaturePlainText" | "AccountSignatureHtml" | "AccountDisplayName" | "AccountMuted" | "AccountComposeLanguages" | "MailboxDisplayName" | "MailboxMuted" | "FolderRoleAppointment" | "FolderRoleAppointmentLabel" | "MailboxRole";
248
252
  /**
249
253
  * Explicit state engine for a pending placement-move marker (issue #1271, epic #1281). Recovery keys off this field, not control-flow inference: a redelivered/retried call drives a marker forward from whichever state it is actually in, rather than re-deriving intent by comparing the message's current location.
250
254
  */
@@ -1171,9 +1175,21 @@ never from a raw content-type line — parameters carry `name=` and
1171
1175
  */
1172
1176
  role: CanonicalMailboxRole;
1173
1177
  /**
1174
- * 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.
1178
+ * 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.
1179
+ */
1180
+ source: FolderAppointmentSource;
1181
+ /**
1182
+ * The mailbox this role resolves to. Absent when resolution names none — `source: None`, or a `Stale` appointment with nothing to fall back to.
1175
1183
  */
1176
1184
  mailboxId?: UUID;
1185
+ /**
1186
+ * 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.
1187
+ */
1188
+ staleAppointmentMailboxId?: UUID;
1189
+ /**
1190
+ * 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.
1191
+ */
1192
+ staleAppointmentPath?: String512;
1177
1193
  }
1178
1194
  /**
1179
1195
  * The self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. One read serves every interface state. The check block and the run block are independent by construction (RFC 037 D7).
@@ -4770,6 +4786,9 @@ declare namespace Paths {
4770
4786
  }
4771
4787
  }
4772
4788
  namespace GetSystemUpdate {
4789
+ export interface QueryParameters {
4790
+ refresh?: boolean;
4791
+ }
4773
4792
  namespace Responses {
4774
4793
  export type $200 = void;
4775
4794
  }
@@ -5308,10 +5327,10 @@ export interface OperationMethods {
5308
5327
  config?: AxiosRequestConfig
5309
5328
  ): OperationResponse<Paths.GetConfig.Responses.$200>;
5310
5329
  /**
5311
- * getSystemUpdate - 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).
5330
+ * getSystemUpdate - 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).
5312
5331
  */
5313
5332
  'getSystemUpdate'(
5314
- parameters?: Parameters<UnknownParamsObject> | null,
5333
+ parameters?: Parameters<Paths.GetSystemUpdate.QueryParameters> | null,
5315
5334
  data?: any,
5316
5335
  config?: AxiosRequestConfig
5317
5336
  ): OperationResponse<Paths.GetSystemUpdate.Responses.$200>;
@@ -5836,10 +5855,10 @@ export interface PathsDictionary {
5836
5855
  };
5837
5856
  ['/system/update']: {
5838
5857
  /**
5839
- * getSystemUpdate - 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).
5858
+ * getSystemUpdate - 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).
5840
5859
  */
5841
5860
  'get'(
5842
- parameters?: Parameters<UnknownParamsObject> | null,
5861
+ parameters?: Parameters<Paths.GetSystemUpdate.QueryParameters> | null,
5843
5862
  data?: any,
5844
5863
  config?: AxiosRequestConfig
5845
5864
  ): OperationResponse<Paths.GetSystemUpdate.Responses.$200>;
@@ -6537,6 +6556,7 @@ export type AccountConfigState = Components.Schemas.AccountConfigState;
6537
6556
  export type AccountAuthType = Components.Schemas.AccountAuthType;
6538
6557
  export type ConnectionState = Components.Schemas.ConnectionState;
6539
6558
  export type SyncPhase = Components.Schemas.SyncPhase;
6559
+ export type FolderAppointmentSource = Components.Schemas.FolderAppointmentSource;
6540
6560
  export type SystemUpdateCheckStatus = Components.Schemas.SystemUpdateCheckStatus;
6541
6561
  export type SystemUpdatePhase = Components.Schemas.SystemUpdatePhase;
6542
6562
  export type SystemUpdateOutcome = Components.Schemas.SystemUpdateOutcome;