twitter-openapi-typescript-generated 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/DefaultApi.d.ts.map +1 -1
  3. package/dist/apis/DefaultApi.js +172 -156
  4. package/dist/apis/DefaultApi.js.map +1 -1
  5. package/dist/apis/OtherApi.d.ts.map +1 -1
  6. package/dist/apis/OtherApi.js +86 -78
  7. package/dist/apis/OtherApi.js.map +1 -1
  8. package/dist/apis/PostApi.d.ts.map +1 -1
  9. package/dist/apis/PostApi.js +688 -624
  10. package/dist/apis/PostApi.js.map +1 -1
  11. package/dist/apis/TweetApi.d.ts.map +1 -1
  12. package/dist/apis/TweetApi.js +946 -858
  13. package/dist/apis/TweetApi.js.map +1 -1
  14. package/dist/apis/UserApi.d.ts.map +1 -1
  15. package/dist/apis/UserApi.js +172 -156
  16. package/dist/apis/UserApi.js.map +1 -1
  17. package/dist/apis/UserListApi.d.ts.map +1 -1
  18. package/dist/apis/UserListApi.js +430 -390
  19. package/dist/apis/UserListApi.js.map +1 -1
  20. package/dist/apis/UsersApi.d.ts.map +1 -1
  21. package/dist/apis/UsersApi.js +86 -78
  22. package/dist/apis/UsersApi.js.map +1 -1
  23. package/dist/apis/V11GetApi.d.ts.map +1 -1
  24. package/dist/apis/V11GetApi.js +172 -156
  25. package/dist/apis/V11GetApi.js.map +1 -1
  26. package/dist/apis/V11PostApi.d.ts.map +1 -1
  27. package/dist/apis/V11PostApi.js +170 -154
  28. package/dist/apis/V11PostApi.js.map +1 -1
  29. package/dist/apis/V20GetApi.d.ts.map +1 -1
  30. package/dist/apis/V20GetApi.js +86 -78
  31. package/dist/apis/V20GetApi.js.map +1 -1
  32. package/dist/models/AuthorCommunityRelationship.d.ts +1 -0
  33. package/dist/models/AuthorCommunityRelationship.d.ts.map +1 -1
  34. package/dist/models/AuthorCommunityRelationship.js +2 -1
  35. package/dist/models/AuthorCommunityRelationship.js.map +1 -1
  36. package/dist/models/CommunityActions.d.ts +11 -4
  37. package/dist/models/CommunityActions.d.ts.map +1 -1
  38. package/dist/models/CommunityActions.js +7 -12
  39. package/dist/models/CommunityActions.js.map +1 -1
  40. package/dist/models/CommunityData.d.ts +1 -1
  41. package/dist/models/CommunityData.d.ts.map +1 -1
  42. package/dist/models/CommunityData.js +1 -3
  43. package/dist/models/CommunityData.js.map +1 -1
  44. package/dist/models/CommunityRelationship.d.ts +53 -0
  45. package/dist/models/CommunityRelationship.d.ts.map +1 -0
  46. package/dist/models/CommunityRelationship.js +61 -0
  47. package/dist/models/CommunityRelationship.js.map +1 -0
  48. package/dist/models/CommunityUnpinActionResult.d.ts +33 -0
  49. package/dist/models/CommunityUnpinActionResult.d.ts.map +1 -0
  50. package/dist/models/CommunityUnpinActionResult.js +49 -0
  51. package/dist/models/CommunityUnpinActionResult.js.map +1 -0
  52. package/dist/models/CursorType.d.ts +1 -0
  53. package/dist/models/CursorType.d.ts.map +1 -1
  54. package/dist/models/CursorType.js +2 -1
  55. package/dist/models/CursorType.js.map +1 -1
  56. package/dist/models/DisplayTreatment.d.ts +6 -0
  57. package/dist/models/DisplayTreatment.d.ts.map +1 -1
  58. package/dist/models/DisplayTreatment.js +2 -0
  59. package/dist/models/DisplayTreatment.js.map +1 -1
  60. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +1 -1
  61. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
  62. package/dist/models/PostCreateTweetRequestVariablesMedia.js +2 -4
  63. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
  64. package/dist/models/Tweet.d.ts +7 -0
  65. package/dist/models/Tweet.d.ts.map +1 -1
  66. package/dist/models/Tweet.js +3 -0
  67. package/dist/models/Tweet.js.map +1 -1
  68. package/dist/models/TypeName.d.ts +1 -0
  69. package/dist/models/TypeName.d.ts.map +1 -1
  70. package/dist/models/TypeName.js +1 -0
  71. package/dist/models/TypeName.js.map +1 -1
  72. package/dist/models/index.d.ts +2 -0
  73. package/dist/models/index.d.ts.map +1 -1
  74. package/dist/models/index.js +2 -0
  75. package/dist/models/index.js.map +1 -1
  76. package/package.json +1 -1
@@ -80,9 +80,9 @@ var PostApi = /** @class */ (function (_super) {
80
80
  */
81
81
  PostApi.prototype.postCreateBookmarkRaw = 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, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
84
- return __generator(this, function (_10) {
85
- switch (_10.label) {
83
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
84
+ return __generator(this, function (_12) {
85
+ switch (_12.label) {
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 postCreateBookmark().');
@@ -95,158 +95,166 @@ var PostApi = /** @class */ (function (_super) {
95
95
  headerParameters['Content-Type'] = 'application/json';
96
96
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
97
97
  _a = headerParameters;
98
- _b = "x-twitter-client-language";
99
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
98
+ _b = "Accept";
99
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
100
100
  case 1:
101
- _a[_b] = _10.sent(); // ClientLanguage authentication
102
- _10.label = 2;
101
+ _a[_b] = _12.sent(); // Accept authentication
102
+ _12.label = 2;
103
103
  case 2:
104
104
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
105
105
  _c = headerParameters;
106
- _d = "Accept";
107
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
106
+ _d = "x-twitter-client-language";
107
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
108
108
  case 3:
109
- _c[_d] = _10.sent(); // Accept authentication
110
- _10.label = 4;
109
+ _c[_d] = _12.sent(); // ClientLanguage authentication
110
+ _12.label = 4;
111
111
  case 4:
112
112
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
113
113
  _e = headerParameters;
114
- _f = "Priority";
115
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
114
+ _f = "Referer";
115
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
116
116
  case 5:
117
- _e[_f] = _10.sent(); // Priority authentication
118
- _10.label = 6;
117
+ _e[_f] = _12.sent(); // Referer authentication
118
+ _12.label = 6;
119
119
  case 6:
120
120
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
121
121
  _g = headerParameters;
122
122
  _h = "Sec-Fetch-Dest";
123
123
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
124
124
  case 7:
125
- _g[_h] = _10.sent(); // SecFetchDest authentication
126
- _10.label = 8;
125
+ _g[_h] = _12.sent(); // SecFetchDest authentication
126
+ _12.label = 8;
127
127
  case 8:
128
128
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
129
129
  _j = headerParameters;
130
- _k = "Referer";
131
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
130
+ _k = "Sec-Ch-Ua-Platform";
131
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
132
132
  case 9:
133
- _j[_k] = _10.sent(); // Referer authentication
134
- _10.label = 10;
133
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
134
+ _12.label = 10;
135
135
  case 10:
136
136
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
137
137
  _l = headerParameters;
138
- _m = "Sec-Ch-Ua-Platform";
139
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
138
+ _m = "Sec-Fetch-Mode";
139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
140
140
  case 11:
141
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
142
- _10.label = 12;
141
+ _l[_m] = _12.sent(); // SecFetchMode authentication
142
+ _12.label = 12;
143
143
  case 12:
144
144
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
145
145
  _o = headerParameters;
146
- _p = "Sec-Fetch-Mode";
147
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
146
+ _p = "x-csrf-token";
147
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
148
148
  case 13:
149
- _o[_p] = _10.sent(); // SecFetchMode authentication
150
- _10.label = 14;
149
+ _o[_p] = _12.sent(); // CsrfToken authentication
150
+ _12.label = 14;
151
151
  case 14:
152
152
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
153
153
  _q = headerParameters;
154
- _r = "x-csrf-token";
155
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
154
+ _r = "x-client-uuid";
155
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
156
156
  case 15:
157
- _q[_r] = _10.sent(); // CsrfToken authentication
158
- _10.label = 16;
157
+ _q[_r] = _12.sent(); // ClientUuid authentication
158
+ _12.label = 16;
159
159
  case 16:
160
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
161
- _s = headerParameters;
162
- _t = "x-guest-token";
163
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
164
- case 17:
165
- _s[_t] = _10.sent(); // GuestToken authentication
166
- _10.label = 18;
167
- case 18:
168
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
160
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
169
161
  token = this.configuration.accessToken;
170
162
  return [4 /*yield*/, token("BearerAuth", [])];
171
- case 19:
172
- tokenString = _10.sent();
163
+ case 17:
164
+ tokenString = _12.sent();
173
165
  if (tokenString) {
174
166
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
175
167
  }
176
- _10.label = 20;
168
+ _12.label = 18;
169
+ case 18:
170
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
171
+ _s = headerParameters;
172
+ _t = "x-guest-token";
173
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
174
+ case 19:
175
+ _s[_t] = _12.sent(); // GuestToken authentication
176
+ _12.label = 20;
177
177
  case 20:
178
178
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
179
179
  _u = headerParameters;
180
180
  _v = "Sec-Ch-Ua";
181
181
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
182
182
  case 21:
183
- _u[_v] = _10.sent(); // SecChUa authentication
184
- _10.label = 22;
183
+ _u[_v] = _12.sent(); // SecChUa authentication
184
+ _12.label = 22;
185
185
  case 22:
186
186
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
187
187
  _w = headerParameters;
188
- _x = "x-twitter-active-user";
189
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
188
+ _x = "x-client-transaction-id";
189
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
190
190
  case 23:
191
- _w[_x] = _10.sent(); // ActiveUser authentication
192
- _10.label = 24;
191
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
192
+ _12.label = 24;
193
193
  case 24:
194
194
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
195
195
  _y = headerParameters;
196
- _z = "user-agent";
197
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
196
+ _z = "x-twitter-active-user";
197
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
198
198
  case 25:
199
- _y[_z] = _10.sent(); // UserAgent authentication
200
- _10.label = 26;
199
+ _y[_z] = _12.sent(); // ActiveUser authentication
200
+ _12.label = 26;
201
201
  case 26:
202
202
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
203
203
  _0 = headerParameters;
204
- _1 = "Accept-Language";
205
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
204
+ _1 = "user-agent";
205
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
206
206
  case 27:
207
- _0[_1] = _10.sent(); // AcceptLanguage authentication
208
- _10.label = 28;
207
+ _0[_1] = _12.sent(); // UserAgent authentication
208
+ _12.label = 28;
209
209
  case 28:
210
210
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
211
211
  _2 = headerParameters;
212
- _3 = "Sec-Fetch-Site";
213
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
212
+ _3 = "Accept-Language";
213
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
214
214
  case 29:
215
- _2[_3] = _10.sent(); // SecFetchSite authentication
216
- _10.label = 30;
215
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
216
+ _12.label = 30;
217
217
  case 30:
218
218
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
219
219
  _4 = headerParameters;
220
- _5 = "x-twitter-auth-type";
221
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
220
+ _5 = "Sec-Fetch-Site";
221
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
222
222
  case 31:
223
- _4[_5] = _10.sent(); // AuthType authentication
224
- _10.label = 32;
223
+ _4[_5] = _12.sent(); // SecFetchSite authentication
224
+ _12.label = 32;
225
225
  case 32:
226
226
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
227
227
  _6 = headerParameters;
228
- _7 = "Sec-Ch-Ua-Mobile";
229
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
228
+ _7 = "x-twitter-auth-type";
229
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
230
230
  case 33:
231
- _6[_7] = _10.sent(); // SecChUaMobile authentication
232
- _10.label = 34;
231
+ _6[_7] = _12.sent(); // AuthType authentication
232
+ _12.label = 34;
233
233
  case 34:
234
234
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
235
235
  _8 = headerParameters;
236
- _9 = "Accept-Encoding";
237
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
236
+ _9 = "Sec-Ch-Ua-Mobile";
237
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
238
238
  case 35:
239
- _8[_9] = _10.sent(); // AcceptEncoding authentication
240
- _10.label = 36;
241
- case 36: return [4 /*yield*/, this.request({
239
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
240
+ _12.label = 36;
241
+ case 36:
242
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
243
+ _10 = headerParameters;
244
+ _11 = "Accept-Encoding";
245
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
246
+ case 37:
247
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
248
+ _12.label = 38;
249
+ case 38: return [4 /*yield*/, this.request({
242
250
  path: "/graphql/{pathQueryId}/CreateBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
243
251
  method: 'POST',
244
252
  headers: headerParameters,
245
253
  query: queryParameters,
246
254
  body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
247
255
  }, initOverrides)];
248
- case 37:
249
- response = _10.sent();
256
+ case 39:
257
+ response = _12.sent();
250
258
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateBookmark200ResponseFromJSON)(jsonValue); })];
251
259
  }
252
260
  });
@@ -274,9 +282,9 @@ var PostApi = /** @class */ (function (_super) {
274
282
  */
275
283
  PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
276
284
  return __awaiter(this, void 0, void 0, function () {
277
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
278
- return __generator(this, function (_10) {
279
- switch (_10.label) {
285
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
286
+ return __generator(this, function (_12) {
287
+ switch (_12.label) {
280
288
  case 0:
281
289
  if (requestParameters['pathQueryId'] == null) {
282
290
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateRetweet().');
@@ -289,158 +297,166 @@ var PostApi = /** @class */ (function (_super) {
289
297
  headerParameters['Content-Type'] = 'application/json';
290
298
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
291
299
  _a = headerParameters;
292
- _b = "x-twitter-client-language";
293
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
300
+ _b = "Accept";
301
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
294
302
  case 1:
295
- _a[_b] = _10.sent(); // ClientLanguage authentication
296
- _10.label = 2;
303
+ _a[_b] = _12.sent(); // Accept authentication
304
+ _12.label = 2;
297
305
  case 2:
298
306
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
299
307
  _c = headerParameters;
300
- _d = "Accept";
301
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
308
+ _d = "x-twitter-client-language";
309
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
302
310
  case 3:
303
- _c[_d] = _10.sent(); // Accept authentication
304
- _10.label = 4;
311
+ _c[_d] = _12.sent(); // ClientLanguage authentication
312
+ _12.label = 4;
305
313
  case 4:
306
314
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
307
315
  _e = headerParameters;
308
- _f = "Priority";
309
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
316
+ _f = "Referer";
317
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
310
318
  case 5:
311
- _e[_f] = _10.sent(); // Priority authentication
312
- _10.label = 6;
319
+ _e[_f] = _12.sent(); // Referer authentication
320
+ _12.label = 6;
313
321
  case 6:
314
322
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
315
323
  _g = headerParameters;
316
324
  _h = "Sec-Fetch-Dest";
317
325
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
318
326
  case 7:
319
- _g[_h] = _10.sent(); // SecFetchDest authentication
320
- _10.label = 8;
327
+ _g[_h] = _12.sent(); // SecFetchDest authentication
328
+ _12.label = 8;
321
329
  case 8:
322
330
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
323
331
  _j = headerParameters;
324
- _k = "Referer";
325
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
332
+ _k = "Sec-Ch-Ua-Platform";
333
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
326
334
  case 9:
327
- _j[_k] = _10.sent(); // Referer authentication
328
- _10.label = 10;
335
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
336
+ _12.label = 10;
329
337
  case 10:
330
338
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
331
339
  _l = headerParameters;
332
- _m = "Sec-Ch-Ua-Platform";
333
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
340
+ _m = "Sec-Fetch-Mode";
341
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
334
342
  case 11:
335
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
336
- _10.label = 12;
343
+ _l[_m] = _12.sent(); // SecFetchMode authentication
344
+ _12.label = 12;
337
345
  case 12:
338
346
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
339
347
  _o = headerParameters;
340
- _p = "Sec-Fetch-Mode";
341
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
348
+ _p = "x-csrf-token";
349
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
342
350
  case 13:
343
- _o[_p] = _10.sent(); // SecFetchMode authentication
344
- _10.label = 14;
351
+ _o[_p] = _12.sent(); // CsrfToken authentication
352
+ _12.label = 14;
345
353
  case 14:
346
354
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
347
355
  _q = headerParameters;
348
- _r = "x-csrf-token";
349
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
356
+ _r = "x-client-uuid";
357
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
350
358
  case 15:
351
- _q[_r] = _10.sent(); // CsrfToken authentication
352
- _10.label = 16;
359
+ _q[_r] = _12.sent(); // ClientUuid authentication
360
+ _12.label = 16;
353
361
  case 16:
354
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
355
- _s = headerParameters;
356
- _t = "x-guest-token";
357
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
358
- case 17:
359
- _s[_t] = _10.sent(); // GuestToken authentication
360
- _10.label = 18;
361
- case 18:
362
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
362
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
363
363
  token = this.configuration.accessToken;
364
364
  return [4 /*yield*/, token("BearerAuth", [])];
365
- case 19:
366
- tokenString = _10.sent();
365
+ case 17:
366
+ tokenString = _12.sent();
367
367
  if (tokenString) {
368
368
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
369
369
  }
370
- _10.label = 20;
370
+ _12.label = 18;
371
+ case 18:
372
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
373
+ _s = headerParameters;
374
+ _t = "x-guest-token";
375
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
376
+ case 19:
377
+ _s[_t] = _12.sent(); // GuestToken authentication
378
+ _12.label = 20;
371
379
  case 20:
372
380
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
373
381
  _u = headerParameters;
374
382
  _v = "Sec-Ch-Ua";
375
383
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
376
384
  case 21:
377
- _u[_v] = _10.sent(); // SecChUa authentication
378
- _10.label = 22;
385
+ _u[_v] = _12.sent(); // SecChUa authentication
386
+ _12.label = 22;
379
387
  case 22:
380
388
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
381
389
  _w = headerParameters;
382
- _x = "x-twitter-active-user";
383
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
390
+ _x = "x-client-transaction-id";
391
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
384
392
  case 23:
385
- _w[_x] = _10.sent(); // ActiveUser authentication
386
- _10.label = 24;
393
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
394
+ _12.label = 24;
387
395
  case 24:
388
396
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
389
397
  _y = headerParameters;
390
- _z = "user-agent";
391
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
398
+ _z = "x-twitter-active-user";
399
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
392
400
  case 25:
393
- _y[_z] = _10.sent(); // UserAgent authentication
394
- _10.label = 26;
401
+ _y[_z] = _12.sent(); // ActiveUser authentication
402
+ _12.label = 26;
395
403
  case 26:
396
404
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
397
405
  _0 = headerParameters;
398
- _1 = "Accept-Language";
399
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
406
+ _1 = "user-agent";
407
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
400
408
  case 27:
401
- _0[_1] = _10.sent(); // AcceptLanguage authentication
402
- _10.label = 28;
409
+ _0[_1] = _12.sent(); // UserAgent authentication
410
+ _12.label = 28;
403
411
  case 28:
404
412
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
405
413
  _2 = headerParameters;
406
- _3 = "Sec-Fetch-Site";
407
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
414
+ _3 = "Accept-Language";
415
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
408
416
  case 29:
409
- _2[_3] = _10.sent(); // SecFetchSite authentication
410
- _10.label = 30;
417
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
418
+ _12.label = 30;
411
419
  case 30:
412
420
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
413
421
  _4 = headerParameters;
414
- _5 = "x-twitter-auth-type";
415
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
422
+ _5 = "Sec-Fetch-Site";
423
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
416
424
  case 31:
417
- _4[_5] = _10.sent(); // AuthType authentication
418
- _10.label = 32;
425
+ _4[_5] = _12.sent(); // SecFetchSite authentication
426
+ _12.label = 32;
419
427
  case 32:
420
428
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
421
429
  _6 = headerParameters;
422
- _7 = "Sec-Ch-Ua-Mobile";
423
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
430
+ _7 = "x-twitter-auth-type";
431
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
424
432
  case 33:
425
- _6[_7] = _10.sent(); // SecChUaMobile authentication
426
- _10.label = 34;
433
+ _6[_7] = _12.sent(); // AuthType authentication
434
+ _12.label = 34;
427
435
  case 34:
428
436
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
429
437
  _8 = headerParameters;
430
- _9 = "Accept-Encoding";
431
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
438
+ _9 = "Sec-Ch-Ua-Mobile";
439
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
432
440
  case 35:
433
- _8[_9] = _10.sent(); // AcceptEncoding authentication
434
- _10.label = 36;
435
- case 36: return [4 /*yield*/, this.request({
441
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
442
+ _12.label = 36;
443
+ case 36:
444
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
445
+ _10 = headerParameters;
446
+ _11 = "Accept-Encoding";
447
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
448
+ case 37:
449
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
450
+ _12.label = 38;
451
+ case 38: return [4 /*yield*/, this.request({
436
452
  path: "/graphql/{pathQueryId}/CreateRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
437
453
  method: 'POST',
438
454
  headers: headerParameters,
439
455
  query: queryParameters,
440
456
  body: (0, index_1.PostCreateRetweetRequestToJSON)(requestParameters['postCreateRetweetRequest']),
441
457
  }, initOverrides)];
442
- case 37:
443
- response = _10.sent();
458
+ case 39:
459
+ response = _12.sent();
444
460
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateRetweet200ResponseFromJSON)(jsonValue); })];
445
461
  }
446
462
  });
@@ -468,9 +484,9 @@ var PostApi = /** @class */ (function (_super) {
468
484
  */
469
485
  PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
470
486
  return __awaiter(this, void 0, void 0, function () {
471
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
472
- return __generator(this, function (_10) {
473
- switch (_10.label) {
487
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
488
+ return __generator(this, function (_12) {
489
+ switch (_12.label) {
474
490
  case 0:
475
491
  if (requestParameters['pathQueryId'] == null) {
476
492
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateTweet().');
@@ -483,158 +499,166 @@ var PostApi = /** @class */ (function (_super) {
483
499
  headerParameters['Content-Type'] = 'application/json';
484
500
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
485
501
  _a = headerParameters;
486
- _b = "x-twitter-client-language";
487
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
502
+ _b = "Accept";
503
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
488
504
  case 1:
489
- _a[_b] = _10.sent(); // ClientLanguage authentication
490
- _10.label = 2;
505
+ _a[_b] = _12.sent(); // Accept authentication
506
+ _12.label = 2;
491
507
  case 2:
492
508
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
493
509
  _c = headerParameters;
494
- _d = "Accept";
495
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
510
+ _d = "x-twitter-client-language";
511
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
496
512
  case 3:
497
- _c[_d] = _10.sent(); // Accept authentication
498
- _10.label = 4;
513
+ _c[_d] = _12.sent(); // ClientLanguage authentication
514
+ _12.label = 4;
499
515
  case 4:
500
516
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
501
517
  _e = headerParameters;
502
- _f = "Priority";
503
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
518
+ _f = "Referer";
519
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
504
520
  case 5:
505
- _e[_f] = _10.sent(); // Priority authentication
506
- _10.label = 6;
521
+ _e[_f] = _12.sent(); // Referer authentication
522
+ _12.label = 6;
507
523
  case 6:
508
524
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
509
525
  _g = headerParameters;
510
526
  _h = "Sec-Fetch-Dest";
511
527
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
512
528
  case 7:
513
- _g[_h] = _10.sent(); // SecFetchDest authentication
514
- _10.label = 8;
529
+ _g[_h] = _12.sent(); // SecFetchDest authentication
530
+ _12.label = 8;
515
531
  case 8:
516
532
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
517
533
  _j = headerParameters;
518
- _k = "Referer";
519
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
534
+ _k = "Sec-Ch-Ua-Platform";
535
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
520
536
  case 9:
521
- _j[_k] = _10.sent(); // Referer authentication
522
- _10.label = 10;
537
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
538
+ _12.label = 10;
523
539
  case 10:
524
540
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
525
541
  _l = headerParameters;
526
- _m = "Sec-Ch-Ua-Platform";
527
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
542
+ _m = "Sec-Fetch-Mode";
543
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
528
544
  case 11:
529
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
530
- _10.label = 12;
545
+ _l[_m] = _12.sent(); // SecFetchMode authentication
546
+ _12.label = 12;
531
547
  case 12:
532
548
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
533
549
  _o = headerParameters;
534
- _p = "Sec-Fetch-Mode";
535
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
550
+ _p = "x-csrf-token";
551
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
536
552
  case 13:
537
- _o[_p] = _10.sent(); // SecFetchMode authentication
538
- _10.label = 14;
553
+ _o[_p] = _12.sent(); // CsrfToken authentication
554
+ _12.label = 14;
539
555
  case 14:
540
556
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
541
557
  _q = headerParameters;
542
- _r = "x-csrf-token";
543
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
558
+ _r = "x-client-uuid";
559
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
544
560
  case 15:
545
- _q[_r] = _10.sent(); // CsrfToken authentication
546
- _10.label = 16;
561
+ _q[_r] = _12.sent(); // ClientUuid authentication
562
+ _12.label = 16;
547
563
  case 16:
548
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
549
- _s = headerParameters;
550
- _t = "x-guest-token";
551
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
552
- case 17:
553
- _s[_t] = _10.sent(); // GuestToken authentication
554
- _10.label = 18;
555
- case 18:
556
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
564
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
557
565
  token = this.configuration.accessToken;
558
566
  return [4 /*yield*/, token("BearerAuth", [])];
559
- case 19:
560
- tokenString = _10.sent();
567
+ case 17:
568
+ tokenString = _12.sent();
561
569
  if (tokenString) {
562
570
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
563
571
  }
564
- _10.label = 20;
572
+ _12.label = 18;
573
+ case 18:
574
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
575
+ _s = headerParameters;
576
+ _t = "x-guest-token";
577
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
578
+ case 19:
579
+ _s[_t] = _12.sent(); // GuestToken authentication
580
+ _12.label = 20;
565
581
  case 20:
566
582
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
567
583
  _u = headerParameters;
568
584
  _v = "Sec-Ch-Ua";
569
585
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
570
586
  case 21:
571
- _u[_v] = _10.sent(); // SecChUa authentication
572
- _10.label = 22;
587
+ _u[_v] = _12.sent(); // SecChUa authentication
588
+ _12.label = 22;
573
589
  case 22:
574
590
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
575
591
  _w = headerParameters;
576
- _x = "x-twitter-active-user";
577
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
592
+ _x = "x-client-transaction-id";
593
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
578
594
  case 23:
579
- _w[_x] = _10.sent(); // ActiveUser authentication
580
- _10.label = 24;
595
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
596
+ _12.label = 24;
581
597
  case 24:
582
598
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
583
599
  _y = headerParameters;
584
- _z = "user-agent";
585
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
600
+ _z = "x-twitter-active-user";
601
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
586
602
  case 25:
587
- _y[_z] = _10.sent(); // UserAgent authentication
588
- _10.label = 26;
603
+ _y[_z] = _12.sent(); // ActiveUser authentication
604
+ _12.label = 26;
589
605
  case 26:
590
606
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
591
607
  _0 = headerParameters;
592
- _1 = "Accept-Language";
593
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
608
+ _1 = "user-agent";
609
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
594
610
  case 27:
595
- _0[_1] = _10.sent(); // AcceptLanguage authentication
596
- _10.label = 28;
611
+ _0[_1] = _12.sent(); // UserAgent authentication
612
+ _12.label = 28;
597
613
  case 28:
598
614
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
599
615
  _2 = headerParameters;
600
- _3 = "Sec-Fetch-Site";
601
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
616
+ _3 = "Accept-Language";
617
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
602
618
  case 29:
603
- _2[_3] = _10.sent(); // SecFetchSite authentication
604
- _10.label = 30;
619
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
620
+ _12.label = 30;
605
621
  case 30:
606
622
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
607
623
  _4 = headerParameters;
608
- _5 = "x-twitter-auth-type";
609
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
624
+ _5 = "Sec-Fetch-Site";
625
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
610
626
  case 31:
611
- _4[_5] = _10.sent(); // AuthType authentication
612
- _10.label = 32;
627
+ _4[_5] = _12.sent(); // SecFetchSite authentication
628
+ _12.label = 32;
613
629
  case 32:
614
630
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
615
631
  _6 = headerParameters;
616
- _7 = "Sec-Ch-Ua-Mobile";
617
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
632
+ _7 = "x-twitter-auth-type";
633
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
618
634
  case 33:
619
- _6[_7] = _10.sent(); // SecChUaMobile authentication
620
- _10.label = 34;
635
+ _6[_7] = _12.sent(); // AuthType authentication
636
+ _12.label = 34;
621
637
  case 34:
622
638
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
623
639
  _8 = headerParameters;
624
- _9 = "Accept-Encoding";
625
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
640
+ _9 = "Sec-Ch-Ua-Mobile";
641
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
626
642
  case 35:
627
- _8[_9] = _10.sent(); // AcceptEncoding authentication
628
- _10.label = 36;
629
- case 36: return [4 /*yield*/, this.request({
643
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
644
+ _12.label = 36;
645
+ case 36:
646
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
647
+ _10 = headerParameters;
648
+ _11 = "Accept-Encoding";
649
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
650
+ case 37:
651
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
652
+ _12.label = 38;
653
+ case 38: return [4 /*yield*/, this.request({
630
654
  path: "/graphql/{pathQueryId}/CreateTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
631
655
  method: 'POST',
632
656
  headers: headerParameters,
633
657
  query: queryParameters,
634
658
  body: (0, index_1.PostCreateTweetRequestToJSON)(requestParameters['postCreateTweetRequest']),
635
659
  }, initOverrides)];
636
- case 37:
637
- response = _10.sent();
660
+ case 39:
661
+ response = _12.sent();
638
662
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateTweet200ResponseFromJSON)(jsonValue); })];
639
663
  }
640
664
  });
@@ -662,9 +686,9 @@ var PostApi = /** @class */ (function (_super) {
662
686
  */
663
687
  PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
664
688
  return __awaiter(this, void 0, void 0, function () {
665
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
666
- return __generator(this, function (_10) {
667
- switch (_10.label) {
689
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
690
+ return __generator(this, function (_12) {
691
+ switch (_12.label) {
668
692
  case 0:
669
693
  if (requestParameters['pathQueryId'] == null) {
670
694
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
@@ -677,158 +701,166 @@ var PostApi = /** @class */ (function (_super) {
677
701
  headerParameters['Content-Type'] = 'application/json';
678
702
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
679
703
  _a = headerParameters;
680
- _b = "x-twitter-client-language";
681
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
704
+ _b = "Accept";
705
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
682
706
  case 1:
683
- _a[_b] = _10.sent(); // ClientLanguage authentication
684
- _10.label = 2;
707
+ _a[_b] = _12.sent(); // Accept authentication
708
+ _12.label = 2;
685
709
  case 2:
686
710
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
687
711
  _c = headerParameters;
688
- _d = "Accept";
689
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
712
+ _d = "x-twitter-client-language";
713
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
690
714
  case 3:
691
- _c[_d] = _10.sent(); // Accept authentication
692
- _10.label = 4;
715
+ _c[_d] = _12.sent(); // ClientLanguage authentication
716
+ _12.label = 4;
693
717
  case 4:
694
718
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
695
719
  _e = headerParameters;
696
- _f = "Priority";
697
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
720
+ _f = "Referer";
721
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
698
722
  case 5:
699
- _e[_f] = _10.sent(); // Priority authentication
700
- _10.label = 6;
723
+ _e[_f] = _12.sent(); // Referer authentication
724
+ _12.label = 6;
701
725
  case 6:
702
726
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
703
727
  _g = headerParameters;
704
728
  _h = "Sec-Fetch-Dest";
705
729
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
706
730
  case 7:
707
- _g[_h] = _10.sent(); // SecFetchDest authentication
708
- _10.label = 8;
731
+ _g[_h] = _12.sent(); // SecFetchDest authentication
732
+ _12.label = 8;
709
733
  case 8:
710
734
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
711
735
  _j = headerParameters;
712
- _k = "Referer";
713
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
736
+ _k = "Sec-Ch-Ua-Platform";
737
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
714
738
  case 9:
715
- _j[_k] = _10.sent(); // Referer authentication
716
- _10.label = 10;
739
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
740
+ _12.label = 10;
717
741
  case 10:
718
742
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
719
743
  _l = headerParameters;
720
- _m = "Sec-Ch-Ua-Platform";
721
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
744
+ _m = "Sec-Fetch-Mode";
745
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
722
746
  case 11:
723
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
724
- _10.label = 12;
747
+ _l[_m] = _12.sent(); // SecFetchMode authentication
748
+ _12.label = 12;
725
749
  case 12:
726
750
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
727
751
  _o = headerParameters;
728
- _p = "Sec-Fetch-Mode";
729
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
752
+ _p = "x-csrf-token";
753
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
730
754
  case 13:
731
- _o[_p] = _10.sent(); // SecFetchMode authentication
732
- _10.label = 14;
755
+ _o[_p] = _12.sent(); // CsrfToken authentication
756
+ _12.label = 14;
733
757
  case 14:
734
758
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
735
759
  _q = headerParameters;
736
- _r = "x-csrf-token";
737
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
760
+ _r = "x-client-uuid";
761
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
738
762
  case 15:
739
- _q[_r] = _10.sent(); // CsrfToken authentication
740
- _10.label = 16;
763
+ _q[_r] = _12.sent(); // ClientUuid authentication
764
+ _12.label = 16;
741
765
  case 16:
742
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
743
- _s = headerParameters;
744
- _t = "x-guest-token";
745
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
746
- case 17:
747
- _s[_t] = _10.sent(); // GuestToken authentication
748
- _10.label = 18;
749
- case 18:
750
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
766
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
751
767
  token = this.configuration.accessToken;
752
768
  return [4 /*yield*/, token("BearerAuth", [])];
753
- case 19:
754
- tokenString = _10.sent();
769
+ case 17:
770
+ tokenString = _12.sent();
755
771
  if (tokenString) {
756
772
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
757
773
  }
758
- _10.label = 20;
774
+ _12.label = 18;
775
+ case 18:
776
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
777
+ _s = headerParameters;
778
+ _t = "x-guest-token";
779
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
780
+ case 19:
781
+ _s[_t] = _12.sent(); // GuestToken authentication
782
+ _12.label = 20;
759
783
  case 20:
760
784
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
761
785
  _u = headerParameters;
762
786
  _v = "Sec-Ch-Ua";
763
787
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
764
788
  case 21:
765
- _u[_v] = _10.sent(); // SecChUa authentication
766
- _10.label = 22;
789
+ _u[_v] = _12.sent(); // SecChUa authentication
790
+ _12.label = 22;
767
791
  case 22:
768
792
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
769
793
  _w = headerParameters;
770
- _x = "x-twitter-active-user";
771
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
794
+ _x = "x-client-transaction-id";
795
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
772
796
  case 23:
773
- _w[_x] = _10.sent(); // ActiveUser authentication
774
- _10.label = 24;
797
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
798
+ _12.label = 24;
775
799
  case 24:
776
800
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
777
801
  _y = headerParameters;
778
- _z = "user-agent";
779
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
802
+ _z = "x-twitter-active-user";
803
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
780
804
  case 25:
781
- _y[_z] = _10.sent(); // UserAgent authentication
782
- _10.label = 26;
805
+ _y[_z] = _12.sent(); // ActiveUser authentication
806
+ _12.label = 26;
783
807
  case 26:
784
808
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
785
809
  _0 = headerParameters;
786
- _1 = "Accept-Language";
787
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
810
+ _1 = "user-agent";
811
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
788
812
  case 27:
789
- _0[_1] = _10.sent(); // AcceptLanguage authentication
790
- _10.label = 28;
813
+ _0[_1] = _12.sent(); // UserAgent authentication
814
+ _12.label = 28;
791
815
  case 28:
792
816
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
793
817
  _2 = headerParameters;
794
- _3 = "Sec-Fetch-Site";
795
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
818
+ _3 = "Accept-Language";
819
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
796
820
  case 29:
797
- _2[_3] = _10.sent(); // SecFetchSite authentication
798
- _10.label = 30;
821
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
822
+ _12.label = 30;
799
823
  case 30:
800
824
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
801
825
  _4 = headerParameters;
802
- _5 = "x-twitter-auth-type";
803
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
826
+ _5 = "Sec-Fetch-Site";
827
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
804
828
  case 31:
805
- _4[_5] = _10.sent(); // AuthType authentication
806
- _10.label = 32;
829
+ _4[_5] = _12.sent(); // SecFetchSite authentication
830
+ _12.label = 32;
807
831
  case 32:
808
832
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
809
833
  _6 = headerParameters;
810
- _7 = "Sec-Ch-Ua-Mobile";
811
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
834
+ _7 = "x-twitter-auth-type";
835
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
812
836
  case 33:
813
- _6[_7] = _10.sent(); // SecChUaMobile authentication
814
- _10.label = 34;
837
+ _6[_7] = _12.sent(); // AuthType authentication
838
+ _12.label = 34;
815
839
  case 34:
816
840
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
817
841
  _8 = headerParameters;
818
- _9 = "Accept-Encoding";
819
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
842
+ _9 = "Sec-Ch-Ua-Mobile";
843
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
820
844
  case 35:
821
- _8[_9] = _10.sent(); // AcceptEncoding authentication
822
- _10.label = 36;
823
- case 36: return [4 /*yield*/, this.request({
845
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
846
+ _12.label = 36;
847
+ case 36:
848
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
849
+ _10 = headerParameters;
850
+ _11 = "Accept-Encoding";
851
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
852
+ case 37:
853
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
854
+ _12.label = 38;
855
+ case 38: return [4 /*yield*/, this.request({
824
856
  path: "/graphql/{pathQueryId}/DeleteBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
825
857
  method: 'POST',
826
858
  headers: headerParameters,
827
859
  query: queryParameters,
828
860
  body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
829
861
  }, initOverrides)];
830
- case 37:
831
- response = _10.sent();
862
+ case 39:
863
+ response = _12.sent();
832
864
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteBookmark200ResponseFromJSON)(jsonValue); })];
833
865
  }
834
866
  });
@@ -856,9 +888,9 @@ var PostApi = /** @class */ (function (_super) {
856
888
  */
857
889
  PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
858
890
  return __awaiter(this, void 0, void 0, function () {
859
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
860
- return __generator(this, function (_10) {
861
- switch (_10.label) {
891
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
892
+ return __generator(this, function (_12) {
893
+ switch (_12.label) {
862
894
  case 0:
863
895
  if (requestParameters['pathQueryId'] == null) {
864
896
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteRetweet().');
@@ -871,158 +903,166 @@ var PostApi = /** @class */ (function (_super) {
871
903
  headerParameters['Content-Type'] = 'application/json';
872
904
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
873
905
  _a = headerParameters;
874
- _b = "x-twitter-client-language";
875
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
906
+ _b = "Accept";
907
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
876
908
  case 1:
877
- _a[_b] = _10.sent(); // ClientLanguage authentication
878
- _10.label = 2;
909
+ _a[_b] = _12.sent(); // Accept authentication
910
+ _12.label = 2;
879
911
  case 2:
880
912
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
881
913
  _c = headerParameters;
882
- _d = "Accept";
883
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
914
+ _d = "x-twitter-client-language";
915
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
884
916
  case 3:
885
- _c[_d] = _10.sent(); // Accept authentication
886
- _10.label = 4;
917
+ _c[_d] = _12.sent(); // ClientLanguage authentication
918
+ _12.label = 4;
887
919
  case 4:
888
920
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
889
921
  _e = headerParameters;
890
- _f = "Priority";
891
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
922
+ _f = "Referer";
923
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
892
924
  case 5:
893
- _e[_f] = _10.sent(); // Priority authentication
894
- _10.label = 6;
925
+ _e[_f] = _12.sent(); // Referer authentication
926
+ _12.label = 6;
895
927
  case 6:
896
928
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
897
929
  _g = headerParameters;
898
930
  _h = "Sec-Fetch-Dest";
899
931
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
900
932
  case 7:
901
- _g[_h] = _10.sent(); // SecFetchDest authentication
902
- _10.label = 8;
933
+ _g[_h] = _12.sent(); // SecFetchDest authentication
934
+ _12.label = 8;
903
935
  case 8:
904
936
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
905
937
  _j = headerParameters;
906
- _k = "Referer";
907
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
938
+ _k = "Sec-Ch-Ua-Platform";
939
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
908
940
  case 9:
909
- _j[_k] = _10.sent(); // Referer authentication
910
- _10.label = 10;
941
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
942
+ _12.label = 10;
911
943
  case 10:
912
944
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
913
945
  _l = headerParameters;
914
- _m = "Sec-Ch-Ua-Platform";
915
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
946
+ _m = "Sec-Fetch-Mode";
947
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
916
948
  case 11:
917
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
918
- _10.label = 12;
949
+ _l[_m] = _12.sent(); // SecFetchMode authentication
950
+ _12.label = 12;
919
951
  case 12:
920
952
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
921
953
  _o = headerParameters;
922
- _p = "Sec-Fetch-Mode";
923
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
954
+ _p = "x-csrf-token";
955
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
924
956
  case 13:
925
- _o[_p] = _10.sent(); // SecFetchMode authentication
926
- _10.label = 14;
957
+ _o[_p] = _12.sent(); // CsrfToken authentication
958
+ _12.label = 14;
927
959
  case 14:
928
960
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
929
961
  _q = headerParameters;
930
- _r = "x-csrf-token";
931
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
962
+ _r = "x-client-uuid";
963
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
932
964
  case 15:
933
- _q[_r] = _10.sent(); // CsrfToken authentication
934
- _10.label = 16;
965
+ _q[_r] = _12.sent(); // ClientUuid authentication
966
+ _12.label = 16;
935
967
  case 16:
936
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
937
- _s = headerParameters;
938
- _t = "x-guest-token";
939
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
940
- case 17:
941
- _s[_t] = _10.sent(); // GuestToken authentication
942
- _10.label = 18;
943
- case 18:
944
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
968
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
945
969
  token = this.configuration.accessToken;
946
970
  return [4 /*yield*/, token("BearerAuth", [])];
947
- case 19:
948
- tokenString = _10.sent();
971
+ case 17:
972
+ tokenString = _12.sent();
949
973
  if (tokenString) {
950
974
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
951
975
  }
952
- _10.label = 20;
976
+ _12.label = 18;
977
+ case 18:
978
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
979
+ _s = headerParameters;
980
+ _t = "x-guest-token";
981
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
982
+ case 19:
983
+ _s[_t] = _12.sent(); // GuestToken authentication
984
+ _12.label = 20;
953
985
  case 20:
954
986
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
955
987
  _u = headerParameters;
956
988
  _v = "Sec-Ch-Ua";
957
989
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
958
990
  case 21:
959
- _u[_v] = _10.sent(); // SecChUa authentication
960
- _10.label = 22;
991
+ _u[_v] = _12.sent(); // SecChUa authentication
992
+ _12.label = 22;
961
993
  case 22:
962
994
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
963
995
  _w = headerParameters;
964
- _x = "x-twitter-active-user";
965
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
996
+ _x = "x-client-transaction-id";
997
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
966
998
  case 23:
967
- _w[_x] = _10.sent(); // ActiveUser authentication
968
- _10.label = 24;
999
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
1000
+ _12.label = 24;
969
1001
  case 24:
970
1002
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
971
1003
  _y = headerParameters;
972
- _z = "user-agent";
973
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1004
+ _z = "x-twitter-active-user";
1005
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
974
1006
  case 25:
975
- _y[_z] = _10.sent(); // UserAgent authentication
976
- _10.label = 26;
1007
+ _y[_z] = _12.sent(); // ActiveUser authentication
1008
+ _12.label = 26;
977
1009
  case 26:
978
1010
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
979
1011
  _0 = headerParameters;
980
- _1 = "Accept-Language";
981
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1012
+ _1 = "user-agent";
1013
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
982
1014
  case 27:
983
- _0[_1] = _10.sent(); // AcceptLanguage authentication
984
- _10.label = 28;
1015
+ _0[_1] = _12.sent(); // UserAgent authentication
1016
+ _12.label = 28;
985
1017
  case 28:
986
1018
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
987
1019
  _2 = headerParameters;
988
- _3 = "Sec-Fetch-Site";
989
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1020
+ _3 = "Accept-Language";
1021
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
990
1022
  case 29:
991
- _2[_3] = _10.sent(); // SecFetchSite authentication
992
- _10.label = 30;
1023
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
1024
+ _12.label = 30;
993
1025
  case 30:
994
1026
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
995
1027
  _4 = headerParameters;
996
- _5 = "x-twitter-auth-type";
997
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1028
+ _5 = "Sec-Fetch-Site";
1029
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
998
1030
  case 31:
999
- _4[_5] = _10.sent(); // AuthType authentication
1000
- _10.label = 32;
1031
+ _4[_5] = _12.sent(); // SecFetchSite authentication
1032
+ _12.label = 32;
1001
1033
  case 32:
1002
1034
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1003
1035
  _6 = headerParameters;
1004
- _7 = "Sec-Ch-Ua-Mobile";
1005
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1036
+ _7 = "x-twitter-auth-type";
1037
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1006
1038
  case 33:
1007
- _6[_7] = _10.sent(); // SecChUaMobile authentication
1008
- _10.label = 34;
1039
+ _6[_7] = _12.sent(); // AuthType authentication
1040
+ _12.label = 34;
1009
1041
  case 34:
1010
1042
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1011
1043
  _8 = headerParameters;
1012
- _9 = "Accept-Encoding";
1013
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1044
+ _9 = "Sec-Ch-Ua-Mobile";
1045
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1014
1046
  case 35:
1015
- _8[_9] = _10.sent(); // AcceptEncoding authentication
1016
- _10.label = 36;
1017
- case 36: return [4 /*yield*/, this.request({
1047
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
1048
+ _12.label = 36;
1049
+ case 36:
1050
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1051
+ _10 = headerParameters;
1052
+ _11 = "Accept-Encoding";
1053
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1054
+ case 37:
1055
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
1056
+ _12.label = 38;
1057
+ case 38: return [4 /*yield*/, this.request({
1018
1058
  path: "/graphql/{pathQueryId}/DeleteRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1019
1059
  method: 'POST',
1020
1060
  headers: headerParameters,
1021
1061
  query: queryParameters,
1022
1062
  body: (0, index_1.PostDeleteRetweetRequestToJSON)(requestParameters['postDeleteRetweetRequest']),
1023
1063
  }, initOverrides)];
1024
- case 37:
1025
- response = _10.sent();
1064
+ case 39:
1065
+ response = _12.sent();
1026
1066
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteRetweet200ResponseFromJSON)(jsonValue); })];
1027
1067
  }
1028
1068
  });
@@ -1050,9 +1090,9 @@ var PostApi = /** @class */ (function (_super) {
1050
1090
  */
1051
1091
  PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
1052
1092
  return __awaiter(this, void 0, void 0, function () {
1053
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
1054
- return __generator(this, function (_10) {
1055
- switch (_10.label) {
1093
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
1094
+ return __generator(this, function (_12) {
1095
+ switch (_12.label) {
1056
1096
  case 0:
1057
1097
  if (requestParameters['pathQueryId'] == null) {
1058
1098
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteTweet().');
@@ -1065,158 +1105,166 @@ var PostApi = /** @class */ (function (_super) {
1065
1105
  headerParameters['Content-Type'] = 'application/json';
1066
1106
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1067
1107
  _a = headerParameters;
1068
- _b = "x-twitter-client-language";
1069
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1108
+ _b = "Accept";
1109
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1070
1110
  case 1:
1071
- _a[_b] = _10.sent(); // ClientLanguage authentication
1072
- _10.label = 2;
1111
+ _a[_b] = _12.sent(); // Accept authentication
1112
+ _12.label = 2;
1073
1113
  case 2:
1074
1114
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1075
1115
  _c = headerParameters;
1076
- _d = "Accept";
1077
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1116
+ _d = "x-twitter-client-language";
1117
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1078
1118
  case 3:
1079
- _c[_d] = _10.sent(); // Accept authentication
1080
- _10.label = 4;
1119
+ _c[_d] = _12.sent(); // ClientLanguage authentication
1120
+ _12.label = 4;
1081
1121
  case 4:
1082
1122
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1083
1123
  _e = headerParameters;
1084
- _f = "Priority";
1085
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1124
+ _f = "Referer";
1125
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1086
1126
  case 5:
1087
- _e[_f] = _10.sent(); // Priority authentication
1088
- _10.label = 6;
1127
+ _e[_f] = _12.sent(); // Referer authentication
1128
+ _12.label = 6;
1089
1129
  case 6:
1090
1130
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1091
1131
  _g = headerParameters;
1092
1132
  _h = "Sec-Fetch-Dest";
1093
1133
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1094
1134
  case 7:
1095
- _g[_h] = _10.sent(); // SecFetchDest authentication
1096
- _10.label = 8;
1135
+ _g[_h] = _12.sent(); // SecFetchDest authentication
1136
+ _12.label = 8;
1097
1137
  case 8:
1098
1138
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1099
1139
  _j = headerParameters;
1100
- _k = "Referer";
1101
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1140
+ _k = "Sec-Ch-Ua-Platform";
1141
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1102
1142
  case 9:
1103
- _j[_k] = _10.sent(); // Referer authentication
1104
- _10.label = 10;
1143
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
1144
+ _12.label = 10;
1105
1145
  case 10:
1106
1146
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1107
1147
  _l = headerParameters;
1108
- _m = "Sec-Ch-Ua-Platform";
1109
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1148
+ _m = "Sec-Fetch-Mode";
1149
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1110
1150
  case 11:
1111
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
1112
- _10.label = 12;
1151
+ _l[_m] = _12.sent(); // SecFetchMode authentication
1152
+ _12.label = 12;
1113
1153
  case 12:
1114
1154
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1115
1155
  _o = headerParameters;
1116
- _p = "Sec-Fetch-Mode";
1117
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1156
+ _p = "x-csrf-token";
1157
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1118
1158
  case 13:
1119
- _o[_p] = _10.sent(); // SecFetchMode authentication
1120
- _10.label = 14;
1159
+ _o[_p] = _12.sent(); // CsrfToken authentication
1160
+ _12.label = 14;
1121
1161
  case 14:
1122
1162
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1123
1163
  _q = headerParameters;
1124
- _r = "x-csrf-token";
1125
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1164
+ _r = "x-client-uuid";
1165
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1126
1166
  case 15:
1127
- _q[_r] = _10.sent(); // CsrfToken authentication
1128
- _10.label = 16;
1167
+ _q[_r] = _12.sent(); // ClientUuid authentication
1168
+ _12.label = 16;
1129
1169
  case 16:
1130
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1131
- _s = headerParameters;
1132
- _t = "x-guest-token";
1133
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1134
- case 17:
1135
- _s[_t] = _10.sent(); // GuestToken authentication
1136
- _10.label = 18;
1137
- case 18:
1138
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1170
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1139
1171
  token = this.configuration.accessToken;
1140
1172
  return [4 /*yield*/, token("BearerAuth", [])];
1141
- case 19:
1142
- tokenString = _10.sent();
1173
+ case 17:
1174
+ tokenString = _12.sent();
1143
1175
  if (tokenString) {
1144
1176
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1145
1177
  }
1146
- _10.label = 20;
1178
+ _12.label = 18;
1179
+ case 18:
1180
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1181
+ _s = headerParameters;
1182
+ _t = "x-guest-token";
1183
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1184
+ case 19:
1185
+ _s[_t] = _12.sent(); // GuestToken authentication
1186
+ _12.label = 20;
1147
1187
  case 20:
1148
1188
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1149
1189
  _u = headerParameters;
1150
1190
  _v = "Sec-Ch-Ua";
1151
1191
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1152
1192
  case 21:
1153
- _u[_v] = _10.sent(); // SecChUa authentication
1154
- _10.label = 22;
1193
+ _u[_v] = _12.sent(); // SecChUa authentication
1194
+ _12.label = 22;
1155
1195
  case 22:
1156
1196
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1157
1197
  _w = headerParameters;
1158
- _x = "x-twitter-active-user";
1159
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1198
+ _x = "x-client-transaction-id";
1199
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1160
1200
  case 23:
1161
- _w[_x] = _10.sent(); // ActiveUser authentication
1162
- _10.label = 24;
1201
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
1202
+ _12.label = 24;
1163
1203
  case 24:
1164
1204
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1165
1205
  _y = headerParameters;
1166
- _z = "user-agent";
1167
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1206
+ _z = "x-twitter-active-user";
1207
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1168
1208
  case 25:
1169
- _y[_z] = _10.sent(); // UserAgent authentication
1170
- _10.label = 26;
1209
+ _y[_z] = _12.sent(); // ActiveUser authentication
1210
+ _12.label = 26;
1171
1211
  case 26:
1172
1212
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1173
1213
  _0 = headerParameters;
1174
- _1 = "Accept-Language";
1175
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1214
+ _1 = "user-agent";
1215
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1176
1216
  case 27:
1177
- _0[_1] = _10.sent(); // AcceptLanguage authentication
1178
- _10.label = 28;
1217
+ _0[_1] = _12.sent(); // UserAgent authentication
1218
+ _12.label = 28;
1179
1219
  case 28:
1180
1220
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1181
1221
  _2 = headerParameters;
1182
- _3 = "Sec-Fetch-Site";
1183
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1222
+ _3 = "Accept-Language";
1223
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1184
1224
  case 29:
1185
- _2[_3] = _10.sent(); // SecFetchSite authentication
1186
- _10.label = 30;
1225
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
1226
+ _12.label = 30;
1187
1227
  case 30:
1188
1228
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1189
1229
  _4 = headerParameters;
1190
- _5 = "x-twitter-auth-type";
1191
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1230
+ _5 = "Sec-Fetch-Site";
1231
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1192
1232
  case 31:
1193
- _4[_5] = _10.sent(); // AuthType authentication
1194
- _10.label = 32;
1233
+ _4[_5] = _12.sent(); // SecFetchSite authentication
1234
+ _12.label = 32;
1195
1235
  case 32:
1196
1236
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1197
1237
  _6 = headerParameters;
1198
- _7 = "Sec-Ch-Ua-Mobile";
1199
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1238
+ _7 = "x-twitter-auth-type";
1239
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1200
1240
  case 33:
1201
- _6[_7] = _10.sent(); // SecChUaMobile authentication
1202
- _10.label = 34;
1241
+ _6[_7] = _12.sent(); // AuthType authentication
1242
+ _12.label = 34;
1203
1243
  case 34:
1204
1244
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1205
1245
  _8 = headerParameters;
1206
- _9 = "Accept-Encoding";
1207
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1246
+ _9 = "Sec-Ch-Ua-Mobile";
1247
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1208
1248
  case 35:
1209
- _8[_9] = _10.sent(); // AcceptEncoding authentication
1210
- _10.label = 36;
1211
- case 36: return [4 /*yield*/, this.request({
1249
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
1250
+ _12.label = 36;
1251
+ case 36:
1252
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1253
+ _10 = headerParameters;
1254
+ _11 = "Accept-Encoding";
1255
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1256
+ case 37:
1257
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
1258
+ _12.label = 38;
1259
+ case 38: return [4 /*yield*/, this.request({
1212
1260
  path: "/graphql/{pathQueryId}/DeleteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1213
1261
  method: 'POST',
1214
1262
  headers: headerParameters,
1215
1263
  query: queryParameters,
1216
1264
  body: (0, index_1.PostDeleteTweetRequestToJSON)(requestParameters['postDeleteTweetRequest']),
1217
1265
  }, initOverrides)];
1218
- case 37:
1219
- response = _10.sent();
1266
+ case 39:
1267
+ response = _12.sent();
1220
1268
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteTweet200ResponseFromJSON)(jsonValue); })];
1221
1269
  }
1222
1270
  });
@@ -1244,9 +1292,9 @@ var PostApi = /** @class */ (function (_super) {
1244
1292
  */
1245
1293
  PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
1246
1294
  return __awaiter(this, void 0, void 0, function () {
1247
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
1248
- return __generator(this, function (_10) {
1249
- switch (_10.label) {
1295
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
1296
+ return __generator(this, function (_12) {
1297
+ switch (_12.label) {
1250
1298
  case 0:
1251
1299
  if (requestParameters['pathQueryId'] == null) {
1252
1300
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postFavoriteTweet().');
@@ -1259,158 +1307,166 @@ var PostApi = /** @class */ (function (_super) {
1259
1307
  headerParameters['Content-Type'] = 'application/json';
1260
1308
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1261
1309
  _a = headerParameters;
1262
- _b = "x-twitter-client-language";
1263
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1310
+ _b = "Accept";
1311
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1264
1312
  case 1:
1265
- _a[_b] = _10.sent(); // ClientLanguage authentication
1266
- _10.label = 2;
1313
+ _a[_b] = _12.sent(); // Accept authentication
1314
+ _12.label = 2;
1267
1315
  case 2:
1268
1316
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1269
1317
  _c = headerParameters;
1270
- _d = "Accept";
1271
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1318
+ _d = "x-twitter-client-language";
1319
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1272
1320
  case 3:
1273
- _c[_d] = _10.sent(); // Accept authentication
1274
- _10.label = 4;
1321
+ _c[_d] = _12.sent(); // ClientLanguage authentication
1322
+ _12.label = 4;
1275
1323
  case 4:
1276
1324
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1277
1325
  _e = headerParameters;
1278
- _f = "Priority";
1279
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1326
+ _f = "Referer";
1327
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1280
1328
  case 5:
1281
- _e[_f] = _10.sent(); // Priority authentication
1282
- _10.label = 6;
1329
+ _e[_f] = _12.sent(); // Referer authentication
1330
+ _12.label = 6;
1283
1331
  case 6:
1284
1332
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1285
1333
  _g = headerParameters;
1286
1334
  _h = "Sec-Fetch-Dest";
1287
1335
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1288
1336
  case 7:
1289
- _g[_h] = _10.sent(); // SecFetchDest authentication
1290
- _10.label = 8;
1337
+ _g[_h] = _12.sent(); // SecFetchDest authentication
1338
+ _12.label = 8;
1291
1339
  case 8:
1292
1340
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1293
1341
  _j = headerParameters;
1294
- _k = "Referer";
1295
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1342
+ _k = "Sec-Ch-Ua-Platform";
1343
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1296
1344
  case 9:
1297
- _j[_k] = _10.sent(); // Referer authentication
1298
- _10.label = 10;
1345
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
1346
+ _12.label = 10;
1299
1347
  case 10:
1300
1348
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1301
1349
  _l = headerParameters;
1302
- _m = "Sec-Ch-Ua-Platform";
1303
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1350
+ _m = "Sec-Fetch-Mode";
1351
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1304
1352
  case 11:
1305
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
1306
- _10.label = 12;
1353
+ _l[_m] = _12.sent(); // SecFetchMode authentication
1354
+ _12.label = 12;
1307
1355
  case 12:
1308
1356
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1309
1357
  _o = headerParameters;
1310
- _p = "Sec-Fetch-Mode";
1311
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1358
+ _p = "x-csrf-token";
1359
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1312
1360
  case 13:
1313
- _o[_p] = _10.sent(); // SecFetchMode authentication
1314
- _10.label = 14;
1361
+ _o[_p] = _12.sent(); // CsrfToken authentication
1362
+ _12.label = 14;
1315
1363
  case 14:
1316
1364
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1317
1365
  _q = headerParameters;
1318
- _r = "x-csrf-token";
1319
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1366
+ _r = "x-client-uuid";
1367
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1320
1368
  case 15:
1321
- _q[_r] = _10.sent(); // CsrfToken authentication
1322
- _10.label = 16;
1369
+ _q[_r] = _12.sent(); // ClientUuid authentication
1370
+ _12.label = 16;
1323
1371
  case 16:
1324
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1325
- _s = headerParameters;
1326
- _t = "x-guest-token";
1327
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1328
- case 17:
1329
- _s[_t] = _10.sent(); // GuestToken authentication
1330
- _10.label = 18;
1331
- case 18:
1332
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1372
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1333
1373
  token = this.configuration.accessToken;
1334
1374
  return [4 /*yield*/, token("BearerAuth", [])];
1335
- case 19:
1336
- tokenString = _10.sent();
1375
+ case 17:
1376
+ tokenString = _12.sent();
1337
1377
  if (tokenString) {
1338
1378
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1339
1379
  }
1340
- _10.label = 20;
1380
+ _12.label = 18;
1381
+ case 18:
1382
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1383
+ _s = headerParameters;
1384
+ _t = "x-guest-token";
1385
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1386
+ case 19:
1387
+ _s[_t] = _12.sent(); // GuestToken authentication
1388
+ _12.label = 20;
1341
1389
  case 20:
1342
1390
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1343
1391
  _u = headerParameters;
1344
1392
  _v = "Sec-Ch-Ua";
1345
1393
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1346
1394
  case 21:
1347
- _u[_v] = _10.sent(); // SecChUa authentication
1348
- _10.label = 22;
1395
+ _u[_v] = _12.sent(); // SecChUa authentication
1396
+ _12.label = 22;
1349
1397
  case 22:
1350
1398
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1351
1399
  _w = headerParameters;
1352
- _x = "x-twitter-active-user";
1353
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1400
+ _x = "x-client-transaction-id";
1401
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1354
1402
  case 23:
1355
- _w[_x] = _10.sent(); // ActiveUser authentication
1356
- _10.label = 24;
1403
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
1404
+ _12.label = 24;
1357
1405
  case 24:
1358
1406
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1359
1407
  _y = headerParameters;
1360
- _z = "user-agent";
1361
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1408
+ _z = "x-twitter-active-user";
1409
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1362
1410
  case 25:
1363
- _y[_z] = _10.sent(); // UserAgent authentication
1364
- _10.label = 26;
1411
+ _y[_z] = _12.sent(); // ActiveUser authentication
1412
+ _12.label = 26;
1365
1413
  case 26:
1366
1414
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1367
1415
  _0 = headerParameters;
1368
- _1 = "Accept-Language";
1369
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1416
+ _1 = "user-agent";
1417
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1370
1418
  case 27:
1371
- _0[_1] = _10.sent(); // AcceptLanguage authentication
1372
- _10.label = 28;
1419
+ _0[_1] = _12.sent(); // UserAgent authentication
1420
+ _12.label = 28;
1373
1421
  case 28:
1374
1422
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1375
1423
  _2 = headerParameters;
1376
- _3 = "Sec-Fetch-Site";
1377
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1424
+ _3 = "Accept-Language";
1425
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1378
1426
  case 29:
1379
- _2[_3] = _10.sent(); // SecFetchSite authentication
1380
- _10.label = 30;
1427
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
1428
+ _12.label = 30;
1381
1429
  case 30:
1382
1430
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1383
1431
  _4 = headerParameters;
1384
- _5 = "x-twitter-auth-type";
1385
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1432
+ _5 = "Sec-Fetch-Site";
1433
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1386
1434
  case 31:
1387
- _4[_5] = _10.sent(); // AuthType authentication
1388
- _10.label = 32;
1435
+ _4[_5] = _12.sent(); // SecFetchSite authentication
1436
+ _12.label = 32;
1389
1437
  case 32:
1390
1438
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1391
1439
  _6 = headerParameters;
1392
- _7 = "Sec-Ch-Ua-Mobile";
1393
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1440
+ _7 = "x-twitter-auth-type";
1441
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1394
1442
  case 33:
1395
- _6[_7] = _10.sent(); // SecChUaMobile authentication
1396
- _10.label = 34;
1443
+ _6[_7] = _12.sent(); // AuthType authentication
1444
+ _12.label = 34;
1397
1445
  case 34:
1398
1446
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1399
1447
  _8 = headerParameters;
1400
- _9 = "Accept-Encoding";
1401
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1448
+ _9 = "Sec-Ch-Ua-Mobile";
1449
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1402
1450
  case 35:
1403
- _8[_9] = _10.sent(); // AcceptEncoding authentication
1404
- _10.label = 36;
1405
- case 36: return [4 /*yield*/, this.request({
1451
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
1452
+ _12.label = 36;
1453
+ case 36:
1454
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1455
+ _10 = headerParameters;
1456
+ _11 = "Accept-Encoding";
1457
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1458
+ case 37:
1459
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
1460
+ _12.label = 38;
1461
+ case 38: return [4 /*yield*/, this.request({
1406
1462
  path: "/graphql/{pathQueryId}/FavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1407
1463
  method: 'POST',
1408
1464
  headers: headerParameters,
1409
1465
  query: queryParameters,
1410
1466
  body: (0, index_1.PostFavoriteTweetRequestToJSON)(requestParameters['postFavoriteTweetRequest']),
1411
1467
  }, initOverrides)];
1412
- case 37:
1413
- response = _10.sent();
1468
+ case 39:
1469
+ response = _12.sent();
1414
1470
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostFavoriteTweet200ResponseFromJSON)(jsonValue); })];
1415
1471
  }
1416
1472
  });
@@ -1438,9 +1494,9 @@ var PostApi = /** @class */ (function (_super) {
1438
1494
  */
1439
1495
  PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
1440
1496
  return __awaiter(this, void 0, void 0, function () {
1441
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, token, tokenString, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
1442
- return __generator(this, function (_10) {
1443
- switch (_10.label) {
1497
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, response;
1498
+ return __generator(this, function (_12) {
1499
+ switch (_12.label) {
1444
1500
  case 0:
1445
1501
  if (requestParameters['pathQueryId'] == null) {
1446
1502
  throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postUnfavoriteTweet().');
@@ -1453,158 +1509,166 @@ var PostApi = /** @class */ (function (_super) {
1453
1509
  headerParameters['Content-Type'] = 'application/json';
1454
1510
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1455
1511
  _a = headerParameters;
1456
- _b = "x-twitter-client-language";
1457
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1512
+ _b = "Accept";
1513
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
1458
1514
  case 1:
1459
- _a[_b] = _10.sent(); // ClientLanguage authentication
1460
- _10.label = 2;
1515
+ _a[_b] = _12.sent(); // Accept authentication
1516
+ _12.label = 2;
1461
1517
  case 2:
1462
1518
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
1463
1519
  _c = headerParameters;
1464
- _d = "Accept";
1465
- return [4 /*yield*/, this.configuration.apiKey("Accept")];
1520
+ _d = "x-twitter-client-language";
1521
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
1466
1522
  case 3:
1467
- _c[_d] = _10.sent(); // Accept authentication
1468
- _10.label = 4;
1523
+ _c[_d] = _12.sent(); // ClientLanguage authentication
1524
+ _12.label = 4;
1469
1525
  case 4:
1470
1526
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1471
1527
  _e = headerParameters;
1472
- _f = "Priority";
1473
- return [4 /*yield*/, this.configuration.apiKey("Priority")];
1528
+ _f = "Referer";
1529
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1474
1530
  case 5:
1475
- _e[_f] = _10.sent(); // Priority authentication
1476
- _10.label = 6;
1531
+ _e[_f] = _12.sent(); // Referer authentication
1532
+ _12.label = 6;
1477
1533
  case 6:
1478
1534
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1479
1535
  _g = headerParameters;
1480
1536
  _h = "Sec-Fetch-Dest";
1481
1537
  return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1482
1538
  case 7:
1483
- _g[_h] = _10.sent(); // SecFetchDest authentication
1484
- _10.label = 8;
1539
+ _g[_h] = _12.sent(); // SecFetchDest authentication
1540
+ _12.label = 8;
1485
1541
  case 8:
1486
1542
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1487
1543
  _j = headerParameters;
1488
- _k = "Referer";
1489
- return [4 /*yield*/, this.configuration.apiKey("Referer")];
1544
+ _k = "Sec-Ch-Ua-Platform";
1545
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1490
1546
  case 9:
1491
- _j[_k] = _10.sent(); // Referer authentication
1492
- _10.label = 10;
1547
+ _j[_k] = _12.sent(); // SecChUaPlatform authentication
1548
+ _12.label = 10;
1493
1549
  case 10:
1494
1550
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1495
1551
  _l = headerParameters;
1496
- _m = "Sec-Ch-Ua-Platform";
1497
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1552
+ _m = "Sec-Fetch-Mode";
1553
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1498
1554
  case 11:
1499
- _l[_m] = _10.sent(); // SecChUaPlatform authentication
1500
- _10.label = 12;
1555
+ _l[_m] = _12.sent(); // SecFetchMode authentication
1556
+ _12.label = 12;
1501
1557
  case 12:
1502
1558
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1503
1559
  _o = headerParameters;
1504
- _p = "Sec-Fetch-Mode";
1505
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1560
+ _p = "x-csrf-token";
1561
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1506
1562
  case 13:
1507
- _o[_p] = _10.sent(); // SecFetchMode authentication
1508
- _10.label = 14;
1563
+ _o[_p] = _12.sent(); // CsrfToken authentication
1564
+ _12.label = 14;
1509
1565
  case 14:
1510
1566
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1511
1567
  _q = headerParameters;
1512
- _r = "x-csrf-token";
1513
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1568
+ _r = "x-client-uuid";
1569
+ return [4 /*yield*/, this.configuration.apiKey("x-client-uuid")];
1514
1570
  case 15:
1515
- _q[_r] = _10.sent(); // CsrfToken authentication
1516
- _10.label = 16;
1571
+ _q[_r] = _12.sent(); // ClientUuid authentication
1572
+ _12.label = 16;
1517
1573
  case 16:
1518
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 18];
1519
- _s = headerParameters;
1520
- _t = "x-guest-token";
1521
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1522
- case 17:
1523
- _s[_t] = _10.sent(); // GuestToken authentication
1524
- _10.label = 18;
1525
- case 18:
1526
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 20];
1574
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
1527
1575
  token = this.configuration.accessToken;
1528
1576
  return [4 /*yield*/, token("BearerAuth", [])];
1529
- case 19:
1530
- tokenString = _10.sent();
1577
+ case 17:
1578
+ tokenString = _12.sent();
1531
1579
  if (tokenString) {
1532
1580
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1533
1581
  }
1534
- _10.label = 20;
1582
+ _12.label = 18;
1583
+ case 18:
1584
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1585
+ _s = headerParameters;
1586
+ _t = "x-guest-token";
1587
+ return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1588
+ case 19:
1589
+ _s[_t] = _12.sent(); // GuestToken authentication
1590
+ _12.label = 20;
1535
1591
  case 20:
1536
1592
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1537
1593
  _u = headerParameters;
1538
1594
  _v = "Sec-Ch-Ua";
1539
1595
  return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1540
1596
  case 21:
1541
- _u[_v] = _10.sent(); // SecChUa authentication
1542
- _10.label = 22;
1597
+ _u[_v] = _12.sent(); // SecChUa authentication
1598
+ _12.label = 22;
1543
1599
  case 22:
1544
1600
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1545
1601
  _w = headerParameters;
1546
- _x = "x-twitter-active-user";
1547
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1602
+ _x = "x-client-transaction-id";
1603
+ return [4 /*yield*/, this.configuration.apiKey("x-client-transaction-id")];
1548
1604
  case 23:
1549
- _w[_x] = _10.sent(); // ActiveUser authentication
1550
- _10.label = 24;
1605
+ _w[_x] = _12.sent(); // ClientTransactionId authentication
1606
+ _12.label = 24;
1551
1607
  case 24:
1552
1608
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1553
1609
  _y = headerParameters;
1554
- _z = "user-agent";
1555
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1610
+ _z = "x-twitter-active-user";
1611
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1556
1612
  case 25:
1557
- _y[_z] = _10.sent(); // UserAgent authentication
1558
- _10.label = 26;
1613
+ _y[_z] = _12.sent(); // ActiveUser authentication
1614
+ _12.label = 26;
1559
1615
  case 26:
1560
1616
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1561
1617
  _0 = headerParameters;
1562
- _1 = "Accept-Language";
1563
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1618
+ _1 = "user-agent";
1619
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1564
1620
  case 27:
1565
- _0[_1] = _10.sent(); // AcceptLanguage authentication
1566
- _10.label = 28;
1621
+ _0[_1] = _12.sent(); // UserAgent authentication
1622
+ _12.label = 28;
1567
1623
  case 28:
1568
1624
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1569
1625
  _2 = headerParameters;
1570
- _3 = "Sec-Fetch-Site";
1571
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1626
+ _3 = "Accept-Language";
1627
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1572
1628
  case 29:
1573
- _2[_3] = _10.sent(); // SecFetchSite authentication
1574
- _10.label = 30;
1629
+ _2[_3] = _12.sent(); // AcceptLanguage authentication
1630
+ _12.label = 30;
1575
1631
  case 30:
1576
1632
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1577
1633
  _4 = headerParameters;
1578
- _5 = "x-twitter-auth-type";
1579
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1634
+ _5 = "Sec-Fetch-Site";
1635
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1580
1636
  case 31:
1581
- _4[_5] = _10.sent(); // AuthType authentication
1582
- _10.label = 32;
1637
+ _4[_5] = _12.sent(); // SecFetchSite authentication
1638
+ _12.label = 32;
1583
1639
  case 32:
1584
1640
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
1585
1641
  _6 = headerParameters;
1586
- _7 = "Sec-Ch-Ua-Mobile";
1587
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1642
+ _7 = "x-twitter-auth-type";
1643
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1588
1644
  case 33:
1589
- _6[_7] = _10.sent(); // SecChUaMobile authentication
1590
- _10.label = 34;
1645
+ _6[_7] = _12.sent(); // AuthType authentication
1646
+ _12.label = 34;
1591
1647
  case 34:
1592
1648
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
1593
1649
  _8 = headerParameters;
1594
- _9 = "Accept-Encoding";
1595
- return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1650
+ _9 = "Sec-Ch-Ua-Mobile";
1651
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
1596
1652
  case 35:
1597
- _8[_9] = _10.sent(); // AcceptEncoding authentication
1598
- _10.label = 36;
1599
- case 36: return [4 /*yield*/, this.request({
1653
+ _8[_9] = _12.sent(); // SecChUaMobile authentication
1654
+ _12.label = 36;
1655
+ case 36:
1656
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 38];
1657
+ _10 = headerParameters;
1658
+ _11 = "Accept-Encoding";
1659
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
1660
+ case 37:
1661
+ _10[_11] = _12.sent(); // AcceptEncoding authentication
1662
+ _12.label = 38;
1663
+ case 38: return [4 /*yield*/, this.request({
1600
1664
  path: "/graphql/{pathQueryId}/UnfavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
1601
1665
  method: 'POST',
1602
1666
  headers: headerParameters,
1603
1667
  query: queryParameters,
1604
1668
  body: (0, index_1.PostUnfavoriteTweetRequestToJSON)(requestParameters['postUnfavoriteTweetRequest']),
1605
1669
  }, initOverrides)];
1606
- case 37:
1607
- response = _10.sent();
1670
+ case 39:
1671
+ response = _12.sent();
1608
1672
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostUnfavoriteTweet200ResponseFromJSON)(jsonValue); })];
1609
1673
  }
1610
1674
  });