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,67 @@
|
|
|
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 ValidationError
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
field(
|
|
15
|
+
:loc,
|
|
16
|
+
Crystalline::Array.new(Crystalline::Union.new(::String, ::Integer)),
|
|
17
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("loc"), required: true}}
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
field :msg, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("msg"), required: true}}
|
|
21
|
+
|
|
22
|
+
field :type, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("type"), required: true}}
|
|
23
|
+
|
|
24
|
+
field(
|
|
25
|
+
:input,
|
|
26
|
+
Crystalline::Nilable.new(::Object),
|
|
27
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("input")}}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
field(
|
|
31
|
+
:ctx,
|
|
32
|
+
Crystalline::Nilable.new(Models::Components::Context),
|
|
33
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("ctx")}}
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
sig {
|
|
37
|
+
params(
|
|
38
|
+
loc: T::Array[T.any(::String, ::Integer)],
|
|
39
|
+
msg: ::String,
|
|
40
|
+
type: ::String,
|
|
41
|
+
input: T.nilable(::Object),
|
|
42
|
+
ctx: T.nilable(Models::Components::Context)
|
|
43
|
+
)
|
|
44
|
+
.void
|
|
45
|
+
}
|
|
46
|
+
def initialize(loc:, msg:, type:, input: nil, ctx: nil)
|
|
47
|
+
@loc = loc
|
|
48
|
+
@msg = msg
|
|
49
|
+
@type = type
|
|
50
|
+
@input = input
|
|
51
|
+
@ctx = ctx
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
55
|
+
def ==(other)
|
|
56
|
+
return false unless other.is_a?(self.class)
|
|
57
|
+
return false unless @loc == other.loc
|
|
58
|
+
return false unless @msg == other.msg
|
|
59
|
+
return false unless @type == other.type
|
|
60
|
+
return false unless @input == other.input
|
|
61
|
+
return false unless @ctx == other.ctx
|
|
62
|
+
true
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::ValidationError
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::ValidationError
|
|
9
|
+
def loc
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def loc=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def msg
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def msg=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def type
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def type=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def input
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def input=(str_)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def ctx
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def ctx=(str_)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
# Followers page data (regular or verified)
|
|
10
|
+
class VerifiedFollowersData
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# Follower users on this page
|
|
15
|
+
field(
|
|
16
|
+
:users,
|
|
17
|
+
Crystalline::Array.new(Models::Components::UserInfo),
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("users"), required: true}}
|
|
19
|
+
)
|
|
20
|
+
# Whether another page is available
|
|
21
|
+
field(
|
|
22
|
+
:has_next_page,
|
|
23
|
+
Crystalline::Boolean.new,
|
|
24
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("has_next_page"), required: true}}
|
|
25
|
+
)
|
|
26
|
+
# Pass as cursor to fetch the next page when has_next_page is true
|
|
27
|
+
field(
|
|
28
|
+
:next_cursor,
|
|
29
|
+
Crystalline::Nilable.new(::String),
|
|
30
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("next_cursor")}}
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
sig {
|
|
34
|
+
params(
|
|
35
|
+
users: T::Array[Models::Components::UserInfo],
|
|
36
|
+
has_next_page: T::Boolean,
|
|
37
|
+
next_cursor: T.nilable(::String)
|
|
38
|
+
)
|
|
39
|
+
.void
|
|
40
|
+
}
|
|
41
|
+
def initialize(users:, has_next_page:, next_cursor: nil)
|
|
42
|
+
@users = users
|
|
43
|
+
@has_next_page = has_next_page
|
|
44
|
+
@next_cursor = next_cursor
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
48
|
+
def ==(other)
|
|
49
|
+
return false unless other.is_a?(self.class)
|
|
50
|
+
return false unless @users == other.users
|
|
51
|
+
return false unless @has_next_page == other.has_next_page
|
|
52
|
+
return false unless @next_cursor == other.next_cursor
|
|
53
|
+
true
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::VerifiedFollowersData
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::VerifiedFollowersData
|
|
9
|
+
def users
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def users=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def has_next_page
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def has_next_page=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def next_cursor
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def next_cursor=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
# Response for followers / verified followers
|
|
10
|
+
class VerifiedFollowersResponse
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# Response code
|
|
15
|
+
field(
|
|
16
|
+
:code,
|
|
17
|
+
::Integer,
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("code"), required: true}}
|
|
19
|
+
)
|
|
20
|
+
# Response message
|
|
21
|
+
field :msg, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("msg"), required: true}}
|
|
22
|
+
# Followers page
|
|
23
|
+
field(
|
|
24
|
+
:data,
|
|
25
|
+
Crystalline::Nilable.new(Models::Components::VerifiedFollowersData),
|
|
26
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("data")}}
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
sig { params(code: ::Integer, msg: ::String, data: T.nilable(Models::Components::VerifiedFollowersData)).void }
|
|
30
|
+
def initialize(code:, msg:, data: nil)
|
|
31
|
+
@code = code
|
|
32
|
+
@msg = msg
|
|
33
|
+
@data = data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a?(self.class)
|
|
39
|
+
return false unless @code == other.code
|
|
40
|
+
return false unless @msg == other.msg
|
|
41
|
+
return false unless @data == other.data
|
|
42
|
+
true
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::VerifiedFollowersResponse
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::VerifiedFollowersResponse
|
|
9
|
+
def code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def code=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def msg
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def msg=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def data
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def data=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,305 @@
|
|
|
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 XArticleModel
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# Article formatting blocks
|
|
15
|
+
field(
|
|
16
|
+
:article_blocks,
|
|
17
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::ArticleBlock)),
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_blocks")}}
|
|
19
|
+
)
|
|
20
|
+
# Article media image URLs
|
|
21
|
+
field(
|
|
22
|
+
:article_media_image_urls,
|
|
23
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
24
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_media_image_urls")}}
|
|
25
|
+
)
|
|
26
|
+
# The ID of the tweet
|
|
27
|
+
field(
|
|
28
|
+
:tweet_id,
|
|
29
|
+
Crystalline::Nilable.new(::String),
|
|
30
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("tweet_id")}}
|
|
31
|
+
)
|
|
32
|
+
# The full text of the article tweet
|
|
33
|
+
field(
|
|
34
|
+
:full_text,
|
|
35
|
+
Crystalline::Nilable.new(::String),
|
|
36
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("full_text")}}
|
|
37
|
+
)
|
|
38
|
+
# The creation time
|
|
39
|
+
field(
|
|
40
|
+
:created_at,
|
|
41
|
+
Crystalline::Nilable.new(::String),
|
|
42
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("created_at")}}
|
|
43
|
+
)
|
|
44
|
+
# The language
|
|
45
|
+
field(
|
|
46
|
+
:lang,
|
|
47
|
+
Crystalline::Nilable.new(::String),
|
|
48
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("lang")}}
|
|
49
|
+
)
|
|
50
|
+
# Bookmark count
|
|
51
|
+
field(
|
|
52
|
+
:bookmark_count,
|
|
53
|
+
Crystalline::Nilable.new(::Integer),
|
|
54
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("bookmark_count")}}
|
|
55
|
+
)
|
|
56
|
+
# Favorite count
|
|
57
|
+
field(
|
|
58
|
+
:favorite_count,
|
|
59
|
+
Crystalline::Nilable.new(::Integer),
|
|
60
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("favorite_count")}}
|
|
61
|
+
)
|
|
62
|
+
# Reply count
|
|
63
|
+
field(
|
|
64
|
+
:reply_count,
|
|
65
|
+
Crystalline::Nilable.new(::Integer),
|
|
66
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("reply_count")}}
|
|
67
|
+
)
|
|
68
|
+
# Retweet count
|
|
69
|
+
field(
|
|
70
|
+
:retweet_count,
|
|
71
|
+
Crystalline::Nilable.new(::Integer),
|
|
72
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("retweet_count")}}
|
|
73
|
+
)
|
|
74
|
+
# Quote count
|
|
75
|
+
field(
|
|
76
|
+
:quote_count,
|
|
77
|
+
Crystalline::Nilable.new(::Integer),
|
|
78
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("quote_count")}}
|
|
79
|
+
)
|
|
80
|
+
# View count
|
|
81
|
+
field(
|
|
82
|
+
:view_count,
|
|
83
|
+
Crystalline::Nilable.new(::String),
|
|
84
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("view_count")}}
|
|
85
|
+
)
|
|
86
|
+
# View count state
|
|
87
|
+
field(
|
|
88
|
+
:view_count_state,
|
|
89
|
+
Crystalline::Nilable.new(::String),
|
|
90
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("view_count_state")}}
|
|
91
|
+
)
|
|
92
|
+
# Conversation ID
|
|
93
|
+
field(
|
|
94
|
+
:conversation_id,
|
|
95
|
+
Crystalline::Nilable.new(::String),
|
|
96
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("conversation_id")}}
|
|
97
|
+
)
|
|
98
|
+
# Author user ID
|
|
99
|
+
field(
|
|
100
|
+
:author_user_id,
|
|
101
|
+
Crystalline::Nilable.new(::String),
|
|
102
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("author_user_id")}}
|
|
103
|
+
)
|
|
104
|
+
# Author screen name
|
|
105
|
+
field(
|
|
106
|
+
:author_screen_name,
|
|
107
|
+
Crystalline::Nilable.new(::String),
|
|
108
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("author_screen_name")}}
|
|
109
|
+
)
|
|
110
|
+
# Author name
|
|
111
|
+
field(
|
|
112
|
+
:author_name,
|
|
113
|
+
Crystalline::Nilable.new(::String),
|
|
114
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("author_name")}}
|
|
115
|
+
)
|
|
116
|
+
# Whether author is blue verified
|
|
117
|
+
field(
|
|
118
|
+
:author_is_blue_verified,
|
|
119
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
120
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("author_is_blue_verified")}}
|
|
121
|
+
)
|
|
122
|
+
# Whether author is verified
|
|
123
|
+
field(
|
|
124
|
+
:author_verified,
|
|
125
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
126
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("author_verified")}}
|
|
127
|
+
)
|
|
128
|
+
# Whether author is verified organization
|
|
129
|
+
field(
|
|
130
|
+
:author_is_verified_organization_affiliate,
|
|
131
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
132
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("author_is_verified_organization_affiliate")}}
|
|
133
|
+
)
|
|
134
|
+
# Article ID
|
|
135
|
+
field(
|
|
136
|
+
:article_id,
|
|
137
|
+
Crystalline::Nilable.new(::String),
|
|
138
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_id")}}
|
|
139
|
+
)
|
|
140
|
+
# Article title
|
|
141
|
+
field(
|
|
142
|
+
:article_title,
|
|
143
|
+
Crystalline::Nilable.new(::String),
|
|
144
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_title")}}
|
|
145
|
+
)
|
|
146
|
+
# Article preview text
|
|
147
|
+
field(
|
|
148
|
+
:article_preview_text,
|
|
149
|
+
Crystalline::Nilable.new(::String),
|
|
150
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_preview_text")}}
|
|
151
|
+
)
|
|
152
|
+
# Article summary text
|
|
153
|
+
field(
|
|
154
|
+
:article_summary_text,
|
|
155
|
+
Crystalline::Nilable.new(::String),
|
|
156
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_summary_text")}}
|
|
157
|
+
)
|
|
158
|
+
# Article cover image URL
|
|
159
|
+
field(
|
|
160
|
+
:article_cover_image_url,
|
|
161
|
+
Crystalline::Nilable.new(::String),
|
|
162
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_cover_image_url")}}
|
|
163
|
+
)
|
|
164
|
+
# Article plain text
|
|
165
|
+
field(
|
|
166
|
+
:article_plain_text,
|
|
167
|
+
Crystalline::Nilable.new(::String),
|
|
168
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_plain_text")}}
|
|
169
|
+
)
|
|
170
|
+
# Article markdown
|
|
171
|
+
field(
|
|
172
|
+
:article_markdown,
|
|
173
|
+
Crystalline::Nilable.new(::String),
|
|
174
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("article_markdown")}}
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
sig {
|
|
178
|
+
params(
|
|
179
|
+
article_blocks: T.nilable(T::Array[Models::Components::ArticleBlock]),
|
|
180
|
+
article_media_image_urls: T.nilable(T::Array[::String]),
|
|
181
|
+
tweet_id: T.nilable(::String),
|
|
182
|
+
full_text: T.nilable(::String),
|
|
183
|
+
created_at: T.nilable(::String),
|
|
184
|
+
lang: T.nilable(::String),
|
|
185
|
+
bookmark_count: T.nilable(::Integer),
|
|
186
|
+
favorite_count: T.nilable(::Integer),
|
|
187
|
+
reply_count: T.nilable(::Integer),
|
|
188
|
+
retweet_count: T.nilable(::Integer),
|
|
189
|
+
quote_count: T.nilable(::Integer),
|
|
190
|
+
view_count: T.nilable(::String),
|
|
191
|
+
view_count_state: T.nilable(::String),
|
|
192
|
+
conversation_id: T.nilable(::String),
|
|
193
|
+
author_user_id: T.nilable(::String),
|
|
194
|
+
author_screen_name: T.nilable(::String),
|
|
195
|
+
author_name: T.nilable(::String),
|
|
196
|
+
author_is_blue_verified: T.nilable(T::Boolean),
|
|
197
|
+
author_verified: T.nilable(T::Boolean),
|
|
198
|
+
author_is_verified_organization_affiliate: T.nilable(T::Boolean),
|
|
199
|
+
article_id: T.nilable(::String),
|
|
200
|
+
article_title: T.nilable(::String),
|
|
201
|
+
article_preview_text: T.nilable(::String),
|
|
202
|
+
article_summary_text: T.nilable(::String),
|
|
203
|
+
article_cover_image_url: T.nilable(::String),
|
|
204
|
+
article_plain_text: T.nilable(::String),
|
|
205
|
+
article_markdown: T.nilable(::String)
|
|
206
|
+
)
|
|
207
|
+
.void
|
|
208
|
+
}
|
|
209
|
+
def initialize(
|
|
210
|
+
article_blocks: nil,
|
|
211
|
+
article_media_image_urls: nil,
|
|
212
|
+
tweet_id: nil,
|
|
213
|
+
full_text: nil,
|
|
214
|
+
created_at: nil,
|
|
215
|
+
lang: nil,
|
|
216
|
+
bookmark_count: nil,
|
|
217
|
+
favorite_count: nil,
|
|
218
|
+
reply_count: nil,
|
|
219
|
+
retweet_count: nil,
|
|
220
|
+
quote_count: nil,
|
|
221
|
+
view_count: nil,
|
|
222
|
+
view_count_state: nil,
|
|
223
|
+
conversation_id: nil,
|
|
224
|
+
author_user_id: nil,
|
|
225
|
+
author_screen_name: nil,
|
|
226
|
+
author_name: nil,
|
|
227
|
+
author_is_blue_verified: nil,
|
|
228
|
+
author_verified: nil,
|
|
229
|
+
author_is_verified_organization_affiliate: nil,
|
|
230
|
+
article_id: nil,
|
|
231
|
+
article_title: nil,
|
|
232
|
+
article_preview_text: nil,
|
|
233
|
+
article_summary_text: nil,
|
|
234
|
+
article_cover_image_url: nil,
|
|
235
|
+
article_plain_text: nil,
|
|
236
|
+
article_markdown: nil
|
|
237
|
+
)
|
|
238
|
+
@article_blocks = article_blocks
|
|
239
|
+
@article_media_image_urls = article_media_image_urls
|
|
240
|
+
@tweet_id = tweet_id
|
|
241
|
+
@full_text = full_text
|
|
242
|
+
@created_at = created_at
|
|
243
|
+
@lang = lang
|
|
244
|
+
@bookmark_count = bookmark_count
|
|
245
|
+
@favorite_count = favorite_count
|
|
246
|
+
@reply_count = reply_count
|
|
247
|
+
@retweet_count = retweet_count
|
|
248
|
+
@quote_count = quote_count
|
|
249
|
+
@view_count = view_count
|
|
250
|
+
@view_count_state = view_count_state
|
|
251
|
+
@conversation_id = conversation_id
|
|
252
|
+
@author_user_id = author_user_id
|
|
253
|
+
@author_screen_name = author_screen_name
|
|
254
|
+
@author_name = author_name
|
|
255
|
+
@author_is_blue_verified = author_is_blue_verified
|
|
256
|
+
@author_verified = author_verified
|
|
257
|
+
@author_is_verified_organization_affiliate = author_is_verified_organization_affiliate
|
|
258
|
+
@article_id = article_id
|
|
259
|
+
@article_title = article_title
|
|
260
|
+
@article_preview_text = article_preview_text
|
|
261
|
+
@article_summary_text = article_summary_text
|
|
262
|
+
@article_cover_image_url = article_cover_image_url
|
|
263
|
+
@article_plain_text = article_plain_text
|
|
264
|
+
@article_markdown = article_markdown
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
268
|
+
def ==(other)
|
|
269
|
+
return false unless other.is_a?(self.class)
|
|
270
|
+
return false unless @article_blocks == other.article_blocks
|
|
271
|
+
return false unless @article_media_image_urls == other.article_media_image_urls
|
|
272
|
+
return false unless @tweet_id == other.tweet_id
|
|
273
|
+
return false unless @full_text == other.full_text
|
|
274
|
+
return false unless @created_at == other.created_at
|
|
275
|
+
return false unless @lang == other.lang
|
|
276
|
+
return false unless @bookmark_count == other.bookmark_count
|
|
277
|
+
return false unless @favorite_count == other.favorite_count
|
|
278
|
+
return false unless @reply_count == other.reply_count
|
|
279
|
+
return false unless @retweet_count == other.retweet_count
|
|
280
|
+
return false unless @quote_count == other.quote_count
|
|
281
|
+
return false unless @view_count == other.view_count
|
|
282
|
+
return false unless @view_count_state == other.view_count_state
|
|
283
|
+
return false unless @conversation_id == other.conversation_id
|
|
284
|
+
return false unless @author_user_id == other.author_user_id
|
|
285
|
+
return false unless @author_screen_name == other.author_screen_name
|
|
286
|
+
return false unless @author_name == other.author_name
|
|
287
|
+
return false unless @author_is_blue_verified == other.author_is_blue_verified
|
|
288
|
+
return false unless @author_verified == other.author_verified
|
|
289
|
+
unless @author_is_verified_organization_affiliate == other.author_is_verified_organization_affiliate
|
|
290
|
+
return false
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
return false unless @article_id == other.article_id
|
|
294
|
+
return false unless @article_title == other.article_title
|
|
295
|
+
return false unless @article_preview_text == other.article_preview_text
|
|
296
|
+
return false unless @article_summary_text == other.article_summary_text
|
|
297
|
+
return false unless @article_cover_image_url == other.article_cover_image_url
|
|
298
|
+
return false unless @article_plain_text == other.article_plain_text
|
|
299
|
+
return false unless @article_markdown == other.article_markdown
|
|
300
|
+
true
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
end
|