twitter-openapi-typescript-generated 0.0.28 → 0.0.29

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 (130) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/DefaultApi.d.ts.map +1 -1
  3. package/dist/apis/DefaultApi.js +180 -164
  4. package/dist/apis/DefaultApi.js.map +1 -1
  5. package/dist/apis/OtherApi.d.ts.map +1 -1
  6. package/dist/apis/OtherApi.js +90 -82
  7. package/dist/apis/OtherApi.js.map +1 -1
  8. package/dist/apis/PostApi.d.ts.map +1 -1
  9. package/dist/apis/PostApi.js +720 -656
  10. package/dist/apis/PostApi.js.map +1 -1
  11. package/dist/apis/TweetApi.d.ts.map +1 -1
  12. package/dist/apis/TweetApi.js +990 -902
  13. package/dist/apis/TweetApi.js.map +1 -1
  14. package/dist/apis/UserApi.d.ts.map +1 -1
  15. package/dist/apis/UserApi.js +180 -164
  16. package/dist/apis/UserApi.js.map +1 -1
  17. package/dist/apis/UserListApi.d.ts.map +1 -1
  18. package/dist/apis/UserListApi.js +450 -410
  19. package/dist/apis/UserListApi.js.map +1 -1
  20. package/dist/apis/UsersApi.d.ts.map +1 -1
  21. package/dist/apis/UsersApi.js +90 -82
  22. package/dist/apis/UsersApi.js.map +1 -1
  23. package/dist/apis/V11GetApi.d.ts.map +1 -1
  24. package/dist/apis/V11GetApi.js +180 -164
  25. package/dist/apis/V11GetApi.js.map +1 -1
  26. package/dist/apis/V11PostApi.d.ts.map +1 -1
  27. package/dist/apis/V11PostApi.js +178 -162
  28. package/dist/apis/V11PostApi.js.map +1 -1
  29. package/dist/apis/V20GetApi.d.ts.map +1 -1
  30. package/dist/apis/V20GetApi.js +90 -82
  31. package/dist/apis/V20GetApi.js.map +1 -1
  32. package/dist/models/BookmarksResponse.d.ts +3 -2
  33. package/dist/models/BookmarksResponse.d.ts.map +1 -1
  34. package/dist/models/BookmarksResponse.js +3 -2
  35. package/dist/models/BookmarksResponse.js.map +1 -1
  36. package/dist/models/CreateBookmarkResponse.d.ts +3 -2
  37. package/dist/models/CreateBookmarkResponse.d.ts.map +1 -1
  38. package/dist/models/CreateBookmarkResponse.js +3 -2
  39. package/dist/models/CreateBookmarkResponse.js.map +1 -1
  40. package/dist/models/CreateRetweetResponse.d.ts +3 -2
  41. package/dist/models/CreateRetweetResponse.d.ts.map +1 -1
  42. package/dist/models/CreateRetweetResponse.js +3 -2
  43. package/dist/models/CreateRetweetResponse.js.map +1 -1
  44. package/dist/models/CreateTweetResponse.d.ts +3 -2
  45. package/dist/models/CreateTweetResponse.d.ts.map +1 -1
  46. package/dist/models/CreateTweetResponse.js +3 -2
  47. package/dist/models/CreateTweetResponse.js.map +1 -1
  48. package/dist/models/DeleteBookmarkResponse.d.ts +3 -2
  49. package/dist/models/DeleteBookmarkResponse.d.ts.map +1 -1
  50. package/dist/models/DeleteBookmarkResponse.js +3 -2
  51. package/dist/models/DeleteBookmarkResponse.js.map +1 -1
  52. package/dist/models/DeleteRetweetResponse.d.ts +3 -2
  53. package/dist/models/DeleteRetweetResponse.d.ts.map +1 -1
  54. package/dist/models/DeleteRetweetResponse.js +3 -2
  55. package/dist/models/DeleteRetweetResponse.js.map +1 -1
  56. package/dist/models/DeleteTweetResponse.d.ts +3 -2
  57. package/dist/models/DeleteTweetResponse.d.ts.map +1 -1
  58. package/dist/models/DeleteTweetResponse.js +3 -2
  59. package/dist/models/DeleteTweetResponse.js.map +1 -1
  60. package/dist/models/{ModelError.d.ts → ErrorResponse.d.ts} +18 -18
  61. package/dist/models/ErrorResponse.d.ts.map +1 -0
  62. package/dist/models/{ModelError.js → ErrorResponse.js} +12 -12
  63. package/dist/models/ErrorResponse.js.map +1 -0
  64. package/dist/models/FavoriteTweetResponse.d.ts +3 -2
  65. package/dist/models/FavoriteTweetResponse.d.ts.map +1 -1
  66. package/dist/models/FavoriteTweetResponse.js +3 -2
  67. package/dist/models/FavoriteTweetResponse.js.map +1 -1
  68. package/dist/models/FollowResponse.d.ts +3 -2
  69. package/dist/models/FollowResponse.d.ts.map +1 -1
  70. package/dist/models/FollowResponse.js +3 -2
  71. package/dist/models/FollowResponse.js.map +1 -1
  72. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +3 -2
  73. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -1
  74. package/dist/models/ListLatestTweetsTimelineResponse.js +3 -2
  75. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
  76. package/dist/models/ProfileResponse.d.ts +3 -2
  77. package/dist/models/ProfileResponse.d.ts.map +1 -1
  78. package/dist/models/ProfileResponse.js +3 -2
  79. package/dist/models/ProfileResponse.js.map +1 -1
  80. package/dist/models/SearchTimelineResponse.d.ts +3 -2
  81. package/dist/models/SearchTimelineResponse.d.ts.map +1 -1
  82. package/dist/models/SearchTimelineResponse.js +3 -2
  83. package/dist/models/SearchTimelineResponse.js.map +1 -1
  84. package/dist/models/TimelineResponse.d.ts +3 -2
  85. package/dist/models/TimelineResponse.d.ts.map +1 -1
  86. package/dist/models/TimelineResponse.js +3 -2
  87. package/dist/models/TimelineResponse.js.map +1 -1
  88. package/dist/models/TweetDetailResponse.d.ts +3 -2
  89. package/dist/models/TweetDetailResponse.d.ts.map +1 -1
  90. package/dist/models/TweetDetailResponse.js +3 -2
  91. package/dist/models/TweetDetailResponse.js.map +1 -1
  92. package/dist/models/TweetFavoritersResponse.d.ts +3 -2
  93. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -1
  94. package/dist/models/TweetFavoritersResponse.js +3 -2
  95. package/dist/models/TweetFavoritersResponse.js.map +1 -1
  96. package/dist/models/TweetResultByRestIdResponse.d.ts +3 -2
  97. package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -1
  98. package/dist/models/TweetResultByRestIdResponse.js +3 -2
  99. package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
  100. package/dist/models/TweetRetweetersResponse.d.ts +3 -2
  101. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -1
  102. package/dist/models/TweetRetweetersResponse.js +3 -2
  103. package/dist/models/TweetRetweetersResponse.js.map +1 -1
  104. package/dist/models/UnfavoriteTweetResponse.d.ts +3 -2
  105. package/dist/models/UnfavoriteTweetResponse.d.ts.map +1 -1
  106. package/dist/models/UnfavoriteTweetResponse.js +3 -2
  107. package/dist/models/UnfavoriteTweetResponse.js.map +1 -1
  108. package/dist/models/UserHighlightsTweetsResponse.d.ts +3 -2
  109. package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -1
  110. package/dist/models/UserHighlightsTweetsResponse.js +3 -2
  111. package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
  112. package/dist/models/UserResponse.d.ts +3 -2
  113. package/dist/models/UserResponse.d.ts.map +1 -1
  114. package/dist/models/UserResponse.js +3 -2
  115. package/dist/models/UserResponse.js.map +1 -1
  116. package/dist/models/UserTweetsResponse.d.ts +3 -2
  117. package/dist/models/UserTweetsResponse.d.ts.map +1 -1
  118. package/dist/models/UserTweetsResponse.js +3 -2
  119. package/dist/models/UserTweetsResponse.js.map +1 -1
  120. package/dist/models/UsersResponse.d.ts +3 -2
  121. package/dist/models/UsersResponse.d.ts.map +1 -1
  122. package/dist/models/UsersResponse.js +3 -2
  123. package/dist/models/UsersResponse.js.map +1 -1
  124. package/dist/models/index.d.ts +1 -1
  125. package/dist/models/index.d.ts.map +1 -1
  126. package/dist/models/index.js +1 -1
  127. package/dist/models/index.js.map +1 -1
  128. package/package.json +1 -1
  129. package/dist/models/ModelError.d.ts.map +0 -1
  130. package/dist/models/ModelError.js.map +0 -1
@@ -80,9 +80,9 @@ var UserListApi = /** @class */ (function (_super) {
80
80
  */
81
81
  UserListApi.prototype.getFavoritersRaw = function (requestParameters, initOverrides) {
82
82
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
84
- return __generator(this, function (_12) {
85
- switch (_12.label) {
83
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
84
+ return __generator(this, function (_14) {
85
+ switch (_14.label) {
86
86
  case 0:
87
87
  if (requestParameters['pathQueryId'] == null) {
88
88
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFavoriters().');
@@ -106,162 +106,170 @@ var UserListApi = /** @class */ (function (_super) {
106
106
  _b = "Accept";
107
107
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
108
108
  case 1:
109
- _a[_b] = _12.sent(); // Accept authentication
110
- _12.label = 2;
109
+ _a[_b] = _14.sent(); // Accept authentication
110
+ _14.label = 2;
111
111
  case 2:
112
112
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
113
113
  _c = headerParameters;
114
114
  _d = "x-twitter-client-language";
115
115
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
116
116
  case 3:
117
- _c[_d] = _12.sent(); // ClientLanguage authentication
118
- _12.label = 4;
117
+ _c[_d] = _14.sent(); // ClientLanguage authentication
118
+ _14.label = 4;
119
119
  case 4:
120
120
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
121
121
  _e = headerParameters;
122
- _f = "Referer";
123
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
122
+ _f = "Priority";
123
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
124
124
  case 5:
125
- _e[_f] = _12.sent(); // Referer authentication
126
- _12.label = 6;
125
+ _e[_f] = _14.sent(); // Priority authentication
126
+ _14.label = 6;
127
127
  case 6:
128
128
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
129
129
  _g = headerParameters;
130
- _h = "Sec-Fetch-Dest";
131
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
130
+ _h = "Referer";
131
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
132
132
  case 7:
133
- _g[_h] = _12.sent(); // SecFetchDest authentication
134
- _12.label = 8;
133
+ _g[_h] = _14.sent(); // Referer authentication
134
+ _14.label = 8;
135
135
  case 8:
136
136
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
137
137
  _j = headerParameters;
138
- _k = "Sec-Ch-Ua-Platform";
139
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
138
+ _k = "Sec-Fetch-Dest";
139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
140
140
  case 9:
141
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
142
- _12.label = 10;
141
+ _j[_k] = _14.sent(); // SecFetchDest authentication
142
+ _14.label = 10;
143
143
  case 10:
144
144
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
145
145
  _l = headerParameters;
146
- _m = "Sec-Fetch-Mode";
147
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
146
+ _m = "Sec-Ch-Ua-Platform";
147
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
148
148
  case 11:
149
- _l[_m] = _12.sent(); // SecFetchMode authentication
150
- _12.label = 12;
149
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
150
+ _14.label = 12;
151
151
  case 12:
152
152
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
153
153
  _o = headerParameters;
154
- _p = "x-csrf-token";
155
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
154
+ _p = "Sec-Fetch-Mode";
155
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
156
156
  case 13:
157
- _o[_p] = _12.sent(); // CsrfToken authentication
158
- _12.label = 14;
157
+ _o[_p] = _14.sent(); // SecFetchMode authentication
158
+ _14.label = 14;
159
159
  case 14:
160
160
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
161
161
  _q = headerParameters;
162
- _r = "x-client-uuid";
163
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
162
+ _r = "x-csrf-token";
163
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
164
164
  case 15:
165
- _q[_r] = _12.sent(); // ClientUuid authentication
166
- _12.label = 16;
165
+ _q[_r] = _14.sent(); // CsrfToken authentication
166
+ _14.label = 16;
167
167
  case 16:
168
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
168
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
169
+ _s = headerParameters;
170
+ _t = "x-client-uuid";
171
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
172
+ case 17:
173
+ _s[_t] = _14.sent(); // ClientUuid authentication
174
+ _14.label = 18;
175
+ case 18:
176
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
169
177
  token = this.configuration.accessToken;
170
178
  return [4 /*yield*/, token("BearerAuth", [])];
171
- case 17:
172
- tokenString = _12.sent();
179
+ case 19:
180
+ tokenString = _14.sent();
173
181
  if (tokenString) {
174
182
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
175
183
  }
176
- _12.label = 18;
177
- case 18:
178
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
179
- _s = headerParameters;
180
- _t = "x-guest-token";
181
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
182
- case 19:
183
- _s[_t] = _12.sent(); // GuestToken authentication
184
- _12.label = 20;
184
+ _14.label = 20;
185
185
  case 20:
186
186
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
187
187
  _u = headerParameters;
188
- _v = "Sec-Ch-Ua";
189
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
188
+ _v = "x-guest-token";
189
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
190
190
  case 21:
191
- _u[_v] = _12.sent(); // SecChUa authentication
192
- _12.label = 22;
191
+ _u[_v] = _14.sent(); // GuestToken authentication
192
+ _14.label = 22;
193
193
  case 22:
194
194
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
195
195
  _w = headerParameters;
196
- _x = "x-client-transaction-id";
197
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
196
+ _x = "Sec-Ch-Ua";
197
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
198
198
  case 23:
199
- _w[_x] = _12.sent(); // ClientTransactionId authentication
200
- _12.label = 24;
199
+ _w[_x] = _14.sent(); // SecChUa authentication
200
+ _14.label = 24;
201
201
  case 24:
202
202
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
203
203
  _y = headerParameters;
204
- _z = "x-twitter-active-user";
205
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
204
+ _z = "x-client-transaction-id";
205
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
206
206
  case 25:
207
- _y[_z] = _12.sent(); // ActiveUser authentication
208
- _12.label = 26;
207
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
208
+ _14.label = 26;
209
209
  case 26:
210
210
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
211
211
  _0 = headerParameters;
212
- _1 = "user-agent";
213
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
212
+ _1 = "x-twitter-active-user";
213
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
214
214
  case 27:
215
- _0[_1] = _12.sent(); // UserAgent authentication
216
- _12.label = 28;
215
+ _0[_1] = _14.sent(); // ActiveUser authentication
216
+ _14.label = 28;
217
217
  case 28:
218
218
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
219
219
  _2 = headerParameters;
220
- _3 = "Accept-Language";
221
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
220
+ _3 = "user-agent";
221
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
222
222
  case 29:
223
- _2[_3] = _12.sent(); // AcceptLanguage authentication
224
- _12.label = 30;
223
+ _2[_3] = _14.sent(); // UserAgent authentication
224
+ _14.label = 30;
225
225
  case 30:
226
226
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
227
227
  _4 = headerParameters;
228
- _5 = "Sec-Fetch-Site";
229
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
228
+ _5 = "Accept-Language";
229
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
230
230
  case 31:
231
- _4[_5] = _12.sent(); // SecFetchSite authentication
232
- _12.label = 32;
231
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
232
+ _14.label = 32;
233
233
  case 32:
234
234
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
235
235
  _6 = headerParameters;
236
- _7 = "x-twitter-auth-type";
237
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
236
+ _7 = "Sec-Fetch-Site";
237
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
238
238
  case 33:
239
- _6[_7] = _12.sent(); // AuthType authentication
240
- _12.label = 34;
239
+ _6[_7] = _14.sent(); // SecFetchSite authentication
240
+ _14.label = 34;
241
241
  case 34:
242
242
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
243
243
  _8 = headerParameters;
244
- _9 = "Sec-Ch-Ua-Mobile";
245
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
244
+ _9 = "x-twitter-auth-type";
245
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
246
246
  case 35:
247
- _8[_9] = _12.sent(); // SecChUaMobile authentication
248
- _12.label = 36;
247
+ _8[_9] = _14.sent(); // AuthType authentication
248
+ _14.label = 36;
249
249
  case 36:
250
250
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
251
251
  _10 = headerParameters;
252
- _11 = "Accept-Encoding";
253
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
252
+ _11 = "Sec-Ch-Ua-Mobile";
253
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
254
254
  case 37:
255
- _10[_11] = _12.sent(); // AcceptEncoding authentication
256
- _12.label = 38;
257
- case 38: return [4 /*yield*/, this.request({
255
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
256
+ _14.label = 38;
257
+ case 38:
258
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
259
+ _12 = headerParameters;
260
+ _13 = "Accept-Encoding";
261
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
262
+ case 39:
263
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
264
+ _14.label = 40;
265
+ case 40: return [4 /*yield*/, this.request({
258
266
  path: "/graphql/{pathQueryId}/Favoriters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
259
267
  method: 'GET',
260
268
  headers: headerParameters,
261
269
  query: queryParameters,
262
270
  }, initOverrides)];
263
- case 39:
264
- response = _12.sent();
271
+ case 41:
272
+ response = _14.sent();
265
273
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetFavoritersResponseFromJSON)(jsonValue); })];
266
274
  }
267
275
  });
@@ -289,9 +297,9 @@ var UserListApi = /** @class */ (function (_super) {
289
297
  */
290
298
  UserListApi.prototype.getFollowersRaw = function (requestParameters, initOverrides) {
291
299
  return __awaiter(this, void 0, void 0, function () {
292
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
293
- return __generator(this, function (_12) {
294
- switch (_12.label) {
300
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
301
+ return __generator(this, function (_14) {
302
+ switch (_14.label) {
295
303
  case 0:
296
304
  if (requestParameters['pathQueryId'] == null) {
297
305
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowers().');
@@ -315,162 +323,170 @@ var UserListApi = /** @class */ (function (_super) {
315
323
  _b = "Accept";
316
324
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
317
325
  case 1:
318
- _a[_b] = _12.sent(); // Accept authentication
319
- _12.label = 2;
326
+ _a[_b] = _14.sent(); // Accept authentication
327
+ _14.label = 2;
320
328
  case 2:
321
329
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
322
330
  _c = headerParameters;
323
331
  _d = "x-twitter-client-language";
324
332
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
325
333
  case 3:
326
- _c[_d] = _12.sent(); // ClientLanguage authentication
327
- _12.label = 4;
334
+ _c[_d] = _14.sent(); // ClientLanguage authentication
335
+ _14.label = 4;
328
336
  case 4:
329
337
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
330
338
  _e = headerParameters;
331
- _f = "Referer";
332
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
339
+ _f = "Priority";
340
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
333
341
  case 5:
334
- _e[_f] = _12.sent(); // Referer authentication
335
- _12.label = 6;
342
+ _e[_f] = _14.sent(); // Priority authentication
343
+ _14.label = 6;
336
344
  case 6:
337
345
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
338
346
  _g = headerParameters;
339
- _h = "Sec-Fetch-Dest";
340
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
347
+ _h = "Referer";
348
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
341
349
  case 7:
342
- _g[_h] = _12.sent(); // SecFetchDest authentication
343
- _12.label = 8;
350
+ _g[_h] = _14.sent(); // Referer authentication
351
+ _14.label = 8;
344
352
  case 8:
345
353
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
346
354
  _j = headerParameters;
347
- _k = "Sec-Ch-Ua-Platform";
348
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
355
+ _k = "Sec-Fetch-Dest";
356
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
349
357
  case 9:
350
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
351
- _12.label = 10;
358
+ _j[_k] = _14.sent(); // SecFetchDest authentication
359
+ _14.label = 10;
352
360
  case 10:
353
361
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
354
362
  _l = headerParameters;
355
- _m = "Sec-Fetch-Mode";
356
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
363
+ _m = "Sec-Ch-Ua-Platform";
364
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
357
365
  case 11:
358
- _l[_m] = _12.sent(); // SecFetchMode authentication
359
- _12.label = 12;
366
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
367
+ _14.label = 12;
360
368
  case 12:
361
369
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
362
370
  _o = headerParameters;
363
- _p = "x-csrf-token";
364
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
371
+ _p = "Sec-Fetch-Mode";
372
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
365
373
  case 13:
366
- _o[_p] = _12.sent(); // CsrfToken authentication
367
- _12.label = 14;
374
+ _o[_p] = _14.sent(); // SecFetchMode authentication
375
+ _14.label = 14;
368
376
  case 14:
369
377
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
370
378
  _q = headerParameters;
371
- _r = "x-client-uuid";
372
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
379
+ _r = "x-csrf-token";
380
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
373
381
  case 15:
374
- _q[_r] = _12.sent(); // ClientUuid authentication
375
- _12.label = 16;
382
+ _q[_r] = _14.sent(); // CsrfToken authentication
383
+ _14.label = 16;
376
384
  case 16:
377
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
385
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
386
+ _s = headerParameters;
387
+ _t = "x-client-uuid";
388
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
389
+ case 17:
390
+ _s[_t] = _14.sent(); // ClientUuid authentication
391
+ _14.label = 18;
392
+ case 18:
393
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
378
394
  token = this.configuration.accessToken;
379
395
  return [4 /*yield*/, token("BearerAuth", [])];
380
- case 17:
381
- tokenString = _12.sent();
396
+ case 19:
397
+ tokenString = _14.sent();
382
398
  if (tokenString) {
383
399
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
384
400
  }
385
- _12.label = 18;
386
- case 18:
387
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
388
- _s = headerParameters;
389
- _t = "x-guest-token";
390
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
391
- case 19:
392
- _s[_t] = _12.sent(); // GuestToken authentication
393
- _12.label = 20;
401
+ _14.label = 20;
394
402
  case 20:
395
403
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
396
404
  _u = headerParameters;
397
- _v = "Sec-Ch-Ua";
398
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
405
+ _v = "x-guest-token";
406
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
399
407
  case 21:
400
- _u[_v] = _12.sent(); // SecChUa authentication
401
- _12.label = 22;
408
+ _u[_v] = _14.sent(); // GuestToken authentication
409
+ _14.label = 22;
402
410
  case 22:
403
411
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
404
412
  _w = headerParameters;
405
- _x = "x-client-transaction-id";
406
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
413
+ _x = "Sec-Ch-Ua";
414
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
407
415
  case 23:
408
- _w[_x] = _12.sent(); // ClientTransactionId authentication
409
- _12.label = 24;
416
+ _w[_x] = _14.sent(); // SecChUa authentication
417
+ _14.label = 24;
410
418
  case 24:
411
419
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
412
420
  _y = headerParameters;
413
- _z = "x-twitter-active-user";
414
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
421
+ _z = "x-client-transaction-id";
422
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
415
423
  case 25:
416
- _y[_z] = _12.sent(); // ActiveUser authentication
417
- _12.label = 26;
424
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
425
+ _14.label = 26;
418
426
  case 26:
419
427
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
420
428
  _0 = headerParameters;
421
- _1 = "user-agent";
422
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
429
+ _1 = "x-twitter-active-user";
430
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
423
431
  case 27:
424
- _0[_1] = _12.sent(); // UserAgent authentication
425
- _12.label = 28;
432
+ _0[_1] = _14.sent(); // ActiveUser authentication
433
+ _14.label = 28;
426
434
  case 28:
427
435
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
428
436
  _2 = headerParameters;
429
- _3 = "Accept-Language";
430
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
437
+ _3 = "user-agent";
438
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
431
439
  case 29:
432
- _2[_3] = _12.sent(); // AcceptLanguage authentication
433
- _12.label = 30;
440
+ _2[_3] = _14.sent(); // UserAgent authentication
441
+ _14.label = 30;
434
442
  case 30:
435
443
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
436
444
  _4 = headerParameters;
437
- _5 = "Sec-Fetch-Site";
438
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
445
+ _5 = "Accept-Language";
446
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
439
447
  case 31:
440
- _4[_5] = _12.sent(); // SecFetchSite authentication
441
- _12.label = 32;
448
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
449
+ _14.label = 32;
442
450
  case 32:
443
451
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
444
452
  _6 = headerParameters;
445
- _7 = "x-twitter-auth-type";
446
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
453
+ _7 = "Sec-Fetch-Site";
454
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
447
455
  case 33:
448
- _6[_7] = _12.sent(); // AuthType authentication
449
- _12.label = 34;
456
+ _6[_7] = _14.sent(); // SecFetchSite authentication
457
+ _14.label = 34;
450
458
  case 34:
451
459
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
452
460
  _8 = headerParameters;
453
- _9 = "Sec-Ch-Ua-Mobile";
454
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
461
+ _9 = "x-twitter-auth-type";
462
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
455
463
  case 35:
456
- _8[_9] = _12.sent(); // SecChUaMobile authentication
457
- _12.label = 36;
464
+ _8[_9] = _14.sent(); // AuthType authentication
465
+ _14.label = 36;
458
466
  case 36:
459
467
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
460
468
  _10 = headerParameters;
461
- _11 = "Accept-Encoding";
462
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
469
+ _11 = "Sec-Ch-Ua-Mobile";
470
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
463
471
  case 37:
464
- _10[_11] = _12.sent(); // AcceptEncoding authentication
465
- _12.label = 38;
466
- case 38: return [4 /*yield*/, this.request({
472
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
473
+ _14.label = 38;
474
+ case 38:
475
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
476
+ _12 = headerParameters;
477
+ _13 = "Accept-Encoding";
478
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
479
+ case 39:
480
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
481
+ _14.label = 40;
482
+ case 40: return [4 /*yield*/, this.request({
467
483
  path: "/graphql/{pathQueryId}/Followers".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
468
484
  method: 'GET',
469
485
  headers: headerParameters,
470
486
  query: queryParameters,
471
487
  }, initOverrides)];
472
- case 39:
473
- response = _12.sent();
488
+ case 41:
489
+ response = _14.sent();
474
490
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
475
491
  }
476
492
  });
@@ -498,9 +514,9 @@ var UserListApi = /** @class */ (function (_super) {
498
514
  */
499
515
  UserListApi.prototype.getFollowersYouKnowRaw = function (requestParameters, initOverrides) {
500
516
  return __awaiter(this, void 0, void 0, function () {
501
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
502
- return __generator(this, function (_12) {
503
- switch (_12.label) {
517
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
518
+ return __generator(this, function (_14) {
519
+ switch (_14.label) {
504
520
  case 0:
505
521
  if (requestParameters['pathQueryId'] == null) {
506
522
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowersYouKnow().');
@@ -524,162 +540,170 @@ var UserListApi = /** @class */ (function (_super) {
524
540
  _b = "Accept";
525
541
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
526
542
  case 1:
527
- _a[_b] = _12.sent(); // Accept authentication
528
- _12.label = 2;
543
+ _a[_b] = _14.sent(); // Accept authentication
544
+ _14.label = 2;
529
545
  case 2:
530
546
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
531
547
  _c = headerParameters;
532
548
  _d = "x-twitter-client-language";
533
549
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
534
550
  case 3:
535
- _c[_d] = _12.sent(); // ClientLanguage authentication
536
- _12.label = 4;
551
+ _c[_d] = _14.sent(); // ClientLanguage authentication
552
+ _14.label = 4;
537
553
  case 4:
538
554
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
539
555
  _e = headerParameters;
540
- _f = "Referer";
541
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
556
+ _f = "Priority";
557
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
542
558
  case 5:
543
- _e[_f] = _12.sent(); // Referer authentication
544
- _12.label = 6;
559
+ _e[_f] = _14.sent(); // Priority authentication
560
+ _14.label = 6;
545
561
  case 6:
546
562
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
547
563
  _g = headerParameters;
548
- _h = "Sec-Fetch-Dest";
549
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
564
+ _h = "Referer";
565
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
550
566
  case 7:
551
- _g[_h] = _12.sent(); // SecFetchDest authentication
552
- _12.label = 8;
567
+ _g[_h] = _14.sent(); // Referer authentication
568
+ _14.label = 8;
553
569
  case 8:
554
570
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
555
571
  _j = headerParameters;
556
- _k = "Sec-Ch-Ua-Platform";
557
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
572
+ _k = "Sec-Fetch-Dest";
573
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
558
574
  case 9:
559
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
560
- _12.label = 10;
575
+ _j[_k] = _14.sent(); // SecFetchDest authentication
576
+ _14.label = 10;
561
577
  case 10:
562
578
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
563
579
  _l = headerParameters;
564
- _m = "Sec-Fetch-Mode";
565
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
580
+ _m = "Sec-Ch-Ua-Platform";
581
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
566
582
  case 11:
567
- _l[_m] = _12.sent(); // SecFetchMode authentication
568
- _12.label = 12;
583
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
584
+ _14.label = 12;
569
585
  case 12:
570
586
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
571
587
  _o = headerParameters;
572
- _p = "x-csrf-token";
573
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
588
+ _p = "Sec-Fetch-Mode";
589
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
574
590
  case 13:
575
- _o[_p] = _12.sent(); // CsrfToken authentication
576
- _12.label = 14;
591
+ _o[_p] = _14.sent(); // SecFetchMode authentication
592
+ _14.label = 14;
577
593
  case 14:
578
594
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
579
595
  _q = headerParameters;
580
- _r = "x-client-uuid";
581
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
596
+ _r = "x-csrf-token";
597
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
582
598
  case 15:
583
- _q[_r] = _12.sent(); // ClientUuid authentication
584
- _12.label = 16;
599
+ _q[_r] = _14.sent(); // CsrfToken authentication
600
+ _14.label = 16;
585
601
  case 16:
586
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
602
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
603
+ _s = headerParameters;
604
+ _t = "x-client-uuid";
605
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
606
+ case 17:
607
+ _s[_t] = _14.sent(); // ClientUuid authentication
608
+ _14.label = 18;
609
+ case 18:
610
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
587
611
  token = this.configuration.accessToken;
588
612
  return [4 /*yield*/, token("BearerAuth", [])];
589
- case 17:
590
- tokenString = _12.sent();
613
+ case 19:
614
+ tokenString = _14.sent();
591
615
  if (tokenString) {
592
616
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
593
617
  }
594
- _12.label = 18;
595
- case 18:
596
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
597
- _s = headerParameters;
598
- _t = "x-guest-token";
599
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
600
- case 19:
601
- _s[_t] = _12.sent(); // GuestToken authentication
602
- _12.label = 20;
618
+ _14.label = 20;
603
619
  case 20:
604
620
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
605
621
  _u = headerParameters;
606
- _v = "Sec-Ch-Ua";
607
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
622
+ _v = "x-guest-token";
623
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
608
624
  case 21:
609
- _u[_v] = _12.sent(); // SecChUa authentication
610
- _12.label = 22;
625
+ _u[_v] = _14.sent(); // GuestToken authentication
626
+ _14.label = 22;
611
627
  case 22:
612
628
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
613
629
  _w = headerParameters;
614
- _x = "x-client-transaction-id";
615
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
630
+ _x = "Sec-Ch-Ua";
631
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
616
632
  case 23:
617
- _w[_x] = _12.sent(); // ClientTransactionId authentication
618
- _12.label = 24;
633
+ _w[_x] = _14.sent(); // SecChUa authentication
634
+ _14.label = 24;
619
635
  case 24:
620
636
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
621
637
  _y = headerParameters;
622
- _z = "x-twitter-active-user";
623
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
638
+ _z = "x-client-transaction-id";
639
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
624
640
  case 25:
625
- _y[_z] = _12.sent(); // ActiveUser authentication
626
- _12.label = 26;
641
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
642
+ _14.label = 26;
627
643
  case 26:
628
644
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
629
645
  _0 = headerParameters;
630
- _1 = "user-agent";
631
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
646
+ _1 = "x-twitter-active-user";
647
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
632
648
  case 27:
633
- _0[_1] = _12.sent(); // UserAgent authentication
634
- _12.label = 28;
649
+ _0[_1] = _14.sent(); // ActiveUser authentication
650
+ _14.label = 28;
635
651
  case 28:
636
652
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
637
653
  _2 = headerParameters;
638
- _3 = "Accept-Language";
639
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
654
+ _3 = "user-agent";
655
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
640
656
  case 29:
641
- _2[_3] = _12.sent(); // AcceptLanguage authentication
642
- _12.label = 30;
657
+ _2[_3] = _14.sent(); // UserAgent authentication
658
+ _14.label = 30;
643
659
  case 30:
644
660
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
645
661
  _4 = headerParameters;
646
- _5 = "Sec-Fetch-Site";
647
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
662
+ _5 = "Accept-Language";
663
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
648
664
  case 31:
649
- _4[_5] = _12.sent(); // SecFetchSite authentication
650
- _12.label = 32;
665
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
666
+ _14.label = 32;
651
667
  case 32:
652
668
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
653
669
  _6 = headerParameters;
654
- _7 = "x-twitter-auth-type";
655
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
670
+ _7 = "Sec-Fetch-Site";
671
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
656
672
  case 33:
657
- _6[_7] = _12.sent(); // AuthType authentication
658
- _12.label = 34;
673
+ _6[_7] = _14.sent(); // SecFetchSite authentication
674
+ _14.label = 34;
659
675
  case 34:
660
676
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
661
677
  _8 = headerParameters;
662
- _9 = "Sec-Ch-Ua-Mobile";
663
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
678
+ _9 = "x-twitter-auth-type";
679
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
664
680
  case 35:
665
- _8[_9] = _12.sent(); // SecChUaMobile authentication
666
- _12.label = 36;
681
+ _8[_9] = _14.sent(); // AuthType authentication
682
+ _14.label = 36;
667
683
  case 36:
668
684
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
669
685
  _10 = headerParameters;
670
- _11 = "Accept-Encoding";
671
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
686
+ _11 = "Sec-Ch-Ua-Mobile";
687
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
672
688
  case 37:
673
- _10[_11] = _12.sent(); // AcceptEncoding authentication
674
- _12.label = 38;
675
- case 38: return [4 /*yield*/, this.request({
689
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
690
+ _14.label = 38;
691
+ case 38:
692
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
693
+ _12 = headerParameters;
694
+ _13 = "Accept-Encoding";
695
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
696
+ case 39:
697
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
698
+ _14.label = 40;
699
+ case 40: return [4 /*yield*/, this.request({
676
700
  path: "/graphql/{pathQueryId}/FollowersYouKnow".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
677
701
  method: 'GET',
678
702
  headers: headerParameters,
679
703
  query: queryParameters,
680
704
  }, initOverrides)];
681
- case 39:
682
- response = _12.sent();
705
+ case 41:
706
+ response = _14.sent();
683
707
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
684
708
  }
685
709
  });
@@ -707,9 +731,9 @@ var UserListApi = /** @class */ (function (_super) {
707
731
  */
708
732
  UserListApi.prototype.getFollowingRaw = function (requestParameters, initOverrides) {
709
733
  return __awaiter(this, void 0, void 0, function () {
710
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
711
- return __generator(this, function (_12) {
712
- switch (_12.label) {
734
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
735
+ return __generator(this, function (_14) {
736
+ switch (_14.label) {
713
737
  case 0:
714
738
  if (requestParameters['pathQueryId'] == null) {
715
739
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getFollowing().');
@@ -733,162 +757,170 @@ var UserListApi = /** @class */ (function (_super) {
733
757
  _b = "Accept";
734
758
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
735
759
  case 1:
736
- _a[_b] = _12.sent(); // Accept authentication
737
- _12.label = 2;
760
+ _a[_b] = _14.sent(); // Accept authentication
761
+ _14.label = 2;
738
762
  case 2:
739
763
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
740
764
  _c = headerParameters;
741
765
  _d = "x-twitter-client-language";
742
766
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
743
767
  case 3:
744
- _c[_d] = _12.sent(); // ClientLanguage authentication
745
- _12.label = 4;
768
+ _c[_d] = _14.sent(); // ClientLanguage authentication
769
+ _14.label = 4;
746
770
  case 4:
747
771
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
748
772
  _e = headerParameters;
749
- _f = "Referer";
750
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
773
+ _f = "Priority";
774
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
751
775
  case 5:
752
- _e[_f] = _12.sent(); // Referer authentication
753
- _12.label = 6;
776
+ _e[_f] = _14.sent(); // Priority authentication
777
+ _14.label = 6;
754
778
  case 6:
755
779
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
756
780
  _g = headerParameters;
757
- _h = "Sec-Fetch-Dest";
758
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
781
+ _h = "Referer";
782
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
759
783
  case 7:
760
- _g[_h] = _12.sent(); // SecFetchDest authentication
761
- _12.label = 8;
784
+ _g[_h] = _14.sent(); // Referer authentication
785
+ _14.label = 8;
762
786
  case 8:
763
787
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
764
788
  _j = headerParameters;
765
- _k = "Sec-Ch-Ua-Platform";
766
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
789
+ _k = "Sec-Fetch-Dest";
790
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
767
791
  case 9:
768
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
769
- _12.label = 10;
792
+ _j[_k] = _14.sent(); // SecFetchDest authentication
793
+ _14.label = 10;
770
794
  case 10:
771
795
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
772
796
  _l = headerParameters;
773
- _m = "Sec-Fetch-Mode";
774
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
797
+ _m = "Sec-Ch-Ua-Platform";
798
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
775
799
  case 11:
776
- _l[_m] = _12.sent(); // SecFetchMode authentication
777
- _12.label = 12;
800
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
801
+ _14.label = 12;
778
802
  case 12:
779
803
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
780
804
  _o = headerParameters;
781
- _p = "x-csrf-token";
782
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
805
+ _p = "Sec-Fetch-Mode";
806
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
783
807
  case 13:
784
- _o[_p] = _12.sent(); // CsrfToken authentication
785
- _12.label = 14;
808
+ _o[_p] = _14.sent(); // SecFetchMode authentication
809
+ _14.label = 14;
786
810
  case 14:
787
811
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
788
812
  _q = headerParameters;
789
- _r = "x-client-uuid";
790
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
813
+ _r = "x-csrf-token";
814
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
791
815
  case 15:
792
- _q[_r] = _12.sent(); // ClientUuid authentication
793
- _12.label = 16;
816
+ _q[_r] = _14.sent(); // CsrfToken authentication
817
+ _14.label = 16;
794
818
  case 16:
795
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
819
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
820
+ _s = headerParameters;
821
+ _t = "x-client-uuid";
822
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
823
+ case 17:
824
+ _s[_t] = _14.sent(); // ClientUuid authentication
825
+ _14.label = 18;
826
+ case 18:
827
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
796
828
  token = this.configuration.accessToken;
797
829
  return [4 /*yield*/, token("BearerAuth", [])];
798
- case 17:
799
- tokenString = _12.sent();
830
+ case 19:
831
+ tokenString = _14.sent();
800
832
  if (tokenString) {
801
833
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
802
834
  }
803
- _12.label = 18;
804
- case 18:
805
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
806
- _s = headerParameters;
807
- _t = "x-guest-token";
808
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
809
- case 19:
810
- _s[_t] = _12.sent(); // GuestToken authentication
811
- _12.label = 20;
835
+ _14.label = 20;
812
836
  case 20:
813
837
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
814
838
  _u = headerParameters;
815
- _v = "Sec-Ch-Ua";
816
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
839
+ _v = "x-guest-token";
840
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
817
841
  case 21:
818
- _u[_v] = _12.sent(); // SecChUa authentication
819
- _12.label = 22;
842
+ _u[_v] = _14.sent(); // GuestToken authentication
843
+ _14.label = 22;
820
844
  case 22:
821
845
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
822
846
  _w = headerParameters;
823
- _x = "x-client-transaction-id";
824
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
847
+ _x = "Sec-Ch-Ua";
848
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
825
849
  case 23:
826
- _w[_x] = _12.sent(); // ClientTransactionId authentication
827
- _12.label = 24;
850
+ _w[_x] = _14.sent(); // SecChUa authentication
851
+ _14.label = 24;
828
852
  case 24:
829
853
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
830
854
  _y = headerParameters;
831
- _z = "x-twitter-active-user";
832
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
855
+ _z = "x-client-transaction-id";
856
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
833
857
  case 25:
834
- _y[_z] = _12.sent(); // ActiveUser authentication
835
- _12.label = 26;
858
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
859
+ _14.label = 26;
836
860
  case 26:
837
861
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
838
862
  _0 = headerParameters;
839
- _1 = "user-agent";
840
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
863
+ _1 = "x-twitter-active-user";
864
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
841
865
  case 27:
842
- _0[_1] = _12.sent(); // UserAgent authentication
843
- _12.label = 28;
866
+ _0[_1] = _14.sent(); // ActiveUser authentication
867
+ _14.label = 28;
844
868
  case 28:
845
869
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
846
870
  _2 = headerParameters;
847
- _3 = "Accept-Language";
848
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
871
+ _3 = "user-agent";
872
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
849
873
  case 29:
850
- _2[_3] = _12.sent(); // AcceptLanguage authentication
851
- _12.label = 30;
874
+ _2[_3] = _14.sent(); // UserAgent authentication
875
+ _14.label = 30;
852
876
  case 30:
853
877
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
854
878
  _4 = headerParameters;
855
- _5 = "Sec-Fetch-Site";
856
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
879
+ _5 = "Accept-Language";
880
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
857
881
  case 31:
858
- _4[_5] = _12.sent(); // SecFetchSite authentication
859
- _12.label = 32;
882
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
883
+ _14.label = 32;
860
884
  case 32:
861
885
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
862
886
  _6 = headerParameters;
863
- _7 = "x-twitter-auth-type";
864
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
887
+ _7 = "Sec-Fetch-Site";
888
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
865
889
  case 33:
866
- _6[_7] = _12.sent(); // AuthType authentication
867
- _12.label = 34;
890
+ _6[_7] = _14.sent(); // SecFetchSite authentication
891
+ _14.label = 34;
868
892
  case 34:
869
893
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
870
894
  _8 = headerParameters;
871
- _9 = "Sec-Ch-Ua-Mobile";
872
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
895
+ _9 = "x-twitter-auth-type";
896
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
873
897
  case 35:
874
- _8[_9] = _12.sent(); // SecChUaMobile authentication
875
- _12.label = 36;
898
+ _8[_9] = _14.sent(); // AuthType authentication
899
+ _14.label = 36;
876
900
  case 36:
877
901
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
878
902
  _10 = headerParameters;
879
- _11 = "Accept-Encoding";
880
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
903
+ _11 = "Sec-Ch-Ua-Mobile";
904
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
881
905
  case 37:
882
- _10[_11] = _12.sent(); // AcceptEncoding authentication
883
- _12.label = 38;
884
- case 38: return [4 /*yield*/, this.request({
906
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
907
+ _14.label = 38;
908
+ case 38:
909
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
910
+ _12 = headerParameters;
911
+ _13 = "Accept-Encoding";
912
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
913
+ case 39:
914
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
915
+ _14.label = 40;
916
+ case 40: return [4 /*yield*/, this.request({
885
917
  path: "/graphql/{pathQueryId}/Following".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
886
918
  method: 'GET',
887
919
  headers: headerParameters,
888
920
  query: queryParameters,
889
921
  }, initOverrides)];
890
- case 39:
891
- response = _12.sent();
922
+ case 41:
923
+ response = _14.sent();
892
924
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FollowResponseFromJSON)(jsonValue); })];
893
925
  }
894
926
  });
@@ -916,9 +948,9 @@ var UserListApi = /** @class */ (function (_super) {
916
948
  */
917
949
  UserListApi.prototype.getRetweetersRaw = function (requestParameters, initOverrides) {
918
950
  return __awaiter(this, void 0, void 0, function () {
919
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
920
- return __generator(this, function (_12) {
921
- switch (_12.label) {
951
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, response;
952
+ return __generator(this, function (_14) {
953
+ switch (_14.label) {
922
954
  case 0:
923
955
  if (requestParameters['pathQueryId'] == null) {
924
956
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getRetweeters().');
@@ -942,162 +974,170 @@ var UserListApi = /** @class */ (function (_super) {
942
974
  _b = "Accept";
943
975
  return [4 /*yield*/, this.configuration.apiKey("Accept")];
944
976
  case 1:
945
- _a[_b] = _12.sent(); // Accept authentication
946
- _12.label = 2;
977
+ _a[_b] = _14.sent(); // Accept authentication
978
+ _14.label = 2;
947
979
  case 2:
948
980
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
949
981
  _c = headerParameters;
950
982
  _d = "x-twitter-client-language";
951
983
  return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
952
984
  case 3:
953
- _c[_d] = _12.sent(); // ClientLanguage authentication
954
- _12.label = 4;
985
+ _c[_d] = _14.sent(); // ClientLanguage authentication
986
+ _14.label = 4;
955
987
  case 4:
956
988
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
957
989
  _e = headerParameters;
958
- _f = "Referer";
959
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
990
+ _f = "Priority";
991
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
960
992
  case 5:
961
- _e[_f] = _12.sent(); // Referer authentication
962
- _12.label = 6;
993
+ _e[_f] = _14.sent(); // Priority authentication
994
+ _14.label = 6;
963
995
  case 6:
964
996
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
965
997
  _g = headerParameters;
966
- _h = "Sec-Fetch-Dest";
967
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
998
+ _h = "Referer";
999
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
968
1000
  case 7:
969
- _g[_h] = _12.sent(); // SecFetchDest authentication
970
- _12.label = 8;
1001
+ _g[_h] = _14.sent(); // Referer authentication
1002
+ _14.label = 8;
971
1003
  case 8:
972
1004
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
973
1005
  _j = headerParameters;
974
- _k = "Sec-Ch-Ua-Platform";
975
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1006
+ _k = "Sec-Fetch-Dest";
1007
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
976
1008
  case 9:
977
- _j[_k] = _12.sent(); // SecChUaPlatform authentication
978
- _12.label = 10;
1009
+ _j[_k] = _14.sent(); // SecFetchDest authentication
1010
+ _14.label = 10;
979
1011
  case 10:
980
1012
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
981
1013
  _l = headerParameters;
982
- _m = "Sec-Fetch-Mode";
983
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1014
+ _m = "Sec-Ch-Ua-Platform";
1015
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
984
1016
  case 11:
985
- _l[_m] = _12.sent(); // SecFetchMode authentication
986
- _12.label = 12;
1017
+ _l[_m] = _14.sent(); // SecChUaPlatform authentication
1018
+ _14.label = 12;
987
1019
  case 12:
988
1020
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
989
1021
  _o = headerParameters;
990
- _p = "x-csrf-token";
991
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1022
+ _p = "Sec-Fetch-Mode";
1023
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
992
1024
  case 13:
993
- _o[_p] = _12.sent(); // CsrfToken authentication
994
- _12.label = 14;
1025
+ _o[_p] = _14.sent(); // SecFetchMode authentication
1026
+ _14.label = 14;
995
1027
  case 14:
996
1028
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
997
1029
  _q = headerParameters;
998
- _r = "x-client-uuid";
999
- return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1030
+ _r = "x-csrf-token";
1031
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1000
1032
  case 15:
1001
- _q[_r] = _12.sent(); // ClientUuid authentication
1002
- _12.label = 16;
1033
+ _q[_r] = _14.sent(); // CsrfToken authentication
1034
+ _14.label = 16;
1003
1035
  case 16:
1004
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1036
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1037
+ _s = headerParameters;
1038
+ _t = "x-client-uuid";
1039
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1040
+ case 17:
1041
+ _s[_t] = _14.sent(); // ClientUuid authentication
1042
+ _14.label = 18;
1043
+ case 18:
1044
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1005
1045
  token = this.configuration.accessToken;
1006
1046
  return [4 /*yield*/, token("BearerAuth", [])];
1007
- case 17:
1008
- tokenString = _12.sent();
1047
+ case 19:
1048
+ tokenString = _14.sent();
1009
1049
  if (tokenString) {
1010
1050
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1011
1051
  }
1012
- _12.label = 18;
1013
- case 18:
1014
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1015
- _s = headerParameters;
1016
- _t = "x-guest-token";
1017
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1018
- case 19:
1019
- _s[_t] = _12.sent(); // GuestToken authentication
1020
- _12.label = 20;
1052
+ _14.label = 20;
1021
1053
  case 20:
1022
1054
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1023
1055
  _u = headerParameters;
1024
- _v = "Sec-Ch-Ua";
1025
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1056
+ _v = "x-guest-token";
1057
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1026
1058
  case 21:
1027
- _u[_v] = _12.sent(); // SecChUa authentication
1028
- _12.label = 22;
1059
+ _u[_v] = _14.sent(); // GuestToken authentication
1060
+ _14.label = 22;
1029
1061
  case 22:
1030
1062
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1031
1063
  _w = headerParameters;
1032
- _x = "x-client-transaction-id";
1033
- return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1064
+ _x = "Sec-Ch-Ua";
1065
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1034
1066
  case 23:
1035
- _w[_x] = _12.sent(); // ClientTransactionId authentication
1036
- _12.label = 24;
1067
+ _w[_x] = _14.sent(); // SecChUa authentication
1068
+ _14.label = 24;
1037
1069
  case 24:
1038
1070
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1039
1071
  _y = headerParameters;
1040
- _z = "x-twitter-active-user";
1041
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1072
+ _z = "x-client-transaction-id";
1073
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1042
1074
  case 25:
1043
- _y[_z] = _12.sent(); // ActiveUser authentication
1044
- _12.label = 26;
1075
+ _y[_z] = _14.sent(); // ClientTransactionId authentication
1076
+ _14.label = 26;
1045
1077
  case 26:
1046
1078
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1047
1079
  _0 = headerParameters;
1048
- _1 = "user-agent";
1049
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1080
+ _1 = "x-twitter-active-user";
1081
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1050
1082
  case 27:
1051
- _0[_1] = _12.sent(); // UserAgent authentication
1052
- _12.label = 28;
1083
+ _0[_1] = _14.sent(); // ActiveUser authentication
1084
+ _14.label = 28;
1053
1085
  case 28:
1054
1086
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1055
1087
  _2 = headerParameters;
1056
- _3 = "Accept-Language";
1057
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1088
+ _3 = "user-agent";
1089
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1058
1090
  case 29:
1059
- _2[_3] = _12.sent(); // AcceptLanguage authentication
1060
- _12.label = 30;
1091
+ _2[_3] = _14.sent(); // UserAgent authentication
1092
+ _14.label = 30;
1061
1093
  case 30:
1062
1094
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1063
1095
  _4 = headerParameters;
1064
- _5 = "Sec-Fetch-Site";
1065
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1096
+ _5 = "Accept-Language";
1097
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1066
1098
  case 31:
1067
- _4[_5] = _12.sent(); // SecFetchSite authentication
1068
- _12.label = 32;
1099
+ _4[_5] = _14.sent(); // AcceptLanguage authentication
1100
+ _14.label = 32;
1069
1101
  case 32:
1070
1102
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1071
1103
  _6 = headerParameters;
1072
- _7 = "x-twitter-auth-type";
1073
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1104
+ _7 = "Sec-Fetch-Site";
1105
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1074
1106
  case 33:
1075
- _6[_7] = _12.sent(); // AuthType authentication
1076
- _12.label = 34;
1107
+ _6[_7] = _14.sent(); // SecFetchSite authentication
1108
+ _14.label = 34;
1077
1109
  case 34:
1078
1110
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1079
1111
  _8 = headerParameters;
1080
- _9 = "Sec-Ch-Ua-Mobile";
1081
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1112
+ _9 = "x-twitter-auth-type";
1113
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1082
1114
  case 35:
1083
- _8[_9] = _12.sent(); // SecChUaMobile authentication
1084
- _12.label = 36;
1115
+ _8[_9] = _14.sent(); // AuthType authentication
1116
+ _14.label = 36;
1085
1117
  case 36:
1086
1118
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1087
1119
  _10 = headerParameters;
1088
- _11 = "Accept-Encoding";
1089
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1120
+ _11 = "Sec-Ch-Ua-Mobile";
1121
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1090
1122
  case 37:
1091
- _10[_11] = _12.sent(); // AcceptEncoding authentication
1092
- _12.label = 38;
1093
- case 38: return [4 /*yield*/, this.request({
1123
+ _10[_11] = _14.sent(); // SecChUaMobile authentication
1124
+ _14.label = 38;
1125
+ case 38:
1126
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
1127
+ _12 = headerParameters;
1128
+ _13 = "Accept-Encoding";
1129
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1130
+ case 39:
1131
+ _12[_13] = _14.sent(); // AcceptEncoding authentication
1132
+ _14.label = 40;
1133
+ case 40: return [4 /*yield*/, this.request({
1094
1134
  path: "/graphql/{pathQueryId}/Retweeters".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1095
1135
  method: 'GET',
1096
1136
  headers: headerParameters,
1097
1137
  query: queryParameters,
1098
1138
  }, initOverrides)];
1099
- case 39:
1100
- response = _12.sent();
1139
+ case 41:
1140
+ response = _14.sent();
1101
1141
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetRetweetersResponseFromJSON)(jsonValue); })];
1102
1142
  }
1103
1143
  });