context.dev 2.17.1 → 2.19.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 +33 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +0 -4
- 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/monitor_retrieve_run_params.rb +26 -0
- data/lib/context_dev/models/monitor_retrieve_run_response.rb +232 -0
- data/lib/context_dev/models/monitor_rotate_webhook_secret_params.rb +20 -0
- data/lib/context_dev/models/monitor_rotate_webhook_secret_response.rb +765 -0
- 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_styleguide_params.rb +30 -3
- data/lib/context_dev/models/{web_web_scrape_sitemap_params.rb → web_map_urls_params.rb} +22 -20
- data/lib/context_dev/models/web_map_urls_response.rb +123 -0
- data/lib/context_dev/models/web_scrape_params.rb +906 -0
- data/lib/context_dev/models/web_scrape_response.rb +659 -0
- data/lib/context_dev/models/web_screenshot_params.rb +25 -9
- data/lib/context_dev/models/web_screenshot_response.rb +3 -3
- data/lib/context_dev/models/web_search_params.rb +30 -3
- data/lib/context_dev/models.rb +8 -20
- data/lib/context_dev/resources/brand.rb +0 -36
- data/lib/context_dev/resources/industry.rb +6 -2
- data/lib/context_dev/resources/monitors.rb +47 -0
- data/lib/context_dev/resources/people.rb +3 -1
- data/lib/context_dev/resources/web.rb +116 -413
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +8 -21
- data/rbi/context_dev/client.rbi +0 -3
- 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/monitor_retrieve_run_params.rbi +46 -0
- data/rbi/context_dev/models/monitor_retrieve_run_response.rbi +452 -0
- data/rbi/context_dev/models/monitor_rotate_webhook_secret_params.rbi +38 -0
- data/rbi/context_dev/models/monitor_rotate_webhook_secret_response.rbi +1367 -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_styleguide_params.rbi +62 -3
- data/rbi/context_dev/models/{web_web_scrape_sitemap_params.rbi → web_map_urls_params.rbi} +35 -54
- data/rbi/context_dev/models/web_map_urls_response.rbi +226 -0
- data/rbi/context_dev/models/web_scrape_params.rbi +2000 -0
- data/rbi/context_dev/models/{web_web_scrape_html_response.rbi → web_scrape_response.rbi} +550 -418
- data/rbi/context_dev/models/web_screenshot_params.rbi +38 -12
- data/rbi/context_dev/models/web_screenshot_response.rbi +4 -4
- data/rbi/context_dev/models/web_search_params.rbi +48 -3
- data/rbi/context_dev/models.rbi +9 -21
- data/rbi/context_dev/resources/brand.rbi +0 -35
- data/rbi/context_dev/resources/industry.rbi +14 -0
- data/rbi/context_dev/resources/monitors.rbi +24 -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 +166 -533
- data/sig/context_dev/client.rbs +0 -2
- 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/monitor_retrieve_run_params.rbs +28 -0
- data/sig/context_dev/models/monitor_retrieve_run_response.rbs +182 -0
- data/sig/context_dev/models/monitor_rotate_webhook_secret_params.rbs +23 -0
- data/sig/context_dev/models/monitor_rotate_webhook_secret_response.rbs +545 -0
- 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_styleguide_params.rbs +21 -1
- data/sig/context_dev/models/{web_web_scrape_sitemap_params.rbs → web_map_urls_params.rbs} +22 -22
- data/sig/context_dev/models/web_map_urls_response.rbs +125 -0
- data/sig/context_dev/models/web_scrape_params.rbs +834 -0
- data/sig/context_dev/models/web_scrape_response.rbs +552 -0
- data/sig/context_dev/models/web_screenshot_params.rbs +7 -0
- data/sig/context_dev/models/web_search_params.rbs +21 -1
- data/sig/context_dev/models.rbs +8 -20
- data/sig/context_dev/resources/brand.rbs +0 -9
- data/sig/context_dev/resources/industry.rbs +2 -0
- data/sig/context_dev/resources/monitors.rbs +11 -0
- data/sig/context_dev/resources/people.rbs +1 -0
- data/sig/context_dev/resources/web.rbs +34 -108
- metadata +26 -65
- data/lib/context_dev/models/ai_extract_product_params.rb +0 -98
- data/lib/context_dev/models/ai_extract_product_response.rb +0 -352
- data/lib/context_dev/models/ai_extract_products_params.rb +0 -233
- data/lib/context_dev/models/ai_extract_products_response.rb +0 -320
- data/lib/context_dev/models/brand_retrieve_simplified_params.rb +0 -120
- data/lib/context_dev/models/brand_retrieve_simplified_response.rb +0 -441
- data/lib/context_dev/models/web_extract_fonts_params.rb +0 -114
- data/lib/context_dev/models/web_extract_fonts_response.rb +0 -291
- data/lib/context_dev/models/web_extract_params.rb +0 -392
- data/lib/context_dev/models/web_extract_response.rb +0 -287
- data/lib/context_dev/models/web_web_scrape_bytes_params.rb +0 -344
- data/lib/context_dev/models/web_web_scrape_bytes_response.rb +0 -135
- data/lib/context_dev/models/web_web_scrape_html_params.rb +0 -633
- data/lib/context_dev/models/web_web_scrape_html_response.rb +0 -588
- data/lib/context_dev/models/web_web_scrape_images_params.rb +0 -346
- data/lib/context_dev/models/web_web_scrape_images_response.rb +0 -409
- data/lib/context_dev/models/web_web_scrape_md_params.rb +0 -668
- data/lib/context_dev/models/web_web_scrape_md_response.rb +0 -567
- data/lib/context_dev/models/web_web_scrape_sitemap_response.rb +0 -144
- data/lib/context_dev/resources/ai.rb +0 -69
- data/rbi/context_dev/models/ai_extract_product_params.rbi +0 -199
- data/rbi/context_dev/models/ai_extract_product_response.rbi +0 -696
- data/rbi/context_dev/models/ai_extract_products_params.rbi +0 -490
- data/rbi/context_dev/models/ai_extract_products_response.rbi +0 -623
- data/rbi/context_dev/models/brand_retrieve_simplified_params.rbi +0 -256
- data/rbi/context_dev/models/brand_retrieve_simplified_response.rbi +0 -1040
- data/rbi/context_dev/models/web_extract_fonts_params.rbi +0 -223
- data/rbi/context_dev/models/web_extract_fonts_response.rbi +0 -563
- data/rbi/context_dev/models/web_extract_params.rbi +0 -736
- data/rbi/context_dev/models/web_extract_response.rbi +0 -512
- data/rbi/context_dev/models/web_web_scrape_bytes_params.rbi +0 -699
- data/rbi/context_dev/models/web_web_scrape_bytes_response.rbi +0 -238
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +0 -1217
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +0 -671
- data/rbi/context_dev/models/web_web_scrape_images_response.rbi +0 -910
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +0 -1049
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +0 -1088
- data/rbi/context_dev/models/web_web_scrape_sitemap_response.rbi +0 -258
- data/rbi/context_dev/resources/ai.rbi +0 -56
- data/sig/context_dev/models/ai_extract_product_params.rbs +0 -86
- data/sig/context_dev/models/ai_extract_product_response.rbs +0 -273
- data/sig/context_dev/models/ai_extract_products_params.rbs +0 -202
- data/sig/context_dev/models/ai_extract_products_response.rbs +0 -252
- data/sig/context_dev/models/brand_retrieve_simplified_params.rbs +0 -104
- data/sig/context_dev/models/brand_retrieve_simplified_response.rbs +0 -413
- data/sig/context_dev/models/web_extract_fonts_params.rbs +0 -93
- data/sig/context_dev/models/web_extract_fonts_response.rbs +0 -230
- data/sig/context_dev/models/web_extract_params.rbs +0 -304
- data/sig/context_dev/models/web_extract_response.rbs +0 -239
- data/sig/context_dev/models/web_web_scrape_bytes_params.rbs +0 -531
- data/sig/context_dev/models/web_web_scrape_bytes_response.rbs +0 -108
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +0 -730
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +0 -495
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +0 -261
- data/sig/context_dev/models/web_web_scrape_images_response.rbs +0 -371
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +0 -758
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +0 -465
- data/sig/context_dev/models/web_web_scrape_sitemap_response.rbs +0 -117
- data/sig/context_dev/resources/ai.rbs +0 -20
|
@@ -63,6 +63,18 @@ module ContextDev
|
|
|
63
63
|
# @return [Boolean, nil]
|
|
64
64
|
optional :handle_cookie_popup, ContextDev::Internal::Type::Boolean
|
|
65
65
|
|
|
66
|
+
# @!attribute headers
|
|
67
|
+
# Optional outbound HTTP headers, using the same JSON object or deep-object query
|
|
68
|
+
# format as other scrape endpoints (for example headers[Authorization]=Bearer
|
|
69
|
+
# token). Headers are scoped to the target origin during capture. For domain/page
|
|
70
|
+
# requests, discovery receives no custom headers and only pages on the resolved
|
|
71
|
+
# origin are eligible. Non-empty headers bypass screenshot caching and return an
|
|
72
|
+
# in-memory data URL; no screenshot is uploaded. Empty objects behave like omitted
|
|
73
|
+
# headers.
|
|
74
|
+
#
|
|
75
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
76
|
+
optional :headers, ContextDev::Internal::Type::HashOf[String]
|
|
77
|
+
|
|
66
78
|
# @!attribute max_age_ms
|
|
67
79
|
# Return a cached screenshot if a prior screenshot for the same parameters exists
|
|
68
80
|
# and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
|
|
@@ -125,14 +137,15 @@ module ContextDev
|
|
|
125
137
|
|
|
126
138
|
# @!attribute zdr
|
|
127
139
|
# Set to enabled to bypass shared caches and omit request and response content
|
|
128
|
-
# from retained usage logs.
|
|
129
|
-
#
|
|
130
|
-
#
|
|
140
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
141
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
142
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
143
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
131
144
|
#
|
|
132
145
|
# @return [Symbol, ContextDev::Models::WebScreenshotParams::Zdr, nil]
|
|
133
146
|
optional :zdr, enum: -> { ContextDev::WebScreenshotParams::Zdr }
|
|
134
147
|
|
|
135
|
-
# @!method initialize(clear_popups: nil, color_scheme: nil, country: nil, direct_url: nil, domain: nil, full_screenshot: nil, handle_cookie_popup: nil, max_age_ms: nil, page: nil, scroll_offset: nil, tags: nil, timeout_opts: nil, viewport: nil, wait_for_ms: nil, zdr: nil, request_options: {})
|
|
148
|
+
# @!method initialize(clear_popups: nil, color_scheme: nil, country: nil, direct_url: nil, domain: nil, full_screenshot: nil, handle_cookie_popup: nil, headers: nil, max_age_ms: nil, page: nil, scroll_offset: nil, tags: nil, timeout_opts: nil, viewport: nil, wait_for_ms: nil, zdr: nil, request_options: {})
|
|
136
149
|
# Some parameter documentations has been truncated, see
|
|
137
150
|
# {ContextDev::Models::WebScreenshotParams} for more details.
|
|
138
151
|
#
|
|
@@ -150,6 +163,8 @@ module ContextDev
|
|
|
150
163
|
#
|
|
151
164
|
# @param handle_cookie_popup [Boolean] Optional parameter to control cookie/consent popup handling. If 'true', we dismi
|
|
152
165
|
#
|
|
166
|
+
# @param headers [Hash{Symbol=>String}] Optional outbound HTTP headers, using the same JSON object or deep-object query
|
|
167
|
+
#
|
|
153
168
|
# @param max_age_ms [Integer, nil] Return a cached screenshot if a prior screenshot for the same parameters exists
|
|
154
169
|
#
|
|
155
170
|
# @param page [Symbol, ContextDev::Models::WebScreenshotParams::Page] Optional parameter to specify which page type to screenshot. If provided, the sy
|
|
@@ -440,7 +455,7 @@ module ContextDev
|
|
|
440
455
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
441
456
|
# available, the request still fails without charging credits. Partial results are
|
|
442
457
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
443
|
-
# least
|
|
458
|
+
# least 5000.
|
|
444
459
|
#
|
|
445
460
|
# @return [Symbol, ContextDev::Models::WebScreenshotParams::TimeoutOpts::Behavior, nil]
|
|
446
461
|
optional :behavior, enum: -> { ContextDev::WebScreenshotParams::TimeoutOpts::Behavior }
|
|
@@ -461,7 +476,7 @@ module ContextDev
|
|
|
461
476
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
462
477
|
# available, the request still fails without charging credits. Partial results are
|
|
463
478
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
464
|
-
# least
|
|
479
|
+
# least 5000.
|
|
465
480
|
#
|
|
466
481
|
# @see ContextDev::Models::WebScreenshotParams::TimeoutOpts#behavior
|
|
467
482
|
module Behavior
|
|
@@ -497,9 +512,10 @@ module ContextDev
|
|
|
497
512
|
end
|
|
498
513
|
|
|
499
514
|
# Set to enabled to bypass shared caches and omit request and response content
|
|
500
|
-
# from retained usage logs.
|
|
501
|
-
#
|
|
502
|
-
#
|
|
515
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
516
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
517
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
518
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
503
519
|
module Zdr
|
|
504
520
|
extend ContextDev::Internal::Type::Enum
|
|
505
521
|
|
|
@@ -56,8 +56,8 @@ module ContextDev
|
|
|
56
56
|
optional :key_metadata, -> { ContextDev::Models::WebScreenshotResponse::KeyMetadata }
|
|
57
57
|
|
|
58
58
|
# @!attribute screenshot
|
|
59
|
-
# Public image URL for standard requests, or an in-memory data URL when ZDR
|
|
60
|
-
#
|
|
59
|
+
# Public image URL for standard requests, or an in-memory data URL when ZDR or
|
|
60
|
+
# non-empty custom headers are supplied.
|
|
61
61
|
#
|
|
62
62
|
# @return [String, nil]
|
|
63
63
|
optional :screenshot, String
|
|
@@ -100,7 +100,7 @@ module ContextDev
|
|
|
100
100
|
#
|
|
101
101
|
# @param key_metadata [ContextDev::Models::WebScreenshotResponse::KeyMetadata] Credit usage, included whenever a valid API key is provided.
|
|
102
102
|
#
|
|
103
|
-
# @param screenshot [String] Public image URL for standard requests, or an in-memory data URL when ZDR
|
|
103
|
+
# @param screenshot [String] Public image URL for standard requests, or an in-memory data URL when ZDR or non
|
|
104
104
|
#
|
|
105
105
|
# @param screenshot_type [Symbol, ContextDev::Models::WebScreenshotResponse::ScreenshotType] Type of screenshot that was captured
|
|
106
106
|
#
|
|
@@ -75,7 +75,17 @@ module ContextDev
|
|
|
75
75
|
# @return [ContextDev::Models::WebSearchParams::TimeoutOpts, nil]
|
|
76
76
|
optional :timeout_opts, -> { ContextDev::WebSearchParams::TimeoutOpts }, api_name: :timeoutOpts
|
|
77
77
|
|
|
78
|
-
# @!
|
|
78
|
+
# @!attribute zdr
|
|
79
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
80
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
81
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
82
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
83
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
84
|
+
#
|
|
85
|
+
# @return [Symbol, ContextDev::Models::WebSearchParams::Zdr, nil]
|
|
86
|
+
optional :zdr, enum: -> { ContextDev::WebSearchParams::Zdr }
|
|
87
|
+
|
|
88
|
+
# @!method initialize(query:, country: nil, exclude_domains: nil, freshness: nil, include_domains: nil, markdown_options: nil, num_results: nil, query_fanout: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
|
|
79
89
|
# Some parameter documentations has been truncated, see
|
|
80
90
|
# {ContextDev::Models::WebSearchParams} for more details.
|
|
81
91
|
#
|
|
@@ -99,6 +109,8 @@ module ContextDev
|
|
|
99
109
|
#
|
|
100
110
|
# @param timeout_opts [ContextDev::Models::WebSearchParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
|
|
101
111
|
#
|
|
112
|
+
# @param zdr [Symbol, ContextDev::Models::WebSearchParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
|
|
113
|
+
#
|
|
102
114
|
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
|
|
103
115
|
|
|
104
116
|
# Two-letter ISO 3166-1 alpha-2 country code to localize results to a specific
|
|
@@ -503,7 +515,7 @@ module ContextDev
|
|
|
503
515
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
504
516
|
# available, the request still fails without charging credits. Partial results are
|
|
505
517
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
506
|
-
# least
|
|
518
|
+
# least 5000.
|
|
507
519
|
#
|
|
508
520
|
# @return [Symbol, ContextDev::Models::WebSearchParams::MarkdownOptions::TimeoutOpts::Behavior, nil]
|
|
509
521
|
optional :behavior, enum: -> { ContextDev::WebSearchParams::MarkdownOptions::TimeoutOpts::Behavior }
|
|
@@ -525,7 +537,7 @@ module ContextDev
|
|
|
525
537
|
# credits. "return-partial" returns usable results collected so far; if none are
|
|
526
538
|
# available, the request still fails without charging credits. Partial results are
|
|
527
539
|
# not cached as complete results. "return-partial" requires milliseconds of at
|
|
528
|
-
# least
|
|
540
|
+
# least 5000.
|
|
529
541
|
#
|
|
530
542
|
# @see ContextDev::Models::WebSearchParams::MarkdownOptions::TimeoutOpts#behavior
|
|
531
543
|
module Behavior
|
|
@@ -584,6 +596,21 @@ module ContextDev
|
|
|
584
596
|
# @return [Array<Symbol>]
|
|
585
597
|
end
|
|
586
598
|
end
|
|
599
|
+
|
|
600
|
+
# Set to enabled to bypass shared caches and omit request and response content
|
|
601
|
+
# from retained usage logs. Asset uploads are skipped, so hosted image URLs are
|
|
602
|
+
# omitted. Requires zero data retention to be enabled for your organization
|
|
603
|
+
# (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
|
|
604
|
+
# Successful ZDR responses include X-Context-ZDR: true.
|
|
605
|
+
module Zdr
|
|
606
|
+
extend ContextDev::Internal::Type::Enum
|
|
607
|
+
|
|
608
|
+
ENABLED = :enabled
|
|
609
|
+
DISABLED = :disabled
|
|
610
|
+
|
|
611
|
+
# @!method self.values
|
|
612
|
+
# @return [Array<Symbol>]
|
|
613
|
+
end
|
|
587
614
|
end
|
|
588
615
|
end
|
|
589
616
|
end
|
data/lib/context_dev/models.rb
CHANGED
|
@@ -39,10 +39,6 @@ module ContextDev
|
|
|
39
39
|
mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
AIExtractProductParams = ContextDev::Models::AIExtractProductParams
|
|
43
|
-
|
|
44
|
-
AIExtractProductsParams = ContextDev::Models::AIExtractProductsParams
|
|
45
|
-
|
|
46
42
|
BatchCancelParams = ContextDev::Models::BatchCancelParams
|
|
47
43
|
|
|
48
44
|
BatchDeleteParams = ContextDev::Models::BatchDeleteParams
|
|
@@ -57,8 +53,6 @@ module ContextDev
|
|
|
57
53
|
|
|
58
54
|
BrandRetrieveParams = ContextDev::Models::BrandRetrieveParams
|
|
59
55
|
|
|
60
|
-
BrandRetrieveSimplifiedParams = ContextDev::Models::BrandRetrieveSimplifiedParams
|
|
61
|
-
|
|
62
56
|
BrandSearchParams = ContextDev::Models::BrandSearchParams
|
|
63
57
|
|
|
64
58
|
CrawlControls = ContextDev::Models::CrawlControls
|
|
@@ -97,6 +91,10 @@ module ContextDev
|
|
|
97
91
|
|
|
98
92
|
MonitorRetrieveParams = ContextDev::Models::MonitorRetrieveParams
|
|
99
93
|
|
|
94
|
+
MonitorRetrieveRunParams = ContextDev::Models::MonitorRetrieveRunParams
|
|
95
|
+
|
|
96
|
+
MonitorRotateWebhookSecretParams = ContextDev::Models::MonitorRotateWebhookSecretParams
|
|
97
|
+
|
|
100
98
|
MonitorRunParams = ContextDev::Models::MonitorRunParams
|
|
101
99
|
|
|
102
100
|
MonitorUpdateParams = ContextDev::Models::MonitorUpdateParams
|
|
@@ -117,29 +115,19 @@ module ContextDev
|
|
|
117
115
|
|
|
118
116
|
WebExtractCompetitorsParams = ContextDev::Models::WebExtractCompetitorsParams
|
|
119
117
|
|
|
120
|
-
WebExtractFontsParams = ContextDev::Models::WebExtractFontsParams
|
|
121
|
-
|
|
122
|
-
WebExtractParams = ContextDev::Models::WebExtractParams
|
|
123
|
-
|
|
124
118
|
WebExtractStyleguideParams = ContextDev::Models::WebExtractStyleguideParams
|
|
125
119
|
|
|
126
120
|
WebhookDelivery = ContextDev::Models::WebhookDelivery
|
|
127
121
|
|
|
128
122
|
Webhooks = ContextDev::Models::Webhooks
|
|
129
123
|
|
|
124
|
+
WebMapURLsParams = ContextDev::Models::WebMapURLsParams
|
|
125
|
+
|
|
126
|
+
WebScrapeParams = ContextDev::Models::WebScrapeParams
|
|
127
|
+
|
|
130
128
|
WebScreenshotParams = ContextDev::Models::WebScreenshotParams
|
|
131
129
|
|
|
132
130
|
WebSearchParams = ContextDev::Models::WebSearchParams
|
|
133
131
|
|
|
134
132
|
WebWebCrawlMdParams = ContextDev::Models::WebWebCrawlMdParams
|
|
135
|
-
|
|
136
|
-
WebWebScrapeBytesParams = ContextDev::Models::WebWebScrapeBytesParams
|
|
137
|
-
|
|
138
|
-
WebWebScrapeHTMLParams = ContextDev::Models::WebWebScrapeHTMLParams
|
|
139
|
-
|
|
140
|
-
WebWebScrapeImagesParams = ContextDev::Models::WebWebScrapeImagesParams
|
|
141
|
-
|
|
142
|
-
WebWebScrapeMdParams = ContextDev::Models::WebWebScrapeMdParams
|
|
143
|
-
|
|
144
|
-
WebWebScrapeSitemapParams = ContextDev::Models::WebWebScrapeSitemapParams
|
|
145
133
|
end
|
|
@@ -29,42 +29,6 @@ module ContextDev
|
|
|
29
29
|
)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# Some parameter documentations has been truncated, see
|
|
33
|
-
# {ContextDev::Models::BrandRetrieveSimplifiedParams} for more details.
|
|
34
|
-
#
|
|
35
|
-
# Returns a simplified version of brand data containing only essential
|
|
36
|
-
# information: domain, title, colors, logos, and backdrops. Optimized for faster
|
|
37
|
-
# responses and reduced data transfer.
|
|
38
|
-
#
|
|
39
|
-
# @overload retrieve_simplified(domain:, max_age_ms: nil, tags: nil, theme: nil, timeout_opts: nil, request_options: {})
|
|
40
|
-
#
|
|
41
|
-
# @param domain [String] Domain name to retrieve simplified brand data for
|
|
42
|
-
#
|
|
43
|
-
# @param max_age_ms [Integer, nil] Maximum age in milliseconds for cached brand data before the API performs a hard
|
|
44
|
-
#
|
|
45
|
-
# @param tags [Array<String>] Comma-separated tags for tracking request usage. Up to 20 tags, each 1-50 charac
|
|
46
|
-
#
|
|
47
|
-
# @param theme [Symbol, ContextDev::Models::BrandRetrieveSimplifiedParams::Theme] Optional theme preference used when selecting brand assets.
|
|
48
|
-
#
|
|
49
|
-
# @param timeout_opts [ContextDev::Models::BrandRetrieveSimplifiedParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
|
|
50
|
-
#
|
|
51
|
-
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
52
|
-
#
|
|
53
|
-
# @return [ContextDev::Models::BrandRetrieveSimplifiedResponse]
|
|
54
|
-
#
|
|
55
|
-
# @see ContextDev::Models::BrandRetrieveSimplifiedParams
|
|
56
|
-
def retrieve_simplified(params)
|
|
57
|
-
parsed, options = ContextDev::BrandRetrieveSimplifiedParams.dump_request(params)
|
|
58
|
-
query = ContextDev::Internal::Util.encode_query_params(parsed)
|
|
59
|
-
@client.request(
|
|
60
|
-
method: :get,
|
|
61
|
-
path: "brand/retrieve-simplified",
|
|
62
|
-
query: query.transform_keys(max_age_ms: "maxAgeMs", timeout_opts: "timeoutOpts"),
|
|
63
|
-
model: ContextDev::Models::BrandRetrieveSimplifiedResponse,
|
|
64
|
-
options: options
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
32
|
# Some parameter documentations has been truncated, see
|
|
69
33
|
# {ContextDev::Models::BrandSearchParams} for more details.
|
|
70
34
|
#
|
|
@@ -8,7 +8,7 @@ module ContextDev
|
|
|
8
8
|
#
|
|
9
9
|
# Classify any brand into 2022 NAICS industry codes from its domain or name.
|
|
10
10
|
#
|
|
11
|
-
# @overload retrieve_naics(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, request_options: {})
|
|
11
|
+
# @overload retrieve_naics(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
|
|
12
12
|
#
|
|
13
13
|
# @param input [String] Brand domain or title to retrieve NAICS code for. If a valid domain is provided,
|
|
14
14
|
#
|
|
@@ -20,6 +20,8 @@ module ContextDev
|
|
|
20
20
|
#
|
|
21
21
|
# @param timeout_opts [ContextDev::Models::IndustryRetrieveNaicsParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
|
|
22
22
|
#
|
|
23
|
+
# @param zdr [Symbol, ContextDev::Models::IndustryRetrieveNaicsParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
|
|
24
|
+
#
|
|
23
25
|
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
24
26
|
#
|
|
25
27
|
# @return [ContextDev::Models::IndustryRetrieveNaicsResponse]
|
|
@@ -48,7 +50,7 @@ module ContextDev
|
|
|
48
50
|
# domain or name. Choose between the original SIC system (`original_sic`) or the
|
|
49
51
|
# latest SIC list maintained by the SEC (`latest_sec`).
|
|
50
52
|
#
|
|
51
|
-
# @overload retrieve_sic(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, type: nil, request_options: {})
|
|
53
|
+
# @overload retrieve_sic(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, type: nil, zdr: nil, request_options: {})
|
|
52
54
|
#
|
|
53
55
|
# @param input [String] Brand domain or title to retrieve SIC code for. If a valid domain is provided, i
|
|
54
56
|
#
|
|
@@ -62,6 +64,8 @@ module ContextDev
|
|
|
62
64
|
#
|
|
63
65
|
# @param type [Symbol, ContextDev::Models::IndustryRetrieveSicParams::Type] Which SIC dataset to classify against. `original_sic` uses the 1987 Standard Ind
|
|
64
66
|
#
|
|
67
|
+
# @param zdr [Symbol, ContextDev::Models::IndustryRetrieveSicParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
|
|
68
|
+
#
|
|
65
69
|
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
66
70
|
#
|
|
67
71
|
# @return [ContextDev::Models::IndustryRetrieveSicResponse]
|
|
@@ -360,6 +360,53 @@ module ContextDev
|
|
|
360
360
|
)
|
|
361
361
|
end
|
|
362
362
|
|
|
363
|
+
# Fetches one run for a monitor, including lifecycle status, timing, credits
|
|
364
|
+
# charged, and any detected change.
|
|
365
|
+
#
|
|
366
|
+
# @overload retrieve_run(run_id, monitor_id:, request_options: {})
|
|
367
|
+
#
|
|
368
|
+
# @param run_id [String]
|
|
369
|
+
# @param monitor_id [String]
|
|
370
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
371
|
+
#
|
|
372
|
+
# @return [ContextDev::Models::MonitorRetrieveRunResponse]
|
|
373
|
+
#
|
|
374
|
+
# @see ContextDev::Models::MonitorRetrieveRunParams
|
|
375
|
+
def retrieve_run(run_id, params)
|
|
376
|
+
parsed, options = ContextDev::MonitorRetrieveRunParams.dump_request(params)
|
|
377
|
+
monitor_id =
|
|
378
|
+
parsed.delete(:monitor_id) do
|
|
379
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
380
|
+
end
|
|
381
|
+
@client.request(
|
|
382
|
+
method: :get,
|
|
383
|
+
path: ["monitors/%1$s/runs/%2$s", monitor_id, run_id],
|
|
384
|
+
model: ContextDev::Models::MonitorRetrieveRunResponse,
|
|
385
|
+
options: options
|
|
386
|
+
)
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Generates a new signing secret for the monitor's webhook and returns the updated
|
|
390
|
+
# monitor (including the new `webhook.secret`). The previous secret stops signing
|
|
391
|
+
# deliveries immediately, so update your endpoint before rotating.
|
|
392
|
+
#
|
|
393
|
+
# @overload rotate_webhook_secret(monitor_id, request_options: {})
|
|
394
|
+
#
|
|
395
|
+
# @param monitor_id [String]
|
|
396
|
+
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
397
|
+
#
|
|
398
|
+
# @return [ContextDev::Models::MonitorRotateWebhookSecretResponse]
|
|
399
|
+
#
|
|
400
|
+
# @see ContextDev::Models::MonitorRotateWebhookSecretParams
|
|
401
|
+
def rotate_webhook_secret(monitor_id, params = {})
|
|
402
|
+
@client.request(
|
|
403
|
+
method: :post,
|
|
404
|
+
path: ["monitors/%1$s/webhook/rotate-secret", monitor_id],
|
|
405
|
+
model: ContextDev::Models::MonitorRotateWebhookSecretResponse,
|
|
406
|
+
options: params[:request_options]
|
|
407
|
+
)
|
|
408
|
+
end
|
|
409
|
+
|
|
363
410
|
# Triggers an immediate run of the monitor outside its normal schedule. The run is
|
|
364
411
|
# queued and processed asynchronously.
|
|
365
412
|
#
|
|
@@ -11,7 +11,7 @@ module ContextDev
|
|
|
11
11
|
# plans. Successful requests cost 20 credits. Disposable and free email addresses
|
|
12
12
|
# (like gmail.com, yahoo.com) will throw a 422 error.
|
|
13
13
|
#
|
|
14
|
-
# @overload enrich(company: nil, education: nil, email: nil, location: nil, name: nil, social_urls: nil, tags: nil, timeout_opts: nil, request_options: {})
|
|
14
|
+
# @overload enrich(company: nil, education: nil, email: nil, location: nil, name: nil, social_urls: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param company [ContextDev::Models::PersonEnrichParams::Company]
|
|
17
17
|
#
|
|
@@ -29,6 +29,8 @@ module ContextDev
|
|
|
29
29
|
#
|
|
30
30
|
# @param timeout_opts [ContextDev::Models::PersonEnrichParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
|
|
31
31
|
#
|
|
32
|
+
# @param zdr [Symbol, ContextDev::Models::PersonEnrichParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
|
|
33
|
+
#
|
|
32
34
|
# @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
33
35
|
#
|
|
34
36
|
# @return [ContextDev::Models::PersonEnrichResponse]
|