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/src/apis/UserApi.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface GetUserByScreenNameRequest {
|
|
|
32
32
|
pathQueryId: string;
|
|
33
33
|
variables: string;
|
|
34
34
|
features: string;
|
|
35
|
+
fieldToggles: string;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
/**
|
|
@@ -72,15 +73,23 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
-
headerParameters["
|
|
76
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
if (this.configuration && this.configuration.apiKey) {
|
|
79
|
-
headerParameters["
|
|
80
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
if (this.configuration && this.configuration.apiKey) {
|
|
83
|
-
headerParameters["
|
|
84
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
88
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
92
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
84
93
|
}
|
|
85
94
|
|
|
86
95
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -99,6 +108,42 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
99
108
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
100
109
|
}
|
|
101
110
|
}
|
|
111
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
128
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
132
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
136
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
140
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
144
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
145
|
+
}
|
|
146
|
+
|
|
102
147
|
const response = await this.request({
|
|
103
148
|
path: `/graphql/{pathQueryId}/UserByRestId`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
104
149
|
method: 'GET',
|
|
@@ -133,6 +178,10 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
133
178
|
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getUserByScreenName.');
|
|
134
179
|
}
|
|
135
180
|
|
|
181
|
+
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
182
|
+
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getUserByScreenName.');
|
|
183
|
+
}
|
|
184
|
+
|
|
136
185
|
const queryParameters: any = {};
|
|
137
186
|
|
|
138
187
|
if (requestParameters.variables !== undefined) {
|
|
@@ -143,6 +192,10 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
143
192
|
queryParameters['features'] = requestParameters.features;
|
|
144
193
|
}
|
|
145
194
|
|
|
195
|
+
if (requestParameters.fieldToggles !== undefined) {
|
|
196
|
+
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
197
|
+
}
|
|
198
|
+
|
|
146
199
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
147
200
|
|
|
148
201
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -150,15 +203,23 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
150
203
|
}
|
|
151
204
|
|
|
152
205
|
if (this.configuration && this.configuration.apiKey) {
|
|
153
|
-
headerParameters["
|
|
206
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
154
207
|
}
|
|
155
208
|
|
|
156
209
|
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
-
headerParameters["
|
|
210
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
158
211
|
}
|
|
159
212
|
|
|
160
213
|
if (this.configuration && this.configuration.apiKey) {
|
|
161
|
-
headerParameters["
|
|
214
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
218
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
222
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
162
223
|
}
|
|
163
224
|
|
|
164
225
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -177,6 +238,42 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
177
238
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
178
239
|
}
|
|
179
240
|
}
|
|
241
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
242
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
246
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
250
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
254
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
258
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
266
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
270
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
275
|
+
}
|
|
276
|
+
|
|
180
277
|
const response = await this.request({
|
|
181
278
|
path: `/graphql/{pathQueryId}/UserByScreenName`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
182
279
|
method: 'GET',
|
package/src/apis/UserListApi.ts
CHANGED
|
@@ -44,7 +44,6 @@ export interface GetFollowersYouKnowRequest {
|
|
|
44
44
|
pathQueryId: string;
|
|
45
45
|
variables: string;
|
|
46
46
|
features: string;
|
|
47
|
-
fieldToggles: string;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
export interface GetFollowingRequest {
|
|
@@ -97,15 +96,23 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
-
headerParameters["
|
|
99
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
if (this.configuration && this.configuration.apiKey) {
|
|
104
|
-
headerParameters["
|
|
103
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
-
headerParameters["
|
|
107
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -124,6 +131,42 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
124
131
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
125
132
|
}
|
|
126
133
|
}
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
139
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
143
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
147
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
151
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
155
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
159
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
163
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
167
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
168
|
+
}
|
|
169
|
+
|
|
127
170
|
const response = await this.request({
|
|
128
171
|
path: `/graphql/{pathQueryId}/Favoriters`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
129
172
|
method: 'GET',
|
|
@@ -175,15 +218,23 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
175
218
|
}
|
|
176
219
|
|
|
177
220
|
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
-
headerParameters["
|
|
221
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
179
222
|
}
|
|
180
223
|
|
|
181
224
|
if (this.configuration && this.configuration.apiKey) {
|
|
182
|
-
headerParameters["
|
|
225
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
183
226
|
}
|
|
184
227
|
|
|
185
228
|
if (this.configuration && this.configuration.apiKey) {
|
|
186
|
-
headerParameters["
|
|
229
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
237
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
187
238
|
}
|
|
188
239
|
|
|
189
240
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -202,6 +253,42 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
202
253
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
203
254
|
}
|
|
204
255
|
}
|
|
256
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
257
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
261
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
265
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
269
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
273
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
281
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
285
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
289
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
290
|
+
}
|
|
291
|
+
|
|
205
292
|
const response = await this.request({
|
|
206
293
|
path: `/graphql/{pathQueryId}/Followers`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
207
294
|
method: 'GET',
|
|
@@ -236,10 +323,6 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
236
323
|
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFollowersYouKnow.');
|
|
237
324
|
}
|
|
238
325
|
|
|
239
|
-
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
240
|
-
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getFollowersYouKnow.');
|
|
241
|
-
}
|
|
242
|
-
|
|
243
326
|
const queryParameters: any = {};
|
|
244
327
|
|
|
245
328
|
if (requestParameters.variables !== undefined) {
|
|
@@ -250,10 +333,6 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
250
333
|
queryParameters['features'] = requestParameters.features;
|
|
251
334
|
}
|
|
252
335
|
|
|
253
|
-
if (requestParameters.fieldToggles !== undefined) {
|
|
254
|
-
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
336
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
258
337
|
|
|
259
338
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -261,15 +340,23 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
261
340
|
}
|
|
262
341
|
|
|
263
342
|
if (this.configuration && this.configuration.apiKey) {
|
|
264
|
-
headerParameters["
|
|
343
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
265
344
|
}
|
|
266
345
|
|
|
267
346
|
if (this.configuration && this.configuration.apiKey) {
|
|
268
|
-
headerParameters["
|
|
347
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
269
348
|
}
|
|
270
349
|
|
|
271
350
|
if (this.configuration && this.configuration.apiKey) {
|
|
272
|
-
headerParameters["
|
|
351
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
355
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
359
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
273
360
|
}
|
|
274
361
|
|
|
275
362
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -288,6 +375,42 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
288
375
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
289
376
|
}
|
|
290
377
|
}
|
|
378
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
379
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
387
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
391
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
395
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
399
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
403
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
407
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
411
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
412
|
+
}
|
|
413
|
+
|
|
291
414
|
const response = await this.request({
|
|
292
415
|
path: `/graphql/{pathQueryId}/FollowersYouKnow`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
293
416
|
method: 'GET',
|
|
@@ -339,15 +462,23 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
339
462
|
}
|
|
340
463
|
|
|
341
464
|
if (this.configuration && this.configuration.apiKey) {
|
|
342
|
-
headerParameters["
|
|
465
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
343
466
|
}
|
|
344
467
|
|
|
345
468
|
if (this.configuration && this.configuration.apiKey) {
|
|
346
|
-
headerParameters["
|
|
469
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
347
470
|
}
|
|
348
471
|
|
|
349
472
|
if (this.configuration && this.configuration.apiKey) {
|
|
350
|
-
headerParameters["
|
|
473
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
477
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
481
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
351
482
|
}
|
|
352
483
|
|
|
353
484
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -366,6 +497,42 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
366
497
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
367
498
|
}
|
|
368
499
|
}
|
|
500
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
501
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
505
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
509
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
513
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
517
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
521
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
525
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
529
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
533
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
534
|
+
}
|
|
535
|
+
|
|
369
536
|
const response = await this.request({
|
|
370
537
|
path: `/graphql/{pathQueryId}/Following`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
371
538
|
method: 'GET',
|
|
@@ -417,15 +584,23 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
417
584
|
}
|
|
418
585
|
|
|
419
586
|
if (this.configuration && this.configuration.apiKey) {
|
|
420
|
-
headerParameters["
|
|
587
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
421
588
|
}
|
|
422
589
|
|
|
423
590
|
if (this.configuration && this.configuration.apiKey) {
|
|
424
|
-
headerParameters["
|
|
591
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
425
592
|
}
|
|
426
593
|
|
|
427
594
|
if (this.configuration && this.configuration.apiKey) {
|
|
428
|
-
headerParameters["
|
|
595
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
599
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
603
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
429
604
|
}
|
|
430
605
|
|
|
431
606
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -444,6 +619,42 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
444
619
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
445
620
|
}
|
|
446
621
|
}
|
|
622
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
623
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
627
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
631
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
635
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
639
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
643
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
647
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
651
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
655
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
656
|
+
}
|
|
657
|
+
|
|
447
658
|
const response = await this.request({
|
|
448
659
|
path: `/graphql/{pathQueryId}/Retweeters`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
449
660
|
method: 'GET',
|
package/src/apis/UsersApi.ts
CHANGED
|
@@ -66,15 +66,23 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
-
headerParameters["
|
|
69
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
-
headerParameters["
|
|
73
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
if (this.configuration && this.configuration.apiKey) {
|
|
77
|
-
headerParameters["
|
|
77
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
81
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -93,6 +101,42 @@ export class UsersApi extends runtime.BaseAPI {
|
|
|
93
101
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
94
102
|
}
|
|
95
103
|
}
|
|
104
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
117
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
121
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
125
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
129
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
133
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
137
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
138
|
+
}
|
|
139
|
+
|
|
96
140
|
const response = await this.request({
|
|
97
141
|
path: `/graphql/{pathQueryId}/UsersByRestIds`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
98
142
|
method: 'GET',
|