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
@@ -144,26 +144,19 @@ module BrandDev
|
|
144
144
|
sig { params(domain: String).void }
|
145
145
|
attr_writer :domain
|
146
146
|
|
147
|
-
#
|
148
|
-
|
149
|
-
|
150
|
-
returns(
|
151
|
-
T.nilable(
|
152
|
-
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Font]
|
153
|
-
)
|
154
|
-
)
|
155
|
-
end
|
156
|
-
attr_reader :fonts
|
147
|
+
# Company email address
|
148
|
+
sig { returns(T.nilable(String)) }
|
149
|
+
attr_reader :email
|
157
150
|
|
158
|
-
sig
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
attr_writer :
|
151
|
+
sig { params(email: String).void }
|
152
|
+
attr_writer :email
|
153
|
+
|
154
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
155
|
+
sig { returns(T.nilable(T::Boolean)) }
|
156
|
+
attr_reader :is_nsfw
|
157
|
+
|
158
|
+
sig { params(is_nsfw: T::Boolean).void }
|
159
|
+
attr_writer :is_nsfw
|
167
160
|
|
168
161
|
# An array of logos associated with the brand
|
169
162
|
sig do
|
@@ -185,6 +178,13 @@ module BrandDev
|
|
185
178
|
end
|
186
179
|
attr_writer :logos
|
187
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
|
+
|
188
188
|
# The brand's slogan
|
189
189
|
sig { returns(T.nilable(String)) }
|
190
190
|
attr_reader :slogan
|
@@ -250,14 +250,13 @@ module BrandDev
|
|
250
250
|
],
|
251
251
|
description: String,
|
252
252
|
domain: String,
|
253
|
-
|
254
|
-
|
255
|
-
BrandDev::Models::BrandRetrieveResponse::Brand::Font::OrHash
|
256
|
-
],
|
253
|
+
email: String,
|
254
|
+
is_nsfw: T::Boolean,
|
257
255
|
logos:
|
258
256
|
T::Array[
|
259
257
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::OrHash
|
260
258
|
],
|
259
|
+
phone: String,
|
261
260
|
slogan: String,
|
262
261
|
socials:
|
263
262
|
T::Array[
|
@@ -279,11 +278,14 @@ module BrandDev
|
|
279
278
|
description: nil,
|
280
279
|
# The domain name of the brand
|
281
280
|
domain: nil,
|
282
|
-
#
|
283
|
-
|
284
|
-
|
281
|
+
# Company email address
|
282
|
+
email: nil,
|
283
|
+
# Indicates whether the brand content is not safe for work (NSFW)
|
284
|
+
is_nsfw: nil,
|
285
285
|
# An array of logos associated with the brand
|
286
286
|
logos: nil,
|
287
|
+
# Company phone number
|
288
|
+
phone: nil,
|
287
289
|
# The brand's slogan
|
288
290
|
slogan: nil,
|
289
291
|
# An array of social media links for the brand
|
@@ -308,10 +310,11 @@ module BrandDev
|
|
308
310
|
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Color],
|
309
311
|
description: String,
|
310
312
|
domain: String,
|
311
|
-
|
312
|
-
|
313
|
+
email: String,
|
314
|
+
is_nsfw: T::Boolean,
|
313
315
|
logos:
|
314
316
|
T::Array[BrandDev::Models::BrandRetrieveResponse::Brand::Logo],
|
317
|
+
phone: String,
|
315
318
|
slogan: String,
|
316
319
|
socials:
|
317
320
|
T::Array[
|
@@ -569,6 +572,13 @@ module BrandDev
|
|
569
572
|
)
|
570
573
|
end
|
571
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
|
+
|
572
582
|
# Height of the image in pixels
|
573
583
|
sig { returns(T.nilable(Integer)) }
|
574
584
|
attr_reader :height
|
@@ -585,9 +595,15 @@ module BrandDev
|
|
585
595
|
|
586
596
|
# Resolution of the backdrop image
|
587
597
|
sig do
|
588
|
-
params(
|
598
|
+
params(
|
599
|
+
aspect_ratio: Float,
|
600
|
+
height: Integer,
|
601
|
+
width: Integer
|
602
|
+
).returns(T.attached_class)
|
589
603
|
end
|
590
604
|
def self.new(
|
605
|
+
# Aspect ratio of the image (width/height)
|
606
|
+
aspect_ratio: nil,
|
591
607
|
# Height of the image in pixels
|
592
608
|
height: nil,
|
593
609
|
# Width of the image in pixels
|
@@ -595,7 +611,11 @@ module BrandDev
|
|
595
611
|
)
|
596
612
|
end
|
597
613
|
|
598
|
-
sig
|
614
|
+
sig do
|
615
|
+
override.returns(
|
616
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
617
|
+
)
|
618
|
+
end
|
599
619
|
def to_hash
|
600
620
|
end
|
601
621
|
end
|
@@ -638,43 +658,6 @@ module BrandDev
|
|
638
658
|
end
|
639
659
|
end
|
640
660
|
|
641
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
642
|
-
OrHash =
|
643
|
-
T.type_alias do
|
644
|
-
T.any(
|
645
|
-
BrandDev::Models::BrandRetrieveResponse::Brand::Font,
|
646
|
-
BrandDev::Internal::AnyHash
|
647
|
-
)
|
648
|
-
end
|
649
|
-
|
650
|
-
# Name of the font
|
651
|
-
sig { returns(T.nilable(String)) }
|
652
|
-
attr_reader :name
|
653
|
-
|
654
|
-
sig { params(name: String).void }
|
655
|
-
attr_writer :name
|
656
|
-
|
657
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
658
|
-
sig { returns(T.nilable(String)) }
|
659
|
-
attr_reader :usage
|
660
|
-
|
661
|
-
sig { params(usage: String).void }
|
662
|
-
attr_writer :usage
|
663
|
-
|
664
|
-
sig { params(name: String, usage: String).returns(T.attached_class) }
|
665
|
-
def self.new(
|
666
|
-
# Name of the font
|
667
|
-
name: nil,
|
668
|
-
# Usage of the font, e.g., 'title', 'body', 'button'
|
669
|
-
usage: nil
|
670
|
-
)
|
671
|
-
end
|
672
|
-
|
673
|
-
sig { override.returns({ name: String, usage: String }) }
|
674
|
-
def to_hash
|
675
|
-
end
|
676
|
-
end
|
677
|
-
|
678
661
|
class Logo < BrandDev::Internal::Type::BaseModel
|
679
662
|
OrHash =
|
680
663
|
T.type_alias do
|
@@ -706,18 +689,24 @@ module BrandDev
|
|
706
689
|
end
|
707
690
|
attr_writer :colors
|
708
691
|
|
709
|
-
#
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
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
|
718
702
|
attr_reader :mode
|
719
703
|
|
720
|
-
sig
|
704
|
+
sig do
|
705
|
+
params(
|
706
|
+
mode:
|
707
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::OrSymbol
|
708
|
+
).void
|
709
|
+
end
|
721
710
|
attr_writer :mode
|
722
711
|
|
723
712
|
# Resolution of the logo image
|
@@ -738,7 +727,25 @@ module BrandDev
|
|
738
727
|
end
|
739
728
|
attr_writer :resolution
|
740
729
|
|
741
|
-
#
|
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)
|
742
749
|
sig { returns(T.nilable(String)) }
|
743
750
|
attr_reader :url
|
744
751
|
|
@@ -751,23 +758,27 @@ module BrandDev
|
|
751
758
|
T::Array[
|
752
759
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color::OrHash
|
753
760
|
],
|
754
|
-
|
755
|
-
|
761
|
+
mode:
|
762
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::OrSymbol,
|
756
763
|
resolution:
|
757
764
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution::OrHash,
|
765
|
+
type:
|
766
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::OrSymbol,
|
758
767
|
url: String
|
759
768
|
).returns(T.attached_class)
|
760
769
|
end
|
761
770
|
def self.new(
|
762
771
|
# Array of colors in the logo
|
763
772
|
colors: nil,
|
764
|
-
#
|
765
|
-
|
766
|
-
#
|
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
|
767
776
|
mode: nil,
|
768
777
|
# Resolution of the logo image
|
769
778
|
resolution: nil,
|
770
|
-
#
|
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)
|
771
782
|
url: nil
|
772
783
|
)
|
773
784
|
end
|
@@ -779,10 +790,12 @@ module BrandDev
|
|
779
790
|
T::Array[
|
780
791
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Color
|
781
792
|
],
|
782
|
-
|
783
|
-
|
793
|
+
mode:
|
794
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Mode::TaggedSymbol,
|
784
795
|
resolution:
|
785
796
|
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Resolution,
|
797
|
+
type:
|
798
|
+
BrandDev::Models::BrandRetrieveResponse::Brand::Logo::Type::TaggedSymbol,
|
786
799
|
url: String
|
787
800
|
}
|
788
801
|
)
|
@@ -827,6 +840,48 @@ module BrandDev
|
|
827
840
|
end
|
828
841
|
end
|
829
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
|
+
|
830
885
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
831
886
|
OrHash =
|
832
887
|
T.type_alias do
|
@@ -836,6 +891,13 @@ module BrandDev
|
|
836
891
|
)
|
837
892
|
end
|
838
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
|
+
|
839
901
|
# Height of the image in pixels
|
840
902
|
sig { returns(T.nilable(Integer)) }
|
841
903
|
attr_reader :height
|
@@ -852,9 +914,15 @@ module BrandDev
|
|
852
914
|
|
853
915
|
# Resolution of the logo image
|
854
916
|
sig do
|
855
|
-
params(
|
917
|
+
params(
|
918
|
+
aspect_ratio: Float,
|
919
|
+
height: Integer,
|
920
|
+
width: Integer
|
921
|
+
).returns(T.attached_class)
|
856
922
|
end
|
857
923
|
def self.new(
|
924
|
+
# Aspect ratio of the image (width/height)
|
925
|
+
aspect_ratio: nil,
|
858
926
|
# Height of the image in pixels
|
859
927
|
height: nil,
|
860
928
|
# Width of the image in pixels
|
@@ -862,10 +930,49 @@ module BrandDev
|
|
862
930
|
)
|
863
931
|
end
|
864
932
|
|
865
|
-
sig
|
933
|
+
sig do
|
934
|
+
override.returns(
|
935
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
936
|
+
)
|
937
|
+
end
|
866
938
|
def to_hash
|
867
939
|
end
|
868
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
|
869
976
|
end
|
870
977
|
|
871
978
|
class Social < BrandDev::Internal::Type::BaseModel
|
@@ -472,18 +472,24 @@ module BrandDev
|
|
472
472
|
end
|
473
473
|
attr_writer :colors
|
474
474
|
|
475
|
-
#
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
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
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
|
482
|
+
)
|
483
|
+
)
|
484
|
+
end
|
484
485
|
attr_reader :mode
|
485
486
|
|
486
|
-
sig
|
487
|
+
sig do
|
488
|
+
params(
|
489
|
+
mode:
|
490
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::OrSymbol
|
491
|
+
).void
|
492
|
+
end
|
487
493
|
attr_writer :mode
|
488
494
|
|
489
495
|
# Resolution of the logo image
|
@@ -504,14 +510,25 @@ module BrandDev
|
|
504
510
|
end
|
505
511
|
attr_writer :resolution
|
506
512
|
|
507
|
-
# Type of the logo based on resolution (e.g., 'icon', 'logo'
|
508
|
-
sig
|
513
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
514
|
+
sig do
|
515
|
+
returns(
|
516
|
+
T.nilable(
|
517
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
|
518
|
+
)
|
519
|
+
)
|
520
|
+
end
|
509
521
|
attr_reader :type
|
510
522
|
|
511
|
-
sig
|
523
|
+
sig do
|
524
|
+
params(
|
525
|
+
type:
|
526
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::OrSymbol
|
527
|
+
).void
|
528
|
+
end
|
512
529
|
attr_writer :type
|
513
530
|
|
514
|
-
#
|
531
|
+
# CDN hosted url of the logo (ready for display)
|
515
532
|
sig { returns(T.nilable(String)) }
|
516
533
|
attr_reader :url
|
517
534
|
|
@@ -524,26 +541,27 @@ module BrandDev
|
|
524
541
|
T::Array[
|
525
542
|
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color::OrHash
|
526
543
|
],
|
527
|
-
|
528
|
-
|
544
|
+
mode:
|
545
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::OrSymbol,
|
529
546
|
resolution:
|
530
547
|
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution::OrHash,
|
531
|
-
type:
|
548
|
+
type:
|
549
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::OrSymbol,
|
532
550
|
url: String
|
533
551
|
).returns(T.attached_class)
|
534
552
|
end
|
535
553
|
def self.new(
|
536
554
|
# Array of colors in the logo
|
537
555
|
colors: nil,
|
538
|
-
#
|
539
|
-
|
540
|
-
#
|
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
|
541
559
|
mode: nil,
|
542
560
|
# Resolution of the logo image
|
543
561
|
resolution: nil,
|
544
|
-
# Type of the logo based on resolution (e.g., 'icon', 'logo'
|
562
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
545
563
|
type: nil,
|
546
|
-
#
|
564
|
+
# CDN hosted url of the logo (ready for display)
|
547
565
|
url: nil
|
548
566
|
)
|
549
567
|
end
|
@@ -555,11 +573,12 @@ module BrandDev
|
|
555
573
|
T::Array[
|
556
574
|
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Color
|
557
575
|
],
|
558
|
-
|
559
|
-
|
576
|
+
mode:
|
577
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol,
|
560
578
|
resolution:
|
561
579
|
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Resolution,
|
562
|
-
type:
|
580
|
+
type:
|
581
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol,
|
563
582
|
url: String
|
564
583
|
}
|
565
584
|
)
|
@@ -604,6 +623,48 @@ module BrandDev
|
|
604
623
|
end
|
605
624
|
end
|
606
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 BrandDev::Internal::Type::Enum
|
631
|
+
|
632
|
+
TaggedSymbol =
|
633
|
+
T.type_alias do
|
634
|
+
T.all(
|
635
|
+
Symbol,
|
636
|
+
BrandDev::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
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
|
645
|
+
)
|
646
|
+
DARK =
|
647
|
+
T.let(
|
648
|
+
:dark,
|
649
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
|
650
|
+
)
|
651
|
+
HAS_OPAQUE_BACKGROUND =
|
652
|
+
T.let(
|
653
|
+
:has_opaque_background,
|
654
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
|
655
|
+
)
|
656
|
+
|
657
|
+
sig do
|
658
|
+
override.returns(
|
659
|
+
T::Array[
|
660
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Mode::TaggedSymbol
|
661
|
+
]
|
662
|
+
)
|
663
|
+
end
|
664
|
+
def self.values
|
665
|
+
end
|
666
|
+
end
|
667
|
+
|
607
668
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
608
669
|
OrHash =
|
609
670
|
T.type_alias do
|
@@ -660,6 +721,41 @@ module BrandDev
|
|
660
721
|
def to_hash
|
661
722
|
end
|
662
723
|
end
|
724
|
+
|
725
|
+
# Type of the logo based on resolution (e.g., 'icon', 'logo')
|
726
|
+
module Type
|
727
|
+
extend BrandDev::Internal::Type::Enum
|
728
|
+
|
729
|
+
TaggedSymbol =
|
730
|
+
T.type_alias do
|
731
|
+
T.all(
|
732
|
+
Symbol,
|
733
|
+
BrandDev::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
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
|
742
|
+
)
|
743
|
+
LOGO =
|
744
|
+
T.let(
|
745
|
+
:logo,
|
746
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
|
747
|
+
)
|
748
|
+
|
749
|
+
sig do
|
750
|
+
override.returns(
|
751
|
+
T::Array[
|
752
|
+
BrandDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo::Type::TaggedSymbol
|
753
|
+
]
|
754
|
+
)
|
755
|
+
end
|
756
|
+
def self.values
|
757
|
+
end
|
758
|
+
end
|
663
759
|
end
|
664
760
|
end
|
665
761
|
end
|
data/rbi/brand_dev/models.rbi
CHANGED
@@ -185,25 +185,6 @@ module BrandDev
|
|
185
185
|
)
|
186
186
|
end
|
187
187
|
|
188
|
-
# Search brands by query
|
189
|
-
sig do
|
190
|
-
params(
|
191
|
-
query: String,
|
192
|
-
timeout_ms: Integer,
|
193
|
-
request_options: BrandDev::RequestOptions::OrHash
|
194
|
-
).returns(T::Array[BrandDev::Models::BrandSearchResponseItem])
|
195
|
-
end
|
196
|
-
def search(
|
197
|
-
# Query string to search brands
|
198
|
-
query:,
|
199
|
-
# Optional timeout in milliseconds for the request. If the request takes longer
|
200
|
-
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
201
|
-
# value is 300000ms (5 minutes).
|
202
|
-
timeout_ms: nil,
|
203
|
-
request_options: {}
|
204
|
-
)
|
205
|
-
end
|
206
|
-
|
207
188
|
# Beta feature: Automatically extract comprehensive design system information from
|
208
189
|
# a brand's website including colors, typography, spacing, shadows, and UI
|
209
190
|
# components.
|