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
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
module ContextDev
|
|
2
|
+
module Models
|
|
3
|
+
type news_search_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[ContextDev::Models::NewsSearchResponse::Data],
|
|
6
|
+
has_more: bool,
|
|
7
|
+
meta: ContextDev::Models::NewsSearchResponse::Meta,
|
|
8
|
+
next_cursor: String?,
|
|
9
|
+
key_metadata: ContextDev::Models::NewsSearchResponse::KeyMetadata
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class NewsSearchResponse < ContextDev::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: ::Array[ContextDev::Models::NewsSearchResponse::Data]
|
|
14
|
+
|
|
15
|
+
attr_accessor has_more: bool
|
|
16
|
+
|
|
17
|
+
attr_accessor meta: ContextDev::Models::NewsSearchResponse::Meta
|
|
18
|
+
|
|
19
|
+
attr_accessor next_cursor: String?
|
|
20
|
+
|
|
21
|
+
attr_reader key_metadata: ContextDev::Models::NewsSearchResponse::KeyMetadata?
|
|
22
|
+
|
|
23
|
+
def key_metadata=: (
|
|
24
|
+
ContextDev::Models::NewsSearchResponse::KeyMetadata
|
|
25
|
+
) -> ContextDev::Models::NewsSearchResponse::KeyMetadata
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
data: ::Array[ContextDev::Models::NewsSearchResponse::Data],
|
|
29
|
+
has_more: bool,
|
|
30
|
+
meta: ContextDev::Models::NewsSearchResponse::Meta,
|
|
31
|
+
next_cursor: String?,
|
|
32
|
+
?key_metadata: ContextDev::Models::NewsSearchResponse::KeyMetadata
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
data: ::Array[ContextDev::Models::NewsSearchResponse::Data],
|
|
37
|
+
has_more: bool,
|
|
38
|
+
meta: ContextDev::Models::NewsSearchResponse::Meta,
|
|
39
|
+
next_cursor: String?,
|
|
40
|
+
key_metadata: ContextDev::Models::NewsSearchResponse::KeyMetadata
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type data =
|
|
44
|
+
{
|
|
45
|
+
id: String,
|
|
46
|
+
authors: ::Array[String],
|
|
47
|
+
description: String?,
|
|
48
|
+
image_url: String?,
|
|
49
|
+
language: String?,
|
|
50
|
+
match: ContextDev::Models::NewsSearchResponse::Data::Match,
|
|
51
|
+
published_at: Time?,
|
|
52
|
+
source: ContextDev::Models::NewsSearchResponse::Data::Source,
|
|
53
|
+
story_id: String,
|
|
54
|
+
title: String,
|
|
55
|
+
type: ContextDev::Models::NewsSearchResponse::Data::type_,
|
|
56
|
+
url: String
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
class Data < ContextDev::Internal::Type::BaseModel
|
|
60
|
+
attr_accessor id: String
|
|
61
|
+
|
|
62
|
+
attr_accessor authors: ::Array[String]
|
|
63
|
+
|
|
64
|
+
attr_accessor description: String?
|
|
65
|
+
|
|
66
|
+
attr_accessor image_url: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor language: String?
|
|
69
|
+
|
|
70
|
+
attr_accessor match: ContextDev::Models::NewsSearchResponse::Data::Match
|
|
71
|
+
|
|
72
|
+
attr_accessor published_at: Time?
|
|
73
|
+
|
|
74
|
+
attr_accessor source: ContextDev::Models::NewsSearchResponse::Data::Source
|
|
75
|
+
|
|
76
|
+
attr_accessor story_id: String
|
|
77
|
+
|
|
78
|
+
attr_accessor title: String
|
|
79
|
+
|
|
80
|
+
attr_accessor type: ContextDev::Models::NewsSearchResponse::Data::type_
|
|
81
|
+
|
|
82
|
+
attr_accessor url: String
|
|
83
|
+
|
|
84
|
+
def initialize: (
|
|
85
|
+
id: String,
|
|
86
|
+
authors: ::Array[String],
|
|
87
|
+
description: String?,
|
|
88
|
+
image_url: String?,
|
|
89
|
+
language: String?,
|
|
90
|
+
match: ContextDev::Models::NewsSearchResponse::Data::Match,
|
|
91
|
+
published_at: Time?,
|
|
92
|
+
source: ContextDev::Models::NewsSearchResponse::Data::Source,
|
|
93
|
+
story_id: String,
|
|
94
|
+
title: String,
|
|
95
|
+
type: ContextDev::Models::NewsSearchResponse::Data::type_,
|
|
96
|
+
url: String
|
|
97
|
+
) -> void
|
|
98
|
+
|
|
99
|
+
def to_hash: -> {
|
|
100
|
+
id: String,
|
|
101
|
+
authors: ::Array[String],
|
|
102
|
+
description: String?,
|
|
103
|
+
image_url: String?,
|
|
104
|
+
language: String?,
|
|
105
|
+
match: ContextDev::Models::NewsSearchResponse::Data::Match,
|
|
106
|
+
published_at: Time?,
|
|
107
|
+
source: ContextDev::Models::NewsSearchResponse::Data::Source,
|
|
108
|
+
story_id: String,
|
|
109
|
+
title: String,
|
|
110
|
+
type: ContextDev::Models::NewsSearchResponse::Data::type_,
|
|
111
|
+
url: String
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type match =
|
|
115
|
+
{
|
|
116
|
+
confidence: Float?,
|
|
117
|
+
level: ContextDev::Models::NewsSearchResponse::Data::Match::level
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class Match < ContextDev::Internal::Type::BaseModel
|
|
121
|
+
attr_accessor confidence: Float?
|
|
122
|
+
|
|
123
|
+
attr_accessor level: ContextDev::Models::NewsSearchResponse::Data::Match::level
|
|
124
|
+
|
|
125
|
+
def initialize: (
|
|
126
|
+
confidence: Float?,
|
|
127
|
+
level: ContextDev::Models::NewsSearchResponse::Data::Match::level
|
|
128
|
+
) -> void
|
|
129
|
+
|
|
130
|
+
def to_hash: -> {
|
|
131
|
+
confidence: Float?,
|
|
132
|
+
level: ContextDev::Models::NewsSearchResponse::Data::Match::level
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
type level = :primary | :secondary
|
|
136
|
+
|
|
137
|
+
module Level
|
|
138
|
+
extend ContextDev::Internal::Type::Enum
|
|
139
|
+
|
|
140
|
+
PRIMARY: :primary
|
|
141
|
+
SECONDARY: :secondary
|
|
142
|
+
|
|
143
|
+
def self?.values: -> ::Array[ContextDev::Models::NewsSearchResponse::Data::Match::level]
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
type source = { direct: bool, domain: String, name: String }
|
|
148
|
+
|
|
149
|
+
class Source < ContextDev::Internal::Type::BaseModel
|
|
150
|
+
attr_accessor direct: bool
|
|
151
|
+
|
|
152
|
+
attr_accessor domain: String
|
|
153
|
+
|
|
154
|
+
attr_accessor name: String
|
|
155
|
+
|
|
156
|
+
def initialize: (direct: bool, domain: String, name: String) -> void
|
|
157
|
+
|
|
158
|
+
def to_hash: -> { direct: bool, domain: String, name: String }
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
type type_ =
|
|
162
|
+
:editorial | :press_release | :regulatory_filing | :advisory
|
|
163
|
+
|
|
164
|
+
module Type
|
|
165
|
+
extend ContextDev::Internal::Type::Enum
|
|
166
|
+
|
|
167
|
+
EDITORIAL: :editorial
|
|
168
|
+
PRESS_RELEASE: :press_release
|
|
169
|
+
REGULATORY_FILING: :regulatory_filing
|
|
170
|
+
ADVISORY: :advisory
|
|
171
|
+
|
|
172
|
+
def self?.values: -> ::Array[ContextDev::Models::NewsSearchResponse::Data::type_]
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
type meta = { count: Integer }
|
|
177
|
+
|
|
178
|
+
class Meta < ContextDev::Internal::Type::BaseModel
|
|
179
|
+
attr_accessor count: Integer
|
|
180
|
+
|
|
181
|
+
def initialize: (count: Integer) -> void
|
|
182
|
+
|
|
183
|
+
def to_hash: -> { count: Integer }
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
type key_metadata =
|
|
187
|
+
{ credits_consumed: Integer, credits_remaining: Integer }
|
|
188
|
+
|
|
189
|
+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
190
|
+
attr_accessor credits_consumed: Integer
|
|
191
|
+
|
|
192
|
+
attr_accessor credits_remaining: Integer
|
|
193
|
+
|
|
194
|
+
def initialize: (
|
|
195
|
+
credits_consumed: Integer,
|
|
196
|
+
credits_remaining: Integer
|
|
197
|
+
) -> void
|
|
198
|
+
|
|
199
|
+
def to_hash: -> {
|
|
200
|
+
credits_consumed: Integer,
|
|
201
|
+
credits_remaining: Integer
|
|
202
|
+
}
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
@@ -5,13 +5,13 @@ module ContextDev
|
|
|
5
5
|
body: ContextDev::Internal::file_input,
|
|
6
6
|
client: String,
|
|
7
7
|
extension: ContextDev::Models::ParseHandleParams::extension,
|
|
8
|
-
include_images:
|
|
9
|
-
include_links:
|
|
10
|
-
ocr:
|
|
8
|
+
include_images: bool,
|
|
9
|
+
include_links: bool,
|
|
10
|
+
ocr: bool,
|
|
11
11
|
pdf: ContextDev::ParseHandleParams::Pdf,
|
|
12
|
-
:shorten_base64_images =>
|
|
12
|
+
:shorten_base64_images => bool,
|
|
13
13
|
tags: ::Array[String],
|
|
14
|
-
use_main_content_only:
|
|
14
|
+
use_main_content_only: bool,
|
|
15
15
|
zdr: ContextDev::Models::ParseHandleParams::zdr
|
|
16
16
|
}
|
|
17
17
|
& ContextDev::Internal::Type::request_parameters
|
|
@@ -32,23 +32,17 @@ module ContextDev
|
|
|
32
32
|
ContextDev::Models::ParseHandleParams::extension
|
|
33
33
|
) -> ContextDev::Models::ParseHandleParams::extension
|
|
34
34
|
|
|
35
|
-
attr_reader include_images:
|
|
35
|
+
attr_reader include_images: bool?
|
|
36
36
|
|
|
37
|
-
def include_images=: (
|
|
38
|
-
ContextDev::Models::ParseHandleParams::include_images
|
|
39
|
-
) -> ContextDev::Models::ParseHandleParams::include_images
|
|
37
|
+
def include_images=: (bool) -> bool
|
|
40
38
|
|
|
41
|
-
attr_reader include_links:
|
|
39
|
+
attr_reader include_links: bool?
|
|
42
40
|
|
|
43
|
-
def include_links=: (
|
|
44
|
-
ContextDev::Models::ParseHandleParams::include_links
|
|
45
|
-
) -> ContextDev::Models::ParseHandleParams::include_links
|
|
41
|
+
def include_links=: (bool) -> bool
|
|
46
42
|
|
|
47
|
-
attr_reader ocr:
|
|
43
|
+
attr_reader ocr: bool?
|
|
48
44
|
|
|
49
|
-
def ocr=: (
|
|
50
|
-
ContextDev::Models::ParseHandleParams::ocr
|
|
51
|
-
) -> ContextDev::Models::ParseHandleParams::ocr
|
|
45
|
+
def ocr=: (bool) -> bool
|
|
52
46
|
|
|
53
47
|
attr_reader pdf: ContextDev::ParseHandleParams::Pdf?
|
|
54
48
|
|
|
@@ -56,21 +50,17 @@ module ContextDev
|
|
|
56
50
|
ContextDev::ParseHandleParams::Pdf
|
|
57
51
|
) -> ContextDev::ParseHandleParams::Pdf
|
|
58
52
|
|
|
59
|
-
attr_reader shorten_base64_images:
|
|
53
|
+
attr_reader shorten_base64_images: bool?
|
|
60
54
|
|
|
61
|
-
def shorten_base64_images=: (
|
|
62
|
-
ContextDev::Models::ParseHandleParams::shorten_base64_images
|
|
63
|
-
) -> ContextDev::Models::ParseHandleParams::shorten_base64_images
|
|
55
|
+
def shorten_base64_images=: (bool) -> bool
|
|
64
56
|
|
|
65
57
|
attr_reader tags: ::Array[String]?
|
|
66
58
|
|
|
67
59
|
def tags=: (::Array[String]) -> ::Array[String]
|
|
68
60
|
|
|
69
|
-
attr_reader use_main_content_only:
|
|
61
|
+
attr_reader use_main_content_only: bool?
|
|
70
62
|
|
|
71
|
-
def use_main_content_only=: (
|
|
72
|
-
ContextDev::Models::ParseHandleParams::use_main_content_only
|
|
73
|
-
) -> ContextDev::Models::ParseHandleParams::use_main_content_only
|
|
63
|
+
def use_main_content_only=: (bool) -> bool
|
|
74
64
|
|
|
75
65
|
attr_reader zdr: ContextDev::Models::ParseHandleParams::zdr?
|
|
76
66
|
|
|
@@ -82,13 +72,13 @@ module ContextDev
|
|
|
82
72
|
body: ContextDev::Internal::file_input,
|
|
83
73
|
?client: String,
|
|
84
74
|
?extension: ContextDev::Models::ParseHandleParams::extension,
|
|
85
|
-
?include_images:
|
|
86
|
-
?include_links:
|
|
87
|
-
?ocr:
|
|
75
|
+
?include_images: bool,
|
|
76
|
+
?include_links: bool,
|
|
77
|
+
?ocr: bool,
|
|
88
78
|
?pdf: ContextDev::ParseHandleParams::Pdf,
|
|
89
|
-
?shorten_base64_images:
|
|
79
|
+
?shorten_base64_images: bool,
|
|
90
80
|
?tags: ::Array[String],
|
|
91
|
-
?use_main_content_only:
|
|
81
|
+
?use_main_content_only: bool,
|
|
92
82
|
?zdr: ContextDev::Models::ParseHandleParams::zdr,
|
|
93
83
|
?request_options: ContextDev::request_opts
|
|
94
84
|
) -> void
|
|
@@ -97,13 +87,13 @@ module ContextDev
|
|
|
97
87
|
body: ContextDev::Internal::file_input,
|
|
98
88
|
client: String,
|
|
99
89
|
extension: ContextDev::Models::ParseHandleParams::extension,
|
|
100
|
-
include_images:
|
|
101
|
-
include_links:
|
|
102
|
-
ocr:
|
|
90
|
+
include_images: bool,
|
|
91
|
+
include_links: bool,
|
|
92
|
+
ocr: bool,
|
|
103
93
|
pdf: ContextDev::ParseHandleParams::Pdf,
|
|
104
|
-
:shorten_base64_images =>
|
|
94
|
+
:shorten_base64_images => bool,
|
|
105
95
|
tags: ::Array[String],
|
|
106
|
-
use_main_content_only:
|
|
96
|
+
use_main_content_only: bool,
|
|
107
97
|
zdr: ContextDev::Models::ParseHandleParams::zdr,
|
|
108
98
|
request_options: ContextDev::RequestOptions
|
|
109
99
|
}
|
|
@@ -257,39 +247,6 @@ module ContextDev
|
|
|
257
247
|
def self?.values: -> ::Array[ContextDev::Models::ParseHandleParams::extension]
|
|
258
248
|
end
|
|
259
249
|
|
|
260
|
-
type include_images = bool | :true | :false
|
|
261
|
-
|
|
262
|
-
module IncludeImages
|
|
263
|
-
extend ContextDev::Internal::Type::Union
|
|
264
|
-
|
|
265
|
-
def self?.variants: -> ::Array[ContextDev::Models::ParseHandleParams::include_images]
|
|
266
|
-
|
|
267
|
-
TRUE: :true
|
|
268
|
-
FALSE: :false
|
|
269
|
-
end
|
|
270
|
-
|
|
271
|
-
type include_links = bool | :true | :false
|
|
272
|
-
|
|
273
|
-
module IncludeLinks
|
|
274
|
-
extend ContextDev::Internal::Type::Union
|
|
275
|
-
|
|
276
|
-
def self?.variants: -> ::Array[ContextDev::Models::ParseHandleParams::include_links]
|
|
277
|
-
|
|
278
|
-
TRUE: :true
|
|
279
|
-
FALSE: :false
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
type ocr = bool | :true | :false
|
|
283
|
-
|
|
284
|
-
module Ocr
|
|
285
|
-
extend ContextDev::Internal::Type::Union
|
|
286
|
-
|
|
287
|
-
def self?.variants: -> ::Array[ContextDev::Models::ParseHandleParams::ocr]
|
|
288
|
-
|
|
289
|
-
TRUE: :true
|
|
290
|
-
FALSE: :false
|
|
291
|
-
end
|
|
292
|
-
|
|
293
250
|
type pdf = { end_: Integer, start: Integer }
|
|
294
251
|
|
|
295
252
|
class Pdf < ContextDev::Internal::Type::BaseModel
|
|
@@ -306,28 +263,6 @@ module ContextDev
|
|
|
306
263
|
def to_hash: -> { end_: Integer, start: Integer }
|
|
307
264
|
end
|
|
308
265
|
|
|
309
|
-
type shorten_base64_images = bool | :true | :false
|
|
310
|
-
|
|
311
|
-
module ShortenBase64Images
|
|
312
|
-
extend ContextDev::Internal::Type::Union
|
|
313
|
-
|
|
314
|
-
def self?.variants: -> ::Array[ContextDev::Models::ParseHandleParams::shorten_base64_images]
|
|
315
|
-
|
|
316
|
-
TRUE: :true
|
|
317
|
-
FALSE: :false
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
type use_main_content_only = bool | :true | :false
|
|
321
|
-
|
|
322
|
-
module UseMainContentOnly
|
|
323
|
-
extend ContextDev::Internal::Type::Union
|
|
324
|
-
|
|
325
|
-
def self?.variants: -> ::Array[ContextDev::Models::ParseHandleParams::use_main_content_only]
|
|
326
|
-
|
|
327
|
-
TRUE: :true
|
|
328
|
-
FALSE: :false
|
|
329
|
-
end
|
|
330
|
-
|
|
331
266
|
type zdr = :enabled | :disabled
|
|
332
267
|
|
|
333
268
|
module Zdr
|
|
@@ -60,6 +60,7 @@ module ContextDev
|
|
|
60
60
|
|
|
61
61
|
type person =
|
|
62
62
|
{
|
|
63
|
+
current_role_status: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::current_role_status,
|
|
63
64
|
education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education],
|
|
64
65
|
experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience],
|
|
65
66
|
skills: ::Array[String],
|
|
@@ -67,13 +68,17 @@ module ContextDev
|
|
|
67
68
|
website_urls: ::Array[String],
|
|
68
69
|
avatar_url: String,
|
|
69
70
|
bio: String,
|
|
71
|
+
checked_at: String,
|
|
70
72
|
current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole,
|
|
71
73
|
email: String,
|
|
74
|
+
last_updated: String,
|
|
72
75
|
location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location,
|
|
73
76
|
name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
class Person < ContextDev::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor current_role_status: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::current_role_status
|
|
81
|
+
|
|
77
82
|
attr_accessor education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education]
|
|
78
83
|
|
|
79
84
|
attr_accessor experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience]
|
|
@@ -92,6 +97,10 @@ module ContextDev
|
|
|
92
97
|
|
|
93
98
|
def bio=: (String) -> String
|
|
94
99
|
|
|
100
|
+
attr_reader checked_at: String?
|
|
101
|
+
|
|
102
|
+
def checked_at=: (String) -> String
|
|
103
|
+
|
|
95
104
|
attr_reader current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole?
|
|
96
105
|
|
|
97
106
|
def current_role=: (
|
|
@@ -102,6 +111,10 @@ module ContextDev
|
|
|
102
111
|
|
|
103
112
|
def email=: (String) -> String
|
|
104
113
|
|
|
114
|
+
attr_reader last_updated: String?
|
|
115
|
+
|
|
116
|
+
def last_updated=: (String) -> String
|
|
117
|
+
|
|
105
118
|
attr_reader location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location?
|
|
106
119
|
|
|
107
120
|
def location=: (
|
|
@@ -115,6 +128,7 @@ module ContextDev
|
|
|
115
128
|
) -> ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
116
129
|
|
|
117
130
|
def initialize: (
|
|
131
|
+
current_role_status: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::current_role_status,
|
|
118
132
|
education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education],
|
|
119
133
|
experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience],
|
|
120
134
|
skills: ::Array[String],
|
|
@@ -122,13 +136,16 @@ module ContextDev
|
|
|
122
136
|
website_urls: ::Array[String],
|
|
123
137
|
?avatar_url: String,
|
|
124
138
|
?bio: String,
|
|
139
|
+
?checked_at: String,
|
|
125
140
|
?current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole,
|
|
126
141
|
?email: String,
|
|
142
|
+
?last_updated: String,
|
|
127
143
|
?location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location,
|
|
128
144
|
?name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
129
145
|
) -> void
|
|
130
146
|
|
|
131
147
|
def to_hash: -> {
|
|
148
|
+
current_role_status: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::current_role_status,
|
|
132
149
|
education: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education],
|
|
133
150
|
experience: ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience],
|
|
134
151
|
skills: ::Array[String],
|
|
@@ -136,12 +153,26 @@ module ContextDev
|
|
|
136
153
|
website_urls: ::Array[String],
|
|
137
154
|
avatar_url: String,
|
|
138
155
|
bio: String,
|
|
156
|
+
checked_at: String,
|
|
139
157
|
current_role: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole,
|
|
140
158
|
email: String,
|
|
159
|
+
last_updated: String,
|
|
141
160
|
location: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location,
|
|
142
161
|
name: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name
|
|
143
162
|
}
|
|
144
163
|
|
|
164
|
+
type current_role_status = :present | :none | :unknown
|
|
165
|
+
|
|
166
|
+
module CurrentRoleStatus
|
|
167
|
+
extend ContextDev::Internal::Type::Enum
|
|
168
|
+
|
|
169
|
+
PRESENT: :present
|
|
170
|
+
NONE: :none
|
|
171
|
+
UNKNOWN: :unknown
|
|
172
|
+
|
|
173
|
+
def self?.values: -> ::Array[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::current_role_status]
|
|
174
|
+
end
|
|
175
|
+
|
|
145
176
|
type education =
|
|
146
177
|
{
|
|
147
178
|
institution: ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution,
|
|
@@ -71,12 +71,13 @@ module ContextDev
|
|
|
71
71
|
def self?.variants: -> ::Array[ContextDev::Models::UtilityPrefetchParams::identifier]
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
-
type type_ = :brand
|
|
74
|
+
type type_ = :brand | :styleguide
|
|
75
75
|
|
|
76
76
|
module Type
|
|
77
77
|
extend ContextDev::Internal::Type::Enum
|
|
78
78
|
|
|
79
79
|
BRAND: :brand
|
|
80
|
+
STYLEGUIDE: :styleguide
|
|
80
81
|
|
|
81
82
|
def self?.values: -> ::Array[ContextDev::Models::UtilityPrefetchParams::type_]
|
|
82
83
|
end
|
|
@@ -69,12 +69,13 @@ module ContextDev
|
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
type type_ = :brand
|
|
72
|
+
type type_ = :brand | :styleguide
|
|
73
73
|
|
|
74
74
|
module Type
|
|
75
75
|
extend ContextDev::Internal::Type::Enum
|
|
76
76
|
|
|
77
77
|
BRAND: :brand
|
|
78
|
+
STYLEGUIDE: :styleguide
|
|
78
79
|
|
|
79
80
|
def self?.values: -> ::Array[ContextDev::Models::UtilityPrefetchResponse::type_]
|
|
80
81
|
end
|
|
@@ -2,12 +2,13 @@ module ContextDev
|
|
|
2
2
|
module Models
|
|
3
3
|
type web_screenshot_params =
|
|
4
4
|
{
|
|
5
|
+
clear_popups: bool,
|
|
5
6
|
color_scheme: ContextDev::Models::WebScreenshotParams::color_scheme,
|
|
6
7
|
country: ContextDev::Models::WebScreenshotParams::country,
|
|
7
8
|
direct_url: String,
|
|
8
9
|
domain: String,
|
|
9
10
|
full_screenshot: ContextDev::Models::WebScreenshotParams::full_screenshot,
|
|
10
|
-
handle_cookie_popup:
|
|
11
|
+
handle_cookie_popup: bool,
|
|
11
12
|
max_age_ms: Integer?,
|
|
12
13
|
page: ContextDev::Models::WebScreenshotParams::page,
|
|
13
14
|
scroll_offset: Integer?,
|
|
@@ -23,6 +24,10 @@ module ContextDev
|
|
|
23
24
|
extend ContextDev::Internal::Type::RequestParameters::Converter
|
|
24
25
|
include ContextDev::Internal::Type::RequestParameters
|
|
25
26
|
|
|
27
|
+
attr_reader clear_popups: bool?
|
|
28
|
+
|
|
29
|
+
def clear_popups=: (bool) -> bool
|
|
30
|
+
|
|
26
31
|
attr_reader color_scheme: ContextDev::Models::WebScreenshotParams::color_scheme?
|
|
27
32
|
|
|
28
33
|
def color_scheme=: (
|
|
@@ -49,11 +54,9 @@ module ContextDev
|
|
|
49
54
|
ContextDev::Models::WebScreenshotParams::full_screenshot
|
|
50
55
|
) -> ContextDev::Models::WebScreenshotParams::full_screenshot
|
|
51
56
|
|
|
52
|
-
attr_reader handle_cookie_popup:
|
|
57
|
+
attr_reader handle_cookie_popup: bool?
|
|
53
58
|
|
|
54
|
-
def handle_cookie_popup=: (
|
|
55
|
-
ContextDev::Models::WebScreenshotParams::handle_cookie_popup
|
|
56
|
-
) -> ContextDev::Models::WebScreenshotParams::handle_cookie_popup
|
|
59
|
+
def handle_cookie_popup=: (bool) -> bool
|
|
57
60
|
|
|
58
61
|
attr_accessor max_age_ms: Integer?
|
|
59
62
|
|
|
@@ -88,12 +91,13 @@ module ContextDev
|
|
|
88
91
|
) -> ContextDev::Models::WebScreenshotParams::zdr
|
|
89
92
|
|
|
90
93
|
def initialize: (
|
|
94
|
+
?clear_popups: bool,
|
|
91
95
|
?color_scheme: ContextDev::Models::WebScreenshotParams::color_scheme,
|
|
92
96
|
?country: ContextDev::Models::WebScreenshotParams::country,
|
|
93
97
|
?direct_url: String,
|
|
94
98
|
?domain: String,
|
|
95
99
|
?full_screenshot: ContextDev::Models::WebScreenshotParams::full_screenshot,
|
|
96
|
-
?handle_cookie_popup:
|
|
100
|
+
?handle_cookie_popup: bool,
|
|
97
101
|
?max_age_ms: Integer?,
|
|
98
102
|
?page: ContextDev::Models::WebScreenshotParams::page,
|
|
99
103
|
?scroll_offset: Integer?,
|
|
@@ -106,12 +110,13 @@ module ContextDev
|
|
|
106
110
|
) -> void
|
|
107
111
|
|
|
108
112
|
def to_hash: -> {
|
|
113
|
+
clear_popups: bool,
|
|
109
114
|
color_scheme: ContextDev::Models::WebScreenshotParams::color_scheme,
|
|
110
115
|
country: ContextDev::Models::WebScreenshotParams::country,
|
|
111
116
|
direct_url: String,
|
|
112
117
|
domain: String,
|
|
113
118
|
full_screenshot: ContextDev::Models::WebScreenshotParams::full_screenshot,
|
|
114
|
-
handle_cookie_popup:
|
|
119
|
+
handle_cookie_popup: bool,
|
|
115
120
|
max_age_ms: Integer?,
|
|
116
121
|
page: ContextDev::Models::WebScreenshotParams::page,
|
|
117
122
|
scroll_offset: Integer?,
|
|
@@ -562,17 +567,6 @@ module ContextDev
|
|
|
562
567
|
def self?.values: -> ::Array[ContextDev::Models::WebScreenshotParams::full_screenshot]
|
|
563
568
|
end
|
|
564
569
|
|
|
565
|
-
type handle_cookie_popup = bool | :true | :false
|
|
566
|
-
|
|
567
|
-
module HandleCookiePopup
|
|
568
|
-
extend ContextDev::Internal::Type::Union
|
|
569
|
-
|
|
570
|
-
def self?.variants: -> ::Array[ContextDev::Models::WebScreenshotParams::handle_cookie_popup]
|
|
571
|
-
|
|
572
|
-
TRUE: :true
|
|
573
|
-
FALSE: :false
|
|
574
|
-
end
|
|
575
|
-
|
|
576
570
|
type page =
|
|
577
571
|
:login
|
|
578
572
|
| :signup
|
|
@@ -103,6 +103,7 @@ module ContextDev
|
|
|
103
103
|
canonical_url: String,
|
|
104
104
|
description: String,
|
|
105
105
|
favicon: String,
|
|
106
|
+
headings: ::Array[ContextDev::Models::WebWebCrawlMdResponse::Result::Metadata::Heading],
|
|
106
107
|
image: String,
|
|
107
108
|
json_ld: ::Array[::Hash[Symbol, top]],
|
|
108
109
|
keywords: ::Array[String],
|
|
@@ -158,6 +159,12 @@ module ContextDev
|
|
|
158
159
|
|
|
159
160
|
def favicon=: (String) -> String
|
|
160
161
|
|
|
162
|
+
attr_reader headings: ::Array[ContextDev::Models::WebWebCrawlMdResponse::Result::Metadata::Heading]?
|
|
163
|
+
|
|
164
|
+
def headings=: (
|
|
165
|
+
::Array[ContextDev::Models::WebWebCrawlMdResponse::Result::Metadata::Heading]
|
|
166
|
+
) -> ::Array[ContextDev::Models::WebWebCrawlMdResponse::Result::Metadata::Heading]
|
|
167
|
+
|
|
161
168
|
attr_reader image: String?
|
|
162
169
|
|
|
163
170
|
def image=: (String) -> String
|
|
@@ -218,6 +225,7 @@ module ContextDev
|
|
|
218
225
|
?canonical_url: String,
|
|
219
226
|
?description: String,
|
|
220
227
|
?favicon: String,
|
|
228
|
+
?headings: ::Array[ContextDev::Models::WebWebCrawlMdResponse::Result::Metadata::Heading],
|
|
221
229
|
?image: String,
|
|
222
230
|
?json_ld: ::Array[::Hash[Symbol, top]],
|
|
223
231
|
?keywords: ::Array[String],
|
|
@@ -244,6 +252,7 @@ module ContextDev
|
|
|
244
252
|
canonical_url: String,
|
|
245
253
|
description: String,
|
|
246
254
|
favicon: String,
|
|
255
|
+
headings: ::Array[ContextDev::Models::WebWebCrawlMdResponse::Result::Metadata::Heading],
|
|
247
256
|
image: String,
|
|
248
257
|
json_ld: ::Array[::Hash[Symbol, top]],
|
|
249
258
|
keywords: ::Array[String],
|
|
@@ -299,6 +308,18 @@ module ContextDev
|
|
|
299
308
|
}
|
|
300
309
|
end
|
|
301
310
|
|
|
311
|
+
type heading = { level: Integer, text: String }
|
|
312
|
+
|
|
313
|
+
class Heading < ContextDev::Internal::Type::BaseModel
|
|
314
|
+
attr_accessor level: Integer
|
|
315
|
+
|
|
316
|
+
attr_accessor text: String
|
|
317
|
+
|
|
318
|
+
def initialize: (level: Integer, text: String) -> void
|
|
319
|
+
|
|
320
|
+
def to_hash: -> { level: Integer, text: String }
|
|
321
|
+
end
|
|
322
|
+
|
|
302
323
|
type open_graph = String | ::Array[String]
|
|
303
324
|
|
|
304
325
|
module OpenGraph
|