brand.dev 0.1.0.pre.alpha.13 → 0.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 +49 -0
- data/README.md +1 -1
- data/lib/brand_dev/internal/transport/base_client.rb +10 -2
- data/lib/brand_dev/models/brand_ai_query_response.rb +9 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +90 -43
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +89 -43
- data/lib/brand_dev/models/brand_retrieve_response.rb +89 -44
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +46 -19
- data/lib/brand_dev/models.rb +0 -2
- data/lib/brand_dev/resources/brand.rb +0 -27
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +0 -2
- data/rbi/brand_dev/models/brand_ai_query_response.rbi +11 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +195 -90
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +195 -90
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +195 -88
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +121 -25
- data/rbi/brand_dev/models.rbi +0 -2
- data/rbi/brand_dev/resources/brand.rbi +0 -19
- data/sig/brand_dev/models/brand_ai_query_response.rbs +7 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +91 -42
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +91 -42
- data/sig/brand_dev/models/brand_retrieve_response.rbs +91 -42
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +37 -17
- data/sig/brand_dev/models.rbs +0 -2
- data/sig/brand_dev/resources/brand.rbs +0 -6
- metadata +4 -10
- data/lib/brand_dev/models/brand_search_params.rb +0 -35
- data/lib/brand_dev/models/brand_search_response.rb +0 -35
- data/rbi/brand_dev/models/brand_search_params.rbi +0 -58
- data/rbi/brand_dev/models/brand_search_response.rbi +0 -63
- data/sig/brand_dev/models/brand_search_params.rbs +0 -30
- data/sig/brand_dev/models/brand_search_response.rbs +0 -29
@@ -41,8 +41,10 @@ module BrandDev
|
|
41
41
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
42
42
|
description: String,
|
43
43
|
domain: String,
|
44
|
-
|
44
|
+
email: String,
|
45
|
+
is_nsfw: bool,
|
45
46
|
logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
47
|
+
phone: String,
|
46
48
|
slogan: String,
|
47
49
|
socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
|
48
50
|
stock: BrandDev::Models::BrandRetrieveResponse::Brand::Stock,
|
@@ -76,11 +78,13 @@ module BrandDev
|
|
76
78
|
|
77
79
|
def domain=: (String) -> String
|
78
80
|
|
79
|
-
attr_reader
|
81
|
+
attr_reader email: String?
|
80
82
|
|
81
|
-
def
|
82
|
-
|
83
|
-
|
83
|
+
def email=: (String) -> String
|
84
|
+
|
85
|
+
attr_reader is_nsfw: bool?
|
86
|
+
|
87
|
+
def is_nsfw=: (bool) -> bool
|
84
88
|
|
85
89
|
attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo]?
|
86
90
|
|
@@ -88,6 +92,10 @@ module BrandDev
|
|
88
92
|
::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo]
|
89
93
|
) -> ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo]
|
90
94
|
|
95
|
+
attr_reader phone: String?
|
96
|
+
|
97
|
+
def phone=: (String) -> String
|
98
|
+
|
91
99
|
attr_reader slogan: String?
|
92
100
|
|
93
101
|
def slogan=: (String) -> String
|
@@ -114,8 +122,10 @@ module BrandDev
|
|
114
122
|
?colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
115
123
|
?description: String,
|
116
124
|
?domain: String,
|
117
|
-
?
|
125
|
+
?email: String,
|
126
|
+
?is_nsfw: bool,
|
118
127
|
?logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
128
|
+
?phone: String,
|
119
129
|
?slogan: String,
|
120
130
|
?socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
|
121
131
|
?stock: BrandDev::Models::BrandRetrieveResponse::Brand::Stock,
|
@@ -128,8 +138,10 @@ module BrandDev
|
|
128
138
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
129
139
|
description: String,
|
130
140
|
domain: String,
|
131
|
-
|
141
|
+
email: String,
|
142
|
+
is_nsfw: bool,
|
132
143
|
logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
144
|
+
phone: String,
|
133
145
|
slogan: String,
|
134
146
|
socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
|
135
147
|
stock: BrandDev::Models::BrandRetrieveResponse::Brand::Stock,
|
@@ -249,9 +261,14 @@ module BrandDev
|
|
249
261
|
def to_hash: -> { hex: String, name: String }
|
250
262
|
end
|
251
263
|
|
252
|
-
type resolution =
|
264
|
+
type resolution =
|
265
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
253
266
|
|
254
267
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
268
|
+
attr_reader aspect_ratio: Float?
|
269
|
+
|
270
|
+
def aspect_ratio=: (Float) -> Float
|
271
|
+
|
255
272
|
attr_reader height: Integer?
|
256
273
|
|
257
274
|
def height=: (Integer) -> Integer
|
@@ -260,9 +277,17 @@ module BrandDev
|
|
260
277
|
|
261
278
|
def width=: (Integer) -> Integer
|
262
279
|
|
263
|
-
def initialize: (
|
264
|
-
|
265
|
-
|
280
|
+
def initialize: (
|
281
|
+
?aspect_ratio: Float,
|
282
|
+
?height: Integer,
|
283
|
+
?width: Integer
|
284
|
+
) -> void
|
285
|
+
|
286
|
+
def to_hash: -> {
|
287
|
+
aspect_ratio: Float,
|
288
|
+
height: Integer,
|
289
|
+
width: Integer
|
290
|
+
}
|
266
291
|
end
|
267
292
|
end
|
268
293
|
|
@@ -282,28 +307,12 @@ module BrandDev
|
|
282
307
|
def to_hash: -> { hex: String, name: String }
|
283
308
|
end
|
284
309
|
|
285
|
-
type font = { name: String, usage: String }
|
286
|
-
|
287
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
288
|
-
attr_reader name: String?
|
289
|
-
|
290
|
-
def name=: (String) -> String
|
291
|
-
|
292
|
-
attr_reader usage: String?
|
293
|
-
|
294
|
-
def usage=: (String) -> String
|
295
|
-
|
296
|
-
def initialize: (?name: String, ?usage: String) -> void
|
297
|
-
|
298
|
-
def to_hash: -> { name: String, usage: String }
|
299
|
-
end
|
300
|
-
|
301
310
|
type logo =
|
302
311
|
{
|
303
312
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color],
|
304
|
-
|
305
|
-
mode: String,
|
313
|
+
mode: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode,
|
306
314
|
resolution: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution,
|
315
|
+
type: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_,
|
307
316
|
url: String
|
308
317
|
}
|
309
318
|
|
@@ -314,13 +323,11 @@ module BrandDev
|
|
314
323
|
::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color]
|
315
324
|
) -> ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color]
|
316
325
|
|
317
|
-
attr_reader
|
318
|
-
|
319
|
-
def group=: (Integer) -> Integer
|
326
|
+
attr_reader mode: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode?
|
320
327
|
|
321
|
-
|
322
|
-
|
323
|
-
|
328
|
+
def mode=: (
|
329
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode
|
330
|
+
) -> BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode
|
324
331
|
|
325
332
|
attr_reader resolution: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution?
|
326
333
|
|
@@ -328,23 +335,29 @@ module BrandDev
|
|
328
335
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution
|
329
336
|
) -> BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution
|
330
337
|
|
338
|
+
attr_reader type: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_?
|
339
|
+
|
340
|
+
def type=: (
|
341
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_
|
342
|
+
) -> BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_
|
343
|
+
|
331
344
|
attr_reader url: String?
|
332
345
|
|
333
346
|
def url=: (String) -> String
|
334
347
|
|
335
348
|
def initialize: (
|
336
349
|
?colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color],
|
337
|
-
?
|
338
|
-
?mode: String,
|
350
|
+
?mode: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode,
|
339
351
|
?resolution: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution,
|
352
|
+
?type: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_,
|
340
353
|
?url: String
|
341
354
|
) -> void
|
342
355
|
|
343
356
|
def to_hash: -> {
|
344
357
|
colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color],
|
345
|
-
|
346
|
-
mode: String,
|
358
|
+
mode: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode,
|
347
359
|
resolution: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution,
|
360
|
+
type: BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_,
|
348
361
|
url: String
|
349
362
|
}
|
350
363
|
|
@@ -364,9 +377,26 @@ module BrandDev
|
|
364
377
|
def to_hash: -> { hex: String, name: String }
|
365
378
|
end
|
366
379
|
|
367
|
-
type
|
380
|
+
type mode = :light | :dark | :has_opaque_background
|
381
|
+
|
382
|
+
module Mode
|
383
|
+
extend BrandDev::Internal::Type::Enum
|
384
|
+
|
385
|
+
LIGHT: :light
|
386
|
+
DARK: :dark
|
387
|
+
HAS_OPAQUE_BACKGROUND: :has_opaque_background
|
388
|
+
|
389
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::mode]
|
390
|
+
end
|
391
|
+
|
392
|
+
type resolution =
|
393
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
368
394
|
|
369
395
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
396
|
+
attr_reader aspect_ratio: Float?
|
397
|
+
|
398
|
+
def aspect_ratio=: (Float) -> Float
|
399
|
+
|
370
400
|
attr_reader height: Integer?
|
371
401
|
|
372
402
|
def height=: (Integer) -> Integer
|
@@ -375,9 +405,28 @@ module BrandDev
|
|
375
405
|
|
376
406
|
def width=: (Integer) -> Integer
|
377
407
|
|
378
|
-
def initialize: (
|
408
|
+
def initialize: (
|
409
|
+
?aspect_ratio: Float,
|
410
|
+
?height: Integer,
|
411
|
+
?width: Integer
|
412
|
+
) -> void
|
413
|
+
|
414
|
+
def to_hash: -> {
|
415
|
+
aspect_ratio: Float,
|
416
|
+
height: Integer,
|
417
|
+
width: Integer
|
418
|
+
}
|
419
|
+
end
|
420
|
+
|
421
|
+
type type_ = :icon | :logo
|
422
|
+
|
423
|
+
module Type
|
424
|
+
extend BrandDev::Internal::Type::Enum
|
425
|
+
|
426
|
+
ICON: :icon
|
427
|
+
LOGO: :logo
|
379
428
|
|
380
|
-
def
|
429
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::type_]
|
381
430
|
end
|
382
431
|
end
|
383
432
|
|
@@ -187,10 +187,9 @@ module BrandDev
|
|
187
187
|
type logo =
|
188
188
|
{
|
189
189
|
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color],
|
190
|
-
|
191
|
-
mode: String,
|
190
|
+
mode: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode,
|
192
191
|
resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
193
|
-
type:
|
192
|
+
type: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_,
|
194
193
|
url: String
|
195
194
|
}
|
196
195
|
|
@@ -201,13 +200,11 @@ module BrandDev
|
|
201
200
|
::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color]
|
202
201
|
) -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color]
|
203
202
|
|
204
|
-
attr_reader
|
203
|
+
attr_reader mode: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode?
|
205
204
|
|
206
|
-
def
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
def mode=: (String) -> String
|
205
|
+
def mode=: (
|
206
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode
|
207
|
+
) -> BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode
|
211
208
|
|
212
209
|
attr_reader resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution?
|
213
210
|
|
@@ -215,9 +212,11 @@ module BrandDev
|
|
215
212
|
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution
|
216
213
|
) -> BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution
|
217
214
|
|
218
|
-
attr_reader type:
|
215
|
+
attr_reader type: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_?
|
219
216
|
|
220
|
-
def type=: (
|
217
|
+
def type=: (
|
218
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_
|
219
|
+
) -> BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_
|
221
220
|
|
222
221
|
attr_reader url: String?
|
223
222
|
|
@@ -225,19 +224,17 @@ module BrandDev
|
|
225
224
|
|
226
225
|
def initialize: (
|
227
226
|
?colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color],
|
228
|
-
?
|
229
|
-
?mode: String,
|
227
|
+
?mode: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode,
|
230
228
|
?resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
231
|
-
?type:
|
229
|
+
?type: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_,
|
232
230
|
?url: String
|
233
231
|
) -> void
|
234
232
|
|
235
233
|
def to_hash: -> {
|
236
234
|
colors: ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color],
|
237
|
-
|
238
|
-
mode: String,
|
235
|
+
mode: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode,
|
239
236
|
resolution: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
240
|
-
type:
|
237
|
+
type: BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_,
|
241
238
|
url: String
|
242
239
|
}
|
243
240
|
|
@@ -257,6 +254,18 @@ module BrandDev
|
|
257
254
|
def to_hash: -> { hex: String, name: String }
|
258
255
|
end
|
259
256
|
|
257
|
+
type mode = :light | :dark | :has_opaque_background
|
258
|
+
|
259
|
+
module Mode
|
260
|
+
extend BrandDev::Internal::Type::Enum
|
261
|
+
|
262
|
+
LIGHT: :light
|
263
|
+
DARK: :dark
|
264
|
+
HAS_OPAQUE_BACKGROUND: :has_opaque_background
|
265
|
+
|
266
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::mode]
|
267
|
+
end
|
268
|
+
|
260
269
|
type resolution =
|
261
270
|
{ aspect_ratio: Float, height: Integer, width: Integer }
|
262
271
|
|
@@ -285,6 +294,17 @@ module BrandDev
|
|
285
294
|
width: Integer
|
286
295
|
}
|
287
296
|
end
|
297
|
+
|
298
|
+
type type_ = :icon | :logo
|
299
|
+
|
300
|
+
module Type
|
301
|
+
extend BrandDev::Internal::Type::Enum
|
302
|
+
|
303
|
+
ICON: :icon
|
304
|
+
LOGO: :logo
|
305
|
+
|
306
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::type_]
|
307
|
+
end
|
288
308
|
end
|
289
309
|
end
|
290
310
|
end
|
data/sig/brand_dev/models.rbs
CHANGED
@@ -53,12 +53,6 @@ module BrandDev
|
|
53
53
|
?request_options: BrandDev::request_opts
|
54
54
|
) -> BrandDev::Models::BrandScreenshotResponse
|
55
55
|
|
56
|
-
def search: (
|
57
|
-
query: String,
|
58
|
-
?timeout_ms: Integer,
|
59
|
-
?request_options: BrandDev::request_opts
|
60
|
-
) -> BrandDev::Models::brand_search_response
|
61
|
-
|
62
56
|
def styleguide: (
|
63
57
|
domain: String,
|
64
58
|
?timeout_ms: Integer,
|
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.
|
4
|
+
version: 0.2.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: 2025-
|
11
|
+
date: 2025-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -70,8 +70,6 @@ files:
|
|
70
70
|
- lib/brand_dev/models/brand_retrieve_simplified_response.rb
|
71
71
|
- lib/brand_dev/models/brand_screenshot_params.rb
|
72
72
|
- lib/brand_dev/models/brand_screenshot_response.rb
|
73
|
-
- lib/brand_dev/models/brand_search_params.rb
|
74
|
-
- lib/brand_dev/models/brand_search_response.rb
|
75
73
|
- lib/brand_dev/models/brand_styleguide_params.rb
|
76
74
|
- lib/brand_dev/models/brand_styleguide_response.rb
|
77
75
|
- lib/brand_dev/request_options.rb
|
@@ -113,8 +111,6 @@ files:
|
|
113
111
|
- rbi/brand_dev/models/brand_retrieve_simplified_response.rbi
|
114
112
|
- rbi/brand_dev/models/brand_screenshot_params.rbi
|
115
113
|
- rbi/brand_dev/models/brand_screenshot_response.rbi
|
116
|
-
- rbi/brand_dev/models/brand_search_params.rbi
|
117
|
-
- rbi/brand_dev/models/brand_search_response.rbi
|
118
114
|
- rbi/brand_dev/models/brand_styleguide_params.rbi
|
119
115
|
- rbi/brand_dev/models/brand_styleguide_response.rbi
|
120
116
|
- rbi/brand_dev/request_options.rbi
|
@@ -155,8 +151,6 @@ files:
|
|
155
151
|
- sig/brand_dev/models/brand_retrieve_simplified_response.rbs
|
156
152
|
- sig/brand_dev/models/brand_screenshot_params.rbs
|
157
153
|
- sig/brand_dev/models/brand_screenshot_response.rbs
|
158
|
-
- sig/brand_dev/models/brand_search_params.rbs
|
159
|
-
- sig/brand_dev/models/brand_search_response.rbs
|
160
154
|
- sig/brand_dev/models/brand_styleguide_params.rbs
|
161
155
|
- sig/brand_dev/models/brand_styleguide_response.rbs
|
162
156
|
- sig/brand_dev/request_options.rbs
|
@@ -179,9 +173,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
173
|
version: 3.2.0
|
180
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
175
|
requirements:
|
182
|
-
- - "
|
176
|
+
- - ">="
|
183
177
|
- !ruby/object:Gem::Version
|
184
|
-
version:
|
178
|
+
version: '0'
|
185
179
|
requirements: []
|
186
180
|
rubygems_version: 3.4.1
|
187
181
|
signing_key:
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
# @see BrandDev::Resources::Brand#search
|
6
|
-
class BrandSearchParams < BrandDev::Internal::Type::BaseModel
|
7
|
-
extend BrandDev::Internal::Type::RequestParameters::Converter
|
8
|
-
include BrandDev::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!attribute query
|
11
|
-
# Query string to search brands
|
12
|
-
#
|
13
|
-
# @return [String]
|
14
|
-
required :query, String
|
15
|
-
|
16
|
-
# @!attribute timeout_ms
|
17
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
18
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
19
|
-
# value is 300000ms (5 minutes).
|
20
|
-
#
|
21
|
-
# @return [Integer, nil]
|
22
|
-
optional :timeout_ms, Integer
|
23
|
-
|
24
|
-
# @!method initialize(query:, timeout_ms: nil, request_options: {})
|
25
|
-
# Some parameter documentations has been truncated, see
|
26
|
-
# {BrandDev::Models::BrandSearchParams} for more details.
|
27
|
-
#
|
28
|
-
# @param query [String] Query string to search brands
|
29
|
-
#
|
30
|
-
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
31
|
-
#
|
32
|
-
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
class BrandSearchResponseItem < BrandDev::Internal::Type::BaseModel
|
6
|
-
# @!attribute domain
|
7
|
-
# Domain name of the brand
|
8
|
-
#
|
9
|
-
# @return [String, nil]
|
10
|
-
optional :domain, String
|
11
|
-
|
12
|
-
# @!attribute logo
|
13
|
-
# URL of the brand's logo
|
14
|
-
#
|
15
|
-
# @return [String, nil]
|
16
|
-
optional :logo, String
|
17
|
-
|
18
|
-
# @!attribute title
|
19
|
-
# Title or name of the brand
|
20
|
-
#
|
21
|
-
# @return [String, nil]
|
22
|
-
optional :title, String
|
23
|
-
|
24
|
-
# @!method initialize(domain: nil, logo: nil, title: nil)
|
25
|
-
# @param domain [String] Domain name of the brand
|
26
|
-
#
|
27
|
-
# @param logo [String] URL of the brand's logo
|
28
|
-
#
|
29
|
-
# @param title [String] Title or name of the brand
|
30
|
-
end
|
31
|
-
|
32
|
-
# @type [BrandDev::Internal::Type::Converter]
|
33
|
-
BrandSearchResponse = BrandDev::Internal::Type::ArrayOf[-> { BrandDev::Models::BrandSearchResponseItem }]
|
34
|
-
end
|
35
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
class BrandSearchParams < BrandDev::Internal::Type::BaseModel
|
6
|
-
extend BrandDev::Internal::Type::RequestParameters::Converter
|
7
|
-
include BrandDev::Internal::Type::RequestParameters
|
8
|
-
|
9
|
-
OrHash =
|
10
|
-
T.type_alias do
|
11
|
-
T.any(BrandDev::BrandSearchParams, BrandDev::Internal::AnyHash)
|
12
|
-
end
|
13
|
-
|
14
|
-
# Query string to search brands
|
15
|
-
sig { returns(String) }
|
16
|
-
attr_accessor :query
|
17
|
-
|
18
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
19
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
20
|
-
# value is 300000ms (5 minutes).
|
21
|
-
sig { returns(T.nilable(Integer)) }
|
22
|
-
attr_reader :timeout_ms
|
23
|
-
|
24
|
-
sig { params(timeout_ms: Integer).void }
|
25
|
-
attr_writer :timeout_ms
|
26
|
-
|
27
|
-
sig do
|
28
|
-
params(
|
29
|
-
query: String,
|
30
|
-
timeout_ms: Integer,
|
31
|
-
request_options: BrandDev::RequestOptions::OrHash
|
32
|
-
).returns(T.attached_class)
|
33
|
-
end
|
34
|
-
def self.new(
|
35
|
-
# Query string to search brands
|
36
|
-
query:,
|
37
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
38
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
39
|
-
# value is 300000ms (5 minutes).
|
40
|
-
timeout_ms: nil,
|
41
|
-
request_options: {}
|
42
|
-
)
|
43
|
-
end
|
44
|
-
|
45
|
-
sig do
|
46
|
-
override.returns(
|
47
|
-
{
|
48
|
-
query: String,
|
49
|
-
timeout_ms: Integer,
|
50
|
-
request_options: BrandDev::RequestOptions
|
51
|
-
}
|
52
|
-
)
|
53
|
-
end
|
54
|
-
def to_hash
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module BrandDev
|
4
|
-
module Models
|
5
|
-
class BrandSearchResponseItem < BrandDev::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
7
|
-
T.type_alias do
|
8
|
-
T.any(
|
9
|
-
BrandDev::Models::BrandSearchResponseItem,
|
10
|
-
BrandDev::Internal::AnyHash
|
11
|
-
)
|
12
|
-
end
|
13
|
-
|
14
|
-
# Domain name of the brand
|
15
|
-
sig { returns(T.nilable(String)) }
|
16
|
-
attr_reader :domain
|
17
|
-
|
18
|
-
sig { params(domain: String).void }
|
19
|
-
attr_writer :domain
|
20
|
-
|
21
|
-
# URL of the brand's logo
|
22
|
-
sig { returns(T.nilable(String)) }
|
23
|
-
attr_reader :logo
|
24
|
-
|
25
|
-
sig { params(logo: String).void }
|
26
|
-
attr_writer :logo
|
27
|
-
|
28
|
-
# Title or name of the brand
|
29
|
-
sig { returns(T.nilable(String)) }
|
30
|
-
attr_reader :title
|
31
|
-
|
32
|
-
sig { params(title: String).void }
|
33
|
-
attr_writer :title
|
34
|
-
|
35
|
-
sig do
|
36
|
-
params(domain: String, logo: String, title: String).returns(
|
37
|
-
T.attached_class
|
38
|
-
)
|
39
|
-
end
|
40
|
-
def self.new(
|
41
|
-
# Domain name of the brand
|
42
|
-
domain: nil,
|
43
|
-
# URL of the brand's logo
|
44
|
-
logo: nil,
|
45
|
-
# Title or name of the brand
|
46
|
-
title: nil
|
47
|
-
)
|
48
|
-
end
|
49
|
-
|
50
|
-
sig { override.returns({ domain: String, logo: String, title: String }) }
|
51
|
-
def to_hash
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
BrandSearchResponse =
|
56
|
-
T.let(
|
57
|
-
BrandDev::Internal::Type::ArrayOf[
|
58
|
-
BrandDev::Models::BrandSearchResponseItem
|
59
|
-
],
|
60
|
-
BrandDev::Internal::Type::Converter
|
61
|
-
)
|
62
|
-
end
|
63
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
module BrandDev
|
2
|
-
module Models
|
3
|
-
type brand_search_params =
|
4
|
-
{ query: String, timeout_ms: Integer }
|
5
|
-
& BrandDev::Internal::Type::request_parameters
|
6
|
-
|
7
|
-
class BrandSearchParams < BrandDev::Internal::Type::BaseModel
|
8
|
-
extend BrandDev::Internal::Type::RequestParameters::Converter
|
9
|
-
include BrandDev::Internal::Type::RequestParameters
|
10
|
-
|
11
|
-
attr_accessor query: String
|
12
|
-
|
13
|
-
attr_reader timeout_ms: Integer?
|
14
|
-
|
15
|
-
def timeout_ms=: (Integer) -> Integer
|
16
|
-
|
17
|
-
def initialize: (
|
18
|
-
query: String,
|
19
|
-
?timeout_ms: Integer,
|
20
|
-
?request_options: BrandDev::request_opts
|
21
|
-
) -> void
|
22
|
-
|
23
|
-
def to_hash: -> {
|
24
|
-
query: String,
|
25
|
-
timeout_ms: Integer,
|
26
|
-
request_options: BrandDev::RequestOptions
|
27
|
-
}
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
module BrandDev
|
2
|
-
module Models
|
3
|
-
type brand_search_response_item =
|
4
|
-
{ domain: String, logo: String, title: String }
|
5
|
-
|
6
|
-
class BrandSearchResponseItem < BrandDev::Internal::Type::BaseModel
|
7
|
-
attr_reader domain: String?
|
8
|
-
|
9
|
-
def domain=: (String) -> String
|
10
|
-
|
11
|
-
attr_reader logo: String?
|
12
|
-
|
13
|
-
def logo=: (String) -> String
|
14
|
-
|
15
|
-
attr_reader title: String?
|
16
|
-
|
17
|
-
def title=: (String) -> String
|
18
|
-
|
19
|
-
def initialize: (?domain: String, ?logo: String, ?title: String) -> void
|
20
|
-
|
21
|
-
def to_hash: -> { domain: String, logo: String, title: String }
|
22
|
-
end
|
23
|
-
|
24
|
-
type brand_search_response =
|
25
|
-
::Array[BrandDev::Models::BrandSearchResponseItem]
|
26
|
-
|
27
|
-
BrandSearchResponse: BrandDev::Internal::Type::Converter
|
28
|
-
end
|
29
|
-
end
|