twitter-openapi-typescript-generated 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +18 -0
- package/LICENSE +31 -31
- package/LICENSE.AGPL +660 -660
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +86 -18
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +43 -9
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +264 -60
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +1 -2
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +479 -111
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -0
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +92 -18
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +0 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +215 -51
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +43 -9
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +86 -18
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +72 -6
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +43 -9
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/BirdwatchEntity.d.ts +45 -0
- package/dist/models/BirdwatchEntity.d.ts.map +1 -0
- package/dist/models/BirdwatchEntity.js +58 -0
- package/dist/models/BirdwatchEntity.js.map +1 -0
- package/dist/models/BirdwatchEntityRef.d.ts +58 -0
- package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
- package/dist/models/BirdwatchEntityRef.js +69 -0
- package/dist/models/BirdwatchEntityRef.js.map +1 -0
- package/dist/models/BirdwatchPivot.d.ts +91 -0
- package/dist/models/BirdwatchPivot.d.ts.map +1 -0
- package/dist/models/BirdwatchPivot.js +87 -0
- package/dist/models/BirdwatchPivot.js.map +1 -0
- package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
- package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotFooter.js +55 -0
- package/dist/models/BirdwatchPivotFooter.js.map +1 -0
- package/dist/models/BirdwatchPivotNote.d.ts +32 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotNote.js +51 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.js +55 -0
- package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
- package/dist/models/ContentItemType.d.ts +1 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +2 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/CoverCta.d.ts +1 -1
- package/dist/models/CoverCta.d.ts.map +1 -1
- package/dist/models/CoverCta.js +1 -2
- package/dist/models/CoverCta.js.map +1 -1
- package/dist/models/DeleteRetweet.d.ts +33 -0
- package/dist/models/DeleteRetweet.d.ts.map +1 -0
- package/dist/models/DeleteRetweet.js +52 -0
- package/dist/models/DeleteRetweet.js.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.js +52 -0
- package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +33 -0
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +7 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
- package/dist/models/ExtMediaAvailability.js +4 -1
- package/dist/models/ExtMediaAvailability.js.map +1 -1
- package/dist/models/Extensions.d.ts +57 -0
- package/dist/models/Extensions.d.ts.map +1 -0
- package/dist/models/Extensions.js +64 -0
- package/dist/models/Extensions.js.map +1 -0
- package/dist/models/ItemContentUnion.d.ts +3 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +5 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListTweetsTimeline.d.ts +1 -1
- package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
- package/dist/models/ListTweetsTimeline.js +2 -2
- package/dist/models/ListTweetsTimeline.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +1 -1
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +1 -2
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/NoteTweet.d.ts +39 -0
- package/dist/models/NoteTweet.d.ts.map +1 -0
- package/dist/models/NoteTweet.js +55 -0
- package/dist/models/NoteTweet.js.map +1 -0
- package/dist/models/NoteTweetResult.d.ts +33 -0
- package/dist/models/NoteTweetResult.d.ts.map +1 -0
- package/dist/models/NoteTweetResult.js +52 -0
- package/dist/models/NoteTweetResult.js.map +1 -0
- package/dist/models/NoteTweetResultData.d.ts +59 -0
- package/dist/models/NoteTweetResultData.d.ts.map +1 -0
- package/dist/models/NoteTweetResultData.js +65 -0
- package/dist/models/NoteTweetResultData.js.map +1 -0
- package/dist/models/NoteTweetResultMedia.d.ts +32 -0
- package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
- package/dist/models/NoteTweetResultMedia.js +51 -0
- package/dist/models/NoteTweetResultMedia.js.map +1 -0
- package/dist/models/NoteTweetResultRichText.d.ts +33 -0
- package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichText.js +52 -0
- package/dist/models/NoteTweetResultRichText.js.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.js +64 -0
- package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
- package/dist/models/TimelineCommunity.d.ts +34 -0
- package/dist/models/TimelineCommunity.d.ts.map +1 -0
- package/dist/models/TimelineCommunity.js +59 -0
- package/dist/models/TimelineCommunity.js.map +1 -0
- package/dist/models/Tweet.d.ts +20 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +8 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UserResults.d.ts +1 -1
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +2 -2
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -3
- package/src/apis/DefaultApi.ts +94 -6
- package/src/apis/OtherApi.ts +47 -3
- package/src/apis/PostApi.ts +282 -18
- package/src/apis/TweetApi.ts +526 -51
- package/src/apis/UserApi.ts +103 -6
- package/src/apis/UserListApi.ts +235 -24
- package/src/apis/UsersApi.ts +47 -3
- package/src/apis/V11GetApi.ts +94 -6
- package/src/apis/V11PostApi.ts +94 -6
- package/src/apis/V20GetApi.ts +47 -3
- package/src/models/BirdwatchEntity.ts +91 -0
- package/src/models/BirdwatchEntityRef.ts +102 -0
- package/src/models/BirdwatchPivot.ts +165 -0
- package/src/models/BirdwatchPivotFooter.ts +82 -0
- package/src/models/BirdwatchPivotNote.ts +66 -0
- package/src/models/BirdwatchPivotSubtitle.ts +82 -0
- package/src/models/ContentItemType.ts +2 -1
- package/src/models/CoverCta.ts +2 -3
- package/src/models/DeleteRetweet.ts +73 -0
- package/src/models/DeleteRetweetResponseResult.ts +72 -0
- package/src/models/ErrorResponse.ts +73 -0
- package/src/models/ExtMediaAvailability.ts +10 -1
- package/src/models/Extensions.ts +109 -0
- package/src/models/ItemContentUnion.ts +12 -1
- package/src/models/ListTweetsTimeline.ts +2 -3
- package/src/models/MediaExtended.ts +2 -3
- package/src/models/NoteTweet.ts +82 -0
- package/src/models/NoteTweetResult.ts +73 -0
- package/src/models/NoteTweetResultData.ts +119 -0
- package/src/models/NoteTweetResultMedia.ts +66 -0
- package/src/models/NoteTweetResultRichText.ts +73 -0
- package/src/models/NoteTweetResultRichTextTag.ts +95 -0
- package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
- package/src/models/TimelineCommunity.ts +75 -0
- package/src/models/Tweet.ts +36 -0
- package/src/models/TypeName.ts +1 -0
- package/src/models/UserResults.ts +2 -3
- package/src/models/index.ts +18 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/.vscode/launch.json +8 -0
- package/twitter-openapi/README.md +2 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5189 -34
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +6987 -34
- package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
- package/twitter-openapi/src/config/placeholder.json +145 -112
- package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
- package/twitter-openapi/src/openapi/schemas/content.yaml +9 -1
- package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +0 -1
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +169 -2
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
- package/twitter-openapi/test/python/test_serialize.py +24 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/build.py +35 -31
- package/twitter-openapi/tools/build_config.py +7 -10
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
- package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
- package/twitter-openapi/dist/compatible/paths/other.yaml +0 -99
- package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
- package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
- package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
- package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
- package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -99
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
package/dist/apis/TweetApi.js
CHANGED
|
@@ -105,13 +105,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
105
105
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
106
106
|
}
|
|
107
107
|
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
-
headerParameters["
|
|
108
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
109
109
|
}
|
|
110
110
|
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
-
headerParameters["
|
|
111
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
112
112
|
}
|
|
113
113
|
if (this.configuration && this.configuration.apiKey) {
|
|
114
|
-
headerParameters["
|
|
114
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
115
|
+
}
|
|
116
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
117
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
118
|
+
}
|
|
119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
115
121
|
}
|
|
116
122
|
if (this.configuration && this.configuration.apiKey) {
|
|
117
123
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -128,12 +134,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
128
134
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
129
135
|
}
|
|
130
136
|
_a.label = 2;
|
|
131
|
-
case 2:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
case 2:
|
|
138
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
139
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
140
|
+
}
|
|
141
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
142
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
143
|
+
}
|
|
144
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
145
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
146
|
+
}
|
|
147
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
148
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
149
|
+
}
|
|
150
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
151
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
152
|
+
}
|
|
153
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
154
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
155
|
+
}
|
|
156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
158
|
+
}
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
161
|
+
}
|
|
162
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
163
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
164
|
+
}
|
|
165
|
+
return [4 /*yield*/, this.request({
|
|
166
|
+
path: "/graphql/{pathQueryId}/Bookmarks".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
167
|
+
method: 'GET',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
}, initOverrides)];
|
|
137
171
|
case 3:
|
|
138
172
|
response = _a.sent();
|
|
139
173
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetBookmarks200ResponseFromJSON)(jsonValue); })];
|
|
@@ -188,13 +222,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
188
222
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
189
223
|
}
|
|
190
224
|
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
-
headerParameters["
|
|
225
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
192
226
|
}
|
|
193
227
|
if (this.configuration && this.configuration.apiKey) {
|
|
194
|
-
headerParameters["
|
|
228
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
195
229
|
}
|
|
196
230
|
if (this.configuration && this.configuration.apiKey) {
|
|
197
|
-
headerParameters["
|
|
231
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
232
|
+
}
|
|
233
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
234
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
235
|
+
}
|
|
236
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
237
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
198
238
|
}
|
|
199
239
|
if (this.configuration && this.configuration.apiKey) {
|
|
200
240
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -211,12 +251,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
211
251
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
212
252
|
}
|
|
213
253
|
_a.label = 2;
|
|
214
|
-
case 2:
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
254
|
+
case 2:
|
|
255
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
256
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
257
|
+
}
|
|
258
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
259
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
260
|
+
}
|
|
261
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
263
|
+
}
|
|
264
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
265
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
266
|
+
}
|
|
267
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
268
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
269
|
+
}
|
|
270
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
271
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
272
|
+
}
|
|
273
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
275
|
+
}
|
|
276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
278
|
+
}
|
|
279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
280
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
281
|
+
}
|
|
282
|
+
return [4 /*yield*/, this.request({
|
|
283
|
+
path: "/graphql/{pathQueryId}/HomeLatestTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
284
|
+
method: 'GET',
|
|
285
|
+
headers: headerParameters,
|
|
286
|
+
query: queryParameters,
|
|
287
|
+
}, initOverrides)];
|
|
220
288
|
case 3:
|
|
221
289
|
response = _a.sent();
|
|
222
290
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
|
|
@@ -271,13 +339,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
271
339
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
272
340
|
}
|
|
273
341
|
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
-
headerParameters["
|
|
342
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
275
343
|
}
|
|
276
344
|
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
-
headerParameters["
|
|
345
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
278
346
|
}
|
|
279
347
|
if (this.configuration && this.configuration.apiKey) {
|
|
280
|
-
headerParameters["
|
|
348
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
349
|
+
}
|
|
350
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
351
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
352
|
+
}
|
|
353
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
354
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
281
355
|
}
|
|
282
356
|
if (this.configuration && this.configuration.apiKey) {
|
|
283
357
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -294,12 +368,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
294
368
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
295
369
|
}
|
|
296
370
|
_a.label = 2;
|
|
297
|
-
case 2:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
371
|
+
case 2:
|
|
372
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
373
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
374
|
+
}
|
|
375
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
376
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
377
|
+
}
|
|
378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
379
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
380
|
+
}
|
|
381
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
382
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
383
|
+
}
|
|
384
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
385
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
386
|
+
}
|
|
387
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
388
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
389
|
+
}
|
|
390
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
391
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
392
|
+
}
|
|
393
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
394
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
395
|
+
}
|
|
396
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
397
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
398
|
+
}
|
|
399
|
+
return [4 /*yield*/, this.request({
|
|
400
|
+
path: "/graphql/{pathQueryId}/HomeTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
401
|
+
method: 'GET',
|
|
402
|
+
headers: headerParameters,
|
|
403
|
+
query: queryParameters,
|
|
404
|
+
}, initOverrides)];
|
|
303
405
|
case 3:
|
|
304
406
|
response = _a.sent();
|
|
305
407
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetHomeLatestTimeline200ResponseFromJSON)(jsonValue); })];
|
|
@@ -354,13 +456,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
354
456
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
355
457
|
}
|
|
356
458
|
if (this.configuration && this.configuration.apiKey) {
|
|
357
|
-
headerParameters["
|
|
459
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
358
460
|
}
|
|
359
461
|
if (this.configuration && this.configuration.apiKey) {
|
|
360
|
-
headerParameters["
|
|
462
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
361
463
|
}
|
|
362
464
|
if (this.configuration && this.configuration.apiKey) {
|
|
363
|
-
headerParameters["
|
|
465
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
466
|
+
}
|
|
467
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
468
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
469
|
+
}
|
|
470
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
471
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
364
472
|
}
|
|
365
473
|
if (this.configuration && this.configuration.apiKey) {
|
|
366
474
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -377,12 +485,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
377
485
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
378
486
|
}
|
|
379
487
|
_a.label = 2;
|
|
380
|
-
case 2:
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
488
|
+
case 2:
|
|
489
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
490
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
491
|
+
}
|
|
492
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
493
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
494
|
+
}
|
|
495
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
496
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
497
|
+
}
|
|
498
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
499
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
500
|
+
}
|
|
501
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
502
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
503
|
+
}
|
|
504
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
505
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
506
|
+
}
|
|
507
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
508
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
509
|
+
}
|
|
510
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
511
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
512
|
+
}
|
|
513
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
514
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
515
|
+
}
|
|
516
|
+
return [4 /*yield*/, this.request({
|
|
517
|
+
path: "/graphql/{pathQueryId}/Likes".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
518
|
+
method: 'GET',
|
|
519
|
+
headers: headerParameters,
|
|
520
|
+
query: queryParameters,
|
|
521
|
+
}, initOverrides)];
|
|
386
522
|
case 3:
|
|
387
523
|
response = _a.sent();
|
|
388
524
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
|
|
@@ -437,13 +573,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
437
573
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
438
574
|
}
|
|
439
575
|
if (this.configuration && this.configuration.apiKey) {
|
|
440
|
-
headerParameters["
|
|
576
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
441
577
|
}
|
|
442
578
|
if (this.configuration && this.configuration.apiKey) {
|
|
443
|
-
headerParameters["
|
|
579
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
444
580
|
}
|
|
445
581
|
if (this.configuration && this.configuration.apiKey) {
|
|
446
|
-
headerParameters["
|
|
582
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
583
|
+
}
|
|
584
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
585
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
586
|
+
}
|
|
587
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
588
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
447
589
|
}
|
|
448
590
|
if (this.configuration && this.configuration.apiKey) {
|
|
449
591
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -460,12 +602,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
460
602
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
461
603
|
}
|
|
462
604
|
_a.label = 2;
|
|
463
|
-
case 2:
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
605
|
+
case 2:
|
|
606
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
607
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
608
|
+
}
|
|
609
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
610
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
611
|
+
}
|
|
612
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
613
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
614
|
+
}
|
|
615
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
616
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
617
|
+
}
|
|
618
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
619
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
620
|
+
}
|
|
621
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
622
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
623
|
+
}
|
|
624
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
625
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
626
|
+
}
|
|
627
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
628
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
629
|
+
}
|
|
630
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
631
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
632
|
+
}
|
|
633
|
+
return [4 /*yield*/, this.request({
|
|
634
|
+
path: "/graphql/{pathQueryId}/ListLatestTweetsTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
635
|
+
method: 'GET',
|
|
636
|
+
headers: headerParameters,
|
|
637
|
+
query: queryParameters,
|
|
638
|
+
}, initOverrides)];
|
|
469
639
|
case 3:
|
|
470
640
|
response = _a.sent();
|
|
471
641
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetListLatestTweetsTimeline200ResponseFromJSON)(jsonValue); })];
|
|
@@ -508,9 +678,6 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
508
678
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
509
679
|
throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getSearchTimeline.');
|
|
510
680
|
}
|
|
511
|
-
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
512
|
-
throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getSearchTimeline.');
|
|
513
|
-
}
|
|
514
681
|
queryParameters = {};
|
|
515
682
|
if (requestParameters.variables !== undefined) {
|
|
516
683
|
queryParameters['variables'] = requestParameters.variables;
|
|
@@ -518,21 +685,24 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
518
685
|
if (requestParameters.features !== undefined) {
|
|
519
686
|
queryParameters['features'] = requestParameters.features;
|
|
520
687
|
}
|
|
521
|
-
if (requestParameters.fieldToggles !== undefined) {
|
|
522
|
-
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
523
|
-
}
|
|
524
688
|
headerParameters = {};
|
|
525
689
|
if (this.configuration && this.configuration.apiKey) {
|
|
526
690
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
527
691
|
}
|
|
528
692
|
if (this.configuration && this.configuration.apiKey) {
|
|
529
|
-
headerParameters["
|
|
693
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
530
694
|
}
|
|
531
695
|
if (this.configuration && this.configuration.apiKey) {
|
|
532
|
-
headerParameters["
|
|
696
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
533
697
|
}
|
|
534
698
|
if (this.configuration && this.configuration.apiKey) {
|
|
535
|
-
headerParameters["
|
|
699
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
700
|
+
}
|
|
701
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
702
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
703
|
+
}
|
|
704
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
705
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
536
706
|
}
|
|
537
707
|
if (this.configuration && this.configuration.apiKey) {
|
|
538
708
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -549,12 +719,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
549
719
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
550
720
|
}
|
|
551
721
|
_a.label = 2;
|
|
552
|
-
case 2:
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
722
|
+
case 2:
|
|
723
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
724
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
725
|
+
}
|
|
726
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
727
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
728
|
+
}
|
|
729
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
730
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
731
|
+
}
|
|
732
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
733
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
734
|
+
}
|
|
735
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
736
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
737
|
+
}
|
|
738
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
739
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
740
|
+
}
|
|
741
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
742
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
743
|
+
}
|
|
744
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
745
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
746
|
+
}
|
|
747
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
748
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
749
|
+
}
|
|
750
|
+
return [4 /*yield*/, this.request({
|
|
751
|
+
path: "/graphql/{pathQueryId}/SearchTimeline".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
752
|
+
method: 'GET',
|
|
753
|
+
headers: headerParameters,
|
|
754
|
+
query: queryParameters,
|
|
755
|
+
}, initOverrides)];
|
|
558
756
|
case 3:
|
|
559
757
|
response = _a.sent();
|
|
560
758
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetSearchTimeline200ResponseFromJSON)(jsonValue); })];
|
|
@@ -597,6 +795,9 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
597
795
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
598
796
|
throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getTweetDetail.');
|
|
599
797
|
}
|
|
798
|
+
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
799
|
+
throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getTweetDetail.');
|
|
800
|
+
}
|
|
600
801
|
queryParameters = {};
|
|
601
802
|
if (requestParameters.variables !== undefined) {
|
|
602
803
|
queryParameters['variables'] = requestParameters.variables;
|
|
@@ -604,18 +805,27 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
604
805
|
if (requestParameters.features !== undefined) {
|
|
605
806
|
queryParameters['features'] = requestParameters.features;
|
|
606
807
|
}
|
|
808
|
+
if (requestParameters.fieldToggles !== undefined) {
|
|
809
|
+
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
810
|
+
}
|
|
607
811
|
headerParameters = {};
|
|
608
812
|
if (this.configuration && this.configuration.apiKey) {
|
|
609
813
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
610
814
|
}
|
|
611
815
|
if (this.configuration && this.configuration.apiKey) {
|
|
612
|
-
headerParameters["
|
|
816
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
613
817
|
}
|
|
614
818
|
if (this.configuration && this.configuration.apiKey) {
|
|
615
|
-
headerParameters["
|
|
819
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
616
820
|
}
|
|
617
821
|
if (this.configuration && this.configuration.apiKey) {
|
|
618
|
-
headerParameters["
|
|
822
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
823
|
+
}
|
|
824
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
825
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
826
|
+
}
|
|
827
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
828
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
619
829
|
}
|
|
620
830
|
if (this.configuration && this.configuration.apiKey) {
|
|
621
831
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -632,12 +842,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
632
842
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
633
843
|
}
|
|
634
844
|
_a.label = 2;
|
|
635
|
-
case 2:
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
845
|
+
case 2:
|
|
846
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
847
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
848
|
+
}
|
|
849
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
850
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
851
|
+
}
|
|
852
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
853
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
854
|
+
}
|
|
855
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
856
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
857
|
+
}
|
|
858
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
859
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
860
|
+
}
|
|
861
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
862
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
863
|
+
}
|
|
864
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
865
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
866
|
+
}
|
|
867
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
868
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
869
|
+
}
|
|
870
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
871
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
872
|
+
}
|
|
873
|
+
return [4 /*yield*/, this.request({
|
|
874
|
+
path: "/graphql/{pathQueryId}/TweetDetail".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
875
|
+
method: 'GET',
|
|
876
|
+
headers: headerParameters,
|
|
877
|
+
query: queryParameters,
|
|
878
|
+
}, initOverrides)];
|
|
641
879
|
case 3:
|
|
642
880
|
response = _a.sent();
|
|
643
881
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetTweetDetail200ResponseFromJSON)(jsonValue); })];
|
|
@@ -680,9 +918,6 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
680
918
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
681
919
|
throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getUserHighlightsTweets.');
|
|
682
920
|
}
|
|
683
|
-
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
684
|
-
throw new runtime.RequiredError('fieldToggles', 'Required parameter requestParameters.fieldToggles was null or undefined when calling getUserHighlightsTweets.');
|
|
685
|
-
}
|
|
686
921
|
queryParameters = {};
|
|
687
922
|
if (requestParameters.variables !== undefined) {
|
|
688
923
|
queryParameters['variables'] = requestParameters.variables;
|
|
@@ -690,21 +925,24 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
690
925
|
if (requestParameters.features !== undefined) {
|
|
691
926
|
queryParameters['features'] = requestParameters.features;
|
|
692
927
|
}
|
|
693
|
-
if (requestParameters.fieldToggles !== undefined) {
|
|
694
|
-
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
695
|
-
}
|
|
696
928
|
headerParameters = {};
|
|
697
929
|
if (this.configuration && this.configuration.apiKey) {
|
|
698
930
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
699
931
|
}
|
|
700
932
|
if (this.configuration && this.configuration.apiKey) {
|
|
701
|
-
headerParameters["
|
|
933
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
702
934
|
}
|
|
703
935
|
if (this.configuration && this.configuration.apiKey) {
|
|
704
|
-
headerParameters["
|
|
936
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
705
937
|
}
|
|
706
938
|
if (this.configuration && this.configuration.apiKey) {
|
|
707
|
-
headerParameters["
|
|
939
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
940
|
+
}
|
|
941
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
942
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
943
|
+
}
|
|
944
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
945
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
708
946
|
}
|
|
709
947
|
if (this.configuration && this.configuration.apiKey) {
|
|
710
948
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -721,12 +959,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
721
959
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
722
960
|
}
|
|
723
961
|
_a.label = 2;
|
|
724
|
-
case 2:
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
962
|
+
case 2:
|
|
963
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
964
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
965
|
+
}
|
|
966
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
967
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
968
|
+
}
|
|
969
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
970
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
971
|
+
}
|
|
972
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
973
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
974
|
+
}
|
|
975
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
976
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
977
|
+
}
|
|
978
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
979
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
980
|
+
}
|
|
981
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
982
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
983
|
+
}
|
|
984
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
985
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
986
|
+
}
|
|
987
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
988
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
989
|
+
}
|
|
990
|
+
return [4 /*yield*/, this.request({
|
|
991
|
+
path: "/graphql/{pathQueryId}/UserHighlightsTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
992
|
+
method: 'GET',
|
|
993
|
+
headers: headerParameters,
|
|
994
|
+
query: queryParameters,
|
|
995
|
+
}, initOverrides)];
|
|
730
996
|
case 3:
|
|
731
997
|
response = _a.sent();
|
|
732
998
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetUserHighlightsTweets200ResponseFromJSON)(jsonValue); })];
|
|
@@ -781,13 +1047,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
781
1047
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
782
1048
|
}
|
|
783
1049
|
if (this.configuration && this.configuration.apiKey) {
|
|
784
|
-
headerParameters["
|
|
1050
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
785
1051
|
}
|
|
786
1052
|
if (this.configuration && this.configuration.apiKey) {
|
|
787
|
-
headerParameters["
|
|
1053
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
788
1054
|
}
|
|
789
1055
|
if (this.configuration && this.configuration.apiKey) {
|
|
790
|
-
headerParameters["
|
|
1056
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1057
|
+
}
|
|
1058
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1059
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1060
|
+
}
|
|
1061
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1062
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
791
1063
|
}
|
|
792
1064
|
if (this.configuration && this.configuration.apiKey) {
|
|
793
1065
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -804,12 +1076,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
804
1076
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
805
1077
|
}
|
|
806
1078
|
_a.label = 2;
|
|
807
|
-
case 2:
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
1079
|
+
case 2:
|
|
1080
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1081
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1082
|
+
}
|
|
1083
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1084
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1085
|
+
}
|
|
1086
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1087
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1088
|
+
}
|
|
1089
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1090
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1091
|
+
}
|
|
1092
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1093
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1094
|
+
}
|
|
1095
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1096
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1097
|
+
}
|
|
1098
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1099
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1100
|
+
}
|
|
1101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1102
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1103
|
+
}
|
|
1104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1105
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1106
|
+
}
|
|
1107
|
+
return [4 /*yield*/, this.request({
|
|
1108
|
+
path: "/graphql/{pathQueryId}/UserMedia".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
1109
|
+
method: 'GET',
|
|
1110
|
+
headers: headerParameters,
|
|
1111
|
+
query: queryParameters,
|
|
1112
|
+
}, initOverrides)];
|
|
813
1113
|
case 3:
|
|
814
1114
|
response = _a.sent();
|
|
815
1115
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
|
|
@@ -864,13 +1164,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
864
1164
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
865
1165
|
}
|
|
866
1166
|
if (this.configuration && this.configuration.apiKey) {
|
|
867
|
-
headerParameters["
|
|
1167
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
868
1168
|
}
|
|
869
1169
|
if (this.configuration && this.configuration.apiKey) {
|
|
870
|
-
headerParameters["
|
|
1170
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
871
1171
|
}
|
|
872
1172
|
if (this.configuration && this.configuration.apiKey) {
|
|
873
|
-
headerParameters["
|
|
1173
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1174
|
+
}
|
|
1175
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1176
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1177
|
+
}
|
|
1178
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1179
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
874
1180
|
}
|
|
875
1181
|
if (this.configuration && this.configuration.apiKey) {
|
|
876
1182
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -887,12 +1193,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
887
1193
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
888
1194
|
}
|
|
889
1195
|
_a.label = 2;
|
|
890
|
-
case 2:
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
1196
|
+
case 2:
|
|
1197
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1198
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1199
|
+
}
|
|
1200
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1201
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1202
|
+
}
|
|
1203
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1204
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1205
|
+
}
|
|
1206
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1207
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1208
|
+
}
|
|
1209
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1210
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1211
|
+
}
|
|
1212
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1213
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1214
|
+
}
|
|
1215
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1216
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1217
|
+
}
|
|
1218
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1219
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1220
|
+
}
|
|
1221
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1222
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1223
|
+
}
|
|
1224
|
+
return [4 /*yield*/, this.request({
|
|
1225
|
+
path: "/graphql/{pathQueryId}/UserTweets".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
1226
|
+
method: 'GET',
|
|
1227
|
+
headers: headerParameters,
|
|
1228
|
+
query: queryParameters,
|
|
1229
|
+
}, initOverrides)];
|
|
896
1230
|
case 3:
|
|
897
1231
|
response = _a.sent();
|
|
898
1232
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
|
|
@@ -947,13 +1281,19 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
947
1281
|
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
948
1282
|
}
|
|
949
1283
|
if (this.configuration && this.configuration.apiKey) {
|
|
950
|
-
headerParameters["
|
|
1284
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
951
1285
|
}
|
|
952
1286
|
if (this.configuration && this.configuration.apiKey) {
|
|
953
|
-
headerParameters["
|
|
1287
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
954
1288
|
}
|
|
955
1289
|
if (this.configuration && this.configuration.apiKey) {
|
|
956
|
-
headerParameters["
|
|
1290
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
1291
|
+
}
|
|
1292
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1293
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
1294
|
+
}
|
|
1295
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1296
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
957
1297
|
}
|
|
958
1298
|
if (this.configuration && this.configuration.apiKey) {
|
|
959
1299
|
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
@@ -970,12 +1310,40 @@ var TweetApi = /** @class */ (function (_super) {
|
|
|
970
1310
|
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
971
1311
|
}
|
|
972
1312
|
_a.label = 2;
|
|
973
|
-
case 2:
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1313
|
+
case 2:
|
|
1314
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1315
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
1316
|
+
}
|
|
1317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1318
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
1319
|
+
}
|
|
1320
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1321
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
1322
|
+
}
|
|
1323
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1324
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
1325
|
+
}
|
|
1326
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1327
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
1328
|
+
}
|
|
1329
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1330
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
1331
|
+
}
|
|
1332
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1333
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
1334
|
+
}
|
|
1335
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1336
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
1337
|
+
}
|
|
1338
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1339
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
1340
|
+
}
|
|
1341
|
+
return [4 /*yield*/, this.request({
|
|
1342
|
+
path: "/graphql/{pathQueryId}/UserTweetsAndReplies".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
1343
|
+
method: 'GET',
|
|
1344
|
+
headers: headerParameters,
|
|
1345
|
+
query: queryParameters,
|
|
1346
|
+
}, initOverrides)];
|
|
979
1347
|
case 3:
|
|
980
1348
|
response = _a.sent();
|
|
981
1349
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.GetLikes200ResponseFromJSON)(jsonValue); })];
|