context.dev 2.22.0 → 2.23.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 +15 -0
- data/README.md +1 -1
- data/lib/context_dev/models/batch_list_params.rb +21 -4
- data/lib/context_dev/models/batch_submit_params.rb +32 -40
- data/lib/context_dev/models/brand_retrieve_params.rb +599 -14
- data/lib/context_dev/models/parse_handle_params.rb +5 -5
- data/lib/context_dev/models/web_scrape_params.rb +8 -8
- data/lib/context_dev/models/web_scrape_response.rb +2 -2
- data/lib/context_dev/models/web_search_params.rb +15 -13
- data/lib/context_dev/models/web_web_crawl_md_params.rb +21 -15
- data/lib/context_dev/resources/batch.rb +1 -1
- data/lib/context_dev/resources/logs.rb +2 -2
- data/lib/context_dev/resources/web.rb +7 -7
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/batch_list_params.rbi +30 -6
- data/rbi/context_dev/models/batch_submit_params.rbi +36 -48
- data/rbi/context_dev/models/brand_retrieve_params.rbi +4515 -1649
- data/rbi/context_dev/models/parse_handle_params.rbi +6 -6
- data/rbi/context_dev/models/web_scrape_params.rbi +11 -11
- data/rbi/context_dev/models/web_scrape_response.rbi +2 -2
- data/rbi/context_dev/models/web_search_params.rbi +20 -23
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +20 -32
- data/rbi/context_dev/resources/batch.rbi +3 -2
- data/rbi/context_dev/resources/web.rbi +7 -7
- data/sig/context_dev/models/batch_list_params.rbs +17 -5
- data/sig/context_dev/models/brand_retrieve_params.rbs +1148 -15
- data/sig/context_dev/models/web_scrape_params.rbs +5 -5
- data/sig/context_dev/models/web_search_params.rbs +16 -28
- data/sig/context_dev/models/web_web_crawl_md_params.rbs +16 -24
- data/sig/context_dev/resources/batch.rbs +1 -1
- data/sig/context_dev/resources/web.rbs +6 -6
- metadata +2 -2
|
@@ -390,8 +390,7 @@ module ContextDev
|
|
|
390
390
|
sig { returns(T.nilable(Integer)) }
|
|
391
391
|
attr_accessor :max_age_ms
|
|
392
392
|
|
|
393
|
-
# PDF
|
|
394
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
393
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
395
394
|
sig do
|
|
396
395
|
returns(
|
|
397
396
|
T.nilable(
|
|
@@ -474,8 +473,7 @@ module ContextDev
|
|
|
474
473
|
# Maximum cache age in milliseconds. Defaults to 3 days (259200000 ms). Maximum: 1
|
|
475
474
|
# year (31536000000 ms). `0` fetches fresh.
|
|
476
475
|
max_age_ms: nil,
|
|
477
|
-
# PDF
|
|
478
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
476
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
479
477
|
pdf: nil,
|
|
480
478
|
# Wait for CSS animations to finish before extracting, on browser-rendered pages.
|
|
481
479
|
settle_animations: nil,
|
|
@@ -1565,8 +1563,8 @@ module ContextDev
|
|
|
1565
1563
|
)
|
|
1566
1564
|
end
|
|
1567
1565
|
|
|
1568
|
-
# Last
|
|
1569
|
-
#
|
|
1566
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
1567
|
+
# be >= start.
|
|
1570
1568
|
sig { returns(T.nilable(Integer)) }
|
|
1571
1569
|
attr_reader :end_
|
|
1572
1570
|
|
|
@@ -1587,15 +1585,14 @@ module ContextDev
|
|
|
1587
1585
|
sig { params(should_parse: T::Boolean).void }
|
|
1588
1586
|
attr_writer :should_parse
|
|
1589
1587
|
|
|
1590
|
-
# First 1-based PDF page to parse.
|
|
1588
|
+
# First 1-based PDF page to parse.
|
|
1591
1589
|
sig { returns(T.nilable(Integer)) }
|
|
1592
1590
|
attr_reader :start
|
|
1593
1591
|
|
|
1594
1592
|
sig { params(start: Integer).void }
|
|
1595
1593
|
attr_writer :start
|
|
1596
1594
|
|
|
1597
|
-
# PDF
|
|
1598
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
1595
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
1599
1596
|
sig do
|
|
1600
1597
|
params(
|
|
1601
1598
|
end_: Integer,
|
|
@@ -1605,14 +1602,14 @@ module ContextDev
|
|
|
1605
1602
|
).returns(T.attached_class)
|
|
1606
1603
|
end
|
|
1607
1604
|
def self.new(
|
|
1608
|
-
# Last
|
|
1609
|
-
#
|
|
1605
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
1606
|
+
# be >= start.
|
|
1610
1607
|
end_: nil,
|
|
1611
1608
|
# Read scanned PDF pages with OCR; preserve pages that already have text.
|
|
1612
1609
|
ocr: nil,
|
|
1613
1610
|
# Parse PDF URLs. When false, PDFs fail with `PDF_SKIPPED`.
|
|
1614
1611
|
should_parse: nil,
|
|
1615
|
-
# First 1-based PDF page to parse.
|
|
1612
|
+
# First 1-based PDF page to parse.
|
|
1616
1613
|
start: nil
|
|
1617
1614
|
)
|
|
1618
1615
|
end
|
|
@@ -1814,8 +1811,7 @@ module ContextDev
|
|
|
1814
1811
|
sig { returns(T.nilable(Integer)) }
|
|
1815
1812
|
attr_accessor :max_age_ms
|
|
1816
1813
|
|
|
1817
|
-
# PDF
|
|
1818
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
1814
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
1819
1815
|
sig do
|
|
1820
1816
|
returns(
|
|
1821
1817
|
T.nilable(
|
|
@@ -1881,8 +1877,7 @@ module ContextDev
|
|
|
1881
1877
|
# Maximum cache age in milliseconds. Defaults to 3 days (259200000 ms). Maximum: 1
|
|
1882
1878
|
# year (31536000000 ms). `0` fetches fresh.
|
|
1883
1879
|
max_age_ms: nil,
|
|
1884
|
-
# PDF
|
|
1885
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
1880
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
1886
1881
|
pdf: nil,
|
|
1887
1882
|
# Wait for CSS animations to finish before extracting, on browser-rendered pages.
|
|
1888
1883
|
settle_animations: nil,
|
|
@@ -2966,8 +2961,8 @@ module ContextDev
|
|
|
2966
2961
|
)
|
|
2967
2962
|
end
|
|
2968
2963
|
|
|
2969
|
-
# Last
|
|
2970
|
-
#
|
|
2964
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
2965
|
+
# be >= start.
|
|
2971
2966
|
sig { returns(T.nilable(Integer)) }
|
|
2972
2967
|
attr_reader :end_
|
|
2973
2968
|
|
|
@@ -2988,15 +2983,14 @@ module ContextDev
|
|
|
2988
2983
|
sig { params(should_parse: T::Boolean).void }
|
|
2989
2984
|
attr_writer :should_parse
|
|
2990
2985
|
|
|
2991
|
-
# First 1-based PDF page to parse.
|
|
2986
|
+
# First 1-based PDF page to parse.
|
|
2992
2987
|
sig { returns(T.nilable(Integer)) }
|
|
2993
2988
|
attr_reader :start
|
|
2994
2989
|
|
|
2995
2990
|
sig { params(start: Integer).void }
|
|
2996
2991
|
attr_writer :start
|
|
2997
2992
|
|
|
2998
|
-
# PDF
|
|
2999
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
2993
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
3000
2994
|
sig do
|
|
3001
2995
|
params(
|
|
3002
2996
|
end_: Integer,
|
|
@@ -3006,14 +3000,14 @@ module ContextDev
|
|
|
3006
3000
|
).returns(T.attached_class)
|
|
3007
3001
|
end
|
|
3008
3002
|
def self.new(
|
|
3009
|
-
# Last
|
|
3010
|
-
#
|
|
3003
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
3004
|
+
# be >= start.
|
|
3011
3005
|
end_: nil,
|
|
3012
3006
|
# Read scanned PDF pages with OCR; preserve pages that already have text.
|
|
3013
3007
|
ocr: nil,
|
|
3014
3008
|
# Parse PDF URLs. When false, PDFs fail with `PDF_SKIPPED`.
|
|
3015
3009
|
should_parse: nil,
|
|
3016
|
-
# First 1-based PDF page to parse.
|
|
3010
|
+
# First 1-based PDF page to parse.
|
|
3017
3011
|
start: nil
|
|
3018
3012
|
)
|
|
3019
3013
|
end
|
|
@@ -3542,8 +3536,7 @@ module ContextDev
|
|
|
3542
3536
|
sig { returns(T.nilable(Integer)) }
|
|
3543
3537
|
attr_accessor :max_age_ms
|
|
3544
3538
|
|
|
3545
|
-
# PDF
|
|
3546
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
3539
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
3547
3540
|
sig do
|
|
3548
3541
|
returns(
|
|
3549
3542
|
T.nilable(
|
|
@@ -3626,8 +3619,7 @@ module ContextDev
|
|
|
3626
3619
|
# Maximum cache age in milliseconds. Defaults to 3 days (259200000 ms). Maximum: 1
|
|
3627
3620
|
# year (31536000000 ms). `0` fetches fresh.
|
|
3628
3621
|
max_age_ms: nil,
|
|
3629
|
-
# PDF
|
|
3630
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
3622
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
3631
3623
|
pdf: nil,
|
|
3632
3624
|
# Wait for CSS animations to finish before extracting, on browser-rendered pages.
|
|
3633
3625
|
settle_animations: nil,
|
|
@@ -4717,8 +4709,8 @@ module ContextDev
|
|
|
4717
4709
|
)
|
|
4718
4710
|
end
|
|
4719
4711
|
|
|
4720
|
-
# Last
|
|
4721
|
-
#
|
|
4712
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
4713
|
+
# be >= start.
|
|
4722
4714
|
sig { returns(T.nilable(Integer)) }
|
|
4723
4715
|
attr_reader :end_
|
|
4724
4716
|
|
|
@@ -4739,15 +4731,14 @@ module ContextDev
|
|
|
4739
4731
|
sig { params(should_parse: T::Boolean).void }
|
|
4740
4732
|
attr_writer :should_parse
|
|
4741
4733
|
|
|
4742
|
-
# First 1-based PDF page to parse.
|
|
4734
|
+
# First 1-based PDF page to parse.
|
|
4743
4735
|
sig { returns(T.nilable(Integer)) }
|
|
4744
4736
|
attr_reader :start
|
|
4745
4737
|
|
|
4746
4738
|
sig { params(start: Integer).void }
|
|
4747
4739
|
attr_writer :start
|
|
4748
4740
|
|
|
4749
|
-
# PDF
|
|
4750
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
4741
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
4751
4742
|
sig do
|
|
4752
4743
|
params(
|
|
4753
4744
|
end_: Integer,
|
|
@@ -4757,14 +4748,14 @@ module ContextDev
|
|
|
4757
4748
|
).returns(T.attached_class)
|
|
4758
4749
|
end
|
|
4759
4750
|
def self.new(
|
|
4760
|
-
# Last
|
|
4761
|
-
#
|
|
4751
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
4752
|
+
# be >= start.
|
|
4762
4753
|
end_: nil,
|
|
4763
4754
|
# Read scanned PDF pages with OCR; preserve pages that already have text.
|
|
4764
4755
|
ocr: nil,
|
|
4765
4756
|
# Parse PDF URLs. When false, PDFs fail with `PDF_SKIPPED`.
|
|
4766
4757
|
should_parse: nil,
|
|
4767
|
-
# First 1-based PDF page to parse.
|
|
4758
|
+
# First 1-based PDF page to parse.
|
|
4768
4759
|
start: nil
|
|
4769
4760
|
)
|
|
4770
4761
|
end
|
|
@@ -5190,8 +5181,7 @@ module ContextDev
|
|
|
5190
5181
|
sig { returns(T.nilable(Integer)) }
|
|
5191
5182
|
attr_accessor :max_age_ms
|
|
5192
5183
|
|
|
5193
|
-
# PDF
|
|
5194
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
5184
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
5195
5185
|
sig do
|
|
5196
5186
|
returns(
|
|
5197
5187
|
T.nilable(
|
|
@@ -5257,8 +5247,7 @@ module ContextDev
|
|
|
5257
5247
|
# Maximum cache age in milliseconds. Defaults to 3 days (259200000 ms). Maximum: 1
|
|
5258
5248
|
# year (31536000000 ms). `0` fetches fresh.
|
|
5259
5249
|
max_age_ms: nil,
|
|
5260
|
-
# PDF
|
|
5261
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
5250
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
5262
5251
|
pdf: nil,
|
|
5263
5252
|
# Wait for CSS animations to finish before extracting, on browser-rendered pages.
|
|
5264
5253
|
settle_animations: nil,
|
|
@@ -6342,8 +6331,8 @@ module ContextDev
|
|
|
6342
6331
|
)
|
|
6343
6332
|
end
|
|
6344
6333
|
|
|
6345
|
-
# Last
|
|
6346
|
-
#
|
|
6334
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
6335
|
+
# be >= start.
|
|
6347
6336
|
sig { returns(T.nilable(Integer)) }
|
|
6348
6337
|
attr_reader :end_
|
|
6349
6338
|
|
|
@@ -6364,15 +6353,14 @@ module ContextDev
|
|
|
6364
6353
|
sig { params(should_parse: T::Boolean).void }
|
|
6365
6354
|
attr_writer :should_parse
|
|
6366
6355
|
|
|
6367
|
-
# First 1-based PDF page to parse.
|
|
6356
|
+
# First 1-based PDF page to parse.
|
|
6368
6357
|
sig { returns(T.nilable(Integer)) }
|
|
6369
6358
|
attr_reader :start
|
|
6370
6359
|
|
|
6371
6360
|
sig { params(start: Integer).void }
|
|
6372
6361
|
attr_writer :start
|
|
6373
6362
|
|
|
6374
|
-
# PDF
|
|
6375
|
-
# detection/OCR to an inclusive 1-based page range.
|
|
6363
|
+
# PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
|
|
6376
6364
|
sig do
|
|
6377
6365
|
params(
|
|
6378
6366
|
end_: Integer,
|
|
@@ -6382,14 +6370,14 @@ module ContextDev
|
|
|
6382
6370
|
).returns(T.attached_class)
|
|
6383
6371
|
end
|
|
6384
6372
|
def self.new(
|
|
6385
|
-
# Last
|
|
6386
|
-
#
|
|
6373
|
+
# Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
|
|
6374
|
+
# be >= start.
|
|
6387
6375
|
end_: nil,
|
|
6388
6376
|
# Read scanned PDF pages with OCR; preserve pages that already have text.
|
|
6389
6377
|
ocr: nil,
|
|
6390
6378
|
# Parse PDF URLs. When false, PDFs fail with `PDF_SKIPPED`.
|
|
6391
6379
|
should_parse: nil,
|
|
6392
|
-
# First 1-based PDF page to parse.
|
|
6380
|
+
# First 1-based PDF page to parse.
|
|
6393
6381
|
start: nil
|
|
6394
6382
|
)
|
|
6395
6383
|
end
|