context.dev 2.17.1 → 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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/context_dev/models/ai_extract_product_params.rb +28 -1
  5. data/lib/context_dev/models/ai_extract_product_response.rb +51 -1
  6. data/lib/context_dev/models/ai_extract_products_response.rb +51 -1
  7. data/lib/context_dev/models/industry_retrieve_naics_params.rb +28 -1
  8. data/lib/context_dev/models/industry_retrieve_sic_params.rb +28 -1
  9. data/lib/context_dev/models/parse_handle_params.rb +8 -6
  10. data/lib/context_dev/models/person_enrich_params.rb +28 -1
  11. data/lib/context_dev/models/web_answers_params.rb +28 -1
  12. data/lib/context_dev/models/web_extract_competitors_params.rb +28 -1
  13. data/lib/context_dev/models/web_extract_fonts_params.rb +2 -2
  14. data/lib/context_dev/models/web_extract_params.rb +28 -1
  15. data/lib/context_dev/models/web_extract_styleguide_params.rb +30 -3
  16. data/lib/context_dev/models/web_screenshot_params.rb +10 -8
  17. data/lib/context_dev/models/web_search_params.rb +30 -3
  18. data/lib/context_dev/models/web_web_scrape_bytes_params.rb +8 -6
  19. data/lib/context_dev/models/web_web_scrape_html_params.rb +188 -9
  20. data/lib/context_dev/models/web_web_scrape_html_response.rb +41 -1
  21. data/lib/context_dev/models/web_web_scrape_images_params.rb +31 -4
  22. data/lib/context_dev/models/web_web_scrape_md_params.rb +10 -8
  23. data/lib/context_dev/models/web_web_scrape_screenshot_params.rb +471 -0
  24. data/lib/context_dev/models/web_web_scrape_screenshot_response.rb +169 -0
  25. data/lib/context_dev/models/web_web_scrape_sitemap_params.rb +8 -6
  26. data/lib/context_dev/models.rb +2 -0
  27. data/lib/context_dev/resources/ai.rb +3 -1
  28. data/lib/context_dev/resources/industry.rb +6 -2
  29. data/lib/context_dev/resources/people.rb +3 -1
  30. data/lib/context_dev/resources/web.rb +96 -13
  31. data/lib/context_dev/version.rb +1 -1
  32. data/lib/context_dev.rb +2 -0
  33. data/rbi/context_dev/models/ai_extract_product_params.rbi +54 -0
  34. data/rbi/context_dev/models/ai_extract_product_response.rbi +98 -3
  35. data/rbi/context_dev/models/ai_extract_products_response.rbi +98 -3
  36. data/rbi/context_dev/models/industry_retrieve_naics_params.rbi +59 -0
  37. data/rbi/context_dev/models/industry_retrieve_sic_params.rbi +57 -0
  38. data/rbi/context_dev/models/parse_handle_params.rbi +12 -9
  39. data/rbi/context_dev/models/person_enrich_params.rbi +45 -0
  40. data/rbi/context_dev/models/web_answers_params.rbi +45 -0
  41. data/rbi/context_dev/models/web_extract_competitors_params.rbi +59 -0
  42. data/rbi/context_dev/models/web_extract_fonts_params.rbi +3 -3
  43. data/rbi/context_dev/models/web_extract_params.rbi +45 -0
  44. data/rbi/context_dev/models/web_extract_styleguide_params.rbi +62 -3
  45. data/rbi/context_dev/models/web_screenshot_params.rbi +15 -12
  46. data/rbi/context_dev/models/web_search_params.rbi +48 -3
  47. data/rbi/context_dev/models/web_web_scrape_bytes_params.rbi +12 -9
  48. data/rbi/context_dev/models/web_web_scrape_html_params.rbi +485 -12
  49. data/rbi/context_dev/models/web_web_scrape_html_response.rbi +103 -0
  50. data/rbi/context_dev/models/web_web_scrape_images_params.rbi +62 -5
  51. data/rbi/context_dev/models/web_web_scrape_md_params.rbi +15 -12
  52. data/rbi/context_dev/models/web_web_scrape_screenshot_params.rbi +1580 -0
  53. data/rbi/context_dev/models/web_web_scrape_screenshot_response.rbi +332 -0
  54. data/rbi/context_dev/models/web_web_scrape_sitemap_params.rbi +12 -9
  55. data/rbi/context_dev/models.rbi +3 -0
  56. data/rbi/context_dev/resources/ai.rbi +7 -0
  57. data/rbi/context_dev/resources/industry.rbi +14 -0
  58. data/rbi/context_dev/resources/parse.rbi +4 -4
  59. data/rbi/context_dev/resources/people.rbi +7 -0
  60. data/rbi/context_dev/resources/web.rbi +173 -21
  61. data/sig/context_dev/models/ai_extract_product_params.rbs +21 -1
  62. data/sig/context_dev/models/ai_extract_product_response.rbs +44 -3
  63. data/sig/context_dev/models/ai_extract_products_response.rbs +44 -3
  64. data/sig/context_dev/models/industry_retrieve_naics_params.rbs +21 -1
  65. data/sig/context_dev/models/industry_retrieve_sic_params.rbs +21 -1
  66. data/sig/context_dev/models/person_enrich_params.rbs +21 -1
  67. data/sig/context_dev/models/web_answers_params.rbs +21 -1
  68. data/sig/context_dev/models/web_extract_competitors_params.rbs +21 -1
  69. data/sig/context_dev/models/web_extract_params.rbs +21 -1
  70. data/sig/context_dev/models/web_extract_styleguide_params.rbs +21 -1
  71. data/sig/context_dev/models/web_search_params.rbs +21 -1
  72. data/sig/context_dev/models/web_web_scrape_html_params.rbs +148 -0
  73. data/sig/context_dev/models/web_web_scrape_html_response.rbs +30 -0
  74. data/sig/context_dev/models/web_web_scrape_images_params.rbs +21 -1
  75. data/sig/context_dev/models/web_web_scrape_screenshot_params.rbs +619 -0
  76. data/sig/context_dev/models/web_web_scrape_screenshot_response.rbs +127 -0
  77. data/sig/context_dev/models.rbs +2 -0
  78. data/sig/context_dev/resources/ai.rbs +1 -0
  79. data/sig/context_dev/resources/industry.rbs +2 -0
  80. data/sig/context_dev/resources/people.rbs +1 -0
  81. data/sig/context_dev/resources/web.rbs +24 -0
  82. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18b47383d0fc922af7bc818a48819c4d702950b89c51f28b6e373b3b6468108b
4
- data.tar.gz: e0f57cfa02d05a6b3d6b24956798e52fe21841280ac164b7c53d8980b246ec37
3
+ metadata.gz: e0f065997a3f6bc987b9ef1486e702f79002addef6662ceeed38107340ff8565
4
+ data.tar.gz: d22faf02bd6bdc0ad7ba496b99375be03a07eeb2a8753b93aef39ea8733bbd35
5
5
  SHA512:
6
- metadata.gz: 50a79881ad62bece93534a540bd06b18e3618687b81c8f817d95929339769766d7260da3bdb7409be4d42957c5d57818dceafc07fa3495b510d8dfde70af014a
7
- data.tar.gz: 6a22ac07b5bebf800443f990c556f1864a41872f5ca08381716702b1cd61a470d22da90a4350dc745e357a1c21959f13bc156d585984ae0b4d7d98124d34cc06
6
+ metadata.gz: c626610bd4e3070c60ad4db6c0b0c0eb3f0f8ac0eb1bf10f61e4c5dc740f2f3c40ab829309ecaaf5fe4ed232c9d8683bab6872641ccca935ca3eff5a932b0dcc
7
+ data.tar.gz: 8089fb01f3a2ba6dfbab55db9fac2ae0ac3d0555f051f6ec7ae5edaf3d9990e80b17d9d9d3b0588d4fa5ada2a073e5aed03caf1faa907e9dcbe717b136a6c16e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.18.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.17.1...v2.18.0) (2026-09-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** enable ZDR on remaining AI endpoints via OpenAI ([#1099](https://github.com/context-dot-dev/context-ruby-sdk/issues/1099)) ([36e5487](https://github.com/context-dot-dev/context-ruby-sdk/commit/36e548724224b3198e49d248735916f3af6d1b61))
9
+ * **products:** extract ProductGroup variants with images ([#1124](https://github.com/context-dot-dev/context-ruby-sdk/issues/1124)) ([dd14116](https://github.com/context-dot-dev/context-ruby-sdk/commit/dd141167200666c0bbb658f9a83ffa8896411aae))
10
+ * **scrape:** add CSS extraction rules to HTML scraping ([#1146](https://github.com/context-dot-dev/context-ruby-sdk/issues/1146)) ([4ed406d](https://github.com/context-dot-dev/context-ruby-sdk/commit/4ed406dfa5bf0dd2ad8e6652fb85ef9ebe37ff07))
11
+ * **web:** add URL-based scrape screenshot endpoint ([#1150](https://github.com/context-dot-dev/context-ruby-sdk/issues/1150)) ([52c8043](https://github.com/context-dot-dev/context-ruby-sdk/commit/52c80435c9c767bdb6ff782c487ada1263d9f767))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **api:** lower partial scrape timeout minimum to five seconds ([#1118](https://github.com/context-dot-dev/context-ruby-sdk/issues/1118)) ([871982b](https://github.com/context-dot-dev/context-ruby-sdk/commit/871982bff814f9cb698fc59f1e07c2d87c5a6dad))
17
+
3
18
  ## [2.17.1](https://github.com/context-dot-dev/context-ruby-sdk/compare/v2.17.0...v2.17.1) (2026-09-15)
4
19
 
5
20
 
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "context.dev", "~> 2.17.1"
20
+ gem "context.dev", "~> 2.18.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -35,7 +35,17 @@ module ContextDev
35
35
  # @return [ContextDev::Models::AIExtractProductParams::TimeoutOpts, nil]
36
36
  optional :timeout_opts, -> { ContextDev::AIExtractProductParams::TimeoutOpts }, api_name: :timeoutOpts
37
37
 
38
- # @!method initialize(url:, max_age_ms: nil, tags: nil, timeout_opts: nil, request_options: {})
38
+ # @!attribute zdr
39
+ # Set to enabled to bypass shared caches and omit request and response content
40
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
41
+ # omitted. Requires zero data retention to be enabled for your organization
42
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
43
+ # Successful ZDR responses include X-Context-ZDR: true.
44
+ #
45
+ # @return [Symbol, ContextDev::Models::AIExtractProductParams::Zdr, nil]
46
+ optional :zdr, enum: -> { ContextDev::AIExtractProductParams::Zdr }
47
+
48
+ # @!method initialize(url:, max_age_ms: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
39
49
  # Some parameter documentations has been truncated, see
40
50
  # {ContextDev::Models::AIExtractProductParams} for more details.
41
51
  #
@@ -47,6 +57,8 @@ module ContextDev
47
57
  #
48
58
  # @param timeout_opts [ContextDev::Models::AIExtractProductParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
49
59
  #
60
+ # @param zdr [Symbol, ContextDev::Models::AIExtractProductParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
61
+ #
50
62
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
51
63
 
52
64
  class TimeoutOpts < ContextDev::Internal::Type::BaseModel
@@ -93,6 +105,21 @@ module ContextDev
93
105
  # @return [Array<Symbol>]
94
106
  end
95
107
  end
108
+
109
+ # Set to enabled to bypass shared caches and omit request and response content
110
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
111
+ # omitted. Requires zero data retention to be enabled for your organization
112
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
113
+ # Successful ZDR responses include X-Context-ZDR: true.
114
+ module Zdr
115
+ extend ContextDev::Internal::Type::Enum
116
+
117
+ ENABLED = :enabled
118
+ DISABLED = :disabled
119
+
120
+ # @!method self.values
121
+ # @return [Array<Symbol>]
122
+ end
96
123
  end
97
124
  end
98
125
  end
@@ -258,7 +258,16 @@ module ContextDev
258
258
  # @return [String, nil]
259
259
  optional :url, String, nil?: true
260
260
 
261
- # @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, availability: nil, billing_frequency: nil, category: nil, currency: nil, dimensions: nil, image_url: nil, price: nil, pricing_model: nil, regular_price: nil, url: nil)
261
+ # @!attribute variants
262
+ # Product variations, such as different colors or sizes, with their attributes and
263
+ # images. Empty if none are found. May not include every variation offered by the
264
+ # store.
265
+ #
266
+ # @return [Array<ContextDev::Models::AIExtractProductResponse::Product::Variant>, nil]
267
+ optional :variants,
268
+ -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIExtractProductResponse::Product::Variant] }
269
+
270
+ # @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, availability: nil, billing_frequency: nil, category: nil, currency: nil, dimensions: nil, image_url: nil, price: nil, pricing_model: nil, regular_price: nil, url: nil, variants: nil)
262
271
  # Some parameter documentations has been truncated, see
263
272
  # {ContextDev::Models::AIExtractProductResponse::Product} for more details.
264
273
  #
@@ -297,6 +306,8 @@ module ContextDev
297
306
  # @param regular_price [Float, nil] Original or regular price before a displayed discount
298
307
  #
299
308
  # @param url [String, nil] URL to the product page
309
+ #
310
+ # @param variants [Array<ContextDev::Models::AIExtractProductResponse::Product::Variant>] Product variations, such as different colors or sizes, with their attributes and
300
311
 
301
312
  # Normalized stock or ordering availability
302
313
  #
@@ -346,6 +357,45 @@ module ContextDev
346
357
  # @!method self.values
347
358
  # @return [Array<Symbol>]
348
359
  end
360
+
361
+ class Variant < ContextDev::Internal::Type::BaseModel
362
+ # @!attribute attributes
363
+ # Explicit variant attributes such as color, size, material, pattern and
364
+ # properties declared by page.
365
+ #
366
+ # @return [Hash{Symbol=>String}]
367
+ required :attributes, ContextDev::Internal::Type::HashOf[String]
368
+
369
+ # @!attribute images
370
+ # Original source image URLs explicitly attached to this variant.
371
+ #
372
+ # @return [Array<String>]
373
+ required :images, ContextDev::Internal::Type::ArrayOf[String]
374
+
375
+ # @!attribute sku
376
+ #
377
+ # @return [String, nil]
378
+ required :sku, String, nil?: true
379
+
380
+ # @!attribute url
381
+ # Variant or offer URL when provided by the source. May be shared by variants.
382
+ #
383
+ # @return [String, nil]
384
+ required :url, String, nil?: true
385
+
386
+ # @!method initialize(attributes:, images:, sku:, url:)
387
+ # Some parameter documentations has been truncated, see
388
+ # {ContextDev::Models::AIExtractProductResponse::Product::Variant} for more
389
+ # details.
390
+ #
391
+ # @param attributes [Hash{Symbol=>String}] Explicit variant attributes such as color, size, material, pattern and propertie
392
+ #
393
+ # @param images [Array<String>] Original source image URLs explicitly attached to this variant.
394
+ #
395
+ # @param sku [String, nil]
396
+ #
397
+ # @param url [String, nil] Variant or offer URL when provided by the source. May be shared by variants.
398
+ end
349
399
  end
350
400
  end
351
401
  end
@@ -228,7 +228,16 @@ module ContextDev
228
228
  # @return [String, nil]
229
229
  optional :url, String, nil?: true
230
230
 
231
- # @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, availability: nil, billing_frequency: nil, category: nil, currency: nil, dimensions: nil, image_url: nil, price: nil, pricing_model: nil, regular_price: nil, url: nil)
231
+ # @!attribute variants
232
+ # Product variations, such as different colors or sizes, with their attributes and
233
+ # images. Empty if none are found. May not include every variation offered by the
234
+ # store.
235
+ #
236
+ # @return [Array<ContextDev::Models::AIExtractProductsResponse::Product::Variant>, nil]
237
+ optional :variants,
238
+ -> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::AIExtractProductsResponse::Product::Variant] }
239
+
240
+ # @!method initialize(description:, features:, images:, name:, sku:, tags:, target_audience:, availability: nil, billing_frequency: nil, category: nil, currency: nil, dimensions: nil, image_url: nil, price: nil, pricing_model: nil, regular_price: nil, url: nil, variants: nil)
232
241
  # Some parameter documentations has been truncated, see
233
242
  # {ContextDev::Models::AIExtractProductsResponse::Product} for more details.
234
243
  #
@@ -265,6 +274,8 @@ module ContextDev
265
274
  # @param regular_price [Float, nil] Original or regular price before a displayed discount
266
275
  #
267
276
  # @param url [String, nil] URL to the product page
277
+ #
278
+ # @param variants [Array<ContextDev::Models::AIExtractProductsResponse::Product::Variant>] Product variations, such as different colors or sizes, with their attributes and
268
279
 
269
280
  # Normalized stock or ordering availability
270
281
  #
@@ -314,6 +325,45 @@ module ContextDev
314
325
  # @!method self.values
315
326
  # @return [Array<Symbol>]
316
327
  end
328
+
329
+ class Variant < ContextDev::Internal::Type::BaseModel
330
+ # @!attribute attributes
331
+ # Explicit variant attributes such as color, size, material, pattern and
332
+ # properties declared by page.
333
+ #
334
+ # @return [Hash{Symbol=>String}]
335
+ required :attributes, ContextDev::Internal::Type::HashOf[String]
336
+
337
+ # @!attribute images
338
+ # Original source image URLs explicitly attached to this variant.
339
+ #
340
+ # @return [Array<String>]
341
+ required :images, ContextDev::Internal::Type::ArrayOf[String]
342
+
343
+ # @!attribute sku
344
+ #
345
+ # @return [String, nil]
346
+ required :sku, String, nil?: true
347
+
348
+ # @!attribute url
349
+ # Variant or offer URL when provided by the source. May be shared by variants.
350
+ #
351
+ # @return [String, nil]
352
+ required :url, String, nil?: true
353
+
354
+ # @!method initialize(attributes:, images:, sku:, url:)
355
+ # Some parameter documentations has been truncated, see
356
+ # {ContextDev::Models::AIExtractProductsResponse::Product::Variant} for more
357
+ # details.
358
+ #
359
+ # @param attributes [Hash{Symbol=>String}] Explicit variant attributes such as color, size, material, pattern and propertie
360
+ #
361
+ # @param images [Array<String>] Original source image URLs explicitly attached to this variant.
362
+ #
363
+ # @param sku [String, nil]
364
+ #
365
+ # @param url [String, nil] Variant or offer URL when provided by the source. May be shared by variants.
366
+ end
317
367
  end
318
368
  end
319
369
  end
@@ -43,7 +43,17 @@ module ContextDev
43
43
  # @return [ContextDev::Models::IndustryRetrieveNaicsParams::TimeoutOpts, nil]
44
44
  optional :timeout_opts, -> { ContextDev::IndustryRetrieveNaicsParams::TimeoutOpts }
45
45
 
46
- # @!method initialize(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, request_options: {})
46
+ # @!attribute zdr
47
+ # Set to enabled to bypass shared caches and omit request and response content
48
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
49
+ # omitted. Requires zero data retention to be enabled for your organization
50
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
51
+ # Successful ZDR responses include X-Context-ZDR: true.
52
+ #
53
+ # @return [Symbol, ContextDev::Models::IndustryRetrieveNaicsParams::Zdr, nil]
54
+ optional :zdr, enum: -> { ContextDev::IndustryRetrieveNaicsParams::Zdr }
55
+
56
+ # @!method initialize(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
47
57
  # Some parameter documentations has been truncated, see
48
58
  # {ContextDev::Models::IndustryRetrieveNaicsParams} for more details.
49
59
  #
@@ -57,6 +67,8 @@ module ContextDev
57
67
  #
58
68
  # @param timeout_opts [ContextDev::Models::IndustryRetrieveNaicsParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
59
69
  #
70
+ # @param zdr [Symbol, ContextDev::Models::IndustryRetrieveNaicsParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
71
+ #
60
72
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
61
73
 
62
74
  class TimeoutOpts < ContextDev::Internal::Type::BaseModel
@@ -103,6 +115,21 @@ module ContextDev
103
115
  # @return [Array<Symbol>]
104
116
  end
105
117
  end
118
+
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
+ module Zdr
125
+ extend ContextDev::Internal::Type::Enum
126
+
127
+ ENABLED = :enabled
128
+ DISABLED = :disabled
129
+
130
+ # @!method self.values
131
+ # @return [Array<Symbol>]
132
+ end
106
133
  end
107
134
  end
108
135
  end
@@ -50,7 +50,17 @@ module ContextDev
50
50
  # @return [Symbol, ContextDev::Models::IndustryRetrieveSicParams::Type, nil]
51
51
  optional :type, enum: -> { ContextDev::IndustryRetrieveSicParams::Type }
52
52
 
53
- # @!method initialize(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, type: nil, request_options: {})
53
+ # @!attribute zdr
54
+ # Set to enabled to bypass shared caches and omit request and response content
55
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
56
+ # omitted. Requires zero data retention to be enabled for your organization
57
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
58
+ # Successful ZDR responses include X-Context-ZDR: true.
59
+ #
60
+ # @return [Symbol, ContextDev::Models::IndustryRetrieveSicParams::Zdr, nil]
61
+ optional :zdr, enum: -> { ContextDev::IndustryRetrieveSicParams::Zdr }
62
+
63
+ # @!method initialize(input:, max_results: nil, min_results: nil, tags: nil, timeout_opts: nil, type: nil, zdr: nil, request_options: {})
54
64
  # Some parameter documentations has been truncated, see
55
65
  # {ContextDev::Models::IndustryRetrieveSicParams} for more details.
56
66
  #
@@ -66,6 +76,8 @@ module ContextDev
66
76
  #
67
77
  # @param type [Symbol, ContextDev::Models::IndustryRetrieveSicParams::Type] Which SIC dataset to classify against. `original_sic` uses the 1987 Standard Ind
68
78
  #
79
+ # @param zdr [Symbol, ContextDev::Models::IndustryRetrieveSicParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
80
+ #
69
81
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
70
82
 
71
83
  class TimeoutOpts < ContextDev::Internal::Type::BaseModel
@@ -125,6 +137,21 @@ module ContextDev
125
137
  # @!method self.values
126
138
  # @return [Array<Symbol>]
127
139
  end
140
+
141
+ # Set to enabled to bypass shared caches and omit request and response content
142
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
143
+ # omitted. Requires zero data retention to be enabled for your organization
144
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
145
+ # Successful ZDR responses include X-Context-ZDR: true.
146
+ module Zdr
147
+ extend ContextDev::Internal::Type::Enum
148
+
149
+ ENABLED = :enabled
150
+ DISABLED = :disabled
151
+
152
+ # @!method self.values
153
+ # @return [Array<Symbol>]
154
+ end
128
155
  end
129
156
  end
130
157
  end
@@ -74,9 +74,10 @@ module ContextDev
74
74
 
75
75
  # @!attribute zdr
76
76
  # Set to enabled to bypass shared caches and omit request and response content
77
- # from retained usage logs. Requires zero data retention to be enabled for your
78
- # organization (contact support@context.dev), otherwise the request fails with
79
- # ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.
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.
80
81
  #
81
82
  # @return [Symbol, ContextDev::Models::ParseHandleParams::Zdr, nil]
82
83
  optional :zdr, enum: -> { ContextDev::ParseHandleParams::Zdr }
@@ -215,9 +216,10 @@ module ContextDev
215
216
  end
216
217
 
217
218
  # Set to enabled to bypass shared caches and omit request and response content
218
- # from retained usage logs. Requires zero data retention to be enabled for your
219
- # organization (contact support@context.dev), otherwise the request fails with
220
- # ZDR_NOT_ENABLED. Successful ZDR responses include X-Context-ZDR: true.
219
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
220
+ # omitted. Requires zero data retention to be enabled for your organization
221
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
222
+ # Successful ZDR responses include X-Context-ZDR: true.
221
223
  module Zdr
222
224
  extend ContextDev::Internal::Type::Enum
223
225
 
@@ -51,7 +51,17 @@ module ContextDev
51
51
  # @return [ContextDev::Models::PersonEnrichParams::TimeoutOpts, nil]
52
52
  optional :timeout_opts, -> { ContextDev::PersonEnrichParams::TimeoutOpts }, api_name: :timeoutOpts
53
53
 
54
- # @!method initialize(company: nil, education: nil, email: nil, location: nil, name: nil, social_urls: nil, tags: nil, timeout_opts: nil, request_options: {})
54
+ # @!attribute zdr
55
+ # Set to enabled to bypass shared caches and omit request and response content
56
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
57
+ # omitted. Requires zero data retention to be enabled for your organization
58
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
59
+ # Successful ZDR responses include X-Context-ZDR: true.
60
+ #
61
+ # @return [Symbol, ContextDev::Models::PersonEnrichParams::Zdr, nil]
62
+ optional :zdr, enum: -> { ContextDev::PersonEnrichParams::Zdr }
63
+
64
+ # @!method initialize(company: nil, education: nil, email: nil, location: nil, name: nil, social_urls: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
55
65
  # Some parameter documentations has been truncated, see
56
66
  # {ContextDev::Models::PersonEnrichParams} for more details.
57
67
  #
@@ -71,6 +81,8 @@ module ContextDev
71
81
  #
72
82
  # @param timeout_opts [ContextDev::Models::PersonEnrichParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
73
83
  #
84
+ # @param zdr [Symbol, ContextDev::Models::PersonEnrichParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
85
+ #
74
86
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
75
87
 
76
88
  class Company < ContextDev::Internal::Type::BaseModel
@@ -216,6 +228,21 @@ module ContextDev
216
228
  # @return [Array<Symbol>]
217
229
  end
218
230
  end
231
+
232
+ # Set to enabled to bypass shared caches and omit request and response content
233
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
234
+ # omitted. Requires zero data retention to be enabled for your organization
235
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
236
+ # Successful ZDR responses include X-Context-ZDR: true.
237
+ module Zdr
238
+ extend ContextDev::Internal::Type::Enum
239
+
240
+ ENABLED = :enabled
241
+ DISABLED = :disabled
242
+
243
+ # @!method self.values
244
+ # @return [Array<Symbol>]
245
+ end
219
246
  end
220
247
  end
221
248
  end
@@ -46,7 +46,17 @@ module ContextDev
46
46
  # @return [ContextDev::Models::WebAnswersParams::TimeoutOpts, nil]
47
47
  optional :timeout_opts, -> { ContextDev::WebAnswersParams::TimeoutOpts }, api_name: :timeoutOpts
48
48
 
49
- # @!method initialize(task:, json_format: nil, mode: nil, tags: nil, timeout_opts: nil, request_options: {})
49
+ # @!attribute zdr
50
+ # Set to enabled to bypass shared caches and omit request and response content
51
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
52
+ # omitted. Requires zero data retention to be enabled for your organization
53
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
54
+ # Successful ZDR responses include X-Context-ZDR: true.
55
+ #
56
+ # @return [Symbol, ContextDev::Models::WebAnswersParams::Zdr, nil]
57
+ optional :zdr, enum: -> { ContextDev::WebAnswersParams::Zdr }
58
+
59
+ # @!method initialize(task:, json_format: nil, mode: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
50
60
  # Some parameter documentations has been truncated, see
51
61
  # {ContextDev::Models::WebAnswersParams} for more details.
52
62
  #
@@ -60,6 +70,8 @@ module ContextDev
60
70
  #
61
71
  # @param timeout_opts [ContextDev::Models::WebAnswersParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
62
72
  #
73
+ # @param zdr [Symbol, ContextDev::Models::WebAnswersParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
74
+ #
63
75
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
64
76
 
65
77
  # Research level: fast uses a smaller model and research budget for 10 credits;
@@ -119,6 +131,21 @@ module ContextDev
119
131
  # @return [Array<Symbol>]
120
132
  end
121
133
  end
134
+
135
+ # Set to enabled to bypass shared caches and omit request and response content
136
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
137
+ # omitted. Requires zero data retention to be enabled for your organization
138
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
139
+ # Successful ZDR responses include X-Context-ZDR: true.
140
+ module Zdr
141
+ extend ContextDev::Internal::Type::Enum
142
+
143
+ ENABLED = :enabled
144
+ DISABLED = :disabled
145
+
146
+ # @!method self.values
147
+ # @return [Array<Symbol>]
148
+ end
122
149
  end
123
150
  end
124
151
  end
@@ -35,7 +35,17 @@ module ContextDev
35
35
  # @return [ContextDev::Models::WebExtractCompetitorsParams::TimeoutOpts, nil]
36
36
  optional :timeout_opts, -> { ContextDev::WebExtractCompetitorsParams::TimeoutOpts }
37
37
 
38
- # @!method initialize(domain:, num_competitors: nil, tags: nil, timeout_opts: nil, request_options: {})
38
+ # @!attribute zdr
39
+ # Set to enabled to bypass shared caches and omit request and response content
40
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
41
+ # omitted. Requires zero data retention to be enabled for your organization
42
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
43
+ # Successful ZDR responses include X-Context-ZDR: true.
44
+ #
45
+ # @return [Symbol, ContextDev::Models::WebExtractCompetitorsParams::Zdr, nil]
46
+ optional :zdr, enum: -> { ContextDev::WebExtractCompetitorsParams::Zdr }
47
+
48
+ # @!method initialize(domain:, num_competitors: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
39
49
  # Some parameter documentations has been truncated, see
40
50
  # {ContextDev::Models::WebExtractCompetitorsParams} for more details.
41
51
  #
@@ -47,6 +57,8 @@ module ContextDev
47
57
  #
48
58
  # @param timeout_opts [ContextDev::Models::WebExtractCompetitorsParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
49
59
  #
60
+ # @param zdr [Symbol, ContextDev::Models::WebExtractCompetitorsParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
61
+ #
50
62
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
51
63
 
52
64
  class TimeoutOpts < ContextDev::Internal::Type::BaseModel
@@ -93,6 +105,21 @@ module ContextDev
93
105
  # @return [Array<Symbol>]
94
106
  end
95
107
  end
108
+
109
+ # Set to enabled to bypass shared caches and omit request and response content
110
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
111
+ # omitted. Requires zero data retention to be enabled for your organization
112
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
113
+ # Successful ZDR responses include X-Context-ZDR: true.
114
+ module Zdr
115
+ extend ContextDev::Internal::Type::Enum
116
+
117
+ ENABLED = :enabled
118
+ DISABLED = :disabled
119
+
120
+ # @!method self.values
121
+ # @return [Array<Symbol>]
122
+ end
96
123
  end
97
124
  end
98
125
  end
@@ -75,7 +75,7 @@ module ContextDev
75
75
  # credits. "return-partial" returns usable results collected so far; if none are
76
76
  # available, the request still fails without charging credits. Partial results are
77
77
  # not cached as complete results. "return-partial" requires milliseconds of at
78
- # least 15000.
78
+ # least 5000.
79
79
  #
80
80
  # @return [Symbol, ContextDev::Models::WebExtractFontsParams::TimeoutOpts::Behavior, nil]
81
81
  optional :behavior, enum: -> { ContextDev::WebExtractFontsParams::TimeoutOpts::Behavior }
@@ -96,7 +96,7 @@ module ContextDev
96
96
  # credits. "return-partial" returns usable results collected so far; if none are
97
97
  # available, the request still fails without charging credits. Partial results are
98
98
  # not cached as complete results. "return-partial" requires milliseconds of at
99
- # least 15000.
99
+ # least 5000.
100
100
  #
101
101
  # @see ContextDev::Models::WebExtractFontsParams::TimeoutOpts#behavior
102
102
  module Behavior
@@ -125,7 +125,17 @@ module ContextDev
125
125
  # @return [Integer, nil]
126
126
  optional :wait_for_ms, Integer, api_name: :waitForMs
127
127
 
128
- # @!method initialize(schema:, url:, actions: nil, fact_check: nil, follow_subdomains: nil, include_frames: nil, instructions: nil, max_age_ms: nil, max_depth: nil, max_pages: nil, pdf: nil, settle_animations: nil, stop_after_ms: nil, tags: nil, timeout_opts: nil, wait_for_ms: nil, request_options: {})
128
+ # @!attribute zdr
129
+ # Set to enabled to bypass shared caches and omit request and response content
130
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
131
+ # omitted. Requires zero data retention to be enabled for your organization
132
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
133
+ # Successful ZDR responses include X-Context-ZDR: true.
134
+ #
135
+ # @return [Symbol, ContextDev::Models::WebExtractParams::Zdr, nil]
136
+ optional :zdr, enum: -> { ContextDev::WebExtractParams::Zdr }
137
+
138
+ # @!method initialize(schema:, url:, actions: nil, fact_check: nil, follow_subdomains: nil, include_frames: nil, instructions: nil, max_age_ms: nil, max_depth: nil, max_pages: nil, pdf: nil, settle_animations: nil, stop_after_ms: nil, tags: nil, timeout_opts: nil, wait_for_ms: nil, zdr: nil, request_options: {})
129
139
  # Some parameter documentations has been truncated, see
130
140
  # {ContextDev::Models::WebExtractParams} for more details.
131
141
  #
@@ -161,6 +171,8 @@ module ContextDev
161
171
  #
162
172
  # @param wait_for_ms [Integer] Optional browser wait time in milliseconds after initial page load for each craw
163
173
  #
174
+ # @param zdr [Symbol, ContextDev::Models::WebExtractParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
175
+ #
164
176
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
165
177
 
166
178
  # Browser action discriminated by `do`. Each variant exposes only its applicable
@@ -387,6 +399,21 @@ module ContextDev
387
399
  # @return [Array<Symbol>]
388
400
  end
389
401
  end
402
+
403
+ # Set to enabled to bypass shared caches and omit request and response content
404
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
405
+ # omitted. Requires zero data retention to be enabled for your organization
406
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
407
+ # Successful ZDR responses include X-Context-ZDR: true.
408
+ module Zdr
409
+ extend ContextDev::Internal::Type::Enum
410
+
411
+ ENABLED = :enabled
412
+ DISABLED = :disabled
413
+
414
+ # @!method self.values
415
+ # @return [Array<Symbol>]
416
+ end
390
417
  end
391
418
  end
392
419
  end
@@ -55,7 +55,17 @@ module ContextDev
55
55
  # @return [ContextDev::Models::WebExtractStyleguideParams::TimeoutOpts, nil]
56
56
  optional :timeout_opts, -> { ContextDev::WebExtractStyleguideParams::TimeoutOpts }
57
57
 
58
- # @!method initialize(color_scheme: nil, direct_url: nil, domain: nil, max_age_ms: nil, tags: nil, timeout_opts: nil, request_options: {})
58
+ # @!attribute zdr
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
+ #
65
+ # @return [Symbol, ContextDev::Models::WebExtractStyleguideParams::Zdr, nil]
66
+ optional :zdr, enum: -> { ContextDev::WebExtractStyleguideParams::Zdr }
67
+
68
+ # @!method initialize(color_scheme: nil, direct_url: nil, domain: nil, max_age_ms: nil, tags: nil, timeout_opts: nil, zdr: nil, request_options: {})
59
69
  # Some parameter documentations has been truncated, see
60
70
  # {ContextDev::Models::WebExtractStyleguideParams} for more details.
61
71
  #
@@ -71,6 +81,8 @@ module ContextDev
71
81
  #
72
82
  # @param timeout_opts [ContextDev::Models::WebExtractStyleguideParams::TimeoutOpts] Optional request deadline and behavior on timeout. For GET requests, use timeout
73
83
  #
84
+ # @param zdr [Symbol, ContextDev::Models::WebExtractStyleguideParams::Zdr] Set to enabled to bypass shared caches and omit request and response content fro
85
+ #
74
86
  # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}]
75
87
 
76
88
  # Optional browser color scheme to emulate for websites that respond to
@@ -97,7 +109,7 @@ module ContextDev
97
109
  # credits. "return-partial" returns usable results collected so far; if none are
98
110
  # available, the request still fails without charging credits. Partial results are
99
111
  # not cached as complete results. "return-partial" requires milliseconds of at
100
- # least 15000.
112
+ # least 5000.
101
113
  #
102
114
  # @return [Symbol, ContextDev::Models::WebExtractStyleguideParams::TimeoutOpts::Behavior, nil]
103
115
  optional :behavior, enum: -> { ContextDev::WebExtractStyleguideParams::TimeoutOpts::Behavior }
@@ -118,7 +130,7 @@ module ContextDev
118
130
  # credits. "return-partial" returns usable results collected so far; if none are
119
131
  # available, the request still fails without charging credits. Partial results are
120
132
  # not cached as complete results. "return-partial" requires milliseconds of at
121
- # least 15000.
133
+ # least 5000.
122
134
  #
123
135
  # @see ContextDev::Models::WebExtractStyleguideParams::TimeoutOpts#behavior
124
136
  module Behavior
@@ -131,6 +143,21 @@ module ContextDev
131
143
  # @return [Array<Symbol>]
132
144
  end
133
145
  end
146
+
147
+ # Set to enabled to bypass shared caches and omit request and response content
148
+ # from retained usage logs. Asset uploads are skipped, so hosted image URLs are
149
+ # omitted. Requires zero data retention to be enabled for your organization
150
+ # (contact support@context.dev), otherwise the request fails with ZDR_NOT_ENABLED.
151
+ # Successful ZDR responses include X-Context-ZDR: true.
152
+ module Zdr
153
+ extend ContextDev::Internal::Type::Enum
154
+
155
+ ENABLED = :enabled
156
+ DISABLED = :disabled
157
+
158
+ # @!method self.values
159
+ # @return [Array<Symbol>]
160
+ end
134
161
  end
135
162
  end
136
163
  end