twitter-openapi-typescript-generated 0.0.10 → 0.0.12
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 +29 -4
- package/LICENSE +31 -0
- package/{LICENSE.txt → LICENSE.AGPL} +3 -3
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +87 -19
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/OtherApi.d.ts.map +1 -1
- package/dist/apis/OtherApi.js +44 -10
- package/dist/apis/OtherApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +265 -61
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +1 -2
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +480 -112
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -0
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +93 -19
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +0 -1
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +216 -52
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/apis/UsersApi.d.ts.map +1 -1
- package/dist/apis/UsersApi.js +44 -10
- package/dist/apis/UsersApi.js.map +1 -1
- package/dist/apis/V11GetApi.d.ts.map +1 -1
- package/dist/apis/V11GetApi.js +87 -19
- package/dist/apis/V11GetApi.js.map +1 -1
- package/dist/apis/V11PostApi.d.ts.map +1 -1
- package/dist/apis/V11PostApi.js +73 -7
- package/dist/apis/V11PostApi.js.map +1 -1
- package/dist/apis/V20GetApi.d.ts.map +1 -1
- package/dist/apis/V20GetApi.js +44 -10
- package/dist/apis/V20GetApi.js.map +1 -1
- package/dist/models/AdditionalMediaInfo.d.ts +32 -0
- package/dist/models/AdditionalMediaInfo.d.ts.map +1 -0
- package/dist/models/AdditionalMediaInfo.js +51 -0
- package/dist/models/AdditionalMediaInfo.js.map +1 -0
- package/dist/models/Callback.d.ts +32 -0
- package/dist/models/Callback.d.ts.map +1 -0
- package/dist/models/Callback.js +51 -0
- package/dist/models/Callback.js.map +1 -0
- package/dist/models/ClientEventInfo.d.ts +46 -0
- package/dist/models/ClientEventInfo.d.ts.map +1 -0
- package/dist/models/ClientEventInfo.js +55 -0
- package/dist/models/ClientEventInfo.js.map +1 -0
- package/dist/models/ContentEntryType.d.ts +1 -1
- package/dist/models/ContentEntryType.d.ts.map +1 -1
- package/dist/models/ContentItemType.d.ts +1 -1
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentUnion.d.ts +1 -1
- package/dist/models/ContentUnion.d.ts.map +1 -1
- package/dist/models/CoverCta.d.ts +66 -0
- package/dist/models/CoverCta.d.ts.map +1 -0
- package/dist/models/CoverCta.js +71 -0
- package/dist/models/CoverCta.js.map +1 -0
- package/dist/models/CtaClientEventInfo.d.ts +39 -0
- package/dist/models/CtaClientEventInfo.d.ts.map +1 -0
- package/dist/models/CtaClientEventInfo.js +57 -0
- package/dist/models/CtaClientEventInfo.js.map +1 -0
- package/dist/models/CursorType.d.ts +1 -1
- package/dist/models/CursorType.d.ts.map +1 -1
- package/dist/models/DeleteRetweet.d.ts +33 -0
- package/dist/models/DeleteRetweet.d.ts.map +1 -0
- package/dist/models/DeleteRetweet.js +52 -0
- package/dist/models/DeleteRetweet.js.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
- package/dist/models/DeleteRetweetResponseResult.js +52 -0
- package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
- package/dist/models/ErrorResponse.d.ts +33 -0
- package/dist/models/ErrorResponse.d.ts.map +1 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorResponse.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +39 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -0
- package/dist/models/ExtMediaAvailability.js +57 -0
- package/dist/models/ExtMediaAvailability.js.map +1 -0
- package/dist/models/ExtendedEntities.d.ts +3 -3
- package/dist/models/ExtendedEntities.d.ts.map +1 -1
- package/dist/models/ExtendedEntities.js +3 -3
- package/dist/models/ExtendedEntities.js.map +1 -1
- package/dist/models/Extensions.d.ts +57 -0
- package/dist/models/Extensions.d.ts.map +1 -0
- package/dist/models/Extensions.js +64 -0
- package/dist/models/Extensions.js.map +1 -0
- package/dist/models/GetBookmarks200Response.d.ts +1 -1
- package/dist/models/GetBookmarks200Response.d.ts.map +1 -1
- package/dist/models/GetFavoriters200Response.d.ts +1 -1
- package/dist/models/GetFavoriters200Response.d.ts.map +1 -1
- package/dist/models/GetFollowers200Response.d.ts +1 -1
- package/dist/models/GetFollowers200Response.d.ts.map +1 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +1 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetLikes200Response.d.ts +1 -1
- package/dist/models/GetLikes200Response.d.ts.map +1 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +1 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +1 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +1 -1
- package/dist/models/GetRetweeters200Response.d.ts +1 -1
- package/dist/models/GetRetweeters200Response.d.ts.map +1 -1
- package/dist/models/GetSearchTimeline200Response.d.ts +1 -1
- package/dist/models/GetSearchTimeline200Response.d.ts.map +1 -1
- package/dist/models/GetTweetDetail200Response.d.ts +1 -1
- package/dist/models/GetTweetDetail200Response.d.ts.map +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -1
- package/dist/models/GetUserByRestId200Response.d.ts +1 -1
- package/dist/models/GetUserByRestId200Response.d.ts.map +1 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +1 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +1 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts +1 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +1 -1
- package/dist/models/InstructionType.d.ts +2 -1
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +2 -1
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +4 -1
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +5 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +1 -1
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemResult.d.ts +1 -1
- package/dist/models/ItemResult.d.ts.map +1 -1
- package/dist/models/ItemResult.js +1 -2
- package/dist/models/ItemResult.js.map +1 -1
- package/dist/models/ListTweetsTimeline.d.ts +1 -1
- package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
- package/dist/models/ListTweetsTimeline.js +2 -2
- package/dist/models/ListTweetsTimeline.js.map +1 -1
- package/dist/models/Media.d.ts +15 -15
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +14 -7
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +131 -0
- package/dist/models/MediaExtended.d.ts.map +1 -0
- package/dist/models/MediaExtended.js +103 -0
- package/dist/models/MediaExtended.js.map +1 -0
- package/dist/models/MediaOriginalInfo.d.ts +5 -6
- package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
- package/dist/models/MediaOriginalInfo.js +7 -4
- package/dist/models/MediaOriginalInfo.js.map +1 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -0
- package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +1 -0
- package/dist/models/MediaOriginalInfoFocusRect.js +60 -0
- package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -0
- package/dist/models/MediaSize.d.ts +52 -0
- package/dist/models/MediaSize.d.ts.map +1 -0
- package/dist/models/MediaSize.js +64 -0
- package/dist/models/MediaSize.js.map +1 -0
- package/dist/models/MediaSizes.d.ts +51 -0
- package/dist/models/MediaSizes.d.ts.map +1 -0
- package/dist/models/MediaSizes.js +61 -0
- package/dist/models/MediaSizes.js.map +1 -0
- package/dist/models/MediaStats.d.ts +32 -0
- package/dist/models/MediaStats.d.ts.map +1 -0
- package/dist/models/MediaStats.js +51 -0
- package/dist/models/MediaStats.js.map +1 -0
- package/dist/models/MediaVideoInfo.d.ts +45 -0
- package/dist/models/MediaVideoInfo.d.ts.map +1 -0
- package/dist/models/MediaVideoInfo.js +58 -0
- package/dist/models/MediaVideoInfo.js.map +1 -0
- package/dist/models/MediaVideoInfoVariant.d.ts +44 -0
- package/dist/models/MediaVideoInfoVariant.d.ts.map +1 -0
- package/dist/models/MediaVideoInfoVariant.js +57 -0
- package/dist/models/MediaVideoInfoVariant.js.map +1 -0
- package/dist/models/ModuleEntry.d.ts +3 -4
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/ModuleEntry.js +3 -2
- package/dist/models/ModuleEntry.js.map +1 -1
- package/dist/models/Other200Response.d.ts +1 -1
- package/dist/models/Other200Response.d.ts.map +1 -1
- package/dist/models/PostCreateRetweet200Response.d.ts +1 -1
- package/dist/models/PostCreateRetweet200Response.d.ts.map +1 -1
- package/dist/models/PostCreateTweet200Response.d.ts +1 -1
- package/dist/models/PostCreateTweet200Response.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
- package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
- package/dist/models/PostDeleteRetweet200Response.d.ts +1 -1
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +1 -1
- package/dist/models/PostDeleteTweet200Response.d.ts +1 -1
- package/dist/models/PostDeleteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts +1 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +1 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +1 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +1 -1
- package/dist/models/SelfThread.d.ts +32 -0
- package/dist/models/SelfThread.d.ts.map +1 -0
- package/dist/models/SelfThread.js +51 -0
- package/dist/models/SelfThread.js.map +1 -0
- package/dist/models/Session.d.ts +8 -1
- package/dist/models/Session.d.ts.map +1 -1
- package/dist/models/Session.js +7 -1
- package/dist/models/Session.js.map +1 -1
- package/dist/models/Text.d.ts +39 -0
- package/dist/models/Text.d.ts.map +1 -0
- package/dist/models/Text.js +55 -0
- package/dist/models/Text.js.map +1 -0
- package/dist/models/TextEntity.d.ts +45 -0
- package/dist/models/TextEntity.d.ts.map +1 -0
- package/dist/models/TextEntity.js +58 -0
- package/dist/models/TextEntity.js.map +1 -0
- package/dist/models/TextEntityRef.d.ts +58 -0
- package/dist/models/TextEntityRef.d.ts.map +1 -0
- package/dist/models/TextEntityRef.js +69 -0
- package/dist/models/TextEntityRef.js.map +1 -0
- package/dist/models/TimelineCoverBehavior.d.ts +39 -0
- package/dist/models/TimelineCoverBehavior.d.ts.map +1 -0
- package/dist/models/TimelineCoverBehavior.js +57 -0
- package/dist/models/TimelineCoverBehavior.js.map +1 -0
- package/dist/models/TimelineHalfCover.d.ts +85 -0
- package/dist/models/TimelineHalfCover.d.ts.map +1 -0
- package/dist/models/TimelineHalfCover.js +84 -0
- package/dist/models/TimelineHalfCover.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +2 -2
- package/dist/models/TimelineShowAlert.d.ts.map +1 -1
- package/dist/models/TimelineShowCover.d.ts +47 -0
- package/dist/models/TimelineShowCover.d.ts.map +1 -0
- package/dist/models/TimelineShowCover.js +60 -0
- package/dist/models/TimelineShowCover.js.map +1 -0
- package/dist/models/TimelineTerminateTimeline.d.ts +1 -1
- package/dist/models/TimelineTerminateTimeline.d.ts.map +1 -1
- package/dist/models/TimelineTimelineItem.d.ts +3 -4
- package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
- package/dist/models/TimelineTimelineItem.js +3 -2
- package/dist/models/TimelineTimelineItem.js.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +9 -1
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.js +8 -1
- package/dist/models/TimelineTimelineModule.js.map +1 -1
- package/dist/models/TimelineUser.d.ts +10 -1
- package/dist/models/TimelineUser.d.ts.map +1 -1
- package/dist/models/TimelineUser.js +9 -1
- package/dist/models/TimelineUser.js.map +1 -1
- package/dist/models/Tweet.d.ts +11 -5
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +7 -7
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardLegacy.d.ts +3 -3
- package/dist/models/TweetCardLegacy.d.ts.map +1 -1
- package/dist/models/TweetCardLegacy.js +3 -3
- package/dist/models/TweetCardLegacy.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValue.js +55 -0
- package/dist/models/TweetCardLegacyBindingValue.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -0
- package/dist/models/{TweetCardLegacyBindingValuesInnerValue.js → TweetCardLegacyBindingValueData.js} +12 -12
- package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -0
- package/dist/models/TweetEditControl.d.ts +13 -0
- package/dist/models/TweetEditControl.d.ts.map +1 -1
- package/dist/models/TweetEditControl.js +5 -0
- package/dist/models/TweetEditControl.js.map +1 -1
- package/dist/models/TweetEditControlInitial.d.ts +50 -0
- package/dist/models/TweetEditControlInitial.d.ts.map +1 -0
- package/dist/models/TweetEditControlInitial.js +60 -0
- package/dist/models/TweetEditControlInitial.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +3 -3
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -3
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetUnion.d.ts +1 -1
- package/dist/models/TweetUnion.d.ts.map +1 -1
- package/dist/models/TweetView.d.ts +45 -0
- package/dist/models/TweetView.d.ts.map +1 -0
- package/dist/models/{TweetViews.js → TweetView.js} +20 -13
- package/dist/models/TweetView.js.map +1 -0
- package/dist/models/TypeName.d.ts +2 -1
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/UserResults.d.ts +1 -1
- package/dist/models/UserResults.d.ts.map +1 -1
- package/dist/models/UserResults.js +2 -2
- package/dist/models/UserResults.js.map +1 -1
- package/dist/models/UserUnion.d.ts +1 -1
- package/dist/models/UserUnion.d.ts.map +1 -1
- package/dist/models/index.d.ts +29 -4
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +29 -4
- package/dist/models/index.js.map +1 -1
- package/dist/runtime.d.ts +9 -9
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/apis/DefaultApi.ts +94 -6
- package/src/apis/OtherApi.ts +47 -3
- package/src/apis/PostApi.ts +282 -18
- package/src/apis/TweetApi.ts +526 -51
- package/src/apis/UserApi.ts +103 -6
- package/src/apis/UserListApi.ts +235 -24
- package/src/apis/UsersApi.ts +47 -3
- package/src/apis/V11GetApi.ts +94 -6
- package/src/apis/V11PostApi.ts +94 -6
- package/src/apis/V20GetApi.ts +47 -3
- package/src/models/AdditionalMediaInfo.ts +66 -0
- package/src/models/Callback.ts +66 -0
- package/src/models/ClientEventInfo.ts +81 -0
- package/src/models/CoverCta.ts +129 -0
- package/src/models/CtaClientEventInfo.ts +76 -0
- package/src/models/DeleteRetweet.ts +73 -0
- package/src/models/DeleteRetweetResponseResult.ts +72 -0
- package/src/models/ErrorResponse.ts +73 -0
- package/src/models/ExtMediaAvailability.ts +75 -0
- package/src/models/ExtendedEntities.ts +9 -9
- package/src/models/Extensions.ts +109 -0
- package/src/models/InstructionType.ts +2 -1
- package/src/models/InstructionUnion.ts +12 -1
- package/src/models/ItemResult.ts +2 -3
- package/src/models/ListTweetsTimeline.ts +2 -3
- package/src/models/Media.ts +27 -17
- package/src/models/MediaExtended.ts +236 -0
- package/src/models/MediaOriginalInfo.ts +17 -8
- package/src/models/MediaOriginalInfoFocusRect.ts +93 -0
- package/src/models/MediaSize.ts +95 -0
- package/src/models/MediaSizes.ts +100 -0
- package/src/models/MediaStats.ts +66 -0
- package/src/models/MediaVideoInfo.ts +90 -0
- package/src/models/MediaVideoInfoVariant.ts +83 -0
- package/src/models/ModuleEntry.ts +10 -4
- package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
- package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
- package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
- package/src/models/{TweetLegacySelfThread.ts → SelfThread.ts} +9 -9
- package/src/models/Session.ts +11 -1
- package/src/models/Text.ts +82 -0
- package/src/models/TextEntity.ts +91 -0
- package/src/models/TextEntityRef.ts +102 -0
- package/src/models/TimelineCoverBehavior.ts +76 -0
- package/src/models/TimelineHalfCover.ts +157 -0
- package/src/models/TimelineShowCover.ts +103 -0
- package/src/models/TimelineTimelineItem.ts +10 -4
- package/src/models/TimelineTimelineModule.ts +12 -1
- package/src/models/TimelineUser.ts +13 -1
- package/src/models/Tweet.ts +21 -15
- package/src/models/TweetCardLegacy.ts +9 -9
- package/src/models/TweetCardLegacyBindingValue.ts +82 -0
- package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts} +12 -12
- package/src/models/TweetEditControl.ts +23 -0
- package/src/models/TweetEditControlInitial.ts +93 -0
- package/src/models/TweetLegacy.ts +9 -9
- package/src/models/{TweetViews.ts → TweetView.ts} +23 -12
- package/src/models/TypeName.ts +1 -0
- package/src/models/UserResults.ts +2 -3
- package/src/models/index.ts +29 -4
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/.vscode/launch.json +8 -0
- package/twitter-openapi/.vscode/tasks.json +3 -0
- package/twitter-openapi/LICENSE +31 -0
- package/twitter-openapi/{LICENSE.txt → LICENSE.AGPL} +3 -3
- package/twitter-openapi/README.md +4 -1
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5019 -36
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +6817 -36
- package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
- package/twitter-openapi/src/config/placeholder.json +145 -112
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
- package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
- package/twitter-openapi/src/openapi/schemas/content.yaml +20 -8
- package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +133 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +306 -107
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
- package/twitter-openapi/test/python/replace.py +23 -0
- package/twitter-openapi/test/python/test_serialize.py +191 -91
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/build.py +35 -31
- package/twitter-openapi/tools/build_config.py +7 -10
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +0 -39
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInner.js +0 -55
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +0 -50
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +0 -1
- package/dist/models/TweetLegacySelfThread.d.ts +0 -32
- package/dist/models/TweetLegacySelfThread.d.ts.map +0 -1
- package/dist/models/TweetLegacySelfThread.js +0 -51
- package/dist/models/TweetLegacySelfThread.js.map +0 -1
- package/dist/models/TweetViews.d.ts +0 -38
- package/dist/models/TweetViews.d.ts.map +0 -1
- package/dist/models/TweetViews.js.map +0 -1
- package/src/models/TweetCardLegacyBindingValuesInner.ts +0 -82
- package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
- package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
- package/twitter-openapi/dist/compatible/paths/other.yaml +0 -97
- package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
- package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
- package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
- package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
- package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
- package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
- package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
- package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -201
- package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -156
- package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -323
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -22
- package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
- package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
- package/twitter-openapi/dist/docs/paths/other.yaml +0 -97
- package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
- package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
- package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
- package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
- 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/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/docs/response/error.yaml +0 -90
- package/twitter-openapi/dist/docs/schemas/content.yaml +0 -201
- package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
- package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -156
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -323
- package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -22
- package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
|
@@ -0,0 +1,129 @@
|
|
|
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 { Callback } from './Callback';
|
|
17
|
+
import {
|
|
18
|
+
CallbackFromJSON,
|
|
19
|
+
CallbackFromJSONTyped,
|
|
20
|
+
CallbackToJSON,
|
|
21
|
+
} from './Callback';
|
|
22
|
+
import type { CtaClientEventInfo } from './CtaClientEventInfo';
|
|
23
|
+
import {
|
|
24
|
+
CtaClientEventInfoFromJSON,
|
|
25
|
+
CtaClientEventInfoFromJSONTyped,
|
|
26
|
+
CtaClientEventInfoToJSON,
|
|
27
|
+
} from './CtaClientEventInfo';
|
|
28
|
+
import type { TimelineCoverBehavior } from './TimelineCoverBehavior';
|
|
29
|
+
import {
|
|
30
|
+
TimelineCoverBehaviorFromJSON,
|
|
31
|
+
TimelineCoverBehaviorFromJSONTyped,
|
|
32
|
+
TimelineCoverBehaviorToJSON,
|
|
33
|
+
} from './TimelineCoverBehavior';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface CoverCta
|
|
39
|
+
*/
|
|
40
|
+
export interface CoverCta {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CoverCta
|
|
45
|
+
*/
|
|
46
|
+
text?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CoverCta
|
|
51
|
+
*/
|
|
52
|
+
buttonStyle?: CoverCtaButtonStyleEnum;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<Callback>}
|
|
56
|
+
* @memberof CoverCta
|
|
57
|
+
*/
|
|
58
|
+
callbacks: Array<Callback>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {CtaClientEventInfo}
|
|
62
|
+
* @memberof CoverCta
|
|
63
|
+
*/
|
|
64
|
+
clientEventInfo: CtaClientEventInfo;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {TimelineCoverBehavior}
|
|
68
|
+
* @memberof CoverCta
|
|
69
|
+
*/
|
|
70
|
+
ctaBehavior: TimelineCoverBehavior;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const CoverCtaButtonStyleEnum = {
|
|
78
|
+
Primary: 'Primary'
|
|
79
|
+
} as const;
|
|
80
|
+
export type CoverCtaButtonStyleEnum = typeof CoverCtaButtonStyleEnum[keyof typeof CoverCtaButtonStyleEnum];
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the CoverCta interface.
|
|
85
|
+
*/
|
|
86
|
+
export function instanceOfCoverCta(value: object): boolean {
|
|
87
|
+
let isInstance = true;
|
|
88
|
+
isInstance = isInstance && "callbacks" in value;
|
|
89
|
+
isInstance = isInstance && "clientEventInfo" in value;
|
|
90
|
+
isInstance = isInstance && "ctaBehavior" in value;
|
|
91
|
+
|
|
92
|
+
return isInstance;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function CoverCtaFromJSON(json: any): CoverCta {
|
|
96
|
+
return CoverCtaFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function CoverCtaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoverCta {
|
|
100
|
+
if ((json === undefined) || (json === null)) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'text': !exists(json, 'Text') ? undefined : json['Text'],
|
|
106
|
+
'buttonStyle': !exists(json, 'buttonStyle') ? undefined : json['buttonStyle'],
|
|
107
|
+
'callbacks': ((json['callbacks'] as Array<any>).map(CallbackFromJSON)),
|
|
108
|
+
'clientEventInfo': CtaClientEventInfoFromJSON(json['clientEventInfo']),
|
|
109
|
+
'ctaBehavior': TimelineCoverBehaviorFromJSON(json['ctaBehavior']),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function CoverCtaToJSON(value?: CoverCta | null): any {
|
|
114
|
+
if (value === undefined) {
|
|
115
|
+
return undefined;
|
|
116
|
+
}
|
|
117
|
+
if (value === null) {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'Text': value.text,
|
|
123
|
+
'buttonStyle': value.buttonStyle,
|
|
124
|
+
'callbacks': ((value.callbacks as Array<any>).map(CallbackToJSON)),
|
|
125
|
+
'clientEventInfo': CtaClientEventInfoToJSON(value.clientEventInfo),
|
|
126
|
+
'ctaBehavior': TimelineCoverBehaviorToJSON(value.ctaBehavior),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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 CtaClientEventInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface CtaClientEventInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CtaClientEventInfo
|
|
26
|
+
*/
|
|
27
|
+
action: CtaClientEventInfoActionEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const CtaClientEventInfoActionEnum = {
|
|
35
|
+
PrimaryCta: 'primary_cta'
|
|
36
|
+
} as const;
|
|
37
|
+
export type CtaClientEventInfoActionEnum = typeof CtaClientEventInfoActionEnum[keyof typeof CtaClientEventInfoActionEnum];
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the CtaClientEventInfo interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfCtaClientEventInfo(value: object): boolean {
|
|
44
|
+
let isInstance = true;
|
|
45
|
+
isInstance = isInstance && "action" in value;
|
|
46
|
+
|
|
47
|
+
return isInstance;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function CtaClientEventInfoFromJSON(json: any): CtaClientEventInfo {
|
|
51
|
+
return CtaClientEventInfoFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function CtaClientEventInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CtaClientEventInfo {
|
|
55
|
+
if ((json === undefined) || (json === null)) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'action': json['action'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CtaClientEventInfoToJSON(value?: CtaClientEventInfo | null): any {
|
|
65
|
+
if (value === undefined) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
if (value === null) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'action': value.action,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -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 { Retweet } from './Retweet';
|
|
17
|
+
import {
|
|
18
|
+
RetweetFromJSON,
|
|
19
|
+
RetweetFromJSONTyped,
|
|
20
|
+
RetweetToJSON,
|
|
21
|
+
} from './Retweet';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DeleteRetweet
|
|
27
|
+
*/
|
|
28
|
+
export interface DeleteRetweet {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Retweet>}
|
|
32
|
+
* @memberof DeleteRetweet
|
|
33
|
+
*/
|
|
34
|
+
result: Array<Retweet>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DeleteRetweet interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfDeleteRetweet(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "result" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DeleteRetweetFromJSON(json: any): DeleteRetweet {
|
|
48
|
+
return DeleteRetweetFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DeleteRetweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRetweet {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'result': ((json['result'] as Array<any>).map(RetweetFromJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function DeleteRetweetToJSON(value?: DeleteRetweet | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'result': ((value.result as Array<any>).map(RetweetToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { DeleteRetweet } from './DeleteRetweet';
|
|
17
|
+
import {
|
|
18
|
+
DeleteRetweetFromJSON,
|
|
19
|
+
DeleteRetweetFromJSONTyped,
|
|
20
|
+
DeleteRetweetToJSON,
|
|
21
|
+
} from './DeleteRetweet';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DeleteRetweetResponseResult
|
|
27
|
+
*/
|
|
28
|
+
export interface DeleteRetweetResponseResult {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {DeleteRetweet}
|
|
32
|
+
* @memberof DeleteRetweetResponseResult
|
|
33
|
+
*/
|
|
34
|
+
retweetResults?: DeleteRetweet;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DeleteRetweetResponseResult interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfDeleteRetweetResponseResult(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
|
|
43
|
+
return isInstance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function DeleteRetweetResponseResultFromJSON(json: any): DeleteRetweetResponseResult {
|
|
47
|
+
return DeleteRetweetResponseResultFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function DeleteRetweetResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteRetweetResponseResult {
|
|
51
|
+
if ((json === undefined) || (json === null)) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'retweetResults': !exists(json, 'retweet_results') ? undefined : DeleteRetweetFromJSON(json['retweet_results']),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DeleteRetweetResponseResultToJSON(value?: DeleteRetweetResponseResult | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'retweet_results': DeleteRetweetToJSON(value.retweetResults),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -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 { Errors } from './Errors';
|
|
17
|
+
import {
|
|
18
|
+
ErrorsFromJSON,
|
|
19
|
+
ErrorsFromJSONTyped,
|
|
20
|
+
ErrorsToJSON,
|
|
21
|
+
} from './Errors';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ErrorResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface ErrorResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Errors}
|
|
32
|
+
* @memberof ErrorResponse
|
|
33
|
+
*/
|
|
34
|
+
errors: Errors;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ErrorResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfErrorResponse(value: object): boolean {
|
|
41
|
+
let isInstance = true;
|
|
42
|
+
isInstance = isInstance && "errors" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ErrorResponseFromJSON(json: any): ErrorResponse {
|
|
48
|
+
return ErrorResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'errors': ErrorsFromJSON(json['errors']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ErrorResponseToJSON(value?: ErrorResponse | null): any {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'errors': ErrorsToJSON(value.errors),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ExtMediaAvailability
|
|
20
|
+
*/
|
|
21
|
+
export interface ExtMediaAvailability {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExtMediaAvailability
|
|
26
|
+
*/
|
|
27
|
+
status?: ExtMediaAvailabilityStatusEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const ExtMediaAvailabilityStatusEnum = {
|
|
35
|
+
Available: 'Available'
|
|
36
|
+
} as const;
|
|
37
|
+
export type ExtMediaAvailabilityStatusEnum = typeof ExtMediaAvailabilityStatusEnum[keyof typeof ExtMediaAvailabilityStatusEnum];
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ExtMediaAvailability interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfExtMediaAvailability(value: object): boolean {
|
|
44
|
+
let isInstance = true;
|
|
45
|
+
|
|
46
|
+
return isInstance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ExtMediaAvailabilityFromJSON(json: any): ExtMediaAvailability {
|
|
50
|
+
return ExtMediaAvailabilityFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ExtMediaAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtMediaAvailability {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'status': !exists(json, 'status') ? undefined : json['status'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ExtMediaAvailabilityToJSON(value?: ExtMediaAvailability | null): any {
|
|
64
|
+
if (value === undefined) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
if (value === null) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'status': value.status,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { MediaExtended } from './MediaExtended';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from './
|
|
18
|
+
MediaExtendedFromJSON,
|
|
19
|
+
MediaExtendedFromJSONTyped,
|
|
20
|
+
MediaExtendedToJSON,
|
|
21
|
+
} from './MediaExtended';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
export interface ExtendedEntities {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {Array<
|
|
31
|
+
* @type {Array<MediaExtended>}
|
|
32
32
|
* @memberof ExtendedEntities
|
|
33
33
|
*/
|
|
34
|
-
media: Array<
|
|
34
|
+
media: Array<MediaExtended>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -54,7 +54,7 @@ export function ExtendedEntitiesFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
54
54
|
}
|
|
55
55
|
return {
|
|
56
56
|
|
|
57
|
-
'media': ((json['media'] as Array<any>).map(
|
|
57
|
+
'media': ((json['media'] as Array<any>).map(MediaExtendedFromJSON)),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ export function ExtendedEntitiesToJSON(value?: ExtendedEntities | null): any {
|
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
69
|
|
|
70
|
-
'media': ((value.media as Array<any>).map(
|
|
70
|
+
'media': ((value.media as Array<any>).map(MediaExtendedToJSON)),
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Twitter OpenAPI
|
|
5
|
+
* Twitter OpenAPI(Swagger) specification
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
* Contact: yuki@yuki0311.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Tracing } from './Tracing';
|
|
17
|
+
import {
|
|
18
|
+
TracingFromJSON,
|
|
19
|
+
TracingFromJSONTyped,
|
|
20
|
+
TracingToJSON,
|
|
21
|
+
} from './Tracing';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Extensions
|
|
27
|
+
*/
|
|
28
|
+
export interface Extensions {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Extensions
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Extensions
|
|
39
|
+
*/
|
|
40
|
+
kind: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Extensions
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Extensions
|
|
51
|
+
*/
|
|
52
|
+
source: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Tracing}
|
|
56
|
+
* @memberof Extensions
|
|
57
|
+
*/
|
|
58
|
+
tracing: Tracing;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the Extensions interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfExtensions(value: object): boolean {
|
|
65
|
+
let isInstance = true;
|
|
66
|
+
isInstance = isInstance && "code" in value;
|
|
67
|
+
isInstance = isInstance && "kind" in value;
|
|
68
|
+
isInstance = isInstance && "name" in value;
|
|
69
|
+
isInstance = isInstance && "source" in value;
|
|
70
|
+
isInstance = isInstance && "tracing" in value;
|
|
71
|
+
|
|
72
|
+
return isInstance;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ExtensionsFromJSON(json: any): Extensions {
|
|
76
|
+
return ExtensionsFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ExtensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Extensions {
|
|
80
|
+
if ((json === undefined) || (json === null)) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'code': json['code'],
|
|
86
|
+
'kind': json['kind'],
|
|
87
|
+
'name': json['name'],
|
|
88
|
+
'source': json['source'],
|
|
89
|
+
'tracing': TracingFromJSON(json['tracing']),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function ExtensionsToJSON(value?: Extensions | null): any {
|
|
94
|
+
if (value === undefined) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
if (value === null) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'code': value.code,
|
|
103
|
+
'kind': value.kind,
|
|
104
|
+
'name': value.name,
|
|
105
|
+
'source': value.source,
|
|
106
|
+
'tracing': TracingToJSON(value.tracing),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -24,7 +24,8 @@ export const InstructionType = {
|
|
|
24
24
|
TimelinePinEntry: 'TimelinePinEntry',
|
|
25
25
|
TimelineReplaceEntry: 'TimelineReplaceEntry',
|
|
26
26
|
TimelineShowAlert: 'TimelineShowAlert',
|
|
27
|
-
TimelineTerminateTimeline: 'TimelineTerminateTimeline'
|
|
27
|
+
TimelineTerminateTimeline: 'TimelineTerminateTimeline',
|
|
28
|
+
TimelineShowCover: 'TimelineShowCover'
|
|
28
29
|
} as const;
|
|
29
30
|
export type InstructionType = typeof InstructionType[keyof typeof InstructionType];
|
|
30
31
|
|