@@ -38,9 +38,12 @@ import {
38
38
spaceTweets ,
39
39
findTweetsById ,
40
40
createTweet ,
41
+ getTweetsComplianceStream ,
41
42
tweetCountsFullArchiveSearch ,
42
43
tweetCountsRecentSearch ,
44
+ getTweetsFirehoseStream ,
43
45
sampleStream ,
46
+ getTweetsSample10Stream ,
44
47
tweetsFullarchiveSearch ,
45
48
tweetsRecentSearch ,
46
49
searchStream ,
@@ -55,6 +58,7 @@ import {
55
58
findUsersById ,
56
59
findUsersByUsername ,
57
60
findUserByUsername ,
61
+ getUsersComplianceStream ,
58
62
findMyUser ,
59
63
findUserById ,
60
64
usersIdBlocking ,
@@ -103,8 +107,8 @@ export class Client {
103
107
auth : string | AuthClient ,
104
108
requestOptions ?: Partial < RequestOptions >
105
109
) {
106
- this . version = "1.1.0 " ;
107
- this . twitterApiOpenApiVersion = "2.45 " ;
110
+ this . version = "1.1.1 " ;
111
+ this . twitterApiOpenApiVersion = "2.50 " ;
108
112
this . #auth = typeof auth === "string" ? new OAuth2Bearer ( auth ) : auth ;
109
113
this . #defaultRequestOptions = {
110
114
...requestOptions ,
@@ -265,6 +269,48 @@ export class Client {
265
269
params,
266
270
method : "GET" ,
267
271
} ) ,
272
+
273
+ /**
274
+ * Tweets Compliance stream
275
+ *
276
+
277
+ * Streams 100% of compliance data for Tweets
278
+ * @param params - The params for getTweetsComplianceStream
279
+ * @param request_options - Customize the options for this request
280
+ */
281
+ getTweetsComplianceStream : (
282
+ params : TwitterParams < getTweetsComplianceStream > ,
283
+ request_options ?: Partial < RequestOptions >
284
+ ) : AsyncGenerator < TwitterResponse < getTweetsComplianceStream > > =>
285
+ stream < TwitterResponse < getTweetsComplianceStream > > ( {
286
+ auth : this . #auth,
287
+ ...this . #defaultRequestOptions,
288
+ ...request_options ,
289
+ endpoint : `/2/tweets/compliance/stream` ,
290
+ params,
291
+ method : "GET" ,
292
+ } ) ,
293
+
294
+ /**
295
+ * Users Compliance stream
296
+ *
297
+
298
+ * Streams 100% of compliance data for Users
299
+ * @param params - The params for getUsersComplianceStream
300
+ * @param request_options - Customize the options for this request
301
+ */
302
+ getUsersComplianceStream : (
303
+ params : TwitterParams < getUsersComplianceStream > ,
304
+ request_options ?: Partial < RequestOptions >
305
+ ) : AsyncGenerator < TwitterResponse < getUsersComplianceStream > > =>
306
+ stream < TwitterResponse < getUsersComplianceStream > > ( {
307
+ auth : this . #auth,
308
+ ...this . #defaultRequestOptions,
309
+ ...request_options ,
310
+ endpoint : `/2/users/compliance/stream` ,
311
+ params,
312
+ method : "GET" ,
313
+ } ) ,
268
314
} ;
269
315
/**
270
316
* General
@@ -875,6 +921,27 @@ export class Client {
875
921
method : "GET" ,
876
922
} ) ,
877
923
924
+ /**
925
+ * Firehose stream
926
+ *
927
+
928
+ * Streams 100% of public Tweets.
929
+ * @param params - The params for getTweetsFirehoseStream
930
+ * @param request_options - Customize the options for this request
931
+ */
932
+ getTweetsFirehoseStream : (
933
+ params : TwitterParams < getTweetsFirehoseStream > ,
934
+ request_options ?: Partial < RequestOptions >
935
+ ) : AsyncGenerator < TwitterResponse < getTweetsFirehoseStream > > =>
936
+ stream < TwitterResponse < getTweetsFirehoseStream > > ( {
937
+ auth : this . #auth,
938
+ ...this . #defaultRequestOptions,
939
+ ...request_options ,
940
+ endpoint : `/2/tweets/firehose/stream` ,
941
+ params,
942
+ method : "GET" ,
943
+ } ) ,
944
+
878
945
/**
879
946
* Sample stream
880
947
*
@@ -896,6 +963,27 @@ export class Client {
896
963
method : "GET" ,
897
964
} ) ,
898
965
966
+ /**
967
+ * Sample 10% stream
968
+ *
969
+
970
+ * Streams a deterministic 10% of public Tweets.
971
+ * @param params - The params for getTweetsSample10Stream
972
+ * @param request_options - Customize the options for this request
973
+ */
974
+ getTweetsSample10Stream : (
975
+ params : TwitterParams < getTweetsSample10Stream > ,
976
+ request_options ?: Partial < RequestOptions >
977
+ ) : AsyncGenerator < TwitterResponse < getTweetsSample10Stream > > =>
978
+ stream < TwitterResponse < getTweetsSample10Stream > > ( {
979
+ auth : this . #auth,
980
+ ...this . #defaultRequestOptions,
981
+ ...request_options ,
982
+ endpoint : `/2/tweets/sample10/stream` ,
983
+ params,
984
+ method : "GET" ,
985
+ } ) ,
986
+
899
987
/**
900
988
* Full-archive search
901
989
*
@@ -1532,10 +1620,10 @@ export class Client {
1532
1620
} ) ,
1533
1621
1534
1622
/**
1535
- * Returns User objects that follow a List by the provided User ID
1623
+ * Followers by User ID
1536
1624
*
1537
1625
1538
- * Returns a list of Users that follow the provided User ID
1626
+ * Returns a list of Users who are followers of the specified User ID.
1539
1627
* @param id - The ID of the User to lookup.
1540
1628
* @param params - The params for usersIdFollowers
1541
1629
* @param request_options - Customize the options for this request
0 commit comments