twitter-openapi-typescript-generated 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +34 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +3 -3
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +1 -1
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts +3 -3
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +1 -1
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +13 -13
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +6 -6
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +35 -21
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +99 -10
- 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 +2 -85
- 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 +53 -53
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts +32 -0
- package/dist/apis/UsersApi.d.ts.map +1 -0
- package/dist/apis/UsersApi.js +164 -0
- package/dist/apis/UsersApi.js.map +1 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.d.ts.map +1 -1
- package/dist/apis/index.js +1 -0
- package/dist/apis/index.js.map +1 -1
- package/dist/models/CursorType.d.ts +27 -0
- package/dist/models/CursorType.d.ts.map +1 -0
- package/dist/models/CursorType.js +40 -0
- package/dist/models/CursorType.js.map +1 -0
- package/dist/models/Entities.d.ts +12 -6
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/ErrorExtensions.d.ts +63 -0
- package/dist/models/ErrorExtensions.d.ts.map +1 -0
- package/dist/models/ErrorExtensions.js +67 -0
- package/dist/models/ErrorExtensions.js.map +1 -0
- package/dist/models/Errors.d.ts +32 -0
- package/dist/models/Errors.d.ts.map +1 -0
- package/dist/models/Errors.js +51 -0
- package/dist/models/Errors.js.map +1 -0
- package/dist/models/GetBookmarks200Response.d.ts +23 -0
- package/dist/models/GetBookmarks200Response.d.ts.map +1 -0
- package/dist/models/GetBookmarks200Response.js +57 -0
- package/dist/models/GetBookmarks200Response.js.map +1 -0
- package/dist/models/GetFavoriters200Response.d.ts +23 -0
- package/dist/models/GetFavoriters200Response.d.ts.map +1 -0
- package/dist/models/GetFavoriters200Response.js +57 -0
- package/dist/models/GetFavoriters200Response.js.map +1 -0
- package/dist/models/GetFollowers200Response.d.ts +23 -0
- package/dist/models/GetFollowers200Response.d.ts.map +1 -0
- package/dist/models/GetFollowers200Response.js +57 -0
- package/dist/models/GetFollowers200Response.js.map +1 -0
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +23 -0
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetHomeLatestTimeline200Response.js +57 -0
- package/dist/models/GetHomeLatestTimeline200Response.js.map +1 -0
- package/dist/models/GetLikes200Response.d.ts +23 -0
- package/dist/models/GetLikes200Response.d.ts.map +1 -0
- package/dist/models/GetLikes200Response.js +57 -0
- package/dist/models/GetLikes200Response.js.map +1 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +23 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.js +57 -0
- package/dist/models/GetListLatestTweetsTimeline200Response.js.map +1 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +23 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.js +57 -0
- package/dist/models/GetProfileSpotlightsQuery200Response.js.map +1 -0
- package/dist/models/GetRetweeters200Response.d.ts +23 -0
- package/dist/models/GetRetweeters200Response.d.ts.map +1 -0
- package/dist/models/GetRetweeters200Response.js +57 -0
- package/dist/models/GetRetweeters200Response.js.map +1 -0
- package/dist/models/GetSearchTimeline200Response.d.ts +23 -0
- package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -0
- package/dist/models/GetSearchTimeline200Response.js +57 -0
- package/dist/models/GetSearchTimeline200Response.js.map +1 -0
- package/dist/models/GetTweetDetail200Response.d.ts +23 -0
- package/dist/models/GetTweetDetail200Response.d.ts.map +1 -0
- package/dist/models/GetTweetDetail200Response.js +57 -0
- package/dist/models/GetTweetDetail200Response.js.map +1 -0
- package/dist/models/GetUserByRestId200Response.d.ts +23 -0
- package/dist/models/GetUserByRestId200Response.d.ts.map +1 -0
- package/dist/models/GetUserByRestId200Response.js +57 -0
- package/dist/models/GetUserByRestId200Response.js.map +1 -0
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +23 -0
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -0
- package/dist/models/GetUserHighlightsTweets200Response.js +57 -0
- package/dist/models/GetUserHighlightsTweets200Response.js.map +1 -0
- package/dist/models/GetUsersByRestIds200Response.d.ts +23 -0
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -0
- package/dist/models/GetUsersByRestIds200Response.js +57 -0
- package/dist/models/GetUsersByRestIds200Response.js.map +1 -0
- package/dist/models/ItemContentUnion.d.ts +5 -5
- 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 +8 -4
- 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/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/TweetTombstone.d.ts +1 -0
- package/dist/models/TweetTombstone.d.ts.map +1 -1
- package/dist/models/TweetTombstone.js +13 -6
- package/dist/models/TweetTombstone.js.map +1 -1
- package/dist/models/TypeName.d.ts +3 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +4 -1
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/User.d.ts +8 -4
- package/dist/models/User.d.ts.map +1 -1
- package/dist/models/UserHighlightsTweetsData.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsData.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsData.js +52 -0
- package/dist/models/UserHighlightsTweetsData.js.map +1 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsResponse.js +52 -0
- package/dist/models/UserHighlightsTweetsResponse.js.map +1 -0
- package/dist/models/UserHighlightsTweetsResult.d.ts +40 -0
- package/dist/models/UserHighlightsTweetsResult.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsResult.js +56 -0
- package/dist/models/UserHighlightsTweetsResult.js.map +1 -0
- package/dist/models/UserHighlightsTweetsTimeline.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsTimeline.js +52 -0
- package/dist/models/UserHighlightsTweetsTimeline.js.map +1 -0
- package/dist/models/UserHighlightsTweetsUser.d.ts +33 -0
- package/dist/models/UserHighlightsTweetsUser.d.ts.map +1 -0
- package/dist/models/UserHighlightsTweetsUser.js +52 -0
- package/dist/models/UserHighlightsTweetsUser.js.map +1 -0
- package/dist/models/UserLegacy.d.ts +9 -7
- package/dist/models/UserLegacy.d.ts.map +1 -1
- package/dist/models/UserLegacy.js +5 -10
- package/dist/models/UserLegacy.js.map +1 -1
- package/dist/models/UserResultByScreenNameResult.d.ts +4 -2
- package/dist/models/UserResultByScreenNameResult.d.ts.map +1 -1
- package/dist/models/UserResults.d.ts +3 -3
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +3 -3
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/UserUnavailable.d.ts +39 -0
- package/dist/models/UserUnavailable.d.ts.map +1 -0
- package/dist/models/UserUnavailable.js +55 -0
- package/dist/models/UserUnavailable.js.map +1 -0
- package/dist/models/UserUnion.d.ts +27 -0
- package/dist/models/UserUnion.d.ts.map +1 -0
- package/dist/models/UserUnion.js +65 -0
- package/dist/models/UserUnion.js.map +1 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +33 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +6 -6
- package/src/apis/OtherApi.ts +6 -6
- package/src/apis/PostApi.ts +36 -36
- package/src/apis/TweetApi.ts +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/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/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 +33 -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 +7 -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 +11 -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 +7 -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 +11 -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 +36 -1
- 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 +11 -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
package/src/apis/UserListApi.ts
CHANGED
|
@@ -15,45 +15,45 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
GetFavoriters200Response,
|
|
19
|
+
GetFollowers200Response,
|
|
20
|
+
GetRetweeters200Response,
|
|
21
21
|
} from '../models';
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
GetFavoriters200ResponseFromJSON,
|
|
24
|
+
GetFavoriters200ResponseToJSON,
|
|
25
|
+
GetFollowers200ResponseFromJSON,
|
|
26
|
+
GetFollowers200ResponseToJSON,
|
|
27
|
+
GetRetweeters200ResponseFromJSON,
|
|
28
|
+
GetRetweeters200ResponseToJSON,
|
|
29
29
|
} from '../models';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface GetFavoritersRequest {
|
|
32
32
|
pathQueryId: string;
|
|
33
33
|
variables: string;
|
|
34
34
|
features: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export interface
|
|
37
|
+
export interface GetFollowersRequest {
|
|
38
38
|
pathQueryId: string;
|
|
39
39
|
variables: string;
|
|
40
40
|
features: string;
|
|
41
|
-
fieldToggles: string;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
|
-
export interface
|
|
43
|
+
export interface GetFollowersYouKnowRequest {
|
|
45
44
|
pathQueryId: string;
|
|
46
45
|
variables: string;
|
|
47
46
|
features: string;
|
|
47
|
+
fieldToggles: string;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export interface
|
|
50
|
+
export interface GetFollowingRequest {
|
|
51
51
|
pathQueryId: string;
|
|
52
52
|
variables: string;
|
|
53
53
|
features: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export interface
|
|
56
|
+
export interface GetRetweetersRequest {
|
|
57
57
|
pathQueryId: string;
|
|
58
58
|
variables: string;
|
|
59
59
|
features: string;
|
|
@@ -65,19 +65,19 @@ export interface GetTweetRetweetersRequest {
|
|
|
65
65
|
export class UserListApi extends runtime.BaseAPI {
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* get
|
|
68
|
+
* get tweet favoriters
|
|
69
69
|
*/
|
|
70
|
-
async
|
|
70
|
+
async getFavoritersRaw(requestParameters: GetFavoritersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFavoriters200Response>> {
|
|
71
71
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
72
|
-
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling
|
|
72
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFavoriters.');
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
76
|
-
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling
|
|
76
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getFavoriters.');
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
80
|
-
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling
|
|
80
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFavoriters.');
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const queryParameters: any = {};
|
|
@@ -125,41 +125,37 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
const response = await this.request({
|
|
128
|
-
path: `/graphql/{pathQueryId}/
|
|
128
|
+
path: `/graphql/{pathQueryId}/Favoriters`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
129
129
|
method: 'GET',
|
|
130
130
|
headers: headerParameters,
|
|
131
131
|
query: queryParameters,
|
|
132
132
|
}, initOverrides);
|
|
133
133
|
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
134
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFavoriters200ResponseFromJSON(jsonValue));
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
|
-
* get
|
|
138
|
+
* get tweet favoriters
|
|
139
139
|
*/
|
|
140
|
-
async
|
|
141
|
-
const response = await this.
|
|
140
|
+
async getFavoriters(requestParameters: GetFavoritersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFavoriters200Response> {
|
|
141
|
+
const response = await this.getFavoritersRaw(requestParameters, initOverrides);
|
|
142
142
|
return await response.value();
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* get
|
|
146
|
+
* get user list of followers
|
|
147
147
|
*/
|
|
148
|
-
async
|
|
148
|
+
async getFollowersRaw(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFollowers200Response>> {
|
|
149
149
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
150
|
-
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling
|
|
150
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowers.');
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
154
|
-
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling
|
|
154
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getFollowers.');
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
158
|
-
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
162
|
-
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getFollowersYouKnow.');
|
|
158
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFollowers.');
|
|
163
159
|
}
|
|
164
160
|
|
|
165
161
|
const queryParameters: any = {};
|
|
@@ -172,10 +168,6 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
172
168
|
queryParameters['features'] = requestParameters.features;
|
|
173
169
|
}
|
|
174
170
|
|
|
175
|
-
if (requestParameters.fieldToggles !== undefined) {
|
|
176
|
-
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
171
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
180
172
|
|
|
181
173
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -211,37 +203,41 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
211
203
|
}
|
|
212
204
|
}
|
|
213
205
|
const response = await this.request({
|
|
214
|
-
path: `/graphql/{pathQueryId}/
|
|
206
|
+
path: `/graphql/{pathQueryId}/Followers`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
215
207
|
method: 'GET',
|
|
216
208
|
headers: headerParameters,
|
|
217
209
|
query: queryParameters,
|
|
218
210
|
}, initOverrides);
|
|
219
211
|
|
|
220
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFollowers200ResponseFromJSON(jsonValue));
|
|
221
213
|
}
|
|
222
214
|
|
|
223
215
|
/**
|
|
224
|
-
* get
|
|
216
|
+
* get user list of followers
|
|
225
217
|
*/
|
|
226
|
-
async
|
|
227
|
-
const response = await this.
|
|
218
|
+
async getFollowers(requestParameters: GetFollowersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFollowers200Response> {
|
|
219
|
+
const response = await this.getFollowersRaw(requestParameters, initOverrides);
|
|
228
220
|
return await response.value();
|
|
229
221
|
}
|
|
230
222
|
|
|
231
223
|
/**
|
|
232
|
-
* get
|
|
224
|
+
* get followers you know
|
|
233
225
|
*/
|
|
234
|
-
async
|
|
226
|
+
async getFollowersYouKnowRaw(requestParameters: GetFollowersYouKnowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFollowers200Response>> {
|
|
235
227
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
236
|
-
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling
|
|
228
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowersYouKnow.');
|
|
237
229
|
}
|
|
238
230
|
|
|
239
231
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
240
|
-
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling
|
|
232
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getFollowersYouKnow.');
|
|
241
233
|
}
|
|
242
234
|
|
|
243
235
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
244
|
-
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling
|
|
236
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFollowersYouKnow.');
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
240
|
+
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getFollowersYouKnow.');
|
|
245
241
|
}
|
|
246
242
|
|
|
247
243
|
const queryParameters: any = {};
|
|
@@ -254,6 +250,10 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
254
250
|
queryParameters['features'] = requestParameters.features;
|
|
255
251
|
}
|
|
256
252
|
|
|
253
|
+
if (requestParameters.fieldToggles !== undefined) {
|
|
254
|
+
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
257
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
258
258
|
|
|
259
259
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -289,37 +289,37 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
const response = await this.request({
|
|
292
|
-
path: `/graphql/{pathQueryId}/
|
|
292
|
+
path: `/graphql/{pathQueryId}/FollowersYouKnow`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
293
293
|
method: 'GET',
|
|
294
294
|
headers: headerParameters,
|
|
295
295
|
query: queryParameters,
|
|
296
296
|
}, initOverrides);
|
|
297
297
|
|
|
298
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
298
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFollowers200ResponseFromJSON(jsonValue));
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
/**
|
|
302
|
-
* get
|
|
302
|
+
* get followers you know
|
|
303
303
|
*/
|
|
304
|
-
async
|
|
305
|
-
const response = await this.
|
|
304
|
+
async getFollowersYouKnow(requestParameters: GetFollowersYouKnowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFollowers200Response> {
|
|
305
|
+
const response = await this.getFollowersYouKnowRaw(requestParameters, initOverrides);
|
|
306
306
|
return await response.value();
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
/**
|
|
310
|
-
* get
|
|
310
|
+
* get user list of following
|
|
311
311
|
*/
|
|
312
|
-
async
|
|
312
|
+
async getFollowingRaw(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetFollowers200Response>> {
|
|
313
313
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
314
|
-
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling
|
|
314
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getFollowing.');
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
318
|
-
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling
|
|
318
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getFollowing.');
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
322
|
-
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling
|
|
322
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getFollowing.');
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
const queryParameters: any = {};
|
|
@@ -367,37 +367,37 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
const response = await this.request({
|
|
370
|
-
path: `/graphql/{pathQueryId}/
|
|
370
|
+
path: `/graphql/{pathQueryId}/Following`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
371
371
|
method: 'GET',
|
|
372
372
|
headers: headerParameters,
|
|
373
373
|
query: queryParameters,
|
|
374
374
|
}, initOverrides);
|
|
375
375
|
|
|
376
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetFollowers200ResponseFromJSON(jsonValue));
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
|
-
* get
|
|
380
|
+
* get user list of following
|
|
381
381
|
*/
|
|
382
|
-
async
|
|
383
|
-
const response = await this.
|
|
382
|
+
async getFollowing(requestParameters: GetFollowingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetFollowers200Response> {
|
|
383
|
+
const response = await this.getFollowingRaw(requestParameters, initOverrides);
|
|
384
384
|
return await response.value();
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
388
|
* get tweet retweeters
|
|
389
389
|
*/
|
|
390
|
-
async
|
|
390
|
+
async getRetweetersRaw(requestParameters: GetRetweetersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRetweeters200Response>> {
|
|
391
391
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
392
|
-
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling
|
|
392
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getRetweeters.');
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
396
|
-
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling
|
|
396
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getRetweeters.');
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
400
|
-
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling
|
|
400
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getRetweeters.');
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
const queryParameters: any = {};
|
|
@@ -451,14 +451,14 @@ export class UserListApi extends runtime.BaseAPI {
|
|
|
451
451
|
query: queryParameters,
|
|
452
452
|
}, initOverrides);
|
|
453
453
|
|
|
454
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
454
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetRetweeters200ResponseFromJSON(jsonValue));
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* get tweet retweeters
|
|
459
459
|
*/
|
|
460
|
-
async
|
|
461
|
-
const response = await this.
|
|
460
|
+
async getRetweeters(requestParameters: GetRetweetersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRetweeters200Response> {
|
|
461
|
+
const response = await this.getRetweetersRaw(requestParameters, initOverrides);
|
|
462
462
|
return await response.value();
|
|
463
463
|
}
|
|
464
464
|
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
GetUsersByRestIds200Response,
|
|
19
|
+
} from '../models';
|
|
20
|
+
import {
|
|
21
|
+
GetUsersByRestIds200ResponseFromJSON,
|
|
22
|
+
GetUsersByRestIds200ResponseToJSON,
|
|
23
|
+
} from '../models';
|
|
24
|
+
|
|
25
|
+
export interface GetUsersByRestIdsRequest {
|
|
26
|
+
pathQueryId: string;
|
|
27
|
+
variables: string;
|
|
28
|
+
features: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class UsersApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* get users by rest ids
|
|
38
|
+
*/
|
|
39
|
+
async getUsersByRestIdsRaw(requestParameters: GetUsersByRestIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUsersByRestIds200Response>> {
|
|
40
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
41
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUsersByRestIds.');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
45
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUsersByRestIds.');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
49
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getUsersByRestIds.');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const queryParameters: any = {};
|
|
53
|
+
|
|
54
|
+
if (requestParameters.variables !== undefined) {
|
|
55
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (requestParameters.features !== undefined) {
|
|
59
|
+
queryParameters['features'] = requestParameters.features;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
63
|
+
|
|
64
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
65
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
77
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
81
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
85
|
+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = await token("BearerAuth", []);
|
|
91
|
+
|
|
92
|
+
if (tokenString) {
|
|
93
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
const response = await this.request({
|
|
97
|
+
path: `/graphql/{pathQueryId}/UsersByRestIds`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
98
|
+
method: 'GET',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
|
|
103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetUsersByRestIds200ResponseFromJSON(jsonValue));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* get users by rest ids
|
|
108
|
+
*/
|
|
109
|
+
async getUsersByRestIds(requestParameters: GetUsersByRestIdsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsersByRestIds200Response> {
|
|
110
|
+
const response = await this.getUsersByRestIdsRaw(requestParameters, initOverrides);
|
|
111
|
+
return await response.value();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const CursorType = {
|
|
21
|
+
Top: 'Top',
|
|
22
|
+
Bottom: 'Bottom',
|
|
23
|
+
ShowMore: 'ShowMore',
|
|
24
|
+
ShowMoreThreads: 'ShowMoreThreads',
|
|
25
|
+
Gap: 'Gap'
|
|
26
|
+
} as const;
|
|
27
|
+
export type CursorType = typeof CursorType[keyof typeof CursorType];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function CursorTypeFromJSON(json: any): CursorType {
|
|
31
|
+
return CursorTypeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function CursorTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CursorType {
|
|
35
|
+
return json as CursorType;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function CursorTypeToJSON(value?: CursorType | null): any {
|
|
39
|
+
return value as any;
|
|
40
|
+
}
|
|
41
|
+
|
package/src/models/Entities.ts
CHANGED
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
export interface Entities {
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {Array<
|
|
37
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
38
38
|
* @memberof Entities
|
|
39
39
|
*/
|
|
40
|
-
hashtags: Array<
|
|
40
|
+
hashtags: Array<{ [key: string]: any; }>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {Array<Media>}
|
|
@@ -46,10 +46,10 @@ export interface Entities {
|
|
|
46
46
|
media?: Array<Media>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {Array<
|
|
49
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
50
50
|
* @memberof Entities
|
|
51
51
|
*/
|
|
52
|
-
symbols: Array<
|
|
52
|
+
symbols: Array<{ [key: string]: any; }>;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {Array<Url>}
|
|
@@ -58,10 +58,10 @@ export interface Entities {
|
|
|
58
58
|
urls: Array<Url>;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
|
-
* @type {Array<
|
|
61
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
62
62
|
* @memberof Entities
|
|
63
63
|
*/
|
|
64
|
-
userMentions: Array<
|
|
64
|
+
userMentions: Array<{ [key: string]: any; }>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { Tracing } from './Tracing';
|
|
17
|
+
import {
|
|
18
|
+
TracingFromJSON,
|
|
19
|
+
TracingFromJSONTyped,
|
|
20
|
+
TracingToJSON,
|
|
21
|
+
} from './Tracing';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ErrorExtensions
|
|
27
|
+
*/
|
|
28
|
+
export interface ErrorExtensions {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ErrorExtensions
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ErrorExtensions
|
|
39
|
+
*/
|
|
40
|
+
kind: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ErrorExtensions
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof ErrorExtensions
|
|
51
|
+
*/
|
|
52
|
+
retryAfter: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ErrorExtensions
|
|
57
|
+
*/
|
|
58
|
+
source: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Tracing}
|
|
62
|
+
* @memberof ErrorExtensions
|
|
63
|
+
*/
|
|
64
|
+
tracing: Tracing;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ErrorExtensions interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfErrorExtensions(value: object): boolean {
|
|
71
|
+
let isInstance = true;
|
|
72
|
+
isInstance = isInstance && "code" in value;
|
|
73
|
+
isInstance = isInstance && "kind" in value;
|
|
74
|
+
isInstance = isInstance && "name" in value;
|
|
75
|
+
isInstance = isInstance && "retryAfter" in value;
|
|
76
|
+
isInstance = isInstance && "source" in value;
|
|
77
|
+
isInstance = isInstance && "tracing" in value;
|
|
78
|
+
|
|
79
|
+
return isInstance;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ErrorExtensionsFromJSON(json: any): ErrorExtensions {
|
|
83
|
+
return ErrorExtensionsFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ErrorExtensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorExtensions {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'code': json['code'],
|
|
93
|
+
'kind': json['kind'],
|
|
94
|
+
'name': json['name'],
|
|
95
|
+
'retryAfter': json['retry_after'],
|
|
96
|
+
'source': json['source'],
|
|
97
|
+
'tracing': TracingFromJSON(json['tracing']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ErrorExtensionsToJSON(value?: ErrorExtensions | null): any {
|
|
102
|
+
if (value === undefined) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
if (value === null) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'code': value.code,
|
|
111
|
+
'kind': value.kind,
|
|
112
|
+
'name': value.name,
|
|
113
|
+
'retry_after': value.retryAfter,
|
|
114
|
+
'source': value.source,
|
|
115
|
+
'tracing': TracingToJSON(value.tracing),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|