twitter-openapi-typescript-generated 0.0.10 → 0.0.11
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 +24 -4
- package/LICENSE +31 -0
- package/{LICENSE.txt → LICENSE.AGPL} +661 -661
- package/README.md +2 -2
- package/dist/apis/DefaultApi.js +1 -1
- package/dist/apis/OtherApi.js +1 -1
- package/dist/apis/PostApi.js +1 -1
- package/dist/apis/TweetApi.js +1 -1
- package/dist/apis/UserApi.js +1 -1
- package/dist/apis/UserListApi.js +1 -1
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/V11GetApi.js +1 -1
- package/dist/apis/V11PostApi.js +1 -1
- package/dist/apis/V20GetApi.js +1 -1
- package/dist/models/AdditionalMediaInfo.d.ts +32 -0
- package/dist/models/AdditionalMediaInfo.d.ts.map +1 -0
- package/dist/models/AdditionalMediaInfo.js +51 -0
- package/dist/models/AdditionalMediaInfo.js.map +1 -0
- package/dist/models/Callback.d.ts +32 -0
- package/dist/models/Callback.d.ts.map +1 -0
- package/dist/models/Callback.js +51 -0
- package/dist/models/Callback.js.map +1 -0
- package/dist/models/ClientEventInfo.d.ts +46 -0
- package/dist/models/ClientEventInfo.d.ts.map +1 -0
- package/dist/models/ClientEventInfo.js +55 -0
- package/dist/models/ClientEventInfo.js.map +1 -0
- package/dist/models/ContentEntryType.d.ts +1 -1
- package/dist/models/ContentEntryType.d.ts.map +1 -1
- package/dist/models/ContentItemType.d.ts +1 -1
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentUnion.d.ts +1 -1
- package/dist/models/ContentUnion.d.ts.map +1 -1
- package/dist/models/CoverCta.d.ts +66 -0
- package/dist/models/CoverCta.d.ts.map +1 -0
- package/dist/models/CoverCta.js +72 -0
- package/dist/models/CoverCta.js.map +1 -0
- package/dist/models/CtaClientEventInfo.d.ts +39 -0
- package/dist/models/CtaClientEventInfo.d.ts.map +1 -0
- package/dist/models/CtaClientEventInfo.js +57 -0
- package/dist/models/CtaClientEventInfo.js.map +1 -0
- package/dist/models/CursorType.d.ts +1 -1
- package/dist/models/CursorType.d.ts.map +1 -1
- package/dist/models/ExtMediaAvailability.d.ts +39 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -0
- package/dist/models/ExtMediaAvailability.js +57 -0
- package/dist/models/ExtMediaAvailability.js.map +1 -0
- package/dist/models/ExtendedEntities.d.ts +3 -3
- package/dist/models/ExtendedEntities.d.ts.map +1 -1
- package/dist/models/ExtendedEntities.js +3 -3
- package/dist/models/ExtendedEntities.js.map +1 -1
- package/dist/models/GetBookmarks200Response.d.ts +1 -1
- package/dist/models/GetBookmarks200Response.d.ts.map +1 -1
- package/dist/models/GetFavoriters200Response.d.ts +1 -1
- package/dist/models/GetFavoriters200Response.d.ts.map +1 -1
- package/dist/models/GetFollowers200Response.d.ts +1 -1
- package/dist/models/GetFollowers200Response.d.ts.map +1 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +1 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetLikes200Response.d.ts +1 -1
- package/dist/models/GetLikes200Response.d.ts.map +1 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +1 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +1 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -1
- package/dist/models/GetRetweeters200Response.d.ts +1 -1
- package/dist/models/GetRetweeters200Response.d.ts.map +1 -1
- package/dist/models/GetSearchTimeline200Response.d.ts +1 -1
- package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetTweetDetail200Response.d.ts +1 -1
- package/dist/models/GetTweetDetail200Response.d.ts.map +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -1
- package/dist/models/GetUserByRestId200Response.d.ts +1 -1
- package/dist/models/GetUserByRestId200Response.d.ts.map +1 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +1 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts +1 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -1
- package/dist/models/InstructionType.d.ts +2 -1
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +2 -1
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +4 -1
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +5 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +1 -1
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemResult.d.ts +1 -1
- package/dist/models/ItemResult.d.ts.map +1 -1
- package/dist/models/ItemResult.js +1 -2
- package/dist/models/ItemResult.js.map +1 -1
- package/dist/models/Media.d.ts +15 -15
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +14 -7
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +131 -0
- package/dist/models/MediaExtended.d.ts.map +1 -0
- package/dist/models/MediaExtended.js +104 -0
- package/dist/models/MediaExtended.js.map +1 -0
- package/dist/models/MediaOriginalInfo.d.ts +5 -6
- package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
- package/dist/models/MediaOriginalInfo.js +7 -4
- package/dist/models/MediaOriginalInfo.js.map +1 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -0
- package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +1 -0
- package/dist/models/MediaOriginalInfoFocusRect.js +60 -0
- package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -0
- package/dist/models/MediaSize.d.ts +52 -0
- package/dist/models/MediaSize.d.ts.map +1 -0
- package/dist/models/MediaSize.js +64 -0
- package/dist/models/MediaSize.js.map +1 -0
- package/dist/models/MediaSizes.d.ts +51 -0
- package/dist/models/MediaSizes.d.ts.map +1 -0
- package/dist/models/MediaSizes.js +61 -0
- package/dist/models/MediaSizes.js.map +1 -0
- package/dist/models/MediaStats.d.ts +32 -0
- package/dist/models/MediaStats.d.ts.map +1 -0
- package/dist/models/MediaStats.js +51 -0
- package/dist/models/MediaStats.js.map +1 -0
- package/dist/models/MediaVideoInfo.d.ts +45 -0
- package/dist/models/MediaVideoInfo.d.ts.map +1 -0
- package/dist/models/MediaVideoInfo.js +58 -0
- package/dist/models/MediaVideoInfo.js.map +1 -0
- package/dist/models/MediaVideoInfoVariant.d.ts +44 -0
- package/dist/models/MediaVideoInfoVariant.d.ts.map +1 -0
- package/dist/models/MediaVideoInfoVariant.js +57 -0
- package/dist/models/MediaVideoInfoVariant.js.map +1 -0
- package/dist/models/ModuleEntry.d.ts +3 -4
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/ModuleEntry.js +3 -2
- package/dist/models/ModuleEntry.js.map +1 -1
- package/dist/models/Other200Response.d.ts +1 -1
- package/dist/models/Other200Response.d.ts.map +1 -1
- package/dist/models/PostCreateRetweet200Response.d.ts +1 -1
- package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -1
- package/dist/models/PostCreateTweet200Response.d.ts +1 -1
- package/dist/models/PostCreateTweet200Response.d.ts.map +1 -1
- package/dist/models/PostDeleteRetweet200Response.d.ts +1 -1
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -1
- package/dist/models/PostDeleteTweet200Response.d.ts +1 -1
- package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts +1 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +1 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -1
- package/dist/models/SelfThread.d.ts +32 -0
- package/dist/models/SelfThread.d.ts.map +1 -0
- package/dist/models/SelfThread.js +51 -0
- package/dist/models/SelfThread.js.map +1 -0
- package/dist/models/Session.d.ts +8 -1
- package/dist/models/Session.d.ts.map +1 -1
- package/dist/models/Session.js +7 -1
- package/dist/models/Session.js.map +1 -1
- package/dist/models/Text.d.ts +39 -0
- package/dist/models/Text.d.ts.map +1 -0
- package/dist/models/Text.js +55 -0
- package/dist/models/Text.js.map +1 -0
- package/dist/models/TextEntity.d.ts +45 -0
- package/dist/models/TextEntity.d.ts.map +1 -0
- package/dist/models/TextEntity.js +58 -0
- package/dist/models/TextEntity.js.map +1 -0
- package/dist/models/TextEntityRef.d.ts +58 -0
- package/dist/models/TextEntityRef.d.ts.map +1 -0
- package/dist/models/TextEntityRef.js +69 -0
- package/dist/models/TextEntityRef.js.map +1 -0
- package/dist/models/TimelineCoverBehavior.d.ts +39 -0
- package/dist/models/TimelineCoverBehavior.d.ts.map +1 -0
- package/dist/models/TimelineCoverBehavior.js +57 -0
- package/dist/models/TimelineCoverBehavior.js.map +1 -0
- package/dist/models/TimelineHalfCover.d.ts +85 -0
- package/dist/models/TimelineHalfCover.d.ts.map +1 -0
- package/dist/models/TimelineHalfCover.js +84 -0
- package/dist/models/TimelineHalfCover.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +2 -2
- package/dist/models/TimelineShowAlert.d.ts.map +1 -1
- package/dist/models/TimelineShowCover.d.ts +47 -0
- package/dist/models/TimelineShowCover.d.ts.map +1 -0
- package/dist/models/TimelineShowCover.js +60 -0
- package/dist/models/TimelineShowCover.js.map +1 -0
- package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
- package/dist/models/TimelineTimelineItem.d.ts +3 -4
- package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
- package/dist/models/TimelineTimelineItem.js +3 -2
- package/dist/models/TimelineTimelineItem.js.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +9 -1
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.js +8 -1
- package/dist/models/TimelineTimelineModule.js.map +1 -1
- package/dist/models/TimelineUser.d.ts +10 -1
- package/dist/models/TimelineUser.d.ts.map +1 -1
- package/dist/models/TimelineUser.js +9 -1
- package/dist/models/TimelineUser.js.map +1 -1
- package/dist/models/Tweet.d.ts +11 -5
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +7 -7
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardLegacy.d.ts +3 -3
- package/dist/models/TweetCardLegacy.d.ts.map +1 -1
- package/dist/models/TweetCardLegacy.js +3 -3
- package/dist/models/TweetCardLegacy.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValue.js +55 -0
- package/dist/models/TweetCardLegacyBindingValue.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -0
- package/dist/models/{TweetCardLegacyBindingValuesInnerValue.js → TweetCardLegacyBindingValueData.js} +12 -12
- package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -0
- package/dist/models/TweetEditControl.d.ts +13 -0
- package/dist/models/TweetEditControl.d.ts.map +1 -1
- package/dist/models/TweetEditControl.js +5 -0
- package/dist/models/TweetEditControl.js.map +1 -1
- package/dist/models/TweetEditControlInitial.d.ts +50 -0
- package/dist/models/TweetEditControlInitial.d.ts.map +1 -0
- package/dist/models/TweetEditControlInitial.js +60 -0
- package/dist/models/TweetEditControlInitial.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +3 -3
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -3
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetUnion.d.ts +1 -1
- package/dist/models/TweetUnion.d.ts.map +1 -1
- package/dist/models/TweetView.d.ts +45 -0
- package/dist/models/TweetView.d.ts.map +1 -0
- package/dist/models/{TweetViews.js → TweetView.js} +20 -13
- package/dist/models/TweetView.js.map +1 -0
- package/dist/models/TypeName.d.ts +2 -1
- 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/UserUnion.d.ts +1 -1
- package/dist/models/UserUnion.d.ts.map +1 -1
- package/dist/models/index.d.ts +24 -4
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +24 -4
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +9 -9
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/models/AdditionalMediaInfo.ts +66 -0
- package/src/models/Callback.ts +66 -0
- package/src/models/ClientEventInfo.ts +81 -0
- package/src/models/CoverCta.ts +130 -0
- package/src/models/CtaClientEventInfo.ts +76 -0
- package/src/models/ExtMediaAvailability.ts +75 -0
- package/src/models/ExtendedEntities.ts +9 -9
- package/src/models/InstructionType.ts +2 -1
- package/src/models/InstructionUnion.ts +12 -1
- package/src/models/ItemResult.ts +2 -3
- package/src/models/Media.ts +27 -17
- package/src/models/MediaExtended.ts +237 -0
- package/src/models/MediaOriginalInfo.ts +17 -8
- package/src/models/MediaOriginalInfoFocusRect.ts +93 -0
- package/src/models/MediaSize.ts +95 -0
- package/src/models/MediaSizes.ts +100 -0
- package/src/models/MediaStats.ts +66 -0
- package/src/models/MediaVideoInfo.ts +90 -0
- package/src/models/MediaVideoInfoVariant.ts +83 -0
- package/src/models/ModuleEntry.ts +10 -4
- package/src/models/{TweetLegacySelfThread.ts → SelfThread.ts} +9 -9
- package/src/models/Session.ts +11 -1
- package/src/models/Text.ts +82 -0
- package/src/models/TextEntity.ts +91 -0
- package/src/models/TextEntityRef.ts +102 -0
- package/src/models/TimelineCoverBehavior.ts +76 -0
- package/src/models/TimelineHalfCover.ts +157 -0
- package/src/models/TimelineShowCover.ts +103 -0
- package/src/models/TimelineTimelineItem.ts +10 -4
- package/src/models/TimelineTimelineModule.ts +12 -1
- package/src/models/TimelineUser.ts +13 -1
- package/src/models/Tweet.ts +21 -15
- package/src/models/TweetCardLegacy.ts +9 -9
- package/src/models/TweetCardLegacyBindingValue.ts +82 -0
- package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts} +12 -12
- package/src/models/TweetEditControl.ts +23 -0
- package/src/models/TweetEditControlInitial.ts +93 -0
- package/src/models/TweetLegacy.ts +9 -9
- package/src/models/{TweetViews.ts → TweetView.ts} +23 -12
- package/src/models/TypeName.ts +1 -0
- package/src/models/index.ts +24 -4
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/.vscode/tasks.json +3 -0
- package/twitter-openapi/LICENSE +31 -0
- package/twitter-openapi/{LICENSE.txt → LICENSE.AGPL} +3 -3
- package/twitter-openapi/README.md +4 -1
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +2 -2
- package/twitter-openapi/dist/compatible/paths/other.yaml +2 -0
- package/twitter-openapi/dist/compatible/schemas/content.yaml +19 -6
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +130 -0
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +279 -94
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +1 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +2 -2
- package/twitter-openapi/dist/docs/paths/other.yaml +2 -0
- package/twitter-openapi/dist/docs/schemas/content.yaml +19 -6
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +130 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +279 -94
- package/twitter-openapi/dist/docs/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
- package/twitter-openapi/src/openapi/schemas/content.yaml +20 -7
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +134 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +306 -107
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/test/python/replace.py +23 -0
- package/twitter-openapi/test/python/test_serialize.py +191 -91
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +0 -39
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInner.js +0 -55
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +0 -50
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +0 -1
- package/dist/models/TweetLegacySelfThread.d.ts +0 -32
- package/dist/models/TweetLegacySelfThread.d.ts.map +0 -1
- package/dist/models/TweetLegacySelfThread.js +0 -51
- package/dist/models/TweetLegacySelfThread.js.map +0 -1
- package/dist/models/TweetViews.d.ts +0 -38
- package/dist/models/TweetViews.d.ts.map +0 -1
- package/dist/models/TweetViews.js.map +0 -1
- package/src/models/TweetCardLegacyBindingValuesInner.ts +0 -82
package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts}
RENAMED
|
@@ -16,50 +16,50 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface TweetCardLegacyBindingValueData
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface TweetCardLegacyBindingValueData {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {boolean}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof TweetCardLegacyBindingValueData
|
|
26
26
|
*/
|
|
27
27
|
booleanValue?: boolean;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof TweetCardLegacyBindingValueData
|
|
32
32
|
*/
|
|
33
33
|
scribeKey?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof TweetCardLegacyBindingValueData
|
|
38
38
|
*/
|
|
39
39
|
stringValue?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof TweetCardLegacyBindingValueData
|
|
44
44
|
*/
|
|
45
45
|
type: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Check if a given object implements the
|
|
49
|
+
* Check if a given object implements the TweetCardLegacyBindingValueData interface.
|
|
50
50
|
*/
|
|
51
|
-
export function
|
|
51
|
+
export function instanceOfTweetCardLegacyBindingValueData(value: object): boolean {
|
|
52
52
|
let isInstance = true;
|
|
53
53
|
isInstance = isInstance && "type" in value;
|
|
54
54
|
|
|
55
55
|
return isInstance;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
export function
|
|
59
|
-
return
|
|
58
|
+
export function TweetCardLegacyBindingValueDataFromJSON(json: any): TweetCardLegacyBindingValueData {
|
|
59
|
+
return TweetCardLegacyBindingValueDataFromJSONTyped(json, false);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export function
|
|
62
|
+
export function TweetCardLegacyBindingValueDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetCardLegacyBindingValueData {
|
|
63
63
|
if ((json === undefined) || (json === null)) {
|
|
64
64
|
return json;
|
|
65
65
|
}
|
|
@@ -72,7 +72,7 @@ export function TweetCardLegacyBindingValuesInnerValueFromJSONTyped(json: any, i
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export function
|
|
75
|
+
export function TweetCardLegacyBindingValueDataToJSON(value?: TweetCardLegacyBindingValueData | null): any {
|
|
76
76
|
if (value === undefined) {
|
|
77
77
|
return undefined;
|
|
78
78
|
}
|
|
@@ -13,12 +13,25 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetEditControlInitial } from './TweetEditControlInitial';
|
|
17
|
+
import {
|
|
18
|
+
TweetEditControlInitialFromJSON,
|
|
19
|
+
TweetEditControlInitialFromJSONTyped,
|
|
20
|
+
TweetEditControlInitialToJSON,
|
|
21
|
+
} from './TweetEditControlInitial';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
19
26
|
* @interface TweetEditControl
|
|
20
27
|
*/
|
|
21
28
|
export interface TweetEditControl {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetEditControlInitial}
|
|
32
|
+
* @memberof TweetEditControl
|
|
33
|
+
*/
|
|
34
|
+
editControlInitial?: TweetEditControlInitial;
|
|
22
35
|
/**
|
|
23
36
|
*
|
|
24
37
|
* @type {Array<string>}
|
|
@@ -37,6 +50,12 @@ export interface TweetEditControl {
|
|
|
37
50
|
* @memberof TweetEditControl
|
|
38
51
|
*/
|
|
39
52
|
editsRemaining?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TweetEditControl
|
|
57
|
+
*/
|
|
58
|
+
initialTweetId?: string;
|
|
40
59
|
/**
|
|
41
60
|
*
|
|
42
61
|
* @type {boolean}
|
|
@@ -64,9 +83,11 @@ export function TweetEditControlFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
64
83
|
}
|
|
65
84
|
return {
|
|
66
85
|
|
|
86
|
+
'editControlInitial': !exists(json, 'edit_control_initial') ? undefined : TweetEditControlInitialFromJSON(json['edit_control_initial']),
|
|
67
87
|
'editTweetIds': !exists(json, 'edit_tweet_ids') ? undefined : json['edit_tweet_ids'],
|
|
68
88
|
'editableUntilMsecs': !exists(json, 'editable_until_msecs') ? undefined : json['editable_until_msecs'],
|
|
69
89
|
'editsRemaining': !exists(json, 'edits_remaining') ? undefined : json['edits_remaining'],
|
|
90
|
+
'initialTweetId': !exists(json, 'initial_tweet_id') ? undefined : json['initial_tweet_id'],
|
|
70
91
|
'isEditEligible': !exists(json, 'is_edit_eligible') ? undefined : json['is_edit_eligible'],
|
|
71
92
|
};
|
|
72
93
|
}
|
|
@@ -80,9 +101,11 @@ export function TweetEditControlToJSON(value?: TweetEditControl | null): any {
|
|
|
80
101
|
}
|
|
81
102
|
return {
|
|
82
103
|
|
|
104
|
+
'edit_control_initial': TweetEditControlInitialToJSON(value.editControlInitial),
|
|
83
105
|
'edit_tweet_ids': value.editTweetIds,
|
|
84
106
|
'editable_until_msecs': value.editableUntilMsecs,
|
|
85
107
|
'edits_remaining': value.editsRemaining,
|
|
108
|
+
'initial_tweet_id': value.initialTweetId,
|
|
86
109
|
'is_edit_eligible': value.isEditEligible,
|
|
87
110
|
};
|
|
88
111
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 TweetEditControlInitial
|
|
20
|
+
*/
|
|
21
|
+
export interface TweetEditControlInitial {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof TweetEditControlInitial
|
|
26
|
+
*/
|
|
27
|
+
editTweetIds: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TweetEditControlInitial
|
|
32
|
+
*/
|
|
33
|
+
editableUntilMsecs: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TweetEditControlInitial
|
|
38
|
+
*/
|
|
39
|
+
editsRemaining: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof TweetEditControlInitial
|
|
44
|
+
*/
|
|
45
|
+
isEditEligible: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the TweetEditControlInitial interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfTweetEditControlInitial(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "editTweetIds" in value;
|
|
54
|
+
isInstance = isInstance && "editableUntilMsecs" in value;
|
|
55
|
+
isInstance = isInstance && "editsRemaining" in value;
|
|
56
|
+
isInstance = isInstance && "isEditEligible" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetEditControlInitialFromJSON(json: any): TweetEditControlInitial {
|
|
62
|
+
return TweetEditControlInitialFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function TweetEditControlInitialFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetEditControlInitial {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'editTweetIds': json['edit_tweet_ids'],
|
|
72
|
+
'editableUntilMsecs': json['editable_until_msecs'],
|
|
73
|
+
'editsRemaining': json['edits_remaining'],
|
|
74
|
+
'isEditEligible': json['is_edit_eligible'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function TweetEditControlInitialToJSON(value?: TweetEditControlInitial | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'edit_tweet_ids': value.editTweetIds,
|
|
88
|
+
'editable_until_msecs': value.editableUntilMsecs,
|
|
89
|
+
'edits_remaining': value.editsRemaining,
|
|
90
|
+
'is_edit_eligible': value.isEditEligible,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
ItemResultFromJSONTyped,
|
|
32
32
|
ItemResultToJSON,
|
|
33
33
|
} from './ItemResult';
|
|
34
|
-
import type {
|
|
34
|
+
import type { SelfThread } from './SelfThread';
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from './
|
|
36
|
+
SelfThreadFromJSON,
|
|
37
|
+
SelfThreadFromJSONTyped,
|
|
38
|
+
SelfThreadToJSON,
|
|
39
|
+
} from './SelfThread';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
@@ -166,10 +166,10 @@ export interface TweetLegacy {
|
|
|
166
166
|
retweetedStatusResult?: ItemResult;
|
|
167
167
|
/**
|
|
168
168
|
*
|
|
169
|
-
* @type {
|
|
169
|
+
* @type {SelfThread}
|
|
170
170
|
* @memberof TweetLegacy
|
|
171
171
|
*/
|
|
172
|
-
selfThread?:
|
|
172
|
+
selfThread?: SelfThread;
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
175
|
* @type {string}
|
|
@@ -234,7 +234,7 @@ export function TweetLegacyFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
234
234
|
'retweetCount': json['retweet_count'],
|
|
235
235
|
'retweeted': json['retweeted'],
|
|
236
236
|
'retweetedStatusResult': !exists(json, 'retweeted_status_result') ? undefined : ItemResultFromJSON(json['retweeted_status_result']),
|
|
237
|
-
'selfThread': !exists(json, 'self_thread') ? undefined :
|
|
237
|
+
'selfThread': !exists(json, 'self_thread') ? undefined : SelfThreadFromJSON(json['self_thread']),
|
|
238
238
|
'userIdStr': json['user_id_str'],
|
|
239
239
|
};
|
|
240
240
|
}
|
|
@@ -268,7 +268,7 @@ export function TweetLegacyToJSON(value?: TweetLegacy | null): any {
|
|
|
268
268
|
'retweet_count': value.retweetCount,
|
|
269
269
|
'retweeted': value.retweeted,
|
|
270
270
|
'retweeted_status_result': ItemResultToJSON(value.retweetedStatusResult),
|
|
271
|
-
'self_thread':
|
|
271
|
+
'self_thread': SelfThreadToJSON(value.selfThread),
|
|
272
272
|
'user_id_str': value.userIdStr,
|
|
273
273
|
};
|
|
274
274
|
}
|
|
@@ -16,48 +16,59 @@ import { exists, mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface TweetView
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface TweetView {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof TweetView
|
|
26
26
|
*/
|
|
27
27
|
count?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof TweetView
|
|
32
32
|
*/
|
|
33
|
-
state
|
|
33
|
+
state: TweetViewStateEnum;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const TweetViewStateEnum = {
|
|
41
|
+
EnabledWithCount: 'EnabledWithCount'
|
|
42
|
+
} as const;
|
|
43
|
+
export type TweetViewStateEnum = typeof TweetViewStateEnum[keyof typeof TweetViewStateEnum];
|
|
44
|
+
|
|
45
|
+
|
|
36
46
|
/**
|
|
37
|
-
* Check if a given object implements the
|
|
47
|
+
* Check if a given object implements the TweetView interface.
|
|
38
48
|
*/
|
|
39
|
-
export function
|
|
49
|
+
export function instanceOfTweetView(value: object): boolean {
|
|
40
50
|
let isInstance = true;
|
|
51
|
+
isInstance = isInstance && "state" in value;
|
|
41
52
|
|
|
42
53
|
return isInstance;
|
|
43
54
|
}
|
|
44
55
|
|
|
45
|
-
export function
|
|
46
|
-
return
|
|
56
|
+
export function TweetViewFromJSON(json: any): TweetView {
|
|
57
|
+
return TweetViewFromJSONTyped(json, false);
|
|
47
58
|
}
|
|
48
59
|
|
|
49
|
-
export function
|
|
60
|
+
export function TweetViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetView {
|
|
50
61
|
if ((json === undefined) || (json === null)) {
|
|
51
62
|
return json;
|
|
52
63
|
}
|
|
53
64
|
return {
|
|
54
65
|
|
|
55
66
|
'count': !exists(json, 'count') ? undefined : json['count'],
|
|
56
|
-
'state':
|
|
67
|
+
'state': json['state'],
|
|
57
68
|
};
|
|
58
69
|
}
|
|
59
70
|
|
|
60
|
-
export function
|
|
71
|
+
export function TweetViewToJSON(value?: TweetView | null): any {
|
|
61
72
|
if (value === undefined) {
|
|
62
73
|
return undefined;
|
|
63
74
|
}
|
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
|
+
TweetUnavailable: 'TweetUnavailable',
|
|
30
31
|
Tweet: 'Tweet',
|
|
31
32
|
User: 'User',
|
|
32
33
|
UserUnavailable: 'UserUnavailable'
|
package/src/models/index.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AdditionalMediaInfo';
|
|
3
4
|
export * from './BookmarksResponse';
|
|
4
5
|
export * from './BookmarksResponseData';
|
|
5
6
|
export * from './BookmarksTimeline';
|
|
7
|
+
export * from './Callback';
|
|
8
|
+
export * from './ClientEventInfo';
|
|
6
9
|
export * from './CommunitiesActions';
|
|
7
10
|
export * from './ContentEntryType';
|
|
8
11
|
export * from './ContentItemType';
|
|
9
12
|
export * from './ContentUnion';
|
|
13
|
+
export * from './CoverCta';
|
|
10
14
|
export * from './CreateRetweet';
|
|
11
15
|
export * from './CreateRetweetResponse';
|
|
12
16
|
export * from './CreateRetweetResponseData';
|
|
@@ -15,6 +19,7 @@ export * from './CreateTweet';
|
|
|
15
19
|
export * from './CreateTweetResponse';
|
|
16
20
|
export * from './CreateTweetResponseData';
|
|
17
21
|
export * from './CreateTweetResponseResult';
|
|
22
|
+
export * from './CtaClientEventInfo';
|
|
18
23
|
export * from './CursorType';
|
|
19
24
|
export * from './DeleteRetweetResponse';
|
|
20
25
|
export * from './DeleteRetweetResponseData';
|
|
@@ -24,6 +29,7 @@ export * from './DeleteTweetResponseResult';
|
|
|
24
29
|
export * from './Entities';
|
|
25
30
|
export * from './ErrorExtensions';
|
|
26
31
|
export * from './Errors';
|
|
32
|
+
export * from './ExtMediaAvailability';
|
|
27
33
|
export * from './ExtendedEntities';
|
|
28
34
|
export * from './FavoriteTweet';
|
|
29
35
|
export * from './FavoriteTweetResponseData';
|
|
@@ -58,7 +64,14 @@ export * from './ListTweetsTimelineData';
|
|
|
58
64
|
export * from './ListTweetsTimelineList';
|
|
59
65
|
export * from './Location';
|
|
60
66
|
export * from './Media';
|
|
67
|
+
export * from './MediaExtended';
|
|
61
68
|
export * from './MediaOriginalInfo';
|
|
69
|
+
export * from './MediaOriginalInfoFocusRect';
|
|
70
|
+
export * from './MediaSize';
|
|
71
|
+
export * from './MediaSizes';
|
|
72
|
+
export * from './MediaStats';
|
|
73
|
+
export * from './MediaVideoInfo';
|
|
74
|
+
export * from './MediaVideoInfoVariant';
|
|
62
75
|
export * from './ModelError';
|
|
63
76
|
export * from './ModuleEntry';
|
|
64
77
|
export * from './ModuleItem';
|
|
@@ -90,13 +103,19 @@ export * from './SearchByRawQuery';
|
|
|
90
103
|
export * from './SearchTimeline';
|
|
91
104
|
export * from './SearchTimelineData';
|
|
92
105
|
export * from './SearchTimelineResponse';
|
|
106
|
+
export * from './SelfThread';
|
|
93
107
|
export * from './Session';
|
|
94
108
|
export * from './SocialContext';
|
|
109
|
+
export * from './Text';
|
|
110
|
+
export * from './TextEntity';
|
|
111
|
+
export * from './TextEntityRef';
|
|
95
112
|
export * from './Timeline';
|
|
96
113
|
export * from './TimelineAddEntries';
|
|
97
114
|
export * from './TimelineAddEntry';
|
|
98
115
|
export * from './TimelineAddToModule';
|
|
99
116
|
export * from './TimelineClearCache';
|
|
117
|
+
export * from './TimelineCoverBehavior';
|
|
118
|
+
export * from './TimelineHalfCover';
|
|
100
119
|
export * from './TimelineMessagePrompt';
|
|
101
120
|
export * from './TimelinePinEntry';
|
|
102
121
|
export * from './TimelinePrompt';
|
|
@@ -104,6 +123,7 @@ export * from './TimelineReplaceEntry';
|
|
|
104
123
|
export * from './TimelineResponse';
|
|
105
124
|
export * from './TimelineShowAlert';
|
|
106
125
|
export * from './TimelineShowAlertRichText';
|
|
126
|
+
export * from './TimelineShowCover';
|
|
107
127
|
export * from './TimelineTerminateTimeline';
|
|
108
128
|
export * from './TimelineTimelineCursor';
|
|
109
129
|
export * from './TimelineTimelineItem';
|
|
@@ -115,23 +135,23 @@ export * from './Tracing';
|
|
|
115
135
|
export * from './Tweet';
|
|
116
136
|
export * from './TweetCard';
|
|
117
137
|
export * from './TweetCardLegacy';
|
|
118
|
-
export * from './
|
|
119
|
-
export * from './
|
|
138
|
+
export * from './TweetCardLegacyBindingValue';
|
|
139
|
+
export * from './TweetCardLegacyBindingValueData';
|
|
120
140
|
export * from './TweetDetailResponse';
|
|
121
141
|
export * from './TweetDetailResponseData';
|
|
122
142
|
export * from './TweetEditControl';
|
|
143
|
+
export * from './TweetEditControlInitial';
|
|
123
144
|
export * from './TweetEditPrespective';
|
|
124
145
|
export * from './TweetFavoritersResponse';
|
|
125
146
|
export * from './TweetFavoritersResponseData';
|
|
126
147
|
export * from './TweetLegacy';
|
|
127
|
-
export * from './TweetLegacySelfThread';
|
|
128
148
|
export * from './TweetResultByRestIdData';
|
|
129
149
|
export * from './TweetResultByRestIdResponse';
|
|
130
150
|
export * from './TweetRetweetersResponse';
|
|
131
151
|
export * from './TweetRetweetersResponseData';
|
|
132
152
|
export * from './TweetTombstone';
|
|
133
153
|
export * from './TweetUnion';
|
|
134
|
-
export * from './
|
|
154
|
+
export * from './TweetView';
|
|
135
155
|
export * from './TweetWithVisibilityResults';
|
|
136
156
|
export * from './TypeName';
|
|
137
157
|
export * from './UnfavoriteTweet';
|
package/tools/win/replace.py
CHANGED
|
@@ -24,7 +24,7 @@ with open("package.json", mode="r", encoding="utf-8") as f:
|
|
|
24
24
|
package.update(
|
|
25
25
|
{
|
|
26
26
|
"author": "fa0311",
|
|
27
|
-
"license": "
|
|
27
|
+
"license": "custom license or AGPL-3.0-or-later",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
30
|
"url": "https://github.com/fa0311/twitter-openapi-typescript.git",
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
"type": "shell",
|
|
7
7
|
"linux": {
|
|
8
8
|
"command": [
|
|
9
|
+
"source .venv/bin/activate;",
|
|
9
10
|
"python3 tools/build.py;",
|
|
10
11
|
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
12
|
+
"python3 test/python/replace.py;",
|
|
11
13
|
"python3 -m pip install ./python_generated;"
|
|
12
14
|
]
|
|
13
15
|
},
|
|
@@ -16,6 +18,7 @@
|
|
|
16
18
|
".venv/Scripts/activate;",
|
|
17
19
|
"python tools/build.py;",
|
|
18
20
|
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
21
|
+
"python test/python/replace.py;",
|
|
19
22
|
"python -m pip install ./python_generated;"
|
|
20
23
|
]
|
|
21
24
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
twitter-openapi License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 yuki
|
|
4
|
+
|
|
5
|
+
<https://yuki0311.com/>
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
The Software shall not be used for any activity that involves the following types
|
|
18
|
+
of behavior, commonly known as spam:
|
|
19
|
+
|
|
20
|
+
1. Sending unsolicited or excessive messages or posts.
|
|
21
|
+
2. Aggressively following, unfollowing, or liking tweets to artificially boost engagement.
|
|
22
|
+
3. Engaging in aggressive automated actions that disrupt or annoy other users.
|
|
23
|
+
4. Distributing false or misleading information.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
2
2
|
Version 3, 19 November 2007
|
|
3
3
|
|
|
4
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
5
|
Everyone is permitted to copy and distribute verbatim copies
|
|
6
6
|
of this license document, but changing it is not allowed.
|
|
7
7
|
|
|
@@ -643,7 +643,7 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
|
643
643
|
GNU Affero General Public License for more details.
|
|
644
644
|
|
|
645
645
|
You should have received a copy of the GNU Affero General Public License
|
|
646
|
-
along with this program. If not, see <
|
|
646
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
647
647
|
|
|
648
648
|
Also add information on how to contact you by electronic and paper mail.
|
|
649
649
|
|
|
@@ -658,4 +658,4 @@ specific requirements.
|
|
|
658
658
|
You should also get your employer (if you work as a programmer) or school,
|
|
659
659
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
660
660
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
661
|
-
<
|
|
661
|
+
<https://www.gnu.org/licenses/>.
|
|
@@ -51,8 +51,8 @@ info:
|
|
|
51
51
|
email: yuki@yuki0311.com
|
|
52
52
|
description: Twitter OpenAPI(Swagger) specification
|
|
53
53
|
license:
|
|
54
|
-
name:
|
|
55
|
-
url: https://
|
|
54
|
+
name: custom license or AGPL-3.0-or-later
|
|
55
|
+
url: https://github.com/fa0311/twitter-openapi#license
|
|
56
56
|
termsOfService: https://github.com/fa0311
|
|
57
57
|
title: Twitter OpenAPI
|
|
58
58
|
version: 0.0.1
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
components:
|
|
2
2
|
schemas:
|
|
3
|
+
ClientEventInfo:
|
|
4
|
+
properties:
|
|
5
|
+
component:
|
|
6
|
+
type: string
|
|
7
|
+
details:
|
|
8
|
+
additionalProperties: true
|
|
9
|
+
type: object
|
|
10
|
+
element:
|
|
11
|
+
type: string
|
|
3
12
|
ContentEntryType:
|
|
4
13
|
enum:
|
|
5
14
|
- TimelineTimelineItem
|
|
@@ -54,13 +63,11 @@ components:
|
|
|
54
63
|
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
55
64
|
result:
|
|
56
65
|
$ref: ./tweet.yaml#/components/schemas/TweetUnion
|
|
57
|
-
required:
|
|
58
|
-
- result
|
|
66
|
+
required: null
|
|
59
67
|
ModuleEntry:
|
|
60
68
|
properties:
|
|
61
69
|
clientEventInfo:
|
|
62
|
-
|
|
63
|
-
type: object
|
|
70
|
+
$ref: '#/components/schemas/ClientEventInfo'
|
|
64
71
|
itemContent:
|
|
65
72
|
$ref: '#/components/schemas/ItemContentUnion'
|
|
66
73
|
required:
|
|
@@ -116,8 +123,7 @@ components:
|
|
|
116
123
|
__typename:
|
|
117
124
|
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
118
125
|
clientEventInfo:
|
|
119
|
-
|
|
120
|
-
type: object
|
|
126
|
+
$ref: '#/components/schemas/ClientEventInfo'
|
|
121
127
|
entryType:
|
|
122
128
|
$ref: '#/components/schemas/ContentEntryType'
|
|
123
129
|
feedbackInfo:
|
|
@@ -138,6 +144,9 @@ components:
|
|
|
138
144
|
additionalProperties: true
|
|
139
145
|
type: object
|
|
140
146
|
displayType:
|
|
147
|
+
enum:
|
|
148
|
+
- Vertical
|
|
149
|
+
- VerticalConversation
|
|
141
150
|
type: string
|
|
142
151
|
entryType:
|
|
143
152
|
$ref: '#/components/schemas/ContentEntryType'
|
|
@@ -185,6 +194,10 @@ components:
|
|
|
185
194
|
itemType:
|
|
186
195
|
$ref: '#/components/schemas/ContentItemType'
|
|
187
196
|
userDisplayType:
|
|
197
|
+
enum:
|
|
198
|
+
- User
|
|
199
|
+
- UserDetailed
|
|
200
|
+
- SubscribableUser
|
|
188
201
|
type: string
|
|
189
202
|
user_results:
|
|
190
203
|
$ref: ./user.yaml#/components/schemas/UserResults
|