UNPKG

x-api-sdk-ts

Version:

TypeScript Library for the X (ex-twitter) API V2

27 lines (26 loc) 1.69 kB
export type NullablePartial<T> = { [P in keyof T]?: T[P] | null; }; export declare enum TwitterApiScope { TweetRead = "tweet.read", TweetWrite = "tweet.write", TweetModerateWrite = "tweet.moderate.write", UsersRead = "users.read", FollowsRead = "follows.read", FollowsWrite = "follows.write", OfflineAccess = "offline.access", SpaceRead = "space.read", MuteRead = "mute.read", MuteWrite = "mute.write", LikeRead = "like.read", LikeWrite = "like.write", ListRead = "list.read", ListWrite = "list.write", BlockRead = "block.read", BlockWrite = "block.write", BookmarkRead = "bookmark.read", BookmarkWrite = "bookmark.write", MediaWrite = "media.write" } export type UserField = 'affiliation' | 'connection_status' | 'created_at' | 'description' | 'entities' | 'id' | 'is_identity_verified' | 'location' | 'most_recent_tweet_id' | 'name' | 'parody' | 'pinned_tweet_id' | 'profile_banner_url' | 'profile_image_url' | 'protected' | 'public_metrics' | 'receives_your_dm' | 'subscription' | 'subscription_type' | 'url' | 'username' | 'verified' | 'verified_followers_count' | 'verified_type' | 'withheld'; export type TweetField = 'article' | 'attachments' | 'author_id' | 'card_uri' | 'community_id' | 'context_annotations' | 'conversation_id' | 'created_at' | 'display_text_range' | 'edit_controls' | 'edit_history_tweet_ids' | 'entities' | 'geo' | 'id' | 'in_reply_to_user_id' | 'lang' | 'media_metadata' | 'non_public_metrics' | 'note_tweet' | 'organic_metrics' | 'possibly_sensitive' | 'promoted_metrics' | 'public_metrics' | 'referenced_tweets' | 'reply_settings' | 'scopes' | 'source' | 'text' | 'withheld';