Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/types/v2/tweet.definition.v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ export type NoteTweetEntitiesV2 = Omit<TweetEntitiesV2, 'annotations'>;

export type TTweetReplySettingsV2 = 'mentionedUsers' | 'following' | 'everyone';

export interface TweetArticleV2 {
cover_media?: MediaObjectV2;
media_entities?: MediaObjectV2[];
}

export interface SendTweetV2Params {
direct_message_deep_link?: string;
for_super_followers_only?: 'True' | 'False';
Expand Down Expand Up @@ -238,6 +243,7 @@ export interface TweetV2 {
source?: string;
note_tweet?: NoteTweetV2;
community_id?: string;
article?: TweetArticleV2;
}

export interface ApiV2Includes {
Expand Down
8 changes: 5 additions & 3 deletions src/types/v2/tweet.v2.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ export interface TweetV2UserTimelineParams extends TweetV2PaginableTimelineParam
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface TweetV2HomeTimelineParams extends TweetV2UserTimelineParams {}
export interface TweetV2HomeTimelineParams extends TweetV2UserTimelineParams { }

export type TTweetv2Expansion = 'attachments.poll_ids' | 'attachments.media_keys'
export type TTweetv2Expansion = 'attachments.poll_ids' | 'attachments.media_keys' | 'attachments.media_source_tweet'
| 'author_id' | 'referenced_tweets.id' | 'in_reply_to_user_id' | 'edit_history_tweet_ids'
| 'geo.place_id' | 'entities.mentions.username' | 'referenced_tweets.id.author_id';
| 'geo.place_id' | 'entities.mentions.username' | 'referenced_tweets.id.author_id'
| 'article.cover_media' | 'article.media_entities'
| 'entities.note.mentions.username' | 'referenced_tweets.id.attachments.media_keys';
export type TTweetv2MediaField = keyof MediaObjectV2;
export type TTweetv2PlaceField = keyof PlaceV2;
export type TTweetv2PollField = keyof PollV2;
Expand Down