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,248 @@
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
+ - content:
32
+ application/json:
33
+ required:
34
+ - t
35
+ - m
36
+ - d
37
+ - '4'
38
+ - i
39
+ - f
40
+ - V
41
+ - '8'
42
+ - R
43
+ - H
44
+ - l
45
+ - t
46
+ - z
47
+ - n
48
+ - '8'
49
+ - y
50
+ - m
51
+ - G
52
+ - g
53
+ - '1'
54
+ - a
55
+ - w
56
+ schema:
57
+ default: tmd4ifV8RHltzn8ymGg1aw
58
+ example: tmd4ifV8RHltzn8ymGg1aw
59
+ type: string
60
+ in: query
61
+ name: queryId
62
+ required: true
63
+ - content:
64
+ application/json:
65
+ required:
66
+ - count
67
+ - includePromotedContent
68
+ schema:
69
+ properties:
70
+ count:
71
+ default: 20
72
+ example: 20
73
+ type: integer
74
+ includePromotedContent:
75
+ default: true
76
+ example: true
77
+ type: boolean
78
+ required:
79
+ - count
80
+ - includePromotedContent
81
+ type: object
82
+ in: query
83
+ name: variables
84
+ required: true
85
+ - content:
86
+ application/json:
87
+ required:
88
+ - graphql_timeline_v2_bookmark_timeline
89
+ - blue_business_profile_image_shape_enabled
90
+ - responsive_web_graphql_exclude_directive_enabled
91
+ - verified_phone_label_enabled
92
+ - responsive_web_graphql_timeline_navigation_enabled
93
+ - responsive_web_graphql_skip_user_profile_image_extensions_enabled
94
+ - tweetypie_unmention_optimization_enabled
95
+ - vibe_api_enabled
96
+ - responsive_web_edit_tweet_api_enabled
97
+ - graphql_is_translatable_rweb_tweet_is_translatable_enabled
98
+ - view_counts_everywhere_api_enabled
99
+ - longform_notetweets_consumption_enabled
100
+ - tweet_awards_web_tipping_enabled
101
+ - freedom_of_speech_not_reach_fetch_enabled
102
+ - standardized_nudges_misinfo
103
+ - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
104
+ - interactive_text_enabled
105
+ - responsive_web_text_conversations_enabled
106
+ - longform_notetweets_rich_text_read_enabled
107
+ - responsive_web_enhance_cards_enabled
108
+ schema:
109
+ properties:
110
+ blue_business_profile_image_shape_enabled:
111
+ default: true
112
+ example: true
113
+ type: boolean
114
+ freedom_of_speech_not_reach_fetch_enabled:
115
+ default: false
116
+ example: false
117
+ type: boolean
118
+ graphql_is_translatable_rweb_tweet_is_translatable_enabled:
119
+ default: true
120
+ example: true
121
+ type: boolean
122
+ graphql_timeline_v2_bookmark_timeline:
123
+ default: true
124
+ example: true
125
+ type: boolean
126
+ interactive_text_enabled:
127
+ default: true
128
+ example: true
129
+ type: boolean
130
+ longform_notetweets_consumption_enabled:
131
+ default: true
132
+ example: true
133
+ type: boolean
134
+ longform_notetweets_rich_text_read_enabled:
135
+ default: true
136
+ example: true
137
+ type: boolean
138
+ responsive_web_edit_tweet_api_enabled:
139
+ default: true
140
+ example: true
141
+ type: boolean
142
+ responsive_web_enhance_cards_enabled:
143
+ default: false
144
+ example: false
145
+ type: boolean
146
+ responsive_web_graphql_exclude_directive_enabled:
147
+ default: true
148
+ example: true
149
+ type: boolean
150
+ responsive_web_graphql_skip_user_profile_image_extensions_enabled:
151
+ default: false
152
+ example: false
153
+ type: boolean
154
+ responsive_web_graphql_timeline_navigation_enabled:
155
+ default: true
156
+ example: true
157
+ type: boolean
158
+ responsive_web_text_conversations_enabled:
159
+ default: false
160
+ example: false
161
+ type: boolean
162
+ standardized_nudges_misinfo:
163
+ default: true
164
+ example: true
165
+ type: boolean
166
+ tweet_awards_web_tipping_enabled:
167
+ default: false
168
+ example: false
169
+ type: boolean
170
+ tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled:
171
+ default: false
172
+ example: false
173
+ type: boolean
174
+ tweetypie_unmention_optimization_enabled:
175
+ default: true
176
+ example: true
177
+ type: boolean
178
+ verified_phone_label_enabled:
179
+ default: false
180
+ example: false
181
+ type: boolean
182
+ vibe_api_enabled:
183
+ default: true
184
+ example: true
185
+ type: boolean
186
+ view_counts_everywhere_api_enabled:
187
+ default: true
188
+ example: true
189
+ type: boolean
190
+ required:
191
+ - graphql_timeline_v2_bookmark_timeline
192
+ - blue_business_profile_image_shape_enabled
193
+ - responsive_web_graphql_exclude_directive_enabled
194
+ - verified_phone_label_enabled
195
+ - responsive_web_graphql_timeline_navigation_enabled
196
+ - responsive_web_graphql_skip_user_profile_image_extensions_enabled
197
+ - tweetypie_unmention_optimization_enabled
198
+ - vibe_api_enabled
199
+ - responsive_web_edit_tweet_api_enabled
200
+ - graphql_is_translatable_rweb_tweet_is_translatable_enabled
201
+ - view_counts_everywhere_api_enabled
202
+ - longform_notetweets_consumption_enabled
203
+ - tweet_awards_web_tipping_enabled
204
+ - freedom_of_speech_not_reach_fetch_enabled
205
+ - standardized_nudges_misinfo
206
+ - tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
207
+ - interactive_text_enabled
208
+ - responsive_web_text_conversations_enabled
209
+ - longform_notetweets_rich_text_read_enabled
210
+ - responsive_web_enhance_cards_enabled
211
+ type: object
212
+ in: query
213
+ name: features
214
+ required: true
215
+ responses:
216
+ '200':
217
+ content:
218
+ application/json:
219
+ schema:
220
+ $ref: '#/components/schemas/BookmarksResponse'
221
+ description: Successful operation
222
+ headers:
223
+ x-connection-hash:
224
+ schema:
225
+ type: string
226
+ x-rate-limit-limit:
227
+ schema:
228
+ type: integer
229
+ x-rate-limit-remaining:
230
+ schema:
231
+ type: integer
232
+ x-rate-limit-reset:
233
+ schema:
234
+ type: integer
235
+ x-response-time:
236
+ schema:
237
+ type: integer
238
+ x-tfe-preserve-body:
239
+ schema:
240
+ type: boolean
241
+ x-transaction-id:
242
+ schema:
243
+ type: string
244
+ x-twitter-response-tags:
245
+ schema:
246
+ type: string
247
+ tags:
248
+ - tweet