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,206 @@
1
+ components:
2
+ schemas:
3
+ User:
4
+ properties:
5
+ __typename:
6
+ $ref: ./typename.yaml#/components/schemas/TypeName
7
+ affiliates_highlighted_label:
8
+ type: object
9
+ business_account:
10
+ type: object
11
+ has_graduated_access:
12
+ type: boolean
13
+ has_nft_avatar:
14
+ default: false
15
+ type: boolean
16
+ id:
17
+ pattern: ^[a-z\-]+[0-9]+$
18
+ type: string
19
+ is_blue_verified:
20
+ default: false
21
+ type: boolean
22
+ legacy:
23
+ $ref: '#/components/schemas/UserLegacy'
24
+ rest_id:
25
+ pattern: ^[0-9]+$
26
+ type: string
27
+ super_follow_eligible:
28
+ default: false
29
+ type: boolean
30
+ super_followed_by:
31
+ default: false
32
+ type: boolean
33
+ super_following:
34
+ default: false
35
+ type: boolean
36
+ required:
37
+ - __typename
38
+ - affiliates_highlighted_label
39
+ - id
40
+ - is_blue_verified
41
+ - legacy
42
+ - rest_id
43
+ - super_follow_eligible
44
+ - super_followed_by
45
+ - super_following
46
+ UserLegacy:
47
+ properties:
48
+ blocked_by:
49
+ default: false
50
+ type: boolean
51
+ blocking:
52
+ default: false
53
+ type: boolean
54
+ can_dm:
55
+ default: false
56
+ type: boolean
57
+ can_media_tag:
58
+ default: false
59
+ type: boolean
60
+ created_at:
61
+ $ref: ./general.yaml#/components/schemas/TwitterTimeFormat
62
+ default_profile:
63
+ default: false
64
+ type: boolean
65
+ default_profile_image:
66
+ default: false
67
+ type: boolean
68
+ description:
69
+ type: string
70
+ entities:
71
+ type: object
72
+ fast_followers_count:
73
+ type: integer
74
+ favourites_count:
75
+ default: 0
76
+ type: integer
77
+ follow_request_sent:
78
+ default: false
79
+ type: boolean
80
+ followed_by:
81
+ default: false
82
+ type: boolean
83
+ followers_count:
84
+ default: 0
85
+ type: integer
86
+ following:
87
+ default: false
88
+ type: boolean
89
+ friends_count:
90
+ default: 0
91
+ type: integer
92
+ has_custom_timelines:
93
+ default: false
94
+ type: boolean
95
+ is_translator:
96
+ default: false
97
+ type: boolean
98
+ listed_count:
99
+ default: 0
100
+ type: integer
101
+ location:
102
+ type: string
103
+ media_count:
104
+ default: 0
105
+ type: integer
106
+ muting:
107
+ default: false
108
+ type: boolean
109
+ name:
110
+ type: string
111
+ normal_followers_count:
112
+ default: 0
113
+ type: integer
114
+ notifications:
115
+ default: false
116
+ type: boolean
117
+ pinned_tweet_ids_str:
118
+ items:
119
+ type: string
120
+ type: array
121
+ possibly_sensitive:
122
+ default: false
123
+ type: boolean
124
+ profile_banner_extensions:
125
+ type: object
126
+ profile_banner_url:
127
+ format: uri
128
+ type: string
129
+ profile_image_extensions:
130
+ type: object
131
+ profile_image_url_https:
132
+ format: uri
133
+ type: string
134
+ profile_interstitial_type:
135
+ type: string
136
+ protected:
137
+ default: false
138
+ type: boolean
139
+ screen_name:
140
+ type: string
141
+ statuses_count:
142
+ default: 0
143
+ type: integer
144
+ translator_type:
145
+ type: string
146
+ url:
147
+ type: string
148
+ verified:
149
+ type: boolean
150
+ want_retweets:
151
+ default: false
152
+ type: boolean
153
+ required:
154
+ - blocked_by
155
+ - blocking
156
+ - can_dm
157
+ - can_media_tag
158
+ - created_at
159
+ - default_profile
160
+ - default_profile_image
161
+ - description
162
+ - entities
163
+ - fast_followers_count
164
+ - favourites_count
165
+ - follow_request_sent
166
+ - followed_by
167
+ - followers_count
168
+ - following
169
+ - friends_count
170
+ - has_custom_timelines
171
+ - is_translator
172
+ - listed_count
173
+ - location
174
+ - media_count
175
+ - muting
176
+ - name
177
+ - normal_followers_count
178
+ - notifications
179
+ - pinned_tweet_ids_str
180
+ - possibly_sensitive
181
+ - profile_image_url_https
182
+ - profile_interstitial_type
183
+ - protected
184
+ - screen_name
185
+ - status
186
+ - statuses_count
187
+ - translator_type
188
+ - verified
189
+ - want_retweets
190
+ UserResultCore:
191
+ properties:
192
+ user_results:
193
+ $ref: '#/components/schemas/UserResults'
194
+ required:
195
+ - user_results
196
+ UserResults:
197
+ properties:
198
+ result:
199
+ $ref: '#/components/schemas/User'
200
+ required:
201
+ - result
202
+ info:
203
+ title: Twitter OpenAPI
204
+ version: 0.0.1
205
+ openapi: 3.0.3
206
+ paths: {}
@@ -0,0 +1,135 @@
1
+ components:
2
+ schemas: {}
3
+ securitySchemes:
4
+ ActiveUser:
5
+ description: 'yes'
6
+ in: header
7
+ name: x-twitter-active-user
8
+ type: apiKey
9
+ AuthType:
10
+ description: OAuth2Session if you are logged in
11
+ in: header
12
+ name: x-twitter-auth-type
13
+ type: apiKey
14
+ BearerAuth:
15
+ description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
16
+ scheme: bearer
17
+ type: http
18
+ ClientLanguage:
19
+ description: en
20
+ in: header
21
+ name: x-twitter-client-language
22
+ type: apiKey
23
+ CookieAuthToken:
24
+ description: HttpOnly cookie
25
+ in: cookie
26
+ name: auth_token
27
+ type: apiKey
28
+ CookieCt0:
29
+ description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
30
+ in: cookie
31
+ name: ct0
32
+ type: apiKey
33
+ CsrfToken:
34
+ description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
35
+ in: header
36
+ name: x-csrf-token
37
+ type: apiKey
38
+ UserAgent:
39
+ description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
40
+ like Gecko) Chrome/112.0.0.0 Safari/537.36
41
+ in: header
42
+ name: user-agent
43
+ type: apiKey
44
+ info:
45
+ contact:
46
+ email: yuki@yuki0311.com
47
+ description: Twitter OpenAPI(Swagger) specification
48
+ license:
49
+ name: GNU Affero General Public License v3.
50
+ url: https://raw.githubusercontent.com/fa0311/twitter-openapi/main/LICENSE.txt
51
+ termsOfService: https://github.com/fa0311
52
+ title: Twitter OpenAPI
53
+ version: 0.0.1
54
+ openapi: 3.0.3
55
+ paths:
56
+ /1.1/friends/following/list.json:
57
+ $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json
58
+ /1.1/friendships/create.json:
59
+ $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json
60
+ /1.1/friendships/destroy.json:
61
+ $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json
62
+ /1.1/search/typeahead.json:
63
+ $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json
64
+ /2/search/adaptive.json:
65
+ $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json
66
+ /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
67
+ $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet
68
+ /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
69
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline
70
+ /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes:
71
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes
72
+ /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
73
+ $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery
74
+ /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
75
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline
76
+ /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
77
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets
78
+ /graphql/IWP6Zt14sARO29lJT35bBw/Following:
79
+ $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following
80
+ /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
81
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies
82
+ /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
83
+ $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet
84
+ /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
85
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
86
+ /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
87
+ $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet
88
+ /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers:
89
+ $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers
90
+ /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
91
+ $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet
92
+ /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
93
+ $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet
94
+ /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
95
+ $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet
96
+ /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
97
+ $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
98
+ /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
99
+ $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks
100
+ /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
101
+ $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
102
+ /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
103
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
104
+ /other:
105
+ $ref: ./paths/other.yaml#/paths/~1other
106
+ security:
107
+ - CsrfToken: []
108
+ - CookieCt0: []
109
+ - CookieAuthToken: []
110
+ - AuthType: []
111
+ - UserAgent: []
112
+ - BearerAuth: []
113
+ - ActiveUser: []
114
+ - ClientLanguage: []
115
+ servers:
116
+ - url: https://twitter.com/i/api
117
+ tags:
118
+ - description: response User
119
+ name: user
120
+ - description: response User list
121
+ name: user-list
122
+ - description: response tweet
123
+ name: tweet
124
+ - description: post
125
+ name: post
126
+ - description: legacy APIs get
127
+ name: v1.1-get
128
+ - description: legacy APIs post
129
+ name: v1.1-post
130
+ - description: legacy APIs get
131
+ name: v2.0-get
132
+ - description: legacy APIs post
133
+ name: v2.0-post
134
+ - description: other
135
+ name: other
@@ -0,0 +1,105 @@
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: query
32
+ name: queryId
33
+ required: true
34
+ schema:
35
+ default: '"tmd4ifV8RHltzn8ymGg1aw"'
36
+ example: '"tmd4ifV8RHltzn8ymGg1aw"'
37
+ type: string
38
+ - in: query
39
+ name: variables
40
+ required: true
41
+ schema:
42
+ default: '{"count": 20, "includePromotedContent": true}'
43
+ example: '{"count": 20, "includePromotedContent": true}'
44
+ type: string
45
+ - in: query
46
+ name: features
47
+ required: true
48
+ schema:
49
+ default: '{"graphql_timeline_v2_bookmark_timeline": true, "blue_business_profile_image_shape_enabled":
50
+ true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
51
+ false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
52
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
53
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
54
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
55
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
56
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
57
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
58
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
59
+ false}'
60
+ example: '{"graphql_timeline_v2_bookmark_timeline": true, "blue_business_profile_image_shape_enabled":
61
+ true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
62
+ false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
63
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
64
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
65
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
66
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
67
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
68
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
69
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
70
+ false}'
71
+ type: string
72
+ responses:
73
+ '200':
74
+ content:
75
+ application/json:
76
+ schema:
77
+ $ref: '#/components/schemas/BookmarksResponse'
78
+ description: Successful operation
79
+ headers:
80
+ x-connection-hash:
81
+ schema:
82
+ type: string
83
+ x-rate-limit-limit:
84
+ schema:
85
+ type: integer
86
+ x-rate-limit-remaining:
87
+ schema:
88
+ type: integer
89
+ x-rate-limit-reset:
90
+ schema:
91
+ type: integer
92
+ x-response-time:
93
+ schema:
94
+ type: integer
95
+ x-tfe-preserve-body:
96
+ schema:
97
+ type: boolean
98
+ x-transaction-id:
99
+ schema:
100
+ type: string
101
+ x-twitter-response-tags:
102
+ schema:
103
+ type: string
104
+ tags:
105
+ - tweet
@@ -0,0 +1,204 @@
1
+ components:
2
+ schemas:
3
+ FollowResponse:
4
+ properties:
5
+ data:
6
+ $ref: '#/components/schemas/FollowResponseData'
7
+ required:
8
+ - data
9
+ FollowResponseData:
10
+ properties:
11
+ user:
12
+ $ref: '#/components/schemas/FollowResponseUser'
13
+ required:
14
+ - user
15
+ FollowResponseResult:
16
+ properties:
17
+ __typename:
18
+ $ref: ./../schemas/typename.yaml#/components/schemas/TypeName
19
+ timeline:
20
+ $ref: '#/components/schemas/FollowTimeline'
21
+ required:
22
+ - __typename
23
+ - timeline
24
+ FollowResponseUser:
25
+ properties:
26
+ result:
27
+ $ref: '#/components/schemas/FollowResponseResult'
28
+ required:
29
+ - result
30
+ FollowTimeline:
31
+ properties:
32
+ timeline:
33
+ $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
34
+ required:
35
+ - timeline
36
+ info:
37
+ title: Twitter OpenAPI
38
+ version: 0.0.1
39
+ openapi: 3.0.3
40
+ paths:
41
+ /graphql/IWP6Zt14sARO29lJT35bBw/Following:
42
+ get:
43
+ description: get user list of following
44
+ operationId: getFollowing
45
+ parameters:
46
+ - in: query
47
+ name: queryId
48
+ required: true
49
+ schema:
50
+ default: '"IWP6Zt14sARO29lJT35bBw"'
51
+ example: '"IWP6Zt14sARO29lJT35bBw"'
52
+ type: string
53
+ - in: query
54
+ name: variables
55
+ required: true
56
+ schema:
57
+ default: '{"userId": "44196397", "count": 20, "includePromotedContent":
58
+ false}'
59
+ example: '{"userId": "44196397", "count": 20, "includePromotedContent":
60
+ false}'
61
+ type: string
62
+ - in: query
63
+ name: features
64
+ required: true
65
+ schema:
66
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
67
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
68
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
69
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
70
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
71
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
72
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
73
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
74
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
75
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
76
+ false}'
77
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
78
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
79
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
80
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
81
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
82
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
83
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
84
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
85
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
86
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
87
+ false}'
88
+ type: string
89
+ responses:
90
+ '200':
91
+ content:
92
+ application/json:
93
+ schema:
94
+ $ref: '#/components/schemas/FollowResponse'
95
+ description: Successful operation
96
+ headers:
97
+ x-connection-hash:
98
+ schema:
99
+ type: string
100
+ x-rate-limit-limit:
101
+ schema:
102
+ type: integer
103
+ x-rate-limit-remaining:
104
+ schema:
105
+ type: integer
106
+ x-rate-limit-reset:
107
+ schema:
108
+ type: integer
109
+ x-response-time:
110
+ schema:
111
+ type: integer
112
+ x-tfe-preserve-body:
113
+ schema:
114
+ type: boolean
115
+ x-transaction-id:
116
+ schema:
117
+ type: string
118
+ x-twitter-response-tags:
119
+ schema:
120
+ type: string
121
+ tags:
122
+ - user-list
123
+ /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers:
124
+ get:
125
+ description: get user list of followers
126
+ operationId: getFollowers
127
+ parameters:
128
+ - in: query
129
+ name: queryId
130
+ required: true
131
+ schema:
132
+ default: '"djdTXDIk2qhd4OStqlUFeQ"'
133
+ example: '"djdTXDIk2qhd4OStqlUFeQ"'
134
+ type: string
135
+ - in: query
136
+ name: variables
137
+ required: true
138
+ schema:
139
+ default: '{"userId": "44196397", "count": 20, "includePromotedContent":
140
+ false}'
141
+ example: '{"userId": "44196397", "count": 20, "includePromotedContent":
142
+ false}'
143
+ type: string
144
+ - in: query
145
+ name: features
146
+ required: true
147
+ schema:
148
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
149
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
150
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
151
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
152
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
153
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
154
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
155
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
156
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
157
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
158
+ false}'
159
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
160
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
161
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
162
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
163
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
164
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
165
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
166
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
167
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
168
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
169
+ false}'
170
+ type: string
171
+ responses:
172
+ '200':
173
+ content:
174
+ application/json:
175
+ schema:
176
+ $ref: '#/components/schemas/FollowResponse'
177
+ description: Successful operation
178
+ headers:
179
+ x-connection-hash:
180
+ schema:
181
+ type: string
182
+ x-rate-limit-limit:
183
+ schema:
184
+ type: integer
185
+ x-rate-limit-remaining:
186
+ schema:
187
+ type: integer
188
+ x-rate-limit-reset:
189
+ schema:
190
+ type: integer
191
+ x-response-time:
192
+ schema:
193
+ type: integer
194
+ x-tfe-preserve-body:
195
+ schema:
196
+ type: boolean
197
+ x-transaction-id:
198
+ schema:
199
+ type: string
200
+ x-twitter-response-tags:
201
+ schema:
202
+ type: string
203
+ tags:
204
+ - user-list