twitter-openapi-typescript-generated 0.0.38 → 0.0.40
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 +692 -28
- package/dist/apis/DefaultApi.d.ts +10 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +64 -25
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +5 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +31 -13
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +48 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +272 -105
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +71 -1
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +476 -181
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +9 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +63 -25
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +40 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +394 -61
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +5 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +32 -13
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts +8 -0
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +58 -22
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts +8 -0
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +50 -16
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts +4 -0
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +29 -11
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/ArticlePreview.d.ts +52 -0
- package/dist/models/ArticlePreview.d.ts.map +1 -0
- package/dist/models/ArticlePreview.js +63 -0
- package/dist/models/ArticlePreview.js.map +1 -0
- package/dist/models/ArticleResult.d.ts +21 -1
- package/dist/models/ArticleResult.d.ts.map +1 -1
- package/dist/models/ArticleResult.js +7 -3
- package/dist/models/ArticleResult.js.map +1 -1
- package/dist/models/AuthorCommunityRelationship.d.ts +5 -4
- package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -1
- package/dist/models/AuthorCommunityRelationship.js +5 -4
- package/dist/models/AuthorCommunityRelationship.js.map +1 -1
- package/dist/models/BirdwatchEntityRef.d.ts +2 -2
- package/dist/models/BirdwatchPivot.d.ts +16 -2
- package/dist/models/BirdwatchPivot.d.ts.map +1 -1
- package/dist/models/BirdwatchPivot.js +11 -2
- package/dist/models/BirdwatchPivot.js.map +1 -1
- package/dist/models/BirdwatchPivotNote.d.ts +19 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -1
- package/dist/models/BirdwatchPivotNote.js +7 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -1
- package/dist/models/Community.d.ts +189 -3
- package/dist/models/Community.d.ts.map +1 -1
- package/dist/models/Community.js +82 -4
- package/dist/models/Community.js.map +1 -1
- package/dist/models/CommunityDeleteActionResult.d.ts +1 -1
- package/dist/models/CommunityInvitesResult.d.ts +1 -1
- package/dist/models/CommunityJoinActionResultUnion.d.ts.map +1 -1
- package/dist/models/CommunityJoinActionResultUnion.js +2 -2
- package/dist/models/CommunityJoinActionResultUnion.js.map +1 -1
- package/dist/models/CommunityJoinActionUnavailable.d.ts +1 -1
- package/dist/models/CommunityLeaveActionResult.d.ts +1 -1
- package/dist/models/CommunityResult.d.ts +34 -0
- package/dist/models/CommunityResult.d.ts.map +1 -0
- package/dist/models/CommunityResult.js +53 -0
- package/dist/models/CommunityResult.js.map +1 -0
- package/dist/models/CommunityUnavailable.d.ts +34 -0
- package/dist/models/CommunityUnavailable.d.ts.map +1 -0
- package/dist/models/CommunityUnavailable.js +53 -0
- package/dist/models/CommunityUnavailable.js.map +1 -0
- package/dist/models/CommunityUnion.d.ts +28 -0
- package/dist/models/CommunityUnion.d.ts.map +1 -0
- package/dist/models/CommunityUnion.js +55 -0
- package/dist/models/CommunityUnion.js.map +1 -0
- package/dist/models/ContentDisclosure.d.ts +41 -0
- package/dist/models/ContentDisclosure.d.ts.map +1 -0
- package/dist/models/ContentDisclosure.js +54 -0
- package/dist/models/ContentDisclosure.js.map +1 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts +33 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.d.ts.map +1 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.js +52 -0
- package/dist/models/ContentDisclosureAdvertisingDisclosure.js.map +1 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts +54 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.d.ts.map +1 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.js +67 -0
- package/dist/models/ContentDisclosureAiGeneratedDisclosure.js.map +1 -0
- package/dist/models/ContentUnion.d.ts.map +1 -1
- package/dist/models/ContentUnion.js +2 -2
- package/dist/models/ContentUnion.js.map +1 -1
- package/dist/models/ConversationControl.d.ts +1 -1
- package/dist/models/CoverCta.d.ts +1 -1
- package/dist/models/CtaClientEventInfo.d.ts +1 -1
- package/dist/models/Entities.d.ts +11 -4
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/Entities.js +8 -13
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/ErrorResponse.d.ts +3 -2
- package/dist/models/ErrorResponse.d.ts.map +1 -1
- package/dist/models/ErrorResponse.js +3 -2
- package/dist/models/ErrorResponse.js.map +1 -1
- package/dist/models/ErrorResponsePathInner.d.ts +22 -0
- package/dist/models/ErrorResponsePathInner.d.ts.map +1 -0
- package/dist/models/ErrorResponsePathInner.js +51 -0
- package/dist/models/ErrorResponsePathInner.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +1 -1
- package/dist/models/GrokAnnotation.d.ts +33 -0
- package/dist/models/GrokAnnotation.d.ts.map +1 -0
- package/dist/models/GrokAnnotation.js +50 -0
- package/dist/models/GrokAnnotation.js.map +1 -0
- package/dist/models/GrokEntity.d.ts +46 -0
- package/dist/models/GrokEntity.d.ts.map +1 -0
- package/dist/models/GrokEntity.js +61 -0
- package/dist/models/GrokEntity.js.map +1 -0
- package/dist/models/GrokEntityRef.d.ts +78 -0
- package/dist/models/GrokEntityRef.d.ts.map +1 -0
- package/dist/models/GrokEntityRef.js +76 -0
- package/dist/models/GrokEntityRef.js.map +1 -0
- package/dist/models/GrokShareAttachmentItem.d.ts +8 -0
- package/dist/models/GrokShareAttachmentItem.d.ts.map +1 -1
- package/dist/models/GrokShareAttachmentItem.js +2 -0
- package/dist/models/GrokShareAttachmentItem.js.map +1 -1
- package/dist/models/GrokTranslatedCommunityNote.d.ts +58 -0
- package/dist/models/GrokTranslatedCommunityNote.d.ts.map +1 -0
- package/dist/models/GrokTranslatedCommunityNote.js +67 -0
- package/dist/models/GrokTranslatedCommunityNote.js.map +1 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts +40 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.d.ts.map +1 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js +55 -0
- package/dist/models/GrokTranslatedCommunityNoteWithAvailability.js.map +1 -0
- package/dist/models/GrokTranslatedPost.d.ts +66 -0
- package/dist/models/GrokTranslatedPost.d.ts.map +1 -0
- package/dist/models/GrokTranslatedPost.js +61 -0
- package/dist/models/GrokTranslatedPost.js.map +1 -0
- package/dist/models/GrokTranslatedPostWithAvailability.d.ts +40 -0
- package/dist/models/GrokTranslatedPostWithAvailability.d.ts.map +1 -0
- package/dist/models/GrokTranslatedPostWithAvailability.js +55 -0
- package/dist/models/GrokTranslatedPostWithAvailability.js.map +1 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +2 -2
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +2 -2
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/LimitedActionResultsData.d.ts +1 -1
- package/dist/models/Media.d.ts +7 -1
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +2 -0
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +7 -1
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +2 -0
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/MediaSize.d.ts +1 -1
- package/dist/models/NoteTweet.d.ts +1 -1
- package/dist/models/NoteTweet.d.ts.map +1 -1
- package/dist/models/NoteTweet.js +1 -3
- package/dist/models/NoteTweet.js.map +1 -1
- package/dist/models/NoteTweetResultRichTextTag.d.ts +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +50 -8
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +39 -11
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCta.d.ts +58 -0
- package/dist/models/PostCta.d.ts.map +1 -0
- package/dist/models/PostCta.js +69 -0
- package/dist/models/PostCta.js.map +1 -0
- package/dist/models/PostCtaTitleText.d.ts +40 -0
- package/dist/models/PostCtaTitleText.d.ts.map +1 -0
- package/dist/models/PostCtaTitleText.js +57 -0
- package/dist/models/PostCtaTitleText.js.map +1 -0
- package/dist/models/PostCtaTitleTextEntity.d.ts +46 -0
- package/dist/models/PostCtaTitleTextEntity.d.ts.map +1 -0
- package/dist/models/PostCtaTitleTextEntity.js +61 -0
- package/dist/models/PostCtaTitleTextEntity.js.map +1 -0
- package/dist/models/PostCtaTitleTextEntityRef.d.ts +41 -0
- package/dist/models/PostCtaTitleTextEntityRef.d.ts.map +1 -0
- package/dist/models/PostCtaTitleTextEntityRef.js +56 -0
- package/dist/models/PostCtaTitleTextEntityRef.js.map +1 -0
- package/dist/models/PostCtaUserResults.d.ts +34 -0
- package/dist/models/PostCtaUserResults.d.ts.map +1 -0
- package/dist/models/PostCtaUserResults.js +53 -0
- package/dist/models/PostCtaUserResults.js.map +1 -0
- package/dist/models/PostCtaUserResultsAvatar.d.ts +33 -0
- package/dist/models/PostCtaUserResultsAvatar.d.ts.map +1 -0
- package/dist/models/PostCtaUserResultsAvatar.js +52 -0
- package/dist/models/PostCtaUserResultsAvatar.js.map +1 -0
- package/dist/models/PostCtaUserResultsResult.d.ts +41 -0
- package/dist/models/PostCtaUserResultsResult.d.ts.map +1 -0
- package/dist/models/PostCtaUserResultsResult.js +58 -0
- package/dist/models/PostCtaUserResultsResult.js.map +1 -0
- package/dist/models/ProfileBio.d.ts +33 -0
- package/dist/models/ProfileBio.d.ts.map +1 -0
- package/dist/models/ProfileBio.js +52 -0
- package/dist/models/ProfileBio.js.map +1 -0
- package/dist/models/Session.d.ts +1 -1
- package/dist/models/Smarttag.d.ts +46 -0
- package/dist/models/Smarttag.d.ts.map +1 -0
- package/dist/models/Smarttag.js +61 -0
- package/dist/models/Smarttag.js.map +1 -0
- package/dist/models/SmarttagTag.d.ts +35 -0
- package/dist/models/SmarttagTag.d.ts.map +1 -0
- package/dist/models/SmarttagTag.js +52 -0
- package/dist/models/SmarttagTag.js.map +1 -0
- package/dist/models/SocialContextLandingUrl.d.ts +1 -1
- package/dist/models/SocialContextUnion.d.ts.map +1 -1
- package/dist/models/SocialContextUnion.js +2 -2
- package/dist/models/SocialContextUnion.js.map +1 -1
- package/dist/models/SuperFollowUserProfile.d.ts +33 -0
- package/dist/models/SuperFollowUserProfile.d.ts.map +1 -0
- package/dist/models/SuperFollowUserProfile.js +52 -0
- package/dist/models/SuperFollowUserProfile.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultCore.d.ts +33 -0
- package/dist/models/SuperFollowsReplyUserResultCore.d.ts.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultCore.js +52 -0
- package/dist/models/SuperFollowsReplyUserResultCore.js.map +1 -0
- package/dist/models/SuperFollowsReplyUserResultData.d.ts +3 -3
- package/dist/models/SuperFollowsReplyUserResultData.d.ts.map +1 -1
- package/dist/models/SuperFollowsReplyUserResultData.js +3 -5
- package/dist/models/SuperFollowsReplyUserResultData.js.map +1 -1
- package/dist/models/TextEntityRef.d.ts +2 -2
- package/dist/models/TimelineCoverBehavior.d.ts +1 -1
- package/dist/models/TimelineCoverBehaviorUrl.d.ts +1 -1
- package/dist/models/TimelineGeneralContext.d.ts +1 -1
- package/dist/models/TimelineHalfCover.d.ts +2 -2
- package/dist/models/TimelineShowAlert.d.ts +9 -2
- package/dist/models/TimelineShowAlert.d.ts.map +1 -1
- package/dist/models/TimelineShowAlert.js +3 -0
- package/dist/models/TimelineShowAlert.js.map +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
- package/dist/models/TimelineTombstone.d.ts +1 -1
- package/dist/models/TimelineTopicContext.d.ts +1 -1
- package/dist/models/TimelineTweet.d.ts +1 -1
- package/dist/models/TimelineUser.d.ts +1 -1
- package/dist/models/TombstoneRef.d.ts +2 -2
- package/dist/models/Tweet.d.ts +43 -3
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +19 -3
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardPlatformAudience.d.ts +1 -1
- package/dist/models/TweetInterstitial.d.ts +2 -1
- package/dist/models/TweetInterstitial.d.ts.map +1 -1
- package/dist/models/TweetInterstitial.js +2 -1
- package/dist/models/TweetInterstitial.js.map +1 -1
- package/dist/models/TweetInterstitialTextEntityRef.d.ts +2 -2
- package/dist/models/TweetLegacy.d.ts +2 -2
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +1 -3
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetPostCta.d.ts +55 -0
- package/dist/models/TweetPostCta.d.ts.map +1 -0
- package/dist/models/TweetPostCta.js +68 -0
- package/dist/models/TweetPostCta.js.map +1 -0
- package/dist/models/TweetPreviewDisplayCtaUrl.d.ts +1 -1
- package/dist/models/TweetPreviewDisplayTweet.d.ts +7 -0
- package/dist/models/TweetPreviewDisplayTweet.d.ts.map +1 -1
- package/dist/models/TweetPreviewDisplayTweet.js +3 -0
- package/dist/models/TweetPreviewDisplayTweet.js.map +1 -1
- package/dist/models/TweetUnion.d.ts.map +1 -1
- package/dist/models/TweetUnion.js +2 -2
- package/dist/models/TweetUnion.js.map +1 -1
- package/dist/models/TweetView.d.ts +1 -1
- package/dist/models/TypeName.d.ts +2 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +3 -1
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UnifiedCard.d.ts +1 -1
- package/dist/models/User.d.ts +92 -3
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/User.js +40 -3
- package/dist/models/User.js.map +1 -1
- package/dist/models/UserAvatar.d.ts +33 -0
- package/dist/models/UserAvatar.d.ts.map +1 -0
- package/dist/models/UserAvatar.js +52 -0
- package/dist/models/UserAvatar.js.map +1 -0
- package/dist/models/UserCore.d.ts +45 -0
- package/dist/models/UserCore.d.ts.map +1 -0
- package/dist/models/UserCore.js +60 -0
- package/dist/models/UserCore.js.map +1 -0
- package/dist/models/UserDmPermissions.d.ts +33 -0
- package/dist/models/UserDmPermissions.d.ts.map +1 -0
- package/dist/models/UserDmPermissions.js +52 -0
- package/dist/models/UserDmPermissions.js.map +1 -0
- package/dist/models/UserLegacy.d.ts +32 -8
- package/dist/models/UserLegacy.d.ts.map +1 -1
- package/dist/models/UserLegacy.js +22 -20
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +2 -2
- package/dist/models/UserLocation.d.ts +33 -0
- package/dist/models/UserLocation.d.ts.map +1 -0
- package/dist/models/UserLocation.js +52 -0
- package/dist/models/UserLocation.js.map +1 -0
- package/dist/models/UserMediaPermissions.d.ts +33 -0
- package/dist/models/UserMediaPermissions.d.ts.map +1 -0
- package/dist/models/UserMediaPermissions.js +52 -0
- package/dist/models/UserMediaPermissions.js.map +1 -0
- package/dist/models/UserPrivacy.d.ts +33 -0
- package/dist/models/UserPrivacy.d.ts.map +1 -0
- package/dist/models/UserPrivacy.js +52 -0
- package/dist/models/UserPrivacy.js.map +1 -0
- package/dist/models/UserProfessional.d.ts +2 -2
- package/dist/models/UserProfessional.d.ts.map +1 -1
- package/dist/models/UserProfessional.js +2 -4
- package/dist/models/UserProfessional.js.map +1 -1
- package/dist/models/UserProfile.d.ts +34 -0
- package/dist/models/UserProfile.d.ts.map +1 -0
- package/dist/models/UserProfile.js +53 -0
- package/dist/models/UserProfile.js.map +1 -0
- package/dist/models/UserRelationshipPerspectives.d.ts +51 -0
- package/dist/models/UserRelationshipPerspectives.d.ts.map +1 -0
- package/dist/models/UserRelationshipPerspectives.js +56 -0
- package/dist/models/UserRelationshipPerspectives.js.map +1 -0
- package/dist/models/UserResultByScreenNameCore.d.ts +39 -0
- package/dist/models/UserResultByScreenNameCore.d.ts.map +1 -0
- package/dist/models/UserResultByScreenNameCore.js +56 -0
- package/dist/models/UserResultByScreenNameCore.js.map +1 -0
- package/dist/models/UserResultByScreenNameResult.d.ts +22 -1
- package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
- package/dist/models/UserResultByScreenNameResult.js +15 -2
- package/dist/models/UserResultByScreenNameResult.js.map +1 -1
- package/dist/models/UserResultPrivacy.d.ts +33 -0
- package/dist/models/UserResultPrivacy.d.ts.map +1 -0
- package/dist/models/UserResultPrivacy.js +52 -0
- package/dist/models/UserResultPrivacy.js.map +1 -0
- package/dist/models/UserResultRelationshipPerspectives.d.ts +51 -0
- package/dist/models/UserResultRelationshipPerspectives.d.ts.map +1 -0
- package/dist/models/UserResultRelationshipPerspectives.js +56 -0
- package/dist/models/UserResultRelationshipPerspectives.js.map +1 -0
- package/dist/models/UserUnion.d.ts.map +1 -1
- package/dist/models/UserUnion.js +2 -2
- package/dist/models/UserUnion.js.map +1 -1
- package/dist/models/UserVerification.d.ts +47 -0
- package/dist/models/UserVerification.d.ts.map +1 -0
- package/dist/models/UserVerification.js +62 -0
- package/dist/models/UserVerification.js.map +1 -0
- package/dist/models/UserVerificationInfoReasonDescriptionEntitiesRef.d.ts +1 -1
- package/dist/models/index.d.ts +40 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +40 -1
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +25 -5
- package/dist/runtime.js.map +1 -1
- package/package.json +2 -2
- package/dist/models/CommunityData.d.ts +0 -220
- package/dist/models/CommunityData.d.ts.map +0 -1
- package/dist/models/CommunityData.js +0 -133
- package/dist/models/CommunityData.js.map +0 -1
package/dist/apis/TweetApi.js
CHANGED
|
@@ -66,7 +66,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.TweetApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
-
var
|
|
69
|
+
var BookmarksResponse_1 = require("../models/BookmarksResponse");
|
|
70
|
+
var CommunityAboutTimelineResponse_1 = require("../models/CommunityAboutTimelineResponse");
|
|
71
|
+
var CommunityMediaTimelineResponse_1 = require("../models/CommunityMediaTimelineResponse");
|
|
72
|
+
var CommunityTweetsTimelineResponse_1 = require("../models/CommunityTweetsTimelineResponse");
|
|
73
|
+
var ListLatestTweetsTimelineResponse_1 = require("../models/ListLatestTweetsTimelineResponse");
|
|
74
|
+
var NotificationsTimelineResponse_1 = require("../models/NotificationsTimelineResponse");
|
|
75
|
+
var SearchTimelineResponse_1 = require("../models/SearchTimelineResponse");
|
|
76
|
+
var TimelineResponse_1 = require("../models/TimelineResponse");
|
|
77
|
+
var TweetDetailResponse_1 = require("../models/TweetDetailResponse");
|
|
78
|
+
var UserHighlightsTweetsResponse_1 = require("../models/UserHighlightsTweetsResponse");
|
|
79
|
+
var UserTweetsResponse_1 = require("../models/UserTweetsResponse");
|
|
70
80
|
/**
|
|
71
81
|
*
|
|
72
82
|
*/
|
|
@@ -76,11 +86,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
76
86
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
87
|
}
|
|
78
88
|
/**
|
|
79
|
-
*
|
|
89
|
+
* Creates request options for getBookmarks without sending the request
|
|
80
90
|
*/
|
|
81
|
-
TweetApi.prototype.
|
|
91
|
+
TweetApi.prototype.getBookmarksRequestOpts = function (requestParameters) {
|
|
82
92
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
93
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
84
94
|
return __generator(this, function (_14) {
|
|
85
95
|
switch (_14.label) {
|
|
86
96
|
case 0:
|
|
@@ -262,15 +272,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
262
272
|
case 39:
|
|
263
273
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
264
274
|
_14.label = 40;
|
|
265
|
-
case 40:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
275
|
+
case 40:
|
|
276
|
+
urlPath = "/graphql/{pathQueryId}/Bookmarks";
|
|
277
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
278
|
+
return [2 /*return*/, {
|
|
279
|
+
path: urlPath,
|
|
280
|
+
method: 'GET',
|
|
281
|
+
headers: headerParameters,
|
|
282
|
+
query: queryParameters,
|
|
283
|
+
}];
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* get bookmarks
|
|
290
|
+
*/
|
|
291
|
+
TweetApi.prototype.getBookmarksRaw = function (requestParameters, initOverrides) {
|
|
292
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
293
|
+
var requestOptions, response;
|
|
294
|
+
return __generator(this, function (_a) {
|
|
295
|
+
switch (_a.label) {
|
|
296
|
+
case 0: return [4 /*yield*/, this.getBookmarksRequestOpts(requestParameters)];
|
|
297
|
+
case 1:
|
|
298
|
+
requestOptions = _a.sent();
|
|
299
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
300
|
+
case 2:
|
|
301
|
+
response = _a.sent();
|
|
302
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, BookmarksResponse_1.BookmarksResponseFromJSON)(jsonValue); })];
|
|
274
303
|
}
|
|
275
304
|
});
|
|
276
305
|
});
|
|
@@ -293,11 +322,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
293
322
|
});
|
|
294
323
|
};
|
|
295
324
|
/**
|
|
296
|
-
*
|
|
325
|
+
* Creates request options for getCommunityAboutTimeline without sending the request
|
|
297
326
|
*/
|
|
298
|
-
TweetApi.prototype.
|
|
327
|
+
TweetApi.prototype.getCommunityAboutTimelineRequestOpts = function (requestParameters) {
|
|
299
328
|
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
329
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
301
330
|
return __generator(this, function (_14) {
|
|
302
331
|
switch (_14.label) {
|
|
303
332
|
case 0:
|
|
@@ -479,15 +508,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
479
508
|
case 39:
|
|
480
509
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
481
510
|
_14.label = 40;
|
|
482
|
-
case 40:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
511
|
+
case 40:
|
|
512
|
+
urlPath = "/graphql/{pathQueryId}/CommunityAboutTimeline";
|
|
513
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
514
|
+
return [2 /*return*/, {
|
|
515
|
+
path: urlPath,
|
|
516
|
+
method: 'GET',
|
|
517
|
+
headers: headerParameters,
|
|
518
|
+
query: queryParameters,
|
|
519
|
+
}];
|
|
520
|
+
}
|
|
521
|
+
});
|
|
522
|
+
});
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* get about of community
|
|
526
|
+
*/
|
|
527
|
+
TweetApi.prototype.getCommunityAboutTimelineRaw = function (requestParameters, initOverrides) {
|
|
528
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
529
|
+
var requestOptions, response;
|
|
530
|
+
return __generator(this, function (_a) {
|
|
531
|
+
switch (_a.label) {
|
|
532
|
+
case 0: return [4 /*yield*/, this.getCommunityAboutTimelineRequestOpts(requestParameters)];
|
|
533
|
+
case 1:
|
|
534
|
+
requestOptions = _a.sent();
|
|
535
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
536
|
+
case 2:
|
|
537
|
+
response = _a.sent();
|
|
538
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CommunityAboutTimelineResponse_1.CommunityAboutTimelineResponseFromJSON)(jsonValue); })];
|
|
491
539
|
}
|
|
492
540
|
});
|
|
493
541
|
});
|
|
@@ -510,11 +558,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
510
558
|
});
|
|
511
559
|
};
|
|
512
560
|
/**
|
|
513
|
-
*
|
|
561
|
+
* Creates request options for getCommunityMediaTimeline without sending the request
|
|
514
562
|
*/
|
|
515
|
-
TweetApi.prototype.
|
|
563
|
+
TweetApi.prototype.getCommunityMediaTimelineRequestOpts = function (requestParameters) {
|
|
516
564
|
return __awaiter(this, void 0, void 0, function () {
|
|
517
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
565
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
518
566
|
return __generator(this, function (_14) {
|
|
519
567
|
switch (_14.label) {
|
|
520
568
|
case 0:
|
|
@@ -696,15 +744,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
696
744
|
case 39:
|
|
697
745
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
698
746
|
_14.label = 40;
|
|
699
|
-
case 40:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
747
|
+
case 40:
|
|
748
|
+
urlPath = "/graphql/{pathQueryId}/CommunityMediaTimeline";
|
|
749
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
750
|
+
return [2 /*return*/, {
|
|
751
|
+
path: urlPath,
|
|
752
|
+
method: 'GET',
|
|
753
|
+
headers: headerParameters,
|
|
754
|
+
query: queryParameters,
|
|
755
|
+
}];
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* get media list of community
|
|
762
|
+
*/
|
|
763
|
+
TweetApi.prototype.getCommunityMediaTimelineRaw = function (requestParameters, initOverrides) {
|
|
764
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
765
|
+
var requestOptions, response;
|
|
766
|
+
return __generator(this, function (_a) {
|
|
767
|
+
switch (_a.label) {
|
|
768
|
+
case 0: return [4 /*yield*/, this.getCommunityMediaTimelineRequestOpts(requestParameters)];
|
|
769
|
+
case 1:
|
|
770
|
+
requestOptions = _a.sent();
|
|
771
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
772
|
+
case 2:
|
|
773
|
+
response = _a.sent();
|
|
774
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CommunityMediaTimelineResponse_1.CommunityMediaTimelineResponseFromJSON)(jsonValue); })];
|
|
708
775
|
}
|
|
709
776
|
});
|
|
710
777
|
});
|
|
@@ -727,11 +794,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
727
794
|
});
|
|
728
795
|
};
|
|
729
796
|
/**
|
|
730
|
-
*
|
|
797
|
+
* Creates request options for getCommunityTweetsTimeline without sending the request
|
|
731
798
|
*/
|
|
732
|
-
TweetApi.prototype.
|
|
799
|
+
TweetApi.prototype.getCommunityTweetsTimelineRequestOpts = function (requestParameters) {
|
|
733
800
|
return __awaiter(this, void 0, void 0, function () {
|
|
734
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
801
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
735
802
|
return __generator(this, function (_14) {
|
|
736
803
|
switch (_14.label) {
|
|
737
804
|
case 0:
|
|
@@ -913,15 +980,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
913
980
|
case 39:
|
|
914
981
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
915
982
|
_14.label = 40;
|
|
916
|
-
case 40:
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
983
|
+
case 40:
|
|
984
|
+
urlPath = "/graphql/{pathQueryId}/CommunityTweetsTimeline";
|
|
985
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
986
|
+
return [2 /*return*/, {
|
|
987
|
+
path: urlPath,
|
|
988
|
+
method: 'GET',
|
|
989
|
+
headers: headerParameters,
|
|
990
|
+
query: queryParameters,
|
|
991
|
+
}];
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
});
|
|
995
|
+
};
|
|
996
|
+
/**
|
|
997
|
+
* get tweet list of community. rankingMode:[Recency, Relevance]
|
|
998
|
+
*/
|
|
999
|
+
TweetApi.prototype.getCommunityTweetsTimelineRaw = function (requestParameters, initOverrides) {
|
|
1000
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1001
|
+
var requestOptions, response;
|
|
1002
|
+
return __generator(this, function (_a) {
|
|
1003
|
+
switch (_a.label) {
|
|
1004
|
+
case 0: return [4 /*yield*/, this.getCommunityTweetsTimelineRequestOpts(requestParameters)];
|
|
1005
|
+
case 1:
|
|
1006
|
+
requestOptions = _a.sent();
|
|
1007
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1008
|
+
case 2:
|
|
1009
|
+
response = _a.sent();
|
|
1010
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, CommunityTweetsTimelineResponse_1.CommunityTweetsTimelineResponseFromJSON)(jsonValue); })];
|
|
925
1011
|
}
|
|
926
1012
|
});
|
|
927
1013
|
});
|
|
@@ -944,11 +1030,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
944
1030
|
});
|
|
945
1031
|
};
|
|
946
1032
|
/**
|
|
947
|
-
*
|
|
1033
|
+
* Creates request options for getHomeLatestTimeline without sending the request
|
|
948
1034
|
*/
|
|
949
|
-
TweetApi.prototype.
|
|
1035
|
+
TweetApi.prototype.getHomeLatestTimelineRequestOpts = function (requestParameters) {
|
|
950
1036
|
return __awaiter(this, void 0, void 0, function () {
|
|
951
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1037
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
952
1038
|
return __generator(this, function (_14) {
|
|
953
1039
|
switch (_14.label) {
|
|
954
1040
|
case 0:
|
|
@@ -1130,15 +1216,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1130
1216
|
case 39:
|
|
1131
1217
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1132
1218
|
_14.label = 40;
|
|
1133
|
-
case 40:
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1219
|
+
case 40:
|
|
1220
|
+
urlPath = "/graphql/{pathQueryId}/HomeLatestTimeline";
|
|
1221
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1222
|
+
return [2 /*return*/, {
|
|
1223
|
+
path: urlPath,
|
|
1224
|
+
method: 'GET',
|
|
1225
|
+
headers: headerParameters,
|
|
1226
|
+
query: queryParameters,
|
|
1227
|
+
}];
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
});
|
|
1231
|
+
};
|
|
1232
|
+
/**
|
|
1233
|
+
* get tweet list of timeline
|
|
1234
|
+
*/
|
|
1235
|
+
TweetApi.prototype.getHomeLatestTimelineRaw = function (requestParameters, initOverrides) {
|
|
1236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1237
|
+
var requestOptions, response;
|
|
1238
|
+
return __generator(this, function (_a) {
|
|
1239
|
+
switch (_a.label) {
|
|
1240
|
+
case 0: return [4 /*yield*/, this.getHomeLatestTimelineRequestOpts(requestParameters)];
|
|
1241
|
+
case 1:
|
|
1242
|
+
requestOptions = _a.sent();
|
|
1243
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1244
|
+
case 2:
|
|
1245
|
+
response = _a.sent();
|
|
1246
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TimelineResponse_1.TimelineResponseFromJSON)(jsonValue); })];
|
|
1142
1247
|
}
|
|
1143
1248
|
});
|
|
1144
1249
|
});
|
|
@@ -1161,11 +1266,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1161
1266
|
});
|
|
1162
1267
|
};
|
|
1163
1268
|
/**
|
|
1164
|
-
*
|
|
1269
|
+
* Creates request options for getHomeTimeline without sending the request
|
|
1165
1270
|
*/
|
|
1166
|
-
TweetApi.prototype.
|
|
1271
|
+
TweetApi.prototype.getHomeTimelineRequestOpts = function (requestParameters) {
|
|
1167
1272
|
return __awaiter(this, void 0, void 0, function () {
|
|
1168
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1273
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1169
1274
|
return __generator(this, function (_14) {
|
|
1170
1275
|
switch (_14.label) {
|
|
1171
1276
|
case 0:
|
|
@@ -1347,15 +1452,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1347
1452
|
case 39:
|
|
1348
1453
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1349
1454
|
_14.label = 40;
|
|
1350
|
-
case 40:
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1455
|
+
case 40:
|
|
1456
|
+
urlPath = "/graphql/{pathQueryId}/HomeTimeline";
|
|
1457
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1458
|
+
return [2 /*return*/, {
|
|
1459
|
+
path: urlPath,
|
|
1460
|
+
method: 'GET',
|
|
1461
|
+
headers: headerParameters,
|
|
1462
|
+
query: queryParameters,
|
|
1463
|
+
}];
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
});
|
|
1467
|
+
};
|
|
1468
|
+
/**
|
|
1469
|
+
* get tweet list of timeline
|
|
1470
|
+
*/
|
|
1471
|
+
TweetApi.prototype.getHomeTimelineRaw = function (requestParameters, initOverrides) {
|
|
1472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1473
|
+
var requestOptions, response;
|
|
1474
|
+
return __generator(this, function (_a) {
|
|
1475
|
+
switch (_a.label) {
|
|
1476
|
+
case 0: return [4 /*yield*/, this.getHomeTimelineRequestOpts(requestParameters)];
|
|
1477
|
+
case 1:
|
|
1478
|
+
requestOptions = _a.sent();
|
|
1479
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1480
|
+
case 2:
|
|
1481
|
+
response = _a.sent();
|
|
1482
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TimelineResponse_1.TimelineResponseFromJSON)(jsonValue); })];
|
|
1359
1483
|
}
|
|
1360
1484
|
});
|
|
1361
1485
|
});
|
|
@@ -1378,11 +1502,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1378
1502
|
});
|
|
1379
1503
|
};
|
|
1380
1504
|
/**
|
|
1381
|
-
*
|
|
1505
|
+
* Creates request options for getLikes without sending the request
|
|
1382
1506
|
*/
|
|
1383
|
-
TweetApi.prototype.
|
|
1507
|
+
TweetApi.prototype.getLikesRequestOpts = function (requestParameters) {
|
|
1384
1508
|
return __awaiter(this, void 0, void 0, function () {
|
|
1385
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1509
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1386
1510
|
return __generator(this, function (_14) {
|
|
1387
1511
|
switch (_14.label) {
|
|
1388
1512
|
case 0:
|
|
@@ -1570,15 +1694,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1570
1694
|
case 39:
|
|
1571
1695
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1572
1696
|
_14.label = 40;
|
|
1573
|
-
case 40:
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1697
|
+
case 40:
|
|
1698
|
+
urlPath = "/graphql/{pathQueryId}/Likes";
|
|
1699
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1700
|
+
return [2 /*return*/, {
|
|
1701
|
+
path: urlPath,
|
|
1702
|
+
method: 'GET',
|
|
1703
|
+
headers: headerParameters,
|
|
1704
|
+
query: queryParameters,
|
|
1705
|
+
}];
|
|
1706
|
+
}
|
|
1707
|
+
});
|
|
1708
|
+
});
|
|
1709
|
+
};
|
|
1710
|
+
/**
|
|
1711
|
+
* get user likes tweets
|
|
1712
|
+
*/
|
|
1713
|
+
TweetApi.prototype.getLikesRaw = function (requestParameters, initOverrides) {
|
|
1714
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1715
|
+
var requestOptions, response;
|
|
1716
|
+
return __generator(this, function (_a) {
|
|
1717
|
+
switch (_a.label) {
|
|
1718
|
+
case 0: return [4 /*yield*/, this.getLikesRequestOpts(requestParameters)];
|
|
1719
|
+
case 1:
|
|
1720
|
+
requestOptions = _a.sent();
|
|
1721
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1722
|
+
case 2:
|
|
1723
|
+
response = _a.sent();
|
|
1724
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
1582
1725
|
}
|
|
1583
1726
|
});
|
|
1584
1727
|
});
|
|
@@ -1601,11 +1744,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1601
1744
|
});
|
|
1602
1745
|
};
|
|
1603
1746
|
/**
|
|
1604
|
-
*
|
|
1747
|
+
* Creates request options for getListLatestTweetsTimeline without sending the request
|
|
1605
1748
|
*/
|
|
1606
|
-
TweetApi.prototype.
|
|
1749
|
+
TweetApi.prototype.getListLatestTweetsTimelineRequestOpts = function (requestParameters) {
|
|
1607
1750
|
return __awaiter(this, void 0, void 0, function () {
|
|
1608
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1751
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1609
1752
|
return __generator(this, function (_14) {
|
|
1610
1753
|
switch (_14.label) {
|
|
1611
1754
|
case 0:
|
|
@@ -1787,15 +1930,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1787
1930
|
case 39:
|
|
1788
1931
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1789
1932
|
_14.label = 40;
|
|
1790
|
-
case 40:
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1933
|
+
case 40:
|
|
1934
|
+
urlPath = "/graphql/{pathQueryId}/ListLatestTweetsTimeline";
|
|
1935
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1936
|
+
return [2 /*return*/, {
|
|
1937
|
+
path: urlPath,
|
|
1938
|
+
method: 'GET',
|
|
1939
|
+
headers: headerParameters,
|
|
1940
|
+
query: queryParameters,
|
|
1941
|
+
}];
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
});
|
|
1945
|
+
};
|
|
1946
|
+
/**
|
|
1947
|
+
* get tweet list of timeline
|
|
1948
|
+
*/
|
|
1949
|
+
TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
|
|
1950
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1951
|
+
var requestOptions, response;
|
|
1952
|
+
return __generator(this, function (_a) {
|
|
1953
|
+
switch (_a.label) {
|
|
1954
|
+
case 0: return [4 /*yield*/, this.getListLatestTweetsTimelineRequestOpts(requestParameters)];
|
|
1955
|
+
case 1:
|
|
1956
|
+
requestOptions = _a.sent();
|
|
1957
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1958
|
+
case 2:
|
|
1959
|
+
response = _a.sent();
|
|
1960
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListLatestTweetsTimelineResponse_1.ListLatestTweetsTimelineResponseFromJSON)(jsonValue); })];
|
|
1799
1961
|
}
|
|
1800
1962
|
});
|
|
1801
1963
|
});
|
|
@@ -1818,11 +1980,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1818
1980
|
});
|
|
1819
1981
|
};
|
|
1820
1982
|
/**
|
|
1821
|
-
*
|
|
1983
|
+
* Creates request options for getNotificationsTimeline without sending the request
|
|
1822
1984
|
*/
|
|
1823
|
-
TweetApi.prototype.
|
|
1985
|
+
TweetApi.prototype.getNotificationsTimelineRequestOpts = function (requestParameters) {
|
|
1824
1986
|
return __awaiter(this, void 0, void 0, function () {
|
|
1825
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
1987
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
1826
1988
|
return __generator(this, function (_14) {
|
|
1827
1989
|
switch (_14.label) {
|
|
1828
1990
|
case 0:
|
|
@@ -2004,15 +2166,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2004
2166
|
case 39:
|
|
2005
2167
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2006
2168
|
_14.label = 40;
|
|
2007
|
-
case 40:
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2169
|
+
case 40:
|
|
2170
|
+
urlPath = "/graphql/{pathQueryId}/NotificationsTimeline";
|
|
2171
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2172
|
+
return [2 /*return*/, {
|
|
2173
|
+
path: urlPath,
|
|
2174
|
+
method: 'GET',
|
|
2175
|
+
headers: headerParameters,
|
|
2176
|
+
query: queryParameters,
|
|
2177
|
+
}];
|
|
2178
|
+
}
|
|
2179
|
+
});
|
|
2180
|
+
});
|
|
2181
|
+
};
|
|
2182
|
+
/**
|
|
2183
|
+
* get notification list. timeline_type:[All, Verified, Mentions]
|
|
2184
|
+
*/
|
|
2185
|
+
TweetApi.prototype.getNotificationsTimelineRaw = function (requestParameters, initOverrides) {
|
|
2186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2187
|
+
var requestOptions, response;
|
|
2188
|
+
return __generator(this, function (_a) {
|
|
2189
|
+
switch (_a.label) {
|
|
2190
|
+
case 0: return [4 /*yield*/, this.getNotificationsTimelineRequestOpts(requestParameters)];
|
|
2191
|
+
case 1:
|
|
2192
|
+
requestOptions = _a.sent();
|
|
2193
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2194
|
+
case 2:
|
|
2195
|
+
response = _a.sent();
|
|
2196
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, NotificationsTimelineResponse_1.NotificationsTimelineResponseFromJSON)(jsonValue); })];
|
|
2016
2197
|
}
|
|
2017
2198
|
});
|
|
2018
2199
|
});
|
|
@@ -2035,11 +2216,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2035
2216
|
});
|
|
2036
2217
|
};
|
|
2037
2218
|
/**
|
|
2038
|
-
*
|
|
2219
|
+
* Creates request options for getSearchTimeline without sending the request
|
|
2039
2220
|
*/
|
|
2040
|
-
TweetApi.prototype.
|
|
2221
|
+
TweetApi.prototype.getSearchTimelineRequestOpts = function (requestParameters) {
|
|
2041
2222
|
return __awaiter(this, void 0, void 0, function () {
|
|
2042
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
2223
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
2043
2224
|
return __generator(this, function (_14) {
|
|
2044
2225
|
switch (_14.label) {
|
|
2045
2226
|
case 0:
|
|
@@ -2221,15 +2402,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2221
2402
|
case 39:
|
|
2222
2403
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2223
2404
|
_14.label = 40;
|
|
2224
|
-
case 40:
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2405
|
+
case 40:
|
|
2406
|
+
urlPath = "/graphql/{pathQueryId}/SearchTimeline";
|
|
2407
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2408
|
+
return [2 /*return*/, {
|
|
2409
|
+
path: urlPath,
|
|
2410
|
+
method: 'GET',
|
|
2411
|
+
headers: headerParameters,
|
|
2412
|
+
query: queryParameters,
|
|
2413
|
+
}];
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
});
|
|
2417
|
+
};
|
|
2418
|
+
/**
|
|
2419
|
+
* search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
2420
|
+
*/
|
|
2421
|
+
TweetApi.prototype.getSearchTimelineRaw = function (requestParameters, initOverrides) {
|
|
2422
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2423
|
+
var requestOptions, response;
|
|
2424
|
+
return __generator(this, function (_a) {
|
|
2425
|
+
switch (_a.label) {
|
|
2426
|
+
case 0: return [4 /*yield*/, this.getSearchTimelineRequestOpts(requestParameters)];
|
|
2427
|
+
case 1:
|
|
2428
|
+
requestOptions = _a.sent();
|
|
2429
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2430
|
+
case 2:
|
|
2431
|
+
response = _a.sent();
|
|
2432
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, SearchTimelineResponse_1.SearchTimelineResponseFromJSON)(jsonValue); })];
|
|
2233
2433
|
}
|
|
2234
2434
|
});
|
|
2235
2435
|
});
|
|
@@ -2252,11 +2452,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2252
2452
|
});
|
|
2253
2453
|
};
|
|
2254
2454
|
/**
|
|
2255
|
-
*
|
|
2455
|
+
* Creates request options for getTweetDetail without sending the request
|
|
2256
2456
|
*/
|
|
2257
|
-
TweetApi.prototype.
|
|
2457
|
+
TweetApi.prototype.getTweetDetailRequestOpts = function (requestParameters) {
|
|
2258
2458
|
return __awaiter(this, void 0, void 0, function () {
|
|
2259
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
2459
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
2260
2460
|
return __generator(this, function (_14) {
|
|
2261
2461
|
switch (_14.label) {
|
|
2262
2462
|
case 0:
|
|
@@ -2444,15 +2644,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2444
2644
|
case 39:
|
|
2445
2645
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2446
2646
|
_14.label = 40;
|
|
2447
|
-
case 40:
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2647
|
+
case 40:
|
|
2648
|
+
urlPath = "/graphql/{pathQueryId}/TweetDetail";
|
|
2649
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2650
|
+
return [2 /*return*/, {
|
|
2651
|
+
path: urlPath,
|
|
2652
|
+
method: 'GET',
|
|
2653
|
+
headers: headerParameters,
|
|
2654
|
+
query: queryParameters,
|
|
2655
|
+
}];
|
|
2656
|
+
}
|
|
2657
|
+
});
|
|
2658
|
+
});
|
|
2659
|
+
};
|
|
2660
|
+
/**
|
|
2661
|
+
* get TweetDetail
|
|
2662
|
+
*/
|
|
2663
|
+
TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
|
|
2664
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2665
|
+
var requestOptions, response;
|
|
2666
|
+
return __generator(this, function (_a) {
|
|
2667
|
+
switch (_a.label) {
|
|
2668
|
+
case 0: return [4 /*yield*/, this.getTweetDetailRequestOpts(requestParameters)];
|
|
2669
|
+
case 1:
|
|
2670
|
+
requestOptions = _a.sent();
|
|
2671
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2672
|
+
case 2:
|
|
2673
|
+
response = _a.sent();
|
|
2674
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TweetDetailResponse_1.TweetDetailResponseFromJSON)(jsonValue); })];
|
|
2456
2675
|
}
|
|
2457
2676
|
});
|
|
2458
2677
|
});
|
|
@@ -2475,11 +2694,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2475
2694
|
});
|
|
2476
2695
|
};
|
|
2477
2696
|
/**
|
|
2478
|
-
*
|
|
2697
|
+
* Creates request options for getUserHighlightsTweets without sending the request
|
|
2479
2698
|
*/
|
|
2480
|
-
TweetApi.prototype.
|
|
2699
|
+
TweetApi.prototype.getUserHighlightsTweetsRequestOpts = function (requestParameters) {
|
|
2481
2700
|
return __awaiter(this, void 0, void 0, function () {
|
|
2482
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
2701
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
2483
2702
|
return __generator(this, function (_14) {
|
|
2484
2703
|
switch (_14.label) {
|
|
2485
2704
|
case 0:
|
|
@@ -2667,15 +2886,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2667
2886
|
case 39:
|
|
2668
2887
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2669
2888
|
_14.label = 40;
|
|
2670
|
-
case 40:
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2889
|
+
case 40:
|
|
2890
|
+
urlPath = "/graphql/{pathQueryId}/UserHighlightsTweets";
|
|
2891
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
2892
|
+
return [2 /*return*/, {
|
|
2893
|
+
path: urlPath,
|
|
2894
|
+
method: 'GET',
|
|
2895
|
+
headers: headerParameters,
|
|
2896
|
+
query: queryParameters,
|
|
2897
|
+
}];
|
|
2898
|
+
}
|
|
2899
|
+
});
|
|
2900
|
+
});
|
|
2901
|
+
};
|
|
2902
|
+
/**
|
|
2903
|
+
* get user highlights tweets
|
|
2904
|
+
*/
|
|
2905
|
+
TweetApi.prototype.getUserHighlightsTweetsRaw = function (requestParameters, initOverrides) {
|
|
2906
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2907
|
+
var requestOptions, response;
|
|
2908
|
+
return __generator(this, function (_a) {
|
|
2909
|
+
switch (_a.label) {
|
|
2910
|
+
case 0: return [4 /*yield*/, this.getUserHighlightsTweetsRequestOpts(requestParameters)];
|
|
2911
|
+
case 1:
|
|
2912
|
+
requestOptions = _a.sent();
|
|
2913
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2914
|
+
case 2:
|
|
2915
|
+
response = _a.sent();
|
|
2916
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserHighlightsTweetsResponse_1.UserHighlightsTweetsResponseFromJSON)(jsonValue); })];
|
|
2679
2917
|
}
|
|
2680
2918
|
});
|
|
2681
2919
|
});
|
|
@@ -2698,11 +2936,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2698
2936
|
});
|
|
2699
2937
|
};
|
|
2700
2938
|
/**
|
|
2701
|
-
*
|
|
2939
|
+
* Creates request options for getUserMedia without sending the request
|
|
2702
2940
|
*/
|
|
2703
|
-
TweetApi.prototype.
|
|
2941
|
+
TweetApi.prototype.getUserMediaRequestOpts = function (requestParameters) {
|
|
2704
2942
|
return __awaiter(this, void 0, void 0, function () {
|
|
2705
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
2943
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
2706
2944
|
return __generator(this, function (_14) {
|
|
2707
2945
|
switch (_14.label) {
|
|
2708
2946
|
case 0:
|
|
@@ -2890,15 +3128,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2890
3128
|
case 39:
|
|
2891
3129
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2892
3130
|
_14.label = 40;
|
|
2893
|
-
case 40:
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
3131
|
+
case 40:
|
|
3132
|
+
urlPath = "/graphql/{pathQueryId}/UserMedia";
|
|
3133
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
3134
|
+
return [2 /*return*/, {
|
|
3135
|
+
path: urlPath,
|
|
3136
|
+
method: 'GET',
|
|
3137
|
+
headers: headerParameters,
|
|
3138
|
+
query: queryParameters,
|
|
3139
|
+
}];
|
|
3140
|
+
}
|
|
3141
|
+
});
|
|
3142
|
+
});
|
|
3143
|
+
};
|
|
3144
|
+
/**
|
|
3145
|
+
* get user media tweets
|
|
3146
|
+
*/
|
|
3147
|
+
TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
|
|
3148
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3149
|
+
var requestOptions, response;
|
|
3150
|
+
return __generator(this, function (_a) {
|
|
3151
|
+
switch (_a.label) {
|
|
3152
|
+
case 0: return [4 /*yield*/, this.getUserMediaRequestOpts(requestParameters)];
|
|
3153
|
+
case 1:
|
|
3154
|
+
requestOptions = _a.sent();
|
|
3155
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3156
|
+
case 2:
|
|
3157
|
+
response = _a.sent();
|
|
3158
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
2902
3159
|
}
|
|
2903
3160
|
});
|
|
2904
3161
|
});
|
|
@@ -2921,11 +3178,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2921
3178
|
});
|
|
2922
3179
|
};
|
|
2923
3180
|
/**
|
|
2924
|
-
*
|
|
3181
|
+
* Creates request options for getUserTweets without sending the request
|
|
2925
3182
|
*/
|
|
2926
|
-
TweetApi.prototype.
|
|
3183
|
+
TweetApi.prototype.getUserTweetsRequestOpts = function (requestParameters) {
|
|
2927
3184
|
return __awaiter(this, void 0, void 0, function () {
|
|
2928
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
3185
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
2929
3186
|
return __generator(this, function (_14) {
|
|
2930
3187
|
switch (_14.label) {
|
|
2931
3188
|
case 0:
|
|
@@ -3113,15 +3370,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
3113
3370
|
case 39:
|
|
3114
3371
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
3115
3372
|
_14.label = 40;
|
|
3116
|
-
case 40:
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3373
|
+
case 40:
|
|
3374
|
+
urlPath = "/graphql/{pathQueryId}/UserTweets";
|
|
3375
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
3376
|
+
return [2 /*return*/, {
|
|
3377
|
+
path: urlPath,
|
|
3378
|
+
method: 'GET',
|
|
3379
|
+
headers: headerParameters,
|
|
3380
|
+
query: queryParameters,
|
|
3381
|
+
}];
|
|
3382
|
+
}
|
|
3383
|
+
});
|
|
3384
|
+
});
|
|
3385
|
+
};
|
|
3386
|
+
/**
|
|
3387
|
+
* get user tweets
|
|
3388
|
+
*/
|
|
3389
|
+
TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
|
|
3390
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3391
|
+
var requestOptions, response;
|
|
3392
|
+
return __generator(this, function (_a) {
|
|
3393
|
+
switch (_a.label) {
|
|
3394
|
+
case 0: return [4 /*yield*/, this.getUserTweetsRequestOpts(requestParameters)];
|
|
3395
|
+
case 1:
|
|
3396
|
+
requestOptions = _a.sent();
|
|
3397
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3398
|
+
case 2:
|
|
3399
|
+
response = _a.sent();
|
|
3400
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
3125
3401
|
}
|
|
3126
3402
|
});
|
|
3127
3403
|
});
|
|
@@ -3144,11 +3420,11 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
3144
3420
|
});
|
|
3145
3421
|
};
|
|
3146
3422
|
/**
|
|
3147
|
-
*
|
|
3423
|
+
* Creates request options for getUserTweetsAndReplies without sending the request
|
|
3148
3424
|
*/
|
|
3149
|
-
TweetApi.prototype.
|
|
3425
|
+
TweetApi.prototype.getUserTweetsAndRepliesRequestOpts = function (requestParameters) {
|
|
3150
3426
|
return __awaiter(this, void 0, void 0, function () {
|
|
3151
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13,
|
|
3427
|
+
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, urlPath;
|
|
3152
3428
|
return __generator(this, function (_14) {
|
|
3153
3429
|
switch (_14.label) {
|
|
3154
3430
|
case 0:
|
|
@@ -3336,15 +3612,34 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
3336
3612
|
case 39:
|
|
3337
3613
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
3338
3614
|
_14.label = 40;
|
|
3339
|
-
case 40:
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3615
|
+
case 40:
|
|
3616
|
+
urlPath = "/graphql/{pathQueryId}/UserTweetsAndReplies";
|
|
3617
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
3618
|
+
return [2 /*return*/, {
|
|
3619
|
+
path: urlPath,
|
|
3620
|
+
method: 'GET',
|
|
3621
|
+
headers: headerParameters,
|
|
3622
|
+
query: queryParameters,
|
|
3623
|
+
}];
|
|
3624
|
+
}
|
|
3625
|
+
});
|
|
3626
|
+
});
|
|
3627
|
+
};
|
|
3628
|
+
/**
|
|
3629
|
+
* get user replies tweets
|
|
3630
|
+
*/
|
|
3631
|
+
TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
|
|
3632
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3633
|
+
var requestOptions, response;
|
|
3634
|
+
return __generator(this, function (_a) {
|
|
3635
|
+
switch (_a.label) {
|
|
3636
|
+
case 0: return [4 /*yield*/, this.getUserTweetsAndRepliesRequestOpts(requestParameters)];
|
|
3637
|
+
case 1:
|
|
3638
|
+
requestOptions = _a.sent();
|
|
3639
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
3640
|
+
case 2:
|
|
3641
|
+
response = _a.sent();
|
|
3642
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserTweetsResponse_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
3348
3643
|
}
|
|
3349
3644
|
});
|
|
3350
3645
|
});
|