brand.dev 0.26.0 → 0.27.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: da2f382bfc60d07b03395142e31176eb88b2640e8a5eb2aa6f83156464d409ae
4
- data.tar.gz: e8f182c0ae6057bce6ad230ccb2e36a6dfec2c1723e5135a2e5ada98841d7f28
3
+ metadata.gz: 352acbb6668a328d87a316a4dba30616f02c7d1d7fcf472df6bb0109d9befdb1
4
+ data.tar.gz: 155f0018fd308c55dead3ef2ea0850085d21ded6920a9ae9c2f9229a2a527cd3
5
5
  SHA512:
6
- metadata.gz: d7d6d1ffebf9c3cf4e7c5e1a2ff28278fde05b607679987c0d91ca6d0809919bdae6deb4ff39abda7e4f87dfaec83505f6cd4948632fab18e45ee711a5946a1c
7
- data.tar.gz: 958e744b9d622e3c0f36f4cac53681a8bb85f3a4090b2e827b9e15d9b53f71cca873b916fda66a9eb931bb9626ced4f9314be30740d087b0aa32040c359066ae
6
+ metadata.gz: 1f0a1068ce78f873ff484541d3a482de10824e093a4e70ee4df02804e3be6e02d2b5850bece4540b5519e92cd365af87a93b05d2b6fce9d315131d0fce525c02
7
+ data.tar.gz: e91395f9bb9671f7346e2e3dc0cc5d1e5a6a3b86ff28bd6eba0d03d3e8e546acce9dc8dc43b629f9fd7dc6dd9ea39503e64a3d29202e92bc3bbd3de049268aa1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.27.0 (2026-02-24)
4
+
5
+ Full Changelog: [v0.26.0...v0.27.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.26.0...v0.27.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([cbe6c73](https://github.com/brand-dot-dev/ruby-sdk/commit/cbe6c7376d1fb53af66e31c6154edd684722e712))
10
+
3
11
  ## 0.26.0 (2026-02-23)
4
12
 
5
13
  Full Changelog: [v0.25.0...v0.26.0](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.25.0...v0.26.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.26.0"
29
+ gem "brand.dev", "~> 0.27.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -7,12 +7,19 @@ module BrandDev
7
7
  extend BrandDev::Internal::Type::RequestParameters::Converter
8
8
  include BrandDev::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute direct_url
11
+ # A specific URL to fetch the styleguide from directly, bypassing domain
12
+ # resolution (e.g., 'https://example.com/design-system').
13
+ #
14
+ # @return [String, nil]
15
+ optional :direct_url, String
16
+
10
17
  # @!attribute domain
11
18
  # Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
12
19
  # domain will be automatically normalized and validated.
13
20
  #
14
- # @return [String]
15
- required :domain, String
21
+ # @return [String, nil]
22
+ optional :domain, String
16
23
 
17
24
  # @!attribute prioritize
18
25
  # Optional parameter to prioritize screenshot capture for styleguide extraction.
@@ -31,10 +38,12 @@ module BrandDev
31
38
  # @return [Integer, nil]
32
39
  optional :timeout_ms, Integer
33
40
 
34
- # @!method initialize(domain:, prioritize: nil, timeout_ms: nil, request_options: {})
41
+ # @!method initialize(direct_url: nil, domain: nil, prioritize: nil, timeout_ms: nil, request_options: {})
35
42
  # Some parameter documentations has been truncated, see
36
43
  # {BrandDev::Models::BrandStyleguideParams} for more details.
37
44
  #
45
+ # @param direct_url [String] A specific URL to fetch the styleguide from directly, bypassing domain resolutio
46
+ #
38
47
  # @param domain [String] Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
39
48
  #
40
49
  # @param prioritize [Symbol, BrandDev::Models::BrandStyleguideParams::Prioritize] Optional parameter to prioritize screenshot capture for styleguide extraction. I
@@ -496,8 +496,12 @@ module BrandDev
496
496
  #
497
497
  # Automatically extract comprehensive design system information from a brand's
498
498
  # website including colors, typography, spacing, shadows, and UI components.
499
+ # Either 'domain' or 'directUrl' must be provided as a query parameter, but not
500
+ # both.
499
501
  #
500
- # @overload styleguide(domain:, prioritize: nil, timeout_ms: nil, request_options: {})
502
+ # @overload styleguide(direct_url: nil, domain: nil, prioritize: nil, timeout_ms: nil, request_options: {})
503
+ #
504
+ # @param direct_url [String] A specific URL to fetch the styleguide from directly, bypassing domain resolutio
501
505
  #
502
506
  # @param domain [String] Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
503
507
  #
@@ -510,12 +514,12 @@ module BrandDev
510
514
  # @return [BrandDev::Models::BrandStyleguideResponse]
511
515
  #
512
516
  # @see BrandDev::Models::BrandStyleguideParams
513
- def styleguide(params)
517
+ def styleguide(params = {})
514
518
  parsed, options = BrandDev::BrandStyleguideParams.dump_request(params)
515
519
  @client.request(
516
520
  method: :get,
517
521
  path: "brand/styleguide",
518
- query: parsed.transform_keys(timeout_ms: "timeoutMS"),
522
+ query: parsed.transform_keys(direct_url: "directUrl", timeout_ms: "timeoutMS"),
519
523
  model: BrandDev::Models::BrandStyleguideResponse,
520
524
  options: options
521
525
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrandDev
4
- VERSION = "0.26.0"
4
+ VERSION = "0.27.0"
5
5
  end
@@ -11,10 +11,21 @@ module BrandDev
11
11
  T.any(BrandDev::BrandStyleguideParams, BrandDev::Internal::AnyHash)
12
12
  end
13
13
 
14
+ # A specific URL to fetch the styleguide from directly, bypassing domain
15
+ # resolution (e.g., 'https://example.com/design-system').
16
+ sig { returns(T.nilable(String)) }
17
+ attr_reader :direct_url
18
+
19
+ sig { params(direct_url: String).void }
20
+ attr_writer :direct_url
21
+
14
22
  # Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
15
23
  # domain will be automatically normalized and validated.
16
- sig { returns(String) }
17
- attr_accessor :domain
24
+ sig { returns(T.nilable(String)) }
25
+ attr_reader :domain
26
+
27
+ sig { params(domain: String).void }
28
+ attr_writer :domain
18
29
 
19
30
  # Optional parameter to prioritize screenshot capture for styleguide extraction.
20
31
  # If 'speed', optimizes for faster capture with basic quality. If 'quality',
@@ -45,6 +56,7 @@ module BrandDev
45
56
 
46
57
  sig do
47
58
  params(
59
+ direct_url: String,
48
60
  domain: String,
49
61
  prioritize: BrandDev::BrandStyleguideParams::Prioritize::OrSymbol,
50
62
  timeout_ms: Integer,
@@ -52,9 +64,12 @@ module BrandDev
52
64
  ).returns(T.attached_class)
53
65
  end
54
66
  def self.new(
67
+ # A specific URL to fetch the styleguide from directly, bypassing domain
68
+ # resolution (e.g., 'https://example.com/design-system').
69
+ direct_url: nil,
55
70
  # Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
56
71
  # domain will be automatically normalized and validated.
57
- domain:,
72
+ domain: nil,
58
73
  # Optional parameter to prioritize screenshot capture for styleguide extraction.
59
74
  # If 'speed', optimizes for faster capture with basic quality. If 'quality',
60
75
  # optimizes for higher quality with longer wait times. Defaults to 'quality' if
@@ -71,6 +86,7 @@ module BrandDev
71
86
  sig do
72
87
  override.returns(
73
88
  {
89
+ direct_url: String,
74
90
  domain: String,
75
91
  prioritize: BrandDev::BrandStyleguideParams::Prioritize::OrSymbol,
76
92
  timeout_ms: Integer,
@@ -437,8 +437,11 @@ module BrandDev
437
437
 
438
438
  # Automatically extract comprehensive design system information from a brand's
439
439
  # website including colors, typography, spacing, shadows, and UI components.
440
+ # Either 'domain' or 'directUrl' must be provided as a query parameter, but not
441
+ # both.
440
442
  sig do
441
443
  params(
444
+ direct_url: String,
442
445
  domain: String,
443
446
  prioritize: BrandDev::BrandStyleguideParams::Prioritize::OrSymbol,
444
447
  timeout_ms: Integer,
@@ -446,9 +449,12 @@ module BrandDev
446
449
  ).returns(BrandDev::Models::BrandStyleguideResponse)
447
450
  end
448
451
  def styleguide(
452
+ # A specific URL to fetch the styleguide from directly, bypassing domain
453
+ # resolution (e.g., 'https://example.com/design-system').
454
+ direct_url: nil,
449
455
  # Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
450
456
  # domain will be automatically normalized and validated.
451
- domain:,
457
+ domain: nil,
452
458
  # Optional parameter to prioritize screenshot capture for styleguide extraction.
453
459
  # If 'speed', optimizes for faster capture with basic quality. If 'quality',
454
460
  # optimizes for higher quality with longer wait times. Defaults to 'quality' if
@@ -2,6 +2,7 @@ module BrandDev
2
2
  module Models
3
3
  type brand_styleguide_params =
4
4
  {
5
+ direct_url: String,
5
6
  domain: String,
6
7
  prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
7
8
  timeout_ms: Integer
@@ -12,7 +13,13 @@ module BrandDev
12
13
  extend BrandDev::Internal::Type::RequestParameters::Converter
13
14
  include BrandDev::Internal::Type::RequestParameters
14
15
 
15
- attr_accessor domain: String
16
+ attr_reader direct_url: String?
17
+
18
+ def direct_url=: (String) -> String
19
+
20
+ attr_reader domain: String?
21
+
22
+ def domain=: (String) -> String
16
23
 
17
24
  attr_reader prioritize: BrandDev::Models::BrandStyleguideParams::prioritize?
18
25
 
@@ -25,13 +32,15 @@ module BrandDev
25
32
  def timeout_ms=: (Integer) -> Integer
26
33
 
27
34
  def initialize: (
28
- domain: String,
35
+ ?direct_url: String,
36
+ ?domain: String,
29
37
  ?prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
30
38
  ?timeout_ms: Integer,
31
39
  ?request_options: BrandDev::request_opts
32
40
  ) -> void
33
41
 
34
42
  def to_hash: -> {
43
+ direct_url: String,
35
44
  domain: String,
36
45
  prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
37
46
  timeout_ms: Integer,
@@ -117,7 +117,8 @@ module BrandDev
117
117
  ) -> BrandDev::Models::BrandScreenshotResponse
118
118
 
119
119
  def styleguide: (
120
- domain: String,
120
+ ?direct_url: String,
121
+ ?domain: String,
121
122
  ?prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
122
123
  ?timeout_ms: Integer,
123
124
  ?request_options: BrandDev::request_opts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brand.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brand Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-23 00:00:00.000000000 Z
11
+ date: 2026-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi