twitter-openapi-typescript-generated 0.0.26 → 0.0.28
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/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +5 -5
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +174 -158
- 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 +87 -79
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +17 -17
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +696 -632
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +23 -23
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +957 -869
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +5 -5
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +174 -158
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +11 -11
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +435 -395
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +3 -3
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +87 -79
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +172 -156
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +170 -154
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +86 -78
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/AuthorCommunityRelationship.d.ts +1 -0
- package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -1
- package/dist/models/AuthorCommunityRelationship.js +2 -1
- package/dist/models/AuthorCommunityRelationship.js.map +1 -1
- package/dist/models/BookmarksResponse.d.ts +7 -1
- package/dist/models/BookmarksResponse.d.ts.map +1 -1
- package/dist/models/BookmarksResponse.js +3 -3
- package/dist/models/BookmarksResponse.js.map +1 -1
- package/dist/models/BookmarksResponseData.d.ts +1 -1
- package/dist/models/BookmarksResponseData.d.ts.map +1 -1
- package/dist/models/BookmarksResponseData.js +1 -3
- package/dist/models/BookmarksResponseData.js.map +1 -1
- package/dist/models/CommunityActions.d.ts +11 -4
- package/dist/models/CommunityActions.d.ts.map +1 -1
- package/dist/models/CommunityActions.js +7 -12
- package/dist/models/CommunityActions.js.map +1 -1
- package/dist/models/CommunityData.d.ts +1 -1
- package/dist/models/CommunityData.d.ts.map +1 -1
- package/dist/models/CommunityData.js +1 -3
- package/dist/models/CommunityData.js.map +1 -1
- package/dist/models/CommunityRelationship.d.ts +53 -0
- package/dist/models/CommunityRelationship.d.ts.map +1 -0
- package/dist/models/CommunityRelationship.js +61 -0
- package/dist/models/CommunityRelationship.js.map +1 -0
- package/dist/models/CommunityUnpinActionResult.d.ts +33 -0
- package/dist/models/CommunityUnpinActionResult.d.ts.map +1 -0
- package/dist/models/CommunityUnpinActionResult.js +49 -0
- package/dist/models/CommunityUnpinActionResult.js.map +1 -0
- package/dist/models/CreateBookmarkResponse.d.ts +6 -0
- package/dist/models/CreateBookmarkResponse.d.ts.map +1 -1
- package/dist/models/CreateBookmarkResponse.js +2 -0
- package/dist/models/CreateBookmarkResponse.js.map +1 -1
- package/dist/models/CreateBookmarkResponseData.d.ts +1 -1
- package/dist/models/CreateBookmarkResponseData.d.ts.map +1 -1
- package/dist/models/CreateBookmarkResponseData.js +1 -3
- package/dist/models/CreateBookmarkResponseData.js.map +1 -1
- package/dist/models/CreateRetweetResponse.d.ts +6 -0
- package/dist/models/CreateRetweetResponse.d.ts.map +1 -1
- package/dist/models/CreateRetweetResponse.js +2 -0
- package/dist/models/CreateRetweetResponse.js.map +1 -1
- package/dist/models/CreateRetweetResponseData.d.ts +1 -1
- package/dist/models/CreateRetweetResponseData.d.ts.map +1 -1
- package/dist/models/CreateRetweetResponseData.js +1 -3
- package/dist/models/CreateRetweetResponseData.js.map +1 -1
- package/dist/models/CreateTweetResponse.d.ts +6 -0
- package/dist/models/CreateTweetResponse.d.ts.map +1 -1
- package/dist/models/CreateTweetResponse.js +2 -0
- package/dist/models/CreateTweetResponse.js.map +1 -1
- package/dist/models/CreateTweetResponseData.d.ts +1 -1
- package/dist/models/CreateTweetResponseData.d.ts.map +1 -1
- package/dist/models/CreateTweetResponseData.js +1 -3
- package/dist/models/CreateTweetResponseData.js.map +1 -1
- package/dist/models/CursorType.d.ts +1 -0
- package/dist/models/CursorType.d.ts.map +1 -1
- package/dist/models/CursorType.js +2 -1
- package/dist/models/CursorType.js.map +1 -1
- package/dist/models/DeleteBookmarkResponse.d.ts +6 -0
- package/dist/models/DeleteBookmarkResponse.d.ts.map +1 -1
- package/dist/models/DeleteBookmarkResponse.js +2 -0
- package/dist/models/DeleteBookmarkResponse.js.map +1 -1
- package/dist/models/DeleteBookmarkResponseData.d.ts +1 -1
- package/dist/models/DeleteBookmarkResponseData.d.ts.map +1 -1
- package/dist/models/DeleteBookmarkResponseData.js +1 -3
- package/dist/models/DeleteBookmarkResponseData.js.map +1 -1
- package/dist/models/DeleteRetweetResponse.d.ts +6 -0
- package/dist/models/DeleteRetweetResponse.d.ts.map +1 -1
- package/dist/models/DeleteRetweetResponse.js +2 -0
- package/dist/models/DeleteRetweetResponse.js.map +1 -1
- package/dist/models/DeleteRetweetResponseData.d.ts +3 -3
- package/dist/models/DeleteRetweetResponseData.js +3 -3
- package/dist/models/DeleteTweetResponse.d.ts +6 -0
- package/dist/models/DeleteTweetResponse.d.ts.map +1 -1
- package/dist/models/DeleteTweetResponse.js +2 -0
- package/dist/models/DeleteTweetResponse.js.map +1 -1
- package/dist/models/DisplayTreatment.d.ts +6 -0
- package/dist/models/DisplayTreatment.d.ts.map +1 -1
- package/dist/models/DisplayTreatment.js +2 -0
- package/dist/models/DisplayTreatment.js.map +1 -1
- package/dist/models/FavoriteTweet.d.ts +1 -1
- package/dist/models/FavoriteTweet.d.ts.map +1 -1
- package/dist/models/FavoriteTweet.js +1 -3
- package/dist/models/FavoriteTweet.js.map +1 -1
- package/dist/models/FavoriteTweetResponse.d.ts +39 -0
- package/dist/models/FavoriteTweetResponse.d.ts.map +1 -0
- package/dist/models/FavoriteTweetResponse.js +51 -0
- package/dist/models/FavoriteTweetResponse.js.map +1 -0
- package/dist/models/FollowResponse.d.ts +6 -0
- package/dist/models/FollowResponse.d.ts.map +1 -1
- package/dist/models/FollowResponse.js +2 -0
- package/dist/models/FollowResponse.js.map +1 -1
- package/dist/models/FollowResponseData.d.ts +1 -1
- package/dist/models/FollowResponseData.d.ts.map +1 -1
- package/dist/models/FollowResponseData.js +1 -3
- package/dist/models/FollowResponseData.js.map +1 -1
- package/dist/models/HomeTimelineResponseData.d.ts +1 -1
- package/dist/models/HomeTimelineResponseData.d.ts.map +1 -1
- package/dist/models/HomeTimelineResponseData.js +1 -3
- package/dist/models/HomeTimelineResponseData.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +6 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.js +2 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
- package/dist/models/ListTweetsTimelineData.d.ts +1 -1
- package/dist/models/ListTweetsTimelineData.d.ts.map +1 -1
- package/dist/models/ListTweetsTimelineData.js +1 -3
- package/dist/models/ListTweetsTimelineData.js.map +1 -1
- package/dist/models/OtherObjectAll.d.ts +33 -0
- package/dist/models/OtherObjectAll.d.ts.map +1 -0
- package/dist/models/{OtherResponse.js → OtherObjectAll.js} +12 -12
- package/dist/models/OtherObjectAll.js.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +2 -4
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/ProfileResponse.d.ts +6 -0
- package/dist/models/ProfileResponse.d.ts.map +1 -1
- package/dist/models/ProfileResponse.js +2 -0
- package/dist/models/ProfileResponse.js.map +1 -1
- package/dist/models/ProfileResponseData.d.ts +1 -1
- package/dist/models/ProfileResponseData.d.ts.map +1 -1
- package/dist/models/ProfileResponseData.js +1 -3
- package/dist/models/ProfileResponseData.js.map +1 -1
- package/dist/models/SearchTimelineData.d.ts +1 -1
- package/dist/models/SearchTimelineData.d.ts.map +1 -1
- package/dist/models/SearchTimelineData.js +1 -3
- package/dist/models/SearchTimelineData.js.map +1 -1
- package/dist/models/SearchTimelineResponse.d.ts +6 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -1
- package/dist/models/SearchTimelineResponse.js +2 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -1
- package/dist/models/SensitiveMediaWarning.d.ts +3 -3
- package/dist/models/SensitiveMediaWarning.d.ts.map +1 -1
- package/dist/models/SensitiveMediaWarning.js +3 -9
- package/dist/models/SensitiveMediaWarning.js.map +1 -1
- package/dist/models/TimelineResponse.d.ts +6 -0
- package/dist/models/TimelineResponse.d.ts.map +1 -1
- package/dist/models/TimelineResponse.js +2 -0
- package/dist/models/TimelineResponse.js.map +1 -1
- package/dist/models/Tweet.d.ts +7 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +3 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetDetailResponse.d.ts +6 -0
- package/dist/models/TweetDetailResponse.d.ts.map +1 -1
- package/dist/models/TweetDetailResponse.js +2 -0
- package/dist/models/TweetDetailResponse.js.map +1 -1
- package/dist/models/TweetDetailResponseData.d.ts +1 -1
- package/dist/models/TweetDetailResponseData.d.ts.map +1 -1
- package/dist/models/TweetDetailResponseData.js +1 -3
- package/dist/models/TweetDetailResponseData.js.map +1 -1
- package/dist/models/TweetFavoritersResponse.d.ts +6 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -1
- package/dist/models/TweetFavoritersResponse.js +2 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -1
- package/dist/models/TweetFavoritersResponseData.d.ts +1 -1
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -1
- package/dist/models/TweetFavoritersResponseData.js +1 -3
- package/dist/models/TweetFavoritersResponseData.js.map +1 -1
- package/dist/models/TweetResultByRestIdData.d.ts +1 -1
- package/dist/models/TweetResultByRestIdData.d.ts.map +1 -1
- package/dist/models/TweetResultByRestIdData.js +1 -3
- package/dist/models/TweetResultByRestIdData.js.map +1 -1
- package/dist/models/TweetResultByRestIdResponse.d.ts +6 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -1
- package/dist/models/TweetResultByRestIdResponse.js +2 -0
- package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
- package/dist/models/TweetRetweetersResponse.d.ts +6 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -1
- package/dist/models/TweetRetweetersResponse.js +2 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -1
- package/dist/models/TweetRetweetersResponseData.d.ts +1 -1
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -1
- package/dist/models/TweetRetweetersResponseData.js +1 -3
- package/dist/models/TweetRetweetersResponseData.js.map +1 -1
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UnfavoriteTweet.d.ts +1 -1
- package/dist/models/UnfavoriteTweet.d.ts.map +1 -1
- package/dist/models/UnfavoriteTweet.js +1 -3
- package/dist/models/UnfavoriteTweet.js.map +1 -1
- package/dist/models/UnfavoriteTweetResponse.d.ts +39 -0
- package/dist/models/UnfavoriteTweetResponse.d.ts.map +1 -0
- package/dist/models/UnfavoriteTweetResponse.js +51 -0
- package/dist/models/UnfavoriteTweetResponse.js.map +1 -0
- package/dist/models/UserHighlightsTweetsData.d.ts +1 -1
- package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -1
- package/dist/models/UserHighlightsTweetsData.js +1 -3
- package/dist/models/UserHighlightsTweetsData.js.map +1 -1
- package/dist/models/UserHighlightsTweetsResponse.d.ts +6 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -1
- package/dist/models/UserHighlightsTweetsResponse.js +2 -0
- package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
- package/dist/models/UserResponse.d.ts +6 -0
- package/dist/models/UserResponse.d.ts.map +1 -1
- package/dist/models/UserResponse.js +2 -0
- package/dist/models/UserResponse.js.map +1 -1
- package/dist/models/UserTweetsData.d.ts +1 -1
- package/dist/models/UserTweetsData.d.ts.map +1 -1
- package/dist/models/UserTweetsData.js +1 -3
- package/dist/models/UserTweetsData.js.map +1 -1
- package/dist/models/UserTweetsResponse.d.ts +6 -0
- package/dist/models/UserTweetsResponse.d.ts.map +1 -1
- package/dist/models/UserTweetsResponse.js +2 -0
- package/dist/models/UserTweetsResponse.js.map +1 -1
- package/dist/models/UsersResponse.d.ts +6 -0
- package/dist/models/UsersResponse.d.ts.map +1 -1
- package/dist/models/UsersResponse.js +2 -0
- package/dist/models/UsersResponse.js.map +1 -1
- package/dist/models/UsersResponseData.d.ts +1 -1
- package/dist/models/UsersResponseData.d.ts.map +1 -1
- package/dist/models/UsersResponseData.js +2 -4
- package/dist/models/UsersResponseData.js.map +1 -1
- package/dist/models/index.d.ts +5 -27
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +5 -27
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/Errors.d.ts +0 -39
- package/dist/models/Errors.d.ts.map +0 -1
- package/dist/models/Errors.js +0 -51
- package/dist/models/Errors.js.map +0 -1
- package/dist/models/ErrorsData.d.ts +0 -32
- package/dist/models/ErrorsData.d.ts.map +0 -1
- package/dist/models/ErrorsData.js +0 -46
- package/dist/models/ErrorsData.js.map +0 -1
- package/dist/models/FavoriteTweetResponseData.d.ts +0 -33
- package/dist/models/FavoriteTweetResponseData.d.ts.map +0 -1
- package/dist/models/FavoriteTweetResponseData.js +0 -49
- package/dist/models/FavoriteTweetResponseData.js.map +0 -1
- package/dist/models/GetBookmarks200Response.d.ts +0 -23
- package/dist/models/GetBookmarks200Response.d.ts.map +0 -1
- package/dist/models/GetBookmarks200Response.js +0 -49
- package/dist/models/GetBookmarks200Response.js.map +0 -1
- package/dist/models/GetFavoriters200Response.d.ts +0 -23
- package/dist/models/GetFavoriters200Response.d.ts.map +0 -1
- package/dist/models/GetFavoriters200Response.js +0 -49
- package/dist/models/GetFavoriters200Response.js.map +0 -1
- package/dist/models/GetFollowers200Response.d.ts +0 -23
- package/dist/models/GetFollowers200Response.d.ts.map +0 -1
- package/dist/models/GetFollowers200Response.js +0 -49
- package/dist/models/GetFollowers200Response.js.map +0 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +0 -23
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +0 -1
- package/dist/models/GetHomeLatestTimeline200Response.js +0 -49
- package/dist/models/GetHomeLatestTimeline200Response.js.map +0 -1
- package/dist/models/GetLikes200Response.d.ts +0 -23
- package/dist/models/GetLikes200Response.d.ts.map +0 -1
- package/dist/models/GetLikes200Response.js +0 -49
- package/dist/models/GetLikes200Response.js.map +0 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +0 -23
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +0 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.js +0 -49
- package/dist/models/GetListLatestTweetsTimeline200Response.js.map +0 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +0 -23
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +0 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.js +0 -49
- package/dist/models/GetProfileSpotlightsQuery200Response.js.map +0 -1
- package/dist/models/GetRetweeters200Response.d.ts +0 -23
- package/dist/models/GetRetweeters200Response.d.ts.map +0 -1
- package/dist/models/GetRetweeters200Response.js +0 -49
- package/dist/models/GetRetweeters200Response.js.map +0 -1
- package/dist/models/GetSearchTimeline200Response.d.ts +0 -23
- package/dist/models/GetSearchTimeline200Response.d.ts.map +0 -1
- package/dist/models/GetSearchTimeline200Response.js +0 -49
- package/dist/models/GetSearchTimeline200Response.js.map +0 -1
- package/dist/models/GetTweetDetail200Response.d.ts +0 -23
- package/dist/models/GetTweetDetail200Response.d.ts.map +0 -1
- package/dist/models/GetTweetDetail200Response.js +0 -49
- package/dist/models/GetTweetDetail200Response.js.map +0 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +0 -23
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +0 -1
- package/dist/models/GetTweetResultByRestId200Response.js +0 -49
- package/dist/models/GetTweetResultByRestId200Response.js.map +0 -1
- package/dist/models/GetUserByRestId200Response.d.ts +0 -23
- package/dist/models/GetUserByRestId200Response.d.ts.map +0 -1
- package/dist/models/GetUserByRestId200Response.js +0 -49
- package/dist/models/GetUserByRestId200Response.js.map +0 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +0 -23
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +0 -1
- package/dist/models/GetUserHighlightsTweets200Response.js +0 -49
- package/dist/models/GetUserHighlightsTweets200Response.js.map +0 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts +0 -23
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +0 -1
- package/dist/models/GetUsersByRestIds200Response.js +0 -49
- package/dist/models/GetUsersByRestIds200Response.js.map +0 -1
- package/dist/models/OtherResponse.d.ts +0 -33
- package/dist/models/OtherResponse.d.ts.map +0 -1
- package/dist/models/OtherResponse.js.map +0 -1
- package/dist/models/PostCreateBookmark200Response.d.ts +0 -23
- package/dist/models/PostCreateBookmark200Response.d.ts.map +0 -1
- package/dist/models/PostCreateBookmark200Response.js +0 -49
- package/dist/models/PostCreateBookmark200Response.js.map +0 -1
- package/dist/models/PostCreateRetweet200Response.d.ts +0 -23
- package/dist/models/PostCreateRetweet200Response.d.ts.map +0 -1
- package/dist/models/PostCreateRetweet200Response.js +0 -49
- package/dist/models/PostCreateRetweet200Response.js.map +0 -1
- package/dist/models/PostCreateTweet200Response.d.ts +0 -23
- package/dist/models/PostCreateTweet200Response.d.ts.map +0 -1
- package/dist/models/PostCreateTweet200Response.js +0 -49
- package/dist/models/PostCreateTweet200Response.js.map +0 -1
- package/dist/models/PostDeleteBookmark200Response.d.ts +0 -23
- package/dist/models/PostDeleteBookmark200Response.d.ts.map +0 -1
- package/dist/models/PostDeleteBookmark200Response.js +0 -49
- package/dist/models/PostDeleteBookmark200Response.js.map +0 -1
- package/dist/models/PostDeleteRetweet200Response.d.ts +0 -23
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +0 -1
- package/dist/models/PostDeleteRetweet200Response.js +0 -49
- package/dist/models/PostDeleteRetweet200Response.js.map +0 -1
- package/dist/models/PostDeleteTweet200Response.d.ts +0 -23
- package/dist/models/PostDeleteTweet200Response.d.ts.map +0 -1
- package/dist/models/PostDeleteTweet200Response.js +0 -49
- package/dist/models/PostDeleteTweet200Response.js.map +0 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts +0 -23
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +0 -1
- package/dist/models/PostFavoriteTweet200Response.js +0 -49
- package/dist/models/PostFavoriteTweet200Response.js.map +0 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +0 -23
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +0 -1
- package/dist/models/PostUnfavoriteTweet200Response.js +0 -49
- package/dist/models/PostUnfavoriteTweet200Response.js.map +0 -1
- package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -33
- package/dist/models/UnfavoriteTweetResponseData.d.ts.map +0 -1
- package/dist/models/UnfavoriteTweetResponseData.js +0 -49
- package/dist/models/UnfavoriteTweetResponseData.js.map +0 -1
package/dist/apis/UserListApi.js
CHANGED
|
@@ -80,9 +80,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
80
80
|
*/
|
|
81
81
|
UserListApi.prototype.getFavoritersRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
84
|
-
return __generator(this, function (
|
|
85
|
-
switch (
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
|
|
84
|
+
return __generator(this, function (_12) {
|
|
85
|
+
switch (_12.label) {
|
|
86
86
|
case 0:
|
|
87
87
|
if (requestParameters['pathQueryId'] == null) {
|
|
88
88
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFavoriters().');
|
|
@@ -103,158 +103,166 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
103
103
|
headerParameters = {};
|
|
104
104
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
105
105
|
_a = headerParameters;
|
|
106
|
-
_b = "
|
|
107
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
106
|
+
_b = "Accept";
|
|
107
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
108
108
|
case 1:
|
|
109
|
-
_a[_b] =
|
|
110
|
-
|
|
109
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
110
|
+
_12.label = 2;
|
|
111
111
|
case 2:
|
|
112
112
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
113
113
|
_c = headerParameters;
|
|
114
|
-
_d = "
|
|
115
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
114
|
+
_d = "x-twitter-client-language";
|
|
115
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
116
116
|
case 3:
|
|
117
|
-
_c[_d] =
|
|
118
|
-
|
|
117
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
118
|
+
_12.label = 4;
|
|
119
119
|
case 4:
|
|
120
120
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
121
121
|
_e = headerParameters;
|
|
122
|
-
_f = "
|
|
123
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
122
|
+
_f = "Referer";
|
|
123
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
124
124
|
case 5:
|
|
125
|
-
_e[_f] =
|
|
126
|
-
|
|
125
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
126
|
+
_12.label = 6;
|
|
127
127
|
case 6:
|
|
128
128
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
129
129
|
_g = headerParameters;
|
|
130
130
|
_h = "Sec-Fetch-Dest";
|
|
131
131
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
132
132
|
case 7:
|
|
133
|
-
_g[_h] =
|
|
134
|
-
|
|
133
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
134
|
+
_12.label = 8;
|
|
135
135
|
case 8:
|
|
136
136
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
137
137
|
_j = headerParameters;
|
|
138
|
-
_k = "
|
|
139
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
138
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
139
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
140
140
|
case 9:
|
|
141
|
-
_j[_k] =
|
|
142
|
-
|
|
141
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
142
|
+
_12.label = 10;
|
|
143
143
|
case 10:
|
|
144
144
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
145
145
|
_l = headerParameters;
|
|
146
|
-
_m = "Sec-
|
|
147
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
146
|
+
_m = "Sec-Fetch-Mode";
|
|
147
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
148
148
|
case 11:
|
|
149
|
-
_l[_m] =
|
|
150
|
-
|
|
149
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
150
|
+
_12.label = 12;
|
|
151
151
|
case 12:
|
|
152
152
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
153
153
|
_o = headerParameters;
|
|
154
|
-
_p = "
|
|
155
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
154
|
+
_p = "x-csrf-token";
|
|
155
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
156
156
|
case 13:
|
|
157
|
-
_o[_p] =
|
|
158
|
-
|
|
157
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
158
|
+
_12.label = 14;
|
|
159
159
|
case 14:
|
|
160
160
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
161
161
|
_q = headerParameters;
|
|
162
|
-
_r = "x-
|
|
163
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
162
|
+
_r = "x-client-uuid";
|
|
163
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
164
164
|
case 15:
|
|
165
|
-
_q[_r] =
|
|
166
|
-
|
|
165
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
166
|
+
_12.label = 16;
|
|
167
167
|
case 16:
|
|
168
|
-
if (!(this.configuration && this.configuration.
|
|
169
|
-
_s = headerParameters;
|
|
170
|
-
_t = "x-guest-token";
|
|
171
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
172
|
-
case 17:
|
|
173
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
174
|
-
_10.label = 18;
|
|
175
|
-
case 18:
|
|
176
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
168
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
177
169
|
token = this.configuration.accessToken;
|
|
178
170
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
179
|
-
case
|
|
180
|
-
tokenString =
|
|
171
|
+
case 17:
|
|
172
|
+
tokenString = _12.sent();
|
|
181
173
|
if (tokenString) {
|
|
182
174
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
183
175
|
}
|
|
184
|
-
|
|
176
|
+
_12.label = 18;
|
|
177
|
+
case 18:
|
|
178
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
179
|
+
_s = headerParameters;
|
|
180
|
+
_t = "x-guest-token";
|
|
181
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
182
|
+
case 19:
|
|
183
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
184
|
+
_12.label = 20;
|
|
185
185
|
case 20:
|
|
186
186
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
187
187
|
_u = headerParameters;
|
|
188
188
|
_v = "Sec-Ch-Ua";
|
|
189
189
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
190
190
|
case 21:
|
|
191
|
-
_u[_v] =
|
|
192
|
-
|
|
191
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
192
|
+
_12.label = 22;
|
|
193
193
|
case 22:
|
|
194
194
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
195
195
|
_w = headerParameters;
|
|
196
|
-
_x = "x-
|
|
197
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
196
|
+
_x = "x-client-transaction-id";
|
|
197
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
198
198
|
case 23:
|
|
199
|
-
_w[_x] =
|
|
200
|
-
|
|
199
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
200
|
+
_12.label = 24;
|
|
201
201
|
case 24:
|
|
202
202
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
203
203
|
_y = headerParameters;
|
|
204
|
-
_z = "user
|
|
205
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
204
|
+
_z = "x-twitter-active-user";
|
|
205
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
206
206
|
case 25:
|
|
207
|
-
_y[_z] =
|
|
208
|
-
|
|
207
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
208
|
+
_12.label = 26;
|
|
209
209
|
case 26:
|
|
210
210
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
211
211
|
_0 = headerParameters;
|
|
212
|
-
_1 = "
|
|
213
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
212
|
+
_1 = "user-agent";
|
|
213
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
214
214
|
case 27:
|
|
215
|
-
_0[_1] =
|
|
216
|
-
|
|
215
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
216
|
+
_12.label = 28;
|
|
217
217
|
case 28:
|
|
218
218
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
219
219
|
_2 = headerParameters;
|
|
220
|
-
_3 = "
|
|
221
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
220
|
+
_3 = "Accept-Language";
|
|
221
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
222
222
|
case 29:
|
|
223
|
-
_2[_3] =
|
|
224
|
-
|
|
223
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
224
|
+
_12.label = 30;
|
|
225
225
|
case 30:
|
|
226
226
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
227
227
|
_4 = headerParameters;
|
|
228
|
-
_5 = "
|
|
229
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
228
|
+
_5 = "Sec-Fetch-Site";
|
|
229
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
230
230
|
case 31:
|
|
231
|
-
_4[_5] =
|
|
232
|
-
|
|
231
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
232
|
+
_12.label = 32;
|
|
233
233
|
case 32:
|
|
234
234
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
235
235
|
_6 = headerParameters;
|
|
236
|
-
_7 = "
|
|
237
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
236
|
+
_7 = "x-twitter-auth-type";
|
|
237
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
238
238
|
case 33:
|
|
239
|
-
_6[_7] =
|
|
240
|
-
|
|
239
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
240
|
+
_12.label = 34;
|
|
241
241
|
case 34:
|
|
242
242
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
243
243
|
_8 = headerParameters;
|
|
244
|
-
_9 = "
|
|
245
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
244
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
245
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
246
246
|
case 35:
|
|
247
|
-
_8[_9] =
|
|
248
|
-
|
|
249
|
-
case 36:
|
|
247
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
248
|
+
_12.label = 36;
|
|
249
|
+
case 36:
|
|
250
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
251
|
+
_10 = headerParameters;
|
|
252
|
+
_11 = "Accept-Encoding";
|
|
253
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
254
|
+
case 37:
|
|
255
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
256
|
+
_12.label = 38;
|
|
257
|
+
case 38: return [4 /*yield*/, this.request({
|
|
250
258
|
path: "/graphql/{pathQueryId}/Favoriters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
251
259
|
method: 'GET',
|
|
252
260
|
headers: headerParameters,
|
|
253
261
|
query: queryParameters,
|
|
254
262
|
}, initOverrides)];
|
|
255
|
-
case
|
|
256
|
-
response =
|
|
257
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
263
|
+
case 39:
|
|
264
|
+
response = _12.sent();
|
|
265
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetFavoritersResponseFromJSON)(jsonValue); })];
|
|
258
266
|
}
|
|
259
267
|
});
|
|
260
268
|
});
|
|
@@ -281,9 +289,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
281
289
|
*/
|
|
282
290
|
UserListApi.prototype.getFollowersRaw = function (requestParameters, initOverrides) {
|
|
283
291
|
return __awaiter(this, void 0, void 0, function () {
|
|
284
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
285
|
-
return __generator(this, function (
|
|
286
|
-
switch (
|
|
292
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
|
|
293
|
+
return __generator(this, function (_12) {
|
|
294
|
+
switch (_12.label) {
|
|
287
295
|
case 0:
|
|
288
296
|
if (requestParameters['pathQueryId'] == null) {
|
|
289
297
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowers().');
|
|
@@ -304,158 +312,166 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
304
312
|
headerParameters = {};
|
|
305
313
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
306
314
|
_a = headerParameters;
|
|
307
|
-
_b = "
|
|
308
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
315
|
+
_b = "Accept";
|
|
316
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
309
317
|
case 1:
|
|
310
|
-
_a[_b] =
|
|
311
|
-
|
|
318
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
319
|
+
_12.label = 2;
|
|
312
320
|
case 2:
|
|
313
321
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
314
322
|
_c = headerParameters;
|
|
315
|
-
_d = "
|
|
316
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
323
|
+
_d = "x-twitter-client-language";
|
|
324
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
317
325
|
case 3:
|
|
318
|
-
_c[_d] =
|
|
319
|
-
|
|
326
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
327
|
+
_12.label = 4;
|
|
320
328
|
case 4:
|
|
321
329
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
322
330
|
_e = headerParameters;
|
|
323
|
-
_f = "
|
|
324
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
331
|
+
_f = "Referer";
|
|
332
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
325
333
|
case 5:
|
|
326
|
-
_e[_f] =
|
|
327
|
-
|
|
334
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
335
|
+
_12.label = 6;
|
|
328
336
|
case 6:
|
|
329
337
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
330
338
|
_g = headerParameters;
|
|
331
339
|
_h = "Sec-Fetch-Dest";
|
|
332
340
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
333
341
|
case 7:
|
|
334
|
-
_g[_h] =
|
|
335
|
-
|
|
342
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
343
|
+
_12.label = 8;
|
|
336
344
|
case 8:
|
|
337
345
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
338
346
|
_j = headerParameters;
|
|
339
|
-
_k = "
|
|
340
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
347
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
348
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
341
349
|
case 9:
|
|
342
|
-
_j[_k] =
|
|
343
|
-
|
|
350
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
351
|
+
_12.label = 10;
|
|
344
352
|
case 10:
|
|
345
353
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
346
354
|
_l = headerParameters;
|
|
347
|
-
_m = "Sec-
|
|
348
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
355
|
+
_m = "Sec-Fetch-Mode";
|
|
356
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
349
357
|
case 11:
|
|
350
|
-
_l[_m] =
|
|
351
|
-
|
|
358
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
359
|
+
_12.label = 12;
|
|
352
360
|
case 12:
|
|
353
361
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
354
362
|
_o = headerParameters;
|
|
355
|
-
_p = "
|
|
356
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
363
|
+
_p = "x-csrf-token";
|
|
364
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
357
365
|
case 13:
|
|
358
|
-
_o[_p] =
|
|
359
|
-
|
|
366
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
367
|
+
_12.label = 14;
|
|
360
368
|
case 14:
|
|
361
369
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
362
370
|
_q = headerParameters;
|
|
363
|
-
_r = "x-
|
|
364
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
371
|
+
_r = "x-client-uuid";
|
|
372
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
365
373
|
case 15:
|
|
366
|
-
_q[_r] =
|
|
367
|
-
|
|
374
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
375
|
+
_12.label = 16;
|
|
368
376
|
case 16:
|
|
369
|
-
if (!(this.configuration && this.configuration.
|
|
370
|
-
_s = headerParameters;
|
|
371
|
-
_t = "x-guest-token";
|
|
372
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
373
|
-
case 17:
|
|
374
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
375
|
-
_10.label = 18;
|
|
376
|
-
case 18:
|
|
377
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
377
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
378
378
|
token = this.configuration.accessToken;
|
|
379
379
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
380
|
-
case
|
|
381
|
-
tokenString =
|
|
380
|
+
case 17:
|
|
381
|
+
tokenString = _12.sent();
|
|
382
382
|
if (tokenString) {
|
|
383
383
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
384
384
|
}
|
|
385
|
-
|
|
385
|
+
_12.label = 18;
|
|
386
|
+
case 18:
|
|
387
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
388
|
+
_s = headerParameters;
|
|
389
|
+
_t = "x-guest-token";
|
|
390
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
391
|
+
case 19:
|
|
392
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
393
|
+
_12.label = 20;
|
|
386
394
|
case 20:
|
|
387
395
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
388
396
|
_u = headerParameters;
|
|
389
397
|
_v = "Sec-Ch-Ua";
|
|
390
398
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
391
399
|
case 21:
|
|
392
|
-
_u[_v] =
|
|
393
|
-
|
|
400
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
401
|
+
_12.label = 22;
|
|
394
402
|
case 22:
|
|
395
403
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
396
404
|
_w = headerParameters;
|
|
397
|
-
_x = "x-
|
|
398
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
405
|
+
_x = "x-client-transaction-id";
|
|
406
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
399
407
|
case 23:
|
|
400
|
-
_w[_x] =
|
|
401
|
-
|
|
408
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
409
|
+
_12.label = 24;
|
|
402
410
|
case 24:
|
|
403
411
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
404
412
|
_y = headerParameters;
|
|
405
|
-
_z = "user
|
|
406
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
413
|
+
_z = "x-twitter-active-user";
|
|
414
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
407
415
|
case 25:
|
|
408
|
-
_y[_z] =
|
|
409
|
-
|
|
416
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
417
|
+
_12.label = 26;
|
|
410
418
|
case 26:
|
|
411
419
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
412
420
|
_0 = headerParameters;
|
|
413
|
-
_1 = "
|
|
414
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
421
|
+
_1 = "user-agent";
|
|
422
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
415
423
|
case 27:
|
|
416
|
-
_0[_1] =
|
|
417
|
-
|
|
424
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
425
|
+
_12.label = 28;
|
|
418
426
|
case 28:
|
|
419
427
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
420
428
|
_2 = headerParameters;
|
|
421
|
-
_3 = "
|
|
422
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
429
|
+
_3 = "Accept-Language";
|
|
430
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
423
431
|
case 29:
|
|
424
|
-
_2[_3] =
|
|
425
|
-
|
|
432
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
433
|
+
_12.label = 30;
|
|
426
434
|
case 30:
|
|
427
435
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
428
436
|
_4 = headerParameters;
|
|
429
|
-
_5 = "
|
|
430
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
437
|
+
_5 = "Sec-Fetch-Site";
|
|
438
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
431
439
|
case 31:
|
|
432
|
-
_4[_5] =
|
|
433
|
-
|
|
440
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
441
|
+
_12.label = 32;
|
|
434
442
|
case 32:
|
|
435
443
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
436
444
|
_6 = headerParameters;
|
|
437
|
-
_7 = "
|
|
438
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
445
|
+
_7 = "x-twitter-auth-type";
|
|
446
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
439
447
|
case 33:
|
|
440
|
-
_6[_7] =
|
|
441
|
-
|
|
448
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
449
|
+
_12.label = 34;
|
|
442
450
|
case 34:
|
|
443
451
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
444
452
|
_8 = headerParameters;
|
|
445
|
-
_9 = "
|
|
446
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
453
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
454
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
447
455
|
case 35:
|
|
448
|
-
_8[_9] =
|
|
449
|
-
|
|
450
|
-
case 36:
|
|
456
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
457
|
+
_12.label = 36;
|
|
458
|
+
case 36:
|
|
459
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
460
|
+
_10 = headerParameters;
|
|
461
|
+
_11 = "Accept-Encoding";
|
|
462
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
463
|
+
case 37:
|
|
464
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
465
|
+
_12.label = 38;
|
|
466
|
+
case 38: return [4 /*yield*/, this.request({
|
|
451
467
|
path: "/graphql/{pathQueryId}/Followers".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
452
468
|
method: 'GET',
|
|
453
469
|
headers: headerParameters,
|
|
454
470
|
query: queryParameters,
|
|
455
471
|
}, initOverrides)];
|
|
456
|
-
case
|
|
457
|
-
response =
|
|
458
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
472
|
+
case 39:
|
|
473
|
+
response = _12.sent();
|
|
474
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
|
|
459
475
|
}
|
|
460
476
|
});
|
|
461
477
|
});
|
|
@@ -482,9 +498,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
482
498
|
*/
|
|
483
499
|
UserListApi.prototype.getFollowersYouKnowRaw = function (requestParameters, initOverrides) {
|
|
484
500
|
return __awaiter(this, void 0, void 0, function () {
|
|
485
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
486
|
-
return __generator(this, function (
|
|
487
|
-
switch (
|
|
501
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
|
|
502
|
+
return __generator(this, function (_12) {
|
|
503
|
+
switch (_12.label) {
|
|
488
504
|
case 0:
|
|
489
505
|
if (requestParameters['pathQueryId'] == null) {
|
|
490
506
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowersYouKnow().');
|
|
@@ -505,158 +521,166 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
505
521
|
headerParameters = {};
|
|
506
522
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
507
523
|
_a = headerParameters;
|
|
508
|
-
_b = "
|
|
509
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
524
|
+
_b = "Accept";
|
|
525
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
510
526
|
case 1:
|
|
511
|
-
_a[_b] =
|
|
512
|
-
|
|
527
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
528
|
+
_12.label = 2;
|
|
513
529
|
case 2:
|
|
514
530
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
515
531
|
_c = headerParameters;
|
|
516
|
-
_d = "
|
|
517
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
532
|
+
_d = "x-twitter-client-language";
|
|
533
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
518
534
|
case 3:
|
|
519
|
-
_c[_d] =
|
|
520
|
-
|
|
535
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
536
|
+
_12.label = 4;
|
|
521
537
|
case 4:
|
|
522
538
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
523
539
|
_e = headerParameters;
|
|
524
|
-
_f = "
|
|
525
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
540
|
+
_f = "Referer";
|
|
541
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
526
542
|
case 5:
|
|
527
|
-
_e[_f] =
|
|
528
|
-
|
|
543
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
544
|
+
_12.label = 6;
|
|
529
545
|
case 6:
|
|
530
546
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
531
547
|
_g = headerParameters;
|
|
532
548
|
_h = "Sec-Fetch-Dest";
|
|
533
549
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
534
550
|
case 7:
|
|
535
|
-
_g[_h] =
|
|
536
|
-
|
|
551
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
552
|
+
_12.label = 8;
|
|
537
553
|
case 8:
|
|
538
554
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
539
555
|
_j = headerParameters;
|
|
540
|
-
_k = "
|
|
541
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
556
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
557
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
542
558
|
case 9:
|
|
543
|
-
_j[_k] =
|
|
544
|
-
|
|
559
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
560
|
+
_12.label = 10;
|
|
545
561
|
case 10:
|
|
546
562
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
547
563
|
_l = headerParameters;
|
|
548
|
-
_m = "Sec-
|
|
549
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
564
|
+
_m = "Sec-Fetch-Mode";
|
|
565
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
550
566
|
case 11:
|
|
551
|
-
_l[_m] =
|
|
552
|
-
|
|
567
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
568
|
+
_12.label = 12;
|
|
553
569
|
case 12:
|
|
554
570
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
555
571
|
_o = headerParameters;
|
|
556
|
-
_p = "
|
|
557
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
572
|
+
_p = "x-csrf-token";
|
|
573
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
558
574
|
case 13:
|
|
559
|
-
_o[_p] =
|
|
560
|
-
|
|
575
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
576
|
+
_12.label = 14;
|
|
561
577
|
case 14:
|
|
562
578
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
563
579
|
_q = headerParameters;
|
|
564
|
-
_r = "x-
|
|
565
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
580
|
+
_r = "x-client-uuid";
|
|
581
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
566
582
|
case 15:
|
|
567
|
-
_q[_r] =
|
|
568
|
-
|
|
583
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
584
|
+
_12.label = 16;
|
|
569
585
|
case 16:
|
|
570
|
-
if (!(this.configuration && this.configuration.
|
|
571
|
-
_s = headerParameters;
|
|
572
|
-
_t = "x-guest-token";
|
|
573
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
574
|
-
case 17:
|
|
575
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
576
|
-
_10.label = 18;
|
|
577
|
-
case 18:
|
|
578
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
586
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
579
587
|
token = this.configuration.accessToken;
|
|
580
588
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
581
|
-
case
|
|
582
|
-
tokenString =
|
|
589
|
+
case 17:
|
|
590
|
+
tokenString = _12.sent();
|
|
583
591
|
if (tokenString) {
|
|
584
592
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
585
593
|
}
|
|
586
|
-
|
|
594
|
+
_12.label = 18;
|
|
595
|
+
case 18:
|
|
596
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
597
|
+
_s = headerParameters;
|
|
598
|
+
_t = "x-guest-token";
|
|
599
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
600
|
+
case 19:
|
|
601
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
602
|
+
_12.label = 20;
|
|
587
603
|
case 20:
|
|
588
604
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
589
605
|
_u = headerParameters;
|
|
590
606
|
_v = "Sec-Ch-Ua";
|
|
591
607
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
592
608
|
case 21:
|
|
593
|
-
_u[_v] =
|
|
594
|
-
|
|
609
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
610
|
+
_12.label = 22;
|
|
595
611
|
case 22:
|
|
596
612
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
597
613
|
_w = headerParameters;
|
|
598
|
-
_x = "x-
|
|
599
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
614
|
+
_x = "x-client-transaction-id";
|
|
615
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
600
616
|
case 23:
|
|
601
|
-
_w[_x] =
|
|
602
|
-
|
|
617
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
618
|
+
_12.label = 24;
|
|
603
619
|
case 24:
|
|
604
620
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
605
621
|
_y = headerParameters;
|
|
606
|
-
_z = "user
|
|
607
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
622
|
+
_z = "x-twitter-active-user";
|
|
623
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
608
624
|
case 25:
|
|
609
|
-
_y[_z] =
|
|
610
|
-
|
|
625
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
626
|
+
_12.label = 26;
|
|
611
627
|
case 26:
|
|
612
628
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
613
629
|
_0 = headerParameters;
|
|
614
|
-
_1 = "
|
|
615
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
630
|
+
_1 = "user-agent";
|
|
631
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
616
632
|
case 27:
|
|
617
|
-
_0[_1] =
|
|
618
|
-
|
|
633
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
634
|
+
_12.label = 28;
|
|
619
635
|
case 28:
|
|
620
636
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
621
637
|
_2 = headerParameters;
|
|
622
|
-
_3 = "
|
|
623
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
638
|
+
_3 = "Accept-Language";
|
|
639
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
624
640
|
case 29:
|
|
625
|
-
_2[_3] =
|
|
626
|
-
|
|
641
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
642
|
+
_12.label = 30;
|
|
627
643
|
case 30:
|
|
628
644
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
629
645
|
_4 = headerParameters;
|
|
630
|
-
_5 = "
|
|
631
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
646
|
+
_5 = "Sec-Fetch-Site";
|
|
647
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
632
648
|
case 31:
|
|
633
|
-
_4[_5] =
|
|
634
|
-
|
|
649
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
650
|
+
_12.label = 32;
|
|
635
651
|
case 32:
|
|
636
652
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
637
653
|
_6 = headerParameters;
|
|
638
|
-
_7 = "
|
|
639
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
654
|
+
_7 = "x-twitter-auth-type";
|
|
655
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
640
656
|
case 33:
|
|
641
|
-
_6[_7] =
|
|
642
|
-
|
|
657
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
658
|
+
_12.label = 34;
|
|
643
659
|
case 34:
|
|
644
660
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
645
661
|
_8 = headerParameters;
|
|
646
|
-
_9 = "
|
|
647
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
662
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
663
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
648
664
|
case 35:
|
|
649
|
-
_8[_9] =
|
|
650
|
-
|
|
651
|
-
case 36:
|
|
665
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
666
|
+
_12.label = 36;
|
|
667
|
+
case 36:
|
|
668
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
669
|
+
_10 = headerParameters;
|
|
670
|
+
_11 = "Accept-Encoding";
|
|
671
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
672
|
+
case 37:
|
|
673
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
674
|
+
_12.label = 38;
|
|
675
|
+
case 38: return [4 /*yield*/, this.request({
|
|
652
676
|
path: "/graphql/{pathQueryId}/FollowersYouKnow".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
653
677
|
method: 'GET',
|
|
654
678
|
headers: headerParameters,
|
|
655
679
|
query: queryParameters,
|
|
656
680
|
}, initOverrides)];
|
|
657
|
-
case
|
|
658
|
-
response =
|
|
659
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
681
|
+
case 39:
|
|
682
|
+
response = _12.sent();
|
|
683
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
|
|
660
684
|
}
|
|
661
685
|
});
|
|
662
686
|
});
|
|
@@ -683,9 +707,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
683
707
|
*/
|
|
684
708
|
UserListApi.prototype.getFollowingRaw = function (requestParameters, initOverrides) {
|
|
685
709
|
return __awaiter(this, void 0, void 0, function () {
|
|
686
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
687
|
-
return __generator(this, function (
|
|
688
|
-
switch (
|
|
710
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
|
|
711
|
+
return __generator(this, function (_12) {
|
|
712
|
+
switch (_12.label) {
|
|
689
713
|
case 0:
|
|
690
714
|
if (requestParameters['pathQueryId'] == null) {
|
|
691
715
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowing().');
|
|
@@ -706,158 +730,166 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
706
730
|
headerParameters = {};
|
|
707
731
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
708
732
|
_a = headerParameters;
|
|
709
|
-
_b = "
|
|
710
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
733
|
+
_b = "Accept";
|
|
734
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
711
735
|
case 1:
|
|
712
|
-
_a[_b] =
|
|
713
|
-
|
|
736
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
737
|
+
_12.label = 2;
|
|
714
738
|
case 2:
|
|
715
739
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
716
740
|
_c = headerParameters;
|
|
717
|
-
_d = "
|
|
718
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
741
|
+
_d = "x-twitter-client-language";
|
|
742
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
719
743
|
case 3:
|
|
720
|
-
_c[_d] =
|
|
721
|
-
|
|
744
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
745
|
+
_12.label = 4;
|
|
722
746
|
case 4:
|
|
723
747
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
724
748
|
_e = headerParameters;
|
|
725
|
-
_f = "
|
|
726
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
749
|
+
_f = "Referer";
|
|
750
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
727
751
|
case 5:
|
|
728
|
-
_e[_f] =
|
|
729
|
-
|
|
752
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
753
|
+
_12.label = 6;
|
|
730
754
|
case 6:
|
|
731
755
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
732
756
|
_g = headerParameters;
|
|
733
757
|
_h = "Sec-Fetch-Dest";
|
|
734
758
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
735
759
|
case 7:
|
|
736
|
-
_g[_h] =
|
|
737
|
-
|
|
760
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
761
|
+
_12.label = 8;
|
|
738
762
|
case 8:
|
|
739
763
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
740
764
|
_j = headerParameters;
|
|
741
|
-
_k = "
|
|
742
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
765
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
766
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
743
767
|
case 9:
|
|
744
|
-
_j[_k] =
|
|
745
|
-
|
|
768
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
769
|
+
_12.label = 10;
|
|
746
770
|
case 10:
|
|
747
771
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
748
772
|
_l = headerParameters;
|
|
749
|
-
_m = "Sec-
|
|
750
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
773
|
+
_m = "Sec-Fetch-Mode";
|
|
774
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
751
775
|
case 11:
|
|
752
|
-
_l[_m] =
|
|
753
|
-
|
|
776
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
777
|
+
_12.label = 12;
|
|
754
778
|
case 12:
|
|
755
779
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
756
780
|
_o = headerParameters;
|
|
757
|
-
_p = "
|
|
758
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
781
|
+
_p = "x-csrf-token";
|
|
782
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
759
783
|
case 13:
|
|
760
|
-
_o[_p] =
|
|
761
|
-
|
|
784
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
785
|
+
_12.label = 14;
|
|
762
786
|
case 14:
|
|
763
787
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
764
788
|
_q = headerParameters;
|
|
765
|
-
_r = "x-
|
|
766
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
789
|
+
_r = "x-client-uuid";
|
|
790
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
767
791
|
case 15:
|
|
768
|
-
_q[_r] =
|
|
769
|
-
|
|
792
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
793
|
+
_12.label = 16;
|
|
770
794
|
case 16:
|
|
771
|
-
if (!(this.configuration && this.configuration.
|
|
772
|
-
_s = headerParameters;
|
|
773
|
-
_t = "x-guest-token";
|
|
774
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
775
|
-
case 17:
|
|
776
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
777
|
-
_10.label = 18;
|
|
778
|
-
case 18:
|
|
779
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
795
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
780
796
|
token = this.configuration.accessToken;
|
|
781
797
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
782
|
-
case
|
|
783
|
-
tokenString =
|
|
798
|
+
case 17:
|
|
799
|
+
tokenString = _12.sent();
|
|
784
800
|
if (tokenString) {
|
|
785
801
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
786
802
|
}
|
|
787
|
-
|
|
803
|
+
_12.label = 18;
|
|
804
|
+
case 18:
|
|
805
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
806
|
+
_s = headerParameters;
|
|
807
|
+
_t = "x-guest-token";
|
|
808
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
809
|
+
case 19:
|
|
810
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
811
|
+
_12.label = 20;
|
|
788
812
|
case 20:
|
|
789
813
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
790
814
|
_u = headerParameters;
|
|
791
815
|
_v = "Sec-Ch-Ua";
|
|
792
816
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
793
817
|
case 21:
|
|
794
|
-
_u[_v] =
|
|
795
|
-
|
|
818
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
819
|
+
_12.label = 22;
|
|
796
820
|
case 22:
|
|
797
821
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
798
822
|
_w = headerParameters;
|
|
799
|
-
_x = "x-
|
|
800
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
823
|
+
_x = "x-client-transaction-id";
|
|
824
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
801
825
|
case 23:
|
|
802
|
-
_w[_x] =
|
|
803
|
-
|
|
826
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
827
|
+
_12.label = 24;
|
|
804
828
|
case 24:
|
|
805
829
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
806
830
|
_y = headerParameters;
|
|
807
|
-
_z = "user
|
|
808
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
831
|
+
_z = "x-twitter-active-user";
|
|
832
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
809
833
|
case 25:
|
|
810
|
-
_y[_z] =
|
|
811
|
-
|
|
834
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
835
|
+
_12.label = 26;
|
|
812
836
|
case 26:
|
|
813
837
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
814
838
|
_0 = headerParameters;
|
|
815
|
-
_1 = "
|
|
816
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
839
|
+
_1 = "user-agent";
|
|
840
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
817
841
|
case 27:
|
|
818
|
-
_0[_1] =
|
|
819
|
-
|
|
842
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
843
|
+
_12.label = 28;
|
|
820
844
|
case 28:
|
|
821
845
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
822
846
|
_2 = headerParameters;
|
|
823
|
-
_3 = "
|
|
824
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
847
|
+
_3 = "Accept-Language";
|
|
848
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
825
849
|
case 29:
|
|
826
|
-
_2[_3] =
|
|
827
|
-
|
|
850
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
851
|
+
_12.label = 30;
|
|
828
852
|
case 30:
|
|
829
853
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
830
854
|
_4 = headerParameters;
|
|
831
|
-
_5 = "
|
|
832
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
855
|
+
_5 = "Sec-Fetch-Site";
|
|
856
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
833
857
|
case 31:
|
|
834
|
-
_4[_5] =
|
|
835
|
-
|
|
858
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
859
|
+
_12.label = 32;
|
|
836
860
|
case 32:
|
|
837
861
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
838
862
|
_6 = headerParameters;
|
|
839
|
-
_7 = "
|
|
840
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
863
|
+
_7 = "x-twitter-auth-type";
|
|
864
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
841
865
|
case 33:
|
|
842
|
-
_6[_7] =
|
|
843
|
-
|
|
866
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
867
|
+
_12.label = 34;
|
|
844
868
|
case 34:
|
|
845
869
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
846
870
|
_8 = headerParameters;
|
|
847
|
-
_9 = "
|
|
848
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
871
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
872
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
849
873
|
case 35:
|
|
850
|
-
_8[_9] =
|
|
851
|
-
|
|
852
|
-
case 36:
|
|
874
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
875
|
+
_12.label = 36;
|
|
876
|
+
case 36:
|
|
877
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
878
|
+
_10 = headerParameters;
|
|
879
|
+
_11 = "Accept-Encoding";
|
|
880
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
881
|
+
case 37:
|
|
882
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
883
|
+
_12.label = 38;
|
|
884
|
+
case 38: return [4 /*yield*/, this.request({
|
|
853
885
|
path: "/graphql/{pathQueryId}/Following".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
854
886
|
method: 'GET',
|
|
855
887
|
headers: headerParameters,
|
|
856
888
|
query: queryParameters,
|
|
857
889
|
}, initOverrides)];
|
|
858
|
-
case
|
|
859
|
-
response =
|
|
860
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
890
|
+
case 39:
|
|
891
|
+
response = _12.sent();
|
|
892
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
|
|
861
893
|
}
|
|
862
894
|
});
|
|
863
895
|
});
|
|
@@ -884,9 +916,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
884
916
|
*/
|
|
885
917
|
UserListApi.prototype.getRetweetersRaw = function (requestParameters, initOverrides) {
|
|
886
918
|
return __awaiter(this, void 0, void 0, function () {
|
|
887
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
888
|
-
return __generator(this, function (
|
|
889
|
-
switch (
|
|
919
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
|
|
920
|
+
return __generator(this, function (_12) {
|
|
921
|
+
switch (_12.label) {
|
|
890
922
|
case 0:
|
|
891
923
|
if (requestParameters['pathQueryId'] == null) {
|
|
892
924
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getRetweeters().');
|
|
@@ -907,158 +939,166 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
907
939
|
headerParameters = {};
|
|
908
940
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
909
941
|
_a = headerParameters;
|
|
910
|
-
_b = "
|
|
911
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
942
|
+
_b = "Accept";
|
|
943
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
912
944
|
case 1:
|
|
913
|
-
_a[_b] =
|
|
914
|
-
|
|
945
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
946
|
+
_12.label = 2;
|
|
915
947
|
case 2:
|
|
916
948
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
917
949
|
_c = headerParameters;
|
|
918
|
-
_d = "
|
|
919
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
950
|
+
_d = "x-twitter-client-language";
|
|
951
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
920
952
|
case 3:
|
|
921
|
-
_c[_d] =
|
|
922
|
-
|
|
953
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
954
|
+
_12.label = 4;
|
|
923
955
|
case 4:
|
|
924
956
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
925
957
|
_e = headerParameters;
|
|
926
|
-
_f = "
|
|
927
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
958
|
+
_f = "Referer";
|
|
959
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
928
960
|
case 5:
|
|
929
|
-
_e[_f] =
|
|
930
|
-
|
|
961
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
962
|
+
_12.label = 6;
|
|
931
963
|
case 6:
|
|
932
964
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
933
965
|
_g = headerParameters;
|
|
934
966
|
_h = "Sec-Fetch-Dest";
|
|
935
967
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
936
968
|
case 7:
|
|
937
|
-
_g[_h] =
|
|
938
|
-
|
|
969
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
970
|
+
_12.label = 8;
|
|
939
971
|
case 8:
|
|
940
972
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
941
973
|
_j = headerParameters;
|
|
942
|
-
_k = "
|
|
943
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
974
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
975
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
944
976
|
case 9:
|
|
945
|
-
_j[_k] =
|
|
946
|
-
|
|
977
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
978
|
+
_12.label = 10;
|
|
947
979
|
case 10:
|
|
948
980
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
949
981
|
_l = headerParameters;
|
|
950
|
-
_m = "Sec-
|
|
951
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
982
|
+
_m = "Sec-Fetch-Mode";
|
|
983
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
952
984
|
case 11:
|
|
953
|
-
_l[_m] =
|
|
954
|
-
|
|
985
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
986
|
+
_12.label = 12;
|
|
955
987
|
case 12:
|
|
956
988
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
957
989
|
_o = headerParameters;
|
|
958
|
-
_p = "
|
|
959
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
990
|
+
_p = "x-csrf-token";
|
|
991
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
960
992
|
case 13:
|
|
961
|
-
_o[_p] =
|
|
962
|
-
|
|
993
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
994
|
+
_12.label = 14;
|
|
963
995
|
case 14:
|
|
964
996
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
965
997
|
_q = headerParameters;
|
|
966
|
-
_r = "x-
|
|
967
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
998
|
+
_r = "x-client-uuid";
|
|
999
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
968
1000
|
case 15:
|
|
969
|
-
_q[_r] =
|
|
970
|
-
|
|
1001
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
1002
|
+
_12.label = 16;
|
|
971
1003
|
case 16:
|
|
972
|
-
if (!(this.configuration && this.configuration.
|
|
973
|
-
_s = headerParameters;
|
|
974
|
-
_t = "x-guest-token";
|
|
975
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
976
|
-
case 17:
|
|
977
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
978
|
-
_10.label = 18;
|
|
979
|
-
case 18:
|
|
980
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1004
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
981
1005
|
token = this.configuration.accessToken;
|
|
982
1006
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
983
|
-
case
|
|
984
|
-
tokenString =
|
|
1007
|
+
case 17:
|
|
1008
|
+
tokenString = _12.sent();
|
|
985
1009
|
if (tokenString) {
|
|
986
1010
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
987
1011
|
}
|
|
988
|
-
|
|
1012
|
+
_12.label = 18;
|
|
1013
|
+
case 18:
|
|
1014
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1015
|
+
_s = headerParameters;
|
|
1016
|
+
_t = "x-guest-token";
|
|
1017
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1018
|
+
case 19:
|
|
1019
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1020
|
+
_12.label = 20;
|
|
989
1021
|
case 20:
|
|
990
1022
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
991
1023
|
_u = headerParameters;
|
|
992
1024
|
_v = "Sec-Ch-Ua";
|
|
993
1025
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
994
1026
|
case 21:
|
|
995
|
-
_u[_v] =
|
|
996
|
-
|
|
1027
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
1028
|
+
_12.label = 22;
|
|
997
1029
|
case 22:
|
|
998
1030
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
999
1031
|
_w = headerParameters;
|
|
1000
|
-
_x = "x-
|
|
1001
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1032
|
+
_x = "x-client-transaction-id";
|
|
1033
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1002
1034
|
case 23:
|
|
1003
|
-
_w[_x] =
|
|
1004
|
-
|
|
1035
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
1036
|
+
_12.label = 24;
|
|
1005
1037
|
case 24:
|
|
1006
1038
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1007
1039
|
_y = headerParameters;
|
|
1008
|
-
_z = "user
|
|
1009
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1040
|
+
_z = "x-twitter-active-user";
|
|
1041
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1010
1042
|
case 25:
|
|
1011
|
-
_y[_z] =
|
|
1012
|
-
|
|
1043
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
1044
|
+
_12.label = 26;
|
|
1013
1045
|
case 26:
|
|
1014
1046
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1015
1047
|
_0 = headerParameters;
|
|
1016
|
-
_1 = "
|
|
1017
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1048
|
+
_1 = "user-agent";
|
|
1049
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1018
1050
|
case 27:
|
|
1019
|
-
_0[_1] =
|
|
1020
|
-
|
|
1051
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
1052
|
+
_12.label = 28;
|
|
1021
1053
|
case 28:
|
|
1022
1054
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1023
1055
|
_2 = headerParameters;
|
|
1024
|
-
_3 = "
|
|
1025
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1056
|
+
_3 = "Accept-Language";
|
|
1057
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1026
1058
|
case 29:
|
|
1027
|
-
_2[_3] =
|
|
1028
|
-
|
|
1059
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
1060
|
+
_12.label = 30;
|
|
1029
1061
|
case 30:
|
|
1030
1062
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1031
1063
|
_4 = headerParameters;
|
|
1032
|
-
_5 = "
|
|
1033
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1064
|
+
_5 = "Sec-Fetch-Site";
|
|
1065
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1034
1066
|
case 31:
|
|
1035
|
-
_4[_5] =
|
|
1036
|
-
|
|
1067
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
1068
|
+
_12.label = 32;
|
|
1037
1069
|
case 32:
|
|
1038
1070
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1039
1071
|
_6 = headerParameters;
|
|
1040
|
-
_7 = "
|
|
1041
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1072
|
+
_7 = "x-twitter-auth-type";
|
|
1073
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1042
1074
|
case 33:
|
|
1043
|
-
_6[_7] =
|
|
1044
|
-
|
|
1075
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
1076
|
+
_12.label = 34;
|
|
1045
1077
|
case 34:
|
|
1046
1078
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1047
1079
|
_8 = headerParameters;
|
|
1048
|
-
_9 = "
|
|
1049
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1080
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
1081
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1050
1082
|
case 35:
|
|
1051
|
-
_8[_9] =
|
|
1052
|
-
|
|
1053
|
-
case 36:
|
|
1083
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
1084
|
+
_12.label = 36;
|
|
1085
|
+
case 36:
|
|
1086
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1087
|
+
_10 = headerParameters;
|
|
1088
|
+
_11 = "Accept-Encoding";
|
|
1089
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1090
|
+
case 37:
|
|
1091
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
1092
|
+
_12.label = 38;
|
|
1093
|
+
case 38: return [4 /*yield*/, this.request({
|
|
1054
1094
|
path: "/graphql/{pathQueryId}/Retweeters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1055
1095
|
method: 'GET',
|
|
1056
1096
|
headers: headerParameters,
|
|
1057
1097
|
query: queryParameters,
|
|
1058
1098
|
}, initOverrides)];
|
|
1059
|
-
case
|
|
1060
|
-
response =
|
|
1061
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
1099
|
+
case 39:
|
|
1100
|
+
response = _12.sent();
|
|
1101
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetRetweetersResponseFromJSON)(jsonValue); })];
|
|
1062
1102
|
}
|
|
1063
1103
|
});
|
|
1064
1104
|
});
|