Skip to content

Commit e2804ad

Browse files
committed
fix(x): add missing newestId/oldestId to get_liked_tweets success branch and includes to XTweetListResponse
1 parent d86838e commit e2804ad

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/sim/tools/x/get_liked_tweets.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ export const xGetLikedTweetsTool: ToolConfig<XGetLikedTweetsParams, XTweetListRe
9696
},
9797
meta: {
9898
resultCount: data.meta?.result_count ?? 0,
99+
newestId: data.meta?.newest_id ?? null,
100+
oldestId: data.meta?.oldest_id ?? null,
99101
nextToken: data.meta?.next_token ?? null,
100102
previousToken: data.meta?.previous_token ?? null,
101103
},

apps/sim/tools/x/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ export interface XManageMuteResponse extends ToolResponse {
486486
export interface XTweetListResponse extends ToolResponse {
487487
output: {
488488
tweets: XTweet[]
489+
includes?: {
490+
users: XUser[]
491+
}
489492
meta: {
490493
resultCount: number
491494
newestId: string | null

0 commit comments

Comments
 (0)