context.dev 2.9.0 → 2.10.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 +13 -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_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 +238 -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 +3 -30
- 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 +26 -23
- 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_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 +423 -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 +4 -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 +27 -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_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 +5 -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 +12 -11
- metadata +11 -2
|
@@ -7,14 +7,14 @@ module ContextDev
|
|
|
7
7
|
country: ContextDev::Models::WebWebScrapeHTMLParams::country,
|
|
8
8
|
exclude_selectors: ::Array[String]?,
|
|
9
9
|
headers: ::Hash[Symbol, String],
|
|
10
|
-
include_frames:
|
|
10
|
+
include_frames: bool,
|
|
11
11
|
include_selectors: ::Array[String]?,
|
|
12
12
|
max_age_ms: Integer?,
|
|
13
13
|
pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
|
|
14
|
-
settle_animations:
|
|
14
|
+
settle_animations: bool,
|
|
15
15
|
tags: ::Array[String],
|
|
16
16
|
timeout_ms: Integer,
|
|
17
|
-
use_main_content_only:
|
|
17
|
+
use_main_content_only: bool,
|
|
18
18
|
wait_for_ms: Integer?,
|
|
19
19
|
zdr: ContextDev::Models::WebWebScrapeHTMLParams::zdr
|
|
20
20
|
}
|
|
@@ -40,11 +40,9 @@ module ContextDev
|
|
|
40
40
|
|
|
41
41
|
def headers=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
42
42
|
|
|
43
|
-
attr_reader include_frames:
|
|
43
|
+
attr_reader include_frames: bool?
|
|
44
44
|
|
|
45
|
-
def include_frames=: (
|
|
46
|
-
ContextDev::Models::WebWebScrapeHTMLParams::include_frames
|
|
47
|
-
) -> ContextDev::Models::WebWebScrapeHTMLParams::include_frames
|
|
45
|
+
def include_frames=: (bool) -> bool
|
|
48
46
|
|
|
49
47
|
attr_accessor include_selectors: ::Array[String]?
|
|
50
48
|
|
|
@@ -56,11 +54,9 @@ module ContextDev
|
|
|
56
54
|
ContextDev::WebWebScrapeHTMLParams::Pdf
|
|
57
55
|
) -> ContextDev::WebWebScrapeHTMLParams::Pdf
|
|
58
56
|
|
|
59
|
-
attr_reader settle_animations:
|
|
57
|
+
attr_reader settle_animations: bool?
|
|
60
58
|
|
|
61
|
-
def settle_animations=: (
|
|
62
|
-
ContextDev::Models::WebWebScrapeHTMLParams::settle_animations
|
|
63
|
-
) -> ContextDev::Models::WebWebScrapeHTMLParams::settle_animations
|
|
59
|
+
def settle_animations=: (bool) -> bool
|
|
64
60
|
|
|
65
61
|
attr_reader tags: ::Array[String]?
|
|
66
62
|
|
|
@@ -70,11 +66,9 @@ module ContextDev
|
|
|
70
66
|
|
|
71
67
|
def timeout_ms=: (Integer) -> Integer
|
|
72
68
|
|
|
73
|
-
attr_reader use_main_content_only:
|
|
69
|
+
attr_reader use_main_content_only: bool?
|
|
74
70
|
|
|
75
|
-
def use_main_content_only=: (
|
|
76
|
-
ContextDev::Models::WebWebScrapeHTMLParams::use_main_content_only
|
|
77
|
-
) -> ContextDev::Models::WebWebScrapeHTMLParams::use_main_content_only
|
|
71
|
+
def use_main_content_only=: (bool) -> bool
|
|
78
72
|
|
|
79
73
|
attr_accessor wait_for_ms: Integer?
|
|
80
74
|
|
|
@@ -90,14 +84,14 @@ module ContextDev
|
|
|
90
84
|
?country: ContextDev::Models::WebWebScrapeHTMLParams::country,
|
|
91
85
|
?exclude_selectors: ::Array[String]?,
|
|
92
86
|
?headers: ::Hash[Symbol, String],
|
|
93
|
-
?include_frames:
|
|
87
|
+
?include_frames: bool,
|
|
94
88
|
?include_selectors: ::Array[String]?,
|
|
95
89
|
?max_age_ms: Integer?,
|
|
96
90
|
?pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
|
|
97
|
-
?settle_animations:
|
|
91
|
+
?settle_animations: bool,
|
|
98
92
|
?tags: ::Array[String],
|
|
99
93
|
?timeout_ms: Integer,
|
|
100
|
-
?use_main_content_only:
|
|
94
|
+
?use_main_content_only: bool,
|
|
101
95
|
?wait_for_ms: Integer?,
|
|
102
96
|
?zdr: ContextDev::Models::WebWebScrapeHTMLParams::zdr,
|
|
103
97
|
?request_options: ContextDev::request_opts
|
|
@@ -109,14 +103,14 @@ module ContextDev
|
|
|
109
103
|
country: ContextDev::Models::WebWebScrapeHTMLParams::country,
|
|
110
104
|
exclude_selectors: ::Array[String]?,
|
|
111
105
|
headers: ::Hash[Symbol, String],
|
|
112
|
-
include_frames:
|
|
106
|
+
include_frames: bool,
|
|
113
107
|
include_selectors: ::Array[String]?,
|
|
114
108
|
max_age_ms: Integer?,
|
|
115
109
|
pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
|
|
116
|
-
settle_animations:
|
|
110
|
+
settle_animations: bool,
|
|
117
111
|
tags: ::Array[String],
|
|
118
112
|
timeout_ms: Integer,
|
|
119
|
-
use_main_content_only:
|
|
113
|
+
use_main_content_only: bool,
|
|
120
114
|
wait_for_ms: Integer?,
|
|
121
115
|
zdr: ContextDev::Models::WebWebScrapeHTMLParams::zdr,
|
|
122
116
|
request_options: ContextDev::RequestOptions
|
|
@@ -573,41 +567,21 @@ module ContextDev
|
|
|
573
567
|
def self?.values: -> ::Array[ContextDev::Models::WebWebScrapeHTMLParams::country]
|
|
574
568
|
end
|
|
575
569
|
|
|
576
|
-
type include_frames = bool | :true | :false
|
|
577
|
-
|
|
578
|
-
module IncludeFrames
|
|
579
|
-
extend ContextDev::Internal::Type::Union
|
|
580
|
-
|
|
581
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeHTMLParams::include_frames]
|
|
582
|
-
|
|
583
|
-
TRUE: :true
|
|
584
|
-
FALSE: :false
|
|
585
|
-
end
|
|
586
|
-
|
|
587
570
|
type pdf =
|
|
588
|
-
{
|
|
589
|
-
end_: Integer,
|
|
590
|
-
ocr: ContextDev::Models::WebWebScrapeHTMLParams::Pdf::ocr,
|
|
591
|
-
should_parse: ContextDev::Models::WebWebScrapeHTMLParams::Pdf::should_parse,
|
|
592
|
-
start: Integer
|
|
593
|
-
}
|
|
571
|
+
{ end_: Integer, ocr: bool, should_parse: bool, start: Integer }
|
|
594
572
|
|
|
595
573
|
class Pdf < ContextDev::Internal::Type::BaseModel
|
|
596
574
|
attr_reader end_: Integer?
|
|
597
575
|
|
|
598
576
|
def end_=: (Integer) -> Integer
|
|
599
577
|
|
|
600
|
-
attr_reader ocr:
|
|
578
|
+
attr_reader ocr: bool?
|
|
601
579
|
|
|
602
|
-
def ocr=: (
|
|
603
|
-
ContextDev::Models::WebWebScrapeHTMLParams::Pdf::ocr
|
|
604
|
-
) -> ContextDev::Models::WebWebScrapeHTMLParams::Pdf::ocr
|
|
580
|
+
def ocr=: (bool) -> bool
|
|
605
581
|
|
|
606
|
-
attr_reader should_parse:
|
|
582
|
+
attr_reader should_parse: bool?
|
|
607
583
|
|
|
608
|
-
def should_parse=: (
|
|
609
|
-
ContextDev::Models::WebWebScrapeHTMLParams::Pdf::should_parse
|
|
610
|
-
) -> ContextDev::Models::WebWebScrapeHTMLParams::Pdf::should_parse
|
|
584
|
+
def should_parse=: (bool) -> bool
|
|
611
585
|
|
|
612
586
|
attr_reader start: Integer?
|
|
613
587
|
|
|
@@ -615,61 +589,17 @@ module ContextDev
|
|
|
615
589
|
|
|
616
590
|
def initialize: (
|
|
617
591
|
?end_: Integer,
|
|
618
|
-
?ocr:
|
|
619
|
-
?should_parse:
|
|
592
|
+
?ocr: bool,
|
|
593
|
+
?should_parse: bool,
|
|
620
594
|
?start: Integer
|
|
621
595
|
) -> void
|
|
622
596
|
|
|
623
597
|
def to_hash: -> {
|
|
624
598
|
end_: Integer,
|
|
625
|
-
ocr:
|
|
626
|
-
should_parse:
|
|
599
|
+
ocr: bool,
|
|
600
|
+
should_parse: bool,
|
|
627
601
|
start: Integer
|
|
628
602
|
}
|
|
629
|
-
|
|
630
|
-
type ocr = bool | :true | :false
|
|
631
|
-
|
|
632
|
-
module Ocr
|
|
633
|
-
extend ContextDev::Internal::Type::Union
|
|
634
|
-
|
|
635
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeHTMLParams::Pdf::ocr]
|
|
636
|
-
|
|
637
|
-
TRUE: :true
|
|
638
|
-
FALSE: :false
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
type should_parse = bool | :true | :false
|
|
642
|
-
|
|
643
|
-
module ShouldParse
|
|
644
|
-
extend ContextDev::Internal::Type::Union
|
|
645
|
-
|
|
646
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeHTMLParams::Pdf::should_parse]
|
|
647
|
-
|
|
648
|
-
TRUE: :true
|
|
649
|
-
FALSE: :false
|
|
650
|
-
end
|
|
651
|
-
end
|
|
652
|
-
|
|
653
|
-
type settle_animations = bool | :true | :false
|
|
654
|
-
|
|
655
|
-
module SettleAnimations
|
|
656
|
-
extend ContextDev::Internal::Type::Union
|
|
657
|
-
|
|
658
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeHTMLParams::settle_animations]
|
|
659
|
-
|
|
660
|
-
TRUE: :true
|
|
661
|
-
FALSE: :false
|
|
662
|
-
end
|
|
663
|
-
|
|
664
|
-
type use_main_content_only = bool | :true | :false
|
|
665
|
-
|
|
666
|
-
module UseMainContentOnly
|
|
667
|
-
extend ContextDev::Internal::Type::Union
|
|
668
|
-
|
|
669
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeHTMLParams::use_main_content_only]
|
|
670
|
-
|
|
671
|
-
TRUE: :true
|
|
672
|
-
FALSE: :false
|
|
673
603
|
end
|
|
674
604
|
|
|
675
605
|
type zdr = :enabled | :disabled
|
|
@@ -71,6 +71,7 @@ module ContextDev
|
|
|
71
71
|
canonical_url: String,
|
|
72
72
|
description: String,
|
|
73
73
|
favicon: String,
|
|
74
|
+
headings: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading],
|
|
74
75
|
image: String,
|
|
75
76
|
json_ld: ::Array[::Hash[Symbol, top]],
|
|
76
77
|
keywords: ::Array[String],
|
|
@@ -117,6 +118,12 @@ module ContextDev
|
|
|
117
118
|
|
|
118
119
|
def favicon=: (String) -> String
|
|
119
120
|
|
|
121
|
+
attr_reader headings: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading]?
|
|
122
|
+
|
|
123
|
+
def headings=: (
|
|
124
|
+
::Array[ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading]
|
|
125
|
+
) -> ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading]
|
|
126
|
+
|
|
120
127
|
attr_reader image: String?
|
|
121
128
|
|
|
122
129
|
def image=: (String) -> String
|
|
@@ -176,6 +183,7 @@ module ContextDev
|
|
|
176
183
|
?canonical_url: String,
|
|
177
184
|
?description: String,
|
|
178
185
|
?favicon: String,
|
|
186
|
+
?headings: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading],
|
|
179
187
|
?image: String,
|
|
180
188
|
?json_ld: ::Array[::Hash[Symbol, top]],
|
|
181
189
|
?keywords: ::Array[String],
|
|
@@ -198,6 +206,7 @@ module ContextDev
|
|
|
198
206
|
canonical_url: String,
|
|
199
207
|
description: String,
|
|
200
208
|
favicon: String,
|
|
209
|
+
headings: ::Array[ContextDev::Models::WebWebScrapeHTMLResponse::Metadata::Heading],
|
|
201
210
|
image: String,
|
|
202
211
|
json_ld: ::Array[::Hash[Symbol, top]],
|
|
203
212
|
keywords: ::Array[String],
|
|
@@ -254,6 +263,18 @@ module ContextDev
|
|
|
254
263
|
}
|
|
255
264
|
end
|
|
256
265
|
|
|
266
|
+
type heading = { level: Integer, text: String }
|
|
267
|
+
|
|
268
|
+
class Heading < ContextDev::Internal::Type::BaseModel
|
|
269
|
+
attr_accessor level: Integer
|
|
270
|
+
|
|
271
|
+
attr_accessor text: String
|
|
272
|
+
|
|
273
|
+
def initialize: (level: Integer, text: String) -> void
|
|
274
|
+
|
|
275
|
+
def to_hash: -> { level: Integer, text: String }
|
|
276
|
+
end
|
|
277
|
+
|
|
257
278
|
type open_graph = String | ::Array[String]
|
|
258
279
|
|
|
259
280
|
module OpenGraph
|
|
@@ -4,7 +4,7 @@ module ContextDev
|
|
|
4
4
|
{
|
|
5
5
|
url: String,
|
|
6
6
|
actions: ::Array[ContextDev::Models::WebWebScrapeImagesParams::action]?,
|
|
7
|
-
dedupe:
|
|
7
|
+
dedupe: bool,
|
|
8
8
|
enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment?,
|
|
9
9
|
headers: ::Hash[Symbol, String],
|
|
10
10
|
max_age_ms: Integer?,
|
|
@@ -22,11 +22,9 @@ module ContextDev
|
|
|
22
22
|
|
|
23
23
|
attr_accessor actions: ::Array[ContextDev::Models::WebWebScrapeImagesParams::action]?
|
|
24
24
|
|
|
25
|
-
attr_reader dedupe:
|
|
25
|
+
attr_reader dedupe: bool?
|
|
26
26
|
|
|
27
|
-
def dedupe=: (
|
|
28
|
-
ContextDev::Models::WebWebScrapeImagesParams::dedupe
|
|
29
|
-
) -> ContextDev::Models::WebWebScrapeImagesParams::dedupe
|
|
27
|
+
def dedupe=: (bool) -> bool
|
|
30
28
|
|
|
31
29
|
attr_accessor enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment?
|
|
32
30
|
|
|
@@ -49,7 +47,7 @@ module ContextDev
|
|
|
49
47
|
def initialize: (
|
|
50
48
|
url: String,
|
|
51
49
|
?actions: ::Array[ContextDev::Models::WebWebScrapeImagesParams::action]?,
|
|
52
|
-
?dedupe:
|
|
50
|
+
?dedupe: bool,
|
|
53
51
|
?enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment?,
|
|
54
52
|
?headers: ::Hash[Symbol, String],
|
|
55
53
|
?max_age_ms: Integer?,
|
|
@@ -62,7 +60,7 @@ module ContextDev
|
|
|
62
60
|
def to_hash: -> {
|
|
63
61
|
url: String,
|
|
64
62
|
actions: ::Array[ContextDev::Models::WebWebScrapeImagesParams::action]?,
|
|
65
|
-
dedupe:
|
|
63
|
+
dedupe: bool,
|
|
66
64
|
enrichment: ContextDev::WebWebScrapeImagesParams::Enrichment?,
|
|
67
65
|
headers: ::Hash[Symbol, String],
|
|
68
66
|
max_age_ms: Integer?,
|
|
@@ -106,94 +104,44 @@ module ContextDev
|
|
|
106
104
|
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeImagesParams::action]
|
|
107
105
|
end
|
|
108
106
|
|
|
109
|
-
type dedupe = bool | :true | :false
|
|
110
|
-
|
|
111
|
-
module Dedupe
|
|
112
|
-
extend ContextDev::Internal::Type::Union
|
|
113
|
-
|
|
114
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeImagesParams::dedupe]
|
|
115
|
-
|
|
116
|
-
TRUE: :true
|
|
117
|
-
FALSE: :false
|
|
118
|
-
end
|
|
119
|
-
|
|
120
107
|
type enrichment =
|
|
121
108
|
{
|
|
122
|
-
classification:
|
|
123
|
-
hosted_url:
|
|
109
|
+
classification: bool,
|
|
110
|
+
hosted_url: bool,
|
|
124
111
|
max_time_per_ms: Integer,
|
|
125
|
-
resolution:
|
|
112
|
+
resolution: bool
|
|
126
113
|
}
|
|
127
114
|
|
|
128
115
|
class Enrichment < ContextDev::Internal::Type::BaseModel
|
|
129
|
-
attr_reader classification:
|
|
116
|
+
attr_reader classification: bool?
|
|
130
117
|
|
|
131
|
-
def classification=: (
|
|
132
|
-
ContextDev::Models::WebWebScrapeImagesParams::Enrichment::classification
|
|
133
|
-
) -> ContextDev::Models::WebWebScrapeImagesParams::Enrichment::classification
|
|
118
|
+
def classification=: (bool) -> bool
|
|
134
119
|
|
|
135
|
-
attr_reader hosted_url:
|
|
120
|
+
attr_reader hosted_url: bool?
|
|
136
121
|
|
|
137
|
-
def hosted_url=: (
|
|
138
|
-
ContextDev::Models::WebWebScrapeImagesParams::Enrichment::hosted_url
|
|
139
|
-
) -> ContextDev::Models::WebWebScrapeImagesParams::Enrichment::hosted_url
|
|
122
|
+
def hosted_url=: (bool) -> bool
|
|
140
123
|
|
|
141
124
|
attr_reader max_time_per_ms: Integer?
|
|
142
125
|
|
|
143
126
|
def max_time_per_ms=: (Integer) -> Integer
|
|
144
127
|
|
|
145
|
-
attr_reader resolution:
|
|
128
|
+
attr_reader resolution: bool?
|
|
146
129
|
|
|
147
|
-
def resolution=: (
|
|
148
|
-
ContextDev::Models::WebWebScrapeImagesParams::Enrichment::resolution
|
|
149
|
-
) -> ContextDev::Models::WebWebScrapeImagesParams::Enrichment::resolution
|
|
130
|
+
def resolution=: (bool) -> bool
|
|
150
131
|
|
|
151
132
|
def initialize: (
|
|
152
|
-
?classification:
|
|
153
|
-
?hosted_url:
|
|
133
|
+
?classification: bool,
|
|
134
|
+
?hosted_url: bool,
|
|
154
135
|
?max_time_per_ms: Integer,
|
|
155
|
-
?resolution:
|
|
136
|
+
?resolution: bool
|
|
156
137
|
) -> void
|
|
157
138
|
|
|
158
139
|
def to_hash: -> {
|
|
159
|
-
classification:
|
|
160
|
-
hosted_url:
|
|
140
|
+
classification: bool,
|
|
141
|
+
hosted_url: bool,
|
|
161
142
|
max_time_per_ms: Integer,
|
|
162
|
-
resolution:
|
|
143
|
+
resolution: bool
|
|
163
144
|
}
|
|
164
|
-
|
|
165
|
-
type classification = bool | :true | :false
|
|
166
|
-
|
|
167
|
-
module Classification
|
|
168
|
-
extend ContextDev::Internal::Type::Union
|
|
169
|
-
|
|
170
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeImagesParams::Enrichment::classification]
|
|
171
|
-
|
|
172
|
-
TRUE: :true
|
|
173
|
-
FALSE: :false
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
type hosted_url = bool | :true | :false
|
|
177
|
-
|
|
178
|
-
module HostedURL
|
|
179
|
-
extend ContextDev::Internal::Type::Union
|
|
180
|
-
|
|
181
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeImagesParams::Enrichment::hosted_url]
|
|
182
|
-
|
|
183
|
-
TRUE: :true
|
|
184
|
-
FALSE: :false
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
type resolution = bool | :true | :false
|
|
188
|
-
|
|
189
|
-
module Resolution
|
|
190
|
-
extend ContextDev::Internal::Type::Union
|
|
191
|
-
|
|
192
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebWebScrapeImagesParams::Enrichment::resolution]
|
|
193
|
-
|
|
194
|
-
TRUE: :true
|
|
195
|
-
FALSE: :false
|
|
196
|
-
end
|
|
197
145
|
end
|
|
198
146
|
end
|
|
199
147
|
end
|