From a0610fa6cd5baaad4fa9b583ea026c9d3955851a Mon Sep 17 00:00:00 2001 From: Aditya Agarwal Date: Fri, 3 Jan 2025 23:23:39 +0530 Subject: [PATCH 1/2] chore: allow passing user_id in enrichment --- src/client.ts | 1 + src/feed.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/client.ts b/src/client.ts index 4578a8df..b8f8c88e 100644 --- a/src/client.ts +++ b/src/client.ts @@ -803,6 +803,7 @@ export class StreamClient; + user_id?: string; }) { const extraParams: { foreign_ids?: string; ids?: string; timestamps?: string } = {}; diff --git a/src/feed.ts b/src/feed.ts index d86a66ca..6bd0540a 100644 --- a/src/feed.ts +++ b/src/feed.ts @@ -22,6 +22,10 @@ export type EnrichOptions = { withOwnReactions?: boolean; withReactionCounts?: boolean; withRecentReactions?: boolean; + + /** + * deprecated, use user_id + */ withUserId?: string; }; From a5bee8c000f30117a3184620b10bf7e089f52fcf Mon Sep 17 00:00:00 2001 From: itsmeadi Date: Mon, 6 Jan 2025 18:51:23 +0530 Subject: [PATCH 2/2] Update src/feed.ts Co-authored-by: Anton Arnautov <43254280+arnautov-anton@users.noreply.github.com> --- src/feed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/feed.ts b/src/feed.ts index 6bd0540a..04d4d351 100644 --- a/src/feed.ts +++ b/src/feed.ts @@ -24,7 +24,7 @@ export type EnrichOptions = { withRecentReactions?: boolean; /** - * deprecated, use user_id + * @deprecated Use `user_id` instead. */ withUserId?: string; };