context.dev 2.9.0 → 2.11.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/client.rb +5 -0
- data/lib/context_dev/models/batch_get_results_response.rb +33 -3
- data/lib/context_dev/models/batch_submit_params.rb +44 -316
- data/lib/context_dev/models/brand_retrieve_response.rb +29 -1
- data/lib/context_dev/models/brand_retrieve_simplified_response.rb +30 -1
- data/lib/context_dev/models/brand_search_params.rb +41 -3
- data/lib/context_dev/models/news_search_params.rb +467 -0
- data/lib/context_dev/models/news_search_response.rb +284 -0
- data/lib/context_dev/models/parse_handle_params.rb +15 -144
- data/lib/context_dev/models/person_enrich_response.rb +61 -1
- data/lib/context_dev/models/utility_prefetch_params.rb +19 -16
- data/lib/context_dev/models/utility_prefetch_response.rb +4 -5
- data/lib/context_dev/models/web_screenshot_params.rb +16 -31
- data/lib/context_dev/models/web_web_crawl_md_response.rb +30 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +15 -153
- data/lib/context_dev/models/web_web_scrape_html_response.rb +30 -1
- data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -124
- data/lib/context_dev/models/web_web_scrape_md_params.rb +35 -238
- data/lib/context_dev/models/web_web_scrape_md_response.rb +41 -2
- data/lib/context_dev/models.rb +2 -0
- data/lib/context_dev/resources/brand.rb +10 -11
- data/lib/context_dev/resources/news.rb +51 -0
- data/lib/context_dev/resources/parse.rb +5 -5
- data/lib/context_dev/resources/utility.rb +7 -6
- data/lib/context_dev/resources/web.rb +30 -24
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +3 -0
- data/rbi/context_dev/client.rbi +4 -0
- data/rbi/context_dev/models/batch_get_results_response.rbi +71 -2
- data/rbi/context_dev/models/batch_submit_params.rbi +58 -592
- data/rbi/context_dev/models/brand_retrieve_response.rbi +80 -3
- data/rbi/context_dev/models/brand_retrieve_simplified_response.rbi +80 -3
- data/rbi/context_dev/models/brand_search_params.rbi +71 -2
- data/rbi/context_dev/models/news_search_params.rbi +1294 -0
- data/rbi/context_dev/models/news_search_response.rbi +489 -0
- data/rbi/context_dev/models/parse_handle_params.rbi +20 -316
- data/rbi/context_dev/models/person_enrich_response.rbi +87 -0
- data/rbi/context_dev/models/utility_prefetch_params.rbi +24 -16
- data/rbi/context_dev/models/utility_prefetch_response.rbi +8 -6
- data/rbi/context_dev/models/web_screenshot_params.rbi +23 -71
- data/rbi/context_dev/models/web_web_crawl_md_response.rbi +67 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +20 -356
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +65 -0
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +16 -287
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +47 -551
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +80 -0
- data/rbi/context_dev/models.rbi +2 -0
- data/rbi/context_dev/resources/brand.rbi +14 -9
- data/rbi/context_dev/resources/news.rbi +46 -0
- data/rbi/context_dev/resources/parse.rbi +5 -21
- data/rbi/context_dev/resources/utility.rbi +8 -6
- data/rbi/context_dev/resources/web.rbi +34 -66
- data/sig/context_dev/client.rbs +2 -0
- data/sig/context_dev/models/batch_get_results_response.rbs +21 -0
- data/sig/context_dev/models/batch_submit_params.rbs +54 -144
- data/sig/context_dev/models/brand_retrieve_response.rbs +33 -3
- data/sig/context_dev/models/brand_retrieve_simplified_response.rbs +33 -3
- data/sig/context_dev/models/brand_search_params.rbs +38 -1
- data/sig/context_dev/models/news_search_params.rbs +532 -0
- data/sig/context_dev/models/news_search_response.rbs +206 -0
- data/sig/context_dev/models/parse_handle_params.rbs +25 -90
- data/sig/context_dev/models/person_enrich_response.rbs +31 -0
- data/sig/context_dev/models/utility_prefetch_params.rbs +2 -1
- data/sig/context_dev/models/utility_prefetch_response.rbs +2 -1
- data/sig/context_dev/models/web_screenshot_params.rbs +12 -18
- data/sig/context_dev/models/web_web_crawl_md_response.rbs +21 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +24 -94
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +21 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +20 -72
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +46 -148
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +28 -0
- data/sig/context_dev/models.rbs +2 -0
- data/sig/context_dev/resources/brand.rbs +3 -0
- data/sig/context_dev/resources/news.rbs +17 -0
- data/sig/context_dev/resources/parse.rbs +5 -5
- data/sig/context_dev/resources/web.rbs +13 -11
- metadata +11 -2
|
@@ -139,6 +139,7 @@ module ContextDev
|
|
|
139
139
|
{
|
|
140
140
|
country: ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::country,
|
|
141
141
|
exclude_selectors: ::Array[String]?,
|
|
142
|
+
include_html: bool,
|
|
142
143
|
include_images: bool,
|
|
143
144
|
include_links: bool,
|
|
144
145
|
include_selectors: ::Array[String]?,
|
|
@@ -159,6 +160,10 @@ module ContextDev
|
|
|
159
160
|
|
|
160
161
|
attr_accessor exclude_selectors: ::Array[String]?
|
|
161
162
|
|
|
163
|
+
attr_reader include_html: bool?
|
|
164
|
+
|
|
165
|
+
def include_html=: (bool) -> bool
|
|
166
|
+
|
|
162
167
|
attr_reader include_images: bool?
|
|
163
168
|
|
|
164
169
|
def include_images=: (bool) -> bool
|
|
@@ -196,6 +201,7 @@ module ContextDev
|
|
|
196
201
|
def initialize: (
|
|
197
202
|
?country: ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::country,
|
|
198
203
|
?exclude_selectors: ::Array[String]?,
|
|
204
|
+
?include_html: bool,
|
|
199
205
|
?include_images: bool,
|
|
200
206
|
?include_links: bool,
|
|
201
207
|
?include_selectors: ::Array[String]?,
|
|
@@ -210,6 +216,7 @@ module ContextDev
|
|
|
210
216
|
def to_hash: -> {
|
|
211
217
|
country: ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::country,
|
|
212
218
|
exclude_selectors: ::Array[String]?,
|
|
219
|
+
include_html: bool,
|
|
213
220
|
include_images: bool,
|
|
214
221
|
include_links: bool,
|
|
215
222
|
include_selectors: ::Array[String]?,
|
|
@@ -641,8 +648,8 @@ module ContextDev
|
|
|
641
648
|
type pdf =
|
|
642
649
|
{
|
|
643
650
|
end_: Integer,
|
|
644
|
-
ocr:
|
|
645
|
-
should_parse:
|
|
651
|
+
ocr: bool,
|
|
652
|
+
should_parse: bool,
|
|
646
653
|
start: Integer
|
|
647
654
|
}
|
|
648
655
|
|
|
@@ -651,17 +658,13 @@ module ContextDev
|
|
|
651
658
|
|
|
652
659
|
def end_=: (Integer) -> Integer
|
|
653
660
|
|
|
654
|
-
attr_reader ocr:
|
|
661
|
+
attr_reader ocr: bool?
|
|
655
662
|
|
|
656
|
-
def ocr=: (
|
|
657
|
-
ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::Pdf::ocr
|
|
658
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::Pdf::ocr
|
|
663
|
+
def ocr=: (bool) -> bool
|
|
659
664
|
|
|
660
|
-
attr_reader should_parse:
|
|
665
|
+
attr_reader should_parse: bool?
|
|
661
666
|
|
|
662
|
-
def should_parse=: (
|
|
663
|
-
ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::Pdf::should_parse
|
|
664
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::Pdf::should_parse
|
|
667
|
+
def should_parse=: (bool) -> bool
|
|
665
668
|
|
|
666
669
|
attr_reader start: Integer?
|
|
667
670
|
|
|
@@ -669,39 +672,17 @@ module ContextDev
|
|
|
669
672
|
|
|
670
673
|
def initialize: (
|
|
671
674
|
?end_: Integer,
|
|
672
|
-
?ocr:
|
|
673
|
-
?should_parse:
|
|
675
|
+
?ocr: bool,
|
|
676
|
+
?should_parse: bool,
|
|
674
677
|
?start: Integer
|
|
675
678
|
) -> void
|
|
676
679
|
|
|
677
680
|
def to_hash: -> {
|
|
678
681
|
end_: Integer,
|
|
679
|
-
ocr:
|
|
680
|
-
should_parse:
|
|
682
|
+
ocr: bool,
|
|
683
|
+
should_parse: bool,
|
|
681
684
|
start: Integer
|
|
682
685
|
}
|
|
683
|
-
|
|
684
|
-
type ocr = bool | :true | :false
|
|
685
|
-
|
|
686
|
-
module Ocr
|
|
687
|
-
extend ContextDev::Internal::Type::Union
|
|
688
|
-
|
|
689
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::Pdf::ocr]
|
|
690
|
-
|
|
691
|
-
TRUE: :true
|
|
692
|
-
FALSE: :false
|
|
693
|
-
end
|
|
694
|
-
|
|
695
|
-
type should_parse = bool | :true | :false
|
|
696
|
-
|
|
697
|
-
module ShouldParse
|
|
698
|
-
extend ContextDev::Internal::Type::Union
|
|
699
|
-
|
|
700
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::Markdown::Options::Pdf::should_parse]
|
|
701
|
-
|
|
702
|
-
TRUE: :true
|
|
703
|
-
FALSE: :false
|
|
704
|
-
end
|
|
705
686
|
end
|
|
706
687
|
end
|
|
707
688
|
end
|
|
@@ -1248,8 +1229,8 @@ module ContextDev
|
|
|
1248
1229
|
type pdf =
|
|
1249
1230
|
{
|
|
1250
1231
|
end_: Integer,
|
|
1251
|
-
ocr:
|
|
1252
|
-
should_parse:
|
|
1232
|
+
ocr: bool,
|
|
1233
|
+
should_parse: bool,
|
|
1253
1234
|
start: Integer
|
|
1254
1235
|
}
|
|
1255
1236
|
|
|
@@ -1258,17 +1239,13 @@ module ContextDev
|
|
|
1258
1239
|
|
|
1259
1240
|
def end_=: (Integer) -> Integer
|
|
1260
1241
|
|
|
1261
|
-
attr_reader ocr:
|
|
1242
|
+
attr_reader ocr: bool?
|
|
1262
1243
|
|
|
1263
|
-
def ocr=: (
|
|
1264
|
-
ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::ocr
|
|
1265
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::ocr
|
|
1244
|
+
def ocr=: (bool) -> bool
|
|
1266
1245
|
|
|
1267
|
-
attr_reader should_parse:
|
|
1246
|
+
attr_reader should_parse: bool?
|
|
1268
1247
|
|
|
1269
|
-
def should_parse=: (
|
|
1270
|
-
ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::should_parse
|
|
1271
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::should_parse
|
|
1248
|
+
def should_parse=: (bool) -> bool
|
|
1272
1249
|
|
|
1273
1250
|
attr_reader start: Integer?
|
|
1274
1251
|
|
|
@@ -1276,39 +1253,17 @@ module ContextDev
|
|
|
1276
1253
|
|
|
1277
1254
|
def initialize: (
|
|
1278
1255
|
?end_: Integer,
|
|
1279
|
-
?ocr:
|
|
1280
|
-
?should_parse:
|
|
1256
|
+
?ocr: bool,
|
|
1257
|
+
?should_parse: bool,
|
|
1281
1258
|
?start: Integer
|
|
1282
1259
|
) -> void
|
|
1283
1260
|
|
|
1284
1261
|
def to_hash: -> {
|
|
1285
1262
|
end_: Integer,
|
|
1286
|
-
ocr:
|
|
1287
|
-
should_parse:
|
|
1263
|
+
ocr: bool,
|
|
1264
|
+
should_parse: bool,
|
|
1288
1265
|
start: Integer
|
|
1289
1266
|
}
|
|
1290
|
-
|
|
1291
|
-
type ocr = bool | :true | :false
|
|
1292
|
-
|
|
1293
|
-
module Ocr
|
|
1294
|
-
extend ContextDev::Internal::Type::Union
|
|
1295
|
-
|
|
1296
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::ocr]
|
|
1297
|
-
|
|
1298
|
-
TRUE: :true
|
|
1299
|
-
FALSE: :false
|
|
1300
|
-
end
|
|
1301
|
-
|
|
1302
|
-
type should_parse = bool | :true | :false
|
|
1303
|
-
|
|
1304
|
-
module ShouldParse
|
|
1305
|
-
extend ContextDev::Internal::Type::Union
|
|
1306
|
-
|
|
1307
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Scrape::Data::HTML::Options::Pdf::should_parse]
|
|
1308
|
-
|
|
1309
|
-
TRUE: :true
|
|
1310
|
-
FALSE: :false
|
|
1311
|
-
end
|
|
1312
1267
|
end
|
|
1313
1268
|
end
|
|
1314
1269
|
end
|
|
@@ -1507,6 +1462,7 @@ module ContextDev
|
|
|
1507
1462
|
{
|
|
1508
1463
|
country: ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::country,
|
|
1509
1464
|
exclude_selectors: ::Array[String]?,
|
|
1465
|
+
include_html: bool,
|
|
1510
1466
|
include_images: bool,
|
|
1511
1467
|
include_links: bool,
|
|
1512
1468
|
include_selectors: ::Array[String]?,
|
|
@@ -1527,6 +1483,10 @@ module ContextDev
|
|
|
1527
1483
|
|
|
1528
1484
|
attr_accessor exclude_selectors: ::Array[String]?
|
|
1529
1485
|
|
|
1486
|
+
attr_reader include_html: bool?
|
|
1487
|
+
|
|
1488
|
+
def include_html=: (bool) -> bool
|
|
1489
|
+
|
|
1530
1490
|
attr_reader include_images: bool?
|
|
1531
1491
|
|
|
1532
1492
|
def include_images=: (bool) -> bool
|
|
@@ -1564,6 +1524,7 @@ module ContextDev
|
|
|
1564
1524
|
def initialize: (
|
|
1565
1525
|
?country: ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::country,
|
|
1566
1526
|
?exclude_selectors: ::Array[String]?,
|
|
1527
|
+
?include_html: bool,
|
|
1567
1528
|
?include_images: bool,
|
|
1568
1529
|
?include_links: bool,
|
|
1569
1530
|
?include_selectors: ::Array[String]?,
|
|
@@ -1578,6 +1539,7 @@ module ContextDev
|
|
|
1578
1539
|
def to_hash: -> {
|
|
1579
1540
|
country: ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::country,
|
|
1580
1541
|
exclude_selectors: ::Array[String]?,
|
|
1542
|
+
include_html: bool,
|
|
1581
1543
|
include_images: bool,
|
|
1582
1544
|
include_links: bool,
|
|
1583
1545
|
include_selectors: ::Array[String]?,
|
|
@@ -2009,8 +1971,8 @@ module ContextDev
|
|
|
2009
1971
|
type pdf =
|
|
2010
1972
|
{
|
|
2011
1973
|
end_: Integer,
|
|
2012
|
-
ocr:
|
|
2013
|
-
should_parse:
|
|
1974
|
+
ocr: bool,
|
|
1975
|
+
should_parse: bool,
|
|
2014
1976
|
start: Integer
|
|
2015
1977
|
}
|
|
2016
1978
|
|
|
@@ -2019,17 +1981,13 @@ module ContextDev
|
|
|
2019
1981
|
|
|
2020
1982
|
def end_=: (Integer) -> Integer
|
|
2021
1983
|
|
|
2022
|
-
attr_reader ocr:
|
|
1984
|
+
attr_reader ocr: bool?
|
|
2023
1985
|
|
|
2024
|
-
def ocr=: (
|
|
2025
|
-
ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::Pdf::ocr
|
|
2026
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::Pdf::ocr
|
|
1986
|
+
def ocr=: (bool) -> bool
|
|
2027
1987
|
|
|
2028
|
-
attr_reader should_parse:
|
|
1988
|
+
attr_reader should_parse: bool?
|
|
2029
1989
|
|
|
2030
|
-
def should_parse=: (
|
|
2031
|
-
ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::Pdf::should_parse
|
|
2032
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::Pdf::should_parse
|
|
1990
|
+
def should_parse=: (bool) -> bool
|
|
2033
1991
|
|
|
2034
1992
|
attr_reader start: Integer?
|
|
2035
1993
|
|
|
@@ -2037,39 +1995,17 @@ module ContextDev
|
|
|
2037
1995
|
|
|
2038
1996
|
def initialize: (
|
|
2039
1997
|
?end_: Integer,
|
|
2040
|
-
?ocr:
|
|
2041
|
-
?should_parse:
|
|
1998
|
+
?ocr: bool,
|
|
1999
|
+
?should_parse: bool,
|
|
2042
2000
|
?start: Integer
|
|
2043
2001
|
) -> void
|
|
2044
2002
|
|
|
2045
2003
|
def to_hash: -> {
|
|
2046
2004
|
end_: Integer,
|
|
2047
|
-
ocr:
|
|
2048
|
-
should_parse:
|
|
2005
|
+
ocr: bool,
|
|
2006
|
+
should_parse: bool,
|
|
2049
2007
|
start: Integer
|
|
2050
2008
|
}
|
|
2051
|
-
|
|
2052
|
-
type ocr = bool | :true | :false
|
|
2053
|
-
|
|
2054
|
-
module Ocr
|
|
2055
|
-
extend ContextDev::Internal::Type::Union
|
|
2056
|
-
|
|
2057
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::Pdf::ocr]
|
|
2058
|
-
|
|
2059
|
-
TRUE: :true
|
|
2060
|
-
FALSE: :false
|
|
2061
|
-
end
|
|
2062
|
-
|
|
2063
|
-
type should_parse = bool | :true | :false
|
|
2064
|
-
|
|
2065
|
-
module ShouldParse
|
|
2066
|
-
extend ContextDev::Internal::Type::Union
|
|
2067
|
-
|
|
2068
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::Markdown::Options::Pdf::should_parse]
|
|
2069
|
-
|
|
2070
|
-
TRUE: :true
|
|
2071
|
-
FALSE: :false
|
|
2072
|
-
end
|
|
2073
2009
|
end
|
|
2074
2010
|
end
|
|
2075
2011
|
end
|
|
@@ -2717,8 +2653,8 @@ module ContextDev
|
|
|
2717
2653
|
type pdf =
|
|
2718
2654
|
{
|
|
2719
2655
|
end_: Integer,
|
|
2720
|
-
ocr:
|
|
2721
|
-
should_parse:
|
|
2656
|
+
ocr: bool,
|
|
2657
|
+
should_parse: bool,
|
|
2722
2658
|
start: Integer
|
|
2723
2659
|
}
|
|
2724
2660
|
|
|
@@ -2727,17 +2663,13 @@ module ContextDev
|
|
|
2727
2663
|
|
|
2728
2664
|
def end_=: (Integer) -> Integer
|
|
2729
2665
|
|
|
2730
|
-
attr_reader ocr:
|
|
2666
|
+
attr_reader ocr: bool?
|
|
2731
2667
|
|
|
2732
|
-
def ocr=: (
|
|
2733
|
-
ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Options::Pdf::ocr
|
|
2734
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Options::Pdf::ocr
|
|
2668
|
+
def ocr=: (bool) -> bool
|
|
2735
2669
|
|
|
2736
|
-
attr_reader should_parse:
|
|
2670
|
+
attr_reader should_parse: bool?
|
|
2737
2671
|
|
|
2738
|
-
def should_parse=: (
|
|
2739
|
-
ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Options::Pdf::should_parse
|
|
2740
|
-
) -> ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Options::Pdf::should_parse
|
|
2672
|
+
def should_parse=: (bool) -> bool
|
|
2741
2673
|
|
|
2742
2674
|
attr_reader start: Integer?
|
|
2743
2675
|
|
|
@@ -2745,39 +2677,17 @@ module ContextDev
|
|
|
2745
2677
|
|
|
2746
2678
|
def initialize: (
|
|
2747
2679
|
?end_: Integer,
|
|
2748
|
-
?ocr:
|
|
2749
|
-
?should_parse:
|
|
2680
|
+
?ocr: bool,
|
|
2681
|
+
?should_parse: bool,
|
|
2750
2682
|
?start: Integer
|
|
2751
2683
|
) -> void
|
|
2752
2684
|
|
|
2753
2685
|
def to_hash: -> {
|
|
2754
2686
|
end_: Integer,
|
|
2755
|
-
ocr:
|
|
2756
|
-
should_parse:
|
|
2687
|
+
ocr: bool,
|
|
2688
|
+
should_parse: bool,
|
|
2757
2689
|
start: Integer
|
|
2758
2690
|
}
|
|
2759
|
-
|
|
2760
|
-
type ocr = bool | :true | :false
|
|
2761
|
-
|
|
2762
|
-
module Ocr
|
|
2763
|
-
extend ContextDev::Internal::Type::Union
|
|
2764
|
-
|
|
2765
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Options::Pdf::ocr]
|
|
2766
|
-
|
|
2767
|
-
TRUE: :true
|
|
2768
|
-
FALSE: :false
|
|
2769
|
-
end
|
|
2770
|
-
|
|
2771
|
-
type should_parse = bool | :true | :false
|
|
2772
|
-
|
|
2773
|
-
module ShouldParse
|
|
2774
|
-
extend ContextDev::Internal::Type::Union
|
|
2775
|
-
|
|
2776
|
-
def self?.variants: -> ::Array[ContextDev::Models::BatchSubmitParams::Input::Crawl::Data::HTML::Options::Pdf::should_parse]
|
|
2777
|
-
|
|
2778
|
-
TRUE: :true
|
|
2779
|
-
FALSE: :false
|
|
2780
|
-
end
|
|
2781
2691
|
end
|
|
2782
2692
|
end
|
|
2783
2693
|
end
|
|
@@ -332,7 +332,12 @@ module ContextDev
|
|
|
332
332
|
end
|
|
333
333
|
end
|
|
334
334
|
|
|
335
|
-
type color =
|
|
335
|
+
type color =
|
|
336
|
+
{
|
|
337
|
+
hex: String,
|
|
338
|
+
name: String,
|
|
339
|
+
source: ContextDev::Models::BrandRetrieveResponse::Brand::Color::source
|
|
340
|
+
}
|
|
336
341
|
|
|
337
342
|
class Color < ContextDev::Internal::Type::BaseModel
|
|
338
343
|
attr_reader hex: String?
|
|
@@ -343,9 +348,34 @@ module ContextDev
|
|
|
343
348
|
|
|
344
349
|
def name=: (String) -> String
|
|
345
350
|
|
|
346
|
-
|
|
351
|
+
attr_reader source: ContextDev::Models::BrandRetrieveResponse::Brand::Color::source?
|
|
352
|
+
|
|
353
|
+
def source=: (
|
|
354
|
+
ContextDev::Models::BrandRetrieveResponse::Brand::Color::source
|
|
355
|
+
) -> ContextDev::Models::BrandRetrieveResponse::Brand::Color::source
|
|
356
|
+
|
|
357
|
+
def initialize: (
|
|
358
|
+
?hex: String,
|
|
359
|
+
?name: String,
|
|
360
|
+
?source: ContextDev::Models::BrandRetrieveResponse::Brand::Color::source
|
|
361
|
+
) -> void
|
|
347
362
|
|
|
348
|
-
def to_hash: -> {
|
|
363
|
+
def to_hash: -> {
|
|
364
|
+
hex: String,
|
|
365
|
+
name: String,
|
|
366
|
+
source: ContextDev::Models::BrandRetrieveResponse::Brand::Color::source
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
type source = :site | :logo
|
|
370
|
+
|
|
371
|
+
module Source
|
|
372
|
+
extend ContextDev::Internal::Type::Enum
|
|
373
|
+
|
|
374
|
+
SITE: :site
|
|
375
|
+
LOGO: :logo
|
|
376
|
+
|
|
377
|
+
def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveResponse::Brand::Color::source]
|
|
378
|
+
end
|
|
349
379
|
end
|
|
350
380
|
|
|
351
381
|
type employees =
|
|
@@ -177,7 +177,12 @@ module ContextDev
|
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
type color =
|
|
180
|
+
type color =
|
|
181
|
+
{
|
|
182
|
+
hex: String,
|
|
183
|
+
name: String,
|
|
184
|
+
source: ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source
|
|
185
|
+
}
|
|
181
186
|
|
|
182
187
|
class Color < ContextDev::Internal::Type::BaseModel
|
|
183
188
|
attr_reader hex: String?
|
|
@@ -188,9 +193,34 @@ module ContextDev
|
|
|
188
193
|
|
|
189
194
|
def name=: (String) -> String
|
|
190
195
|
|
|
191
|
-
|
|
196
|
+
attr_reader source: ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source?
|
|
197
|
+
|
|
198
|
+
def source=: (
|
|
199
|
+
ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source
|
|
200
|
+
) -> ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source
|
|
201
|
+
|
|
202
|
+
def initialize: (
|
|
203
|
+
?hex: String,
|
|
204
|
+
?name: String,
|
|
205
|
+
?source: ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source
|
|
206
|
+
) -> void
|
|
192
207
|
|
|
193
|
-
def to_hash: -> {
|
|
208
|
+
def to_hash: -> {
|
|
209
|
+
hex: String,
|
|
210
|
+
name: String,
|
|
211
|
+
source: ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type source = :site | :logo
|
|
215
|
+
|
|
216
|
+
module Source
|
|
217
|
+
extend ContextDev::Internal::Type::Enum
|
|
218
|
+
|
|
219
|
+
SITE: :site
|
|
220
|
+
LOGO: :logo
|
|
221
|
+
|
|
222
|
+
def self?.values: -> ::Array[ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::source]
|
|
223
|
+
end
|
|
194
224
|
end
|
|
195
225
|
|
|
196
226
|
type logo =
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
module ContextDev
|
|
2
2
|
module Models
|
|
3
3
|
type brand_search_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
query: String,
|
|
6
|
+
autocomplete: bool,
|
|
7
|
+
query_by: ::Array[ContextDev::Models::BrandSearchParams::query_by],
|
|
8
|
+
tags: ::Array[String],
|
|
9
|
+
typo_tolerance: Integer
|
|
10
|
+
}
|
|
5
11
|
& ContextDev::Internal::Type::request_parameters
|
|
6
12
|
|
|
7
13
|
class BrandSearchParams < ContextDev::Internal::Type::BaseModel
|
|
@@ -10,21 +16,52 @@ module ContextDev
|
|
|
10
16
|
|
|
11
17
|
attr_accessor query: String
|
|
12
18
|
|
|
19
|
+
attr_reader autocomplete: bool?
|
|
20
|
+
|
|
21
|
+
def autocomplete=: (bool) -> bool
|
|
22
|
+
|
|
23
|
+
attr_reader query_by: ::Array[ContextDev::Models::BrandSearchParams::query_by]?
|
|
24
|
+
|
|
25
|
+
def query_by=: (
|
|
26
|
+
::Array[ContextDev::Models::BrandSearchParams::query_by]
|
|
27
|
+
) -> ::Array[ContextDev::Models::BrandSearchParams::query_by]
|
|
28
|
+
|
|
13
29
|
attr_reader tags: ::Array[String]?
|
|
14
30
|
|
|
15
31
|
def tags=: (::Array[String]) -> ::Array[String]
|
|
16
32
|
|
|
33
|
+
attr_reader typo_tolerance: Integer?
|
|
34
|
+
|
|
35
|
+
def typo_tolerance=: (Integer) -> Integer
|
|
36
|
+
|
|
17
37
|
def initialize: (
|
|
18
38
|
query: String,
|
|
39
|
+
?autocomplete: bool,
|
|
40
|
+
?query_by: ::Array[ContextDev::Models::BrandSearchParams::query_by],
|
|
19
41
|
?tags: ::Array[String],
|
|
42
|
+
?typo_tolerance: Integer,
|
|
20
43
|
?request_options: ContextDev::request_opts
|
|
21
44
|
) -> void
|
|
22
45
|
|
|
23
46
|
def to_hash: -> {
|
|
24
47
|
query: String,
|
|
48
|
+
autocomplete: bool,
|
|
49
|
+
query_by: ::Array[ContextDev::Models::BrandSearchParams::query_by],
|
|
25
50
|
tags: ::Array[String],
|
|
51
|
+
typo_tolerance: Integer,
|
|
26
52
|
request_options: ContextDev::RequestOptions
|
|
27
53
|
}
|
|
54
|
+
|
|
55
|
+
type query_by = :name | :domain
|
|
56
|
+
|
|
57
|
+
module QueryBy
|
|
58
|
+
extend ContextDev::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
NAME: :name
|
|
61
|
+
DOMAIN: :domain
|
|
62
|
+
|
|
63
|
+
def self?.values: -> ::Array[ContextDev::Models::BrandSearchParams::query_by]
|
|
64
|
+
end
|
|
28
65
|
end
|
|
29
66
|
end
|
|
30
67
|
end
|