twitter-openapi-typescript-generated 0.0.7 → 0.0.9
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 +51 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +3 -3
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +1 -1
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +3 -3
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +1 -1
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +13 -13
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +6 -6
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +47 -19
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +187 -9
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +16 -3
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +84 -1
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +45 -5
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +257 -2
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +32 -0
- package/dist/apis/UsersApi.d.ts.map +1 -0
- package/dist/apis/UsersApi.js +164 -0
- package/dist/apis/UsersApi.js.map +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +1 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +2 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +3 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/CursorType.d.ts +27 -0
- package/dist/models/CursorType.d.ts.map +1 -0
- package/dist/models/CursorType.js +40 -0
- package/dist/models/CursorType.js.map +1 -0
- package/dist/models/Entities.d.ts +12 -6
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/ErrorExtensions.d.ts +63 -0
- package/dist/models/ErrorExtensions.d.ts.map +1 -0
- package/dist/models/ErrorExtensions.js +67 -0
- package/dist/models/ErrorExtensions.js.map +1 -0
- package/dist/models/Errors.d.ts +32 -0
- package/dist/models/Errors.d.ts.map +1 -0
- package/dist/models/Errors.js +51 -0
- package/dist/models/Errors.js.map +1 -0
- package/dist/models/GetBookmarks200Response.d.ts +23 -0
- package/dist/models/GetBookmarks200Response.d.ts.map +1 -0
- package/dist/models/GetBookmarks200Response.js +57 -0
- package/dist/models/GetBookmarks200Response.js.map +1 -0
- package/dist/models/GetFavoriters200Response.d.ts +23 -0
- package/dist/models/GetFavoriters200Response.d.ts.map +1 -0
- package/dist/models/GetFavoriters200Response.js +57 -0
- package/dist/models/GetFavoriters200Response.js.map +1 -0
- package/dist/models/GetFollowers200Response.d.ts +23 -0
- package/dist/models/GetFollowers200Response.d.ts.map +1 -0
- package/dist/models/GetFollowers200Response.js +57 -0
- package/dist/models/GetFollowers200Response.js.map +1 -0
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +23 -0
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetHomeLatestTimeline200Response.js +57 -0
- package/dist/models/GetHomeLatestTimeline200Response.js.map +1 -0
- package/dist/models/GetLikes200Response.d.ts +23 -0
- package/dist/models/GetLikes200Response.d.ts.map +1 -0
- package/dist/models/GetLikes200Response.js +57 -0
- package/dist/models/GetLikes200Response.js.map +1 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +23 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.js +57 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.js.map +1 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +23 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.js +57 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.js.map +1 -0
- package/dist/models/GetRetweeters200Response.d.ts +23 -0
- package/dist/models/GetRetweeters200Response.d.ts.map +1 -0
- package/dist/models/GetRetweeters200Response.js +57 -0
- package/dist/models/GetRetweeters200Response.js.map +1 -0
- package/dist/models/GetSearchTimeline200Response.d.ts +23 -0
- package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetSearchTimeline200Response.js +57 -0
- package/dist/models/GetSearchTimeline200Response.js.map +1 -0
- package/dist/models/GetTweetDetail200Response.d.ts +23 -0
- package/dist/models/GetTweetDetail200Response.d.ts.map +1 -0
- package/dist/models/GetTweetDetail200Response.js +57 -0
- package/dist/models/GetTweetDetail200Response.js.map +1 -0
- package/dist/models/GetUserByRestId200Response.d.ts +23 -0
- package/dist/models/GetUserByRestId200Response.d.ts.map +1 -0
- package/dist/models/GetUserByRestId200Response.js +57 -0
- package/dist/models/GetUserByRestId200Response.js.map +1 -0
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +23 -0
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -0
- package/dist/models/GetUserHighlightsTweets200Response.js +57 -0
- package/dist/models/GetUserHighlightsTweets200Response.js.map +1 -0
- package/dist/models/GetUsersByRestIds200Response.d.ts +23 -0
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -0
- package/dist/models/GetUsersByRestIds200Response.js +57 -0
- package/dist/models/GetUsersByRestIds200Response.js.map +1 -0
- package/dist/models/InstructionType.d.ts +3 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +3 -0
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +9 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +15 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +9 -3
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +17 -7
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
- package/dist/models/Location.d.ts +38 -0
- package/dist/models/Location.d.ts.map +1 -0
- package/dist/models/Location.js +54 -0
- package/dist/models/Location.js.map +1 -0
- package/dist/models/Media.d.ts +8 -4
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/MediaOriginalInfo.d.ts +4 -2
- package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
- package/dist/models/ModelError.d.ts +89 -0
- package/dist/models/ModelError.d.ts.map +1 -0
- package/dist/models/ModelError.js +81 -0
- package/dist/models/ModelError.js.map +1 -0
- package/dist/models/ModuleEntry.d.ts +4 -2
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/Other200Response.d.ts +22 -0
- package/dist/models/Other200Response.d.ts.map +1 -0
- package/dist/models/Other200Response.js +53 -0
- package/dist/models/Other200Response.js.map +1 -0
- package/dist/models/PostCreateRetweet200Response.d.ts +23 -0
- package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -0
- package/dist/models/PostCreateRetweet200Response.js +57 -0
- package/dist/models/PostCreateRetweet200Response.js.map +1 -0
- package/dist/models/PostCreateTweet200Response.d.ts +23 -0
- package/dist/models/PostCreateTweet200Response.d.ts.map +1 -0
- package/dist/models/PostCreateTweet200Response.js +57 -0
- package/dist/models/PostCreateTweet200Response.js.map +1 -0
- package/dist/models/PostDeleteRetweet200Response.d.ts +23 -0
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -0
- package/dist/models/PostDeleteRetweet200Response.js +57 -0
- package/dist/models/PostDeleteRetweet200Response.js.map +1 -0
- package/dist/models/PostDeleteTweet200Response.d.ts +23 -0
- package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -0
- package/dist/models/PostDeleteTweet200Response.js +57 -0
- package/dist/models/PostDeleteTweet200Response.js.map +1 -0
- package/dist/models/PostFavoriteTweet200Response.d.ts +23 -0
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -0
- package/dist/models/PostFavoriteTweet200Response.js +57 -0
- package/dist/models/PostFavoriteTweet200Response.js.map +1 -0
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +23 -0
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -0
- package/dist/models/PostUnfavoriteTweet200Response.js +57 -0
- package/dist/models/PostUnfavoriteTweet200Response.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -0
- package/dist/models/SearchByRawQuery.d.ts.map +1 -0
- package/dist/models/SearchByRawQuery.js +52 -0
- package/dist/models/SearchByRawQuery.js.map +1 -0
- package/dist/models/SearchTimeline.d.ts +33 -0
- package/dist/models/SearchTimeline.d.ts.map +1 -0
- package/dist/models/SearchTimeline.js +52 -0
- package/dist/models/SearchTimeline.js.map +1 -0
- package/dist/models/SearchTimelineData.d.ts +33 -0
- package/dist/models/SearchTimelineData.d.ts.map +1 -0
- package/dist/models/SearchTimelineData.js +52 -0
- package/dist/models/SearchTimelineData.js.map +1 -0
- package/dist/models/SearchTimelineResponse.d.ts +33 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
- package/dist/models/SearchTimelineResponse.js +52 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -0
- package/dist/models/Timeline.d.ts +8 -4
- package/dist/models/Timeline.d.ts.map +1 -1
- package/dist/models/TimelineAddToModule.d.ts +52 -0
- package/dist/models/TimelineAddToModule.d.ts.map +1 -0
- package/dist/models/TimelineAddToModule.js +62 -0
- package/dist/models/TimelineAddToModule.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +34 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
- package/dist/models/TimelineMessagePrompt.js +59 -0
- package/dist/models/TimelineMessagePrompt.js.map +1 -0
- package/dist/models/TimelinePrompt.d.ts +34 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -0
- package/dist/models/TimelinePrompt.js +59 -0
- package/dist/models/TimelinePrompt.js.map +1 -0
- package/dist/models/TimelineReplaceEntry.d.ts +46 -0
- package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
- package/dist/models/TimelineReplaceEntry.js +59 -0
- package/dist/models/TimelineReplaceEntry.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +101 -0
- package/dist/models/TimelineShowAlert.d.ts.map +1 -0
- package/dist/models/TimelineShowAlert.js +85 -0
- package/dist/models/TimelineShowAlert.js.map +1 -0
- package/dist/models/TimelineShowAlertRichText.d.ts +40 -0
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
- package/dist/models/TimelineShowAlertRichText.js +53 -0
- package/dist/models/TimelineShowAlertRichText.js.map +1 -0
- package/dist/models/TimelineTimelineCursor.d.ts +3 -13
- package/dist/models/TimelineTimelineCursor.d.ts.map +1 -1
- package/dist/models/TimelineTimelineCursor.js +4 -13
- package/dist/models/TimelineTimelineCursor.js.map +1 -1
- package/dist/models/TimelineTimelineItem.d.ts +8 -4
- package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +12 -6
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTweet.d.ts +4 -2
- package/dist/models/TimelineTweet.d.ts.map +1 -1
- package/dist/models/Tracing.d.ts +32 -0
- package/dist/models/Tracing.d.ts.map +1 -0
- package/dist/models/Tracing.js +51 -0
- package/dist/models/Tracing.js.map +1 -0
- package/dist/models/Tweet.d.ts +5 -3
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +1 -2
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetFavoritersResponse.d.ts +33 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponse.js +52 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -0
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponseData.js +52 -0
- package/dist/models/TweetFavoritersResponseData.js.map +1 -0
- package/dist/models/TweetRetweetersResponse.d.ts +33 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponse.js +52 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -0
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponseData.js +52 -0
- package/dist/models/TweetRetweetersResponseData.js.map +1 -0
- package/dist/models/TweetTombstone.d.ts +1 -0
- package/dist/models/TweetTombstone.d.ts.map +1 -1
- package/dist/models/TweetTombstone.js +13 -6
- package/dist/models/TweetTombstone.js.map +1 -1
- package/dist/models/TypeName.d.ts +3 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +4 -1
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/User.d.ts +8 -4
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/UserHighlightsTweetsData.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsData.js +52 -0
- package/dist/models/UserHighlightsTweetsData.js.map +1 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsResponse.js +52 -0
- package/dist/models/UserHighlightsTweetsResponse.js.map +1 -0
- package/dist/models/UserHighlightsTweetsResult.d.ts +40 -0
- package/dist/models/UserHighlightsTweetsResult.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsResult.js +56 -0
- package/dist/models/UserHighlightsTweetsResult.js.map +1 -0
- package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsTimeline.js +52 -0
- package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -0
- package/dist/models/UserHighlightsTweetsUser.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsUser.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsUser.js +52 -0
- package/dist/models/UserHighlightsTweetsUser.js.map +1 -0
- package/dist/models/UserLegacy.d.ts +9 -7
- package/dist/models/UserLegacy.d.ts.map +1 -1
- package/dist/models/UserLegacy.js +5 -10
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserResultByScreenNameResult.d.ts +4 -2
- package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
- package/dist/models/UserResults.d.ts +3 -3
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +3 -3
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/UserUnavailable.d.ts +39 -0
- package/dist/models/UserUnavailable.d.ts.map +1 -0
- package/dist/models/UserUnavailable.js +55 -0
- package/dist/models/UserUnavailable.js.map +1 -0
- package/dist/models/UserUnion.d.ts +27 -0
- package/dist/models/UserUnion.d.ts.map +1 -0
- package/dist/models/UserUnion.js +65 -0
- package/dist/models/UserUnion.js.map +1 -0
- package/dist/models/UsersResponse.d.ts +33 -0
- package/dist/models/UsersResponse.d.ts.map +1 -0
- package/dist/models/UsersResponse.js +52 -0
- package/dist/models/UsersResponse.js.map +1 -0
- package/dist/models/UsersResponseData.d.ts +33 -0
- package/dist/models/UsersResponseData.d.ts.map +1 -0
- package/dist/models/UsersResponseData.js +52 -0
- package/dist/models/UsersResponseData.js.map +1 -0
- package/dist/models/index.d.ts +50 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +50 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/DefaultApi.ts +6 -6
- package/src/apis/OtherApi.ts +6 -6
- package/src/apis/PostApi.ts +36 -36
- package/src/apis/TweetApi.ts +234 -42
- package/src/apis/UserApi.ts +90 -6
- package/src/apis/UserListApi.ts +276 -9
- package/src/apis/UsersApi.ts +114 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ContentItemType.ts +3 -1
- package/src/models/CursorType.ts +41 -0
- package/src/models/Entities.ts +6 -6
- package/src/models/ErrorExtensions.ts +118 -0
- package/src/models/Errors.ts +66 -0
- package/src/models/GetBookmarks200Response.ts +65 -0
- package/src/models/GetFavoriters200Response.ts +65 -0
- package/src/models/GetFollowers200Response.ts +65 -0
- package/src/models/GetHomeLatestTimeline200Response.ts +65 -0
- package/src/models/GetLikes200Response.ts +65 -0
- package/src/models/GetListLatestTweetsTimeline200Response.ts +65 -0
- package/src/models/GetProfileSpotlightsQuery200Response.ts +65 -0
- package/src/models/GetRetweeters200Response.ts +65 -0
- package/src/models/GetSearchTimeline200Response.ts +65 -0
- package/src/models/GetTweetDetail200Response.ts +65 -0
- package/src/models/GetUserByRestId200Response.ts +65 -0
- package/src/models/GetUserHighlightsTweets200Response.ts +65 -0
- package/src/models/GetUsersByRestIds200Response.ts +65 -0
- package/src/models/InstructionType.ts +3 -0
- package/src/models/InstructionUnion.ts +34 -1
- package/src/models/ItemContentUnion.ts +30 -8
- package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
- package/src/models/Location.ts +75 -0
- package/src/models/Media.ts +4 -4
- package/src/models/MediaOriginalInfo.ts +2 -2
- package/src/models/ModelError.ts +166 -0
- package/src/models/ModuleEntry.ts +2 -2
- package/src/models/Other200Response.ts +55 -0
- package/src/models/PostCreateRetweet200Response.ts +65 -0
- package/src/models/PostCreateTweet200Response.ts +65 -0
- package/src/models/PostDeleteRetweet200Response.ts +65 -0
- package/src/models/PostDeleteTweet200Response.ts +65 -0
- package/src/models/PostFavoriteTweet200Response.ts +65 -0
- package/src/models/PostUnfavoriteTweet200Response.ts +65 -0
- package/src/models/SearchByRawQuery.ts +73 -0
- package/src/models/SearchTimeline.ts +73 -0
- package/src/models/SearchTimelineData.ts +73 -0
- package/src/models/SearchTimelineResponse.ts +73 -0
- package/src/models/Timeline.ts +4 -4
- package/src/models/TimelineAddToModule.ts +105 -0
- package/src/models/TimelineMessagePrompt.ts +75 -0
- package/src/models/TimelinePrompt.ts +75 -0
- package/src/models/TimelineReplaceEntry.ts +97 -0
- package/src/models/TimelineShowAlert.ts +169 -0
- package/src/models/TimelineShowAlertRichText.ts +73 -0
- package/src/models/TimelineTimelineCursor.ts +10 -18
- package/src/models/TimelineTimelineItem.ts +4 -4
- package/src/models/TimelineTimelineModule.ts +6 -6
- package/src/models/TimelineTweet.ts +2 -2
- package/src/models/Tracing.ts +66 -0
- package/src/models/Tweet.ts +4 -5
- package/src/models/TweetFavoritersResponse.ts +73 -0
- package/src/models/TweetFavoritersResponseData.ts +73 -0
- package/src/models/TweetRetweetersResponse.ts +73 -0
- package/src/models/TweetRetweetersResponseData.ts +73 -0
- package/src/models/TweetTombstone.ts +3 -0
- package/src/models/TypeName.ts +4 -1
- package/src/models/User.ts +4 -4
- package/src/models/UserHighlightsTweetsData.ts +73 -0
- package/src/models/UserHighlightsTweetsResponse.ts +73 -0
- package/src/models/UserHighlightsTweetsResult.ts +88 -0
- package/src/models/UserHighlightsTweetsTimeline.ts +73 -0
- package/src/models/UserHighlightsTweetsUser.ts +73 -0
- package/src/models/UserLegacy.ts +12 -17
- package/src/models/UserResultByScreenNameResult.ts +2 -2
- package/src/models/UserResults.ts +9 -9
- package/src/models/UserUnavailable.ts +82 -0
- package/src/models/UserUnion.ts +72 -0
- package/src/models/UsersResponse.ts +73 -0
- package/src/models/UsersResponseData.ts +73 -0
- package/src/models/index.ts +50 -1
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/.github/workflows/test-build.yaml +87 -0
- package/twitter-openapi/.github/workflows/test-python.yaml +100 -0
- package/twitter-openapi/.vscode/launch.json +25 -0
- package/twitter-openapi/.vscode/settings.json +1 -1
- package/twitter-openapi/.vscode/tasks.json +45 -0
- package/twitter-openapi/CONTRIBUTING.md +13 -0
- package/twitter-openapi/README.md +2 -2
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +19 -3
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/dist/compatible/paths/follow.yaml +99 -2
- package/twitter-openapi/dist/compatible/paths/other.yaml +2 -1
- package/twitter-openapi/dist/compatible/paths/post.yaml +18 -6
- package/twitter-openapi/dist/compatible/paths/profile.yaml +5 -2
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +128 -5
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +199 -1
- package/twitter-openapi/dist/compatible/paths/user.yaml +151 -1
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +140 -4
- package/twitter-openapi/dist/compatible/schemas/content.yaml +35 -15
- package/twitter-openapi/dist/compatible/schemas/error.yaml +94 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +77 -4
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +2 -0
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +8 -1
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +3 -0
- package/twitter-openapi/dist/compatible/schemas/user.yaml +23 -7
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +19 -3
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/dist/docs/paths/follow.yaml +201 -2
- package/twitter-openapi/dist/docs/paths/other.yaml +2 -1
- package/twitter-openapi/dist/docs/paths/post.yaml +18 -6
- package/twitter-openapi/dist/docs/paths/profile.yaml +5 -2
- package/twitter-openapi/dist/docs/paths/timeline.yaml +235 -5
- package/twitter-openapi/dist/docs/paths/tweet.yaml +389 -1
- package/twitter-openapi/dist/docs/paths/user.yaml +221 -1
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +250 -4
- package/twitter-openapi/dist/docs/schemas/content.yaml +35 -15
- package/twitter-openapi/dist/docs/schemas/error.yaml +94 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -4
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +2 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -1
- package/twitter-openapi/dist/docs/schemas/typename.yaml +3 -0
- package/twitter-openapi/dist/docs/schemas/user.yaml +23 -7
- package/twitter-openapi/src/config/placeholder.json +190 -0
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +5 -3
- package/twitter-openapi/src/openapi/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/src/openapi/paths/follow.yaml +22 -2
- package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
- package/twitter-openapi/src/openapi/paths/post.yaml +18 -6
- package/twitter-openapi/src/openapi/paths/profile.yaml +6 -3
- package/twitter-openapi/src/openapi/paths/timeline.yaml +54 -4
- package/twitter-openapi/src/openapi/paths/tweet.yaml +63 -1
- package/twitter-openapi/src/openapi/paths/user.yaml +51 -1
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +66 -4
- package/twitter-openapi/src/openapi/schemas/content.yaml +47 -18
- package/twitter-openapi/src/openapi/schemas/error.yaml +99 -0
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +79 -5
- package/twitter-openapi/src/openapi/schemas/timeline.yaml +4 -2
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +16 -9
- package/twitter-openapi/src/openapi/schemas/typename.yaml +3 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +33 -10
- package/twitter-openapi/test/dart-dio/openapi-generator-config.yaml +2 -0
- package/twitter-openapi/test/local.sh +6 -0
- package/twitter-openapi/test/python/openapi-generator-config.yaml +4 -0
- package/twitter-openapi/test/python/test_serialize.py +160 -0
- package/twitter-openapi/test/typescript-fetch/openapi-generator-config.yaml +4 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/build_config.py +1 -1
- package/twitter-openapi/tools/hooks.py +23 -0
- package/twitter-openapi/tools/login.py +17 -0
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineResponse.js +0 -52
- package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
|
@@ -0,0 +1,169 @@
|
|
|
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 { InstructionType } from './InstructionType';
|
|
17
|
+
import {
|
|
18
|
+
InstructionTypeFromJSON,
|
|
19
|
+
InstructionTypeFromJSONTyped,
|
|
20
|
+
InstructionTypeToJSON,
|
|
21
|
+
} from './InstructionType';
|
|
22
|
+
import type { TimelineShowAlertRichText } from './TimelineShowAlertRichText';
|
|
23
|
+
import {
|
|
24
|
+
TimelineShowAlertRichTextFromJSON,
|
|
25
|
+
TimelineShowAlertRichTextFromJSONTyped,
|
|
26
|
+
TimelineShowAlertRichTextToJSON,
|
|
27
|
+
} from './TimelineShowAlertRichText';
|
|
28
|
+
import type { UserResults } from './UserResults';
|
|
29
|
+
import {
|
|
30
|
+
UserResultsFromJSON,
|
|
31
|
+
UserResultsFromJSONTyped,
|
|
32
|
+
UserResultsToJSON,
|
|
33
|
+
} from './UserResults';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface TimelineShowAlert
|
|
39
|
+
*/
|
|
40
|
+
export interface TimelineShowAlert {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TimelineShowAlert
|
|
45
|
+
*/
|
|
46
|
+
alertType?: TimelineShowAlertAlertTypeEnum;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
|
+
* @memberof TimelineShowAlert
|
|
51
|
+
*/
|
|
52
|
+
colorConfig?: { [key: string]: any; };
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof TimelineShowAlert
|
|
57
|
+
*/
|
|
58
|
+
displayDurationMs?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof TimelineShowAlert
|
|
63
|
+
*/
|
|
64
|
+
displayLocation?: TimelineShowAlertDisplayLocationEnum;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {{ [key: string]: any; }}
|
|
68
|
+
* @memberof TimelineShowAlert
|
|
69
|
+
*/
|
|
70
|
+
iconDisplayInfo?: { [key: string]: any; };
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {TimelineShowAlertRichText}
|
|
74
|
+
* @memberof TimelineShowAlert
|
|
75
|
+
*/
|
|
76
|
+
richText: TimelineShowAlertRichText;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof TimelineShowAlert
|
|
81
|
+
*/
|
|
82
|
+
triggerDelayMs?: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {InstructionType}
|
|
86
|
+
* @memberof TimelineShowAlert
|
|
87
|
+
*/
|
|
88
|
+
type: InstructionType;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<UserResults>}
|
|
92
|
+
* @memberof TimelineShowAlert
|
|
93
|
+
*/
|
|
94
|
+
usersResults: Array<UserResults>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const TimelineShowAlertAlertTypeEnum = {
|
|
102
|
+
NewTweets: 'NewTweets'
|
|
103
|
+
} as const;
|
|
104
|
+
export type TimelineShowAlertAlertTypeEnum = typeof TimelineShowAlertAlertTypeEnum[keyof typeof TimelineShowAlertAlertTypeEnum];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const TimelineShowAlertDisplayLocationEnum = {
|
|
110
|
+
Top: 'Top'
|
|
111
|
+
} as const;
|
|
112
|
+
export type TimelineShowAlertDisplayLocationEnum = typeof TimelineShowAlertDisplayLocationEnum[keyof typeof TimelineShowAlertDisplayLocationEnum];
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the TimelineShowAlert interface.
|
|
117
|
+
*/
|
|
118
|
+
export function instanceOfTimelineShowAlert(value: object): boolean {
|
|
119
|
+
let isInstance = true;
|
|
120
|
+
isInstance = isInstance && "richText" in value;
|
|
121
|
+
isInstance = isInstance && "type" in value;
|
|
122
|
+
isInstance = isInstance && "usersResults" in value;
|
|
123
|
+
|
|
124
|
+
return isInstance;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function TimelineShowAlertFromJSON(json: any): TimelineShowAlert {
|
|
128
|
+
return TimelineShowAlertFromJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function TimelineShowAlertFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowAlert {
|
|
132
|
+
if ((json === undefined) || (json === null)) {
|
|
133
|
+
return json;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'alertType': !exists(json, 'alertType') ? undefined : json['alertType'],
|
|
138
|
+
'colorConfig': !exists(json, 'colorConfig') ? undefined : json['colorConfig'],
|
|
139
|
+
'displayDurationMs': !exists(json, 'displayDurationMs') ? undefined : json['displayDurationMs'],
|
|
140
|
+
'displayLocation': !exists(json, 'displayLocation') ? undefined : json['displayLocation'],
|
|
141
|
+
'iconDisplayInfo': !exists(json, 'iconDisplayInfo') ? undefined : json['iconDisplayInfo'],
|
|
142
|
+
'richText': TimelineShowAlertRichTextFromJSON(json['richText']),
|
|
143
|
+
'triggerDelayMs': !exists(json, 'triggerDelayMs') ? undefined : json['triggerDelayMs'],
|
|
144
|
+
'type': InstructionTypeFromJSON(json['type']),
|
|
145
|
+
'usersResults': ((json['usersResults'] as Array<any>).map(UserResultsFromJSON)),
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function TimelineShowAlertToJSON(value?: TimelineShowAlert | null): any {
|
|
150
|
+
if (value === undefined) {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
if (value === null) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
|
|
158
|
+
'alertType': value.alertType,
|
|
159
|
+
'colorConfig': value.colorConfig,
|
|
160
|
+
'displayDurationMs': value.displayDurationMs,
|
|
161
|
+
'displayLocation': value.displayLocation,
|
|
162
|
+
'iconDisplayInfo': value.iconDisplayInfo,
|
|
163
|
+
'richText': TimelineShowAlertRichTextToJSON(value.richText),
|
|
164
|
+
'triggerDelayMs': value.triggerDelayMs,
|
|
165
|
+
'type': InstructionTypeToJSON(value.type),
|
|
166
|
+
'usersResults': ((value.usersResults as Array<any>).map(UserResultsToJSON)),
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TimelineShowAlertRichText
|
|
20
|
+
*/
|
|
21
|
+
export interface TimelineShowAlertRichText {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
25
|
+
* @memberof TimelineShowAlertRichText
|
|
26
|
+
*/
|
|
27
|
+
entities?: Array<{ [key: string]: any; }>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TimelineShowAlertRichText
|
|
32
|
+
*/
|
|
33
|
+
text?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TimelineShowAlertRichText interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTimelineShowAlertRichText(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TimelineShowAlertRichTextFromJSON(json: any): TimelineShowAlertRichText {
|
|
46
|
+
return TimelineShowAlertRichTextFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TimelineShowAlertRichTextFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineShowAlertRichText {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'entities': !exists(json, 'entities') ? undefined : json['entities'],
|
|
56
|
+
'text': !exists(json, 'text') ? undefined : json['text'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TimelineShowAlertRichTextToJSON(value?: TimelineShowAlertRichText | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'entities': value.entities,
|
|
70
|
+
'text': value.text,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
ContentEntryTypeFromJSONTyped,
|
|
20
20
|
ContentEntryTypeToJSON,
|
|
21
21
|
} from './ContentEntryType';
|
|
22
|
+
import type { CursorType } from './CursorType';
|
|
23
|
+
import {
|
|
24
|
+
CursorTypeFromJSON,
|
|
25
|
+
CursorTypeFromJSONTyped,
|
|
26
|
+
CursorTypeToJSON,
|
|
27
|
+
} from './CursorType';
|
|
22
28
|
import type { TypeName } from './TypeName';
|
|
23
29
|
import {
|
|
24
30
|
TypeNameFromJSON,
|
|
@@ -40,10 +46,10 @@ export interface TimelineTimelineCursor {
|
|
|
40
46
|
typename: TypeName;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
|
-
* @type {
|
|
49
|
+
* @type {CursorType}
|
|
44
50
|
* @memberof TimelineTimelineCursor
|
|
45
51
|
*/
|
|
46
|
-
cursorType:
|
|
52
|
+
cursorType: CursorType;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {ContentEntryType}
|
|
@@ -64,20 +70,6 @@ export interface TimelineTimelineCursor {
|
|
|
64
70
|
value: string;
|
|
65
71
|
}
|
|
66
72
|
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @export
|
|
70
|
-
*/
|
|
71
|
-
export const TimelineTimelineCursorCursorTypeEnum = {
|
|
72
|
-
Top: 'Top',
|
|
73
|
-
Bottom: 'Bottom',
|
|
74
|
-
ShowMore: 'ShowMore',
|
|
75
|
-
ShowMoreThreads: 'ShowMoreThreads',
|
|
76
|
-
Gap: 'Gap'
|
|
77
|
-
} as const;
|
|
78
|
-
export type TimelineTimelineCursorCursorTypeEnum = typeof TimelineTimelineCursorCursorTypeEnum[keyof typeof TimelineTimelineCursorCursorTypeEnum];
|
|
79
|
-
|
|
80
|
-
|
|
81
73
|
/**
|
|
82
74
|
* Check if a given object implements the TimelineTimelineCursor interface.
|
|
83
75
|
*/
|
|
@@ -101,7 +93,7 @@ export function TimelineTimelineCursorFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
101
93
|
return {
|
|
102
94
|
|
|
103
95
|
'typename': TypeNameFromJSON(json['__typename']),
|
|
104
|
-
'cursorType': json['cursorType'],
|
|
96
|
+
'cursorType': CursorTypeFromJSON(json['cursorType']),
|
|
105
97
|
'entryType': !exists(json, 'entryType') ? undefined : ContentEntryTypeFromJSON(json['entryType']),
|
|
106
98
|
'itemType': !exists(json, 'itemType') ? undefined : ContentEntryTypeFromJSON(json['itemType']),
|
|
107
99
|
'value': json['value'],
|
|
@@ -118,7 +110,7 @@ export function TimelineTimelineCursorToJSON(value?: TimelineTimelineCursor | nu
|
|
|
118
110
|
return {
|
|
119
111
|
|
|
120
112
|
'__typename': TypeNameToJSON(value.typename),
|
|
121
|
-
'cursorType': value.cursorType,
|
|
113
|
+
'cursorType': CursorTypeToJSON(value.cursorType),
|
|
122
114
|
'entryType': ContentEntryTypeToJSON(value.entryType),
|
|
123
115
|
'itemType': ContentEntryTypeToJSON(value.itemType),
|
|
124
116
|
'value': value.value,
|
|
@@ -46,10 +46,10 @@ export interface TimelineTimelineItem {
|
|
|
46
46
|
typename: TypeName;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
50
|
* @memberof TimelineTimelineItem
|
|
51
51
|
*/
|
|
52
|
-
clientEventInfo?:
|
|
52
|
+
clientEventInfo?: { [key: string]: any; };
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {ContentEntryType}
|
|
@@ -58,10 +58,10 @@ export interface TimelineTimelineItem {
|
|
|
58
58
|
entryType: ContentEntryType;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
|
-
* @type {
|
|
61
|
+
* @type {{ [key: string]: any; }}
|
|
62
62
|
* @memberof TimelineTimelineItem
|
|
63
63
|
*/
|
|
64
|
-
feedbackInfo?:
|
|
64
|
+
feedbackInfo?: { [key: string]: any; };
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {ItemContentUnion}
|
|
@@ -46,10 +46,10 @@ export interface TimelineTimelineModule {
|
|
|
46
46
|
typename: TypeName;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
50
|
* @memberof TimelineTimelineModule
|
|
51
51
|
*/
|
|
52
|
-
clientEventInfo:
|
|
52
|
+
clientEventInfo: { [key: string]: any; };
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
@@ -64,16 +64,16 @@ export interface TimelineTimelineModule {
|
|
|
64
64
|
entryType: ContentEntryType;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {
|
|
67
|
+
* @type {{ [key: string]: any; }}
|
|
68
68
|
* @memberof TimelineTimelineModule
|
|
69
69
|
*/
|
|
70
|
-
footer?:
|
|
70
|
+
footer?: { [key: string]: any; };
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {{ [key: string]: any; }}
|
|
74
74
|
* @memberof TimelineTimelineModule
|
|
75
75
|
*/
|
|
76
|
-
header?:
|
|
76
|
+
header?: { [key: string]: any; };
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {Array<ModuleItem>}
|
|
@@ -64,10 +64,10 @@ export interface TimelineTweet {
|
|
|
64
64
|
itemType: ContentItemType;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {
|
|
67
|
+
* @type {{ [key: string]: any; }}
|
|
68
68
|
* @memberof TimelineTweet
|
|
69
69
|
*/
|
|
70
|
-
promotedMetadata?:
|
|
70
|
+
promotedMetadata?: { [key: string]: any; };
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {string}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 Tracing
|
|
20
|
+
*/
|
|
21
|
+
export interface Tracing {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Tracing
|
|
26
|
+
*/
|
|
27
|
+
traceId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the Tracing interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTracing(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "traceId" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function TracingFromJSON(json: any): Tracing {
|
|
41
|
+
return TracingFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function TracingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tracing {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'traceId': json['trace_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function TracingToJSON(value?: Tracing | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'trace_id': value.traceId,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/Tweet.ts
CHANGED
|
@@ -97,7 +97,7 @@ export interface Tweet {
|
|
|
97
97
|
* @type {TweetEditPrespective}
|
|
98
98
|
* @memberof Tweet
|
|
99
99
|
*/
|
|
100
|
-
editPrespective
|
|
100
|
+
editPrespective?: TweetEditPrespective;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
103
|
* @type {boolean}
|
|
@@ -124,10 +124,10 @@ export interface Tweet {
|
|
|
124
124
|
restId: string;
|
|
125
125
|
/**
|
|
126
126
|
*
|
|
127
|
-
* @type {
|
|
127
|
+
* @type {{ [key: string]: any; }}
|
|
128
128
|
* @memberof Tweet
|
|
129
129
|
*/
|
|
130
|
-
unmentionData?:
|
|
130
|
+
unmentionData?: { [key: string]: any; };
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
133
|
* @type {TweetViews}
|
|
@@ -143,7 +143,6 @@ export function instanceOfTweet(value: object): boolean {
|
|
|
143
143
|
let isInstance = true;
|
|
144
144
|
isInstance = isInstance && "core" in value;
|
|
145
145
|
isInstance = isInstance && "editControl" in value;
|
|
146
|
-
isInstance = isInstance && "editPrespective" in value;
|
|
147
146
|
isInstance = isInstance && "isTranslatable" in value;
|
|
148
147
|
isInstance = isInstance && "legacy" in value;
|
|
149
148
|
isInstance = isInstance && "restId" in value;
|
|
@@ -166,7 +165,7 @@ export function TweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Twe
|
|
|
166
165
|
'card': !exists(json, 'card') ? undefined : TweetCardFromJSON(json['card']),
|
|
167
166
|
'core': UserResultCoreFromJSON(json['core']),
|
|
168
167
|
'editControl': TweetEditControlFromJSON(json['edit_control']),
|
|
169
|
-
'editPrespective': TweetEditPrespectiveFromJSON(json['edit_prespective']),
|
|
168
|
+
'editPrespective': !exists(json, 'edit_prespective') ? undefined : TweetEditPrespectiveFromJSON(json['edit_prespective']),
|
|
170
169
|
'isTranslatable': json['is_translatable'],
|
|
171
170
|
'legacy': TweetLegacyFromJSON(json['legacy']),
|
|
172
171
|
'quotedStatusResult': !exists(json, 'quoted_status_result') ? undefined : ItemResultFromJSON(json['quoted_status_result']),
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TweetFavoritersResponseData } from './TweetFavoritersResponseData';
|
|
17
|
+
import {
|
|
18
|
+
TweetFavoritersResponseDataFromJSON,
|
|
19
|
+
TweetFavoritersResponseDataFromJSONTyped,
|
|
20
|
+
TweetFavoritersResponseDataToJSON,
|
|
21
|
+
} from './TweetFavoritersResponseData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetFavoritersResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetFavoritersResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetFavoritersResponseData}
|
|
32
|
+
* @memberof TweetFavoritersResponse
|
|
33
|
+
*/
|
|
34
|
+
data: TweetFavoritersResponseData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetFavoritersResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetFavoritersResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetFavoritersResponseFromJSON(json: any): TweetFavoritersResponse {
|
|
48
|
+
return TweetFavoritersResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetFavoritersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetFavoritersResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': TweetFavoritersResponseDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetFavoritersResponseToJSON(value?: TweetFavoritersResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': TweetFavoritersResponseDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TimelineV2 } from './TimelineV2';
|
|
17
|
+
import {
|
|
18
|
+
TimelineV2FromJSON,
|
|
19
|
+
TimelineV2FromJSONTyped,
|
|
20
|
+
TimelineV2ToJSON,
|
|
21
|
+
} from './TimelineV2';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetFavoritersResponseData
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetFavoritersResponseData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TimelineV2}
|
|
32
|
+
* @memberof TweetFavoritersResponseData
|
|
33
|
+
*/
|
|
34
|
+
favoritersTimeline: TimelineV2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetFavoritersResponseData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetFavoritersResponseData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "favoritersTimeline" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetFavoritersResponseDataFromJSON(json: any): TweetFavoritersResponseData {
|
|
48
|
+
return TweetFavoritersResponseDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetFavoritersResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetFavoritersResponseData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'favoritersTimeline': TimelineV2FromJSON(json['favoriters_timeline']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetFavoritersResponseDataToJSON(value?: TweetFavoritersResponseData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'favoriters_timeline': TimelineV2ToJSON(value.favoritersTimeline),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|