brand.dev 0.1.0 → 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 +8 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_ai_query_response.rb +1 -9
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +85 -18
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +84 -18
- data/lib/brand_dev/models/brand_retrieve_response.rb +84 -18
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +46 -19
- data/lib/brand_dev/version.rb +1 -1
- data/rbi/brand_dev/models/brand_ai_query_response.rbi +0 -11
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +186 -23
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +186 -23
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +186 -23
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +121 -25
- data/sig/brand_dev/models/brand_ai_query_response.rbs +0 -7
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +86 -19
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +86 -19
- data/sig/brand_dev/models/brand_retrieve_response.rbs +86 -19
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +37 -17
- metadata +1 -1
@@ -154,6 +154,13 @@ module BrandDev
|
|
154
154
|
sig { params(domain: String).void }
|
155
155
|
attr_writer :domain
|
156
156
|
|
157
|
+
# Company email address
|
158
|
+
sig { returns(T.nilable(String)) }
|
159
|
+
attr_reader :email
|
160
|
+
|
161
|
+
sig { params(email: String).void }
|
162
|
+
attr_writer :email
|
163
|
+
|
157
164
|
# Indicates whether the brand content is not safe for work (NSFW)
|
158
165
|
sig { returns(T.nilable(T::Boolean)) }
|
159
166
|
attr_reader :is_nsfw
|
@@ -183,6 +190,13 @@ module BrandDev
|
|
183
190
|
end
|
184
191
|
attr_writer :logos
|
185
192
|
|
193
|
+
# Company phone number
|
194
|
+
sig { returns(T.nilable(String)) }
|
195
|
+
attr_reader :phone
|
196
|
+
|
197
|
+
sig { params(phone: String).void }
|
198
|
+
attr_writer :phone
|
199
|
+
|
186
200
|
# The brand's slogan
|
187
201
|
sig { returns(T.nilable(String)) }
|
188
202
|
attr_reader :slogan
|
@@ -253,11 +267,13 @@ module BrandDev
|
|
253
267
|
],
|
254
268
|
description: String,
|
255
269
|
domain: String,
|
270
|
+
email: String,
|
256
271
|
is_nsfw: T::Boolean,
|
257
272
|
logos:
|
258
273
|
T::Array[
|
259
274
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::OrHash
|
260
275
|
],
|
276
|
+
phone: String,
|
261
277
|
slogan: String,
|
262
278
|
socials:
|
263
279
|
T::Array[
|
@@ -279,10 +295,14 @@ module BrandDev
|
|
279
295
|
description: nil,
|
280
296
|
# The domain name of the brand
|
281
297
|
domain: nil,
|
298
|
+
# Company email address
|
299
|
+
email: nil,
|
282
300
|
# Indicates whether the brand content is not safe for work (NSFW)
|
283
301
|
is_nsfw: nil,
|
284
302
|
# An array of logos associated with the brand
|
285
303
|
logos: nil,
|
304
|
+
# Company phone number
|
305
|
+
phone: nil,
|
286
306
|
# The brand's slogan
|
287
307
|
slogan: nil,
|
288
308
|
# An array of social media links for the brand
|
@@ -310,11 +330,13 @@ module BrandDev
|
|
310
330
|
],
|
311
331
|
description: String,
|
312
332
|
domain: String,
|
333
|
+
email: String,
|
313
334
|
is_nsfw: T::Boolean,
|
314
335
|
logos:
|
315
336
|
T::Array[
|
316
337
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo
|
317
338
|
],
|
339
|
+
phone: String,
|
318
340
|
slogan: String,
|
319
341
|
socials:
|
320
342
|
T::Array[
|
@@ -573,6 +595,13 @@ module BrandDev
|
|
573
595
|
)
|
574
596
|
end
|
575
597
|
|
598
|
+
# Aspect ratio of the image (width/height)
|
599
|
+
sig { returns(T.nilable(Float)) }
|
600
|
+
attr_reader :aspect_ratio
|
601
|
+
|
602
|
+
sig { params(aspect_ratio: Float).void }
|
603
|
+
attr_writer :aspect_ratio
|
604
|
+
|
576
605
|
# Height of the image in pixels
|
577
606
|
sig { returns(T.nilable(Integer)) }
|
578
607
|
attr_reader :height
|
@@ -589,9 +618,15 @@ module BrandDev
|
|
589
618
|
|
590
619
|
# Resolution of the backdrop image
|
591
620
|
sig do
|
592
|
-
params(
|
621
|
+
params(
|
622
|
+
aspect_ratio: Float,
|
623
|
+
height: Integer,
|
624
|
+
width: Integer
|
625
|
+
).returns(T.attached_class)
|
593
626
|
end
|
594
627
|
def self.new(
|
628
|
+
# Aspect ratio of the image (width/height)
|
629
|
+
aspect_ratio: nil,
|
595
630
|
# Height of the image in pixels
|
596
631
|
height: nil,
|
597
632
|
# Width of the image in pixels
|
@@ -599,7 +634,11 @@ module BrandDev
|
|
599
634
|
)
|
600
635
|
end
|
601
636
|
|
602
|
-
sig
|
637
|
+
sig do
|
638
|
+
override.returns(
|
639
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
640
|
+
)
|
641
|
+
end
|
603
642
|
def to_hash
|
604
643
|
end
|
605
644
|
end
|
@@ -673,18 +712,24 @@ module BrandDev
|
|
673
712
|
end
|
674
713
|
attr_writer :colors
|
675
714
|
|
676
|
-
#
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
715
|
+
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
716
|
+
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
717
|
+
# has its own background
|
718
|
+
sig do
|
719
|
+
returns(
|
720
|
+
T.nilable(
|
721
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol
|
722
|
+
)
|
723
|
+
)
|
724
|
+
end
|
685
725
|
attr_reader :mode
|
686
726
|
|
687
|
-
sig
|
727
|
+
sig do
|
728
|
+
params(
|
729
|
+
mode:
|
730
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::OrSymbol
|
731
|
+
).void
|
732
|
+
end
|
688
733
|
attr_writer :mode
|
689
734
|
|
690
735
|
# Resolution of the logo image
|
@@ -705,7 +750,25 @@ module BrandDev
|
|
705
750
|
end
|
706
751
|
attr_writer :resolution
|
707
752
|
|
708
|
-
#
|
753
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
754
|
+
sig do
|
755
|
+
returns(
|
756
|
+
T.nilable(
|
757
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol
|
758
|
+
)
|
759
|
+
)
|
760
|
+
end
|
761
|
+
attr_reader :type
|
762
|
+
|
763
|
+
sig do
|
764
|
+
params(
|
765
|
+
type:
|
766
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::OrSymbol
|
767
|
+
).void
|
768
|
+
end
|
769
|
+
attr_writer :type
|
770
|
+
|
771
|
+
# CDN hosted url of the logo (ready for display)
|
709
772
|
sig { returns(T.nilable(String)) }
|
710
773
|
attr_reader :url
|
711
774
|
|
@@ -718,23 +781,27 @@ module BrandDev
|
|
718
781
|
T::Array[
|
719
782
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color::OrHash
|
720
783
|
],
|
721
|
-
|
722
|
-
|
784
|
+
mode:
|
785
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::OrSymbol,
|
723
786
|
resolution:
|
724
787
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution::OrHash,
|
788
|
+
type:
|
789
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::OrSymbol,
|
725
790
|
url: String
|
726
791
|
).returns(T.attached_class)
|
727
792
|
end
|
728
793
|
def self.new(
|
729
794
|
# Array of colors in the logo
|
730
795
|
colors: nil,
|
731
|
-
#
|
732
|
-
|
733
|
-
#
|
796
|
+
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
797
|
+
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
798
|
+
# has its own background
|
734
799
|
mode: nil,
|
735
800
|
# Resolution of the logo image
|
736
801
|
resolution: nil,
|
737
|
-
#
|
802
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
803
|
+
type: nil,
|
804
|
+
# CDN hosted url of the logo (ready for display)
|
738
805
|
url: nil
|
739
806
|
)
|
740
807
|
end
|
@@ -746,10 +813,12 @@ module BrandDev
|
|
746
813
|
T::Array[
|
747
814
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color
|
748
815
|
],
|
749
|
-
|
750
|
-
|
816
|
+
mode:
|
817
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol,
|
751
818
|
resolution:
|
752
819
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
|
820
|
+
type:
|
821
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol,
|
753
822
|
url: String
|
754
823
|
}
|
755
824
|
)
|
@@ -794,6 +863,48 @@ module BrandDev
|
|
794
863
|
end
|
795
864
|
end
|
796
865
|
|
866
|
+
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
867
|
+
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
868
|
+
# has its own background
|
869
|
+
module Mode
|
870
|
+
extend BrandDev::Internal::Type::Enum
|
871
|
+
|
872
|
+
TaggedSymbol =
|
873
|
+
T.type_alias do
|
874
|
+
T.all(
|
875
|
+
Symbol,
|
876
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode
|
877
|
+
)
|
878
|
+
end
|
879
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
880
|
+
|
881
|
+
LIGHT =
|
882
|
+
T.let(
|
883
|
+
:light,
|
884
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol
|
885
|
+
)
|
886
|
+
DARK =
|
887
|
+
T.let(
|
888
|
+
:dark,
|
889
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol
|
890
|
+
)
|
891
|
+
HAS_OPAQUE_BACKGROUND =
|
892
|
+
T.let(
|
893
|
+
:has_opaque_background,
|
894
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol
|
895
|
+
)
|
896
|
+
|
897
|
+
sig do
|
898
|
+
override.returns(
|
899
|
+
T::Array[
|
900
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Mode::TaggedSymbol
|
901
|
+
]
|
902
|
+
)
|
903
|
+
end
|
904
|
+
def self.values
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
797
908
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
798
909
|
OrHash =
|
799
910
|
T.type_alias do
|
@@ -803,6 +914,13 @@ module BrandDev
|
|
803
914
|
)
|
804
915
|
end
|
805
916
|
|
917
|
+
# Aspect ratio of the image (width/height)
|
918
|
+
sig { returns(T.nilable(Float)) }
|
919
|
+
attr_reader :aspect_ratio
|
920
|
+
|
921
|
+
sig { params(aspect_ratio: Float).void }
|
922
|
+
attr_writer :aspect_ratio
|
923
|
+
|
806
924
|
# Height of the image in pixels
|
807
925
|
sig { returns(T.nilable(Integer)) }
|
808
926
|
attr_reader :height
|
@@ -819,9 +937,15 @@ module BrandDev
|
|
819
937
|
|
820
938
|
# Resolution of the logo image
|
821
939
|
sig do
|
822
|
-
params(
|
940
|
+
params(
|
941
|
+
aspect_ratio: Float,
|
942
|
+
height: Integer,
|
943
|
+
width: Integer
|
944
|
+
).returns(T.attached_class)
|
823
945
|
end
|
824
946
|
def self.new(
|
947
|
+
# Aspect ratio of the image (width/height)
|
948
|
+
aspect_ratio: nil,
|
825
949
|
# Height of the image in pixels
|
826
950
|
height: nil,
|
827
951
|
# Width of the image in pixels
|
@@ -829,10 +953,49 @@ module BrandDev
|
|
829
953
|
)
|
830
954
|
end
|
831
955
|
|
832
|
-
sig
|
956
|
+
sig do
|
957
|
+
override.returns(
|
958
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
959
|
+
)
|
960
|
+
end
|
833
961
|
def to_hash
|
834
962
|
end
|
835
963
|
end
|
964
|
+
|
965
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
966
|
+
module Type
|
967
|
+
extend BrandDev::Internal::Type::Enum
|
968
|
+
|
969
|
+
TaggedSymbol =
|
970
|
+
T.type_alias do
|
971
|
+
T.all(
|
972
|
+
Symbol,
|
973
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type
|
974
|
+
)
|
975
|
+
end
|
976
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
977
|
+
|
978
|
+
ICON =
|
979
|
+
T.let(
|
980
|
+
:icon,
|
981
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol
|
982
|
+
)
|
983
|
+
LOGO =
|
984
|
+
T.let(
|
985
|
+
:logo,
|
986
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol
|
987
|
+
)
|
988
|
+
|
989
|
+
sig do
|
990
|
+
override.returns(
|
991
|
+
T::Array[
|
992
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Type::TaggedSymbol
|
993
|
+
]
|
994
|
+
)
|
995
|
+
end
|
996
|
+
def self.values
|
997
|
+
end
|
998
|
+
end
|
836
999
|
end
|
837
1000
|
|
838
1001
|
class Social < BrandDev::Internal::Type::BaseModel
|
@@ -144,6 +144,13 @@ module BrandDev
|
|
144
144
|
sig { params(domain: String).void }
|
145
145
|
attr_writer :domain
|
146
146
|
|
147
|
+
# Company email address
|
148
|
+
sig { returns(T.nilable(String)) }
|
149
|
+
attr_reader :email
|
150
|
+
|
151
|
+
sig { params(email: String).void }
|
152
|
+
attr_writer :email
|
153
|
+
|
147
154
|
# Indicates whether the brand content is not safe for work (NSFW)
|
148
155
|
sig { returns(T.nilable(T::Boolean)) }
|
149
156
|
attr_reader :is_nsfw
|
@@ -171,6 +178,13 @@ module BrandDev
|
|
171
178
|
end
|
172
179
|
attr_writer :logos
|
173
180
|
|
181
|
+
# Company phone number
|
182
|
+
sig { returns(T.nilable(String)) }
|
183
|
+
attr_reader :phone
|
184
|
+
|
185
|
+
sig { params(phone: String).void }
|
186
|
+
attr_writer :phone
|
187
|
+
|
174
188
|
# The brand's slogan
|
175
189
|
sig { returns(T.nilable(String)) }
|
176
190
|
attr_reader :slogan
|
@@ -236,11 +250,13 @@ module BrandDev
|
|
236
250
|
],
|
237
251
|
description: String,
|
238
252
|
domain: String,
|
253
|
+
email: String,
|
239
254
|
is_nsfw: T::Boolean,
|
240
255
|
logos:
|
241
256
|
T::Array[
|
242
257
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::OrHash
|
243
258
|
],
|
259
|
+
phone: String,
|
244
260
|
slogan: String,
|
245
261
|
socials:
|
246
262
|
T::Array[
|
@@ -262,10 +278,14 @@ module BrandDev
|
|
262
278
|
description: nil,
|
263
279
|
# The domain name of the brand
|
264
280
|
domain: nil,
|
281
|
+
# Company email address
|
282
|
+
email: nil,
|
265
283
|
# Indicates whether the brand content is not safe for work (NSFW)
|
266
284
|
is_nsfw: nil,
|
267
285
|
# An array of logos associated with the brand
|
268
286
|
logos: nil,
|
287
|
+
# Company phone number
|
288
|
+
phone: nil,
|
269
289
|
# The brand's slogan
|
270
290
|
slogan: nil,
|
271
291
|
# An array of social media links for the brand
|
@@ -290,9 +310,11 @@ module BrandDev
|
|
290
310
|
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
291
311
|
description: String,
|
292
312
|
domain: String,
|
313
|
+
email: String,
|
293
314
|
is_nsfw: T::Boolean,
|
294
315
|
logos:
|
295
316
|
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
317
|
+
phone: String,
|
296
318
|
slogan: String,
|
297
319
|
socials:
|
298
320
|
T::Array[
|
@@ -550,6 +572,13 @@ module BrandDev
|
|
550
572
|
)
|
551
573
|
end
|
552
574
|
|
575
|
+
# Aspect ratio of the image (width/height)
|
576
|
+
sig { returns(T.nilable(Float)) }
|
577
|
+
attr_reader :aspect_ratio
|
578
|
+
|
579
|
+
sig { params(aspect_ratio: Float).void }
|
580
|
+
attr_writer :aspect_ratio
|
581
|
+
|
553
582
|
# Height of the image in pixels
|
554
583
|
sig { returns(T.nilable(Integer)) }
|
555
584
|
attr_reader :height
|
@@ -566,9 +595,15 @@ module BrandDev
|
|
566
595
|
|
567
596
|
# Resolution of the backdrop image
|
568
597
|
sig do
|
569
|
-
params(
|
598
|
+
params(
|
599
|
+
aspect_ratio: Float,
|
600
|
+
height: Integer,
|
601
|
+
width: Integer
|
602
|
+
).returns(T.attached_class)
|
570
603
|
end
|
571
604
|
def self.new(
|
605
|
+
# Aspect ratio of the image (width/height)
|
606
|
+
aspect_ratio: nil,
|
572
607
|
# Height of the image in pixels
|
573
608
|
height: nil,
|
574
609
|
# Width of the image in pixels
|
@@ -576,7 +611,11 @@ module BrandDev
|
|
576
611
|
)
|
577
612
|
end
|
578
613
|
|
579
|
-
sig
|
614
|
+
sig do
|
615
|
+
override.returns(
|
616
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
617
|
+
)
|
618
|
+
end
|
580
619
|
def to_hash
|
581
620
|
end
|
582
621
|
end
|
@@ -650,18 +689,24 @@ module BrandDev
|
|
650
689
|
end
|
651
690
|
attr_writer :colors
|
652
691
|
|
653
|
-
#
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
692
|
+
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
693
|
+
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
694
|
+
# has its own background
|
695
|
+
sig do
|
696
|
+
returns(
|
697
|
+
T.nilable(
|
698
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol
|
699
|
+
)
|
700
|
+
)
|
701
|
+
end
|
662
702
|
attr_reader :mode
|
663
703
|
|
664
|
-
sig
|
704
|
+
sig do
|
705
|
+
params(
|
706
|
+
mode:
|
707
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::OrSymbol
|
708
|
+
).void
|
709
|
+
end
|
665
710
|
attr_writer :mode
|
666
711
|
|
667
712
|
# Resolution of the logo image
|
@@ -682,7 +727,25 @@ module BrandDev
|
|
682
727
|
end
|
683
728
|
attr_writer :resolution
|
684
729
|
|
685
|
-
#
|
730
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
731
|
+
sig do
|
732
|
+
returns(
|
733
|
+
T.nilable(
|
734
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::TaggedSymbol
|
735
|
+
)
|
736
|
+
)
|
737
|
+
end
|
738
|
+
attr_reader :type
|
739
|
+
|
740
|
+
sig do
|
741
|
+
params(
|
742
|
+
type:
|
743
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::OrSymbol
|
744
|
+
).void
|
745
|
+
end
|
746
|
+
attr_writer :type
|
747
|
+
|
748
|
+
# CDN hosted url of the logo (ready for display)
|
686
749
|
sig { returns(T.nilable(String)) }
|
687
750
|
attr_reader :url
|
688
751
|
|
@@ -695,23 +758,27 @@ module BrandDev
|
|
695
758
|
T::Array[
|
696
759
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color::OrHash
|
697
760
|
],
|
698
|
-
|
699
|
-
|
761
|
+
mode:
|
762
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::OrSymbol,
|
700
763
|
resolution:
|
701
764
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution::OrHash,
|
765
|
+
type:
|
766
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::OrSymbol,
|
702
767
|
url: String
|
703
768
|
).returns(T.attached_class)
|
704
769
|
end
|
705
770
|
def self.new(
|
706
771
|
# Array of colors in the logo
|
707
772
|
colors: nil,
|
708
|
-
#
|
709
|
-
|
710
|
-
#
|
773
|
+
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
774
|
+
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
775
|
+
# has its own background
|
711
776
|
mode: nil,
|
712
777
|
# Resolution of the logo image
|
713
778
|
resolution: nil,
|
714
|
-
#
|
779
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
780
|
+
type: nil,
|
781
|
+
# CDN hosted url of the logo (ready for display)
|
715
782
|
url: nil
|
716
783
|
)
|
717
784
|
end
|
@@ -723,10 +790,12 @@ module BrandDev
|
|
723
790
|
T::Array[
|
724
791
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color
|
725
792
|
],
|
726
|
-
|
727
|
-
|
793
|
+
mode:
|
794
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol,
|
728
795
|
resolution:
|
729
796
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution,
|
797
|
+
type:
|
798
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::TaggedSymbol,
|
730
799
|
url: String
|
731
800
|
}
|
732
801
|
)
|
@@ -771,6 +840,48 @@ module BrandDev
|
|
771
840
|
end
|
772
841
|
end
|
773
842
|
|
843
|
+
# Indicates when this logo is best used: 'light' = best for light mode, 'dark' =
|
844
|
+
# best for dark mode, 'has_opaque_background' = can be used for either as image
|
845
|
+
# has its own background
|
846
|
+
module Mode
|
847
|
+
extend BrandDev::Internal::Type::Enum
|
848
|
+
|
849
|
+
TaggedSymbol =
|
850
|
+
T.type_alias do
|
851
|
+
T.all(
|
852
|
+
Symbol,
|
853
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode
|
854
|
+
)
|
855
|
+
end
|
856
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
857
|
+
|
858
|
+
LIGHT =
|
859
|
+
T.let(
|
860
|
+
:light,
|
861
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol
|
862
|
+
)
|
863
|
+
DARK =
|
864
|
+
T.let(
|
865
|
+
:dark,
|
866
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol
|
867
|
+
)
|
868
|
+
HAS_OPAQUE_BACKGROUND =
|
869
|
+
T.let(
|
870
|
+
:has_opaque_background,
|
871
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol
|
872
|
+
)
|
873
|
+
|
874
|
+
sig do
|
875
|
+
override.returns(
|
876
|
+
T::Array[
|
877
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol
|
878
|
+
]
|
879
|
+
)
|
880
|
+
end
|
881
|
+
def self.values
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
774
885
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
775
886
|
OrHash =
|
776
887
|
T.type_alias do
|
@@ -780,6 +891,13 @@ module BrandDev
|
|
780
891
|
)
|
781
892
|
end
|
782
893
|
|
894
|
+
# Aspect ratio of the image (width/height)
|
895
|
+
sig { returns(T.nilable(Float)) }
|
896
|
+
attr_reader :aspect_ratio
|
897
|
+
|
898
|
+
sig { params(aspect_ratio: Float).void }
|
899
|
+
attr_writer :aspect_ratio
|
900
|
+
|
783
901
|
# Height of the image in pixels
|
784
902
|
sig { returns(T.nilable(Integer)) }
|
785
903
|
attr_reader :height
|
@@ -796,9 +914,15 @@ module BrandDev
|
|
796
914
|
|
797
915
|
# Resolution of the logo image
|
798
916
|
sig do
|
799
|
-
params(
|
917
|
+
params(
|
918
|
+
aspect_ratio: Float,
|
919
|
+
height: Integer,
|
920
|
+
width: Integer
|
921
|
+
).returns(T.attached_class)
|
800
922
|
end
|
801
923
|
def self.new(
|
924
|
+
# Aspect ratio of the image (width/height)
|
925
|
+
aspect_ratio: nil,
|
802
926
|
# Height of the image in pixels
|
803
927
|
height: nil,
|
804
928
|
# Width of the image in pixels
|
@@ -806,10 +930,49 @@ module BrandDev
|
|
806
930
|
)
|
807
931
|
end
|
808
932
|
|
809
|
-
sig
|
933
|
+
sig do
|
934
|
+
override.returns(
|
935
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
936
|
+
)
|
937
|
+
end
|
810
938
|
def to_hash
|
811
939
|
end
|
812
940
|
end
|
941
|
+
|
942
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
943
|
+
module Type
|
944
|
+
extend BrandDev::Internal::Type::Enum
|
945
|
+
|
946
|
+
TaggedSymbol =
|
947
|
+
T.type_alias do
|
948
|
+
T.all(
|
949
|
+
Symbol,
|
950
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type
|
951
|
+
)
|
952
|
+
end
|
953
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
954
|
+
|
955
|
+
ICON =
|
956
|
+
T.let(
|
957
|
+
:icon,
|
958
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::TaggedSymbol
|
959
|
+
)
|
960
|
+
LOGO =
|
961
|
+
T.let(
|
962
|
+
:logo,
|
963
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::TaggedSymbol
|
964
|
+
)
|
965
|
+
|
966
|
+
sig do
|
967
|
+
override.returns(
|
968
|
+
T::Array[
|
969
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::TaggedSymbol
|
970
|
+
]
|
971
|
+
)
|
972
|
+
end
|
973
|
+
def self.values
|
974
|
+
end
|
975
|
+
end
|
813
976
|
end
|
814
977
|
|
815
978
|
class Social < BrandDev::Internal::Type::BaseModel
|