twitter-openapi-typescript-generated 0.0.6 → 0.0.7

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 (118) hide show
  1. package/.openapi-generator/FILES +1 -0
  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 +0 -9
  8. package/dist/apis/TweetApi.d.ts.map +1 -1
  9. package/dist/apis/TweetApi.js +0 -54
  10. package/dist/apis/TweetApi.js.map +1 -1
  11. package/dist/apis/UserApi.d.ts +0 -1
  12. package/dist/apis/UserApi.d.ts.map +1 -1
  13. package/dist/apis/UserApi.js +0 -6
  14. package/dist/apis/UserApi.js.map +1 -1
  15. package/dist/apis/UserListApi.d.ts +0 -2
  16. package/dist/apis/UserListApi.d.ts.map +1 -1
  17. package/dist/apis/UserListApi.js +0 -12
  18. package/dist/apis/UserListApi.js.map +1 -1
  19. package/dist/models/TweetLegacy.d.ts +7 -0
  20. package/dist/models/TweetLegacy.d.ts.map +1 -1
  21. package/dist/models/TweetLegacy.js +3 -0
  22. package/dist/models/TweetLegacy.js.map +1 -1
  23. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  24. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  25. package/dist/models/TweetLegacySelfThread.js +51 -0
  26. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  27. package/dist/models/index.d.ts +1 -0
  28. package/dist/models/index.d.ts.map +1 -1
  29. package/dist/models/index.js +1 -0
  30. package/dist/models/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/apis/DefaultApi.ts +0 -9
  33. package/src/apis/TweetApi.ts +0 -81
  34. package/src/apis/UserApi.ts +0 -9
  35. package/src/apis/UserListApi.ts +0 -18
  36. package/src/models/TweetLegacy.ts +14 -0
  37. package/src/models/TweetLegacySelfThread.ts +66 -0
  38. package/src/models/index.ts +1 -0
  39. package/tools/openapi-generator-config.yaml +2 -2
  40. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
  41. package/twitter-openapi/dist/{test → compatible}/paths/follow.yaml +0 -14
  42. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
  43. package/twitter-openapi/dist/{test → compatible}/paths/timeline.yaml +0 -21
  44. package/twitter-openapi/dist/{test → compatible}/paths/tweet.yaml +0 -7
  45. package/twitter-openapi/dist/{test → compatible}/paths/user.yaml +0 -7
  46. package/twitter-openapi/dist/{typescript → compatible}/paths/usertweets.yaml +0 -28
  47. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
  48. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
  49. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -112
  50. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
  51. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -170
  52. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -61
  53. package/twitter-openapi/dist/docs/paths/user.yaml +0 -41
  54. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
  55. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
  56. package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -0
  57. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  58. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  59. package/twitter-openapi/tools/build_config.py +67 -190
  60. package/twitter-openapi/tools/hooks.py +28 -7
  61. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  62. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
  63. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -276
  64. package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
  65. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
  66. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -401
  67. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
  68. package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
  69. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
  70. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  71. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  72. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  73. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
  74. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  75. package/twitter-openapi/dist/test/paths/post.yaml +0 -527
  76. package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -396
  77. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  78. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  79. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  80. package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
  81. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  82. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  83. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  84. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  85. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  86. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
  87. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  88. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  89. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  90. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
  91. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  92. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
  93. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
  94. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
  95. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
  96. package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
  97. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  98. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  99. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  100. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  101. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  102. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
  103. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  104. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  105. /package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +0 -0
  106. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  107. /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
  108. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  109. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  110. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  111. /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
  112. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  113. /package/twitter-openapi/dist/{dart → compatible}/schemas/content.yaml +0 -0
  114. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  115. /package/twitter-openapi/dist/{dart → compatible}/schemas/instruction.yaml +0 -0
  116. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  117. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  118. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -1,276 +0,0 @@
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/{pathQueryId}/Followers:
42
- get:
43
- description: get user list of followers
44
- operationId: getFollowers
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: path
76
- name: pathQueryId
77
- required: true
78
- schema:
79
- default: djdTXDIk2qhd4OStqlUFeQ
80
- example: djdTXDIk2qhd4OStqlUFeQ
81
- type: string
82
- - in: query
83
- name: queryId
84
- required: true
85
- schema:
86
- default: '"djdTXDIk2qhd4OStqlUFeQ"'
87
- example: '"djdTXDIk2qhd4OStqlUFeQ"'
88
- type: string
89
- - in: query
90
- name: variables
91
- required: true
92
- schema:
93
- default: '{"userId": "44196397", "count": 20, "includePromotedContent":
94
- false}'
95
- example: '{"userId": "44196397", "count": 20, "includePromotedContent":
96
- false}'
97
- type: string
98
- - in: query
99
- name: features
100
- required: true
101
- schema:
102
- default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
103
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
104
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
105
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
106
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
107
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
108
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
109
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
110
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
111
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
112
- false}'
113
- example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
114
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
115
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
116
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
117
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
118
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
119
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
120
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
121
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
122
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
123
- false}'
124
- type: string
125
- responses:
126
- '200':
127
- content:
128
- application/json:
129
- schema:
130
- $ref: '#/components/schemas/FollowResponse'
131
- description: Successful operation
132
- headers:
133
- x-connection-hash:
134
- schema:
135
- type: string
136
- x-rate-limit-limit:
137
- schema:
138
- type: integer
139
- x-rate-limit-remaining:
140
- schema:
141
- type: integer
142
- x-rate-limit-reset:
143
- schema:
144
- type: integer
145
- x-response-time:
146
- schema:
147
- type: integer
148
- x-tfe-preserve-body:
149
- schema:
150
- type: boolean
151
- x-transaction-id:
152
- schema:
153
- type: string
154
- x-twitter-response-tags:
155
- schema:
156
- type: string
157
- tags:
158
- - user-list
159
- /graphql/{pathQueryId}/Following:
160
- get:
161
- description: get user list of following
162
- operationId: getFollowing
163
- parameters:
164
- - in: header
165
- name: user-agent
166
- required: true
167
- schema:
168
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
169
- like Gecko) Chrome/112.0.0.0 Safari/537.36
170
- description: UserAgent, some APIs may be rejected if changed.
171
- type: string
172
- - in: header
173
- name: authorization
174
- required: true
175
- schema:
176
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
177
- description: It is a constant value and does not need to be changed.
178
- type: string
179
- - in: header
180
- name: x-twitter-active-user
181
- required: true
182
- schema:
183
- default: 'yes'
184
- description: Unknown what this value means.
185
- type: string
186
- - in: header
187
- name: x-twitter-client-language
188
- required: true
189
- schema:
190
- default: en
191
- description: language code.
192
- type: string
193
- - in: path
194
- name: pathQueryId
195
- required: true
196
- schema:
197
- default: IWP6Zt14sARO29lJT35bBw
198
- example: IWP6Zt14sARO29lJT35bBw
199
- type: string
200
- - in: query
201
- name: queryId
202
- required: true
203
- schema:
204
- default: '"IWP6Zt14sARO29lJT35bBw"'
205
- example: '"IWP6Zt14sARO29lJT35bBw"'
206
- type: string
207
- - in: query
208
- name: variables
209
- required: true
210
- schema:
211
- default: '{"userId": "44196397", "count": 20, "includePromotedContent":
212
- false}'
213
- example: '{"userId": "44196397", "count": 20, "includePromotedContent":
214
- false}'
215
- type: string
216
- - in: query
217
- name: features
218
- required: true
219
- schema:
220
- default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
221
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
222
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
223
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
224
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
225
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
226
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
227
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
228
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
229
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
230
- false}'
231
- example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
232
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
233
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
234
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
235
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
236
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
237
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
238
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
239
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
240
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
241
- false}'
242
- type: string
243
- responses:
244
- '200':
245
- content:
246
- application/json:
247
- schema:
248
- $ref: '#/components/schemas/FollowResponse'
249
- description: Successful operation
250
- headers:
251
- x-connection-hash:
252
- schema:
253
- type: string
254
- x-rate-limit-limit:
255
- schema:
256
- type: integer
257
- x-rate-limit-remaining:
258
- schema:
259
- type: integer
260
- x-rate-limit-reset:
261
- schema:
262
- type: integer
263
- x-response-time:
264
- schema:
265
- type: integer
266
- x-tfe-preserve-body:
267
- schema:
268
- type: boolean
269
- x-transaction-id:
270
- schema:
271
- type: string
272
- x-twitter-response-tags:
273
- schema:
274
- type: string
275
- tags:
276
- - user-list