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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UsersResponseData } from './UsersResponseData';
|
|
17
|
+
import {
|
|
18
|
+
UsersResponseDataFromJSON,
|
|
19
|
+
UsersResponseDataFromJSONTyped,
|
|
20
|
+
UsersResponseDataToJSON,
|
|
21
|
+
} from './UsersResponseData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UsersResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface UsersResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UsersResponseData}
|
|
32
|
+
* @memberof UsersResponse
|
|
33
|
+
*/
|
|
34
|
+
data: UsersResponseData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UsersResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUsersResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UsersResponseFromJSON(json: any): UsersResponse {
|
|
48
|
+
return UsersResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UsersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': UsersResponseDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UsersResponseToJSON(value?: UsersResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': UsersResponseDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { UserResults } from './UserResults';
|
|
17
|
+
import {
|
|
18
|
+
UserResultsFromJSON,
|
|
19
|
+
UserResultsFromJSONTyped,
|
|
20
|
+
UserResultsToJSON,
|
|
21
|
+
} from './UserResults';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UsersResponseData
|
|
27
|
+
*/
|
|
28
|
+
export interface UsersResponseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<UserResults>}
|
|
32
|
+
* @memberof UsersResponseData
|
|
33
|
+
*/
|
|
34
|
+
users: Array<UserResults>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UsersResponseData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUsersResponseData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "users" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UsersResponseDataFromJSON(json: any): UsersResponseData {
|
|
48
|
+
return UsersResponseDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UsersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersResponseData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'users': ((json['users'] as Array<any>).map(UserResultsFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UsersResponseDataToJSON(value?: UsersResponseData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'users': ((value.users as Array<any>).map(UserResultsToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -35,10 +35,10 @@ export * from './InstructionType';
|
|
|
35
35
|
export * from './InstructionUnion';
|
|
36
36
|
export * from './ItemContentUnion';
|
|
37
37
|
export * from './ItemResult';
|
|
38
|
+
export * from './ListLatestTweetsTimelineResponse';
|
|
38
39
|
export * from './ListTweetsTimeline';
|
|
39
40
|
export * from './ListTweetsTimelineData';
|
|
40
41
|
export * from './ListTweetsTimelineList';
|
|
41
|
-
export * from './ListTweetsTimelineResponse';
|
|
42
42
|
export * from './Media';
|
|
43
43
|
export * from './MediaOriginalInfo';
|
|
44
44
|
export * from './ModuleEntry';
|
|
@@ -60,14 +60,24 @@ export * from './ProfileResponse';
|
|
|
60
60
|
export * from './ProfileResponseData';
|
|
61
61
|
export * from './Retweet';
|
|
62
62
|
export * from './RetweetLegacy';
|
|
63
|
+
export * from './SearchByRawQuery';
|
|
64
|
+
export * from './SearchTimeline';
|
|
65
|
+
export * from './SearchTimelineData';
|
|
66
|
+
export * from './SearchTimelineResponse';
|
|
63
67
|
export * from './Session';
|
|
64
68
|
export * from './SocialContext';
|
|
65
69
|
export * from './Timeline';
|
|
66
70
|
export * from './TimelineAddEntries';
|
|
67
71
|
export * from './TimelineAddEntry';
|
|
72
|
+
export * from './TimelineAddToModule';
|
|
68
73
|
export * from './TimelineClearCache';
|
|
74
|
+
export * from './TimelineMessagePrompt';
|
|
69
75
|
export * from './TimelinePinEntry';
|
|
76
|
+
export * from './TimelinePrompt';
|
|
77
|
+
export * from './TimelineReplaceEntry';
|
|
70
78
|
export * from './TimelineResponse';
|
|
79
|
+
export * from './TimelineShowAlert';
|
|
80
|
+
export * from './TimelineShowAlertRichText';
|
|
71
81
|
export * from './TimelineTerminateTimeline';
|
|
72
82
|
export * from './TimelineTimelineCursor';
|
|
73
83
|
export * from './TimelineTimelineItem';
|
|
@@ -84,8 +94,12 @@ export * from './TweetDetailResponse';
|
|
|
84
94
|
export * from './TweetDetailResponseData';
|
|
85
95
|
export * from './TweetEditControl';
|
|
86
96
|
export * from './TweetEditPrespective';
|
|
97
|
+
export * from './TweetFavoritersResponse';
|
|
98
|
+
export * from './TweetFavoritersResponseData';
|
|
87
99
|
export * from './TweetLegacy';
|
|
88
100
|
export * from './TweetLegacySelfThread';
|
|
101
|
+
export * from './TweetRetweetersResponse';
|
|
102
|
+
export * from './TweetRetweetersResponseData';
|
|
89
103
|
export * from './TweetTombstone';
|
|
90
104
|
export * from './TweetUnion';
|
|
91
105
|
export * from './TweetViews';
|
|
@@ -108,3 +122,5 @@ export * from './UserTweetsData';
|
|
|
108
122
|
export * from './UserTweetsResponse';
|
|
109
123
|
export * from './UserTweetsResult';
|
|
110
124
|
export * from './UserTweetsUser';
|
|
125
|
+
export * from './UsersResponse';
|
|
126
|
+
export * from './UsersResponseData';
|
package/tools/win/replace.py
CHANGED
|
@@ -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:
|
|
@@ -120,6 +120,97 @@ paths:
|
|
|
120
120
|
type: string
|
|
121
121
|
tags:
|
|
122
122
|
- user-list
|
|
123
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
124
|
+
get:
|
|
125
|
+
description: get followers you know
|
|
126
|
+
operationId: getFollowersYouKnow
|
|
127
|
+
parameters:
|
|
128
|
+
- in: path
|
|
129
|
+
name: pathQueryId
|
|
130
|
+
required: true
|
|
131
|
+
schema:
|
|
132
|
+
default: W9Iz6TVLymzCWjG2uOFKZg
|
|
133
|
+
example: W9Iz6TVLymzCWjG2uOFKZg
|
|
134
|
+
type: string
|
|
135
|
+
- in: query
|
|
136
|
+
name: variables
|
|
137
|
+
required: true
|
|
138
|
+
schema:
|
|
139
|
+
default: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
|
140
|
+
false}'
|
|
141
|
+
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
|
142
|
+
false}'
|
|
143
|
+
type: string
|
|
144
|
+
- in: query
|
|
145
|
+
name: features
|
|
146
|
+
required: true
|
|
147
|
+
schema:
|
|
148
|
+
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
149
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
150
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
151
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
152
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
153
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
154
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
155
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
156
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
157
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
158
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
159
|
+
false}'
|
|
160
|
+
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
161
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
162
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
163
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
164
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
165
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
166
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
167
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
168
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
169
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
170
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
171
|
+
false}'
|
|
172
|
+
type: string
|
|
173
|
+
- in: query
|
|
174
|
+
name: fieldToggles
|
|
175
|
+
required: true
|
|
176
|
+
schema:
|
|
177
|
+
default: '{"withArticleRichContentState": false}'
|
|
178
|
+
example: '{"withArticleRichContentState": false}'
|
|
179
|
+
type: string
|
|
180
|
+
responses:
|
|
181
|
+
'200':
|
|
182
|
+
content:
|
|
183
|
+
application/json:
|
|
184
|
+
schema:
|
|
185
|
+
$ref: '#/components/schemas/FollowResponse'
|
|
186
|
+
description: Successful operation
|
|
187
|
+
headers:
|
|
188
|
+
x-connection-hash:
|
|
189
|
+
schema:
|
|
190
|
+
type: string
|
|
191
|
+
x-rate-limit-limit:
|
|
192
|
+
schema:
|
|
193
|
+
type: integer
|
|
194
|
+
x-rate-limit-remaining:
|
|
195
|
+
schema:
|
|
196
|
+
type: integer
|
|
197
|
+
x-rate-limit-reset:
|
|
198
|
+
schema:
|
|
199
|
+
type: integer
|
|
200
|
+
x-response-time:
|
|
201
|
+
schema:
|
|
202
|
+
type: integer
|
|
203
|
+
x-tfe-preserve-body:
|
|
204
|
+
schema:
|
|
205
|
+
type: boolean
|
|
206
|
+
x-transaction-id:
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
x-twitter-response-tags:
|
|
210
|
+
schema:
|
|
211
|
+
type: string
|
|
212
|
+
tags:
|
|
213
|
+
- user-list
|
|
123
214
|
/graphql/{pathQueryId}/Following:
|
|
124
215
|
get:
|
|
125
216
|
description: get user list of following
|
|
@@ -12,6 +12,12 @@ components:
|
|
|
12
12
|
$ref: '#/components/schemas/HomeTimelineHome'
|
|
13
13
|
required:
|
|
14
14
|
- home
|
|
15
|
+
ListLatestTweetsTimelineResponse:
|
|
16
|
+
properties:
|
|
17
|
+
data:
|
|
18
|
+
$ref: '#/components/schemas/ListTweetsTimelineData'
|
|
19
|
+
required:
|
|
20
|
+
- data
|
|
15
21
|
ListTweetsTimeline:
|
|
16
22
|
properties:
|
|
17
23
|
timeline:
|
|
@@ -30,10 +36,28 @@ components:
|
|
|
30
36
|
$ref: '#/components/schemas/ListTweetsTimeline'
|
|
31
37
|
required:
|
|
32
38
|
- tweets_timeline
|
|
33
|
-
|
|
39
|
+
SearchByRawQuery:
|
|
40
|
+
properties:
|
|
41
|
+
search_timeline:
|
|
42
|
+
$ref: '#/components/schemas/SearchTimeline'
|
|
43
|
+
required:
|
|
44
|
+
- search_timeline
|
|
45
|
+
SearchTimeline:
|
|
46
|
+
properties:
|
|
47
|
+
timeline:
|
|
48
|
+
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
|
49
|
+
required:
|
|
50
|
+
- timeline
|
|
51
|
+
SearchTimelineData:
|
|
52
|
+
properties:
|
|
53
|
+
search_by_raw_query:
|
|
54
|
+
$ref: '#/components/schemas/SearchByRawQuery'
|
|
55
|
+
required:
|
|
56
|
+
- search_by_raw_query
|
|
57
|
+
SearchTimelineResponse:
|
|
34
58
|
properties:
|
|
35
59
|
data:
|
|
36
|
-
$ref: '#/components/schemas/
|
|
60
|
+
$ref: '#/components/schemas/SearchTimelineData'
|
|
37
61
|
required:
|
|
38
62
|
- data
|
|
39
63
|
TimelineResponse:
|
|
@@ -262,7 +286,98 @@ paths:
|
|
|
262
286
|
content:
|
|
263
287
|
application/json:
|
|
264
288
|
schema:
|
|
265
|
-
$ref: '#/components/schemas/
|
|
289
|
+
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
|
290
|
+
description: Successful operation
|
|
291
|
+
headers:
|
|
292
|
+
x-connection-hash:
|
|
293
|
+
schema:
|
|
294
|
+
type: string
|
|
295
|
+
x-rate-limit-limit:
|
|
296
|
+
schema:
|
|
297
|
+
type: integer
|
|
298
|
+
x-rate-limit-remaining:
|
|
299
|
+
schema:
|
|
300
|
+
type: integer
|
|
301
|
+
x-rate-limit-reset:
|
|
302
|
+
schema:
|
|
303
|
+
type: integer
|
|
304
|
+
x-response-time:
|
|
305
|
+
schema:
|
|
306
|
+
type: integer
|
|
307
|
+
x-tfe-preserve-body:
|
|
308
|
+
schema:
|
|
309
|
+
type: boolean
|
|
310
|
+
x-transaction-id:
|
|
311
|
+
schema:
|
|
312
|
+
type: string
|
|
313
|
+
x-twitter-response-tags:
|
|
314
|
+
schema:
|
|
315
|
+
type: string
|
|
316
|
+
tags:
|
|
317
|
+
- tweet
|
|
318
|
+
/graphql/{pathQueryId}/SearchTimeline:
|
|
319
|
+
get:
|
|
320
|
+
description: search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
321
|
+
operationId: getSearchTimeline
|
|
322
|
+
parameters:
|
|
323
|
+
- in: path
|
|
324
|
+
name: pathQueryId
|
|
325
|
+
required: true
|
|
326
|
+
schema:
|
|
327
|
+
default: L1VfBERtzc3VkBBT0YAYHA
|
|
328
|
+
example: L1VfBERtzc3VkBBT0YAYHA
|
|
329
|
+
type: string
|
|
330
|
+
- in: query
|
|
331
|
+
name: variables
|
|
332
|
+
required: true
|
|
333
|
+
schema:
|
|
334
|
+
default: '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query",
|
|
335
|
+
"product": "Top"}'
|
|
336
|
+
example: '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query",
|
|
337
|
+
"product": "Top"}'
|
|
338
|
+
type: string
|
|
339
|
+
- in: query
|
|
340
|
+
name: features
|
|
341
|
+
required: true
|
|
342
|
+
schema:
|
|
343
|
+
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
344
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
345
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
346
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
347
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
348
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
349
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
350
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
351
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
352
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
353
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
354
|
+
false}'
|
|
355
|
+
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
356
|
+
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
357
|
+
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
358
|
+
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
359
|
+
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
360
|
+
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
361
|
+
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
362
|
+
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
363
|
+
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
364
|
+
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
365
|
+
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
366
|
+
false}'
|
|
367
|
+
type: string
|
|
368
|
+
- in: query
|
|
369
|
+
name: fieldToggles
|
|
370
|
+
required: true
|
|
371
|
+
schema:
|
|
372
|
+
default: '{"withArticleRichContentState": false}'
|
|
373
|
+
example: '{"withArticleRichContentState": false}'
|
|
374
|
+
type: string
|
|
375
|
+
responses:
|
|
376
|
+
'200':
|
|
377
|
+
content:
|
|
378
|
+
application/json:
|
|
379
|
+
schema:
|
|
380
|
+
$ref: '#/components/schemas/SearchTimelineResponse'
|
|
266
381
|
description: Successful operation
|
|
267
382
|
headers:
|
|
268
383
|
x-connection-hash:
|