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,97 @@
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 { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+ import type { TimelineAddEntry } from './TimelineAddEntry';
23
+ import {
24
+ TimelineAddEntryFromJSON,
25
+ TimelineAddEntryFromJSONTyped,
26
+ TimelineAddEntryToJSON,
27
+ } from './TimelineAddEntry';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface TimelineReplaceEntry
33
+ */
34
+ export interface TimelineReplaceEntry {
35
+ /**
36
+ *
37
+ * @type {TimelineAddEntry}
38
+ * @memberof TimelineReplaceEntry
39
+ */
40
+ entry: TimelineAddEntry;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TimelineReplaceEntry
45
+ */
46
+ entryIdToReplace: string;
47
+ /**
48
+ *
49
+ * @type {InstructionType}
50
+ * @memberof TimelineReplaceEntry
51
+ */
52
+ type: InstructionType;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the TimelineReplaceEntry interface.
57
+ */
58
+ export function instanceOfTimelineReplaceEntry(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "entry" in value;
61
+ isInstance = isInstance && "entryIdToReplace" in value;
62
+ isInstance = isInstance && "type" in value;
63
+
64
+ return isInstance;
65
+ }
66
+
67
+ export function TimelineReplaceEntryFromJSON(json: any): TimelineReplaceEntry {
68
+ return TimelineReplaceEntryFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function TimelineReplaceEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineReplaceEntry {
72
+ if ((json === undefined) || (json === null)) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'entry': TimelineAddEntryFromJSON(json['entry']),
78
+ 'entryIdToReplace': json['entry_id_to_replace'],
79
+ 'type': InstructionTypeFromJSON(json['type']),
80
+ };
81
+ }
82
+
83
+ export function TimelineReplaceEntryToJSON(value?: TimelineReplaceEntry | null): any {
84
+ if (value === undefined) {
85
+ return undefined;
86
+ }
87
+ if (value === null) {
88
+ return null;
89
+ }
90
+ return {
91
+
92
+ 'entry': TimelineAddEntryToJSON(value.entry),
93
+ 'entry_id_to_replace': value.entryIdToReplace,
94
+ 'type': InstructionTypeToJSON(value.type),
95
+ };
96
+ }
97
+
@@ -0,0 +1,169 @@
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 { InstructionType } from './InstructionType';
17
+ import {
18
+ InstructionTypeFromJSON,
19
+ InstructionTypeFromJSONTyped,
20
+ InstructionTypeToJSON,
21
+ } from './InstructionType';
22
+ import type { TimelineShowAlertRichText } from './TimelineShowAlertRichText';
23
+ import {
24
+ TimelineShowAlertRichTextFromJSON,
25
+ TimelineShowAlertRichTextFromJSONTyped,
26
+ TimelineShowAlertRichTextToJSON,
27
+ } from './TimelineShowAlertRichText';
28
+ import type { UserResults } from './UserResults';
29
+ import {
30
+ UserResultsFromJSON,
31
+ UserResultsFromJSONTyped,
32
+ UserResultsToJSON,
33
+ } from './UserResults';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface TimelineShowAlert
39
+ */
40
+ export interface TimelineShowAlert {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TimelineShowAlert
45
+ */
46
+ alertType?: TimelineShowAlertAlertTypeEnum;
47
+ /**
48
+ *
49
+ * @type {object}
50
+ * @memberof TimelineShowAlert
51
+ */
52
+ colorConfig?: object;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof TimelineShowAlert
57
+ */
58
+ displayDurationMs?: number;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof TimelineShowAlert
63
+ */
64
+ displayLocation?: TimelineShowAlertDisplayLocationEnum;
65
+ /**
66
+ *
67
+ * @type {object}
68
+ * @memberof TimelineShowAlert
69
+ */
70
+ iconDisplayInfo?: object;
71
+ /**
72
+ *
73
+ * @type {TimelineShowAlertRichText}
74
+ * @memberof TimelineShowAlert
75
+ */
76
+ richText: TimelineShowAlertRichText;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof TimelineShowAlert
81
+ */
82
+ triggerDelayMs?: number;
83
+ /**
84
+ *
85
+ * @type {InstructionType}
86
+ * @memberof TimelineShowAlert
87
+ */
88
+ type: InstructionType;
89
+ /**
90
+ *
91
+ * @type {Array<UserResults>}
92
+ * @memberof TimelineShowAlert
93
+ */
94
+ usersResults: Array<UserResults>;
95
+ }
96
+
97
+
98
+ /**
99
+ * @export
100
+ */
101
+ export const TimelineShowAlertAlertTypeEnum = {
102
+ NewTweets: 'NewTweets'
103
+ } as const;
104
+ export type TimelineShowAlertAlertTypeEnum = typeof TimelineShowAlertAlertTypeEnum[keyof typeof TimelineShowAlertAlertTypeEnum];
105
+
106
+ /**
107
+ * @export
108
+ */
109
+ export const TimelineShowAlertDisplayLocationEnum = {
110
+ Top: 'Top'
111
+ } as const;
112
+ export type TimelineShowAlertDisplayLocationEnum = typeof TimelineShowAlertDisplayLocationEnum[keyof typeof TimelineShowAlertDisplayLocationEnum];
113
+
114
+
115
+ /**
116
+ * Check if a given object implements the TimelineShowAlert interface.
117
+ */
118
+ export function instanceOfTimelineShowAlert(value: object): boolean {
119
+ let isInstance = true;
120
+ isInstance = isInstance && "richText" in value;
121
+ isInstance = isInstance && "type" in value;
122
+ isInstance = isInstance && "usersResults" in value;
123
+
124
+ return isInstance;
125
+ }
126
+
127
+ export function TimelineShowAlertFromJSON(json: any): TimelineShowAlert {
128
+ return TimelineShowAlertFromJSONTyped(json, false);
129
+ }
130
+
131
+ export function TimelineShowAlertFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowAlert {
132
+ if ((json === undefined) || (json === null)) {
133
+ return json;
134
+ }
135
+ return {
136
+
137
+ 'alertType': !exists(json, 'alertType') ? undefined : json['alertType'],
138
+ 'colorConfig': !exists(json, 'colorConfig') ? undefined : json['colorConfig'],
139
+ 'displayDurationMs': !exists(json, 'displayDurationMs') ? undefined : json['displayDurationMs'],
140
+ 'displayLocation': !exists(json, 'displayLocation') ? undefined : json['displayLocation'],
141
+ 'iconDisplayInfo': !exists(json, 'iconDisplayInfo') ? undefined : json['iconDisplayInfo'],
142
+ 'richText': TimelineShowAlertRichTextFromJSON(json['richText']),
143
+ 'triggerDelayMs': !exists(json, 'triggerDelayMs') ? undefined : json['triggerDelayMs'],
144
+ 'type': InstructionTypeFromJSON(json['type']),
145
+ 'usersResults': ((json['usersResults'] as Array<any>).map(UserResultsFromJSON)),
146
+ };
147
+ }
148
+
149
+ export function TimelineShowAlertToJSON(value?: TimelineShowAlert | null): any {
150
+ if (value === undefined) {
151
+ return undefined;
152
+ }
153
+ if (value === null) {
154
+ return null;
155
+ }
156
+ return {
157
+
158
+ 'alertType': value.alertType,
159
+ 'colorConfig': value.colorConfig,
160
+ 'displayDurationMs': value.displayDurationMs,
161
+ 'displayLocation': value.displayLocation,
162
+ 'iconDisplayInfo': value.iconDisplayInfo,
163
+ 'richText': TimelineShowAlertRichTextToJSON(value.richText),
164
+ 'triggerDelayMs': value.triggerDelayMs,
165
+ 'type': InstructionTypeToJSON(value.type),
166
+ 'usersResults': ((value.usersResults as Array<any>).map(UserResultsToJSON)),
167
+ };
168
+ }
169
+
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface TimelineShowAlertRichText
20
+ */
21
+ export interface TimelineShowAlertRichText {
22
+ /**
23
+ *
24
+ * @type {Array<object>}
25
+ * @memberof TimelineShowAlertRichText
26
+ */
27
+ entities?: Array<object>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TimelineShowAlertRichText
32
+ */
33
+ text?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TimelineShowAlertRichText interface.
38
+ */
39
+ export function instanceOfTimelineShowAlertRichText(value: object): boolean {
40
+ let isInstance = true;
41
+
42
+ return isInstance;
43
+ }
44
+
45
+ export function TimelineShowAlertRichTextFromJSON(json: any): TimelineShowAlertRichText {
46
+ return TimelineShowAlertRichTextFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TimelineShowAlertRichTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowAlertRichText {
50
+ if ((json === undefined) || (json === null)) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'entities': !exists(json, 'entities') ? undefined : json['entities'],
56
+ 'text': !exists(json, 'text') ? undefined : json['text'],
57
+ };
58
+ }
59
+
60
+ export function TimelineShowAlertRichTextToJSON(value?: TimelineShowAlertRichText | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ 'entities': value.entities,
70
+ 'text': value.text,
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 { TweetFavoritersResponseData } from './TweetFavoritersResponseData';
17
+ import {
18
+ TweetFavoritersResponseDataFromJSON,
19
+ TweetFavoritersResponseDataFromJSONTyped,
20
+ TweetFavoritersResponseDataToJSON,
21
+ } from './TweetFavoritersResponseData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetFavoritersResponse
27
+ */
28
+ export interface TweetFavoritersResponse {
29
+ /**
30
+ *
31
+ * @type {TweetFavoritersResponseData}
32
+ * @memberof TweetFavoritersResponse
33
+ */
34
+ data: TweetFavoritersResponseData;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TweetFavoritersResponse interface.
39
+ */
40
+ export function instanceOfTweetFavoritersResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "data" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TweetFavoritersResponseFromJSON(json: any): TweetFavoritersResponse {
48
+ return TweetFavoritersResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TweetFavoritersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetFavoritersResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'data': TweetFavoritersResponseDataFromJSON(json['data']),
58
+ };
59
+ }
60
+
61
+ export function TweetFavoritersResponseToJSON(value?: TweetFavoritersResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'data': TweetFavoritersResponseDataToJSON(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 { TimelineV2 } from './TimelineV2';
17
+ import {
18
+ TimelineV2FromJSON,
19
+ TimelineV2FromJSONTyped,
20
+ TimelineV2ToJSON,
21
+ } from './TimelineV2';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetFavoritersResponseData
27
+ */
28
+ export interface TweetFavoritersResponseData {
29
+ /**
30
+ *
31
+ * @type {TimelineV2}
32
+ * @memberof TweetFavoritersResponseData
33
+ */
34
+ favoritersTimeline: TimelineV2;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TweetFavoritersResponseData interface.
39
+ */
40
+ export function instanceOfTweetFavoritersResponseData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "favoritersTimeline" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TweetFavoritersResponseDataFromJSON(json: any): TweetFavoritersResponseData {
48
+ return TweetFavoritersResponseDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TweetFavoritersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetFavoritersResponseData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'favoritersTimeline': TimelineV2FromJSON(json['favoriters_timeline']),
58
+ };
59
+ }
60
+
61
+ export function TweetFavoritersResponseDataToJSON(value?: TweetFavoritersResponseData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'favoriters_timeline': TimelineV2ToJSON(value.favoritersTimeline),
71
+ };
72
+ }
73
+
@@ -31,6 +31,12 @@ import {
31
31
  ItemResultFromJSONTyped,
32
32
  ItemResultToJSON,
33
33
  } from './ItemResult';
34
+ import type { TweetLegacySelfThread } from './TweetLegacySelfThread';
35
+ import {
36
+ TweetLegacySelfThreadFromJSON,
37
+ TweetLegacySelfThreadFromJSONTyped,
38
+ TweetLegacySelfThreadToJSON,
39
+ } from './TweetLegacySelfThread';
34
40
 
35
41
  /**
36
42
  *
@@ -158,6 +164,12 @@ export interface TweetLegacy {
158
164
  * @memberof TweetLegacy
159
165
  */
160
166
  retweetedStatusResult?: ItemResult;
167
+ /**
168
+ *
169
+ * @type {TweetLegacySelfThread}
170
+ * @memberof TweetLegacy
171
+ */
172
+ selfThread?: TweetLegacySelfThread;
161
173
  /**
162
174
  *
163
175
  * @type {string}
@@ -222,6 +234,7 @@ export function TweetLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean
222
234
  'retweetCount': json['retweet_count'],
223
235
  'retweeted': json['retweeted'],
224
236
  'retweetedStatusResult': !exists(json, 'retweeted_status_result') ? undefined : ItemResultFromJSON(json['retweeted_status_result']),
237
+ 'selfThread': !exists(json, 'self_thread') ? undefined : TweetLegacySelfThreadFromJSON(json['self_thread']),
225
238
  'userIdStr': json['user_id_str'],
226
239
  };
227
240
  }
@@ -255,6 +268,7 @@ export function TweetLegacyToJSON(value?: TweetLegacy | null): any {
255
268
  'retweet_count': value.retweetCount,
256
269
  'retweeted': value.retweeted,
257
270
  'retweeted_status_result': ItemResultToJSON(value.retweetedStatusResult),
271
+ 'self_thread': TweetLegacySelfThreadToJSON(value.selfThread),
258
272
  'user_id_str': value.userIdStr,
259
273
  };
260
274
  }
@@ -0,0 +1,66 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface TweetLegacySelfThread
20
+ */
21
+ export interface TweetLegacySelfThread {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TweetLegacySelfThread
26
+ */
27
+ idStr: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the TweetLegacySelfThread interface.
32
+ */
33
+ export function instanceOfTweetLegacySelfThread(value: object): boolean {
34
+ let isInstance = true;
35
+ isInstance = isInstance && "idStr" in value;
36
+
37
+ return isInstance;
38
+ }
39
+
40
+ export function TweetLegacySelfThreadFromJSON(json: any): TweetLegacySelfThread {
41
+ return TweetLegacySelfThreadFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function TweetLegacySelfThreadFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetLegacySelfThread {
45
+ if ((json === undefined) || (json === null)) {
46
+ return json;
47
+ }
48
+ return {
49
+
50
+ 'idStr': json['id_str'],
51
+ };
52
+ }
53
+
54
+ export function TweetLegacySelfThreadToJSON(value?: TweetLegacySelfThread | null): any {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+
63
+ 'id_str': value.idStr,
64
+ };
65
+ }
66
+
@@ -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 { TweetRetweetersResponseData } from './TweetRetweetersResponseData';
17
+ import {
18
+ TweetRetweetersResponseDataFromJSON,
19
+ TweetRetweetersResponseDataFromJSONTyped,
20
+ TweetRetweetersResponseDataToJSON,
21
+ } from './TweetRetweetersResponseData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetRetweetersResponse
27
+ */
28
+ export interface TweetRetweetersResponse {
29
+ /**
30
+ *
31
+ * @type {TweetRetweetersResponseData}
32
+ * @memberof TweetRetweetersResponse
33
+ */
34
+ data: TweetRetweetersResponseData;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TweetRetweetersResponse interface.
39
+ */
40
+ export function instanceOfTweetRetweetersResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "data" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function TweetRetweetersResponseFromJSON(json: any): TweetRetweetersResponse {
48
+ return TweetRetweetersResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function TweetRetweetersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRetweetersResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'data': TweetRetweetersResponseDataFromJSON(json['data']),
58
+ };
59
+ }
60
+
61
+ export function TweetRetweetersResponseToJSON(value?: TweetRetweetersResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'data': TweetRetweetersResponseDataToJSON(value.data),
71
+ };
72
+ }
73
+