brand.dev 0.30.0 → 0.31.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05afc85f895b5fb18641735aaaa2b41fde8707f8e124153110d50bc3cf627863
4
- data.tar.gz: b067b6afe2fc17280bdfb6f5661d5b09451fbdce4bf0e3448a5b921426b1696b
3
+ metadata.gz: 8089cbace4af59feaee6062b0c450fefd511db6585de5c911e5c722fe724dbc6
4
+ data.tar.gz: 9b8f377e4c7d1ec7e6124974f03041c2e2579711488c75f4b32a5b0001940da4
5
5
  SHA512:
6
- metadata.gz: 949d860309592e2b4c804259f9ab8195e5f7b949426ece4b8904573c1a6a2e8806757f838c98d1465dcd6555629921f4a11c69d8b98aff1a04d62331228ff141
7
- data.tar.gz: 07fe13ac3d28bae8090ae75f718c0ae425ad7f03f9d267ab6ffd8e89a1159120b34ad68c5cff1656d8dcc1ff46e790171d12a01a9c7a540fc252a86347ad43c2
6
+ metadata.gz: e9b1abee2d225d9d6137390ed3b18a21520def80a0fc8992c524cc7f4f0c0ded59204ac6958b98ae07a338689485a345d473b40350ef42a72bc30639d0120815
7
+ data.tar.gz: d9d1e054d3d8373f03589ce8fe356335029a3d3d394b851cb33aadab7d3ee82c73300bb9f94d2859cdb483a5b51d616ae1d1a5cb9b1f715573a3a28565151791
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.31.0 (2026-03-25)
4
+
5
+ Full Changelog: [v0.30.0...v0.31.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v0.30.0...v0.31.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([aa15c1b](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/commit/aa15c1b80096f550e29ac4d66ff607f6339f9a0b))
10
+
3
11
  ## 0.30.0 (2026-03-25)
4
12
 
5
13
  Full Changelog: [v0.29.0...v0.30.0](https://github.com/context-dot-dev/deprecated-brand-ruby-sdk/compare/v0.29.0...v0.30.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "brand.dev", "~> 0.30.0"
29
+ gem "brand.dev", "~> 0.31.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -14,12 +14,21 @@ module BrandDev
14
14
  # @return [String]
15
15
  required :domain, String
16
16
 
17
- # @!method initialize(domain:, request_options: {})
17
+ # @!attribute max_links
18
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
19
+ # Minimum is 1, maximum is 100,000.
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :max_links, Integer
23
+
24
+ # @!method initialize(domain:, max_links: nil, request_options: {})
18
25
  # Some parameter documentations has been truncated, see
19
26
  # {BrandDev::Models::BrandWebScrapeSitemapParams} for more details.
20
27
  #
21
28
  # @param domain [String] Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be auto
22
29
  #
30
+ # @param max_links [Integer] Maximum number of links to return from the sitemap crawl. Defaults to 10,000. Mi
31
+ #
23
32
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
24
33
  end
25
34
  end
@@ -624,10 +624,12 @@ module BrandDev
624
624
  # Supports sitemap index files (recursive), parallel fetching with concurrency
625
625
  # control, deduplication, and filters out non-page resources (images, PDFs, etc.).
626
626
  #
627
- # @overload web_scrape_sitemap(domain:, request_options: {})
627
+ # @overload web_scrape_sitemap(domain:, max_links: nil, request_options: {})
628
628
  #
629
629
  # @param domain [String] Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be auto
630
630
  #
631
+ # @param max_links [Integer] Maximum number of links to return from the sitemap crawl. Defaults to 10,000. Mi
632
+ #
631
633
  # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
632
634
  #
633
635
  # @return [BrandDev::Models::BrandWebScrapeSitemapResponse]
@@ -639,7 +641,7 @@ module BrandDev
639
641
  @client.request(
640
642
  method: :get,
641
643
  path: "web/scrape/sitemap",
642
- query: query,
644
+ query: query.transform_keys(max_links: "maxLinks"),
643
645
  model: BrandDev::Models::BrandWebScrapeSitemapResponse,
644
646
  options: options
645
647
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrandDev
4
- VERSION = "0.30.0"
4
+ VERSION = "0.31.0"
5
5
  end
@@ -19,9 +19,18 @@ module BrandDev
19
19
  sig { returns(String) }
20
20
  attr_accessor :domain
21
21
 
22
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
23
+ # Minimum is 1, maximum is 100,000.
24
+ sig { returns(T.nilable(Integer)) }
25
+ attr_reader :max_links
26
+
27
+ sig { params(max_links: Integer).void }
28
+ attr_writer :max_links
29
+
22
30
  sig do
23
31
  params(
24
32
  domain: String,
33
+ max_links: Integer,
25
34
  request_options: BrandDev::RequestOptions::OrHash
26
35
  ).returns(T.attached_class)
27
36
  end
@@ -29,13 +38,20 @@ module BrandDev
29
38
  # Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
30
39
  # automatically normalized and validated.
31
40
  domain:,
41
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
42
+ # Minimum is 1, maximum is 100,000.
43
+ max_links: nil,
32
44
  request_options: {}
33
45
  )
34
46
  end
35
47
 
36
48
  sig do
37
49
  override.returns(
38
- { domain: String, request_options: BrandDev::RequestOptions }
50
+ {
51
+ domain: String,
52
+ max_links: Integer,
53
+ request_options: BrandDev::RequestOptions
54
+ }
39
55
  )
40
56
  end
41
57
  def to_hash
@@ -529,6 +529,7 @@ module BrandDev
529
529
  sig do
530
530
  params(
531
531
  domain: String,
532
+ max_links: Integer,
532
533
  request_options: BrandDev::RequestOptions::OrHash
533
534
  ).returns(BrandDev::Models::BrandWebScrapeSitemapResponse)
534
535
  end
@@ -536,6 +537,9 @@ module BrandDev
536
537
  # Domain name to crawl sitemaps for (e.g., 'example.com'). The domain will be
537
538
  # automatically normalized and validated.
538
539
  domain:,
540
+ # Maximum number of links to return from the sitemap crawl. Defaults to 10,000.
541
+ # Minimum is 1, maximum is 100,000.
542
+ max_links: nil,
539
543
  request_options: {}
540
544
  )
541
545
  end
@@ -1,7 +1,8 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_web_scrape_sitemap_params =
4
- { domain: String } & BrandDev::Internal::Type::request_parameters
4
+ { domain: String, max_links: Integer }
5
+ & BrandDev::Internal::Type::request_parameters
5
6
 
6
7
  class BrandWebScrapeSitemapParams < BrandDev::Internal::Type::BaseModel
7
8
  extend BrandDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module BrandDev
9
10
 
10
11
  attr_accessor domain: String
11
12
 
13
+ attr_reader max_links: Integer?
14
+
15
+ def max_links=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  domain: String,
19
+ ?max_links: Integer,
14
20
  ?request_options: BrandDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  domain: String,
25
+ max_links: Integer,
19
26
  request_options: BrandDev::RequestOptions
20
27
  }
21
28
  end
@@ -143,6 +143,7 @@ module BrandDev
143
143
 
144
144
  def web_scrape_sitemap: (
145
145
  domain: String,
146
+ ?max_links: Integer,
146
147
  ?request_options: BrandDev::request_opts
147
148
  ) -> BrandDev::Models::BrandWebScrapeSitemapResponse
148
149
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brand.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.30.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brand Dev