context.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/context_dev/internal/util.rb +18 -4
- data/lib/context_dev/models/style_extract_styleguide_params.rb +1 -26
- data/lib/context_dev/models/style_extract_styleguide_response.rb +495 -246
- data/lib/context_dev/resources/style.rb +1 -3
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/internal/util.rbi +8 -0
- data/rbi/context_dev/models/style_extract_styleguide_params.rbi +0 -65
- data/rbi/context_dev/models/style_extract_styleguide_response.rbi +471 -529
- data/rbi/context_dev/resources/style.rbi +0 -7
- data/sig/context_dev/internal/util.rbs +4 -0
- data/sig/context_dev/models/style_extract_styleguide_params.rbs +1 -25
- data/sig/context_dev/models/style_extract_styleguide_response.rbs +285 -337
- data/sig/context_dev/resources/style.rbs +0 -1
- metadata +2 -2
|
@@ -32,8 +32,6 @@ module ContextDev
|
|
|
32
32
|
params(
|
|
33
33
|
direct_url: String,
|
|
34
34
|
domain: String,
|
|
35
|
-
prioritize:
|
|
36
|
-
ContextDev::StyleExtractStyleguideParams::Prioritize::OrSymbol,
|
|
37
35
|
timeout_ms: Integer,
|
|
38
36
|
request_options: ContextDev::RequestOptions::OrHash
|
|
39
37
|
).returns(ContextDev::Models::StyleExtractStyleguideResponse)
|
|
@@ -45,11 +43,6 @@ module ContextDev
|
|
|
45
43
|
# Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
|
|
46
44
|
# domain will be automatically normalized and validated.
|
|
47
45
|
domain: nil,
|
|
48
|
-
# Optional parameter to prioritize screenshot capture for styleguide extraction.
|
|
49
|
-
# If 'speed', optimizes for faster capture with basic quality. If 'quality',
|
|
50
|
-
# optimizes for higher quality with longer wait times. Defaults to 'quality' if
|
|
51
|
-
# not provided.
|
|
52
|
-
prioritize: nil,
|
|
53
46
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
54
47
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
55
48
|
# value is 300000ms (5 minutes).
|
|
@@ -45,8 +45,12 @@ module ContextDev
|
|
|
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 ContextDev
|
|
2
2
|
module Models
|
|
3
3
|
type style_extract_styleguide_params =
|
|
4
|
-
{
|
|
5
|
-
direct_url: String,
|
|
6
|
-
domain: String,
|
|
7
|
-
prioritize: ContextDev::Models::StyleExtractStyleguideParams::prioritize,
|
|
8
|
-
timeout_ms: Integer
|
|
9
|
-
}
|
|
4
|
+
{ direct_url: String, domain: String, timeout_ms: Integer }
|
|
10
5
|
& ContextDev::Internal::Type::request_parameters
|
|
11
6
|
|
|
12
7
|
class StyleExtractStyleguideParams < ContextDev::Internal::Type::BaseModel
|
|
@@ -21,12 +16,6 @@ module ContextDev
|
|
|
21
16
|
|
|
22
17
|
def domain=: (String) -> String
|
|
23
18
|
|
|
24
|
-
attr_reader prioritize: ContextDev::Models::StyleExtractStyleguideParams::prioritize?
|
|
25
|
-
|
|
26
|
-
def prioritize=: (
|
|
27
|
-
ContextDev::Models::StyleExtractStyleguideParams::prioritize
|
|
28
|
-
) -> ContextDev::Models::StyleExtractStyleguideParams::prioritize
|
|
29
|
-
|
|
30
19
|
attr_reader timeout_ms: Integer?
|
|
31
20
|
|
|
32
21
|
def timeout_ms=: (Integer) -> Integer
|
|
@@ -34,7 +23,6 @@ module ContextDev
|
|
|
34
23
|
def initialize: (
|
|
35
24
|
?direct_url: String,
|
|
36
25
|
?domain: String,
|
|
37
|
-
?prioritize: ContextDev::Models::StyleExtractStyleguideParams::prioritize,
|
|
38
26
|
?timeout_ms: Integer,
|
|
39
27
|
?request_options: ContextDev::request_opts
|
|
40
28
|
) -> void
|
|
@@ -42,21 +30,9 @@ module ContextDev
|
|
|
42
30
|
def to_hash: -> {
|
|
43
31
|
direct_url: String,
|
|
44
32
|
domain: String,
|
|
45
|
-
prioritize: ContextDev::Models::StyleExtractStyleguideParams::prioritize,
|
|
46
33
|
timeout_ms: Integer,
|
|
47
34
|
request_options: ContextDev::RequestOptions
|
|
48
35
|
}
|
|
49
|
-
|
|
50
|
-
type prioritize = :speed | :quality
|
|
51
|
-
|
|
52
|
-
module Prioritize
|
|
53
|
-
extend ContextDev::Internal::Type::Enum
|
|
54
|
-
|
|
55
|
-
SPEED: :speed
|
|
56
|
-
QUALITY: :quality
|
|
57
|
-
|
|
58
|
-
def self?.values: -> ::Array[ContextDev::Models::StyleExtractStyleguideParams::prioritize]
|
|
59
|
-
end
|
|
60
36
|
end
|
|
61
37
|
end
|
|
62
38
|
end
|