twitter-openapi-python-generated 0.0.16__py3-none-any.whl → 0.0.17__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 (66) hide show
  1. twitter_openapi_python_generated/__init__.py +3 -3
  2. twitter_openapi_python_generated/api/default_api.py +12 -10
  3. twitter_openapi_python_generated/api/other_api.py +6 -5
  4. twitter_openapi_python_generated/api/post_api.py +48 -40
  5. twitter_openapi_python_generated/api/tweet_api.py +66 -55
  6. twitter_openapi_python_generated/api/user_api.py +12 -10
  7. twitter_openapi_python_generated/api/user_list_api.py +30 -25
  8. twitter_openapi_python_generated/api/users_api.py +6 -5
  9. twitter_openapi_python_generated/api_client.py +28 -10
  10. twitter_openapi_python_generated/configuration.py +22 -4
  11. twitter_openapi_python_generated/models/__init__.py +2 -2
  12. twitter_openapi_python_generated/models/allow_download_status.py +2 -2
  13. twitter_openapi_python_generated/models/article_cover_media_color_info.py +3 -3
  14. twitter_openapi_python_generated/models/birdwatch_pivot_footer.py +3 -3
  15. twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py +3 -3
  16. twitter_openapi_python_generated/models/community_data.py +6 -6
  17. twitter_openapi_python_generated/models/cover_cta.py +3 -3
  18. twitter_openapi_python_generated/models/delete_retweet.py +3 -3
  19. twitter_openapi_python_generated/models/entities.py +9 -9
  20. twitter_openapi_python_generated/models/error.py +5 -5
  21. twitter_openapi_python_generated/models/error_extensions.py +2 -2
  22. twitter_openapi_python_generated/models/errors.py +3 -3
  23. twitter_openapi_python_generated/models/extended_entities.py +3 -3
  24. twitter_openapi_python_generated/models/highlight.py +3 -3
  25. twitter_openapi_python_generated/models/media_original_info.py +3 -3
  26. twitter_openapi_python_generated/models/media_video_info.py +3 -3
  27. twitter_openapi_python_generated/models/note_tweet_result_media.py +3 -3
  28. twitter_openapi_python_generated/models/note_tweet_result_rich_text.py +3 -3
  29. twitter_openapi_python_generated/models/post_create_tweet_request.py +1 -1
  30. twitter_openapi_python_generated/models/post_create_tweet_request_features.py +9 -5
  31. twitter_openapi_python_generated/models/post_create_tweet_request_variables.py +3 -1
  32. twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py +3 -3
  33. twitter_openapi_python_generated/models/post_favorite_tweet_request.py +3 -3
  34. twitter_openapi_python_generated/models/sensitive_media_warning.py +3 -3
  35. twitter_openapi_python_generated/models/text.py +3 -3
  36. twitter_openapi_python_generated/models/timeline.py +3 -3
  37. twitter_openapi_python_generated/models/timeline_add_entries.py +3 -3
  38. twitter_openapi_python_generated/models/timeline_add_to_module.py +3 -3
  39. twitter_openapi_python_generated/models/timeline_cover_behavior.py +11 -5
  40. twitter_openapi_python_generated/models/{extensions.py → timeline_cover_behavior_url.py} +17 -20
  41. twitter_openapi_python_generated/models/timeline_half_cover.py +3 -3
  42. twitter_openapi_python_generated/models/timeline_show_alert.py +3 -3
  43. twitter_openapi_python_generated/models/timeline_timeline_cursor.py +2 -2
  44. twitter_openapi_python_generated/models/timeline_timeline_module.py +3 -3
  45. twitter_openapi_python_generated/models/timeline_v2.py +2 -2
  46. twitter_openapi_python_generated/models/tweet.py +9 -3
  47. twitter_openapi_python_generated/models/tweet_card_legacy.py +6 -6
  48. twitter_openapi_python_generated/models/tweet_interstitial_reveal_text.py +3 -3
  49. twitter_openapi_python_generated/models/tweet_interstitial_text.py +3 -3
  50. twitter_openapi_python_generated/models/tweet_legacy.py +4 -4
  51. twitter_openapi_python_generated/models/{error_response.py → tweet_unavailable.py} +12 -13
  52. twitter_openapi_python_generated/models/tweet_union.py +27 -8
  53. twitter_openapi_python_generated/models/urt_endpoint_options.py +3 -3
  54. twitter_openapi_python_generated/models/user.py +14 -10
  55. twitter_openapi_python_generated/models/user_legacy.py +31 -31
  56. twitter_openapi_python_generated/models/user_professional.py +3 -3
  57. twitter_openapi_python_generated/models/user_tip_jar_settings.py +3 -1
  58. twitter_openapi_python_generated/models/user_verification_info.py +1 -1
  59. twitter_openapi_python_generated/models/user_verification_info_reason_description.py +3 -3
  60. twitter_openapi_python_generated/models/users_response_data.py +3 -3
  61. {twitter_openapi_python_generated-0.0.16.dist-info → twitter_openapi_python_generated-0.0.17.dist-info}/METADATA +5 -5
  62. {twitter_openapi_python_generated-0.0.16.dist-info → twitter_openapi_python_generated-0.0.17.dist-info}/RECORD +66 -66
  63. {twitter_openapi_python_generated-0.0.16.dist-info → twitter_openapi_python_generated-0.0.17.dist-info}/WHEEL +1 -1
  64. {twitter_openapi_python_generated-0.0.16.dist-info → twitter_openapi_python_generated-0.0.17.dist-info}/LICENSE +0 -0
  65. {twitter_openapi_python_generated-0.0.16.dist-info → twitter_openapi_python_generated-0.0.17.dist-info}/LICENSE.AGPL +0 -0
  66. {twitter_openapi_python_generated-0.0.16.dist-info → twitter_openapi_python_generated-0.0.17.dist-info}/top_level.txt +0 -0
@@ -40,23 +40,25 @@ class User(BaseModel):
40
40
  business_account: Optional[Dict[str, Any]] = None
41
41
  creator_subscriptions_count: Optional[StrictInt] = None
42
42
  has_graduated_access: Optional[StrictBool] = None
43
- has_nft_avatar: Optional[StrictBool] = False
43
+ has_hidden_likes_on_profile: Optional[StrictBool] = None
44
+ has_nft_avatar: Optional[StrictBool] = None
44
45
  highlights_info: Optional[UserHighlightsInfo] = None
45
46
  id: Annotated[str, Field(strict=True)]
46
47
  is_blue_verified: StrictBool
47
48
  is_profile_translatable: Optional[StrictBool] = None
48
49
  legacy: UserLegacy
49
50
  legacy_extended_profile: Optional[UserLegacyExtendedProfile] = None
51
+ premium_gifting_eligible: Optional[StrictBool] = None
50
52
  professional: Optional[UserProfessional] = None
51
53
  profile_image_shape: StrictStr
52
54
  rest_id: Annotated[str, Field(strict=True)]
53
- super_follow_eligible: StrictBool
54
- super_followed_by: StrictBool
55
- super_following: StrictBool
55
+ super_follow_eligible: Optional[StrictBool] = None
56
+ super_followed_by: Optional[StrictBool] = None
57
+ super_following: Optional[StrictBool] = None
56
58
  tipjar_settings: Optional[UserTipJarSettings] = None
57
59
  user_seed_tweet_count: Optional[StrictInt] = None
58
60
  verification_info: Optional[UserVerificationInfo] = None
59
- __properties: ClassVar[List[str]] = ["__typename", "affiliates_highlighted_label", "business_account", "creator_subscriptions_count", "has_graduated_access", "has_nft_avatar", "highlights_info", "id", "is_blue_verified", "is_profile_translatable", "legacy", "legacy_extended_profile", "professional", "profile_image_shape", "rest_id", "super_follow_eligible", "super_followed_by", "super_following", "tipjar_settings", "user_seed_tweet_count", "verification_info"]
61
+ __properties: ClassVar[List[str]] = ["__typename", "affiliates_highlighted_label", "business_account", "creator_subscriptions_count", "has_graduated_access", "has_hidden_likes_on_profile", "has_nft_avatar", "highlights_info", "id", "is_blue_verified", "is_profile_translatable", "legacy", "legacy_extended_profile", "premium_gifting_eligible", "professional", "profile_image_shape", "rest_id", "super_follow_eligible", "super_followed_by", "super_following", "tipjar_settings", "user_seed_tweet_count", "verification_info"]
60
62
 
61
63
  @field_validator('id')
62
64
  def id_validate_regular_expression(cls, value):
@@ -153,19 +155,21 @@ class User(BaseModel):
153
155
  "business_account": obj.get("business_account"),
154
156
  "creator_subscriptions_count": obj.get("creator_subscriptions_count"),
155
157
  "has_graduated_access": obj.get("has_graduated_access"),
156
- "has_nft_avatar": obj.get("has_nft_avatar") if obj.get("has_nft_avatar") is not None else False,
158
+ "has_hidden_likes_on_profile": obj.get("has_hidden_likes_on_profile"),
159
+ "has_nft_avatar": obj.get("has_nft_avatar"),
157
160
  "highlights_info": UserHighlightsInfo.from_dict(obj["highlights_info"]) if obj.get("highlights_info") is not None else None,
158
161
  "id": obj.get("id"),
159
- "is_blue_verified": obj.get("is_blue_verified") if obj.get("is_blue_verified") is not None else False,
162
+ "is_blue_verified": obj.get("is_blue_verified"),
160
163
  "is_profile_translatable": obj.get("is_profile_translatable"),
161
164
  "legacy": UserLegacy.from_dict(obj["legacy"]) if obj.get("legacy") is not None else None,
162
165
  "legacy_extended_profile": UserLegacyExtendedProfile.from_dict(obj["legacy_extended_profile"]) if obj.get("legacy_extended_profile") is not None else None,
166
+ "premium_gifting_eligible": obj.get("premium_gifting_eligible"),
163
167
  "professional": UserProfessional.from_dict(obj["professional"]) if obj.get("professional") is not None else None,
164
168
  "profile_image_shape": obj.get("profile_image_shape"),
165
169
  "rest_id": obj.get("rest_id"),
166
- "super_follow_eligible": obj.get("super_follow_eligible") if obj.get("super_follow_eligible") is not None else False,
167
- "super_followed_by": obj.get("super_followed_by") if obj.get("super_followed_by") is not None else False,
168
- "super_following": obj.get("super_following") if obj.get("super_following") is not None else False,
170
+ "super_follow_eligible": obj.get("super_follow_eligible"),
171
+ "super_followed_by": obj.get("super_followed_by"),
172
+ "super_following": obj.get("super_following"),
169
173
  "tipjar_settings": UserTipJarSettings.from_dict(obj["tipjar_settings"]) if obj.get("tipjar_settings") is not None else None,
170
174
  "user_seed_tweet_count": obj.get("user_seed_tweet_count"),
171
175
  "verification_info": UserVerificationInfo.from_dict(obj["verification_info"]) if obj.get("verification_info") is not None else None
@@ -28,8 +28,8 @@ class UserLegacy(BaseModel):
28
28
  """
29
29
  UserLegacy
30
30
  """ # noqa: E501
31
- blocked_by: StrictBool
32
- blocking: StrictBool
31
+ blocked_by: Optional[StrictBool] = None
32
+ blocking: Optional[StrictBool] = None
33
33
  can_dm: StrictBool
34
34
  can_media_tag: StrictBool
35
35
  created_at: Annotated[str, Field(strict=True)]
@@ -39,20 +39,20 @@ class UserLegacy(BaseModel):
39
39
  entities: Dict[str, Any]
40
40
  fast_followers_count: StrictInt
41
41
  favourites_count: StrictInt
42
- follow_request_sent: Optional[StrictBool] = False
43
- followed_by: Optional[StrictBool] = False
42
+ follow_request_sent: Optional[StrictBool] = None
43
+ followed_by: Optional[StrictBool] = None
44
44
  followers_count: StrictInt
45
- following: Optional[StrictBool] = False
45
+ following: Optional[StrictBool] = None
46
46
  friends_count: StrictInt
47
47
  has_custom_timelines: StrictBool
48
48
  is_translator: StrictBool
49
49
  listed_count: StrictInt
50
50
  location: StrictStr
51
51
  media_count: StrictInt
52
- muting: StrictBool
52
+ muting: Optional[StrictBool] = None
53
53
  name: StrictStr
54
54
  normal_followers_count: StrictInt
55
- notifications: Optional[StrictBool] = False
55
+ notifications: Optional[StrictBool] = None
56
56
  pinned_tweet_ids_str: List[StrictStr]
57
57
  possibly_sensitive: StrictBool
58
58
  profile_banner_extensions: Optional[Dict[str, Any]] = None
@@ -60,7 +60,7 @@ class UserLegacy(BaseModel):
60
60
  profile_image_extensions: Optional[Dict[str, Any]] = None
61
61
  profile_image_url_https: StrictStr
62
62
  profile_interstitial_type: StrictStr
63
- protected: Optional[StrictBool] = False
63
+ protected: Optional[StrictBool] = None
64
64
  screen_name: StrictStr
65
65
  statuses_count: StrictInt
66
66
  translator_type: StrictStr
@@ -139,46 +139,46 @@ class UserLegacy(BaseModel):
139
139
  return cls.model_validate(obj)
140
140
 
141
141
  _obj = cls.model_validate({
142
- "blocked_by": obj.get("blocked_by") if obj.get("blocked_by") is not None else False,
143
- "blocking": obj.get("blocking") if obj.get("blocking") is not None else False,
144
- "can_dm": obj.get("can_dm") if obj.get("can_dm") is not None else False,
145
- "can_media_tag": obj.get("can_media_tag") if obj.get("can_media_tag") is not None else False,
142
+ "blocked_by": obj.get("blocked_by"),
143
+ "blocking": obj.get("blocking"),
144
+ "can_dm": obj.get("can_dm"),
145
+ "can_media_tag": obj.get("can_media_tag"),
146
146
  "created_at": obj.get("created_at"),
147
- "default_profile": obj.get("default_profile") if obj.get("default_profile") is not None else False,
148
- "default_profile_image": obj.get("default_profile_image") if obj.get("default_profile_image") is not None else False,
147
+ "default_profile": obj.get("default_profile"),
148
+ "default_profile_image": obj.get("default_profile_image"),
149
149
  "description": obj.get("description"),
150
150
  "entities": obj.get("entities"),
151
151
  "fast_followers_count": obj.get("fast_followers_count"),
152
- "favourites_count": obj.get("favourites_count") if obj.get("favourites_count") is not None else 0,
153
- "follow_request_sent": obj.get("follow_request_sent") if obj.get("follow_request_sent") is not None else False,
154
- "followed_by": obj.get("followed_by") if obj.get("followed_by") is not None else False,
155
- "followers_count": obj.get("followers_count") if obj.get("followers_count") is not None else 0,
156
- "following": obj.get("following") if obj.get("following") is not None else False,
157
- "friends_count": obj.get("friends_count") if obj.get("friends_count") is not None else 0,
158
- "has_custom_timelines": obj.get("has_custom_timelines") if obj.get("has_custom_timelines") is not None else False,
159
- "is_translator": obj.get("is_translator") if obj.get("is_translator") is not None else False,
160
- "listed_count": obj.get("listed_count") if obj.get("listed_count") is not None else 0,
152
+ "favourites_count": obj.get("favourites_count"),
153
+ "follow_request_sent": obj.get("follow_request_sent"),
154
+ "followed_by": obj.get("followed_by"),
155
+ "followers_count": obj.get("followers_count"),
156
+ "following": obj.get("following"),
157
+ "friends_count": obj.get("friends_count"),
158
+ "has_custom_timelines": obj.get("has_custom_timelines"),
159
+ "is_translator": obj.get("is_translator"),
160
+ "listed_count": obj.get("listed_count"),
161
161
  "location": obj.get("location"),
162
- "media_count": obj.get("media_count") if obj.get("media_count") is not None else 0,
163
- "muting": obj.get("muting") if obj.get("muting") is not None else False,
162
+ "media_count": obj.get("media_count"),
163
+ "muting": obj.get("muting"),
164
164
  "name": obj.get("name"),
165
- "normal_followers_count": obj.get("normal_followers_count") if obj.get("normal_followers_count") is not None else 0,
166
- "notifications": obj.get("notifications") if obj.get("notifications") is not None else False,
165
+ "normal_followers_count": obj.get("normal_followers_count"),
166
+ "notifications": obj.get("notifications"),
167
167
  "pinned_tweet_ids_str": obj.get("pinned_tweet_ids_str"),
168
- "possibly_sensitive": obj.get("possibly_sensitive") if obj.get("possibly_sensitive") is not None else False,
168
+ "possibly_sensitive": obj.get("possibly_sensitive"),
169
169
  "profile_banner_extensions": obj.get("profile_banner_extensions"),
170
170
  "profile_banner_url": obj.get("profile_banner_url"),
171
171
  "profile_image_extensions": obj.get("profile_image_extensions"),
172
172
  "profile_image_url_https": obj.get("profile_image_url_https"),
173
173
  "profile_interstitial_type": obj.get("profile_interstitial_type"),
174
- "protected": obj.get("protected") if obj.get("protected") is not None else False,
174
+ "protected": obj.get("protected"),
175
175
  "screen_name": obj.get("screen_name"),
176
- "statuses_count": obj.get("statuses_count") if obj.get("statuses_count") is not None else 0,
176
+ "statuses_count": obj.get("statuses_count"),
177
177
  "translator_type": obj.get("translator_type"),
178
178
  "url": obj.get("url"),
179
179
  "verified": obj.get("verified"),
180
180
  "verified_type": obj.get("verified_type"),
181
- "want_retweets": obj.get("want_retweets") if obj.get("want_retweets") is not None else False,
181
+ "want_retweets": obj.get("want_retweets"),
182
182
  "withheld_in_countries": obj.get("withheld_in_countries")
183
183
  })
184
184
  return _obj
@@ -90,9 +90,9 @@ class UserProfessional(BaseModel):
90
90
  # override the default output from pydantic by calling `to_dict()` of each item in category (list)
91
91
  _items = []
92
92
  if self.category:
93
- for _item in self.category:
94
- if _item:
95
- _items.append(_item.to_dict())
93
+ for _item_category in self.category:
94
+ if _item_category:
95
+ _items.append(_item_category.to_dict())
96
96
  _dict['category'] = _items
97
97
  return _dict
98
98
 
@@ -27,6 +27,7 @@ class UserTipJarSettings(BaseModel):
27
27
  """
28
28
  UserTipJarSettings
29
29
  """ # noqa: E501
30
+ bandcamp_handle: Optional[StrictStr] = None
30
31
  bitcoin_handle: Optional[StrictStr] = None
31
32
  cash_app_handle: Optional[StrictStr] = None
32
33
  ethereum_handle: Optional[StrictStr] = None
@@ -34,7 +35,7 @@ class UserTipJarSettings(BaseModel):
34
35
  is_enabled: Optional[StrictBool] = None
35
36
  patreon_handle: Optional[StrictStr] = None
36
37
  venmo_handle: Optional[StrictStr] = None
37
- __properties: ClassVar[List[str]] = ["bitcoin_handle", "cash_app_handle", "ethereum_handle", "gofundme_handle", "is_enabled", "patreon_handle", "venmo_handle"]
38
+ __properties: ClassVar[List[str]] = ["bandcamp_handle", "bitcoin_handle", "cash_app_handle", "ethereum_handle", "gofundme_handle", "is_enabled", "patreon_handle", "venmo_handle"]
38
39
 
39
40
  model_config = ConfigDict(
40
41
  populate_by_name=True,
@@ -87,6 +88,7 @@ class UserTipJarSettings(BaseModel):
87
88
  return cls.model_validate(obj)
88
89
 
89
90
  _obj = cls.model_validate({
91
+ "bandcamp_handle": obj.get("bandcamp_handle"),
90
92
  "bitcoin_handle": obj.get("bitcoin_handle"),
91
93
  "cash_app_handle": obj.get("cash_app_handle"),
92
94
  "ethereum_handle": obj.get("ethereum_handle"),
@@ -86,7 +86,7 @@ class UserVerificationInfo(BaseModel):
86
86
  return cls.model_validate(obj)
87
87
 
88
88
  _obj = cls.model_validate({
89
- "is_identity_verified": obj.get("is_identity_verified") if obj.get("is_identity_verified") is not None else False,
89
+ "is_identity_verified": obj.get("is_identity_verified"),
90
90
  "reason": UserVerificationInfoReason.from_dict(obj["reason"]) if obj.get("reason") is not None else None
91
91
  })
92
92
  return _obj
@@ -74,9 +74,9 @@ class UserVerificationInfoReasonDescription(BaseModel):
74
74
  # override the default output from pydantic by calling `to_dict()` of each item in entities (list)
75
75
  _items = []
76
76
  if self.entities:
77
- for _item in self.entities:
78
- if _item:
79
- _items.append(_item.to_dict())
77
+ for _item_entities in self.entities:
78
+ if _item_entities:
79
+ _items.append(_item_entities.to_dict())
80
80
  _dict['entities'] = _items
81
81
  return _dict
82
82
 
@@ -73,9 +73,9 @@ class UsersResponseData(BaseModel):
73
73
  # override the default output from pydantic by calling `to_dict()` of each item in users (list)
74
74
  _items = []
75
75
  if self.users:
76
- for _item in self.users:
77
- if _item:
78
- _items.append(_item.to_dict())
76
+ for _item_users in self.users:
77
+ if _item_users:
78
+ _items.append(_item_users.to_dict())
79
79
  _dict['users'] = _items
80
80
  return _dict
81
81
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: twitter-openapi-python-generated
3
- Version: 0.0.16
2
+ Name: twitter_openapi_python_generated
3
+ Version: 0.0.17
4
4
  Summary: Twitter OpenAPI
5
5
  Home-page: https://github.com/fa0311/twitter_openapi_python_generated
6
6
  Author: OpenAPI Generator community
@@ -10,10 +10,10 @@ Keywords: OpenAPI,OpenAPI-Generator,Twitter OpenAPI
10
10
  Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  License-File: LICENSE.AGPL
13
- Requires-Dist: urllib3 <2.1.0,>=1.25.3
13
+ Requires-Dist: urllib3<2.1.0,>=1.25.3
14
14
  Requires-Dist: python-dateutil
15
- Requires-Dist: pydantic >=2
16
- Requires-Dist: typing-extensions >=4.7.1
15
+ Requires-Dist: pydantic>=2
16
+ Requires-Dist: typing-extensions>=4.7.1
17
17
 
18
18
  Twitter OpenAPI(Swagger) specification
19
19