twitter-openapi-python-generated 0.0.22__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_client.py +1 -1
- twitter_openapi_python_generated/configuration.py +1 -1
- twitter_openapi_python_generated/models/__init__.py +2 -0
- twitter_openapi_python_generated/models/community_actions.py +13 -7
- 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/post_create_tweet_request_variables.py +1 -1
- twitter_openapi_python_generated/models/tweet.py +7 -1
- twitter_openapi_python_generated/models/type_name.py +1 -0
- {twitter_openapi_python_generated-0.0.22.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/METADATA +1 -1
- {twitter_openapi_python_generated-0.0.22.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/RECORD +16 -14
- {twitter_openapi_python_generated-0.0.22.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/LICENSE +0 -0
- {twitter_openapi_python_generated-0.0.22.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.0.22.dist-info → twitter_openapi_python_generated-0.0.23.dist-info}/WHEEL +0 -0
- {twitter_openapi_python_generated-0.0.22.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.
|
|
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
|
|
@@ -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.
|
|
94
|
+
self.user_agent = 'OpenAPI-Generator/0.0.23/python'
|
|
95
95
|
self.client_side_validation = configuration.client_side_validation
|
|
96
96
|
|
|
97
97
|
def __enter__(self):
|
|
@@ -601,7 +601,7 @@ conf = twitter_openapi_python_generated.Configuration(
|
|
|
601
601
|
"OS: {env}\n"\
|
|
602
602
|
"Python Version: {pyversion}\n"\
|
|
603
603
|
"Version of the API: 0.0.1\n"\
|
|
604
|
-
"SDK Package Version: 0.0.
|
|
604
|
+
"SDK Package Version: 0.0.23".\
|
|
605
605
|
format(env=sys.platform, pyversion=sys.version)
|
|
606
606
|
|
|
607
607
|
def get_host_settings(self):
|
|
@@ -52,7 +52,9 @@ from twitter_openapi_python_generated.models.community_join_action_result import
|
|
|
52
52
|
from twitter_openapi_python_generated.models.community_join_requests_result import CommunityJoinRequestsResult
|
|
53
53
|
from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult
|
|
54
54
|
from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult
|
|
55
|
+
from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship
|
|
55
56
|
from twitter_openapi_python_generated.models.community_rule import CommunityRule
|
|
57
|
+
from twitter_openapi_python_generated.models.community_unpin_action_result import CommunityUnpinActionResult
|
|
56
58
|
from twitter_openapi_python_generated.models.community_urls import CommunityUrls
|
|
57
59
|
from twitter_openapi_python_generated.models.community_urls_permalink import CommunityUrlsPermalink
|
|
58
60
|
from twitter_openapi_python_generated.models.content_entry_type import ContentEntryType
|
|
@@ -19,11 +19,12 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from twitter_openapi_python_generated.models.community_delete_action_result import CommunityDeleteActionResult
|
|
24
24
|
from twitter_openapi_python_generated.models.community_join_action_result import CommunityJoinActionResult
|
|
25
25
|
from twitter_openapi_python_generated.models.community_leave_action_result import CommunityLeaveActionResult
|
|
26
26
|
from twitter_openapi_python_generated.models.community_pin_action_result import CommunityPinActionResult
|
|
27
|
+
from twitter_openapi_python_generated.models.community_unpin_action_result import CommunityUnpinActionResult
|
|
27
28
|
from typing import Optional, Set
|
|
28
29
|
from typing_extensions import Self
|
|
29
30
|
|
|
@@ -31,11 +32,12 @@ class CommunityActions(BaseModel):
|
|
|
31
32
|
"""
|
|
32
33
|
CommunityActions
|
|
33
34
|
""" # noqa: E501
|
|
34
|
-
delete_action_result: CommunityDeleteActionResult
|
|
35
|
-
join_action_result: CommunityJoinActionResult
|
|
36
|
-
leave_action_result: CommunityLeaveActionResult
|
|
37
|
-
pin_action_result: CommunityPinActionResult
|
|
38
|
-
|
|
35
|
+
delete_action_result: Optional[CommunityDeleteActionResult] = None
|
|
36
|
+
join_action_result: Optional[CommunityJoinActionResult] = None
|
|
37
|
+
leave_action_result: Optional[CommunityLeaveActionResult] = None
|
|
38
|
+
pin_action_result: Optional[CommunityPinActionResult] = None
|
|
39
|
+
unpin_action_result: Optional[CommunityUnpinActionResult] = None
|
|
40
|
+
__properties: ClassVar[List[str]] = ["delete_action_result", "join_action_result", "leave_action_result", "pin_action_result", "unpin_action_result"]
|
|
39
41
|
|
|
40
42
|
model_config = ConfigDict(
|
|
41
43
|
populate_by_name=True,
|
|
@@ -88,6 +90,9 @@ class CommunityActions(BaseModel):
|
|
|
88
90
|
# override the default output from pydantic by calling `to_dict()` of pin_action_result
|
|
89
91
|
if self.pin_action_result:
|
|
90
92
|
_dict['pin_action_result'] = self.pin_action_result.to_dict()
|
|
93
|
+
# override the default output from pydantic by calling `to_dict()` of unpin_action_result
|
|
94
|
+
if self.unpin_action_result:
|
|
95
|
+
_dict['unpin_action_result'] = self.unpin_action_result.to_dict()
|
|
91
96
|
return _dict
|
|
92
97
|
|
|
93
98
|
@classmethod
|
|
@@ -103,7 +108,8 @@ class CommunityActions(BaseModel):
|
|
|
103
108
|
"delete_action_result": CommunityDeleteActionResult.from_dict(obj["delete_action_result"]) if obj.get("delete_action_result") is not None else None,
|
|
104
109
|
"join_action_result": CommunityJoinActionResult.from_dict(obj["join_action_result"]) if obj.get("join_action_result") is not None else None,
|
|
105
110
|
"leave_action_result": CommunityLeaveActionResult.from_dict(obj["leave_action_result"]) if obj.get("leave_action_result") is not None else None,
|
|
106
|
-
"pin_action_result": CommunityPinActionResult.from_dict(obj["pin_action_result"]) if obj.get("pin_action_result") is not None else None
|
|
111
|
+
"pin_action_result": CommunityPinActionResult.from_dict(obj["pin_action_result"]) if obj.get("pin_action_result") is not None else None,
|
|
112
|
+
"unpin_action_result": CommunityUnpinActionResult.from_dict(obj["unpin_action_result"]) if obj.get("unpin_action_result") is not None else None
|
|
107
113
|
})
|
|
108
114
|
return _obj
|
|
109
115
|
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Twitter OpenAPI
|
|
5
|
+
|
|
6
|
+
Twitter OpenAPI(Swagger) specification
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1
|
|
9
|
+
Contact: yuki@yuki0311.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from twitter_openapi_python_generated.models.community_actions import CommunityActions
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
class CommunityRelationship(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
CommunityRelationship
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
actions: CommunityActions
|
|
33
|
+
id: StrictStr
|
|
34
|
+
moderation_state: Dict[str, Any]
|
|
35
|
+
rest_id: Annotated[str, Field(strict=True)]
|
|
36
|
+
__properties: ClassVar[List[str]] = ["actions", "id", "moderation_state", "rest_id"]
|
|
37
|
+
|
|
38
|
+
@field_validator('rest_id')
|
|
39
|
+
def rest_id_validate_regular_expression(cls, value):
|
|
40
|
+
"""Validates the regular expression"""
|
|
41
|
+
if not re.match(r"^[0-9]+$", value):
|
|
42
|
+
raise ValueError(r"must validate the regular expression /^[0-9]+$/")
|
|
43
|
+
return value
|
|
44
|
+
|
|
45
|
+
model_config = ConfigDict(
|
|
46
|
+
populate_by_name=True,
|
|
47
|
+
validate_assignment=True,
|
|
48
|
+
protected_namespaces=(),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def to_str(self) -> str:
|
|
53
|
+
"""Returns the string representation of the model using alias"""
|
|
54
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
55
|
+
|
|
56
|
+
def to_json(self) -> str:
|
|
57
|
+
"""Returns the JSON representation of the model using alias"""
|
|
58
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
59
|
+
return json.dumps(self.to_dict())
|
|
60
|
+
|
|
61
|
+
@classmethod
|
|
62
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
63
|
+
"""Create an instance of CommunityRelationship from a JSON string"""
|
|
64
|
+
return cls.from_dict(json.loads(json_str))
|
|
65
|
+
|
|
66
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
67
|
+
"""Return the dictionary representation of the model using alias.
|
|
68
|
+
|
|
69
|
+
This has the following differences from calling pydantic's
|
|
70
|
+
`self.model_dump(by_alias=True)`:
|
|
71
|
+
|
|
72
|
+
* `None` is only added to the output dict for nullable fields that
|
|
73
|
+
were set at model initialization. Other fields with value `None`
|
|
74
|
+
are ignored.
|
|
75
|
+
"""
|
|
76
|
+
excluded_fields: Set[str] = set([
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
_dict = self.model_dump(
|
|
80
|
+
by_alias=True,
|
|
81
|
+
exclude=excluded_fields,
|
|
82
|
+
exclude_none=True,
|
|
83
|
+
)
|
|
84
|
+
# override the default output from pydantic by calling `to_dict()` of actions
|
|
85
|
+
if self.actions:
|
|
86
|
+
_dict['actions'] = self.actions.to_dict()
|
|
87
|
+
return _dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
91
|
+
"""Create an instance of CommunityRelationship from a dict"""
|
|
92
|
+
if obj is None:
|
|
93
|
+
return None
|
|
94
|
+
|
|
95
|
+
if not isinstance(obj, dict):
|
|
96
|
+
return cls.model_validate(obj)
|
|
97
|
+
|
|
98
|
+
_obj = cls.model_validate({
|
|
99
|
+
"actions": CommunityActions.from_dict(obj["actions"]) if obj.get("actions") is not None else None,
|
|
100
|
+
"id": obj.get("id"),
|
|
101
|
+
"moderation_state": obj.get("moderation_state"),
|
|
102
|
+
"rest_id": obj.get("rest_id")
|
|
103
|
+
})
|
|
104
|
+
return _obj
|
|
105
|
+
|
|
106
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Twitter OpenAPI
|
|
5
|
+
|
|
6
|
+
Twitter OpenAPI(Swagger) specification
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1
|
|
9
|
+
Contact: yuki@yuki0311.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
|
23
|
+
from twitter_openapi_python_generated.models.type_name import TypeName
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class CommunityUnpinActionResult(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
CommunityUnpinActionResult
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
typename: TypeName = Field(alias="__typename")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["__typename"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of CommunityUnpinActionResult from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of CommunityUnpinActionResult from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"__typename": obj.get("__typename")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -33,7 +33,7 @@ class PostCreateTweetRequestVariables(BaseModel):
|
|
|
33
33
|
attachment_url: Optional[StrictStr] = 'https://x.com/elonmusk/status/1349129669258448897'
|
|
34
34
|
conversation_control: Optional[PostCreateTweetRequestVariablesConversationControl] = None
|
|
35
35
|
dark_request: StrictBool
|
|
36
|
-
disallowed_reply_options:
|
|
36
|
+
disallowed_reply_options: Dict[str, Any]
|
|
37
37
|
media: PostCreateTweetRequestVariablesMedia
|
|
38
38
|
reply: Optional[PostCreateTweetRequestVariablesReply] = None
|
|
39
39
|
semantic_annotation_ids: List[Dict[str, Any]]
|
|
@@ -25,6 +25,7 @@ from twitter_openapi_python_generated.models.article import Article
|
|
|
25
25
|
from twitter_openapi_python_generated.models.author_community_relationship import AuthorCommunityRelationship
|
|
26
26
|
from twitter_openapi_python_generated.models.birdwatch_pivot import BirdwatchPivot
|
|
27
27
|
from twitter_openapi_python_generated.models.community import Community
|
|
28
|
+
from twitter_openapi_python_generated.models.community_relationship import CommunityRelationship
|
|
28
29
|
from twitter_openapi_python_generated.models.note_tweet import NoteTweet
|
|
29
30
|
from twitter_openapi_python_generated.models.super_follows_reply_user_result import SuperFollowsReplyUserResult
|
|
30
31
|
from twitter_openapi_python_generated.models.tweet_card import TweetCard
|
|
@@ -47,6 +48,7 @@ class Tweet(BaseModel):
|
|
|
47
48
|
author_community_relationship: Optional[AuthorCommunityRelationship] = None
|
|
48
49
|
birdwatch_pivot: Optional[BirdwatchPivot] = None
|
|
49
50
|
card: Optional[TweetCard] = None
|
|
51
|
+
community_relationship: Optional[CommunityRelationship] = None
|
|
50
52
|
community_results: Optional[Community] = None
|
|
51
53
|
core: Optional[UserResultCore] = None
|
|
52
54
|
edit_control: Optional[TweetEditControl] = None
|
|
@@ -65,7 +67,7 @@ class Tweet(BaseModel):
|
|
|
65
67
|
unified_card: Optional[UnifiedCard] = None
|
|
66
68
|
unmention_data: Optional[Dict[str, Any]] = None
|
|
67
69
|
views: Optional[TweetView] = None
|
|
68
|
-
__properties: ClassVar[List[str]] = ["__typename", "article", "author_community_relationship", "birdwatch_pivot", "card", "community_results", "core", "edit_control", "edit_prespective", "has_birdwatch_notes", "is_translatable", "legacy", "note_tweet", "previous_counts", "quick_promote_eligibility", "quotedRefResult", "quoted_status_result", "rest_id", "source", "superFollowsReplyUserResult", "unified_card", "unmention_data", "views"]
|
|
70
|
+
__properties: ClassVar[List[str]] = ["__typename", "article", "author_community_relationship", "birdwatch_pivot", "card", "community_relationship", "community_results", "core", "edit_control", "edit_prespective", "has_birdwatch_notes", "is_translatable", "legacy", "note_tweet", "previous_counts", "quick_promote_eligibility", "quotedRefResult", "quoted_status_result", "rest_id", "source", "superFollowsReplyUserResult", "unified_card", "unmention_data", "views"]
|
|
69
71
|
|
|
70
72
|
@field_validator('rest_id')
|
|
71
73
|
def rest_id_validate_regular_expression(cls, value):
|
|
@@ -125,6 +127,9 @@ class Tweet(BaseModel):
|
|
|
125
127
|
# override the default output from pydantic by calling `to_dict()` of card
|
|
126
128
|
if self.card:
|
|
127
129
|
_dict['card'] = self.card.to_dict()
|
|
130
|
+
# override the default output from pydantic by calling `to_dict()` of community_relationship
|
|
131
|
+
if self.community_relationship:
|
|
132
|
+
_dict['community_relationship'] = self.community_relationship.to_dict()
|
|
128
133
|
# override the default output from pydantic by calling `to_dict()` of community_results
|
|
129
134
|
if self.community_results:
|
|
130
135
|
_dict['community_results'] = self.community_results.to_dict()
|
|
@@ -178,6 +183,7 @@ class Tweet(BaseModel):
|
|
|
178
183
|
"author_community_relationship": AuthorCommunityRelationship.from_dict(obj["author_community_relationship"]) if obj.get("author_community_relationship") is not None else None,
|
|
179
184
|
"birdwatch_pivot": BirdwatchPivot.from_dict(obj["birdwatch_pivot"]) if obj.get("birdwatch_pivot") is not None else None,
|
|
180
185
|
"card": TweetCard.from_dict(obj["card"]) if obj.get("card") is not None else None,
|
|
186
|
+
"community_relationship": CommunityRelationship.from_dict(obj["community_relationship"]) if obj.get("community_relationship") is not None else None,
|
|
181
187
|
"community_results": Community.from_dict(obj["community_results"]) if obj.get("community_results") is not None else None,
|
|
182
188
|
"core": UserResultCore.from_dict(obj["core"]) if obj.get("core") is not None else None,
|
|
183
189
|
"edit_control": TweetEditControl.from_dict(obj["edit_control"]) if obj.get("edit_control") is not None else None,
|
|
@@ -47,6 +47,7 @@ class TypeName(str, Enum):
|
|
|
47
47
|
COMMUNITYJOINACTION = 'CommunityJoinAction'
|
|
48
48
|
COMMUNITYLEAVEACTIONUNAVAILABLE = 'CommunityLeaveActionUnavailable'
|
|
49
49
|
COMMUNITYTWEETPINACTIONUNAVAILABLE = 'CommunityTweetPinActionUnavailable'
|
|
50
|
+
COMMUNITYTWEETUNPINACTIONUNAVAILABLE = 'CommunityTweetUnpinActionUnavailable'
|
|
50
51
|
COMMUNITYINVITESUNAVAILABLE = 'CommunityInvitesUnavailable'
|
|
51
52
|
COMMUNITYJOINREQUESTSUNAVAILABLE = 'CommunityJoinRequestsUnavailable'
|
|
52
53
|
APIIMAGE = 'ApiImage'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
twitter_openapi_python_generated/__init__.py,sha256=
|
|
2
|
-
twitter_openapi_python_generated/api_client.py,sha256=
|
|
1
|
+
twitter_openapi_python_generated/__init__.py,sha256=pGiUjF5vjtpH53-KZU6IyB0AhzPuyBjAwJYV6JMNJcM,29643
|
|
2
|
+
twitter_openapi_python_generated/api_client.py,sha256=bIyGtV7kKmR-AbxdrTXbR0n0fI5b-hjhoY9hoT76VTA,27547
|
|
3
3
|
twitter_openapi_python_generated/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
twitter_openapi_python_generated/configuration.py,sha256=
|
|
4
|
+
twitter_openapi_python_generated/configuration.py,sha256=wNkr-4VSi9UOi4_u_uRoorC4El8YfY3IPGKQMhKj0NM,22530
|
|
5
5
|
twitter_openapi_python_generated/exceptions.py,sha256=OsisMZb6wF9a6soxi_1fAHu8I7tykw9fx7fVMIFrl2M,5943
|
|
6
6
|
twitter_openapi_python_generated/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
twitter_openapi_python_generated/rest.py,sha256=fCm6_WrjfDKpGmoazSWm8kHl8A9yzqRowc5Y7d-3g-s,9401
|
|
@@ -16,7 +16,7 @@ twitter_openapi_python_generated/api/users_api.py,sha256=k172PQOMg7ZnwaExri-e-y1
|
|
|
16
16
|
twitter_openapi_python_generated/api/v11_get_api.py,sha256=DPFRQno1C9D8JHTpq3Av5-aV3n3GeD14SYPcdQsM3BQ,36333
|
|
17
17
|
twitter_openapi_python_generated/api/v11_post_api.py,sha256=UdQBK3CZ9kNrT7bHZ8-W0yM0umOiGsxhk2wxde-g02o,41401
|
|
18
18
|
twitter_openapi_python_generated/api/v20_get_api.py,sha256=xrJhaX5OwmQ8R1HIz8SI4OMW9ql3CeDF4qege8bRaK4,37208
|
|
19
|
-
twitter_openapi_python_generated/models/__init__.py,sha256=
|
|
19
|
+
twitter_openapi_python_generated/models/__init__.py,sha256=kW4IWnriVYu83thAnRJnrRA0ZcYIZiVrbtErHa7tHuk,28238
|
|
20
20
|
twitter_openapi_python_generated/models/additional_media_info.py,sha256=F4YvWBr_lzTf8-oPx61hHyohAOmR5dzR_qld-sKTyJM,3828
|
|
21
21
|
twitter_openapi_python_generated/models/additional_media_info_call_to_actions.py,sha256=CzURdzKmFNQ-QCFamn3CT1KXymaWLoNzQqXH91XIobM,3368
|
|
22
22
|
twitter_openapi_python_generated/models/additional_media_info_call_to_actions_url.py,sha256=7PrKZ33xUc-NOdxSZYeEKuFLEYCuYxJnaIpTaOmj3v4,2523
|
|
@@ -46,7 +46,7 @@ twitter_openapi_python_generated/models/callback.py,sha256=mLjCCAc-3hAeJDveJU6tm
|
|
|
46
46
|
twitter_openapi_python_generated/models/client_event_info.py,sha256=lR6hDLh-5CJp6z8Z2UfGUbd9KJS53ExhQG_dzby2KeA,2687
|
|
47
47
|
twitter_openapi_python_generated/models/communities_actions.py,sha256=RNBi0G1XEbeOpfr1UJsnRrNIhzbDBAQLa1xXiCRAJis,2469
|
|
48
48
|
twitter_openapi_python_generated/models/community.py,sha256=Py9inH_ZUvj4sobDDZWLTZ3BLiUoC2RoozApX4reqQE,2730
|
|
49
|
-
twitter_openapi_python_generated/models/community_actions.py,sha256=
|
|
49
|
+
twitter_openapi_python_generated/models/community_actions.py,sha256=kpNmYS1P1AfkpbN5BpJQJAQCKYV-KEK0HwPRCYVabn8,5214
|
|
50
50
|
twitter_openapi_python_generated/models/community_data.py,sha256=2Fsm5RomqsZ3PELry4khP9VOnfZc1WawXrIhq2BdxEE,9968
|
|
51
51
|
twitter_openapi_python_generated/models/community_delete_action_result.py,sha256=rbwTyzFY8ndRqU2qnbUinsY0jP142bBiHKs2Jcbib2w,2961
|
|
52
52
|
twitter_openapi_python_generated/models/community_invites_result.py,sha256=dimL7W9pd2eOZwf7Oh-N8FDFiikQMYWHKTbCegaoAGw,3018
|
|
@@ -54,7 +54,9 @@ twitter_openapi_python_generated/models/community_join_action_result.py,sha256=h
|
|
|
54
54
|
twitter_openapi_python_generated/models/community_join_requests_result.py,sha256=BxIaM9FwWbhsYJ8R69_TdpBF-AEBCpvf2Dr_TZE_SNI,2611
|
|
55
55
|
twitter_openapi_python_generated/models/community_leave_action_result.py,sha256=C6dBpNIdFc1YE4DoogHUf2wL8nZzCnfodDvnEt8ZbM4,3042
|
|
56
56
|
twitter_openapi_python_generated/models/community_pin_action_result.py,sha256=xFAOrTPK-fQJ0KLKiQ5oBfEZCuwwctHZWqtAfbLBUGA,2599
|
|
57
|
+
twitter_openapi_python_generated/models/community_relationship.py,sha256=r14DWck1EQ52UiWLcqV5lhsdvNCdC4LHPESU-TS1LSE,3435
|
|
57
58
|
twitter_openapi_python_generated/models/community_rule.py,sha256=cQ_5j-603IhYX4QipgfpbyiUIOtn_5BwYapRibhKpmk,3009
|
|
59
|
+
twitter_openapi_python_generated/models/community_unpin_action_result.py,sha256=EpvoV_GmZy-LWqmEoMEWWXzUcBJpeUzbdTg854RhxYU,2607
|
|
58
60
|
twitter_openapi_python_generated/models/community_urls.py,sha256=0travsjYSzfokWzYT1O6LNKyHdItpCNTkCrMyfaJBTs,2810
|
|
59
61
|
twitter_openapi_python_generated/models/community_urls_permalink.py,sha256=KiaxKgbW8PSUvQ6z4ryKRZnR-I5mpGnAgcu8hqX0-Z8,2471
|
|
60
62
|
twitter_openapi_python_generated/models/content_entry_type.py,sha256=LuazaWj-pt8RdYaHSBSgl1KQskDtaP5V07kcjyTQoSA,846
|
|
@@ -159,7 +161,7 @@ twitter_openapi_python_generated/models/post_create_retweet_request_variables.py
|
|
|
159
161
|
twitter_openapi_python_generated/models/post_create_tweet200_response.py,sha256=FctYnkPFuzJZn8KHPcXYUTATg3MHIjkgZ9OzSFzYaTI,5367
|
|
160
162
|
twitter_openapi_python_generated/models/post_create_tweet_request.py,sha256=GsMn1yqosCXNm5L4dU-cIOrdZlWydKhyUQ-wc8BHhEE,3541
|
|
161
163
|
twitter_openapi_python_generated/models/post_create_tweet_request_features.py,sha256=TaoQhdIXKX-m35nQT3ULTFTFsfH6ggTDOoTYE0B0lcc,9012
|
|
162
|
-
twitter_openapi_python_generated/models/post_create_tweet_request_variables.py,sha256=
|
|
164
|
+
twitter_openapi_python_generated/models/post_create_tweet_request_variables.py,sha256=4Nk08sc1fl6QrEZk8-Y5Zn6ugZu_f4DvtH88RDUFbdA,4959
|
|
163
165
|
twitter_openapi_python_generated/models/post_create_tweet_request_variables_conversation_control.py,sha256=-Md5oHGRvgaBVG0Nbe6L53gLiSqsWGTK9FCkPqLJ1Ec,2635
|
|
164
166
|
twitter_openapi_python_generated/models/post_create_tweet_request_variables_media.py,sha256=dsxdP5xOBQD2uE4thDFcQe36AmecbmaSrHGyLnep1BM,3483
|
|
165
167
|
twitter_openapi_python_generated/models/post_create_tweet_request_variables_media_media_entities_inner.py,sha256=dmz4JquQ1WUv8g8MfZlqU4gPQ9mvMZ1urF5Snd54FO0,2784
|
|
@@ -228,7 +230,7 @@ twitter_openapi_python_generated/models/timeline_v2.py,sha256=kIlescfRjFd1i2mDsK
|
|
|
228
230
|
twitter_openapi_python_generated/models/timestamp.py,sha256=JmgcLa7HXbPD3I0u34x3lV4wg4Ims7aqeFd0yZC5js8,2594
|
|
229
231
|
twitter_openapi_python_generated/models/topic_context.py,sha256=7K6F_kT9R3-4OaJEGtMVIFQe4vQ497c_u8yUaT_ALWs,3080
|
|
230
232
|
twitter_openapi_python_generated/models/tracing.py,sha256=dvT8WY1xkGErHd9bKuR98fTFjCnYvhvbM-uW1ec3-k0,2807
|
|
231
|
-
twitter_openapi_python_generated/models/tweet.py,sha256=
|
|
233
|
+
twitter_openapi_python_generated/models/tweet.py,sha256=zuLwPXBKmYVDmM_xPfYtePBOnXEOlSIjqaQgstqRjBo,11998
|
|
232
234
|
twitter_openapi_python_generated/models/tweet_card.py,sha256=_OjlOlrYy_09iYiO6ESjNdSvZ1C5FD83Q648rZ0eJFY,2871
|
|
233
235
|
twitter_openapi_python_generated/models/tweet_card_legacy.py,sha256=Iv1RyjtS7obk0TWKGFvVr24qnVncN0LKfnCHwTqfJj0,4453
|
|
234
236
|
twitter_openapi_python_generated/models/tweet_card_legacy_binding_value.py,sha256=GX7u_b_TL_5wXjZMtRB04uQql9JkDWBDZ79JSraAvi8,2941
|
|
@@ -262,7 +264,7 @@ twitter_openapi_python_generated/models/tweet_unavailable.py,sha256=Kv9bSrKIOj1o
|
|
|
262
264
|
twitter_openapi_python_generated/models/tweet_union.py,sha256=l0SZJjjPNivHrYm_sJ1eYvXtC6qgpL5Z6TSz182EmNg,8122
|
|
263
265
|
twitter_openapi_python_generated/models/tweet_view.py,sha256=v4_oJaSdMmELaGV-8kRxlTY0TDBuGmNQgW4SqfTZHG4,3223
|
|
264
266
|
twitter_openapi_python_generated/models/tweet_with_visibility_results.py,sha256=rrJpjig_F74MyXJHEdtiZAkQ8Le7wCC5R8hnuv9k6cc,4454
|
|
265
|
-
twitter_openapi_python_generated/models/type_name.py,sha256=
|
|
267
|
+
twitter_openapi_python_generated/models/type_name.py,sha256=Iin928wlXMCl8ktm2TexSxLfvusl-6JjmDCWlPD_oo4,1856
|
|
266
268
|
twitter_openapi_python_generated/models/unfavorite_tweet.py,sha256=MnXcAQvNpkukA2VzAbHXuldfqPYMyq5r8aRktgzHECk,2495
|
|
267
269
|
twitter_openapi_python_generated/models/unfavorite_tweet_response_data.py,sha256=CtRv61pd6YyHom6QV-ODi9T2dX4bPBvcBxzdbf4opSA,2792
|
|
268
270
|
twitter_openapi_python_generated/models/unified_card.py,sha256=Pg3HjE0YsfZBkBjaOGkh9MhaqQQ7FWhGxE-ryFjp7W8,2755
|
|
@@ -304,9 +306,9 @@ twitter_openapi_python_generated/models/user_verification_info_reason_descriptio
|
|
|
304
306
|
twitter_openapi_python_generated/models/user_verification_info_reason_description_entities_ref.py,sha256=di6U-pbh04SsZ2dZjyB2rZrnyJraU_ZjLFau8_IHKwI,2926
|
|
305
307
|
twitter_openapi_python_generated/models/users_response.py,sha256=ayZuqzBdIIQPP5ENpkDz5Jk_skcKxVnoHhjr9vJoqxk,2745
|
|
306
308
|
twitter_openapi_python_generated/models/users_response_data.py,sha256=kVzorz4jxERUhVSUKe6MTHN_IOzG26uVkei_z5ubB74,2930
|
|
307
|
-
twitter_openapi_python_generated-0.0.
|
|
308
|
-
twitter_openapi_python_generated-0.0.
|
|
309
|
-
twitter_openapi_python_generated-0.0.
|
|
310
|
-
twitter_openapi_python_generated-0.0.
|
|
311
|
-
twitter_openapi_python_generated-0.0.
|
|
312
|
-
twitter_openapi_python_generated-0.0.
|
|
309
|
+
twitter_openapi_python_generated-0.0.23.dist-info/LICENSE,sha256=xthyYzrtSmRlBu2gnfuIxzsZeHrqtIZgZPL9UPrYiQU,1524
|
|
310
|
+
twitter_openapi_python_generated-0.0.23.dist-info/LICENSE.AGPL,sha256=Nv6u1ubULm-E2y6q2-pQPK8s2BzkOltLaVlPKQ3tkcs,35182
|
|
311
|
+
twitter_openapi_python_generated-0.0.23.dist-info/METADATA,sha256=nHM0DogWnsBugVKC9PJHd3DPz9W6NEs3_sXzS9gSw7o,637
|
|
312
|
+
twitter_openapi_python_generated-0.0.23.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
313
|
+
twitter_openapi_python_generated-0.0.23.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
|
|
314
|
+
twitter_openapi_python_generated-0.0.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|