twitter-openapi-python-generated 0.1.6__py3-none-any.whl → 0.1.7__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/timeline_cover_behavior_url.py +4 -4
- twitter_openapi_python_generated/models/timeline_half_cover.py +8 -3
- {twitter_openapi_python_generated-0.1.6.dist-info → twitter_openapi_python_generated-0.1.7.dist-info}/METADATA +2 -2
- {twitter_openapi_python_generated-0.1.6.dist-info → twitter_openapi_python_generated-0.1.7.dist-info}/RECORD +11 -11
- {twitter_openapi_python_generated-0.1.6.dist-info → twitter_openapi_python_generated-0.1.7.dist-info}/WHEEL +0 -0
- {twitter_openapi_python_generated-0.1.6.dist-info → twitter_openapi_python_generated-0.1.7.dist-info}/licenses/LICENSE +0 -0
- {twitter_openapi_python_generated-0.1.6.dist-info → twitter_openapi_python_generated-0.1.7.dist-info}/licenses/LICENSE.AGPL +0 -0
- {twitter_openapi_python_generated-0.1.6.dist-info → twitter_openapi_python_generated-0.1.7.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.7/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.7".\
|
|
806
806
|
format(env=sys.platform, pyversion=sys.version)
|
|
807
807
|
|
|
808
808
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
@@ -29,8 +29,8 @@ class TimelineCoverBehaviorUrl(BaseModel):
|
|
|
29
29
|
TimelineCoverBehaviorUrl
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
url: StrictStr
|
|
32
|
-
url_type: StrictStr
|
|
33
|
-
__properties: ClassVar[List[str]] = ["url", "
|
|
32
|
+
url_type: StrictStr = Field(alias="urlType")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["url", "urlType"]
|
|
34
34
|
|
|
35
35
|
@field_validator('url_type')
|
|
36
36
|
def url_type_validate_enum(cls, value):
|
|
@@ -91,7 +91,7 @@ class TimelineCoverBehaviorUrl(BaseModel):
|
|
|
91
91
|
|
|
92
92
|
_obj = cls.model_validate({
|
|
93
93
|
"url": obj.get("url"),
|
|
94
|
-
"
|
|
94
|
+
"urlType": obj.get("urlType")
|
|
95
95
|
})
|
|
96
96
|
return _obj
|
|
97
97
|
|
|
@@ -19,7 +19,7 @@ import re # noqa: F401
|
|
|
19
19
|
import json
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
|
|
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.callback import Callback
|
|
24
24
|
from twitter_openapi_python_generated.models.cover_cta import CoverCta
|
|
25
25
|
from twitter_openapi_python_generated.models.text import Text
|
|
@@ -31,14 +31,15 @@ class TimelineHalfCover(BaseModel):
|
|
|
31
31
|
"""
|
|
32
32
|
TimelineHalfCover
|
|
33
33
|
""" # noqa: E501
|
|
34
|
-
dismissible: StrictBool
|
|
34
|
+
dismissible: Optional[StrictBool] = None
|
|
35
35
|
half_cover_display_type: StrictStr = Field(alias="halfCoverDisplayType")
|
|
36
36
|
impression_callbacks: List[Callback] = Field(alias="impressionCallbacks")
|
|
37
37
|
primary_cover_cta: CoverCta = Field(alias="primaryCoverCta")
|
|
38
38
|
primary_text: Text = Field(alias="primaryText")
|
|
39
|
+
secondary_cover_cta: Optional[CoverCta] = Field(default=None, alias="secondaryCoverCta")
|
|
39
40
|
secondary_text: Text = Field(alias="secondaryText")
|
|
40
41
|
type: StrictStr
|
|
41
|
-
__properties: ClassVar[List[str]] = ["dismissible", "halfCoverDisplayType", "impressionCallbacks", "primaryCoverCta", "primaryText", "secondaryText", "type"]
|
|
42
|
+
__properties: ClassVar[List[str]] = ["dismissible", "halfCoverDisplayType", "impressionCallbacks", "primaryCoverCta", "primaryText", "secondaryCoverCta", "secondaryText", "type"]
|
|
42
43
|
|
|
43
44
|
@field_validator('type')
|
|
44
45
|
def type_validate_enum(cls, value):
|
|
@@ -98,6 +99,9 @@ class TimelineHalfCover(BaseModel):
|
|
|
98
99
|
# override the default output from pydantic by calling `to_dict()` of primary_text
|
|
99
100
|
if self.primary_text:
|
|
100
101
|
_dict['primaryText'] = self.primary_text.to_dict()
|
|
102
|
+
# override the default output from pydantic by calling `to_dict()` of secondary_cover_cta
|
|
103
|
+
if self.secondary_cover_cta:
|
|
104
|
+
_dict['secondaryCoverCta'] = self.secondary_cover_cta.to_dict()
|
|
101
105
|
# override the default output from pydantic by calling `to_dict()` of secondary_text
|
|
102
106
|
if self.secondary_text:
|
|
103
107
|
_dict['secondaryText'] = self.secondary_text.to_dict()
|
|
@@ -118,6 +122,7 @@ class TimelineHalfCover(BaseModel):
|
|
|
118
122
|
"impressionCallbacks": [Callback.from_dict(_item) for _item in obj["impressionCallbacks"]] if obj.get("impressionCallbacks") is not None else None,
|
|
119
123
|
"primaryCoverCta": CoverCta.from_dict(obj["primaryCoverCta"]) if obj.get("primaryCoverCta") is not None else None,
|
|
120
124
|
"primaryText": Text.from_dict(obj["primaryText"]) if obj.get("primaryText") is not None else None,
|
|
125
|
+
"secondaryCoverCta": CoverCta.from_dict(obj["secondaryCoverCta"]) if obj.get("secondaryCoverCta") is not None else None,
|
|
121
126
|
"secondaryText": Text.from_dict(obj["secondaryText"]) if obj.get("secondaryText") is not None else None,
|
|
122
127
|
"type": obj.get("type")
|
|
123
128
|
})
|
|
@@ -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.7
|
|
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.7
|
|
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=_xiflRloNzMdCV23c4Ah6Ji29sMNsCist-YFkI6kRMM,104342
|
|
2
|
+
twitter_openapi_python_generated/api_client.py,sha256=gcJjhqq_Fo8DSpgdpJFOOHU9Z_6TWtOowUEvSKjDNDY,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=5_V9V0RwDLGyvRfyer_KsLUunuTYyNugZHbepkw-bZE,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
|
|
@@ -500,11 +500,11 @@ twitter_openapi_python_generated/models/timeline_clear_cache.py,sha256=-YL29Tkag
|
|
|
500
500
|
twitter_openapi_python_generated/models/timeline_clear_entries_unread_state.py,sha256=VwYT94N7JoxyCe3kvLP2z4LAs7uzkGNTSpnVBL5EbDc,2595
|
|
501
501
|
twitter_openapi_python_generated/models/timeline_community.py,sha256=RiXIEGcp1awsX9_W5HhAtvHIn-kRwFRTFNh51v1MeHQ,3265
|
|
502
502
|
twitter_openapi_python_generated/models/timeline_cover_behavior.py,sha256=teZkuTuq-4P46derbvxQ4QrO6q18MjXqikJUri4ndZ8,3266
|
|
503
|
-
twitter_openapi_python_generated/models/timeline_cover_behavior_url.py,sha256=
|
|
503
|
+
twitter_openapi_python_generated/models/timeline_cover_behavior_url.py,sha256=KKIMBGu1JpApWdLBdaJxxAGEnrvCdlT9sGuLwrjXjO8,2863
|
|
504
504
|
twitter_openapi_python_generated/models/timeline_event_summary.py,sha256=-NdYWxIJ-Q-_DFpLcxo1H2yDG_CSjMGu12iGrvcmS5I,4954
|
|
505
505
|
twitter_openapi_python_generated/models/timeline_frame.py,sha256=ATgcuwWETVDGaVXy-Ai_7SN2hVDbS8XFIdHiiOSZQak,2931
|
|
506
506
|
twitter_openapi_python_generated/models/timeline_general_context.py,sha256=nbvrdNksDyx4lSyehGHo1I24Z5sJqxhQLCG9L8SlzY4,4070
|
|
507
|
-
twitter_openapi_python_generated/models/timeline_half_cover.py,sha256=
|
|
507
|
+
twitter_openapi_python_generated/models/timeline_half_cover.py,sha256=4KgY067z6IrTcsaKi3e92DAQFh_7lgBcHOWxxGP46Pk,5543
|
|
508
508
|
twitter_openapi_python_generated/models/timeline_label.py,sha256=XxD5Wu_ggkyAa9tM-Mq5SpMPku0ql6lohirMhwqCIlc,3233
|
|
509
509
|
twitter_openapi_python_generated/models/timeline_mark_entries_unread_greater_than_sort_index.py,sha256=Y34Ia9mLdUvLwYrfsIdps3cejffoZLvw4em6aJ0GFZ4,3238
|
|
510
510
|
twitter_openapi_python_generated/models/timeline_message_prompt.py,sha256=xT1U3YJXLWuulGMtlGXqA3uoJScFmSe_8wnhr1N4Sp8,3245
|
|
@@ -684,9 +684,9 @@ twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py,sha
|
|
|
684
684
|
twitter_openapi_python_generated/models/viewer_badge_counts_result.py,sha256=CoYJbW7phDZ6X2-tuOkvmZuw77f1gJdIOyjxWzTDHJg,3028
|
|
685
685
|
twitter_openapi_python_generated/models/viewer_badge_counts_user_results.py,sha256=F-CXzKd5wVILmshdLyRtZfRRtJoOhcbqaoePas_WPEM,2852
|
|
686
686
|
twitter_openapi_python_generated/models/viewer_badge_counts_viewer.py,sha256=umuP2ac2AlbPvk8jAa1w3LrbKZxUXBOjuqiZKbn4qco,2907
|
|
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.
|
|
692
|
-
twitter_openapi_python_generated-0.1.
|
|
687
|
+
twitter_openapi_python_generated-0.1.7.dist-info/licenses/LICENSE,sha256=sLv8EMhrPCMG_LeweYvYKS_B-cDMBwBSKZel7LSMGAs,1493
|
|
688
|
+
twitter_openapi_python_generated-0.1.7.dist-info/licenses/LICENSE.AGPL,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
|
|
689
|
+
twitter_openapi_python_generated-0.1.7.dist-info/METADATA,sha256=6WZc7NCUDpe8-k1EB2sSwASMNJ1bREOKVDGmpkjZ8W0,64406
|
|
690
|
+
twitter_openapi_python_generated-0.1.7.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
691
|
+
twitter_openapi_python_generated-0.1.7.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
|
|
692
|
+
twitter_openapi_python_generated-0.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|