twitter-openapi-typescript-generated 0.0.36 → 0.0.38
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 +45 -31
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +520 -297
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +26 -26
- package/dist/apis/OtherApi.js +282 -282
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +114 -114
- package/dist/apis/PostApi.js +1760 -1760
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +219 -167
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +3371 -2503
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +45 -45
- package/dist/apis/UserApi.js +520 -520
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +83 -83
- package/dist/apis/UserListApi.js +1165 -1165
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +31 -31
- package/dist/apis/UsersApi.js +297 -297
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts +60 -60
- package/dist/apis/V11GetApi.js +617 -617
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts +65 -65
- package/dist/apis/V11PostApi.js +673 -673
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts +64 -64
- package/dist/apis/V20GetApi.js +501 -501
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/apis/index.d.ts +10 -10
- package/dist/apis/index.js +28 -28
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -21
- package/dist/models/AboutCommunityResult.d.ts +41 -0
- package/dist/models/AboutCommunityResult.d.ts.map +1 -0
- package/dist/models/AboutCommunityResult.js +58 -0
- package/dist/models/AboutCommunityResult.js.map +1 -0
- package/dist/models/AboutCommunityResults.d.ts +34 -0
- package/dist/models/AboutCommunityResults.d.ts.map +1 -0
- package/dist/models/AboutCommunityResults.js +53 -0
- package/dist/models/AboutCommunityResults.js.map +1 -0
- package/dist/models/AboutCommunityTweetData.d.ts +34 -0
- package/dist/models/AboutCommunityTweetData.d.ts.map +1 -0
- package/dist/models/AboutCommunityTweetData.js +53 -0
- package/dist/models/AboutCommunityTweetData.js.map +1 -0
- package/dist/models/AdditionalMediaInfo.d.ts +64 -64
- package/dist/models/AdditionalMediaInfo.js +63 -64
- package/dist/models/AdditionalMediaInfo.js.map +1 -1
- package/dist/models/AdditionalMediaInfoCallToActions.d.ts +39 -39
- package/dist/models/AdditionalMediaInfoCallToActions.js +52 -53
- package/dist/models/AdditionalMediaInfoCallToActions.js.map +1 -1
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +32 -32
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +51 -52
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +1 -1
- package/dist/models/AllowDownloadStatus.d.ts +32 -32
- package/dist/models/AllowDownloadStatus.js +49 -50
- package/dist/models/AllowDownloadStatus.js.map +1 -1
- package/dist/models/AnalysisResults.d.ts +34 -0
- package/dist/models/AnalysisResults.d.ts.map +1 -0
- package/dist/models/AnalysisResults.js +53 -0
- package/dist/models/AnalysisResults.js.map +1 -0
- package/dist/models/Article.d.ts +33 -33
- package/dist/models/Article.js +52 -53
- package/dist/models/Article.js.map +1 -1
- package/dist/models/ArticleCoverMedia.d.ts +51 -51
- package/dist/models/ArticleCoverMedia.js +64 -65
- package/dist/models/ArticleCoverMedia.js.map +1 -1
- package/dist/models/ArticleCoverMediaColorInfo.d.ts +33 -33
- package/dist/models/ArticleCoverMediaColorInfo.js +52 -53
- package/dist/models/ArticleCoverMediaColorInfo.js.map +1 -1
- package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts +39 -39
- package/dist/models/ArticleCoverMediaColorInfoPalette.js +56 -57
- package/dist/models/ArticleCoverMediaColorInfoPalette.js.map +1 -1
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +44 -44
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js +59 -60
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js.map +1 -1
- package/dist/models/ArticleCoverMediaInfo.d.ts +58 -58
- package/dist/models/ArticleCoverMediaInfo.js +67 -68
- package/dist/models/ArticleCoverMediaInfo.js.map +1 -1
- package/dist/models/ArticleLifecycleState.d.ts +32 -32
- package/dist/models/ArticleLifecycleState.js +51 -52
- package/dist/models/ArticleLifecycleState.js.map +1 -1
- package/dist/models/ArticleMetadata.d.ts +32 -32
- package/dist/models/ArticleMetadata.js +51 -52
- package/dist/models/ArticleMetadata.js.map +1 -1
- package/dist/models/ArticleResult.d.ts +71 -71
- package/dist/models/ArticleResult.js +76 -77
- package/dist/models/ArticleResult.js.map +1 -1
- package/dist/models/ArticleResults.d.ts +33 -33
- package/dist/models/ArticleResults.js +52 -53
- package/dist/models/ArticleResults.js.map +1 -1
- package/dist/models/AuthorCommunityRelationship.d.ts +55 -55
- package/dist/models/AuthorCommunityRelationship.js +66 -66
- package/dist/models/AuthorCommunityRelationship.js.map +1 -1
- package/dist/models/BirdwatchEntity.d.ts +45 -45
- package/dist/models/BirdwatchEntity.js +60 -61
- package/dist/models/BirdwatchEntity.js.map +1 -1
- package/dist/models/BirdwatchEntityRef.d.ts +65 -65
- package/dist/models/BirdwatchEntityRef.js +71 -71
- package/dist/models/BirdwatchEntityRef.js.map +1 -1
- package/dist/models/BirdwatchPivot.d.ts +105 -99
- package/dist/models/BirdwatchPivot.d.ts.map +1 -1
- package/dist/models/BirdwatchPivot.js +91 -89
- package/dist/models/BirdwatchPivot.js.map +1 -1
- package/dist/models/BirdwatchPivotCallToAction.d.ts +44 -44
- package/dist/models/BirdwatchPivotCallToAction.js +59 -60
- package/dist/models/BirdwatchPivotCallToAction.js.map +1 -1
- package/dist/models/BirdwatchPivotFooter.d.ts +39 -39
- package/dist/models/BirdwatchPivotFooter.js +56 -57
- package/dist/models/BirdwatchPivotFooter.js.map +1 -1
- package/dist/models/BirdwatchPivotNote.d.ts +32 -32
- package/dist/models/BirdwatchPivotNote.js +51 -52
- package/dist/models/BirdwatchPivotNote.js.map +1 -1
- package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -39
- package/dist/models/BirdwatchPivotSubtitle.js +56 -57
- package/dist/models/BirdwatchPivotSubtitle.js.map +1 -1
- package/dist/models/BookmarksResponse.d.ts +40 -40
- package/dist/models/BookmarksResponse.js +53 -54
- package/dist/models/BookmarksResponse.js.map +1 -1
- package/dist/models/BookmarksResponseData.d.ts +33 -33
- package/dist/models/BookmarksResponseData.js +52 -53
- package/dist/models/BookmarksResponseData.js.map +1 -1
- package/dist/models/BookmarksTimeline.d.ts +33 -33
- package/dist/models/BookmarksTimeline.js +52 -53
- package/dist/models/BookmarksTimeline.js.map +1 -1
- package/dist/models/Callback.d.ts +32 -32
- package/dist/models/Callback.js +51 -52
- package/dist/models/Callback.js.map +1 -1
- package/dist/models/ClientEventInfo.d.ts +46 -46
- package/dist/models/ClientEventInfo.js +53 -54
- package/dist/models/ClientEventInfo.js.map +1 -1
- package/dist/models/CommunitiesActions.d.ts +32 -32
- package/dist/models/CommunitiesActions.js +51 -52
- package/dist/models/CommunitiesActions.js.map +1 -1
- package/dist/models/Community.d.ts +33 -33
- package/dist/models/Community.js +52 -53
- package/dist/models/Community.js.map +1 -1
- package/dist/models/CommunityAboutTimelineResponse.d.ts +41 -0
- package/dist/models/CommunityAboutTimelineResponse.d.ts.map +1 -0
- package/dist/models/CommunityAboutTimelineResponse.js +56 -0
- package/dist/models/CommunityAboutTimelineResponse.js.map +1 -0
- package/dist/models/CommunityActions.d.ts +61 -61
- package/dist/models/CommunityActions.js +62 -63
- package/dist/models/CommunityActions.js.map +1 -1
- package/dist/models/CommunityData.d.ts +219 -219
- package/dist/models/CommunityData.js +132 -132
- package/dist/models/CommunityData.js.map +1 -1
- package/dist/models/CommunityDeleteActionResult.d.ts +46 -46
- package/dist/models/CommunityDeleteActionResult.js +63 -63
- package/dist/models/CommunityDeleteActionResult.js.map +1 -1
- package/dist/models/CommunityInvitesResult.d.ts +52 -52
- package/dist/models/CommunityInvitesResult.js +67 -67
- package/dist/models/CommunityInvitesResult.js.map +1 -1
- package/dist/models/CommunityJoinAction.d.ts +33 -33
- package/dist/models/CommunityJoinAction.js +52 -53
- package/dist/models/CommunityJoinAction.js.map +1 -1
- package/dist/models/CommunityJoinActionResultUnion.d.ts +27 -27
- package/dist/models/CommunityJoinActionResultUnion.js +54 -55
- package/dist/models/CommunityJoinActionResultUnion.js.map +1 -1
- package/dist/models/CommunityJoinActionUnavailable.d.ts +52 -52
- package/dist/models/CommunityJoinActionUnavailable.js +67 -67
- package/dist/models/CommunityJoinActionUnavailable.js.map +1 -1
- package/dist/models/CommunityJoinRequestsResult.d.ts +33 -33
- package/dist/models/CommunityJoinRequestsResult.js +52 -53
- package/dist/models/CommunityJoinRequestsResult.js.map +1 -1
- package/dist/models/CommunityLeaveActionResult.d.ts +52 -52
- package/dist/models/CommunityLeaveActionResult.js +67 -67
- package/dist/models/CommunityLeaveActionResult.js.map +1 -1
- package/dist/models/CommunityMediaTimelineResponse.d.ts +41 -0
- package/dist/models/CommunityMediaTimelineResponse.d.ts.map +1 -0
- package/dist/models/CommunityMediaTimelineResponse.js +56 -0
- package/dist/models/CommunityMediaTimelineResponse.js.map +1 -0
- package/dist/models/CommunityPinActionResult.d.ts +33 -33
- package/dist/models/CommunityPinActionResult.js +52 -53
- package/dist/models/CommunityPinActionResult.js.map +1 -1
- package/dist/models/CommunityRelationship.d.ts +53 -53
- package/dist/models/CommunityRelationship.js +64 -65
- package/dist/models/CommunityRelationship.js.map +1 -1
- package/dist/models/CommunityRule.d.ts +44 -44
- package/dist/models/CommunityRule.js +57 -58
- package/dist/models/CommunityRule.js.map +1 -1
- package/dist/models/CommunityTweetsTimelineResponse.d.ts +41 -0
- package/dist/models/CommunityTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/CommunityTweetsTimelineResponse.js +56 -0
- package/dist/models/CommunityTweetsTimelineResponse.js.map +1 -0
- package/dist/models/CommunityUnpinActionResult.d.ts +33 -33
- package/dist/models/CommunityUnpinActionResult.js +52 -53
- package/dist/models/CommunityUnpinActionResult.js.map +1 -1
- package/dist/models/CommunityUrls.d.ts +33 -33
- package/dist/models/CommunityUrls.js +52 -53
- package/dist/models/CommunityUrls.js.map +1 -1
- package/dist/models/CommunityUrlsPermalink.d.ts +32 -32
- package/dist/models/CommunityUrlsPermalink.js +51 -52
- package/dist/models/CommunityUrlsPermalink.js.map +1 -1
- package/dist/models/ContentEntryType.d.ts +26 -26
- package/dist/models/ContentEntryType.js +52 -52
- package/dist/models/ContentEntryType.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +32 -30
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +58 -56
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/ContentUnion.d.ts +30 -30
- package/dist/models/ContentUnion.js +59 -60
- package/dist/models/ContentUnion.js.map +1 -1
- package/dist/models/ConversationControl.d.ts +41 -41
- package/dist/models/ConversationControl.js +60 -60
- package/dist/models/ConversationControl.js.map +1 -1
- package/dist/models/CoverCta.d.ts +66 -66
- package/dist/models/CoverCta.js +73 -73
- package/dist/models/CoverCta.js.map +1 -1
- package/dist/models/CreateBookmarkResponse.d.ts +40 -40
- package/dist/models/CreateBookmarkResponse.js +55 -56
- package/dist/models/CreateBookmarkResponse.js.map +1 -1
- package/dist/models/CreateBookmarkResponseData.d.ts +32 -32
- package/dist/models/CreateBookmarkResponseData.js +49 -50
- package/dist/models/CreateBookmarkResponseData.js.map +1 -1
- package/dist/models/CreateRetweet.d.ts +33 -33
- package/dist/models/CreateRetweet.js +52 -53
- package/dist/models/CreateRetweet.js.map +1 -1
- package/dist/models/CreateRetweetResponse.d.ts +40 -40
- package/dist/models/CreateRetweetResponse.js +55 -56
- package/dist/models/CreateRetweetResponse.js.map +1 -1
- package/dist/models/CreateRetweetResponseData.d.ts +33 -33
- package/dist/models/CreateRetweetResponseData.js +50 -51
- package/dist/models/CreateRetweetResponseData.js.map +1 -1
- package/dist/models/CreateRetweetResponseResult.d.ts +33 -33
- package/dist/models/CreateRetweetResponseResult.js +52 -53
- package/dist/models/CreateRetweetResponseResult.js.map +1 -1
- package/dist/models/CreateTweet.d.ts +33 -33
- package/dist/models/CreateTweet.js +52 -53
- package/dist/models/CreateTweet.js.map +1 -1
- package/dist/models/CreateTweetResponse.d.ts +40 -40
- package/dist/models/CreateTweetResponse.js +55 -56
- package/dist/models/CreateTweetResponse.js.map +1 -1
- package/dist/models/CreateTweetResponseData.d.ts +33 -33
- package/dist/models/CreateTweetResponseData.js +50 -51
- package/dist/models/CreateTweetResponseData.js.map +1 -1
- package/dist/models/CreateTweetResponseResult.d.ts +33 -33
- package/dist/models/CreateTweetResponseResult.js +52 -53
- package/dist/models/CreateTweetResponseResult.js.map +1 -1
- package/dist/models/CtaClientEventInfo.d.ts +39 -39
- package/dist/models/CtaClientEventInfo.js +58 -58
- package/dist/models/CtaClientEventInfo.js.map +1 -1
- package/dist/models/CursorType.d.ts +29 -29
- package/dist/models/CursorType.js +55 -55
- package/dist/models/CursorType.js.map +1 -1
- package/dist/models/DeleteBookmarkResponse.d.ts +40 -40
- package/dist/models/DeleteBookmarkResponse.js +55 -56
- package/dist/models/DeleteBookmarkResponse.js.map +1 -1
- package/dist/models/DeleteBookmarkResponseData.d.ts +32 -32
- package/dist/models/DeleteBookmarkResponseData.js +49 -50
- package/dist/models/DeleteBookmarkResponseData.js.map +1 -1
- package/dist/models/DeleteRetweet.d.ts +33 -33
- package/dist/models/DeleteRetweet.js +52 -53
- package/dist/models/DeleteRetweet.js.map +1 -1
- package/dist/models/DeleteRetweetResponse.d.ts +40 -40
- package/dist/models/DeleteRetweetResponse.js +55 -56
- package/dist/models/DeleteRetweetResponse.js.map +1 -1
- package/dist/models/DeleteRetweetResponseData.d.ts +33 -33
- package/dist/models/DeleteRetweetResponseData.js +50 -51
- package/dist/models/DeleteRetweetResponseData.js.map +1 -1
- package/dist/models/DeleteRetweetResponseResult.d.ts +33 -33
- package/dist/models/DeleteRetweetResponseResult.js +50 -51
- package/dist/models/DeleteRetweetResponseResult.js.map +1 -1
- package/dist/models/DeleteTweetResponse.d.ts +40 -40
- package/dist/models/DeleteTweetResponse.js +55 -56
- package/dist/models/DeleteTweetResponse.js.map +1 -1
- package/dist/models/DeleteTweetResponseData.d.ts +33 -33
- package/dist/models/DeleteTweetResponseData.js +50 -51
- package/dist/models/DeleteTweetResponseData.js.map +1 -1
- package/dist/models/DeleteTweetResponseResult.d.ts +32 -32
- package/dist/models/DeleteTweetResponseResult.js +51 -52
- package/dist/models/DeleteTweetResponseResult.js.map +1 -1
- package/dist/models/DisplayTreatment.d.ts +38 -38
- package/dist/models/DisplayTreatment.js +53 -54
- package/dist/models/DisplayTreatment.js.map +1 -1
- package/dist/models/DisplayType.d.ts +27 -27
- package/dist/models/DisplayType.js +53 -53
- package/dist/models/DisplayType.js.map +1 -1
- package/dist/models/Entities.d.ts +71 -71
- package/dist/models/Entities.js +70 -71
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/ErrorExtensions.d.ts +63 -63
- package/dist/models/ErrorExtensions.js +70 -71
- package/dist/models/ErrorExtensions.js.map +1 -1
- package/dist/models/ErrorResponse.d.ts +89 -89
- package/dist/models/ErrorResponse.js +88 -89
- package/dist/models/ErrorResponse.js.map +1 -1
- package/dist/models/ExtMediaAvailability.d.ts +46 -46
- package/dist/models/ExtMediaAvailability.js +59 -59
- package/dist/models/ExtMediaAvailability.js.map +1 -1
- package/dist/models/ExtendedEntities.d.ts +33 -33
- package/dist/models/ExtendedEntities.js +52 -53
- package/dist/models/ExtendedEntities.js.map +1 -1
- package/dist/models/FavoriteTweet.d.ts +32 -32
- package/dist/models/FavoriteTweet.js +49 -50
- package/dist/models/FavoriteTweet.js.map +1 -1
- package/dist/models/FavoriteTweetResponse.d.ts +40 -40
- package/dist/models/FavoriteTweetResponse.js +55 -56
- package/dist/models/FavoriteTweetResponse.js.map +1 -1
- package/dist/models/FeedbackInfo.d.ts +39 -39
- package/dist/models/FeedbackInfo.js +52 -53
- package/dist/models/FeedbackInfo.js.map +1 -1
- package/dist/models/FollowResponse.d.ts +40 -40
- package/dist/models/FollowResponse.js +55 -56
- package/dist/models/FollowResponse.js.map +1 -1
- package/dist/models/FollowResponseData.d.ts +33 -33
- package/dist/models/FollowResponseData.js +50 -51
- package/dist/models/FollowResponseData.js.map +1 -1
- package/dist/models/FollowResponseResult.d.ts +40 -40
- package/dist/models/FollowResponseResult.js +57 -58
- package/dist/models/FollowResponseResult.js.map +1 -1
- package/dist/models/FollowResponseUser.d.ts +33 -33
- package/dist/models/FollowResponseUser.js +52 -53
- package/dist/models/FollowResponseUser.js.map +1 -1
- package/dist/models/FollowTimeline.d.ts +33 -33
- package/dist/models/FollowTimeline.js +52 -53
- package/dist/models/FollowTimeline.js.map +1 -1
- package/dist/models/GrokImageAnnotation.d.ts +39 -0
- package/dist/models/GrokImageAnnotation.d.ts.map +1 -0
- package/dist/models/GrokImageAnnotation.js +56 -0
- package/dist/models/GrokImageAnnotation.js.map +1 -0
- package/dist/models/GrokShareAttachment.d.ts +33 -33
- package/dist/models/GrokShareAttachment.js +52 -53
- package/dist/models/GrokShareAttachment.js.map +1 -1
- package/dist/models/GrokShareAttachmentItem.d.ts +45 -38
- package/dist/models/GrokShareAttachmentItem.d.ts.map +1 -1
- package/dist/models/GrokShareAttachmentItem.js +58 -56
- package/dist/models/GrokShareAttachmentItem.js.map +1 -1
- package/dist/models/Highlight.d.ts +33 -33
- package/dist/models/Highlight.js +52 -53
- package/dist/models/Highlight.js.map +1 -1
- package/dist/models/HomeTimelineHome.d.ts +33 -33
- package/dist/models/HomeTimelineHome.js +52 -53
- package/dist/models/HomeTimelineHome.js.map +1 -1
- package/dist/models/HomeTimelineResponseData.d.ts +33 -33
- package/dist/models/HomeTimelineResponseData.d.ts.map +1 -1
- package/dist/models/HomeTimelineResponseData.js +52 -51
- package/dist/models/HomeTimelineResponseData.js.map +1 -1
- package/dist/models/InstructionType.d.ts +33 -31
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +59 -57
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +51 -45
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +94 -85
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +48 -45
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +89 -85
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ItemResult.d.ts +40 -40
- package/dist/models/ItemResult.js +53 -54
- package/dist/models/ItemResult.js.map +1 -1
- package/dist/models/LimitedActionResultsData.d.ts +52 -52
- package/dist/models/LimitedActionResultsData.js +71 -71
- package/dist/models/LimitedActionResultsData.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +40 -40
- package/dist/models/ListLatestTweetsTimelineResponse.js +55 -56
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
- package/dist/models/ListTweetsTimelineData.d.ts +33 -33
- package/dist/models/ListTweetsTimelineData.d.ts.map +1 -1
- package/dist/models/ListTweetsTimelineData.js +52 -51
- package/dist/models/ListTweetsTimelineData.js.map +1 -1
- package/dist/models/ListTweetsTimelineList.d.ts +33 -33
- package/dist/models/ListTweetsTimelineList.d.ts.map +1 -1
- package/dist/models/ListTweetsTimelineList.js +52 -53
- package/dist/models/ListTweetsTimelineList.js.map +1 -1
- package/dist/models/Location.d.ts +38 -38
- package/dist/models/Location.js +55 -56
- package/dist/models/Location.js.map +1 -1
- package/dist/models/Media.d.ts +163 -163
- package/dist/models/Media.js +126 -126
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaCommunityResult.d.ts +41 -0
- package/dist/models/MediaCommunityResult.d.ts.map +1 -0
- package/dist/models/MediaCommunityResult.js +58 -0
- package/dist/models/MediaCommunityResult.js.map +1 -0
- package/dist/models/MediaCommunityResults.d.ts +34 -0
- package/dist/models/MediaCommunityResults.d.ts.map +1 -0
- package/dist/models/MediaCommunityResults.js +53 -0
- package/dist/models/MediaCommunityResults.js.map +1 -0
- package/dist/models/MediaCommunityTweetData.d.ts +34 -0
- package/dist/models/MediaCommunityTweetData.d.ts.map +1 -0
- package/dist/models/MediaCommunityTweetData.js +53 -0
- package/dist/models/MediaCommunityTweetData.js.map +1 -0
- package/dist/models/MediaExtended.d.ts +170 -170
- package/dist/models/MediaExtended.js +127 -127
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/MediaOriginalInfo.d.ts +45 -45
- package/dist/models/MediaOriginalInfo.js +58 -59
- package/dist/models/MediaOriginalInfo.js.map +1 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -50
- package/dist/models/MediaOriginalInfoFocusRect.js +63 -64
- package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -1
- package/dist/models/MediaResult.d.ts +39 -32
- package/dist/models/MediaResult.d.ts.map +1 -1
- package/dist/models/MediaResult.js +54 -52
- package/dist/models/MediaResult.js.map +1 -1
- package/dist/models/MediaResults.d.ts +33 -33
- package/dist/models/MediaResults.js +52 -53
- package/dist/models/MediaResults.js.map +1 -1
- package/dist/models/MediaSize.d.ts +52 -52
- package/dist/models/MediaSize.js +67 -67
- package/dist/models/MediaSize.js.map +1 -1
- package/dist/models/MediaSizes.d.ts +51 -51
- package/dist/models/MediaSizes.js +64 -65
- package/dist/models/MediaSizes.js.map +1 -1
- package/dist/models/MediaStats.d.ts +32 -32
- package/dist/models/MediaStats.js +51 -52
- package/dist/models/MediaStats.js.map +1 -1
- package/dist/models/MediaVideoInfo.d.ts +45 -45
- package/dist/models/MediaVideoInfo.js +58 -59
- package/dist/models/MediaVideoInfo.js.map +1 -1
- package/dist/models/MediaVideoInfoVariant.d.ts +44 -44
- package/dist/models/MediaVideoInfoVariant.js +57 -58
- package/dist/models/MediaVideoInfoVariant.js.map +1 -1
- package/dist/models/MediaVisibilityResults.d.ts +33 -33
- package/dist/models/MediaVisibilityResults.js +52 -53
- package/dist/models/MediaVisibilityResults.js.map +1 -1
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +45 -45
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js +60 -61
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js.map +1 -1
- package/dist/models/ModuleEntry.d.ts +47 -47
- package/dist/models/ModuleEntry.js +58 -59
- package/dist/models/ModuleEntry.js.map +1 -1
- package/dist/models/ModuleItem.d.ts +45 -45
- package/dist/models/ModuleItem.js +58 -59
- package/dist/models/ModuleItem.js.map +1 -1
- package/dist/models/NoteTweet.d.ts +39 -39
- package/dist/models/NoteTweet.js +56 -57
- package/dist/models/NoteTweet.js.map +1 -1
- package/dist/models/NoteTweetResult.d.ts +33 -33
- package/dist/models/NoteTweetResult.js +52 -53
- package/dist/models/NoteTweetResult.js.map +1 -1
- package/dist/models/NoteTweetResultData.d.ts +59 -59
- package/dist/models/NoteTweetResultData.js +66 -67
- package/dist/models/NoteTweetResultData.js.map +1 -1
- package/dist/models/NoteTweetResultMedia.d.ts +33 -33
- package/dist/models/NoteTweetResultMedia.js +52 -53
- package/dist/models/NoteTweetResultMedia.js.map +1 -1
- package/dist/models/NoteTweetResultMediaInlineMedia.d.ts +38 -38
- package/dist/models/NoteTweetResultMediaInlineMedia.js +55 -56
- package/dist/models/NoteTweetResultMediaInlineMedia.js.map +1 -1
- package/dist/models/NoteTweetResultRichText.d.ts +33 -33
- package/dist/models/NoteTweetResultRichText.js +52 -53
- package/dist/models/NoteTweetResultRichText.js.map +1 -1
- package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -52
- package/dist/models/NoteTweetResultRichTextTag.js +67 -67
- package/dist/models/NoteTweetResultRichTextTag.js.map +1 -1
- package/dist/models/NotificationTemplate.d.ts +46 -0
- package/dist/models/NotificationTemplate.d.ts.map +1 -0
- package/dist/models/NotificationTemplate.js +55 -0
- package/dist/models/NotificationTemplate.js.map +1 -0
- package/dist/models/NotificationsResult.d.ts +47 -0
- package/dist/models/NotificationsResult.d.ts.map +1 -0
- package/dist/models/NotificationsResult.js +62 -0
- package/dist/models/NotificationsResult.js.map +1 -0
- package/dist/models/NotificationsTimelineData.d.ts +34 -0
- package/dist/models/NotificationsTimelineData.d.ts.map +1 -0
- package/dist/models/NotificationsTimelineData.js +53 -0
- package/dist/models/NotificationsTimelineData.js.map +1 -0
- package/dist/models/NotificationsTimelineResponse.d.ts +41 -0
- package/dist/models/NotificationsTimelineResponse.d.ts.map +1 -0
- package/dist/models/NotificationsTimelineResponse.js +56 -0
- package/dist/models/NotificationsTimelineResponse.js.map +1 -0
- package/dist/models/NotificationsUserResults.d.ts +34 -0
- package/dist/models/NotificationsUserResults.d.ts.map +1 -0
- package/dist/models/NotificationsUserResults.js +53 -0
- package/dist/models/NotificationsUserResults.js.map +1 -0
- package/dist/models/NotificationsViewerV2.d.ts +34 -0
- package/dist/models/NotificationsViewerV2.d.ts.map +1 -0
- package/dist/models/NotificationsViewerV2.js +53 -0
- package/dist/models/NotificationsViewerV2.js.map +1 -0
- package/dist/models/OneFactorLoginEligibility.d.ts +32 -32
- package/dist/models/OneFactorLoginEligibility.js +51 -52
- package/dist/models/OneFactorLoginEligibility.js.map +1 -1
- package/dist/models/OtherObjectAll.d.ts +33 -33
- package/dist/models/OtherObjectAll.js +50 -51
- package/dist/models/OtherObjectAll.js.map +1 -1
- package/dist/models/PostCreateBookmarkRequest.d.ts +39 -39
- package/dist/models/PostCreateBookmarkRequest.js +56 -57
- package/dist/models/PostCreateBookmarkRequest.js.map +1 -1
- package/dist/models/PostCreateBookmarkRequestVariables.d.ts +32 -32
- package/dist/models/PostCreateBookmarkRequestVariables.js +51 -52
- package/dist/models/PostCreateBookmarkRequestVariables.js.map +1 -1
- package/dist/models/PostCreateRetweetRequest.d.ts +39 -39
- package/dist/models/PostCreateRetweetRequest.js +56 -57
- package/dist/models/PostCreateRetweetRequest.js.map +1 -1
- package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -38
- package/dist/models/PostCreateRetweetRequestVariables.js +55 -56
- package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -1
- package/dist/models/PostCreateTweetRequest.d.ts +46 -46
- package/dist/models/PostCreateTweetRequest.js +61 -62
- package/dist/models/PostCreateTweetRequest.js.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +200 -158
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +163 -136
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariables.d.ts +77 -77
- package/dist/models/PostCreateTweetRequestVariables.js +74 -75
- package/dist/models/PostCreateTweetRequestVariables.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts +32 -32
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.js +51 -52
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +39 -39
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +54 -55
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -38
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +55 -56
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesReply.d.ts +38 -38
- package/dist/models/PostCreateTweetRequestVariablesReply.js +55 -56
- package/dist/models/PostCreateTweetRequestVariablesReply.js.map +1 -1
- package/dist/models/PostDeleteBookmarkRequest.d.ts +39 -39
- package/dist/models/PostDeleteBookmarkRequest.js +56 -57
- package/dist/models/PostDeleteBookmarkRequest.js.map +1 -1
- package/dist/models/PostDeleteRetweetRequest.d.ts +39 -39
- package/dist/models/PostDeleteRetweetRequest.js +56 -57
- package/dist/models/PostDeleteRetweetRequest.js.map +1 -1
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +38 -38
- package/dist/models/PostDeleteRetweetRequestVariables.js +55 -56
- package/dist/models/PostDeleteRetweetRequestVariables.js.map +1 -1
- package/dist/models/PostDeleteTweetRequest.d.ts +39 -39
- package/dist/models/PostDeleteTweetRequest.js +56 -57
- package/dist/models/PostDeleteTweetRequest.js.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.d.ts +39 -39
- package/dist/models/PostFavoriteTweetRequest.js +56 -57
- package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +39 -39
- package/dist/models/PostUnfavoriteTweetRequest.js +56 -57
- package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
- package/dist/models/PrimaryCommunityTopic.d.ts +38 -38
- package/dist/models/PrimaryCommunityTopic.js +55 -56
- package/dist/models/PrimaryCommunityTopic.js.map +1 -1
- package/dist/models/ProfileResponse.d.ts +40 -40
- package/dist/models/ProfileResponse.js +55 -56
- package/dist/models/ProfileResponse.js.map +1 -1
- package/dist/models/ProfileResponseData.d.ts +33 -33
- package/dist/models/ProfileResponseData.js +50 -51
- package/dist/models/ProfileResponseData.js.map +1 -1
- package/dist/models/QuotedRefResult.d.ts +33 -33
- package/dist/models/QuotedRefResult.js +50 -51
- package/dist/models/QuotedRefResult.js.map +1 -1
- package/dist/models/QuotedStatusPermalink.d.ts +44 -44
- package/dist/models/QuotedStatusPermalink.js +59 -60
- package/dist/models/QuotedStatusPermalink.js.map +1 -1
- package/dist/models/RankedCommunityResult.d.ts +41 -0
- package/dist/models/RankedCommunityResult.d.ts.map +1 -0
- package/dist/models/RankedCommunityResult.js +58 -0
- package/dist/models/RankedCommunityResult.js.map +1 -0
- package/dist/models/RankedCommunityResults.d.ts +34 -0
- package/dist/models/RankedCommunityResults.d.ts.map +1 -0
- package/dist/models/RankedCommunityResults.js +53 -0
- package/dist/models/RankedCommunityResults.js.map +1 -0
- package/dist/models/RankedCommunityTweetData.d.ts +34 -0
- package/dist/models/RankedCommunityTweetData.d.ts.map +1 -0
- package/dist/models/RankedCommunityTweetData.js +53 -0
- package/dist/models/RankedCommunityTweetData.js.map +1 -0
- package/dist/models/Retweet.d.ts +39 -39
- package/dist/models/Retweet.js +56 -57
- package/dist/models/Retweet.js.map +1 -1
- package/dist/models/RetweetLegacy.d.ts +32 -32
- package/dist/models/RetweetLegacy.js +51 -52
- package/dist/models/RetweetLegacy.js.map +1 -1
- package/dist/models/RichMessage.d.ts +39 -0
- package/dist/models/RichMessage.d.ts.map +1 -0
- package/dist/models/RichMessage.js +52 -0
- package/dist/models/RichMessage.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -33
- package/dist/models/SearchByRawQuery.js +52 -53
- package/dist/models/SearchByRawQuery.js.map +1 -1
- package/dist/models/SearchTimeline.d.ts +33 -33
- package/dist/models/SearchTimeline.js +52 -53
- package/dist/models/SearchTimeline.js.map +1 -1
- package/dist/models/SearchTimelineData.d.ts +33 -33
- package/dist/models/SearchTimelineData.d.ts.map +1 -1
- package/dist/models/SearchTimelineData.js +52 -51
- package/dist/models/SearchTimelineData.js.map +1 -1
- package/dist/models/SearchTimelineResponse.d.ts +40 -40
- package/dist/models/SearchTimelineResponse.js +55 -56
- package/dist/models/SearchTimelineResponse.js.map +1 -1
- package/dist/models/SelfThread.d.ts +32 -32
- package/dist/models/SelfThread.js +51 -52
- package/dist/models/SelfThread.js.map +1 -1
- package/dist/models/SensitiveMediaWarning.d.ts +44 -44
- package/dist/models/SensitiveMediaWarning.js +53 -54
- package/dist/models/SensitiveMediaWarning.js.map +1 -1
- package/dist/models/Session.d.ts +120 -120
- package/dist/models/Session.js +111 -111
- package/dist/models/Session.js.map +1 -1
- package/dist/models/SocialContextLandingUrl.d.ts +54 -54
- package/dist/models/SocialContextLandingUrl.js +63 -63
- package/dist/models/SocialContextLandingUrl.js.map +1 -1
- package/dist/models/SocialContextUnion.d.ts +27 -27
- package/dist/models/SocialContextUnion.js +54 -55
- package/dist/models/SocialContextUnion.js.map +1 -1
- package/dist/models/SocialContextUnionType.d.ts +25 -25
- package/dist/models/SocialContextUnionType.js +51 -51
- package/dist/models/SocialContextUnionType.js.map +1 -1
- package/dist/models/SuperFollowsReplyUserResult.d.ts +33 -33
- package/dist/models/SuperFollowsReplyUserResult.js +52 -53
- package/dist/models/SuperFollowsReplyUserResult.js.map +1 -1
- package/dist/models/SuperFollowsReplyUserResultData.d.ts +40 -40
- package/dist/models/SuperFollowsReplyUserResultData.js +57 -58
- package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -1
- package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +32 -32
- package/dist/models/SuperFollowsReplyUserResultLegacy.js +51 -52
- package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +1 -1
- package/dist/models/Text.d.ts +39 -39
- package/dist/models/Text.js +56 -57
- package/dist/models/Text.js.map +1 -1
- package/dist/models/TextEntity.d.ts +45 -45
- package/dist/models/TextEntity.js +60 -61
- package/dist/models/TextEntity.js.map +1 -1
- package/dist/models/TextEntityRef.d.ts +58 -58
- package/dist/models/TextEntityRef.js +72 -72
- package/dist/models/TextEntityRef.js.map +1 -1
- package/dist/models/TextHighlight.d.ts +38 -38
- package/dist/models/TextHighlight.js +55 -56
- package/dist/models/TextHighlight.js.map +1 -1
- package/dist/models/ThumbnailImage.d.ts +44 -44
- package/dist/models/ThumbnailImage.js +53 -54
- package/dist/models/ThumbnailImage.js.map +1 -1
- package/dist/models/Timeline.d.ts +49 -49
- package/dist/models/Timeline.js +56 -57
- package/dist/models/Timeline.js.map +1 -1
- package/dist/models/TimelineAddEntries.d.ts +40 -40
- package/dist/models/TimelineAddEntries.js +57 -58
- package/dist/models/TimelineAddEntries.js.map +1 -1
- package/dist/models/TimelineAddEntry.d.ts +45 -45
- package/dist/models/TimelineAddEntry.js +60 -61
- package/dist/models/TimelineAddEntry.js.map +1 -1
- package/dist/models/TimelineAddToModule.d.ts +52 -52
- package/dist/models/TimelineAddToModule.js +63 -64
- package/dist/models/TimelineAddToModule.js.map +1 -1
- package/dist/models/TimelineClearCache.d.ts +33 -33
- package/dist/models/TimelineClearCache.js +52 -53
- package/dist/models/TimelineClearCache.js.map +1 -1
- package/dist/models/TimelineClearEntriesUnreadState.d.ts +34 -0
- package/dist/models/TimelineClearEntriesUnreadState.d.ts.map +1 -0
- package/dist/models/TimelineClearEntriesUnreadState.js +53 -0
- package/dist/models/TimelineClearEntriesUnreadState.js.map +1 -0
- package/dist/models/TimelineCommunity.d.ts +34 -34
- package/dist/models/TimelineCommunity.js +57 -58
- package/dist/models/TimelineCommunity.js.map +1 -1
- package/dist/models/TimelineCoverBehavior.d.ts +47 -47
- package/dist/models/TimelineCoverBehavior.js +62 -62
- package/dist/models/TimelineCoverBehavior.js.map +1 -1
- package/dist/models/TimelineCoverBehaviorUrl.d.ts +45 -45
- package/dist/models/TimelineCoverBehaviorUrl.js +62 -62
- package/dist/models/TimelineCoverBehaviorUrl.js.map +1 -1
- package/dist/models/TimelineGeneralContext.d.ts +73 -66
- package/dist/models/TimelineGeneralContext.d.ts.map +1 -1
- package/dist/models/TimelineGeneralContext.js +74 -71
- package/dist/models/TimelineGeneralContext.js.map +1 -1
- package/dist/models/TimelineHalfCover.d.ts +85 -85
- package/dist/models/TimelineHalfCover.js +91 -91
- package/dist/models/TimelineHalfCover.js.map +1 -1
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +40 -0
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts.map +1 -0
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +55 -0
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +34 -34
- package/dist/models/TimelineMessagePrompt.js +57 -58
- package/dist/models/TimelineMessagePrompt.js.map +1 -1
- package/dist/models/TimelineNotification.d.ts +80 -0
- package/dist/models/TimelineNotification.d.ts.map +1 -0
- package/dist/models/TimelineNotification.js +85 -0
- package/dist/models/TimelineNotification.js.map +1 -0
- package/dist/models/TimelinePinEntry.d.ts +40 -40
- package/dist/models/TimelinePinEntry.js +57 -58
- package/dist/models/TimelinePinEntry.js.map +1 -1
- package/dist/models/TimelinePrompt.d.ts +34 -34
- package/dist/models/TimelinePrompt.js +57 -58
- package/dist/models/TimelinePrompt.js.map +1 -1
- package/dist/models/TimelineReplaceEntry.d.ts +46 -46
- package/dist/models/TimelineReplaceEntry.js +61 -62
- package/dist/models/TimelineReplaceEntry.js.map +1 -1
- package/dist/models/TimelineResponse.d.ts +40 -40
- package/dist/models/TimelineResponse.js +55 -56
- package/dist/models/TimelineResponse.js.map +1 -1
- package/dist/models/TimelineResult.d.ts +40 -0
- package/dist/models/TimelineResult.d.ts.map +1 -0
- package/dist/models/{TimelineV2.js → TimelineResult.js} +53 -52
- package/dist/models/TimelineResult.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +101 -101
- package/dist/models/TimelineShowAlert.js +87 -87
- package/dist/models/TimelineShowAlert.js.map +1 -1
- package/dist/models/TimelineShowAlertRichText.d.ts +40 -40
- package/dist/models/TimelineShowAlertRichText.js +51 -52
- package/dist/models/TimelineShowAlertRichText.js.map +1 -1
- package/dist/models/TimelineShowCover.d.ts +47 -47
- package/dist/models/TimelineShowCover.js +62 -63
- package/dist/models/TimelineShowCover.js.map +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts +48 -48
- package/dist/models/TimelineTerminateTimeline.js +65 -65
- package/dist/models/TimelineTerminateTimeline.js.map +1 -1
- package/dist/models/TimelineTimelineCursor.d.ts +72 -72
- package/dist/models/TimelineTimelineCursor.js +71 -72
- package/dist/models/TimelineTimelineCursor.js.map +1 -1
- package/dist/models/TimelineTimelineItem.d.ts +62 -62
- package/dist/models/TimelineTimelineItem.js +67 -68
- package/dist/models/TimelineTimelineItem.js.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +92 -92
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.js +77 -80
- package/dist/models/TimelineTimelineModule.js.map +1 -1
- package/dist/models/TimelineTombstone.d.ts +60 -60
- package/dist/models/TimelineTombstone.js +65 -65
- package/dist/models/TimelineTombstone.js.map +1 -1
- package/dist/models/TimelineTopicContext.d.ts +53 -53
- package/dist/models/TimelineTopicContext.js +62 -62
- package/dist/models/TimelineTopicContext.js.map +1 -1
- package/dist/models/TimelineTrend.d.ts +87 -87
- package/dist/models/TimelineTrend.d.ts.map +1 -1
- package/dist/models/TimelineTrend.js +80 -87
- package/dist/models/TimelineTrend.js.map +1 -1
- package/dist/models/TimelineTweet.d.ts +91 -91
- package/dist/models/TimelineTweet.js +86 -86
- package/dist/models/TimelineTweet.js.map +1 -1
- package/dist/models/TimelineUser.d.ts +70 -69
- package/dist/models/TimelineUser.d.ts.map +1 -1
- package/dist/models/TimelineUser.js +79 -78
- package/dist/models/TimelineUser.js.map +1 -1
- package/dist/models/Timestamp.d.ts +44 -44
- package/dist/models/Timestamp.js +59 -60
- package/dist/models/Timestamp.js.map +1 -1
- package/dist/models/TombstoneEntity.d.ts +45 -45
- package/dist/models/TombstoneEntity.js +54 -55
- package/dist/models/TombstoneEntity.js.map +1 -1
- package/dist/models/TombstoneInfo.d.ts +39 -39
- package/dist/models/TombstoneInfo.js +52 -53
- package/dist/models/TombstoneInfo.js.map +1 -1
- package/dist/models/TombstoneRef.d.ts +58 -58
- package/dist/models/TombstoneRef.js +66 -66
- package/dist/models/TombstoneRef.js.map +1 -1
- package/dist/models/TombstoneRichText.d.ts +45 -45
- package/dist/models/TombstoneRichText.js +54 -55
- package/dist/models/TombstoneRichText.js.map +1 -1
- package/dist/models/TopicContext.d.ts +68 -68
- package/dist/models/TopicContext.js +61 -62
- package/dist/models/TopicContext.js.map +1 -1
- package/dist/models/Tracing.d.ts +32 -32
- package/dist/models/Tracing.js +51 -52
- package/dist/models/Tracing.js.map +1 -1
- package/dist/models/TrendImage.d.ts +32 -32
- package/dist/models/TrendImage.js +49 -50
- package/dist/models/TrendImage.js.map +1 -1
- package/dist/models/TrendMetadata.d.ts +33 -33
- package/dist/models/TrendMetadata.js +50 -51
- package/dist/models/TrendMetadata.js.map +1 -1
- package/dist/models/TrendResults.d.ts +32 -32
- package/dist/models/TrendResults.js +51 -52
- package/dist/models/TrendResults.js.map +1 -1
- package/dist/models/Tweet.d.ts +216 -216
- package/dist/models/Tweet.js +125 -126
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCard.d.ts +39 -39
- package/dist/models/TweetCard.js +52 -53
- package/dist/models/TweetCard.js.map +1 -1
- package/dist/models/TweetCardLegacy.d.ts +59 -59
- package/dist/models/TweetCardLegacy.js +66 -67
- package/dist/models/TweetCardLegacy.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -39
- package/dist/models/TweetCardLegacyBindingValue.js +56 -57
- package/dist/models/TweetCardLegacyBindingValue.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +72 -72
- package/dist/models/TweetCardLegacyBindingValueData.js +65 -66
- package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +50 -50
- package/dist/models/TweetCardLegacyBindingValueDataImage.js +61 -62
- package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +1 -1
- package/dist/models/TweetCardPlatform.d.ts +40 -40
- package/dist/models/TweetCardPlatform.js +57 -58
- package/dist/models/TweetCardPlatform.js.map +1 -1
- package/dist/models/TweetCardPlatformAudience.d.ts +39 -39
- package/dist/models/TweetCardPlatformAudience.js +58 -58
- package/dist/models/TweetCardPlatformAudience.js.map +1 -1
- package/dist/models/TweetCardPlatformData.d.ts +33 -33
- package/dist/models/TweetCardPlatformData.js +52 -53
- package/dist/models/TweetCardPlatformData.js.map +1 -1
- package/dist/models/TweetCardPlatformDevice.d.ts +38 -38
- package/dist/models/TweetCardPlatformDevice.js +55 -56
- package/dist/models/TweetCardPlatformDevice.js.map +1 -1
- package/dist/models/TweetDetailResponse.d.ts +40 -40
- package/dist/models/TweetDetailResponse.js +55 -56
- package/dist/models/TweetDetailResponse.js.map +1 -1
- package/dist/models/TweetDetailResponseData.d.ts +33 -33
- package/dist/models/TweetDetailResponseData.js +50 -51
- package/dist/models/TweetDetailResponseData.js.map +1 -1
- package/dist/models/TweetEditControl.d.ts +63 -63
- package/dist/models/TweetEditControl.js +60 -61
- package/dist/models/TweetEditControl.js.map +1 -1
- package/dist/models/TweetEditControlInitial.d.ts +50 -50
- package/dist/models/TweetEditControlInitial.js +63 -64
- package/dist/models/TweetEditControlInitial.js.map +1 -1
- package/dist/models/TweetEditPrespective.d.ts +38 -38
- package/dist/models/TweetEditPrespective.js +51 -52
- package/dist/models/TweetEditPrespective.js.map +1 -1
- package/dist/models/TweetFavoritersResponse.d.ts +40 -40
- package/dist/models/TweetFavoritersResponse.js +55 -56
- package/dist/models/TweetFavoritersResponse.js.map +1 -1
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -33
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -1
- package/dist/models/TweetFavoritersResponseData.js +50 -51
- package/dist/models/TweetFavoritersResponseData.js.map +1 -1
- package/dist/models/TweetInterstitial.d.ts +60 -60
- package/dist/models/TweetInterstitial.js +73 -73
- package/dist/models/TweetInterstitial.js.map +1 -1
- package/dist/models/TweetInterstitialRevealText.d.ts +45 -45
- package/dist/models/TweetInterstitialRevealText.js +60 -61
- package/dist/models/TweetInterstitialRevealText.js.map +1 -1
- package/dist/models/TweetInterstitialText.d.ts +45 -45
- package/dist/models/TweetInterstitialText.js +60 -61
- package/dist/models/TweetInterstitialText.js.map +1 -1
- package/dist/models/TweetInterstitialTextEntity.d.ts +45 -45
- package/dist/models/TweetInterstitialTextEntity.js +60 -61
- package/dist/models/TweetInterstitialTextEntity.js.map +1 -1
- package/dist/models/TweetInterstitialTextEntityRef.d.ts +58 -58
- package/dist/models/TweetInterstitialTextEntityRef.js +72 -72
- package/dist/models/TweetInterstitialTextEntityRef.js.map +1 -1
- package/dist/models/TweetLegacy.d.ts +235 -235
- package/dist/models/TweetLegacy.js +162 -162
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetLegacyScopes.d.ts +32 -32
- package/dist/models/TweetLegacyScopes.js +51 -52
- package/dist/models/TweetLegacyScopes.js.map +1 -1
- package/dist/models/TweetLimitedActionResults.d.ts +33 -33
- package/dist/models/TweetLimitedActionResults.js +52 -53
- package/dist/models/TweetLimitedActionResults.js.map +1 -1
- package/dist/models/TweetPreviewDisplay.d.ts +54 -54
- package/dist/models/TweetPreviewDisplay.js +67 -68
- package/dist/models/TweetPreviewDisplay.js.map +1 -1
- package/dist/models/TweetPreviewDisplayCta.d.ts +39 -39
- package/dist/models/TweetPreviewDisplayCta.js +56 -57
- package/dist/models/TweetPreviewDisplayCta.js.map +1 -1
- package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +47 -47
- package/dist/models/TweetPreviewDisplayCtaUrl.js +64 -64
- package/dist/models/TweetPreviewDisplayCtaUrl.js.map +1 -1
- package/dist/models/TweetPreviewDisplayTweet.d.ts +94 -94
- package/dist/models/TweetPreviewDisplayTweet.js +93 -94
- package/dist/models/TweetPreviewDisplayTweet.js.map +1 -1
- package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts +32 -32
- package/dist/models/TweetPreviewDisplayTweetViewCount.js +51 -52
- package/dist/models/TweetPreviewDisplayTweetViewCount.js.map +1 -1
- package/dist/models/TweetPreviousCounts.d.ts +56 -56
- package/dist/models/TweetPreviousCounts.js +67 -68
- package/dist/models/TweetPreviousCounts.js.map +1 -1
- package/dist/models/TweetResultByRestIdData.d.ts +33 -33
- package/dist/models/TweetResultByRestIdData.js +50 -51
- package/dist/models/TweetResultByRestIdData.js.map +1 -1
- package/dist/models/TweetResultByRestIdResponse.d.ts +40 -40
- package/dist/models/TweetResultByRestIdResponse.js +55 -56
- package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
- package/dist/models/TweetRetweetersResponse.d.ts +40 -40
- package/dist/models/TweetRetweetersResponse.js +55 -56
- package/dist/models/TweetRetweetersResponse.js.map +1 -1
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -33
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -1
- package/dist/models/TweetRetweetersResponseData.js +50 -51
- package/dist/models/TweetRetweetersResponseData.js.map +1 -1
- package/dist/models/TweetTombstone.d.ts +34 -34
- package/dist/models/TweetTombstone.js +57 -58
- package/dist/models/TweetTombstone.js.map +1 -1
- package/dist/models/TweetUnavailable.d.ts +39 -39
- package/dist/models/TweetUnavailable.js +52 -53
- package/dist/models/TweetUnavailable.js.map +1 -1
- package/dist/models/TweetUnion.d.ts +36 -36
- package/dist/models/TweetUnion.js +69 -70
- package/dist/models/TweetUnion.js.map +1 -1
- package/dist/models/TweetView.d.ts +46 -46
- package/dist/models/TweetView.js +61 -61
- package/dist/models/TweetView.js.map +1 -1
- package/dist/models/TweetWithVisibilityResults.d.ts +62 -62
- package/dist/models/TweetWithVisibilityResults.js +65 -66
- package/dist/models/TweetWithVisibilityResults.js.map +1 -1
- package/dist/models/TypeName.d.ts +53 -51
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +79 -77
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UnfavoriteTweet.d.ts +32 -32
- package/dist/models/UnfavoriteTweet.js +49 -50
- package/dist/models/UnfavoriteTweet.js.map +1 -1
- package/dist/models/UnfavoriteTweetResponse.d.ts +40 -40
- package/dist/models/UnfavoriteTweetResponse.js +55 -56
- package/dist/models/UnfavoriteTweetResponse.js.map +1 -1
- package/dist/models/UnifiedCard.d.ts +39 -39
- package/dist/models/UnifiedCard.js +58 -58
- package/dist/models/UnifiedCard.js.map +1 -1
- package/dist/models/Url.d.ts +50 -50
- package/dist/models/Url.js +61 -62
- package/dist/models/Url.js.map +1 -1
- package/dist/models/UrtEndpointOptions.d.ts +39 -39
- package/dist/models/UrtEndpointOptions.js +56 -57
- package/dist/models/UrtEndpointOptions.js.map +1 -1
- package/dist/models/UrtEndpointRequestParams.d.ts +38 -38
- package/dist/models/UrtEndpointRequestParams.js +55 -56
- package/dist/models/UrtEndpointRequestParams.js.map +1 -1
- package/dist/models/User.d.ts +205 -204
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/User.js +133 -132
- package/dist/models/User.js.map +1 -1
- package/dist/models/UserFeatures.d.ts +32 -32
- package/dist/models/UserFeatures.js +51 -52
- package/dist/models/UserFeatures.js.map +1 -1
- package/dist/models/UserHighlightsInfo.d.ts +38 -38
- package/dist/models/UserHighlightsInfo.js +55 -56
- package/dist/models/UserHighlightsInfo.js.map +1 -1
- package/dist/models/UserHighlightsTweetsData.d.ts +33 -33
- package/dist/models/UserHighlightsTweetsData.js +50 -51
- package/dist/models/UserHighlightsTweetsData.js.map +1 -1
- package/dist/models/UserHighlightsTweetsResponse.d.ts +40 -40
- package/dist/models/UserHighlightsTweetsResponse.js +55 -56
- package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
- package/dist/models/UserHighlightsTweetsResult.d.ts +40 -40
- package/dist/models/UserHighlightsTweetsResult.js +57 -58
- package/dist/models/UserHighlightsTweetsResult.js.map +1 -1
- package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -33
- package/dist/models/UserHighlightsTweetsTimeline.js +52 -53
- package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -1
- package/dist/models/UserHighlightsTweetsUser.d.ts +33 -33
- package/dist/models/UserHighlightsTweetsUser.js +52 -53
- package/dist/models/UserHighlightsTweetsUser.js.map +1 -1
- package/dist/models/UserLegacy.d.ts +282 -282
- package/dist/models/UserLegacy.js +185 -185
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserLegacyExtendedProfile.d.ts +33 -33
- package/dist/models/UserLegacyExtendedProfile.js +50 -51
- package/dist/models/UserLegacyExtendedProfile.js.map +1 -1
- package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +78 -78
- package/dist/models/UserLegacyExtendedProfileBirthdate.js +86 -86
- package/dist/models/UserLegacyExtendedProfileBirthdate.js.map +1 -1
- package/dist/models/UserProfessional.d.ts +53 -53
- package/dist/models/UserProfessional.js +68 -68
- package/dist/models/UserProfessional.js.map +1 -1
- package/dist/models/UserProfessionalCategory.d.ts +44 -44
- package/dist/models/UserProfessionalCategory.js +59 -60
- package/dist/models/UserProfessionalCategory.js.map +1 -1
- package/dist/models/UserResponse.d.ts +40 -40
- package/dist/models/UserResponse.js +55 -56
- package/dist/models/UserResponse.js.map +1 -1
- package/dist/models/UserResponseData.d.ts +33 -33
- package/dist/models/UserResponseData.js +50 -51
- package/dist/models/UserResponseData.js.map +1 -1
- package/dist/models/UserResultByScreenName.d.ts +39 -39
- package/dist/models/UserResultByScreenName.js +56 -57
- package/dist/models/UserResultByScreenName.js.map +1 -1
- package/dist/models/UserResultByScreenNameLegacy.d.ts +68 -68
- package/dist/models/UserResultByScreenNameLegacy.js +61 -62
- package/dist/models/UserResultByScreenNameLegacy.js.map +1 -1
- package/dist/models/UserResultByScreenNameResult.d.ts +60 -60
- package/dist/models/UserResultByScreenNameResult.js +69 -70
- package/dist/models/UserResultByScreenNameResult.js.map +1 -1
- package/dist/models/UserResultCore.d.ts +33 -33
- package/dist/models/UserResultCore.js +52 -53
- package/dist/models/UserResultCore.js.map +1 -1
- package/dist/models/UserResults.d.ts +33 -33
- package/dist/models/UserResults.js +50 -51
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/UserTipJarSettings.d.ts +80 -80
- package/dist/models/UserTipJarSettings.js +65 -66
- package/dist/models/UserTipJarSettings.js.map +1 -1
- package/dist/models/UserTweetsData.d.ts +33 -33
- package/dist/models/UserTweetsData.js +50 -51
- package/dist/models/UserTweetsData.js.map +1 -1
- package/dist/models/UserTweetsResponse.d.ts +40 -40
- package/dist/models/UserTweetsResponse.js +55 -56
- package/dist/models/UserTweetsResponse.js.map +1 -1
- package/dist/models/UserTweetsResultV1.d.ts +41 -0
- package/dist/models/UserTweetsResultV1.d.ts.map +1 -0
- package/dist/models/UserTweetsResultV1.js +58 -0
- package/dist/models/UserTweetsResultV1.js.map +1 -0
- package/dist/models/UserTweetsResultV2.d.ts +41 -0
- package/dist/models/UserTweetsResultV2.d.ts.map +1 -0
- package/dist/models/UserTweetsResultV2.js +58 -0
- package/dist/models/UserTweetsResultV2.js.map +1 -0
- package/dist/models/UserTweetsUser.d.ts +33 -33
- package/dist/models/UserTweetsUser.d.ts.map +1 -1
- package/dist/models/UserTweetsUser.js +52 -53
- package/dist/models/UserTweetsUser.js.map +1 -1
- package/dist/models/UserUnavailable.d.ts +45 -45
- package/dist/models/UserUnavailable.js +58 -59
- package/dist/models/UserUnavailable.js.map +1 -1
- package/dist/models/UserUnion.d.ts +27 -27
- package/dist/models/UserUnion.js +54 -55
- package/dist/models/UserUnion.js.map +1 -1
- package/dist/models/UserValue.d.ts +32 -32
- package/dist/models/UserValue.js +51 -52
- package/dist/models/UserValue.js.map +1 -1
- package/dist/models/UserVerificationInfo.d.ts +39 -39
- package/dist/models/UserVerificationInfo.js +54 -55
- package/dist/models/UserVerificationInfo.js.map +1 -1
- package/dist/models/UserVerificationInfoReason.d.ts +45 -45
- package/dist/models/UserVerificationInfoReason.js +58 -59
- package/dist/models/UserVerificationInfoReason.js.map +1 -1
- package/dist/models/UserVerificationInfoReasonDescription.d.ts +39 -39
- package/dist/models/UserVerificationInfoReasonDescription.js +56 -57
- package/dist/models/UserVerificationInfoReasonDescription.js.map +1 -1
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +45 -45
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +60 -61
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +1 -1
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +45 -45
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +62 -62
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +1 -1
- package/dist/models/UsersResponse.d.ts +40 -40
- package/dist/models/UsersResponse.js +55 -56
- package/dist/models/UsersResponse.js.map +1 -1
- package/dist/models/UsersResponseData.d.ts +33 -33
- package/dist/models/UsersResponseData.js +50 -51
- package/dist/models/UsersResponseData.js.map +1 -1
- package/dist/models/index.d.ts +310 -286
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +328 -304
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +182 -182
- package/dist/runtime.js +562 -562
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/ListTweetsTimeline.d.ts +0 -34
- package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
- package/dist/models/ListTweetsTimeline.js +0 -52
- package/dist/models/ListTweetsTimeline.js.map +0 -1
- package/dist/models/TimelineV2.d.ts +0 -34
- package/dist/models/TimelineV2.d.ts.map +0 -1
- package/dist/models/TimelineV2.js.map +0 -1
- package/dist/models/UserTweetsResult.d.ts +0 -41
- package/dist/models/UserTweetsResult.d.ts.map +0 -1
- package/dist/models/UserTweetsResult.js +0 -59
- package/dist/models/UserTweetsResult.js.map +0 -1
package/dist/apis/V11GetApi.js
CHANGED
|
@@ -1,618 +1,618 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Twitter OpenAPI
|
|
6
|
-
* Twitter OpenAPI(Swagger) specification
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.0.1
|
|
9
|
-
* Contact: yuki@yuki0311.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g =
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.V11GetApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
var V11GetApi = /** @class */ (function (_super) {
|
|
73
|
-
__extends(V11GetApi, _super);
|
|
74
|
-
function V11GetApi() {
|
|
75
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* get friends following list
|
|
79
|
-
*/
|
|
80
|
-
V11GetApi.prototype.getFriendsFollowingListRaw = function (requestParameters, initOverrides) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
|
|
83
|
-
return __generator(this, function (_14) {
|
|
84
|
-
switch (_14.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
if (requestParameters['includeProfileInterstitialType'] == null) {
|
|
87
|
-
throw new runtime.RequiredError('includeProfileInterstitialType', 'Required parameter "includeProfileInterstitialType" was null or undefined when calling getFriendsFollowingList().');
|
|
88
|
-
}
|
|
89
|
-
if (requestParameters['includeBlocking'] == null) {
|
|
90
|
-
throw new runtime.RequiredError('includeBlocking', 'Required parameter "includeBlocking" was null or undefined when calling getFriendsFollowingList().');
|
|
91
|
-
}
|
|
92
|
-
if (requestParameters['includeBlockedBy'] == null) {
|
|
93
|
-
throw new runtime.RequiredError('includeBlockedBy', 'Required parameter "includeBlockedBy" was null or undefined when calling getFriendsFollowingList().');
|
|
94
|
-
}
|
|
95
|
-
if (requestParameters['includeFollowedBy'] == null) {
|
|
96
|
-
throw new runtime.RequiredError('includeFollowedBy', 'Required parameter "includeFollowedBy" was null or undefined when calling getFriendsFollowingList().');
|
|
97
|
-
}
|
|
98
|
-
if (requestParameters['includeWantRetweets'] == null) {
|
|
99
|
-
throw new runtime.RequiredError('includeWantRetweets', 'Required parameter "includeWantRetweets" was null or undefined when calling getFriendsFollowingList().');
|
|
100
|
-
}
|
|
101
|
-
if (requestParameters['includeMuteEdge'] == null) {
|
|
102
|
-
throw new runtime.RequiredError('includeMuteEdge', 'Required parameter "includeMuteEdge" was null or undefined when calling getFriendsFollowingList().');
|
|
103
|
-
}
|
|
104
|
-
if (requestParameters['includeCanDm'] == null) {
|
|
105
|
-
throw new runtime.RequiredError('includeCanDm', 'Required parameter "includeCanDm" was null or undefined when calling getFriendsFollowingList().');
|
|
106
|
-
}
|
|
107
|
-
if (requestParameters['includeCanMediaTag'] == null) {
|
|
108
|
-
throw new runtime.RequiredError('includeCanMediaTag', 'Required parameter "includeCanMediaTag" was null or undefined when calling getFriendsFollowingList().');
|
|
109
|
-
}
|
|
110
|
-
if (requestParameters['includeExtHasNftAvatar'] == null) {
|
|
111
|
-
throw new runtime.RequiredError('includeExtHasNftAvatar', 'Required parameter "includeExtHasNftAvatar" was null or undefined when calling getFriendsFollowingList().');
|
|
112
|
-
}
|
|
113
|
-
if (requestParameters['includeExtIsBlueVerified'] == null) {
|
|
114
|
-
throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter "includeExtIsBlueVerified" was null or undefined when calling getFriendsFollowingList().');
|
|
115
|
-
}
|
|
116
|
-
if (requestParameters['includeExtVerifiedType'] == null) {
|
|
117
|
-
throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter "includeExtVerifiedType" was null or undefined when calling getFriendsFollowingList().');
|
|
118
|
-
}
|
|
119
|
-
if (requestParameters['includeExtProfileImageShape'] == null) {
|
|
120
|
-
throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter "includeExtProfileImageShape" was null or undefined when calling getFriendsFollowingList().');
|
|
121
|
-
}
|
|
122
|
-
if (requestParameters['skipStatus'] == null) {
|
|
123
|
-
throw new runtime.RequiredError('skipStatus', 'Required parameter "skipStatus" was null or undefined when calling getFriendsFollowingList().');
|
|
124
|
-
}
|
|
125
|
-
if (requestParameters['cursor'] == null) {
|
|
126
|
-
throw new runtime.RequiredError('cursor', 'Required parameter "cursor" was null or undefined when calling getFriendsFollowingList().');
|
|
127
|
-
}
|
|
128
|
-
if (requestParameters['userId'] == null) {
|
|
129
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getFriendsFollowingList().');
|
|
130
|
-
}
|
|
131
|
-
if (requestParameters['count'] == null) {
|
|
132
|
-
throw new runtime.RequiredError('count', 'Required parameter "count" was null or undefined when calling getFriendsFollowingList().');
|
|
133
|
-
}
|
|
134
|
-
if (requestParameters['withTotalCount'] == null) {
|
|
135
|
-
throw new runtime.RequiredError('withTotalCount', 'Required parameter "withTotalCount" was null or undefined when calling getFriendsFollowingList().');
|
|
136
|
-
}
|
|
137
|
-
queryParameters = {};
|
|
138
|
-
if (requestParameters['includeProfileInterstitialType'] != null) {
|
|
139
|
-
queryParameters['include_profile_interstitial_type'] = requestParameters['includeProfileInterstitialType'];
|
|
140
|
-
}
|
|
141
|
-
if (requestParameters['includeBlocking'] != null) {
|
|
142
|
-
queryParameters['include_blocking'] = requestParameters['includeBlocking'];
|
|
143
|
-
}
|
|
144
|
-
if (requestParameters['includeBlockedBy'] != null) {
|
|
145
|
-
queryParameters['include_blocked_by'] = requestParameters['includeBlockedBy'];
|
|
146
|
-
}
|
|
147
|
-
if (requestParameters['includeFollowedBy'] != null) {
|
|
148
|
-
queryParameters['include_followed_by'] = requestParameters['includeFollowedBy'];
|
|
149
|
-
}
|
|
150
|
-
if (requestParameters['includeWantRetweets'] != null) {
|
|
151
|
-
queryParameters['include_want_retweets'] = requestParameters['includeWantRetweets'];
|
|
152
|
-
}
|
|
153
|
-
if (requestParameters['includeMuteEdge'] != null) {
|
|
154
|
-
queryParameters['include_mute_edge'] = requestParameters['includeMuteEdge'];
|
|
155
|
-
}
|
|
156
|
-
if (requestParameters['includeCanDm'] != null) {
|
|
157
|
-
queryParameters['include_can_dm'] = requestParameters['includeCanDm'];
|
|
158
|
-
}
|
|
159
|
-
if (requestParameters['includeCanMediaTag'] != null) {
|
|
160
|
-
queryParameters['include_can_media_tag'] = requestParameters['includeCanMediaTag'];
|
|
161
|
-
}
|
|
162
|
-
if (requestParameters['includeExtHasNftAvatar'] != null) {
|
|
163
|
-
queryParameters['include_ext_has_nft_avatar'] = requestParameters['includeExtHasNftAvatar'];
|
|
164
|
-
}
|
|
165
|
-
if (requestParameters['includeExtIsBlueVerified'] != null) {
|
|
166
|
-
queryParameters['include_ext_is_blue_verified'] = requestParameters['includeExtIsBlueVerified'];
|
|
167
|
-
}
|
|
168
|
-
if (requestParameters['includeExtVerifiedType'] != null) {
|
|
169
|
-
queryParameters['include_ext_verified_type'] = requestParameters['includeExtVerifiedType'];
|
|
170
|
-
}
|
|
171
|
-
if (requestParameters['includeExtProfileImageShape'] != null) {
|
|
172
|
-
queryParameters['include_ext_profile_image_shape'] = requestParameters['includeExtProfileImageShape'];
|
|
173
|
-
}
|
|
174
|
-
if (requestParameters['skipStatus'] != null) {
|
|
175
|
-
queryParameters['skip_status'] = requestParameters['skipStatus'];
|
|
176
|
-
}
|
|
177
|
-
if (requestParameters['cursor'] != null) {
|
|
178
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
179
|
-
}
|
|
180
|
-
if (requestParameters['userId'] != null) {
|
|
181
|
-
queryParameters['user_id'] = requestParameters['userId'];
|
|
182
|
-
}
|
|
183
|
-
if (requestParameters['count'] != null) {
|
|
184
|
-
queryParameters['count'] = requestParameters['count'];
|
|
185
|
-
}
|
|
186
|
-
if (requestParameters['withTotalCount'] != null) {
|
|
187
|
-
queryParameters['with_total_count'] = requestParameters['withTotalCount'];
|
|
188
|
-
}
|
|
189
|
-
headerParameters = {};
|
|
190
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
191
|
-
_a = headerParameters;
|
|
192
|
-
_b = "Accept";
|
|
193
|
-
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
194
|
-
case 1:
|
|
195
|
-
_a[_b] = _14.sent(); // Accept authentication
|
|
196
|
-
_14.label = 2;
|
|
197
|
-
case 2:
|
|
198
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
199
|
-
_c = headerParameters;
|
|
200
|
-
_d = "x-twitter-client-language";
|
|
201
|
-
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
202
|
-
case 3:
|
|
203
|
-
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
204
|
-
_14.label = 4;
|
|
205
|
-
case 4:
|
|
206
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
207
|
-
_e = headerParameters;
|
|
208
|
-
_f = "Priority";
|
|
209
|
-
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
210
|
-
case 5:
|
|
211
|
-
_e[_f] = _14.sent(); // Priority authentication
|
|
212
|
-
_14.label = 6;
|
|
213
|
-
case 6:
|
|
214
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
215
|
-
_g = headerParameters;
|
|
216
|
-
_h = "Referer";
|
|
217
|
-
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
218
|
-
case 7:
|
|
219
|
-
_g[_h] = _14.sent(); // Referer authentication
|
|
220
|
-
_14.label = 8;
|
|
221
|
-
case 8:
|
|
222
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
223
|
-
_j = headerParameters;
|
|
224
|
-
_k = "Sec-Fetch-Dest";
|
|
225
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
226
|
-
case 9:
|
|
227
|
-
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
228
|
-
_14.label = 10;
|
|
229
|
-
case 10:
|
|
230
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
231
|
-
_l = headerParameters;
|
|
232
|
-
_m = "Sec-Ch-Ua-Platform";
|
|
233
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
234
|
-
case 11:
|
|
235
|
-
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
236
|
-
_14.label = 12;
|
|
237
|
-
case 12:
|
|
238
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
239
|
-
_o = headerParameters;
|
|
240
|
-
_p = "Sec-Fetch-Mode";
|
|
241
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
242
|
-
case 13:
|
|
243
|
-
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
244
|
-
_14.label = 14;
|
|
245
|
-
case 14:
|
|
246
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
247
|
-
_q = headerParameters;
|
|
248
|
-
_r = "x-csrf-token";
|
|
249
|
-
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
250
|
-
case 15:
|
|
251
|
-
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
252
|
-
_14.label = 16;
|
|
253
|
-
case 16:
|
|
254
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
255
|
-
_s = headerParameters;
|
|
256
|
-
_t = "x-client-uuid";
|
|
257
|
-
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
258
|
-
case 17:
|
|
259
|
-
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
260
|
-
_14.label = 18;
|
|
261
|
-
case 18:
|
|
262
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
263
|
-
token = this.configuration.accessToken;
|
|
264
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
265
|
-
case 19:
|
|
266
|
-
tokenString = _14.sent();
|
|
267
|
-
if (tokenString) {
|
|
268
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
269
|
-
}
|
|
270
|
-
_14.label = 20;
|
|
271
|
-
case 20:
|
|
272
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
273
|
-
_u = headerParameters;
|
|
274
|
-
_v = "x-guest-token";
|
|
275
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
276
|
-
case 21:
|
|
277
|
-
_u[_v] = _14.sent(); // GuestToken authentication
|
|
278
|
-
_14.label = 22;
|
|
279
|
-
case 22:
|
|
280
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
281
|
-
_w = headerParameters;
|
|
282
|
-
_x = "Sec-Ch-Ua";
|
|
283
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
284
|
-
case 23:
|
|
285
|
-
_w[_x] = _14.sent(); // SecChUa authentication
|
|
286
|
-
_14.label = 24;
|
|
287
|
-
case 24:
|
|
288
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
289
|
-
_y = headerParameters;
|
|
290
|
-
_z = "x-client-transaction-id";
|
|
291
|
-
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
292
|
-
case 25:
|
|
293
|
-
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
294
|
-
_14.label = 26;
|
|
295
|
-
case 26:
|
|
296
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
297
|
-
_0 = headerParameters;
|
|
298
|
-
_1 = "x-twitter-active-user";
|
|
299
|
-
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
300
|
-
case 27:
|
|
301
|
-
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
302
|
-
_14.label = 28;
|
|
303
|
-
case 28:
|
|
304
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
305
|
-
_2 = headerParameters;
|
|
306
|
-
_3 = "user-agent";
|
|
307
|
-
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
308
|
-
case 29:
|
|
309
|
-
_2[_3] = _14.sent(); // UserAgent authentication
|
|
310
|
-
_14.label = 30;
|
|
311
|
-
case 30:
|
|
312
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
313
|
-
_4 = headerParameters;
|
|
314
|
-
_5 = "Accept-Language";
|
|
315
|
-
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
316
|
-
case 31:
|
|
317
|
-
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
318
|
-
_14.label = 32;
|
|
319
|
-
case 32:
|
|
320
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
321
|
-
_6 = headerParameters;
|
|
322
|
-
_7 = "Sec-Fetch-Site";
|
|
323
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
324
|
-
case 33:
|
|
325
|
-
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
326
|
-
_14.label = 34;
|
|
327
|
-
case 34:
|
|
328
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
329
|
-
_8 = headerParameters;
|
|
330
|
-
_9 = "x-twitter-auth-type";
|
|
331
|
-
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
332
|
-
case 35:
|
|
333
|
-
_8[_9] = _14.sent(); // AuthType authentication
|
|
334
|
-
_14.label = 36;
|
|
335
|
-
case 36:
|
|
336
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
337
|
-
_10 = headerParameters;
|
|
338
|
-
_11 = "Sec-Ch-Ua-Mobile";
|
|
339
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
340
|
-
case 37:
|
|
341
|
-
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
342
|
-
_14.label = 38;
|
|
343
|
-
case 38:
|
|
344
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
345
|
-
_12 = headerParameters;
|
|
346
|
-
_13 = "Accept-Encoding";
|
|
347
|
-
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
348
|
-
case 39:
|
|
349
|
-
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
350
|
-
_14.label = 40;
|
|
351
|
-
case 40: return [4 /*yield*/, this.request({
|
|
352
|
-
path: "/1.1/friends/following/list.json",
|
|
353
|
-
method: 'GET',
|
|
354
|
-
headers: headerParameters,
|
|
355
|
-
query: queryParameters,
|
|
356
|
-
}, initOverrides)];
|
|
357
|
-
case 41:
|
|
358
|
-
response = _14.sent();
|
|
359
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
});
|
|
363
|
-
};
|
|
364
|
-
/**
|
|
365
|
-
* get friends following list
|
|
366
|
-
*/
|
|
367
|
-
V11GetApi.prototype.getFriendsFollowingList = function (requestParameters, initOverrides) {
|
|
368
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
369
|
-
return __generator(this, function (_a) {
|
|
370
|
-
switch (_a.label) {
|
|
371
|
-
case 0: return [4 /*yield*/, this.getFriendsFollowingListRaw(requestParameters, initOverrides)];
|
|
372
|
-
case 1:
|
|
373
|
-
_a.sent();
|
|
374
|
-
return [2 /*return*/];
|
|
375
|
-
}
|
|
376
|
-
});
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* get search typeahead
|
|
381
|
-
*/
|
|
382
|
-
V11GetApi.prototype.getSearchTypeaheadRaw = function (requestParameters, initOverrides) {
|
|
383
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
384
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
|
|
385
|
-
return __generator(this, function (_14) {
|
|
386
|
-
switch (_14.label) {
|
|
387
|
-
case 0:
|
|
388
|
-
if (requestParameters['includeExtIsBlueVerified'] == null) {
|
|
389
|
-
throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter "includeExtIsBlueVerified" was null or undefined when calling getSearchTypeahead().');
|
|
390
|
-
}
|
|
391
|
-
if (requestParameters['includeExtVerifiedType'] == null) {
|
|
392
|
-
throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter "includeExtVerifiedType" was null or undefined when calling getSearchTypeahead().');
|
|
393
|
-
}
|
|
394
|
-
if (requestParameters['includeExtProfileImageShape'] == null) {
|
|
395
|
-
throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter "includeExtProfileImageShape" was null or undefined when calling getSearchTypeahead().');
|
|
396
|
-
}
|
|
397
|
-
if (requestParameters['q'] == null) {
|
|
398
|
-
throw new runtime.RequiredError('q', 'Required parameter "q" was null or undefined when calling getSearchTypeahead().');
|
|
399
|
-
}
|
|
400
|
-
if (requestParameters['src'] == null) {
|
|
401
|
-
throw new runtime.RequiredError('src', 'Required parameter "src" was null or undefined when calling getSearchTypeahead().');
|
|
402
|
-
}
|
|
403
|
-
if (requestParameters['resultType'] == null) {
|
|
404
|
-
throw new runtime.RequiredError('resultType', 'Required parameter "resultType" was null or undefined when calling getSearchTypeahead().');
|
|
405
|
-
}
|
|
406
|
-
queryParameters = {};
|
|
407
|
-
if (requestParameters['includeExtIsBlueVerified'] != null) {
|
|
408
|
-
queryParameters['include_ext_is_blue_verified'] = requestParameters['includeExtIsBlueVerified'];
|
|
409
|
-
}
|
|
410
|
-
if (requestParameters['includeExtVerifiedType'] != null) {
|
|
411
|
-
queryParameters['include_ext_verified_type'] = requestParameters['includeExtVerifiedType'];
|
|
412
|
-
}
|
|
413
|
-
if (requestParameters['includeExtProfileImageShape'] != null) {
|
|
414
|
-
queryParameters['include_ext_profile_image_shape'] = requestParameters['includeExtProfileImageShape'];
|
|
415
|
-
}
|
|
416
|
-
if (requestParameters['q'] != null) {
|
|
417
|
-
queryParameters['q'] = requestParameters['q'];
|
|
418
|
-
}
|
|
419
|
-
if (requestParameters['src'] != null) {
|
|
420
|
-
queryParameters['src'] = requestParameters['src'];
|
|
421
|
-
}
|
|
422
|
-
if (requestParameters['resultType'] != null) {
|
|
423
|
-
queryParameters['result_type'] = requestParameters['resultType'];
|
|
424
|
-
}
|
|
425
|
-
headerParameters = {};
|
|
426
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
427
|
-
_a = headerParameters;
|
|
428
|
-
_b = "Accept";
|
|
429
|
-
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
430
|
-
case 1:
|
|
431
|
-
_a[_b] = _14.sent(); // Accept authentication
|
|
432
|
-
_14.label = 2;
|
|
433
|
-
case 2:
|
|
434
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
435
|
-
_c = headerParameters;
|
|
436
|
-
_d = "x-twitter-client-language";
|
|
437
|
-
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
438
|
-
case 3:
|
|
439
|
-
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
440
|
-
_14.label = 4;
|
|
441
|
-
case 4:
|
|
442
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
443
|
-
_e = headerParameters;
|
|
444
|
-
_f = "Priority";
|
|
445
|
-
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
446
|
-
case 5:
|
|
447
|
-
_e[_f] = _14.sent(); // Priority authentication
|
|
448
|
-
_14.label = 6;
|
|
449
|
-
case 6:
|
|
450
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
451
|
-
_g = headerParameters;
|
|
452
|
-
_h = "Referer";
|
|
453
|
-
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
454
|
-
case 7:
|
|
455
|
-
_g[_h] = _14.sent(); // Referer authentication
|
|
456
|
-
_14.label = 8;
|
|
457
|
-
case 8:
|
|
458
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
459
|
-
_j = headerParameters;
|
|
460
|
-
_k = "Sec-Fetch-Dest";
|
|
461
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
462
|
-
case 9:
|
|
463
|
-
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
464
|
-
_14.label = 10;
|
|
465
|
-
case 10:
|
|
466
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
467
|
-
_l = headerParameters;
|
|
468
|
-
_m = "Sec-Ch-Ua-Platform";
|
|
469
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
470
|
-
case 11:
|
|
471
|
-
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
472
|
-
_14.label = 12;
|
|
473
|
-
case 12:
|
|
474
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
475
|
-
_o = headerParameters;
|
|
476
|
-
_p = "Sec-Fetch-Mode";
|
|
477
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
478
|
-
case 13:
|
|
479
|
-
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
480
|
-
_14.label = 14;
|
|
481
|
-
case 14:
|
|
482
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
483
|
-
_q = headerParameters;
|
|
484
|
-
_r = "x-csrf-token";
|
|
485
|
-
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
486
|
-
case 15:
|
|
487
|
-
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
488
|
-
_14.label = 16;
|
|
489
|
-
case 16:
|
|
490
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
491
|
-
_s = headerParameters;
|
|
492
|
-
_t = "x-client-uuid";
|
|
493
|
-
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
494
|
-
case 17:
|
|
495
|
-
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
496
|
-
_14.label = 18;
|
|
497
|
-
case 18:
|
|
498
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
499
|
-
token = this.configuration.accessToken;
|
|
500
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
501
|
-
case 19:
|
|
502
|
-
tokenString = _14.sent();
|
|
503
|
-
if (tokenString) {
|
|
504
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
505
|
-
}
|
|
506
|
-
_14.label = 20;
|
|
507
|
-
case 20:
|
|
508
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
509
|
-
_u = headerParameters;
|
|
510
|
-
_v = "x-guest-token";
|
|
511
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
512
|
-
case 21:
|
|
513
|
-
_u[_v] = _14.sent(); // GuestToken authentication
|
|
514
|
-
_14.label = 22;
|
|
515
|
-
case 22:
|
|
516
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
517
|
-
_w = headerParameters;
|
|
518
|
-
_x = "Sec-Ch-Ua";
|
|
519
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
520
|
-
case 23:
|
|
521
|
-
_w[_x] = _14.sent(); // SecChUa authentication
|
|
522
|
-
_14.label = 24;
|
|
523
|
-
case 24:
|
|
524
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
525
|
-
_y = headerParameters;
|
|
526
|
-
_z = "x-client-transaction-id";
|
|
527
|
-
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
528
|
-
case 25:
|
|
529
|
-
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
530
|
-
_14.label = 26;
|
|
531
|
-
case 26:
|
|
532
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
533
|
-
_0 = headerParameters;
|
|
534
|
-
_1 = "x-twitter-active-user";
|
|
535
|
-
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
536
|
-
case 27:
|
|
537
|
-
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
538
|
-
_14.label = 28;
|
|
539
|
-
case 28:
|
|
540
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
541
|
-
_2 = headerParameters;
|
|
542
|
-
_3 = "user-agent";
|
|
543
|
-
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
544
|
-
case 29:
|
|
545
|
-
_2[_3] = _14.sent(); // UserAgent authentication
|
|
546
|
-
_14.label = 30;
|
|
547
|
-
case 30:
|
|
548
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
549
|
-
_4 = headerParameters;
|
|
550
|
-
_5 = "Accept-Language";
|
|
551
|
-
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
552
|
-
case 31:
|
|
553
|
-
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
554
|
-
_14.label = 32;
|
|
555
|
-
case 32:
|
|
556
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
557
|
-
_6 = headerParameters;
|
|
558
|
-
_7 = "Sec-Fetch-Site";
|
|
559
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
560
|
-
case 33:
|
|
561
|
-
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
562
|
-
_14.label = 34;
|
|
563
|
-
case 34:
|
|
564
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
565
|
-
_8 = headerParameters;
|
|
566
|
-
_9 = "x-twitter-auth-type";
|
|
567
|
-
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
568
|
-
case 35:
|
|
569
|
-
_8[_9] = _14.sent(); // AuthType authentication
|
|
570
|
-
_14.label = 36;
|
|
571
|
-
case 36:
|
|
572
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
573
|
-
_10 = headerParameters;
|
|
574
|
-
_11 = "Sec-Ch-Ua-Mobile";
|
|
575
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
576
|
-
case 37:
|
|
577
|
-
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
578
|
-
_14.label = 38;
|
|
579
|
-
case 38:
|
|
580
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
581
|
-
_12 = headerParameters;
|
|
582
|
-
_13 = "Accept-Encoding";
|
|
583
|
-
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
584
|
-
case 39:
|
|
585
|
-
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
586
|
-
_14.label = 40;
|
|
587
|
-
case 40: return [4 /*yield*/, this.request({
|
|
588
|
-
path: "/1.1/search/typeahead.json",
|
|
589
|
-
method: 'GET',
|
|
590
|
-
headers: headerParameters,
|
|
591
|
-
query: queryParameters,
|
|
592
|
-
}, initOverrides)];
|
|
593
|
-
case 41:
|
|
594
|
-
response = _14.sent();
|
|
595
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
};
|
|
600
|
-
/**
|
|
601
|
-
* get search typeahead
|
|
602
|
-
*/
|
|
603
|
-
V11GetApi.prototype.getSearchTypeahead = function (requestParameters, initOverrides) {
|
|
604
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
605
|
-
return __generator(this, function (_a) {
|
|
606
|
-
switch (_a.label) {
|
|
607
|
-
case 0: return [4 /*yield*/, this.getSearchTypeaheadRaw(requestParameters, initOverrides)];
|
|
608
|
-
case 1:
|
|
609
|
-
_a.sent();
|
|
610
|
-
return [2 /*return*/];
|
|
611
|
-
}
|
|
612
|
-
});
|
|
613
|
-
});
|
|
614
|
-
};
|
|
615
|
-
return V11GetApi;
|
|
616
|
-
}(runtime.BaseAPI));
|
|
617
|
-
exports.V11GetApi = V11GetApi;
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Twitter OpenAPI
|
|
6
|
+
* Twitter OpenAPI(Swagger) specification
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: yuki@yuki0311.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.V11GetApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
var V11GetApi = /** @class */ (function (_super) {
|
|
73
|
+
__extends(V11GetApi, _super);
|
|
74
|
+
function V11GetApi() {
|
|
75
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* get friends following list
|
|
79
|
+
*/
|
|
80
|
+
V11GetApi.prototype.getFriendsFollowingListRaw = function (requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
|
|
83
|
+
return __generator(this, function (_14) {
|
|
84
|
+
switch (_14.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
if (requestParameters['includeProfileInterstitialType'] == null) {
|
|
87
|
+
throw new runtime.RequiredError('includeProfileInterstitialType', 'Required parameter "includeProfileInterstitialType" was null or undefined when calling getFriendsFollowingList().');
|
|
88
|
+
}
|
|
89
|
+
if (requestParameters['includeBlocking'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('includeBlocking', 'Required parameter "includeBlocking" was null or undefined when calling getFriendsFollowingList().');
|
|
91
|
+
}
|
|
92
|
+
if (requestParameters['includeBlockedBy'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('includeBlockedBy', 'Required parameter "includeBlockedBy" was null or undefined when calling getFriendsFollowingList().');
|
|
94
|
+
}
|
|
95
|
+
if (requestParameters['includeFollowedBy'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('includeFollowedBy', 'Required parameter "includeFollowedBy" was null or undefined when calling getFriendsFollowingList().');
|
|
97
|
+
}
|
|
98
|
+
if (requestParameters['includeWantRetweets'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('includeWantRetweets', 'Required parameter "includeWantRetweets" was null or undefined when calling getFriendsFollowingList().');
|
|
100
|
+
}
|
|
101
|
+
if (requestParameters['includeMuteEdge'] == null) {
|
|
102
|
+
throw new runtime.RequiredError('includeMuteEdge', 'Required parameter "includeMuteEdge" was null or undefined when calling getFriendsFollowingList().');
|
|
103
|
+
}
|
|
104
|
+
if (requestParameters['includeCanDm'] == null) {
|
|
105
|
+
throw new runtime.RequiredError('includeCanDm', 'Required parameter "includeCanDm" was null or undefined when calling getFriendsFollowingList().');
|
|
106
|
+
}
|
|
107
|
+
if (requestParameters['includeCanMediaTag'] == null) {
|
|
108
|
+
throw new runtime.RequiredError('includeCanMediaTag', 'Required parameter "includeCanMediaTag" was null or undefined when calling getFriendsFollowingList().');
|
|
109
|
+
}
|
|
110
|
+
if (requestParameters['includeExtHasNftAvatar'] == null) {
|
|
111
|
+
throw new runtime.RequiredError('includeExtHasNftAvatar', 'Required parameter "includeExtHasNftAvatar" was null or undefined when calling getFriendsFollowingList().');
|
|
112
|
+
}
|
|
113
|
+
if (requestParameters['includeExtIsBlueVerified'] == null) {
|
|
114
|
+
throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter "includeExtIsBlueVerified" was null or undefined when calling getFriendsFollowingList().');
|
|
115
|
+
}
|
|
116
|
+
if (requestParameters['includeExtVerifiedType'] == null) {
|
|
117
|
+
throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter "includeExtVerifiedType" was null or undefined when calling getFriendsFollowingList().');
|
|
118
|
+
}
|
|
119
|
+
if (requestParameters['includeExtProfileImageShape'] == null) {
|
|
120
|
+
throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter "includeExtProfileImageShape" was null or undefined when calling getFriendsFollowingList().');
|
|
121
|
+
}
|
|
122
|
+
if (requestParameters['skipStatus'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('skipStatus', 'Required parameter "skipStatus" was null or undefined when calling getFriendsFollowingList().');
|
|
124
|
+
}
|
|
125
|
+
if (requestParameters['cursor'] == null) {
|
|
126
|
+
throw new runtime.RequiredError('cursor', 'Required parameter "cursor" was null or undefined when calling getFriendsFollowingList().');
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters['userId'] == null) {
|
|
129
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getFriendsFollowingList().');
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters['count'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('count', 'Required parameter "count" was null or undefined when calling getFriendsFollowingList().');
|
|
133
|
+
}
|
|
134
|
+
if (requestParameters['withTotalCount'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('withTotalCount', 'Required parameter "withTotalCount" was null or undefined when calling getFriendsFollowingList().');
|
|
136
|
+
}
|
|
137
|
+
queryParameters = {};
|
|
138
|
+
if (requestParameters['includeProfileInterstitialType'] != null) {
|
|
139
|
+
queryParameters['include_profile_interstitial_type'] = requestParameters['includeProfileInterstitialType'];
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['includeBlocking'] != null) {
|
|
142
|
+
queryParameters['include_blocking'] = requestParameters['includeBlocking'];
|
|
143
|
+
}
|
|
144
|
+
if (requestParameters['includeBlockedBy'] != null) {
|
|
145
|
+
queryParameters['include_blocked_by'] = requestParameters['includeBlockedBy'];
|
|
146
|
+
}
|
|
147
|
+
if (requestParameters['includeFollowedBy'] != null) {
|
|
148
|
+
queryParameters['include_followed_by'] = requestParameters['includeFollowedBy'];
|
|
149
|
+
}
|
|
150
|
+
if (requestParameters['includeWantRetweets'] != null) {
|
|
151
|
+
queryParameters['include_want_retweets'] = requestParameters['includeWantRetweets'];
|
|
152
|
+
}
|
|
153
|
+
if (requestParameters['includeMuteEdge'] != null) {
|
|
154
|
+
queryParameters['include_mute_edge'] = requestParameters['includeMuteEdge'];
|
|
155
|
+
}
|
|
156
|
+
if (requestParameters['includeCanDm'] != null) {
|
|
157
|
+
queryParameters['include_can_dm'] = requestParameters['includeCanDm'];
|
|
158
|
+
}
|
|
159
|
+
if (requestParameters['includeCanMediaTag'] != null) {
|
|
160
|
+
queryParameters['include_can_media_tag'] = requestParameters['includeCanMediaTag'];
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters['includeExtHasNftAvatar'] != null) {
|
|
163
|
+
queryParameters['include_ext_has_nft_avatar'] = requestParameters['includeExtHasNftAvatar'];
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['includeExtIsBlueVerified'] != null) {
|
|
166
|
+
queryParameters['include_ext_is_blue_verified'] = requestParameters['includeExtIsBlueVerified'];
|
|
167
|
+
}
|
|
168
|
+
if (requestParameters['includeExtVerifiedType'] != null) {
|
|
169
|
+
queryParameters['include_ext_verified_type'] = requestParameters['includeExtVerifiedType'];
|
|
170
|
+
}
|
|
171
|
+
if (requestParameters['includeExtProfileImageShape'] != null) {
|
|
172
|
+
queryParameters['include_ext_profile_image_shape'] = requestParameters['includeExtProfileImageShape'];
|
|
173
|
+
}
|
|
174
|
+
if (requestParameters['skipStatus'] != null) {
|
|
175
|
+
queryParameters['skip_status'] = requestParameters['skipStatus'];
|
|
176
|
+
}
|
|
177
|
+
if (requestParameters['cursor'] != null) {
|
|
178
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['userId'] != null) {
|
|
181
|
+
queryParameters['user_id'] = requestParameters['userId'];
|
|
182
|
+
}
|
|
183
|
+
if (requestParameters['count'] != null) {
|
|
184
|
+
queryParameters['count'] = requestParameters['count'];
|
|
185
|
+
}
|
|
186
|
+
if (requestParameters['withTotalCount'] != null) {
|
|
187
|
+
queryParameters['with_total_count'] = requestParameters['withTotalCount'];
|
|
188
|
+
}
|
|
189
|
+
headerParameters = {};
|
|
190
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
191
|
+
_a = headerParameters;
|
|
192
|
+
_b = "Accept";
|
|
193
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
194
|
+
case 1:
|
|
195
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
196
|
+
_14.label = 2;
|
|
197
|
+
case 2:
|
|
198
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
199
|
+
_c = headerParameters;
|
|
200
|
+
_d = "x-twitter-client-language";
|
|
201
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
202
|
+
case 3:
|
|
203
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
204
|
+
_14.label = 4;
|
|
205
|
+
case 4:
|
|
206
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
207
|
+
_e = headerParameters;
|
|
208
|
+
_f = "Priority";
|
|
209
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
210
|
+
case 5:
|
|
211
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
212
|
+
_14.label = 6;
|
|
213
|
+
case 6:
|
|
214
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
215
|
+
_g = headerParameters;
|
|
216
|
+
_h = "Referer";
|
|
217
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
218
|
+
case 7:
|
|
219
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
220
|
+
_14.label = 8;
|
|
221
|
+
case 8:
|
|
222
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
223
|
+
_j = headerParameters;
|
|
224
|
+
_k = "Sec-Fetch-Dest";
|
|
225
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
226
|
+
case 9:
|
|
227
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
228
|
+
_14.label = 10;
|
|
229
|
+
case 10:
|
|
230
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
231
|
+
_l = headerParameters;
|
|
232
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
233
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
234
|
+
case 11:
|
|
235
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
236
|
+
_14.label = 12;
|
|
237
|
+
case 12:
|
|
238
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
239
|
+
_o = headerParameters;
|
|
240
|
+
_p = "Sec-Fetch-Mode";
|
|
241
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
242
|
+
case 13:
|
|
243
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
244
|
+
_14.label = 14;
|
|
245
|
+
case 14:
|
|
246
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
247
|
+
_q = headerParameters;
|
|
248
|
+
_r = "x-csrf-token";
|
|
249
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
250
|
+
case 15:
|
|
251
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
252
|
+
_14.label = 16;
|
|
253
|
+
case 16:
|
|
254
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
255
|
+
_s = headerParameters;
|
|
256
|
+
_t = "x-client-uuid";
|
|
257
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
258
|
+
case 17:
|
|
259
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
260
|
+
_14.label = 18;
|
|
261
|
+
case 18:
|
|
262
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
263
|
+
token = this.configuration.accessToken;
|
|
264
|
+
return [4 /*yield*/, token("BearerAuth", [])];
|
|
265
|
+
case 19:
|
|
266
|
+
tokenString = _14.sent();
|
|
267
|
+
if (tokenString) {
|
|
268
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
269
|
+
}
|
|
270
|
+
_14.label = 20;
|
|
271
|
+
case 20:
|
|
272
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
273
|
+
_u = headerParameters;
|
|
274
|
+
_v = "x-guest-token";
|
|
275
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
276
|
+
case 21:
|
|
277
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
278
|
+
_14.label = 22;
|
|
279
|
+
case 22:
|
|
280
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
281
|
+
_w = headerParameters;
|
|
282
|
+
_x = "Sec-Ch-Ua";
|
|
283
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
284
|
+
case 23:
|
|
285
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
286
|
+
_14.label = 24;
|
|
287
|
+
case 24:
|
|
288
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
289
|
+
_y = headerParameters;
|
|
290
|
+
_z = "x-client-transaction-id";
|
|
291
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
292
|
+
case 25:
|
|
293
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
294
|
+
_14.label = 26;
|
|
295
|
+
case 26:
|
|
296
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
297
|
+
_0 = headerParameters;
|
|
298
|
+
_1 = "x-twitter-active-user";
|
|
299
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
300
|
+
case 27:
|
|
301
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
302
|
+
_14.label = 28;
|
|
303
|
+
case 28:
|
|
304
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
305
|
+
_2 = headerParameters;
|
|
306
|
+
_3 = "user-agent";
|
|
307
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
308
|
+
case 29:
|
|
309
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
310
|
+
_14.label = 30;
|
|
311
|
+
case 30:
|
|
312
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
313
|
+
_4 = headerParameters;
|
|
314
|
+
_5 = "Accept-Language";
|
|
315
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
316
|
+
case 31:
|
|
317
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
318
|
+
_14.label = 32;
|
|
319
|
+
case 32:
|
|
320
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
321
|
+
_6 = headerParameters;
|
|
322
|
+
_7 = "Sec-Fetch-Site";
|
|
323
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
324
|
+
case 33:
|
|
325
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
326
|
+
_14.label = 34;
|
|
327
|
+
case 34:
|
|
328
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
329
|
+
_8 = headerParameters;
|
|
330
|
+
_9 = "x-twitter-auth-type";
|
|
331
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
332
|
+
case 35:
|
|
333
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
334
|
+
_14.label = 36;
|
|
335
|
+
case 36:
|
|
336
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
337
|
+
_10 = headerParameters;
|
|
338
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
339
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
340
|
+
case 37:
|
|
341
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
342
|
+
_14.label = 38;
|
|
343
|
+
case 38:
|
|
344
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
345
|
+
_12 = headerParameters;
|
|
346
|
+
_13 = "Accept-Encoding";
|
|
347
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
348
|
+
case 39:
|
|
349
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
350
|
+
_14.label = 40;
|
|
351
|
+
case 40: return [4 /*yield*/, this.request({
|
|
352
|
+
path: "/1.1/friends/following/list.json",
|
|
353
|
+
method: 'GET',
|
|
354
|
+
headers: headerParameters,
|
|
355
|
+
query: queryParameters,
|
|
356
|
+
}, initOverrides)];
|
|
357
|
+
case 41:
|
|
358
|
+
response = _14.sent();
|
|
359
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* get friends following list
|
|
366
|
+
*/
|
|
367
|
+
V11GetApi.prototype.getFriendsFollowingList = function (requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
369
|
+
return __generator(this, function (_a) {
|
|
370
|
+
switch (_a.label) {
|
|
371
|
+
case 0: return [4 /*yield*/, this.getFriendsFollowingListRaw(requestParameters, initOverrides)];
|
|
372
|
+
case 1:
|
|
373
|
+
_a.sent();
|
|
374
|
+
return [2 /*return*/];
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* get search typeahead
|
|
381
|
+
*/
|
|
382
|
+
V11GetApi.prototype.getSearchTypeaheadRaw = function (requestParameters, initOverrides) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
384
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
|
|
385
|
+
return __generator(this, function (_14) {
|
|
386
|
+
switch (_14.label) {
|
|
387
|
+
case 0:
|
|
388
|
+
if (requestParameters['includeExtIsBlueVerified'] == null) {
|
|
389
|
+
throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter "includeExtIsBlueVerified" was null or undefined when calling getSearchTypeahead().');
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters['includeExtVerifiedType'] == null) {
|
|
392
|
+
throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter "includeExtVerifiedType" was null or undefined when calling getSearchTypeahead().');
|
|
393
|
+
}
|
|
394
|
+
if (requestParameters['includeExtProfileImageShape'] == null) {
|
|
395
|
+
throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter "includeExtProfileImageShape" was null or undefined when calling getSearchTypeahead().');
|
|
396
|
+
}
|
|
397
|
+
if (requestParameters['q'] == null) {
|
|
398
|
+
throw new runtime.RequiredError('q', 'Required parameter "q" was null or undefined when calling getSearchTypeahead().');
|
|
399
|
+
}
|
|
400
|
+
if (requestParameters['src'] == null) {
|
|
401
|
+
throw new runtime.RequiredError('src', 'Required parameter "src" was null or undefined when calling getSearchTypeahead().');
|
|
402
|
+
}
|
|
403
|
+
if (requestParameters['resultType'] == null) {
|
|
404
|
+
throw new runtime.RequiredError('resultType', 'Required parameter "resultType" was null or undefined when calling getSearchTypeahead().');
|
|
405
|
+
}
|
|
406
|
+
queryParameters = {};
|
|
407
|
+
if (requestParameters['includeExtIsBlueVerified'] != null) {
|
|
408
|
+
queryParameters['include_ext_is_blue_verified'] = requestParameters['includeExtIsBlueVerified'];
|
|
409
|
+
}
|
|
410
|
+
if (requestParameters['includeExtVerifiedType'] != null) {
|
|
411
|
+
queryParameters['include_ext_verified_type'] = requestParameters['includeExtVerifiedType'];
|
|
412
|
+
}
|
|
413
|
+
if (requestParameters['includeExtProfileImageShape'] != null) {
|
|
414
|
+
queryParameters['include_ext_profile_image_shape'] = requestParameters['includeExtProfileImageShape'];
|
|
415
|
+
}
|
|
416
|
+
if (requestParameters['q'] != null) {
|
|
417
|
+
queryParameters['q'] = requestParameters['q'];
|
|
418
|
+
}
|
|
419
|
+
if (requestParameters['src'] != null) {
|
|
420
|
+
queryParameters['src'] = requestParameters['src'];
|
|
421
|
+
}
|
|
422
|
+
if (requestParameters['resultType'] != null) {
|
|
423
|
+
queryParameters['result_type'] = requestParameters['resultType'];
|
|
424
|
+
}
|
|
425
|
+
headerParameters = {};
|
|
426
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
427
|
+
_a = headerParameters;
|
|
428
|
+
_b = "Accept";
|
|
429
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
430
|
+
case 1:
|
|
431
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
432
|
+
_14.label = 2;
|
|
433
|
+
case 2:
|
|
434
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
435
|
+
_c = headerParameters;
|
|
436
|
+
_d = "x-twitter-client-language";
|
|
437
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
438
|
+
case 3:
|
|
439
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
440
|
+
_14.label = 4;
|
|
441
|
+
case 4:
|
|
442
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
443
|
+
_e = headerParameters;
|
|
444
|
+
_f = "Priority";
|
|
445
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
446
|
+
case 5:
|
|
447
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
448
|
+
_14.label = 6;
|
|
449
|
+
case 6:
|
|
450
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
451
|
+
_g = headerParameters;
|
|
452
|
+
_h = "Referer";
|
|
453
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
454
|
+
case 7:
|
|
455
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
456
|
+
_14.label = 8;
|
|
457
|
+
case 8:
|
|
458
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
459
|
+
_j = headerParameters;
|
|
460
|
+
_k = "Sec-Fetch-Dest";
|
|
461
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
462
|
+
case 9:
|
|
463
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
464
|
+
_14.label = 10;
|
|
465
|
+
case 10:
|
|
466
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
467
|
+
_l = headerParameters;
|
|
468
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
469
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
470
|
+
case 11:
|
|
471
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
472
|
+
_14.label = 12;
|
|
473
|
+
case 12:
|
|
474
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
475
|
+
_o = headerParameters;
|
|
476
|
+
_p = "Sec-Fetch-Mode";
|
|
477
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
478
|
+
case 13:
|
|
479
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
480
|
+
_14.label = 14;
|
|
481
|
+
case 14:
|
|
482
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
483
|
+
_q = headerParameters;
|
|
484
|
+
_r = "x-csrf-token";
|
|
485
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
486
|
+
case 15:
|
|
487
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
488
|
+
_14.label = 16;
|
|
489
|
+
case 16:
|
|
490
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
491
|
+
_s = headerParameters;
|
|
492
|
+
_t = "x-client-uuid";
|
|
493
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
494
|
+
case 17:
|
|
495
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
496
|
+
_14.label = 18;
|
|
497
|
+
case 18:
|
|
498
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
499
|
+
token = this.configuration.accessToken;
|
|
500
|
+
return [4 /*yield*/, token("BearerAuth", [])];
|
|
501
|
+
case 19:
|
|
502
|
+
tokenString = _14.sent();
|
|
503
|
+
if (tokenString) {
|
|
504
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
505
|
+
}
|
|
506
|
+
_14.label = 20;
|
|
507
|
+
case 20:
|
|
508
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
509
|
+
_u = headerParameters;
|
|
510
|
+
_v = "x-guest-token";
|
|
511
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
512
|
+
case 21:
|
|
513
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
514
|
+
_14.label = 22;
|
|
515
|
+
case 22:
|
|
516
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
517
|
+
_w = headerParameters;
|
|
518
|
+
_x = "Sec-Ch-Ua";
|
|
519
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
520
|
+
case 23:
|
|
521
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
522
|
+
_14.label = 24;
|
|
523
|
+
case 24:
|
|
524
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
525
|
+
_y = headerParameters;
|
|
526
|
+
_z = "x-client-transaction-id";
|
|
527
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
528
|
+
case 25:
|
|
529
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
530
|
+
_14.label = 26;
|
|
531
|
+
case 26:
|
|
532
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
533
|
+
_0 = headerParameters;
|
|
534
|
+
_1 = "x-twitter-active-user";
|
|
535
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
536
|
+
case 27:
|
|
537
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
538
|
+
_14.label = 28;
|
|
539
|
+
case 28:
|
|
540
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
541
|
+
_2 = headerParameters;
|
|
542
|
+
_3 = "user-agent";
|
|
543
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
544
|
+
case 29:
|
|
545
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
546
|
+
_14.label = 30;
|
|
547
|
+
case 30:
|
|
548
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
549
|
+
_4 = headerParameters;
|
|
550
|
+
_5 = "Accept-Language";
|
|
551
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
552
|
+
case 31:
|
|
553
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
554
|
+
_14.label = 32;
|
|
555
|
+
case 32:
|
|
556
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
557
|
+
_6 = headerParameters;
|
|
558
|
+
_7 = "Sec-Fetch-Site";
|
|
559
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
560
|
+
case 33:
|
|
561
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
562
|
+
_14.label = 34;
|
|
563
|
+
case 34:
|
|
564
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
565
|
+
_8 = headerParameters;
|
|
566
|
+
_9 = "x-twitter-auth-type";
|
|
567
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
568
|
+
case 35:
|
|
569
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
570
|
+
_14.label = 36;
|
|
571
|
+
case 36:
|
|
572
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
573
|
+
_10 = headerParameters;
|
|
574
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
575
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
576
|
+
case 37:
|
|
577
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
578
|
+
_14.label = 38;
|
|
579
|
+
case 38:
|
|
580
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
581
|
+
_12 = headerParameters;
|
|
582
|
+
_13 = "Accept-Encoding";
|
|
583
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
584
|
+
case 39:
|
|
585
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
586
|
+
_14.label = 40;
|
|
587
|
+
case 40: return [4 /*yield*/, this.request({
|
|
588
|
+
path: "/1.1/search/typeahead.json",
|
|
589
|
+
method: 'GET',
|
|
590
|
+
headers: headerParameters,
|
|
591
|
+
query: queryParameters,
|
|
592
|
+
}, initOverrides)];
|
|
593
|
+
case 41:
|
|
594
|
+
response = _14.sent();
|
|
595
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
});
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* get search typeahead
|
|
602
|
+
*/
|
|
603
|
+
V11GetApi.prototype.getSearchTypeahead = function (requestParameters, initOverrides) {
|
|
604
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
605
|
+
return __generator(this, function (_a) {
|
|
606
|
+
switch (_a.label) {
|
|
607
|
+
case 0: return [4 /*yield*/, this.getSearchTypeaheadRaw(requestParameters, initOverrides)];
|
|
608
|
+
case 1:
|
|
609
|
+
_a.sent();
|
|
610
|
+
return [2 /*return*/];
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
};
|
|
615
|
+
return V11GetApi;
|
|
616
|
+
}(runtime.BaseAPI));
|
|
617
|
+
exports.V11GetApi = V11GetApi;
|
|
618
618
|
//# sourceMappingURL=V11GetApi.js.map
|