twitter-openapi-typescript-generated 0.0.11 → 0.0.12
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 +5 -0
- package/LICENSE +31 -31
- package/LICENSE.AGPL +660 -660
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +86 -18
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +43 -9
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +264 -60
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +1 -2
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +479 -111
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -0
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +92 -18
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +0 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +215 -51
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +43 -9
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +86 -18
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +72 -6
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +43 -9
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/CoverCta.d.ts +1 -1
- package/dist/models/CoverCta.d.ts.map +1 -1
- package/dist/models/CoverCta.js +1 -2
- package/dist/models/CoverCta.js.map +1 -1
- package/dist/models/DeleteRetweet.d.ts +33 -0
- package/dist/models/DeleteRetweet.d.ts.map +1 -0
- package/dist/models/DeleteRetweet.js +52 -0
- package/dist/models/DeleteRetweet.js.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.js +52 -0
- package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +33 -0
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/Extensions.d.ts +57 -0
- package/dist/models/Extensions.d.ts.map +1 -0
- package/dist/models/Extensions.js +64 -0
- package/dist/models/Extensions.js.map +1 -0
- package/dist/models/ListTweetsTimeline.d.ts +1 -1
- package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
- package/dist/models/ListTweetsTimeline.js +2 -2
- package/dist/models/ListTweetsTimeline.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +1 -1
- package/dist/models/MediaExtended.d.ts.map +1 -1
- package/dist/models/MediaExtended.js +1 -2
- package/dist/models/MediaExtended.js.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
- package/dist/models/UserResults.d.ts +1 -1
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +2 -2
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +5 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +94 -6
- package/src/apis/OtherApi.ts +47 -3
- package/src/apis/PostApi.ts +282 -18
- package/src/apis/TweetApi.ts +526 -51
- package/src/apis/UserApi.ts +103 -6
- package/src/apis/UserListApi.ts +235 -24
- package/src/apis/UsersApi.ts +47 -3
- package/src/apis/V11GetApi.ts +94 -6
- package/src/apis/V11PostApi.ts +94 -6
- package/src/apis/V20GetApi.ts +47 -3
- package/src/models/CoverCta.ts +2 -3
- package/src/models/DeleteRetweet.ts +73 -0
- package/src/models/DeleteRetweetResponseResult.ts +72 -0
- package/src/models/ErrorResponse.ts +73 -0
- package/src/models/Extensions.ts +109 -0
- package/src/models/ListTweetsTimeline.ts +2 -3
- package/src/models/MediaExtended.ts +2 -3
- package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
- package/src/models/UserResults.ts +2 -3
- package/src/models/index.ts +5 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/.vscode/launch.json +8 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5017 -34
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +6815 -34
- package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
- package/twitter-openapi/src/config/placeholder.json +145 -112
- package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
- package/twitter-openapi/src/openapi/schemas/content.yaml +0 -1
- package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +0 -1
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +1 -1
- package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
- 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.py +35 -31
- package/twitter-openapi/tools/build_config.py +7 -10
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
- package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
- package/twitter-openapi/dist/compatible/paths/other.yaml +0 -99
- package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
- package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
- package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
- package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
- package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -99
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -214
- package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -286
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -508
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -23
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
|
@@ -0,0 +1,109 @@
|
|
|
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 { Tracing } from './Tracing';
|
|
17
|
+
import {
|
|
18
|
+
TracingFromJSON,
|
|
19
|
+
TracingFromJSONTyped,
|
|
20
|
+
TracingToJSON,
|
|
21
|
+
} from './Tracing';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Extensions
|
|
27
|
+
*/
|
|
28
|
+
export interface Extensions {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Extensions
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Extensions
|
|
39
|
+
*/
|
|
40
|
+
kind: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Extensions
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Extensions
|
|
51
|
+
*/
|
|
52
|
+
source: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Tracing}
|
|
56
|
+
* @memberof Extensions
|
|
57
|
+
*/
|
|
58
|
+
tracing: Tracing;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the Extensions interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfExtensions(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "code" in value;
|
|
67
|
+
isInstance = isInstance && "kind" in value;
|
|
68
|
+
isInstance = isInstance && "name" in value;
|
|
69
|
+
isInstance = isInstance && "source" in value;
|
|
70
|
+
isInstance = isInstance && "tracing" in value;
|
|
71
|
+
|
|
72
|
+
return isInstance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ExtensionsFromJSON(json: any): Extensions {
|
|
76
|
+
return ExtensionsFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ExtensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Extensions {
|
|
80
|
+
if ((json === undefined) || (json === null)) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'code': json['code'],
|
|
86
|
+
'kind': json['kind'],
|
|
87
|
+
'name': json['name'],
|
|
88
|
+
'source': json['source'],
|
|
89
|
+
'tracing': TracingFromJSON(json['tracing']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ExtensionsToJSON(value?: Extensions | null): any {
|
|
94
|
+
if (value === undefined) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
if (value === null) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'code': value.code,
|
|
103
|
+
'kind': value.kind,
|
|
104
|
+
'name': value.name,
|
|
105
|
+
'source': value.source,
|
|
106
|
+
'tracing': TracingToJSON(value.tracing),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -31,7 +31,7 @@ export interface ListTweetsTimeline {
|
|
|
31
31
|
* @type {Timeline}
|
|
32
32
|
* @memberof ListTweetsTimeline
|
|
33
33
|
*/
|
|
34
|
-
timeline
|
|
34
|
+
timeline?: Timeline;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -39,7 +39,6 @@ export interface ListTweetsTimeline {
|
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfListTweetsTimeline(value: object): boolean {
|
|
41
41
|
let isInstance = true;
|
|
42
|
-
isInstance = isInstance && "timeline" in value;
|
|
43
42
|
|
|
44
43
|
return isInstance;
|
|
45
44
|
}
|
|
@@ -54,7 +53,7 @@ export function ListTweetsTimelineFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
54
53
|
}
|
|
55
54
|
return {
|
|
56
55
|
|
|
57
|
-
'timeline': TimelineFromJSON(json['timeline']),
|
|
56
|
+
'timeline': !exists(json, 'timeline') ? undefined : TimelineFromJSON(json['timeline']),
|
|
58
57
|
};
|
|
59
58
|
}
|
|
60
59
|
|
|
@@ -79,7 +79,7 @@ export interface MediaExtended {
|
|
|
79
79
|
* @type {ExtMediaAvailability}
|
|
80
80
|
* @memberof MediaExtended
|
|
81
81
|
*/
|
|
82
|
-
extMediaAvailability
|
|
82
|
+
extMediaAvailability?: ExtMediaAvailability;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {object}
|
|
@@ -167,7 +167,6 @@ export function instanceOfMediaExtended(value: object): boolean {
|
|
|
167
167
|
let isInstance = true;
|
|
168
168
|
isInstance = isInstance && "displayUrl" in value;
|
|
169
169
|
isInstance = isInstance && "expandedUrl" in value;
|
|
170
|
-
isInstance = isInstance && "extMediaAvailability" in value;
|
|
171
170
|
isInstance = isInstance && "idStr" in value;
|
|
172
171
|
isInstance = isInstance && "indices" in value;
|
|
173
172
|
isInstance = isInstance && "mediaKey" in value;
|
|
@@ -193,7 +192,7 @@ export function MediaExtendedFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
193
192
|
'additionalMediaInfo': !exists(json, 'additional_media_info') ? undefined : AdditionalMediaInfoFromJSON(json['additional_media_info']),
|
|
194
193
|
'displayUrl': json['display_url'],
|
|
195
194
|
'expandedUrl': json['expanded_url'],
|
|
196
|
-
'extMediaAvailability': ExtMediaAvailabilityFromJSON(json['ext_media_availability']),
|
|
195
|
+
'extMediaAvailability': !exists(json, 'ext_media_availability') ? undefined : ExtMediaAvailabilityFromJSON(json['ext_media_availability']),
|
|
197
196
|
'features': !exists(json, 'features') ? undefined : json['features'],
|
|
198
197
|
'idStr': json['id_str'],
|
|
199
198
|
'indices': json['indices'],
|
|
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PostCreateTweetRequestFeatures
|
|
20
20
|
*/
|
|
21
21
|
export interface PostCreateTweetRequestFeatures {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
* @memberof PostCreateTweetRequestFeatures
|
|
26
|
-
*/
|
|
27
|
-
blueBusinessProfileImageShapeEnabled: boolean;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {boolean}
|
|
@@ -42,13 +36,13 @@ export interface PostCreateTweetRequestFeatures {
|
|
|
42
36
|
* @type {boolean}
|
|
43
37
|
* @memberof PostCreateTweetRequestFeatures
|
|
44
38
|
*/
|
|
45
|
-
|
|
39
|
+
longformNotetweetsConsumptionEnabled: boolean;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {boolean}
|
|
49
43
|
* @memberof PostCreateTweetRequestFeatures
|
|
50
44
|
*/
|
|
51
|
-
|
|
45
|
+
longformNotetweetsInlineMediaEnabled: boolean;
|
|
52
46
|
/**
|
|
53
47
|
*
|
|
54
48
|
* @type {boolean}
|
|
@@ -90,43 +84,43 @@ export interface PostCreateTweetRequestFeatures {
|
|
|
90
84
|
* @type {boolean}
|
|
91
85
|
* @memberof PostCreateTweetRequestFeatures
|
|
92
86
|
*/
|
|
93
|
-
|
|
87
|
+
responsiveWebMediaDownloadVideoEnabled: boolean;
|
|
94
88
|
/**
|
|
95
89
|
*
|
|
96
90
|
* @type {boolean}
|
|
97
91
|
* @memberof PostCreateTweetRequestFeatures
|
|
98
92
|
*/
|
|
99
|
-
|
|
93
|
+
responsiveWebTwitterArticleTweetConsumptionEnabled: boolean;
|
|
100
94
|
/**
|
|
101
95
|
*
|
|
102
96
|
* @type {boolean}
|
|
103
97
|
* @memberof PostCreateTweetRequestFeatures
|
|
104
98
|
*/
|
|
105
|
-
|
|
99
|
+
standardizedNudgesMisinfo: boolean;
|
|
106
100
|
/**
|
|
107
101
|
*
|
|
108
102
|
* @type {boolean}
|
|
109
103
|
* @memberof PostCreateTweetRequestFeatures
|
|
110
104
|
*/
|
|
111
|
-
|
|
105
|
+
tweetAwardsWebTippingEnabled: boolean;
|
|
112
106
|
/**
|
|
113
107
|
*
|
|
114
108
|
* @type {boolean}
|
|
115
109
|
* @memberof PostCreateTweetRequestFeatures
|
|
116
110
|
*/
|
|
117
|
-
|
|
111
|
+
tweetWithVisibilityResultsPreferGqlLimitedActionsPolicyEnabled: boolean;
|
|
118
112
|
/**
|
|
119
113
|
*
|
|
120
114
|
* @type {boolean}
|
|
121
115
|
* @memberof PostCreateTweetRequestFeatures
|
|
122
116
|
*/
|
|
123
|
-
|
|
117
|
+
tweetypieUnmentionOptimizationEnabled: boolean;
|
|
124
118
|
/**
|
|
125
119
|
*
|
|
126
120
|
* @type {boolean}
|
|
127
121
|
* @memberof PostCreateTweetRequestFeatures
|
|
128
122
|
*/
|
|
129
|
-
|
|
123
|
+
verifiedPhoneLabelEnabled: boolean;
|
|
130
124
|
/**
|
|
131
125
|
*
|
|
132
126
|
* @type {boolean}
|
|
@@ -140,24 +134,23 @@ export interface PostCreateTweetRequestFeatures {
|
|
|
140
134
|
*/
|
|
141
135
|
export function instanceOfPostCreateTweetRequestFeatures(value: object): boolean {
|
|
142
136
|
let isInstance = true;
|
|
143
|
-
isInstance = isInstance && "blueBusinessProfileImageShapeEnabled" in value;
|
|
144
137
|
isInstance = isInstance && "freedomOfSpeechNotReachFetchEnabled" in value;
|
|
145
138
|
isInstance = isInstance && "graphqlIsTranslatableRwebTweetIsTranslatableEnabled" in value;
|
|
146
|
-
isInstance = isInstance && "interactiveTextEnabled" in value;
|
|
147
139
|
isInstance = isInstance && "longformNotetweetsConsumptionEnabled" in value;
|
|
140
|
+
isInstance = isInstance && "longformNotetweetsInlineMediaEnabled" in value;
|
|
148
141
|
isInstance = isInstance && "longformNotetweetsRichTextReadEnabled" in value;
|
|
149
142
|
isInstance = isInstance && "responsiveWebEditTweetApiEnabled" in value;
|
|
150
143
|
isInstance = isInstance && "responsiveWebEnhanceCardsEnabled" in value;
|
|
151
144
|
isInstance = isInstance && "responsiveWebGraphqlExcludeDirectiveEnabled" in value;
|
|
152
145
|
isInstance = isInstance && "responsiveWebGraphqlSkipUserProfileImageExtensionsEnabled" in value;
|
|
153
146
|
isInstance = isInstance && "responsiveWebGraphqlTimelineNavigationEnabled" in value;
|
|
154
|
-
isInstance = isInstance && "
|
|
147
|
+
isInstance = isInstance && "responsiveWebMediaDownloadVideoEnabled" in value;
|
|
148
|
+
isInstance = isInstance && "responsiveWebTwitterArticleTweetConsumptionEnabled" in value;
|
|
155
149
|
isInstance = isInstance && "standardizedNudgesMisinfo" in value;
|
|
156
150
|
isInstance = isInstance && "tweetAwardsWebTippingEnabled" in value;
|
|
157
151
|
isInstance = isInstance && "tweetWithVisibilityResultsPreferGqlLimitedActionsPolicyEnabled" in value;
|
|
158
152
|
isInstance = isInstance && "tweetypieUnmentionOptimizationEnabled" in value;
|
|
159
153
|
isInstance = isInstance && "verifiedPhoneLabelEnabled" in value;
|
|
160
|
-
isInstance = isInstance && "vibeApiEnabled" in value;
|
|
161
154
|
isInstance = isInstance && "viewCountsEverywhereApiEnabled" in value;
|
|
162
155
|
|
|
163
156
|
return isInstance;
|
|
@@ -173,24 +166,23 @@ export function PostCreateTweetRequestFeaturesFromJSONTyped(json: any, ignoreDis
|
|
|
173
166
|
}
|
|
174
167
|
return {
|
|
175
168
|
|
|
176
|
-
'blueBusinessProfileImageShapeEnabled': json['blue_business_profile_image_shape_enabled'],
|
|
177
169
|
'freedomOfSpeechNotReachFetchEnabled': json['freedom_of_speech_not_reach_fetch_enabled'],
|
|
178
170
|
'graphqlIsTranslatableRwebTweetIsTranslatableEnabled': json['graphql_is_translatable_rweb_tweet_is_translatable_enabled'],
|
|
179
|
-
'interactiveTextEnabled': json['interactive_text_enabled'],
|
|
180
171
|
'longformNotetweetsConsumptionEnabled': json['longform_notetweets_consumption_enabled'],
|
|
172
|
+
'longformNotetweetsInlineMediaEnabled': json['longform_notetweets_inline_media_enabled'],
|
|
181
173
|
'longformNotetweetsRichTextReadEnabled': json['longform_notetweets_rich_text_read_enabled'],
|
|
182
174
|
'responsiveWebEditTweetApiEnabled': json['responsive_web_edit_tweet_api_enabled'],
|
|
183
175
|
'responsiveWebEnhanceCardsEnabled': json['responsive_web_enhance_cards_enabled'],
|
|
184
176
|
'responsiveWebGraphqlExcludeDirectiveEnabled': json['responsive_web_graphql_exclude_directive_enabled'],
|
|
185
177
|
'responsiveWebGraphqlSkipUserProfileImageExtensionsEnabled': json['responsive_web_graphql_skip_user_profile_image_extensions_enabled'],
|
|
186
178
|
'responsiveWebGraphqlTimelineNavigationEnabled': json['responsive_web_graphql_timeline_navigation_enabled'],
|
|
187
|
-
'
|
|
179
|
+
'responsiveWebMediaDownloadVideoEnabled': json['responsive_web_media_download_video_enabled'],
|
|
180
|
+
'responsiveWebTwitterArticleTweetConsumptionEnabled': json['responsive_web_twitter_article_tweet_consumption_enabled'],
|
|
188
181
|
'standardizedNudgesMisinfo': json['standardized_nudges_misinfo'],
|
|
189
182
|
'tweetAwardsWebTippingEnabled': json['tweet_awards_web_tipping_enabled'],
|
|
190
183
|
'tweetWithVisibilityResultsPreferGqlLimitedActionsPolicyEnabled': json['tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled'],
|
|
191
184
|
'tweetypieUnmentionOptimizationEnabled': json['tweetypie_unmention_optimization_enabled'],
|
|
192
185
|
'verifiedPhoneLabelEnabled': json['verified_phone_label_enabled'],
|
|
193
|
-
'vibeApiEnabled': json['vibe_api_enabled'],
|
|
194
186
|
'viewCountsEverywhereApiEnabled': json['view_counts_everywhere_api_enabled'],
|
|
195
187
|
};
|
|
196
188
|
}
|
|
@@ -204,24 +196,23 @@ export function PostCreateTweetRequestFeaturesToJSON(value?: PostCreateTweetRequ
|
|
|
204
196
|
}
|
|
205
197
|
return {
|
|
206
198
|
|
|
207
|
-
'blue_business_profile_image_shape_enabled': value.blueBusinessProfileImageShapeEnabled,
|
|
208
199
|
'freedom_of_speech_not_reach_fetch_enabled': value.freedomOfSpeechNotReachFetchEnabled,
|
|
209
200
|
'graphql_is_translatable_rweb_tweet_is_translatable_enabled': value.graphqlIsTranslatableRwebTweetIsTranslatableEnabled,
|
|
210
|
-
'interactive_text_enabled': value.interactiveTextEnabled,
|
|
211
201
|
'longform_notetweets_consumption_enabled': value.longformNotetweetsConsumptionEnabled,
|
|
202
|
+
'longform_notetweets_inline_media_enabled': value.longformNotetweetsInlineMediaEnabled,
|
|
212
203
|
'longform_notetweets_rich_text_read_enabled': value.longformNotetweetsRichTextReadEnabled,
|
|
213
204
|
'responsive_web_edit_tweet_api_enabled': value.responsiveWebEditTweetApiEnabled,
|
|
214
205
|
'responsive_web_enhance_cards_enabled': value.responsiveWebEnhanceCardsEnabled,
|
|
215
206
|
'responsive_web_graphql_exclude_directive_enabled': value.responsiveWebGraphqlExcludeDirectiveEnabled,
|
|
216
207
|
'responsive_web_graphql_skip_user_profile_image_extensions_enabled': value.responsiveWebGraphqlSkipUserProfileImageExtensionsEnabled,
|
|
217
208
|
'responsive_web_graphql_timeline_navigation_enabled': value.responsiveWebGraphqlTimelineNavigationEnabled,
|
|
218
|
-
'
|
|
209
|
+
'responsive_web_media_download_video_enabled': value.responsiveWebMediaDownloadVideoEnabled,
|
|
210
|
+
'responsive_web_twitter_article_tweet_consumption_enabled': value.responsiveWebTwitterArticleTweetConsumptionEnabled,
|
|
219
211
|
'standardized_nudges_misinfo': value.standardizedNudgesMisinfo,
|
|
220
212
|
'tweet_awards_web_tipping_enabled': value.tweetAwardsWebTippingEnabled,
|
|
221
213
|
'tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled': value.tweetWithVisibilityResultsPreferGqlLimitedActionsPolicyEnabled,
|
|
222
214
|
'tweetypie_unmention_optimization_enabled': value.tweetypieUnmentionOptimizationEnabled,
|
|
223
215
|
'verified_phone_label_enabled': value.verifiedPhoneLabelEnabled,
|
|
224
|
-
'vibe_api_enabled': value.vibeApiEnabled,
|
|
225
216
|
'view_counts_everywhere_api_enabled': value.viewCountsEverywhereApiEnabled,
|
|
226
217
|
};
|
|
227
218
|
}
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { PostCreateTweetRequestVariablesMediaMediaEntitiesInner } from './PostCreateTweetRequestVariablesMediaMediaEntitiesInner';
|
|
17
|
+
import {
|
|
18
|
+
PostCreateTweetRequestVariablesMediaMediaEntitiesInnerFromJSON,
|
|
19
|
+
PostCreateTweetRequestVariablesMediaMediaEntitiesInnerFromJSONTyped,
|
|
20
|
+
PostCreateTweetRequestVariablesMediaMediaEntitiesInnerToJSON,
|
|
21
|
+
} from './PostCreateTweetRequestVariablesMediaMediaEntitiesInner';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -21,10 +28,10 @@ import { exists, mapValues } from '../runtime';
|
|
|
21
28
|
export interface PostCreateTweetRequestVariablesMedia {
|
|
22
29
|
/**
|
|
23
30
|
*
|
|
24
|
-
* @type {Array<
|
|
31
|
+
* @type {Array<PostCreateTweetRequestVariablesMediaMediaEntitiesInner>}
|
|
25
32
|
* @memberof PostCreateTweetRequestVariablesMedia
|
|
26
33
|
*/
|
|
27
|
-
mediaEntities: Array<
|
|
34
|
+
mediaEntities: Array<PostCreateTweetRequestVariablesMediaMediaEntitiesInner>;
|
|
28
35
|
/**
|
|
29
36
|
*
|
|
30
37
|
* @type {boolean}
|
|
@@ -54,7 +61,7 @@ export function PostCreateTweetRequestVariablesMediaFromJSONTyped(json: any, ign
|
|
|
54
61
|
}
|
|
55
62
|
return {
|
|
56
63
|
|
|
57
|
-
'mediaEntities': json['media_entities'],
|
|
64
|
+
'mediaEntities': ((json['media_entities'] as Array<any>).map(PostCreateTweetRequestVariablesMediaMediaEntitiesInnerFromJSON)),
|
|
58
65
|
'possiblySensitive': json['possibly_sensitive'],
|
|
59
66
|
};
|
|
60
67
|
}
|
|
@@ -68,7 +75,7 @@ export function PostCreateTweetRequestVariablesMediaToJSON(value?: PostCreateTwe
|
|
|
68
75
|
}
|
|
69
76
|
return {
|
|
70
77
|
|
|
71
|
-
'media_entities': value.mediaEntities,
|
|
78
|
+
'media_entities': ((value.mediaEntities as Array<any>).map(PostCreateTweetRequestVariablesMediaMediaEntitiesInnerToJSON)),
|
|
72
79
|
'possibly_sensitive': value.possiblySensitive,
|
|
73
80
|
};
|
|
74
81
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostCreateTweetRequestVariablesMediaMediaEntitiesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface PostCreateTweetRequestVariablesMediaMediaEntitiesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostCreateTweetRequestVariablesMediaMediaEntitiesInner
|
|
26
|
+
*/
|
|
27
|
+
mediaId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<object>}
|
|
31
|
+
* @memberof PostCreateTweetRequestVariablesMediaMediaEntitiesInner
|
|
32
|
+
*/
|
|
33
|
+
taggedUsers: Array<object>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostCreateTweetRequestVariablesMediaMediaEntitiesInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostCreateTweetRequestVariablesMediaMediaEntitiesInner(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "mediaId" in value;
|
|
42
|
+
isInstance = isInstance && "taggedUsers" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PostCreateTweetRequestVariablesMediaMediaEntitiesInnerFromJSON(json: any): PostCreateTweetRequestVariablesMediaMediaEntitiesInner {
|
|
48
|
+
return PostCreateTweetRequestVariablesMediaMediaEntitiesInnerFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PostCreateTweetRequestVariablesMediaMediaEntitiesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCreateTweetRequestVariablesMediaMediaEntitiesInner {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'mediaId': json['media_id'],
|
|
58
|
+
'taggedUsers': json['tagged_users'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PostCreateTweetRequestVariablesMediaMediaEntitiesInnerToJSON(value?: PostCreateTweetRequestVariablesMediaMediaEntitiesInner | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'media_id': value.mediaId,
|
|
72
|
+
'tagged_users': value.taggedUsers,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -31,7 +31,7 @@ export interface UserResults {
|
|
|
31
31
|
* @type {UserUnion}
|
|
32
32
|
* @memberof UserResults
|
|
33
33
|
*/
|
|
34
|
-
result
|
|
34
|
+
result?: UserUnion;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -39,7 +39,6 @@ export interface UserResults {
|
|
|
39
39
|
*/
|
|
40
40
|
export function instanceOfUserResults(value: object): boolean {
|
|
41
41
|
let isInstance = true;
|
|
42
|
-
isInstance = isInstance && "result" in value;
|
|
43
42
|
|
|
44
43
|
return isInstance;
|
|
45
44
|
}
|
|
@@ -54,7 +53,7 @@ export function UserResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
54
53
|
}
|
|
55
54
|
return {
|
|
56
55
|
|
|
57
|
-
'result': UserUnionFromJSON(json['result']),
|
|
56
|
+
'result': !exists(json, 'result') ? undefined : UserUnionFromJSON(json['result']),
|
|
58
57
|
};
|
|
59
58
|
}
|
|
60
59
|
|
package/src/models/index.ts
CHANGED
|
@@ -21,16 +21,20 @@ export * from './CreateTweetResponseData';
|
|
|
21
21
|
export * from './CreateTweetResponseResult';
|
|
22
22
|
export * from './CtaClientEventInfo';
|
|
23
23
|
export * from './CursorType';
|
|
24
|
+
export * from './DeleteRetweet';
|
|
24
25
|
export * from './DeleteRetweetResponse';
|
|
25
26
|
export * from './DeleteRetweetResponseData';
|
|
27
|
+
export * from './DeleteRetweetResponseResult';
|
|
26
28
|
export * from './DeleteTweetResponse';
|
|
27
29
|
export * from './DeleteTweetResponseData';
|
|
28
30
|
export * from './DeleteTweetResponseResult';
|
|
29
31
|
export * from './Entities';
|
|
30
32
|
export * from './ErrorExtensions';
|
|
33
|
+
export * from './ErrorResponse';
|
|
31
34
|
export * from './Errors';
|
|
32
35
|
export * from './ExtMediaAvailability';
|
|
33
36
|
export * from './ExtendedEntities';
|
|
37
|
+
export * from './Extensions';
|
|
34
38
|
export * from './FavoriteTweet';
|
|
35
39
|
export * from './FavoriteTweetResponseData';
|
|
36
40
|
export * from './FollowResponse';
|
|
@@ -86,6 +90,7 @@ export * from './PostCreateTweetRequest';
|
|
|
86
90
|
export * from './PostCreateTweetRequestFeatures';
|
|
87
91
|
export * from './PostCreateTweetRequestVariables';
|
|
88
92
|
export * from './PostCreateTweetRequestVariablesMedia';
|
|
93
|
+
export * from './PostCreateTweetRequestVariablesMediaMediaEntitiesInner';
|
|
89
94
|
export * from './PostDeleteRetweet200Response';
|
|
90
95
|
export * from './PostDeleteRetweetRequest';
|
|
91
96
|
export * from './PostDeleteRetweetRequestVariables';
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.2.0",
|
|
3
3
|
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Python: 現在のファイル",
|
|
6
|
+
"type": "python",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "${file}",
|
|
9
|
+
"console": "integratedTerminal",
|
|
10
|
+
"justMyCode": false
|
|
11
|
+
},
|
|
4
12
|
{
|
|
5
13
|
"name": "build",
|
|
6
14
|
"type": "python",
|