twitter-openapi-typescript-generated 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/DefaultApi.d.ts +1 -0
  3. package/dist/apis/DefaultApi.d.ts.map +1 -1
  4. package/dist/apis/DefaultApi.js +100 -94
  5. package/dist/apis/DefaultApi.js.map +1 -1
  6. package/dist/apis/OtherApi.js +47 -47
  7. package/dist/apis/OtherApi.js.map +1 -1
  8. package/dist/apis/PostApi.d.ts +25 -1
  9. package/dist/apis/PostApi.d.ts.map +1 -1
  10. package/dist/apis/PostApi.js +670 -282
  11. package/dist/apis/PostApi.js.map +1 -1
  12. package/dist/apis/TweetApi.js +517 -517
  13. package/dist/apis/TweetApi.js.map +1 -1
  14. package/dist/apis/UserApi.js +94 -94
  15. package/dist/apis/UserApi.js.map +1 -1
  16. package/dist/apis/UserListApi.js +235 -235
  17. package/dist/apis/UserListApi.js.map +1 -1
  18. package/dist/apis/UsersApi.js +47 -47
  19. package/dist/apis/UsersApi.js.map +1 -1
  20. package/dist/apis/V11GetApi.js +94 -94
  21. package/dist/apis/V11GetApi.js.map +1 -1
  22. package/dist/apis/V11PostApi.js +94 -94
  23. package/dist/apis/V11PostApi.js.map +1 -1
  24. package/dist/apis/V20GetApi.js +47 -47
  25. package/dist/apis/V20GetApi.js.map +1 -1
  26. package/dist/models/AllowDownloadStatus.d.ts +32 -0
  27. package/dist/models/AllowDownloadStatus.d.ts.map +1 -0
  28. package/dist/models/AllowDownloadStatus.js +48 -0
  29. package/dist/models/AllowDownloadStatus.js.map +1 -0
  30. package/dist/models/ArticleLifecycleState.d.ts +32 -0
  31. package/dist/models/ArticleLifecycleState.d.ts.map +1 -0
  32. package/dist/models/ArticleLifecycleState.js +48 -0
  33. package/dist/models/ArticleLifecycleState.js.map +1 -0
  34. package/dist/models/ArticleMetadata.d.ts +32 -0
  35. package/dist/models/ArticleMetadata.d.ts.map +1 -0
  36. package/dist/models/ArticleMetadata.js +48 -0
  37. package/dist/models/ArticleMetadata.js.map +1 -0
  38. package/dist/models/ArticleResult.d.ts +14 -0
  39. package/dist/models/ArticleResult.d.ts.map +1 -1
  40. package/dist/models/ArticleResult.js +8 -0
  41. package/dist/models/ArticleResult.js.map +1 -1
  42. package/dist/models/CreateBookmarkResponse.d.ts +33 -0
  43. package/dist/models/CreateBookmarkResponse.d.ts.map +1 -0
  44. package/dist/models/CreateBookmarkResponse.js +49 -0
  45. package/dist/models/CreateBookmarkResponse.js.map +1 -0
  46. package/dist/models/CreateBookmarkResponseData.d.ts +32 -0
  47. package/dist/models/CreateBookmarkResponseData.d.ts.map +1 -0
  48. package/dist/models/CreateBookmarkResponseData.js +48 -0
  49. package/dist/models/CreateBookmarkResponseData.js.map +1 -0
  50. package/dist/models/DeleteBookmarkResponse.d.ts +33 -0
  51. package/dist/models/DeleteBookmarkResponse.d.ts.map +1 -0
  52. package/dist/models/DeleteBookmarkResponse.js +49 -0
  53. package/dist/models/DeleteBookmarkResponse.js.map +1 -0
  54. package/dist/models/DeleteBookmarkResponseData.d.ts +32 -0
  55. package/dist/models/DeleteBookmarkResponseData.d.ts.map +1 -0
  56. package/dist/models/DeleteBookmarkResponseData.js +48 -0
  57. package/dist/models/DeleteBookmarkResponseData.js.map +1 -0
  58. package/dist/models/Media.d.ts +20 -8
  59. package/dist/models/Media.d.ts.map +1 -1
  60. package/dist/models/Media.js +12 -4
  61. package/dist/models/Media.js.map +1 -1
  62. package/dist/models/MediaExtended.d.ts +14 -0
  63. package/dist/models/MediaExtended.d.ts.map +1 -1
  64. package/dist/models/MediaExtended.js +6 -0
  65. package/dist/models/MediaExtended.js.map +1 -1
  66. package/dist/models/MediaResult.d.ts +32 -0
  67. package/dist/models/MediaResult.d.ts.map +1 -0
  68. package/dist/models/MediaResult.js +48 -0
  69. package/dist/models/MediaResult.js.map +1 -0
  70. package/dist/models/MediaResults.d.ts +33 -0
  71. package/dist/models/MediaResults.d.ts.map +1 -0
  72. package/dist/models/MediaResults.js +49 -0
  73. package/dist/models/MediaResults.js.map +1 -0
  74. package/dist/models/MediaVisibilityResults.d.ts +33 -0
  75. package/dist/models/MediaVisibilityResults.d.ts.map +1 -0
  76. package/dist/models/MediaVisibilityResults.js +49 -0
  77. package/dist/models/MediaVisibilityResults.js.map +1 -0
  78. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts +45 -0
  79. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.d.ts.map +1 -0
  80. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js +57 -0
  81. package/dist/models/MediaVisibilityResultsBlurredImageInterstitial.js.map +1 -0
  82. package/dist/models/PostCreateBookmark200Response.d.ts +23 -0
  83. package/dist/models/PostCreateBookmark200Response.d.ts.map +1 -0
  84. package/dist/models/PostCreateBookmark200Response.js +54 -0
  85. package/dist/models/PostCreateBookmark200Response.js.map +1 -0
  86. package/dist/models/PostCreateBookmarkRequest.d.ts +39 -0
  87. package/dist/models/PostCreateBookmarkRequest.d.ts.map +1 -0
  88. package/dist/models/PostCreateBookmarkRequest.js +53 -0
  89. package/dist/models/PostCreateBookmarkRequest.js.map +1 -0
  90. package/dist/models/PostCreateBookmarkRequestVariables.d.ts +32 -0
  91. package/dist/models/PostCreateBookmarkRequestVariables.d.ts.map +1 -0
  92. package/dist/models/PostCreateBookmarkRequestVariables.js +48 -0
  93. package/dist/models/PostCreateBookmarkRequestVariables.js.map +1 -0
  94. package/dist/models/PostDeleteBookmark200Response.d.ts +23 -0
  95. package/dist/models/PostDeleteBookmark200Response.d.ts.map +1 -0
  96. package/dist/models/PostDeleteBookmark200Response.js +54 -0
  97. package/dist/models/PostDeleteBookmark200Response.js.map +1 -0
  98. package/dist/models/PostDeleteBookmarkRequest.d.ts +39 -0
  99. package/dist/models/PostDeleteBookmarkRequest.d.ts.map +1 -0
  100. package/dist/models/PostDeleteBookmarkRequest.js +53 -0
  101. package/dist/models/PostDeleteBookmarkRequest.js.map +1 -0
  102. package/dist/models/TweetWithVisibilityResults.d.ts +7 -0
  103. package/dist/models/TweetWithVisibilityResults.d.ts.map +1 -1
  104. package/dist/models/TweetWithVisibilityResults.js +3 -0
  105. package/dist/models/TweetWithVisibilityResults.js.map +1 -1
  106. package/dist/models/Url.d.ts +1 -1
  107. package/dist/models/Url.d.ts.map +1 -1
  108. package/dist/models/Url.js +1 -3
  109. package/dist/models/Url.js.map +1 -1
  110. package/dist/models/User.d.ts +14 -0
  111. package/dist/models/User.d.ts.map +1 -1
  112. package/dist/models/User.js +6 -0
  113. package/dist/models/User.js.map +1 -1
  114. package/dist/models/UserLegacyExtendedProfile.d.ts +33 -0
  115. package/dist/models/UserLegacyExtendedProfile.d.ts.map +1 -0
  116. package/dist/models/UserLegacyExtendedProfile.js +47 -0
  117. package/dist/models/UserLegacyExtendedProfile.js.map +1 -0
  118. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts +78 -0
  119. package/dist/models/UserLegacyExtendedProfileBirthdate.d.ts.map +1 -0
  120. package/dist/models/UserLegacyExtendedProfileBirthdate.js +84 -0
  121. package/dist/models/UserLegacyExtendedProfileBirthdate.js.map +1 -0
  122. package/dist/models/UserTipJarSettings.d.ts +68 -0
  123. package/dist/models/UserTipJarSettings.d.ts.map +1 -0
  124. package/dist/models/UserTipJarSettings.js +58 -0
  125. package/dist/models/UserTipJarSettings.js.map +1 -0
  126. package/dist/models/index.d.ts +19 -0
  127. package/dist/models/index.d.ts.map +1 -1
  128. package/dist/models/index.js +19 -0
  129. package/dist/models/index.js.map +1 -1
  130. package/package.json +1 -1
@@ -75,12 +75,206 @@ var PostApi = /** @class */ (function (_super) {
75
75
  function PostApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * create Bookmark
80
+ */
81
+ PostApi.prototype.postCreateBookmarkRaw = function (requestParameters, initOverrides) {
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) {
86
+ case 0:
87
+ if (requestParameters['pathQueryId'] == null) {
88
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postCreateBookmark().');
89
+ }
90
+ if (requestParameters['postCreateBookmarkRequest'] == null) {
91
+ throw new runtime.RequiredError('postCreateBookmarkRequest', 'Required parameter "postCreateBookmarkRequest" was null or undefined when calling postCreateBookmark().');
92
+ }
93
+ queryParameters = {};
94
+ headerParameters = {};
95
+ headerParameters['Content-Type'] = 'application/json';
96
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
97
+ _a = headerParameters;
98
+ _b = "x-twitter-client-language";
99
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
100
+ case 1:
101
+ _a[_b] = _10.sent(); // ClientLanguage authentication
102
+ _10.label = 2;
103
+ case 2:
104
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
105
+ _c = headerParameters;
106
+ _d = "Accept";
107
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
108
+ case 3:
109
+ _c[_d] = _10.sent(); // Accept authentication
110
+ _10.label = 4;
111
+ case 4:
112
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
113
+ _e = headerParameters;
114
+ _f = "Priority";
115
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
116
+ case 5:
117
+ _e[_f] = _10.sent(); // Priority authentication
118
+ _10.label = 6;
119
+ case 6:
120
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
121
+ _g = headerParameters;
122
+ _h = "Sec-Fetch-Dest";
123
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
124
+ case 7:
125
+ _g[_h] = _10.sent(); // SecFetchDest authentication
126
+ _10.label = 8;
127
+ case 8:
128
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
129
+ _j = headerParameters;
130
+ _k = "Referer";
131
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
132
+ case 9:
133
+ _j[_k] = _10.sent(); // Referer authentication
134
+ _10.label = 10;
135
+ case 10:
136
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
137
+ _l = headerParameters;
138
+ _m = "Sec-Ch-Ua-Platform";
139
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
140
+ case 11:
141
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
142
+ _10.label = 12;
143
+ case 12:
144
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
145
+ _o = headerParameters;
146
+ _p = "Sec-Fetch-Mode";
147
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
148
+ case 13:
149
+ _o[_p] = _10.sent(); // SecFetchMode authentication
150
+ _10.label = 14;
151
+ case 14:
152
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
153
+ _q = headerParameters;
154
+ _r = "x-csrf-token";
155
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
156
+ case 15:
157
+ _q[_r] = _10.sent(); // CsrfToken authentication
158
+ _10.label = 16;
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];
169
+ token = this.configuration.accessToken;
170
+ return [4 /*yield*/, token("BearerAuth", [])];
171
+ case 19:
172
+ tokenString = _10.sent();
173
+ if (tokenString) {
174
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
175
+ }
176
+ _10.label = 20;
177
+ case 20:
178
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
179
+ _u = headerParameters;
180
+ _v = "Sec-Ch-Ua";
181
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
182
+ case 21:
183
+ _u[_v] = _10.sent(); // SecChUa authentication
184
+ _10.label = 22;
185
+ case 22:
186
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
187
+ _w = headerParameters;
188
+ _x = "x-twitter-active-user";
189
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
190
+ case 23:
191
+ _w[_x] = _10.sent(); // ActiveUser authentication
192
+ _10.label = 24;
193
+ case 24:
194
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
195
+ _y = headerParameters;
196
+ _z = "user-agent";
197
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
198
+ case 25:
199
+ _y[_z] = _10.sent(); // UserAgent authentication
200
+ _10.label = 26;
201
+ case 26:
202
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
203
+ _0 = headerParameters;
204
+ _1 = "Accept-Language";
205
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
206
+ case 27:
207
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
208
+ _10.label = 28;
209
+ case 28:
210
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
211
+ _2 = headerParameters;
212
+ _3 = "Sec-Fetch-Site";
213
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
214
+ case 29:
215
+ _2[_3] = _10.sent(); // SecFetchSite authentication
216
+ _10.label = 30;
217
+ case 30:
218
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
219
+ _4 = headerParameters;
220
+ _5 = "x-twitter-auth-type";
221
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
222
+ case 31:
223
+ _4[_5] = _10.sent(); // AuthType authentication
224
+ _10.label = 32;
225
+ case 32:
226
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
227
+ _6 = headerParameters;
228
+ _7 = "Sec-Ch-Ua-Mobile";
229
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
230
+ case 33:
231
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
232
+ _10.label = 34;
233
+ case 34:
234
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
235
+ _8 = headerParameters;
236
+ _9 = "Accept-Encoding";
237
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
238
+ case 35:
239
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
240
+ _10.label = 36;
241
+ case 36: return [4 /*yield*/, this.request({
242
+ path: "/graphql/{pathQueryId}/CreateBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
243
+ method: 'POST',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ body: (0, index_1.PostCreateBookmarkRequestToJSON)(requestParameters['postCreateBookmarkRequest']),
247
+ }, initOverrides)];
248
+ case 37:
249
+ response = _10.sent();
250
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostCreateBookmark200ResponseFromJSON)(jsonValue); })];
251
+ }
252
+ });
253
+ });
254
+ };
255
+ /**
256
+ * create Bookmark
257
+ */
258
+ PostApi.prototype.postCreateBookmark = function (requestParameters, initOverrides) {
259
+ return __awaiter(this, void 0, void 0, function () {
260
+ var response;
261
+ return __generator(this, function (_a) {
262
+ switch (_a.label) {
263
+ case 0: return [4 /*yield*/, this.postCreateBookmarkRaw(requestParameters, initOverrides)];
264
+ case 1:
265
+ response = _a.sent();
266
+ return [4 /*yield*/, response.value()];
267
+ case 2: return [2 /*return*/, _a.sent()];
268
+ }
269
+ });
270
+ });
271
+ };
78
272
  /**
79
273
  * create Retweet
80
274
  */
81
275
  PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
82
276
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
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;
84
278
  return __generator(this, function (_10) {
85
279
  switch (_10.label) {
86
280
  case 0:
@@ -111,116 +305,116 @@ var PostApi = /** @class */ (function (_super) {
111
305
  case 4:
112
306
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
113
307
  _e = headerParameters;
114
- _f = "Sec-Fetch-Dest";
115
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
308
+ _f = "Priority";
309
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
116
310
  case 5:
117
- _e[_f] = _10.sent(); // SecFetchDest authentication
311
+ _e[_f] = _10.sent(); // Priority authentication
118
312
  _10.label = 6;
119
313
  case 6:
120
314
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
121
315
  _g = headerParameters;
122
- _h = "Pragma";
123
- return [4 /*yield*/, this.configuration.apiKey("Pragma")];
316
+ _h = "Sec-Fetch-Dest";
317
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
124
318
  case 7:
125
- _g[_h] = _10.sent(); // Pragma authentication
319
+ _g[_h] = _10.sent(); // SecFetchDest authentication
126
320
  _10.label = 8;
127
321
  case 8:
128
322
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
129
323
  _j = headerParameters;
130
- _k = "Sec-Ch-Ua-Platform";
131
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
324
+ _k = "Referer";
325
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
132
326
  case 9:
133
- _j[_k] = _10.sent(); // SecChUaPlatform authentication
327
+ _j[_k] = _10.sent(); // Referer authentication
134
328
  _10.label = 10;
135
329
  case 10:
136
330
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
137
331
  _l = headerParameters;
138
- _m = "Sec-Fetch-Mode";
139
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
332
+ _m = "Sec-Ch-Ua-Platform";
333
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
140
334
  case 11:
141
- _l[_m] = _10.sent(); // SecFetchMode authentication
335
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
142
336
  _10.label = 12;
143
337
  case 12:
144
338
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
145
339
  _o = headerParameters;
146
- _p = "x-csrf-token";
147
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
340
+ _p = "Sec-Fetch-Mode";
341
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
148
342
  case 13:
149
- _o[_p] = _10.sent(); // CsrfToken authentication
343
+ _o[_p] = _10.sent(); // SecFetchMode authentication
150
344
  _10.label = 14;
151
345
  case 14:
152
346
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
153
347
  _q = headerParameters;
154
- _r = "x-guest-token";
155
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
348
+ _r = "x-csrf-token";
349
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
156
350
  case 15:
157
- _q[_r] = _10.sent(); // GuestToken authentication
351
+ _q[_r] = _10.sent(); // CsrfToken authentication
158
352
  _10.label = 16;
159
353
  case 16:
160
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
161
363
  token = this.configuration.accessToken;
162
364
  return [4 /*yield*/, token("BearerAuth", [])];
163
- case 17:
365
+ case 19:
164
366
  tokenString = _10.sent();
165
367
  if (tokenString) {
166
368
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
167
369
  }
168
- _10.label = 18;
169
- case 18:
170
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
171
- _s = headerParameters;
172
- _t = "Sec-Ch-Ua";
173
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
174
- case 19:
175
- _s[_t] = _10.sent(); // SecChUa authentication
176
370
  _10.label = 20;
177
371
  case 20:
178
372
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
179
373
  _u = headerParameters;
180
- _v = "x-twitter-active-user";
181
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
374
+ _v = "Sec-Ch-Ua";
375
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
182
376
  case 21:
183
- _u[_v] = _10.sent(); // ActiveUser authentication
377
+ _u[_v] = _10.sent(); // SecChUa authentication
184
378
  _10.label = 22;
185
379
  case 22:
186
380
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
187
381
  _w = headerParameters;
188
- _x = "user-agent";
189
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
382
+ _x = "x-twitter-active-user";
383
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
190
384
  case 23:
191
- _w[_x] = _10.sent(); // UserAgent authentication
385
+ _w[_x] = _10.sent(); // ActiveUser authentication
192
386
  _10.label = 24;
193
387
  case 24:
194
388
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
195
389
  _y = headerParameters;
196
- _z = "Accept-Language";
197
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
390
+ _z = "user-agent";
391
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
198
392
  case 25:
199
- _y[_z] = _10.sent(); // AcceptLanguage authentication
393
+ _y[_z] = _10.sent(); // UserAgent authentication
200
394
  _10.label = 26;
201
395
  case 26:
202
396
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
203
397
  _0 = headerParameters;
204
- _1 = "Sec-Fetch-Site";
205
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
398
+ _1 = "Accept-Language";
399
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
206
400
  case 27:
207
- _0[_1] = _10.sent(); // SecFetchSite authentication
401
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
208
402
  _10.label = 28;
209
403
  case 28:
210
404
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
211
405
  _2 = headerParameters;
212
- _3 = "x-twitter-auth-type";
213
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
406
+ _3 = "Sec-Fetch-Site";
407
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
214
408
  case 29:
215
- _2[_3] = _10.sent(); // AuthType authentication
409
+ _2[_3] = _10.sent(); // SecFetchSite authentication
216
410
  _10.label = 30;
217
411
  case 30:
218
412
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
219
413
  _4 = headerParameters;
220
- _5 = "Cache-Control";
221
- return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
414
+ _5 = "x-twitter-auth-type";
415
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
222
416
  case 31:
223
- _4[_5] = _10.sent(); // CacheControl authentication
417
+ _4[_5] = _10.sent(); // AuthType authentication
224
418
  _10.label = 32;
225
419
  case 32:
226
420
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
@@ -274,7 +468,7 @@ var PostApi = /** @class */ (function (_super) {
274
468
  */
275
469
  PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
276
470
  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, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
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;
278
472
  return __generator(this, function (_10) {
279
473
  switch (_10.label) {
280
474
  case 0:
@@ -305,116 +499,116 @@ var PostApi = /** @class */ (function (_super) {
305
499
  case 4:
306
500
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
307
501
  _e = headerParameters;
308
- _f = "Sec-Fetch-Dest";
309
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
502
+ _f = "Priority";
503
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
310
504
  case 5:
311
- _e[_f] = _10.sent(); // SecFetchDest authentication
505
+ _e[_f] = _10.sent(); // Priority authentication
312
506
  _10.label = 6;
313
507
  case 6:
314
508
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
315
509
  _g = headerParameters;
316
- _h = "Pragma";
317
- return [4 /*yield*/, this.configuration.apiKey("Pragma")];
510
+ _h = "Sec-Fetch-Dest";
511
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
318
512
  case 7:
319
- _g[_h] = _10.sent(); // Pragma authentication
513
+ _g[_h] = _10.sent(); // SecFetchDest authentication
320
514
  _10.label = 8;
321
515
  case 8:
322
516
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
323
517
  _j = headerParameters;
324
- _k = "Sec-Ch-Ua-Platform";
325
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
518
+ _k = "Referer";
519
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
326
520
  case 9:
327
- _j[_k] = _10.sent(); // SecChUaPlatform authentication
521
+ _j[_k] = _10.sent(); // Referer authentication
328
522
  _10.label = 10;
329
523
  case 10:
330
524
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
331
525
  _l = headerParameters;
332
- _m = "Sec-Fetch-Mode";
333
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
526
+ _m = "Sec-Ch-Ua-Platform";
527
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
334
528
  case 11:
335
- _l[_m] = _10.sent(); // SecFetchMode authentication
529
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
336
530
  _10.label = 12;
337
531
  case 12:
338
532
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
339
533
  _o = headerParameters;
340
- _p = "x-csrf-token";
341
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
534
+ _p = "Sec-Fetch-Mode";
535
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
342
536
  case 13:
343
- _o[_p] = _10.sent(); // CsrfToken authentication
537
+ _o[_p] = _10.sent(); // SecFetchMode authentication
344
538
  _10.label = 14;
345
539
  case 14:
346
540
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
347
541
  _q = headerParameters;
348
- _r = "x-guest-token";
349
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
542
+ _r = "x-csrf-token";
543
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
350
544
  case 15:
351
- _q[_r] = _10.sent(); // GuestToken authentication
545
+ _q[_r] = _10.sent(); // CsrfToken authentication
352
546
  _10.label = 16;
353
547
  case 16:
354
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
355
557
  token = this.configuration.accessToken;
356
558
  return [4 /*yield*/, token("BearerAuth", [])];
357
- case 17:
559
+ case 19:
358
560
  tokenString = _10.sent();
359
561
  if (tokenString) {
360
562
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
361
563
  }
362
- _10.label = 18;
363
- case 18:
364
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
365
- _s = headerParameters;
366
- _t = "Sec-Ch-Ua";
367
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
368
- case 19:
369
- _s[_t] = _10.sent(); // SecChUa authentication
370
564
  _10.label = 20;
371
565
  case 20:
372
566
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
373
567
  _u = headerParameters;
374
- _v = "x-twitter-active-user";
375
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
568
+ _v = "Sec-Ch-Ua";
569
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
376
570
  case 21:
377
- _u[_v] = _10.sent(); // ActiveUser authentication
571
+ _u[_v] = _10.sent(); // SecChUa authentication
378
572
  _10.label = 22;
379
573
  case 22:
380
574
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
381
575
  _w = headerParameters;
382
- _x = "user-agent";
383
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
576
+ _x = "x-twitter-active-user";
577
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
384
578
  case 23:
385
- _w[_x] = _10.sent(); // UserAgent authentication
579
+ _w[_x] = _10.sent(); // ActiveUser authentication
386
580
  _10.label = 24;
387
581
  case 24:
388
582
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
389
583
  _y = headerParameters;
390
- _z = "Accept-Language";
391
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
584
+ _z = "user-agent";
585
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
392
586
  case 25:
393
- _y[_z] = _10.sent(); // AcceptLanguage authentication
587
+ _y[_z] = _10.sent(); // UserAgent authentication
394
588
  _10.label = 26;
395
589
  case 26:
396
590
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
397
591
  _0 = headerParameters;
398
- _1 = "Sec-Fetch-Site";
399
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
592
+ _1 = "Accept-Language";
593
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
400
594
  case 27:
401
- _0[_1] = _10.sent(); // SecFetchSite authentication
595
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
402
596
  _10.label = 28;
403
597
  case 28:
404
598
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
405
599
  _2 = headerParameters;
406
- _3 = "x-twitter-auth-type";
407
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
600
+ _3 = "Sec-Fetch-Site";
601
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
408
602
  case 29:
409
- _2[_3] = _10.sent(); // AuthType authentication
603
+ _2[_3] = _10.sent(); // SecFetchSite authentication
410
604
  _10.label = 30;
411
605
  case 30:
412
606
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
413
607
  _4 = headerParameters;
414
- _5 = "Cache-Control";
415
- return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
608
+ _5 = "x-twitter-auth-type";
609
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
416
610
  case 31:
417
- _4[_5] = _10.sent(); // CacheControl authentication
611
+ _4[_5] = _10.sent(); // AuthType authentication
418
612
  _10.label = 32;
419
613
  case 32:
420
614
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
@@ -463,12 +657,206 @@ var PostApi = /** @class */ (function (_super) {
463
657
  });
464
658
  });
465
659
  };
660
+ /**
661
+ * delete Bookmark
662
+ */
663
+ PostApi.prototype.postDeleteBookmarkRaw = function (requestParameters, initOverrides) {
664
+ return __awaiter(this, void 0, void 0, function () {
665
+ var queryParameters, headerParameters, _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _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) {
668
+ case 0:
669
+ if (requestParameters['pathQueryId'] == null) {
670
+ throw new runtime.RequiredError('pathQueryId', 'Required parameter "pathQueryId" was null or undefined when calling postDeleteBookmark().');
671
+ }
672
+ if (requestParameters['postDeleteBookmarkRequest'] == null) {
673
+ throw new runtime.RequiredError('postDeleteBookmarkRequest', 'Required parameter "postDeleteBookmarkRequest" was null or undefined when calling postDeleteBookmark().');
674
+ }
675
+ queryParameters = {};
676
+ headerParameters = {};
677
+ headerParameters['Content-Type'] = 'application/json';
678
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
679
+ _a = headerParameters;
680
+ _b = "x-twitter-client-language";
681
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-client-language")];
682
+ case 1:
683
+ _a[_b] = _10.sent(); // ClientLanguage authentication
684
+ _10.label = 2;
685
+ case 2:
686
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 4];
687
+ _c = headerParameters;
688
+ _d = "Accept";
689
+ return [4 /*yield*/, this.configuration.apiKey("Accept")];
690
+ case 3:
691
+ _c[_d] = _10.sent(); // Accept authentication
692
+ _10.label = 4;
693
+ case 4:
694
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
695
+ _e = headerParameters;
696
+ _f = "Priority";
697
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
698
+ case 5:
699
+ _e[_f] = _10.sent(); // Priority authentication
700
+ _10.label = 6;
701
+ case 6:
702
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
703
+ _g = headerParameters;
704
+ _h = "Sec-Fetch-Dest";
705
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
706
+ case 7:
707
+ _g[_h] = _10.sent(); // SecFetchDest authentication
708
+ _10.label = 8;
709
+ case 8:
710
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
711
+ _j = headerParameters;
712
+ _k = "Referer";
713
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
714
+ case 9:
715
+ _j[_k] = _10.sent(); // Referer authentication
716
+ _10.label = 10;
717
+ case 10:
718
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
719
+ _l = headerParameters;
720
+ _m = "Sec-Ch-Ua-Platform";
721
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
722
+ case 11:
723
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
724
+ _10.label = 12;
725
+ case 12:
726
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
727
+ _o = headerParameters;
728
+ _p = "Sec-Fetch-Mode";
729
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
730
+ case 13:
731
+ _o[_p] = _10.sent(); // SecFetchMode authentication
732
+ _10.label = 14;
733
+ case 14:
734
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
735
+ _q = headerParameters;
736
+ _r = "x-csrf-token";
737
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
738
+ case 15:
739
+ _q[_r] = _10.sent(); // CsrfToken authentication
740
+ _10.label = 16;
741
+ 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];
751
+ token = this.configuration.accessToken;
752
+ return [4 /*yield*/, token("BearerAuth", [])];
753
+ case 19:
754
+ tokenString = _10.sent();
755
+ if (tokenString) {
756
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
757
+ }
758
+ _10.label = 20;
759
+ case 20:
760
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
761
+ _u = headerParameters;
762
+ _v = "Sec-Ch-Ua";
763
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
764
+ case 21:
765
+ _u[_v] = _10.sent(); // SecChUa authentication
766
+ _10.label = 22;
767
+ case 22:
768
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
769
+ _w = headerParameters;
770
+ _x = "x-twitter-active-user";
771
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
772
+ case 23:
773
+ _w[_x] = _10.sent(); // ActiveUser authentication
774
+ _10.label = 24;
775
+ case 24:
776
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
777
+ _y = headerParameters;
778
+ _z = "user-agent";
779
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
780
+ case 25:
781
+ _y[_z] = _10.sent(); // UserAgent authentication
782
+ _10.label = 26;
783
+ case 26:
784
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
785
+ _0 = headerParameters;
786
+ _1 = "Accept-Language";
787
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
788
+ case 27:
789
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
790
+ _10.label = 28;
791
+ case 28:
792
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
793
+ _2 = headerParameters;
794
+ _3 = "Sec-Fetch-Site";
795
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
796
+ case 29:
797
+ _2[_3] = _10.sent(); // SecFetchSite authentication
798
+ _10.label = 30;
799
+ case 30:
800
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
801
+ _4 = headerParameters;
802
+ _5 = "x-twitter-auth-type";
803
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
804
+ case 31:
805
+ _4[_5] = _10.sent(); // AuthType authentication
806
+ _10.label = 32;
807
+ case 32:
808
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
809
+ _6 = headerParameters;
810
+ _7 = "Sec-Ch-Ua-Mobile";
811
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Mobile")];
812
+ case 33:
813
+ _6[_7] = _10.sent(); // SecChUaMobile authentication
814
+ _10.label = 34;
815
+ case 34:
816
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 36];
817
+ _8 = headerParameters;
818
+ _9 = "Accept-Encoding";
819
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Encoding")];
820
+ case 35:
821
+ _8[_9] = _10.sent(); // AcceptEncoding authentication
822
+ _10.label = 36;
823
+ case 36: return [4 /*yield*/, this.request({
824
+ path: "/graphql/{pathQueryId}/DeleteBookmark".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters['pathQueryId']))),
825
+ method: 'POST',
826
+ headers: headerParameters,
827
+ query: queryParameters,
828
+ body: (0, index_1.PostDeleteBookmarkRequestToJSON)(requestParameters['postDeleteBookmarkRequest']),
829
+ }, initOverrides)];
830
+ case 37:
831
+ response = _10.sent();
832
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PostDeleteBookmark200ResponseFromJSON)(jsonValue); })];
833
+ }
834
+ });
835
+ });
836
+ };
837
+ /**
838
+ * delete Bookmark
839
+ */
840
+ PostApi.prototype.postDeleteBookmark = function (requestParameters, initOverrides) {
841
+ return __awaiter(this, void 0, void 0, function () {
842
+ var response;
843
+ return __generator(this, function (_a) {
844
+ switch (_a.label) {
845
+ case 0: return [4 /*yield*/, this.postDeleteBookmarkRaw(requestParameters, initOverrides)];
846
+ case 1:
847
+ response = _a.sent();
848
+ return [4 /*yield*/, response.value()];
849
+ case 2: return [2 /*return*/, _a.sent()];
850
+ }
851
+ });
852
+ });
853
+ };
466
854
  /**
467
855
  * delete Retweet
468
856
  */
469
857
  PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
470
858
  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, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
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;
472
860
  return __generator(this, function (_10) {
473
861
  switch (_10.label) {
474
862
  case 0:
@@ -499,116 +887,116 @@ var PostApi = /** @class */ (function (_super) {
499
887
  case 4:
500
888
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
501
889
  _e = headerParameters;
502
- _f = "Sec-Fetch-Dest";
503
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
890
+ _f = "Priority";
891
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
504
892
  case 5:
505
- _e[_f] = _10.sent(); // SecFetchDest authentication
893
+ _e[_f] = _10.sent(); // Priority authentication
506
894
  _10.label = 6;
507
895
  case 6:
508
896
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
509
897
  _g = headerParameters;
510
- _h = "Pragma";
511
- return [4 /*yield*/, this.configuration.apiKey("Pragma")];
898
+ _h = "Sec-Fetch-Dest";
899
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
512
900
  case 7:
513
- _g[_h] = _10.sent(); // Pragma authentication
901
+ _g[_h] = _10.sent(); // SecFetchDest authentication
514
902
  _10.label = 8;
515
903
  case 8:
516
904
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
517
905
  _j = headerParameters;
518
- _k = "Sec-Ch-Ua-Platform";
519
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
906
+ _k = "Referer";
907
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
520
908
  case 9:
521
- _j[_k] = _10.sent(); // SecChUaPlatform authentication
909
+ _j[_k] = _10.sent(); // Referer authentication
522
910
  _10.label = 10;
523
911
  case 10:
524
912
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
525
913
  _l = headerParameters;
526
- _m = "Sec-Fetch-Mode";
527
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
914
+ _m = "Sec-Ch-Ua-Platform";
915
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
528
916
  case 11:
529
- _l[_m] = _10.sent(); // SecFetchMode authentication
917
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
530
918
  _10.label = 12;
531
919
  case 12:
532
920
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
533
921
  _o = headerParameters;
534
- _p = "x-csrf-token";
535
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
922
+ _p = "Sec-Fetch-Mode";
923
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
536
924
  case 13:
537
- _o[_p] = _10.sent(); // CsrfToken authentication
925
+ _o[_p] = _10.sent(); // SecFetchMode authentication
538
926
  _10.label = 14;
539
927
  case 14:
540
928
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
541
929
  _q = headerParameters;
542
- _r = "x-guest-token";
543
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
930
+ _r = "x-csrf-token";
931
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
544
932
  case 15:
545
- _q[_r] = _10.sent(); // GuestToken authentication
933
+ _q[_r] = _10.sent(); // CsrfToken authentication
546
934
  _10.label = 16;
547
935
  case 16:
548
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
549
945
  token = this.configuration.accessToken;
550
946
  return [4 /*yield*/, token("BearerAuth", [])];
551
- case 17:
947
+ case 19:
552
948
  tokenString = _10.sent();
553
949
  if (tokenString) {
554
950
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
555
951
  }
556
- _10.label = 18;
557
- case 18:
558
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
559
- _s = headerParameters;
560
- _t = "Sec-Ch-Ua";
561
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
562
- case 19:
563
- _s[_t] = _10.sent(); // SecChUa authentication
564
952
  _10.label = 20;
565
953
  case 20:
566
954
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
567
955
  _u = headerParameters;
568
- _v = "x-twitter-active-user";
569
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
956
+ _v = "Sec-Ch-Ua";
957
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
570
958
  case 21:
571
- _u[_v] = _10.sent(); // ActiveUser authentication
959
+ _u[_v] = _10.sent(); // SecChUa authentication
572
960
  _10.label = 22;
573
961
  case 22:
574
962
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
575
963
  _w = headerParameters;
576
- _x = "user-agent";
577
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
964
+ _x = "x-twitter-active-user";
965
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
578
966
  case 23:
579
- _w[_x] = _10.sent(); // UserAgent authentication
967
+ _w[_x] = _10.sent(); // ActiveUser authentication
580
968
  _10.label = 24;
581
969
  case 24:
582
970
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
583
971
  _y = headerParameters;
584
- _z = "Accept-Language";
585
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
972
+ _z = "user-agent";
973
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
586
974
  case 25:
587
- _y[_z] = _10.sent(); // AcceptLanguage authentication
975
+ _y[_z] = _10.sent(); // UserAgent authentication
588
976
  _10.label = 26;
589
977
  case 26:
590
978
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
591
979
  _0 = headerParameters;
592
- _1 = "Sec-Fetch-Site";
593
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
980
+ _1 = "Accept-Language";
981
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
594
982
  case 27:
595
- _0[_1] = _10.sent(); // SecFetchSite authentication
983
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
596
984
  _10.label = 28;
597
985
  case 28:
598
986
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
599
987
  _2 = headerParameters;
600
- _3 = "x-twitter-auth-type";
601
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
988
+ _3 = "Sec-Fetch-Site";
989
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
602
990
  case 29:
603
- _2[_3] = _10.sent(); // AuthType authentication
991
+ _2[_3] = _10.sent(); // SecFetchSite authentication
604
992
  _10.label = 30;
605
993
  case 30:
606
994
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
607
995
  _4 = headerParameters;
608
- _5 = "Cache-Control";
609
- return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
996
+ _5 = "x-twitter-auth-type";
997
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
610
998
  case 31:
611
- _4[_5] = _10.sent(); // CacheControl authentication
999
+ _4[_5] = _10.sent(); // AuthType authentication
612
1000
  _10.label = 32;
613
1001
  case 32:
614
1002
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
@@ -662,7 +1050,7 @@ var PostApi = /** @class */ (function (_super) {
662
1050
  */
663
1051
  PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
664
1052
  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, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
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;
666
1054
  return __generator(this, function (_10) {
667
1055
  switch (_10.label) {
668
1056
  case 0:
@@ -693,116 +1081,116 @@ var PostApi = /** @class */ (function (_super) {
693
1081
  case 4:
694
1082
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
695
1083
  _e = headerParameters;
696
- _f = "Sec-Fetch-Dest";
697
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1084
+ _f = "Priority";
1085
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
698
1086
  case 5:
699
- _e[_f] = _10.sent(); // SecFetchDest authentication
1087
+ _e[_f] = _10.sent(); // Priority authentication
700
1088
  _10.label = 6;
701
1089
  case 6:
702
1090
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
703
1091
  _g = headerParameters;
704
- _h = "Pragma";
705
- return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1092
+ _h = "Sec-Fetch-Dest";
1093
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
706
1094
  case 7:
707
- _g[_h] = _10.sent(); // Pragma authentication
1095
+ _g[_h] = _10.sent(); // SecFetchDest authentication
708
1096
  _10.label = 8;
709
1097
  case 8:
710
1098
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
711
1099
  _j = headerParameters;
712
- _k = "Sec-Ch-Ua-Platform";
713
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1100
+ _k = "Referer";
1101
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
714
1102
  case 9:
715
- _j[_k] = _10.sent(); // SecChUaPlatform authentication
1103
+ _j[_k] = _10.sent(); // Referer authentication
716
1104
  _10.label = 10;
717
1105
  case 10:
718
1106
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
719
1107
  _l = headerParameters;
720
- _m = "Sec-Fetch-Mode";
721
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1108
+ _m = "Sec-Ch-Ua-Platform";
1109
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
722
1110
  case 11:
723
- _l[_m] = _10.sent(); // SecFetchMode authentication
1111
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
724
1112
  _10.label = 12;
725
1113
  case 12:
726
1114
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
727
1115
  _o = headerParameters;
728
- _p = "x-csrf-token";
729
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1116
+ _p = "Sec-Fetch-Mode";
1117
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
730
1118
  case 13:
731
- _o[_p] = _10.sent(); // CsrfToken authentication
1119
+ _o[_p] = _10.sent(); // SecFetchMode authentication
732
1120
  _10.label = 14;
733
1121
  case 14:
734
1122
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
735
1123
  _q = headerParameters;
736
- _r = "x-guest-token";
737
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1124
+ _r = "x-csrf-token";
1125
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
738
1126
  case 15:
739
- _q[_r] = _10.sent(); // GuestToken authentication
1127
+ _q[_r] = _10.sent(); // CsrfToken authentication
740
1128
  _10.label = 16;
741
1129
  case 16:
742
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
743
1139
  token = this.configuration.accessToken;
744
1140
  return [4 /*yield*/, token("BearerAuth", [])];
745
- case 17:
1141
+ case 19:
746
1142
  tokenString = _10.sent();
747
1143
  if (tokenString) {
748
1144
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
749
1145
  }
750
- _10.label = 18;
751
- case 18:
752
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
753
- _s = headerParameters;
754
- _t = "Sec-Ch-Ua";
755
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
756
- case 19:
757
- _s[_t] = _10.sent(); // SecChUa authentication
758
1146
  _10.label = 20;
759
1147
  case 20:
760
1148
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
761
1149
  _u = headerParameters;
762
- _v = "x-twitter-active-user";
763
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1150
+ _v = "Sec-Ch-Ua";
1151
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
764
1152
  case 21:
765
- _u[_v] = _10.sent(); // ActiveUser authentication
1153
+ _u[_v] = _10.sent(); // SecChUa authentication
766
1154
  _10.label = 22;
767
1155
  case 22:
768
1156
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
769
1157
  _w = headerParameters;
770
- _x = "user-agent";
771
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1158
+ _x = "x-twitter-active-user";
1159
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
772
1160
  case 23:
773
- _w[_x] = _10.sent(); // UserAgent authentication
1161
+ _w[_x] = _10.sent(); // ActiveUser authentication
774
1162
  _10.label = 24;
775
1163
  case 24:
776
1164
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
777
1165
  _y = headerParameters;
778
- _z = "Accept-Language";
779
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1166
+ _z = "user-agent";
1167
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
780
1168
  case 25:
781
- _y[_z] = _10.sent(); // AcceptLanguage authentication
1169
+ _y[_z] = _10.sent(); // UserAgent authentication
782
1170
  _10.label = 26;
783
1171
  case 26:
784
1172
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
785
1173
  _0 = headerParameters;
786
- _1 = "Sec-Fetch-Site";
787
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1174
+ _1 = "Accept-Language";
1175
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
788
1176
  case 27:
789
- _0[_1] = _10.sent(); // SecFetchSite authentication
1177
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
790
1178
  _10.label = 28;
791
1179
  case 28:
792
1180
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
793
1181
  _2 = headerParameters;
794
- _3 = "x-twitter-auth-type";
795
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1182
+ _3 = "Sec-Fetch-Site";
1183
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
796
1184
  case 29:
797
- _2[_3] = _10.sent(); // AuthType authentication
1185
+ _2[_3] = _10.sent(); // SecFetchSite authentication
798
1186
  _10.label = 30;
799
1187
  case 30:
800
1188
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
801
1189
  _4 = headerParameters;
802
- _5 = "Cache-Control";
803
- return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1190
+ _5 = "x-twitter-auth-type";
1191
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
804
1192
  case 31:
805
- _4[_5] = _10.sent(); // CacheControl authentication
1193
+ _4[_5] = _10.sent(); // AuthType authentication
806
1194
  _10.label = 32;
807
1195
  case 32:
808
1196
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
@@ -856,7 +1244,7 @@ var PostApi = /** @class */ (function (_super) {
856
1244
  */
857
1245
  PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
858
1246
  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, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
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;
860
1248
  return __generator(this, function (_10) {
861
1249
  switch (_10.label) {
862
1250
  case 0:
@@ -887,116 +1275,116 @@ var PostApi = /** @class */ (function (_super) {
887
1275
  case 4:
888
1276
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
889
1277
  _e = headerParameters;
890
- _f = "Sec-Fetch-Dest";
891
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1278
+ _f = "Priority";
1279
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
892
1280
  case 5:
893
- _e[_f] = _10.sent(); // SecFetchDest authentication
1281
+ _e[_f] = _10.sent(); // Priority authentication
894
1282
  _10.label = 6;
895
1283
  case 6:
896
1284
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
897
1285
  _g = headerParameters;
898
- _h = "Pragma";
899
- return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1286
+ _h = "Sec-Fetch-Dest";
1287
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
900
1288
  case 7:
901
- _g[_h] = _10.sent(); // Pragma authentication
1289
+ _g[_h] = _10.sent(); // SecFetchDest authentication
902
1290
  _10.label = 8;
903
1291
  case 8:
904
1292
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
905
1293
  _j = headerParameters;
906
- _k = "Sec-Ch-Ua-Platform";
907
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1294
+ _k = "Referer";
1295
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
908
1296
  case 9:
909
- _j[_k] = _10.sent(); // SecChUaPlatform authentication
1297
+ _j[_k] = _10.sent(); // Referer authentication
910
1298
  _10.label = 10;
911
1299
  case 10:
912
1300
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
913
1301
  _l = headerParameters;
914
- _m = "Sec-Fetch-Mode";
915
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1302
+ _m = "Sec-Ch-Ua-Platform";
1303
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
916
1304
  case 11:
917
- _l[_m] = _10.sent(); // SecFetchMode authentication
1305
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
918
1306
  _10.label = 12;
919
1307
  case 12:
920
1308
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
921
1309
  _o = headerParameters;
922
- _p = "x-csrf-token";
923
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1310
+ _p = "Sec-Fetch-Mode";
1311
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
924
1312
  case 13:
925
- _o[_p] = _10.sent(); // CsrfToken authentication
1313
+ _o[_p] = _10.sent(); // SecFetchMode authentication
926
1314
  _10.label = 14;
927
1315
  case 14:
928
1316
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
929
1317
  _q = headerParameters;
930
- _r = "x-guest-token";
931
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1318
+ _r = "x-csrf-token";
1319
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
932
1320
  case 15:
933
- _q[_r] = _10.sent(); // GuestToken authentication
1321
+ _q[_r] = _10.sent(); // CsrfToken authentication
934
1322
  _10.label = 16;
935
1323
  case 16:
936
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
937
1333
  token = this.configuration.accessToken;
938
1334
  return [4 /*yield*/, token("BearerAuth", [])];
939
- case 17:
1335
+ case 19:
940
1336
  tokenString = _10.sent();
941
1337
  if (tokenString) {
942
1338
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
943
1339
  }
944
- _10.label = 18;
945
- case 18:
946
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
947
- _s = headerParameters;
948
- _t = "Sec-Ch-Ua";
949
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
950
- case 19:
951
- _s[_t] = _10.sent(); // SecChUa authentication
952
1340
  _10.label = 20;
953
1341
  case 20:
954
1342
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
955
1343
  _u = headerParameters;
956
- _v = "x-twitter-active-user";
957
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1344
+ _v = "Sec-Ch-Ua";
1345
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
958
1346
  case 21:
959
- _u[_v] = _10.sent(); // ActiveUser authentication
1347
+ _u[_v] = _10.sent(); // SecChUa authentication
960
1348
  _10.label = 22;
961
1349
  case 22:
962
1350
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
963
1351
  _w = headerParameters;
964
- _x = "user-agent";
965
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1352
+ _x = "x-twitter-active-user";
1353
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
966
1354
  case 23:
967
- _w[_x] = _10.sent(); // UserAgent authentication
1355
+ _w[_x] = _10.sent(); // ActiveUser authentication
968
1356
  _10.label = 24;
969
1357
  case 24:
970
1358
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
971
1359
  _y = headerParameters;
972
- _z = "Accept-Language";
973
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1360
+ _z = "user-agent";
1361
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
974
1362
  case 25:
975
- _y[_z] = _10.sent(); // AcceptLanguage authentication
1363
+ _y[_z] = _10.sent(); // UserAgent authentication
976
1364
  _10.label = 26;
977
1365
  case 26:
978
1366
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
979
1367
  _0 = headerParameters;
980
- _1 = "Sec-Fetch-Site";
981
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1368
+ _1 = "Accept-Language";
1369
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
982
1370
  case 27:
983
- _0[_1] = _10.sent(); // SecFetchSite authentication
1371
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
984
1372
  _10.label = 28;
985
1373
  case 28:
986
1374
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
987
1375
  _2 = headerParameters;
988
- _3 = "x-twitter-auth-type";
989
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1376
+ _3 = "Sec-Fetch-Site";
1377
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
990
1378
  case 29:
991
- _2[_3] = _10.sent(); // AuthType authentication
1379
+ _2[_3] = _10.sent(); // SecFetchSite authentication
992
1380
  _10.label = 30;
993
1381
  case 30:
994
1382
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
995
1383
  _4 = headerParameters;
996
- _5 = "Cache-Control";
997
- return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1384
+ _5 = "x-twitter-auth-type";
1385
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
998
1386
  case 31:
999
- _4[_5] = _10.sent(); // CacheControl authentication
1387
+ _4[_5] = _10.sent(); // AuthType authentication
1000
1388
  _10.label = 32;
1001
1389
  case 32:
1002
1390
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];
@@ -1050,7 +1438,7 @@ var PostApi = /** @class */ (function (_super) {
1050
1438
  */
1051
1439
  PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
1052
1440
  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, token, tokenString, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, response;
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;
1054
1442
  return __generator(this, function (_10) {
1055
1443
  switch (_10.label) {
1056
1444
  case 0:
@@ -1081,116 +1469,116 @@ var PostApi = /** @class */ (function (_super) {
1081
1469
  case 4:
1082
1470
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 6];
1083
1471
  _e = headerParameters;
1084
- _f = "Sec-Fetch-Dest";
1085
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1472
+ _f = "Priority";
1473
+ return [4 /*yield*/, this.configuration.apiKey("Priority")];
1086
1474
  case 5:
1087
- _e[_f] = _10.sent(); // SecFetchDest authentication
1475
+ _e[_f] = _10.sent(); // Priority authentication
1088
1476
  _10.label = 6;
1089
1477
  case 6:
1090
1478
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 8];
1091
1479
  _g = headerParameters;
1092
- _h = "Pragma";
1093
- return [4 /*yield*/, this.configuration.apiKey("Pragma")];
1480
+ _h = "Sec-Fetch-Dest";
1481
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Dest")];
1094
1482
  case 7:
1095
- _g[_h] = _10.sent(); // Pragma authentication
1483
+ _g[_h] = _10.sent(); // SecFetchDest authentication
1096
1484
  _10.label = 8;
1097
1485
  case 8:
1098
1486
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 10];
1099
1487
  _j = headerParameters;
1100
- _k = "Sec-Ch-Ua-Platform";
1101
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1488
+ _k = "Referer";
1489
+ return [4 /*yield*/, this.configuration.apiKey("Referer")];
1102
1490
  case 9:
1103
- _j[_k] = _10.sent(); // SecChUaPlatform authentication
1491
+ _j[_k] = _10.sent(); // Referer authentication
1104
1492
  _10.label = 10;
1105
1493
  case 10:
1106
1494
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 12];
1107
1495
  _l = headerParameters;
1108
- _m = "Sec-Fetch-Mode";
1109
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1496
+ _m = "Sec-Ch-Ua-Platform";
1497
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua-Platform")];
1110
1498
  case 11:
1111
- _l[_m] = _10.sent(); // SecFetchMode authentication
1499
+ _l[_m] = _10.sent(); // SecChUaPlatform authentication
1112
1500
  _10.label = 12;
1113
1501
  case 12:
1114
1502
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 14];
1115
1503
  _o = headerParameters;
1116
- _p = "x-csrf-token";
1117
- return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1504
+ _p = "Sec-Fetch-Mode";
1505
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Mode")];
1118
1506
  case 13:
1119
- _o[_p] = _10.sent(); // CsrfToken authentication
1507
+ _o[_p] = _10.sent(); // SecFetchMode authentication
1120
1508
  _10.label = 14;
1121
1509
  case 14:
1122
1510
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 16];
1123
1511
  _q = headerParameters;
1124
- _r = "x-guest-token";
1125
- return [4 /*yield*/, this.configuration.apiKey("x-guest-token")];
1512
+ _r = "x-csrf-token";
1513
+ return [4 /*yield*/, this.configuration.apiKey("x-csrf-token")];
1126
1514
  case 15:
1127
- _q[_r] = _10.sent(); // GuestToken authentication
1515
+ _q[_r] = _10.sent(); // CsrfToken authentication
1128
1516
  _10.label = 16;
1129
1517
  case 16:
1130
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 18];
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];
1131
1527
  token = this.configuration.accessToken;
1132
1528
  return [4 /*yield*/, token("BearerAuth", [])];
1133
- case 17:
1529
+ case 19:
1134
1530
  tokenString = _10.sent();
1135
1531
  if (tokenString) {
1136
1532
  headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1137
1533
  }
1138
- _10.label = 18;
1139
- case 18:
1140
- if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 20];
1141
- _s = headerParameters;
1142
- _t = "Sec-Ch-Ua";
1143
- return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1144
- case 19:
1145
- _s[_t] = _10.sent(); // SecChUa authentication
1146
1534
  _10.label = 20;
1147
1535
  case 20:
1148
1536
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 22];
1149
1537
  _u = headerParameters;
1150
- _v = "x-twitter-active-user";
1151
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1538
+ _v = "Sec-Ch-Ua";
1539
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Ch-Ua")];
1152
1540
  case 21:
1153
- _u[_v] = _10.sent(); // ActiveUser authentication
1541
+ _u[_v] = _10.sent(); // SecChUa authentication
1154
1542
  _10.label = 22;
1155
1543
  case 22:
1156
1544
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 24];
1157
1545
  _w = headerParameters;
1158
- _x = "user-agent";
1159
- return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1546
+ _x = "x-twitter-active-user";
1547
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-active-user")];
1160
1548
  case 23:
1161
- _w[_x] = _10.sent(); // UserAgent authentication
1549
+ _w[_x] = _10.sent(); // ActiveUser authentication
1162
1550
  _10.label = 24;
1163
1551
  case 24:
1164
1552
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 26];
1165
1553
  _y = headerParameters;
1166
- _z = "Accept-Language";
1167
- return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1554
+ _z = "user-agent";
1555
+ return [4 /*yield*/, this.configuration.apiKey("user-agent")];
1168
1556
  case 25:
1169
- _y[_z] = _10.sent(); // AcceptLanguage authentication
1557
+ _y[_z] = _10.sent(); // UserAgent authentication
1170
1558
  _10.label = 26;
1171
1559
  case 26:
1172
1560
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 28];
1173
1561
  _0 = headerParameters;
1174
- _1 = "Sec-Fetch-Site";
1175
- return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1562
+ _1 = "Accept-Language";
1563
+ return [4 /*yield*/, this.configuration.apiKey("Accept-Language")];
1176
1564
  case 27:
1177
- _0[_1] = _10.sent(); // SecFetchSite authentication
1565
+ _0[_1] = _10.sent(); // AcceptLanguage authentication
1178
1566
  _10.label = 28;
1179
1567
  case 28:
1180
1568
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 30];
1181
1569
  _2 = headerParameters;
1182
- _3 = "x-twitter-auth-type";
1183
- return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1570
+ _3 = "Sec-Fetch-Site";
1571
+ return [4 /*yield*/, this.configuration.apiKey("Sec-Fetch-Site")];
1184
1572
  case 29:
1185
- _2[_3] = _10.sent(); // AuthType authentication
1573
+ _2[_3] = _10.sent(); // SecFetchSite authentication
1186
1574
  _10.label = 30;
1187
1575
  case 30:
1188
1576
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 32];
1189
1577
  _4 = headerParameters;
1190
- _5 = "Cache-Control";
1191
- return [4 /*yield*/, this.configuration.apiKey("Cache-Control")];
1578
+ _5 = "x-twitter-auth-type";
1579
+ return [4 /*yield*/, this.configuration.apiKey("x-twitter-auth-type")];
1192
1580
  case 31:
1193
- _4[_5] = _10.sent(); // CacheControl authentication
1581
+ _4[_5] = _10.sent(); // AuthType authentication
1194
1582
  _10.label = 32;
1195
1583
  case 32:
1196
1584
  if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 34];