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/PostApi.js
CHANGED
|
@@ -80,9 +80,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
80
80
|
*/
|
|
81
81
|
PostApi.prototype.postCreateBookmarkRaw = 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 postCreateBookmark().');
|
|
@@ -95,159 +95,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
95
95
|
headerParameters['Content-Type'] = 'application/json';
|
|
96
96
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
97
97
|
_a = headerParameters;
|
|
98
|
-
_b = "
|
|
99
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
98
|
+
_b = "Accept";
|
|
99
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
100
100
|
case 1:
|
|
101
|
-
_a[_b] =
|
|
102
|
-
|
|
101
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
102
|
+
_12.label = 2;
|
|
103
103
|
case 2:
|
|
104
104
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
105
105
|
_c = headerParameters;
|
|
106
|
-
_d = "
|
|
107
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
106
|
+
_d = "x-twitter-client-language";
|
|
107
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
108
108
|
case 3:
|
|
109
|
-
_c[_d] =
|
|
110
|
-
|
|
109
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
110
|
+
_12.label = 4;
|
|
111
111
|
case 4:
|
|
112
112
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
113
113
|
_e = headerParameters;
|
|
114
|
-
_f = "
|
|
115
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
114
|
+
_f = "Referer";
|
|
115
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
116
116
|
case 5:
|
|
117
|
-
_e[_f] =
|
|
118
|
-
|
|
117
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
118
|
+
_12.label = 6;
|
|
119
119
|
case 6:
|
|
120
120
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
121
121
|
_g = headerParameters;
|
|
122
122
|
_h = "Sec-Fetch-Dest";
|
|
123
123
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
124
124
|
case 7:
|
|
125
|
-
_g[_h] =
|
|
126
|
-
|
|
125
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
126
|
+
_12.label = 8;
|
|
127
127
|
case 8:
|
|
128
128
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
129
129
|
_j = headerParameters;
|
|
130
|
-
_k = "
|
|
131
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
130
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
131
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
132
132
|
case 9:
|
|
133
|
-
_j[_k] =
|
|
134
|
-
|
|
133
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
134
|
+
_12.label = 10;
|
|
135
135
|
case 10:
|
|
136
136
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
137
137
|
_l = headerParameters;
|
|
138
|
-
_m = "Sec-
|
|
139
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
138
|
+
_m = "Sec-Fetch-Mode";
|
|
139
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
140
140
|
case 11:
|
|
141
|
-
_l[_m] =
|
|
142
|
-
|
|
141
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
142
|
+
_12.label = 12;
|
|
143
143
|
case 12:
|
|
144
144
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
145
145
|
_o = headerParameters;
|
|
146
|
-
_p = "
|
|
147
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
146
|
+
_p = "x-csrf-token";
|
|
147
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
148
148
|
case 13:
|
|
149
|
-
_o[_p] =
|
|
150
|
-
|
|
149
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
150
|
+
_12.label = 14;
|
|
151
151
|
case 14:
|
|
152
152
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
153
153
|
_q = headerParameters;
|
|
154
|
-
_r = "x-
|
|
155
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
154
|
+
_r = "x-client-uuid";
|
|
155
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
156
156
|
case 15:
|
|
157
|
-
_q[_r] =
|
|
158
|
-
|
|
157
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
158
|
+
_12.label = 16;
|
|
159
159
|
case 16:
|
|
160
|
-
if (!(this.configuration && this.configuration.
|
|
161
|
-
_s = headerParameters;
|
|
162
|
-
_t = "x-guest-token";
|
|
163
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
164
|
-
case 17:
|
|
165
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
166
|
-
_10.label = 18;
|
|
167
|
-
case 18:
|
|
168
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
160
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
169
161
|
token = this.configuration.accessToken;
|
|
170
162
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
171
|
-
case
|
|
172
|
-
tokenString =
|
|
163
|
+
case 17:
|
|
164
|
+
tokenString = _12.sent();
|
|
173
165
|
if (tokenString) {
|
|
174
166
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
175
167
|
}
|
|
176
|
-
|
|
168
|
+
_12.label = 18;
|
|
169
|
+
case 18:
|
|
170
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
171
|
+
_s = headerParameters;
|
|
172
|
+
_t = "x-guest-token";
|
|
173
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
174
|
+
case 19:
|
|
175
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
176
|
+
_12.label = 20;
|
|
177
177
|
case 20:
|
|
178
178
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
179
179
|
_u = headerParameters;
|
|
180
180
|
_v = "Sec-Ch-Ua";
|
|
181
181
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
182
182
|
case 21:
|
|
183
|
-
_u[_v] =
|
|
184
|
-
|
|
183
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
184
|
+
_12.label = 22;
|
|
185
185
|
case 22:
|
|
186
186
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
187
187
|
_w = headerParameters;
|
|
188
|
-
_x = "x-
|
|
189
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
188
|
+
_x = "x-client-transaction-id";
|
|
189
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
190
190
|
case 23:
|
|
191
|
-
_w[_x] =
|
|
192
|
-
|
|
191
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
192
|
+
_12.label = 24;
|
|
193
193
|
case 24:
|
|
194
194
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
195
195
|
_y = headerParameters;
|
|
196
|
-
_z = "user
|
|
197
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
196
|
+
_z = "x-twitter-active-user";
|
|
197
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
198
198
|
case 25:
|
|
199
|
-
_y[_z] =
|
|
200
|
-
|
|
199
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
200
|
+
_12.label = 26;
|
|
201
201
|
case 26:
|
|
202
202
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
203
203
|
_0 = headerParameters;
|
|
204
|
-
_1 = "
|
|
205
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
204
|
+
_1 = "user-agent";
|
|
205
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
206
206
|
case 27:
|
|
207
|
-
_0[_1] =
|
|
208
|
-
|
|
207
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
208
|
+
_12.label = 28;
|
|
209
209
|
case 28:
|
|
210
210
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
211
211
|
_2 = headerParameters;
|
|
212
|
-
_3 = "
|
|
213
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
212
|
+
_3 = "Accept-Language";
|
|
213
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
214
214
|
case 29:
|
|
215
|
-
_2[_3] =
|
|
216
|
-
|
|
215
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
216
|
+
_12.label = 30;
|
|
217
217
|
case 30:
|
|
218
218
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
219
219
|
_4 = headerParameters;
|
|
220
|
-
_5 = "
|
|
221
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
220
|
+
_5 = "Sec-Fetch-Site";
|
|
221
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
222
222
|
case 31:
|
|
223
|
-
_4[_5] =
|
|
224
|
-
|
|
223
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
224
|
+
_12.label = 32;
|
|
225
225
|
case 32:
|
|
226
226
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
227
227
|
_6 = headerParameters;
|
|
228
|
-
_7 = "
|
|
229
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
228
|
+
_7 = "x-twitter-auth-type";
|
|
229
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
230
230
|
case 33:
|
|
231
|
-
_6[_7] =
|
|
232
|
-
|
|
231
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
232
|
+
_12.label = 34;
|
|
233
233
|
case 34:
|
|
234
234
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
235
235
|
_8 = headerParameters;
|
|
236
|
-
_9 = "
|
|
237
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
236
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
237
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
238
238
|
case 35:
|
|
239
|
-
_8[_9] =
|
|
240
|
-
|
|
241
|
-
case 36:
|
|
239
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
240
|
+
_12.label = 36;
|
|
241
|
+
case 36:
|
|
242
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
243
|
+
_10 = headerParameters;
|
|
244
|
+
_11 = "Accept-Encoding";
|
|
245
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
246
|
+
case 37:
|
|
247
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
248
|
+
_12.label = 38;
|
|
249
|
+
case 38: return [4 /*yield*/, this.request({
|
|
242
250
|
path: "/graphql/{pathQueryId}/CreateBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
243
251
|
method: 'POST',
|
|
244
252
|
headers: headerParameters,
|
|
245
253
|
query: queryParameters,
|
|
246
254
|
body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
|
|
247
255
|
}, initOverrides)];
|
|
248
|
-
case
|
|
249
|
-
response =
|
|
250
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
256
|
+
case 39:
|
|
257
|
+
response = _12.sent();
|
|
258
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateBookmarkResponseFromJSON)(jsonValue); })];
|
|
251
259
|
}
|
|
252
260
|
});
|
|
253
261
|
});
|
|
@@ -274,9 +282,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
274
282
|
*/
|
|
275
283
|
PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
|
|
276
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
277
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
278
|
-
return __generator(this, function (
|
|
279
|
-
switch (
|
|
285
|
+
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;
|
|
286
|
+
return __generator(this, function (_12) {
|
|
287
|
+
switch (_12.label) {
|
|
280
288
|
case 0:
|
|
281
289
|
if (requestParameters['pathQueryId'] == null) {
|
|
282
290
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
|
|
@@ -289,159 +297,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
289
297
|
headerParameters['Content-Type'] = 'application/json';
|
|
290
298
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
291
299
|
_a = headerParameters;
|
|
292
|
-
_b = "
|
|
293
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
300
|
+
_b = "Accept";
|
|
301
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
294
302
|
case 1:
|
|
295
|
-
_a[_b] =
|
|
296
|
-
|
|
303
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
304
|
+
_12.label = 2;
|
|
297
305
|
case 2:
|
|
298
306
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
299
307
|
_c = headerParameters;
|
|
300
|
-
_d = "
|
|
301
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
308
|
+
_d = "x-twitter-client-language";
|
|
309
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
302
310
|
case 3:
|
|
303
|
-
_c[_d] =
|
|
304
|
-
|
|
311
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
312
|
+
_12.label = 4;
|
|
305
313
|
case 4:
|
|
306
314
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
307
315
|
_e = headerParameters;
|
|
308
|
-
_f = "
|
|
309
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
316
|
+
_f = "Referer";
|
|
317
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
310
318
|
case 5:
|
|
311
|
-
_e[_f] =
|
|
312
|
-
|
|
319
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
320
|
+
_12.label = 6;
|
|
313
321
|
case 6:
|
|
314
322
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
315
323
|
_g = headerParameters;
|
|
316
324
|
_h = "Sec-Fetch-Dest";
|
|
317
325
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
318
326
|
case 7:
|
|
319
|
-
_g[_h] =
|
|
320
|
-
|
|
327
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
328
|
+
_12.label = 8;
|
|
321
329
|
case 8:
|
|
322
330
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
323
331
|
_j = headerParameters;
|
|
324
|
-
_k = "
|
|
325
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
332
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
333
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
326
334
|
case 9:
|
|
327
|
-
_j[_k] =
|
|
328
|
-
|
|
335
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
336
|
+
_12.label = 10;
|
|
329
337
|
case 10:
|
|
330
338
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
331
339
|
_l = headerParameters;
|
|
332
|
-
_m = "Sec-
|
|
333
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
340
|
+
_m = "Sec-Fetch-Mode";
|
|
341
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
334
342
|
case 11:
|
|
335
|
-
_l[_m] =
|
|
336
|
-
|
|
343
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
344
|
+
_12.label = 12;
|
|
337
345
|
case 12:
|
|
338
346
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
339
347
|
_o = headerParameters;
|
|
340
|
-
_p = "
|
|
341
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
348
|
+
_p = "x-csrf-token";
|
|
349
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
342
350
|
case 13:
|
|
343
|
-
_o[_p] =
|
|
344
|
-
|
|
351
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
352
|
+
_12.label = 14;
|
|
345
353
|
case 14:
|
|
346
354
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
347
355
|
_q = headerParameters;
|
|
348
|
-
_r = "x-
|
|
349
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
356
|
+
_r = "x-client-uuid";
|
|
357
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
350
358
|
case 15:
|
|
351
|
-
_q[_r] =
|
|
352
|
-
|
|
359
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
360
|
+
_12.label = 16;
|
|
353
361
|
case 16:
|
|
354
|
-
if (!(this.configuration && this.configuration.
|
|
355
|
-
_s = headerParameters;
|
|
356
|
-
_t = "x-guest-token";
|
|
357
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
358
|
-
case 17:
|
|
359
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
360
|
-
_10.label = 18;
|
|
361
|
-
case 18:
|
|
362
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
362
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
363
363
|
token = this.configuration.accessToken;
|
|
364
364
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
365
|
-
case
|
|
366
|
-
tokenString =
|
|
365
|
+
case 17:
|
|
366
|
+
tokenString = _12.sent();
|
|
367
367
|
if (tokenString) {
|
|
368
368
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
_12.label = 18;
|
|
371
|
+
case 18:
|
|
372
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
373
|
+
_s = headerParameters;
|
|
374
|
+
_t = "x-guest-token";
|
|
375
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
376
|
+
case 19:
|
|
377
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
378
|
+
_12.label = 20;
|
|
371
379
|
case 20:
|
|
372
380
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
373
381
|
_u = headerParameters;
|
|
374
382
|
_v = "Sec-Ch-Ua";
|
|
375
383
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
376
384
|
case 21:
|
|
377
|
-
_u[_v] =
|
|
378
|
-
|
|
385
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
386
|
+
_12.label = 22;
|
|
379
387
|
case 22:
|
|
380
388
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
381
389
|
_w = headerParameters;
|
|
382
|
-
_x = "x-
|
|
383
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
390
|
+
_x = "x-client-transaction-id";
|
|
391
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
384
392
|
case 23:
|
|
385
|
-
_w[_x] =
|
|
386
|
-
|
|
393
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
394
|
+
_12.label = 24;
|
|
387
395
|
case 24:
|
|
388
396
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
389
397
|
_y = headerParameters;
|
|
390
|
-
_z = "user
|
|
391
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
398
|
+
_z = "x-twitter-active-user";
|
|
399
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
392
400
|
case 25:
|
|
393
|
-
_y[_z] =
|
|
394
|
-
|
|
401
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
402
|
+
_12.label = 26;
|
|
395
403
|
case 26:
|
|
396
404
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
397
405
|
_0 = headerParameters;
|
|
398
|
-
_1 = "
|
|
399
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
406
|
+
_1 = "user-agent";
|
|
407
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
400
408
|
case 27:
|
|
401
|
-
_0[_1] =
|
|
402
|
-
|
|
409
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
410
|
+
_12.label = 28;
|
|
403
411
|
case 28:
|
|
404
412
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
405
413
|
_2 = headerParameters;
|
|
406
|
-
_3 = "
|
|
407
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
414
|
+
_3 = "Accept-Language";
|
|
415
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
408
416
|
case 29:
|
|
409
|
-
_2[_3] =
|
|
410
|
-
|
|
417
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
418
|
+
_12.label = 30;
|
|
411
419
|
case 30:
|
|
412
420
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
413
421
|
_4 = headerParameters;
|
|
414
|
-
_5 = "
|
|
415
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
422
|
+
_5 = "Sec-Fetch-Site";
|
|
423
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
416
424
|
case 31:
|
|
417
|
-
_4[_5] =
|
|
418
|
-
|
|
425
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
426
|
+
_12.label = 32;
|
|
419
427
|
case 32:
|
|
420
428
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
421
429
|
_6 = headerParameters;
|
|
422
|
-
_7 = "
|
|
423
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
430
|
+
_7 = "x-twitter-auth-type";
|
|
431
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
424
432
|
case 33:
|
|
425
|
-
_6[_7] =
|
|
426
|
-
|
|
433
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
434
|
+
_12.label = 34;
|
|
427
435
|
case 34:
|
|
428
436
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
429
437
|
_8 = headerParameters;
|
|
430
|
-
_9 = "
|
|
431
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
438
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
439
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
432
440
|
case 35:
|
|
433
|
-
_8[_9] =
|
|
434
|
-
|
|
435
|
-
case 36:
|
|
441
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
442
|
+
_12.label = 36;
|
|
443
|
+
case 36:
|
|
444
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
445
|
+
_10 = headerParameters;
|
|
446
|
+
_11 = "Accept-Encoding";
|
|
447
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
448
|
+
case 37:
|
|
449
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
450
|
+
_12.label = 38;
|
|
451
|
+
case 38: return [4 /*yield*/, this.request({
|
|
436
452
|
path: "/graphql/{pathQueryId}/CreateRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
437
453
|
method: 'POST',
|
|
438
454
|
headers: headerParameters,
|
|
439
455
|
query: queryParameters,
|
|
440
456
|
body: (0, index_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
|
|
441
457
|
}, initOverrides)];
|
|
442
|
-
case
|
|
443
|
-
response =
|
|
444
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
458
|
+
case 39:
|
|
459
|
+
response = _12.sent();
|
|
460
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateRetweetResponseFromJSON)(jsonValue); })];
|
|
445
461
|
}
|
|
446
462
|
});
|
|
447
463
|
});
|
|
@@ -468,9 +484,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
468
484
|
*/
|
|
469
485
|
PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
|
|
470
486
|
return __awaiter(this, void 0, void 0, function () {
|
|
471
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
472
|
-
return __generator(this, function (
|
|
473
|
-
switch (
|
|
487
|
+
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;
|
|
488
|
+
return __generator(this, function (_12) {
|
|
489
|
+
switch (_12.label) {
|
|
474
490
|
case 0:
|
|
475
491
|
if (requestParameters['pathQueryId'] == null) {
|
|
476
492
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
|
|
@@ -483,159 +499,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
483
499
|
headerParameters['Content-Type'] = 'application/json';
|
|
484
500
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
485
501
|
_a = headerParameters;
|
|
486
|
-
_b = "
|
|
487
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
502
|
+
_b = "Accept";
|
|
503
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
488
504
|
case 1:
|
|
489
|
-
_a[_b] =
|
|
490
|
-
|
|
505
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
506
|
+
_12.label = 2;
|
|
491
507
|
case 2:
|
|
492
508
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
493
509
|
_c = headerParameters;
|
|
494
|
-
_d = "
|
|
495
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
510
|
+
_d = "x-twitter-client-language";
|
|
511
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
496
512
|
case 3:
|
|
497
|
-
_c[_d] =
|
|
498
|
-
|
|
513
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
514
|
+
_12.label = 4;
|
|
499
515
|
case 4:
|
|
500
516
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
501
517
|
_e = headerParameters;
|
|
502
|
-
_f = "
|
|
503
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
518
|
+
_f = "Referer";
|
|
519
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
504
520
|
case 5:
|
|
505
|
-
_e[_f] =
|
|
506
|
-
|
|
521
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
522
|
+
_12.label = 6;
|
|
507
523
|
case 6:
|
|
508
524
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
509
525
|
_g = headerParameters;
|
|
510
526
|
_h = "Sec-Fetch-Dest";
|
|
511
527
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
512
528
|
case 7:
|
|
513
|
-
_g[_h] =
|
|
514
|
-
|
|
529
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
530
|
+
_12.label = 8;
|
|
515
531
|
case 8:
|
|
516
532
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
517
533
|
_j = headerParameters;
|
|
518
|
-
_k = "
|
|
519
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
534
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
535
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
520
536
|
case 9:
|
|
521
|
-
_j[_k] =
|
|
522
|
-
|
|
537
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
538
|
+
_12.label = 10;
|
|
523
539
|
case 10:
|
|
524
540
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
525
541
|
_l = headerParameters;
|
|
526
|
-
_m = "Sec-
|
|
527
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
542
|
+
_m = "Sec-Fetch-Mode";
|
|
543
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
528
544
|
case 11:
|
|
529
|
-
_l[_m] =
|
|
530
|
-
|
|
545
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
546
|
+
_12.label = 12;
|
|
531
547
|
case 12:
|
|
532
548
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
533
549
|
_o = headerParameters;
|
|
534
|
-
_p = "
|
|
535
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
550
|
+
_p = "x-csrf-token";
|
|
551
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
536
552
|
case 13:
|
|
537
|
-
_o[_p] =
|
|
538
|
-
|
|
553
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
554
|
+
_12.label = 14;
|
|
539
555
|
case 14:
|
|
540
556
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
541
557
|
_q = headerParameters;
|
|
542
|
-
_r = "x-
|
|
543
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
558
|
+
_r = "x-client-uuid";
|
|
559
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
544
560
|
case 15:
|
|
545
|
-
_q[_r] =
|
|
546
|
-
|
|
561
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
562
|
+
_12.label = 16;
|
|
547
563
|
case 16:
|
|
548
|
-
if (!(this.configuration && this.configuration.
|
|
549
|
-
_s = headerParameters;
|
|
550
|
-
_t = "x-guest-token";
|
|
551
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
552
|
-
case 17:
|
|
553
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
554
|
-
_10.label = 18;
|
|
555
|
-
case 18:
|
|
556
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
564
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
557
565
|
token = this.configuration.accessToken;
|
|
558
566
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
559
|
-
case
|
|
560
|
-
tokenString =
|
|
567
|
+
case 17:
|
|
568
|
+
tokenString = _12.sent();
|
|
561
569
|
if (tokenString) {
|
|
562
570
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
563
571
|
}
|
|
564
|
-
|
|
572
|
+
_12.label = 18;
|
|
573
|
+
case 18:
|
|
574
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
575
|
+
_s = headerParameters;
|
|
576
|
+
_t = "x-guest-token";
|
|
577
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
578
|
+
case 19:
|
|
579
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
580
|
+
_12.label = 20;
|
|
565
581
|
case 20:
|
|
566
582
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
567
583
|
_u = headerParameters;
|
|
568
584
|
_v = "Sec-Ch-Ua";
|
|
569
585
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
570
586
|
case 21:
|
|
571
|
-
_u[_v] =
|
|
572
|
-
|
|
587
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
588
|
+
_12.label = 22;
|
|
573
589
|
case 22:
|
|
574
590
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
575
591
|
_w = headerParameters;
|
|
576
|
-
_x = "x-
|
|
577
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
592
|
+
_x = "x-client-transaction-id";
|
|
593
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
578
594
|
case 23:
|
|
579
|
-
_w[_x] =
|
|
580
|
-
|
|
595
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
596
|
+
_12.label = 24;
|
|
581
597
|
case 24:
|
|
582
598
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
583
599
|
_y = headerParameters;
|
|
584
|
-
_z = "user
|
|
585
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
600
|
+
_z = "x-twitter-active-user";
|
|
601
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
586
602
|
case 25:
|
|
587
|
-
_y[_z] =
|
|
588
|
-
|
|
603
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
604
|
+
_12.label = 26;
|
|
589
605
|
case 26:
|
|
590
606
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
591
607
|
_0 = headerParameters;
|
|
592
|
-
_1 = "
|
|
593
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
608
|
+
_1 = "user-agent";
|
|
609
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
594
610
|
case 27:
|
|
595
|
-
_0[_1] =
|
|
596
|
-
|
|
611
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
612
|
+
_12.label = 28;
|
|
597
613
|
case 28:
|
|
598
614
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
599
615
|
_2 = headerParameters;
|
|
600
|
-
_3 = "
|
|
601
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
616
|
+
_3 = "Accept-Language";
|
|
617
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
602
618
|
case 29:
|
|
603
|
-
_2[_3] =
|
|
604
|
-
|
|
619
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
620
|
+
_12.label = 30;
|
|
605
621
|
case 30:
|
|
606
622
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
607
623
|
_4 = headerParameters;
|
|
608
|
-
_5 = "
|
|
609
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
624
|
+
_5 = "Sec-Fetch-Site";
|
|
625
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
610
626
|
case 31:
|
|
611
|
-
_4[_5] =
|
|
612
|
-
|
|
627
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
628
|
+
_12.label = 32;
|
|
613
629
|
case 32:
|
|
614
630
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
615
631
|
_6 = headerParameters;
|
|
616
|
-
_7 = "
|
|
617
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
632
|
+
_7 = "x-twitter-auth-type";
|
|
633
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
618
634
|
case 33:
|
|
619
|
-
_6[_7] =
|
|
620
|
-
|
|
635
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
636
|
+
_12.label = 34;
|
|
621
637
|
case 34:
|
|
622
638
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
623
639
|
_8 = headerParameters;
|
|
624
|
-
_9 = "
|
|
625
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
640
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
641
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
626
642
|
case 35:
|
|
627
|
-
_8[_9] =
|
|
628
|
-
|
|
629
|
-
case 36:
|
|
643
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
644
|
+
_12.label = 36;
|
|
645
|
+
case 36:
|
|
646
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
647
|
+
_10 = headerParameters;
|
|
648
|
+
_11 = "Accept-Encoding";
|
|
649
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
650
|
+
case 37:
|
|
651
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
652
|
+
_12.label = 38;
|
|
653
|
+
case 38: return [4 /*yield*/, this.request({
|
|
630
654
|
path: "/graphql/{pathQueryId}/CreateTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
631
655
|
method: 'POST',
|
|
632
656
|
headers: headerParameters,
|
|
633
657
|
query: queryParameters,
|
|
634
658
|
body: (0, index_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
|
|
635
659
|
}, initOverrides)];
|
|
636
|
-
case
|
|
637
|
-
response =
|
|
638
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
660
|
+
case 39:
|
|
661
|
+
response = _12.sent();
|
|
662
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateTweetResponseFromJSON)(jsonValue); })];
|
|
639
663
|
}
|
|
640
664
|
});
|
|
641
665
|
});
|
|
@@ -662,9 +686,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
662
686
|
*/
|
|
663
687
|
PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
|
|
664
688
|
return __awaiter(this, void 0, void 0, function () {
|
|
665
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
666
|
-
return __generator(this, function (
|
|
667
|
-
switch (
|
|
689
|
+
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;
|
|
690
|
+
return __generator(this, function (_12) {
|
|
691
|
+
switch (_12.label) {
|
|
668
692
|
case 0:
|
|
669
693
|
if (requestParameters['pathQueryId'] == null) {
|
|
670
694
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
|
|
@@ -677,159 +701,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
677
701
|
headerParameters['Content-Type'] = 'application/json';
|
|
678
702
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
679
703
|
_a = headerParameters;
|
|
680
|
-
_b = "
|
|
681
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
704
|
+
_b = "Accept";
|
|
705
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
682
706
|
case 1:
|
|
683
|
-
_a[_b] =
|
|
684
|
-
|
|
707
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
708
|
+
_12.label = 2;
|
|
685
709
|
case 2:
|
|
686
710
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
687
711
|
_c = headerParameters;
|
|
688
|
-
_d = "
|
|
689
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
712
|
+
_d = "x-twitter-client-language";
|
|
713
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
690
714
|
case 3:
|
|
691
|
-
_c[_d] =
|
|
692
|
-
|
|
715
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
716
|
+
_12.label = 4;
|
|
693
717
|
case 4:
|
|
694
718
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
695
719
|
_e = headerParameters;
|
|
696
|
-
_f = "
|
|
697
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
720
|
+
_f = "Referer";
|
|
721
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
698
722
|
case 5:
|
|
699
|
-
_e[_f] =
|
|
700
|
-
|
|
723
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
724
|
+
_12.label = 6;
|
|
701
725
|
case 6:
|
|
702
726
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
703
727
|
_g = headerParameters;
|
|
704
728
|
_h = "Sec-Fetch-Dest";
|
|
705
729
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
706
730
|
case 7:
|
|
707
|
-
_g[_h] =
|
|
708
|
-
|
|
731
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
732
|
+
_12.label = 8;
|
|
709
733
|
case 8:
|
|
710
734
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
711
735
|
_j = headerParameters;
|
|
712
|
-
_k = "
|
|
713
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
736
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
737
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
714
738
|
case 9:
|
|
715
|
-
_j[_k] =
|
|
716
|
-
|
|
739
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
740
|
+
_12.label = 10;
|
|
717
741
|
case 10:
|
|
718
742
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
719
743
|
_l = headerParameters;
|
|
720
|
-
_m = "Sec-
|
|
721
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
744
|
+
_m = "Sec-Fetch-Mode";
|
|
745
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
722
746
|
case 11:
|
|
723
|
-
_l[_m] =
|
|
724
|
-
|
|
747
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
748
|
+
_12.label = 12;
|
|
725
749
|
case 12:
|
|
726
750
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
727
751
|
_o = headerParameters;
|
|
728
|
-
_p = "
|
|
729
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
752
|
+
_p = "x-csrf-token";
|
|
753
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
730
754
|
case 13:
|
|
731
|
-
_o[_p] =
|
|
732
|
-
|
|
755
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
756
|
+
_12.label = 14;
|
|
733
757
|
case 14:
|
|
734
758
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
735
759
|
_q = headerParameters;
|
|
736
|
-
_r = "x-
|
|
737
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
760
|
+
_r = "x-client-uuid";
|
|
761
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
738
762
|
case 15:
|
|
739
|
-
_q[_r] =
|
|
740
|
-
|
|
763
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
764
|
+
_12.label = 16;
|
|
741
765
|
case 16:
|
|
742
|
-
if (!(this.configuration && this.configuration.
|
|
743
|
-
_s = headerParameters;
|
|
744
|
-
_t = "x-guest-token";
|
|
745
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
746
|
-
case 17:
|
|
747
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
748
|
-
_10.label = 18;
|
|
749
|
-
case 18:
|
|
750
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
766
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
751
767
|
token = this.configuration.accessToken;
|
|
752
768
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
753
|
-
case
|
|
754
|
-
tokenString =
|
|
769
|
+
case 17:
|
|
770
|
+
tokenString = _12.sent();
|
|
755
771
|
if (tokenString) {
|
|
756
772
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
757
773
|
}
|
|
758
|
-
|
|
774
|
+
_12.label = 18;
|
|
775
|
+
case 18:
|
|
776
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
777
|
+
_s = headerParameters;
|
|
778
|
+
_t = "x-guest-token";
|
|
779
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
780
|
+
case 19:
|
|
781
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
782
|
+
_12.label = 20;
|
|
759
783
|
case 20:
|
|
760
784
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
761
785
|
_u = headerParameters;
|
|
762
786
|
_v = "Sec-Ch-Ua";
|
|
763
787
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
764
788
|
case 21:
|
|
765
|
-
_u[_v] =
|
|
766
|
-
|
|
789
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
790
|
+
_12.label = 22;
|
|
767
791
|
case 22:
|
|
768
792
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
769
793
|
_w = headerParameters;
|
|
770
|
-
_x = "x-
|
|
771
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
794
|
+
_x = "x-client-transaction-id";
|
|
795
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
772
796
|
case 23:
|
|
773
|
-
_w[_x] =
|
|
774
|
-
|
|
797
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
798
|
+
_12.label = 24;
|
|
775
799
|
case 24:
|
|
776
800
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
777
801
|
_y = headerParameters;
|
|
778
|
-
_z = "user
|
|
779
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
802
|
+
_z = "x-twitter-active-user";
|
|
803
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
780
804
|
case 25:
|
|
781
|
-
_y[_z] =
|
|
782
|
-
|
|
805
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
806
|
+
_12.label = 26;
|
|
783
807
|
case 26:
|
|
784
808
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
785
809
|
_0 = headerParameters;
|
|
786
|
-
_1 = "
|
|
787
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
810
|
+
_1 = "user-agent";
|
|
811
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
788
812
|
case 27:
|
|
789
|
-
_0[_1] =
|
|
790
|
-
|
|
813
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
814
|
+
_12.label = 28;
|
|
791
815
|
case 28:
|
|
792
816
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
793
817
|
_2 = headerParameters;
|
|
794
|
-
_3 = "
|
|
795
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
818
|
+
_3 = "Accept-Language";
|
|
819
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
796
820
|
case 29:
|
|
797
|
-
_2[_3] =
|
|
798
|
-
|
|
821
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
822
|
+
_12.label = 30;
|
|
799
823
|
case 30:
|
|
800
824
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
801
825
|
_4 = headerParameters;
|
|
802
|
-
_5 = "
|
|
803
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
826
|
+
_5 = "Sec-Fetch-Site";
|
|
827
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
804
828
|
case 31:
|
|
805
|
-
_4[_5] =
|
|
806
|
-
|
|
829
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
830
|
+
_12.label = 32;
|
|
807
831
|
case 32:
|
|
808
832
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
809
833
|
_6 = headerParameters;
|
|
810
|
-
_7 = "
|
|
811
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
834
|
+
_7 = "x-twitter-auth-type";
|
|
835
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
812
836
|
case 33:
|
|
813
|
-
_6[_7] =
|
|
814
|
-
|
|
837
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
838
|
+
_12.label = 34;
|
|
815
839
|
case 34:
|
|
816
840
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
817
841
|
_8 = headerParameters;
|
|
818
|
-
_9 = "
|
|
819
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
842
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
843
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
820
844
|
case 35:
|
|
821
|
-
_8[_9] =
|
|
822
|
-
|
|
823
|
-
case 36:
|
|
845
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
846
|
+
_12.label = 36;
|
|
847
|
+
case 36:
|
|
848
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
849
|
+
_10 = headerParameters;
|
|
850
|
+
_11 = "Accept-Encoding";
|
|
851
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
852
|
+
case 37:
|
|
853
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
854
|
+
_12.label = 38;
|
|
855
|
+
case 38: return [4 /*yield*/, this.request({
|
|
824
856
|
path: "/graphql/{pathQueryId}/DeleteBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
825
857
|
method: 'POST',
|
|
826
858
|
headers: headerParameters,
|
|
827
859
|
query: queryParameters,
|
|
828
860
|
body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
|
|
829
861
|
}, initOverrides)];
|
|
830
|
-
case
|
|
831
|
-
response =
|
|
832
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
862
|
+
case 39:
|
|
863
|
+
response = _12.sent();
|
|
864
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteBookmarkResponseFromJSON)(jsonValue); })];
|
|
833
865
|
}
|
|
834
866
|
});
|
|
835
867
|
});
|
|
@@ -856,9 +888,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
856
888
|
*/
|
|
857
889
|
PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
|
|
858
890
|
return __awaiter(this, void 0, void 0, function () {
|
|
859
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
860
|
-
return __generator(this, function (
|
|
861
|
-
switch (
|
|
891
|
+
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;
|
|
892
|
+
return __generator(this, function (_12) {
|
|
893
|
+
switch (_12.label) {
|
|
862
894
|
case 0:
|
|
863
895
|
if (requestParameters['pathQueryId'] == null) {
|
|
864
896
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
|
|
@@ -871,159 +903,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
871
903
|
headerParameters['Content-Type'] = 'application/json';
|
|
872
904
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
873
905
|
_a = headerParameters;
|
|
874
|
-
_b = "
|
|
875
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
906
|
+
_b = "Accept";
|
|
907
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
876
908
|
case 1:
|
|
877
|
-
_a[_b] =
|
|
878
|
-
|
|
909
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
910
|
+
_12.label = 2;
|
|
879
911
|
case 2:
|
|
880
912
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
881
913
|
_c = headerParameters;
|
|
882
|
-
_d = "
|
|
883
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
914
|
+
_d = "x-twitter-client-language";
|
|
915
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
884
916
|
case 3:
|
|
885
|
-
_c[_d] =
|
|
886
|
-
|
|
917
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
918
|
+
_12.label = 4;
|
|
887
919
|
case 4:
|
|
888
920
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
889
921
|
_e = headerParameters;
|
|
890
|
-
_f = "
|
|
891
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
922
|
+
_f = "Referer";
|
|
923
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
892
924
|
case 5:
|
|
893
|
-
_e[_f] =
|
|
894
|
-
|
|
925
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
926
|
+
_12.label = 6;
|
|
895
927
|
case 6:
|
|
896
928
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
897
929
|
_g = headerParameters;
|
|
898
930
|
_h = "Sec-Fetch-Dest";
|
|
899
931
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
900
932
|
case 7:
|
|
901
|
-
_g[_h] =
|
|
902
|
-
|
|
933
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
934
|
+
_12.label = 8;
|
|
903
935
|
case 8:
|
|
904
936
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
905
937
|
_j = headerParameters;
|
|
906
|
-
_k = "
|
|
907
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
938
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
939
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
908
940
|
case 9:
|
|
909
|
-
_j[_k] =
|
|
910
|
-
|
|
941
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
942
|
+
_12.label = 10;
|
|
911
943
|
case 10:
|
|
912
944
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
913
945
|
_l = headerParameters;
|
|
914
|
-
_m = "Sec-
|
|
915
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
946
|
+
_m = "Sec-Fetch-Mode";
|
|
947
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
916
948
|
case 11:
|
|
917
|
-
_l[_m] =
|
|
918
|
-
|
|
949
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
950
|
+
_12.label = 12;
|
|
919
951
|
case 12:
|
|
920
952
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
921
953
|
_o = headerParameters;
|
|
922
|
-
_p = "
|
|
923
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
954
|
+
_p = "x-csrf-token";
|
|
955
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
924
956
|
case 13:
|
|
925
|
-
_o[_p] =
|
|
926
|
-
|
|
957
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
958
|
+
_12.label = 14;
|
|
927
959
|
case 14:
|
|
928
960
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
929
961
|
_q = headerParameters;
|
|
930
|
-
_r = "x-
|
|
931
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
962
|
+
_r = "x-client-uuid";
|
|
963
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
932
964
|
case 15:
|
|
933
|
-
_q[_r] =
|
|
934
|
-
|
|
965
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
966
|
+
_12.label = 16;
|
|
935
967
|
case 16:
|
|
936
|
-
if (!(this.configuration && this.configuration.
|
|
937
|
-
_s = headerParameters;
|
|
938
|
-
_t = "x-guest-token";
|
|
939
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
940
|
-
case 17:
|
|
941
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
942
|
-
_10.label = 18;
|
|
943
|
-
case 18:
|
|
944
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
968
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
945
969
|
token = this.configuration.accessToken;
|
|
946
970
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
947
|
-
case
|
|
948
|
-
tokenString =
|
|
971
|
+
case 17:
|
|
972
|
+
tokenString = _12.sent();
|
|
949
973
|
if (tokenString) {
|
|
950
974
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
951
975
|
}
|
|
952
|
-
|
|
976
|
+
_12.label = 18;
|
|
977
|
+
case 18:
|
|
978
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
979
|
+
_s = headerParameters;
|
|
980
|
+
_t = "x-guest-token";
|
|
981
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
982
|
+
case 19:
|
|
983
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
984
|
+
_12.label = 20;
|
|
953
985
|
case 20:
|
|
954
986
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
955
987
|
_u = headerParameters;
|
|
956
988
|
_v = "Sec-Ch-Ua";
|
|
957
989
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
958
990
|
case 21:
|
|
959
|
-
_u[_v] =
|
|
960
|
-
|
|
991
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
992
|
+
_12.label = 22;
|
|
961
993
|
case 22:
|
|
962
994
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
963
995
|
_w = headerParameters;
|
|
964
|
-
_x = "x-
|
|
965
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
996
|
+
_x = "x-client-transaction-id";
|
|
997
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
966
998
|
case 23:
|
|
967
|
-
_w[_x] =
|
|
968
|
-
|
|
999
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
1000
|
+
_12.label = 24;
|
|
969
1001
|
case 24:
|
|
970
1002
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
971
1003
|
_y = headerParameters;
|
|
972
|
-
_z = "user
|
|
973
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1004
|
+
_z = "x-twitter-active-user";
|
|
1005
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
974
1006
|
case 25:
|
|
975
|
-
_y[_z] =
|
|
976
|
-
|
|
1007
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
1008
|
+
_12.label = 26;
|
|
977
1009
|
case 26:
|
|
978
1010
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
979
1011
|
_0 = headerParameters;
|
|
980
|
-
_1 = "
|
|
981
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1012
|
+
_1 = "user-agent";
|
|
1013
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
982
1014
|
case 27:
|
|
983
|
-
_0[_1] =
|
|
984
|
-
|
|
1015
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
1016
|
+
_12.label = 28;
|
|
985
1017
|
case 28:
|
|
986
1018
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
987
1019
|
_2 = headerParameters;
|
|
988
|
-
_3 = "
|
|
989
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1020
|
+
_3 = "Accept-Language";
|
|
1021
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
990
1022
|
case 29:
|
|
991
|
-
_2[_3] =
|
|
992
|
-
|
|
1023
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
1024
|
+
_12.label = 30;
|
|
993
1025
|
case 30:
|
|
994
1026
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
995
1027
|
_4 = headerParameters;
|
|
996
|
-
_5 = "
|
|
997
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1028
|
+
_5 = "Sec-Fetch-Site";
|
|
1029
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
998
1030
|
case 31:
|
|
999
|
-
_4[_5] =
|
|
1000
|
-
|
|
1031
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
1032
|
+
_12.label = 32;
|
|
1001
1033
|
case 32:
|
|
1002
1034
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1003
1035
|
_6 = headerParameters;
|
|
1004
|
-
_7 = "
|
|
1005
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1036
|
+
_7 = "x-twitter-auth-type";
|
|
1037
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1006
1038
|
case 33:
|
|
1007
|
-
_6[_7] =
|
|
1008
|
-
|
|
1039
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
1040
|
+
_12.label = 34;
|
|
1009
1041
|
case 34:
|
|
1010
1042
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1011
1043
|
_8 = headerParameters;
|
|
1012
|
-
_9 = "
|
|
1013
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1044
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
1045
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1014
1046
|
case 35:
|
|
1015
|
-
_8[_9] =
|
|
1016
|
-
|
|
1017
|
-
case 36:
|
|
1047
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
1048
|
+
_12.label = 36;
|
|
1049
|
+
case 36:
|
|
1050
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1051
|
+
_10 = headerParameters;
|
|
1052
|
+
_11 = "Accept-Encoding";
|
|
1053
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1054
|
+
case 37:
|
|
1055
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
1056
|
+
_12.label = 38;
|
|
1057
|
+
case 38: return [4 /*yield*/, this.request({
|
|
1018
1058
|
path: "/graphql/{pathQueryId}/DeleteRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1019
1059
|
method: 'POST',
|
|
1020
1060
|
headers: headerParameters,
|
|
1021
1061
|
query: queryParameters,
|
|
1022
1062
|
body: (0, index_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
|
|
1023
1063
|
}, initOverrides)];
|
|
1024
|
-
case
|
|
1025
|
-
response =
|
|
1026
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
1064
|
+
case 39:
|
|
1065
|
+
response = _12.sent();
|
|
1066
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteRetweetResponseFromJSON)(jsonValue); })];
|
|
1027
1067
|
}
|
|
1028
1068
|
});
|
|
1029
1069
|
});
|
|
@@ -1050,9 +1090,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1050
1090
|
*/
|
|
1051
1091
|
PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
|
|
1052
1092
|
return __awaiter(this, void 0, void 0, function () {
|
|
1053
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1054
|
-
return __generator(this, function (
|
|
1055
|
-
switch (
|
|
1093
|
+
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;
|
|
1094
|
+
return __generator(this, function (_12) {
|
|
1095
|
+
switch (_12.label) {
|
|
1056
1096
|
case 0:
|
|
1057
1097
|
if (requestParameters['pathQueryId'] == null) {
|
|
1058
1098
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
|
|
@@ -1065,159 +1105,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1065
1105
|
headerParameters['Content-Type'] = 'application/json';
|
|
1066
1106
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1067
1107
|
_a = headerParameters;
|
|
1068
|
-
_b = "
|
|
1069
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1108
|
+
_b = "Accept";
|
|
1109
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1070
1110
|
case 1:
|
|
1071
|
-
_a[_b] =
|
|
1072
|
-
|
|
1111
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
1112
|
+
_12.label = 2;
|
|
1073
1113
|
case 2:
|
|
1074
1114
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1075
1115
|
_c = headerParameters;
|
|
1076
|
-
_d = "
|
|
1077
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1116
|
+
_d = "x-twitter-client-language";
|
|
1117
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1078
1118
|
case 3:
|
|
1079
|
-
_c[_d] =
|
|
1080
|
-
|
|
1119
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
1120
|
+
_12.label = 4;
|
|
1081
1121
|
case 4:
|
|
1082
1122
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1083
1123
|
_e = headerParameters;
|
|
1084
|
-
_f = "
|
|
1085
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1124
|
+
_f = "Referer";
|
|
1125
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1086
1126
|
case 5:
|
|
1087
|
-
_e[_f] =
|
|
1088
|
-
|
|
1127
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
1128
|
+
_12.label = 6;
|
|
1089
1129
|
case 6:
|
|
1090
1130
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1091
1131
|
_g = headerParameters;
|
|
1092
1132
|
_h = "Sec-Fetch-Dest";
|
|
1093
1133
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1094
1134
|
case 7:
|
|
1095
|
-
_g[_h] =
|
|
1096
|
-
|
|
1135
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
1136
|
+
_12.label = 8;
|
|
1097
1137
|
case 8:
|
|
1098
1138
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1099
1139
|
_j = headerParameters;
|
|
1100
|
-
_k = "
|
|
1101
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1140
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
1141
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1102
1142
|
case 9:
|
|
1103
|
-
_j[_k] =
|
|
1104
|
-
|
|
1143
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
1144
|
+
_12.label = 10;
|
|
1105
1145
|
case 10:
|
|
1106
1146
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1107
1147
|
_l = headerParameters;
|
|
1108
|
-
_m = "Sec-
|
|
1109
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1148
|
+
_m = "Sec-Fetch-Mode";
|
|
1149
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1110
1150
|
case 11:
|
|
1111
|
-
_l[_m] =
|
|
1112
|
-
|
|
1151
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
1152
|
+
_12.label = 12;
|
|
1113
1153
|
case 12:
|
|
1114
1154
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1115
1155
|
_o = headerParameters;
|
|
1116
|
-
_p = "
|
|
1117
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1156
|
+
_p = "x-csrf-token";
|
|
1157
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1118
1158
|
case 13:
|
|
1119
|
-
_o[_p] =
|
|
1120
|
-
|
|
1159
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
1160
|
+
_12.label = 14;
|
|
1121
1161
|
case 14:
|
|
1122
1162
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1123
1163
|
_q = headerParameters;
|
|
1124
|
-
_r = "x-
|
|
1125
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1164
|
+
_r = "x-client-uuid";
|
|
1165
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1126
1166
|
case 15:
|
|
1127
|
-
_q[_r] =
|
|
1128
|
-
|
|
1167
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
1168
|
+
_12.label = 16;
|
|
1129
1169
|
case 16:
|
|
1130
|
-
if (!(this.configuration && this.configuration.
|
|
1131
|
-
_s = headerParameters;
|
|
1132
|
-
_t = "x-guest-token";
|
|
1133
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1134
|
-
case 17:
|
|
1135
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
1136
|
-
_10.label = 18;
|
|
1137
|
-
case 18:
|
|
1138
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1170
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
1139
1171
|
token = this.configuration.accessToken;
|
|
1140
1172
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1141
|
-
case
|
|
1142
|
-
tokenString =
|
|
1173
|
+
case 17:
|
|
1174
|
+
tokenString = _12.sent();
|
|
1143
1175
|
if (tokenString) {
|
|
1144
1176
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1145
1177
|
}
|
|
1146
|
-
|
|
1178
|
+
_12.label = 18;
|
|
1179
|
+
case 18:
|
|
1180
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1181
|
+
_s = headerParameters;
|
|
1182
|
+
_t = "x-guest-token";
|
|
1183
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1184
|
+
case 19:
|
|
1185
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1186
|
+
_12.label = 20;
|
|
1147
1187
|
case 20:
|
|
1148
1188
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1149
1189
|
_u = headerParameters;
|
|
1150
1190
|
_v = "Sec-Ch-Ua";
|
|
1151
1191
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1152
1192
|
case 21:
|
|
1153
|
-
_u[_v] =
|
|
1154
|
-
|
|
1193
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
1194
|
+
_12.label = 22;
|
|
1155
1195
|
case 22:
|
|
1156
1196
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1157
1197
|
_w = headerParameters;
|
|
1158
|
-
_x = "x-
|
|
1159
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1198
|
+
_x = "x-client-transaction-id";
|
|
1199
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1160
1200
|
case 23:
|
|
1161
|
-
_w[_x] =
|
|
1162
|
-
|
|
1201
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
1202
|
+
_12.label = 24;
|
|
1163
1203
|
case 24:
|
|
1164
1204
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1165
1205
|
_y = headerParameters;
|
|
1166
|
-
_z = "user
|
|
1167
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1206
|
+
_z = "x-twitter-active-user";
|
|
1207
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1168
1208
|
case 25:
|
|
1169
|
-
_y[_z] =
|
|
1170
|
-
|
|
1209
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
1210
|
+
_12.label = 26;
|
|
1171
1211
|
case 26:
|
|
1172
1212
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1173
1213
|
_0 = headerParameters;
|
|
1174
|
-
_1 = "
|
|
1175
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1214
|
+
_1 = "user-agent";
|
|
1215
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1176
1216
|
case 27:
|
|
1177
|
-
_0[_1] =
|
|
1178
|
-
|
|
1217
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
1218
|
+
_12.label = 28;
|
|
1179
1219
|
case 28:
|
|
1180
1220
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1181
1221
|
_2 = headerParameters;
|
|
1182
|
-
_3 = "
|
|
1183
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1222
|
+
_3 = "Accept-Language";
|
|
1223
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1184
1224
|
case 29:
|
|
1185
|
-
_2[_3] =
|
|
1186
|
-
|
|
1225
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
1226
|
+
_12.label = 30;
|
|
1187
1227
|
case 30:
|
|
1188
1228
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1189
1229
|
_4 = headerParameters;
|
|
1190
|
-
_5 = "
|
|
1191
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1230
|
+
_5 = "Sec-Fetch-Site";
|
|
1231
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1192
1232
|
case 31:
|
|
1193
|
-
_4[_5] =
|
|
1194
|
-
|
|
1233
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
1234
|
+
_12.label = 32;
|
|
1195
1235
|
case 32:
|
|
1196
1236
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1197
1237
|
_6 = headerParameters;
|
|
1198
|
-
_7 = "
|
|
1199
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1238
|
+
_7 = "x-twitter-auth-type";
|
|
1239
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1200
1240
|
case 33:
|
|
1201
|
-
_6[_7] =
|
|
1202
|
-
|
|
1241
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
1242
|
+
_12.label = 34;
|
|
1203
1243
|
case 34:
|
|
1204
1244
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1205
1245
|
_8 = headerParameters;
|
|
1206
|
-
_9 = "
|
|
1207
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1246
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
1247
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1208
1248
|
case 35:
|
|
1209
|
-
_8[_9] =
|
|
1210
|
-
|
|
1211
|
-
case 36:
|
|
1249
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
1250
|
+
_12.label = 36;
|
|
1251
|
+
case 36:
|
|
1252
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1253
|
+
_10 = headerParameters;
|
|
1254
|
+
_11 = "Accept-Encoding";
|
|
1255
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1256
|
+
case 37:
|
|
1257
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
1258
|
+
_12.label = 38;
|
|
1259
|
+
case 38: return [4 /*yield*/, this.request({
|
|
1212
1260
|
path: "/graphql/{pathQueryId}/DeleteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1213
1261
|
method: 'POST',
|
|
1214
1262
|
headers: headerParameters,
|
|
1215
1263
|
query: queryParameters,
|
|
1216
1264
|
body: (0, index_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
|
|
1217
1265
|
}, initOverrides)];
|
|
1218
|
-
case
|
|
1219
|
-
response =
|
|
1220
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
1266
|
+
case 39:
|
|
1267
|
+
response = _12.sent();
|
|
1268
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteTweetResponseFromJSON)(jsonValue); })];
|
|
1221
1269
|
}
|
|
1222
1270
|
});
|
|
1223
1271
|
});
|
|
@@ -1244,9 +1292,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1244
1292
|
*/
|
|
1245
1293
|
PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
1246
1294
|
return __awaiter(this, void 0, void 0, function () {
|
|
1247
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1248
|
-
return __generator(this, function (
|
|
1249
|
-
switch (
|
|
1295
|
+
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;
|
|
1296
|
+
return __generator(this, function (_12) {
|
|
1297
|
+
switch (_12.label) {
|
|
1250
1298
|
case 0:
|
|
1251
1299
|
if (requestParameters['pathQueryId'] == null) {
|
|
1252
1300
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
|
|
@@ -1259,159 +1307,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1259
1307
|
headerParameters['Content-Type'] = 'application/json';
|
|
1260
1308
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1261
1309
|
_a = headerParameters;
|
|
1262
|
-
_b = "
|
|
1263
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1310
|
+
_b = "Accept";
|
|
1311
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1264
1312
|
case 1:
|
|
1265
|
-
_a[_b] =
|
|
1266
|
-
|
|
1313
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
1314
|
+
_12.label = 2;
|
|
1267
1315
|
case 2:
|
|
1268
1316
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1269
1317
|
_c = headerParameters;
|
|
1270
|
-
_d = "
|
|
1271
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1318
|
+
_d = "x-twitter-client-language";
|
|
1319
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1272
1320
|
case 3:
|
|
1273
|
-
_c[_d] =
|
|
1274
|
-
|
|
1321
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
1322
|
+
_12.label = 4;
|
|
1275
1323
|
case 4:
|
|
1276
1324
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1277
1325
|
_e = headerParameters;
|
|
1278
|
-
_f = "
|
|
1279
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1326
|
+
_f = "Referer";
|
|
1327
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1280
1328
|
case 5:
|
|
1281
|
-
_e[_f] =
|
|
1282
|
-
|
|
1329
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
1330
|
+
_12.label = 6;
|
|
1283
1331
|
case 6:
|
|
1284
1332
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1285
1333
|
_g = headerParameters;
|
|
1286
1334
|
_h = "Sec-Fetch-Dest";
|
|
1287
1335
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1288
1336
|
case 7:
|
|
1289
|
-
_g[_h] =
|
|
1290
|
-
|
|
1337
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
1338
|
+
_12.label = 8;
|
|
1291
1339
|
case 8:
|
|
1292
1340
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1293
1341
|
_j = headerParameters;
|
|
1294
|
-
_k = "
|
|
1295
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1342
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
1343
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1296
1344
|
case 9:
|
|
1297
|
-
_j[_k] =
|
|
1298
|
-
|
|
1345
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
1346
|
+
_12.label = 10;
|
|
1299
1347
|
case 10:
|
|
1300
1348
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1301
1349
|
_l = headerParameters;
|
|
1302
|
-
_m = "Sec-
|
|
1303
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1350
|
+
_m = "Sec-Fetch-Mode";
|
|
1351
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1304
1352
|
case 11:
|
|
1305
|
-
_l[_m] =
|
|
1306
|
-
|
|
1353
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
1354
|
+
_12.label = 12;
|
|
1307
1355
|
case 12:
|
|
1308
1356
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1309
1357
|
_o = headerParameters;
|
|
1310
|
-
_p = "
|
|
1311
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1358
|
+
_p = "x-csrf-token";
|
|
1359
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1312
1360
|
case 13:
|
|
1313
|
-
_o[_p] =
|
|
1314
|
-
|
|
1361
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
1362
|
+
_12.label = 14;
|
|
1315
1363
|
case 14:
|
|
1316
1364
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1317
1365
|
_q = headerParameters;
|
|
1318
|
-
_r = "x-
|
|
1319
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1366
|
+
_r = "x-client-uuid";
|
|
1367
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1320
1368
|
case 15:
|
|
1321
|
-
_q[_r] =
|
|
1322
|
-
|
|
1369
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
1370
|
+
_12.label = 16;
|
|
1323
1371
|
case 16:
|
|
1324
|
-
if (!(this.configuration && this.configuration.
|
|
1325
|
-
_s = headerParameters;
|
|
1326
|
-
_t = "x-guest-token";
|
|
1327
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1328
|
-
case 17:
|
|
1329
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
1330
|
-
_10.label = 18;
|
|
1331
|
-
case 18:
|
|
1332
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1372
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
1333
1373
|
token = this.configuration.accessToken;
|
|
1334
1374
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1335
|
-
case
|
|
1336
|
-
tokenString =
|
|
1375
|
+
case 17:
|
|
1376
|
+
tokenString = _12.sent();
|
|
1337
1377
|
if (tokenString) {
|
|
1338
1378
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1339
1379
|
}
|
|
1340
|
-
|
|
1380
|
+
_12.label = 18;
|
|
1381
|
+
case 18:
|
|
1382
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1383
|
+
_s = headerParameters;
|
|
1384
|
+
_t = "x-guest-token";
|
|
1385
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1386
|
+
case 19:
|
|
1387
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1388
|
+
_12.label = 20;
|
|
1341
1389
|
case 20:
|
|
1342
1390
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1343
1391
|
_u = headerParameters;
|
|
1344
1392
|
_v = "Sec-Ch-Ua";
|
|
1345
1393
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1346
1394
|
case 21:
|
|
1347
|
-
_u[_v] =
|
|
1348
|
-
|
|
1395
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
1396
|
+
_12.label = 22;
|
|
1349
1397
|
case 22:
|
|
1350
1398
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1351
1399
|
_w = headerParameters;
|
|
1352
|
-
_x = "x-
|
|
1353
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1400
|
+
_x = "x-client-transaction-id";
|
|
1401
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1354
1402
|
case 23:
|
|
1355
|
-
_w[_x] =
|
|
1356
|
-
|
|
1403
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
1404
|
+
_12.label = 24;
|
|
1357
1405
|
case 24:
|
|
1358
1406
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1359
1407
|
_y = headerParameters;
|
|
1360
|
-
_z = "user
|
|
1361
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1408
|
+
_z = "x-twitter-active-user";
|
|
1409
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1362
1410
|
case 25:
|
|
1363
|
-
_y[_z] =
|
|
1364
|
-
|
|
1411
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
1412
|
+
_12.label = 26;
|
|
1365
1413
|
case 26:
|
|
1366
1414
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1367
1415
|
_0 = headerParameters;
|
|
1368
|
-
_1 = "
|
|
1369
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1416
|
+
_1 = "user-agent";
|
|
1417
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1370
1418
|
case 27:
|
|
1371
|
-
_0[_1] =
|
|
1372
|
-
|
|
1419
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
1420
|
+
_12.label = 28;
|
|
1373
1421
|
case 28:
|
|
1374
1422
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1375
1423
|
_2 = headerParameters;
|
|
1376
|
-
_3 = "
|
|
1377
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1424
|
+
_3 = "Accept-Language";
|
|
1425
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1378
1426
|
case 29:
|
|
1379
|
-
_2[_3] =
|
|
1380
|
-
|
|
1427
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
1428
|
+
_12.label = 30;
|
|
1381
1429
|
case 30:
|
|
1382
1430
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1383
1431
|
_4 = headerParameters;
|
|
1384
|
-
_5 = "
|
|
1385
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1432
|
+
_5 = "Sec-Fetch-Site";
|
|
1433
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1386
1434
|
case 31:
|
|
1387
|
-
_4[_5] =
|
|
1388
|
-
|
|
1435
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
1436
|
+
_12.label = 32;
|
|
1389
1437
|
case 32:
|
|
1390
1438
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1391
1439
|
_6 = headerParameters;
|
|
1392
|
-
_7 = "
|
|
1393
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1440
|
+
_7 = "x-twitter-auth-type";
|
|
1441
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1394
1442
|
case 33:
|
|
1395
|
-
_6[_7] =
|
|
1396
|
-
|
|
1443
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
1444
|
+
_12.label = 34;
|
|
1397
1445
|
case 34:
|
|
1398
1446
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1399
1447
|
_8 = headerParameters;
|
|
1400
|
-
_9 = "
|
|
1401
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1448
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
1449
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1402
1450
|
case 35:
|
|
1403
|
-
_8[_9] =
|
|
1404
|
-
|
|
1405
|
-
case 36:
|
|
1451
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
1452
|
+
_12.label = 36;
|
|
1453
|
+
case 36:
|
|
1454
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1455
|
+
_10 = headerParameters;
|
|
1456
|
+
_11 = "Accept-Encoding";
|
|
1457
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1458
|
+
case 37:
|
|
1459
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
1460
|
+
_12.label = 38;
|
|
1461
|
+
case 38: return [4 /*yield*/, this.request({
|
|
1406
1462
|
path: "/graphql/{pathQueryId}/FavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1407
1463
|
method: 'POST',
|
|
1408
1464
|
headers: headerParameters,
|
|
1409
1465
|
query: queryParameters,
|
|
1410
1466
|
body: (0, index_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
|
|
1411
1467
|
}, initOverrides)];
|
|
1412
|
-
case
|
|
1413
|
-
response =
|
|
1414
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
1468
|
+
case 39:
|
|
1469
|
+
response = _12.sent();
|
|
1470
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FavoriteTweetResponseFromJSON)(jsonValue); })];
|
|
1415
1471
|
}
|
|
1416
1472
|
});
|
|
1417
1473
|
});
|
|
@@ -1438,9 +1494,9 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1438
1494
|
*/
|
|
1439
1495
|
PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
1440
1496
|
return __awaiter(this, void 0, void 0, function () {
|
|
1441
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1442
|
-
return __generator(this, function (
|
|
1443
|
-
switch (
|
|
1497
|
+
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;
|
|
1498
|
+
return __generator(this, function (_12) {
|
|
1499
|
+
switch (_12.label) {
|
|
1444
1500
|
case 0:
|
|
1445
1501
|
if (requestParameters['pathQueryId'] == null) {
|
|
1446
1502
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
|
|
@@ -1453,159 +1509,167 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1453
1509
|
headerParameters['Content-Type'] = 'application/json';
|
|
1454
1510
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
1455
1511
|
_a = headerParameters;
|
|
1456
|
-
_b = "
|
|
1457
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1512
|
+
_b = "Accept";
|
|
1513
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1458
1514
|
case 1:
|
|
1459
|
-
_a[_b] =
|
|
1460
|
-
|
|
1515
|
+
_a[_b] = _12.sent(); // Accept authentication
|
|
1516
|
+
_12.label = 2;
|
|
1461
1517
|
case 2:
|
|
1462
1518
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1463
1519
|
_c = headerParameters;
|
|
1464
|
-
_d = "
|
|
1465
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1520
|
+
_d = "x-twitter-client-language";
|
|
1521
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1466
1522
|
case 3:
|
|
1467
|
-
_c[_d] =
|
|
1468
|
-
|
|
1523
|
+
_c[_d] = _12.sent(); // ClientLanguage authentication
|
|
1524
|
+
_12.label = 4;
|
|
1469
1525
|
case 4:
|
|
1470
1526
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1471
1527
|
_e = headerParameters;
|
|
1472
|
-
_f = "
|
|
1473
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1528
|
+
_f = "Referer";
|
|
1529
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1474
1530
|
case 5:
|
|
1475
|
-
_e[_f] =
|
|
1476
|
-
|
|
1531
|
+
_e[_f] = _12.sent(); // Referer authentication
|
|
1532
|
+
_12.label = 6;
|
|
1477
1533
|
case 6:
|
|
1478
1534
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1479
1535
|
_g = headerParameters;
|
|
1480
1536
|
_h = "Sec-Fetch-Dest";
|
|
1481
1537
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1482
1538
|
case 7:
|
|
1483
|
-
_g[_h] =
|
|
1484
|
-
|
|
1539
|
+
_g[_h] = _12.sent(); // SecFetchDest authentication
|
|
1540
|
+
_12.label = 8;
|
|
1485
1541
|
case 8:
|
|
1486
1542
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1487
1543
|
_j = headerParameters;
|
|
1488
|
-
_k = "
|
|
1489
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1544
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
1545
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1490
1546
|
case 9:
|
|
1491
|
-
_j[_k] =
|
|
1492
|
-
|
|
1547
|
+
_j[_k] = _12.sent(); // SecChUaPlatform authentication
|
|
1548
|
+
_12.label = 10;
|
|
1493
1549
|
case 10:
|
|
1494
1550
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1495
1551
|
_l = headerParameters;
|
|
1496
|
-
_m = "Sec-
|
|
1497
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1552
|
+
_m = "Sec-Fetch-Mode";
|
|
1553
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1498
1554
|
case 11:
|
|
1499
|
-
_l[_m] =
|
|
1500
|
-
|
|
1555
|
+
_l[_m] = _12.sent(); // SecFetchMode authentication
|
|
1556
|
+
_12.label = 12;
|
|
1501
1557
|
case 12:
|
|
1502
1558
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1503
1559
|
_o = headerParameters;
|
|
1504
|
-
_p = "
|
|
1505
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1560
|
+
_p = "x-csrf-token";
|
|
1561
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1506
1562
|
case 13:
|
|
1507
|
-
_o[_p] =
|
|
1508
|
-
|
|
1563
|
+
_o[_p] = _12.sent(); // CsrfToken authentication
|
|
1564
|
+
_12.label = 14;
|
|
1509
1565
|
case 14:
|
|
1510
1566
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1511
1567
|
_q = headerParameters;
|
|
1512
|
-
_r = "x-
|
|
1513
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1568
|
+
_r = "x-client-uuid";
|
|
1569
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1514
1570
|
case 15:
|
|
1515
|
-
_q[_r] =
|
|
1516
|
-
|
|
1571
|
+
_q[_r] = _12.sent(); // ClientUuid authentication
|
|
1572
|
+
_12.label = 16;
|
|
1517
1573
|
case 16:
|
|
1518
|
-
if (!(this.configuration && this.configuration.
|
|
1519
|
-
_s = headerParameters;
|
|
1520
|
-
_t = "x-guest-token";
|
|
1521
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1522
|
-
case 17:
|
|
1523
|
-
_s[_t] = _10.sent(); // GuestToken authentication
|
|
1524
|
-
_10.label = 18;
|
|
1525
|
-
case 18:
|
|
1526
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1574
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
1527
1575
|
token = this.configuration.accessToken;
|
|
1528
1576
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1529
|
-
case
|
|
1530
|
-
tokenString =
|
|
1577
|
+
case 17:
|
|
1578
|
+
tokenString = _12.sent();
|
|
1531
1579
|
if (tokenString) {
|
|
1532
1580
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1533
1581
|
}
|
|
1534
|
-
|
|
1582
|
+
_12.label = 18;
|
|
1583
|
+
case 18:
|
|
1584
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1585
|
+
_s = headerParameters;
|
|
1586
|
+
_t = "x-guest-token";
|
|
1587
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1588
|
+
case 19:
|
|
1589
|
+
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1590
|
+
_12.label = 20;
|
|
1535
1591
|
case 20:
|
|
1536
1592
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1537
1593
|
_u = headerParameters;
|
|
1538
1594
|
_v = "Sec-Ch-Ua";
|
|
1539
1595
|
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1540
1596
|
case 21:
|
|
1541
|
-
_u[_v] =
|
|
1542
|
-
|
|
1597
|
+
_u[_v] = _12.sent(); // SecChUa authentication
|
|
1598
|
+
_12.label = 22;
|
|
1543
1599
|
case 22:
|
|
1544
1600
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1545
1601
|
_w = headerParameters;
|
|
1546
|
-
_x = "x-
|
|
1547
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1602
|
+
_x = "x-client-transaction-id";
|
|
1603
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1548
1604
|
case 23:
|
|
1549
|
-
_w[_x] =
|
|
1550
|
-
|
|
1605
|
+
_w[_x] = _12.sent(); // ClientTransactionId authentication
|
|
1606
|
+
_12.label = 24;
|
|
1551
1607
|
case 24:
|
|
1552
1608
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1553
1609
|
_y = headerParameters;
|
|
1554
|
-
_z = "user
|
|
1555
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1610
|
+
_z = "x-twitter-active-user";
|
|
1611
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1556
1612
|
case 25:
|
|
1557
|
-
_y[_z] =
|
|
1558
|
-
|
|
1613
|
+
_y[_z] = _12.sent(); // ActiveUser authentication
|
|
1614
|
+
_12.label = 26;
|
|
1559
1615
|
case 26:
|
|
1560
1616
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1561
1617
|
_0 = headerParameters;
|
|
1562
|
-
_1 = "
|
|
1563
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1618
|
+
_1 = "user-agent";
|
|
1619
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1564
1620
|
case 27:
|
|
1565
|
-
_0[_1] =
|
|
1566
|
-
|
|
1621
|
+
_0[_1] = _12.sent(); // UserAgent authentication
|
|
1622
|
+
_12.label = 28;
|
|
1567
1623
|
case 28:
|
|
1568
1624
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1569
1625
|
_2 = headerParameters;
|
|
1570
|
-
_3 = "
|
|
1571
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1626
|
+
_3 = "Accept-Language";
|
|
1627
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1572
1628
|
case 29:
|
|
1573
|
-
_2[_3] =
|
|
1574
|
-
|
|
1629
|
+
_2[_3] = _12.sent(); // AcceptLanguage authentication
|
|
1630
|
+
_12.label = 30;
|
|
1575
1631
|
case 30:
|
|
1576
1632
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1577
1633
|
_4 = headerParameters;
|
|
1578
|
-
_5 = "
|
|
1579
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1634
|
+
_5 = "Sec-Fetch-Site";
|
|
1635
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1580
1636
|
case 31:
|
|
1581
|
-
_4[_5] =
|
|
1582
|
-
|
|
1637
|
+
_4[_5] = _12.sent(); // SecFetchSite authentication
|
|
1638
|
+
_12.label = 32;
|
|
1583
1639
|
case 32:
|
|
1584
1640
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1585
1641
|
_6 = headerParameters;
|
|
1586
|
-
_7 = "
|
|
1587
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1642
|
+
_7 = "x-twitter-auth-type";
|
|
1643
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1588
1644
|
case 33:
|
|
1589
|
-
_6[_7] =
|
|
1590
|
-
|
|
1645
|
+
_6[_7] = _12.sent(); // AuthType authentication
|
|
1646
|
+
_12.label = 34;
|
|
1591
1647
|
case 34:
|
|
1592
1648
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1593
1649
|
_8 = headerParameters;
|
|
1594
|
-
_9 = "
|
|
1595
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1650
|
+
_9 = "Sec-Ch-Ua-Mobile";
|
|
1651
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1596
1652
|
case 35:
|
|
1597
|
-
_8[_9] =
|
|
1598
|
-
|
|
1599
|
-
case 36:
|
|
1653
|
+
_8[_9] = _12.sent(); // SecChUaMobile authentication
|
|
1654
|
+
_12.label = 36;
|
|
1655
|
+
case 36:
|
|
1656
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1657
|
+
_10 = headerParameters;
|
|
1658
|
+
_11 = "Accept-Encoding";
|
|
1659
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1660
|
+
case 37:
|
|
1661
|
+
_10[_11] = _12.sent(); // AcceptEncoding authentication
|
|
1662
|
+
_12.label = 38;
|
|
1663
|
+
case 38: return [4 /*yield*/, this.request({
|
|
1600
1664
|
path: "/graphql/{pathQueryId}/UnfavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1601
1665
|
method: 'POST',
|
|
1602
1666
|
headers: headerParameters,
|
|
1603
1667
|
query: queryParameters,
|
|
1604
1668
|
body: (0, index_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
|
|
1605
1669
|
}, initOverrides)];
|
|
1606
|
-
case
|
|
1607
|
-
response =
|
|
1608
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
1670
|
+
case 39:
|
|
1671
|
+
response = _12.sent();
|
|
1672
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UnfavoriteTweetResponseFromJSON)(jsonValue); })];
|
|
1609
1673
|
}
|
|
1610
1674
|
});
|
|
1611
1675
|
});
|