context.dev 1.2.0 → 1.4.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 +4 -4
- data/CHANGELOG.md +23 -0
- data/README.md +1 -1
- data/lib/context_dev/internal/util.rb +3 -1
- data/lib/context_dev/models/brand_identify_from_transaction_params.rb +65 -0
- data/lib/context_dev/models/brand_identify_from_transaction_response.rb +190 -5
- data/lib/context_dev/models/brand_retrieve_by_email_params.rb +65 -0
- data/lib/context_dev/models/brand_retrieve_by_email_response.rb +190 -5
- data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +65 -0
- data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +190 -5
- data/lib/context_dev/models/brand_retrieve_by_name_params.rb +65 -0
- data/lib/context_dev/models/brand_retrieve_by_name_response.rb +190 -5
- data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +65 -0
- data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +190 -5
- data/lib/context_dev/models/brand_retrieve_params.rb +68 -5
- data/lib/context_dev/models/brand_retrieve_response.rb +190 -5
- data/lib/context_dev/models/web_screenshot_params.rb +17 -5
- data/lib/context_dev/models/web_web_crawl_md_params.rb +92 -0
- data/lib/context_dev/models/web_web_crawl_md_response.rb +121 -0
- data/lib/context_dev/models.rb +2 -0
- data/lib/context_dev/resources/brand.rb +1 -1
- data/lib/context_dev/resources/web.rb +51 -5
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +2 -0
- data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +325 -0
- data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +859 -6
- data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +325 -0
- data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +859 -6
- data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +325 -0
- data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +859 -6
- data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +325 -0
- data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +859 -6
- data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +325 -0
- data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +859 -6
- data/rbi/context_dev/models/brand_retrieve_params.rbi +328 -6
- data/rbi/context_dev/models/brand_retrieve_response.rbi +859 -6
- data/rbi/context_dev/models/web_screenshot_params.rbi +27 -6
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +137 -0
- data/rbi/context_dev/models/web_web_crawl_md_response.rbi +230 -0
- data/rbi/context_dev/models.rbi +2 -0
- data/rbi/context_dev/resources/brand.rbi +1 -2
- data/rbi/context_dev/resources/web.rbi +54 -4
- data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +131 -1
- data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +342 -5
- data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +131 -1
- data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +342 -5
- data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +131 -1
- data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +342 -5
- data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +131 -1
- data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +342 -5
- data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +131 -1
- data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +342 -5
- data/sig/context_dev/models/brand_retrieve_params.rbs +131 -1
- data/sig/context_dev/models/brand_retrieve_response.rbs +342 -5
- data/sig/context_dev/models/web_screenshot_params.rbs +11 -2
- data/sig/context_dev/models/web_web_crawl_md_params.rbs +82 -0
- data/sig/context_dev/models/web_web_crawl_md_response.rbs +116 -0
- data/sig/context_dev/models.rbs +2 -0
- data/sig/context_dev/resources/web.rbs +15 -1
- metadata +8 -2
|
@@ -100,6 +100,15 @@ module ContextDev
|
|
|
100
100
|
# @return [String, nil]
|
|
101
101
|
optional :phone, String
|
|
102
102
|
|
|
103
|
+
# @!attribute primary_language
|
|
104
|
+
# The primary language of the brand's website content. Detected from the HTML lang
|
|
105
|
+
# tag, page content analysis, or social media descriptions.
|
|
106
|
+
#
|
|
107
|
+
# @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage, nil]
|
|
108
|
+
optional :primary_language,
|
|
109
|
+
enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage },
|
|
110
|
+
nil?: true
|
|
111
|
+
|
|
103
112
|
# @!attribute slogan
|
|
104
113
|
# The brand's slogan
|
|
105
114
|
#
|
|
@@ -126,7 +135,7 @@ module ContextDev
|
|
|
126
135
|
# @return [String, nil]
|
|
127
136
|
optional :title, String
|
|
128
137
|
|
|
129
|
-
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
|
138
|
+
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
|
130
139
|
# Some parameter documentations has been truncated, see
|
|
131
140
|
# {ContextDev::Models::BrandRetrieveByTickerResponse::Brand} for more details.
|
|
132
141
|
#
|
|
@@ -154,6 +163,8 @@ module ContextDev
|
|
|
154
163
|
#
|
|
155
164
|
# @param phone [String] Company phone number
|
|
156
165
|
#
|
|
166
|
+
# @param primary_language [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang
|
|
167
|
+
#
|
|
157
168
|
# @param slogan [String] The brand's slogan
|
|
158
169
|
#
|
|
159
170
|
# @param socials [Array<ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social>] An array of social media links for the brand
|
|
@@ -805,12 +816,144 @@ module ContextDev
|
|
|
805
816
|
end
|
|
806
817
|
end
|
|
807
818
|
|
|
819
|
+
# The primary language of the brand's website content. Detected from the HTML lang
|
|
820
|
+
# tag, page content analysis, or social media descriptions.
|
|
821
|
+
#
|
|
822
|
+
# @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#primary_language
|
|
823
|
+
module PrimaryLanguage
|
|
824
|
+
extend ContextDev::Internal::Type::Enum
|
|
825
|
+
|
|
826
|
+
AFRIKAANS = :afrikaans
|
|
827
|
+
ALBANIAN = :albanian
|
|
828
|
+
AMHARIC = :amharic
|
|
829
|
+
ARABIC = :arabic
|
|
830
|
+
ARMENIAN = :armenian
|
|
831
|
+
ASSAMESE = :assamese
|
|
832
|
+
AYMARA = :aymara
|
|
833
|
+
AZERI = :azeri
|
|
834
|
+
BASQUE = :basque
|
|
835
|
+
BELARUSIAN = :belarusian
|
|
836
|
+
BENGALI = :bengali
|
|
837
|
+
BOSNIAN = :bosnian
|
|
838
|
+
BULGARIAN = :bulgarian
|
|
839
|
+
BURMESE = :burmese
|
|
840
|
+
CANTONESE = :cantonese
|
|
841
|
+
CATALAN = :catalan
|
|
842
|
+
CEBUANO = :cebuano
|
|
843
|
+
CHINESE = :chinese
|
|
844
|
+
CORSICAN = :corsican
|
|
845
|
+
CROATIAN = :croatian
|
|
846
|
+
CZECH = :czech
|
|
847
|
+
DANISH = :danish
|
|
848
|
+
DUTCH = :dutch
|
|
849
|
+
ENGLISH = :english
|
|
850
|
+
ESPERANTO = :esperanto
|
|
851
|
+
ESTONIAN = :estonian
|
|
852
|
+
FARSI = :farsi
|
|
853
|
+
FIJIAN = :fijian
|
|
854
|
+
FINNISH = :finnish
|
|
855
|
+
FRENCH = :french
|
|
856
|
+
GALICIAN = :galician
|
|
857
|
+
GEORGIAN = :georgian
|
|
858
|
+
GERMAN = :german
|
|
859
|
+
GREEK = :greek
|
|
860
|
+
GUARANI = :guarani
|
|
861
|
+
GUJARATI = :gujarati
|
|
862
|
+
HAITIAN_CREOLE = :"haitian-creole"
|
|
863
|
+
HAUSA = :hausa
|
|
864
|
+
HAWAIIAN = :hawaiian
|
|
865
|
+
HEBREW = :hebrew
|
|
866
|
+
HINDI = :hindi
|
|
867
|
+
HMONG = :hmong
|
|
868
|
+
HUNGARIAN = :hungarian
|
|
869
|
+
ICELANDIC = :icelandic
|
|
870
|
+
IGBO = :igbo
|
|
871
|
+
INDONESIAN = :indonesian
|
|
872
|
+
IRISH = :irish
|
|
873
|
+
ITALIAN = :italian
|
|
874
|
+
JAPANESE = :japanese
|
|
875
|
+
JAVANESE = :javanese
|
|
876
|
+
KANNADA = :kannada
|
|
877
|
+
KAZAKH = :kazakh
|
|
878
|
+
KHMER = :khmer
|
|
879
|
+
KINYARWANDA = :kinyarwanda
|
|
880
|
+
KOREAN = :korean
|
|
881
|
+
KURDISH = :kurdish
|
|
882
|
+
KYRGYZ = :kyrgyz
|
|
883
|
+
LAO = :lao
|
|
884
|
+
LATIN = :latin
|
|
885
|
+
LATVIAN = :latvian
|
|
886
|
+
LINGALA = :lingala
|
|
887
|
+
LITHUANIAN = :lithuanian
|
|
888
|
+
LUXEMBOURGISH = :luxembourgish
|
|
889
|
+
MACEDONIAN = :macedonian
|
|
890
|
+
MALAGASY = :malagasy
|
|
891
|
+
MALAY = :malay
|
|
892
|
+
MALAYALAM = :malayalam
|
|
893
|
+
MALTESE = :maltese
|
|
894
|
+
MAORI = :maori
|
|
895
|
+
MARATHI = :marathi
|
|
896
|
+
MONGOLIAN = :mongolian
|
|
897
|
+
NEPALI = :nepali
|
|
898
|
+
NORWEGIAN = :norwegian
|
|
899
|
+
ODIA = :odia
|
|
900
|
+
OROMO = :oromo
|
|
901
|
+
PASHTO = :pashto
|
|
902
|
+
PIDGIN = :pidgin
|
|
903
|
+
POLISH = :polish
|
|
904
|
+
PORTUGUESE = :portuguese
|
|
905
|
+
PUNJABI = :punjabi
|
|
906
|
+
QUECHUA = :quechua
|
|
907
|
+
ROMANIAN = :romanian
|
|
908
|
+
RUSSIAN = :russian
|
|
909
|
+
SAMOAN = :samoan
|
|
910
|
+
SCOTTISH_GAELIC = :"scottish-gaelic"
|
|
911
|
+
SERBIAN = :serbian
|
|
912
|
+
SESOTHO = :sesotho
|
|
913
|
+
SHONA = :shona
|
|
914
|
+
SINDHI = :sindhi
|
|
915
|
+
SINHALA = :sinhala
|
|
916
|
+
SLOVAK = :slovak
|
|
917
|
+
SLOVENE = :slovene
|
|
918
|
+
SOMALI = :somali
|
|
919
|
+
SPANISH = :spanish
|
|
920
|
+
SUNDANESE = :sundanese
|
|
921
|
+
SWAHILI = :swahili
|
|
922
|
+
SWEDISH = :swedish
|
|
923
|
+
TAGALOG = :tagalog
|
|
924
|
+
TAJIK = :tajik
|
|
925
|
+
TAMIL = :tamil
|
|
926
|
+
TATAR = :tatar
|
|
927
|
+
TELUGU = :telugu
|
|
928
|
+
THAI = :thai
|
|
929
|
+
TIBETAN = :tibetan
|
|
930
|
+
TIGRINYA = :tigrinya
|
|
931
|
+
TONGAN = :tongan
|
|
932
|
+
TSWANA = :tswana
|
|
933
|
+
TURKISH = :turkish
|
|
934
|
+
TURKMEN = :turkmen
|
|
935
|
+
UKRAINIAN = :ukrainian
|
|
936
|
+
URDU = :urdu
|
|
937
|
+
UYGHUR = :uyghur
|
|
938
|
+
UZBEK = :uzbek
|
|
939
|
+
VIETNAMESE = :vietnamese
|
|
940
|
+
WELSH = :welsh
|
|
941
|
+
WOLOF = :wolof
|
|
942
|
+
XHOSA = :xhosa
|
|
943
|
+
YIDDISH = :yiddish
|
|
944
|
+
YORUBA = :yoruba
|
|
945
|
+
ZULU = :zulu
|
|
946
|
+
|
|
947
|
+
# @!method self.values
|
|
948
|
+
# @return [Array<Symbol>]
|
|
949
|
+
end
|
|
950
|
+
|
|
808
951
|
class Social < ContextDev::Internal::Type::BaseModel
|
|
809
952
|
# @!attribute type
|
|
810
|
-
# Type of social media
|
|
953
|
+
# Type of social media platform
|
|
811
954
|
#
|
|
812
|
-
# @return [
|
|
813
|
-
optional :type,
|
|
955
|
+
# @return [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type, nil]
|
|
956
|
+
optional :type, enum: -> { ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type }
|
|
814
957
|
|
|
815
958
|
# @!attribute url
|
|
816
959
|
# URL of the social media page
|
|
@@ -819,9 +962,51 @@ module ContextDev
|
|
|
819
962
|
optional :url, String
|
|
820
963
|
|
|
821
964
|
# @!method initialize(type: nil, url: nil)
|
|
822
|
-
# @param type [
|
|
965
|
+
# @param type [Symbol, ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social::Type] Type of social media platform
|
|
823
966
|
#
|
|
824
967
|
# @param url [String] URL of the social media page
|
|
968
|
+
|
|
969
|
+
# Type of social media platform
|
|
970
|
+
#
|
|
971
|
+
# @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand::Social#type
|
|
972
|
+
module Type
|
|
973
|
+
extend ContextDev::Internal::Type::Enum
|
|
974
|
+
|
|
975
|
+
X = :x
|
|
976
|
+
FACEBOOK = :facebook
|
|
977
|
+
INSTAGRAM = :instagram
|
|
978
|
+
LINKEDIN = :linkedin
|
|
979
|
+
YOUTUBE = :youtube
|
|
980
|
+
PINTEREST = :pinterest
|
|
981
|
+
TIKTOK = :tiktok
|
|
982
|
+
DRIBBBLE = :dribbble
|
|
983
|
+
GITHUB = :github
|
|
984
|
+
BEHANCE = :behance
|
|
985
|
+
SNAPCHAT = :snapchat
|
|
986
|
+
WHATSAPP = :whatsapp
|
|
987
|
+
TELEGRAM = :telegram
|
|
988
|
+
LINE = :line
|
|
989
|
+
DISCORD = :discord
|
|
990
|
+
TWITCH = :twitch
|
|
991
|
+
VIMEO = :vimeo
|
|
992
|
+
IMDB = :imdb
|
|
993
|
+
TUMBLR = :tumblr
|
|
994
|
+
FLICKR = :flickr
|
|
995
|
+
GIPHY = :giphy
|
|
996
|
+
MEDIUM = :medium
|
|
997
|
+
SPOTIFY = :spotify
|
|
998
|
+
SOUNDCLOUD = :soundcloud
|
|
999
|
+
TRIPADVISOR = :tripadvisor
|
|
1000
|
+
YELP = :yelp
|
|
1001
|
+
PRODUCTHUNT = :producthunt
|
|
1002
|
+
REDDIT = :reddit
|
|
1003
|
+
CRUNCHBASE = :crunchbase
|
|
1004
|
+
APPSTORE = :appstore
|
|
1005
|
+
PLAYSTORE = :playstore
|
|
1006
|
+
|
|
1007
|
+
# @!method self.values
|
|
1008
|
+
# @return [Array<Symbol>]
|
|
1009
|
+
end
|
|
825
1010
|
end
|
|
826
1011
|
|
|
827
1012
|
# @see ContextDev::Models::BrandRetrieveByTickerResponse::Brand#stock
|
|
@@ -15,8 +15,7 @@ module ContextDev
|
|
|
15
15
|
required :domain, String
|
|
16
16
|
|
|
17
17
|
# @!attribute force_language
|
|
18
|
-
# Optional parameter to force the language of the retrieved brand data.
|
|
19
|
-
# all three lookup methods.
|
|
18
|
+
# Optional parameter to force the language of the retrieved brand data.
|
|
20
19
|
#
|
|
21
20
|
# @return [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage, nil]
|
|
22
21
|
optional :force_language, enum: -> { ContextDev::BrandRetrieveParams::ForceLanguage }
|
|
@@ -43,7 +42,7 @@ module ContextDev
|
|
|
43
42
|
#
|
|
44
43
|
# @param domain [String] Domain name to retrieve brand data for (e.g., 'example.com', 'google.com'). Cann
|
|
45
44
|
#
|
|
46
|
-
# @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
|
|
45
|
+
# @param force_language [Symbol, ContextDev::Models::BrandRetrieveParams::ForceLanguage] Optional parameter to force the language of the retrieved brand data.
|
|
47
46
|
#
|
|
48
47
|
# @param max_speed [Boolean] Optional parameter to optimize the API call for maximum speed. When set to true,
|
|
49
48
|
#
|
|
@@ -51,66 +50,130 @@ module ContextDev
|
|
|
51
50
|
#
|
|
52
51
|
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
53
52
|
|
|
54
|
-
# Optional parameter to force the language of the retrieved brand data.
|
|
55
|
-
# all three lookup methods.
|
|
53
|
+
# Optional parameter to force the language of the retrieved brand data.
|
|
56
54
|
module ForceLanguage
|
|
57
55
|
extend ContextDev::Internal::Type::Enum
|
|
58
56
|
|
|
57
|
+
AFRIKAANS = :afrikaans
|
|
59
58
|
ALBANIAN = :albanian
|
|
59
|
+
AMHARIC = :amharic
|
|
60
60
|
ARABIC = :arabic
|
|
61
|
+
ARMENIAN = :armenian
|
|
62
|
+
ASSAMESE = :assamese
|
|
63
|
+
AYMARA = :aymara
|
|
61
64
|
AZERI = :azeri
|
|
65
|
+
BASQUE = :basque
|
|
66
|
+
BELARUSIAN = :belarusian
|
|
62
67
|
BENGALI = :bengali
|
|
68
|
+
BOSNIAN = :bosnian
|
|
63
69
|
BULGARIAN = :bulgarian
|
|
70
|
+
BURMESE = :burmese
|
|
64
71
|
CANTONESE = :cantonese
|
|
72
|
+
CATALAN = :catalan
|
|
65
73
|
CEBUANO = :cebuano
|
|
74
|
+
CHINESE = :chinese
|
|
75
|
+
CORSICAN = :corsican
|
|
66
76
|
CROATIAN = :croatian
|
|
67
77
|
CZECH = :czech
|
|
68
78
|
DANISH = :danish
|
|
69
79
|
DUTCH = :dutch
|
|
70
80
|
ENGLISH = :english
|
|
81
|
+
ESPERANTO = :esperanto
|
|
71
82
|
ESTONIAN = :estonian
|
|
72
83
|
FARSI = :farsi
|
|
84
|
+
FIJIAN = :fijian
|
|
73
85
|
FINNISH = :finnish
|
|
74
86
|
FRENCH = :french
|
|
87
|
+
GALICIAN = :galician
|
|
88
|
+
GEORGIAN = :georgian
|
|
75
89
|
GERMAN = :german
|
|
90
|
+
GREEK = :greek
|
|
91
|
+
GUARANI = :guarani
|
|
92
|
+
GUJARATI = :gujarati
|
|
93
|
+
HAITIAN_CREOLE = :"haitian-creole"
|
|
76
94
|
HAUSA = :hausa
|
|
77
95
|
HAWAIIAN = :hawaiian
|
|
96
|
+
HEBREW = :hebrew
|
|
78
97
|
HINDI = :hindi
|
|
98
|
+
HMONG = :hmong
|
|
79
99
|
HUNGARIAN = :hungarian
|
|
80
100
|
ICELANDIC = :icelandic
|
|
101
|
+
IGBO = :igbo
|
|
81
102
|
INDONESIAN = :indonesian
|
|
103
|
+
IRISH = :irish
|
|
82
104
|
ITALIAN = :italian
|
|
105
|
+
JAPANESE = :japanese
|
|
106
|
+
JAVANESE = :javanese
|
|
107
|
+
KANNADA = :kannada
|
|
83
108
|
KAZAKH = :kazakh
|
|
109
|
+
KHMER = :khmer
|
|
110
|
+
KINYARWANDA = :kinyarwanda
|
|
84
111
|
KOREAN = :korean
|
|
112
|
+
KURDISH = :kurdish
|
|
85
113
|
KYRGYZ = :kyrgyz
|
|
114
|
+
LAO = :lao
|
|
86
115
|
LATIN = :latin
|
|
87
116
|
LATVIAN = :latvian
|
|
117
|
+
LINGALA = :lingala
|
|
88
118
|
LITHUANIAN = :lithuanian
|
|
119
|
+
LUXEMBOURGISH = :luxembourgish
|
|
89
120
|
MACEDONIAN = :macedonian
|
|
121
|
+
MALAGASY = :malagasy
|
|
122
|
+
MALAY = :malay
|
|
123
|
+
MALAYALAM = :malayalam
|
|
124
|
+
MALTESE = :maltese
|
|
125
|
+
MAORI = :maori
|
|
126
|
+
MARATHI = :marathi
|
|
90
127
|
MONGOLIAN = :mongolian
|
|
91
128
|
NEPALI = :nepali
|
|
92
129
|
NORWEGIAN = :norwegian
|
|
130
|
+
ODIA = :odia
|
|
131
|
+
OROMO = :oromo
|
|
93
132
|
PASHTO = :pashto
|
|
94
133
|
PIDGIN = :pidgin
|
|
95
134
|
POLISH = :polish
|
|
96
135
|
PORTUGUESE = :portuguese
|
|
136
|
+
PUNJABI = :punjabi
|
|
137
|
+
QUECHUA = :quechua
|
|
97
138
|
ROMANIAN = :romanian
|
|
98
139
|
RUSSIAN = :russian
|
|
140
|
+
SAMOAN = :samoan
|
|
141
|
+
SCOTTISH_GAELIC = :"scottish-gaelic"
|
|
99
142
|
SERBIAN = :serbian
|
|
143
|
+
SESOTHO = :sesotho
|
|
144
|
+
SHONA = :shona
|
|
145
|
+
SINDHI = :sindhi
|
|
146
|
+
SINHALA = :sinhala
|
|
100
147
|
SLOVAK = :slovak
|
|
101
148
|
SLOVENE = :slovene
|
|
102
149
|
SOMALI = :somali
|
|
103
150
|
SPANISH = :spanish
|
|
151
|
+
SUNDANESE = :sundanese
|
|
104
152
|
SWAHILI = :swahili
|
|
105
153
|
SWEDISH = :swedish
|
|
106
154
|
TAGALOG = :tagalog
|
|
155
|
+
TAJIK = :tajik
|
|
156
|
+
TAMIL = :tamil
|
|
157
|
+
TATAR = :tatar
|
|
158
|
+
TELUGU = :telugu
|
|
107
159
|
THAI = :thai
|
|
160
|
+
TIBETAN = :tibetan
|
|
161
|
+
TIGRINYA = :tigrinya
|
|
162
|
+
TONGAN = :tongan
|
|
163
|
+
TSWANA = :tswana
|
|
108
164
|
TURKISH = :turkish
|
|
165
|
+
TURKMEN = :turkmen
|
|
109
166
|
UKRAINIAN = :ukrainian
|
|
110
167
|
URDU = :urdu
|
|
168
|
+
UYGHUR = :uyghur
|
|
111
169
|
UZBEK = :uzbek
|
|
112
170
|
VIETNAMESE = :vietnamese
|
|
113
171
|
WELSH = :welsh
|
|
172
|
+
WOLOF = :wolof
|
|
173
|
+
XHOSA = :xhosa
|
|
174
|
+
YIDDISH = :yiddish
|
|
175
|
+
YORUBA = :yoruba
|
|
176
|
+
ZULU = :zulu
|
|
114
177
|
|
|
115
178
|
# @!method self.values
|
|
116
179
|
# @return [Array<Symbol>]
|
|
@@ -100,6 +100,15 @@ module ContextDev
|
|
|
100
100
|
# @return [String, nil]
|
|
101
101
|
optional :phone, String
|
|
102
102
|
|
|
103
|
+
# @!attribute primary_language
|
|
104
|
+
# The primary language of the brand's website content. Detected from the HTML lang
|
|
105
|
+
# tag, page content analysis, or social media descriptions.
|
|
106
|
+
#
|
|
107
|
+
# @return [Symbol, ContextDev::Models::BrandRetrieveResponse::Brand::PrimaryLanguage, nil]
|
|
108
|
+
optional :primary_language,
|
|
109
|
+
enum: -> { ContextDev::Models::BrandRetrieveResponse::Brand::PrimaryLanguage },
|
|
110
|
+
nil?: true
|
|
111
|
+
|
|
103
112
|
# @!attribute slogan
|
|
104
113
|
# The brand's slogan
|
|
105
114
|
#
|
|
@@ -126,7 +135,7 @@ module ContextDev
|
|
|
126
135
|
# @return [String, nil]
|
|
127
136
|
optional :title, String
|
|
128
137
|
|
|
129
|
-
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
|
138
|
+
# @!method initialize(address: nil, backdrops: nil, colors: nil, description: nil, domain: nil, email: nil, industries: nil, is_nsfw: nil, links: nil, logos: nil, phone: nil, primary_language: nil, slogan: nil, socials: nil, stock: nil, title: nil)
|
|
130
139
|
# Some parameter documentations has been truncated, see
|
|
131
140
|
# {ContextDev::Models::BrandRetrieveResponse::Brand} for more details.
|
|
132
141
|
#
|
|
@@ -154,6 +163,8 @@ module ContextDev
|
|
|
154
163
|
#
|
|
155
164
|
# @param phone [String] Company phone number
|
|
156
165
|
#
|
|
166
|
+
# @param primary_language [Symbol, ContextDev::Models::BrandRetrieveResponse::Brand::PrimaryLanguage, nil] The primary language of the brand's website content. Detected from the HTML lang
|
|
167
|
+
#
|
|
157
168
|
# @param slogan [String] The brand's slogan
|
|
158
169
|
#
|
|
159
170
|
# @param socials [Array<ContextDev::Models::BrandRetrieveResponse::Brand::Social>] An array of social media links for the brand
|
|
@@ -803,12 +814,144 @@ module ContextDev
|
|
|
803
814
|
end
|
|
804
815
|
end
|
|
805
816
|
|
|
817
|
+
# The primary language of the brand's website content. Detected from the HTML lang
|
|
818
|
+
# tag, page content analysis, or social media descriptions.
|
|
819
|
+
#
|
|
820
|
+
# @see ContextDev::Models::BrandRetrieveResponse::Brand#primary_language
|
|
821
|
+
module PrimaryLanguage
|
|
822
|
+
extend ContextDev::Internal::Type::Enum
|
|
823
|
+
|
|
824
|
+
AFRIKAANS = :afrikaans
|
|
825
|
+
ALBANIAN = :albanian
|
|
826
|
+
AMHARIC = :amharic
|
|
827
|
+
ARABIC = :arabic
|
|
828
|
+
ARMENIAN = :armenian
|
|
829
|
+
ASSAMESE = :assamese
|
|
830
|
+
AYMARA = :aymara
|
|
831
|
+
AZERI = :azeri
|
|
832
|
+
BASQUE = :basque
|
|
833
|
+
BELARUSIAN = :belarusian
|
|
834
|
+
BENGALI = :bengali
|
|
835
|
+
BOSNIAN = :bosnian
|
|
836
|
+
BULGARIAN = :bulgarian
|
|
837
|
+
BURMESE = :burmese
|
|
838
|
+
CANTONESE = :cantonese
|
|
839
|
+
CATALAN = :catalan
|
|
840
|
+
CEBUANO = :cebuano
|
|
841
|
+
CHINESE = :chinese
|
|
842
|
+
CORSICAN = :corsican
|
|
843
|
+
CROATIAN = :croatian
|
|
844
|
+
CZECH = :czech
|
|
845
|
+
DANISH = :danish
|
|
846
|
+
DUTCH = :dutch
|
|
847
|
+
ENGLISH = :english
|
|
848
|
+
ESPERANTO = :esperanto
|
|
849
|
+
ESTONIAN = :estonian
|
|
850
|
+
FARSI = :farsi
|
|
851
|
+
FIJIAN = :fijian
|
|
852
|
+
FINNISH = :finnish
|
|
853
|
+
FRENCH = :french
|
|
854
|
+
GALICIAN = :galician
|
|
855
|
+
GEORGIAN = :georgian
|
|
856
|
+
GERMAN = :german
|
|
857
|
+
GREEK = :greek
|
|
858
|
+
GUARANI = :guarani
|
|
859
|
+
GUJARATI = :gujarati
|
|
860
|
+
HAITIAN_CREOLE = :"haitian-creole"
|
|
861
|
+
HAUSA = :hausa
|
|
862
|
+
HAWAIIAN = :hawaiian
|
|
863
|
+
HEBREW = :hebrew
|
|
864
|
+
HINDI = :hindi
|
|
865
|
+
HMONG = :hmong
|
|
866
|
+
HUNGARIAN = :hungarian
|
|
867
|
+
ICELANDIC = :icelandic
|
|
868
|
+
IGBO = :igbo
|
|
869
|
+
INDONESIAN = :indonesian
|
|
870
|
+
IRISH = :irish
|
|
871
|
+
ITALIAN = :italian
|
|
872
|
+
JAPANESE = :japanese
|
|
873
|
+
JAVANESE = :javanese
|
|
874
|
+
KANNADA = :kannada
|
|
875
|
+
KAZAKH = :kazakh
|
|
876
|
+
KHMER = :khmer
|
|
877
|
+
KINYARWANDA = :kinyarwanda
|
|
878
|
+
KOREAN = :korean
|
|
879
|
+
KURDISH = :kurdish
|
|
880
|
+
KYRGYZ = :kyrgyz
|
|
881
|
+
LAO = :lao
|
|
882
|
+
LATIN = :latin
|
|
883
|
+
LATVIAN = :latvian
|
|
884
|
+
LINGALA = :lingala
|
|
885
|
+
LITHUANIAN = :lithuanian
|
|
886
|
+
LUXEMBOURGISH = :luxembourgish
|
|
887
|
+
MACEDONIAN = :macedonian
|
|
888
|
+
MALAGASY = :malagasy
|
|
889
|
+
MALAY = :malay
|
|
890
|
+
MALAYALAM = :malayalam
|
|
891
|
+
MALTESE = :maltese
|
|
892
|
+
MAORI = :maori
|
|
893
|
+
MARATHI = :marathi
|
|
894
|
+
MONGOLIAN = :mongolian
|
|
895
|
+
NEPALI = :nepali
|
|
896
|
+
NORWEGIAN = :norwegian
|
|
897
|
+
ODIA = :odia
|
|
898
|
+
OROMO = :oromo
|
|
899
|
+
PASHTO = :pashto
|
|
900
|
+
PIDGIN = :pidgin
|
|
901
|
+
POLISH = :polish
|
|
902
|
+
PORTUGUESE = :portuguese
|
|
903
|
+
PUNJABI = :punjabi
|
|
904
|
+
QUECHUA = :quechua
|
|
905
|
+
ROMANIAN = :romanian
|
|
906
|
+
RUSSIAN = :russian
|
|
907
|
+
SAMOAN = :samoan
|
|
908
|
+
SCOTTISH_GAELIC = :"scottish-gaelic"
|
|
909
|
+
SERBIAN = :serbian
|
|
910
|
+
SESOTHO = :sesotho
|
|
911
|
+
SHONA = :shona
|
|
912
|
+
SINDHI = :sindhi
|
|
913
|
+
SINHALA = :sinhala
|
|
914
|
+
SLOVAK = :slovak
|
|
915
|
+
SLOVENE = :slovene
|
|
916
|
+
SOMALI = :somali
|
|
917
|
+
SPANISH = :spanish
|
|
918
|
+
SUNDANESE = :sundanese
|
|
919
|
+
SWAHILI = :swahili
|
|
920
|
+
SWEDISH = :swedish
|
|
921
|
+
TAGALOG = :tagalog
|
|
922
|
+
TAJIK = :tajik
|
|
923
|
+
TAMIL = :tamil
|
|
924
|
+
TATAR = :tatar
|
|
925
|
+
TELUGU = :telugu
|
|
926
|
+
THAI = :thai
|
|
927
|
+
TIBETAN = :tibetan
|
|
928
|
+
TIGRINYA = :tigrinya
|
|
929
|
+
TONGAN = :tongan
|
|
930
|
+
TSWANA = :tswana
|
|
931
|
+
TURKISH = :turkish
|
|
932
|
+
TURKMEN = :turkmen
|
|
933
|
+
UKRAINIAN = :ukrainian
|
|
934
|
+
URDU = :urdu
|
|
935
|
+
UYGHUR = :uyghur
|
|
936
|
+
UZBEK = :uzbek
|
|
937
|
+
VIETNAMESE = :vietnamese
|
|
938
|
+
WELSH = :welsh
|
|
939
|
+
WOLOF = :wolof
|
|
940
|
+
XHOSA = :xhosa
|
|
941
|
+
YIDDISH = :yiddish
|
|
942
|
+
YORUBA = :yoruba
|
|
943
|
+
ZULU = :zulu
|
|
944
|
+
|
|
945
|
+
# @!method self.values
|
|
946
|
+
# @return [Array<Symbol>]
|
|
947
|
+
end
|
|
948
|
+
|
|
806
949
|
class Social < ContextDev::Internal::Type::BaseModel
|
|
807
950
|
# @!attribute type
|
|
808
|
-
# Type of social media
|
|
951
|
+
# Type of social media platform
|
|
809
952
|
#
|
|
810
|
-
# @return [
|
|
811
|
-
optional :type,
|
|
953
|
+
# @return [Symbol, ContextDev::Models::BrandRetrieveResponse::Brand::Social::Type, nil]
|
|
954
|
+
optional :type, enum: -> { ContextDev::Models::BrandRetrieveResponse::Brand::Social::Type }
|
|
812
955
|
|
|
813
956
|
# @!attribute url
|
|
814
957
|
# URL of the social media page
|
|
@@ -817,9 +960,51 @@ module ContextDev
|
|
|
817
960
|
optional :url, String
|
|
818
961
|
|
|
819
962
|
# @!method initialize(type: nil, url: nil)
|
|
820
|
-
# @param type [
|
|
963
|
+
# @param type [Symbol, ContextDev::Models::BrandRetrieveResponse::Brand::Social::Type] Type of social media platform
|
|
821
964
|
#
|
|
822
965
|
# @param url [String] URL of the social media page
|
|
966
|
+
|
|
967
|
+
# Type of social media platform
|
|
968
|
+
#
|
|
969
|
+
# @see ContextDev::Models::BrandRetrieveResponse::Brand::Social#type
|
|
970
|
+
module Type
|
|
971
|
+
extend ContextDev::Internal::Type::Enum
|
|
972
|
+
|
|
973
|
+
X = :x
|
|
974
|
+
FACEBOOK = :facebook
|
|
975
|
+
INSTAGRAM = :instagram
|
|
976
|
+
LINKEDIN = :linkedin
|
|
977
|
+
YOUTUBE = :youtube
|
|
978
|
+
PINTEREST = :pinterest
|
|
979
|
+
TIKTOK = :tiktok
|
|
980
|
+
DRIBBBLE = :dribbble
|
|
981
|
+
GITHUB = :github
|
|
982
|
+
BEHANCE = :behance
|
|
983
|
+
SNAPCHAT = :snapchat
|
|
984
|
+
WHATSAPP = :whatsapp
|
|
985
|
+
TELEGRAM = :telegram
|
|
986
|
+
LINE = :line
|
|
987
|
+
DISCORD = :discord
|
|
988
|
+
TWITCH = :twitch
|
|
989
|
+
VIMEO = :vimeo
|
|
990
|
+
IMDB = :imdb
|
|
991
|
+
TUMBLR = :tumblr
|
|
992
|
+
FLICKR = :flickr
|
|
993
|
+
GIPHY = :giphy
|
|
994
|
+
MEDIUM = :medium
|
|
995
|
+
SPOTIFY = :spotify
|
|
996
|
+
SOUNDCLOUD = :soundcloud
|
|
997
|
+
TRIPADVISOR = :tripadvisor
|
|
998
|
+
YELP = :yelp
|
|
999
|
+
PRODUCTHUNT = :producthunt
|
|
1000
|
+
REDDIT = :reddit
|
|
1001
|
+
CRUNCHBASE = :crunchbase
|
|
1002
|
+
APPSTORE = :appstore
|
|
1003
|
+
PLAYSTORE = :playstore
|
|
1004
|
+
|
|
1005
|
+
# @!method self.values
|
|
1006
|
+
# @return [Array<Symbol>]
|
|
1007
|
+
end
|
|
823
1008
|
end
|
|
824
1009
|
|
|
825
1010
|
# @see ContextDev::Models::BrandRetrieveResponse::Brand#stock
|
|
@@ -7,12 +7,20 @@ module ContextDev
|
|
|
7
7
|
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include ContextDev::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute direct_url
|
|
11
|
+
# A specific URL to screenshot directly, bypassing domain resolution (e.g.,
|
|
12
|
+
# 'https://example.com/pricing'). When provided, the screenshot is taken of this
|
|
13
|
+
# exact URL.
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :direct_url, String
|
|
17
|
+
|
|
10
18
|
# @!attribute domain
|
|
11
19
|
# Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The
|
|
12
20
|
# domain will be automatically normalized and validated.
|
|
13
21
|
#
|
|
14
|
-
# @return [String]
|
|
15
|
-
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :domain, String
|
|
16
24
|
|
|
17
25
|
# @!attribute full_screenshot
|
|
18
26
|
# Optional parameter to determine screenshot type. If 'true', takes a full page
|
|
@@ -26,7 +34,8 @@ module ContextDev
|
|
|
26
34
|
# Optional parameter to specify which page type to screenshot. If provided, the
|
|
27
35
|
# system will scrape the domain's links and use heuristics to find the most
|
|
28
36
|
# appropriate URL for the specified page type (30 supported languages). If not
|
|
29
|
-
# provided, screenshots the main domain landing page.
|
|
37
|
+
# provided, screenshots the main domain landing page. Only applicable when using
|
|
38
|
+
# 'domain', not 'directUrl'.
|
|
30
39
|
#
|
|
31
40
|
# @return [Symbol, ContextDev::Models::WebScreenshotParams::Page, nil]
|
|
32
41
|
optional :page, enum: -> { ContextDev::WebScreenshotParams::Page }
|
|
@@ -39,10 +48,12 @@ module ContextDev
|
|
|
39
48
|
# @return [Symbol, ContextDev::Models::WebScreenshotParams::Prioritize, nil]
|
|
40
49
|
optional :prioritize, enum: -> { ContextDev::WebScreenshotParams::Prioritize }
|
|
41
50
|
|
|
42
|
-
# @!method initialize(domain
|
|
51
|
+
# @!method initialize(direct_url: nil, domain: nil, full_screenshot: nil, page: nil, prioritize: nil, request_options: {})
|
|
43
52
|
# Some parameter documentations has been truncated, see
|
|
44
53
|
# {ContextDev::Models::WebScreenshotParams} for more details.
|
|
45
54
|
#
|
|
55
|
+
# @param direct_url [String] A specific URL to screenshot directly, bypassing domain resolution (e.g., 'https
|
|
56
|
+
#
|
|
46
57
|
# @param domain [String] Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The domai
|
|
47
58
|
#
|
|
48
59
|
# @param full_screenshot [Symbol, ContextDev::Models::WebScreenshotParams::FullScreenshot] Optional parameter to determine screenshot type. If 'true', takes a full page sc
|
|
@@ -69,7 +80,8 @@ module ContextDev
|
|
|
69
80
|
# Optional parameter to specify which page type to screenshot. If provided, the
|
|
70
81
|
# system will scrape the domain's links and use heuristics to find the most
|
|
71
82
|
# appropriate URL for the specified page type (30 supported languages). If not
|
|
72
|
-
# provided, screenshots the main domain landing page.
|
|
83
|
+
# provided, screenshots the main domain landing page. Only applicable when using
|
|
84
|
+
# 'domain', not 'directUrl'.
|
|
73
85
|
module Page
|
|
74
86
|
extend ContextDev::Internal::Type::Enum
|
|
75
87
|
|