twitter-openapi-typescript-generated 0.0.6 → 0.0.8

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 (241) hide show
  1. package/.openapi-generator/FILES +18 -1
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +0 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +0 -6
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/TweetApi.d.ts +17 -12
  8. package/dist/apis/TweetApi.d.ts.map +1 -1
  9. package/dist/apis/TweetApi.js +90 -55
  10. package/dist/apis/TweetApi.js.map +1 -1
  11. package/dist/apis/UserApi.d.ts +27 -2
  12. package/dist/apis/UserApi.d.ts.map +1 -1
  13. package/dist/apis/UserApi.js +166 -6
  14. package/dist/apis/UserApi.js.map +1 -1
  15. package/dist/apis/UserListApi.d.ts +41 -3
  16. package/dist/apis/UserListApi.d.ts.map +1 -1
  17. package/dist/apis/UserListApi.js +255 -12
  18. package/dist/apis/UserListApi.js.map +1 -1
  19. package/dist/models/ContentItemType.d.ts +2 -0
  20. package/dist/models/ContentItemType.d.ts.map +1 -1
  21. package/dist/models/ContentItemType.js +3 -1
  22. package/dist/models/ContentItemType.js.map +1 -1
  23. package/dist/models/InstructionType.d.ts +3 -0
  24. package/dist/models/InstructionType.d.ts.map +1 -1
  25. package/dist/models/InstructionType.js +3 -0
  26. package/dist/models/InstructionType.js.map +1 -1
  27. package/dist/models/InstructionUnion.d.ts +9 -0
  28. package/dist/models/InstructionUnion.d.ts.map +1 -1
  29. package/dist/models/InstructionUnion.js +15 -0
  30. package/dist/models/InstructionUnion.js.map +1 -1
  31. package/dist/models/ItemContentUnion.d.ts +6 -0
  32. package/dist/models/ItemContentUnion.d.ts.map +1 -1
  33. package/dist/models/ItemContentUnion.js +10 -0
  34. package/dist/models/ItemContentUnion.js.map +1 -1
  35. package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
  36. package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
  37. package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
  38. package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
  39. package/dist/models/SearchByRawQuery.d.ts +33 -0
  40. package/dist/models/SearchByRawQuery.d.ts.map +1 -0
  41. package/dist/models/SearchByRawQuery.js +52 -0
  42. package/dist/models/SearchByRawQuery.js.map +1 -0
  43. package/dist/models/SearchTimeline.d.ts +33 -0
  44. package/dist/models/SearchTimeline.d.ts.map +1 -0
  45. package/dist/models/SearchTimeline.js +52 -0
  46. package/dist/models/SearchTimeline.js.map +1 -0
  47. package/dist/models/SearchTimelineData.d.ts +33 -0
  48. package/dist/models/SearchTimelineData.d.ts.map +1 -0
  49. package/dist/models/SearchTimelineData.js +52 -0
  50. package/dist/models/SearchTimelineData.js.map +1 -0
  51. package/dist/models/SearchTimelineResponse.d.ts +33 -0
  52. package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
  53. package/dist/models/SearchTimelineResponse.js +52 -0
  54. package/dist/models/SearchTimelineResponse.js.map +1 -0
  55. package/dist/models/TimelineAddToModule.d.ts +52 -0
  56. package/dist/models/TimelineAddToModule.d.ts.map +1 -0
  57. package/dist/models/TimelineAddToModule.js +62 -0
  58. package/dist/models/TimelineAddToModule.js.map +1 -0
  59. package/dist/models/TimelineMessagePrompt.d.ts +33 -0
  60. package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
  61. package/dist/models/TimelineMessagePrompt.js +52 -0
  62. package/dist/models/TimelineMessagePrompt.js.map +1 -0
  63. package/dist/models/TimelinePrompt.d.ts +33 -0
  64. package/dist/models/TimelinePrompt.d.ts.map +1 -0
  65. package/dist/models/TimelinePrompt.js +52 -0
  66. package/dist/models/TimelinePrompt.js.map +1 -0
  67. package/dist/models/TimelineReplaceEntry.d.ts +46 -0
  68. package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
  69. package/dist/models/TimelineReplaceEntry.js +59 -0
  70. package/dist/models/TimelineReplaceEntry.js.map +1 -0
  71. package/dist/models/TimelineShowAlert.d.ts +97 -0
  72. package/dist/models/TimelineShowAlert.d.ts.map +1 -0
  73. package/dist/models/TimelineShowAlert.js +85 -0
  74. package/dist/models/TimelineShowAlert.js.map +1 -0
  75. package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
  76. package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
  77. package/dist/models/TimelineShowAlertRichText.js +53 -0
  78. package/dist/models/TimelineShowAlertRichText.js.map +1 -0
  79. package/dist/models/TweetFavoritersResponse.d.ts +33 -0
  80. package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
  81. package/dist/models/TweetFavoritersResponse.js +52 -0
  82. package/dist/models/TweetFavoritersResponse.js.map +1 -0
  83. package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
  84. package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
  85. package/dist/models/TweetFavoritersResponseData.js +52 -0
  86. package/dist/models/TweetFavoritersResponseData.js.map +1 -0
  87. package/dist/models/TweetLegacy.d.ts +7 -0
  88. package/dist/models/TweetLegacy.d.ts.map +1 -1
  89. package/dist/models/TweetLegacy.js +3 -0
  90. package/dist/models/TweetLegacy.js.map +1 -1
  91. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  92. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  93. package/dist/models/TweetLegacySelfThread.js +51 -0
  94. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  95. package/dist/models/TweetRetweetersResponse.d.ts +33 -0
  96. package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
  97. package/dist/models/TweetRetweetersResponse.js +52 -0
  98. package/dist/models/TweetRetweetersResponse.js.map +1 -0
  99. package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
  100. package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
  101. package/dist/models/TweetRetweetersResponseData.js +52 -0
  102. package/dist/models/TweetRetweetersResponseData.js.map +1 -0
  103. package/dist/models/UsersResponse.d.ts +33 -0
  104. package/dist/models/UsersResponse.d.ts.map +1 -0
  105. package/dist/models/UsersResponse.js +52 -0
  106. package/dist/models/UsersResponse.js.map +1 -0
  107. package/dist/models/UsersResponseData.d.ts +33 -0
  108. package/dist/models/UsersResponseData.d.ts.map +1 -0
  109. package/dist/models/UsersResponseData.js +52 -0
  110. package/dist/models/UsersResponseData.js.map +1 -0
  111. package/dist/models/index.d.ts +18 -1
  112. package/dist/models/index.d.ts.map +1 -1
  113. package/dist/models/index.js +18 -1
  114. package/dist/models/index.js.map +1 -1
  115. package/package.json +3 -2
  116. package/src/apis/DefaultApi.ts +0 -9
  117. package/src/apis/TweetApi.ts +102 -87
  118. package/src/apis/UserApi.ts +171 -9
  119. package/src/apis/UserListApi.ts +267 -18
  120. package/src/models/ContentItemType.ts +3 -1
  121. package/src/models/InstructionType.ts +3 -0
  122. package/src/models/InstructionUnion.ts +34 -1
  123. package/src/models/ItemContentUnion.ts +23 -1
  124. package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
  125. package/src/models/SearchByRawQuery.ts +73 -0
  126. package/src/models/SearchTimeline.ts +73 -0
  127. package/src/models/SearchTimelineData.ts +73 -0
  128. package/src/models/SearchTimelineResponse.ts +73 -0
  129. package/src/models/TimelineAddToModule.ts +105 -0
  130. package/src/models/TimelineMessagePrompt.ts +72 -0
  131. package/src/models/TimelinePrompt.ts +72 -0
  132. package/src/models/TimelineReplaceEntry.ts +97 -0
  133. package/src/models/TimelineShowAlert.ts +169 -0
  134. package/src/models/TimelineShowAlertRichText.ts +73 -0
  135. package/src/models/TweetFavoritersResponse.ts +73 -0
  136. package/src/models/TweetFavoritersResponseData.ts +73 -0
  137. package/src/models/TweetLegacy.ts +14 -0
  138. package/src/models/TweetLegacySelfThread.ts +66 -0
  139. package/src/models/TweetRetweetersResponse.ts +73 -0
  140. package/src/models/TweetRetweetersResponseData.ts +73 -0
  141. package/src/models/UsersResponse.ts +73 -0
  142. package/src/models/UsersResponseData.ts +73 -0
  143. package/src/models/index.ts +18 -1
  144. package/tools/openapi-generator-config.yaml +2 -2
  145. package/tools/win/replace.py +1 -1
  146. package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +12 -0
  147. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
  148. package/twitter-openapi/dist/{dart → compatible}/paths/follow.yaml +82 -63
  149. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
  150. package/twitter-openapi/dist/{dart → compatible}/paths/timeline.yaml +118 -111
  151. package/twitter-openapi/dist/compatible/paths/tweet.yaml +297 -0
  152. package/twitter-openapi/dist/compatible/paths/user.yaml +227 -0
  153. package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +0 -28
  154. package/twitter-openapi/dist/{typescript → compatible}/schemas/content.yaml +14 -0
  155. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +160 -0
  156. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
  157. package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
  158. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
  159. package/twitter-openapi/dist/docs/paths/follow.yaml +193 -112
  160. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
  161. package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -173
  162. package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -61
  163. package/twitter-openapi/dist/docs/paths/user.yaml +214 -41
  164. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
  165. package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
  166. package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
  167. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
  168. package/twitter-openapi/src/config/placeholder.json +155 -0
  169. package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
  170. package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
  171. package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
  172. package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
  173. package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
  174. package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
  175. package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -0
  176. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  177. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  178. package/twitter-openapi/tools/build_config.py +67 -190
  179. package/twitter-openapi/tools/hooks.py +28 -7
  180. package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
  181. package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
  182. package/dist/models/ListTweetsTimelineResponse.js +0 -52
  183. package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
  184. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  185. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
  186. package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
  187. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
  188. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
  189. package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
  190. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
  191. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  192. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  193. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  194. package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
  195. package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
  196. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
  197. package/twitter-openapi/dist/test/paths/follow.yaml +0 -218
  198. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  199. package/twitter-openapi/dist/test/paths/post.yaml +0 -527
  200. package/twitter-openapi/dist/test/paths/timeline.yaml +0 -314
  201. package/twitter-openapi/dist/test/paths/tweet.yaml +0 -112
  202. package/twitter-openapi/dist/test/paths/user.yaml +0 -90
  203. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  204. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  205. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  206. package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
  207. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  208. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  209. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  210. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  211. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  212. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
  213. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  214. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  215. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  216. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
  217. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  218. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
  219. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
  220. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
  221. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
  222. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -396
  223. package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
  224. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  225. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  226. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  227. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  228. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
  229. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  230. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  231. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  232. /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
  233. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  234. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  235. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  236. /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
  237. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  238. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  239. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  240. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  241. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -1,159 +0,0 @@
1
- components:
2
- schemas:
3
- ProfileResponse:
4
- properties:
5
- data:
6
- $ref: '#/components/schemas/ProfileResponseData'
7
- required:
8
- - data
9
- ProfileResponseData:
10
- properties:
11
- user_result_by_screen_name:
12
- $ref: '#/components/schemas/UserResultByScreenName'
13
- required:
14
- - user_result_by_screen_name
15
- UserResultByScreenName:
16
- properties:
17
- id:
18
- pattern: ^[0-9a-zA-Z]+$
19
- type: string
20
- result:
21
- $ref: '#/components/schemas/UserResultByScreenNameResult'
22
- required:
23
- - id
24
- - result
25
- UserResultByScreenNameLegacy:
26
- properties:
27
- blocked_by:
28
- type: boolean
29
- blocking:
30
- type: boolean
31
- followed_by:
32
- type: boolean
33
- following:
34
- type: boolean
35
- name:
36
- type: string
37
- protected:
38
- type: boolean
39
- screen_name:
40
- type: string
41
- UserResultByScreenNameResult:
42
- properties:
43
- __typename:
44
- $ref: ./../schemas/typename.yaml#/components/schemas/TypeName
45
- id:
46
- pattern: ^[0-9a-zA-Z=]+$
47
- type: string
48
- legacy:
49
- $ref: '#/components/schemas/UserResultByScreenNameLegacy'
50
- profilemodules:
51
- type: object
52
- rest_id:
53
- pattern: ^[0-9]+$
54
- type: string
55
- required:
56
- - __typename
57
- - id
58
- - legacy
59
- - profilemodules
60
- - rest_id
61
- info:
62
- title: Twitter OpenAPI
63
- version: 0.0.1
64
- openapi: 3.0.3
65
- paths:
66
- /graphql/{pathQueryId}/ProfileSpotlightsQuery:
67
- get:
68
- description: get user by screen name
69
- operationId: getProfileSpotlightsQuery
70
- parameters:
71
- - in: header
72
- name: user-agent
73
- required: true
74
- schema:
75
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
76
- like Gecko) Chrome/112.0.0.0 Safari/537.36
77
- description: UserAgent, some APIs may be rejected if changed.
78
- type: string
79
- - in: header
80
- name: authorization
81
- required: true
82
- schema:
83
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
84
- description: It is a constant value and does not need to be changed.
85
- type: string
86
- - in: header
87
- name: x-twitter-active-user
88
- required: true
89
- schema:
90
- default: 'yes'
91
- description: Unknown what this value means.
92
- type: string
93
- - in: header
94
- name: x-twitter-client-language
95
- required: true
96
- schema:
97
- default: en
98
- description: language code.
99
- type: string
100
- - in: path
101
- name: pathQueryId
102
- required: true
103
- schema:
104
- default: 9zwVLJ48lmVUk8u_Gh9DmA
105
- example: 9zwVLJ48lmVUk8u_Gh9DmA
106
- type: string
107
- - in: query
108
- name: queryId
109
- required: true
110
- schema:
111
- default: '"9zwVLJ48lmVUk8u_Gh9DmA"'
112
- example: '"9zwVLJ48lmVUk8u_Gh9DmA"'
113
- type: string
114
- - in: query
115
- name: variables
116
- required: true
117
- schema:
118
- default: '{"screen_name": "elonmusk"}'
119
- example: '{"screen_name": "elonmusk"}'
120
- type: string
121
- - in: query
122
- name: features
123
- required: true
124
- schema:
125
- default: '{}'
126
- example: '{}'
127
- type: string
128
- responses:
129
- '200':
130
- content:
131
- application/json:
132
- schema:
133
- $ref: '#/components/schemas/ProfileResponse'
134
- description: Successful operation
135
- headers:
136
- x-connection-hash:
137
- schema:
138
- type: string
139
- x-rate-limit-limit:
140
- schema:
141
- type: integer
142
- x-rate-limit-remaining:
143
- schema:
144
- type: integer
145
- x-rate-limit-reset:
146
- schema:
147
- type: integer
148
- x-response-time:
149
- schema:
150
- type: integer
151
- x-tfe-preserve-body:
152
- schema:
153
- type: boolean
154
- x-transaction-id:
155
- schema:
156
- type: string
157
- x-twitter-response-tags:
158
- schema:
159
- type: string
@@ -1,141 +0,0 @@
1
- components:
2
- schemas:
3
- TweetDetailResponse:
4
- properties:
5
- data:
6
- $ref: '#/components/schemas/TweetDetailResponseData'
7
- required:
8
- - data
9
- TweetDetailResponseData:
10
- properties:
11
- threaded_conversation_with_injections_v2:
12
- $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
13
- required:
14
- - threaded_conversation_with_injections_v2
15
- info:
16
- title: Twitter OpenAPI
17
- version: 0.0.1
18
- openapi: 3.0.3
19
- paths:
20
- /graphql/{pathQueryId}/TweetDetail:
21
- get:
22
- description: get TweetDetail
23
- operationId: getTweetDetail
24
- parameters:
25
- - in: header
26
- name: user-agent
27
- required: true
28
- schema:
29
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
30
- like Gecko) Chrome/112.0.0.0 Safari/537.36
31
- description: UserAgent, some APIs may be rejected if changed.
32
- type: string
33
- - in: header
34
- name: authorization
35
- required: true
36
- schema:
37
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
38
- description: It is a constant value and does not need to be changed.
39
- type: string
40
- - in: header
41
- name: x-twitter-active-user
42
- required: true
43
- schema:
44
- default: 'yes'
45
- description: Unknown what this value means.
46
- type: string
47
- - in: header
48
- name: x-twitter-client-language
49
- required: true
50
- schema:
51
- default: en
52
- description: language code.
53
- type: string
54
- - in: path
55
- name: pathQueryId
56
- required: true
57
- schema:
58
- default: wNNG8DBB8EaXw1lq4vFWGA
59
- example: wNNG8DBB8EaXw1lq4vFWGA
60
- type: string
61
- - in: query
62
- name: queryId
63
- required: true
64
- schema:
65
- default: '"wNNG8DBB8EaXw1lq4vFWGA"'
66
- example: '"wNNG8DBB8EaXw1lq4vFWGA"'
67
- type: string
68
- - in: query
69
- name: variables
70
- required: true
71
- schema:
72
- default: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
73
- false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
74
- true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
75
- true}'
76
- example: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
77
- false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
78
- true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
79
- true}'
80
- type: string
81
- - in: query
82
- name: features
83
- required: true
84
- schema:
85
- default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
86
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
87
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
88
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
89
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
90
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
91
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
92
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
93
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
94
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
95
- false}'
96
- example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
97
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
98
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
99
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
100
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
101
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
102
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
103
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
104
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
105
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
106
- false}'
107
- type: string
108
- responses:
109
- '200':
110
- content:
111
- application/json:
112
- schema:
113
- $ref: '#/components/schemas/TweetDetailResponse'
114
- description: Successful operation
115
- headers:
116
- x-connection-hash:
117
- schema:
118
- type: string
119
- x-rate-limit-limit:
120
- schema:
121
- type: integer
122
- x-rate-limit-remaining:
123
- schema:
124
- type: integer
125
- x-rate-limit-reset:
126
- schema:
127
- type: integer
128
- x-response-time:
129
- schema:
130
- type: integer
131
- x-tfe-preserve-body:
132
- schema:
133
- type: boolean
134
- x-transaction-id:
135
- schema:
136
- type: string
137
- x-twitter-response-tags:
138
- schema:
139
- type: string
140
- tags:
141
- - tweet
@@ -1,119 +0,0 @@
1
- components:
2
- schemas:
3
- UserResponse:
4
- properties:
5
- data:
6
- $ref: '#/components/schemas/UserResponseData'
7
- required:
8
- - data
9
- UserResponseData:
10
- properties:
11
- user:
12
- $ref: ./../schemas/user.yaml#/components/schemas/UserResults
13
- required:
14
- - user
15
- info:
16
- title: Twitter OpenAPI
17
- version: 0.0.1
18
- openapi: 3.0.3
19
- paths:
20
- /graphql/{pathQueryId}/UserByScreenName:
21
- get:
22
- description: get user by screen name
23
- operationId: getUserByScreenName
24
- parameters:
25
- - in: header
26
- name: user-agent
27
- required: true
28
- schema:
29
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
30
- like Gecko) Chrome/112.0.0.0 Safari/537.36
31
- description: UserAgent, some APIs may be rejected if changed.
32
- type: string
33
- - in: header
34
- name: authorization
35
- required: true
36
- schema:
37
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
38
- description: It is a constant value and does not need to be changed.
39
- type: string
40
- - in: header
41
- name: x-twitter-active-user
42
- required: true
43
- schema:
44
- default: 'yes'
45
- description: Unknown what this value means.
46
- type: string
47
- - in: header
48
- name: x-twitter-client-language
49
- required: true
50
- schema:
51
- default: en
52
- description: language code.
53
- type: string
54
- - in: path
55
- name: pathQueryId
56
- required: true
57
- schema:
58
- default: sLVLhk0bGj3MVFEKTdax1w
59
- example: sLVLhk0bGj3MVFEKTdax1w
60
- type: string
61
- - in: query
62
- name: queryId
63
- required: true
64
- schema:
65
- default: '"sLVLhk0bGj3MVFEKTdax1w"'
66
- example: '"sLVLhk0bGj3MVFEKTdax1w"'
67
- type: string
68
- - in: query
69
- name: variables
70
- required: true
71
- schema:
72
- default: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
73
- example: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
74
- type: string
75
- - in: query
76
- name: features
77
- required: true
78
- schema:
79
- default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
80
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
81
- false, "responsive_web_graphql_timeline_navigation_enabled": true}'
82
- example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
83
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
84
- false, "responsive_web_graphql_timeline_navigation_enabled": true}'
85
- type: string
86
- responses:
87
- '200':
88
- content:
89
- application/json:
90
- schema:
91
- $ref: '#/components/schemas/UserResponse'
92
- description: Successful operation
93
- headers:
94
- x-connection-hash:
95
- schema:
96
- type: string
97
- x-rate-limit-limit:
98
- schema:
99
- type: integer
100
- x-rate-limit-remaining:
101
- schema:
102
- type: integer
103
- x-rate-limit-reset:
104
- schema:
105
- type: integer
106
- x-response-time:
107
- schema:
108
- type: integer
109
- x-tfe-preserve-body:
110
- schema:
111
- type: boolean
112
- x-transaction-id:
113
- schema:
114
- type: string
115
- x-twitter-response-tags:
116
- schema:
117
- type: string
118
- tags:
119
- - user