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
|
@@ -0,0 +1,201 @@
|
|
|
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 { CommunitiesActions } from './CommunitiesActions';
|
|
17
|
+
import {
|
|
18
|
+
CommunitiesActionsFromJSON,
|
|
19
|
+
CommunitiesActionsFromJSONTyped,
|
|
20
|
+
CommunitiesActionsToJSON,
|
|
21
|
+
} from './CommunitiesActions';
|
|
22
|
+
import type { OneFactorLoginEligibility } from './OneFactorLoginEligibility';
|
|
23
|
+
import {
|
|
24
|
+
OneFactorLoginEligibilityFromJSON,
|
|
25
|
+
OneFactorLoginEligibilityFromJSONTyped,
|
|
26
|
+
OneFactorLoginEligibilityToJSON,
|
|
27
|
+
} from './OneFactorLoginEligibility';
|
|
28
|
+
import type { UserFeatures } from './UserFeatures';
|
|
29
|
+
import {
|
|
30
|
+
UserFeaturesFromJSON,
|
|
31
|
+
UserFeaturesFromJSONTyped,
|
|
32
|
+
UserFeaturesToJSON,
|
|
33
|
+
} from './UserFeatures';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface Session
|
|
39
|
+
*/
|
|
40
|
+
export interface Session {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {object}
|
|
44
|
+
* @memberof Session
|
|
45
|
+
*/
|
|
46
|
+
ssoInitTokens?: object;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {CommunitiesActions}
|
|
50
|
+
* @memberof Session
|
|
51
|
+
*/
|
|
52
|
+
communitiesActions: CommunitiesActions;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof Session
|
|
57
|
+
*/
|
|
58
|
+
country: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof Session
|
|
63
|
+
*/
|
|
64
|
+
guestId: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof Session
|
|
69
|
+
*/
|
|
70
|
+
hasCommunityMemberships: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof Session
|
|
75
|
+
*/
|
|
76
|
+
isActiveCreator: boolean;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof Session
|
|
81
|
+
*/
|
|
82
|
+
isRestrictedSession: boolean;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof Session
|
|
87
|
+
*/
|
|
88
|
+
isSuperFollowSubscriber: boolean;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof Session
|
|
93
|
+
*/
|
|
94
|
+
language: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {OneFactorLoginEligibility}
|
|
98
|
+
* @memberof Session
|
|
99
|
+
*/
|
|
100
|
+
oneFactorLoginEligibility: OneFactorLoginEligibility;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof Session
|
|
105
|
+
*/
|
|
106
|
+
superFollowersCount: number;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof Session
|
|
111
|
+
*/
|
|
112
|
+
superFollowsApplicationStatus: string;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {UserFeatures}
|
|
116
|
+
* @memberof Session
|
|
117
|
+
*/
|
|
118
|
+
userFeatures: UserFeatures;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof Session
|
|
123
|
+
*/
|
|
124
|
+
userId: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the Session interface.
|
|
129
|
+
*/
|
|
130
|
+
export function instanceOfSession(value: object): boolean {
|
|
131
|
+
let isInstance = true;
|
|
132
|
+
isInstance = isInstance && "communitiesActions" in value;
|
|
133
|
+
isInstance = isInstance && "country" in value;
|
|
134
|
+
isInstance = isInstance && "guestId" in value;
|
|
135
|
+
isInstance = isInstance && "hasCommunityMemberships" in value;
|
|
136
|
+
isInstance = isInstance && "isActiveCreator" in value;
|
|
137
|
+
isInstance = isInstance && "isRestrictedSession" in value;
|
|
138
|
+
isInstance = isInstance && "isSuperFollowSubscriber" in value;
|
|
139
|
+
isInstance = isInstance && "language" in value;
|
|
140
|
+
isInstance = isInstance && "oneFactorLoginEligibility" in value;
|
|
141
|
+
isInstance = isInstance && "superFollowersCount" in value;
|
|
142
|
+
isInstance = isInstance && "superFollowsApplicationStatus" in value;
|
|
143
|
+
isInstance = isInstance && "userFeatures" in value;
|
|
144
|
+
isInstance = isInstance && "userId" in value;
|
|
145
|
+
|
|
146
|
+
return isInstance;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function SessionFromJSON(json: any): Session {
|
|
150
|
+
return SessionFromJSONTyped(json, false);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function SessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Session {
|
|
154
|
+
if ((json === undefined) || (json === null)) {
|
|
155
|
+
return json;
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
|
|
159
|
+
'ssoInitTokens': !exists(json, 'SsoInitTokens') ? undefined : json['SsoInitTokens'],
|
|
160
|
+
'communitiesActions': CommunitiesActionsFromJSON(json['communitiesActions']),
|
|
161
|
+
'country': json['country'],
|
|
162
|
+
'guestId': json['guestId'],
|
|
163
|
+
'hasCommunityMemberships': json['hasCommunityMemberships'],
|
|
164
|
+
'isActiveCreator': json['isActiveCreator'],
|
|
165
|
+
'isRestrictedSession': json['isRestrictedSession'],
|
|
166
|
+
'isSuperFollowSubscriber': json['isSuperFollowSubscriber'],
|
|
167
|
+
'language': json['language'],
|
|
168
|
+
'oneFactorLoginEligibility': OneFactorLoginEligibilityFromJSON(json['oneFactorLoginEligibility']),
|
|
169
|
+
'superFollowersCount': json['superFollowersCount'],
|
|
170
|
+
'superFollowsApplicationStatus': json['superFollowsApplicationStatus'],
|
|
171
|
+
'userFeatures': UserFeaturesFromJSON(json['userFeatures']),
|
|
172
|
+
'userId': json['user_id'],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function SessionToJSON(value?: Session | null): any {
|
|
177
|
+
if (value === undefined) {
|
|
178
|
+
return undefined;
|
|
179
|
+
}
|
|
180
|
+
if (value === null) {
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
|
|
185
|
+
'SsoInitTokens': value.ssoInitTokens,
|
|
186
|
+
'communitiesActions': CommunitiesActionsToJSON(value.communitiesActions),
|
|
187
|
+
'country': value.country,
|
|
188
|
+
'guestId': value.guestId,
|
|
189
|
+
'hasCommunityMemberships': value.hasCommunityMemberships,
|
|
190
|
+
'isActiveCreator': value.isActiveCreator,
|
|
191
|
+
'isRestrictedSession': value.isRestrictedSession,
|
|
192
|
+
'isSuperFollowSubscriber': value.isSuperFollowSubscriber,
|
|
193
|
+
'language': value.language,
|
|
194
|
+
'oneFactorLoginEligibility': OneFactorLoginEligibilityToJSON(value.oneFactorLoginEligibility),
|
|
195
|
+
'superFollowersCount': value.superFollowersCount,
|
|
196
|
+
'superFollowsApplicationStatus': value.superFollowsApplicationStatus,
|
|
197
|
+
'userFeatures': UserFeaturesToJSON(value.userFeatures),
|
|
198
|
+
'user_id': value.userId,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SocialContext
|
|
20
|
+
*/
|
|
21
|
+
export interface SocialContext {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SocialContext
|
|
26
|
+
*/
|
|
27
|
+
contextType?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SocialContext
|
|
32
|
+
*/
|
|
33
|
+
text?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SocialContext
|
|
38
|
+
*/
|
|
39
|
+
type?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SocialContext interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSocialContext(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SocialContextFromJSON(json: any): SocialContext {
|
|
52
|
+
return SocialContextFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SocialContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): SocialContext {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'contextType': !exists(json, 'contextType') ? undefined : json['contextType'],
|
|
62
|
+
'text': !exists(json, 'text') ? undefined : json['text'],
|
|
63
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function SocialContextToJSON(value?: SocialContext | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'contextType': value.contextType,
|
|
77
|
+
'text': value.text,
|
|
78
|
+
'type': value.type,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { InstructionUnion } from './InstructionUnion';
|
|
17
|
+
import {
|
|
18
|
+
InstructionUnionFromJSON,
|
|
19
|
+
InstructionUnionFromJSONTyped,
|
|
20
|
+
InstructionUnionToJSON,
|
|
21
|
+
} from './InstructionUnion';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Timeline
|
|
27
|
+
*/
|
|
28
|
+
export interface Timeline {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<InstructionUnion>}
|
|
32
|
+
* @memberof Timeline
|
|
33
|
+
*/
|
|
34
|
+
instructions: Array<InstructionUnion>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof Timeline
|
|
39
|
+
*/
|
|
40
|
+
metadata?: object;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {object}
|
|
44
|
+
* @memberof Timeline
|
|
45
|
+
*/
|
|
46
|
+
responseObjects?: object;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Timeline interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfTimeline(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "instructions" in value;
|
|
55
|
+
|
|
56
|
+
return isInstance;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TimelineFromJSON(json: any): Timeline {
|
|
60
|
+
return TimelineFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function TimelineFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timeline {
|
|
64
|
+
if ((json === undefined) || (json === null)) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'instructions': ((json['instructions'] as Array<any>).map(InstructionUnionFromJSON)),
|
|
70
|
+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
|
|
71
|
+
'responseObjects': !exists(json, 'responseObjects') ? undefined : json['responseObjects'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function TimelineToJSON(value?: Timeline | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'instructions': ((value.instructions as Array<any>).map(InstructionUnionToJSON)),
|
|
85
|
+
'metadata': value.metadata,
|
|
86
|
+
'responseObjects': value.responseObjects,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { InstructionType } from './InstructionType';
|
|
17
|
+
import {
|
|
18
|
+
InstructionTypeFromJSON,
|
|
19
|
+
InstructionTypeFromJSONTyped,
|
|
20
|
+
InstructionTypeToJSON,
|
|
21
|
+
} from './InstructionType';
|
|
22
|
+
import type { TimelineAddEntry } from './TimelineAddEntry';
|
|
23
|
+
import {
|
|
24
|
+
TimelineAddEntryFromJSON,
|
|
25
|
+
TimelineAddEntryFromJSONTyped,
|
|
26
|
+
TimelineAddEntryToJSON,
|
|
27
|
+
} from './TimelineAddEntry';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface TimelineAddEntries
|
|
33
|
+
*/
|
|
34
|
+
export interface TimelineAddEntries {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<TimelineAddEntry>}
|
|
38
|
+
* @memberof TimelineAddEntries
|
|
39
|
+
*/
|
|
40
|
+
entries: Array<TimelineAddEntry>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {InstructionType}
|
|
44
|
+
* @memberof TimelineAddEntries
|
|
45
|
+
*/
|
|
46
|
+
type: InstructionType;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the TimelineAddEntries interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfTimelineAddEntries(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "entries" in value;
|
|
55
|
+
isInstance = isInstance && "type" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TimelineAddEntriesFromJSON(json: any): TimelineAddEntries {
|
|
61
|
+
return TimelineAddEntriesFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function TimelineAddEntriesFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddEntries {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'entries': ((json['entries'] as Array<any>).map(TimelineAddEntryFromJSON)),
|
|
71
|
+
'type': InstructionTypeFromJSON(json['type']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function TimelineAddEntriesToJSON(value?: TimelineAddEntries | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'entries': ((value.entries as Array<any>).map(TimelineAddEntryToJSON)),
|
|
85
|
+
'type': InstructionTypeToJSON(value.type),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { ContentUnion } from './ContentUnion';
|
|
17
|
+
import {
|
|
18
|
+
ContentUnionFromJSON,
|
|
19
|
+
ContentUnionFromJSONTyped,
|
|
20
|
+
ContentUnionToJSON,
|
|
21
|
+
} from './ContentUnion';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TimelineAddEntry
|
|
27
|
+
*/
|
|
28
|
+
export interface TimelineAddEntry {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {ContentUnion}
|
|
32
|
+
* @memberof TimelineAddEntry
|
|
33
|
+
*/
|
|
34
|
+
content: ContentUnion;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TimelineAddEntry
|
|
39
|
+
*/
|
|
40
|
+
entryId: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TimelineAddEntry
|
|
45
|
+
*/
|
|
46
|
+
sortIndex: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the TimelineAddEntry interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfTimelineAddEntry(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "content" in value;
|
|
55
|
+
isInstance = isInstance && "entryId" in value;
|
|
56
|
+
isInstance = isInstance && "sortIndex" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TimelineAddEntryFromJSON(json: any): TimelineAddEntry {
|
|
62
|
+
return TimelineAddEntryFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function TimelineAddEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineAddEntry {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'content': ContentUnionFromJSON(json['content']),
|
|
72
|
+
'entryId': json['entryId'],
|
|
73
|
+
'sortIndex': json['sortIndex'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function TimelineAddEntryToJSON(value?: TimelineAddEntry | null): any {
|
|
78
|
+
if (value === undefined) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
if (value === null) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'content': ContentUnionToJSON(value.content),
|
|
87
|
+
'entryId': value.entryId,
|
|
88
|
+
'sortIndex': value.sortIndex,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { InstructionType } from './InstructionType';
|
|
17
|
+
import {
|
|
18
|
+
InstructionTypeFromJSON,
|
|
19
|
+
InstructionTypeFromJSONTyped,
|
|
20
|
+
InstructionTypeToJSON,
|
|
21
|
+
} from './InstructionType';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TimelineClearCache
|
|
27
|
+
*/
|
|
28
|
+
export interface TimelineClearCache {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {InstructionType}
|
|
32
|
+
* @memberof TimelineClearCache
|
|
33
|
+
*/
|
|
34
|
+
type: InstructionType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the TimelineClearCache interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfTimelineClearCache(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "type" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TimelineClearCacheFromJSON(json: any): TimelineClearCache {
|
|
48
|
+
return TimelineClearCacheFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TimelineClearCacheFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelineClearCache {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'type': InstructionTypeFromJSON(json['type']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function TimelineClearCacheToJSON(value?: TimelineClearCache | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'type': InstructionTypeToJSON(value.type),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
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 { InstructionType } from './InstructionType';
|
|
17
|
+
import {
|
|
18
|
+
InstructionTypeFromJSON,
|
|
19
|
+
InstructionTypeFromJSONTyped,
|
|
20
|
+
InstructionTypeToJSON,
|
|
21
|
+
} from './InstructionType';
|
|
22
|
+
import type { TimelineAddEntry } from './TimelineAddEntry';
|
|
23
|
+
import {
|
|
24
|
+
TimelineAddEntryFromJSON,
|
|
25
|
+
TimelineAddEntryFromJSONTyped,
|
|
26
|
+
TimelineAddEntryToJSON,
|
|
27
|
+
} from './TimelineAddEntry';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface TimelinePinEntry
|
|
33
|
+
*/
|
|
34
|
+
export interface TimelinePinEntry {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {TimelineAddEntry}
|
|
38
|
+
* @memberof TimelinePinEntry
|
|
39
|
+
*/
|
|
40
|
+
entry: TimelineAddEntry;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {InstructionType}
|
|
44
|
+
* @memberof TimelinePinEntry
|
|
45
|
+
*/
|
|
46
|
+
type: InstructionType;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the TimelinePinEntry interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfTimelinePinEntry(value: object): boolean {
|
|
53
|
+
let isInstance = true;
|
|
54
|
+
isInstance = isInstance && "entry" in value;
|
|
55
|
+
isInstance = isInstance && "type" in value;
|
|
56
|
+
|
|
57
|
+
return isInstance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TimelinePinEntryFromJSON(json: any): TimelinePinEntry {
|
|
61
|
+
return TimelinePinEntryFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function TimelinePinEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimelinePinEntry {
|
|
65
|
+
if ((json === undefined) || (json === null)) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'entry': TimelineAddEntryFromJSON(json['entry']),
|
|
71
|
+
'type': InstructionTypeFromJSON(json['type']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function TimelinePinEntryToJSON(value?: TimelinePinEntry | null): any {
|
|
76
|
+
if (value === undefined) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
if (value === null) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'entry': TimelineAddEntryToJSON(value.entry),
|
|
85
|
+
'type': InstructionTypeToJSON(value.type),
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|