twitter-openapi-typescript-generated 0.0.1 → 0.0.2

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 (127) hide show
  1. package/.openapi-generator-ignore +1 -2
  2. package/README.md +2 -2
  3. package/package.json +25 -26
  4. package/tools/openapi-generator-config.yaml +10 -0
  5. package/tools/win/clean.ps1 +21 -0
  6. package/tools/win/gen.ps1 +8 -0
  7. package/tools/win/init.ps1 +1 -0
  8. package/tools/win/replace.py +40 -0
  9. package/twitter-openapi/.vscode/extensions.json +3 -0
  10. package/twitter-openapi/.vscode/settings.json +9 -0
  11. package/twitter-openapi/LICENSE.txt +661 -0
  12. package/twitter-openapi/README.md +38 -0
  13. package/twitter-openapi/dist/dart/openapi-3.0.yaml +111 -0
  14. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +134 -0
  15. package/twitter-openapi/dist/dart/paths/follow.yaml +262 -0
  16. package/twitter-openapi/dist/dart/paths/other.yaml +96 -0
  17. package/twitter-openapi/dist/dart/paths/post.yaml +834 -0
  18. package/twitter-openapi/dist/dart/paths/profile.yaml +152 -0
  19. package/twitter-openapi/dist/dart/paths/timeline.yaml +380 -0
  20. package/twitter-openapi/dist/dart/paths/tweet.yaml +134 -0
  21. package/twitter-openapi/dist/dart/paths/user.yaml +112 -0
  22. package/twitter-openapi/dist/dart/paths/usertweets.yaml +484 -0
  23. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +300 -0
  24. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +295 -0
  25. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +331 -0
  26. package/twitter-openapi/dist/dart/response/error.yaml +90 -0
  27. package/twitter-openapi/dist/dart/schemas/content.yaml +181 -0
  28. package/twitter-openapi/dist/dart/schemas/general.yaml +13 -0
  29. package/twitter-openapi/dist/dart/schemas/instruction.yaml +83 -0
  30. package/twitter-openapi/dist/dart/schemas/timeline.yaml +25 -0
  31. package/twitter-openapi/dist/dart/schemas/tweet.yaml +251 -0
  32. package/twitter-openapi/dist/dart/schemas/typename.yaml +19 -0
  33. package/twitter-openapi/dist/dart/schemas/user.yaml +206 -0
  34. package/twitter-openapi/dist/docs/openapi-3.0.yaml +135 -0
  35. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +248 -0
  36. package/twitter-openapi/dist/docs/paths/follow.yaml +486 -0
  37. package/twitter-openapi/dist/docs/paths/other.yaml +96 -0
  38. package/twitter-openapi/dist/docs/paths/post.yaml +638 -0
  39. package/twitter-openapi/dist/docs/paths/profile.yaml +159 -0
  40. package/twitter-openapi/dist/docs/paths/timeline.yaml +730 -0
  41. package/twitter-openapi/dist/docs/paths/tweet.yaml +272 -0
  42. package/twitter-openapi/dist/docs/paths/user.yaml +152 -0
  43. package/twitter-openapi/dist/docs/paths/usertweets.yaml +1010 -0
  44. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +242 -0
  45. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +237 -0
  46. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +302 -0
  47. package/twitter-openapi/dist/docs/response/error.yaml +90 -0
  48. package/twitter-openapi/dist/docs/schemas/content.yaml +181 -0
  49. package/twitter-openapi/dist/docs/schemas/general.yaml +13 -0
  50. package/twitter-openapi/dist/docs/schemas/instruction.yaml +83 -0
  51. package/twitter-openapi/dist/docs/schemas/timeline.yaml +25 -0
  52. package/twitter-openapi/dist/docs/schemas/tweet.yaml +251 -0
  53. package/twitter-openapi/dist/docs/schemas/typename.yaml +19 -0
  54. package/twitter-openapi/dist/docs/schemas/user.yaml +206 -0
  55. package/twitter-openapi/dist/test/openapi-3.0.yaml +135 -0
  56. package/twitter-openapi/dist/test/paths/bookmarks.yaml +105 -0
  57. package/twitter-openapi/dist/test/paths/follow.yaml +204 -0
  58. package/twitter-openapi/dist/test/paths/other.yaml +96 -0
  59. package/twitter-openapi/dist/test/paths/post.yaml +485 -0
  60. package/twitter-openapi/dist/test/paths/profile.yaml +123 -0
  61. package/twitter-openapi/dist/test/paths/timeline.yaml +293 -0
  62. package/twitter-openapi/dist/test/paths/tweet.yaml +105 -0
  63. package/twitter-openapi/dist/test/paths/user.yaml +83 -0
  64. package/twitter-openapi/dist/test/paths/usertweets.yaml +368 -0
  65. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +242 -0
  66. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +277 -0
  67. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +302 -0
  68. package/twitter-openapi/dist/test/response/error.yaml +90 -0
  69. package/twitter-openapi/dist/test/schemas/content.yaml +181 -0
  70. package/twitter-openapi/dist/test/schemas/general.yaml +13 -0
  71. package/twitter-openapi/dist/test/schemas/instruction.yaml +83 -0
  72. package/twitter-openapi/dist/test/schemas/timeline.yaml +25 -0
  73. package/twitter-openapi/dist/test/schemas/tweet.yaml +251 -0
  74. package/twitter-openapi/dist/test/schemas/typename.yaml +19 -0
  75. package/twitter-openapi/dist/test/schemas/user.yaml +206 -0
  76. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +135 -0
  77. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +105 -0
  78. package/twitter-openapi/dist/typescript/paths/follow.yaml +204 -0
  79. package/twitter-openapi/dist/typescript/paths/other.yaml +96 -0
  80. package/twitter-openapi/dist/typescript/paths/post.yaml +660 -0
  81. package/twitter-openapi/dist/typescript/paths/profile.yaml +123 -0
  82. package/twitter-openapi/dist/typescript/paths/timeline.yaml +293 -0
  83. package/twitter-openapi/dist/typescript/paths/tweet.yaml +105 -0
  84. package/twitter-openapi/dist/typescript/paths/user.yaml +83 -0
  85. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +368 -0
  86. package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +242 -0
  87. package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +237 -0
  88. package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +302 -0
  89. package/twitter-openapi/dist/typescript/response/error.yaml +90 -0
  90. package/twitter-openapi/dist/typescript/schemas/content.yaml +181 -0
  91. package/twitter-openapi/dist/typescript/schemas/general.yaml +13 -0
  92. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +83 -0
  93. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +25 -0
  94. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +251 -0
  95. package/twitter-openapi/dist/typescript/schemas/typename.yaml +19 -0
  96. package/twitter-openapi/dist/typescript/schemas/user.yaml +206 -0
  97. package/twitter-openapi/requirements.txt +0 -0
  98. package/twitter-openapi/src/config/component/response_header.yaml +32 -0
  99. package/twitter-openapi/src/config/component/response_header_legacy.yaml +35 -0
  100. package/twitter-openapi/src/config/component/security_schemes.yaml +67 -0
  101. package/twitter-openapi/src/config/placeholder.json +535 -0
  102. package/twitter-openapi/src/openapi/openapi-3.0.yaml +68 -0
  103. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +42 -0
  104. package/twitter-openapi/src/openapi/paths/follow.yaml +73 -0
  105. package/twitter-openapi/src/openapi/paths/other.yaml +101 -0
  106. package/twitter-openapi/src/openapi/paths/post.yaml +246 -0
  107. package/twitter-openapi/src/openapi/paths/profile.yaml +81 -0
  108. package/twitter-openapi/src/openapi/paths/timeline.yaml +98 -0
  109. package/twitter-openapi/src/openapi/paths/tweet.yaml +35 -0
  110. package/twitter-openapi/src/openapi/paths/user.yaml +35 -0
  111. package/twitter-openapi/src/openapi/paths/usertweets.yaml +94 -0
  112. package/twitter-openapi/src/openapi/paths/v1.1-get.yaml +25 -0
  113. package/twitter-openapi/src/openapi/paths/v1.1-post.yaml +25 -0
  114. package/twitter-openapi/src/openapi/paths/v2.0-get.yaml +15 -0
  115. package/twitter-openapi/src/openapi/response/error.yaml +97 -0
  116. package/twitter-openapi/src/openapi/schemas/content.yaml +190 -0
  117. package/twitter-openapi/src/openapi/schemas/general.yaml +12 -0
  118. package/twitter-openapi/src/openapi/schemas/instruction.yaml +90 -0
  119. package/twitter-openapi/src/openapi/schemas/timeline.yaml +27 -0
  120. package/twitter-openapi/src/openapi/schemas/tweet.yaml +264 -0
  121. package/twitter-openapi/src/openapi/schemas/typename.yaml +21 -0
  122. package/twitter-openapi/src/openapi/schemas/user.yaml +210 -0
  123. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  124. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  125. package/twitter-openapi/tools/build.py +79 -0
  126. package/twitter-openapi/tools/build_config.py +200 -0
  127. package/twitter-openapi/tools/hooks.py +265 -0
@@ -0,0 +1,73 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/Following:
8
+ get:
9
+ operationId: getFollowing
10
+ description: get user list of following
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/FollowResponse"
18
+ tags:
19
+ - "user-list"
20
+
21
+ /graphql/{{queryId}}/Followers:
22
+ get:
23
+ operationId: getFollowers
24
+ description: get user list of followers
25
+ responses:
26
+ "200":
27
+ description: Successful operation
28
+ content:
29
+ application/json:
30
+ schema:
31
+ $ref: "#/components/schemas/FollowResponse"
32
+ tags:
33
+ - "user-list"
34
+
35
+ components:
36
+ schemas:
37
+ FollowResponse:
38
+ required:
39
+ - "data"
40
+ properties:
41
+ data:
42
+ $ref: "#/components/schemas/FollowResponseData"
43
+
44
+ FollowResponseData:
45
+ required:
46
+ - "user"
47
+ properties:
48
+ user:
49
+ $ref: "#/components/schemas/FollowResponseUser"
50
+
51
+ FollowResponseUser:
52
+ required:
53
+ - "result"
54
+ properties:
55
+ result:
56
+ $ref: "#/components/schemas/FollowResponseResult"
57
+
58
+ FollowResponseResult:
59
+ required:
60
+ - "__typename"
61
+ - "timeline"
62
+ properties:
63
+ __typename:
64
+ $ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
65
+ timeline:
66
+ $ref: "#/components/schemas/FollowTimeline"
67
+
68
+ FollowTimeline:
69
+ required:
70
+ - "timeline"
71
+ properties:
72
+ timeline:
73
+ $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
@@ -0,0 +1,101 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /other:
8
+ get:
9
+ operationId: other
10
+ description: This is not an actual endpoint
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/OtherResponse"
18
+ tags:
19
+ - "other"
20
+
21
+ components:
22
+ schemas:
23
+ OtherResponse:
24
+ type: object
25
+ properties:
26
+ Session:
27
+ $ref: "#/components/schemas/Session" # window.__INITIAL_STATE__
28
+ Session:
29
+ type: object
30
+ required:
31
+ - "country"
32
+ - "communitiesActions"
33
+ - "isActiveCreator"
34
+ - "isRestrictedSession"
35
+ - "guestId"
36
+ - "hasCommunityMemberships"
37
+ - "language"
38
+ - "oneFactorLoginEligibility"
39
+ - "ssoInitTokens"
40
+ - "superFollowersCount"
41
+ - "superFollowsApplicationStatus"
42
+ - "user_id"
43
+ - "userFeatures"
44
+ - "isSuperFollowSubscriber"
45
+ properties:
46
+ country:
47
+ type: string
48
+ pattern: "^[A-Z]{2}$"
49
+ communitiesActions:
50
+ $ref: "#/components/schemas/CommunitiesActions"
51
+ isActiveCreator:
52
+ type: boolean
53
+ isRestrictedSession:
54
+ type: boolean
55
+ guestId:
56
+ type: string
57
+ pattern: "^[0-9]+$"
58
+ hasCommunityMemberships:
59
+ type: boolean
60
+ language:
61
+ type: string
62
+ pattern: "^[a-z]{2}$"
63
+ oneFactorLoginEligibility:
64
+ $ref: "#/components/schemas/OneFactorLoginEligibility"
65
+ SsoInitTokens:
66
+ type: object
67
+ superFollowersCount:
68
+ type: integer
69
+ superFollowsApplicationStatus:
70
+ type: string # enum: NotStarted
71
+ user_id:
72
+ type: string
73
+ pattern: "^[0-9]+$"
74
+ userFeatures:
75
+ $ref: "#/components/schemas/UserFeatures"
76
+ isSuperFollowSubscriber:
77
+ type: boolean
78
+
79
+ CommunitiesActions:
80
+ type: object
81
+ required:
82
+ - "create"
83
+ properties:
84
+ create:
85
+ type: boolean
86
+
87
+ OneFactorLoginEligibility:
88
+ type: object
89
+ required:
90
+ - "fetchStatus"
91
+ properties:
92
+ fetchStatus:
93
+ type: string # enum: none
94
+
95
+ UserFeatures:
96
+ type: object
97
+ required:
98
+ - "mediatool_studio_library"
99
+ properties:
100
+ mediatool_studio_library:
101
+ type: boolean
@@ -0,0 +1,246 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/FavoriteTweet:
8
+ post:
9
+ operationId: postFavoriteTweet
10
+ description: favorite Tweet
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/FavoriteTweetResponseData"
18
+ tags:
19
+ - "post"
20
+
21
+ /graphql/{{queryId}}/UnfavoriteTweet:
22
+ post:
23
+ operationId: postUnfavoriteTweet
24
+ description: unfavorite Tweet
25
+ responses:
26
+ "200":
27
+ description: Successful operation
28
+ content:
29
+ application/json:
30
+ schema:
31
+ $ref: "#/components/schemas/UnfavoriteTweetResponseData"
32
+ tags:
33
+ - "post"
34
+
35
+ /graphql/{{queryId}}/CreateRetweet:
36
+ post:
37
+ operationId: postCreateRetweet
38
+ description: create Retweet
39
+ responses:
40
+ "200":
41
+ description: Successful operation
42
+ content:
43
+ application/json:
44
+ schema:
45
+ $ref: "#/components/schemas/CreateRetweetResponse"
46
+ tags:
47
+ - "post"
48
+
49
+ /graphql/{{queryId}}/DeleteRetweet:
50
+ post:
51
+ operationId: postDeleteRetweet
52
+ description: delete Retweet
53
+ responses:
54
+ "200":
55
+ description: Successful operation
56
+ content:
57
+ application/json:
58
+ schema:
59
+ $ref: "#/components/schemas/DeleteRetweetResponse"
60
+ tags:
61
+ - "post"
62
+
63
+ /graphql/{{queryId}}/CreateTweet:
64
+ post:
65
+ operationId: postCreateTweet
66
+ description: create Tweet
67
+ responses:
68
+ "200":
69
+ description: Successful operation
70
+ content:
71
+ application/json:
72
+ schema:
73
+ $ref: "#/components/schemas/CreateTweetResponse"
74
+ tags:
75
+ - "post"
76
+
77
+ /graphql/{{queryId}}/DeleteTweet:
78
+ post:
79
+ operationId: postDeleteTweet
80
+ description: delete Retweet
81
+ responses:
82
+ "200":
83
+ description: Successful operation
84
+ content:
85
+ application/json:
86
+ schema:
87
+ $ref: "#/components/schemas/DeleteTweetResponse"
88
+ tags:
89
+ - "post"
90
+
91
+ components:
92
+ schemas:
93
+ FavoriteTweetResponseData:
94
+ required:
95
+ - "data"
96
+ properties:
97
+ data:
98
+ $ref: "#/components/schemas/FavoriteTweet"
99
+
100
+ FavoriteTweet:
101
+ required:
102
+ - "favorite_tweet"
103
+ properties:
104
+ favorite_tweet:
105
+ type: string
106
+
107
+ UnfavoriteTweetResponseData:
108
+ required:
109
+ - "data"
110
+ properties:
111
+ data:
112
+ $ref: "#/components/schemas/UnfavoriteTweet"
113
+
114
+ UnfavoriteTweet:
115
+ required:
116
+ - "unfavorite_tweet"
117
+ properties:
118
+ unfavorite_tweet:
119
+ type: string
120
+
121
+ # ---Retweet---
122
+
123
+ CreateRetweetResponse:
124
+ required:
125
+ - "data"
126
+ properties:
127
+ data:
128
+ $ref: "#/components/schemas/CreateRetweetResponseData"
129
+
130
+ CreateRetweetResponseData:
131
+ required:
132
+ - "create_retweet"
133
+ properties:
134
+ create_retweet:
135
+ $ref: "#/components/schemas/CreateRetweetResponseResult"
136
+
137
+ CreateRetweetResponseResult:
138
+ required:
139
+ - "retweet_results"
140
+ properties:
141
+ retweet_results:
142
+ $ref: "#/components/schemas/CreateRetweet"
143
+
144
+ CreateRetweet:
145
+ required:
146
+ - "result"
147
+ properties:
148
+ result:
149
+ $ref: "#/components/schemas/Retweet"
150
+
151
+ Retweet:
152
+ required:
153
+ - "rest_id"
154
+ - "legacy"
155
+ properties:
156
+ rest_id:
157
+ type: string
158
+ pattern: "^[0-9]+$"
159
+ legacy:
160
+ type: object
161
+ required:
162
+ - "full_text"
163
+ properties:
164
+ full_text:
165
+ type: string
166
+
167
+ DeleteRetweetResponse:
168
+ required:
169
+ - "data"
170
+ properties:
171
+ data:
172
+ $ref: "#/components/schemas/DeleteRetweetResponseData"
173
+
174
+ DeleteRetweetResponseData:
175
+ required:
176
+ - "unretweet"
177
+ properties:
178
+ create_retweet:
179
+ $ref: "#/components/schemas/CreateRetweetResponseResult"
180
+
181
+ DeleteRetweetResponseResult:
182
+ required:
183
+ - "source_tweet_results"
184
+ properties:
185
+ retweet_results:
186
+ $ref: "#/components/schemas/DeleteRetweet"
187
+
188
+ DeleteRetweet:
189
+ required:
190
+ - "result"
191
+ properties:
192
+ result:
193
+ type: object
194
+ items:
195
+ $ref: "#/components/schemas/Retweet"
196
+
197
+ # ---Tweet---
198
+
199
+ CreateTweetResponse:
200
+ required:
201
+ - "data"
202
+ properties:
203
+ data:
204
+ $ref: "#/components/schemas/CreateTweetResponseData"
205
+
206
+ CreateTweetResponseData:
207
+ required:
208
+ - "create_tweet"
209
+ properties:
210
+ create_tweet:
211
+ $ref: "#/components/schemas/CreateTweetResponseResult"
212
+
213
+ CreateTweetResponseResult:
214
+ required:
215
+ - "tweet_results"
216
+ properties:
217
+ tweet_results:
218
+ $ref: "#/components/schemas/CreateTweet"
219
+
220
+ CreateTweet:
221
+ required:
222
+ - "result"
223
+ properties:
224
+ result:
225
+ $ref: "./../schemas/tweet.yaml#/components/schemas/Tweet"
226
+
227
+ DeleteTweetResponse:
228
+ required:
229
+ - "data"
230
+ properties:
231
+ data:
232
+ $ref: "#/components/schemas/DeleteTweetResponseData"
233
+
234
+ DeleteTweetResponseData:
235
+ required:
236
+ - "delete_tweet"
237
+ properties:
238
+ delete_retweet:
239
+ $ref: "#/components/schemas/DeleteTweetResponseResult"
240
+
241
+ DeleteTweetResponseResult:
242
+ required:
243
+ - "tweet_results"
244
+ properties:
245
+ tweet_results:
246
+ type: object
@@ -0,0 +1,81 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/ProfileSpotlightsQuery:
8
+ get:
9
+ operationId: getProfileSpotlightsQuery
10
+ description: "get user by screen name"
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/ProfileResponse"
18
+
19
+ components:
20
+ schemas:
21
+ ProfileResponse:
22
+ required:
23
+ - "data"
24
+ properties:
25
+ data:
26
+ $ref: "#/components/schemas/ProfileResponseData"
27
+
28
+ ProfileResponseData:
29
+ required:
30
+ - "user_result_by_screen_name"
31
+ properties:
32
+ user_result_by_screen_name:
33
+ $ref: "#/components/schemas/UserResultByScreenName"
34
+
35
+ UserResultByScreenName:
36
+ required:
37
+ - "id"
38
+ - "result"
39
+ properties:
40
+ id:
41
+ type: string
42
+ pattern: "^[0-9a-zA-Z]+$"
43
+ result:
44
+ $ref: "#/components/schemas/UserResultByScreenNameResult"
45
+
46
+ UserResultByScreenNameResult:
47
+ required:
48
+ - "__typename"
49
+ - "id"
50
+ - "legacy"
51
+ - "profilemodules"
52
+ - "rest_id"
53
+ properties:
54
+ __typename:
55
+ $ref: "./../schemas/typename.yaml#/components/schemas/TypeName" # User
56
+ id:
57
+ type: string
58
+ pattern: "^[0-9a-zA-Z=]+$"
59
+ legacy:
60
+ $ref: "#/components/schemas/UserResultByScreenNameLegacy"
61
+ profilemodules:
62
+ type: object # todo
63
+ rest_id:
64
+ type: string
65
+ pattern: "^[0-9]+$"
66
+ UserResultByScreenNameLegacy:
67
+ properties:
68
+ blocking:
69
+ type: boolean
70
+ blocked_by:
71
+ type: boolean
72
+ protected:
73
+ type: boolean
74
+ following:
75
+ type: boolean
76
+ followed_by:
77
+ type: boolean
78
+ name:
79
+ type: string
80
+ screen_name:
81
+ type: string
@@ -0,0 +1,98 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/HomeTimeline:
8
+ get:
9
+ operationId: getHomeTimeline
10
+ description: get tweet list of timeline
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/TimelineResponse"
18
+ tags:
19
+ - "tweet"
20
+
21
+ /graphql/{{queryId}}/HomeLatestTimeline:
22
+ get:
23
+ operationId: getHomeLatestTimeline
24
+ description: get tweet list of timeline
25
+ responses:
26
+ "200":
27
+ description: Successful operation
28
+ content:
29
+ application/json:
30
+ schema:
31
+ $ref: "#/components/schemas/TimelineResponse"
32
+ tags:
33
+ - "tweet"
34
+
35
+ /graphql/{{queryId}}/ListLatestTweetsTimeline:
36
+ get:
37
+ operationId: getListLatestTweetsTimeline
38
+ description: get tweet list of timeline
39
+ responses:
40
+ "200":
41
+ description: Successful operation
42
+ content:
43
+ application/json:
44
+ schema:
45
+ $ref: "#/components/schemas/ListTweetsTimelineResponse"
46
+ tags:
47
+ - "tweet"
48
+
49
+ components:
50
+ schemas:
51
+ TimelineResponse:
52
+ required:
53
+ - "data"
54
+ properties:
55
+ data:
56
+ $ref: "#/components/schemas/HomeTimelineResponseData"
57
+
58
+ HomeTimelineResponseData:
59
+ required:
60
+ - "home"
61
+ properties:
62
+ home:
63
+ $ref: "#/components/schemas/HomeTimelineHome"
64
+
65
+ HomeTimelineHome:
66
+ required:
67
+ - "home_timeline_urt"
68
+ properties:
69
+ home_timeline_urt:
70
+ $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
71
+
72
+ ListTweetsTimelineResponse:
73
+ required:
74
+ - "data"
75
+ properties:
76
+ data:
77
+ $ref: "#/components/schemas/ListTweetsTimelineData"
78
+
79
+ ListTweetsTimelineData:
80
+ required:
81
+ - "list"
82
+ properties:
83
+ list:
84
+ $ref: "#/components/schemas/ListTweetsTimelineList"
85
+
86
+ ListTweetsTimelineList:
87
+ required:
88
+ - "tweets_timeline"
89
+ properties:
90
+ tweets_timeline:
91
+ $ref: "#/components/schemas/ListTweetsTimeline"
92
+
93
+ ListTweetsTimeline:
94
+ required:
95
+ - "timeline"
96
+ properties:
97
+ timeline:
98
+ $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
@@ -0,0 +1,35 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/TweetDetail:
8
+ get:
9
+ operationId: getTweetDetail
10
+ description: get TweetDetail
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/TweetDetailResponse"
18
+ tags:
19
+ - "tweet"
20
+
21
+ components:
22
+ schemas:
23
+ TweetDetailResponse:
24
+ required:
25
+ - "data"
26
+ properties:
27
+ data:
28
+ $ref: "#/components/schemas/TweetDetailResponseData"
29
+
30
+ TweetDetailResponseData:
31
+ required:
32
+ - "threaded_conversation_with_injections_v2"
33
+ properties:
34
+ threaded_conversation_with_injections_v2:
35
+ $ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
@@ -0,0 +1,35 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+
6
+ paths:
7
+ /graphql/{{queryId}}/UserByScreenName:
8
+ get:
9
+ operationId: getUserByScreenName
10
+ description: "get user by screen name"
11
+ responses:
12
+ "200":
13
+ description: Successful operation
14
+ content:
15
+ application/json:
16
+ schema:
17
+ $ref: "#/components/schemas/UserResponse"
18
+ tags:
19
+ - "user"
20
+
21
+ components:
22
+ schemas:
23
+ UserResponse:
24
+ required:
25
+ - "data"
26
+ properties:
27
+ data:
28
+ $ref: "#/components/schemas/UserResponseData"
29
+
30
+ UserResponseData:
31
+ required:
32
+ - "user"
33
+ properties:
34
+ user:
35
+ $ref: "./../schemas/user.yaml#/components/schemas/UserResults"