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/TweetApi.js
CHANGED
|
@@ -80,9 +80,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
80
80
|
*/
|
|
81
81
|
TweetApi.prototype.getBookmarksRaw = 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 getBookmarks().');
|
|
@@ -106,162 +106,170 @@ var TweetApi = /** @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}/Bookmarks".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.BookmarksResponseFromJSON)(jsonValue); })];
|
|
266
274
|
}
|
|
267
275
|
});
|
|
@@ -289,9 +297,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
289
297
|
*/
|
|
290
298
|
TweetApi.prototype.getHomeLatestTimelineRaw = 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 getHomeLatestTimeline().');
|
|
@@ -315,162 +323,170 @@ var TweetApi = /** @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}/HomeLatestTimeline".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.TimelineResponseFromJSON)(jsonValue); })];
|
|
475
491
|
}
|
|
476
492
|
});
|
|
@@ -498,9 +514,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
498
514
|
*/
|
|
499
515
|
TweetApi.prototype.getHomeTimelineRaw = 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 getHomeTimeline().');
|
|
@@ -524,162 +540,170 @@ var TweetApi = /** @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}/HomeTimeline".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.TimelineResponseFromJSON)(jsonValue); })];
|
|
684
708
|
}
|
|
685
709
|
});
|
|
@@ -707,9 +731,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
707
731
|
*/
|
|
708
732
|
TweetApi.prototype.getLikesRaw = 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 getLikes().');
|
|
@@ -739,162 +763,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
739
763
|
_b = "Accept";
|
|
740
764
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
741
765
|
case 1:
|
|
742
|
-
_a[_b] =
|
|
743
|
-
|
|
766
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
767
|
+
_14.label = 2;
|
|
744
768
|
case 2:
|
|
745
769
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
746
770
|
_c = headerParameters;
|
|
747
771
|
_d = "x-twitter-client-language";
|
|
748
772
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
749
773
|
case 3:
|
|
750
|
-
_c[_d] =
|
|
751
|
-
|
|
774
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
775
|
+
_14.label = 4;
|
|
752
776
|
case 4:
|
|
753
777
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
754
778
|
_e = headerParameters;
|
|
755
|
-
_f = "
|
|
756
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
779
|
+
_f = "Priority";
|
|
780
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
757
781
|
case 5:
|
|
758
|
-
_e[_f] =
|
|
759
|
-
|
|
782
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
783
|
+
_14.label = 6;
|
|
760
784
|
case 6:
|
|
761
785
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
762
786
|
_g = headerParameters;
|
|
763
|
-
_h = "
|
|
764
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
787
|
+
_h = "Referer";
|
|
788
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
765
789
|
case 7:
|
|
766
|
-
_g[_h] =
|
|
767
|
-
|
|
790
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
791
|
+
_14.label = 8;
|
|
768
792
|
case 8:
|
|
769
793
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
770
794
|
_j = headerParameters;
|
|
771
|
-
_k = "Sec-
|
|
772
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
795
|
+
_k = "Sec-Fetch-Dest";
|
|
796
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
773
797
|
case 9:
|
|
774
|
-
_j[_k] =
|
|
775
|
-
|
|
798
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
799
|
+
_14.label = 10;
|
|
776
800
|
case 10:
|
|
777
801
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
778
802
|
_l = headerParameters;
|
|
779
|
-
_m = "Sec-
|
|
780
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
803
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
804
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
781
805
|
case 11:
|
|
782
|
-
_l[_m] =
|
|
783
|
-
|
|
806
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
807
|
+
_14.label = 12;
|
|
784
808
|
case 12:
|
|
785
809
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
786
810
|
_o = headerParameters;
|
|
787
|
-
_p = "
|
|
788
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
811
|
+
_p = "Sec-Fetch-Mode";
|
|
812
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
789
813
|
case 13:
|
|
790
|
-
_o[_p] =
|
|
791
|
-
|
|
814
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
815
|
+
_14.label = 14;
|
|
792
816
|
case 14:
|
|
793
817
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
794
818
|
_q = headerParameters;
|
|
795
|
-
_r = "x-
|
|
796
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
819
|
+
_r = "x-csrf-token";
|
|
820
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
797
821
|
case 15:
|
|
798
|
-
_q[_r] =
|
|
799
|
-
|
|
822
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
823
|
+
_14.label = 16;
|
|
800
824
|
case 16:
|
|
801
|
-
if (!(this.configuration && this.configuration.
|
|
825
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
826
|
+
_s = headerParameters;
|
|
827
|
+
_t = "x-client-uuid";
|
|
828
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
829
|
+
case 17:
|
|
830
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
831
|
+
_14.label = 18;
|
|
832
|
+
case 18:
|
|
833
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
802
834
|
token = this.configuration.accessToken;
|
|
803
835
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
804
|
-
case
|
|
805
|
-
tokenString =
|
|
836
|
+
case 19:
|
|
837
|
+
tokenString = _14.sent();
|
|
806
838
|
if (tokenString) {
|
|
807
839
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
808
840
|
}
|
|
809
|
-
|
|
810
|
-
case 18:
|
|
811
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
812
|
-
_s = headerParameters;
|
|
813
|
-
_t = "x-guest-token";
|
|
814
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
815
|
-
case 19:
|
|
816
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
817
|
-
_12.label = 20;
|
|
841
|
+
_14.label = 20;
|
|
818
842
|
case 20:
|
|
819
843
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
820
844
|
_u = headerParameters;
|
|
821
|
-
_v = "
|
|
822
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
845
|
+
_v = "x-guest-token";
|
|
846
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
823
847
|
case 21:
|
|
824
|
-
_u[_v] =
|
|
825
|
-
|
|
848
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
849
|
+
_14.label = 22;
|
|
826
850
|
case 22:
|
|
827
851
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
828
852
|
_w = headerParameters;
|
|
829
|
-
_x = "
|
|
830
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
853
|
+
_x = "Sec-Ch-Ua";
|
|
854
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
831
855
|
case 23:
|
|
832
|
-
_w[_x] =
|
|
833
|
-
|
|
856
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
857
|
+
_14.label = 24;
|
|
834
858
|
case 24:
|
|
835
859
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
836
860
|
_y = headerParameters;
|
|
837
|
-
_z = "x-
|
|
838
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
861
|
+
_z = "x-client-transaction-id";
|
|
862
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
839
863
|
case 25:
|
|
840
|
-
_y[_z] =
|
|
841
|
-
|
|
864
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
865
|
+
_14.label = 26;
|
|
842
866
|
case 26:
|
|
843
867
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
844
868
|
_0 = headerParameters;
|
|
845
|
-
_1 = "user
|
|
846
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
869
|
+
_1 = "x-twitter-active-user";
|
|
870
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
847
871
|
case 27:
|
|
848
|
-
_0[_1] =
|
|
849
|
-
|
|
872
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
873
|
+
_14.label = 28;
|
|
850
874
|
case 28:
|
|
851
875
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
852
876
|
_2 = headerParameters;
|
|
853
|
-
_3 = "
|
|
854
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
877
|
+
_3 = "user-agent";
|
|
878
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
855
879
|
case 29:
|
|
856
|
-
_2[_3] =
|
|
857
|
-
|
|
880
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
881
|
+
_14.label = 30;
|
|
858
882
|
case 30:
|
|
859
883
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
860
884
|
_4 = headerParameters;
|
|
861
|
-
_5 = "
|
|
862
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
885
|
+
_5 = "Accept-Language";
|
|
886
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
863
887
|
case 31:
|
|
864
|
-
_4[_5] =
|
|
865
|
-
|
|
888
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
889
|
+
_14.label = 32;
|
|
866
890
|
case 32:
|
|
867
891
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
868
892
|
_6 = headerParameters;
|
|
869
|
-
_7 = "
|
|
870
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
893
|
+
_7 = "Sec-Fetch-Site";
|
|
894
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
871
895
|
case 33:
|
|
872
|
-
_6[_7] =
|
|
873
|
-
|
|
896
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
897
|
+
_14.label = 34;
|
|
874
898
|
case 34:
|
|
875
899
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
876
900
|
_8 = headerParameters;
|
|
877
|
-
_9 = "
|
|
878
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
901
|
+
_9 = "x-twitter-auth-type";
|
|
902
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
879
903
|
case 35:
|
|
880
|
-
_8[_9] =
|
|
881
|
-
|
|
904
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
905
|
+
_14.label = 36;
|
|
882
906
|
case 36:
|
|
883
907
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
884
908
|
_10 = headerParameters;
|
|
885
|
-
_11 = "
|
|
886
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
909
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
910
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
887
911
|
case 37:
|
|
888
|
-
_10[_11] =
|
|
889
|
-
|
|
890
|
-
case 38:
|
|
912
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
913
|
+
_14.label = 38;
|
|
914
|
+
case 38:
|
|
915
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
916
|
+
_12 = headerParameters;
|
|
917
|
+
_13 = "Accept-Encoding";
|
|
918
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
919
|
+
case 39:
|
|
920
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
921
|
+
_14.label = 40;
|
|
922
|
+
case 40: return [4 /*yield*/, this.request({
|
|
891
923
|
path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
892
924
|
method: 'GET',
|
|
893
925
|
headers: headerParameters,
|
|
894
926
|
query: queryParameters,
|
|
895
927
|
}, initOverrides)];
|
|
896
|
-
case
|
|
897
|
-
response =
|
|
928
|
+
case 41:
|
|
929
|
+
response = _14.sent();
|
|
898
930
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
899
931
|
}
|
|
900
932
|
});
|
|
@@ -922,9 +954,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
922
954
|
*/
|
|
923
955
|
TweetApi.prototype.getListLatestTweetsTimelineRaw = function (requestParameters, initOverrides) {
|
|
924
956
|
return __awaiter(this, void 0, void 0, function () {
|
|
925
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
926
|
-
return __generator(this, function (
|
|
927
|
-
switch (
|
|
957
|
+
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;
|
|
958
|
+
return __generator(this, function (_14) {
|
|
959
|
+
switch (_14.label) {
|
|
928
960
|
case 0:
|
|
929
961
|
if (requestParameters['pathQueryId'] == null) {
|
|
930
962
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getListLatestTweetsTimeline().');
|
|
@@ -948,162 +980,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
948
980
|
_b = "Accept";
|
|
949
981
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
950
982
|
case 1:
|
|
951
|
-
_a[_b] =
|
|
952
|
-
|
|
983
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
984
|
+
_14.label = 2;
|
|
953
985
|
case 2:
|
|
954
986
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
955
987
|
_c = headerParameters;
|
|
956
988
|
_d = "x-twitter-client-language";
|
|
957
989
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
958
990
|
case 3:
|
|
959
|
-
_c[_d] =
|
|
960
|
-
|
|
991
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
992
|
+
_14.label = 4;
|
|
961
993
|
case 4:
|
|
962
994
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
963
995
|
_e = headerParameters;
|
|
964
|
-
_f = "
|
|
965
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
996
|
+
_f = "Priority";
|
|
997
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
966
998
|
case 5:
|
|
967
|
-
_e[_f] =
|
|
968
|
-
|
|
999
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
1000
|
+
_14.label = 6;
|
|
969
1001
|
case 6:
|
|
970
1002
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
971
1003
|
_g = headerParameters;
|
|
972
|
-
_h = "
|
|
973
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1004
|
+
_h = "Referer";
|
|
1005
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
974
1006
|
case 7:
|
|
975
|
-
_g[_h] =
|
|
976
|
-
|
|
1007
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
1008
|
+
_14.label = 8;
|
|
977
1009
|
case 8:
|
|
978
1010
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
979
1011
|
_j = headerParameters;
|
|
980
|
-
_k = "Sec-
|
|
981
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1012
|
+
_k = "Sec-Fetch-Dest";
|
|
1013
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
982
1014
|
case 9:
|
|
983
|
-
_j[_k] =
|
|
984
|
-
|
|
1015
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
1016
|
+
_14.label = 10;
|
|
985
1017
|
case 10:
|
|
986
1018
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
987
1019
|
_l = headerParameters;
|
|
988
|
-
_m = "Sec-
|
|
989
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1020
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1021
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
990
1022
|
case 11:
|
|
991
|
-
_l[_m] =
|
|
992
|
-
|
|
1023
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
1024
|
+
_14.label = 12;
|
|
993
1025
|
case 12:
|
|
994
1026
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
995
1027
|
_o = headerParameters;
|
|
996
|
-
_p = "
|
|
997
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1028
|
+
_p = "Sec-Fetch-Mode";
|
|
1029
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
998
1030
|
case 13:
|
|
999
|
-
_o[_p] =
|
|
1000
|
-
|
|
1031
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
1032
|
+
_14.label = 14;
|
|
1001
1033
|
case 14:
|
|
1002
1034
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1003
1035
|
_q = headerParameters;
|
|
1004
|
-
_r = "x-
|
|
1005
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1036
|
+
_r = "x-csrf-token";
|
|
1037
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1006
1038
|
case 15:
|
|
1007
|
-
_q[_r] =
|
|
1008
|
-
|
|
1039
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
1040
|
+
_14.label = 16;
|
|
1009
1041
|
case 16:
|
|
1010
|
-
if (!(this.configuration && this.configuration.
|
|
1042
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
1043
|
+
_s = headerParameters;
|
|
1044
|
+
_t = "x-client-uuid";
|
|
1045
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1046
|
+
case 17:
|
|
1047
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
1048
|
+
_14.label = 18;
|
|
1049
|
+
case 18:
|
|
1050
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1011
1051
|
token = this.configuration.accessToken;
|
|
1012
1052
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1013
|
-
case
|
|
1014
|
-
tokenString =
|
|
1053
|
+
case 19:
|
|
1054
|
+
tokenString = _14.sent();
|
|
1015
1055
|
if (tokenString) {
|
|
1016
1056
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1017
1057
|
}
|
|
1018
|
-
|
|
1019
|
-
case 18:
|
|
1020
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1021
|
-
_s = headerParameters;
|
|
1022
|
-
_t = "x-guest-token";
|
|
1023
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1024
|
-
case 19:
|
|
1025
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1026
|
-
_12.label = 20;
|
|
1058
|
+
_14.label = 20;
|
|
1027
1059
|
case 20:
|
|
1028
1060
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1029
1061
|
_u = headerParameters;
|
|
1030
|
-
_v = "
|
|
1031
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1062
|
+
_v = "x-guest-token";
|
|
1063
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1032
1064
|
case 21:
|
|
1033
|
-
_u[_v] =
|
|
1034
|
-
|
|
1065
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
1066
|
+
_14.label = 22;
|
|
1035
1067
|
case 22:
|
|
1036
1068
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1037
1069
|
_w = headerParameters;
|
|
1038
|
-
_x = "
|
|
1039
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1070
|
+
_x = "Sec-Ch-Ua";
|
|
1071
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1040
1072
|
case 23:
|
|
1041
|
-
_w[_x] =
|
|
1042
|
-
|
|
1073
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
1074
|
+
_14.label = 24;
|
|
1043
1075
|
case 24:
|
|
1044
1076
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1045
1077
|
_y = headerParameters;
|
|
1046
|
-
_z = "x-
|
|
1047
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1078
|
+
_z = "x-client-transaction-id";
|
|
1079
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1048
1080
|
case 25:
|
|
1049
|
-
_y[_z] =
|
|
1050
|
-
|
|
1081
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
1082
|
+
_14.label = 26;
|
|
1051
1083
|
case 26:
|
|
1052
1084
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1053
1085
|
_0 = headerParameters;
|
|
1054
|
-
_1 = "user
|
|
1055
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1086
|
+
_1 = "x-twitter-active-user";
|
|
1087
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1056
1088
|
case 27:
|
|
1057
|
-
_0[_1] =
|
|
1058
|
-
|
|
1089
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
1090
|
+
_14.label = 28;
|
|
1059
1091
|
case 28:
|
|
1060
1092
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1061
1093
|
_2 = headerParameters;
|
|
1062
|
-
_3 = "
|
|
1063
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1094
|
+
_3 = "user-agent";
|
|
1095
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1064
1096
|
case 29:
|
|
1065
|
-
_2[_3] =
|
|
1066
|
-
|
|
1097
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
1098
|
+
_14.label = 30;
|
|
1067
1099
|
case 30:
|
|
1068
1100
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1069
1101
|
_4 = headerParameters;
|
|
1070
|
-
_5 = "
|
|
1071
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1102
|
+
_5 = "Accept-Language";
|
|
1103
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1072
1104
|
case 31:
|
|
1073
|
-
_4[_5] =
|
|
1074
|
-
|
|
1105
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
1106
|
+
_14.label = 32;
|
|
1075
1107
|
case 32:
|
|
1076
1108
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1077
1109
|
_6 = headerParameters;
|
|
1078
|
-
_7 = "
|
|
1079
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1110
|
+
_7 = "Sec-Fetch-Site";
|
|
1111
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1080
1112
|
case 33:
|
|
1081
|
-
_6[_7] =
|
|
1082
|
-
|
|
1113
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
1114
|
+
_14.label = 34;
|
|
1083
1115
|
case 34:
|
|
1084
1116
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1085
1117
|
_8 = headerParameters;
|
|
1086
|
-
_9 = "
|
|
1087
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1118
|
+
_9 = "x-twitter-auth-type";
|
|
1119
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1088
1120
|
case 35:
|
|
1089
|
-
_8[_9] =
|
|
1090
|
-
|
|
1121
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
1122
|
+
_14.label = 36;
|
|
1091
1123
|
case 36:
|
|
1092
1124
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1093
1125
|
_10 = headerParameters;
|
|
1094
|
-
_11 = "
|
|
1095
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1126
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
1127
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1096
1128
|
case 37:
|
|
1097
|
-
_10[_11] =
|
|
1098
|
-
|
|
1099
|
-
case 38:
|
|
1129
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
1130
|
+
_14.label = 38;
|
|
1131
|
+
case 38:
|
|
1132
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
1133
|
+
_12 = headerParameters;
|
|
1134
|
+
_13 = "Accept-Encoding";
|
|
1135
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1136
|
+
case 39:
|
|
1137
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1138
|
+
_14.label = 40;
|
|
1139
|
+
case 40: return [4 /*yield*/, this.request({
|
|
1100
1140
|
path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1101
1141
|
method: 'GET',
|
|
1102
1142
|
headers: headerParameters,
|
|
1103
1143
|
query: queryParameters,
|
|
1104
1144
|
}, initOverrides)];
|
|
1105
|
-
case
|
|
1106
|
-
response =
|
|
1145
|
+
case 41:
|
|
1146
|
+
response = _14.sent();
|
|
1107
1147
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListLatestTweetsTimelineResponseFromJSON)(jsonValue); })];
|
|
1108
1148
|
}
|
|
1109
1149
|
});
|
|
@@ -1131,9 +1171,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1131
1171
|
*/
|
|
1132
1172
|
TweetApi.prototype.getSearchTimelineRaw = function (requestParameters, initOverrides) {
|
|
1133
1173
|
return __awaiter(this, void 0, void 0, function () {
|
|
1134
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1135
|
-
return __generator(this, function (
|
|
1136
|
-
switch (
|
|
1174
|
+
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;
|
|
1175
|
+
return __generator(this, function (_14) {
|
|
1176
|
+
switch (_14.label) {
|
|
1137
1177
|
case 0:
|
|
1138
1178
|
if (requestParameters['pathQueryId'] == null) {
|
|
1139
1179
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getSearchTimeline().');
|
|
@@ -1157,162 +1197,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1157
1197
|
_b = "Accept";
|
|
1158
1198
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1159
1199
|
case 1:
|
|
1160
|
-
_a[_b] =
|
|
1161
|
-
|
|
1200
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
1201
|
+
_14.label = 2;
|
|
1162
1202
|
case 2:
|
|
1163
1203
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1164
1204
|
_c = headerParameters;
|
|
1165
1205
|
_d = "x-twitter-client-language";
|
|
1166
1206
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1167
1207
|
case 3:
|
|
1168
|
-
_c[_d] =
|
|
1169
|
-
|
|
1208
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
1209
|
+
_14.label = 4;
|
|
1170
1210
|
case 4:
|
|
1171
1211
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1172
1212
|
_e = headerParameters;
|
|
1173
|
-
_f = "
|
|
1174
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1213
|
+
_f = "Priority";
|
|
1214
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
1175
1215
|
case 5:
|
|
1176
|
-
_e[_f] =
|
|
1177
|
-
|
|
1216
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
1217
|
+
_14.label = 6;
|
|
1178
1218
|
case 6:
|
|
1179
1219
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1180
1220
|
_g = headerParameters;
|
|
1181
|
-
_h = "
|
|
1182
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1221
|
+
_h = "Referer";
|
|
1222
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1183
1223
|
case 7:
|
|
1184
|
-
_g[_h] =
|
|
1185
|
-
|
|
1224
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
1225
|
+
_14.label = 8;
|
|
1186
1226
|
case 8:
|
|
1187
1227
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1188
1228
|
_j = headerParameters;
|
|
1189
|
-
_k = "Sec-
|
|
1190
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1229
|
+
_k = "Sec-Fetch-Dest";
|
|
1230
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1191
1231
|
case 9:
|
|
1192
|
-
_j[_k] =
|
|
1193
|
-
|
|
1232
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
1233
|
+
_14.label = 10;
|
|
1194
1234
|
case 10:
|
|
1195
1235
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1196
1236
|
_l = headerParameters;
|
|
1197
|
-
_m = "Sec-
|
|
1198
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1237
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1238
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1199
1239
|
case 11:
|
|
1200
|
-
_l[_m] =
|
|
1201
|
-
|
|
1240
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
1241
|
+
_14.label = 12;
|
|
1202
1242
|
case 12:
|
|
1203
1243
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1204
1244
|
_o = headerParameters;
|
|
1205
|
-
_p = "
|
|
1206
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1245
|
+
_p = "Sec-Fetch-Mode";
|
|
1246
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1207
1247
|
case 13:
|
|
1208
|
-
_o[_p] =
|
|
1209
|
-
|
|
1248
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
1249
|
+
_14.label = 14;
|
|
1210
1250
|
case 14:
|
|
1211
1251
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1212
1252
|
_q = headerParameters;
|
|
1213
|
-
_r = "x-
|
|
1214
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1253
|
+
_r = "x-csrf-token";
|
|
1254
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1215
1255
|
case 15:
|
|
1216
|
-
_q[_r] =
|
|
1217
|
-
|
|
1256
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
1257
|
+
_14.label = 16;
|
|
1218
1258
|
case 16:
|
|
1219
|
-
if (!(this.configuration && this.configuration.
|
|
1259
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
1260
|
+
_s = headerParameters;
|
|
1261
|
+
_t = "x-client-uuid";
|
|
1262
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1263
|
+
case 17:
|
|
1264
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
1265
|
+
_14.label = 18;
|
|
1266
|
+
case 18:
|
|
1267
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1220
1268
|
token = this.configuration.accessToken;
|
|
1221
1269
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1222
|
-
case
|
|
1223
|
-
tokenString =
|
|
1270
|
+
case 19:
|
|
1271
|
+
tokenString = _14.sent();
|
|
1224
1272
|
if (tokenString) {
|
|
1225
1273
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1226
1274
|
}
|
|
1227
|
-
|
|
1228
|
-
case 18:
|
|
1229
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1230
|
-
_s = headerParameters;
|
|
1231
|
-
_t = "x-guest-token";
|
|
1232
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1233
|
-
case 19:
|
|
1234
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1235
|
-
_12.label = 20;
|
|
1275
|
+
_14.label = 20;
|
|
1236
1276
|
case 20:
|
|
1237
1277
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1238
1278
|
_u = headerParameters;
|
|
1239
|
-
_v = "
|
|
1240
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1279
|
+
_v = "x-guest-token";
|
|
1280
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1241
1281
|
case 21:
|
|
1242
|
-
_u[_v] =
|
|
1243
|
-
|
|
1282
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
1283
|
+
_14.label = 22;
|
|
1244
1284
|
case 22:
|
|
1245
1285
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1246
1286
|
_w = headerParameters;
|
|
1247
|
-
_x = "
|
|
1248
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1287
|
+
_x = "Sec-Ch-Ua";
|
|
1288
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1249
1289
|
case 23:
|
|
1250
|
-
_w[_x] =
|
|
1251
|
-
|
|
1290
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
1291
|
+
_14.label = 24;
|
|
1252
1292
|
case 24:
|
|
1253
1293
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1254
1294
|
_y = headerParameters;
|
|
1255
|
-
_z = "x-
|
|
1256
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1295
|
+
_z = "x-client-transaction-id";
|
|
1296
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1257
1297
|
case 25:
|
|
1258
|
-
_y[_z] =
|
|
1259
|
-
|
|
1298
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
1299
|
+
_14.label = 26;
|
|
1260
1300
|
case 26:
|
|
1261
1301
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1262
1302
|
_0 = headerParameters;
|
|
1263
|
-
_1 = "user
|
|
1264
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1303
|
+
_1 = "x-twitter-active-user";
|
|
1304
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1265
1305
|
case 27:
|
|
1266
|
-
_0[_1] =
|
|
1267
|
-
|
|
1306
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
1307
|
+
_14.label = 28;
|
|
1268
1308
|
case 28:
|
|
1269
1309
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1270
1310
|
_2 = headerParameters;
|
|
1271
|
-
_3 = "
|
|
1272
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1311
|
+
_3 = "user-agent";
|
|
1312
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1273
1313
|
case 29:
|
|
1274
|
-
_2[_3] =
|
|
1275
|
-
|
|
1314
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
1315
|
+
_14.label = 30;
|
|
1276
1316
|
case 30:
|
|
1277
1317
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1278
1318
|
_4 = headerParameters;
|
|
1279
|
-
_5 = "
|
|
1280
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1319
|
+
_5 = "Accept-Language";
|
|
1320
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1281
1321
|
case 31:
|
|
1282
|
-
_4[_5] =
|
|
1283
|
-
|
|
1322
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
1323
|
+
_14.label = 32;
|
|
1284
1324
|
case 32:
|
|
1285
1325
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1286
1326
|
_6 = headerParameters;
|
|
1287
|
-
_7 = "
|
|
1288
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1327
|
+
_7 = "Sec-Fetch-Site";
|
|
1328
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1289
1329
|
case 33:
|
|
1290
|
-
_6[_7] =
|
|
1291
|
-
|
|
1330
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
1331
|
+
_14.label = 34;
|
|
1292
1332
|
case 34:
|
|
1293
1333
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1294
1334
|
_8 = headerParameters;
|
|
1295
|
-
_9 = "
|
|
1296
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1335
|
+
_9 = "x-twitter-auth-type";
|
|
1336
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1297
1337
|
case 35:
|
|
1298
|
-
_8[_9] =
|
|
1299
|
-
|
|
1338
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
1339
|
+
_14.label = 36;
|
|
1300
1340
|
case 36:
|
|
1301
1341
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1302
1342
|
_10 = headerParameters;
|
|
1303
|
-
_11 = "
|
|
1304
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1343
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
1344
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1305
1345
|
case 37:
|
|
1306
|
-
_10[_11] =
|
|
1307
|
-
|
|
1308
|
-
case 38:
|
|
1346
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
1347
|
+
_14.label = 38;
|
|
1348
|
+
case 38:
|
|
1349
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
1350
|
+
_12 = headerParameters;
|
|
1351
|
+
_13 = "Accept-Encoding";
|
|
1352
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1353
|
+
case 39:
|
|
1354
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1355
|
+
_14.label = 40;
|
|
1356
|
+
case 40: return [4 /*yield*/, this.request({
|
|
1309
1357
|
path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1310
1358
|
method: 'GET',
|
|
1311
1359
|
headers: headerParameters,
|
|
1312
1360
|
query: queryParameters,
|
|
1313
1361
|
}, initOverrides)];
|
|
1314
|
-
case
|
|
1315
|
-
response =
|
|
1362
|
+
case 41:
|
|
1363
|
+
response = _14.sent();
|
|
1316
1364
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SearchTimelineResponseFromJSON)(jsonValue); })];
|
|
1317
1365
|
}
|
|
1318
1366
|
});
|
|
@@ -1340,9 +1388,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1340
1388
|
*/
|
|
1341
1389
|
TweetApi.prototype.getTweetDetailRaw = function (requestParameters, initOverrides) {
|
|
1342
1390
|
return __awaiter(this, void 0, void 0, function () {
|
|
1343
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1344
|
-
return __generator(this, function (
|
|
1345
|
-
switch (
|
|
1391
|
+
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;
|
|
1392
|
+
return __generator(this, function (_14) {
|
|
1393
|
+
switch (_14.label) {
|
|
1346
1394
|
case 0:
|
|
1347
1395
|
if (requestParameters['pathQueryId'] == null) {
|
|
1348
1396
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getTweetDetail().');
|
|
@@ -1372,162 +1420,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1372
1420
|
_b = "Accept";
|
|
1373
1421
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1374
1422
|
case 1:
|
|
1375
|
-
_a[_b] =
|
|
1376
|
-
|
|
1423
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
1424
|
+
_14.label = 2;
|
|
1377
1425
|
case 2:
|
|
1378
1426
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1379
1427
|
_c = headerParameters;
|
|
1380
1428
|
_d = "x-twitter-client-language";
|
|
1381
1429
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1382
1430
|
case 3:
|
|
1383
|
-
_c[_d] =
|
|
1384
|
-
|
|
1431
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
1432
|
+
_14.label = 4;
|
|
1385
1433
|
case 4:
|
|
1386
1434
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1387
1435
|
_e = headerParameters;
|
|
1388
|
-
_f = "
|
|
1389
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1436
|
+
_f = "Priority";
|
|
1437
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
1390
1438
|
case 5:
|
|
1391
|
-
_e[_f] =
|
|
1392
|
-
|
|
1439
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
1440
|
+
_14.label = 6;
|
|
1393
1441
|
case 6:
|
|
1394
1442
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1395
1443
|
_g = headerParameters;
|
|
1396
|
-
_h = "
|
|
1397
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1444
|
+
_h = "Referer";
|
|
1445
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1398
1446
|
case 7:
|
|
1399
|
-
_g[_h] =
|
|
1400
|
-
|
|
1447
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
1448
|
+
_14.label = 8;
|
|
1401
1449
|
case 8:
|
|
1402
1450
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1403
1451
|
_j = headerParameters;
|
|
1404
|
-
_k = "Sec-
|
|
1405
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1452
|
+
_k = "Sec-Fetch-Dest";
|
|
1453
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1406
1454
|
case 9:
|
|
1407
|
-
_j[_k] =
|
|
1408
|
-
|
|
1455
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
1456
|
+
_14.label = 10;
|
|
1409
1457
|
case 10:
|
|
1410
1458
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1411
1459
|
_l = headerParameters;
|
|
1412
|
-
_m = "Sec-
|
|
1413
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1460
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1461
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1414
1462
|
case 11:
|
|
1415
|
-
_l[_m] =
|
|
1416
|
-
|
|
1463
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
1464
|
+
_14.label = 12;
|
|
1417
1465
|
case 12:
|
|
1418
1466
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1419
1467
|
_o = headerParameters;
|
|
1420
|
-
_p = "
|
|
1421
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1468
|
+
_p = "Sec-Fetch-Mode";
|
|
1469
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1422
1470
|
case 13:
|
|
1423
|
-
_o[_p] =
|
|
1424
|
-
|
|
1471
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
1472
|
+
_14.label = 14;
|
|
1425
1473
|
case 14:
|
|
1426
1474
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1427
1475
|
_q = headerParameters;
|
|
1428
|
-
_r = "x-
|
|
1429
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1476
|
+
_r = "x-csrf-token";
|
|
1477
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1430
1478
|
case 15:
|
|
1431
|
-
_q[_r] =
|
|
1432
|
-
|
|
1479
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
1480
|
+
_14.label = 16;
|
|
1433
1481
|
case 16:
|
|
1434
|
-
if (!(this.configuration && this.configuration.
|
|
1482
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
1483
|
+
_s = headerParameters;
|
|
1484
|
+
_t = "x-client-uuid";
|
|
1485
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1486
|
+
case 17:
|
|
1487
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
1488
|
+
_14.label = 18;
|
|
1489
|
+
case 18:
|
|
1490
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1435
1491
|
token = this.configuration.accessToken;
|
|
1436
1492
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1437
|
-
case
|
|
1438
|
-
tokenString =
|
|
1493
|
+
case 19:
|
|
1494
|
+
tokenString = _14.sent();
|
|
1439
1495
|
if (tokenString) {
|
|
1440
1496
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1441
1497
|
}
|
|
1442
|
-
|
|
1443
|
-
case 18:
|
|
1444
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1445
|
-
_s = headerParameters;
|
|
1446
|
-
_t = "x-guest-token";
|
|
1447
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1448
|
-
case 19:
|
|
1449
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1450
|
-
_12.label = 20;
|
|
1498
|
+
_14.label = 20;
|
|
1451
1499
|
case 20:
|
|
1452
1500
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1453
1501
|
_u = headerParameters;
|
|
1454
|
-
_v = "
|
|
1455
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1502
|
+
_v = "x-guest-token";
|
|
1503
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1456
1504
|
case 21:
|
|
1457
|
-
_u[_v] =
|
|
1458
|
-
|
|
1505
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
1506
|
+
_14.label = 22;
|
|
1459
1507
|
case 22:
|
|
1460
1508
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1461
1509
|
_w = headerParameters;
|
|
1462
|
-
_x = "
|
|
1463
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1510
|
+
_x = "Sec-Ch-Ua";
|
|
1511
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1464
1512
|
case 23:
|
|
1465
|
-
_w[_x] =
|
|
1466
|
-
|
|
1513
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
1514
|
+
_14.label = 24;
|
|
1467
1515
|
case 24:
|
|
1468
1516
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1469
1517
|
_y = headerParameters;
|
|
1470
|
-
_z = "x-
|
|
1471
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1518
|
+
_z = "x-client-transaction-id";
|
|
1519
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1472
1520
|
case 25:
|
|
1473
|
-
_y[_z] =
|
|
1474
|
-
|
|
1521
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
1522
|
+
_14.label = 26;
|
|
1475
1523
|
case 26:
|
|
1476
1524
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1477
1525
|
_0 = headerParameters;
|
|
1478
|
-
_1 = "user
|
|
1479
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1526
|
+
_1 = "x-twitter-active-user";
|
|
1527
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1480
1528
|
case 27:
|
|
1481
|
-
_0[_1] =
|
|
1482
|
-
|
|
1529
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
1530
|
+
_14.label = 28;
|
|
1483
1531
|
case 28:
|
|
1484
1532
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1485
1533
|
_2 = headerParameters;
|
|
1486
|
-
_3 = "
|
|
1487
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1534
|
+
_3 = "user-agent";
|
|
1535
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1488
1536
|
case 29:
|
|
1489
|
-
_2[_3] =
|
|
1490
|
-
|
|
1537
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
1538
|
+
_14.label = 30;
|
|
1491
1539
|
case 30:
|
|
1492
1540
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1493
1541
|
_4 = headerParameters;
|
|
1494
|
-
_5 = "
|
|
1495
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1542
|
+
_5 = "Accept-Language";
|
|
1543
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1496
1544
|
case 31:
|
|
1497
|
-
_4[_5] =
|
|
1498
|
-
|
|
1545
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
1546
|
+
_14.label = 32;
|
|
1499
1547
|
case 32:
|
|
1500
1548
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1501
1549
|
_6 = headerParameters;
|
|
1502
|
-
_7 = "
|
|
1503
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1550
|
+
_7 = "Sec-Fetch-Site";
|
|
1551
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1504
1552
|
case 33:
|
|
1505
|
-
_6[_7] =
|
|
1506
|
-
|
|
1553
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
1554
|
+
_14.label = 34;
|
|
1507
1555
|
case 34:
|
|
1508
1556
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1509
1557
|
_8 = headerParameters;
|
|
1510
|
-
_9 = "
|
|
1511
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1558
|
+
_9 = "x-twitter-auth-type";
|
|
1559
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1512
1560
|
case 35:
|
|
1513
|
-
_8[_9] =
|
|
1514
|
-
|
|
1561
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
1562
|
+
_14.label = 36;
|
|
1515
1563
|
case 36:
|
|
1516
1564
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1517
1565
|
_10 = headerParameters;
|
|
1518
|
-
_11 = "
|
|
1519
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1566
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
1567
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1520
1568
|
case 37:
|
|
1521
|
-
_10[_11] =
|
|
1522
|
-
|
|
1523
|
-
case 38:
|
|
1569
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
1570
|
+
_14.label = 38;
|
|
1571
|
+
case 38:
|
|
1572
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
1573
|
+
_12 = headerParameters;
|
|
1574
|
+
_13 = "Accept-Encoding";
|
|
1575
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1576
|
+
case 39:
|
|
1577
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1578
|
+
_14.label = 40;
|
|
1579
|
+
case 40: return [4 /*yield*/, this.request({
|
|
1524
1580
|
path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1525
1581
|
method: 'GET',
|
|
1526
1582
|
headers: headerParameters,
|
|
1527
1583
|
query: queryParameters,
|
|
1528
1584
|
}, initOverrides)];
|
|
1529
|
-
case
|
|
1530
|
-
response =
|
|
1585
|
+
case 41:
|
|
1586
|
+
response = _14.sent();
|
|
1531
1587
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TweetDetailResponseFromJSON)(jsonValue); })];
|
|
1532
1588
|
}
|
|
1533
1589
|
});
|
|
@@ -1555,9 +1611,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1555
1611
|
*/
|
|
1556
1612
|
TweetApi.prototype.getUserHighlightsTweetsRaw = function (requestParameters, initOverrides) {
|
|
1557
1613
|
return __awaiter(this, void 0, void 0, function () {
|
|
1558
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1559
|
-
return __generator(this, function (
|
|
1560
|
-
switch (
|
|
1614
|
+
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;
|
|
1615
|
+
return __generator(this, function (_14) {
|
|
1616
|
+
switch (_14.label) {
|
|
1561
1617
|
case 0:
|
|
1562
1618
|
if (requestParameters['pathQueryId'] == null) {
|
|
1563
1619
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserHighlightsTweets().');
|
|
@@ -1581,162 +1637,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1581
1637
|
_b = "Accept";
|
|
1582
1638
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1583
1639
|
case 1:
|
|
1584
|
-
_a[_b] =
|
|
1585
|
-
|
|
1640
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
1641
|
+
_14.label = 2;
|
|
1586
1642
|
case 2:
|
|
1587
1643
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1588
1644
|
_c = headerParameters;
|
|
1589
1645
|
_d = "x-twitter-client-language";
|
|
1590
1646
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1591
1647
|
case 3:
|
|
1592
|
-
_c[_d] =
|
|
1593
|
-
|
|
1648
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
1649
|
+
_14.label = 4;
|
|
1594
1650
|
case 4:
|
|
1595
1651
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1596
1652
|
_e = headerParameters;
|
|
1597
|
-
_f = "
|
|
1598
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1653
|
+
_f = "Priority";
|
|
1654
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
1599
1655
|
case 5:
|
|
1600
|
-
_e[_f] =
|
|
1601
|
-
|
|
1656
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
1657
|
+
_14.label = 6;
|
|
1602
1658
|
case 6:
|
|
1603
1659
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1604
1660
|
_g = headerParameters;
|
|
1605
|
-
_h = "
|
|
1606
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1661
|
+
_h = "Referer";
|
|
1662
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1607
1663
|
case 7:
|
|
1608
|
-
_g[_h] =
|
|
1609
|
-
|
|
1664
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
1665
|
+
_14.label = 8;
|
|
1610
1666
|
case 8:
|
|
1611
1667
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1612
1668
|
_j = headerParameters;
|
|
1613
|
-
_k = "Sec-
|
|
1614
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1669
|
+
_k = "Sec-Fetch-Dest";
|
|
1670
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1615
1671
|
case 9:
|
|
1616
|
-
_j[_k] =
|
|
1617
|
-
|
|
1672
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
1673
|
+
_14.label = 10;
|
|
1618
1674
|
case 10:
|
|
1619
1675
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1620
1676
|
_l = headerParameters;
|
|
1621
|
-
_m = "Sec-
|
|
1622
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1677
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1678
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1623
1679
|
case 11:
|
|
1624
|
-
_l[_m] =
|
|
1625
|
-
|
|
1680
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
1681
|
+
_14.label = 12;
|
|
1626
1682
|
case 12:
|
|
1627
1683
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1628
1684
|
_o = headerParameters;
|
|
1629
|
-
_p = "
|
|
1630
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1685
|
+
_p = "Sec-Fetch-Mode";
|
|
1686
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1631
1687
|
case 13:
|
|
1632
|
-
_o[_p] =
|
|
1633
|
-
|
|
1688
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
1689
|
+
_14.label = 14;
|
|
1634
1690
|
case 14:
|
|
1635
1691
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1636
1692
|
_q = headerParameters;
|
|
1637
|
-
_r = "x-
|
|
1638
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1693
|
+
_r = "x-csrf-token";
|
|
1694
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1639
1695
|
case 15:
|
|
1640
|
-
_q[_r] =
|
|
1641
|
-
|
|
1696
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
1697
|
+
_14.label = 16;
|
|
1642
1698
|
case 16:
|
|
1643
|
-
if (!(this.configuration && this.configuration.
|
|
1699
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
1700
|
+
_s = headerParameters;
|
|
1701
|
+
_t = "x-client-uuid";
|
|
1702
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1703
|
+
case 17:
|
|
1704
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
1705
|
+
_14.label = 18;
|
|
1706
|
+
case 18:
|
|
1707
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1644
1708
|
token = this.configuration.accessToken;
|
|
1645
1709
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1646
|
-
case
|
|
1647
|
-
tokenString =
|
|
1710
|
+
case 19:
|
|
1711
|
+
tokenString = _14.sent();
|
|
1648
1712
|
if (tokenString) {
|
|
1649
1713
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1650
1714
|
}
|
|
1651
|
-
|
|
1652
|
-
case 18:
|
|
1653
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1654
|
-
_s = headerParameters;
|
|
1655
|
-
_t = "x-guest-token";
|
|
1656
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1657
|
-
case 19:
|
|
1658
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1659
|
-
_12.label = 20;
|
|
1715
|
+
_14.label = 20;
|
|
1660
1716
|
case 20:
|
|
1661
1717
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1662
1718
|
_u = headerParameters;
|
|
1663
|
-
_v = "
|
|
1664
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1719
|
+
_v = "x-guest-token";
|
|
1720
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1665
1721
|
case 21:
|
|
1666
|
-
_u[_v] =
|
|
1667
|
-
|
|
1722
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
1723
|
+
_14.label = 22;
|
|
1668
1724
|
case 22:
|
|
1669
1725
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1670
1726
|
_w = headerParameters;
|
|
1671
|
-
_x = "
|
|
1672
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1727
|
+
_x = "Sec-Ch-Ua";
|
|
1728
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1673
1729
|
case 23:
|
|
1674
|
-
_w[_x] =
|
|
1675
|
-
|
|
1730
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
1731
|
+
_14.label = 24;
|
|
1676
1732
|
case 24:
|
|
1677
1733
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1678
1734
|
_y = headerParameters;
|
|
1679
|
-
_z = "x-
|
|
1680
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1735
|
+
_z = "x-client-transaction-id";
|
|
1736
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1681
1737
|
case 25:
|
|
1682
|
-
_y[_z] =
|
|
1683
|
-
|
|
1738
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
1739
|
+
_14.label = 26;
|
|
1684
1740
|
case 26:
|
|
1685
1741
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1686
1742
|
_0 = headerParameters;
|
|
1687
|
-
_1 = "user
|
|
1688
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1743
|
+
_1 = "x-twitter-active-user";
|
|
1744
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1689
1745
|
case 27:
|
|
1690
|
-
_0[_1] =
|
|
1691
|
-
|
|
1746
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
1747
|
+
_14.label = 28;
|
|
1692
1748
|
case 28:
|
|
1693
1749
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1694
1750
|
_2 = headerParameters;
|
|
1695
|
-
_3 = "
|
|
1696
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1751
|
+
_3 = "user-agent";
|
|
1752
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1697
1753
|
case 29:
|
|
1698
|
-
_2[_3] =
|
|
1699
|
-
|
|
1754
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
1755
|
+
_14.label = 30;
|
|
1700
1756
|
case 30:
|
|
1701
1757
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1702
1758
|
_4 = headerParameters;
|
|
1703
|
-
_5 = "
|
|
1704
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1759
|
+
_5 = "Accept-Language";
|
|
1760
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1705
1761
|
case 31:
|
|
1706
|
-
_4[_5] =
|
|
1707
|
-
|
|
1762
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
1763
|
+
_14.label = 32;
|
|
1708
1764
|
case 32:
|
|
1709
1765
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1710
1766
|
_6 = headerParameters;
|
|
1711
|
-
_7 = "
|
|
1712
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1767
|
+
_7 = "Sec-Fetch-Site";
|
|
1768
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1713
1769
|
case 33:
|
|
1714
|
-
_6[_7] =
|
|
1715
|
-
|
|
1770
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
1771
|
+
_14.label = 34;
|
|
1716
1772
|
case 34:
|
|
1717
1773
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1718
1774
|
_8 = headerParameters;
|
|
1719
|
-
_9 = "
|
|
1720
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1775
|
+
_9 = "x-twitter-auth-type";
|
|
1776
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1721
1777
|
case 35:
|
|
1722
|
-
_8[_9] =
|
|
1723
|
-
|
|
1778
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
1779
|
+
_14.label = 36;
|
|
1724
1780
|
case 36:
|
|
1725
1781
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1726
1782
|
_10 = headerParameters;
|
|
1727
|
-
_11 = "
|
|
1728
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1783
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
1784
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1729
1785
|
case 37:
|
|
1730
|
-
_10[_11] =
|
|
1731
|
-
|
|
1732
|
-
case 38:
|
|
1786
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
1787
|
+
_14.label = 38;
|
|
1788
|
+
case 38:
|
|
1789
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
1790
|
+
_12 = headerParameters;
|
|
1791
|
+
_13 = "Accept-Encoding";
|
|
1792
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
1793
|
+
case 39:
|
|
1794
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
1795
|
+
_14.label = 40;
|
|
1796
|
+
case 40: return [4 /*yield*/, this.request({
|
|
1733
1797
|
path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1734
1798
|
method: 'GET',
|
|
1735
1799
|
headers: headerParameters,
|
|
1736
1800
|
query: queryParameters,
|
|
1737
1801
|
}, initOverrides)];
|
|
1738
|
-
case
|
|
1739
|
-
response =
|
|
1802
|
+
case 41:
|
|
1803
|
+
response = _14.sent();
|
|
1740
1804
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserHighlightsTweetsResponseFromJSON)(jsonValue); })];
|
|
1741
1805
|
}
|
|
1742
1806
|
});
|
|
@@ -1764,9 +1828,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1764
1828
|
*/
|
|
1765
1829
|
TweetApi.prototype.getUserMediaRaw = function (requestParameters, initOverrides) {
|
|
1766
1830
|
return __awaiter(this, void 0, void 0, function () {
|
|
1767
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1768
|
-
return __generator(this, function (
|
|
1769
|
-
switch (
|
|
1831
|
+
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;
|
|
1832
|
+
return __generator(this, function (_14) {
|
|
1833
|
+
switch (_14.label) {
|
|
1770
1834
|
case 0:
|
|
1771
1835
|
if (requestParameters['pathQueryId'] == null) {
|
|
1772
1836
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserMedia().');
|
|
@@ -1796,162 +1860,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1796
1860
|
_b = "Accept";
|
|
1797
1861
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
1798
1862
|
case 1:
|
|
1799
|
-
_a[_b] =
|
|
1800
|
-
|
|
1863
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
1864
|
+
_14.label = 2;
|
|
1801
1865
|
case 2:
|
|
1802
1866
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
1803
1867
|
_c = headerParameters;
|
|
1804
1868
|
_d = "x-twitter-client-language";
|
|
1805
1869
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
1806
1870
|
case 3:
|
|
1807
|
-
_c[_d] =
|
|
1808
|
-
|
|
1871
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
1872
|
+
_14.label = 4;
|
|
1809
1873
|
case 4:
|
|
1810
1874
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
1811
1875
|
_e = headerParameters;
|
|
1812
|
-
_f = "
|
|
1813
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1876
|
+
_f = "Priority";
|
|
1877
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
1814
1878
|
case 5:
|
|
1815
|
-
_e[_f] =
|
|
1816
|
-
|
|
1879
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
1880
|
+
_14.label = 6;
|
|
1817
1881
|
case 6:
|
|
1818
1882
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
1819
1883
|
_g = headerParameters;
|
|
1820
|
-
_h = "
|
|
1821
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1884
|
+
_h = "Referer";
|
|
1885
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
1822
1886
|
case 7:
|
|
1823
|
-
_g[_h] =
|
|
1824
|
-
|
|
1887
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
1888
|
+
_14.label = 8;
|
|
1825
1889
|
case 8:
|
|
1826
1890
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
1827
1891
|
_j = headerParameters;
|
|
1828
|
-
_k = "Sec-
|
|
1829
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1892
|
+
_k = "Sec-Fetch-Dest";
|
|
1893
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
1830
1894
|
case 9:
|
|
1831
|
-
_j[_k] =
|
|
1832
|
-
|
|
1895
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
1896
|
+
_14.label = 10;
|
|
1833
1897
|
case 10:
|
|
1834
1898
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
1835
1899
|
_l = headerParameters;
|
|
1836
|
-
_m = "Sec-
|
|
1837
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
1900
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
1901
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
1838
1902
|
case 11:
|
|
1839
|
-
_l[_m] =
|
|
1840
|
-
|
|
1903
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
1904
|
+
_14.label = 12;
|
|
1841
1905
|
case 12:
|
|
1842
1906
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
1843
1907
|
_o = headerParameters;
|
|
1844
|
-
_p = "
|
|
1845
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1908
|
+
_p = "Sec-Fetch-Mode";
|
|
1909
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
1846
1910
|
case 13:
|
|
1847
|
-
_o[_p] =
|
|
1848
|
-
|
|
1911
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
1912
|
+
_14.label = 14;
|
|
1849
1913
|
case 14:
|
|
1850
1914
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
1851
1915
|
_q = headerParameters;
|
|
1852
|
-
_r = "x-
|
|
1853
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1916
|
+
_r = "x-csrf-token";
|
|
1917
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
1854
1918
|
case 15:
|
|
1855
|
-
_q[_r] =
|
|
1856
|
-
|
|
1919
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
1920
|
+
_14.label = 16;
|
|
1857
1921
|
case 16:
|
|
1858
|
-
if (!(this.configuration && this.configuration.
|
|
1922
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
1923
|
+
_s = headerParameters;
|
|
1924
|
+
_t = "x-client-uuid";
|
|
1925
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
1926
|
+
case 17:
|
|
1927
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
1928
|
+
_14.label = 18;
|
|
1929
|
+
case 18:
|
|
1930
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
1859
1931
|
token = this.configuration.accessToken;
|
|
1860
1932
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
1861
|
-
case
|
|
1862
|
-
tokenString =
|
|
1933
|
+
case 19:
|
|
1934
|
+
tokenString = _14.sent();
|
|
1863
1935
|
if (tokenString) {
|
|
1864
1936
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1865
1937
|
}
|
|
1866
|
-
|
|
1867
|
-
case 18:
|
|
1868
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
1869
|
-
_s = headerParameters;
|
|
1870
|
-
_t = "x-guest-token";
|
|
1871
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1872
|
-
case 19:
|
|
1873
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
1874
|
-
_12.label = 20;
|
|
1938
|
+
_14.label = 20;
|
|
1875
1939
|
case 20:
|
|
1876
1940
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
1877
1941
|
_u = headerParameters;
|
|
1878
|
-
_v = "
|
|
1879
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1942
|
+
_v = "x-guest-token";
|
|
1943
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
1880
1944
|
case 21:
|
|
1881
|
-
_u[_v] =
|
|
1882
|
-
|
|
1945
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
1946
|
+
_14.label = 22;
|
|
1883
1947
|
case 22:
|
|
1884
1948
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
1885
1949
|
_w = headerParameters;
|
|
1886
|
-
_x = "
|
|
1887
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1950
|
+
_x = "Sec-Ch-Ua";
|
|
1951
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
1888
1952
|
case 23:
|
|
1889
|
-
_w[_x] =
|
|
1890
|
-
|
|
1953
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
1954
|
+
_14.label = 24;
|
|
1891
1955
|
case 24:
|
|
1892
1956
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
1893
1957
|
_y = headerParameters;
|
|
1894
|
-
_z = "x-
|
|
1895
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
1958
|
+
_z = "x-client-transaction-id";
|
|
1959
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
1896
1960
|
case 25:
|
|
1897
|
-
_y[_z] =
|
|
1898
|
-
|
|
1961
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
1962
|
+
_14.label = 26;
|
|
1899
1963
|
case 26:
|
|
1900
1964
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
1901
1965
|
_0 = headerParameters;
|
|
1902
|
-
_1 = "user
|
|
1903
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
1966
|
+
_1 = "x-twitter-active-user";
|
|
1967
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
1904
1968
|
case 27:
|
|
1905
|
-
_0[_1] =
|
|
1906
|
-
|
|
1969
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
1970
|
+
_14.label = 28;
|
|
1907
1971
|
case 28:
|
|
1908
1972
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
1909
1973
|
_2 = headerParameters;
|
|
1910
|
-
_3 = "
|
|
1911
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1974
|
+
_3 = "user-agent";
|
|
1975
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
1912
1976
|
case 29:
|
|
1913
|
-
_2[_3] =
|
|
1914
|
-
|
|
1977
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
1978
|
+
_14.label = 30;
|
|
1915
1979
|
case 30:
|
|
1916
1980
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
1917
1981
|
_4 = headerParameters;
|
|
1918
|
-
_5 = "
|
|
1919
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1982
|
+
_5 = "Accept-Language";
|
|
1983
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
1920
1984
|
case 31:
|
|
1921
|
-
_4[_5] =
|
|
1922
|
-
|
|
1985
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
1986
|
+
_14.label = 32;
|
|
1923
1987
|
case 32:
|
|
1924
1988
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
1925
1989
|
_6 = headerParameters;
|
|
1926
|
-
_7 = "
|
|
1927
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1990
|
+
_7 = "Sec-Fetch-Site";
|
|
1991
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
1928
1992
|
case 33:
|
|
1929
|
-
_6[_7] =
|
|
1930
|
-
|
|
1993
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
1994
|
+
_14.label = 34;
|
|
1931
1995
|
case 34:
|
|
1932
1996
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
1933
1997
|
_8 = headerParameters;
|
|
1934
|
-
_9 = "
|
|
1935
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
1998
|
+
_9 = "x-twitter-auth-type";
|
|
1999
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
1936
2000
|
case 35:
|
|
1937
|
-
_8[_9] =
|
|
1938
|
-
|
|
2001
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
2002
|
+
_14.label = 36;
|
|
1939
2003
|
case 36:
|
|
1940
2004
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
1941
2005
|
_10 = headerParameters;
|
|
1942
|
-
_11 = "
|
|
1943
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2006
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
2007
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
1944
2008
|
case 37:
|
|
1945
|
-
_10[_11] =
|
|
1946
|
-
|
|
1947
|
-
case 38:
|
|
2009
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
2010
|
+
_14.label = 38;
|
|
2011
|
+
case 38:
|
|
2012
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
2013
|
+
_12 = headerParameters;
|
|
2014
|
+
_13 = "Accept-Encoding";
|
|
2015
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
2016
|
+
case 39:
|
|
2017
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2018
|
+
_14.label = 40;
|
|
2019
|
+
case 40: return [4 /*yield*/, this.request({
|
|
1948
2020
|
path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
1949
2021
|
method: 'GET',
|
|
1950
2022
|
headers: headerParameters,
|
|
1951
2023
|
query: queryParameters,
|
|
1952
2024
|
}, initOverrides)];
|
|
1953
|
-
case
|
|
1954
|
-
response =
|
|
2025
|
+
case 41:
|
|
2026
|
+
response = _14.sent();
|
|
1955
2027
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
1956
2028
|
}
|
|
1957
2029
|
});
|
|
@@ -1979,9 +2051,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
1979
2051
|
*/
|
|
1980
2052
|
TweetApi.prototype.getUserTweetsRaw = function (requestParameters, initOverrides) {
|
|
1981
2053
|
return __awaiter(this, void 0, void 0, function () {
|
|
1982
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
1983
|
-
return __generator(this, function (
|
|
1984
|
-
switch (
|
|
2054
|
+
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;
|
|
2055
|
+
return __generator(this, function (_14) {
|
|
2056
|
+
switch (_14.label) {
|
|
1985
2057
|
case 0:
|
|
1986
2058
|
if (requestParameters['pathQueryId'] == null) {
|
|
1987
2059
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserTweets().');
|
|
@@ -2011,162 +2083,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2011
2083
|
_b = "Accept";
|
|
2012
2084
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
2013
2085
|
case 1:
|
|
2014
|
-
_a[_b] =
|
|
2015
|
-
|
|
2086
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
2087
|
+
_14.label = 2;
|
|
2016
2088
|
case 2:
|
|
2017
2089
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
2018
2090
|
_c = headerParameters;
|
|
2019
2091
|
_d = "x-twitter-client-language";
|
|
2020
2092
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
2021
2093
|
case 3:
|
|
2022
|
-
_c[_d] =
|
|
2023
|
-
|
|
2094
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
2095
|
+
_14.label = 4;
|
|
2024
2096
|
case 4:
|
|
2025
2097
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
2026
2098
|
_e = headerParameters;
|
|
2027
|
-
_f = "
|
|
2028
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2099
|
+
_f = "Priority";
|
|
2100
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
2029
2101
|
case 5:
|
|
2030
|
-
_e[_f] =
|
|
2031
|
-
|
|
2102
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
2103
|
+
_14.label = 6;
|
|
2032
2104
|
case 6:
|
|
2033
2105
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
2034
2106
|
_g = headerParameters;
|
|
2035
|
-
_h = "
|
|
2036
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2107
|
+
_h = "Referer";
|
|
2108
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
2037
2109
|
case 7:
|
|
2038
|
-
_g[_h] =
|
|
2039
|
-
|
|
2110
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
2111
|
+
_14.label = 8;
|
|
2040
2112
|
case 8:
|
|
2041
2113
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
2042
2114
|
_j = headerParameters;
|
|
2043
|
-
_k = "Sec-
|
|
2044
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
2115
|
+
_k = "Sec-Fetch-Dest";
|
|
2116
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
2045
2117
|
case 9:
|
|
2046
|
-
_j[_k] =
|
|
2047
|
-
|
|
2118
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
2119
|
+
_14.label = 10;
|
|
2048
2120
|
case 10:
|
|
2049
2121
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
2050
2122
|
_l = headerParameters;
|
|
2051
|
-
_m = "Sec-
|
|
2052
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
2123
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
2124
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
2053
2125
|
case 11:
|
|
2054
|
-
_l[_m] =
|
|
2055
|
-
|
|
2126
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
2127
|
+
_14.label = 12;
|
|
2056
2128
|
case 12:
|
|
2057
2129
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
2058
2130
|
_o = headerParameters;
|
|
2059
|
-
_p = "
|
|
2060
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2131
|
+
_p = "Sec-Fetch-Mode";
|
|
2132
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
2061
2133
|
case 13:
|
|
2062
|
-
_o[_p] =
|
|
2063
|
-
|
|
2134
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
2135
|
+
_14.label = 14;
|
|
2064
2136
|
case 14:
|
|
2065
2137
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
2066
2138
|
_q = headerParameters;
|
|
2067
|
-
_r = "x-
|
|
2068
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
2139
|
+
_r = "x-csrf-token";
|
|
2140
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
2069
2141
|
case 15:
|
|
2070
|
-
_q[_r] =
|
|
2071
|
-
|
|
2142
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
2143
|
+
_14.label = 16;
|
|
2072
2144
|
case 16:
|
|
2073
|
-
if (!(this.configuration && this.configuration.
|
|
2145
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
2146
|
+
_s = headerParameters;
|
|
2147
|
+
_t = "x-client-uuid";
|
|
2148
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
2149
|
+
case 17:
|
|
2150
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
2151
|
+
_14.label = 18;
|
|
2152
|
+
case 18:
|
|
2153
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
2074
2154
|
token = this.configuration.accessToken;
|
|
2075
2155
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
2076
|
-
case
|
|
2077
|
-
tokenString =
|
|
2156
|
+
case 19:
|
|
2157
|
+
tokenString = _14.sent();
|
|
2078
2158
|
if (tokenString) {
|
|
2079
2159
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2080
2160
|
}
|
|
2081
|
-
|
|
2082
|
-
case 18:
|
|
2083
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
2084
|
-
_s = headerParameters;
|
|
2085
|
-
_t = "x-guest-token";
|
|
2086
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
2087
|
-
case 19:
|
|
2088
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
2089
|
-
_12.label = 20;
|
|
2161
|
+
_14.label = 20;
|
|
2090
2162
|
case 20:
|
|
2091
2163
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
2092
2164
|
_u = headerParameters;
|
|
2093
|
-
_v = "
|
|
2094
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2165
|
+
_v = "x-guest-token";
|
|
2166
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
2095
2167
|
case 21:
|
|
2096
|
-
_u[_v] =
|
|
2097
|
-
|
|
2168
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
2169
|
+
_14.label = 22;
|
|
2098
2170
|
case 22:
|
|
2099
2171
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
2100
2172
|
_w = headerParameters;
|
|
2101
|
-
_x = "
|
|
2102
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2173
|
+
_x = "Sec-Ch-Ua";
|
|
2174
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
2103
2175
|
case 23:
|
|
2104
|
-
_w[_x] =
|
|
2105
|
-
|
|
2176
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
2177
|
+
_14.label = 24;
|
|
2106
2178
|
case 24:
|
|
2107
2179
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
2108
2180
|
_y = headerParameters;
|
|
2109
|
-
_z = "x-
|
|
2110
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
2181
|
+
_z = "x-client-transaction-id";
|
|
2182
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
2111
2183
|
case 25:
|
|
2112
|
-
_y[_z] =
|
|
2113
|
-
|
|
2184
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
2185
|
+
_14.label = 26;
|
|
2114
2186
|
case 26:
|
|
2115
2187
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
2116
2188
|
_0 = headerParameters;
|
|
2117
|
-
_1 = "user
|
|
2118
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
2189
|
+
_1 = "x-twitter-active-user";
|
|
2190
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
2119
2191
|
case 27:
|
|
2120
|
-
_0[_1] =
|
|
2121
|
-
|
|
2192
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
2193
|
+
_14.label = 28;
|
|
2122
2194
|
case 28:
|
|
2123
2195
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
2124
2196
|
_2 = headerParameters;
|
|
2125
|
-
_3 = "
|
|
2126
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2197
|
+
_3 = "user-agent";
|
|
2198
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
2127
2199
|
case 29:
|
|
2128
|
-
_2[_3] =
|
|
2129
|
-
|
|
2200
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
2201
|
+
_14.label = 30;
|
|
2130
2202
|
case 30:
|
|
2131
2203
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
2132
2204
|
_4 = headerParameters;
|
|
2133
|
-
_5 = "
|
|
2134
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2205
|
+
_5 = "Accept-Language";
|
|
2206
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
2135
2207
|
case 31:
|
|
2136
|
-
_4[_5] =
|
|
2137
|
-
|
|
2208
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
2209
|
+
_14.label = 32;
|
|
2138
2210
|
case 32:
|
|
2139
2211
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
2140
2212
|
_6 = headerParameters;
|
|
2141
|
-
_7 = "
|
|
2142
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2213
|
+
_7 = "Sec-Fetch-Site";
|
|
2214
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
2143
2215
|
case 33:
|
|
2144
|
-
_6[_7] =
|
|
2145
|
-
|
|
2216
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
2217
|
+
_14.label = 34;
|
|
2146
2218
|
case 34:
|
|
2147
2219
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
2148
2220
|
_8 = headerParameters;
|
|
2149
|
-
_9 = "
|
|
2150
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2221
|
+
_9 = "x-twitter-auth-type";
|
|
2222
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
2151
2223
|
case 35:
|
|
2152
|
-
_8[_9] =
|
|
2153
|
-
|
|
2224
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
2225
|
+
_14.label = 36;
|
|
2154
2226
|
case 36:
|
|
2155
2227
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
2156
2228
|
_10 = headerParameters;
|
|
2157
|
-
_11 = "
|
|
2158
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2229
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
2230
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
2159
2231
|
case 37:
|
|
2160
|
-
_10[_11] =
|
|
2161
|
-
|
|
2162
|
-
case 38:
|
|
2232
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
2233
|
+
_14.label = 38;
|
|
2234
|
+
case 38:
|
|
2235
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
2236
|
+
_12 = headerParameters;
|
|
2237
|
+
_13 = "Accept-Encoding";
|
|
2238
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
2239
|
+
case 39:
|
|
2240
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2241
|
+
_14.label = 40;
|
|
2242
|
+
case 40: return [4 /*yield*/, this.request({
|
|
2163
2243
|
path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
2164
2244
|
method: 'GET',
|
|
2165
2245
|
headers: headerParameters,
|
|
2166
2246
|
query: queryParameters,
|
|
2167
2247
|
}, initOverrides)];
|
|
2168
|
-
case
|
|
2169
|
-
response =
|
|
2248
|
+
case 41:
|
|
2249
|
+
response = _14.sent();
|
|
2170
2250
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
2171
2251
|
}
|
|
2172
2252
|
});
|
|
@@ -2194,9 +2274,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2194
2274
|
*/
|
|
2195
2275
|
TweetApi.prototype.getUserTweetsAndRepliesRaw = function (requestParameters, initOverrides) {
|
|
2196
2276
|
return __awaiter(this, void 0, void 0, function () {
|
|
2197
|
-
var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r,
|
|
2198
|
-
return __generator(this, function (
|
|
2199
|
-
switch (
|
|
2277
|
+
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;
|
|
2278
|
+
return __generator(this, function (_14) {
|
|
2279
|
+
switch (_14.label) {
|
|
2200
2280
|
case 0:
|
|
2201
2281
|
if (requestParameters['pathQueryId'] == null) {
|
|
2202
2282
|
throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling getUserTweetsAndReplies().');
|
|
@@ -2226,162 +2306,170 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
2226
2306
|
_b = "Accept";
|
|
2227
2307
|
return [4 /*yield*/, this.configuration.apiKey("Accept")];
|
|
2228
2308
|
case 1:
|
|
2229
|
-
_a[_b] =
|
|
2230
|
-
|
|
2309
|
+
_a[_b] = _14.sent(); // Accept authentication
|
|
2310
|
+
_14.label = 2;
|
|
2231
2311
|
case 2:
|
|
2232
2312
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
|
|
2233
2313
|
_c = headerParameters;
|
|
2234
2314
|
_d = "x-twitter-client-language";
|
|
2235
2315
|
return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
|
|
2236
2316
|
case 3:
|
|
2237
|
-
_c[_d] =
|
|
2238
|
-
|
|
2317
|
+
_c[_d] = _14.sent(); // ClientLanguage authentication
|
|
2318
|
+
_14.label = 4;
|
|
2239
2319
|
case 4:
|
|
2240
2320
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
|
|
2241
2321
|
_e = headerParameters;
|
|
2242
|
-
_f = "
|
|
2243
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2322
|
+
_f = "Priority";
|
|
2323
|
+
return [4 /*yield*/, this.configuration.apiKey("Priority")];
|
|
2244
2324
|
case 5:
|
|
2245
|
-
_e[_f] =
|
|
2246
|
-
|
|
2325
|
+
_e[_f] = _14.sent(); // Priority authentication
|
|
2326
|
+
_14.label = 6;
|
|
2247
2327
|
case 6:
|
|
2248
2328
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
|
|
2249
2329
|
_g = headerParameters;
|
|
2250
|
-
_h = "
|
|
2251
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2330
|
+
_h = "Referer";
|
|
2331
|
+
return [4 /*yield*/, this.configuration.apiKey("Referer")];
|
|
2252
2332
|
case 7:
|
|
2253
|
-
_g[_h] =
|
|
2254
|
-
|
|
2333
|
+
_g[_h] = _14.sent(); // Referer authentication
|
|
2334
|
+
_14.label = 8;
|
|
2255
2335
|
case 8:
|
|
2256
2336
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
|
|
2257
2337
|
_j = headerParameters;
|
|
2258
|
-
_k = "Sec-
|
|
2259
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
2338
|
+
_k = "Sec-Fetch-Dest";
|
|
2339
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
|
|
2260
2340
|
case 9:
|
|
2261
|
-
_j[_k] =
|
|
2262
|
-
|
|
2341
|
+
_j[_k] = _14.sent(); // SecFetchDest authentication
|
|
2342
|
+
_14.label = 10;
|
|
2263
2343
|
case 10:
|
|
2264
2344
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
|
|
2265
2345
|
_l = headerParameters;
|
|
2266
|
-
_m = "Sec-
|
|
2267
|
-
return [4 /*yield*/, this.configuration.apiKey("Sec-
|
|
2346
|
+
_m = "Sec-Ch-Ua-Platform";
|
|
2347
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
|
|
2268
2348
|
case 11:
|
|
2269
|
-
_l[_m] =
|
|
2270
|
-
|
|
2349
|
+
_l[_m] = _14.sent(); // SecChUaPlatform authentication
|
|
2350
|
+
_14.label = 12;
|
|
2271
2351
|
case 12:
|
|
2272
2352
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
|
|
2273
2353
|
_o = headerParameters;
|
|
2274
|
-
_p = "
|
|
2275
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2354
|
+
_p = "Sec-Fetch-Mode";
|
|
2355
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
|
|
2276
2356
|
case 13:
|
|
2277
|
-
_o[_p] =
|
|
2278
|
-
|
|
2357
|
+
_o[_p] = _14.sent(); // SecFetchMode authentication
|
|
2358
|
+
_14.label = 14;
|
|
2279
2359
|
case 14:
|
|
2280
2360
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
|
|
2281
2361
|
_q = headerParameters;
|
|
2282
|
-
_r = "x-
|
|
2283
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
2362
|
+
_r = "x-csrf-token";
|
|
2363
|
+
return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
|
|
2284
2364
|
case 15:
|
|
2285
|
-
_q[_r] =
|
|
2286
|
-
|
|
2365
|
+
_q[_r] = _14.sent(); // CsrfToken authentication
|
|
2366
|
+
_14.label = 16;
|
|
2287
2367
|
case 16:
|
|
2288
|
-
if (!(this.configuration && this.configuration.
|
|
2368
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
|
|
2369
|
+
_s = headerParameters;
|
|
2370
|
+
_t = "x-client-uuid";
|
|
2371
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
|
|
2372
|
+
case 17:
|
|
2373
|
+
_s[_t] = _14.sent(); // ClientUuid authentication
|
|
2374
|
+
_14.label = 18;
|
|
2375
|
+
case 18:
|
|
2376
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
|
|
2289
2377
|
token = this.configuration.accessToken;
|
|
2290
2378
|
return [4 /*yield*/, token("BearerAuth", [])];
|
|
2291
|
-
case
|
|
2292
|
-
tokenString =
|
|
2379
|
+
case 19:
|
|
2380
|
+
tokenString = _14.sent();
|
|
2293
2381
|
if (tokenString) {
|
|
2294
2382
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2295
2383
|
}
|
|
2296
|
-
|
|
2297
|
-
case 18:
|
|
2298
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
|
|
2299
|
-
_s = headerParameters;
|
|
2300
|
-
_t = "x-guest-token";
|
|
2301
|
-
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
2302
|
-
case 19:
|
|
2303
|
-
_s[_t] = _12.sent(); // GuestToken authentication
|
|
2304
|
-
_12.label = 20;
|
|
2384
|
+
_14.label = 20;
|
|
2305
2385
|
case 20:
|
|
2306
2386
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
|
|
2307
2387
|
_u = headerParameters;
|
|
2308
|
-
_v = "
|
|
2309
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2388
|
+
_v = "x-guest-token";
|
|
2389
|
+
return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
|
|
2310
2390
|
case 21:
|
|
2311
|
-
_u[_v] =
|
|
2312
|
-
|
|
2391
|
+
_u[_v] = _14.sent(); // GuestToken authentication
|
|
2392
|
+
_14.label = 22;
|
|
2313
2393
|
case 22:
|
|
2314
2394
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
|
|
2315
2395
|
_w = headerParameters;
|
|
2316
|
-
_x = "
|
|
2317
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2396
|
+
_x = "Sec-Ch-Ua";
|
|
2397
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
|
|
2318
2398
|
case 23:
|
|
2319
|
-
_w[_x] =
|
|
2320
|
-
|
|
2399
|
+
_w[_x] = _14.sent(); // SecChUa authentication
|
|
2400
|
+
_14.label = 24;
|
|
2321
2401
|
case 24:
|
|
2322
2402
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
|
|
2323
2403
|
_y = headerParameters;
|
|
2324
|
-
_z = "x-
|
|
2325
|
-
return [4 /*yield*/, this.configuration.apiKey("x-
|
|
2404
|
+
_z = "x-client-transaction-id";
|
|
2405
|
+
return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
|
|
2326
2406
|
case 25:
|
|
2327
|
-
_y[_z] =
|
|
2328
|
-
|
|
2407
|
+
_y[_z] = _14.sent(); // ClientTransactionId authentication
|
|
2408
|
+
_14.label = 26;
|
|
2329
2409
|
case 26:
|
|
2330
2410
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
|
|
2331
2411
|
_0 = headerParameters;
|
|
2332
|
-
_1 = "user
|
|
2333
|
-
return [4 /*yield*/, this.configuration.apiKey("user
|
|
2412
|
+
_1 = "x-twitter-active-user";
|
|
2413
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
|
|
2334
2414
|
case 27:
|
|
2335
|
-
_0[_1] =
|
|
2336
|
-
|
|
2415
|
+
_0[_1] = _14.sent(); // ActiveUser authentication
|
|
2416
|
+
_14.label = 28;
|
|
2337
2417
|
case 28:
|
|
2338
2418
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
|
|
2339
2419
|
_2 = headerParameters;
|
|
2340
|
-
_3 = "
|
|
2341
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2420
|
+
_3 = "user-agent";
|
|
2421
|
+
return [4 /*yield*/, this.configuration.apiKey("user-agent")];
|
|
2342
2422
|
case 29:
|
|
2343
|
-
_2[_3] =
|
|
2344
|
-
|
|
2423
|
+
_2[_3] = _14.sent(); // UserAgent authentication
|
|
2424
|
+
_14.label = 30;
|
|
2345
2425
|
case 30:
|
|
2346
2426
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
|
|
2347
2427
|
_4 = headerParameters;
|
|
2348
|
-
_5 = "
|
|
2349
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2428
|
+
_5 = "Accept-Language";
|
|
2429
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
|
|
2350
2430
|
case 31:
|
|
2351
|
-
_4[_5] =
|
|
2352
|
-
|
|
2431
|
+
_4[_5] = _14.sent(); // AcceptLanguage authentication
|
|
2432
|
+
_14.label = 32;
|
|
2353
2433
|
case 32:
|
|
2354
2434
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
|
|
2355
2435
|
_6 = headerParameters;
|
|
2356
|
-
_7 = "
|
|
2357
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2436
|
+
_7 = "Sec-Fetch-Site";
|
|
2437
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
|
|
2358
2438
|
case 33:
|
|
2359
|
-
_6[_7] =
|
|
2360
|
-
|
|
2439
|
+
_6[_7] = _14.sent(); // SecFetchSite authentication
|
|
2440
|
+
_14.label = 34;
|
|
2361
2441
|
case 34:
|
|
2362
2442
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
|
|
2363
2443
|
_8 = headerParameters;
|
|
2364
|
-
_9 = "
|
|
2365
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2444
|
+
_9 = "x-twitter-auth-type";
|
|
2445
|
+
return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
|
|
2366
2446
|
case 35:
|
|
2367
|
-
_8[_9] =
|
|
2368
|
-
|
|
2447
|
+
_8[_9] = _14.sent(); // AuthType authentication
|
|
2448
|
+
_14.label = 36;
|
|
2369
2449
|
case 36:
|
|
2370
2450
|
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
|
|
2371
2451
|
_10 = headerParameters;
|
|
2372
|
-
_11 = "
|
|
2373
|
-
return [4 /*yield*/, this.configuration.apiKey("
|
|
2452
|
+
_11 = "Sec-Ch-Ua-Mobile";
|
|
2453
|
+
return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
|
|
2374
2454
|
case 37:
|
|
2375
|
-
_10[_11] =
|
|
2376
|
-
|
|
2377
|
-
case 38:
|
|
2455
|
+
_10[_11] = _14.sent(); // SecChUaMobile authentication
|
|
2456
|
+
_14.label = 38;
|
|
2457
|
+
case 38:
|
|
2458
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 40];
|
|
2459
|
+
_12 = headerParameters;
|
|
2460
|
+
_13 = "Accept-Encoding";
|
|
2461
|
+
return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
|
|
2462
|
+
case 39:
|
|
2463
|
+
_12[_13] = _14.sent(); // AcceptEncoding authentication
|
|
2464
|
+
_14.label = 40;
|
|
2465
|
+
case 40: return [4 /*yield*/, this.request({
|
|
2378
2466
|
path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
|
|
2379
2467
|
method: 'GET',
|
|
2380
2468
|
headers: headerParameters,
|
|
2381
2469
|
query: queryParameters,
|
|
2382
2470
|
}, initOverrides)];
|
|
2383
|
-
case
|
|
2384
|
-
response =
|
|
2471
|
+
case 41:
|
|
2472
|
+
response = _14.sent();
|
|
2385
2473
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserTweetsResponseFromJSON)(jsonValue); })];
|
|
2386
2474
|
}
|
|
2387
2475
|
});
|