@finch_ren/x-scraper 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +215 -0
- package/dist/src/api.d.ts +156 -0
- package/dist/src/api.js +245 -0
- package/dist/src/apis/defaultApi.d.ts +25 -0
- package/dist/src/apis/defaultApi.js +44 -0
- package/dist/src/apis/index.d.ts +12 -0
- package/dist/src/apis/index.js +26 -0
- package/dist/src/apis/initialStateApi.d.ts +3 -0
- package/dist/src/apis/initialStateApi.js +7 -0
- package/dist/src/apis/postApi.d.ts +58 -0
- package/dist/src/apis/postApi.js +130 -0
- package/dist/src/apis/spaceApi.d.ts +28 -0
- package/dist/src/apis/spaceApi.js +42 -0
- package/dist/src/apis/tweetApi.d.ts +118 -0
- package/dist/src/apis/tweetApi.js +195 -0
- package/dist/src/apis/userApi.d.ts +27 -0
- package/dist/src/apis/userApi.js +43 -0
- package/dist/src/apis/userListApi.d.ts +67 -0
- package/dist/src/apis/userListApi.js +111 -0
- package/dist/src/apis/usersApi.d.ts +19 -0
- package/dist/src/apis/usersApi.js +25 -0
- package/dist/src/apis/v11GetApi.d.ts +20 -0
- package/dist/src/apis/v11GetApi.js +29 -0
- package/dist/src/apis/v11PostApi.d.ts +26 -0
- package/dist/src/apis/v11PostApi.js +33 -0
- package/dist/src/apis/v20GetApi.d.ts +10 -0
- package/dist/src/apis/v20GetApi.js +12 -0
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.js +22 -0
- package/dist/src/models/flag.d.ts +6 -0
- package/dist/src/models/flag.js +3 -0
- package/dist/src/models/header.d.ts +15 -0
- package/dist/src/models/header.js +3 -0
- package/dist/src/models/index.d.ts +6 -0
- package/dist/src/models/index.js +22 -0
- package/dist/src/models/response.d.ts +10 -0
- package/dist/src/models/response.js +3 -0
- package/dist/src/models/timeline.d.ts +28 -0
- package/dist/src/models/timeline.js +3 -0
- package/dist/src/models/utils.d.ts +13 -0
- package/dist/src/models/utils.js +3 -0
- package/dist/src/openapi/index.d.ts +4 -0
- package/dist/src/openapi/index.js +24 -0
- package/dist/src/openapi/src/apis/DefaultApi.d.ts +54 -0
- package/dist/src/openapi/src/apis/DefaultApi.js +282 -0
- package/dist/src/openapi/src/apis/OtherApi.d.ts +65 -0
- package/dist/src/openapi/src/apis/OtherApi.js +369 -0
- package/dist/src/openapi/src/apis/PostApi.d.ts +147 -0
- package/dist/src/openapi/src/apis/PostApi.js +874 -0
- package/dist/src/openapi/src/apis/TweetApi.d.ts +280 -0
- package/dist/src/openapi/src/apis/TweetApi.js +1729 -0
- package/dist/src/openapi/src/apis/UserApi.d.ts +54 -0
- package/dist/src/openapi/src/apis/UserApi.js +282 -0
- package/dist/src/openapi/src/apis/UserListApi.d.ts +121 -0
- package/dist/src/openapi/src/apis/UserListApi.js +712 -0
- package/dist/src/openapi/src/apis/UsersApi.d.ts +36 -0
- package/dist/src/openapi/src/apis/UsersApi.js +167 -0
- package/dist/src/openapi/src/apis/V11GetApi.d.ts +88 -0
- package/dist/src/openapi/src/apis/V11GetApi.js +495 -0
- package/dist/src/openapi/src/apis/V11PostApi.d.ts +74 -0
- package/dist/src/openapi/src/apis/V11PostApi.js +437 -0
- package/dist/src/openapi/src/apis/V20GetApi.d.ts +69 -0
- package/dist/src/openapi/src/apis/V20GetApi.js +371 -0
- package/dist/src/openapi/src/apis/index.d.ts +11 -0
- package/dist/src/openapi/src/apis/index.js +29 -0
- package/dist/src/openapi/src/index.d.ts +4 -0
- package/dist/src/openapi/src/index.js +22 -0
- package/dist/src/openapi/src/models/AboutCommunityResult.d.ts +41 -0
- package/dist/src/openapi/src/models/AboutCommunityResult.js +57 -0
- package/dist/src/openapi/src/models/AboutCommunityResults.d.ts +34 -0
- package/dist/src/openapi/src/models/AboutCommunityResults.js +52 -0
- package/dist/src/openapi/src/models/AboutCommunityTweetData.d.ts +34 -0
- package/dist/src/openapi/src/models/AboutCommunityTweetData.js +52 -0
- package/dist/src/openapi/src/models/AdditionalMediaInfo.d.ts +65 -0
- package/dist/src/openapi/src/models/AdditionalMediaInfo.js +63 -0
- package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActions.d.ts +40 -0
- package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActions.js +52 -0
- package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActionsUrl.d.ts +33 -0
- package/dist/src/openapi/src/models/AdditionalMediaInfoCallToActionsUrl.js +51 -0
- package/dist/src/openapi/src/models/AllowDownloadStatus.d.ts +33 -0
- package/dist/src/openapi/src/models/AllowDownloadStatus.js +49 -0
- package/dist/src/openapi/src/models/AnalysisResults.d.ts +34 -0
- package/dist/src/openapi/src/models/AnalysisResults.js +52 -0
- package/dist/src/openapi/src/models/Article.d.ts +34 -0
- package/dist/src/openapi/src/models/Article.js +52 -0
- package/dist/src/openapi/src/models/ArticleCoverMedia.d.ts +52 -0
- package/dist/src/openapi/src/models/ArticleCoverMedia.js +64 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaColorInfo.d.ts +34 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaColorInfo.js +52 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPalette.d.ts +40 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPalette.js +56 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPaletteRGB.d.ts +45 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaColorInfoPaletteRGB.js +59 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaInfo.d.ts +59 -0
- package/dist/src/openapi/src/models/ArticleCoverMediaInfo.js +67 -0
- package/dist/src/openapi/src/models/ArticleLifecycleState.d.ts +33 -0
- package/dist/src/openapi/src/models/ArticleLifecycleState.js +51 -0
- package/dist/src/openapi/src/models/ArticleMetadata.d.ts +33 -0
- package/dist/src/openapi/src/models/ArticleMetadata.js +51 -0
- package/dist/src/openapi/src/models/ArticleResult.d.ts +72 -0
- package/dist/src/openapi/src/models/ArticleResult.js +76 -0
- package/dist/src/openapi/src/models/ArticleResults.d.ts +34 -0
- package/dist/src/openapi/src/models/ArticleResults.js +52 -0
- package/dist/src/openapi/src/models/AudioSpace.d.ts +55 -0
- package/dist/src/openapi/src/models/AudioSpace.js +59 -0
- package/dist/src/openapi/src/models/AudioSpaceByIdResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/AudioSpaceByIdResponse.js +55 -0
- package/dist/src/openapi/src/models/AudioSpaceData.d.ts +34 -0
- package/dist/src/openapi/src/models/AudioSpaceData.js +52 -0
- package/dist/src/openapi/src/models/AudioSpaceMentionedUser.d.ts +33 -0
- package/dist/src/openapi/src/models/AudioSpaceMentionedUser.js +51 -0
- package/dist/src/openapi/src/models/AudioSpaceMetadata.d.ts +208 -0
- package/dist/src/openapi/src/models/AudioSpaceMetadata.js +120 -0
- package/dist/src/openapi/src/models/AudioSpaceParticipant.d.ts +82 -0
- package/dist/src/openapi/src/models/AudioSpaceParticipant.js +70 -0
- package/dist/src/openapi/src/models/AudioSpaceParticipants.d.ts +52 -0
- package/dist/src/openapi/src/models/AudioSpaceParticipants.js +58 -0
- package/dist/src/openapi/src/models/AuthorCommunityRelationship.d.ts +57 -0
- package/dist/src/openapi/src/models/AuthorCommunityRelationship.js +67 -0
- package/dist/src/openapi/src/models/BirdwatchEntity.d.ts +46 -0
- package/dist/src/openapi/src/models/BirdwatchEntity.js +60 -0
- package/dist/src/openapi/src/models/BirdwatchEntityRef.d.ts +66 -0
- package/dist/src/openapi/src/models/BirdwatchEntityRef.js +71 -0
- package/dist/src/openapi/src/models/BirdwatchPivot.d.ts +106 -0
- package/dist/src/openapi/src/models/BirdwatchPivot.js +91 -0
- package/dist/src/openapi/src/models/BirdwatchPivotCallToAction.d.ts +45 -0
- package/dist/src/openapi/src/models/BirdwatchPivotCallToAction.js +59 -0
- package/dist/src/openapi/src/models/BirdwatchPivotFooter.d.ts +40 -0
- package/dist/src/openapi/src/models/BirdwatchPivotFooter.js +56 -0
- package/dist/src/openapi/src/models/BirdwatchPivotNote.d.ts +33 -0
- package/dist/src/openapi/src/models/BirdwatchPivotNote.js +51 -0
- package/dist/src/openapi/src/models/BirdwatchPivotSubtitle.d.ts +40 -0
- package/dist/src/openapi/src/models/BirdwatchPivotSubtitle.js +56 -0
- package/dist/src/openapi/src/models/BookmarksResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/BookmarksResponse.js +53 -0
- package/dist/src/openapi/src/models/BookmarksResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/BookmarksResponseData.js +52 -0
- package/dist/src/openapi/src/models/BookmarksTimeline.d.ts +34 -0
- package/dist/src/openapi/src/models/BookmarksTimeline.js +52 -0
- package/dist/src/openapi/src/models/Broadcast.d.ts +45 -0
- package/dist/src/openapi/src/models/Broadcast.js +59 -0
- package/dist/src/openapi/src/models/BroadcastGraphQL.d.ts +179 -0
- package/dist/src/openapi/src/models/BroadcastGraphQL.js +99 -0
- package/dist/src/openapi/src/models/BroadcastGraphQLUserResults.d.ts +34 -0
- package/dist/src/openapi/src/models/BroadcastGraphQLUserResults.js +50 -0
- package/dist/src/openapi/src/models/BroadcastQueryResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/BroadcastQueryResponse.js +53 -0
- package/dist/src/openapi/src/models/BroadcastQueryResponseData.d.ts +41 -0
- package/dist/src/openapi/src/models/BroadcastQueryResponseData.js +53 -0
- package/dist/src/openapi/src/models/BroadcastQueryResponseDataBroadcastResults.d.ts +34 -0
- package/dist/src/openapi/src/models/BroadcastQueryResponseDataBroadcastResults.js +50 -0
- package/dist/src/openapi/src/models/BroadcastsShowResponse.d.ts +36 -0
- package/dist/src/openapi/src/models/BroadcastsShowResponse.js +53 -0
- package/dist/src/openapi/src/models/Callback.d.ts +33 -0
- package/dist/src/openapi/src/models/Callback.js +51 -0
- package/dist/src/openapi/src/models/ClientEventInfo.d.ts +47 -0
- package/dist/src/openapi/src/models/ClientEventInfo.js +53 -0
- package/dist/src/openapi/src/models/CommunitiesActions.d.ts +33 -0
- package/dist/src/openapi/src/models/CommunitiesActions.js +51 -0
- package/dist/src/openapi/src/models/Community.d.ts +34 -0
- package/dist/src/openapi/src/models/Community.js +52 -0
- package/dist/src/openapi/src/models/CommunityAboutTimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/CommunityAboutTimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/CommunityActions.d.ts +62 -0
- package/dist/src/openapi/src/models/CommunityActions.js +62 -0
- package/dist/src/openapi/src/models/CommunityData.d.ts +220 -0
- package/dist/src/openapi/src/models/CommunityData.js +132 -0
- package/dist/src/openapi/src/models/CommunityDeleteActionResult.d.ts +47 -0
- package/dist/src/openapi/src/models/CommunityDeleteActionResult.js +63 -0
- package/dist/src/openapi/src/models/CommunityInvitesResult.d.ts +53 -0
- package/dist/src/openapi/src/models/CommunityInvitesResult.js +67 -0
- package/dist/src/openapi/src/models/CommunityJoinAction.d.ts +34 -0
- package/dist/src/openapi/src/models/CommunityJoinAction.js +52 -0
- package/dist/src/openapi/src/models/CommunityJoinActionResultUnion.d.ts +28 -0
- package/dist/src/openapi/src/models/CommunityJoinActionResultUnion.js +54 -0
- package/dist/src/openapi/src/models/CommunityJoinActionUnavailable.d.ts +53 -0
- package/dist/src/openapi/src/models/CommunityJoinActionUnavailable.js +67 -0
- package/dist/src/openapi/src/models/CommunityJoinRequestsResult.d.ts +34 -0
- package/dist/src/openapi/src/models/CommunityJoinRequestsResult.js +52 -0
- package/dist/src/openapi/src/models/CommunityLeaveActionResult.d.ts +53 -0
- package/dist/src/openapi/src/models/CommunityLeaveActionResult.js +67 -0
- package/dist/src/openapi/src/models/CommunityMediaTimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/CommunityMediaTimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/CommunityPinActionResult.d.ts +34 -0
- package/dist/src/openapi/src/models/CommunityPinActionResult.js +52 -0
- package/dist/src/openapi/src/models/CommunityRelationship.d.ts +54 -0
- package/dist/src/openapi/src/models/CommunityRelationship.js +64 -0
- package/dist/src/openapi/src/models/CommunityRule.d.ts +45 -0
- package/dist/src/openapi/src/models/CommunityRule.js +57 -0
- package/dist/src/openapi/src/models/CommunityTweetsTimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/CommunityTweetsTimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/CommunityUnpinActionResult.d.ts +34 -0
- package/dist/src/openapi/src/models/CommunityUnpinActionResult.js +52 -0
- package/dist/src/openapi/src/models/CommunityUrls.d.ts +34 -0
- package/dist/src/openapi/src/models/CommunityUrls.js +52 -0
- package/dist/src/openapi/src/models/CommunityUrlsPermalink.d.ts +33 -0
- package/dist/src/openapi/src/models/CommunityUrlsPermalink.js +51 -0
- package/dist/src/openapi/src/models/ContentEntryType.d.ts +27 -0
- package/dist/src/openapi/src/models/ContentEntryType.js +53 -0
- package/dist/src/openapi/src/models/ContentItemType.d.ts +33 -0
- package/dist/src/openapi/src/models/ContentItemType.js +59 -0
- package/dist/src/openapi/src/models/ContentUnion.d.ts +31 -0
- package/dist/src/openapi/src/models/ContentUnion.js +59 -0
- package/dist/src/openapi/src/models/ConversationControl.d.ts +42 -0
- package/dist/src/openapi/src/models/ConversationControl.js +60 -0
- package/dist/src/openapi/src/models/CoverCta.d.ts +67 -0
- package/dist/src/openapi/src/models/CoverCta.js +73 -0
- package/dist/src/openapi/src/models/CreateBookmarkResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/CreateBookmarkResponse.js +55 -0
- package/dist/src/openapi/src/models/CreateBookmarkResponseData.d.ts +33 -0
- package/dist/src/openapi/src/models/CreateBookmarkResponseData.js +49 -0
- package/dist/src/openapi/src/models/CreateRetweet.d.ts +34 -0
- package/dist/src/openapi/src/models/CreateRetweet.js +52 -0
- package/dist/src/openapi/src/models/CreateRetweetResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/CreateRetweetResponse.js +55 -0
- package/dist/src/openapi/src/models/CreateRetweetResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/CreateRetweetResponseData.js +50 -0
- package/dist/src/openapi/src/models/CreateRetweetResponseResult.d.ts +34 -0
- package/dist/src/openapi/src/models/CreateRetweetResponseResult.js +52 -0
- package/dist/src/openapi/src/models/CreateTweet.d.ts +34 -0
- package/dist/src/openapi/src/models/CreateTweet.js +52 -0
- package/dist/src/openapi/src/models/CreateTweetResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/CreateTweetResponse.js +55 -0
- package/dist/src/openapi/src/models/CreateTweetResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/CreateTweetResponseData.js +50 -0
- package/dist/src/openapi/src/models/CreateTweetResponseResult.d.ts +34 -0
- package/dist/src/openapi/src/models/CreateTweetResponseResult.js +52 -0
- package/dist/src/openapi/src/models/CtaClientEventInfo.d.ts +40 -0
- package/dist/src/openapi/src/models/CtaClientEventInfo.js +58 -0
- package/dist/src/openapi/src/models/CursorType.d.ts +30 -0
- package/dist/src/openapi/src/models/CursorType.js +56 -0
- package/dist/src/openapi/src/models/DeleteBookmarkResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/DeleteBookmarkResponse.js +55 -0
- package/dist/src/openapi/src/models/DeleteBookmarkResponseData.d.ts +33 -0
- package/dist/src/openapi/src/models/DeleteBookmarkResponseData.js +49 -0
- package/dist/src/openapi/src/models/DeleteRetweet.d.ts +34 -0
- package/dist/src/openapi/src/models/DeleteRetweet.js +52 -0
- package/dist/src/openapi/src/models/DeleteRetweetResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/DeleteRetweetResponse.js +55 -0
- package/dist/src/openapi/src/models/DeleteRetweetResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/DeleteRetweetResponseData.js +50 -0
- package/dist/src/openapi/src/models/DeleteRetweetResponseResult.d.ts +34 -0
- package/dist/src/openapi/src/models/DeleteRetweetResponseResult.js +50 -0
- package/dist/src/openapi/src/models/DeleteTweetResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/DeleteTweetResponse.js +55 -0
- package/dist/src/openapi/src/models/DeleteTweetResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/DeleteTweetResponseData.js +50 -0
- package/dist/src/openapi/src/models/DeleteTweetResponseResult.d.ts +33 -0
- package/dist/src/openapi/src/models/DeleteTweetResponseResult.js +51 -0
- package/dist/src/openapi/src/models/DisplayTreatment.d.ts +39 -0
- package/dist/src/openapi/src/models/DisplayTreatment.js +53 -0
- package/dist/src/openapi/src/models/DisplayType.d.ts +28 -0
- package/dist/src/openapi/src/models/DisplayType.js +54 -0
- package/dist/src/openapi/src/models/Entities.d.ts +72 -0
- package/dist/src/openapi/src/models/Entities.js +70 -0
- package/dist/src/openapi/src/models/ErrorExtensions.d.ts +64 -0
- package/dist/src/openapi/src/models/ErrorExtensions.js +70 -0
- package/dist/src/openapi/src/models/ErrorResponse.d.ts +91 -0
- package/dist/src/openapi/src/models/ErrorResponse.js +87 -0
- package/dist/src/openapi/src/models/ErrorResponsePathInner.d.ts +22 -0
- package/dist/src/openapi/src/models/ErrorResponsePathInner.js +50 -0
- package/dist/src/openapi/src/models/ExtMediaAvailability.d.ts +47 -0
- package/dist/src/openapi/src/models/ExtMediaAvailability.js +59 -0
- package/dist/src/openapi/src/models/ExtendedEntities.d.ts +34 -0
- package/dist/src/openapi/src/models/ExtendedEntities.js +52 -0
- package/dist/src/openapi/src/models/FavoriteTweet.d.ts +33 -0
- package/dist/src/openapi/src/models/FavoriteTweet.js +49 -0
- package/dist/src/openapi/src/models/FavoriteTweetResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/FavoriteTweetResponse.js +55 -0
- package/dist/src/openapi/src/models/FeedbackInfo.d.ts +40 -0
- package/dist/src/openapi/src/models/FeedbackInfo.js +52 -0
- package/dist/src/openapi/src/models/FollowResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/FollowResponse.js +55 -0
- package/dist/src/openapi/src/models/FollowResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/FollowResponseData.js +50 -0
- package/dist/src/openapi/src/models/FollowResponseResult.d.ts +41 -0
- package/dist/src/openapi/src/models/FollowResponseResult.js +57 -0
- package/dist/src/openapi/src/models/FollowResponseUser.d.ts +34 -0
- package/dist/src/openapi/src/models/FollowResponseUser.js +52 -0
- package/dist/src/openapi/src/models/FollowTimeline.d.ts +34 -0
- package/dist/src/openapi/src/models/FollowTimeline.js +52 -0
- package/dist/src/openapi/src/models/GrokImageAnnotation.d.ts +39 -0
- package/dist/src/openapi/src/models/GrokImageAnnotation.js +55 -0
- package/dist/src/openapi/src/models/GrokShareAttachment.d.ts +34 -0
- package/dist/src/openapi/src/models/GrokShareAttachment.js +52 -0
- package/dist/src/openapi/src/models/GrokShareAttachmentItem.d.ts +46 -0
- package/dist/src/openapi/src/models/GrokShareAttachmentItem.js +58 -0
- package/dist/src/openapi/src/models/Highlight.d.ts +34 -0
- package/dist/src/openapi/src/models/Highlight.js +52 -0
- package/dist/src/openapi/src/models/HomeTimelineHome.d.ts +34 -0
- package/dist/src/openapi/src/models/HomeTimelineHome.js +52 -0
- package/dist/src/openapi/src/models/HomeTimelineResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/HomeTimelineResponseData.js +52 -0
- package/dist/src/openapi/src/models/InstructionType.d.ts +34 -0
- package/dist/src/openapi/src/models/InstructionType.js +60 -0
- package/dist/src/openapi/src/models/InstructionUnion.d.ts +52 -0
- package/dist/src/openapi/src/models/InstructionUnion.js +94 -0
- package/dist/src/openapi/src/models/ItemContentUnion.d.ts +49 -0
- package/dist/src/openapi/src/models/ItemContentUnion.js +89 -0
- package/dist/src/openapi/src/models/ItemResult.d.ts +41 -0
- package/dist/src/openapi/src/models/ItemResult.js +53 -0
- package/dist/src/openapi/src/models/LimitedActionResultsData.d.ts +53 -0
- package/dist/src/openapi/src/models/LimitedActionResultsData.js +71 -0
- package/dist/src/openapi/src/models/ListLatestTweetsTimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/ListLatestTweetsTimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/ListTweetsTimelineData.d.ts +34 -0
- package/dist/src/openapi/src/models/ListTweetsTimelineData.js +52 -0
- package/dist/src/openapi/src/models/ListTweetsTimelineList.d.ts +34 -0
- package/dist/src/openapi/src/models/ListTweetsTimelineList.js +52 -0
- package/dist/src/openapi/src/models/LiveVideoStreamSource.d.ts +51 -0
- package/dist/src/openapi/src/models/LiveVideoStreamSource.js +63 -0
- package/dist/src/openapi/src/models/LiveVideoStreamStatusResponse.d.ts +58 -0
- package/dist/src/openapi/src/models/LiveVideoStreamStatusResponse.js +62 -0
- package/dist/src/openapi/src/models/Location.d.ts +39 -0
- package/dist/src/openapi/src/models/Location.js +55 -0
- package/dist/src/openapi/src/models/Media.d.ts +164 -0
- package/dist/src/openapi/src/models/Media.js +126 -0
- package/dist/src/openapi/src/models/MediaCommunityResult.d.ts +41 -0
- package/dist/src/openapi/src/models/MediaCommunityResult.js +57 -0
- package/dist/src/openapi/src/models/MediaCommunityResults.d.ts +34 -0
- package/dist/src/openapi/src/models/MediaCommunityResults.js +52 -0
- package/dist/src/openapi/src/models/MediaCommunityTweetData.d.ts +34 -0
- package/dist/src/openapi/src/models/MediaCommunityTweetData.js +52 -0
- package/dist/src/openapi/src/models/MediaExtended.d.ts +171 -0
- package/dist/src/openapi/src/models/MediaExtended.js +127 -0
- package/dist/src/openapi/src/models/MediaOriginalInfo.d.ts +46 -0
- package/dist/src/openapi/src/models/MediaOriginalInfo.js +58 -0
- package/dist/src/openapi/src/models/MediaOriginalInfoFocusRect.d.ts +51 -0
- package/dist/src/openapi/src/models/MediaOriginalInfoFocusRect.js +63 -0
- package/dist/src/openapi/src/models/MediaResult.d.ts +40 -0
- package/dist/src/openapi/src/models/MediaResult.js +54 -0
- package/dist/src/openapi/src/models/MediaResults.d.ts +34 -0
- package/dist/src/openapi/src/models/MediaResults.js +52 -0
- package/dist/src/openapi/src/models/MediaSize.d.ts +53 -0
- package/dist/src/openapi/src/models/MediaSize.js +67 -0
- package/dist/src/openapi/src/models/MediaSizes.d.ts +52 -0
- package/dist/src/openapi/src/models/MediaSizes.js +64 -0
- package/dist/src/openapi/src/models/MediaStats.d.ts +33 -0
- package/dist/src/openapi/src/models/MediaStats.js +51 -0
- package/dist/src/openapi/src/models/MediaVideoInfo.d.ts +46 -0
- package/dist/src/openapi/src/models/MediaVideoInfo.js +58 -0
- package/dist/src/openapi/src/models/MediaVideoInfoVariant.d.ts +45 -0
- package/dist/src/openapi/src/models/MediaVideoInfoVariant.js +57 -0
- package/dist/src/openapi/src/models/MediaVisibilityResults.d.ts +34 -0
- package/dist/src/openapi/src/models/MediaVisibilityResults.js +52 -0
- package/dist/src/openapi/src/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +46 -0
- package/dist/src/openapi/src/models/MediaVisibilityResultsBlurredImageInterstitial.js +60 -0
- package/dist/src/openapi/src/models/ModuleEntry.d.ts +48 -0
- package/dist/src/openapi/src/models/ModuleEntry.js +58 -0
- package/dist/src/openapi/src/models/ModuleItem.d.ts +46 -0
- package/dist/src/openapi/src/models/ModuleItem.js +58 -0
- package/dist/src/openapi/src/models/NoteTweet.d.ts +40 -0
- package/dist/src/openapi/src/models/NoteTweet.js +56 -0
- package/dist/src/openapi/src/models/NoteTweetResult.d.ts +34 -0
- package/dist/src/openapi/src/models/NoteTweetResult.js +52 -0
- package/dist/src/openapi/src/models/NoteTweetResultData.d.ts +60 -0
- package/dist/src/openapi/src/models/NoteTweetResultData.js +66 -0
- package/dist/src/openapi/src/models/NoteTweetResultMedia.d.ts +34 -0
- package/dist/src/openapi/src/models/NoteTweetResultMedia.js +52 -0
- package/dist/src/openapi/src/models/NoteTweetResultMediaInlineMedia.d.ts +39 -0
- package/dist/src/openapi/src/models/NoteTweetResultMediaInlineMedia.js +55 -0
- package/dist/src/openapi/src/models/NoteTweetResultRichText.d.ts +34 -0
- package/dist/src/openapi/src/models/NoteTweetResultRichText.js +52 -0
- package/dist/src/openapi/src/models/NoteTweetResultRichTextTag.d.ts +53 -0
- package/dist/src/openapi/src/models/NoteTweetResultRichTextTag.js +67 -0
- package/dist/src/openapi/src/models/NotificationTemplate.d.ts +46 -0
- package/dist/src/openapi/src/models/NotificationTemplate.js +54 -0
- package/dist/src/openapi/src/models/NotificationsResult.d.ts +47 -0
- package/dist/src/openapi/src/models/NotificationsResult.js +61 -0
- package/dist/src/openapi/src/models/NotificationsTimelineData.d.ts +34 -0
- package/dist/src/openapi/src/models/NotificationsTimelineData.js +52 -0
- package/dist/src/openapi/src/models/NotificationsTimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/NotificationsTimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/NotificationsUserResults.d.ts +34 -0
- package/dist/src/openapi/src/models/NotificationsUserResults.js +52 -0
- package/dist/src/openapi/src/models/NotificationsViewerV2.d.ts +34 -0
- package/dist/src/openapi/src/models/NotificationsViewerV2.js +52 -0
- package/dist/src/openapi/src/models/OneFactorLoginEligibility.d.ts +33 -0
- package/dist/src/openapi/src/models/OneFactorLoginEligibility.js +51 -0
- package/dist/src/openapi/src/models/OtherObjectAll.d.ts +34 -0
- package/dist/src/openapi/src/models/OtherObjectAll.js +50 -0
- package/dist/src/openapi/src/models/PeriscopeUser.d.ts +51 -0
- package/dist/src/openapi/src/models/PeriscopeUser.js +55 -0
- package/dist/src/openapi/src/models/PostCreateBookmarkRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostCreateBookmarkRequest.js +56 -0
- package/dist/src/openapi/src/models/PostCreateBookmarkRequestVariables.d.ts +33 -0
- package/dist/src/openapi/src/models/PostCreateBookmarkRequestVariables.js +51 -0
- package/dist/src/openapi/src/models/PostCreateRetweetRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostCreateRetweetRequest.js +56 -0
- package/dist/src/openapi/src/models/PostCreateRetweetRequestVariables.d.ts +39 -0
- package/dist/src/openapi/src/models/PostCreateRetweetRequestVariables.js +55 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequest.d.ts +47 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequest.js +61 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestFeatures.d.ts +201 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestFeatures.js +163 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariables.d.ts +78 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariables.js +74 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesConversationControl.d.ts +33 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesConversationControl.js +51 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMedia.d.ts +40 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMedia.js +54 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +39 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +55 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesReply.d.ts +39 -0
- package/dist/src/openapi/src/models/PostCreateTweetRequestVariablesReply.js +55 -0
- package/dist/src/openapi/src/models/PostDeleteBookmarkRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostDeleteBookmarkRequest.js +56 -0
- package/dist/src/openapi/src/models/PostDeleteRetweetRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostDeleteRetweetRequest.js +56 -0
- package/dist/src/openapi/src/models/PostDeleteRetweetRequestVariables.d.ts +39 -0
- package/dist/src/openapi/src/models/PostDeleteRetweetRequestVariables.js +55 -0
- package/dist/src/openapi/src/models/PostDeleteTweetRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostDeleteTweetRequest.js +56 -0
- package/dist/src/openapi/src/models/PostFavoriteTweetRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostFavoriteTweetRequest.js +56 -0
- package/dist/src/openapi/src/models/PostUnfavoriteTweetRequest.d.ts +40 -0
- package/dist/src/openapi/src/models/PostUnfavoriteTweetRequest.js +56 -0
- package/dist/src/openapi/src/models/PrimaryCommunityTopic.d.ts +39 -0
- package/dist/src/openapi/src/models/PrimaryCommunityTopic.js +55 -0
- package/dist/src/openapi/src/models/ProfileResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/ProfileResponse.js +55 -0
- package/dist/src/openapi/src/models/ProfileResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/ProfileResponseData.js +50 -0
- package/dist/src/openapi/src/models/QuotedRefResult.d.ts +34 -0
- package/dist/src/openapi/src/models/QuotedRefResult.js +50 -0
- package/dist/src/openapi/src/models/QuotedStatusPermalink.d.ts +45 -0
- package/dist/src/openapi/src/models/QuotedStatusPermalink.js +59 -0
- package/dist/src/openapi/src/models/RankedCommunityResult.d.ts +41 -0
- package/dist/src/openapi/src/models/RankedCommunityResult.js +57 -0
- package/dist/src/openapi/src/models/RankedCommunityResults.d.ts +34 -0
- package/dist/src/openapi/src/models/RankedCommunityResults.js +52 -0
- package/dist/src/openapi/src/models/RankedCommunityTweetData.d.ts +34 -0
- package/dist/src/openapi/src/models/RankedCommunityTweetData.js +52 -0
- package/dist/src/openapi/src/models/Retweet.d.ts +40 -0
- package/dist/src/openapi/src/models/Retweet.js +56 -0
- package/dist/src/openapi/src/models/RetweetLegacy.d.ts +33 -0
- package/dist/src/openapi/src/models/RetweetLegacy.js +51 -0
- package/dist/src/openapi/src/models/RichMessage.d.ts +39 -0
- package/dist/src/openapi/src/models/RichMessage.js +51 -0
- package/dist/src/openapi/src/models/SearchByRawQuery.d.ts +34 -0
- package/dist/src/openapi/src/models/SearchByRawQuery.js +52 -0
- package/dist/src/openapi/src/models/SearchTimeline.d.ts +34 -0
- package/dist/src/openapi/src/models/SearchTimeline.js +52 -0
- package/dist/src/openapi/src/models/SearchTimelineData.d.ts +34 -0
- package/dist/src/openapi/src/models/SearchTimelineData.js +52 -0
- package/dist/src/openapi/src/models/SearchTimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/SearchTimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/SelfThread.d.ts +33 -0
- package/dist/src/openapi/src/models/SelfThread.js +51 -0
- package/dist/src/openapi/src/models/SensitiveMediaWarning.d.ts +45 -0
- package/dist/src/openapi/src/models/SensitiveMediaWarning.js +53 -0
- package/dist/src/openapi/src/models/Session.d.ts +121 -0
- package/dist/src/openapi/src/models/Session.js +111 -0
- package/dist/src/openapi/src/models/SocialContextLandingUrl.d.ts +55 -0
- package/dist/src/openapi/src/models/SocialContextLandingUrl.js +63 -0
- package/dist/src/openapi/src/models/SocialContextUnion.d.ts +28 -0
- package/dist/src/openapi/src/models/SocialContextUnion.js +54 -0
- package/dist/src/openapi/src/models/SocialContextUnionType.d.ts +26 -0
- package/dist/src/openapi/src/models/SocialContextUnionType.js +52 -0
- package/dist/src/openapi/src/models/SuperFollowsReplyUserResult.d.ts +34 -0
- package/dist/src/openapi/src/models/SuperFollowsReplyUserResult.js +52 -0
- package/dist/src/openapi/src/models/SuperFollowsReplyUserResultData.d.ts +41 -0
- package/dist/src/openapi/src/models/SuperFollowsReplyUserResultData.js +57 -0
- package/dist/src/openapi/src/models/SuperFollowsReplyUserResultLegacy.d.ts +33 -0
- package/dist/src/openapi/src/models/SuperFollowsReplyUserResultLegacy.js +51 -0
- package/dist/src/openapi/src/models/Text.d.ts +40 -0
- package/dist/src/openapi/src/models/Text.js +56 -0
- package/dist/src/openapi/src/models/TextEntity.d.ts +46 -0
- package/dist/src/openapi/src/models/TextEntity.js +60 -0
- package/dist/src/openapi/src/models/TextEntityRef.d.ts +59 -0
- package/dist/src/openapi/src/models/TextEntityRef.js +72 -0
- package/dist/src/openapi/src/models/TextHighlight.d.ts +39 -0
- package/dist/src/openapi/src/models/TextHighlight.js +55 -0
- package/dist/src/openapi/src/models/ThumbnailImage.d.ts +45 -0
- package/dist/src/openapi/src/models/ThumbnailImage.js +53 -0
- package/dist/src/openapi/src/models/Timeline.d.ts +50 -0
- package/dist/src/openapi/src/models/Timeline.js +56 -0
- package/dist/src/openapi/src/models/TimelineAddEntries.d.ts +41 -0
- package/dist/src/openapi/src/models/TimelineAddEntries.js +57 -0
- package/dist/src/openapi/src/models/TimelineAddEntry.d.ts +46 -0
- package/dist/src/openapi/src/models/TimelineAddEntry.js +60 -0
- package/dist/src/openapi/src/models/TimelineAddToModule.d.ts +53 -0
- package/dist/src/openapi/src/models/TimelineAddToModule.js +63 -0
- package/dist/src/openapi/src/models/TimelineClearCache.d.ts +34 -0
- package/dist/src/openapi/src/models/TimelineClearCache.js +52 -0
- package/dist/src/openapi/src/models/TimelineClearEntriesUnreadState.d.ts +34 -0
- package/dist/src/openapi/src/models/TimelineClearEntriesUnreadState.js +52 -0
- package/dist/src/openapi/src/models/TimelineCommunity.d.ts +35 -0
- package/dist/src/openapi/src/models/TimelineCommunity.js +52 -0
- package/dist/src/openapi/src/models/TimelineCoverBehavior.d.ts +48 -0
- package/dist/src/openapi/src/models/TimelineCoverBehavior.js +62 -0
- package/dist/src/openapi/src/models/TimelineCoverBehaviorUrl.d.ts +46 -0
- package/dist/src/openapi/src/models/TimelineCoverBehaviorUrl.js +62 -0
- package/dist/src/openapi/src/models/TimelineGeneralContext.d.ts +74 -0
- package/dist/src/openapi/src/models/TimelineGeneralContext.js +74 -0
- package/dist/src/openapi/src/models/TimelineHalfCover.d.ts +86 -0
- package/dist/src/openapi/src/models/TimelineHalfCover.js +91 -0
- package/dist/src/openapi/src/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.d.ts +40 -0
- package/dist/src/openapi/src/models/TimelineMarkEntriesUnreadGreaterThanSortIndex.js +54 -0
- package/dist/src/openapi/src/models/TimelineMessagePrompt.d.ts +35 -0
- package/dist/src/openapi/src/models/TimelineMessagePrompt.js +52 -0
- package/dist/src/openapi/src/models/TimelineNotification.d.ts +80 -0
- package/dist/src/openapi/src/models/TimelineNotification.js +84 -0
- package/dist/src/openapi/src/models/TimelinePinEntry.d.ts +41 -0
- package/dist/src/openapi/src/models/TimelinePinEntry.js +57 -0
- package/dist/src/openapi/src/models/TimelinePrompt.d.ts +35 -0
- package/dist/src/openapi/src/models/TimelinePrompt.js +52 -0
- package/dist/src/openapi/src/models/TimelineReplaceEntry.d.ts +47 -0
- package/dist/src/openapi/src/models/TimelineReplaceEntry.js +61 -0
- package/dist/src/openapi/src/models/TimelineResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/TimelineResponse.js +55 -0
- package/dist/src/openapi/src/models/TimelineResult.d.ts +40 -0
- package/dist/src/openapi/src/models/TimelineResult.js +52 -0
- package/dist/src/openapi/src/models/TimelineShowAlert.d.ts +102 -0
- package/dist/src/openapi/src/models/TimelineShowAlert.js +87 -0
- package/dist/src/openapi/src/models/TimelineShowAlertRichText.d.ts +41 -0
- package/dist/src/openapi/src/models/TimelineShowAlertRichText.js +51 -0
- package/dist/src/openapi/src/models/TimelineShowCover.d.ts +48 -0
- package/dist/src/openapi/src/models/TimelineShowCover.js +62 -0
- package/dist/src/openapi/src/models/TimelineTerminateTimeline.d.ts +49 -0
- package/dist/src/openapi/src/models/TimelineTerminateTimeline.js +65 -0
- package/dist/src/openapi/src/models/TimelineTimelineCursor.d.ts +73 -0
- package/dist/src/openapi/src/models/TimelineTimelineCursor.js +71 -0
- package/dist/src/openapi/src/models/TimelineTimelineItem.d.ts +63 -0
- package/dist/src/openapi/src/models/TimelineTimelineItem.js +67 -0
- package/dist/src/openapi/src/models/TimelineTimelineModule.d.ts +93 -0
- package/dist/src/openapi/src/models/TimelineTimelineModule.js +77 -0
- package/dist/src/openapi/src/models/TimelineTombstone.d.ts +61 -0
- package/dist/src/openapi/src/models/TimelineTombstone.js +65 -0
- package/dist/src/openapi/src/models/TimelineTopicContext.d.ts +54 -0
- package/dist/src/openapi/src/models/TimelineTopicContext.js +62 -0
- package/dist/src/openapi/src/models/TimelineTrend.d.ts +88 -0
- package/dist/src/openapi/src/models/TimelineTrend.js +80 -0
- package/dist/src/openapi/src/models/TimelineTweet.d.ts +92 -0
- package/dist/src/openapi/src/models/TimelineTweet.js +86 -0
- package/dist/src/openapi/src/models/TimelineUser.d.ts +71 -0
- package/dist/src/openapi/src/models/TimelineUser.js +79 -0
- package/dist/src/openapi/src/models/Timestamp.d.ts +45 -0
- package/dist/src/openapi/src/models/Timestamp.js +59 -0
- package/dist/src/openapi/src/models/TombstoneEntity.d.ts +46 -0
- package/dist/src/openapi/src/models/TombstoneEntity.js +54 -0
- package/dist/src/openapi/src/models/TombstoneInfo.d.ts +40 -0
- package/dist/src/openapi/src/models/TombstoneInfo.js +52 -0
- package/dist/src/openapi/src/models/TombstoneRef.d.ts +59 -0
- package/dist/src/openapi/src/models/TombstoneRef.js +66 -0
- package/dist/src/openapi/src/models/TombstoneRichText.d.ts +46 -0
- package/dist/src/openapi/src/models/TombstoneRichText.js +54 -0
- package/dist/src/openapi/src/models/TopicContext.d.ts +69 -0
- package/dist/src/openapi/src/models/TopicContext.js +61 -0
- package/dist/src/openapi/src/models/Tracing.d.ts +33 -0
- package/dist/src/openapi/src/models/Tracing.js +51 -0
- package/dist/src/openapi/src/models/TrendImage.d.ts +33 -0
- package/dist/src/openapi/src/models/TrendImage.js +49 -0
- package/dist/src/openapi/src/models/TrendMetadata.d.ts +34 -0
- package/dist/src/openapi/src/models/TrendMetadata.js +50 -0
- package/dist/src/openapi/src/models/TrendResults.d.ts +33 -0
- package/dist/src/openapi/src/models/TrendResults.js +51 -0
- package/dist/src/openapi/src/models/Tweet.d.ts +217 -0
- package/dist/src/openapi/src/models/Tweet.js +125 -0
- package/dist/src/openapi/src/models/TweetCard.d.ts +40 -0
- package/dist/src/openapi/src/models/TweetCard.js +52 -0
- package/dist/src/openapi/src/models/TweetCardLegacy.d.ts +60 -0
- package/dist/src/openapi/src/models/TweetCardLegacy.js +66 -0
- package/dist/src/openapi/src/models/TweetCardLegacyBindingValue.d.ts +40 -0
- package/dist/src/openapi/src/models/TweetCardLegacyBindingValue.js +56 -0
- package/dist/src/openapi/src/models/TweetCardLegacyBindingValueData.d.ts +73 -0
- package/dist/src/openapi/src/models/TweetCardLegacyBindingValueData.js +65 -0
- package/dist/src/openapi/src/models/TweetCardLegacyBindingValueDataImage.d.ts +51 -0
- package/dist/src/openapi/src/models/TweetCardLegacyBindingValueDataImage.js +61 -0
- package/dist/src/openapi/src/models/TweetCardPlatform.d.ts +41 -0
- package/dist/src/openapi/src/models/TweetCardPlatform.js +57 -0
- package/dist/src/openapi/src/models/TweetCardPlatformAudience.d.ts +40 -0
- package/dist/src/openapi/src/models/TweetCardPlatformAudience.js +58 -0
- package/dist/src/openapi/src/models/TweetCardPlatformData.d.ts +34 -0
- package/dist/src/openapi/src/models/TweetCardPlatformData.js +52 -0
- package/dist/src/openapi/src/models/TweetCardPlatformDevice.d.ts +39 -0
- package/dist/src/openapi/src/models/TweetCardPlatformDevice.js +55 -0
- package/dist/src/openapi/src/models/TweetDetailResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/TweetDetailResponse.js +55 -0
- package/dist/src/openapi/src/models/TweetDetailResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/TweetDetailResponseData.js +50 -0
- package/dist/src/openapi/src/models/TweetEditControl.d.ts +64 -0
- package/dist/src/openapi/src/models/TweetEditControl.js +60 -0
- package/dist/src/openapi/src/models/TweetEditControlInitial.d.ts +51 -0
- package/dist/src/openapi/src/models/TweetEditControlInitial.js +63 -0
- package/dist/src/openapi/src/models/TweetEditPrespective.d.ts +39 -0
- package/dist/src/openapi/src/models/TweetEditPrespective.js +51 -0
- package/dist/src/openapi/src/models/TweetFavoritersResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/TweetFavoritersResponse.js +55 -0
- package/dist/src/openapi/src/models/TweetFavoritersResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/TweetFavoritersResponseData.js +50 -0
- package/dist/src/openapi/src/models/TweetInterstitial.d.ts +61 -0
- package/dist/src/openapi/src/models/TweetInterstitial.js +73 -0
- package/dist/src/openapi/src/models/TweetInterstitialRevealText.d.ts +46 -0
- package/dist/src/openapi/src/models/TweetInterstitialRevealText.js +60 -0
- package/dist/src/openapi/src/models/TweetInterstitialText.d.ts +46 -0
- package/dist/src/openapi/src/models/TweetInterstitialText.js +60 -0
- package/dist/src/openapi/src/models/TweetInterstitialTextEntity.d.ts +46 -0
- package/dist/src/openapi/src/models/TweetInterstitialTextEntity.js +60 -0
- package/dist/src/openapi/src/models/TweetInterstitialTextEntityRef.d.ts +59 -0
- package/dist/src/openapi/src/models/TweetInterstitialTextEntityRef.js +72 -0
- package/dist/src/openapi/src/models/TweetLegacy.d.ts +236 -0
- package/dist/src/openapi/src/models/TweetLegacy.js +162 -0
- package/dist/src/openapi/src/models/TweetLegacyScopes.d.ts +33 -0
- package/dist/src/openapi/src/models/TweetLegacyScopes.js +51 -0
- package/dist/src/openapi/src/models/TweetLimitedActionResults.d.ts +34 -0
- package/dist/src/openapi/src/models/TweetLimitedActionResults.js +52 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplay.d.ts +55 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplay.js +67 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayCta.d.ts +40 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayCta.js +56 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayCtaUrl.d.ts +48 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayCtaUrl.js +64 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayTweet.d.ts +95 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayTweet.js +93 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayTweetViewCount.d.ts +33 -0
- package/dist/src/openapi/src/models/TweetPreviewDisplayTweetViewCount.js +51 -0
- package/dist/src/openapi/src/models/TweetPreviousCounts.d.ts +57 -0
- package/dist/src/openapi/src/models/TweetPreviousCounts.js +67 -0
- package/dist/src/openapi/src/models/TweetResultByRestIdData.d.ts +34 -0
- package/dist/src/openapi/src/models/TweetResultByRestIdData.js +50 -0
- package/dist/src/openapi/src/models/TweetResultByRestIdResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/TweetResultByRestIdResponse.js +55 -0
- package/dist/src/openapi/src/models/TweetRetweetersResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/TweetRetweetersResponse.js +55 -0
- package/dist/src/openapi/src/models/TweetRetweetersResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/TweetRetweetersResponseData.js +50 -0
- package/dist/src/openapi/src/models/TweetTombstone.d.ts +35 -0
- package/dist/src/openapi/src/models/TweetTombstone.js +52 -0
- package/dist/src/openapi/src/models/TweetUnavailable.d.ts +40 -0
- package/dist/src/openapi/src/models/TweetUnavailable.js +52 -0
- package/dist/src/openapi/src/models/TweetUnion.d.ts +37 -0
- package/dist/src/openapi/src/models/TweetUnion.js +69 -0
- package/dist/src/openapi/src/models/TweetView.d.ts +47 -0
- package/dist/src/openapi/src/models/TweetView.js +61 -0
- package/dist/src/openapi/src/models/TweetWithVisibilityResults.d.ts +63 -0
- package/dist/src/openapi/src/models/TweetWithVisibilityResults.js +65 -0
- package/dist/src/openapi/src/models/TypeName.d.ts +54 -0
- package/dist/src/openapi/src/models/TypeName.js +80 -0
- package/dist/src/openapi/src/models/UnfavoriteTweet.d.ts +33 -0
- package/dist/src/openapi/src/models/UnfavoriteTweet.js +49 -0
- package/dist/src/openapi/src/models/UnfavoriteTweetResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/UnfavoriteTweetResponse.js +55 -0
- package/dist/src/openapi/src/models/UnifiedCard.d.ts +40 -0
- package/dist/src/openapi/src/models/UnifiedCard.js +58 -0
- package/dist/src/openapi/src/models/Url.d.ts +51 -0
- package/dist/src/openapi/src/models/Url.js +61 -0
- package/dist/src/openapi/src/models/UrtEndpointOptions.d.ts +40 -0
- package/dist/src/openapi/src/models/UrtEndpointOptions.js +56 -0
- package/dist/src/openapi/src/models/UrtEndpointRequestParams.d.ts +39 -0
- package/dist/src/openapi/src/models/UrtEndpointRequestParams.js +55 -0
- package/dist/src/openapi/src/models/User.d.ts +281 -0
- package/dist/src/openapi/src/models/User.js +164 -0
- package/dist/src/openapi/src/models/UserAvatar.d.ts +33 -0
- package/dist/src/openapi/src/models/UserAvatar.js +49 -0
- package/dist/src/openapi/src/models/UserCore.d.ts +45 -0
- package/dist/src/openapi/src/models/UserCore.js +59 -0
- package/dist/src/openapi/src/models/UserDmPermissions.d.ts +33 -0
- package/dist/src/openapi/src/models/UserDmPermissions.js +49 -0
- package/dist/src/openapi/src/models/UserFeatures.d.ts +33 -0
- package/dist/src/openapi/src/models/UserFeatures.js +51 -0
- package/dist/src/openapi/src/models/UserHighlightsInfo.d.ts +39 -0
- package/dist/src/openapi/src/models/UserHighlightsInfo.js +55 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsData.d.ts +34 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsData.js +50 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsResponse.js +55 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsResult.d.ts +41 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsResult.js +57 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsTimeline.d.ts +34 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsTimeline.js +52 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsUser.d.ts +34 -0
- package/dist/src/openapi/src/models/UserHighlightsTweetsUser.js +52 -0
- package/dist/src/openapi/src/models/UserLegacy.d.ts +283 -0
- package/dist/src/openapi/src/models/UserLegacy.js +185 -0
- package/dist/src/openapi/src/models/UserLegacyExtendedProfile.d.ts +34 -0
- package/dist/src/openapi/src/models/UserLegacyExtendedProfile.js +50 -0
- package/dist/src/openapi/src/models/UserLegacyExtendedProfileBirthdate.d.ts +79 -0
- package/dist/src/openapi/src/models/UserLegacyExtendedProfileBirthdate.js +86 -0
- package/dist/src/openapi/src/models/UserLocation.d.ts +33 -0
- package/dist/src/openapi/src/models/UserLocation.js +49 -0
- package/dist/src/openapi/src/models/UserMediaPermissions.d.ts +33 -0
- package/dist/src/openapi/src/models/UserMediaPermissions.js +49 -0
- package/dist/src/openapi/src/models/UserPrivacy.d.ts +33 -0
- package/dist/src/openapi/src/models/UserPrivacy.js +49 -0
- package/dist/src/openapi/src/models/UserProfessional.d.ts +54 -0
- package/dist/src/openapi/src/models/UserProfessional.js +68 -0
- package/dist/src/openapi/src/models/UserProfessionalCategory.d.ts +45 -0
- package/dist/src/openapi/src/models/UserProfessionalCategory.js +59 -0
- package/dist/src/openapi/src/models/UserProfileBio.d.ts +33 -0
- package/dist/src/openapi/src/models/UserProfileBio.js +49 -0
- package/dist/src/openapi/src/models/UserRelationshipPerspectives.d.ts +57 -0
- package/dist/src/openapi/src/models/UserRelationshipPerspectives.js +57 -0
- package/dist/src/openapi/src/models/UserResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/UserResponse.js +55 -0
- package/dist/src/openapi/src/models/UserResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/UserResponseData.js +50 -0
- package/dist/src/openapi/src/models/UserResultByScreenName.d.ts +40 -0
- package/dist/src/openapi/src/models/UserResultByScreenName.js +56 -0
- package/dist/src/openapi/src/models/UserResultByScreenNameLegacy.d.ts +69 -0
- package/dist/src/openapi/src/models/UserResultByScreenNameLegacy.js +61 -0
- package/dist/src/openapi/src/models/UserResultByScreenNameResult.d.ts +61 -0
- package/dist/src/openapi/src/models/UserResultByScreenNameResult.js +69 -0
- package/dist/src/openapi/src/models/UserResultCore.d.ts +34 -0
- package/dist/src/openapi/src/models/UserResultCore.js +52 -0
- package/dist/src/openapi/src/models/UserResults.d.ts +34 -0
- package/dist/src/openapi/src/models/UserResults.js +50 -0
- package/dist/src/openapi/src/models/UserTipJarSettings.d.ts +81 -0
- package/dist/src/openapi/src/models/UserTipJarSettings.js +65 -0
- package/dist/src/openapi/src/models/UserTweetsData.d.ts +34 -0
- package/dist/src/openapi/src/models/UserTweetsData.js +50 -0
- package/dist/src/openapi/src/models/UserTweetsResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/UserTweetsResponse.js +55 -0
- package/dist/src/openapi/src/models/UserTweetsResultV1.d.ts +41 -0
- package/dist/src/openapi/src/models/UserTweetsResultV1.js +57 -0
- package/dist/src/openapi/src/models/UserTweetsResultV2.d.ts +41 -0
- package/dist/src/openapi/src/models/UserTweetsResultV2.js +57 -0
- package/dist/src/openapi/src/models/UserTweetsUser.d.ts +34 -0
- package/dist/src/openapi/src/models/UserTweetsUser.js +52 -0
- package/dist/src/openapi/src/models/UserUnavailable.d.ts +46 -0
- package/dist/src/openapi/src/models/UserUnavailable.js +58 -0
- package/dist/src/openapi/src/models/UserUnion.d.ts +28 -0
- package/dist/src/openapi/src/models/UserUnion.js +54 -0
- package/dist/src/openapi/src/models/UserValue.d.ts +33 -0
- package/dist/src/openapi/src/models/UserValue.js +51 -0
- package/dist/src/openapi/src/models/UserVerification.d.ts +33 -0
- package/dist/src/openapi/src/models/UserVerification.js +49 -0
- package/dist/src/openapi/src/models/UserVerificationInfo.d.ts +40 -0
- package/dist/src/openapi/src/models/UserVerificationInfo.js +54 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReason.d.ts +46 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReason.js +58 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReasonDescription.d.ts +40 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReasonDescription.js +56 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntities.d.ts +46 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntities.js +60 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +46 -0
- package/dist/src/openapi/src/models/UserVerificationInfoReasonDescriptionEntitiesRef.js +62 -0
- package/dist/src/openapi/src/models/UsersResponse.d.ts +41 -0
- package/dist/src/openapi/src/models/UsersResponse.js +55 -0
- package/dist/src/openapi/src/models/UsersResponseData.d.ts +34 -0
- package/dist/src/openapi/src/models/UsersResponseData.js +50 -0
- package/dist/src/openapi/src/models/index.d.ts +336 -0
- package/dist/src/openapi/src/models/index.js +354 -0
- package/dist/src/openapi/src/runtime.d.ts +185 -0
- package/dist/src/openapi/src/runtime.js +339 -0
- package/dist/src/utils/api.d.ts +30 -0
- package/dist/src/utils/api.js +270 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.js +18 -0
- package/package.json +41 -0
|
@@ -0,0 +1,874 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Twitter OpenAPI
|
|
6
|
+
* Twitter OpenAPI(Swagger) specification
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: yuki@yuki0311.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.PostApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class PostApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for postCreateBookmark without sending the request
|
|
58
|
+
*/
|
|
59
|
+
async postCreateBookmarkRequestOpts(requestParameters) {
|
|
60
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters['postCreateBookmarkRequest'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
71
|
+
}
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
74
|
+
}
|
|
75
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
76
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
77
|
+
}
|
|
78
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
79
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
80
|
+
}
|
|
81
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
82
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
83
|
+
}
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
88
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
89
|
+
}
|
|
90
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
91
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
92
|
+
}
|
|
93
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
94
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
95
|
+
}
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = await token("BearerAuth", []);
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
105
|
+
}
|
|
106
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
107
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
108
|
+
}
|
|
109
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
111
|
+
}
|
|
112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
114
|
+
}
|
|
115
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
117
|
+
}
|
|
118
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
119
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
120
|
+
}
|
|
121
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
122
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
123
|
+
}
|
|
124
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
125
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
126
|
+
}
|
|
127
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
128
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
129
|
+
}
|
|
130
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
132
|
+
}
|
|
133
|
+
let urlPath = `/graphql/{pathQueryId}/CreateBookmark`;
|
|
134
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
135
|
+
return {
|
|
136
|
+
path: urlPath,
|
|
137
|
+
method: 'POST',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* create Bookmark
|
|
145
|
+
*/
|
|
146
|
+
async postCreateBookmarkRaw(requestParameters, initOverrides) {
|
|
147
|
+
const requestOptions = await this.postCreateBookmarkRequestOpts(requestParameters);
|
|
148
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
149
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateBookmarkResponseFromJSON)(jsonValue));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* create Bookmark
|
|
153
|
+
*/
|
|
154
|
+
async postCreateBookmark(requestParameters, initOverrides) {
|
|
155
|
+
const response = await this.postCreateBookmarkRaw(requestParameters, initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Creates request options for postCreateRetweet without sending the request
|
|
160
|
+
*/
|
|
161
|
+
async postCreateRetweetRequestOpts(requestParameters) {
|
|
162
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['postCreateRetweetRequest'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter "postCreateRetweetRequest" was null or undefined when calling postCreateRetweet().');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
const headerParameters = {};
|
|
170
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
173
|
+
}
|
|
174
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
175
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
176
|
+
}
|
|
177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
179
|
+
}
|
|
180
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
181
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
182
|
+
}
|
|
183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
184
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
185
|
+
}
|
|
186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
187
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
188
|
+
}
|
|
189
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
190
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
191
|
+
}
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
194
|
+
}
|
|
195
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
196
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
197
|
+
}
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
const token = this.configuration.accessToken;
|
|
200
|
+
const tokenString = await token("BearerAuth", []);
|
|
201
|
+
if (tokenString) {
|
|
202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
206
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
207
|
+
}
|
|
208
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
209
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
210
|
+
}
|
|
211
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
212
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
213
|
+
}
|
|
214
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
215
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
216
|
+
}
|
|
217
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
218
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
219
|
+
}
|
|
220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
221
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
222
|
+
}
|
|
223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
224
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
225
|
+
}
|
|
226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
228
|
+
}
|
|
229
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
230
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
231
|
+
}
|
|
232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
234
|
+
}
|
|
235
|
+
let urlPath = `/graphql/{pathQueryId}/CreateRetweet`;
|
|
236
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
237
|
+
return {
|
|
238
|
+
path: urlPath,
|
|
239
|
+
method: 'POST',
|
|
240
|
+
headers: headerParameters,
|
|
241
|
+
query: queryParameters,
|
|
242
|
+
body: (0, index_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* create Retweet
|
|
247
|
+
*/
|
|
248
|
+
async postCreateRetweetRaw(requestParameters, initOverrides) {
|
|
249
|
+
const requestOptions = await this.postCreateRetweetRequestOpts(requestParameters);
|
|
250
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
251
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateRetweetResponseFromJSON)(jsonValue));
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* create Retweet
|
|
255
|
+
*/
|
|
256
|
+
async postCreateRetweet(requestParameters, initOverrides) {
|
|
257
|
+
const response = await this.postCreateRetweetRaw(requestParameters, initOverrides);
|
|
258
|
+
return await response.value();
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Creates request options for postCreateTweet without sending the request
|
|
262
|
+
*/
|
|
263
|
+
async postCreateTweetRequestOpts(requestParameters) {
|
|
264
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
265
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
|
|
266
|
+
}
|
|
267
|
+
if (requestParameters['postCreateTweetRequest'] == null) {
|
|
268
|
+
throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter "postCreateTweetRequest" was null or undefined when calling postCreateTweet().');
|
|
269
|
+
}
|
|
270
|
+
const queryParameters = {};
|
|
271
|
+
const headerParameters = {};
|
|
272
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
273
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
275
|
+
}
|
|
276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
278
|
+
}
|
|
279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
280
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
281
|
+
}
|
|
282
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
283
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
284
|
+
}
|
|
285
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
286
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
287
|
+
}
|
|
288
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
289
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
290
|
+
}
|
|
291
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
292
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
293
|
+
}
|
|
294
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
295
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
296
|
+
}
|
|
297
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
298
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
299
|
+
}
|
|
300
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
301
|
+
const token = this.configuration.accessToken;
|
|
302
|
+
const tokenString = await token("BearerAuth", []);
|
|
303
|
+
if (tokenString) {
|
|
304
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
309
|
+
}
|
|
310
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
311
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
312
|
+
}
|
|
313
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
314
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
315
|
+
}
|
|
316
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
318
|
+
}
|
|
319
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
320
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
321
|
+
}
|
|
322
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
323
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
324
|
+
}
|
|
325
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
326
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
327
|
+
}
|
|
328
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
329
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
330
|
+
}
|
|
331
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
332
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
333
|
+
}
|
|
334
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
335
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
336
|
+
}
|
|
337
|
+
let urlPath = `/graphql/{pathQueryId}/CreateTweet`;
|
|
338
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
339
|
+
return {
|
|
340
|
+
path: urlPath,
|
|
341
|
+
method: 'POST',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
body: (0, index_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* create Tweet
|
|
349
|
+
*/
|
|
350
|
+
async postCreateTweetRaw(requestParameters, initOverrides) {
|
|
351
|
+
const requestOptions = await this.postCreateTweetRequestOpts(requestParameters);
|
|
352
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
353
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateTweetResponseFromJSON)(jsonValue));
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* create Tweet
|
|
357
|
+
*/
|
|
358
|
+
async postCreateTweet(requestParameters, initOverrides) {
|
|
359
|
+
const response = await this.postCreateTweetRaw(requestParameters, initOverrides);
|
|
360
|
+
return await response.value();
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Creates request options for postDeleteBookmark without sending the request
|
|
364
|
+
*/
|
|
365
|
+
async postDeleteBookmarkRequestOpts(requestParameters) {
|
|
366
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
367
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
|
|
368
|
+
}
|
|
369
|
+
if (requestParameters['postDeleteBookmarkRequest'] == null) {
|
|
370
|
+
throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
|
|
371
|
+
}
|
|
372
|
+
const queryParameters = {};
|
|
373
|
+
const headerParameters = {};
|
|
374
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
375
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
376
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
377
|
+
}
|
|
378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
379
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
380
|
+
}
|
|
381
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
382
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
383
|
+
}
|
|
384
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
385
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
386
|
+
}
|
|
387
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
388
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
389
|
+
}
|
|
390
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
391
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
392
|
+
}
|
|
393
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
394
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
395
|
+
}
|
|
396
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
397
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
398
|
+
}
|
|
399
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
400
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
401
|
+
}
|
|
402
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
403
|
+
const token = this.configuration.accessToken;
|
|
404
|
+
const tokenString = await token("BearerAuth", []);
|
|
405
|
+
if (tokenString) {
|
|
406
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
410
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
411
|
+
}
|
|
412
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
413
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
414
|
+
}
|
|
415
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
416
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
417
|
+
}
|
|
418
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
419
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
420
|
+
}
|
|
421
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
422
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
423
|
+
}
|
|
424
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
425
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
426
|
+
}
|
|
427
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
428
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
429
|
+
}
|
|
430
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
431
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
432
|
+
}
|
|
433
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
434
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
435
|
+
}
|
|
436
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
437
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
438
|
+
}
|
|
439
|
+
let urlPath = `/graphql/{pathQueryId}/DeleteBookmark`;
|
|
440
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
441
|
+
return {
|
|
442
|
+
path: urlPath,
|
|
443
|
+
method: 'POST',
|
|
444
|
+
headers: headerParameters,
|
|
445
|
+
query: queryParameters,
|
|
446
|
+
body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* delete Bookmark
|
|
451
|
+
*/
|
|
452
|
+
async postDeleteBookmarkRaw(requestParameters, initOverrides) {
|
|
453
|
+
const requestOptions = await this.postDeleteBookmarkRequestOpts(requestParameters);
|
|
454
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
455
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteBookmarkResponseFromJSON)(jsonValue));
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* delete Bookmark
|
|
459
|
+
*/
|
|
460
|
+
async postDeleteBookmark(requestParameters, initOverrides) {
|
|
461
|
+
const response = await this.postDeleteBookmarkRaw(requestParameters, initOverrides);
|
|
462
|
+
return await response.value();
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Creates request options for postDeleteRetweet without sending the request
|
|
466
|
+
*/
|
|
467
|
+
async postDeleteRetweetRequestOpts(requestParameters) {
|
|
468
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
469
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
|
|
470
|
+
}
|
|
471
|
+
if (requestParameters['postDeleteRetweetRequest'] == null) {
|
|
472
|
+
throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter "postDeleteRetweetRequest" was null or undefined when calling postDeleteRetweet().');
|
|
473
|
+
}
|
|
474
|
+
const queryParameters = {};
|
|
475
|
+
const headerParameters = {};
|
|
476
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
477
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
478
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
479
|
+
}
|
|
480
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
481
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
482
|
+
}
|
|
483
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
484
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
485
|
+
}
|
|
486
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
487
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
488
|
+
}
|
|
489
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
490
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
491
|
+
}
|
|
492
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
493
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
494
|
+
}
|
|
495
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
496
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
497
|
+
}
|
|
498
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
499
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
500
|
+
}
|
|
501
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
502
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
503
|
+
}
|
|
504
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
505
|
+
const token = this.configuration.accessToken;
|
|
506
|
+
const tokenString = await token("BearerAuth", []);
|
|
507
|
+
if (tokenString) {
|
|
508
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
512
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
513
|
+
}
|
|
514
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
515
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
516
|
+
}
|
|
517
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
518
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
519
|
+
}
|
|
520
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
521
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
522
|
+
}
|
|
523
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
524
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
525
|
+
}
|
|
526
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
527
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
528
|
+
}
|
|
529
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
530
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
531
|
+
}
|
|
532
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
533
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
534
|
+
}
|
|
535
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
536
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
537
|
+
}
|
|
538
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
539
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
540
|
+
}
|
|
541
|
+
let urlPath = `/graphql/{pathQueryId}/DeleteRetweet`;
|
|
542
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
543
|
+
return {
|
|
544
|
+
path: urlPath,
|
|
545
|
+
method: 'POST',
|
|
546
|
+
headers: headerParameters,
|
|
547
|
+
query: queryParameters,
|
|
548
|
+
body: (0, index_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* delete Retweet
|
|
553
|
+
*/
|
|
554
|
+
async postDeleteRetweetRaw(requestParameters, initOverrides) {
|
|
555
|
+
const requestOptions = await this.postDeleteRetweetRequestOpts(requestParameters);
|
|
556
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
557
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteRetweetResponseFromJSON)(jsonValue));
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* delete Retweet
|
|
561
|
+
*/
|
|
562
|
+
async postDeleteRetweet(requestParameters, initOverrides) {
|
|
563
|
+
const response = await this.postDeleteRetweetRaw(requestParameters, initOverrides);
|
|
564
|
+
return await response.value();
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Creates request options for postDeleteTweet without sending the request
|
|
568
|
+
*/
|
|
569
|
+
async postDeleteTweetRequestOpts(requestParameters) {
|
|
570
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
571
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
|
|
572
|
+
}
|
|
573
|
+
if (requestParameters['postDeleteTweetRequest'] == null) {
|
|
574
|
+
throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter "postDeleteTweetRequest" was null or undefined when calling postDeleteTweet().');
|
|
575
|
+
}
|
|
576
|
+
const queryParameters = {};
|
|
577
|
+
const headerParameters = {};
|
|
578
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
579
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
580
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
581
|
+
}
|
|
582
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
583
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
584
|
+
}
|
|
585
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
586
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
587
|
+
}
|
|
588
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
589
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
590
|
+
}
|
|
591
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
592
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
593
|
+
}
|
|
594
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
595
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
596
|
+
}
|
|
597
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
598
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
599
|
+
}
|
|
600
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
601
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
602
|
+
}
|
|
603
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
604
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
605
|
+
}
|
|
606
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
607
|
+
const token = this.configuration.accessToken;
|
|
608
|
+
const tokenString = await token("BearerAuth", []);
|
|
609
|
+
if (tokenString) {
|
|
610
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
614
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
615
|
+
}
|
|
616
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
617
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
618
|
+
}
|
|
619
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
620
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
621
|
+
}
|
|
622
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
623
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
624
|
+
}
|
|
625
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
626
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
627
|
+
}
|
|
628
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
629
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
630
|
+
}
|
|
631
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
632
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
633
|
+
}
|
|
634
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
635
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
636
|
+
}
|
|
637
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
638
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
639
|
+
}
|
|
640
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
641
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
642
|
+
}
|
|
643
|
+
let urlPath = `/graphql/{pathQueryId}/DeleteTweet`;
|
|
644
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
645
|
+
return {
|
|
646
|
+
path: urlPath,
|
|
647
|
+
method: 'POST',
|
|
648
|
+
headers: headerParameters,
|
|
649
|
+
query: queryParameters,
|
|
650
|
+
body: (0, index_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* delete Retweet
|
|
655
|
+
*/
|
|
656
|
+
async postDeleteTweetRaw(requestParameters, initOverrides) {
|
|
657
|
+
const requestOptions = await this.postDeleteTweetRequestOpts(requestParameters);
|
|
658
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
659
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteTweetResponseFromJSON)(jsonValue));
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* delete Retweet
|
|
663
|
+
*/
|
|
664
|
+
async postDeleteTweet(requestParameters, initOverrides) {
|
|
665
|
+
const response = await this.postDeleteTweetRaw(requestParameters, initOverrides);
|
|
666
|
+
return await response.value();
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Creates request options for postFavoriteTweet without sending the request
|
|
670
|
+
*/
|
|
671
|
+
async postFavoriteTweetRequestOpts(requestParameters) {
|
|
672
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
673
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
|
|
674
|
+
}
|
|
675
|
+
if (requestParameters['postFavoriteTweetRequest'] == null) {
|
|
676
|
+
throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter "postFavoriteTweetRequest" was null or undefined when calling postFavoriteTweet().');
|
|
677
|
+
}
|
|
678
|
+
const queryParameters = {};
|
|
679
|
+
const headerParameters = {};
|
|
680
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
681
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
682
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
683
|
+
}
|
|
684
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
685
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
686
|
+
}
|
|
687
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
688
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
689
|
+
}
|
|
690
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
691
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
692
|
+
}
|
|
693
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
694
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
695
|
+
}
|
|
696
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
697
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
698
|
+
}
|
|
699
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
700
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
701
|
+
}
|
|
702
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
703
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
704
|
+
}
|
|
705
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
706
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
707
|
+
}
|
|
708
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
709
|
+
const token = this.configuration.accessToken;
|
|
710
|
+
const tokenString = await token("BearerAuth", []);
|
|
711
|
+
if (tokenString) {
|
|
712
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
716
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
717
|
+
}
|
|
718
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
719
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
720
|
+
}
|
|
721
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
722
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
723
|
+
}
|
|
724
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
725
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
726
|
+
}
|
|
727
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
728
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
729
|
+
}
|
|
730
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
731
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
732
|
+
}
|
|
733
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
734
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
735
|
+
}
|
|
736
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
737
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
738
|
+
}
|
|
739
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
740
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
741
|
+
}
|
|
742
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
743
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
744
|
+
}
|
|
745
|
+
let urlPath = `/graphql/{pathQueryId}/FavoriteTweet`;
|
|
746
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
747
|
+
return {
|
|
748
|
+
path: urlPath,
|
|
749
|
+
method: 'POST',
|
|
750
|
+
headers: headerParameters,
|
|
751
|
+
query: queryParameters,
|
|
752
|
+
body: (0, index_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* favorite Tweet
|
|
757
|
+
*/
|
|
758
|
+
async postFavoriteTweetRaw(requestParameters, initOverrides) {
|
|
759
|
+
const requestOptions = await this.postFavoriteTweetRequestOpts(requestParameters);
|
|
760
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
761
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FavoriteTweetResponseFromJSON)(jsonValue));
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* favorite Tweet
|
|
765
|
+
*/
|
|
766
|
+
async postFavoriteTweet(requestParameters, initOverrides) {
|
|
767
|
+
const response = await this.postFavoriteTweetRaw(requestParameters, initOverrides);
|
|
768
|
+
return await response.value();
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Creates request options for postUnfavoriteTweet without sending the request
|
|
772
|
+
*/
|
|
773
|
+
async postUnfavoriteTweetRequestOpts(requestParameters) {
|
|
774
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
775
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
|
|
776
|
+
}
|
|
777
|
+
if (requestParameters['postUnfavoriteTweetRequest'] == null) {
|
|
778
|
+
throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter "postUnfavoriteTweetRequest" was null or undefined when calling postUnfavoriteTweet().');
|
|
779
|
+
}
|
|
780
|
+
const queryParameters = {};
|
|
781
|
+
const headerParameters = {};
|
|
782
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
783
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
784
|
+
headerParameters["Accept"] = await this.configuration.apiKey("Accept"); // Accept authentication
|
|
785
|
+
}
|
|
786
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
787
|
+
headerParameters["x-twitter-client-language"] = await this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
788
|
+
}
|
|
789
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
790
|
+
headerParameters["Priority"] = await this.configuration.apiKey("Priority"); // Priority authentication
|
|
791
|
+
}
|
|
792
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
793
|
+
headerParameters["Referer"] = await this.configuration.apiKey("Referer"); // Referer authentication
|
|
794
|
+
}
|
|
795
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
796
|
+
headerParameters["Sec-Fetch-Dest"] = await this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
797
|
+
}
|
|
798
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
799
|
+
headerParameters["Sec-Ch-Ua-Platform"] = await this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
800
|
+
}
|
|
801
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
802
|
+
headerParameters["Sec-Fetch-Mode"] = await this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
803
|
+
}
|
|
804
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
805
|
+
headerParameters["x-csrf-token"] = await this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
806
|
+
}
|
|
807
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
808
|
+
headerParameters["x-client-uuid"] = await this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
809
|
+
}
|
|
810
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
811
|
+
const token = this.configuration.accessToken;
|
|
812
|
+
const tokenString = await token("BearerAuth", []);
|
|
813
|
+
if (tokenString) {
|
|
814
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
818
|
+
headerParameters["x-guest-token"] = await this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
819
|
+
}
|
|
820
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
821
|
+
headerParameters["Sec-Ch-Ua"] = await this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
822
|
+
}
|
|
823
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
824
|
+
headerParameters["x-client-transaction-id"] = await this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
825
|
+
}
|
|
826
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
827
|
+
headerParameters["x-twitter-active-user"] = await this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
828
|
+
}
|
|
829
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
830
|
+
headerParameters["user-agent"] = await this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
831
|
+
}
|
|
832
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
833
|
+
headerParameters["Accept-Language"] = await this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
834
|
+
}
|
|
835
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
836
|
+
headerParameters["Sec-Fetch-Site"] = await this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
837
|
+
}
|
|
838
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
839
|
+
headerParameters["x-twitter-auth-type"] = await this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
840
|
+
}
|
|
841
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
842
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = await this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
843
|
+
}
|
|
844
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
845
|
+
headerParameters["Accept-Encoding"] = await this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
846
|
+
}
|
|
847
|
+
let urlPath = `/graphql/{pathQueryId}/UnfavoriteTweet`;
|
|
848
|
+
urlPath = urlPath.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
849
|
+
return {
|
|
850
|
+
path: urlPath,
|
|
851
|
+
method: 'POST',
|
|
852
|
+
headers: headerParameters,
|
|
853
|
+
query: queryParameters,
|
|
854
|
+
body: (0, index_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* unfavorite Tweet
|
|
859
|
+
*/
|
|
860
|
+
async postUnfavoriteTweetRaw(requestParameters, initOverrides) {
|
|
861
|
+
const requestOptions = await this.postUnfavoriteTweetRequestOpts(requestParameters);
|
|
862
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
863
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UnfavoriteTweetResponseFromJSON)(jsonValue));
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* unfavorite Tweet
|
|
867
|
+
*/
|
|
868
|
+
async postUnfavoriteTweet(requestParameters, initOverrides) {
|
|
869
|
+
const response = await this.postUnfavoriteTweetRaw(requestParameters, initOverrides);
|
|
870
|
+
return await response.value();
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
exports.PostApi = PostApi;
|
|
874
|
+
//# sourceMappingURL=PostApi.js.map
|