twitter-openapi-typescript-generated 0.0.5 → 0.0.6

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 (158) hide show
  1. package/.openapi-generator/FILES +6 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +1 -0
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +4 -1
  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 -0
  12. package/dist/apis/TweetApi.d.ts.map +1 -1
  13. package/dist/apis/TweetApi.js +36 -9
  14. package/dist/apis/TweetApi.js.map +1 -1
  15. package/dist/apis/UserApi.d.ts +1 -0
  16. package/dist/apis/UserApi.d.ts.map +1 -1
  17. package/dist/apis/UserApi.js +4 -1
  18. package/dist/apis/UserApi.js.map +1 -1
  19. package/dist/apis/UserListApi.d.ts +2 -0
  20. package/dist/apis/UserListApi.d.ts.map +1 -1
  21. package/dist/apis/UserListApi.js +8 -2
  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/Url.d.ts +50 -0
  68. package/dist/models/Url.d.ts.map +1 -0
  69. package/dist/models/Url.js +60 -0
  70. package/dist/models/Url.js.map +1 -0
  71. package/dist/models/index.d.ts +6 -1
  72. package/dist/models/index.d.ts.map +1 -1
  73. package/dist/models/index.js +6 -1
  74. package/dist/models/index.js.map +1 -1
  75. package/package.json +1 -1
  76. package/src/apis/DefaultApi.ts +6 -1
  77. package/src/apis/PostApi.ts +36 -6
  78. package/src/apis/TweetApi.ts +54 -9
  79. package/src/apis/UserApi.ts +6 -1
  80. package/src/apis/UserListApi.ts +12 -2
  81. package/src/models/Entities.ts +10 -4
  82. package/src/models/PostCreateRetweetRequest.ts +9 -9
  83. package/src/models/{PostDeleteTweetRequestVariables.ts → PostCreateRetweetRequestVariables.ts} +10 -10
  84. package/src/models/PostDeleteTweetRequest.ts +9 -9
  85. package/src/models/PostFavoriteTweetRequest.ts +9 -9
  86. package/src/models/PostUnfavoriteTweetRequest.ts +9 -9
  87. package/src/models/Tweet.ts +14 -0
  88. package/src/models/TweetCard.ts +80 -0
  89. package/src/models/TweetCardLegacy.ts +91 -0
  90. package/src/models/TweetCardLegacyBindingValuesInner.ts +82 -0
  91. package/src/models/TweetCardLegacyBindingValuesInnerValue.ts +90 -0
  92. package/src/models/Url.ts +93 -0
  93. package/src/models/index.ts +6 -1
  94. package/tools/openapi-generator-config.yaml +1 -1
  95. package/tools/win/replace.py +20 -20
  96. package/twitter-openapi/README.md +4 -6
  97. package/twitter-openapi/dist/dart/openapi-3.0.yaml +38 -38
  98. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +8 -1
  99. package/twitter-openapi/dist/dart/paths/follow.yaml +24 -10
  100. package/twitter-openapi/dist/dart/paths/post.yaml +157 -115
  101. package/twitter-openapi/dist/dart/paths/profile.yaml +8 -1
  102. package/twitter-openapi/dist/dart/paths/timeline.yaml +38 -17
  103. package/twitter-openapi/dist/dart/paths/tweet.yaml +8 -1
  104. package/twitter-openapi/dist/dart/paths/user.yaml +8 -1
  105. package/twitter-openapi/dist/dart/paths/usertweets.yaml +54 -26
  106. package/twitter-openapi/dist/dart/resources/parameters.yaml +13 -0
  107. package/twitter-openapi/dist/dart/schemas/tweet.yaml +57 -0
  108. package/twitter-openapi/dist/docs/openapi-3.0.yaml +38 -38
  109. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +8 -1
  110. package/twitter-openapi/dist/docs/paths/follow.yaml +60 -46
  111. package/twitter-openapi/dist/docs/paths/post.yaml +124 -82
  112. package/twitter-openapi/dist/docs/paths/profile.yaml +8 -1
  113. package/twitter-openapi/dist/docs/paths/timeline.yaml +92 -71
  114. package/twitter-openapi/dist/docs/paths/tweet.yaml +8 -1
  115. package/twitter-openapi/dist/docs/paths/user.yaml +8 -1
  116. package/twitter-openapi/dist/docs/paths/usertweets.yaml +122 -94
  117. package/twitter-openapi/dist/docs/resources/parameters.yaml +13 -0
  118. package/twitter-openapi/dist/docs/schemas/tweet.yaml +57 -0
  119. package/twitter-openapi/dist/test/openapi-3.0.yaml +38 -38
  120. package/twitter-openapi/dist/test/paths/bookmarks.yaml +8 -1
  121. package/twitter-openapi/dist/test/paths/follow.yaml +24 -10
  122. package/twitter-openapi/dist/test/paths/post.yaml +108 -66
  123. package/twitter-openapi/dist/test/paths/profile.yaml +8 -1
  124. package/twitter-openapi/dist/test/paths/timeline.yaml +38 -17
  125. package/twitter-openapi/dist/test/paths/tweet.yaml +8 -1
  126. package/twitter-openapi/dist/test/paths/user.yaml +8 -1
  127. package/twitter-openapi/dist/test/paths/usertweets.yaml +54 -26
  128. package/twitter-openapi/dist/test/resources/parameters.yaml +13 -0
  129. package/twitter-openapi/dist/test/schemas/tweet.yaml +57 -0
  130. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +38 -38
  131. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +8 -1
  132. package/twitter-openapi/dist/typescript/paths/follow.yaml +24 -10
  133. package/twitter-openapi/dist/typescript/paths/post.yaml +135 -93
  134. package/twitter-openapi/dist/typescript/paths/profile.yaml +8 -1
  135. package/twitter-openapi/dist/typescript/paths/timeline.yaml +38 -17
  136. package/twitter-openapi/dist/typescript/paths/tweet.yaml +8 -1
  137. package/twitter-openapi/dist/typescript/paths/user.yaml +8 -1
  138. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +54 -26
  139. package/twitter-openapi/dist/typescript/resources/parameters.yaml +13 -0
  140. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +57 -0
  141. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +1 -1
  142. package/twitter-openapi/src/openapi/paths/follow.yaml +2 -2
  143. package/twitter-openapi/src/openapi/paths/post.yaml +6 -6
  144. package/twitter-openapi/src/openapi/paths/profile.yaml +1 -1
  145. package/twitter-openapi/src/openapi/paths/timeline.yaml +3 -3
  146. package/twitter-openapi/src/openapi/paths/tweet.yaml +1 -1
  147. package/twitter-openapi/src/openapi/paths/user.yaml +1 -1
  148. package/twitter-openapi/src/openapi/paths/usertweets.yaml +4 -4
  149. package/twitter-openapi/src/openapi/resources/parameters.yaml +15 -0
  150. package/twitter-openapi/src/openapi/schemas/tweet.yaml +58 -1
  151. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  152. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  153. package/twitter-openapi/tools/build_config.py +12 -12
  154. package/twitter-openapi/tools/hooks.py +30 -6
  155. package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
  156. package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
  157. package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
  158. package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
@@ -47,24 +47,33 @@ 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: path
56
+ name: pathQueryId
57
+ required: true
58
+ schema:
59
+ default: zhX91JE87mWvfprhYE97xA
60
+ example: zhX91JE87mWvfprhYE97xA
61
+ type: string
55
62
  - in: query
56
63
  name: queryId
57
64
  required: true
58
65
  schema:
59
- default: '"2TemLyqrMpTeAmysdbnVqw"'
60
- example: '"2TemLyqrMpTeAmysdbnVqw"'
66
+ default: '"zhX91JE87mWvfprhYE97xA"'
67
+ example: '"zhX91JE87mWvfprhYE97xA"'
61
68
  type: string
62
69
  - in: query
63
70
  name: variables
64
71
  required: true
65
72
  schema:
66
- default: '{"listId": "53044119", "count": 20}'
67
- example: '{"listId": "53044119", "count": 20}'
73
+ default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
74
+ true, "requestContext": "launch"}'
75
+ example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
76
+ true, "requestContext": "launch"}'
68
77
  type: string
69
78
  - in: query
70
79
  name: features
@@ -98,7 +107,7 @@ paths:
98
107
  content:
99
108
  application/json:
100
109
  schema:
101
- $ref: '#/components/schemas/ListTweetsTimelineResponse'
110
+ $ref: '#/components/schemas/TimelineResponse'
102
111
  description: Successful operation
103
112
  headers:
104
113
  x-connection-hash:
@@ -127,11 +136,18 @@ paths:
127
136
  type: string
128
137
  tags:
129
138
  - tweet
130
- /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
139
+ /graphql/{pathQueryId}/HomeTimeline:
131
140
  get:
132
141
  description: get tweet list of timeline
133
142
  operationId: getHomeTimeline
134
143
  parameters:
144
+ - in: path
145
+ name: pathQueryId
146
+ required: true
147
+ schema:
148
+ default: HCosKfLNW1AcOo3la3mMgg
149
+ example: HCosKfLNW1AcOo3la3mMgg
150
+ type: string
135
151
  - in: query
136
152
  name: queryId
137
153
  required: true
@@ -209,26 +225,31 @@ paths:
209
225
  type: string
210
226
  tags:
211
227
  - tweet
212
- /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
228
+ /graphql/{pathQueryId}/ListLatestTweetsTimeline:
213
229
  get:
214
230
  description: get tweet list of timeline
215
- operationId: getHomeLatestTimeline
231
+ operationId: getListLatestTweetsTimeline
216
232
  parameters:
233
+ - in: path
234
+ name: pathQueryId
235
+ required: true
236
+ schema:
237
+ default: 2TemLyqrMpTeAmysdbnVqw
238
+ example: 2TemLyqrMpTeAmysdbnVqw
239
+ type: string
217
240
  - in: query
218
241
  name: queryId
219
242
  required: true
220
243
  schema:
221
- default: '"zhX91JE87mWvfprhYE97xA"'
222
- example: '"zhX91JE87mWvfprhYE97xA"'
244
+ default: '"2TemLyqrMpTeAmysdbnVqw"'
245
+ example: '"2TemLyqrMpTeAmysdbnVqw"'
223
246
  type: string
224
247
  - in: query
225
248
  name: variables
226
249
  required: true
227
250
  schema:
228
- default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
229
- true, "requestContext": "launch"}'
230
- example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
231
- true, "requestContext": "launch"}'
251
+ default: '{"listId": "53044119", "count": 20}'
252
+ example: '{"listId": "53044119", "count": 20}'
232
253
  type: string
233
254
  - in: query
234
255
  name: features
@@ -262,7 +283,7 @@ paths:
262
283
  content:
263
284
  application/json:
264
285
  schema:
265
- $ref: '#/components/schemas/TimelineResponse'
286
+ $ref: '#/components/schemas/ListTweetsTimelineResponse'
266
287
  description: Successful operation
267
288
  headers:
268
289
  x-connection-hash:
@@ -17,11 +17,18 @@ 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: path
26
+ name: pathQueryId
27
+ required: true
28
+ schema:
29
+ default: wNNG8DBB8EaXw1lq4vFWGA
30
+ example: wNNG8DBB8EaXw1lq4vFWGA
31
+ type: string
25
32
  - in: query
26
33
  name: queryId
27
34
  required: true
@@ -17,11 +17,18 @@ 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: path
26
+ name: pathQueryId
27
+ required: true
28
+ schema:
29
+ default: sLVLhk0bGj3MVFEKTdax1w
30
+ example: sLVLhk0bGj3MVFEKTdax1w
31
+ type: string
25
32
  - in: query
26
33
  name: queryId
27
34
  required: true
@@ -32,11 +32,18 @@ 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: path
41
+ name: pathQueryId
42
+ required: true
43
+ schema:
44
+ default: 5fmEkRT-1AdHqEsbVgehMg
45
+ example: 5fmEkRT-1AdHqEsbVgehMg
46
+ type: string
40
47
  - in: query
41
48
  name: queryId
42
49
  required: true
@@ -116,28 +123,35 @@ paths:
116
123
  type: string
117
124
  tags:
118
125
  - tweet
119
- /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
126
+ /graphql/{pathQueryId}/UserMedia:
120
127
  get:
121
- description: get user tweets
122
- operationId: getUserTweets
128
+ description: get user media tweets
129
+ operationId: getUserMedia
123
130
  parameters:
131
+ - in: path
132
+ name: pathQueryId
133
+ required: true
134
+ schema:
135
+ default: YqiE3JL1KNgf9nSljYdxaA
136
+ example: YqiE3JL1KNgf9nSljYdxaA
137
+ type: string
124
138
  - in: query
125
139
  name: queryId
126
140
  required: true
127
141
  schema:
128
- default: '"HuTx74BxAnezK1gWvYY7zg"'
129
- example: '"HuTx74BxAnezK1gWvYY7zg"'
142
+ default: '"YqiE3JL1KNgf9nSljYdxaA"'
143
+ example: '"YqiE3JL1KNgf9nSljYdxaA"'
130
144
  type: string
131
145
  - in: query
132
146
  name: variables
133
147
  required: true
134
148
  schema:
135
149
  default: '{"userId": "44196397", "count": 40, "includePromotedContent":
136
- true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
137
- "withV2Timeline": true}'
150
+ false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
151
+ true, "withV2Timeline": true}'
138
152
  example: '{"userId": "44196397", "count": 40, "includePromotedContent":
139
- true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
140
- "withV2Timeline": true}'
153
+ false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
154
+ true, "withV2Timeline": true}'
141
155
  type: string
142
156
  - in: query
143
157
  name: features
@@ -200,26 +214,35 @@ paths:
200
214
  type: string
201
215
  tags:
202
216
  - tweet
203
- /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
217
+ /graphql/{pathQueryId}/UserTweets:
204
218
  get:
205
- description: get user replies tweets
206
- operationId: getUserTweetsAndReplies
219
+ description: get user tweets
220
+ operationId: getUserTweets
207
221
  parameters:
222
+ - in: path
223
+ name: pathQueryId
224
+ required: true
225
+ schema:
226
+ default: HuTx74BxAnezK1gWvYY7zg
227
+ example: HuTx74BxAnezK1gWvYY7zg
228
+ type: string
208
229
  - in: query
209
230
  name: queryId
210
231
  required: true
211
232
  schema:
212
- default: '"RIWc55YCNyUJ-U3HHGYkdg"'
213
- example: '"RIWc55YCNyUJ-U3HHGYkdg"'
233
+ default: '"HuTx74BxAnezK1gWvYY7zg"'
234
+ example: '"HuTx74BxAnezK1gWvYY7zg"'
214
235
  type: string
215
236
  - in: query
216
237
  name: variables
217
238
  required: true
218
239
  schema:
219
240
  default: '{"userId": "44196397", "count": 40, "includePromotedContent":
220
- true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
241
+ true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
242
+ "withV2Timeline": true}'
221
243
  example: '{"userId": "44196397", "count": 40, "includePromotedContent":
222
- true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
244
+ true, "withQuickPromoteEligibilityTweetFields": true, "withVoice": true,
245
+ "withV2Timeline": true}'
223
246
  type: string
224
247
  - in: query
225
248
  name: features
@@ -282,28 +305,33 @@ paths:
282
305
  type: string
283
306
  tags:
284
307
  - tweet
285
- /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
308
+ /graphql/{pathQueryId}/UserTweetsAndReplies:
286
309
  get:
287
- description: get user media tweets
288
- operationId: getUserMedia
310
+ description: get user replies tweets
311
+ operationId: getUserTweetsAndReplies
289
312
  parameters:
313
+ - in: path
314
+ name: pathQueryId
315
+ required: true
316
+ schema:
317
+ default: RIWc55YCNyUJ-U3HHGYkdg
318
+ example: RIWc55YCNyUJ-U3HHGYkdg
319
+ type: string
290
320
  - in: query
291
321
  name: queryId
292
322
  required: true
293
323
  schema:
294
- default: '"YqiE3JL1KNgf9nSljYdxaA"'
295
- example: '"YqiE3JL1KNgf9nSljYdxaA"'
324
+ default: '"RIWc55YCNyUJ-U3HHGYkdg"'
325
+ example: '"RIWc55YCNyUJ-U3HHGYkdg"'
296
326
  type: string
297
327
  - in: query
298
328
  name: variables
299
329
  required: true
300
330
  schema:
301
331
  default: '{"userId": "44196397", "count": 40, "includePromotedContent":
302
- false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
303
- true, "withV2Timeline": true}'
332
+ true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
304
333
  example: '{"userId": "44196397", "count": 40, "includePromotedContent":
305
- false, "withClientEventToken": false, "withBirdwatchNotes": false, "withVoice":
306
- true, "withV2Timeline": true}'
334
+ true, "withCommunity": true, "withVoice": true, "withV2Timeline": true}'
307
335
  type: string
308
336
  - in: query
309
337
  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: {}
@@ -94,6 +94,45 @@ components:
94
94
  properties:
95
95
  __typename:
96
96
  $ref: ./typename.yaml#/components/schemas/TypeName
97
+ card:
98
+ properties:
99
+ legacy:
100
+ properties:
101
+ binding_values:
102
+ items:
103
+ properties:
104
+ key:
105
+ type: string
106
+ value:
107
+ properties:
108
+ boolean_value:
109
+ type: boolean
110
+ scribe_key:
111
+ type: string
112
+ string_value:
113
+ type: string
114
+ type:
115
+ type: string
116
+ required:
117
+ - type
118
+ type: object
119
+ required:
120
+ - key
121
+ - value
122
+ type: object
123
+ type: array
124
+ name:
125
+ type: string
126
+ url:
127
+ type: string
128
+ required:
129
+ - binding_values
130
+ - name
131
+ - url
132
+ type: object
133
+ rest_id:
134
+ type: string
135
+ type: object
97
136
  core:
98
137
  $ref: ./user.yaml#/components/schemas/UserResultCore
99
138
  edit_control:
@@ -241,6 +280,24 @@ components:
241
280
  - __typename
242
281
  - tweet
243
282
  Url:
283
+ properties:
284
+ display_url:
285
+ type: string
286
+ expanded_url:
287
+ format: uri
288
+ type: string
289
+ indices:
290
+ items:
291
+ type: integer
292
+ type: array
293
+ url:
294
+ format: uri
295
+ type: string
296
+ required:
297
+ - url
298
+ - indices
299
+ - expanded_url
300
+ - display_url
244
301
  type: object
245
302
  UserMention:
246
303
  type: object
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/Bookmarks:
7
+ /graphql/{pathQueryId}/Bookmarks:
8
8
  get:
9
9
  operationId: getBookmarks
10
10
  description: get bookmarks
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/Following:
7
+ /graphql/{pathQueryId}/Following:
8
8
  get:
9
9
  operationId: getFollowing
10
10
  description: get user list of following
@@ -18,7 +18,7 @@ paths:
18
18
  tags:
19
19
  - "user-list"
20
20
 
21
- /graphql/{{queryId}}/Followers:
21
+ /graphql/{pathQueryId}/Followers:
22
22
  get:
23
23
  operationId: getFollowers
24
24
  description: get user list of followers
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/FavoriteTweet:
7
+ /graphql/{pathQueryId}/FavoriteTweet:
8
8
  post:
9
9
  operationId: postFavoriteTweet
10
10
  description: favorite Tweet
@@ -18,7 +18,7 @@ paths:
18
18
  tags:
19
19
  - "post"
20
20
 
21
- /graphql/{{queryId}}/UnfavoriteTweet:
21
+ /graphql/{pathQueryId}/UnfavoriteTweet:
22
22
  post:
23
23
  operationId: postUnfavoriteTweet
24
24
  description: unfavorite Tweet
@@ -32,7 +32,7 @@ paths:
32
32
  tags:
33
33
  - "post"
34
34
 
35
- /graphql/{{queryId}}/CreateRetweet:
35
+ /graphql/{pathQueryId}/CreateRetweet:
36
36
  post:
37
37
  operationId: postCreateRetweet
38
38
  description: create Retweet
@@ -46,7 +46,7 @@ paths:
46
46
  tags:
47
47
  - "post"
48
48
 
49
- /graphql/{{queryId}}/DeleteRetweet:
49
+ /graphql/{pathQueryId}/DeleteRetweet:
50
50
  post:
51
51
  operationId: postDeleteRetweet
52
52
  description: delete Retweet
@@ -60,7 +60,7 @@ paths:
60
60
  tags:
61
61
  - "post"
62
62
 
63
- /graphql/{{queryId}}/CreateTweet:
63
+ /graphql/{pathQueryId}/CreateTweet:
64
64
  post:
65
65
  operationId: postCreateTweet
66
66
  description: create Tweet
@@ -74,7 +74,7 @@ paths:
74
74
  tags:
75
75
  - "post"
76
76
 
77
- /graphql/{{queryId}}/DeleteTweet:
77
+ /graphql/{pathQueryId}/DeleteTweet:
78
78
  post:
79
79
  operationId: postDeleteTweet
80
80
  description: delete Retweet
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/ProfileSpotlightsQuery:
7
+ /graphql/{pathQueryId}/ProfileSpotlightsQuery:
8
8
  get:
9
9
  operationId: getProfileSpotlightsQuery
10
10
  description: "get user by screen name"
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/HomeTimeline:
7
+ /graphql/{pathQueryId}/HomeTimeline:
8
8
  get:
9
9
  operationId: getHomeTimeline
10
10
  description: get tweet list of timeline
@@ -18,7 +18,7 @@ paths:
18
18
  tags:
19
19
  - "tweet"
20
20
 
21
- /graphql/{{queryId}}/HomeLatestTimeline:
21
+ /graphql/{pathQueryId}/HomeLatestTimeline:
22
22
  get:
23
23
  operationId: getHomeLatestTimeline
24
24
  description: get tweet list of timeline
@@ -32,7 +32,7 @@ paths:
32
32
  tags:
33
33
  - "tweet"
34
34
 
35
- /graphql/{{queryId}}/ListLatestTweetsTimeline:
35
+ /graphql/{pathQueryId}/ListLatestTweetsTimeline:
36
36
  get:
37
37
  operationId: getListLatestTweetsTimeline
38
38
  description: get tweet list of timeline
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/TweetDetail:
7
+ /graphql/{pathQueryId}/TweetDetail:
8
8
  get:
9
9
  operationId: getTweetDetail
10
10
  description: get TweetDetail
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/UserByScreenName:
7
+ /graphql/{pathQueryId}/UserByScreenName:
8
8
  get:
9
9
  operationId: getUserByScreenName
10
10
  description: "get user by screen name"
@@ -4,7 +4,7 @@ info:
4
4
  version: 0.0.1
5
5
 
6
6
  paths:
7
- /graphql/{{queryId}}/UserTweets:
7
+ /graphql/{pathQueryId}/UserTweets:
8
8
  get:
9
9
  operationId: getUserTweets
10
10
  description: "get user tweets"
@@ -18,7 +18,7 @@ paths:
18
18
  tags:
19
19
  - "tweet"
20
20
 
21
- /graphql/{{queryId}}/UserTweetsAndReplies:
21
+ /graphql/{pathQueryId}/UserTweetsAndReplies:
22
22
  get:
23
23
  operationId: getUserTweetsAndReplies
24
24
  description: "get user replies tweets"
@@ -32,7 +32,7 @@ paths:
32
32
  tags:
33
33
  - "tweet"
34
34
 
35
- /graphql/{{queryId}}/UserMedia:
35
+ /graphql/{pathQueryId}/UserMedia:
36
36
  get:
37
37
  operationId: getUserMedia
38
38
  description: "get user media tweets"
@@ -46,7 +46,7 @@ paths:
46
46
  tags:
47
47
  - "tweet"
48
48
 
49
- /graphql/{{queryId}}/Likes:
49
+ /graphql/{pathQueryId}/Likes:
50
50
  get:
51
51
  operationId: getLikes
52
52
  description: "get user likes tweets"
@@ -0,0 +1,15 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths: {}
7
+
8
+ components:
9
+ parameters:
10
+ queryId:
11
+ name: queryId
12
+ in: path
13
+ required: true
14
+ schema:
15
+ type: string
@@ -53,6 +53,45 @@ components:
53
53
  pattern: "^[0-9]+$"
54
54
  core:
55
55
  $ref: "./user.yaml#/components/schemas/UserResultCore"
56
+ card:
57
+ type: object
58
+ properties:
59
+ rest_id:
60
+ type: string
61
+ legacy:
62
+ type: object
63
+ required:
64
+ - "binding_values"
65
+ - "name"
66
+ - "url"
67
+ properties:
68
+ name:
69
+ type: string
70
+ url:
71
+ type: string
72
+ binding_values:
73
+ type: array
74
+ items:
75
+ type: object
76
+ required:
77
+ - "key"
78
+ - "value"
79
+ properties:
80
+ key:
81
+ type: string
82
+ value:
83
+ type: object
84
+ required:
85
+ - "type"
86
+ properties:
87
+ string_value:
88
+ type: string
89
+ boolean_value:
90
+ type: boolean
91
+ scribe_key:
92
+ type: string
93
+ type:
94
+ type: string
56
95
  unmention_data:
57
96
  type: object # todo
58
97
  edit_control:
@@ -200,7 +239,25 @@ components:
200
239
  UserMention:
201
240
  type: object # todo
202
241
  Url:
203
- type: object # todo
242
+ type: object
243
+ required:
244
+ - "url"
245
+ - "indices"
246
+ - "expanded_url"
247
+ - "display_url"
248
+ properties:
249
+ display_url:
250
+ type: string
251
+ expanded_url:
252
+ type: string
253
+ format: uri
254
+ url:
255
+ type: string
256
+ format: uri
257
+ indices:
258
+ type: array
259
+ items:
260
+ type: integer
204
261
 
205
262
  ExtendedEntities:
206
263
  required: