x_api_scraper 0.1.0
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.
- checksums.yaml +7 -0
- data/lib/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +265 -0
- data/lib/crystalline/module.rb +188 -0
- data/lib/crystalline/types.rb +170 -0
- data/lib/crystalline/utils.rb +69 -0
- data/lib/crystalline.rb +13 -0
- data/lib/x_api_scraper.rb +41 -0
- data/lib/xapi_scraper/account.rb +194 -0
- data/lib/xapi_scraper/actions.rb +2166 -0
- data/lib/xapi_scraper/analysis.rb +230 -0
- data/lib/xapi_scraper/articles.rb +410 -0
- data/lib/xapi_scraper/client.rb +133 -0
- data/lib/xapi_scraper/communities.rb +1352 -0
- data/lib/xapi_scraper/dm.rb +990 -0
- data/lib/xapi_scraper/engagement.rb +792 -0
- data/lib/xapi_scraper/followers.rb +420 -0
- data/lib/xapi_scraper/following.rb +230 -0
- data/lib/xapi_scraper/lists.rb +1156 -0
- data/lib/xapi_scraper/models/callbacks.rb +12 -0
- data/lib/xapi_scraper/models/components/accountverifymodel.rb +82 -0
- data/lib/xapi_scraper/models/components/accountverifymodel.rbi +38 -0
- data/lib/xapi_scraper/models/components/accountverifyresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/accountverifyresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorquery.rb +51 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorresponse.rb +76 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/articleblock.rb +50 -0
- data/lib/xapi_scraper/models/components/articleblock.rbi +26 -0
- data/lib/xapi_scraper/models/components/articleblockrange.rb +47 -0
- data/lib/xapi_scraper/models/components/articleblockrange.rbi +26 -0
- data/lib/xapi_scraper/models/components/blockuserresponse.rb +54 -0
- data/lib/xapi_scraper/models/components/blockuserresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/bookmarkbody.rb +43 -0
- data/lib/xapi_scraper/models/components/bookmarkbody.rbi +20 -0
- data/lib/xapi_scraper/models/components/cashtagsquery.rb +192 -0
- data/lib/xapi_scraper/models/components/cashtagsquery.rbi +98 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_language.rb +76 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_language.rbi +9 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_sortby.rb +18 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_sortby.rbi +9 -0
- data/lib/xapi_scraper/models/components/communitymodel.rb +164 -0
- data/lib/xapi_scraper/models/components/communitymodel.rbi +92 -0
- data/lib/xapi_scraper/models/components/communitytweetsresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/communitytweetsresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/context.rb +25 -0
- data/lib/xapi_scraper/models/components/context.rbi +9 -0
- data/lib/xapi_scraper/models/components/conversationv3model.rb +57 -0
- data/lib/xapi_scraper/models/components/conversationv3model.rbi +32 -0
- data/lib/xapi_scraper/models/components/createthreaddata.rb +35 -0
- data/lib/xapi_scraper/models/components/createthreaddata.rbi +14 -0
- data/lib/xapi_scraper/models/components/createthreadquery.rb +51 -0
- data/lib/xapi_scraper/models/components/createthreadquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/createthreadresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/createthreadresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/createthreadtweetitem.rb +31 -0
- data/lib/xapi_scraper/models/components/createthreadtweetitem.rbi +14 -0
- data/lib/xapi_scraper/models/components/deletebookmarkquery.rb +35 -0
- data/lib/xapi_scraper/models/components/deletebookmarkquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/deleteretweetquery.rb +35 -0
- data/lib/xapi_scraper/models/components/deleteretweetquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/deletetweetquery.rb +51 -0
- data/lib/xapi_scraper/models/components/deletetweetquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/deletetweetresponse.rb +51 -0
- data/lib/xapi_scraper/models/components/deletetweetresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/dmhistoryv3data.rb +54 -0
- data/lib/xapi_scraper/models/components/dmhistoryv3data.rbi +26 -0
- data/lib/xapi_scraper/models/components/dmstatusmodelv2.rb +122 -0
- data/lib/xapi_scraper/models/components/dmstatusmodelv2.rbi +62 -0
- data/lib/xapi_scraper/models/components/dmstatusresponsev2.rb +47 -0
- data/lib/xapi_scraper/models/components/dmstatusresponsev2.rbi +26 -0
- data/lib/xapi_scraper/models/components/followersfollowingv3query.rb +51 -0
- data/lib/xapi_scraper/models/components/followersfollowingv3query.rbi +26 -0
- data/lib/xapi_scraper/models/components/followuserquery.rb +43 -0
- data/lib/xapi_scraper/models/components/followuserquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorresponse.rb +76 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getcommunityresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/getcommunityresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorquery.rb +60 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getconversationsv3query.rb +62 -0
- data/lib/xapi_scraper/models/components/getconversationsv3query.rbi +32 -0
- data/lib/xapi_scraper/models/components/getconversationsv3response.rb +47 -0
- data/lib/xapi_scraper/models/components/getconversationsv3response.rbi +26 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3query.rb +94 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3query.rbi +50 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3response.rb +47 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3response.rbi +26 -0
- data/lib/xapi_scraper/models/components/getdmmediav3data.rb +77 -0
- data/lib/xapi_scraper/models/components/getdmmediav3data.rbi +44 -0
- data/lib/xapi_scraper/models/components/getdmmediav3query.rb +112 -0
- data/lib/xapi_scraper/models/components/getdmmediav3query.rbi +56 -0
- data/lib/xapi_scraper/models/components/getdmmediav3response.rb +47 -0
- data/lib/xapi_scraper/models/components/getdmmediav3response.rbi +26 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery.rb +63 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery_sort_by.rb +18 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery_sort_by.rbi +9 -0
- data/lib/xapi_scraper/models/components/getquotescursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getquotescursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getquotesquery.rb +59 -0
- data/lib/xapi_scraper/models/components/getquotesquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/getquotesquery_sort_by.rb +18 -0
- data/lib/xapi_scraper/models/components/getquotesquery_sort_by.rbi +9 -0
- data/lib/xapi_scraper/models/components/getquotesresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/getquotesresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery.rb +51 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery_sort_by.rb +19 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery_sort_by.rbi +9 -0
- data/lib/xapi_scraper/models/components/getrepliespageresponse.rb +85 -0
- data/lib/xapi_scraper/models/components/getrepliespageresponse.rbi +44 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/gettweetsbyidresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/gettweetsbyidresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/hashtagsquery.rb +192 -0
- data/lib/xapi_scraper/models/components/hashtagsquery.rbi +98 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_language.rb +76 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_language.rbi +9 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_sortby.rb +18 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_sortby.rbi +9 -0
- data/lib/xapi_scraper/models/components/likeactionbody.rb +43 -0
- data/lib/xapi_scraper/models/components/likeactionbody.rbi +20 -0
- data/lib/xapi_scraper/models/components/listmembersresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/listmembersresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/listmodel.rb +77 -0
- data/lib/xapi_scraper/models/components/listmodel.rbi +44 -0
- data/lib/xapi_scraper/models/components/listsubscribersresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/listsubscribersresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/listtweetsresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/listtweetsresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/loc.rb +25 -0
- data/lib/xapi_scraper/models/components/loc.rbi +9 -0
- data/lib/xapi_scraper/models/components/mediamodel.rb +194 -0
- data/lib/xapi_scraper/models/components/mediamodel.rbi +110 -0
- data/lib/xapi_scraper/models/components/messagemodel.rb +100 -0
- data/lib/xapi_scraper/models/components/messagemodel.rbi +56 -0
- data/lib/xapi_scraper/models/components/posttweetdata.rb +51 -0
- data/lib/xapi_scraper/models/components/posttweetdata.rbi +26 -0
- data/lib/xapi_scraper/models/components/posttweetquery.rb +122 -0
- data/lib/xapi_scraper/models/components/posttweetquery.rbi +62 -0
- data/lib/xapi_scraper/models/components/posttweetresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/posttweetresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/posttweetwithoutcookiequery.rb +102 -0
- data/lib/xapi_scraper/models/components/posttweetwithoutcookiequery.rbi +50 -0
- data/lib/xapi_scraper/models/components/quotetweetquery.rb +112 -0
- data/lib/xapi_scraper/models/components/quotetweetquery.rbi +56 -0
- data/lib/xapi_scraper/models/components/retweetactionbody.rb +43 -0
- data/lib/xapi_scraper/models/components/retweetactionbody.rbi +20 -0
- data/lib/xapi_scraper/models/components/searchcommunityquery.rb +43 -0
- data/lib/xapi_scraper/models/components/searchcommunityquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/searchcommunityresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/searchcommunityresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchcommunitytweetsquery.rb +51 -0
- data/lib/xapi_scraper/models/components/searchcommunitytweetsquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchlistquery.rb +43 -0
- data/lib/xapi_scraper/models/components/searchlistquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/searchlistresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/searchlistresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchresponse.rb +54 -0
- data/lib/xapi_scraper/models/components/searchresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchuserresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/searchuserresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/security.rb +34 -0
- data/lib/xapi_scraper/models/components/security.rbi +14 -0
- data/lib/xapi_scraper/models/components/senddmresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/senddmresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/senddmv3query.rb +90 -0
- data/lib/xapi_scraper/models/components/senddmv3query.rbi +50 -0
- data/lib/xapi_scraper/models/components/sentimentanalysismodel.rb +43 -0
- data/lib/xapi_scraper/models/components/sentimentanalysismodel.rbi +20 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisquery.rb +31 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/standardresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/standardresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/streammodel.rb +51 -0
- data/lib/xapi_scraper/models/components/streammodel.rbi +26 -0
- data/lib/xapi_scraper/models/components/tweet_type.rb +19 -0
- data/lib/xapi_scraper/models/components/tweet_type.rbi +9 -0
- data/lib/xapi_scraper/models/components/tweetactionresponse.rb +51 -0
- data/lib/xapi_scraper/models/components/tweetactionresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/tweetmodel.rb +518 -0
- data/lib/xapi_scraper/models/components/tweetmodel.rbi +302 -0
- data/lib/xapi_scraper/models/components/tweetthreadbyidbody.rb +53 -0
- data/lib/xapi_scraper/models/components/tweetthreadbyidbody.rbi +26 -0
- data/lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutresponse.rb +208 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutresponse.rbi +116 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutstandardresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutstandardresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/unfavoritetweetquery.rb +35 -0
- data/lib/xapi_scraper/models/components/unfavoritetweetquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/unfollowuserquery.rb +43 -0
- data/lib/xapi_scraper/models/components/unfollowuserquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/unfollowuserresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/unfollowuserresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/urlmodel.rb +47 -0
- data/lib/xapi_scraper/models/components/urlmodel.rbi +26 -0
- data/lib/xapi_scraper/models/components/userinfo.rb +348 -0
- data/lib/xapi_scraper/models/components/userinfo.rbi +200 -0
- data/lib/xapi_scraper/models/components/usermodel.rb +344 -0
- data/lib/xapi_scraper/models/components/usermodel.rbi +200 -0
- data/lib/xapi_scraper/models/components/usersdetailsresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/usersdetailsresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/usertimelinefillquery.rb +35 -0
- data/lib/xapi_scraper/models/components/usertimelinefillquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/usertimelinepagequery.rb +43 -0
- data/lib/xapi_scraper/models/components/usertimelinepagequery.rbi +20 -0
- data/lib/xapi_scraper/models/components/usertimelinepageresponse.rb +112 -0
- data/lib/xapi_scraper/models/components/usertimelinepageresponse.rbi +56 -0
- data/lib/xapi_scraper/models/components/usertimelineresponse.rb +76 -0
- data/lib/xapi_scraper/models/components/usertimelineresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/usertweetitem.rb +225 -0
- data/lib/xapi_scraper/models/components/usertweetitem.rbi +122 -0
- data/lib/xapi_scraper/models/components/validationerror.rb +67 -0
- data/lib/xapi_scraper/models/components/validationerror.rbi +38 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersdata.rb +58 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersdata.rbi +26 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/xarticlemodel.rb +305 -0
- data/lib/xapi_scraper/models/components/xarticlemodel.rbi +170 -0
- data/lib/xapi_scraper/models/components/xarticleresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/xarticleresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components.rb +128 -0
- data/lib/xapi_scraper/models/errors/apierror.rb +39 -0
- data/lib/xapi_scraper/models/errors/apierror.rbi +27 -0
- data/lib/xapi_scraper/models/errors/httpvalidationerror.rb +48 -0
- data/lib/xapi_scraper/models/errors/httpvalidationerror.rbi +20 -0
- data/lib/xapi_scraper/models/errors.rb +13 -0
- data/lib/xapi_scraper/models/operations/accountgetbalance_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/accountgetbalance_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/analysissentiment_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/analysissentiment_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/articlesfetch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/articlesfetch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_request.rb +31 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiesget_request.rb +34 -0
- data/lib/xapi_scraper/models/operations/communitiesget_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/communitiesget_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiesget_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_request.rb +42 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiesmemberspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/communitiesmemberspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiessearch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiessearch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiessearchtweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiessearchtweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_request.rb +50 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_request.rbi +26 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiestweetspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/communitiestweetspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/country.rb +79 -0
- data/lib/xapi_scraper/models/operations/country.rbi +9 -0
- data/lib/xapi_scraper/models/operations/dmconversations_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmconversations_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmhistory_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmhistory_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmmedia_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmmedia_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmsend_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmsend_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmstatus_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmstatus_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listsmembers_request.rb +38 -0
- data/lib/xapi_scraper/models/operations/listsmembers_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/listsmembers_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/listsmembers_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listsmemberspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/listsmemberspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listssearch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/listssearch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_request.rb +38 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/liststweets_request.rb +38 -0
- data/lib/xapi_scraper/models/operations/liststweets_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/liststweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/liststweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/liststweetspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/liststweetspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/searchadvanced_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/searchadvanced_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/searchcashtags_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/searchcashtags_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/searchhashtags_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/searchhashtags_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandrepliespage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandrepliespage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingcountries_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingcountries_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingtopics_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingtopics_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_request.rb +63 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_request.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweet_type.rb +19 -0
- data/lib/xapi_scraper/models/operations/tweet_type.rbi +9 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreate_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreate_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatethread_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatethread_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatewithoutcookie_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatewithoutcookie_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsdeletebatch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsdeletebatch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsquote_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsquote_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsdetail_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsdetail_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotes_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotes_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotespage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotespage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_request.rb +39 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeterspage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeterspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetslookup_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetslookup_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_request.rb +30 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsthread_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsthread_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollow_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollow_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollowerslist_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollowerslist_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollowersverified_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollowersverified_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollowinglist_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollowinglist_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_request.rb +31 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetaccountbased_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/usersgetaccountbased_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetbyids_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersgetbyids_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetbyusernames_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersgetbyusernames_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetstatuses_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersgetstatuses_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/userssearch_request.rb +39 -0
- data/lib/xapi_scraper/models/operations/userssearch_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/userssearch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/userssearch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersunfollow_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersunfollow_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersverifyaccount_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersverifyaccount_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations.rb +127 -0
- data/lib/xapi_scraper/replies.rb +235 -0
- data/lib/xapi_scraper/sdk_hooks/hooks.rb +99 -0
- data/lib/xapi_scraper/sdk_hooks/registration.rb +34 -0
- data/lib/xapi_scraper/sdk_hooks/types.rb +180 -0
- data/lib/xapi_scraper/sdkconfiguration.rb +107 -0
- data/lib/xapi_scraper/sdkconfiguration.rbi +83 -0
- data/lib/xapi_scraper/search.rb +610 -0
- data/lib/xapi_scraper/timelines.rb +805 -0
- data/lib/xapi_scraper/trending.rb +888 -0
- data/lib/xapi_scraper/tweets.rb +801 -0
- data/lib/xapi_scraper/users.rb +1748 -0
- data/lib/xapi_scraper/utils/forms.rb +232 -0
- data/lib/xapi_scraper/utils/headers.rb +82 -0
- data/lib/xapi_scraper/utils/query_params.rb +167 -0
- data/lib/xapi_scraper/utils/request_bodies.rb +79 -0
- data/lib/xapi_scraper/utils/retries.rb +139 -0
- data/lib/xapi_scraper/utils/security.rb +158 -0
- data/lib/xapi_scraper/utils/url.rb +124 -0
- data/lib/xapi_scraper/utils/utils.rb +241 -0
- metadata +720 -0
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
|
|
10
|
+
class TweetModel
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# The unique identifier for the Tweet
|
|
15
|
+
field(
|
|
16
|
+
:tweet_id,
|
|
17
|
+
::String,
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("tweet_id"), required: true}}
|
|
19
|
+
)
|
|
20
|
+
# The actual text content of the Tweet
|
|
21
|
+
field :text, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("text"), required: true}}
|
|
22
|
+
# A list of Tweet IDs for each edit of the Tweet
|
|
23
|
+
field(
|
|
24
|
+
:edit_tweet_ids,
|
|
25
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
26
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("edit_tweet_ids")}}
|
|
27
|
+
)
|
|
28
|
+
# A list of hashtags mentioned in the Tweet
|
|
29
|
+
field(
|
|
30
|
+
:hashtags,
|
|
31
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
32
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("hashtags")}}
|
|
33
|
+
)
|
|
34
|
+
# A list of cashtags (stock symbols) mentioned in the Tweet
|
|
35
|
+
field(
|
|
36
|
+
:cashtags,
|
|
37
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
38
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("cashtags")}}
|
|
39
|
+
)
|
|
40
|
+
# A list of media objects (photos, videos) attached to the Tweet
|
|
41
|
+
field(
|
|
42
|
+
:media,
|
|
43
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::MediaModel)),
|
|
44
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("media")}}
|
|
45
|
+
)
|
|
46
|
+
# A list of related Tweets
|
|
47
|
+
field(
|
|
48
|
+
:related_tweets,
|
|
49
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::TweetModel)),
|
|
50
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("related_tweets")}}
|
|
51
|
+
)
|
|
52
|
+
# A list of replies to this Tweet
|
|
53
|
+
field(
|
|
54
|
+
:replies,
|
|
55
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::TweetModel)),
|
|
56
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("replies")}}
|
|
57
|
+
)
|
|
58
|
+
# A list of URLs included in the Tweet
|
|
59
|
+
field(
|
|
60
|
+
:urls,
|
|
61
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
62
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("urls")}}
|
|
63
|
+
)
|
|
64
|
+
# Indicates whether the content or user is associated with a paid promotion
|
|
65
|
+
field(
|
|
66
|
+
:is_paid_promotion,
|
|
67
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
68
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("is_paid_promotion")}}
|
|
69
|
+
)
|
|
70
|
+
# The date and time the Tweet was created
|
|
71
|
+
field(
|
|
72
|
+
:created_at,
|
|
73
|
+
Crystalline::Nilable.new(::String),
|
|
74
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("created_at")}}
|
|
75
|
+
)
|
|
76
|
+
# The ISO 8601 format of the creation date
|
|
77
|
+
field(
|
|
78
|
+
:created_at_datetime,
|
|
79
|
+
Crystalline::Nilable.new(::String),
|
|
80
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("created_at_datetime")}}
|
|
81
|
+
)
|
|
82
|
+
# Number of times the Tweet has been bookmarked
|
|
83
|
+
field(
|
|
84
|
+
:bookmark_count,
|
|
85
|
+
Crystalline::Nilable.new(::Integer),
|
|
86
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("bookmark_count")}}
|
|
87
|
+
)
|
|
88
|
+
# Indicates if the authenticating user has bookmarked this Tweet
|
|
89
|
+
field(
|
|
90
|
+
:bookmarked,
|
|
91
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
92
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("bookmarked")}}
|
|
93
|
+
)
|
|
94
|
+
# Community note associated with the Tweet
|
|
95
|
+
field(
|
|
96
|
+
:community_note,
|
|
97
|
+
Crystalline::Nilable.new(::String),
|
|
98
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("community_note")}}
|
|
99
|
+
)
|
|
100
|
+
# Timestamp for when the Tweet is no longer editable
|
|
101
|
+
field(
|
|
102
|
+
:editable_until_msecs,
|
|
103
|
+
Crystalline::Nilable.new(::String),
|
|
104
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("editable_until_msecs")}}
|
|
105
|
+
)
|
|
106
|
+
# Number of edits remaining for the Tweet
|
|
107
|
+
field(
|
|
108
|
+
:edits_remaining,
|
|
109
|
+
Crystalline::Nilable.new(::String),
|
|
110
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("edits_remaining")}}
|
|
111
|
+
)
|
|
112
|
+
# Number of likes (favorites) for the Tweet
|
|
113
|
+
field(
|
|
114
|
+
:favorite_count,
|
|
115
|
+
Crystalline::Nilable.new(::Integer),
|
|
116
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("favorite_count")}}
|
|
117
|
+
)
|
|
118
|
+
# Indicates if the authenticating user has liked this Tweet
|
|
119
|
+
field(
|
|
120
|
+
:favorited,
|
|
121
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
122
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("favorited")}}
|
|
123
|
+
)
|
|
124
|
+
# The full text of the Tweet, especially for extended tweets
|
|
125
|
+
field(
|
|
126
|
+
:full_text,
|
|
127
|
+
Crystalline::Nilable.new(::String),
|
|
128
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("full_text")}}
|
|
129
|
+
)
|
|
130
|
+
# Indicates if the Tweet has a card attached
|
|
131
|
+
field(
|
|
132
|
+
:has_card,
|
|
133
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
134
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("has_card")}}
|
|
135
|
+
)
|
|
136
|
+
# Indicates if the Tweet has community notes
|
|
137
|
+
field(
|
|
138
|
+
:has_community_notes,
|
|
139
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
140
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("has_community_notes")}}
|
|
141
|
+
)
|
|
142
|
+
# The unique identifier for the Tweet (same as tweet_id)
|
|
143
|
+
field(
|
|
144
|
+
:id,
|
|
145
|
+
Crystalline::Nilable.new(::String),
|
|
146
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("id")}}
|
|
147
|
+
)
|
|
148
|
+
# ID of the Tweet this is a reply to
|
|
149
|
+
field(
|
|
150
|
+
:in_reply_to,
|
|
151
|
+
Crystalline::Nilable.new(::String),
|
|
152
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("in_reply_to")}}
|
|
153
|
+
)
|
|
154
|
+
# ID of the user this is a reply to
|
|
155
|
+
field(
|
|
156
|
+
:in_reply_to_user_id,
|
|
157
|
+
Crystalline::Nilable.new(::String),
|
|
158
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("in_reply_to_user_id")}}
|
|
159
|
+
)
|
|
160
|
+
# Screen name of the user this is a reply to
|
|
161
|
+
field(
|
|
162
|
+
:in_reply_to_screen_name,
|
|
163
|
+
Crystalline::Nilable.new(::String),
|
|
164
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("in_reply_to_screen_name")}}
|
|
165
|
+
)
|
|
166
|
+
# Indicates if the Tweet is eligible for editing
|
|
167
|
+
field(
|
|
168
|
+
:is_edit_eligible,
|
|
169
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
170
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("is_edit_eligible")}}
|
|
171
|
+
)
|
|
172
|
+
# Indicates if this Tweet is a quote of another Tweet
|
|
173
|
+
field(
|
|
174
|
+
:is_quote_status,
|
|
175
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
176
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("is_quote_status")}}
|
|
177
|
+
)
|
|
178
|
+
# The unique identifier for the Tweet that this is a quote of
|
|
179
|
+
field(
|
|
180
|
+
:quoted_status_id_str,
|
|
181
|
+
Crystalline::Nilable.new(::String),
|
|
182
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("quoted_status_id_str")}}
|
|
183
|
+
)
|
|
184
|
+
# Indicates if the Tweet is translatable
|
|
185
|
+
field(
|
|
186
|
+
:is_translatable,
|
|
187
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
188
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("is_translatable")}}
|
|
189
|
+
)
|
|
190
|
+
# The BCP 47 language identifier for the Tweet's content
|
|
191
|
+
field(
|
|
192
|
+
:lang,
|
|
193
|
+
Crystalline::Nilable.new(::String),
|
|
194
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("lang")}}
|
|
195
|
+
)
|
|
196
|
+
# The location associated with the Tweet
|
|
197
|
+
field(
|
|
198
|
+
:place,
|
|
199
|
+
Crystalline::Nilable.new(::String),
|
|
200
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("place")}}
|
|
201
|
+
)
|
|
202
|
+
# A poll attached to the Tweet
|
|
203
|
+
field(
|
|
204
|
+
:poll,
|
|
205
|
+
Crystalline::Nilable.new(::String),
|
|
206
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("poll")}}
|
|
207
|
+
)
|
|
208
|
+
# Indicates if the Tweet may contain sensitive content
|
|
209
|
+
field(
|
|
210
|
+
:possibly_sensitive,
|
|
211
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
212
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("possibly_sensitive")}}
|
|
213
|
+
)
|
|
214
|
+
# Indicates if the sensitive content flag is editable
|
|
215
|
+
field(
|
|
216
|
+
:possibly_sensitive_editable,
|
|
217
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
218
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("possibly_sensitive_editable")}}
|
|
219
|
+
)
|
|
220
|
+
# The Tweet object being quoted
|
|
221
|
+
field(
|
|
222
|
+
:quote,
|
|
223
|
+
Crystalline::Nilable.new(Models::Components::TweetModel),
|
|
224
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("quote")}}
|
|
225
|
+
)
|
|
226
|
+
# Number of times this Tweet has been quoted
|
|
227
|
+
field(
|
|
228
|
+
:quote_count,
|
|
229
|
+
Crystalline::Nilable.new(::Integer),
|
|
230
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("quote_count")}}
|
|
231
|
+
)
|
|
232
|
+
# Number of replies to this Tweet
|
|
233
|
+
field(
|
|
234
|
+
:reply_count,
|
|
235
|
+
Crystalline::Nilable.new(::Integer),
|
|
236
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("reply_count")}}
|
|
237
|
+
)
|
|
238
|
+
# The Tweet object this is a reply to
|
|
239
|
+
field(
|
|
240
|
+
:reply_to,
|
|
241
|
+
Crystalline::Nilable.new(Models::Components::TweetModel),
|
|
242
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("reply_to")}}
|
|
243
|
+
)
|
|
244
|
+
# Number of times this Tweet has been retweeted
|
|
245
|
+
field(
|
|
246
|
+
:retweet_count,
|
|
247
|
+
Crystalline::Nilable.new(::Integer),
|
|
248
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("retweet_count")}}
|
|
249
|
+
)
|
|
250
|
+
# The original Tweet object if this is a retweet
|
|
251
|
+
field(
|
|
252
|
+
:retweeted_tweet,
|
|
253
|
+
Crystalline::Nilable.new(Models::Components::TweetModel),
|
|
254
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("retweeted_tweet")}}
|
|
255
|
+
)
|
|
256
|
+
# The conversation thread ID
|
|
257
|
+
field(
|
|
258
|
+
:thread,
|
|
259
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::TweetModel)),
|
|
260
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("thread")}}
|
|
261
|
+
)
|
|
262
|
+
# Title for the thumbnail in a card
|
|
263
|
+
field(
|
|
264
|
+
:thumbnail_title,
|
|
265
|
+
Crystalline::Nilable.new(::String),
|
|
266
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("thumbnail_title")}}
|
|
267
|
+
)
|
|
268
|
+
# URL for the thumbnail in a card
|
|
269
|
+
field(
|
|
270
|
+
:thumbnail_url,
|
|
271
|
+
Crystalline::Nilable.new(::String),
|
|
272
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("thumbnail_url")}}
|
|
273
|
+
)
|
|
274
|
+
# The user who posted the Tweet
|
|
275
|
+
field(
|
|
276
|
+
:user,
|
|
277
|
+
Crystalline::Nilable.new(Models::Components::UserModel),
|
|
278
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("user")}}
|
|
279
|
+
)
|
|
280
|
+
# Number of views for the Tweet
|
|
281
|
+
field(
|
|
282
|
+
:view_count,
|
|
283
|
+
Crystalline::Nilable.new(::String),
|
|
284
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("view_count")}}
|
|
285
|
+
)
|
|
286
|
+
# State of the view count
|
|
287
|
+
field(
|
|
288
|
+
:view_count_state,
|
|
289
|
+
Crystalline::Nilable.new(::String),
|
|
290
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("view_count_state")}}
|
|
291
|
+
)
|
|
292
|
+
# Raw status dictionary
|
|
293
|
+
field(
|
|
294
|
+
:status,
|
|
295
|
+
Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)),
|
|
296
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("status")}}
|
|
297
|
+
)
|
|
298
|
+
# The target count of items requested, for context
|
|
299
|
+
field(
|
|
300
|
+
:target_count,
|
|
301
|
+
Crystalline::Nilable.new(::Integer),
|
|
302
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("target_count")}}
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
sig {
|
|
306
|
+
params(
|
|
307
|
+
tweet_id: ::String,
|
|
308
|
+
text: ::String,
|
|
309
|
+
edit_tweet_ids: T.nilable(T::Array[::String]),
|
|
310
|
+
hashtags: T.nilable(T::Array[::String]),
|
|
311
|
+
cashtags: T.nilable(T::Array[::String]),
|
|
312
|
+
media: T.nilable(T::Array[Models::Components::MediaModel]),
|
|
313
|
+
related_tweets: T.nilable(T::Array[Models::Components::TweetModel]),
|
|
314
|
+
replies: T.nilable(T::Array[Models::Components::TweetModel]),
|
|
315
|
+
urls: T.nilable(T::Array[::String]),
|
|
316
|
+
is_paid_promotion: T.nilable(T::Boolean),
|
|
317
|
+
created_at: T.nilable(::String),
|
|
318
|
+
created_at_datetime: T.nilable(::String),
|
|
319
|
+
bookmark_count: T.nilable(::Integer),
|
|
320
|
+
bookmarked: T.nilable(T::Boolean),
|
|
321
|
+
community_note: T.nilable(::String),
|
|
322
|
+
editable_until_msecs: T.nilable(::String),
|
|
323
|
+
edits_remaining: T.nilable(::String),
|
|
324
|
+
favorite_count: T.nilable(::Integer),
|
|
325
|
+
favorited: T.nilable(T::Boolean),
|
|
326
|
+
full_text: T.nilable(::String),
|
|
327
|
+
has_card: T.nilable(T::Boolean),
|
|
328
|
+
has_community_notes: T.nilable(T::Boolean),
|
|
329
|
+
id: T.nilable(::String),
|
|
330
|
+
in_reply_to: T.nilable(::String),
|
|
331
|
+
in_reply_to_user_id: T.nilable(::String),
|
|
332
|
+
in_reply_to_screen_name: T.nilable(::String),
|
|
333
|
+
is_edit_eligible: T.nilable(T::Boolean),
|
|
334
|
+
is_quote_status: T.nilable(T::Boolean),
|
|
335
|
+
quoted_status_id_str: T.nilable(::String),
|
|
336
|
+
is_translatable: T.nilable(T::Boolean),
|
|
337
|
+
lang: T.nilable(::String),
|
|
338
|
+
place: T.nilable(::String),
|
|
339
|
+
poll: T.nilable(::String),
|
|
340
|
+
possibly_sensitive: T.nilable(T::Boolean),
|
|
341
|
+
possibly_sensitive_editable: T.nilable(T::Boolean),
|
|
342
|
+
quote: T.nilable(Models::Components::TweetModel),
|
|
343
|
+
quote_count: T.nilable(::Integer),
|
|
344
|
+
reply_count: T.nilable(::Integer),
|
|
345
|
+
reply_to: T.nilable(Models::Components::TweetModel),
|
|
346
|
+
retweet_count: T.nilable(::Integer),
|
|
347
|
+
retweeted_tweet: T.nilable(Models::Components::TweetModel),
|
|
348
|
+
thread: T.nilable(T::Array[Models::Components::TweetModel]),
|
|
349
|
+
thumbnail_title: T.nilable(::String),
|
|
350
|
+
thumbnail_url: T.nilable(::String),
|
|
351
|
+
user: T.nilable(Models::Components::UserModel),
|
|
352
|
+
view_count: T.nilable(::String),
|
|
353
|
+
view_count_state: T.nilable(::String),
|
|
354
|
+
status: T.nilable(T::Hash[Symbol, ::Object]),
|
|
355
|
+
target_count: T.nilable(::Integer)
|
|
356
|
+
)
|
|
357
|
+
.void
|
|
358
|
+
}
|
|
359
|
+
def initialize(
|
|
360
|
+
tweet_id:,
|
|
361
|
+
text:,
|
|
362
|
+
edit_tweet_ids: nil,
|
|
363
|
+
hashtags: nil,
|
|
364
|
+
cashtags: nil,
|
|
365
|
+
media: nil,
|
|
366
|
+
related_tweets: nil,
|
|
367
|
+
replies: nil,
|
|
368
|
+
urls: nil,
|
|
369
|
+
is_paid_promotion: nil,
|
|
370
|
+
created_at: nil,
|
|
371
|
+
created_at_datetime: nil,
|
|
372
|
+
bookmark_count: nil,
|
|
373
|
+
bookmarked: nil,
|
|
374
|
+
community_note: nil,
|
|
375
|
+
editable_until_msecs: nil,
|
|
376
|
+
edits_remaining: nil,
|
|
377
|
+
favorite_count: nil,
|
|
378
|
+
favorited: nil,
|
|
379
|
+
full_text: nil,
|
|
380
|
+
has_card: nil,
|
|
381
|
+
has_community_notes: nil,
|
|
382
|
+
id: nil,
|
|
383
|
+
in_reply_to: nil,
|
|
384
|
+
in_reply_to_user_id: nil,
|
|
385
|
+
in_reply_to_screen_name: nil,
|
|
386
|
+
is_edit_eligible: nil,
|
|
387
|
+
is_quote_status: nil,
|
|
388
|
+
quoted_status_id_str: nil,
|
|
389
|
+
is_translatable: nil,
|
|
390
|
+
lang: nil,
|
|
391
|
+
place: nil,
|
|
392
|
+
poll: nil,
|
|
393
|
+
possibly_sensitive: nil,
|
|
394
|
+
possibly_sensitive_editable: nil,
|
|
395
|
+
quote: nil,
|
|
396
|
+
quote_count: nil,
|
|
397
|
+
reply_count: nil,
|
|
398
|
+
reply_to: nil,
|
|
399
|
+
retweet_count: nil,
|
|
400
|
+
retweeted_tweet: nil,
|
|
401
|
+
thread: nil,
|
|
402
|
+
thumbnail_title: nil,
|
|
403
|
+
thumbnail_url: nil,
|
|
404
|
+
user: nil,
|
|
405
|
+
view_count: nil,
|
|
406
|
+
view_count_state: nil,
|
|
407
|
+
status: nil,
|
|
408
|
+
target_count: nil
|
|
409
|
+
)
|
|
410
|
+
@tweet_id = tweet_id
|
|
411
|
+
@text = text
|
|
412
|
+
@edit_tweet_ids = edit_tweet_ids
|
|
413
|
+
@hashtags = hashtags
|
|
414
|
+
@cashtags = cashtags
|
|
415
|
+
@media = media
|
|
416
|
+
@related_tweets = related_tweets
|
|
417
|
+
@replies = replies
|
|
418
|
+
@urls = urls
|
|
419
|
+
@is_paid_promotion = is_paid_promotion
|
|
420
|
+
@created_at = created_at
|
|
421
|
+
@created_at_datetime = created_at_datetime
|
|
422
|
+
@bookmark_count = bookmark_count
|
|
423
|
+
@bookmarked = bookmarked
|
|
424
|
+
@community_note = community_note
|
|
425
|
+
@editable_until_msecs = editable_until_msecs
|
|
426
|
+
@edits_remaining = edits_remaining
|
|
427
|
+
@favorite_count = favorite_count
|
|
428
|
+
@favorited = favorited
|
|
429
|
+
@full_text = full_text
|
|
430
|
+
@has_card = has_card
|
|
431
|
+
@has_community_notes = has_community_notes
|
|
432
|
+
@id = id
|
|
433
|
+
@in_reply_to = in_reply_to
|
|
434
|
+
@in_reply_to_user_id = in_reply_to_user_id
|
|
435
|
+
@in_reply_to_screen_name = in_reply_to_screen_name
|
|
436
|
+
@is_edit_eligible = is_edit_eligible
|
|
437
|
+
@is_quote_status = is_quote_status
|
|
438
|
+
@quoted_status_id_str = quoted_status_id_str
|
|
439
|
+
@is_translatable = is_translatable
|
|
440
|
+
@lang = lang
|
|
441
|
+
@place = place
|
|
442
|
+
@poll = poll
|
|
443
|
+
@possibly_sensitive = possibly_sensitive
|
|
444
|
+
@possibly_sensitive_editable = possibly_sensitive_editable
|
|
445
|
+
@quote = quote
|
|
446
|
+
@quote_count = quote_count
|
|
447
|
+
@reply_count = reply_count
|
|
448
|
+
@reply_to = reply_to
|
|
449
|
+
@retweet_count = retweet_count
|
|
450
|
+
@retweeted_tweet = retweeted_tweet
|
|
451
|
+
@thread = thread
|
|
452
|
+
@thumbnail_title = thumbnail_title
|
|
453
|
+
@thumbnail_url = thumbnail_url
|
|
454
|
+
@user = user
|
|
455
|
+
@view_count = view_count
|
|
456
|
+
@view_count_state = view_count_state
|
|
457
|
+
@status = status
|
|
458
|
+
@target_count = target_count
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
462
|
+
def ==(other)
|
|
463
|
+
return false unless other.is_a?(self.class)
|
|
464
|
+
return false unless @tweet_id == other.tweet_id
|
|
465
|
+
return false unless @text == other.text
|
|
466
|
+
return false unless @edit_tweet_ids == other.edit_tweet_ids
|
|
467
|
+
return false unless @hashtags == other.hashtags
|
|
468
|
+
return false unless @cashtags == other.cashtags
|
|
469
|
+
return false unless @media == other.media
|
|
470
|
+
return false unless @related_tweets == other.related_tweets
|
|
471
|
+
return false unless @replies == other.replies
|
|
472
|
+
return false unless @urls == other.urls
|
|
473
|
+
return false unless @is_paid_promotion == other.is_paid_promotion
|
|
474
|
+
return false unless @created_at == other.created_at
|
|
475
|
+
return false unless @created_at_datetime == other.created_at_datetime
|
|
476
|
+
return false unless @bookmark_count == other.bookmark_count
|
|
477
|
+
return false unless @bookmarked == other.bookmarked
|
|
478
|
+
return false unless @community_note == other.community_note
|
|
479
|
+
return false unless @editable_until_msecs == other.editable_until_msecs
|
|
480
|
+
return false unless @edits_remaining == other.edits_remaining
|
|
481
|
+
return false unless @favorite_count == other.favorite_count
|
|
482
|
+
return false unless @favorited == other.favorited
|
|
483
|
+
return false unless @full_text == other.full_text
|
|
484
|
+
return false unless @has_card == other.has_card
|
|
485
|
+
return false unless @has_community_notes == other.has_community_notes
|
|
486
|
+
return false unless @id == other.id
|
|
487
|
+
return false unless @in_reply_to == other.in_reply_to
|
|
488
|
+
return false unless @in_reply_to_user_id == other.in_reply_to_user_id
|
|
489
|
+
return false unless @in_reply_to_screen_name == other.in_reply_to_screen_name
|
|
490
|
+
return false unless @is_edit_eligible == other.is_edit_eligible
|
|
491
|
+
return false unless @is_quote_status == other.is_quote_status
|
|
492
|
+
return false unless @quoted_status_id_str == other.quoted_status_id_str
|
|
493
|
+
return false unless @is_translatable == other.is_translatable
|
|
494
|
+
return false unless @lang == other.lang
|
|
495
|
+
return false unless @place == other.place
|
|
496
|
+
return false unless @poll == other.poll
|
|
497
|
+
return false unless @possibly_sensitive == other.possibly_sensitive
|
|
498
|
+
return false unless @possibly_sensitive_editable == other.possibly_sensitive_editable
|
|
499
|
+
return false unless @quote == other.quote
|
|
500
|
+
return false unless @quote_count == other.quote_count
|
|
501
|
+
return false unless @reply_count == other.reply_count
|
|
502
|
+
return false unless @reply_to == other.reply_to
|
|
503
|
+
return false unless @retweet_count == other.retweet_count
|
|
504
|
+
return false unless @retweeted_tweet == other.retweeted_tweet
|
|
505
|
+
return false unless @thread == other.thread
|
|
506
|
+
return false unless @thumbnail_title == other.thumbnail_title
|
|
507
|
+
return false unless @thumbnail_url == other.thumbnail_url
|
|
508
|
+
return false unless @user == other.user
|
|
509
|
+
return false unless @view_count == other.view_count
|
|
510
|
+
return false unless @view_count_state == other.view_count_state
|
|
511
|
+
return false unless @status == other.status
|
|
512
|
+
return false unless @target_count == other.target_count
|
|
513
|
+
true
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
end
|
|
518
|
+
end
|