File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { UserV2 } from './user.v2.types' ;
2+ import type { CommunityV2 } from './community.v2.types' ;
23
34export interface PlaceV2 {
45 full_name : string ;
@@ -63,6 +64,7 @@ export interface ReferencedTweetV2 {
6364export interface TweetAttachmentV2 {
6465 media_keys ?: string [ ] ;
6566 poll_ids ?: string [ ] ;
67+ media_source_tweet_id ?: string [ ] ;
6668}
6769
6870export interface TweetGeoV2 {
@@ -196,10 +198,10 @@ export interface SendTweetV2Params {
196198 } ;
197199 media ?: {
198200 media_ids ?:
199- | [ string ]
200- | [ string , string ]
201- | [ string , string , string ]
202- | [ string , string , string , string ] ;
201+ | [ string ]
202+ | [ string , string ]
203+ | [ string , string , string ]
204+ | [ string , string , string , string ] ;
203205 tagged_user_ids ?: string [ ] ;
204206 } ;
205207 poll ?: {
@@ -252,4 +254,5 @@ export interface ApiV2Includes {
252254 places ?: PlaceV2 [ ] ;
253255 media ?: MediaObjectV2 [ ] ;
254256 polls ?: PollV2 [ ] ;
257+ communities ?: CommunityV2 [ ] ;
255258}
Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ import { PaginableCountMetaV2 } from './shared.v2.types';
88
99export type TUserV2Expansion = 'pinned_tweet_id' ;
1010
11+ /** Connection status types for relationship between users */
12+ export type TConnectionStatusV2 =
13+ | 'follow_request_received'
14+ | 'follow_request_sent'
15+ | 'blocking'
16+ | 'followed_by'
17+ | 'following'
18+ | 'muting' ;
19+
1120// - Params -
1221
1322export interface UsersV2Params {
@@ -120,7 +129,7 @@ export interface UserV2 {
120129 media_count ?: number ;
121130 }
122131 pinned_tweet_id ?: string ;
123- connection_status ?: string [ ] ;
132+ connection_status ?: TConnectionStatusV2 [ ] ;
124133 most_recent_tweet_id ?: string ;
125134 affiliation ?: {
126135 badge_url ?: string ;
You can’t perform that action at this time.
0 commit comments