twitter-openapi-python-generated 0.0.21__py3-none-any.whl → 0.0.23__py3-none-any.whl
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.
- twitter_openapi_python_generated/__init__.py +3 -1
- twitter_openapi_python_generated/api/default_api.py +22 -14
- twitter_openapi_python_generated/api/other_api.py +11 -7
- twitter_openapi_python_generated/api/post_api.py +88 -56
- twitter_openapi_python_generated/api/tweet_api.py +189 -77
- twitter_openapi_python_generated/api/user_api.py +22 -14
- twitter_openapi_python_generated/api/user_list_api.py +55 -35
- twitter_openapi_python_generated/api/users_api.py +11 -7
- twitter_openapi_python_generated/api/v11_get_api.py +22 -14
- twitter_openapi_python_generated/api/v11_post_api.py +22 -14
- twitter_openapi_python_generated/api/v20_get_api.py +11 -7
- twitter_openapi_python_generated/api_client.py +13 -4
- twitter_openapi_python_generated/configuration.py +28 -10
- twitter_openapi_python_generated/models/__init__.py +2 -0
- twitter_openapi_python_generated/models/author_community_relationship.py +2 -2
- twitter_openapi_python_generated/models/community_actions.py +13 -7
- twitter_openapi_python_generated/models/community_data.py +1 -1
- twitter_openapi_python_generated/models/community_relationship.py +106 -0
- twitter_openapi_python_generated/models/community_unpin_action_result.py +89 -0
- twitter_openapi_python_generated/models/cursor_type.py +1 -0
- twitter_openapi_python_generated/models/display_treatment.py +5 -3
- twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +1 -1
- twitter_openapi_python_generated/models/timeline_general_context.py +2 -2
- twitter_openapi_python_generated/models/tweet.py +7 -1
- twitter_openapi_python_generated/models/type_name.py +1 -0
- twitter_openapi_python_generated/models/user_response_data.py +2 -2
- twitter_openapi_python_generated/rest.py +1 -1
- {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/METADATA +6 -6
- {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/RECORD +33 -31
- {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/WHEEL +1 -1
- {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/LICENSE +0 -0
- {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/top_level.txt +0 -0
|
@@ -285,7 +285,9 @@ class TweetApi:
|
|
|
285
285
|
_query_params: List[Tuple[str, str]] = []
|
|
286
286
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
287
287
|
_form_params: List[Tuple[str, str]] = []
|
|
288
|
-
_files: Dict[
|
|
288
|
+
_files: Dict[
|
|
289
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
290
|
+
] = {}
|
|
289
291
|
_body_params: Optional[bytes] = None
|
|
290
292
|
|
|
291
293
|
# process the path parameters
|
|
@@ -316,24 +318,26 @@ class TweetApi:
|
|
|
316
318
|
|
|
317
319
|
# authentication setting
|
|
318
320
|
_auth_settings: List[str] = [
|
|
319
|
-
'ClientLanguage',
|
|
320
321
|
'Accept',
|
|
321
|
-
'
|
|
322
|
-
'SecFetchDest',
|
|
322
|
+
'ClientLanguage',
|
|
323
323
|
'Referer',
|
|
324
|
+
'SecFetchDest',
|
|
324
325
|
'SecChUaPlatform',
|
|
325
326
|
'SecFetchMode',
|
|
326
327
|
'CsrfToken',
|
|
327
|
-
'
|
|
328
|
+
'ClientUuid',
|
|
328
329
|
'BearerAuth',
|
|
330
|
+
'GuestToken',
|
|
329
331
|
'SecChUa',
|
|
330
|
-
'
|
|
332
|
+
'CookieGt0',
|
|
333
|
+
'ClientTransactionId',
|
|
331
334
|
'ActiveUser',
|
|
335
|
+
'CookieCt0',
|
|
332
336
|
'UserAgent',
|
|
333
337
|
'AcceptLanguage',
|
|
334
338
|
'SecFetchSite',
|
|
335
|
-
'CookieAuthToken',
|
|
336
339
|
'AuthType',
|
|
340
|
+
'CookieAuthToken',
|
|
337
341
|
'SecChUaMobile',
|
|
338
342
|
'AcceptEncoding'
|
|
339
343
|
]
|
|
@@ -597,7 +601,9 @@ class TweetApi:
|
|
|
597
601
|
_query_params: List[Tuple[str, str]] = []
|
|
598
602
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
599
603
|
_form_params: List[Tuple[str, str]] = []
|
|
600
|
-
_files: Dict[
|
|
604
|
+
_files: Dict[
|
|
605
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
606
|
+
] = {}
|
|
601
607
|
_body_params: Optional[bytes] = None
|
|
602
608
|
|
|
603
609
|
# process the path parameters
|
|
@@ -628,24 +634,26 @@ class TweetApi:
|
|
|
628
634
|
|
|
629
635
|
# authentication setting
|
|
630
636
|
_auth_settings: List[str] = [
|
|
631
|
-
'ClientLanguage',
|
|
632
637
|
'Accept',
|
|
633
|
-
'
|
|
634
|
-
'SecFetchDest',
|
|
638
|
+
'ClientLanguage',
|
|
635
639
|
'Referer',
|
|
640
|
+
'SecFetchDest',
|
|
636
641
|
'SecChUaPlatform',
|
|
637
642
|
'SecFetchMode',
|
|
638
643
|
'CsrfToken',
|
|
639
|
-
'
|
|
644
|
+
'ClientUuid',
|
|
640
645
|
'BearerAuth',
|
|
646
|
+
'GuestToken',
|
|
641
647
|
'SecChUa',
|
|
642
|
-
'
|
|
648
|
+
'CookieGt0',
|
|
649
|
+
'ClientTransactionId',
|
|
643
650
|
'ActiveUser',
|
|
651
|
+
'CookieCt0',
|
|
644
652
|
'UserAgent',
|
|
645
653
|
'AcceptLanguage',
|
|
646
654
|
'SecFetchSite',
|
|
647
|
-
'CookieAuthToken',
|
|
648
655
|
'AuthType',
|
|
656
|
+
'CookieAuthToken',
|
|
649
657
|
'SecChUaMobile',
|
|
650
658
|
'AcceptEncoding'
|
|
651
659
|
]
|
|
@@ -909,7 +917,9 @@ class TweetApi:
|
|
|
909
917
|
_query_params: List[Tuple[str, str]] = []
|
|
910
918
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
911
919
|
_form_params: List[Tuple[str, str]] = []
|
|
912
|
-
_files: Dict[
|
|
920
|
+
_files: Dict[
|
|
921
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
922
|
+
] = {}
|
|
913
923
|
_body_params: Optional[bytes] = None
|
|
914
924
|
|
|
915
925
|
# process the path parameters
|
|
@@ -940,24 +950,26 @@ class TweetApi:
|
|
|
940
950
|
|
|
941
951
|
# authentication setting
|
|
942
952
|
_auth_settings: List[str] = [
|
|
943
|
-
'ClientLanguage',
|
|
944
953
|
'Accept',
|
|
945
|
-
'
|
|
946
|
-
'SecFetchDest',
|
|
954
|
+
'ClientLanguage',
|
|
947
955
|
'Referer',
|
|
956
|
+
'SecFetchDest',
|
|
948
957
|
'SecChUaPlatform',
|
|
949
958
|
'SecFetchMode',
|
|
950
959
|
'CsrfToken',
|
|
951
|
-
'
|
|
960
|
+
'ClientUuid',
|
|
952
961
|
'BearerAuth',
|
|
962
|
+
'GuestToken',
|
|
953
963
|
'SecChUa',
|
|
954
|
-
'
|
|
964
|
+
'CookieGt0',
|
|
965
|
+
'ClientTransactionId',
|
|
955
966
|
'ActiveUser',
|
|
967
|
+
'CookieCt0',
|
|
956
968
|
'UserAgent',
|
|
957
969
|
'AcceptLanguage',
|
|
958
970
|
'SecFetchSite',
|
|
959
|
-
'CookieAuthToken',
|
|
960
971
|
'AuthType',
|
|
972
|
+
'CookieAuthToken',
|
|
961
973
|
'SecChUaMobile',
|
|
962
974
|
'AcceptEncoding'
|
|
963
975
|
]
|
|
@@ -986,6 +998,7 @@ class TweetApi:
|
|
|
986
998
|
path_query_id: StrictStr,
|
|
987
999
|
variables: StrictStr,
|
|
988
1000
|
features: StrictStr,
|
|
1001
|
+
field_toggles: StrictStr,
|
|
989
1002
|
_request_timeout: Union[
|
|
990
1003
|
None,
|
|
991
1004
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1009,6 +1022,8 @@ class TweetApi:
|
|
|
1009
1022
|
:type variables: str
|
|
1010
1023
|
:param features: (required)
|
|
1011
1024
|
:type features: str
|
|
1025
|
+
:param field_toggles: (required)
|
|
1026
|
+
:type field_toggles: str
|
|
1012
1027
|
:param _request_timeout: timeout setting for this request. If one
|
|
1013
1028
|
number provided, it will be total request
|
|
1014
1029
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1035,6 +1050,7 @@ class TweetApi:
|
|
|
1035
1050
|
path_query_id=path_query_id,
|
|
1036
1051
|
variables=variables,
|
|
1037
1052
|
features=features,
|
|
1053
|
+
field_toggles=field_toggles,
|
|
1038
1054
|
_request_auth=_request_auth,
|
|
1039
1055
|
_content_type=_content_type,
|
|
1040
1056
|
_headers=_headers,
|
|
@@ -1061,6 +1077,7 @@ class TweetApi:
|
|
|
1061
1077
|
path_query_id: StrictStr,
|
|
1062
1078
|
variables: StrictStr,
|
|
1063
1079
|
features: StrictStr,
|
|
1080
|
+
field_toggles: StrictStr,
|
|
1064
1081
|
_request_timeout: Union[
|
|
1065
1082
|
None,
|
|
1066
1083
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1084,6 +1101,8 @@ class TweetApi:
|
|
|
1084
1101
|
:type variables: str
|
|
1085
1102
|
:param features: (required)
|
|
1086
1103
|
:type features: str
|
|
1104
|
+
:param field_toggles: (required)
|
|
1105
|
+
:type field_toggles: str
|
|
1087
1106
|
:param _request_timeout: timeout setting for this request. If one
|
|
1088
1107
|
number provided, it will be total request
|
|
1089
1108
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1110,6 +1129,7 @@ class TweetApi:
|
|
|
1110
1129
|
path_query_id=path_query_id,
|
|
1111
1130
|
variables=variables,
|
|
1112
1131
|
features=features,
|
|
1132
|
+
field_toggles=field_toggles,
|
|
1113
1133
|
_request_auth=_request_auth,
|
|
1114
1134
|
_content_type=_content_type,
|
|
1115
1135
|
_headers=_headers,
|
|
@@ -1136,6 +1156,7 @@ class TweetApi:
|
|
|
1136
1156
|
path_query_id: StrictStr,
|
|
1137
1157
|
variables: StrictStr,
|
|
1138
1158
|
features: StrictStr,
|
|
1159
|
+
field_toggles: StrictStr,
|
|
1139
1160
|
_request_timeout: Union[
|
|
1140
1161
|
None,
|
|
1141
1162
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1159,6 +1180,8 @@ class TweetApi:
|
|
|
1159
1180
|
:type variables: str
|
|
1160
1181
|
:param features: (required)
|
|
1161
1182
|
:type features: str
|
|
1183
|
+
:param field_toggles: (required)
|
|
1184
|
+
:type field_toggles: str
|
|
1162
1185
|
:param _request_timeout: timeout setting for this request. If one
|
|
1163
1186
|
number provided, it will be total request
|
|
1164
1187
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1185,6 +1208,7 @@ class TweetApi:
|
|
|
1185
1208
|
path_query_id=path_query_id,
|
|
1186
1209
|
variables=variables,
|
|
1187
1210
|
features=features,
|
|
1211
|
+
field_toggles=field_toggles,
|
|
1188
1212
|
_request_auth=_request_auth,
|
|
1189
1213
|
_content_type=_content_type,
|
|
1190
1214
|
_headers=_headers,
|
|
@@ -1206,6 +1230,7 @@ class TweetApi:
|
|
|
1206
1230
|
path_query_id,
|
|
1207
1231
|
variables,
|
|
1208
1232
|
features,
|
|
1233
|
+
field_toggles,
|
|
1209
1234
|
_request_auth,
|
|
1210
1235
|
_content_type,
|
|
1211
1236
|
_headers,
|
|
@@ -1221,7 +1246,9 @@ class TweetApi:
|
|
|
1221
1246
|
_query_params: List[Tuple[str, str]] = []
|
|
1222
1247
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1223
1248
|
_form_params: List[Tuple[str, str]] = []
|
|
1224
|
-
_files: Dict[
|
|
1249
|
+
_files: Dict[
|
|
1250
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1251
|
+
] = {}
|
|
1225
1252
|
_body_params: Optional[bytes] = None
|
|
1226
1253
|
|
|
1227
1254
|
# process the path parameters
|
|
@@ -1236,6 +1263,10 @@ class TweetApi:
|
|
|
1236
1263
|
|
|
1237
1264
|
_query_params.append(('features', features))
|
|
1238
1265
|
|
|
1266
|
+
if field_toggles is not None:
|
|
1267
|
+
|
|
1268
|
+
_query_params.append(('fieldToggles', field_toggles))
|
|
1269
|
+
|
|
1239
1270
|
# process the header parameters
|
|
1240
1271
|
# process the form parameters
|
|
1241
1272
|
# process the body parameter
|
|
@@ -1252,24 +1283,26 @@ class TweetApi:
|
|
|
1252
1283
|
|
|
1253
1284
|
# authentication setting
|
|
1254
1285
|
_auth_settings: List[str] = [
|
|
1255
|
-
'ClientLanguage',
|
|
1256
1286
|
'Accept',
|
|
1257
|
-
'
|
|
1258
|
-
'SecFetchDest',
|
|
1287
|
+
'ClientLanguage',
|
|
1259
1288
|
'Referer',
|
|
1289
|
+
'SecFetchDest',
|
|
1260
1290
|
'SecChUaPlatform',
|
|
1261
1291
|
'SecFetchMode',
|
|
1262
1292
|
'CsrfToken',
|
|
1263
|
-
'
|
|
1293
|
+
'ClientUuid',
|
|
1264
1294
|
'BearerAuth',
|
|
1295
|
+
'GuestToken',
|
|
1265
1296
|
'SecChUa',
|
|
1266
|
-
'
|
|
1297
|
+
'CookieGt0',
|
|
1298
|
+
'ClientTransactionId',
|
|
1267
1299
|
'ActiveUser',
|
|
1300
|
+
'CookieCt0',
|
|
1268
1301
|
'UserAgent',
|
|
1269
1302
|
'AcceptLanguage',
|
|
1270
1303
|
'SecFetchSite',
|
|
1271
|
-
'CookieAuthToken',
|
|
1272
1304
|
'AuthType',
|
|
1305
|
+
'CookieAuthToken',
|
|
1273
1306
|
'SecChUaMobile',
|
|
1274
1307
|
'AcceptEncoding'
|
|
1275
1308
|
]
|
|
@@ -1533,7 +1566,9 @@ class TweetApi:
|
|
|
1533
1566
|
_query_params: List[Tuple[str, str]] = []
|
|
1534
1567
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1535
1568
|
_form_params: List[Tuple[str, str]] = []
|
|
1536
|
-
_files: Dict[
|
|
1569
|
+
_files: Dict[
|
|
1570
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1571
|
+
] = {}
|
|
1537
1572
|
_body_params: Optional[bytes] = None
|
|
1538
1573
|
|
|
1539
1574
|
# process the path parameters
|
|
@@ -1564,24 +1599,26 @@ class TweetApi:
|
|
|
1564
1599
|
|
|
1565
1600
|
# authentication setting
|
|
1566
1601
|
_auth_settings: List[str] = [
|
|
1567
|
-
'ClientLanguage',
|
|
1568
1602
|
'Accept',
|
|
1569
|
-
'
|
|
1570
|
-
'SecFetchDest',
|
|
1603
|
+
'ClientLanguage',
|
|
1571
1604
|
'Referer',
|
|
1605
|
+
'SecFetchDest',
|
|
1572
1606
|
'SecChUaPlatform',
|
|
1573
1607
|
'SecFetchMode',
|
|
1574
1608
|
'CsrfToken',
|
|
1575
|
-
'
|
|
1609
|
+
'ClientUuid',
|
|
1576
1610
|
'BearerAuth',
|
|
1611
|
+
'GuestToken',
|
|
1577
1612
|
'SecChUa',
|
|
1578
|
-
'
|
|
1613
|
+
'CookieGt0',
|
|
1614
|
+
'ClientTransactionId',
|
|
1579
1615
|
'ActiveUser',
|
|
1616
|
+
'CookieCt0',
|
|
1580
1617
|
'UserAgent',
|
|
1581
1618
|
'AcceptLanguage',
|
|
1582
1619
|
'SecFetchSite',
|
|
1583
|
-
'CookieAuthToken',
|
|
1584
1620
|
'AuthType',
|
|
1621
|
+
'CookieAuthToken',
|
|
1585
1622
|
'SecChUaMobile',
|
|
1586
1623
|
'AcceptEncoding'
|
|
1587
1624
|
]
|
|
@@ -1845,7 +1882,9 @@ class TweetApi:
|
|
|
1845
1882
|
_query_params: List[Tuple[str, str]] = []
|
|
1846
1883
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1847
1884
|
_form_params: List[Tuple[str, str]] = []
|
|
1848
|
-
_files: Dict[
|
|
1885
|
+
_files: Dict[
|
|
1886
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1887
|
+
] = {}
|
|
1849
1888
|
_body_params: Optional[bytes] = None
|
|
1850
1889
|
|
|
1851
1890
|
# process the path parameters
|
|
@@ -1876,24 +1915,26 @@ class TweetApi:
|
|
|
1876
1915
|
|
|
1877
1916
|
# authentication setting
|
|
1878
1917
|
_auth_settings: List[str] = [
|
|
1879
|
-
'ClientLanguage',
|
|
1880
1918
|
'Accept',
|
|
1881
|
-
'
|
|
1882
|
-
'SecFetchDest',
|
|
1919
|
+
'ClientLanguage',
|
|
1883
1920
|
'Referer',
|
|
1921
|
+
'SecFetchDest',
|
|
1884
1922
|
'SecChUaPlatform',
|
|
1885
1923
|
'SecFetchMode',
|
|
1886
1924
|
'CsrfToken',
|
|
1887
|
-
'
|
|
1925
|
+
'ClientUuid',
|
|
1888
1926
|
'BearerAuth',
|
|
1927
|
+
'GuestToken',
|
|
1889
1928
|
'SecChUa',
|
|
1890
|
-
'
|
|
1929
|
+
'CookieGt0',
|
|
1930
|
+
'ClientTransactionId',
|
|
1891
1931
|
'ActiveUser',
|
|
1932
|
+
'CookieCt0',
|
|
1892
1933
|
'UserAgent',
|
|
1893
1934
|
'AcceptLanguage',
|
|
1894
1935
|
'SecFetchSite',
|
|
1895
|
-
'CookieAuthToken',
|
|
1896
1936
|
'AuthType',
|
|
1937
|
+
'CookieAuthToken',
|
|
1897
1938
|
'SecChUaMobile',
|
|
1898
1939
|
'AcceptEncoding'
|
|
1899
1940
|
]
|
|
@@ -2170,7 +2211,9 @@ class TweetApi:
|
|
|
2170
2211
|
_query_params: List[Tuple[str, str]] = []
|
|
2171
2212
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2172
2213
|
_form_params: List[Tuple[str, str]] = []
|
|
2173
|
-
_files: Dict[
|
|
2214
|
+
_files: Dict[
|
|
2215
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2216
|
+
] = {}
|
|
2174
2217
|
_body_params: Optional[bytes] = None
|
|
2175
2218
|
|
|
2176
2219
|
# process the path parameters
|
|
@@ -2205,24 +2248,26 @@ class TweetApi:
|
|
|
2205
2248
|
|
|
2206
2249
|
# authentication setting
|
|
2207
2250
|
_auth_settings: List[str] = [
|
|
2208
|
-
'ClientLanguage',
|
|
2209
2251
|
'Accept',
|
|
2210
|
-
'
|
|
2211
|
-
'SecFetchDest',
|
|
2252
|
+
'ClientLanguage',
|
|
2212
2253
|
'Referer',
|
|
2254
|
+
'SecFetchDest',
|
|
2213
2255
|
'SecChUaPlatform',
|
|
2214
2256
|
'SecFetchMode',
|
|
2215
2257
|
'CsrfToken',
|
|
2216
|
-
'
|
|
2258
|
+
'ClientUuid',
|
|
2217
2259
|
'BearerAuth',
|
|
2260
|
+
'GuestToken',
|
|
2218
2261
|
'SecChUa',
|
|
2219
|
-
'
|
|
2262
|
+
'CookieGt0',
|
|
2263
|
+
'ClientTransactionId',
|
|
2220
2264
|
'ActiveUser',
|
|
2265
|
+
'CookieCt0',
|
|
2221
2266
|
'UserAgent',
|
|
2222
2267
|
'AcceptLanguage',
|
|
2223
2268
|
'SecFetchSite',
|
|
2224
|
-
'CookieAuthToken',
|
|
2225
2269
|
'AuthType',
|
|
2270
|
+
'CookieAuthToken',
|
|
2226
2271
|
'SecChUaMobile',
|
|
2227
2272
|
'AcceptEncoding'
|
|
2228
2273
|
]
|
|
@@ -2486,7 +2531,9 @@ class TweetApi:
|
|
|
2486
2531
|
_query_params: List[Tuple[str, str]] = []
|
|
2487
2532
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2488
2533
|
_form_params: List[Tuple[str, str]] = []
|
|
2489
|
-
_files: Dict[
|
|
2534
|
+
_files: Dict[
|
|
2535
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2536
|
+
] = {}
|
|
2490
2537
|
_body_params: Optional[bytes] = None
|
|
2491
2538
|
|
|
2492
2539
|
# process the path parameters
|
|
@@ -2517,24 +2564,26 @@ class TweetApi:
|
|
|
2517
2564
|
|
|
2518
2565
|
# authentication setting
|
|
2519
2566
|
_auth_settings: List[str] = [
|
|
2520
|
-
'ClientLanguage',
|
|
2521
2567
|
'Accept',
|
|
2522
|
-
'
|
|
2523
|
-
'SecFetchDest',
|
|
2568
|
+
'ClientLanguage',
|
|
2524
2569
|
'Referer',
|
|
2570
|
+
'SecFetchDest',
|
|
2525
2571
|
'SecChUaPlatform',
|
|
2526
2572
|
'SecFetchMode',
|
|
2527
2573
|
'CsrfToken',
|
|
2528
|
-
'
|
|
2574
|
+
'ClientUuid',
|
|
2529
2575
|
'BearerAuth',
|
|
2576
|
+
'GuestToken',
|
|
2530
2577
|
'SecChUa',
|
|
2531
|
-
'
|
|
2578
|
+
'CookieGt0',
|
|
2579
|
+
'ClientTransactionId',
|
|
2532
2580
|
'ActiveUser',
|
|
2581
|
+
'CookieCt0',
|
|
2533
2582
|
'UserAgent',
|
|
2534
2583
|
'AcceptLanguage',
|
|
2535
2584
|
'SecFetchSite',
|
|
2536
|
-
'CookieAuthToken',
|
|
2537
2585
|
'AuthType',
|
|
2586
|
+
'CookieAuthToken',
|
|
2538
2587
|
'SecChUaMobile',
|
|
2539
2588
|
'AcceptEncoding'
|
|
2540
2589
|
]
|
|
@@ -2563,6 +2612,7 @@ class TweetApi:
|
|
|
2563
2612
|
path_query_id: StrictStr,
|
|
2564
2613
|
variables: StrictStr,
|
|
2565
2614
|
features: StrictStr,
|
|
2615
|
+
field_toggles: StrictStr,
|
|
2566
2616
|
_request_timeout: Union[
|
|
2567
2617
|
None,
|
|
2568
2618
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2586,6 +2636,8 @@ class TweetApi:
|
|
|
2586
2636
|
:type variables: str
|
|
2587
2637
|
:param features: (required)
|
|
2588
2638
|
:type features: str
|
|
2639
|
+
:param field_toggles: (required)
|
|
2640
|
+
:type field_toggles: str
|
|
2589
2641
|
:param _request_timeout: timeout setting for this request. If one
|
|
2590
2642
|
number provided, it will be total request
|
|
2591
2643
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2612,6 +2664,7 @@ class TweetApi:
|
|
|
2612
2664
|
path_query_id=path_query_id,
|
|
2613
2665
|
variables=variables,
|
|
2614
2666
|
features=features,
|
|
2667
|
+
field_toggles=field_toggles,
|
|
2615
2668
|
_request_auth=_request_auth,
|
|
2616
2669
|
_content_type=_content_type,
|
|
2617
2670
|
_headers=_headers,
|
|
@@ -2638,6 +2691,7 @@ class TweetApi:
|
|
|
2638
2691
|
path_query_id: StrictStr,
|
|
2639
2692
|
variables: StrictStr,
|
|
2640
2693
|
features: StrictStr,
|
|
2694
|
+
field_toggles: StrictStr,
|
|
2641
2695
|
_request_timeout: Union[
|
|
2642
2696
|
None,
|
|
2643
2697
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2661,6 +2715,8 @@ class TweetApi:
|
|
|
2661
2715
|
:type variables: str
|
|
2662
2716
|
:param features: (required)
|
|
2663
2717
|
:type features: str
|
|
2718
|
+
:param field_toggles: (required)
|
|
2719
|
+
:type field_toggles: str
|
|
2664
2720
|
:param _request_timeout: timeout setting for this request. If one
|
|
2665
2721
|
number provided, it will be total request
|
|
2666
2722
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2687,6 +2743,7 @@ class TweetApi:
|
|
|
2687
2743
|
path_query_id=path_query_id,
|
|
2688
2744
|
variables=variables,
|
|
2689
2745
|
features=features,
|
|
2746
|
+
field_toggles=field_toggles,
|
|
2690
2747
|
_request_auth=_request_auth,
|
|
2691
2748
|
_content_type=_content_type,
|
|
2692
2749
|
_headers=_headers,
|
|
@@ -2713,6 +2770,7 @@ class TweetApi:
|
|
|
2713
2770
|
path_query_id: StrictStr,
|
|
2714
2771
|
variables: StrictStr,
|
|
2715
2772
|
features: StrictStr,
|
|
2773
|
+
field_toggles: StrictStr,
|
|
2716
2774
|
_request_timeout: Union[
|
|
2717
2775
|
None,
|
|
2718
2776
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2736,6 +2794,8 @@ class TweetApi:
|
|
|
2736
2794
|
:type variables: str
|
|
2737
2795
|
:param features: (required)
|
|
2738
2796
|
:type features: str
|
|
2797
|
+
:param field_toggles: (required)
|
|
2798
|
+
:type field_toggles: str
|
|
2739
2799
|
:param _request_timeout: timeout setting for this request. If one
|
|
2740
2800
|
number provided, it will be total request
|
|
2741
2801
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2762,6 +2822,7 @@ class TweetApi:
|
|
|
2762
2822
|
path_query_id=path_query_id,
|
|
2763
2823
|
variables=variables,
|
|
2764
2824
|
features=features,
|
|
2825
|
+
field_toggles=field_toggles,
|
|
2765
2826
|
_request_auth=_request_auth,
|
|
2766
2827
|
_content_type=_content_type,
|
|
2767
2828
|
_headers=_headers,
|
|
@@ -2783,6 +2844,7 @@ class TweetApi:
|
|
|
2783
2844
|
path_query_id,
|
|
2784
2845
|
variables,
|
|
2785
2846
|
features,
|
|
2847
|
+
field_toggles,
|
|
2786
2848
|
_request_auth,
|
|
2787
2849
|
_content_type,
|
|
2788
2850
|
_headers,
|
|
@@ -2798,7 +2860,9 @@ class TweetApi:
|
|
|
2798
2860
|
_query_params: List[Tuple[str, str]] = []
|
|
2799
2861
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2800
2862
|
_form_params: List[Tuple[str, str]] = []
|
|
2801
|
-
_files: Dict[
|
|
2863
|
+
_files: Dict[
|
|
2864
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2865
|
+
] = {}
|
|
2802
2866
|
_body_params: Optional[bytes] = None
|
|
2803
2867
|
|
|
2804
2868
|
# process the path parameters
|
|
@@ -2813,6 +2877,10 @@ class TweetApi:
|
|
|
2813
2877
|
|
|
2814
2878
|
_query_params.append(('features', features))
|
|
2815
2879
|
|
|
2880
|
+
if field_toggles is not None:
|
|
2881
|
+
|
|
2882
|
+
_query_params.append(('fieldToggles', field_toggles))
|
|
2883
|
+
|
|
2816
2884
|
# process the header parameters
|
|
2817
2885
|
# process the form parameters
|
|
2818
2886
|
# process the body parameter
|
|
@@ -2829,24 +2897,26 @@ class TweetApi:
|
|
|
2829
2897
|
|
|
2830
2898
|
# authentication setting
|
|
2831
2899
|
_auth_settings: List[str] = [
|
|
2832
|
-
'ClientLanguage',
|
|
2833
2900
|
'Accept',
|
|
2834
|
-
'
|
|
2835
|
-
'SecFetchDest',
|
|
2901
|
+
'ClientLanguage',
|
|
2836
2902
|
'Referer',
|
|
2903
|
+
'SecFetchDest',
|
|
2837
2904
|
'SecChUaPlatform',
|
|
2838
2905
|
'SecFetchMode',
|
|
2839
2906
|
'CsrfToken',
|
|
2840
|
-
'
|
|
2907
|
+
'ClientUuid',
|
|
2841
2908
|
'BearerAuth',
|
|
2909
|
+
'GuestToken',
|
|
2842
2910
|
'SecChUa',
|
|
2843
|
-
'
|
|
2911
|
+
'CookieGt0',
|
|
2912
|
+
'ClientTransactionId',
|
|
2844
2913
|
'ActiveUser',
|
|
2914
|
+
'CookieCt0',
|
|
2845
2915
|
'UserAgent',
|
|
2846
2916
|
'AcceptLanguage',
|
|
2847
2917
|
'SecFetchSite',
|
|
2848
|
-
'CookieAuthToken',
|
|
2849
2918
|
'AuthType',
|
|
2919
|
+
'CookieAuthToken',
|
|
2850
2920
|
'SecChUaMobile',
|
|
2851
2921
|
'AcceptEncoding'
|
|
2852
2922
|
]
|
|
@@ -2875,6 +2945,7 @@ class TweetApi:
|
|
|
2875
2945
|
path_query_id: StrictStr,
|
|
2876
2946
|
variables: StrictStr,
|
|
2877
2947
|
features: StrictStr,
|
|
2948
|
+
field_toggles: StrictStr,
|
|
2878
2949
|
_request_timeout: Union[
|
|
2879
2950
|
None,
|
|
2880
2951
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2898,6 +2969,8 @@ class TweetApi:
|
|
|
2898
2969
|
:type variables: str
|
|
2899
2970
|
:param features: (required)
|
|
2900
2971
|
:type features: str
|
|
2972
|
+
:param field_toggles: (required)
|
|
2973
|
+
:type field_toggles: str
|
|
2901
2974
|
:param _request_timeout: timeout setting for this request. If one
|
|
2902
2975
|
number provided, it will be total request
|
|
2903
2976
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2924,6 +2997,7 @@ class TweetApi:
|
|
|
2924
2997
|
path_query_id=path_query_id,
|
|
2925
2998
|
variables=variables,
|
|
2926
2999
|
features=features,
|
|
3000
|
+
field_toggles=field_toggles,
|
|
2927
3001
|
_request_auth=_request_auth,
|
|
2928
3002
|
_content_type=_content_type,
|
|
2929
3003
|
_headers=_headers,
|
|
@@ -2950,6 +3024,7 @@ class TweetApi:
|
|
|
2950
3024
|
path_query_id: StrictStr,
|
|
2951
3025
|
variables: StrictStr,
|
|
2952
3026
|
features: StrictStr,
|
|
3027
|
+
field_toggles: StrictStr,
|
|
2953
3028
|
_request_timeout: Union[
|
|
2954
3029
|
None,
|
|
2955
3030
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2973,6 +3048,8 @@ class TweetApi:
|
|
|
2973
3048
|
:type variables: str
|
|
2974
3049
|
:param features: (required)
|
|
2975
3050
|
:type features: str
|
|
3051
|
+
:param field_toggles: (required)
|
|
3052
|
+
:type field_toggles: str
|
|
2976
3053
|
:param _request_timeout: timeout setting for this request. If one
|
|
2977
3054
|
number provided, it will be total request
|
|
2978
3055
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2999,6 +3076,7 @@ class TweetApi:
|
|
|
2999
3076
|
path_query_id=path_query_id,
|
|
3000
3077
|
variables=variables,
|
|
3001
3078
|
features=features,
|
|
3079
|
+
field_toggles=field_toggles,
|
|
3002
3080
|
_request_auth=_request_auth,
|
|
3003
3081
|
_content_type=_content_type,
|
|
3004
3082
|
_headers=_headers,
|
|
@@ -3025,6 +3103,7 @@ class TweetApi:
|
|
|
3025
3103
|
path_query_id: StrictStr,
|
|
3026
3104
|
variables: StrictStr,
|
|
3027
3105
|
features: StrictStr,
|
|
3106
|
+
field_toggles: StrictStr,
|
|
3028
3107
|
_request_timeout: Union[
|
|
3029
3108
|
None,
|
|
3030
3109
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3048,6 +3127,8 @@ class TweetApi:
|
|
|
3048
3127
|
:type variables: str
|
|
3049
3128
|
:param features: (required)
|
|
3050
3129
|
:type features: str
|
|
3130
|
+
:param field_toggles: (required)
|
|
3131
|
+
:type field_toggles: str
|
|
3051
3132
|
:param _request_timeout: timeout setting for this request. If one
|
|
3052
3133
|
number provided, it will be total request
|
|
3053
3134
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3074,6 +3155,7 @@ class TweetApi:
|
|
|
3074
3155
|
path_query_id=path_query_id,
|
|
3075
3156
|
variables=variables,
|
|
3076
3157
|
features=features,
|
|
3158
|
+
field_toggles=field_toggles,
|
|
3077
3159
|
_request_auth=_request_auth,
|
|
3078
3160
|
_content_type=_content_type,
|
|
3079
3161
|
_headers=_headers,
|
|
@@ -3095,6 +3177,7 @@ class TweetApi:
|
|
|
3095
3177
|
path_query_id,
|
|
3096
3178
|
variables,
|
|
3097
3179
|
features,
|
|
3180
|
+
field_toggles,
|
|
3098
3181
|
_request_auth,
|
|
3099
3182
|
_content_type,
|
|
3100
3183
|
_headers,
|
|
@@ -3110,7 +3193,9 @@ class TweetApi:
|
|
|
3110
3193
|
_query_params: List[Tuple[str, str]] = []
|
|
3111
3194
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3112
3195
|
_form_params: List[Tuple[str, str]] = []
|
|
3113
|
-
_files: Dict[
|
|
3196
|
+
_files: Dict[
|
|
3197
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3198
|
+
] = {}
|
|
3114
3199
|
_body_params: Optional[bytes] = None
|
|
3115
3200
|
|
|
3116
3201
|
# process the path parameters
|
|
@@ -3125,6 +3210,10 @@ class TweetApi:
|
|
|
3125
3210
|
|
|
3126
3211
|
_query_params.append(('features', features))
|
|
3127
3212
|
|
|
3213
|
+
if field_toggles is not None:
|
|
3214
|
+
|
|
3215
|
+
_query_params.append(('fieldToggles', field_toggles))
|
|
3216
|
+
|
|
3128
3217
|
# process the header parameters
|
|
3129
3218
|
# process the form parameters
|
|
3130
3219
|
# process the body parameter
|
|
@@ -3141,24 +3230,26 @@ class TweetApi:
|
|
|
3141
3230
|
|
|
3142
3231
|
# authentication setting
|
|
3143
3232
|
_auth_settings: List[str] = [
|
|
3144
|
-
'ClientLanguage',
|
|
3145
3233
|
'Accept',
|
|
3146
|
-
'
|
|
3147
|
-
'SecFetchDest',
|
|
3234
|
+
'ClientLanguage',
|
|
3148
3235
|
'Referer',
|
|
3236
|
+
'SecFetchDest',
|
|
3149
3237
|
'SecChUaPlatform',
|
|
3150
3238
|
'SecFetchMode',
|
|
3151
3239
|
'CsrfToken',
|
|
3152
|
-
'
|
|
3240
|
+
'ClientUuid',
|
|
3153
3241
|
'BearerAuth',
|
|
3242
|
+
'GuestToken',
|
|
3154
3243
|
'SecChUa',
|
|
3155
|
-
'
|
|
3244
|
+
'CookieGt0',
|
|
3245
|
+
'ClientTransactionId',
|
|
3156
3246
|
'ActiveUser',
|
|
3247
|
+
'CookieCt0',
|
|
3157
3248
|
'UserAgent',
|
|
3158
3249
|
'AcceptLanguage',
|
|
3159
3250
|
'SecFetchSite',
|
|
3160
|
-
'CookieAuthToken',
|
|
3161
3251
|
'AuthType',
|
|
3252
|
+
'CookieAuthToken',
|
|
3162
3253
|
'SecChUaMobile',
|
|
3163
3254
|
'AcceptEncoding'
|
|
3164
3255
|
]
|
|
@@ -3187,6 +3278,7 @@ class TweetApi:
|
|
|
3187
3278
|
path_query_id: StrictStr,
|
|
3188
3279
|
variables: StrictStr,
|
|
3189
3280
|
features: StrictStr,
|
|
3281
|
+
field_toggles: StrictStr,
|
|
3190
3282
|
_request_timeout: Union[
|
|
3191
3283
|
None,
|
|
3192
3284
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3210,6 +3302,8 @@ class TweetApi:
|
|
|
3210
3302
|
:type variables: str
|
|
3211
3303
|
:param features: (required)
|
|
3212
3304
|
:type features: str
|
|
3305
|
+
:param field_toggles: (required)
|
|
3306
|
+
:type field_toggles: str
|
|
3213
3307
|
:param _request_timeout: timeout setting for this request. If one
|
|
3214
3308
|
number provided, it will be total request
|
|
3215
3309
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3236,6 +3330,7 @@ class TweetApi:
|
|
|
3236
3330
|
path_query_id=path_query_id,
|
|
3237
3331
|
variables=variables,
|
|
3238
3332
|
features=features,
|
|
3333
|
+
field_toggles=field_toggles,
|
|
3239
3334
|
_request_auth=_request_auth,
|
|
3240
3335
|
_content_type=_content_type,
|
|
3241
3336
|
_headers=_headers,
|
|
@@ -3262,6 +3357,7 @@ class TweetApi:
|
|
|
3262
3357
|
path_query_id: StrictStr,
|
|
3263
3358
|
variables: StrictStr,
|
|
3264
3359
|
features: StrictStr,
|
|
3360
|
+
field_toggles: StrictStr,
|
|
3265
3361
|
_request_timeout: Union[
|
|
3266
3362
|
None,
|
|
3267
3363
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3285,6 +3381,8 @@ class TweetApi:
|
|
|
3285
3381
|
:type variables: str
|
|
3286
3382
|
:param features: (required)
|
|
3287
3383
|
:type features: str
|
|
3384
|
+
:param field_toggles: (required)
|
|
3385
|
+
:type field_toggles: str
|
|
3288
3386
|
:param _request_timeout: timeout setting for this request. If one
|
|
3289
3387
|
number provided, it will be total request
|
|
3290
3388
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3311,6 +3409,7 @@ class TweetApi:
|
|
|
3311
3409
|
path_query_id=path_query_id,
|
|
3312
3410
|
variables=variables,
|
|
3313
3411
|
features=features,
|
|
3412
|
+
field_toggles=field_toggles,
|
|
3314
3413
|
_request_auth=_request_auth,
|
|
3315
3414
|
_content_type=_content_type,
|
|
3316
3415
|
_headers=_headers,
|
|
@@ -3337,6 +3436,7 @@ class TweetApi:
|
|
|
3337
3436
|
path_query_id: StrictStr,
|
|
3338
3437
|
variables: StrictStr,
|
|
3339
3438
|
features: StrictStr,
|
|
3439
|
+
field_toggles: StrictStr,
|
|
3340
3440
|
_request_timeout: Union[
|
|
3341
3441
|
None,
|
|
3342
3442
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3360,6 +3460,8 @@ class TweetApi:
|
|
|
3360
3460
|
:type variables: str
|
|
3361
3461
|
:param features: (required)
|
|
3362
3462
|
:type features: str
|
|
3463
|
+
:param field_toggles: (required)
|
|
3464
|
+
:type field_toggles: str
|
|
3363
3465
|
:param _request_timeout: timeout setting for this request. If one
|
|
3364
3466
|
number provided, it will be total request
|
|
3365
3467
|
timeout. It can also be a pair (tuple) of
|
|
@@ -3386,6 +3488,7 @@ class TweetApi:
|
|
|
3386
3488
|
path_query_id=path_query_id,
|
|
3387
3489
|
variables=variables,
|
|
3388
3490
|
features=features,
|
|
3491
|
+
field_toggles=field_toggles,
|
|
3389
3492
|
_request_auth=_request_auth,
|
|
3390
3493
|
_content_type=_content_type,
|
|
3391
3494
|
_headers=_headers,
|
|
@@ -3407,6 +3510,7 @@ class TweetApi:
|
|
|
3407
3510
|
path_query_id,
|
|
3408
3511
|
variables,
|
|
3409
3512
|
features,
|
|
3513
|
+
field_toggles,
|
|
3410
3514
|
_request_auth,
|
|
3411
3515
|
_content_type,
|
|
3412
3516
|
_headers,
|
|
@@ -3422,7 +3526,9 @@ class TweetApi:
|
|
|
3422
3526
|
_query_params: List[Tuple[str, str]] = []
|
|
3423
3527
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3424
3528
|
_form_params: List[Tuple[str, str]] = []
|
|
3425
|
-
_files: Dict[
|
|
3529
|
+
_files: Dict[
|
|
3530
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3531
|
+
] = {}
|
|
3426
3532
|
_body_params: Optional[bytes] = None
|
|
3427
3533
|
|
|
3428
3534
|
# process the path parameters
|
|
@@ -3437,6 +3543,10 @@ class TweetApi:
|
|
|
3437
3543
|
|
|
3438
3544
|
_query_params.append(('features', features))
|
|
3439
3545
|
|
|
3546
|
+
if field_toggles is not None:
|
|
3547
|
+
|
|
3548
|
+
_query_params.append(('fieldToggles', field_toggles))
|
|
3549
|
+
|
|
3440
3550
|
# process the header parameters
|
|
3441
3551
|
# process the form parameters
|
|
3442
3552
|
# process the body parameter
|
|
@@ -3453,24 +3563,26 @@ class TweetApi:
|
|
|
3453
3563
|
|
|
3454
3564
|
# authentication setting
|
|
3455
3565
|
_auth_settings: List[str] = [
|
|
3456
|
-
'ClientLanguage',
|
|
3457
3566
|
'Accept',
|
|
3458
|
-
'
|
|
3459
|
-
'SecFetchDest',
|
|
3567
|
+
'ClientLanguage',
|
|
3460
3568
|
'Referer',
|
|
3569
|
+
'SecFetchDest',
|
|
3461
3570
|
'SecChUaPlatform',
|
|
3462
3571
|
'SecFetchMode',
|
|
3463
3572
|
'CsrfToken',
|
|
3464
|
-
'
|
|
3573
|
+
'ClientUuid',
|
|
3465
3574
|
'BearerAuth',
|
|
3575
|
+
'GuestToken',
|
|
3466
3576
|
'SecChUa',
|
|
3467
|
-
'
|
|
3577
|
+
'CookieGt0',
|
|
3578
|
+
'ClientTransactionId',
|
|
3468
3579
|
'ActiveUser',
|
|
3580
|
+
'CookieCt0',
|
|
3469
3581
|
'UserAgent',
|
|
3470
3582
|
'AcceptLanguage',
|
|
3471
3583
|
'SecFetchSite',
|
|
3472
|
-
'CookieAuthToken',
|
|
3473
3584
|
'AuthType',
|
|
3585
|
+
'CookieAuthToken',
|
|
3474
3586
|
'SecChUaMobile',
|
|
3475
3587
|
'AcceptEncoding'
|
|
3476
3588
|
]
|