@remit/api-http-client 0.0.1 → 0.0.3
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/@tanstack/react-query.gen.ts +6 -2
- package/package.json +1 -1
- package/sdk.gen.ts +6 -2
- package/types.gen.ts +4 -4
|
@@ -800,7 +800,9 @@ export const unifiedThreadOperationsListAllThreadsQueryKey = (options?: Options<
|
|
|
800
800
|
*
|
|
801
801
|
* Mute exclusion: muted accounts and muted mailboxes are excluded. The inbox/mute filter set is rebuilt per page from live state, so muting/unmuting a mailbox mid-pagination takes effect on the next page (never retroactively).
|
|
802
802
|
*
|
|
803
|
-
* Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent.
|
|
803
|
+
* Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. In the default (INBOX) mode the INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
|
|
804
|
+
*
|
|
805
|
+
* 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.
|
|
804
806
|
*/
|
|
805
807
|
export const unifiedThreadOperationsListAllThreadsOptions = (options?: Options<UnifiedThreadOperationsListAllThreadsData>) => queryOptions<UnifiedThreadOperationsListAllThreadsResponse, DefaultError, UnifiedThreadOperationsListAllThreadsResponse, ReturnType<typeof unifiedThreadOperationsListAllThreadsQueryKey>>({
|
|
806
808
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -818,7 +820,9 @@ export const unifiedThreadOperationsListAllThreadsOptions = (options?: Options<U
|
|
|
818
820
|
export const threadDetailOperationsListThreadMessagesQueryKey = (options: Options<ThreadDetailOperationsListThreadMessagesData>) => createQueryKey('threadDetailOperationsListThreadMessages', options);
|
|
819
821
|
|
|
820
822
|
/**
|
|
821
|
-
* Get all messages in a thread
|
|
823
|
+
* Get all messages in a thread, across every mailbox of the account — a conversation spans INBOX, Sent, Archive and any folder the user filed a message in, so it is never scoped to one mailbox. Soft-deleted messages (including anything moved to Trash) are excluded.
|
|
824
|
+
*
|
|
825
|
+
* One entry per piece of mail. A message synced from several folders is stored once, and where a second row exists for the same Message-ID — a copy taken with `copyMessages`, which gives its copy a fresh message id — the oldest is returned and the rest are dropped.
|
|
822
826
|
*/
|
|
823
827
|
export const threadDetailOperationsListThreadMessagesOptions = (options: Options<ThreadDetailOperationsListThreadMessagesData>) => queryOptions<ThreadDetailOperationsListThreadMessagesResponse, DefaultError, ThreadDetailOperationsListThreadMessagesResponse, ReturnType<typeof threadDetailOperationsListThreadMessagesQueryKey>>({
|
|
824
828
|
queryFn: async ({ queryKey, signal }) => {
|
package/package.json
CHANGED
package/sdk.gen.ts
CHANGED
|
@@ -467,7 +467,9 @@ export const semanticSearchOperationsSemanticSearch = <ThrowOnError extends bool
|
|
|
467
467
|
*
|
|
468
468
|
* Mute exclusion: muted accounts and muted mailboxes are excluded. The inbox/mute filter set is rebuilt per page from live state, so muting/unmuting a mailbox mid-pagination takes effect on the next page (never retroactively).
|
|
469
469
|
*
|
|
470
|
-
* Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent.
|
|
470
|
+
* Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. In the default (INBOX) mode the INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
|
|
471
|
+
*
|
|
472
|
+
* 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.
|
|
471
473
|
*/
|
|
472
474
|
export const unifiedThreadOperationsListAllThreads = <ThrowOnError extends boolean = false>(options?: Options<UnifiedThreadOperationsListAllThreadsData, ThrowOnError>) => (options?.client ?? client).get<UnifiedThreadOperationsListAllThreadsResponses, unknown, ThrowOnError>({
|
|
473
475
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
@@ -476,7 +478,9 @@ export const unifiedThreadOperationsListAllThreads = <ThrowOnError extends boole
|
|
|
476
478
|
});
|
|
477
479
|
|
|
478
480
|
/**
|
|
479
|
-
* Get all messages in a thread
|
|
481
|
+
* Get all messages in a thread, across every mailbox of the account — a conversation spans INBOX, Sent, Archive and any folder the user filed a message in, so it is never scoped to one mailbox. Soft-deleted messages (including anything moved to Trash) are excluded.
|
|
482
|
+
*
|
|
483
|
+
* One entry per piece of mail. A message synced from several folders is stored once, and where a second row exists for the same Message-ID — a copy taken with `copyMessages`, which gives its copy a fresh message id — the oldest is returned and the rest are dropped.
|
|
480
484
|
*/
|
|
481
485
|
export const threadDetailOperationsListThreadMessages = <ThrowOnError extends boolean = false>(options: Options<ThreadDetailOperationsListThreadMessagesData, ThrowOnError>) => (options.client ?? client).get<ThreadDetailOperationsListThreadMessagesResponses, unknown, ThrowOnError>({
|
|
482
486
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
package/types.gen.ts
CHANGED
|
@@ -3201,6 +3201,10 @@ export type UnifiedThreadOperationsListAllThreadsData = {
|
|
|
3201
3201
|
continuationToken?: string;
|
|
3202
3202
|
order?: RemitImapSortOrder;
|
|
3203
3203
|
limit?: number;
|
|
3204
|
+
/**
|
|
3205
|
+
* When true, return only starred threads — every starred thread in the config, across all non-muted mailboxes, not just the INBOX scope. Starredness is read from `hasStars`, the boolean of record.
|
|
3206
|
+
*/
|
|
3207
|
+
starred?: boolean;
|
|
3204
3208
|
};
|
|
3205
3209
|
url: '/threads';
|
|
3206
3210
|
};
|
|
@@ -3224,10 +3228,6 @@ export type ThreadDetailOperationsListThreadMessagesData = {
|
|
|
3224
3228
|
};
|
|
3225
3229
|
query?: {
|
|
3226
3230
|
order?: RemitImapSortOrder;
|
|
3227
|
-
/**
|
|
3228
|
-
* Filter messages to only those in this mailbox (useful for deduplication)
|
|
3229
|
-
*/
|
|
3230
|
-
mailboxId?: Uuid;
|
|
3231
3231
|
};
|
|
3232
3232
|
url: '/threads/{threadId}/messages';
|
|
3233
3233
|
};
|