Skip to content

Commit c2adf13

Browse files
authored
feat: add most_recent_tweet_id (#545)
1 parent dc67387 commit c2adf13

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/types/v2/tweet.v2.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export type TTweetv2TweetField = 'attachments' | 'author_id' | 'context_annotati
5555
| 'possibly_sensitive' | 'referenced_tweets' | 'reply_settings' | 'source' | 'text' | 'withheld' | 'note_tweet';
5656
export type TTweetv2UserField = 'created_at' | 'description' | 'entities' | 'id' | 'location'
5757
| 'name' | 'pinned_tweet_id' | 'profile_image_url' | 'protected' | 'public_metrics'
58-
| 'url' | 'username' | 'verified' | 'verified_type' | 'withheld' | 'connection_status';
58+
| 'url' | 'username' | 'verified' | 'verified_type' | 'withheld' | 'connection_status' | 'most_recent_tweet_id';
5959

6060
export interface Tweetv2FieldsParams {
6161
expansions: TypeOrArrayOf<TTweetv2Expansion> | string;

src/types/v2/user.v2.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export interface UserV2 {
9898
url?: string;
9999
description?: string;
100100
verified?: boolean;
101-
verified_type?: "none" | "blue" | "business" | "government";
101+
verified_type?: 'none' | 'blue' | 'business' | 'government';
102102
entities?: {
103103
url?: { urls: UrlEntity[] };
104104
description: {
@@ -118,4 +118,5 @@ export interface UserV2 {
118118
}
119119
pinned_tweet_id?: string;
120120
connection_status?: string[];
121+
most_recent_tweet_id?: string;
121122
}

0 commit comments

Comments
 (0)