twitter-openapi-typescript-generated 0.0.39 → 0.0.41
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/LICENSE +31 -31
- package/LICENSE.AGPL +660 -660
- package/README.md +152 -6
- package/dist/apis/DefaultApi.d.ts +21 -1
- package/dist/apis/DefaultApi.js +215 -505
- package/dist/apis/OtherApi.d.ts +0 -1
- package/dist/apis/OtherApi.js +90 -259
- package/dist/apis/PostApi.d.ts +190 -1
- package/dist/apis/PostApi.js +1434 -1792
- package/dist/apis/TweetApi.d.ts +419 -1
- package/dist/apis/TweetApi.js +2681 -3463
- package/dist/apis/UserApi.d.ts +90 -1
- package/dist/apis/UserApi.js +542 -502
- package/dist/apis/UserListApi.d.ts +232 -1
- package/dist/apis/UserListApi.js +1324 -1167
- package/dist/apis/UsersApi.d.ts +9 -1
- package/dist/apis/UsersApi.js +106 -275
- package/dist/apis/V11GetApi.d.ts +69 -1
- package/dist/apis/V11GetApi.js +311 -599
- package/dist/apis/V11PostApi.d.ts +84 -1
- package/dist/apis/V11PostApi.js +369 -653
- package/dist/apis/V20GetApi.d.ts +111 -1
- package/dist/apis/V20GetApi.js +310 -478
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/DefaultApi.d.ts +75 -0
- package/dist/esm/apis/DefaultApi.js +266 -0
- package/dist/esm/apis/OtherApi.d.ts +30 -0
- package/dist/esm/apis/OtherApi.js +128 -0
- package/dist/esm/apis/PostApi.d.ts +351 -0
- package/dist/esm/apis/PostApi.js +1566 -0
- package/dist/esm/apis/TweetApi.d.ts +708 -0
- package/dist/esm/apis/TweetApi.js +2881 -0
- package/dist/esm/apis/UserApi.d.ts +143 -0
- package/dist/esm/apis/UserApi.js +595 -0
- package/dist/esm/apis/UserListApi.d.ts +337 -0
- package/dist/esm/apis/UserListApi.js +1416 -0
- package/dist/esm/apis/UsersApi.d.ts +44 -0
- package/dist/esm/apis/UsersApi.js +144 -0
- package/dist/esm/apis/V11GetApi.d.ts +137 -0
- package/dist/esm/apis/V11GetApi.js +362 -0
- package/dist/esm/apis/V11PostApi.d.ts +157 -0
- package/dist/esm/apis/V11PostApi.js +420 -0
- package/dist/esm/apis/V20GetApi.d.ts +179 -0
- package/dist/esm/apis/V20GetApi.js +348 -0
- package/dist/esm/apis/index.d.ts +10 -0
- package/dist/esm/apis/index.js +12 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AboutCommunityResult.d.ts +36 -0
- package/dist/esm/models/AboutCommunityResult.js +49 -0
- package/dist/esm/models/AboutCommunityResults.d.ts +31 -0
- package/dist/esm/models/AboutCommunityResults.js +44 -0
- package/dist/esm/models/AboutCommunityTweetData.d.ts +31 -0
- package/dist/esm/models/AboutCommunityTweetData.js +44 -0
- package/dist/esm/models/AdditionalMediaInfo.d.ts +52 -0
- package/dist/esm/models/AdditionalMediaInfo.js +55 -0
- package/dist/esm/models/AdditionalMediaInfoCallToActions.d.ts +35 -0
- package/dist/esm/models/AdditionalMediaInfoCallToActions.js +44 -0
- package/dist/esm/models/AdditionalMediaInfoCallToActionsUrl.d.ts +30 -0
- package/dist/esm/models/AdditionalMediaInfoCallToActionsUrl.js +43 -0
- package/dist/esm/models/AllowDownloadStatus.d.ts +30 -0
- package/dist/esm/models/AllowDownloadStatus.js +41 -0
- package/dist/esm/models/AnalysisResults.d.ts +31 -0
- package/dist/esm/models/AnalysisResults.js +44 -0
- package/dist/esm/models/Article.d.ts +31 -0
- package/dist/esm/models/Article.js +44 -0
- package/dist/esm/models/ArticleCoverMedia.d.ts +43 -0
- package/dist/esm/models/ArticleCoverMedia.js +56 -0
- package/dist/esm/models/ArticleCoverMediaColorInfo.d.ts +31 -0
- package/dist/esm/models/ArticleCoverMediaColorInfo.js +44 -0
- package/dist/esm/models/ArticleCoverMediaColorInfoPalette.d.ts +35 -0
- package/dist/esm/models/ArticleCoverMediaColorInfoPalette.js +48 -0
- package/dist/esm/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +38 -0
- package/dist/esm/models/ArticleCoverMediaColorInfoPaletteRGB.js +51 -0
- package/dist/esm/models/ArticleCoverMediaInfo.d.ts +48 -0
- package/dist/esm/models/ArticleCoverMediaInfo.js +59 -0
- package/dist/esm/models/ArticleLifecycleState.d.ts +30 -0
- package/dist/esm/models/ArticleLifecycleState.js +43 -0
- package/dist/esm/models/ArticleMetadata.d.ts +30 -0
- package/dist/esm/models/ArticleMetadata.js +43 -0
- package/dist/esm/models/ArticlePreview.d.ts +43 -0
- package/dist/esm/models/ArticlePreview.js +54 -0
- package/dist/esm/models/ArticleResult.d.ts +71 -0
- package/dist/esm/models/ArticleResult.js +72 -0
- package/dist/esm/models/ArticleResults.d.ts +31 -0
- package/dist/esm/models/ArticleResults.js +44 -0
- package/dist/esm/models/AuthorCommunityRelationship.d.ts +50 -0
- package/dist/esm/models/AuthorCommunityRelationship.js +58 -0
- package/dist/esm/models/BadgeCounts.d.ts +46 -0
- package/dist/esm/models/BadgeCounts.js +59 -0
- package/dist/esm/models/BirdwatchEntity.d.ts +39 -0
- package/dist/esm/models/BirdwatchEntity.js +52 -0
- package/dist/esm/models/BirdwatchEntityRef.d.ts +61 -0
- package/dist/esm/models/BirdwatchEntityRef.js +64 -0
- package/dist/esm/models/BirdwatchPivot.d.ts +97 -0
- package/dist/esm/models/BirdwatchPivot.js +91 -0
- package/dist/esm/models/BirdwatchPivotCallToAction.d.ts +38 -0
- package/dist/esm/models/BirdwatchPivotCallToAction.js +51 -0
- package/dist/esm/models/BirdwatchPivotFooter.d.ts +35 -0
- package/dist/esm/models/BirdwatchPivotFooter.js +48 -0
- package/dist/esm/models/BirdwatchPivotNote.d.ts +43 -0
- package/dist/esm/models/BirdwatchPivotNote.js +50 -0
- package/dist/esm/models/BirdwatchPivotSubtitle.d.ts +35 -0
- package/dist/esm/models/BirdwatchPivotSubtitle.js +48 -0
- package/dist/esm/models/BookmarksResponse.d.ts +36 -0
- package/dist/esm/models/BookmarksResponse.js +45 -0
- package/dist/esm/models/BookmarksResponseData.d.ts +31 -0
- package/dist/esm/models/BookmarksResponseData.js +44 -0
- package/dist/esm/models/BookmarksTimeline.d.ts +31 -0
- package/dist/esm/models/BookmarksTimeline.js +44 -0
- package/dist/esm/models/Callback.d.ts +30 -0
- package/dist/esm/models/Callback.js +43 -0
- package/dist/esm/models/CashtagAttachment.d.ts +30 -0
- package/dist/esm/models/CashtagAttachment.js +43 -0
- package/dist/esm/models/ClientEventInfo.d.ts +40 -0
- package/dist/esm/models/ClientEventInfo.js +45 -0
- package/dist/esm/models/CommunitiesActions.d.ts +30 -0
- package/dist/esm/models/CommunitiesActions.js +43 -0
- package/dist/esm/models/Community.d.ts +167 -0
- package/dist/esm/models/Community.js +121 -0
- package/dist/esm/models/CommunityAboutTimelineResponse.d.ts +36 -0
- package/dist/esm/models/CommunityAboutTimelineResponse.js +47 -0
- package/dist/esm/models/CommunityActions.d.ts +51 -0
- package/dist/esm/models/CommunityActions.js +54 -0
- package/dist/esm/models/CommunityDeleteActionResult.d.ts +42 -0
- package/dist/esm/models/CommunityDeleteActionResult.js +56 -0
- package/dist/esm/models/CommunityDiscoveryTimelineResponse.d.ts +36 -0
- package/dist/esm/models/CommunityDiscoveryTimelineResponse.js +47 -0
- package/dist/esm/models/CommunityDiscoveryTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/CommunityDiscoveryTimelineResponseData.js +44 -0
- package/dist/esm/models/CommunityDiscoveryTimelineViewer.d.ts +31 -0
- package/dist/esm/models/CommunityDiscoveryTimelineViewer.js +44 -0
- package/dist/esm/models/CommunityInvitesResult.d.ts +46 -0
- package/dist/esm/models/CommunityInvitesResult.js +60 -0
- package/dist/esm/models/CommunityJoinAction.d.ts +31 -0
- package/dist/esm/models/CommunityJoinAction.js +44 -0
- package/dist/esm/models/CommunityJoinActionResultUnion.d.ts +27 -0
- package/dist/esm/models/CommunityJoinActionResultUnion.js +47 -0
- package/dist/esm/models/CommunityJoinActionUnavailable.d.ts +46 -0
- package/dist/esm/models/CommunityJoinActionUnavailable.js +60 -0
- package/dist/esm/models/CommunityJoinRequestsResult.d.ts +31 -0
- package/dist/esm/models/CommunityJoinRequestsResult.js +44 -0
- package/dist/esm/models/CommunityLeaveActionResult.d.ts +46 -0
- package/dist/esm/models/CommunityLeaveActionResult.js +60 -0
- package/dist/esm/models/CommunityMediaTimelineResponse.d.ts +36 -0
- package/dist/esm/models/CommunityMediaTimelineResponse.js +47 -0
- package/dist/esm/models/CommunityPinActionResult.d.ts +31 -0
- package/dist/esm/models/CommunityPinActionResult.js +44 -0
- package/dist/esm/models/CommunityRelationship.d.ts +45 -0
- package/dist/esm/models/CommunityRelationship.js +56 -0
- package/dist/esm/models/CommunityResult.d.ts +31 -0
- package/dist/esm/models/CommunityResult.js +44 -0
- package/dist/esm/models/CommunityRule.d.ts +38 -0
- package/dist/esm/models/CommunityRule.js +49 -0
- package/dist/esm/models/CommunityTweetsTimelineResponse.d.ts +36 -0
- package/dist/esm/models/CommunityTweetsTimelineResponse.js +47 -0
- package/dist/esm/models/CommunityUnavailable.d.ts +31 -0
- package/dist/esm/models/CommunityUnavailable.js +44 -0
- package/dist/esm/models/CommunityUnion.d.ts +27 -0
- package/dist/esm/models/CommunityUnion.js +47 -0
- package/dist/esm/models/CommunityUnpinActionResult.d.ts +31 -0
- package/dist/esm/models/CommunityUnpinActionResult.js +44 -0
- package/dist/esm/models/CommunityUrls.d.ts +31 -0
- package/dist/esm/models/CommunityUrls.js +44 -0
- package/dist/esm/models/CommunityUrlsPermalink.d.ts +30 -0
- package/dist/esm/models/CommunityUrlsPermalink.js +43 -0
- package/dist/esm/models/ConnectTabTimelineResponse.d.ts +36 -0
- package/dist/esm/models/ConnectTabTimelineResponse.js +47 -0
- package/dist/esm/models/ConnectTabTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/ConnectTabTimelineResponseData.js +44 -0
- package/dist/esm/models/ContentDisclosure.d.ts +36 -0
- package/dist/esm/models/ContentDisclosure.js +45 -0
- package/dist/esm/models/ContentDisclosureAdvertisingDisclosure.d.ts +30 -0
- package/dist/esm/models/ContentDisclosureAdvertisingDisclosure.js +43 -0
- package/dist/esm/models/ContentDisclosureAiGeneratedDisclosure.d.ts +48 -0
- package/dist/esm/models/ContentDisclosureAiGeneratedDisclosure.js +58 -0
- package/dist/esm/models/ContentEntryType.d.ts +26 -0
- package/dist/esm/models/ContentEntryType.js +44 -0
- package/dist/esm/models/ContentItemType.d.ts +35 -0
- package/dist/esm/models/ContentItemType.js +53 -0
- package/dist/esm/models/ContentUnion.d.ts +30 -0
- package/dist/esm/models/ContentUnion.js +52 -0
- package/dist/esm/models/ConversationControl.d.ts +39 -0
- package/dist/esm/models/ConversationControl.js +51 -0
- package/dist/esm/models/CoverCta.d.ts +56 -0
- package/dist/esm/models/CoverCta.js +64 -0
- package/dist/esm/models/CreateBookmarkResponse.d.ts +36 -0
- package/dist/esm/models/CreateBookmarkResponse.js +47 -0
- package/dist/esm/models/CreateBookmarkResponseData.d.ts +30 -0
- package/dist/esm/models/CreateBookmarkResponseData.js +41 -0
- package/dist/esm/models/CreateDraftTweetResponse.d.ts +36 -0
- package/dist/esm/models/CreateDraftTweetResponse.js +47 -0
- package/dist/esm/models/CreateDraftTweetResponseData.d.ts +31 -0
- package/dist/esm/models/CreateDraftTweetResponseData.js +44 -0
- package/dist/esm/models/CreateDraftTweetResponseTweet.d.ts +30 -0
- package/dist/esm/models/CreateDraftTweetResponseTweet.js +43 -0
- package/dist/esm/models/CreateRetweet.d.ts +31 -0
- package/dist/esm/models/CreateRetweet.js +44 -0
- package/dist/esm/models/CreateRetweetResponse.d.ts +36 -0
- package/dist/esm/models/CreateRetweetResponse.js +47 -0
- package/dist/esm/models/CreateRetweetResponseData.d.ts +31 -0
- package/dist/esm/models/CreateRetweetResponseData.js +42 -0
- package/dist/esm/models/CreateRetweetResponseResult.d.ts +31 -0
- package/dist/esm/models/CreateRetweetResponseResult.js +44 -0
- package/dist/esm/models/CreateTweet.d.ts +31 -0
- package/dist/esm/models/CreateTweet.js +44 -0
- package/dist/esm/models/CreateTweetResponse.d.ts +36 -0
- package/dist/esm/models/CreateTweetResponse.js +47 -0
- package/dist/esm/models/CreateTweetResponseData.d.ts +31 -0
- package/dist/esm/models/CreateTweetResponseData.js +42 -0
- package/dist/esm/models/CreateTweetResponseResult.d.ts +31 -0
- package/dist/esm/models/CreateTweetResponseResult.js +44 -0
- package/dist/esm/models/CtaClientEventInfo.d.ts +37 -0
- package/dist/esm/models/CtaClientEventInfo.js +51 -0
- package/dist/esm/models/CursorType.d.ts +29 -0
- package/dist/esm/models/CursorType.js +47 -0
- package/dist/esm/models/DeleteBookmarkResponse.d.ts +36 -0
- package/dist/esm/models/DeleteBookmarkResponse.js +47 -0
- package/dist/esm/models/DeleteBookmarkResponseData.d.ts +30 -0
- package/dist/esm/models/DeleteBookmarkResponseData.js +41 -0
- package/dist/esm/models/DeleteDraftTweetsResponse.d.ts +36 -0
- package/dist/esm/models/DeleteDraftTweetsResponse.js +47 -0
- package/dist/esm/models/DeleteDraftTweetsResponseData.d.ts +30 -0
- package/dist/esm/models/DeleteDraftTweetsResponseData.js +43 -0
- package/dist/esm/models/DeleteListResponse.d.ts +36 -0
- package/dist/esm/models/DeleteListResponse.js +47 -0
- package/dist/esm/models/DeleteListResponseData.d.ts +30 -0
- package/dist/esm/models/DeleteListResponseData.js +43 -0
- package/dist/esm/models/DeleteRetweet.d.ts +31 -0
- package/dist/esm/models/DeleteRetweet.js +44 -0
- package/dist/esm/models/DeleteRetweetResponse.d.ts +36 -0
- package/dist/esm/models/DeleteRetweetResponse.js +47 -0
- package/dist/esm/models/DeleteRetweetResponseData.d.ts +31 -0
- package/dist/esm/models/DeleteRetweetResponseData.js +42 -0
- package/dist/esm/models/DeleteRetweetResponseResult.d.ts +31 -0
- package/dist/esm/models/DeleteRetweetResponseResult.js +42 -0
- package/dist/esm/models/DeleteTweetResponse.d.ts +36 -0
- package/dist/esm/models/DeleteTweetResponse.js +47 -0
- package/dist/esm/models/DeleteTweetResponseData.d.ts +31 -0
- package/dist/esm/models/DeleteTweetResponseData.js +42 -0
- package/dist/esm/models/DeleteTweetResponseResult.d.ts +30 -0
- package/dist/esm/models/DeleteTweetResponseResult.js +43 -0
- package/dist/esm/models/DisplayTreatment.d.ts +34 -0
- package/dist/esm/models/DisplayTreatment.js +45 -0
- package/dist/esm/models/DisplayType.d.ts +27 -0
- package/dist/esm/models/DisplayType.js +45 -0
- package/dist/esm/models/DraftList.d.ts +31 -0
- package/dist/esm/models/DraftList.js +44 -0
- package/dist/esm/models/DraftTweet.d.ts +40 -0
- package/dist/esm/models/DraftTweet.js +53 -0
- package/dist/esm/models/DraftTweetCreateRequest.d.ts +52 -0
- package/dist/esm/models/DraftTweetCreateRequest.js +63 -0
- package/dist/esm/models/DraftTweetUser.d.ts +35 -0
- package/dist/esm/models/DraftTweetUser.js +48 -0
- package/dist/esm/models/DraftTweetUserResults.d.ts +31 -0
- package/dist/esm/models/DraftTweetUserResults.js +44 -0
- package/dist/esm/models/DraftTweetsViewer.d.ts +31 -0
- package/dist/esm/models/DraftTweetsViewer.js +44 -0
- package/dist/esm/models/Entities.d.ts +64 -0
- package/dist/esm/models/Entities.js +57 -0
- package/dist/esm/models/ErrorExtensions.d.ts +51 -0
- package/dist/esm/models/ErrorExtensions.js +60 -0
- package/dist/esm/models/ErrorResponse.d.ts +70 -0
- package/dist/esm/models/ErrorResponse.js +79 -0
- package/dist/esm/models/ErrorResponsePathInner.d.ts +21 -0
- package/dist/esm/models/ErrorResponsePathInner.js +43 -0
- package/dist/esm/models/ExplorePage.d.ts +35 -0
- package/dist/esm/models/ExplorePage.js +48 -0
- package/dist/esm/models/ExplorePageBody.d.ts +40 -0
- package/dist/esm/models/ExplorePageBody.js +53 -0
- package/dist/esm/models/ExplorePageResponse.d.ts +36 -0
- package/dist/esm/models/ExplorePageResponse.js +47 -0
- package/dist/esm/models/ExplorePageResponseData.d.ts +31 -0
- package/dist/esm/models/ExplorePageResponseData.js +44 -0
- package/dist/esm/models/ExploreTimeline.d.ts +48 -0
- package/dist/esm/models/ExploreTimeline.js +61 -0
- package/dist/esm/models/ExploreTimelineScribeConfig.d.ts +34 -0
- package/dist/esm/models/ExploreTimelineScribeConfig.js +47 -0
- package/dist/esm/models/ExtMediaAvailability.d.ts +42 -0
- package/dist/esm/models/ExtMediaAvailability.js +50 -0
- package/dist/esm/models/ExtendedEntities.d.ts +31 -0
- package/dist/esm/models/ExtendedEntities.js +44 -0
- package/dist/esm/models/FavoriteTweet.d.ts +30 -0
- package/dist/esm/models/FavoriteTweet.js +41 -0
- package/dist/esm/models/FavoriteTweetResponse.d.ts +36 -0
- package/dist/esm/models/FavoriteTweetResponse.js +47 -0
- package/dist/esm/models/FeedbackInfo.d.ts +35 -0
- package/dist/esm/models/FeedbackInfo.js +44 -0
- package/dist/esm/models/FetchDraftTweetsResponse.d.ts +36 -0
- package/dist/esm/models/FetchDraftTweetsResponse.js +47 -0
- package/dist/esm/models/FetchDraftTweetsResponseData.d.ts +31 -0
- package/dist/esm/models/FetchDraftTweetsResponseData.js +44 -0
- package/dist/esm/models/FetchScheduledTweetsResponse.d.ts +36 -0
- package/dist/esm/models/FetchScheduledTweetsResponse.js +47 -0
- package/dist/esm/models/FetchScheduledTweetsResponseData.d.ts +31 -0
- package/dist/esm/models/FetchScheduledTweetsResponseData.js +44 -0
- package/dist/esm/models/FollowResponse.d.ts +36 -0
- package/dist/esm/models/FollowResponse.js +47 -0
- package/dist/esm/models/FollowResponseData.d.ts +31 -0
- package/dist/esm/models/FollowResponseData.js +42 -0
- package/dist/esm/models/FollowResponseResult.d.ts +36 -0
- package/dist/esm/models/FollowResponseResult.js +49 -0
- package/dist/esm/models/FollowResponseUser.d.ts +31 -0
- package/dist/esm/models/FollowResponseUser.js +44 -0
- package/dist/esm/models/FollowTimeline.d.ts +31 -0
- package/dist/esm/models/FollowTimeline.js +44 -0
- package/dist/esm/models/GenericTimelineByIdResponse.d.ts +36 -0
- package/dist/esm/models/GenericTimelineByIdResponse.js +47 -0
- package/dist/esm/models/GenericTimelineByIdResponseData.d.ts +31 -0
- package/dist/esm/models/GenericTimelineByIdResponseData.js +44 -0
- package/dist/esm/models/GrokAnnotation.d.ts +30 -0
- package/dist/esm/models/GrokAnnotation.js +41 -0
- package/dist/esm/models/GrokEntity.d.ts +39 -0
- package/dist/esm/models/GrokEntity.js +52 -0
- package/dist/esm/models/GrokEntityRef.d.ts +65 -0
- package/dist/esm/models/GrokEntityRef.js +66 -0
- package/dist/esm/models/GrokImageAnnotation.d.ts +34 -0
- package/dist/esm/models/GrokImageAnnotation.js +47 -0
- package/dist/esm/models/GrokShareAttachment.d.ts +31 -0
- package/dist/esm/models/GrokShareAttachment.js +44 -0
- package/dist/esm/models/GrokShareAttachmentItem.d.ts +45 -0
- package/dist/esm/models/GrokShareAttachmentItem.js +52 -0
- package/dist/esm/models/GrokTranslatedBio.d.ts +43 -0
- package/dist/esm/models/GrokTranslatedBio.js +56 -0
- package/dist/esm/models/GrokTranslatedBioWithAvailability.d.ts +35 -0
- package/dist/esm/models/GrokTranslatedBioWithAvailability.js +46 -0
- package/dist/esm/models/GrokTranslatedCommunityNote.d.ts +47 -0
- package/dist/esm/models/GrokTranslatedCommunityNote.js +58 -0
- package/dist/esm/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +35 -0
- package/dist/esm/models/GrokTranslatedCommunityNoteWithAvailability.js +46 -0
- package/dist/esm/models/GrokTranslatedPost.d.ts +53 -0
- package/dist/esm/models/GrokTranslatedPost.js +52 -0
- package/dist/esm/models/GrokTranslatedPostWithAvailability.d.ts +35 -0
- package/dist/esm/models/GrokTranslatedPostWithAvailability.js +46 -0
- package/dist/esm/models/Highlight.d.ts +31 -0
- package/dist/esm/models/Highlight.js +44 -0
- package/dist/esm/models/HomeTimelineHome.d.ts +31 -0
- package/dist/esm/models/HomeTimelineHome.js +44 -0
- package/dist/esm/models/HomeTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/HomeTimelineResponseData.js +44 -0
- package/dist/esm/models/InstructionType.d.ts +33 -0
- package/dist/esm/models/InstructionType.js +51 -0
- package/dist/esm/models/InstructionUnion.d.ts +51 -0
- package/dist/esm/models/InstructionUnion.js +87 -0
- package/dist/esm/models/ItemContentUnion.d.ts +57 -0
- package/dist/esm/models/ItemContentUnion.js +97 -0
- package/dist/esm/models/ItemResult.d.ts +36 -0
- package/dist/esm/models/ItemResult.js +45 -0
- package/dist/esm/models/LimitedActionResultsData.d.ts +50 -0
- package/dist/esm/models/LimitedActionResultsData.js +62 -0
- package/dist/esm/models/ListBannerMedia.d.ts +31 -0
- package/dist/esm/models/ListBannerMedia.js +44 -0
- package/dist/esm/models/ListBannerMediaInfo.d.ts +43 -0
- package/dist/esm/models/ListBannerMediaInfo.js +56 -0
- package/dist/esm/models/ListBannerMediaSalientRect.d.ts +42 -0
- package/dist/esm/models/ListBannerMediaSalientRect.js +55 -0
- package/dist/esm/models/ListLatestTweetsTimelineResponse.d.ts +36 -0
- package/dist/esm/models/ListLatestTweetsTimelineResponse.js +47 -0
- package/dist/esm/models/ListMembersList.d.ts +31 -0
- package/dist/esm/models/ListMembersList.js +44 -0
- package/dist/esm/models/ListMembersResponse.d.ts +36 -0
- package/dist/esm/models/ListMembersResponse.js +47 -0
- package/dist/esm/models/ListMembersResponseData.d.ts +31 -0
- package/dist/esm/models/ListMembersResponseData.js +44 -0
- package/dist/esm/models/ListRecommendedUsersList.d.ts +31 -0
- package/dist/esm/models/ListRecommendedUsersList.js +44 -0
- package/dist/esm/models/ListRecommendedUsersResponse.d.ts +36 -0
- package/dist/esm/models/ListRecommendedUsersResponse.js +47 -0
- package/dist/esm/models/ListRecommendedUsersResponseData.d.ts +31 -0
- package/dist/esm/models/ListRecommendedUsersResponseData.js +44 -0
- package/dist/esm/models/ListResponse.d.ts +36 -0
- package/dist/esm/models/ListResponse.js +47 -0
- package/dist/esm/models/ListResponseData.d.ts +31 -0
- package/dist/esm/models/ListResponseData.js +44 -0
- package/dist/esm/models/ListSubscribersList.d.ts +31 -0
- package/dist/esm/models/ListSubscribersList.js +44 -0
- package/dist/esm/models/ListSubscribersResponse.d.ts +36 -0
- package/dist/esm/models/ListSubscribersResponse.js +47 -0
- package/dist/esm/models/ListSubscribersResponseData.d.ts +31 -0
- package/dist/esm/models/ListSubscribersResponseData.js +44 -0
- package/dist/esm/models/ListTweetsTimelineData.d.ts +31 -0
- package/dist/esm/models/ListTweetsTimelineData.js +44 -0
- package/dist/esm/models/ListTweetsTimelineList.d.ts +31 -0
- package/dist/esm/models/ListTweetsTimelineList.js +44 -0
- package/dist/esm/models/Location.d.ts +34 -0
- package/dist/esm/models/Location.js +47 -0
- package/dist/esm/models/Media.d.ts +132 -0
- package/dist/esm/models/Media.js +122 -0
- package/dist/esm/models/MediaCommunityResult.d.ts +36 -0
- package/dist/esm/models/MediaCommunityResult.js +49 -0
- package/dist/esm/models/MediaCommunityResults.d.ts +31 -0
- package/dist/esm/models/MediaCommunityResults.js +44 -0
- package/dist/esm/models/MediaCommunityTweetData.d.ts +31 -0
- package/dist/esm/models/MediaCommunityTweetData.js +44 -0
- package/dist/esm/models/MediaExtended.d.ts +137 -0
- package/dist/esm/models/MediaExtended.js +123 -0
- package/dist/esm/models/MediaOriginalInfo.d.ts +39 -0
- package/dist/esm/models/MediaOriginalInfo.js +50 -0
- package/dist/esm/models/MediaOriginalInfoFocusRect.d.ts +42 -0
- package/dist/esm/models/MediaOriginalInfoFocusRect.js +55 -0
- package/dist/esm/models/MediaResult.d.ts +35 -0
- package/dist/esm/models/MediaResult.js +46 -0
- package/dist/esm/models/MediaResults.d.ts +31 -0
- package/dist/esm/models/MediaResults.js +44 -0
- package/dist/esm/models/MediaSize.d.ts +46 -0
- package/dist/esm/models/MediaSize.js +58 -0
- package/dist/esm/models/MediaSizes.d.ts +43 -0
- package/dist/esm/models/MediaSizes.js +56 -0
- package/dist/esm/models/MediaStats.d.ts +30 -0
- package/dist/esm/models/MediaStats.js +43 -0
- package/dist/esm/models/MediaVideoInfo.d.ts +39 -0
- package/dist/esm/models/MediaVideoInfo.js +50 -0
- package/dist/esm/models/MediaVideoInfoVariant.d.ts +38 -0
- package/dist/esm/models/MediaVideoInfoVariant.js +49 -0
- package/dist/esm/models/MediaVisibilityResults.d.ts +31 -0
- package/dist/esm/models/MediaVisibilityResults.js +44 -0
- package/dist/esm/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +39 -0
- package/dist/esm/models/MediaVisibilityResultsBlurredImageInterstitial.js +52 -0
- package/dist/esm/models/ModuleEntry.d.ts +41 -0
- package/dist/esm/models/ModuleEntry.js +50 -0
- package/dist/esm/models/ModuleItem.d.ts +39 -0
- package/dist/esm/models/ModuleItem.js +50 -0
- package/dist/esm/models/NoteTweet.d.ts +35 -0
- package/dist/esm/models/NoteTweet.js +46 -0
- package/dist/esm/models/NoteTweetResult.d.ts +31 -0
- package/dist/esm/models/NoteTweetResult.js +44 -0
- package/dist/esm/models/NoteTweetResultData.d.ts +49 -0
- package/dist/esm/models/NoteTweetResultData.js +58 -0
- package/dist/esm/models/NoteTweetResultMedia.d.ts +31 -0
- package/dist/esm/models/NoteTweetResultMedia.js +44 -0
- package/dist/esm/models/NoteTweetResultMediaInlineMedia.d.ts +34 -0
- package/dist/esm/models/NoteTweetResultMediaInlineMedia.js +47 -0
- package/dist/esm/models/NoteTweetResultRichText.d.ts +31 -0
- package/dist/esm/models/NoteTweetResultRichText.js +44 -0
- package/dist/esm/models/NoteTweetResultRichTextTag.d.ts +46 -0
- package/dist/esm/models/NoteTweetResultRichTextTag.js +58 -0
- package/dist/esm/models/NotificationTemplate.d.ts +39 -0
- package/dist/esm/models/NotificationTemplate.js +46 -0
- package/dist/esm/models/NotificationsResult.d.ts +40 -0
- package/dist/esm/models/NotificationsResult.js +53 -0
- package/dist/esm/models/NotificationsTimelineData.d.ts +31 -0
- package/dist/esm/models/NotificationsTimelineData.js +44 -0
- package/dist/esm/models/NotificationsTimelineResponse.d.ts +36 -0
- package/dist/esm/models/NotificationsTimelineResponse.js +47 -0
- package/dist/esm/models/NotificationsUserResults.d.ts +31 -0
- package/dist/esm/models/NotificationsUserResults.js +44 -0
- package/dist/esm/models/NotificationsViewerV2.d.ts +31 -0
- package/dist/esm/models/NotificationsViewerV2.js +44 -0
- package/dist/esm/models/OneFactorLoginEligibility.d.ts +30 -0
- package/dist/esm/models/OneFactorLoginEligibility.js +43 -0
- package/dist/esm/models/OtherObjectAll.d.ts +31 -0
- package/dist/esm/models/OtherObjectAll.js +42 -0
- package/dist/esm/models/PostCreateBookmarkRequest.d.ts +35 -0
- package/dist/esm/models/PostCreateBookmarkRequest.js +48 -0
- package/dist/esm/models/PostCreateBookmarkRequestVariables.d.ts +30 -0
- package/dist/esm/models/PostCreateBookmarkRequestVariables.js +43 -0
- package/dist/esm/models/PostCreateDraftTweetRequest.d.ts +35 -0
- package/dist/esm/models/PostCreateDraftTweetRequest.js +48 -0
- package/dist/esm/models/PostCreateDraftTweetRequestVariables.d.ts +31 -0
- package/dist/esm/models/PostCreateDraftTweetRequestVariables.js +44 -0
- package/dist/esm/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.d.ts +46 -0
- package/dist/esm/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.js +59 -0
- package/dist/esm/models/PostCreateListRequest.d.ts +40 -0
- package/dist/esm/models/PostCreateListRequest.js +53 -0
- package/dist/esm/models/PostCreateListRequestFeatures.d.ts +46 -0
- package/dist/esm/models/PostCreateListRequestFeatures.js +59 -0
- package/dist/esm/models/PostCreateListRequestVariables.d.ts +38 -0
- package/dist/esm/models/PostCreateListRequestVariables.js +51 -0
- package/dist/esm/models/PostCreateRetweetRequest.d.ts +35 -0
- package/dist/esm/models/PostCreateRetweetRequest.js +48 -0
- package/dist/esm/models/PostCreateRetweetRequestVariables.d.ts +34 -0
- package/dist/esm/models/PostCreateRetweetRequestVariables.js +47 -0
- package/dist/esm/models/PostCreateTweetRequest.d.ts +40 -0
- package/dist/esm/models/PostCreateTweetRequest.js +53 -0
- package/dist/esm/models/PostCreateTweetRequestFeatures.d.ts +174 -0
- package/dist/esm/models/PostCreateTweetRequestFeatures.js +187 -0
- package/dist/esm/models/PostCreateTweetRequestVariables.d.ts +61 -0
- package/dist/esm/models/PostCreateTweetRequestVariables.js +66 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesConversationControl.d.ts +30 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesConversationControl.js +43 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesMedia.d.ts +35 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesMedia.js +46 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +34 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +47 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesReply.d.ts +34 -0
- package/dist/esm/models/PostCreateTweetRequestVariablesReply.js +47 -0
- package/dist/esm/models/PostCta.d.ts +47 -0
- package/dist/esm/models/PostCta.js +60 -0
- package/dist/esm/models/PostCtaTitleText.d.ts +35 -0
- package/dist/esm/models/PostCtaTitleText.js +48 -0
- package/dist/esm/models/PostCtaTitleTextEntity.d.ts +39 -0
- package/dist/esm/models/PostCtaTitleTextEntity.js +52 -0
- package/dist/esm/models/PostCtaTitleTextEntityRef.d.ts +36 -0
- package/dist/esm/models/PostCtaTitleTextEntityRef.js +47 -0
- package/dist/esm/models/PostCtaUserResults.d.ts +31 -0
- package/dist/esm/models/PostCtaUserResults.js +44 -0
- package/dist/esm/models/PostCtaUserResultsAvatar.d.ts +30 -0
- package/dist/esm/models/PostCtaUserResultsAvatar.js +43 -0
- package/dist/esm/models/PostCtaUserResultsResult.d.ts +36 -0
- package/dist/esm/models/PostCtaUserResultsResult.js +49 -0
- package/dist/esm/models/PostDeleteBookmarkRequest.d.ts +35 -0
- package/dist/esm/models/PostDeleteBookmarkRequest.js +48 -0
- package/dist/esm/models/PostDeleteDraftTweetsRequest.d.ts +35 -0
- package/dist/esm/models/PostDeleteDraftTweetsRequest.js +48 -0
- package/dist/esm/models/PostDeleteDraftTweetsRequestVariables.d.ts +30 -0
- package/dist/esm/models/PostDeleteDraftTweetsRequestVariables.js +43 -0
- package/dist/esm/models/PostDeleteListRequest.d.ts +35 -0
- package/dist/esm/models/PostDeleteListRequest.js +48 -0
- package/dist/esm/models/PostDeleteListRequestVariables.d.ts +30 -0
- package/dist/esm/models/PostDeleteListRequestVariables.js +43 -0
- package/dist/esm/models/PostDeleteRetweetRequest.d.ts +35 -0
- package/dist/esm/models/PostDeleteRetweetRequest.js +48 -0
- package/dist/esm/models/PostDeleteRetweetRequestVariables.d.ts +34 -0
- package/dist/esm/models/PostDeleteRetweetRequestVariables.js +47 -0
- package/dist/esm/models/PostDeleteTweetRequest.d.ts +35 -0
- package/dist/esm/models/PostDeleteTweetRequest.js +48 -0
- package/dist/esm/models/PostFavoriteTweetRequest.d.ts +35 -0
- package/dist/esm/models/PostFavoriteTweetRequest.js +48 -0
- package/dist/esm/models/PostListAddMemberRequest.d.ts +40 -0
- package/dist/esm/models/PostListAddMemberRequest.js +53 -0
- package/dist/esm/models/PostListAddMemberRequestVariables.d.ts +34 -0
- package/dist/esm/models/PostListAddMemberRequestVariables.js +47 -0
- package/dist/esm/models/PostListRemoveMemberRequest.d.ts +40 -0
- package/dist/esm/models/PostListRemoveMemberRequest.js +53 -0
- package/dist/esm/models/PostUnfavoriteTweetRequest.d.ts +35 -0
- package/dist/esm/models/PostUnfavoriteTweetRequest.js +48 -0
- package/dist/esm/models/PrimaryCommunityTopic.d.ts +34 -0
- package/dist/esm/models/PrimaryCommunityTopic.js +47 -0
- package/dist/esm/models/ProfileBio.d.ts +39 -0
- package/dist/esm/models/ProfileBio.js +48 -0
- package/dist/esm/models/ProfileBioEntities.d.ts +35 -0
- package/dist/esm/models/ProfileBioEntities.js +46 -0
- package/dist/esm/models/ProfileBioEntitiesUrls.d.ts +31 -0
- package/dist/esm/models/ProfileBioEntitiesUrls.js +42 -0
- package/dist/esm/models/ProfileResponse.d.ts +36 -0
- package/dist/esm/models/ProfileResponse.js +47 -0
- package/dist/esm/models/ProfileResponseData.d.ts +31 -0
- package/dist/esm/models/ProfileResponseData.js +42 -0
- package/dist/esm/models/QuotedRefResult.d.ts +31 -0
- package/dist/esm/models/QuotedRefResult.js +42 -0
- package/dist/esm/models/QuotedStatusPermalink.d.ts +38 -0
- package/dist/esm/models/QuotedStatusPermalink.js +51 -0
- package/dist/esm/models/RankedCommunityResult.d.ts +36 -0
- package/dist/esm/models/RankedCommunityResult.js +49 -0
- package/dist/esm/models/RankedCommunityResults.d.ts +31 -0
- package/dist/esm/models/RankedCommunityResults.js +44 -0
- package/dist/esm/models/RankedCommunityTweetData.d.ts +31 -0
- package/dist/esm/models/RankedCommunityTweetData.js +44 -0
- package/dist/esm/models/Retweet.d.ts +35 -0
- package/dist/esm/models/Retweet.js +46 -0
- package/dist/esm/models/RetweetLegacy.d.ts +30 -0
- package/dist/esm/models/RetweetLegacy.js +43 -0
- package/dist/esm/models/RichMessage.d.ts +34 -0
- package/dist/esm/models/RichMessage.js +43 -0
- package/dist/esm/models/ScheduledTweetsViewer.d.ts +32 -0
- package/dist/esm/models/ScheduledTweetsViewer.js +43 -0
- package/dist/esm/models/SearchByRawQuery.d.ts +31 -0
- package/dist/esm/models/SearchByRawQuery.js +44 -0
- package/dist/esm/models/SearchTimeline.d.ts +31 -0
- package/dist/esm/models/SearchTimeline.js +44 -0
- package/dist/esm/models/SearchTimelineData.d.ts +31 -0
- package/dist/esm/models/SearchTimelineData.js +44 -0
- package/dist/esm/models/SearchTimelineResponse.d.ts +36 -0
- package/dist/esm/models/SearchTimelineResponse.js +47 -0
- package/dist/esm/models/SelfThread.d.ts +30 -0
- package/dist/esm/models/SelfThread.js +43 -0
- package/dist/esm/models/SensitiveMediaWarning.d.ts +38 -0
- package/dist/esm/models/SensitiveMediaWarning.js +45 -0
- package/dist/esm/models/Session.d.ts +92 -0
- package/dist/esm/models/Session.js +104 -0
- package/dist/esm/models/Smarttag.d.ts +39 -0
- package/dist/esm/models/Smarttag.js +52 -0
- package/dist/esm/models/SmarttagTag.d.ts +32 -0
- package/dist/esm/models/SmarttagTag.js +43 -0
- package/dist/esm/models/SocialContextLandingUrl.d.ts +48 -0
- package/dist/esm/models/SocialContextLandingUrl.js +54 -0
- package/dist/esm/models/SocialContextUnion.d.ts +27 -0
- package/dist/esm/models/SocialContextUnion.js +47 -0
- package/dist/esm/models/SocialContextUnionType.d.ts +25 -0
- package/dist/esm/models/SocialContextUnionType.js +43 -0
- package/dist/esm/models/SuperFollowUserProfile.d.ts +30 -0
- package/dist/esm/models/SuperFollowUserProfile.js +43 -0
- package/dist/esm/models/SuperFollowsReplyUserResult.d.ts +31 -0
- package/dist/esm/models/SuperFollowsReplyUserResult.js +44 -0
- package/dist/esm/models/SuperFollowsReplyUserResultCore.d.ts +30 -0
- package/dist/esm/models/SuperFollowsReplyUserResultCore.js +43 -0
- package/dist/esm/models/SuperFollowsReplyUserResultData.d.ts +36 -0
- package/dist/esm/models/SuperFollowsReplyUserResultData.js +47 -0
- package/dist/esm/models/SuperFollowsReplyUserResultLegacy.d.ts +30 -0
- package/dist/esm/models/SuperFollowsReplyUserResultLegacy.js +43 -0
- package/dist/esm/models/Text.d.ts +35 -0
- package/dist/esm/models/Text.js +48 -0
- package/dist/esm/models/TextEntity.d.ts +39 -0
- package/dist/esm/models/TextEntity.js +52 -0
- package/dist/esm/models/TextEntityRef.d.ts +52 -0
- package/dist/esm/models/TextEntityRef.js +67 -0
- package/dist/esm/models/TextHighlight.d.ts +34 -0
- package/dist/esm/models/TextHighlight.js +47 -0
- package/dist/esm/models/ThumbnailImage.d.ts +38 -0
- package/dist/esm/models/ThumbnailImage.js +45 -0
- package/dist/esm/models/Timeline.d.ts +43 -0
- package/dist/esm/models/Timeline.js +48 -0
- package/dist/esm/models/TimelineAddEntries.d.ts +36 -0
- package/dist/esm/models/TimelineAddEntries.js +49 -0
- package/dist/esm/models/TimelineAddEntry.d.ts +39 -0
- package/dist/esm/models/TimelineAddEntry.js +52 -0
- package/dist/esm/models/TimelineAddToModule.d.ts +44 -0
- package/dist/esm/models/TimelineAddToModule.js +55 -0
- package/dist/esm/models/TimelineClearCache.d.ts +31 -0
- package/dist/esm/models/TimelineClearCache.js +44 -0
- package/dist/esm/models/TimelineClearEntriesUnreadState.d.ts +31 -0
- package/dist/esm/models/TimelineClearEntriesUnreadState.js +44 -0
- package/dist/esm/models/TimelineCommunity.d.ts +32 -0
- package/dist/esm/models/TimelineCommunity.js +38 -0
- package/dist/esm/models/TimelineCoverBehavior.d.ts +43 -0
- package/dist/esm/models/TimelineCoverBehavior.js +53 -0
- package/dist/esm/models/TimelineCoverBehaviorUrl.d.ts +41 -0
- package/dist/esm/models/TimelineCoverBehaviorUrl.js +55 -0
- package/dist/esm/models/TimelineFrame.d.ts +44 -0
- package/dist/esm/models/TimelineFrame.js +57 -0
- package/dist/esm/models/TimelineGeneralContext.d.ts +63 -0
- package/dist/esm/models/TimelineGeneralContext.js +65 -0
- package/dist/esm/models/TimelineHalfCover.d.ts +71 -0
- package/dist/esm/models/TimelineHalfCover.js +86 -0
- package/dist/esm/models/TimelineLabel.d.ts +45 -0
- package/dist/esm/models/TimelineLabel.js +58 -0
- package/dist/esm/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +35 -0
- package/dist/esm/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +46 -0
- package/dist/esm/models/TimelineMessagePrompt.d.ts +32 -0
- package/dist/esm/models/TimelineMessagePrompt.js +38 -0
- package/dist/esm/models/TimelineNotification.d.ts +63 -0
- package/dist/esm/models/TimelineNotification.js +76 -0
- package/dist/esm/models/TimelinePinEntry.d.ts +36 -0
- package/dist/esm/models/TimelinePinEntry.js +49 -0
- package/dist/esm/models/TimelinePrompt.d.ts +32 -0
- package/dist/esm/models/TimelinePrompt.js +38 -0
- package/dist/esm/models/TimelineReplaceEntry.d.ts +40 -0
- package/dist/esm/models/TimelineReplaceEntry.js +53 -0
- package/dist/esm/models/TimelineResponse.d.ts +36 -0
- package/dist/esm/models/TimelineResponse.js +47 -0
- package/dist/esm/models/TimelineResult.d.ts +35 -0
- package/dist/esm/models/TimelineResult.js +44 -0
- package/dist/esm/models/TimelineShowAlert.d.ts +88 -0
- package/dist/esm/models/TimelineShowAlert.js +81 -0
- package/dist/esm/models/TimelineShowAlertRichText.d.ts +36 -0
- package/dist/esm/models/TimelineShowAlertRichText.js +43 -0
- package/dist/esm/models/TimelineShowCover.d.ts +41 -0
- package/dist/esm/models/TimelineShowCover.js +54 -0
- package/dist/esm/models/TimelineTerminateTimeline.d.ts +44 -0
- package/dist/esm/models/TimelineTerminateTimeline.js +56 -0
- package/dist/esm/models/TimelineTimelineCursor.d.ts +58 -0
- package/dist/esm/models/TimelineTimelineCursor.js +63 -0
- package/dist/esm/models/TimelineTimelineItem.d.ts +52 -0
- package/dist/esm/models/TimelineTimelineItem.js +59 -0
- package/dist/esm/models/TimelineTimelineModule.d.ts +74 -0
- package/dist/esm/models/TimelineTimelineModule.js +69 -0
- package/dist/esm/models/TimelineTombstone.d.ts +52 -0
- package/dist/esm/models/TimelineTombstone.js +56 -0
- package/dist/esm/models/TimelineTopicContext.d.ts +47 -0
- package/dist/esm/models/TimelineTopicContext.js +53 -0
- package/dist/esm/models/TimelineTrend.d.ts +73 -0
- package/dist/esm/models/TimelineTrend.js +74 -0
- package/dist/esm/models/TimelineTweet.d.ts +75 -0
- package/dist/esm/models/TimelineTweet.js +77 -0
- package/dist/esm/models/TimelineTwitterList.d.ts +45 -0
- package/dist/esm/models/TimelineTwitterList.js +56 -0
- package/dist/esm/models/TimelineUser.d.ts +60 -0
- package/dist/esm/models/TimelineUser.js +70 -0
- package/dist/esm/models/Timestamp.d.ts +38 -0
- package/dist/esm/models/Timestamp.js +51 -0
- package/dist/esm/models/TombstoneEntity.d.ts +39 -0
- package/dist/esm/models/TombstoneEntity.js +46 -0
- package/dist/esm/models/TombstoneInfo.d.ts +35 -0
- package/dist/esm/models/TombstoneInfo.js +44 -0
- package/dist/esm/models/TombstoneRef.d.ts +52 -0
- package/dist/esm/models/TombstoneRef.js +57 -0
- package/dist/esm/models/TombstoneRichText.d.ts +39 -0
- package/dist/esm/models/TombstoneRichText.js +46 -0
- package/dist/esm/models/TopicContext.d.ts +54 -0
- package/dist/esm/models/TopicContext.js +53 -0
- package/dist/esm/models/Tracing.d.ts +30 -0
- package/dist/esm/models/Tracing.js +43 -0
- package/dist/esm/models/TrendImage.d.ts +30 -0
- package/dist/esm/models/TrendImage.js +41 -0
- package/dist/esm/models/TrendMetadata.d.ts +35 -0
- package/dist/esm/models/TrendMetadata.js +44 -0
- package/dist/esm/models/TrendResults.d.ts +30 -0
- package/dist/esm/models/TrendResults.js +43 -0
- package/dist/esm/models/Tweet.d.ts +197 -0
- package/dist/esm/models/Tweet.js +138 -0
- package/dist/esm/models/TweetCard.d.ts +35 -0
- package/dist/esm/models/TweetCard.js +44 -0
- package/dist/esm/models/TweetCardLegacy.d.ts +49 -0
- package/dist/esm/models/TweetCardLegacy.js +58 -0
- package/dist/esm/models/TweetCardLegacyBindingValue.d.ts +35 -0
- package/dist/esm/models/TweetCardLegacyBindingValue.js +48 -0
- package/dist/esm/models/TweetCardLegacyBindingValueData.d.ts +58 -0
- package/dist/esm/models/TweetCardLegacyBindingValueData.js +57 -0
- package/dist/esm/models/TweetCardLegacyBindingValueDataImage.d.ts +42 -0
- package/dist/esm/models/TweetCardLegacyBindingValueDataImage.js +53 -0
- package/dist/esm/models/TweetCardPlatform.d.ts +36 -0
- package/dist/esm/models/TweetCardPlatform.js +49 -0
- package/dist/esm/models/TweetCardPlatformAudience.d.ts +37 -0
- package/dist/esm/models/TweetCardPlatformAudience.js +51 -0
- package/dist/esm/models/TweetCardPlatformData.d.ts +31 -0
- package/dist/esm/models/TweetCardPlatformData.js +44 -0
- package/dist/esm/models/TweetCardPlatformDevice.d.ts +34 -0
- package/dist/esm/models/TweetCardPlatformDevice.js +47 -0
- package/dist/esm/models/TweetDetailResponse.d.ts +36 -0
- package/dist/esm/models/TweetDetailResponse.js +47 -0
- package/dist/esm/models/TweetDetailResponseData.d.ts +31 -0
- package/dist/esm/models/TweetDetailResponseData.js +42 -0
- package/dist/esm/models/TweetEditControl.d.ts +51 -0
- package/dist/esm/models/TweetEditControl.js +52 -0
- package/dist/esm/models/TweetEditControlInitial.d.ts +42 -0
- package/dist/esm/models/TweetEditControlInitial.js +55 -0
- package/dist/esm/models/TweetEditPrespective.d.ts +34 -0
- package/dist/esm/models/TweetEditPrespective.js +43 -0
- package/dist/esm/models/TweetFavoritersResponse.d.ts +36 -0
- package/dist/esm/models/TweetFavoritersResponse.js +47 -0
- package/dist/esm/models/TweetFavoritersResponseData.d.ts +31 -0
- package/dist/esm/models/TweetFavoritersResponseData.js +42 -0
- package/dist/esm/models/TweetInterstitial.d.ts +53 -0
- package/dist/esm/models/TweetInterstitial.js +65 -0
- package/dist/esm/models/TweetInterstitialRevealText.d.ts +39 -0
- package/dist/esm/models/TweetInterstitialRevealText.js +52 -0
- package/dist/esm/models/TweetInterstitialText.d.ts +39 -0
- package/dist/esm/models/TweetInterstitialText.js +52 -0
- package/dist/esm/models/TweetInterstitialTextEntity.d.ts +39 -0
- package/dist/esm/models/TweetInterstitialTextEntity.js +52 -0
- package/dist/esm/models/TweetInterstitialTextEntityRef.d.ts +52 -0
- package/dist/esm/models/TweetInterstitialTextEntityRef.js +67 -0
- package/dist/esm/models/TweetLegacy.d.ts +173 -0
- package/dist/esm/models/TweetLegacy.js +151 -0
- package/dist/esm/models/TweetLegacyScopes.d.ts +30 -0
- package/dist/esm/models/TweetLegacyScopes.js +43 -0
- package/dist/esm/models/TweetLimitedActionResults.d.ts +31 -0
- package/dist/esm/models/TweetLimitedActionResults.js +44 -0
- package/dist/esm/models/TweetPostCta.d.ts +48 -0
- package/dist/esm/models/TweetPostCta.js +58 -0
- package/dist/esm/models/TweetPreviewDisplay.d.ts +46 -0
- package/dist/esm/models/TweetPreviewDisplay.js +59 -0
- package/dist/esm/models/TweetPreviewDisplayCta.d.ts +35 -0
- package/dist/esm/models/TweetPreviewDisplayCta.js +48 -0
- package/dist/esm/models/TweetPreviewDisplayCtaUrl.d.ts +43 -0
- package/dist/esm/models/TweetPreviewDisplayCtaUrl.js +55 -0
- package/dist/esm/models/TweetPreviewDisplayTweet.d.ts +77 -0
- package/dist/esm/models/TweetPreviewDisplayTweet.js +88 -0
- package/dist/esm/models/TweetPreviewDisplayTweetViewCount.d.ts +30 -0
- package/dist/esm/models/TweetPreviewDisplayTweetViewCount.js +43 -0
- package/dist/esm/models/TweetPreviousCounts.d.ts +46 -0
- package/dist/esm/models/TweetPreviousCounts.js +59 -0
- package/dist/esm/models/TweetResultByRestIdData.d.ts +31 -0
- package/dist/esm/models/TweetResultByRestIdData.js +42 -0
- package/dist/esm/models/TweetResultByRestIdResponse.d.ts +36 -0
- package/dist/esm/models/TweetResultByRestIdResponse.js +47 -0
- package/dist/esm/models/TweetRetweetersResponse.d.ts +36 -0
- package/dist/esm/models/TweetRetweetersResponse.js +47 -0
- package/dist/esm/models/TweetRetweetersResponseData.d.ts +31 -0
- package/dist/esm/models/TweetRetweetersResponseData.js +42 -0
- package/dist/esm/models/TweetTombstone.d.ts +32 -0
- package/dist/esm/models/TweetTombstone.js +38 -0
- package/dist/esm/models/TweetUnavailable.d.ts +35 -0
- package/dist/esm/models/TweetUnavailable.js +44 -0
- package/dist/esm/models/TweetUnion.d.ts +36 -0
- package/dist/esm/models/TweetUnion.js +62 -0
- package/dist/esm/models/TweetView.d.ts +42 -0
- package/dist/esm/models/TweetView.js +52 -0
- package/dist/esm/models/TweetWithVisibilityResults.d.ts +52 -0
- package/dist/esm/models/TweetWithVisibilityResults.js +57 -0
- package/dist/esm/models/TwitterList.d.ts +110 -0
- package/dist/esm/models/TwitterList.js +116 -0
- package/dist/esm/models/TypeName.d.ts +59 -0
- package/dist/esm/models/TypeName.js +77 -0
- package/dist/esm/models/UnfavoriteTweet.d.ts +30 -0
- package/dist/esm/models/UnfavoriteTweet.js +41 -0
- package/dist/esm/models/UnfavoriteTweetResponse.d.ts +36 -0
- package/dist/esm/models/UnfavoriteTweetResponse.js +47 -0
- package/dist/esm/models/UnifiedCard.d.ts +37 -0
- package/dist/esm/models/UnifiedCard.js +51 -0
- package/dist/esm/models/Url.d.ts +42 -0
- package/dist/esm/models/Url.js +53 -0
- package/dist/esm/models/UrtEndpointOptions.d.ts +35 -0
- package/dist/esm/models/UrtEndpointOptions.js +46 -0
- package/dist/esm/models/UrtEndpointRequestParams.d.ts +34 -0
- package/dist/esm/models/UrtEndpointRequestParams.js +47 -0
- package/dist/esm/models/User.d.ts +280 -0
- package/dist/esm/models/User.js +195 -0
- package/dist/esm/models/UserActionCounts.d.ts +30 -0
- package/dist/esm/models/UserActionCounts.js +43 -0
- package/dist/esm/models/UserAvatar.d.ts +30 -0
- package/dist/esm/models/UserAvatar.js +43 -0
- package/dist/esm/models/UserBanner.d.ts +30 -0
- package/dist/esm/models/UserBanner.js +43 -0
- package/dist/esm/models/UserCore.d.ts +38 -0
- package/dist/esm/models/UserCore.js +51 -0
- package/dist/esm/models/UserDmPermissions.d.ts +30 -0
- package/dist/esm/models/UserDmPermissions.js +43 -0
- package/dist/esm/models/UserFeatures.d.ts +30 -0
- package/dist/esm/models/UserFeatures.js +43 -0
- package/dist/esm/models/UserHighlightsInfo.d.ts +34 -0
- package/dist/esm/models/UserHighlightsInfo.js +47 -0
- package/dist/esm/models/UserHighlightsTweetsData.d.ts +31 -0
- package/dist/esm/models/UserHighlightsTweetsData.js +42 -0
- package/dist/esm/models/UserHighlightsTweetsResponse.d.ts +36 -0
- package/dist/esm/models/UserHighlightsTweetsResponse.js +47 -0
- package/dist/esm/models/UserHighlightsTweetsResult.d.ts +36 -0
- package/dist/esm/models/UserHighlightsTweetsResult.js +49 -0
- package/dist/esm/models/UserHighlightsTweetsTimeline.d.ts +31 -0
- package/dist/esm/models/UserHighlightsTweetsTimeline.js +44 -0
- package/dist/esm/models/UserHighlightsTweetsUser.d.ts +31 -0
- package/dist/esm/models/UserHighlightsTweetsUser.js +44 -0
- package/dist/esm/models/UserLegacy.d.ts +216 -0
- package/dist/esm/models/UserLegacy.js +178 -0
- package/dist/esm/models/UserLegacyExtendedProfile.d.ts +31 -0
- package/dist/esm/models/UserLegacyExtendedProfile.js +42 -0
- package/dist/esm/models/UserLegacyExtendedProfileBirthdate.d.ts +68 -0
- package/dist/esm/models/UserLegacyExtendedProfileBirthdate.js +77 -0
- package/dist/esm/models/UserLocation.d.ts +30 -0
- package/dist/esm/models/UserLocation.js +43 -0
- package/dist/esm/models/UserMediaPermissions.d.ts +30 -0
- package/dist/esm/models/UserMediaPermissions.js +43 -0
- package/dist/esm/models/UserNotificationsSettings.d.ts +30 -0
- package/dist/esm/models/UserNotificationsSettings.js +43 -0
- package/dist/esm/models/UserPinnedItems.d.ts +30 -0
- package/dist/esm/models/UserPinnedItems.js +41 -0
- package/dist/esm/models/UserPrivacy.d.ts +30 -0
- package/dist/esm/models/UserPrivacy.js +43 -0
- package/dist/esm/models/UserProfessional.d.ts +47 -0
- package/dist/esm/models/UserProfessional.js +57 -0
- package/dist/esm/models/UserProfessionalCategory.d.ts +38 -0
- package/dist/esm/models/UserProfessionalCategory.js +51 -0
- package/dist/esm/models/UserProfile.d.ts +31 -0
- package/dist/esm/models/UserProfile.js +44 -0
- package/dist/esm/models/UserProfileMetadata.d.ts +30 -0
- package/dist/esm/models/UserProfileMetadata.js +43 -0
- package/dist/esm/models/UserProfileTranslation.d.ts +30 -0
- package/dist/esm/models/UserProfileTranslation.js +43 -0
- package/dist/esm/models/UserRelationshipCounts.d.ts +34 -0
- package/dist/esm/models/UserRelationshipCounts.js +47 -0
- package/dist/esm/models/UserRelationshipPerspectives.d.ts +50 -0
- package/dist/esm/models/UserRelationshipPerspectives.js +51 -0
- package/dist/esm/models/UserResponse.d.ts +36 -0
- package/dist/esm/models/UserResponse.js +47 -0
- package/dist/esm/models/UserResponseData.d.ts +31 -0
- package/dist/esm/models/UserResponseData.js +42 -0
- package/dist/esm/models/UserResultByScreenName.d.ts +35 -0
- package/dist/esm/models/UserResultByScreenName.js +48 -0
- package/dist/esm/models/UserResultByScreenNameCore.d.ts +34 -0
- package/dist/esm/models/UserResultByScreenNameCore.js +47 -0
- package/dist/esm/models/UserResultByScreenNameLegacy.d.ts +54 -0
- package/dist/esm/models/UserResultByScreenNameLegacy.js +53 -0
- package/dist/esm/models/UserResultByScreenNameResult.d.ts +69 -0
- package/dist/esm/models/UserResultByScreenNameResult.js +76 -0
- package/dist/esm/models/UserResultCore.d.ts +31 -0
- package/dist/esm/models/UserResultCore.js +44 -0
- package/dist/esm/models/UserResultPrivacy.d.ts +30 -0
- package/dist/esm/models/UserResultPrivacy.js +43 -0
- package/dist/esm/models/UserResultRelationshipPerspectives.d.ts +42 -0
- package/dist/esm/models/UserResultRelationshipPerspectives.js +47 -0
- package/dist/esm/models/UserResults.d.ts +31 -0
- package/dist/esm/models/UserResults.js +42 -0
- package/dist/esm/models/UserTipJarSettings.d.ts +62 -0
- package/dist/esm/models/UserTipJarSettings.js +57 -0
- package/dist/esm/models/UserTweetCounts.d.ts +34 -0
- package/dist/esm/models/UserTweetCounts.js +47 -0
- package/dist/esm/models/UserTweetsData.d.ts +31 -0
- package/dist/esm/models/UserTweetsData.js +42 -0
- package/dist/esm/models/UserTweetsResponse.d.ts +36 -0
- package/dist/esm/models/UserTweetsResponse.js +47 -0
- package/dist/esm/models/UserTweetsResultV1.d.ts +36 -0
- package/dist/esm/models/UserTweetsResultV1.js +49 -0
- package/dist/esm/models/UserTweetsResultV2.d.ts +36 -0
- package/dist/esm/models/UserTweetsResultV2.js +49 -0
- package/dist/esm/models/UserTweetsUser.d.ts +31 -0
- package/dist/esm/models/UserTweetsUser.js +44 -0
- package/dist/esm/models/UserUnavailable.d.ts +39 -0
- package/dist/esm/models/UserUnavailable.js +50 -0
- package/dist/esm/models/UserUnion.d.ts +27 -0
- package/dist/esm/models/UserUnion.js +47 -0
- package/dist/esm/models/UserValue.d.ts +34 -0
- package/dist/esm/models/UserValue.js +45 -0
- package/dist/esm/models/UserVerification.d.ts +42 -0
- package/dist/esm/models/UserVerification.js +52 -0
- package/dist/esm/models/UserVerificationInfo.d.ts +35 -0
- package/dist/esm/models/UserVerificationInfo.js +46 -0
- package/dist/esm/models/UserVerificationInfoReason.d.ts +39 -0
- package/dist/esm/models/UserVerificationInfoReason.js +50 -0
- package/dist/esm/models/UserVerificationInfoReasonDescription.d.ts +35 -0
- package/dist/esm/models/UserVerificationInfoReasonDescription.js +48 -0
- package/dist/esm/models/UserVerificationInfoReasonDescriptionEntities.d.ts +39 -0
- package/dist/esm/models/UserVerificationInfoReasonDescriptionEntities.js +52 -0
- package/dist/esm/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +41 -0
- package/dist/esm/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +55 -0
- package/dist/esm/models/UserWebsite.d.ts +30 -0
- package/dist/esm/models/UserWebsite.js +43 -0
- package/dist/esm/models/UsersResponse.d.ts +36 -0
- package/dist/esm/models/UsersResponse.js +47 -0
- package/dist/esm/models/UsersResponseData.d.ts +31 -0
- package/dist/esm/models/UsersResponseData.js +42 -0
- package/dist/esm/models/ViewerBadgeCountsResponse.d.ts +36 -0
- package/dist/esm/models/ViewerBadgeCountsResponse.js +47 -0
- package/dist/esm/models/ViewerBadgeCountsResponseData.d.ts +31 -0
- package/dist/esm/models/ViewerBadgeCountsResponseData.js +44 -0
- package/dist/esm/models/ViewerBadgeCountsResult.d.ts +36 -0
- package/dist/esm/models/ViewerBadgeCountsResult.js +49 -0
- package/dist/esm/models/ViewerBadgeCountsUserResults.d.ts +31 -0
- package/dist/esm/models/ViewerBadgeCountsUserResults.js +44 -0
- package/dist/esm/models/ViewerBadgeCountsViewer.d.ts +31 -0
- package/dist/esm/models/ViewerBadgeCountsViewer.js +44 -0
- package/dist/esm/models/index.d.ts +431 -0
- package/dist/esm/models/index.js +433 -0
- package/dist/esm/runtime.d.ts +217 -0
- package/dist/esm/runtime.js +460 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/models/AboutCommunityResult.d.ts +0 -5
- package/dist/models/AboutCommunityResult.js +5 -7
- package/dist/models/AboutCommunityResults.d.ts +0 -3
- package/dist/models/AboutCommunityResults.js +2 -4
- package/dist/models/AboutCommunityTweetData.d.ts +0 -3
- package/dist/models/AboutCommunityTweetData.js +2 -4
- package/dist/models/AdditionalMediaInfo.d.ts +0 -13
- package/dist/models/AdditionalMediaInfo.js +3 -5
- package/dist/models/AdditionalMediaInfoCallToActions.d.ts +0 -5
- package/dist/models/AdditionalMediaInfoCallToActions.js +2 -4
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts +0 -3
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.js +1 -3
- package/dist/models/AllowDownloadStatus.d.ts +0 -3
- package/dist/models/AllowDownloadStatus.js +1 -3
- package/dist/models/AnalysisResults.d.ts +0 -3
- package/dist/models/AnalysisResults.js +2 -4
- package/dist/models/Article.d.ts +0 -3
- package/dist/models/Article.js +3 -5
- package/dist/models/ArticleCoverMedia.d.ts +0 -9
- package/dist/models/ArticleCoverMedia.js +5 -7
- package/dist/models/ArticleCoverMediaColorInfo.d.ts +0 -3
- package/dist/models/ArticleCoverMediaColorInfo.js +2 -4
- package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts +0 -5
- package/dist/models/ArticleCoverMediaColorInfoPalette.js +2 -4
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +0 -7
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js +1 -3
- package/dist/models/ArticleCoverMediaInfo.d.ts +0 -11
- package/dist/models/ArticleCoverMediaInfo.js +7 -9
- package/dist/models/ArticleLifecycleState.d.ts +0 -3
- package/dist/models/ArticleLifecycleState.js +2 -4
- package/dist/models/ArticleMetadata.d.ts +0 -3
- package/dist/models/ArticleMetadata.js +2 -4
- package/dist/models/ArticlePreview.d.ts +43 -0
- package/dist/models/ArticlePreview.js +61 -0
- package/dist/models/ArticleResult.d.ts +15 -16
- package/dist/models/ArticleResult.js +13 -11
- package/dist/models/ArticleResults.d.ts +0 -3
- package/dist/models/ArticleResults.js +2 -4
- package/dist/models/AuthorCommunityRelationship.d.ts +3 -9
- package/dist/models/AuthorCommunityRelationship.js +8 -9
- package/dist/models/BadgeCounts.d.ts +46 -0
- package/dist/models/BadgeCounts.js +66 -0
- package/dist/models/BirdwatchEntity.d.ts +0 -7
- package/dist/models/BirdwatchEntity.js +2 -4
- package/dist/models/BirdwatchEntityRef.d.ts +4 -9
- package/dist/models/BirdwatchEntityRef.js +5 -5
- package/dist/models/BirdwatchPivot.d.ts +12 -21
- package/dist/models/BirdwatchPivot.js +17 -10
- package/dist/models/BirdwatchPivotCallToAction.d.ts +0 -7
- package/dist/models/BirdwatchPivotCallToAction.js +1 -3
- package/dist/models/BirdwatchPivotFooter.d.ts +0 -5
- package/dist/models/BirdwatchPivotFooter.js +2 -4
- package/dist/models/BirdwatchPivotNote.d.ts +13 -3
- package/dist/models/BirdwatchPivotNote.js +9 -4
- package/dist/models/BirdwatchPivotSubtitle.d.ts +0 -5
- package/dist/models/BirdwatchPivotSubtitle.js +2 -4
- package/dist/models/BookmarksResponse.d.ts +0 -5
- package/dist/models/BookmarksResponse.js +3 -5
- package/dist/models/BookmarksResponseData.d.ts +0 -3
- package/dist/models/BookmarksResponseData.js +3 -5
- package/dist/models/BookmarksTimeline.d.ts +0 -3
- package/dist/models/BookmarksTimeline.js +2 -4
- package/dist/models/Callback.d.ts +0 -3
- package/dist/models/Callback.js +1 -3
- package/dist/models/CashtagAttachment.d.ts +30 -0
- package/dist/models/CashtagAttachment.js +50 -0
- package/dist/models/ClientEventInfo.d.ts +0 -7
- package/dist/models/ClientEventInfo.js +1 -3
- package/dist/models/CommunitiesActions.d.ts +0 -3
- package/dist/models/CommunitiesActions.js +1 -3
- package/dist/models/Community.d.ts +138 -5
- package/dist/models/Community.js +83 -7
- package/dist/models/CommunityAboutTimelineResponse.d.ts +0 -5
- package/dist/models/CommunityAboutTimelineResponse.js +3 -5
- package/dist/models/CommunityActions.d.ts +0 -11
- package/dist/models/CommunityActions.js +6 -8
- package/dist/models/CommunityDeleteActionResult.d.ts +0 -5
- package/dist/models/CommunityDeleteActionResult.js +6 -6
- package/dist/models/CommunityDiscoveryTimelineResponse.d.ts +36 -0
- package/dist/models/CommunityDiscoveryTimelineResponse.js +54 -0
- package/dist/models/CommunityDiscoveryTimelineResponseData.d.ts +31 -0
- package/dist/models/CommunityDiscoveryTimelineResponseData.js +51 -0
- package/dist/models/CommunityDiscoveryTimelineViewer.d.ts +31 -0
- package/dist/models/CommunityDiscoveryTimelineViewer.js +51 -0
- package/dist/models/CommunityInvitesResult.d.ts +0 -7
- package/dist/models/CommunityInvitesResult.js +6 -6
- package/dist/models/CommunityJoinAction.d.ts +0 -3
- package/dist/models/CommunityJoinAction.js +3 -5
- package/dist/models/CommunityJoinActionResultUnion.d.ts +0 -1
- package/dist/models/CommunityJoinActionResultUnion.js +5 -7
- package/dist/models/CommunityJoinActionUnavailable.d.ts +0 -7
- package/dist/models/CommunityJoinActionUnavailable.js +6 -6
- package/dist/models/CommunityJoinRequestsResult.d.ts +0 -3
- package/dist/models/CommunityJoinRequestsResult.js +3 -5
- package/dist/models/CommunityLeaveActionResult.d.ts +0 -7
- package/dist/models/CommunityLeaveActionResult.js +6 -6
- package/dist/models/CommunityMediaTimelineResponse.d.ts +0 -5
- package/dist/models/CommunityMediaTimelineResponse.js +3 -5
- package/dist/models/CommunityPinActionResult.d.ts +0 -3
- package/dist/models/CommunityPinActionResult.js +3 -5
- package/dist/models/CommunityRelationship.d.ts +0 -9
- package/dist/models/CommunityRelationship.js +4 -6
- package/dist/models/CommunityResult.d.ts +31 -0
- package/dist/models/CommunityResult.js +51 -0
- package/dist/models/CommunityRule.d.ts +0 -7
- package/dist/models/CommunityRule.js +2 -4
- package/dist/models/CommunityTweetsTimelineResponse.d.ts +0 -5
- package/dist/models/CommunityTweetsTimelineResponse.js +3 -5
- package/dist/models/CommunityUnavailable.d.ts +31 -0
- package/dist/models/CommunityUnavailable.js +51 -0
- package/dist/models/CommunityUnion.d.ts +27 -0
- package/dist/models/CommunityUnion.js +53 -0
- package/dist/models/CommunityUnpinActionResult.d.ts +0 -3
- package/dist/models/CommunityUnpinActionResult.js +3 -5
- package/dist/models/CommunityUrls.d.ts +0 -3
- package/dist/models/CommunityUrls.js +2 -4
- package/dist/models/CommunityUrlsPermalink.d.ts +0 -3
- package/dist/models/CommunityUrlsPermalink.js +1 -3
- package/dist/models/ConnectTabTimelineResponse.d.ts +36 -0
- package/dist/models/ConnectTabTimelineResponse.js +54 -0
- package/dist/models/ConnectTabTimelineResponseData.d.ts +31 -0
- package/dist/models/ConnectTabTimelineResponseData.js +51 -0
- package/dist/models/ContentDisclosure.d.ts +36 -0
- package/dist/models/ContentDisclosure.js +52 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts +30 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.js +50 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts +48 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.js +66 -0
- package/dist/models/ContentEntryType.d.ts +0 -1
- package/dist/models/ContentEntryType.js +2 -3
- package/dist/models/ContentItemType.d.ts +3 -1
- package/dist/models/ContentItemType.js +5 -3
- package/dist/models/ContentUnion.d.ts +0 -1
- package/dist/models/ContentUnion.js +7 -9
- package/dist/models/ConversationControl.d.ts +0 -3
- package/dist/models/ConversationControl.js +2 -4
- package/dist/models/CoverCta.d.ts +0 -11
- package/dist/models/CoverCta.js +5 -7
- package/dist/models/CreateBookmarkResponse.d.ts +0 -5
- package/dist/models/CreateBookmarkResponse.js +3 -5
- package/dist/models/CreateBookmarkResponseData.d.ts +0 -3
- package/dist/models/CreateBookmarkResponseData.js +1 -3
- package/dist/models/CreateDraftTweetResponse.d.ts +36 -0
- package/dist/models/CreateDraftTweetResponse.js +54 -0
- package/dist/models/CreateDraftTweetResponseData.d.ts +31 -0
- package/dist/models/CreateDraftTweetResponseData.js +51 -0
- package/dist/models/CreateDraftTweetResponseTweet.d.ts +30 -0
- package/dist/models/CreateDraftTweetResponseTweet.js +50 -0
- package/dist/models/CreateRetweet.d.ts +0 -3
- package/dist/models/CreateRetweet.js +2 -4
- package/dist/models/CreateRetweetResponse.d.ts +0 -5
- package/dist/models/CreateRetweetResponse.js +3 -5
- package/dist/models/CreateRetweetResponseData.d.ts +0 -3
- package/dist/models/CreateRetweetResponseData.js +2 -4
- package/dist/models/CreateRetweetResponseResult.d.ts +0 -3
- package/dist/models/CreateRetweetResponseResult.js +3 -5
- package/dist/models/CreateTweet.d.ts +0 -3
- package/dist/models/CreateTweet.js +2 -4
- package/dist/models/CreateTweetResponse.d.ts +0 -5
- package/dist/models/CreateTweetResponse.js +3 -5
- package/dist/models/CreateTweetResponseData.d.ts +0 -3
- package/dist/models/CreateTweetResponseData.js +2 -4
- package/dist/models/CreateTweetResponseResult.d.ts +0 -3
- package/dist/models/CreateTweetResponseResult.js +3 -5
- package/dist/models/CtaClientEventInfo.d.ts +0 -3
- package/dist/models/CtaClientEventInfo.js +4 -4
- package/dist/models/CursorType.d.ts +0 -1
- package/dist/models/CursorType.js +2 -3
- package/dist/models/DeleteBookmarkResponse.d.ts +0 -5
- package/dist/models/DeleteBookmarkResponse.js +3 -5
- package/dist/models/DeleteBookmarkResponseData.d.ts +0 -3
- package/dist/models/DeleteBookmarkResponseData.js +1 -3
- package/dist/models/DeleteDraftTweetsResponse.d.ts +36 -0
- package/dist/models/DeleteDraftTweetsResponse.js +54 -0
- package/dist/models/DeleteDraftTweetsResponseData.d.ts +30 -0
- package/dist/models/DeleteDraftTweetsResponseData.js +50 -0
- package/dist/models/DeleteListResponse.d.ts +36 -0
- package/dist/models/DeleteListResponse.js +54 -0
- package/dist/models/DeleteListResponseData.d.ts +30 -0
- package/dist/models/DeleteListResponseData.js +50 -0
- package/dist/models/DeleteRetweet.d.ts +0 -3
- package/dist/models/DeleteRetweet.js +2 -4
- package/dist/models/DeleteRetweetResponse.d.ts +0 -5
- package/dist/models/DeleteRetweetResponse.js +3 -5
- package/dist/models/DeleteRetweetResponseData.d.ts +0 -3
- package/dist/models/DeleteRetweetResponseData.js +2 -4
- package/dist/models/DeleteRetweetResponseResult.d.ts +0 -3
- package/dist/models/DeleteRetweetResponseResult.js +2 -4
- package/dist/models/DeleteTweetResponse.d.ts +0 -5
- package/dist/models/DeleteTweetResponse.js +3 -5
- package/dist/models/DeleteTweetResponseData.d.ts +0 -3
- package/dist/models/DeleteTweetResponseData.js +2 -4
- package/dist/models/DeleteTweetResponseResult.d.ts +0 -3
- package/dist/models/DeleteTweetResponseResult.js +2 -4
- package/dist/models/DisplayTreatment.d.ts +0 -5
- package/dist/models/DisplayTreatment.js +1 -3
- package/dist/models/DisplayType.d.ts +0 -1
- package/dist/models/DisplayType.js +2 -3
- package/dist/models/DraftList.d.ts +31 -0
- package/dist/models/DraftList.js +51 -0
- package/dist/models/DraftTweet.d.ts +40 -0
- package/dist/models/DraftTweet.js +60 -0
- package/dist/models/DraftTweetCreateRequest.d.ts +52 -0
- package/dist/models/DraftTweetCreateRequest.js +70 -0
- package/dist/models/DraftTweetUser.d.ts +35 -0
- package/dist/models/DraftTweetUser.js +55 -0
- package/dist/models/DraftTweetUserResults.d.ts +31 -0
- package/dist/models/DraftTweetUserResults.js +51 -0
- package/dist/models/DraftTweetsViewer.d.ts +31 -0
- package/dist/models/DraftTweetsViewer.js +51 -0
- package/dist/models/Entities.d.ts +9 -17
- package/dist/models/Entities.js +12 -19
- package/dist/models/ErrorExtensions.d.ts +1 -14
- package/dist/models/ErrorExtensions.js +3 -7
- package/dist/models/ErrorResponse.d.ts +3 -23
- package/dist/models/ErrorResponse.js +8 -11
- package/dist/models/ErrorResponsePathInner.d.ts +21 -0
- package/dist/models/ErrorResponsePathInner.js +49 -0
- package/dist/models/ExplorePage.d.ts +35 -0
- package/dist/models/ExplorePage.js +55 -0
- package/dist/models/ExplorePageBody.d.ts +40 -0
- package/dist/models/ExplorePageBody.js +60 -0
- package/dist/models/ExplorePageResponse.d.ts +36 -0
- package/dist/models/ExplorePageResponse.js +54 -0
- package/dist/models/ExplorePageResponseData.d.ts +31 -0
- package/dist/models/ExplorePageResponseData.js +51 -0
- package/dist/models/ExploreTimeline.d.ts +48 -0
- package/dist/models/ExploreTimeline.js +68 -0
- package/dist/models/ExploreTimelineScribeConfig.d.ts +34 -0
- package/dist/models/ExploreTimelineScribeConfig.js +54 -0
- package/dist/models/ExtMediaAvailability.d.ts +0 -5
- package/dist/models/ExtMediaAvailability.js +2 -4
- package/dist/models/ExtendedEntities.d.ts +0 -3
- package/dist/models/ExtendedEntities.js +2 -4
- package/dist/models/FavoriteTweet.d.ts +0 -3
- package/dist/models/FavoriteTweet.js +1 -3
- package/dist/models/FavoriteTweetResponse.d.ts +0 -5
- package/dist/models/FavoriteTweetResponse.js +3 -5
- package/dist/models/FeedbackInfo.d.ts +0 -5
- package/dist/models/FeedbackInfo.js +2 -4
- package/dist/models/FetchDraftTweetsResponse.d.ts +36 -0
- package/dist/models/FetchDraftTweetsResponse.js +54 -0
- package/dist/models/FetchDraftTweetsResponseData.d.ts +31 -0
- package/dist/models/FetchDraftTweetsResponseData.js +51 -0
- package/dist/models/FetchScheduledTweetsResponse.d.ts +36 -0
- package/dist/models/FetchScheduledTweetsResponse.js +54 -0
- package/dist/models/FetchScheduledTweetsResponseData.d.ts +31 -0
- package/dist/models/FetchScheduledTweetsResponseData.js +51 -0
- package/dist/models/FollowResponse.d.ts +0 -5
- package/dist/models/FollowResponse.js +3 -5
- package/dist/models/FollowResponseData.d.ts +0 -3
- package/dist/models/FollowResponseData.js +2 -4
- package/dist/models/FollowResponseResult.d.ts +0 -5
- package/dist/models/FollowResponseResult.js +4 -6
- package/dist/models/FollowResponseUser.d.ts +0 -3
- package/dist/models/FollowResponseUser.js +2 -4
- package/dist/models/FollowTimeline.d.ts +0 -3
- package/dist/models/FollowTimeline.js +2 -4
- package/dist/models/GenericTimelineByIdResponse.d.ts +36 -0
- package/dist/models/GenericTimelineByIdResponse.js +54 -0
- package/dist/models/GenericTimelineByIdResponseData.d.ts +31 -0
- package/dist/models/GenericTimelineByIdResponseData.js +51 -0
- package/dist/models/GrokAnnotation.d.ts +30 -0
- package/dist/models/GrokAnnotation.js +48 -0
- package/dist/models/GrokEntity.d.ts +39 -0
- package/dist/models/GrokEntity.js +59 -0
- package/dist/models/GrokEntityRef.d.ts +65 -0
- package/dist/models/GrokEntityRef.js +74 -0
- package/dist/models/GrokImageAnnotation.d.ts +0 -5
- package/dist/models/GrokImageAnnotation.js +2 -4
- package/dist/models/GrokShareAttachment.d.ts +0 -3
- package/dist/models/GrokShareAttachment.js +2 -4
- package/dist/models/GrokShareAttachmentItem.d.ts +6 -7
- package/dist/models/GrokShareAttachmentItem.js +5 -5
- package/dist/models/GrokTranslatedBio.d.ts +43 -0
- package/dist/models/GrokTranslatedBio.js +63 -0
- package/dist/models/GrokTranslatedBioWithAvailability.d.ts +35 -0
- package/dist/models/GrokTranslatedBioWithAvailability.js +53 -0
- package/dist/models/GrokTranslatedCommunityNote.d.ts +47 -0
- package/dist/models/GrokTranslatedCommunityNote.js +65 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +35 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js +53 -0
- package/dist/models/GrokTranslatedPost.d.ts +53 -0
- package/dist/models/GrokTranslatedPost.js +59 -0
- package/dist/models/GrokTranslatedPostWithAvailability.d.ts +35 -0
- package/dist/models/GrokTranslatedPostWithAvailability.js +53 -0
- package/dist/models/Highlight.d.ts +0 -3
- package/dist/models/Highlight.js +2 -4
- package/dist/models/HomeTimelineHome.d.ts +0 -3
- package/dist/models/HomeTimelineHome.js +3 -5
- package/dist/models/HomeTimelineResponseData.d.ts +0 -3
- package/dist/models/HomeTimelineResponseData.js +2 -4
- package/dist/models/InstructionType.d.ts +0 -1
- package/dist/models/InstructionType.js +2 -3
- package/dist/models/InstructionUnion.d.ts +0 -1
- package/dist/models/InstructionUnion.js +21 -23
- package/dist/models/ItemContentUnion.d.ts +9 -1
- package/dist/models/ItemContentUnion.js +34 -21
- package/dist/models/ItemResult.d.ts +0 -5
- package/dist/models/ItemResult.js +3 -5
- package/dist/models/LimitedActionResultsData.d.ts +0 -3
- package/dist/models/LimitedActionResultsData.js +2 -4
- package/dist/models/ListBannerMedia.d.ts +31 -0
- package/dist/models/ListBannerMedia.js +51 -0
- package/dist/models/ListBannerMediaInfo.d.ts +43 -0
- package/dist/models/ListBannerMediaInfo.js +63 -0
- package/dist/models/ListBannerMediaSalientRect.d.ts +42 -0
- package/dist/models/ListBannerMediaSalientRect.js +62 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +0 -5
- package/dist/models/ListLatestTweetsTimelineResponse.js +3 -5
- package/dist/models/ListMembersList.d.ts +31 -0
- package/dist/models/ListMembersList.js +51 -0
- package/dist/models/ListMembersResponse.d.ts +36 -0
- package/dist/models/ListMembersResponse.js +54 -0
- package/dist/models/ListMembersResponseData.d.ts +31 -0
- package/dist/models/ListMembersResponseData.js +51 -0
- package/dist/models/ListRecommendedUsersList.d.ts +31 -0
- package/dist/models/ListRecommendedUsersList.js +51 -0
- package/dist/models/ListRecommendedUsersResponse.d.ts +36 -0
- package/dist/models/ListRecommendedUsersResponse.js +54 -0
- package/dist/models/ListRecommendedUsersResponseData.d.ts +31 -0
- package/dist/models/ListRecommendedUsersResponseData.js +51 -0
- package/dist/models/ListResponse.d.ts +36 -0
- package/dist/models/ListResponse.js +54 -0
- package/dist/models/ListResponseData.d.ts +31 -0
- package/dist/models/ListResponseData.js +51 -0
- package/dist/models/ListSubscribersList.d.ts +31 -0
- package/dist/models/ListSubscribersList.js +51 -0
- package/dist/models/ListSubscribersResponse.d.ts +36 -0
- package/dist/models/ListSubscribersResponse.js +54 -0
- package/dist/models/ListSubscribersResponseData.d.ts +31 -0
- package/dist/models/ListSubscribersResponseData.js +51 -0
- package/dist/models/ListTweetsTimelineData.d.ts +0 -3
- package/dist/models/ListTweetsTimelineData.js +2 -4
- package/dist/models/ListTweetsTimelineList.d.ts +0 -3
- package/dist/models/ListTweetsTimelineList.js +3 -5
- package/dist/models/Location.d.ts +0 -5
- package/dist/models/Location.js +1 -3
- package/dist/models/Media.d.ts +9 -41
- package/dist/models/Media.js +22 -19
- package/dist/models/MediaCommunityResult.d.ts +0 -5
- package/dist/models/MediaCommunityResult.js +5 -7
- package/dist/models/MediaCommunityResults.d.ts +0 -3
- package/dist/models/MediaCommunityResults.js +2 -4
- package/dist/models/MediaCommunityTweetData.d.ts +0 -3
- package/dist/models/MediaCommunityTweetData.js +2 -4
- package/dist/models/MediaExtended.d.ts +9 -43
- package/dist/models/MediaExtended.js +22 -19
- package/dist/models/MediaOriginalInfo.d.ts +0 -7
- package/dist/models/MediaOriginalInfo.js +2 -4
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +0 -9
- package/dist/models/MediaOriginalInfoFocusRect.js +1 -3
- package/dist/models/MediaResult.d.ts +0 -5
- package/dist/models/MediaResult.js +3 -5
- package/dist/models/MediaResults.d.ts +0 -3
- package/dist/models/MediaResults.js +2 -4
- package/dist/models/MediaSize.d.ts +0 -7
- package/dist/models/MediaSize.js +2 -4
- package/dist/models/MediaSizes.d.ts +0 -9
- package/dist/models/MediaSizes.js +2 -4
- package/dist/models/MediaStats.d.ts +0 -3
- package/dist/models/MediaStats.js +1 -3
- package/dist/models/MediaVideoInfo.d.ts +0 -7
- package/dist/models/MediaVideoInfo.js +3 -5
- package/dist/models/MediaVideoInfoVariant.d.ts +0 -7
- package/dist/models/MediaVideoInfoVariant.js +2 -4
- package/dist/models/MediaVisibilityResults.d.ts +0 -3
- package/dist/models/MediaVisibilityResults.js +3 -5
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +0 -7
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js +2 -4
- package/dist/models/ModuleEntry.d.ts +0 -7
- package/dist/models/ModuleEntry.js +4 -6
- package/dist/models/ModuleItem.d.ts +0 -7
- package/dist/models/ModuleItem.js +2 -4
- package/dist/models/NoteTweet.d.ts +1 -6
- package/dist/models/NoteTweet.js +4 -8
- package/dist/models/NoteTweetResult.d.ts +0 -3
- package/dist/models/NoteTweetResult.js +2 -4
- package/dist/models/NoteTweetResultData.d.ts +0 -11
- package/dist/models/NoteTweetResultData.js +5 -7
- package/dist/models/NoteTweetResultMedia.d.ts +0 -3
- package/dist/models/NoteTweetResultMedia.js +3 -5
- package/dist/models/NoteTweetResultMediaInlineMedia.d.ts +0 -5
- package/dist/models/NoteTweetResultMediaInlineMedia.js +2 -4
- package/dist/models/NoteTweetResultRichText.d.ts +0 -3
- package/dist/models/NoteTweetResultRichText.js +3 -5
- package/dist/models/NoteTweetResultRichTextTag.d.ts +0 -7
- package/dist/models/NoteTweetResultRichTextTag.js +5 -7
- package/dist/models/NotificationTemplate.d.ts +0 -7
- package/dist/models/NotificationTemplate.js +2 -4
- package/dist/models/NotificationsResult.d.ts +0 -7
- package/dist/models/NotificationsResult.js +6 -8
- package/dist/models/NotificationsTimelineData.d.ts +0 -3
- package/dist/models/NotificationsTimelineData.js +3 -5
- package/dist/models/NotificationsTimelineResponse.d.ts +0 -5
- package/dist/models/NotificationsTimelineResponse.js +3 -5
- package/dist/models/NotificationsUserResults.d.ts +0 -3
- package/dist/models/NotificationsUserResults.js +2 -4
- package/dist/models/NotificationsViewerV2.d.ts +0 -3
- package/dist/models/NotificationsViewerV2.js +3 -5
- package/dist/models/OneFactorLoginEligibility.d.ts +0 -3
- package/dist/models/OneFactorLoginEligibility.js +1 -3
- package/dist/models/OtherObjectAll.d.ts +0 -3
- package/dist/models/OtherObjectAll.js +2 -4
- package/dist/models/PostCreateBookmarkRequest.d.ts +0 -5
- package/dist/models/PostCreateBookmarkRequest.js +2 -4
- package/dist/models/PostCreateBookmarkRequestVariables.d.ts +0 -3
- package/dist/models/PostCreateBookmarkRequestVariables.js +2 -4
- package/dist/models/PostCreateDraftTweetRequest.d.ts +35 -0
- package/dist/models/PostCreateDraftTweetRequest.js +55 -0
- package/dist/models/PostCreateDraftTweetRequestVariables.d.ts +31 -0
- package/dist/models/PostCreateDraftTweetRequestVariables.js +51 -0
- package/dist/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.d.ts +46 -0
- package/dist/models/PostCreateDraftTweetRequestVariablesPostTweetRequest.js +66 -0
- package/dist/models/PostCreateListRequest.d.ts +40 -0
- package/dist/models/PostCreateListRequest.js +60 -0
- package/dist/models/PostCreateListRequestFeatures.d.ts +46 -0
- package/dist/models/PostCreateListRequestFeatures.js +66 -0
- package/dist/models/PostCreateListRequestVariables.d.ts +38 -0
- package/dist/models/PostCreateListRequestVariables.js +58 -0
- package/dist/models/PostCreateRetweetRequest.d.ts +0 -5
- package/dist/models/PostCreateRetweetRequest.js +2 -4
- package/dist/models/PostCreateRetweetRequestVariables.d.ts +0 -5
- package/dist/models/PostCreateRetweetRequestVariables.js +3 -5
- package/dist/models/PostCreateTweetRequest.d.ts +0 -7
- package/dist/models/PostCreateTweetRequest.js +3 -5
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +42 -69
- package/dist/models/PostCreateTweetRequestFeatures.js +70 -40
- package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -17
- package/dist/models/PostCreateTweetRequestVariables.js +7 -9
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts +0 -3
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.js +1 -3
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -5
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -5
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +0 -5
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +3 -5
- package/dist/models/PostCreateTweetRequestVariablesReply.d.ts +0 -5
- package/dist/models/PostCreateTweetRequestVariablesReply.js +3 -5
- package/dist/models/PostCta.d.ts +47 -0
- package/dist/models/PostCta.js +67 -0
- package/dist/models/PostCtaTitleText.d.ts +35 -0
- package/dist/models/PostCtaTitleText.js +55 -0
- package/dist/models/PostCtaTitleTextEntity.d.ts +39 -0
- package/dist/models/PostCtaTitleTextEntity.js +59 -0
- package/dist/models/PostCtaTitleTextEntityRef.d.ts +36 -0
- package/dist/models/PostCtaTitleTextEntityRef.js +54 -0
- package/dist/models/PostCtaUserResults.d.ts +31 -0
- package/dist/models/PostCtaUserResults.js +51 -0
- package/dist/models/PostCtaUserResultsAvatar.d.ts +30 -0
- package/dist/models/PostCtaUserResultsAvatar.js +50 -0
- package/dist/models/PostCtaUserResultsResult.d.ts +36 -0
- package/dist/models/PostCtaUserResultsResult.js +56 -0
- package/dist/models/PostDeleteBookmarkRequest.d.ts +0 -5
- package/dist/models/PostDeleteBookmarkRequest.js +2 -4
- package/dist/models/PostDeleteDraftTweetsRequest.d.ts +35 -0
- package/dist/models/PostDeleteDraftTweetsRequest.js +55 -0
- package/dist/models/PostDeleteDraftTweetsRequestVariables.d.ts +30 -0
- package/dist/models/PostDeleteDraftTweetsRequestVariables.js +50 -0
- package/dist/models/PostDeleteListRequest.d.ts +35 -0
- package/dist/models/PostDeleteListRequest.js +55 -0
- package/dist/models/PostDeleteListRequestVariables.d.ts +30 -0
- package/dist/models/PostDeleteListRequestVariables.js +50 -0
- package/dist/models/PostDeleteRetweetRequest.d.ts +0 -5
- package/dist/models/PostDeleteRetweetRequest.js +2 -4
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -5
- package/dist/models/PostDeleteRetweetRequestVariables.js +3 -5
- package/dist/models/PostDeleteTweetRequest.d.ts +0 -5
- package/dist/models/PostDeleteTweetRequest.js +2 -4
- package/dist/models/PostFavoriteTweetRequest.d.ts +0 -5
- package/dist/models/PostFavoriteTweetRequest.js +2 -4
- package/dist/models/PostListAddMemberRequest.d.ts +40 -0
- package/dist/models/PostListAddMemberRequest.js +60 -0
- package/dist/models/PostListAddMemberRequestVariables.d.ts +34 -0
- package/dist/models/PostListAddMemberRequestVariables.js +54 -0
- package/dist/models/PostListRemoveMemberRequest.d.ts +40 -0
- package/dist/models/PostListRemoveMemberRequest.js +60 -0
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -5
- package/dist/models/PostUnfavoriteTweetRequest.js +2 -4
- package/dist/models/PrimaryCommunityTopic.d.ts +0 -5
- package/dist/models/PrimaryCommunityTopic.js +3 -5
- package/dist/models/ProfileBio.d.ts +39 -0
- package/dist/models/ProfileBio.js +55 -0
- package/dist/models/ProfileBioEntities.d.ts +35 -0
- package/dist/models/ProfileBioEntities.js +53 -0
- package/dist/models/ProfileBioEntitiesUrls.d.ts +31 -0
- package/dist/models/ProfileBioEntitiesUrls.js +49 -0
- package/dist/models/ProfileResponse.d.ts +0 -5
- package/dist/models/ProfileResponse.js +3 -5
- package/dist/models/ProfileResponseData.d.ts +0 -3
- package/dist/models/ProfileResponseData.js +2 -4
- package/dist/models/QuotedRefResult.d.ts +0 -3
- package/dist/models/QuotedRefResult.js +2 -4
- package/dist/models/QuotedStatusPermalink.d.ts +0 -7
- package/dist/models/QuotedStatusPermalink.js +1 -3
- package/dist/models/RankedCommunityResult.d.ts +0 -5
- package/dist/models/RankedCommunityResult.js +5 -7
- package/dist/models/RankedCommunityResults.d.ts +0 -3
- package/dist/models/RankedCommunityResults.js +2 -4
- package/dist/models/RankedCommunityTweetData.d.ts +0 -3
- package/dist/models/RankedCommunityTweetData.js +2 -4
- package/dist/models/Retweet.d.ts +1 -6
- package/dist/models/Retweet.js +4 -8
- package/dist/models/RetweetLegacy.d.ts +0 -3
- package/dist/models/RetweetLegacy.js +2 -4
- package/dist/models/RichMessage.d.ts +0 -5
- package/dist/models/RichMessage.js +1 -3
- package/dist/models/ScheduledTweetsViewer.d.ts +32 -0
- package/dist/models/ScheduledTweetsViewer.js +50 -0
- package/dist/models/SearchByRawQuery.d.ts +0 -3
- package/dist/models/SearchByRawQuery.js +3 -5
- package/dist/models/SearchTimeline.d.ts +0 -3
- package/dist/models/SearchTimeline.js +2 -4
- package/dist/models/SearchTimelineData.d.ts +0 -3
- package/dist/models/SearchTimelineData.js +3 -5
- package/dist/models/SearchTimelineResponse.d.ts +0 -5
- package/dist/models/SearchTimelineResponse.js +3 -5
- package/dist/models/SelfThread.d.ts +0 -3
- package/dist/models/SelfThread.js +2 -4
- package/dist/models/SensitiveMediaWarning.d.ts +0 -7
- package/dist/models/SensitiveMediaWarning.js +1 -3
- package/dist/models/Session.d.ts +0 -29
- package/dist/models/Session.js +8 -8
- package/dist/models/Smarttag.d.ts +39 -0
- package/dist/models/Smarttag.js +59 -0
- package/dist/models/SmarttagTag.d.ts +32 -0
- package/dist/models/SmarttagTag.js +50 -0
- package/dist/models/SocialContextLandingUrl.d.ts +0 -7
- package/dist/models/SocialContextLandingUrl.js +3 -5
- package/dist/models/SocialContextUnion.d.ts +0 -1
- package/dist/models/SocialContextUnion.js +5 -7
- package/dist/models/SocialContextUnionType.d.ts +0 -1
- package/dist/models/SocialContextUnionType.js +2 -3
- package/dist/models/SuperFollowUserProfile.d.ts +30 -0
- package/dist/models/SuperFollowUserProfile.js +50 -0
- package/dist/models/SuperFollowsReplyUserResult.d.ts +0 -3
- package/dist/models/SuperFollowsReplyUserResult.js +2 -4
- package/dist/models/SuperFollowsReplyUserResultCore.d.ts +30 -0
- package/dist/models/SuperFollowsReplyUserResultCore.js +50 -0
- package/dist/models/SuperFollowsReplyUserResultData.d.ts +2 -7
- package/dist/models/SuperFollowsReplyUserResultData.js +6 -10
- package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts +0 -3
- package/dist/models/SuperFollowsReplyUserResultLegacy.js +2 -4
- package/dist/models/Text.d.ts +0 -5
- package/dist/models/Text.js +2 -4
- package/dist/models/TextEntity.d.ts +0 -7
- package/dist/models/TextEntity.js +2 -4
- package/dist/models/TextEntityRef.d.ts +0 -7
- package/dist/models/TextEntityRef.js +7 -5
- package/dist/models/TextHighlight.d.ts +0 -5
- package/dist/models/TextHighlight.js +1 -3
- package/dist/models/ThumbnailImage.d.ts +0 -7
- package/dist/models/ThumbnailImage.js +1 -3
- package/dist/models/Timeline.d.ts +0 -7
- package/dist/models/Timeline.js +2 -4
- package/dist/models/TimelineAddEntries.d.ts +0 -5
- package/dist/models/TimelineAddEntries.js +3 -5
- package/dist/models/TimelineAddEntry.d.ts +0 -7
- package/dist/models/TimelineAddEntry.js +2 -4
- package/dist/models/TimelineAddToModule.d.ts +0 -9
- package/dist/models/TimelineAddToModule.js +3 -5
- package/dist/models/TimelineClearCache.d.ts +0 -3
- package/dist/models/TimelineClearCache.js +2 -4
- package/dist/models/TimelineClearEntriesUnreadState.d.ts +0 -3
- package/dist/models/TimelineClearEntriesUnreadState.js +2 -4
- package/dist/models/TimelineCommunity.d.ts +0 -3
- package/dist/models/TimelineCommunity.js +4 -17
- package/dist/models/TimelineCoverBehavior.d.ts +0 -5
- package/dist/models/TimelineCoverBehavior.js +3 -5
- package/dist/models/TimelineCoverBehaviorUrl.d.ts +0 -5
- package/dist/models/TimelineCoverBehaviorUrl.js +5 -5
- package/dist/models/TimelineFrame.d.ts +44 -0
- package/dist/models/TimelineFrame.js +64 -0
- package/dist/models/TimelineGeneralContext.d.ts +0 -11
- package/dist/models/TimelineGeneralContext.js +4 -6
- package/dist/models/TimelineHalfCover.d.ts +0 -15
- package/dist/models/TimelineHalfCover.js +10 -8
- package/dist/models/TimelineLabel.d.ts +45 -0
- package/dist/models/TimelineLabel.js +65 -0
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +0 -5
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +2 -4
- package/dist/models/TimelineMessagePrompt.d.ts +0 -3
- package/dist/models/TimelineMessagePrompt.js +4 -17
- package/dist/models/TimelineNotification.d.ts +0 -17
- package/dist/models/TimelineNotification.js +11 -13
- package/dist/models/TimelinePinEntry.d.ts +0 -5
- package/dist/models/TimelinePinEntry.js +3 -5
- package/dist/models/TimelinePrompt.d.ts +0 -3
- package/dist/models/TimelinePrompt.js +4 -17
- package/dist/models/TimelineReplaceEntry.d.ts +0 -7
- package/dist/models/TimelineReplaceEntry.js +4 -6
- package/dist/models/TimelineResponse.d.ts +0 -5
- package/dist/models/TimelineResponse.js +3 -5
- package/dist/models/TimelineResult.d.ts +0 -5
- package/dist/models/TimelineResult.js +2 -4
- package/dist/models/TimelineShowAlert.d.ts +6 -20
- package/dist/models/TimelineShowAlert.js +11 -10
- package/dist/models/TimelineShowAlertRichText.d.ts +0 -5
- package/dist/models/TimelineShowAlertRichText.js +1 -3
- package/dist/models/TimelineShowCover.d.ts +0 -7
- package/dist/models/TimelineShowCover.js +4 -6
- package/dist/models/TimelineTerminateTimeline.d.ts +0 -5
- package/dist/models/TimelineTerminateTimeline.js +3 -5
- package/dist/models/TimelineTimelineCursor.d.ts +0 -15
- package/dist/models/TimelineTimelineCursor.js +6 -8
- package/dist/models/TimelineTimelineItem.d.ts +0 -11
- package/dist/models/TimelineTimelineItem.js +6 -8
- package/dist/models/TimelineTimelineModule.d.ts +0 -19
- package/dist/models/TimelineTimelineModule.js +8 -10
- package/dist/models/TimelineTombstone.d.ts +0 -9
- package/dist/models/TimelineTombstone.js +5 -7
- package/dist/models/TimelineTopicContext.d.ts +0 -7
- package/dist/models/TimelineTopicContext.js +4 -6
- package/dist/models/TimelineTrend.d.ts +4 -19
- package/dist/models/TimelineTrend.js +13 -13
- package/dist/models/TimelineTweet.d.ts +0 -17
- package/dist/models/TimelineTweet.js +9 -11
- package/dist/models/TimelineTwitterList.d.ts +45 -0
- package/dist/models/TimelineTwitterList.js +63 -0
- package/dist/models/TimelineUser.d.ts +0 -11
- package/dist/models/TimelineUser.js +8 -10
- package/dist/models/Timestamp.d.ts +0 -7
- package/dist/models/Timestamp.js +1 -3
- package/dist/models/TombstoneEntity.d.ts +0 -7
- package/dist/models/TombstoneEntity.js +2 -4
- package/dist/models/TombstoneInfo.d.ts +0 -5
- package/dist/models/TombstoneInfo.js +2 -4
- package/dist/models/TombstoneRef.d.ts +0 -7
- package/dist/models/TombstoneRef.js +3 -5
- package/dist/models/TombstoneRichText.d.ts +0 -7
- package/dist/models/TombstoneRichText.js +2 -4
- package/dist/models/TopicContext.d.ts +0 -15
- package/dist/models/TopicContext.js +1 -3
- package/dist/models/Tracing.d.ts +0 -3
- package/dist/models/Tracing.js +2 -4
- package/dist/models/TrendImage.d.ts +0 -3
- package/dist/models/TrendImage.js +1 -3
- package/dist/models/TrendMetadata.d.ts +4 -3
- package/dist/models/TrendMetadata.js +4 -4
- package/dist/models/TrendResults.d.ts +0 -3
- package/dist/models/TrendResults.js +2 -4
- package/dist/models/Tweet.d.ts +44 -64
- package/dist/models/Tweet.js +45 -26
- package/dist/models/TweetCard.d.ts +0 -5
- package/dist/models/TweetCard.js +2 -4
- package/dist/models/TweetCardLegacy.d.ts +0 -11
- package/dist/models/TweetCardLegacy.js +5 -7
- package/dist/models/TweetCardLegacyBindingValue.d.ts +0 -5
- package/dist/models/TweetCardLegacyBindingValue.js +2 -4
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +0 -15
- package/dist/models/TweetCardLegacyBindingValueData.js +3 -5
- package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts +0 -9
- package/dist/models/TweetCardLegacyBindingValueDataImage.js +1 -3
- package/dist/models/TweetCardPlatform.d.ts +0 -5
- package/dist/models/TweetCardPlatform.js +3 -5
- package/dist/models/TweetCardPlatformAudience.d.ts +0 -3
- package/dist/models/TweetCardPlatformAudience.js +4 -4
- package/dist/models/TweetCardPlatformData.d.ts +0 -3
- package/dist/models/TweetCardPlatformData.js +2 -4
- package/dist/models/TweetCardPlatformDevice.d.ts +0 -5
- package/dist/models/TweetCardPlatformDevice.js +1 -3
- package/dist/models/TweetDetailResponse.d.ts +0 -5
- package/dist/models/TweetDetailResponse.js +3 -5
- package/dist/models/TweetDetailResponseData.d.ts +0 -3
- package/dist/models/TweetDetailResponseData.js +2 -4
- package/dist/models/TweetEditControl.d.ts +0 -13
- package/dist/models/TweetEditControl.js +2 -4
- package/dist/models/TweetEditControlInitial.d.ts +0 -9
- package/dist/models/TweetEditControlInitial.js +5 -7
- package/dist/models/TweetEditPrespective.d.ts +0 -5
- package/dist/models/TweetEditPrespective.js +1 -3
- package/dist/models/TweetFavoritersResponse.d.ts +0 -5
- package/dist/models/TweetFavoritersResponse.js +3 -5
- package/dist/models/TweetFavoritersResponseData.d.ts +0 -3
- package/dist/models/TweetFavoritersResponseData.js +2 -4
- package/dist/models/TweetInterstitial.d.ts +1 -9
- package/dist/models/TweetInterstitial.js +7 -8
- package/dist/models/TweetInterstitialRevealText.d.ts +0 -7
- package/dist/models/TweetInterstitialRevealText.js +2 -4
- package/dist/models/TweetInterstitialText.d.ts +0 -7
- package/dist/models/TweetInterstitialText.js +2 -4
- package/dist/models/TweetInterstitialTextEntity.d.ts +0 -7
- package/dist/models/TweetInterstitialTextEntity.js +2 -4
- package/dist/models/TweetInterstitialTextEntityRef.d.ts +0 -7
- package/dist/models/TweetInterstitialTextEntityRef.js +7 -5
- package/dist/models/TweetLegacy.d.ts +1 -64
- package/dist/models/TweetLegacy.js +21 -25
- package/dist/models/TweetLegacyScopes.d.ts +0 -3
- package/dist/models/TweetLegacyScopes.js +1 -3
- package/dist/models/TweetLimitedActionResults.d.ts +0 -3
- package/dist/models/TweetLimitedActionResults.js +3 -5
- package/dist/models/TweetPostCta.d.ts +48 -0
- package/dist/models/TweetPostCta.js +66 -0
- package/dist/models/TweetPreviewDisplay.d.ts +0 -9
- package/dist/models/TweetPreviewDisplay.js +7 -9
- package/dist/models/TweetPreviewDisplayCta.d.ts +0 -5
- package/dist/models/TweetPreviewDisplayCta.js +2 -4
- package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +0 -5
- package/dist/models/TweetPreviewDisplayCtaUrl.js +2 -4
- package/dist/models/TweetPreviewDisplayTweet.d.ts +5 -23
- package/dist/models/TweetPreviewDisplayTweet.js +14 -13
- package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts +0 -3
- package/dist/models/TweetPreviewDisplayTweetViewCount.js +1 -3
- package/dist/models/TweetPreviousCounts.d.ts +0 -11
- package/dist/models/TweetPreviousCounts.js +6 -8
- package/dist/models/TweetResultByRestIdData.d.ts +0 -3
- package/dist/models/TweetResultByRestIdData.js +2 -4
- package/dist/models/TweetResultByRestIdResponse.d.ts +0 -5
- package/dist/models/TweetResultByRestIdResponse.js +3 -5
- package/dist/models/TweetRetweetersResponse.d.ts +0 -5
- package/dist/models/TweetRetweetersResponse.js +3 -5
- package/dist/models/TweetRetweetersResponseData.d.ts +0 -3
- package/dist/models/TweetRetweetersResponseData.js +2 -4
- package/dist/models/TweetTombstone.d.ts +0 -3
- package/dist/models/TweetTombstone.js +4 -17
- package/dist/models/TweetUnavailable.d.ts +0 -5
- package/dist/models/TweetUnavailable.js +2 -4
- package/dist/models/TweetUnion.d.ts +0 -1
- package/dist/models/TweetUnion.js +11 -13
- package/dist/models/TweetView.d.ts +0 -5
- package/dist/models/TweetView.js +2 -4
- package/dist/models/TweetWithVisibilityResults.d.ts +0 -11
- package/dist/models/TweetWithVisibilityResults.js +6 -8
- package/dist/models/TwitterList.d.ts +110 -0
- package/dist/models/TwitterList.js +124 -0
- package/dist/models/TypeName.d.ts +6 -1
- package/dist/models/TypeName.js +8 -3
- package/dist/models/UnfavoriteTweet.d.ts +0 -3
- package/dist/models/UnfavoriteTweet.js +1 -3
- package/dist/models/UnfavoriteTweetResponse.d.ts +0 -5
- package/dist/models/UnfavoriteTweetResponse.js +3 -5
- package/dist/models/UnifiedCard.d.ts +0 -3
- package/dist/models/UnifiedCard.js +5 -5
- package/dist/models/Url.d.ts +0 -9
- package/dist/models/Url.js +2 -4
- package/dist/models/UrtEndpointOptions.d.ts +1 -6
- package/dist/models/UrtEndpointOptions.js +3 -7
- package/dist/models/UrtEndpointRequestParams.d.ts +0 -5
- package/dist/models/UrtEndpointRequestParams.js +1 -3
- package/dist/models/User.d.ts +128 -54
- package/dist/models/User.js +88 -19
- package/dist/models/UserActionCounts.d.ts +30 -0
- package/dist/models/UserActionCounts.js +50 -0
- package/dist/models/UserAvatar.d.ts +30 -0
- package/dist/models/UserAvatar.js +50 -0
- package/dist/models/UserBanner.d.ts +30 -0
- package/dist/models/UserBanner.js +50 -0
- package/dist/models/UserCore.d.ts +38 -0
- package/dist/models/UserCore.js +58 -0
- package/dist/models/UserDmPermissions.d.ts +30 -0
- package/dist/models/UserDmPermissions.js +50 -0
- package/dist/models/UserFeatures.d.ts +0 -3
- package/dist/models/UserFeatures.js +2 -4
- package/dist/models/UserHighlightsInfo.d.ts +0 -5
- package/dist/models/UserHighlightsInfo.js +3 -5
- package/dist/models/UserHighlightsTweetsData.d.ts +0 -3
- package/dist/models/UserHighlightsTweetsData.js +2 -4
- package/dist/models/UserHighlightsTweetsResponse.d.ts +0 -5
- package/dist/models/UserHighlightsTweetsResponse.js +3 -5
- package/dist/models/UserHighlightsTweetsResult.d.ts +0 -5
- package/dist/models/UserHighlightsTweetsResult.js +4 -6
- package/dist/models/UserHighlightsTweetsTimeline.d.ts +0 -3
- package/dist/models/UserHighlightsTweetsTimeline.js +2 -4
- package/dist/models/UserHighlightsTweetsUser.d.ts +0 -3
- package/dist/models/UserHighlightsTweetsUser.js +2 -4
- package/dist/models/UserLegacy.d.ts +23 -90
- package/dist/models/UserLegacy.js +36 -36
- package/dist/models/UserLegacyExtendedProfile.d.ts +0 -3
- package/dist/models/UserLegacyExtendedProfile.js +2 -4
- package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +0 -11
- package/dist/models/UserLegacyExtendedProfileBirthdate.js +4 -6
- package/dist/models/UserLocation.d.ts +30 -0
- package/dist/models/UserLocation.js +50 -0
- package/dist/models/UserMediaPermissions.d.ts +30 -0
- package/dist/models/UserMediaPermissions.js +50 -0
- package/dist/models/UserNotificationsSettings.d.ts +30 -0
- package/dist/models/UserNotificationsSettings.js +50 -0
- package/dist/models/UserPinnedItems.d.ts +30 -0
- package/dist/models/UserPinnedItems.js +48 -0
- package/dist/models/UserPrivacy.d.ts +30 -0
- package/dist/models/UserPrivacy.js +50 -0
- package/dist/models/UserProfessional.d.ts +1 -8
- package/dist/models/UserProfessional.js +7 -11
- package/dist/models/UserProfessionalCategory.d.ts +0 -7
- package/dist/models/UserProfessionalCategory.js +2 -4
- package/dist/models/UserProfile.d.ts +31 -0
- package/dist/models/UserProfile.js +51 -0
- package/dist/models/UserProfileMetadata.d.ts +30 -0
- package/dist/models/UserProfileMetadata.js +50 -0
- package/dist/models/UserProfileTranslation.d.ts +30 -0
- package/dist/models/UserProfileTranslation.js +50 -0
- package/dist/models/UserRelationshipCounts.d.ts +34 -0
- package/dist/models/UserRelationshipCounts.js +54 -0
- package/dist/models/UserRelationshipPerspectives.d.ts +50 -0
- package/dist/models/UserRelationshipPerspectives.js +58 -0
- package/dist/models/UserResponse.d.ts +0 -5
- package/dist/models/UserResponse.js +3 -5
- package/dist/models/UserResponseData.d.ts +0 -3
- package/dist/models/UserResponseData.js +2 -4
- package/dist/models/UserResultByScreenName.d.ts +0 -5
- package/dist/models/UserResultByScreenName.js +2 -4
- package/dist/models/UserResultByScreenNameCore.d.ts +34 -0
- package/dist/models/UserResultByScreenNameCore.js +54 -0
- package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -15
- package/dist/models/UserResultByScreenNameLegacy.js +1 -3
- package/dist/models/UserResultByScreenNameResult.d.ts +20 -12
- package/dist/models/UserResultByScreenNameResult.js +22 -9
- package/dist/models/UserResultCore.d.ts +0 -3
- package/dist/models/UserResultCore.js +3 -5
- package/dist/models/UserResultPrivacy.d.ts +30 -0
- package/dist/models/UserResultPrivacy.js +50 -0
- package/dist/models/UserResultRelationshipPerspectives.d.ts +42 -0
- package/dist/models/UserResultRelationshipPerspectives.js +54 -0
- package/dist/models/UserResults.d.ts +0 -3
- package/dist/models/UserResults.js +2 -4
- package/dist/models/UserTipJarSettings.d.ts +0 -19
- package/dist/models/UserTipJarSettings.js +1 -3
- package/dist/models/UserTweetCounts.d.ts +34 -0
- package/dist/models/UserTweetCounts.js +54 -0
- package/dist/models/UserTweetsData.d.ts +0 -3
- package/dist/models/UserTweetsData.js +2 -4
- package/dist/models/UserTweetsResponse.d.ts +0 -5
- package/dist/models/UserTweetsResponse.js +3 -5
- package/dist/models/UserTweetsResultV1.d.ts +0 -5
- package/dist/models/UserTweetsResultV1.js +4 -6
- package/dist/models/UserTweetsResultV2.d.ts +0 -5
- package/dist/models/UserTweetsResultV2.js +5 -7
- package/dist/models/UserTweetsUser.d.ts +0 -3
- package/dist/models/UserTweetsUser.js +2 -4
- package/dist/models/UserUnavailable.d.ts +0 -7
- package/dist/models/UserUnavailable.js +3 -5
- package/dist/models/UserUnion.d.ts +0 -1
- package/dist/models/UserUnion.js +5 -7
- package/dist/models/UserValue.d.ts +4 -3
- package/dist/models/UserValue.js +4 -4
- package/dist/models/UserVerification.d.ts +42 -0
- package/dist/models/UserVerification.js +60 -0
- package/dist/models/UserVerificationInfo.d.ts +0 -5
- package/dist/models/UserVerificationInfo.js +3 -5
- package/dist/models/UserVerificationInfoReason.d.ts +0 -7
- package/dist/models/UserVerificationInfoReason.js +3 -5
- package/dist/models/UserVerificationInfoReasonDescription.d.ts +0 -5
- package/dist/models/UserVerificationInfoReasonDescription.js +2 -4
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts +0 -7
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.js +4 -6
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +0 -5
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +5 -5
- package/dist/models/UserWebsite.d.ts +30 -0
- package/dist/models/UserWebsite.js +50 -0
- package/dist/models/UsersResponse.d.ts +0 -5
- package/dist/models/UsersResponse.js +3 -5
- package/dist/models/UsersResponseData.d.ts +0 -3
- package/dist/models/UsersResponseData.js +2 -4
- package/dist/models/ViewerBadgeCountsResponse.d.ts +36 -0
- package/dist/models/ViewerBadgeCountsResponse.js +54 -0
- package/dist/models/ViewerBadgeCountsResponseData.d.ts +31 -0
- package/dist/models/ViewerBadgeCountsResponseData.js +51 -0
- package/dist/models/ViewerBadgeCountsResult.d.ts +36 -0
- package/dist/models/ViewerBadgeCountsResult.js +56 -0
- package/dist/models/ViewerBadgeCountsUserResults.d.ts +31 -0
- package/dist/models/ViewerBadgeCountsUserResults.js +51 -0
- package/dist/models/ViewerBadgeCountsViewer.d.ts +31 -0
- package/dist/models/ViewerBadgeCountsViewer.js +51 -0
- package/dist/models/index.d.ts +122 -2
- package/dist/models/index.js +122 -2
- package/dist/runtime.d.ts +34 -2
- package/dist/runtime.js +341 -442
- package/package.json +21 -25
- package/dist/apis/DefaultApi.d.ts.map +0 -1
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/OtherApi.d.ts.map +0 -1
- package/dist/apis/OtherApi.js.map +0 -1
- package/dist/apis/PostApi.d.ts.map +0 -1
- package/dist/apis/PostApi.js.map +0 -1
- package/dist/apis/TweetApi.d.ts.map +0 -1
- package/dist/apis/TweetApi.js.map +0 -1
- package/dist/apis/UserApi.d.ts.map +0 -1
- package/dist/apis/UserApi.js.map +0 -1
- package/dist/apis/UserListApi.d.ts.map +0 -1
- package/dist/apis/UserListApi.js.map +0 -1
- package/dist/apis/UsersApi.d.ts.map +0 -1
- package/dist/apis/UsersApi.js.map +0 -1
- package/dist/apis/V11GetApi.d.ts.map +0 -1
- package/dist/apis/V11GetApi.js.map +0 -1
- package/dist/apis/V11PostApi.d.ts.map +0 -1
- package/dist/apis/V11PostApi.js.map +0 -1
- package/dist/apis/V20GetApi.d.ts.map +0 -1
- package/dist/apis/V20GetApi.js.map +0 -1
- package/dist/apis/index.d.ts.map +0 -1
- package/dist/apis/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models/AboutCommunityResult.d.ts.map +0 -1
- package/dist/models/AboutCommunityResult.js.map +0 -1
- package/dist/models/AboutCommunityResults.d.ts.map +0 -1
- package/dist/models/AboutCommunityResults.js.map +0 -1
- package/dist/models/AboutCommunityTweetData.d.ts.map +0 -1
- package/dist/models/AboutCommunityTweetData.js.map +0 -1
- package/dist/models/AdditionalMediaInfo.d.ts.map +0 -1
- package/dist/models/AdditionalMediaInfo.js.map +0 -1
- package/dist/models/AdditionalMediaInfoCallToActions.d.ts.map +0 -1
- package/dist/models/AdditionalMediaInfoCallToActions.js.map +0 -1
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.d.ts.map +0 -1
- package/dist/models/AdditionalMediaInfoCallToActionsUrl.js.map +0 -1
- package/dist/models/AllowDownloadStatus.d.ts.map +0 -1
- package/dist/models/AllowDownloadStatus.js.map +0 -1
- package/dist/models/AnalysisResults.d.ts.map +0 -1
- package/dist/models/AnalysisResults.js.map +0 -1
- package/dist/models/Article.d.ts.map +0 -1
- package/dist/models/Article.js.map +0 -1
- package/dist/models/ArticleCoverMedia.d.ts.map +0 -1
- package/dist/models/ArticleCoverMedia.js.map +0 -1
- package/dist/models/ArticleCoverMediaColorInfo.d.ts.map +0 -1
- package/dist/models/ArticleCoverMediaColorInfo.js.map +0 -1
- package/dist/models/ArticleCoverMediaColorInfoPalette.d.ts.map +0 -1
- package/dist/models/ArticleCoverMediaColorInfoPalette.js.map +0 -1
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts.map +0 -1
- package/dist/models/ArticleCoverMediaColorInfoPaletteRGB.js.map +0 -1
- package/dist/models/ArticleCoverMediaInfo.d.ts.map +0 -1
- package/dist/models/ArticleCoverMediaInfo.js.map +0 -1
- package/dist/models/ArticleLifecycleState.d.ts.map +0 -1
- package/dist/models/ArticleLifecycleState.js.map +0 -1
- package/dist/models/ArticleMetadata.d.ts.map +0 -1
- package/dist/models/ArticleMetadata.js.map +0 -1
- package/dist/models/ArticleResult.d.ts.map +0 -1
- package/dist/models/ArticleResult.js.map +0 -1
- package/dist/models/ArticleResults.d.ts.map +0 -1
- package/dist/models/ArticleResults.js.map +0 -1
- package/dist/models/AuthorCommunityRelationship.d.ts.map +0 -1
- package/dist/models/AuthorCommunityRelationship.js.map +0 -1
- package/dist/models/BirdwatchEntity.d.ts.map +0 -1
- package/dist/models/BirdwatchEntity.js.map +0 -1
- package/dist/models/BirdwatchEntityRef.d.ts.map +0 -1
- package/dist/models/BirdwatchEntityRef.js.map +0 -1
- package/dist/models/BirdwatchPivot.d.ts.map +0 -1
- package/dist/models/BirdwatchPivot.js.map +0 -1
- package/dist/models/BirdwatchPivotCallToAction.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotCallToAction.js.map +0 -1
- package/dist/models/BirdwatchPivotFooter.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotFooter.js.map +0 -1
- package/dist/models/BirdwatchPivotNote.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotNote.js.map +0 -1
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotSubtitle.js.map +0 -1
- package/dist/models/BookmarksResponse.d.ts.map +0 -1
- package/dist/models/BookmarksResponse.js.map +0 -1
- package/dist/models/BookmarksResponseData.d.ts.map +0 -1
- package/dist/models/BookmarksResponseData.js.map +0 -1
- package/dist/models/BookmarksTimeline.d.ts.map +0 -1
- package/dist/models/BookmarksTimeline.js.map +0 -1
- package/dist/models/Callback.d.ts.map +0 -1
- package/dist/models/Callback.js.map +0 -1
- package/dist/models/ClientEventInfo.d.ts.map +0 -1
- package/dist/models/ClientEventInfo.js.map +0 -1
- package/dist/models/CommunitiesActions.d.ts.map +0 -1
- package/dist/models/CommunitiesActions.js.map +0 -1
- package/dist/models/Community.d.ts.map +0 -1
- package/dist/models/Community.js.map +0 -1
- package/dist/models/CommunityAboutTimelineResponse.d.ts.map +0 -1
- package/dist/models/CommunityAboutTimelineResponse.js.map +0 -1
- package/dist/models/CommunityActions.d.ts.map +0 -1
- package/dist/models/CommunityActions.js.map +0 -1
- package/dist/models/CommunityData.d.ts +0 -220
- package/dist/models/CommunityData.d.ts.map +0 -1
- package/dist/models/CommunityData.js +0 -133
- package/dist/models/CommunityData.js.map +0 -1
- package/dist/models/CommunityDeleteActionResult.d.ts.map +0 -1
- package/dist/models/CommunityDeleteActionResult.js.map +0 -1
- package/dist/models/CommunityInvitesResult.d.ts.map +0 -1
- package/dist/models/CommunityInvitesResult.js.map +0 -1
- package/dist/models/CommunityJoinAction.d.ts.map +0 -1
- package/dist/models/CommunityJoinAction.js.map +0 -1
- package/dist/models/CommunityJoinActionResultUnion.d.ts.map +0 -1
- package/dist/models/CommunityJoinActionResultUnion.js.map +0 -1
- package/dist/models/CommunityJoinActionUnavailable.d.ts.map +0 -1
- package/dist/models/CommunityJoinActionUnavailable.js.map +0 -1
- package/dist/models/CommunityJoinRequestsResult.d.ts.map +0 -1
- package/dist/models/CommunityJoinRequestsResult.js.map +0 -1
- package/dist/models/CommunityLeaveActionResult.d.ts.map +0 -1
- package/dist/models/CommunityLeaveActionResult.js.map +0 -1
- package/dist/models/CommunityMediaTimelineResponse.d.ts.map +0 -1
- package/dist/models/CommunityMediaTimelineResponse.js.map +0 -1
- package/dist/models/CommunityPinActionResult.d.ts.map +0 -1
- package/dist/models/CommunityPinActionResult.js.map +0 -1
- package/dist/models/CommunityRelationship.d.ts.map +0 -1
- package/dist/models/CommunityRelationship.js.map +0 -1
- package/dist/models/CommunityRule.d.ts.map +0 -1
- package/dist/models/CommunityRule.js.map +0 -1
- package/dist/models/CommunityTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/CommunityTweetsTimelineResponse.js.map +0 -1
- package/dist/models/CommunityUnpinActionResult.d.ts.map +0 -1
- package/dist/models/CommunityUnpinActionResult.js.map +0 -1
- package/dist/models/CommunityUrls.d.ts.map +0 -1
- package/dist/models/CommunityUrls.js.map +0 -1
- package/dist/models/CommunityUrlsPermalink.d.ts.map +0 -1
- package/dist/models/CommunityUrlsPermalink.js.map +0 -1
- package/dist/models/ContentEntryType.d.ts.map +0 -1
- package/dist/models/ContentEntryType.js.map +0 -1
- package/dist/models/ContentItemType.d.ts.map +0 -1
- package/dist/models/ContentItemType.js.map +0 -1
- package/dist/models/ContentUnion.d.ts.map +0 -1
- package/dist/models/ContentUnion.js.map +0 -1
- package/dist/models/ConversationControl.d.ts.map +0 -1
- package/dist/models/ConversationControl.js.map +0 -1
- package/dist/models/CoverCta.d.ts.map +0 -1
- package/dist/models/CoverCta.js.map +0 -1
- package/dist/models/CreateBookmarkResponse.d.ts.map +0 -1
- package/dist/models/CreateBookmarkResponse.js.map +0 -1
- package/dist/models/CreateBookmarkResponseData.d.ts.map +0 -1
- package/dist/models/CreateBookmarkResponseData.js.map +0 -1
- package/dist/models/CreateRetweet.d.ts.map +0 -1
- package/dist/models/CreateRetweet.js.map +0 -1
- package/dist/models/CreateRetweetResponse.d.ts.map +0 -1
- package/dist/models/CreateRetweetResponse.js.map +0 -1
- package/dist/models/CreateRetweetResponseData.d.ts.map +0 -1
- package/dist/models/CreateRetweetResponseData.js.map +0 -1
- package/dist/models/CreateRetweetResponseResult.d.ts.map +0 -1
- package/dist/models/CreateRetweetResponseResult.js.map +0 -1
- package/dist/models/CreateTweet.d.ts.map +0 -1
- package/dist/models/CreateTweet.js.map +0 -1
- package/dist/models/CreateTweetResponse.d.ts.map +0 -1
- package/dist/models/CreateTweetResponse.js.map +0 -1
- package/dist/models/CreateTweetResponseData.d.ts.map +0 -1
- package/dist/models/CreateTweetResponseData.js.map +0 -1
- package/dist/models/CreateTweetResponseResult.d.ts.map +0 -1
- package/dist/models/CreateTweetResponseResult.js.map +0 -1
- package/dist/models/CtaClientEventInfo.d.ts.map +0 -1
- package/dist/models/CtaClientEventInfo.js.map +0 -1
- package/dist/models/CursorType.d.ts.map +0 -1
- package/dist/models/CursorType.js.map +0 -1
- package/dist/models/DeleteBookmarkResponse.d.ts.map +0 -1
- package/dist/models/DeleteBookmarkResponse.js.map +0 -1
- package/dist/models/DeleteBookmarkResponseData.d.ts.map +0 -1
- package/dist/models/DeleteBookmarkResponseData.js.map +0 -1
- package/dist/models/DeleteRetweet.d.ts.map +0 -1
- package/dist/models/DeleteRetweet.js.map +0 -1
- package/dist/models/DeleteRetweetResponse.d.ts.map +0 -1
- package/dist/models/DeleteRetweetResponse.js.map +0 -1
- package/dist/models/DeleteRetweetResponseData.d.ts.map +0 -1
- package/dist/models/DeleteRetweetResponseData.js.map +0 -1
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +0 -1
- package/dist/models/DeleteRetweetResponseResult.js.map +0 -1
- package/dist/models/DeleteTweetResponse.d.ts.map +0 -1
- package/dist/models/DeleteTweetResponse.js.map +0 -1
- package/dist/models/DeleteTweetResponseData.d.ts.map +0 -1
- package/dist/models/DeleteTweetResponseData.js.map +0 -1
- package/dist/models/DeleteTweetResponseResult.d.ts.map +0 -1
- package/dist/models/DeleteTweetResponseResult.js.map +0 -1
- package/dist/models/DisplayTreatment.d.ts.map +0 -1
- package/dist/models/DisplayTreatment.js.map +0 -1
- package/dist/models/DisplayType.d.ts.map +0 -1
- package/dist/models/DisplayType.js.map +0 -1
- package/dist/models/Entities.d.ts.map +0 -1
- package/dist/models/Entities.js.map +0 -1
- package/dist/models/ErrorExtensions.d.ts.map +0 -1
- package/dist/models/ErrorExtensions.js.map +0 -1
- package/dist/models/ErrorResponse.d.ts.map +0 -1
- package/dist/models/ErrorResponse.js.map +0 -1
- package/dist/models/ExtMediaAvailability.d.ts.map +0 -1
- package/dist/models/ExtMediaAvailability.js.map +0 -1
- package/dist/models/ExtendedEntities.d.ts.map +0 -1
- package/dist/models/ExtendedEntities.js.map +0 -1
- package/dist/models/FavoriteTweet.d.ts.map +0 -1
- package/dist/models/FavoriteTweet.js.map +0 -1
- package/dist/models/FavoriteTweetResponse.d.ts.map +0 -1
- package/dist/models/FavoriteTweetResponse.js.map +0 -1
- package/dist/models/FeedbackInfo.d.ts.map +0 -1
- package/dist/models/FeedbackInfo.js.map +0 -1
- package/dist/models/FollowResponse.d.ts.map +0 -1
- package/dist/models/FollowResponse.js.map +0 -1
- package/dist/models/FollowResponseData.d.ts.map +0 -1
- package/dist/models/FollowResponseData.js.map +0 -1
- package/dist/models/FollowResponseResult.d.ts.map +0 -1
- package/dist/models/FollowResponseResult.js.map +0 -1
- package/dist/models/FollowResponseUser.d.ts.map +0 -1
- package/dist/models/FollowResponseUser.js.map +0 -1
- package/dist/models/FollowTimeline.d.ts.map +0 -1
- package/dist/models/FollowTimeline.js.map +0 -1
- package/dist/models/GrokImageAnnotation.d.ts.map +0 -1
- package/dist/models/GrokImageAnnotation.js.map +0 -1
- package/dist/models/GrokShareAttachment.d.ts.map +0 -1
- package/dist/models/GrokShareAttachment.js.map +0 -1
- package/dist/models/GrokShareAttachmentItem.d.ts.map +0 -1
- package/dist/models/GrokShareAttachmentItem.js.map +0 -1
- package/dist/models/Highlight.d.ts.map +0 -1
- package/dist/models/Highlight.js.map +0 -1
- package/dist/models/HomeTimelineHome.d.ts.map +0 -1
- package/dist/models/HomeTimelineHome.js.map +0 -1
- package/dist/models/HomeTimelineResponseData.d.ts.map +0 -1
- package/dist/models/HomeTimelineResponseData.js.map +0 -1
- package/dist/models/InstructionType.d.ts.map +0 -1
- package/dist/models/InstructionType.js.map +0 -1
- package/dist/models/InstructionUnion.d.ts.map +0 -1
- package/dist/models/InstructionUnion.js.map +0 -1
- package/dist/models/ItemContentUnion.d.ts.map +0 -1
- package/dist/models/ItemContentUnion.js.map +0 -1
- package/dist/models/ItemResult.d.ts.map +0 -1
- package/dist/models/ItemResult.js.map +0 -1
- package/dist/models/LimitedActionResultsData.d.ts.map +0 -1
- package/dist/models/LimitedActionResultsData.js.map +0 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +0 -1
- package/dist/models/ListTweetsTimelineData.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineData.js.map +0 -1
- package/dist/models/ListTweetsTimelineList.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineList.js.map +0 -1
- package/dist/models/Location.d.ts.map +0 -1
- package/dist/models/Location.js.map +0 -1
- package/dist/models/Media.d.ts.map +0 -1
- package/dist/models/Media.js.map +0 -1
- package/dist/models/MediaCommunityResult.d.ts.map +0 -1
- package/dist/models/MediaCommunityResult.js.map +0 -1
- package/dist/models/MediaCommunityResults.d.ts.map +0 -1
- package/dist/models/MediaCommunityResults.js.map +0 -1
- package/dist/models/MediaCommunityTweetData.d.ts.map +0 -1
- package/dist/models/MediaCommunityTweetData.js.map +0 -1
- package/dist/models/MediaExtended.d.ts.map +0 -1
- package/dist/models/MediaExtended.js.map +0 -1
- package/dist/models/MediaOriginalInfo.d.ts.map +0 -1
- package/dist/models/MediaOriginalInfo.js.map +0 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +0 -1
- package/dist/models/MediaOriginalInfoFocusRect.js.map +0 -1
- package/dist/models/MediaResult.d.ts.map +0 -1
- package/dist/models/MediaResult.js.map +0 -1
- package/dist/models/MediaResults.d.ts.map +0 -1
- package/dist/models/MediaResults.js.map +0 -1
- package/dist/models/MediaSize.d.ts.map +0 -1
- package/dist/models/MediaSize.js.map +0 -1
- package/dist/models/MediaSizes.d.ts.map +0 -1
- package/dist/models/MediaSizes.js.map +0 -1
- package/dist/models/MediaStats.d.ts.map +0 -1
- package/dist/models/MediaStats.js.map +0 -1
- package/dist/models/MediaVideoInfo.d.ts.map +0 -1
- package/dist/models/MediaVideoInfo.js.map +0 -1
- package/dist/models/MediaVideoInfoVariant.d.ts.map +0 -1
- package/dist/models/MediaVideoInfoVariant.js.map +0 -1
- package/dist/models/MediaVisibilityResults.d.ts.map +0 -1
- package/dist/models/MediaVisibilityResults.js.map +0 -1
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts.map +0 -1
- package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js.map +0 -1
- package/dist/models/ModuleEntry.d.ts.map +0 -1
- package/dist/models/ModuleEntry.js.map +0 -1
- package/dist/models/ModuleItem.d.ts.map +0 -1
- package/dist/models/ModuleItem.js.map +0 -1
- package/dist/models/NoteTweet.d.ts.map +0 -1
- package/dist/models/NoteTweet.js.map +0 -1
- package/dist/models/NoteTweetResult.d.ts.map +0 -1
- package/dist/models/NoteTweetResult.js.map +0 -1
- package/dist/models/NoteTweetResultData.d.ts.map +0 -1
- package/dist/models/NoteTweetResultData.js.map +0 -1
- package/dist/models/NoteTweetResultMedia.d.ts.map +0 -1
- package/dist/models/NoteTweetResultMedia.js.map +0 -1
- package/dist/models/NoteTweetResultMediaInlineMedia.d.ts.map +0 -1
- package/dist/models/NoteTweetResultMediaInlineMedia.js.map +0 -1
- package/dist/models/NoteTweetResultRichText.d.ts.map +0 -1
- package/dist/models/NoteTweetResultRichText.js.map +0 -1
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +0 -1
- package/dist/models/NoteTweetResultRichTextTag.js.map +0 -1
- package/dist/models/NotificationTemplate.d.ts.map +0 -1
- package/dist/models/NotificationTemplate.js.map +0 -1
- package/dist/models/NotificationsResult.d.ts.map +0 -1
- package/dist/models/NotificationsResult.js.map +0 -1
- package/dist/models/NotificationsTimelineData.d.ts.map +0 -1
- package/dist/models/NotificationsTimelineData.js.map +0 -1
- package/dist/models/NotificationsTimelineResponse.d.ts.map +0 -1
- package/dist/models/NotificationsTimelineResponse.js.map +0 -1
- package/dist/models/NotificationsUserResults.d.ts.map +0 -1
- package/dist/models/NotificationsUserResults.js.map +0 -1
- package/dist/models/NotificationsViewerV2.d.ts.map +0 -1
- package/dist/models/NotificationsViewerV2.js.map +0 -1
- package/dist/models/OneFactorLoginEligibility.d.ts.map +0 -1
- package/dist/models/OneFactorLoginEligibility.js.map +0 -1
- package/dist/models/OtherObjectAll.d.ts.map +0 -1
- package/dist/models/OtherObjectAll.js.map +0 -1
- package/dist/models/PostCreateBookmarkRequest.d.ts.map +0 -1
- package/dist/models/PostCreateBookmarkRequest.js.map +0 -1
- package/dist/models/PostCreateBookmarkRequestVariables.d.ts.map +0 -1
- package/dist/models/PostCreateBookmarkRequestVariables.js.map +0 -1
- package/dist/models/PostCreateRetweetRequest.d.ts.map +0 -1
- package/dist/models/PostCreateRetweetRequest.js.map +0 -1
- package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostCreateRetweetRequestVariables.js.map +0 -1
- package/dist/models/PostCreateTweetRequest.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequest.js.map +0 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestFeatures.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariables.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesConversationControl.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesReply.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesReply.js.map +0 -1
- package/dist/models/PostDeleteBookmarkRequest.d.ts.map +0 -1
- package/dist/models/PostDeleteBookmarkRequest.js.map +0 -1
- package/dist/models/PostDeleteRetweetRequest.d.ts.map +0 -1
- package/dist/models/PostDeleteRetweetRequest.js.map +0 -1
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostDeleteRetweetRequestVariables.js.map +0 -1
- package/dist/models/PostDeleteTweetRequest.d.ts.map +0 -1
- package/dist/models/PostDeleteTweetRequest.js.map +0 -1
- package/dist/models/PostFavoriteTweetRequest.d.ts.map +0 -1
- package/dist/models/PostFavoriteTweetRequest.js.map +0 -1
- package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +0 -1
- package/dist/models/PostUnfavoriteTweetRequest.js.map +0 -1
- package/dist/models/PrimaryCommunityTopic.d.ts.map +0 -1
- package/dist/models/PrimaryCommunityTopic.js.map +0 -1
- package/dist/models/ProfileResponse.d.ts.map +0 -1
- package/dist/models/ProfileResponse.js.map +0 -1
- package/dist/models/ProfileResponseData.d.ts.map +0 -1
- package/dist/models/ProfileResponseData.js.map +0 -1
- package/dist/models/QuotedRefResult.d.ts.map +0 -1
- package/dist/models/QuotedRefResult.js.map +0 -1
- package/dist/models/QuotedStatusPermalink.d.ts.map +0 -1
- package/dist/models/QuotedStatusPermalink.js.map +0 -1
- package/dist/models/RankedCommunityResult.d.ts.map +0 -1
- package/dist/models/RankedCommunityResult.js.map +0 -1
- package/dist/models/RankedCommunityResults.d.ts.map +0 -1
- package/dist/models/RankedCommunityResults.js.map +0 -1
- package/dist/models/RankedCommunityTweetData.d.ts.map +0 -1
- package/dist/models/RankedCommunityTweetData.js.map +0 -1
- package/dist/models/Retweet.d.ts.map +0 -1
- package/dist/models/Retweet.js.map +0 -1
- package/dist/models/RetweetLegacy.d.ts.map +0 -1
- package/dist/models/RetweetLegacy.js.map +0 -1
- package/dist/models/RichMessage.d.ts.map +0 -1
- package/dist/models/RichMessage.js.map +0 -1
- package/dist/models/SearchByRawQuery.d.ts.map +0 -1
- package/dist/models/SearchByRawQuery.js.map +0 -1
- package/dist/models/SearchTimeline.d.ts.map +0 -1
- package/dist/models/SearchTimeline.js.map +0 -1
- package/dist/models/SearchTimelineData.d.ts.map +0 -1
- package/dist/models/SearchTimelineData.js.map +0 -1
- package/dist/models/SearchTimelineResponse.d.ts.map +0 -1
- package/dist/models/SearchTimelineResponse.js.map +0 -1
- package/dist/models/SelfThread.d.ts.map +0 -1
- package/dist/models/SelfThread.js.map +0 -1
- package/dist/models/SensitiveMediaWarning.d.ts.map +0 -1
- package/dist/models/SensitiveMediaWarning.js.map +0 -1
- package/dist/models/Session.d.ts.map +0 -1
- package/dist/models/Session.js.map +0 -1
- package/dist/models/SocialContextLandingUrl.d.ts.map +0 -1
- package/dist/models/SocialContextLandingUrl.js.map +0 -1
- package/dist/models/SocialContextUnion.d.ts.map +0 -1
- package/dist/models/SocialContextUnion.js.map +0 -1
- package/dist/models/SocialContextUnionType.d.ts.map +0 -1
- package/dist/models/SocialContextUnionType.js.map +0 -1
- package/dist/models/SuperFollowsReplyUserResult.d.ts.map +0 -1
- package/dist/models/SuperFollowsReplyUserResult.js.map +0 -1
- package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +0 -1
- package/dist/models/SuperFollowsReplyUserResultData.js.map +0 -1
- package/dist/models/SuperFollowsReplyUserResultLegacy.d.ts.map +0 -1
- package/dist/models/SuperFollowsReplyUserResultLegacy.js.map +0 -1
- package/dist/models/Text.d.ts.map +0 -1
- package/dist/models/Text.js.map +0 -1
- package/dist/models/TextEntity.d.ts.map +0 -1
- package/dist/models/TextEntity.js.map +0 -1
- package/dist/models/TextEntityRef.d.ts.map +0 -1
- package/dist/models/TextEntityRef.js.map +0 -1
- package/dist/models/TextHighlight.d.ts.map +0 -1
- package/dist/models/TextHighlight.js.map +0 -1
- package/dist/models/ThumbnailImage.d.ts.map +0 -1
- package/dist/models/ThumbnailImage.js.map +0 -1
- package/dist/models/Timeline.d.ts.map +0 -1
- package/dist/models/Timeline.js.map +0 -1
- package/dist/models/TimelineAddEntries.d.ts.map +0 -1
- package/dist/models/TimelineAddEntries.js.map +0 -1
- package/dist/models/TimelineAddEntry.d.ts.map +0 -1
- package/dist/models/TimelineAddEntry.js.map +0 -1
- package/dist/models/TimelineAddToModule.d.ts.map +0 -1
- package/dist/models/TimelineAddToModule.js.map +0 -1
- package/dist/models/TimelineClearCache.d.ts.map +0 -1
- package/dist/models/TimelineClearCache.js.map +0 -1
- package/dist/models/TimelineClearEntriesUnreadState.d.ts.map +0 -1
- package/dist/models/TimelineClearEntriesUnreadState.js.map +0 -1
- package/dist/models/TimelineCommunity.d.ts.map +0 -1
- package/dist/models/TimelineCommunity.js.map +0 -1
- package/dist/models/TimelineCoverBehavior.d.ts.map +0 -1
- package/dist/models/TimelineCoverBehavior.js.map +0 -1
- package/dist/models/TimelineCoverBehaviorUrl.d.ts.map +0 -1
- package/dist/models/TimelineCoverBehaviorUrl.js.map +0 -1
- package/dist/models/TimelineGeneralContext.d.ts.map +0 -1
- package/dist/models/TimelineGeneralContext.js.map +0 -1
- package/dist/models/TimelineHalfCover.d.ts.map +0 -1
- package/dist/models/TimelineHalfCover.js.map +0 -1
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts.map +0 -1
- package/dist/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js.map +0 -1
- package/dist/models/TimelineMessagePrompt.d.ts.map +0 -1
- package/dist/models/TimelineMessagePrompt.js.map +0 -1
- package/dist/models/TimelineNotification.d.ts.map +0 -1
- package/dist/models/TimelineNotification.js.map +0 -1
- package/dist/models/TimelinePinEntry.d.ts.map +0 -1
- package/dist/models/TimelinePinEntry.js.map +0 -1
- package/dist/models/TimelinePrompt.d.ts.map +0 -1
- package/dist/models/TimelinePrompt.js.map +0 -1
- package/dist/models/TimelineReplaceEntry.d.ts.map +0 -1
- package/dist/models/TimelineReplaceEntry.js.map +0 -1
- package/dist/models/TimelineResponse.d.ts.map +0 -1
- package/dist/models/TimelineResponse.js.map +0 -1
- package/dist/models/TimelineResult.d.ts.map +0 -1
- package/dist/models/TimelineResult.js.map +0 -1
- package/dist/models/TimelineShowAlert.d.ts.map +0 -1
- package/dist/models/TimelineShowAlert.js.map +0 -1
- package/dist/models/TimelineShowAlertRichText.d.ts.map +0 -1
- package/dist/models/TimelineShowAlertRichText.js.map +0 -1
- package/dist/models/TimelineShowCover.d.ts.map +0 -1
- package/dist/models/TimelineShowCover.js.map +0 -1
- package/dist/models/TimelineTerminateTimeline.d.ts.map +0 -1
- package/dist/models/TimelineTerminateTimeline.js.map +0 -1
- package/dist/models/TimelineTimelineCursor.d.ts.map +0 -1
- package/dist/models/TimelineTimelineCursor.js.map +0 -1
- package/dist/models/TimelineTimelineItem.d.ts.map +0 -1
- package/dist/models/TimelineTimelineItem.js.map +0 -1
- package/dist/models/TimelineTimelineModule.d.ts.map +0 -1
- package/dist/models/TimelineTimelineModule.js.map +0 -1
- package/dist/models/TimelineTombstone.d.ts.map +0 -1
- package/dist/models/TimelineTombstone.js.map +0 -1
- package/dist/models/TimelineTopicContext.d.ts.map +0 -1
- package/dist/models/TimelineTopicContext.js.map +0 -1
- package/dist/models/TimelineTrend.d.ts.map +0 -1
- package/dist/models/TimelineTrend.js.map +0 -1
- package/dist/models/TimelineTweet.d.ts.map +0 -1
- package/dist/models/TimelineTweet.js.map +0 -1
- package/dist/models/TimelineUser.d.ts.map +0 -1
- package/dist/models/TimelineUser.js.map +0 -1
- package/dist/models/Timestamp.d.ts.map +0 -1
- package/dist/models/Timestamp.js.map +0 -1
- package/dist/models/TombstoneEntity.d.ts.map +0 -1
- package/dist/models/TombstoneEntity.js.map +0 -1
- package/dist/models/TombstoneInfo.d.ts.map +0 -1
- package/dist/models/TombstoneInfo.js.map +0 -1
- package/dist/models/TombstoneRef.d.ts.map +0 -1
- package/dist/models/TombstoneRef.js.map +0 -1
- package/dist/models/TombstoneRichText.d.ts.map +0 -1
- package/dist/models/TombstoneRichText.js.map +0 -1
- package/dist/models/TopicContext.d.ts.map +0 -1
- package/dist/models/TopicContext.js.map +0 -1
- package/dist/models/Tracing.d.ts.map +0 -1
- package/dist/models/Tracing.js.map +0 -1
- package/dist/models/TrendImage.d.ts.map +0 -1
- package/dist/models/TrendImage.js.map +0 -1
- package/dist/models/TrendMetadata.d.ts.map +0 -1
- package/dist/models/TrendMetadata.js.map +0 -1
- package/dist/models/TrendResults.d.ts.map +0 -1
- package/dist/models/TrendResults.js.map +0 -1
- package/dist/models/Tweet.d.ts.map +0 -1
- package/dist/models/Tweet.js.map +0 -1
- package/dist/models/TweetCard.d.ts.map +0 -1
- package/dist/models/TweetCard.js.map +0 -1
- package/dist/models/TweetCardLegacy.d.ts.map +0 -1
- package/dist/models/TweetCardLegacy.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValue.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValueData.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValueDataImage.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValueDataImage.js.map +0 -1
- package/dist/models/TweetCardPlatform.d.ts.map +0 -1
- package/dist/models/TweetCardPlatform.js.map +0 -1
- package/dist/models/TweetCardPlatformAudience.d.ts.map +0 -1
- package/dist/models/TweetCardPlatformAudience.js.map +0 -1
- package/dist/models/TweetCardPlatformData.d.ts.map +0 -1
- package/dist/models/TweetCardPlatformData.js.map +0 -1
- package/dist/models/TweetCardPlatformDevice.d.ts.map +0 -1
- package/dist/models/TweetCardPlatformDevice.js.map +0 -1
- package/dist/models/TweetDetailResponse.d.ts.map +0 -1
- package/dist/models/TweetDetailResponse.js.map +0 -1
- package/dist/models/TweetDetailResponseData.d.ts.map +0 -1
- package/dist/models/TweetDetailResponseData.js.map +0 -1
- package/dist/models/TweetEditControl.d.ts.map +0 -1
- package/dist/models/TweetEditControl.js.map +0 -1
- package/dist/models/TweetEditControlInitial.d.ts.map +0 -1
- package/dist/models/TweetEditControlInitial.js.map +0 -1
- package/dist/models/TweetEditPrespective.d.ts.map +0 -1
- package/dist/models/TweetEditPrespective.js.map +0 -1
- package/dist/models/TweetFavoritersResponse.d.ts.map +0 -1
- package/dist/models/TweetFavoritersResponse.js.map +0 -1
- package/dist/models/TweetFavoritersResponseData.d.ts.map +0 -1
- package/dist/models/TweetFavoritersResponseData.js.map +0 -1
- package/dist/models/TweetInterstitial.d.ts.map +0 -1
- package/dist/models/TweetInterstitial.js.map +0 -1
- package/dist/models/TweetInterstitialRevealText.d.ts.map +0 -1
- package/dist/models/TweetInterstitialRevealText.js.map +0 -1
- package/dist/models/TweetInterstitialText.d.ts.map +0 -1
- package/dist/models/TweetInterstitialText.js.map +0 -1
- package/dist/models/TweetInterstitialTextEntity.d.ts.map +0 -1
- package/dist/models/TweetInterstitialTextEntity.js.map +0 -1
- package/dist/models/TweetInterstitialTextEntityRef.d.ts.map +0 -1
- package/dist/models/TweetInterstitialTextEntityRef.js.map +0 -1
- package/dist/models/TweetLegacy.d.ts.map +0 -1
- package/dist/models/TweetLegacy.js.map +0 -1
- package/dist/models/TweetLegacyScopes.d.ts.map +0 -1
- package/dist/models/TweetLegacyScopes.js.map +0 -1
- package/dist/models/TweetLimitedActionResults.d.ts.map +0 -1
- package/dist/models/TweetLimitedActionResults.js.map +0 -1
- package/dist/models/TweetPreviewDisplay.d.ts.map +0 -1
- package/dist/models/TweetPreviewDisplay.js.map +0 -1
- package/dist/models/TweetPreviewDisplayCta.d.ts.map +0 -1
- package/dist/models/TweetPreviewDisplayCta.js.map +0 -1
- package/dist/models/TweetPreviewDisplayCtaUrl.d.ts.map +0 -1
- package/dist/models/TweetPreviewDisplayCtaUrl.js.map +0 -1
- package/dist/models/TweetPreviewDisplayTweet.d.ts.map +0 -1
- package/dist/models/TweetPreviewDisplayTweet.js.map +0 -1
- package/dist/models/TweetPreviewDisplayTweetViewCount.d.ts.map +0 -1
- package/dist/models/TweetPreviewDisplayTweetViewCount.js.map +0 -1
- package/dist/models/TweetPreviousCounts.d.ts.map +0 -1
- package/dist/models/TweetPreviousCounts.js.map +0 -1
- package/dist/models/TweetResultByRestIdData.d.ts.map +0 -1
- package/dist/models/TweetResultByRestIdData.js.map +0 -1
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +0 -1
- package/dist/models/TweetResultByRestIdResponse.js.map +0 -1
- package/dist/models/TweetRetweetersResponse.d.ts.map +0 -1
- package/dist/models/TweetRetweetersResponse.js.map +0 -1
- package/dist/models/TweetRetweetersResponseData.d.ts.map +0 -1
- package/dist/models/TweetRetweetersResponseData.js.map +0 -1
- package/dist/models/TweetTombstone.d.ts.map +0 -1
- package/dist/models/TweetTombstone.js.map +0 -1
- package/dist/models/TweetUnavailable.d.ts.map +0 -1
- package/dist/models/TweetUnavailable.js.map +0 -1
- package/dist/models/TweetUnion.d.ts.map +0 -1
- package/dist/models/TweetUnion.js.map +0 -1
- package/dist/models/TweetView.d.ts.map +0 -1
- package/dist/models/TweetView.js.map +0 -1
- package/dist/models/TweetWithVisibilityResults.d.ts.map +0 -1
- package/dist/models/TweetWithVisibilityResults.js.map +0 -1
- package/dist/models/TypeName.d.ts.map +0 -1
- package/dist/models/TypeName.js.map +0 -1
- package/dist/models/UnfavoriteTweet.d.ts.map +0 -1
- package/dist/models/UnfavoriteTweet.js.map +0 -1
- package/dist/models/UnfavoriteTweetResponse.d.ts.map +0 -1
- package/dist/models/UnfavoriteTweetResponse.js.map +0 -1
- package/dist/models/UnifiedCard.d.ts.map +0 -1
- package/dist/models/UnifiedCard.js.map +0 -1
- package/dist/models/Url.d.ts.map +0 -1
- package/dist/models/Url.js.map +0 -1
- package/dist/models/UrtEndpointOptions.d.ts.map +0 -1
- package/dist/models/UrtEndpointOptions.js.map +0 -1
- package/dist/models/UrtEndpointRequestParams.d.ts.map +0 -1
- package/dist/models/UrtEndpointRequestParams.js.map +0 -1
- package/dist/models/User.d.ts.map +0 -1
- package/dist/models/User.js.map +0 -1
- package/dist/models/UserFeatures.d.ts.map +0 -1
- package/dist/models/UserFeatures.js.map +0 -1
- package/dist/models/UserHighlightsInfo.d.ts.map +0 -1
- package/dist/models/UserHighlightsInfo.js.map +0 -1
- package/dist/models/UserHighlightsTweetsData.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsData.js.map +0 -1
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsResponse.js.map +0 -1
- package/dist/models/UserHighlightsTweetsResult.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsResult.js.map +0 -1
- package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsTimeline.js.map +0 -1
- package/dist/models/UserHighlightsTweetsUser.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsUser.js.map +0 -1
- package/dist/models/UserLegacy.d.ts.map +0 -1
- package/dist/models/UserLegacy.js.map +0 -1
- package/dist/models/UserLegacyExtendedProfile.d.ts.map +0 -1
- package/dist/models/UserLegacyExtendedProfile.js.map +0 -1
- package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts.map +0 -1
- package/dist/models/UserLegacyExtendedProfileBirthdate.js.map +0 -1
- package/dist/models/UserProfessional.d.ts.map +0 -1
- package/dist/models/UserProfessional.js.map +0 -1
- package/dist/models/UserProfessionalCategory.d.ts.map +0 -1
- package/dist/models/UserProfessionalCategory.js.map +0 -1
- package/dist/models/UserResponse.d.ts.map +0 -1
- package/dist/models/UserResponse.js.map +0 -1
- package/dist/models/UserResponseData.d.ts.map +0 -1
- package/dist/models/UserResponseData.js.map +0 -1
- package/dist/models/UserResultByScreenName.d.ts.map +0 -1
- package/dist/models/UserResultByScreenName.js.map +0 -1
- package/dist/models/UserResultByScreenNameLegacy.d.ts.map +0 -1
- package/dist/models/UserResultByScreenNameLegacy.js.map +0 -1
- package/dist/models/UserResultByScreenNameResult.d.ts.map +0 -1
- package/dist/models/UserResultByScreenNameResult.js.map +0 -1
- package/dist/models/UserResultCore.d.ts.map +0 -1
- package/dist/models/UserResultCore.js.map +0 -1
- package/dist/models/UserResults.d.ts.map +0 -1
- package/dist/models/UserResults.js.map +0 -1
- package/dist/models/UserTipJarSettings.d.ts.map +0 -1
- package/dist/models/UserTipJarSettings.js.map +0 -1
- package/dist/models/UserTweetsData.d.ts.map +0 -1
- package/dist/models/UserTweetsData.js.map +0 -1
- package/dist/models/UserTweetsResponse.d.ts.map +0 -1
- package/dist/models/UserTweetsResponse.js.map +0 -1
- package/dist/models/UserTweetsResultV1.d.ts.map +0 -1
- package/dist/models/UserTweetsResultV1.js.map +0 -1
- package/dist/models/UserTweetsResultV2.d.ts.map +0 -1
- package/dist/models/UserTweetsResultV2.js.map +0 -1
- package/dist/models/UserTweetsUser.d.ts.map +0 -1
- package/dist/models/UserTweetsUser.js.map +0 -1
- package/dist/models/UserUnavailable.d.ts.map +0 -1
- package/dist/models/UserUnavailable.js.map +0 -1
- package/dist/models/UserUnion.d.ts.map +0 -1
- package/dist/models/UserUnion.js.map +0 -1
- package/dist/models/UserValue.d.ts.map +0 -1
- package/dist/models/UserValue.js.map +0 -1
- package/dist/models/UserVerificationInfo.d.ts.map +0 -1
- package/dist/models/UserVerificationInfo.js.map +0 -1
- package/dist/models/UserVerificationInfoReason.d.ts.map +0 -1
- package/dist/models/UserVerificationInfoReason.js.map +0 -1
- package/dist/models/UserVerificationInfoReasonDescription.d.ts.map +0 -1
- package/dist/models/UserVerificationInfoReasonDescription.js.map +0 -1
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.d.ts.map +0 -1
- package/dist/models/UserVerificationInfoReasonDescriptionEntities.js.map +0 -1
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts.map +0 -1
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.js.map +0 -1
- package/dist/models/UsersResponse.d.ts.map +0 -1
- package/dist/models/UsersResponse.js.map +0 -1
- package/dist/models/UsersResponseData.d.ts.map +0 -1
- package/dist/models/UsersResponseData.js.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js.map +0 -1
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js.map +0 -1
|
@@ -0,0 +1,2881 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { BookmarksResponseFromJSON, } from '../models/BookmarksResponse';
|
|
25
|
+
import { CommunityAboutTimelineResponseFromJSON, } from '../models/CommunityAboutTimelineResponse';
|
|
26
|
+
import { CommunityDiscoveryTimelineResponseFromJSON, } from '../models/CommunityDiscoveryTimelineResponse';
|
|
27
|
+
import { CommunityMediaTimelineResponseFromJSON, } from '../models/CommunityMediaTimelineResponse';
|
|
28
|
+
import { CommunityTweetsTimelineResponseFromJSON, } from '../models/CommunityTweetsTimelineResponse';
|
|
29
|
+
import { ConnectTabTimelineResponseFromJSON, } from '../models/ConnectTabTimelineResponse';
|
|
30
|
+
import { ExplorePageResponseFromJSON, } from '../models/ExplorePageResponse';
|
|
31
|
+
import { GenericTimelineByIdResponseFromJSON, } from '../models/GenericTimelineByIdResponse';
|
|
32
|
+
import { ListLatestTweetsTimelineResponseFromJSON, } from '../models/ListLatestTweetsTimelineResponse';
|
|
33
|
+
import { NotificationsTimelineResponseFromJSON, } from '../models/NotificationsTimelineResponse';
|
|
34
|
+
import { SearchTimelineResponseFromJSON, } from '../models/SearchTimelineResponse';
|
|
35
|
+
import { TimelineResponseFromJSON, } from '../models/TimelineResponse';
|
|
36
|
+
import { TweetDetailResponseFromJSON, } from '../models/TweetDetailResponse';
|
|
37
|
+
import { UserHighlightsTweetsResponseFromJSON, } from '../models/UserHighlightsTweetsResponse';
|
|
38
|
+
import { UserTweetsResponseFromJSON, } from '../models/UserTweetsResponse';
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export class TweetApi extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for getBookmarks without sending the request
|
|
45
|
+
*/
|
|
46
|
+
getBookmarksRequestOpts(requestParameters) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
49
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBookmarks().');
|
|
50
|
+
}
|
|
51
|
+
if (requestParameters['variables'] == null) {
|
|
52
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBookmarks().');
|
|
53
|
+
}
|
|
54
|
+
if (requestParameters['features'] == null) {
|
|
55
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBookmarks().');
|
|
56
|
+
}
|
|
57
|
+
const queryParameters = {};
|
|
58
|
+
if (requestParameters['variables'] != null) {
|
|
59
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
60
|
+
}
|
|
61
|
+
if (requestParameters['features'] != null) {
|
|
62
|
+
queryParameters['features'] = requestParameters['features'];
|
|
63
|
+
}
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
67
|
+
}
|
|
68
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
70
|
+
}
|
|
71
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
72
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
73
|
+
}
|
|
74
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
76
|
+
}
|
|
77
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
78
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
81
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
82
|
+
}
|
|
83
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
84
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
85
|
+
}
|
|
86
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
87
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
88
|
+
}
|
|
89
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
90
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
91
|
+
}
|
|
92
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
93
|
+
const token = this.configuration.accessToken;
|
|
94
|
+
const tokenString = yield token("BearerAuth", []);
|
|
95
|
+
if (tokenString) {
|
|
96
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
101
|
+
}
|
|
102
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
104
|
+
}
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
107
|
+
}
|
|
108
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
110
|
+
}
|
|
111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
113
|
+
}
|
|
114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
116
|
+
}
|
|
117
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
118
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
119
|
+
}
|
|
120
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
121
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
122
|
+
}
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
125
|
+
}
|
|
126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
127
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
128
|
+
}
|
|
129
|
+
let urlPath = `/graphql/{pathQueryId}/Bookmarks`;
|
|
130
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
131
|
+
return {
|
|
132
|
+
path: urlPath,
|
|
133
|
+
method: 'GET',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* get bookmarks
|
|
141
|
+
*/
|
|
142
|
+
getBookmarksRaw(requestParameters, initOverrides) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
const requestOptions = yield this.getBookmarksRequestOpts(requestParameters);
|
|
145
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BookmarksResponseFromJSON(jsonValue));
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* get bookmarks
|
|
151
|
+
*/
|
|
152
|
+
getBookmarks(requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const response = yield this.getBookmarksRaw(requestParameters, initOverrides);
|
|
155
|
+
return yield response.value();
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Creates request options for getCommunityAboutTimeline without sending the request
|
|
160
|
+
*/
|
|
161
|
+
getCommunityAboutTimelineRequestOpts(requestParameters) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
164
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityAboutTimeline().');
|
|
165
|
+
}
|
|
166
|
+
if (requestParameters['variables'] == null) {
|
|
167
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityAboutTimeline().');
|
|
168
|
+
}
|
|
169
|
+
if (requestParameters['features'] == null) {
|
|
170
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityAboutTimeline().');
|
|
171
|
+
}
|
|
172
|
+
const queryParameters = {};
|
|
173
|
+
if (requestParameters['variables'] != null) {
|
|
174
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
175
|
+
}
|
|
176
|
+
if (requestParameters['features'] != null) {
|
|
177
|
+
queryParameters['features'] = requestParameters['features'];
|
|
178
|
+
}
|
|
179
|
+
const headerParameters = {};
|
|
180
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
181
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
182
|
+
}
|
|
183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
184
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
185
|
+
}
|
|
186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
187
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
188
|
+
}
|
|
189
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
190
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
191
|
+
}
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
194
|
+
}
|
|
195
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
196
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
197
|
+
}
|
|
198
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
199
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
200
|
+
}
|
|
201
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
202
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
203
|
+
}
|
|
204
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
205
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
206
|
+
}
|
|
207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
208
|
+
const token = this.configuration.accessToken;
|
|
209
|
+
const tokenString = yield token("BearerAuth", []);
|
|
210
|
+
if (tokenString) {
|
|
211
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
215
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
216
|
+
}
|
|
217
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
218
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
219
|
+
}
|
|
220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
221
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
222
|
+
}
|
|
223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
224
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
225
|
+
}
|
|
226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
228
|
+
}
|
|
229
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
230
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
231
|
+
}
|
|
232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
234
|
+
}
|
|
235
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
236
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
237
|
+
}
|
|
238
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
239
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
240
|
+
}
|
|
241
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
242
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
243
|
+
}
|
|
244
|
+
let urlPath = `/graphql/{pathQueryId}/CommunityAboutTimeline`;
|
|
245
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
246
|
+
return {
|
|
247
|
+
path: urlPath,
|
|
248
|
+
method: 'GET',
|
|
249
|
+
headers: headerParameters,
|
|
250
|
+
query: queryParameters,
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* get about of community
|
|
256
|
+
*/
|
|
257
|
+
getCommunityAboutTimelineRaw(requestParameters, initOverrides) {
|
|
258
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
259
|
+
const requestOptions = yield this.getCommunityAboutTimelineRequestOpts(requestParameters);
|
|
260
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
261
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunityAboutTimelineResponseFromJSON(jsonValue));
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* get about of community
|
|
266
|
+
*/
|
|
267
|
+
getCommunityAboutTimeline(requestParameters, initOverrides) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
const response = yield this.getCommunityAboutTimelineRaw(requestParameters, initOverrides);
|
|
270
|
+
return yield response.value();
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Creates request options for getCommunityDiscoveryTimeline without sending the request
|
|
275
|
+
*/
|
|
276
|
+
getCommunityDiscoveryTimelineRequestOpts(requestParameters) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
279
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityDiscoveryTimeline().');
|
|
280
|
+
}
|
|
281
|
+
if (requestParameters['variables'] == null) {
|
|
282
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityDiscoveryTimeline().');
|
|
283
|
+
}
|
|
284
|
+
if (requestParameters['features'] == null) {
|
|
285
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityDiscoveryTimeline().');
|
|
286
|
+
}
|
|
287
|
+
const queryParameters = {};
|
|
288
|
+
if (requestParameters['variables'] != null) {
|
|
289
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
290
|
+
}
|
|
291
|
+
if (requestParameters['features'] != null) {
|
|
292
|
+
queryParameters['features'] = requestParameters['features'];
|
|
293
|
+
}
|
|
294
|
+
const headerParameters = {};
|
|
295
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
296
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
297
|
+
}
|
|
298
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
299
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
300
|
+
}
|
|
301
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
302
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
303
|
+
}
|
|
304
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
305
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
306
|
+
}
|
|
307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
309
|
+
}
|
|
310
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
311
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
312
|
+
}
|
|
313
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
314
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
315
|
+
}
|
|
316
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
318
|
+
}
|
|
319
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
320
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
321
|
+
}
|
|
322
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
323
|
+
const token = this.configuration.accessToken;
|
|
324
|
+
const tokenString = yield token("BearerAuth", []);
|
|
325
|
+
if (tokenString) {
|
|
326
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
330
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
331
|
+
}
|
|
332
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
333
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
334
|
+
}
|
|
335
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
336
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
337
|
+
}
|
|
338
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
339
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
340
|
+
}
|
|
341
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
342
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
343
|
+
}
|
|
344
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
345
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
346
|
+
}
|
|
347
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
348
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
349
|
+
}
|
|
350
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
351
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
352
|
+
}
|
|
353
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
354
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
355
|
+
}
|
|
356
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
357
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
358
|
+
}
|
|
359
|
+
let urlPath = `/graphql/{pathQueryId}/CommunityDiscoveryTimeline`;
|
|
360
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
361
|
+
return {
|
|
362
|
+
path: urlPath,
|
|
363
|
+
method: 'GET',
|
|
364
|
+
headers: headerParameters,
|
|
365
|
+
query: queryParameters,
|
|
366
|
+
};
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* get the communities discovery timeline
|
|
371
|
+
*/
|
|
372
|
+
getCommunityDiscoveryTimelineRaw(requestParameters, initOverrides) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
const requestOptions = yield this.getCommunityDiscoveryTimelineRequestOpts(requestParameters);
|
|
375
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunityDiscoveryTimelineResponseFromJSON(jsonValue));
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* get the communities discovery timeline
|
|
381
|
+
*/
|
|
382
|
+
getCommunityDiscoveryTimeline(requestParameters, initOverrides) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
const response = yield this.getCommunityDiscoveryTimelineRaw(requestParameters, initOverrides);
|
|
385
|
+
return yield response.value();
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Creates request options for getCommunityMediaTimeline without sending the request
|
|
390
|
+
*/
|
|
391
|
+
getCommunityMediaTimelineRequestOpts(requestParameters) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
394
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityMediaTimeline().');
|
|
395
|
+
}
|
|
396
|
+
if (requestParameters['variables'] == null) {
|
|
397
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityMediaTimeline().');
|
|
398
|
+
}
|
|
399
|
+
if (requestParameters['features'] == null) {
|
|
400
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityMediaTimeline().');
|
|
401
|
+
}
|
|
402
|
+
const queryParameters = {};
|
|
403
|
+
if (requestParameters['variables'] != null) {
|
|
404
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
405
|
+
}
|
|
406
|
+
if (requestParameters['features'] != null) {
|
|
407
|
+
queryParameters['features'] = requestParameters['features'];
|
|
408
|
+
}
|
|
409
|
+
const headerParameters = {};
|
|
410
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
411
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
412
|
+
}
|
|
413
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
414
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
415
|
+
}
|
|
416
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
417
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
418
|
+
}
|
|
419
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
420
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
421
|
+
}
|
|
422
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
423
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
424
|
+
}
|
|
425
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
426
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
427
|
+
}
|
|
428
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
429
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
430
|
+
}
|
|
431
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
432
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
433
|
+
}
|
|
434
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
435
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
436
|
+
}
|
|
437
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
438
|
+
const token = this.configuration.accessToken;
|
|
439
|
+
const tokenString = yield token("BearerAuth", []);
|
|
440
|
+
if (tokenString) {
|
|
441
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
445
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
446
|
+
}
|
|
447
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
448
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
449
|
+
}
|
|
450
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
451
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
452
|
+
}
|
|
453
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
454
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
455
|
+
}
|
|
456
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
457
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
458
|
+
}
|
|
459
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
460
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
461
|
+
}
|
|
462
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
463
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
464
|
+
}
|
|
465
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
466
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
467
|
+
}
|
|
468
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
469
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
470
|
+
}
|
|
471
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
472
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
473
|
+
}
|
|
474
|
+
let urlPath = `/graphql/{pathQueryId}/CommunityMediaTimeline`;
|
|
475
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
476
|
+
return {
|
|
477
|
+
path: urlPath,
|
|
478
|
+
method: 'GET',
|
|
479
|
+
headers: headerParameters,
|
|
480
|
+
query: queryParameters,
|
|
481
|
+
};
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* get media list of community
|
|
486
|
+
*/
|
|
487
|
+
getCommunityMediaTimelineRaw(requestParameters, initOverrides) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
const requestOptions = yield this.getCommunityMediaTimelineRequestOpts(requestParameters);
|
|
490
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
491
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunityMediaTimelineResponseFromJSON(jsonValue));
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* get media list of community
|
|
496
|
+
*/
|
|
497
|
+
getCommunityMediaTimeline(requestParameters, initOverrides) {
|
|
498
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
|
+
const response = yield this.getCommunityMediaTimelineRaw(requestParameters, initOverrides);
|
|
500
|
+
return yield response.value();
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Creates request options for getCommunityTweetsTimeline without sending the request
|
|
505
|
+
*/
|
|
506
|
+
getCommunityTweetsTimelineRequestOpts(requestParameters) {
|
|
507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
509
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityTweetsTimeline().');
|
|
510
|
+
}
|
|
511
|
+
if (requestParameters['variables'] == null) {
|
|
512
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityTweetsTimeline().');
|
|
513
|
+
}
|
|
514
|
+
if (requestParameters['features'] == null) {
|
|
515
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityTweetsTimeline().');
|
|
516
|
+
}
|
|
517
|
+
const queryParameters = {};
|
|
518
|
+
if (requestParameters['variables'] != null) {
|
|
519
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
520
|
+
}
|
|
521
|
+
if (requestParameters['features'] != null) {
|
|
522
|
+
queryParameters['features'] = requestParameters['features'];
|
|
523
|
+
}
|
|
524
|
+
const headerParameters = {};
|
|
525
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
526
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
527
|
+
}
|
|
528
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
529
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
530
|
+
}
|
|
531
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
532
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
533
|
+
}
|
|
534
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
535
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
536
|
+
}
|
|
537
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
538
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
539
|
+
}
|
|
540
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
541
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
542
|
+
}
|
|
543
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
544
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
545
|
+
}
|
|
546
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
547
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
548
|
+
}
|
|
549
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
550
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
551
|
+
}
|
|
552
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
553
|
+
const token = this.configuration.accessToken;
|
|
554
|
+
const tokenString = yield token("BearerAuth", []);
|
|
555
|
+
if (tokenString) {
|
|
556
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
560
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
561
|
+
}
|
|
562
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
563
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
564
|
+
}
|
|
565
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
566
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
567
|
+
}
|
|
568
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
569
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
570
|
+
}
|
|
571
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
572
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
573
|
+
}
|
|
574
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
575
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
576
|
+
}
|
|
577
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
578
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
579
|
+
}
|
|
580
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
581
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
582
|
+
}
|
|
583
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
584
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
585
|
+
}
|
|
586
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
587
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
588
|
+
}
|
|
589
|
+
let urlPath = `/graphql/{pathQueryId}/CommunityTweetsTimeline`;
|
|
590
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
591
|
+
return {
|
|
592
|
+
path: urlPath,
|
|
593
|
+
method: 'GET',
|
|
594
|
+
headers: headerParameters,
|
|
595
|
+
query: queryParameters,
|
|
596
|
+
};
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* get tweet list of community. rankingMode:[Recency, Relevance]
|
|
601
|
+
*/
|
|
602
|
+
getCommunityTweetsTimelineRaw(requestParameters, initOverrides) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
+
const requestOptions = yield this.getCommunityTweetsTimelineRequestOpts(requestParameters);
|
|
605
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
606
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunityTweetsTimelineResponseFromJSON(jsonValue));
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* get tweet list of community. rankingMode:[Recency, Relevance]
|
|
611
|
+
*/
|
|
612
|
+
getCommunityTweetsTimeline(requestParameters, initOverrides) {
|
|
613
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
614
|
+
const response = yield this.getCommunityTweetsTimelineRaw(requestParameters, initOverrides);
|
|
615
|
+
return yield response.value();
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Creates request options for getConnectTabTimeline without sending the request
|
|
620
|
+
*/
|
|
621
|
+
getConnectTabTimelineRequestOpts(requestParameters) {
|
|
622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
623
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
624
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getConnectTabTimeline().');
|
|
625
|
+
}
|
|
626
|
+
if (requestParameters['variables'] == null) {
|
|
627
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getConnectTabTimeline().');
|
|
628
|
+
}
|
|
629
|
+
if (requestParameters['features'] == null) {
|
|
630
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getConnectTabTimeline().');
|
|
631
|
+
}
|
|
632
|
+
const queryParameters = {};
|
|
633
|
+
if (requestParameters['variables'] != null) {
|
|
634
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
635
|
+
}
|
|
636
|
+
if (requestParameters['features'] != null) {
|
|
637
|
+
queryParameters['features'] = requestParameters['features'];
|
|
638
|
+
}
|
|
639
|
+
const headerParameters = {};
|
|
640
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
641
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
642
|
+
}
|
|
643
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
644
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
645
|
+
}
|
|
646
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
647
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
648
|
+
}
|
|
649
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
650
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
651
|
+
}
|
|
652
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
653
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
654
|
+
}
|
|
655
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
656
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
657
|
+
}
|
|
658
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
659
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
660
|
+
}
|
|
661
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
662
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
663
|
+
}
|
|
664
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
665
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
666
|
+
}
|
|
667
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
668
|
+
const token = this.configuration.accessToken;
|
|
669
|
+
const tokenString = yield token("BearerAuth", []);
|
|
670
|
+
if (tokenString) {
|
|
671
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
675
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
676
|
+
}
|
|
677
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
678
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
679
|
+
}
|
|
680
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
681
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
682
|
+
}
|
|
683
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
684
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
685
|
+
}
|
|
686
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
687
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
688
|
+
}
|
|
689
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
690
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
691
|
+
}
|
|
692
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
693
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
694
|
+
}
|
|
695
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
696
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
697
|
+
}
|
|
698
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
699
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
700
|
+
}
|
|
701
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
702
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
703
|
+
}
|
|
704
|
+
let urlPath = `/graphql/{pathQueryId}/ConnectTabTimeline`;
|
|
705
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
706
|
+
return {
|
|
707
|
+
path: urlPath,
|
|
708
|
+
method: 'GET',
|
|
709
|
+
headers: headerParameters,
|
|
710
|
+
query: queryParameters,
|
|
711
|
+
};
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* get the Connect tab (who to follow) timeline
|
|
716
|
+
*/
|
|
717
|
+
getConnectTabTimelineRaw(requestParameters, initOverrides) {
|
|
718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
719
|
+
const requestOptions = yield this.getConnectTabTimelineRequestOpts(requestParameters);
|
|
720
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
721
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectTabTimelineResponseFromJSON(jsonValue));
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* get the Connect tab (who to follow) timeline
|
|
726
|
+
*/
|
|
727
|
+
getConnectTabTimeline(requestParameters, initOverrides) {
|
|
728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
729
|
+
const response = yield this.getConnectTabTimelineRaw(requestParameters, initOverrides);
|
|
730
|
+
return yield response.value();
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Creates request options for getExplorePage without sending the request
|
|
735
|
+
*/
|
|
736
|
+
getExplorePageRequestOpts(requestParameters) {
|
|
737
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
738
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
739
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getExplorePage().');
|
|
740
|
+
}
|
|
741
|
+
if (requestParameters['variables'] == null) {
|
|
742
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getExplorePage().');
|
|
743
|
+
}
|
|
744
|
+
if (requestParameters['features'] == null) {
|
|
745
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getExplorePage().');
|
|
746
|
+
}
|
|
747
|
+
const queryParameters = {};
|
|
748
|
+
if (requestParameters['variables'] != null) {
|
|
749
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
750
|
+
}
|
|
751
|
+
if (requestParameters['features'] != null) {
|
|
752
|
+
queryParameters['features'] = requestParameters['features'];
|
|
753
|
+
}
|
|
754
|
+
const headerParameters = {};
|
|
755
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
756
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
757
|
+
}
|
|
758
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
759
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
760
|
+
}
|
|
761
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
762
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
763
|
+
}
|
|
764
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
765
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
766
|
+
}
|
|
767
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
768
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
769
|
+
}
|
|
770
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
771
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
772
|
+
}
|
|
773
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
774
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
775
|
+
}
|
|
776
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
777
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
778
|
+
}
|
|
779
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
780
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
781
|
+
}
|
|
782
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
783
|
+
const token = this.configuration.accessToken;
|
|
784
|
+
const tokenString = yield token("BearerAuth", []);
|
|
785
|
+
if (tokenString) {
|
|
786
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
790
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
791
|
+
}
|
|
792
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
793
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
794
|
+
}
|
|
795
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
796
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
797
|
+
}
|
|
798
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
799
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
800
|
+
}
|
|
801
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
802
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
803
|
+
}
|
|
804
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
805
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
806
|
+
}
|
|
807
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
808
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
809
|
+
}
|
|
810
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
811
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
812
|
+
}
|
|
813
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
814
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
815
|
+
}
|
|
816
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
817
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
818
|
+
}
|
|
819
|
+
let urlPath = `/graphql/{pathQueryId}/ExplorePage`;
|
|
820
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
821
|
+
return {
|
|
822
|
+
path: urlPath,
|
|
823
|
+
method: 'GET',
|
|
824
|
+
headers: headerParameters,
|
|
825
|
+
query: queryParameters,
|
|
826
|
+
};
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* get the explore page (segmented timelines)
|
|
831
|
+
*/
|
|
832
|
+
getExplorePageRaw(requestParameters, initOverrides) {
|
|
833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
834
|
+
const requestOptions = yield this.getExplorePageRequestOpts(requestParameters);
|
|
835
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
836
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExplorePageResponseFromJSON(jsonValue));
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* get the explore page (segmented timelines)
|
|
841
|
+
*/
|
|
842
|
+
getExplorePage(requestParameters, initOverrides) {
|
|
843
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
844
|
+
const response = yield this.getExplorePageRaw(requestParameters, initOverrides);
|
|
845
|
+
return yield response.value();
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Creates request options for getGenericTimelineById without sending the request
|
|
850
|
+
*/
|
|
851
|
+
getGenericTimelineByIdRequestOpts(requestParameters) {
|
|
852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
853
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
854
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getGenericTimelineById().');
|
|
855
|
+
}
|
|
856
|
+
if (requestParameters['variables'] == null) {
|
|
857
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getGenericTimelineById().');
|
|
858
|
+
}
|
|
859
|
+
if (requestParameters['features'] == null) {
|
|
860
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getGenericTimelineById().');
|
|
861
|
+
}
|
|
862
|
+
const queryParameters = {};
|
|
863
|
+
if (requestParameters['variables'] != null) {
|
|
864
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
865
|
+
}
|
|
866
|
+
if (requestParameters['features'] != null) {
|
|
867
|
+
queryParameters['features'] = requestParameters['features'];
|
|
868
|
+
}
|
|
869
|
+
const headerParameters = {};
|
|
870
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
871
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
872
|
+
}
|
|
873
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
874
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
875
|
+
}
|
|
876
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
877
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
878
|
+
}
|
|
879
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
880
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
881
|
+
}
|
|
882
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
883
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
884
|
+
}
|
|
885
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
886
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
887
|
+
}
|
|
888
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
889
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
890
|
+
}
|
|
891
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
892
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
893
|
+
}
|
|
894
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
895
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
896
|
+
}
|
|
897
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
898
|
+
const token = this.configuration.accessToken;
|
|
899
|
+
const tokenString = yield token("BearerAuth", []);
|
|
900
|
+
if (tokenString) {
|
|
901
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
905
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
906
|
+
}
|
|
907
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
908
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
909
|
+
}
|
|
910
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
911
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
912
|
+
}
|
|
913
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
914
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
915
|
+
}
|
|
916
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
917
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
918
|
+
}
|
|
919
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
920
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
921
|
+
}
|
|
922
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
923
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
924
|
+
}
|
|
925
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
926
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
927
|
+
}
|
|
928
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
929
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
930
|
+
}
|
|
931
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
932
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
933
|
+
}
|
|
934
|
+
let urlPath = `/graphql/{pathQueryId}/GenericTimelineById`;
|
|
935
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
936
|
+
return {
|
|
937
|
+
path: urlPath,
|
|
938
|
+
method: 'GET',
|
|
939
|
+
headers: headerParameters,
|
|
940
|
+
query: queryParameters,
|
|
941
|
+
};
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* get a generic timeline by its id (explore tabs)
|
|
946
|
+
*/
|
|
947
|
+
getGenericTimelineByIdRaw(requestParameters, initOverrides) {
|
|
948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
949
|
+
const requestOptions = yield this.getGenericTimelineByIdRequestOpts(requestParameters);
|
|
950
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
951
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericTimelineByIdResponseFromJSON(jsonValue));
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* get a generic timeline by its id (explore tabs)
|
|
956
|
+
*/
|
|
957
|
+
getGenericTimelineById(requestParameters, initOverrides) {
|
|
958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
959
|
+
const response = yield this.getGenericTimelineByIdRaw(requestParameters, initOverrides);
|
|
960
|
+
return yield response.value();
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* Creates request options for getHomeLatestTimeline without sending the request
|
|
965
|
+
*/
|
|
966
|
+
getHomeLatestTimelineRequestOpts(requestParameters) {
|
|
967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
968
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
969
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getHomeLatestTimeline().');
|
|
970
|
+
}
|
|
971
|
+
if (requestParameters['variables'] == null) {
|
|
972
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getHomeLatestTimeline().');
|
|
973
|
+
}
|
|
974
|
+
if (requestParameters['features'] == null) {
|
|
975
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getHomeLatestTimeline().');
|
|
976
|
+
}
|
|
977
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
978
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getHomeLatestTimeline().');
|
|
979
|
+
}
|
|
980
|
+
const queryParameters = {};
|
|
981
|
+
if (requestParameters['variables'] != null) {
|
|
982
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
983
|
+
}
|
|
984
|
+
if (requestParameters['features'] != null) {
|
|
985
|
+
queryParameters['features'] = requestParameters['features'];
|
|
986
|
+
}
|
|
987
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
988
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
989
|
+
}
|
|
990
|
+
const headerParameters = {};
|
|
991
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
992
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
993
|
+
}
|
|
994
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
995
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
996
|
+
}
|
|
997
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
998
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
999
|
+
}
|
|
1000
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1001
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1002
|
+
}
|
|
1003
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1004
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1005
|
+
}
|
|
1006
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1007
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1008
|
+
}
|
|
1009
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1010
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1011
|
+
}
|
|
1012
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1013
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1014
|
+
}
|
|
1015
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1016
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1017
|
+
}
|
|
1018
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1019
|
+
const token = this.configuration.accessToken;
|
|
1020
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1021
|
+
if (tokenString) {
|
|
1022
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1026
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1027
|
+
}
|
|
1028
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1029
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1030
|
+
}
|
|
1031
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1032
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1033
|
+
}
|
|
1034
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1035
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1036
|
+
}
|
|
1037
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1038
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1039
|
+
}
|
|
1040
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1041
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1042
|
+
}
|
|
1043
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1044
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1045
|
+
}
|
|
1046
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1047
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1048
|
+
}
|
|
1049
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1050
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1051
|
+
}
|
|
1052
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1053
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1054
|
+
}
|
|
1055
|
+
let urlPath = `/graphql/{pathQueryId}/HomeLatestTimeline`;
|
|
1056
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1057
|
+
return {
|
|
1058
|
+
path: urlPath,
|
|
1059
|
+
method: 'GET',
|
|
1060
|
+
headers: headerParameters,
|
|
1061
|
+
query: queryParameters,
|
|
1062
|
+
};
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* get tweet list of timeline
|
|
1067
|
+
*/
|
|
1068
|
+
getHomeLatestTimelineRaw(requestParameters, initOverrides) {
|
|
1069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1070
|
+
const requestOptions = yield this.getHomeLatestTimelineRequestOpts(requestParameters);
|
|
1071
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1072
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TimelineResponseFromJSON(jsonValue));
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* get tweet list of timeline
|
|
1077
|
+
*/
|
|
1078
|
+
getHomeLatestTimeline(requestParameters, initOverrides) {
|
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1080
|
+
const response = yield this.getHomeLatestTimelineRaw(requestParameters, initOverrides);
|
|
1081
|
+
return yield response.value();
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Creates request options for getHomeTimeline without sending the request
|
|
1086
|
+
*/
|
|
1087
|
+
getHomeTimelineRequestOpts(requestParameters) {
|
|
1088
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1089
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1090
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getHomeTimeline().');
|
|
1091
|
+
}
|
|
1092
|
+
if (requestParameters['variables'] == null) {
|
|
1093
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getHomeTimeline().');
|
|
1094
|
+
}
|
|
1095
|
+
if (requestParameters['features'] == null) {
|
|
1096
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getHomeTimeline().');
|
|
1097
|
+
}
|
|
1098
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
1099
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getHomeTimeline().');
|
|
1100
|
+
}
|
|
1101
|
+
const queryParameters = {};
|
|
1102
|
+
if (requestParameters['variables'] != null) {
|
|
1103
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1104
|
+
}
|
|
1105
|
+
if (requestParameters['features'] != null) {
|
|
1106
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1107
|
+
}
|
|
1108
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
1109
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
1110
|
+
}
|
|
1111
|
+
const headerParameters = {};
|
|
1112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1113
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1114
|
+
}
|
|
1115
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1116
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1117
|
+
}
|
|
1118
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1119
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1120
|
+
}
|
|
1121
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1122
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1123
|
+
}
|
|
1124
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1125
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1126
|
+
}
|
|
1127
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1128
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1129
|
+
}
|
|
1130
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1131
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1132
|
+
}
|
|
1133
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1134
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1135
|
+
}
|
|
1136
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1137
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1138
|
+
}
|
|
1139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1140
|
+
const token = this.configuration.accessToken;
|
|
1141
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1142
|
+
if (tokenString) {
|
|
1143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1147
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1148
|
+
}
|
|
1149
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1150
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1151
|
+
}
|
|
1152
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1153
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1154
|
+
}
|
|
1155
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1156
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1157
|
+
}
|
|
1158
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1159
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1160
|
+
}
|
|
1161
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1162
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1163
|
+
}
|
|
1164
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1165
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1166
|
+
}
|
|
1167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1168
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1169
|
+
}
|
|
1170
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1171
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1172
|
+
}
|
|
1173
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1174
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1175
|
+
}
|
|
1176
|
+
let urlPath = `/graphql/{pathQueryId}/HomeTimeline`;
|
|
1177
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1178
|
+
return {
|
|
1179
|
+
path: urlPath,
|
|
1180
|
+
method: 'GET',
|
|
1181
|
+
headers: headerParameters,
|
|
1182
|
+
query: queryParameters,
|
|
1183
|
+
};
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* get tweet list of timeline
|
|
1188
|
+
*/
|
|
1189
|
+
getHomeTimelineRaw(requestParameters, initOverrides) {
|
|
1190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1191
|
+
const requestOptions = yield this.getHomeTimelineRequestOpts(requestParameters);
|
|
1192
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TimelineResponseFromJSON(jsonValue));
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* get tweet list of timeline
|
|
1198
|
+
*/
|
|
1199
|
+
getHomeTimeline(requestParameters, initOverrides) {
|
|
1200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1201
|
+
const response = yield this.getHomeTimelineRaw(requestParameters, initOverrides);
|
|
1202
|
+
return yield response.value();
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Creates request options for getLikes without sending the request
|
|
1207
|
+
*/
|
|
1208
|
+
getLikesRequestOpts(requestParameters) {
|
|
1209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1210
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1211
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getLikes().');
|
|
1212
|
+
}
|
|
1213
|
+
if (requestParameters['variables'] == null) {
|
|
1214
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getLikes().');
|
|
1215
|
+
}
|
|
1216
|
+
if (requestParameters['features'] == null) {
|
|
1217
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getLikes().');
|
|
1218
|
+
}
|
|
1219
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
1220
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getLikes().');
|
|
1221
|
+
}
|
|
1222
|
+
const queryParameters = {};
|
|
1223
|
+
if (requestParameters['variables'] != null) {
|
|
1224
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1225
|
+
}
|
|
1226
|
+
if (requestParameters['features'] != null) {
|
|
1227
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1228
|
+
}
|
|
1229
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
1230
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
1231
|
+
}
|
|
1232
|
+
const headerParameters = {};
|
|
1233
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1234
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1235
|
+
}
|
|
1236
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1237
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1238
|
+
}
|
|
1239
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1240
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1241
|
+
}
|
|
1242
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1243
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1244
|
+
}
|
|
1245
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1246
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1247
|
+
}
|
|
1248
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1249
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1250
|
+
}
|
|
1251
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1252
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1253
|
+
}
|
|
1254
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1255
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1256
|
+
}
|
|
1257
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1258
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1259
|
+
}
|
|
1260
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1261
|
+
const token = this.configuration.accessToken;
|
|
1262
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1263
|
+
if (tokenString) {
|
|
1264
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1268
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1269
|
+
}
|
|
1270
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1271
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1272
|
+
}
|
|
1273
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1274
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1275
|
+
}
|
|
1276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1277
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1278
|
+
}
|
|
1279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1280
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1281
|
+
}
|
|
1282
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1283
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1284
|
+
}
|
|
1285
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1286
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1287
|
+
}
|
|
1288
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1289
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1290
|
+
}
|
|
1291
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1292
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1293
|
+
}
|
|
1294
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1295
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1296
|
+
}
|
|
1297
|
+
let urlPath = `/graphql/{pathQueryId}/Likes`;
|
|
1298
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1299
|
+
return {
|
|
1300
|
+
path: urlPath,
|
|
1301
|
+
method: 'GET',
|
|
1302
|
+
headers: headerParameters,
|
|
1303
|
+
query: queryParameters,
|
|
1304
|
+
};
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* get user likes tweets
|
|
1309
|
+
*/
|
|
1310
|
+
getLikesRaw(requestParameters, initOverrides) {
|
|
1311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1312
|
+
const requestOptions = yield this.getLikesRequestOpts(requestParameters);
|
|
1313
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1314
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* get user likes tweets
|
|
1319
|
+
*/
|
|
1320
|
+
getLikes(requestParameters, initOverrides) {
|
|
1321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1322
|
+
const response = yield this.getLikesRaw(requestParameters, initOverrides);
|
|
1323
|
+
return yield response.value();
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Creates request options for getListLatestTweetsTimeline without sending the request
|
|
1328
|
+
*/
|
|
1329
|
+
getListLatestTweetsTimelineRequestOpts(requestParameters) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1331
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1332
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getListLatestTweetsTimeline().');
|
|
1333
|
+
}
|
|
1334
|
+
if (requestParameters['variables'] == null) {
|
|
1335
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getListLatestTweetsTimeline().');
|
|
1336
|
+
}
|
|
1337
|
+
if (requestParameters['features'] == null) {
|
|
1338
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getListLatestTweetsTimeline().');
|
|
1339
|
+
}
|
|
1340
|
+
const queryParameters = {};
|
|
1341
|
+
if (requestParameters['variables'] != null) {
|
|
1342
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1343
|
+
}
|
|
1344
|
+
if (requestParameters['features'] != null) {
|
|
1345
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1346
|
+
}
|
|
1347
|
+
const headerParameters = {};
|
|
1348
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1349
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1350
|
+
}
|
|
1351
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1352
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1353
|
+
}
|
|
1354
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1355
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1356
|
+
}
|
|
1357
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1358
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1359
|
+
}
|
|
1360
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1361
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1362
|
+
}
|
|
1363
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1364
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1365
|
+
}
|
|
1366
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1367
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1368
|
+
}
|
|
1369
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1370
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1371
|
+
}
|
|
1372
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1373
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1374
|
+
}
|
|
1375
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1376
|
+
const token = this.configuration.accessToken;
|
|
1377
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1378
|
+
if (tokenString) {
|
|
1379
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1383
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1384
|
+
}
|
|
1385
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1386
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1387
|
+
}
|
|
1388
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1389
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1390
|
+
}
|
|
1391
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1392
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1393
|
+
}
|
|
1394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1395
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1396
|
+
}
|
|
1397
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1398
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1399
|
+
}
|
|
1400
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1401
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1402
|
+
}
|
|
1403
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1404
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1405
|
+
}
|
|
1406
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1407
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1408
|
+
}
|
|
1409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1410
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1411
|
+
}
|
|
1412
|
+
let urlPath = `/graphql/{pathQueryId}/ListLatestTweetsTimeline`;
|
|
1413
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1414
|
+
return {
|
|
1415
|
+
path: urlPath,
|
|
1416
|
+
method: 'GET',
|
|
1417
|
+
headers: headerParameters,
|
|
1418
|
+
query: queryParameters,
|
|
1419
|
+
};
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* get tweet list of timeline
|
|
1424
|
+
*/
|
|
1425
|
+
getListLatestTweetsTimelineRaw(requestParameters, initOverrides) {
|
|
1426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1427
|
+
const requestOptions = yield this.getListLatestTweetsTimelineRequestOpts(requestParameters);
|
|
1428
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1429
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListLatestTweetsTimelineResponseFromJSON(jsonValue));
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* get tweet list of timeline
|
|
1434
|
+
*/
|
|
1435
|
+
getListLatestTweetsTimeline(requestParameters, initOverrides) {
|
|
1436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1437
|
+
const response = yield this.getListLatestTweetsTimelineRaw(requestParameters, initOverrides);
|
|
1438
|
+
return yield response.value();
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Creates request options for getNotificationsTimeline without sending the request
|
|
1443
|
+
*/
|
|
1444
|
+
getNotificationsTimelineRequestOpts(requestParameters) {
|
|
1445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1446
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1447
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getNotificationsTimeline().');
|
|
1448
|
+
}
|
|
1449
|
+
if (requestParameters['variables'] == null) {
|
|
1450
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getNotificationsTimeline().');
|
|
1451
|
+
}
|
|
1452
|
+
if (requestParameters['features'] == null) {
|
|
1453
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getNotificationsTimeline().');
|
|
1454
|
+
}
|
|
1455
|
+
const queryParameters = {};
|
|
1456
|
+
if (requestParameters['variables'] != null) {
|
|
1457
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1458
|
+
}
|
|
1459
|
+
if (requestParameters['features'] != null) {
|
|
1460
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1461
|
+
}
|
|
1462
|
+
const headerParameters = {};
|
|
1463
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1464
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1465
|
+
}
|
|
1466
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1467
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1468
|
+
}
|
|
1469
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1470
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1471
|
+
}
|
|
1472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1473
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1474
|
+
}
|
|
1475
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1476
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1477
|
+
}
|
|
1478
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1479
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1480
|
+
}
|
|
1481
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1482
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1483
|
+
}
|
|
1484
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1485
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1486
|
+
}
|
|
1487
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1488
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1489
|
+
}
|
|
1490
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1491
|
+
const token = this.configuration.accessToken;
|
|
1492
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1493
|
+
if (tokenString) {
|
|
1494
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1498
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1499
|
+
}
|
|
1500
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1501
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1502
|
+
}
|
|
1503
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1504
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1505
|
+
}
|
|
1506
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1507
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1508
|
+
}
|
|
1509
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1510
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1511
|
+
}
|
|
1512
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1513
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1514
|
+
}
|
|
1515
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1516
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1517
|
+
}
|
|
1518
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1519
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1520
|
+
}
|
|
1521
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1522
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1523
|
+
}
|
|
1524
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1525
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1526
|
+
}
|
|
1527
|
+
let urlPath = `/graphql/{pathQueryId}/NotificationsTimeline`;
|
|
1528
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1529
|
+
return {
|
|
1530
|
+
path: urlPath,
|
|
1531
|
+
method: 'GET',
|
|
1532
|
+
headers: headerParameters,
|
|
1533
|
+
query: queryParameters,
|
|
1534
|
+
};
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
/**
|
|
1538
|
+
* get notification list. timeline_type:[All, Verified, Mentions]
|
|
1539
|
+
*/
|
|
1540
|
+
getNotificationsTimelineRaw(requestParameters, initOverrides) {
|
|
1541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1542
|
+
const requestOptions = yield this.getNotificationsTimelineRequestOpts(requestParameters);
|
|
1543
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1544
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationsTimelineResponseFromJSON(jsonValue));
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* get notification list. timeline_type:[All, Verified, Mentions]
|
|
1549
|
+
*/
|
|
1550
|
+
getNotificationsTimeline(requestParameters, initOverrides) {
|
|
1551
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1552
|
+
const response = yield this.getNotificationsTimelineRaw(requestParameters, initOverrides);
|
|
1553
|
+
return yield response.value();
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Creates request options for getSearchTimeline without sending the request
|
|
1558
|
+
*/
|
|
1559
|
+
getSearchTimelineRequestOpts(requestParameters) {
|
|
1560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1561
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1562
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getSearchTimeline().');
|
|
1563
|
+
}
|
|
1564
|
+
if (requestParameters['variables'] == null) {
|
|
1565
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getSearchTimeline().');
|
|
1566
|
+
}
|
|
1567
|
+
if (requestParameters['features'] == null) {
|
|
1568
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getSearchTimeline().');
|
|
1569
|
+
}
|
|
1570
|
+
const queryParameters = {};
|
|
1571
|
+
if (requestParameters['variables'] != null) {
|
|
1572
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1573
|
+
}
|
|
1574
|
+
if (requestParameters['features'] != null) {
|
|
1575
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1576
|
+
}
|
|
1577
|
+
const headerParameters = {};
|
|
1578
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1579
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1580
|
+
}
|
|
1581
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1582
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1583
|
+
}
|
|
1584
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1585
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1586
|
+
}
|
|
1587
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1588
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1589
|
+
}
|
|
1590
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1591
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1592
|
+
}
|
|
1593
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1594
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1595
|
+
}
|
|
1596
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1597
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1598
|
+
}
|
|
1599
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1600
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1601
|
+
}
|
|
1602
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1603
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1604
|
+
}
|
|
1605
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1606
|
+
const token = this.configuration.accessToken;
|
|
1607
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1608
|
+
if (tokenString) {
|
|
1609
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1613
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1614
|
+
}
|
|
1615
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1616
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1617
|
+
}
|
|
1618
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1619
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1620
|
+
}
|
|
1621
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1622
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1623
|
+
}
|
|
1624
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1625
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1626
|
+
}
|
|
1627
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1628
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1629
|
+
}
|
|
1630
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1631
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1632
|
+
}
|
|
1633
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1634
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1635
|
+
}
|
|
1636
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1637
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1638
|
+
}
|
|
1639
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1640
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1641
|
+
}
|
|
1642
|
+
let urlPath = `/graphql/{pathQueryId}/SearchTimeline`;
|
|
1643
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1644
|
+
return {
|
|
1645
|
+
path: urlPath,
|
|
1646
|
+
method: 'GET',
|
|
1647
|
+
headers: headerParameters,
|
|
1648
|
+
query: queryParameters,
|
|
1649
|
+
};
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
1654
|
+
*/
|
|
1655
|
+
getSearchTimelineRaw(requestParameters, initOverrides) {
|
|
1656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1657
|
+
const requestOptions = yield this.getSearchTimelineRequestOpts(requestParameters);
|
|
1658
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1659
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchTimelineResponseFromJSON(jsonValue));
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
1664
|
+
*/
|
|
1665
|
+
getSearchTimeline(requestParameters, initOverrides) {
|
|
1666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1667
|
+
const response = yield this.getSearchTimelineRaw(requestParameters, initOverrides);
|
|
1668
|
+
return yield response.value();
|
|
1669
|
+
});
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Creates request options for getTweetDetail without sending the request
|
|
1673
|
+
*/
|
|
1674
|
+
getTweetDetailRequestOpts(requestParameters) {
|
|
1675
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1676
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1677
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getTweetDetail().');
|
|
1678
|
+
}
|
|
1679
|
+
if (requestParameters['variables'] == null) {
|
|
1680
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getTweetDetail().');
|
|
1681
|
+
}
|
|
1682
|
+
if (requestParameters['features'] == null) {
|
|
1683
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getTweetDetail().');
|
|
1684
|
+
}
|
|
1685
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
1686
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getTweetDetail().');
|
|
1687
|
+
}
|
|
1688
|
+
const queryParameters = {};
|
|
1689
|
+
if (requestParameters['variables'] != null) {
|
|
1690
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1691
|
+
}
|
|
1692
|
+
if (requestParameters['features'] != null) {
|
|
1693
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1694
|
+
}
|
|
1695
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
1696
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
1697
|
+
}
|
|
1698
|
+
const headerParameters = {};
|
|
1699
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1700
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1701
|
+
}
|
|
1702
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1703
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1704
|
+
}
|
|
1705
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1706
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1707
|
+
}
|
|
1708
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1709
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1710
|
+
}
|
|
1711
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1712
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1713
|
+
}
|
|
1714
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1715
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1716
|
+
}
|
|
1717
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1718
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1719
|
+
}
|
|
1720
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1721
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1722
|
+
}
|
|
1723
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1724
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1725
|
+
}
|
|
1726
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1727
|
+
const token = this.configuration.accessToken;
|
|
1728
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1729
|
+
if (tokenString) {
|
|
1730
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1734
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1735
|
+
}
|
|
1736
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1737
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1738
|
+
}
|
|
1739
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1740
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1741
|
+
}
|
|
1742
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1743
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1744
|
+
}
|
|
1745
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1746
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1747
|
+
}
|
|
1748
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1749
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1750
|
+
}
|
|
1751
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1752
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1753
|
+
}
|
|
1754
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1755
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1756
|
+
}
|
|
1757
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1758
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1759
|
+
}
|
|
1760
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1761
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1762
|
+
}
|
|
1763
|
+
let urlPath = `/graphql/{pathQueryId}/TweetDetail`;
|
|
1764
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1765
|
+
return {
|
|
1766
|
+
path: urlPath,
|
|
1767
|
+
method: 'GET',
|
|
1768
|
+
headers: headerParameters,
|
|
1769
|
+
query: queryParameters,
|
|
1770
|
+
};
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* get TweetDetail
|
|
1775
|
+
*/
|
|
1776
|
+
getTweetDetailRaw(requestParameters, initOverrides) {
|
|
1777
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1778
|
+
const requestOptions = yield this.getTweetDetailRequestOpts(requestParameters);
|
|
1779
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1780
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TweetDetailResponseFromJSON(jsonValue));
|
|
1781
|
+
});
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* get TweetDetail
|
|
1785
|
+
*/
|
|
1786
|
+
getTweetDetail(requestParameters, initOverrides) {
|
|
1787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1788
|
+
const response = yield this.getTweetDetailRaw(requestParameters, initOverrides);
|
|
1789
|
+
return yield response.value();
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* Creates request options for getUserHighlightsTweets without sending the request
|
|
1794
|
+
*/
|
|
1795
|
+
getUserHighlightsTweetsRequestOpts(requestParameters) {
|
|
1796
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1797
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1798
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserHighlightsTweets().');
|
|
1799
|
+
}
|
|
1800
|
+
if (requestParameters['variables'] == null) {
|
|
1801
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserHighlightsTweets().');
|
|
1802
|
+
}
|
|
1803
|
+
if (requestParameters['features'] == null) {
|
|
1804
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserHighlightsTweets().');
|
|
1805
|
+
}
|
|
1806
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
1807
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserHighlightsTweets().');
|
|
1808
|
+
}
|
|
1809
|
+
const queryParameters = {};
|
|
1810
|
+
if (requestParameters['variables'] != null) {
|
|
1811
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1812
|
+
}
|
|
1813
|
+
if (requestParameters['features'] != null) {
|
|
1814
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1815
|
+
}
|
|
1816
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
1817
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
1818
|
+
}
|
|
1819
|
+
const headerParameters = {};
|
|
1820
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1821
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1822
|
+
}
|
|
1823
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1824
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1825
|
+
}
|
|
1826
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1827
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1828
|
+
}
|
|
1829
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1830
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1831
|
+
}
|
|
1832
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1833
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1834
|
+
}
|
|
1835
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1836
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1837
|
+
}
|
|
1838
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1839
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1840
|
+
}
|
|
1841
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1842
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1843
|
+
}
|
|
1844
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1845
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1846
|
+
}
|
|
1847
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1848
|
+
const token = this.configuration.accessToken;
|
|
1849
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1850
|
+
if (tokenString) {
|
|
1851
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1855
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1856
|
+
}
|
|
1857
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1858
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1859
|
+
}
|
|
1860
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1861
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1862
|
+
}
|
|
1863
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1864
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1865
|
+
}
|
|
1866
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1867
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1868
|
+
}
|
|
1869
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1870
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1871
|
+
}
|
|
1872
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1873
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1874
|
+
}
|
|
1875
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1876
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1877
|
+
}
|
|
1878
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1879
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1880
|
+
}
|
|
1881
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1882
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1883
|
+
}
|
|
1884
|
+
let urlPath = `/graphql/{pathQueryId}/UserHighlightsTweets`;
|
|
1885
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1886
|
+
return {
|
|
1887
|
+
path: urlPath,
|
|
1888
|
+
method: 'GET',
|
|
1889
|
+
headers: headerParameters,
|
|
1890
|
+
query: queryParameters,
|
|
1891
|
+
};
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* get user highlights tweets
|
|
1896
|
+
*/
|
|
1897
|
+
getUserHighlightsTweetsRaw(requestParameters, initOverrides) {
|
|
1898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1899
|
+
const requestOptions = yield this.getUserHighlightsTweetsRequestOpts(requestParameters);
|
|
1900
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
1901
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserHighlightsTweetsResponseFromJSON(jsonValue));
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
/**
|
|
1905
|
+
* get user highlights tweets
|
|
1906
|
+
*/
|
|
1907
|
+
getUserHighlightsTweets(requestParameters, initOverrides) {
|
|
1908
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1909
|
+
const response = yield this.getUserHighlightsTweetsRaw(requestParameters, initOverrides);
|
|
1910
|
+
return yield response.value();
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Creates request options for getUserMedia without sending the request
|
|
1915
|
+
*/
|
|
1916
|
+
getUserMediaRequestOpts(requestParameters) {
|
|
1917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1918
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
1919
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserMedia().');
|
|
1920
|
+
}
|
|
1921
|
+
if (requestParameters['variables'] == null) {
|
|
1922
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserMedia().');
|
|
1923
|
+
}
|
|
1924
|
+
if (requestParameters['features'] == null) {
|
|
1925
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserMedia().');
|
|
1926
|
+
}
|
|
1927
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
1928
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserMedia().');
|
|
1929
|
+
}
|
|
1930
|
+
const queryParameters = {};
|
|
1931
|
+
if (requestParameters['variables'] != null) {
|
|
1932
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
1933
|
+
}
|
|
1934
|
+
if (requestParameters['features'] != null) {
|
|
1935
|
+
queryParameters['features'] = requestParameters['features'];
|
|
1936
|
+
}
|
|
1937
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
1938
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
1939
|
+
}
|
|
1940
|
+
const headerParameters = {};
|
|
1941
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1942
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
1943
|
+
}
|
|
1944
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1945
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
1946
|
+
}
|
|
1947
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1948
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
1949
|
+
}
|
|
1950
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1951
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
1952
|
+
}
|
|
1953
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1954
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
1955
|
+
}
|
|
1956
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1957
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1958
|
+
}
|
|
1959
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1960
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
1961
|
+
}
|
|
1962
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1963
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
1964
|
+
}
|
|
1965
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1966
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
1967
|
+
}
|
|
1968
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1969
|
+
const token = this.configuration.accessToken;
|
|
1970
|
+
const tokenString = yield token("BearerAuth", []);
|
|
1971
|
+
if (tokenString) {
|
|
1972
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1976
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
1977
|
+
}
|
|
1978
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1979
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1980
|
+
}
|
|
1981
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1982
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
1983
|
+
}
|
|
1984
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1985
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1986
|
+
}
|
|
1987
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1988
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1989
|
+
}
|
|
1990
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1991
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1992
|
+
}
|
|
1993
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1994
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1995
|
+
}
|
|
1996
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1997
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1998
|
+
}
|
|
1999
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2000
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2001
|
+
}
|
|
2002
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2003
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2004
|
+
}
|
|
2005
|
+
let urlPath = `/graphql/{pathQueryId}/UserMedia`;
|
|
2006
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2007
|
+
return {
|
|
2008
|
+
path: urlPath,
|
|
2009
|
+
method: 'GET',
|
|
2010
|
+
headers: headerParameters,
|
|
2011
|
+
query: queryParameters,
|
|
2012
|
+
};
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* get user media tweets
|
|
2017
|
+
*/
|
|
2018
|
+
getUserMediaRaw(requestParameters, initOverrides) {
|
|
2019
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2020
|
+
const requestOptions = yield this.getUserMediaRequestOpts(requestParameters);
|
|
2021
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2022
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2023
|
+
});
|
|
2024
|
+
}
|
|
2025
|
+
/**
|
|
2026
|
+
* get user media tweets
|
|
2027
|
+
*/
|
|
2028
|
+
getUserMedia(requestParameters, initOverrides) {
|
|
2029
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2030
|
+
const response = yield this.getUserMediaRaw(requestParameters, initOverrides);
|
|
2031
|
+
return yield response.value();
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
/**
|
|
2035
|
+
* Creates request options for getUserOriginalsTimeline without sending the request
|
|
2036
|
+
*/
|
|
2037
|
+
getUserOriginalsTimelineRequestOpts(requestParameters) {
|
|
2038
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2039
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2040
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserOriginalsTimeline().');
|
|
2041
|
+
}
|
|
2042
|
+
if (requestParameters['variables'] == null) {
|
|
2043
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserOriginalsTimeline().');
|
|
2044
|
+
}
|
|
2045
|
+
if (requestParameters['features'] == null) {
|
|
2046
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserOriginalsTimeline().');
|
|
2047
|
+
}
|
|
2048
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2049
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserOriginalsTimeline().');
|
|
2050
|
+
}
|
|
2051
|
+
const queryParameters = {};
|
|
2052
|
+
if (requestParameters['variables'] != null) {
|
|
2053
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2054
|
+
}
|
|
2055
|
+
if (requestParameters['features'] != null) {
|
|
2056
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2057
|
+
}
|
|
2058
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2059
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2060
|
+
}
|
|
2061
|
+
const headerParameters = {};
|
|
2062
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2063
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2064
|
+
}
|
|
2065
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2066
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2067
|
+
}
|
|
2068
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2069
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2070
|
+
}
|
|
2071
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2072
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2073
|
+
}
|
|
2074
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2075
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2076
|
+
}
|
|
2077
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2078
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2079
|
+
}
|
|
2080
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2081
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2082
|
+
}
|
|
2083
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2084
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2085
|
+
}
|
|
2086
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2087
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2088
|
+
}
|
|
2089
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2090
|
+
const token = this.configuration.accessToken;
|
|
2091
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2092
|
+
if (tokenString) {
|
|
2093
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2097
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2098
|
+
}
|
|
2099
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2100
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2101
|
+
}
|
|
2102
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2103
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2104
|
+
}
|
|
2105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2106
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2107
|
+
}
|
|
2108
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2109
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2110
|
+
}
|
|
2111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2112
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2113
|
+
}
|
|
2114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2115
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2116
|
+
}
|
|
2117
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2118
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2119
|
+
}
|
|
2120
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2121
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2122
|
+
}
|
|
2123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2124
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2125
|
+
}
|
|
2126
|
+
let urlPath = `/graphql/{pathQueryId}/UserOriginalsTimeline`;
|
|
2127
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2128
|
+
return {
|
|
2129
|
+
path: urlPath,
|
|
2130
|
+
method: 'GET',
|
|
2131
|
+
headers: headerParameters,
|
|
2132
|
+
query: queryParameters,
|
|
2133
|
+
};
|
|
2134
|
+
});
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2137
|
+
* get user tweets (profile posts tab)
|
|
2138
|
+
*/
|
|
2139
|
+
getUserOriginalsTimelineRaw(requestParameters, initOverrides) {
|
|
2140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2141
|
+
const requestOptions = yield this.getUserOriginalsTimelineRequestOpts(requestParameters);
|
|
2142
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* get user tweets (profile posts tab)
|
|
2148
|
+
*/
|
|
2149
|
+
getUserOriginalsTimeline(requestParameters, initOverrides) {
|
|
2150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2151
|
+
const response = yield this.getUserOriginalsTimelineRaw(requestParameters, initOverrides);
|
|
2152
|
+
return yield response.value();
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2155
|
+
/**
|
|
2156
|
+
* Creates request options for getUserRepliesTimeline without sending the request
|
|
2157
|
+
*/
|
|
2158
|
+
getUserRepliesTimelineRequestOpts(requestParameters) {
|
|
2159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2160
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2161
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserRepliesTimeline().');
|
|
2162
|
+
}
|
|
2163
|
+
if (requestParameters['variables'] == null) {
|
|
2164
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserRepliesTimeline().');
|
|
2165
|
+
}
|
|
2166
|
+
if (requestParameters['features'] == null) {
|
|
2167
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserRepliesTimeline().');
|
|
2168
|
+
}
|
|
2169
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2170
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserRepliesTimeline().');
|
|
2171
|
+
}
|
|
2172
|
+
const queryParameters = {};
|
|
2173
|
+
if (requestParameters['variables'] != null) {
|
|
2174
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2175
|
+
}
|
|
2176
|
+
if (requestParameters['features'] != null) {
|
|
2177
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2178
|
+
}
|
|
2179
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2180
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2181
|
+
}
|
|
2182
|
+
const headerParameters = {};
|
|
2183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2184
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2185
|
+
}
|
|
2186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2187
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2188
|
+
}
|
|
2189
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2190
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2191
|
+
}
|
|
2192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2193
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2194
|
+
}
|
|
2195
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2196
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2197
|
+
}
|
|
2198
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2199
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2200
|
+
}
|
|
2201
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2202
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2203
|
+
}
|
|
2204
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2205
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2206
|
+
}
|
|
2207
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2208
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2209
|
+
}
|
|
2210
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2211
|
+
const token = this.configuration.accessToken;
|
|
2212
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2213
|
+
if (tokenString) {
|
|
2214
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2218
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2219
|
+
}
|
|
2220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2221
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2222
|
+
}
|
|
2223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2224
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2225
|
+
}
|
|
2226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2227
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2228
|
+
}
|
|
2229
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2230
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2231
|
+
}
|
|
2232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2233
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2234
|
+
}
|
|
2235
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2236
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2237
|
+
}
|
|
2238
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2239
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2240
|
+
}
|
|
2241
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2242
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2243
|
+
}
|
|
2244
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2245
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2246
|
+
}
|
|
2247
|
+
let urlPath = `/graphql/{pathQueryId}/UserRepliesTimeline`;
|
|
2248
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2249
|
+
return {
|
|
2250
|
+
path: urlPath,
|
|
2251
|
+
method: 'GET',
|
|
2252
|
+
headers: headerParameters,
|
|
2253
|
+
query: queryParameters,
|
|
2254
|
+
};
|
|
2255
|
+
});
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* get user tweets and replies (profile replies tab)
|
|
2259
|
+
*/
|
|
2260
|
+
getUserRepliesTimelineRaw(requestParameters, initOverrides) {
|
|
2261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2262
|
+
const requestOptions = yield this.getUserRepliesTimelineRequestOpts(requestParameters);
|
|
2263
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2264
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
/**
|
|
2268
|
+
* get user tweets and replies (profile replies tab)
|
|
2269
|
+
*/
|
|
2270
|
+
getUserRepliesTimeline(requestParameters, initOverrides) {
|
|
2271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2272
|
+
const response = yield this.getUserRepliesTimelineRaw(requestParameters, initOverrides);
|
|
2273
|
+
return yield response.value();
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
/**
|
|
2277
|
+
* Creates request options for getUserRepostsTimeline without sending the request
|
|
2278
|
+
*/
|
|
2279
|
+
getUserRepostsTimelineRequestOpts(requestParameters) {
|
|
2280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2281
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2282
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserRepostsTimeline().');
|
|
2283
|
+
}
|
|
2284
|
+
if (requestParameters['variables'] == null) {
|
|
2285
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserRepostsTimeline().');
|
|
2286
|
+
}
|
|
2287
|
+
if (requestParameters['features'] == null) {
|
|
2288
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserRepostsTimeline().');
|
|
2289
|
+
}
|
|
2290
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2291
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserRepostsTimeline().');
|
|
2292
|
+
}
|
|
2293
|
+
const queryParameters = {};
|
|
2294
|
+
if (requestParameters['variables'] != null) {
|
|
2295
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2296
|
+
}
|
|
2297
|
+
if (requestParameters['features'] != null) {
|
|
2298
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2299
|
+
}
|
|
2300
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2301
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2302
|
+
}
|
|
2303
|
+
const headerParameters = {};
|
|
2304
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2305
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2306
|
+
}
|
|
2307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2308
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2309
|
+
}
|
|
2310
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2311
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2312
|
+
}
|
|
2313
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2314
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2315
|
+
}
|
|
2316
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2317
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2318
|
+
}
|
|
2319
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2320
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2321
|
+
}
|
|
2322
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2323
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2324
|
+
}
|
|
2325
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2326
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2327
|
+
}
|
|
2328
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2329
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2330
|
+
}
|
|
2331
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2332
|
+
const token = this.configuration.accessToken;
|
|
2333
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2334
|
+
if (tokenString) {
|
|
2335
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2339
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2340
|
+
}
|
|
2341
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2342
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2343
|
+
}
|
|
2344
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2345
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2346
|
+
}
|
|
2347
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2348
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2349
|
+
}
|
|
2350
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2351
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2352
|
+
}
|
|
2353
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2354
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2355
|
+
}
|
|
2356
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2357
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2358
|
+
}
|
|
2359
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2360
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2361
|
+
}
|
|
2362
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2363
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2364
|
+
}
|
|
2365
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2366
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2367
|
+
}
|
|
2368
|
+
let urlPath = `/graphql/{pathQueryId}/UserRepostsTimeline`;
|
|
2369
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2370
|
+
return {
|
|
2371
|
+
path: urlPath,
|
|
2372
|
+
method: 'GET',
|
|
2373
|
+
headers: headerParameters,
|
|
2374
|
+
query: queryParameters,
|
|
2375
|
+
};
|
|
2376
|
+
});
|
|
2377
|
+
}
|
|
2378
|
+
/**
|
|
2379
|
+
* get user reposts (profile reposts tab)
|
|
2380
|
+
*/
|
|
2381
|
+
getUserRepostsTimelineRaw(requestParameters, initOverrides) {
|
|
2382
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2383
|
+
const requestOptions = yield this.getUserRepostsTimelineRequestOpts(requestParameters);
|
|
2384
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2385
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2386
|
+
});
|
|
2387
|
+
}
|
|
2388
|
+
/**
|
|
2389
|
+
* get user reposts (profile reposts tab)
|
|
2390
|
+
*/
|
|
2391
|
+
getUserRepostsTimeline(requestParameters, initOverrides) {
|
|
2392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2393
|
+
const response = yield this.getUserRepostsTimelineRaw(requestParameters, initOverrides);
|
|
2394
|
+
return yield response.value();
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
/**
|
|
2398
|
+
* Creates request options for getUserSuperFollowTweets without sending the request
|
|
2399
|
+
*/
|
|
2400
|
+
getUserSuperFollowTweetsRequestOpts(requestParameters) {
|
|
2401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2402
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2403
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserSuperFollowTweets().');
|
|
2404
|
+
}
|
|
2405
|
+
if (requestParameters['variables'] == null) {
|
|
2406
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserSuperFollowTweets().');
|
|
2407
|
+
}
|
|
2408
|
+
if (requestParameters['features'] == null) {
|
|
2409
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserSuperFollowTweets().');
|
|
2410
|
+
}
|
|
2411
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2412
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserSuperFollowTweets().');
|
|
2413
|
+
}
|
|
2414
|
+
const queryParameters = {};
|
|
2415
|
+
if (requestParameters['variables'] != null) {
|
|
2416
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2417
|
+
}
|
|
2418
|
+
if (requestParameters['features'] != null) {
|
|
2419
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2420
|
+
}
|
|
2421
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2422
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2423
|
+
}
|
|
2424
|
+
const headerParameters = {};
|
|
2425
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2426
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2427
|
+
}
|
|
2428
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2429
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2430
|
+
}
|
|
2431
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2432
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2433
|
+
}
|
|
2434
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2435
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2436
|
+
}
|
|
2437
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2438
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2439
|
+
}
|
|
2440
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2441
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2442
|
+
}
|
|
2443
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2444
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2445
|
+
}
|
|
2446
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2447
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2448
|
+
}
|
|
2449
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2450
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2451
|
+
}
|
|
2452
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2453
|
+
const token = this.configuration.accessToken;
|
|
2454
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2455
|
+
if (tokenString) {
|
|
2456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2460
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2461
|
+
}
|
|
2462
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2463
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2464
|
+
}
|
|
2465
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2466
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2467
|
+
}
|
|
2468
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2469
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2470
|
+
}
|
|
2471
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2472
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2473
|
+
}
|
|
2474
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2475
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2476
|
+
}
|
|
2477
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2478
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2479
|
+
}
|
|
2480
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2481
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2482
|
+
}
|
|
2483
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2484
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2485
|
+
}
|
|
2486
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2487
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2488
|
+
}
|
|
2489
|
+
let urlPath = `/graphql/{pathQueryId}/UserSuperFollowTweets`;
|
|
2490
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2491
|
+
return {
|
|
2492
|
+
path: urlPath,
|
|
2493
|
+
method: 'GET',
|
|
2494
|
+
headers: headerParameters,
|
|
2495
|
+
query: queryParameters,
|
|
2496
|
+
};
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
/**
|
|
2500
|
+
* get user super follow tweets (subscriptions tab)
|
|
2501
|
+
*/
|
|
2502
|
+
getUserSuperFollowTweetsRaw(requestParameters, initOverrides) {
|
|
2503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2504
|
+
const requestOptions = yield this.getUserSuperFollowTweetsRequestOpts(requestParameters);
|
|
2505
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2506
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
/**
|
|
2510
|
+
* get user super follow tweets (subscriptions tab)
|
|
2511
|
+
*/
|
|
2512
|
+
getUserSuperFollowTweets(requestParameters, initOverrides) {
|
|
2513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2514
|
+
const response = yield this.getUserSuperFollowTweetsRaw(requestParameters, initOverrides);
|
|
2515
|
+
return yield response.value();
|
|
2516
|
+
});
|
|
2517
|
+
}
|
|
2518
|
+
/**
|
|
2519
|
+
* Creates request options for getUserTweets without sending the request
|
|
2520
|
+
*/
|
|
2521
|
+
getUserTweetsRequestOpts(requestParameters) {
|
|
2522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2523
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2524
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserTweets().');
|
|
2525
|
+
}
|
|
2526
|
+
if (requestParameters['variables'] == null) {
|
|
2527
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserTweets().');
|
|
2528
|
+
}
|
|
2529
|
+
if (requestParameters['features'] == null) {
|
|
2530
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserTweets().');
|
|
2531
|
+
}
|
|
2532
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2533
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserTweets().');
|
|
2534
|
+
}
|
|
2535
|
+
const queryParameters = {};
|
|
2536
|
+
if (requestParameters['variables'] != null) {
|
|
2537
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2538
|
+
}
|
|
2539
|
+
if (requestParameters['features'] != null) {
|
|
2540
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2541
|
+
}
|
|
2542
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2543
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2544
|
+
}
|
|
2545
|
+
const headerParameters = {};
|
|
2546
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2547
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2548
|
+
}
|
|
2549
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2550
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2551
|
+
}
|
|
2552
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2553
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2554
|
+
}
|
|
2555
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2556
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2557
|
+
}
|
|
2558
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2559
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2560
|
+
}
|
|
2561
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2562
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2563
|
+
}
|
|
2564
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2565
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2566
|
+
}
|
|
2567
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2568
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2569
|
+
}
|
|
2570
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2571
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2572
|
+
}
|
|
2573
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2574
|
+
const token = this.configuration.accessToken;
|
|
2575
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2576
|
+
if (tokenString) {
|
|
2577
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2578
|
+
}
|
|
2579
|
+
}
|
|
2580
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2581
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2582
|
+
}
|
|
2583
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2584
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2585
|
+
}
|
|
2586
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2587
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2588
|
+
}
|
|
2589
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2590
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2591
|
+
}
|
|
2592
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2593
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2594
|
+
}
|
|
2595
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2596
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2597
|
+
}
|
|
2598
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2599
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2600
|
+
}
|
|
2601
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2602
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2603
|
+
}
|
|
2604
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2605
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2606
|
+
}
|
|
2607
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2608
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2609
|
+
}
|
|
2610
|
+
let urlPath = `/graphql/{pathQueryId}/UserTweets`;
|
|
2611
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2612
|
+
return {
|
|
2613
|
+
path: urlPath,
|
|
2614
|
+
method: 'GET',
|
|
2615
|
+
headers: headerParameters,
|
|
2616
|
+
query: queryParameters,
|
|
2617
|
+
};
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* get user tweets
|
|
2622
|
+
*/
|
|
2623
|
+
getUserTweetsRaw(requestParameters, initOverrides) {
|
|
2624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2625
|
+
const requestOptions = yield this.getUserTweetsRequestOpts(requestParameters);
|
|
2626
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2627
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
/**
|
|
2631
|
+
* get user tweets
|
|
2632
|
+
*/
|
|
2633
|
+
getUserTweets(requestParameters, initOverrides) {
|
|
2634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2635
|
+
const response = yield this.getUserTweetsRaw(requestParameters, initOverrides);
|
|
2636
|
+
return yield response.value();
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
/**
|
|
2640
|
+
* Creates request options for getUserTweetsAndReplies without sending the request
|
|
2641
|
+
*/
|
|
2642
|
+
getUserTweetsAndRepliesRequestOpts(requestParameters) {
|
|
2643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2644
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2645
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserTweetsAndReplies().');
|
|
2646
|
+
}
|
|
2647
|
+
if (requestParameters['variables'] == null) {
|
|
2648
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserTweetsAndReplies().');
|
|
2649
|
+
}
|
|
2650
|
+
if (requestParameters['features'] == null) {
|
|
2651
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserTweetsAndReplies().');
|
|
2652
|
+
}
|
|
2653
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2654
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserTweetsAndReplies().');
|
|
2655
|
+
}
|
|
2656
|
+
const queryParameters = {};
|
|
2657
|
+
if (requestParameters['variables'] != null) {
|
|
2658
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2659
|
+
}
|
|
2660
|
+
if (requestParameters['features'] != null) {
|
|
2661
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2662
|
+
}
|
|
2663
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2664
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2665
|
+
}
|
|
2666
|
+
const headerParameters = {};
|
|
2667
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2668
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2669
|
+
}
|
|
2670
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2671
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2672
|
+
}
|
|
2673
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2674
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2675
|
+
}
|
|
2676
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2677
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2678
|
+
}
|
|
2679
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2680
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2681
|
+
}
|
|
2682
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2683
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2684
|
+
}
|
|
2685
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2686
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2687
|
+
}
|
|
2688
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2689
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2690
|
+
}
|
|
2691
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2692
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2693
|
+
}
|
|
2694
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2695
|
+
const token = this.configuration.accessToken;
|
|
2696
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2697
|
+
if (tokenString) {
|
|
2698
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2702
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2703
|
+
}
|
|
2704
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2705
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2706
|
+
}
|
|
2707
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2708
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2709
|
+
}
|
|
2710
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2711
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2712
|
+
}
|
|
2713
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2714
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2715
|
+
}
|
|
2716
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2717
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2718
|
+
}
|
|
2719
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2720
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2721
|
+
}
|
|
2722
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2723
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2724
|
+
}
|
|
2725
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2726
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2727
|
+
}
|
|
2728
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2729
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2730
|
+
}
|
|
2731
|
+
let urlPath = `/graphql/{pathQueryId}/UserTweetsAndReplies`;
|
|
2732
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2733
|
+
return {
|
|
2734
|
+
path: urlPath,
|
|
2735
|
+
method: 'GET',
|
|
2736
|
+
headers: headerParameters,
|
|
2737
|
+
query: queryParameters,
|
|
2738
|
+
};
|
|
2739
|
+
});
|
|
2740
|
+
}
|
|
2741
|
+
/**
|
|
2742
|
+
* get user replies tweets
|
|
2743
|
+
*/
|
|
2744
|
+
getUserTweetsAndRepliesRaw(requestParameters, initOverrides) {
|
|
2745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2746
|
+
const requestOptions = yield this.getUserTweetsAndRepliesRequestOpts(requestParameters);
|
|
2747
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2748
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* get user replies tweets
|
|
2753
|
+
*/
|
|
2754
|
+
getUserTweetsAndReplies(requestParameters, initOverrides) {
|
|
2755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2756
|
+
const response = yield this.getUserTweetsAndRepliesRaw(requestParameters, initOverrides);
|
|
2757
|
+
return yield response.value();
|
|
2758
|
+
});
|
|
2759
|
+
}
|
|
2760
|
+
/**
|
|
2761
|
+
* Creates request options for getUserVideoTimeline without sending the request
|
|
2762
|
+
*/
|
|
2763
|
+
getUserVideoTimelineRequestOpts(requestParameters) {
|
|
2764
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2765
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
2766
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserVideoTimeline().');
|
|
2767
|
+
}
|
|
2768
|
+
if (requestParameters['variables'] == null) {
|
|
2769
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getUserVideoTimeline().');
|
|
2770
|
+
}
|
|
2771
|
+
if (requestParameters['features'] == null) {
|
|
2772
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getUserVideoTimeline().');
|
|
2773
|
+
}
|
|
2774
|
+
if (requestParameters['fieldToggles'] == null) {
|
|
2775
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter "fieldToggles" was null or undefined when calling getUserVideoTimeline().');
|
|
2776
|
+
}
|
|
2777
|
+
const queryParameters = {};
|
|
2778
|
+
if (requestParameters['variables'] != null) {
|
|
2779
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
2780
|
+
}
|
|
2781
|
+
if (requestParameters['features'] != null) {
|
|
2782
|
+
queryParameters['features'] = requestParameters['features'];
|
|
2783
|
+
}
|
|
2784
|
+
if (requestParameters['fieldToggles'] != null) {
|
|
2785
|
+
queryParameters['fieldToggles'] = requestParameters['fieldToggles'];
|
|
2786
|
+
}
|
|
2787
|
+
const headerParameters = {};
|
|
2788
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2789
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
2790
|
+
}
|
|
2791
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2792
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
2793
|
+
}
|
|
2794
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2795
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
2796
|
+
}
|
|
2797
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2798
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
2799
|
+
}
|
|
2800
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2801
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
2802
|
+
}
|
|
2803
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2804
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
2805
|
+
}
|
|
2806
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2807
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
2808
|
+
}
|
|
2809
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2810
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
2811
|
+
}
|
|
2812
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2813
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
2814
|
+
}
|
|
2815
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2816
|
+
const token = this.configuration.accessToken;
|
|
2817
|
+
const tokenString = yield token("BearerAuth", []);
|
|
2818
|
+
if (tokenString) {
|
|
2819
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2823
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
2824
|
+
}
|
|
2825
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2826
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
2827
|
+
}
|
|
2828
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2829
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
2830
|
+
}
|
|
2831
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2832
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
2833
|
+
}
|
|
2834
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2835
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
2836
|
+
}
|
|
2837
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2838
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
2839
|
+
}
|
|
2840
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2841
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
2842
|
+
}
|
|
2843
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2844
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
2845
|
+
}
|
|
2846
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2847
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
2848
|
+
}
|
|
2849
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2850
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
2851
|
+
}
|
|
2852
|
+
let urlPath = `/graphql/{pathQueryId}/UserVideoTimeline`;
|
|
2853
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2854
|
+
return {
|
|
2855
|
+
path: urlPath,
|
|
2856
|
+
method: 'GET',
|
|
2857
|
+
headers: headerParameters,
|
|
2858
|
+
query: queryParameters,
|
|
2859
|
+
};
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2862
|
+
/**
|
|
2863
|
+
* get user media (profile media tab)
|
|
2864
|
+
*/
|
|
2865
|
+
getUserVideoTimelineRaw(requestParameters, initOverrides) {
|
|
2866
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2867
|
+
const requestOptions = yield this.getUserVideoTimelineRequestOpts(requestParameters);
|
|
2868
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
2869
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserTweetsResponseFromJSON(jsonValue));
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
* get user media (profile media tab)
|
|
2874
|
+
*/
|
|
2875
|
+
getUserVideoTimeline(requestParameters, initOverrides) {
|
|
2876
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2877
|
+
const response = yield this.getUserVideoTimelineRaw(requestParameters, initOverrides);
|
|
2878
|
+
return yield response.value();
|
|
2879
|
+
});
|
|
2880
|
+
}
|
|
2881
|
+
}
|