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,602 @@
|
|
|
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 { BirdwatchFetchAliasSelfSelectStatusResponseFromJSON, } from '../models/BirdwatchFetchAliasSelfSelectStatusResponse';
|
|
25
|
+
import { BirdwatchFetchAuthenticatedUserProfileResponseFromJSON, } from '../models/BirdwatchFetchAuthenticatedUserProfileResponse';
|
|
26
|
+
import { BirdwatchFetchBirdwatchProfileResponseFromJSON, } from '../models/BirdwatchFetchBirdwatchProfileResponse';
|
|
27
|
+
import { BirdwatchFetchGlobalTimelineResponseFromJSON, } from '../models/BirdwatchFetchGlobalTimelineResponse';
|
|
28
|
+
import { BirdwatchFetchPublicDataResponseFromJSON, } from '../models/BirdwatchFetchPublicDataResponse';
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export class BirdwatchApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Creates request options for getBirdwatchFetchAliasSelfSelectStatus without sending the request
|
|
35
|
+
*/
|
|
36
|
+
getBirdwatchFetchAliasSelfSelectStatusRequestOpts(requestParameters) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBirdwatchFetchAliasSelfSelectStatus().');
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['variables'] == null) {
|
|
42
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBirdwatchFetchAliasSelfSelectStatus().');
|
|
43
|
+
}
|
|
44
|
+
const queryParameters = {};
|
|
45
|
+
if (requestParameters['variables'] != null) {
|
|
46
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
47
|
+
}
|
|
48
|
+
const headerParameters = {};
|
|
49
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
50
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
51
|
+
}
|
|
52
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
53
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
54
|
+
}
|
|
55
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
56
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
57
|
+
}
|
|
58
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
59
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
60
|
+
}
|
|
61
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
62
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
63
|
+
}
|
|
64
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
66
|
+
}
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
69
|
+
}
|
|
70
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
71
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
72
|
+
}
|
|
73
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
75
|
+
}
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("BearerAuth", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
84
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
85
|
+
}
|
|
86
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
87
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
88
|
+
}
|
|
89
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
90
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
91
|
+
}
|
|
92
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
93
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
94
|
+
}
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
97
|
+
}
|
|
98
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
100
|
+
}
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
103
|
+
}
|
|
104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
106
|
+
}
|
|
107
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
109
|
+
}
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
112
|
+
}
|
|
113
|
+
let urlPath = `/graphql/{pathQueryId}/BirdwatchFetchAliasSelfSelectStatus`;
|
|
114
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
115
|
+
return {
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* whether the account can pick / has picked a Community Notes alias
|
|
125
|
+
*/
|
|
126
|
+
getBirdwatchFetchAliasSelfSelectStatusRaw(requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const requestOptions = yield this.getBirdwatchFetchAliasSelfSelectStatusRequestOpts(requestParameters);
|
|
129
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BirdwatchFetchAliasSelfSelectStatusResponseFromJSON(jsonValue));
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* whether the account can pick / has picked a Community Notes alias
|
|
135
|
+
*/
|
|
136
|
+
getBirdwatchFetchAliasSelfSelectStatus(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const response = yield this.getBirdwatchFetchAliasSelfSelectStatusRaw(requestParameters, initOverrides);
|
|
139
|
+
return yield response.value();
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for getBirdwatchFetchAuthenticatedUserProfile without sending the request
|
|
144
|
+
*/
|
|
145
|
+
getBirdwatchFetchAuthenticatedUserProfileRequestOpts(requestParameters) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
148
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBirdwatchFetchAuthenticatedUserProfile().');
|
|
149
|
+
}
|
|
150
|
+
if (requestParameters['features'] == null) {
|
|
151
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBirdwatchFetchAuthenticatedUserProfile().');
|
|
152
|
+
}
|
|
153
|
+
if (requestParameters['variables'] == null) {
|
|
154
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBirdwatchFetchAuthenticatedUserProfile().');
|
|
155
|
+
}
|
|
156
|
+
const queryParameters = {};
|
|
157
|
+
if (requestParameters['features'] != null) {
|
|
158
|
+
queryParameters['features'] = requestParameters['features'];
|
|
159
|
+
}
|
|
160
|
+
if (requestParameters['variables'] != null) {
|
|
161
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
162
|
+
}
|
|
163
|
+
const headerParameters = {};
|
|
164
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
165
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
166
|
+
}
|
|
167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
169
|
+
}
|
|
170
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
171
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
172
|
+
}
|
|
173
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
174
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
175
|
+
}
|
|
176
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
177
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
178
|
+
}
|
|
179
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
180
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
181
|
+
}
|
|
182
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
183
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
184
|
+
}
|
|
185
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
186
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
187
|
+
}
|
|
188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
189
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
190
|
+
}
|
|
191
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
192
|
+
const token = this.configuration.accessToken;
|
|
193
|
+
const tokenString = yield token("BearerAuth", []);
|
|
194
|
+
if (tokenString) {
|
|
195
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
199
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
200
|
+
}
|
|
201
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
202
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
203
|
+
}
|
|
204
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
205
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
206
|
+
}
|
|
207
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
208
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
209
|
+
}
|
|
210
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
211
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
212
|
+
}
|
|
213
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
215
|
+
}
|
|
216
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
217
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
218
|
+
}
|
|
219
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
220
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
221
|
+
}
|
|
222
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
223
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
224
|
+
}
|
|
225
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
226
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
227
|
+
}
|
|
228
|
+
let urlPath = `/graphql/{pathQueryId}/BirdwatchFetchAuthenticatedUserProfile`;
|
|
229
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
230
|
+
return {
|
|
231
|
+
path: urlPath,
|
|
232
|
+
method: 'GET',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* the account\'s Community Notes profile
|
|
240
|
+
*/
|
|
241
|
+
getBirdwatchFetchAuthenticatedUserProfileRaw(requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
const requestOptions = yield this.getBirdwatchFetchAuthenticatedUserProfileRequestOpts(requestParameters);
|
|
244
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
245
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BirdwatchFetchAuthenticatedUserProfileResponseFromJSON(jsonValue));
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* the account\'s Community Notes profile
|
|
250
|
+
*/
|
|
251
|
+
getBirdwatchFetchAuthenticatedUserProfile(requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
const response = yield this.getBirdwatchFetchAuthenticatedUserProfileRaw(requestParameters, initOverrides);
|
|
254
|
+
return yield response.value();
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Creates request options for getBirdwatchFetchBirdwatchProfile without sending the request
|
|
259
|
+
*/
|
|
260
|
+
getBirdwatchFetchBirdwatchProfileRequestOpts(requestParameters) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
263
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBirdwatchFetchBirdwatchProfile().');
|
|
264
|
+
}
|
|
265
|
+
if (requestParameters['features'] == null) {
|
|
266
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBirdwatchFetchBirdwatchProfile().');
|
|
267
|
+
}
|
|
268
|
+
if (requestParameters['variables'] == null) {
|
|
269
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBirdwatchFetchBirdwatchProfile().');
|
|
270
|
+
}
|
|
271
|
+
const queryParameters = {};
|
|
272
|
+
if (requestParameters['features'] != null) {
|
|
273
|
+
queryParameters['features'] = requestParameters['features'];
|
|
274
|
+
}
|
|
275
|
+
if (requestParameters['variables'] != null) {
|
|
276
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
277
|
+
}
|
|
278
|
+
const headerParameters = {};
|
|
279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
280
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
281
|
+
}
|
|
282
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
283
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
284
|
+
}
|
|
285
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
286
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
287
|
+
}
|
|
288
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
289
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
290
|
+
}
|
|
291
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
292
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
293
|
+
}
|
|
294
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
295
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
296
|
+
}
|
|
297
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
298
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
299
|
+
}
|
|
300
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
301
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
302
|
+
}
|
|
303
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
304
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
305
|
+
}
|
|
306
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
307
|
+
const token = this.configuration.accessToken;
|
|
308
|
+
const tokenString = yield token("BearerAuth", []);
|
|
309
|
+
if (tokenString) {
|
|
310
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
314
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
315
|
+
}
|
|
316
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
318
|
+
}
|
|
319
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
320
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
321
|
+
}
|
|
322
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
323
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
324
|
+
}
|
|
325
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
326
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
327
|
+
}
|
|
328
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
329
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
330
|
+
}
|
|
331
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
332
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
333
|
+
}
|
|
334
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
335
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
336
|
+
}
|
|
337
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
339
|
+
}
|
|
340
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
341
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
342
|
+
}
|
|
343
|
+
let urlPath = `/graphql/{pathQueryId}/BirdwatchFetchBirdwatchProfile`;
|
|
344
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
345
|
+
return {
|
|
346
|
+
path: urlPath,
|
|
347
|
+
method: 'GET',
|
|
348
|
+
headers: headerParameters,
|
|
349
|
+
query: queryParameters,
|
|
350
|
+
};
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* a Community Notes profile by alias
|
|
355
|
+
*/
|
|
356
|
+
getBirdwatchFetchBirdwatchProfileRaw(requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
358
|
+
const requestOptions = yield this.getBirdwatchFetchBirdwatchProfileRequestOpts(requestParameters);
|
|
359
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
360
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BirdwatchFetchBirdwatchProfileResponseFromJSON(jsonValue));
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* a Community Notes profile by alias
|
|
365
|
+
*/
|
|
366
|
+
getBirdwatchFetchBirdwatchProfile(requestParameters, initOverrides) {
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const response = yield this.getBirdwatchFetchBirdwatchProfileRaw(requestParameters, initOverrides);
|
|
369
|
+
return yield response.value();
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Creates request options for getBirdwatchFetchGlobalTimeline without sending the request
|
|
374
|
+
*/
|
|
375
|
+
getBirdwatchFetchGlobalTimelineRequestOpts(requestParameters) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
378
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBirdwatchFetchGlobalTimeline().');
|
|
379
|
+
}
|
|
380
|
+
if (requestParameters['features'] == null) {
|
|
381
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBirdwatchFetchGlobalTimeline().');
|
|
382
|
+
}
|
|
383
|
+
if (requestParameters['variables'] == null) {
|
|
384
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBirdwatchFetchGlobalTimeline().');
|
|
385
|
+
}
|
|
386
|
+
const queryParameters = {};
|
|
387
|
+
if (requestParameters['features'] != null) {
|
|
388
|
+
queryParameters['features'] = requestParameters['features'];
|
|
389
|
+
}
|
|
390
|
+
if (requestParameters['variables'] != null) {
|
|
391
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
392
|
+
}
|
|
393
|
+
const headerParameters = {};
|
|
394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
395
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
396
|
+
}
|
|
397
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
398
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
399
|
+
}
|
|
400
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
401
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
402
|
+
}
|
|
403
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
404
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
405
|
+
}
|
|
406
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
407
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
408
|
+
}
|
|
409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
410
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
411
|
+
}
|
|
412
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
413
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
414
|
+
}
|
|
415
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
416
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
417
|
+
}
|
|
418
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
419
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
420
|
+
}
|
|
421
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
422
|
+
const token = this.configuration.accessToken;
|
|
423
|
+
const tokenString = yield token("BearerAuth", []);
|
|
424
|
+
if (tokenString) {
|
|
425
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
429
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
430
|
+
}
|
|
431
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
432
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
433
|
+
}
|
|
434
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
435
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
436
|
+
}
|
|
437
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
438
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
439
|
+
}
|
|
440
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
441
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
442
|
+
}
|
|
443
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
444
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
445
|
+
}
|
|
446
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
447
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
448
|
+
}
|
|
449
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
450
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
451
|
+
}
|
|
452
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
453
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
454
|
+
}
|
|
455
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
456
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
457
|
+
}
|
|
458
|
+
let urlPath = `/graphql/{pathQueryId}/BirdwatchFetchGlobalTimeline`;
|
|
459
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
460
|
+
return {
|
|
461
|
+
path: urlPath,
|
|
462
|
+
method: 'GET',
|
|
463
|
+
headers: headerParameters,
|
|
464
|
+
query: queryParameters,
|
|
465
|
+
};
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* the Community Notes home page (segmented timelines)
|
|
470
|
+
*/
|
|
471
|
+
getBirdwatchFetchGlobalTimelineRaw(requestParameters, initOverrides) {
|
|
472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
473
|
+
const requestOptions = yield this.getBirdwatchFetchGlobalTimelineRequestOpts(requestParameters);
|
|
474
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
475
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BirdwatchFetchGlobalTimelineResponseFromJSON(jsonValue));
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* the Community Notes home page (segmented timelines)
|
|
480
|
+
*/
|
|
481
|
+
getBirdwatchFetchGlobalTimeline(requestParameters, initOverrides) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const response = yield this.getBirdwatchFetchGlobalTimelineRaw(requestParameters, initOverrides);
|
|
484
|
+
return yield response.value();
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Creates request options for getBirdwatchFetchPublicData without sending the request
|
|
489
|
+
*/
|
|
490
|
+
getBirdwatchFetchPublicDataRequestOpts(requestParameters) {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
if (requestParameters['pathQueryId'] == null) {
|
|
493
|
+
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getBirdwatchFetchPublicData().');
|
|
494
|
+
}
|
|
495
|
+
if (requestParameters['features'] == null) {
|
|
496
|
+
throw new runtime.RequiredError('features', 'Required parameter "features" was null or undefined when calling getBirdwatchFetchPublicData().');
|
|
497
|
+
}
|
|
498
|
+
if (requestParameters['variables'] == null) {
|
|
499
|
+
throw new runtime.RequiredError('variables', 'Required parameter "variables" was null or undefined when calling getBirdwatchFetchPublicData().');
|
|
500
|
+
}
|
|
501
|
+
const queryParameters = {};
|
|
502
|
+
if (requestParameters['features'] != null) {
|
|
503
|
+
queryParameters['features'] = requestParameters['features'];
|
|
504
|
+
}
|
|
505
|
+
if (requestParameters['variables'] != null) {
|
|
506
|
+
queryParameters['variables'] = requestParameters['variables'];
|
|
507
|
+
}
|
|
508
|
+
const headerParameters = {};
|
|
509
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
510
|
+
headerParameters["Accept"] = yield this.configuration.apiKey("Accept"); // Accept authentication
|
|
511
|
+
}
|
|
512
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
513
|
+
headerParameters["x-twitter-client-language"] = yield this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
514
|
+
}
|
|
515
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
516
|
+
headerParameters["Priority"] = yield this.configuration.apiKey("Priority"); // Priority authentication
|
|
517
|
+
}
|
|
518
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
519
|
+
headerParameters["Referer"] = yield this.configuration.apiKey("Referer"); // Referer authentication
|
|
520
|
+
}
|
|
521
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
522
|
+
headerParameters["Sec-Fetch-Dest"] = yield this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
523
|
+
}
|
|
524
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
525
|
+
headerParameters["Sec-Ch-Ua-Platform"] = yield this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
526
|
+
}
|
|
527
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
528
|
+
headerParameters["Sec-Fetch-Mode"] = yield this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
529
|
+
}
|
|
530
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
531
|
+
headerParameters["x-csrf-token"] = yield this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
532
|
+
}
|
|
533
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
534
|
+
headerParameters["x-client-uuid"] = yield this.configuration.apiKey("x-client-uuid"); // ClientUuid authentication
|
|
535
|
+
}
|
|
536
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
537
|
+
const token = this.configuration.accessToken;
|
|
538
|
+
const tokenString = yield token("BearerAuth", []);
|
|
539
|
+
if (tokenString) {
|
|
540
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
544
|
+
headerParameters["x-guest-token"] = yield this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
545
|
+
}
|
|
546
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
547
|
+
headerParameters["Sec-Ch-Ua"] = yield this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
548
|
+
}
|
|
549
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
550
|
+
headerParameters["x-client-transaction-id"] = yield this.configuration.apiKey("x-client-transaction-id"); // ClientTransactionId authentication
|
|
551
|
+
}
|
|
552
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
553
|
+
headerParameters["x-twitter-active-user"] = yield this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
554
|
+
}
|
|
555
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
556
|
+
headerParameters["user-agent"] = yield this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
557
|
+
}
|
|
558
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
559
|
+
headerParameters["Accept-Language"] = yield this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
560
|
+
}
|
|
561
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
562
|
+
headerParameters["Sec-Fetch-Site"] = yield this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
563
|
+
}
|
|
564
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
565
|
+
headerParameters["x-twitter-auth-type"] = yield this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
566
|
+
}
|
|
567
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
568
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = yield this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
569
|
+
}
|
|
570
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
571
|
+
headerParameters["Accept-Encoding"] = yield this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
572
|
+
}
|
|
573
|
+
let urlPath = `/graphql/{pathQueryId}/BirdwatchFetchPublicData`;
|
|
574
|
+
urlPath = urlPath.replace('{pathQueryId}', encodeURIComponent(String(requestParameters['pathQueryId'])));
|
|
575
|
+
return {
|
|
576
|
+
path: urlPath,
|
|
577
|
+
method: 'GET',
|
|
578
|
+
headers: headerParameters,
|
|
579
|
+
query: queryParameters,
|
|
580
|
+
};
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* download urls of the latest Community Notes public data files
|
|
585
|
+
*/
|
|
586
|
+
getBirdwatchFetchPublicDataRaw(requestParameters, initOverrides) {
|
|
587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
588
|
+
const requestOptions = yield this.getBirdwatchFetchPublicDataRequestOpts(requestParameters);
|
|
589
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
590
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BirdwatchFetchPublicDataResponseFromJSON(jsonValue));
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* download urls of the latest Community Notes public data files
|
|
595
|
+
*/
|
|
596
|
+
getBirdwatchFetchPublicData(requestParameters, initOverrides) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
598
|
+
const response = yield this.getBirdwatchFetchPublicDataRaw(requestParameters, initOverrides);
|
|
599
|
+
return yield response.value();
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
}
|