Skip to content

Commit b2c2b1b

Browse files
[FEEDS-0]chore: allow passing user_id in enrichment (#613)
* chore: allow passing user_id in enrichment * Update src/feed.ts Co-authored-by: Anton Arnautov <[email protected]> --------- Co-authored-by: Anton Arnautov <[email protected]>
1 parent 1237e2c commit b2c2b1b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ export class StreamClient<StreamFeedGenerics extends DefaultGenerics = DefaultGe
803803
foreignIDTimes?: ForeignIDTimes[];
804804
ids?: string[];
805805
reactions?: Record<string, boolean>;
806+
user_id?: string;
806807
}) {
807808
const extraParams: { foreign_ids?: string; ids?: string; timestamps?: string } = {};
808809

src/feed.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export type EnrichOptions = {
2222
withOwnReactions?: boolean;
2323
withReactionCounts?: boolean;
2424
withRecentReactions?: boolean;
25+
26+
/**
27+
* @deprecated Use `user_id` instead.
28+
*/
2529
withUserId?: string;
2630
};
2731

0 commit comments

Comments
 (0)