@remit/api-openapi-types 0.0.62 → 0.0.63

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 +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -61,6 +61,10 @@ writer can reach is a vocabulary that lies about what the field means.
61
61
  * Authentication mechanism used by an email account
62
62
  */
63
63
  export type AccountAuthType = "password" | "oauthMicrosoft";
64
+ /**
65
+ * A service an account syncs. `Mail` covers messages, folders and sending; `Calendar` covers a provider calendar read into the calendar store.
66
+ */
67
+ export type AccountService = "Mail" | "Calendar";
64
68
  /**
65
69
  * IMAP connection states per RFC 9051 Section 3
66
70
  */
@@ -1230,6 +1234,10 @@ never from a raw content-type line — parameters carry `name=` and
1230
1234
  * Authentication mechanism used by this account
1231
1235
  */
1232
1236
  authType: AccountAuthType;
1237
+ /**
1238
+ * Services this account syncs. Never empty. A password account holds `Mail` alone. Every account written before this field existed holds `#[AccountService.Mail]`.
1239
+ */
1240
+ syncedServices: AccountService[];
1233
1241
  /**
1234
1242
  * Hashed password for authentication (password accounts only)
1235
1243
  */
@@ -1349,6 +1357,10 @@ never from a raw content-type line — parameters carry `name=` and
1349
1357
  * Authentication mechanism used by this account
1350
1358
  */
1351
1359
  authType: AccountAuthType;
1360
+ /**
1361
+ * Services this account syncs. Never empty. A password account holds `Mail` alone. Every account written before this field existed holds `#[AccountService.Mail]`.
1362
+ */
1363
+ syncedServices: AccountService[];
1352
1364
  /**
1353
1365
  * IMAP server hostname or IP address
1354
1366
  */
@@ -3184,6 +3196,10 @@ asking "is this slot free" never has to do the merging itself.
3184
3196
  * Authentication mechanism for this account. Defaults to `password`. Pass `oauthMicrosoft` only via the OAuth connect flow (POST /accounts/oauth/microsoft/start).
3185
3197
  */
3186
3198
  authType?: AccountAuthType;
3199
+ /**
3200
+ * Services this account syncs. Defaults to `#[Mail]`. Refused when empty, and refused for a password account unless it is exactly `#[Mail]`.
3201
+ */
3202
+ syncedServices?: AccountService[];
3187
3203
  /**
3188
3204
  * Account password (will be encrypted). Required for password accounts; omit for OAuth accounts.
3189
3205
  */
@@ -3371,6 +3387,10 @@ asking "is this slot free" never has to do the merging itself.
3371
3387
  * Enable/disable account
3372
3388
  */
3373
3389
  isActive?: boolean;
3390
+ /**
3391
+ * Replaces the stored service set outright. Refused when empty, on a password account unless it is exactly `#[Mail]`, or when it names a service the account's OAuth grant does not cover. That last case is a consent round trip through the OAuth start route.
3392
+ */
3393
+ syncedServices?: AccountService[];
3374
3394
  /**
3375
3395
  * Plain text email signature
3376
3396
  */
@@ -9080,6 +9100,7 @@ export type QuarantineFailureStage = Components.Schemas.QuarantineFailureStage;
9080
9100
  export type QuarantineFailureCode = Components.Schemas.QuarantineFailureCode;
9081
9101
  export type AccountConfigState = Components.Schemas.AccountConfigState;
9082
9102
  export type AccountAuthType = Components.Schemas.AccountAuthType;
9103
+ export type AccountService = Components.Schemas.AccountService;
9083
9104
  export type ConnectionState = Components.Schemas.ConnectionState;
9084
9105
  export type SyncPhase = Components.Schemas.SyncPhase;
9085
9106
  export type FolderAppointmentSource = Components.Schemas.FolderAppointmentSource;