twitter-openapi-typescript-generated 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +180 -164
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +90 -82
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +720 -656
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +990 -902
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +180 -164
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +450 -410
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +90 -82
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +180 -164
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +178 -162
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +90 -82
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/BookmarksResponse.d.ts +3 -2
- package/dist/models/BookmarksResponse.d.ts.map +1 -1
- package/dist/models/BookmarksResponse.js +3 -2
- package/dist/models/BookmarksResponse.js.map +1 -1
- package/dist/models/CreateBookmarkResponse.d.ts +3 -2
- package/dist/models/CreateBookmarkResponse.d.ts.map +1 -1
- package/dist/models/CreateBookmarkResponse.js +3 -2
- package/dist/models/CreateBookmarkResponse.js.map +1 -1
- package/dist/models/CreateRetweetResponse.d.ts +3 -2
- package/dist/models/CreateRetweetResponse.d.ts.map +1 -1
- package/dist/models/CreateRetweetResponse.js +3 -2
- package/dist/models/CreateRetweetResponse.js.map +1 -1
- package/dist/models/CreateTweetResponse.d.ts +3 -2
- package/dist/models/CreateTweetResponse.d.ts.map +1 -1
- package/dist/models/CreateTweetResponse.js +3 -2
- package/dist/models/CreateTweetResponse.js.map +1 -1
- package/dist/models/DeleteBookmarkResponse.d.ts +3 -2
- package/dist/models/DeleteBookmarkResponse.d.ts.map +1 -1
- package/dist/models/DeleteBookmarkResponse.js +3 -2
- package/dist/models/DeleteBookmarkResponse.js.map +1 -1
- package/dist/models/DeleteRetweetResponse.d.ts +3 -2
- package/dist/models/DeleteRetweetResponse.d.ts.map +1 -1
- package/dist/models/DeleteRetweetResponse.js +3 -2
- package/dist/models/DeleteRetweetResponse.js.map +1 -1
- package/dist/models/DeleteTweetResponse.d.ts +3 -2
- package/dist/models/DeleteTweetResponse.d.ts.map +1 -1
- package/dist/models/DeleteTweetResponse.js +3 -2
- package/dist/models/DeleteTweetResponse.js.map +1 -1
- package/dist/models/{ModelError.d.ts → ErrorResponse.d.ts} +18 -18
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/{ModelError.js → ErrorResponse.js} +12 -12
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/FavoriteTweetResponse.d.ts +3 -2
- package/dist/models/FavoriteTweetResponse.d.ts.map +1 -1
- package/dist/models/FavoriteTweetResponse.js +3 -2
- package/dist/models/FavoriteTweetResponse.js.map +1 -1
- package/dist/models/FollowResponse.d.ts +3 -2
- package/dist/models/FollowResponse.d.ts.map +1 -1
- package/dist/models/FollowResponse.js +3 -2
- package/dist/models/FollowResponse.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +3 -2
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.js +3 -2
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -1
- package/dist/models/ProfileResponse.d.ts +3 -2
- package/dist/models/ProfileResponse.d.ts.map +1 -1
- package/dist/models/ProfileResponse.js +3 -2
- package/dist/models/ProfileResponse.js.map +1 -1
- package/dist/models/SearchTimelineResponse.d.ts +3 -2
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -1
- package/dist/models/SearchTimelineResponse.js +3 -2
- package/dist/models/SearchTimelineResponse.js.map +1 -1
- package/dist/models/TimelineResponse.d.ts +3 -2
- package/dist/models/TimelineResponse.d.ts.map +1 -1
- package/dist/models/TimelineResponse.js +3 -2
- package/dist/models/TimelineResponse.js.map +1 -1
- package/dist/models/TweetDetailResponse.d.ts +3 -2
- package/dist/models/TweetDetailResponse.d.ts.map +1 -1
- package/dist/models/TweetDetailResponse.js +3 -2
- package/dist/models/TweetDetailResponse.js.map +1 -1
- package/dist/models/TweetFavoritersResponse.d.ts +3 -2
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -1
- package/dist/models/TweetFavoritersResponse.js +3 -2
- package/dist/models/TweetFavoritersResponse.js.map +1 -1
- package/dist/models/TweetResultByRestIdResponse.d.ts +3 -2
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -1
- package/dist/models/TweetResultByRestIdResponse.js +3 -2
- package/dist/models/TweetResultByRestIdResponse.js.map +1 -1
- package/dist/models/TweetRetweetersResponse.d.ts +3 -2
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -1
- package/dist/models/TweetRetweetersResponse.js +3 -2
- package/dist/models/TweetRetweetersResponse.js.map +1 -1
- package/dist/models/UnfavoriteTweetResponse.d.ts +3 -2
- package/dist/models/UnfavoriteTweetResponse.d.ts.map +1 -1
- package/dist/models/UnfavoriteTweetResponse.js +3 -2
- package/dist/models/UnfavoriteTweetResponse.js.map +1 -1
- package/dist/models/UserHighlightsTweetsResponse.d.ts +3 -2
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -1
- package/dist/models/UserHighlightsTweetsResponse.js +3 -2
- package/dist/models/UserHighlightsTweetsResponse.js.map +1 -1
- package/dist/models/UserResponse.d.ts +3 -2
- package/dist/models/UserResponse.d.ts.map +1 -1
- package/dist/models/UserResponse.js +3 -2
- package/dist/models/UserResponse.js.map +1 -1
- package/dist/models/UserTweetsResponse.d.ts +3 -2
- package/dist/models/UserTweetsResponse.d.ts.map +1 -1
- package/dist/models/UserTweetsResponse.js +3 -2
- package/dist/models/UserTweetsResponse.js.map +1 -1
- package/dist/models/UsersResponse.d.ts +3 -2
- package/dist/models/UsersResponse.d.ts.map +1 -1
- package/dist/models/UsersResponse.js +3 -2
- package/dist/models/UsersResponse.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/models/ModelError.d.ts.map +0 -1
- package/dist/models/ModelError.js.map +0 -1
package/dist/apis/UserListApi.js
CHANGED
|
@@ -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,
|
|
84
|
-
return __generator(this, function (
|
|
85
|
-
switch (
|
|
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] =
|
|
110
|
-
|
|
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] =
|
|
118
|
-
|
|
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 = "
|
|
123
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
122
|
+
_f = "Priority";
|
|
123
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
124
124
|
case 5:
|
|
125
|
-
_e[_f] =
|
|
126
|
-
|
|
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 = "
|
|
131
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
130
|
+
_h = "Referer";
|
|
131
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
132
132
|
case 7:
|
|
133
|
-
_g[_h] =
|
|
134
|
-
|
|
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-
|
|
139
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
138
|
+
_k = "Sec-Fetch-Dest";
|
|
139
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
140
140
|
case 9:
|
|
141
|
-
_j[_k] =
|
|
142
|
-
|
|
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-
|
|
147
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
146
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
147
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
148
148
|
case 11:
|
|
149
|
-
_l[_m] =
|
|
150
|
-
|
|
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 = "
|
|
155
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
154
|
+
_p = "Sec-Fetch-Mode";
|
|
155
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
156
156
|
case 13:
|
|
157
|
-
_o[_p] =
|
|
158
|
-
|
|
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-
|
|
163
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
162
|
+
_r = "x-csrf-token";
|
|
163
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
164
164
|
case 15:
|
|
165
|
-
_q[_r] =
|
|
166
|
-
|
|
165
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
166
|
+
_14.label = 16;
|
|
167
167
|
case 16:
|
|
168
|
-
if (!(this.configuration && this.configuration.
|
|
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
|
|
172
|
-
tokenString =
|
|
179
|
+
case 19:
|
|
180
|
+
tokenString = _14.sent();
|
|
173
181
|
if (tokenString) {
|
|
174
182
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
175
183
|
}
|
|
176
|
-
|
|
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 = "
|
|
189
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
188
|
+
_v = "x-guest-token";
|
|
189
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
190
190
|
case 21:
|
|
191
|
-
_u[_v] =
|
|
192
|
-
|
|
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 = "
|
|
197
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
196
|
+
_x = "Sec-Ch-Ua";
|
|
197
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
198
198
|
case 23:
|
|
199
|
-
_w[_x] =
|
|
200
|
-
|
|
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-
|
|
205
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
204
|
+
_z = "x-client-transaction-id";
|
|
205
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
206
206
|
case 25:
|
|
207
|
-
_y[_z] =
|
|
208
|
-
|
|
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
|
|
213
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
212
|
+
_1 = "x-twitter-active-user";
|
|
213
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
214
214
|
case 27:
|
|
215
|
-
_0[_1] =
|
|
216
|
-
|
|
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 = "
|
|
221
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
220
|
+
_3 = "user-agent";
|
|
221
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
222
222
|
case 29:
|
|
223
|
-
_2[_3] =
|
|
224
|
-
|
|
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 = "
|
|
229
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
228
|
+
_5 = "Accept-Language";
|
|
229
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
230
230
|
case 31:
|
|
231
|
-
_4[_5] =
|
|
232
|
-
|
|
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 = "
|
|
237
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
236
|
+
_7 = "Sec-Fetch-Site";
|
|
237
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
238
238
|
case 33:
|
|
239
|
-
_6[_7] =
|
|
240
|
-
|
|
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 = "
|
|
245
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
244
|
+
_9 = "x-twitter-auth-type";
|
|
245
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
246
246
|
case 35:
|
|
247
|
-
_8[_9] =
|
|
248
|
-
|
|
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 = "
|
|
253
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
252
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
253
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
254
254
|
case 37:
|
|
255
|
-
_10[_11] =
|
|
256
|
-
|
|
257
|
-
case 38:
|
|
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
|
|
264
|
-
response =
|
|
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,
|
|
293
|
-
return __generator(this, function (
|
|
294
|
-
switch (
|
|
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] =
|
|
319
|
-
|
|
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] =
|
|
327
|
-
|
|
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 = "
|
|
332
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
339
|
+
_f = "Priority";
|
|
340
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
333
341
|
case 5:
|
|
334
|
-
_e[_f] =
|
|
335
|
-
|
|
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 = "
|
|
340
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
347
|
+
_h = "Referer";
|
|
348
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
341
349
|
case 7:
|
|
342
|
-
_g[_h] =
|
|
343
|
-
|
|
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-
|
|
348
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
355
|
+
_k = "Sec-Fetch-Dest";
|
|
356
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
349
357
|
case 9:
|
|
350
|
-
_j[_k] =
|
|
351
|
-
|
|
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-
|
|
356
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
363
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
364
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
357
365
|
case 11:
|
|
358
|
-
_l[_m] =
|
|
359
|
-
|
|
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 = "
|
|
364
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
371
|
+
_p = "Sec-Fetch-Mode";
|
|
372
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
365
373
|
case 13:
|
|
366
|
-
_o[_p] =
|
|
367
|
-
|
|
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-
|
|
372
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
379
|
+
_r = "x-csrf-token";
|
|
380
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
373
381
|
case 15:
|
|
374
|
-
_q[_r] =
|
|
375
|
-
|
|
382
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
383
|
+
_14.label = 16;
|
|
376
384
|
case 16:
|
|
377
|
-
if (!(this.configuration && this.configuration.
|
|
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
|
|
381
|
-
tokenString =
|
|
396
|
+
case 19:
|
|
397
|
+
tokenString = _14.sent();
|
|
382
398
|
if (tokenString) {
|
|
383
399
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
384
400
|
}
|
|
385
|
-
|
|
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 = "
|
|
398
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
405
|
+
_v = "x-guest-token";
|
|
406
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
399
407
|
case 21:
|
|
400
|
-
_u[_v] =
|
|
401
|
-
|
|
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 = "
|
|
406
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
413
|
+
_x = "Sec-Ch-Ua";
|
|
414
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
407
415
|
case 23:
|
|
408
|
-
_w[_x] =
|
|
409
|
-
|
|
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-
|
|
414
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
421
|
+
_z = "x-client-transaction-id";
|
|
422
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
415
423
|
case 25:
|
|
416
|
-
_y[_z] =
|
|
417
|
-
|
|
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
|
|
422
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
429
|
+
_1 = "x-twitter-active-user";
|
|
430
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
423
431
|
case 27:
|
|
424
|
-
_0[_1] =
|
|
425
|
-
|
|
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 = "
|
|
430
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
437
|
+
_3 = "user-agent";
|
|
438
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
431
439
|
case 29:
|
|
432
|
-
_2[_3] =
|
|
433
|
-
|
|
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 = "
|
|
438
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
445
|
+
_5 = "Accept-Language";
|
|
446
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
439
447
|
case 31:
|
|
440
|
-
_4[_5] =
|
|
441
|
-
|
|
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 = "
|
|
446
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
453
|
+
_7 = "Sec-Fetch-Site";
|
|
454
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
447
455
|
case 33:
|
|
448
|
-
_6[_7] =
|
|
449
|
-
|
|
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 = "
|
|
454
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
461
|
+
_9 = "x-twitter-auth-type";
|
|
462
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
455
463
|
case 35:
|
|
456
|
-
_8[_9] =
|
|
457
|
-
|
|
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 = "
|
|
462
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
469
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
470
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
463
471
|
case 37:
|
|
464
|
-
_10[_11] =
|
|
465
|
-
|
|
466
|
-
case 38:
|
|
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
|
|
473
|
-
response =
|
|
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,
|
|
502
|
-
return __generator(this, function (
|
|
503
|
-
switch (
|
|
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] =
|
|
528
|
-
|
|
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] =
|
|
536
|
-
|
|
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 = "
|
|
541
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
556
|
+
_f = "Priority";
|
|
557
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
542
558
|
case 5:
|
|
543
|
-
_e[_f] =
|
|
544
|
-
|
|
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 = "
|
|
549
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
564
|
+
_h = "Referer";
|
|
565
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
550
566
|
case 7:
|
|
551
|
-
_g[_h] =
|
|
552
|
-
|
|
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-
|
|
557
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
572
|
+
_k = "Sec-Fetch-Dest";
|
|
573
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
558
574
|
case 9:
|
|
559
|
-
_j[_k] =
|
|
560
|
-
|
|
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-
|
|
565
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
580
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
581
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
566
582
|
case 11:
|
|
567
|
-
_l[_m] =
|
|
568
|
-
|
|
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 = "
|
|
573
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
588
|
+
_p = "Sec-Fetch-Mode";
|
|
589
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
574
590
|
case 13:
|
|
575
|
-
_o[_p] =
|
|
576
|
-
|
|
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-
|
|
581
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
596
|
+
_r = "x-csrf-token";
|
|
597
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
582
598
|
case 15:
|
|
583
|
-
_q[_r] =
|
|
584
|
-
|
|
599
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
600
|
+
_14.label = 16;
|
|
585
601
|
case 16:
|
|
586
|
-
if (!(this.configuration && this.configuration.
|
|
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
|
|
590
|
-
tokenString =
|
|
613
|
+
case 19:
|
|
614
|
+
tokenString = _14.sent();
|
|
591
615
|
if (tokenString) {
|
|
592
616
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
593
617
|
}
|
|
594
|
-
|
|
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 = "
|
|
607
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
622
|
+
_v = "x-guest-token";
|
|
623
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
608
624
|
case 21:
|
|
609
|
-
_u[_v] =
|
|
610
|
-
|
|
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 = "
|
|
615
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
630
|
+
_x = "Sec-Ch-Ua";
|
|
631
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
616
632
|
case 23:
|
|
617
|
-
_w[_x] =
|
|
618
|
-
|
|
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-
|
|
623
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
638
|
+
_z = "x-client-transaction-id";
|
|
639
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
624
640
|
case 25:
|
|
625
|
-
_y[_z] =
|
|
626
|
-
|
|
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
|
|
631
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
646
|
+
_1 = "x-twitter-active-user";
|
|
647
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
632
648
|
case 27:
|
|
633
|
-
_0[_1] =
|
|
634
|
-
|
|
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 = "
|
|
639
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
654
|
+
_3 = "user-agent";
|
|
655
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
640
656
|
case 29:
|
|
641
|
-
_2[_3] =
|
|
642
|
-
|
|
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 = "
|
|
647
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
662
|
+
_5 = "Accept-Language";
|
|
663
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
648
664
|
case 31:
|
|
649
|
-
_4[_5] =
|
|
650
|
-
|
|
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 = "
|
|
655
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
670
|
+
_7 = "Sec-Fetch-Site";
|
|
671
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
656
672
|
case 33:
|
|
657
|
-
_6[_7] =
|
|
658
|
-
|
|
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 = "
|
|
663
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
678
|
+
_9 = "x-twitter-auth-type";
|
|
679
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
664
680
|
case 35:
|
|
665
|
-
_8[_9] =
|
|
666
|
-
|
|
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 = "
|
|
671
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
686
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
687
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
672
688
|
case 37:
|
|
673
|
-
_10[_11] =
|
|
674
|
-
|
|
675
|
-
case 38:
|
|
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
|
|
682
|
-
response =
|
|
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,
|
|
711
|
-
return __generator(this, function (
|
|
712
|
-
switch (
|
|
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] =
|
|
737
|
-
|
|
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] =
|
|
745
|
-
|
|
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 = "
|
|
750
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
773
|
+
_f = "Priority";
|
|
774
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
751
775
|
case 5:
|
|
752
|
-
_e[_f] =
|
|
753
|
-
|
|
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 = "
|
|
758
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
781
|
+
_h = "Referer";
|
|
782
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
759
783
|
case 7:
|
|
760
|
-
_g[_h] =
|
|
761
|
-
|
|
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-
|
|
766
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
789
|
+
_k = "Sec-Fetch-Dest";
|
|
790
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
767
791
|
case 9:
|
|
768
|
-
_j[_k] =
|
|
769
|
-
|
|
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-
|
|
774
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
797
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
798
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
775
799
|
case 11:
|
|
776
|
-
_l[_m] =
|
|
777
|
-
|
|
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 = "
|
|
782
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
805
|
+
_p = "Sec-Fetch-Mode";
|
|
806
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
783
807
|
case 13:
|
|
784
|
-
_o[_p] =
|
|
785
|
-
|
|
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-
|
|
790
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
813
|
+
_r = "x-csrf-token";
|
|
814
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
791
815
|
case 15:
|
|
792
|
-
_q[_r] =
|
|
793
|
-
|
|
816
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
817
|
+
_14.label = 16;
|
|
794
818
|
case 16:
|
|
795
|
-
if (!(this.configuration && this.configuration.
|
|
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
|
|
799
|
-
tokenString =
|
|
830
|
+
case 19:
|
|
831
|
+
tokenString = _14.sent();
|
|
800
832
|
if (tokenString) {
|
|
801
833
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
802
834
|
}
|
|
803
|
-
|
|
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 = "
|
|
816
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
839
|
+
_v = "x-guest-token";
|
|
840
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
817
841
|
case 21:
|
|
818
|
-
_u[_v] =
|
|
819
|
-
|
|
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 = "
|
|
824
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
847
|
+
_x = "Sec-Ch-Ua";
|
|
848
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
825
849
|
case 23:
|
|
826
|
-
_w[_x] =
|
|
827
|
-
|
|
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-
|
|
832
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
855
|
+
_z = "x-client-transaction-id";
|
|
856
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
833
857
|
case 25:
|
|
834
|
-
_y[_z] =
|
|
835
|
-
|
|
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
|
|
840
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
863
|
+
_1 = "x-twitter-active-user";
|
|
864
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
841
865
|
case 27:
|
|
842
|
-
_0[_1] =
|
|
843
|
-
|
|
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 = "
|
|
848
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
871
|
+
_3 = "user-agent";
|
|
872
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
849
873
|
case 29:
|
|
850
|
-
_2[_3] =
|
|
851
|
-
|
|
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 = "
|
|
856
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
879
|
+
_5 = "Accept-Language";
|
|
880
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
857
881
|
case 31:
|
|
858
|
-
_4[_5] =
|
|
859
|
-
|
|
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 = "
|
|
864
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
887
|
+
_7 = "Sec-Fetch-Site";
|
|
888
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
865
889
|
case 33:
|
|
866
|
-
_6[_7] =
|
|
867
|
-
|
|
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 = "
|
|
872
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
895
|
+
_9 = "x-twitter-auth-type";
|
|
896
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
873
897
|
case 35:
|
|
874
|
-
_8[_9] =
|
|
875
|
-
|
|
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 = "
|
|
880
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
903
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
904
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
881
905
|
case 37:
|
|
882
|
-
_10[_11] =
|
|
883
|
-
|
|
884
|
-
case 38:
|
|
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
|
|
891
|
-
response =
|
|
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,
|
|
920
|
-
return __generator(this, function (
|
|
921
|
-
switch (
|
|
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] =
|
|
946
|
-
|
|
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] =
|
|
954
|
-
|
|
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 = "
|
|
959
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
990
|
+
_f = "Priority";
|
|
991
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
960
992
|
case 5:
|
|
961
|
-
_e[_f] =
|
|
962
|
-
|
|
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 = "
|
|
967
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
998
|
+
_h = "Referer";
|
|
999
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
968
1000
|
case 7:
|
|
969
|
-
_g[_h] =
|
|
970
|
-
|
|
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-
|
|
975
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1006
|
+
_k = "Sec-Fetch-Dest";
|
|
1007
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
976
1008
|
case 9:
|
|
977
|
-
_j[_k] =
|
|
978
|
-
|
|
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-
|
|
983
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1014
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1015
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
984
1016
|
case 11:
|
|
985
|
-
_l[_m] =
|
|
986
|
-
|
|
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 = "
|
|
991
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1022
|
+
_p = "Sec-Fetch-Mode";
|
|
1023
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
992
1024
|
case 13:
|
|
993
|
-
_o[_p] =
|
|
994
|
-
|
|
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-
|
|
999
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1030
|
+
_r = "x-csrf-token";
|
|
1031
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1000
1032
|
case 15:
|
|
1001
|
-
_q[_r] =
|
|
1002
|
-
|
|
1033
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
1034
|
+
_14.label = 16;
|
|
1003
1035
|
case 16:
|
|
1004
|
-
if (!(this.configuration && this.configuration.
|
|
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
|
|
1008
|
-
tokenString =
|
|
1047
|
+
case 19:
|
|
1048
|
+
tokenString = _14.sent();
|
|
1009
1049
|
if (tokenString) {
|
|
1010
1050
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1011
1051
|
}
|
|
1012
|
-
|
|
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 = "
|
|
1025
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1056
|
+
_v = "x-guest-token";
|
|
1057
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1026
1058
|
case 21:
|
|
1027
|
-
_u[_v] =
|
|
1028
|
-
|
|
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 = "
|
|
1033
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1064
|
+
_x = "Sec-Ch-Ua";
|
|
1065
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1034
1066
|
case 23:
|
|
1035
|
-
_w[_x] =
|
|
1036
|
-
|
|
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-
|
|
1041
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1072
|
+
_z = "x-client-transaction-id";
|
|
1073
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1042
1074
|
case 25:
|
|
1043
|
-
_y[_z] =
|
|
1044
|
-
|
|
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
|
|
1049
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1080
|
+
_1 = "x-twitter-active-user";
|
|
1081
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1050
1082
|
case 27:
|
|
1051
|
-
_0[_1] =
|
|
1052
|
-
|
|
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 = "
|
|
1057
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1088
|
+
_3 = "user-agent";
|
|
1089
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1058
1090
|
case 29:
|
|
1059
|
-
_2[_3] =
|
|
1060
|
-
|
|
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 = "
|
|
1065
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1096
|
+
_5 = "Accept-Language";
|
|
1097
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1066
1098
|
case 31:
|
|
1067
|
-
_4[_5] =
|
|
1068
|
-
|
|
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 = "
|
|
1073
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1104
|
+
_7 = "Sec-Fetch-Site";
|
|
1105
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1074
1106
|
case 33:
|
|
1075
|
-
_6[_7] =
|
|
1076
|
-
|
|
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 = "
|
|
1081
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1112
|
+
_9 = "x-twitter-auth-type";
|
|
1113
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1082
1114
|
case 35:
|
|
1083
|
-
_8[_9] =
|
|
1084
|
-
|
|
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 = "
|
|
1089
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1120
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
1121
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1090
1122
|
case 37:
|
|
1091
|
-
_10[_11] =
|
|
1092
|
-
|
|
1093
|
-
case 38:
|
|
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
|
|
1100
|
-
response =
|
|
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
|
});
|