twitter-openapi-typescript-generated 0.0.11 → 0.0.13

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 (261) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/LICENSE +31 -31
  3. package/LICENSE.AGPL +660 -660
  4. package/README.md +2 -2
  5. package/dist/apis/DefaultApi.d.ts.map +1 -1
  6. package/dist/apis/DefaultApi.js +86 -18
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/apis/OtherApi.d.ts.map +1 -1
  9. package/dist/apis/OtherApi.js +43 -9
  10. package/dist/apis/OtherApi.js.map +1 -1
  11. package/dist/apis/PostApi.d.ts.map +1 -1
  12. package/dist/apis/PostApi.js +264 -60
  13. package/dist/apis/PostApi.js.map +1 -1
  14. package/dist/apis/TweetApi.d.ts +1 -2
  15. package/dist/apis/TweetApi.d.ts.map +1 -1
  16. package/dist/apis/TweetApi.js +479 -111
  17. package/dist/apis/TweetApi.js.map +1 -1
  18. package/dist/apis/UserApi.d.ts +1 -0
  19. package/dist/apis/UserApi.d.ts.map +1 -1
  20. package/dist/apis/UserApi.js +92 -18
  21. package/dist/apis/UserApi.js.map +1 -1
  22. package/dist/apis/UserListApi.d.ts +0 -1
  23. package/dist/apis/UserListApi.d.ts.map +1 -1
  24. package/dist/apis/UserListApi.js +215 -51
  25. package/dist/apis/UserListApi.js.map +1 -1
  26. package/dist/apis/UsersApi.d.ts.map +1 -1
  27. package/dist/apis/UsersApi.js +43 -9
  28. package/dist/apis/UsersApi.js.map +1 -1
  29. package/dist/apis/V11GetApi.d.ts.map +1 -1
  30. package/dist/apis/V11GetApi.js +86 -18
  31. package/dist/apis/V11GetApi.js.map +1 -1
  32. package/dist/apis/V11PostApi.d.ts.map +1 -1
  33. package/dist/apis/V11PostApi.js +72 -6
  34. package/dist/apis/V11PostApi.js.map +1 -1
  35. package/dist/apis/V20GetApi.d.ts.map +1 -1
  36. package/dist/apis/V20GetApi.js +43 -9
  37. package/dist/apis/V20GetApi.js.map +1 -1
  38. package/dist/models/BirdwatchEntity.d.ts +45 -0
  39. package/dist/models/BirdwatchEntity.d.ts.map +1 -0
  40. package/dist/models/BirdwatchEntity.js +58 -0
  41. package/dist/models/BirdwatchEntity.js.map +1 -0
  42. package/dist/models/BirdwatchEntityRef.d.ts +58 -0
  43. package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
  44. package/dist/models/BirdwatchEntityRef.js +69 -0
  45. package/dist/models/BirdwatchEntityRef.js.map +1 -0
  46. package/dist/models/BirdwatchPivot.d.ts +91 -0
  47. package/dist/models/BirdwatchPivot.d.ts.map +1 -0
  48. package/dist/models/BirdwatchPivot.js +87 -0
  49. package/dist/models/BirdwatchPivot.js.map +1 -0
  50. package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
  51. package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
  52. package/dist/models/BirdwatchPivotFooter.js +55 -0
  53. package/dist/models/BirdwatchPivotFooter.js.map +1 -0
  54. package/dist/models/BirdwatchPivotNote.d.ts +32 -0
  55. package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
  56. package/dist/models/BirdwatchPivotNote.js +51 -0
  57. package/dist/models/BirdwatchPivotNote.js.map +1 -0
  58. package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
  59. package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
  60. package/dist/models/BirdwatchPivotSubtitle.js +55 -0
  61. package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
  62. package/dist/models/ContentItemType.d.ts +1 -0
  63. package/dist/models/ContentItemType.d.ts.map +1 -1
  64. package/dist/models/ContentItemType.js +2 -1
  65. package/dist/models/ContentItemType.js.map +1 -1
  66. package/dist/models/CoverCta.d.ts +1 -1
  67. package/dist/models/CoverCta.d.ts.map +1 -1
  68. package/dist/models/CoverCta.js +1 -2
  69. package/dist/models/CoverCta.js.map +1 -1
  70. package/dist/models/DeleteRetweet.d.ts +33 -0
  71. package/dist/models/DeleteRetweet.d.ts.map +1 -0
  72. package/dist/models/DeleteRetweet.js +52 -0
  73. package/dist/models/DeleteRetweet.js.map +1 -0
  74. package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
  75. package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
  76. package/dist/models/DeleteRetweetResponseResult.js +52 -0
  77. package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
  78. package/dist/models/ErrorResponse.d.ts +33 -0
  79. package/dist/models/ErrorResponse.d.ts.map +1 -0
  80. package/dist/models/ErrorResponse.js +52 -0
  81. package/dist/models/ErrorResponse.js.map +1 -0
  82. package/dist/models/ExtMediaAvailability.d.ts +7 -0
  83. package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
  84. package/dist/models/ExtMediaAvailability.js +4 -1
  85. package/dist/models/ExtMediaAvailability.js.map +1 -1
  86. package/dist/models/Extensions.d.ts +57 -0
  87. package/dist/models/Extensions.d.ts.map +1 -0
  88. package/dist/models/Extensions.js +64 -0
  89. package/dist/models/Extensions.js.map +1 -0
  90. package/dist/models/ItemContentUnion.d.ts +3 -0
  91. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  92. package/dist/models/ItemContentUnion.js +5 -0
  93. package/dist/models/ItemContentUnion.js.map +1 -1
  94. package/dist/models/ListTweetsTimeline.d.ts +1 -1
  95. package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
  96. package/dist/models/ListTweetsTimeline.js +2 -2
  97. package/dist/models/ListTweetsTimeline.js.map +1 -1
  98. package/dist/models/MediaExtended.d.ts +1 -1
  99. package/dist/models/MediaExtended.d.ts.map +1 -1
  100. package/dist/models/MediaExtended.js +1 -2
  101. package/dist/models/MediaExtended.js.map +1 -1
  102. package/dist/models/NoteTweet.d.ts +39 -0
  103. package/dist/models/NoteTweet.d.ts.map +1 -0
  104. package/dist/models/NoteTweet.js +55 -0
  105. package/dist/models/NoteTweet.js.map +1 -0
  106. package/dist/models/NoteTweetResult.d.ts +33 -0
  107. package/dist/models/NoteTweetResult.d.ts.map +1 -0
  108. package/dist/models/NoteTweetResult.js +52 -0
  109. package/dist/models/NoteTweetResult.js.map +1 -0
  110. package/dist/models/NoteTweetResultData.d.ts +59 -0
  111. package/dist/models/NoteTweetResultData.d.ts.map +1 -0
  112. package/dist/models/NoteTweetResultData.js +65 -0
  113. package/dist/models/NoteTweetResultData.js.map +1 -0
  114. package/dist/models/NoteTweetResultMedia.d.ts +32 -0
  115. package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
  116. package/dist/models/NoteTweetResultMedia.js +51 -0
  117. package/dist/models/NoteTweetResultMedia.js.map +1 -0
  118. package/dist/models/NoteTweetResultRichText.d.ts +33 -0
  119. package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
  120. package/dist/models/NoteTweetResultRichText.js +52 -0
  121. package/dist/models/NoteTweetResultRichText.js.map +1 -0
  122. package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
  123. package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
  124. package/dist/models/NoteTweetResultRichTextTag.js +64 -0
  125. package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
  126. package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
  127. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  128. package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
  129. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  130. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
  131. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
  132. package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
  133. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
  134. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
  135. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
  136. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
  137. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
  138. package/dist/models/TimelineCommunity.d.ts +34 -0
  139. package/dist/models/TimelineCommunity.d.ts.map +1 -0
  140. package/dist/models/TimelineCommunity.js +59 -0
  141. package/dist/models/TimelineCommunity.js.map +1 -0
  142. package/dist/models/Tweet.d.ts +20 -0
  143. package/dist/models/Tweet.d.ts.map +1 -1
  144. package/dist/models/Tweet.js +8 -0
  145. package/dist/models/Tweet.js.map +1 -1
  146. package/dist/models/TypeName.d.ts +1 -0
  147. package/dist/models/TypeName.d.ts.map +1 -1
  148. package/dist/models/TypeName.js +1 -0
  149. package/dist/models/TypeName.js.map +1 -1
  150. package/dist/models/UserResults.d.ts +1 -1
  151. package/dist/models/UserResults.d.ts.map +1 -1
  152. package/dist/models/UserResults.js +2 -2
  153. package/dist/models/UserResults.js.map +1 -1
  154. package/dist/models/index.d.ts +18 -0
  155. package/dist/models/index.d.ts.map +1 -1
  156. package/dist/models/index.js +18 -0
  157. package/dist/models/index.js.map +1 -1
  158. package/package.json +2 -3
  159. package/src/apis/DefaultApi.ts +94 -6
  160. package/src/apis/OtherApi.ts +47 -3
  161. package/src/apis/PostApi.ts +282 -18
  162. package/src/apis/TweetApi.ts +526 -51
  163. package/src/apis/UserApi.ts +103 -6
  164. package/src/apis/UserListApi.ts +235 -24
  165. package/src/apis/UsersApi.ts +47 -3
  166. package/src/apis/V11GetApi.ts +94 -6
  167. package/src/apis/V11PostApi.ts +94 -6
  168. package/src/apis/V20GetApi.ts +47 -3
  169. package/src/models/BirdwatchEntity.ts +91 -0
  170. package/src/models/BirdwatchEntityRef.ts +102 -0
  171. package/src/models/BirdwatchPivot.ts +165 -0
  172. package/src/models/BirdwatchPivotFooter.ts +82 -0
  173. package/src/models/BirdwatchPivotNote.ts +66 -0
  174. package/src/models/BirdwatchPivotSubtitle.ts +82 -0
  175. package/src/models/ContentItemType.ts +2 -1
  176. package/src/models/CoverCta.ts +2 -3
  177. package/src/models/DeleteRetweet.ts +73 -0
  178. package/src/models/DeleteRetweetResponseResult.ts +72 -0
  179. package/src/models/ErrorResponse.ts +73 -0
  180. package/src/models/ExtMediaAvailability.ts +10 -1
  181. package/src/models/Extensions.ts +109 -0
  182. package/src/models/ItemContentUnion.ts +12 -1
  183. package/src/models/ListTweetsTimeline.ts +2 -3
  184. package/src/models/MediaExtended.ts +2 -3
  185. package/src/models/NoteTweet.ts +82 -0
  186. package/src/models/NoteTweetResult.ts +73 -0
  187. package/src/models/NoteTweetResultData.ts +119 -0
  188. package/src/models/NoteTweetResultMedia.ts +66 -0
  189. package/src/models/NoteTweetResultRichText.ts +73 -0
  190. package/src/models/NoteTweetResultRichTextTag.ts +95 -0
  191. package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
  192. package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
  193. package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
  194. package/src/models/TimelineCommunity.ts +75 -0
  195. package/src/models/Tweet.ts +36 -0
  196. package/src/models/TypeName.ts +1 -0
  197. package/src/models/UserResults.ts +2 -3
  198. package/src/models/index.ts +18 -0
  199. package/tools/openapi-generator-config.yaml +1 -1
  200. package/twitter-openapi/.vscode/launch.json +8 -0
  201. package/twitter-openapi/README.md +2 -0
  202. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5189 -34
  203. package/twitter-openapi/dist/docs/openapi-3.0.yaml +6987 -34
  204. package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
  205. package/twitter-openapi/src/config/placeholder.json +145 -112
  206. package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
  207. package/twitter-openapi/src/openapi/schemas/content.yaml +9 -1
  208. package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
  209. package/twitter-openapi/src/openapi/schemas/instruction.yaml +0 -1
  210. package/twitter-openapi/src/openapi/schemas/tweet.yaml +169 -2
  211. package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
  212. package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
  213. package/twitter-openapi/test/python/test_serialize.py +24 -0
  214. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  215. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  216. package/twitter-openapi/tools/build.py +35 -31
  217. package/twitter-openapi/tools/build_config.py +7 -10
  218. package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
  219. package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
  220. package/twitter-openapi/dist/compatible/paths/other.yaml +0 -99
  221. package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
  222. package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
  223. package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
  224. package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
  225. package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
  226. package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
  227. package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
  228. package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
  229. package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
  230. package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
  231. package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
  232. package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -214
  233. package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
  234. package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
  235. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -286
  236. package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
  237. package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -508
  238. package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -23
  239. package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
  240. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
  241. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
  242. package/twitter-openapi/dist/docs/paths/other.yaml +0 -99
  243. package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
  244. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
  245. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
  246. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
  247. package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
  248. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
  249. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
  250. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
  251. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
  252. package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
  253. package/twitter-openapi/dist/docs/response/error.yaml +0 -90
  254. package/twitter-openapi/dist/docs/schemas/content.yaml +0 -214
  255. package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
  256. package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
  257. package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -286
  258. package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
  259. package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -508
  260. package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -23
  261. package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
@@ -105,13 +105,19 @@ var TweetApi = /** @class */ (function (_super) {
105
105
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
106
106
  }
107
107
  if (this.configuration && this.configuration.apiKey) {
108
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
108
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
109
109
  }
110
110
  if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
111
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
112
112
  }
113
113
  if (this.configuration && this.configuration.apiKey) {
114
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
114
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
115
+ }
116
+ if (this.configuration && this.configuration.apiKey) {
117
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
118
+ }
119
+ if (this.configuration && this.configuration.apiKey) {
120
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
115
121
  }
116
122
  if (this.configuration && this.configuration.apiKey) {
117
123
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -128,12 +134,40 @@ var TweetApi = /** @class */ (function (_super) {
128
134
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
129
135
  }
130
136
  _a.label = 2;
131
- case 2: return [4 /*yield*/, this.request({
132
- path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
133
- method: 'GET',
134
- headers: headerParameters,
135
- query: queryParameters,
136
- }, initOverrides)];
137
+ case 2:
138
+ if (this.configuration && this.configuration.apiKey) {
139
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
140
+ }
141
+ if (this.configuration && this.configuration.apiKey) {
142
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
143
+ }
144
+ if (this.configuration && this.configuration.apiKey) {
145
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
146
+ }
147
+ if (this.configuration && this.configuration.apiKey) {
148
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
149
+ }
150
+ if (this.configuration && this.configuration.apiKey) {
151
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
152
+ }
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
155
+ }
156
+ if (this.configuration && this.configuration.apiKey) {
157
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
158
+ }
159
+ if (this.configuration && this.configuration.apiKey) {
160
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
161
+ }
162
+ if (this.configuration && this.configuration.apiKey) {
163
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
164
+ }
165
+ return [4 /*yield*/, this.request({
166
+ path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
167
+ method: 'GET',
168
+ headers: headerParameters,
169
+ query: queryParameters,
170
+ }, initOverrides)];
137
171
  case 3:
138
172
  response = _a.sent();
139
173
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetBookmarks200ResponseFromJSON)(jsonValue); })];
@@ -188,13 +222,19 @@ var TweetApi = /** @class */ (function (_super) {
188
222
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
189
223
  }
190
224
  if (this.configuration && this.configuration.apiKey) {
191
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
225
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
192
226
  }
193
227
  if (this.configuration && this.configuration.apiKey) {
194
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
228
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
195
229
  }
196
230
  if (this.configuration && this.configuration.apiKey) {
197
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
231
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
232
+ }
233
+ if (this.configuration && this.configuration.apiKey) {
234
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
235
+ }
236
+ if (this.configuration && this.configuration.apiKey) {
237
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
198
238
  }
199
239
  if (this.configuration && this.configuration.apiKey) {
200
240
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -211,12 +251,40 @@ var TweetApi = /** @class */ (function (_super) {
211
251
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
212
252
  }
213
253
  _a.label = 2;
214
- case 2: return [4 /*yield*/, this.request({
215
- path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
216
- method: 'GET',
217
- headers: headerParameters,
218
- query: queryParameters,
219
- }, initOverrides)];
254
+ case 2:
255
+ if (this.configuration && this.configuration.apiKey) {
256
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
257
+ }
258
+ if (this.configuration && this.configuration.apiKey) {
259
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
260
+ }
261
+ if (this.configuration && this.configuration.apiKey) {
262
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
263
+ }
264
+ if (this.configuration && this.configuration.apiKey) {
265
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
266
+ }
267
+ if (this.configuration && this.configuration.apiKey) {
268
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
269
+ }
270
+ if (this.configuration && this.configuration.apiKey) {
271
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
272
+ }
273
+ if (this.configuration && this.configuration.apiKey) {
274
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
275
+ }
276
+ if (this.configuration && this.configuration.apiKey) {
277
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
278
+ }
279
+ if (this.configuration && this.configuration.apiKey) {
280
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
281
+ }
282
+ return [4 /*yield*/, this.request({
283
+ path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
284
+ method: 'GET',
285
+ headers: headerParameters,
286
+ query: queryParameters,
287
+ }, initOverrides)];
220
288
  case 3:
221
289
  response = _a.sent();
222
290
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
@@ -271,13 +339,19 @@ var TweetApi = /** @class */ (function (_super) {
271
339
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
272
340
  }
273
341
  if (this.configuration && this.configuration.apiKey) {
274
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
342
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
275
343
  }
276
344
  if (this.configuration && this.configuration.apiKey) {
277
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
345
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
278
346
  }
279
347
  if (this.configuration && this.configuration.apiKey) {
280
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
348
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
349
+ }
350
+ if (this.configuration && this.configuration.apiKey) {
351
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
352
+ }
353
+ if (this.configuration && this.configuration.apiKey) {
354
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
281
355
  }
282
356
  if (this.configuration && this.configuration.apiKey) {
283
357
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -294,12 +368,40 @@ var TweetApi = /** @class */ (function (_super) {
294
368
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
295
369
  }
296
370
  _a.label = 2;
297
- case 2: return [4 /*yield*/, this.request({
298
- path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
299
- method: 'GET',
300
- headers: headerParameters,
301
- query: queryParameters,
302
- }, initOverrides)];
371
+ case 2:
372
+ if (this.configuration && this.configuration.apiKey) {
373
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
374
+ }
375
+ if (this.configuration && this.configuration.apiKey) {
376
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
377
+ }
378
+ if (this.configuration && this.configuration.apiKey) {
379
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
380
+ }
381
+ if (this.configuration && this.configuration.apiKey) {
382
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
383
+ }
384
+ if (this.configuration && this.configuration.apiKey) {
385
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
386
+ }
387
+ if (this.configuration && this.configuration.apiKey) {
388
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
389
+ }
390
+ if (this.configuration && this.configuration.apiKey) {
391
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
392
+ }
393
+ if (this.configuration && this.configuration.apiKey) {
394
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
395
+ }
396
+ if (this.configuration && this.configuration.apiKey) {
397
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
398
+ }
399
+ return [4 /*yield*/, this.request({
400
+ path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
401
+ method: 'GET',
402
+ headers: headerParameters,
403
+ query: queryParameters,
404
+ }, initOverrides)];
303
405
  case 3:
304
406
  response = _a.sent();
305
407
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
@@ -354,13 +456,19 @@ var TweetApi = /** @class */ (function (_super) {
354
456
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
355
457
  }
356
458
  if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
459
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
358
460
  }
359
461
  if (this.configuration && this.configuration.apiKey) {
360
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
462
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
361
463
  }
362
464
  if (this.configuration && this.configuration.apiKey) {
363
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
465
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
466
+ }
467
+ if (this.configuration && this.configuration.apiKey) {
468
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
469
+ }
470
+ if (this.configuration && this.configuration.apiKey) {
471
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
364
472
  }
365
473
  if (this.configuration && this.configuration.apiKey) {
366
474
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -377,12 +485,40 @@ var TweetApi = /** @class */ (function (_super) {
377
485
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
378
486
  }
379
487
  _a.label = 2;
380
- case 2: return [4 /*yield*/, this.request({
381
- path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
382
- method: 'GET',
383
- headers: headerParameters,
384
- query: queryParameters,
385
- }, initOverrides)];
488
+ case 2:
489
+ if (this.configuration && this.configuration.apiKey) {
490
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
491
+ }
492
+ if (this.configuration && this.configuration.apiKey) {
493
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
494
+ }
495
+ if (this.configuration && this.configuration.apiKey) {
496
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
497
+ }
498
+ if (this.configuration && this.configuration.apiKey) {
499
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
500
+ }
501
+ if (this.configuration && this.configuration.apiKey) {
502
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
503
+ }
504
+ if (this.configuration && this.configuration.apiKey) {
505
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
506
+ }
507
+ if (this.configuration && this.configuration.apiKey) {
508
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
509
+ }
510
+ if (this.configuration && this.configuration.apiKey) {
511
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
512
+ }
513
+ if (this.configuration && this.configuration.apiKey) {
514
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
515
+ }
516
+ return [4 /*yield*/, this.request({
517
+ path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
518
+ method: 'GET',
519
+ headers: headerParameters,
520
+ query: queryParameters,
521
+ }, initOverrides)];
386
522
  case 3:
387
523
  response = _a.sent();
388
524
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
@@ -437,13 +573,19 @@ var TweetApi = /** @class */ (function (_super) {
437
573
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
438
574
  }
439
575
  if (this.configuration && this.configuration.apiKey) {
440
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
576
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
441
577
  }
442
578
  if (this.configuration && this.configuration.apiKey) {
443
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
579
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
444
580
  }
445
581
  if (this.configuration && this.configuration.apiKey) {
446
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
582
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
583
+ }
584
+ if (this.configuration && this.configuration.apiKey) {
585
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
586
+ }
587
+ if (this.configuration && this.configuration.apiKey) {
588
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
447
589
  }
448
590
  if (this.configuration && this.configuration.apiKey) {
449
591
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -460,12 +602,40 @@ var TweetApi = /** @class */ (function (_super) {
460
602
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
461
603
  }
462
604
  _a.label = 2;
463
- case 2: return [4 /*yield*/, this.request({
464
- path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
465
- method: 'GET',
466
- headers: headerParameters,
467
- query: queryParameters,
468
- }, initOverrides)];
605
+ case 2:
606
+ if (this.configuration && this.configuration.apiKey) {
607
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
608
+ }
609
+ if (this.configuration && this.configuration.apiKey) {
610
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
611
+ }
612
+ if (this.configuration && this.configuration.apiKey) {
613
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
614
+ }
615
+ if (this.configuration && this.configuration.apiKey) {
616
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
617
+ }
618
+ if (this.configuration && this.configuration.apiKey) {
619
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
620
+ }
621
+ if (this.configuration && this.configuration.apiKey) {
622
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
623
+ }
624
+ if (this.configuration && this.configuration.apiKey) {
625
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
626
+ }
627
+ if (this.configuration && this.configuration.apiKey) {
628
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
629
+ }
630
+ if (this.configuration && this.configuration.apiKey) {
631
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
632
+ }
633
+ return [4 /*yield*/, this.request({
634
+ path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
635
+ method: 'GET',
636
+ headers: headerParameters,
637
+ query: queryParameters,
638
+ }, initOverrides)];
469
639
  case 3:
470
640
  response = _a.sent();
471
641
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetListLatestTweetsTimeline200ResponseFromJSON)(jsonValue); })];
@@ -508,9 +678,6 @@ var TweetApi = /** @class */ (function (_super) {
508
678
  if (requestParameters.features === null || requestParameters.features === undefined) {
509
679
  throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getSearchTimeline.');
510
680
  }
511
- if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
512
- throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getSearchTimeline.');
513
- }
514
681
  queryParameters = {};
515
682
  if (requestParameters.variables !== undefined) {
516
683
  queryParameters['variables'] = requestParameters.variables;
@@ -518,21 +685,24 @@ var TweetApi = /** @class */ (function (_super) {
518
685
  if (requestParameters.features !== undefined) {
519
686
  queryParameters['features'] = requestParameters.features;
520
687
  }
521
- if (requestParameters.fieldToggles !== undefined) {
522
- queryParameters['fieldToggles'] = requestParameters.fieldToggles;
523
- }
524
688
  headerParameters = {};
525
689
  if (this.configuration && this.configuration.apiKey) {
526
690
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
527
691
  }
528
692
  if (this.configuration && this.configuration.apiKey) {
529
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
693
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
530
694
  }
531
695
  if (this.configuration && this.configuration.apiKey) {
532
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
696
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
533
697
  }
534
698
  if (this.configuration && this.configuration.apiKey) {
535
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
699
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
700
+ }
701
+ if (this.configuration && this.configuration.apiKey) {
702
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
703
+ }
704
+ if (this.configuration && this.configuration.apiKey) {
705
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
536
706
  }
537
707
  if (this.configuration && this.configuration.apiKey) {
538
708
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -549,12 +719,40 @@ var TweetApi = /** @class */ (function (_super) {
549
719
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
550
720
  }
551
721
  _a.label = 2;
552
- case 2: return [4 /*yield*/, this.request({
553
- path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
554
- method: 'GET',
555
- headers: headerParameters,
556
- query: queryParameters,
557
- }, initOverrides)];
722
+ case 2:
723
+ if (this.configuration && this.configuration.apiKey) {
724
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
725
+ }
726
+ if (this.configuration && this.configuration.apiKey) {
727
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
728
+ }
729
+ if (this.configuration && this.configuration.apiKey) {
730
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
731
+ }
732
+ if (this.configuration && this.configuration.apiKey) {
733
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
734
+ }
735
+ if (this.configuration && this.configuration.apiKey) {
736
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
737
+ }
738
+ if (this.configuration && this.configuration.apiKey) {
739
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
740
+ }
741
+ if (this.configuration && this.configuration.apiKey) {
742
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
743
+ }
744
+ if (this.configuration && this.configuration.apiKey) {
745
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
746
+ }
747
+ if (this.configuration && this.configuration.apiKey) {
748
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
749
+ }
750
+ return [4 /*yield*/, this.request({
751
+ path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
752
+ method: 'GET',
753
+ headers: headerParameters,
754
+ query: queryParameters,
755
+ }, initOverrides)];
558
756
  case 3:
559
757
  response = _a.sent();
560
758
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetSearchTimeline200ResponseFromJSON)(jsonValue); })];
@@ -597,6 +795,9 @@ var TweetApi = /** @class */ (function (_super) {
597
795
  if (requestParameters.features === null || requestParameters.features === undefined) {
598
796
  throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getTweetDetail.');
599
797
  }
798
+ if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
799
+ throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getTweetDetail.');
800
+ }
600
801
  queryParameters = {};
601
802
  if (requestParameters.variables !== undefined) {
602
803
  queryParameters['variables'] = requestParameters.variables;
@@ -604,18 +805,27 @@ var TweetApi = /** @class */ (function (_super) {
604
805
  if (requestParameters.features !== undefined) {
605
806
  queryParameters['features'] = requestParameters.features;
606
807
  }
808
+ if (requestParameters.fieldToggles !== undefined) {
809
+ queryParameters['fieldToggles'] = requestParameters.fieldToggles;
810
+ }
607
811
  headerParameters = {};
608
812
  if (this.configuration && this.configuration.apiKey) {
609
813
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
610
814
  }
611
815
  if (this.configuration && this.configuration.apiKey) {
612
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
816
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
613
817
  }
614
818
  if (this.configuration && this.configuration.apiKey) {
615
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
819
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
616
820
  }
617
821
  if (this.configuration && this.configuration.apiKey) {
618
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
822
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
823
+ }
824
+ if (this.configuration && this.configuration.apiKey) {
825
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
826
+ }
827
+ if (this.configuration && this.configuration.apiKey) {
828
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
619
829
  }
620
830
  if (this.configuration && this.configuration.apiKey) {
621
831
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -632,12 +842,40 @@ var TweetApi = /** @class */ (function (_super) {
632
842
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
633
843
  }
634
844
  _a.label = 2;
635
- case 2: return [4 /*yield*/, this.request({
636
- path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
637
- method: 'GET',
638
- headers: headerParameters,
639
- query: queryParameters,
640
- }, initOverrides)];
845
+ case 2:
846
+ if (this.configuration && this.configuration.apiKey) {
847
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
848
+ }
849
+ if (this.configuration && this.configuration.apiKey) {
850
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
851
+ }
852
+ if (this.configuration && this.configuration.apiKey) {
853
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
854
+ }
855
+ if (this.configuration && this.configuration.apiKey) {
856
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
857
+ }
858
+ if (this.configuration && this.configuration.apiKey) {
859
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
860
+ }
861
+ if (this.configuration && this.configuration.apiKey) {
862
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
863
+ }
864
+ if (this.configuration && this.configuration.apiKey) {
865
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
866
+ }
867
+ if (this.configuration && this.configuration.apiKey) {
868
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
869
+ }
870
+ if (this.configuration && this.configuration.apiKey) {
871
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
872
+ }
873
+ return [4 /*yield*/, this.request({
874
+ path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
875
+ method: 'GET',
876
+ headers: headerParameters,
877
+ query: queryParameters,
878
+ }, initOverrides)];
641
879
  case 3:
642
880
  response = _a.sent();
643
881
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetTweetDetail200ResponseFromJSON)(jsonValue); })];
@@ -680,9 +918,6 @@ var TweetApi = /** @class */ (function (_super) {
680
918
  if (requestParameters.features === null || requestParameters.features === undefined) {
681
919
  throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserHighlightsTweets.');
682
920
  }
683
- if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
684
- throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getUserHighlightsTweets.');
685
- }
686
921
  queryParameters = {};
687
922
  if (requestParameters.variables !== undefined) {
688
923
  queryParameters['variables'] = requestParameters.variables;
@@ -690,21 +925,24 @@ var TweetApi = /** @class */ (function (_super) {
690
925
  if (requestParameters.features !== undefined) {
691
926
  queryParameters['features'] = requestParameters.features;
692
927
  }
693
- if (requestParameters.fieldToggles !== undefined) {
694
- queryParameters['fieldToggles'] = requestParameters.fieldToggles;
695
- }
696
928
  headerParameters = {};
697
929
  if (this.configuration && this.configuration.apiKey) {
698
930
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
699
931
  }
700
932
  if (this.configuration && this.configuration.apiKey) {
701
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
933
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
702
934
  }
703
935
  if (this.configuration && this.configuration.apiKey) {
704
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
936
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
705
937
  }
706
938
  if (this.configuration && this.configuration.apiKey) {
707
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
939
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
940
+ }
941
+ if (this.configuration && this.configuration.apiKey) {
942
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
943
+ }
944
+ if (this.configuration && this.configuration.apiKey) {
945
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
708
946
  }
709
947
  if (this.configuration && this.configuration.apiKey) {
710
948
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -721,12 +959,40 @@ var TweetApi = /** @class */ (function (_super) {
721
959
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
722
960
  }
723
961
  _a.label = 2;
724
- case 2: return [4 /*yield*/, this.request({
725
- path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
726
- method: 'GET',
727
- headers: headerParameters,
728
- query: queryParameters,
729
- }, initOverrides)];
962
+ case 2:
963
+ if (this.configuration && this.configuration.apiKey) {
964
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
965
+ }
966
+ if (this.configuration && this.configuration.apiKey) {
967
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
968
+ }
969
+ if (this.configuration && this.configuration.apiKey) {
970
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
971
+ }
972
+ if (this.configuration && this.configuration.apiKey) {
973
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
974
+ }
975
+ if (this.configuration && this.configuration.apiKey) {
976
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
977
+ }
978
+ if (this.configuration && this.configuration.apiKey) {
979
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
980
+ }
981
+ if (this.configuration && this.configuration.apiKey) {
982
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
983
+ }
984
+ if (this.configuration && this.configuration.apiKey) {
985
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
986
+ }
987
+ if (this.configuration && this.configuration.apiKey) {
988
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
989
+ }
990
+ return [4 /*yield*/, this.request({
991
+ path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
992
+ method: 'GET',
993
+ headers: headerParameters,
994
+ query: queryParameters,
995
+ }, initOverrides)];
730
996
  case 3:
731
997
  response = _a.sent();
732
998
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetUserHighlightsTweets200ResponseFromJSON)(jsonValue); })];
@@ -781,13 +1047,19 @@ var TweetApi = /** @class */ (function (_super) {
781
1047
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
782
1048
  }
783
1049
  if (this.configuration && this.configuration.apiKey) {
784
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1050
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
785
1051
  }
786
1052
  if (this.configuration && this.configuration.apiKey) {
787
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1053
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
788
1054
  }
789
1055
  if (this.configuration && this.configuration.apiKey) {
790
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1056
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1057
+ }
1058
+ if (this.configuration && this.configuration.apiKey) {
1059
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1060
+ }
1061
+ if (this.configuration && this.configuration.apiKey) {
1062
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
791
1063
  }
792
1064
  if (this.configuration && this.configuration.apiKey) {
793
1065
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -804,12 +1076,40 @@ var TweetApi = /** @class */ (function (_super) {
804
1076
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
805
1077
  }
806
1078
  _a.label = 2;
807
- case 2: return [4 /*yield*/, this.request({
808
- path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
809
- method: 'GET',
810
- headers: headerParameters,
811
- query: queryParameters,
812
- }, initOverrides)];
1079
+ case 2:
1080
+ if (this.configuration && this.configuration.apiKey) {
1081
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1082
+ }
1083
+ if (this.configuration && this.configuration.apiKey) {
1084
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1085
+ }
1086
+ if (this.configuration && this.configuration.apiKey) {
1087
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1088
+ }
1089
+ if (this.configuration && this.configuration.apiKey) {
1090
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1091
+ }
1092
+ if (this.configuration && this.configuration.apiKey) {
1093
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1094
+ }
1095
+ if (this.configuration && this.configuration.apiKey) {
1096
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1097
+ }
1098
+ if (this.configuration && this.configuration.apiKey) {
1099
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1100
+ }
1101
+ if (this.configuration && this.configuration.apiKey) {
1102
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1103
+ }
1104
+ if (this.configuration && this.configuration.apiKey) {
1105
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1106
+ }
1107
+ return [4 /*yield*/, this.request({
1108
+ path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1109
+ method: 'GET',
1110
+ headers: headerParameters,
1111
+ query: queryParameters,
1112
+ }, initOverrides)];
813
1113
  case 3:
814
1114
  response = _a.sent();
815
1115
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
@@ -864,13 +1164,19 @@ var TweetApi = /** @class */ (function (_super) {
864
1164
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
865
1165
  }
866
1166
  if (this.configuration && this.configuration.apiKey) {
867
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1167
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
868
1168
  }
869
1169
  if (this.configuration && this.configuration.apiKey) {
870
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1170
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
871
1171
  }
872
1172
  if (this.configuration && this.configuration.apiKey) {
873
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1173
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1174
+ }
1175
+ if (this.configuration && this.configuration.apiKey) {
1176
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1177
+ }
1178
+ if (this.configuration && this.configuration.apiKey) {
1179
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
874
1180
  }
875
1181
  if (this.configuration && this.configuration.apiKey) {
876
1182
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -887,12 +1193,40 @@ var TweetApi = /** @class */ (function (_super) {
887
1193
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
888
1194
  }
889
1195
  _a.label = 2;
890
- case 2: return [4 /*yield*/, this.request({
891
- path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
892
- method: 'GET',
893
- headers: headerParameters,
894
- query: queryParameters,
895
- }, initOverrides)];
1196
+ case 2:
1197
+ if (this.configuration && this.configuration.apiKey) {
1198
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1199
+ }
1200
+ if (this.configuration && this.configuration.apiKey) {
1201
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1202
+ }
1203
+ if (this.configuration && this.configuration.apiKey) {
1204
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1205
+ }
1206
+ if (this.configuration && this.configuration.apiKey) {
1207
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1208
+ }
1209
+ if (this.configuration && this.configuration.apiKey) {
1210
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1211
+ }
1212
+ if (this.configuration && this.configuration.apiKey) {
1213
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1214
+ }
1215
+ if (this.configuration && this.configuration.apiKey) {
1216
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1217
+ }
1218
+ if (this.configuration && this.configuration.apiKey) {
1219
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1220
+ }
1221
+ if (this.configuration && this.configuration.apiKey) {
1222
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1223
+ }
1224
+ return [4 /*yield*/, this.request({
1225
+ path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1226
+ method: 'GET',
1227
+ headers: headerParameters,
1228
+ query: queryParameters,
1229
+ }, initOverrides)];
896
1230
  case 3:
897
1231
  response = _a.sent();
898
1232
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
@@ -947,13 +1281,19 @@ var TweetApi = /** @class */ (function (_super) {
947
1281
  headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
948
1282
  }
949
1283
  if (this.configuration && this.configuration.apiKey) {
950
- headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1284
+ headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
951
1285
  }
952
1286
  if (this.configuration && this.configuration.apiKey) {
953
- headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1287
+ headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
954
1288
  }
955
1289
  if (this.configuration && this.configuration.apiKey) {
956
- headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1290
+ headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
1291
+ }
1292
+ if (this.configuration && this.configuration.apiKey) {
1293
+ headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
1294
+ }
1295
+ if (this.configuration && this.configuration.apiKey) {
1296
+ headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
957
1297
  }
958
1298
  if (this.configuration && this.configuration.apiKey) {
959
1299
  headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
@@ -970,12 +1310,40 @@ var TweetApi = /** @class */ (function (_super) {
970
1310
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
971
1311
  }
972
1312
  _a.label = 2;
973
- case 2: return [4 /*yield*/, this.request({
974
- path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
975
- method: 'GET',
976
- headers: headerParameters,
977
- query: queryParameters,
978
- }, initOverrides)];
1313
+ case 2:
1314
+ if (this.configuration && this.configuration.apiKey) {
1315
+ headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
1316
+ }
1317
+ if (this.configuration && this.configuration.apiKey) {
1318
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
1319
+ }
1320
+ if (this.configuration && this.configuration.apiKey) {
1321
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
1322
+ }
1323
+ if (this.configuration && this.configuration.apiKey) {
1324
+ headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
1325
+ }
1326
+ if (this.configuration && this.configuration.apiKey) {
1327
+ headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
1328
+ }
1329
+ if (this.configuration && this.configuration.apiKey) {
1330
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
1331
+ }
1332
+ if (this.configuration && this.configuration.apiKey) {
1333
+ headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
1334
+ }
1335
+ if (this.configuration && this.configuration.apiKey) {
1336
+ headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
1337
+ }
1338
+ if (this.configuration && this.configuration.apiKey) {
1339
+ headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
1340
+ }
1341
+ return [4 /*yield*/, this.request({
1342
+ path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
1343
+ method: 'GET',
1344
+ headers: headerParameters,
1345
+ query: queryParameters,
1346
+ }, initOverrides)];
979
1347
  case 3:
980
1348
  response = _a.sent();
981
1349
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];