@remit/api-openapi-types 0.0.66 → 0.0.68

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.66",
3
+ "version": "0.0.68",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -1238,6 +1238,10 @@ never from a raw content-type line — parameters carry `name=` and
1238
1238
  * Services this account syncs. Never empty. A password account holds `Mail` alone. Every account written before this field existed holds `#[AccountService.Mail]`.
1239
1239
  */
1240
1240
  syncedServices: AccountService[];
1241
+ /**
1242
+ * OAuth scopes the provider confirmed on the last consent, as full scope URIs. Empty on a password account. A Microsoft account can only select a service these scopes cover; one that lacks it goes back through POST /accounts/oauth/microsoft/start carrying that service.
1243
+ */
1244
+ grantedScopes: string[];
1241
1245
  /**
1242
1246
  * Hashed password for authentication (password accounts only)
1243
1247
  */
@@ -1361,6 +1365,10 @@ never from a raw content-type line — parameters carry `name=` and
1361
1365
  * Services this account syncs. Never empty. A password account holds `Mail` alone. Every account written before this field existed holds `#[AccountService.Mail]`.
1362
1366
  */
1363
1367
  syncedServices: AccountService[];
1368
+ /**
1369
+ * OAuth scopes the provider confirmed on the last consent, as full scope URIs. Empty on a password account. A Microsoft account can only select a service these scopes cover; one that lacks it goes back through POST /accounts/oauth/microsoft/start carrying that service.
1370
+ */
1371
+ grantedScopes: string[];
1364
1372
  /**
1365
1373
  * IMAP server hostname or IP address
1366
1374
  */
@@ -1852,6 +1860,10 @@ with `onExisting: merge` to upsert instead.
1852
1860
  * The path a recorded rename is moving this folder to. Absent unless a rename is in flight or has just failed, which is what tells a create in flight from a rename in flight (D2, D3). `fullPath` stays the path the server holds throughout, so a failed rename is this field cleared rather than a subtree of paths restored. Invariant: non-null only while `syncStatus` is `pending` or `failed`.
1853
1861
  */
1854
1862
  pendingPath?: String512;
1863
+ /**
1864
+ * What the mail server said when it refused the last folder mutation, verbatim, so a folder in `failed` can say why. Total: the empty string whenever `syncStatus` is not `failed`, and on a failure the server gave no text for.
1865
+ */
1866
+ syncFailureReason: string;
1855
1867
  /**
1856
1868
  * Cursor integrity state machine for stored UIDs (epic #1281 invariant 5, issue #1272). Total per RFC 032: defaults to `normal` rather than being absent. A row written before this field existed reads back as `normal` (unset DynamoDB/Postgres attribute deserializes to the schema default).
1857
1869
  */
@@ -1923,6 +1935,10 @@ with `onExisting: merge` to upsert instead.
1923
1935
  * The path a recorded rename is moving this folder to. Absent unless a rename is in flight or has just failed, which is what tells a create in flight from a rename in flight (D2, D3). `fullPath` stays the path the server holds throughout, so a failed rename is this field cleared rather than a subtree of paths restored. Invariant: non-null only while `syncStatus` is `pending` or `failed`.
1924
1936
  */
1925
1937
  pendingPath?: String512;
1938
+ /**
1939
+ * What the mail server said when it refused the last folder mutation, verbatim, so a folder in `failed` can say why. Total: the empty string whenever `syncStatus` is not `failed`, and on a failure the server gave no text for.
1940
+ */
1941
+ syncFailureReason: string;
1926
1942
  /**
1927
1943
  * Denormalized list of IMAP SPECIAL-USE designations (RFC 6154). Populated from the same `\Sent`, `\Drafts`, etc. attributes the server reports during LIST. Stored on the row to avoid an N+1 join when listing mailboxes.
1928
1944
  */
@@ -6292,6 +6308,10 @@ Decision 2.3).
6292
6308
  * Optional email hint for the Microsoft login page
6293
6309
  */
6294
6310
  email?: string;
6311
+ /**
6312
+ * Services to request consent for. The authorization URL asks for the scopes these map to. Defaults to `#[Mail]`; refused when empty. Adding a service to a connected account is this same request carrying the full set the account should sync.
6313
+ */
6314
+ services?: AccountService[];
6295
6315
  }
6296
6316
  export interface MicrosoftOAuthStartResponse {
6297
6317
  /**
@@ -6858,6 +6878,7 @@ declare namespace Paths {
6858
6878
  export type RequestBody = Components.Schemas.MicrosoftOAuthStartRequest;
6859
6879
  namespace Responses {
6860
6880
  export type $200 = void;
6881
+ export type $400 = void;
6861
6882
  export type $401 = void;
6862
6883
  }
6863
6884
  }