@remit/api-http-client 0.0.2 → 0.0.4

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.
@@ -820,7 +820,11 @@ export const unifiedThreadOperationsListAllThreadsOptions = (options?: Options<U
820
820
  export const threadDetailOperationsListThreadMessagesQueryKey = (options: Options<ThreadDetailOperationsListThreadMessagesData>) => createQueryKey('threadDetailOperationsListThreadMessages', options);
821
821
 
822
822
  /**
823
- * Get all messages in a thread. Optionally filter by mailboxId to deduplicate when messages exist in multiple mailboxes.
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.
826
+ *
827
+ * Ordering: oldest first, by the date the message was sent, with `threadMessageId` breaking ties. A conversation is read in the order it happened, so a reply always follows the message it answers. Pass `order=desc` for the reverse.
824
828
  */
825
829
  export const threadDetailOperationsListThreadMessagesOptions = (options: Options<ThreadDetailOperationsListThreadMessagesData>) => queryOptions<ThreadDetailOperationsListThreadMessagesResponse, DefaultError, ThreadDetailOperationsListThreadMessagesResponse, ReturnType<typeof threadDetailOperationsListThreadMessagesQueryKey>>({
826
830
  queryFn: async ({ queryKey, signal }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-http-client",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts",
package/sdk.gen.ts CHANGED
@@ -478,7 +478,11 @@ export const unifiedThreadOperationsListAllThreads = <ThrowOnError extends boole
478
478
  });
479
479
 
480
480
  /**
481
- * Get all messages in a thread. Optionally filter by mailboxId to deduplicate when messages exist in multiple mailboxes.
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.
484
+ *
485
+ * Ordering: oldest first, by the date the message was sent, with `threadMessageId` breaking ties. A conversation is read in the order it happened, so a reply always follows the message it answers. Pass `order=desc` for the reverse.
482
486
  */
483
487
  export const threadDetailOperationsListThreadMessages = <ThrowOnError extends boolean = false>(options: Options<ThreadDetailOperationsListThreadMessagesData, ThrowOnError>) => (options.client ?? client).get<ThreadDetailOperationsListThreadMessagesResponses, unknown, ThrowOnError>({
484
488
  security: [{ name: 'Authorization', type: 'apiKey' }],
package/types.gen.ts CHANGED
@@ -3228,10 +3228,6 @@ export type ThreadDetailOperationsListThreadMessagesData = {
3228
3228
  };
3229
3229
  query?: {
3230
3230
  order?: RemitImapSortOrder;
3231
- /**
3232
- * Filter messages to only those in this mailbox (useful for deduplication)
3233
- */
3234
- mailboxId?: Uuid;
3235
3231
  };
3236
3232
  url: '/threads/{threadId}/messages';
3237
3233
  };