UNPKG

twitter-api-client

Version:
350 lines (349 loc) 8.68 kB
export default interface Search { statuses: Status[]; search_metadata: Searchmetadata; } export interface Searchmetadata { completed_in: number; max_id: number; max_id_str: string; next_results: string; query: string; refresh_url: string; count: number; since_id: number; since_id_str: string; } export interface Status { created_at: string; id: number; id_str: string; text: string; full_text: string; truncated: boolean; entities: Entities; extended_entities: Extendedentities; source: string; in_reply_to_status_id?: any; in_reply_to_status_id_str?: any; in_reply_to_user_id?: any; in_reply_to_user_id_str?: any; in_reply_to_screen_name?: any; user: User; geo?: any; coordinates?: any; place?: any; contributors?: any; is_quote_status: boolean; quoted_status_id?: number; quoted_status_id_str?: string; quoted_status?: Quotedstatus; retweet_count: number; favorite_count: number; favorited: boolean; retweeted: boolean; possibly_sensitive: boolean; lang: string; retweeted_status?: Retweetedstatus; } export interface Retweetedstatus { created_at: string; id: number; id_str: string; text: string; truncated: boolean; entities: Entities4; source: string; in_reply_to_status_id: number; in_reply_to_status_id_str: string; in_reply_to_user_id: number; in_reply_to_user_id_str: string; in_reply_to_screen_name: string; user: User3; geo?: any; coordinates?: any; place?: any; contributors?: any; is_quote_status: boolean; quoted_status_id?: number; quoted_status_id_str?: string; quoted_status?: Quotedstatus2; retweet_count: number; favorite_count: number; favorited: boolean; retweeted: boolean; lang: string; } export interface Quotedstatus2 { created_at: string; id: number; id_str: string; text: string; truncated: boolean; entities: Entities4; source: string; in_reply_to_status_id?: any; in_reply_to_status_id_str?: any; in_reply_to_user_id?: any; in_reply_to_user_id_str?: any; in_reply_to_screen_name?: any; user: User3; geo?: any; coordinates?: any; place?: any; contributors?: any; is_quote_status: boolean; retweet_count: number; favorite_count: number; favorited: boolean; retweeted: boolean; lang: string; } export interface User3 { id: number; id_str: string; name: string; screen_name: string; location: string; description: string; url: string; entities: Entities5; protected: boolean; followers_count: number; friends_count: number; listed_count: number; created_at: string; favourites_count: number; utc_offset?: any; time_zone?: any; geo_enabled: boolean; verified: boolean; statuses_count: number; lang?: any; contributors_enabled: boolean; is_translator: boolean; is_translation_enabled: boolean; profile_background_color: string; profile_background_image_url: string; profile_background_image_url_https: string; profile_background_tile: boolean; profile_image_url: string; profile_image_url_https: string; profile_banner_url: string; profile_link_color: string; profile_sidebar_border_color: string; profile_sidebar_fill_color: string; profile_text_color: string; profile_use_background_image: boolean; has_extended_profile: boolean; default_profile: boolean; default_profile_image: boolean; following: boolean; follow_request_sent: boolean; notifications: boolean; translator_type: string; withheld_in_countries: any[]; } export interface Entities5 { url: Url2; description: Url2; } export interface Entities4 { hashtags: Hashtag[]; symbols: any[]; user_mentions: Usermention[]; urls: Url[]; } export interface Hashtag { text: string; indices: number[]; } export interface Quotedstatus { created_at: string; id: number; id_str: string; text: string; truncated: boolean; entities: Entities3; source: string; in_reply_to_status_id?: any; in_reply_to_status_id_str?: any; in_reply_to_user_id?: any; in_reply_to_user_id_str?: any; in_reply_to_screen_name?: any; user: User2; geo?: any; coordinates?: any; place?: any; contributors?: any; is_quote_status: boolean; retweet_count: number; favorite_count: number; favorited: boolean; retweeted: boolean; possibly_sensitive: boolean; lang: string; } export interface User2 { id: number; id_str: string; name: string; screen_name: string; location: string; description: string; url: string; entities: Entities2; protected: boolean; followers_count: number; friends_count: number; listed_count: number; created_at: string; favourites_count: number; utc_offset?: any; time_zone?: any; geo_enabled: boolean; verified: boolean; statuses_count: number; lang?: any; contributors_enabled: boolean; is_translator: boolean; is_translation_enabled: boolean; profile_background_color: string; profile_background_image_url: string; profile_background_image_url_https: string; profile_background_tile: boolean; profile_image_url: string; profile_image_url_https: string; profile_banner_url: string; profile_link_color: string; profile_sidebar_border_color: string; profile_sidebar_fill_color: string; profile_text_color: string; profile_use_background_image: boolean; has_extended_profile: boolean; default_profile: boolean; default_profile_image: boolean; following: boolean; follow_request_sent: boolean; notifications: boolean; translator_type: string; } export interface Entities3 { hashtags: any[]; symbols: any[]; user_mentions: Usermention[]; urls: Url[]; } export interface Usermention { screen_name: string; name: string; id: number; id_str: string; indices: number[]; } export interface User { id: number; id_str: string; name: string; screen_name: string; location: string; description: string; url: string; entities: Entities2; protected: boolean; followers_count: number; friends_count: number; listed_count: number; created_at: string; favourites_count: number; utc_offset?: any; time_zone?: any; geo_enabled: boolean; verified: boolean; statuses_count: number; lang?: any; contributors_enabled: boolean; is_translator: boolean; is_translation_enabled: boolean; profile_background_color: string; profile_background_image_url?: any; profile_background_image_url_https?: any; profile_background_tile: boolean; profile_image_url: string; profile_image_url_https: string; profile_banner_url: string; profile_link_color: string; profile_sidebar_border_color: string; profile_sidebar_fill_color: string; profile_text_color: string; profile_use_background_image: boolean; has_extended_profile: boolean; default_profile: boolean; default_profile_image: boolean; following: boolean; follow_request_sent: boolean; notifications: boolean; translator_type: string; } export interface Entities2 { url: Url2; description: Description; } export interface Description { urls: any[]; } export interface Url2 { urls: Url[]; } export interface Extendedentities { media: Media[]; } export interface Media { id: number; id_str: string; indices: number[]; additional_media_info?: Additionalmediainfo; media_url: string; media_url_https: string; url: string; display_url: string; expanded_url: string; type: string; video_info?: Videoinfo; sizes: Sizes; } export interface Sizes { thumb: Thumb; medium: Thumb; small: Thumb; large: Thumb; } export interface Thumb { w: number; h: number; resize: string; } export interface Videoinfo { aspect_ratio: number[]; duration_millis: number; variants: Variant[]; } export interface Variant { bitrate?: number; content_type: string; url: string; } export interface Additionalmediainfo { monetizable: boolean; } export interface Entities { hashtags: any[]; symbols: any[]; user_mentions: any[]; urls: Url[]; } export interface Url { url: string; expanded_url: string; display_url: string; indices: number[]; }