twitter-openapi-typescript-generated 0.0.13 → 0.0.14
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 +1 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/models/NoteTweetResultMedia.ts +11 -4
- package/src/models/NoteTweetResultMediaInlineMedia.ts +75 -0
- package/src/models/index.ts +1 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/gen.ps1 +2 -2
- package/tools/win/replace.py +3 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +11 -1
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +11 -1
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +13 -1
- package/twitter-openapi/test/python/test_serialize.py +13 -23
- package/dist/apis/DefaultApi.d.ts +0 -45
- package/dist/apis/DefaultApi.d.ts.map +0 -1
- package/dist/apis/DefaultApi.js +0 -315
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/OtherApi.d.ts +0 -27
- package/dist/apis/OtherApi.d.ts.map +0 -1
- package/dist/apis/OtherApi.js +0 -183
- package/dist/apis/OtherApi.js.map +0 -1
- package/dist/apis/PostApi.d.ts +0 -91
- package/dist/apis/PostApi.d.ts.map +0 -1
- package/dist/apis/PostApi.js +0 -741
- package/dist/apis/PostApi.js.map +0 -1
- package/dist/apis/TweetApi.d.ts +0 -163
- package/dist/apis/TweetApi.d.ts.map +0 -1
- package/dist/apis/TweetApi.js +0 -1374
- package/dist/apis/TweetApi.js.map +0 -1
- package/dist/apis/UserApi.d.ts +0 -46
- package/dist/apis/UserApi.d.ts.map +0 -1
- package/dist/apis/UserApi.js +0 -321
- package/dist/apis/UserApi.js.map +0 -1
- package/dist/apis/UserListApi.d.ts +0 -84
- package/dist/apis/UserListApi.d.ts.map +0 -1
- package/dist/apis/UserListApi.js +0 -666
- package/dist/apis/UserListApi.js.map +0 -1
- package/dist/apis/UsersApi.d.ts +0 -32
- package/dist/apis/UsersApi.d.ts.map +0 -1
- package/dist/apis/UsersApi.js +0 -198
- package/dist/apis/UsersApi.js.map +0 -1
- package/dist/apis/V11GetApi.d.ts +0 -61
- package/dist/apis/V11GetApi.d.ts.map +0 -1
- package/dist/apis/V11GetApi.js +0 -418
- package/dist/apis/V11GetApi.js.map +0 -1
- package/dist/apis/V11PostApi.d.ts +0 -66
- package/dist/apis/V11PostApi.d.ts.map +0 -1
- package/dist/apis/V11PostApi.js +0 -472
- package/dist/apis/V11PostApi.js.map +0 -1
- package/dist/apis/V20GetApi.d.ts +0 -65
- package/dist/apis/V20GetApi.d.ts.map +0 -1
- package/dist/apis/V20GetApi.js +0 -402
- package/dist/apis/V20GetApi.js.map +0 -1
- package/dist/apis/index.d.ts +0 -11
- package/dist/apis/index.d.ts.map +0 -1
- package/dist/apis/index.js +0 -29
- package/dist/apis/index.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/models/AdditionalMediaInfo.d.ts +0 -32
- package/dist/models/AdditionalMediaInfo.d.ts.map +0 -1
- package/dist/models/AdditionalMediaInfo.js +0 -51
- package/dist/models/AdditionalMediaInfo.js.map +0 -1
- package/dist/models/BirdwatchEntity.d.ts +0 -45
- package/dist/models/BirdwatchEntity.d.ts.map +0 -1
- package/dist/models/BirdwatchEntity.js +0 -58
- package/dist/models/BirdwatchEntity.js.map +0 -1
- package/dist/models/BirdwatchEntityRef.d.ts +0 -58
- package/dist/models/BirdwatchEntityRef.d.ts.map +0 -1
- package/dist/models/BirdwatchEntityRef.js +0 -69
- package/dist/models/BirdwatchEntityRef.js.map +0 -1
- package/dist/models/BirdwatchPivot.d.ts +0 -91
- package/dist/models/BirdwatchPivot.d.ts.map +0 -1
- package/dist/models/BirdwatchPivot.js +0 -87
- package/dist/models/BirdwatchPivot.js.map +0 -1
- package/dist/models/BirdwatchPivotFooter.d.ts +0 -39
- package/dist/models/BirdwatchPivotFooter.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotFooter.js +0 -55
- package/dist/models/BirdwatchPivotFooter.js.map +0 -1
- package/dist/models/BirdwatchPivotNote.d.ts +0 -32
- package/dist/models/BirdwatchPivotNote.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotNote.js +0 -51
- package/dist/models/BirdwatchPivotNote.js.map +0 -1
- package/dist/models/BirdwatchPivotSubtitle.d.ts +0 -39
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +0 -1
- package/dist/models/BirdwatchPivotSubtitle.js +0 -55
- package/dist/models/BirdwatchPivotSubtitle.js.map +0 -1
- package/dist/models/BookmarksResponse.d.ts +0 -33
- package/dist/models/BookmarksResponse.d.ts.map +0 -1
- package/dist/models/BookmarksResponse.js +0 -52
- package/dist/models/BookmarksResponse.js.map +0 -1
- package/dist/models/BookmarksResponseData.d.ts +0 -33
- package/dist/models/BookmarksResponseData.d.ts.map +0 -1
- package/dist/models/BookmarksResponseData.js +0 -52
- package/dist/models/BookmarksResponseData.js.map +0 -1
- package/dist/models/BookmarksTimeline.d.ts +0 -33
- package/dist/models/BookmarksTimeline.d.ts.map +0 -1
- package/dist/models/BookmarksTimeline.js +0 -52
- package/dist/models/BookmarksTimeline.js.map +0 -1
- package/dist/models/Callback.d.ts +0 -32
- package/dist/models/Callback.d.ts.map +0 -1
- package/dist/models/Callback.js +0 -51
- package/dist/models/Callback.js.map +0 -1
- package/dist/models/ClientEventInfo.d.ts +0 -46
- package/dist/models/ClientEventInfo.d.ts.map +0 -1
- package/dist/models/ClientEventInfo.js +0 -55
- package/dist/models/ClientEventInfo.js.map +0 -1
- package/dist/models/CommunitiesActions.d.ts +0 -32
- package/dist/models/CommunitiesActions.d.ts.map +0 -1
- package/dist/models/CommunitiesActions.js +0 -51
- package/dist/models/CommunitiesActions.js.map +0 -1
- package/dist/models/ContentEntryType.d.ts +0 -25
- package/dist/models/ContentEntryType.d.ts.map +0 -1
- package/dist/models/ContentEntryType.js +0 -38
- package/dist/models/ContentEntryType.js.map +0 -1
- package/dist/models/ContentItemType.d.ts +0 -28
- package/dist/models/ContentItemType.d.ts.map +0 -1
- package/dist/models/ContentItemType.js +0 -41
- package/dist/models/ContentItemType.js.map +0 -1
- package/dist/models/ContentUnion.d.ts +0 -30
- package/dist/models/ContentUnion.d.ts.map +0 -1
- package/dist/models/ContentUnion.js +0 -70
- package/dist/models/ContentUnion.js.map +0 -1
- package/dist/models/CoverCta.d.ts +0 -66
- package/dist/models/CoverCta.d.ts.map +0 -1
- package/dist/models/CoverCta.js +0 -71
- package/dist/models/CoverCta.js.map +0 -1
- package/dist/models/CreateRetweet.d.ts +0 -33
- package/dist/models/CreateRetweet.d.ts.map +0 -1
- package/dist/models/CreateRetweet.js +0 -52
- package/dist/models/CreateRetweet.js.map +0 -1
- package/dist/models/CreateRetweetResponse.d.ts +0 -33
- package/dist/models/CreateRetweetResponse.d.ts.map +0 -1
- package/dist/models/CreateRetweetResponse.js +0 -52
- package/dist/models/CreateRetweetResponse.js.map +0 -1
- package/dist/models/CreateRetweetResponseData.d.ts +0 -33
- package/dist/models/CreateRetweetResponseData.d.ts.map +0 -1
- package/dist/models/CreateRetweetResponseData.js +0 -52
- package/dist/models/CreateRetweetResponseData.js.map +0 -1
- package/dist/models/CreateRetweetResponseResult.d.ts +0 -33
- package/dist/models/CreateRetweetResponseResult.d.ts.map +0 -1
- package/dist/models/CreateRetweetResponseResult.js +0 -52
- package/dist/models/CreateRetweetResponseResult.js.map +0 -1
- package/dist/models/CreateTweet.d.ts +0 -33
- package/dist/models/CreateTweet.d.ts.map +0 -1
- package/dist/models/CreateTweet.js +0 -52
- package/dist/models/CreateTweet.js.map +0 -1
- package/dist/models/CreateTweetResponse.d.ts +0 -33
- package/dist/models/CreateTweetResponse.d.ts.map +0 -1
- package/dist/models/CreateTweetResponse.js +0 -52
- package/dist/models/CreateTweetResponse.js.map +0 -1
- package/dist/models/CreateTweetResponseData.d.ts +0 -33
- package/dist/models/CreateTweetResponseData.d.ts.map +0 -1
- package/dist/models/CreateTweetResponseData.js +0 -52
- package/dist/models/CreateTweetResponseData.js.map +0 -1
- package/dist/models/CreateTweetResponseResult.d.ts +0 -33
- package/dist/models/CreateTweetResponseResult.d.ts.map +0 -1
- package/dist/models/CreateTweetResponseResult.js +0 -52
- package/dist/models/CreateTweetResponseResult.js.map +0 -1
- package/dist/models/CtaClientEventInfo.d.ts +0 -39
- package/dist/models/CtaClientEventInfo.d.ts.map +0 -1
- package/dist/models/CtaClientEventInfo.js +0 -57
- package/dist/models/CtaClientEventInfo.js.map +0 -1
- package/dist/models/CursorType.d.ts +0 -27
- package/dist/models/CursorType.d.ts.map +0 -1
- package/dist/models/CursorType.js +0 -40
- package/dist/models/CursorType.js.map +0 -1
- package/dist/models/DeleteRetweet.d.ts +0 -33
- package/dist/models/DeleteRetweet.d.ts.map +0 -1
- package/dist/models/DeleteRetweet.js +0 -52
- package/dist/models/DeleteRetweet.js.map +0 -1
- package/dist/models/DeleteRetweetResponse.d.ts +0 -33
- package/dist/models/DeleteRetweetResponse.d.ts.map +0 -1
- package/dist/models/DeleteRetweetResponse.js +0 -52
- package/dist/models/DeleteRetweetResponse.js.map +0 -1
- package/dist/models/DeleteRetweetResponseData.d.ts +0 -33
- package/dist/models/DeleteRetweetResponseData.d.ts.map +0 -1
- package/dist/models/DeleteRetweetResponseData.js +0 -52
- package/dist/models/DeleteRetweetResponseData.js.map +0 -1
- package/dist/models/DeleteRetweetResponseResult.d.ts +0 -33
- package/dist/models/DeleteRetweetResponseResult.d.ts.map +0 -1
- package/dist/models/DeleteRetweetResponseResult.js +0 -52
- package/dist/models/DeleteRetweetResponseResult.js.map +0 -1
- package/dist/models/DeleteTweetResponse.d.ts +0 -33
- package/dist/models/DeleteTweetResponse.d.ts.map +0 -1
- package/dist/models/DeleteTweetResponse.js +0 -52
- package/dist/models/DeleteTweetResponse.js.map +0 -1
- package/dist/models/DeleteTweetResponseData.d.ts +0 -33
- package/dist/models/DeleteTweetResponseData.d.ts.map +0 -1
- package/dist/models/DeleteTweetResponseData.js +0 -52
- package/dist/models/DeleteTweetResponseData.js.map +0 -1
- package/dist/models/DeleteTweetResponseResult.d.ts +0 -32
- package/dist/models/DeleteTweetResponseResult.d.ts.map +0 -1
- package/dist/models/DeleteTweetResponseResult.js +0 -51
- package/dist/models/DeleteTweetResponseResult.js.map +0 -1
- package/dist/models/Entities.d.ts +0 -64
- package/dist/models/Entities.d.ts.map +0 -1
- package/dist/models/Entities.js +0 -65
- package/dist/models/Entities.js.map +0 -1
- package/dist/models/ErrorExtensions.d.ts +0 -63
- package/dist/models/ErrorExtensions.d.ts.map +0 -1
- package/dist/models/ErrorExtensions.js +0 -67
- package/dist/models/ErrorExtensions.js.map +0 -1
- package/dist/models/ErrorResponse.d.ts +0 -33
- package/dist/models/ErrorResponse.d.ts.map +0 -1
- package/dist/models/ErrorResponse.js +0 -52
- package/dist/models/ErrorResponse.js.map +0 -1
- package/dist/models/Errors.d.ts +0 -32
- package/dist/models/Errors.d.ts.map +0 -1
- package/dist/models/Errors.js +0 -51
- package/dist/models/Errors.js.map +0 -1
- package/dist/models/ExtMediaAvailability.d.ts +0 -46
- package/dist/models/ExtMediaAvailability.d.ts.map +0 -1
- package/dist/models/ExtMediaAvailability.js +0 -60
- package/dist/models/ExtMediaAvailability.js.map +0 -1
- package/dist/models/ExtendedEntities.d.ts +0 -33
- package/dist/models/ExtendedEntities.d.ts.map +0 -1
- package/dist/models/ExtendedEntities.js +0 -52
- package/dist/models/ExtendedEntities.js.map +0 -1
- package/dist/models/Extensions.d.ts +0 -57
- package/dist/models/Extensions.d.ts.map +0 -1
- package/dist/models/Extensions.js +0 -64
- package/dist/models/Extensions.js.map +0 -1
- package/dist/models/FavoriteTweet.d.ts +0 -32
- package/dist/models/FavoriteTweet.d.ts.map +0 -1
- package/dist/models/FavoriteTweet.js +0 -51
- package/dist/models/FavoriteTweet.js.map +0 -1
- package/dist/models/FavoriteTweetResponseData.d.ts +0 -33
- package/dist/models/FavoriteTweetResponseData.d.ts.map +0 -1
- package/dist/models/FavoriteTweetResponseData.js +0 -52
- package/dist/models/FavoriteTweetResponseData.js.map +0 -1
- package/dist/models/FollowResponse.d.ts +0 -33
- package/dist/models/FollowResponse.d.ts.map +0 -1
- package/dist/models/FollowResponse.js +0 -52
- package/dist/models/FollowResponse.js.map +0 -1
- package/dist/models/FollowResponseData.d.ts +0 -33
- package/dist/models/FollowResponseData.d.ts.map +0 -1
- package/dist/models/FollowResponseData.js +0 -52
- package/dist/models/FollowResponseData.js.map +0 -1
- package/dist/models/FollowResponseResult.d.ts +0 -40
- package/dist/models/FollowResponseResult.d.ts.map +0 -1
- package/dist/models/FollowResponseResult.js +0 -56
- package/dist/models/FollowResponseResult.js.map +0 -1
- package/dist/models/FollowResponseUser.d.ts +0 -33
- package/dist/models/FollowResponseUser.d.ts.map +0 -1
- package/dist/models/FollowResponseUser.js +0 -52
- package/dist/models/FollowResponseUser.js.map +0 -1
- package/dist/models/FollowTimeline.d.ts +0 -33
- package/dist/models/FollowTimeline.d.ts.map +0 -1
- package/dist/models/FollowTimeline.js +0 -52
- package/dist/models/FollowTimeline.js.map +0 -1
- package/dist/models/GetBookmarks200Response.d.ts +0 -23
- package/dist/models/GetBookmarks200Response.d.ts.map +0 -1
- package/dist/models/GetBookmarks200Response.js +0 -57
- package/dist/models/GetBookmarks200Response.js.map +0 -1
- package/dist/models/GetFavoriters200Response.d.ts +0 -23
- package/dist/models/GetFavoriters200Response.d.ts.map +0 -1
- package/dist/models/GetFavoriters200Response.js +0 -57
- package/dist/models/GetFavoriters200Response.js.map +0 -1
- package/dist/models/GetFollowers200Response.d.ts +0 -23
- package/dist/models/GetFollowers200Response.d.ts.map +0 -1
- package/dist/models/GetFollowers200Response.js +0 -57
- package/dist/models/GetFollowers200Response.js.map +0 -1
- package/dist/models/GetHomeLatestTimeline200Response.d.ts +0 -23
- package/dist/models/GetHomeLatestTimeline200Response.d.ts.map +0 -1
- package/dist/models/GetHomeLatestTimeline200Response.js +0 -57
- package/dist/models/GetHomeLatestTimeline200Response.js.map +0 -1
- package/dist/models/GetLikes200Response.d.ts +0 -23
- package/dist/models/GetLikes200Response.d.ts.map +0 -1
- package/dist/models/GetLikes200Response.js +0 -57
- package/dist/models/GetLikes200Response.js.map +0 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts +0 -23
- package/dist/models/GetListLatestTweetsTimeline200Response.d.ts.map +0 -1
- package/dist/models/GetListLatestTweetsTimeline200Response.js +0 -57
- package/dist/models/GetListLatestTweetsTimeline200Response.js.map +0 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts +0 -23
- package/dist/models/GetProfileSpotlightsQuery200Response.d.ts.map +0 -1
- package/dist/models/GetProfileSpotlightsQuery200Response.js +0 -57
- package/dist/models/GetProfileSpotlightsQuery200Response.js.map +0 -1
- package/dist/models/GetRetweeters200Response.d.ts +0 -23
- package/dist/models/GetRetweeters200Response.d.ts.map +0 -1
- package/dist/models/GetRetweeters200Response.js +0 -57
- package/dist/models/GetRetweeters200Response.js.map +0 -1
- package/dist/models/GetSearchTimeline200Response.d.ts +0 -23
- package/dist/models/GetSearchTimeline200Response.d.ts.map +0 -1
- package/dist/models/GetSearchTimeline200Response.js +0 -57
- package/dist/models/GetSearchTimeline200Response.js.map +0 -1
- package/dist/models/GetTweetDetail200Response.d.ts +0 -23
- package/dist/models/GetTweetDetail200Response.d.ts.map +0 -1
- package/dist/models/GetTweetDetail200Response.js +0 -57
- package/dist/models/GetTweetDetail200Response.js.map +0 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +0 -23
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +0 -1
- package/dist/models/GetTweetResultByRestId200Response.js +0 -57
- package/dist/models/GetTweetResultByRestId200Response.js.map +0 -1
- package/dist/models/GetUserByRestId200Response.d.ts +0 -23
- package/dist/models/GetUserByRestId200Response.d.ts.map +0 -1
- package/dist/models/GetUserByRestId200Response.js +0 -57
- package/dist/models/GetUserByRestId200Response.js.map +0 -1
- package/dist/models/GetUserHighlightsTweets200Response.d.ts +0 -23
- package/dist/models/GetUserHighlightsTweets200Response.d.ts.map +0 -1
- package/dist/models/GetUserHighlightsTweets200Response.js +0 -57
- package/dist/models/GetUserHighlightsTweets200Response.js.map +0 -1
- package/dist/models/GetUsersByRestIds200Response.d.ts +0 -23
- package/dist/models/GetUsersByRestIds200Response.d.ts.map +0 -1
- package/dist/models/GetUsersByRestIds200Response.js +0 -57
- package/dist/models/GetUsersByRestIds200Response.js.map +0 -1
- package/dist/models/HomeTimelineHome.d.ts +0 -33
- package/dist/models/HomeTimelineHome.d.ts.map +0 -1
- package/dist/models/HomeTimelineHome.js +0 -52
- package/dist/models/HomeTimelineHome.js.map +0 -1
- package/dist/models/HomeTimelineResponseData.d.ts +0 -33
- package/dist/models/HomeTimelineResponseData.d.ts.map +0 -1
- package/dist/models/HomeTimelineResponseData.js +0 -52
- package/dist/models/HomeTimelineResponseData.js.map +0 -1
- package/dist/models/InstructionType.d.ts +0 -30
- package/dist/models/InstructionType.d.ts.map +0 -1
- package/dist/models/InstructionType.js +0 -43
- package/dist/models/InstructionType.js.map +0 -1
- package/dist/models/InstructionUnion.d.ts +0 -45
- package/dist/models/InstructionUnion.d.ts.map +0 -1
- package/dist/models/InstructionUnion.js +0 -95
- package/dist/models/InstructionUnion.js.map +0 -1
- package/dist/models/ItemContentUnion.d.ts +0 -39
- package/dist/models/ItemContentUnion.d.ts.map +0 -1
- package/dist/models/ItemContentUnion.js +0 -85
- package/dist/models/ItemContentUnion.js.map +0 -1
- package/dist/models/ItemResult.d.ts +0 -40
- package/dist/models/ItemResult.d.ts.map +0 -1
- package/dist/models/ItemResult.js +0 -55
- package/dist/models/ItemResult.js.map +0 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListLatestTweetsTimelineResponse.js +0 -52
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +0 -1
- package/dist/models/ListTweetsTimeline.d.ts +0 -33
- package/dist/models/ListTweetsTimeline.d.ts.map +0 -1
- package/dist/models/ListTweetsTimeline.js +0 -52
- package/dist/models/ListTweetsTimeline.js.map +0 -1
- package/dist/models/ListTweetsTimelineData.d.ts +0 -33
- package/dist/models/ListTweetsTimelineData.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineData.js +0 -52
- package/dist/models/ListTweetsTimelineData.js.map +0 -1
- package/dist/models/ListTweetsTimelineList.d.ts +0 -33
- package/dist/models/ListTweetsTimelineList.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineList.js +0 -52
- package/dist/models/ListTweetsTimelineList.js.map +0 -1
- package/dist/models/Location.d.ts +0 -38
- package/dist/models/Location.d.ts.map +0 -1
- package/dist/models/Location.js +0 -54
- package/dist/models/Location.js.map +0 -1
- package/dist/models/Media.d.ts +0 -97
- package/dist/models/Media.d.ts.map +0 -1
- package/dist/models/Media.js +0 -88
- package/dist/models/Media.js.map +0 -1
- package/dist/models/MediaExtended.d.ts +0 -131
- package/dist/models/MediaExtended.d.ts.map +0 -1
- package/dist/models/MediaExtended.js +0 -103
- package/dist/models/MediaExtended.js.map +0 -1
- package/dist/models/MediaOriginalInfo.d.ts +0 -45
- package/dist/models/MediaOriginalInfo.d.ts.map +0 -1
- package/dist/models/MediaOriginalInfo.js +0 -58
- package/dist/models/MediaOriginalInfo.js.map +0 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +0 -50
- package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +0 -1
- package/dist/models/MediaOriginalInfoFocusRect.js +0 -60
- package/dist/models/MediaOriginalInfoFocusRect.js.map +0 -1
- package/dist/models/MediaSize.d.ts +0 -52
- package/dist/models/MediaSize.d.ts.map +0 -1
- package/dist/models/MediaSize.js +0 -64
- package/dist/models/MediaSize.js.map +0 -1
- package/dist/models/MediaSizes.d.ts +0 -51
- package/dist/models/MediaSizes.d.ts.map +0 -1
- package/dist/models/MediaSizes.js +0 -61
- package/dist/models/MediaSizes.js.map +0 -1
- package/dist/models/MediaStats.d.ts +0 -32
- package/dist/models/MediaStats.d.ts.map +0 -1
- package/dist/models/MediaStats.js +0 -51
- package/dist/models/MediaStats.js.map +0 -1
- package/dist/models/MediaVideoInfo.d.ts +0 -45
- package/dist/models/MediaVideoInfo.d.ts.map +0 -1
- package/dist/models/MediaVideoInfo.js +0 -58
- package/dist/models/MediaVideoInfo.js.map +0 -1
- package/dist/models/MediaVideoInfoVariant.d.ts +0 -44
- package/dist/models/MediaVideoInfoVariant.d.ts.map +0 -1
- package/dist/models/MediaVideoInfoVariant.js +0 -57
- package/dist/models/MediaVideoInfoVariant.js.map +0 -1
- package/dist/models/ModelError.d.ts +0 -89
- package/dist/models/ModelError.d.ts.map +0 -1
- package/dist/models/ModelError.js +0 -81
- package/dist/models/ModelError.js.map +0 -1
- package/dist/models/ModuleEntry.d.ts +0 -40
- package/dist/models/ModuleEntry.d.ts.map +0 -1
- package/dist/models/ModuleEntry.js +0 -56
- package/dist/models/ModuleEntry.js.map +0 -1
- package/dist/models/ModuleItem.d.ts +0 -39
- package/dist/models/ModuleItem.d.ts.map +0 -1
- package/dist/models/ModuleItem.js +0 -55
- package/dist/models/ModuleItem.js.map +0 -1
- package/dist/models/NoteTweet.d.ts +0 -39
- package/dist/models/NoteTweet.d.ts.map +0 -1
- package/dist/models/NoteTweet.js +0 -55
- package/dist/models/NoteTweet.js.map +0 -1
- package/dist/models/NoteTweetResult.d.ts +0 -33
- package/dist/models/NoteTweetResult.d.ts.map +0 -1
- package/dist/models/NoteTweetResult.js +0 -52
- package/dist/models/NoteTweetResult.js.map +0 -1
- package/dist/models/NoteTweetResultData.d.ts +0 -59
- package/dist/models/NoteTweetResultData.d.ts.map +0 -1
- package/dist/models/NoteTweetResultData.js +0 -65
- package/dist/models/NoteTweetResultData.js.map +0 -1
- package/dist/models/NoteTweetResultMedia.d.ts +0 -32
- package/dist/models/NoteTweetResultMedia.d.ts.map +0 -1
- package/dist/models/NoteTweetResultMedia.js +0 -51
- package/dist/models/NoteTweetResultMedia.js.map +0 -1
- package/dist/models/NoteTweetResultRichText.d.ts +0 -33
- package/dist/models/NoteTweetResultRichText.d.ts.map +0 -1
- package/dist/models/NoteTweetResultRichText.js +0 -52
- package/dist/models/NoteTweetResultRichText.js.map +0 -1
- package/dist/models/NoteTweetResultRichTextTag.d.ts +0 -52
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +0 -1
- package/dist/models/NoteTweetResultRichTextTag.js +0 -64
- package/dist/models/NoteTweetResultRichTextTag.js.map +0 -1
- package/dist/models/OneFactorLoginEligibility.d.ts +0 -32
- package/dist/models/OneFactorLoginEligibility.d.ts.map +0 -1
- package/dist/models/OneFactorLoginEligibility.js +0 -51
- package/dist/models/OneFactorLoginEligibility.js.map +0 -1
- package/dist/models/Other200Response.d.ts +0 -22
- package/dist/models/Other200Response.d.ts.map +0 -1
- package/dist/models/Other200Response.js +0 -53
- package/dist/models/Other200Response.js.map +0 -1
- package/dist/models/OtherResponse.d.ts +0 -33
- package/dist/models/OtherResponse.d.ts.map +0 -1
- package/dist/models/OtherResponse.js +0 -52
- package/dist/models/OtherResponse.js.map +0 -1
- package/dist/models/PostCreateRetweet200Response.d.ts +0 -23
- package/dist/models/PostCreateRetweet200Response.d.ts.map +0 -1
- package/dist/models/PostCreateRetweet200Response.js +0 -57
- package/dist/models/PostCreateRetweet200Response.js.map +0 -1
- package/dist/models/PostCreateRetweetRequest.d.ts +0 -39
- package/dist/models/PostCreateRetweetRequest.d.ts.map +0 -1
- package/dist/models/PostCreateRetweetRequest.js +0 -55
- package/dist/models/PostCreateRetweetRequest.js.map +0 -1
- package/dist/models/PostCreateRetweetRequestVariables.d.ts +0 -38
- package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostCreateRetweetRequestVariables.js +0 -54
- package/dist/models/PostCreateRetweetRequestVariables.js.map +0 -1
- package/dist/models/PostCreateTweet200Response.d.ts +0 -23
- package/dist/models/PostCreateTweet200Response.d.ts.map +0 -1
- package/dist/models/PostCreateTweet200Response.js +0 -57
- package/dist/models/PostCreateTweet200Response.js.map +0 -1
- package/dist/models/PostCreateTweetRequest.d.ts +0 -46
- package/dist/models/PostCreateTweetRequest.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequest.js +0 -59
- package/dist/models/PostCreateTweetRequest.js.map +0 -1
- package/dist/models/PostCreateTweetRequestFeatures.d.ts +0 -134
- package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestFeatures.js +0 -102
- package/dist/models/PostCreateTweetRequestFeatures.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariables.d.ts +0 -51
- package/dist/models/PostCreateTweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariables.js +0 -61
- package/dist/models/PostCreateTweetRequestVariables.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +0 -39
- package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMedia.js +0 -55
- package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +0 -38
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +0 -1
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +0 -54
- package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +0 -1
- package/dist/models/PostDeleteRetweet200Response.d.ts +0 -23
- package/dist/models/PostDeleteRetweet200Response.d.ts.map +0 -1
- package/dist/models/PostDeleteRetweet200Response.js +0 -57
- package/dist/models/PostDeleteRetweet200Response.js.map +0 -1
- package/dist/models/PostDeleteRetweetRequest.d.ts +0 -39
- package/dist/models/PostDeleteRetweetRequest.d.ts.map +0 -1
- package/dist/models/PostDeleteRetweetRequest.js +0 -55
- package/dist/models/PostDeleteRetweetRequest.js.map +0 -1
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts +0 -38
- package/dist/models/PostDeleteRetweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostDeleteRetweetRequestVariables.js +0 -54
- package/dist/models/PostDeleteRetweetRequestVariables.js.map +0 -1
- package/dist/models/PostDeleteTweet200Response.d.ts +0 -23
- package/dist/models/PostDeleteTweet200Response.d.ts.map +0 -1
- package/dist/models/PostDeleteTweet200Response.js +0 -57
- package/dist/models/PostDeleteTweet200Response.js.map +0 -1
- package/dist/models/PostDeleteTweetRequest.d.ts +0 -39
- package/dist/models/PostDeleteTweetRequest.d.ts.map +0 -1
- package/dist/models/PostDeleteTweetRequest.js +0 -55
- package/dist/models/PostDeleteTweetRequest.js.map +0 -1
- package/dist/models/PostFavoriteTweet200Response.d.ts +0 -23
- package/dist/models/PostFavoriteTweet200Response.d.ts.map +0 -1
- package/dist/models/PostFavoriteTweet200Response.js +0 -57
- package/dist/models/PostFavoriteTweet200Response.js.map +0 -1
- package/dist/models/PostFavoriteTweetRequest.d.ts +0 -39
- package/dist/models/PostFavoriteTweetRequest.d.ts.map +0 -1
- package/dist/models/PostFavoriteTweetRequest.js +0 -55
- package/dist/models/PostFavoriteTweetRequest.js.map +0 -1
- package/dist/models/PostUnfavoriteTweet200Response.d.ts +0 -23
- package/dist/models/PostUnfavoriteTweet200Response.d.ts.map +0 -1
- package/dist/models/PostUnfavoriteTweet200Response.js +0 -57
- package/dist/models/PostUnfavoriteTweet200Response.js.map +0 -1
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +0 -39
- package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +0 -1
- package/dist/models/PostUnfavoriteTweetRequest.js +0 -55
- package/dist/models/PostUnfavoriteTweetRequest.js.map +0 -1
- package/dist/models/ProfileResponse.d.ts +0 -33
- package/dist/models/ProfileResponse.d.ts.map +0 -1
- package/dist/models/ProfileResponse.js +0 -52
- package/dist/models/ProfileResponse.js.map +0 -1
- package/dist/models/ProfileResponseData.d.ts +0 -33
- package/dist/models/ProfileResponseData.d.ts.map +0 -1
- package/dist/models/ProfileResponseData.js +0 -52
- package/dist/models/ProfileResponseData.js.map +0 -1
- package/dist/models/Retweet.d.ts +0 -39
- package/dist/models/Retweet.d.ts.map +0 -1
- package/dist/models/Retweet.js +0 -55
- package/dist/models/Retweet.js.map +0 -1
- package/dist/models/RetweetLegacy.d.ts +0 -32
- package/dist/models/RetweetLegacy.d.ts.map +0 -1
- package/dist/models/RetweetLegacy.js +0 -51
- package/dist/models/RetweetLegacy.js.map +0 -1
- package/dist/models/SearchByRawQuery.d.ts +0 -33
- package/dist/models/SearchByRawQuery.d.ts.map +0 -1
- package/dist/models/SearchByRawQuery.js +0 -52
- package/dist/models/SearchByRawQuery.js.map +0 -1
- package/dist/models/SearchTimeline.d.ts +0 -33
- package/dist/models/SearchTimeline.d.ts.map +0 -1
- package/dist/models/SearchTimeline.js +0 -52
- package/dist/models/SearchTimeline.js.map +0 -1
- package/dist/models/SearchTimelineData.d.ts +0 -33
- package/dist/models/SearchTimelineData.d.ts.map +0 -1
- package/dist/models/SearchTimelineData.js +0 -52
- package/dist/models/SearchTimelineData.js.map +0 -1
- package/dist/models/SearchTimelineResponse.d.ts +0 -33
- package/dist/models/SearchTimelineResponse.d.ts.map +0 -1
- package/dist/models/SearchTimelineResponse.js +0 -52
- package/dist/models/SearchTimelineResponse.js.map +0 -1
- package/dist/models/SelfThread.d.ts +0 -32
- package/dist/models/SelfThread.d.ts.map +0 -1
- package/dist/models/SelfThread.js +0 -51
- package/dist/models/SelfThread.js.map +0 -1
- package/dist/models/Session.d.ts +0 -120
- package/dist/models/Session.d.ts.map +0 -1
- package/dist/models/Session.js +0 -99
- package/dist/models/Session.js.map +0 -1
- package/dist/models/SocialContext.d.ts +0 -44
- package/dist/models/SocialContext.d.ts.map +0 -1
- package/dist/models/SocialContext.js +0 -55
- package/dist/models/SocialContext.js.map +0 -1
- package/dist/models/Text.d.ts +0 -39
- package/dist/models/Text.d.ts.map +0 -1
- package/dist/models/Text.js +0 -55
- package/dist/models/Text.js.map +0 -1
- package/dist/models/TextEntity.d.ts +0 -45
- package/dist/models/TextEntity.d.ts.map +0 -1
- package/dist/models/TextEntity.js +0 -58
- package/dist/models/TextEntity.js.map +0 -1
- package/dist/models/TextEntityRef.d.ts +0 -58
- package/dist/models/TextEntityRef.d.ts.map +0 -1
- package/dist/models/TextEntityRef.js +0 -69
- package/dist/models/TextEntityRef.js.map +0 -1
- package/dist/models/Timeline.d.ts +0 -49
- package/dist/models/Timeline.d.ts.map +0 -1
- package/dist/models/Timeline.js +0 -57
- package/dist/models/Timeline.js.map +0 -1
- package/dist/models/TimelineAddEntries.d.ts +0 -40
- package/dist/models/TimelineAddEntries.d.ts.map +0 -1
- package/dist/models/TimelineAddEntries.js +0 -56
- package/dist/models/TimelineAddEntries.js.map +0 -1
- package/dist/models/TimelineAddEntry.d.ts +0 -45
- package/dist/models/TimelineAddEntry.d.ts.map +0 -1
- package/dist/models/TimelineAddEntry.js +0 -58
- package/dist/models/TimelineAddEntry.js.map +0 -1
- package/dist/models/TimelineAddToModule.d.ts +0 -52
- package/dist/models/TimelineAddToModule.d.ts.map +0 -1
- package/dist/models/TimelineAddToModule.js +0 -62
- package/dist/models/TimelineAddToModule.js.map +0 -1
- package/dist/models/TimelineClearCache.d.ts +0 -33
- package/dist/models/TimelineClearCache.d.ts.map +0 -1
- package/dist/models/TimelineClearCache.js +0 -52
- package/dist/models/TimelineClearCache.js.map +0 -1
- package/dist/models/TimelineCommunity.d.ts +0 -34
- package/dist/models/TimelineCommunity.d.ts.map +0 -1
- package/dist/models/TimelineCommunity.js +0 -59
- package/dist/models/TimelineCommunity.js.map +0 -1
- package/dist/models/TimelineCoverBehavior.d.ts +0 -39
- package/dist/models/TimelineCoverBehavior.d.ts.map +0 -1
- package/dist/models/TimelineCoverBehavior.js +0 -57
- package/dist/models/TimelineCoverBehavior.js.map +0 -1
- package/dist/models/TimelineHalfCover.d.ts +0 -85
- package/dist/models/TimelineHalfCover.d.ts.map +0 -1
- package/dist/models/TimelineHalfCover.js +0 -84
- package/dist/models/TimelineHalfCover.js.map +0 -1
- package/dist/models/TimelineMessagePrompt.d.ts +0 -34
- package/dist/models/TimelineMessagePrompt.d.ts.map +0 -1
- package/dist/models/TimelineMessagePrompt.js +0 -59
- package/dist/models/TimelineMessagePrompt.js.map +0 -1
- package/dist/models/TimelinePinEntry.d.ts +0 -40
- package/dist/models/TimelinePinEntry.d.ts.map +0 -1
- package/dist/models/TimelinePinEntry.js +0 -56
- package/dist/models/TimelinePinEntry.js.map +0 -1
- package/dist/models/TimelinePrompt.d.ts +0 -34
- package/dist/models/TimelinePrompt.d.ts.map +0 -1
- package/dist/models/TimelinePrompt.js +0 -59
- package/dist/models/TimelinePrompt.js.map +0 -1
- package/dist/models/TimelineReplaceEntry.d.ts +0 -46
- package/dist/models/TimelineReplaceEntry.d.ts.map +0 -1
- package/dist/models/TimelineReplaceEntry.js +0 -59
- package/dist/models/TimelineReplaceEntry.js.map +0 -1
- package/dist/models/TimelineResponse.d.ts +0 -33
- package/dist/models/TimelineResponse.d.ts.map +0 -1
- package/dist/models/TimelineResponse.js +0 -52
- package/dist/models/TimelineResponse.js.map +0 -1
- package/dist/models/TimelineShowAlert.d.ts +0 -101
- package/dist/models/TimelineShowAlert.d.ts.map +0 -1
- package/dist/models/TimelineShowAlert.js +0 -85
- package/dist/models/TimelineShowAlert.js.map +0 -1
- package/dist/models/TimelineShowAlertRichText.d.ts +0 -40
- package/dist/models/TimelineShowAlertRichText.d.ts.map +0 -1
- package/dist/models/TimelineShowAlertRichText.js +0 -53
- package/dist/models/TimelineShowAlertRichText.js.map +0 -1
- package/dist/models/TimelineShowCover.d.ts +0 -47
- package/dist/models/TimelineShowCover.d.ts.map +0 -1
- package/dist/models/TimelineShowCover.js +0 -60
- package/dist/models/TimelineShowCover.js.map +0 -1
- package/dist/models/TimelineTerminateTimeline.d.ts +0 -47
- package/dist/models/TimelineTerminateTimeline.d.ts.map +0 -1
- package/dist/models/TimelineTerminateTimeline.js +0 -62
- package/dist/models/TimelineTerminateTimeline.js.map +0 -1
- package/dist/models/TimelineTimelineCursor.d.ts +0 -59
- package/dist/models/TimelineTimelineCursor.d.ts.map +0 -1
- package/dist/models/TimelineTimelineCursor.js +0 -65
- package/dist/models/TimelineTimelineCursor.js.map +0 -1
- package/dist/models/TimelineTimelineItem.d.ts +0 -62
- package/dist/models/TimelineTimelineItem.d.ts.map +0 -1
- package/dist/models/TimelineTimelineItem.js +0 -66
- package/dist/models/TimelineTimelineItem.js.map +0 -1
- package/dist/models/TimelineTimelineModule.d.ts +0 -85
- package/dist/models/TimelineTimelineModule.d.ts.map +0 -1
- package/dist/models/TimelineTimelineModule.js +0 -77
- package/dist/models/TimelineTimelineModule.js.map +0 -1
- package/dist/models/TimelineTweet.d.ts +0 -68
- package/dist/models/TimelineTweet.d.ts.map +0 -1
- package/dist/models/TimelineTweet.js +0 -69
- package/dist/models/TimelineTweet.js.map +0 -1
- package/dist/models/TimelineUser.d.ts +0 -69
- package/dist/models/TimelineUser.d.ts.map +0 -1
- package/dist/models/TimelineUser.js +0 -75
- package/dist/models/TimelineUser.js.map +0 -1
- package/dist/models/TimelineV2.d.ts +0 -33
- package/dist/models/TimelineV2.d.ts.map +0 -1
- package/dist/models/TimelineV2.js +0 -52
- package/dist/models/TimelineV2.js.map +0 -1
- package/dist/models/Tracing.d.ts +0 -32
- package/dist/models/Tracing.d.ts.map +0 -1
- package/dist/models/Tracing.js +0 -51
- package/dist/models/Tracing.js.map +0 -1
- package/dist/models/Tweet.d.ts +0 -128
- package/dist/models/Tweet.d.ts.map +0 -1
- package/dist/models/Tweet.js +0 -93
- package/dist/models/Tweet.js.map +0 -1
- package/dist/models/TweetCard.d.ts +0 -39
- package/dist/models/TweetCard.d.ts.map +0 -1
- package/dist/models/TweetCard.js +0 -54
- package/dist/models/TweetCard.js.map +0 -1
- package/dist/models/TweetCardLegacy.d.ts +0 -45
- package/dist/models/TweetCardLegacy.d.ts.map +0 -1
- package/dist/models/TweetCardLegacy.js +0 -58
- package/dist/models/TweetCardLegacy.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts +0 -39
- package/dist/models/TweetCardLegacyBindingValue.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValue.js +0 -55
- package/dist/models/TweetCardLegacyBindingValue.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +0 -50
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValueData.js +0 -58
- package/dist/models/TweetCardLegacyBindingValueData.js.map +0 -1
- package/dist/models/TweetDetailResponse.d.ts +0 -33
- package/dist/models/TweetDetailResponse.d.ts.map +0 -1
- package/dist/models/TweetDetailResponse.js +0 -52
- package/dist/models/TweetDetailResponse.js.map +0 -1
- package/dist/models/TweetDetailResponseData.d.ts +0 -33
- package/dist/models/TweetDetailResponseData.d.ts.map +0 -1
- package/dist/models/TweetDetailResponseData.js +0 -52
- package/dist/models/TweetDetailResponseData.js.map +0 -1
- package/dist/models/TweetEditControl.d.ts +0 -63
- package/dist/models/TweetEditControl.d.ts.map +0 -1
- package/dist/models/TweetEditControl.js +0 -62
- package/dist/models/TweetEditControl.js.map +0 -1
- package/dist/models/TweetEditControlInitial.d.ts +0 -50
- package/dist/models/TweetEditControlInitial.d.ts.map +0 -1
- package/dist/models/TweetEditControlInitial.js +0 -60
- package/dist/models/TweetEditControlInitial.js.map +0 -1
- package/dist/models/TweetEditPrespective.d.ts +0 -38
- package/dist/models/TweetEditPrespective.d.ts.map +0 -1
- package/dist/models/TweetEditPrespective.js +0 -53
- package/dist/models/TweetEditPrespective.js.map +0 -1
- package/dist/models/TweetFavoritersResponse.d.ts +0 -33
- package/dist/models/TweetFavoritersResponse.d.ts.map +0 -1
- package/dist/models/TweetFavoritersResponse.js +0 -52
- package/dist/models/TweetFavoritersResponse.js.map +0 -1
- package/dist/models/TweetFavoritersResponseData.d.ts +0 -33
- package/dist/models/TweetFavoritersResponseData.d.ts.map +0 -1
- package/dist/models/TweetFavoritersResponseData.js +0 -52
- package/dist/models/TweetFavoritersResponseData.js.map +0 -1
- package/dist/models/TweetLegacy.d.ts +0 -162
- package/dist/models/TweetLegacy.d.ts.map +0 -1
- package/dist/models/TweetLegacy.js +0 -114
- package/dist/models/TweetLegacy.js.map +0 -1
- package/dist/models/TweetResultByRestIdData.d.ts +0 -33
- package/dist/models/TweetResultByRestIdData.d.ts.map +0 -1
- package/dist/models/TweetResultByRestIdData.js +0 -52
- package/dist/models/TweetResultByRestIdData.js.map +0 -1
- package/dist/models/TweetResultByRestIdResponse.d.ts +0 -33
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +0 -1
- package/dist/models/TweetResultByRestIdResponse.js +0 -52
- package/dist/models/TweetResultByRestIdResponse.js.map +0 -1
- package/dist/models/TweetRetweetersResponse.d.ts +0 -33
- package/dist/models/TweetRetweetersResponse.d.ts.map +0 -1
- package/dist/models/TweetRetweetersResponse.js +0 -52
- package/dist/models/TweetRetweetersResponse.js.map +0 -1
- package/dist/models/TweetRetweetersResponseData.d.ts +0 -33
- package/dist/models/TweetRetweetersResponseData.d.ts.map +0 -1
- package/dist/models/TweetRetweetersResponseData.js +0 -52
- package/dist/models/TweetRetweetersResponseData.js.map +0 -1
- package/dist/models/TweetTombstone.d.ts +0 -34
- package/dist/models/TweetTombstone.d.ts.map +0 -1
- package/dist/models/TweetTombstone.js +0 -59
- package/dist/models/TweetTombstone.js.map +0 -1
- package/dist/models/TweetUnion.d.ts +0 -30
- package/dist/models/TweetUnion.d.ts.map +0 -1
- package/dist/models/TweetUnion.js +0 -70
- package/dist/models/TweetUnion.js.map +0 -1
- package/dist/models/TweetView.d.ts +0 -45
- package/dist/models/TweetView.d.ts.map +0 -1
- package/dist/models/TweetView.js +0 -60
- package/dist/models/TweetView.js.map +0 -1
- package/dist/models/TweetWithVisibilityResults.d.ts +0 -40
- package/dist/models/TweetWithVisibilityResults.d.ts.map +0 -1
- package/dist/models/TweetWithVisibilityResults.js +0 -56
- package/dist/models/TweetWithVisibilityResults.js.map +0 -1
- package/dist/models/TypeName.d.ts +0 -36
- package/dist/models/TypeName.d.ts.map +0 -1
- package/dist/models/TypeName.js +0 -49
- package/dist/models/TypeName.js.map +0 -1
- package/dist/models/UnfavoriteTweet.d.ts +0 -32
- package/dist/models/UnfavoriteTweet.d.ts.map +0 -1
- package/dist/models/UnfavoriteTweet.js +0 -51
- package/dist/models/UnfavoriteTweet.js.map +0 -1
- package/dist/models/UnfavoriteTweetResponseData.d.ts +0 -33
- package/dist/models/UnfavoriteTweetResponseData.d.ts.map +0 -1
- package/dist/models/UnfavoriteTweetResponseData.js +0 -52
- package/dist/models/UnfavoriteTweetResponseData.js.map +0 -1
- package/dist/models/Url.d.ts +0 -50
- package/dist/models/Url.d.ts.map +0 -1
- package/dist/models/Url.js +0 -60
- package/dist/models/Url.js.map +0 -1
- package/dist/models/User.d.ts +0 -104
- package/dist/models/User.d.ts.map +0 -1
- package/dist/models/User.js +0 -84
- package/dist/models/User.js.map +0 -1
- package/dist/models/UserFeatures.d.ts +0 -32
- package/dist/models/UserFeatures.d.ts.map +0 -1
- package/dist/models/UserFeatures.js +0 -51
- package/dist/models/UserFeatures.js.map +0 -1
- package/dist/models/UserHighlightsTweetsData.d.ts +0 -33
- package/dist/models/UserHighlightsTweetsData.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsData.js +0 -52
- package/dist/models/UserHighlightsTweetsData.js.map +0 -1
- package/dist/models/UserHighlightsTweetsResponse.d.ts +0 -33
- package/dist/models/UserHighlightsTweetsResponse.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsResponse.js +0 -52
- package/dist/models/UserHighlightsTweetsResponse.js.map +0 -1
- package/dist/models/UserHighlightsTweetsResult.d.ts +0 -40
- package/dist/models/UserHighlightsTweetsResult.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsResult.js +0 -56
- package/dist/models/UserHighlightsTweetsResult.js.map +0 -1
- package/dist/models/UserHighlightsTweetsTimeline.d.ts +0 -33
- package/dist/models/UserHighlightsTweetsTimeline.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsTimeline.js +0 -52
- package/dist/models/UserHighlightsTweetsTimeline.js.map +0 -1
- package/dist/models/UserHighlightsTweetsUser.d.ts +0 -33
- package/dist/models/UserHighlightsTweetsUser.d.ts.map +0 -1
- package/dist/models/UserHighlightsTweetsUser.js +0 -52
- package/dist/models/UserHighlightsTweetsUser.js.map +0 -1
- package/dist/models/UserLegacy.d.ts +0 -262
- package/dist/models/UserLegacy.d.ts.map +0 -1
- package/dist/models/UserLegacy.js +0 -157
- package/dist/models/UserLegacy.js.map +0 -1
- package/dist/models/UserResponse.d.ts +0 -33
- package/dist/models/UserResponse.d.ts.map +0 -1
- package/dist/models/UserResponse.js +0 -52
- package/dist/models/UserResponse.js.map +0 -1
- package/dist/models/UserResponseData.d.ts +0 -33
- package/dist/models/UserResponseData.d.ts.map +0 -1
- package/dist/models/UserResponseData.js +0 -52
- package/dist/models/UserResponseData.js.map +0 -1
- package/dist/models/UserResultByScreenName.d.ts +0 -39
- package/dist/models/UserResultByScreenName.d.ts.map +0 -1
- package/dist/models/UserResultByScreenName.js +0 -55
- package/dist/models/UserResultByScreenName.js.map +0 -1
- package/dist/models/UserResultByScreenNameLegacy.d.ts +0 -68
- package/dist/models/UserResultByScreenNameLegacy.d.ts.map +0 -1
- package/dist/models/UserResultByScreenNameLegacy.js +0 -63
- package/dist/models/UserResultByScreenNameLegacy.js.map +0 -1
- package/dist/models/UserResultByScreenNameResult.d.ts +0 -60
- package/dist/models/UserResultByScreenNameResult.d.ts.map +0 -1
- package/dist/models/UserResultByScreenNameResult.js +0 -65
- package/dist/models/UserResultByScreenNameResult.js.map +0 -1
- package/dist/models/UserResultCore.d.ts +0 -33
- package/dist/models/UserResultCore.d.ts.map +0 -1
- package/dist/models/UserResultCore.js +0 -52
- package/dist/models/UserResultCore.js.map +0 -1
- package/dist/models/UserResults.d.ts +0 -33
- package/dist/models/UserResults.d.ts.map +0 -1
- package/dist/models/UserResults.js +0 -52
- package/dist/models/UserResults.js.map +0 -1
- package/dist/models/UserTweetsData.d.ts +0 -33
- package/dist/models/UserTweetsData.d.ts.map +0 -1
- package/dist/models/UserTweetsData.js +0 -52
- package/dist/models/UserTweetsData.js.map +0 -1
- package/dist/models/UserTweetsResponse.d.ts +0 -33
- package/dist/models/UserTweetsResponse.d.ts.map +0 -1
- package/dist/models/UserTweetsResponse.js +0 -52
- package/dist/models/UserTweetsResponse.js.map +0 -1
- package/dist/models/UserTweetsResult.d.ts +0 -40
- package/dist/models/UserTweetsResult.d.ts.map +0 -1
- package/dist/models/UserTweetsResult.js +0 -56
- package/dist/models/UserTweetsResult.js.map +0 -1
- package/dist/models/UserTweetsUser.d.ts +0 -33
- package/dist/models/UserTweetsUser.d.ts.map +0 -1
- package/dist/models/UserTweetsUser.js +0 -52
- package/dist/models/UserTweetsUser.js.map +0 -1
- package/dist/models/UserUnavailable.d.ts +0 -39
- package/dist/models/UserUnavailable.d.ts.map +0 -1
- package/dist/models/UserUnavailable.js +0 -55
- package/dist/models/UserUnavailable.js.map +0 -1
- package/dist/models/UserUnion.d.ts +0 -27
- package/dist/models/UserUnion.d.ts.map +0 -1
- package/dist/models/UserUnion.js +0 -65
- package/dist/models/UserUnion.js.map +0 -1
- package/dist/models/UsersResponse.d.ts +0 -33
- package/dist/models/UsersResponse.d.ts.map +0 -1
- package/dist/models/UsersResponse.js +0 -52
- package/dist/models/UsersResponse.js.map +0 -1
- package/dist/models/UsersResponseData.d.ts +0 -33
- package/dist/models/UsersResponseData.d.ts.map +0 -1
- package/dist/models/UsersResponseData.js +0 -52
- package/dist/models/UsersResponseData.js.map +0 -1
- package/dist/models/index.d.ts +0 -199
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -217
- package/dist/models/index.js.map +0 -1
- package/dist/runtime.d.ts +0 -183
- package/dist/runtime.d.ts.map +0 -1
- package/dist/runtime.js +0 -556
- package/dist/runtime.js.map +0 -1
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
package/dist/apis/PostApi.js
DELETED
|
@@ -1,741 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Twitter OpenAPI
|
|
6
|
-
* Twitter OpenAPI(Swagger) specification
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.0.1
|
|
9
|
-
* Contact: yuki@yuki0311.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.PostApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var models_1 = require("../models");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var PostApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(PostApi, _super);
|
|
75
|
-
function PostApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* create Retweet
|
|
80
|
-
*/
|
|
81
|
-
PostApi.prototype.postCreateRetweetRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
88
|
-
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateRetweet.');
|
|
89
|
-
}
|
|
90
|
-
if (requestParameters.postCreateRetweetRequest === null || requestParameters.postCreateRetweetRequest === undefined) {
|
|
91
|
-
throw new runtime.RequiredError('postCreateRetweetRequest', 'Required parameter requestParameters.postCreateRetweetRequest was null or undefined when calling postCreateRetweet.');
|
|
92
|
-
}
|
|
93
|
-
queryParameters = {};
|
|
94
|
-
headerParameters = {};
|
|
95
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
97
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
98
|
-
}
|
|
99
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
-
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
101
|
-
}
|
|
102
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
103
|
-
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
104
|
-
}
|
|
105
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
-
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
107
|
-
}
|
|
108
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
-
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
110
|
-
}
|
|
111
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
112
|
-
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
113
|
-
}
|
|
114
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
116
|
-
}
|
|
117
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
118
|
-
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
119
|
-
}
|
|
120
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
121
|
-
token = this.configuration.accessToken;
|
|
122
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
123
|
-
case 1:
|
|
124
|
-
tokenString = _a.sent();
|
|
125
|
-
if (tokenString) {
|
|
126
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
127
|
-
}
|
|
128
|
-
_a.label = 2;
|
|
129
|
-
case 2:
|
|
130
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
131
|
-
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
132
|
-
}
|
|
133
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
134
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
135
|
-
}
|
|
136
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
137
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
138
|
-
}
|
|
139
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
140
|
-
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
141
|
-
}
|
|
142
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
143
|
-
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
144
|
-
}
|
|
145
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
146
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
147
|
-
}
|
|
148
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
149
|
-
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
150
|
-
}
|
|
151
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
152
|
-
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
153
|
-
}
|
|
154
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
155
|
-
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
156
|
-
}
|
|
157
|
-
return [4 /*yield*/, this.request({
|
|
158
|
-
path: "/graphql/{pathQueryId}/CreateRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
159
|
-
method: 'POST',
|
|
160
|
-
headers: headerParameters,
|
|
161
|
-
query: queryParameters,
|
|
162
|
-
body: (0, models_1.PostCreateRetweetRequestToJSON)(requestParameters.postCreateRetweetRequest),
|
|
163
|
-
}, initOverrides)];
|
|
164
|
-
case 3:
|
|
165
|
-
response = _a.sent();
|
|
166
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostCreateRetweet200ResponseFromJSON)(jsonValue); })];
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* create Retweet
|
|
173
|
-
*/
|
|
174
|
-
PostApi.prototype.postCreateRetweet = function (requestParameters, initOverrides) {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
-
var response;
|
|
177
|
-
return __generator(this, function (_a) {
|
|
178
|
-
switch (_a.label) {
|
|
179
|
-
case 0: return [4 /*yield*/, this.postCreateRetweetRaw(requestParameters, initOverrides)];
|
|
180
|
-
case 1:
|
|
181
|
-
response = _a.sent();
|
|
182
|
-
return [4 /*yield*/, response.value()];
|
|
183
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* create Tweet
|
|
190
|
-
*/
|
|
191
|
-
PostApi.prototype.postCreateTweetRaw = function (requestParameters, initOverrides) {
|
|
192
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
193
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
194
|
-
return __generator(this, function (_a) {
|
|
195
|
-
switch (_a.label) {
|
|
196
|
-
case 0:
|
|
197
|
-
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
198
|
-
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateTweet.');
|
|
199
|
-
}
|
|
200
|
-
if (requestParameters.postCreateTweetRequest === null || requestParameters.postCreateTweetRequest === undefined) {
|
|
201
|
-
throw new runtime.RequiredError('postCreateTweetRequest', 'Required parameter requestParameters.postCreateTweetRequest was null or undefined when calling postCreateTweet.');
|
|
202
|
-
}
|
|
203
|
-
queryParameters = {};
|
|
204
|
-
headerParameters = {};
|
|
205
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
206
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
207
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
208
|
-
}
|
|
209
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
210
|
-
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
211
|
-
}
|
|
212
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
213
|
-
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
214
|
-
}
|
|
215
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
216
|
-
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
217
|
-
}
|
|
218
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
219
|
-
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
220
|
-
}
|
|
221
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
222
|
-
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
223
|
-
}
|
|
224
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
225
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
226
|
-
}
|
|
227
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
228
|
-
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
229
|
-
}
|
|
230
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
231
|
-
token = this.configuration.accessToken;
|
|
232
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
233
|
-
case 1:
|
|
234
|
-
tokenString = _a.sent();
|
|
235
|
-
if (tokenString) {
|
|
236
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
237
|
-
}
|
|
238
|
-
_a.label = 2;
|
|
239
|
-
case 2:
|
|
240
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
241
|
-
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
242
|
-
}
|
|
243
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
244
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
245
|
-
}
|
|
246
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
247
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
248
|
-
}
|
|
249
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
250
|
-
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
251
|
-
}
|
|
252
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
253
|
-
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
254
|
-
}
|
|
255
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
256
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
257
|
-
}
|
|
258
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
259
|
-
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
260
|
-
}
|
|
261
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
262
|
-
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
263
|
-
}
|
|
264
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
265
|
-
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
266
|
-
}
|
|
267
|
-
return [4 /*yield*/, this.request({
|
|
268
|
-
path: "/graphql/{pathQueryId}/CreateTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
269
|
-
method: 'POST',
|
|
270
|
-
headers: headerParameters,
|
|
271
|
-
query: queryParameters,
|
|
272
|
-
body: (0, models_1.PostCreateTweetRequestToJSON)(requestParameters.postCreateTweetRequest),
|
|
273
|
-
}, initOverrides)];
|
|
274
|
-
case 3:
|
|
275
|
-
response = _a.sent();
|
|
276
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostCreateTweet200ResponseFromJSON)(jsonValue); })];
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
});
|
|
280
|
-
};
|
|
281
|
-
/**
|
|
282
|
-
* create Tweet
|
|
283
|
-
*/
|
|
284
|
-
PostApi.prototype.postCreateTweet = function (requestParameters, initOverrides) {
|
|
285
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
286
|
-
var response;
|
|
287
|
-
return __generator(this, function (_a) {
|
|
288
|
-
switch (_a.label) {
|
|
289
|
-
case 0: return [4 /*yield*/, this.postCreateTweetRaw(requestParameters, initOverrides)];
|
|
290
|
-
case 1:
|
|
291
|
-
response = _a.sent();
|
|
292
|
-
return [4 /*yield*/, response.value()];
|
|
293
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
});
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* delete Retweet
|
|
300
|
-
*/
|
|
301
|
-
PostApi.prototype.postDeleteRetweetRaw = function (requestParameters, initOverrides) {
|
|
302
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
303
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
304
|
-
return __generator(this, function (_a) {
|
|
305
|
-
switch (_a.label) {
|
|
306
|
-
case 0:
|
|
307
|
-
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
308
|
-
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteRetweet.');
|
|
309
|
-
}
|
|
310
|
-
if (requestParameters.postDeleteRetweetRequest === null || requestParameters.postDeleteRetweetRequest === undefined) {
|
|
311
|
-
throw new runtime.RequiredError('postDeleteRetweetRequest', 'Required parameter requestParameters.postDeleteRetweetRequest was null or undefined when calling postDeleteRetweet.');
|
|
312
|
-
}
|
|
313
|
-
queryParameters = {};
|
|
314
|
-
headerParameters = {};
|
|
315
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
316
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
317
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
318
|
-
}
|
|
319
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
320
|
-
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
321
|
-
}
|
|
322
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
323
|
-
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
324
|
-
}
|
|
325
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
326
|
-
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
327
|
-
}
|
|
328
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
329
|
-
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
330
|
-
}
|
|
331
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
332
|
-
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
333
|
-
}
|
|
334
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
335
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
336
|
-
}
|
|
337
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
-
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
339
|
-
}
|
|
340
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
341
|
-
token = this.configuration.accessToken;
|
|
342
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
343
|
-
case 1:
|
|
344
|
-
tokenString = _a.sent();
|
|
345
|
-
if (tokenString) {
|
|
346
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
347
|
-
}
|
|
348
|
-
_a.label = 2;
|
|
349
|
-
case 2:
|
|
350
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
351
|
-
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
352
|
-
}
|
|
353
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
354
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
355
|
-
}
|
|
356
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
357
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
358
|
-
}
|
|
359
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
360
|
-
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
361
|
-
}
|
|
362
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
363
|
-
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
364
|
-
}
|
|
365
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
366
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
367
|
-
}
|
|
368
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
369
|
-
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
370
|
-
}
|
|
371
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
372
|
-
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
373
|
-
}
|
|
374
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
375
|
-
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
376
|
-
}
|
|
377
|
-
return [4 /*yield*/, this.request({
|
|
378
|
-
path: "/graphql/{pathQueryId}/DeleteRetweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
379
|
-
method: 'POST',
|
|
380
|
-
headers: headerParameters,
|
|
381
|
-
query: queryParameters,
|
|
382
|
-
body: (0, models_1.PostDeleteRetweetRequestToJSON)(requestParameters.postDeleteRetweetRequest),
|
|
383
|
-
}, initOverrides)];
|
|
384
|
-
case 3:
|
|
385
|
-
response = _a.sent();
|
|
386
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostDeleteRetweet200ResponseFromJSON)(jsonValue); })];
|
|
387
|
-
}
|
|
388
|
-
});
|
|
389
|
-
});
|
|
390
|
-
};
|
|
391
|
-
/**
|
|
392
|
-
* delete Retweet
|
|
393
|
-
*/
|
|
394
|
-
PostApi.prototype.postDeleteRetweet = function (requestParameters, initOverrides) {
|
|
395
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
396
|
-
var response;
|
|
397
|
-
return __generator(this, function (_a) {
|
|
398
|
-
switch (_a.label) {
|
|
399
|
-
case 0: return [4 /*yield*/, this.postDeleteRetweetRaw(requestParameters, initOverrides)];
|
|
400
|
-
case 1:
|
|
401
|
-
response = _a.sent();
|
|
402
|
-
return [4 /*yield*/, response.value()];
|
|
403
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
404
|
-
}
|
|
405
|
-
});
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
/**
|
|
409
|
-
* delete Retweet
|
|
410
|
-
*/
|
|
411
|
-
PostApi.prototype.postDeleteTweetRaw = function (requestParameters, initOverrides) {
|
|
412
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
413
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
414
|
-
return __generator(this, function (_a) {
|
|
415
|
-
switch (_a.label) {
|
|
416
|
-
case 0:
|
|
417
|
-
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
418
|
-
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteTweet.');
|
|
419
|
-
}
|
|
420
|
-
if (requestParameters.postDeleteTweetRequest === null || requestParameters.postDeleteTweetRequest === undefined) {
|
|
421
|
-
throw new runtime.RequiredError('postDeleteTweetRequest', 'Required parameter requestParameters.postDeleteTweetRequest was null or undefined when calling postDeleteTweet.');
|
|
422
|
-
}
|
|
423
|
-
queryParameters = {};
|
|
424
|
-
headerParameters = {};
|
|
425
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
426
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
427
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
428
|
-
}
|
|
429
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
430
|
-
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
431
|
-
}
|
|
432
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
433
|
-
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
434
|
-
}
|
|
435
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
436
|
-
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
437
|
-
}
|
|
438
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
439
|
-
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
440
|
-
}
|
|
441
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
442
|
-
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
443
|
-
}
|
|
444
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
445
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
446
|
-
}
|
|
447
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
448
|
-
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
449
|
-
}
|
|
450
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
451
|
-
token = this.configuration.accessToken;
|
|
452
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
453
|
-
case 1:
|
|
454
|
-
tokenString = _a.sent();
|
|
455
|
-
if (tokenString) {
|
|
456
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
457
|
-
}
|
|
458
|
-
_a.label = 2;
|
|
459
|
-
case 2:
|
|
460
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
461
|
-
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
462
|
-
}
|
|
463
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
464
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
465
|
-
}
|
|
466
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
467
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
468
|
-
}
|
|
469
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
470
|
-
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
471
|
-
}
|
|
472
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
473
|
-
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
474
|
-
}
|
|
475
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
476
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
477
|
-
}
|
|
478
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
479
|
-
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
480
|
-
}
|
|
481
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
482
|
-
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
483
|
-
}
|
|
484
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
485
|
-
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
486
|
-
}
|
|
487
|
-
return [4 /*yield*/, this.request({
|
|
488
|
-
path: "/graphql/{pathQueryId}/DeleteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
489
|
-
method: 'POST',
|
|
490
|
-
headers: headerParameters,
|
|
491
|
-
query: queryParameters,
|
|
492
|
-
body: (0, models_1.PostDeleteTweetRequestToJSON)(requestParameters.postDeleteTweetRequest),
|
|
493
|
-
}, initOverrides)];
|
|
494
|
-
case 3:
|
|
495
|
-
response = _a.sent();
|
|
496
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostDeleteTweet200ResponseFromJSON)(jsonValue); })];
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
});
|
|
500
|
-
};
|
|
501
|
-
/**
|
|
502
|
-
* delete Retweet
|
|
503
|
-
*/
|
|
504
|
-
PostApi.prototype.postDeleteTweet = function (requestParameters, initOverrides) {
|
|
505
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
506
|
-
var response;
|
|
507
|
-
return __generator(this, function (_a) {
|
|
508
|
-
switch (_a.label) {
|
|
509
|
-
case 0: return [4 /*yield*/, this.postDeleteTweetRaw(requestParameters, initOverrides)];
|
|
510
|
-
case 1:
|
|
511
|
-
response = _a.sent();
|
|
512
|
-
return [4 /*yield*/, response.value()];
|
|
513
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
});
|
|
517
|
-
};
|
|
518
|
-
/**
|
|
519
|
-
* favorite Tweet
|
|
520
|
-
*/
|
|
521
|
-
PostApi.prototype.postFavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
522
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
523
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
524
|
-
return __generator(this, function (_a) {
|
|
525
|
-
switch (_a.label) {
|
|
526
|
-
case 0:
|
|
527
|
-
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
528
|
-
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postFavoriteTweet.');
|
|
529
|
-
}
|
|
530
|
-
if (requestParameters.postFavoriteTweetRequest === null || requestParameters.postFavoriteTweetRequest === undefined) {
|
|
531
|
-
throw new runtime.RequiredError('postFavoriteTweetRequest', 'Required parameter requestParameters.postFavoriteTweetRequest was null or undefined when calling postFavoriteTweet.');
|
|
532
|
-
}
|
|
533
|
-
queryParameters = {};
|
|
534
|
-
headerParameters = {};
|
|
535
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
536
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
537
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
538
|
-
}
|
|
539
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
540
|
-
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
541
|
-
}
|
|
542
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
543
|
-
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
544
|
-
}
|
|
545
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
546
|
-
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
547
|
-
}
|
|
548
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
549
|
-
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
550
|
-
}
|
|
551
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
552
|
-
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
553
|
-
}
|
|
554
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
555
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
556
|
-
}
|
|
557
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
558
|
-
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
559
|
-
}
|
|
560
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
561
|
-
token = this.configuration.accessToken;
|
|
562
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
563
|
-
case 1:
|
|
564
|
-
tokenString = _a.sent();
|
|
565
|
-
if (tokenString) {
|
|
566
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
567
|
-
}
|
|
568
|
-
_a.label = 2;
|
|
569
|
-
case 2:
|
|
570
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
571
|
-
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
572
|
-
}
|
|
573
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
574
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
575
|
-
}
|
|
576
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
577
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
578
|
-
}
|
|
579
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
580
|
-
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
581
|
-
}
|
|
582
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
583
|
-
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
584
|
-
}
|
|
585
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
586
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
587
|
-
}
|
|
588
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
589
|
-
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
590
|
-
}
|
|
591
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
592
|
-
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
593
|
-
}
|
|
594
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
595
|
-
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
596
|
-
}
|
|
597
|
-
return [4 /*yield*/, this.request({
|
|
598
|
-
path: "/graphql/{pathQueryId}/FavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
599
|
-
method: 'POST',
|
|
600
|
-
headers: headerParameters,
|
|
601
|
-
query: queryParameters,
|
|
602
|
-
body: (0, models_1.PostFavoriteTweetRequestToJSON)(requestParameters.postFavoriteTweetRequest),
|
|
603
|
-
}, initOverrides)];
|
|
604
|
-
case 3:
|
|
605
|
-
response = _a.sent();
|
|
606
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostFavoriteTweet200ResponseFromJSON)(jsonValue); })];
|
|
607
|
-
}
|
|
608
|
-
});
|
|
609
|
-
});
|
|
610
|
-
};
|
|
611
|
-
/**
|
|
612
|
-
* favorite Tweet
|
|
613
|
-
*/
|
|
614
|
-
PostApi.prototype.postFavoriteTweet = function (requestParameters, initOverrides) {
|
|
615
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
616
|
-
var response;
|
|
617
|
-
return __generator(this, function (_a) {
|
|
618
|
-
switch (_a.label) {
|
|
619
|
-
case 0: return [4 /*yield*/, this.postFavoriteTweetRaw(requestParameters, initOverrides)];
|
|
620
|
-
case 1:
|
|
621
|
-
response = _a.sent();
|
|
622
|
-
return [4 /*yield*/, response.value()];
|
|
623
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
});
|
|
627
|
-
};
|
|
628
|
-
/**
|
|
629
|
-
* unfavorite Tweet
|
|
630
|
-
*/
|
|
631
|
-
PostApi.prototype.postUnfavoriteTweetRaw = function (requestParameters, initOverrides) {
|
|
632
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
633
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
634
|
-
return __generator(this, function (_a) {
|
|
635
|
-
switch (_a.label) {
|
|
636
|
-
case 0:
|
|
637
|
-
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
638
|
-
throw new runtime.RequiredError('pathQueryId', 'Required parameter requestParameters.pathQueryId was null or undefined when calling postUnfavoriteTweet.');
|
|
639
|
-
}
|
|
640
|
-
if (requestParameters.postUnfavoriteTweetRequest === null || requestParameters.postUnfavoriteTweetRequest === undefined) {
|
|
641
|
-
throw new runtime.RequiredError('postUnfavoriteTweetRequest', 'Required parameter requestParameters.postUnfavoriteTweetRequest was null or undefined when calling postUnfavoriteTweet.');
|
|
642
|
-
}
|
|
643
|
-
queryParameters = {};
|
|
644
|
-
headerParameters = {};
|
|
645
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
646
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
647
|
-
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
648
|
-
}
|
|
649
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
650
|
-
headerParameters["Accept"] = this.configuration.apiKey("Accept"); // Accept authentication
|
|
651
|
-
}
|
|
652
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
653
|
-
headerParameters["Sec-Fetch-Dest"] = this.configuration.apiKey("Sec-Fetch-Dest"); // SecFetchDest authentication
|
|
654
|
-
}
|
|
655
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
656
|
-
headerParameters["Pragma"] = this.configuration.apiKey("Pragma"); // Pragma authentication
|
|
657
|
-
}
|
|
658
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
659
|
-
headerParameters["Sec-Ch-Ua-Platform"] = this.configuration.apiKey("Sec-Ch-Ua-Platform"); // SecChUaPlatform authentication
|
|
660
|
-
}
|
|
661
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
662
|
-
headerParameters["Sec-Fetch-Mode"] = this.configuration.apiKey("Sec-Fetch-Mode"); // SecFetchMode authentication
|
|
663
|
-
}
|
|
664
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
665
|
-
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
666
|
-
}
|
|
667
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
668
|
-
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
669
|
-
}
|
|
670
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
671
|
-
token = this.configuration.accessToken;
|
|
672
|
-
return [4 /*yield*/, token("BearerAuth", [])];
|
|
673
|
-
case 1:
|
|
674
|
-
tokenString = _a.sent();
|
|
675
|
-
if (tokenString) {
|
|
676
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
677
|
-
}
|
|
678
|
-
_a.label = 2;
|
|
679
|
-
case 2:
|
|
680
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
681
|
-
headerParameters["Sec-Ch-Ua"] = this.configuration.apiKey("Sec-Ch-Ua"); // SecChUa authentication
|
|
682
|
-
}
|
|
683
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
684
|
-
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
685
|
-
}
|
|
686
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
687
|
-
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
688
|
-
}
|
|
689
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
690
|
-
headerParameters["Accept-Language"] = this.configuration.apiKey("Accept-Language"); // AcceptLanguage authentication
|
|
691
|
-
}
|
|
692
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
693
|
-
headerParameters["Sec-Fetch-Site"] = this.configuration.apiKey("Sec-Fetch-Site"); // SecFetchSite authentication
|
|
694
|
-
}
|
|
695
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
696
|
-
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
697
|
-
}
|
|
698
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
699
|
-
headerParameters["Cache-Control"] = this.configuration.apiKey("Cache-Control"); // CacheControl authentication
|
|
700
|
-
}
|
|
701
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
702
|
-
headerParameters["Sec-Ch-Ua-Mobile"] = this.configuration.apiKey("Sec-Ch-Ua-Mobile"); // SecChUaMobile authentication
|
|
703
|
-
}
|
|
704
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
705
|
-
headerParameters["Accept-Encoding"] = this.configuration.apiKey("Accept-Encoding"); // AcceptEncoding authentication
|
|
706
|
-
}
|
|
707
|
-
return [4 /*yield*/, this.request({
|
|
708
|
-
path: "/graphql/{pathQueryId}/UnfavoriteTweet".replace("{".concat("pathQueryId", "}"), encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
709
|
-
method: 'POST',
|
|
710
|
-
headers: headerParameters,
|
|
711
|
-
query: queryParameters,
|
|
712
|
-
body: (0, models_1.PostUnfavoriteTweetRequestToJSON)(requestParameters.postUnfavoriteTweetRequest),
|
|
713
|
-
}, initOverrides)];
|
|
714
|
-
case 3:
|
|
715
|
-
response = _a.sent();
|
|
716
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PostUnfavoriteTweet200ResponseFromJSON)(jsonValue); })];
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
});
|
|
720
|
-
};
|
|
721
|
-
/**
|
|
722
|
-
* unfavorite Tweet
|
|
723
|
-
*/
|
|
724
|
-
PostApi.prototype.postUnfavoriteTweet = function (requestParameters, initOverrides) {
|
|
725
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
726
|
-
var response;
|
|
727
|
-
return __generator(this, function (_a) {
|
|
728
|
-
switch (_a.label) {
|
|
729
|
-
case 0: return [4 /*yield*/, this.postUnfavoriteTweetRaw(requestParameters, initOverrides)];
|
|
730
|
-
case 1:
|
|
731
|
-
response = _a.sent();
|
|
732
|
-
return [4 /*yield*/, response.value()];
|
|
733
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
});
|
|
737
|
-
};
|
|
738
|
-
return PostApi;
|
|
739
|
-
}(runtime.BaseAPI));
|
|
740
|
-
exports.PostApi = PostApi;
|
|
741
|
-
//# sourceMappingURL=PostApi.js.map
|