twitter-openapi-typescript-generated 0.0.20 → 0.0.21
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 +1 -0
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +100 -94
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.js +47 -47
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.js +282 -282
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.js +517 -517
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.js +94 -94
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.js +235 -235
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.js +47 -47
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.js +94 -94
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.js +94 -94
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.js +47 -47
- package/dist/apis/V20GetApi.js.map +1 -1
- package/package.json +1 -1
package/dist/apis/PostApi.js
CHANGED
|
@@ -80,7 +80,7 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
80
80
|
*/
|
|
81
81
|
PostApi.prototype.postCreateRetweetRaw = 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,
|
|
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, response;
|
|
84
84
|
return __generator(this, function (_10) {
|
|
85
85
|
switch (_10.label) {
|
|
86
86
|
case 0:
|
|
@@ -111,116 +111,116 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
111
111
|
case 4:
|
|
112
112
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
113
113
|
_e = headerParameters;
|
|
114
|
-
_f = "
|
|
115
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
114
|
+
_f = "Priority";
|
|
115
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
116
116
|
case 5:
|
|
117
|
-
_e[_f] = _10.sent(); //
|
|
117
|
+
_e[_f] = _10.sent(); // Priority authentication
|
|
118
118
|
_10.label = 6;
|
|
119
119
|
case 6:
|
|
120
120
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
121
121
|
_g = headerParameters;
|
|
122
|
-
_h = "
|
|
123
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
122
|
+
_h = "Sec-Fetch-Dest";
|
|
123
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
124
124
|
case 7:
|
|
125
|
-
_g[_h] = _10.sent(); //
|
|
125
|
+
_g[_h] = _10.sent(); // SecFetchDest authentication
|
|
126
126
|
_10.label = 8;
|
|
127
127
|
case 8:
|
|
128
128
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
129
129
|
_j = headerParameters;
|
|
130
|
-
_k = "
|
|
131
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
130
|
+
_k = "Referer";
|
|
131
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
132
132
|
case 9:
|
|
133
|
-
_j[_k] = _10.sent(); //
|
|
133
|
+
_j[_k] = _10.sent(); // Referer authentication
|
|
134
134
|
_10.label = 10;
|
|
135
135
|
case 10:
|
|
136
136
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
137
137
|
_l = headerParameters;
|
|
138
|
-
_m = "Sec-
|
|
139
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
138
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
139
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
140
140
|
case 11:
|
|
141
|
-
_l[_m] = _10.sent(); //
|
|
141
|
+
_l[_m] = _10.sent(); // SecChUaPlatform authentication
|
|
142
142
|
_10.label = 12;
|
|
143
143
|
case 12:
|
|
144
144
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
145
145
|
_o = headerParameters;
|
|
146
|
-
_p = "
|
|
147
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
146
|
+
_p = "Sec-Fetch-Mode";
|
|
147
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
148
148
|
case 13:
|
|
149
|
-
_o[_p] = _10.sent(); //
|
|
149
|
+
_o[_p] = _10.sent(); // SecFetchMode authentication
|
|
150
150
|
_10.label = 14;
|
|
151
151
|
case 14:
|
|
152
152
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
153
153
|
_q = headerParameters;
|
|
154
|
-
_r = "x-
|
|
155
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
154
|
+
_r = "x-csrf-token";
|
|
155
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
156
156
|
case 15:
|
|
157
|
-
_q[_r] = _10.sent(); //
|
|
157
|
+
_q[_r] = _10.sent(); // CsrfToken authentication
|
|
158
158
|
_10.label = 16;
|
|
159
159
|
case 16:
|
|
160
|
-
if (!(this.configuration && this.configuration.
|
|
160
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
161
|
+
_s = headerParameters;
|
|
162
|
+
_t = "x-guest-token";
|
|
163
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
164
|
+
case 17:
|
|
165
|
+
_s[_t] = _10.sent(); // GuestToken authentication
|
|
166
|
+
_10.label = 18;
|
|
167
|
+
case 18:
|
|
168
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
161
169
|
token = this.configuration.accessToken;
|
|
162
170
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
163
|
-
case
|
|
171
|
+
case 19:
|
|
164
172
|
tokenString = _10.sent();
|
|
165
173
|
if (tokenString) {
|
|
166
174
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
167
175
|
}
|
|
168
|
-
_10.label = 18;
|
|
169
|
-
case 18:
|
|
170
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
171
|
-
_s = headerParameters;
|
|
172
|
-
_t = "Sec-Ch-Ua";
|
|
173
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
174
|
-
case 19:
|
|
175
|
-
_s[_t] = _10.sent(); // SecChUa authentication
|
|
176
176
|
_10.label = 20;
|
|
177
177
|
case 20:
|
|
178
178
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
179
179
|
_u = headerParameters;
|
|
180
|
-
_v = "
|
|
181
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
180
|
+
_v = "Sec-Ch-Ua";
|
|
181
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
182
182
|
case 21:
|
|
183
|
-
_u[_v] = _10.sent(); //
|
|
183
|
+
_u[_v] = _10.sent(); // SecChUa authentication
|
|
184
184
|
_10.label = 22;
|
|
185
185
|
case 22:
|
|
186
186
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
187
187
|
_w = headerParameters;
|
|
188
|
-
_x = "user
|
|
189
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
188
|
+
_x = "x-twitter-active-user";
|
|
189
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
190
190
|
case 23:
|
|
191
|
-
_w[_x] = _10.sent(); //
|
|
191
|
+
_w[_x] = _10.sent(); // ActiveUser authentication
|
|
192
192
|
_10.label = 24;
|
|
193
193
|
case 24:
|
|
194
194
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
195
195
|
_y = headerParameters;
|
|
196
|
-
_z = "
|
|
197
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
196
|
+
_z = "user-agent";
|
|
197
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
198
198
|
case 25:
|
|
199
|
-
_y[_z] = _10.sent(); //
|
|
199
|
+
_y[_z] = _10.sent(); // UserAgent authentication
|
|
200
200
|
_10.label = 26;
|
|
201
201
|
case 26:
|
|
202
202
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
203
203
|
_0 = headerParameters;
|
|
204
|
-
_1 = "
|
|
205
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
204
|
+
_1 = "Accept-Language";
|
|
205
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
206
206
|
case 27:
|
|
207
|
-
_0[_1] = _10.sent(); //
|
|
207
|
+
_0[_1] = _10.sent(); // AcceptLanguage authentication
|
|
208
208
|
_10.label = 28;
|
|
209
209
|
case 28:
|
|
210
210
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
211
211
|
_2 = headerParameters;
|
|
212
|
-
_3 = "
|
|
213
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
212
|
+
_3 = "Sec-Fetch-Site";
|
|
213
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
214
214
|
case 29:
|
|
215
|
-
_2[_3] = _10.sent(); //
|
|
215
|
+
_2[_3] = _10.sent(); // SecFetchSite authentication
|
|
216
216
|
_10.label = 30;
|
|
217
217
|
case 30:
|
|
218
218
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
219
219
|
_4 = headerParameters;
|
|
220
|
-
_5 = "
|
|
221
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
220
|
+
_5 = "x-twitter-auth-type";
|
|
221
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
222
222
|
case 31:
|
|
223
|
-
_4[_5] = _10.sent(); //
|
|
223
|
+
_4[_5] = _10.sent(); // AuthType authentication
|
|
224
224
|
_10.label = 32;
|
|
225
225
|
case 32:
|
|
226
226
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
@@ -274,7 +274,7 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
274
274
|
*/
|
|
275
275
|
PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
|
|
276
276
|
return __awaiter(this, void 0, void 0, function () {
|
|
277
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
277
|
+
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, response;
|
|
278
278
|
return __generator(this, function (_10) {
|
|
279
279
|
switch (_10.label) {
|
|
280
280
|
case 0:
|
|
@@ -305,116 +305,116 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
305
305
|
case 4:
|
|
306
306
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
307
307
|
_e = headerParameters;
|
|
308
|
-
_f = "
|
|
309
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
308
|
+
_f = "Priority";
|
|
309
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
310
310
|
case 5:
|
|
311
|
-
_e[_f] = _10.sent(); //
|
|
311
|
+
_e[_f] = _10.sent(); // Priority authentication
|
|
312
312
|
_10.label = 6;
|
|
313
313
|
case 6:
|
|
314
314
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
315
315
|
_g = headerParameters;
|
|
316
|
-
_h = "
|
|
317
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
316
|
+
_h = "Sec-Fetch-Dest";
|
|
317
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
318
318
|
case 7:
|
|
319
|
-
_g[_h] = _10.sent(); //
|
|
319
|
+
_g[_h] = _10.sent(); // SecFetchDest authentication
|
|
320
320
|
_10.label = 8;
|
|
321
321
|
case 8:
|
|
322
322
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
323
323
|
_j = headerParameters;
|
|
324
|
-
_k = "
|
|
325
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
324
|
+
_k = "Referer";
|
|
325
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
326
326
|
case 9:
|
|
327
|
-
_j[_k] = _10.sent(); //
|
|
327
|
+
_j[_k] = _10.sent(); // Referer authentication
|
|
328
328
|
_10.label = 10;
|
|
329
329
|
case 10:
|
|
330
330
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
331
331
|
_l = headerParameters;
|
|
332
|
-
_m = "Sec-
|
|
333
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
332
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
333
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
334
334
|
case 11:
|
|
335
|
-
_l[_m] = _10.sent(); //
|
|
335
|
+
_l[_m] = _10.sent(); // SecChUaPlatform authentication
|
|
336
336
|
_10.label = 12;
|
|
337
337
|
case 12:
|
|
338
338
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
339
339
|
_o = headerParameters;
|
|
340
|
-
_p = "
|
|
341
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
340
|
+
_p = "Sec-Fetch-Mode";
|
|
341
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
342
342
|
case 13:
|
|
343
|
-
_o[_p] = _10.sent(); //
|
|
343
|
+
_o[_p] = _10.sent(); // SecFetchMode authentication
|
|
344
344
|
_10.label = 14;
|
|
345
345
|
case 14:
|
|
346
346
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
347
347
|
_q = headerParameters;
|
|
348
|
-
_r = "x-
|
|
349
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
348
|
+
_r = "x-csrf-token";
|
|
349
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
350
350
|
case 15:
|
|
351
|
-
_q[_r] = _10.sent(); //
|
|
351
|
+
_q[_r] = _10.sent(); // CsrfToken authentication
|
|
352
352
|
_10.label = 16;
|
|
353
353
|
case 16:
|
|
354
|
-
if (!(this.configuration && this.configuration.
|
|
354
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
355
|
+
_s = headerParameters;
|
|
356
|
+
_t = "x-guest-token";
|
|
357
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
358
|
+
case 17:
|
|
359
|
+
_s[_t] = _10.sent(); // GuestToken authentication
|
|
360
|
+
_10.label = 18;
|
|
361
|
+
case 18:
|
|
362
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
355
363
|
token = this.configuration.accessToken;
|
|
356
364
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
357
|
-
case
|
|
365
|
+
case 19:
|
|
358
366
|
tokenString = _10.sent();
|
|
359
367
|
if (tokenString) {
|
|
360
368
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
361
369
|
}
|
|
362
|
-
_10.label = 18;
|
|
363
|
-
case 18:
|
|
364
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
365
|
-
_s = headerParameters;
|
|
366
|
-
_t = "Sec-Ch-Ua";
|
|
367
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
368
|
-
case 19:
|
|
369
|
-
_s[_t] = _10.sent(); // SecChUa authentication
|
|
370
370
|
_10.label = 20;
|
|
371
371
|
case 20:
|
|
372
372
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
373
373
|
_u = headerParameters;
|
|
374
|
-
_v = "
|
|
375
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
374
|
+
_v = "Sec-Ch-Ua";
|
|
375
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
376
376
|
case 21:
|
|
377
|
-
_u[_v] = _10.sent(); //
|
|
377
|
+
_u[_v] = _10.sent(); // SecChUa authentication
|
|
378
378
|
_10.label = 22;
|
|
379
379
|
case 22:
|
|
380
380
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
381
381
|
_w = headerParameters;
|
|
382
|
-
_x = "user
|
|
383
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
382
|
+
_x = "x-twitter-active-user";
|
|
383
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
384
384
|
case 23:
|
|
385
|
-
_w[_x] = _10.sent(); //
|
|
385
|
+
_w[_x] = _10.sent(); // ActiveUser authentication
|
|
386
386
|
_10.label = 24;
|
|
387
387
|
case 24:
|
|
388
388
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
389
389
|
_y = headerParameters;
|
|
390
|
-
_z = "
|
|
391
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
390
|
+
_z = "user-agent";
|
|
391
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
392
392
|
case 25:
|
|
393
|
-
_y[_z] = _10.sent(); //
|
|
393
|
+
_y[_z] = _10.sent(); // UserAgent authentication
|
|
394
394
|
_10.label = 26;
|
|
395
395
|
case 26:
|
|
396
396
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
397
397
|
_0 = headerParameters;
|
|
398
|
-
_1 = "
|
|
399
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
398
|
+
_1 = "Accept-Language";
|
|
399
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
400
400
|
case 27:
|
|
401
|
-
_0[_1] = _10.sent(); //
|
|
401
|
+
_0[_1] = _10.sent(); // AcceptLanguage authentication
|
|
402
402
|
_10.label = 28;
|
|
403
403
|
case 28:
|
|
404
404
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
405
405
|
_2 = headerParameters;
|
|
406
|
-
_3 = "
|
|
407
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
406
|
+
_3 = "Sec-Fetch-Site";
|
|
407
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
408
408
|
case 29:
|
|
409
|
-
_2[_3] = _10.sent(); //
|
|
409
|
+
_2[_3] = _10.sent(); // SecFetchSite authentication
|
|
410
410
|
_10.label = 30;
|
|
411
411
|
case 30:
|
|
412
412
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
413
413
|
_4 = headerParameters;
|
|
414
|
-
_5 = "
|
|
415
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
414
|
+
_5 = "x-twitter-auth-type";
|
|
415
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
416
416
|
case 31:
|
|
417
|
-
_4[_5] = _10.sent(); //
|
|
417
|
+
_4[_5] = _10.sent(); // AuthType authentication
|
|
418
418
|
_10.label = 32;
|
|
419
419
|
case 32:
|
|
420
420
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
@@ -468,7 +468,7 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
468
468
|
*/
|
|
469
469
|
PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
|
|
470
470
|
return __awaiter(this, void 0, void 0, function () {
|
|
471
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
471
|
+
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, response;
|
|
472
472
|
return __generator(this, function (_10) {
|
|
473
473
|
switch (_10.label) {
|
|
474
474
|
case 0:
|
|
@@ -499,116 +499,116 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
499
499
|
case 4:
|
|
500
500
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
501
501
|
_e = headerParameters;
|
|
502
|
-
_f = "
|
|
503
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
502
|
+
_f = "Priority";
|
|
503
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
504
504
|
case 5:
|
|
505
|
-
_e[_f] = _10.sent(); //
|
|
505
|
+
_e[_f] = _10.sent(); // Priority authentication
|
|
506
506
|
_10.label = 6;
|
|
507
507
|
case 6:
|
|
508
508
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
509
509
|
_g = headerParameters;
|
|
510
|
-
_h = "
|
|
511
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
510
|
+
_h = "Sec-Fetch-Dest";
|
|
511
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
512
512
|
case 7:
|
|
513
|
-
_g[_h] = _10.sent(); //
|
|
513
|
+
_g[_h] = _10.sent(); // SecFetchDest authentication
|
|
514
514
|
_10.label = 8;
|
|
515
515
|
case 8:
|
|
516
516
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
517
517
|
_j = headerParameters;
|
|
518
|
-
_k = "
|
|
519
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
518
|
+
_k = "Referer";
|
|
519
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
520
520
|
case 9:
|
|
521
|
-
_j[_k] = _10.sent(); //
|
|
521
|
+
_j[_k] = _10.sent(); // Referer authentication
|
|
522
522
|
_10.label = 10;
|
|
523
523
|
case 10:
|
|
524
524
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
525
525
|
_l = headerParameters;
|
|
526
|
-
_m = "Sec-
|
|
527
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
526
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
527
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
528
528
|
case 11:
|
|
529
|
-
_l[_m] = _10.sent(); //
|
|
529
|
+
_l[_m] = _10.sent(); // SecChUaPlatform authentication
|
|
530
530
|
_10.label = 12;
|
|
531
531
|
case 12:
|
|
532
532
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
533
533
|
_o = headerParameters;
|
|
534
|
-
_p = "
|
|
535
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
534
|
+
_p = "Sec-Fetch-Mode";
|
|
535
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
536
536
|
case 13:
|
|
537
|
-
_o[_p] = _10.sent(); //
|
|
537
|
+
_o[_p] = _10.sent(); // SecFetchMode authentication
|
|
538
538
|
_10.label = 14;
|
|
539
539
|
case 14:
|
|
540
540
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
541
541
|
_q = headerParameters;
|
|
542
|
-
_r = "x-
|
|
543
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
542
|
+
_r = "x-csrf-token";
|
|
543
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
544
544
|
case 15:
|
|
545
|
-
_q[_r] = _10.sent(); //
|
|
545
|
+
_q[_r] = _10.sent(); // CsrfToken authentication
|
|
546
546
|
_10.label = 16;
|
|
547
547
|
case 16:
|
|
548
|
-
if (!(this.configuration && this.configuration.
|
|
548
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
549
|
+
_s = headerParameters;
|
|
550
|
+
_t = "x-guest-token";
|
|
551
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
552
|
+
case 17:
|
|
553
|
+
_s[_t] = _10.sent(); // GuestToken authentication
|
|
554
|
+
_10.label = 18;
|
|
555
|
+
case 18:
|
|
556
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
549
557
|
token = this.configuration.accessToken;
|
|
550
558
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
551
|
-
case
|
|
559
|
+
case 19:
|
|
552
560
|
tokenString = _10.sent();
|
|
553
561
|
if (tokenString) {
|
|
554
562
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
555
563
|
}
|
|
556
|
-
_10.label = 18;
|
|
557
|
-
case 18:
|
|
558
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
559
|
-
_s = headerParameters;
|
|
560
|
-
_t = "Sec-Ch-Ua";
|
|
561
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
562
|
-
case 19:
|
|
563
|
-
_s[_t] = _10.sent(); // SecChUa authentication
|
|
564
564
|
_10.label = 20;
|
|
565
565
|
case 20:
|
|
566
566
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
567
567
|
_u = headerParameters;
|
|
568
|
-
_v = "
|
|
569
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
568
|
+
_v = "Sec-Ch-Ua";
|
|
569
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
570
570
|
case 21:
|
|
571
|
-
_u[_v] = _10.sent(); //
|
|
571
|
+
_u[_v] = _10.sent(); // SecChUa authentication
|
|
572
572
|
_10.label = 22;
|
|
573
573
|
case 22:
|
|
574
574
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
575
575
|
_w = headerParameters;
|
|
576
|
-
_x = "user
|
|
577
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
576
|
+
_x = "x-twitter-active-user";
|
|
577
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
578
578
|
case 23:
|
|
579
|
-
_w[_x] = _10.sent(); //
|
|
579
|
+
_w[_x] = _10.sent(); // ActiveUser authentication
|
|
580
580
|
_10.label = 24;
|
|
581
581
|
case 24:
|
|
582
582
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
583
583
|
_y = headerParameters;
|
|
584
|
-
_z = "
|
|
585
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
584
|
+
_z = "user-agent";
|
|
585
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
586
586
|
case 25:
|
|
587
|
-
_y[_z] = _10.sent(); //
|
|
587
|
+
_y[_z] = _10.sent(); // UserAgent authentication
|
|
588
588
|
_10.label = 26;
|
|
589
589
|
case 26:
|
|
590
590
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
591
591
|
_0 = headerParameters;
|
|
592
|
-
_1 = "
|
|
593
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
592
|
+
_1 = "Accept-Language";
|
|
593
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
594
594
|
case 27:
|
|
595
|
-
_0[_1] = _10.sent(); //
|
|
595
|
+
_0[_1] = _10.sent(); // AcceptLanguage authentication
|
|
596
596
|
_10.label = 28;
|
|
597
597
|
case 28:
|
|
598
598
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
599
599
|
_2 = headerParameters;
|
|
600
|
-
_3 = "
|
|
601
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
600
|
+
_3 = "Sec-Fetch-Site";
|
|
601
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
602
602
|
case 29:
|
|
603
|
-
_2[_3] = _10.sent(); //
|
|
603
|
+
_2[_3] = _10.sent(); // SecFetchSite authentication
|
|
604
604
|
_10.label = 30;
|
|
605
605
|
case 30:
|
|
606
606
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
607
607
|
_4 = headerParameters;
|
|
608
|
-
_5 = "
|
|
609
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
608
|
+
_5 = "x-twitter-auth-type";
|
|
609
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
610
610
|
case 31:
|
|
611
|
-
_4[_5] = _10.sent(); //
|
|
611
|
+
_4[_5] = _10.sent(); // AuthType authentication
|
|
612
612
|
_10.label = 32;
|
|
613
613
|
case 32:
|
|
614
614
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
@@ -662,7 +662,7 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
662
662
|
*/
|
|
663
663
|
PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
|
|
664
664
|
return __awaiter(this, void 0, void 0, function () {
|
|
665
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
665
|
+
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, response;
|
|
666
666
|
return __generator(this, function (_10) {
|
|
667
667
|
switch (_10.label) {
|
|
668
668
|
case 0:
|
|
@@ -693,116 +693,116 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
693
693
|
case 4:
|
|
694
694
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
695
695
|
_e = headerParameters;
|
|
696
|
-
_f = "
|
|
697
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
696
|
+
_f = "Priority";
|
|
697
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
698
698
|
case 5:
|
|
699
|
-
_e[_f] = _10.sent(); //
|
|
699
|
+
_e[_f] = _10.sent(); // Priority authentication
|
|
700
700
|
_10.label = 6;
|
|
701
701
|
case 6:
|
|
702
702
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
703
703
|
_g = headerParameters;
|
|
704
|
-
_h = "
|
|
705
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
704
|
+
_h = "Sec-Fetch-Dest";
|
|
705
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
706
706
|
case 7:
|
|
707
|
-
_g[_h] = _10.sent(); //
|
|
707
|
+
_g[_h] = _10.sent(); // SecFetchDest authentication
|
|
708
708
|
_10.label = 8;
|
|
709
709
|
case 8:
|
|
710
710
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
711
711
|
_j = headerParameters;
|
|
712
|
-
_k = "
|
|
713
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
712
|
+
_k = "Referer";
|
|
713
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
714
714
|
case 9:
|
|
715
|
-
_j[_k] = _10.sent(); //
|
|
715
|
+
_j[_k] = _10.sent(); // Referer authentication
|
|
716
716
|
_10.label = 10;
|
|
717
717
|
case 10:
|
|
718
718
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
719
719
|
_l = headerParameters;
|
|
720
|
-
_m = "Sec-
|
|
721
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
720
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
721
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
722
722
|
case 11:
|
|
723
|
-
_l[_m] = _10.sent(); //
|
|
723
|
+
_l[_m] = _10.sent(); // SecChUaPlatform authentication
|
|
724
724
|
_10.label = 12;
|
|
725
725
|
case 12:
|
|
726
726
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
727
727
|
_o = headerParameters;
|
|
728
|
-
_p = "
|
|
729
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
728
|
+
_p = "Sec-Fetch-Mode";
|
|
729
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
730
730
|
case 13:
|
|
731
|
-
_o[_p] = _10.sent(); //
|
|
731
|
+
_o[_p] = _10.sent(); // SecFetchMode authentication
|
|
732
732
|
_10.label = 14;
|
|
733
733
|
case 14:
|
|
734
734
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
735
735
|
_q = headerParameters;
|
|
736
|
-
_r = "x-
|
|
737
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
736
|
+
_r = "x-csrf-token";
|
|
737
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
738
738
|
case 15:
|
|
739
|
-
_q[_r] = _10.sent(); //
|
|
739
|
+
_q[_r] = _10.sent(); // CsrfToken authentication
|
|
740
740
|
_10.label = 16;
|
|
741
741
|
case 16:
|
|
742
|
-
if (!(this.configuration && this.configuration.
|
|
742
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
743
|
+
_s = headerParameters;
|
|
744
|
+
_t = "x-guest-token";
|
|
745
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
746
|
+
case 17:
|
|
747
|
+
_s[_t] = _10.sent(); // GuestToken authentication
|
|
748
|
+
_10.label = 18;
|
|
749
|
+
case 18:
|
|
750
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
743
751
|
token = this.configuration.accessToken;
|
|
744
752
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
745
|
-
case
|
|
753
|
+
case 19:
|
|
746
754
|
tokenString = _10.sent();
|
|
747
755
|
if (tokenString) {
|
|
748
756
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
749
757
|
}
|
|
750
|
-
_10.label = 18;
|
|
751
|
-
case 18:
|
|
752
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
753
|
-
_s = headerParameters;
|
|
754
|
-
_t = "Sec-Ch-Ua";
|
|
755
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
756
|
-
case 19:
|
|
757
|
-
_s[_t] = _10.sent(); // SecChUa authentication
|
|
758
758
|
_10.label = 20;
|
|
759
759
|
case 20:
|
|
760
760
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
761
761
|
_u = headerParameters;
|
|
762
|
-
_v = "
|
|
763
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
762
|
+
_v = "Sec-Ch-Ua";
|
|
763
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
764
764
|
case 21:
|
|
765
|
-
_u[_v] = _10.sent(); //
|
|
765
|
+
_u[_v] = _10.sent(); // SecChUa authentication
|
|
766
766
|
_10.label = 22;
|
|
767
767
|
case 22:
|
|
768
768
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
769
769
|
_w = headerParameters;
|
|
770
|
-
_x = "user
|
|
771
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
770
|
+
_x = "x-twitter-active-user";
|
|
771
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
772
772
|
case 23:
|
|
773
|
-
_w[_x] = _10.sent(); //
|
|
773
|
+
_w[_x] = _10.sent(); // ActiveUser authentication
|
|
774
774
|
_10.label = 24;
|
|
775
775
|
case 24:
|
|
776
776
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
777
777
|
_y = headerParameters;
|
|
778
|
-
_z = "
|
|
779
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
778
|
+
_z = "user-agent";
|
|
779
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
780
780
|
case 25:
|
|
781
|
-
_y[_z] = _10.sent(); //
|
|
781
|
+
_y[_z] = _10.sent(); // UserAgent authentication
|
|
782
782
|
_10.label = 26;
|
|
783
783
|
case 26:
|
|
784
784
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
785
785
|
_0 = headerParameters;
|
|
786
|
-
_1 = "
|
|
787
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
786
|
+
_1 = "Accept-Language";
|
|
787
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
788
788
|
case 27:
|
|
789
|
-
_0[_1] = _10.sent(); //
|
|
789
|
+
_0[_1] = _10.sent(); // AcceptLanguage authentication
|
|
790
790
|
_10.label = 28;
|
|
791
791
|
case 28:
|
|
792
792
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
793
793
|
_2 = headerParameters;
|
|
794
|
-
_3 = "
|
|
795
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
794
|
+
_3 = "Sec-Fetch-Site";
|
|
795
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
796
796
|
case 29:
|
|
797
|
-
_2[_3] = _10.sent(); //
|
|
797
|
+
_2[_3] = _10.sent(); // SecFetchSite authentication
|
|
798
798
|
_10.label = 30;
|
|
799
799
|
case 30:
|
|
800
800
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
801
801
|
_4 = headerParameters;
|
|
802
|
-
_5 = "
|
|
803
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
802
|
+
_5 = "x-twitter-auth-type";
|
|
803
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
804
804
|
case 31:
|
|
805
|
-
_4[_5] = _10.sent(); //
|
|
805
|
+
_4[_5] = _10.sent(); // AuthType authentication
|
|
806
806
|
_10.label = 32;
|
|
807
807
|
case 32:
|
|
808
808
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
@@ -856,7 +856,7 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
856
856
|
*/
|
|
857
857
|
PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
858
858
|
return __awaiter(this, void 0, void 0, function () {
|
|
859
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
859
|
+
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, response;
|
|
860
860
|
return __generator(this, function (_10) {
|
|
861
861
|
switch (_10.label) {
|
|
862
862
|
case 0:
|
|
@@ -887,116 +887,116 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
887
887
|
case 4:
|
|
888
888
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
889
889
|
_e = headerParameters;
|
|
890
|
-
_f = "
|
|
891
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
890
|
+
_f = "Priority";
|
|
891
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
892
892
|
case 5:
|
|
893
|
-
_e[_f] = _10.sent(); //
|
|
893
|
+
_e[_f] = _10.sent(); // Priority authentication
|
|
894
894
|
_10.label = 6;
|
|
895
895
|
case 6:
|
|
896
896
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
897
897
|
_g = headerParameters;
|
|
898
|
-
_h = "
|
|
899
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
898
|
+
_h = "Sec-Fetch-Dest";
|
|
899
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
900
900
|
case 7:
|
|
901
|
-
_g[_h] = _10.sent(); //
|
|
901
|
+
_g[_h] = _10.sent(); // SecFetchDest authentication
|
|
902
902
|
_10.label = 8;
|
|
903
903
|
case 8:
|
|
904
904
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
905
905
|
_j = headerParameters;
|
|
906
|
-
_k = "
|
|
907
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
906
|
+
_k = "Referer";
|
|
907
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
908
908
|
case 9:
|
|
909
|
-
_j[_k] = _10.sent(); //
|
|
909
|
+
_j[_k] = _10.sent(); // Referer authentication
|
|
910
910
|
_10.label = 10;
|
|
911
911
|
case 10:
|
|
912
912
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
913
913
|
_l = headerParameters;
|
|
914
|
-
_m = "Sec-
|
|
915
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
914
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
915
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
916
916
|
case 11:
|
|
917
|
-
_l[_m] = _10.sent(); //
|
|
917
|
+
_l[_m] = _10.sent(); // SecChUaPlatform authentication
|
|
918
918
|
_10.label = 12;
|
|
919
919
|
case 12:
|
|
920
920
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
921
921
|
_o = headerParameters;
|
|
922
|
-
_p = "
|
|
923
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
922
|
+
_p = "Sec-Fetch-Mode";
|
|
923
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
924
924
|
case 13:
|
|
925
|
-
_o[_p] = _10.sent(); //
|
|
925
|
+
_o[_p] = _10.sent(); // SecFetchMode authentication
|
|
926
926
|
_10.label = 14;
|
|
927
927
|
case 14:
|
|
928
928
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
929
929
|
_q = headerParameters;
|
|
930
|
-
_r = "x-
|
|
931
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
930
|
+
_r = "x-csrf-token";
|
|
931
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
932
932
|
case 15:
|
|
933
|
-
_q[_r] = _10.sent(); //
|
|
933
|
+
_q[_r] = _10.sent(); // CsrfToken authentication
|
|
934
934
|
_10.label = 16;
|
|
935
935
|
case 16:
|
|
936
|
-
if (!(this.configuration && this.configuration.
|
|
936
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
937
|
+
_s = headerParameters;
|
|
938
|
+
_t = "x-guest-token";
|
|
939
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
940
|
+
case 17:
|
|
941
|
+
_s[_t] = _10.sent(); // GuestToken authentication
|
|
942
|
+
_10.label = 18;
|
|
943
|
+
case 18:
|
|
944
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
937
945
|
token = this.configuration.accessToken;
|
|
938
946
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
939
|
-
case
|
|
947
|
+
case 19:
|
|
940
948
|
tokenString = _10.sent();
|
|
941
949
|
if (tokenString) {
|
|
942
950
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
943
951
|
}
|
|
944
|
-
_10.label = 18;
|
|
945
|
-
case 18:
|
|
946
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
947
|
-
_s = headerParameters;
|
|
948
|
-
_t = "Sec-Ch-Ua";
|
|
949
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
950
|
-
case 19:
|
|
951
|
-
_s[_t] = _10.sent(); // SecChUa authentication
|
|
952
952
|
_10.label = 20;
|
|
953
953
|
case 20:
|
|
954
954
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
955
955
|
_u = headerParameters;
|
|
956
|
-
_v = "
|
|
957
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
956
|
+
_v = "Sec-Ch-Ua";
|
|
957
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
958
958
|
case 21:
|
|
959
|
-
_u[_v] = _10.sent(); //
|
|
959
|
+
_u[_v] = _10.sent(); // SecChUa authentication
|
|
960
960
|
_10.label = 22;
|
|
961
961
|
case 22:
|
|
962
962
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
963
963
|
_w = headerParameters;
|
|
964
|
-
_x = "user
|
|
965
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
964
|
+
_x = "x-twitter-active-user";
|
|
965
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
966
966
|
case 23:
|
|
967
|
-
_w[_x] = _10.sent(); //
|
|
967
|
+
_w[_x] = _10.sent(); // ActiveUser authentication
|
|
968
968
|
_10.label = 24;
|
|
969
969
|
case 24:
|
|
970
970
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
971
971
|
_y = headerParameters;
|
|
972
|
-
_z = "
|
|
973
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
972
|
+
_z = "user-agent";
|
|
973
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
974
974
|
case 25:
|
|
975
|
-
_y[_z] = _10.sent(); //
|
|
975
|
+
_y[_z] = _10.sent(); // UserAgent authentication
|
|
976
976
|
_10.label = 26;
|
|
977
977
|
case 26:
|
|
978
978
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
979
979
|
_0 = headerParameters;
|
|
980
|
-
_1 = "
|
|
981
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
980
|
+
_1 = "Accept-Language";
|
|
981
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
982
982
|
case 27:
|
|
983
|
-
_0[_1] = _10.sent(); //
|
|
983
|
+
_0[_1] = _10.sent(); // AcceptLanguage authentication
|
|
984
984
|
_10.label = 28;
|
|
985
985
|
case 28:
|
|
986
986
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
987
987
|
_2 = headerParameters;
|
|
988
|
-
_3 = "
|
|
989
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
988
|
+
_3 = "Sec-Fetch-Site";
|
|
989
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
990
990
|
case 29:
|
|
991
|
-
_2[_3] = _10.sent(); //
|
|
991
|
+
_2[_3] = _10.sent(); // SecFetchSite authentication
|
|
992
992
|
_10.label = 30;
|
|
993
993
|
case 30:
|
|
994
994
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
995
995
|
_4 = headerParameters;
|
|
996
|
-
_5 = "
|
|
997
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
996
|
+
_5 = "x-twitter-auth-type";
|
|
997
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
998
998
|
case 31:
|
|
999
|
-
_4[_5] = _10.sent(); //
|
|
999
|
+
_4[_5] = _10.sent(); // AuthType authentication
|
|
1000
1000
|
_10.label = 32;
|
|
1001
1001
|
case 32:
|
|
1002
1002
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
@@ -1050,7 +1050,7 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1050
1050
|
*/
|
|
1051
1051
|
PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
1052
1052
|
return __awaiter(this, void 0, void 0, function () {
|
|
1053
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1053
|
+
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, response;
|
|
1054
1054
|
return __generator(this, function (_10) {
|
|
1055
1055
|
switch (_10.label) {
|
|
1056
1056
|
case 0:
|
|
@@ -1081,116 +1081,116 @@ var PostApi = /** @class */ (function (_super) {
|
|
|
1081
1081
|
case 4:
|
|
1082
1082
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1083
1083
|
_e = headerParameters;
|
|
1084
|
-
_f = "
|
|
1085
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1084
|
+
_f = "Priority";
|
|
1085
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
1086
1086
|
case 5:
|
|
1087
|
-
_e[_f] = _10.sent(); //
|
|
1087
|
+
_e[_f] = _10.sent(); // Priority authentication
|
|
1088
1088
|
_10.label = 6;
|
|
1089
1089
|
case 6:
|
|
1090
1090
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1091
1091
|
_g = headerParameters;
|
|
1092
|
-
_h = "
|
|
1093
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1092
|
+
_h = "Sec-Fetch-Dest";
|
|
1093
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1094
1094
|
case 7:
|
|
1095
|
-
_g[_h] = _10.sent(); //
|
|
1095
|
+
_g[_h] = _10.sent(); // SecFetchDest authentication
|
|
1096
1096
|
_10.label = 8;
|
|
1097
1097
|
case 8:
|
|
1098
1098
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1099
1099
|
_j = headerParameters;
|
|
1100
|
-
_k = "
|
|
1101
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1100
|
+
_k = "Referer";
|
|
1101
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1102
1102
|
case 9:
|
|
1103
|
-
_j[_k] = _10.sent(); //
|
|
1103
|
+
_j[_k] = _10.sent(); // Referer authentication
|
|
1104
1104
|
_10.label = 10;
|
|
1105
1105
|
case 10:
|
|
1106
1106
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1107
1107
|
_l = headerParameters;
|
|
1108
|
-
_m = "Sec-
|
|
1109
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1108
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1109
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1110
1110
|
case 11:
|
|
1111
|
-
_l[_m] = _10.sent(); //
|
|
1111
|
+
_l[_m] = _10.sent(); // SecChUaPlatform authentication
|
|
1112
1112
|
_10.label = 12;
|
|
1113
1113
|
case 12:
|
|
1114
1114
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1115
1115
|
_o = headerParameters;
|
|
1116
|
-
_p = "
|
|
1117
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1116
|
+
_p = "Sec-Fetch-Mode";
|
|
1117
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1118
1118
|
case 13:
|
|
1119
|
-
_o[_p] = _10.sent(); //
|
|
1119
|
+
_o[_p] = _10.sent(); // SecFetchMode authentication
|
|
1120
1120
|
_10.label = 14;
|
|
1121
1121
|
case 14:
|
|
1122
1122
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1123
1123
|
_q = headerParameters;
|
|
1124
|
-
_r = "x-
|
|
1125
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1124
|
+
_r = "x-csrf-token";
|
|
1125
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1126
1126
|
case 15:
|
|
1127
|
-
_q[_r] = _10.sent(); //
|
|
1127
|
+
_q[_r] = _10.sent(); // CsrfToken authentication
|
|
1128
1128
|
_10.label = 16;
|
|
1129
1129
|
case 16:
|
|
1130
|
-
if (!(this.configuration && this.configuration.
|
|
1130
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
1131
|
+
_s = headerParameters;
|
|
1132
|
+
_t = "x-guest-token";
|
|
1133
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1134
|
+
case 17:
|
|
1135
|
+
_s[_t] = _10.sent(); // GuestToken authentication
|
|
1136
|
+
_10.label = 18;
|
|
1137
|
+
case 18:
|
|
1138
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1131
1139
|
token = this.configuration.accessToken;
|
|
1132
1140
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1133
|
-
case
|
|
1141
|
+
case 19:
|
|
1134
1142
|
tokenString = _10.sent();
|
|
1135
1143
|
if (tokenString) {
|
|
1136
1144
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1137
1145
|
}
|
|
1138
|
-
_10.label = 18;
|
|
1139
|
-
case 18:
|
|
1140
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1141
|
-
_s = headerParameters;
|
|
1142
|
-
_t = "Sec-Ch-Ua";
|
|
1143
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1144
|
-
case 19:
|
|
1145
|
-
_s[_t] = _10.sent(); // SecChUa authentication
|
|
1146
1146
|
_10.label = 20;
|
|
1147
1147
|
case 20:
|
|
1148
1148
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1149
1149
|
_u = headerParameters;
|
|
1150
|
-
_v = "
|
|
1151
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1150
|
+
_v = "Sec-Ch-Ua";
|
|
1151
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1152
1152
|
case 21:
|
|
1153
|
-
_u[_v] = _10.sent(); //
|
|
1153
|
+
_u[_v] = _10.sent(); // SecChUa authentication
|
|
1154
1154
|
_10.label = 22;
|
|
1155
1155
|
case 22:
|
|
1156
1156
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1157
1157
|
_w = headerParameters;
|
|
1158
|
-
_x = "user
|
|
1159
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1158
|
+
_x = "x-twitter-active-user";
|
|
1159
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1160
1160
|
case 23:
|
|
1161
|
-
_w[_x] = _10.sent(); //
|
|
1161
|
+
_w[_x] = _10.sent(); // ActiveUser authentication
|
|
1162
1162
|
_10.label = 24;
|
|
1163
1163
|
case 24:
|
|
1164
1164
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1165
1165
|
_y = headerParameters;
|
|
1166
|
-
_z = "
|
|
1167
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1166
|
+
_z = "user-agent";
|
|
1167
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1168
1168
|
case 25:
|
|
1169
|
-
_y[_z] = _10.sent(); //
|
|
1169
|
+
_y[_z] = _10.sent(); // UserAgent authentication
|
|
1170
1170
|
_10.label = 26;
|
|
1171
1171
|
case 26:
|
|
1172
1172
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1173
1173
|
_0 = headerParameters;
|
|
1174
|
-
_1 = "
|
|
1175
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1174
|
+
_1 = "Accept-Language";
|
|
1175
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1176
1176
|
case 27:
|
|
1177
|
-
_0[_1] = _10.sent(); //
|
|
1177
|
+
_0[_1] = _10.sent(); // AcceptLanguage authentication
|
|
1178
1178
|
_10.label = 28;
|
|
1179
1179
|
case 28:
|
|
1180
1180
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1181
1181
|
_2 = headerParameters;
|
|
1182
|
-
_3 = "
|
|
1183
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1182
|
+
_3 = "Sec-Fetch-Site";
|
|
1183
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1184
1184
|
case 29:
|
|
1185
|
-
_2[_3] = _10.sent(); //
|
|
1185
|
+
_2[_3] = _10.sent(); // SecFetchSite authentication
|
|
1186
1186
|
_10.label = 30;
|
|
1187
1187
|
case 30:
|
|
1188
1188
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1189
1189
|
_4 = headerParameters;
|
|
1190
|
-
_5 = "
|
|
1191
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1190
|
+
_5 = "x-twitter-auth-type";
|
|
1191
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1192
1192
|
case 31:
|
|
1193
|
-
_4[_5] = _10.sent(); //
|
|
1193
|
+
_4[_5] = _10.sent(); // AuthType authentication
|
|
1194
1194
|
_10.label = 32;
|
|
1195
1195
|
case 32:
|
|
1196
1196
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|