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