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
|
@@ -36,6 +36,7 @@ components:
|
|
|
36
36
|
required:
|
|
37
37
|
- media
|
|
38
38
|
Hashtag:
|
|
39
|
+
additionalProperties: true
|
|
39
40
|
type: object
|
|
40
41
|
Media:
|
|
41
42
|
properties:
|
|
@@ -46,6 +47,7 @@ components:
|
|
|
46
47
|
format: uri
|
|
47
48
|
type: string
|
|
48
49
|
ext_media_availability:
|
|
50
|
+
additionalProperties: true
|
|
49
51
|
type: object
|
|
50
52
|
id_str:
|
|
51
53
|
pattern: ^[0-9]+$
|
|
@@ -64,6 +66,7 @@ components:
|
|
|
64
66
|
properties:
|
|
65
67
|
focus_rects:
|
|
66
68
|
items:
|
|
69
|
+
additionalProperties: true
|
|
67
70
|
type: object
|
|
68
71
|
type: array
|
|
69
72
|
height:
|
|
@@ -72,6 +75,7 @@ components:
|
|
|
72
75
|
type: integer
|
|
73
76
|
type: object
|
|
74
77
|
sizes:
|
|
78
|
+
additionalProperties: true
|
|
75
79
|
type: object
|
|
76
80
|
type:
|
|
77
81
|
type: string
|
|
@@ -89,6 +93,7 @@ components:
|
|
|
89
93
|
- sizes
|
|
90
94
|
- original_info
|
|
91
95
|
Symbol:
|
|
96
|
+
additionalProperties: true
|
|
92
97
|
type: object
|
|
93
98
|
Tweet:
|
|
94
99
|
properties:
|
|
@@ -169,6 +174,7 @@ components:
|
|
|
169
174
|
pattern: ^[0-9]+$
|
|
170
175
|
type: string
|
|
171
176
|
unmention_data:
|
|
177
|
+
additionalProperties: true
|
|
172
178
|
type: object
|
|
173
179
|
views:
|
|
174
180
|
properties:
|
|
@@ -182,7 +188,6 @@ components:
|
|
|
182
188
|
- rest_id
|
|
183
189
|
- core
|
|
184
190
|
- edit_control
|
|
185
|
-
- edit_prespective
|
|
186
191
|
- is_translatable
|
|
187
192
|
- legacy
|
|
188
193
|
- views
|
|
@@ -264,6 +269,7 @@ components:
|
|
|
264
269
|
- user_id_str
|
|
265
270
|
- id_str
|
|
266
271
|
TweetTombstone:
|
|
272
|
+
additionalProperties: true
|
|
267
273
|
properties:
|
|
268
274
|
__typename:
|
|
269
275
|
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
@@ -308,6 +314,7 @@ components:
|
|
|
308
314
|
- display_url
|
|
309
315
|
type: object
|
|
310
316
|
UserMention:
|
|
317
|
+
additionalProperties: true
|
|
311
318
|
type: object
|
|
312
319
|
info:
|
|
313
320
|
title: Twitter OpenAPI
|
|
@@ -5,8 +5,10 @@ components:
|
|
|
5
5
|
__typename:
|
|
6
6
|
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
7
7
|
affiliates_highlighted_label:
|
|
8
|
+
additionalProperties: true
|
|
8
9
|
type: object
|
|
9
10
|
business_account:
|
|
11
|
+
additionalProperties: true
|
|
10
12
|
type: object
|
|
11
13
|
has_graduated_access:
|
|
12
14
|
type: boolean
|
|
@@ -14,7 +16,7 @@ components:
|
|
|
14
16
|
default: false
|
|
15
17
|
type: boolean
|
|
16
18
|
id:
|
|
17
|
-
pattern: ^[
|
|
19
|
+
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
|
18
20
|
type: string
|
|
19
21
|
is_blue_verified:
|
|
20
22
|
default: false
|
|
@@ -68,6 +70,7 @@ components:
|
|
|
68
70
|
description:
|
|
69
71
|
type: string
|
|
70
72
|
entities:
|
|
73
|
+
additionalProperties: true
|
|
71
74
|
type: object
|
|
72
75
|
fast_followers_count:
|
|
73
76
|
type: integer
|
|
@@ -162,10 +165,7 @@ components:
|
|
|
162
165
|
- entities
|
|
163
166
|
- fast_followers_count
|
|
164
167
|
- favourites_count
|
|
165
|
-
- follow_request_sent
|
|
166
|
-
- followed_by
|
|
167
168
|
- followers_count
|
|
168
|
-
- following
|
|
169
169
|
- friends_count
|
|
170
170
|
- has_custom_timelines
|
|
171
171
|
- is_translator
|
|
@@ -175,12 +175,10 @@ components:
|
|
|
175
175
|
- muting
|
|
176
176
|
- name
|
|
177
177
|
- normal_followers_count
|
|
178
|
-
- notifications
|
|
179
178
|
- pinned_tweet_ids_str
|
|
180
179
|
- possibly_sensitive
|
|
181
180
|
- profile_image_url_https
|
|
182
181
|
- profile_interstitial_type
|
|
183
|
-
- protected
|
|
184
182
|
- screen_name
|
|
185
183
|
- status
|
|
186
184
|
- statuses_count
|
|
@@ -196,9 +194,27 @@ components:
|
|
|
196
194
|
UserResults:
|
|
197
195
|
properties:
|
|
198
196
|
result:
|
|
199
|
-
$ref: '#/components/schemas/
|
|
197
|
+
$ref: '#/components/schemas/UserUnion'
|
|
200
198
|
required:
|
|
201
199
|
- result
|
|
200
|
+
UserUnavailable:
|
|
201
|
+
properties:
|
|
202
|
+
__typename:
|
|
203
|
+
$ref: ./typename.yaml#/components/schemas/TypeName
|
|
204
|
+
reason:
|
|
205
|
+
type: string
|
|
206
|
+
required:
|
|
207
|
+
- __typename
|
|
208
|
+
- reason
|
|
209
|
+
UserUnion:
|
|
210
|
+
discriminator:
|
|
211
|
+
mapping":
|
|
212
|
+
User: '#/components/schemas/User'
|
|
213
|
+
UserUnavailable: '#/components/schemas/UserUnavailable'
|
|
214
|
+
propertyName: __typename
|
|
215
|
+
oneOf:
|
|
216
|
+
- $ref: '#/components/schemas/User'
|
|
217
|
+
- $ref: '#/components/schemas/UserUnavailable'
|
|
202
218
|
info:
|
|
203
219
|
title: Twitter OpenAPI
|
|
204
220
|
version: 0.0.1
|
|
@@ -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
|
|
@@ -168,7 +168,9 @@ paths:
|
|
|
168
168
|
content:
|
|
169
169
|
application/json:
|
|
170
170
|
schema:
|
|
171
|
-
|
|
171
|
+
oneOf:
|
|
172
|
+
- $ref: '#/components/schemas/BookmarksResponse'
|
|
173
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
172
174
|
description: Successful operation
|
|
173
175
|
headers:
|
|
174
176
|
x-connection-hash:
|
|
@@ -183,7 +183,9 @@ paths:
|
|
|
183
183
|
content:
|
|
184
184
|
application/json:
|
|
185
185
|
schema:
|
|
186
|
-
|
|
186
|
+
oneOf:
|
|
187
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
188
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
187
189
|
description: Successful operation
|
|
188
190
|
headers:
|
|
189
191
|
x-connection-hash:
|
|
@@ -376,7 +378,9 @@ paths:
|
|
|
376
378
|
content:
|
|
377
379
|
application/json:
|
|
378
380
|
schema:
|
|
379
|
-
|
|
381
|
+
oneOf:
|
|
382
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
383
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
380
384
|
description: Successful operation
|
|
381
385
|
headers:
|
|
382
386
|
x-connection-hash:
|
|
@@ -550,7 +554,9 @@ paths:
|
|
|
550
554
|
content:
|
|
551
555
|
application/json:
|
|
552
556
|
schema:
|
|
553
|
-
|
|
557
|
+
oneOf:
|
|
558
|
+
- $ref: '#/components/schemas/FollowResponse'
|
|
559
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
554
560
|
description: Successful operation
|
|
555
561
|
headers:
|
|
556
562
|
x-connection-hash:
|
|
@@ -177,7 +177,9 @@ paths:
|
|
|
177
177
|
content:
|
|
178
178
|
application/json:
|
|
179
179
|
schema:
|
|
180
|
-
|
|
180
|
+
oneOf:
|
|
181
|
+
- $ref: '#/components/schemas/CreateRetweetResponse'
|
|
182
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
181
183
|
description: Successful operation
|
|
182
184
|
headers:
|
|
183
185
|
x-connection-hash:
|
|
@@ -369,7 +371,9 @@ paths:
|
|
|
369
371
|
content:
|
|
370
372
|
application/json:
|
|
371
373
|
schema:
|
|
372
|
-
|
|
374
|
+
oneOf:
|
|
375
|
+
- $ref: '#/components/schemas/CreateTweetResponse'
|
|
376
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
373
377
|
description: Successful operation
|
|
374
378
|
headers:
|
|
375
379
|
x-connection-hash:
|
|
@@ -439,7 +443,9 @@ paths:
|
|
|
439
443
|
content:
|
|
440
444
|
application/json:
|
|
441
445
|
schema:
|
|
442
|
-
|
|
446
|
+
oneOf:
|
|
447
|
+
- $ref: '#/components/schemas/DeleteRetweetResponse'
|
|
448
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
443
449
|
description: Successful operation
|
|
444
450
|
headers:
|
|
445
451
|
x-connection-hash:
|
|
@@ -509,7 +515,9 @@ paths:
|
|
|
509
515
|
content:
|
|
510
516
|
application/json:
|
|
511
517
|
schema:
|
|
512
|
-
|
|
518
|
+
oneOf:
|
|
519
|
+
- $ref: '#/components/schemas/DeleteTweetResponse'
|
|
520
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
513
521
|
description: Successful operation
|
|
514
522
|
headers:
|
|
515
523
|
x-connection-hash:
|
|
@@ -579,7 +587,9 @@ paths:
|
|
|
579
587
|
content:
|
|
580
588
|
application/json:
|
|
581
589
|
schema:
|
|
582
|
-
|
|
590
|
+
oneOf:
|
|
591
|
+
- $ref: '#/components/schemas/FavoriteTweetResponseData'
|
|
592
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
583
593
|
description: Successful operation
|
|
584
594
|
headers:
|
|
585
595
|
x-connection-hash:
|
|
@@ -649,7 +659,9 @@ paths:
|
|
|
649
659
|
content:
|
|
650
660
|
application/json:
|
|
651
661
|
schema:
|
|
652
|
-
|
|
662
|
+
oneOf:
|
|
663
|
+
- $ref: '#/components/schemas/UnfavoriteTweetResponseData'
|
|
664
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
653
665
|
description: Successful operation
|
|
654
666
|
headers:
|
|
655
667
|
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]+$
|
|
@@ -102,7 +103,9 @@ paths:
|
|
|
102
103
|
content:
|
|
103
104
|
application/json:
|
|
104
105
|
schema:
|
|
105
|
-
|
|
106
|
+
oneOf:
|
|
107
|
+
- $ref: '#/components/schemas/ProfileResponse'
|
|
108
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
106
109
|
description: Successful operation
|
|
107
110
|
headers:
|
|
108
111
|
x-connection-hash:
|
|
@@ -221,7 +221,9 @@ paths:
|
|
|
221
221
|
content:
|
|
222
222
|
application/json:
|
|
223
223
|
schema:
|
|
224
|
-
|
|
224
|
+
oneOf:
|
|
225
|
+
- $ref: '#/components/schemas/TimelineResponse'
|
|
226
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
225
227
|
description: Successful operation
|
|
226
228
|
headers:
|
|
227
229
|
x-connection-hash:
|
|
@@ -405,7 +407,9 @@ paths:
|
|
|
405
407
|
content:
|
|
406
408
|
application/json:
|
|
407
409
|
schema:
|
|
408
|
-
|
|
410
|
+
oneOf:
|
|
411
|
+
- $ref: '#/components/schemas/TimelineResponse'
|
|
412
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
409
413
|
description: Successful operation
|
|
410
414
|
headers:
|
|
411
415
|
x-connection-hash:
|
|
@@ -574,7 +578,9 @@ paths:
|
|
|
574
578
|
content:
|
|
575
579
|
application/json:
|
|
576
580
|
schema:
|
|
577
|
-
|
|
581
|
+
oneOf:
|
|
582
|
+
- $ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
|
583
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
578
584
|
description: Successful operation
|
|
579
585
|
headers:
|
|
580
586
|
x-connection-hash:
|
|
@@ -772,7 +778,9 @@ paths:
|
|
|
772
778
|
content:
|
|
773
779
|
application/json:
|
|
774
780
|
schema:
|
|
775
|
-
|
|
781
|
+
oneOf:
|
|
782
|
+
- $ref: '#/components/schemas/SearchTimelineResponse'
|
|
783
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
776
784
|
description: Successful operation
|
|
777
785
|
headers:
|
|
778
786
|
x-connection-hash:
|
|
@@ -24,6 +24,18 @@ components:
|
|
|
24
24
|
$ref: ./../schemas/timeline.yaml#/components/schemas/TimelineV2
|
|
25
25
|
required:
|
|
26
26
|
- favoriters_timeline
|
|
27
|
+
TweetResultByRestIdData:
|
|
28
|
+
properties:
|
|
29
|
+
tweetResult:
|
|
30
|
+
$ref: ./../schemas/content.yaml#/components/schemas/ItemResult
|
|
31
|
+
required:
|
|
32
|
+
- tweetResult
|
|
33
|
+
TweetResultByRestIdResponse:
|
|
34
|
+
properties:
|
|
35
|
+
data:
|
|
36
|
+
$ref: '#/components/schemas/TweetResultByRestIdData'
|
|
37
|
+
required:
|
|
38
|
+
- data
|
|
27
39
|
TweetRetweetersResponse:
|
|
28
40
|
properties:
|
|
29
41
|
data:
|
|
@@ -44,7 +56,7 @@ paths:
|
|
|
44
56
|
/graphql/{pathQueryId}/Favoriters:
|
|
45
57
|
get:
|
|
46
58
|
description: get tweet favoriters
|
|
47
|
-
operationId:
|
|
59
|
+
operationId: getFavoriters
|
|
48
60
|
parameters:
|
|
49
61
|
- in: path
|
|
50
62
|
name: pathQueryId
|
|
@@ -191,7 +203,9 @@ paths:
|
|
|
191
203
|
content:
|
|
192
204
|
application/json:
|
|
193
205
|
schema:
|
|
194
|
-
|
|
206
|
+
oneOf:
|
|
207
|
+
- $ref: '#/components/schemas/TweetFavoritersResponse'
|
|
208
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
195
209
|
description: Successful operation
|
|
196
210
|
headers:
|
|
197
211
|
x-connection-hash:
|
|
@@ -223,7 +237,7 @@ paths:
|
|
|
223
237
|
/graphql/{pathQueryId}/Retweeters:
|
|
224
238
|
get:
|
|
225
239
|
description: get tweet retweeters
|
|
226
|
-
operationId:
|
|
240
|
+
operationId: getRetweeters
|
|
227
241
|
parameters:
|
|
228
242
|
- in: path
|
|
229
243
|
name: pathQueryId
|
|
@@ -370,7 +384,9 @@ paths:
|
|
|
370
384
|
content:
|
|
371
385
|
application/json:
|
|
372
386
|
schema:
|
|
373
|
-
|
|
387
|
+
oneOf:
|
|
388
|
+
- $ref: '#/components/schemas/TweetRetweetersResponse'
|
|
389
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
374
390
|
description: Successful operation
|
|
375
391
|
headers:
|
|
376
392
|
x-connection-hash:
|
|
@@ -569,7 +585,9 @@ paths:
|
|
|
569
585
|
content:
|
|
570
586
|
application/json:
|
|
571
587
|
schema:
|
|
572
|
-
|
|
588
|
+
oneOf:
|
|
589
|
+
- $ref: '#/components/schemas/TweetDetailResponse'
|
|
590
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
573
591
|
description: Successful operation
|
|
574
592
|
headers:
|
|
575
593
|
x-connection-hash:
|
|
@@ -598,3 +616,182 @@ paths:
|
|
|
598
616
|
type: string
|
|
599
617
|
tags:
|
|
600
618
|
- tweet
|
|
619
|
+
/graphql/{pathQueryId}/TweetResultByRestId:
|
|
620
|
+
get:
|
|
621
|
+
description: get TweetResultByRestId
|
|
622
|
+
operationId: getTweetResultByRestId
|
|
623
|
+
parameters:
|
|
624
|
+
- in: path
|
|
625
|
+
name: pathQueryId
|
|
626
|
+
required: true
|
|
627
|
+
schema:
|
|
628
|
+
default: 0hWvDhmW8YQ-S_ib3azIrw
|
|
629
|
+
example: 0hWvDhmW8YQ-S_ib3azIrw
|
|
630
|
+
type: string
|
|
631
|
+
- content:
|
|
632
|
+
application/json:
|
|
633
|
+
schema:
|
|
634
|
+
properties:
|
|
635
|
+
includePromotedContent:
|
|
636
|
+
default: false
|
|
637
|
+
example: false
|
|
638
|
+
type: boolean
|
|
639
|
+
tweetId:
|
|
640
|
+
default: '1691730070669517096'
|
|
641
|
+
example: '1691730070669517096'
|
|
642
|
+
type: string
|
|
643
|
+
withCommunity:
|
|
644
|
+
default: false
|
|
645
|
+
example: false
|
|
646
|
+
type: boolean
|
|
647
|
+
withVoice:
|
|
648
|
+
default: false
|
|
649
|
+
example: false
|
|
650
|
+
type: boolean
|
|
651
|
+
required:
|
|
652
|
+
- tweetId
|
|
653
|
+
- withCommunity
|
|
654
|
+
- includePromotedContent
|
|
655
|
+
- withVoice
|
|
656
|
+
type: object
|
|
657
|
+
in: query
|
|
658
|
+
name: variables
|
|
659
|
+
required: true
|
|
660
|
+
- content:
|
|
661
|
+
application/json:
|
|
662
|
+
schema:
|
|
663
|
+
properties:
|
|
664
|
+
creator_subscriptions_tweet_preview_api_enabled:
|
|
665
|
+
default: true
|
|
666
|
+
example: true
|
|
667
|
+
type: boolean
|
|
668
|
+
freedom_of_speech_not_reach_fetch_enabled:
|
|
669
|
+
default: true
|
|
670
|
+
example: true
|
|
671
|
+
type: boolean
|
|
672
|
+
graphql_is_translatable_rweb_tweet_is_translatable_enabled:
|
|
673
|
+
default: true
|
|
674
|
+
example: true
|
|
675
|
+
type: boolean
|
|
676
|
+
longform_notetweets_consumption_enabled:
|
|
677
|
+
default: true
|
|
678
|
+
example: true
|
|
679
|
+
type: boolean
|
|
680
|
+
longform_notetweets_inline_media_enabled:
|
|
681
|
+
default: true
|
|
682
|
+
example: true
|
|
683
|
+
type: boolean
|
|
684
|
+
longform_notetweets_rich_text_read_enabled:
|
|
685
|
+
default: true
|
|
686
|
+
example: true
|
|
687
|
+
type: boolean
|
|
688
|
+
responsive_web_edit_tweet_api_enabled:
|
|
689
|
+
default: true
|
|
690
|
+
example: true
|
|
691
|
+
type: boolean
|
|
692
|
+
responsive_web_enhance_cards_enabled:
|
|
693
|
+
default: false
|
|
694
|
+
example: false
|
|
695
|
+
type: boolean
|
|
696
|
+
responsive_web_graphql_exclude_directive_enabled:
|
|
697
|
+
default: true
|
|
698
|
+
example: true
|
|
699
|
+
type: boolean
|
|
700
|
+
responsive_web_graphql_skip_user_profile_image_extensions_enabled:
|
|
701
|
+
default: false
|
|
702
|
+
example: false
|
|
703
|
+
type: boolean
|
|
704
|
+
responsive_web_graphql_timeline_navigation_enabled:
|
|
705
|
+
default: true
|
|
706
|
+
example: true
|
|
707
|
+
type: boolean
|
|
708
|
+
responsive_web_media_download_video_enabled:
|
|
709
|
+
default: false
|
|
710
|
+
example: false
|
|
711
|
+
type: boolean
|
|
712
|
+
responsive_web_twitter_article_tweet_consumption_enabled:
|
|
713
|
+
default: false
|
|
714
|
+
example: false
|
|
715
|
+
type: boolean
|
|
716
|
+
standardized_nudges_misinfo:
|
|
717
|
+
default: true
|
|
718
|
+
example: true
|
|
719
|
+
type: boolean
|
|
720
|
+
tweet_awards_web_tipping_enabled:
|
|
721
|
+
default: false
|
|
722
|
+
example: false
|
|
723
|
+
type: boolean
|
|
724
|
+
tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled:
|
|
725
|
+
default: true
|
|
726
|
+
example: true
|
|
727
|
+
type: boolean
|
|
728
|
+
tweetypie_unmention_optimization_enabled:
|
|
729
|
+
default: true
|
|
730
|
+
example: true
|
|
731
|
+
type: boolean
|
|
732
|
+
verified_phone_label_enabled:
|
|
733
|
+
default: false
|
|
734
|
+
example: false
|
|
735
|
+
type: boolean
|
|
736
|
+
view_counts_everywhere_api_enabled:
|
|
737
|
+
default: true
|
|
738
|
+
example: true
|
|
739
|
+
type: boolean
|
|
740
|
+
required:
|
|
741
|
+
- creator_subscriptions_tweet_preview_api_enabled
|
|
742
|
+
- tweetypie_unmention_optimization_enabled
|
|
743
|
+
- responsive_web_edit_tweet_api_enabled
|
|
744
|
+
- graphql_is_translatable_rweb_tweet_is_translatable_enabled
|
|
745
|
+
- view_counts_everywhere_api_enabled
|
|
746
|
+
- longform_notetweets_consumption_enabled
|
|
747
|
+
- responsive_web_twitter_article_tweet_consumption_enabled
|
|
748
|
+
- tweet_awards_web_tipping_enabled
|
|
749
|
+
- freedom_of_speech_not_reach_fetch_enabled
|
|
750
|
+
- standardized_nudges_misinfo
|
|
751
|
+
- tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled
|
|
752
|
+
- longform_notetweets_rich_text_read_enabled
|
|
753
|
+
- longform_notetweets_inline_media_enabled
|
|
754
|
+
- responsive_web_graphql_exclude_directive_enabled
|
|
755
|
+
- verified_phone_label_enabled
|
|
756
|
+
- responsive_web_media_download_video_enabled
|
|
757
|
+
- responsive_web_graphql_skip_user_profile_image_extensions_enabled
|
|
758
|
+
- responsive_web_graphql_timeline_navigation_enabled
|
|
759
|
+
- responsive_web_enhance_cards_enabled
|
|
760
|
+
type: object
|
|
761
|
+
in: query
|
|
762
|
+
name: features
|
|
763
|
+
required: true
|
|
764
|
+
responses:
|
|
765
|
+
'200':
|
|
766
|
+
content:
|
|
767
|
+
application/json:
|
|
768
|
+
schema:
|
|
769
|
+
oneOf:
|
|
770
|
+
- $ref: '#/components/schemas/TweetResultByRestIdResponse'
|
|
771
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
772
|
+
description: Successful operation
|
|
773
|
+
headers:
|
|
774
|
+
x-connection-hash:
|
|
775
|
+
schema:
|
|
776
|
+
type: string
|
|
777
|
+
x-rate-limit-limit:
|
|
778
|
+
schema:
|
|
779
|
+
type: integer
|
|
780
|
+
x-rate-limit-remaining:
|
|
781
|
+
schema:
|
|
782
|
+
type: integer
|
|
783
|
+
x-rate-limit-reset:
|
|
784
|
+
schema:
|
|
785
|
+
type: integer
|
|
786
|
+
x-response-time:
|
|
787
|
+
schema:
|
|
788
|
+
type: integer
|
|
789
|
+
x-tfe-preserve-body:
|
|
790
|
+
schema:
|
|
791
|
+
type: boolean
|
|
792
|
+
x-transaction-id:
|
|
793
|
+
schema:
|
|
794
|
+
type: string
|
|
795
|
+
x-twitter-response-tags:
|
|
796
|
+
schema:
|
|
797
|
+
type: string
|
|
@@ -111,7 +111,9 @@ paths:
|
|
|
111
111
|
content:
|
|
112
112
|
application/json:
|
|
113
113
|
schema:
|
|
114
|
-
|
|
114
|
+
oneOf:
|
|
115
|
+
- $ref: '#/components/schemas/UserResponse'
|
|
116
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
115
117
|
description: Successful operation
|
|
116
118
|
headers:
|
|
117
119
|
x-connection-hash:
|
|
@@ -210,7 +212,9 @@ paths:
|
|
|
210
212
|
content:
|
|
211
213
|
application/json:
|
|
212
214
|
schema:
|
|
213
|
-
|
|
215
|
+
oneOf:
|
|
216
|
+
- $ref: '#/components/schemas/UserResponse'
|
|
217
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
214
218
|
description: Successful operation
|
|
215
219
|
headers:
|
|
216
220
|
x-connection-hash:
|
|
@@ -301,7 +305,9 @@ paths:
|
|
|
301
305
|
content:
|
|
302
306
|
application/json:
|
|
303
307
|
schema:
|
|
304
|
-
|
|
308
|
+
oneOf:
|
|
309
|
+
- $ref: '#/components/schemas/UsersResponse'
|
|
310
|
+
- $ref: ./../schemas/error.yaml#/components/schemas/Errors
|
|
305
311
|
description: Successful operation
|
|
306
312
|
headers:
|
|
307
313
|
x-connection-hash:
|
|
@@ -329,4 +335,4 @@ paths:
|
|
|
329
335
|
schema:
|
|
330
336
|
type: string
|
|
331
337
|
tags:
|
|
332
|
-
-
|
|
338
|
+
- users
|