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