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/UserListApi.js
CHANGED
|
@@ -66,7 +66,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.UserListApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
|
-
var
|
|
69
|
+
var FollowResponse_1 = require("../models/FollowResponse");
|
|
70
|
+
var TweetFavoritersResponse_1 = require("../models/TweetFavoritersResponse");
|
|
71
|
+
var TweetRetweetersResponse_1 = require("../models/TweetRetweetersResponse");
|
|
70
72
|
/**
|
|
71
73
|
*
|
|
72
74
|
*/
|
|
@@ -76,11 +78,247 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
76
78
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
79
|
}
|
|
78
80
|
/**
|
|
79
|
-
*
|
|
81
|
+
* Creates request options for getBlueVerifiedFollowers without sending the request
|
|
80
82
|
*/
|
|
81
|
-
UserListApi.prototype.
|
|
83
|
+
UserListApi.prototype.getBlueVerifiedFollowersRequestOpts = function (requestParameters) {
|
|
82
84
|
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,
|
|
85
|
+
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;
|
|
86
|
+
return __generator(this, function (_14) {
|
|
87
|
+
switch (_14.label) {
|
|
88
|
+
case 0:
|
|
89
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBlueVerifiedFollowers().');
|
|
91
|
+
}
|
|
92
|
+
if (requestParameters['variables'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBlueVerifiedFollowers().');
|
|
94
|
+
}
|
|
95
|
+
if (requestParameters['features'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBlueVerifiedFollowers().');
|
|
97
|
+
}
|
|
98
|
+
queryParameters = {};
|
|
99
|
+
if (requestParameters['variables'] != null) {
|
|
100
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
101
|
+
}
|
|
102
|
+
if (requestParameters['features'] != null) {
|
|
103
|
+
queryParameters['features'] = requestParameters['features'];
|
|
104
|
+
}
|
|
105
|
+
headerParameters = {};
|
|
106
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
107
|
+
_a = headerParameters;
|
|
108
|
+
_b = "Accept";
|
|
109
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
110
|
+
case 1:
|
|
111
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
112
|
+
_14.label = 2;
|
|
113
|
+
case 2:
|
|
114
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
115
|
+
_c = headerParameters;
|
|
116
|
+
_d = "x-twitter-client-language";
|
|
117
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
118
|
+
case 3:
|
|
119
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
120
|
+
_14.label = 4;
|
|
121
|
+
case 4:
|
|
122
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
123
|
+
_e = headerParameters;
|
|
124
|
+
_f = "Priority";
|
|
125
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
126
|
+
case 5:
|
|
127
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
128
|
+
_14.label = 6;
|
|
129
|
+
case 6:
|
|
130
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
131
|
+
_g = headerParameters;
|
|
132
|
+
_h = "Referer";
|
|
133
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
134
|
+
case 7:
|
|
135
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
136
|
+
_14.label = 8;
|
|
137
|
+
case 8:
|
|
138
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
139
|
+
_j = headerParameters;
|
|
140
|
+
_k = "Sec-Fetch-Dest";
|
|
141
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
142
|
+
case 9:
|
|
143
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
144
|
+
_14.label = 10;
|
|
145
|
+
case 10:
|
|
146
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
147
|
+
_l = headerParameters;
|
|
148
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
149
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
150
|
+
case 11:
|
|
151
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
152
|
+
_14.label = 12;
|
|
153
|
+
case 12:
|
|
154
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
155
|
+
_o = headerParameters;
|
|
156
|
+
_p = "Sec-Fetch-Mode";
|
|
157
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
158
|
+
case 13:
|
|
159
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
160
|
+
_14.label = 14;
|
|
161
|
+
case 14:
|
|
162
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
163
|
+
_q = headerParameters;
|
|
164
|
+
_r = "x-csrf-token";
|
|
165
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
166
|
+
case 15:
|
|
167
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
168
|
+
_14.label = 16;
|
|
169
|
+
case 16:
|
|
170
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
171
|
+
_s = headerParameters;
|
|
172
|
+
_t = "x-client-uuid";
|
|
173
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
174
|
+
case 17:
|
|
175
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
176
|
+
_14.label = 18;
|
|
177
|
+
case 18:
|
|
178
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
179
|
+
token = this.configuration.accessToken;
|
|
180
|
+
return [4 /*yield*/, token("BearerAuth", [])];
|
|
181
|
+
case 19:
|
|
182
|
+
tokenString = _14.sent();
|
|
183
|
+
if (tokenString) {
|
|
184
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
185
|
+
}
|
|
186
|
+
_14.label = 20;
|
|
187
|
+
case 20:
|
|
188
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
189
|
+
_u = headerParameters;
|
|
190
|
+
_v = "x-guest-token";
|
|
191
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
192
|
+
case 21:
|
|
193
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
194
|
+
_14.label = 22;
|
|
195
|
+
case 22:
|
|
196
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
197
|
+
_w = headerParameters;
|
|
198
|
+
_x = "Sec-Ch-Ua";
|
|
199
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
200
|
+
case 23:
|
|
201
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
202
|
+
_14.label = 24;
|
|
203
|
+
case 24:
|
|
204
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
205
|
+
_y = headerParameters;
|
|
206
|
+
_z = "x-client-transaction-id";
|
|
207
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
208
|
+
case 25:
|
|
209
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
210
|
+
_14.label = 26;
|
|
211
|
+
case 26:
|
|
212
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
213
|
+
_0 = headerParameters;
|
|
214
|
+
_1 = "x-twitter-active-user";
|
|
215
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
216
|
+
case 27:
|
|
217
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
218
|
+
_14.label = 28;
|
|
219
|
+
case 28:
|
|
220
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
221
|
+
_2 = headerParameters;
|
|
222
|
+
_3 = "user-agent";
|
|
223
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
224
|
+
case 29:
|
|
225
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
226
|
+
_14.label = 30;
|
|
227
|
+
case 30:
|
|
228
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
229
|
+
_4 = headerParameters;
|
|
230
|
+
_5 = "Accept-Language";
|
|
231
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
232
|
+
case 31:
|
|
233
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
234
|
+
_14.label = 32;
|
|
235
|
+
case 32:
|
|
236
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
237
|
+
_6 = headerParameters;
|
|
238
|
+
_7 = "Sec-Fetch-Site";
|
|
239
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
240
|
+
case 33:
|
|
241
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
242
|
+
_14.label = 34;
|
|
243
|
+
case 34:
|
|
244
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
245
|
+
_8 = headerParameters;
|
|
246
|
+
_9 = "x-twitter-auth-type";
|
|
247
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
248
|
+
case 35:
|
|
249
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
250
|
+
_14.label = 36;
|
|
251
|
+
case 36:
|
|
252
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
253
|
+
_10 = headerParameters;
|
|
254
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
255
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
256
|
+
case 37:
|
|
257
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
258
|
+
_14.label = 38;
|
|
259
|
+
case 38:
|
|
260
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
261
|
+
_12 = headerParameters;
|
|
262
|
+
_13 = "Accept-Encoding";
|
|
263
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
264
|
+
case 39:
|
|
265
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
266
|
+
_14.label = 40;
|
|
267
|
+
case 40:
|
|
268
|
+
urlPath = "/graphql/{pathQueryId}/BlueVerifiedFollowers";
|
|
269
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
270
|
+
return [2 /*return*/, {
|
|
271
|
+
path: urlPath,
|
|
272
|
+
method: 'GET',
|
|
273
|
+
headers: headerParameters,
|
|
274
|
+
query: queryParameters,
|
|
275
|
+
}];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* get blue verified followers
|
|
282
|
+
*/
|
|
283
|
+
UserListApi.prototype.getBlueVerifiedFollowersRaw = function (requestParameters, initOverrides) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
285
|
+
var requestOptions, response;
|
|
286
|
+
return __generator(this, function (_a) {
|
|
287
|
+
switch (_a.label) {
|
|
288
|
+
case 0: return [4 /*yield*/, this.getBlueVerifiedFollowersRequestOpts(requestParameters)];
|
|
289
|
+
case 1:
|
|
290
|
+
requestOptions = _a.sent();
|
|
291
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
292
|
+
case 2:
|
|
293
|
+
response = _a.sent();
|
|
294
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FollowResponse_1.FollowResponseFromJSON)(jsonValue); })];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* get blue verified followers
|
|
301
|
+
*/
|
|
302
|
+
UserListApi.prototype.getBlueVerifiedFollowers = function (requestParameters, initOverrides) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
304
|
+
var response;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
307
|
+
case 0: return [4 /*yield*/, this.getBlueVerifiedFollowersRaw(requestParameters, initOverrides)];
|
|
308
|
+
case 1:
|
|
309
|
+
response = _a.sent();
|
|
310
|
+
return [4 /*yield*/, response.value()];
|
|
311
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* Creates request options for getFavoriters without sending the request
|
|
318
|
+
*/
|
|
319
|
+
UserListApi.prototype.getFavoritersRequestOpts = function (requestParameters) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
321
|
+
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
322
|
return __generator(this, function (_14) {
|
|
85
323
|
switch (_14.label) {
|
|
86
324
|
case 0:
|
|
@@ -262,15 +500,34 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
262
500
|
case 39:
|
|
263
501
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
264
502
|
_14.label = 40;
|
|
265
|
-
case 40:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
503
|
+
case 40:
|
|
504
|
+
urlPath = "/graphql/{pathQueryId}/Favoriters";
|
|
505
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
506
|
+
return [2 /*return*/, {
|
|
507
|
+
path: urlPath,
|
|
508
|
+
method: 'GET',
|
|
509
|
+
headers: headerParameters,
|
|
510
|
+
query: queryParameters,
|
|
511
|
+
}];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* get tweet favoriters
|
|
518
|
+
*/
|
|
519
|
+
UserListApi.prototype.getFavoritersRaw = function (requestParameters, initOverrides) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
+
var requestOptions, response;
|
|
522
|
+
return __generator(this, function (_a) {
|
|
523
|
+
switch (_a.label) {
|
|
524
|
+
case 0: return [4 /*yield*/, this.getFavoritersRequestOpts(requestParameters)];
|
|
525
|
+
case 1:
|
|
526
|
+
requestOptions = _a.sent();
|
|
527
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
528
|
+
case 2:
|
|
529
|
+
response = _a.sent();
|
|
530
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TweetFavoritersResponse_1.TweetFavoritersResponseFromJSON)(jsonValue); })];
|
|
274
531
|
}
|
|
275
532
|
});
|
|
276
533
|
});
|
|
@@ -293,11 +550,11 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
293
550
|
});
|
|
294
551
|
};
|
|
295
552
|
/**
|
|
296
|
-
*
|
|
553
|
+
* Creates request options for getFollowers without sending the request
|
|
297
554
|
*/
|
|
298
|
-
UserListApi.prototype.
|
|
555
|
+
UserListApi.prototype.getFollowersRequestOpts = function (requestParameters) {
|
|
299
556
|
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,
|
|
557
|
+
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
558
|
return __generator(this, function (_14) {
|
|
302
559
|
switch (_14.label) {
|
|
303
560
|
case 0:
|
|
@@ -479,15 +736,34 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
479
736
|
case 39:
|
|
480
737
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
481
738
|
_14.label = 40;
|
|
482
|
-
case 40:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
739
|
+
case 40:
|
|
740
|
+
urlPath = "/graphql/{pathQueryId}/Followers";
|
|
741
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
742
|
+
return [2 /*return*/, {
|
|
743
|
+
path: urlPath,
|
|
744
|
+
method: 'GET',
|
|
745
|
+
headers: headerParameters,
|
|
746
|
+
query: queryParameters,
|
|
747
|
+
}];
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* get user list of followers
|
|
754
|
+
*/
|
|
755
|
+
UserListApi.prototype.getFollowersRaw = function (requestParameters, initOverrides) {
|
|
756
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
757
|
+
var requestOptions, response;
|
|
758
|
+
return __generator(this, function (_a) {
|
|
759
|
+
switch (_a.label) {
|
|
760
|
+
case 0: return [4 /*yield*/, this.getFollowersRequestOpts(requestParameters)];
|
|
761
|
+
case 1:
|
|
762
|
+
requestOptions = _a.sent();
|
|
763
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
764
|
+
case 2:
|
|
765
|
+
response = _a.sent();
|
|
766
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FollowResponse_1.FollowResponseFromJSON)(jsonValue); })];
|
|
491
767
|
}
|
|
492
768
|
});
|
|
493
769
|
});
|
|
@@ -510,11 +786,11 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
510
786
|
});
|
|
511
787
|
};
|
|
512
788
|
/**
|
|
513
|
-
*
|
|
789
|
+
* Creates request options for getFollowersYouKnow without sending the request
|
|
514
790
|
*/
|
|
515
|
-
UserListApi.prototype.
|
|
791
|
+
UserListApi.prototype.getFollowersYouKnowRequestOpts = function (requestParameters) {
|
|
516
792
|
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,
|
|
793
|
+
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
794
|
return __generator(this, function (_14) {
|
|
519
795
|
switch (_14.label) {
|
|
520
796
|
case 0:
|
|
@@ -696,15 +972,34 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
696
972
|
case 39:
|
|
697
973
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
698
974
|
_14.label = 40;
|
|
699
|
-
case 40:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
975
|
+
case 40:
|
|
976
|
+
urlPath = "/graphql/{pathQueryId}/FollowersYouKnow";
|
|
977
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
978
|
+
return [2 /*return*/, {
|
|
979
|
+
path: urlPath,
|
|
980
|
+
method: 'GET',
|
|
981
|
+
headers: headerParameters,
|
|
982
|
+
query: queryParameters,
|
|
983
|
+
}];
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
});
|
|
987
|
+
};
|
|
988
|
+
/**
|
|
989
|
+
* get followers you know
|
|
990
|
+
*/
|
|
991
|
+
UserListApi.prototype.getFollowersYouKnowRaw = function (requestParameters, initOverrides) {
|
|
992
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
993
|
+
var requestOptions, response;
|
|
994
|
+
return __generator(this, function (_a) {
|
|
995
|
+
switch (_a.label) {
|
|
996
|
+
case 0: return [4 /*yield*/, this.getFollowersYouKnowRequestOpts(requestParameters)];
|
|
997
|
+
case 1:
|
|
998
|
+
requestOptions = _a.sent();
|
|
999
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1000
|
+
case 2:
|
|
1001
|
+
response = _a.sent();
|
|
1002
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FollowResponse_1.FollowResponseFromJSON)(jsonValue); })];
|
|
708
1003
|
}
|
|
709
1004
|
});
|
|
710
1005
|
});
|
|
@@ -727,11 +1022,11 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
727
1022
|
});
|
|
728
1023
|
};
|
|
729
1024
|
/**
|
|
730
|
-
*
|
|
1025
|
+
* Creates request options for getFollowing without sending the request
|
|
731
1026
|
*/
|
|
732
|
-
UserListApi.prototype.
|
|
1027
|
+
UserListApi.prototype.getFollowingRequestOpts = function (requestParameters) {
|
|
733
1028
|
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,
|
|
1029
|
+
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
1030
|
return __generator(this, function (_14) {
|
|
736
1031
|
switch (_14.label) {
|
|
737
1032
|
case 0:
|
|
@@ -913,15 +1208,34 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
913
1208
|
case 39:
|
|
914
1209
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
915
1210
|
_14.label = 40;
|
|
916
|
-
case 40:
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
1211
|
+
case 40:
|
|
1212
|
+
urlPath = "/graphql/{pathQueryId}/Following";
|
|
1213
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1214
|
+
return [2 /*return*/, {
|
|
1215
|
+
path: urlPath,
|
|
1216
|
+
method: 'GET',
|
|
1217
|
+
headers: headerParameters,
|
|
1218
|
+
query: queryParameters,
|
|
1219
|
+
}];
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
});
|
|
1223
|
+
};
|
|
1224
|
+
/**
|
|
1225
|
+
* get user list of following
|
|
1226
|
+
*/
|
|
1227
|
+
UserListApi.prototype.getFollowingRaw = function (requestParameters, initOverrides) {
|
|
1228
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1229
|
+
var requestOptions, response;
|
|
1230
|
+
return __generator(this, function (_a) {
|
|
1231
|
+
switch (_a.label) {
|
|
1232
|
+
case 0: return [4 /*yield*/, this.getFollowingRequestOpts(requestParameters)];
|
|
1233
|
+
case 1:
|
|
1234
|
+
requestOptions = _a.sent();
|
|
1235
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1236
|
+
case 2:
|
|
1237
|
+
response = _a.sent();
|
|
1238
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, FollowResponse_1.FollowResponseFromJSON)(jsonValue); })];
|
|
925
1239
|
}
|
|
926
1240
|
});
|
|
927
1241
|
});
|
|
@@ -944,11 +1258,11 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
944
1258
|
});
|
|
945
1259
|
};
|
|
946
1260
|
/**
|
|
947
|
-
*
|
|
1261
|
+
* Creates request options for getRetweeters without sending the request
|
|
948
1262
|
*/
|
|
949
|
-
UserListApi.prototype.
|
|
1263
|
+
UserListApi.prototype.getRetweetersRequestOpts = function (requestParameters) {
|
|
950
1264
|
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,
|
|
1265
|
+
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
1266
|
return __generator(this, function (_14) {
|
|
953
1267
|
switch (_14.label) {
|
|
954
1268
|
case 0:
|
|
@@ -1130,15 +1444,34 @@ var UserListApi = /** @class */ (function (_super) {
|
|
|
1130
1444
|
case 39:
|
|
1131
1445
|
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1132
1446
|
_14.label = 40;
|
|
1133
|
-
case 40:
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1447
|
+
case 40:
|
|
1448
|
+
urlPath = "/graphql/{pathQueryId}/Retweeters";
|
|
1449
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
1450
|
+
return [2 /*return*/, {
|
|
1451
|
+
path: urlPath,
|
|
1452
|
+
method: 'GET',
|
|
1453
|
+
headers: headerParameters,
|
|
1454
|
+
query: queryParameters,
|
|
1455
|
+
}];
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
});
|
|
1459
|
+
};
|
|
1460
|
+
/**
|
|
1461
|
+
* get tweet retweeters
|
|
1462
|
+
*/
|
|
1463
|
+
UserListApi.prototype.getRetweetersRaw = function (requestParameters, initOverrides) {
|
|
1464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1465
|
+
var requestOptions, response;
|
|
1466
|
+
return __generator(this, function (_a) {
|
|
1467
|
+
switch (_a.label) {
|
|
1468
|
+
case 0: return [4 /*yield*/, this.getRetweetersRequestOpts(requestParameters)];
|
|
1469
|
+
case 1:
|
|
1470
|
+
requestOptions = _a.sent();
|
|
1471
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1472
|
+
case 2:
|
|
1473
|
+
response = _a.sent();
|
|
1474
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, TweetRetweetersResponse_1.TweetRetweetersResponseFromJSON)(jsonValue); })];
|
|
1142
1475
|
}
|
|
1143
1476
|
});
|
|
1144
1477
|
});
|