Skip to content

Commit c3b33dd

Browse files
committed
update generated version 0.0.12
Signed-off-by: ふぁ <yuki@yuki0311.com>
1 parent 3512fa3 commit c3b33dd

28 files changed

+2025
-176
lines changed

twitter-openapi-typescript-generated/.openapi-generator/FILES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,20 @@ src/models/CreateTweetResponseData.ts
3434
src/models/CreateTweetResponseResult.ts
3535
src/models/CtaClientEventInfo.ts
3636
src/models/CursorType.ts
37+
src/models/DeleteRetweet.ts
3738
src/models/DeleteRetweetResponse.ts
3839
src/models/DeleteRetweetResponseData.ts
40+
src/models/DeleteRetweetResponseResult.ts
3941
src/models/DeleteTweetResponse.ts
4042
src/models/DeleteTweetResponseData.ts
4143
src/models/DeleteTweetResponseResult.ts
4244
src/models/Entities.ts
4345
src/models/ErrorExtensions.ts
46+
src/models/ErrorResponse.ts
4447
src/models/Errors.ts
4548
src/models/ExtMediaAvailability.ts
4649
src/models/ExtendedEntities.ts
50+
src/models/Extensions.ts
4751
src/models/FavoriteTweet.ts
4852
src/models/FavoriteTweetResponseData.ts
4953
src/models/FollowResponse.ts
@@ -99,6 +103,7 @@ src/models/PostCreateTweetRequest.ts
99103
src/models/PostCreateTweetRequestFeatures.ts
100104
src/models/PostCreateTweetRequestVariables.ts
101105
src/models/PostCreateTweetRequestVariablesMedia.ts
106+
src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts
102107
src/models/PostDeleteRetweet200Response.ts
103108
src/models/PostDeleteRetweetRequest.ts
104109
src/models/PostDeleteRetweetRequestVariables.ts

twitter-openapi-typescript-generated/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## twitter-openapi-typescript-generated@0.0.11
1+
## twitter-openapi-typescript-generated@0.0.12
22

33
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
44

@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
3636
_published:_
3737

3838
```
39-
npm install twitter-openapi-typescript-generated@0.0.11 --save
39+
npm install twitter-openapi-typescript-generated@0.0.12 --save
4040
```
4141

4242
_unPublished (not recommended):_

twitter-openapi-typescript-generated/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

twitter-openapi-typescript-generated/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitter-openapi-typescript-generated",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "OpenAPI client for twitter-openapi-typescript-generated",
55
"author": "fa0311",
66
"repository": {

twitter-openapi-typescript-generated/src/apis/DefaultApi.ts

Lines changed: 94 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,23 @@ export class DefaultApi extends runtime.BaseAPI {
7575
}
7676

7777
if (this.configuration && this.configuration.apiKey) {
78-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
78+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
7979
}
8080

8181
if (this.configuration && this.configuration.apiKey) {
82-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
82+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
8383
}
8484

8585
if (this.configuration && this.configuration.apiKey) {
86-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
86+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
87+
}
88+
89+
if (this.configuration && this.configuration.apiKey) {
90+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
91+
}
92+
93+
if (this.configuration && this.configuration.apiKey) {
94+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
8795
}
8896

8997
if (this.configuration && this.configuration.apiKey) {
@@ -102,6 +110,42 @@ export class DefaultApi extends runtime.BaseAPI {
102110
headerParameters["Authorization"] = `Bearer ${tokenString}`;
103111
}
104112
}
113+
if (this.configuration && this.configuration.apiKey) {
114+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
115+
}
116+
117+
if (this.configuration && this.configuration.apiKey) {
118+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
119+
}
120+
121+
if (this.configuration && this.configuration.apiKey) {
122+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
123+
}
124+
125+
if (this.configuration && this.configuration.apiKey) {
126+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
127+
}
128+
129+
if (this.configuration && this.configuration.apiKey) {
130+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
131+
}
132+
133+
if (this.configuration && this.configuration.apiKey) {
134+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
135+
}
136+
137+
if (this.configuration && this.configuration.apiKey) {
138+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
139+
}
140+
141+
if (this.configuration && this.configuration.apiKey) {
142+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
143+
}
144+
145+
if (this.configuration && this.configuration.apiKey) {
146+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
147+
}
148+
105149
const response = await this.request({
106150
path: `/graphql/{pathQueryId}/ProfileSpotlightsQuery`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
107151
method: 'GET',
@@ -153,15 +197,23 @@ export class DefaultApi extends runtime.BaseAPI {
153197
}
154198

155199
if (this.configuration && this.configuration.apiKey) {
156-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
200+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
157201
}
158202

159203
if (this.configuration && this.configuration.apiKey) {
160-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
204+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
161205
}
162206

163207
if (this.configuration && this.configuration.apiKey) {
164-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
208+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
209+
}
210+
211+
if (this.configuration && this.configuration.apiKey) {
212+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
213+
}
214+
215+
if (this.configuration && this.configuration.apiKey) {
216+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
165217
}
166218

167219
if (this.configuration && this.configuration.apiKey) {
@@ -180,6 +232,42 @@ export class DefaultApi extends runtime.BaseAPI {
180232
headerParameters["Authorization"] = `Bearer ${tokenString}`;
181233
}
182234
}
235+
if (this.configuration && this.configuration.apiKey) {
236+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
237+
}
238+
239+
if (this.configuration && this.configuration.apiKey) {
240+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
241+
}
242+
243+
if (this.configuration && this.configuration.apiKey) {
244+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
245+
}
246+
247+
if (this.configuration && this.configuration.apiKey) {
248+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
249+
}
250+
251+
if (this.configuration && this.configuration.apiKey) {
252+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
253+
}
254+
255+
if (this.configuration && this.configuration.apiKey) {
256+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
257+
}
258+
259+
if (this.configuration && this.configuration.apiKey) {
260+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
261+
}
262+
263+
if (this.configuration && this.configuration.apiKey) {
264+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
265+
}
266+
267+
if (this.configuration && this.configuration.apiKey) {
268+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
269+
}
270+
183271
const response = await this.request({
184272
path: `/graphql/{pathQueryId}/TweetResultByRestId`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
185273
method: 'GET',

twitter-openapi-typescript-generated/src/apis/OtherApi.ts

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,23 @@ export class OtherApi extends runtime.BaseAPI {
4040
}
4141

4242
if (this.configuration && this.configuration.apiKey) {
43-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
43+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
4444
}
4545

4646
if (this.configuration && this.configuration.apiKey) {
47-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
47+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
4848
}
4949

5050
if (this.configuration && this.configuration.apiKey) {
51-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
51+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
52+
}
53+
54+
if (this.configuration && this.configuration.apiKey) {
55+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
56+
}
57+
58+
if (this.configuration && this.configuration.apiKey) {
59+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
5260
}
5361

5462
if (this.configuration && this.configuration.apiKey) {
@@ -67,6 +75,42 @@ export class OtherApi extends runtime.BaseAPI {
6775
headerParameters["Authorization"] = `Bearer ${tokenString}`;
6876
}
6977
}
78+
if (this.configuration && this.configuration.apiKey) {
79+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
80+
}
81+
82+
if (this.configuration && this.configuration.apiKey) {
83+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
84+
}
85+
86+
if (this.configuration && this.configuration.apiKey) {
87+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
88+
}
89+
90+
if (this.configuration && this.configuration.apiKey) {
91+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
92+
}
93+
94+
if (this.configuration && this.configuration.apiKey) {
95+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
96+
}
97+
98+
if (this.configuration && this.configuration.apiKey) {
99+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
100+
}
101+
102+
if (this.configuration && this.configuration.apiKey) {
103+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
104+
}
105+
106+
if (this.configuration && this.configuration.apiKey) {
107+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
108+
}
109+
110+
if (this.configuration && this.configuration.apiKey) {
111+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
112+
}
113+
70114
const response = await this.request({
71115
path: `/other`,
72116
method: 'GET',

0 commit comments

Comments
 (0)