brand.dev 0.1.0.pre.alpha.7 → 0.1.0.pre.alpha.9
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 +29 -0
- data/README.md +1 -1
- data/lib/brand_dev/errors.rb +22 -0
- data/lib/brand_dev/internal/type/array_of.rb +6 -1
- data/lib/brand_dev/internal/type/base_model.rb +77 -25
- data/lib/brand_dev/internal/type/boolean.rb +7 -1
- data/lib/brand_dev/internal/type/converter.rb +42 -34
- data/lib/brand_dev/internal/type/enum.rb +10 -2
- data/lib/brand_dev/internal/type/file_input.rb +6 -1
- data/lib/brand_dev/internal/type/hash_of.rb +6 -1
- data/lib/brand_dev/internal/type/union.rb +12 -7
- data/lib/brand_dev/internal/type/unknown.rb +7 -1
- data/lib/brand_dev/models/brand_retrieve_simplified_params.rb +35 -0
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +280 -0
- data/lib/brand_dev/models/brand_screenshot_params.rb +49 -0
- data/lib/brand_dev/models/brand_screenshot_response.rb +64 -0
- data/lib/brand_dev/models/brand_styleguide_params.rb +36 -0
- data/lib/brand_dev/models/brand_styleguide_response.rb +769 -0
- data/lib/brand_dev/models.rb +6 -0
- data/lib/brand_dev/resources/brand.rb +88 -0
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +6 -0
- data/rbi/brand_dev/errors.rbi +16 -0
- data/rbi/brand_dev/internal/type/boolean.rbi +2 -0
- data/rbi/brand_dev/internal/type/converter.rbi +15 -15
- data/rbi/brand_dev/internal/type/union.rbi +5 -0
- data/rbi/brand_dev/internal/type/unknown.rbi +2 -0
- data/rbi/brand_dev/models/brand_retrieve_simplified_params.rbi +61 -0
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +667 -0
- data/rbi/brand_dev/models/brand_screenshot_params.rbi +105 -0
- data/rbi/brand_dev/models/brand_screenshot_response.rbi +135 -0
- data/rbi/brand_dev/models/brand_styleguide_params.rbi +60 -0
- data/rbi/brand_dev/models/brand_styleguide_response.rbi +1648 -0
- data/rbi/brand_dev/models.rbi +7 -0
- data/rbi/brand_dev/resources/brand.rbi +67 -0
- data/sig/brand_dev/errors.rbs +9 -0
- data/sig/brand_dev/internal/type/converter.rbs +7 -1
- data/sig/brand_dev/models/brand_retrieve_simplified_params.rbs +30 -0
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +292 -0
- data/sig/brand_dev/models/brand_screenshot_params.rbs +46 -0
- data/sig/brand_dev/models/brand_screenshot_response.rbs +63 -0
- data/sig/brand_dev/models/brand_styleguide_params.rbs +30 -0
- data/sig/brand_dev/models/brand_styleguide_response.rbs +925 -0
- data/sig/brand_dev/models.rbs +6 -0
- data/sig/brand_dev/resources/brand.rbs +18 -0
- metadata +20 -2
data/rbi/brand_dev/models.rbi
CHANGED
@@ -14,5 +14,12 @@ module BrandDev
|
|
14
14
|
|
15
15
|
BrandRetrieveParams = BrandDev::Models::BrandRetrieveParams
|
16
16
|
|
17
|
+
BrandRetrieveSimplifiedParams =
|
18
|
+
BrandDev::Models::BrandRetrieveSimplifiedParams
|
19
|
+
|
20
|
+
BrandScreenshotParams = BrandDev::Models::BrandScreenshotParams
|
21
|
+
|
17
22
|
BrandSearchParams = BrandDev::Models::BrandSearchParams
|
23
|
+
|
24
|
+
BrandStyleguideParams = BrandDev::Models::BrandStyleguideParams
|
18
25
|
end
|
@@ -141,6 +141,50 @@ module BrandDev
|
|
141
141
|
)
|
142
142
|
end
|
143
143
|
|
144
|
+
# Returns a simplified version of brand data containing only essential
|
145
|
+
# information: domain, title, colors, logos, and backdrops. This endpoint is
|
146
|
+
# optimized for faster responses and reduced data transfer.
|
147
|
+
sig do
|
148
|
+
params(
|
149
|
+
domain: String,
|
150
|
+
timeout_ms: Integer,
|
151
|
+
request_options: BrandDev::RequestOptions::OrHash
|
152
|
+
).returns(BrandDev::Models::BrandRetrieveSimplifiedResponse)
|
153
|
+
end
|
154
|
+
def retrieve_simplified(
|
155
|
+
# Domain name to retrieve simplified brand data for
|
156
|
+
domain:,
|
157
|
+
# Optional timeout in milliseconds for the request. If the request takes longer
|
158
|
+
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
159
|
+
# value is 300000ms (5 minutes).
|
160
|
+
timeout_ms: nil,
|
161
|
+
request_options: {}
|
162
|
+
)
|
163
|
+
end
|
164
|
+
|
165
|
+
# Beta feature: Capture a screenshot of a website. Supports both viewport
|
166
|
+
# (standard browser view) and full-page screenshots. Returns a URL to the uploaded
|
167
|
+
# screenshot image hosted on our CDN.
|
168
|
+
sig do
|
169
|
+
params(
|
170
|
+
domain: String,
|
171
|
+
full_screenshot:
|
172
|
+
BrandDev::BrandScreenshotParams::FullScreenshot::OrSymbol,
|
173
|
+
request_options: BrandDev::RequestOptions::OrHash
|
174
|
+
).returns(BrandDev::Models::BrandScreenshotResponse)
|
175
|
+
end
|
176
|
+
def screenshot(
|
177
|
+
# Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The
|
178
|
+
# domain will be automatically normalized and validated.
|
179
|
+
domain:,
|
180
|
+
# Optional parameter to determine screenshot type. If 'true', takes a full page
|
181
|
+
# screenshot capturing all content. If 'false' or not provided, takes a viewport
|
182
|
+
# screenshot (standard browser view).
|
183
|
+
full_screenshot: nil,
|
184
|
+
request_options: {}
|
185
|
+
)
|
186
|
+
end
|
187
|
+
|
144
188
|
# Search brands by query
|
145
189
|
sig do
|
146
190
|
params(
|
@@ -160,6 +204,29 @@ module BrandDev
|
|
160
204
|
)
|
161
205
|
end
|
162
206
|
|
207
|
+
# Beta feature: Automatically extract comprehensive design system information from
|
208
|
+
# a brand's website including colors, typography, spacing, shadows, and UI
|
209
|
+
# components. Uses AI-powered analysis of website screenshots to identify design
|
210
|
+
# patterns and create a reusable styleguide.
|
211
|
+
sig do
|
212
|
+
params(
|
213
|
+
domain: String,
|
214
|
+
timeout_ms: Integer,
|
215
|
+
request_options: BrandDev::RequestOptions::OrHash
|
216
|
+
).returns(BrandDev::Models::BrandStyleguideResponse)
|
217
|
+
end
|
218
|
+
def styleguide(
|
219
|
+
# Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
|
220
|
+
# domain will be automatically normalized and validated.
|
221
|
+
domain:,
|
222
|
+
# Optional timeout in milliseconds for the request. If the request takes longer
|
223
|
+
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
224
|
+
# value is 300000ms (5 minutes).
|
225
|
+
timeout_ms: nil,
|
226
|
+
request_options: {}
|
227
|
+
)
|
228
|
+
end
|
229
|
+
|
163
230
|
# @api private
|
164
231
|
sig { params(client: BrandDev::Client).returns(T.attached_class) }
|
165
232
|
def self.new(client:)
|
data/sig/brand_dev/errors.rbs
CHANGED
@@ -5,6 +5,15 @@ module BrandDev
|
|
5
5
|
end
|
6
6
|
|
7
7
|
class ConversionError < BrandDev::Errors::Error
|
8
|
+
def cause: -> StandardError?
|
9
|
+
|
10
|
+
def initialize: (
|
11
|
+
on: Class,
|
12
|
+
method: Symbol,
|
13
|
+
target: top,
|
14
|
+
value: top,
|
15
|
+
?cause: StandardError?
|
16
|
+
) -> void
|
8
17
|
end
|
9
18
|
|
10
19
|
class APIError < BrandDev::Errors::Error
|
@@ -8,8 +8,10 @@ module BrandDev
|
|
8
8
|
|
9
9
|
type coerce_state =
|
10
10
|
{
|
11
|
-
|
11
|
+
translate_names: bool,
|
12
|
+
strictness: bool,
|
12
13
|
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
14
|
+
error: Class,
|
13
15
|
branched: Integer
|
14
16
|
}
|
15
17
|
|
@@ -37,6 +39,10 @@ module BrandDev
|
|
37
39
|
| BrandDev::Internal::Type::Converter::input spec
|
38
40
|
) -> (^-> top)
|
39
41
|
|
42
|
+
def self.new_coerce_state: (
|
43
|
+
?translate_names: bool
|
44
|
+
) -> BrandDev::Internal::Type::Converter::coerce_state
|
45
|
+
|
40
46
|
def self.coerce: (
|
41
47
|
BrandDev::Internal::Type::Converter::input target,
|
42
48
|
top value,
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_retrieve_simplified_params =
|
4
|
+
{ domain: String, timeout_ms: Integer }
|
5
|
+
& BrandDev::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class BrandRetrieveSimplifiedParams < BrandDev::Internal::Type::BaseModel
|
8
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
9
|
+
include BrandDev::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
attr_accessor domain: String
|
12
|
+
|
13
|
+
attr_reader timeout_ms: Integer?
|
14
|
+
|
15
|
+
def timeout_ms=: (Integer) -> Integer
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
domain: String,
|
19
|
+
?timeout_ms: Integer,
|
20
|
+
?request_options: BrandDev::request_opts
|
21
|
+
) -> void
|
22
|
+
|
23
|
+
def to_hash: -> {
|
24
|
+
domain: String,
|
25
|
+
timeout_ms: Integer,
|
26
|
+
request_options: BrandDev::RequestOptions
|
27
|
+
}
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,292 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_retrieve_simplified_response =
|
4
|
+
{
|
5
|
+
brand: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand,
|
6
|
+
code: Integer,
|
7
|
+
status: String
|
8
|
+
}
|
9
|
+
|
10
|
+
class BrandRetrieveSimplifiedResponse < BrandDev::Internal::Type::BaseModel
|
11
|
+
attr_reader brand: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand?
|
12
|
+
|
13
|
+
def brand=: (
|
14
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand
|
15
|
+
) -> BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand
|
16
|
+
|
17
|
+
attr_reader code: Integer?
|
18
|
+
|
19
|
+
def code=: (Integer) -> Integer
|
20
|
+
|
21
|
+
attr_reader status: String?
|
22
|
+
|
23
|
+
def status=: (String) -> String
|
24
|
+
|
25
|
+
def initialize: (
|
26
|
+
?brand: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand,
|
27
|
+
?code: Integer,
|
28
|
+
?status: String
|
29
|
+
) -> void
|
30
|
+
|
31
|
+
def to_hash: -> {
|
32
|
+
brand: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand,
|
33
|
+
code: Integer,
|
34
|
+
status: String
|
35
|
+
}
|
36
|
+
|
37
|
+
type brand =
|
38
|
+
{
|
39
|
+
backdrops: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop],
|
40
|
+
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color],
|
41
|
+
domain: String,
|
42
|
+
logos: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo],
|
43
|
+
title: String
|
44
|
+
}
|
45
|
+
|
46
|
+
class Brand < BrandDev::Internal::Type::BaseModel
|
47
|
+
attr_reader backdrops: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop]?
|
48
|
+
|
49
|
+
def backdrops=: (
|
50
|
+
::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop]
|
51
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop]
|
52
|
+
|
53
|
+
attr_reader colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color]?
|
54
|
+
|
55
|
+
def colors=: (
|
56
|
+
::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color]
|
57
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color]
|
58
|
+
|
59
|
+
attr_reader domain: String?
|
60
|
+
|
61
|
+
def domain=: (String) -> String
|
62
|
+
|
63
|
+
attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo]?
|
64
|
+
|
65
|
+
def logos=: (
|
66
|
+
::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo]
|
67
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo]
|
68
|
+
|
69
|
+
attr_reader title: String?
|
70
|
+
|
71
|
+
def title=: (String) -> String
|
72
|
+
|
73
|
+
def initialize: (
|
74
|
+
?backdrops: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop],
|
75
|
+
?colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color],
|
76
|
+
?domain: String,
|
77
|
+
?logos: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo],
|
78
|
+
?title: String
|
79
|
+
) -> void
|
80
|
+
|
81
|
+
def to_hash: -> {
|
82
|
+
backdrops: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop],
|
83
|
+
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color],
|
84
|
+
domain: String,
|
85
|
+
logos: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo],
|
86
|
+
title: String
|
87
|
+
}
|
88
|
+
|
89
|
+
type backdrop =
|
90
|
+
{
|
91
|
+
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color],
|
92
|
+
resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution,
|
93
|
+
url: String
|
94
|
+
}
|
95
|
+
|
96
|
+
class Backdrop < BrandDev::Internal::Type::BaseModel
|
97
|
+
attr_reader colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color]?
|
98
|
+
|
99
|
+
def colors=: (
|
100
|
+
::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color]
|
101
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color]
|
102
|
+
|
103
|
+
attr_reader resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution?
|
104
|
+
|
105
|
+
def resolution=: (
|
106
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution
|
107
|
+
) -> BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution
|
108
|
+
|
109
|
+
attr_reader url: String?
|
110
|
+
|
111
|
+
def url=: (String) -> String
|
112
|
+
|
113
|
+
def initialize: (
|
114
|
+
?colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color],
|
115
|
+
?resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution,
|
116
|
+
?url: String
|
117
|
+
) -> void
|
118
|
+
|
119
|
+
def to_hash: -> {
|
120
|
+
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color],
|
121
|
+
resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution,
|
122
|
+
url: String
|
123
|
+
}
|
124
|
+
|
125
|
+
type color = { hex: String, name: String }
|
126
|
+
|
127
|
+
class Color < BrandDev::Internal::Type::BaseModel
|
128
|
+
attr_reader hex: String?
|
129
|
+
|
130
|
+
def hex=: (String) -> String
|
131
|
+
|
132
|
+
attr_reader name: String?
|
133
|
+
|
134
|
+
def name=: (String) -> String
|
135
|
+
|
136
|
+
def initialize: (?hex: String, ?name: String) -> void
|
137
|
+
|
138
|
+
def to_hash: -> { hex: String, name: String }
|
139
|
+
end
|
140
|
+
|
141
|
+
type resolution =
|
142
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
143
|
+
|
144
|
+
class Resolution < BrandDev::Internal::Type::BaseModel
|
145
|
+
attr_reader aspect_ratio: Float?
|
146
|
+
|
147
|
+
def aspect_ratio=: (Float) -> Float
|
148
|
+
|
149
|
+
attr_reader height: Integer?
|
150
|
+
|
151
|
+
def height=: (Integer) -> Integer
|
152
|
+
|
153
|
+
attr_reader width: Integer?
|
154
|
+
|
155
|
+
def width=: (Integer) -> Integer
|
156
|
+
|
157
|
+
def initialize: (
|
158
|
+
?aspect_ratio: Float,
|
159
|
+
?height: Integer,
|
160
|
+
?width: Integer
|
161
|
+
) -> void
|
162
|
+
|
163
|
+
def to_hash: -> {
|
164
|
+
aspect_ratio: Float,
|
165
|
+
height: Integer,
|
166
|
+
width: Integer
|
167
|
+
}
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
type color = { hex: String, name: String }
|
172
|
+
|
173
|
+
class Color < BrandDev::Internal::Type::BaseModel
|
174
|
+
attr_reader hex: String?
|
175
|
+
|
176
|
+
def hex=: (String) -> String
|
177
|
+
|
178
|
+
attr_reader name: String?
|
179
|
+
|
180
|
+
def name=: (String) -> String
|
181
|
+
|
182
|
+
def initialize: (?hex: String, ?name: String) -> void
|
183
|
+
|
184
|
+
def to_hash: -> { hex: String, name: String }
|
185
|
+
end
|
186
|
+
|
187
|
+
type logo =
|
188
|
+
{
|
189
|
+
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color],
|
190
|
+
group: Integer,
|
191
|
+
mode: String,
|
192
|
+
resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
193
|
+
type: String,
|
194
|
+
url: String
|
195
|
+
}
|
196
|
+
|
197
|
+
class Logo < BrandDev::Internal::Type::BaseModel
|
198
|
+
attr_reader colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color]?
|
199
|
+
|
200
|
+
def colors=: (
|
201
|
+
::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color]
|
202
|
+
) -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color]
|
203
|
+
|
204
|
+
attr_reader group: Integer?
|
205
|
+
|
206
|
+
def group=: (Integer) -> Integer
|
207
|
+
|
208
|
+
attr_reader mode: String?
|
209
|
+
|
210
|
+
def mode=: (String) -> String
|
211
|
+
|
212
|
+
attr_reader resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution?
|
213
|
+
|
214
|
+
def resolution=: (
|
215
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution
|
216
|
+
) -> BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution
|
217
|
+
|
218
|
+
attr_reader type: String?
|
219
|
+
|
220
|
+
def type=: (String) -> String
|
221
|
+
|
222
|
+
attr_reader url: String?
|
223
|
+
|
224
|
+
def url=: (String) -> String
|
225
|
+
|
226
|
+
def initialize: (
|
227
|
+
?colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color],
|
228
|
+
?group: Integer,
|
229
|
+
?mode: String,
|
230
|
+
?resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
231
|
+
?type: String,
|
232
|
+
?url: String
|
233
|
+
) -> void
|
234
|
+
|
235
|
+
def to_hash: -> {
|
236
|
+
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color],
|
237
|
+
group: Integer,
|
238
|
+
mode: String,
|
239
|
+
resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
240
|
+
type: String,
|
241
|
+
url: String
|
242
|
+
}
|
243
|
+
|
244
|
+
type color = { hex: String, name: String }
|
245
|
+
|
246
|
+
class Color < BrandDev::Internal::Type::BaseModel
|
247
|
+
attr_reader hex: String?
|
248
|
+
|
249
|
+
def hex=: (String) -> String
|
250
|
+
|
251
|
+
attr_reader name: String?
|
252
|
+
|
253
|
+
def name=: (String) -> String
|
254
|
+
|
255
|
+
def initialize: (?hex: String, ?name: String) -> void
|
256
|
+
|
257
|
+
def to_hash: -> { hex: String, name: String }
|
258
|
+
end
|
259
|
+
|
260
|
+
type resolution =
|
261
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
262
|
+
|
263
|
+
class Resolution < BrandDev::Internal::Type::BaseModel
|
264
|
+
attr_reader aspect_ratio: Float?
|
265
|
+
|
266
|
+
def aspect_ratio=: (Float) -> Float
|
267
|
+
|
268
|
+
attr_reader height: Integer?
|
269
|
+
|
270
|
+
def height=: (Integer) -> Integer
|
271
|
+
|
272
|
+
attr_reader width: Integer?
|
273
|
+
|
274
|
+
def width=: (Integer) -> Integer
|
275
|
+
|
276
|
+
def initialize: (
|
277
|
+
?aspect_ratio: Float,
|
278
|
+
?height: Integer,
|
279
|
+
?width: Integer
|
280
|
+
) -> void
|
281
|
+
|
282
|
+
def to_hash: -> {
|
283
|
+
aspect_ratio: Float,
|
284
|
+
height: Integer,
|
285
|
+
width: Integer
|
286
|
+
}
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
end
|
292
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_screenshot_params =
|
4
|
+
{
|
5
|
+
domain: String,
|
6
|
+
full_screenshot: BrandDev::Models::BrandScreenshotParams::full_screenshot
|
7
|
+
}
|
8
|
+
& BrandDev::Internal::Type::request_parameters
|
9
|
+
|
10
|
+
class BrandScreenshotParams < BrandDev::Internal::Type::BaseModel
|
11
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
12
|
+
include BrandDev::Internal::Type::RequestParameters
|
13
|
+
|
14
|
+
attr_accessor domain: String
|
15
|
+
|
16
|
+
attr_reader full_screenshot: BrandDev::Models::BrandScreenshotParams::full_screenshot?
|
17
|
+
|
18
|
+
def full_screenshot=: (
|
19
|
+
BrandDev::Models::BrandScreenshotParams::full_screenshot
|
20
|
+
) -> BrandDev::Models::BrandScreenshotParams::full_screenshot
|
21
|
+
|
22
|
+
def initialize: (
|
23
|
+
domain: String,
|
24
|
+
?full_screenshot: BrandDev::Models::BrandScreenshotParams::full_screenshot,
|
25
|
+
?request_options: BrandDev::request_opts
|
26
|
+
) -> void
|
27
|
+
|
28
|
+
def to_hash: -> {
|
29
|
+
domain: String,
|
30
|
+
full_screenshot: BrandDev::Models::BrandScreenshotParams::full_screenshot,
|
31
|
+
request_options: BrandDev::RequestOptions
|
32
|
+
}
|
33
|
+
|
34
|
+
type full_screenshot = :true | :false
|
35
|
+
|
36
|
+
module FullScreenshot
|
37
|
+
extend BrandDev::Internal::Type::Enum
|
38
|
+
|
39
|
+
TRUE: :true
|
40
|
+
FALSE: :false
|
41
|
+
|
42
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandScreenshotParams::full_screenshot]
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_screenshot_response =
|
4
|
+
{
|
5
|
+
code: Integer,
|
6
|
+
domain: String,
|
7
|
+
screenshot: String,
|
8
|
+
screenshot_type: BrandDev::Models::BrandScreenshotResponse::screenshot_type,
|
9
|
+
status: String
|
10
|
+
}
|
11
|
+
|
12
|
+
class BrandScreenshotResponse < BrandDev::Internal::Type::BaseModel
|
13
|
+
attr_reader code: Integer?
|
14
|
+
|
15
|
+
def code=: (Integer) -> Integer
|
16
|
+
|
17
|
+
attr_reader domain: String?
|
18
|
+
|
19
|
+
def domain=: (String) -> String
|
20
|
+
|
21
|
+
attr_reader screenshot: String?
|
22
|
+
|
23
|
+
def screenshot=: (String) -> String
|
24
|
+
|
25
|
+
attr_reader screenshot_type: BrandDev::Models::BrandScreenshotResponse::screenshot_type?
|
26
|
+
|
27
|
+
def screenshot_type=: (
|
28
|
+
BrandDev::Models::BrandScreenshotResponse::screenshot_type
|
29
|
+
) -> BrandDev::Models::BrandScreenshotResponse::screenshot_type
|
30
|
+
|
31
|
+
attr_reader status: String?
|
32
|
+
|
33
|
+
def status=: (String) -> String
|
34
|
+
|
35
|
+
def initialize: (
|
36
|
+
?code: Integer,
|
37
|
+
?domain: String,
|
38
|
+
?screenshot: String,
|
39
|
+
?screenshot_type: BrandDev::Models::BrandScreenshotResponse::screenshot_type,
|
40
|
+
?status: String
|
41
|
+
) -> void
|
42
|
+
|
43
|
+
def to_hash: -> {
|
44
|
+
code: Integer,
|
45
|
+
domain: String,
|
46
|
+
screenshot: String,
|
47
|
+
screenshot_type: BrandDev::Models::BrandScreenshotResponse::screenshot_type,
|
48
|
+
status: String
|
49
|
+
}
|
50
|
+
|
51
|
+
type screenshot_type = :viewport | :fullPage
|
52
|
+
|
53
|
+
module ScreenshotType
|
54
|
+
extend BrandDev::Internal::Type::Enum
|
55
|
+
|
56
|
+
VIEWPORT: :viewport
|
57
|
+
FULL_PAGE: :fullPage
|
58
|
+
|
59
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandScreenshotResponse::screenshot_type]
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_styleguide_params =
|
4
|
+
{ domain: String, timeout_ms: Integer }
|
5
|
+
& BrandDev::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class BrandStyleguideParams < BrandDev::Internal::Type::BaseModel
|
8
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
9
|
+
include BrandDev::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
attr_accessor domain: String
|
12
|
+
|
13
|
+
attr_reader timeout_ms: Integer?
|
14
|
+
|
15
|
+
def timeout_ms=: (Integer) -> Integer
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
domain: String,
|
19
|
+
?timeout_ms: Integer,
|
20
|
+
?request_options: BrandDev::request_opts
|
21
|
+
) -> void
|
22
|
+
|
23
|
+
def to_hash: -> {
|
24
|
+
domain: String,
|
25
|
+
timeout_ms: Integer,
|
26
|
+
request_options: BrandDev::RequestOptions
|
27
|
+
}
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|