twitter-openapi-typescript-generated 0.0.8 → 0.0.10
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 +37 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +16 -3
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +85 -2
- 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 +2 -2
- 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 +7 -7
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +35 -21
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +100 -11
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +5 -18
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +3 -86
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +23 -23
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +54 -54
- 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/V11GetApi.js +1 -1
- package/dist/apis/V11PostApi.js +1 -1
- package/dist/apis/V20GetApi.js +1 -1
- 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/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/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/GetTweetResultByRestId200Response.d.ts +23 -0
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -0
- package/dist/models/GetTweetResultByRestId200Response.js +57 -0
- package/dist/models/GetTweetResultByRestId200Response.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 +1 -1
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionUnion.d.ts +1 -1
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +6 -6
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +9 -9
- package/dist/models/ItemContentUnion.js.map +1 -1
- 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/Timeline.d.ts +8 -4
- package/dist/models/Timeline.d.ts.map +1 -1
- package/dist/models/TimelineMessagePrompt.d.ts +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -1
- package/dist/models/TimelineMessagePrompt.js +13 -6
- package/dist/models/TimelineMessagePrompt.js.map +1 -1
- package/dist/models/TimelinePrompt.d.ts +1 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -1
- package/dist/models/TimelinePrompt.js +13 -6
- package/dist/models/TimelinePrompt.js.map +1 -1
- package/dist/models/TimelineShowAlert.d.ts +10 -6
- package/dist/models/TimelineShowAlert.d.ts.map +1 -1
- package/dist/models/TimelineShowAlertRichText.d.ts +4 -2
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
- 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/TweetResultByRestIdData.d.ts +33 -0
- package/dist/models/TweetResultByRestIdData.d.ts.map +1 -0
- package/dist/models/TweetResultByRestIdData.js +52 -0
- package/dist/models/TweetResultByRestIdData.js.map +1 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts +33 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -0
- package/dist/models/TweetResultByRestIdResponse.js +52 -0
- package/dist/models/TweetResultByRestIdResponse.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/TweetUnion.d.ts +1 -1
- package/dist/models/TweetUnion.d.ts.map +1 -1
- package/dist/models/TypeName.d.ts +4 -1
- 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/index.d.ts +36 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +36 -0
- 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 +1 -1
- package/src/apis/DefaultApi.ts +93 -6
- package/src/apis/OtherApi.ts +6 -6
- package/src/apis/PostApi.ts +36 -36
- package/src/apis/TweetApi.ts +144 -48
- package/src/apis/UserApi.ts +9 -96
- package/src/apis/UserListApi.ts +70 -70
- package/src/apis/UsersApi.ts +114 -0
- package/src/apis/index.ts +1 -0
- 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/GetTweetResultByRestId200Response.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/ItemContentUnion.ts +10 -10
- 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/Timeline.ts +4 -4
- package/src/models/TimelineMessagePrompt.ts +3 -0
- package/src/models/TimelinePrompt.ts +3 -0
- package/src/models/TimelineShowAlert.ts +4 -4
- package/src/models/TimelineShowAlertRichText.ts +2 -2
- 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/TweetResultByRestIdData.ts +73 -0
- package/src/models/TweetResultByRestIdResponse.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/index.ts +36 -0
- package/tools/openapi-generator-config.yaml +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 +9 -3
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/dist/compatible/paths/follow.yaml +9 -3
- 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 +12 -4
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +105 -5
- package/twitter-openapi/dist/compatible/paths/user.yaml +10 -4
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +140 -4
- package/twitter-openapi/dist/compatible/schemas/content.yaml +21 -15
- package/twitter-openapi/dist/compatible/schemas/error.yaml +94 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +4 -8
- 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 +9 -3
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +3 -1
- package/twitter-openapi/dist/docs/paths/follow.yaml +9 -3
- 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 +12 -4
- package/twitter-openapi/dist/docs/paths/tweet.yaml +202 -5
- package/twitter-openapi/dist/docs/paths/user.yaml +10 -4
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +250 -4
- package/twitter-openapi/dist/docs/schemas/content.yaml +21 -15
- package/twitter-openapi/dist/docs/schemas/error.yaml +94 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +4 -8
- 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 +70 -3
- 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 +9 -3
- 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 +12 -4
- package/twitter-openapi/src/openapi/paths/tweet.yaml +41 -5
- package/twitter-openapi/src/openapi/paths/user.yaml +10 -4
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +66 -4
- package/twitter-openapi/src/openapi/schemas/content.yaml +26 -19
- package/twitter-openapi/src/openapi/schemas/error.yaml +99 -0
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +7 -11
- 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
|
@@ -46,10 +46,10 @@ export interface TimelineShowAlert {
|
|
|
46
46
|
alertType?: TimelineShowAlertAlertTypeEnum;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
50
|
* @memberof TimelineShowAlert
|
|
51
51
|
*/
|
|
52
|
-
colorConfig?:
|
|
52
|
+
colorConfig?: { [key: string]: any; };
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {number}
|
|
@@ -64,10 +64,10 @@ export interface TimelineShowAlert {
|
|
|
64
64
|
displayLocation?: TimelineShowAlertDisplayLocationEnum;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
|
-
* @type {
|
|
67
|
+
* @type {{ [key: string]: any; }}
|
|
68
68
|
* @memberof TimelineShowAlert
|
|
69
69
|
*/
|
|
70
|
-
iconDisplayInfo?:
|
|
70
|
+
iconDisplayInfo?: { [key: string]: any; };
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {TimelineShowAlertRichText}
|
|
@@ -21,10 +21,10 @@ import { exists, mapValues } from '../runtime';
|
|
|
21
21
|
export interface TimelineShowAlertRichText {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {Array<
|
|
24
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
25
25
|
* @memberof TimelineShowAlertRichText
|
|
26
26
|
*/
|
|
27
|
-
entities?: Array<
|
|
27
|
+
entities?: Array<{ [key: string]: any; }>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -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 { ItemResult } from './ItemResult';
|
|
17
|
+
import {
|
|
18
|
+
ItemResultFromJSON,
|
|
19
|
+
ItemResultFromJSONTyped,
|
|
20
|
+
ItemResultToJSON,
|
|
21
|
+
} from './ItemResult';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetResultByRestIdData
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetResultByRestIdData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ItemResult}
|
|
32
|
+
* @memberof TweetResultByRestIdData
|
|
33
|
+
*/
|
|
34
|
+
tweetResult: ItemResult;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetResultByRestIdData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetResultByRestIdData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "tweetResult" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetResultByRestIdDataFromJSON(json: any): TweetResultByRestIdData {
|
|
48
|
+
return TweetResultByRestIdDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetResultByRestIdDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetResultByRestIdData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'tweetResult': ItemResultFromJSON(json['tweetResult']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetResultByRestIdDataToJSON(value?: TweetResultByRestIdData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'tweetResult': ItemResultToJSON(value.tweetResult),
|
|
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 { TweetResultByRestIdData } from './TweetResultByRestIdData';
|
|
17
|
+
import {
|
|
18
|
+
TweetResultByRestIdDataFromJSON,
|
|
19
|
+
TweetResultByRestIdDataFromJSONTyped,
|
|
20
|
+
TweetResultByRestIdDataToJSON,
|
|
21
|
+
} from './TweetResultByRestIdData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TweetResultByRestIdResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface TweetResultByRestIdResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {TweetResultByRestIdData}
|
|
32
|
+
* @memberof TweetResultByRestIdResponse
|
|
33
|
+
*/
|
|
34
|
+
data: TweetResultByRestIdData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TweetResultByRestIdResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTweetResultByRestIdResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TweetResultByRestIdResponseFromJSON(json: any): TweetResultByRestIdResponse {
|
|
48
|
+
return TweetResultByRestIdResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TweetResultByRestIdResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TweetResultByRestIdResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': TweetResultByRestIdDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TweetResultByRestIdResponseToJSON(value?: TweetResultByRestIdResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': TweetResultByRestIdDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
* @interface TweetTombstone
|
|
27
27
|
*/
|
|
28
28
|
export interface TweetTombstone {
|
|
29
|
+
[key: string]: any | any;
|
|
29
30
|
/**
|
|
30
31
|
*
|
|
31
32
|
* @type {TypeName}
|
|
@@ -53,6 +54,7 @@ export function TweetTombstoneFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
56
|
|
|
57
|
+
...json,
|
|
56
58
|
'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -66,6 +68,7 @@ export function TweetTombstoneToJSON(value?: TweetTombstone | null): any {
|
|
|
66
68
|
}
|
|
67
69
|
return {
|
|
68
70
|
|
|
71
|
+
...value,
|
|
69
72
|
'__typename': TypeNameToJSON(value.typename),
|
|
70
73
|
};
|
|
71
74
|
}
|
package/src/models/TypeName.ts
CHANGED
|
@@ -25,8 +25,11 @@ export const TypeName = {
|
|
|
25
25
|
TweetWithVisibilityResults: 'TweetWithVisibilityResults',
|
|
26
26
|
TimelineTimelineModule: 'TimelineTimelineModule',
|
|
27
27
|
TweetTombstone: 'TweetTombstone',
|
|
28
|
+
TimelinePrompt: 'TimelinePrompt',
|
|
29
|
+
TimelineMessagePrompt: 'TimelineMessagePrompt',
|
|
28
30
|
Tweet: 'Tweet',
|
|
29
|
-
User: 'User'
|
|
31
|
+
User: 'User',
|
|
32
|
+
UserUnavailable: 'UserUnavailable'
|
|
30
33
|
} as const;
|
|
31
34
|
export type TypeName = typeof TypeName[keyof typeof TypeName];
|
|
32
35
|
|
package/src/models/User.ts
CHANGED
|
@@ -40,16 +40,16 @@ export interface User {
|
|
|
40
40
|
typename: TypeName;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {
|
|
43
|
+
* @type {{ [key: string]: any; }}
|
|
44
44
|
* @memberof User
|
|
45
45
|
*/
|
|
46
|
-
affiliatesHighlightedLabel:
|
|
46
|
+
affiliatesHighlightedLabel: { [key: string]: any; };
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
50
|
* @memberof User
|
|
51
51
|
*/
|
|
52
|
-
businessAccount?:
|
|
52
|
+
businessAccount?: { [key: string]: any; };
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {boolean}
|
|
@@ -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 { UserHighlightsTweetsUser } from './UserHighlightsTweetsUser';
|
|
17
|
+
import {
|
|
18
|
+
UserHighlightsTweetsUserFromJSON,
|
|
19
|
+
UserHighlightsTweetsUserFromJSONTyped,
|
|
20
|
+
UserHighlightsTweetsUserToJSON,
|
|
21
|
+
} from './UserHighlightsTweetsUser';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UserHighlightsTweetsData
|
|
27
|
+
*/
|
|
28
|
+
export interface UserHighlightsTweetsData {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UserHighlightsTweetsUser}
|
|
32
|
+
* @memberof UserHighlightsTweetsData
|
|
33
|
+
*/
|
|
34
|
+
user: UserHighlightsTweetsUser;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserHighlightsTweetsData interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUserHighlightsTweetsData(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "user" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserHighlightsTweetsDataFromJSON(json: any): UserHighlightsTweetsData {
|
|
48
|
+
return UserHighlightsTweetsDataFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserHighlightsTweetsDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsData {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'user': UserHighlightsTweetsUserFromJSON(json['user']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UserHighlightsTweetsDataToJSON(value?: UserHighlightsTweetsData | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'user': UserHighlightsTweetsUserToJSON(value.user),
|
|
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 { UserHighlightsTweetsData } from './UserHighlightsTweetsData';
|
|
17
|
+
import {
|
|
18
|
+
UserHighlightsTweetsDataFromJSON,
|
|
19
|
+
UserHighlightsTweetsDataFromJSONTyped,
|
|
20
|
+
UserHighlightsTweetsDataToJSON,
|
|
21
|
+
} from './UserHighlightsTweetsData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UserHighlightsTweetsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface UserHighlightsTweetsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {UserHighlightsTweetsData}
|
|
32
|
+
* @memberof UserHighlightsTweetsResponse
|
|
33
|
+
*/
|
|
34
|
+
data: UserHighlightsTweetsData;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UserHighlightsTweetsResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfUserHighlightsTweetsResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "data" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserHighlightsTweetsResponseFromJSON(json: any): UserHighlightsTweetsResponse {
|
|
48
|
+
return UserHighlightsTweetsResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserHighlightsTweetsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserHighlightsTweetsResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'data': UserHighlightsTweetsDataFromJSON(json['data']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function UserHighlightsTweetsResponseToJSON(value?: UserHighlightsTweetsResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': UserHighlightsTweetsDataToJSON(value.data),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|