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.
- package/.openapi-generator/FILES +18 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +0 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +0 -6
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +17 -12
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +90 -55
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +27 -2
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +166 -6
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +41 -3
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +255 -12
- 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/TweetLegacy.d.ts +7 -0
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -0
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetLegacySelfThread.d.ts +32 -0
- package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
- package/dist/models/TweetLegacySelfThread.js +51 -0
- package/dist/models/TweetLegacySelfThread.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 +18 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/DefaultApi.ts +0 -9
- package/src/apis/TweetApi.ts +102 -87
- package/src/apis/UserApi.ts +171 -9
- package/src/apis/UserListApi.ts +267 -18
- 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/TweetLegacy.ts +14 -0
- package/src/models/TweetLegacySelfThread.ts +66 -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 +18 -1
- package/tools/openapi-generator-config.yaml +2 -2
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
- package/twitter-openapi/dist/{dart → compatible}/paths/follow.yaml +82 -63
- package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
- package/twitter-openapi/dist/{dart → compatible}/paths/timeline.yaml +118 -111
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +297 -0
- package/twitter-openapi/dist/compatible/paths/user.yaml +227 -0
- package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +0 -28
- package/twitter-openapi/dist/{typescript → compatible}/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +160 -0
- package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
- package/twitter-openapi/dist/docs/paths/follow.yaml +193 -112
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
- package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -173
- package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -61
- package/twitter-openapi/dist/docs/paths/user.yaml +214 -41
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
- package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -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/src/openapi/schemas/tweet.yaml +8 -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/twitter-openapi/tools/build_config.py +67 -190
- package/twitter-openapi/tools/hooks.py +28 -7
- 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
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
- package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
- package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
- package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
- package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
- package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
- package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
- package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
- package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
- package/twitter-openapi/dist/test/paths/follow.yaml +0 -218
- package/twitter-openapi/dist/test/paths/other.yaml +0 -96
- package/twitter-openapi/dist/test/paths/post.yaml +0 -527
- package/twitter-openapi/dist/test/paths/timeline.yaml +0 -314
- package/twitter-openapi/dist/test/paths/tweet.yaml +0 -112
- package/twitter-openapi/dist/test/paths/user.yaml +0 -90
- package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
- package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/test/response/error.yaml +0 -90
- package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
- package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
- package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
- package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
- package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
- package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -396
- package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
- package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
- package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
- /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
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
|
+
UsersResponse:
|
|
16
|
+
properties:
|
|
17
|
+
data:
|
|
18
|
+
$ref: '#/components/schemas/UsersResponseData'
|
|
19
|
+
required:
|
|
20
|
+
- data
|
|
21
|
+
UsersResponseData:
|
|
22
|
+
properties:
|
|
23
|
+
users:
|
|
24
|
+
items:
|
|
25
|
+
$ref: ./../schemas/user.yaml#/components/schemas/UserResults
|
|
26
|
+
type: array
|
|
27
|
+
required:
|
|
28
|
+
- users
|
|
29
|
+
info:
|
|
30
|
+
title: Twitter OpenAPI
|
|
31
|
+
version: 0.0.1
|
|
32
|
+
openapi: 3.0.3
|
|
33
|
+
paths:
|
|
34
|
+
/graphql/{pathQueryId}/UserByRestId:
|
|
35
|
+
get:
|
|
36
|
+
description: get user by rest id
|
|
37
|
+
operationId: getUserByRestId
|
|
38
|
+
parameters:
|
|
39
|
+
- in: path
|
|
40
|
+
name: pathQueryId
|
|
41
|
+
required: true
|
|
42
|
+
schema:
|
|
43
|
+
default: Lxg1V9AiIzzXEiP2c8dRnw
|
|
44
|
+
example: Lxg1V9AiIzzXEiP2c8dRnw
|
|
45
|
+
type: string
|
|
46
|
+
- in: query
|
|
47
|
+
name: variables
|
|
48
|
+
required: true
|
|
49
|
+
schema:
|
|
50
|
+
default: '{"userId": "44196397", "withSafetyModeUserFields": true}'
|
|
51
|
+
example: '{"userId": "44196397", "withSafetyModeUserFields": true}'
|
|
52
|
+
type: string
|
|
53
|
+
- in: query
|
|
54
|
+
name: features
|
|
55
|
+
required: true
|
|
56
|
+
schema:
|
|
57
|
+
default: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled":
|
|
58
|
+
true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled":
|
|
59
|
+
true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
60
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
61
|
+
example: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled":
|
|
62
|
+
true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled":
|
|
63
|
+
true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
64
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
65
|
+
type: string
|
|
66
|
+
responses:
|
|
67
|
+
'200':
|
|
68
|
+
content:
|
|
69
|
+
application/json:
|
|
70
|
+
schema:
|
|
71
|
+
$ref: '#/components/schemas/UserResponse'
|
|
72
|
+
description: Successful operation
|
|
73
|
+
headers:
|
|
74
|
+
x-connection-hash:
|
|
75
|
+
schema:
|
|
76
|
+
type: string
|
|
77
|
+
x-rate-limit-limit:
|
|
78
|
+
schema:
|
|
79
|
+
type: integer
|
|
80
|
+
x-rate-limit-remaining:
|
|
81
|
+
schema:
|
|
82
|
+
type: integer
|
|
83
|
+
x-rate-limit-reset:
|
|
84
|
+
schema:
|
|
85
|
+
type: integer
|
|
86
|
+
x-response-time:
|
|
87
|
+
schema:
|
|
88
|
+
type: integer
|
|
89
|
+
x-tfe-preserve-body:
|
|
90
|
+
schema:
|
|
91
|
+
type: boolean
|
|
92
|
+
x-transaction-id:
|
|
93
|
+
schema:
|
|
94
|
+
type: string
|
|
95
|
+
x-twitter-response-tags:
|
|
96
|
+
schema:
|
|
97
|
+
type: string
|
|
98
|
+
tags:
|
|
99
|
+
- user
|
|
100
|
+
/graphql/{pathQueryId}/UserByScreenName:
|
|
101
|
+
get:
|
|
102
|
+
description: get user by screen name
|
|
103
|
+
operationId: getUserByScreenName
|
|
104
|
+
parameters:
|
|
105
|
+
- in: path
|
|
106
|
+
name: pathQueryId
|
|
107
|
+
required: true
|
|
108
|
+
schema:
|
|
109
|
+
default: sLVLhk0bGj3MVFEKTdax1w
|
|
110
|
+
example: sLVLhk0bGj3MVFEKTdax1w
|
|
111
|
+
type: string
|
|
112
|
+
- in: query
|
|
113
|
+
name: variables
|
|
114
|
+
required: true
|
|
115
|
+
schema:
|
|
116
|
+
default: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
|
|
117
|
+
example: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
|
|
118
|
+
type: string
|
|
119
|
+
- in: query
|
|
120
|
+
name: features
|
|
121
|
+
required: true
|
|
122
|
+
schema:
|
|
123
|
+
default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
124
|
+
true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
125
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
126
|
+
example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
127
|
+
true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
128
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
129
|
+
type: string
|
|
130
|
+
responses:
|
|
131
|
+
'200':
|
|
132
|
+
content:
|
|
133
|
+
application/json:
|
|
134
|
+
schema:
|
|
135
|
+
$ref: '#/components/schemas/UserResponse'
|
|
136
|
+
description: Successful operation
|
|
137
|
+
headers:
|
|
138
|
+
x-connection-hash:
|
|
139
|
+
schema:
|
|
140
|
+
type: string
|
|
141
|
+
x-rate-limit-limit:
|
|
142
|
+
schema:
|
|
143
|
+
type: integer
|
|
144
|
+
x-rate-limit-remaining:
|
|
145
|
+
schema:
|
|
146
|
+
type: integer
|
|
147
|
+
x-rate-limit-reset:
|
|
148
|
+
schema:
|
|
149
|
+
type: integer
|
|
150
|
+
x-response-time:
|
|
151
|
+
schema:
|
|
152
|
+
type: integer
|
|
153
|
+
x-tfe-preserve-body:
|
|
154
|
+
schema:
|
|
155
|
+
type: boolean
|
|
156
|
+
x-transaction-id:
|
|
157
|
+
schema:
|
|
158
|
+
type: string
|
|
159
|
+
x-twitter-response-tags:
|
|
160
|
+
schema:
|
|
161
|
+
type: string
|
|
162
|
+
tags:
|
|
163
|
+
- user
|
|
164
|
+
/graphql/{pathQueryId}/UsersByRestIds:
|
|
165
|
+
get:
|
|
166
|
+
description: get users by rest ids
|
|
167
|
+
operationId: getUsersByRestIds
|
|
168
|
+
parameters:
|
|
169
|
+
- in: path
|
|
170
|
+
name: pathQueryId
|
|
171
|
+
required: true
|
|
172
|
+
schema:
|
|
173
|
+
default: GD4q8bBE2i6cqWw2iT74Gg
|
|
174
|
+
example: GD4q8bBE2i6cqWw2iT74Gg
|
|
175
|
+
type: string
|
|
176
|
+
- in: query
|
|
177
|
+
name: variables
|
|
178
|
+
required: true
|
|
179
|
+
schema:
|
|
180
|
+
default: '{"userIds": ["44196397"]}'
|
|
181
|
+
example: '{"userIds": ["44196397"]}'
|
|
182
|
+
type: string
|
|
183
|
+
- in: query
|
|
184
|
+
name: features
|
|
185
|
+
required: true
|
|
186
|
+
schema:
|
|
187
|
+
default: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
|
|
188
|
+
false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
189
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
190
|
+
example: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled":
|
|
191
|
+
false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
192
|
+
false, "responsive_web_graphql_timeline_navigation_enabled": true}'
|
|
193
|
+
type: string
|
|
194
|
+
responses:
|
|
195
|
+
'200':
|
|
196
|
+
content:
|
|
197
|
+
application/json:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: '#/components/schemas/UsersResponse'
|
|
200
|
+
description: Successful operation
|
|
201
|
+
headers:
|
|
202
|
+
x-connection-hash:
|
|
203
|
+
schema:
|
|
204
|
+
type: string
|
|
205
|
+
x-rate-limit-limit:
|
|
206
|
+
schema:
|
|
207
|
+
type: integer
|
|
208
|
+
x-rate-limit-remaining:
|
|
209
|
+
schema:
|
|
210
|
+
type: integer
|
|
211
|
+
x-rate-limit-reset:
|
|
212
|
+
schema:
|
|
213
|
+
type: integer
|
|
214
|
+
x-response-time:
|
|
215
|
+
schema:
|
|
216
|
+
type: integer
|
|
217
|
+
x-tfe-preserve-body:
|
|
218
|
+
schema:
|
|
219
|
+
type: boolean
|
|
220
|
+
x-transaction-id:
|
|
221
|
+
schema:
|
|
222
|
+
type: string
|
|
223
|
+
x-twitter-response-tags:
|
|
224
|
+
schema:
|
|
225
|
+
type: string
|
|
226
|
+
tags:
|
|
227
|
+
- user
|
|
@@ -44,13 +44,6 @@ paths:
|
|
|
44
44
|
default: 5fmEkRT-1AdHqEsbVgehMg
|
|
45
45
|
example: 5fmEkRT-1AdHqEsbVgehMg
|
|
46
46
|
type: string
|
|
47
|
-
- in: query
|
|
48
|
-
name: queryId
|
|
49
|
-
required: true
|
|
50
|
-
schema:
|
|
51
|
-
default: '"5fmEkRT-1AdHqEsbVgehMg"'
|
|
52
|
-
example: '"5fmEkRT-1AdHqEsbVgehMg"'
|
|
53
|
-
type: string
|
|
54
47
|
- in: query
|
|
55
48
|
name: variables
|
|
56
49
|
required: true
|
|
@@ -135,13 +128,6 @@ paths:
|
|
|
135
128
|
default: YqiE3JL1KNgf9nSljYdxaA
|
|
136
129
|
example: YqiE3JL1KNgf9nSljYdxaA
|
|
137
130
|
type: string
|
|
138
|
-
- in: query
|
|
139
|
-
name: queryId
|
|
140
|
-
required: true
|
|
141
|
-
schema:
|
|
142
|
-
default: '"YqiE3JL1KNgf9nSljYdxaA"'
|
|
143
|
-
example: '"YqiE3JL1KNgf9nSljYdxaA"'
|
|
144
|
-
type: string
|
|
145
131
|
- in: query
|
|
146
132
|
name: variables
|
|
147
133
|
required: true
|
|
@@ -226,13 +212,6 @@ paths:
|
|
|
226
212
|
default: HuTx74BxAnezK1gWvYY7zg
|
|
227
213
|
example: HuTx74BxAnezK1gWvYY7zg
|
|
228
214
|
type: string
|
|
229
|
-
- in: query
|
|
230
|
-
name: queryId
|
|
231
|
-
required: true
|
|
232
|
-
schema:
|
|
233
|
-
default: '"HuTx74BxAnezK1gWvYY7zg"'
|
|
234
|
-
example: '"HuTx74BxAnezK1gWvYY7zg"'
|
|
235
|
-
type: string
|
|
236
215
|
- in: query
|
|
237
216
|
name: variables
|
|
238
217
|
required: true
|
|
@@ -317,13 +296,6 @@ paths:
|
|
|
317
296
|
default: RIWc55YCNyUJ-U3HHGYkdg
|
|
318
297
|
example: RIWc55YCNyUJ-U3HHGYkdg
|
|
319
298
|
type: string
|
|
320
|
-
- in: query
|
|
321
|
-
name: queryId
|
|
322
|
-
required: true
|
|
323
|
-
schema:
|
|
324
|
-
default: '"RIWc55YCNyUJ-U3HHGYkdg"'
|
|
325
|
-
example: '"RIWc55YCNyUJ-U3HHGYkdg"'
|
|
326
|
-
type: string
|
|
327
299
|
- in: query
|
|
328
300
|
name: variables
|
|
329
301
|
required: true
|
|
@@ -11,6 +11,8 @@ components:
|
|
|
11
11
|
- TimelineTweet
|
|
12
12
|
- TimelineTimelineCursor
|
|
13
13
|
- TimelineUser
|
|
14
|
+
- TimelinePrompt
|
|
15
|
+
- TimelineMessagePrompt
|
|
14
16
|
type: string
|
|
15
17
|
ContentUnion:
|
|
16
18
|
discriminator:
|
|
@@ -26,6 +28,8 @@ components:
|
|
|
26
28
|
ItemContentUnion:
|
|
27
29
|
discriminator:
|
|
28
30
|
mapping":
|
|
31
|
+
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
|
32
|
+
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
|
29
33
|
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
|
30
34
|
TimelineTweet: '#/components/schemas/TimelineTweet'
|
|
31
35
|
TimelineUser: '#/components/schemas/TimelineUser'
|
|
@@ -34,6 +38,8 @@ components:
|
|
|
34
38
|
- $ref: '#/components/schemas/TimelineTweet'
|
|
35
39
|
- $ref: '#/components/schemas/TimelineTimelineCursor'
|
|
36
40
|
- $ref: '#/components/schemas/TimelineUser'
|
|
41
|
+
- $ref: '#/components/schemas/TimelinePrompt'
|
|
42
|
+
- $ref: '#/components/schemas/TimelineMessagePrompt'
|
|
37
43
|
ItemResult:
|
|
38
44
|
properties:
|
|
39
45
|
__typename:
|
|
@@ -70,6 +76,14 @@ components:
|
|
|
70
76
|
type:
|
|
71
77
|
type: string
|
|
72
78
|
type: object
|
|
79
|
+
TimelineMessagePrompt:
|
|
80
|
+
properties:
|
|
81
|
+
__typename:
|
|
82
|
+
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
83
|
+
TimelinePrompt:
|
|
84
|
+
properties:
|
|
85
|
+
__typename:
|
|
86
|
+
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
73
87
|
TimelineTimelineCursor:
|
|
74
88
|
properties:
|
|
75
89
|
__typename:
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
components:
|
|
2
|
+
schemas:
|
|
3
|
+
InstructionType:
|
|
4
|
+
enum:
|
|
5
|
+
- TimelineAddEntries
|
|
6
|
+
- TimelineAddToModule
|
|
7
|
+
- TimelineClearCache
|
|
8
|
+
- TimelinePinEntry
|
|
9
|
+
- TimelineReplaceEntry
|
|
10
|
+
- TimelineShowAlert
|
|
11
|
+
- TimelineTerminateTimeline
|
|
12
|
+
type: string
|
|
13
|
+
InstructionUnion:
|
|
14
|
+
discriminator:
|
|
15
|
+
mapping":
|
|
16
|
+
TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
|
|
17
|
+
TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
|
|
18
|
+
TimelineClearCache: '#/components/schemas/TimelineClearCache'
|
|
19
|
+
TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
|
|
20
|
+
TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
|
|
21
|
+
TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
|
|
22
|
+
TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
|
|
23
|
+
propertyName: type
|
|
24
|
+
oneOf:
|
|
25
|
+
- $ref: '#/components/schemas/TimelineAddEntries'
|
|
26
|
+
- $ref: '#/components/schemas/TimelineAddToModule'
|
|
27
|
+
- $ref: '#/components/schemas/TimelineClearCache'
|
|
28
|
+
- $ref: '#/components/schemas/TimelinePinEntry'
|
|
29
|
+
- $ref: '#/components/schemas/TimelineReplaceEntry'
|
|
30
|
+
- $ref: '#/components/schemas/TimelineShowAlert'
|
|
31
|
+
- $ref: '#/components/schemas/TimelineTerminateTimeline'
|
|
32
|
+
TimelineAddEntries:
|
|
33
|
+
properties:
|
|
34
|
+
entries:
|
|
35
|
+
items:
|
|
36
|
+
$ref: '#/components/schemas/TimelineAddEntry'
|
|
37
|
+
type: array
|
|
38
|
+
type:
|
|
39
|
+
$ref: '#/components/schemas/InstructionType'
|
|
40
|
+
type: string
|
|
41
|
+
required:
|
|
42
|
+
- type
|
|
43
|
+
- entries
|
|
44
|
+
TimelineAddEntry:
|
|
45
|
+
properties:
|
|
46
|
+
content:
|
|
47
|
+
$ref: ./content.yaml#/components/schemas/ContentUnion
|
|
48
|
+
entryId:
|
|
49
|
+
pattern: ^[a-z\-]+[0-9]+$
|
|
50
|
+
type: string
|
|
51
|
+
sortIndex:
|
|
52
|
+
pattern: '[0-9]+$'
|
|
53
|
+
type: string
|
|
54
|
+
required:
|
|
55
|
+
- content
|
|
56
|
+
- entryId
|
|
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
|
|
75
|
+
TimelineClearCache:
|
|
76
|
+
properties:
|
|
77
|
+
type:
|
|
78
|
+
$ref: '#/components/schemas/InstructionType'
|
|
79
|
+
type: string
|
|
80
|
+
required:
|
|
81
|
+
- type
|
|
82
|
+
TimelinePinEntry:
|
|
83
|
+
properties:
|
|
84
|
+
entry:
|
|
85
|
+
$ref: '#/components/schemas/TimelineAddEntry'
|
|
86
|
+
type:
|
|
87
|
+
$ref: '#/components/schemas/InstructionType'
|
|
88
|
+
type: string
|
|
89
|
+
required:
|
|
90
|
+
- type
|
|
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
|
|
143
|
+
TimelineTerminateTimeline:
|
|
144
|
+
properties:
|
|
145
|
+
direction:
|
|
146
|
+
enum:
|
|
147
|
+
- Top
|
|
148
|
+
- Bottom
|
|
149
|
+
type: string
|
|
150
|
+
type:
|
|
151
|
+
$ref: '#/components/schemas/InstructionType'
|
|
152
|
+
type: string
|
|
153
|
+
required:
|
|
154
|
+
- type
|
|
155
|
+
- direction
|
|
156
|
+
info:
|
|
157
|
+
title: Twitter OpenAPI
|
|
158
|
+
version: 0.0.1
|
|
159
|
+
openapi: 3.0.3
|
|
160
|
+
paths: {}
|
|
@@ -234,6 +234,14 @@ components:
|
|
|
234
234
|
type: boolean
|
|
235
235
|
retweeted_status_result:
|
|
236
236
|
$ref: ./content.yaml#/components/schemas/ItemResult
|
|
237
|
+
self_thread:
|
|
238
|
+
properties:
|
|
239
|
+
id_str:
|
|
240
|
+
pattern: ^[0-9]+$
|
|
241
|
+
type: string
|
|
242
|
+
required:
|
|
243
|
+
- id_str
|
|
244
|
+
type: object
|
|
237
245
|
user_id_str:
|
|
238
246
|
pattern: ^[0-9]+$
|
|
239
247
|
type: string
|
|
@@ -80,8 +80,12 @@ paths:
|
|
|
80
80
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1DeleteTweet
|
|
81
81
|
/graphql/{pathQueryId}/FavoriteTweet:
|
|
82
82
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1FavoriteTweet
|
|
83
|
+
/graphql/{pathQueryId}/Favoriters:
|
|
84
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Favoriters
|
|
83
85
|
/graphql/{pathQueryId}/Followers:
|
|
84
86
|
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Followers
|
|
87
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
88
|
+
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1FollowersYouKnow
|
|
85
89
|
/graphql/{pathQueryId}/Following:
|
|
86
90
|
$ref: ./paths/follow.yaml#/paths/~1graphql~1{pathQueryId}~1Following
|
|
87
91
|
/graphql/{pathQueryId}/HomeLatestTimeline:
|
|
@@ -94,10 +98,16 @@ paths:
|
|
|
94
98
|
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1ListLatestTweetsTimeline
|
|
95
99
|
/graphql/{pathQueryId}/ProfileSpotlightsQuery:
|
|
96
100
|
$ref: ./paths/profile.yaml#/paths/~1graphql~1{pathQueryId}~1ProfileSpotlightsQuery
|
|
101
|
+
/graphql/{pathQueryId}/Retweeters:
|
|
102
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1Retweeters
|
|
103
|
+
/graphql/{pathQueryId}/SearchTimeline:
|
|
104
|
+
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
|
|
97
105
|
/graphql/{pathQueryId}/TweetDetail:
|
|
98
106
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
|
99
107
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
|
100
108
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
|
109
|
+
/graphql/{pathQueryId}/UserByRestId:
|
|
110
|
+
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
|
101
111
|
/graphql/{pathQueryId}/UserByScreenName:
|
|
102
112
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
|
103
113
|
/graphql/{pathQueryId}/UserMedia:
|
|
@@ -106,6 +116,8 @@ paths:
|
|
|
106
116
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets
|
|
107
117
|
/graphql/{pathQueryId}/UserTweetsAndReplies:
|
|
108
118
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies
|
|
119
|
+
/graphql/{pathQueryId}/UsersByRestIds:
|
|
120
|
+
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds
|
|
109
121
|
/other:
|
|
110
122
|
$ref: ./paths/other.yaml#/paths/~1other
|
|
111
123
|
security:
|
|
@@ -37,41 +37,6 @@ paths:
|
|
|
37
37
|
type: string
|
|
38
38
|
- content:
|
|
39
39
|
application/json:
|
|
40
|
-
required:
|
|
41
|
-
- t
|
|
42
|
-
- m
|
|
43
|
-
- d
|
|
44
|
-
- '4'
|
|
45
|
-
- i
|
|
46
|
-
- f
|
|
47
|
-
- V
|
|
48
|
-
- '8'
|
|
49
|
-
- R
|
|
50
|
-
- H
|
|
51
|
-
- l
|
|
52
|
-
- t
|
|
53
|
-
- z
|
|
54
|
-
- n
|
|
55
|
-
- '8'
|
|
56
|
-
- y
|
|
57
|
-
- m
|
|
58
|
-
- G
|
|
59
|
-
- g
|
|
60
|
-
- '1'
|
|
61
|
-
- a
|
|
62
|
-
- w
|
|
63
|
-
schema:
|
|
64
|
-
default: tmd4ifV8RHltzn8ymGg1aw
|
|
65
|
-
example: tmd4ifV8RHltzn8ymGg1aw
|
|
66
|
-
type: string
|
|
67
|
-
in: query
|
|
68
|
-
name: queryId
|
|
69
|
-
required: true
|
|
70
|
-
- content:
|
|
71
|
-
application/json:
|
|
72
|
-
required:
|
|
73
|
-
- count
|
|
74
|
-
- includePromotedContent
|
|
75
40
|
schema:
|
|
76
41
|
properties:
|
|
77
42
|
count:
|
|
@@ -91,27 +56,6 @@ paths:
|
|
|
91
56
|
required: true
|
|
92
57
|
- content:
|
|
93
58
|
application/json:
|
|
94
|
-
required:
|
|
95
|
-
- graphql_timeline_v2_bookmark_timeline
|
|
96
|
-
- blue_business_profile_image_shape_enabled
|
|
97
|
-
- responsive_web_graphql_exclude_directive_enabled
|
|
98
|
-
- verified_phone_label_enabled
|
|
99
|
-
- responsive_web_graphql_timeline_navigation_enabled
|
|
100
|
-
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
|
|
101
|
-
- tweetypie_unmention_optimization_enabled
|
|
102
|
-
- vibe_api_enabled
|
|
103
|
-
- responsive_web_edit_tweet_api_enabled
|
|
104
|
-
- graphql_is_translatable_rweb_tweet_is_translatable_enabled
|
|
105
|
-
- view_counts_everywhere_api_enabled
|
|
106
|
-
- longform_notetweets_consumption_enabled
|
|
107
|
-
- tweet_awards_web_tipping_enabled
|
|
108
|
-
- freedom_of_speech_not_reach_fetch_enabled
|
|
109
|
-
- standardized_nudges_misinfo
|
|
110
|
-
- tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
|
|
111
|
-
- interactive_text_enabled
|
|
112
|
-
- responsive_web_text_conversations_enabled
|
|
113
|
-
- longform_notetweets_rich_text_read_enabled
|
|
114
|
-
- responsive_web_enhance_cards_enabled
|
|
115
59
|
schema:
|
|
116
60
|
properties:
|
|
117
61
|
blue_business_profile_image_shape_enabled:
|