twitter-openapi-typescript-generated 0.0.7 → 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.
- package/.openapi-generator/FILES +17 -1
- package/README.md +2 -2
- package/dist/apis/TweetApi.d.ts +17 -3
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +90 -1
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +27 -1
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +166 -0
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +41 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +255 -0
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +2 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +3 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/InstructionType.d.ts +3 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +3 -0
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +9 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +15 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +6 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +10 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -0
- package/dist/models/SearchByRawQuery.d.ts.map +1 -0
- package/dist/models/SearchByRawQuery.js +52 -0
- package/dist/models/SearchByRawQuery.js.map +1 -0
- package/dist/models/SearchTimeline.d.ts +33 -0
- package/dist/models/SearchTimeline.d.ts.map +1 -0
- package/dist/models/SearchTimeline.js +52 -0
- package/dist/models/SearchTimeline.js.map +1 -0
- package/dist/models/SearchTimelineData.d.ts +33 -0
- package/dist/models/SearchTimelineData.d.ts.map +1 -0
- package/dist/models/SearchTimelineData.js +52 -0
- package/dist/models/SearchTimelineData.js.map +1 -0
- package/dist/models/SearchTimelineResponse.d.ts +33 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
- package/dist/models/SearchTimelineResponse.js +52 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -0
- package/dist/models/TimelineAddToModule.d.ts +52 -0
- package/dist/models/TimelineAddToModule.d.ts.map +1 -0
- package/dist/models/TimelineAddToModule.js +62 -0
- package/dist/models/TimelineAddToModule.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +33 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
- package/dist/models/TimelineMessagePrompt.js +52 -0
- package/dist/models/TimelineMessagePrompt.js.map +1 -0
- package/dist/models/TimelinePrompt.d.ts +33 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -0
- package/dist/models/TimelinePrompt.js +52 -0
- package/dist/models/TimelinePrompt.js.map +1 -0
- package/dist/models/TimelineReplaceEntry.d.ts +46 -0
- package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
- package/dist/models/TimelineReplaceEntry.js +59 -0
- package/dist/models/TimelineReplaceEntry.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +97 -0
- package/dist/models/TimelineShowAlert.d.ts.map +1 -0
- package/dist/models/TimelineShowAlert.js +85 -0
- package/dist/models/TimelineShowAlert.js.map +1 -0
- package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
- package/dist/models/TimelineShowAlertRichText.js +53 -0
- package/dist/models/TimelineShowAlertRichText.js.map +1 -0
- package/dist/models/TweetFavoritersResponse.d.ts +33 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponse.js +52 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -0
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponseData.js +52 -0
- package/dist/models/TweetFavoritersResponseData.js.map +1 -0
- package/dist/models/TweetRetweetersResponse.d.ts +33 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponse.js +52 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -0
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponseData.js +52 -0
- package/dist/models/TweetRetweetersResponseData.js.map +1 -0
- package/dist/models/UsersResponse.d.ts +33 -0
- package/dist/models/UsersResponse.d.ts.map +1 -0
- package/dist/models/UsersResponse.js +52 -0
- package/dist/models/UsersResponse.js.map +1 -0
- package/dist/models/UsersResponseData.d.ts +33 -0
- package/dist/models/UsersResponseData.d.ts.map +1 -0
- package/dist/models/UsersResponseData.js +52 -0
- package/dist/models/UsersResponseData.js.map +1 -0
- package/dist/models/index.d.ts +17 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +17 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/TweetApi.ts +102 -6
- package/src/apis/UserApi.ts +171 -0
- package/src/apis/UserListApi.ts +267 -0
- package/src/models/ContentItemType.ts +3 -1
- package/src/models/InstructionType.ts +3 -0
- package/src/models/InstructionUnion.ts +34 -1
- package/src/models/ItemContentUnion.ts +23 -1
- package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
- package/src/models/SearchByRawQuery.ts +73 -0
- package/src/models/SearchTimeline.ts +73 -0
- package/src/models/SearchTimelineData.ts +73 -0
- package/src/models/SearchTimelineResponse.ts +73 -0
- package/src/models/TimelineAddToModule.ts +105 -0
- package/src/models/TimelineMessagePrompt.ts +72 -0
- package/src/models/TimelinePrompt.ts +72 -0
- package/src/models/TimelineReplaceEntry.ts +97 -0
- package/src/models/TimelineShowAlert.ts +169 -0
- package/src/models/TimelineShowAlertRichText.ts +73 -0
- package/src/models/TweetFavoritersResponse.ts +73 -0
- package/src/models/TweetFavoritersResponseData.ts +73 -0
- package/src/models/TweetRetweetersResponse.ts +73 -0
- package/src/models/TweetRetweetersResponseData.ts +73 -0
- package/src/models/UsersResponse.ts +73 -0
- package/src/models/UsersResponseData.ts +73 -0
- package/src/models/index.ts +17 -1
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/compatible/paths/follow.yaml +91 -0
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +118 -3
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +192 -0
- package/twitter-openapi/dist/compatible/paths/user.yaml +144 -0
- package/twitter-openapi/dist/compatible/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +77 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/docs/paths/follow.yaml +193 -0
- package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -3
- package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -0
- package/twitter-openapi/dist/docs/paths/user.yaml +214 -0
- package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
- package/twitter-openapi/src/config/placeholder.json +155 -0
- package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
- package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
- package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
- package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineResponse.js +0 -52
- package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
|
@@ -3,22 +3,31 @@ components:
|
|
|
3
3
|
InstructionType:
|
|
4
4
|
enum:
|
|
5
5
|
- TimelineAddEntries
|
|
6
|
+
- TimelineAddToModule
|
|
6
7
|
- TimelineClearCache
|
|
7
8
|
- TimelinePinEntry
|
|
9
|
+
- TimelineReplaceEntry
|
|
10
|
+
- TimelineShowAlert
|
|
8
11
|
- TimelineTerminateTimeline
|
|
9
12
|
type: string
|
|
10
13
|
InstructionUnion:
|
|
11
14
|
discriminator:
|
|
12
15
|
mapping":
|
|
13
16
|
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
|
17
|
+
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
|
14
18
|
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
|
15
19
|
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
|
20
|
+
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
|
21
|
+
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
|
16
22
|
TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
|
|
17
23
|
propertyName: type
|
|
18
24
|
oneOf:
|
|
19
25
|
- $ref: '#/components/schemas/TimelineAddEntries'
|
|
26
|
+
- $ref: '#/components/schemas/TimelineAddToModule'
|
|
20
27
|
- $ref: '#/components/schemas/TimelineClearCache'
|
|
21
28
|
- $ref: '#/components/schemas/TimelinePinEntry'
|
|
29
|
+
- $ref: '#/components/schemas/TimelineReplaceEntry'
|
|
30
|
+
- $ref: '#/components/schemas/TimelineShowAlert'
|
|
22
31
|
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
|
23
32
|
TimelineAddEntries:
|
|
24
33
|
properties:
|
|
@@ -46,6 +55,23 @@ components:
|
|
|
46
55
|
- content
|
|
47
56
|
- entryId
|
|
48
57
|
- sortIndex
|
|
58
|
+
TimelineAddToModule:
|
|
59
|
+
properties:
|
|
60
|
+
moduleEntryId:
|
|
61
|
+
type: string
|
|
62
|
+
moduleItems:
|
|
63
|
+
items:
|
|
64
|
+
$ref: ./content.yaml#/components/schemas/ModuleItem
|
|
65
|
+
type: array
|
|
66
|
+
prepend:
|
|
67
|
+
type: boolean
|
|
68
|
+
type:
|
|
69
|
+
$ref: '#/components/schemas/InstructionType'
|
|
70
|
+
type: string
|
|
71
|
+
required:
|
|
72
|
+
- type
|
|
73
|
+
- moduleItems
|
|
74
|
+
- moduleEntryId
|
|
49
75
|
TimelineClearCache:
|
|
50
76
|
properties:
|
|
51
77
|
type:
|
|
@@ -63,6 +89,57 @@ components:
|
|
|
63
89
|
required:
|
|
64
90
|
- type
|
|
65
91
|
- entry
|
|
92
|
+
TimelineReplaceEntry:
|
|
93
|
+
properties:
|
|
94
|
+
entry:
|
|
95
|
+
$ref: '#/components/schemas/TimelineAddEntry'
|
|
96
|
+
entry_id_to_replace:
|
|
97
|
+
type: string
|
|
98
|
+
type:
|
|
99
|
+
$ref: '#/components/schemas/InstructionType'
|
|
100
|
+
type: string
|
|
101
|
+
required:
|
|
102
|
+
- type
|
|
103
|
+
- entry_id_to_replace
|
|
104
|
+
- entry
|
|
105
|
+
TimelineShowAlert:
|
|
106
|
+
properties:
|
|
107
|
+
alertType:
|
|
108
|
+
enum:
|
|
109
|
+
- NewTweets
|
|
110
|
+
type: string
|
|
111
|
+
colorConfig:
|
|
112
|
+
type: object
|
|
113
|
+
displayDurationMs:
|
|
114
|
+
type: integer
|
|
115
|
+
displayLocation:
|
|
116
|
+
enum:
|
|
117
|
+
- Top
|
|
118
|
+
type: string
|
|
119
|
+
iconDisplayInfo:
|
|
120
|
+
type: object
|
|
121
|
+
richText:
|
|
122
|
+
properties:
|
|
123
|
+
entities:
|
|
124
|
+
items:
|
|
125
|
+
type: object
|
|
126
|
+
type: array
|
|
127
|
+
text:
|
|
128
|
+
type: string
|
|
129
|
+
type: object
|
|
130
|
+
triggerDelayMs:
|
|
131
|
+
type: integer
|
|
132
|
+
type:
|
|
133
|
+
$ref: '#/components/schemas/InstructionType'
|
|
134
|
+
type: string
|
|
135
|
+
usersResults:
|
|
136
|
+
items:
|
|
137
|
+
$ref: ./user.yaml#/components/schemas/UserResults
|
|
138
|
+
type: array
|
|
139
|
+
required:
|
|
140
|
+
- type
|
|
141
|
+
- usersResults
|
|
142
|
+
- richText
|
|
66
143
|
TimelineTerminateTimeline:
|
|
67
144
|
properties:
|
|
68
145
|
direction:
|
|
@@ -102,6 +102,34 @@
|
|
|
102
102
|
"responsive_web_graphql_timeline_navigation_enabled": true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
+
"UserByRestId": {
|
|
106
|
+
"queryId": "Lxg1V9AiIzzXEiP2c8dRnw",
|
|
107
|
+
"variables": {
|
|
108
|
+
"userId": "44196397",
|
|
109
|
+
"withSafetyModeUserFields": true
|
|
110
|
+
},
|
|
111
|
+
"features": {
|
|
112
|
+
"hidden_profile_likes_enabled": false,
|
|
113
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
114
|
+
"verified_phone_label_enabled": false,
|
|
115
|
+
"highlights_tweets_tab_ui_enabled": true,
|
|
116
|
+
"creator_subscriptions_tweet_preview_api_enabled": true,
|
|
117
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
118
|
+
"responsive_web_graphql_timeline_navigation_enabled":true
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"UsersByRestIds": {
|
|
122
|
+
"queryId": "GD4q8bBE2i6cqWw2iT74Gg",
|
|
123
|
+
"variables": {
|
|
124
|
+
"userIds": ["44196397"]
|
|
125
|
+
},
|
|
126
|
+
"features": {
|
|
127
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
128
|
+
"verified_phone_label_enabled": false,
|
|
129
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
130
|
+
"responsive_web_graphql_timeline_navigation_enabled": true
|
|
131
|
+
}
|
|
132
|
+
},
|
|
105
133
|
"ProfileSpotlightsQuery": {
|
|
106
134
|
"queryId": "9zwVLJ48lmVUk8u_Gh9DmA",
|
|
107
135
|
"variables": {
|
|
@@ -302,6 +330,100 @@
|
|
|
302
330
|
"responsive_web_enhance_cards_enabled": false
|
|
303
331
|
}
|
|
304
332
|
},
|
|
333
|
+
"SearchTimeline": {
|
|
334
|
+
"queryId": "L1VfBERtzc3VkBBT0YAYHA",
|
|
335
|
+
"variables": {
|
|
336
|
+
"rawQuery": "elonmusk",
|
|
337
|
+
"count": 20,
|
|
338
|
+
"querySource": "typed_query",
|
|
339
|
+
"product": "Top"
|
|
340
|
+
},
|
|
341
|
+
"features": {
|
|
342
|
+
"rweb_lists_timeline_redesign_enabled": true,
|
|
343
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
344
|
+
"verified_phone_label_enabled": false,
|
|
345
|
+
"creator_subscriptions_tweet_preview_api_enabled": true,
|
|
346
|
+
"responsive_web_graphql_timeline_navigation_enabled": true,
|
|
347
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
348
|
+
"tweetypie_unmention_optimization_enabled": true,
|
|
349
|
+
"responsive_web_edit_tweet_api_enabled": true,
|
|
350
|
+
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
351
|
+
"view_counts_everywhere_api_enabled": true,
|
|
352
|
+
"longform_notetweets_consumption_enabled": true,
|
|
353
|
+
"responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
354
|
+
"tweet_awards_web_tipping_enabled": false,
|
|
355
|
+
"freedom_of_speech_not_reach_fetch_enabled": true,
|
|
356
|
+
"standardized_nudges_misinfo": true,
|
|
357
|
+
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
|
|
358
|
+
"longform_notetweets_rich_text_read_enabled": true,
|
|
359
|
+
"longform_notetweets_inline_media_enabled": true,
|
|
360
|
+
"responsive_web_media_download_video_enabled": false,
|
|
361
|
+
"responsive_web_enhance_cards_enabled": false
|
|
362
|
+
},
|
|
363
|
+
"fieldToggles": {
|
|
364
|
+
"withArticleRichContentState": false
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"Favoriters": {
|
|
368
|
+
"queryId": "rUyh8HWk8IXv_fvVKj3QjA",
|
|
369
|
+
"variables": {
|
|
370
|
+
"tweetId": "1349129669258448897",
|
|
371
|
+
"count": 20,
|
|
372
|
+
"includePromotedContent": true
|
|
373
|
+
},
|
|
374
|
+
"features": {
|
|
375
|
+
"rweb_lists_timeline_redesign_enabled": true,
|
|
376
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
377
|
+
"verified_phone_label_enabled": false,
|
|
378
|
+
"creator_subscriptions_tweet_preview_api_enabled": true,
|
|
379
|
+
"responsive_web_graphql_timeline_navigation_enabled": true,
|
|
380
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
381
|
+
"tweetypie_unmention_optimization_enabled": true,
|
|
382
|
+
"responsive_web_edit_tweet_api_enabled": true,
|
|
383
|
+
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
384
|
+
"view_counts_everywhere_api_enabled": true,
|
|
385
|
+
"longform_notetweets_consumption_enabled": true,
|
|
386
|
+
"responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
387
|
+
"tweet_awards_web_tipping_enabled": false,
|
|
388
|
+
"freedom_of_speech_not_reach_fetch_enabled": true,
|
|
389
|
+
"standardized_nudges_misinfo": true,
|
|
390
|
+
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
|
|
391
|
+
"longform_notetweets_rich_text_read_enabled": true,
|
|
392
|
+
"longform_notetweets_inline_media_enabled": true,
|
|
393
|
+
"responsive_web_media_download_video_enabled": false,
|
|
394
|
+
"responsive_web_enhance_cards_enabled": false
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"Retweeters": {
|
|
398
|
+
"queryId": "Gnw_Swm60cS-biSLn2OWNw",
|
|
399
|
+
"variables": {
|
|
400
|
+
"tweetId": "1349129669258448897",
|
|
401
|
+
"count": 20,
|
|
402
|
+
"includePromotedContent": true
|
|
403
|
+
},
|
|
404
|
+
"features": {
|
|
405
|
+
"rweb_lists_timeline_redesign_enabled": true,
|
|
406
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
407
|
+
"verified_phone_label_enabled": false,
|
|
408
|
+
"creator_subscriptions_tweet_preview_api_enabled": true,
|
|
409
|
+
"responsive_web_graphql_timeline_navigation_enabled": true,
|
|
410
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
411
|
+
"tweetypie_unmention_optimization_enabled": true,
|
|
412
|
+
"responsive_web_edit_tweet_api_enabled": true,
|
|
413
|
+
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
414
|
+
"view_counts_everywhere_api_enabled": true,
|
|
415
|
+
"longform_notetweets_consumption_enabled": true,
|
|
416
|
+
"responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
417
|
+
"tweet_awards_web_tipping_enabled": false,
|
|
418
|
+
"freedom_of_speech_not_reach_fetch_enabled": true,
|
|
419
|
+
"standardized_nudges_misinfo": true,
|
|
420
|
+
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
|
|
421
|
+
"longform_notetweets_rich_text_read_enabled": true,
|
|
422
|
+
"longform_notetweets_inline_media_enabled": true,
|
|
423
|
+
"responsive_web_media_download_video_enabled": false,
|
|
424
|
+
"responsive_web_enhance_cards_enabled": false
|
|
425
|
+
}
|
|
426
|
+
},
|
|
305
427
|
"Followers": {
|
|
306
428
|
"queryId": "djdTXDIk2qhd4OStqlUFeQ",
|
|
307
429
|
"variables": {
|
|
@@ -360,6 +482,39 @@
|
|
|
360
482
|
"responsive_web_enhance_cards_enabled": false
|
|
361
483
|
}
|
|
362
484
|
},
|
|
485
|
+
"FollowersYouKnow": {
|
|
486
|
+
"queryId": "W9Iz6TVLymzCWjG2uOFKZg",
|
|
487
|
+
"variables": {
|
|
488
|
+
"userId": "44196397",
|
|
489
|
+
"count": 20,
|
|
490
|
+
"includePromotedContent": false
|
|
491
|
+
},
|
|
492
|
+
"features": {
|
|
493
|
+
"rweb_lists_timeline_redesign_enabled": true,
|
|
494
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
495
|
+
"verified_phone_label_enabled": false,
|
|
496
|
+
"creator_subscriptions_tweet_preview_api_enabled": true,
|
|
497
|
+
"responsive_web_graphql_timeline_navigation_enabled": true,
|
|
498
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
499
|
+
"tweetypie_unmention_optimization_enabled": true,
|
|
500
|
+
"responsive_web_edit_tweet_api_enabled": true,
|
|
501
|
+
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
502
|
+
"view_counts_everywhere_api_enabled": true,
|
|
503
|
+
"longform_notetweets_consumption_enabled": true,
|
|
504
|
+
"responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
505
|
+
"tweet_awards_web_tipping_enabled": false,
|
|
506
|
+
"freedom_of_speech_not_reach_fetch_enabled": true,
|
|
507
|
+
"standardized_nudges_misinfo": true,
|
|
508
|
+
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
|
|
509
|
+
"longform_notetweets_rich_text_read_enabled": true,
|
|
510
|
+
"longform_notetweets_inline_media_enabled": true,
|
|
511
|
+
"responsive_web_media_download_video_enabled": false,
|
|
512
|
+
"responsive_web_enhance_cards_enabled": false
|
|
513
|
+
},
|
|
514
|
+
"fieldToggles": {
|
|
515
|
+
"withArticleRichContentState": false
|
|
516
|
+
}
|
|
517
|
+
},
|
|
363
518
|
"CreateTweet": {
|
|
364
519
|
"queryId": "1RyAhNwby-gzGCRVsMxKbQ",
|
|
365
520
|
"variables": {
|
|
@@ -32,6 +32,20 @@ paths:
|
|
|
32
32
|
tags:
|
|
33
33
|
- "user-list"
|
|
34
34
|
|
|
35
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
36
|
+
get:
|
|
37
|
+
operationId: getFollowersYouKnow
|
|
38
|
+
description: "get followers you know"
|
|
39
|
+
responses:
|
|
40
|
+
"200":
|
|
41
|
+
description: Successful operation
|
|
42
|
+
content:
|
|
43
|
+
application/json:
|
|
44
|
+
schema:
|
|
45
|
+
$ref: "#/components/schemas/FollowResponse"
|
|
46
|
+
tags:
|
|
47
|
+
- "user-list"
|
|
48
|
+
|
|
35
49
|
components:
|
|
36
50
|
schemas:
|
|
37
51
|
FollowResponse:
|
|
@@ -42,7 +42,21 @@ paths:
|
|
|
42
42
|
content:
|
|
43
43
|
application/json:
|
|
44
44
|
schema:
|
|
45
|
-
$ref: "#/components/schemas/
|
|
45
|
+
$ref: "#/components/schemas/ListLatestTweetsTimelineResponse"
|
|
46
|
+
tags:
|
|
47
|
+
- "tweet"
|
|
48
|
+
|
|
49
|
+
/graphql/{pathQueryId}/SearchTimeline:
|
|
50
|
+
get:
|
|
51
|
+
operationId: getSearchTimeline
|
|
52
|
+
description: search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
53
|
+
responses:
|
|
54
|
+
"200":
|
|
55
|
+
description: Successful operation
|
|
56
|
+
content:
|
|
57
|
+
application/json:
|
|
58
|
+
schema:
|
|
59
|
+
$ref: "#/components/schemas/SearchTimelineResponse"
|
|
46
60
|
tags:
|
|
47
61
|
- "tweet"
|
|
48
62
|
|
|
@@ -69,7 +83,7 @@ components:
|
|
|
69
83
|
home_timeline_urt:
|
|
70
84
|
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
|
71
85
|
|
|
72
|
-
|
|
86
|
+
ListLatestTweetsTimelineResponse:
|
|
73
87
|
required:
|
|
74
88
|
- "data"
|
|
75
89
|
properties:
|
|
@@ -96,3 +110,31 @@ components:
|
|
|
96
110
|
properties:
|
|
97
111
|
timeline:
|
|
98
112
|
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
|
113
|
+
|
|
114
|
+
SearchTimelineResponse:
|
|
115
|
+
required:
|
|
116
|
+
- "data"
|
|
117
|
+
properties:
|
|
118
|
+
data:
|
|
119
|
+
$ref: "#/components/schemas/SearchTimelineData"
|
|
120
|
+
|
|
121
|
+
SearchTimelineData:
|
|
122
|
+
required:
|
|
123
|
+
- "search_by_raw_query"
|
|
124
|
+
properties:
|
|
125
|
+
search_by_raw_query:
|
|
126
|
+
$ref: "#/components/schemas/SearchByRawQuery"
|
|
127
|
+
|
|
128
|
+
SearchByRawQuery:
|
|
129
|
+
required:
|
|
130
|
+
- "search_timeline"
|
|
131
|
+
properties:
|
|
132
|
+
search_timeline:
|
|
133
|
+
$ref: "#/components/schemas/SearchTimeline"
|
|
134
|
+
|
|
135
|
+
SearchTimeline:
|
|
136
|
+
required:
|
|
137
|
+
- "timeline"
|
|
138
|
+
properties:
|
|
139
|
+
timeline:
|
|
140
|
+
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
|
@@ -18,6 +18,34 @@ paths:
|
|
|
18
18
|
tags:
|
|
19
19
|
- "tweet"
|
|
20
20
|
|
|
21
|
+
/graphql/{pathQueryId}/Favoriters:
|
|
22
|
+
get:
|
|
23
|
+
operationId: getTweetFavoriters
|
|
24
|
+
description: get tweet favoriters
|
|
25
|
+
responses:
|
|
26
|
+
"200":
|
|
27
|
+
description: Successful operation
|
|
28
|
+
content:
|
|
29
|
+
application/json:
|
|
30
|
+
schema:
|
|
31
|
+
$ref: "#/components/schemas/TweetFavoritersResponse"
|
|
32
|
+
tags:
|
|
33
|
+
- "user-list"
|
|
34
|
+
|
|
35
|
+
/graphql/{pathQueryId}/Retweeters:
|
|
36
|
+
get:
|
|
37
|
+
operationId: getTweetRetweeters
|
|
38
|
+
description: get tweet retweeters
|
|
39
|
+
responses:
|
|
40
|
+
"200":
|
|
41
|
+
description: Successful operation
|
|
42
|
+
content:
|
|
43
|
+
application/json:
|
|
44
|
+
schema:
|
|
45
|
+
$ref: "#/components/schemas/TweetRetweetersResponse"
|
|
46
|
+
tags:
|
|
47
|
+
- "user-list"
|
|
48
|
+
|
|
21
49
|
components:
|
|
22
50
|
schemas:
|
|
23
51
|
TweetDetailResponse:
|
|
@@ -33,3 +61,31 @@ components:
|
|
|
33
61
|
properties:
|
|
34
62
|
threaded_conversation_with_injections_v2:
|
|
35
63
|
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
|
64
|
+
|
|
65
|
+
TweetFavoritersResponse:
|
|
66
|
+
required:
|
|
67
|
+
- "data"
|
|
68
|
+
properties:
|
|
69
|
+
data:
|
|
70
|
+
$ref: "#/components/schemas/TweetFavoritersResponseData"
|
|
71
|
+
|
|
72
|
+
TweetFavoritersResponseData:
|
|
73
|
+
required:
|
|
74
|
+
- "favoriters_timeline"
|
|
75
|
+
properties:
|
|
76
|
+
favoriters_timeline:
|
|
77
|
+
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
|
|
78
|
+
|
|
79
|
+
TweetRetweetersResponse:
|
|
80
|
+
required:
|
|
81
|
+
- "data"
|
|
82
|
+
properties:
|
|
83
|
+
data:
|
|
84
|
+
$ref: "#/components/schemas/TweetRetweetersResponseData"
|
|
85
|
+
|
|
86
|
+
TweetRetweetersResponseData:
|
|
87
|
+
required:
|
|
88
|
+
- "retweeters_timeline"
|
|
89
|
+
properties:
|
|
90
|
+
retweeters_timeline:
|
|
91
|
+
$ref: "./../schemas/timeline.yaml#/components/schemas/TimelineV2"
|
|
@@ -18,6 +18,34 @@ paths:
|
|
|
18
18
|
tags:
|
|
19
19
|
- "user"
|
|
20
20
|
|
|
21
|
+
/graphql/{pathQueryId}/UserByRestId:
|
|
22
|
+
get:
|
|
23
|
+
operationId: getUserByRestId
|
|
24
|
+
description: "get user by rest id"
|
|
25
|
+
responses:
|
|
26
|
+
"200":
|
|
27
|
+
description: Successful operation
|
|
28
|
+
content:
|
|
29
|
+
application/json:
|
|
30
|
+
schema:
|
|
31
|
+
$ref: "#/components/schemas/UserResponse"
|
|
32
|
+
tags:
|
|
33
|
+
- "user"
|
|
34
|
+
|
|
35
|
+
/graphql/{pathQueryId}/UsersByRestIds:
|
|
36
|
+
get:
|
|
37
|
+
operationId: getUsersByRestIds
|
|
38
|
+
description: "get users by rest ids"
|
|
39
|
+
responses:
|
|
40
|
+
"200":
|
|
41
|
+
description: Successful operation
|
|
42
|
+
content:
|
|
43
|
+
application/json:
|
|
44
|
+
schema:
|
|
45
|
+
$ref: "#/components/schemas/UsersResponse"
|
|
46
|
+
tags:
|
|
47
|
+
- "user"
|
|
48
|
+
|
|
21
49
|
components:
|
|
22
50
|
schemas:
|
|
23
51
|
UserResponse:
|
|
@@ -33,3 +61,19 @@ components:
|
|
|
33
61
|
properties:
|
|
34
62
|
user:
|
|
35
63
|
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"
|
|
64
|
+
|
|
65
|
+
UsersResponse:
|
|
66
|
+
required:
|
|
67
|
+
- "data"
|
|
68
|
+
properties:
|
|
69
|
+
data:
|
|
70
|
+
$ref: "#/components/schemas/UsersResponseData"
|
|
71
|
+
|
|
72
|
+
UsersResponseData:
|
|
73
|
+
required:
|
|
74
|
+
- "users"
|
|
75
|
+
properties:
|
|
76
|
+
users:
|
|
77
|
+
type: array
|
|
78
|
+
items:
|
|
79
|
+
$ref: "./../schemas/user.yaml#/components/schemas/UserResults"
|
|
@@ -118,16 +118,28 @@ components:
|
|
|
118
118
|
- $ref: "#/components/schemas/TimelineTweet"
|
|
119
119
|
- $ref: "#/components/schemas/TimelineTimelineCursor"
|
|
120
120
|
- $ref: "#/components/schemas/TimelineUser"
|
|
121
|
+
- $ref: "#/components/schemas/TimelinePrompt"
|
|
122
|
+
- $ref: "#/components/schemas/TimelineMessagePrompt"
|
|
123
|
+
|
|
121
124
|
discriminator:
|
|
122
125
|
propertyName: itemType
|
|
123
126
|
mapping": # deprecated
|
|
124
127
|
TimelineTweet: "#/components/schemas/TimelineTweet"
|
|
125
128
|
TimelineTimelineCursor: "#/components/schemas/TimelineTimelineCursor"
|
|
126
129
|
TimelineUser: "#/components/schemas/TimelineUser"
|
|
130
|
+
TimelinePrompt: "#/components/schemas/TimelinePrompt"
|
|
131
|
+
TimelineMessagePrompt: "#/components/schemas/TimelineMessagePrompt"
|
|
127
132
|
|
|
128
133
|
ContentItemType:
|
|
129
134
|
type: string
|
|
130
|
-
enum:
|
|
135
|
+
enum:
|
|
136
|
+
[
|
|
137
|
+
TimelineTweet,
|
|
138
|
+
TimelineTimelineCursor,
|
|
139
|
+
TimelineUser,
|
|
140
|
+
TimelinePrompt,
|
|
141
|
+
TimelineMessagePrompt,
|
|
142
|
+
]
|
|
131
143
|
|
|
132
144
|
TimelineTweet:
|
|
133
145
|
required:
|
|
@@ -188,3 +200,13 @@ components:
|
|
|
188
200
|
type: string
|
|
189
201
|
type:
|
|
190
202
|
type: string # enum
|
|
203
|
+
|
|
204
|
+
TimelinePrompt: # todo
|
|
205
|
+
properties:
|
|
206
|
+
__typename:
|
|
207
|
+
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelinePrompt
|
|
208
|
+
|
|
209
|
+
TimelineMessagePrompt: # todo
|
|
210
|
+
properties:
|
|
211
|
+
__typename:
|
|
212
|
+
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineMessagePrompt
|
|
@@ -9,15 +9,21 @@ components:
|
|
|
9
9
|
InstructionUnion:
|
|
10
10
|
oneOf:
|
|
11
11
|
- $ref: "#/components/schemas/TimelineAddEntries"
|
|
12
|
+
- $ref: "#/components/schemas/TimelineAddToModule"
|
|
12
13
|
- $ref: "#/components/schemas/TimelineClearCache"
|
|
13
14
|
- $ref: "#/components/schemas/TimelinePinEntry"
|
|
15
|
+
- $ref: "#/components/schemas/TimelineReplaceEntry"
|
|
16
|
+
- $ref: "#/components/schemas/TimelineShowAlert"
|
|
14
17
|
- $ref: "#/components/schemas/TimelineTerminateTimeline"
|
|
15
18
|
discriminator:
|
|
16
19
|
propertyName: type
|
|
17
20
|
mapping": # deprecated
|
|
18
21
|
TimelineAddEntries: "#/components/schemas/TimelineAddEntries"
|
|
22
|
+
TimelineAddToModule: "#/components/schemas/TimelineAddToModule"
|
|
19
23
|
TimelineClearCache: "#/components/schemas/TimelineClearCache"
|
|
20
24
|
TimelinePinEntry: "#/components/schemas/TimelinePinEntry"
|
|
25
|
+
TimelineReplaceEntry: "#/components/schemas/TimelineReplaceEntry"
|
|
26
|
+
TimelineShowAlert: "#/components/schemas/TimelineShowAlert"
|
|
21
27
|
TimelineTerminateTimeline: "#/components/schemas/TimelineTerminateTimeline"
|
|
22
28
|
|
|
23
29
|
InstructionType:
|
|
@@ -25,8 +31,11 @@ components:
|
|
|
25
31
|
enum:
|
|
26
32
|
[
|
|
27
33
|
TimelineAddEntries,
|
|
34
|
+
TimelineAddToModule,
|
|
28
35
|
TimelineClearCache,
|
|
29
36
|
TimelinePinEntry,
|
|
37
|
+
TimelineReplaceEntry,
|
|
38
|
+
TimelineShowAlert,
|
|
30
39
|
TimelineTerminateTimeline,
|
|
31
40
|
]
|
|
32
41
|
|
|
@@ -43,6 +52,24 @@ components:
|
|
|
43
52
|
items:
|
|
44
53
|
$ref: "#/components/schemas/TimelineAddEntry"
|
|
45
54
|
|
|
55
|
+
TimelineAddToModule:
|
|
56
|
+
required:
|
|
57
|
+
- type
|
|
58
|
+
- moduleItems
|
|
59
|
+
- moduleEntryId
|
|
60
|
+
properties:
|
|
61
|
+
type:
|
|
62
|
+
type: string
|
|
63
|
+
$ref: "#/components/schemas/InstructionType" # TimelineAddToModule
|
|
64
|
+
moduleItems:
|
|
65
|
+
type: array
|
|
66
|
+
items:
|
|
67
|
+
$ref: "./content.yaml#/components/schemas/ModuleItem"
|
|
68
|
+
moduleEntryId:
|
|
69
|
+
type: string
|
|
70
|
+
prepend:
|
|
71
|
+
type: boolean
|
|
72
|
+
|
|
46
73
|
TimelineClearCache:
|
|
47
74
|
required:
|
|
48
75
|
- type
|
|
@@ -62,6 +89,57 @@ components:
|
|
|
62
89
|
entry:
|
|
63
90
|
$ref: "#/components/schemas/TimelineAddEntry"
|
|
64
91
|
|
|
92
|
+
TimelineReplaceEntry:
|
|
93
|
+
required:
|
|
94
|
+
- type
|
|
95
|
+
- entry_id_to_replace
|
|
96
|
+
- entry
|
|
97
|
+
properties:
|
|
98
|
+
type:
|
|
99
|
+
type: string
|
|
100
|
+
$ref: "#/components/schemas/InstructionType" # TimelineReplaceEntry
|
|
101
|
+
entry_id_to_replace:
|
|
102
|
+
type: string
|
|
103
|
+
entry:
|
|
104
|
+
$ref: "#/components/schemas/TimelineAddEntry"
|
|
105
|
+
|
|
106
|
+
TimelineShowAlert:
|
|
107
|
+
required:
|
|
108
|
+
- type
|
|
109
|
+
- usersResults
|
|
110
|
+
- richText
|
|
111
|
+
properties:
|
|
112
|
+
type:
|
|
113
|
+
type: string
|
|
114
|
+
$ref: "#/components/schemas/InstructionType" # TimelineShowAlert
|
|
115
|
+
alertType:
|
|
116
|
+
type: string
|
|
117
|
+
enum: [NewTweets] # which else?
|
|
118
|
+
triggerDelayMs:
|
|
119
|
+
type: integer
|
|
120
|
+
displayDurationMs:
|
|
121
|
+
type: integer
|
|
122
|
+
usersResults:
|
|
123
|
+
type: array
|
|
124
|
+
items:
|
|
125
|
+
$ref: "./user.yaml#/components/schemas/UserResults"
|
|
126
|
+
richText:
|
|
127
|
+
type: object
|
|
128
|
+
properties:
|
|
129
|
+
text:
|
|
130
|
+
type: string
|
|
131
|
+
entities:
|
|
132
|
+
type: array
|
|
133
|
+
items:
|
|
134
|
+
type: object # todo
|
|
135
|
+
iconDisplayInfo:
|
|
136
|
+
type: object # todo
|
|
137
|
+
colorConfig:
|
|
138
|
+
type: object # todo
|
|
139
|
+
displayLocation:
|
|
140
|
+
type: string
|
|
141
|
+
enum: [Top] # which else?
|
|
142
|
+
|
|
65
143
|
TimelineTerminateTimeline:
|
|
66
144
|
required:
|
|
67
145
|
- type
|
|
Binary file
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Twitter OpenAPI
|
|
3
|
-
* Twitter OpenAPI(Swagger) specification
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.0.1
|
|
6
|
-
* Contact: yuki@yuki0311.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ListTweetsTimelineData } from './ListTweetsTimelineData';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ListTweetsTimelineResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ListTweetsTimelineResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {ListTweetsTimelineData}
|
|
22
|
-
* @memberof ListTweetsTimelineResponse
|
|
23
|
-
*/
|
|
24
|
-
data: ListTweetsTimelineData;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ListTweetsTimelineResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfListTweetsTimelineResponse(value: object): boolean;
|
|
30
|
-
export declare function ListTweetsTimelineResponseFromJSON(json: any): ListTweetsTimelineResponse;
|
|
31
|
-
export declare function ListTweetsTimelineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTweetsTimelineResponse;
|
|
32
|
-
export declare function ListTweetsTimelineResponseToJSON(value?: ListTweetsTimelineResponse | null): any;
|
|
33
|
-
//# sourceMappingURL=ListTweetsTimelineResponse.d.ts.map
|