twitter-openapi-python-generated 0.0.10__py3-none-any.whl → 0.0.11__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.
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "0.0.10"
18
+ __version__ = "0.0.11"
19
19
 
20
20
  # import apis into sdk package
21
21
  from twitter_openapi_python_generated.api.default_api import DefaultApi
@@ -92,6 +92,7 @@ from twitter_openapi_python_generated.models.delete_tweet_response import Delete
92
92
  from twitter_openapi_python_generated.models.delete_tweet_response_data import DeleteTweetResponseData
93
93
  from twitter_openapi_python_generated.models.delete_tweet_response_result import DeleteTweetResponseResult
94
94
  from twitter_openapi_python_generated.models.display_treatment import DisplayTreatment
95
+ from twitter_openapi_python_generated.models.display_type import DisplayType
95
96
  from twitter_openapi_python_generated.models.entities import Entities
96
97
  from twitter_openapi_python_generated.models.error import Error
97
98
  from twitter_openapi_python_generated.models.error_extensions import ErrorExtensions
@@ -88,7 +88,7 @@ class ApiClient:
88
88
  self.default_headers[header_name] = header_value
89
89
  self.cookie = cookie
90
90
  # Set default User-Agent.
91
- self.user_agent = 'OpenAPI-Generator/0.0.10/python'
91
+ self.user_agent = 'OpenAPI-Generator/0.0.11/python'
92
92
  self.client_side_validation = configuration.client_side_validation
93
93
 
94
94
  def __enter__(self):
@@ -569,7 +569,7 @@ conf = twitter_openapi_python_generated.Configuration(
569
569
  "OS: {env}\n"\
570
570
  "Python Version: {pyversion}\n"\
571
571
  "Version of the API: 0.0.1\n"\
572
- "SDK Package Version: 0.0.10".\
572
+ "SDK Package Version: 0.0.11".\
573
573
  format(env=sys.platform, pyversion=sys.version)
574
574
 
575
575
  def get_host_settings(self):
@@ -66,6 +66,7 @@ from twitter_openapi_python_generated.models.delete_tweet_response import Delete
66
66
  from twitter_openapi_python_generated.models.delete_tweet_response_data import DeleteTweetResponseData
67
67
  from twitter_openapi_python_generated.models.delete_tweet_response_result import DeleteTweetResponseResult
68
68
  from twitter_openapi_python_generated.models.display_treatment import DisplayTreatment
69
+ from twitter_openapi_python_generated.models.display_type import DisplayType
69
70
  from twitter_openapi_python_generated.models.entities import Entities
70
71
  from twitter_openapi_python_generated.models.error import Error
71
72
  from twitter_openapi_python_generated.models.error_extensions import ErrorExtensions
@@ -0,0 +1,40 @@
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 json
18
+ from enum import Enum
19
+ from typing_extensions import Self
20
+
21
+
22
+ class DisplayType(str, Enum):
23
+ """
24
+ DisplayType
25
+ """
26
+
27
+ """
28
+ allowed enum values
29
+ """
30
+ VERTICAL = 'Vertical'
31
+ VERTICALCONVERSATION = 'VerticalConversation'
32
+ VERTICALGRID = 'VerticalGrid'
33
+ CAROUSEL = 'Carousel'
34
+
35
+ @classmethod
36
+ def from_json(cls, json_str: str) -> Self:
37
+ """Create an instance of DisplayType from a JSON string"""
38
+ return cls(json.loads(json_str))
39
+
40
+
@@ -18,9 +18,10 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, Field, StrictStr, field_validator
21
+ from pydantic import BaseModel, Field, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from twitter_openapi_python_generated.models.content_entry_type import ContentEntryType
24
+ from twitter_openapi_python_generated.models.display_type import DisplayType
24
25
  from twitter_openapi_python_generated.models.feedback_info import FeedbackInfo
25
26
  from twitter_openapi_python_generated.models.module_item import ModuleItem
26
27
  from typing import Optional, Set
@@ -32,7 +33,7 @@ class TimelineTimelineModule(BaseModel):
32
33
  """ # noqa: E501
33
34
  typename: StrictStr = Field(alias="__typename")
34
35
  client_event_info: Dict[str, Any] = Field(alias="clientEventInfo")
35
- display_type: StrictStr = Field(alias="displayType")
36
+ display_type: DisplayType = Field(alias="displayType")
36
37
  entry_type: ContentEntryType = Field(alias="entryType")
37
38
  feedback_info: Optional[FeedbackInfo] = Field(default=None, alias="feedbackInfo")
38
39
  footer: Optional[Dict[str, Any]] = None
@@ -41,13 +42,6 @@ class TimelineTimelineModule(BaseModel):
41
42
  metadata: Optional[Dict[str, Any]] = None
42
43
  __properties: ClassVar[List[str]] = ["__typename", "clientEventInfo", "displayType", "entryType", "feedbackInfo", "footer", "header", "items", "metadata"]
43
44
 
44
- @field_validator('display_type')
45
- def display_type_validate_enum(cls, value):
46
- """Validates the enum"""
47
- if value not in set(['Vertical', 'VerticalConversation', 'VerticalGrid', 'Carousel']):
48
- raise ValueError("must be one of enum values ('Vertical', 'VerticalConversation', 'VerticalGrid', 'Carousel')")
49
- return value
50
-
51
45
  model_config = {
52
46
  "populate_by_name": True,
53
47
  "validate_assignment": True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: twitter-openapi-python-generated
3
- Version: 0.0.10
3
+ Version: 0.0.11
4
4
  Summary: Twitter OpenAPI
5
5
  Home-page: https://github.com/fa0311/twitter_openapi_python_generated
6
6
  Author: OpenAPI Generator community
@@ -1,7 +1,7 @@
1
- twitter_openapi_python_generated/__init__.py,sha256=UIkvGRFK3-6ZoVzLHH0qhiOAY1Dq3bGWrx3Rlk-G4cI,26234
2
- twitter_openapi_python_generated/api_client.py,sha256=fi0932MqfsL7cqv1HetJfttWPrex1nIywUlYafiKwNY,25871
1
+ twitter_openapi_python_generated/__init__.py,sha256=G-2EP7ud7MtMYjdAVms-5Kl1LqWFIpRiFyttkxw2djk,26311
2
+ twitter_openapi_python_generated/api_client.py,sha256=EEcVYdEZYqxfBvC_MSKwZzf7SwmfhyqhS5Wu7iOikUs,25871
3
3
  twitter_openapi_python_generated/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- twitter_openapi_python_generated/configuration.py,sha256=JRXpHMMyPnWNY3iaigVIJRqFUHNaSyqyNoEX1JA2LAc,21192
4
+ twitter_openapi_python_generated/configuration.py,sha256=ZnCOS63v50yXYod9GaFEj6fVlMP-ZBiZbSnnIOEA2cE,21192
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=AWd6M7ii2H7jZcp7X1rrneRAieekgWCNuxeGgAXnGks,9221
@@ -16,7 +16,7 @@ twitter_openapi_python_generated/api/users_api.py,sha256=-uuWuM7-RSqzEen5NjtVNMx
16
16
  twitter_openapi_python_generated/api/v11_get_api.py,sha256=hvEix5p6SrwICVlIs-md5wznQXxn_Tj2wMiEvkvyknQ,36041
17
17
  twitter_openapi_python_generated/api/v11_post_api.py,sha256=V5OLJE4H_TuiMlT72TTqBGNCJ1KLmRdTDqwKkdjc9_k,41109
18
18
  twitter_openapi_python_generated/api/v20_get_api.py,sha256=CRZiaEPgv7JdlFCcCOVe6N1UhfS-1Q6rpAU62RpbuK0,37062
19
- twitter_openapi_python_generated/models/__init__.py,sha256=E-1N2QW09AWL_MjoGt_SDMh0_ViXm9cxdJNZvX21T5M,24829
19
+ twitter_openapi_python_generated/models/__init__.py,sha256=YKx63TX57iV9BFv1KZhCnnNsNUAPgZp-770ipGxwstc,24906
20
20
  twitter_openapi_python_generated/models/additional_media_info.py,sha256=eRYTG-8CCqZo_22GtESjETsEtGExdK98DPv54K9hHXg,3815
21
21
  twitter_openapi_python_generated/models/additional_media_info_call_to_actions.py,sha256=D_fHC5uuAZ_hZNg9NLFUKH4DvLxy6mgb2k-LJe0sEQE,2963
22
22
  twitter_openapi_python_generated/models/additional_media_info_call_to_actions_visit_site.py,sha256=3lEd2wUrsjOS76VwhwoaRYpEYZCMyrvGGTYazssJ6rU,2534
@@ -68,6 +68,7 @@ twitter_openapi_python_generated/models/delete_tweet_response.py,sha256=btLe4kI9
68
68
  twitter_openapi_python_generated/models/delete_tweet_response_data.py,sha256=HM8W1nDDALVE-ZrA9r55ssgqkggaBGIb82fPYyeWWwI,2922
69
69
  twitter_openapi_python_generated/models/delete_tweet_response_result.py,sha256=ImuOYzNKg9VQB8eSR-y0fWclKqozFPDv3XRTDqVXA9M,2504
70
70
  twitter_openapi_python_generated/models/display_treatment.py,sha256=hWT8azI5UmI6FI1M93ZIjKuJrZUr6d42c0TTJupHKpE,2498
71
+ twitter_openapi_python_generated/models/display_type.py,sha256=l27fwbf5XWYO8gRqZ5Y-ZCx-uGIqky7pCjCotAqv3KA,809
71
72
  twitter_openapi_python_generated/models/entities.py,sha256=XL7Ns-tWX7FmuhlaLCu0GaXcFfrNizPirrIZM2v2SDU,3648
72
73
  twitter_openapi_python_generated/models/error.py,sha256=1DhW_K7tPG1U712fXqA0shsomtoX1RJ2_qhQUqWoEDE,4199
73
74
  twitter_openapi_python_generated/models/error_extensions.py,sha256=0BCm1FU_AxA_WtI-mhoHu3SulKcn_NJfEEO1gqx9PsI,3108
@@ -194,7 +195,7 @@ twitter_openapi_python_generated/models/timeline_show_cover.py,sha256=pA5wJtpSmj
194
195
  twitter_openapi_python_generated/models/timeline_terminate_timeline.py,sha256=1bmLUJOEFJAh20nabf6ycws1D0PVMo7SuhmyjhWAx8U,2926
195
196
  twitter_openapi_python_generated/models/timeline_timeline_cursor.py,sha256=mzV1vV-yduTYoWJp_bTaXrdMyo0_CvGFESEeyC0gjEY,4015
196
197
  twitter_openapi_python_generated/models/timeline_timeline_item.py,sha256=NuMhmhFzM1j1hCbbPNizLYtWpvxEoA_cDKMJjYXSwhk,3957
197
- twitter_openapi_python_generated/models/timeline_timeline_module.py,sha256=doEuzuuJ6qeaMtVzv83AKqaPhhTcKj9WOvpBji6aLBU,4715
198
+ twitter_openapi_python_generated/models/timeline_timeline_module.py,sha256=109FKha5vOuOSHsyN1Qz_GxDX8axRjR0aVO0N06aVeY,4418
198
199
  twitter_openapi_python_generated/models/timeline_topic_context.py,sha256=zdB0doY7_lJZ7FtwK6O4j_8G-pI0ygJ0smY3i7penFM,3496
199
200
  twitter_openapi_python_generated/models/timeline_tweet.py,sha256=I524RZVzWGx1xnbQ4dYopkRaxliV4iuQMB8yAF79qUQ,4468
200
201
  twitter_openapi_python_generated/models/timeline_user.py,sha256=RV6BrYsli0SDW1wOxiFJrhzJAmy6ArUQl8iKKo2FXJs,4204
@@ -273,9 +274,9 @@ twitter_openapi_python_generated/models/user_verification_info_reason_descriptio
273
274
  twitter_openapi_python_generated/models/user_verification_info_reason_description_entities_ref.py,sha256=j8zJrg6AGkW_QrV020pYN-PxNq0NrxARa9PD9FQowDo,2913
274
275
  twitter_openapi_python_generated/models/users_response.py,sha256=7roW6h51H-n8DK6vKDVFAt8Yt-C1krpqG_wrQaSUxqs,2732
275
276
  twitter_openapi_python_generated/models/users_response_data.py,sha256=oyFyI_fz_e1DwF7BkW2xC4-fB0xJb8v0b3ru9bfpFaI,2899
276
- twitter_openapi_python_generated-0.0.10.dist-info/LICENSE,sha256=xthyYzrtSmRlBu2gnfuIxzsZeHrqtIZgZPL9UPrYiQU,1524
277
- twitter_openapi_python_generated-0.0.10.dist-info/LICENSE.AGPL,sha256=Nv6u1ubULm-E2y6q2-pQPK8s2BzkOltLaVlPKQ3tkcs,35182
278
- twitter_openapi_python_generated-0.0.10.dist-info/METADATA,sha256=jQWdrNt-8MvDTz7JeYTgTWPkDrIFTLbsZGcdCJUDIp0,633
279
- twitter_openapi_python_generated-0.0.10.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
280
- twitter_openapi_python_generated-0.0.10.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
281
- twitter_openapi_python_generated-0.0.10.dist-info/RECORD,,
277
+ twitter_openapi_python_generated-0.0.11.dist-info/LICENSE,sha256=xthyYzrtSmRlBu2gnfuIxzsZeHrqtIZgZPL9UPrYiQU,1524
278
+ twitter_openapi_python_generated-0.0.11.dist-info/LICENSE.AGPL,sha256=Nv6u1ubULm-E2y6q2-pQPK8s2BzkOltLaVlPKQ3tkcs,35182
279
+ twitter_openapi_python_generated-0.0.11.dist-info/METADATA,sha256=DppzCRy3BXCIiM-ERCiqlRKuHY16cd3DUJCOrHwbCdQ,633
280
+ twitter_openapi_python_generated-0.0.11.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
281
+ twitter_openapi_python_generated-0.0.11.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
282
+ twitter_openapi_python_generated-0.0.11.dist-info/RECORD,,