context.dev 2.5.0 → 2.7.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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +1 -1
  4. data/lib/context_dev/client.rb +4 -0
  5. data/lib/context_dev/models/batch_cancel_params.rb +22 -0
  6. data/lib/context_dev/models/batch_cancel_response.rb +241 -0
  7. data/lib/context_dev/models/batch_get_results_params.rb +42 -0
  8. data/lib/context_dev/models/batch_get_results_response.rb +463 -0
  9. data/lib/context_dev/models/batch_list_params.rb +94 -0
  10. data/lib/context_dev/models/batch_list_response.rb +379 -0
  11. data/lib/context_dev/models/batch_retrieve_params.rb +22 -0
  12. data/lib/context_dev/models/batch_retrieve_response.rb +373 -0
  13. data/lib/context_dev/models/batch_submit_params.rb +56 -0
  14. data/lib/context_dev/models/batch_submit_response.rb +614 -0
  15. data/lib/context_dev/models/crawl_controls.rb +126 -0
  16. data/lib/context_dev/models/failure.rb +27 -0
  17. data/lib/context_dev/models/intake.rb +62 -0
  18. data/lib/context_dev/models/monitor_create_params.rb +141 -127
  19. data/lib/context_dev/models/monitor_create_response.rb +34 -10
  20. data/lib/context_dev/models/monitor_list_response.rb +21 -7
  21. data/lib/context_dev/models/monitor_retrieve_response.rb +21 -7
  22. data/lib/context_dev/models/monitor_update_params.rb +21 -7
  23. data/lib/context_dev/models/monitor_update_response.rb +21 -7
  24. data/lib/context_dev/models/page_error_count.rb +26 -0
  25. data/lib/context_dev/models/web_screenshot_params.rb +5 -7
  26. data/lib/context_dev/models/web_web_crawl_md_params.rb +5 -7
  27. data/lib/context_dev/models/web_web_scrape_html_params.rb +5 -7
  28. data/lib/context_dev/models/web_web_scrape_html_response.rb +93 -1
  29. data/lib/context_dev/models/web_web_scrape_md_params.rb +5 -7
  30. data/lib/context_dev/models/web_web_scrape_md_response.rb +93 -1
  31. data/lib/context_dev/models.rb +18 -0
  32. data/lib/context_dev/resources/batch.rb +152 -0
  33. data/lib/context_dev/resources/monitors.rb +5 -5
  34. data/lib/context_dev/resources/web.rb +4 -4
  35. data/lib/context_dev/version.rb +1 -1
  36. data/lib/context_dev.rb +15 -0
  37. data/rbi/context_dev/client.rbi +3 -0
  38. data/rbi/context_dev/models/batch_cancel_params.rbi +40 -0
  39. data/rbi/context_dev/models/batch_cancel_response.rbi +424 -0
  40. data/rbi/context_dev/models/batch_get_results_params.rbi +70 -0
  41. data/rbi/context_dev/models/batch_get_results_response.rbi +848 -0
  42. data/rbi/context_dev/models/batch_list_params.rbi +166 -0
  43. data/rbi/context_dev/models/batch_list_response.rbi +713 -0
  44. data/rbi/context_dev/models/batch_retrieve_params.rbi +40 -0
  45. data/rbi/context_dev/models/batch_retrieve_response.rbi +672 -0
  46. data/rbi/context_dev/models/batch_submit_params.rbi +105 -0
  47. data/rbi/context_dev/models/batch_submit_response.rbi +1330 -0
  48. data/rbi/context_dev/models/crawl_controls.rbi +252 -0
  49. data/rbi/context_dev/models/failure.rbi +35 -0
  50. data/rbi/context_dev/models/intake.rbi +88 -0
  51. data/rbi/context_dev/models/monitor_create_params.rbi +274 -242
  52. data/rbi/context_dev/models/monitor_create_response.rbi +38 -7
  53. data/rbi/context_dev/models/monitor_list_response.rbi +24 -5
  54. data/rbi/context_dev/models/monitor_retrieve_response.rbi +24 -5
  55. data/rbi/context_dev/models/monitor_update_params.rbi +24 -5
  56. data/rbi/context_dev/models/monitor_update_response.rbi +24 -5
  57. data/rbi/context_dev/models/page_error_count.rbi +34 -0
  58. data/rbi/context_dev/models/web_screenshot_params.rbi +6 -9
  59. data/rbi/context_dev/models/web_web_crawl_md_params.rbi +6 -9
  60. data/rbi/context_dev/models/web_web_scrape_html_params.rbi +6 -9
  61. data/rbi/context_dev/models/web_web_scrape_html_response.rbi +182 -0
  62. data/rbi/context_dev/models/web_web_scrape_md_params.rbi +6 -9
  63. data/rbi/context_dev/models/web_web_scrape_md_response.rbi +180 -0
  64. data/rbi/context_dev/models.rbi +18 -0
  65. data/rbi/context_dev/resources/batch.rbi +117 -0
  66. data/rbi/context_dev/resources/monitors.rbi +12 -12
  67. data/rbi/context_dev/resources/web.rbi +8 -12
  68. data/sig/context_dev/client.rbs +2 -0
  69. data/sig/context_dev/models/batch_cancel_params.rbs +23 -0
  70. data/sig/context_dev/models/batch_cancel_response.rbs +174 -0
  71. data/sig/context_dev/models/batch_get_results_params.rbs +36 -0
  72. data/sig/context_dev/models/batch_get_results_response.rbs +399 -0
  73. data/sig/context_dev/models/batch_list_params.rbs +94 -0
  74. data/sig/context_dev/models/batch_list_response.rbs +283 -0
  75. data/sig/context_dev/models/batch_retrieve_params.rbs +23 -0
  76. data/sig/context_dev/models/batch_retrieve_response.rbs +262 -0
  77. data/sig/context_dev/models/batch_submit_params.rbs +52 -0
  78. data/sig/context_dev/models/batch_submit_response.rbs +542 -0
  79. data/sig/context_dev/models/crawl_controls.rbs +114 -0
  80. data/sig/context_dev/models/failure.rbs +15 -0
  81. data/sig/context_dev/models/intake.rbs +40 -0
  82. data/sig/context_dev/models/monitor_create_params.rbs +117 -97
  83. data/sig/context_dev/models/monitor_create_response.rbs +18 -1
  84. data/sig/context_dev/models/monitor_list_response.rbs +13 -1
  85. data/sig/context_dev/models/monitor_retrieve_response.rbs +13 -1
  86. data/sig/context_dev/models/monitor_update_params.rbs +13 -1
  87. data/sig/context_dev/models/monitor_update_response.rbs +13 -1
  88. data/sig/context_dev/models/page_error_count.rbs +15 -0
  89. data/sig/context_dev/models/web_web_scrape_html_response.rbs +85 -0
  90. data/sig/context_dev/models/web_web_scrape_md_response.rbs +85 -0
  91. data/sig/context_dev/models.rbs +18 -0
  92. data/sig/context_dev/resources/batch.rbs +41 -0
  93. data/sig/context_dev/resources/monitors.rbs +2 -2
  94. metadata +47 -2
@@ -25,6 +25,12 @@ module ContextDev
25
25
  sig { returns(Time) }
26
26
  attr_accessor :created_at
27
27
 
28
+ # The baseline run queued by this create call, or null if it could not be queued
29
+ # immediately (in which case the baseline runs on the next scheduled tick). Poll
30
+ # GET /monitors/{monitor_id}/runs/{run_id}.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_accessor :initial_run_id
33
+
28
34
  # Top-level monitor category. Always `web` today; the concrete behavior is
29
35
  # described by `target` and `change_detection`.
30
36
  sig do
@@ -149,8 +155,8 @@ module ContextDev
149
155
  end
150
156
  attr_writer :webhook_failure
151
157
 
152
- # A web monitor. `mode` is the constant `web`; behavior is described by `target`
153
- # (page/sitemap/extract) and `change_detection` (exact/semantic).
158
+ # A newly created monitor plus `initial_run_id`, the id of the baseline run queued
159
+ # at creation.
154
160
  sig do
155
161
  params(
156
162
  id: String,
@@ -160,6 +166,7 @@ module ContextDev
160
166
  ContextDev::Models::MonitorCreateResponse::ChangeDetection::Semantic::OrHash
161
167
  ),
162
168
  created_at: Time,
169
+ initial_run_id: T.nilable(String),
163
170
  mode: ContextDev::Models::MonitorCreateResponse::Mode::OrSymbol,
164
171
  name: String,
165
172
  schedule: ContextDev::Models::MonitorCreateResponse::Schedule::OrHash,
@@ -202,6 +209,10 @@ module ContextDev
202
209
  # Discriminated union describing how changes are detected.
203
210
  change_detection:,
204
211
  created_at:,
212
+ # The baseline run queued by this create call, or null if it could not be queued
213
+ # immediately (in which case the baseline runs on the next scheduled tick). Poll
214
+ # GET /monitors/{monitor_id}/runs/{run_id}.
215
+ initial_run_id:,
205
216
  # Top-level monitor category. Always `web` today; the concrete behavior is
206
217
  # described by `target` and `change_detection`.
207
218
  mode:,
@@ -248,6 +259,7 @@ module ContextDev
248
259
  change_detection:
249
260
  ContextDev::Models::MonitorCreateResponse::ChangeDetection::Variants,
250
261
  created_at: Time,
262
+ initial_run_id: T.nilable(String),
251
263
  mode: ContextDev::Models::MonitorCreateResponse::Mode::TaggedSymbol,
252
264
  name: String,
253
265
  schedule: ContextDev::Models::MonitorCreateResponse::Schedule,
@@ -330,9 +342,10 @@ module ContextDev
330
342
  sig { params(confidence_threshold: Float).void }
331
343
  attr_writer :confidence_threshold
332
344
 
333
- # Detect meaning-level changes to tracked page content, ignoring cosmetic or
334
- # paraphrase-only differences. Which changes are meaningful is judged against the
335
- # extract target's `instructions` (and `schema`, when provided).
345
+ # Detect meaning-level changes to page content, ignoring cosmetic or
346
+ # instruction-irrelevant differences. Which changes are meaningful is judged
347
+ # against the page or extract target's `instructions` (and an extract target's
348
+ # `schema`, when provided).
336
349
  sig do
337
350
  params(confidence_threshold: Float, type: Symbol).returns(
338
351
  T.attached_class
@@ -590,6 +603,14 @@ module ContextDev
590
603
  sig { returns(String) }
591
604
  attr_accessor :url
592
605
 
606
+ # Plain-language goal describing which page changes matter. When provided without
607
+ # change_detection, semantic detection is inferred.
608
+ sig { returns(T.nilable(String)) }
609
+ attr_reader :instructions
610
+
611
+ sig { params(instructions: String).void }
612
+ attr_writer :instructions
613
+
593
614
  # Normalize whitespace before comparing or analyzing text.
594
615
  sig { returns(T.nilable(T::Boolean)) }
595
616
  attr_reader :normalize_whitespace
@@ -597,16 +618,21 @@ module ContextDev
597
618
  sig { params(normalize_whitespace: T::Boolean).void }
598
619
  attr_writer :normalize_whitespace
599
620
 
600
- # Watch a single web page.
621
+ # Watch a single web page. Exact detection reports visible-text diffs; semantic
622
+ # detection judges confirmed stable diffs against `instructions`.
601
623
  sig do
602
624
  params(
603
625
  url: String,
626
+ instructions: String,
604
627
  normalize_whitespace: T::Boolean,
605
628
  type: Symbol
606
629
  ).returns(T.attached_class)
607
630
  end
608
631
  def self.new(
609
632
  url:,
633
+ # Plain-language goal describing which page changes matter. When provided without
634
+ # change_detection, semantic detection is inferred.
635
+ instructions: nil,
610
636
  # Normalize whitespace before comparing or analyzing text.
611
637
  normalize_whitespace: nil,
612
638
  type: :page
@@ -615,7 +641,12 @@ module ContextDev
615
641
 
616
642
  sig do
617
643
  override.returns(
618
- { type: Symbol, url: String, normalize_whitespace: T::Boolean }
644
+ {
645
+ type: Symbol,
646
+ url: String,
647
+ instructions: String,
648
+ normalize_whitespace: T::Boolean
649
+ }
619
650
  )
620
651
  end
621
652
  def to_hash
@@ -391,9 +391,10 @@ module ContextDev
391
391
  sig { params(confidence_threshold: Float).void }
392
392
  attr_writer :confidence_threshold
393
393
 
394
- # Detect meaning-level changes to tracked page content, ignoring cosmetic or
395
- # paraphrase-only differences. Which changes are meaningful is judged against the
396
- # extract target's `instructions` (and `schema`, when provided).
394
+ # Detect meaning-level changes to page content, ignoring cosmetic or
395
+ # instruction-irrelevant differences. Which changes are meaningful is judged
396
+ # against the page or extract target's `instructions` (and an extract target's
397
+ # `schema`, when provided).
397
398
  sig do
398
399
  params(confidence_threshold: Float, type: Symbol).returns(
399
400
  T.attached_class
@@ -654,6 +655,14 @@ module ContextDev
654
655
  sig { returns(String) }
655
656
  attr_accessor :url
656
657
 
658
+ # Plain-language goal describing which page changes matter. When provided without
659
+ # change_detection, semantic detection is inferred.
660
+ sig { returns(T.nilable(String)) }
661
+ attr_reader :instructions
662
+
663
+ sig { params(instructions: String).void }
664
+ attr_writer :instructions
665
+
657
666
  # Normalize whitespace before comparing or analyzing text.
658
667
  sig { returns(T.nilable(T::Boolean)) }
659
668
  attr_reader :normalize_whitespace
@@ -661,16 +670,21 @@ module ContextDev
661
670
  sig { params(normalize_whitespace: T::Boolean).void }
662
671
  attr_writer :normalize_whitespace
663
672
 
664
- # Watch a single web page.
673
+ # Watch a single web page. Exact detection reports visible-text diffs; semantic
674
+ # detection judges confirmed stable diffs against `instructions`.
665
675
  sig do
666
676
  params(
667
677
  url: String,
678
+ instructions: String,
668
679
  normalize_whitespace: T::Boolean,
669
680
  type: Symbol
670
681
  ).returns(T.attached_class)
671
682
  end
672
683
  def self.new(
673
684
  url:,
685
+ # Plain-language goal describing which page changes matter. When provided without
686
+ # change_detection, semantic detection is inferred.
687
+ instructions: nil,
674
688
  # Normalize whitespace before comparing or analyzing text.
675
689
  normalize_whitespace: nil,
676
690
  type: :page
@@ -679,7 +693,12 @@ module ContextDev
679
693
 
680
694
  sig do
681
695
  override.returns(
682
- { type: Symbol, url: String, normalize_whitespace: T::Boolean }
696
+ {
697
+ type: Symbol,
698
+ url: String,
699
+ instructions: String,
700
+ normalize_whitespace: T::Boolean
701
+ }
683
702
  )
684
703
  end
685
704
  def to_hash
@@ -338,9 +338,10 @@ module ContextDev
338
338
  sig { params(confidence_threshold: Float).void }
339
339
  attr_writer :confidence_threshold
340
340
 
341
- # Detect meaning-level changes to tracked page content, ignoring cosmetic or
342
- # paraphrase-only differences. Which changes are meaningful is judged against the
343
- # extract target's `instructions` (and `schema`, when provided).
341
+ # Detect meaning-level changes to page content, ignoring cosmetic or
342
+ # instruction-irrelevant differences. Which changes are meaningful is judged
343
+ # against the page or extract target's `instructions` (and an extract target's
344
+ # `schema`, when provided).
344
345
  sig do
345
346
  params(confidence_threshold: Float, type: Symbol).returns(
346
347
  T.attached_class
@@ -598,6 +599,14 @@ module ContextDev
598
599
  sig { returns(String) }
599
600
  attr_accessor :url
600
601
 
602
+ # Plain-language goal describing which page changes matter. When provided without
603
+ # change_detection, semantic detection is inferred.
604
+ sig { returns(T.nilable(String)) }
605
+ attr_reader :instructions
606
+
607
+ sig { params(instructions: String).void }
608
+ attr_writer :instructions
609
+
601
610
  # Normalize whitespace before comparing or analyzing text.
602
611
  sig { returns(T.nilable(T::Boolean)) }
603
612
  attr_reader :normalize_whitespace
@@ -605,16 +614,21 @@ module ContextDev
605
614
  sig { params(normalize_whitespace: T::Boolean).void }
606
615
  attr_writer :normalize_whitespace
607
616
 
608
- # Watch a single web page.
617
+ # Watch a single web page. Exact detection reports visible-text diffs; semantic
618
+ # detection judges confirmed stable diffs against `instructions`.
609
619
  sig do
610
620
  params(
611
621
  url: String,
622
+ instructions: String,
612
623
  normalize_whitespace: T::Boolean,
613
624
  type: Symbol
614
625
  ).returns(T.attached_class)
615
626
  end
616
627
  def self.new(
617
628
  url:,
629
+ # Plain-language goal describing which page changes matter. When provided without
630
+ # change_detection, semantic detection is inferred.
631
+ instructions: nil,
618
632
  # Normalize whitespace before comparing or analyzing text.
619
633
  normalize_whitespace: nil,
620
634
  type: :page
@@ -623,7 +637,12 @@ module ContextDev
623
637
 
624
638
  sig do
625
639
  override.returns(
626
- { type: Symbol, url: String, normalize_whitespace: T::Boolean }
640
+ {
641
+ type: Symbol,
642
+ url: String,
643
+ instructions: String,
644
+ normalize_whitespace: T::Boolean
645
+ }
627
646
  )
628
647
  end
629
648
  def to_hash
@@ -233,9 +233,10 @@ module ContextDev
233
233
  sig { params(confidence_threshold: Float).void }
234
234
  attr_writer :confidence_threshold
235
235
 
236
- # Detect meaning-level changes to tracked page content, ignoring cosmetic or
237
- # paraphrase-only differences. Which changes are meaningful is judged against the
238
- # extract target's `instructions` (and `schema`, when provided).
236
+ # Detect meaning-level changes to page content, ignoring cosmetic or
237
+ # instruction-irrelevant differences. Which changes are meaningful is judged
238
+ # against the page or extract target's `instructions` (and an extract target's
239
+ # `schema`, when provided).
239
240
  sig do
240
241
  params(confidence_threshold: Float, type: Symbol).returns(
241
242
  T.attached_class
@@ -431,6 +432,14 @@ module ContextDev
431
432
  sig { returns(String) }
432
433
  attr_accessor :url
433
434
 
435
+ # Plain-language goal describing which page changes matter. When provided without
436
+ # change_detection, semantic detection is inferred.
437
+ sig { returns(T.nilable(String)) }
438
+ attr_reader :instructions
439
+
440
+ sig { params(instructions: String).void }
441
+ attr_writer :instructions
442
+
434
443
  # Normalize whitespace before comparing or analyzing text.
435
444
  sig { returns(T.nilable(T::Boolean)) }
436
445
  attr_reader :normalize_whitespace
@@ -438,16 +447,21 @@ module ContextDev
438
447
  sig { params(normalize_whitespace: T::Boolean).void }
439
448
  attr_writer :normalize_whitespace
440
449
 
441
- # Watch a single web page.
450
+ # Watch a single web page. Exact detection reports visible-text diffs; semantic
451
+ # detection judges confirmed stable diffs against `instructions`.
442
452
  sig do
443
453
  params(
444
454
  url: String,
455
+ instructions: String,
445
456
  normalize_whitespace: T::Boolean,
446
457
  type: Symbol
447
458
  ).returns(T.attached_class)
448
459
  end
449
460
  def self.new(
450
461
  url:,
462
+ # Plain-language goal describing which page changes matter. When provided without
463
+ # change_detection, semantic detection is inferred.
464
+ instructions: nil,
451
465
  # Normalize whitespace before comparing or analyzing text.
452
466
  normalize_whitespace: nil,
453
467
  type: :page
@@ -456,7 +470,12 @@ module ContextDev
456
470
 
457
471
  sig do
458
472
  override.returns(
459
- { type: Symbol, url: String, normalize_whitespace: T::Boolean }
473
+ {
474
+ type: Symbol,
475
+ url: String,
476
+ instructions: String,
477
+ normalize_whitespace: T::Boolean
478
+ }
460
479
  )
461
480
  end
462
481
  def to_hash
@@ -330,9 +330,10 @@ module ContextDev
330
330
  sig { params(confidence_threshold: Float).void }
331
331
  attr_writer :confidence_threshold
332
332
 
333
- # Detect meaning-level changes to tracked page content, ignoring cosmetic or
334
- # paraphrase-only differences. Which changes are meaningful is judged against the
335
- # extract target's `instructions` (and `schema`, when provided).
333
+ # Detect meaning-level changes to page content, ignoring cosmetic or
334
+ # instruction-irrelevant differences. Which changes are meaningful is judged
335
+ # against the page or extract target's `instructions` (and an extract target's
336
+ # `schema`, when provided).
336
337
  sig do
337
338
  params(confidence_threshold: Float, type: Symbol).returns(
338
339
  T.attached_class
@@ -590,6 +591,14 @@ module ContextDev
590
591
  sig { returns(String) }
591
592
  attr_accessor :url
592
593
 
594
+ # Plain-language goal describing which page changes matter. When provided without
595
+ # change_detection, semantic detection is inferred.
596
+ sig { returns(T.nilable(String)) }
597
+ attr_reader :instructions
598
+
599
+ sig { params(instructions: String).void }
600
+ attr_writer :instructions
601
+
593
602
  # Normalize whitespace before comparing or analyzing text.
594
603
  sig { returns(T.nilable(T::Boolean)) }
595
604
  attr_reader :normalize_whitespace
@@ -597,16 +606,21 @@ module ContextDev
597
606
  sig { params(normalize_whitespace: T::Boolean).void }
598
607
  attr_writer :normalize_whitespace
599
608
 
600
- # Watch a single web page.
609
+ # Watch a single web page. Exact detection reports visible-text diffs; semantic
610
+ # detection judges confirmed stable diffs against `instructions`.
601
611
  sig do
602
612
  params(
603
613
  url: String,
614
+ instructions: String,
604
615
  normalize_whitespace: T::Boolean,
605
616
  type: Symbol
606
617
  ).returns(T.attached_class)
607
618
  end
608
619
  def self.new(
609
620
  url:,
621
+ # Plain-language goal describing which page changes matter. When provided without
622
+ # change_detection, semantic detection is inferred.
623
+ instructions: nil,
610
624
  # Normalize whitespace before comparing or analyzing text.
611
625
  normalize_whitespace: nil,
612
626
  type: :page
@@ -615,7 +629,12 @@ module ContextDev
615
629
 
616
630
  sig do
617
631
  override.returns(
618
- { type: Symbol, url: String, normalize_whitespace: T::Boolean }
632
+ {
633
+ type: Symbol,
634
+ url: String,
635
+ instructions: String,
636
+ normalize_whitespace: T::Boolean
637
+ }
619
638
  )
620
639
  end
621
640
  def to_hash
@@ -0,0 +1,34 @@
1
+ # typed: strong
2
+
3
+ module ContextDev
4
+ module Models
5
+ class PageErrorCount < ContextDev::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(ContextDev::PageErrorCount, ContextDev::Internal::AnyHash)
9
+ end
10
+
11
+ # Error code for these failures.
12
+ sig { returns(String) }
13
+ attr_accessor :code
14
+
15
+ # Pages that failed with this code.
16
+ sig { returns(Integer) }
17
+ attr_accessor :count
18
+
19
+ # Page failures sharing one error code.
20
+ sig { params(code: String, count: Integer).returns(T.attached_class) }
21
+ def self.new(
22
+ # Error code for these failures.
23
+ code:,
24
+ # Pages that failed with this code.
25
+ count:
26
+ )
27
+ end
28
+
29
+ sig { override.returns({ code: String, count: Integer }) }
30
+ def to_hash
31
+ end
32
+ end
33
+ end
34
+ end
@@ -27,9 +27,8 @@ module ContextDev
27
27
  end
28
28
  attr_writer :color_scheme
29
29
 
30
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
31
- # residential proxy exit location. Must be one of Context.dev's supported
32
- # countries. When provided, Context.dev fetches the target page from that country.
30
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
31
+ # alpha-2).
33
32
  sig do
34
33
  returns(T.nilable(ContextDev::WebScreenshotParams::Country::OrSymbol))
35
34
  end
@@ -201,9 +200,8 @@ module ContextDev
201
200
  # Optional parameter to choose the site's visual theme in the screenshot. Use
202
201
  # 'light' or 'dark' when the site offers both appearances.
203
202
  color_scheme: nil,
204
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
205
- # residential proxy exit location. Must be one of Context.dev's supported
206
- # countries. When provided, Context.dev fetches the target page from that country.
203
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
204
+ # alpha-2).
207
205
  country: nil,
208
206
  # A specific URL to screenshot directly, bypassing domain resolution (e.g.,
209
207
  # 'https://example.com/pricing'). When provided, the screenshot is taken of this
@@ -322,9 +320,8 @@ module ContextDev
322
320
  end
323
321
  end
324
322
 
325
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
326
- # residential proxy exit location. Must be one of Context.dev's supported
327
- # countries. When provided, Context.dev fetches the target page from that country.
323
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
324
+ # alpha-2).
328
325
  module Country
329
326
  extend ContextDev::Internal::Type::Enum
330
327
 
@@ -15,9 +15,8 @@ module ContextDev
15
15
  sig { returns(String) }
16
16
  attr_accessor :url
17
17
 
18
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
19
- # residential proxy exit location. Must be one of Context.dev's supported
20
- # countries. When provided, Context.dev fetches the target page from that country.
18
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
19
+ # alpha-2).
21
20
  sig do
22
21
  returns(T.nilable(ContextDev::WebWebCrawlMdParams::Country::OrSymbol))
23
22
  end
@@ -213,9 +212,8 @@ module ContextDev
213
212
  def self.new(
214
213
  # The starting URL for the crawl (must include http:// or https:// protocol)
215
214
  url:,
216
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
217
- # residential proxy exit location. Must be one of Context.dev's supported
218
- # countries. When provided, Context.dev fetches the target page from that country.
215
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
216
+ # alpha-2).
219
217
  country: nil,
220
218
  # CSS selectors to remove before each crawled page is converted to Markdown.
221
219
  # Applied after includeSelectors. Exclusion takes precedence: an element matching
@@ -313,9 +311,8 @@ module ContextDev
313
311
  def to_hash
314
312
  end
315
313
 
316
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
317
- # residential proxy exit location. Must be one of Context.dev's supported
318
- # countries. When provided, Context.dev fetches the target page from that country.
314
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
315
+ # alpha-2).
319
316
  module Country
320
317
  extend ContextDev::Internal::Type::Enum
321
318
 
@@ -35,9 +35,8 @@ module ContextDev
35
35
  end
36
36
  attr_accessor :actions
37
37
 
38
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
39
- # residential proxy exit location. Must be one of Context.dev's supported
40
- # countries. When provided, Context.dev fetches the target page from that country.
38
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
39
+ # alpha-2).
41
40
  sig do
42
41
  returns(
43
42
  T.nilable(ContextDev::WebWebScrapeHTMLParams::Country::OrSymbol)
@@ -246,9 +245,8 @@ module ContextDev
246
245
  # content is captured. Requires a paid plan. Send a JSON array in the query
247
246
  # parameter. Maximum: 5 actions.
248
247
  actions: nil,
249
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
250
- # residential proxy exit location. Must be one of Context.dev's supported
251
- # countries. When provided, Context.dev fetches the target page from that country.
248
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
249
+ # alpha-2).
252
250
  country: nil,
253
251
  # CSS selectors to remove from the result. Applied after includeSelectors.
254
252
  # Exclusion takes precedence: an element matching both is removed. Examples:
@@ -417,9 +415,8 @@ module ContextDev
417
415
  end
418
416
  end
419
417
 
420
- # Two-letter ISO 3166-1 alpha-2 country code identifying a supported Context.dev
421
- # residential proxy exit location. Must be one of Context.dev's supported
422
- # countries. When provided, Context.dev fetches the target page from that country.
418
+ # Fetch the target page through a residential proxy in this country (ISO 3166-1
419
+ # alpha-2).
423
420
  module Country
424
421
  extend ContextDev::Internal::Type::Enum
425
422