brand.dev 0.1.0.pre.alpha.2 → 0.1.0.pre.alpha.3
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 +13 -0
- data/README.md +1 -1
- data/lib/brand_dev/models/brand_prefetch_params.rb +22 -0
- data/lib/brand_dev/models/brand_prefetch_response.rb +33 -0
- data/lib/brand_dev/models.rb +2 -0
- data/lib/brand_dev/resources/brand.rb +25 -0
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +2 -0
- data/rbi/brand_dev/models/brand_prefetch_params.rbi +40 -0
- data/rbi/brand_dev/models/brand_prefetch_response.rbi +57 -0
- data/rbi/brand_dev/models.rbi +2 -0
- data/rbi/brand_dev/resources/brand.rbi +17 -0
- data/sig/brand_dev/models/brand_prefetch_params.rbs +23 -0
- data/sig/brand_dev/models/brand_prefetch_response.rbs +28 -0
- data/sig/brand_dev/models.rbs +2 -0
- data/sig/brand_dev/resources/brand.rbs +5 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b4785c6a5194cf7d3a6a7da3a3e39a22d115838178cc06abbaef4ccd772b76f
|
4
|
+
data.tar.gz: 2f1de5954cd94b141efb40db439bbc41976e686868c1fcb0f53dd2c882e6d481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90e4b94324308dbb27808e0cb1e497b6a025d5d828f9c4e51f9e356dbc775732a081c942007423cc11b8f2a98bf5f3e691c353017fe640214033633ba3b4a3e5
|
7
|
+
data.tar.gz: b3b8049f2c366e2d41dd865bcf4d96df7c26b46407df10fb302803f5e7f23990e9e972b350dcfe351a4b82e475e81a5e1f5c6a41ea549562ca4e75a4e471bfca
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.3 (2025-06-06)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** manual updates ([7410667](https://github.com/brand-dot-dev/ruby-sdk/commit/7410667d18ceacfb171c91eb14a4825f77e3487b))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** codegen related update ([08a0fc4](https://github.com/brand-dot-dev/ruby-sdk/commit/08a0fc45756634925a18266d526b41a217b37492))
|
15
|
+
|
3
16
|
## 0.1.0-alpha.2 (2025-06-05)
|
4
17
|
|
5
18
|
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/brand-dot-dev/ruby-sdk/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
15
15
|
<!-- x-release-please-start-version -->
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "brand.dev", "~> 0.1.0.pre.alpha.
|
18
|
+
gem "brand.dev", "~> 0.1.0.pre.alpha.3"
|
19
19
|
```
|
20
20
|
|
21
21
|
<!-- x-release-please-end -->
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
# @see BrandDev::Resources::Brand#prefetch
|
6
|
+
class BrandPrefetchParams < BrandDev::Internal::Type::BaseModel
|
7
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
8
|
+
include BrandDev::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute domain
|
11
|
+
# Domain name to prefetch brand data for
|
12
|
+
#
|
13
|
+
# @return [String]
|
14
|
+
required :domain, String
|
15
|
+
|
16
|
+
# @!method initialize(domain:, request_options: {})
|
17
|
+
# @param domain [String] Domain name to prefetch brand data for
|
18
|
+
#
|
19
|
+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
# @see BrandDev::Resources::Brand#prefetch
|
6
|
+
class BrandPrefetchResponse < BrandDev::Internal::Type::BaseModel
|
7
|
+
# @!attribute domain
|
8
|
+
# The domain that was queued for prefetching
|
9
|
+
#
|
10
|
+
# @return [String, nil]
|
11
|
+
optional :domain, String
|
12
|
+
|
13
|
+
# @!attribute message
|
14
|
+
# Success message
|
15
|
+
#
|
16
|
+
# @return [String, nil]
|
17
|
+
optional :message, String
|
18
|
+
|
19
|
+
# @!attribute status
|
20
|
+
# Status of the response, e.g., 'ok'
|
21
|
+
#
|
22
|
+
# @return [String, nil]
|
23
|
+
optional :status, String
|
24
|
+
|
25
|
+
# @!method initialize(domain: nil, message: nil, status: nil)
|
26
|
+
# @param domain [String] The domain that was queued for prefetching
|
27
|
+
#
|
28
|
+
# @param message [String] Success message
|
29
|
+
#
|
30
|
+
# @param status [String] Status of the response, e.g., 'ok'
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/brand_dev/models.rb
CHANGED
@@ -43,6 +43,8 @@ module BrandDev
|
|
43
43
|
|
44
44
|
BrandIdentifyFromTransactionParams = BrandDev::Models::BrandIdentifyFromTransactionParams
|
45
45
|
|
46
|
+
BrandPrefetchParams = BrandDev::Models::BrandPrefetchParams
|
47
|
+
|
46
48
|
BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
47
49
|
|
48
50
|
BrandRetrieveNaicsParams = BrandDev::Models::BrandRetrieveNaicsParams
|
@@ -78,6 +78,31 @@ module BrandDev
|
|
78
78
|
)
|
79
79
|
end
|
80
80
|
|
81
|
+
# Signal that you may fetch brand data for a particular domain soon to improve
|
82
|
+
# latency. This endpoint does not charge credits and is available for paid
|
83
|
+
# customers to optimize future requests. [You must be on a paid plan to use this
|
84
|
+
# endpoint]
|
85
|
+
#
|
86
|
+
# @overload prefetch(domain:, request_options: {})
|
87
|
+
#
|
88
|
+
# @param domain [String] Domain name to prefetch brand data for
|
89
|
+
#
|
90
|
+
# @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}, nil]
|
91
|
+
#
|
92
|
+
# @return [BrandDev::Models::BrandPrefetchResponse]
|
93
|
+
#
|
94
|
+
# @see BrandDev::Models::BrandPrefetchParams
|
95
|
+
def prefetch(params)
|
96
|
+
parsed, options = BrandDev::BrandPrefetchParams.dump_request(params)
|
97
|
+
@client.request(
|
98
|
+
method: :post,
|
99
|
+
path: "brand/prefetch",
|
100
|
+
body: parsed,
|
101
|
+
model: BrandDev::Models::BrandPrefetchResponse,
|
102
|
+
options: options
|
103
|
+
)
|
104
|
+
end
|
105
|
+
|
81
106
|
# Retrieve brand data by stock ticker (e.g. AAPL, TSLA, etc.)
|
82
107
|
#
|
83
108
|
# @overload retrieve_by_ticker(ticker:, request_options: {})
|
data/lib/brand_dev/version.rb
CHANGED
data/lib/brand_dev.rb
CHANGED
@@ -54,6 +54,8 @@ require_relative "brand_dev/models/brand_ai_query_params"
|
|
54
54
|
require_relative "brand_dev/models/brand_ai_query_response"
|
55
55
|
require_relative "brand_dev/models/brand_identify_from_transaction_params"
|
56
56
|
require_relative "brand_dev/models/brand_identify_from_transaction_response"
|
57
|
+
require_relative "brand_dev/models/brand_prefetch_params"
|
58
|
+
require_relative "brand_dev/models/brand_prefetch_response"
|
57
59
|
require_relative "brand_dev/models/brand_retrieve_by_ticker_params"
|
58
60
|
require_relative "brand_dev/models/brand_retrieve_by_ticker_response"
|
59
61
|
require_relative "brand_dev/models/brand_retrieve_naics_params"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
class BrandPrefetchParams < 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::BrandPrefetchParams, BrandDev::Internal::AnyHash)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Domain name to prefetch brand data for
|
15
|
+
sig { returns(String) }
|
16
|
+
attr_accessor :domain
|
17
|
+
|
18
|
+
sig do
|
19
|
+
params(
|
20
|
+
domain: String,
|
21
|
+
request_options: BrandDev::RequestOptions::OrHash
|
22
|
+
).returns(T.attached_class)
|
23
|
+
end
|
24
|
+
def self.new(
|
25
|
+
# Domain name to prefetch brand data for
|
26
|
+
domain:,
|
27
|
+
request_options: {}
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
sig do
|
32
|
+
override.returns(
|
33
|
+
{ domain: String, request_options: BrandDev::RequestOptions }
|
34
|
+
)
|
35
|
+
end
|
36
|
+
def to_hash
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module BrandDev
|
4
|
+
module Models
|
5
|
+
class BrandPrefetchResponse < BrandDev::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
BrandDev::Models::BrandPrefetchResponse,
|
10
|
+
BrandDev::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
# The domain that was queued for prefetching
|
15
|
+
sig { returns(T.nilable(String)) }
|
16
|
+
attr_reader :domain
|
17
|
+
|
18
|
+
sig { params(domain: String).void }
|
19
|
+
attr_writer :domain
|
20
|
+
|
21
|
+
# Success message
|
22
|
+
sig { returns(T.nilable(String)) }
|
23
|
+
attr_reader :message
|
24
|
+
|
25
|
+
sig { params(message: String).void }
|
26
|
+
attr_writer :message
|
27
|
+
|
28
|
+
# Status of the response, e.g., 'ok'
|
29
|
+
sig { returns(T.nilable(String)) }
|
30
|
+
attr_reader :status
|
31
|
+
|
32
|
+
sig { params(status: String).void }
|
33
|
+
attr_writer :status
|
34
|
+
|
35
|
+
sig do
|
36
|
+
params(domain: String, message: String, status: String).returns(
|
37
|
+
T.attached_class
|
38
|
+
)
|
39
|
+
end
|
40
|
+
def self.new(
|
41
|
+
# The domain that was queued for prefetching
|
42
|
+
domain: nil,
|
43
|
+
# Success message
|
44
|
+
message: nil,
|
45
|
+
# Status of the response, e.g., 'ok'
|
46
|
+
status: nil
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
sig do
|
51
|
+
override.returns({ domain: String, message: String, status: String })
|
52
|
+
end
|
53
|
+
def to_hash
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
data/rbi/brand_dev/models.rbi
CHANGED
@@ -6,6 +6,8 @@ module BrandDev
|
|
6
6
|
BrandIdentifyFromTransactionParams =
|
7
7
|
BrandDev::Models::BrandIdentifyFromTransactionParams
|
8
8
|
|
9
|
+
BrandPrefetchParams = BrandDev::Models::BrandPrefetchParams
|
10
|
+
|
9
11
|
BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
10
12
|
|
11
13
|
BrandRetrieveNaicsParams = BrandDev::Models::BrandRetrieveNaicsParams
|
@@ -59,6 +59,23 @@ module BrandDev
|
|
59
59
|
)
|
60
60
|
end
|
61
61
|
|
62
|
+
# Signal that you may fetch brand data for a particular domain soon to improve
|
63
|
+
# latency. This endpoint does not charge credits and is available for paid
|
64
|
+
# customers to optimize future requests. [You must be on a paid plan to use this
|
65
|
+
# endpoint]
|
66
|
+
sig do
|
67
|
+
params(
|
68
|
+
domain: String,
|
69
|
+
request_options: BrandDev::RequestOptions::OrHash
|
70
|
+
).returns(BrandDev::Models::BrandPrefetchResponse)
|
71
|
+
end
|
72
|
+
def prefetch(
|
73
|
+
# Domain name to prefetch brand data for
|
74
|
+
domain:,
|
75
|
+
request_options: {}
|
76
|
+
)
|
77
|
+
end
|
78
|
+
|
62
79
|
# Retrieve brand data by stock ticker (e.g. AAPL, TSLA, etc.)
|
63
80
|
sig do
|
64
81
|
params(
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_prefetch_params =
|
4
|
+
{ domain: String } & BrandDev::Internal::Type::request_parameters
|
5
|
+
|
6
|
+
class BrandPrefetchParams < BrandDev::Internal::Type::BaseModel
|
7
|
+
extend BrandDev::Internal::Type::RequestParameters::Converter
|
8
|
+
include BrandDev::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
attr_accessor domain: String
|
11
|
+
|
12
|
+
def initialize: (
|
13
|
+
domain: String,
|
14
|
+
?request_options: BrandDev::request_opts
|
15
|
+
) -> void
|
16
|
+
|
17
|
+
def to_hash: -> {
|
18
|
+
domain: String,
|
19
|
+
request_options: BrandDev::RequestOptions
|
20
|
+
}
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module BrandDev
|
2
|
+
module Models
|
3
|
+
type brand_prefetch_response =
|
4
|
+
{ domain: String, message: String, status: String }
|
5
|
+
|
6
|
+
class BrandPrefetchResponse < BrandDev::Internal::Type::BaseModel
|
7
|
+
attr_reader domain: String?
|
8
|
+
|
9
|
+
def domain=: (String) -> String
|
10
|
+
|
11
|
+
attr_reader message: String?
|
12
|
+
|
13
|
+
def message=: (String) -> String
|
14
|
+
|
15
|
+
attr_reader status: String?
|
16
|
+
|
17
|
+
def status=: (String) -> String
|
18
|
+
|
19
|
+
def initialize: (
|
20
|
+
?domain: String,
|
21
|
+
?message: String,
|
22
|
+
?status: String
|
23
|
+
) -> void
|
24
|
+
|
25
|
+
def to_hash: -> { domain: String, message: String, status: String }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/sig/brand_dev/models.rbs
CHANGED
@@ -3,6 +3,8 @@ module BrandDev
|
|
3
3
|
|
4
4
|
class BrandIdentifyFromTransactionParams = BrandDev::Models::BrandIdentifyFromTransactionParams
|
5
5
|
|
6
|
+
class BrandPrefetchParams = BrandDev::Models::BrandPrefetchParams
|
7
|
+
|
6
8
|
class BrandRetrieveByTickerParams = BrandDev::Models::BrandRetrieveByTickerParams
|
7
9
|
|
8
10
|
class BrandRetrieveNaicsParams = BrandDev::Models::BrandRetrieveNaicsParams
|
@@ -19,6 +19,11 @@ module BrandDev
|
|
19
19
|
?request_options: BrandDev::request_opts
|
20
20
|
) -> BrandDev::Models::BrandIdentifyFromTransactionResponse
|
21
21
|
|
22
|
+
def prefetch: (
|
23
|
+
domain: String,
|
24
|
+
?request_options: BrandDev::request_opts
|
25
|
+
) -> BrandDev::Models::BrandPrefetchResponse
|
26
|
+
|
22
27
|
def retrieve_by_ticker: (
|
23
28
|
ticker: String,
|
24
29
|
?request_options: BrandDev::request_opts
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brand.dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.alpha.
|
4
|
+
version: 0.1.0.pre.alpha.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brand Dev
|
@@ -58,6 +58,8 @@ files:
|
|
58
58
|
- lib/brand_dev/models/brand_ai_query_response.rb
|
59
59
|
- lib/brand_dev/models/brand_identify_from_transaction_params.rb
|
60
60
|
- lib/brand_dev/models/brand_identify_from_transaction_response.rb
|
61
|
+
- lib/brand_dev/models/brand_prefetch_params.rb
|
62
|
+
- lib/brand_dev/models/brand_prefetch_response.rb
|
61
63
|
- lib/brand_dev/models/brand_retrieve_by_ticker_params.rb
|
62
64
|
- lib/brand_dev/models/brand_retrieve_by_ticker_response.rb
|
63
65
|
- lib/brand_dev/models/brand_retrieve_naics_params.rb
|
@@ -93,6 +95,8 @@ files:
|
|
93
95
|
- rbi/brand_dev/models/brand_ai_query_response.rbi
|
94
96
|
- rbi/brand_dev/models/brand_identify_from_transaction_params.rbi
|
95
97
|
- rbi/brand_dev/models/brand_identify_from_transaction_response.rbi
|
98
|
+
- rbi/brand_dev/models/brand_prefetch_params.rbi
|
99
|
+
- rbi/brand_dev/models/brand_prefetch_response.rbi
|
96
100
|
- rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi
|
97
101
|
- rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi
|
98
102
|
- rbi/brand_dev/models/brand_retrieve_naics_params.rbi
|
@@ -127,6 +131,8 @@ files:
|
|
127
131
|
- sig/brand_dev/models/brand_ai_query_response.rbs
|
128
132
|
- sig/brand_dev/models/brand_identify_from_transaction_params.rbs
|
129
133
|
- sig/brand_dev/models/brand_identify_from_transaction_response.rbs
|
134
|
+
- sig/brand_dev/models/brand_prefetch_params.rbs
|
135
|
+
- sig/brand_dev/models/brand_prefetch_response.rbs
|
130
136
|
- sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs
|
131
137
|
- sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs
|
132
138
|
- sig/brand_dev/models/brand_retrieve_naics_params.rbs
|