@remit/api-openapi-types 0.0.62 → 0.0.64
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.
- package/package.json +1 -1
- package/types.d.ts +25 -4
package/package.json
CHANGED
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
|
*/
|
|
@@ -7716,7 +7736,7 @@ Ordering: oldest first, by the date the message was sent, with `threadMessageId`
|
|
|
7716
7736
|
config?: AxiosRequestConfig
|
|
7717
7737
|
): OperationResponse<Paths.ListThreadMessages.Responses.$200>;
|
|
7718
7738
|
/**
|
|
7719
|
-
* listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc. Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
|
|
7739
|
+
* listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc (search mode ranks sender matches first, see below). Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
|
|
7720
7740
|
|
|
7721
7741
|
INBOX scope: results are filtered to each account's top-level INBOX, matched by exact path `fullPath === "INBOX"` (RFC 6154 defines no Inbox special-use). By design this excludes namespaced sub-paths like `INBOX/Receipts` and non-English server primaries — the unified inbox is each account's primary INBOX, not its sub-folders. Soft-deleted rows are also excluded.
|
|
7722
7742
|
|
|
@@ -7726,7 +7746,7 @@ Pagination: pass the returned `continuationToken` to fetch the next page; keep p
|
|
|
7726
7746
|
|
|
7727
7747
|
Starred mode (`starred=true`): served by the `byStarred` LSI4 instead. A star is a marker on the mail rather than on its placement, so the INBOX scope does not apply and a starred thread in Archive is still returned. Excluded are muted and soft-deleted rows as usual, plus the folders a star never surfaces from: Junk, Trash, and Gmail's All Mail (a second copy of everything, whose rows would otherwise double every starred message). All filtering happens in the query, so a page is short only when the results are exhausted. Rows are per mailbox: the same mail filed in two folders is two rows sharing a `threadId`, and a client rendering one row per conversation collapses by `threadId` across the pages it has accumulated.
|
|
7728
7748
|
|
|
7729
|
-
Search mode (`query=<text>`): the listing widens past the INBOX scope to every non-muted mailbox of every non-muted account, and returns only rows whose subject, From address or body text matches the text. This is the unscoped search of the daily brief: one query reaching every folder of every account. Whitespace splits the text into terms and every term must match (AND), each against subject OR From OR body. Matching is case-insensitive substring, not tokenized full-text, so it
|
|
7749
|
+
Search mode (`query=<text>`): the listing widens past the INBOX scope to every non-muted mailbox of every non-muted account, and returns only rows whose subject, From address or body text matches the text. This is the unscoped search of the daily brief: one query reaching every folder of every account. Whitespace splits the text into terms and every term must match (AND), each against subject OR From OR body. Matching is case-insensitive substring, not tokenized full-text, so it does not stem. Rows come in two tiers: a row whose From matches any term ranks above a row that only mentions the terms in its subject or body text, and each tier runs in date order.
|
|
7730
7750
|
|
|
7731
7751
|
Body text is the stored preview the row carries — the first prose of the message with quoted replies removed, which is the same text the row renders under its subject. A term further into a long message is not reached; a term the reader can see on the row is.
|
|
7732
7752
|
|
|
@@ -8552,7 +8572,7 @@ Ordering: oldest first, by the date the message was sent, with `threadMessageId`
|
|
|
8552
8572
|
};
|
|
8553
8573
|
['/threads']: {
|
|
8554
8574
|
/**
|
|
8555
|
-
* listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc. Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
|
|
8575
|
+
* listAllThreads - List threads across all non-muted accounts of the caller, ordered by sentDate desc (search mode ranks sender matches first, see below). Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
|
|
8556
8576
|
|
|
8557
8577
|
INBOX scope: results are filtered to each account's top-level INBOX, matched by exact path `fullPath === "INBOX"` (RFC 6154 defines no Inbox special-use). By design this excludes namespaced sub-paths like `INBOX/Receipts` and non-English server primaries — the unified inbox is each account's primary INBOX, not its sub-folders. Soft-deleted rows are also excluded.
|
|
8558
8578
|
|
|
@@ -8562,7 +8582,7 @@ Pagination: pass the returned `continuationToken` to fetch the next page; keep p
|
|
|
8562
8582
|
|
|
8563
8583
|
Starred mode (`starred=true`): served by the `byStarred` LSI4 instead. A star is a marker on the mail rather than on its placement, so the INBOX scope does not apply and a starred thread in Archive is still returned. Excluded are muted and soft-deleted rows as usual, plus the folders a star never surfaces from: Junk, Trash, and Gmail's All Mail (a second copy of everything, whose rows would otherwise double every starred message). All filtering happens in the query, so a page is short only when the results are exhausted. Rows are per mailbox: the same mail filed in two folders is two rows sharing a `threadId`, and a client rendering one row per conversation collapses by `threadId` across the pages it has accumulated.
|
|
8564
8584
|
|
|
8565
|
-
Search mode (`query=<text>`): the listing widens past the INBOX scope to every non-muted mailbox of every non-muted account, and returns only rows whose subject, From address or body text matches the text. This is the unscoped search of the daily brief: one query reaching every folder of every account. Whitespace splits the text into terms and every term must match (AND), each against subject OR From OR body. Matching is case-insensitive substring, not tokenized full-text, so it
|
|
8585
|
+
Search mode (`query=<text>`): the listing widens past the INBOX scope to every non-muted mailbox of every non-muted account, and returns only rows whose subject, From address or body text matches the text. This is the unscoped search of the daily brief: one query reaching every folder of every account. Whitespace splits the text into terms and every term must match (AND), each against subject OR From OR body. Matching is case-insensitive substring, not tokenized full-text, so it does not stem. Rows come in two tiers: a row whose From matches any term ranks above a row that only mentions the terms in its subject or body text, and each tier runs in date order.
|
|
8566
8586
|
|
|
8567
8587
|
Body text is the stored preview the row carries — the first prose of the message with quoted replies removed, which is the same text the row renders under its subject. A term further into a long message is not reached; a term the reader can see on the row is.
|
|
8568
8588
|
|
|
@@ -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;
|