twitter-openapi-typescript-generated 0.0.7 → 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 (157) hide show
  1. package/.openapi-generator/FILES +17 -1
  2. package/README.md +2 -2
  3. package/dist/apis/TweetApi.d.ts +17 -3
  4. package/dist/apis/TweetApi.d.ts.map +1 -1
  5. package/dist/apis/TweetApi.js +90 -1
  6. package/dist/apis/TweetApi.js.map +1 -1
  7. package/dist/apis/UserApi.d.ts +27 -1
  8. package/dist/apis/UserApi.d.ts.map +1 -1
  9. package/dist/apis/UserApi.js +166 -0
  10. package/dist/apis/UserApi.js.map +1 -1
  11. package/dist/apis/UserListApi.d.ts +41 -1
  12. package/dist/apis/UserListApi.d.ts.map +1 -1
  13. package/dist/apis/UserListApi.js +255 -0
  14. package/dist/apis/UserListApi.js.map +1 -1
  15. package/dist/models/ContentItemType.d.ts +2 -0
  16. package/dist/models/ContentItemType.d.ts.map +1 -1
  17. package/dist/models/ContentItemType.js +3 -1
  18. package/dist/models/ContentItemType.js.map +1 -1
  19. package/dist/models/InstructionType.d.ts +3 -0
  20. package/dist/models/InstructionType.d.ts.map +1 -1
  21. package/dist/models/InstructionType.js +3 -0
  22. package/dist/models/InstructionType.js.map +1 -1
  23. package/dist/models/InstructionUnion.d.ts +9 -0
  24. package/dist/models/InstructionUnion.d.ts.map +1 -1
  25. package/dist/models/InstructionUnion.js +15 -0
  26. package/dist/models/InstructionUnion.js.map +1 -1
  27. package/dist/models/ItemContentUnion.d.ts +6 -0
  28. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  29. package/dist/models/ItemContentUnion.js +10 -0
  30. package/dist/models/ItemContentUnion.js.map +1 -1
  31. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
  32. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
  33. package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
  34. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
  35. package/dist/models/SearchByRawQuery.d.ts +33 -0
  36. package/dist/models/SearchByRawQuery.d.ts.map +1 -0
  37. package/dist/models/SearchByRawQuery.js +52 -0
  38. package/dist/models/SearchByRawQuery.js.map +1 -0
  39. package/dist/models/SearchTimeline.d.ts +33 -0
  40. package/dist/models/SearchTimeline.d.ts.map +1 -0
  41. package/dist/models/SearchTimeline.js +52 -0
  42. package/dist/models/SearchTimeline.js.map +1 -0
  43. package/dist/models/SearchTimelineData.d.ts +33 -0
  44. package/dist/models/SearchTimelineData.d.ts.map +1 -0
  45. package/dist/models/SearchTimelineData.js +52 -0
  46. package/dist/models/SearchTimelineData.js.map +1 -0
  47. package/dist/models/SearchTimelineResponse.d.ts +33 -0
  48. package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
  49. package/dist/models/SearchTimelineResponse.js +52 -0
  50. package/dist/models/SearchTimelineResponse.js.map +1 -0
  51. package/dist/models/TimelineAddToModule.d.ts +52 -0
  52. package/dist/models/TimelineAddToModule.d.ts.map +1 -0
  53. package/dist/models/TimelineAddToModule.js +62 -0
  54. package/dist/models/TimelineAddToModule.js.map +1 -0
  55. package/dist/models/TimelineMessagePrompt.d.ts +33 -0
  56. package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
  57. package/dist/models/TimelineMessagePrompt.js +52 -0
  58. package/dist/models/TimelineMessagePrompt.js.map +1 -0
  59. package/dist/models/TimelinePrompt.d.ts +33 -0
  60. package/dist/models/TimelinePrompt.d.ts.map +1 -0
  61. package/dist/models/TimelinePrompt.js +52 -0
  62. package/dist/models/TimelinePrompt.js.map +1 -0
  63. package/dist/models/TimelineReplaceEntry.d.ts +46 -0
  64. package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
  65. package/dist/models/TimelineReplaceEntry.js +59 -0
  66. package/dist/models/TimelineReplaceEntry.js.map +1 -0
  67. package/dist/models/TimelineShowAlert.d.ts +97 -0
  68. package/dist/models/TimelineShowAlert.d.ts.map +1 -0
  69. package/dist/models/TimelineShowAlert.js +85 -0
  70. package/dist/models/TimelineShowAlert.js.map +1 -0
  71. package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
  72. package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
  73. package/dist/models/TimelineShowAlertRichText.js +53 -0
  74. package/dist/models/TimelineShowAlertRichText.js.map +1 -0
  75. package/dist/models/TweetFavoritersResponse.d.ts +33 -0
  76. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
  77. package/dist/models/TweetFavoritersResponse.js +52 -0
  78. package/dist/models/TweetFavoritersResponse.js.map +1 -0
  79. package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
  80. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
  81. package/dist/models/TweetFavoritersResponseData.js +52 -0
  82. package/dist/models/TweetFavoritersResponseData.js.map +1 -0
  83. package/dist/models/TweetRetweetersResponse.d.ts +33 -0
  84. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
  85. package/dist/models/TweetRetweetersResponse.js +52 -0
  86. package/dist/models/TweetRetweetersResponse.js.map +1 -0
  87. package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
  88. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
  89. package/dist/models/TweetRetweetersResponseData.js +52 -0
  90. package/dist/models/TweetRetweetersResponseData.js.map +1 -0
  91. package/dist/models/UsersResponse.d.ts +33 -0
  92. package/dist/models/UsersResponse.d.ts.map +1 -0
  93. package/dist/models/UsersResponse.js +52 -0
  94. package/dist/models/UsersResponse.js.map +1 -0
  95. package/dist/models/UsersResponseData.d.ts +33 -0
  96. package/dist/models/UsersResponseData.d.ts.map +1 -0
  97. package/dist/models/UsersResponseData.js +52 -0
  98. package/dist/models/UsersResponseData.js.map +1 -0
  99. package/dist/models/index.d.ts +17 -1
  100. package/dist/models/index.d.ts.map +1 -1
  101. package/dist/models/index.js +17 -1
  102. package/dist/models/index.js.map +1 -1
  103. package/package.json +3 -2
  104. package/src/apis/TweetApi.ts +102 -6
  105. package/src/apis/UserApi.ts +171 -0
  106. package/src/apis/UserListApi.ts +267 -0
  107. package/src/models/ContentItemType.ts +3 -1
  108. package/src/models/InstructionType.ts +3 -0
  109. package/src/models/InstructionUnion.ts +34 -1
  110. package/src/models/ItemContentUnion.ts +23 -1
  111. package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
  112. package/src/models/SearchByRawQuery.ts +73 -0
  113. package/src/models/SearchTimeline.ts +73 -0
  114. package/src/models/SearchTimelineData.ts +73 -0
  115. package/src/models/SearchTimelineResponse.ts +73 -0
  116. package/src/models/TimelineAddToModule.ts +105 -0
  117. package/src/models/TimelineMessagePrompt.ts +72 -0
  118. package/src/models/TimelinePrompt.ts +72 -0
  119. package/src/models/TimelineReplaceEntry.ts +97 -0
  120. package/src/models/TimelineShowAlert.ts +169 -0
  121. package/src/models/TimelineShowAlertRichText.ts +73 -0
  122. package/src/models/TweetFavoritersResponse.ts +73 -0
  123. package/src/models/TweetFavoritersResponseData.ts +73 -0
  124. package/src/models/TweetRetweetersResponse.ts +73 -0
  125. package/src/models/TweetRetweetersResponseData.ts +73 -0
  126. package/src/models/UsersResponse.ts +73 -0
  127. package/src/models/UsersResponseData.ts +73 -0
  128. package/src/models/index.ts +17 -1
  129. package/tools/openapi-generator-config.yaml +1 -1
  130. package/tools/win/replace.py +1 -1
  131. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +12 -0
  132. package/twitter-openapi/dist/compatible/paths/follow.yaml +91 -0
  133. package/twitter-openapi/dist/compatible/paths/timeline.yaml +118 -3
  134. package/twitter-openapi/dist/compatible/paths/tweet.yaml +192 -0
  135. package/twitter-openapi/dist/compatible/paths/user.yaml +144 -0
  136. package/twitter-openapi/dist/compatible/schemas/content.yaml +14 -0
  137. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +77 -0
  138. package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
  139. package/twitter-openapi/dist/docs/paths/follow.yaml +193 -0
  140. package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -3
  141. package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -0
  142. package/twitter-openapi/dist/docs/paths/user.yaml +214 -0
  143. package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
  144. package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
  145. package/twitter-openapi/src/config/placeholder.json +155 -0
  146. package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
  147. package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
  148. package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
  149. package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
  150. package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
  151. package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
  152. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  153. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  154. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
  155. package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
  156. package/dist/models/ListTweetsTimelineResponse.js +0 -52
  157. package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
@@ -19,6 +19,13 @@ import {
19
19
  TimelineAddEntriesFromJSONTyped,
20
20
  TimelineAddEntriesToJSON,
21
21
  } from './TimelineAddEntries';
22
+ import {
23
+ TimelineAddToModule,
24
+ instanceOfTimelineAddToModule,
25
+ TimelineAddToModuleFromJSON,
26
+ TimelineAddToModuleFromJSONTyped,
27
+ TimelineAddToModuleToJSON,
28
+ } from './TimelineAddToModule';
22
29
  import {
23
30
  TimelineClearCache,
24
31
  instanceOfTimelineClearCache,
@@ -33,6 +40,20 @@ import {
33
40
  TimelinePinEntryFromJSONTyped,
34
41
  TimelinePinEntryToJSON,
35
42
  } from './TimelinePinEntry';
43
+ import {
44
+ TimelineReplaceEntry,
45
+ instanceOfTimelineReplaceEntry,
46
+ TimelineReplaceEntryFromJSON,
47
+ TimelineReplaceEntryFromJSONTyped,
48
+ TimelineReplaceEntryToJSON,
49
+ } from './TimelineReplaceEntry';
50
+ import {
51
+ TimelineShowAlert,
52
+ instanceOfTimelineShowAlert,
53
+ TimelineShowAlertFromJSON,
54
+ TimelineShowAlertFromJSONTyped,
55
+ TimelineShowAlertToJSON,
56
+ } from './TimelineShowAlert';
36
57
  import {
37
58
  TimelineTerminateTimeline,
38
59
  instanceOfTimelineTerminateTimeline,
@@ -46,7 +67,7 @@ import {
46
67
  *
47
68
  * @export
48
69
  */
49
- export type InstructionUnion = { type: 'TimelineAddEntries' } & TimelineAddEntries | { type: 'TimelineClearCache' } & TimelineClearCache | { type: 'TimelinePinEntry' } & TimelinePinEntry | { type: 'TimelineTerminateTimeline' } & TimelineTerminateTimeline;
70
+ export type InstructionUnion = { type: 'TimelineAddEntries' } & TimelineAddEntries | { type: 'TimelineAddToModule' } & TimelineAddToModule | { type: 'TimelineClearCache' } & TimelineClearCache | { type: 'TimelinePinEntry' } & TimelinePinEntry | { type: 'TimelineReplaceEntry' } & TimelineReplaceEntry | { type: 'TimelineShowAlert' } & TimelineShowAlert | { type: 'TimelineTerminateTimeline' } & TimelineTerminateTimeline;
50
71
 
51
72
  export function InstructionUnionFromJSON(json: any): InstructionUnion {
52
73
  return InstructionUnionFromJSONTyped(json, false);
@@ -59,10 +80,16 @@ export function InstructionUnionFromJSONTyped(json: any, ignoreDiscriminator: bo
59
80
  switch (json['type']) {
60
81
  case 'TimelineAddEntries':
61
82
  return {...TimelineAddEntriesFromJSONTyped(json, true), type: 'TimelineAddEntries'};
83
+ case 'TimelineAddToModule':
84
+ return {...TimelineAddToModuleFromJSONTyped(json, true), type: 'TimelineAddToModule'};
62
85
  case 'TimelineClearCache':
63
86
  return {...TimelineClearCacheFromJSONTyped(json, true), type: 'TimelineClearCache'};
64
87
  case 'TimelinePinEntry':
65
88
  return {...TimelinePinEntryFromJSONTyped(json, true), type: 'TimelinePinEntry'};
89
+ case 'TimelineReplaceEntry':
90
+ return {...TimelineReplaceEntryFromJSONTyped(json, true), type: 'TimelineReplaceEntry'};
91
+ case 'TimelineShowAlert':
92
+ return {...TimelineShowAlertFromJSONTyped(json, true), type: 'TimelineShowAlert'};
66
93
  case 'TimelineTerminateTimeline':
67
94
  return {...TimelineTerminateTimelineFromJSONTyped(json, true), type: 'TimelineTerminateTimeline'};
68
95
  default:
@@ -80,10 +107,16 @@ export function InstructionUnionToJSON(value?: InstructionUnion | null): any {
80
107
  switch (value['type']) {
81
108
  case 'TimelineAddEntries':
82
109
  return TimelineAddEntriesToJSON(value);
110
+ case 'TimelineAddToModule':
111
+ return TimelineAddToModuleToJSON(value);
83
112
  case 'TimelineClearCache':
84
113
  return TimelineClearCacheToJSON(value);
85
114
  case 'TimelinePinEntry':
86
115
  return TimelinePinEntryToJSON(value);
116
+ case 'TimelineReplaceEntry':
117
+ return TimelineReplaceEntryToJSON(value);
118
+ case 'TimelineShowAlert':
119
+ return TimelineShowAlertToJSON(value);
87
120
  case 'TimelineTerminateTimeline':
88
121
  return TimelineTerminateTimelineToJSON(value);
89
122
  default:
@@ -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
+