twitter-openapi-typescript-generated 0.0.7 → 0.0.9
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.
- package/.openapi-generator/FILES +51 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +3 -3
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +1 -1
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +3 -3
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +1 -1
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +13 -13
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +6 -6
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +47 -19
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +187 -9
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +16 -3
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +84 -1
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +45 -5
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +257 -2
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +32 -0
- package/dist/apis/UsersApi.d.ts.map +1 -0
- package/dist/apis/UsersApi.js +164 -0
- package/dist/apis/UsersApi.js.map +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +1 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +2 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +3 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/CursorType.d.ts +27 -0
- package/dist/models/CursorType.d.ts.map +1 -0
- package/dist/models/CursorType.js +40 -0
- package/dist/models/CursorType.js.map +1 -0
- package/dist/models/Entities.d.ts +12 -6
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/ErrorExtensions.d.ts +63 -0
- package/dist/models/ErrorExtensions.d.ts.map +1 -0
- package/dist/models/ErrorExtensions.js +67 -0
- package/dist/models/ErrorExtensions.js.map +1 -0
- package/dist/models/Errors.d.ts +32 -0
- package/dist/models/Errors.d.ts.map +1 -0
- package/dist/models/Errors.js +51 -0
- package/dist/models/Errors.js.map +1 -0
- package/dist/models/GetBookmarks200Response.d.ts +23 -0
- package/dist/models/GetBookmarks200Response.d.ts.map +1 -0
- package/dist/models/GetBookmarks200Response.js +57 -0
- package/dist/models/GetBookmarks200Response.js.map +1 -0
- package/dist/models/GetFavoriters200Response.d.ts +23 -0
- package/dist/models/GetFavoriters200Response.d.ts.map +1 -0
- package/dist/models/GetFavoriters200Response.js +57 -0
- package/dist/models/GetFavoriters200Response.js.map +1 -0
- package/dist/models/GetFollowers200Response.d.ts +23 -0
- package/dist/models/GetFollowers200Response.d.ts.map +1 -0
- package/dist/models/GetFollowers200Response.js +57 -0
- package/dist/models/GetFollowers200Response.js.map +1 -0
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +23 -0
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetHomeLatestTimeline200Response.js +57 -0
- package/dist/models/GetHomeLatestTimeline200Response.js.map +1 -0
- package/dist/models/GetLikes200Response.d.ts +23 -0
- package/dist/models/GetLikes200Response.d.ts.map +1 -0
- package/dist/models/GetLikes200Response.js +57 -0
- package/dist/models/GetLikes200Response.js.map +1 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +23 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.js +57 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.js.map +1 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +23 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.js +57 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.js.map +1 -0
- package/dist/models/GetRetweeters200Response.d.ts +23 -0
- package/dist/models/GetRetweeters200Response.d.ts.map +1 -0
- package/dist/models/GetRetweeters200Response.js +57 -0
- package/dist/models/GetRetweeters200Response.js.map +1 -0
- package/dist/models/GetSearchTimeline200Response.d.ts +23 -0
- package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetSearchTimeline200Response.js +57 -0
- package/dist/models/GetSearchTimeline200Response.js.map +1 -0
- package/dist/models/GetTweetDetail200Response.d.ts +23 -0
- package/dist/models/GetTweetDetail200Response.d.ts.map +1 -0
- package/dist/models/GetTweetDetail200Response.js +57 -0
- package/dist/models/GetTweetDetail200Response.js.map +1 -0
- package/dist/models/GetUserByRestId200Response.d.ts +23 -0
- package/dist/models/GetUserByRestId200Response.d.ts.map +1 -0
- package/dist/models/GetUserByRestId200Response.js +57 -0
- package/dist/models/GetUserByRestId200Response.js.map +1 -0
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +23 -0
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -0
- package/dist/models/GetUserHighlightsTweets200Response.js +57 -0
- package/dist/models/GetUserHighlightsTweets200Response.js.map +1 -0
- package/dist/models/GetUsersByRestIds200Response.d.ts +23 -0
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -0
- package/dist/models/GetUsersByRestIds200Response.js +57 -0
- package/dist/models/GetUsersByRestIds200Response.js.map +1 -0
- package/dist/models/InstructionType.d.ts +3 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +3 -0
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +9 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +15 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +9 -3
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +17 -7
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
- package/dist/models/Location.d.ts +38 -0
- package/dist/models/Location.d.ts.map +1 -0
- package/dist/models/Location.js +54 -0
- package/dist/models/Location.js.map +1 -0
- package/dist/models/Media.d.ts +8 -4
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/MediaOriginalInfo.d.ts +4 -2
- package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
- package/dist/models/ModelError.d.ts +89 -0
- package/dist/models/ModelError.d.ts.map +1 -0
- package/dist/models/ModelError.js +81 -0
- package/dist/models/ModelError.js.map +1 -0
- package/dist/models/ModuleEntry.d.ts +4 -2
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/Other200Response.d.ts +22 -0
- package/dist/models/Other200Response.d.ts.map +1 -0
- package/dist/models/Other200Response.js +53 -0
- package/dist/models/Other200Response.js.map +1 -0
- package/dist/models/PostCreateRetweet200Response.d.ts +23 -0
- package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -0
- package/dist/models/PostCreateRetweet200Response.js +57 -0
- package/dist/models/PostCreateRetweet200Response.js.map +1 -0
- package/dist/models/PostCreateTweet200Response.d.ts +23 -0
- package/dist/models/PostCreateTweet200Response.d.ts.map +1 -0
- package/dist/models/PostCreateTweet200Response.js +57 -0
- package/dist/models/PostCreateTweet200Response.js.map +1 -0
- package/dist/models/PostDeleteRetweet200Response.d.ts +23 -0
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -0
- package/dist/models/PostDeleteRetweet200Response.js +57 -0
- package/dist/models/PostDeleteRetweet200Response.js.map +1 -0
- package/dist/models/PostDeleteTweet200Response.d.ts +23 -0
- package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -0
- package/dist/models/PostDeleteTweet200Response.js +57 -0
- package/dist/models/PostDeleteTweet200Response.js.map +1 -0
- package/dist/models/PostFavoriteTweet200Response.d.ts +23 -0
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -0
- package/dist/models/PostFavoriteTweet200Response.js +57 -0
- package/dist/models/PostFavoriteTweet200Response.js.map +1 -0
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +23 -0
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -0
- package/dist/models/PostUnfavoriteTweet200Response.js +57 -0
- package/dist/models/PostUnfavoriteTweet200Response.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -0
- package/dist/models/SearchByRawQuery.d.ts.map +1 -0
- package/dist/models/SearchByRawQuery.js +52 -0
- package/dist/models/SearchByRawQuery.js.map +1 -0
- package/dist/models/SearchTimeline.d.ts +33 -0
- package/dist/models/SearchTimeline.d.ts.map +1 -0
- package/dist/models/SearchTimeline.js +52 -0
- package/dist/models/SearchTimeline.js.map +1 -0
- package/dist/models/SearchTimelineData.d.ts +33 -0
- package/dist/models/SearchTimelineData.d.ts.map +1 -0
- package/dist/models/SearchTimelineData.js +52 -0
- package/dist/models/SearchTimelineData.js.map +1 -0
- package/dist/models/SearchTimelineResponse.d.ts +33 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
- package/dist/models/SearchTimelineResponse.js +52 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -0
- package/dist/models/Timeline.d.ts +8 -4
- package/dist/models/Timeline.d.ts.map +1 -1
- package/dist/models/TimelineAddToModule.d.ts +52 -0
- package/dist/models/TimelineAddToModule.d.ts.map +1 -0
- package/dist/models/TimelineAddToModule.js +62 -0
- package/dist/models/TimelineAddToModule.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +34 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
- package/dist/models/TimelineMessagePrompt.js +59 -0
- package/dist/models/TimelineMessagePrompt.js.map +1 -0
- package/dist/models/TimelinePrompt.d.ts +34 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -0
- package/dist/models/TimelinePrompt.js +59 -0
- package/dist/models/TimelinePrompt.js.map +1 -0
- package/dist/models/TimelineReplaceEntry.d.ts +46 -0
- package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
- package/dist/models/TimelineReplaceEntry.js +59 -0
- package/dist/models/TimelineReplaceEntry.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +101 -0
- package/dist/models/TimelineShowAlert.d.ts.map +1 -0
- package/dist/models/TimelineShowAlert.js +85 -0
- package/dist/models/TimelineShowAlert.js.map +1 -0
- package/dist/models/TimelineShowAlertRichText.d.ts +40 -0
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
- package/dist/models/TimelineShowAlertRichText.js +53 -0
- package/dist/models/TimelineShowAlertRichText.js.map +1 -0
- package/dist/models/TimelineTimelineCursor.d.ts +3 -13
- package/dist/models/TimelineTimelineCursor.d.ts.map +1 -1
- package/dist/models/TimelineTimelineCursor.js +4 -13
- package/dist/models/TimelineTimelineCursor.js.map +1 -1
- package/dist/models/TimelineTimelineItem.d.ts +8 -4
- package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +12 -6
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTweet.d.ts +4 -2
- package/dist/models/TimelineTweet.d.ts.map +1 -1
- package/dist/models/Tracing.d.ts +32 -0
- package/dist/models/Tracing.d.ts.map +1 -0
- package/dist/models/Tracing.js +51 -0
- package/dist/models/Tracing.js.map +1 -0
- package/dist/models/Tweet.d.ts +5 -3
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +1 -2
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetFavoritersResponse.d.ts +33 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponse.js +52 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -0
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponseData.js +52 -0
- package/dist/models/TweetFavoritersResponseData.js.map +1 -0
- package/dist/models/TweetRetweetersResponse.d.ts +33 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponse.js +52 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -0
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponseData.js +52 -0
- package/dist/models/TweetRetweetersResponseData.js.map +1 -0
- package/dist/models/TweetTombstone.d.ts +1 -0
- package/dist/models/TweetTombstone.d.ts.map +1 -1
- package/dist/models/TweetTombstone.js +13 -6
- package/dist/models/TweetTombstone.js.map +1 -1
- package/dist/models/TypeName.d.ts +3 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +4 -1
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/User.d.ts +8 -4
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/UserHighlightsTweetsData.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsData.js +52 -0
- package/dist/models/UserHighlightsTweetsData.js.map +1 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsResponse.js +52 -0
- package/dist/models/UserHighlightsTweetsResponse.js.map +1 -0
- package/dist/models/UserHighlightsTweetsResult.d.ts +40 -0
- package/dist/models/UserHighlightsTweetsResult.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsResult.js +56 -0
- package/dist/models/UserHighlightsTweetsResult.js.map +1 -0
- package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsTimeline.js +52 -0
- package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -0
- package/dist/models/UserHighlightsTweetsUser.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsUser.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsUser.js +52 -0
- package/dist/models/UserHighlightsTweetsUser.js.map +1 -0
- package/dist/models/UserLegacy.d.ts +9 -7
- package/dist/models/UserLegacy.d.ts.map +1 -1
- package/dist/models/UserLegacy.js +5 -10
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserResultByScreenNameResult.d.ts +4 -2
- package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
- package/dist/models/UserResults.d.ts +3 -3
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +3 -3
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/UserUnavailable.d.ts +39 -0
- package/dist/models/UserUnavailable.d.ts.map +1 -0
- package/dist/models/UserUnavailable.js +55 -0
- package/dist/models/UserUnavailable.js.map +1 -0
- package/dist/models/UserUnion.d.ts +27 -0
- package/dist/models/UserUnion.d.ts.map +1 -0
- package/dist/models/UserUnion.js +65 -0
- package/dist/models/UserUnion.js.map +1 -0
- package/dist/models/UsersResponse.d.ts +33 -0
- package/dist/models/UsersResponse.d.ts.map +1 -0
- package/dist/models/UsersResponse.js +52 -0
- package/dist/models/UsersResponse.js.map +1 -0
- package/dist/models/UsersResponseData.d.ts +33 -0
- package/dist/models/UsersResponseData.d.ts.map +1 -0
- package/dist/models/UsersResponseData.js +52 -0
- package/dist/models/UsersResponseData.js.map +1 -0
- package/dist/models/index.d.ts +50 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +50 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/DefaultApi.ts +6 -6
- package/src/apis/OtherApi.ts +6 -6
- package/src/apis/PostApi.ts +36 -36
- package/src/apis/TweetApi.ts +234 -42
- package/src/apis/UserApi.ts +90 -6
- package/src/apis/UserListApi.ts +276 -9
- package/src/apis/UsersApi.ts +114 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ContentItemType.ts +3 -1
- package/src/models/CursorType.ts +41 -0
- package/src/models/Entities.ts +6 -6
- package/src/models/ErrorExtensions.ts +118 -0
- package/src/models/Errors.ts +66 -0
- package/src/models/GetBookmarks200Response.ts +65 -0
- package/src/models/GetFavoriters200Response.ts +65 -0
- package/src/models/GetFollowers200Response.ts +65 -0
- package/src/models/GetHomeLatestTimeline200Response.ts +65 -0
- package/src/models/GetLikes200Response.ts +65 -0
- package/src/models/GetListLatestTweetsTimeline200Response.ts +65 -0
- package/src/models/GetProfileSpotlightsQuery200Response.ts +65 -0
- package/src/models/GetRetweeters200Response.ts +65 -0
- package/src/models/GetSearchTimeline200Response.ts +65 -0
- package/src/models/GetTweetDetail200Response.ts +65 -0
- package/src/models/GetUserByRestId200Response.ts +65 -0
- package/src/models/GetUserHighlightsTweets200Response.ts +65 -0
- package/src/models/GetUsersByRestIds200Response.ts +65 -0
- package/src/models/InstructionType.ts +3 -0
- package/src/models/InstructionUnion.ts +34 -1
- package/src/models/ItemContentUnion.ts +30 -8
- package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
- package/src/models/Location.ts +75 -0
- package/src/models/Media.ts +4 -4
- package/src/models/MediaOriginalInfo.ts +2 -2
- package/src/models/ModelError.ts +166 -0
- package/src/models/ModuleEntry.ts +2 -2
- package/src/models/Other200Response.ts +55 -0
- package/src/models/PostCreateRetweet200Response.ts +65 -0
- package/src/models/PostCreateTweet200Response.ts +65 -0
- package/src/models/PostDeleteRetweet200Response.ts +65 -0
- package/src/models/PostDeleteTweet200Response.ts +65 -0
- package/src/models/PostFavoriteTweet200Response.ts +65 -0
- package/src/models/PostUnfavoriteTweet200Response.ts +65 -0
- package/src/models/SearchByRawQuery.ts +73 -0
- package/src/models/SearchTimeline.ts +73 -0
- package/src/models/SearchTimelineData.ts +73 -0
- package/src/models/SearchTimelineResponse.ts +73 -0
- package/src/models/Timeline.ts +4 -4
- package/src/models/TimelineAddToModule.ts +105 -0
- package/src/models/TimelineMessagePrompt.ts +75 -0
- package/src/models/TimelinePrompt.ts +75 -0
- package/src/models/TimelineReplaceEntry.ts +97 -0
- package/src/models/TimelineShowAlert.ts +169 -0
- package/src/models/TimelineShowAlertRichText.ts +73 -0
- package/src/models/TimelineTimelineCursor.ts +10 -18
- package/src/models/TimelineTimelineItem.ts +4 -4
- package/src/models/TimelineTimelineModule.ts +6 -6
- package/src/models/TimelineTweet.ts +2 -2
- package/src/models/Tracing.ts +66 -0
- package/src/models/Tweet.ts +4 -5
- package/src/models/TweetFavoritersResponse.ts +73 -0
- package/src/models/TweetFavoritersResponseData.ts +73 -0
- package/src/models/TweetRetweetersResponse.ts +73 -0
- package/src/models/TweetRetweetersResponseData.ts +73 -0
- package/src/models/TweetTombstone.ts +3 -0
- package/src/models/TypeName.ts +4 -1
- package/src/models/User.ts +4 -4
- package/src/models/UserHighlightsTweetsData.ts +73 -0
- package/src/models/UserHighlightsTweetsResponse.ts +73 -0
- package/src/models/UserHighlightsTweetsResult.ts +88 -0
- package/src/models/UserHighlightsTweetsTimeline.ts +73 -0
- package/src/models/UserHighlightsTweetsUser.ts +73 -0
- package/src/models/UserLegacy.ts +12 -17
- package/src/models/UserResultByScreenNameResult.ts +2 -2
- package/src/models/UserResults.ts +9 -9
- package/src/models/UserUnavailable.ts +82 -0
- package/src/models/UserUnion.ts +72 -0
- package/src/models/UsersResponse.ts +73 -0
- package/src/models/UsersResponseData.ts +73 -0
- package/src/models/index.ts +50 -1
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/.github/workflows/test-build.yaml +87 -0
- package/twitter-openapi/.github/workflows/test-python.yaml +100 -0
- package/twitter-openapi/.vscode/launch.json +25 -0
- package/twitter-openapi/.vscode/settings.json +1 -1
- package/twitter-openapi/.vscode/tasks.json +45 -0
- package/twitter-openapi/CONTRIBUTING.md +13 -0
- package/twitter-openapi/README.md +2 -2
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +19 -3
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/dist/compatible/paths/follow.yaml +99 -2
- package/twitter-openapi/dist/compatible/paths/other.yaml +2 -1
- package/twitter-openapi/dist/compatible/paths/post.yaml +18 -6
- package/twitter-openapi/dist/compatible/paths/profile.yaml +5 -2
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +128 -5
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +199 -1
- package/twitter-openapi/dist/compatible/paths/user.yaml +151 -1
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +140 -4
- package/twitter-openapi/dist/compatible/schemas/content.yaml +35 -15
- package/twitter-openapi/dist/compatible/schemas/error.yaml +94 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +77 -4
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +2 -0
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +8 -1
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +3 -0
- package/twitter-openapi/dist/compatible/schemas/user.yaml +23 -7
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +19 -3
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/dist/docs/paths/follow.yaml +201 -2
- package/twitter-openapi/dist/docs/paths/other.yaml +2 -1
- package/twitter-openapi/dist/docs/paths/post.yaml +18 -6
- package/twitter-openapi/dist/docs/paths/profile.yaml +5 -2
- package/twitter-openapi/dist/docs/paths/timeline.yaml +235 -5
- package/twitter-openapi/dist/docs/paths/tweet.yaml +389 -1
- package/twitter-openapi/dist/docs/paths/user.yaml +221 -1
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +250 -4
- package/twitter-openapi/dist/docs/schemas/content.yaml +35 -15
- package/twitter-openapi/dist/docs/schemas/error.yaml +94 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -4
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +2 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -1
- package/twitter-openapi/dist/docs/schemas/typename.yaml +3 -0
- package/twitter-openapi/dist/docs/schemas/user.yaml +23 -7
- package/twitter-openapi/src/config/placeholder.json +190 -0
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +5 -3
- package/twitter-openapi/src/openapi/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/src/openapi/paths/follow.yaml +22 -2
- package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
- package/twitter-openapi/src/openapi/paths/post.yaml +18 -6
- package/twitter-openapi/src/openapi/paths/profile.yaml +6 -3
- package/twitter-openapi/src/openapi/paths/timeline.yaml +54 -4
- package/twitter-openapi/src/openapi/paths/tweet.yaml +63 -1
- package/twitter-openapi/src/openapi/paths/user.yaml +51 -1
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +66 -4
- package/twitter-openapi/src/openapi/schemas/content.yaml +47 -18
- package/twitter-openapi/src/openapi/schemas/error.yaml +99 -0
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +79 -5
- package/twitter-openapi/src/openapi/schemas/timeline.yaml +4 -2
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +16 -9
- package/twitter-openapi/src/openapi/schemas/typename.yaml +3 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +33 -10
- package/twitter-openapi/test/dart-dio/openapi-generator-config.yaml +2 -0
- package/twitter-openapi/test/local.sh +6 -0
- package/twitter-openapi/test/python/openapi-generator-config.yaml +4 -0
- package/twitter-openapi/test/python/test_serialize.py +160 -0
- package/twitter-openapi/test/typescript-fetch/openapi-generator-config.yaml +4 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/build_config.py +1 -1
- package/twitter-openapi/tools/hooks.py +23 -0
- package/twitter-openapi/tools/login.py +17 -0
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineResponse.js +0 -52
- package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetRetweetersResponseData } from './TweetRetweetersResponseData';
|
|
17
|
+
import {
|
|
18
|
+
TweetRetweetersResponseDataFromJSON,
|
|
19
|
+
TweetRetweetersResponseDataFromJSONTyped,
|
|
20
|
+
TweetRetweetersResponseDataToJSON,
|
|
21
|
+
} from './TweetRetweetersResponseData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetRetweetersResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetRetweetersResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetRetweetersResponseData}
|
|
32
|
+
* @memberof TweetRetweetersResponse
|
|
33
|
+
*/
|
|
34
|
+
data: TweetRetweetersResponseData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetRetweetersResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetRetweetersResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetRetweetersResponseFromJSON(json: any): TweetRetweetersResponse {
|
|
48
|
+
return TweetRetweetersResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetRetweetersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRetweetersResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': TweetRetweetersResponseDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetRetweetersResponseToJSON(value?: TweetRetweetersResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': TweetRetweetersResponseDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TimelineV2 } from './TimelineV2';
|
|
17
|
+
import {
|
|
18
|
+
TimelineV2FromJSON,
|
|
19
|
+
TimelineV2FromJSONTyped,
|
|
20
|
+
TimelineV2ToJSON,
|
|
21
|
+
} from './TimelineV2';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetRetweetersResponseData
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetRetweetersResponseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TimelineV2}
|
|
32
|
+
* @memberof TweetRetweetersResponseData
|
|
33
|
+
*/
|
|
34
|
+
retweetersTimeline: TimelineV2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetRetweetersResponseData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetRetweetersResponseData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "retweetersTimeline" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetRetweetersResponseDataFromJSON(json: any): TweetRetweetersResponseData {
|
|
48
|
+
return TweetRetweetersResponseDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetRetweetersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRetweetersResponseData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'retweetersTimeline': TimelineV2FromJSON(json['retweeters_timeline']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetRetweetersResponseDataToJSON(value?: TweetRetweetersResponseData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'retweeters_timeline': TimelineV2ToJSON(value.retweetersTimeline),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
* @interface TweetTombstone
|
|
27
27
|
*/
|
|
28
28
|
export interface TweetTombstone {
|
|
29
|
+
[key: string]: any | any;
|
|
29
30
|
/**
|
|
30
31
|
*
|
|
31
32
|
* @type {TypeName}
|
|
@@ -53,6 +54,7 @@ export function TweetTombstoneFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
56
|
|
|
57
|
+
...json,
|
|
56
58
|
'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -66,6 +68,7 @@ export function TweetTombstoneToJSON(value?: TweetTombstone | null): any {
|
|
|
66
68
|
}
|
|
67
69
|
return {
|
|
68
70
|
|
|
71
|
+
...value,
|
|
69
72
|
'__typename': TypeNameToJSON(value.typename),
|
|
70
73
|
};
|
|
71
74
|
}
|
package/src/models/TypeName.ts
CHANGED
|
@@ -25,8 +25,11 @@ export const TypeName = {
|
|
|
25
25
|
TweetWithVisibilityResults: 'TweetWithVisibilityResults',
|
|
26
26
|
TimelineTimelineModule: 'TimelineTimelineModule',
|
|
27
27
|
TweetTombstone: 'TweetTombstone',
|
|
28
|
+
TimelinePrompt: 'TimelinePrompt',
|
|
29
|
+
TimelineMessagePrompt: 'TimelineMessagePrompt',
|
|
28
30
|
Tweet: 'Tweet',
|
|
29
|
-
User: 'User'
|
|
31
|
+
User: 'User',
|
|
32
|
+
UserUnavailable: 'UserUnavailable'
|
|
30
33
|
} as const;
|
|
31
34
|
export type TypeName = typeof TypeName[keyof typeof TypeName];
|
|
32
35
|
|
package/src/models/User.ts
CHANGED
|
@@ -40,16 +40,16 @@ export interface User {
|
|
|
40
40
|
typename: TypeName;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {
|
|
43
|
+
* @type {{ [key: string]: any; }}
|
|
44
44
|
* @memberof User
|
|
45
45
|
*/
|
|
46
|
-
affiliatesHighlightedLabel:
|
|
46
|
+
affiliatesHighlightedLabel: { [key: string]: any; };
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
50
|
* @memberof User
|
|
51
51
|
*/
|
|
52
|
-
businessAccount?:
|
|
52
|
+
businessAccount?: { [key: string]: any; };
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {boolean}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UserHighlightsTweetsUser } from './UserHighlightsTweetsUser';
|
|
17
|
+
import {
|
|
18
|
+
UserHighlightsTweetsUserFromJSON,
|
|
19
|
+
UserHighlightsTweetsUserFromJSONTyped,
|
|
20
|
+
UserHighlightsTweetsUserToJSON,
|
|
21
|
+
} from './UserHighlightsTweetsUser';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UserHighlightsTweetsData
|
|
27
|
+
*/
|
|
28
|
+
export interface UserHighlightsTweetsData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UserHighlightsTweetsUser}
|
|
32
|
+
* @memberof UserHighlightsTweetsData
|
|
33
|
+
*/
|
|
34
|
+
user: UserHighlightsTweetsUser;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserHighlightsTweetsData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUserHighlightsTweetsData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "user" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserHighlightsTweetsDataFromJSON(json: any): UserHighlightsTweetsData {
|
|
48
|
+
return UserHighlightsTweetsDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserHighlightsTweetsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'user': UserHighlightsTweetsUserFromJSON(json['user']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UserHighlightsTweetsDataToJSON(value?: UserHighlightsTweetsData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'user': UserHighlightsTweetsUserToJSON(value.user),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UserHighlightsTweetsData } from './UserHighlightsTweetsData';
|
|
17
|
+
import {
|
|
18
|
+
UserHighlightsTweetsDataFromJSON,
|
|
19
|
+
UserHighlightsTweetsDataFromJSONTyped,
|
|
20
|
+
UserHighlightsTweetsDataToJSON,
|
|
21
|
+
} from './UserHighlightsTweetsData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UserHighlightsTweetsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface UserHighlightsTweetsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UserHighlightsTweetsData}
|
|
32
|
+
* @memberof UserHighlightsTweetsResponse
|
|
33
|
+
*/
|
|
34
|
+
data: UserHighlightsTweetsData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserHighlightsTweetsResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUserHighlightsTweetsResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserHighlightsTweetsResponseFromJSON(json: any): UserHighlightsTweetsResponse {
|
|
48
|
+
return UserHighlightsTweetsResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserHighlightsTweetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': UserHighlightsTweetsDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UserHighlightsTweetsResponseToJSON(value?: UserHighlightsTweetsResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': UserHighlightsTweetsDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TypeName } from './TypeName';
|
|
17
|
+
import {
|
|
18
|
+
TypeNameFromJSON,
|
|
19
|
+
TypeNameFromJSONTyped,
|
|
20
|
+
TypeNameToJSON,
|
|
21
|
+
} from './TypeName';
|
|
22
|
+
import type { UserHighlightsTweetsTimeline } from './UserHighlightsTweetsTimeline';
|
|
23
|
+
import {
|
|
24
|
+
UserHighlightsTweetsTimelineFromJSON,
|
|
25
|
+
UserHighlightsTweetsTimelineFromJSONTyped,
|
|
26
|
+
UserHighlightsTweetsTimelineToJSON,
|
|
27
|
+
} from './UserHighlightsTweetsTimeline';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface UserHighlightsTweetsResult
|
|
33
|
+
*/
|
|
34
|
+
export interface UserHighlightsTweetsResult {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {TypeName}
|
|
38
|
+
* @memberof UserHighlightsTweetsResult
|
|
39
|
+
*/
|
|
40
|
+
typename: TypeName;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {UserHighlightsTweetsTimeline}
|
|
44
|
+
* @memberof UserHighlightsTweetsResult
|
|
45
|
+
*/
|
|
46
|
+
timeline: UserHighlightsTweetsTimeline;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UserHighlightsTweetsResult interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfUserHighlightsTweetsResult(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "typename" in value;
|
|
55
|
+
isInstance = isInstance && "timeline" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UserHighlightsTweetsResultFromJSON(json: any): UserHighlightsTweetsResult {
|
|
61
|
+
return UserHighlightsTweetsResultFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UserHighlightsTweetsResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsResult {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'typename': TypeNameFromJSON(json['__typename']),
|
|
71
|
+
'timeline': UserHighlightsTweetsTimelineFromJSON(json['timeline']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function UserHighlightsTweetsResultToJSON(value?: UserHighlightsTweetsResult | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'__typename': TypeNameToJSON(value.typename),
|
|
85
|
+
'timeline': UserHighlightsTweetsTimelineToJSON(value.timeline),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Timeline } from './Timeline';
|
|
17
|
+
import {
|
|
18
|
+
TimelineFromJSON,
|
|
19
|
+
TimelineFromJSONTyped,
|
|
20
|
+
TimelineToJSON,
|
|
21
|
+
} from './Timeline';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UserHighlightsTweetsTimeline
|
|
27
|
+
*/
|
|
28
|
+
export interface UserHighlightsTweetsTimeline {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Timeline}
|
|
32
|
+
* @memberof UserHighlightsTweetsTimeline
|
|
33
|
+
*/
|
|
34
|
+
timeline: Timeline;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserHighlightsTweetsTimeline interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUserHighlightsTweetsTimeline(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "timeline" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserHighlightsTweetsTimelineFromJSON(json: any): UserHighlightsTweetsTimeline {
|
|
48
|
+
return UserHighlightsTweetsTimelineFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserHighlightsTweetsTimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsTimeline {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'timeline': TimelineFromJSON(json['timeline']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UserHighlightsTweetsTimelineToJSON(value?: UserHighlightsTweetsTimeline | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'timeline': TimelineToJSON(value.timeline),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UserHighlightsTweetsResult } from './UserHighlightsTweetsResult';
|
|
17
|
+
import {
|
|
18
|
+
UserHighlightsTweetsResultFromJSON,
|
|
19
|
+
UserHighlightsTweetsResultFromJSONTyped,
|
|
20
|
+
UserHighlightsTweetsResultToJSON,
|
|
21
|
+
} from './UserHighlightsTweetsResult';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UserHighlightsTweetsUser
|
|
27
|
+
*/
|
|
28
|
+
export interface UserHighlightsTweetsUser {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UserHighlightsTweetsResult}
|
|
32
|
+
* @memberof UserHighlightsTweetsUser
|
|
33
|
+
*/
|
|
34
|
+
result: UserHighlightsTweetsResult;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserHighlightsTweetsUser interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUserHighlightsTweetsUser(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "result" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserHighlightsTweetsUserFromJSON(json: any): UserHighlightsTweetsUser {
|
|
48
|
+
return UserHighlightsTweetsUserFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserHighlightsTweetsUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsUser {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'result': UserHighlightsTweetsResultFromJSON(json['result']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UserHighlightsTweetsUserToJSON(value?: UserHighlightsTweetsUser | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'result': UserHighlightsTweetsResultToJSON(value.result),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/UserLegacy.ts
CHANGED
|
@@ -69,10 +69,10 @@ export interface UserLegacy {
|
|
|
69
69
|
description: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
|
-
* @type {
|
|
72
|
+
* @type {{ [key: string]: any; }}
|
|
73
73
|
* @memberof UserLegacy
|
|
74
74
|
*/
|
|
75
|
-
entities:
|
|
75
|
+
entities: { [key: string]: any; };
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
@@ -90,13 +90,13 @@ export interface UserLegacy {
|
|
|
90
90
|
* @type {boolean}
|
|
91
91
|
* @memberof UserLegacy
|
|
92
92
|
*/
|
|
93
|
-
followRequestSent
|
|
93
|
+
followRequestSent?: boolean;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
96
|
* @type {boolean}
|
|
97
97
|
* @memberof UserLegacy
|
|
98
98
|
*/
|
|
99
|
-
followedBy
|
|
99
|
+
followedBy?: boolean;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
102
|
* @type {number}
|
|
@@ -108,7 +108,7 @@ export interface UserLegacy {
|
|
|
108
108
|
* @type {boolean}
|
|
109
109
|
* @memberof UserLegacy
|
|
110
110
|
*/
|
|
111
|
-
following
|
|
111
|
+
following?: boolean;
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
* @type {number}
|
|
@@ -168,7 +168,7 @@ export interface UserLegacy {
|
|
|
168
168
|
* @type {boolean}
|
|
169
169
|
* @memberof UserLegacy
|
|
170
170
|
*/
|
|
171
|
-
notifications
|
|
171
|
+
notifications?: boolean;
|
|
172
172
|
/**
|
|
173
173
|
*
|
|
174
174
|
* @type {Array<string>}
|
|
@@ -216,7 +216,7 @@ export interface UserLegacy {
|
|
|
216
216
|
* @type {boolean}
|
|
217
217
|
* @memberof UserLegacy
|
|
218
218
|
*/
|
|
219
|
-
_protected
|
|
219
|
+
_protected?: boolean;
|
|
220
220
|
/**
|
|
221
221
|
*
|
|
222
222
|
* @type {string}
|
|
@@ -271,10 +271,7 @@ export function instanceOfUserLegacy(value: object): boolean {
|
|
|
271
271
|
isInstance = isInstance && "entities" in value;
|
|
272
272
|
isInstance = isInstance && "fastFollowersCount" in value;
|
|
273
273
|
isInstance = isInstance && "favouritesCount" in value;
|
|
274
|
-
isInstance = isInstance && "followRequestSent" in value;
|
|
275
|
-
isInstance = isInstance && "followedBy" in value;
|
|
276
274
|
isInstance = isInstance && "followersCount" in value;
|
|
277
|
-
isInstance = isInstance && "following" in value;
|
|
278
275
|
isInstance = isInstance && "friendsCount" in value;
|
|
279
276
|
isInstance = isInstance && "hasCustomTimelines" in value;
|
|
280
277
|
isInstance = isInstance && "isTranslator" in value;
|
|
@@ -284,12 +281,10 @@ export function instanceOfUserLegacy(value: object): boolean {
|
|
|
284
281
|
isInstance = isInstance && "muting" in value;
|
|
285
282
|
isInstance = isInstance && "name" in value;
|
|
286
283
|
isInstance = isInstance && "normalFollowersCount" in value;
|
|
287
|
-
isInstance = isInstance && "notifications" in value;
|
|
288
284
|
isInstance = isInstance && "pinnedTweetIdsStr" in value;
|
|
289
285
|
isInstance = isInstance && "possiblySensitive" in value;
|
|
290
286
|
isInstance = isInstance && "profileImageUrlHttps" in value;
|
|
291
287
|
isInstance = isInstance && "profileInterstitialType" in value;
|
|
292
|
-
isInstance = isInstance && "_protected" in value;
|
|
293
288
|
isInstance = isInstance && "screenName" in value;
|
|
294
289
|
isInstance = isInstance && "statusesCount" in value;
|
|
295
290
|
isInstance = isInstance && "translatorType" in value;
|
|
@@ -320,10 +315,10 @@ export function UserLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
320
315
|
'entities': json['entities'],
|
|
321
316
|
'fastFollowersCount': json['fast_followers_count'],
|
|
322
317
|
'favouritesCount': json['favourites_count'],
|
|
323
|
-
'followRequestSent': json['follow_request_sent'],
|
|
324
|
-
'followedBy': json['followed_by'],
|
|
318
|
+
'followRequestSent': !exists(json, 'follow_request_sent') ? undefined : json['follow_request_sent'],
|
|
319
|
+
'followedBy': !exists(json, 'followed_by') ? undefined : json['followed_by'],
|
|
325
320
|
'followersCount': json['followers_count'],
|
|
326
|
-
'following': json['following'],
|
|
321
|
+
'following': !exists(json, 'following') ? undefined : json['following'],
|
|
327
322
|
'friendsCount': json['friends_count'],
|
|
328
323
|
'hasCustomTimelines': json['has_custom_timelines'],
|
|
329
324
|
'isTranslator': json['is_translator'],
|
|
@@ -333,7 +328,7 @@ export function UserLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
333
328
|
'muting': json['muting'],
|
|
334
329
|
'name': json['name'],
|
|
335
330
|
'normalFollowersCount': json['normal_followers_count'],
|
|
336
|
-
'notifications': json['notifications'],
|
|
331
|
+
'notifications': !exists(json, 'notifications') ? undefined : json['notifications'],
|
|
337
332
|
'pinnedTweetIdsStr': json['pinned_tweet_ids_str'],
|
|
338
333
|
'possiblySensitive': json['possibly_sensitive'],
|
|
339
334
|
'profileBannerExtensions': !exists(json, 'profile_banner_extensions') ? undefined : json['profile_banner_extensions'],
|
|
@@ -341,7 +336,7 @@ export function UserLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
341
336
|
'profileImageExtensions': !exists(json, 'profile_image_extensions') ? undefined : json['profile_image_extensions'],
|
|
342
337
|
'profileImageUrlHttps': json['profile_image_url_https'],
|
|
343
338
|
'profileInterstitialType': json['profile_interstitial_type'],
|
|
344
|
-
'_protected': json['protected'],
|
|
339
|
+
'_protected': !exists(json, 'protected') ? undefined : json['protected'],
|
|
345
340
|
'screenName': json['screen_name'],
|
|
346
341
|
'statusesCount': json['statuses_count'],
|
|
347
342
|
'translatorType': json['translator_type'],
|