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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: build-test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v3
|
|
17
|
+
|
|
18
|
+
# Openapi Generator Setup
|
|
19
|
+
- name: Get OpenJDK 11
|
|
20
|
+
uses: actions/setup-java@v2
|
|
21
|
+
with:
|
|
22
|
+
distribution: "temurin"
|
|
23
|
+
java-version: 11
|
|
24
|
+
|
|
25
|
+
- name: Get Java version
|
|
26
|
+
run: java -version
|
|
27
|
+
|
|
28
|
+
- name: Get Openapi Generator cache file
|
|
29
|
+
id: openapi-generator-cache
|
|
30
|
+
run: echo "file=openapi-generator-cli.jar" >> $GITHUB_OUTPUT
|
|
31
|
+
|
|
32
|
+
- name: Openapi Generator cache
|
|
33
|
+
uses: actions/cache@v3
|
|
34
|
+
with:
|
|
35
|
+
path: ${{ steps.openapi-generator-cache.outputs.file }}
|
|
36
|
+
key: ${{ runner.os }}-openapi-generator-${{ hashFiles('openapi-generator-cli.jar') }}
|
|
37
|
+
restore-keys: |
|
|
38
|
+
${{ runner.os }}-openapi-generator-
|
|
39
|
+
|
|
40
|
+
- name: Get Openapi Generator
|
|
41
|
+
run: |
|
|
42
|
+
wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose
|
|
43
|
+
if: steps.openapi-generator-cache.outputs.cache-hit != 'true'
|
|
44
|
+
|
|
45
|
+
# Python Setup
|
|
46
|
+
- name: Set up Python 3.10
|
|
47
|
+
uses: actions/setup-python@v4
|
|
48
|
+
with:
|
|
49
|
+
python-version: "3.10"
|
|
50
|
+
architecture: "x64"
|
|
51
|
+
|
|
52
|
+
- name: Get Python version
|
|
53
|
+
run: python -V
|
|
54
|
+
|
|
55
|
+
- name: Get pip cache dir
|
|
56
|
+
id: pip-cache
|
|
57
|
+
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
|
58
|
+
|
|
59
|
+
- name: pip cache
|
|
60
|
+
uses: actions/cache@v3
|
|
61
|
+
with:
|
|
62
|
+
path: ${{ steps.pip-cache.outputs.dir }}
|
|
63
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
64
|
+
restore-keys: |
|
|
65
|
+
${{ runner.os }}-pip-
|
|
66
|
+
|
|
67
|
+
- name: Install dependencies
|
|
68
|
+
run: |
|
|
69
|
+
python -m pip install --upgrade pip
|
|
70
|
+
pip install -r requirements.txt
|
|
71
|
+
|
|
72
|
+
# generate
|
|
73
|
+
- name: Build twitter-openapi
|
|
74
|
+
run: |
|
|
75
|
+
python tools/build.py
|
|
76
|
+
|
|
77
|
+
# clean up dependencies
|
|
78
|
+
- name: Clean up dependencies
|
|
79
|
+
run: |
|
|
80
|
+
pip uninstall -y -r requirements.txt
|
|
81
|
+
|
|
82
|
+
# generate
|
|
83
|
+
- name: Generate
|
|
84
|
+
run: |
|
|
85
|
+
java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python
|
|
86
|
+
java -jar openapi-generator-cli.jar generate -c test/dart-dio/openapi-generator-config.yaml -g dart-dio
|
|
87
|
+
java -jar openapi-generator-cli.jar generate -c test/typescript-fetch/openapi-generator-config.yaml -g typescript-fetch
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
name: test-python
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types: [labeled]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build_and_preview:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
name: Test
|
|
12
|
+
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
with:
|
|
17
|
+
ref: "${{ github.event.pull_request.merge_commit_sha }}"
|
|
18
|
+
|
|
19
|
+
# Openapi Generator Setup
|
|
20
|
+
- name: Get OpenJDK 11
|
|
21
|
+
uses: actions/setup-java@v2
|
|
22
|
+
with:
|
|
23
|
+
distribution: "temurin"
|
|
24
|
+
java-version: 11
|
|
25
|
+
|
|
26
|
+
- name: Get Java version
|
|
27
|
+
run: java -version
|
|
28
|
+
|
|
29
|
+
- name: Get Openapi Generator cache file
|
|
30
|
+
id: openapi-generator-cache
|
|
31
|
+
run: echo "file=openapi-generator-cli.jar" >> $GITHUB_OUTPUT
|
|
32
|
+
|
|
33
|
+
- name: Openapi Generator cache
|
|
34
|
+
uses: actions/cache@v3
|
|
35
|
+
with:
|
|
36
|
+
path: ${{ steps.openapi-generator-cache.outputs.file }}
|
|
37
|
+
key: ${{ runner.os }}-openapi-generator-${{ hashFiles('openapi-generator-cli.jar') }}
|
|
38
|
+
restore-keys: |
|
|
39
|
+
${{ runner.os }}-openapi-generator-
|
|
40
|
+
|
|
41
|
+
- name: Get Openapi Generator
|
|
42
|
+
run: |
|
|
43
|
+
wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose
|
|
44
|
+
if: steps.openapi-generator-cache.outputs.cache-hit != 'true'
|
|
45
|
+
|
|
46
|
+
# Python Setup
|
|
47
|
+
- name: Set up Python 3.10
|
|
48
|
+
uses: actions/setup-python@v4
|
|
49
|
+
with:
|
|
50
|
+
python-version: "3.10"
|
|
51
|
+
architecture: "x64"
|
|
52
|
+
|
|
53
|
+
- name: Get Python version
|
|
54
|
+
run: python -V
|
|
55
|
+
|
|
56
|
+
- name: Get pip cache dir
|
|
57
|
+
id: pip-cache
|
|
58
|
+
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
|
59
|
+
|
|
60
|
+
- name: pip cache
|
|
61
|
+
uses: actions/cache@v3
|
|
62
|
+
with:
|
|
63
|
+
path: ${{ steps.pip-cache.outputs.dir }}
|
|
64
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
65
|
+
restore-keys: |
|
|
66
|
+
${{ runner.os }}-pip-
|
|
67
|
+
|
|
68
|
+
- name: Install dependencies
|
|
69
|
+
run: |
|
|
70
|
+
python -m pip install --upgrade pip
|
|
71
|
+
pip install -r requirements.txt
|
|
72
|
+
|
|
73
|
+
# generate
|
|
74
|
+
- name: Build twitter-openapi
|
|
75
|
+
run: |
|
|
76
|
+
python tools/build.py
|
|
77
|
+
|
|
78
|
+
# clean up dependencies
|
|
79
|
+
- name: Clean up dependencies
|
|
80
|
+
run: |
|
|
81
|
+
pip uninstall -y -r requirements.txt
|
|
82
|
+
|
|
83
|
+
# generate
|
|
84
|
+
- name: Generate Python client
|
|
85
|
+
run: |
|
|
86
|
+
java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python
|
|
87
|
+
|
|
88
|
+
# test
|
|
89
|
+
- name: Test Python client
|
|
90
|
+
run: |
|
|
91
|
+
pip install ./python_generated
|
|
92
|
+
|
|
93
|
+
- name: Run Python client test
|
|
94
|
+
run: |
|
|
95
|
+
python test/python/test_serialize.py
|
|
96
|
+
env:
|
|
97
|
+
TWITTER_SESSION: ${{ secrets.TWITTER_SESSION }}
|
|
98
|
+
ERROR_UNCATCHED: "False"
|
|
99
|
+
SLEEP_TIME: 2
|
|
100
|
+
CUESOR_TEST_COUNT: 5
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "build",
|
|
6
|
+
"type": "python",
|
|
7
|
+
"request": "launch",
|
|
8
|
+
"program": "tools/build.py",
|
|
9
|
+
"console": "integratedTerminal",
|
|
10
|
+
"justMyCode": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "test",
|
|
14
|
+
"type": "python",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"program": "test/python/test_serialize.py",
|
|
17
|
+
"console": "integratedTerminal",
|
|
18
|
+
"justMyCode": false,
|
|
19
|
+
"preLaunchTask": "build-task",
|
|
20
|
+
"env": {
|
|
21
|
+
"ERROR_UNCATCHED": "True"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
"yaml.validate": true,
|
|
5
5
|
"yaml.hover": true,
|
|
6
6
|
"yaml.schemas": {
|
|
7
|
-
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "
|
|
7
|
+
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "src/**/*.yaml"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"tasks": [
|
|
4
|
+
{
|
|
5
|
+
"label": "build-task",
|
|
6
|
+
"type": "shell",
|
|
7
|
+
"linux": {
|
|
8
|
+
"command": [
|
|
9
|
+
"python3 tools/build.py;",
|
|
10
|
+
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
11
|
+
"python3 -m pip install ./python_generated;"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"windows": {
|
|
15
|
+
"command": [
|
|
16
|
+
".venv/Scripts/activate;",
|
|
17
|
+
"python tools/build.py;",
|
|
18
|
+
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
|
19
|
+
"python -m pip install ./python_generated;"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"label": "init-venv",
|
|
25
|
+
"type": "shell",
|
|
26
|
+
"runOptions": {
|
|
27
|
+
"runOn": "folderOpen"
|
|
28
|
+
},
|
|
29
|
+
"linux": {
|
|
30
|
+
"command": [
|
|
31
|
+
"python3 -m venv .venv;",
|
|
32
|
+
".venv/bin/python3 -m pip install -r requirements.txt;",
|
|
33
|
+
"wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -O openapi-generator-cli.jar;"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"windows": {
|
|
37
|
+
"command": [
|
|
38
|
+
"python -m venv .venv;",
|
|
39
|
+
".venv/Scripts/python -m pip install -r requirements.txt;",
|
|
40
|
+
"Invoke-WebRequest https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.3.0/openapi-generator-cli.jar -OutFile openapi-generator-cli.jar;"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CONTRIBUTING
|
|
2
|
+
|
|
3
|
+
- `src` *.yaml files should be written according to the [v3.0/schema.json](https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json)
|
|
4
|
+
- `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
|
|
5
|
+
- `dist` Do not include this in the pull request due to potential conflicts.
|
|
6
|
+
|
|
7
|
+
Users using vscode can build and test with the GUI.
|
|
8
|
+
[.vscode/launch.json](.vscode/launch.json) is a configuration file for vscode.
|
|
9
|
+
|
|
10
|
+
## Good first issues
|
|
11
|
+
|
|
12
|
+
- Add a new endpoint
|
|
13
|
+
- Add type to `type: object # todo`
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Twitter OpenAPI(Swagger) specification
|
|
4
4
|
|
|
5
|
+
- [Python](https://github.com/fa0311/twitter_openapi_python)
|
|
5
6
|
- [Dart](https://github.com/fa0311/twitter_openapi_dart)
|
|
6
7
|
- [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
|
|
7
8
|
- [React Documents](https://github.com/fa0311/twitter-openapi-docs)
|
|
@@ -20,8 +21,7 @@ Note that the license also inherits to the output.
|
|
|
20
21
|
|
|
21
22
|
## Contribute
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
- `dist` Do not rewrite this file as it is an automatically generated OpenAPI file.
|
|
24
|
+
[CONTRIBUTING.md](./CONTRIBUTING.md)
|
|
25
25
|
|
|
26
26
|
### build
|
|
27
27
|
|
|
@@ -104,12 +104,16 @@ paths:
|
|
|
104
104
|
$ref: ./paths/timeline.yaml#/paths/~1graphql~1{pathQueryId}~1SearchTimeline
|
|
105
105
|
/graphql/{pathQueryId}/TweetDetail:
|
|
106
106
|
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail
|
|
107
|
+
/graphql/{pathQueryId}/TweetResultByRestId:
|
|
108
|
+
$ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetResultByRestId
|
|
107
109
|
/graphql/{pathQueryId}/UnfavoriteTweet:
|
|
108
110
|
$ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet
|
|
109
111
|
/graphql/{pathQueryId}/UserByRestId:
|
|
110
112
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId
|
|
111
113
|
/graphql/{pathQueryId}/UserByScreenName:
|
|
112
114
|
$ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName
|
|
115
|
+
/graphql/{pathQueryId}/UserHighlightsTweets:
|
|
116
|
+
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserHighlightsTweets
|
|
113
117
|
/graphql/{pathQueryId}/UserMedia:
|
|
114
118
|
$ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserMedia
|
|
115
119
|
/graphql/{pathQueryId}/UserTweets:
|
|
@@ -133,11 +137,13 @@ security:
|
|
|
133
137
|
servers:
|
|
134
138
|
- url: https://twitter.com/i/api
|
|
135
139
|
tags:
|
|
136
|
-
- description:
|
|
140
|
+
- description: Responses containing User objects.
|
|
137
141
|
name: user
|
|
138
|
-
- description:
|
|
142
|
+
- description: Responses containing List[User] objects.
|
|
143
|
+
name: users
|
|
144
|
+
- description: Responses containing instruction objects.
|
|
139
145
|
name: user-list
|
|
140
|
-
- description:
|
|
146
|
+
- description: Responses containing instruction objects.
|
|
141
147
|
name: tweet
|
|
142
148
|
- description: post
|
|
143
149
|
name: post
|
|
@@ -74,7 +74,9 @@ paths:
|
|
|
74
74
|
content:
|
|
75
75
|
application/json:
|
|
76
76
|
schema:
|
|
77
|
-
|
|
77
|
+
oneOf:
|
|
78
|
+
- $ref: '#/components/schemas/BookmarksResponse'
|
|
79
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
78
80
|
description: Successful operation
|
|
79
81
|
headers:
|
|
80
82
|
x-connection-hash:
|
|
@@ -91,7 +91,9 @@ paths:
|
|
|
91
91
|
content:
|
|
92
92
|
application/json:
|
|
93
93
|
schema:
|
|
94
|
-
|
|
94
|
+
oneOf:
|
|
95
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
96
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
95
97
|
description: Successful operation
|
|
96
98
|
headers:
|
|
97
99
|
x-connection-hash:
|
|
@@ -182,7 +184,9 @@ paths:
|
|
|
182
184
|
content:
|
|
183
185
|
application/json:
|
|
184
186
|
schema:
|
|
185
|
-
|
|
187
|
+
oneOf:
|
|
188
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
189
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
186
190
|
description: Successful operation
|
|
187
191
|
headers:
|
|
188
192
|
x-connection-hash:
|
|
@@ -264,7 +268,9 @@ paths:
|
|
|
264
268
|
content:
|
|
265
269
|
application/json:
|
|
266
270
|
schema:
|
|
267
|
-
|
|
271
|
+
oneOf:
|
|
272
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
273
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
268
274
|
description: Successful operation
|
|
269
275
|
headers:
|
|
270
276
|
x-connection-hash:
|
|
@@ -181,7 +181,9 @@ paths:
|
|
|
181
181
|
content:
|
|
182
182
|
application/json:
|
|
183
183
|
schema:
|
|
184
|
-
|
|
184
|
+
oneOf:
|
|
185
|
+
- $ref: '#/components/schemas/CreateRetweetResponse'
|
|
186
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
185
187
|
description: Successful operation
|
|
186
188
|
headers:
|
|
187
189
|
x-connection-hash:
|
|
@@ -375,7 +377,9 @@ paths:
|
|
|
375
377
|
content:
|
|
376
378
|
application/json:
|
|
377
379
|
schema:
|
|
378
|
-
|
|
380
|
+
oneOf:
|
|
381
|
+
- $ref: '#/components/schemas/CreateTweetResponse'
|
|
382
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
379
383
|
description: Successful operation
|
|
380
384
|
headers:
|
|
381
385
|
x-connection-hash:
|
|
@@ -449,7 +453,9 @@ paths:
|
|
|
449
453
|
content:
|
|
450
454
|
application/json:
|
|
451
455
|
schema:
|
|
452
|
-
|
|
456
|
+
oneOf:
|
|
457
|
+
- $ref: '#/components/schemas/DeleteRetweetResponse'
|
|
458
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
453
459
|
description: Successful operation
|
|
454
460
|
headers:
|
|
455
461
|
x-connection-hash:
|
|
@@ -523,7 +529,9 @@ paths:
|
|
|
523
529
|
content:
|
|
524
530
|
application/json:
|
|
525
531
|
schema:
|
|
526
|
-
|
|
532
|
+
oneOf:
|
|
533
|
+
- $ref: '#/components/schemas/DeleteTweetResponse'
|
|
534
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
527
535
|
description: Successful operation
|
|
528
536
|
headers:
|
|
529
537
|
x-connection-hash:
|
|
@@ -597,7 +605,9 @@ paths:
|
|
|
597
605
|
content:
|
|
598
606
|
application/json:
|
|
599
607
|
schema:
|
|
600
|
-
|
|
608
|
+
oneOf:
|
|
609
|
+
- $ref: '#/components/schemas/FavoriteTweetResponseData'
|
|
610
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
601
611
|
description: Successful operation
|
|
602
612
|
headers:
|
|
603
613
|
x-connection-hash:
|
|
@@ -671,7 +681,9 @@ paths:
|
|
|
671
681
|
content:
|
|
672
682
|
application/json:
|
|
673
683
|
schema:
|
|
674
|
-
|
|
684
|
+
oneOf:
|
|
685
|
+
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
|
686
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
675
687
|
description: Successful operation
|
|
676
688
|
headers:
|
|
677
689
|
x-connection-hash:
|
|
@@ -15,7 +15,7 @@ components:
|
|
|
15
15
|
UserResultByScreenName:
|
|
16
16
|
properties:
|
|
17
17
|
id:
|
|
18
|
-
pattern: ^[
|
|
18
|
+
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
|
19
19
|
type: string
|
|
20
20
|
result:
|
|
21
21
|
$ref: '#/components/schemas/UserResultByScreenNameResult'
|
|
@@ -48,6 +48,7 @@ components:
|
|
|
48
48
|
legacy:
|
|
49
49
|
$ref: '#/components/schemas/UserResultByScreenNameLegacy'
|
|
50
50
|
profilemodules:
|
|
51
|
+
additionalProperties: true
|
|
51
52
|
type: object
|
|
52
53
|
rest_id:
|
|
53
54
|
pattern: ^[0-9]+$
|
|
@@ -94,7 +95,9 @@ paths:
|
|
|
94
95
|
content:
|
|
95
96
|
application/json:
|
|
96
97
|
schema:
|
|
97
|
-
|
|
98
|
+
oneOf:
|
|
99
|
+
- $ref: '#/components/schemas/ProfileResponse'
|
|
100
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
98
101
|
description: Successful operation
|
|
99
102
|
headers:
|
|
100
103
|
x-connection-hash:
|
|
@@ -124,7 +124,9 @@ paths:
|
|
|
124
124
|
content:
|
|
125
125
|
application/json:
|
|
126
126
|
schema:
|
|
127
|
-
|
|
127
|
+
oneOf:
|
|
128
|
+
- $ref: '#/components/schemas/TimelineResponse'
|
|
129
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
128
130
|
description: Successful operation
|
|
129
131
|
headers:
|
|
130
132
|
x-connection-hash:
|
|
@@ -206,7 +208,9 @@ paths:
|
|
|
206
208
|
content:
|
|
207
209
|
application/json:
|
|
208
210
|
schema:
|
|
209
|
-
|
|
211
|
+
oneOf:
|
|
212
|
+
- $ref: '#/components/schemas/TimelineResponse'
|
|
213
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
210
214
|
description: Successful operation
|
|
211
215
|
headers:
|
|
212
216
|
x-connection-hash:
|
|
@@ -286,7 +290,9 @@ paths:
|
|
|
286
290
|
content:
|
|
287
291
|
application/json:
|
|
288
292
|
schema:
|
|
289
|
-
|
|
293
|
+
oneOf:
|
|
294
|
+
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
|
295
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
290
296
|
description: Successful operation
|
|
291
297
|
headers:
|
|
292
298
|
x-connection-hash:
|
|
@@ -377,7 +383,9 @@ paths:
|
|
|
377
383
|
content:
|
|
378
384
|
application/json:
|
|
379
385
|
schema:
|
|
380
|
-
|
|
386
|
+
oneOf:
|
|
387
|
+
- $ref: '#/components/schemas/SearchTimelineResponse'
|
|
388
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
381
389
|
description: Successful operation
|
|
382
390
|
headers:
|
|
383
391
|
x-connection-hash:
|