twitter-openapi-typescript-generated 0.1.1 → 0.1.2
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 +137 -11
- package/dist/apis/BirdwatchApi.d.ts +148 -0
- package/dist/apis/BirdwatchApi.js +606 -0
- package/dist/apis/CommunityApi.d.ts +171 -0
- package/dist/apis/CommunityApi.js +716 -0
- package/dist/apis/DefaultApi.d.ts +119 -0
- package/dist/apis/DefaultApi.js +556 -0
- package/dist/apis/TweetApi.d.ts +54 -0
- package/dist/apis/TweetApi.js +232 -0
- package/dist/apis/UserListApi.d.ts +80 -0
- package/dist/apis/UserListApi.js +347 -0
- package/dist/apis/UsersApi.d.ts +27 -0
- package/dist/apis/UsersApi.js +116 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/BirdwatchApi.d.ts +148 -0
- package/dist/esm/apis/BirdwatchApi.js +602 -0
- package/dist/esm/apis/CommunityApi.d.ts +171 -0
- package/dist/esm/apis/CommunityApi.js +712 -0
- package/dist/esm/apis/DefaultApi.d.ts +119 -0
- package/dist/esm/apis/DefaultApi.js +556 -0
- package/dist/esm/apis/TweetApi.d.ts +54 -0
- package/dist/esm/apis/TweetApi.js +232 -0
- package/dist/esm/apis/UserListApi.d.ts +80 -0
- package/dist/esm/apis/UserListApi.js +347 -0
- package/dist/esm/apis/UsersApi.d.ts +27 -0
- package/dist/esm/apis/UsersApi.js +116 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AdMetadataContainer.d.ts +4 -0
- package/dist/esm/models/AdMetadataContainer.js +2 -0
- package/dist/esm/models/AuthenticatePeriscopeResponse.d.ts +36 -0
- package/dist/esm/models/AuthenticatePeriscopeResponse.js +47 -0
- package/dist/esm/models/AuthenticatePeriscopeResponseData.d.ts +30 -0
- package/dist/esm/models/AuthenticatePeriscopeResponseData.js +43 -0
- package/dist/esm/models/BirdwatchAliasSelfSelectStatus.d.ts +34 -0
- package/dist/esm/models/BirdwatchAliasSelfSelectStatus.js +47 -0
- package/dist/esm/models/BirdwatchFetchAliasSelfSelectStatusResponse.d.ts +36 -0
- package/dist/esm/models/BirdwatchFetchAliasSelfSelectStatusResponse.js +47 -0
- package/dist/esm/models/BirdwatchFetchAliasSelfSelectStatusResponseData.d.ts +31 -0
- package/dist/esm/models/BirdwatchFetchAliasSelfSelectStatusResponseData.js +44 -0
- package/dist/esm/models/BirdwatchFetchAuthenticatedUserProfileResponse.d.ts +36 -0
- package/dist/esm/models/BirdwatchFetchAuthenticatedUserProfileResponse.js +47 -0
- package/dist/esm/models/BirdwatchFetchAuthenticatedUserProfileResponseData.d.ts +31 -0
- package/dist/esm/models/BirdwatchFetchAuthenticatedUserProfileResponseData.js +44 -0
- package/dist/esm/models/BirdwatchFetchBirdwatchProfileResponse.d.ts +36 -0
- package/dist/esm/models/BirdwatchFetchBirdwatchProfileResponse.js +47 -0
- package/dist/esm/models/BirdwatchFetchBirdwatchProfileResponseData.d.ts +31 -0
- package/dist/esm/models/BirdwatchFetchBirdwatchProfileResponseData.js +44 -0
- package/dist/esm/models/BirdwatchFetchGlobalTimelineResponse.d.ts +36 -0
- package/dist/esm/models/BirdwatchFetchGlobalTimelineResponse.js +47 -0
- package/dist/esm/models/BirdwatchFetchGlobalTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/BirdwatchFetchGlobalTimelineResponseData.js +44 -0
- package/dist/esm/models/BirdwatchFetchPublicDataResponse.d.ts +36 -0
- package/dist/esm/models/BirdwatchFetchPublicDataResponse.js +47 -0
- package/dist/esm/models/BirdwatchFetchPublicDataResponseData.d.ts +31 -0
- package/dist/esm/models/BirdwatchFetchPublicDataResponseData.js +44 -0
- package/dist/esm/models/BirdwatchHomePage.d.ts +40 -0
- package/dist/esm/models/BirdwatchHomePage.js +53 -0
- package/dist/esm/models/BirdwatchHomePageBody.d.ts +40 -0
- package/dist/esm/models/BirdwatchHomePageBody.js +53 -0
- package/dist/esm/models/BirdwatchHomeTimeline.d.ts +39 -0
- package/dist/esm/models/BirdwatchHomeTimeline.js +52 -0
- package/dist/esm/models/BirdwatchProfile.d.ts +30 -0
- package/dist/esm/models/BirdwatchProfile.js +43 -0
- package/dist/esm/models/BirdwatchPublicDataFile.d.ts +34 -0
- package/dist/esm/models/BirdwatchPublicDataFile.js +47 -0
- package/dist/esm/models/BirdwatchPublicDataFileBundle.d.ts +47 -0
- package/dist/esm/models/BirdwatchPublicDataFileBundle.js +60 -0
- package/dist/esm/models/BirdwatchViewer.d.ts +31 -0
- package/dist/esm/models/BirdwatchViewer.js +44 -0
- package/dist/esm/models/BookmarkSearch.d.ts +31 -0
- package/dist/esm/models/BookmarkSearch.js +44 -0
- package/dist/esm/models/BookmarkSearchTimelineResponse.d.ts +36 -0
- package/dist/esm/models/BookmarkSearchTimelineResponse.js +47 -0
- package/dist/esm/models/BookmarkSearchTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/BookmarkSearchTimelineResponseData.js +44 -0
- package/dist/esm/models/ClientEventInfoDetails.d.ts +6 -1
- package/dist/esm/models/ClientEventInfoDetails.js +4 -3
- package/dist/esm/models/CommunitiesFetchOneQueryResponse.d.ts +36 -0
- package/dist/esm/models/CommunitiesFetchOneQueryResponse.js +47 -0
- package/dist/esm/models/CommunitiesFetchOneQueryResponseData.d.ts +31 -0
- package/dist/esm/models/CommunitiesFetchOneQueryResponseData.js +44 -0
- package/dist/esm/models/CommunitiesSearchQueryResponse.d.ts +36 -0
- package/dist/esm/models/CommunitiesSearchQueryResponse.js +47 -0
- package/dist/esm/models/CommunitiesSearchQueryResponseData.d.ts +31 -0
- package/dist/esm/models/CommunitiesSearchQueryResponseData.js +44 -0
- package/dist/esm/models/CommunitiesSearchSlice.d.ts +36 -0
- package/dist/esm/models/CommunitiesSearchSlice.js +49 -0
- package/dist/esm/models/CommunityFacepileUser.d.ts +40 -0
- package/dist/esm/models/CommunityFacepileUser.js +53 -0
- package/dist/esm/models/CommunityFacepileUserResults.d.ts +35 -0
- package/dist/esm/models/CommunityFacepileUserResults.js +48 -0
- package/dist/esm/models/CommunityHashtag.d.ts +34 -0
- package/dist/esm/models/CommunityHashtag.js +47 -0
- package/dist/esm/models/CommunityHashtagSlice.d.ts +36 -0
- package/dist/esm/models/CommunityHashtagSlice.js +49 -0
- package/dist/esm/models/CommunityIdUserResults.d.ts +35 -0
- package/dist/esm/models/CommunityIdUserResults.js +48 -0
- package/dist/esm/models/CommunityListMembersActionResult.d.ts +31 -0
- package/dist/esm/models/CommunityListMembersActionResult.js +44 -0
- package/dist/esm/models/CommunityPageActions.d.ts +50 -0
- package/dist/esm/models/CommunityPageActions.js +63 -0
- package/dist/esm/models/CommunityPageCommunity.d.ts +130 -0
- package/dist/esm/models/CommunityPageCommunity.js +143 -0
- package/dist/esm/models/CommunityPageDeleteActionResult.d.ts +39 -0
- package/dist/esm/models/CommunityPageDeleteActionResult.js +52 -0
- package/dist/esm/models/CommunityPageInvitesResult.d.ts +43 -0
- package/dist/esm/models/CommunityPageInvitesResult.js +56 -0
- package/dist/esm/models/CommunityPageJoinActionResult.d.ts +35 -0
- package/dist/esm/models/CommunityPageJoinActionResult.js +48 -0
- package/dist/esm/models/CommunityPageLeaveActionResult.d.ts +43 -0
- package/dist/esm/models/CommunityPageLeaveActionResult.js +56 -0
- package/dist/esm/models/CommunityPagePinActionResult.d.ts +35 -0
- package/dist/esm/models/CommunityPagePinActionResult.js +48 -0
- package/dist/esm/models/CommunityPageResults.d.ts +35 -0
- package/dist/esm/models/CommunityPageResults.js +48 -0
- package/dist/esm/models/CommunityPrimaryTopicName.d.ts +30 -0
- package/dist/esm/models/CommunityPrimaryTopicName.js +43 -0
- package/dist/esm/models/CommunityQueryResponse.d.ts +36 -0
- package/dist/esm/models/CommunityQueryResponse.js +47 -0
- package/dist/esm/models/CommunityQueryResponseData.d.ts +31 -0
- package/dist/esm/models/CommunityQueryResponseData.js +44 -0
- package/dist/esm/models/CommunityRelayRule.d.ts +42 -0
- package/dist/esm/models/CommunityRelayRule.js +53 -0
- package/dist/esm/models/CommunitySearchCommunity.d.ts +70 -0
- package/dist/esm/models/CommunitySearchCommunity.js +79 -0
- package/dist/esm/models/CommunitySearchResults.d.ts +35 -0
- package/dist/esm/models/CommunitySearchResults.js +48 -0
- package/dist/esm/models/CommunitySettingsActions.d.ts +40 -0
- package/dist/esm/models/CommunitySettingsActions.js +53 -0
- package/dist/esm/models/CommunitySettingsCommunity.d.ts +120 -0
- package/dist/esm/models/CommunitySettingsCommunity.js +133 -0
- package/dist/esm/models/CommunitySettingsCreator.d.ts +49 -0
- package/dist/esm/models/CommunitySettingsCreator.js +62 -0
- package/dist/esm/models/CommunitySettingsCreatorCore.d.ts +30 -0
- package/dist/esm/models/CommunitySettingsCreatorCore.js +43 -0
- package/dist/esm/models/CommunitySettingsCreatorResults.d.ts +35 -0
- package/dist/esm/models/CommunitySettingsCreatorResults.js +48 -0
- package/dist/esm/models/CommunitySettingsCreatorVerification.d.ts +30 -0
- package/dist/esm/models/CommunitySettingsCreatorVerification.js +43 -0
- package/dist/esm/models/CommunitySettingsInvitesResult.d.ts +31 -0
- package/dist/esm/models/CommunitySettingsInvitesResult.js +44 -0
- package/dist/esm/models/CommunitySettingsResults.d.ts +35 -0
- package/dist/esm/models/CommunitySettingsResults.js +48 -0
- package/dist/esm/models/CommunitySubtopic.d.ts +34 -0
- package/dist/esm/models/CommunitySubtopic.js +47 -0
- package/dist/esm/models/CommunityTopic.d.ts +39 -0
- package/dist/esm/models/CommunityTopic.js +52 -0
- package/dist/esm/models/CommunityTopicResults.d.ts +31 -0
- package/dist/esm/models/CommunityTopicResults.js +44 -0
- package/dist/esm/models/ContentItemType.d.ts +1 -0
- package/dist/esm/models/ContentItemType.js +1 -0
- package/dist/esm/models/CreatorStudioTabBarItemQueryResponse.d.ts +36 -0
- package/dist/esm/models/CreatorStudioTabBarItemQueryResponse.js +47 -0
- package/dist/esm/models/CreatorStudioTabBarItemQueryResponseData.d.ts +30 -0
- package/dist/esm/models/CreatorStudioTabBarItemQueryResponseData.js +43 -0
- package/dist/esm/models/DataSaverModeResponse.d.ts +36 -0
- package/dist/esm/models/DataSaverModeResponse.js +47 -0
- package/dist/esm/models/DataSaverModeResponseData.d.ts +30 -0
- package/dist/esm/models/DataSaverModeResponseData.js +43 -0
- package/dist/esm/models/EventSummaryAdMetadataContainer.d.ts +34 -0
- package/dist/esm/models/EventSummaryAdMetadataContainer.js +47 -0
- package/dist/esm/models/EventSummaryEvent.d.ts +30 -0
- package/dist/esm/models/EventSummaryEvent.js +43 -0
- package/dist/esm/models/EventSummaryMedia.d.ts +36 -0
- package/dist/esm/models/EventSummaryMedia.js +49 -0
- package/dist/esm/models/EventSummaryMediaEntity.d.ts +35 -0
- package/dist/esm/models/EventSummaryMediaEntity.js +48 -0
- package/dist/esm/models/EventSummaryMediaKey.d.ts +34 -0
- package/dist/esm/models/EventSummaryMediaKey.js +47 -0
- package/dist/esm/models/EventSummaryPromotedMetadata.d.ts +65 -0
- package/dist/esm/models/EventSummaryPromotedMetadata.js +78 -0
- package/dist/esm/models/ExploreSidebarResponse.d.ts +36 -0
- package/dist/esm/models/ExploreSidebarResponse.js +47 -0
- package/dist/esm/models/ExploreSidebarResponseData.d.ts +31 -0
- package/dist/esm/models/ExploreSidebarResponseData.js +44 -0
- package/dist/esm/models/FeedbackAction.d.ts +1 -12
- package/dist/esm/models/FeedbackAction.js +0 -10
- package/dist/esm/models/GlobalCommunitiesLatestPostSearch.d.ts +31 -0
- package/dist/esm/models/GlobalCommunitiesLatestPostSearch.js +44 -0
- package/dist/esm/models/GlobalCommunitiesLatestPostSearchTimelineResponse.d.ts +36 -0
- package/dist/esm/models/GlobalCommunitiesLatestPostSearchTimelineResponse.js +47 -0
- package/dist/esm/models/GlobalCommunitiesLatestPostSearchTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/GlobalCommunitiesLatestPostSearchTimelineResponseData.js +44 -0
- package/dist/esm/models/GlobalCommunitiesPostSearch.d.ts +31 -0
- package/dist/esm/models/GlobalCommunitiesPostSearch.js +44 -0
- package/dist/esm/models/GlobalCommunitiesPostSearchTimelineResponse.d.ts +36 -0
- package/dist/esm/models/GlobalCommunitiesPostSearchTimelineResponse.js +47 -0
- package/dist/esm/models/GlobalCommunitiesPostSearchTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/GlobalCommunitiesPostSearchTimelineResponseData.js +44 -0
- package/dist/esm/models/GrokHome.d.ts +60 -0
- package/dist/esm/models/GrokHome.js +73 -0
- package/dist/esm/models/GrokHomeLayout.d.ts +35 -0
- package/dist/esm/models/GrokHomeLayout.js +48 -0
- package/dist/esm/models/GrokHomeLayoutSection.d.ts +35 -0
- package/dist/esm/models/GrokHomeLayoutSection.js +48 -0
- package/dist/esm/models/GrokHomePrompt.d.ts +50 -0
- package/dist/esm/models/GrokHomePrompt.js +63 -0
- package/dist/esm/models/GrokHomeResponse.d.ts +36 -0
- package/dist/esm/models/GrokHomeResponse.js +47 -0
- package/dist/esm/models/GrokHomeResponseData.d.ts +31 -0
- package/dist/esm/models/GrokHomeResponseData.js +44 -0
- package/dist/esm/models/GrokModelOption.d.ts +58 -0
- package/dist/esm/models/GrokModelOption.js +71 -0
- package/dist/esm/models/ItemContentUnion.d.ts +3 -0
- package/dist/esm/models/ItemContentUnion.js +5 -0
- package/dist/esm/models/ListSearch.d.ts +31 -0
- package/dist/esm/models/ListSearch.js +44 -0
- package/dist/esm/models/ListSearchTimelineResponse.d.ts +36 -0
- package/dist/esm/models/ListSearchTimelineResponse.js +47 -0
- package/dist/esm/models/ListSearchTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/ListSearchTimelineResponseData.js +44 -0
- package/dist/esm/models/ListsManagementPageTimelineResponse.d.ts +36 -0
- package/dist/esm/models/ListsManagementPageTimelineResponse.js +47 -0
- package/dist/esm/models/ListsManagementPageTimelineResponseData.d.ts +31 -0
- package/dist/esm/models/ListsManagementPageTimelineResponseData.js +44 -0
- package/dist/esm/models/ListsManagementViewer.d.ts +31 -0
- package/dist/esm/models/ListsManagementViewer.js +44 -0
- package/dist/esm/models/ModuleFooter.d.ts +1 -8
- package/dist/esm/models/ModuleFooter.js +0 -8
- package/dist/esm/models/NotificationDetails.d.ts +34 -0
- package/dist/esm/models/NotificationDetails.js +47 -0
- package/dist/esm/models/PinnedTimelines.d.ts +30 -0
- package/dist/esm/models/PinnedTimelines.js +43 -0
- package/dist/esm/models/PinnedTimelinesResponse.d.ts +36 -0
- package/dist/esm/models/PinnedTimelinesResponse.js +47 -0
- package/dist/esm/models/PinnedTimelinesResponseData.d.ts +31 -0
- package/dist/esm/models/PinnedTimelinesResponseData.js +44 -0
- package/dist/esm/models/PromotedTrend.d.ts +30 -0
- package/dist/esm/models/PromotedTrend.js +43 -0
- package/dist/esm/models/RichMessage.d.ts +5 -0
- package/dist/esm/models/RichMessage.js +3 -0
- package/dist/esm/models/RichMessageEntity.d.ts +39 -0
- package/dist/esm/models/RichMessageEntity.js +52 -0
- package/dist/esm/models/RichMessageEntityRef.d.ts +51 -0
- package/dist/esm/models/RichMessageEntityRef.js +57 -0
- package/dist/esm/models/SliceInfo.d.ts +30 -0
- package/dist/esm/models/SliceInfo.js +43 -0
- package/dist/esm/models/TimelineEventSummary.d.ts +64 -0
- package/dist/esm/models/TimelineEventSummary.js +77 -0
- package/dist/esm/models/TimelineTrend.d.ts +9 -0
- package/dist/esm/models/TimelineTrend.js +5 -0
- package/dist/esm/models/TopicCarouselQueryResponse.d.ts +36 -0
- package/dist/esm/models/TopicCarouselQueryResponse.js +47 -0
- package/dist/esm/models/TopicCarouselQueryResponseData.d.ts +31 -0
- package/dist/esm/models/TopicCarouselQueryResponseData.js +44 -0
- package/dist/esm/models/TrendMetadata.d.ts +4 -0
- package/dist/esm/models/TrendMetadata.js +2 -0
- package/dist/esm/models/TrendPromotedMetadata.d.ts +60 -0
- package/dist/esm/models/TrendPromotedMetadata.js +73 -0
- package/dist/esm/models/TypeName.d.ts +3 -0
- package/dist/esm/models/TypeName.js +3 -0
- package/dist/esm/models/UsersVerifiedAvatarsResponse.d.ts +36 -0
- package/dist/esm/models/UsersVerifiedAvatarsResponse.js +47 -0
- package/dist/esm/models/UsersVerifiedAvatarsResponseData.d.ts +31 -0
- package/dist/esm/models/UsersVerifiedAvatarsResponseData.js +44 -0
- package/dist/esm/models/VerifiedAvatarUser.d.ts +52 -0
- package/dist/esm/models/VerifiedAvatarUser.js +65 -0
- package/dist/esm/models/VerifiedAvatarUserResults.d.ts +31 -0
- package/dist/esm/models/VerifiedAvatarUserResults.js +44 -0
- package/dist/esm/models/index.d.ts +106 -0
- package/dist/esm/models/index.js +106 -0
- package/dist/models/AdMetadataContainer.d.ts +4 -0
- package/dist/models/AdMetadataContainer.js +2 -0
- package/dist/models/AuthenticatePeriscopeResponse.d.ts +36 -0
- package/dist/models/AuthenticatePeriscopeResponse.js +54 -0
- package/dist/models/AuthenticatePeriscopeResponseData.d.ts +30 -0
- package/dist/models/AuthenticatePeriscopeResponseData.js +50 -0
- package/dist/models/BirdwatchAliasSelfSelectStatus.d.ts +34 -0
- package/dist/models/BirdwatchAliasSelfSelectStatus.js +54 -0
- package/dist/models/BirdwatchFetchAliasSelfSelectStatusResponse.d.ts +36 -0
- package/dist/models/BirdwatchFetchAliasSelfSelectStatusResponse.js +54 -0
- package/dist/models/BirdwatchFetchAliasSelfSelectStatusResponseData.d.ts +31 -0
- package/dist/models/BirdwatchFetchAliasSelfSelectStatusResponseData.js +51 -0
- package/dist/models/BirdwatchFetchAuthenticatedUserProfileResponse.d.ts +36 -0
- package/dist/models/BirdwatchFetchAuthenticatedUserProfileResponse.js +54 -0
- package/dist/models/BirdwatchFetchAuthenticatedUserProfileResponseData.d.ts +31 -0
- package/dist/models/BirdwatchFetchAuthenticatedUserProfileResponseData.js +51 -0
- package/dist/models/BirdwatchFetchBirdwatchProfileResponse.d.ts +36 -0
- package/dist/models/BirdwatchFetchBirdwatchProfileResponse.js +54 -0
- package/dist/models/BirdwatchFetchBirdwatchProfileResponseData.d.ts +31 -0
- package/dist/models/BirdwatchFetchBirdwatchProfileResponseData.js +51 -0
- package/dist/models/BirdwatchFetchGlobalTimelineResponse.d.ts +36 -0
- package/dist/models/BirdwatchFetchGlobalTimelineResponse.js +54 -0
- package/dist/models/BirdwatchFetchGlobalTimelineResponseData.d.ts +31 -0
- package/dist/models/BirdwatchFetchGlobalTimelineResponseData.js +51 -0
- package/dist/models/BirdwatchFetchPublicDataResponse.d.ts +36 -0
- package/dist/models/BirdwatchFetchPublicDataResponse.js +54 -0
- package/dist/models/BirdwatchFetchPublicDataResponseData.d.ts +31 -0
- package/dist/models/BirdwatchFetchPublicDataResponseData.js +51 -0
- package/dist/models/BirdwatchHomePage.d.ts +40 -0
- package/dist/models/BirdwatchHomePage.js +60 -0
- package/dist/models/BirdwatchHomePageBody.d.ts +40 -0
- package/dist/models/BirdwatchHomePageBody.js +60 -0
- package/dist/models/BirdwatchHomeTimeline.d.ts +39 -0
- package/dist/models/BirdwatchHomeTimeline.js +59 -0
- package/dist/models/BirdwatchProfile.d.ts +30 -0
- package/dist/models/BirdwatchProfile.js +50 -0
- package/dist/models/BirdwatchPublicDataFile.d.ts +34 -0
- package/dist/models/BirdwatchPublicDataFile.js +54 -0
- package/dist/models/BirdwatchPublicDataFileBundle.d.ts +47 -0
- package/dist/models/BirdwatchPublicDataFileBundle.js +67 -0
- package/dist/models/BirdwatchViewer.d.ts +31 -0
- package/dist/models/BirdwatchViewer.js +51 -0
- package/dist/models/BookmarkSearch.d.ts +31 -0
- package/dist/models/BookmarkSearch.js +51 -0
- package/dist/models/BookmarkSearchTimelineResponse.d.ts +36 -0
- package/dist/models/BookmarkSearchTimelineResponse.js +54 -0
- package/dist/models/BookmarkSearchTimelineResponseData.d.ts +31 -0
- package/dist/models/BookmarkSearchTimelineResponseData.js +51 -0
- package/dist/models/ClientEventInfoDetails.d.ts +6 -1
- package/dist/models/ClientEventInfoDetails.js +4 -3
- package/dist/models/CommunitiesFetchOneQueryResponse.d.ts +36 -0
- package/dist/models/CommunitiesFetchOneQueryResponse.js +54 -0
- package/dist/models/CommunitiesFetchOneQueryResponseData.d.ts +31 -0
- package/dist/models/CommunitiesFetchOneQueryResponseData.js +51 -0
- package/dist/models/CommunitiesSearchQueryResponse.d.ts +36 -0
- package/dist/models/CommunitiesSearchQueryResponse.js +54 -0
- package/dist/models/CommunitiesSearchQueryResponseData.d.ts +31 -0
- package/dist/models/CommunitiesSearchQueryResponseData.js +51 -0
- package/dist/models/CommunitiesSearchSlice.d.ts +36 -0
- package/dist/models/CommunitiesSearchSlice.js +56 -0
- package/dist/models/CommunityFacepileUser.d.ts +40 -0
- package/dist/models/CommunityFacepileUser.js +60 -0
- package/dist/models/CommunityFacepileUserResults.d.ts +35 -0
- package/dist/models/CommunityFacepileUserResults.js +55 -0
- package/dist/models/CommunityHashtag.d.ts +34 -0
- package/dist/models/CommunityHashtag.js +54 -0
- package/dist/models/CommunityHashtagSlice.d.ts +36 -0
- package/dist/models/CommunityHashtagSlice.js +56 -0
- package/dist/models/CommunityIdUserResults.d.ts +35 -0
- package/dist/models/CommunityIdUserResults.js +55 -0
- package/dist/models/CommunityListMembersActionResult.d.ts +31 -0
- package/dist/models/CommunityListMembersActionResult.js +51 -0
- package/dist/models/CommunityPageActions.d.ts +50 -0
- package/dist/models/CommunityPageActions.js +70 -0
- package/dist/models/CommunityPageCommunity.d.ts +130 -0
- package/dist/models/CommunityPageCommunity.js +150 -0
- package/dist/models/CommunityPageDeleteActionResult.d.ts +39 -0
- package/dist/models/CommunityPageDeleteActionResult.js +59 -0
- package/dist/models/CommunityPageInvitesResult.d.ts +43 -0
- package/dist/models/CommunityPageInvitesResult.js +63 -0
- package/dist/models/CommunityPageJoinActionResult.d.ts +35 -0
- package/dist/models/CommunityPageJoinActionResult.js +55 -0
- package/dist/models/CommunityPageLeaveActionResult.d.ts +43 -0
- package/dist/models/CommunityPageLeaveActionResult.js +63 -0
- package/dist/models/CommunityPagePinActionResult.d.ts +35 -0
- package/dist/models/CommunityPagePinActionResult.js +55 -0
- package/dist/models/CommunityPageResults.d.ts +35 -0
- package/dist/models/CommunityPageResults.js +55 -0
- package/dist/models/CommunityPrimaryTopicName.d.ts +30 -0
- package/dist/models/CommunityPrimaryTopicName.js +50 -0
- package/dist/models/CommunityQueryResponse.d.ts +36 -0
- package/dist/models/CommunityQueryResponse.js +54 -0
- package/dist/models/CommunityQueryResponseData.d.ts +31 -0
- package/dist/models/CommunityQueryResponseData.js +51 -0
- package/dist/models/CommunityRelayRule.d.ts +42 -0
- package/dist/models/CommunityRelayRule.js +60 -0
- package/dist/models/CommunitySearchCommunity.d.ts +70 -0
- package/dist/models/CommunitySearchCommunity.js +86 -0
- package/dist/models/CommunitySearchResults.d.ts +35 -0
- package/dist/models/CommunitySearchResults.js +55 -0
- package/dist/models/CommunitySettingsActions.d.ts +40 -0
- package/dist/models/CommunitySettingsActions.js +60 -0
- package/dist/models/CommunitySettingsCommunity.d.ts +120 -0
- package/dist/models/CommunitySettingsCommunity.js +140 -0
- package/dist/models/CommunitySettingsCreator.d.ts +49 -0
- package/dist/models/CommunitySettingsCreator.js +69 -0
- package/dist/models/CommunitySettingsCreatorCore.d.ts +30 -0
- package/dist/models/CommunitySettingsCreatorCore.js +50 -0
- package/dist/models/CommunitySettingsCreatorResults.d.ts +35 -0
- package/dist/models/CommunitySettingsCreatorResults.js +55 -0
- package/dist/models/CommunitySettingsCreatorVerification.d.ts +30 -0
- package/dist/models/CommunitySettingsCreatorVerification.js +50 -0
- package/dist/models/CommunitySettingsInvitesResult.d.ts +31 -0
- package/dist/models/CommunitySettingsInvitesResult.js +51 -0
- package/dist/models/CommunitySettingsResults.d.ts +35 -0
- package/dist/models/CommunitySettingsResults.js +55 -0
- package/dist/models/CommunitySubtopic.d.ts +34 -0
- package/dist/models/CommunitySubtopic.js +54 -0
- package/dist/models/CommunityTopic.d.ts +39 -0
- package/dist/models/CommunityTopic.js +59 -0
- package/dist/models/CommunityTopicResults.d.ts +31 -0
- package/dist/models/CommunityTopicResults.js +51 -0
- package/dist/models/ContentItemType.d.ts +1 -0
- package/dist/models/ContentItemType.js +1 -0
- package/dist/models/CreatorStudioTabBarItemQueryResponse.d.ts +36 -0
- package/dist/models/CreatorStudioTabBarItemQueryResponse.js +54 -0
- package/dist/models/CreatorStudioTabBarItemQueryResponseData.d.ts +30 -0
- package/dist/models/CreatorStudioTabBarItemQueryResponseData.js +50 -0
- package/dist/models/DataSaverModeResponse.d.ts +36 -0
- package/dist/models/DataSaverModeResponse.js +54 -0
- package/dist/models/DataSaverModeResponseData.d.ts +30 -0
- package/dist/models/DataSaverModeResponseData.js +50 -0
- package/dist/models/EventSummaryAdMetadataContainer.d.ts +34 -0
- package/dist/models/EventSummaryAdMetadataContainer.js +54 -0
- package/dist/models/EventSummaryEvent.d.ts +30 -0
- package/dist/models/EventSummaryEvent.js +50 -0
- package/dist/models/EventSummaryMedia.d.ts +36 -0
- package/dist/models/EventSummaryMedia.js +56 -0
- package/dist/models/EventSummaryMediaEntity.d.ts +35 -0
- package/dist/models/EventSummaryMediaEntity.js +55 -0
- package/dist/models/EventSummaryMediaKey.d.ts +34 -0
- package/dist/models/EventSummaryMediaKey.js +54 -0
- package/dist/models/EventSummaryPromotedMetadata.d.ts +65 -0
- package/dist/models/EventSummaryPromotedMetadata.js +85 -0
- package/dist/models/ExploreSidebarResponse.d.ts +36 -0
- package/dist/models/ExploreSidebarResponse.js +54 -0
- package/dist/models/ExploreSidebarResponseData.d.ts +31 -0
- package/dist/models/ExploreSidebarResponseData.js +51 -0
- package/dist/models/FeedbackAction.d.ts +1 -12
- package/dist/models/FeedbackAction.js +1 -11
- package/dist/models/GlobalCommunitiesLatestPostSearch.d.ts +31 -0
- package/dist/models/GlobalCommunitiesLatestPostSearch.js +51 -0
- package/dist/models/GlobalCommunitiesLatestPostSearchTimelineResponse.d.ts +36 -0
- package/dist/models/GlobalCommunitiesLatestPostSearchTimelineResponse.js +54 -0
- package/dist/models/GlobalCommunitiesLatestPostSearchTimelineResponseData.d.ts +31 -0
- package/dist/models/GlobalCommunitiesLatestPostSearchTimelineResponseData.js +51 -0
- package/dist/models/GlobalCommunitiesPostSearch.d.ts +31 -0
- package/dist/models/GlobalCommunitiesPostSearch.js +51 -0
- package/dist/models/GlobalCommunitiesPostSearchTimelineResponse.d.ts +36 -0
- package/dist/models/GlobalCommunitiesPostSearchTimelineResponse.js +54 -0
- package/dist/models/GlobalCommunitiesPostSearchTimelineResponseData.d.ts +31 -0
- package/dist/models/GlobalCommunitiesPostSearchTimelineResponseData.js +51 -0
- package/dist/models/GrokHome.d.ts +60 -0
- package/dist/models/GrokHome.js +80 -0
- package/dist/models/GrokHomeLayout.d.ts +35 -0
- package/dist/models/GrokHomeLayout.js +55 -0
- package/dist/models/GrokHomeLayoutSection.d.ts +35 -0
- package/dist/models/GrokHomeLayoutSection.js +55 -0
- package/dist/models/GrokHomePrompt.d.ts +50 -0
- package/dist/models/GrokHomePrompt.js +70 -0
- package/dist/models/GrokHomeResponse.d.ts +36 -0
- package/dist/models/GrokHomeResponse.js +54 -0
- package/dist/models/GrokHomeResponseData.d.ts +31 -0
- package/dist/models/GrokHomeResponseData.js +51 -0
- package/dist/models/GrokModelOption.d.ts +58 -0
- package/dist/models/GrokModelOption.js +78 -0
- package/dist/models/ItemContentUnion.d.ts +3 -0
- package/dist/models/ItemContentUnion.js +5 -0
- package/dist/models/ListSearch.d.ts +31 -0
- package/dist/models/ListSearch.js +51 -0
- package/dist/models/ListSearchTimelineResponse.d.ts +36 -0
- package/dist/models/ListSearchTimelineResponse.js +54 -0
- package/dist/models/ListSearchTimelineResponseData.d.ts +31 -0
- package/dist/models/ListSearchTimelineResponseData.js +51 -0
- package/dist/models/ListsManagementPageTimelineResponse.d.ts +36 -0
- package/dist/models/ListsManagementPageTimelineResponse.js +54 -0
- package/dist/models/ListsManagementPageTimelineResponseData.d.ts +31 -0
- package/dist/models/ListsManagementPageTimelineResponseData.js +51 -0
- package/dist/models/ListsManagementViewer.d.ts +31 -0
- package/dist/models/ListsManagementViewer.js +51 -0
- package/dist/models/ModuleFooter.d.ts +1 -8
- package/dist/models/ModuleFooter.js +0 -9
- package/dist/models/NotificationDetails.d.ts +34 -0
- package/dist/models/NotificationDetails.js +54 -0
- package/dist/models/PinnedTimelines.d.ts +30 -0
- package/dist/models/PinnedTimelines.js +50 -0
- package/dist/models/PinnedTimelinesResponse.d.ts +36 -0
- package/dist/models/PinnedTimelinesResponse.js +54 -0
- package/dist/models/PinnedTimelinesResponseData.d.ts +31 -0
- package/dist/models/PinnedTimelinesResponseData.js +51 -0
- package/dist/models/PromotedTrend.d.ts +30 -0
- package/dist/models/PromotedTrend.js +50 -0
- package/dist/models/RichMessage.d.ts +5 -0
- package/dist/models/RichMessage.js +3 -0
- package/dist/models/RichMessageEntity.d.ts +39 -0
- package/dist/models/RichMessageEntity.js +59 -0
- package/dist/models/RichMessageEntityRef.d.ts +51 -0
- package/dist/models/RichMessageEntityRef.js +65 -0
- package/dist/models/SliceInfo.d.ts +30 -0
- package/dist/models/SliceInfo.js +50 -0
- package/dist/models/TimelineEventSummary.d.ts +64 -0
- package/dist/models/TimelineEventSummary.js +84 -0
- package/dist/models/TimelineTrend.d.ts +9 -0
- package/dist/models/TimelineTrend.js +5 -0
- package/dist/models/TopicCarouselQueryResponse.d.ts +36 -0
- package/dist/models/TopicCarouselQueryResponse.js +54 -0
- package/dist/models/TopicCarouselQueryResponseData.d.ts +31 -0
- package/dist/models/TopicCarouselQueryResponseData.js +51 -0
- package/dist/models/TrendMetadata.d.ts +4 -0
- package/dist/models/TrendMetadata.js +2 -0
- package/dist/models/TrendPromotedMetadata.d.ts +60 -0
- package/dist/models/TrendPromotedMetadata.js +80 -0
- package/dist/models/TypeName.d.ts +3 -0
- package/dist/models/TypeName.js +3 -0
- package/dist/models/UsersVerifiedAvatarsResponse.d.ts +36 -0
- package/dist/models/UsersVerifiedAvatarsResponse.js +54 -0
- package/dist/models/UsersVerifiedAvatarsResponseData.d.ts +31 -0
- package/dist/models/UsersVerifiedAvatarsResponseData.js +51 -0
- package/dist/models/VerifiedAvatarUser.d.ts +52 -0
- package/dist/models/VerifiedAvatarUser.js +72 -0
- package/dist/models/VerifiedAvatarUserResults.d.ts +31 -0
- package/dist/models/VerifiedAvatarUserResults.js +51 -0
- package/dist/models/index.d.ts +106 -0
- package/dist/models/index.js +106 -0
- package/package.json +1 -1
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { CommunitiesFetchOneQueryResponseFromJSON, } from '../models/CommunitiesFetchOneQueryResponse';
|
|
25
|
+
import { CommunitiesSearchQueryResponseFromJSON, } from '../models/CommunitiesSearchQueryResponse';
|
|
26
|
+
import { CommunityQueryResponseFromJSON, } from '../models/CommunityQueryResponse';
|
|
27
|
+
import { GlobalCommunitiesLatestPostSearchTimelineResponseFromJSON, } from '../models/GlobalCommunitiesLatestPostSearchTimelineResponse';
|
|
28
|
+
import { GlobalCommunitiesPostSearchTimelineResponseFromJSON, } from '../models/GlobalCommunitiesPostSearchTimelineResponse';
|
|
29
|
+
import { TopicCarouselQueryResponseFromJSON, } from '../models/TopicCarouselQueryResponse';
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export class CommunityApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for getCommunitiesFetchOneQuery without sending the request
|
|
36
|
+
*/
|
|
37
|
+
getCommunitiesFetchOneQueryRequestOpts(requestParameters) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunitiesFetchOneQuery().');
|
|
41
|
+
}
|
|
42
|
+
if (requestParameters['features'] == null) {
|
|
43
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunitiesFetchOneQuery().');
|
|
44
|
+
}
|
|
45
|
+
if (requestParameters['variables'] == null) {
|
|
46
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunitiesFetchOneQuery().');
|
|
47
|
+
}
|
|
48
|
+
const queryParameters = {};
|
|
49
|
+
if (requestParameters['features'] != null) {
|
|
50
|
+
queryParameters['features'] = requestParameters['features'];
|
|
51
|
+
}
|
|
52
|
+
if (requestParameters['variables'] != null) {
|
|
53
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
54
|
+
}
|
|
55
|
+
const headerParameters = {};
|
|
56
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
57
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
58
|
+
}
|
|
59
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
60
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
61
|
+
}
|
|
62
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
64
|
+
}
|
|
65
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
67
|
+
}
|
|
68
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
70
|
+
}
|
|
71
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
72
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
73
|
+
}
|
|
74
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
76
|
+
}
|
|
77
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
78
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
81
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
82
|
+
}
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
const token = this.configuration.accessToken;
|
|
85
|
+
const tokenString = yield token("BearerAuth", []);
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
91
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
92
|
+
}
|
|
93
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
94
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
95
|
+
}
|
|
96
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
97
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
98
|
+
}
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
101
|
+
}
|
|
102
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
104
|
+
}
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
107
|
+
}
|
|
108
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
110
|
+
}
|
|
111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
113
|
+
}
|
|
114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
116
|
+
}
|
|
117
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
118
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
119
|
+
}
|
|
120
|
+
let urlPath = `/graphql/{pathQueryId}/CommunitiesFetchOneQuery`;
|
|
121
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
122
|
+
return {
|
|
123
|
+
path: urlPath,
|
|
124
|
+
method: 'GET',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* a community by id (community page)
|
|
132
|
+
*/
|
|
133
|
+
getCommunitiesFetchOneQueryRaw(requestParameters, initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const requestOptions = yield this.getCommunitiesFetchOneQueryRequestOpts(requestParameters);
|
|
136
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunitiesFetchOneQueryResponseFromJSON(jsonValue));
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* a community by id (community page)
|
|
142
|
+
*/
|
|
143
|
+
getCommunitiesFetchOneQuery(requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const response = yield this.getCommunitiesFetchOneQueryRaw(requestParameters, initOverrides);
|
|
146
|
+
return yield response.value();
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Creates request options for getCommunitiesSearchQuery without sending the request
|
|
151
|
+
*/
|
|
152
|
+
getCommunitiesSearchQueryRequestOpts(requestParameters) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
155
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunitiesSearchQuery().');
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters['variables'] == null) {
|
|
158
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunitiesSearchQuery().');
|
|
159
|
+
}
|
|
160
|
+
const queryParameters = {};
|
|
161
|
+
if (requestParameters['variables'] != null) {
|
|
162
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
163
|
+
}
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
166
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
167
|
+
}
|
|
168
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
169
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
170
|
+
}
|
|
171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
173
|
+
}
|
|
174
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
175
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
176
|
+
}
|
|
177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
179
|
+
}
|
|
180
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
181
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
182
|
+
}
|
|
183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
184
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
185
|
+
}
|
|
186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
187
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
188
|
+
}
|
|
189
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
190
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
191
|
+
}
|
|
192
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
193
|
+
const token = this.configuration.accessToken;
|
|
194
|
+
const tokenString = yield token("BearerAuth", []);
|
|
195
|
+
if (tokenString) {
|
|
196
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
200
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
201
|
+
}
|
|
202
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
203
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
204
|
+
}
|
|
205
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
206
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
207
|
+
}
|
|
208
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
209
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
210
|
+
}
|
|
211
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
212
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
213
|
+
}
|
|
214
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
215
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
216
|
+
}
|
|
217
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
218
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
219
|
+
}
|
|
220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
221
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
222
|
+
}
|
|
223
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
224
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
225
|
+
}
|
|
226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
228
|
+
}
|
|
229
|
+
let urlPath = `/graphql/{pathQueryId}/CommunitiesSearchQuery`;
|
|
230
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
231
|
+
return {
|
|
232
|
+
path: urlPath,
|
|
233
|
+
method: 'GET',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* search communities. cursor:[slice_info.next_cursor]
|
|
241
|
+
*/
|
|
242
|
+
getCommunitiesSearchQueryRaw(requestParameters, initOverrides) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const requestOptions = yield this.getCommunitiesSearchQueryRequestOpts(requestParameters);
|
|
245
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunitiesSearchQueryResponseFromJSON(jsonValue));
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* search communities. cursor:[slice_info.next_cursor]
|
|
251
|
+
*/
|
|
252
|
+
getCommunitiesSearchQuery(requestParameters, initOverrides) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const response = yield this.getCommunitiesSearchQueryRaw(requestParameters, initOverrides);
|
|
255
|
+
return yield response.value();
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Creates request options for getCommunityQuery without sending the request
|
|
260
|
+
*/
|
|
261
|
+
getCommunityQueryRequestOpts(requestParameters) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
264
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getCommunityQuery().');
|
|
265
|
+
}
|
|
266
|
+
if (requestParameters['features'] == null) {
|
|
267
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getCommunityQuery().');
|
|
268
|
+
}
|
|
269
|
+
if (requestParameters['variables'] == null) {
|
|
270
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getCommunityQuery().');
|
|
271
|
+
}
|
|
272
|
+
const queryParameters = {};
|
|
273
|
+
if (requestParameters['features'] != null) {
|
|
274
|
+
queryParameters['features'] = requestParameters['features'];
|
|
275
|
+
}
|
|
276
|
+
if (requestParameters['variables'] != null) {
|
|
277
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
278
|
+
}
|
|
279
|
+
const headerParameters = {};
|
|
280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
281
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
282
|
+
}
|
|
283
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
284
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
285
|
+
}
|
|
286
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
287
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
288
|
+
}
|
|
289
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
290
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
291
|
+
}
|
|
292
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
293
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
294
|
+
}
|
|
295
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
296
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
297
|
+
}
|
|
298
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
299
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
300
|
+
}
|
|
301
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
302
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
303
|
+
}
|
|
304
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
305
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
306
|
+
}
|
|
307
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
308
|
+
const token = this.configuration.accessToken;
|
|
309
|
+
const tokenString = yield token("BearerAuth", []);
|
|
310
|
+
if (tokenString) {
|
|
311
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
315
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
316
|
+
}
|
|
317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
318
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
319
|
+
}
|
|
320
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
321
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
322
|
+
}
|
|
323
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
324
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
325
|
+
}
|
|
326
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
327
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
328
|
+
}
|
|
329
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
330
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
331
|
+
}
|
|
332
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
333
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
334
|
+
}
|
|
335
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
336
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
337
|
+
}
|
|
338
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
339
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
340
|
+
}
|
|
341
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
342
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
343
|
+
}
|
|
344
|
+
let urlPath = `/graphql/{pathQueryId}/CommunityQuery`;
|
|
345
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
346
|
+
return {
|
|
347
|
+
path: urlPath,
|
|
348
|
+
method: 'GET',
|
|
349
|
+
headers: headerParameters,
|
|
350
|
+
query: queryParameters,
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* a community by id (community settings and moderation pages)
|
|
356
|
+
*/
|
|
357
|
+
getCommunityQueryRaw(requestParameters, initOverrides) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
const requestOptions = yield this.getCommunityQueryRequestOpts(requestParameters);
|
|
360
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
361
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CommunityQueryResponseFromJSON(jsonValue));
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* a community by id (community settings and moderation pages)
|
|
366
|
+
*/
|
|
367
|
+
getCommunityQuery(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const response = yield this.getCommunityQueryRaw(requestParameters, initOverrides);
|
|
370
|
+
return yield response.value();
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Creates request options for getGlobalCommunitiesLatestPostSearchTimeline without sending the request
|
|
375
|
+
*/
|
|
376
|
+
getGlobalCommunitiesLatestPostSearchTimelineRequestOpts(requestParameters) {
|
|
377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
378
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
379
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getGlobalCommunitiesLatestPostSearchTimeline().');
|
|
380
|
+
}
|
|
381
|
+
if (requestParameters['features'] == null) {
|
|
382
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getGlobalCommunitiesLatestPostSearchTimeline().');
|
|
383
|
+
}
|
|
384
|
+
if (requestParameters['variables'] == null) {
|
|
385
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getGlobalCommunitiesLatestPostSearchTimeline().');
|
|
386
|
+
}
|
|
387
|
+
const queryParameters = {};
|
|
388
|
+
if (requestParameters['features'] != null) {
|
|
389
|
+
queryParameters['features'] = requestParameters['features'];
|
|
390
|
+
}
|
|
391
|
+
if (requestParameters['variables'] != null) {
|
|
392
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
393
|
+
}
|
|
394
|
+
const headerParameters = {};
|
|
395
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
396
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
397
|
+
}
|
|
398
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
399
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
400
|
+
}
|
|
401
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
402
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
403
|
+
}
|
|
404
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
405
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
406
|
+
}
|
|
407
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
408
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
409
|
+
}
|
|
410
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
411
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
412
|
+
}
|
|
413
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
414
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
415
|
+
}
|
|
416
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
417
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
418
|
+
}
|
|
419
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
420
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
421
|
+
}
|
|
422
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
423
|
+
const token = this.configuration.accessToken;
|
|
424
|
+
const tokenString = yield token("BearerAuth", []);
|
|
425
|
+
if (tokenString) {
|
|
426
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
430
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
431
|
+
}
|
|
432
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
433
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
434
|
+
}
|
|
435
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
436
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
437
|
+
}
|
|
438
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
439
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
440
|
+
}
|
|
441
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
442
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
443
|
+
}
|
|
444
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
445
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
446
|
+
}
|
|
447
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
448
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
449
|
+
}
|
|
450
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
451
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
452
|
+
}
|
|
453
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
454
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
455
|
+
}
|
|
456
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
457
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
458
|
+
}
|
|
459
|
+
let urlPath = `/graphql/{pathQueryId}/GlobalCommunitiesLatestPostSearchTimeline`;
|
|
460
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
461
|
+
return {
|
|
462
|
+
path: urlPath,
|
|
463
|
+
method: 'GET',
|
|
464
|
+
headers: headerParameters,
|
|
465
|
+
query: queryParameters,
|
|
466
|
+
};
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* search posts across communities (Latest)
|
|
471
|
+
*/
|
|
472
|
+
getGlobalCommunitiesLatestPostSearchTimelineRaw(requestParameters, initOverrides) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
const requestOptions = yield this.getGlobalCommunitiesLatestPostSearchTimelineRequestOpts(requestParameters);
|
|
475
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
476
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalCommunitiesLatestPostSearchTimelineResponseFromJSON(jsonValue));
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* search posts across communities (Latest)
|
|
481
|
+
*/
|
|
482
|
+
getGlobalCommunitiesLatestPostSearchTimeline(requestParameters, initOverrides) {
|
|
483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
484
|
+
const response = yield this.getGlobalCommunitiesLatestPostSearchTimelineRaw(requestParameters, initOverrides);
|
|
485
|
+
return yield response.value();
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Creates request options for getGlobalCommunitiesPostSearchTimeline without sending the request
|
|
490
|
+
*/
|
|
491
|
+
getGlobalCommunitiesPostSearchTimelineRequestOpts(requestParameters) {
|
|
492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
493
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
494
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getGlobalCommunitiesPostSearchTimeline().');
|
|
495
|
+
}
|
|
496
|
+
if (requestParameters['features'] == null) {
|
|
497
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getGlobalCommunitiesPostSearchTimeline().');
|
|
498
|
+
}
|
|
499
|
+
if (requestParameters['variables'] == null) {
|
|
500
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getGlobalCommunitiesPostSearchTimeline().');
|
|
501
|
+
}
|
|
502
|
+
const queryParameters = {};
|
|
503
|
+
if (requestParameters['features'] != null) {
|
|
504
|
+
queryParameters['features'] = requestParameters['features'];
|
|
505
|
+
}
|
|
506
|
+
if (requestParameters['variables'] != null) {
|
|
507
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
508
|
+
}
|
|
509
|
+
const headerParameters = {};
|
|
510
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
511
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
512
|
+
}
|
|
513
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
514
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
515
|
+
}
|
|
516
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
517
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
518
|
+
}
|
|
519
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
520
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
521
|
+
}
|
|
522
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
523
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
524
|
+
}
|
|
525
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
526
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
527
|
+
}
|
|
528
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
529
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
530
|
+
}
|
|
531
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
532
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
533
|
+
}
|
|
534
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
535
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
536
|
+
}
|
|
537
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
538
|
+
const token = this.configuration.accessToken;
|
|
539
|
+
const tokenString = yield token("BearerAuth", []);
|
|
540
|
+
if (tokenString) {
|
|
541
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
545
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
546
|
+
}
|
|
547
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
548
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
549
|
+
}
|
|
550
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
551
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
552
|
+
}
|
|
553
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
554
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
555
|
+
}
|
|
556
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
557
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
558
|
+
}
|
|
559
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
560
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
561
|
+
}
|
|
562
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
563
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
564
|
+
}
|
|
565
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
566
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
567
|
+
}
|
|
568
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
569
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
570
|
+
}
|
|
571
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
572
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
573
|
+
}
|
|
574
|
+
let urlPath = `/graphql/{pathQueryId}/GlobalCommunitiesPostSearchTimeline`;
|
|
575
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
576
|
+
return {
|
|
577
|
+
path: urlPath,
|
|
578
|
+
method: 'GET',
|
|
579
|
+
headers: headerParameters,
|
|
580
|
+
query: queryParameters,
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* search posts across communities (Top)
|
|
586
|
+
*/
|
|
587
|
+
getGlobalCommunitiesPostSearchTimelineRaw(requestParameters, initOverrides) {
|
|
588
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
589
|
+
const requestOptions = yield this.getGlobalCommunitiesPostSearchTimelineRequestOpts(requestParameters);
|
|
590
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
591
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalCommunitiesPostSearchTimelineResponseFromJSON(jsonValue));
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* search posts across communities (Top)
|
|
596
|
+
*/
|
|
597
|
+
getGlobalCommunitiesPostSearchTimeline(requestParameters, initOverrides) {
|
|
598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
599
|
+
const response = yield this.getGlobalCommunitiesPostSearchTimelineRaw(requestParameters, initOverrides);
|
|
600
|
+
return yield response.value();
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Creates request options for getTopicCarouselQuery without sending the request
|
|
605
|
+
*/
|
|
606
|
+
getTopicCarouselQueryRequestOpts(requestParameters) {
|
|
607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
609
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getTopicCarouselQuery().');
|
|
610
|
+
}
|
|
611
|
+
if (requestParameters['variables'] == null) {
|
|
612
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getTopicCarouselQuery().');
|
|
613
|
+
}
|
|
614
|
+
const queryParameters = {};
|
|
615
|
+
if (requestParameters['variables'] != null) {
|
|
616
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
617
|
+
}
|
|
618
|
+
const headerParameters = {};
|
|
619
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
620
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
621
|
+
}
|
|
622
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
623
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
624
|
+
}
|
|
625
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
626
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
627
|
+
}
|
|
628
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
629
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
630
|
+
}
|
|
631
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
632
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
633
|
+
}
|
|
634
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
635
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
636
|
+
}
|
|
637
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
638
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
639
|
+
}
|
|
640
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
641
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
642
|
+
}
|
|
643
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
644
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
645
|
+
}
|
|
646
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
647
|
+
const token = this.configuration.accessToken;
|
|
648
|
+
const tokenString = yield token("BearerAuth", []);
|
|
649
|
+
if (tokenString) {
|
|
650
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
654
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
655
|
+
}
|
|
656
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
657
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
658
|
+
}
|
|
659
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
660
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
661
|
+
}
|
|
662
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
663
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
664
|
+
}
|
|
665
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
666
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
667
|
+
}
|
|
668
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
669
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
670
|
+
}
|
|
671
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
672
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
673
|
+
}
|
|
674
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
675
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
676
|
+
}
|
|
677
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
678
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
679
|
+
}
|
|
680
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
681
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
682
|
+
}
|
|
683
|
+
let urlPath = `/graphql/{pathQueryId}/TopicCarouselQuery`;
|
|
684
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
685
|
+
return {
|
|
686
|
+
path: urlPath,
|
|
687
|
+
method: 'GET',
|
|
688
|
+
headers: headerParameters,
|
|
689
|
+
query: queryParameters,
|
|
690
|
+
};
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* community topics and subtopics
|
|
695
|
+
*/
|
|
696
|
+
getTopicCarouselQueryRaw(requestParameters, initOverrides) {
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
const requestOptions = yield this.getTopicCarouselQueryRequestOpts(requestParameters);
|
|
699
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
700
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TopicCarouselQueryResponseFromJSON(jsonValue));
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* community topics and subtopics
|
|
705
|
+
*/
|
|
706
|
+
getTopicCarouselQuery(requestParameters, initOverrides) {
|
|
707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
708
|
+
const response = yield this.getTopicCarouselQueryRaw(requestParameters, initOverrides);
|
|
709
|
+
return yield response.value();
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
}
|