twitter-openapi-python-generated 0.1.4__py3-none-any.whl → 0.1.5__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 +1 -1
- twitter_openapi_python_generated/api_client.py +1 -1
- twitter_openapi_python_generated/configuration.py +1 -1
- twitter_openapi_python_generated/models/click_tracking_info.py +7 -3
- twitter_openapi_python_generated/models/user_label_mention_user.py +6 -3
- {twitter_openapi_python_generated-0.1.4.dist-info → twitter_openapi_python_generated-0.1.5.dist-info}/METADATA +2 -2
- {twitter_openapi_python_generated-0.1.4.dist-info → twitter_openapi_python_generated-0.1.5.dist-info}/RECORD +11 -11
- {twitter_openapi_python_generated-0.1.4.dist-info → twitter_openapi_python_generated-0.1.5.dist-info}/WHEEL +0 -0
- {twitter_openapi_python_generated-0.1.4.dist-info → twitter_openapi_python_generated-0.1.5.dist-info}/licenses/LICENSE +0 -0
- {twitter_openapi_python_generated-0.1.4.dist-info → twitter_openapi_python_generated-0.1.5.dist-info}/licenses/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.1.4.dist-info → twitter_openapi_python_generated-0.1.5.dist-info}/top_level.txt +0 -0
|
@@ -92,7 +92,7 @@ class ApiClient:
|
|
|
92
92
|
self.default_headers[header_name] = header_value
|
|
93
93
|
self.cookie = cookie
|
|
94
94
|
# Set default User-Agent.
|
|
95
|
-
self.user_agent = 'OpenAPI-Generator/0.1.
|
|
95
|
+
self.user_agent = 'OpenAPI-Generator/0.1.5/python'
|
|
96
96
|
self.client_side_validation = configuration.client_side_validation
|
|
97
97
|
|
|
98
98
|
def __enter__(self):
|
|
@@ -802,7 +802,7 @@ conf = twitter_openapi_python_generated.Configuration(
|
|
|
802
802
|
"OS: {env}\n"\
|
|
803
803
|
"Python Version: {pyversion}\n"\
|
|
804
804
|
"Version of the API: 0.0.1\n"\
|
|
805
|
-
"SDK Package Version: 0.1.
|
|
805
|
+
"SDK Package Version: 0.1.5".\
|
|
806
806
|
format(env=sys.platform, pyversion=sys.version)
|
|
807
807
|
|
|
808
808
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -18,8 +18,8 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from twitter_openapi_python_generated.models.key_value import KeyValue
|
|
24
24
|
from typing import Optional, Set
|
|
25
25
|
from typing_extensions import Self
|
|
@@ -29,8 +29,10 @@ class ClickTrackingInfo(BaseModel):
|
|
|
29
29
|
"""
|
|
30
30
|
ClickTrackingInfo
|
|
31
31
|
""" # noqa: E501
|
|
32
|
+
url_override: Optional[StrictStr] = Field(default=None, alias="urlOverride")
|
|
33
|
+
url_override_type: Optional[StrictStr] = Field(default=None, alias="urlOverrideType")
|
|
32
34
|
url_params: List[KeyValue] = Field(alias="urlParams")
|
|
33
|
-
__properties: ClassVar[List[str]] = ["urlParams"]
|
|
35
|
+
__properties: ClassVar[List[str]] = ["urlOverride", "urlOverrideType", "urlParams"]
|
|
34
36
|
|
|
35
37
|
model_config = ConfigDict(
|
|
36
38
|
validate_by_name=True,
|
|
@@ -89,6 +91,8 @@ class ClickTrackingInfo(BaseModel):
|
|
|
89
91
|
return cls.model_validate(obj)
|
|
90
92
|
|
|
91
93
|
_obj = cls.model_validate({
|
|
94
|
+
"urlOverride": obj.get("urlOverride"),
|
|
95
|
+
"urlOverrideType": obj.get("urlOverrideType"),
|
|
92
96
|
"urlParams": [KeyValue.from_dict(_item) for _item in obj["urlParams"]] if obj.get("urlParams") is not None else None
|
|
93
97
|
})
|
|
94
98
|
return _obj
|
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
22
|
-
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from typing_extensions import Annotated
|
|
24
24
|
from twitter_openapi_python_generated.models.type_name import TypeName
|
|
25
25
|
from twitter_openapi_python_generated.models.user_label_mention_user_core import UserLabelMentionUserCore
|
|
@@ -32,13 +32,16 @@ class UserLabelMentionUser(BaseModel):
|
|
|
32
32
|
UserLabelMentionUser
|
|
33
33
|
""" # noqa: E501
|
|
34
34
|
typename: TypeName = Field(alias="__typename")
|
|
35
|
-
core: UserLabelMentionUserCore
|
|
36
|
-
rest_id: Annotated[str, Field(strict=True)]
|
|
35
|
+
core: Optional[UserLabelMentionUserCore] = None
|
|
36
|
+
rest_id: Optional[Annotated[str, Field(strict=True)]] = None
|
|
37
37
|
__properties: ClassVar[List[str]] = ["__typename", "core", "rest_id"]
|
|
38
38
|
|
|
39
39
|
@field_validator('rest_id', mode="before")
|
|
40
40
|
def rest_id_validate_regular_expression(cls, value):
|
|
41
41
|
"""Validates the regular expression"""
|
|
42
|
+
if value is None:
|
|
43
|
+
return value
|
|
44
|
+
|
|
42
45
|
if isinstance(value, str) and not re.match(r"^[0-9]+$", value):
|
|
43
46
|
raise ValueError(r"must validate the regular expression /^[0-9]+$/")
|
|
44
47
|
return value
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: twitter_openapi_python_generated
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: Twitter OpenAPI
|
|
5
5
|
Home-page: https://github.com/fa0311/twitter_openapi_python_generated
|
|
6
6
|
Author: OpenAPI Generator community
|
|
@@ -26,7 +26,7 @@ Twitter OpenAPI(Swagger) specification
|
|
|
26
26
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
27
27
|
|
|
28
28
|
- API version: 0.0.1
|
|
29
|
-
- Package version: 0.1.
|
|
29
|
+
- Package version: 0.1.5
|
|
30
30
|
- Generator version: 7.26.0
|
|
31
31
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
32
32
|
|
|
@@ -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=gJbh59fgdWgwyQLD5fFLohPSxzA1sq1kjP42JOjh2Lk,104237
|
|
2
|
+
twitter_openapi_python_generated/api_client.py,sha256=TZRXiX6t81rPiGfXeFzUOAFF8AMZpKlcjnD-NBF0e68,30318
|
|
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=gIfgs_AdldM5Gd5a-wPq-X9V7MkKCAfAW0XvIbPquvM,30429
|
|
5
5
|
twitter_openapi_python_generated/exceptions.py,sha256=IYSFUKI8C6RiiwvycQmKNk95-EpnSt20MPcKsV99H94,6493
|
|
6
6
|
twitter_openapi_python_generated/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
twitter_openapi_python_generated/rest.py,sha256=M0HonDqQJ4DHWZXbWztNZ58EvQw9eiEdKt9zCIlQVvg,12335
|
|
@@ -115,7 +115,7 @@ twitter_openapi_python_generated/models/broadcast_response.py,sha256=Y58pPiz16jI
|
|
|
115
115
|
twitter_openapi_python_generated/models/callback.py,sha256=wbF6OIq47CAF0oQwsl9iB282ISmlZJzO7wz4H0IA5Ow,2439
|
|
116
116
|
twitter_openapi_python_generated/models/cashtag_attachment.py,sha256=7b6p6odr-mkAnEwPLkvN0pLibEVcRpb84AVW1Lr5dtE,2606
|
|
117
117
|
twitter_openapi_python_generated/models/cashtag_info.py,sha256=HwNcRXsvL8I8q2irx4xq7IQDn0n40jm6EFoAxaoUd9U,2635
|
|
118
|
-
twitter_openapi_python_generated/models/click_tracking_info.py,sha256=
|
|
118
|
+
twitter_openapi_python_generated/models/click_tracking_info.py,sha256=oA7UodL8MgAQyL1FulE5u460pJpRpxFmgtxk8lceLzQ,3348
|
|
119
119
|
twitter_openapi_python_generated/models/client_event_info.py,sha256=aAoS-EO_fSo-Ge45hiD8071qnuHcwYvuI86gdRjTlH0,3039
|
|
120
120
|
twitter_openapi_python_generated/models/client_event_info_details.py,sha256=SdYl6VE0AsiMC8p0lvqL1I9e7WEVyIW8YN4qGVIxb3k,4145
|
|
121
121
|
twitter_openapi_python_generated/models/communities_actions.py,sha256=rgRXIbY1MVrcWQARTOW6jK_nEoITicEfrORNZLqObNg,2473
|
|
@@ -623,7 +623,7 @@ twitter_openapi_python_generated/models/user_highlights_tweets_user.py,sha256=gC
|
|
|
623
623
|
twitter_openapi_python_generated/models/user_label.py,sha256=q7l2kTSnPU5YwQby_8xJeRpm-XIIqlHJCGhKCWB6o44,4722
|
|
624
624
|
twitter_openapi_python_generated/models/user_label_badge.py,sha256=MO8vi2ZVUQvgu3hemGJdYh9GStB14UDLN2pmav1wsMw,2443
|
|
625
625
|
twitter_openapi_python_generated/models/user_label_mention_results.py,sha256=ts26yDJKhviiFcuBdVtki0aOpzZzRKmh852U9nsvO78,2820
|
|
626
|
-
twitter_openapi_python_generated/models/user_label_mention_user.py,sha256=
|
|
626
|
+
twitter_openapi_python_generated/models/user_label_mention_user.py,sha256=cHohn1U0iCgAGgDsDzo0njf7ZK6JYB09RZe2FUAr19c,3580
|
|
627
627
|
twitter_openapi_python_generated/models/user_label_mention_user_core.py,sha256=0DWpdSlLbjbGPIsirxP4-qj2AGsFpmMiZ8YudeTDT7E,2515
|
|
628
628
|
twitter_openapi_python_generated/models/user_label_text.py,sha256=GGg7Ei7PYAtvaiOKNWrO4Nc0q4t3rWQvR5xJgtOcDOA,3065
|
|
629
629
|
twitter_openapi_python_generated/models/user_label_text_entity.py,sha256=J_n2smcLWMYUXgQOU8smTYceU8uOxcVbcbgRM2cOyNE,3020
|
|
@@ -683,9 +683,9 @@ twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py,sha
|
|
|
683
683
|
twitter_openapi_python_generated/models/viewer_badge_counts_result.py,sha256=CoYJbW7phDZ6X2-tuOkvmZuw77f1gJdIOyjxWzTDHJg,3028
|
|
684
684
|
twitter_openapi_python_generated/models/viewer_badge_counts_user_results.py,sha256=F-CXzKd5wVILmshdLyRtZfRRtJoOhcbqaoePas_WPEM,2852
|
|
685
685
|
twitter_openapi_python_generated/models/viewer_badge_counts_viewer.py,sha256=umuP2ac2AlbPvk8jAa1w3LrbKZxUXBOjuqiZKbn4qco,2907
|
|
686
|
-
twitter_openapi_python_generated-0.1.
|
|
687
|
-
twitter_openapi_python_generated-0.1.
|
|
688
|
-
twitter_openapi_python_generated-0.1.
|
|
689
|
-
twitter_openapi_python_generated-0.1.
|
|
690
|
-
twitter_openapi_python_generated-0.1.
|
|
691
|
-
twitter_openapi_python_generated-0.1.
|
|
686
|
+
twitter_openapi_python_generated-0.1.5.dist-info/licenses/LICENSE,sha256=sLv8EMhrPCMG_LeweYvYKS_B-cDMBwBSKZel7LSMGAs,1493
|
|
687
|
+
twitter_openapi_python_generated-0.1.5.dist-info/licenses/LICENSE.AGPL,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
|
|
688
|
+
twitter_openapi_python_generated-0.1.5.dist-info/METADATA,sha256=vZcgrkkA0BF6weQPokmFTpjDiNVtc1lXYfhcyt684C4,64279
|
|
689
|
+
twitter_openapi_python_generated-0.1.5.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
690
|
+
twitter_openapi_python_generated-0.1.5.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
|
|
691
|
+
twitter_openapi_python_generated-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|