twitter-openapi-typescript-generated 0.0.2 → 0.0.4
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 +0 -1
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +2 -1
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +4 -0
- package/src/apis/OtherApi.ts +4 -0
- package/src/apis/PostApi.ts +24 -0
- package/src/apis/TweetApi.ts +36 -0
- package/src/apis/UserApi.ts +4 -0
- package/src/apis/UserListApi.ts +8 -0
- package/src/apis/V11GetApi.ts +8 -0
- package/src/apis/V11PostApi.ts +8 -0
- package/src/apis/V20GetApi.ts +4 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +13 -0
- package/tsconfig.json +22 -20
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +8 -1
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/dist/apis/DefaultApi.d.ts +0 -31
- package/dist/apis/DefaultApi.js +0 -163
- package/dist/apis/OtherApi.d.ts +0 -26
- package/dist/apis/OtherApi.js +0 -145
- package/dist/apis/PostApi.d.ts +0 -84
- package/dist/apis/PostApi.js +0 -500
- package/dist/apis/TweetApi.d.ts +0 -135
- package/dist/apis/TweetApi.js +0 -827
- package/dist/apis/UserApi.d.ts +0 -31
- package/dist/apis/UserApi.js +0 -163
- package/dist/apis/UserListApi.d.ts +0 -44
- package/dist/apis/UserListApi.js +0 -246
- package/dist/apis/V11GetApi.d.ts +0 -60
- package/dist/apis/V11GetApi.js +0 -343
- package/dist/apis/V11PostApi.d.ts +0 -65
- package/dist/apis/V11PostApi.js +0 -399
- package/dist/apis/V20GetApi.d.ts +0 -64
- package/dist/apis/V20GetApi.js +0 -364
- package/dist/apis/index.d.ts +0 -9
- package/dist/apis/index.js +0 -27
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -21
- package/dist/models/BookmarksResponse.d.ts +0 -32
- package/dist/models/BookmarksResponse.js +0 -51
- package/dist/models/BookmarksResponseData.d.ts +0 -32
- package/dist/models/BookmarksResponseData.js +0 -51
- package/dist/models/BookmarksTimeline.d.ts +0 -32
- package/dist/models/BookmarksTimeline.js +0 -51
- package/dist/models/CommunitiesActions.d.ts +0 -31
- package/dist/models/CommunitiesActions.js +0 -50
- package/dist/models/ContentEntryType.d.ts +0 -24
- package/dist/models/ContentEntryType.js +0 -37
- package/dist/models/ContentItemType.d.ts +0 -24
- package/dist/models/ContentItemType.js +0 -37
- package/dist/models/ContentUnion.d.ts +0 -29
- package/dist/models/ContentUnion.js +0 -69
- package/dist/models/CreateRetweet.d.ts +0 -32
- package/dist/models/CreateRetweet.js +0 -51
- package/dist/models/CreateRetweetResponse.d.ts +0 -32
- package/dist/models/CreateRetweetResponse.js +0 -51
- package/dist/models/CreateRetweetResponseData.d.ts +0 -32
- package/dist/models/CreateRetweetResponseData.js +0 -51
- package/dist/models/CreateRetweetResponseResult.d.ts +0 -32
- package/dist/models/CreateRetweetResponseResult.js +0 -51
- package/dist/models/CreateTweet.d.ts +0 -32
- package/dist/models/CreateTweet.js +0 -51
- package/dist/models/CreateTweetResponse.d.ts +0 -32
- package/dist/models/CreateTweetResponse.js +0 -51
- package/dist/models/CreateTweetResponseData.d.ts +0 -32
- package/dist/models/CreateTweetResponseData.js +0 -51
- package/dist/models/CreateTweetResponseResult.d.ts +0 -32
- package/dist/models/CreateTweetResponseResult.js +0 -51
- package/dist/models/DeleteRetweetResponse.d.ts +0 -32
- package/dist/models/DeleteRetweetResponse.js +0 -51
- package/dist/models/DeleteRetweetResponseData.d.ts +0 -32
- package/dist/models/DeleteRetweetResponseData.js +0 -51
- package/dist/models/DeleteTweetResponse.d.ts +0 -32
- package/dist/models/DeleteTweetResponse.js +0 -51
- package/dist/models/DeleteTweetResponseData.d.ts +0 -32
- package/dist/models/DeleteTweetResponseData.js +0 -51
- package/dist/models/DeleteTweetResponseResult.d.ts +0 -31
- package/dist/models/DeleteTweetResponseResult.js +0 -50
- package/dist/models/Entities.d.ts +0 -56
- package/dist/models/Entities.js +0 -63
- package/dist/models/ExtendedEntities.d.ts +0 -32
- package/dist/models/ExtendedEntities.js +0 -51
- package/dist/models/FavoriteTweet.d.ts +0 -31
- package/dist/models/FavoriteTweet.js +0 -50
- package/dist/models/FavoriteTweetResponseData.d.ts +0 -32
- package/dist/models/FavoriteTweetResponseData.js +0 -51
- package/dist/models/FollowResponse.d.ts +0 -32
- package/dist/models/FollowResponse.js +0 -51
- package/dist/models/FollowResponseData.d.ts +0 -32
- package/dist/models/FollowResponseData.js +0 -51
- package/dist/models/FollowResponseResult.d.ts +0 -39
- package/dist/models/FollowResponseResult.js +0 -55
- package/dist/models/FollowResponseUser.d.ts +0 -32
- package/dist/models/FollowResponseUser.js +0 -51
- package/dist/models/FollowTimeline.d.ts +0 -32
- package/dist/models/FollowTimeline.js +0 -51
- package/dist/models/HomeTimelineHome.d.ts +0 -32
- package/dist/models/HomeTimelineHome.js +0 -51
- package/dist/models/HomeTimelineResponseData.d.ts +0 -32
- package/dist/models/HomeTimelineResponseData.js +0 -51
- package/dist/models/InstructionType.d.ts +0 -25
- package/dist/models/InstructionType.js +0 -38
- package/dist/models/InstructionUnion.d.ts +0 -32
- package/dist/models/InstructionUnion.js +0 -74
- package/dist/models/ItemContentUnion.d.ts +0 -29
- package/dist/models/ItemContentUnion.js +0 -69
- package/dist/models/ItemResult.d.ts +0 -39
- package/dist/models/ItemResult.js +0 -55
- package/dist/models/ListTweetsTimeline.d.ts +0 -32
- package/dist/models/ListTweetsTimeline.js +0 -51
- package/dist/models/ListTweetsTimelineData.d.ts +0 -32
- package/dist/models/ListTweetsTimelineData.js +0 -51
- package/dist/models/ListTweetsTimelineList.d.ts +0 -32
- package/dist/models/ListTweetsTimelineList.js +0 -51
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -32
- package/dist/models/ListTweetsTimelineResponse.js +0 -51
- package/dist/models/Media.d.ts +0 -92
- package/dist/models/Media.js +0 -80
- package/dist/models/MediaOriginalInfo.d.ts +0 -43
- package/dist/models/MediaOriginalInfo.js +0 -54
- package/dist/models/ModuleEntry.d.ts +0 -38
- package/dist/models/ModuleEntry.js +0 -54
- package/dist/models/ModuleItem.d.ts +0 -38
- package/dist/models/ModuleItem.js +0 -54
- package/dist/models/OneFactorLoginEligibility.d.ts +0 -31
- package/dist/models/OneFactorLoginEligibility.js +0 -50
- package/dist/models/OtherResponse.d.ts +0 -32
- package/dist/models/OtherResponse.js +0 -51
- package/dist/models/PostCreateRetweetRequest.d.ts +0 -38
- package/dist/models/PostCreateRetweetRequest.js +0 -54
- package/dist/models/PostCreateTweetRequest.d.ts +0 -45
- package/dist/models/PostCreateTweetRequest.js +0 -58
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -139
- package/dist/models/PostCreateTweetRequestFeatures.js +0 -104
- package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -50
- package/dist/models/PostCreateTweetRequestVariables.js +0 -60
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -37
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -53
- package/dist/models/PostDeleteRetweetRequest.d.ts +0 -38
- package/dist/models/PostDeleteRetweetRequest.js +0 -54
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -37
- package/dist/models/PostDeleteRetweetRequestVariables.js +0 -53
- package/dist/models/PostDeleteTweetRequest.d.ts +0 -38
- package/dist/models/PostDeleteTweetRequest.js +0 -54
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -37
- package/dist/models/PostDeleteTweetRequestVariables.js +0 -53
- package/dist/models/PostFavoriteTweetRequest.d.ts +0 -38
- package/dist/models/PostFavoriteTweetRequest.js +0 -54
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -38
- package/dist/models/PostUnfavoriteTweetRequest.js +0 -54
- package/dist/models/ProfileResponse.d.ts +0 -32
- package/dist/models/ProfileResponse.js +0 -51
- package/dist/models/ProfileResponseData.d.ts +0 -32
- package/dist/models/ProfileResponseData.js +0 -51
- package/dist/models/Retweet.d.ts +0 -38
- package/dist/models/Retweet.js +0 -54
- package/dist/models/RetweetLegacy.d.ts +0 -31
- package/dist/models/RetweetLegacy.js +0 -50
- package/dist/models/Session.d.ts +0 -112
- package/dist/models/Session.js +0 -92
- package/dist/models/SocialContext.d.ts +0 -43
- package/dist/models/SocialContext.js +0 -54
- package/dist/models/Timeline.d.ts +0 -44
- package/dist/models/Timeline.js +0 -56
- package/dist/models/TimelineAddEntries.d.ts +0 -39
- package/dist/models/TimelineAddEntries.js +0 -55
- package/dist/models/TimelineAddEntry.d.ts +0 -44
- package/dist/models/TimelineAddEntry.js +0 -57
- package/dist/models/TimelineClearCache.d.ts +0 -32
- package/dist/models/TimelineClearCache.js +0 -51
- package/dist/models/TimelinePinEntry.d.ts +0 -39
- package/dist/models/TimelinePinEntry.js +0 -55
- package/dist/models/TimelineResponse.d.ts +0 -32
- package/dist/models/TimelineResponse.js +0 -51
- package/dist/models/TimelineTerminateTimeline.d.ts +0 -46
- package/dist/models/TimelineTerminateTimeline.js +0 -61
- package/dist/models/TimelineTimelineCursor.d.ts +0 -68
- package/dist/models/TimelineTimelineCursor.js +0 -73
- package/dist/models/TimelineTimelineItem.d.ts +0 -58
- package/dist/models/TimelineTimelineItem.js +0 -64
- package/dist/models/TimelineTimelineModule.d.ts +0 -70
- package/dist/models/TimelineTimelineModule.js +0 -69
- package/dist/models/TimelineTweet.d.ts +0 -65
- package/dist/models/TimelineTweet.js +0 -68
- package/dist/models/TimelineUser.d.ts +0 -59
- package/dist/models/TimelineUser.js +0 -66
- package/dist/models/TimelineV2.d.ts +0 -32
- package/dist/models/TimelineV2.js +0 -51
- package/dist/models/Tweet.d.ts +0 -92
- package/dist/models/Tweet.js +0 -82
- package/dist/models/TweetDetailResponse.d.ts +0 -32
- package/dist/models/TweetDetailResponse.js +0 -51
- package/dist/models/TweetDetailResponseData.d.ts +0 -32
- package/dist/models/TweetDetailResponseData.js +0 -51
- package/dist/models/TweetEditControl.d.ts +0 -49
- package/dist/models/TweetEditControl.js +0 -56
- package/dist/models/TweetEditPrespective.d.ts +0 -37
- package/dist/models/TweetEditPrespective.js +0 -52
- package/dist/models/TweetLegacy.d.ts +0 -154
- package/dist/models/TweetLegacy.js +0 -110
- package/dist/models/TweetTombstone.d.ts +0 -32
- package/dist/models/TweetTombstone.js +0 -51
- package/dist/models/TweetUnion.d.ts +0 -29
- package/dist/models/TweetUnion.js +0 -69
- package/dist/models/TweetViews.d.ts +0 -37
- package/dist/models/TweetViews.js +0 -52
- package/dist/models/TweetWithVisibilityResults.d.ts +0 -39
- package/dist/models/TweetWithVisibilityResults.js +0 -55
- package/dist/models/TypeName.d.ts +0 -30
- package/dist/models/TypeName.js +0 -43
- package/dist/models/UnfavoriteTweet.d.ts +0 -31
- package/dist/models/UnfavoriteTweet.js +0 -50
- package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -32
- package/dist/models/UnfavoriteTweetResponseData.js +0 -51
- package/dist/models/User.d.ts +0 -99
- package/dist/models/User.js +0 -83
- package/dist/models/UserFeatures.d.ts +0 -31
- package/dist/models/UserFeatures.js +0 -50
- package/dist/models/UserLegacy.d.ts +0 -259
- package/dist/models/UserLegacy.js +0 -161
- package/dist/models/UserResponse.d.ts +0 -32
- package/dist/models/UserResponse.js +0 -51
- package/dist/models/UserResponseData.d.ts +0 -32
- package/dist/models/UserResponseData.js +0 -51
- package/dist/models/UserResultByScreenName.d.ts +0 -38
- package/dist/models/UserResultByScreenName.js +0 -54
- package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -67
- package/dist/models/UserResultByScreenNameLegacy.js +0 -62
- package/dist/models/UserResultByScreenNameResult.d.ts +0 -57
- package/dist/models/UserResultByScreenNameResult.js +0 -64
- package/dist/models/UserResultCore.d.ts +0 -32
- package/dist/models/UserResultCore.js +0 -51
- package/dist/models/UserResults.d.ts +0 -32
- package/dist/models/UserResults.js +0 -51
- package/dist/models/UserTweetsData.d.ts +0 -32
- package/dist/models/UserTweetsData.js +0 -51
- package/dist/models/UserTweetsResponse.d.ts +0 -32
- package/dist/models/UserTweetsResponse.js +0 -51
- package/dist/models/UserTweetsResult.d.ts +0 -39
- package/dist/models/UserTweetsResult.js +0 -55
- package/dist/models/UserTweetsUser.d.ts +0 -32
- package/dist/models/UserTweetsUser.js +0 -51
- package/dist/models/index.d.ts +0 -102
- package/dist/models/index.js +0 -120
- package/dist/runtime.d.ts +0 -182
- package/dist/runtime.js +0 -555
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -111
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -134
- package/twitter-openapi/dist/dart/paths/follow.yaml +0 -262
- package/twitter-openapi/dist/dart/paths/other.yaml +0 -96
- package/twitter-openapi/dist/dart/paths/post.yaml +0 -834
- package/twitter-openapi/dist/dart/paths/profile.yaml +0 -152
- package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -380
- package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -134
- package/twitter-openapi/dist/dart/paths/user.yaml +0 -112
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -484
- package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
- package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
- package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
- package/twitter-openapi/dist/dart/response/error.yaml +0 -90
- package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/dart/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/dart/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/dart/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/dart/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/dart/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +0 -135
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -248
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -486
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -96
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -638
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -159
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -730
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -272
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -152
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1010
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/test/openapi-3.0.yaml +0 -135
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -105
- package/twitter-openapi/dist/test/paths/follow.yaml +0 -204
- package/twitter-openapi/dist/test/paths/other.yaml +0 -96
- package/twitter-openapi/dist/test/paths/post.yaml +0 -485
- package/twitter-openapi/dist/test/paths/profile.yaml +0 -123
- package/twitter-openapi/dist/test/paths/timeline.yaml +0 -293
- package/twitter-openapi/dist/test/paths/tweet.yaml +0 -105
- package/twitter-openapi/dist/test/paths/user.yaml +0 -83
- package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -368
- package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
- package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/test/response/error.yaml +0 -90
- package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -135
- package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +0 -105
- package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -204
- package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
- package/twitter-openapi/dist/typescript/paths/post.yaml +0 -660
- package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -123
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -293
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -105
- package/twitter-openapi/dist/typescript/paths/user.yaml +0 -83
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -368
- package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
- package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -251
- package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
package/dist/apis/V11PostApi.js
DELETED
|
@@ -1,399 +0,0 @@
|
|
|
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.V11PostApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*/
|
|
72
|
-
var V11PostApi = /** @class */ (function (_super) {
|
|
73
|
-
__extends(V11PostApi, _super);
|
|
74
|
-
function V11PostApi() {
|
|
75
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* post create friendships
|
|
79
|
-
*/
|
|
80
|
-
V11PostApi.prototype.postCreateFriendshipsRaw = function (requestParameters, initOverrides) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
83
|
-
return __generator(this, function (_a) {
|
|
84
|
-
switch (_a.label) {
|
|
85
|
-
case 0:
|
|
86
|
-
if (requestParameters.includeBlockedBy === null || requestParameters.includeBlockedBy === undefined) {
|
|
87
|
-
throw new runtime.RequiredError('includeBlockedBy', 'Required parameter requestParameters.includeBlockedBy was null or undefined when calling postCreateFriendships.');
|
|
88
|
-
}
|
|
89
|
-
if (requestParameters.includeBlocking === null || requestParameters.includeBlocking === undefined) {
|
|
90
|
-
throw new runtime.RequiredError('includeBlocking', 'Required parameter requestParameters.includeBlocking was null or undefined when calling postCreateFriendships.');
|
|
91
|
-
}
|
|
92
|
-
if (requestParameters.includeCanDm === null || requestParameters.includeCanDm === undefined) {
|
|
93
|
-
throw new runtime.RequiredError('includeCanDm', 'Required parameter requestParameters.includeCanDm was null or undefined when calling postCreateFriendships.');
|
|
94
|
-
}
|
|
95
|
-
if (requestParameters.includeCanMediaTag === null || requestParameters.includeCanMediaTag === undefined) {
|
|
96
|
-
throw new runtime.RequiredError('includeCanMediaTag', 'Required parameter requestParameters.includeCanMediaTag was null or undefined when calling postCreateFriendships.');
|
|
97
|
-
}
|
|
98
|
-
if (requestParameters.includeExtHasNftAvatar === null || requestParameters.includeExtHasNftAvatar === undefined) {
|
|
99
|
-
throw new runtime.RequiredError('includeExtHasNftAvatar', 'Required parameter requestParameters.includeExtHasNftAvatar was null or undefined when calling postCreateFriendships.');
|
|
100
|
-
}
|
|
101
|
-
if (requestParameters.includeExtIsBlueVerified === null || requestParameters.includeExtIsBlueVerified === undefined) {
|
|
102
|
-
throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter requestParameters.includeExtIsBlueVerified was null or undefined when calling postCreateFriendships.');
|
|
103
|
-
}
|
|
104
|
-
if (requestParameters.includeExtProfileImageShape === null || requestParameters.includeExtProfileImageShape === undefined) {
|
|
105
|
-
throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter requestParameters.includeExtProfileImageShape was null or undefined when calling postCreateFriendships.');
|
|
106
|
-
}
|
|
107
|
-
if (requestParameters.includeExtVerifiedType === null || requestParameters.includeExtVerifiedType === undefined) {
|
|
108
|
-
throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter requestParameters.includeExtVerifiedType was null or undefined when calling postCreateFriendships.');
|
|
109
|
-
}
|
|
110
|
-
if (requestParameters.includeFollowedBy === null || requestParameters.includeFollowedBy === undefined) {
|
|
111
|
-
throw new runtime.RequiredError('includeFollowedBy', 'Required parameter requestParameters.includeFollowedBy was null or undefined when calling postCreateFriendships.');
|
|
112
|
-
}
|
|
113
|
-
if (requestParameters.includeMuteEdge === null || requestParameters.includeMuteEdge === undefined) {
|
|
114
|
-
throw new runtime.RequiredError('includeMuteEdge', 'Required parameter requestParameters.includeMuteEdge was null or undefined when calling postCreateFriendships.');
|
|
115
|
-
}
|
|
116
|
-
if (requestParameters.includeProfileInterstitialType === null || requestParameters.includeProfileInterstitialType === undefined) {
|
|
117
|
-
throw new runtime.RequiredError('includeProfileInterstitialType', 'Required parameter requestParameters.includeProfileInterstitialType was null or undefined when calling postCreateFriendships.');
|
|
118
|
-
}
|
|
119
|
-
if (requestParameters.includeWantRetweets === null || requestParameters.includeWantRetweets === undefined) {
|
|
120
|
-
throw new runtime.RequiredError('includeWantRetweets', 'Required parameter requestParameters.includeWantRetweets was null or undefined when calling postCreateFriendships.');
|
|
121
|
-
}
|
|
122
|
-
if (requestParameters.skipStatus === null || requestParameters.skipStatus === undefined) {
|
|
123
|
-
throw new runtime.RequiredError('skipStatus', 'Required parameter requestParameters.skipStatus was null or undefined when calling postCreateFriendships.');
|
|
124
|
-
}
|
|
125
|
-
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
126
|
-
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling postCreateFriendships.');
|
|
127
|
-
}
|
|
128
|
-
queryParameters = {};
|
|
129
|
-
headerParameters = {};
|
|
130
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
132
|
-
}
|
|
133
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
134
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
135
|
-
}
|
|
136
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
137
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
138
|
-
}
|
|
139
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
140
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
141
|
-
}
|
|
142
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
143
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
144
|
-
}
|
|
145
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
146
|
-
token = this.configuration.accessToken;
|
|
147
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
148
|
-
case 1:
|
|
149
|
-
tokenString = _a.sent();
|
|
150
|
-
if (tokenString) {
|
|
151
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
152
|
-
}
|
|
153
|
-
_a.label = 2;
|
|
154
|
-
case 2:
|
|
155
|
-
consumes = [
|
|
156
|
-
{ contentType: 'application/x-www-form-urlencoded' },
|
|
157
|
-
];
|
|
158
|
-
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
159
|
-
useForm = false;
|
|
160
|
-
if (useForm) {
|
|
161
|
-
formParams = new FormData();
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
formParams = new URLSearchParams();
|
|
165
|
-
}
|
|
166
|
-
if (requestParameters.includeBlockedBy !== undefined) {
|
|
167
|
-
formParams.append('include_blocked_by', requestParameters.includeBlockedBy);
|
|
168
|
-
}
|
|
169
|
-
if (requestParameters.includeBlocking !== undefined) {
|
|
170
|
-
formParams.append('include_blocking', requestParameters.includeBlocking);
|
|
171
|
-
}
|
|
172
|
-
if (requestParameters.includeCanDm !== undefined) {
|
|
173
|
-
formParams.append('include_can_dm', requestParameters.includeCanDm);
|
|
174
|
-
}
|
|
175
|
-
if (requestParameters.includeCanMediaTag !== undefined) {
|
|
176
|
-
formParams.append('include_can_media_tag', requestParameters.includeCanMediaTag);
|
|
177
|
-
}
|
|
178
|
-
if (requestParameters.includeExtHasNftAvatar !== undefined) {
|
|
179
|
-
formParams.append('include_ext_has_nft_avatar', requestParameters.includeExtHasNftAvatar);
|
|
180
|
-
}
|
|
181
|
-
if (requestParameters.includeExtIsBlueVerified !== undefined) {
|
|
182
|
-
formParams.append('include_ext_is_blue_verified', requestParameters.includeExtIsBlueVerified);
|
|
183
|
-
}
|
|
184
|
-
if (requestParameters.includeExtProfileImageShape !== undefined) {
|
|
185
|
-
formParams.append('include_ext_profile_image_shape', requestParameters.includeExtProfileImageShape);
|
|
186
|
-
}
|
|
187
|
-
if (requestParameters.includeExtVerifiedType !== undefined) {
|
|
188
|
-
formParams.append('include_ext_verified_type', requestParameters.includeExtVerifiedType);
|
|
189
|
-
}
|
|
190
|
-
if (requestParameters.includeFollowedBy !== undefined) {
|
|
191
|
-
formParams.append('include_followed_by', requestParameters.includeFollowedBy);
|
|
192
|
-
}
|
|
193
|
-
if (requestParameters.includeMuteEdge !== undefined) {
|
|
194
|
-
formParams.append('include_mute_edge', requestParameters.includeMuteEdge);
|
|
195
|
-
}
|
|
196
|
-
if (requestParameters.includeProfileInterstitialType !== undefined) {
|
|
197
|
-
formParams.append('include_profile_interstitial_type', requestParameters.includeProfileInterstitialType);
|
|
198
|
-
}
|
|
199
|
-
if (requestParameters.includeWantRetweets !== undefined) {
|
|
200
|
-
formParams.append('include_want_retweets', requestParameters.includeWantRetweets);
|
|
201
|
-
}
|
|
202
|
-
if (requestParameters.skipStatus !== undefined) {
|
|
203
|
-
formParams.append('skip_status', requestParameters.skipStatus);
|
|
204
|
-
}
|
|
205
|
-
if (requestParameters.userId !== undefined) {
|
|
206
|
-
formParams.append('user_id', requestParameters.userId);
|
|
207
|
-
}
|
|
208
|
-
return [4 /*yield*/, this.request({
|
|
209
|
-
path: "/1.1/friendships/create.json",
|
|
210
|
-
method: 'POST',
|
|
211
|
-
headers: headerParameters,
|
|
212
|
-
query: queryParameters,
|
|
213
|
-
body: formParams,
|
|
214
|
-
}, initOverrides)];
|
|
215
|
-
case 3:
|
|
216
|
-
response = _a.sent();
|
|
217
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
/**
|
|
223
|
-
* post create friendships
|
|
224
|
-
*/
|
|
225
|
-
V11PostApi.prototype.postCreateFriendships = function (requestParameters, initOverrides) {
|
|
226
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
return __generator(this, function (_a) {
|
|
228
|
-
switch (_a.label) {
|
|
229
|
-
case 0: return [4 /*yield*/, this.postCreateFriendshipsRaw(requestParameters, initOverrides)];
|
|
230
|
-
case 1:
|
|
231
|
-
_a.sent();
|
|
232
|
-
return [2 /*return*/];
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* post destroy friendships
|
|
239
|
-
*/
|
|
240
|
-
V11PostApi.prototype.postDestroyFriendshipsRaw = function (requestParameters, initOverrides) {
|
|
241
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
242
|
-
var queryParameters, headerParameters, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
|
|
243
|
-
return __generator(this, function (_a) {
|
|
244
|
-
switch (_a.label) {
|
|
245
|
-
case 0:
|
|
246
|
-
if (requestParameters.includeBlockedBy === null || requestParameters.includeBlockedBy === undefined) {
|
|
247
|
-
throw new runtime.RequiredError('includeBlockedBy', 'Required parameter requestParameters.includeBlockedBy was null or undefined when calling postDestroyFriendships.');
|
|
248
|
-
}
|
|
249
|
-
if (requestParameters.includeBlocking === null || requestParameters.includeBlocking === undefined) {
|
|
250
|
-
throw new runtime.RequiredError('includeBlocking', 'Required parameter requestParameters.includeBlocking was null or undefined when calling postDestroyFriendships.');
|
|
251
|
-
}
|
|
252
|
-
if (requestParameters.includeCanDm === null || requestParameters.includeCanDm === undefined) {
|
|
253
|
-
throw new runtime.RequiredError('includeCanDm', 'Required parameter requestParameters.includeCanDm was null or undefined when calling postDestroyFriendships.');
|
|
254
|
-
}
|
|
255
|
-
if (requestParameters.includeCanMediaTag === null || requestParameters.includeCanMediaTag === undefined) {
|
|
256
|
-
throw new runtime.RequiredError('includeCanMediaTag', 'Required parameter requestParameters.includeCanMediaTag was null or undefined when calling postDestroyFriendships.');
|
|
257
|
-
}
|
|
258
|
-
if (requestParameters.includeExtHasNftAvatar === null || requestParameters.includeExtHasNftAvatar === undefined) {
|
|
259
|
-
throw new runtime.RequiredError('includeExtHasNftAvatar', 'Required parameter requestParameters.includeExtHasNftAvatar was null or undefined when calling postDestroyFriendships.');
|
|
260
|
-
}
|
|
261
|
-
if (requestParameters.includeExtIsBlueVerified === null || requestParameters.includeExtIsBlueVerified === undefined) {
|
|
262
|
-
throw new runtime.RequiredError('includeExtIsBlueVerified', 'Required parameter requestParameters.includeExtIsBlueVerified was null or undefined when calling postDestroyFriendships.');
|
|
263
|
-
}
|
|
264
|
-
if (requestParameters.includeExtProfileImageShape === null || requestParameters.includeExtProfileImageShape === undefined) {
|
|
265
|
-
throw new runtime.RequiredError('includeExtProfileImageShape', 'Required parameter requestParameters.includeExtProfileImageShape was null or undefined when calling postDestroyFriendships.');
|
|
266
|
-
}
|
|
267
|
-
if (requestParameters.includeExtVerifiedType === null || requestParameters.includeExtVerifiedType === undefined) {
|
|
268
|
-
throw new runtime.RequiredError('includeExtVerifiedType', 'Required parameter requestParameters.includeExtVerifiedType was null or undefined when calling postDestroyFriendships.');
|
|
269
|
-
}
|
|
270
|
-
if (requestParameters.includeFollowedBy === null || requestParameters.includeFollowedBy === undefined) {
|
|
271
|
-
throw new runtime.RequiredError('includeFollowedBy', 'Required parameter requestParameters.includeFollowedBy was null or undefined when calling postDestroyFriendships.');
|
|
272
|
-
}
|
|
273
|
-
if (requestParameters.includeMuteEdge === null || requestParameters.includeMuteEdge === undefined) {
|
|
274
|
-
throw new runtime.RequiredError('includeMuteEdge', 'Required parameter requestParameters.includeMuteEdge was null or undefined when calling postDestroyFriendships.');
|
|
275
|
-
}
|
|
276
|
-
if (requestParameters.includeProfileInterstitialType === null || requestParameters.includeProfileInterstitialType === undefined) {
|
|
277
|
-
throw new runtime.RequiredError('includeProfileInterstitialType', 'Required parameter requestParameters.includeProfileInterstitialType was null or undefined when calling postDestroyFriendships.');
|
|
278
|
-
}
|
|
279
|
-
if (requestParameters.includeWantRetweets === null || requestParameters.includeWantRetweets === undefined) {
|
|
280
|
-
throw new runtime.RequiredError('includeWantRetweets', 'Required parameter requestParameters.includeWantRetweets was null or undefined when calling postDestroyFriendships.');
|
|
281
|
-
}
|
|
282
|
-
if (requestParameters.skipStatus === null || requestParameters.skipStatus === undefined) {
|
|
283
|
-
throw new runtime.RequiredError('skipStatus', 'Required parameter requestParameters.skipStatus was null or undefined when calling postDestroyFriendships.');
|
|
284
|
-
}
|
|
285
|
-
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
|
286
|
-
throw new runtime.RequiredError('userId', 'Required parameter requestParameters.userId was null or undefined when calling postDestroyFriendships.');
|
|
287
|
-
}
|
|
288
|
-
queryParameters = {};
|
|
289
|
-
headerParameters = {};
|
|
290
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
291
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
292
|
-
}
|
|
293
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
294
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
295
|
-
}
|
|
296
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
297
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
298
|
-
}
|
|
299
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
300
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
301
|
-
}
|
|
302
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
303
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
304
|
-
}
|
|
305
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
306
|
-
token = this.configuration.accessToken;
|
|
307
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
308
|
-
case 1:
|
|
309
|
-
tokenString = _a.sent();
|
|
310
|
-
if (tokenString) {
|
|
311
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
312
|
-
}
|
|
313
|
-
_a.label = 2;
|
|
314
|
-
case 2:
|
|
315
|
-
consumes = [
|
|
316
|
-
{ contentType: 'application/x-www-form-urlencoded' },
|
|
317
|
-
];
|
|
318
|
-
canConsumeForm = runtime.canConsumeForm(consumes);
|
|
319
|
-
useForm = false;
|
|
320
|
-
if (useForm) {
|
|
321
|
-
formParams = new FormData();
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
formParams = new URLSearchParams();
|
|
325
|
-
}
|
|
326
|
-
if (requestParameters.includeBlockedBy !== undefined) {
|
|
327
|
-
formParams.append('include_blocked_by', requestParameters.includeBlockedBy);
|
|
328
|
-
}
|
|
329
|
-
if (requestParameters.includeBlocking !== undefined) {
|
|
330
|
-
formParams.append('include_blocking', requestParameters.includeBlocking);
|
|
331
|
-
}
|
|
332
|
-
if (requestParameters.includeCanDm !== undefined) {
|
|
333
|
-
formParams.append('include_can_dm', requestParameters.includeCanDm);
|
|
334
|
-
}
|
|
335
|
-
if (requestParameters.includeCanMediaTag !== undefined) {
|
|
336
|
-
formParams.append('include_can_media_tag', requestParameters.includeCanMediaTag);
|
|
337
|
-
}
|
|
338
|
-
if (requestParameters.includeExtHasNftAvatar !== undefined) {
|
|
339
|
-
formParams.append('include_ext_has_nft_avatar', requestParameters.includeExtHasNftAvatar);
|
|
340
|
-
}
|
|
341
|
-
if (requestParameters.includeExtIsBlueVerified !== undefined) {
|
|
342
|
-
formParams.append('include_ext_is_blue_verified', requestParameters.includeExtIsBlueVerified);
|
|
343
|
-
}
|
|
344
|
-
if (requestParameters.includeExtProfileImageShape !== undefined) {
|
|
345
|
-
formParams.append('include_ext_profile_image_shape', requestParameters.includeExtProfileImageShape);
|
|
346
|
-
}
|
|
347
|
-
if (requestParameters.includeExtVerifiedType !== undefined) {
|
|
348
|
-
formParams.append('include_ext_verified_type', requestParameters.includeExtVerifiedType);
|
|
349
|
-
}
|
|
350
|
-
if (requestParameters.includeFollowedBy !== undefined) {
|
|
351
|
-
formParams.append('include_followed_by', requestParameters.includeFollowedBy);
|
|
352
|
-
}
|
|
353
|
-
if (requestParameters.includeMuteEdge !== undefined) {
|
|
354
|
-
formParams.append('include_mute_edge', requestParameters.includeMuteEdge);
|
|
355
|
-
}
|
|
356
|
-
if (requestParameters.includeProfileInterstitialType !== undefined) {
|
|
357
|
-
formParams.append('include_profile_interstitial_type', requestParameters.includeProfileInterstitialType);
|
|
358
|
-
}
|
|
359
|
-
if (requestParameters.includeWantRetweets !== undefined) {
|
|
360
|
-
formParams.append('include_want_retweets', requestParameters.includeWantRetweets);
|
|
361
|
-
}
|
|
362
|
-
if (requestParameters.skipStatus !== undefined) {
|
|
363
|
-
formParams.append('skip_status', requestParameters.skipStatus);
|
|
364
|
-
}
|
|
365
|
-
if (requestParameters.userId !== undefined) {
|
|
366
|
-
formParams.append('user_id', requestParameters.userId);
|
|
367
|
-
}
|
|
368
|
-
return [4 /*yield*/, this.request({
|
|
369
|
-
path: "/1.1/friendships/destroy.json",
|
|
370
|
-
method: 'POST',
|
|
371
|
-
headers: headerParameters,
|
|
372
|
-
query: queryParameters,
|
|
373
|
-
body: formParams,
|
|
374
|
-
}, initOverrides)];
|
|
375
|
-
case 3:
|
|
376
|
-
response = _a.sent();
|
|
377
|
-
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
});
|
|
381
|
-
};
|
|
382
|
-
/**
|
|
383
|
-
* post destroy friendships
|
|
384
|
-
*/
|
|
385
|
-
V11PostApi.prototype.postDestroyFriendships = function (requestParameters, initOverrides) {
|
|
386
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
387
|
-
return __generator(this, function (_a) {
|
|
388
|
-
switch (_a.label) {
|
|
389
|
-
case 0: return [4 /*yield*/, this.postDestroyFriendshipsRaw(requestParameters, initOverrides)];
|
|
390
|
-
case 1:
|
|
391
|
-
_a.sent();
|
|
392
|
-
return [2 /*return*/];
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
};
|
|
397
|
-
return V11PostApi;
|
|
398
|
-
}(runtime.BaseAPI));
|
|
399
|
-
exports.V11PostApi = V11PostApi;
|
package/dist/apis/V20GetApi.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
export interface GetSearchAdaptiveRequest {
|
|
14
|
-
includeProfileInterstitialType: number;
|
|
15
|
-
includeBlocking: number;
|
|
16
|
-
includeBlockedBy: number;
|
|
17
|
-
includeFollowedBy: number;
|
|
18
|
-
includeWantRetweets: number;
|
|
19
|
-
includeMuteEdge: number;
|
|
20
|
-
includeCanDm: number;
|
|
21
|
-
includeCanMediaTag: number;
|
|
22
|
-
includeExtHasNftAvatar: number;
|
|
23
|
-
includeExtIsBlueVerified: number;
|
|
24
|
-
includeExtVerifiedType: number;
|
|
25
|
-
includeExtProfileImageShape: number;
|
|
26
|
-
skipStatus: number;
|
|
27
|
-
cardsPlatform: string;
|
|
28
|
-
includeCards: number;
|
|
29
|
-
includeExtAltText: boolean;
|
|
30
|
-
includeExtLimitedActionResults: boolean;
|
|
31
|
-
includeQuoteCount: boolean;
|
|
32
|
-
includeReplyCount: number;
|
|
33
|
-
tweetMode: string;
|
|
34
|
-
includeExtViews: boolean;
|
|
35
|
-
includeEntities: boolean;
|
|
36
|
-
includeUserEntities: boolean;
|
|
37
|
-
includeExtMediaColor: boolean;
|
|
38
|
-
includeExtMediaAvailability: boolean;
|
|
39
|
-
includeExtSensitiveMediaWarning: boolean;
|
|
40
|
-
includeExtTrustedFriendsMetadata: boolean;
|
|
41
|
-
sendErrorCodes: boolean;
|
|
42
|
-
simpleQuotedTweet: boolean;
|
|
43
|
-
q: string;
|
|
44
|
-
querySource: string;
|
|
45
|
-
count: number;
|
|
46
|
-
requestContext: string;
|
|
47
|
-
pc: number;
|
|
48
|
-
spellingCorrections: number;
|
|
49
|
-
includeExtEditControl: boolean;
|
|
50
|
-
ext: string;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export declare class V20GetApi extends runtime.BaseAPI {
|
|
56
|
-
/**
|
|
57
|
-
* get search adaptive
|
|
58
|
-
*/
|
|
59
|
-
getSearchAdaptiveRaw(requestParameters: GetSearchAdaptiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
60
|
-
/**
|
|
61
|
-
* get search adaptive
|
|
62
|
-
*/
|
|
63
|
-
getSearchAdaptive(requestParameters: GetSearchAdaptiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
64
|
-
}
|