context.dev 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 (194) hide show
  1. checksums.yaml +7 -0
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +10 -0
  4. data/README.md +244 -0
  5. data/SECURITY.md +27 -0
  6. data/lib/context_dev/client.rb +74 -0
  7. data/lib/context_dev/errors.rb +228 -0
  8. data/lib/context_dev/file_part.rb +58 -0
  9. data/lib/context_dev/internal/transport/base_client.rb +573 -0
  10. data/lib/context_dev/internal/transport/pooled_net_requester.rb +210 -0
  11. data/lib/context_dev/internal/type/array_of.rb +168 -0
  12. data/lib/context_dev/internal/type/base_model.rb +531 -0
  13. data/lib/context_dev/internal/type/base_page.rb +55 -0
  14. data/lib/context_dev/internal/type/boolean.rb +77 -0
  15. data/lib/context_dev/internal/type/converter.rb +327 -0
  16. data/lib/context_dev/internal/type/enum.rb +131 -0
  17. data/lib/context_dev/internal/type/file_input.rb +111 -0
  18. data/lib/context_dev/internal/type/hash_of.rb +188 -0
  19. data/lib/context_dev/internal/type/request_parameters.rb +42 -0
  20. data/lib/context_dev/internal/type/union.rb +237 -0
  21. data/lib/context_dev/internal/type/unknown.rb +81 -0
  22. data/lib/context_dev/internal/util.rb +951 -0
  23. data/lib/context_dev/internal.rb +20 -0
  24. data/lib/context_dev/models/brand_ai_product_params.rb +34 -0
  25. data/lib/context_dev/models/brand_ai_product_response.rb +193 -0
  26. data/lib/context_dev/models/brand_ai_products_params.rb +94 -0
  27. data/lib/context_dev/models/brand_ai_products_response.rb +160 -0
  28. data/lib/context_dev/models/brand_ai_query_params.rb +236 -0
  29. data/lib/context_dev/models/brand_ai_query_response.rb +98 -0
  30. data/lib/context_dev/models/brand_fonts_params.rb +36 -0
  31. data/lib/context_dev/models/brand_fonts_response.rb +100 -0
  32. data/lib/context_dev/models/brand_identify_from_transaction_params.rb +407 -0
  33. data/lib/context_dev/models/brand_identify_from_transaction_response.rb +854 -0
  34. data/lib/context_dev/models/brand_prefetch_by_email_params.rb +37 -0
  35. data/lib/context_dev/models/brand_prefetch_by_email_response.rb +33 -0
  36. data/lib/context_dev/models/brand_prefetch_params.rb +35 -0
  37. data/lib/context_dev/models/brand_prefetch_response.rb +33 -0
  38. data/lib/context_dev/models/brand_retrieve_by_email_params.rb +116 -0
  39. data/lib/context_dev/models/brand_retrieve_by_email_response.rb +851 -0
  40. data/lib/context_dev/models/brand_retrieve_by_isin_params.rb +116 -0
  41. data/lib/context_dev/models/brand_retrieve_by_isin_response.rb +850 -0
  42. data/lib/context_dev/models/brand_retrieve_by_name_params.rb +115 -0
  43. data/lib/context_dev/models/brand_retrieve_by_name_response.rb +850 -0
  44. data/lib/context_dev/models/brand_retrieve_by_ticker_params.rb +204 -0
  45. data/lib/context_dev/models/brand_retrieve_by_ticker_response.rb +852 -0
  46. data/lib/context_dev/models/brand_retrieve_naics_params.rb +54 -0
  47. data/lib/context_dev/models/brand_retrieve_naics_response.rb +83 -0
  48. data/lib/context_dev/models/brand_retrieve_params.rb +117 -0
  49. data/lib/context_dev/models/brand_retrieve_response.rb +850 -0
  50. data/lib/context_dev/models/brand_retrieve_simplified_params.rb +35 -0
  51. data/lib/context_dev/models/brand_retrieve_simplified_response.rb +307 -0
  52. data/lib/context_dev/models/brand_screenshot_params.rb +103 -0
  53. data/lib/context_dev/models/brand_screenshot_response.rb +64 -0
  54. data/lib/context_dev/models/brand_styleguide_params.rb +70 -0
  55. data/lib/context_dev/models/brand_styleguide_response.rb +790 -0
  56. data/lib/context_dev/models/brand_web_scrape_html_params.rb +22 -0
  57. data/lib/context_dev/models/brand_web_scrape_html_response.rb +45 -0
  58. data/lib/context_dev/models/brand_web_scrape_images_params.rb +22 -0
  59. data/lib/context_dev/models/brand_web_scrape_images_response.rb +111 -0
  60. data/lib/context_dev/models/brand_web_scrape_md_params.rb +50 -0
  61. data/lib/context_dev/models/brand_web_scrape_md_response.rb +45 -0
  62. data/lib/context_dev/models/brand_web_scrape_sitemap_params.rb +26 -0
  63. data/lib/context_dev/models/brand_web_scrape_sitemap_response.rb +91 -0
  64. data/lib/context_dev/models.rb +81 -0
  65. data/lib/context_dev/request_options.rb +77 -0
  66. data/lib/context_dev/resources/brand.rb +654 -0
  67. data/lib/context_dev/version.rb +5 -0
  68. data/lib/context_dev.rb +96 -0
  69. data/manifest.yaml +17 -0
  70. data/rbi/context_dev/client.rbi +49 -0
  71. data/rbi/context_dev/errors.rbi +205 -0
  72. data/rbi/context_dev/file_part.rbi +37 -0
  73. data/rbi/context_dev/internal/transport/base_client.rbi +300 -0
  74. data/rbi/context_dev/internal/transport/pooled_net_requester.rbi +84 -0
  75. data/rbi/context_dev/internal/type/array_of.rbi +104 -0
  76. data/rbi/context_dev/internal/type/base_model.rbi +308 -0
  77. data/rbi/context_dev/internal/type/base_page.rbi +42 -0
  78. data/rbi/context_dev/internal/type/boolean.rbi +58 -0
  79. data/rbi/context_dev/internal/type/converter.rbi +216 -0
  80. data/rbi/context_dev/internal/type/enum.rbi +82 -0
  81. data/rbi/context_dev/internal/type/file_input.rbi +59 -0
  82. data/rbi/context_dev/internal/type/hash_of.rbi +104 -0
  83. data/rbi/context_dev/internal/type/request_parameters.rbi +29 -0
  84. data/rbi/context_dev/internal/type/union.rbi +128 -0
  85. data/rbi/context_dev/internal/type/unknown.rbi +58 -0
  86. data/rbi/context_dev/internal/util.rbi +507 -0
  87. data/rbi/context_dev/internal.rbi +18 -0
  88. data/rbi/context_dev/models/brand_ai_product_params.rbi +56 -0
  89. data/rbi/context_dev/models/brand_ai_product_response.rbi +380 -0
  90. data/rbi/context_dev/models/brand_ai_products_params.rbi +188 -0
  91. data/rbi/context_dev/models/brand_ai_products_response.rbi +310 -0
  92. data/rbi/context_dev/models/brand_ai_query_params.rbi +504 -0
  93. data/rbi/context_dev/models/brand_ai_query_response.rbi +205 -0
  94. data/rbi/context_dev/models/brand_fonts_params.rbi +60 -0
  95. data/rbi/context_dev/models/brand_fonts_response.rbi +147 -0
  96. data/rbi/context_dev/models/brand_identify_from_transaction_params.rbi +1682 -0
  97. data/rbi/context_dev/models/brand_identify_from_transaction_response.rbi +2595 -0
  98. data/rbi/context_dev/models/brand_prefetch_by_email_params.rbi +65 -0
  99. data/rbi/context_dev/models/brand_prefetch_by_email_response.rbi +57 -0
  100. data/rbi/context_dev/models/brand_prefetch_params.rbi +58 -0
  101. data/rbi/context_dev/models/brand_prefetch_response.rbi +57 -0
  102. data/rbi/context_dev/models/brand_retrieve_by_email_params.rbi +386 -0
  103. data/rbi/context_dev/models/brand_retrieve_by_email_response.rbi +2591 -0
  104. data/rbi/context_dev/models/brand_retrieve_by_isin_params.rbi +386 -0
  105. data/rbi/context_dev/models/brand_retrieve_by_isin_response.rbi +2590 -0
  106. data/rbi/context_dev/models/brand_retrieve_by_name_params.rbi +384 -0
  107. data/rbi/context_dev/models/brand_retrieve_by_name_response.rbi +2590 -0
  108. data/rbi/context_dev/models/brand_retrieve_by_ticker_params.rbi +796 -0
  109. data/rbi/context_dev/models/brand_retrieve_by_ticker_response.rbi +2592 -0
  110. data/rbi/context_dev/models/brand_retrieve_naics_params.rbi +89 -0
  111. data/rbi/context_dev/models/brand_retrieve_naics_response.rbi +190 -0
  112. data/rbi/context_dev/models/brand_retrieve_params.rbi +382 -0
  113. data/rbi/context_dev/models/brand_retrieve_response.rbi +2574 -0
  114. data/rbi/context_dev/models/brand_retrieve_simplified_params.rbi +61 -0
  115. data/rbi/context_dev/models/brand_retrieve_simplified_response.rbi +763 -0
  116. data/rbi/context_dev/models/brand_screenshot_params.rbi +225 -0
  117. data/rbi/context_dev/models/brand_screenshot_response.rbi +135 -0
  118. data/rbi/context_dev/models/brand_styleguide_params.rbi +139 -0
  119. data/rbi/context_dev/models/brand_styleguide_response.rbi +1707 -0
  120. data/rbi/context_dev/models/brand_web_scrape_html_params.rbi +43 -0
  121. data/rbi/context_dev/models/brand_web_scrape_html_response.rbi +92 -0
  122. data/rbi/context_dev/models/brand_web_scrape_images_params.rbi +43 -0
  123. data/rbi/context_dev/models/brand_web_scrape_images_response.rbi +261 -0
  124. data/rbi/context_dev/models/brand_web_scrape_md_params.rbi +81 -0
  125. data/rbi/context_dev/models/brand_web_scrape_md_response.rbi +92 -0
  126. data/rbi/context_dev/models/brand_web_scrape_sitemap_params.rbi +45 -0
  127. data/rbi/context_dev/models/brand_web_scrape_sitemap_response.rbi +167 -0
  128. data/rbi/context_dev/models.rbi +45 -0
  129. data/rbi/context_dev/request_options.rbi +59 -0
  130. data/rbi/context_dev/resources/brand.rbi +545 -0
  131. data/rbi/context_dev/version.rbi +5 -0
  132. data/sig/context_dev/client.rbs +26 -0
  133. data/sig/context_dev/errors.rbs +117 -0
  134. data/sig/context_dev/file_part.rbs +21 -0
  135. data/sig/context_dev/internal/transport/base_client.rbs +133 -0
  136. data/sig/context_dev/internal/transport/pooled_net_requester.rbs +48 -0
  137. data/sig/context_dev/internal/type/array_of.rbs +48 -0
  138. data/sig/context_dev/internal/type/base_model.rbs +102 -0
  139. data/sig/context_dev/internal/type/base_page.rbs +24 -0
  140. data/sig/context_dev/internal/type/boolean.rbs +26 -0
  141. data/sig/context_dev/internal/type/converter.rbs +79 -0
  142. data/sig/context_dev/internal/type/enum.rbs +32 -0
  143. data/sig/context_dev/internal/type/file_input.rbs +25 -0
  144. data/sig/context_dev/internal/type/hash_of.rbs +48 -0
  145. data/sig/context_dev/internal/type/request_parameters.rbs +19 -0
  146. data/sig/context_dev/internal/type/union.rbs +52 -0
  147. data/sig/context_dev/internal/type/unknown.rbs +26 -0
  148. data/sig/context_dev/internal/util.rbs +195 -0
  149. data/sig/context_dev/internal.rbs +9 -0
  150. data/sig/context_dev/models/brand_ai_product_params.rbs +30 -0
  151. data/sig/context_dev/models/brand_ai_product_response.rbs +149 -0
  152. data/sig/context_dev/models/brand_ai_products_params.rbs +88 -0
  153. data/sig/context_dev/models/brand_ai_products_response.rbs +128 -0
  154. data/sig/context_dev/models/brand_ai_query_params.rbs +218 -0
  155. data/sig/context_dev/models/brand_ai_query_response.rbs +93 -0
  156. data/sig/context_dev/models/brand_fonts_params.rbs +30 -0
  157. data/sig/context_dev/models/brand_fonts_response.rbs +82 -0
  158. data/sig/context_dev/models/brand_identify_from_transaction_params.rbs +686 -0
  159. data/sig/context_dev/models/brand_identify_from_transaction_response.rbs +1076 -0
  160. data/sig/context_dev/models/brand_prefetch_by_email_params.rbs +30 -0
  161. data/sig/context_dev/models/brand_prefetch_by_email_response.rbs +28 -0
  162. data/sig/context_dev/models/brand_prefetch_params.rbs +30 -0
  163. data/sig/context_dev/models/brand_prefetch_response.rbs +28 -0
  164. data/sig/context_dev/models/brand_retrieve_by_email_params.rbs +162 -0
  165. data/sig/context_dev/models/brand_retrieve_by_email_response.rbs +1076 -0
  166. data/sig/context_dev/models/brand_retrieve_by_isin_params.rbs +162 -0
  167. data/sig/context_dev/models/brand_retrieve_by_isin_response.rbs +1076 -0
  168. data/sig/context_dev/models/brand_retrieve_by_name_params.rbs +162 -0
  169. data/sig/context_dev/models/brand_retrieve_by_name_response.rbs +1076 -0
  170. data/sig/context_dev/models/brand_retrieve_by_ticker_params.rbs +324 -0
  171. data/sig/context_dev/models/brand_retrieve_by_ticker_response.rbs +1076 -0
  172. data/sig/context_dev/models/brand_retrieve_naics_params.rbs +47 -0
  173. data/sig/context_dev/models/brand_retrieve_naics_response.rbs +84 -0
  174. data/sig/context_dev/models/brand_retrieve_params.rbs +162 -0
  175. data/sig/context_dev/models/brand_retrieve_response.rbs +1076 -0
  176. data/sig/context_dev/models/brand_retrieve_simplified_params.rbs +30 -0
  177. data/sig/context_dev/models/brand_retrieve_simplified_response.rbs +312 -0
  178. data/sig/context_dev/models/brand_screenshot_params.rbs +100 -0
  179. data/sig/context_dev/models/brand_screenshot_response.rbs +63 -0
  180. data/sig/context_dev/models/brand_styleguide_params.rbs +62 -0
  181. data/sig/context_dev/models/brand_styleguide_response.rbs +945 -0
  182. data/sig/context_dev/models/brand_web_scrape_html_params.rbs +23 -0
  183. data/sig/context_dev/models/brand_web_scrape_html_response.rbs +40 -0
  184. data/sig/context_dev/models/brand_web_scrape_images_params.rbs +23 -0
  185. data/sig/context_dev/models/brand_web_scrape_images_response.rbs +98 -0
  186. data/sig/context_dev/models/brand_web_scrape_md_params.rbs +47 -0
  187. data/sig/context_dev/models/brand_web_scrape_md_response.rbs +40 -0
  188. data/sig/context_dev/models/brand_web_scrape_sitemap_params.rbs +23 -0
  189. data/sig/context_dev/models/brand_web_scrape_sitemap_response.rbs +77 -0
  190. data/sig/context_dev/models.rbs +41 -0
  191. data/sig/context_dev/request_options.rbs +36 -0
  192. data/sig/context_dev/resources/brand.rbs +151 -0
  193. data/sig/context_dev/version.rbs +3 -0
  194. metadata +265 -0
@@ -0,0 +1,763 @@
1
+ # typed: strong
2
+
3
+ module ContextDev
4
+ module Models
5
+ class BrandRetrieveSimplifiedResponse < ContextDev::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ ContextDev::Models::BrandRetrieveSimplifiedResponse,
10
+ ContextDev::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # Simplified brand information
15
+ sig do
16
+ returns(
17
+ T.nilable(ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand)
18
+ )
19
+ end
20
+ attr_reader :brand
21
+
22
+ sig do
23
+ params(
24
+ brand:
25
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::OrHash
26
+ ).void
27
+ end
28
+ attr_writer :brand
29
+
30
+ # HTTP status code of the response
31
+ sig { returns(T.nilable(Integer)) }
32
+ attr_reader :code
33
+
34
+ sig { params(code: Integer).void }
35
+ attr_writer :code
36
+
37
+ # Status of the response, e.g., 'ok'
38
+ sig { returns(T.nilable(String)) }
39
+ attr_reader :status
40
+
41
+ sig { params(status: String).void }
42
+ attr_writer :status
43
+
44
+ sig do
45
+ params(
46
+ brand:
47
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::OrHash,
48
+ code: Integer,
49
+ status: String
50
+ ).returns(T.attached_class)
51
+ end
52
+ def self.new(
53
+ # Simplified brand information
54
+ brand: nil,
55
+ # HTTP status code of the response
56
+ code: nil,
57
+ # Status of the response, e.g., 'ok'
58
+ status: nil
59
+ )
60
+ end
61
+
62
+ sig do
63
+ override.returns(
64
+ {
65
+ brand: ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand,
66
+ code: Integer,
67
+ status: String
68
+ }
69
+ )
70
+ end
71
+ def to_hash
72
+ end
73
+
74
+ class Brand < ContextDev::Internal::Type::BaseModel
75
+ OrHash =
76
+ T.type_alias do
77
+ T.any(
78
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand,
79
+ ContextDev::Internal::AnyHash
80
+ )
81
+ end
82
+
83
+ # An array of backdrop images for the brand
84
+ sig do
85
+ returns(
86
+ T.nilable(
87
+ T::Array[
88
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop
89
+ ]
90
+ )
91
+ )
92
+ end
93
+ attr_reader :backdrops
94
+
95
+ sig do
96
+ params(
97
+ backdrops:
98
+ T::Array[
99
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::OrHash
100
+ ]
101
+ ).void
102
+ end
103
+ attr_writer :backdrops
104
+
105
+ # An array of brand colors
106
+ sig do
107
+ returns(
108
+ T.nilable(
109
+ T::Array[
110
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color
111
+ ]
112
+ )
113
+ )
114
+ end
115
+ attr_reader :colors
116
+
117
+ sig do
118
+ params(
119
+ colors:
120
+ T::Array[
121
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::OrHash
122
+ ]
123
+ ).void
124
+ end
125
+ attr_writer :colors
126
+
127
+ # The domain name of the brand
128
+ sig { returns(T.nilable(String)) }
129
+ attr_reader :domain
130
+
131
+ sig { params(domain: String).void }
132
+ attr_writer :domain
133
+
134
+ # An array of logos associated with the brand
135
+ sig do
136
+ returns(
137
+ T.nilable(
138
+ T::Array[
139
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo
140
+ ]
141
+ )
142
+ )
143
+ end
144
+ attr_reader :logos
145
+
146
+ sig do
147
+ params(
148
+ logos:
149
+ T::Array[
150
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::OrHash
151
+ ]
152
+ ).void
153
+ end
154
+ attr_writer :logos
155
+
156
+ # The title or name of the brand
157
+ sig { returns(T.nilable(String)) }
158
+ attr_reader :title
159
+
160
+ sig { params(title: String).void }
161
+ attr_writer :title
162
+
163
+ # Simplified brand information
164
+ sig do
165
+ params(
166
+ backdrops:
167
+ T::Array[
168
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::OrHash
169
+ ],
170
+ colors:
171
+ T::Array[
172
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color::OrHash
173
+ ],
174
+ domain: String,
175
+ logos:
176
+ T::Array[
177
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::OrHash
178
+ ],
179
+ title: String
180
+ ).returns(T.attached_class)
181
+ end
182
+ def self.new(
183
+ # An array of backdrop images for the brand
184
+ backdrops: nil,
185
+ # An array of brand colors
186
+ colors: nil,
187
+ # The domain name of the brand
188
+ domain: nil,
189
+ # An array of logos associated with the brand
190
+ logos: nil,
191
+ # The title or name of the brand
192
+ title: nil
193
+ )
194
+ end
195
+
196
+ sig do
197
+ override.returns(
198
+ {
199
+ backdrops:
200
+ T::Array[
201
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop
202
+ ],
203
+ colors:
204
+ T::Array[
205
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color
206
+ ],
207
+ domain: String,
208
+ logos:
209
+ T::Array[
210
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo
211
+ ],
212
+ title: String
213
+ }
214
+ )
215
+ end
216
+ def to_hash
217
+ end
218
+
219
+ class Backdrop < ContextDev::Internal::Type::BaseModel
220
+ OrHash =
221
+ T.type_alias do
222
+ T.any(
223
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop,
224
+ ContextDev::Internal::AnyHash
225
+ )
226
+ end
227
+
228
+ # Array of colors in the backdrop image
229
+ sig do
230
+ returns(
231
+ T.nilable(
232
+ T::Array[
233
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color
234
+ ]
235
+ )
236
+ )
237
+ end
238
+ attr_reader :colors
239
+
240
+ sig do
241
+ params(
242
+ colors:
243
+ T::Array[
244
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color::OrHash
245
+ ]
246
+ ).void
247
+ end
248
+ attr_writer :colors
249
+
250
+ # Resolution of the backdrop image
251
+ sig do
252
+ returns(
253
+ T.nilable(
254
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution
255
+ )
256
+ )
257
+ end
258
+ attr_reader :resolution
259
+
260
+ sig do
261
+ params(
262
+ resolution:
263
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution::OrHash
264
+ ).void
265
+ end
266
+ attr_writer :resolution
267
+
268
+ # URL of the backdrop image
269
+ sig { returns(T.nilable(String)) }
270
+ attr_reader :url
271
+
272
+ sig { params(url: String).void }
273
+ attr_writer :url
274
+
275
+ sig do
276
+ params(
277
+ colors:
278
+ T::Array[
279
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color::OrHash
280
+ ],
281
+ resolution:
282
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution::OrHash,
283
+ url: String
284
+ ).returns(T.attached_class)
285
+ end
286
+ def self.new(
287
+ # Array of colors in the backdrop image
288
+ colors: nil,
289
+ # Resolution of the backdrop image
290
+ resolution: nil,
291
+ # URL of the backdrop image
292
+ url: nil
293
+ )
294
+ end
295
+
296
+ sig do
297
+ override.returns(
298
+ {
299
+ colors:
300
+ T::Array[
301
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color
302
+ ],
303
+ resolution:
304
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution,
305
+ url: String
306
+ }
307
+ )
308
+ end
309
+ def to_hash
310
+ end
311
+
312
+ class Color < ContextDev::Internal::Type::BaseModel
313
+ OrHash =
314
+ T.type_alias do
315
+ T.any(
316
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Color,
317
+ ContextDev::Internal::AnyHash
318
+ )
319
+ end
320
+
321
+ # Color in hexadecimal format
322
+ sig { returns(T.nilable(String)) }
323
+ attr_reader :hex
324
+
325
+ sig { params(hex: String).void }
326
+ attr_writer :hex
327
+
328
+ # Name of the color
329
+ sig { returns(T.nilable(String)) }
330
+ attr_reader :name
331
+
332
+ sig { params(name: String).void }
333
+ attr_writer :name
334
+
335
+ sig { params(hex: String, name: String).returns(T.attached_class) }
336
+ def self.new(
337
+ # Color in hexadecimal format
338
+ hex: nil,
339
+ # Name of the color
340
+ name: nil
341
+ )
342
+ end
343
+
344
+ sig { override.returns({ hex: String, name: String }) }
345
+ def to_hash
346
+ end
347
+ end
348
+
349
+ class Resolution < ContextDev::Internal::Type::BaseModel
350
+ OrHash =
351
+ T.type_alias do
352
+ T.any(
353
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop::Resolution,
354
+ ContextDev::Internal::AnyHash
355
+ )
356
+ end
357
+
358
+ # Aspect ratio of the image (width/height)
359
+ sig { returns(T.nilable(Float)) }
360
+ attr_reader :aspect_ratio
361
+
362
+ sig { params(aspect_ratio: Float).void }
363
+ attr_writer :aspect_ratio
364
+
365
+ # Height of the image in pixels
366
+ sig { returns(T.nilable(Integer)) }
367
+ attr_reader :height
368
+
369
+ sig { params(height: Integer).void }
370
+ attr_writer :height
371
+
372
+ # Width of the image in pixels
373
+ sig { returns(T.nilable(Integer)) }
374
+ attr_reader :width
375
+
376
+ sig { params(width: Integer).void }
377
+ attr_writer :width
378
+
379
+ # Resolution of the backdrop image
380
+ sig do
381
+ params(
382
+ aspect_ratio: Float,
383
+ height: Integer,
384
+ width: Integer
385
+ ).returns(T.attached_class)
386
+ end
387
+ def self.new(
388
+ # Aspect ratio of the image (width/height)
389
+ aspect_ratio: nil,
390
+ # Height of the image in pixels
391
+ height: nil,
392
+ # Width of the image in pixels
393
+ width: nil
394
+ )
395
+ end
396
+
397
+ sig do
398
+ override.returns(
399
+ { aspect_ratio: Float, height: Integer, width: Integer }
400
+ )
401
+ end
402
+ def to_hash
403
+ end
404
+ end
405
+ end
406
+
407
+ class Color < ContextDev::Internal::Type::BaseModel
408
+ OrHash =
409
+ T.type_alias do
410
+ T.any(
411
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color,
412
+ ContextDev::Internal::AnyHash
413
+ )
414
+ end
415
+
416
+ # Color in hexadecimal format
417
+ sig { returns(T.nilable(String)) }
418
+ attr_reader :hex
419
+
420
+ sig { params(hex: String).void }
421
+ attr_writer :hex
422
+
423
+ # Name of the color
424
+ sig { returns(T.nilable(String)) }
425
+ attr_reader :name
426
+
427
+ sig { params(name: String).void }
428
+ attr_writer :name
429
+
430
+ sig { params(hex: String, name: String).returns(T.attached_class) }
431
+ def self.new(
432
+ # Color in hexadecimal format
433
+ hex: nil,
434
+ # Name of the color
435
+ name: nil
436
+ )
437
+ end
438
+
439
+ sig { override.returns({ hex: String, name: String }) }
440
+ def to_hash
441
+ end
442
+ end
443
+
444
+ class Logo < ContextDev::Internal::Type::BaseModel
445
+ OrHash =
446
+ T.type_alias do
447
+ T.any(
448
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo,
449
+ ContextDev::Internal::AnyHash
450
+ )
451
+ end
452
+
453
+ # Array of colors in the logo
454
+ sig do
455
+ returns(
456
+ T.nilable(
457
+ T::Array[
458
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color
459
+ ]
460
+ )
461
+ )
462
+ end
463
+ attr_reader :colors
464
+
465
+ sig do
466
+ params(
467
+ colors:
468
+ T::Array[
469
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color::OrHash
470
+ ]
471
+ ).void
472
+ end
473
+ attr_writer :colors
474
+
475
+ # Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
476
+ # best for dark mode, 'has_opaque_background' = can be used for either as image
477
+ # has its own background
478
+ sig do
479
+ returns(
480
+ T.nilable(
481
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
482
+ )
483
+ )
484
+ end
485
+ attr_reader :mode
486
+
487
+ sig do
488
+ params(
489
+ mode:
490
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::OrSymbol
491
+ ).void
492
+ end
493
+ attr_writer :mode
494
+
495
+ # Resolution of the logo image
496
+ sig do
497
+ returns(
498
+ T.nilable(
499
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution
500
+ )
501
+ )
502
+ end
503
+ attr_reader :resolution
504
+
505
+ sig do
506
+ params(
507
+ resolution:
508
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution::OrHash
509
+ ).void
510
+ end
511
+ attr_writer :resolution
512
+
513
+ # Type of the logo based on resolution (e.g., 'icon', 'logo')
514
+ sig do
515
+ returns(
516
+ T.nilable(
517
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
518
+ )
519
+ )
520
+ end
521
+ attr_reader :type
522
+
523
+ sig do
524
+ params(
525
+ type:
526
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::OrSymbol
527
+ ).void
528
+ end
529
+ attr_writer :type
530
+
531
+ # CDN hosted url of the logo (ready for display)
532
+ sig { returns(T.nilable(String)) }
533
+ attr_reader :url
534
+
535
+ sig { params(url: String).void }
536
+ attr_writer :url
537
+
538
+ sig do
539
+ params(
540
+ colors:
541
+ T::Array[
542
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color::OrHash
543
+ ],
544
+ mode:
545
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::OrSymbol,
546
+ resolution:
547
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution::OrHash,
548
+ type:
549
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::OrSymbol,
550
+ url: String
551
+ ).returns(T.attached_class)
552
+ end
553
+ def self.new(
554
+ # Array of colors in the logo
555
+ colors: nil,
556
+ # Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
557
+ # best for dark mode, 'has_opaque_background' = can be used for either as image
558
+ # has its own background
559
+ mode: nil,
560
+ # Resolution of the logo image
561
+ resolution: nil,
562
+ # Type of the logo based on resolution (e.g., 'icon', 'logo')
563
+ type: nil,
564
+ # CDN hosted url of the logo (ready for display)
565
+ url: nil
566
+ )
567
+ end
568
+
569
+ sig do
570
+ override.returns(
571
+ {
572
+ colors:
573
+ T::Array[
574
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color
575
+ ],
576
+ mode:
577
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol,
578
+ resolution:
579
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
580
+ type:
581
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol,
582
+ url: String
583
+ }
584
+ )
585
+ end
586
+ def to_hash
587
+ end
588
+
589
+ class Color < ContextDev::Internal::Type::BaseModel
590
+ OrHash =
591
+ T.type_alias do
592
+ T.any(
593
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color,
594
+ ContextDev::Internal::AnyHash
595
+ )
596
+ end
597
+
598
+ # Color in hexadecimal format
599
+ sig { returns(T.nilable(String)) }
600
+ attr_reader :hex
601
+
602
+ sig { params(hex: String).void }
603
+ attr_writer :hex
604
+
605
+ # Name of the color
606
+ sig { returns(T.nilable(String)) }
607
+ attr_reader :name
608
+
609
+ sig { params(name: String).void }
610
+ attr_writer :name
611
+
612
+ sig { params(hex: String, name: String).returns(T.attached_class) }
613
+ def self.new(
614
+ # Color in hexadecimal format
615
+ hex: nil,
616
+ # Name of the color
617
+ name: nil
618
+ )
619
+ end
620
+
621
+ sig { override.returns({ hex: String, name: String }) }
622
+ def to_hash
623
+ end
624
+ end
625
+
626
+ # Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
627
+ # best for dark mode, 'has_opaque_background' = can be used for either as image
628
+ # has its own background
629
+ module Mode
630
+ extend ContextDev::Internal::Type::Enum
631
+
632
+ TaggedSymbol =
633
+ T.type_alias do
634
+ T.all(
635
+ Symbol,
636
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode
637
+ )
638
+ end
639
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
640
+
641
+ LIGHT =
642
+ T.let(
643
+ :light,
644
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
645
+ )
646
+ DARK =
647
+ T.let(
648
+ :dark,
649
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
650
+ )
651
+ HAS_OPAQUE_BACKGROUND =
652
+ T.let(
653
+ :has_opaque_background,
654
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
655
+ )
656
+
657
+ sig do
658
+ override.returns(
659
+ T::Array[
660
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
661
+ ]
662
+ )
663
+ end
664
+ def self.values
665
+ end
666
+ end
667
+
668
+ class Resolution < ContextDev::Internal::Type::BaseModel
669
+ OrHash =
670
+ T.type_alias do
671
+ T.any(
672
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
673
+ ContextDev::Internal::AnyHash
674
+ )
675
+ end
676
+
677
+ # Aspect ratio of the image (width/height)
678
+ sig { returns(T.nilable(Float)) }
679
+ attr_reader :aspect_ratio
680
+
681
+ sig { params(aspect_ratio: Float).void }
682
+ attr_writer :aspect_ratio
683
+
684
+ # Height of the image in pixels
685
+ sig { returns(T.nilable(Integer)) }
686
+ attr_reader :height
687
+
688
+ sig { params(height: Integer).void }
689
+ attr_writer :height
690
+
691
+ # Width of the image in pixels
692
+ sig { returns(T.nilable(Integer)) }
693
+ attr_reader :width
694
+
695
+ sig { params(width: Integer).void }
696
+ attr_writer :width
697
+
698
+ # Resolution of the logo image
699
+ sig do
700
+ params(
701
+ aspect_ratio: Float,
702
+ height: Integer,
703
+ width: Integer
704
+ ).returns(T.attached_class)
705
+ end
706
+ def self.new(
707
+ # Aspect ratio of the image (width/height)
708
+ aspect_ratio: nil,
709
+ # Height of the image in pixels
710
+ height: nil,
711
+ # Width of the image in pixels
712
+ width: nil
713
+ )
714
+ end
715
+
716
+ sig do
717
+ override.returns(
718
+ { aspect_ratio: Float, height: Integer, width: Integer }
719
+ )
720
+ end
721
+ def to_hash
722
+ end
723
+ end
724
+
725
+ # Type of the logo based on resolution (e.g., 'icon', 'logo')
726
+ module Type
727
+ extend ContextDev::Internal::Type::Enum
728
+
729
+ TaggedSymbol =
730
+ T.type_alias do
731
+ T.all(
732
+ Symbol,
733
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type
734
+ )
735
+ end
736
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
737
+
738
+ ICON =
739
+ T.let(
740
+ :icon,
741
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
742
+ )
743
+ LOGO =
744
+ T.let(
745
+ :logo,
746
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
747
+ )
748
+
749
+ sig do
750
+ override.returns(
751
+ T::Array[
752
+ ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
753
+ ]
754
+ )
755
+ end
756
+ def self.values
757
+ end
758
+ end
759
+ end
760
+ end
761
+ end
762
+ end
763
+ end