brand.dev 0.1.0.pre.alpha.12 → 0.1.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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +49 -0
  3. data/README.md +1 -1
  4. data/lib/brand_dev/internal/transport/base_client.rb +10 -2
  5. data/lib/brand_dev/models/brand_ai_query_response.rb +17 -1
  6. data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +6 -26
  7. data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +6 -26
  8. data/lib/brand_dev/models/brand_retrieve_response.rb +6 -27
  9. data/lib/brand_dev/models.rb +0 -2
  10. data/lib/brand_dev/resources/brand.rb +0 -27
  11. data/lib/brand_dev/version.rb +1 -1
  12. data/lib/brand_dev.rb +0 -2
  13. data/rbi/brand_dev/models/brand_ai_query_response.rbi +22 -0
  14. data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +9 -67
  15. data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +9 -67
  16. data/rbi/brand_dev/models/brand_retrieve_response.rbi +9 -65
  17. data/rbi/brand_dev/models.rbi +0 -2
  18. data/rbi/brand_dev/resources/brand.rbi +0 -19
  19. data/sig/brand_dev/models/brand_ai_query_response.rbs +14 -0
  20. data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +5 -23
  21. data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +5 -23
  22. data/sig/brand_dev/models/brand_retrieve_response.rbs +5 -23
  23. data/sig/brand_dev/models.rbs +0 -2
  24. data/sig/brand_dev/resources/brand.rbs +0 -6
  25. metadata +4 -10
  26. data/lib/brand_dev/models/brand_search_params.rb +0 -35
  27. data/lib/brand_dev/models/brand_search_response.rb +0 -35
  28. data/rbi/brand_dev/models/brand_search_params.rbi +0 -58
  29. data/rbi/brand_dev/models/brand_search_response.rbi +0 -63
  30. data/sig/brand_dev/models/brand_search_params.rbs +0 -30
  31. data/sig/brand_dev/models/brand_search_response.rbs +0 -29
@@ -1,58 +0,0 @@
1
- # typed: strong
2
-
3
- module BrandDev
4
- module Models
5
- class BrandSearchParams < BrandDev::Internal::Type::BaseModel
6
- extend BrandDev::Internal::Type::RequestParameters::Converter
7
- include BrandDev::Internal::Type::RequestParameters
8
-
9
- OrHash =
10
- T.type_alias do
11
- T.any(BrandDev::BrandSearchParams, BrandDev::Internal::AnyHash)
12
- end
13
-
14
- # Query string to search brands
15
- sig { returns(String) }
16
- attr_accessor :query
17
-
18
- # Optional timeout in milliseconds for the request. If the request takes longer
19
- # than this value, it will be aborted with a 408 status code. Maximum allowed
20
- # value is 300000ms (5 minutes).
21
- sig { returns(T.nilable(Integer)) }
22
- attr_reader :timeout_ms
23
-
24
- sig { params(timeout_ms: Integer).void }
25
- attr_writer :timeout_ms
26
-
27
- sig do
28
- params(
29
- query: String,
30
- timeout_ms: Integer,
31
- request_options: BrandDev::RequestOptions::OrHash
32
- ).returns(T.attached_class)
33
- end
34
- def self.new(
35
- # Query string to search brands
36
- query:,
37
- # Optional timeout in milliseconds for the request. If the request takes longer
38
- # than this value, it will be aborted with a 408 status code. Maximum allowed
39
- # value is 300000ms (5 minutes).
40
- timeout_ms: nil,
41
- request_options: {}
42
- )
43
- end
44
-
45
- sig do
46
- override.returns(
47
- {
48
- query: String,
49
- timeout_ms: Integer,
50
- request_options: BrandDev::RequestOptions
51
- }
52
- )
53
- end
54
- def to_hash
55
- end
56
- end
57
- end
58
- end
@@ -1,63 +0,0 @@
1
- # typed: strong
2
-
3
- module BrandDev
4
- module Models
5
- class BrandSearchResponseItem < BrandDev::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- BrandDev::Models::BrandSearchResponseItem,
10
- BrandDev::Internal::AnyHash
11
- )
12
- end
13
-
14
- # Domain name of the brand
15
- sig { returns(T.nilable(String)) }
16
- attr_reader :domain
17
-
18
- sig { params(domain: String).void }
19
- attr_writer :domain
20
-
21
- # URL of the brand's logo
22
- sig { returns(T.nilable(String)) }
23
- attr_reader :logo
24
-
25
- sig { params(logo: String).void }
26
- attr_writer :logo
27
-
28
- # Title or name of the brand
29
- sig { returns(T.nilable(String)) }
30
- attr_reader :title
31
-
32
- sig { params(title: String).void }
33
- attr_writer :title
34
-
35
- sig do
36
- params(domain: String, logo: String, title: String).returns(
37
- T.attached_class
38
- )
39
- end
40
- def self.new(
41
- # Domain name of the brand
42
- domain: nil,
43
- # URL of the brand's logo
44
- logo: nil,
45
- # Title or name of the brand
46
- title: nil
47
- )
48
- end
49
-
50
- sig { override.returns({ domain: String, logo: String, title: String }) }
51
- def to_hash
52
- end
53
- end
54
-
55
- BrandSearchResponse =
56
- T.let(
57
- BrandDev::Internal::Type::ArrayOf[
58
- BrandDev::Models::BrandSearchResponseItem
59
- ],
60
- BrandDev::Internal::Type::Converter
61
- )
62
- end
63
- end
@@ -1,30 +0,0 @@
1
- module BrandDev
2
- module Models
3
- type brand_search_params =
4
- { query: String, timeout_ms: Integer }
5
- & BrandDev::Internal::Type::request_parameters
6
-
7
- class BrandSearchParams < BrandDev::Internal::Type::BaseModel
8
- extend BrandDev::Internal::Type::RequestParameters::Converter
9
- include BrandDev::Internal::Type::RequestParameters
10
-
11
- attr_accessor query: String
12
-
13
- attr_reader timeout_ms: Integer?
14
-
15
- def timeout_ms=: (Integer) -> Integer
16
-
17
- def initialize: (
18
- query: String,
19
- ?timeout_ms: Integer,
20
- ?request_options: BrandDev::request_opts
21
- ) -> void
22
-
23
- def to_hash: -> {
24
- query: String,
25
- timeout_ms: Integer,
26
- request_options: BrandDev::RequestOptions
27
- }
28
- end
29
- end
30
- end
@@ -1,29 +0,0 @@
1
- module BrandDev
2
- module Models
3
- type brand_search_response_item =
4
- { domain: String, logo: String, title: String }
5
-
6
- class BrandSearchResponseItem < BrandDev::Internal::Type::BaseModel
7
- attr_reader domain: String?
8
-
9
- def domain=: (String) -> String
10
-
11
- attr_reader logo: String?
12
-
13
- def logo=: (String) -> String
14
-
15
- attr_reader title: String?
16
-
17
- def title=: (String) -> String
18
-
19
- def initialize: (?domain: String, ?logo: String, ?title: String) -> void
20
-
21
- def to_hash: -> { domain: String, logo: String, title: String }
22
- end
23
-
24
- type brand_search_response =
25
- ::Array[BrandDev::Models::BrandSearchResponseItem]
26
-
27
- BrandSearchResponse: BrandDev::Internal::Type::Converter
28
- end
29
- end