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.
Files changed (33) hide show
  1. twitter_openapi_python_generated/__init__.py +3 -1
  2. twitter_openapi_python_generated/api/default_api.py +22 -14
  3. twitter_openapi_python_generated/api/other_api.py +11 -7
  4. twitter_openapi_python_generated/api/post_api.py +88 -56
  5. twitter_openapi_python_generated/api/tweet_api.py +189 -77
  6. twitter_openapi_python_generated/api/user_api.py +22 -14
  7. twitter_openapi_python_generated/api/user_list_api.py +55 -35
  8. twitter_openapi_python_generated/api/users_api.py +11 -7
  9. twitter_openapi_python_generated/api/v11_get_api.py +22 -14
  10. twitter_openapi_python_generated/api/v11_post_api.py +22 -14
  11. twitter_openapi_python_generated/api/v20_get_api.py +11 -7
  12. twitter_openapi_python_generated/api_client.py +13 -4
  13. twitter_openapi_python_generated/configuration.py +28 -10
  14. twitter_openapi_python_generated/models/__init__.py +2 -0
  15. twitter_openapi_python_generated/models/author_community_relationship.py +2 -2
  16. twitter_openapi_python_generated/models/community_actions.py +13 -7
  17. twitter_openapi_python_generated/models/community_data.py +1 -1
  18. twitter_openapi_python_generated/models/community_relationship.py +106 -0
  19. twitter_openapi_python_generated/models/community_unpin_action_result.py +89 -0
  20. twitter_openapi_python_generated/models/cursor_type.py +1 -0
  21. twitter_openapi_python_generated/models/display_treatment.py +5 -3
  22. twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +1 -1
  23. twitter_openapi_python_generated/models/timeline_general_context.py +2 -2
  24. twitter_openapi_python_generated/models/tweet.py +7 -1
  25. twitter_openapi_python_generated/models/type_name.py +1 -0
  26. twitter_openapi_python_generated/models/user_response_data.py +2 -2
  27. twitter_openapi_python_generated/rest.py +1 -1
  28. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/METADATA +6 -6
  29. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/RECORD +33 -31
  30. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/WHEEL +1 -1
  31. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/LICENSE +0 -0
  32. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/LICENSE.AGPL +0 -0
  33. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/top_level.txt +0 -0
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "0.0.21"
18
+ __version__ = "0.0.23"
19
19
 
20
20
  # import apis into sdk package
21
21
  from twitter_openapi_python_generated.api.default_api import DefaultApi
@@ -78,7 +78,9 @@ from twitter_openapi_python_generated.models.community_join_action_result import
78
78
  from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult
79
79
  from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult
80
80
  from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult
81
+ from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship
81
82
  from twitter_openapi_python_generated.models.community_rule import CommunityRule
83
+ from twitter_openapi_python_generated.models.community_unpin_action_result import CommunityUnpinActionResult
82
84
  from twitter_openapi_python_generated.models.community_urls import CommunityUrls
83
85
  from twitter_openapi_python_generated.models.community_urls_permalink import CommunityUrlsPermalink
84
86
  from twitter_openapi_python_generated.models.content_entry_type import ContentEntryType
@@ -280,7 +280,9 @@ class DefaultApi:
280
280
  _query_params: List[Tuple[str, str]] = []
281
281
  _header_params: Dict[str, Optional[str]] = _headers or {}
282
282
  _form_params: List[Tuple[str, str]] = []
283
- _files: Dict[str, Union[str, bytes]] = {}
283
+ _files: Dict[
284
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
285
+ ] = {}
284
286
  _body_params: Optional[bytes] = None
285
287
 
286
288
  # process the path parameters
@@ -311,24 +313,26 @@ class DefaultApi:
311
313
 
312
314
  # authentication setting
313
315
  _auth_settings: List[str] = [
314
- 'ClientLanguage',
315
316
  'Accept',
316
- 'Priority',
317
- 'SecFetchDest',
317
+ 'ClientLanguage',
318
318
  'Referer',
319
+ 'SecFetchDest',
319
320
  'SecChUaPlatform',
320
321
  'SecFetchMode',
321
322
  'CsrfToken',
322
- 'GuestToken',
323
+ 'ClientUuid',
323
324
  'BearerAuth',
325
+ 'GuestToken',
324
326
  'SecChUa',
325
- 'CookieCt0',
327
+ 'CookieGt0',
328
+ 'ClientTransactionId',
326
329
  'ActiveUser',
330
+ 'CookieCt0',
327
331
  'UserAgent',
328
332
  'AcceptLanguage',
329
333
  'SecFetchSite',
330
- 'CookieAuthToken',
331
334
  'AuthType',
335
+ 'CookieAuthToken',
332
336
  'SecChUaMobile',
333
337
  'AcceptEncoding'
334
338
  ]
@@ -605,7 +609,9 @@ class DefaultApi:
605
609
  _query_params: List[Tuple[str, str]] = []
606
610
  _header_params: Dict[str, Optional[str]] = _headers or {}
607
611
  _form_params: List[Tuple[str, str]] = []
608
- _files: Dict[str, Union[str, bytes]] = {}
612
+ _files: Dict[
613
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
614
+ ] = {}
609
615
  _body_params: Optional[bytes] = None
610
616
 
611
617
  # process the path parameters
@@ -640,24 +646,26 @@ class DefaultApi:
640
646
 
641
647
  # authentication setting
642
648
  _auth_settings: List[str] = [
643
- 'ClientLanguage',
644
649
  'Accept',
645
- 'Priority',
646
- 'SecFetchDest',
650
+ 'ClientLanguage',
647
651
  'Referer',
652
+ 'SecFetchDest',
648
653
  'SecChUaPlatform',
649
654
  'SecFetchMode',
650
655
  'CsrfToken',
651
- 'GuestToken',
656
+ 'ClientUuid',
652
657
  'BearerAuth',
658
+ 'GuestToken',
653
659
  'SecChUa',
654
- 'CookieCt0',
660
+ 'CookieGt0',
661
+ 'ClientTransactionId',
655
662
  'ActiveUser',
663
+ 'CookieCt0',
656
664
  'UserAgent',
657
665
  'AcceptLanguage',
658
666
  'SecFetchSite',
659
- 'CookieAuthToken',
660
667
  'AuthType',
668
+ 'CookieAuthToken',
661
669
  'SecChUaMobile',
662
670
  'AcceptEncoding'
663
671
  ]
@@ -239,7 +239,9 @@ class OtherApi:
239
239
  _query_params: List[Tuple[str, str]] = []
240
240
  _header_params: Dict[str, Optional[str]] = _headers or {}
241
241
  _form_params: List[Tuple[str, str]] = []
242
- _files: Dict[str, Union[str, bytes]] = {}
242
+ _files: Dict[
243
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
244
+ ] = {}
243
245
  _body_params: Optional[bytes] = None
244
246
 
245
247
  # process the path parameters
@@ -260,24 +262,26 @@ class OtherApi:
260
262
 
261
263
  # authentication setting
262
264
  _auth_settings: List[str] = [
263
- 'ClientLanguage',
264
265
  'Accept',
265
- 'Priority',
266
- 'SecFetchDest',
266
+ 'ClientLanguage',
267
267
  'Referer',
268
+ 'SecFetchDest',
268
269
  'SecChUaPlatform',
269
270
  'SecFetchMode',
270
271
  'CsrfToken',
271
- 'GuestToken',
272
+ 'ClientUuid',
272
273
  'BearerAuth',
274
+ 'GuestToken',
273
275
  'SecChUa',
274
- 'CookieCt0',
276
+ 'CookieGt0',
277
+ 'ClientTransactionId',
275
278
  'ActiveUser',
279
+ 'CookieCt0',
276
280
  'UserAgent',
277
281
  'AcceptLanguage',
278
282
  'SecFetchSite',
279
- 'CookieAuthToken',
280
283
  'AuthType',
284
+ 'CookieAuthToken',
281
285
  'SecChUaMobile',
282
286
  'AcceptEncoding'
283
287
  ]
@@ -282,7 +282,9 @@ class PostApi:
282
282
  _query_params: List[Tuple[str, str]] = []
283
283
  _header_params: Dict[str, Optional[str]] = _headers or {}
284
284
  _form_params: List[Tuple[str, str]] = []
285
- _files: Dict[str, Union[str, bytes]] = {}
285
+ _files: Dict[
286
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
287
+ ] = {}
286
288
  _body_params: Optional[bytes] = None
287
289
 
288
290
  # process the path parameters
@@ -320,24 +322,26 @@ class PostApi:
320
322
 
321
323
  # authentication setting
322
324
  _auth_settings: List[str] = [
323
- 'ClientLanguage',
324
325
  'Accept',
325
- 'Priority',
326
- 'SecFetchDest',
326
+ 'ClientLanguage',
327
327
  'Referer',
328
+ 'SecFetchDest',
328
329
  'SecChUaPlatform',
329
330
  'SecFetchMode',
330
331
  'CsrfToken',
331
- 'GuestToken',
332
+ 'ClientUuid',
332
333
  'BearerAuth',
334
+ 'GuestToken',
333
335
  'SecChUa',
334
- 'CookieCt0',
336
+ 'CookieGt0',
337
+ 'ClientTransactionId',
335
338
  'ActiveUser',
339
+ 'CookieCt0',
336
340
  'UserAgent',
337
341
  'AcceptLanguage',
338
342
  'SecFetchSite',
339
- 'CookieAuthToken',
340
343
  'AuthType',
344
+ 'CookieAuthToken',
341
345
  'SecChUaMobile',
342
346
  'AcceptEncoding'
343
347
  ]
@@ -588,7 +592,9 @@ class PostApi:
588
592
  _query_params: List[Tuple[str, str]] = []
589
593
  _header_params: Dict[str, Optional[str]] = _headers or {}
590
594
  _form_params: List[Tuple[str, str]] = []
591
- _files: Dict[str, Union[str, bytes]] = {}
595
+ _files: Dict[
596
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
597
+ ] = {}
592
598
  _body_params: Optional[bytes] = None
593
599
 
594
600
  # process the path parameters
@@ -626,24 +632,26 @@ class PostApi:
626
632
 
627
633
  # authentication setting
628
634
  _auth_settings: List[str] = [
629
- 'ClientLanguage',
630
635
  'Accept',
631
- 'Priority',
632
- 'SecFetchDest',
636
+ 'ClientLanguage',
633
637
  'Referer',
638
+ 'SecFetchDest',
634
639
  'SecChUaPlatform',
635
640
  'SecFetchMode',
636
641
  'CsrfToken',
637
- 'GuestToken',
642
+ 'ClientUuid',
638
643
  'BearerAuth',
644
+ 'GuestToken',
639
645
  'SecChUa',
640
- 'CookieCt0',
646
+ 'CookieGt0',
647
+ 'ClientTransactionId',
641
648
  'ActiveUser',
649
+ 'CookieCt0',
642
650
  'UserAgent',
643
651
  'AcceptLanguage',
644
652
  'SecFetchSite',
645
- 'CookieAuthToken',
646
653
  'AuthType',
654
+ 'CookieAuthToken',
647
655
  'SecChUaMobile',
648
656
  'AcceptEncoding'
649
657
  ]
@@ -894,7 +902,9 @@ class PostApi:
894
902
  _query_params: List[Tuple[str, str]] = []
895
903
  _header_params: Dict[str, Optional[str]] = _headers or {}
896
904
  _form_params: List[Tuple[str, str]] = []
897
- _files: Dict[str, Union[str, bytes]] = {}
905
+ _files: Dict[
906
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
907
+ ] = {}
898
908
  _body_params: Optional[bytes] = None
899
909
 
900
910
  # process the path parameters
@@ -932,24 +942,26 @@ class PostApi:
932
942
 
933
943
  # authentication setting
934
944
  _auth_settings: List[str] = [
935
- 'ClientLanguage',
936
945
  'Accept',
937
- 'Priority',
938
- 'SecFetchDest',
946
+ 'ClientLanguage',
939
947
  'Referer',
948
+ 'SecFetchDest',
940
949
  'SecChUaPlatform',
941
950
  'SecFetchMode',
942
951
  'CsrfToken',
943
- 'GuestToken',
952
+ 'ClientUuid',
944
953
  'BearerAuth',
954
+ 'GuestToken',
945
955
  'SecChUa',
946
- 'CookieCt0',
956
+ 'CookieGt0',
957
+ 'ClientTransactionId',
947
958
  'ActiveUser',
959
+ 'CookieCt0',
948
960
  'UserAgent',
949
961
  'AcceptLanguage',
950
962
  'SecFetchSite',
951
- 'CookieAuthToken',
952
963
  'AuthType',
964
+ 'CookieAuthToken',
953
965
  'SecChUaMobile',
954
966
  'AcceptEncoding'
955
967
  ]
@@ -1200,7 +1212,9 @@ class PostApi:
1200
1212
  _query_params: List[Tuple[str, str]] = []
1201
1213
  _header_params: Dict[str, Optional[str]] = _headers or {}
1202
1214
  _form_params: List[Tuple[str, str]] = []
1203
- _files: Dict[str, Union[str, bytes]] = {}
1215
+ _files: Dict[
1216
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1217
+ ] = {}
1204
1218
  _body_params: Optional[bytes] = None
1205
1219
 
1206
1220
  # process the path parameters
@@ -1238,24 +1252,26 @@ class PostApi:
1238
1252
 
1239
1253
  # authentication setting
1240
1254
  _auth_settings: List[str] = [
1241
- 'ClientLanguage',
1242
1255
  'Accept',
1243
- 'Priority',
1244
- 'SecFetchDest',
1256
+ 'ClientLanguage',
1245
1257
  'Referer',
1258
+ 'SecFetchDest',
1246
1259
  'SecChUaPlatform',
1247
1260
  'SecFetchMode',
1248
1261
  'CsrfToken',
1249
- 'GuestToken',
1262
+ 'ClientUuid',
1250
1263
  'BearerAuth',
1264
+ 'GuestToken',
1251
1265
  'SecChUa',
1252
- 'CookieCt0',
1266
+ 'CookieGt0',
1267
+ 'ClientTransactionId',
1253
1268
  'ActiveUser',
1269
+ 'CookieCt0',
1254
1270
  'UserAgent',
1255
1271
  'AcceptLanguage',
1256
1272
  'SecFetchSite',
1257
- 'CookieAuthToken',
1258
1273
  'AuthType',
1274
+ 'CookieAuthToken',
1259
1275
  'SecChUaMobile',
1260
1276
  'AcceptEncoding'
1261
1277
  ]
@@ -1506,7 +1522,9 @@ class PostApi:
1506
1522
  _query_params: List[Tuple[str, str]] = []
1507
1523
  _header_params: Dict[str, Optional[str]] = _headers or {}
1508
1524
  _form_params: List[Tuple[str, str]] = []
1509
- _files: Dict[str, Union[str, bytes]] = {}
1525
+ _files: Dict[
1526
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1527
+ ] = {}
1510
1528
  _body_params: Optional[bytes] = None
1511
1529
 
1512
1530
  # process the path parameters
@@ -1544,24 +1562,26 @@ class PostApi:
1544
1562
 
1545
1563
  # authentication setting
1546
1564
  _auth_settings: List[str] = [
1547
- 'ClientLanguage',
1548
1565
  'Accept',
1549
- 'Priority',
1550
- 'SecFetchDest',
1566
+ 'ClientLanguage',
1551
1567
  'Referer',
1568
+ 'SecFetchDest',
1552
1569
  'SecChUaPlatform',
1553
1570
  'SecFetchMode',
1554
1571
  'CsrfToken',
1555
- 'GuestToken',
1572
+ 'ClientUuid',
1556
1573
  'BearerAuth',
1574
+ 'GuestToken',
1557
1575
  'SecChUa',
1558
- 'CookieCt0',
1576
+ 'CookieGt0',
1577
+ 'ClientTransactionId',
1559
1578
  'ActiveUser',
1579
+ 'CookieCt0',
1560
1580
  'UserAgent',
1561
1581
  'AcceptLanguage',
1562
1582
  'SecFetchSite',
1563
- 'CookieAuthToken',
1564
1583
  'AuthType',
1584
+ 'CookieAuthToken',
1565
1585
  'SecChUaMobile',
1566
1586
  'AcceptEncoding'
1567
1587
  ]
@@ -1812,7 +1832,9 @@ class PostApi:
1812
1832
  _query_params: List[Tuple[str, str]] = []
1813
1833
  _header_params: Dict[str, Optional[str]] = _headers or {}
1814
1834
  _form_params: List[Tuple[str, str]] = []
1815
- _files: Dict[str, Union[str, bytes]] = {}
1835
+ _files: Dict[
1836
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1837
+ ] = {}
1816
1838
  _body_params: Optional[bytes] = None
1817
1839
 
1818
1840
  # process the path parameters
@@ -1850,24 +1872,26 @@ class PostApi:
1850
1872
 
1851
1873
  # authentication setting
1852
1874
  _auth_settings: List[str] = [
1853
- 'ClientLanguage',
1854
1875
  'Accept',
1855
- 'Priority',
1856
- 'SecFetchDest',
1876
+ 'ClientLanguage',
1857
1877
  'Referer',
1878
+ 'SecFetchDest',
1858
1879
  'SecChUaPlatform',
1859
1880
  'SecFetchMode',
1860
1881
  'CsrfToken',
1861
- 'GuestToken',
1882
+ 'ClientUuid',
1862
1883
  'BearerAuth',
1884
+ 'GuestToken',
1863
1885
  'SecChUa',
1864
- 'CookieCt0',
1886
+ 'CookieGt0',
1887
+ 'ClientTransactionId',
1865
1888
  'ActiveUser',
1889
+ 'CookieCt0',
1866
1890
  'UserAgent',
1867
1891
  'AcceptLanguage',
1868
1892
  'SecFetchSite',
1869
- 'CookieAuthToken',
1870
1893
  'AuthType',
1894
+ 'CookieAuthToken',
1871
1895
  'SecChUaMobile',
1872
1896
  'AcceptEncoding'
1873
1897
  ]
@@ -2118,7 +2142,9 @@ class PostApi:
2118
2142
  _query_params: List[Tuple[str, str]] = []
2119
2143
  _header_params: Dict[str, Optional[str]] = _headers or {}
2120
2144
  _form_params: List[Tuple[str, str]] = []
2121
- _files: Dict[str, Union[str, bytes]] = {}
2145
+ _files: Dict[
2146
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2147
+ ] = {}
2122
2148
  _body_params: Optional[bytes] = None
2123
2149
 
2124
2150
  # process the path parameters
@@ -2156,24 +2182,26 @@ class PostApi:
2156
2182
 
2157
2183
  # authentication setting
2158
2184
  _auth_settings: List[str] = [
2159
- 'ClientLanguage',
2160
2185
  'Accept',
2161
- 'Priority',
2162
- 'SecFetchDest',
2186
+ 'ClientLanguage',
2163
2187
  'Referer',
2188
+ 'SecFetchDest',
2164
2189
  'SecChUaPlatform',
2165
2190
  'SecFetchMode',
2166
2191
  'CsrfToken',
2167
- 'GuestToken',
2192
+ 'ClientUuid',
2168
2193
  'BearerAuth',
2194
+ 'GuestToken',
2169
2195
  'SecChUa',
2170
- 'CookieCt0',
2196
+ 'CookieGt0',
2197
+ 'ClientTransactionId',
2171
2198
  'ActiveUser',
2199
+ 'CookieCt0',
2172
2200
  'UserAgent',
2173
2201
  'AcceptLanguage',
2174
2202
  'SecFetchSite',
2175
- 'CookieAuthToken',
2176
2203
  'AuthType',
2204
+ 'CookieAuthToken',
2177
2205
  'SecChUaMobile',
2178
2206
  'AcceptEncoding'
2179
2207
  ]
@@ -2424,7 +2452,9 @@ class PostApi:
2424
2452
  _query_params: List[Tuple[str, str]] = []
2425
2453
  _header_params: Dict[str, Optional[str]] = _headers or {}
2426
2454
  _form_params: List[Tuple[str, str]] = []
2427
- _files: Dict[str, Union[str, bytes]] = {}
2455
+ _files: Dict[
2456
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2457
+ ] = {}
2428
2458
  _body_params: Optional[bytes] = None
2429
2459
 
2430
2460
  # process the path parameters
@@ -2462,24 +2492,26 @@ class PostApi:
2462
2492
 
2463
2493
  # authentication setting
2464
2494
  _auth_settings: List[str] = [
2465
- 'ClientLanguage',
2466
2495
  'Accept',
2467
- 'Priority',
2468
- 'SecFetchDest',
2496
+ 'ClientLanguage',
2469
2497
  'Referer',
2498
+ 'SecFetchDest',
2470
2499
  'SecChUaPlatform',
2471
2500
  'SecFetchMode',
2472
2501
  'CsrfToken',
2473
- 'GuestToken',
2502
+ 'ClientUuid',
2474
2503
  'BearerAuth',
2504
+ 'GuestToken',
2475
2505
  'SecChUa',
2476
- 'CookieCt0',
2506
+ 'CookieGt0',
2507
+ 'ClientTransactionId',
2477
2508
  'ActiveUser',
2509
+ 'CookieCt0',
2478
2510
  'UserAgent',
2479
2511
  'AcceptLanguage',
2480
2512
  'SecFetchSite',
2481
- 'CookieAuthToken',
2482
2513
  'AuthType',
2514
+ 'CookieAuthToken',
2483
2515
  'SecChUaMobile',
2484
2516
  'AcceptEncoding'
2485
2517
  ]