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
@@ -136,11 +136,92 @@ info:
136
136
  version: 0.0.1
137
137
  openapi: 3.0.3
138
138
  paths:
139
- /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
139
+ /graphql/{pathQueryId}/CreateRetweet:
140
+ post:
141
+ description: create Retweet
142
+ operationId: postCreateRetweet
143
+ parameters:
144
+ - in: path
145
+ name: pathQueryId
146
+ required: true
147
+ schema:
148
+ default: ojPdsZsimiJrUGLR1sjUtA
149
+ example: ojPdsZsimiJrUGLR1sjUtA
150
+ type: string
151
+ requestBody:
152
+ content:
153
+ application/json:
154
+ schema:
155
+ properties:
156
+ queryId:
157
+ default: ojPdsZsimiJrUGLR1sjUtA
158
+ example: ojPdsZsimiJrUGLR1sjUtA
159
+ type: string
160
+ variables:
161
+ properties:
162
+ dark_request:
163
+ default: false
164
+ example: false
165
+ type: boolean
166
+ tweet_id:
167
+ default: '1349129669258448897'
168
+ example: '1349129669258448897'
169
+ type: string
170
+ required:
171
+ - tweet_id
172
+ - dark_request
173
+ type: object
174
+ required:
175
+ - queryId
176
+ - variables
177
+ description: body
178
+ required: true
179
+ responses:
180
+ '200':
181
+ content:
182
+ application/json:
183
+ schema:
184
+ $ref: '#/components/schemas/CreateRetweetResponse'
185
+ description: Successful operation
186
+ headers:
187
+ x-connection-hash:
188
+ schema:
189
+ type: string
190
+ x-rate-limit-limit:
191
+ schema:
192
+ type: integer
193
+ x-rate-limit-remaining:
194
+ schema:
195
+ type: integer
196
+ x-rate-limit-reset:
197
+ schema:
198
+ type: integer
199
+ x-response-time:
200
+ schema:
201
+ type: integer
202
+ x-tfe-preserve-body:
203
+ schema:
204
+ type: boolean
205
+ x-transaction-id:
206
+ schema:
207
+ type: string
208
+ x-twitter-response-tags:
209
+ schema:
210
+ type: string
211
+ tags:
212
+ - post
213
+ /graphql/{pathQueryId}/CreateTweet:
140
214
  post:
141
215
  description: create Tweet
142
216
  operationId: postCreateTweet
143
- parameters: []
217
+ parameters:
218
+ - in: path
219
+ name: pathQueryId
220
+ required: true
221
+ schema:
222
+ default: 1RyAhNwby-gzGCRVsMxKbQ
223
+ example: 1RyAhNwby-gzGCRVsMxKbQ
224
+ type: string
144
225
  requestBody:
145
226
  content:
146
227
  application/json:
@@ -323,86 +404,26 @@ paths:
323
404
  type: string
324
405
  tags:
325
406
  - post
326
- /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
407
+ /graphql/{pathQueryId}/DeleteRetweet:
327
408
  post:
328
409
  description: delete Retweet
329
- operationId: postDeleteTweet
330
- parameters: []
331
- requestBody:
332
- content:
333
- application/json:
334
- schema:
335
- properties:
336
- queryId:
337
- default: VaenaVgh5q5ih7kvyVjgtg
338
- example: VaenaVgh5q5ih7kvyVjgtg
339
- type: string
340
- variables:
341
- properties:
342
- dark_request:
343
- default: false
344
- example: false
345
- type: boolean
346
- tweet_id:
347
- default: '1349129669258448897'
348
- example: '1349129669258448897'
349
- type: string
350
- required:
351
- - tweet_id
352
- - dark_request
353
- type: object
354
- required:
355
- - queryId
356
- - variables
357
- description: body
410
+ operationId: postDeleteRetweet
411
+ parameters:
412
+ - in: path
413
+ name: pathQueryId
358
414
  required: true
359
- responses:
360
- '200':
361
- content:
362
- application/json:
363
- schema:
364
- $ref: '#/components/schemas/DeleteTweetResponse'
365
- description: Successful operation
366
- headers:
367
- x-connection-hash:
368
- schema:
369
- type: string
370
- x-rate-limit-limit:
371
- schema:
372
- type: integer
373
- x-rate-limit-remaining:
374
- schema:
375
- type: integer
376
- x-rate-limit-reset:
377
- schema:
378
- type: integer
379
- x-response-time:
380
- schema:
381
- type: integer
382
- x-tfe-preserve-body:
383
- schema:
384
- type: boolean
385
- x-transaction-id:
386
- schema:
387
- type: string
388
- x-twitter-response-tags:
389
- schema:
390
- type: string
391
- tags:
392
- - post
393
- /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
394
- post:
395
- description: unfavorite Tweet
396
- operationId: postUnfavoriteTweet
397
- parameters: []
415
+ schema:
416
+ default: iQtK4dl5hBmXewYZuEOKVw
417
+ example: iQtK4dl5hBmXewYZuEOKVw
418
+ type: string
398
419
  requestBody:
399
420
  content:
400
421
  application/json:
401
422
  schema:
402
423
  properties:
403
424
  queryId:
404
- default: ZYKSe-w7KEslx3JhSIk5LA
405
- example: ZYKSe-w7KEslx3JhSIk5LA
425
+ default: iQtK4dl5hBmXewYZuEOKVw
426
+ example: iQtK4dl5hBmXewYZuEOKVw
406
427
  type: string
407
428
  variables:
408
429
  properties:
@@ -410,12 +431,12 @@ paths:
410
431
  default: false
411
432
  example: false
412
433
  type: boolean
413
- tweet_id:
434
+ source_tweet_id:
414
435
  default: '1349129669258448897'
415
436
  example: '1349129669258448897'
416
437
  type: string
417
438
  required:
418
- - tweet_id
439
+ - source_tweet_id
419
440
  - dark_request
420
441
  type: object
421
442
  required:
@@ -428,7 +449,7 @@ paths:
428
449
  content:
429
450
  application/json:
430
451
  schema:
431
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
452
+ $ref: '#/components/schemas/DeleteRetweetResponse'
432
453
  description: Successful operation
433
454
  headers:
434
455
  x-connection-hash:
@@ -457,19 +478,26 @@ paths:
457
478
  type: string
458
479
  tags:
459
480
  - post
460
- /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
481
+ /graphql/{pathQueryId}/DeleteTweet:
461
482
  post:
462
483
  description: delete Retweet
463
- operationId: postDeleteRetweet
464
- parameters: []
484
+ operationId: postDeleteTweet
485
+ parameters:
486
+ - in: path
487
+ name: pathQueryId
488
+ required: true
489
+ schema:
490
+ default: VaenaVgh5q5ih7kvyVjgtg
491
+ example: VaenaVgh5q5ih7kvyVjgtg
492
+ type: string
465
493
  requestBody:
466
494
  content:
467
495
  application/json:
468
496
  schema:
469
497
  properties:
470
498
  queryId:
471
- default: iQtK4dl5hBmXewYZuEOKVw
472
- example: iQtK4dl5hBmXewYZuEOKVw
499
+ default: VaenaVgh5q5ih7kvyVjgtg
500
+ example: VaenaVgh5q5ih7kvyVjgtg
473
501
  type: string
474
502
  variables:
475
503
  properties:
@@ -477,12 +505,12 @@ paths:
477
505
  default: false
478
506
  example: false
479
507
  type: boolean
480
- source_tweet_id:
508
+ tweet_id:
481
509
  default: '1349129669258448897'
482
510
  example: '1349129669258448897'
483
511
  type: string
484
512
  required:
485
- - source_tweet_id
513
+ - tweet_id
486
514
  - dark_request
487
515
  type: object
488
516
  required:
@@ -495,7 +523,7 @@ paths:
495
523
  content:
496
524
  application/json:
497
525
  schema:
498
- $ref: '#/components/schemas/DeleteRetweetResponse'
526
+ $ref: '#/components/schemas/DeleteTweetResponse'
499
527
  description: Successful operation
500
528
  headers:
501
529
  x-connection-hash:
@@ -524,11 +552,18 @@ paths:
524
552
  type: string
525
553
  tags:
526
554
  - post
527
- /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
555
+ /graphql/{pathQueryId}/FavoriteTweet:
528
556
  post:
529
557
  description: favorite Tweet
530
558
  operationId: postFavoriteTweet
531
- parameters: []
559
+ parameters:
560
+ - in: path
561
+ name: pathQueryId
562
+ required: true
563
+ schema:
564
+ default: lI07N6Otwv1PhnEgXILM7A
565
+ example: lI07N6Otwv1PhnEgXILM7A
566
+ type: string
532
567
  requestBody:
533
568
  content:
534
569
  application/json:
@@ -591,19 +626,26 @@ paths:
591
626
  type: string
592
627
  tags:
593
628
  - post
594
- /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
629
+ /graphql/{pathQueryId}/UnfavoriteTweet:
595
630
  post:
596
- description: create Retweet
597
- operationId: postCreateRetweet
598
- parameters: []
631
+ description: unfavorite Tweet
632
+ operationId: postUnfavoriteTweet
633
+ parameters:
634
+ - in: path
635
+ name: pathQueryId
636
+ required: true
637
+ schema:
638
+ default: ZYKSe-w7KEslx3JhSIk5LA
639
+ example: ZYKSe-w7KEslx3JhSIk5LA
640
+ type: string
599
641
  requestBody:
600
642
  content:
601
643
  application/json:
602
644
  schema:
603
645
  properties:
604
646
  queryId:
605
- default: ojPdsZsimiJrUGLR1sjUtA
606
- example: ojPdsZsimiJrUGLR1sjUtA
647
+ default: ZYKSe-w7KEslx3JhSIk5LA
648
+ example: ZYKSe-w7KEslx3JhSIk5LA
607
649
  type: string
608
650
  variables:
609
651
  properties:
@@ -629,7 +671,7 @@ paths:
629
671
  content:
630
672
  application/json:
631
673
  schema:
632
- $ref: '#/components/schemas/CreateRetweetResponse'
674
+ $ref: '#/components/schemas/UnfavoriteTweetResponseData'
633
675
  description: Successful operation
634
676
  headers:
635
677
  x-connection-hash:
@@ -63,17 +63,17 @@ info:
63
63
  version: 0.0.1
64
64
  openapi: 3.0.3
65
65
  paths:
66
- /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
66
+ /graphql/{pathQueryId}/ProfileSpotlightsQuery:
67
67
  get:
68
68
  description: get user by screen name
69
69
  operationId: getProfileSpotlightsQuery
70
70
  parameters:
71
- - in: query
72
- name: queryId
71
+ - in: path
72
+ name: pathQueryId
73
73
  required: true
74
74
  schema:
75
- default: '"9zwVLJ48lmVUk8u_Gh9DmA"'
76
- example: '"9zwVLJ48lmVUk8u_Gh9DmA"'
75
+ default: 9zwVLJ48lmVUk8u_Gh9DmA
76
+ example: 9zwVLJ48lmVUk8u_Gh9DmA
77
77
  type: string
78
78
  - in: query
79
79
  name: variables
@@ -47,24 +47,26 @@ info:
47
47
  version: 0.0.1
48
48
  openapi: 3.0.3
49
49
  paths:
50
- /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
50
+ /graphql/{pathQueryId}/HomeLatestTimeline:
51
51
  get:
52
52
  description: get tweet list of timeline
53
- operationId: getListLatestTweetsTimeline
53
+ operationId: getHomeLatestTimeline
54
54
  parameters:
55
- - in: query
56
- name: queryId
55
+ - in: path
56
+ name: pathQueryId
57
57
  required: true
58
58
  schema:
59
- default: '"2TemLyqrMpTeAmysdbnVqw"'
60
- example: '"2TemLyqrMpTeAmysdbnVqw"'
59
+ default: zhX91JE87mWvfprhYE97xA
60
+ example: zhX91JE87mWvfprhYE97xA
61
61
  type: string
62
62
  - in: query
63
63
  name: variables
64
64
  required: true
65
65
  schema:
66
- default: '{"listId": "53044119", "count": 20}'
67
- example: '{"listId": "53044119", "count": 20}'
66
+ default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
67
+ true, "requestContext": "launch"}'
68
+ example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
69
+ true, "requestContext": "launch"}'
68
70
  type: string
69
71
  - in: query
70
72
  name: features
@@ -98,7 +100,7 @@ paths:
98
100
  content:
99
101
  application/json:
100
102
  schema:
101
- $ref: '#/components/schemas/ListTweetsTimelineResponse'
103
+ $ref: '#/components/schemas/TimelineResponse'
102
104
  description: Successful operation
103
105
  headers:
104
106
  x-connection-hash:
@@ -127,17 +129,17 @@ paths:
127
129
  type: string
128
130
  tags:
129
131
  - tweet
130
- /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
132
+ /graphql/{pathQueryId}/HomeTimeline:
131
133
  get:
132
134
  description: get tweet list of timeline
133
135
  operationId: getHomeTimeline
134
136
  parameters:
135
- - in: query
136
- name: queryId
137
+ - in: path
138
+ name: pathQueryId
137
139
  required: true
138
140
  schema:
139
- default: '"HCosKfLNW1AcOo3la3mMgg"'
140
- example: '"HCosKfLNW1AcOo3la3mMgg"'
141
+ default: HCosKfLNW1AcOo3la3mMgg
142
+ example: HCosKfLNW1AcOo3la3mMgg
141
143
  type: string
142
144
  - in: query
143
145
  name: variables
@@ -209,26 +211,24 @@ paths:
209
211
  type: string
210
212
  tags:
211
213
  - tweet
212
- /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
214
+ /graphql/{pathQueryId}/ListLatestTweetsTimeline:
213
215
  get:
214
216
  description: get tweet list of timeline
215
- operationId: getHomeLatestTimeline
217
+ operationId: getListLatestTweetsTimeline
216
218
  parameters:
217
- - in: query
218
- name: queryId
219
+ - in: path
220
+ name: pathQueryId
219
221
  required: true
220
222
  schema:
221
- default: '"zhX91JE87mWvfprhYE97xA"'
222
- example: '"zhX91JE87mWvfprhYE97xA"'
223
+ default: 2TemLyqrMpTeAmysdbnVqw
224
+ example: 2TemLyqrMpTeAmysdbnVqw
223
225
  type: string
224
226
  - in: query
225
227
  name: variables
226
228
  required: true
227
229
  schema:
228
- default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
229
- true, "requestContext": "launch"}'
230
- example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
231
- true, "requestContext": "launch"}'
230
+ default: '{"listId": "53044119", "count": 20}'
231
+ example: '{"listId": "53044119", "count": 20}'
232
232
  type: string
233
233
  - in: query
234
234
  name: features
@@ -262,7 +262,7 @@ paths:
262
262
  content:
263
263
  application/json:
264
264
  schema:
265
- $ref: '#/components/schemas/TimelineResponse'
265
+ $ref: '#/components/schemas/ListTweetsTimelineResponse'
266
266
  description: Successful operation
267
267
  headers:
268
268
  x-connection-hash:
@@ -17,17 +17,17 @@ info:
17
17
  version: 0.0.1
18
18
  openapi: 3.0.3
19
19
  paths:
20
- /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
20
+ /graphql/{pathQueryId}/TweetDetail:
21
21
  get:
22
22
  description: get TweetDetail
23
23
  operationId: getTweetDetail
24
24
  parameters:
25
- - in: query
26
- name: queryId
25
+ - in: path
26
+ name: pathQueryId
27
27
  required: true
28
28
  schema:
29
- default: '"wNNG8DBB8EaXw1lq4vFWGA"'
30
- example: '"wNNG8DBB8EaXw1lq4vFWGA"'
29
+ default: wNNG8DBB8EaXw1lq4vFWGA
30
+ example: wNNG8DBB8EaXw1lq4vFWGA
31
31
  type: string
32
32
  - in: query
33
33
  name: variables
@@ -17,17 +17,17 @@ info:
17
17
  version: 0.0.1
18
18
  openapi: 3.0.3
19
19
  paths:
20
- /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
20
+ /graphql/{pathQueryId}/UserByScreenName:
21
21
  get:
22
22
  description: get user by screen name
23
23
  operationId: getUserByScreenName
24
24
  parameters:
25
- - in: query
26
- name: queryId
25
+ - in: path
26
+ name: pathQueryId
27
27
  required: true
28
28
  schema:
29
- default: '"sLVLhk0bGj3MVFEKTdax1w"'
30
- example: '"sLVLhk0bGj3MVFEKTdax1w"'
29
+ default: sLVLhk0bGj3MVFEKTdax1w
30
+ example: sLVLhk0bGj3MVFEKTdax1w
31
31
  type: string
32
32
  - in: query
33
33
  name: variables
@@ -32,17 +32,17 @@ info:
32
32
  version: 0.0.1
33
33
  openapi: 3.0.3
34
34
  paths:
35
- /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes:
35
+ /graphql/{pathQueryId}/Likes:
36
36
  get:
37
37
  description: get user likes tweets
38
38
  operationId: getLikes
39
39
  parameters:
40
- - in: query
41
- name: queryId
40
+ - in: path
41
+ name: pathQueryId
42
42
  required: true
43
43
  schema:
44
- default: '"5fmEkRT-1AdHqEsbVgehMg"'
45
- example: '"5fmEkRT-1AdHqEsbVgehMg"'
44
+ default: 5fmEkRT-1AdHqEsbVgehMg
45
+ example: 5fmEkRT-1AdHqEsbVgehMg
46
46
  type: string
47
47
  - in: query
48
48
  name: variables
@@ -116,28 +116,28 @@ paths:
116
116
  type: string
117
117
  tags:
118
118
  - tweet
119
- /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
119
+ /graphql/{pathQueryId}/UserMedia:
120
120
  get:
121
- description: get user tweets
122
- operationId: getUserTweets
121
+ description: get user media tweets
122
+ operationId: getUserMedia
123
123
  parameters:
124
- - in: query
125
- name: queryId
124
+ - in: path
125
+ name: pathQueryId
126
126
  required: true
127
127
  schema:
128
- default: '"HuTx74BxAnezK1gWvYY7zg"'
129
- example: '"HuTx74BxAnezK1gWvYY7zg"'
128
+ default: YqiE3JL1KNgf9nSljYdxaA
129
+ example: YqiE3JL1KNgf9nSljYdxaA
130
130
  type: string
131
131
  - in: query
132
132
  name: variables
133
133
  required: true
134
134
  schema:
135
135
  default: '{"userId": "44196397", "count": 40, "includePromotedContent":
136
- true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
137
- "withV2Timeline": true}'
136
+ false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
137
+ true, "withV2Timeline": true}'
138
138
  example: '{"userId": "44196397", "count": 40, "includePromotedContent":
139
- true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
140
- "withV2Timeline": true}'
139
+ false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
140
+ true, "withV2Timeline": true}'
141
141
  type: string
142
142
  - in: query
143
143
  name: features
@@ -200,26 +200,28 @@ paths:
200
200
  type: string
201
201
  tags:
202
202
  - tweet
203
- /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
203
+ /graphql/{pathQueryId}/UserTweets:
204
204
  get:
205
- description: get user replies tweets
206
- operationId: getUserTweetsAndReplies
205
+ description: get user tweets
206
+ operationId: getUserTweets
207
207
  parameters:
208
- - in: query
209
- name: queryId
208
+ - in: path
209
+ name: pathQueryId
210
210
  required: true
211
211
  schema:
212
- default: '"RIWc55YCNyUJ-U3HHGYkdg"'
213
- example: '"RIWc55YCNyUJ-U3HHGYkdg"'
212
+ default: HuTx74BxAnezK1gWvYY7zg
213
+ example: HuTx74BxAnezK1gWvYY7zg
214
214
  type: string
215
215
  - in: query
216
216
  name: variables
217
217
  required: true
218
218
  schema:
219
219
  default: '{"userId": "44196397", "count": 40, "includePromotedContent":
220
- true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
220
+ true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
221
+ "withV2Timeline": true}'
221
222
  example: '{"userId": "44196397", "count": 40, "includePromotedContent":
222
- true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
223
+ true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
224
+ "withV2Timeline": true}'
223
225
  type: string
224
226
  - in: query
225
227
  name: features
@@ -282,28 +284,26 @@ paths:
282
284
  type: string
283
285
  tags:
284
286
  - tweet
285
- /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
287
+ /graphql/{pathQueryId}/UserTweetsAndReplies:
286
288
  get:
287
- description: get user media tweets
288
- operationId: getUserMedia
289
+ description: get user replies tweets
290
+ operationId: getUserTweetsAndReplies
289
291
  parameters:
290
- - in: query
291
- name: queryId
292
+ - in: path
293
+ name: pathQueryId
292
294
  required: true
293
295
  schema:
294
- default: '"YqiE3JL1KNgf9nSljYdxaA"'
295
- example: '"YqiE3JL1KNgf9nSljYdxaA"'
296
+ default: RIWc55YCNyUJ-U3HHGYkdg
297
+ example: RIWc55YCNyUJ-U3HHGYkdg
296
298
  type: string
297
299
  - in: query
298
300
  name: variables
299
301
  required: true
300
302
  schema:
301
303
  default: '{"userId": "44196397", "count": 40, "includePromotedContent":
302
- false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
303
- true, "withV2Timeline": true}'
304
+ true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
304
305
  example: '{"userId": "44196397", "count": 40, "includePromotedContent":
305
- false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
306
- true, "withV2Timeline": true}'
306
+ true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
307
307
  type: string
308
308
  - in: query
309
309
  name: features
@@ -0,0 +1,13 @@
1
+ components:
2
+ parameters:
3
+ queryId:
4
+ in: path
5
+ name: queryId
6
+ required: true
7
+ schema:
8
+ type: string
9
+ info:
10
+ title: Twitter OpenAPI
11
+ version: 0.0.1
12
+ openapi: 3.0.3
13
+ paths: {}