twitter-openapi-typescript-generated 0.0.15 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +59 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -4
- package/dist/apis/DefaultApi.d.ts +1 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +305 -137
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +153 -69
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +919 -415
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +1 -1
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +1673 -749
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +305 -137
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +1 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +761 -341
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +153 -69
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.js +302 -134
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.js +292 -122
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.js +151 -67
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/models/AdditionalMediaInfo.d.ts +32 -0
- package/dist/models/AdditionalMediaInfo.d.ts.map +1 -1
- package/dist/models/AdditionalMediaInfo.js +13 -0
- package/dist/models/AdditionalMediaInfo.js.map +1 -1
- package/dist/models/AdditionalMediaInfoCallToActions.d.ts +39 -0
- package/dist/models/AdditionalMediaInfoCallToActions.d.ts.map +1 -0
- package/dist/models/AdditionalMediaInfoCallToActions.js +54 -0
- package/dist/models/AdditionalMediaInfoCallToActions.js.map +1 -0
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +32 -0
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts.map +1 -0
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +51 -0
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +1 -0
- package/dist/models/AuthorCommunityRelationship.d.ts +53 -0
- package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -0
- package/dist/models/AuthorCommunityRelationship.js +64 -0
- package/dist/models/AuthorCommunityRelationship.js.map +1 -0
- package/dist/models/BirdwatchEntityRef.d.ts +9 -2
- package/dist/models/BirdwatchEntityRef.d.ts.map +1 -1
- package/dist/models/BirdwatchEntityRef.js +7 -5
- package/dist/models/BirdwatchEntityRef.js.map +1 -1
- package/dist/models/BirdwatchPivot.d.ts +7 -0
- package/dist/models/BirdwatchPivot.d.ts.map +1 -1
- package/dist/models/BirdwatchPivot.js +3 -0
- package/dist/models/BirdwatchPivot.js.map +1 -1
- package/dist/models/BirdwatchPivotCallToAction.d.ts +44 -0
- package/dist/models/BirdwatchPivotCallToAction.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotCallToAction.js +57 -0
- package/dist/models/BirdwatchPivotCallToAction.js.map +1 -0
- package/dist/models/Community.d.ts +33 -0
- package/dist/models/Community.d.ts.map +1 -0
- package/dist/models/Community.js +52 -0
- package/dist/models/Community.js.map +1 -0
- package/dist/models/CommunityActions.d.ts +54 -0
- package/dist/models/CommunityActions.d.ts.map +1 -0
- package/dist/models/CommunityActions.js +64 -0
- package/dist/models/CommunityActions.js.map +1 -0
- package/dist/models/CommunityData.d.ts +217 -0
- package/dist/models/CommunityData.d.ts.map +1 -0
- package/dist/models/CommunityData.js +145 -0
- package/dist/models/CommunityData.js.map +1 -0
- package/dist/models/CommunityDeleteActionResult.d.ts +46 -0
- package/dist/models/CommunityDeleteActionResult.d.ts.map +1 -0
- package/dist/models/CommunityDeleteActionResult.js +61 -0
- package/dist/models/CommunityDeleteActionResult.js.map +1 -0
- package/dist/models/CommunityInvitesResult.d.ts +52 -0
- package/dist/models/CommunityInvitesResult.d.ts.map +1 -0
- package/dist/models/CommunityInvitesResult.js +64 -0
- package/dist/models/CommunityInvitesResult.js.map +1 -0
- package/dist/models/CommunityJoinActionResult.d.ts +33 -0
- package/dist/models/CommunityJoinActionResult.d.ts.map +1 -0
- package/dist/models/CommunityJoinActionResult.js +52 -0
- package/dist/models/CommunityJoinActionResult.js.map +1 -0
- package/dist/models/CommunityJoinRequestsResult.d.ts +33 -0
- package/dist/models/CommunityJoinRequestsResult.d.ts.map +1 -0
- package/dist/models/CommunityJoinRequestsResult.js +52 -0
- package/dist/models/CommunityJoinRequestsResult.js.map +1 -0
- package/dist/models/CommunityLeaveActionResult.d.ts +52 -0
- package/dist/models/CommunityLeaveActionResult.d.ts.map +1 -0
- package/dist/models/CommunityLeaveActionResult.js +64 -0
- package/dist/models/CommunityLeaveActionResult.js.map +1 -0
- package/dist/models/CommunityPinActionResult.d.ts +33 -0
- package/dist/models/CommunityPinActionResult.d.ts.map +1 -0
- package/dist/models/CommunityPinActionResult.js +52 -0
- package/dist/models/CommunityPinActionResult.js.map +1 -0
- package/dist/models/CommunityRule.d.ts +44 -0
- package/dist/models/CommunityRule.d.ts.map +1 -0
- package/dist/models/CommunityRule.js +57 -0
- package/dist/models/CommunityRule.js.map +1 -0
- package/dist/models/CommunityUrls.d.ts +33 -0
- package/dist/models/CommunityUrls.d.ts.map +1 -0
- package/dist/models/CommunityUrls.js +52 -0
- package/dist/models/CommunityUrls.js.map +1 -0
- package/dist/models/CommunityUrlsPermalink.d.ts +32 -0
- package/dist/models/CommunityUrlsPermalink.d.ts.map +1 -0
- package/dist/models/CommunityUrlsPermalink.js +51 -0
- package/dist/models/CommunityUrlsPermalink.js.map +1 -0
- package/dist/models/ContentUnion.d.ts +3 -3
- package/dist/models/ContentUnion.d.ts.map +1 -1
- package/dist/models/ContentUnion.js.map +1 -1
- package/dist/models/DisplayTreatment.d.ts +32 -0
- package/dist/models/DisplayTreatment.d.ts.map +1 -0
- package/dist/models/DisplayTreatment.js +51 -0
- package/dist/models/DisplayTreatment.js.map +1 -0
- package/dist/models/DisplayType.d.ts +26 -0
- package/dist/models/DisplayType.d.ts.map +1 -0
- package/dist/models/DisplayType.js +39 -0
- package/dist/models/DisplayType.js.map +1 -0
- package/dist/models/FeedbackInfo.d.ts +32 -0
- package/dist/models/FeedbackInfo.d.ts.map +1 -0
- package/dist/models/FeedbackInfo.js +51 -0
- package/dist/models/FeedbackInfo.js.map +1 -0
- package/dist/models/GetBookmarks200Response.d.ts +2 -2
- package/dist/models/GetBookmarks200Response.d.ts.map +1 -1
- package/dist/models/GetBookmarks200Response.js.map +1 -1
- package/dist/models/GetFavoriters200Response.d.ts +2 -2
- package/dist/models/GetFavoriters200Response.d.ts.map +1 -1
- package/dist/models/GetFavoriters200Response.js.map +1 -1
- package/dist/models/GetFollowers200Response.d.ts +2 -2
- package/dist/models/GetFollowers200Response.d.ts.map +1 -1
- package/dist/models/GetFollowers200Response.js.map +1 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +2 -2
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetHomeLatestTimeline200Response.js.map +1 -1
- package/dist/models/GetLikes200Response.d.ts +2 -2
- package/dist/models/GetLikes200Response.d.ts.map +1 -1
- package/dist/models/GetLikes200Response.js.map +1 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +2 -2
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.js.map +1 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +2 -2
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.js.map +1 -1
- package/dist/models/GetRetweeters200Response.d.ts +2 -2
- package/dist/models/GetRetweeters200Response.d.ts.map +1 -1
- package/dist/models/GetRetweeters200Response.js.map +1 -1
- package/dist/models/GetSearchTimeline200Response.d.ts +2 -2
- package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetSearchTimeline200Response.js.map +1 -1
- package/dist/models/GetTweetDetail200Response.d.ts +2 -2
- package/dist/models/GetTweetDetail200Response.d.ts.map +1 -1
- package/dist/models/GetTweetDetail200Response.js.map +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +2 -2
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -1
- package/dist/models/GetTweetResultByRestId200Response.js.map +1 -1
- package/dist/models/GetUserByRestId200Response.d.ts +2 -2
- package/dist/models/GetUserByRestId200Response.d.ts.map +1 -1
- package/dist/models/GetUserByRestId200Response.js.map +1 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +2 -2
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -1
- package/dist/models/GetUserHighlightsTweets200Response.js.map +1 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts +2 -2
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -1
- package/dist/models/GetUsersByRestIds200Response.js.map +1 -1
- package/dist/models/Highlight.d.ts +33 -0
- package/dist/models/Highlight.d.ts.map +1 -0
- package/dist/models/Highlight.js +52 -0
- package/dist/models/Highlight.js.map +1 -0
- package/dist/models/InstructionUnion.d.ts +8 -8
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +6 -6
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +1 -1
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/Media.d.ts +54 -0
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +20 -0
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +25 -0
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +9 -0
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/ModuleEntry.d.ts +8 -1
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/ModuleEntry.js +5 -2
- package/dist/models/ModuleEntry.js.map +1 -1
- package/dist/models/Other200Response.d.ts +1 -1
- package/dist/models/Other200Response.d.ts.map +1 -1
- package/dist/models/Other200Response.js.map +1 -1
- package/dist/models/PostCreateRetweet200Response.d.ts +2 -2
- package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -1
- package/dist/models/PostCreateRetweet200Response.js.map +1 -1
- package/dist/models/PostCreateTweet200Response.d.ts +2 -2
- package/dist/models/PostCreateTweet200Response.d.ts.map +1 -1
- package/dist/models/PostCreateTweet200Response.js.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +12 -0
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +6 -0
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariables.d.ts +7 -0
- package/dist/models/PostCreateTweetRequestVariables.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariables.js +4 -0
- package/dist/models/PostCreateTweetRequestVariables.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesReply.d.ts +38 -0
- package/dist/models/PostCreateTweetRequestVariablesReply.d.ts.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesReply.js +54 -0
- package/dist/models/PostCreateTweetRequestVariablesReply.js.map +1 -0
- package/dist/models/PostDeleteRetweet200Response.d.ts +2 -2
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -1
- package/dist/models/PostDeleteRetweet200Response.js.map +1 -1
- package/dist/models/PostDeleteTweet200Response.d.ts +2 -2
- package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostDeleteTweet200Response.js.map +1 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts +2 -2
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostFavoriteTweet200Response.js.map +1 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +2 -2
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostUnfavoriteTweet200Response.js.map +1 -1
- package/dist/models/PrimaryCommunityTopic.d.ts +38 -0
- package/dist/models/PrimaryCommunityTopic.d.ts.map +1 -0
- package/dist/models/PrimaryCommunityTopic.js +54 -0
- package/dist/models/PrimaryCommunityTopic.js.map +1 -0
- package/dist/models/QuotedRefResult.d.ts +33 -0
- package/dist/models/QuotedRefResult.d.ts.map +1 -0
- package/dist/models/QuotedRefResult.js +52 -0
- package/dist/models/QuotedRefResult.js.map +1 -0
- package/dist/models/QuotedStatusPermalink.d.ts +44 -0
- package/dist/models/QuotedStatusPermalink.d.ts.map +1 -0
- package/dist/models/QuotedStatusPermalink.js +57 -0
- package/dist/models/QuotedStatusPermalink.js.map +1 -0
- package/dist/models/SensitiveMediaWarning.d.ts +44 -0
- package/dist/models/SensitiveMediaWarning.d.ts.map +1 -0
- package/dist/models/SensitiveMediaWarning.js +57 -0
- package/dist/models/SensitiveMediaWarning.js.map +1 -0
- package/dist/models/SocialContextLandingUrl.d.ts +54 -0
- package/dist/models/SocialContextLandingUrl.d.ts.map +1 -0
- package/dist/models/SocialContextLandingUrl.js +64 -0
- package/dist/models/SocialContextLandingUrl.js.map +1 -0
- package/dist/models/SocialContextUnion.d.ts +27 -0
- package/dist/models/SocialContextUnion.d.ts.map +1 -0
- package/dist/models/SocialContextUnion.js +65 -0
- package/dist/models/SocialContextUnion.js.map +1 -0
- package/dist/models/SocialContextUnionType.d.ts +24 -0
- package/dist/models/SocialContextUnionType.d.ts.map +1 -0
- package/dist/models/SocialContextUnionType.js +37 -0
- package/dist/models/SocialContextUnionType.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResult.d.ts +33 -0
- package/dist/models/SuperFollowsReplyUserResult.d.ts.map +1 -0
- package/dist/models/SuperFollowsReplyUserResult.js +52 -0
- package/dist/models/SuperFollowsReplyUserResult.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultData.d.ts +40 -0
- package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultData.js +56 -0
- package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +32 -0
- package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultLegacy.js +51 -0
- package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +1 -0
- package/dist/models/TextHighlight.d.ts +38 -0
- package/dist/models/TextHighlight.d.ts.map +1 -0
- package/dist/models/TextHighlight.js +54 -0
- package/dist/models/TextHighlight.js.map +1 -0
- package/dist/models/TimelineGeneralContext.d.ts +65 -0
- package/dist/models/TimelineGeneralContext.d.ts.map +1 -0
- package/dist/models/TimelineGeneralContext.js +71 -0
- package/dist/models/TimelineGeneralContext.js.map +1 -0
- package/dist/models/TimelineTimelineCursor.d.ts +13 -0
- package/dist/models/TimelineTimelineCursor.d.ts.map +1 -1
- package/dist/models/TimelineTimelineCursor.js +6 -0
- package/dist/models/TimelineTimelineCursor.js.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +18 -10
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.js +9 -10
- package/dist/models/TimelineTimelineModule.js.map +1 -1
- package/dist/models/TimelineTopicContext.d.ts +53 -0
- package/dist/models/TimelineTopicContext.d.ts.map +1 -0
- package/dist/models/TimelineTopicContext.js +63 -0
- package/dist/models/TimelineTopicContext.js.map +1 -0
- package/dist/models/TimelineTweet.d.ts +12 -5
- package/dist/models/TimelineTweet.d.ts.map +1 -1
- package/dist/models/TimelineTweet.js +6 -3
- package/dist/models/TimelineTweet.js.map +1 -1
- package/dist/models/TimelineUser.d.ts +7 -7
- package/dist/models/TimelineUser.d.ts.map +1 -1
- package/dist/models/TimelineUser.js +3 -3
- package/dist/models/TimelineUser.js.map +1 -1
- package/dist/models/TopicContext.d.ts +68 -0
- package/dist/models/TopicContext.d.ts.map +1 -0
- package/dist/models/TopicContext.js +63 -0
- package/dist/models/TopicContext.js.map +1 -0
- package/dist/models/Tweet.d.ts +44 -3
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +20 -6
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardLegacy.d.ts +14 -0
- package/dist/models/TweetCardLegacy.d.ts.map +1 -1
- package/dist/models/TweetCardLegacy.js +7 -0
- package/dist/models/TweetCardLegacy.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +22 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -1
- package/dist/models/TweetCardLegacyBindingValueData.js +8 -0
- package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValueDataImage.js +60 -0
- package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +1 -0
- package/dist/models/TweetCardPlatform.d.ts +40 -0
- package/dist/models/TweetCardPlatform.d.ts.map +1 -0
- package/dist/models/TweetCardPlatform.js +56 -0
- package/dist/models/TweetCardPlatform.js.map +1 -0
- package/dist/models/TweetCardPlatformAudience.d.ts +39 -0
- package/dist/models/TweetCardPlatformAudience.d.ts.map +1 -0
- package/dist/models/TweetCardPlatformAudience.js +57 -0
- package/dist/models/TweetCardPlatformAudience.js.map +1 -0
- package/dist/models/TweetCardPlatformData.d.ts +33 -0
- package/dist/models/TweetCardPlatformData.d.ts.map +1 -0
- package/dist/models/TweetCardPlatformData.js +52 -0
- package/dist/models/TweetCardPlatformData.js.map +1 -0
- package/dist/models/TweetCardPlatformDevice.d.ts +38 -0
- package/dist/models/TweetCardPlatformDevice.d.ts.map +1 -0
- package/dist/models/TweetCardPlatformDevice.js +54 -0
- package/dist/models/TweetCardPlatformDevice.js.map +1 -0
- package/dist/models/TweetInterstitial.d.ts +60 -0
- package/dist/models/TweetInterstitial.d.ts.map +1 -0
- package/dist/models/TweetInterstitial.js +69 -0
- package/dist/models/TweetInterstitial.js.map +1 -0
- package/dist/models/TweetInterstitialRevealText.d.ts +45 -0
- package/dist/models/TweetInterstitialRevealText.d.ts.map +1 -0
- package/dist/models/TweetInterstitialRevealText.js +58 -0
- package/dist/models/TweetInterstitialRevealText.js.map +1 -0
- package/dist/models/TweetInterstitialText.d.ts +45 -0
- package/dist/models/TweetInterstitialText.d.ts.map +1 -0
- package/dist/models/TweetInterstitialText.js +58 -0
- package/dist/models/TweetInterstitialText.js.map +1 -0
- package/dist/models/TweetInterstitialTextEntity.d.ts +45 -0
- package/dist/models/TweetInterstitialTextEntity.d.ts.map +1 -0
- package/dist/models/TweetInterstitialTextEntity.js +58 -0
- package/dist/models/TweetInterstitialTextEntity.js.map +1 -0
- package/dist/models/TweetInterstitialTextEntityRef.d.ts +58 -0
- package/dist/models/TweetInterstitialTextEntityRef.d.ts.map +1 -0
- package/dist/models/TweetInterstitialTextEntityRef.js +69 -0
- package/dist/models/TweetInterstitialTextEntityRef.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +71 -0
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +31 -1
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetLegacyScopes.d.ts +32 -0
- package/dist/models/TweetLegacyScopes.d.ts.map +1 -0
- package/dist/models/TweetLegacyScopes.js +51 -0
- package/dist/models/TweetLegacyScopes.js.map +1 -0
- package/dist/models/TweetPreviousCounts.d.ts +56 -0
- package/dist/models/TweetPreviousCounts.d.ts.map +1 -0
- package/dist/models/TweetPreviousCounts.js +63 -0
- package/dist/models/TweetPreviousCounts.js.map +1 -0
- package/dist/models/TweetUnion.d.ts +3 -3
- package/dist/models/TweetUnion.d.ts.map +1 -1
- package/dist/models/TweetUnion.js +1 -1
- package/dist/models/TweetUnion.js.map +1 -1
- package/dist/models/TweetView.d.ts +1 -0
- package/dist/models/TweetView.d.ts.map +1 -1
- package/dist/models/TweetView.js +1 -0
- package/dist/models/TweetView.js.map +1 -1
- package/dist/models/TweetWithVisibilityResults.d.ts +15 -0
- package/dist/models/TweetWithVisibilityResults.d.ts.map +1 -1
- package/dist/models/TweetWithVisibilityResults.js +6 -0
- package/dist/models/TweetWithVisibilityResults.js.map +1 -1
- package/dist/models/TypeName.d.ts +8 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +9 -1
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UnifiedCard.d.ts +39 -0
- package/dist/models/UnifiedCard.d.ts.map +1 -0
- package/dist/models/UnifiedCard.js +57 -0
- package/dist/models/UnifiedCard.js.map +1 -0
- package/dist/models/UrtEndpointOptions.d.ts +39 -0
- package/dist/models/UrtEndpointOptions.d.ts.map +1 -0
- package/dist/models/UrtEndpointOptions.js +55 -0
- package/dist/models/UrtEndpointOptions.js.map +1 -0
- package/dist/models/UrtEndpointRequestParams.d.ts +38 -0
- package/dist/models/UrtEndpointRequestParams.d.ts.map +1 -0
- package/dist/models/UrtEndpointRequestParams.js +54 -0
- package/dist/models/UrtEndpointRequestParams.js.map +1 -0
- package/dist/models/User.d.ts +54 -0
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/User.js +27 -1
- package/dist/models/User.js.map +1 -1
- package/dist/models/UserHighlightsInfo.d.ts +38 -0
- package/dist/models/UserHighlightsInfo.d.ts.map +1 -0
- package/dist/models/UserHighlightsInfo.js +54 -0
- package/dist/models/UserHighlightsInfo.js.map +1 -0
- package/dist/models/UserLegacy.d.ts +20 -0
- package/dist/models/UserLegacy.d.ts.map +1 -1
- package/dist/models/UserLegacy.js +12 -1
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserProfessional.d.ts +53 -0
- package/dist/models/UserProfessional.d.ts.map +1 -0
- package/dist/models/UserProfessional.js +65 -0
- package/dist/models/UserProfessional.js.map +1 -0
- package/dist/models/UserProfessionalCategory.d.ts +44 -0
- package/dist/models/UserProfessionalCategory.d.ts.map +1 -0
- package/dist/models/UserProfessionalCategory.js +57 -0
- package/dist/models/UserProfessionalCategory.js.map +1 -0
- package/dist/models/UserUnion.d.ts +2 -2
- package/dist/models/UserUnion.d.ts.map +1 -1
- package/dist/models/UserUnion.js +1 -1
- package/dist/models/UserUnion.js.map +1 -1
- package/dist/models/UserValue.d.ts +32 -0
- package/dist/models/UserValue.d.ts.map +1 -0
- package/dist/models/UserValue.js +51 -0
- package/dist/models/UserValue.js.map +1 -0
- package/dist/models/UserVerificationInfo.d.ts +39 -0
- package/dist/models/UserVerificationInfo.d.ts.map +1 -0
- package/dist/models/UserVerificationInfo.js +55 -0
- package/dist/models/UserVerificationInfo.js.map +1 -0
- package/dist/models/UserVerificationInfoReason.d.ts +45 -0
- package/dist/models/UserVerificationInfoReason.d.ts.map +1 -0
- package/dist/models/UserVerificationInfoReason.js +58 -0
- package/dist/models/UserVerificationInfoReason.js.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescription.d.ts +39 -0
- package/dist/models/UserVerificationInfoReasonDescription.d.ts.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescription.js +55 -0
- package/dist/models/UserVerificationInfoReasonDescription.js.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +45 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +58 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +45 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +60 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +1 -0
- package/dist/models/index.d.ts +59 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +59 -1
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +13 -6
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +289 -289
- package/src/apis/OtherApi.ts +132 -132
- package/src/apis/PostApi.ts +771 -771
- package/src/apis/TweetApi.ts +1465 -1465
- package/src/apis/UserApi.ts +295 -295
- package/src/apis/UserListApi.ts +676 -676
- package/src/apis/UsersApi.ts +158 -158
- package/src/apis/V11GetApi.ts +438 -438
- package/src/apis/V11PostApi.ts +513 -513
- package/src/apis/V20GetApi.ts +460 -460
- package/src/apis/index.ts +12 -12
- package/src/index.ts +5 -5
- package/src/models/AdditionalMediaInfo.ts +119 -66
- package/src/models/AdditionalMediaInfoCallToActions.ts +80 -0
- package/src/models/AdditionalMediaInfoCallToActionsUrl.ts +66 -0
- package/src/models/AuthorCommunityRelationship.ts +105 -0
- package/src/models/BirdwatchEntity.ts +91 -91
- package/src/models/BirdwatchEntityRef.ts +109 -102
- package/src/models/BirdwatchPivot.ts +179 -165
- package/src/models/BirdwatchPivotCallToAction.ts +84 -0
- package/src/models/BirdwatchPivotFooter.ts +82 -82
- package/src/models/BirdwatchPivotNote.ts +66 -66
- package/src/models/BirdwatchPivotSubtitle.ts +82 -82
- package/src/models/BookmarksResponse.ts +73 -73
- package/src/models/BookmarksResponseData.ts +73 -73
- package/src/models/BookmarksTimeline.ts +73 -73
- package/src/models/Callback.ts +66 -66
- package/src/models/ClientEventInfo.ts +81 -81
- package/src/models/CommunitiesActions.ts +66 -66
- package/src/models/Community.ts +73 -0
- package/src/models/CommunityActions.ts +118 -0
- package/src/models/CommunityData.ts +358 -0
- package/src/models/CommunityDeleteActionResult.ts +92 -0
- package/src/models/CommunityInvitesResult.ts +101 -0
- package/src/models/CommunityJoinActionResult.ts +73 -0
- package/src/models/CommunityJoinRequestsResult.ts +73 -0
- package/src/models/CommunityLeaveActionResult.ts +101 -0
- package/src/models/CommunityPinActionResult.ts +73 -0
- package/src/models/CommunityRule.ts +83 -0
- package/src/models/CommunityUrls.ts +73 -0
- package/src/models/CommunityUrlsPermalink.ts +66 -0
- package/src/models/ContentEntryType.ts +39 -39
- package/src/models/ContentItemType.ts +42 -42
- package/src/models/ContentUnion.ts +83 -83
- package/src/models/CoverCta.ts +129 -129
- package/src/models/CreateRetweet.ts +73 -73
- package/src/models/CreateRetweetResponse.ts +73 -73
- package/src/models/CreateRetweetResponseData.ts +73 -73
- package/src/models/CreateRetweetResponseResult.ts +73 -73
- package/src/models/CreateTweet.ts +73 -73
- package/src/models/CreateTweetResponse.ts +73 -73
- package/src/models/CreateTweetResponseData.ts +73 -73
- package/src/models/CreateTweetResponseResult.ts +73 -73
- package/src/models/CtaClientEventInfo.ts +76 -76
- package/src/models/CursorType.ts +41 -41
- package/src/models/DeleteRetweet.ts +73 -73
- package/src/models/DeleteRetweetResponse.ts +73 -73
- package/src/models/DeleteRetweetResponseData.ts +72 -72
- package/src/models/DeleteRetweetResponseResult.ts +72 -72
- package/src/models/DeleteTweetResponse.ts +73 -73
- package/src/models/DeleteTweetResponseData.ts +72 -72
- package/src/models/DeleteTweetResponseResult.ts +66 -66
- package/src/models/DisplayTreatment.ts +66 -0
- package/src/models/DisplayType.ts +40 -0
- package/src/models/Entities.ts +114 -114
- package/src/models/ErrorExtensions.ts +118 -118
- package/src/models/ErrorResponse.ts +73 -73
- package/src/models/Errors.ts +66 -66
- package/src/models/ExtMediaAvailability.ts +84 -84
- package/src/models/ExtendedEntities.ts +73 -73
- package/src/models/Extensions.ts +109 -109
- package/src/models/FavoriteTweet.ts +66 -66
- package/src/models/FavoriteTweetResponseData.ts +73 -73
- package/src/models/FeedbackInfo.ts +65 -0
- package/src/models/FollowResponse.ts +73 -73
- package/src/models/FollowResponseData.ts +73 -73
- package/src/models/FollowResponseResult.ts +88 -88
- package/src/models/FollowResponseUser.ts +73 -73
- package/src/models/FollowTimeline.ts +73 -73
- package/src/models/GetBookmarks200Response.ts +65 -65
- package/src/models/GetFavoriters200Response.ts +65 -65
- package/src/models/GetFollowers200Response.ts +65 -65
- package/src/models/GetHomeLatestTimeline200Response.ts +65 -65
- package/src/models/GetLikes200Response.ts +65 -65
- package/src/models/GetListLatestTweetsTimeline200Response.ts +65 -65
- package/src/models/GetProfileSpotlightsQuery200Response.ts +65 -65
- package/src/models/GetRetweeters200Response.ts +65 -65
- package/src/models/GetSearchTimeline200Response.ts +65 -65
- package/src/models/GetTweetDetail200Response.ts +65 -65
- package/src/models/GetTweetResultByRestId200Response.ts +65 -65
- package/src/models/GetUserByRestId200Response.ts +65 -65
- package/src/models/GetUserHighlightsTweets200Response.ts +65 -65
- package/src/models/GetUsersByRestIds200Response.ts +65 -65
- package/src/models/Highlight.ts +73 -0
- package/src/models/HomeTimelineHome.ts +73 -73
- package/src/models/HomeTimelineResponseData.ts +73 -73
- package/src/models/InstructionType.ts +44 -44
- package/src/models/InstructionUnion.ts +138 -138
- package/src/models/ItemContentUnion.ts +116 -116
- package/src/models/ItemResult.ts +86 -86
- package/src/models/ListLatestTweetsTimelineResponse.ts +73 -73
- package/src/models/ListTweetsTimeline.ts +72 -72
- package/src/models/ListTweetsTimelineData.ts +73 -73
- package/src/models/ListTweetsTimelineList.ts +73 -73
- package/src/models/Location.ts +75 -75
- package/src/models/Media.ts +249 -171
- package/src/models/MediaExtended.ts +274 -236
- package/src/models/MediaOriginalInfo.ts +90 -90
- package/src/models/MediaOriginalInfoFocusRect.ts +93 -93
- package/src/models/MediaSize.ts +95 -95
- package/src/models/MediaSizes.ts +100 -100
- package/src/models/MediaStats.ts +66 -66
- package/src/models/MediaVideoInfo.ts +90 -90
- package/src/models/MediaVideoInfoVariant.ts +83 -83
- package/src/models/ModelError.ts +166 -166
- package/src/models/ModuleEntry.ts +101 -88
- package/src/models/ModuleItem.ts +82 -82
- package/src/models/NoteTweet.ts +82 -82
- package/src/models/NoteTweetResult.ts +73 -73
- package/src/models/NoteTweetResultData.ts +119 -119
- package/src/models/NoteTweetResultMedia.ts +73 -73
- package/src/models/NoteTweetResultMediaInlineMedia.ts +75 -75
- package/src/models/NoteTweetResultRichText.ts +73 -73
- package/src/models/NoteTweetResultRichTextTag.ts +95 -95
- package/src/models/OneFactorLoginEligibility.ts +66 -66
- package/src/models/Other200Response.ts +55 -55
- package/src/models/OtherResponse.ts +72 -72
- package/src/models/PostCreateRetweet200Response.ts +65 -65
- package/src/models/PostCreateRetweetRequest.ts +82 -82
- package/src/models/PostCreateRetweetRequestVariables.ts +75 -75
- package/src/models/PostCreateTweet200Response.ts +65 -65
- package/src/models/PostCreateTweetRequest.ts +97 -97
- package/src/models/PostCreateTweetRequestFeatures.ts +237 -219
- package/src/models/PostCreateTweetRequestVariables.ts +114 -100
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +82 -82
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -75
- package/src/models/PostCreateTweetRequestVariablesReply.ts +75 -0
- package/src/models/PostDeleteRetweet200Response.ts +65 -65
- package/src/models/PostDeleteRetweetRequest.ts +82 -82
- package/src/models/PostDeleteRetweetRequestVariables.ts +75 -75
- package/src/models/PostDeleteTweet200Response.ts +65 -65
- package/src/models/PostDeleteTweetRequest.ts +82 -82
- package/src/models/PostFavoriteTweet200Response.ts +65 -65
- package/src/models/PostFavoriteTweetRequest.ts +82 -82
- package/src/models/PostUnfavoriteTweet200Response.ts +65 -65
- package/src/models/PostUnfavoriteTweetRequest.ts +82 -82
- package/src/models/PrimaryCommunityTopic.ts +75 -0
- package/src/models/ProfileResponse.ts +73 -73
- package/src/models/ProfileResponseData.ts +73 -73
- package/src/models/QuotedRefResult.ts +72 -0
- package/src/models/QuotedStatusPermalink.ts +84 -0
- package/src/models/Retweet.ts +82 -82
- package/src/models/RetweetLegacy.ts +66 -66
- package/src/models/SearchByRawQuery.ts +73 -73
- package/src/models/SearchTimeline.ts +73 -73
- package/src/models/SearchTimelineData.ts +73 -73
- package/src/models/SearchTimelineResponse.ts +73 -73
- package/src/models/SelfThread.ts +66 -66
- package/src/models/SensitiveMediaWarning.ts +84 -0
- package/src/models/Session.ts +211 -211
- package/src/models/SocialContextLandingUrl.ts +100 -0
- package/src/models/SocialContextUnion.ts +72 -0
- package/src/models/SocialContextUnionType.ts +38 -0
- package/src/models/SuperFollowsReplyUserResult.ts +73 -0
- package/src/models/SuperFollowsReplyUserResultData.ts +88 -0
- package/src/models/SuperFollowsReplyUserResultLegacy.ts +66 -0
- package/src/models/Text.ts +82 -82
- package/src/models/TextEntity.ts +91 -91
- package/src/models/TextEntityRef.ts +102 -102
- package/src/models/TextHighlight.ts +75 -0
- package/src/models/Timeline.ts +89 -89
- package/src/models/TimelineAddEntries.ts +88 -88
- package/src/models/TimelineAddEntry.ts +91 -91
- package/src/models/TimelineAddToModule.ts +105 -105
- package/src/models/TimelineClearCache.ts +73 -73
- package/src/models/TimelineCommunity.ts +75 -75
- package/src/models/TimelineCoverBehavior.ts +76 -76
- package/src/models/TimelineGeneralContext.ts +118 -0
- package/src/models/TimelineHalfCover.ts +157 -157
- package/src/models/TimelineMessagePrompt.ts +75 -75
- package/src/models/TimelinePinEntry.ts +88 -88
- package/src/models/TimelinePrompt.ts +75 -75
- package/src/models/TimelineReplaceEntry.ts +97 -97
- package/src/models/TimelineResponse.ts +73 -73
- package/src/models/TimelineShowAlert.ts +169 -169
- package/src/models/TimelineShowAlertRichText.ts +73 -73
- package/src/models/TimelineShowCover.ts +103 -103
- package/src/models/TimelineTerminateTimeline.ts +93 -93
- package/src/models/TimelineTimelineCursor.ts +142 -119
- package/src/models/TimelineTimelineItem.ts +125 -125
- package/src/models/TimelineTimelineModule.ts +164 -147
- package/src/models/TimelineTopicContext.ts +104 -0
- package/src/models/TimelineTweet.ts +148 -134
- package/src/models/TimelineUser.ts +138 -138
- package/src/models/TimelineV2.ts +73 -73
- package/src/models/TopicContext.ts +113 -0
- package/src/models/Tracing.ts +66 -66
- package/src/models/Tweet.ts +317 -242
- package/src/models/TweetCard.ts +80 -80
- package/src/models/TweetCardLegacy.ts +119 -91
- package/src/models/TweetCardLegacyBindingValue.ts +82 -82
- package/src/models/TweetCardLegacyBindingValueData.ts +127 -90
- package/src/models/TweetCardLegacyBindingValueDataImage.ts +92 -0
- package/src/models/TweetCardPlatform.ts +88 -0
- package/src/models/TweetCardPlatformAudience.ts +76 -0
- package/src/models/TweetCardPlatformData.ts +73 -0
- package/src/models/TweetCardPlatformDevice.ts +75 -0
- package/src/models/TweetDetailResponse.ts +73 -73
- package/src/models/TweetDetailResponseData.ts +73 -73
- package/src/models/TweetEditControl.ts +112 -112
- package/src/models/TweetEditControlInitial.ts +93 -93
- package/src/models/TweetEditPrespective.ts +73 -73
- package/src/models/TweetFavoritersResponse.ts +73 -73
- package/src/models/TweetFavoritersResponseData.ts +73 -73
- package/src/models/TweetInterstitial.ts +122 -0
- package/src/models/TweetInterstitialRevealText.ts +91 -0
- package/src/models/TweetInterstitialText.ts +91 -0
- package/src/models/TweetInterstitialTextEntity.ts +91 -0
- package/src/models/TweetInterstitialTextEntityRef.ts +102 -0
- package/src/models/TweetLegacy.ts +373 -275
- package/src/models/TweetLegacyScopes.ts +66 -0
- package/src/models/TweetPreviousCounts.ts +102 -0
- package/src/models/TweetResultByRestIdData.ts +73 -73
- package/src/models/TweetResultByRestIdResponse.ts +73 -73
- package/src/models/TweetRetweetersResponse.ts +73 -73
- package/src/models/TweetRetweetersResponseData.ts +73 -73
- package/src/models/TweetTombstone.ts +75 -75
- package/src/models/TweetUnion.ts +83 -83
- package/src/models/TweetView.ts +85 -84
- package/src/models/TweetWithVisibilityResults.ts +110 -88
- package/src/models/TypeName.ts +58 -50
- package/src/models/UnfavoriteTweet.ts +66 -66
- package/src/models/UnfavoriteTweetResponseData.ts +73 -73
- package/src/models/UnifiedCard.ts +76 -0
- package/src/models/Url.ts +93 -93
- package/src/models/UrtEndpointOptions.ts +82 -0
- package/src/models/UrtEndpointRequestParams.ts +75 -0
- package/src/models/User.ts +262 -175
- package/src/models/UserFeatures.ts +66 -66
- package/src/models/UserHighlightsInfo.ts +75 -0
- package/src/models/UserHighlightsTweetsData.ts +73 -73
- package/src/models/UserHighlightsTweetsResponse.ts +73 -73
- package/src/models/UserHighlightsTweetsResult.ts +88 -88
- package/src/models/UserHighlightsTweetsTimeline.ts +73 -73
- package/src/models/UserHighlightsTweetsUser.ts +73 -73
- package/src/models/UserLegacy.ts +426 -399
- package/src/models/UserProfessional.ts +102 -0
- package/src/models/UserProfessionalCategory.ts +84 -0
- package/src/models/UserResponse.ts +73 -73
- package/src/models/UserResponseData.ts +73 -73
- package/src/models/UserResultByScreenName.ts +82 -82
- package/src/models/UserResultByScreenNameLegacy.ts +113 -113
- package/src/models/UserResultByScreenNameResult.ts +115 -115
- package/src/models/UserResultCore.ts +73 -73
- package/src/models/UserResults.ts +72 -72
- package/src/models/UserTweetsData.ts +73 -73
- package/src/models/UserTweetsResponse.ts +73 -73
- package/src/models/UserTweetsResult.ts +88 -88
- package/src/models/UserTweetsUser.ts +73 -73
- package/src/models/UserUnavailable.ts +82 -82
- package/src/models/UserUnion.ts +72 -72
- package/src/models/UserValue.ts +66 -0
- package/src/models/UserVerificationInfo.ts +81 -0
- package/src/models/UserVerificationInfoReason.ts +91 -0
- package/src/models/UserVerificationInfoReasonDescription.ts +82 -0
- package/src/models/UserVerificationInfoReasonDescriptionEntities.ts +91 -0
- package/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.ts +85 -0
- package/src/models/UsersResponse.ts +73 -73
- package/src/models/UsersResponseData.ts +73 -73
- package/src/models/index.ts +259 -201
- package/src/runtime.ts +431 -425
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/init.ps1 +1 -1
- package/tools/win/replace.py +9 -16
- package/twitter-openapi/.github/workflows/test-build.yaml +1 -1
- package/twitter-openapi/.github/workflows/test-python.yaml +1 -1
- package/twitter-openapi/.vscode/extensions.json +8 -2
- package/twitter-openapi/.vscode/launch.json +7 -5
- package/twitter-openapi/.vscode/settings.json +11 -1
- package/twitter-openapi/.vscode/tasks.json +4 -3
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +1195 -337
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +1159 -120
- package/twitter-openapi/requirements.txt +0 -0
- package/twitter-openapi/src/config/placeholder.json +89 -44
- package/twitter-openapi/src/openapi/response/error.yaml +3 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +159 -10
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +598 -17
- package/twitter-openapi/src/openapi/schemas/typename.yaml +8 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +127 -0
- package/twitter-openapi/test/python/test_serialize.py +121 -47
- package/twitter-openapi/tools/hooks.py +29 -21
- package/dist/models/SocialContext.d.ts +0 -44
- package/dist/models/SocialContext.d.ts.map +0 -1
- package/dist/models/SocialContext.js +0 -55
- package/dist/models/SocialContext.js.map +0 -1
- package/src/models/SocialContext.ts +0 -81
package/dist/apis/UserListApi.js
CHANGED
|
@@ -66,7 +66,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.UserListApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
-
var
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
@@ -80,9 +80,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
80
80
|
*/
|
|
81
81
|
UserListApi.prototype.getFavoritersRaw = function (requestParameters, initOverrides) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
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, response;
|
|
84
|
+
return __generator(this, function (_10) {
|
|
85
|
+
switch (_10.label) {
|
|
86
86
|
case 0:
|
|
87
87
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
88
88
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getFavoriters.');
|
|
@@ -101,76 +101,160 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
101
101
|
queryParameters['features'] = requestParameters.features;
|
|
102
102
|
}
|
|
103
103
|
headerParameters = {};
|
|
104
|
-
if (this.configuration && this.configuration.apiKey)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (!(this.configuration && this.configuration.
|
|
104
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
105
|
+
_a = headerParameters;
|
|
106
|
+
_b = "x-twitter-client-language";
|
|
107
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
108
|
+
case 1:
|
|
109
|
+
_a[_b] = _10.sent(); // ClientLanguage authentication
|
|
110
|
+
_10.label = 2;
|
|
111
|
+
case 2:
|
|
112
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
113
|
+
_c = headerParameters;
|
|
114
|
+
_d = "Accept";
|
|
115
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
116
|
+
case 3:
|
|
117
|
+
_c[_d] = _10.sent(); // Accept authentication
|
|
118
|
+
_10.label = 4;
|
|
119
|
+
case 4:
|
|
120
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
121
|
+
_e = headerParameters;
|
|
122
|
+
_f = "Sec-Fetch-Dest";
|
|
123
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
124
|
+
case 5:
|
|
125
|
+
_e[_f] = _10.sent(); // SecFetchDest authentication
|
|
126
|
+
_10.label = 6;
|
|
127
|
+
case 6:
|
|
128
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
129
|
+
_g = headerParameters;
|
|
130
|
+
_h = "Pragma";
|
|
131
|
+
return [4 /*yield*/, this.configuration.apiKey("Pragma")];
|
|
132
|
+
case 7:
|
|
133
|
+
_g[_h] = _10.sent(); // Pragma authentication
|
|
134
|
+
_10.label = 8;
|
|
135
|
+
case 8:
|
|
136
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
137
|
+
_j = headerParameters;
|
|
138
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
139
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
140
|
+
case 9:
|
|
141
|
+
_j[_k] = _10.sent(); // SecChUaPlatform authentication
|
|
142
|
+
_10.label = 10;
|
|
143
|
+
case 10:
|
|
144
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
145
|
+
_l = headerParameters;
|
|
146
|
+
_m = "Sec-Fetch-Mode";
|
|
147
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
148
|
+
case 11:
|
|
149
|
+
_l[_m] = _10.sent(); // SecFetchMode authentication
|
|
150
|
+
_10.label = 12;
|
|
151
|
+
case 12:
|
|
152
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
153
|
+
_o = headerParameters;
|
|
154
|
+
_p = "x-csrf-token";
|
|
155
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
156
|
+
case 13:
|
|
157
|
+
_o[_p] = _10.sent(); // CsrfToken authentication
|
|
158
|
+
_10.label = 14;
|
|
159
|
+
case 14:
|
|
160
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
161
|
+
_q = headerParameters;
|
|
162
|
+
_r = "x-guest-token";
|
|
163
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
164
|
+
case 15:
|
|
165
|
+
_q[_r] = _10.sent(); // GuestToken authentication
|
|
166
|
+
_10.label = 16;
|
|
167
|
+
case 16:
|
|
168
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
129
169
|
token = this.configuration.accessToken;
|
|
130
170
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
131
|
-
case
|
|
132
|
-
tokenString =
|
|
171
|
+
case 17:
|
|
172
|
+
tokenString = _10.sent();
|
|
133
173
|
if (tokenString) {
|
|
134
174
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
135
175
|
}
|
|
136
|
-
|
|
137
|
-
case
|
|
138
|
-
if (this.configuration && this.configuration.apiKey)
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (this.configuration && this.configuration.apiKey)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return [4 /*yield*/, this.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
return [
|
|
176
|
+
_10.label = 18;
|
|
177
|
+
case 18:
|
|
178
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
179
|
+
_s = headerParameters;
|
|
180
|
+
_t = "Sec-Ch-Ua";
|
|
181
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
182
|
+
case 19:
|
|
183
|
+
_s[_t] = _10.sent(); // SecChUa authentication
|
|
184
|
+
_10.label = 20;
|
|
185
|
+
case 20:
|
|
186
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
187
|
+
_u = headerParameters;
|
|
188
|
+
_v = "x-twitter-active-user";
|
|
189
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
190
|
+
case 21:
|
|
191
|
+
_u[_v] = _10.sent(); // ActiveUser authentication
|
|
192
|
+
_10.label = 22;
|
|
193
|
+
case 22:
|
|
194
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
195
|
+
_w = headerParameters;
|
|
196
|
+
_x = "user-agent";
|
|
197
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
198
|
+
case 23:
|
|
199
|
+
_w[_x] = _10.sent(); // UserAgent authentication
|
|
200
|
+
_10.label = 24;
|
|
201
|
+
case 24:
|
|
202
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
203
|
+
_y = headerParameters;
|
|
204
|
+
_z = "Accept-Language";
|
|
205
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
206
|
+
case 25:
|
|
207
|
+
_y[_z] = _10.sent(); // AcceptLanguage authentication
|
|
208
|
+
_10.label = 26;
|
|
209
|
+
case 26:
|
|
210
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
211
|
+
_0 = headerParameters;
|
|
212
|
+
_1 = "Sec-Fetch-Site";
|
|
213
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
214
|
+
case 27:
|
|
215
|
+
_0[_1] = _10.sent(); // SecFetchSite authentication
|
|
216
|
+
_10.label = 28;
|
|
217
|
+
case 28:
|
|
218
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
219
|
+
_2 = headerParameters;
|
|
220
|
+
_3 = "x-twitter-auth-type";
|
|
221
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
222
|
+
case 29:
|
|
223
|
+
_2[_3] = _10.sent(); // AuthType authentication
|
|
224
|
+
_10.label = 30;
|
|
225
|
+
case 30:
|
|
226
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
227
|
+
_4 = headerParameters;
|
|
228
|
+
_5 = "Cache-Control";
|
|
229
|
+
return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
|
|
230
|
+
case 31:
|
|
231
|
+
_4[_5] = _10.sent(); // CacheControl authentication
|
|
232
|
+
_10.label = 32;
|
|
233
|
+
case 32:
|
|
234
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
235
|
+
_6 = headerParameters;
|
|
236
|
+
_7 = "Sec-Ch-Ua-Mobile";
|
|
237
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
238
|
+
case 33:
|
|
239
|
+
_6[_7] = _10.sent(); // SecChUaMobile authentication
|
|
240
|
+
_10.label = 34;
|
|
241
|
+
case 34:
|
|
242
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
243
|
+
_8 = headerParameters;
|
|
244
|
+
_9 = "Accept-Encoding";
|
|
245
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
246
|
+
case 35:
|
|
247
|
+
_8[_9] = _10.sent(); // AcceptEncoding authentication
|
|
248
|
+
_10.label = 36;
|
|
249
|
+
case 36: return [4 /*yield*/, this.request({
|
|
250
|
+
path: "/graphql/{pathQueryId}/Favoriters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
251
|
+
method: 'GET',
|
|
252
|
+
headers: headerParameters,
|
|
253
|
+
query: queryParameters,
|
|
254
|
+
}, initOverrides)];
|
|
255
|
+
case 37:
|
|
256
|
+
response = _10.sent();
|
|
257
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetFavoriters200ResponseFromJSON)(jsonValue); })];
|
|
174
258
|
}
|
|
175
259
|
});
|
|
176
260
|
});
|
|
@@ -197,9 +281,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
197
281
|
*/
|
|
198
282
|
UserListApi.prototype.getFollowersRaw = function (requestParameters, initOverrides) {
|
|
199
283
|
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
201
|
-
return __generator(this, function (
|
|
202
|
-
switch (
|
|
284
|
+
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, response;
|
|
285
|
+
return __generator(this, function (_10) {
|
|
286
|
+
switch (_10.label) {
|
|
203
287
|
case 0:
|
|
204
288
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
205
289
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowers.');
|
|
@@ -218,76 +302,160 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
218
302
|
queryParameters['features'] = requestParameters.features;
|
|
219
303
|
}
|
|
220
304
|
headerParameters = {};
|
|
221
|
-
if (this.configuration && this.configuration.apiKey)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
if (!(this.configuration && this.configuration.
|
|
305
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
306
|
+
_a = headerParameters;
|
|
307
|
+
_b = "x-twitter-client-language";
|
|
308
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
309
|
+
case 1:
|
|
310
|
+
_a[_b] = _10.sent(); // ClientLanguage authentication
|
|
311
|
+
_10.label = 2;
|
|
312
|
+
case 2:
|
|
313
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
314
|
+
_c = headerParameters;
|
|
315
|
+
_d = "Accept";
|
|
316
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
317
|
+
case 3:
|
|
318
|
+
_c[_d] = _10.sent(); // Accept authentication
|
|
319
|
+
_10.label = 4;
|
|
320
|
+
case 4:
|
|
321
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
322
|
+
_e = headerParameters;
|
|
323
|
+
_f = "Sec-Fetch-Dest";
|
|
324
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
325
|
+
case 5:
|
|
326
|
+
_e[_f] = _10.sent(); // SecFetchDest authentication
|
|
327
|
+
_10.label = 6;
|
|
328
|
+
case 6:
|
|
329
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
330
|
+
_g = headerParameters;
|
|
331
|
+
_h = "Pragma";
|
|
332
|
+
return [4 /*yield*/, this.configuration.apiKey("Pragma")];
|
|
333
|
+
case 7:
|
|
334
|
+
_g[_h] = _10.sent(); // Pragma authentication
|
|
335
|
+
_10.label = 8;
|
|
336
|
+
case 8:
|
|
337
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
338
|
+
_j = headerParameters;
|
|
339
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
340
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
341
|
+
case 9:
|
|
342
|
+
_j[_k] = _10.sent(); // SecChUaPlatform authentication
|
|
343
|
+
_10.label = 10;
|
|
344
|
+
case 10:
|
|
345
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
346
|
+
_l = headerParameters;
|
|
347
|
+
_m = "Sec-Fetch-Mode";
|
|
348
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
349
|
+
case 11:
|
|
350
|
+
_l[_m] = _10.sent(); // SecFetchMode authentication
|
|
351
|
+
_10.label = 12;
|
|
352
|
+
case 12:
|
|
353
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
354
|
+
_o = headerParameters;
|
|
355
|
+
_p = "x-csrf-token";
|
|
356
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
357
|
+
case 13:
|
|
358
|
+
_o[_p] = _10.sent(); // CsrfToken authentication
|
|
359
|
+
_10.label = 14;
|
|
360
|
+
case 14:
|
|
361
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
362
|
+
_q = headerParameters;
|
|
363
|
+
_r = "x-guest-token";
|
|
364
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
365
|
+
case 15:
|
|
366
|
+
_q[_r] = _10.sent(); // GuestToken authentication
|
|
367
|
+
_10.label = 16;
|
|
368
|
+
case 16:
|
|
369
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
246
370
|
token = this.configuration.accessToken;
|
|
247
371
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
248
|
-
case
|
|
249
|
-
tokenString =
|
|
372
|
+
case 17:
|
|
373
|
+
tokenString = _10.sent();
|
|
250
374
|
if (tokenString) {
|
|
251
375
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
252
376
|
}
|
|
253
|
-
|
|
254
|
-
case
|
|
255
|
-
if (this.configuration && this.configuration.apiKey)
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
if (this.configuration && this.configuration.apiKey)
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
return [4 /*yield*/, this.
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
return [
|
|
377
|
+
_10.label = 18;
|
|
378
|
+
case 18:
|
|
379
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
380
|
+
_s = headerParameters;
|
|
381
|
+
_t = "Sec-Ch-Ua";
|
|
382
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
383
|
+
case 19:
|
|
384
|
+
_s[_t] = _10.sent(); // SecChUa authentication
|
|
385
|
+
_10.label = 20;
|
|
386
|
+
case 20:
|
|
387
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
388
|
+
_u = headerParameters;
|
|
389
|
+
_v = "x-twitter-active-user";
|
|
390
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
391
|
+
case 21:
|
|
392
|
+
_u[_v] = _10.sent(); // ActiveUser authentication
|
|
393
|
+
_10.label = 22;
|
|
394
|
+
case 22:
|
|
395
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
396
|
+
_w = headerParameters;
|
|
397
|
+
_x = "user-agent";
|
|
398
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
399
|
+
case 23:
|
|
400
|
+
_w[_x] = _10.sent(); // UserAgent authentication
|
|
401
|
+
_10.label = 24;
|
|
402
|
+
case 24:
|
|
403
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
404
|
+
_y = headerParameters;
|
|
405
|
+
_z = "Accept-Language";
|
|
406
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
407
|
+
case 25:
|
|
408
|
+
_y[_z] = _10.sent(); // AcceptLanguage authentication
|
|
409
|
+
_10.label = 26;
|
|
410
|
+
case 26:
|
|
411
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
412
|
+
_0 = headerParameters;
|
|
413
|
+
_1 = "Sec-Fetch-Site";
|
|
414
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
415
|
+
case 27:
|
|
416
|
+
_0[_1] = _10.sent(); // SecFetchSite authentication
|
|
417
|
+
_10.label = 28;
|
|
418
|
+
case 28:
|
|
419
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
420
|
+
_2 = headerParameters;
|
|
421
|
+
_3 = "x-twitter-auth-type";
|
|
422
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
423
|
+
case 29:
|
|
424
|
+
_2[_3] = _10.sent(); // AuthType authentication
|
|
425
|
+
_10.label = 30;
|
|
426
|
+
case 30:
|
|
427
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
428
|
+
_4 = headerParameters;
|
|
429
|
+
_5 = "Cache-Control";
|
|
430
|
+
return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
|
|
431
|
+
case 31:
|
|
432
|
+
_4[_5] = _10.sent(); // CacheControl authentication
|
|
433
|
+
_10.label = 32;
|
|
434
|
+
case 32:
|
|
435
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
436
|
+
_6 = headerParameters;
|
|
437
|
+
_7 = "Sec-Ch-Ua-Mobile";
|
|
438
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
439
|
+
case 33:
|
|
440
|
+
_6[_7] = _10.sent(); // SecChUaMobile authentication
|
|
441
|
+
_10.label = 34;
|
|
442
|
+
case 34:
|
|
443
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
444
|
+
_8 = headerParameters;
|
|
445
|
+
_9 = "Accept-Encoding";
|
|
446
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
447
|
+
case 35:
|
|
448
|
+
_8[_9] = _10.sent(); // AcceptEncoding authentication
|
|
449
|
+
_10.label = 36;
|
|
450
|
+
case 36: return [4 /*yield*/, this.request({
|
|
451
|
+
path: "/graphql/{pathQueryId}/Followers".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
452
|
+
method: 'GET',
|
|
453
|
+
headers: headerParameters,
|
|
454
|
+
query: queryParameters,
|
|
455
|
+
}, initOverrides)];
|
|
456
|
+
case 37:
|
|
457
|
+
response = _10.sent();
|
|
458
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetFollowers200ResponseFromJSON)(jsonValue); })];
|
|
291
459
|
}
|
|
292
460
|
});
|
|
293
461
|
});
|
|
@@ -314,9 +482,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
314
482
|
*/
|
|
315
483
|
UserListApi.prototype.getFollowersYouKnowRaw = function (requestParameters, initOverrides) {
|
|
316
484
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
318
|
-
return __generator(this, function (
|
|
319
|
-
switch (
|
|
485
|
+
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, response;
|
|
486
|
+
return __generator(this, function (_10) {
|
|
487
|
+
switch (_10.label) {
|
|
320
488
|
case 0:
|
|
321
489
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
322
490
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowersYouKnow.');
|
|
@@ -335,76 +503,160 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
335
503
|
queryParameters['features'] = requestParameters.features;
|
|
336
504
|
}
|
|
337
505
|
headerParameters = {};
|
|
338
|
-
if (this.configuration && this.configuration.apiKey)
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
if (!(this.configuration && this.configuration.
|
|
506
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
507
|
+
_a = headerParameters;
|
|
508
|
+
_b = "x-twitter-client-language";
|
|
509
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
510
|
+
case 1:
|
|
511
|
+
_a[_b] = _10.sent(); // ClientLanguage authentication
|
|
512
|
+
_10.label = 2;
|
|
513
|
+
case 2:
|
|
514
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
515
|
+
_c = headerParameters;
|
|
516
|
+
_d = "Accept";
|
|
517
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
518
|
+
case 3:
|
|
519
|
+
_c[_d] = _10.sent(); // Accept authentication
|
|
520
|
+
_10.label = 4;
|
|
521
|
+
case 4:
|
|
522
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
523
|
+
_e = headerParameters;
|
|
524
|
+
_f = "Sec-Fetch-Dest";
|
|
525
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
526
|
+
case 5:
|
|
527
|
+
_e[_f] = _10.sent(); // SecFetchDest authentication
|
|
528
|
+
_10.label = 6;
|
|
529
|
+
case 6:
|
|
530
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
531
|
+
_g = headerParameters;
|
|
532
|
+
_h = "Pragma";
|
|
533
|
+
return [4 /*yield*/, this.configuration.apiKey("Pragma")];
|
|
534
|
+
case 7:
|
|
535
|
+
_g[_h] = _10.sent(); // Pragma authentication
|
|
536
|
+
_10.label = 8;
|
|
537
|
+
case 8:
|
|
538
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
539
|
+
_j = headerParameters;
|
|
540
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
541
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
542
|
+
case 9:
|
|
543
|
+
_j[_k] = _10.sent(); // SecChUaPlatform authentication
|
|
544
|
+
_10.label = 10;
|
|
545
|
+
case 10:
|
|
546
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
547
|
+
_l = headerParameters;
|
|
548
|
+
_m = "Sec-Fetch-Mode";
|
|
549
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
550
|
+
case 11:
|
|
551
|
+
_l[_m] = _10.sent(); // SecFetchMode authentication
|
|
552
|
+
_10.label = 12;
|
|
553
|
+
case 12:
|
|
554
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
555
|
+
_o = headerParameters;
|
|
556
|
+
_p = "x-csrf-token";
|
|
557
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
558
|
+
case 13:
|
|
559
|
+
_o[_p] = _10.sent(); // CsrfToken authentication
|
|
560
|
+
_10.label = 14;
|
|
561
|
+
case 14:
|
|
562
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
563
|
+
_q = headerParameters;
|
|
564
|
+
_r = "x-guest-token";
|
|
565
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
566
|
+
case 15:
|
|
567
|
+
_q[_r] = _10.sent(); // GuestToken authentication
|
|
568
|
+
_10.label = 16;
|
|
569
|
+
case 16:
|
|
570
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
363
571
|
token = this.configuration.accessToken;
|
|
364
572
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
365
|
-
case
|
|
366
|
-
tokenString =
|
|
573
|
+
case 17:
|
|
574
|
+
tokenString = _10.sent();
|
|
367
575
|
if (tokenString) {
|
|
368
576
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
369
577
|
}
|
|
370
|
-
|
|
371
|
-
case
|
|
372
|
-
if (this.configuration && this.configuration.apiKey)
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
if (this.configuration && this.configuration.apiKey)
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
return [4 /*yield*/, this.
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
return [
|
|
578
|
+
_10.label = 18;
|
|
579
|
+
case 18:
|
|
580
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
581
|
+
_s = headerParameters;
|
|
582
|
+
_t = "Sec-Ch-Ua";
|
|
583
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
584
|
+
case 19:
|
|
585
|
+
_s[_t] = _10.sent(); // SecChUa authentication
|
|
586
|
+
_10.label = 20;
|
|
587
|
+
case 20:
|
|
588
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
589
|
+
_u = headerParameters;
|
|
590
|
+
_v = "x-twitter-active-user";
|
|
591
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
592
|
+
case 21:
|
|
593
|
+
_u[_v] = _10.sent(); // ActiveUser authentication
|
|
594
|
+
_10.label = 22;
|
|
595
|
+
case 22:
|
|
596
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
597
|
+
_w = headerParameters;
|
|
598
|
+
_x = "user-agent";
|
|
599
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
600
|
+
case 23:
|
|
601
|
+
_w[_x] = _10.sent(); // UserAgent authentication
|
|
602
|
+
_10.label = 24;
|
|
603
|
+
case 24:
|
|
604
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
605
|
+
_y = headerParameters;
|
|
606
|
+
_z = "Accept-Language";
|
|
607
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
608
|
+
case 25:
|
|
609
|
+
_y[_z] = _10.sent(); // AcceptLanguage authentication
|
|
610
|
+
_10.label = 26;
|
|
611
|
+
case 26:
|
|
612
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
613
|
+
_0 = headerParameters;
|
|
614
|
+
_1 = "Sec-Fetch-Site";
|
|
615
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
616
|
+
case 27:
|
|
617
|
+
_0[_1] = _10.sent(); // SecFetchSite authentication
|
|
618
|
+
_10.label = 28;
|
|
619
|
+
case 28:
|
|
620
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
621
|
+
_2 = headerParameters;
|
|
622
|
+
_3 = "x-twitter-auth-type";
|
|
623
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
624
|
+
case 29:
|
|
625
|
+
_2[_3] = _10.sent(); // AuthType authentication
|
|
626
|
+
_10.label = 30;
|
|
627
|
+
case 30:
|
|
628
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
629
|
+
_4 = headerParameters;
|
|
630
|
+
_5 = "Cache-Control";
|
|
631
|
+
return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
|
|
632
|
+
case 31:
|
|
633
|
+
_4[_5] = _10.sent(); // CacheControl authentication
|
|
634
|
+
_10.label = 32;
|
|
635
|
+
case 32:
|
|
636
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
637
|
+
_6 = headerParameters;
|
|
638
|
+
_7 = "Sec-Ch-Ua-Mobile";
|
|
639
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
640
|
+
case 33:
|
|
641
|
+
_6[_7] = _10.sent(); // SecChUaMobile authentication
|
|
642
|
+
_10.label = 34;
|
|
643
|
+
case 34:
|
|
644
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
645
|
+
_8 = headerParameters;
|
|
646
|
+
_9 = "Accept-Encoding";
|
|
647
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
648
|
+
case 35:
|
|
649
|
+
_8[_9] = _10.sent(); // AcceptEncoding authentication
|
|
650
|
+
_10.label = 36;
|
|
651
|
+
case 36: return [4 /*yield*/, this.request({
|
|
652
|
+
path: "/graphql/{pathQueryId}/FollowersYouKnow".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
653
|
+
method: 'GET',
|
|
654
|
+
headers: headerParameters,
|
|
655
|
+
query: queryParameters,
|
|
656
|
+
}, initOverrides)];
|
|
657
|
+
case 37:
|
|
658
|
+
response = _10.sent();
|
|
659
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetFollowers200ResponseFromJSON)(jsonValue); })];
|
|
408
660
|
}
|
|
409
661
|
});
|
|
410
662
|
});
|
|
@@ -431,9 +683,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
431
683
|
*/
|
|
432
684
|
UserListApi.prototype.getFollowingRaw = function (requestParameters, initOverrides) {
|
|
433
685
|
return __awaiter(this, void 0, void 0, function () {
|
|
434
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
435
|
-
return __generator(this, function (
|
|
436
|
-
switch (
|
|
686
|
+
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, response;
|
|
687
|
+
return __generator(this, function (_10) {
|
|
688
|
+
switch (_10.label) {
|
|
437
689
|
case 0:
|
|
438
690
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
439
691
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowing.');
|
|
@@ -452,76 +704,160 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
452
704
|
queryParameters['features'] = requestParameters.features;
|
|
453
705
|
}
|
|
454
706
|
headerParameters = {};
|
|
455
|
-
if (this.configuration && this.configuration.apiKey)
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
if (!(this.configuration && this.configuration.
|
|
707
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
708
|
+
_a = headerParameters;
|
|
709
|
+
_b = "x-twitter-client-language";
|
|
710
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
711
|
+
case 1:
|
|
712
|
+
_a[_b] = _10.sent(); // ClientLanguage authentication
|
|
713
|
+
_10.label = 2;
|
|
714
|
+
case 2:
|
|
715
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
716
|
+
_c = headerParameters;
|
|
717
|
+
_d = "Accept";
|
|
718
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
719
|
+
case 3:
|
|
720
|
+
_c[_d] = _10.sent(); // Accept authentication
|
|
721
|
+
_10.label = 4;
|
|
722
|
+
case 4:
|
|
723
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
724
|
+
_e = headerParameters;
|
|
725
|
+
_f = "Sec-Fetch-Dest";
|
|
726
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
727
|
+
case 5:
|
|
728
|
+
_e[_f] = _10.sent(); // SecFetchDest authentication
|
|
729
|
+
_10.label = 6;
|
|
730
|
+
case 6:
|
|
731
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
732
|
+
_g = headerParameters;
|
|
733
|
+
_h = "Pragma";
|
|
734
|
+
return [4 /*yield*/, this.configuration.apiKey("Pragma")];
|
|
735
|
+
case 7:
|
|
736
|
+
_g[_h] = _10.sent(); // Pragma authentication
|
|
737
|
+
_10.label = 8;
|
|
738
|
+
case 8:
|
|
739
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
740
|
+
_j = headerParameters;
|
|
741
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
742
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
743
|
+
case 9:
|
|
744
|
+
_j[_k] = _10.sent(); // SecChUaPlatform authentication
|
|
745
|
+
_10.label = 10;
|
|
746
|
+
case 10:
|
|
747
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
748
|
+
_l = headerParameters;
|
|
749
|
+
_m = "Sec-Fetch-Mode";
|
|
750
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
751
|
+
case 11:
|
|
752
|
+
_l[_m] = _10.sent(); // SecFetchMode authentication
|
|
753
|
+
_10.label = 12;
|
|
754
|
+
case 12:
|
|
755
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
756
|
+
_o = headerParameters;
|
|
757
|
+
_p = "x-csrf-token";
|
|
758
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
759
|
+
case 13:
|
|
760
|
+
_o[_p] = _10.sent(); // CsrfToken authentication
|
|
761
|
+
_10.label = 14;
|
|
762
|
+
case 14:
|
|
763
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
764
|
+
_q = headerParameters;
|
|
765
|
+
_r = "x-guest-token";
|
|
766
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
767
|
+
case 15:
|
|
768
|
+
_q[_r] = _10.sent(); // GuestToken authentication
|
|
769
|
+
_10.label = 16;
|
|
770
|
+
case 16:
|
|
771
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
480
772
|
token = this.configuration.accessToken;
|
|
481
773
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
482
|
-
case
|
|
483
|
-
tokenString =
|
|
774
|
+
case 17:
|
|
775
|
+
tokenString = _10.sent();
|
|
484
776
|
if (tokenString) {
|
|
485
777
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
486
778
|
}
|
|
487
|
-
|
|
488
|
-
case
|
|
489
|
-
if (this.configuration && this.configuration.apiKey)
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
if (this.configuration && this.configuration.apiKey)
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
return [4 /*yield*/, this.
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
return [
|
|
779
|
+
_10.label = 18;
|
|
780
|
+
case 18:
|
|
781
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
782
|
+
_s = headerParameters;
|
|
783
|
+
_t = "Sec-Ch-Ua";
|
|
784
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
785
|
+
case 19:
|
|
786
|
+
_s[_t] = _10.sent(); // SecChUa authentication
|
|
787
|
+
_10.label = 20;
|
|
788
|
+
case 20:
|
|
789
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
790
|
+
_u = headerParameters;
|
|
791
|
+
_v = "x-twitter-active-user";
|
|
792
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
793
|
+
case 21:
|
|
794
|
+
_u[_v] = _10.sent(); // ActiveUser authentication
|
|
795
|
+
_10.label = 22;
|
|
796
|
+
case 22:
|
|
797
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
798
|
+
_w = headerParameters;
|
|
799
|
+
_x = "user-agent";
|
|
800
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
801
|
+
case 23:
|
|
802
|
+
_w[_x] = _10.sent(); // UserAgent authentication
|
|
803
|
+
_10.label = 24;
|
|
804
|
+
case 24:
|
|
805
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
806
|
+
_y = headerParameters;
|
|
807
|
+
_z = "Accept-Language";
|
|
808
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
809
|
+
case 25:
|
|
810
|
+
_y[_z] = _10.sent(); // AcceptLanguage authentication
|
|
811
|
+
_10.label = 26;
|
|
812
|
+
case 26:
|
|
813
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
814
|
+
_0 = headerParameters;
|
|
815
|
+
_1 = "Sec-Fetch-Site";
|
|
816
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
817
|
+
case 27:
|
|
818
|
+
_0[_1] = _10.sent(); // SecFetchSite authentication
|
|
819
|
+
_10.label = 28;
|
|
820
|
+
case 28:
|
|
821
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
822
|
+
_2 = headerParameters;
|
|
823
|
+
_3 = "x-twitter-auth-type";
|
|
824
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
825
|
+
case 29:
|
|
826
|
+
_2[_3] = _10.sent(); // AuthType authentication
|
|
827
|
+
_10.label = 30;
|
|
828
|
+
case 30:
|
|
829
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
830
|
+
_4 = headerParameters;
|
|
831
|
+
_5 = "Cache-Control";
|
|
832
|
+
return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
|
|
833
|
+
case 31:
|
|
834
|
+
_4[_5] = _10.sent(); // CacheControl authentication
|
|
835
|
+
_10.label = 32;
|
|
836
|
+
case 32:
|
|
837
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
838
|
+
_6 = headerParameters;
|
|
839
|
+
_7 = "Sec-Ch-Ua-Mobile";
|
|
840
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
841
|
+
case 33:
|
|
842
|
+
_6[_7] = _10.sent(); // SecChUaMobile authentication
|
|
843
|
+
_10.label = 34;
|
|
844
|
+
case 34:
|
|
845
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
846
|
+
_8 = headerParameters;
|
|
847
|
+
_9 = "Accept-Encoding";
|
|
848
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
849
|
+
case 35:
|
|
850
|
+
_8[_9] = _10.sent(); // AcceptEncoding authentication
|
|
851
|
+
_10.label = 36;
|
|
852
|
+
case 36: return [4 /*yield*/, this.request({
|
|
853
|
+
path: "/graphql/{pathQueryId}/Following".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
854
|
+
method: 'GET',
|
|
855
|
+
headers: headerParameters,
|
|
856
|
+
query: queryParameters,
|
|
857
|
+
}, initOverrides)];
|
|
858
|
+
case 37:
|
|
859
|
+
response = _10.sent();
|
|
860
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetFollowers200ResponseFromJSON)(jsonValue); })];
|
|
525
861
|
}
|
|
526
862
|
});
|
|
527
863
|
});
|
|
@@ -548,9 +884,9 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
548
884
|
*/
|
|
549
885
|
UserListApi.prototype.getRetweetersRaw = function (requestParameters, initOverrides) {
|
|
550
886
|
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
552
|
-
return __generator(this, function (
|
|
553
|
-
switch (
|
|
887
|
+
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, response;
|
|
888
|
+
return __generator(this, function (_10) {
|
|
889
|
+
switch (_10.label) {
|
|
554
890
|
case 0:
|
|
555
891
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
556
892
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling getRetweeters.');
|
|
@@ -569,76 +905,160 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
569
905
|
queryParameters['features'] = requestParameters.features;
|
|
570
906
|
}
|
|
571
907
|
headerParameters = {};
|
|
572
|
-
if (this.configuration && this.configuration.apiKey)
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
if (!(this.configuration && this.configuration.
|
|
908
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
909
|
+
_a = headerParameters;
|
|
910
|
+
_b = "x-twitter-client-language";
|
|
911
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
912
|
+
case 1:
|
|
913
|
+
_a[_b] = _10.sent(); // ClientLanguage authentication
|
|
914
|
+
_10.label = 2;
|
|
915
|
+
case 2:
|
|
916
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
917
|
+
_c = headerParameters;
|
|
918
|
+
_d = "Accept";
|
|
919
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
920
|
+
case 3:
|
|
921
|
+
_c[_d] = _10.sent(); // Accept authentication
|
|
922
|
+
_10.label = 4;
|
|
923
|
+
case 4:
|
|
924
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
925
|
+
_e = headerParameters;
|
|
926
|
+
_f = "Sec-Fetch-Dest";
|
|
927
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
928
|
+
case 5:
|
|
929
|
+
_e[_f] = _10.sent(); // SecFetchDest authentication
|
|
930
|
+
_10.label = 6;
|
|
931
|
+
case 6:
|
|
932
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
933
|
+
_g = headerParameters;
|
|
934
|
+
_h = "Pragma";
|
|
935
|
+
return [4 /*yield*/, this.configuration.apiKey("Pragma")];
|
|
936
|
+
case 7:
|
|
937
|
+
_g[_h] = _10.sent(); // Pragma authentication
|
|
938
|
+
_10.label = 8;
|
|
939
|
+
case 8:
|
|
940
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
941
|
+
_j = headerParameters;
|
|
942
|
+
_k = "Sec-Ch-Ua-Platform";
|
|
943
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
944
|
+
case 9:
|
|
945
|
+
_j[_k] = _10.sent(); // SecChUaPlatform authentication
|
|
946
|
+
_10.label = 10;
|
|
947
|
+
case 10:
|
|
948
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
949
|
+
_l = headerParameters;
|
|
950
|
+
_m = "Sec-Fetch-Mode";
|
|
951
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
952
|
+
case 11:
|
|
953
|
+
_l[_m] = _10.sent(); // SecFetchMode authentication
|
|
954
|
+
_10.label = 12;
|
|
955
|
+
case 12:
|
|
956
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
957
|
+
_o = headerParameters;
|
|
958
|
+
_p = "x-csrf-token";
|
|
959
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
960
|
+
case 13:
|
|
961
|
+
_o[_p] = _10.sent(); // CsrfToken authentication
|
|
962
|
+
_10.label = 14;
|
|
963
|
+
case 14:
|
|
964
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
965
|
+
_q = headerParameters;
|
|
966
|
+
_r = "x-guest-token";
|
|
967
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
968
|
+
case 15:
|
|
969
|
+
_q[_r] = _10.sent(); // GuestToken authentication
|
|
970
|
+
_10.label = 16;
|
|
971
|
+
case 16:
|
|
972
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
|
|
597
973
|
token = this.configuration.accessToken;
|
|
598
974
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
599
|
-
case
|
|
600
|
-
tokenString =
|
|
975
|
+
case 17:
|
|
976
|
+
tokenString = _10.sent();
|
|
601
977
|
if (tokenString) {
|
|
602
978
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
603
979
|
}
|
|
604
|
-
|
|
605
|
-
case
|
|
606
|
-
if (this.configuration && this.configuration.apiKey)
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
if (this.configuration && this.configuration.apiKey)
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
return [4 /*yield*/, this.
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
return [
|
|
980
|
+
_10.label = 18;
|
|
981
|
+
case 18:
|
|
982
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
983
|
+
_s = headerParameters;
|
|
984
|
+
_t = "Sec-Ch-Ua";
|
|
985
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
986
|
+
case 19:
|
|
987
|
+
_s[_t] = _10.sent(); // SecChUa authentication
|
|
988
|
+
_10.label = 20;
|
|
989
|
+
case 20:
|
|
990
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
991
|
+
_u = headerParameters;
|
|
992
|
+
_v = "x-twitter-active-user";
|
|
993
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
994
|
+
case 21:
|
|
995
|
+
_u[_v] = _10.sent(); // ActiveUser authentication
|
|
996
|
+
_10.label = 22;
|
|
997
|
+
case 22:
|
|
998
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
999
|
+
_w = headerParameters;
|
|
1000
|
+
_x = "user-agent";
|
|
1001
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1002
|
+
case 23:
|
|
1003
|
+
_w[_x] = _10.sent(); // UserAgent authentication
|
|
1004
|
+
_10.label = 24;
|
|
1005
|
+
case 24:
|
|
1006
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1007
|
+
_y = headerParameters;
|
|
1008
|
+
_z = "Accept-Language";
|
|
1009
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1010
|
+
case 25:
|
|
1011
|
+
_y[_z] = _10.sent(); // AcceptLanguage authentication
|
|
1012
|
+
_10.label = 26;
|
|
1013
|
+
case 26:
|
|
1014
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1015
|
+
_0 = headerParameters;
|
|
1016
|
+
_1 = "Sec-Fetch-Site";
|
|
1017
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1018
|
+
case 27:
|
|
1019
|
+
_0[_1] = _10.sent(); // SecFetchSite authentication
|
|
1020
|
+
_10.label = 28;
|
|
1021
|
+
case 28:
|
|
1022
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1023
|
+
_2 = headerParameters;
|
|
1024
|
+
_3 = "x-twitter-auth-type";
|
|
1025
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1026
|
+
case 29:
|
|
1027
|
+
_2[_3] = _10.sent(); // AuthType authentication
|
|
1028
|
+
_10.label = 30;
|
|
1029
|
+
case 30:
|
|
1030
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1031
|
+
_4 = headerParameters;
|
|
1032
|
+
_5 = "Cache-Control";
|
|
1033
|
+
return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
|
|
1034
|
+
case 31:
|
|
1035
|
+
_4[_5] = _10.sent(); // CacheControl authentication
|
|
1036
|
+
_10.label = 32;
|
|
1037
|
+
case 32:
|
|
1038
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1039
|
+
_6 = headerParameters;
|
|
1040
|
+
_7 = "Sec-Ch-Ua-Mobile";
|
|
1041
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1042
|
+
case 33:
|
|
1043
|
+
_6[_7] = _10.sent(); // SecChUaMobile authentication
|
|
1044
|
+
_10.label = 34;
|
|
1045
|
+
case 34:
|
|
1046
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1047
|
+
_8 = headerParameters;
|
|
1048
|
+
_9 = "Accept-Encoding";
|
|
1049
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1050
|
+
case 35:
|
|
1051
|
+
_8[_9] = _10.sent(); // AcceptEncoding authentication
|
|
1052
|
+
_10.label = 36;
|
|
1053
|
+
case 36: return [4 /*yield*/, this.request({
|
|
1054
|
+
path: "/graphql/{pathQueryId}/Retweeters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
1055
|
+
method: 'GET',
|
|
1056
|
+
headers: headerParameters,
|
|
1057
|
+
query: queryParameters,
|
|
1058
|
+
}, initOverrides)];
|
|
1059
|
+
case 37:
|
|
1060
|
+
response = _10.sent();
|
|
1061
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetRetweeters200ResponseFromJSON)(jsonValue); })];
|
|
642
1062
|
}
|
|
643
1063
|
});
|
|
644
1064
|
});
|