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
package/src/apis/UserListApi.ts
CHANGED
|
@@ -15,34 +15,137 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
GetFavoriters200Response,
|
|
19
|
+
GetFollowers200Response,
|
|
20
|
+
GetRetweeters200Response,
|
|
19
21
|
} from '../models';
|
|
20
22
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
GetFavoriters200ResponseFromJSON,
|
|
24
|
+
GetFavoriters200ResponseToJSON,
|
|
25
|
+
GetFollowers200ResponseFromJSON,
|
|
26
|
+
GetFollowers200ResponseToJSON,
|
|
27
|
+
GetRetweeters200ResponseFromJSON,
|
|
28
|
+
GetRetweeters200ResponseToJSON,
|
|
23
29
|
} from '../models';
|
|
24
30
|
|
|
31
|
+
export interface GetFavoritersRequest {
|
|
32
|
+
pathQueryId: string;
|
|
33
|
+
variables: string;
|
|
34
|
+
features: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
export interface GetFollowersRequest {
|
|
26
38
|
pathQueryId: string;
|
|
27
39
|
variables: string;
|
|
28
40
|
features: string;
|
|
29
41
|
}
|
|
30
42
|
|
|
43
|
+
export interface GetFollowersYouKnowRequest {
|
|
44
|
+
pathQueryId: string;
|
|
45
|
+
variables: string;
|
|
46
|
+
features: string;
|
|
47
|
+
fieldToggles: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
31
50
|
export interface GetFollowingRequest {
|
|
32
51
|
pathQueryId: string;
|
|
33
52
|
variables: string;
|
|
34
53
|
features: string;
|
|
35
54
|
}
|
|
36
55
|
|
|
56
|
+
export interface GetRetweetersRequest {
|
|
57
|
+
pathQueryId: string;
|
|
58
|
+
variables: string;
|
|
59
|
+
features: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
37
62
|
/**
|
|
38
63
|
*
|
|
39
64
|
*/
|
|
40
65
|
export class UserListApi extends runtime.BaseAPI {
|
|
41
66
|
|
|
67
|
+
/**
|
|
68
|
+
* get tweet favoriters
|
|
69
|
+
*/
|
|
70
|
+
async getFavoritersRaw(requestParameters: GetFavoritersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFavoriters200Response>> {
|
|
71
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
72
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFavoriters.');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
76
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getFavoriters.');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
80
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFavoriters.');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const queryParameters: any = {};
|
|
84
|
+
|
|
85
|
+
if (requestParameters.variables !== undefined) {
|
|
86
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (requestParameters.features !== undefined) {
|
|
90
|
+
queryParameters['features'] = requestParameters.features;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
94
|
+
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
120
|
+
const token = this.configuration.accessToken;
|
|
121
|
+
const tokenString = await token("BearerAuth", []);
|
|
122
|
+
|
|
123
|
+
if (tokenString) {
|
|
124
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const response = await this.request({
|
|
128
|
+
path: `/graphql/{pathQueryId}/Favoriters`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
129
|
+
method: 'GET',
|
|
130
|
+
headers: headerParameters,
|
|
131
|
+
query: queryParameters,
|
|
132
|
+
}, initOverrides);
|
|
133
|
+
|
|
134
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFavoriters200ResponseFromJSON(jsonValue));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* get tweet favoriters
|
|
139
|
+
*/
|
|
140
|
+
async getFavoriters(requestParameters: GetFavoritersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFavoriters200Response> {
|
|
141
|
+
const response = await this.getFavoritersRaw(requestParameters, initOverrides);
|
|
142
|
+
return await response.value();
|
|
143
|
+
}
|
|
144
|
+
|
|
42
145
|
/**
|
|
43
146
|
* get user list of followers
|
|
44
147
|
*/
|
|
45
|
-
async getFollowersRaw(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
148
|
+
async getFollowersRaw(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFollowers200Response>> {
|
|
46
149
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
47
150
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowers.');
|
|
48
151
|
}
|
|
@@ -106,21 +209,107 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
106
209
|
query: queryParameters,
|
|
107
210
|
}, initOverrides);
|
|
108
211
|
|
|
109
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFollowers200ResponseFromJSON(jsonValue));
|
|
110
213
|
}
|
|
111
214
|
|
|
112
215
|
/**
|
|
113
216
|
* get user list of followers
|
|
114
217
|
*/
|
|
115
|
-
async getFollowers(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
218
|
+
async getFollowers(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFollowers200Response> {
|
|
116
219
|
const response = await this.getFollowersRaw(requestParameters, initOverrides);
|
|
117
220
|
return await response.value();
|
|
118
221
|
}
|
|
119
222
|
|
|
223
|
+
/**
|
|
224
|
+
* get followers you know
|
|
225
|
+
*/
|
|
226
|
+
async getFollowersYouKnowRaw(requestParameters: GetFollowersYouKnowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFollowers200Response>> {
|
|
227
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
228
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowersYouKnow.');
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
232
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getFollowersYouKnow.');
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
236
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFollowersYouKnow.');
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
240
|
+
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getFollowersYouKnow.');
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
const queryParameters: any = {};
|
|
244
|
+
|
|
245
|
+
if (requestParameters.variables !== undefined) {
|
|
246
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (requestParameters.features !== undefined) {
|
|
250
|
+
queryParameters['features'] = requestParameters.features;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (requestParameters.fieldToggles !== undefined) {
|
|
254
|
+
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
258
|
+
|
|
259
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
260
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
264
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
268
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
272
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
276
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
280
|
+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
284
|
+
const token = this.configuration.accessToken;
|
|
285
|
+
const tokenString = await token("BearerAuth", []);
|
|
286
|
+
|
|
287
|
+
if (tokenString) {
|
|
288
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
const response = await this.request({
|
|
292
|
+
path: `/graphql/{pathQueryId}/FollowersYouKnow`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
293
|
+
method: 'GET',
|
|
294
|
+
headers: headerParameters,
|
|
295
|
+
query: queryParameters,
|
|
296
|
+
}, initOverrides);
|
|
297
|
+
|
|
298
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFollowers200ResponseFromJSON(jsonValue));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* get followers you know
|
|
303
|
+
*/
|
|
304
|
+
async getFollowersYouKnow(requestParameters: GetFollowersYouKnowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFollowers200Response> {
|
|
305
|
+
const response = await this.getFollowersYouKnowRaw(requestParameters, initOverrides);
|
|
306
|
+
return await response.value();
|
|
307
|
+
}
|
|
308
|
+
|
|
120
309
|
/**
|
|
121
310
|
* get user list of following
|
|
122
311
|
*/
|
|
123
|
-
async getFollowingRaw(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
312
|
+
async getFollowingRaw(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFollowers200Response>> {
|
|
124
313
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
125
314
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowing.');
|
|
126
315
|
}
|
|
@@ -184,15 +373,93 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
184
373
|
query: queryParameters,
|
|
185
374
|
}, initOverrides);
|
|
186
375
|
|
|
187
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFollowers200ResponseFromJSON(jsonValue));
|
|
188
377
|
}
|
|
189
378
|
|
|
190
379
|
/**
|
|
191
380
|
* get user list of following
|
|
192
381
|
*/
|
|
193
|
-
async getFollowing(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
382
|
+
async getFollowing(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFollowers200Response> {
|
|
194
383
|
const response = await this.getFollowingRaw(requestParameters, initOverrides);
|
|
195
384
|
return await response.value();
|
|
196
385
|
}
|
|
197
386
|
|
|
387
|
+
/**
|
|
388
|
+
* get tweet retweeters
|
|
389
|
+
*/
|
|
390
|
+
async getRetweetersRaw(requestParameters: GetRetweetersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRetweeters200Response>> {
|
|
391
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
392
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getRetweeters.');
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
396
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getRetweeters.');
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
400
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getRetweeters.');
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
const queryParameters: any = {};
|
|
404
|
+
|
|
405
|
+
if (requestParameters.variables !== undefined) {
|
|
406
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (requestParameters.features !== undefined) {
|
|
410
|
+
queryParameters['features'] = requestParameters.features;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
414
|
+
|
|
415
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
416
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
420
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
424
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
428
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
432
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
436
|
+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
440
|
+
const token = this.configuration.accessToken;
|
|
441
|
+
const tokenString = await token("BearerAuth", []);
|
|
442
|
+
|
|
443
|
+
if (tokenString) {
|
|
444
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
const response = await this.request({
|
|
448
|
+
path: `/graphql/{pathQueryId}/Retweeters`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
449
|
+
method: 'GET',
|
|
450
|
+
headers: headerParameters,
|
|
451
|
+
query: queryParameters,
|
|
452
|
+
}, initOverrides);
|
|
453
|
+
|
|
454
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetRetweeters200ResponseFromJSON(jsonValue));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* get tweet retweeters
|
|
459
|
+
*/
|
|
460
|
+
async getRetweeters(requestParameters: GetRetweetersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRetweeters200Response> {
|
|
461
|
+
const response = await this.getRetweetersRaw(requestParameters, initOverrides);
|
|
462
|
+
return await response.value();
|
|
463
|
+
}
|
|
464
|
+
|
|
198
465
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GetUsersByRestIds200Response,
|
|
19
|
+
} from '../models';
|
|
20
|
+
import {
|
|
21
|
+
GetUsersByRestIds200ResponseFromJSON,
|
|
22
|
+
GetUsersByRestIds200ResponseToJSON,
|
|
23
|
+
} from '../models';
|
|
24
|
+
|
|
25
|
+
export interface GetUsersByRestIdsRequest {
|
|
26
|
+
pathQueryId: string;
|
|
27
|
+
variables: string;
|
|
28
|
+
features: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class UsersApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* get users by rest ids
|
|
38
|
+
*/
|
|
39
|
+
async getUsersByRestIdsRaw(requestParameters: GetUsersByRestIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsersByRestIds200Response>> {
|
|
40
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
41
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUsersByRestIds.');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
45
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUsersByRestIds.');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
49
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getUsersByRestIds.');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const queryParameters: any = {};
|
|
53
|
+
|
|
54
|
+
if (requestParameters.variables !== undefined) {
|
|
55
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (requestParameters.features !== undefined) {
|
|
59
|
+
queryParameters['features'] = requestParameters.features;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
63
|
+
|
|
64
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
77
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
81
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = await token("BearerAuth", []);
|
|
91
|
+
|
|
92
|
+
if (tokenString) {
|
|
93
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const response = await this.request({
|
|
97
|
+
path: `/graphql/{pathQueryId}/UsersByRestIds`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
98
|
+
method: 'GET',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
|
|
103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetUsersByRestIds200ResponseFromJSON(jsonValue));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* get users by rest ids
|
|
108
|
+
*/
|
|
109
|
+
async getUsersByRestIds(requestParameters: GetUsersByRestIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsersByRestIds200Response> {
|
|
110
|
+
const response = await this.getUsersByRestIdsRaw(requestParameters, initOverrides);
|
|
111
|
+
return await response.value();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
export const ContentItemType = {
|
|
21
21
|
TimelineTweet: 'TimelineTweet',
|
|
22
22
|
TimelineTimelineCursor: 'TimelineTimelineCursor',
|
|
23
|
-
TimelineUser: 'TimelineUser'
|
|
23
|
+
TimelineUser: 'TimelineUser',
|
|
24
|
+
TimelinePrompt: 'TimelinePrompt',
|
|
25
|
+
TimelineMessagePrompt: 'TimelineMessagePrompt'
|
|
24
26
|
} as const;
|
|
25
27
|
export type ContentItemType = typeof ContentItemType[keyof typeof ContentItemType];
|
|
26
28
|
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CursorType = {
|
|
21
|
+
Top: 'Top',
|
|
22
|
+
Bottom: 'Bottom',
|
|
23
|
+
ShowMore: 'ShowMore',
|
|
24
|
+
ShowMoreThreads: 'ShowMoreThreads',
|
|
25
|
+
Gap: 'Gap'
|
|
26
|
+
} as const;
|
|
27
|
+
export type CursorType = typeof CursorType[keyof typeof CursorType];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function CursorTypeFromJSON(json: any): CursorType {
|
|
31
|
+
return CursorTypeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CursorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorType {
|
|
35
|
+
return json as CursorType;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CursorTypeToJSON(value?: CursorType | null): any {
|
|
39
|
+
return value as any;
|
|
40
|
+
}
|
|
41
|
+
|
package/src/models/Entities.ts
CHANGED
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
export interface Entities {
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {Array<
|
|
37
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
38
38
|
* @memberof Entities
|
|
39
39
|
*/
|
|
40
|
-
hashtags: Array<
|
|
40
|
+
hashtags: Array<{ [key: string]: any; }>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {Array<Media>}
|
|
@@ -46,10 +46,10 @@ export interface Entities {
|
|
|
46
46
|
media?: Array<Media>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {Array<
|
|
49
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
50
50
|
* @memberof Entities
|
|
51
51
|
*/
|
|
52
|
-
symbols: Array<
|
|
52
|
+
symbols: Array<{ [key: string]: any; }>;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {Array<Url>}
|
|
@@ -58,10 +58,10 @@ export interface Entities {
|
|
|
58
58
|
urls: Array<Url>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
|
-
* @type {Array<
|
|
61
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
62
62
|
* @memberof Entities
|
|
63
63
|
*/
|
|
64
|
-
userMentions: Array<
|
|
64
|
+
userMentions: Array<{ [key: string]: any; }>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { Tracing } from './Tracing';
|
|
17
|
+
import {
|
|
18
|
+
TracingFromJSON,
|
|
19
|
+
TracingFromJSONTyped,
|
|
20
|
+
TracingToJSON,
|
|
21
|
+
} from './Tracing';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ErrorExtensions
|
|
27
|
+
*/
|
|
28
|
+
export interface ErrorExtensions {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ErrorExtensions
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ErrorExtensions
|
|
39
|
+
*/
|
|
40
|
+
kind: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ErrorExtensions
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ErrorExtensions
|
|
51
|
+
*/
|
|
52
|
+
retryAfter: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ErrorExtensions
|
|
57
|
+
*/
|
|
58
|
+
source: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Tracing}
|
|
62
|
+
* @memberof ErrorExtensions
|
|
63
|
+
*/
|
|
64
|
+
tracing: Tracing;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ErrorExtensions interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfErrorExtensions(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
72
|
+
isInstance = isInstance && "code" in value;
|
|
73
|
+
isInstance = isInstance && "kind" in value;
|
|
74
|
+
isInstance = isInstance && "name" in value;
|
|
75
|
+
isInstance = isInstance && "retryAfter" in value;
|
|
76
|
+
isInstance = isInstance && "source" in value;
|
|
77
|
+
isInstance = isInstance && "tracing" in value;
|
|
78
|
+
|
|
79
|
+
return isInstance;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ErrorExtensionsFromJSON(json: any): ErrorExtensions {
|
|
83
|
+
return ErrorExtensionsFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ErrorExtensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorExtensions {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'code': json['code'],
|
|
93
|
+
'kind': json['kind'],
|
|
94
|
+
'name': json['name'],
|
|
95
|
+
'retryAfter': json['retry_after'],
|
|
96
|
+
'source': json['source'],
|
|
97
|
+
'tracing': TracingFromJSON(json['tracing']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ErrorExtensionsToJSON(value?: ErrorExtensions | null): any {
|
|
102
|
+
if (value === undefined) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
if (value === null) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'code': value.code,
|
|
111
|
+
'kind': value.kind,
|
|
112
|
+
'name': value.name,
|
|
113
|
+
'retry_after': value.retryAfter,
|
|
114
|
+
'source': value.source,
|
|
115
|
+
'tracing': TracingToJSON(value.tracing),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|