twitter-openapi-typescript-generated 0.0.6 → 0.0.8

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 (241) hide show
  1. package/.openapi-generator/FILES +18 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +0 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +0 -6
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/TweetApi.d.ts +17 -12
  8. package/dist/apis/TweetApi.d.ts.map +1 -1
  9. package/dist/apis/TweetApi.js +90 -55
  10. package/dist/apis/TweetApi.js.map +1 -1
  11. package/dist/apis/UserApi.d.ts +27 -2
  12. package/dist/apis/UserApi.d.ts.map +1 -1
  13. package/dist/apis/UserApi.js +166 -6
  14. package/dist/apis/UserApi.js.map +1 -1
  15. package/dist/apis/UserListApi.d.ts +41 -3
  16. package/dist/apis/UserListApi.d.ts.map +1 -1
  17. package/dist/apis/UserListApi.js +255 -12
  18. package/dist/apis/UserListApi.js.map +1 -1
  19. package/dist/models/ContentItemType.d.ts +2 -0
  20. package/dist/models/ContentItemType.d.ts.map +1 -1
  21. package/dist/models/ContentItemType.js +3 -1
  22. package/dist/models/ContentItemType.js.map +1 -1
  23. package/dist/models/InstructionType.d.ts +3 -0
  24. package/dist/models/InstructionType.d.ts.map +1 -1
  25. package/dist/models/InstructionType.js +3 -0
  26. package/dist/models/InstructionType.js.map +1 -1
  27. package/dist/models/InstructionUnion.d.ts +9 -0
  28. package/dist/models/InstructionUnion.d.ts.map +1 -1
  29. package/dist/models/InstructionUnion.js +15 -0
  30. package/dist/models/InstructionUnion.js.map +1 -1
  31. package/dist/models/ItemContentUnion.d.ts +6 -0
  32. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  33. package/dist/models/ItemContentUnion.js +10 -0
  34. package/dist/models/ItemContentUnion.js.map +1 -1
  35. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
  36. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
  37. package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
  38. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
  39. package/dist/models/SearchByRawQuery.d.ts +33 -0
  40. package/dist/models/SearchByRawQuery.d.ts.map +1 -0
  41. package/dist/models/SearchByRawQuery.js +52 -0
  42. package/dist/models/SearchByRawQuery.js.map +1 -0
  43. package/dist/models/SearchTimeline.d.ts +33 -0
  44. package/dist/models/SearchTimeline.d.ts.map +1 -0
  45. package/dist/models/SearchTimeline.js +52 -0
  46. package/dist/models/SearchTimeline.js.map +1 -0
  47. package/dist/models/SearchTimelineData.d.ts +33 -0
  48. package/dist/models/SearchTimelineData.d.ts.map +1 -0
  49. package/dist/models/SearchTimelineData.js +52 -0
  50. package/dist/models/SearchTimelineData.js.map +1 -0
  51. package/dist/models/SearchTimelineResponse.d.ts +33 -0
  52. package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
  53. package/dist/models/SearchTimelineResponse.js +52 -0
  54. package/dist/models/SearchTimelineResponse.js.map +1 -0
  55. package/dist/models/TimelineAddToModule.d.ts +52 -0
  56. package/dist/models/TimelineAddToModule.d.ts.map +1 -0
  57. package/dist/models/TimelineAddToModule.js +62 -0
  58. package/dist/models/TimelineAddToModule.js.map +1 -0
  59. package/dist/models/TimelineMessagePrompt.d.ts +33 -0
  60. package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
  61. package/dist/models/TimelineMessagePrompt.js +52 -0
  62. package/dist/models/TimelineMessagePrompt.js.map +1 -0
  63. package/dist/models/TimelinePrompt.d.ts +33 -0
  64. package/dist/models/TimelinePrompt.d.ts.map +1 -0
  65. package/dist/models/TimelinePrompt.js +52 -0
  66. package/dist/models/TimelinePrompt.js.map +1 -0
  67. package/dist/models/TimelineReplaceEntry.d.ts +46 -0
  68. package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
  69. package/dist/models/TimelineReplaceEntry.js +59 -0
  70. package/dist/models/TimelineReplaceEntry.js.map +1 -0
  71. package/dist/models/TimelineShowAlert.d.ts +97 -0
  72. package/dist/models/TimelineShowAlert.d.ts.map +1 -0
  73. package/dist/models/TimelineShowAlert.js +85 -0
  74. package/dist/models/TimelineShowAlert.js.map +1 -0
  75. package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
  76. package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
  77. package/dist/models/TimelineShowAlertRichText.js +53 -0
  78. package/dist/models/TimelineShowAlertRichText.js.map +1 -0
  79. package/dist/models/TweetFavoritersResponse.d.ts +33 -0
  80. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
  81. package/dist/models/TweetFavoritersResponse.js +52 -0
  82. package/dist/models/TweetFavoritersResponse.js.map +1 -0
  83. package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
  84. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
  85. package/dist/models/TweetFavoritersResponseData.js +52 -0
  86. package/dist/models/TweetFavoritersResponseData.js.map +1 -0
  87. package/dist/models/TweetLegacy.d.ts +7 -0
  88. package/dist/models/TweetLegacy.d.ts.map +1 -1
  89. package/dist/models/TweetLegacy.js +3 -0
  90. package/dist/models/TweetLegacy.js.map +1 -1
  91. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  92. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  93. package/dist/models/TweetLegacySelfThread.js +51 -0
  94. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  95. package/dist/models/TweetRetweetersResponse.d.ts +33 -0
  96. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
  97. package/dist/models/TweetRetweetersResponse.js +52 -0
  98. package/dist/models/TweetRetweetersResponse.js.map +1 -0
  99. package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
  100. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
  101. package/dist/models/TweetRetweetersResponseData.js +52 -0
  102. package/dist/models/TweetRetweetersResponseData.js.map +1 -0
  103. package/dist/models/UsersResponse.d.ts +33 -0
  104. package/dist/models/UsersResponse.d.ts.map +1 -0
  105. package/dist/models/UsersResponse.js +52 -0
  106. package/dist/models/UsersResponse.js.map +1 -0
  107. package/dist/models/UsersResponseData.d.ts +33 -0
  108. package/dist/models/UsersResponseData.d.ts.map +1 -0
  109. package/dist/models/UsersResponseData.js +52 -0
  110. package/dist/models/UsersResponseData.js.map +1 -0
  111. package/dist/models/index.d.ts +18 -1
  112. package/dist/models/index.d.ts.map +1 -1
  113. package/dist/models/index.js +18 -1
  114. package/dist/models/index.js.map +1 -1
  115. package/package.json +3 -2
  116. package/src/apis/DefaultApi.ts +0 -9
  117. package/src/apis/TweetApi.ts +102 -87
  118. package/src/apis/UserApi.ts +171 -9
  119. package/src/apis/UserListApi.ts +267 -18
  120. package/src/models/ContentItemType.ts +3 -1
  121. package/src/models/InstructionType.ts +3 -0
  122. package/src/models/InstructionUnion.ts +34 -1
  123. package/src/models/ItemContentUnion.ts +23 -1
  124. package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
  125. package/src/models/SearchByRawQuery.ts +73 -0
  126. package/src/models/SearchTimeline.ts +73 -0
  127. package/src/models/SearchTimelineData.ts +73 -0
  128. package/src/models/SearchTimelineResponse.ts +73 -0
  129. package/src/models/TimelineAddToModule.ts +105 -0
  130. package/src/models/TimelineMessagePrompt.ts +72 -0
  131. package/src/models/TimelinePrompt.ts +72 -0
  132. package/src/models/TimelineReplaceEntry.ts +97 -0
  133. package/src/models/TimelineShowAlert.ts +169 -0
  134. package/src/models/TimelineShowAlertRichText.ts +73 -0
  135. package/src/models/TweetFavoritersResponse.ts +73 -0
  136. package/src/models/TweetFavoritersResponseData.ts +73 -0
  137. package/src/models/TweetLegacy.ts +14 -0
  138. package/src/models/TweetLegacySelfThread.ts +66 -0
  139. package/src/models/TweetRetweetersResponse.ts +73 -0
  140. package/src/models/TweetRetweetersResponseData.ts +73 -0
  141. package/src/models/UsersResponse.ts +73 -0
  142. package/src/models/UsersResponseData.ts +73 -0
  143. package/src/models/index.ts +18 -1
  144. package/tools/openapi-generator-config.yaml +2 -2
  145. package/tools/win/replace.py +1 -1
  146. package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +12 -0
  147. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
  148. package/twitter-openapi/dist/{dart → compatible}/paths/follow.yaml +82 -63
  149. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
  150. package/twitter-openapi/dist/{dart → compatible}/paths/timeline.yaml +118 -111
  151. package/twitter-openapi/dist/compatible/paths/tweet.yaml +297 -0
  152. package/twitter-openapi/dist/compatible/paths/user.yaml +227 -0
  153. package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +0 -28
  154. package/twitter-openapi/dist/{typescript → compatible}/schemas/content.yaml +14 -0
  155. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +160 -0
  156. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
  157. package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
  158. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
  159. package/twitter-openapi/dist/docs/paths/follow.yaml +193 -112
  160. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
  161. package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -173
  162. package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -61
  163. package/twitter-openapi/dist/docs/paths/user.yaml +214 -41
  164. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
  165. package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
  166. package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
  167. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
  168. package/twitter-openapi/src/config/placeholder.json +155 -0
  169. package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
  170. package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
  171. package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
  172. package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
  173. package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
  174. package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
  175. package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -0
  176. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  177. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  178. package/twitter-openapi/tools/build_config.py +67 -190
  179. package/twitter-openapi/tools/hooks.py +28 -7
  180. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
  181. package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
  182. package/dist/models/ListTweetsTimelineResponse.js +0 -52
  183. package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
  184. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  185. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
  186. package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
  187. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
  188. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
  189. package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
  190. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
  191. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  192. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  193. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  194. package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
  195. package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
  196. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
  197. package/twitter-openapi/dist/test/paths/follow.yaml +0 -218
  198. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  199. package/twitter-openapi/dist/test/paths/post.yaml +0 -527
  200. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -314
  201. package/twitter-openapi/dist/test/paths/tweet.yaml +0 -112
  202. package/twitter-openapi/dist/test/paths/user.yaml +0 -90
  203. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  204. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  205. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  206. package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
  207. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  208. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  209. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  210. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  211. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  212. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
  213. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  214. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  215. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  216. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
  217. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  218. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
  219. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
  220. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
  221. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
  222. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -396
  223. package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
  224. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  225. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  226. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  227. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  228. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
  229. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  230. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  231. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  232. /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
  233. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  234. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  235. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  236. /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
  237. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  238. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  239. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  240. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  241. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -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 { TimelineV2 } from './TimelineV2';
17
+ import {
18
+ TimelineV2FromJSON,
19
+ TimelineV2FromJSONTyped,
20
+ TimelineV2ToJSON,
21
+ } from './TimelineV2';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetRetweetersResponseData
27
+ */
28
+ export interface TweetRetweetersResponseData {
29
+ /**
30
+ *
31
+ * @type {TimelineV2}
32
+ * @memberof TweetRetweetersResponseData
33
+ */
34
+ retweetersTimeline: TimelineV2;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TweetRetweetersResponseData interface.
39
+ */
40
+ export function instanceOfTweetRetweetersResponseData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "retweetersTimeline" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TweetRetweetersResponseDataFromJSON(json: any): TweetRetweetersResponseData {
48
+ return TweetRetweetersResponseDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TweetRetweetersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRetweetersResponseData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'retweetersTimeline': TimelineV2FromJSON(json['retweeters_timeline']),
58
+ };
59
+ }
60
+
61
+ export function TweetRetweetersResponseDataToJSON(value?: TweetRetweetersResponseData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'retweeters_timeline': TimelineV2ToJSON(value.retweetersTimeline),
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 { UsersResponseData } from './UsersResponseData';
17
+ import {
18
+ UsersResponseDataFromJSON,
19
+ UsersResponseDataFromJSONTyped,
20
+ UsersResponseDataToJSON,
21
+ } from './UsersResponseData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface UsersResponse
27
+ */
28
+ export interface UsersResponse {
29
+ /**
30
+ *
31
+ * @type {UsersResponseData}
32
+ * @memberof UsersResponse
33
+ */
34
+ data: UsersResponseData;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the UsersResponse interface.
39
+ */
40
+ export function instanceOfUsersResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "data" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function UsersResponseFromJSON(json: any): UsersResponse {
48
+ return UsersResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function UsersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'data': UsersResponseDataFromJSON(json['data']),
58
+ };
59
+ }
60
+
61
+ export function UsersResponseToJSON(value?: UsersResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'data': UsersResponseDataToJSON(value.data),
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 { UserResults } from './UserResults';
17
+ import {
18
+ UserResultsFromJSON,
19
+ UserResultsFromJSONTyped,
20
+ UserResultsToJSON,
21
+ } from './UserResults';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface UsersResponseData
27
+ */
28
+ export interface UsersResponseData {
29
+ /**
30
+ *
31
+ * @type {Array<UserResults>}
32
+ * @memberof UsersResponseData
33
+ */
34
+ users: Array<UserResults>;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the UsersResponseData interface.
39
+ */
40
+ export function instanceOfUsersResponseData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "users" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function UsersResponseDataFromJSON(json: any): UsersResponseData {
48
+ return UsersResponseDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function UsersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersResponseData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'users': ((json['users'] as Array<any>).map(UserResultsFromJSON)),
58
+ };
59
+ }
60
+
61
+ export function UsersResponseDataToJSON(value?: UsersResponseData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'users': ((value.users as Array<any>).map(UserResultsToJSON)),
71
+ };
72
+ }
73
+
@@ -35,10 +35,10 @@ export * from './InstructionType';
35
35
  export * from './InstructionUnion';
36
36
  export * from './ItemContentUnion';
37
37
  export * from './ItemResult';
38
+ export * from './ListLatestTweetsTimelineResponse';
38
39
  export * from './ListTweetsTimeline';
39
40
  export * from './ListTweetsTimelineData';
40
41
  export * from './ListTweetsTimelineList';
41
- export * from './ListTweetsTimelineResponse';
42
42
  export * from './Media';
43
43
  export * from './MediaOriginalInfo';
44
44
  export * from './ModuleEntry';
@@ -60,14 +60,24 @@ export * from './ProfileResponse';
60
60
  export * from './ProfileResponseData';
61
61
  export * from './Retweet';
62
62
  export * from './RetweetLegacy';
63
+ export * from './SearchByRawQuery';
64
+ export * from './SearchTimeline';
65
+ export * from './SearchTimelineData';
66
+ export * from './SearchTimelineResponse';
63
67
  export * from './Session';
64
68
  export * from './SocialContext';
65
69
  export * from './Timeline';
66
70
  export * from './TimelineAddEntries';
67
71
  export * from './TimelineAddEntry';
72
+ export * from './TimelineAddToModule';
68
73
  export * from './TimelineClearCache';
74
+ export * from './TimelineMessagePrompt';
69
75
  export * from './TimelinePinEntry';
76
+ export * from './TimelinePrompt';
77
+ export * from './TimelineReplaceEntry';
70
78
  export * from './TimelineResponse';
79
+ export * from './TimelineShowAlert';
80
+ export * from './TimelineShowAlertRichText';
71
81
  export * from './TimelineTerminateTimeline';
72
82
  export * from './TimelineTimelineCursor';
73
83
  export * from './TimelineTimelineItem';
@@ -84,7 +94,12 @@ export * from './TweetDetailResponse';
84
94
  export * from './TweetDetailResponseData';
85
95
  export * from './TweetEditControl';
86
96
  export * from './TweetEditPrespective';
97
+ export * from './TweetFavoritersResponse';
98
+ export * from './TweetFavoritersResponseData';
87
99
  export * from './TweetLegacy';
100
+ export * from './TweetLegacySelfThread';
101
+ export * from './TweetRetweetersResponse';
102
+ export * from './TweetRetweetersResponseData';
88
103
  export * from './TweetTombstone';
89
104
  export * from './TweetUnion';
90
105
  export * from './TweetViews';
@@ -107,3 +122,5 @@ export * from './UserTweetsData';
107
122
  export * from './UserTweetsResponse';
108
123
  export * from './UserTweetsResult';
109
124
  export * from './UserTweetsUser';
125
+ export * from './UsersResponse';
126
+ export * from './UsersResponseData';
@@ -1,7 +1,7 @@
1
- inputSpec: twitter-openapi/dist/typescript/openapi-3.0.yaml
1
+ inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml
2
2
  outputDir: .
3
3
  npmName: twitter-openapi-typescript-generated
4
- npmVersion: 0.0.6
4
+ npmVersion: 0.0.8
5
5
 
6
6
  # withoutRuntimeChecks: false
7
7
  legacyDiscriminatorBehavior: false
@@ -29,7 +29,7 @@ package.update(
29
29
  "type": "git",
30
30
  "url": "https://github.com/fa0311/twitter-openapi-typescript.git",
31
31
  },
32
- "keywords": ["twitter", "api", "typescript"],
32
+ "keywords": ["twitter", "api", "typescript", "scraper"],
33
33
  }
34
34
  )
35
35
 
@@ -80,8 +80,12 @@ paths:
80
80
  $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet
81
81
  /graphql/{pathQueryId}/FavoriteTweet:
82
82
  $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet
83
+ /graphql/{pathQueryId}/Favoriters:
84
+ $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Favoriters
83
85
  /graphql/{pathQueryId}/Followers:
84
86
  $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers
87
+ /graphql/{pathQueryId}/FollowersYouKnow:
88
+ $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1FollowersYouKnow
85
89
  /graphql/{pathQueryId}/Following:
86
90
  $ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following
87
91
  /graphql/{pathQueryId}/HomeLatestTimeline:
@@ -94,10 +98,16 @@ paths:
94
98
  $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline
95
99
  /graphql/{pathQueryId}/ProfileSpotlightsQuery:
96
100
  $ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery
101
+ /graphql/{pathQueryId}/Retweeters:
102
+ $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Retweeters
103
+ /graphql/{pathQueryId}/SearchTimeline:
104
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
97
105
  /graphql/{pathQueryId}/TweetDetail:
98
106
  $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
99
107
  /graphql/{pathQueryId}/UnfavoriteTweet:
100
108
  $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
109
+ /graphql/{pathQueryId}/UserByRestId:
110
+ $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
101
111
  /graphql/{pathQueryId}/UserByScreenName:
102
112
  $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
103
113
  /graphql/{pathQueryId}/UserMedia:
@@ -106,6 +116,8 @@ paths:
106
116
  $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
107
117
  /graphql/{pathQueryId}/UserTweetsAndReplies:
108
118
  $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
119
+ /graphql/{pathQueryId}/UsersByRestIds:
120
+ $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds
109
121
  /other:
110
122
  $ref: ./paths/other.yaml#/paths/~1other
111
123
  security:
@@ -35,13 +35,6 @@ paths:
35
35
  default: tmd4ifV8RHltzn8ymGg1aw
36
36
  example: tmd4ifV8RHltzn8ymGg1aw
37
37
  type: string
38
- - in: query
39
- name: queryId
40
- required: true
41
- schema:
42
- default: '"tmd4ifV8RHltzn8ymGg1aw"'
43
- example: '"tmd4ifV8RHltzn8ymGg1aw"'
44
- type: string
45
38
  - in: query
46
39
  name: variables
47
40
  required: true
@@ -43,35 +43,6 @@ paths:
43
43
  description: get user list of followers
44
44
  operationId: getFollowers
45
45
  parameters:
46
- - in: header
47
- name: user-agent
48
- required: true
49
- schema:
50
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
51
- like Gecko) Chrome/112.0.0.0 Safari/537.36
52
- description: UserAgent, some APIs may be rejected if changed.
53
- type: string
54
- - in: header
55
- name: authorization
56
- required: true
57
- schema:
58
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
59
- description: It is a constant value and does not need to be changed.
60
- type: string
61
- - in: header
62
- name: x-twitter-active-user
63
- required: true
64
- schema:
65
- default: 'yes'
66
- description: Unknown what this value means.
67
- type: string
68
- - in: header
69
- name: x-twitter-client-language
70
- required: true
71
- schema:
72
- default: en
73
- description: language code.
74
- type: string
75
46
  - in: path
76
47
  name: pathQueryId
77
48
  required: true
@@ -79,13 +50,6 @@ paths:
79
50
  default: djdTXDIk2qhd4OStqlUFeQ
80
51
  example: djdTXDIk2qhd4OStqlUFeQ
81
52
  type: string
82
- - in: query
83
- name: queryId
84
- required: true
85
- schema:
86
- default: '"djdTXDIk2qhd4OStqlUFeQ"'
87
- example: '"djdTXDIk2qhd4OStqlUFeQ"'
88
- type: string
89
53
  - in: query
90
54
  name: variables
91
55
  required: true
@@ -156,40 +120,102 @@ paths:
156
120
  type: string
157
121
  tags:
158
122
  - user-list
159
- /graphql/{pathQueryId}/Following:
123
+ /graphql/{pathQueryId}/FollowersYouKnow:
160
124
  get:
161
- description: get user list of following
162
- operationId: getFollowing
125
+ description: get followers you know
126
+ operationId: getFollowersYouKnow
163
127
  parameters:
164
- - in: header
165
- name: user-agent
128
+ - in: path
129
+ name: pathQueryId
166
130
  required: true
167
131
  schema:
168
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
169
- like Gecko) Chrome/112.0.0.0 Safari/537.36
170
- description: UserAgent, some APIs may be rejected if changed.
132
+ default: W9Iz6TVLymzCWjG2uOFKZg
133
+ example: W9Iz6TVLymzCWjG2uOFKZg
171
134
  type: string
172
- - in: header
173
- name: authorization
135
+ - in: query
136
+ name: variables
174
137
  required: true
175
138
  schema:
176
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
177
- description: It is a constant value and does not need to be changed.
139
+ default: '{"userId": "44196397", "count": 20, "includePromotedContent":
140
+ false}'
141
+ example: '{"userId": "44196397", "count": 20, "includePromotedContent":
142
+ false}'
178
143
  type: string
179
- - in: header
180
- name: x-twitter-active-user
144
+ - in: query
145
+ name: features
181
146
  required: true
182
147
  schema:
183
- default: 'yes'
184
- description: Unknown what this value means.
148
+ default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
149
+ true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
150
+ true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
151
+ false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
152
+ true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
153
+ "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
154
+ true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
155
+ "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
156
+ true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
157
+ true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
158
+ true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
159
+ false}'
160
+ example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
161
+ true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
162
+ true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
163
+ false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
164
+ true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
165
+ "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
166
+ true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
167
+ "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
168
+ true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
169
+ true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
170
+ true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
171
+ false}'
185
172
  type: string
186
- - in: header
187
- name: x-twitter-client-language
173
+ - in: query
174
+ name: fieldToggles
188
175
  required: true
189
176
  schema:
190
- default: en
191
- description: language code.
177
+ default: '{"withArticleRichContentState": false}'
178
+ example: '{"withArticleRichContentState": false}'
192
179
  type: string
180
+ responses:
181
+ '200':
182
+ content:
183
+ application/json:
184
+ schema:
185
+ $ref: '#/components/schemas/FollowResponse'
186
+ description: Successful operation
187
+ headers:
188
+ x-connection-hash:
189
+ schema:
190
+ type: string
191
+ x-rate-limit-limit:
192
+ schema:
193
+ type: integer
194
+ x-rate-limit-remaining:
195
+ schema:
196
+ type: integer
197
+ x-rate-limit-reset:
198
+ schema:
199
+ type: integer
200
+ x-response-time:
201
+ schema:
202
+ type: integer
203
+ x-tfe-preserve-body:
204
+ schema:
205
+ type: boolean
206
+ x-transaction-id:
207
+ schema:
208
+ type: string
209
+ x-twitter-response-tags:
210
+ schema:
211
+ type: string
212
+ tags:
213
+ - user-list
214
+ /graphql/{pathQueryId}/Following:
215
+ get:
216
+ description: get user list of following
217
+ operationId: getFollowing
218
+ parameters:
193
219
  - in: path
194
220
  name: pathQueryId
195
221
  required: true
@@ -197,13 +223,6 @@ paths:
197
223
  default: IWP6Zt14sARO29lJT35bBw
198
224
  example: IWP6Zt14sARO29lJT35bBw
199
225
  type: string
200
- - in: query
201
- name: queryId
202
- required: true
203
- schema:
204
- default: '"IWP6Zt14sARO29lJT35bBw"'
205
- example: '"IWP6Zt14sARO29lJT35bBw"'
206
- type: string
207
226
  - in: query
208
227
  name: variables
209
228
  required: true
@@ -75,13 +75,6 @@ paths:
75
75
  default: 9zwVLJ48lmVUk8u_Gh9DmA
76
76
  example: 9zwVLJ48lmVUk8u_Gh9DmA
77
77
  type: string
78
- - in: query
79
- name: queryId
80
- required: true
81
- schema:
82
- default: '"9zwVLJ48lmVUk8u_Gh9DmA"'
83
- example: '"9zwVLJ48lmVUk8u_Gh9DmA"'
84
- type: string
85
78
  - in: query
86
79
  name: variables
87
80
  required: true