twitter-openapi-typescript-generated 0.0.1
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 +120 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +4 -0
- package/LICENSE.txt +661 -0
- package/README.md +45 -0
- package/dist/apis/DefaultApi.d.ts +31 -0
- package/dist/apis/DefaultApi.js +163 -0
- package/dist/apis/OtherApi.d.ts +26 -0
- package/dist/apis/OtherApi.js +145 -0
- package/dist/apis/PostApi.d.ts +84 -0
- package/dist/apis/PostApi.js +500 -0
- package/dist/apis/TweetApi.d.ts +135 -0
- package/dist/apis/TweetApi.js +827 -0
- package/dist/apis/UserApi.d.ts +31 -0
- package/dist/apis/UserApi.js +163 -0
- package/dist/apis/UserListApi.d.ts +44 -0
- package/dist/apis/UserListApi.js +246 -0
- package/dist/apis/V11GetApi.d.ts +60 -0
- package/dist/apis/V11GetApi.js +343 -0
- package/dist/apis/V11PostApi.d.ts +65 -0
- package/dist/apis/V11PostApi.js +399 -0
- package/dist/apis/V20GetApi.d.ts +64 -0
- package/dist/apis/V20GetApi.js +364 -0
- package/dist/apis/index.d.ts +9 -0
- package/dist/apis/index.js +27 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/BookmarksResponse.d.ts +32 -0
- package/dist/models/BookmarksResponse.js +51 -0
- package/dist/models/BookmarksResponseData.d.ts +32 -0
- package/dist/models/BookmarksResponseData.js +51 -0
- package/dist/models/BookmarksTimeline.d.ts +32 -0
- package/dist/models/BookmarksTimeline.js +51 -0
- package/dist/models/CommunitiesActions.d.ts +31 -0
- package/dist/models/CommunitiesActions.js +50 -0
- package/dist/models/ContentEntryType.d.ts +24 -0
- package/dist/models/ContentEntryType.js +37 -0
- package/dist/models/ContentItemType.d.ts +24 -0
- package/dist/models/ContentItemType.js +37 -0
- package/dist/models/ContentUnion.d.ts +29 -0
- package/dist/models/ContentUnion.js +69 -0
- package/dist/models/CreateRetweet.d.ts +32 -0
- package/dist/models/CreateRetweet.js +51 -0
- package/dist/models/CreateRetweetResponse.d.ts +32 -0
- package/dist/models/CreateRetweetResponse.js +51 -0
- package/dist/models/CreateRetweetResponseData.d.ts +32 -0
- package/dist/models/CreateRetweetResponseData.js +51 -0
- package/dist/models/CreateRetweetResponseResult.d.ts +32 -0
- package/dist/models/CreateRetweetResponseResult.js +51 -0
- package/dist/models/CreateTweet.d.ts +32 -0
- package/dist/models/CreateTweet.js +51 -0
- package/dist/models/CreateTweetResponse.d.ts +32 -0
- package/dist/models/CreateTweetResponse.js +51 -0
- package/dist/models/CreateTweetResponseData.d.ts +32 -0
- package/dist/models/CreateTweetResponseData.js +51 -0
- package/dist/models/CreateTweetResponseResult.d.ts +32 -0
- package/dist/models/CreateTweetResponseResult.js +51 -0
- package/dist/models/DeleteRetweetResponse.d.ts +32 -0
- package/dist/models/DeleteRetweetResponse.js +51 -0
- package/dist/models/DeleteRetweetResponseData.d.ts +32 -0
- package/dist/models/DeleteRetweetResponseData.js +51 -0
- package/dist/models/DeleteTweetResponse.d.ts +32 -0
- package/dist/models/DeleteTweetResponse.js +51 -0
- package/dist/models/DeleteTweetResponseData.d.ts +32 -0
- package/dist/models/DeleteTweetResponseData.js +51 -0
- package/dist/models/DeleteTweetResponseResult.d.ts +31 -0
- package/dist/models/DeleteTweetResponseResult.js +50 -0
- package/dist/models/Entities.d.ts +56 -0
- package/dist/models/Entities.js +63 -0
- package/dist/models/ExtendedEntities.d.ts +32 -0
- package/dist/models/ExtendedEntities.js +51 -0
- package/dist/models/FavoriteTweet.d.ts +31 -0
- package/dist/models/FavoriteTweet.js +50 -0
- package/dist/models/FavoriteTweetResponseData.d.ts +32 -0
- package/dist/models/FavoriteTweetResponseData.js +51 -0
- package/dist/models/FollowResponse.d.ts +32 -0
- package/dist/models/FollowResponse.js +51 -0
- package/dist/models/FollowResponseData.d.ts +32 -0
- package/dist/models/FollowResponseData.js +51 -0
- package/dist/models/FollowResponseResult.d.ts +39 -0
- package/dist/models/FollowResponseResult.js +55 -0
- package/dist/models/FollowResponseUser.d.ts +32 -0
- package/dist/models/FollowResponseUser.js +51 -0
- package/dist/models/FollowTimeline.d.ts +32 -0
- package/dist/models/FollowTimeline.js +51 -0
- package/dist/models/HomeTimelineHome.d.ts +32 -0
- package/dist/models/HomeTimelineHome.js +51 -0
- package/dist/models/HomeTimelineResponseData.d.ts +32 -0
- package/dist/models/HomeTimelineResponseData.js +51 -0
- package/dist/models/InstructionType.d.ts +25 -0
- package/dist/models/InstructionType.js +38 -0
- package/dist/models/InstructionUnion.d.ts +32 -0
- package/dist/models/InstructionUnion.js +74 -0
- package/dist/models/ItemContentUnion.d.ts +29 -0
- package/dist/models/ItemContentUnion.js +69 -0
- package/dist/models/ItemResult.d.ts +39 -0
- package/dist/models/ItemResult.js +55 -0
- package/dist/models/ListTweetsTimeline.d.ts +32 -0
- package/dist/models/ListTweetsTimeline.js +51 -0
- package/dist/models/ListTweetsTimelineData.d.ts +32 -0
- package/dist/models/ListTweetsTimelineData.js +51 -0
- package/dist/models/ListTweetsTimelineList.d.ts +32 -0
- package/dist/models/ListTweetsTimelineList.js +51 -0
- package/dist/models/ListTweetsTimelineResponse.d.ts +32 -0
- package/dist/models/ListTweetsTimelineResponse.js +51 -0
- package/dist/models/Media.d.ts +92 -0
- package/dist/models/Media.js +80 -0
- package/dist/models/MediaOriginalInfo.d.ts +43 -0
- package/dist/models/MediaOriginalInfo.js +54 -0
- package/dist/models/ModuleEntry.d.ts +38 -0
- package/dist/models/ModuleEntry.js +54 -0
- package/dist/models/ModuleItem.d.ts +38 -0
- package/dist/models/ModuleItem.js +54 -0
- package/dist/models/OneFactorLoginEligibility.d.ts +31 -0
- package/dist/models/OneFactorLoginEligibility.js +50 -0
- package/dist/models/OtherResponse.d.ts +32 -0
- package/dist/models/OtherResponse.js +51 -0
- package/dist/models/PostCreateRetweetRequest.d.ts +38 -0
- package/dist/models/PostCreateRetweetRequest.js +54 -0
- package/dist/models/PostCreateTweetRequest.d.ts +45 -0
- package/dist/models/PostCreateTweetRequest.js +58 -0
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +139 -0
- package/dist/models/PostCreateTweetRequestFeatures.js +104 -0
- package/dist/models/PostCreateTweetRequestVariables.d.ts +50 -0
- package/dist/models/PostCreateTweetRequestVariables.js +60 -0
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +37 -0
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +53 -0
- package/dist/models/PostDeleteRetweetRequest.d.ts +38 -0
- package/dist/models/PostDeleteRetweetRequest.js +54 -0
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +37 -0
- package/dist/models/PostDeleteRetweetRequestVariables.js +53 -0
- package/dist/models/PostDeleteTweetRequest.d.ts +38 -0
- package/dist/models/PostDeleteTweetRequest.js +54 -0
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +37 -0
- package/dist/models/PostDeleteTweetRequestVariables.js +53 -0
- package/dist/models/PostFavoriteTweetRequest.d.ts +38 -0
- package/dist/models/PostFavoriteTweetRequest.js +54 -0
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +38 -0
- package/dist/models/PostUnfavoriteTweetRequest.js +54 -0
- package/dist/models/ProfileResponse.d.ts +32 -0
- package/dist/models/ProfileResponse.js +51 -0
- package/dist/models/ProfileResponseData.d.ts +32 -0
- package/dist/models/ProfileResponseData.js +51 -0
- package/dist/models/Retweet.d.ts +38 -0
- package/dist/models/Retweet.js +54 -0
- package/dist/models/RetweetLegacy.d.ts +31 -0
- package/dist/models/RetweetLegacy.js +50 -0
- package/dist/models/Session.d.ts +112 -0
- package/dist/models/Session.js +92 -0
- package/dist/models/SocialContext.d.ts +43 -0
- package/dist/models/SocialContext.js +54 -0
- package/dist/models/Timeline.d.ts +44 -0
- package/dist/models/Timeline.js +56 -0
- package/dist/models/TimelineAddEntries.d.ts +39 -0
- package/dist/models/TimelineAddEntries.js +55 -0
- package/dist/models/TimelineAddEntry.d.ts +44 -0
- package/dist/models/TimelineAddEntry.js +57 -0
- package/dist/models/TimelineClearCache.d.ts +32 -0
- package/dist/models/TimelineClearCache.js +51 -0
- package/dist/models/TimelinePinEntry.d.ts +39 -0
- package/dist/models/TimelinePinEntry.js +55 -0
- package/dist/models/TimelineResponse.d.ts +32 -0
- package/dist/models/TimelineResponse.js +51 -0
- package/dist/models/TimelineTerminateTimeline.d.ts +46 -0
- package/dist/models/TimelineTerminateTimeline.js +61 -0
- package/dist/models/TimelineTimelineCursor.d.ts +68 -0
- package/dist/models/TimelineTimelineCursor.js +73 -0
- package/dist/models/TimelineTimelineItem.d.ts +58 -0
- package/dist/models/TimelineTimelineItem.js +64 -0
- package/dist/models/TimelineTimelineModule.d.ts +70 -0
- package/dist/models/TimelineTimelineModule.js +69 -0
- package/dist/models/TimelineTweet.d.ts +65 -0
- package/dist/models/TimelineTweet.js +68 -0
- package/dist/models/TimelineUser.d.ts +59 -0
- package/dist/models/TimelineUser.js +66 -0
- package/dist/models/TimelineV2.d.ts +32 -0
- package/dist/models/TimelineV2.js +51 -0
- package/dist/models/Tweet.d.ts +92 -0
- package/dist/models/Tweet.js +82 -0
- package/dist/models/TweetDetailResponse.d.ts +32 -0
- package/dist/models/TweetDetailResponse.js +51 -0
- package/dist/models/TweetDetailResponseData.d.ts +32 -0
- package/dist/models/TweetDetailResponseData.js +51 -0
- package/dist/models/TweetEditControl.d.ts +49 -0
- package/dist/models/TweetEditControl.js +56 -0
- package/dist/models/TweetEditPrespective.d.ts +37 -0
- package/dist/models/TweetEditPrespective.js +52 -0
- package/dist/models/TweetLegacy.d.ts +154 -0
- package/dist/models/TweetLegacy.js +110 -0
- package/dist/models/TweetTombstone.d.ts +32 -0
- package/dist/models/TweetTombstone.js +51 -0
- package/dist/models/TweetUnion.d.ts +29 -0
- package/dist/models/TweetUnion.js +69 -0
- package/dist/models/TweetViews.d.ts +37 -0
- package/dist/models/TweetViews.js +52 -0
- package/dist/models/TweetWithVisibilityResults.d.ts +39 -0
- package/dist/models/TweetWithVisibilityResults.js +55 -0
- package/dist/models/TypeName.d.ts +30 -0
- package/dist/models/TypeName.js +43 -0
- package/dist/models/UnfavoriteTweet.d.ts +31 -0
- package/dist/models/UnfavoriteTweet.js +50 -0
- package/dist/models/UnfavoriteTweetResponseData.d.ts +32 -0
- package/dist/models/UnfavoriteTweetResponseData.js +51 -0
- package/dist/models/User.d.ts +99 -0
- package/dist/models/User.js +83 -0
- package/dist/models/UserFeatures.d.ts +31 -0
- package/dist/models/UserFeatures.js +50 -0
- package/dist/models/UserLegacy.d.ts +259 -0
- package/dist/models/UserLegacy.js +161 -0
- package/dist/models/UserResponse.d.ts +32 -0
- package/dist/models/UserResponse.js +51 -0
- package/dist/models/UserResponseData.d.ts +32 -0
- package/dist/models/UserResponseData.js +51 -0
- package/dist/models/UserResultByScreenName.d.ts +38 -0
- package/dist/models/UserResultByScreenName.js +54 -0
- package/dist/models/UserResultByScreenNameLegacy.d.ts +67 -0
- package/dist/models/UserResultByScreenNameLegacy.js +62 -0
- package/dist/models/UserResultByScreenNameResult.d.ts +57 -0
- package/dist/models/UserResultByScreenNameResult.js +64 -0
- package/dist/models/UserResultCore.d.ts +32 -0
- package/dist/models/UserResultCore.js +51 -0
- package/dist/models/UserResults.d.ts +32 -0
- package/dist/models/UserResults.js +51 -0
- package/dist/models/UserTweetsData.d.ts +32 -0
- package/dist/models/UserTweetsData.js +51 -0
- package/dist/models/UserTweetsResponse.d.ts +32 -0
- package/dist/models/UserTweetsResponse.js +51 -0
- package/dist/models/UserTweetsResult.d.ts +39 -0
- package/dist/models/UserTweetsResult.js +55 -0
- package/dist/models/UserTweetsUser.d.ts +32 -0
- package/dist/models/UserTweetsUser.js +51 -0
- package/dist/models/index.d.ts +102 -0
- package/dist/models/index.js +120 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +555 -0
- package/package.json +26 -0
- package/src/apis/DefaultApi.ts +114 -0
- package/src/apis/OtherApi.ts +84 -0
- package/src/apis/PostApi.ts +453 -0
- package/src/apis/TweetApi.ts +798 -0
- package/src/apis/UserApi.ts +114 -0
- package/src/apis/UserListApi.ts +198 -0
- package/src/apis/V11GetApi.ts +342 -0
- package/src/apis/V11PostApi.ts +417 -0
- package/src/apis/V20GetApi.ts +412 -0
- package/src/apis/index.ts +11 -0
- package/src/index.ts +5 -0
- package/src/models/BookmarksResponse.ts +73 -0
- package/src/models/BookmarksResponseData.ts +73 -0
- package/src/models/BookmarksTimeline.ts +73 -0
- package/src/models/CommunitiesActions.ts +66 -0
- package/src/models/ContentEntryType.ts +39 -0
- package/src/models/ContentItemType.ts +39 -0
- package/src/models/ContentUnion.ts +83 -0
- package/src/models/CreateRetweet.ts +73 -0
- package/src/models/CreateRetweetResponse.ts +73 -0
- package/src/models/CreateRetweetResponseData.ts +73 -0
- package/src/models/CreateRetweetResponseResult.ts +73 -0
- package/src/models/CreateTweet.ts +73 -0
- package/src/models/CreateTweetResponse.ts +73 -0
- package/src/models/CreateTweetResponseData.ts +73 -0
- package/src/models/CreateTweetResponseResult.ts +73 -0
- package/src/models/DeleteRetweetResponse.ts +73 -0
- package/src/models/DeleteRetweetResponseData.ts +72 -0
- package/src/models/DeleteTweetResponse.ts +73 -0
- package/src/models/DeleteTweetResponseData.ts +72 -0
- package/src/models/DeleteTweetResponseResult.ts +66 -0
- package/src/models/Entities.ts +108 -0
- package/src/models/ExtendedEntities.ts +73 -0
- package/src/models/FavoriteTweet.ts +66 -0
- package/src/models/FavoriteTweetResponseData.ts +73 -0
- package/src/models/FollowResponse.ts +73 -0
- package/src/models/FollowResponseData.ts +73 -0
- package/src/models/FollowResponseResult.ts +88 -0
- package/src/models/FollowResponseUser.ts +73 -0
- package/src/models/FollowTimeline.ts +73 -0
- package/src/models/HomeTimelineHome.ts +73 -0
- package/src/models/HomeTimelineResponseData.ts +73 -0
- package/src/models/InstructionType.ts +40 -0
- package/src/models/InstructionUnion.ts +94 -0
- package/src/models/ItemContentUnion.ts +83 -0
- package/src/models/ItemResult.ts +87 -0
- package/src/models/ListTweetsTimeline.ts +73 -0
- package/src/models/ListTweetsTimelineData.ts +73 -0
- package/src/models/ListTweetsTimelineList.ts +73 -0
- package/src/models/ListTweetsTimelineResponse.ts +73 -0
- package/src/models/Media.ts +161 -0
- package/src/models/MediaOriginalInfo.ts +81 -0
- package/src/models/ModuleEntry.ts +82 -0
- package/src/models/ModuleItem.ts +82 -0
- package/src/models/OneFactorLoginEligibility.ts +66 -0
- package/src/models/OtherResponse.ts +72 -0
- package/src/models/PostCreateRetweetRequest.ts +82 -0
- package/src/models/PostCreateTweetRequest.ts +97 -0
- package/src/models/PostCreateTweetRequestFeatures.ts +228 -0
- package/src/models/PostCreateTweetRequestVariables.ts +100 -0
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +75 -0
- package/src/models/PostDeleteRetweetRequest.ts +82 -0
- package/src/models/PostDeleteRetweetRequestVariables.ts +75 -0
- package/src/models/PostDeleteTweetRequest.ts +82 -0
- package/src/models/PostDeleteTweetRequestVariables.ts +75 -0
- package/src/models/PostFavoriteTweetRequest.ts +82 -0
- package/src/models/PostUnfavoriteTweetRequest.ts +82 -0
- package/src/models/ProfileResponse.ts +73 -0
- package/src/models/ProfileResponseData.ts +73 -0
- package/src/models/Retweet.ts +82 -0
- package/src/models/RetweetLegacy.ts +66 -0
- package/src/models/Session.ts +201 -0
- package/src/models/SocialContext.ts +81 -0
- package/src/models/Timeline.ts +89 -0
- package/src/models/TimelineAddEntries.ts +88 -0
- package/src/models/TimelineAddEntry.ts +91 -0
- package/src/models/TimelineClearCache.ts +73 -0
- package/src/models/TimelinePinEntry.ts +88 -0
- package/src/models/TimelineResponse.ts +73 -0
- package/src/models/TimelineTerminateTimeline.ts +93 -0
- package/src/models/TimelineTimelineCursor.ts +127 -0
- package/src/models/TimelineTimelineItem.ts +119 -0
- package/src/models/TimelineTimelineModule.ts +136 -0
- package/src/models/TimelineTweet.ts +134 -0
- package/src/models/TimelineUser.ts +126 -0
- package/src/models/TimelineV2.ts +73 -0
- package/src/models/Tweet.ts +187 -0
- package/src/models/TweetDetailResponse.ts +73 -0
- package/src/models/TweetDetailResponseData.ts +73 -0
- package/src/models/TweetEditControl.ts +89 -0
- package/src/models/TweetEditPrespective.ts +73 -0
- package/src/models/TweetLegacy.ts +261 -0
- package/src/models/TweetTombstone.ts +72 -0
- package/src/models/TweetUnion.ts +83 -0
- package/src/models/TweetViews.ts +73 -0
- package/src/models/TweetWithVisibilityResults.ts +88 -0
- package/src/models/TypeName.ts +45 -0
- package/src/models/UnfavoriteTweet.ts +66 -0
- package/src/models/UnfavoriteTweetResponseData.ts +73 -0
- package/src/models/User.ts +175 -0
- package/src/models/UserFeatures.ts +66 -0
- package/src/models/UserLegacy.ts +404 -0
- package/src/models/UserResponse.ts +73 -0
- package/src/models/UserResponseData.ts +73 -0
- package/src/models/UserResultByScreenName.ts +82 -0
- package/src/models/UserResultByScreenNameLegacy.ts +113 -0
- package/src/models/UserResultByScreenNameResult.ts +115 -0
- package/src/models/UserResultCore.ts +73 -0
- package/src/models/UserResults.ts +73 -0
- package/src/models/UserTweetsData.ts +73 -0
- package/src/models/UserTweetsResponse.ts +73 -0
- package/src/models/UserTweetsResult.ts +88 -0
- package/src/models/UserTweetsUser.ts +73 -0
- package/src/models/index.ts +104 -0
- package/src/runtime.ts +425 -0
- package/tsconfig.json +20 -0
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
## twitter-openapi-typescript-generated@0.0.1
|
|
2
|
+
|
|
3
|
+
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
|
+
|
|
5
|
+
Environment
|
|
6
|
+
* Node.js
|
|
7
|
+
* Webpack
|
|
8
|
+
* Browserify
|
|
9
|
+
|
|
10
|
+
Language level
|
|
11
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
+
* ES6
|
|
13
|
+
|
|
14
|
+
Module system
|
|
15
|
+
* CommonJS
|
|
16
|
+
* ES6 module system
|
|
17
|
+
|
|
18
|
+
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
|
|
19
|
+
|
|
20
|
+
### Building
|
|
21
|
+
|
|
22
|
+
To build and compile the typescript sources to javascript use:
|
|
23
|
+
```
|
|
24
|
+
npm install
|
|
25
|
+
npm run build
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Publishing
|
|
29
|
+
|
|
30
|
+
First build the package then run ```npm publish```
|
|
31
|
+
|
|
32
|
+
### Consuming
|
|
33
|
+
|
|
34
|
+
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
+
|
|
36
|
+
_published:_
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm install twitter-openapi-typescript-generated@0.0.1 --save
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
_unPublished (not recommended):_
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Twitter OpenAPI
|
|
3
|
+
* Twitter OpenAPI(Swagger) specification
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1
|
|
6
|
+
* Contact: yuki@yuki0311.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ProfileResponse } from '../models';
|
|
14
|
+
export interface GetProfileSpotlightsQueryRequest {
|
|
15
|
+
queryId: string;
|
|
16
|
+
variables: string;
|
|
17
|
+
features: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare class DefaultApi extends runtime.BaseAPI {
|
|
23
|
+
/**
|
|
24
|
+
* get user by screen name
|
|
25
|
+
*/
|
|
26
|
+
getProfileSpotlightsQueryRaw(requestParameters: GetProfileSpotlightsQueryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProfileResponse>>;
|
|
27
|
+
/**
|
|
28
|
+
* get user by screen name
|
|
29
|
+
*/
|
|
30
|
+
getProfileSpotlightsQuery(requestParameters: GetProfileSpotlightsQueryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProfileResponse>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Twitter OpenAPI
|
|
6
|
+
* Twitter OpenAPI(Swagger) specification
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: yuki@yuki0311.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DefaultApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var models_1 = require("../models");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DefaultApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DefaultApi, _super);
|
|
75
|
+
function DefaultApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* get user by screen name
|
|
80
|
+
*/
|
|
81
|
+
DefaultApi.prototype.getProfileSpotlightsQueryRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
88
|
+
throw new runtime.RequiredError('queryId', 'Required parameter requestParameters.queryId was null or undefined when calling getProfileSpotlightsQuery.');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
91
|
+
throw new runtime.RequiredError('variables', 'Required parameter requestParameters.variables was null or undefined when calling getProfileSpotlightsQuery.');
|
|
92
|
+
}
|
|
93
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
94
|
+
throw new runtime.RequiredError('features', 'Required parameter requestParameters.features was null or undefined when calling getProfileSpotlightsQuery.');
|
|
95
|
+
}
|
|
96
|
+
queryParameters = {};
|
|
97
|
+
if (requestParameters.queryId !== undefined) {
|
|
98
|
+
queryParameters['queryId'] = requestParameters.queryId;
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters.variables !== undefined) {
|
|
101
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
102
|
+
}
|
|
103
|
+
if (requestParameters.features !== undefined) {
|
|
104
|
+
queryParameters['features'] = requestParameters.features;
|
|
105
|
+
}
|
|
106
|
+
headerParameters = {};
|
|
107
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
108
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
109
|
+
}
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
112
|
+
}
|
|
113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
114
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
115
|
+
}
|
|
116
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
117
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
118
|
+
}
|
|
119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
121
|
+
}
|
|
122
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
123
|
+
token = this.configuration.accessToken;
|
|
124
|
+
return [4 /*yield*/, token("BearerAuth", [])];
|
|
125
|
+
case 1:
|
|
126
|
+
tokenString = _a.sent();
|
|
127
|
+
if (tokenString) {
|
|
128
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
129
|
+
}
|
|
130
|
+
_a.label = 2;
|
|
131
|
+
case 2: return [4 /*yield*/, this.request({
|
|
132
|
+
path: "/graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery",
|
|
133
|
+
method: 'GET',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
}, initOverrides)];
|
|
137
|
+
case 3:
|
|
138
|
+
response = _a.sent();
|
|
139
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.ProfileResponseFromJSON)(jsonValue); })];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* get user by screen name
|
|
146
|
+
*/
|
|
147
|
+
DefaultApi.prototype.getProfileSpotlightsQuery = function (requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
149
|
+
var response;
|
|
150
|
+
return __generator(this, function (_a) {
|
|
151
|
+
switch (_a.label) {
|
|
152
|
+
case 0: return [4 /*yield*/, this.getProfileSpotlightsQueryRaw(requestParameters, initOverrides)];
|
|
153
|
+
case 1:
|
|
154
|
+
response = _a.sent();
|
|
155
|
+
return [4 /*yield*/, response.value()];
|
|
156
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
return DefaultApi;
|
|
162
|
+
}(runtime.BaseAPI));
|
|
163
|
+
exports.DefaultApi = DefaultApi;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Twitter OpenAPI
|
|
3
|
+
* Twitter OpenAPI(Swagger) specification
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1
|
|
6
|
+
* Contact: yuki@yuki0311.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { OtherResponse } from '../models';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class OtherApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
* This is not an actual endpoint
|
|
20
|
+
*/
|
|
21
|
+
otherRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OtherResponse>>;
|
|
22
|
+
/**
|
|
23
|
+
* This is not an actual endpoint
|
|
24
|
+
*/
|
|
25
|
+
other(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OtherResponse>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Twitter OpenAPI
|
|
6
|
+
* Twitter OpenAPI(Swagger) specification
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: yuki@yuki0311.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.OtherApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var models_1 = require("../models");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var OtherApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(OtherApi, _super);
|
|
75
|
+
function OtherApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* This is not an actual endpoint
|
|
80
|
+
*/
|
|
81
|
+
OtherApi.prototype.otherRaw = function (initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
90
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
91
|
+
}
|
|
92
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
93
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
94
|
+
}
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
97
|
+
}
|
|
98
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
100
|
+
}
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
103
|
+
}
|
|
104
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
105
|
+
token = this.configuration.accessToken;
|
|
106
|
+
return [4 /*yield*/, token("BearerAuth", [])];
|
|
107
|
+
case 1:
|
|
108
|
+
tokenString = _a.sent();
|
|
109
|
+
if (tokenString) {
|
|
110
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
111
|
+
}
|
|
112
|
+
_a.label = 2;
|
|
113
|
+
case 2: return [4 /*yield*/, this.request({
|
|
114
|
+
path: "/other",
|
|
115
|
+
method: 'GET',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
}, initOverrides)];
|
|
119
|
+
case 3:
|
|
120
|
+
response = _a.sent();
|
|
121
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OtherResponseFromJSON)(jsonValue); })];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* This is not an actual endpoint
|
|
128
|
+
*/
|
|
129
|
+
OtherApi.prototype.other = function (initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
+
var response;
|
|
132
|
+
return __generator(this, function (_a) {
|
|
133
|
+
switch (_a.label) {
|
|
134
|
+
case 0: return [4 /*yield*/, this.otherRaw(initOverrides)];
|
|
135
|
+
case 1:
|
|
136
|
+
response = _a.sent();
|
|
137
|
+
return [4 /*yield*/, response.value()];
|
|
138
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
return OtherApi;
|
|
144
|
+
}(runtime.BaseAPI));
|
|
145
|
+
exports.OtherApi = OtherApi;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Twitter OpenAPI
|
|
3
|
+
* Twitter OpenAPI(Swagger) specification
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1
|
|
6
|
+
* Contact: yuki@yuki0311.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateRetweetResponse, CreateTweetResponse, DeleteRetweetResponse, DeleteTweetResponse, FavoriteTweetResponseData, PostCreateRetweetRequest, PostCreateTweetRequest, PostDeleteRetweetRequest, PostDeleteTweetRequest, PostFavoriteTweetRequest, PostUnfavoriteTweetRequest, UnfavoriteTweetResponseData } from '../models';
|
|
14
|
+
export interface PostCreateRetweetOperationRequest {
|
|
15
|
+
postCreateRetweetRequest: PostCreateRetweetRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface PostCreateTweetOperationRequest {
|
|
18
|
+
postCreateTweetRequest: PostCreateTweetRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface PostDeleteRetweetOperationRequest {
|
|
21
|
+
postDeleteRetweetRequest: PostDeleteRetweetRequest;
|
|
22
|
+
}
|
|
23
|
+
export interface PostDeleteTweetOperationRequest {
|
|
24
|
+
postDeleteTweetRequest: PostDeleteTweetRequest;
|
|
25
|
+
}
|
|
26
|
+
export interface PostFavoriteTweetOperationRequest {
|
|
27
|
+
postFavoriteTweetRequest: PostFavoriteTweetRequest;
|
|
28
|
+
}
|
|
29
|
+
export interface PostUnfavoriteTweetOperationRequest {
|
|
30
|
+
postUnfavoriteTweetRequest: PostUnfavoriteTweetRequest;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class PostApi extends runtime.BaseAPI {
|
|
36
|
+
/**
|
|
37
|
+
* create Retweet
|
|
38
|
+
*/
|
|
39
|
+
postCreateRetweetRaw(requestParameters: PostCreateRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateRetweetResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* create Retweet
|
|
42
|
+
*/
|
|
43
|
+
postCreateRetweet(requestParameters: PostCreateRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateRetweetResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* create Tweet
|
|
46
|
+
*/
|
|
47
|
+
postCreateTweetRaw(requestParameters: PostCreateTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTweetResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* create Tweet
|
|
50
|
+
*/
|
|
51
|
+
postCreateTweet(requestParameters: PostCreateTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateTweetResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* delete Retweet
|
|
54
|
+
*/
|
|
55
|
+
postDeleteRetweetRaw(requestParameters: PostDeleteRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteRetweetResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* delete Retweet
|
|
58
|
+
*/
|
|
59
|
+
postDeleteRetweet(requestParameters: PostDeleteRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteRetweetResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* delete Retweet
|
|
62
|
+
*/
|
|
63
|
+
postDeleteTweetRaw(requestParameters: PostDeleteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteTweetResponse>>;
|
|
64
|
+
/**
|
|
65
|
+
* delete Retweet
|
|
66
|
+
*/
|
|
67
|
+
postDeleteTweet(requestParameters: PostDeleteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteTweetResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* favorite Tweet
|
|
70
|
+
*/
|
|
71
|
+
postFavoriteTweetRaw(requestParameters: PostFavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FavoriteTweetResponseData>>;
|
|
72
|
+
/**
|
|
73
|
+
* favorite Tweet
|
|
74
|
+
*/
|
|
75
|
+
postFavoriteTweet(requestParameters: PostFavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FavoriteTweetResponseData>;
|
|
76
|
+
/**
|
|
77
|
+
* unfavorite Tweet
|
|
78
|
+
*/
|
|
79
|
+
postUnfavoriteTweetRaw(requestParameters: PostUnfavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UnfavoriteTweetResponseData>>;
|
|
80
|
+
/**
|
|
81
|
+
* unfavorite Tweet
|
|
82
|
+
*/
|
|
83
|
+
postUnfavoriteTweet(requestParameters: PostUnfavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UnfavoriteTweetResponseData>;
|
|
84
|
+
}
|