From fef113ac3becd46ff70ec29938851fed543ed8b0 Mon Sep 17 00:00:00 2001 From: Ren Koya Date: Sun, 20 Oct 2024 11:43:41 +0900 Subject: [PATCH] add most_recent_tweet_id to UserV2 and TTweetv2UserField --- src/types/v2/tweet.v2.types.ts | 2 +- src/types/v2/user.v2.types.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/v2/tweet.v2.types.ts b/src/types/v2/tweet.v2.types.ts index a393820..7d6b014 100644 --- a/src/types/v2/tweet.v2.types.ts +++ b/src/types/v2/tweet.v2.types.ts @@ -55,7 +55,7 @@ export type TTweetv2TweetField = 'attachments' | 'author_id' | 'context_annotati | 'possibly_sensitive' | 'referenced_tweets' | 'reply_settings' | 'source' | 'text' | 'withheld' | 'note_tweet'; export type TTweetv2UserField = 'created_at' | 'description' | 'entities' | 'id' | 'location' | 'name' | 'pinned_tweet_id' | 'profile_image_url' | 'protected' | 'public_metrics' - | 'url' | 'username' | 'verified' | 'verified_type' | 'withheld' | 'connection_status'; + | 'url' | 'username' | 'verified' | 'verified_type' | 'withheld' | 'connection_status' | 'most_recent_tweet_id'; export interface Tweetv2FieldsParams { expansions: TypeOrArrayOf | string; diff --git a/src/types/v2/user.v2.types.ts b/src/types/v2/user.v2.types.ts index df88bfe..c264267 100644 --- a/src/types/v2/user.v2.types.ts +++ b/src/types/v2/user.v2.types.ts @@ -98,7 +98,7 @@ export interface UserV2 { url?: string; description?: string; verified?: boolean; - verified_type?: "none" | "blue" | "business" | "government"; + verified_type?: 'none' | 'blue' | 'business' | 'government'; entities?: { url?: { urls: UrlEntity[] }; description: { @@ -118,4 +118,5 @@ export interface UserV2 { } pinned_tweet_id?: string; connection_status?: string[]; + most_recent_tweet_id?: string; }