brand.dev 0.0.1.pre.alpha.0 → 0.0.2

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.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +188 -0
  3. data/README.md +7 -3
  4. data/lib/brand_dev/errors.rb +22 -0
  5. data/lib/brand_dev/internal/transport/base_client.rb +10 -2
  6. data/lib/brand_dev/internal/type/array_of.rb +6 -1
  7. data/lib/brand_dev/internal/type/base_model.rb +77 -25
  8. data/lib/brand_dev/internal/type/boolean.rb +7 -1
  9. data/lib/brand_dev/internal/type/converter.rb +42 -34
  10. data/lib/brand_dev/internal/type/enum.rb +16 -5
  11. data/lib/brand_dev/internal/type/file_input.rb +6 -1
  12. data/lib/brand_dev/internal/type/hash_of.rb +6 -1
  13. data/lib/brand_dev/internal/type/union.rb +17 -9
  14. data/lib/brand_dev/internal/type/unknown.rb +7 -1
  15. data/lib/brand_dev/internal/util.rb +8 -9
  16. data/lib/brand_dev/models/brand_ai_query_params.rb +173 -0
  17. data/lib/brand_dev/models/brand_ai_query_response.rb +80 -0
  18. data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +14 -1
  19. data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +1 -29
  20. data/lib/brand_dev/models/brand_prefetch_params.rb +35 -0
  21. data/lib/brand_dev/models/brand_prefetch_response.rb +33 -0
  22. data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +14 -1
  23. data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +1 -29
  24. data/lib/brand_dev/models/brand_retrieve_naics_params.rb +11 -1
  25. data/lib/brand_dev/models/brand_retrieve_params.rb +24 -1
  26. data/lib/brand_dev/models/brand_retrieve_response.rb +1 -29
  27. data/lib/brand_dev/models/brand_retrieve_simplified_params.rb +35 -0
  28. data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +280 -0
  29. data/lib/brand_dev/models/brand_screenshot_params.rb +49 -0
  30. data/lib/brand_dev/models/brand_screenshot_response.rb +64 -0
  31. data/lib/brand_dev/models/brand_styleguide_params.rb +36 -0
  32. data/lib/brand_dev/models/brand_styleguide_response.rb +769 -0
  33. data/lib/brand_dev/models.rb +13 -5
  34. data/lib/brand_dev/resources/brand.rb +165 -18
  35. data/lib/brand_dev/version.rb +1 -1
  36. data/lib/brand_dev.rb +10 -2
  37. data/rbi/brand_dev/errors.rbi +16 -0
  38. data/rbi/brand_dev/internal/type/boolean.rbi +2 -0
  39. data/rbi/brand_dev/internal/type/converter.rbi +15 -15
  40. data/rbi/brand_dev/internal/type/union.rbi +5 -0
  41. data/rbi/brand_dev/internal/type/unknown.rbi +2 -0
  42. data/rbi/brand_dev/internal/util.rbi +2 -0
  43. data/rbi/brand_dev/models/brand_ai_query_params.rbi +319 -0
  44. data/rbi/brand_dev/models/brand_ai_query_response.rbi +182 -0
  45. data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +15 -0
  46. data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +0 -69
  47. data/rbi/brand_dev/models/brand_prefetch_params.rbi +58 -0
  48. data/rbi/brand_dev/models/brand_prefetch_response.rbi +57 -0
  49. data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +19 -1
  50. data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +0 -69
  51. data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +19 -1
  52. data/rbi/brand_dev/models/brand_retrieve_params.rbi +30 -0
  53. data/rbi/brand_dev/models/brand_retrieve_response.rbi +0 -65
  54. data/rbi/brand_dev/models/brand_retrieve_simplified_params.rbi +61 -0
  55. data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +667 -0
  56. data/rbi/brand_dev/models/brand_screenshot_params.rbi +105 -0
  57. data/rbi/brand_dev/models/brand_screenshot_response.rbi +135 -0
  58. data/rbi/brand_dev/models/brand_styleguide_params.rbi +60 -0
  59. data/rbi/brand_dev/models/brand_styleguide_response.rbi +1648 -0
  60. data/rbi/brand_dev/models.rbi +10 -1
  61. data/rbi/brand_dev/resources/brand.rbi +133 -6
  62. data/sig/brand_dev/errors.rbs +9 -0
  63. data/sig/brand_dev/internal/type/converter.rbs +7 -1
  64. data/sig/brand_dev/models/brand_ai_query_params.rbs +162 -0
  65. data/sig/brand_dev/models/brand_ai_query_response.rbs +79 -0
  66. data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +7 -1
  67. data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +0 -25
  68. data/sig/brand_dev/models/brand_prefetch_params.rbs +30 -0
  69. data/sig/brand_dev/models/brand_prefetch_response.rbs +28 -0
  70. data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +8 -1
  71. data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +0 -25
  72. data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +8 -1
  73. data/sig/brand_dev/models/brand_retrieve_params.rbs +15 -1
  74. data/sig/brand_dev/models/brand_retrieve_response.rbs +0 -25
  75. data/sig/brand_dev/models/brand_retrieve_simplified_params.rbs +30 -0
  76. data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +292 -0
  77. data/sig/brand_dev/models/brand_screenshot_params.rbs +46 -0
  78. data/sig/brand_dev/models/brand_screenshot_response.rbs +63 -0
  79. data/sig/brand_dev/models/brand_styleguide_params.rbs +30 -0
  80. data/sig/brand_dev/models/brand_styleguide_response.rbs +925 -0
  81. data/sig/brand_dev/models.rbs +9 -1
  82. data/sig/brand_dev/resources/brand.rbs +35 -3
  83. metadata +46 -22
  84. data/lib/brand_dev/models/brand_search_params.rb +0 -22
  85. data/lib/brand_dev/models/brand_search_response.rb +0 -35
  86. data/rbi/brand_dev/models/brand_search_params.rbi +0 -40
  87. data/rbi/brand_dev/models/brand_search_response.rbi +0 -63
  88. data/sig/brand_dev/models/brand_search_params.rbs +0 -23
  89. data/sig/brand_dev/models/brand_search_response.rbs +0 -29
@@ -41,7 +41,6 @@ module BrandDev
41
41
  colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
42
42
  description: String,
43
43
  domain: String,
44
- fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font],
45
44
  logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
46
45
  slogan: String,
47
46
  socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
@@ -76,12 +75,6 @@ module BrandDev
76
75
 
77
76
  def domain=: (String) -> String
78
77
 
79
- attr_reader fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font]?
80
-
81
- def fonts=: (
82
- ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font]
83
- ) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font]
84
-
85
78
  attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]?
86
79
 
87
80
  def logos=: (
@@ -114,7 +107,6 @@ module BrandDev
114
107
  ?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
115
108
  ?description: String,
116
109
  ?domain: String,
117
- ?fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font],
118
110
  ?logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
119
111
  ?slogan: String,
120
112
  ?socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
@@ -128,7 +120,6 @@ module BrandDev
128
120
  colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
129
121
  description: String,
130
122
  domain: String,
131
- fonts: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Font],
132
123
  logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
133
124
  slogan: String,
134
125
  socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
@@ -282,22 +273,6 @@ module BrandDev
282
273
  def to_hash: -> { hex: String, name: String }
283
274
  end
284
275
 
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
276
  type logo =
302
277
  {
303
278
  colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
@@ -1,7 +1,8 @@
1
1
  module BrandDev
2
2
  module Models
3
3
  type brand_retrieve_naics_params =
4
- { input: String } & BrandDev::Internal::Type::request_parameters
4
+ { input: String, timeout_ms: Integer }
5
+ & BrandDev::Internal::Type::request_parameters
5
6
 
6
7
  class BrandRetrieveNaicsParams < BrandDev::Internal::Type::BaseModel
7
8
  extend BrandDev::Internal::Type::RequestParameters::Converter
@@ -9,13 +10,19 @@ module BrandDev
9
10
 
10
11
  attr_accessor input: String
11
12
 
13
+ attr_reader timeout_ms: Integer?
14
+
15
+ def timeout_ms=: (Integer) -> Integer
16
+
12
17
  def initialize: (
13
18
  input: String,
19
+ ?timeout_ms: Integer,
14
20
  ?request_options: BrandDev::request_opts
15
21
  ) -> void
16
22
 
17
23
  def to_hash: -> {
18
24
  input: String,
25
+ timeout_ms: Integer,
19
26
  request_options: BrandDev::RequestOptions
20
27
  }
21
28
  end
@@ -3,7 +3,9 @@ module BrandDev
3
3
  type brand_retrieve_params =
4
4
  {
5
5
  domain: String,
6
- force_language: BrandDev::Models::BrandRetrieveParams::force_language
6
+ force_language: BrandDev::Models::BrandRetrieveParams::force_language,
7
+ max_speed: bool,
8
+ timeout_ms: Integer
7
9
  }
8
10
  & BrandDev::Internal::Type::request_parameters
9
11
 
@@ -19,15 +21,27 @@ module BrandDev
19
21
  BrandDev::Models::BrandRetrieveParams::force_language
20
22
  ) -> BrandDev::Models::BrandRetrieveParams::force_language
21
23
 
24
+ attr_reader max_speed: bool?
25
+
26
+ def max_speed=: (bool) -> bool
27
+
28
+ attr_reader timeout_ms: Integer?
29
+
30
+ def timeout_ms=: (Integer) -> Integer
31
+
22
32
  def initialize: (
23
33
  domain: String,
24
34
  ?force_language: BrandDev::Models::BrandRetrieveParams::force_language,
35
+ ?max_speed: bool,
36
+ ?timeout_ms: Integer,
25
37
  ?request_options: BrandDev::request_opts
26
38
  ) -> void
27
39
 
28
40
  def to_hash: -> {
29
41
  domain: String,
30
42
  force_language: BrandDev::Models::BrandRetrieveParams::force_language,
43
+ max_speed: bool,
44
+ timeout_ms: Integer,
31
45
  request_options: BrandDev::RequestOptions
32
46
  }
33
47
 
@@ -41,7 +41,6 @@ module BrandDev
41
41
  colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
42
42
  description: String,
43
43
  domain: String,
44
- fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
45
44
  logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
46
45
  slogan: String,
47
46
  socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
@@ -76,12 +75,6 @@ module BrandDev
76
75
 
77
76
  def domain=: (String) -> String
78
77
 
79
- attr_reader fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]?
80
-
81
- def fonts=: (
82
- ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]
83
- ) -> ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]
84
-
85
78
  attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo]?
86
79
 
87
80
  def logos=: (
@@ -114,7 +107,6 @@ module BrandDev
114
107
  ?colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
115
108
  ?description: String,
116
109
  ?domain: String,
117
- ?fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
118
110
  ?logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
119
111
  ?slogan: String,
120
112
  ?socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
@@ -128,7 +120,6 @@ module BrandDev
128
120
  colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
129
121
  description: String,
130
122
  domain: String,
131
- fonts: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font],
132
123
  logos: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
133
124
  slogan: String,
134
125
  socials: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Social],
@@ -282,22 +273,6 @@ module BrandDev
282
273
  def to_hash: -> { hex: String, name: String }
283
274
  end
284
275
 
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
276
  type logo =
302
277
  {
303
278
  colors: ::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color],
@@ -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