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
@@ -58,15 +58,17 @@ class HookBase:
58
58
 
59
59
 
60
60
  class OpenapiHookBase(HookBase):
61
- def hook(self, value: dict)->dict:
61
+ def hook(self, value: dict) -> dict:
62
62
  return value
63
63
 
64
+
64
65
  class OtherHookBase(HookBase):
65
- def hook(self)->tuple[str, dict]:
66
- return "", {}
66
+ def hook(self) -> tuple[str, dict]:
67
+ return "", {}
68
+
67
69
 
68
70
  class SchemasHookBase(HookBase):
69
- def hook(self, value: dict)->dict:
71
+ def hook(self, value: dict) -> dict:
70
72
  return value
71
73
 
72
74
 
@@ -78,7 +80,7 @@ class RequestHookBase(HookBase):
78
80
  super().__init__()
79
81
  self.split = split
80
82
 
81
- def hook(self, path: str, value: dict)->tuple[str, dict]:
83
+ def hook(self, path: str, value: dict) -> tuple[str, dict]:
82
84
  value["parameters"] = value.get("parameters", [])
83
85
  self.path_name = "/".join(path.split("/")[self.split :])
84
86
  return path, value
@@ -123,7 +125,7 @@ class ReplaceQueryIdPlaceholder(RequestHookBase):
123
125
  def hook(self, path: str, value: dict):
124
126
  path, value = super().hook(path, value)
125
127
  new = self.PLACEHOLDER[self.path_name]["queryId"]
126
- return path.replace(r"{{queryId}}", new), value
128
+ return path.replace(r"{pathQueryId}", new), value
127
129
 
128
130
 
129
131
  class SetResponsesHeader(RequestHookBase):
@@ -140,29 +142,60 @@ class SetResponsesHeader(RequestHookBase):
140
142
  return path, value
141
143
 
142
144
 
145
+ class AddPathQueryIdOnParameters(RequestHookBase):
146
+ def __init__(self, split: str = 1):
147
+ super().__init__(split=split)
148
+
149
+ def hook(self, path: str, value: dict):
150
+ path, value = super().hook(path, value)
151
+ data = self.PLACEHOLDER[self.path_name]
152
+ value["parameters"].append(
153
+ {
154
+ "in": "path",
155
+ "name": "pathQueryId",
156
+ "required": True,
157
+ "schema": {
158
+ "type": "string",
159
+ "default": data["queryId"],
160
+ "example": data["queryId"],
161
+ },
162
+ }
163
+ )
164
+ return path, value
165
+
166
+
143
167
  # OnParameters
144
168
 
145
169
 
146
170
  class AddParametersOnParameters(RequestHookBase):
147
171
  schemaType: str | None
172
+ ignoreKeys: list[str]
148
173
 
149
- def __init__(self, split: str = 1, schemaType: str | None = None):
174
+ def __init__(
175
+ self,
176
+ split: str = 1,
177
+ schemaType: str | None = None,
178
+ ignoreKeys: list[str] | None = None,
179
+ ):
150
180
  super().__init__(split=split)
151
181
  self.schemaType = schemaType
182
+ self.ignoreKeys = ignoreKeys or []
152
183
 
153
184
  def hook(self, path: str, value: dict):
154
185
  path, value = super().hook(path, value)
155
186
  data = self.PLACEHOLDER[self.path_name]
187
+ data = {key: data[key] for key in data.keys() if key not in self.ignoreKeys}
188
+
156
189
  for key in data.keys():
157
190
  if self.schemaType == "string":
158
- example = json.dumps(data[key])
191
+ example = data[key] if type(data[key]) is str else json.dumps(data[key])
159
192
  schema = {
160
193
  "type": "string",
161
194
  "default": example,
162
195
  "example": example,
163
196
  }
164
197
  elif self.schemaType == "object":
165
- example = json.dumps(data[key])
198
+ example = data[key] if type(data[key]) is str else json.dumps(data[key])
166
199
  schema = {
167
200
  "type": "object",
168
201
  "default": example,
@@ -187,30 +220,34 @@ class AddParametersOnParameters(RequestHookBase):
187
220
  class AddParametersOnBody(RequestHookBase):
188
221
  schemaType: str | None
189
222
  contentType: str | None
223
+ ignoreKeys: list[str]
190
224
 
191
225
  def __init__(
192
226
  self,
193
227
  split: str = 1,
194
228
  contentType: str = "application/json",
195
229
  schemaType: str | None = None,
230
+ ignoreKeys: list[str] | None = None,
196
231
  ):
197
232
  super().__init__(split)
198
233
  self.schemaType = schemaType
199
234
  self.contentType = contentType
235
+ self.ignoreKeys = ignoreKeys or []
200
236
 
201
237
  def hook(self, path: str, value: dict):
202
238
  path, value = super().hook(path, value)
203
239
  data = self.PLACEHOLDER[self.path_name]
240
+ data = {key: data[key] for key in data.keys() if key not in self.ignoreKeys}
204
241
 
205
242
  if self.schemaType == "string":
206
- example = json.dumps(data)
243
+ example = data if type(data) is str else json.dumps(data)
207
244
  schema = {
208
245
  "type": "string",
209
246
  "default": example,
210
247
  "example": example,
211
248
  }
212
249
  elif self.schemaType == "object":
213
- example = json.dumps(data)
250
+ example = data if type(data) is str else json.dumps(data)
214
251
  schema = {
215
252
  "type": "object",
216
253
  "default": example,
@@ -240,14 +277,23 @@ class AddParametersOnBody(RequestHookBase):
240
277
 
241
278
  class AddParametersOnContent(RequestHookBase):
242
279
  contentType: str
280
+ ignoreKeys: list[str]
243
281
 
244
- def __init__(self, split: str = 1, contentType: str = "application/json"):
282
+ def __init__(
283
+ self,
284
+ split: str = 1,
285
+ contentType: str = "application/json",
286
+ ignoreKeys: list[str] | None = None,
287
+ ):
245
288
  super().__init__(split=split)
246
289
  self.contentType = contentType
290
+ self.ignoreKeys = ignoreKeys or []
247
291
 
248
292
  def hook(self, path: str, value: dict):
249
293
  path, value = super().hook(path, value)
250
294
  data = self.PLACEHOLDER[self.path_name]
295
+ data = {key: data[key] for key in data.keys() if key not in self.ignoreKeys}
296
+
251
297
  for key in data.keys():
252
298
  value["parameters"].append(
253
299
  {
@@ -257,7 +303,6 @@ class AddParametersOnContent(RequestHookBase):
257
303
  "content": {
258
304
  self.contentType: {
259
305
  "schema": self.placeholder_to_yaml(data[key]),
260
- "required": [i for i in data[key]],
261
306
  }
262
307
  },
263
308
  }
@@ -1,38 +0,0 @@
1
- /**
2
- * Twitter OpenAPI
3
- * Twitter OpenAPI(Swagger) specification
4
- *
5
- * The version of the OpenAPI document: 0.0.1
6
- * Contact: yuki@yuki0311.com
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface PostDeleteTweetRequestVariables
16
- */
17
- export interface PostDeleteTweetRequestVariables {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof PostDeleteTweetRequestVariables
22
- */
23
- darkRequest: boolean;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof PostDeleteTweetRequestVariables
28
- */
29
- tweetId: string;
30
- }
31
- /**
32
- * Check if a given object implements the PostDeleteTweetRequestVariables interface.
33
- */
34
- export declare function instanceOfPostDeleteTweetRequestVariables(value: object): boolean;
35
- export declare function PostDeleteTweetRequestVariablesFromJSON(json: any): PostDeleteTweetRequestVariables;
36
- export declare function PostDeleteTweetRequestVariablesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDeleteTweetRequestVariables;
37
- export declare function PostDeleteTweetRequestVariablesToJSON(value?: PostDeleteTweetRequestVariables | null): any;
38
- //# sourceMappingURL=PostDeleteTweetRequestVariables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostDeleteTweetRequestVariables.d.ts","sourceRoot":"","sources":["../../src/models/PostDeleteTweetRequestVariables.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC5C;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAMhF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,+BAA+B,CAElG;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,+BAA+B,CASrI;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,+BAA+B,GAAG,IAAI,GAAG,GAAG,CAYzG"}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Twitter OpenAPI
6
- * Twitter OpenAPI(Swagger) specification
7
- *
8
- * The version of the OpenAPI document: 0.0.1
9
- * Contact: yuki@yuki0311.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PostDeleteTweetRequestVariablesToJSON = exports.PostDeleteTweetRequestVariablesFromJSONTyped = exports.PostDeleteTweetRequestVariablesFromJSON = exports.instanceOfPostDeleteTweetRequestVariables = void 0;
17
- /**
18
- * Check if a given object implements the PostDeleteTweetRequestVariables interface.
19
- */
20
- function instanceOfPostDeleteTweetRequestVariables(value) {
21
- var isInstance = true;
22
- isInstance = isInstance && "darkRequest" in value;
23
- isInstance = isInstance && "tweetId" in value;
24
- return isInstance;
25
- }
26
- exports.instanceOfPostDeleteTweetRequestVariables = instanceOfPostDeleteTweetRequestVariables;
27
- function PostDeleteTweetRequestVariablesFromJSON(json) {
28
- return PostDeleteTweetRequestVariablesFromJSONTyped(json, false);
29
- }
30
- exports.PostDeleteTweetRequestVariablesFromJSON = PostDeleteTweetRequestVariablesFromJSON;
31
- function PostDeleteTweetRequestVariablesFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'darkRequest': json['dark_request'],
37
- 'tweetId': json['tweet_id'],
38
- };
39
- }
40
- exports.PostDeleteTweetRequestVariablesFromJSONTyped = PostDeleteTweetRequestVariablesFromJSONTyped;
41
- function PostDeleteTweetRequestVariablesToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'dark_request': value.darkRequest,
50
- 'tweet_id': value.tweetId,
51
- };
52
- }
53
- exports.PostDeleteTweetRequestVariablesToJSON = PostDeleteTweetRequestVariablesToJSON;
54
- //# sourceMappingURL=PostDeleteTweetRequestVariables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PostDeleteTweetRequestVariables.js","sourceRoot":"","sources":["../../src/models/PostDeleteTweetRequestVariables.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuBH;;GAEG;AACH,SAAgB,yCAAyC,CAAC,KAAa;IACnE,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAClD,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAE9C,OAAO,UAAU,CAAC;AACtB,CAAC;AAND,8FAMC;AAED,SAAgB,uCAAuC,CAAC,IAAS;IAC7D,OAAO,4CAA4C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrE,CAAC;AAFD,0FAEC;AAED,SAAgB,4CAA4C,CAAC,IAAS,EAAE,mBAA4B;IAChG,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC;QACnC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC;KAC9B,CAAC;AACN,CAAC;AATD,oGASC;AAED,SAAgB,qCAAqC,CAAC,KAA8C;IAChG,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,cAAc,EAAE,KAAK,CAAC,WAAW;QACjC,UAAU,EAAE,KAAK,CAAC,OAAO;KAC5B,CAAC;AACN,CAAC;AAZD,sFAYC"}
@@ -1,117 +0,0 @@
1
- components:
2
- schemas: {}
3
- securitySchemes:
4
- AuthType:
5
- description: OAuth2Session if you are logged in
6
- in: header
7
- name: x-twitter-auth-type
8
- type: apiKey
9
- CookieAuthToken:
10
- description: HttpOnly cookie
11
- in: cookie
12
- name: auth_token
13
- type: apiKey
14
- CookieCt0:
15
- description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
16
- in: cookie
17
- name: ct0
18
- type: apiKey
19
- CsrfToken:
20
- description: ''
21
- in: header
22
- name: x-csrf-token
23
- type: apiKey
24
- GuestToken:
25
- description: document.cookie.split('; ').find(row => row.startsWith('gt='));
26
- in: header
27
- name: x-guest-token
28
- type: apiKey
29
- info:
30
- contact:
31
- email: yuki@yuki0311.com
32
- description: Twitter OpenAPI(Swagger) specification
33
- license:
34
- name: GNU Affero General Public License v3.
35
- url: https://raw.githubusercontent.com/fa0311/twitter-openapi/main/LICENSE.txt
36
- termsOfService: https://github.com/fa0311
37
- title: Twitter OpenAPI
38
- version: 0.0.1
39
- openapi: 3.0.3
40
- paths:
41
- /1.1/friends/following/list.json:
42
- $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json
43
- /1.1/friendships/create.json:
44
- $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json
45
- /1.1/friendships/destroy.json:
46
- $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json
47
- /1.1/search/typeahead.json:
48
- $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json
49
- /2/search/adaptive.json:
50
- $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json
51
- /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
52
- $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet
53
- /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
54
- $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline
55
- /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes:
56
- $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes
57
- /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
58
- $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery
59
- /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
60
- $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline
61
- /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
62
- $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets
63
- /graphql/IWP6Zt14sARO29lJT35bBw/Following:
64
- $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following
65
- /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
66
- $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies
67
- /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
68
- $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet
69
- /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
70
- $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
71
- /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
72
- $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet
73
- /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers:
74
- $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers
75
- /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
76
- $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet
77
- /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
78
- $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet
79
- /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
80
- $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet
81
- /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
82
- $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
83
- /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
84
- $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks
85
- /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
86
- $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
87
- /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
88
- $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
89
- /other:
90
- $ref: ./paths/other.yaml#/paths/~1other
91
- security:
92
- - CsrfToken: []
93
- - CookieCt0: []
94
- - GuestToken: []
95
- - CookieAuthToken: []
96
- - AuthType: []
97
- servers:
98
- - url: https://twitter.com/i/api
99
- tags:
100
- - description: response User
101
- name: user
102
- - description: response User list
103
- name: user-list
104
- - description: response tweet
105
- name: tweet
106
- - description: post
107
- name: post
108
- - description: legacy APIs get
109
- name: v1.1-get
110
- - description: legacy APIs post
111
- name: v1.1-post
112
- - description: legacy APIs get
113
- name: v2.0-get
114
- - description: legacy APIs post
115
- name: v2.0-post
116
- - description: other
117
- name: other
@@ -1,134 +0,0 @@
1
- components:
2
- schemas:
3
- BookmarksResponse:
4
- properties:
5
- data:
6
- $ref: '#/components/schemas/BookmarksResponseData'
7
- required:
8
- - data
9
- BookmarksResponseData:
10
- properties:
11
- bookmark_timeline_v2:
12
- $ref: '#/components/schemas/BookmarksTimeline'
13
- required:
14
- - bookmark_timeline_v2
15
- BookmarksTimeline:
16
- properties:
17
- timeline:
18
- $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
19
- required:
20
- - timeline
21
- info:
22
- title: Twitter OpenAPI
23
- version: 0.0.1
24
- openapi: 3.0.3
25
- paths:
26
- /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
27
- get:
28
- description: get bookmarks
29
- operationId: getBookmarks
30
- parameters:
31
- - in: header
32
- name: user-agent
33
- required: true
34
- schema:
35
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
36
- like Gecko) Chrome/112.0.0.0 Safari/537.36
37
- description: UserAgent, some APIs may be rejected if changed.
38
- type: string
39
- - in: header
40
- name: authorization
41
- required: true
42
- schema:
43
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
44
- description: It is a constant value and does not need to be changed.
45
- type: string
46
- - in: header
47
- name: x-twitter-active-user
48
- required: true
49
- schema:
50
- default: 'yes'
51
- description: Unknown what this value means.
52
- type: string
53
- - in: header
54
- name: x-twitter-client-language
55
- required: true
56
- schema:
57
- default: en
58
- description: language code.
59
- type: string
60
- - in: query
61
- name: queryId
62
- required: true
63
- schema:
64
- default: '"tmd4ifV8RHltzn8ymGg1aw"'
65
- example: '"tmd4ifV8RHltzn8ymGg1aw"'
66
- type: string
67
- - in: query
68
- name: variables
69
- required: true
70
- schema:
71
- default: '{"count": 20, "includePromotedContent": true}'
72
- example: '{"count": 20, "includePromotedContent": true}'
73
- type: string
74
- - in: query
75
- name: features
76
- required: true
77
- schema:
78
- default: '{"graphql_timeline_v2_bookmark_timeline": true, "blue_business_profile_image_shape_enabled":
79
- true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
80
- false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
81
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
82
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
83
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
84
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
85
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
86
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
87
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
88
- false}'
89
- example: '{"graphql_timeline_v2_bookmark_timeline": true, "blue_business_profile_image_shape_enabled":
90
- true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
91
- false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
92
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
93
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
94
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
95
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
96
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
97
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
98
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
99
- false}'
100
- type: string
101
- responses:
102
- '200':
103
- content:
104
- application/json:
105
- schema:
106
- $ref: '#/components/schemas/BookmarksResponse'
107
- description: Successful operation
108
- headers:
109
- x-connection-hash:
110
- schema:
111
- type: string
112
- x-rate-limit-limit:
113
- schema:
114
- type: integer
115
- x-rate-limit-remaining:
116
- schema:
117
- type: integer
118
- x-rate-limit-reset:
119
- schema:
120
- type: integer
121
- x-response-time:
122
- schema:
123
- type: integer
124
- x-tfe-preserve-body:
125
- schema:
126
- type: boolean
127
- x-transaction-id:
128
- schema:
129
- type: string
130
- x-twitter-response-tags:
131
- schema:
132
- type: string
133
- tags:
134
- - tweet