twitter-openapi-python-generated 0.1.9__py3-none-any.whl → 0.1.10__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.1.9"
18
+ __version__ = "0.1.10"
19
19
 
20
20
  # Define package exports
21
21
  __all__ = [
@@ -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.9/python'
95
+ self.user_agent = 'OpenAPI-Generator/0.1.10/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.9".\
805
+ "SDK Package Version: 0.1.10".\
806
806
  format(env=sys.platform, pyversion=sys.version)
807
807
 
808
808
  def get_host_settings(self) -> List[HostSetting]:
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictBool
22
- from typing import Any, ClassVar, Dict, List
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
  from pydantic_core import to_jsonable_python
@@ -28,9 +28,11 @@ class EventSummaryAdMetadataContainer(BaseModel):
28
28
  """
29
29
  EventSummaryAdMetadataContainer
30
30
  """ # noqa: E501
31
+ allow_spine_clicks: Optional[StrictBool] = Field(default=None, alias="allowSpineClicks")
31
32
  is_quick_promote: StrictBool = Field(alias="isQuickPromote")
32
33
  render_sales_cta_website_card: StrictBool = Field(alias="renderSalesCtaWebsiteCard")
33
- __properties: ClassVar[List[str]] = ["isQuickPromote", "renderSalesCtaWebsiteCard"]
34
+ show_overlay_on_first_card: Optional[StrictBool] = Field(default=None, alias="showOverlayOnFirstCard")
35
+ __properties: ClassVar[List[str]] = ["allowSpineClicks", "isQuickPromote", "renderSalesCtaWebsiteCard", "showOverlayOnFirstCard"]
34
36
 
35
37
  model_config = ConfigDict(
36
38
  validate_by_name=True,
@@ -83,8 +85,10 @@ class EventSummaryAdMetadataContainer(BaseModel):
83
85
  return cls.model_validate(obj)
84
86
 
85
87
  _obj = cls.model_validate({
88
+ "allowSpineClicks": obj.get("allowSpineClicks"),
86
89
  "isQuickPromote": obj.get("isQuickPromote"),
87
- "renderSalesCtaWebsiteCard": obj.get("renderSalesCtaWebsiteCard")
90
+ "renderSalesCtaWebsiteCard": obj.get("renderSalesCtaWebsiteCard"),
91
+ "showOverlayOnFirstCard": obj.get("showOverlayOnFirstCard")
88
92
  })
89
93
  return _obj
90
94
 
@@ -21,7 +21,6 @@ import json
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing_extensions import Annotated
24
- from uuid import UUID
25
24
  from twitter_openapi_python_generated.models.allow_download_status import AllowDownloadStatus
26
25
  from twitter_openapi_python_generated.models.ext_media_availability import ExtMediaAvailability
27
26
  from twitter_openapi_python_generated.models.media_original_info import MediaOriginalInfo
@@ -44,7 +43,7 @@ class Media(BaseModel):
44
43
  ext_alt_text: Optional[StrictStr] = None
45
44
  ext_media_availability: ExtMediaAvailability
46
45
  features: Optional[Dict[str, Any]] = None
47
- grok_post_id: Optional[UUID] = None
46
+ grok_post_id: Optional[Annotated[str, Field(strict=True)]] = None
48
47
  id_str: Annotated[str, Field(strict=True)]
49
48
  indices: List[StrictInt]
50
49
  media_key: StrictStr
@@ -61,6 +60,16 @@ class Media(BaseModel):
61
60
  video_info: Optional[MediaVideoInfo] = None
62
61
  __properties: ClassVar[List[str]] = ["additional_media_info", "allow_download_status", "display_url", "expanded_url", "ext_alt_text", "ext_media_availability", "features", "grok_post_id", "id_str", "indices", "media_key", "media_results", "media_url_https", "original_info", "sensitive_media_warning", "sizes", "source_status_id_str", "source_user_id_str", "source_user_results", "type", "url", "video_info"]
63
62
 
63
+ @field_validator('grok_post_id', mode="before")
64
+ def grok_post_id_validate_regular_expression(cls, value):
65
+ """Validates the regular expression"""
66
+ if value is None:
67
+ return value
68
+
69
+ if isinstance(value, str) and not re.match(r"^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?$", value):
70
+ raise ValueError(r"must validate the regular expression /^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?$/")
71
+ return value
72
+
64
73
  @field_validator('id_str', mode="before")
65
74
  def id_str_validate_regular_expression(cls, value):
66
75
  """Validates the regular expression"""
@@ -21,7 +21,6 @@ import json
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing_extensions import Annotated
24
- from uuid import UUID
25
24
  from twitter_openapi_python_generated.models.additional_media_info import AdditionalMediaInfo
26
25
  from twitter_openapi_python_generated.models.allow_download_status import AllowDownloadStatus
27
26
  from twitter_openapi_python_generated.models.ext_media_availability import ExtMediaAvailability
@@ -47,7 +46,7 @@ class MediaExtended(BaseModel):
47
46
  ext_alt_text: Optional[StrictStr] = None
48
47
  ext_media_availability: Optional[ExtMediaAvailability] = None
49
48
  features: Optional[Dict[str, Any]] = None
50
- grok_post_id: Optional[UUID] = None
49
+ grok_post_id: Optional[Annotated[str, Field(strict=True)]] = None
51
50
  id_str: Annotated[str, Field(strict=True)]
52
51
  indices: List[StrictInt]
53
52
  media_stats: Optional[MediaStats] = Field(default=None, alias="mediaStats")
@@ -65,6 +64,16 @@ class MediaExtended(BaseModel):
65
64
  video_info: Optional[MediaVideoInfo] = None
66
65
  __properties: ClassVar[List[str]] = ["additional_media_info", "allow_download_status", "display_url", "expanded_url", "ext_alt_text", "ext_media_availability", "features", "grok_post_id", "id_str", "indices", "mediaStats", "media_key", "media_results", "media_url_https", "original_info", "sensitive_media_warning", "sizes", "source_status_id_str", "source_user_id_str", "source_user_results", "type", "url", "video_info"]
67
66
 
67
+ @field_validator('grok_post_id', mode="before")
68
+ def grok_post_id_validate_regular_expression(cls, value):
69
+ """Validates the regular expression"""
70
+ if value is None:
71
+ return value
72
+
73
+ if isinstance(value, str) and not re.match(r"^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?$", value):
74
+ raise ValueError(r"must validate the regular expression /^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?$/")
75
+ return value
76
+
68
77
  @field_validator('id_str', mode="before")
69
78
  def id_str_validate_regular_expression(cls, value):
70
79
  """Validates the regular expression"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: twitter_openapi_python_generated
3
- Version: 0.1.9
3
+ Version: 0.1.10
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.9
29
+ - Package version: 0.1.10
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=Lg0heabbXPSrouRVr-fUiFAv4kjhvfLvDU-wBAqY1pY,105021
2
- twitter_openapi_python_generated/api_client.py,sha256=zoSC4chuRV40ag0_AB3CJ8s3m9D8Em7TCzMYKvqknUY,30318
1
+ twitter_openapi_python_generated/__init__.py,sha256=xPI7y7rFMB7c2lnVMPla4ZSGhnoiy1vhz7qIdja2wJM,105022
2
+ twitter_openapi_python_generated/api_client.py,sha256=arZLOWLYNDBYp2iUN_Ag3u1Mk2P8VaIGNe2hKByUu9Y,30319
3
3
  twitter_openapi_python_generated/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- twitter_openapi_python_generated/configuration.py,sha256=z5x50YBMmJNonfl7FCvCX0taC9WSBm87uyBUm9iZQpc,30429
4
+ twitter_openapi_python_generated/configuration.py,sha256=GuzqRFkCQkpBV0BMcNZurr18Tf-FgR91QOju5gw8ZjM,30430
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
@@ -249,7 +249,7 @@ twitter_openapi_python_generated/models/entities.py,sha256=MBdRISAJkYwDQ2ZfsNsAu
249
249
  twitter_openapi_python_generated/models/error_extensions.py,sha256=7Eg6fLAOu8MKyEadMEy3XB8VqtVSVOusEy7XV60rFvw,3186
250
250
  twitter_openapi_python_generated/models/error_response.py,sha256=IqYA70zwAqZxZW41ZW30LZO92RtORcuvk0kjZq6dX2k,4855
251
251
  twitter_openapi_python_generated/models/error_response_path_inner.py,sha256=xU_dhc5-2lwnOdi2aPVw8AAA642E9LP1KK94TaOkHjo,5265
252
- twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py,sha256=y1g_CoxYMm7AZlVlKWBSuXd1VaC1sFGjixBA5aCC-qM,2795
252
+ twitter_openapi_python_generated/models/event_summary_ad_metadata_container.py,sha256=GHK80UfMNs-WNbjeWYdcpZOR6hVjjl35rmFGdPs-hOk,3185
253
253
  twitter_openapi_python_generated/models/event_summary_event.py,sha256=oetheJ9gg5dM0dvKpQ-4bdENfI1I4J0nTa_3gQZfM1M,2875
254
254
  twitter_openapi_python_generated/models/event_summary_media.py,sha256=YF4gBZYFtFhax9339J7t8lL2GIWQS1ll5uadoErja8s,3354
255
255
  twitter_openapi_python_generated/models/event_summary_media_entity.py,sha256=-Uhyp7nYWwJEbYvHgJUXrr-x1V1CrUVQ1k490MGmcgA,2917
@@ -350,14 +350,14 @@ twitter_openapi_python_generated/models/lists_management_page_timeline_response.
350
350
  twitter_openapi_python_generated/models/lists_management_page_timeline_response_data.py,sha256=Une_phqAK3BGzyVOgzhzfZ3POwUoLQ3hShPzV6eCb84,2887
351
351
  twitter_openapi_python_generated/models/lists_management_viewer.py,sha256=_sfG2EdVCvMpSahRA2xIlTakqtF6zjFR3WGWHCVWf5U,2948
352
352
  twitter_openapi_python_generated/models/location.py,sha256=RL0bwYlAaPNeHRt0JsMP_qYbEYN4QB2UxGDiNtA6Src,2496
353
- twitter_openapi_python_generated/models/media.py,sha256=37fWmd9X8DQFSUKH1pq9eQym85lgafIieFTCOilvvg8,9791
353
+ twitter_openapi_python_generated/models/media.py,sha256=eNaRhe672mM8z35MvRkVsY1uUMHp8m9QitP0pK0kZlE,10301
354
354
  twitter_openapi_python_generated/models/media_color_info.py,sha256=JeW7yhrrOpFop-0Wps7mlxyjJ4sBIC-sKE7erb69Jow,2989
355
355
  twitter_openapi_python_generated/models/media_color_info_palette.py,sha256=0nCdW-xyXK7MVs2KEGwEaBlmDRn7J0GeUPsrBecTYbQ,2942
356
356
  twitter_openapi_python_generated/models/media_color_info_palette_rgb.py,sha256=rg5lurhJLC9bQt1ON8W0Gqw3O9NRynO5NChmKNOF1fk,2617
357
357
  twitter_openapi_python_generated/models/media_community_result.py,sha256=mvnwmAOqxrFIHQEujFA2tYRFEHcNIrsRpQn0ROFG_Ls,3136
358
358
  twitter_openapi_python_generated/models/media_community_results.py,sha256=qPriejavjWccl3k0d8y5FMvjQR7NjsvI4-u5Y3LpJwQ,2811
359
359
  twitter_openapi_python_generated/models/media_community_tweet_data.py,sha256=msXXywzpHmKCT4EbAOkEIXY1740TWxoy6-PFuMod7PI,2958
360
- twitter_openapi_python_generated/models/media_extended.py,sha256=smvlIKtLXjshtzBfR5NbDEf3vO3f3Lryo317L82LErc,10223
360
+ twitter_openapi_python_generated/models/media_extended.py,sha256=KQ8cx0xY7N7nDStlS7j-bAPuj7mO5YDbWdvknUWr1pc,10733
361
361
  twitter_openapi_python_generated/models/media_original_info.py,sha256=o_M89l_pzLl-HXyAbUqAUiZCi6Dz3bcSrNGU1ze9QLU,3250
362
362
  twitter_openapi_python_generated/models/media_original_info_focus_rect.py,sha256=1eDaWIo35TaRzVWjBLZk1445Ojt41ixMHRZJIDyq0Ao,2642
363
363
  twitter_openapi_python_generated/models/media_result.py,sha256=QcH8_8sIdS7ned0i-iudNyIgyotJUiqNtnKpGVG9wXs,3042
@@ -688,9 +688,9 @@ twitter_openapi_python_generated/models/viewer_badge_counts_response_data.py,sha
688
688
  twitter_openapi_python_generated/models/viewer_badge_counts_result.py,sha256=CoYJbW7phDZ6X2-tuOkvmZuw77f1gJdIOyjxWzTDHJg,3028
689
689
  twitter_openapi_python_generated/models/viewer_badge_counts_user_results.py,sha256=F-CXzKd5wVILmshdLyRtZfRRtJoOhcbqaoePas_WPEM,2852
690
690
  twitter_openapi_python_generated/models/viewer_badge_counts_viewer.py,sha256=umuP2ac2AlbPvk8jAa1w3LrbKZxUXBOjuqiZKbn4qco,2907
691
- twitter_openapi_python_generated-0.1.9.dist-info/licenses/LICENSE,sha256=sLv8EMhrPCMG_LeweYvYKS_B-cDMBwBSKZel7LSMGAs,1493
692
- twitter_openapi_python_generated-0.1.9.dist-info/licenses/LICENSE.AGPL,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
693
- twitter_openapi_python_generated-0.1.9.dist-info/METADATA,sha256=U2SGibcAww7bmjQ_C8HR2gWfTci92GudZnHmYoaCXQI,64672
694
- twitter_openapi_python_generated-0.1.9.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
695
- twitter_openapi_python_generated-0.1.9.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
696
- twitter_openapi_python_generated-0.1.9.dist-info/RECORD,,
691
+ twitter_openapi_python_generated-0.1.10.dist-info/licenses/LICENSE,sha256=sLv8EMhrPCMG_LeweYvYKS_B-cDMBwBSKZel7LSMGAs,1493
692
+ twitter_openapi_python_generated-0.1.10.dist-info/licenses/LICENSE.AGPL,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
693
+ twitter_openapi_python_generated-0.1.10.dist-info/METADATA,sha256=UNW7AhNx8kCep6h6ntxUXDhR1-p9yrHaeIGOy7jf8Po,64674
694
+ twitter_openapi_python_generated-0.1.10.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
695
+ twitter_openapi_python_generated-0.1.10.dist-info/top_level.txt,sha256=_HJ3iFAuiS8tEZxA90EesWYeEj6OB4-sNr_c8tj1uWg,33
696
+ twitter_openapi_python_generated-0.1.10.dist-info/RECORD,,