twitter-openapi-python-generated 0.0.21__py3-none-any.whl → 0.0.22__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 (26) hide show
  1. twitter_openapi_python_generated/__init__.py +1 -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/author_community_relationship.py +2 -2
  15. twitter_openapi_python_generated/models/community_data.py +1 -1
  16. twitter_openapi_python_generated/models/cursor_type.py +1 -0
  17. twitter_openapi_python_generated/models/display_treatment.py +5 -3
  18. twitter_openapi_python_generated/models/timeline_general_context.py +2 -2
  19. twitter_openapi_python_generated/models/user_response_data.py +2 -2
  20. twitter_openapi_python_generated/rest.py +1 -1
  21. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.22.dist-info}/METADATA +6 -6
  22. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.22.dist-info}/RECORD +26 -26
  23. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.22.dist-info}/WHEEL +1 -1
  24. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.22.dist-info}/LICENSE +0 -0
  25. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.22.dist-info}/LICENSE.AGPL +0 -0
  26. {twitter_openapi_python_generated-0.0.21.dist-info → twitter_openapi_python_generated-0.0.22.dist-info}/top_level.txt +0 -0
@@ -279,7 +279,9 @@ class UserApi:
279
279
  _query_params: List[Tuple[str, str]] = []
280
280
  _header_params: Dict[str, Optional[str]] = _headers or {}
281
281
  _form_params: List[Tuple[str, str]] = []
282
- _files: Dict[str, Union[str, bytes]] = {}
282
+ _files: Dict[
283
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
284
+ ] = {}
283
285
  _body_params: Optional[bytes] = None
284
286
 
285
287
  # process the path parameters
@@ -310,24 +312,26 @@ class UserApi:
310
312
 
311
313
  # authentication setting
312
314
  _auth_settings: List[str] = [
313
- 'ClientLanguage',
314
315
  'Accept',
315
- 'Priority',
316
- 'SecFetchDest',
316
+ 'ClientLanguage',
317
317
  'Referer',
318
+ 'SecFetchDest',
318
319
  'SecChUaPlatform',
319
320
  'SecFetchMode',
320
321
  'CsrfToken',
321
- 'GuestToken',
322
+ 'ClientUuid',
322
323
  'BearerAuth',
324
+ 'GuestToken',
323
325
  'SecChUa',
324
- 'CookieCt0',
326
+ 'CookieGt0',
327
+ 'ClientTransactionId',
325
328
  'ActiveUser',
329
+ 'CookieCt0',
326
330
  'UserAgent',
327
331
  'AcceptLanguage',
328
332
  'SecFetchSite',
329
- 'CookieAuthToken',
330
333
  'AuthType',
334
+ 'CookieAuthToken',
331
335
  'SecChUaMobile',
332
336
  'AcceptEncoding'
333
337
  ]
@@ -604,7 +608,9 @@ class UserApi:
604
608
  _query_params: List[Tuple[str, str]] = []
605
609
  _header_params: Dict[str, Optional[str]] = _headers or {}
606
610
  _form_params: List[Tuple[str, str]] = []
607
- _files: Dict[str, Union[str, bytes]] = {}
611
+ _files: Dict[
612
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
613
+ ] = {}
608
614
  _body_params: Optional[bytes] = None
609
615
 
610
616
  # process the path parameters
@@ -639,24 +645,26 @@ class UserApi:
639
645
 
640
646
  # authentication setting
641
647
  _auth_settings: List[str] = [
642
- 'ClientLanguage',
643
648
  'Accept',
644
- 'Priority',
645
- 'SecFetchDest',
649
+ 'ClientLanguage',
646
650
  'Referer',
651
+ 'SecFetchDest',
647
652
  'SecChUaPlatform',
648
653
  'SecFetchMode',
649
654
  'CsrfToken',
650
- 'GuestToken',
655
+ 'ClientUuid',
651
656
  'BearerAuth',
657
+ 'GuestToken',
652
658
  'SecChUa',
653
- 'CookieCt0',
659
+ 'CookieGt0',
660
+ 'ClientTransactionId',
654
661
  'ActiveUser',
662
+ 'CookieCt0',
655
663
  'UserAgent',
656
664
  'AcceptLanguage',
657
665
  'SecFetchSite',
658
- 'CookieAuthToken',
659
666
  'AuthType',
667
+ 'CookieAuthToken',
660
668
  'SecChUaMobile',
661
669
  'AcceptEncoding'
662
670
  ]
@@ -281,7 +281,9 @@ class UserListApi:
281
281
  _query_params: List[Tuple[str, str]] = []
282
282
  _header_params: Dict[str, Optional[str]] = _headers or {}
283
283
  _form_params: List[Tuple[str, str]] = []
284
- _files: Dict[str, Union[str, bytes]] = {}
284
+ _files: Dict[
285
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
286
+ ] = {}
285
287
  _body_params: Optional[bytes] = None
286
288
 
287
289
  # process the path parameters
@@ -312,24 +314,26 @@ class UserListApi:
312
314
 
313
315
  # authentication setting
314
316
  _auth_settings: List[str] = [
315
- 'ClientLanguage',
316
317
  'Accept',
317
- 'Priority',
318
- 'SecFetchDest',
318
+ 'ClientLanguage',
319
319
  'Referer',
320
+ 'SecFetchDest',
320
321
  'SecChUaPlatform',
321
322
  'SecFetchMode',
322
323
  'CsrfToken',
323
- 'GuestToken',
324
+ 'ClientUuid',
324
325
  'BearerAuth',
326
+ 'GuestToken',
325
327
  'SecChUa',
326
- 'CookieCt0',
328
+ 'CookieGt0',
329
+ 'ClientTransactionId',
327
330
  'ActiveUser',
331
+ 'CookieCt0',
328
332
  'UserAgent',
329
333
  'AcceptLanguage',
330
334
  'SecFetchSite',
331
- 'CookieAuthToken',
332
335
  'AuthType',
336
+ 'CookieAuthToken',
333
337
  'SecChUaMobile',
334
338
  'AcceptEncoding'
335
339
  ]
@@ -593,7 +597,9 @@ class UserListApi:
593
597
  _query_params: List[Tuple[str, str]] = []
594
598
  _header_params: Dict[str, Optional[str]] = _headers or {}
595
599
  _form_params: List[Tuple[str, str]] = []
596
- _files: Dict[str, Union[str, bytes]] = {}
600
+ _files: Dict[
601
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
602
+ ] = {}
597
603
  _body_params: Optional[bytes] = None
598
604
 
599
605
  # process the path parameters
@@ -624,24 +630,26 @@ class UserListApi:
624
630
 
625
631
  # authentication setting
626
632
  _auth_settings: List[str] = [
627
- 'ClientLanguage',
628
633
  'Accept',
629
- 'Priority',
630
- 'SecFetchDest',
634
+ 'ClientLanguage',
631
635
  'Referer',
636
+ 'SecFetchDest',
632
637
  'SecChUaPlatform',
633
638
  'SecFetchMode',
634
639
  'CsrfToken',
635
- 'GuestToken',
640
+ 'ClientUuid',
636
641
  'BearerAuth',
642
+ 'GuestToken',
637
643
  'SecChUa',
638
- 'CookieCt0',
644
+ 'CookieGt0',
645
+ 'ClientTransactionId',
639
646
  'ActiveUser',
647
+ 'CookieCt0',
640
648
  'UserAgent',
641
649
  'AcceptLanguage',
642
650
  'SecFetchSite',
643
- 'CookieAuthToken',
644
651
  'AuthType',
652
+ 'CookieAuthToken',
645
653
  'SecChUaMobile',
646
654
  'AcceptEncoding'
647
655
  ]
@@ -905,7 +913,9 @@ class UserListApi:
905
913
  _query_params: List[Tuple[str, str]] = []
906
914
  _header_params: Dict[str, Optional[str]] = _headers or {}
907
915
  _form_params: List[Tuple[str, str]] = []
908
- _files: Dict[str, Union[str, bytes]] = {}
916
+ _files: Dict[
917
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
918
+ ] = {}
909
919
  _body_params: Optional[bytes] = None
910
920
 
911
921
  # process the path parameters
@@ -936,24 +946,26 @@ class UserListApi:
936
946
 
937
947
  # authentication setting
938
948
  _auth_settings: List[str] = [
939
- 'ClientLanguage',
940
949
  'Accept',
941
- 'Priority',
942
- 'SecFetchDest',
950
+ 'ClientLanguage',
943
951
  'Referer',
952
+ 'SecFetchDest',
944
953
  'SecChUaPlatform',
945
954
  'SecFetchMode',
946
955
  'CsrfToken',
947
- 'GuestToken',
956
+ 'ClientUuid',
948
957
  'BearerAuth',
958
+ 'GuestToken',
949
959
  'SecChUa',
950
- 'CookieCt0',
960
+ 'CookieGt0',
961
+ 'ClientTransactionId',
951
962
  'ActiveUser',
963
+ 'CookieCt0',
952
964
  'UserAgent',
953
965
  'AcceptLanguage',
954
966
  'SecFetchSite',
955
- 'CookieAuthToken',
956
967
  'AuthType',
968
+ 'CookieAuthToken',
957
969
  'SecChUaMobile',
958
970
  'AcceptEncoding'
959
971
  ]
@@ -1217,7 +1229,9 @@ class UserListApi:
1217
1229
  _query_params: List[Tuple[str, str]] = []
1218
1230
  _header_params: Dict[str, Optional[str]] = _headers or {}
1219
1231
  _form_params: List[Tuple[str, str]] = []
1220
- _files: Dict[str, Union[str, bytes]] = {}
1232
+ _files: Dict[
1233
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1234
+ ] = {}
1221
1235
  _body_params: Optional[bytes] = None
1222
1236
 
1223
1237
  # process the path parameters
@@ -1248,24 +1262,26 @@ class UserListApi:
1248
1262
 
1249
1263
  # authentication setting
1250
1264
  _auth_settings: List[str] = [
1251
- 'ClientLanguage',
1252
1265
  'Accept',
1253
- 'Priority',
1254
- 'SecFetchDest',
1266
+ 'ClientLanguage',
1255
1267
  'Referer',
1268
+ 'SecFetchDest',
1256
1269
  'SecChUaPlatform',
1257
1270
  'SecFetchMode',
1258
1271
  'CsrfToken',
1259
- 'GuestToken',
1272
+ 'ClientUuid',
1260
1273
  'BearerAuth',
1274
+ 'GuestToken',
1261
1275
  'SecChUa',
1262
- 'CookieCt0',
1276
+ 'CookieGt0',
1277
+ 'ClientTransactionId',
1263
1278
  'ActiveUser',
1279
+ 'CookieCt0',
1264
1280
  'UserAgent',
1265
1281
  'AcceptLanguage',
1266
1282
  'SecFetchSite',
1267
- 'CookieAuthToken',
1268
1283
  'AuthType',
1284
+ 'CookieAuthToken',
1269
1285
  'SecChUaMobile',
1270
1286
  'AcceptEncoding'
1271
1287
  ]
@@ -1529,7 +1545,9 @@ class UserListApi:
1529
1545
  _query_params: List[Tuple[str, str]] = []
1530
1546
  _header_params: Dict[str, Optional[str]] = _headers or {}
1531
1547
  _form_params: List[Tuple[str, str]] = []
1532
- _files: Dict[str, Union[str, bytes]] = {}
1548
+ _files: Dict[
1549
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1550
+ ] = {}
1533
1551
  _body_params: Optional[bytes] = None
1534
1552
 
1535
1553
  # process the path parameters
@@ -1560,24 +1578,26 @@ class UserListApi:
1560
1578
 
1561
1579
  # authentication setting
1562
1580
  _auth_settings: List[str] = [
1563
- 'ClientLanguage',
1564
1581
  'Accept',
1565
- 'Priority',
1566
- 'SecFetchDest',
1582
+ 'ClientLanguage',
1567
1583
  'Referer',
1584
+ 'SecFetchDest',
1568
1585
  'SecChUaPlatform',
1569
1586
  'SecFetchMode',
1570
1587
  'CsrfToken',
1571
- 'GuestToken',
1588
+ 'ClientUuid',
1572
1589
  'BearerAuth',
1590
+ 'GuestToken',
1573
1591
  'SecChUa',
1574
- 'CookieCt0',
1592
+ 'CookieGt0',
1593
+ 'ClientTransactionId',
1575
1594
  'ActiveUser',
1595
+ 'CookieCt0',
1576
1596
  'UserAgent',
1577
1597
  'AcceptLanguage',
1578
1598
  'SecFetchSite',
1579
- 'CookieAuthToken',
1580
1599
  'AuthType',
1600
+ 'CookieAuthToken',
1581
1601
  'SecChUaMobile',
1582
1602
  'AcceptEncoding'
1583
1603
  ]
@@ -279,7 +279,9 @@ class UsersApi:
279
279
  _query_params: List[Tuple[str, str]] = []
280
280
  _header_params: Dict[str, Optional[str]] = _headers or {}
281
281
  _form_params: List[Tuple[str, str]] = []
282
- _files: Dict[str, Union[str, bytes]] = {}
282
+ _files: Dict[
283
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
284
+ ] = {}
283
285
  _body_params: Optional[bytes] = None
284
286
 
285
287
  # process the path parameters
@@ -310,24 +312,26 @@ class UsersApi:
310
312
 
311
313
  # authentication setting
312
314
  _auth_settings: List[str] = [
313
- 'ClientLanguage',
314
315
  'Accept',
315
- 'Priority',
316
- 'SecFetchDest',
316
+ 'ClientLanguage',
317
317
  'Referer',
318
+ 'SecFetchDest',
318
319
  'SecChUaPlatform',
319
320
  'SecFetchMode',
320
321
  'CsrfToken',
321
- 'GuestToken',
322
+ 'ClientUuid',
322
323
  'BearerAuth',
324
+ 'GuestToken',
323
325
  'SecChUa',
324
- 'CookieCt0',
326
+ 'CookieGt0',
327
+ 'ClientTransactionId',
325
328
  'ActiveUser',
329
+ 'CookieCt0',
326
330
  'UserAgent',
327
331
  'AcceptLanguage',
328
332
  'SecFetchSite',
329
- 'CookieAuthToken',
330
333
  'AuthType',
334
+ 'CookieAuthToken',
331
335
  'SecChUaMobile',
332
336
  'AcceptEncoding'
333
337
  ]
@@ -460,7 +460,9 @@ class V11GetApi:
460
460
  _query_params: List[Tuple[str, str]] = []
461
461
  _header_params: Dict[str, Optional[str]] = _headers or {}
462
462
  _form_params: List[Tuple[str, str]] = []
463
- _files: Dict[str, Union[str, bytes]] = {}
463
+ _files: Dict[
464
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
465
+ ] = {}
464
466
  _body_params: Optional[bytes] = None
465
467
 
466
468
  # process the path parameters
@@ -542,24 +544,26 @@ class V11GetApi:
542
544
 
543
545
  # authentication setting
544
546
  _auth_settings: List[str] = [
545
- 'ClientLanguage',
546
547
  'Accept',
547
- 'Priority',
548
- 'SecFetchDest',
548
+ 'ClientLanguage',
549
549
  'Referer',
550
+ 'SecFetchDest',
550
551
  'SecChUaPlatform',
551
552
  'SecFetchMode',
552
553
  'CsrfToken',
553
- 'GuestToken',
554
+ 'ClientUuid',
554
555
  'BearerAuth',
556
+ 'GuestToken',
555
557
  'SecChUa',
556
- 'CookieCt0',
558
+ 'CookieGt0',
559
+ 'ClientTransactionId',
557
560
  'ActiveUser',
561
+ 'CookieCt0',
558
562
  'UserAgent',
559
563
  'AcceptLanguage',
560
564
  'SecFetchSite',
561
- 'CookieAuthToken',
562
565
  'AuthType',
566
+ 'CookieAuthToken',
563
567
  'SecChUaMobile',
564
568
  'AcceptEncoding'
565
569
  ]
@@ -862,7 +866,9 @@ class V11GetApi:
862
866
  _query_params: List[Tuple[str, str]] = []
863
867
  _header_params: Dict[str, Optional[str]] = _headers or {}
864
868
  _form_params: List[Tuple[str, str]] = []
865
- _files: Dict[str, Union[str, bytes]] = {}
869
+ _files: Dict[
870
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
871
+ ] = {}
866
872
  _body_params: Optional[bytes] = None
867
873
 
868
874
  # process the path parameters
@@ -900,24 +906,26 @@ class V11GetApi:
900
906
 
901
907
  # authentication setting
902
908
  _auth_settings: List[str] = [
903
- 'ClientLanguage',
904
909
  'Accept',
905
- 'Priority',
906
- 'SecFetchDest',
910
+ 'ClientLanguage',
907
911
  'Referer',
912
+ 'SecFetchDest',
908
913
  'SecChUaPlatform',
909
914
  'SecFetchMode',
910
915
  'CsrfToken',
911
- 'GuestToken',
916
+ 'ClientUuid',
912
917
  'BearerAuth',
918
+ 'GuestToken',
913
919
  'SecChUa',
914
- 'CookieCt0',
920
+ 'CookieGt0',
921
+ 'ClientTransactionId',
915
922
  'ActiveUser',
923
+ 'CookieCt0',
916
924
  'UserAgent',
917
925
  'AcceptLanguage',
918
926
  'SecFetchSite',
919
- 'CookieAuthToken',
920
927
  'AuthType',
928
+ 'CookieAuthToken',
921
929
  'SecChUaMobile',
922
930
  'AcceptEncoding'
923
931
  ]
@@ -421,7 +421,9 @@ class V11PostApi:
421
421
  _query_params: List[Tuple[str, str]] = []
422
422
  _header_params: Dict[str, Optional[str]] = _headers or {}
423
423
  _form_params: List[Tuple[str, str]] = []
424
- _files: Dict[str, Union[str, bytes]] = {}
424
+ _files: Dict[
425
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
426
+ ] = {}
425
427
  _body_params: Optional[bytes] = None
426
428
 
427
429
  # process the path parameters
@@ -476,24 +478,26 @@ class V11PostApi:
476
478
 
477
479
  # authentication setting
478
480
  _auth_settings: List[str] = [
479
- 'ClientLanguage',
480
481
  'Accept',
481
- 'Priority',
482
- 'SecFetchDest',
482
+ 'ClientLanguage',
483
483
  'Referer',
484
+ 'SecFetchDest',
484
485
  'SecChUaPlatform',
485
486
  'SecFetchMode',
486
487
  'CsrfToken',
487
- 'GuestToken',
488
+ 'ClientUuid',
488
489
  'BearerAuth',
490
+ 'GuestToken',
489
491
  'SecChUa',
490
- 'CookieCt0',
492
+ 'CookieGt0',
493
+ 'ClientTransactionId',
491
494
  'ActiveUser',
495
+ 'CookieCt0',
492
496
  'UserAgent',
493
497
  'AcceptLanguage',
494
498
  'SecFetchSite',
495
- 'CookieAuthToken',
496
499
  'AuthType',
500
+ 'CookieAuthToken',
497
501
  'SecChUaMobile',
498
502
  'AcceptEncoding'
499
503
  ]
@@ -900,7 +904,9 @@ class V11PostApi:
900
904
  _query_params: List[Tuple[str, str]] = []
901
905
  _header_params: Dict[str, Optional[str]] = _headers or {}
902
906
  _form_params: List[Tuple[str, str]] = []
903
- _files: Dict[str, Union[str, bytes]] = {}
907
+ _files: Dict[
908
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
909
+ ] = {}
904
910
  _body_params: Optional[bytes] = None
905
911
 
906
912
  # process the path parameters
@@ -955,24 +961,26 @@ class V11PostApi:
955
961
 
956
962
  # authentication setting
957
963
  _auth_settings: List[str] = [
958
- 'ClientLanguage',
959
964
  'Accept',
960
- 'Priority',
961
- 'SecFetchDest',
965
+ 'ClientLanguage',
962
966
  'Referer',
967
+ 'SecFetchDest',
963
968
  'SecChUaPlatform',
964
969
  'SecFetchMode',
965
970
  'CsrfToken',
966
- 'GuestToken',
971
+ 'ClientUuid',
967
972
  'BearerAuth',
973
+ 'GuestToken',
968
974
  'SecChUa',
969
- 'CookieCt0',
975
+ 'CookieGt0',
976
+ 'ClientTransactionId',
970
977
  'ActiveUser',
978
+ 'CookieCt0',
971
979
  'UserAgent',
972
980
  'AcceptLanguage',
973
981
  'SecFetchSite',
974
- 'CookieAuthToken',
975
982
  'AuthType',
983
+ 'CookieAuthToken',
976
984
  'SecChUaMobile',
977
985
  'AcceptEncoding'
978
986
  ]
@@ -720,7 +720,9 @@ class V20GetApi:
720
720
  _query_params: List[Tuple[str, str]] = []
721
721
  _header_params: Dict[str, Optional[str]] = _headers or {}
722
722
  _form_params: List[Tuple[str, str]] = []
723
- _files: Dict[str, Union[str, bytes]] = {}
723
+ _files: Dict[
724
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
725
+ ] = {}
724
726
  _body_params: Optional[bytes] = None
725
727
 
726
728
  # process the path parameters
@@ -882,24 +884,26 @@ class V20GetApi:
882
884
 
883
885
  # authentication setting
884
886
  _auth_settings: List[str] = [
885
- 'ClientLanguage',
886
887
  'Accept',
887
- 'Priority',
888
- 'SecFetchDest',
888
+ 'ClientLanguage',
889
889
  'Referer',
890
+ 'SecFetchDest',
890
891
  'SecChUaPlatform',
891
892
  'SecFetchMode',
892
893
  'CsrfToken',
893
- 'GuestToken',
894
+ 'ClientUuid',
894
895
  'BearerAuth',
896
+ 'GuestToken',
895
897
  'SecChUa',
896
- 'CookieCt0',
898
+ 'CookieGt0',
899
+ 'ClientTransactionId',
897
900
  'ActiveUser',
901
+ 'CookieCt0',
898
902
  'UserAgent',
899
903
  'AcceptLanguage',
900
904
  'SecFetchSite',
901
- 'CookieAuthToken',
902
905
  'AuthType',
906
+ 'CookieAuthToken',
903
907
  'SecChUaMobile',
904
908
  'AcceptEncoding'
905
909
  ]
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/0.0.21/python'
94
+ self.user_agent = 'OpenAPI-Generator/0.0.22/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -405,12 +405,12 @@ class ApiClient:
405
405
  data = json.loads(response_text)
406
406
  except ValueError:
407
407
  data = response_text
408
- elif content_type.startswith("application/json"):
408
+ elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
409
409
  if response_text == "":
410
410
  data = ""
411
411
  else:
412
412
  data = json.loads(response_text)
413
- elif content_type.startswith("text/plain"):
413
+ elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE):
414
414
  data = response_text
415
415
  else:
416
416
  raise ApiException(
@@ -536,7 +536,10 @@ class ApiClient:
536
536
 
537
537
  return "&".join(["=".join(map(str, item)) for item in new_params])
538
538
 
539
- def files_parameters(self, files: Dict[str, Union[str, bytes]]):
539
+ def files_parameters(
540
+ self,
541
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
542
+ ):
540
543
  """Builds form parameters.
541
544
 
542
545
  :param files: File parameters.
@@ -551,6 +554,12 @@ class ApiClient:
551
554
  elif isinstance(v, bytes):
552
555
  filename = k
553
556
  filedata = v
557
+ elif isinstance(v, tuple):
558
+ filename, filedata = v
559
+ elif isinstance(v, list):
560
+ for file_param in v:
561
+ params.extend(self.files_parameters({k: file_param}))
562
+ continue
554
563
  else:
555
564
  raise ValueError("Unsupported file value")
556
565
  mimetype = (
@@ -455,6 +455,24 @@ conf = twitter_openapi_python_generated.Configuration(
455
455
  'ClientLanguage',
456
456
  ),
457
457
  }
458
+ if 'ClientTransactionId' in self.api_key:
459
+ auth['ClientTransactionId'] = {
460
+ 'type': 'api_key',
461
+ 'in': 'header',
462
+ 'key': 'x-client-transaction-id',
463
+ 'value': self.get_api_key_with_prefix(
464
+ 'ClientTransactionId',
465
+ ),
466
+ }
467
+ if 'ClientUuid' in self.api_key:
468
+ auth['ClientUuid'] = {
469
+ 'type': 'api_key',
470
+ 'in': 'header',
471
+ 'key': 'x-client-uuid',
472
+ 'value': self.get_api_key_with_prefix(
473
+ 'ClientUuid',
474
+ ),
475
+ }
458
476
  if 'CookieAuthToken' in self.api_key:
459
477
  auth['CookieAuthToken'] = {
460
478
  'type': 'api_key',
@@ -473,6 +491,15 @@ conf = twitter_openapi_python_generated.Configuration(
473
491
  'CookieCt0',
474
492
  ),
475
493
  }
494
+ if 'CookieGt0' in self.api_key:
495
+ auth['CookieGt0'] = {
496
+ 'type': 'api_key',
497
+ 'in': 'cookie',
498
+ 'key': 'gt0',
499
+ 'value': self.get_api_key_with_prefix(
500
+ 'CookieGt0',
501
+ ),
502
+ }
476
503
  if 'CsrfToken' in self.api_key:
477
504
  auth['CsrfToken'] = {
478
505
  'type': 'api_key',
@@ -491,15 +518,6 @@ conf = twitter_openapi_python_generated.Configuration(
491
518
  'GuestToken',
492
519
  ),
493
520
  }
494
- if 'Priority' in self.api_key:
495
- auth['Priority'] = {
496
- 'type': 'api_key',
497
- 'in': 'header',
498
- 'key': 'Priority',
499
- 'value': self.get_api_key_with_prefix(
500
- 'Priority',
501
- ),
502
- }
503
521
  if 'Referer' in self.api_key:
504
522
  auth['Referer'] = {
505
523
  'type': 'api_key',
@@ -583,7 +601,7 @@ conf = twitter_openapi_python_generated.Configuration(
583
601
  "OS: {env}\n"\
584
602
  "Python Version: {pyversion}\n"\
585
603
  "Version of the API: 0.0.1\n"\
586
- "SDK Package Version: 0.0.21".\
604
+ "SDK Package Version: 0.0.22".\
587
605
  format(env=sys.platform, pyversion=sys.version)
588
606
 
589
607
  def get_host_settings(self):