twitter-openapi-typescript-generated 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +14 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +84 -1
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/OtherApi.js +1 -1
  8. package/dist/apis/PostApi.js +1 -1
  9. package/dist/apis/TweetApi.js +1 -1
  10. package/dist/apis/UserApi.js +1 -1
  11. package/dist/apis/UserListApi.js +1 -1
  12. package/dist/apis/UsersApi.js +1 -1
  13. package/dist/apis/V11GetApi.js +1 -1
  14. package/dist/apis/V11PostApi.js +1 -1
  15. package/dist/apis/V20GetApi.js +1 -1
  16. package/dist/models/ContentEntryType.d.ts +1 -1
  17. package/dist/models/ContentEntryType.d.ts.map +1 -1
  18. package/dist/models/ContentItemType.d.ts +1 -1
  19. package/dist/models/ContentItemType.d.ts.map +1 -1
  20. package/dist/models/ContentUnion.d.ts +1 -1
  21. package/dist/models/ContentUnion.d.ts.map +1 -1
  22. package/dist/models/CursorType.d.ts +1 -1
  23. package/dist/models/CursorType.d.ts.map +1 -1
  24. package/dist/models/GetBookmarks200Response.d.ts +1 -1
  25. package/dist/models/GetBookmarks200Response.d.ts.map +1 -1
  26. package/dist/models/GetFavoriters200Response.d.ts +1 -1
  27. package/dist/models/GetFavoriters200Response.d.ts.map +1 -1
  28. package/dist/models/GetFollowers200Response.d.ts +1 -1
  29. package/dist/models/GetFollowers200Response.d.ts.map +1 -1
  30. package/dist/models/GetHomeLatestTimeline200Response.d.ts +1 -1
  31. package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -1
  32. package/dist/models/GetLikes200Response.d.ts +1 -1
  33. package/dist/models/GetLikes200Response.d.ts.map +1 -1
  34. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +1 -1
  35. package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -1
  36. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +1 -1
  37. package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -1
  38. package/dist/models/GetRetweeters200Response.d.ts +1 -1
  39. package/dist/models/GetRetweeters200Response.d.ts.map +1 -1
  40. package/dist/models/GetSearchTimeline200Response.d.ts +1 -1
  41. package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -1
  42. package/dist/models/GetTweetDetail200Response.d.ts +1 -1
  43. package/dist/models/GetTweetDetail200Response.d.ts.map +1 -1
  44. package/dist/models/GetTweetResultByRestId200Response.d.ts +23 -0
  45. package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -0
  46. package/dist/models/GetTweetResultByRestId200Response.js +57 -0
  47. package/dist/models/GetTweetResultByRestId200Response.js.map +1 -0
  48. package/dist/models/GetUserByRestId200Response.d.ts +1 -1
  49. package/dist/models/GetUserByRestId200Response.d.ts.map +1 -1
  50. package/dist/models/GetUserHighlightsTweets200Response.d.ts +1 -1
  51. package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -1
  52. package/dist/models/GetUsersByRestIds200Response.d.ts +1 -1
  53. package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -1
  54. package/dist/models/InstructionType.d.ts +1 -1
  55. package/dist/models/InstructionType.d.ts.map +1 -1
  56. package/dist/models/InstructionUnion.d.ts +1 -1
  57. package/dist/models/InstructionUnion.d.ts.map +1 -1
  58. package/dist/models/ItemContentUnion.d.ts +1 -1
  59. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  60. package/dist/models/Other200Response.d.ts +1 -1
  61. package/dist/models/Other200Response.d.ts.map +1 -1
  62. package/dist/models/PostCreateRetweet200Response.d.ts +1 -1
  63. package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -1
  64. package/dist/models/PostCreateTweet200Response.d.ts +1 -1
  65. package/dist/models/PostCreateTweet200Response.d.ts.map +1 -1
  66. package/dist/models/PostDeleteRetweet200Response.d.ts +1 -1
  67. package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -1
  68. package/dist/models/PostDeleteTweet200Response.d.ts +1 -1
  69. package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -1
  70. package/dist/models/PostFavoriteTweet200Response.d.ts +1 -1
  71. package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -1
  72. package/dist/models/PostUnfavoriteTweet200Response.d.ts +1 -1
  73. package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -1
  74. package/dist/models/TimelineShowAlert.d.ts +2 -2
  75. package/dist/models/TimelineShowAlert.d.ts.map +1 -1
  76. package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
  77. package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
  78. package/dist/models/TweetResultByRestIdData.d.ts +33 -0
  79. package/dist/models/TweetResultByRestIdData.d.ts.map +1 -0
  80. package/dist/models/TweetResultByRestIdData.js +52 -0
  81. package/dist/models/TweetResultByRestIdData.js.map +1 -0
  82. package/dist/models/TweetResultByRestIdResponse.d.ts +33 -0
  83. package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -0
  84. package/dist/models/TweetResultByRestIdResponse.js +52 -0
  85. package/dist/models/TweetResultByRestIdResponse.js.map +1 -0
  86. package/dist/models/TweetUnion.d.ts +1 -1
  87. package/dist/models/TweetUnion.d.ts.map +1 -1
  88. package/dist/models/TypeName.d.ts +1 -1
  89. package/dist/models/TypeName.d.ts.map +1 -1
  90. package/dist/models/UserUnion.d.ts +1 -1
  91. package/dist/models/UserUnion.d.ts.map +1 -1
  92. package/dist/models/index.d.ts +3 -0
  93. package/dist/models/index.d.ts.map +1 -1
  94. package/dist/models/index.js +3 -0
  95. package/dist/models/index.js.map +1 -1
  96. package/dist/runtime.d.ts +9 -9
  97. package/dist/runtime.d.ts.map +1 -1
  98. package/dist/runtime.js +1 -1
  99. package/package.json +1 -1
  100. package/src/apis/DefaultApi.ts +87 -0
  101. package/src/models/GetTweetResultByRestId200Response.ts +65 -0
  102. package/src/models/TweetResultByRestIdData.ts +73 -0
  103. package/src/models/TweetResultByRestIdResponse.ts +73 -0
  104. package/src/models/index.ts +3 -0
  105. package/tools/openapi-generator-config.yaml +1 -1
  106. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +2 -0
  107. package/twitter-openapi/dist/compatible/paths/tweet.yaml +94 -0
  108. package/twitter-openapi/dist/docs/openapi-3.0.yaml +2 -0
  109. package/twitter-openapi/dist/docs/paths/tweet.yaml +191 -0
  110. package/twitter-openapi/src/config/placeholder.json +34 -2
  111. package/twitter-openapi/src/openapi/paths/tweet.yaml +30 -0
@@ -58,6 +58,7 @@ __exportStar(require("./GetProfileSpotlightsQuery200Response"), exports);
58
58
  __exportStar(require("./GetRetweeters200Response"), exports);
59
59
  __exportStar(require("./GetSearchTimeline200Response"), exports);
60
60
  __exportStar(require("./GetTweetDetail200Response"), exports);
61
+ __exportStar(require("./GetTweetResultByRestId200Response"), exports);
61
62
  __exportStar(require("./GetUserByRestId200Response"), exports);
62
63
  __exportStar(require("./GetUserHighlightsTweets200Response"), exports);
63
64
  __exportStar(require("./GetUsersByRestIds200Response"), exports);
@@ -140,6 +141,8 @@ __exportStar(require("./TweetFavoritersResponse"), exports);
140
141
  __exportStar(require("./TweetFavoritersResponseData"), exports);
141
142
  __exportStar(require("./TweetLegacy"), exports);
142
143
  __exportStar(require("./TweetLegacySelfThread"), exports);
144
+ __exportStar(require("./TweetResultByRestIdData"), exports);
145
+ __exportStar(require("./TweetResultByRestIdResponse"), exports);
143
146
  __exportStar(require("./TweetRetweetersResponse"), exports);
144
147
  __exportStar(require("./TweetRetweetersResponseData"), exports);
145
148
  __exportStar(require("./TweetTombstone"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAo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7C,oDAAkC;AAClC,wDAAsC;AACtC,4CAA0B;AAC1B,kDAAgC;AAChC,qDAAmC;AACnC,mDAAiC;AACjC,uDAAqC;AACrC,2DAAyC;AACzC,4CAA0B;AAC1B,kDAAgC;AAChC,6CAA2B;AAC3B,uDAAqC;AACrC,qDAAmC;AACnC,wDAAsC;AACtC,uDAAqC;AACrC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,yDAAuC;AACvC,qDAAmC;AACnC,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,4CAA0B;AAC1B,0CAAwB;AACxB,8CAA4B;AAC5B,oDAAkC;AAClC,sEAAoD;AACpD,2EAAyD;AACzD,wDAAsC;AACtC,4DAA0C;AAC1C,qDAAmC;AACnC,yDAAuC;AACvC,4DAA0C;AAC1C,gEAA8C;AAC9C,gDAA8B;AAC9B,0DAAwC;AACxC,4DAA0C;AAC1C,gEAA8C;AAC9C,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,6CAA2B;AAC3B,oDAAkC;AAClC,gEAA8C;AAC9C,wCAAsB;AACtB,yCAAuB;AACvB,iDAA+B;AAC/B,6DAA2C;AAC3C,iEAA+C;AAC/C,+DAA6C;AAC7C,iEAA+C;AAC/C,6DAA2C;AAC3C,+CAA6B;AAC7B,iDAA+B;AAC/B,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,iEAA+C;AAC/C,mDAAiC;AACjC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,8CAA4B;AAC5B,kDAAgC;AAChC,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB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TION_FORMATS: {
90
90
  tsv: string;
91
91
  pipes: string;
92
92
  };
93
- export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
- export type Json = any;
95
- export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
- export type HTTPHeaders = {
93
+ export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
+ export declare type Json = any;
95
+ export declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
+ export declare type HTTPHeaders = {
97
97
  [key: string]: string;
98
98
  };
99
- export type HTTPQuery = {
99
+ export declare type HTTPQuery = {
100
100
  [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
101
101
  };
102
- export type HTTPBody = Json | FormData | URLSearchParams;
103
- export type HTTPRequestInit = {
102
+ export declare type HTTPBody = Json | FormData | URLSearchParams;
103
+ export declare type HTTPRequestInit = {
104
104
  headers?: HTTPHeaders;
105
105
  method: HTTPMethod;
106
106
  credentials?: RequestCredentials;
107
107
  body?: HTTPBody;
108
108
  };
109
- export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
- export type InitOverrideFunction = (requestContext: {
109
+ export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
+ export declare type InitOverrideFunction = (requestContext: {
111
111
  init: HTTPRequestInit;
112
112
  context: RequestOpts;
113
113
  }) => Promise<RequestInit>;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,eAAO,MAAM,SAAS,QAAkD,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UA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AAU;IACvB,GAAG,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC3D,IAAI,CAAC,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC1D,OAAO,CAAC,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC1B,GAAG,EAAE,QAAQ,CAAC;IACd,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC;IAClC,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;CAClB;AAED,qBAAa,eAAe,CAAC,CAAC;IACP,GAAG,EAAE,QAAQ;IAAE,OAAO,CAAC,WAAW;gBAAlC,GAAG,EAAE,QAAQ,EAAU,WAAW,GAAE,mBAAmB,CAAC,CAAC,CAAiC;IAEvG,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;CAG5B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAGjC"}
package/dist/runtime.js CHANGED
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
56
+ while (_) try {
57
57
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
58
  if (y = 0, t) op = [op[0] & 2, t.value];
59
59
  switch (op[0]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twitter-openapi-typescript-generated",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "OpenAPI client for twitter-openapi-typescript-generated",
5
5
  "author": "fa0311",
6
6
  "repository": {
@@ -16,10 +16,13 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  GetProfileSpotlightsQuery200Response,
19
+ GetTweetResultByRestId200Response,
19
20
  } from '../models';
20
21
  import {
21
22
  GetProfileSpotlightsQuery200ResponseFromJSON,
22
23
  GetProfileSpotlightsQuery200ResponseToJSON,
24
+ GetTweetResultByRestId200ResponseFromJSON,
25
+ GetTweetResultByRestId200ResponseToJSON,
23
26
  } from '../models';
24
27
 
25
28
  export interface GetProfileSpotlightsQueryRequest {
@@ -28,6 +31,12 @@ export interface GetProfileSpotlightsQueryRequest {
28
31
  features: string;
29
32
  }
30
33
 
34
+ export interface GetTweetResultByRestIdRequest {
35
+ pathQueryId: string;
36
+ variables: string;
37
+ features: string;
38
+ }
39
+
31
40
  /**
32
41
  *
33
42
  */
@@ -111,4 +120,82 @@ export class DefaultApi extends runtime.BaseAPI {
111
120
  return await response.value();
112
121
  }
113
122
 
123
+ /**
124
+ * get TweetResultByRestId
125
+ */
126
+ async getTweetResultByRestIdRaw(requestParameters: GetTweetResultByRestIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTweetResultByRestId200Response>> {
127
+ if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
128
+ throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetResultByRestId.');
129
+ }
130
+
131
+ if (requestParameters.variables === null || requestParameters.variables === undefined) {
132
+ throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getTweetResultByRestId.');
133
+ }
134
+
135
+ if (requestParameters.features === null || requestParameters.features === undefined) {
136
+ throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getTweetResultByRestId.');
137
+ }
138
+
139
+ const queryParameters: any = {};
140
+
141
+ if (requestParameters.variables !== undefined) {
142
+ queryParameters['variables'] = requestParameters.variables;
143
+ }
144
+
145
+ if (requestParameters.features !== undefined) {
146
+ queryParameters['features'] = requestParameters.features;
147
+ }
148
+
149
+ const headerParameters: runtime.HTTPHeaders = {};
150
+
151
+ if (this.configuration && this.configuration.apiKey) {
152
+ headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
153
+ }
154
+
155
+ if (this.configuration && this.configuration.apiKey) {
156
+ headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
157
+ }
158
+
159
+ if (this.configuration && this.configuration.apiKey) {
160
+ headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
161
+ }
162
+
163
+ if (this.configuration && this.configuration.apiKey) {
164
+ headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
165
+ }
166
+
167
+ if (this.configuration && this.configuration.apiKey) {
168
+ headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
169
+ }
170
+
171
+ if (this.configuration && this.configuration.apiKey) {
172
+ headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
173
+ }
174
+
175
+ if (this.configuration && this.configuration.accessToken) {
176
+ const token = this.configuration.accessToken;
177
+ const tokenString = await token("BearerAuth", []);
178
+
179
+ if (tokenString) {
180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
181
+ }
182
+ }
183
+ const response = await this.request({
184
+ path: `/graphql/{pathQueryId}/TweetResultByRestId`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
185
+ method: 'GET',
186
+ headers: headerParameters,
187
+ query: queryParameters,
188
+ }, initOverrides);
189
+
190
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetTweetResultByRestId200ResponseFromJSON(jsonValue));
191
+ }
192
+
193
+ /**
194
+ * get TweetResultByRestId
195
+ */
196
+ async getTweetResultByRestId(requestParameters: GetTweetResultByRestIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTweetResultByRestId200Response> {
197
+ const response = await this.getTweetResultByRestIdRaw(requestParameters, initOverrides);
198
+ return await response.value();
199
+ }
200
+
114
201
  }
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import {
16
+ Errors,
17
+ instanceOfErrors,
18
+ ErrorsFromJSON,
19
+ ErrorsFromJSONTyped,
20
+ ErrorsToJSON,
21
+ } from './Errors';
22
+ import {
23
+ TweetResultByRestIdResponse,
24
+ instanceOfTweetResultByRestIdResponse,
25
+ TweetResultByRestIdResponseFromJSON,
26
+ TweetResultByRestIdResponseFromJSONTyped,
27
+ TweetResultByRestIdResponseToJSON,
28
+ } from './TweetResultByRestIdResponse';
29
+
30
+ /**
31
+ * @type GetTweetResultByRestId200Response
32
+ *
33
+ * @export
34
+ */
35
+ export type GetTweetResultByRestId200Response = Errors | TweetResultByRestIdResponse;
36
+
37
+ export function GetTweetResultByRestId200ResponseFromJSON(json: any): GetTweetResultByRestId200Response {
38
+ return GetTweetResultByRestId200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function GetTweetResultByRestId200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTweetResultByRestId200Response {
42
+ if ((json === undefined) || (json === null)) {
43
+ return json;
44
+ }
45
+ return { ...ErrorsFromJSONTyped(json, true), ...TweetResultByRestIdResponseFromJSONTyped(json, true) };
46
+ }
47
+
48
+ export function GetTweetResultByRestId200ResponseToJSON(value?: GetTweetResultByRestId200Response | null): any {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+
56
+ if (instanceOfErrors(value)) {
57
+ return ErrorsToJSON(value as Errors);
58
+ }
59
+ if (instanceOfTweetResultByRestIdResponse(value)) {
60
+ return TweetResultByRestIdResponseToJSON(value as TweetResultByRestIdResponse);
61
+ }
62
+
63
+ return {};
64
+ }
65
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { ItemResult } from './ItemResult';
17
+ import {
18
+ ItemResultFromJSON,
19
+ ItemResultFromJSONTyped,
20
+ ItemResultToJSON,
21
+ } from './ItemResult';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetResultByRestIdData
27
+ */
28
+ export interface TweetResultByRestIdData {
29
+ /**
30
+ *
31
+ * @type {ItemResult}
32
+ * @memberof TweetResultByRestIdData
33
+ */
34
+ tweetResult: ItemResult;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TweetResultByRestIdData interface.
39
+ */
40
+ export function instanceOfTweetResultByRestIdData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "tweetResult" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TweetResultByRestIdDataFromJSON(json: any): TweetResultByRestIdData {
48
+ return TweetResultByRestIdDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TweetResultByRestIdDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetResultByRestIdData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'tweetResult': ItemResultFromJSON(json['tweetResult']),
58
+ };
59
+ }
60
+
61
+ export function TweetResultByRestIdDataToJSON(value?: TweetResultByRestIdData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'tweetResult': ItemResultToJSON(value.tweetResult),
71
+ };
72
+ }
73
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Twitter OpenAPI
5
+ * Twitter OpenAPI(Swagger) specification
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ * Contact: yuki@yuki0311.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ import type { TweetResultByRestIdData } from './TweetResultByRestIdData';
17
+ import {
18
+ TweetResultByRestIdDataFromJSON,
19
+ TweetResultByRestIdDataFromJSONTyped,
20
+ TweetResultByRestIdDataToJSON,
21
+ } from './TweetResultByRestIdData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetResultByRestIdResponse
27
+ */
28
+ export interface TweetResultByRestIdResponse {
29
+ /**
30
+ *
31
+ * @type {TweetResultByRestIdData}
32
+ * @memberof TweetResultByRestIdResponse
33
+ */
34
+ data: TweetResultByRestIdData;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TweetResultByRestIdResponse interface.
39
+ */
40
+ export function instanceOfTweetResultByRestIdResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "data" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TweetResultByRestIdResponseFromJSON(json: any): TweetResultByRestIdResponse {
48
+ return TweetResultByRestIdResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TweetResultByRestIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetResultByRestIdResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'data': TweetResultByRestIdDataFromJSON(json['data']),
58
+ };
59
+ }
60
+
61
+ export function TweetResultByRestIdResponseToJSON(value?: TweetResultByRestIdResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'data': TweetResultByRestIdDataToJSON(value.data),
71
+ };
72
+ }
73
+
@@ -42,6 +42,7 @@ export * from './GetProfileSpotlightsQuery200Response';
42
42
  export * from './GetRetweeters200Response';
43
43
  export * from './GetSearchTimeline200Response';
44
44
  export * from './GetTweetDetail200Response';
45
+ export * from './GetTweetResultByRestId200Response';
45
46
  export * from './GetUserByRestId200Response';
46
47
  export * from './GetUserHighlightsTweets200Response';
47
48
  export * from './GetUsersByRestIds200Response';
@@ -124,6 +125,8 @@ export * from './TweetFavoritersResponse';
124
125
  export * from './TweetFavoritersResponseData';
125
126
  export * from './TweetLegacy';
126
127
  export * from './TweetLegacySelfThread';
128
+ export * from './TweetResultByRestIdData';
129
+ export * from './TweetResultByRestIdResponse';
127
130
  export * from './TweetRetweetersResponse';
128
131
  export * from './TweetRetweetersResponseData';
129
132
  export * from './TweetTombstone';
@@ -1,7 +1,7 @@
1
1
  inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml
2
2
  outputDir: .
3
3
  npmName: twitter-openapi-typescript-generated
4
- npmVersion: 0.0.9
4
+ npmVersion: 0.0.10
5
5
 
6
6
  # withoutRuntimeChecks: false
7
7
  legacyDiscriminatorBehavior: false
@@ -104,6 +104,8 @@ paths:
104
104
  $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
105
105
  /graphql/{pathQueryId}/TweetDetail:
106
106
  $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
107
+ /graphql/{pathQueryId}/TweetResultByRestId:
108
+ $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetResultByRestId
107
109
  /graphql/{pathQueryId}/UnfavoriteTweet:
108
110
  $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
109
111
  /graphql/{pathQueryId}/UserByRestId:
@@ -24,6 +24,18 @@ components:
24
24
  $ref: ./../schemas/timeline.yaml#/components/schemas/TimelineV2
25
25
  required:
26
26
  - favoriters_timeline
27
+ TweetResultByRestIdData:
28
+ properties:
29
+ tweetResult:
30
+ $ref: ./../schemas/content.yaml#/components/schemas/ItemResult
31
+ required:
32
+ - tweetResult
33
+ TweetResultByRestIdResponse:
34
+ properties:
35
+ data:
36
+ $ref: '#/components/schemas/TweetResultByRestIdData'
37
+ required:
38
+ - data
27
39
  TweetRetweetersResponse:
28
40
  properties:
29
41
  data:
@@ -301,3 +313,85 @@ paths:
301
313
  type: string
302
314
  tags:
303
315
  - tweet
316
+ /graphql/{pathQueryId}/TweetResultByRestId:
317
+ get:
318
+ description: get TweetResultByRestId
319
+ operationId: getTweetResultByRestId
320
+ parameters:
321
+ - in: path
322
+ name: pathQueryId
323
+ required: true
324
+ schema:
325
+ default: 0hWvDhmW8YQ-S_ib3azIrw
326
+ example: 0hWvDhmW8YQ-S_ib3azIrw
327
+ type: string
328
+ - in: query
329
+ name: variables
330
+ required: true
331
+ schema:
332
+ default: '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent":
333
+ false, "withVoice": false}'
334
+ example: '{"tweetId": "1691730070669517096", "withCommunity": false, "includePromotedContent":
335
+ false, "withVoice": false}'
336
+ type: string
337
+ - in: query
338
+ name: features
339
+ required: true
340
+ schema:
341
+ default: '{"creator_subscriptions_tweet_preview_api_enabled": true, "tweetypie_unmention_optimization_enabled":
342
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
343
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
344
+ true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
345
+ "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
346
+ true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
347
+ true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
348
+ true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
349
+ false, "responsive_web_media_download_video_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
350
+ false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_enhance_cards_enabled":
351
+ false}'
352
+ example: '{"creator_subscriptions_tweet_preview_api_enabled": true, "tweetypie_unmention_optimization_enabled":
353
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
354
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
355
+ true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
356
+ "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
357
+ true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
358
+ true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
359
+ true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
360
+ false, "responsive_web_media_download_video_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
361
+ false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_enhance_cards_enabled":
362
+ false}'
363
+ type: string
364
+ responses:
365
+ '200':
366
+ content:
367
+ application/json:
368
+ schema:
369
+ oneOf:
370
+ - $ref: '#/components/schemas/TweetResultByRestIdResponse'
371
+ - $ref: ./../schemas/error.yaml#/components/schemas/Errors
372
+ description: Successful operation
373
+ headers:
374
+ x-connection-hash:
375
+ schema:
376
+ type: string
377
+ x-rate-limit-limit:
378
+ schema:
379
+ type: integer
380
+ x-rate-limit-remaining:
381
+ schema:
382
+ type: integer
383
+ x-rate-limit-reset:
384
+ schema:
385
+ type: integer
386
+ x-response-time:
387
+ schema:
388
+ type: integer
389
+ x-tfe-preserve-body:
390
+ schema:
391
+ type: boolean
392
+ x-transaction-id:
393
+ schema:
394
+ type: string
395
+ x-twitter-response-tags:
396
+ schema:
397
+ type: string
@@ -104,6 +104,8 @@ paths:
104
104
  $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
105
105
  /graphql/{pathQueryId}/TweetDetail:
106
106
  $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
107
+ /graphql/{pathQueryId}/TweetResultByRestId:
108
+ $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetResultByRestId
107
109
  /graphql/{pathQueryId}/UnfavoriteTweet:
108
110
  $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
109
111
  /graphql/{pathQueryId}/UserByRestId: