Skip to content

Commit a0610fa

Browse files
committed
chore: allow passing user_id in enrichment
1 parent 1237e2c commit a0610fa

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
28+
*/
2529
withUserId?: string;
2630
};
2731

0 commit comments

Comments
 (0)