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,100 @@
|
|
|
1
|
+
name: test-python
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types: [labeled]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build_and_preview:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
name: Test
|
|
12
|
+
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
with:
|
|
17
|
+
ref: "${{ github.event.pull_request.merge_commit_sha }}"
|
|
18
|
+
|
|
19
|
+
# Openapi Generator Setup
|
|
20
|
+
- name: Get OpenJDK 11
|
|
21
|
+
uses: actions/setup-java@v2
|
|
22
|
+
with:
|
|
23
|
+
distribution: "temurin"
|
|
24
|
+
java-version: 11
|
|
25
|
+
|
|
26
|
+
- name: Get Java version
|
|
27
|
+
run: java -version
|
|
28
|
+
|
|
29
|
+
- name: Get Openapi Generator cache file
|
|
30
|
+
id: openapi-generator-cache
|
|
31
|
+
run: echo "file=openapi-generator-cli.jar" >> $GITHUB_OUTPUT
|
|
32
|
+
|
|
33
|
+
- name: Openapi Generator cache
|
|
34
|
+
uses: actions/cache@v3
|
|
35
|
+
with:
|
|
36
|
+
path: ${{ steps.openapi-generator-cache.outputs.file }}
|
|
37
|
+
key: ${{ runner.os }}-openapi-generator-${{ hashFiles('openapi-generator-cli.jar') }}
|
|
38
|
+
restore-keys: |
|
|
39
|
+
${{ runner.os }}-openapi-generator-
|
|
40
|
+
|
|
41
|
+
- name: Get Openapi Generator
|
|
42
|
+
run: |
|
|
43
|
+
wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose
|
|
44
|
+
if: steps.openapi-generator-cache.outputs.cache-hit != 'true'
|
|
45
|
+
|
|
46
|
+
# Python Setup
|
|
47
|
+
- name: Set up Python 3.10
|
|
48
|
+
uses: actions/setup-python@v4
|
|
49
|
+
with:
|
|
50
|
+
python-version: "3.10"
|
|
51
|
+
architecture: "x64"
|
|
52
|
+
|
|
53
|
+
- name: Get Python version
|
|
54
|
+
run: python -V
|
|
55
|
+
|
|
56
|
+
- name: Get pip cache dir
|
|
57
|
+
id: pip-cache
|
|
58
|
+
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
|
59
|
+
|
|
60
|
+
- name: pip cache
|
|
61
|
+
uses: actions/cache@v3
|
|
62
|
+
with:
|
|
63
|
+
path: ${{ steps.pip-cache.outputs.dir }}
|
|
64
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
65
|
+
restore-keys: |
|
|
66
|
+
${{ runner.os }}-pip-
|
|
67
|
+
|
|
68
|
+
- name: Install dependencies
|
|
69
|
+
run: |
|
|
70
|
+
python -m pip install --upgrade pip
|
|
71
|
+
pip install -r requirements.txt
|
|
72
|
+
|
|
73
|
+
# generate
|
|
74
|
+
- name: Build twitter-openapi
|
|
75
|
+
run: |
|
|
76
|
+
python tools/build.py
|
|
77
|
+
|
|
78
|
+
# clean up dependencies
|
|
79
|
+
- name: Clean up dependencies
|
|
80
|
+
run: |
|
|
81
|
+
pip uninstall -y -r requirements.txt
|
|
82
|
+
|
|
83
|
+
# generate
|
|
84
|
+
- name: Generate Python client
|
|
85
|
+
run: |
|
|
86
|
+
java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python
|
|
87
|
+
|
|
88
|
+
# test
|
|
89
|
+
- name: Test Python client
|
|
90
|
+
run: |
|
|
91
|
+
pip install ./python_generated
|
|
92
|
+
|
|
93
|
+
- name: Run Python client test
|
|
94
|
+
run: |
|
|
95
|
+
python test/python/test_serialize.py
|
|
96
|
+
env:
|
|
97
|
+
TWITTER_SESSION: ${{ secrets.TWITTER_SESSION }}
|
|
98
|
+
ERROR_UNCATCHED: "False"
|
|
99
|
+
SLEEP_TIME: 2
|
|
100
|
+
CUESOR_TEST_COUNT: 5
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "build",
|
|
6
|
+
"type": "python",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "tools/build.py",
|
|
9
|
+
"console": "integratedTerminal",
|
|
10
|
+
"justMyCode": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "test",
|
|
14
|
+
"type": "python",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"program": "test/python/test_serialize.py",
|
|
17
|
+
"console": "integratedTerminal",
|
|
18
|
+
"justMyCode": false,
|
|
19
|
+
"preLaunchTask": "build-task",
|
|
20
|
+
"env": {
|
|
21
|
+
"ERROR_UNCATCHED": "True"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
"yaml.validate": true,
|
|
5
5
|
"yaml.hover": true,
|
|
6
6
|
"yaml.schemas": {
|
|
7
|
-
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "
|
|
7
|
+
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "src/**/*.yaml"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
"label": "build-task",
|
|
6
|
+
"type": "shell",
|
|
7
|
+
"linux": {
|
|
8
|
+
"command": [
|
|
9
|
+
"python3 tools/build.py;",
|
|
10
|
+
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
11
|
+
"python3 -m pip install ./python_generated;"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"windows": {
|
|
15
|
+
"command": [
|
|
16
|
+
".venv/Scripts/activate;",
|
|
17
|
+
"python tools/build.py;",
|
|
18
|
+
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
19
|
+
"python -m pip install ./python_generated;"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"label": "init-venv",
|
|
25
|
+
"type": "shell",
|
|
26
|
+
"runOptions": {
|
|
27
|
+
"runOn": "folderOpen"
|
|
28
|
+
},
|
|
29
|
+
"linux": {
|
|
30
|
+
"command": [
|
|
31
|
+
"python3 -m venv .venv;",
|
|
32
|
+
".venv/bin/python3 -m pip install -r requirements.txt;",
|
|
33
|
+
"wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar;"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"windows": {
|
|
37
|
+
"command": [
|
|
38
|
+
"python -m venv .venv;",
|
|
39
|
+
".venv/Scripts/python -m pip install -r requirements.txt;",
|
|
40
|
+
"Invoke-WebRequest https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -OutFile openapi-generator-cli.jar;"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CONTRIBUTING
|
|
2
|
+
|
|
3
|
+
- `src` *.yaml files should be written according to the [v3.0/schema.json](https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json)
|
|
4
|
+
- `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
|
|
5
|
+
- `dist` Do not include this in the pull request due to potential conflicts.
|
|
6
|
+
|
|
7
|
+
Users using vscode can build and test with the GUI.
|
|
8
|
+
[.vscode/launch.json](.vscode/launch.json) is a configuration file for vscode.
|
|
9
|
+
|
|
10
|
+
## Good first issues
|
|
11
|
+
|
|
12
|
+
- Add a new endpoint
|
|
13
|
+
- Add type to `type: object # todo`
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Twitter OpenAPI(Swagger) specification
|
|
4
4
|
|
|
5
|
+
- [Python](https://github.com/fa0311/twitter_openapi_python)
|
|
5
6
|
- [Dart](https://github.com/fa0311/twitter_openapi_dart)
|
|
6
7
|
- [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
|
|
7
8
|
- [React Documents](https://github.com/fa0311/twitter-openapi-docs)
|
|
@@ -20,8 +21,7 @@ Note that the license also inherits to the output.
|
|
|
20
21
|
|
|
21
22
|
## Contribute
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
- `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
|
|
24
|
+
[CONTRIBUTING.md](./CONTRIBUTING.md)
|
|
25
25
|
|
|
26
26
|
### build
|
|
27
27
|
|
|
@@ -80,8 +80,12 @@ paths:
|
|
|
80
80
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet
|
|
81
81
|
/graphql/{pathQueryId}/FavoriteTweet:
|
|
82
82
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet
|
|
83
|
+
/graphql/{pathQueryId}/Favoriters:
|
|
84
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Favoriters
|
|
83
85
|
/graphql/{pathQueryId}/Followers:
|
|
84
86
|
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers
|
|
87
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
88
|
+
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1FollowersYouKnow
|
|
85
89
|
/graphql/{pathQueryId}/Following:
|
|
86
90
|
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following
|
|
87
91
|
/graphql/{pathQueryId}/HomeLatestTimeline:
|
|
@@ -94,18 +98,28 @@ paths:
|
|
|
94
98
|
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline
|
|
95
99
|
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
|
96
100
|
$ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery
|
|
101
|
+
/graphql/{pathQueryId}/Retweeters:
|
|
102
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Retweeters
|
|
103
|
+
/graphql/{pathQueryId}/SearchTimeline:
|
|
104
|
+
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
|
|
97
105
|
/graphql/{pathQueryId}/TweetDetail:
|
|
98
106
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
|
99
107
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
|
100
108
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
|
109
|
+
/graphql/{pathQueryId}/UserByRestId:
|
|
110
|
+
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
|
101
111
|
/graphql/{pathQueryId}/UserByScreenName:
|
|
102
112
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
|
113
|
+
/graphql/{pathQueryId}/UserHighlightsTweets:
|
|
114
|
+
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserHighlightsTweets
|
|
103
115
|
/graphql/{pathQueryId}/UserMedia:
|
|
104
116
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
|
|
105
117
|
/graphql/{pathQueryId}/UserTweets:
|
|
106
118
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
|
107
119
|
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
|
108
120
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
|
121
|
+
/graphql/{pathQueryId}/UsersByRestIds:
|
|
122
|
+
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds
|
|
109
123
|
/other:
|
|
110
124
|
$ref: ./paths/other.yaml#/paths/~1other
|
|
111
125
|
security:
|
|
@@ -121,11 +135,13 @@ security:
|
|
|
121
135
|
servers:
|
|
122
136
|
- url: https://twitter.com/i/api
|
|
123
137
|
tags:
|
|
124
|
-
- description:
|
|
138
|
+
- description: Responses containing User objects.
|
|
125
139
|
name: user
|
|
126
|
-
- description:
|
|
140
|
+
- description: Responses containing List[User] objects.
|
|
141
|
+
name: users
|
|
142
|
+
- description: Responses containing instruction objects.
|
|
127
143
|
name: user-list
|
|
128
|
-
- description:
|
|
144
|
+
- description: Responses containing instruction objects.
|
|
129
145
|
name: tweet
|
|
130
146
|
- description: post
|
|
131
147
|
name: post
|
|
@@ -74,7 +74,9 @@ paths:
|
|
|
74
74
|
content:
|
|
75
75
|
application/json:
|
|
76
76
|
schema:
|
|
77
|
-
|
|
77
|
+
oneOf:
|
|
78
|
+
- $ref: '#/components/schemas/BookmarksResponse'
|
|
79
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
78
80
|
description: Successful operation
|
|
79
81
|
headers:
|
|
80
82
|
x-connection-hash:
|
|
@@ -91,7 +91,102 @@ paths:
|
|
|
91
91
|
content:
|
|
92
92
|
application/json:
|
|
93
93
|
schema:
|
|
94
|
-
|
|
94
|
+
oneOf:
|
|
95
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
96
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
97
|
+
description: Successful operation
|
|
98
|
+
headers:
|
|
99
|
+
x-connection-hash:
|
|
100
|
+
schema:
|
|
101
|
+
type: string
|
|
102
|
+
x-rate-limit-limit:
|
|
103
|
+
schema:
|
|
104
|
+
type: integer
|
|
105
|
+
x-rate-limit-remaining:
|
|
106
|
+
schema:
|
|
107
|
+
type: integer
|
|
108
|
+
x-rate-limit-reset:
|
|
109
|
+
schema:
|
|
110
|
+
type: integer
|
|
111
|
+
x-response-time:
|
|
112
|
+
schema:
|
|
113
|
+
type: integer
|
|
114
|
+
x-tfe-preserve-body:
|
|
115
|
+
schema:
|
|
116
|
+
type: boolean
|
|
117
|
+
x-transaction-id:
|
|
118
|
+
schema:
|
|
119
|
+
type: string
|
|
120
|
+
x-twitter-response-tags:
|
|
121
|
+
schema:
|
|
122
|
+
type: string
|
|
123
|
+
tags:
|
|
124
|
+
- user-list
|
|
125
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
126
|
+
get:
|
|
127
|
+
description: get followers you know
|
|
128
|
+
operationId: getFollowersYouKnow
|
|
129
|
+
parameters:
|
|
130
|
+
- in: path
|
|
131
|
+
name: pathQueryId
|
|
132
|
+
required: true
|
|
133
|
+
schema:
|
|
134
|
+
default: W9Iz6TVLymzCWjG2uOFKZg
|
|
135
|
+
example: W9Iz6TVLymzCWjG2uOFKZg
|
|
136
|
+
type: string
|
|
137
|
+
- in: query
|
|
138
|
+
name: variables
|
|
139
|
+
required: true
|
|
140
|
+
schema:
|
|
141
|
+
default: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
|
142
|
+
false}'
|
|
143
|
+
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
|
144
|
+
false}'
|
|
145
|
+
type: string
|
|
146
|
+
- in: query
|
|
147
|
+
name: features
|
|
148
|
+
required: true
|
|
149
|
+
schema:
|
|
150
|
+
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
151
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
152
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
153
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
154
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
155
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
156
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
157
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
158
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
159
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
160
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
161
|
+
false}'
|
|
162
|
+
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
163
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
164
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
165
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
166
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
167
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
168
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
169
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
170
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
171
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
172
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
173
|
+
false}'
|
|
174
|
+
type: string
|
|
175
|
+
- in: query
|
|
176
|
+
name: fieldToggles
|
|
177
|
+
required: true
|
|
178
|
+
schema:
|
|
179
|
+
default: '{"withArticleRichContentState": false}'
|
|
180
|
+
example: '{"withArticleRichContentState": false}'
|
|
181
|
+
type: string
|
|
182
|
+
responses:
|
|
183
|
+
'200':
|
|
184
|
+
content:
|
|
185
|
+
application/json:
|
|
186
|
+
schema:
|
|
187
|
+
oneOf:
|
|
188
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
189
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
95
190
|
description: Successful operation
|
|
96
191
|
headers:
|
|
97
192
|
x-connection-hash:
|
|
@@ -173,7 +268,9 @@ paths:
|
|
|
173
268
|
content:
|
|
174
269
|
application/json:
|
|
175
270
|
schema:
|
|
176
|
-
|
|
271
|
+
oneOf:
|
|
272
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
273
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
177
274
|
description: Successful operation
|
|
178
275
|
headers:
|
|
179
276
|
x-connection-hash:
|
|
@@ -181,7 +181,9 @@ paths:
|
|
|
181
181
|
content:
|
|
182
182
|
application/json:
|
|
183
183
|
schema:
|
|
184
|
-
|
|
184
|
+
oneOf:
|
|
185
|
+
- $ref: '#/components/schemas/CreateRetweetResponse'
|
|
186
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
185
187
|
description: Successful operation
|
|
186
188
|
headers:
|
|
187
189
|
x-connection-hash:
|
|
@@ -375,7 +377,9 @@ paths:
|
|
|
375
377
|
content:
|
|
376
378
|
application/json:
|
|
377
379
|
schema:
|
|
378
|
-
|
|
380
|
+
oneOf:
|
|
381
|
+
- $ref: '#/components/schemas/CreateTweetResponse'
|
|
382
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
379
383
|
description: Successful operation
|
|
380
384
|
headers:
|
|
381
385
|
x-connection-hash:
|
|
@@ -449,7 +453,9 @@ paths:
|
|
|
449
453
|
content:
|
|
450
454
|
application/json:
|
|
451
455
|
schema:
|
|
452
|
-
|
|
456
|
+
oneOf:
|
|
457
|
+
- $ref: '#/components/schemas/DeleteRetweetResponse'
|
|
458
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
453
459
|
description: Successful operation
|
|
454
460
|
headers:
|
|
455
461
|
x-connection-hash:
|
|
@@ -523,7 +529,9 @@ paths:
|
|
|
523
529
|
content:
|
|
524
530
|
application/json:
|
|
525
531
|
schema:
|
|
526
|
-
|
|
532
|
+
oneOf:
|
|
533
|
+
- $ref: '#/components/schemas/DeleteTweetResponse'
|
|
534
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
527
535
|
description: Successful operation
|
|
528
536
|
headers:
|
|
529
537
|
x-connection-hash:
|
|
@@ -597,7 +605,9 @@ paths:
|
|
|
597
605
|
content:
|
|
598
606
|
application/json:
|
|
599
607
|
schema:
|
|
600
|
-
|
|
608
|
+
oneOf:
|
|
609
|
+
- $ref: '#/components/schemas/FavoriteTweetResponseData'
|
|
610
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
601
611
|
description: Successful operation
|
|
602
612
|
headers:
|
|
603
613
|
x-connection-hash:
|
|
@@ -671,7 +681,9 @@ paths:
|
|
|
671
681
|
content:
|
|
672
682
|
application/json:
|
|
673
683
|
schema:
|
|
674
|
-
|
|
684
|
+
oneOf:
|
|
685
|
+
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
|
686
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
675
687
|
description: Successful operation
|
|
676
688
|
headers:
|
|
677
689
|
x-connection-hash:
|
|
@@ -15,7 +15,7 @@ components:
|
|
|
15
15
|
UserResultByScreenName:
|
|
16
16
|
properties:
|
|
17
17
|
id:
|
|
18
|
-
pattern: ^[
|
|
18
|
+
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
|
19
19
|
type: string
|
|
20
20
|
result:
|
|
21
21
|
$ref: '#/components/schemas/UserResultByScreenNameResult'
|
|
@@ -48,6 +48,7 @@ components:
|
|
|
48
48
|
legacy:
|
|
49
49
|
$ref: '#/components/schemas/UserResultByScreenNameLegacy'
|
|
50
50
|
profilemodules:
|
|
51
|
+
additionalProperties: true
|
|
51
52
|
type: object
|
|
52
53
|
rest_id:
|
|
53
54
|
pattern: ^[0-9]+$
|
|
@@ -94,7 +95,9 @@ paths:
|
|
|
94
95
|
content:
|
|
95
96
|
application/json:
|
|
96
97
|
schema:
|
|
97
|
-
|
|
98
|
+
oneOf:
|
|
99
|
+
- $ref: '#/components/schemas/ProfileResponse'
|
|
100
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
98
101
|
description: Successful operation
|
|
99
102
|
headers:
|
|
100
103
|
x-connection-hash:
|
|
@@ -12,6 +12,12 @@ components:
|
|
|
12
12
|
$ref: '#/components/schemas/HomeTimelineHome'
|
|
13
13
|
required:
|
|
14
14
|
- home
|
|
15
|
+
ListLatestTweetsTimelineResponse:
|
|
16
|
+
properties:
|
|
17
|
+
data:
|
|
18
|
+
$ref: '#/components/schemas/ListTweetsTimelineData'
|
|
19
|
+
required:
|
|
20
|
+
- data
|
|
15
21
|
ListTweetsTimeline:
|
|
16
22
|
properties:
|
|
17
23
|
timeline:
|
|
@@ -30,10 +36,28 @@ components:
|
|
|
30
36
|
$ref: '#/components/schemas/ListTweetsTimeline'
|
|
31
37
|
required:
|
|
32
38
|
- tweets_timeline
|
|
33
|
-
|
|
39
|
+
SearchByRawQuery:
|
|
40
|
+
properties:
|
|
41
|
+
search_timeline:
|
|
42
|
+
$ref: '#/components/schemas/SearchTimeline'
|
|
43
|
+
required:
|
|
44
|
+
- search_timeline
|
|
45
|
+
SearchTimeline:
|
|
46
|
+
properties:
|
|
47
|
+
timeline:
|
|
48
|
+
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
|
49
|
+
required:
|
|
50
|
+
- timeline
|
|
51
|
+
SearchTimelineData:
|
|
52
|
+
properties:
|
|
53
|
+
search_by_raw_query:
|
|
54
|
+
$ref: '#/components/schemas/SearchByRawQuery'
|
|
55
|
+
required:
|
|
56
|
+
- search_by_raw_query
|
|
57
|
+
SearchTimelineResponse:
|
|
34
58
|
properties:
|
|
35
59
|
data:
|
|
36
|
-
$ref: '#/components/schemas/
|
|
60
|
+
$ref: '#/components/schemas/SearchTimelineData'
|
|
37
61
|
required:
|
|
38
62
|
- data
|
|
39
63
|
TimelineResponse:
|
|
@@ -100,7 +124,9 @@ paths:
|
|
|
100
124
|
content:
|
|
101
125
|
application/json:
|
|
102
126
|
schema:
|
|
103
|
-
|
|
127
|
+
oneOf:
|
|
128
|
+
- $ref: '#/components/schemas/TimelineResponse'
|
|
129
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
104
130
|
description: Successful operation
|
|
105
131
|
headers:
|
|
106
132
|
x-connection-hash:
|
|
@@ -182,7 +208,9 @@ paths:
|
|
|
182
208
|
content:
|
|
183
209
|
application/json:
|
|
184
210
|
schema:
|
|
185
|
-
|
|
211
|
+
oneOf:
|
|
212
|
+
- $ref: '#/components/schemas/TimelineResponse'
|
|
213
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
186
214
|
description: Successful operation
|
|
187
215
|
headers:
|
|
188
216
|
x-connection-hash:
|
|
@@ -262,7 +290,102 @@ paths:
|
|
|
262
290
|
content:
|
|
263
291
|
application/json:
|
|
264
292
|
schema:
|
|
265
|
-
|
|
293
|
+
oneOf:
|
|
294
|
+
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
|
295
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
296
|
+
description: Successful operation
|
|
297
|
+
headers:
|
|
298
|
+
x-connection-hash:
|
|
299
|
+
schema:
|
|
300
|
+
type: string
|
|
301
|
+
x-rate-limit-limit:
|
|
302
|
+
schema:
|
|
303
|
+
type: integer
|
|
304
|
+
x-rate-limit-remaining:
|
|
305
|
+
schema:
|
|
306
|
+
type: integer
|
|
307
|
+
x-rate-limit-reset:
|
|
308
|
+
schema:
|
|
309
|
+
type: integer
|
|
310
|
+
x-response-time:
|
|
311
|
+
schema:
|
|
312
|
+
type: integer
|
|
313
|
+
x-tfe-preserve-body:
|
|
314
|
+
schema:
|
|
315
|
+
type: boolean
|
|
316
|
+
x-transaction-id:
|
|
317
|
+
schema:
|
|
318
|
+
type: string
|
|
319
|
+
x-twitter-response-tags:
|
|
320
|
+
schema:
|
|
321
|
+
type: string
|
|
322
|
+
tags:
|
|
323
|
+
- tweet
|
|
324
|
+
/graphql/{pathQueryId}/SearchTimeline:
|
|
325
|
+
get:
|
|
326
|
+
description: search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
327
|
+
operationId: getSearchTimeline
|
|
328
|
+
parameters:
|
|
329
|
+
- in: path
|
|
330
|
+
name: pathQueryId
|
|
331
|
+
required: true
|
|
332
|
+
schema:
|
|
333
|
+
default: L1VfBERtzc3VkBBT0YAYHA
|
|
334
|
+
example: L1VfBERtzc3VkBBT0YAYHA
|
|
335
|
+
type: string
|
|
336
|
+
- in: query
|
|
337
|
+
name: variables
|
|
338
|
+
required: true
|
|
339
|
+
schema:
|
|
340
|
+
default: '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query",
|
|
341
|
+
"product": "Top"}'
|
|
342
|
+
example: '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query",
|
|
343
|
+
"product": "Top"}'
|
|
344
|
+
type: string
|
|
345
|
+
- in: query
|
|
346
|
+
name: features
|
|
347
|
+
required: true
|
|
348
|
+
schema:
|
|
349
|
+
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
350
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
351
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
352
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
353
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
354
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
355
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
356
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
357
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
358
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
359
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
360
|
+
false}'
|
|
361
|
+
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
362
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
363
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
364
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
365
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
366
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
367
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
368
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
369
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
370
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
371
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
372
|
+
false}'
|
|
373
|
+
type: string
|
|
374
|
+
- in: query
|
|
375
|
+
name: fieldToggles
|
|
376
|
+
required: true
|
|
377
|
+
schema:
|
|
378
|
+
default: '{"withArticleRichContentState": false}'
|
|
379
|
+
example: '{"withArticleRichContentState": false}'
|
|
380
|
+
type: string
|
|
381
|
+
responses:
|
|
382
|
+
'200':
|
|
383
|
+
content:
|
|
384
|
+
application/json:
|
|
385
|
+
schema:
|
|
386
|
+
oneOf:
|
|
387
|
+
- $ref: '#/components/schemas/SearchTimelineResponse'
|
|
388
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
266
389
|
description: Successful operation
|
|
267
390
|
headers:
|
|
268
391
|
x-connection-hash:
|