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
@@ -12,6 +12,20 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
+ import {
16
+ TimelineMessagePrompt,
17
+ instanceOfTimelineMessagePrompt,
18
+ TimelineMessagePromptFromJSON,
19
+ TimelineMessagePromptFromJSONTyped,
20
+ TimelineMessagePromptToJSON,
21
+ } from './TimelineMessagePrompt';
22
+ import {
23
+ TimelinePrompt,
24
+ instanceOfTimelinePrompt,
25
+ TimelinePromptFromJSON,
26
+ TimelinePromptFromJSONTyped,
27
+ TimelinePromptToJSON,
28
+ } from './TimelinePrompt';
15
29
  import {
16
30
  TimelineTimelineCursor,
17
31
  instanceOfTimelineTimelineCursor,
@@ -39,7 +53,7 @@ import {
39
53
  *
40
54
  * @export
41
55
  */
42
- export type ItemContentUnion = { itemType: 'TimelineTimelineCursor' } & TimelineTimelineCursor | { itemType: 'TimelineTweet' } & TimelineTweet | { itemType: 'TimelineUser' } & TimelineUser;
56
+ export type ItemContentUnion = { itemType: 'TimelineMessagePrompt' } & TimelineMessagePrompt | { itemType: 'TimelinePrompt' } & TimelinePrompt | { itemType: 'TimelineTimelineCursor' } & TimelineTimelineCursor | { itemType: 'TimelineTweet' } & TimelineTweet | { itemType: 'TimelineUser' } & TimelineUser;
43
57
 
44
58
  export function ItemContentUnionFromJSON(json: any): ItemContentUnion {
45
59
  return ItemContentUnionFromJSONTyped(json, false);
@@ -50,6 +64,10 @@ export function ItemContentUnionFromJSONTyped(json: any, ignoreDiscriminator: bo
50
64
  return json;
51
65
  }
52
66
  switch (json['itemType']) {
67
+ case 'TimelineMessagePrompt':
68
+ return {...TimelineMessagePromptFromJSONTyped(json, true), itemType: 'TimelineMessagePrompt'};
69
+ case 'TimelinePrompt':
70
+ return {...TimelinePromptFromJSONTyped(json, true), itemType: 'TimelinePrompt'};
53
71
  case 'TimelineTimelineCursor':
54
72
  return {...TimelineTimelineCursorFromJSONTyped(json, true), itemType: 'TimelineTimelineCursor'};
55
73
  case 'TimelineTweet':
@@ -69,6 +87,10 @@ export function ItemContentUnionToJSON(value?: ItemContentUnion | null): any {
69
87
  return null;
70
88
  }
71
89
  switch (value['itemType']) {
90
+ case 'TimelineMessagePrompt':
91
+ return TimelineMessagePromptToJSON(value);
92
+ case 'TimelinePrompt':
93
+ return TimelinePromptToJSON(value);
72
94
  case 'TimelineTimelineCursor':
73
95
  return TimelineTimelineCursorToJSON(value);
74
96
  case 'TimelineTweet':
@@ -23,32 +23,32 @@ import {
23
23
  /**
24
24
  *
25
25
  * @export
26
- * @interface ListTweetsTimelineResponse
26
+ * @interface ListLatestTweetsTimelineResponse
27
27
  */
28
- export interface ListTweetsTimelineResponse {
28
+ export interface ListLatestTweetsTimelineResponse {
29
29
  /**
30
30
  *
31
31
  * @type {ListTweetsTimelineData}
32
- * @memberof ListTweetsTimelineResponse
32
+ * @memberof ListLatestTweetsTimelineResponse
33
33
  */
34
34
  data: ListTweetsTimelineData;
35
35
  }
36
36
 
37
37
  /**
38
- * Check if a given object implements the ListTweetsTimelineResponse interface.
38
+ * Check if a given object implements the ListLatestTweetsTimelineResponse interface.
39
39
  */
40
- export function instanceOfListTweetsTimelineResponse(value: object): boolean {
40
+ export function instanceOfListLatestTweetsTimelineResponse(value: object): boolean {
41
41
  let isInstance = true;
42
42
  isInstance = isInstance && "data" in value;
43
43
 
44
44
  return isInstance;
45
45
  }
46
46
 
47
- export function ListTweetsTimelineResponseFromJSON(json: any): ListTweetsTimelineResponse {
48
- return ListTweetsTimelineResponseFromJSONTyped(json, false);
47
+ export function ListLatestTweetsTimelineResponseFromJSON(json: any): ListLatestTweetsTimelineResponse {
48
+ return ListLatestTweetsTimelineResponseFromJSONTyped(json, false);
49
49
  }
50
50
 
51
- export function ListTweetsTimelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTweetsTimelineResponse {
51
+ export function ListLatestTweetsTimelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLatestTweetsTimelineResponse {
52
52
  if ((json === undefined) || (json === null)) {
53
53
  return json;
54
54
  }
@@ -58,7 +58,7 @@ export function ListTweetsTimelineResponseFromJSONTyped(json: any, ignoreDiscrim
58
58
  };
59
59
  }
60
60
 
61
- export function ListTweetsTimelineResponseToJSON(value?: ListTweetsTimelineResponse | null): any {
61
+ export function ListLatestTweetsTimelineResponseToJSON(value?: ListLatestTweetsTimelineResponse | null): any {
62
62
  if (value === undefined) {
63
63
  return undefined;
64
64
  }
@@ -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 { SearchTimeline } from './SearchTimeline';
17
+ import {
18
+ SearchTimelineFromJSON,
19
+ SearchTimelineFromJSONTyped,
20
+ SearchTimelineToJSON,
21
+ } from './SearchTimeline';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchByRawQuery
27
+ */
28
+ export interface SearchByRawQuery {
29
+ /**
30
+ *
31
+ * @type {SearchTimeline}
32
+ * @memberof SearchByRawQuery
33
+ */
34
+ searchTimeline: SearchTimeline;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchByRawQuery interface.
39
+ */
40
+ export function instanceOfSearchByRawQuery(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "searchTimeline" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchByRawQueryFromJSON(json: any): SearchByRawQuery {
48
+ return SearchByRawQueryFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchByRawQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchByRawQuery {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'searchTimeline': SearchTimelineFromJSON(json['search_timeline']),
58
+ };
59
+ }
60
+
61
+ export function SearchByRawQueryToJSON(value?: SearchByRawQuery | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'search_timeline': SearchTimelineToJSON(value.searchTimeline),
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 { Timeline } from './Timeline';
17
+ import {
18
+ TimelineFromJSON,
19
+ TimelineFromJSONTyped,
20
+ TimelineToJSON,
21
+ } from './Timeline';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchTimeline
27
+ */
28
+ export interface SearchTimeline {
29
+ /**
30
+ *
31
+ * @type {Timeline}
32
+ * @memberof SearchTimeline
33
+ */
34
+ timeline: Timeline;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchTimeline interface.
39
+ */
40
+ export function instanceOfSearchTimeline(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "timeline" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchTimelineFromJSON(json: any): SearchTimeline {
48
+ return SearchTimelineFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchTimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTimeline {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'timeline': TimelineFromJSON(json['timeline']),
58
+ };
59
+ }
60
+
61
+ export function SearchTimelineToJSON(value?: SearchTimeline | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'timeline': TimelineToJSON(value.timeline),
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 { SearchByRawQuery } from './SearchByRawQuery';
17
+ import {
18
+ SearchByRawQueryFromJSON,
19
+ SearchByRawQueryFromJSONTyped,
20
+ SearchByRawQueryToJSON,
21
+ } from './SearchByRawQuery';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchTimelineData
27
+ */
28
+ export interface SearchTimelineData {
29
+ /**
30
+ *
31
+ * @type {SearchByRawQuery}
32
+ * @memberof SearchTimelineData
33
+ */
34
+ searchByRawQuery: SearchByRawQuery;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchTimelineData interface.
39
+ */
40
+ export function instanceOfSearchTimelineData(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "searchByRawQuery" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchTimelineDataFromJSON(json: any): SearchTimelineData {
48
+ return SearchTimelineDataFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchTimelineDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTimelineData {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'searchByRawQuery': SearchByRawQueryFromJSON(json['search_by_raw_query']),
58
+ };
59
+ }
60
+
61
+ export function SearchTimelineDataToJSON(value?: SearchTimelineData | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'search_by_raw_query': SearchByRawQueryToJSON(value.searchByRawQuery),
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 { SearchTimelineData } from './SearchTimelineData';
17
+ import {
18
+ SearchTimelineDataFromJSON,
19
+ SearchTimelineDataFromJSONTyped,
20
+ SearchTimelineDataToJSON,
21
+ } from './SearchTimelineData';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SearchTimelineResponse
27
+ */
28
+ export interface SearchTimelineResponse {
29
+ /**
30
+ *
31
+ * @type {SearchTimelineData}
32
+ * @memberof SearchTimelineResponse
33
+ */
34
+ data: SearchTimelineData;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the SearchTimelineResponse interface.
39
+ */
40
+ export function instanceOfSearchTimelineResponse(value: object): boolean {
41
+ let isInstance = true;
42
+ isInstance = isInstance && "data" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function SearchTimelineResponseFromJSON(json: any): SearchTimelineResponse {
48
+ return SearchTimelineResponseFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function SearchTimelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTimelineResponse {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'data': SearchTimelineDataFromJSON(json['data']),
58
+ };
59
+ }
60
+
61
+ export function SearchTimelineResponseToJSON(value?: SearchTimelineResponse | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'data': SearchTimelineDataToJSON(value.data),
71
+ };
72
+ }
73
+
@@ -0,0 +1,105 @@
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 { ModuleItem } from './ModuleItem';
23
+ import {
24
+ ModuleItemFromJSON,
25
+ ModuleItemFromJSONTyped,
26
+ ModuleItemToJSON,
27
+ } from './ModuleItem';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface TimelineAddToModule
33
+ */
34
+ export interface TimelineAddToModule {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TimelineAddToModule
39
+ */
40
+ moduleEntryId: string;
41
+ /**
42
+ *
43
+ * @type {Array<ModuleItem>}
44
+ * @memberof TimelineAddToModule
45
+ */
46
+ moduleItems: Array<ModuleItem>;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof TimelineAddToModule
51
+ */
52
+ prepend?: boolean;
53
+ /**
54
+ *
55
+ * @type {InstructionType}
56
+ * @memberof TimelineAddToModule
57
+ */
58
+ type: InstructionType;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the TimelineAddToModule interface.
63
+ */
64
+ export function instanceOfTimelineAddToModule(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "moduleEntryId" in value;
67
+ isInstance = isInstance && "moduleItems" in value;
68
+ isInstance = isInstance && "type" in value;
69
+
70
+ return isInstance;
71
+ }
72
+
73
+ export function TimelineAddToModuleFromJSON(json: any): TimelineAddToModule {
74
+ return TimelineAddToModuleFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function TimelineAddToModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddToModule {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'moduleEntryId': json['moduleEntryId'],
84
+ 'moduleItems': ((json['moduleItems'] as Array<any>).map(ModuleItemFromJSON)),
85
+ 'prepend': !exists(json, 'prepend') ? undefined : json['prepend'],
86
+ 'type': InstructionTypeFromJSON(json['type']),
87
+ };
88
+ }
89
+
90
+ export function TimelineAddToModuleToJSON(value?: TimelineAddToModule | null): any {
91
+ if (value === undefined) {
92
+ return undefined;
93
+ }
94
+ if (value === null) {
95
+ return null;
96
+ }
97
+ return {
98
+
99
+ 'moduleEntryId': value.moduleEntryId,
100
+ 'moduleItems': ((value.moduleItems as Array<any>).map(ModuleItemToJSON)),
101
+ 'prepend': value.prepend,
102
+ 'type': InstructionTypeToJSON(value.type),
103
+ };
104
+ }
105
+
@@ -0,0 +1,72 @@
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 { TypeName } from './TypeName';
17
+ import {
18
+ TypeNameFromJSON,
19
+ TypeNameFromJSONTyped,
20
+ TypeNameToJSON,
21
+ } from './TypeName';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TimelineMessagePrompt
27
+ */
28
+ export interface TimelineMessagePrompt {
29
+ /**
30
+ *
31
+ * @type {TypeName}
32
+ * @memberof TimelineMessagePrompt
33
+ */
34
+ typename?: TypeName;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TimelineMessagePrompt interface.
39
+ */
40
+ export function instanceOfTimelineMessagePrompt(value: object): boolean {
41
+ let isInstance = true;
42
+
43
+ return isInstance;
44
+ }
45
+
46
+ export function TimelineMessagePromptFromJSON(json: any): TimelineMessagePrompt {
47
+ return TimelineMessagePromptFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function TimelineMessagePromptFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineMessagePrompt {
51
+ if ((json === undefined) || (json === null)) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
57
+ };
58
+ }
59
+
60
+ export function TimelineMessagePromptToJSON(value?: TimelineMessagePrompt | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ '__typename': TypeNameToJSON(value.typename),
70
+ };
71
+ }
72
+
@@ -0,0 +1,72 @@
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 { TypeName } from './TypeName';
17
+ import {
18
+ TypeNameFromJSON,
19
+ TypeNameFromJSONTyped,
20
+ TypeNameToJSON,
21
+ } from './TypeName';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TimelinePrompt
27
+ */
28
+ export interface TimelinePrompt {
29
+ /**
30
+ *
31
+ * @type {TypeName}
32
+ * @memberof TimelinePrompt
33
+ */
34
+ typename?: TypeName;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the TimelinePrompt interface.
39
+ */
40
+ export function instanceOfTimelinePrompt(value: object): boolean {
41
+ let isInstance = true;
42
+
43
+ return isInstance;
44
+ }
45
+
46
+ export function TimelinePromptFromJSON(json: any): TimelinePrompt {
47
+ return TimelinePromptFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function TimelinePromptFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelinePrompt {
51
+ if ((json === undefined) || (json === null)) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
57
+ };
58
+ }
59
+
60
+ export function TimelinePromptToJSON(value?: TimelinePrompt | null): any {
61
+ if (value === undefined) {
62
+ return undefined;
63
+ }
64
+ if (value === null) {
65
+ return null;
66
+ }
67
+ return {
68
+
69
+ '__typename': TypeNameToJSON(value.typename),
70
+ };
71
+ }
72
+