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,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 { TimelineV2 } from './TimelineV2';
|
|
17
|
+
import {
|
|
18
|
+
TimelineV2FromJSON,
|
|
19
|
+
TimelineV2FromJSONTyped,
|
|
20
|
+
TimelineV2ToJSON,
|
|
21
|
+
} from './TimelineV2';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetRetweetersResponseData
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetRetweetersResponseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TimelineV2}
|
|
32
|
+
* @memberof TweetRetweetersResponseData
|
|
33
|
+
*/
|
|
34
|
+
retweetersTimeline: TimelineV2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetRetweetersResponseData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetRetweetersResponseData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "retweetersTimeline" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetRetweetersResponseDataFromJSON(json: any): TweetRetweetersResponseData {
|
|
48
|
+
return TweetRetweetersResponseDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetRetweetersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetRetweetersResponseData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'retweetersTimeline': TimelineV2FromJSON(json['retweeters_timeline']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetRetweetersResponseDataToJSON(value?: TweetRetweetersResponseData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'retweeters_timeline': TimelineV2ToJSON(value.retweetersTimeline),
|
|
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 { 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,7 +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';
|
|
100
|
+
export * from './TweetLegacySelfThread';
|
|
101
|
+
export * from './TweetRetweetersResponse';
|
|
102
|
+
export * from './TweetRetweetersResponseData';
|
|
88
103
|
export * from './TweetTombstone';
|
|
89
104
|
export * from './TweetUnion';
|
|
90
105
|
export * from './TweetViews';
|
|
@@ -107,3 +122,5 @@ export * from './UserTweetsData';
|
|
|
107
122
|
export * from './UserTweetsResponse';
|
|
108
123
|
export * from './UserTweetsResult';
|
|
109
124
|
export * from './UserTweetsUser';
|
|
125
|
+
export * from './UsersResponse';
|
|
126
|
+
export * from './UsersResponseData';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
inputSpec: twitter-openapi/dist/
|
|
1
|
+
inputSpec: twitter-openapi/dist/compatible/openapi-3.0.yaml
|
|
2
2
|
outputDir: .
|
|
3
3
|
npmName: twitter-openapi-typescript-generated
|
|
4
|
-
npmVersion: 0.0.
|
|
4
|
+
npmVersion: 0.0.8
|
|
5
5
|
|
|
6
6
|
# withoutRuntimeChecks: false
|
|
7
7
|
legacyDiscriminatorBehavior: false
|
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:
|
|
@@ -35,13 +35,6 @@ paths:
|
|
|
35
35
|
default: tmd4ifV8RHltzn8ymGg1aw
|
|
36
36
|
example: tmd4ifV8RHltzn8ymGg1aw
|
|
37
37
|
type: string
|
|
38
|
-
- in: query
|
|
39
|
-
name: queryId
|
|
40
|
-
required: true
|
|
41
|
-
schema:
|
|
42
|
-
default: '"tmd4ifV8RHltzn8ymGg1aw"'
|
|
43
|
-
example: '"tmd4ifV8RHltzn8ymGg1aw"'
|
|
44
|
-
type: string
|
|
45
38
|
- in: query
|
|
46
39
|
name: variables
|
|
47
40
|
required: true
|
|
@@ -43,35 +43,6 @@ paths:
|
|
|
43
43
|
description: get user list of followers
|
|
44
44
|
operationId: getFollowers
|
|
45
45
|
parameters:
|
|
46
|
-
- in: header
|
|
47
|
-
name: user-agent
|
|
48
|
-
required: true
|
|
49
|
-
schema:
|
|
50
|
-
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
|
51
|
-
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
|
52
|
-
description: UserAgent, some APIs may be rejected if changed.
|
|
53
|
-
type: string
|
|
54
|
-
- in: header
|
|
55
|
-
name: authorization
|
|
56
|
-
required: true
|
|
57
|
-
schema:
|
|
58
|
-
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
|
59
|
-
description: It is a constant value and does not need to be changed.
|
|
60
|
-
type: string
|
|
61
|
-
- in: header
|
|
62
|
-
name: x-twitter-active-user
|
|
63
|
-
required: true
|
|
64
|
-
schema:
|
|
65
|
-
default: 'yes'
|
|
66
|
-
description: Unknown what this value means.
|
|
67
|
-
type: string
|
|
68
|
-
- in: header
|
|
69
|
-
name: x-twitter-client-language
|
|
70
|
-
required: true
|
|
71
|
-
schema:
|
|
72
|
-
default: en
|
|
73
|
-
description: language code.
|
|
74
|
-
type: string
|
|
75
46
|
- in: path
|
|
76
47
|
name: pathQueryId
|
|
77
48
|
required: true
|
|
@@ -79,13 +50,6 @@ paths:
|
|
|
79
50
|
default: djdTXDIk2qhd4OStqlUFeQ
|
|
80
51
|
example: djdTXDIk2qhd4OStqlUFeQ
|
|
81
52
|
type: string
|
|
82
|
-
- in: query
|
|
83
|
-
name: queryId
|
|
84
|
-
required: true
|
|
85
|
-
schema:
|
|
86
|
-
default: '"djdTXDIk2qhd4OStqlUFeQ"'
|
|
87
|
-
example: '"djdTXDIk2qhd4OStqlUFeQ"'
|
|
88
|
-
type: string
|
|
89
53
|
- in: query
|
|
90
54
|
name: variables
|
|
91
55
|
required: true
|
|
@@ -156,40 +120,102 @@ paths:
|
|
|
156
120
|
type: string
|
|
157
121
|
tags:
|
|
158
122
|
- user-list
|
|
159
|
-
/graphql/{pathQueryId}/
|
|
123
|
+
/graphql/{pathQueryId}/FollowersYouKnow:
|
|
160
124
|
get:
|
|
161
|
-
description: get
|
|
162
|
-
operationId:
|
|
125
|
+
description: get followers you know
|
|
126
|
+
operationId: getFollowersYouKnow
|
|
163
127
|
parameters:
|
|
164
|
-
- in:
|
|
165
|
-
name:
|
|
128
|
+
- in: path
|
|
129
|
+
name: pathQueryId
|
|
166
130
|
required: true
|
|
167
131
|
schema:
|
|
168
|
-
default:
|
|
169
|
-
|
|
170
|
-
description: UserAgent, some APIs may be rejected if changed.
|
|
132
|
+
default: W9Iz6TVLymzCWjG2uOFKZg
|
|
133
|
+
example: W9Iz6TVLymzCWjG2uOFKZg
|
|
171
134
|
type: string
|
|
172
|
-
- in:
|
|
173
|
-
name:
|
|
135
|
+
- in: query
|
|
136
|
+
name: variables
|
|
174
137
|
required: true
|
|
175
138
|
schema:
|
|
176
|
-
default:
|
|
177
|
-
|
|
139
|
+
default: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
|
140
|
+
false}'
|
|
141
|
+
example: '{"userId": "44196397", "count": 20, "includePromotedContent":
|
|
142
|
+
false}'
|
|
178
143
|
type: string
|
|
179
|
-
- in:
|
|
180
|
-
name:
|
|
144
|
+
- in: query
|
|
145
|
+
name: features
|
|
181
146
|
required: true
|
|
182
147
|
schema:
|
|
183
|
-
default: '
|
|
184
|
-
|
|
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}'
|
|
185
172
|
type: string
|
|
186
|
-
- in:
|
|
187
|
-
name:
|
|
173
|
+
- in: query
|
|
174
|
+
name: fieldToggles
|
|
188
175
|
required: true
|
|
189
176
|
schema:
|
|
190
|
-
default:
|
|
191
|
-
|
|
177
|
+
default: '{"withArticleRichContentState": false}'
|
|
178
|
+
example: '{"withArticleRichContentState": false}'
|
|
192
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
|
|
214
|
+
/graphql/{pathQueryId}/Following:
|
|
215
|
+
get:
|
|
216
|
+
description: get user list of following
|
|
217
|
+
operationId: getFollowing
|
|
218
|
+
parameters:
|
|
193
219
|
- in: path
|
|
194
220
|
name: pathQueryId
|
|
195
221
|
required: true
|
|
@@ -197,13 +223,6 @@ paths:
|
|
|
197
223
|
default: IWP6Zt14sARO29lJT35bBw
|
|
198
224
|
example: IWP6Zt14sARO29lJT35bBw
|
|
199
225
|
type: string
|
|
200
|
-
- in: query
|
|
201
|
-
name: queryId
|
|
202
|
-
required: true
|
|
203
|
-
schema:
|
|
204
|
-
default: '"IWP6Zt14sARO29lJT35bBw"'
|
|
205
|
-
example: '"IWP6Zt14sARO29lJT35bBw"'
|
|
206
|
-
type: string
|
|
207
226
|
- in: query
|
|
208
227
|
name: variables
|
|
209
228
|
required: true
|
|
@@ -75,13 +75,6 @@ paths:
|
|
|
75
75
|
default: 9zwVLJ48lmVUk8u_Gh9DmA
|
|
76
76
|
example: 9zwVLJ48lmVUk8u_Gh9DmA
|
|
77
77
|
type: string
|
|
78
|
-
- in: query
|
|
79
|
-
name: queryId
|
|
80
|
-
required: true
|
|
81
|
-
schema:
|
|
82
|
-
default: '"9zwVLJ48lmVUk8u_Gh9DmA"'
|
|
83
|
-
example: '"9zwVLJ48lmVUk8u_Gh9DmA"'
|
|
84
|
-
type: string
|
|
85
78
|
- in: query
|
|
86
79
|
name: variables
|
|
87
80
|
required: true
|