brand.dev 1.1.0 → 1.2.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.
@@ -441,7 +441,6 @@ module BrandDev
441
441
  params(
442
442
  direct_url: String,
443
443
  domain: String,
444
- prioritize: BrandDev::BrandStyleguideParams::Prioritize::OrSymbol,
445
444
  timeout_ms: Integer,
446
445
  request_options: BrandDev::RequestOptions::OrHash
447
446
  ).returns(BrandDev::Models::BrandStyleguideResponse)
@@ -453,11 +452,6 @@ module BrandDev
453
452
  # Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
454
453
  # domain will be automatically normalized and validated.
455
454
  domain: nil,
456
- # Optional parameter to prioritize screenshot capture for styleguide extraction.
457
- # If 'speed', optimizes for faster capture with basic quality. If 'quality',
458
- # optimizes for higher quality with longer wait times. Defaults to 'quality' if
459
- # not provided.
460
- prioritize: nil,
461
455
  # Optional timeout in milliseconds for the request. If the request takes longer
462
456
  # than this value, it will be aborted with a 408 status code. Maximum allowed
463
457
  # value is 300000ms (5 minutes).
@@ -45,8 +45,12 @@ module BrandDev
45
45
  -> top?
46
46
  } -> top?
47
47
 
48
+ RFC_3986_NOT_PCHARS: Regexp
49
+
48
50
  def self?.uri_origin: (URI::Generic uri) -> String
49
51
 
52
+ def self?.encode_path: (String | Integer path) -> String
53
+
50
54
  def self?.interpolate_path: (String | ::Array[String] path) -> String
51
55
 
52
56
  def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
@@ -1,12 +1,7 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_styleguide_params =
4
- {
5
- direct_url: String,
6
- domain: String,
7
- prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
8
- timeout_ms: Integer
9
- }
4
+ { direct_url: String, domain: String, timeout_ms: Integer }
10
5
  & BrandDev::Internal::Type::request_parameters
11
6
 
12
7
  class BrandStyleguideParams < BrandDev::Internal::Type::BaseModel
@@ -21,12 +16,6 @@ module BrandDev
21
16
 
22
17
  def domain=: (String) -> String
23
18
 
24
- attr_reader prioritize: BrandDev::Models::BrandStyleguideParams::prioritize?
25
-
26
- def prioritize=: (
27
- BrandDev::Models::BrandStyleguideParams::prioritize
28
- ) -> BrandDev::Models::BrandStyleguideParams::prioritize
29
-
30
19
  attr_reader timeout_ms: Integer?
31
20
 
32
21
  def timeout_ms=: (Integer) -> Integer
@@ -34,7 +23,6 @@ module BrandDev
34
23
  def initialize: (
35
24
  ?direct_url: String,
36
25
  ?domain: String,
37
- ?prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
38
26
  ?timeout_ms: Integer,
39
27
  ?request_options: BrandDev::request_opts
40
28
  ) -> void
@@ -42,21 +30,9 @@ module BrandDev
42
30
  def to_hash: -> {
43
31
  direct_url: String,
44
32
  domain: String,
45
- prioritize: BrandDev::Models::BrandStyleguideParams::prioritize,
46
33
  timeout_ms: Integer,
47
34
  request_options: BrandDev::RequestOptions
48
35
  }
49
-
50
- type prioritize = :speed | :quality
51
-
52
- module Prioritize
53
- extend BrandDev::Internal::Type::Enum
54
-
55
- SPEED: :speed
56
- QUALITY: :quality
57
-
58
- def self?.values: -> ::Array[BrandDev::Models::BrandStyleguideParams::prioritize]
59
- end
60
36
  end
61
37
  end
62
38
  end