twitter-openapi-python-generated 0.0.15__py3-none-any.whl → 0.0.16__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.
Files changed (73) hide show
  1. twitter_openapi_python_generated/__init__.py +20 -1
  2. twitter_openapi_python_generated/api/default_api.py +23 -6
  3. twitter_openapi_python_generated/api/other_api.py +3 -3
  4. twitter_openapi_python_generated/api/post_api.py +691 -77
  5. twitter_openapi_python_generated/api/tweet_api.py +33 -33
  6. twitter_openapi_python_generated/api/user_api.py +6 -6
  7. twitter_openapi_python_generated/api/user_list_api.py +15 -15
  8. twitter_openapi_python_generated/api/users_api.py +3 -3
  9. twitter_openapi_python_generated/api/v11_get_api.py +6 -6
  10. twitter_openapi_python_generated/api/v11_post_api.py +6 -6
  11. twitter_openapi_python_generated/api/v20_get_api.py +3 -3
  12. twitter_openapi_python_generated/api_client.py +36 -24
  13. twitter_openapi_python_generated/configuration.py +14 -14
  14. twitter_openapi_python_generated/models/__init__.py +19 -0
  15. twitter_openapi_python_generated/models/allow_download_status.py +88 -0
  16. twitter_openapi_python_generated/models/article_lifecycle_state.py +88 -0
  17. twitter_openapi_python_generated/models/article_metadata.py +88 -0
  18. twitter_openapi_python_generated/models/article_result.py +14 -2
  19. twitter_openapi_python_generated/models/content_union.py +2 -2
  20. twitter_openapi_python_generated/models/create_bookmark_response.py +92 -0
  21. twitter_openapi_python_generated/models/create_bookmark_response_data.py +88 -0
  22. twitter_openapi_python_generated/models/delete_bookmark_response.py +92 -0
  23. twitter_openapi_python_generated/models/delete_bookmark_response_data.py +88 -0
  24. twitter_openapi_python_generated/models/get_bookmarks200_response.py +2 -2
  25. twitter_openapi_python_generated/models/get_favoriters200_response.py +2 -2
  26. twitter_openapi_python_generated/models/get_followers200_response.py +2 -2
  27. twitter_openapi_python_generated/models/get_home_latest_timeline200_response.py +2 -2
  28. twitter_openapi_python_generated/models/get_likes200_response.py +2 -2
  29. twitter_openapi_python_generated/models/get_list_latest_tweets_timeline200_response.py +2 -2
  30. twitter_openapi_python_generated/models/get_profile_spotlights_query200_response.py +2 -2
  31. twitter_openapi_python_generated/models/get_retweeters200_response.py +2 -2
  32. twitter_openapi_python_generated/models/get_search_timeline200_response.py +2 -2
  33. twitter_openapi_python_generated/models/get_tweet_detail200_response.py +2 -2
  34. twitter_openapi_python_generated/models/get_tweet_result_by_rest_id200_response.py +2 -2
  35. twitter_openapi_python_generated/models/get_user_by_rest_id200_response.py +2 -2
  36. twitter_openapi_python_generated/models/get_user_highlights_tweets200_response.py +2 -2
  37. twitter_openapi_python_generated/models/get_users_by_rest_ids200_response.py +2 -2
  38. twitter_openapi_python_generated/models/instruction_union.py +2 -2
  39. twitter_openapi_python_generated/models/item_content_union.py +2 -2
  40. twitter_openapi_python_generated/models/media.py +25 -5
  41. twitter_openapi_python_generated/models/media_extended.py +13 -1
  42. twitter_openapi_python_generated/models/media_result.py +88 -0
  43. twitter_openapi_python_generated/models/media_results.py +92 -0
  44. twitter_openapi_python_generated/models/media_visibility_results.py +92 -0
  45. twitter_openapi_python_generated/models/media_visibility_results_blurred_image_interstitial.py +99 -0
  46. twitter_openapi_python_generated/models/other200_response.py +2 -2
  47. twitter_openapi_python_generated/models/post_create_bookmark200_response.py +138 -0
  48. twitter_openapi_python_generated/models/post_create_bookmark_request.py +94 -0
  49. twitter_openapi_python_generated/models/post_create_bookmark_request_variables.py +88 -0
  50. twitter_openapi_python_generated/models/post_create_retweet200_response.py +2 -2
  51. twitter_openapi_python_generated/models/post_create_tweet200_response.py +2 -2
  52. twitter_openapi_python_generated/models/post_delete_bookmark200_response.py +138 -0
  53. twitter_openapi_python_generated/models/post_delete_bookmark_request.py +94 -0
  54. twitter_openapi_python_generated/models/post_delete_retweet200_response.py +2 -2
  55. twitter_openapi_python_generated/models/post_delete_tweet200_response.py +2 -2
  56. twitter_openapi_python_generated/models/post_favorite_tweet200_response.py +2 -2
  57. twitter_openapi_python_generated/models/post_unfavorite_tweet200_response.py +2 -2
  58. twitter_openapi_python_generated/models/social_context_union.py +2 -2
  59. twitter_openapi_python_generated/models/tweet_union.py +2 -2
  60. twitter_openapi_python_generated/models/tweet_with_visibility_results.py +7 -1
  61. twitter_openapi_python_generated/models/url.py +2 -2
  62. twitter_openapi_python_generated/models/user.py +13 -1
  63. twitter_openapi_python_generated/models/user_legacy_extended_profile.py +92 -0
  64. twitter_openapi_python_generated/models/user_legacy_extended_profile_birthdate.py +110 -0
  65. twitter_openapi_python_generated/models/user_tip_jar_settings.py +100 -0
  66. twitter_openapi_python_generated/models/user_union.py +2 -2
  67. twitter_openapi_python_generated/rest.py +2 -0
  68. {twitter_openapi_python_generated-0.0.15.dist-info → twitter_openapi_python_generated-0.0.16.dist-info}/METADATA +1 -1
  69. {twitter_openapi_python_generated-0.0.15.dist-info → twitter_openapi_python_generated-0.0.16.dist-info}/RECORD +73 -54
  70. {twitter_openapi_python_generated-0.0.15.dist-info → twitter_openapi_python_generated-0.0.16.dist-info}/LICENSE +0 -0
  71. {twitter_openapi_python_generated-0.0.15.dist-info → twitter_openapi_python_generated-0.0.16.dist-info}/LICENSE.AGPL +0 -0
  72. {twitter_openapi_python_generated-0.0.15.dist-info → twitter_openapi_python_generated-0.0.16.dist-info}/WHEEL +0 -0
  73. {twitter_openapi_python_generated-0.0.15.dist-info → twitter_openapi_python_generated-0.0.16.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,92 @@
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
22
+ from typing import Any, ClassVar, Dict, List
23
+ from twitter_openapi_python_generated.models.create_bookmark_response_data import CreateBookmarkResponseData
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class CreateBookmarkResponse(BaseModel):
28
+ """
29
+ CreateBookmarkResponse
30
+ """ # noqa: E501
31
+ data: CreateBookmarkResponseData
32
+ __properties: ClassVar[List[str]] = ["data"]
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 CreateBookmarkResponse 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
+ # override the default output from pydantic by calling `to_dict()` of data
74
+ if self.data:
75
+ _dict['data'] = self.data.to_dict()
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of CreateBookmarkResponse from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "data": CreateBookmarkResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None
89
+ })
90
+ return _obj
91
+
92
+
@@ -0,0 +1,88 @@
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, StrictStr
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class CreateBookmarkResponseData(BaseModel):
27
+ """
28
+ CreateBookmarkResponseData
29
+ """ # noqa: E501
30
+ tweet_bookmark_put: StrictStr
31
+ __properties: ClassVar[List[str]] = ["tweet_bookmark_put"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of CreateBookmarkResponseData from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of CreateBookmarkResponseData from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "tweet_bookmark_put": obj.get("tweet_bookmark_put")
85
+ })
86
+ return _obj
87
+
88
+
@@ -0,0 +1,92 @@
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
22
+ from typing import Any, ClassVar, Dict, List
23
+ from twitter_openapi_python_generated.models.delete_bookmark_response_data import DeleteBookmarkResponseData
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class DeleteBookmarkResponse(BaseModel):
28
+ """
29
+ DeleteBookmarkResponse
30
+ """ # noqa: E501
31
+ data: DeleteBookmarkResponseData
32
+ __properties: ClassVar[List[str]] = ["data"]
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 DeleteBookmarkResponse 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
+ # override the default output from pydantic by calling `to_dict()` of data
74
+ if self.data:
75
+ _dict['data'] = self.data.to_dict()
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of DeleteBookmarkResponse from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "data": DeleteBookmarkResponseData.from_dict(obj["data"]) if obj.get("data") is not None else None
89
+ })
90
+ return _obj
91
+
92
+
@@ -0,0 +1,88 @@
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, StrictStr
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class DeleteBookmarkResponseData(BaseModel):
27
+ """
28
+ DeleteBookmarkResponseData
29
+ """ # noqa: E501
30
+ tweet_bookmark_delete: StrictStr
31
+ __properties: ClassVar[List[str]] = ["tweet_bookmark_delete"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of DeleteBookmarkResponseData from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of DeleteBookmarkResponseData from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "tweet_bookmark_delete": obj.get("tweet_bookmark_delete")
85
+ })
86
+ return _obj
87
+
88
+
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.bookmarks_response import BookmarksResponse
22
22
  from twitter_openapi_python_generated.models.errors import Errors
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETBOOKMARKS200RESPONSE_ONE_OF_SCHEMAS = ["BookmarksResponse", "Errors"]
@@ -35,7 +35,7 @@ class GetBookmarks200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[BookmarksResponse, Errors]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["BookmarksResponse", "Errors"])
38
+ one_of_schemas: Set[str] = { "BookmarksResponse", "Errors" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.tweet_favoriters_response import TweetFavoritersResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETFAVORITERS200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "TweetFavoritersResponse"]
@@ -35,7 +35,7 @@ class GetFavoriters200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, TweetFavoritersResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "TweetFavoritersResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "TweetFavoritersResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.follow_response import FollowResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETFOLLOWERS200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "FollowResponse"]
@@ -35,7 +35,7 @@ class GetFollowers200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, FollowResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "FollowResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "FollowResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.timeline_response import TimelineResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETHOMELATESTTIMELINE200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "TimelineResponse"]
@@ -35,7 +35,7 @@ class GetHomeLatestTimeline200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, TimelineResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "TimelineResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "TimelineResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.user_tweets_response import UserTweetsResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETLIKES200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "UserTweetsResponse"]
@@ -35,7 +35,7 @@ class GetLikes200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, UserTweetsResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "UserTweetsResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "UserTweetsResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.list_latest_tweets_timeline_response import ListLatestTweetsTimelineResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETLISTLATESTTWEETSTIMELINE200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "ListLatestTweetsTimelineResponse"]
@@ -35,7 +35,7 @@ class GetListLatestTweetsTimeline200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, ListLatestTweetsTimelineResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "ListLatestTweetsTimelineResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "ListLatestTweetsTimelineResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.profile_response import ProfileResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETPROFILESPOTLIGHTSQUERY200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "ProfileResponse"]
@@ -35,7 +35,7 @@ class GetProfileSpotlightsQuery200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, ProfileResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "ProfileResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "ProfileResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.tweet_retweeters_response import TweetRetweetersResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETRETWEETERS200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "TweetRetweetersResponse"]
@@ -35,7 +35,7 @@ class GetRetweeters200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, TweetRetweetersResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "TweetRetweetersResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "TweetRetweetersResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.search_timeline_response import SearchTimelineResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETSEARCHTIMELINE200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "SearchTimelineResponse"]
@@ -35,7 +35,7 @@ class GetSearchTimeline200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, SearchTimelineResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "SearchTimelineResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "SearchTimelineResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.tweet_detail_response import TweetDetailResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETTWEETDETAIL200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "TweetDetailResponse"]
@@ -35,7 +35,7 @@ class GetTweetDetail200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, TweetDetailResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "TweetDetailResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "TweetDetailResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.tweet_result_by_rest_id_response import TweetResultByRestIdResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETTWEETRESULTBYRESTID200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "TweetResultByRestIdResponse"]
@@ -35,7 +35,7 @@ class GetTweetResultByRestId200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, TweetResultByRestIdResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "TweetResultByRestIdResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "TweetResultByRestIdResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.user_response import UserResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETUSERBYRESTID200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "UserResponse"]
@@ -35,7 +35,7 @@ class GetUserByRestId200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, UserResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "UserResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "UserResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.user_highlights_tweets_response import UserHighlightsTweetsResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETUSERHIGHLIGHTSTWEETS200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "UserHighlightsTweetsResponse"]
@@ -35,7 +35,7 @@ class GetUserHighlightsTweets200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, UserHighlightsTweetsResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "UserHighlightsTweetsResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "UserHighlightsTweetsResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -21,7 +21,7 @@ from typing import Any, List, Optional
21
21
  from twitter_openapi_python_generated.models.errors import Errors
22
22
  from twitter_openapi_python_generated.models.users_response import UsersResponse
23
23
  from pydantic import StrictStr, Field
24
- from typing import Union, List, Optional, Dict
24
+ from typing import Union, List, Set, Optional, Dict
25
25
  from typing_extensions import Literal, Self
26
26
 
27
27
  GETUSERSBYRESTIDS200RESPONSE_ONE_OF_SCHEMAS = ["Errors", "UsersResponse"]
@@ -35,7 +35,7 @@ class GetUsersByRestIds200Response(BaseModel):
35
35
  # data type: Errors
36
36
  oneof_schema_2_validator: Optional[Errors] = None
37
37
  actual_instance: Optional[Union[Errors, UsersResponse]] = None
38
- one_of_schemas: List[str] = Field(default=Literal["Errors", "UsersResponse"])
38
+ one_of_schemas: Set[str] = { "Errors", "UsersResponse" }
39
39
 
40
40
  model_config = ConfigDict(
41
41
  validate_assignment=True,
@@ -27,7 +27,7 @@ from twitter_openapi_python_generated.models.timeline_show_alert import Timeline
27
27
  from twitter_openapi_python_generated.models.timeline_show_cover import TimelineShowCover
28
28
  from twitter_openapi_python_generated.models.timeline_terminate_timeline import TimelineTerminateTimeline
29
29
  from pydantic import StrictStr, Field
30
- from typing import Union, List, Optional, Dict
30
+ from typing import Union, List, Set, Optional, Dict
31
31
  from typing_extensions import Literal, Self
32
32
 
33
33
  INSTRUCTIONUNION_ONE_OF_SCHEMAS = ["TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline"]
@@ -53,7 +53,7 @@ class InstructionUnion(BaseModel):
53
53
  # data type: TimelineShowCover
54
54
  oneof_schema_8_validator: Optional[TimelineShowCover] = None
55
55
  actual_instance: Optional[Union[TimelineAddEntries, TimelineAddToModule, TimelineClearCache, TimelinePinEntry, TimelineReplaceEntry, TimelineShowAlert, TimelineShowCover, TimelineTerminateTimeline]] = None
56
- one_of_schemas: List[str] = Field(default=Literal["TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline"])
56
+ one_of_schemas: Set[str] = { "TimelineAddEntries", "TimelineAddToModule", "TimelineClearCache", "TimelinePinEntry", "TimelineReplaceEntry", "TimelineShowAlert", "TimelineShowCover", "TimelineTerminateTimeline" }
57
57
 
58
58
  model_config = ConfigDict(
59
59
  validate_assignment=True,
@@ -25,7 +25,7 @@ from twitter_openapi_python_generated.models.timeline_timeline_cursor import Tim
25
25
  from twitter_openapi_python_generated.models.timeline_tweet import TimelineTweet
26
26
  from twitter_openapi_python_generated.models.timeline_user import TimelineUser
27
27
  from pydantic import StrictStr, Field
28
- from typing import Union, List, Optional, Dict
28
+ from typing import Union, List, Set, Optional, Dict
29
29
  from typing_extensions import Literal, Self
30
30
 
31
31
  ITEMCONTENTUNION_ONE_OF_SCHEMAS = ["TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTweet", "TimelineUser"]
@@ -47,7 +47,7 @@ class ItemContentUnion(BaseModel):
47
47
  # data type: TimelineCommunity
48
48
  oneof_schema_6_validator: Optional[TimelineCommunity] = None
49
49
  actual_instance: Optional[Union[TimelineCommunity, TimelineMessagePrompt, TimelinePrompt, TimelineTimelineCursor, TimelineTweet, TimelineUser]] = None
50
- one_of_schemas: List[str] = Field(default=Literal["TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTweet", "TimelineUser"])
50
+ one_of_schemas: Set[str] = { "TimelineCommunity", "TimelineMessagePrompt", "TimelinePrompt", "TimelineTimelineCursor", "TimelineTweet", "TimelineUser" }
51
51
 
52
52
  model_config = ConfigDict(
53
53
  validate_assignment=True,