twitter-openapi-typescript-generated 0.0.5 → 0.0.7

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 (199) hide show
  1. package/.openapi-generator/FILES +7 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +1 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +3 -6
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/PostApi.d.ts +6 -0
  8. package/dist/apis/PostApi.d.ts.map +1 -1
  9. package/dist/apis/PostApi.js +24 -6
  10. package/dist/apis/PostApi.js.map +1 -1
  11. package/dist/apis/TweetApi.d.ts +9 -9
  12. package/dist/apis/TweetApi.d.ts.map +1 -1
  13. package/dist/apis/TweetApi.js +27 -54
  14. package/dist/apis/TweetApi.js.map +1 -1
  15. package/dist/apis/UserApi.d.ts +1 -1
  16. package/dist/apis/UserApi.d.ts.map +1 -1
  17. package/dist/apis/UserApi.js +3 -6
  18. package/dist/apis/UserApi.js.map +1 -1
  19. package/dist/apis/UserListApi.d.ts +2 -2
  20. package/dist/apis/UserListApi.d.ts.map +1 -1
  21. package/dist/apis/UserListApi.js +6 -12
  22. package/dist/apis/UserListApi.js.map +1 -1
  23. package/dist/models/Entities.d.ts +3 -2
  24. package/dist/models/Entities.d.ts.map +1 -1
  25. package/dist/models/Entities.js +3 -2
  26. package/dist/models/Entities.js.map +1 -1
  27. package/dist/models/PostCreateRetweetRequest.d.ts +3 -3
  28. package/dist/models/PostCreateRetweetRequest.d.ts.map +1 -1
  29. package/dist/models/PostCreateRetweetRequest.js +3 -3
  30. package/dist/models/PostCreateRetweetRequest.js.map +1 -1
  31. package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -0
  32. package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +1 -0
  33. package/dist/models/PostCreateRetweetRequestVariables.js +54 -0
  34. package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -0
  35. package/dist/models/PostDeleteTweetRequest.d.ts +3 -3
  36. package/dist/models/PostDeleteTweetRequest.d.ts.map +1 -1
  37. package/dist/models/PostDeleteTweetRequest.js +3 -3
  38. package/dist/models/PostDeleteTweetRequest.js.map +1 -1
  39. package/dist/models/PostFavoriteTweetRequest.d.ts +3 -3
  40. package/dist/models/PostFavoriteTweetRequest.d.ts.map +1 -1
  41. package/dist/models/PostFavoriteTweetRequest.js +3 -3
  42. package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
  43. package/dist/models/PostUnfavoriteTweetRequest.d.ts +3 -3
  44. package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +1 -1
  45. package/dist/models/PostUnfavoriteTweetRequest.js +3 -3
  46. package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
  47. package/dist/models/Tweet.d.ts +7 -0
  48. package/dist/models/Tweet.d.ts.map +1 -1
  49. package/dist/models/Tweet.js +3 -0
  50. package/dist/models/Tweet.js.map +1 -1
  51. package/dist/models/TweetCard.d.ts +39 -0
  52. package/dist/models/TweetCard.d.ts.map +1 -0
  53. package/dist/models/TweetCard.js +54 -0
  54. package/dist/models/TweetCard.js.map +1 -0
  55. package/dist/models/TweetCardLegacy.d.ts +45 -0
  56. package/dist/models/TweetCardLegacy.d.ts.map +1 -0
  57. package/dist/models/TweetCardLegacy.js +58 -0
  58. package/dist/models/TweetCardLegacy.js.map +1 -0
  59. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +39 -0
  60. package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +1 -0
  61. package/dist/models/TweetCardLegacyBindingValuesInner.js +55 -0
  62. package/dist/models/TweetCardLegacyBindingValuesInner.js.map +1 -0
  63. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +50 -0
  64. package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +1 -0
  65. package/dist/models/TweetCardLegacyBindingValuesInnerValue.js +58 -0
  66. package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +1 -0
  67. package/dist/models/TweetLegacy.d.ts +7 -0
  68. package/dist/models/TweetLegacy.d.ts.map +1 -1
  69. package/dist/models/TweetLegacy.js +3 -0
  70. package/dist/models/TweetLegacy.js.map +1 -1
  71. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  72. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  73. package/dist/models/TweetLegacySelfThread.js +51 -0
  74. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  75. package/dist/models/Url.d.ts +50 -0
  76. package/dist/models/Url.d.ts.map +1 -0
  77. package/dist/models/Url.js +60 -0
  78. package/dist/models/Url.js.map +1 -0
  79. package/dist/models/index.d.ts +7 -1
  80. package/dist/models/index.d.ts.map +1 -1
  81. package/dist/models/index.js +7 -1
  82. package/dist/models/index.js.map +1 -1
  83. package/package.json +1 -1
  84. package/src/apis/DefaultApi.ts +4 -8
  85. package/src/apis/PostApi.ts +36 -6
  86. package/src/apis/TweetApi.ts +36 -72
  87. package/src/apis/UserApi.ts +4 -8
  88. package/src/apis/UserListApi.ts +8 -16
  89. package/src/models/Entities.ts +10 -4
  90. package/src/models/PostCreateRetweetRequest.ts +9 -9
  91. package/src/models/{PostDeleteTweetRequestVariables.ts → PostCreateRetweetRequestVariables.ts} +10 -10
  92. package/src/models/PostDeleteTweetRequest.ts +9 -9
  93. package/src/models/PostFavoriteTweetRequest.ts +9 -9
  94. package/src/models/PostUnfavoriteTweetRequest.ts +9 -9
  95. package/src/models/Tweet.ts +14 -0
  96. package/src/models/TweetCard.ts +80 -0
  97. package/src/models/TweetCardLegacy.ts +91 -0
  98. package/src/models/TweetCardLegacyBindingValuesInner.ts +82 -0
  99. package/src/models/TweetCardLegacyBindingValuesInnerValue.ts +90 -0
  100. package/src/models/TweetLegacy.ts +14 -0
  101. package/src/models/TweetLegacySelfThread.ts +66 -0
  102. package/src/models/Url.ts +93 -0
  103. package/src/models/index.ts +7 -1
  104. package/tools/openapi-generator-config.yaml +2 -2
  105. package/tools/win/replace.py +20 -20
  106. package/twitter-openapi/README.md +4 -6
  107. package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +38 -38
  108. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +5 -5
  109. package/twitter-openapi/dist/{test → compatible}/paths/follow.yaml +14 -14
  110. package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +135 -93
  111. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +5 -5
  112. package/twitter-openapi/dist/{typescript → compatible}/paths/timeline.yaml +25 -25
  113. package/twitter-openapi/dist/{test → compatible}/paths/tweet.yaml +5 -5
  114. package/twitter-openapi/dist/{test → compatible}/paths/user.yaml +5 -5
  115. package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +36 -36
  116. package/twitter-openapi/dist/compatible/resources/parameters.yaml +13 -0
  117. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +65 -0
  118. package/twitter-openapi/dist/docs/openapi-3.0.yaml +38 -38
  119. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +7 -56
  120. package/twitter-openapi/dist/docs/paths/follow.yaml +18 -116
  121. package/twitter-openapi/dist/docs/paths/post.yaml +124 -82
  122. package/twitter-openapi/dist/docs/paths/profile.yaml +7 -35
  123. package/twitter-openapi/dist/docs/paths/timeline.yaml +43 -192
  124. package/twitter-openapi/dist/docs/paths/tweet.yaml +7 -61
  125. package/twitter-openapi/dist/docs/paths/user.yaml +7 -41
  126. package/twitter-openapi/dist/docs/paths/usertweets.yaml +53 -263
  127. package/twitter-openapi/dist/docs/resources/parameters.yaml +13 -0
  128. package/twitter-openapi/dist/docs/schemas/tweet.yaml +65 -0
  129. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +1 -1
  130. package/twitter-openapi/src/openapi/paths/follow.yaml +2 -2
  131. package/twitter-openapi/src/openapi/paths/post.yaml +6 -6
  132. package/twitter-openapi/src/openapi/paths/profile.yaml +1 -1
  133. package/twitter-openapi/src/openapi/paths/timeline.yaml +3 -3
  134. package/twitter-openapi/src/openapi/paths/tweet.yaml +1 -1
  135. package/twitter-openapi/src/openapi/paths/user.yaml +1 -1
  136. package/twitter-openapi/src/openapi/paths/usertweets.yaml +4 -4
  137. package/twitter-openapi/src/openapi/resources/parameters.yaml +15 -0
  138. package/twitter-openapi/src/openapi/schemas/tweet.yaml +66 -1
  139. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  140. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  141. package/twitter-openapi/tools/build_config.py +67 -190
  142. package/twitter-openapi/tools/hooks.py +58 -13
  143. package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
  144. package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
  145. package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
  146. package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
  147. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  148. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
  149. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
  150. package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
  151. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
  152. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
  153. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
  154. package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
  155. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
  156. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  157. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  158. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  159. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
  160. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  161. package/twitter-openapi/dist/test/paths/post.yaml +0 -485
  162. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
  163. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  164. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  165. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  166. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  167. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  168. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  169. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  170. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  171. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
  172. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  173. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  174. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  175. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
  176. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  177. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
  178. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
  179. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
  180. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
  181. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  182. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  183. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  184. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  185. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  186. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
  187. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  188. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  189. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  190. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  191. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  192. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  193. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  194. /package/twitter-openapi/dist/{dart → compatible}/schemas/content.yaml +0 -0
  195. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  196. /package/twitter-openapi/dist/{dart → compatible}/schemas/instruction.yaml +0 -0
  197. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  198. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  199. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -23,13 +23,13 @@ import {
23
23
  } from '../models';
24
24
 
25
25
  export interface GetFollowersRequest {
26
- queryId: string;
26
+ pathQueryId: string;
27
27
  variables: string;
28
28
  features: string;
29
29
  }
30
30
 
31
31
  export interface GetFollowingRequest {
32
- queryId: string;
32
+ pathQueryId: string;
33
33
  variables: string;
34
34
  features: string;
35
35
  }
@@ -43,8 +43,8 @@ export class UserListApi extends runtime.BaseAPI {
43
43
  * get user list of followers
44
44
  */
45
45
  async getFollowersRaw(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FollowResponse>> {
46
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
47
- throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getFollowers.');
46
+ if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
47
+ throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowers.');
48
48
  }
49
49
 
50
50
  if (requestParameters.variables === null || requestParameters.variables === undefined) {
@@ -57,10 +57,6 @@ export class UserListApi extends runtime.BaseAPI {
57
57
 
58
58
  const queryParameters: any = {};
59
59
 
60
- if (requestParameters.queryId !== undefined) {
61
- queryParameters['queryId'] = requestParameters.queryId;
62
- }
63
-
64
60
  if (requestParameters.variables !== undefined) {
65
61
  queryParameters['variables'] = requestParameters.variables;
66
62
  }
@@ -104,7 +100,7 @@ export class UserListApi extends runtime.BaseAPI {
104
100
  }
105
101
  }
106
102
  const response = await this.request({
107
- path: `/graphql/djdTXDIk2qhd4OStqlUFeQ/Followers`,
103
+ path: `/graphql/{pathQueryId}/Followers`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
108
104
  method: 'GET',
109
105
  headers: headerParameters,
110
106
  query: queryParameters,
@@ -125,8 +121,8 @@ export class UserListApi extends runtime.BaseAPI {
125
121
  * get user list of following
126
122
  */
127
123
  async getFollowingRaw(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FollowResponse>> {
128
- if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
129
- throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getFollowing.');
124
+ if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
125
+ throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowing.');
130
126
  }
131
127
 
132
128
  if (requestParameters.variables === null || requestParameters.variables === undefined) {
@@ -139,10 +135,6 @@ export class UserListApi extends runtime.BaseAPI {
139
135
 
140
136
  const queryParameters: any = {};
141
137
 
142
- if (requestParameters.queryId !== undefined) {
143
- queryParameters['queryId'] = requestParameters.queryId;
144
- }
145
-
146
138
  if (requestParameters.variables !== undefined) {
147
139
  queryParameters['variables'] = requestParameters.variables;
148
140
  }
@@ -186,7 +178,7 @@ export class UserListApi extends runtime.BaseAPI {
186
178
  }
187
179
  }
188
180
  const response = await this.request({
189
- path: `/graphql/IWP6Zt14sARO29lJT35bBw/Following`,
181
+ path: `/graphql/{pathQueryId}/Following`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
190
182
  method: 'GET',
191
183
  headers: headerParameters,
192
184
  query: queryParameters,
@@ -19,6 +19,12 @@ import {
19
19
  MediaFromJSONTyped,
20
20
  MediaToJSON,
21
21
  } from './Media';
22
+ import type { Url } from './Url';
23
+ import {
24
+ UrlFromJSON,
25
+ UrlFromJSONTyped,
26
+ UrlToJSON,
27
+ } from './Url';
22
28
 
23
29
  /**
24
30
  *
@@ -46,10 +52,10 @@ export interface Entities {
46
52
  symbols: Array<object>;
47
53
  /**
48
54
  *
49
- * @type {Array<object>}
55
+ * @type {Array<Url>}
50
56
  * @memberof Entities
51
57
  */
52
- urls: Array<object>;
58
+ urls: Array<Url>;
53
59
  /**
54
60
  *
55
61
  * @type {Array<object>}
@@ -84,7 +90,7 @@ export function EntitiesFromJSONTyped(json: any, ignoreDiscriminator: boolean):
84
90
  'hashtags': json['hashtags'],
85
91
  'media': !exists(json, 'media') ? undefined : ((json['media'] as Array<any>).map(MediaFromJSON)),
86
92
  'symbols': json['symbols'],
87
- 'urls': json['urls'],
93
+ 'urls': ((json['urls'] as Array<any>).map(UrlFromJSON)),
88
94
  'userMentions': json['user_mentions'],
89
95
  };
90
96
  }
@@ -101,7 +107,7 @@ export function EntitiesToJSON(value?: Entities | null): any {
101
107
  'hashtags': value.hashtags,
102
108
  'media': value.media === undefined ? undefined : ((value.media as Array<any>).map(MediaToJSON)),
103
109
  'symbols': value.symbols,
104
- 'urls': value.urls,
110
+ 'urls': ((value.urls as Array<any>).map(UrlToJSON)),
105
111
  'user_mentions': value.userMentions,
106
112
  };
107
113
  }
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { PostDeleteTweetRequestVariables } from './PostDeleteTweetRequestVariables';
16
+ import type { PostCreateRetweetRequestVariables } from './PostCreateRetweetRequestVariables';
17
17
  import {
18
- PostDeleteTweetRequestVariablesFromJSON,
19
- PostDeleteTweetRequestVariablesFromJSONTyped,
20
- PostDeleteTweetRequestVariablesToJSON,
21
- } from './PostDeleteTweetRequestVariables';
18
+ PostCreateRetweetRequestVariablesFromJSON,
19
+ PostCreateRetweetRequestVariablesFromJSONTyped,
20
+ PostCreateRetweetRequestVariablesToJSON,
21
+ } from './PostCreateRetweetRequestVariables';
22
22
 
23
23
  /**
24
24
  *
@@ -34,10 +34,10 @@ export interface PostCreateRetweetRequest {
34
34
  queryId: string;
35
35
  /**
36
36
  *
37
- * @type {PostDeleteTweetRequestVariables}
37
+ * @type {PostCreateRetweetRequestVariables}
38
38
  * @memberof PostCreateRetweetRequest
39
39
  */
40
- variables: PostDeleteTweetRequestVariables;
40
+ variables: PostCreateRetweetRequestVariables;
41
41
  }
42
42
 
43
43
  /**
@@ -62,7 +62,7 @@ export function PostCreateRetweetRequestFromJSONTyped(json: any, ignoreDiscrimin
62
62
  return {
63
63
 
64
64
  'queryId': json['queryId'],
65
- 'variables': PostDeleteTweetRequestVariablesFromJSON(json['variables']),
65
+ 'variables': PostCreateRetweetRequestVariablesFromJSON(json['variables']),
66
66
  };
67
67
  }
68
68
 
@@ -76,7 +76,7 @@ export function PostCreateRetweetRequestToJSON(value?: PostCreateRetweetRequest
76
76
  return {
77
77
 
78
78
  'queryId': value.queryId,
79
- 'variables': PostDeleteTweetRequestVariablesToJSON(value.variables),
79
+ 'variables': PostCreateRetweetRequestVariablesToJSON(value.variables),
80
80
  };
81
81
  }
82
82
 
@@ -16,27 +16,27 @@ import { exists, mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface PostDeleteTweetRequestVariables
19
+ * @interface PostCreateRetweetRequestVariables
20
20
  */
21
- export interface PostDeleteTweetRequestVariables {
21
+ export interface PostCreateRetweetRequestVariables {
22
22
  /**
23
23
  *
24
24
  * @type {boolean}
25
- * @memberof PostDeleteTweetRequestVariables
25
+ * @memberof PostCreateRetweetRequestVariables
26
26
  */
27
27
  darkRequest: boolean;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof PostDeleteTweetRequestVariables
31
+ * @memberof PostCreateRetweetRequestVariables
32
32
  */
33
33
  tweetId: string;
34
34
  }
35
35
 
36
36
  /**
37
- * Check if a given object implements the PostDeleteTweetRequestVariables interface.
37
+ * Check if a given object implements the PostCreateRetweetRequestVariables interface.
38
38
  */
39
- export function instanceOfPostDeleteTweetRequestVariables(value: object): boolean {
39
+ export function instanceOfPostCreateRetweetRequestVariables(value: object): boolean {
40
40
  let isInstance = true;
41
41
  isInstance = isInstance && "darkRequest" in value;
42
42
  isInstance = isInstance && "tweetId" in value;
@@ -44,11 +44,11 @@ export function instanceOfPostDeleteTweetRequestVariables(value: object): boolea
44
44
  return isInstance;
45
45
  }
46
46
 
47
- export function PostDeleteTweetRequestVariablesFromJSON(json: any): PostDeleteTweetRequestVariables {
48
- return PostDeleteTweetRequestVariablesFromJSONTyped(json, false);
47
+ export function PostCreateRetweetRequestVariablesFromJSON(json: any): PostCreateRetweetRequestVariables {
48
+ return PostCreateRetweetRequestVariablesFromJSONTyped(json, false);
49
49
  }
50
50
 
51
- export function PostDeleteTweetRequestVariablesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDeleteTweetRequestVariables {
51
+ export function PostCreateRetweetRequestVariablesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCreateRetweetRequestVariables {
52
52
  if ((json === undefined) || (json === null)) {
53
53
  return json;
54
54
  }
@@ -59,7 +59,7 @@ export function PostDeleteTweetRequestVariablesFromJSONTyped(json: any, ignoreDi
59
59
  };
60
60
  }
61
61
 
62
- export function PostDeleteTweetRequestVariablesToJSON(value?: PostDeleteTweetRequestVariables | null): any {
62
+ export function PostCreateRetweetRequestVariablesToJSON(value?: PostCreateRetweetRequestVariables | null): any {
63
63
  if (value === undefined) {
64
64
  return undefined;
65
65
  }
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { PostDeleteTweetRequestVariables } from './PostDeleteTweetRequestVariables';
16
+ import type { PostCreateRetweetRequestVariables } from './PostCreateRetweetRequestVariables';
17
17
  import {
18
- PostDeleteTweetRequestVariablesFromJSON,
19
- PostDeleteTweetRequestVariablesFromJSONTyped,
20
- PostDeleteTweetRequestVariablesToJSON,
21
- } from './PostDeleteTweetRequestVariables';
18
+ PostCreateRetweetRequestVariablesFromJSON,
19
+ PostCreateRetweetRequestVariablesFromJSONTyped,
20
+ PostCreateRetweetRequestVariablesToJSON,
21
+ } from './PostCreateRetweetRequestVariables';
22
22
 
23
23
  /**
24
24
  *
@@ -34,10 +34,10 @@ export interface PostDeleteTweetRequest {
34
34
  queryId: string;
35
35
  /**
36
36
  *
37
- * @type {PostDeleteTweetRequestVariables}
37
+ * @type {PostCreateRetweetRequestVariables}
38
38
  * @memberof PostDeleteTweetRequest
39
39
  */
40
- variables: PostDeleteTweetRequestVariables;
40
+ variables: PostCreateRetweetRequestVariables;
41
41
  }
42
42
 
43
43
  /**
@@ -62,7 +62,7 @@ export function PostDeleteTweetRequestFromJSONTyped(json: any, ignoreDiscriminat
62
62
  return {
63
63
 
64
64
  'queryId': json['queryId'],
65
- 'variables': PostDeleteTweetRequestVariablesFromJSON(json['variables']),
65
+ 'variables': PostCreateRetweetRequestVariablesFromJSON(json['variables']),
66
66
  };
67
67
  }
68
68
 
@@ -76,7 +76,7 @@ export function PostDeleteTweetRequestToJSON(value?: PostDeleteTweetRequest | nu
76
76
  return {
77
77
 
78
78
  'queryId': value.queryId,
79
- 'variables': PostDeleteTweetRequestVariablesToJSON(value.variables),
79
+ 'variables': PostCreateRetweetRequestVariablesToJSON(value.variables),
80
80
  };
81
81
  }
82
82
 
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { PostDeleteTweetRequestVariables } from './PostDeleteTweetRequestVariables';
16
+ import type { PostCreateRetweetRequestVariables } from './PostCreateRetweetRequestVariables';
17
17
  import {
18
- PostDeleteTweetRequestVariablesFromJSON,
19
- PostDeleteTweetRequestVariablesFromJSONTyped,
20
- PostDeleteTweetRequestVariablesToJSON,
21
- } from './PostDeleteTweetRequestVariables';
18
+ PostCreateRetweetRequestVariablesFromJSON,
19
+ PostCreateRetweetRequestVariablesFromJSONTyped,
20
+ PostCreateRetweetRequestVariablesToJSON,
21
+ } from './PostCreateRetweetRequestVariables';
22
22
 
23
23
  /**
24
24
  *
@@ -34,10 +34,10 @@ export interface PostFavoriteTweetRequest {
34
34
  queryId: string;
35
35
  /**
36
36
  *
37
- * @type {PostDeleteTweetRequestVariables}
37
+ * @type {PostCreateRetweetRequestVariables}
38
38
  * @memberof PostFavoriteTweetRequest
39
39
  */
40
- variables: PostDeleteTweetRequestVariables;
40
+ variables: PostCreateRetweetRequestVariables;
41
41
  }
42
42
 
43
43
  /**
@@ -62,7 +62,7 @@ export function PostFavoriteTweetRequestFromJSONTyped(json: any, ignoreDiscrimin
62
62
  return {
63
63
 
64
64
  'queryId': json['queryId'],
65
- 'variables': PostDeleteTweetRequestVariablesFromJSON(json['variables']),
65
+ 'variables': PostCreateRetweetRequestVariablesFromJSON(json['variables']),
66
66
  };
67
67
  }
68
68
 
@@ -76,7 +76,7 @@ export function PostFavoriteTweetRequestToJSON(value?: PostFavoriteTweetRequest
76
76
  return {
77
77
 
78
78
  'queryId': value.queryId,
79
- 'variables': PostDeleteTweetRequestVariablesToJSON(value.variables),
79
+ 'variables': PostCreateRetweetRequestVariablesToJSON(value.variables),
80
80
  };
81
81
  }
82
82
 
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { PostDeleteTweetRequestVariables } from './PostDeleteTweetRequestVariables';
16
+ import type { PostCreateRetweetRequestVariables } from './PostCreateRetweetRequestVariables';
17
17
  import {
18
- PostDeleteTweetRequestVariablesFromJSON,
19
- PostDeleteTweetRequestVariablesFromJSONTyped,
20
- PostDeleteTweetRequestVariablesToJSON,
21
- } from './PostDeleteTweetRequestVariables';
18
+ PostCreateRetweetRequestVariablesFromJSON,
19
+ PostCreateRetweetRequestVariablesFromJSONTyped,
20
+ PostCreateRetweetRequestVariablesToJSON,
21
+ } from './PostCreateRetweetRequestVariables';
22
22
 
23
23
  /**
24
24
  *
@@ -34,10 +34,10 @@ export interface PostUnfavoriteTweetRequest {
34
34
  queryId: string;
35
35
  /**
36
36
  *
37
- * @type {PostDeleteTweetRequestVariables}
37
+ * @type {PostCreateRetweetRequestVariables}
38
38
  * @memberof PostUnfavoriteTweetRequest
39
39
  */
40
- variables: PostDeleteTweetRequestVariables;
40
+ variables: PostCreateRetweetRequestVariables;
41
41
  }
42
42
 
43
43
  /**
@@ -62,7 +62,7 @@ export function PostUnfavoriteTweetRequestFromJSONTyped(json: any, ignoreDiscrim
62
62
  return {
63
63
 
64
64
  'queryId': json['queryId'],
65
- 'variables': PostDeleteTweetRequestVariablesFromJSON(json['variables']),
65
+ 'variables': PostCreateRetweetRequestVariablesFromJSON(json['variables']),
66
66
  };
67
67
  }
68
68
 
@@ -76,7 +76,7 @@ export function PostUnfavoriteTweetRequestToJSON(value?: PostUnfavoriteTweetRequ
76
76
  return {
77
77
 
78
78
  'queryId': value.queryId,
79
- 'variables': PostDeleteTweetRequestVariablesToJSON(value.variables),
79
+ 'variables': PostCreateRetweetRequestVariablesToJSON(value.variables),
80
80
  };
81
81
  }
82
82
 
@@ -19,6 +19,12 @@ import {
19
19
  ItemResultFromJSONTyped,
20
20
  ItemResultToJSON,
21
21
  } from './ItemResult';
22
+ import type { TweetCard } from './TweetCard';
23
+ import {
24
+ TweetCardFromJSON,
25
+ TweetCardFromJSONTyped,
26
+ TweetCardToJSON,
27
+ } from './TweetCard';
22
28
  import type { TweetEditControl } from './TweetEditControl';
23
29
  import {
24
30
  TweetEditControlFromJSON,
@@ -68,6 +74,12 @@ export interface Tweet {
68
74
  * @memberof Tweet
69
75
  */
70
76
  typename?: TypeName;
77
+ /**
78
+ *
79
+ * @type {TweetCard}
80
+ * @memberof Tweet
81
+ */
82
+ card?: TweetCard;
71
83
  /**
72
84
  *
73
85
  * @type {UserResultCore}
@@ -151,6 +163,7 @@ export function TweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Twe
151
163
  return {
152
164
 
153
165
  'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
166
+ 'card': !exists(json, 'card') ? undefined : TweetCardFromJSON(json['card']),
154
167
  'core': UserResultCoreFromJSON(json['core']),
155
168
  'editControl': TweetEditControlFromJSON(json['edit_control']),
156
169
  'editPrespective': TweetEditPrespectiveFromJSON(json['edit_prespective']),
@@ -173,6 +186,7 @@ export function TweetToJSON(value?: Tweet | null): any {
173
186
  return {
174
187
 
175
188
  '__typename': TypeNameToJSON(value.typename),
189
+ 'card': TweetCardToJSON(value.card),
176
190
  'core': UserResultCoreToJSON(value.core),
177
191
  'edit_control': TweetEditControlToJSON(value.editControl),
178
192
  'edit_prespective': TweetEditPrespectiveToJSON(value.editPrespective),
@@ -0,0 +1,80 @@
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 { TweetCardLegacy } from './TweetCardLegacy';
17
+ import {
18
+ TweetCardLegacyFromJSON,
19
+ TweetCardLegacyFromJSONTyped,
20
+ TweetCardLegacyToJSON,
21
+ } from './TweetCardLegacy';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetCard
27
+ */
28
+ export interface TweetCard {
29
+ /**
30
+ *
31
+ * @type {TweetCardLegacy}
32
+ * @memberof TweetCard
33
+ */
34
+ legacy?: TweetCardLegacy;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TweetCard
39
+ */
40
+ restId?: string;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the TweetCard interface.
45
+ */
46
+ export function instanceOfTweetCard(value: object): boolean {
47
+ let isInstance = true;
48
+
49
+ return isInstance;
50
+ }
51
+
52
+ export function TweetCardFromJSON(json: any): TweetCard {
53
+ return TweetCardFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function TweetCardFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetCard {
57
+ if ((json === undefined) || (json === null)) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'legacy': !exists(json, 'legacy') ? undefined : TweetCardLegacyFromJSON(json['legacy']),
63
+ 'restId': !exists(json, 'rest_id') ? undefined : json['rest_id'],
64
+ };
65
+ }
66
+
67
+ export function TweetCardToJSON(value?: TweetCard | null): any {
68
+ if (value === undefined) {
69
+ return undefined;
70
+ }
71
+ if (value === null) {
72
+ return null;
73
+ }
74
+ return {
75
+
76
+ 'legacy': TweetCardLegacyToJSON(value.legacy),
77
+ 'rest_id': value.restId,
78
+ };
79
+ }
80
+
@@ -0,0 +1,91 @@
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 { TweetCardLegacyBindingValuesInner } from './TweetCardLegacyBindingValuesInner';
17
+ import {
18
+ TweetCardLegacyBindingValuesInnerFromJSON,
19
+ TweetCardLegacyBindingValuesInnerFromJSONTyped,
20
+ TweetCardLegacyBindingValuesInnerToJSON,
21
+ } from './TweetCardLegacyBindingValuesInner';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetCardLegacy
27
+ */
28
+ export interface TweetCardLegacy {
29
+ /**
30
+ *
31
+ * @type {Array<TweetCardLegacyBindingValuesInner>}
32
+ * @memberof TweetCardLegacy
33
+ */
34
+ bindingValues: Array<TweetCardLegacyBindingValuesInner>;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TweetCardLegacy
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TweetCardLegacy
45
+ */
46
+ url: string;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the TweetCardLegacy interface.
51
+ */
52
+ export function instanceOfTweetCardLegacy(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "bindingValues" in value;
55
+ isInstance = isInstance && "name" in value;
56
+ isInstance = isInstance && "url" in value;
57
+
58
+ return isInstance;
59
+ }
60
+
61
+ export function TweetCardLegacyFromJSON(json: any): TweetCardLegacy {
62
+ return TweetCardLegacyFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function TweetCardLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetCardLegacy {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'bindingValues': ((json['binding_values'] as Array<any>).map(TweetCardLegacyBindingValuesInnerFromJSON)),
72
+ 'name': json['name'],
73
+ 'url': json['url'],
74
+ };
75
+ }
76
+
77
+ export function TweetCardLegacyToJSON(value?: TweetCardLegacy | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'binding_values': ((value.bindingValues as Array<any>).map(TweetCardLegacyBindingValuesInnerToJSON)),
87
+ 'name': value.name,
88
+ 'url': value.url,
89
+ };
90
+ }
91
+
@@ -0,0 +1,82 @@
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 { TweetCardLegacyBindingValuesInnerValue } from './TweetCardLegacyBindingValuesInnerValue';
17
+ import {
18
+ TweetCardLegacyBindingValuesInnerValueFromJSON,
19
+ TweetCardLegacyBindingValuesInnerValueFromJSONTyped,
20
+ TweetCardLegacyBindingValuesInnerValueToJSON,
21
+ } from './TweetCardLegacyBindingValuesInnerValue';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TweetCardLegacyBindingValuesInner
27
+ */
28
+ export interface TweetCardLegacyBindingValuesInner {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TweetCardLegacyBindingValuesInner
33
+ */
34
+ key: string;
35
+ /**
36
+ *
37
+ * @type {TweetCardLegacyBindingValuesInnerValue}
38
+ * @memberof TweetCardLegacyBindingValuesInner
39
+ */
40
+ value: TweetCardLegacyBindingValuesInnerValue;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the TweetCardLegacyBindingValuesInner interface.
45
+ */
46
+ export function instanceOfTweetCardLegacyBindingValuesInner(value: object): boolean {
47
+ let isInstance = true;
48
+ isInstance = isInstance && "key" in value;
49
+ isInstance = isInstance && "value" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function TweetCardLegacyBindingValuesInnerFromJSON(json: any): TweetCardLegacyBindingValuesInner {
55
+ return TweetCardLegacyBindingValuesInnerFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function TweetCardLegacyBindingValuesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetCardLegacyBindingValuesInner {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'key': json['key'],
65
+ 'value': TweetCardLegacyBindingValuesInnerValueFromJSON(json['value']),
66
+ };
67
+ }
68
+
69
+ export function TweetCardLegacyBindingValuesInnerToJSON(value?: TweetCardLegacyBindingValuesInner | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'key': value.key,
79
+ 'value': TweetCardLegacyBindingValuesInnerValueToJSON(value.value),
80
+ };
81
+ }
82
+