context.dev 2.17.0 → 2.18.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 +22 -0
- data/README.md +1 -1
- data/lib/context_dev/models/ai_extract_product_params.rb +28 -1
- data/lib/context_dev/models/ai_extract_product_response.rb +51 -1
- data/lib/context_dev/models/ai_extract_products_response.rb +51 -1
- data/lib/context_dev/models/brand_retrieve_response.rb +65 -65
- data/lib/context_dev/models/brand_retrieve_simplified_response.rb +66 -66
- data/lib/context_dev/models/industry_retrieve_naics_params.rb +28 -1
- data/lib/context_dev/models/industry_retrieve_sic_params.rb +28 -1
- data/lib/context_dev/models/parse_handle_params.rb +8 -6
- data/lib/context_dev/models/person_enrich_params.rb +28 -1
- data/lib/context_dev/models/web_answers_params.rb +28 -1
- data/lib/context_dev/models/web_extract_competitors_params.rb +28 -1
- data/lib/context_dev/models/web_extract_fonts_params.rb +2 -2
- data/lib/context_dev/models/web_extract_params.rb +28 -1
- data/lib/context_dev/models/web_extract_styleguide_params.rb +30 -3
- data/lib/context_dev/models/web_screenshot_params.rb +10 -8
- data/lib/context_dev/models/web_search_params.rb +30 -3
- data/lib/context_dev/models/web_search_response.rb +6 -2
- data/lib/context_dev/models/web_web_scrape_bytes_params.rb +8 -6
- data/lib/context_dev/models/web_web_scrape_html_params.rb +188 -9
- data/lib/context_dev/models/web_web_scrape_html_response.rb +41 -1
- data/lib/context_dev/models/web_web_scrape_images_params.rb +31 -4
- data/lib/context_dev/models/web_web_scrape_md_params.rb +10 -8
- data/lib/context_dev/models/web_web_scrape_screenshot_params.rb +471 -0
- data/lib/context_dev/models/web_web_scrape_screenshot_response.rb +169 -0
- data/lib/context_dev/models/web_web_scrape_sitemap_params.rb +8 -6
- data/lib/context_dev/models.rb +2 -0
- data/lib/context_dev/resources/ai.rb +3 -1
- data/lib/context_dev/resources/industry.rb +6 -2
- data/lib/context_dev/resources/people.rb +3 -1
- data/lib/context_dev/resources/web.rb +96 -13
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +2 -0
- data/rbi/context_dev/models/ai_extract_product_params.rbi +54 -0
- data/rbi/context_dev/models/ai_extract_product_response.rbi +98 -3
- data/rbi/context_dev/models/ai_extract_products_response.rbi +98 -3
- data/rbi/context_dev/models/brand_retrieve_response.rbi +128 -136
- data/rbi/context_dev/models/brand_retrieve_simplified_response.rbi +132 -140
- data/rbi/context_dev/models/industry_retrieve_naics_params.rbi +59 -0
- data/rbi/context_dev/models/industry_retrieve_sic_params.rbi +57 -0
- data/rbi/context_dev/models/parse_handle_params.rbi +12 -9
- data/rbi/context_dev/models/person_enrich_params.rbi +45 -0
- data/rbi/context_dev/models/web_answers_params.rbi +45 -0
- data/rbi/context_dev/models/web_extract_competitors_params.rbi +59 -0
- data/rbi/context_dev/models/web_extract_fonts_params.rbi +3 -3
- data/rbi/context_dev/models/web_extract_params.rbi +45 -0
- data/rbi/context_dev/models/web_extract_styleguide_params.rbi +62 -3
- data/rbi/context_dev/models/web_screenshot_params.rbi +15 -12
- data/rbi/context_dev/models/web_search_params.rbi +48 -3
- data/rbi/context_dev/models/web_search_response.rbi +4 -2
- data/rbi/context_dev/models/web_web_scrape_bytes_params.rbi +12 -9
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +485 -12
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +103 -0
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +62 -5
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -12
- data/rbi/context_dev/models/web_web_scrape_screenshot_params.rbi +1580 -0
- data/rbi/context_dev/models/web_web_scrape_screenshot_response.rbi +332 -0
- data/rbi/context_dev/models/web_web_scrape_sitemap_params.rbi +12 -9
- data/rbi/context_dev/models.rbi +3 -0
- data/rbi/context_dev/resources/ai.rbi +7 -0
- data/rbi/context_dev/resources/industry.rbi +14 -0
- data/rbi/context_dev/resources/parse.rbi +4 -4
- data/rbi/context_dev/resources/people.rbi +7 -0
- data/rbi/context_dev/resources/web.rbi +173 -21
- data/sig/context_dev/models/ai_extract_product_params.rbs +21 -1
- data/sig/context_dev/models/ai_extract_product_response.rbs +44 -3
- data/sig/context_dev/models/ai_extract_products_response.rbs +44 -3
- data/sig/context_dev/models/brand_retrieve_response.rbs +51 -59
- data/sig/context_dev/models/brand_retrieve_simplified_response.rbs +51 -59
- data/sig/context_dev/models/industry_retrieve_naics_params.rbs +21 -1
- data/sig/context_dev/models/industry_retrieve_sic_params.rbs +21 -1
- data/sig/context_dev/models/person_enrich_params.rbs +21 -1
- data/sig/context_dev/models/web_answers_params.rbs +21 -1
- data/sig/context_dev/models/web_extract_competitors_params.rbs +21 -1
- data/sig/context_dev/models/web_extract_params.rbs +21 -1
- data/sig/context_dev/models/web_extract_styleguide_params.rbs +21 -1
- data/sig/context_dev/models/web_search_params.rbs +21 -1
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +148 -0
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +30 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +21 -1
- data/sig/context_dev/models/web_web_scrape_screenshot_params.rbs +619 -0
- data/sig/context_dev/models/web_web_scrape_screenshot_response.rbs +127 -0
- data/sig/context_dev/models.rbs +2 -0
- data/sig/context_dev/resources/ai.rbs +1 -0
- data/sig/context_dev/resources/industry.rbs +2 -0
- data/sig/context_dev/resources/people.rbs +1 -0
- data/sig/context_dev/resources/web.rbs +24 -0
- metadata +8 -2
|
@@ -59,6 +59,23 @@ module ContextDev
|
|
|
59
59
|
end
|
|
60
60
|
attr_writer :timeout_opts
|
|
61
61
|
|
|
62
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
63
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
64
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
65
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
66
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
67
|
+
sig do
|
|
68
|
+
returns(
|
|
69
|
+
T.nilable(ContextDev::IndustryRetrieveNaicsParams::Zdr::OrSymbol)
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
attr_reader :zdr
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
params(zdr: ContextDev::IndustryRetrieveNaicsParams::Zdr::OrSymbol).void
|
|
76
|
+
end
|
|
77
|
+
attr_writer :zdr
|
|
78
|
+
|
|
62
79
|
sig do
|
|
63
80
|
params(
|
|
64
81
|
input: String,
|
|
@@ -67,6 +84,7 @@ module ContextDev
|
|
|
67
84
|
tags: T::Array[String],
|
|
68
85
|
timeout_opts:
|
|
69
86
|
ContextDev::IndustryRetrieveNaicsParams::TimeoutOpts::OrHash,
|
|
87
|
+
zdr: ContextDev::IndustryRetrieveNaicsParams::Zdr::OrSymbol,
|
|
70
88
|
request_options: ContextDev::RequestOptions::OrHash
|
|
71
89
|
).returns(T.attached_class)
|
|
72
90
|
end
|
|
@@ -87,6 +105,12 @@ module ContextDev
|
|
|
87
105
|
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
88
106
|
# timeoutOpts object.
|
|
89
107
|
timeout_opts: nil,
|
|
108
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
109
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
110
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
111
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
112
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
113
|
+
zdr: nil,
|
|
90
114
|
request_options: {}
|
|
91
115
|
)
|
|
92
116
|
end
|
|
@@ -99,6 +123,7 @@ module ContextDev
|
|
|
99
123
|
min_results: Integer,
|
|
100
124
|
tags: T::Array[String],
|
|
101
125
|
timeout_opts: ContextDev::IndustryRetrieveNaicsParams::TimeoutOpts,
|
|
126
|
+
zdr: ContextDev::IndustryRetrieveNaicsParams::Zdr::OrSymbol,
|
|
102
127
|
request_options: ContextDev::RequestOptions
|
|
103
128
|
}
|
|
104
129
|
)
|
|
@@ -211,6 +236,40 @@ module ContextDev
|
|
|
211
236
|
end
|
|
212
237
|
end
|
|
213
238
|
end
|
|
239
|
+
|
|
240
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
241
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
242
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
243
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
244
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
245
|
+
module Zdr
|
|
246
|
+
extend ContextDev::Internal::Type::Enum
|
|
247
|
+
|
|
248
|
+
TaggedSymbol =
|
|
249
|
+
T.type_alias do
|
|
250
|
+
T.all(Symbol, ContextDev::IndustryRetrieveNaicsParams::Zdr)
|
|
251
|
+
end
|
|
252
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
253
|
+
|
|
254
|
+
ENABLED =
|
|
255
|
+
T.let(
|
|
256
|
+
:enabled,
|
|
257
|
+
ContextDev::IndustryRetrieveNaicsParams::Zdr::TaggedSymbol
|
|
258
|
+
)
|
|
259
|
+
DISABLED =
|
|
260
|
+
T.let(
|
|
261
|
+
:disabled,
|
|
262
|
+
ContextDev::IndustryRetrieveNaicsParams::Zdr::TaggedSymbol
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
sig do
|
|
266
|
+
override.returns(
|
|
267
|
+
T::Array[ContextDev::IndustryRetrieveNaicsParams::Zdr::TaggedSymbol]
|
|
268
|
+
)
|
|
269
|
+
end
|
|
270
|
+
def self.values
|
|
271
|
+
end
|
|
272
|
+
end
|
|
214
273
|
end
|
|
215
274
|
end
|
|
216
275
|
end
|
|
@@ -73,6 +73,21 @@ module ContextDev
|
|
|
73
73
|
end
|
|
74
74
|
attr_writer :type
|
|
75
75
|
|
|
76
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
77
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
78
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
79
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
80
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
81
|
+
sig do
|
|
82
|
+
returns(T.nilable(ContextDev::IndustryRetrieveSicParams::Zdr::OrSymbol))
|
|
83
|
+
end
|
|
84
|
+
attr_reader :zdr
|
|
85
|
+
|
|
86
|
+
sig do
|
|
87
|
+
params(zdr: ContextDev::IndustryRetrieveSicParams::Zdr::OrSymbol).void
|
|
88
|
+
end
|
|
89
|
+
attr_writer :zdr
|
|
90
|
+
|
|
76
91
|
sig do
|
|
77
92
|
params(
|
|
78
93
|
input: String,
|
|
@@ -82,6 +97,7 @@ module ContextDev
|
|
|
82
97
|
timeout_opts:
|
|
83
98
|
ContextDev::IndustryRetrieveSicParams::TimeoutOpts::OrHash,
|
|
84
99
|
type: ContextDev::IndustryRetrieveSicParams::Type::OrSymbol,
|
|
100
|
+
zdr: ContextDev::IndustryRetrieveSicParams::Zdr::OrSymbol,
|
|
85
101
|
request_options: ContextDev::RequestOptions::OrHash
|
|
86
102
|
).returns(T.attached_class)
|
|
87
103
|
end
|
|
@@ -105,6 +121,12 @@ module ContextDev
|
|
|
105
121
|
# Industrial Classification system; `latest_sec` uses the current SIC list as
|
|
106
122
|
# published by the SEC. Defaults to `original_sic`.
|
|
107
123
|
type: nil,
|
|
124
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
125
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
126
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
127
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
128
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
129
|
+
zdr: nil,
|
|
108
130
|
request_options: {}
|
|
109
131
|
)
|
|
110
132
|
end
|
|
@@ -118,6 +140,7 @@ module ContextDev
|
|
|
118
140
|
tags: T::Array[String],
|
|
119
141
|
timeout_opts: ContextDev::IndustryRetrieveSicParams::TimeoutOpts,
|
|
120
142
|
type: ContextDev::IndustryRetrieveSicParams::Type::OrSymbol,
|
|
143
|
+
zdr: ContextDev::IndustryRetrieveSicParams::Zdr::OrSymbol,
|
|
121
144
|
request_options: ContextDev::RequestOptions
|
|
122
145
|
}
|
|
123
146
|
)
|
|
@@ -262,6 +285,40 @@ module ContextDev
|
|
|
262
285
|
def self.values
|
|
263
286
|
end
|
|
264
287
|
end
|
|
288
|
+
|
|
289
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
290
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
291
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
292
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
293
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
294
|
+
module Zdr
|
|
295
|
+
extend ContextDev::Internal::Type::Enum
|
|
296
|
+
|
|
297
|
+
TaggedSymbol =
|
|
298
|
+
T.type_alias do
|
|
299
|
+
T.all(Symbol, ContextDev::IndustryRetrieveSicParams::Zdr)
|
|
300
|
+
end
|
|
301
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
302
|
+
|
|
303
|
+
ENABLED =
|
|
304
|
+
T.let(
|
|
305
|
+
:enabled,
|
|
306
|
+
ContextDev::IndustryRetrieveSicParams::Zdr::TaggedSymbol
|
|
307
|
+
)
|
|
308
|
+
DISABLED =
|
|
309
|
+
T.let(
|
|
310
|
+
:disabled,
|
|
311
|
+
ContextDev::IndustryRetrieveSicParams::Zdr::TaggedSymbol
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
sig do
|
|
315
|
+
override.returns(
|
|
316
|
+
T::Array[ContextDev::IndustryRetrieveSicParams::Zdr::TaggedSymbol]
|
|
317
|
+
)
|
|
318
|
+
end
|
|
319
|
+
def self.values
|
|
320
|
+
end
|
|
321
|
+
end
|
|
265
322
|
end
|
|
266
323
|
end
|
|
267
324
|
end
|
|
@@ -90,9 +90,10 @@ module ContextDev
|
|
|
90
90
|
attr_writer :use_main_content_only
|
|
91
91
|
|
|
92
92
|
# Set to enabled to bypass shared caches and omit request and response content
|
|
93
|
-
# from retained usage logs.
|
|
94
|
-
#
|
|
95
|
-
#
|
|
93
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
94
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
95
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
96
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
96
97
|
sig { returns(T.nilable(ContextDev::ParseHandleParams::Zdr::OrSymbol)) }
|
|
97
98
|
attr_reader :zdr
|
|
98
99
|
|
|
@@ -142,9 +143,10 @@ module ContextDev
|
|
|
142
143
|
# Extract only the main content from HTML-like inputs
|
|
143
144
|
use_main_content_only: nil,
|
|
144
145
|
# Set to enabled to bypass shared caches and omit request and response content
|
|
145
|
-
# from retained usage logs.
|
|
146
|
-
#
|
|
147
|
-
#
|
|
146
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
147
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
148
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
149
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
148
150
|
zdr: nil,
|
|
149
151
|
request_options: {}
|
|
150
152
|
)
|
|
@@ -370,9 +372,10 @@ module ContextDev
|
|
|
370
372
|
end
|
|
371
373
|
|
|
372
374
|
# Set to enabled to bypass shared caches and omit request and response content
|
|
373
|
-
# from retained usage logs.
|
|
374
|
-
#
|
|
375
|
-
#
|
|
375
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
376
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
377
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
378
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
376
379
|
module Zdr
|
|
377
380
|
extend ContextDev::Internal::Type::Enum
|
|
378
381
|
|
|
@@ -77,6 +77,17 @@ module ContextDev
|
|
|
77
77
|
end
|
|
78
78
|
attr_writer :timeout_opts
|
|
79
79
|
|
|
80
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
81
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
82
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
83
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
84
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
85
|
+
sig { returns(T.nilable(ContextDev::PersonEnrichParams::Zdr::OrSymbol)) }
|
|
86
|
+
attr_reader :zdr
|
|
87
|
+
|
|
88
|
+
sig { params(zdr: ContextDev::PersonEnrichParams::Zdr::OrSymbol).void }
|
|
89
|
+
attr_writer :zdr
|
|
90
|
+
|
|
80
91
|
sig do
|
|
81
92
|
params(
|
|
82
93
|
company: ContextDev::PersonEnrichParams::Company::OrHash,
|
|
@@ -88,6 +99,7 @@ module ContextDev
|
|
|
88
99
|
social_urls: T::Array[String],
|
|
89
100
|
tags: T::Array[String],
|
|
90
101
|
timeout_opts: ContextDev::PersonEnrichParams::TimeoutOpts::OrHash,
|
|
102
|
+
zdr: ContextDev::PersonEnrichParams::Zdr::OrSymbol,
|
|
91
103
|
request_options: ContextDev::RequestOptions::OrHash
|
|
92
104
|
).returns(T.attached_class)
|
|
93
105
|
end
|
|
@@ -104,6 +116,12 @@ module ContextDev
|
|
|
104
116
|
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
105
117
|
# timeoutOpts object.
|
|
106
118
|
timeout_opts: nil,
|
|
119
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
120
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
121
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
122
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
123
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
124
|
+
zdr: nil,
|
|
107
125
|
request_options: {}
|
|
108
126
|
)
|
|
109
127
|
end
|
|
@@ -119,6 +137,7 @@ module ContextDev
|
|
|
119
137
|
social_urls: T::Array[String],
|
|
120
138
|
tags: T::Array[String],
|
|
121
139
|
timeout_opts: ContextDev::PersonEnrichParams::TimeoutOpts,
|
|
140
|
+
zdr: ContextDev::PersonEnrichParams::Zdr::OrSymbol,
|
|
122
141
|
request_options: ContextDev::RequestOptions
|
|
123
142
|
}
|
|
124
143
|
)
|
|
@@ -437,6 +456,32 @@ module ContextDev
|
|
|
437
456
|
end
|
|
438
457
|
end
|
|
439
458
|
end
|
|
459
|
+
|
|
460
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
461
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
462
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
463
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
464
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
465
|
+
module Zdr
|
|
466
|
+
extend ContextDev::Internal::Type::Enum
|
|
467
|
+
|
|
468
|
+
TaggedSymbol =
|
|
469
|
+
T.type_alias { T.all(Symbol, ContextDev::PersonEnrichParams::Zdr) }
|
|
470
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
471
|
+
|
|
472
|
+
ENABLED =
|
|
473
|
+
T.let(:enabled, ContextDev::PersonEnrichParams::Zdr::TaggedSymbol)
|
|
474
|
+
DISABLED =
|
|
475
|
+
T.let(:disabled, ContextDev::PersonEnrichParams::Zdr::TaggedSymbol)
|
|
476
|
+
|
|
477
|
+
sig do
|
|
478
|
+
override.returns(
|
|
479
|
+
T::Array[ContextDev::PersonEnrichParams::Zdr::TaggedSymbol]
|
|
480
|
+
)
|
|
481
|
+
end
|
|
482
|
+
def self.values
|
|
483
|
+
end
|
|
484
|
+
end
|
|
440
485
|
end
|
|
441
486
|
end
|
|
442
487
|
end
|
|
@@ -56,6 +56,17 @@ module ContextDev
|
|
|
56
56
|
end
|
|
57
57
|
attr_writer :timeout_opts
|
|
58
58
|
|
|
59
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
60
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
61
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
62
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
63
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
64
|
+
sig { returns(T.nilable(ContextDev::WebAnswersParams::Zdr::OrSymbol)) }
|
|
65
|
+
attr_reader :zdr
|
|
66
|
+
|
|
67
|
+
sig { params(zdr: ContextDev::WebAnswersParams::Zdr::OrSymbol).void }
|
|
68
|
+
attr_writer :zdr
|
|
69
|
+
|
|
59
70
|
sig do
|
|
60
71
|
params(
|
|
61
72
|
task: String,
|
|
@@ -63,6 +74,7 @@ module ContextDev
|
|
|
63
74
|
mode: ContextDev::WebAnswersParams::Mode::OrSymbol,
|
|
64
75
|
tags: T::Array[String],
|
|
65
76
|
timeout_opts: ContextDev::WebAnswersParams::TimeoutOpts::OrHash,
|
|
77
|
+
zdr: ContextDev::WebAnswersParams::Zdr::OrSymbol,
|
|
66
78
|
request_options: ContextDev::RequestOptions::OrHash
|
|
67
79
|
).returns(T.attached_class)
|
|
68
80
|
end
|
|
@@ -86,6 +98,12 @@ module ContextDev
|
|
|
86
98
|
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
87
99
|
# timeoutOpts object.
|
|
88
100
|
timeout_opts: nil,
|
|
101
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
102
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
103
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
104
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
105
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
106
|
+
zdr: nil,
|
|
89
107
|
request_options: {}
|
|
90
108
|
)
|
|
91
109
|
end
|
|
@@ -98,6 +116,7 @@ module ContextDev
|
|
|
98
116
|
mode: ContextDev::WebAnswersParams::Mode::OrSymbol,
|
|
99
117
|
tags: T::Array[String],
|
|
100
118
|
timeout_opts: ContextDev::WebAnswersParams::TimeoutOpts,
|
|
119
|
+
zdr: ContextDev::WebAnswersParams::Zdr::OrSymbol,
|
|
101
120
|
request_options: ContextDev::RequestOptions
|
|
102
121
|
}
|
|
103
122
|
)
|
|
@@ -229,6 +248,32 @@ module ContextDev
|
|
|
229
248
|
end
|
|
230
249
|
end
|
|
231
250
|
end
|
|
251
|
+
|
|
252
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
253
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
254
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
255
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
256
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
257
|
+
module Zdr
|
|
258
|
+
extend ContextDev::Internal::Type::Enum
|
|
259
|
+
|
|
260
|
+
TaggedSymbol =
|
|
261
|
+
T.type_alias { T.all(Symbol, ContextDev::WebAnswersParams::Zdr) }
|
|
262
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
263
|
+
|
|
264
|
+
ENABLED =
|
|
265
|
+
T.let(:enabled, ContextDev::WebAnswersParams::Zdr::TaggedSymbol)
|
|
266
|
+
DISABLED =
|
|
267
|
+
T.let(:disabled, ContextDev::WebAnswersParams::Zdr::TaggedSymbol)
|
|
268
|
+
|
|
269
|
+
sig do
|
|
270
|
+
override.returns(
|
|
271
|
+
T::Array[ContextDev::WebAnswersParams::Zdr::TaggedSymbol]
|
|
272
|
+
)
|
|
273
|
+
end
|
|
274
|
+
def self.values
|
|
275
|
+
end
|
|
276
|
+
end
|
|
232
277
|
end
|
|
233
278
|
end
|
|
234
279
|
end
|
|
@@ -50,6 +50,23 @@ module ContextDev
|
|
|
50
50
|
end
|
|
51
51
|
attr_writer :timeout_opts
|
|
52
52
|
|
|
53
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
54
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
55
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
56
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
57
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
58
|
+
sig do
|
|
59
|
+
returns(
|
|
60
|
+
T.nilable(ContextDev::WebExtractCompetitorsParams::Zdr::OrSymbol)
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
attr_reader :zdr
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
params(zdr: ContextDev::WebExtractCompetitorsParams::Zdr::OrSymbol).void
|
|
67
|
+
end
|
|
68
|
+
attr_writer :zdr
|
|
69
|
+
|
|
53
70
|
sig do
|
|
54
71
|
params(
|
|
55
72
|
domain: String,
|
|
@@ -57,6 +74,7 @@ module ContextDev
|
|
|
57
74
|
tags: T::Array[String],
|
|
58
75
|
timeout_opts:
|
|
59
76
|
ContextDev::WebExtractCompetitorsParams::TimeoutOpts::OrHash,
|
|
77
|
+
zdr: ContextDev::WebExtractCompetitorsParams::Zdr::OrSymbol,
|
|
60
78
|
request_options: ContextDev::RequestOptions::OrHash
|
|
61
79
|
).returns(T.attached_class)
|
|
62
80
|
end
|
|
@@ -73,6 +91,12 @@ module ContextDev
|
|
|
73
91
|
# timeoutOpts[milliseconds]=30000&timeoutOpts[behavior]=fail or a JSON-encoded
|
|
74
92
|
# timeoutOpts object.
|
|
75
93
|
timeout_opts: nil,
|
|
94
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
95
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
96
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
97
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
98
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
99
|
+
zdr: nil,
|
|
76
100
|
request_options: {}
|
|
77
101
|
)
|
|
78
102
|
end
|
|
@@ -84,6 +108,7 @@ module ContextDev
|
|
|
84
108
|
num_competitors: Integer,
|
|
85
109
|
tags: T::Array[String],
|
|
86
110
|
timeout_opts: ContextDev::WebExtractCompetitorsParams::TimeoutOpts,
|
|
111
|
+
zdr: ContextDev::WebExtractCompetitorsParams::Zdr::OrSymbol,
|
|
87
112
|
request_options: ContextDev::RequestOptions
|
|
88
113
|
}
|
|
89
114
|
)
|
|
@@ -196,6 +221,40 @@ module ContextDev
|
|
|
196
221
|
end
|
|
197
222
|
end
|
|
198
223
|
end
|
|
224
|
+
|
|
225
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
226
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
227
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
228
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
229
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
230
|
+
module Zdr
|
|
231
|
+
extend ContextDev::Internal::Type::Enum
|
|
232
|
+
|
|
233
|
+
TaggedSymbol =
|
|
234
|
+
T.type_alias do
|
|
235
|
+
T.all(Symbol, ContextDev::WebExtractCompetitorsParams::Zdr)
|
|
236
|
+
end
|
|
237
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
238
|
+
|
|
239
|
+
ENABLED =
|
|
240
|
+
T.let(
|
|
241
|
+
:enabled,
|
|
242
|
+
ContextDev::WebExtractCompetitorsParams::Zdr::TaggedSymbol
|
|
243
|
+
)
|
|
244
|
+
DISABLED =
|
|
245
|
+
T.let(
|
|
246
|
+
:disabled,
|
|
247
|
+
ContextDev::WebExtractCompetitorsParams::Zdr::TaggedSymbol
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
sig do
|
|
251
|
+
override.returns(
|
|
252
|
+
T::Array[ContextDev::WebExtractCompetitorsParams::Zdr::TaggedSymbol]
|
|
253
|
+
)
|
|
254
|
+
end
|
|
255
|
+
def self.values
|
|
256
|
+
end
|
|
257
|
+
end
|
|
199
258
|
end
|
|
200
259
|
end
|
|
201
260
|
end
|
|
@@ -127,7 +127,7 @@ module ContextDev
|
|
|
127
127
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
128
128
|
# available, the request still fails without charging credits. Partial results are
|
|
129
129
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
130
|
-
# least
|
|
130
|
+
# least 5000.
|
|
131
131
|
sig do
|
|
132
132
|
returns(
|
|
133
133
|
T.nilable(
|
|
@@ -162,7 +162,7 @@ module ContextDev
|
|
|
162
162
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
163
163
|
# available, the request still fails without charging credits. Partial results are
|
|
164
164
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
165
|
-
# least
|
|
165
|
+
# least 5000.
|
|
166
166
|
behavior: nil
|
|
167
167
|
)
|
|
168
168
|
end
|
|
@@ -183,7 +183,7 @@ module ContextDev
|
|
|
183
183
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
184
184
|
# available, the request still fails without charging credits. Partial results are
|
|
185
185
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
186
|
-
# least
|
|
186
|
+
# least 5000.
|
|
187
187
|
module Behavior
|
|
188
188
|
extend ContextDev::Internal::Type::Enum
|
|
189
189
|
|
|
@@ -166,6 +166,17 @@ module ContextDev
|
|
|
166
166
|
sig { params(wait_for_ms: Integer).void }
|
|
167
167
|
attr_writer :wait_for_ms
|
|
168
168
|
|
|
169
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
170
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
171
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
172
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
173
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
174
|
+
sig { returns(T.nilable(ContextDev::WebExtractParams::Zdr::OrSymbol)) }
|
|
175
|
+
attr_reader :zdr
|
|
176
|
+
|
|
177
|
+
sig { params(zdr: ContextDev::WebExtractParams::Zdr::OrSymbol).void }
|
|
178
|
+
attr_writer :zdr
|
|
179
|
+
|
|
169
180
|
sig do
|
|
170
181
|
params(
|
|
171
182
|
schema: T::Hash[Symbol, T.anything],
|
|
@@ -191,6 +202,7 @@ module ContextDev
|
|
|
191
202
|
tags: T::Array[String],
|
|
192
203
|
timeout_opts: ContextDev::WebExtractParams::TimeoutOpts::OrHash,
|
|
193
204
|
wait_for_ms: Integer,
|
|
205
|
+
zdr: ContextDev::WebExtractParams::Zdr::OrSymbol,
|
|
194
206
|
request_options: ContextDev::RequestOptions::OrHash
|
|
195
207
|
).returns(T.attached_class)
|
|
196
208
|
end
|
|
@@ -249,6 +261,12 @@ module ContextDev
|
|
|
249
261
|
# Optional browser wait time in milliseconds after initial page load for each
|
|
250
262
|
# crawled page.
|
|
251
263
|
wait_for_ms: nil,
|
|
264
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
265
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
266
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
267
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
268
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
269
|
+
zdr: nil,
|
|
252
270
|
request_options: {}
|
|
253
271
|
)
|
|
254
272
|
end
|
|
@@ -279,6 +297,7 @@ module ContextDev
|
|
|
279
297
|
tags: T::Array[String],
|
|
280
298
|
timeout_opts: ContextDev::WebExtractParams::TimeoutOpts,
|
|
281
299
|
wait_for_ms: Integer,
|
|
300
|
+
zdr: ContextDev::WebExtractParams::Zdr::OrSymbol,
|
|
282
301
|
request_options: ContextDev::RequestOptions
|
|
283
302
|
}
|
|
284
303
|
)
|
|
@@ -731,6 +750,32 @@ module ContextDev
|
|
|
731
750
|
end
|
|
732
751
|
end
|
|
733
752
|
end
|
|
753
|
+
|
|
754
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
755
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
756
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
757
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
758
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
759
|
+
module Zdr
|
|
760
|
+
extend ContextDev::Internal::Type::Enum
|
|
761
|
+
|
|
762
|
+
TaggedSymbol =
|
|
763
|
+
T.type_alias { T.all(Symbol, ContextDev::WebExtractParams::Zdr) }
|
|
764
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
765
|
+
|
|
766
|
+
ENABLED =
|
|
767
|
+
T.let(:enabled, ContextDev::WebExtractParams::Zdr::TaggedSymbol)
|
|
768
|
+
DISABLED =
|
|
769
|
+
T.let(:disabled, ContextDev::WebExtractParams::Zdr::TaggedSymbol)
|
|
770
|
+
|
|
771
|
+
sig do
|
|
772
|
+
override.returns(
|
|
773
|
+
T::Array[ContextDev::WebExtractParams::Zdr::TaggedSymbol]
|
|
774
|
+
)
|
|
775
|
+
end
|
|
776
|
+
def self.values
|
|
777
|
+
end
|
|
778
|
+
end
|
|
734
779
|
end
|
|
735
780
|
end
|
|
736
781
|
end
|