@book000/twitterts 0.39.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/generate-types/custom-types-generator.d.ts +8 -1
  2. package/dist/generate-types/custom-types-generator.d.ts.map +1 -1
  3. package/dist/generate-types/custom-types-generator.js +31 -18
  4. package/dist/generate-types/custom-types-generator.js.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.d.ts +5164 -0
  10. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.d.ts.map +1 -0
  11. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.js +4 -0
  12. package/dist/models/responses/custom/custom-graph-qltimeline-success-response.js.map +1 -0
  13. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts +157 -157
  14. package/dist/models/responses/custom/custom-search-timeline-entry.d.ts.map +1 -1
  15. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts +1077 -809
  16. package/dist/models/responses/custom/custom-timeline-tweet-entry.d.ts.map +1 -1
  17. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts +33 -33
  18. package/dist/models/responses/custom/custom-tweet-legacy-object.d.ts.map +1 -1
  19. package/dist/models/responses/custom/custom-tweet-object.d.ts +271 -10
  20. package/dist/models/responses/custom/custom-tweet-object.d.ts.map +1 -1
  21. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts +154 -154
  22. package/dist/models/responses/custom/custom-user-tweet-entry.d.ts.map +1 -1
  23. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts +373 -14
  24. package/dist/models/responses/graphql/get/home-latest-timeline-success.d.ts.map +1 -1
  25. package/dist/models/responses/graphql/get/home-timeline-success.d.ts +48 -8
  26. package/dist/models/responses/graphql/get/home-timeline-success.d.ts.map +1 -1
  27. package/dist/models/responses/graphql/get/search-timeline-success.d.ts +157 -157
  28. package/dist/models/responses/graphql/get/search-timeline-success.d.ts.map +1 -1
  29. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts +2 -2
  30. package/dist/models/responses/graphql/get/user-by-screen-name-success.d.ts.map +1 -1
  31. package/dist/models/responses/graphql/get/user-tweets-success.d.ts +1215 -1215
  32. package/dist/models/responses/graphql/get/user-tweets-success.d.ts.map +1 -1
  33. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts +428 -14
  34. package/dist/models/responses/graphql/post/home-latest-timeline-success.d.ts.map +1 -1
  35. package/dist/models/responses/graphql/post/home-timeline-success.d.ts +236 -236
  36. package/dist/models/responses/graphql/post/home-timeline-success.d.ts.map +1 -1
  37. package/dist/parser/home-timeline-parser.d.ts +2 -2
  38. package/dist/parser/home-timeline-parser.d.ts.map +1 -1
  39. package/dist/parser/home-timeline-parser.js.map +1 -1
  40. package/dist/scraper.d.ts +3 -2
  41. package/dist/scraper.d.ts.map +1 -1
  42. package/dist/scraper.js +5 -2
  43. package/dist/scraper.js.map +1 -1
  44. package/dist/tsconfig.build.tsbuildinfo +1 -1
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/dist/twitter.d.ts.map +1 -1
  47. package/dist/twitter.js +4 -2
  48. package/dist/twitter.js.map +1 -1
  49. package/package.json +1 -1
@@ -70,6 +70,7 @@ export interface CustomUserTweetEntry {
70
70
  location: string;
71
71
  media_count: number;
72
72
  name: string;
73
+ needs_phone_verification?: boolean;
73
74
  normal_followers_count: number;
74
75
  pinned_tweet_ids_str: string[];
75
76
  possibly_sensitive: boolean;
@@ -79,12 +80,11 @@ export interface CustomUserTweetEntry {
79
80
  screen_name: string;
80
81
  statuses_count: number;
81
82
  translator_type: string;
82
- url?: string;
83
83
  verified: boolean;
84
84
  want_retweets: boolean;
85
85
  withheld_in_countries: unknown[];
86
+ url?: string;
86
87
  verified_type?: string;
87
- needs_phone_verification?: boolean;
88
88
  following?: boolean;
89
89
  blocking?: boolean;
90
90
  };
@@ -101,153 +101,6 @@ export interface CustomUserTweetEntry {
101
101
  };
102
102
  };
103
103
  };
104
- card?: {
105
- rest_id: string;
106
- legacy: {
107
- binding_values: {
108
- key: string;
109
- value: {
110
- image_value?: {
111
- height: number;
112
- width: number;
113
- url: string;
114
- alt?: string;
115
- };
116
- type: string;
117
- string_value?: string;
118
- scribe_key?: string;
119
- user_value?: {
120
- id_str: string;
121
- path: unknown[];
122
- };
123
- image_color_value?: {
124
- palette: {
125
- rgb: {
126
- blue: number;
127
- green: number;
128
- red: number;
129
- };
130
- percentage: number;
131
- }[];
132
- };
133
- boolean_value?: boolean;
134
- };
135
- }[];
136
- card_platform: {
137
- platform: {
138
- audience: {
139
- name: string;
140
- };
141
- device: {
142
- name: string;
143
- version: string;
144
- };
145
- };
146
- };
147
- name: string;
148
- url: string;
149
- user_refs_results: {
150
- result: {
151
- __typename: string;
152
- id?: string;
153
- rest_id?: string;
154
- affiliates_highlighted_label?: {
155
- label?: {
156
- url: {
157
- url: string;
158
- urlType: string;
159
- };
160
- badge: {
161
- url: string;
162
- };
163
- description: string;
164
- userLabelType: string;
165
- userLabelDisplayType: string;
166
- };
167
- };
168
- has_graduated_access?: boolean;
169
- is_blue_verified?: boolean;
170
- profile_image_shape?: string;
171
- legacy?: {
172
- can_dm: boolean;
173
- can_media_tag: boolean;
174
- created_at: string;
175
- default_profile: boolean;
176
- default_profile_image: boolean;
177
- description: string;
178
- entities: {
179
- description: {
180
- urls: {
181
- display_url: string;
182
- expanded_url: string;
183
- url: string;
184
- indices: number[];
185
- }[];
186
- };
187
- url?: {
188
- urls: {
189
- display_url: string;
190
- expanded_url: string;
191
- url: string;
192
- indices: number[];
193
- }[];
194
- };
195
- };
196
- fast_followers_count: number;
197
- favourites_count: number;
198
- followers_count: number;
199
- friends_count: number;
200
- has_custom_timelines: boolean;
201
- is_translator: boolean;
202
- listed_count: number;
203
- location: string;
204
- media_count: number;
205
- name: string;
206
- normal_followers_count: number;
207
- pinned_tweet_ids_str: string[];
208
- possibly_sensitive: boolean;
209
- profile_banner_url?: string;
210
- profile_image_url_https: string;
211
- profile_interstitial_type: string;
212
- screen_name: string;
213
- statuses_count: number;
214
- translator_type: string;
215
- url?: string;
216
- verified: boolean;
217
- verified_type?: string;
218
- want_retweets: boolean;
219
- withheld_in_countries: unknown[];
220
- };
221
- unavailable_message?: {
222
- rtl: boolean;
223
- text: string;
224
- entities: {
225
- fromIndex: number;
226
- toIndex: number;
227
- ref: {
228
- type: string;
229
- url: string;
230
- urlType: string;
231
- };
232
- }[];
233
- };
234
- reason?: string;
235
- professional?: {
236
- rest_id: string;
237
- professional_type: string;
238
- category: {
239
- id: number;
240
- name: string;
241
- icon_name: string;
242
- }[];
243
- };
244
- };
245
- }[];
246
- };
247
- };
248
- unified_card?: {
249
- card_fetch_state: string;
250
- };
251
104
  edit_control?: {
252
105
  edit_tweet_ids: string[];
253
106
  editable_until_msecs: string;
@@ -260,8 +113,8 @@ export interface CustomUserTweetEntry {
260
113
  };
261
114
  is_translatable?: boolean;
262
115
  views?: {
263
- count?: string;
264
116
  state: string;
117
+ count?: string;
265
118
  };
266
119
  source?: string;
267
120
  legacy?: {
@@ -379,14 +232,14 @@ export interface CustomUserTweetEntry {
379
232
  full_text: string;
380
233
  is_quote_status: boolean;
381
234
  lang: string;
382
- possibly_sensitive?: boolean;
383
- possibly_sensitive_editable?: boolean;
384
235
  quote_count: number;
385
236
  reply_count: number;
386
237
  retweet_count: number;
387
238
  retweeted: boolean;
388
239
  user_id_str: string;
389
240
  id_str: string;
241
+ possibly_sensitive?: boolean;
242
+ possibly_sensitive_editable?: boolean;
390
243
  scopes?: {
391
244
  followers: boolean;
392
245
  };
@@ -480,7 +333,6 @@ export interface CustomUserTweetEntry {
480
333
  source_status_id_str?: string;
481
334
  source_user_id_str?: string;
482
335
  additional_media_info?: {
483
- monetizable: boolean;
484
336
  title?: string;
485
337
  description?: string;
486
338
  call_to_actions?: {
@@ -489,6 +341,7 @@ export interface CustomUserTweetEntry {
489
341
  };
490
342
  };
491
343
  embeddable?: boolean;
344
+ monetizable: boolean;
492
345
  source_user?: {
493
346
  user_results: {
494
347
  result: {
@@ -1982,6 +1835,153 @@ export interface CustomUserTweetEntry {
1982
1835
  quick_promote_eligibility?: {
1983
1836
  eligibility: string;
1984
1837
  };
1838
+ card?: {
1839
+ rest_id: string;
1840
+ legacy: {
1841
+ binding_values: {
1842
+ key: string;
1843
+ value: {
1844
+ image_value?: {
1845
+ height: number;
1846
+ width: number;
1847
+ url: string;
1848
+ alt?: string;
1849
+ };
1850
+ type: string;
1851
+ string_value?: string;
1852
+ scribe_key?: string;
1853
+ user_value?: {
1854
+ id_str: string;
1855
+ path: unknown[];
1856
+ };
1857
+ image_color_value?: {
1858
+ palette: {
1859
+ rgb: {
1860
+ blue: number;
1861
+ green: number;
1862
+ red: number;
1863
+ };
1864
+ percentage: number;
1865
+ }[];
1866
+ };
1867
+ boolean_value?: boolean;
1868
+ };
1869
+ }[];
1870
+ card_platform: {
1871
+ platform: {
1872
+ audience: {
1873
+ name: string;
1874
+ };
1875
+ device: {
1876
+ name: string;
1877
+ version: string;
1878
+ };
1879
+ };
1880
+ };
1881
+ name: string;
1882
+ url: string;
1883
+ user_refs_results: {
1884
+ result: {
1885
+ __typename: string;
1886
+ id?: string;
1887
+ rest_id?: string;
1888
+ affiliates_highlighted_label?: {
1889
+ label?: {
1890
+ url: {
1891
+ url: string;
1892
+ urlType: string;
1893
+ };
1894
+ badge: {
1895
+ url: string;
1896
+ };
1897
+ description: string;
1898
+ userLabelType: string;
1899
+ userLabelDisplayType: string;
1900
+ };
1901
+ };
1902
+ has_graduated_access?: boolean;
1903
+ is_blue_verified?: boolean;
1904
+ profile_image_shape?: string;
1905
+ legacy?: {
1906
+ can_dm: boolean;
1907
+ can_media_tag: boolean;
1908
+ created_at: string;
1909
+ default_profile: boolean;
1910
+ default_profile_image: boolean;
1911
+ description: string;
1912
+ entities: {
1913
+ description: {
1914
+ urls: {
1915
+ display_url: string;
1916
+ expanded_url: string;
1917
+ url: string;
1918
+ indices: number[];
1919
+ }[];
1920
+ };
1921
+ url?: {
1922
+ urls: {
1923
+ display_url: string;
1924
+ expanded_url: string;
1925
+ url: string;
1926
+ indices: number[];
1927
+ }[];
1928
+ };
1929
+ };
1930
+ fast_followers_count: number;
1931
+ favourites_count: number;
1932
+ followers_count: number;
1933
+ friends_count: number;
1934
+ has_custom_timelines: boolean;
1935
+ is_translator: boolean;
1936
+ listed_count: number;
1937
+ location: string;
1938
+ media_count: number;
1939
+ name: string;
1940
+ normal_followers_count: number;
1941
+ pinned_tweet_ids_str: string[];
1942
+ possibly_sensitive: boolean;
1943
+ profile_banner_url?: string;
1944
+ profile_image_url_https: string;
1945
+ profile_interstitial_type: string;
1946
+ screen_name: string;
1947
+ statuses_count: number;
1948
+ translator_type: string;
1949
+ url?: string;
1950
+ verified: boolean;
1951
+ verified_type?: string;
1952
+ want_retweets: boolean;
1953
+ withheld_in_countries: unknown[];
1954
+ };
1955
+ unavailable_message?: {
1956
+ rtl: boolean;
1957
+ text: string;
1958
+ entities: {
1959
+ fromIndex: number;
1960
+ toIndex: number;
1961
+ ref: {
1962
+ type: string;
1963
+ url: string;
1964
+ urlType: string;
1965
+ };
1966
+ }[];
1967
+ };
1968
+ reason?: string;
1969
+ professional?: {
1970
+ rest_id: string;
1971
+ professional_type: string;
1972
+ category: {
1973
+ id: number;
1974
+ name: string;
1975
+ icon_name: string;
1976
+ }[];
1977
+ };
1978
+ };
1979
+ }[];
1980
+ };
1981
+ };
1982
+ unified_card?: {
1983
+ card_fetch_state: string;
1984
+ };
1985
1985
  quoted_status_result?: {
1986
1986
  result: {
1987
1987
  __typename: string;
@@ -2971,9 +2971,9 @@ export interface CustomUserTweetEntry {
2971
2971
  translator_type: string;
2972
2972
  url?: string;
2973
2973
  verified: boolean;
2974
- verified_type?: string;
2975
2974
  want_retweets: boolean;
2976
2975
  withheld_in_countries: unknown[];
2976
+ verified_type?: string;
2977
2977
  };
2978
2978
  professional?: {
2979
2979
  rest_id: string;