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.
Files changed (33) 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/batch_list_params.rb +21 -4
  5. data/lib/context_dev/models/batch_submit_params.rb +32 -40
  6. data/lib/context_dev/models/brand_retrieve_params.rb +599 -14
  7. data/lib/context_dev/models/parse_handle_params.rb +5 -5
  8. data/lib/context_dev/models/web_scrape_params.rb +8 -8
  9. data/lib/context_dev/models/web_scrape_response.rb +2 -2
  10. data/lib/context_dev/models/web_search_params.rb +15 -13
  11. data/lib/context_dev/models/web_web_crawl_md_params.rb +21 -15
  12. data/lib/context_dev/resources/batch.rb +1 -1
  13. data/lib/context_dev/resources/logs.rb +2 -2
  14. data/lib/context_dev/resources/web.rb +7 -7
  15. data/lib/context_dev/version.rb +1 -1
  16. data/rbi/context_dev/models/batch_list_params.rbi +30 -6
  17. data/rbi/context_dev/models/batch_submit_params.rbi +36 -48
  18. data/rbi/context_dev/models/brand_retrieve_params.rbi +4515 -1649
  19. data/rbi/context_dev/models/parse_handle_params.rbi +6 -6
  20. data/rbi/context_dev/models/web_scrape_params.rbi +11 -11
  21. data/rbi/context_dev/models/web_scrape_response.rbi +2 -2
  22. data/rbi/context_dev/models/web_search_params.rbi +20 -23
  23. data/rbi/context_dev/models/web_web_crawl_md_params.rbi +20 -32
  24. data/rbi/context_dev/resources/batch.rbi +3 -2
  25. data/rbi/context_dev/resources/web.rbi +7 -7
  26. data/sig/context_dev/models/batch_list_params.rbs +17 -5
  27. data/sig/context_dev/models/brand_retrieve_params.rbs +1148 -15
  28. data/sig/context_dev/models/web_scrape_params.rbs +5 -5
  29. data/sig/context_dev/models/web_search_params.rbs +16 -28
  30. data/sig/context_dev/models/web_web_crawl_md_params.rbs +16 -24
  31. data/sig/context_dev/resources/batch.rbs +1 -1
  32. data/sig/context_dev/resources/web.rbs +6 -6
  33. metadata +2 -2
@@ -324,15 +324,15 @@ module ContextDev
324
324
  )
325
325
  end
326
326
 
327
- # Last 1-based PDF page to parse. When omitted, parsing ends at the last page.
328
- # Must be greater than or equal to start when both are provided.
327
+ # Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
328
+ # be >= start.
329
329
  sig { returns(T.nilable(Integer)) }
330
330
  attr_reader :end_
331
331
 
332
332
  sig { params(end_: Integer).void }
333
333
  attr_writer :end_
334
334
 
335
- # First 1-based PDF page to parse. When omitted, parsing starts at the first page.
335
+ # First 1-based PDF page to parse.
336
336
  sig { returns(T.nilable(Integer)) }
337
337
  attr_reader :start
338
338
 
@@ -342,10 +342,10 @@ module ContextDev
342
342
  # PDF page-range options as a JSON object, e.g. {"start": 2, "end": 5}.
343
343
  sig { params(end_: Integer, start: Integer).returns(T.attached_class) }
344
344
  def self.new(
345
- # Last 1-based PDF page to parse. When omitted, parsing ends at the last page.
346
- # Must be greater than or equal to start when both are provided.
345
+ # Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
346
+ # be >= start.
347
347
  end_: nil,
348
- # First 1-based PDF page to parse. When omitted, parsing starts at the first page.
348
+ # First 1-based PDF page to parse.
349
349
  start: nil
350
350
  )
351
351
  end
@@ -127,7 +127,7 @@ module ContextDev
127
127
  sig { params(tags: T::Array[String]).void }
128
128
  attr_writer :tags
129
129
 
130
- # Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
130
+ # Deadline for the whole request. Defaults to 90000 ms with `fail`. Fixed waits
131
131
  # must end before it.
132
132
  sig { returns(T.nilable(ContextDev::WebScrapeParams::TimeoutOpts)) }
133
133
  attr_reader :timeout_opts
@@ -193,7 +193,7 @@ module ContextDev
193
193
  shared_params: nil,
194
194
  # Labels for tracking request usage. Not retained when zdr is enabled.
195
195
  tags: nil,
196
- # Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
196
+ # Deadline for the whole request. Defaults to 90000 ms with `fail`. Fixed waits
197
197
  # must end before it.
198
198
  timeout_opts: nil,
199
199
  # `enabled` turns on zero data retention. Your organization must have ZDR enabled.
@@ -972,22 +972,22 @@ module ContextDev
972
972
  )
973
973
  end
974
974
 
975
- # Use an AI model when the page has no structured product data.
975
+ # Drop visually duplicate product images, keeping the largest copy.
976
976
  sig { returns(T.nilable(T::Boolean)) }
977
- attr_reader :use_ai_fallback
977
+ attr_reader :dedupe_images
978
978
 
979
- sig { params(use_ai_fallback: T::Boolean).void }
980
- attr_writer :use_ai_fallback
979
+ sig { params(dedupe_images: T::Boolean).void }
980
+ attr_writer :dedupe_images
981
981
 
982
982
  # Product options. Requires formats.product: true.
983
- sig { params(use_ai_fallback: T::Boolean).returns(T.attached_class) }
983
+ sig { params(dedupe_images: T::Boolean).returns(T.attached_class) }
984
984
  def self.new(
985
- # Use an AI model when the page has no structured product data.
986
- use_ai_fallback: nil
985
+ # Drop visually duplicate product images, keeping the largest copy.
986
+ dedupe_images: nil
987
987
  )
988
988
  end
989
989
 
990
- sig { override.returns({ use_ai_fallback: T::Boolean }) }
990
+ sig { override.returns({ dedupe_images: T::Boolean }) }
991
991
  def to_hash
992
992
  end
993
993
  end
@@ -2146,7 +2146,7 @@ module ContextDev
2146
2146
  end
2147
2147
  attr_writer :behavior
2148
2148
 
2149
- # Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
2149
+ # Deadline for the whole request. Defaults to 90000 ms with `fail`. Fixed waits
2150
2150
  # must end before it.
2151
2151
  sig do
2152
2152
  params(
@@ -351,7 +351,7 @@ module ContextDev
351
351
  )
352
352
  end
353
353
 
354
- # Body as base64, after HTTP decompression. Up to 20 MiB decoded.
354
+ # Body as base64, after HTTP decompression. Up to 50 MiB decoded.
355
355
  sig { returns(String) }
356
356
  attr_accessor :base64
357
357
 
@@ -364,7 +364,7 @@ module ContextDev
364
364
  )
365
365
  end
366
366
  def self.new(
367
- # Body as base64, after HTTP decompression. Up to 20 MiB decoded.
367
+ # Body as base64, after HTTP decompression. Up to 50 MiB decoded.
368
368
  base64:,
369
369
  content_type:
370
370
  )
@@ -53,7 +53,7 @@ module ContextDev
53
53
  sig do
54
54
  params(
55
55
  highlights_options:
56
- ContextDev::WebSearchParams::HighlightsOptions::OrHash
56
+ T.nilable(ContextDev::WebSearchParams::HighlightsOptions::OrHash)
57
57
  ).void
58
58
  end
59
59
  attr_writer :highlights_options
@@ -72,7 +72,8 @@ module ContextDev
72
72
 
73
73
  sig do
74
74
  params(
75
- markdown_options: ContextDev::WebSearchParams::MarkdownOptions::OrHash
75
+ markdown_options:
76
+ T.nilable(ContextDev::WebSearchParams::MarkdownOptions::OrHash)
76
77
  ).void
77
78
  end
78
79
  attr_writer :markdown_options
@@ -124,10 +125,10 @@ module ContextDev
124
125
  exclude_domains: T::Array[String],
125
126
  freshness: ContextDev::WebSearchParams::Freshness::OrSymbol,
126
127
  highlights_options:
127
- ContextDev::WebSearchParams::HighlightsOptions::OrHash,
128
+ T.nilable(ContextDev::WebSearchParams::HighlightsOptions::OrHash),
128
129
  include_domains: T::Array[String],
129
130
  markdown_options:
130
- ContextDev::WebSearchParams::MarkdownOptions::OrHash,
131
+ T.nilable(ContextDev::WebSearchParams::MarkdownOptions::OrHash),
131
132
  num_results: Integer,
132
133
  query_fanout: T::Boolean,
133
134
  tags: T::Array[String],
@@ -178,9 +179,11 @@ module ContextDev
178
179
  country: ContextDev::WebSearchParams::Country::OrSymbol,
179
180
  exclude_domains: T::Array[String],
180
181
  freshness: ContextDev::WebSearchParams::Freshness::OrSymbol,
181
- highlights_options: ContextDev::WebSearchParams::HighlightsOptions,
182
+ highlights_options:
183
+ T.nilable(ContextDev::WebSearchParams::HighlightsOptions),
182
184
  include_domains: T::Array[String],
183
- markdown_options: ContextDev::WebSearchParams::MarkdownOptions,
185
+ markdown_options:
186
+ T.nilable(ContextDev::WebSearchParams::MarkdownOptions),
184
187
  num_results: Integer,
185
188
  query_fanout: T::Boolean,
186
189
  tags: T::Array[String],
@@ -576,12 +579,9 @@ module ContextDev
576
579
  # only highlights are requested. Explicit values override either default. Maximum:
577
580
  # 365 days. Set to 0 to force a fresh scrape.
578
581
  sig { returns(T.nilable(Integer)) }
579
- attr_reader :max_age_ms
580
-
581
- sig { params(max_age_ms: Integer).void }
582
- attr_writer :max_age_ms
582
+ attr_accessor :max_age_ms
583
583
 
584
- # PDF handling. Use start/end to bound text extraction and OCR to a page range.
584
+ # PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
585
585
  sig do
586
586
  returns(T.nilable(ContextDev::WebSearchParams::MarkdownOptions::Pdf))
587
587
  end
@@ -627,10 +627,7 @@ module ContextDev
627
627
  # Extra wait after page load before rendering, in ms (0–30000). Useful for
628
628
  # JS-heavy pages.
629
629
  sig { returns(T.nilable(Integer)) }
630
- attr_reader :wait_for_ms
631
-
632
- sig { params(wait_for_ms: Integer).void }
633
- attr_writer :wait_for_ms
630
+ attr_accessor :wait_for_ms
634
631
 
635
632
  # Inline Markdown scraping for each result. Set `enabled: true` to activate.
636
633
  sig do
@@ -639,13 +636,13 @@ module ContextDev
639
636
  include_frames: T::Boolean,
640
637
  include_images: T::Boolean,
641
638
  include_links: T::Boolean,
642
- max_age_ms: Integer,
639
+ max_age_ms: T.nilable(Integer),
643
640
  pdf: ContextDev::WebSearchParams::MarkdownOptions::Pdf::OrHash,
644
641
  shorten_base64_images: T::Boolean,
645
642
  timeout_opts:
646
643
  ContextDev::WebSearchParams::MarkdownOptions::TimeoutOpts::OrHash,
647
644
  use_main_content_only: T::Boolean,
648
- wait_for_ms: Integer
645
+ wait_for_ms: T.nilable(Integer)
649
646
  ).returns(T.attached_class)
650
647
  end
651
648
  def self.new(
@@ -662,7 +659,7 @@ module ContextDev
662
659
  # only highlights are requested. Explicit values override either default. Maximum:
663
660
  # 365 days. Set to 0 to force a fresh scrape.
664
661
  max_age_ms: nil,
665
- # PDF handling. Use start/end to bound text extraction and OCR to a page range.
662
+ # PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
666
663
  pdf: nil,
667
664
  # Truncate inline base64 image payloads to keep responses small.
668
665
  shorten_base64_images: nil,
@@ -683,13 +680,13 @@ module ContextDev
683
680
  include_frames: T::Boolean,
684
681
  include_images: T::Boolean,
685
682
  include_links: T::Boolean,
686
- max_age_ms: Integer,
683
+ max_age_ms: T.nilable(Integer),
687
684
  pdf: ContextDev::WebSearchParams::MarkdownOptions::Pdf,
688
685
  shorten_base64_images: T::Boolean,
689
686
  timeout_opts:
690
687
  ContextDev::WebSearchParams::MarkdownOptions::TimeoutOpts,
691
688
  use_main_content_only: T::Boolean,
692
- wait_for_ms: Integer
689
+ wait_for_ms: T.nilable(Integer)
693
690
  }
694
691
  )
695
692
  end
@@ -720,14 +717,14 @@ module ContextDev
720
717
  sig { params(should_parse: T::Boolean).void }
721
718
  attr_writer :should_parse
722
719
 
723
- # First PDF page to parse (1-based, inclusive). Defaults to page 1.
720
+ # First 1-based PDF page to parse.
724
721
  sig { returns(T.nilable(Integer)) }
725
722
  attr_reader :start
726
723
 
727
724
  sig { params(start: Integer).void }
728
725
  attr_writer :start
729
726
 
730
- # PDF handling. Use start/end to bound text extraction and OCR to a page range.
727
+ # PDF handling. `start`/`end` limit parsing to an inclusive, 1-based page range.
731
728
  sig do
732
729
  params(
733
730
  end_: Integer,
@@ -741,7 +738,7 @@ module ContextDev
741
738
  end_: nil,
742
739
  # Parse PDF URLs. When false, PDF results are skipped with WEBSITE_ACCESS_ERROR.
743
740
  should_parse: nil,
744
- # First PDF page to parse (1-based, inclusive). Defaults to page 1.
741
+ # First 1-based PDF page to parse.
745
742
  start: nil
746
743
  )
747
744
  end
@@ -28,10 +28,7 @@ module ContextDev
28
28
 
29
29
  # Remove matching elements after inclusions. Exclusions take precedence.
30
30
  sig { returns(T.nilable(T::Array[String])) }
31
- attr_reader :exclude_selectors
32
-
33
- sig { params(exclude_selectors: T::Array[String]).void }
34
- attr_writer :exclude_selectors
31
+ attr_accessor :exclude_selectors
35
32
 
36
33
  # When true, follow links on subdomains of the starting URL's domain (e.g.
37
34
  # docs.example.com when starting from example.com). www and apex are always
@@ -66,17 +63,11 @@ module ContextDev
66
63
 
67
64
  # Keep matching HTML subtrees before converting each page to Markdown.
68
65
  sig { returns(T.nilable(T::Array[String])) }
69
- attr_reader :include_selectors
70
-
71
- sig { params(include_selectors: T::Array[String]).void }
72
- attr_writer :include_selectors
66
+ attr_accessor :include_selectors
73
67
 
74
68
  # Maximum cache age in milliseconds. Defaults to 1 day; `0` fetches fresh.
75
69
  sig { returns(T.nilable(Integer)) }
76
- attr_reader :max_age_ms
77
-
78
- sig { params(max_age_ms: Integer).void }
79
- attr_writer :max_age_ms
70
+ attr_accessor :max_age_ms
80
71
 
81
72
  # Maximum link depth from the starting URL (0 = only the starting page)
82
73
  sig { returns(T.nilable(Integer)) }
@@ -160,10 +151,7 @@ module ContextDev
160
151
  # Browser wait time in milliseconds after initial page load for each crawled page.
161
152
  # Defaults to 3500 (3.5 seconds). Min: 0. Max: 30000 (30 seconds).
162
153
  sig { returns(T.nilable(Integer)) }
163
- attr_reader :wait_for_ms
164
-
165
- sig { params(wait_for_ms: Integer).void }
166
- attr_writer :wait_for_ms
154
+ attr_accessor :wait_for_ms
167
155
 
168
156
  # `enabled` turns on zero data retention. Returns 403 `ZDR_NOT_ENABLED` unless
169
157
  # your organization has ZDR.
@@ -177,13 +165,13 @@ module ContextDev
177
165
  params(
178
166
  url: String,
179
167
  country: ContextDev::WebWebCrawlMdParams::Country::OrSymbol,
180
- exclude_selectors: T::Array[String],
168
+ exclude_selectors: T.nilable(T::Array[String]),
181
169
  follow_subdomains: T::Boolean,
182
170
  include_frames: T::Boolean,
183
171
  include_images: T::Boolean,
184
172
  include_links: T::Boolean,
185
- include_selectors: T::Array[String],
186
- max_age_ms: Integer,
173
+ include_selectors: T.nilable(T::Array[String]),
174
+ max_age_ms: T.nilable(Integer),
187
175
  max_depth: Integer,
188
176
  max_pages: Integer,
189
177
  pdf: ContextDev::WebWebCrawlMdParams::Pdf::OrHash,
@@ -194,7 +182,7 @@ module ContextDev
194
182
  timeout_opts: ContextDev::WebWebCrawlMdParams::TimeoutOpts::OrHash,
195
183
  url_regex: String,
196
184
  use_main_content_only: T::Boolean,
197
- wait_for_ms: Integer,
185
+ wait_for_ms: T.nilable(Integer),
198
186
  zdr: ContextDev::WebWebCrawlMdParams::Zdr::OrSymbol,
199
187
  request_options: ContextDev::RequestOptions::OrHash
200
188
  ).returns(T.attached_class)
@@ -261,13 +249,13 @@ module ContextDev
261
249
  {
262
250
  url: String,
263
251
  country: ContextDev::WebWebCrawlMdParams::Country::OrSymbol,
264
- exclude_selectors: T::Array[String],
252
+ exclude_selectors: T.nilable(T::Array[String]),
265
253
  follow_subdomains: T::Boolean,
266
254
  include_frames: T::Boolean,
267
255
  include_images: T::Boolean,
268
256
  include_links: T::Boolean,
269
- include_selectors: T::Array[String],
270
- max_age_ms: Integer,
257
+ include_selectors: T.nilable(T::Array[String]),
258
+ max_age_ms: T.nilable(Integer),
271
259
  max_depth: Integer,
272
260
  max_pages: Integer,
273
261
  pdf: ContextDev::WebWebCrawlMdParams::Pdf,
@@ -278,7 +266,7 @@ module ContextDev
278
266
  timeout_opts: ContextDev::WebWebCrawlMdParams::TimeoutOpts,
279
267
  url_regex: String,
280
268
  use_main_content_only: T::Boolean,
281
- wait_for_ms: Integer,
269
+ wait_for_ms: T.nilable(Integer),
282
270
  zdr: ContextDev::WebWebCrawlMdParams::Zdr::OrSymbol,
283
271
  request_options: ContextDev::RequestOptions
284
272
  }
@@ -520,15 +508,15 @@ module ContextDev
520
508
  )
521
509
  end
522
510
 
523
- # Last 1-based PDF page to parse. When omitted, parsing ends at the last page.
524
- # Must be greater than or equal to start when both are provided.
511
+ # Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
512
+ # be >= start.
525
513
  sig { returns(T.nilable(Integer)) }
526
514
  attr_reader :end_
527
515
 
528
516
  sig { params(end_: Integer).void }
529
517
  attr_writer :end_
530
518
 
531
- # Read scanned PDF pages with OCR; preserve pages that already contain text.
519
+ # Read scanned PDF pages with OCR; preserve pages that already have text.
532
520
  sig { returns(T.nilable(T::Boolean)) }
533
521
  attr_reader :ocr
534
522
 
@@ -543,7 +531,7 @@ module ContextDev
543
531
  sig { params(should_parse: T::Boolean).void }
544
532
  attr_writer :should_parse
545
533
 
546
- # First 1-based PDF page to parse. When omitted, parsing starts at the first page.
534
+ # First 1-based PDF page to parse.
547
535
  sig { returns(T.nilable(Integer)) }
548
536
  attr_reader :start
549
537
 
@@ -560,15 +548,15 @@ module ContextDev
560
548
  ).returns(T.attached_class)
561
549
  end
562
550
  def self.new(
563
- # Last 1-based PDF page to parse. When omitted, parsing ends at the last page.
564
- # Must be greater than or equal to start when both are provided.
551
+ # Last PDF page to parse (1-based, inclusive). Defaults to the final page. Must
552
+ # be >= start.
565
553
  end_: nil,
566
- # Read scanned PDF pages with OCR; preserve pages that already contain text.
554
+ # Read scanned PDF pages with OCR; preserve pages that already have text.
567
555
  ocr: nil,
568
556
  # When true, PDF pages are fetched and parsed. When false, PDF pages are skipped
569
557
  # entirely (not included in results and not counted as failures).
570
558
  should_parse: nil,
571
- # First 1-based PDF page to parse. When omitted, parsing starts at the first page.
559
+ # First 1-based PDF page to parse.
572
560
  start: nil
573
561
  )
574
562
  end
@@ -27,7 +27,7 @@ module ContextDev
27
27
  q: String,
28
28
  search_type: ContextDev::BatchListParams::SearchType::OrSymbol,
29
29
  status: ContextDev::BatchListParams::Status::OrSymbol,
30
- tags: String,
30
+ tags: ContextDev::BatchListParams::Tags::Variants,
31
31
  request_options: ContextDev::RequestOptions::OrHash
32
32
  ).returns(ContextDev::Models::BatchListResponse)
33
33
  end
@@ -44,7 +44,8 @@ module ContextDev
44
44
  search_type: nil,
45
45
  # Filter by status.
46
46
  status: nil,
47
- # Comma-separated list of tags to filter by (matches batches having any of them).
47
+ # Tags to filter by (matches batches having any of them). Pass repeated `tags`
48
+ # params or one comma-separated list, e.g. `tags=docs,competitor`.
48
49
  tags: nil,
49
50
  request_options: {}
50
51
  )
@@ -200,7 +200,7 @@ module ContextDev
200
200
  shared_params: nil,
201
201
  # Labels for tracking request usage. Not retained when zdr is enabled.
202
202
  tags: nil,
203
- # Deadline for the whole request. Defaults to 60000 ms with `fail`. Fixed waits
203
+ # Deadline for the whole request. Defaults to 90000 ms with `fail`. Fixed waits
204
204
  # must end before it.
205
205
  timeout_opts: nil,
206
206
  # `enabled` turns on zero data retention. Your organization must have ZDR enabled.
@@ -313,10 +313,10 @@ module ContextDev
313
313
  exclude_domains: T::Array[String],
314
314
  freshness: ContextDev::WebSearchParams::Freshness::OrSymbol,
315
315
  highlights_options:
316
- ContextDev::WebSearchParams::HighlightsOptions::OrHash,
316
+ T.nilable(ContextDev::WebSearchParams::HighlightsOptions::OrHash),
317
317
  include_domains: T::Array[String],
318
318
  markdown_options:
319
- ContextDev::WebSearchParams::MarkdownOptions::OrHash,
319
+ T.nilable(ContextDev::WebSearchParams::MarkdownOptions::OrHash),
320
320
  num_results: Integer,
321
321
  query_fanout: T::Boolean,
322
322
  tags: T::Array[String],
@@ -366,13 +366,13 @@ module ContextDev
366
366
  params(
367
367
  url: String,
368
368
  country: ContextDev::WebWebCrawlMdParams::Country::OrSymbol,
369
- exclude_selectors: T::Array[String],
369
+ exclude_selectors: T.nilable(T::Array[String]),
370
370
  follow_subdomains: T::Boolean,
371
371
  include_frames: T::Boolean,
372
372
  include_images: T::Boolean,
373
373
  include_links: T::Boolean,
374
- include_selectors: T::Array[String],
375
- max_age_ms: Integer,
374
+ include_selectors: T.nilable(T::Array[String]),
375
+ max_age_ms: T.nilable(Integer),
376
376
  max_depth: Integer,
377
377
  max_pages: Integer,
378
378
  pdf: ContextDev::WebWebCrawlMdParams::Pdf::OrHash,
@@ -383,7 +383,7 @@ module ContextDev
383
383
  timeout_opts: ContextDev::WebWebCrawlMdParams::TimeoutOpts::OrHash,
384
384
  url_regex: String,
385
385
  use_main_content_only: T::Boolean,
386
- wait_for_ms: Integer,
386
+ wait_for_ms: T.nilable(Integer),
387
387
  zdr: ContextDev::WebWebCrawlMdParams::Zdr::OrSymbol,
388
388
  request_options: ContextDev::RequestOptions::OrHash
389
389
  ).returns(ContextDev::Models::WebWebCrawlMdResponse)
@@ -7,7 +7,7 @@ module ContextDev
7
7
  q: String,
8
8
  search_type: ContextDev::Models::BatchListParams::search_type,
9
9
  status: ContextDev::Models::BatchListParams::status,
10
- tags: String
10
+ tags: ContextDev::Models::BatchListParams::tags
11
11
  }
12
12
  & ContextDev::Internal::Type::request_parameters
13
13
 
@@ -39,9 +39,11 @@ module ContextDev
39
39
  ContextDev::Models::BatchListParams::status
40
40
  ) -> ContextDev::Models::BatchListParams::status
41
41
 
42
- attr_reader tags: String?
42
+ attr_reader tags: ContextDev::Models::BatchListParams::tags?
43
43
 
44
- def tags=: (String) -> String
44
+ def tags=: (
45
+ ContextDev::Models::BatchListParams::tags
46
+ ) -> ContextDev::Models::BatchListParams::tags
45
47
 
46
48
  def initialize: (
47
49
  ?cursor: String,
@@ -49,7 +51,7 @@ module ContextDev
49
51
  ?q: String,
50
52
  ?search_type: ContextDev::Models::BatchListParams::search_type,
51
53
  ?status: ContextDev::Models::BatchListParams::status,
52
- ?tags: String,
54
+ ?tags: ContextDev::Models::BatchListParams::tags,
53
55
  ?request_options: ContextDev::request_opts
54
56
  ) -> void
55
57
 
@@ -59,7 +61,7 @@ module ContextDev
59
61
  q: String,
60
62
  search_type: ContextDev::Models::BatchListParams::search_type,
61
63
  status: ContextDev::Models::BatchListParams::status,
62
- tags: String,
64
+ tags: ContextDev::Models::BatchListParams::tags,
63
65
  request_options: ContextDev::RequestOptions
64
66
  }
65
67
 
@@ -89,6 +91,16 @@ module ContextDev
89
91
 
90
92
  def self?.values: -> ::Array[ContextDev::Models::BatchListParams::status]
91
93
  end
94
+
95
+ type tags = String | ::Array[String]
96
+
97
+ module Tags
98
+ extend ContextDev::Internal::Type::Union
99
+
100
+ def self?.variants: -> ::Array[ContextDev::Models::BatchListParams::tags]
101
+
102
+ StringArray: ContextDev::Internal::Type::Converter
103
+ end
92
104
  end
93
105
  end
94
106
  end