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
package/src/apis/PostApi.ts
CHANGED
|
@@ -113,15 +113,23 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
-
headerParameters["
|
|
116
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
-
headerParameters["
|
|
120
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
-
headerParameters["
|
|
124
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
128
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
132
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
125
133
|
}
|
|
126
134
|
|
|
127
135
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -140,6 +148,42 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
140
148
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
141
149
|
}
|
|
142
150
|
}
|
|
151
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
152
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
156
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
164
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
176
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
180
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
184
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
185
|
+
}
|
|
186
|
+
|
|
143
187
|
const response = await this.request({
|
|
144
188
|
path: `/graphql/{pathQueryId}/CreateRetweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
145
189
|
method: 'POST',
|
|
@@ -182,15 +226,23 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
182
226
|
}
|
|
183
227
|
|
|
184
228
|
if (this.configuration && this.configuration.apiKey) {
|
|
185
|
-
headerParameters["
|
|
229
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
186
230
|
}
|
|
187
231
|
|
|
188
232
|
if (this.configuration && this.configuration.apiKey) {
|
|
189
|
-
headerParameters["
|
|
233
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
190
234
|
}
|
|
191
235
|
|
|
192
236
|
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
-
headerParameters["
|
|
237
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
241
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
245
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
194
246
|
}
|
|
195
247
|
|
|
196
248
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -209,6 +261,42 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
209
261
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
210
262
|
}
|
|
211
263
|
}
|
|
264
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
265
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
269
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
273
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
281
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
285
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
289
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
293
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
297
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
298
|
+
}
|
|
299
|
+
|
|
212
300
|
const response = await this.request({
|
|
213
301
|
path: `/graphql/{pathQueryId}/CreateTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
214
302
|
method: 'POST',
|
|
@@ -251,15 +339,23 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
251
339
|
}
|
|
252
340
|
|
|
253
341
|
if (this.configuration && this.configuration.apiKey) {
|
|
254
|
-
headerParameters["
|
|
342
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
255
343
|
}
|
|
256
344
|
|
|
257
345
|
if (this.configuration && this.configuration.apiKey) {
|
|
258
|
-
headerParameters["
|
|
346
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
259
347
|
}
|
|
260
348
|
|
|
261
349
|
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
-
headerParameters["
|
|
350
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
354
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
358
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
263
359
|
}
|
|
264
360
|
|
|
265
361
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -278,6 +374,42 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
278
374
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
279
375
|
}
|
|
280
376
|
}
|
|
377
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
378
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
382
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
386
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
390
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
394
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
398
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
402
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
406
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
410
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
411
|
+
}
|
|
412
|
+
|
|
281
413
|
const response = await this.request({
|
|
282
414
|
path: `/graphql/{pathQueryId}/DeleteRetweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
283
415
|
method: 'POST',
|
|
@@ -320,15 +452,23 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
320
452
|
}
|
|
321
453
|
|
|
322
454
|
if (this.configuration && this.configuration.apiKey) {
|
|
323
|
-
headerParameters["
|
|
455
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
324
456
|
}
|
|
325
457
|
|
|
326
458
|
if (this.configuration && this.configuration.apiKey) {
|
|
327
|
-
headerParameters["
|
|
459
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
328
460
|
}
|
|
329
461
|
|
|
330
462
|
if (this.configuration && this.configuration.apiKey) {
|
|
331
|
-
headerParameters["
|
|
463
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
467
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
471
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
332
472
|
}
|
|
333
473
|
|
|
334
474
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -347,6 +487,42 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
347
487
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
348
488
|
}
|
|
349
489
|
}
|
|
490
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
491
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
495
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
499
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
503
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
507
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
511
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
515
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
519
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
523
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
524
|
+
}
|
|
525
|
+
|
|
350
526
|
const response = await this.request({
|
|
351
527
|
path: `/graphql/{pathQueryId}/DeleteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
352
528
|
method: 'POST',
|
|
@@ -389,15 +565,23 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
389
565
|
}
|
|
390
566
|
|
|
391
567
|
if (this.configuration && this.configuration.apiKey) {
|
|
392
|
-
headerParameters["
|
|
568
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
393
569
|
}
|
|
394
570
|
|
|
395
571
|
if (this.configuration && this.configuration.apiKey) {
|
|
396
|
-
headerParameters["
|
|
572
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
397
573
|
}
|
|
398
574
|
|
|
399
575
|
if (this.configuration && this.configuration.apiKey) {
|
|
400
|
-
headerParameters["
|
|
576
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
580
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
584
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
401
585
|
}
|
|
402
586
|
|
|
403
587
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -416,6 +600,42 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
416
600
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
417
601
|
}
|
|
418
602
|
}
|
|
603
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
604
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
608
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
612
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
616
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
620
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
624
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
628
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
632
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
636
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
637
|
+
}
|
|
638
|
+
|
|
419
639
|
const response = await this.request({
|
|
420
640
|
path: `/graphql/{pathQueryId}/FavoriteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
421
641
|
method: 'POST',
|
|
@@ -458,15 +678,23 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
458
678
|
}
|
|
459
679
|
|
|
460
680
|
if (this.configuration && this.configuration.apiKey) {
|
|
461
|
-
headerParameters["
|
|
681
|
+
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
462
682
|
}
|
|
463
683
|
|
|
464
684
|
if (this.configuration && this.configuration.apiKey) {
|
|
465
|
-
headerParameters["
|
|
685
|
+
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
466
686
|
}
|
|
467
687
|
|
|
468
688
|
if (this.configuration && this.configuration.apiKey) {
|
|
469
|
-
headerParameters["
|
|
689
|
+
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
693
|
+
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
697
|
+
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
470
698
|
}
|
|
471
699
|
|
|
472
700
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -485,6 +713,42 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
485
713
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
486
714
|
}
|
|
487
715
|
}
|
|
716
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
717
|
+
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
721
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
725
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
729
|
+
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
733
|
+
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
737
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
741
|
+
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
745
|
+
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
749
|
+
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
750
|
+
}
|
|
751
|
+
|
|
488
752
|
const response = await this.request({
|
|
489
753
|
path: `/graphql/{pathQueryId}/UnfavoriteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
490
754
|
method: 'POST',
|