twitter-openapi-typescript-generated 0.0.11 → 0.0.13
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 -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/BirdwatchEntity.d.ts +45 -0
- package/dist/models/BirdwatchEntity.d.ts.map +1 -0
- package/dist/models/BirdwatchEntity.js +58 -0
- package/dist/models/BirdwatchEntity.js.map +1 -0
- package/dist/models/BirdwatchEntityRef.d.ts +58 -0
- package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
- package/dist/models/BirdwatchEntityRef.js +69 -0
- package/dist/models/BirdwatchEntityRef.js.map +1 -0
- package/dist/models/BirdwatchPivot.d.ts +91 -0
- package/dist/models/BirdwatchPivot.d.ts.map +1 -0
- package/dist/models/BirdwatchPivot.js +87 -0
- package/dist/models/BirdwatchPivot.js.map +1 -0
- package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
- package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotFooter.js +55 -0
- package/dist/models/BirdwatchPivotFooter.js.map +1 -0
- package/dist/models/BirdwatchPivotNote.d.ts +32 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotNote.js +51 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.js +55 -0
- package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
- package/dist/models/ContentItemType.d.ts +1 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +2 -1
- package/dist/models/ContentItemType.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/ExtMediaAvailability.d.ts +7 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
- package/dist/models/ExtMediaAvailability.js +4 -1
- package/dist/models/ExtMediaAvailability.js.map +1 -1
- 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/ItemContentUnion.d.ts +3 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +5 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- 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/NoteTweet.d.ts +39 -0
- package/dist/models/NoteTweet.d.ts.map +1 -0
- package/dist/models/NoteTweet.js +55 -0
- package/dist/models/NoteTweet.js.map +1 -0
- package/dist/models/NoteTweetResult.d.ts +33 -0
- package/dist/models/NoteTweetResult.d.ts.map +1 -0
- package/dist/models/NoteTweetResult.js +52 -0
- package/dist/models/NoteTweetResult.js.map +1 -0
- package/dist/models/NoteTweetResultData.d.ts +59 -0
- package/dist/models/NoteTweetResultData.d.ts.map +1 -0
- package/dist/models/NoteTweetResultData.js +65 -0
- package/dist/models/NoteTweetResultData.js.map +1 -0
- package/dist/models/NoteTweetResultMedia.d.ts +32 -0
- package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
- package/dist/models/NoteTweetResultMedia.js +51 -0
- package/dist/models/NoteTweetResultMedia.js.map +1 -0
- package/dist/models/NoteTweetResultRichText.d.ts +33 -0
- package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichText.js +52 -0
- package/dist/models/NoteTweetResultRichText.js.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.js +64 -0
- package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
- 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/TimelineCommunity.d.ts +34 -0
- package/dist/models/TimelineCommunity.d.ts.map +1 -0
- package/dist/models/TimelineCommunity.js +59 -0
- package/dist/models/TimelineCommunity.js.map +1 -0
- package/dist/models/Tweet.d.ts +20 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +8 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- 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 +18 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -3
- 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/BirdwatchEntity.ts +91 -0
- package/src/models/BirdwatchEntityRef.ts +102 -0
- package/src/models/BirdwatchPivot.ts +165 -0
- package/src/models/BirdwatchPivotFooter.ts +82 -0
- package/src/models/BirdwatchPivotNote.ts +66 -0
- package/src/models/BirdwatchPivotSubtitle.ts +82 -0
- package/src/models/ContentItemType.ts +2 -1
- 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/ExtMediaAvailability.ts +10 -1
- package/src/models/Extensions.ts +109 -0
- package/src/models/ItemContentUnion.ts +12 -1
- package/src/models/ListTweetsTimeline.ts +2 -3
- package/src/models/MediaExtended.ts +2 -3
- package/src/models/NoteTweet.ts +82 -0
- package/src/models/NoteTweetResult.ts +73 -0
- package/src/models/NoteTweetResultData.ts +119 -0
- package/src/models/NoteTweetResultMedia.ts +66 -0
- package/src/models/NoteTweetResultRichText.ts +73 -0
- package/src/models/NoteTweetResultRichTextTag.ts +95 -0
- package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
- package/src/models/TimelineCommunity.ts +75 -0
- package/src/models/Tweet.ts +36 -0
- package/src/models/TypeName.ts +1 -0
- package/src/models/UserResults.ts +2 -3
- package/src/models/index.ts +18 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/.vscode/launch.json +8 -0
- package/twitter-openapi/README.md +2 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5189 -34
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +6987 -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 +9 -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 +169 -2
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
- package/twitter-openapi/test/python/test_serialize.py +24 -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.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,95 @@
|
|
|
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 NoteTweetResultRichTextTag
|
|
20
|
+
*/
|
|
21
|
+
export interface NoteTweetResultRichTextTag {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof NoteTweetResultRichTextTag
|
|
26
|
+
*/
|
|
27
|
+
fromIndex: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof NoteTweetResultRichTextTag
|
|
32
|
+
*/
|
|
33
|
+
richtextTypes: Array<NoteTweetResultRichTextTagRichtextTypesEnum>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof NoteTweetResultRichTextTag
|
|
38
|
+
*/
|
|
39
|
+
toIndex: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const NoteTweetResultRichTextTagRichtextTypesEnum = {
|
|
47
|
+
Bold: 'Bold',
|
|
48
|
+
Italic: 'Italic'
|
|
49
|
+
} as const;
|
|
50
|
+
export type NoteTweetResultRichTextTagRichtextTypesEnum = typeof NoteTweetResultRichTextTagRichtextTypesEnum[keyof typeof NoteTweetResultRichTextTagRichtextTypesEnum];
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the NoteTweetResultRichTextTag interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfNoteTweetResultRichTextTag(value: object): boolean {
|
|
57
|
+
let isInstance = true;
|
|
58
|
+
isInstance = isInstance && "fromIndex" in value;
|
|
59
|
+
isInstance = isInstance && "richtextTypes" in value;
|
|
60
|
+
isInstance = isInstance && "toIndex" in value;
|
|
61
|
+
|
|
62
|
+
return isInstance;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function NoteTweetResultRichTextTagFromJSON(json: any): NoteTweetResultRichTextTag {
|
|
66
|
+
return NoteTweetResultRichTextTagFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function NoteTweetResultRichTextTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): NoteTweetResultRichTextTag {
|
|
70
|
+
if ((json === undefined) || (json === null)) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'fromIndex': json['from_index'],
|
|
76
|
+
'richtextTypes': json['richtext_types'],
|
|
77
|
+
'toIndex': json['to_index'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function NoteTweetResultRichTextTagToJSON(value?: NoteTweetResultRichTextTag | null): any {
|
|
82
|
+
if (value === undefined) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
if (value === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'from_index': value.fromIndex,
|
|
91
|
+
'richtext_types': value.richtextTypes,
|
|
92
|
+
'to_index': value.toIndex,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -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
|
+
|
|
@@ -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
|
+
import type { TypeName } from './TypeName';
|
|
17
|
+
import {
|
|
18
|
+
TypeNameFromJSON,
|
|
19
|
+
TypeNameFromJSONTyped,
|
|
20
|
+
TypeNameToJSON,
|
|
21
|
+
} from './TypeName';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TimelineCommunity
|
|
27
|
+
*/
|
|
28
|
+
export interface TimelineCommunity {
|
|
29
|
+
[key: string]: any | any;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {TypeName}
|
|
33
|
+
* @memberof TimelineCommunity
|
|
34
|
+
*/
|
|
35
|
+
typename?: TypeName;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the TimelineCommunity interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfTimelineCommunity(value: object): boolean {
|
|
42
|
+
let isInstance = true;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TimelineCommunityFromJSON(json: any): TimelineCommunity {
|
|
48
|
+
return TimelineCommunityFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TimelineCommunityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineCommunity {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
...json,
|
|
58
|
+
'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function TimelineCommunityToJSON(value?: TimelineCommunity | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
...value,
|
|
72
|
+
'__typename': TypeNameToJSON(value.typename),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/Tweet.ts
CHANGED
|
@@ -13,12 +13,24 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { BirdwatchPivot } from './BirdwatchPivot';
|
|
17
|
+
import {
|
|
18
|
+
BirdwatchPivotFromJSON,
|
|
19
|
+
BirdwatchPivotFromJSONTyped,
|
|
20
|
+
BirdwatchPivotToJSON,
|
|
21
|
+
} from './BirdwatchPivot';
|
|
16
22
|
import type { ItemResult } from './ItemResult';
|
|
17
23
|
import {
|
|
18
24
|
ItemResultFromJSON,
|
|
19
25
|
ItemResultFromJSONTyped,
|
|
20
26
|
ItemResultToJSON,
|
|
21
27
|
} from './ItemResult';
|
|
28
|
+
import type { NoteTweet } from './NoteTweet';
|
|
29
|
+
import {
|
|
30
|
+
NoteTweetFromJSON,
|
|
31
|
+
NoteTweetFromJSONTyped,
|
|
32
|
+
NoteTweetToJSON,
|
|
33
|
+
} from './NoteTweet';
|
|
22
34
|
import type { TweetCard } from './TweetCard';
|
|
23
35
|
import {
|
|
24
36
|
TweetCardFromJSON,
|
|
@@ -74,6 +86,12 @@ export interface Tweet {
|
|
|
74
86
|
* @memberof Tweet
|
|
75
87
|
*/
|
|
76
88
|
typename?: TypeName;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {BirdwatchPivot}
|
|
92
|
+
* @memberof Tweet
|
|
93
|
+
*/
|
|
94
|
+
birdwatchPivot?: BirdwatchPivot;
|
|
77
95
|
/**
|
|
78
96
|
*
|
|
79
97
|
* @type {TweetCard}
|
|
@@ -110,6 +128,18 @@ export interface Tweet {
|
|
|
110
128
|
* @memberof Tweet
|
|
111
129
|
*/
|
|
112
130
|
legacy?: TweetLegacy;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {NoteTweet}
|
|
134
|
+
* @memberof Tweet
|
|
135
|
+
*/
|
|
136
|
+
noteTweet?: NoteTweet;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {object}
|
|
140
|
+
* @memberof Tweet
|
|
141
|
+
*/
|
|
142
|
+
quickPromoteEligibility?: object;
|
|
113
143
|
/**
|
|
114
144
|
*
|
|
115
145
|
* @type {ItemResult}
|
|
@@ -166,12 +196,15 @@ export function TweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Twe
|
|
|
166
196
|
return {
|
|
167
197
|
|
|
168
198
|
'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
|
|
199
|
+
'birdwatchPivot': !exists(json, 'birdwatch_pivot') ? undefined : BirdwatchPivotFromJSON(json['birdwatch_pivot']),
|
|
169
200
|
'card': !exists(json, 'card') ? undefined : TweetCardFromJSON(json['card']),
|
|
170
201
|
'core': !exists(json, 'core') ? undefined : UserResultCoreFromJSON(json['core']),
|
|
171
202
|
'editControl': TweetEditControlFromJSON(json['edit_control']),
|
|
172
203
|
'editPrespective': !exists(json, 'edit_prespective') ? undefined : TweetEditPrespectiveFromJSON(json['edit_prespective']),
|
|
173
204
|
'isTranslatable': json['is_translatable'],
|
|
174
205
|
'legacy': !exists(json, 'legacy') ? undefined : TweetLegacyFromJSON(json['legacy']),
|
|
206
|
+
'noteTweet': !exists(json, 'note_tweet') ? undefined : NoteTweetFromJSON(json['note_tweet']),
|
|
207
|
+
'quickPromoteEligibility': !exists(json, 'quick_promote_eligibility') ? undefined : json['quick_promote_eligibility'],
|
|
175
208
|
'quotedStatusResult': !exists(json, 'quoted_status_result') ? undefined : ItemResultFromJSON(json['quoted_status_result']),
|
|
176
209
|
'restId': json['rest_id'],
|
|
177
210
|
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
@@ -190,12 +223,15 @@ export function TweetToJSON(value?: Tweet | null): any {
|
|
|
190
223
|
return {
|
|
191
224
|
|
|
192
225
|
'__typename': TypeNameToJSON(value.typename),
|
|
226
|
+
'birdwatch_pivot': BirdwatchPivotToJSON(value.birdwatchPivot),
|
|
193
227
|
'card': TweetCardToJSON(value.card),
|
|
194
228
|
'core': UserResultCoreToJSON(value.core),
|
|
195
229
|
'edit_control': TweetEditControlToJSON(value.editControl),
|
|
196
230
|
'edit_prespective': TweetEditPrespectiveToJSON(value.editPrespective),
|
|
197
231
|
'is_translatable': value.isTranslatable,
|
|
198
232
|
'legacy': TweetLegacyToJSON(value.legacy),
|
|
233
|
+
'note_tweet': NoteTweetToJSON(value.noteTweet),
|
|
234
|
+
'quick_promote_eligibility': value.quickPromoteEligibility,
|
|
199
235
|
'quoted_status_result': ItemResultToJSON(value.quotedStatusResult),
|
|
200
236
|
'rest_id': value.restId,
|
|
201
237
|
'source': value.source,
|
package/src/models/TypeName.ts
CHANGED
|
@@ -27,6 +27,7 @@ export const TypeName = {
|
|
|
27
27
|
TweetTombstone: 'TweetTombstone',
|
|
28
28
|
TimelinePrompt: 'TimelinePrompt',
|
|
29
29
|
TimelineMessagePrompt: 'TimelineMessagePrompt',
|
|
30
|
+
TimelineCommunity: 'TimelineCommunity',
|
|
30
31
|
TweetUnavailable: 'TweetUnavailable',
|
|
31
32
|
Tweet: 'Tweet',
|
|
32
33
|
User: 'User',
|
|
@@ -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
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AdditionalMediaInfo';
|
|
4
|
+
export * from './BirdwatchEntity';
|
|
5
|
+
export * from './BirdwatchEntityRef';
|
|
6
|
+
export * from './BirdwatchPivot';
|
|
7
|
+
export * from './BirdwatchPivotFooter';
|
|
8
|
+
export * from './BirdwatchPivotNote';
|
|
9
|
+
export * from './BirdwatchPivotSubtitle';
|
|
4
10
|
export * from './BookmarksResponse';
|
|
5
11
|
export * from './BookmarksResponseData';
|
|
6
12
|
export * from './BookmarksTimeline';
|
|
@@ -21,16 +27,20 @@ export * from './CreateTweetResponseData';
|
|
|
21
27
|
export * from './CreateTweetResponseResult';
|
|
22
28
|
export * from './CtaClientEventInfo';
|
|
23
29
|
export * from './CursorType';
|
|
30
|
+
export * from './DeleteRetweet';
|
|
24
31
|
export * from './DeleteRetweetResponse';
|
|
25
32
|
export * from './DeleteRetweetResponseData';
|
|
33
|
+
export * from './DeleteRetweetResponseResult';
|
|
26
34
|
export * from './DeleteTweetResponse';
|
|
27
35
|
export * from './DeleteTweetResponseData';
|
|
28
36
|
export * from './DeleteTweetResponseResult';
|
|
29
37
|
export * from './Entities';
|
|
30
38
|
export * from './ErrorExtensions';
|
|
39
|
+
export * from './ErrorResponse';
|
|
31
40
|
export * from './Errors';
|
|
32
41
|
export * from './ExtMediaAvailability';
|
|
33
42
|
export * from './ExtendedEntities';
|
|
43
|
+
export * from './Extensions';
|
|
34
44
|
export * from './FavoriteTweet';
|
|
35
45
|
export * from './FavoriteTweetResponseData';
|
|
36
46
|
export * from './FollowResponse';
|
|
@@ -75,6 +85,12 @@ export * from './MediaVideoInfoVariant';
|
|
|
75
85
|
export * from './ModelError';
|
|
76
86
|
export * from './ModuleEntry';
|
|
77
87
|
export * from './ModuleItem';
|
|
88
|
+
export * from './NoteTweet';
|
|
89
|
+
export * from './NoteTweetResult';
|
|
90
|
+
export * from './NoteTweetResultData';
|
|
91
|
+
export * from './NoteTweetResultMedia';
|
|
92
|
+
export * from './NoteTweetResultRichText';
|
|
93
|
+
export * from './NoteTweetResultRichTextTag';
|
|
78
94
|
export * from './OneFactorLoginEligibility';
|
|
79
95
|
export * from './Other200Response';
|
|
80
96
|
export * from './OtherResponse';
|
|
@@ -86,6 +102,7 @@ export * from './PostCreateTweetRequest';
|
|
|
86
102
|
export * from './PostCreateTweetRequestFeatures';
|
|
87
103
|
export * from './PostCreateTweetRequestVariables';
|
|
88
104
|
export * from './PostCreateTweetRequestVariablesMedia';
|
|
105
|
+
export * from './PostCreateTweetRequestVariablesMediaMediaEntitiesInner';
|
|
89
106
|
export * from './PostDeleteRetweet200Response';
|
|
90
107
|
export * from './PostDeleteRetweetRequest';
|
|
91
108
|
export * from './PostDeleteRetweetRequestVariables';
|
|
@@ -114,6 +131,7 @@ export * from './TimelineAddEntries';
|
|
|
114
131
|
export * from './TimelineAddEntry';
|
|
115
132
|
export * from './TimelineAddToModule';
|
|
116
133
|
export * from './TimelineClearCache';
|
|
134
|
+
export * from './TimelineCommunity';
|
|
117
135
|
export * from './TimelineCoverBehavior';
|
|
118
136
|
export * from './TimelineHalfCover';
|
|
119
137
|
export * from './TimelineMessagePrompt';
|
|
@@ -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",
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Twitter OpenAPI(Swagger) specification
|
|
4
4
|
|
|
5
|
+
[issues](https://github.com/fa0311/twitter-openapi/issues) / [discussions](https://github.com/fa0311/twitter-openapi/discussions)
|
|
6
|
+
|
|
5
7
|
- [Python](https://github.com/fa0311/twitter_openapi_python)
|
|
6
8
|
- [Dart](https://github.com/fa0311/twitter_openapi_dart)
|
|
7
9
|
- [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
|