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,38 @@
1
+ # Twitter OpenAPI
2
+
3
+ Twitter OpenAPI(Swagger) specification
4
+
5
+ - [Dart](https://github.com/fa0311/twitter_openapi_dart)
6
+ - [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
7
+ - [React Documents](https://github.com/fa0311/twitter-openapi-docs)
8
+
9
+ ## Usage
10
+
11
+ ```shell
12
+ openapi-generator-cli generate -g <language> -i https://raw.githubusercontent.com/fa0311/twitter-openapi/main/dist/typescript/openapi-3.0.yaml -o ./generated
13
+ ```
14
+
15
+ If the language supports variable-length arguments.
16
+
17
+ ```shell
18
+ openapi-generator-cli generate -g <language> -i https://raw.githubusercontent.com/fa0311/twitter-openapi/main/dist/dart/openapi-3.0.yaml -o ./generated
19
+ ```
20
+
21
+ Note that the license also inherits to the output.
22
+
23
+ ## Contribute
24
+
25
+ - `src` *.yaml files should be written according to the [v3.0/schema.json](https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json)
26
+ - `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
27
+
28
+ ### build
29
+
30
+ ```shell
31
+ python -V # Python 3.10.8
32
+ pip install -r requirements.txt
33
+ python tools/build.py
34
+ ```
35
+
36
+ ## License
37
+
38
+ [agpl-3.0](./LICENSE.txt)
@@ -0,0 +1,111 @@
1
+ components:
2
+ schemas: {}
3
+ securitySchemes:
4
+ AuthType:
5
+ description: OAuth2Session if you are logged in
6
+ in: header
7
+ name: x-twitter-auth-type
8
+ type: apiKey
9
+ CookieAuthToken:
10
+ description: HttpOnly cookie
11
+ in: cookie
12
+ name: auth_token
13
+ type: apiKey
14
+ CookieCt0:
15
+ description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
16
+ in: cookie
17
+ name: ct0
18
+ type: apiKey
19
+ CsrfToken:
20
+ description: document.cookie.split('; ').find(row => row.startsWith('ct0='));
21
+ in: header
22
+ name: x-csrf-token
23
+ type: apiKey
24
+ info:
25
+ contact:
26
+ email: yuki@yuki0311.com
27
+ description: Twitter OpenAPI(Swagger) specification
28
+ license:
29
+ name: GNU Affero General Public License v3.
30
+ url: https://raw.githubusercontent.com/fa0311/twitter-openapi/main/LICENSE.txt
31
+ termsOfService: https://github.com/fa0311
32
+ title: Twitter OpenAPI
33
+ version: 0.0.1
34
+ openapi: 3.0.3
35
+ paths:
36
+ /1.1/friends/following/list.json:
37
+ $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1friends~1following~1list.json
38
+ /1.1/friendships/create.json:
39
+ $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1create.json
40
+ /1.1/friendships/destroy.json:
41
+ $ref: ./paths/v1.1-post.yaml#/paths/~11.1~1friendships~1destroy.json
42
+ /1.1/search/typeahead.json:
43
+ $ref: ./paths/v1.1-get.yaml#/paths/~11.1~1search~1typeahead.json
44
+ /2/search/adaptive.json:
45
+ $ref: ./paths/v2.0-get.yaml#/paths/~12~1search~1adaptive.json
46
+ /graphql/1RyAhNwby-gzGCRVsMxKbQ/CreateTweet:
47
+ $ref: ./paths/post.yaml#/paths/~1graphql~11RyAhNwby-gzGCRVsMxKbQ~1CreateTweet
48
+ /graphql/2TemLyqrMpTeAmysdbnVqw/ListLatestTweetsTimeline:
49
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~12TemLyqrMpTeAmysdbnVqw~1ListLatestTweetsTimeline
50
+ /graphql/5fmEkRT-1AdHqEsbVgehMg/Likes:
51
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~15fmEkRT-1AdHqEsbVgehMg~1Likes
52
+ /graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
53
+ $ref: ./paths/profile.yaml#/paths/~1graphql~19zwVLJ48lmVUk8u_Gh9DmA~1ProfileSpotlightsQuery
54
+ /graphql/HCosKfLNW1AcOo3la3mMgg/HomeTimeline:
55
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~1HCosKfLNW1AcOo3la3mMgg~1HomeTimeline
56
+ /graphql/HuTx74BxAnezK1gWvYY7zg/UserTweets:
57
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1HuTx74BxAnezK1gWvYY7zg~1UserTweets
58
+ /graphql/IWP6Zt14sARO29lJT35bBw/Following:
59
+ $ref: ./paths/follow.yaml#/paths/~1graphql~1IWP6Zt14sARO29lJT35bBw~1Following
60
+ /graphql/RIWc55YCNyUJ-U3HHGYkdg/UserTweetsAndReplies:
61
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1RIWc55YCNyUJ-U3HHGYkdg~1UserTweetsAndReplies
62
+ /graphql/VaenaVgh5q5ih7kvyVjgtg/DeleteTweet:
63
+ $ref: ./paths/post.yaml#/paths/~1graphql~1VaenaVgh5q5ih7kvyVjgtg~1DeleteTweet
64
+ /graphql/YqiE3JL1KNgf9nSljYdxaA/UserMedia:
65
+ $ref: ./paths/usertweets.yaml#/paths/~1graphql~1YqiE3JL1KNgf9nSljYdxaA~1UserMedia
66
+ /graphql/ZYKSe-w7KEslx3JhSIk5LA/UnfavoriteTweet:
67
+ $ref: ./paths/post.yaml#/paths/~1graphql~1ZYKSe-w7KEslx3JhSIk5LA~1UnfavoriteTweet
68
+ /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers:
69
+ $ref: ./paths/follow.yaml#/paths/~1graphql~1djdTXDIk2qhd4OStqlUFeQ~1Followers
70
+ /graphql/iQtK4dl5hBmXewYZuEOKVw/DeleteRetweet:
71
+ $ref: ./paths/post.yaml#/paths/~1graphql~1iQtK4dl5hBmXewYZuEOKVw~1DeleteRetweet
72
+ /graphql/lI07N6Otwv1PhnEgXILM7A/FavoriteTweet:
73
+ $ref: ./paths/post.yaml#/paths/~1graphql~1lI07N6Otwv1PhnEgXILM7A~1FavoriteTweet
74
+ /graphql/ojPdsZsimiJrUGLR1sjUtA/CreateRetweet:
75
+ $ref: ./paths/post.yaml#/paths/~1graphql~1ojPdsZsimiJrUGLR1sjUtA~1CreateRetweet
76
+ /graphql/sLVLhk0bGj3MVFEKTdax1w/UserByScreenName:
77
+ $ref: ./paths/user.yaml#/paths/~1graphql~1sLVLhk0bGj3MVFEKTdax1w~1UserByScreenName
78
+ /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
79
+ $ref: ./paths/bookmarks.yaml#/paths/~1graphql~1tmd4ifV8RHltzn8ymGg1aw~1Bookmarks
80
+ /graphql/wNNG8DBB8EaXw1lq4vFWGA/TweetDetail:
81
+ $ref: ./paths/tweet.yaml#/paths/~1graphql~1wNNG8DBB8EaXw1lq4vFWGA~1TweetDetail
82
+ /graphql/zhX91JE87mWvfprhYE97xA/HomeLatestTimeline:
83
+ $ref: ./paths/timeline.yaml#/paths/~1graphql~1zhX91JE87mWvfprhYE97xA~1HomeLatestTimeline
84
+ /other:
85
+ $ref: ./paths/other.yaml#/paths/~1other
86
+ security:
87
+ - CsrfToken: []
88
+ - CookieCt0: []
89
+ - CookieAuthToken: []
90
+ - AuthType: []
91
+ servers:
92
+ - url: https://twitter.com/i/api
93
+ tags:
94
+ - description: response User
95
+ name: user
96
+ - description: response User list
97
+ name: user-list
98
+ - description: response tweet
99
+ name: tweet
100
+ - description: post
101
+ name: post
102
+ - description: legacy APIs get
103
+ name: v1.1-get
104
+ - description: legacy APIs post
105
+ name: v1.1-post
106
+ - description: legacy APIs get
107
+ name: v2.0-get
108
+ - description: legacy APIs post
109
+ name: v2.0-post
110
+ - description: other
111
+ name: other
@@ -0,0 +1,134 @@
1
+ components:
2
+ schemas:
3
+ BookmarksResponse:
4
+ properties:
5
+ data:
6
+ $ref: '#/components/schemas/BookmarksResponseData'
7
+ required:
8
+ - data
9
+ BookmarksResponseData:
10
+ properties:
11
+ bookmark_timeline_v2:
12
+ $ref: '#/components/schemas/BookmarksTimeline'
13
+ required:
14
+ - bookmark_timeline_v2
15
+ BookmarksTimeline:
16
+ properties:
17
+ timeline:
18
+ $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
19
+ required:
20
+ - timeline
21
+ info:
22
+ title: Twitter OpenAPI
23
+ version: 0.0.1
24
+ openapi: 3.0.3
25
+ paths:
26
+ /graphql/tmd4ifV8RHltzn8ymGg1aw/Bookmarks:
27
+ get:
28
+ description: get bookmarks
29
+ operationId: getBookmarks
30
+ parameters:
31
+ - in: header
32
+ name: user-agent
33
+ required: true
34
+ schema:
35
+ default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
36
+ like Gecko) Chrome/112.0.0.0 Safari/537.36
37
+ description: UserAgent, some APIs may be rejected if changed.
38
+ type: string
39
+ - in: header
40
+ name: authorization
41
+ required: true
42
+ schema:
43
+ default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
44
+ description: It is a constant value and does not need to be changed.
45
+ type: string
46
+ - in: header
47
+ name: x-twitter-active-user
48
+ required: true
49
+ schema:
50
+ default: 'yes'
51
+ description: Unknown what this value means.
52
+ type: string
53
+ - in: header
54
+ name: x-twitter-client-language
55
+ required: true
56
+ schema:
57
+ default: en
58
+ description: language code.
59
+ type: string
60
+ - in: query
61
+ name: queryId
62
+ required: true
63
+ schema:
64
+ default: '"tmd4ifV8RHltzn8ymGg1aw"'
65
+ example: '"tmd4ifV8RHltzn8ymGg1aw"'
66
+ type: string
67
+ - in: query
68
+ name: variables
69
+ required: true
70
+ schema:
71
+ default: '{"count": 20, "includePromotedContent": true}'
72
+ example: '{"count": 20, "includePromotedContent": true}'
73
+ type: string
74
+ - in: query
75
+ name: features
76
+ required: true
77
+ schema:
78
+ default: '{"graphql_timeline_v2_bookmark_timeline": true, "blue_business_profile_image_shape_enabled":
79
+ true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
80
+ false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
81
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
82
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
83
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
84
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
85
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
86
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
87
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
88
+ false}'
89
+ example: '{"graphql_timeline_v2_bookmark_timeline": true, "blue_business_profile_image_shape_enabled":
90
+ true, "responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
91
+ false, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
92
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
93
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
94
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
95
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
96
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
97
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
98
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
99
+ false}'
100
+ type: string
101
+ responses:
102
+ '200':
103
+ content:
104
+ application/json:
105
+ schema:
106
+ $ref: '#/components/schemas/BookmarksResponse'
107
+ description: Successful operation
108
+ headers:
109
+ x-connection-hash:
110
+ schema:
111
+ type: string
112
+ x-rate-limit-limit:
113
+ schema:
114
+ type: integer
115
+ x-rate-limit-remaining:
116
+ schema:
117
+ type: integer
118
+ x-rate-limit-reset:
119
+ schema:
120
+ type: integer
121
+ x-response-time:
122
+ schema:
123
+ type: integer
124
+ x-tfe-preserve-body:
125
+ schema:
126
+ type: boolean
127
+ x-transaction-id:
128
+ schema:
129
+ type: string
130
+ x-twitter-response-tags:
131
+ schema:
132
+ type: string
133
+ tags:
134
+ - tweet
@@ -0,0 +1,262 @@
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: header
47
+ name: user-agent
48
+ required: true
49
+ schema:
50
+ default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
51
+ like Gecko) Chrome/112.0.0.0 Safari/537.36
52
+ description: UserAgent, some APIs may be rejected if changed.
53
+ type: string
54
+ - in: header
55
+ name: authorization
56
+ required: true
57
+ schema:
58
+ default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
59
+ description: It is a constant value and does not need to be changed.
60
+ type: string
61
+ - in: header
62
+ name: x-twitter-active-user
63
+ required: true
64
+ schema:
65
+ default: 'yes'
66
+ description: Unknown what this value means.
67
+ type: string
68
+ - in: header
69
+ name: x-twitter-client-language
70
+ required: true
71
+ schema:
72
+ default: en
73
+ description: language code.
74
+ type: string
75
+ - in: query
76
+ name: queryId
77
+ required: true
78
+ schema:
79
+ default: '"IWP6Zt14sARO29lJT35bBw"'
80
+ example: '"IWP6Zt14sARO29lJT35bBw"'
81
+ type: string
82
+ - in: query
83
+ name: variables
84
+ required: true
85
+ schema:
86
+ default: '{"userId": "44196397", "count": 20, "includePromotedContent":
87
+ false}'
88
+ example: '{"userId": "44196397", "count": 20, "includePromotedContent":
89
+ false}'
90
+ type: string
91
+ - in: query
92
+ name: features
93
+ required: true
94
+ schema:
95
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
96
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
97
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
98
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
99
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
100
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
101
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
102
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
103
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
104
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
105
+ false}'
106
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
107
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
108
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
109
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
110
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
111
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
112
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
113
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
114
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
115
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
116
+ false}'
117
+ type: string
118
+ responses:
119
+ '200':
120
+ content:
121
+ application/json:
122
+ schema:
123
+ $ref: '#/components/schemas/FollowResponse'
124
+ description: Successful operation
125
+ headers:
126
+ x-connection-hash:
127
+ schema:
128
+ type: string
129
+ x-rate-limit-limit:
130
+ schema:
131
+ type: integer
132
+ x-rate-limit-remaining:
133
+ schema:
134
+ type: integer
135
+ x-rate-limit-reset:
136
+ schema:
137
+ type: integer
138
+ x-response-time:
139
+ schema:
140
+ type: integer
141
+ x-tfe-preserve-body:
142
+ schema:
143
+ type: boolean
144
+ x-transaction-id:
145
+ schema:
146
+ type: string
147
+ x-twitter-response-tags:
148
+ schema:
149
+ type: string
150
+ tags:
151
+ - user-list
152
+ /graphql/djdTXDIk2qhd4OStqlUFeQ/Followers:
153
+ get:
154
+ description: get user list of followers
155
+ operationId: getFollowers
156
+ parameters:
157
+ - in: header
158
+ name: user-agent
159
+ required: true
160
+ schema:
161
+ default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
162
+ like Gecko) Chrome/112.0.0.0 Safari/537.36
163
+ description: UserAgent, some APIs may be rejected if changed.
164
+ type: string
165
+ - in: header
166
+ name: authorization
167
+ required: true
168
+ schema:
169
+ default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
170
+ description: It is a constant value and does not need to be changed.
171
+ type: string
172
+ - in: header
173
+ name: x-twitter-active-user
174
+ required: true
175
+ schema:
176
+ default: 'yes'
177
+ description: Unknown what this value means.
178
+ type: string
179
+ - in: header
180
+ name: x-twitter-client-language
181
+ required: true
182
+ schema:
183
+ default: en
184
+ description: language code.
185
+ type: string
186
+ - in: query
187
+ name: queryId
188
+ required: true
189
+ schema:
190
+ default: '"djdTXDIk2qhd4OStqlUFeQ"'
191
+ example: '"djdTXDIk2qhd4OStqlUFeQ"'
192
+ type: string
193
+ - in: query
194
+ name: variables
195
+ required: true
196
+ schema:
197
+ default: '{"userId": "44196397", "count": 20, "includePromotedContent":
198
+ false}'
199
+ example: '{"userId": "44196397", "count": 20, "includePromotedContent":
200
+ false}'
201
+ type: string
202
+ - in: query
203
+ name: features
204
+ required: true
205
+ schema:
206
+ default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
207
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
208
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
209
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
210
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
211
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
212
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
213
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
214
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
215
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
216
+ false}'
217
+ example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
218
+ true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
219
+ true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
220
+ false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
221
+ true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
222
+ true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
223
+ true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
224
+ false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
225
+ false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
226
+ false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
227
+ false}'
228
+ type: string
229
+ responses:
230
+ '200':
231
+ content:
232
+ application/json:
233
+ schema:
234
+ $ref: '#/components/schemas/FollowResponse'
235
+ description: Successful operation
236
+ headers:
237
+ x-connection-hash:
238
+ schema:
239
+ type: string
240
+ x-rate-limit-limit:
241
+ schema:
242
+ type: integer
243
+ x-rate-limit-remaining:
244
+ schema:
245
+ type: integer
246
+ x-rate-limit-reset:
247
+ schema:
248
+ type: integer
249
+ x-response-time:
250
+ schema:
251
+ type: integer
252
+ x-tfe-preserve-body:
253
+ schema:
254
+ type: boolean
255
+ x-transaction-id:
256
+ schema:
257
+ type: string
258
+ x-twitter-response-tags:
259
+ schema:
260
+ type: string
261
+ tags:
262
+ - user-list
@@ -0,0 +1,96 @@
1
+ components:
2
+ schemas:
3
+ CommunitiesActions:
4
+ properties:
5
+ create:
6
+ type: boolean
7
+ required:
8
+ - create
9
+ type: object
10
+ OneFactorLoginEligibility:
11
+ properties:
12
+ fetchStatus:
13
+ type: string
14
+ required:
15
+ - fetchStatus
16
+ type: object
17
+ OtherResponse:
18
+ properties:
19
+ Session:
20
+ $ref: '#/components/schemas/Session'
21
+ type: object
22
+ Session:
23
+ properties:
24
+ SsoInitTokens:
25
+ type: object
26
+ communitiesActions:
27
+ $ref: '#/components/schemas/CommunitiesActions'
28
+ country:
29
+ pattern: ^[A-Z]{2}$
30
+ type: string
31
+ guestId:
32
+ pattern: ^[0-9]+$
33
+ type: string
34
+ hasCommunityMemberships:
35
+ type: boolean
36
+ isActiveCreator:
37
+ type: boolean
38
+ isRestrictedSession:
39
+ type: boolean
40
+ isSuperFollowSubscriber:
41
+ type: boolean
42
+ language:
43
+ pattern: ^[a-z]{2}$
44
+ type: string
45
+ oneFactorLoginEligibility:
46
+ $ref: '#/components/schemas/OneFactorLoginEligibility'
47
+ superFollowersCount:
48
+ type: integer
49
+ superFollowsApplicationStatus:
50
+ type: string
51
+ userFeatures:
52
+ $ref: '#/components/schemas/UserFeatures'
53
+ user_id:
54
+ pattern: ^[0-9]+$
55
+ type: string
56
+ required:
57
+ - country
58
+ - communitiesActions
59
+ - isActiveCreator
60
+ - isRestrictedSession
61
+ - guestId
62
+ - hasCommunityMemberships
63
+ - language
64
+ - oneFactorLoginEligibility
65
+ - ssoInitTokens
66
+ - superFollowersCount
67
+ - superFollowsApplicationStatus
68
+ - user_id
69
+ - userFeatures
70
+ - isSuperFollowSubscriber
71
+ type: object
72
+ UserFeatures:
73
+ properties:
74
+ mediatool_studio_library:
75
+ type: boolean
76
+ required:
77
+ - mediatool_studio_library
78
+ type: object
79
+ info:
80
+ title: Twitter OpenAPI
81
+ version: 0.0.1
82
+ openapi: 3.0.3
83
+ paths:
84
+ /other:
85
+ get:
86
+ description: This is not an actual endpoint
87
+ operationId: other
88
+ responses:
89
+ '200':
90
+ content:
91
+ application/json:
92
+ schema:
93
+ $ref: '#/components/schemas/OtherResponse'
94
+ description: Successful operation
95
+ tags:
96
+ - other